PageSourceSearch

https://armm-shield.netlify.app/vendor/syncfusion/30.1.41/ej2-pdfviewer.min.js

js armm-shield.netlify.app collected 2026-10-03 10:27:54 UTC 3,335,296 bytes, 11 lines download raw bytes

vendor: 68,591 bytes, lines 1-10
1/*!
2*  filename: ej2-pdfviewer.min.js
3*  version : 30.1.41
4*  Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5*  Use of this code is subject to the terms of our license.
6*  A copy of the current license can be obtained at any time by e-mailing
7*  [email protected]. Any infringement will be prosecuted under
8*  applicable laws. 
9*/
10this.ej=this.ej||{},this.ej.pdfviewer=function(e,t,i,n,o,r,a,s,l,d,A,h,p,c){"use strict";function g(e){return"Line"===e.shapeAnnotationType||"LineWidthArrowHead"===e.shapeAnnotationType||"Distance"===e.shapeAnnotationType||"Polygon"===e.shapeAnnotationType}function u(e,t){if(e&&t)if(e.formFieldAnnotationType)-1!==e.id.indexOf("diagram_helper")?(t.style.fill="transparent",t.style.strokeWidth=1,t.style.strokeDashArray=e.borderDashArray):(t.style.fill="transparent",t.style.strokeWidth=0);else{var i="#ffffff00"===e.fillColor?"transparent":e.fillColor;t.style.fill=i||"white",t.style.strokeColor=e.strokeColor?e.strokeColor:e.borderColor,t.style.color=e.strokeColor?e.strokeColor:e.borderColor,t.style.strokeWidth=e.thickness,"Image"!==e.shapeAnnotationType&&"SignatureText"!==e.shapeAnnotationType&&"SignatureImage"!==e.shapeAnnotationType||(t.style.strokeWidth=0),t.style.strokeDashArray=e.borderDashArray,t.style.opacity=e.opacity}}function f(e){for(var t=0,n=0;n<e.length-1;n++)t+=i.Point.findLength(e[parseInt(n.toString(),10)],e[n+1]);return t}function m(e){return i.Point.getLengthFromListOfPoints(e)}function w(e,t){var i={width: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,angle:e.rotateAngle+e.parentTransform,fill:e.style.fill,stroke:e.style.strokeColor,pivotX:e.pivot.x,pivotY:e.pivot.y,strokeWidth:1,opacity:e.style.opacity,dashArray:e.style.strokeDashArray||"",visible:e.visible,id:e.id};return t&&(i.x+=t.tx,i.y+=t.ty),i}function C(e){return void 0!==e&&"string"==typeof e&&(e=t.getValue(e,window)),e}function B(e,t,i){var n={};if(e){i=e.propName;var o=e.properties||e,r=[],a=[];if((r=r.concat(Object.keys(o))).push("version"),i){var s=C(t);a=s?s(i):[],r=r.concat(a)}for(var l=y(i),d=0,A=r=r.concat(l);d<A.length;d++){var h=A[d];"historyManager"!==h&&("wrapper"!==h?!(!e[""+h]||!Object.prototype.hasOwnProperty.call(e,"observers"))||(e[""+h]instanceof Array?n[""+h]=S(-1===l.indexOf(h)&&e[""+i]?e[""+i][""+h]:e[""+h],t,h):e[""+h]instanceof Array==!1&&e[""+h]instanceof HTMLElement?n[""+h]=e[""+h].cloneNode(!0).innerHtml:e[""+h]instanceof Array==!1&&e[""+h]instanceof Object&&"template"!==h?n[""+h]=B(-1===l.indexOf(h)&&e[""+i]?e[""+i][""+h]:e[""+h]):n[""+h]=e[""+h]):e[""+h]&&(n[""+h]={actualSize:{width:e[""+h].actualSize.width,height:e[""+h].actualSize.height},offsetX:e[""+h].offsetX,offsetY:e[""+h].offsetY}))}}return n}function S(e,t,i){var n;if(e){n=[];for(var o=0;o<e.length;o++)e[parseInt(o.toString(),10)]instanceof Array?n.push(e[parseInt(o.toString(),10)]):e[parseInt(o.toString(),10)]instanceof Object?n.push(B(e[parseInt(o.toString(),10)],t,i)):n.push(e[parseInt(o.toString(),10)])}return n}function y(e){switch(e){case"nodes":case"children":return["inEdges","outEdges","parentId","processId","nodeId","umlIndex","isPhase","isLane"];case"connectors":return["parentId"];case"annotation":case"annotations":return["nodeId"];case"shape":return["hasHeader"]}return[]}function I(e,t){var n;if("Distance"===e.shapeAnnotationType)for(var o=0,r=void 0,a=0;a<e.wrapper.children.length;a++){var s=i.Point.findAngle(e.sourcePoint,e.targetPoint);if(e.wrapper.children[parseInt(a.toString(),10)].id.indexOf("leader")>-1){var l=e.wrapper.children[0].bounds.center;0===o?(r={x:e.sourcePoint.x,y:e.sourcePoint.y-e.leaderHeight},l=e.sourcePoint):(r={x:e.targetPoint.x,y:e.targetPoint.y-e.leaderHeight},l=e.targetPoint);var d=i.identityMatrix();if(i.rotateMatrix(d,s,l.x,l.y),n=i.transformPointByMatrix(d,{x:r.x,y:r.y}),t==="Leader"+o)return{leader:"leader"+o,point:n};o++}}return{leader:"",point:n}}function E(e,t){var i=(t=e.vertexPoints).slice(0);return i&&i.length>0&&(e.sourcePoint=i[0],e.targetPoint=i[i.length-1]),i}function v(e,t){for(var i,n="",o=[],r=0;r<t.length;)o.push({x:t[parseInt(r.toString(),10)].x,y:t[parseInt(r.toString(),10)].y}),r++;o=Q(e,o);for(var a=0;a<o.length;a++)i=o[parseInt(a.toString(),10)],0===a&&(n="M"+i.x+" "+i.y),a>0&&(n+=" L"+i.x+" "+i.y);return n}function b(e,t,n){var o=new i.Rect,r=v(e,t);if(o=i.Rect.toBounds(t),n.width=o.width,n.height=o.height,n.offsetX=o.x+n.width/2,n.offsetY=o.y+n.height/2,n.data=r,e.wrapper){e.wrapper.offsetX=n.offsetX,e.wrapper.offsetY=n.offsetY;var a=o.width;a=o.width<o.height?o.height:o.width,e.wrapper.width=e.enableShapeLabel?a/2:a,e.wrapper.height=o.height}return n}function V(e,t){var i=[];return i=E(e),t.staticSize=!0,t=b(e,i,t),u(e,t),t}function D(e,t,n,o,r){t.offsetX=n.x,t.offsetY=n.y;var a,s=i.Point.findAngle(n,o),l=J(r?e.sourceDecoraterShapes:e.taregetDecoraterShapes),d=0;"LineWidthArrowHead"===e.shapeAnnotationType||"Line"===e.shapeAnnotationType?(d=e.thickness,a=new i.Size(12*d,12*d)):(d=e.thickness<=5?5:e.thickness,a=new i.Size(2*d,2*d)),t.transform=i.RotateTransform.Self,u(e,t),t.style.fill="tranparent"!==e.fillColor?e.fillColor:"white",t.rotateAngle=s,t.data=l,t.canMeasurePath=!0,t.width=a.width,t.height=a.height,"Butt"===e.sourceDecoraterShapes&&(t.width=a.width-10,t.height=a.height+10)}function x(e,t,n,o){var r=new i.PathElement;return D(e,r,t,n,o),r}function Q(e,t){return t[0]=M(e,t,!0),t[t.length-1]=M(e,t,!1),t}function M(e,t,n){var o={x:0,y:0},r={x:0,y:0},a={x:0,y:0},s=t.length;r=n?t[0]:t[s-1],a=n?t[1]:t[s-2];var l=i.Point.distancePoints(r,a);l=0===l?1:l;var d=e.thickness;o.x=Math.round(r.x+d*(a.x-r.x)/l),o.y=Math.round(r.y+d*(a.y-r.y)/l);return o=i.Point.adjustPoint(o,a,!0,.5)}function F(e,t,n,o){var r=[],a=i.Point.findAngle(t[0],t[1]),s=O(e,a);return!o.enableImportAnnotationMeasurement&&e.notes&&""!==e.notes?s.content=e.notes:s.content=n.setConversion(f([t[0],t[1]])*n.pixelToPointFactor,e),s.rotateValue={y:-10,angle:a},!0===e.enableShapeLabel&&(s.style.strokeColor=e.labelBorderColor,s.style.fill=e.labelFillColor,s.style.fontSize=e.fontSize,s.style.color=e.fontColor,s.style.fontFamily=e.fontFamily),r.push(s),r}function T(e,i,n){for(var o,r=0;r<e.wrapper.children.length;r++){var a=e.wrapper.children[parseInt(r.toString(),10)];a&&!t.isNullOrUndefined(a.content)&&(o=n.setConversion(f([i[0],i[1]])*n.pixelToPointFactor,e),a.content=o,a.childNodes[0].text=a.content,a.refreshTextElement())}return o}function k(e,i){for(var n,o=0;o<e.wrapper.children.length;o++){var r=e.wrapper.children[parseInt(o.toString(),10)];r&&!t.isNullOrUndefined(r.content)&&(n=i.setConversion(e.bounds.width/2*i.pixelToPointFactor,e),r.content=n,2===r.childNodes.length?(r.childNodes[0].text=n,r.childNodes.splice(r.childNodes.length-1,1)):r.childNodes[0].text=n,r.refreshTextElement())}return n}function P(e,t,n,o){var r=[],a=i.Point.findAngle(t[0],t[1]),s=O(e,a);return!o.enableImportAnnotationMeasurement&&e.notes&&""!==e.notes?s.content=e.notes:s.content=n.calculatePerimeter(e),!0===e.enableShapeLabel&&(s.style.strokeColor=e.labelBorderColor,s.style.fill=e.labelFillColor,s.style.fontSize=e.fontSize,s.style.color=e.fontColor,s.style.fontFamily=e.fontFamily),s.rotateValue={y:-10,angle:a},r.push(s),r}function N(e,i,n){for(var o,r=0;r<e.wrapper.children.length;r++){var a=e.wrapper.children[parseInt(r.toString(),10)];a&&!t.isNullOrUndefined(a.content)&&(o=n.calculatePerimeter(e),a.content=o,a.childNodes[0].text=a.content,a.refreshTextElement())}return o}function R(e){for(var i=0;i<e.wrapper.children.length;i++){var n=e.wrapper.children[parseInt(i.toString(),10)];n&&!t.isNullOrUndefined(n.content)&&e.wrapper.children.splice(i,1)}}function L(e){if(e.wrapper&&e.wrapper.children)for(var i=0;i<e.wrapper.children.length;i++){var n=e.wrapper.children[parseInt(i.toString(),10)];n&&!t.isNullOrUndefined(n.content)&&(n.content=e.notes,n.childNodes[0].text=n.content,n.refreshTextElement())}}function U(e){var t,i="";i="M"+e[0].x+" "+e[0].y;var n;for(n=1;n<e.length;n++)i+="L"+(t=e[parseInt(n.toString(),10)]).x+" "+t.y;return i+="Z"}function O(e,t){var n=new i.TextElement;return u(e,n),n.style.fill="transparent",n.id=i.randomId(),n.horizontalAlignment="Center",n.rotateValue={y:10,angle:t},n.verticalAlignment="Top",n.relativeMode="Object",n.setOffsetWithRespectToBounds(.5,.5,"Absolute"),n.style.textWrapping="NoWrap",n}function z(e,t){var i=[],n=H(e,t[0],t[1]);return i.push(n),n=H(e,t[1],t[0],!0),i.push(n),i}function H(e,t,n,o){var r=new i.PathElement;r.offsetX=t.x,r.offsetY=t.y;var a=i.Point.findAngle(t,n),s={x:(t.x+n.x)/2,y:(t.y+n.y)/2},l=i.identityMatrix();i.rotateMatrix(l,0-a,s.x,s.y);var d=i.transformPointByMatrix(l,t),A={x:d.x,y:d.y-e.leaderHeight};l=i.identityMatrix(),i.rotateMatrix(l,a,r.offsetX,r.offsetY),d=i.transformPointByMatrix(l,A);var h={x:t.x,y:t.y};r.offsetX=h.x,r.offsetY=h.y,r.transform=i.RotateTransform.Self;var p="M"+t.x+","+t.y+",L"+d.x+","+d.y+"Z",c=new i.Size(0,e.leaderHeight);return r.pivot.x=.5,o?(r.id="leader2_"+i.randomId(),r.pivot.y=0):(r.id="leader1_"+i.randomId(),r.pivot.y=1),u(e,r),r.rotateAngle=a,r.data=p,r.canMeasurePath=!0,r.width=c.width,r.height=c.height,r}function Y(e,n){var o=e.vertexPoints;if(!t.isNullOrUndefined(o))for(var r=0;r<o.length-1;r++){var a=o[parseInt(r.toString(),10)],s=o[r+1],l=i.Rect.toBounds([a,s]);if(l.Inflate(10),l.containsPoint(n)){var d=G(n,a,s),A={x1:a.x,x2:s.x,y1:a.y,y2:s.y},h={x1:n.x,x2:d.x,y1:n.y,y2:d.y},p=i.intersect3(A,h);if(p.enabled){var c=i.Point.findLength(n,p.intersectPt);if(Math.abs(c)<10)return!0}else{var g=i.Rect.toBounds([n,n]);if(g.Inflate(3),g.containsPoint(a)||g.containsPoint(s))return!0}if(i.Point.equals(n,d))return!0}}return!1}function G(e,t,n){var o;o=i.Point.findLength(t,e)>i.Point.findLength(n,e)?n:t;var r=i.Point.findAngle(t,n),a=i.Point.findAngle(o,e),s=i.Point.findLength(o,e),l=a+2*(r-a);return{x:o.x+s*Math.cos(l*Math.PI/180),y:o.y+s*Math.sin(l*Math.PI/180)}}function J(e){return st[""+e]}function j(e,t,i,n){if(i&&t.activeElements.activePageID>-1){var o=K(t,i,e),r=W(o,e,t,i);return n?o:r}}function K(e,t,i){var n=e.currentPosition||{x:i.offsetX,y:i.offsetY};return $(n={x:n.x/e.getZoomFactor(),y:n.y/e.getZoomFactor()},t.getPageTable(e.activeElements.activePageID).objects,t.touchPadding)}function W(e,t,n,o){var r,a,s,l=null;if(t&&t.type&&-1!==t.type.indexOf("touch")){if(r=t,o.annotation){var d=n.getElement("_pageDiv_"+o.annotation.getEventPageNumber(t));if(d){var A=d.getBoundingClientRect();a=r.changedTouches[0].clientX-A.left,s=r.changedTouches[0].clientY-A.top}}}else if(t&&t.target&&t.path&&t.target.parentElement&&t.target.parentElement.classList.contains("foreign-object")){h=t.path[4].getBoundingClientRect();a=t.clientX-h.left,s=t.clientY-h.top}else if(t.target&&t.target.parentElement&&t.target.parentElement.classList.contains("foreign-object")){h=t.target.offsetParent.offsetParent.offsetParent.getBoundingClientRect();a=t.clientX-h.left,s=t.clientY-h.top}else if(t.target&&t.target.parentElement&&t.target.parentElement.parentElement&&t.target.parentElement.parentElement.classList.contains("foreign-object")){var h=void 0;t.target.offsetParent&&t.target.offsetParent.offsetParent&&t.target.offsetParent.offsetParent.offsetParent&&t.target.offsetParent.offsetParent.offsetParent.offsetParent?(h=t.target.offsetParent.offsetParent.offsetParent.offsetParent.getBoundingClientRect(),a=t.clientX-h.left,s=t.clientY-h.top):t.target.parentElement.offsetParent&&t.target.parentElement.offsetParent.offsetParent&&(h=t.target.parentElement.offsetParent.offsetParent.getBoundingClientRect(),a=t.clientX-h.left,s=t.clientY-h.top)}else a=isNaN(t.offsetX)?t.position?t.position.x:0:t.offsetX,s=isNaN(t.offsetY)?t.position?t.position.y:0:t.offsetY;for(var p=o.touchPadding/2,c=0,g=0;g<e.length;g++)if("Distance"===e[parseInt(g.toString(),10)].shapeAnnotationType||"Line"===e[parseInt(g.toString(),10)].shapeAnnotationType||"LineWidthArrowHead"===e[parseInt(g.toString(),10)].shapeAnnotationType||n.tool instanceof St){var u={x:a/n.getZoomFactor(),y:s/n.getZoomFactor()},f=_(e[parseInt(g.toString(),10)],u,p),m=Y(e[parseInt(g.toString(),10)],u);if(f&&!m){var w=Z(e[parseInt(g.toString(),10)],f);if(w){var C=i.Rect.toBounds([w,w]);C.Inflate(10),C.containsPoint(u)&&(m=!0)}}f&&m&&(l=e[parseInt(g.toString(),10)])}else{var B=e[parseInt(g.toString(),10)].wrapper.bounds,S=0;if("Stamp"!==e[parseInt(g.toString(),10)].shapeAnnotationType&&"Image"!==e[parseInt(g.toString(),10)].shapeAnnotationType||(S=25),(B.x-p)*n.getZoomFactor()<a&&(B.x+B.width+p)*n.getZoomFactor()>a&&(B.y-p-S)*n.getZoomFactor()<s&&(B.y+B.height+p)*n.getZoomFactor()>s||(B.x-p)*n.getZoomFactor()<n.currentPosition.x&&(B.x+B.width+p)*n.getZoomFactor()>n.currentPosition.x&&(B.y-p-S)*n.getZoomFactor()<n.currentPosition.y&&(B.y+B.height+p)*n.getZoomFactor()>n.currentPosition.y)if(n.tool instanceof Ct||n.tool instanceof ut)l=e[parseInt(g.toString(),10)];else if(c){var y=a-(B.x-p)*n.getZoomFactor()+((B.x+B.width+p)*n.getZoomFactor()-a)+(s-(B.y-p-S)*n.getZoomFactor())+((B.y+B.height+p)*n.getZoomFactor()-s);c>y?(l=e[parseInt(g.toString(),10)],c=y):c===y?(l=e[parseInt(g.toString(),10)],c=y):"Image"!==e[parseInt(g.toString(),10)].shapeAnnotationType&&"Stamp"!==e[parseInt(g.toString(),10)].shapeAnnotationType||(l=e[parseInt(g.toString(),10)])}else l=e[parseInt(g.toString(),10)],c=a-(B.x-p)*n.getZoomFactor()+((B.x+B.width+p)*n.getZoomFactor()-a)+(s-(B.y-p-S)*n.getZoomFactor())+((B.y+B.height+p)*n.getZoomFactor()-s)}return l}function Z(e,t){var n=e.sourcePoint,o=e.targetPoint;if("Distance"===e.shapeAnnotationType){var r=t,a=void 0,s=i.Point.findAngle(e.sourcePoint,e.targetPoint);if(r.id.indexOf("leader")>-1){var l=e.wrapper.children[0].bounds.center;r.id.indexOf("leader1")>-1?(a={x:e.sourcePoint.x,y:e.sourcePoint.y-e.leaderHeight},l=n):(a={x:e.targetPoint.x,y:e.targetPoint.y-e.leaderHeight},l=o);var d=i.identityMatrix();return i.rotateMatrix(d,s,l.x,l.y),i.transformPointByMatrix(d,{x:a.x,y:a.y})}}}function _(e,t,i){return q(e.wrapper,t,i)}function X(e,t,i){if(0===i.length)i.push(e);else if(1===i.length)i[0][""+t]>e[""+t]?i.splice(0,0,e):i.push(e);else if(i.length>1){for(var n=0,o=i.length-1,r=Math.floor((n+o)/2);r!==n;)i[parseInt(r.toString(),10)][""+t]<e[""+t]?(n=r,r=Math.floor((n+o)/2)):i[parseInt(r.toString(),10)][""+t]>e[""+t]&&(o=r,r=Math.floor((n+o)/2));i[parseInt(o.toString(),10)][""+t]<e[""+t]?i.push(e):i[parseInt(n.toString(),10)][""+t]>e[""+t]?i.splice(n,0,e):i[parseInt(n.toString(),10)][""+t]<e[""+t]&&i[parseInt(o.toString(),10)][""+t]>e[""+t]&&i.splice(o,0,e)}}function q(e,n,o){if(e&&e.children)for(var r=e.children.length-1;r>=0;r--){var a=e.children[parseInt(r.toString(),10)],s=o;if(!t.isNullOrUndefined(a.children)&&a.children.length>0)for(var l=a.children.length-1;l>=0;l--){var d=a.children[parseInt(l.toString(),10)];if(d&&d.bounds.containsPoint(n,s)){if(d instanceof i.Container&&(A=this.findTargetElement(d,n)))return A;if(d.bounds.containsPoint(n,s))return d}}else if(a&&a.bounds.containsPoint(n,s)){if(a instanceof i.Container){var A=this.findTargetElement(a,n);if(A)return A}if(a.bounds.containsPoint(n,s))return a}}if(e&&e.bounds.containsPoint(n,o)&&"none"!==e.style.fill){var h=e,p=i.identityMatrix();i.rotateMatrix(p,h.parentTransform,h.offsetX,h.offsetY);var c=h.offsetX-h.pivot.x*h.actualSize.width,g=h.offsetY-h.pivot.y*h.actualSize.height,u={x:c+(.5===h.pivot.x?2*h.pivot.x:h.pivot.x)*h.actualSize.width/2,y:g-30};if(u=i.transformPointByMatrix(p,u),i.contains(n,u,10))return e}return null}function $(e,t,i){for(var n=[],o=0,r=t;o<r.length;o++){var a=r[o];(_(a,e,i)||"Stamp"===a.shapeAnnotationType&&_(a,e,40))&&X(a,"zIndex",n)}return n}function ee(e){var t=void 0;if(e.target&&e.target.wrapper)return e.target.pageIndex;if(e.target){var i=e.target.id.split("_");i.length>0&&(t=parseInt(i[i.length-1],10))}return t}function te(e,t,n,o,r){var a=i.createHtmlElement("div",{id:r.element.id+o+"_diagramAdornerLayer",style:"width:"+e.width+"px;height:"+e.height+"px;"+t});if(!i.getDiagramElement(a.id)){var s=r.viewerBase.getElement("_pageDiv_"+o),l=s.getBoundingClientRect(),d=ie(r.element.id+o+"_diagramAdorner_svg",l.width,l.height);d.setAttribute("class","e-adorner-layer"+o),d.style.pointerEvents="none",r.adornerSvgLayer=i.createSvgElement("g",{id:r.element.id+o+"_diagramAdorner"}),r.adornerSvgLayer.style.pointerEvents="all",d.appendChild(r.adornerSvgLayer),a.appendChild(d),a.style.width=l.width+"px",a.style.height=l.height+"px",s?s.insertBefore(a,s.childNodes[0]):n.parentElement.appendChild(a);var A=i.createSvgElement("g",{id:r.element.id+o+"_SelectorElement"});r.adornerSvgLayer.appendChild(A),i.setAttributeSvg(d,{style:"pointer-events:none;"})}r.viewerBase.applyElementStyles(a,o)}function ie(e,t,n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");return i.setAttributeSvg(o,{id:e,width:t,height:n}),o}function ne(e,t,i,n){switch(e){case"Create":oe({type:n,target:document.querySelector(t.target),cssClass:t.cssClass,label:t.label,width:t.width});break;case"Show":Ye(document.querySelector(i));break;case"Hide":Je(document.querySelector(i));break;case"Set":je({cssClass:t.cssClass,type:n})}}function oe(e,i){if(e.target){var n,o=t.isNullOrUndefined(i)?t.createElement:i,r=Qe(e.target,o);if(t.isNullOrUndefined(e.cssClass)||r.wrap.classList.add(e.cssClass),t.isNullOrUndefined(e.template)&&t.isNullOrUndefined(_t)){var a=t.isNullOrUndefined(e.type)?me(r.wrap):e.type;n=ve(t.isNullOrUndefined(e.width)?void 0:e.width,a),we(a,r.wrap,n,o),t.isNullOrUndefined(e.label)||re(r.innerWrap,e.label,o)}else{var s=t.isNullOrUndefined(e.template)?_t:e.template;r.wrap.classList.add(Ii),Ee(r.wrap,s,Xt)}r.wrap.classList.add(ai),r=null}}function re(e,t,i){var n=i("div",{});return n.classList.add(yi),n.textContent=t,e.appendChild(n),n}function ae(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Material",radius:t},xe(e,n,i,si),Te(t,e,"Material",si)}function se(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Fluent2",radius:t},De(e,n,ui),Ue(t,e,ui)}function le(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Material3",radius:t},xe(e,n,i,li),Te(t,e,"Material3",li)}function de(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Tailwind3",radius:t},xe(e,n,i,fi),Te(t,e,"Tailwind3",fi)}function Ae(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Bootstrap4",radius:t},xe(e,n,i,hi),Te(t,e,"Bootstrap4",hi)}function he(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Bootstrap5",radius:t},xe(e,n,i,pi),Te(t,e,"Bootstrap5",pi)}function pe(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Tailwind",radius:t},De(e,n,ci),Ue(t,e,ci)}function ce(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Fluent",radius:t},De(e,n,gi),Ue(t,e,gi)}function ge(e,t,i){var n={};Zt[""+t].timeOut=0,n[""+t]=be(t,i,0,0),Me({uniqueID:t,container:e,globalInfo:n,timeOutVar:0})}function ue(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Fabric",radius:t},De(e,n,di),Ue(t,e,di)}function fe(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"HighContrast",radius:t},De(e,n,mi),Ue(t,e,mi)}function me(e){return window.getComputedStyle(e,":after").getPropertyValue("content").replace(/['"]+/g,"")}function we(e,i,n,o){var r=i.querySelector("."+Ci),a=r.querySelector("svg");switch(t.isNullOrUndefined(a)||r.removeChild(a),e){case"Material":ae(r,n,o);break;case"Material3":le(r,n,o);break;case"Fabric":ue(r,n);break;case"Bootstrap":Ce(r,n);break;case"HighContrast":fe(r,n);break;case"Bootstrap4":Ae(r,n,o);break;case"Bootstrap5":he(r,n,o);break;case"Tailwind":pe(r,n);break;case"Fluent":ce(r,n);break;case"Fluent2":se(r,n);break;case"Tailwind3":de(r,n,o)}}function Ce(e,t,i){var n=Ve();Zt[""+n]={timeOut:0,type:"Bootstrap",radius:t},Be(e,n),Se(e,t)}function Be(e,t,i){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("id",t),n.setAttribute("class",Ai),n.setAttribute("viewBox","0 0 64 64"),e.insertBefore(n,e.firstChild);for(var o=0;o<=7;o++){var r=document.createElementNS("http://www.w3.org/2000/svg","circle");r.setAttribute("class",Bi+"_"+o),r.setAttribute("r","2"),r.setAttribute("transform","translate(32,32)"),n.appendChild(r)}}function Se(e,t){var i=e.querySelector("svg.e-spin-bootstrap");i.style.width=i.style.height=t+"px";for(var n=90,o=0;o<=7;o++){var r=Oe(0,0,24,n),a=i.querySelector("."+Bi+"_"+o);a.setAttribute("cx",r.x+""),a.setAttribute("cy",r.y+""),n=n>=360?0:n,n+=45}}function ye(e,t){function i(e){n.push(e),e===r&&1!==s||(e<=o&&e>1&&!a?e=parseFloat((e-.2).toFixed(2)):1===e?(e=7,e=parseFloat((e+.2).toFixed(2)),a=!0):e<8&&a?8===(e=parseFloat((e+.2).toFixed(2)))&&(a=!1):e<=8&&!a&&(e=parseFloat((e-.2).toFixed(2))),++s,i(e))}var n=[],o=e,r=t,a=!1,s=1;return i(o),n}function Ie(e){for(var t=e.querySelector("svg.e-spin-bootstrap").getAttribute("id"),i=1;i<=8;i++)!function(e,t,i,n,o){function r(t){Zt[""+o].isAnimate&&(++a,e.setAttribute("r",t+""),a>=n.length&&(a=0),Zt[""+o].timeOut=setTimeout(r.bind(null,n[parseInt(a.toString(),10)]),18))}var a=0;r(t)}(e.getElementsByClassName("e-path-circle_"+(8===i?0:i))[0],i,0,ye(i,i),t)}function Ee(e,i,n){t.isNullOrUndefined(n)||e.classList.add(n),e.querySelector(".e-spinner-inner").innerHTML=i}function ve(e,t){var i;switch(t){case"Material":i=qt;break;case"Material3":i=$t;break;case"Fabric":i=ei;break;case"Fluent2":i=ni;break;case"Tailwind3":i=oi;break;case"Bootstrap4":i=ii;break;default:i=ti}return e=e?parseFloat(e+""):i,"Bootstrap"===t?e:e/2}function be(e,t,i,n){return{radius:t,count:i,previousId:n}}function Ve(){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}function De(e,t,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("id",t),o.setAttribute("class",i);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",Bi);var a=document.createElementNS("http://www.w3.org/2000/svg","path");a.setAttribute("class",Si),e.insertBefore(o,e.firstChild),o.appendChild(r),o.appendChild(a)}function xe(e,t,i,n){var o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.setAttribute("class",n),o.setAttribute("id",t);var r=document.createElementNS("http://www.w3.org/2000/svg","path");r.setAttribute("class",Bi),e.insertBefore(o,e.firstChild),o.appendChild(r)}function Qe(e,t){var i=t("div",{});i.classList.add(wi);var n=t("div",{});return n.classList.add(Ci),e.appendChild(i),i.appendChild(n),{wrap:i,innerWrap:n}}function Me(e){Fe(1,149,Le,1333,e.globalInfo[e.uniqueID].count,75,e),e.globalInfo[e.uniqueID].count=++e.globalInfo[e.uniqueID].count%4}function Fe(e,i,n,o,r,a,s){function l(i){var r=Math.max(0,Math.min((new Date).getTime()-h,o));t.isNullOrUndefined(Zt[i.uniqueID])||t.isNullOrUndefined(Zt[i.uniqueID].timeOut)||(d(n(r,e,p,o),i.container),A===i.globalInfo[i.uniqueID].previousId&&r<o?Zt[i.uniqueID].timeOut=requestAnimationFrame(function(){return l(i)}):(clearTimeout(Zt[i.uniqueID].timeOut),Zt[i.uniqueID].timeOut=null,Me(i)))}function d(e,i){if(!t.isNullOrUndefined(i.querySelector("svg.e-spin-material"))||!t.isNullOrUndefined(i.querySelector("svg.e-spin-material3"))){var n=void 0;if(t.isNullOrUndefined(i.querySelector("svg.e-spin-material"))||t.isNullOrUndefined(i.querySelector("svg.e-spin-material").querySelector("path.e-path-circle"))?t.isNullOrUndefined(i.querySelector("svg.e-spin-fluent2"))||t.isNullOrUndefined(i.querySelector("svg.e-spin-fluent2").querySelector("path.e-path-circle"))?t.isNullOrUndefined(i.querySelector("svg.e-spin-material3"))||t.isNullOrUndefined(i.querySelector("svg.e-spin-material3").querySelector("path.e-path-circle"))?t.isNullOrUndefined(i.querySelector("svg.e-spin-tailwind3"))||t.isNullOrUndefined(i.querySelector("svg.e-spin-tailwind3").querySelector("path.e-path-circle"))||(n=i.querySelector("svg.e-spin-tailwind3")):n=i.querySelector("svg.e-spin-material3"):n=i.querySelector("svg.e-spin-fluent2"):n=i.querySelector("svg.e-spin-material"),!t.isNullOrUndefined(n)){var o=n.querySelector("path.e-path-circle");o.setAttribute("stroke-dashoffset",Re(c,g,e,a)+""),o.setAttribute("transform","rotate("+u+" "+c/2+" "+c/2+")")}}}var A=++s.globalInfo[s.uniqueID].previousId,h=(new Date).getTime(),p=i-e,c=ke(2*s.globalInfo[s.uniqueID].radius+""),g=Ne(c),u=-90*(s.globalInfo[s.uniqueID].count||0);!t.isNullOrUndefined(Zt[s.uniqueID])&&Zt[s.uniqueID].timeOut&&(clearTimeout(Zt[s.uniqueID].timeOut),Zt[s.uniqueID].timeOut=null),l(s)}function Te(e,t,i,n){var o=2*e,r=t.querySelector("svg."+n),a=r.querySelector("path.e-path-circle"),s=Ne(o),l=o/2+"px";r.setAttribute("viewBox","0 0 "+o+" "+o),r.style.width=r.style.height=o+"px",r.style.transformOrigin=l+" "+l+" "+l,a.setAttribute("d",Pe(o,s)),"Material"!==i&&"Material3"!==i||(a.setAttribute("stroke-width",s+""),a.setAttribute("stroke-dasharray",(o-s)*Math.PI*.75+""),a.setAttribute("stroke-dashoffset",Re(o,s,1,75)+"")),"Tailwind3"===i&&a.setAttribute("stroke-width",s+"")}function ke(e){return parseFloat(e)}function Pe(e,t){var i=e/2,n=t/2;return"M"+i+","+n+"A"+(i-n)+","+(i-n)+" 0 1 1 "+n+","+i}function Ne(e){return.1*e}function Re(e,t,i,n){return(e-t)*Math.PI*(3*n/100-i/100)}function Le(e,t,i,n){var o=(e/=n)*e,r=o*e;return t+i*(6*r*o+-15*o*o+10*r)}function Ue(e,t,i){var n=e,o=e,r=2*e,a=t.querySelector("."+i),s=a.querySelector(".e-path-circle"),l=a.querySelector(".e-path-arc"),d=r/2+"px";s.setAttribute("d",He(n,o,e)),l.setAttribute("d",ze(n,o,e,315,45)),a.setAttribute("viewBox","0 0 "+r+" "+r),a.style.transformOrigin=d+" "+d+" "+d,a.style.width=a.style.height=r+"px"}function Oe(e,t,i,n){var o=(n-90)*Math.PI/180;return{x:e+i*Math.cos(o),y:t+i*Math.sin(o)}}function ze(e,t,i,n,o){var r=Oe(e,t,i,o),a=Oe(e,t,i,n);return["M",r.x,r.y,"A",i,i,0,0,0,a.x,a.y].join(" ")}function He(e,t,i){return["M",e,t,"m",-i,0,"a",i,i,0,1,0,2*i,0,"a",i,i,0,1,0,2*-i,0].join(" ")}function Ye(e){Ge(e,!1),e=null}function Ge(e,i){var n;if(e&&(n=e.classList.contains(wi)?e:e.querySelector("."+wi)),e&&n){var o=n.querySelector("."+Ci);if(i?!n.classList.contains(Ii)&&!n.classList.contains(ai):!n.classList.contains(Ii)&&!n.classList.contains(ri)){var r=n.querySelector("svg");if(t.isNullOrUndefined(r))return;var a=r.getAttribute("id");switch(Zt[""+a].isAnimate=!i,Zt[""+a].type){case"Material":case"Material3":case"Fluent2":case"Tailwind3":i?clearTimeout(Zt[""+a].timeOut):ge(o,a,Zt[""+a].radius);break;case"Bootstrap":i?clearTimeout(Zt[""+a].timeOut):Ie(o)}}i?t.classList(n,[ai],[ri]):t.classList(n,[ri],[ai]),e=null}}function Je(e){Ge(e,!0),e=null}function je(e,i){var n=t.isNullOrUndefined(i)?t.createElement:i;void 0!==e.template&&(_t=e.template,void 0!==e.template&&(Xt=e.cssClass));for(var o=document.querySelectorAll("."+wi),r=0;r<o.length;r++)Ke(e.template,o[parseInt(r.toString(),10)],e.type,e.cssClass,n)}function Ke(e,i,n,o,r){t.isNullOrUndefined(e)&&!i.classList.contains(Ii)?(We(i,n,o,r),i.classList.contains(ri)?(i.classList.remove(ri),Ye(i)):(i.classList.remove(ai),Je(i))):(_t=e,t.isNullOrUndefined(o)||(Xt=o))}function We(e,i,n,o){t.isNullOrUndefined(n)||e.classList.add(n);var r=e.querySelector("svg"),a="Bootstrap"===i?parseFloat(r.style.height):parseFloat(r.style.height)/2;if(r.getAttribute("class").split(/\s/).indexOf("e-spin-material")>=0){var s=r.getAttribute("id");clearTimeout(Zt[""+s].timeOut)}we(i,e,a,o)}function Ze(){function e(){s.Init=d.cwrap("FPDF_InitLibrary"),s.RenderPageBitmap=d.cwrap("FPDF_RenderPageBitmap","",["number","number","number","number","number","number","number","number"]),s.Bitmap_FillRect=d.cwrap("FPDFBitmap_FillRect","",["number","number","number","number","number","number"]),s.Bitmap_CreateEx=d.cwrap("FPDFBitmap_CreateEx","number",["number","number","number","number","number"]),s.Bitmap_Destroy=d.cwrap("FPDFBitmap_Destroy","",["number"]),s.LoadPage=d.cwrap("FPDF_LoadPage","number",["number","number"]),s.ClosePage=d.cwrap("FPDF_ClosePage","",["number"]),s.LoadCustomDocument=d.cwrap("FPDF_LoadCustomDocument","number",["number","string"]),s.LoadMemDocument=d.cwrap("FPDF_LoadMemDocument","number",["number","number","string"]),s.GetPageSizeByIndex=d.cwrap("FPDF_GetPageSizeByIndex","number",["number","number","number","number"]),s.GetLastError=d.cwrap("FPDF_GetLastError","number"),s.GetPageCount=d.cwrap("FPDF_GetPageCount","number",["number"]),s.CloseDocument=d.cwrap("FPDF_CloseDocument","",["number"]),s.DestroyLibrary=d.cwrap("FPDF_DestroyLibrary"),s.LoadTextPage=d.cwrap("FPDFText_LoadPage","number",["number"]),s.CloseTextPage=d.cwrap("FPDFText_ClosePage","",["number"]),s.TextCountChars=d.cwrap("FPDFText_CountChars","number",["number"]),s.GetUnicodeChar=d.cwrap("FPDFText_GetUnicode","number",["number"]),s.GetCharBox=d.cwrap("FPDFText_GetCharBox","number",["number","number","number","number","number"]),s.GetPageRotation=d.cwrap("FPDFPage_GetRotation","number",["number"]),s.GetCharAngle=d.cwrap("FPDFText_GetCharAngle","number",["number"]),s.TextFindStart=d.cwrap("FPDFText_FindStart","",["number","number","number","number"]),s.TextFindClose=d.cwrap("FPDFText_FindClose","",["number"]),s.TextFindNext=d.cwrap("FPDFText_FindNext","",["number"]),s.TextFindResultIndex=d.cwrap("FPDFText_GetSchResultIndex","",["number"]),s.TextFindCount=d.cwrap("FPDFText_GetSchCount","",["number"]),s.GetPageHeight=d.cwrap("FPDF_GetPageHeight","number",["number"]),s.GetPageHeight=d.cwrap("FPDF_GetPageHeight","number",["number"]),s.GetPageWidth=d.cwrap("FPDF_GetPageWidth","number",["number"]),l.heap=function(e,t){var i;switch(e){case Int8Array:i=d.HEAP8;break;case Int16Array:i=d.HEAP16;break;case Int32Array:i=d.HEAP32;break;case Uint8Array:i=d.HEAPU8;break;case Uint16Array:i=d.HEAPU16;break;case Uint32Array:i=d.HEAPU32;break;case Float32Array:i=d.HEAPF32;break;case Float64Array:i=d.HEAPF64}var n=e.BYTES_PER_ELEMENT,o=(d.asm&&d.asm.malloc?d.asm.malloc:d._malloc)(t*n),r=Array(1+t),a=d.asm&&d.asm.free?d.asm.free:d._free;r[0]={s:t,J:e,Z:n,E:i,m:o,free:function(){return a(o)}};for(var s=0;s<t;s++)!function(e){r[e+1]={p:o+e*n,get v(){return i[o/n+e]}}}(s);return r}}function t(){((r=!0)||a)&&i()}function i(){e(),l.loaded&&l.loaded()}function n(e){return{getFileSize:function(){return e.length},readBlock:function(t,i,n){if(t+n>e.length)return console.error("Requested chunk is out of bounds"),0;for(var o=0;o<n;o++)d.HEAPU8[i+o]=e[t+o];return 1}}}var o,r=!1,a=!1,s={},l=l||{},d=void 0!==l.Module?l.Module:{},A=Float64Array,h=function(e,t,i){return function(n){var o=l.heap(e,t),r=o[0],a=o.slice(1);if(!n.apply(void 0,a.map(function(e){return e.p})))return r.free(),i;var s=a.map(function(e){return e.v});return r.free(),s}};Object.assign(s,{LCD_TEXT:2,NO_NATIVETEXT:4,GRAYSCALE:8,DEBUG_INFO:128,NO_CATCH:256,RENDER_LIMITEDIMAGECACHE:512,RENDER_FORCEHALFTONE:1024,PRINTING:2048,REVERSE_BYTE_ORDER:16,Bitmap_Gray:1,Bitmap_BGR:2,Bitmap_BGRx:3,Bitmap_BGRA:4,LAST_ERROR:{SUCCESS:0,UNKNOWN:1,FILE:2,FORMAT:3,PASSWORD:4,SECURITY:5,PAGE:6}}),d.onRuntimeInitialized=function(){a=!0,t()},l.onload=function(){r=!0,t()},l.loaded=function(){p.postMessage({message:"loaded"})};var p=self;p.onmessage=function(e){if("initialLoading"===e.data.message)importScripts(e.data.url+"/pdfium.js"),d.url=e.data.url,d.onRuntimeInitialized=function(){if(a=!0,t(),e.data.fonts&&Object.keys(e.data.fonts).length>0){var i="/usr/share/fonts/";d.FS&&d.FS.createPath?d.FS.createPath("/",i,!0,!0):d.FS_createPath("/",i,!0,!0);for(var n in e.data.fonts)e.data.fonts[""+n]&&-1===n.indexOf("fallbackfonts")&&(d.FS&&d.FS.createDataFile?d.FS.createDataFile(i+n,null,e.data.fonts[""+n],!0,!0,!0):d.FS_createDataFile(i+n,null,e.data.fonts[""+n],!0,!0,!0))}},this.PDFiumModule(d);else if("LoadPageCollection"===e.data.message){o&&e.data.skipOnReload&&((G=d.asm&&d.asm.free?d.asm.free:d._free)(o.processor.wasmData.wasmBuffer),s.CloseDocument(o.processor.wasmData.wasm),s.DestroyLibrary(),o=null),l.fileByteArray=e.data.uploadedFile;C=l.fileByteArray.length;if(s.Init(),d.asm&&d.asm.malloc){i=d.asm.malloc(C);d.HEAPU8.set(l.fileByteArray,i),l.fileByteArray=null,o=new m({wasm:s.LoadMemDocument(i,C,e.data.password),wasmBuffer:i})}else{var i=(T=d.asm&&d.asm.malloc?d.asm.malloc:d._malloc)(C),r=n(e.data.uploadedFile),c=d.addFunction(function(e,t,i,n){return r.readBlock(t,i,n)},"iiiii"),u=T(12),f={mFileLen:r.getFileSize(),mGetBlock:c,mParam:null};d.setValue(u,f.mFileLen,"i32"),d.setValue(u+4,f.mGetBlock,"*"),d.setValue(u+8,f.mParam?f.mParam:0,"*");var w=s.LoadCustomDocument(u,e.data.password);o=new m({wasm:w,wasmBuffer:i})}S=s.GetPageCount(o.processor.wasmData.wasm);o.setPages(S),o.createAllPages(),p.postMessage({message:"PageLoaded",pageIndex:e.data.pageIndex,isZoomMode:e.data.isZoomMode,pageCount:S,pageSizes:o.pageSizes,pageRotation:o.pageRotation})}else if("LoadPageStampCollection"===e.data.message){var C=e.data.uploadedFile.length;s.Init();i=(T=d.asm&&d.asm.malloc?d.asm.malloc:d._malloc)(C);d.HEAPU8.set(e.data.uploadedFile,i);var B=new m({wasm:s.LoadMemDocument(i,C,e.data.password),wasmBuffer:i}),S=s.GetPageCount(B.processor.wasmData.wasm);B.setPages(S),B.createAllPages();var y=B.getPage(e.data.pageIndex),I=e.data;(v=y.render(null,I.zoomFactor,!1,null,null,null,!0)).message="LoadedStamp",v.annotName=e.data.AnnotName,v.rubberStampAnnotationPageNumber=e.data.rubberStampAnnotationPageNumber,v.annotationOrder=e.data.annotationOrder,v.collectionOrder=e.data.collectionOrder,v.isFormField=e.data.isFormField,v.isFormField&&(v.message="LoadedStampForFormFields",v.formFieldName=e.data.formFieldName,v.formFieldList=e.data.formFieldList,v.formFields=e.data.rubberStampAnnotation,v.PageIndex=e.data.PageIndex),p.postMessage(v)}if(o)if("renderPage"===e.data.message){var y=o.getPage(e.data.pageIndex),E=e.data,v=y.render(null,E.zoomFactor,E.isTextNeed,null,null,E.textDetailsId,null,e.data.cropBoxRect,e.data.mediaBoxRect);p.postMessage(v)}else if("renderPageSearch"===e.data.message){var y=o.getPage(e.data.pageIndex),b=e.data;(v=y.render(null,b.zoomFactor,b.isTextNeed,null,null,b.textDetailsId,null,e.data.cropBoxRect)).message="imageRenderedSearch",p.postMessage(v)}else if(-1!==e.data.message.indexOf("extractText")){var y=o.getPage(e.data.pageIndex),V=e.data,D=e.data.isSkipCharacterBounds;(v=y.render("extractText",V.zoomFactor,V.isTextNeed,null,null,V.textDetailsId,null,null,null,null,D)).message=e.data.message,v.isLayout=e.data.isLayout,v.isRenderText=e.data.isRenderText,v.jsonObject=e.data.jsonObject,v.requestType=e.data.requestType,v.annotationObject=e.data.annotationObject,v.pageIndex=e.data.pageIndex,v.options=e.data.options,v.isAPI=e.data.isAPI,v.isNeedToRender=e.data.isNeedToRender,p.postMessage(v)}else if("searchText"===e.data.message){for(var x=s.GetPageCount(o.processor.wasmData.wasm),Q=e.data.searchWord,M=new Uint16Array(Q.length+1),F=0;F<Q.length;F++)M[parseInt(F.toString(),10)]=Q.charCodeAt(F);M[Q.length]=0;var T=d.asm&&d.asm.malloc?d.asm.malloc:d._malloc,k=T(M.length*M.BYTES_PER_ELEMENT);d.HEAPU16.set(M,k/Uint16Array.BYTES_PER_ELEMENT);for(var P=0,N=!0===e.data.matchCase?1:0,R=e.data.startIndex,L=e.data.endIndex,U={},O=R;O<L;O++)!function(e){for(var t=-1,i=s.LoadPage(o.processor.wasmData.wasm,e),n=s.LoadTextPage(i),r=s.TextFindStart(n,k,N,0),a=s.GetPageHeight(i);s.TextFindNext(r);)!function(){P++,t++;var i=s.TextFindCount(r),o=s.TextFindResultIndex(r);U[parseInt(e.toString(),10)]||(U[parseInt(e.toString(),10)]={Indices:[],Bounds:{},PageOccurrence:0}),U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)]||(U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)]=[]),U[parseInt(e.toString(),10)].Indices.push(o);for(var l=Number.POSITIVE_INFINITY,d=0,p=Number.POSITIVE_INFINITY,c=0,u=0;u<i;u++)!function(i){var r=s.GetUnicodeChar(n,o+i),u=String.fromCharCode(r);if("\r"!==u&&"\n"!==u){var f=h(A,4,[-1,-1,-1,-1])(function(e,t,r,a){return s.GetCharBox(n,o+i,e,t,r,a)});l=Math.min(l,f[0]),d=Math.max(d,f[1]),p=Math.min(p,f[2]),c=Math.max(c,f[3])}if("\r"===u){var m=new g(l*(96/72),96/72*(a-(c-p)-p),96/72*(d-l),96/72*(c-p),"",null);U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)].push(m),U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)].sort(function(e,t){return e.Top===t.Top?e.Left-t.Left:e.Top-t.Top}),l=Number.POSITIVE_INFINITY,d=0,p=Number.POSITIVE_INFINITY,c=0}}(u);var f=new g(l*(96/72),96/72*(a-(c-p)-p),96/72*(d-l),96/72*(c-p),"",null);U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)].push(f),U[parseInt(e.toString(),10)].Bounds[parseInt(t.toString(),10)].sort(function(e,t){return e.Top===t.Top?e.Left-t.Left:e.Top-t.Top}),U[parseInt(e.toString(),10)].PageOccurrence=t+1}();s.TextFindClose(r),s.ClosePage(i)}(O);var z={totalSearchCount:P,resultPages:U,message:"textSearched",searchWord:Q,matchCase:e.data.matchCase,isRequestsend:e.data.isRequestsend,isCompletedSearch:L===x,endIndex:L};p.postMessage(z),U={},(G=d.asm&&d.asm.free?d.asm.free:d._free)(k)}else if("renderThumbnail"===e.data.message)new Promise(function(t,i){try{var n=o.getPage(e.data.pageIndex);if(null!==n.processor&&void 0!==n.processor){var r=n.render("thumbnail",null,e.data.isTextNeed,null,null,null,null,null,null,null,e.data.isSkipCharacterBounds,e.data.imageSize);r.isRenderText=e.data.isRenderText,r.jsonObject=e.data.jsonObject,r.requestType=e.data.requestType,t(r)}}catch(e){i(e)}}).then(function(e){p.postMessage(e)});else if("renderPreviewTileImage"===e.data.message)(v=(y=o.getPage(e.data.pageIndex)).render("thumbnail",null,e.data.isTextNeed,null,null,null,null,null,null,null,e.data.isSkipCharacterBounds,e.data.imageSize)).message="renderPreviewTileImage",v.isRenderText=e.data.isRenderText,v.jsonObject=e.data.jsonObject,v.requestType=e.data.requestType,v.startIndex=e.data.startIndex,v.endIndex=e.data.endIndex,v.imageSize=e.data.imageSize,v.initialLoad=e.data.initialLoad,p.postMessage(v);else if("printImage"===e.data.message){v=(y=o.getPage(e.data.pageIndex)).render("print",null,!1,e.data.printScaleFactor,e.data.printDevicePixelRatio);p.postMessage(v)}else if("extractImage"===e.data.message||"extractImages"===e.data.message){var y=o.getPage(e.data.pageIndex),H=e.data,v=y.render(null,H.zoomFactor,H.isTextNeed,null,null,H.textDetailsId,null,null,null,e.data.size);"extractImage"===e.data.message&&(v.message="imageExtracted"),"extractImages"===e.data.message&&(v.message="imagesExtracted"),p.postMessage(v)}else if("renderImageAsTile"===e.data.message){var Y=e.data,v=(y=o.getPage(e.data.pageIndex)).renderTileImage(Y.tileX,Y.tileY,Y.tileXCount,Y.tileYCount,Y.zoomFactor,e.data.isTextNeed,e.data.textDetailsId,e.data.cropBoxRect,e.data.mediaBoxRect);p.postMessage(v)}else if("renderImageAsTileSearch"===e.data.message){Y=e.data;(v=(y=o.getPage(e.data.pageIndex)).renderTileImage(Y.tileX,Y.tileY,Y.tileXCount,Y.tileYCount,Y.zoomFactor,e.data.isTextNeed,e.data.textDetailsId,e.data.cropBoxRect,e.data.mediaBoxRect)).message="renderTileImageSearch",p.postMessage(v)}else if("unloadFPDF"===e.data.message&&o){var G=d.asm&&d.asm.free?d.asm.free:d._free;G(o.processor.wasmData.wasmBuffer),s.CloseDocument(o.processor.wasmData.wasm),s.DestroyLibrary(),o=null}"unloadFPDF"===e.data.message&&p.postMessage({message:""})};var c=function(){function e(e,t){this.index=e,this.src=null,this.processor=t}return e.prototype.render=function(e,t,i,n,o,r,a,s,l,d,A,h){return this.processor.render(this.index,e,t,i,n,o,r,a,s,l,d,A,h)},e.prototype.renderTileImage=function(e,t,i,n,o,r,a,s,l){return this.processor.renderTileImage(this.index,e,t,i,n,o,r,a,s,l)},e}(),g=function(){function e(e,t,i,n,o,r){this.X=e,this.Y=t,this.Width=i,this.Height=n,this.Bottom=this.Y+this.Height,this.Right=this.X+this.Width,this.Top=this.Y,this.Left=this.X,this.Rotation=r,this.Text=o}return e}(),u=function(){function e(e){this.TextBounds=[],this.TextContent=[],this.CharacterBounds=[],this.PageText="",this.wasmData=e}return e.prototype.getPageSize=function(e){var t=this;return void 0===e&&(e=0),h(A,2,[-1,-1])(function(i,n){return s.GetPageSizeByIndex(t.wasmData.wasm,e,i,n)}).map(function(e){return parseInt((e*(96/72)).toString(),10)})},e.prototype.getCharBounds=function(e,t){return void 0===t&&(t=0),h(A,4,[-1,-1,-1,-1])(function(i,n,o,r){return s.GetCharBox(e,t,i,n,o,r)})},e.prototype.getRender=function(e,t,i,n,o,r,a,l){void 0===e&&(e=0);var A=s.REVERSE_BYTE_ORDER,h=(d.asm&&d.asm.malloc?d.asm.malloc:d._malloc)(t*i*4);d.HEAPU8.fill(0,h,h+t*i*4);var p=s.Bitmap_CreateEx(t,i,s.Bitmap_BGRA,h,4*t),c=s.LoadPage(this.wasmData.wasm,e);return s.Bitmap_FillRect(p,0,0,t,i,o?16777215:4294967295),s.RenderPageBitmap(p,c,0,0,t,i,0,A),s.Bitmap_Destroy(p),this.textExtraction(c,e,n,r,a,l),s.ClosePage(c),h},e.prototype.textExtraction=function(e,t,i,n,o,r){var a;if(i){var l=this.getPageSize(t),d=l[0],A=l[1];o&&n&&o.y&&n.y&&o.y!==n.y&&(A+=this.pointerToPixelConverter(o&&o.y?o.y:0));var h=s.LoadTextPage(e),p=s.GetPageRotation(e),c=s.TextCountChars(h);this.TextBounds=[],this.TextContent=[],this.CharacterBounds=[];for(var u="",f=0,m=0,w=0,C=0,B=[],S=[],y=[],I=[],E=[],v="",b=0,V=0,D=0,x=0,Q=0,M=!0,F=!1,T=!1,k=!1,P=0;P<=c;P++)if(r){var N=s.GetUnicodeChar(h,P),R=String.fromCharCode(N);P<c&&(u+=R)}else{var N=s.GetUnicodeChar(h,P),L=s.GetCharAngle(h,P),R=String.fromCharCode(N),U=this.getCharBounds(h,P),O=U[0],z=U[1],H=U[2],Y=U[3],G=this.pointerToPixelConverter(O)-this.pointerToPixelConverter(n&&n.x?n.x:0),J=A+this.pointerToPixelConverter(n&&n.y?n.y:0)-this.pointerToPixelConverter(Y),j=this.pointerToPixelConverter(z-O),K=this.pointerToPixelConverter(Y-H),W=parseInt((180*L/Math.PI).toString(),10);if(P<c)if(u+=R,270===W&&1===p){var Z=this.pointerToPixelConverter(H)-this.pointerToPixelConverter(n&&n.x?n.x:0),_=this.pointerToPixelConverter(O);K=this.pointerToPixelConverter(K);X=new g(Z,_,j,K,R,W);this.CharacterBounds.push(X)}else{X=new g(G,J,j,K,R,W);this.CharacterBounds.push(X)}switch(1!==p&&3!==p||(J=d-this.pointerToPixelConverter(Y)),R){case"\0":f=Math.min.apply(Math,B),m=Math.max.apply(Math,S),w=Math.min.apply(Math,y),C=Math.max.apply(Math,I);$=new g(b,D,V-b,x-D,v,Q);E.push($),this.textBoundsCalculation(E,f,m,C,w,p,d,A,c),E=[],M=!0,T=!1,v="",B=[],y=[],S=[],I=[],f=0,m=0,w=0,C=0;break;case"\r":if(P<c){q=new g(G,J,j,K,"\r\n",W);B.push(q.Top),S.push(q.Bottom),y.push(q.Left),I.push(q.Right),f=Math.min.apply(Math,B),m=Math.max.apply(Math,S),w=Math.min.apply(Math,y),C=Math.max.apply(Math,I);$=void 0;!1===M&&($=new g(b,D,V-b,x-D,v,Q),E.push($)),E.push(q),this.textBoundsCalculation(E,f,m,C,w,p,d,A,c),E=[],M=!0,T=!1,v="",B=[],y=[],S=[],I=[],f=0,m=0,w=0,C=0,u+="\n",L=s.GetCharAngle(h,P),O=(a=this.getCharBounds(h,P))[0],z=a[1],H=a[2],Y=a[3],G=this.pointerToPixelConverter(O),J=A-this.pointerToPixelConverter(Y),j=this.pointerToPixelConverter(z-O),K=this.pointerToPixelConverter(Y-H),W=parseInt((180*L/Math.PI).toString(),10);var X=new g(G,J,j,K,R,W);this.CharacterBounds.push(X),P++}break;case"�":case"￾":q=new g(G,J,j,K,R,W);B.push(q.Top),S.push(q.Bottom),y.push(q.Left),I.push(q.Right),f=Math.min.apply(Math,B),m=Math.max.apply(Math,S),w=Math.min.apply(Math,y),C=Math.max.apply(Math,I);$=void 0;!1===M&&($=new g(b,D,V-b,x-D,v,Q),E.push($)),"�"===R&&E.push(q),this.textBoundsCalculation(E,f,m,C,w,p,d,A,c),E=[],M=!0,T=!1,v="",B=[],y=[],S=[],I=[],f=0,m=0,w=0,C=0;break;default:if(0===j||0===K){F=!0,f=Math.min.apply(Math,B),m=Math.max.apply(Math,S),w=Math.min.apply(Math,y),C=Math.max.apply(Math,I);$=new g(b,D,V-b,x-D,v,Q);E.push($),D=(q=new g(G,J,j,K,R,W)).Top,x=q.Bottom,b=q.Left,V=q.Right,v=R,Q=E[E.length-1].Rotation,$=new g(b,D,V-b,x-D,v,Q),E.push($),D=0,x=0,b=0,V=0,v="",Q=0,M=!0,T=!0}else{!0===M&&(D=J,x=J+K,b=G,V=G+j);var q=new g(G,J,j,K,R,W);if(" "!==R){if(T&&E.length>0&&W===E[0].Rotation&&((180===W||0===W)&&Math.abs(q.Y-E[0].Y)>11&&(k=!0),(270===W||90===W)&&Math.abs(q.X-E[0].X)>11&&(k=!0)),F&&E.length>=1&&E[E.length-1].Rotation!==q.Rotation||k){F=!1,k=!1,f=Math.min.apply(Math,B),m=Math.max.apply(Math,S),w=Math.min.apply(Math,y),C=Math.max.apply(Math,I);$=void 0;!1===M&&($=new g(b,D,V-b,x-D,v,Q),E.push($)),this.textBoundsCalculation(E,f,m,C,w,p,d,A,c),E=[],M=!0,v="",B=[],y=[],S=[],I=[],f=0,m=0,w=0,C=0}B.push(q.Top),S.push(q.Bottom),y.push(q.Left),I.push(q.Right),D=Math.min(D,q.Top),x=Math.max(x,q.Bottom),b=Math.min(b,q.Left),V=Math.max(V,q.Right),v+=R,Q=q.Rotation,M=!1,T=!1}else{var $=new g(b,D,V-b,x-D,v,Q);E.push($),D=q.Top,x=q.Bottom,b=q.Left,V=q.Right,v=R,Q=q.Rotation,$=new g(b,D,V-b,x-D,v,Q),E.push($),D=0,x=0,b=0,V=0,v="",Q=0,M=!0,T=!0}}}}s.CloseTextPage(h),this.Rotation=p,this.PageText=u}},e.prototype.pointerToPixelConverter=function(e){return e*(96/72)},e.prototype.textBoundsCalculation=function(e,t,i,n,o,r,a,s,l){var d,A=!1,h="",p=e.reduce(function(e,t){return e+t.Text},""),c=this.checkIsRtlText(p);if(l>=5e3){for(var u=[],f=0,m=function(e,t){t.minX=Math.min(t.minX,e.X),t.minY=Math.min(t.minY,e.Y),t.maxX=Math.max(t.maxX,e.X+e.Width),t.maxY=Math.max(t.maxY,e.Y+e.Height)},w=0;w<e.length;w++)!function(t){var i=0;if(t<e.length-1&&(i=e[parseInt((t+1).toString(),10)].Left-e[parseInt(t.toString(),10)].Right),i>=5&&"\r\n"!==e[parseInt(t.toString(),10)].Text){for(var n={minX:e[parseInt(f.toString(),10)].X,minY:e[parseInt(f.toString(),10)].Y,maxX:e[parseInt(f.toString(),10)].X,maxY:e[parseInt(f.toString(),10)].Y},o="",r=[],a=f;a<=t;a++){w=e[parseInt(a.toString(),10)];m(w,n),r.push(w.Height),o+=w.Text}var s=n.maxX-n.minX,l=n.maxY-n.minY,d=new g(n.minX,n.minY,s,l,o,e[0].Rotation);u.push(d),f=t+1}else if(0===u.length&&t===e.length-1){var A={minX:e[0].X,minY:e[0].Y,maxX:e[0].X,maxY:e[0].Y};e.forEach(function(e){m(e,A)});var s=A.maxX-A.minX,l=A.maxY-A.minY,h=e.map(function(e){return e.Text}).join(""),p=new g(A.minX,A.minY,s,l,h,e[0].Rotation);e=[p]}else if(t===e.length-1){for(var n={minX:e[parseInt(f.toString(),10)].X,minY:e[parseInt(f.toString(),10)].Y,maxX:e[parseInt(f.toString(),10)].X,maxY:e[parseInt(f.toString(),10)].Y},c="",r=[],a=f;a<=t;a++){var w=e[parseInt(a.toString(),10)];m(w,n),r.push(w.Height),c+=w.Text}var s=n.maxX-n.minX,l=n.maxY-n.minY,C=new g(n.minX,n.minY,s,l,c,e[0].Rotation);u.push(C)}}(w);u.length>0&&(e=u)}for(var C=0;C<e.length;C++){var B=e[parseInt(C.toString(),10)].Rotation;if(0===B||180===B?(A&&(this.TextBounds.push(d),this.TextContent.push(h),h=""),A=!1,0===r?d=new g(e[parseInt(C.toString(),10)].Left,t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[parseInt(C.toString(),10)].Left,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-e[parseInt(C.toString(),10)].Left,s-t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-e[parseInt(C.toString(),10)].Left,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B))):90===B||270===B?(A&&(this.TextBounds.push(d),this.TextContent.push(h),h=""),A=!1,0===r?d=new g(o,e[parseInt(C.toString(),10)].Top,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-e[parseInt(C.toString(),10)].Top,o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-o,s-e[parseInt(C.toString(),10)].Top,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(e[parseInt(C.toString(),10)].Top,s-o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B))):A?h+=e[parseInt(C.toString(),10)].Text:(A=!0,h+=e[parseInt(C.toString(),10)].Text,0===r?d=new g(e[parseInt(C.toString(),10)].Left,t,n-o,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[parseInt(C.toString(),10)].Left,n-o,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-e[parseInt(C.toString(),10)].Left,s-t,n-o,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-e[parseInt(C.toString(),10)].Left,n-o,i-t,e[parseInt(C.toString(),10)].Text,B))),!A&&" "===e[parseInt(C.toString(),10)].Text&&0!==C&&C+1<=e.length)if(c)c&&C+1!==e.length?((30<(S=e[C-1].Left-(e[C+1].Left+e[C+1].Width))||S<0)&&(S=0),d=new g(e[C+1].Left+e[C+1].Width,t,S,i-t,e[parseInt(C.toString(),10)].Text,e[parseInt(C.toString(),10)].Rotation)):c&&(d=new g(e[C-1].Left-e[parseInt(C.toString(),10)].Width,t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,e[parseInt(C.toString(),10)].Rotation));else if(C+1!==e.length){var S=0;switch(B){case 0:(30<(S=e[C+1].Left-(e[C-1].Left+e[C-1].Width))||S<0)&&(S=0),0===r?d=new g(e[C-1].Left+e[C-1].Width,t,S,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[C-1].Left+e[C-1].Width,S,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-(e[C-1].Left+e[C-1].Width),s-t,S,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-(e[C-1].Left+e[C-1].Width),S,i-t,e[parseInt(C.toString(),10)].Text,B));break;case 90:(30<(S=e[C+1].Top-(e[C-1].Top+e[C-1].Height))||S<0)&&(S=0),0===r?d=new g(o,e[C-1].Top+e[C-1].Height,n-o,S,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-(e[C-1].Top+e[C-1].Height),o,n-o,S,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-o,s-(e[C-1].Top+e[C-1].Height),n-o,S,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(e[C-1].Top+e[C-1].Height,s-o,n-o,S,e[parseInt(C.toString(),10)].Text,B));break;case 180:(30<(S=e[C-1].Left-(e[C+1].Left+e[C+1].Width))||S<0)&&(S=0),0===r?d=new g(e[C+1].Left+e[C+1].Width,t,S,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[C+1].Left+e[C+1].Width,S,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-(e[C+1].Left+e[C+1].Width),s-t,S,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-(e[C+1].Left+e[C+1].Width),S,i-t,e[parseInt(C.toString(),10)].Text,B));break;case 270:(30<(S=e[C-1].Top-(e[C+1].Top+e[C+1].Height))||S<0)&&(S=0),0===r?d=new g(o,e[C+1].Top+e[C+1].Height,n-o,S,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-(e[C+1].Top+e[C+1].Height),o,n-o,S,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-o,s-(e[C+1].Top+e[C+1].Height),n-o,S,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(e[C+1].Top+e[C+1].Height,s-o,n-o,S,e[parseInt(C.toString(),10)].Text,B))}}else switch(B){case 90:0===r?d=new g(o,e[C-1].Top+e[C-1].Height,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-(e[C-1].Top+e[C-1].Height),o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-o,s-(e[C-1].Top+e[C-1].Height),n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(e[C-1].Top+e[C-1].Height,s-o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B));break;case 270:0===r?d=new g(o,e[C-1].Top-e[parseInt(C.toString(),10)].Height,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-(e[C-1].Top-e[parseInt(C.toString(),10)].Height),o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-o,s-e[C-1].Top-e[parseInt(C.toString(),10)].Height,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(e[C-1].Top-e[parseInt(C.toString(),10)].Height,s-o,n-o,e[parseInt(C.toString(),10)].Height,e[parseInt(C.toString(),10)].Text,B));break;case 180:0===r?d=new g(e[C-1].Left-e[parseInt(C.toString(),10)].Width,t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[C-1].Left-e[parseInt(C.toString(),10)].Width,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-(e[C-1].Left-e[parseInt(C.toString(),10)].Width),s-t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-(e[C-1].Left-e[parseInt(C.toString(),10)].Width),e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B));break;case 0:0===r?d=new g(e[C-1].Left+e[C-1].Width,t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):1===r?d=new g(a-t,e[C-1].Left+e[C-1].Width,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):2===r?d=new g(a-(e[C-1].Left+e[C-1].Width),s-t,e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B):3===r&&(d=new g(t,s-(e[C-1].Left+e[C-1].Width),e[parseInt(C.toString(),10)].Width,i-t,e[parseInt(C.toString(),10)].Text,B))}A||(this.TextBounds.push(d),this.TextContent.push(e[parseInt(C.toString(),10)].Text))}A&&(this.TextBounds.push(d),this.TextContent.push(h))},e.prototype.checkIsRtlText=function(e){return new RegExp("^[^A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02B8\\u0300-\\u0590\\u0800-\\u1FFF\\u2C00-\\uFB1C\\uFDFE-\\uFE6F\\uFEFD-\\uFFFF]*[\\u0591-\\u07FF\\uFB1D-\\uFDFD\\uFE70-\\uFEFC]").test(e)},e.prototype.getPageRender=function(e,t,i,n,o,r,a,s){void 0===e&&(e=0);var l=this.getRender(e,t,i,n,o,r,a,s),A=[];return A=d.HEAPU8.slice(l,l+t*i*4),(d.asm&&d.asm.free?d.asm.free:d._free)(l),A},e.prototype.render=function(e,t,i,n,o,r,a,l,d,A,h,p,c){void 0===e&&(e=0);var g=this.getPageSize(e),u=g[0],f=g[1];if(isNaN(u)&&isNaN(f)){y=s.LoadPage(this.wasmData.wasm,e);f=this.pointerToPixelConverter(s.GetPageHeight(y)),u=this.pointerToPixelConverter(s.GetPageWidth(y))}if("thumbnail"===t){var m=Math.round(149.55*(c||1)),w=Math.round(211.5*(c||1));return{value:S=this.getPageRender(e,m,w,n,null,null,null,p),width:m,height:w,pageIndex:e,message:"renderThumbnail",textBounds:this.TextBounds,textContent:this.TextContent,rotation:this.Rotation,pageText:this.PageText,characterBounds:this.CharacterBounds,zoomFactor:i,isTextNeed:n,textDetailsId:a,imageSize:c}}if("print"===t){var C=u,B=f;"Width"===(u>f?"Width":"Height")?4493===(C=u>4493?4493:u)&&(B=f/(u/4493)):4493===(B=f>4493?4493:f)&&(C=u/(f/4493));var m=Math.round(C*o*1.5),w=Math.round(B*o*1.5);return{value:S=this.getPageRender(e,m,w,!1,null,null,null,p),width:m,height:w,pageIndex:e,pageWidth:u,pageHeight:f,message:"printImage",printDevicePixelRatio:r}}for(var m=Math.round(1.5*(h&&null!==h?h.width:u)*i),w=Math.round(1.5*(h&&null!==h?h.height:f)*i);m*w*4*2>=2147483648;)i-=.1,m=Math.round(this.pointerToPixelConverter(u)*i),w=Math.round(this.pointerToPixelConverter(f)*i);var S=null;if("extractText"===t){var y=s.LoadPage(this.wasmData.wasm,e);this.textExtraction(y,e,n,d,A,p),s.ClosePage(y)}else S=this.getPageRender(e,m,w,n,l,d,A,p);return{value:S,width:m,height:w,pageWidth:u,pageHeight:f,pageIndex:e,message:"imageRendered",textBounds:this.TextBounds,textContent:this.TextContent,rotation:this.Rotation,pageText:this.PageText,characterBounds:this.CharacterBounds,zoomFactor:i,isTextNeed:n,textDetailsId:a}},e.prototype.renderTileImage=function(e,t,i,n,o,r,a,l,A,h){void 0===e&&(e=0);var p=this.getPageSize(e),c=p[0],g=p[1],u=Math.round(1.5*c*r),f=Math.round(1.5*g*r),m=Math.round(u/n),w=Math.round(f/o),C=s.REVERSE_BYTE_ORDER,B=(d.asm&&d.asm.malloc?d.asm.malloc:d._malloc)(m*w*4);d.HEAPU8.fill(0,B,B+m*w*4);var S=s.Bitmap_CreateEx(m,w,4,B,4*m),y=s.LoadPage(this.wasmData.wasm,e);s.Bitmap_FillRect(S,0,0,m,w,4294967295),s.RenderPageBitmap(S,y,-t*m,-i*w,u,f,0,C),s.Bitmap_Destroy(S),this.textExtraction(y,e,a,A,h),s.ClosePage(y);var I=B,E=[];return E=d.HEAPU8.slice(I,I+m*w*4),(d.asm&&d.asm.free?d.asm.free:d._free)(I),0===t&&0===i?{value:E,w:m,h:w,noTileX:n,noTileY:o,x:t,y:i,pageIndex:e,message:"renderTileImage",textBounds:this.TextBounds,textContent:this.TextContent,rotation:this.Rotation,pageText:this.PageText,characterBounds:this.CharacterBounds,textDetailsId:l,isTextNeed:a,zoomFactor:r}:{value:E,w:m,h:w,noTileX:n,noTileY:o,x:t,y:i,pageIndex:e,message:"renderTileImage",textDetailsId:l,isTextNeed:a,zoomFactor:r}},e.prototype.getLastError=function(){switch(s.GetLastError()){case s.LAST_ERROR.SUCCESS:return"success";case s.LAST_ERROR.UNKNOWN:return"unknown error";case s.LAST_ERROR.FILE:return"file not found or could not be opened";case s.LAST_ERROR.FORMAT:return"file not in PDF format or corrupted";case s.LAST_ERROR.PASSWORD:return"password required or incorrect password";case s.LAST_ERROR.SECURITY:return"unsupported security scheme";case s.LAST_ERROR.PAGE:return"page not found or content error";default:return"unknown error"}},e}(),f=function(){function e(e,t){this.Width=e,this.Height=t,this.IsEmpty=0===e&&0===t}return e}(),m=function(){function e(e){this.pages=[],this.pageSizes={},this.pageRotation=[],this.processor=new u(e)}return e.prototype.setPages=function(e){this.pages=Array(e).fill(null)},e.prototype.createAllPages=function(){for(var e=0;e<this.pages.length;e++){this.pages[parseInt(e.toString(),10)]=new c(parseInt(e.toString(),10),this.processor),this.pages[parseInt(e.toString(),10)]=new c(e,this.processor);var t=this.processor.getPageSize(e);this.pageSizes[parseInt(e.toString(),10)]=new f(t[0],t[1]);var i=s.LoadPage(o.processor.wasmData.wasm,e),n=s.GetPageRotation(i);this.pageRotation.push(n)}},e.prototype.getPage=function(e){var t=this.pages[parseInt(e.toString(),10)];return t||(t=new c(e),this.pages[parseInt(e.toString(),10)]=t),t},e}()}function _e(){return fo}var Xe=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),qe=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a},$e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Xe(n,e),qe([t.Property(0)],n.prototype,"x",void 0),qe([t.Property(0)],n.prototype,"y",void 0),qe([t.Property(0)],n.prototype,"width",void 0),qe([t.Property(0)],n.prototype,"height",void 0),qe([t.Property(0)],n.prototype,"left",void 0),qe([t.Property(0)],n.prototype,"top",void 0),qe([t.Property(0)],n.prototype,"right",void 0),qe([t.Property(0)],n.prototype,"bottom",void 0),qe([t.Complex({x:0,y:0},i.Point)],n.prototype,"location",void 0),qe([t.Complex(new i.Size(0,0),i.Size)],n.prototype,"size",void 0),n}(t.ChildProperty),et=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Xe(i,e),qe([t.Property(!1)],i.prototype,"isBold",void 0),qe([t.Property(!1)],i.prototype,"isItalic",void 0),qe([t.Property(!1)],i.prototype,"isUnderline",void 0),qe([t.Property(!1)],i.prototype,"isStrikeout",void 0),i}(t.ChildProperty),tt=function(e){function i(t,i,n,o){return e.call(this,t,i,n,o)||this}return Xe(i,e),qe([t.Property("")],i.prototype,"id",void 0),qe([t.Property("Rectangle")],i.prototype,"shapeAnnotationType",void 0),qe([t.Property(null)],i.prototype,"formFieldAnnotationType",void 0),qe([t.Property("")],i.prototype,"measureType",void 0),qe([t.Property("")],i.prototype,"author",void 0),qe([t.Property("")],i.prototype,"modifiedDate",void 0),qe([t.Property("")],i.prototype,"subject",void 0),qe([t.Property("")],i.prototype,"notes",void 0),qe([t.Property(!1)],i.prototype,"isCommentLock",void 0),qe([t.Property("black")],i.prototype,"strokeColor",void 0),qe([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),qe([t.Property("#ffffff00")],i.prototype,"stampFillColor",void 0),qe([t.Property("black")],i.prototype,"stampStrokeColor",void 0),qe([t.Property("")],i.prototype,"data",void 0),qe([t.Property(1)],i.prototype,"opacity",void 0),qe([t.Property(1)],i.prototype,"thickness",void 0),qe([t.Property("")],i.prototype,"borderStyle",void 0),qe([t.Property("")],i.prototype,"borderDashArray",void 0),qe([t.Property(0)],i.prototype,"rotateAngle",void 0),qe([t.Property(!1)],i.prototype,"isCloudShape",void 0),qe([t.Property(0)],i.prototype,"cloudIntensity",void 0),qe([t.Property(40)],i.prototype,"leaderHeight",void 0),qe([t.Property(null)],i.prototype,"lineHeadStart",void 0),qe([t.Property(null)],i.prototype,"lineHeadEnd",void 0),qe([t.Property([])],i.prototype,"vertexPoints",void 0),qe([t.Property(null)],i.prototype,"sourcePoint",void 0),qe([t.Property("None")],i.prototype,"sourceDecoraterShapes",void 0),qe([t.Property("None")],i.prototype,"taregetDecoraterShapes",void 0),qe([t.Property(null)],i.prototype,"targetPoint",void 0),qe([t.Property([])],i.prototype,"segments",void 0),qe([t.Complex({x:0,y:0},$e)],i.prototype,"bounds",void 0),qe([t.Property(0)],i.prototype,"pageIndex",void 0),qe([t.Property(-1)],i.prototype,"zIndex",void 0),qe([t.Property(null)],i.prototype,"wrapper",void 0),qe([t.Property(!1)],i.prototype,"isDynamicStamp",void 0),qe([t.Property("")],i.prototype,"dynamicText",void 0),qe([t.Property("")],i.prototype,"annotName",void 0),qe([t.Property({})],i.prototype,"review",void 0),qe([t.Property([])],i.prototype,"comments",void 0),qe([t.Property("#000")],i.prototype,"fontColor",void 0),qe([t.Property(16)],i.prototype,"fontSize",void 0),qe([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),qe([t.Property("None")],i.prototype,"fontStyle",void 0),qe([t.Property(!1)],i.prototype,"enableShapeLabel",void 0),qe([t.Property("label")],i.prototype,"labelContent",void 0),qe([t.Property("#ffffff00")],i.prototype,"labelFillColor",void 0),qe([t.Property(15)],i.prototype,"labelMaxLength",void 0),qe([t.Property("")],i.prototype,"template",void 0),qe([t.Property("")],i.prototype,"templateSize",void 0),qe([t.Property(1)],i.prototype,"labelOpacity",void 0),qe([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),qe([t.Property("#ffffff00")],i.prototype,"labelBorderColor",void 0),qe([t.Property("left")],i.prototype,"textAlign",void 0),qe([t.Property("")],i.prototype,"signatureName",void 0),qe([t.Property(0)],i.prototype,"minHeight",void 0),qe([t.Property(0)],i.prototype,"minWidth",void 0),qe([t.Property(0)],i.prototype,"maxHeight",void 0),qe([t.Property(0)],i.prototype,"maxWidth",void 0),qe([t.Property(!1)],i.prototype,"isLock",void 0),qe([t.Property("UI Drawn Annotation")],i.prototype,"annotationAddMode",void 0),qe([t.Property("")],i.prototype,"annotationSettings",void 0),qe([t.Property(16)],i.prototype,"previousFontSize",void 0),qe([t.Complex({isBold:!1,isItalic:!1,isStrikeout:!1,isUnderline:!1},et)],i.prototype,"font",void 0),qe([t.Complex({x:0,y:0},$e)],i.prototype,"labelBounds",void 0),qe([t.Property(null)],i.prototype,"customData",void 0),qe([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),qe([t.Property(!0)],i.prototype,"isPrint",void 0),qe([t.Property(!1)],i.prototype,"isReadonly",void 0),qe([t.Property(0)],i.prototype,"pageRotation",void 0),qe([t.Property("")],i.prototype,"icon",void 0),qe([t.Property(!1)],i.prototype,"isAddAnnotationProgrammatically",void 0),qe([t.Property(!1)],i.prototype,"isTransparentSet",void 0),i}(t.ChildProperty),it=function(e){function i(t,i,n,o){return e.call(this,t,i,n,o)||this}return Xe(i,e),qe([t.Property("")],i.prototype,"id",void 0),qe([t.Property("")],i.prototype,"signatureType",void 0),qe([t.Property("")],i.prototype,"name",void 0),qe([t.Property("")],i.prototype,"value",void 0),qe([t.Property(null)],i.prototype,"formFieldAnnotationType",void 0),qe([t.Property("#daeaf7ff")],i.prototype,"backgroundColor",void 0),qe([t.Property("black")],i.prototype,"color",void 0),qe([t.Property("#303030")],i.prototype,"borderColor",void 0),qe([t.Property("")],i.prototype,"tooltip",void 0),qe([t.Property(1)],i.prototype,"opacity",void 0),qe([t.Property(1)],i.prototype,"thickness",void 0),qe([t.Property(0)],i.prototype,"rotateAngle",void 0),qe([t.Complex({x:0,y:0},$e)],i.prototype,"bounds",void 0),qe([t.Property(0)],i.prototype,"pageIndex",void 0),qe([t.Property(1)],i.prototype,"pageNumber",void 0),qe([t.Property(-1)],i.prototype,"zIndex",void 0),qe([t.Property(null)],i.prototype,"wrapper",void 0),qe([t.Property(16)],i.prototype,"fontSize",void 0),qe([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),qe([t.Property("None")],i.prototype,"fontStyle",void 0),qe([t.Property("left")],i.prototype,"alignment",void 0),qe([t.Property(0)],i.prototype,"minHeight",void 0),qe([t.Property(0)],i.prototype,"minWidth",void 0),qe([t.Property(0)],i.prototype,"maxHeight",void 0),qe([t.Property(0)],i.prototype,"maxWidth",void 0),qe([t.Property(0)],i.prototype,"maxLength",void 0),qe([t.Property("visible")],i.prototype,"visibility",void 0),qe([t.Property(!0)],i.prototype,"isPrint",void 0),qe([t.Property(!1)],i.prototype,"isReadonly",void 0),qe([t.Property(!1)],i.prototype,"isChecked",void 0),qe([t.Property(!1)],i.prototype,"isSelected",void 0),qe([t.Property(!1)],i.prototype,"isRequired",void 0),qe([t.Property(!1)],i.prototype,"isMultiline",void 0),qe([t.Property(!1)],i.prototype,"isTransparent",void 0),qe([t.Property(!1)],i.prototype,"insertSpaces",void 0),qe([t.Property("")],i.prototype,"options",void 0),qe([t.Property()],i.prototype,"signatureIndicatorSettings",void 0),qe([t.Complex({isBold:!1,isItalic:!1,isStrikeout:!1,isUnderline:!1},et)],i.prototype,"font",void 0),qe([t.Property()],i.prototype,"selectedIndex",void 0),qe([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),nt=function(){function e(){this.pageIdTemp=0,this.zIndexTemp=-1,this.childNodesTemp=[],this.objects=[],this.zIndexTemp=-1,this.pageIdTemp=0}return Object.defineProperty(e.prototype,"pageId",{get:function(){return this.pageIdTemp},set:function(e){this.pageIdTemp=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this.zIndexTemp},set:function(e){this.zIndexTemp=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"objects",{get:function(){return this.childNodesTemp},set:function(e){this.childNodesTemp=e},enumerable:!0,configurable:!0}),e}(),ot=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),rt=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a},at=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ot(n,e),n.prototype.init=function(e){var n=new i.Container;if(n.measureChildren=!1,n.children=[],this.formFields&&this.formFields.length>0)for(o=0;o<this.formFields.length;o++){a=(r=e.pdfViewer.nameTable[this.formFields[parseInt(o.toString(),10)].id]).wrapper;n.children.push(a)}else if(this.annotations)for(var o=0;o<this.annotations.length;o++)if(!t.isNullOrUndefined(this.annotations[parseInt(o.toString(),10)])){var r=e.pdfViewer.nameTable[this.annotations[parseInt(o.toString(),10)].id],a=r.wrapper;n.children.push(a)}return this.wrapper=n,n},rt([t.Property(null)],n.prototype,"wrapper",void 0),rt([t.Collection([],tt)],n.prototype,"annotations",void 0),rt([t.Collection([],it)],n.prototype,"formFields",void 0),rt([t.Property()],n.prototype,"width",void 0),rt([t.Property()],n.prototype,"height",void 0),rt([t.Property(0)],n.prototype,"rotateAngle",void 0),rt([t.Property(0)],n.prototype,"offsetX",void 0),rt([t.Property(0)],n.prototype,"offsetY",void 0),rt([t.Complex({x:.5,y:.5},i.Point)],n.prototype,"pivot",void 0),n}(t.ChildProperty),st={OpenArrow:"M15.9,23 L5,16 L15.9,9 L17,10.7 L8.7,16 L17,21.3Z",Square:"M0,0 L10,0 L10,10 L0,10 z",Fletch:"M14.8,10c0,0-3.5,6,0.2,12c0,0-2.5-6-10.9-6C4.1,16,11.3,16,14.8,10z",OpenFetch:"M6,17c-0.6,0-1-0.4-1-1s0.4-1,1-1c10.9,0,11-5,11-5c0-0.6,0.4-1,1-1s1,0.4,1,1C19,10.3,18.9,17,6,17C6,17,6,17,6,17z M18,23c-0.5,0-1-0.4-1-1c0-0.2-0.3-5-11-5c-0.6,0-1-0.5-1-1s0.4-1,1-1c0,0,0,0,0,0c12.9,0,13,6.7,13,7    C19,22.6,18.6,23,18,23z",IndentedArrow:"M17,10c0,0-4.5,5.5,0,12L5,16L17,10z",OutdentedArrow:"M14.6,10c0,0,5.4,6,0,12L5,16L14.6,10z",DoubleArrow:"M19,10 L19,22 L13,16Z M12,10 L12,22 L6,16Z",Arrow:"M15,10 L15,22 L5,16Z",Diamond:"M12,23l-7-7l7-7l6.9,7L12,23z",Circle:"M0,50 A50,50,0 1 1 100,50 A50,50,0 1 1 0,50 Z",Butt:"M0,0 L0,90"},lt=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),dt=function(e){function i(t){var i=e.call(this)||this;return i.templateFn=i.templateCompiler(t),i}return lt(i,e),i.prototype.templateCompiler=function(e){if(e)try{return"function"!=typeof e&&document.querySelectorAll(e).length?t.compile(document.querySelector(e).innerHTML.trim()):t.compile(e)}catch(i){return t.compile(e)}},i.prototype.getNodeTemplate=function(){return this.templateFn},i}(i.DrawingElement),At=function(){function e(e){this.isDynamicStamps=!1,this.copiedElementID="",this.isPasted=!1,this.pdfViewer=e,this.renderer=new i.DrawingRenderer("this.pdfViewer.element.i
10d",!1),this.svgRenderer=new i.SvgRenderer}return e.prototype.renderLabels=function(e){var t=e.annotations;if(t)for(var i=0;i<t.length;i++){var n=t[parseInt(i.toString(),10)];this.initObject(n)}},e.prototype.createNewZindexTable=function(e){var t=new nt;return this.pdfViewer.zIndex++,t.pageId=this.pdfViewer.zIndex,this.pdfViewer.zIndexTable.push(t),t},e.prototype.getPageTable=function(e){var t;if(void 0!==this.pdfViewer.zIndexTable.length){for(var i=!0,n=0;n<this.pdfViewer.zIndexTable.length;n++)if(this.pdfViewer.zIndexTable[parseInt(n.toString(),10)].pageId===e){i=!1,t=this.pdfViewer.zIndexTable[parseInt(n.toString(),10)];break}i&&((t=this.createNewZindexTable(e)).pageId=e)}else t=this.createNewZindexTable(e);return t},e.prototype.setZIndex=function(e,t){if(void 0!==t.pageIndex){var i=this.getPageTable(t.pageIndex),n=!1;if("Polygon"!==t.shapeAnnotationType)for(var o=0;o<i.objects.length;o++)if(t.id===i.objects[parseInt(o.toString(),10)].id){i.objects.splice(parseInt(o.toString(),10),1),i.objects.splice(parseInt(o.toString(),10),0,t),n=!0;break}if(!n)if(-1===t.zIndex)i.zIndex++,t.zIndex=i.zIndex,i.objects.push(t);else{var r=i.objects.length;t.zIndex=r++,i.objects.push(t)}}},e.prototype.initObject=function(e){return this.setZIndex(this.pdfViewer.zIndex,e),i.createMeasureElements(),g(e)?(this.initLine(e),e.wrapper.measure(new i.Size(void 0,void 0)),e.wrapper.arrange(e.wrapper.desiredSize)):this.initNode(e),e.wrapper,this.pdfViewer.nameTable[e.id]=e,e},e.prototype.initNode=function(e){var t,n=this.initContainer(e);n.children||(n.children=[]),t||(t=this.init(e,n)),n.rotateAngle=e.rotateAngle,n.measure(new i.Size(e.wrapper.width,e.wrapper.height)),n.arrange(n.desiredSize),this.isDynamicStamps&&(this.pdfViewer.annotation.stampAnnotationModule.updateSessionStorage(e,null,"dynamicStamp"),this.isDynamicStamps=!1)},e.prototype.init=function(e,t){var n;n=new i.DrawingElement;var o=this.pdfViewer.annotationModule?this.pdfViewer.annotationModule.findAnnotationSettings(e):{},r=0,a=0,s=0,l=0;(o.minWidth||o.maxWidth||o.minHeight||o.maxHeight)&&(r=o.maxHeight?o.maxHeight:2e3,a=o.maxWidth?o.maxWidth:2e3,s=o.minHeight?o.minHeight:0,l=o.minWidth?o.minWidth:0);var d=!1;return(s||l||r||a)&&(d=!0),n=e.formFieldAnnotationType?this.initFormFields(e,n,t):this.initAnnotationObject(e,void 0,n,t,!1,void 0,d,r,a,l,s),n.id=e.id+"_content",n.relativeMode="Object","Stamp"!==e.shapeAnnotationType&&(void 0!==e.bounds.width&&(n.width=e.bounds.width,d&&(n.width<l||n.width>a)&&(n.width<l&&(n.width=l),n.width>a&&(n.width=a))),n.horizontalAlignment="Stretch",void 0!==e.bounds.height&&(n.height=e.bounds.height,d&&(n.height<s||n.width>r)&&(n.height<s&&(n.height=s),n.height>r&&(n.height=r))),u(e,n),this.pdfViewer.viewerBase.drawSignatureWithTool&&"SignatureText"===e.shapeAnnotationType&&(n.style.strokeWidth=0)),n.isRectElement=!0,n.verticalAlignment="Stretch",n},e.prototype.initFormFields=function(e,t,i){switch(e.formFieldAnnotationType){case"Textbox":case"PasswordField":case"Checkbox":case"RadioButton":case"DropdownList":case"ListBox":case"SignatureField":case"InitialField":(t=new dt).id=e.id+"_content",i.children.push(t)}return t},e.prototype.initAnnotationObject=function(e,t,n,o,r,a,s,l,d,A,h){switch(e.shapeAnnotationType){case"Ellipse":(t=new i.PathElement).data="M80.5,12.5 C80.5,19.127417 62.59139,24.5 40.5,24.5 C18.40861,24.5 0.5,19.127417 0.5,12.5C0.5,5.872583 18.40861,0.5 40.5,0.5 C62.59139,0.5 80.5,5.872583 80.5,12.5 z",n=t,o.children.push(n),e.enableShapeLabel&&((m=this.textElement(e)).content=e.labelContent,m.style.color=e.fontColor,m.style.strokeColor=e.labelBorderColor,m.style.fill=e.labelFillColor,m.style.fontSize=e.fontSize,m.style.fontFamily=e.fontFamily,m.style.opacity=e.labelOpacity,o.children.push(m));break;case"Path":(t=new i.PathElement).data=e.data,n=t,o.children.push(n);break;case"HandWrittenSignature":case"Ink":(t=new i.PathElement).data=e.data,t.style.strokeColor=e.strokeColor,t.style.strokeWidth=e.thickness,t.style.opacity=e.opacity,n=t,o.children.push(n);break;case"Polygon":(t=new i.PathElement).data=U(e.vertexPoints),n=t,o.children.push(n);break;case"Stamp":if(r=!0,this.isDynamicStamps=!0,e&&e.annotationAddMode&&("Existing Annotation"===e.annotationAddMode||"Imported Annotation"===e.annotationAddMode)&&(e.bounds.width=e.bounds.width-20,e.bounds.height=e.bounds.height-20),e.isDynamicStamp){o.horizontalAlignment="Left",(n=a=new i.DrawingElement).cornerRadius=10,n.style.fill=e.stampFillColor,n.style.strokeColor=e.stampStrokeColor,o.children.push(n);w=this.textElement(e);(w=new i.TextElement).style.fontFamily="Helvetica",w.style.fontSize=14,w.style.italic=!0,w.style.bold=!0,w.style.color=e.fillColor,w.rotateValue=void 0,w.content=e.dynamicText,w.relativeMode="Point",w.margin.left
10=10,w.margin.bottom=-7,w.setOffsetWithRespectToBounds(0,.57,null),w.relativeMode="Point","Existing Annotation"!==e.annotationAddMode&&"Imported Annotation"!==e.annotationAddMode||(w.style.fontSize=this.fontSizeCalculation(e,w,e.bounds.width-10)),o.children.push(w),(p=new i.PathElement).id=i.randomId()+"_stamp",p.data=e.data,p.width=e.bounds.width,s&&e.bounds.width>d&&(p.width=d,e.bounds.width=d),p.height=e.bounds.height/2,s&&e.bounds.height>l&&(p.height=l/2,e.bounds.height=l/2),p.rotateValue=void 0,p.margin.left=10,p.margin.bottom=-5,p.relativeMode="Point",p.setOffsetWithRespectToBounds(0,.1,null);c=p;p.style.fill=e.fillColor,p.style.strokeColor=e.strokeColor,p.style.opacity=e.opacity,n.width=e.bounds.width+20,n.height=e.bounds.height+20,n.style.opacity=e.opacity,o.children.push(c)}else{o.horizontalAlignment="Left",(n=a=new i.DrawingElement).cornerRadius=10,n.style.fill=e.stampFillColor,n.style.strokeColor=e.stampStrokeColor,o.children.push(n);var p=new i.PathElement;p.id=i.randomId()+"_stamp",p.data=e.data,p.width=e.bounds.width,s&&e.bounds.width>d&&(p.width=d,e.bounds.width=d),p.height=e.bounds.height,s&&e.bounds.height>l&&(p.height=l,e.bounds.height=l),p.minWidth=p.width/2,p.minHeight=p.height/2;var c=p;p.style.fill=e.fillColor,p.style.strokeColor=e.strokeColor,p.style.opacity=e.opacity,n.width=e.bounds.width+20,n.height=e.bounds.height+20,n.minWidth=p.width/2,n.minHeight=p.height/2,n.style.opacity=e.opacity,o.children.push(c),o.minHeight=n.minHeight+20,o.minWidth=n.minWidth+20}break;case"Image":case"SignatureImage":var g=new i.ImageElement;g.source=e.data,(n=g).style.strokeWidth=0,o.children.push(n);break;case"Rectangle":if(a=new i.DrawingElement,n=a,o.children.push(n),e.enableShapeLabel){var m=this.textElement(e);m.content=e.labelContent,m.style.color=e.fontColor,m.style.strokeColor=e.labelBorderColor,m.style.fill=e.labelFillColor,m.style.fontSize=e.fontSize,m.style.fontFamily=e.fontFamily,m.style.opacity=e.labelOpacity,o.children.push(m)}break;case"Perimeter":(t=new i.PathElement).data="M80.5,12.5 C80.5,19.127417 62.59139,24.5 40.5,24.5 C18.40861,24.5 0.5,19.127417 0.5,12.5C0.5,5.872583 18.40861,0.5 40.5,0.5 C62.59139,0.5 80.5,5.872583 80.5,12.5 z",n=t,u(e,t),o.children.push(n),(a=new i.DrawingElement).id="perimeter_"+i.randomId(),a.height=.2,a.width=.2,a.transform=i.RotateTransform.Self,a.horizontalAlignment="Stretch",this.setNodePosition(a,e),a.rotateAngle=e.rotateAngle,u(e,a),o.children.push(a);var w=this.textElement(e);(w=new i.TextElement).content=w.content=f([{x:e.bounds.x,y:e.bounds.y},{x:e.bounds.x+e.bounds.width,y:e.bounds.y+e.bounds.height}]).toString(),w.rotateValue={y:-10,angle:e.rotateAngle},o.children.push(w);break;case"Radius":(t=new i.PathElement).data="M80.5,12.5 C80.5,19.127417 62.59139,24.5 40.5,24.5 C18.40861,24.5 0.5,19.127417 0.5,12.5C0.5,5.872583 18.40861,0.5 40.5,0.5 C62.59139,0.5 80.5,5.872583 80.5,12.5 z",n=t,u(e,t),o.children.push(n),(a=new i.DrawingElement).id="radius_"+i.randomId(),a.height=.2,a.width=e.bounds.width/2,a.transform=i.RotateTransform.Self,this.setNodePosition(a,e),a.rotateAngle=e.rotateAngle,u(e,a),o.children.push(a);var C=this.textElement(e);e.enableShapeLabel&&(C.style.color=e.fontColor,C.style.strokeColor=e.labelBorderColor,C.style.fill=e.labelFillColor,C.style.fontSize=e.fontSize,C.style.fontFamily=e.fontFamily,C.style.opacity=e.labelOpacity);f([{x:e.bounds.x,y:e.bounds.y},{x:e.bounds.x+e.bounds.width,y:e.bounds.y+e.bounds.height}]);!this.pdfViewer.enableImportAnnotationMeasurement&&e.notes&&""!==e.notes?C.content=e.notes:C.content=this.pdfViewer.annotation.measureAnnotationModule.setConversion(e.bounds.width/2*this.pdfViewer.annotation.measureAnnotationModule.pixelToPointFactor,e),C.rotateValue={y:-10,x:e.bounds.width/4,angle:e.rotateAngle},o.children.push(C);break;case"StickyNotes":var B=new i.ImageElement;B.source=e.data,B.width=e.bounds.width,B.height=e.bounds.height,B.style.strokeColor=e.strokeColor,B.style.strokeWidth=0,n=B,o.children.push(n);break;case"SignatureText":var S=new i.DrawingElement;S.style.strokeWidth=0,(n=S).style.strokeWidth=0,o.style.strokeWidth=0,o.children.push(n);var y=this.textElement(e);y.style.fontFamily=e.fontFamily,y.style.fontSize=e.fontSize,y.style.textAlign="Left",y.rotateValue=void 0,y.content=e.data,y.style.strokeWidth=0,o.children.push(y);break;case"FreeText":n=new i.DrawingElement,o.children.push(n);var I=this.textElement(e);(I=new i.TextElement).style.fontFamily=e.fontFamily,I.style.fontSize=e.fontSize,I.style.textAlign="Left","center"===e.textAlign.toLowerCase()?I.style.textAlign="Center"
vendor: 87,805 bytes, line 10
10:"right"===e.textAlign.toLowerCase()?I.style.textAlign="Right":"justify"===e.textAlign.toLowerCase()&&(I.style.textAlign="Justify"),I.style.color=e.fontColor,I.style.bold=e.font.isBold,I.style.italic=e.font.isItalic,!0===e.font.isUnderline?I.style.textDecoration="Underline":!0===e.font.isStrikeout&&(I.style.textDecoration="LineThrough"),I.rotateValue=void 0,I.content=e.dynamicText,I.style.opacity=e.opacity,I.margin.left=4,I.margin.right=5,I.margin.top=e.fontSize/16*5,this.pdfViewer.freeTextSettings.enableAutoFit?I.style.textWrapping="Wrap":I.style.textWrapping="WrapWithOverflow",I.relativeMode="Point",I.setOffsetWithRespectToBounds(0,0,null),I.relativeMode="Point",o.children.push(I)}return n.id=e.id+"_content",n.relativeMode="Object",r||(void 0!==e.bounds.width&&(n.width=e.bounds.width,s&&(n.width<A||n.width>d)&&(n.width<A&&(n.width=A),n.width>d&&(n.width=d))),n.horizontalAlignment="Stretch",void 0!==e.bounds.height&&(n.height=e.bounds.height,s&&(n.height<h||n.width>l)&&(n.height<h&&(n.height=h),n.height>l&&(n.height=l))),u(e,n)),n.isRectElement=!0,n.verticalAlignment="Stretch",n},e.prototype.textElement=function(e){var t=new i.TextElement;return u(e,t),t.horizontalAlignment="Center",t.verticalAlignment="SignatureText"===e.shapeAnnotationType?"Center":"Top",t.relativeMode="Object",t.setOffsetWithRespectToBounds(.5,.5,"Absolute"),t},e.prototype.setNodePosition=function(e,t){if("Perimeter"===t.shapeAnnotationType)e.offsetX=t.bounds.x+t.bounds.width/2,e.offsetY=t.bounds.y+t.bounds.height/2;else if("Radius"===t.shapeAnnotationType){var n={x:t.bounds.x+t.bounds.width/2+t.bounds.width/4,y:t.bounds.y+t.bounds.height/2},o={x:t.bounds.x+t.bounds.width/2,y:t.bounds.y+t.bounds.height/2},r=i.identityMatrix();i.rotateMatrix(r,t.rotateAngle,o.x,o.y);var a=i.transformPointByMatrix(r,n),s={x:a.x,y:a.y};e.offsetX=s.x,e.offsetY=s.y,e.width=t.bounds.width/2}},e.prototype.initContainer=function(e){e.id||(e.id=i.randomId());var t=new i.Canvas;return t.id=e.id,t.offsetX=e.bounds.x+.5*e.bounds.width,t.offsetY=e.bounds.y+.5*e.bounds.height,t.style.fill="transparent",t.style.strokeColor="transparent",t.rotateAngle=e.rotateAngle,e.wrapper=t,t},e.prototype.initLine=function(e){e.id||(e.id=i.randomId());var t=new i.Canvas,n=new i.PathElement;n.id=e.id+"_path";var o=new i.PathElement,r=new i.PathElement;if(e.vertexPoints.length){e.sourcePoint=e.vertexPoints[0],e.targetPoint=e.vertexPoints[e.vertexPoints.length-1];for(c=0;c<e.vertexPoints.length;c++)0!==c&&c!==e.vertexPoints.length-1&&e.segments.push(e.vertexPoints[parseInt(c.toString(),10)])}n=V(e,n);var a=[];a=E(e);var s=[],l=[];if("Distance"===e.shapeAnnotationType&&(s=z(e,a),l=F(e,a,this.pdfViewer.annotation.measureAnnotationModule,this.pdfViewer)),"Line"!==e.shapeAnnotationType&&"LineWidthArrowHead"!==e.shapeAnnotationType||"Perimeter"!==e.measureType||(l=P(e,a,this.pdfViewer.annotation.measureAnnotationModule,this.pdfViewer)),!0===e.enableShapeLabel&&"Distance"!==e.shapeAnnotationType&&"Perimeter"!==e.measureType){var d=i.Point.findAngle(a[0],a[1]),A=this.textElement(e);A.id=i.randomId(),!this.pdfViewer.enableImportAnnotationMeasurement&&e.notes&&""!==e.notes?A.content=e.notes:A.content=e.labelContent,A.style.strokeColor=e.labelBorderColor,A.style.fill=e.labelFillColor,A.style.fontSize=e.fontSize,A.style.color=e.fontColor,A.style.fontFamily=e.fontFamily,A.style.opacity=e.labelOpacity,A.rotateValue={y:-10,angle:d},l.push(A)}a=Q(e,a);var h=i.Rect.toBounds(a);t.width=h.width,t.height=h.height,t.offsetX=h.x+t.pivot.x*h.width,t.offsetY=h.y+t.pivot.y*h.height;var p=e.vertexPoints;if("Line"!==e.shapeAnnotationType&&"LineWidthArrowHead"!==e.shapeAnnotationType&&"Distance"!==e.shapeAnnotationType||(o=x(e,a[0],p[1],!0),r=x(e,a[a.length-1],p[p.length-2],!1)),o.id=e.id+"_srcDec",r.id=e.id+"_tarDec",n.style.fill="transparent",t.style.strokeColor="transparent",t.style.fill="transparent",t.style.strokeWidth=0,t.children=[],u(e,n),t.children.push(n),s.length>0)for(c=0;c<s.length;c++)t.children.push(s[parseInt(c.toString(),10)]);if(l.length>0)for(c=0;c<l.length;c++)t.children.push(l[parseInt(c.toString(),10)]);if(t.children.push(o),t.children.push(r),"LineWidthArrowHead"===e.shapeAnnotationType)for(var c=0;c<t.children.length;c++){var g=t.children[parseInt(c.toString(),10)];(g.id.includes("srcDec")||g.id.includes("tarDec"))&&(g.width=12*e.thickness,g.height=12*e.thickness)}return t.id=e.id,t.offsetX=n.offsetX,t.offsetY=n.offsetY,t.width=n.width,t.height=n.height,a=E(e),e.wrapper=t,t},e.prototype.add=function(e){var t=this.pdfViewer.allowServerDataBinding;return this.pdfViewer.enableServerDataBinding(!1),e.formFieldAnnotationType&&this.pdfViewer.formDesignerModule?(e=new it(this.pdfViewer,"formFields",e,!0),e=this.initObject(e),this.pdfViewer.formFields.push(e)):(e=new tt(this.pdfViewer,"annotations",e,!0),e=this.initObject(e),this.pdfViewer.annotations.push(e)),this.pdfViewer.enableServerDataBinding(t,!0),e},e.prototype.remove=function(e){var i=this.pdfViewer.allowServerDataBinding;this.pdfViewer.enableServerDataBinding(!1);for(var n=e.pageIndex,o=0;o<this.pdfViewer.annotations.length;o++){var r=this.pdfViewer.annotations[parseInt(o.toString(),10)];if(r.id&&(r.id===e.id||r.id.split("_")[0]===e.id)||r.wrapper&&r.wrapper.id===e.id){this.pdfViewer.annotations.splice(o,1);for(var a=this.getPageObjects(e.pageIndex),s=0;s<a.length;s++)a[parseInt(s.toString(),10)].id===e.id&&(a.splice(s,1),"Path"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType?this.refreshCanvasDiagramLayer(void 0,n,e.id):this.pdfViewer.renderDrawing(void 0,n))}}for(o=0;o<this.pdfViewer.formFields.length;o++)if((d=this.pdfViewer.formFields[parseInt(o.toString(),10)]).id===e.id||d.wrapper.id===e.id){this.pdfViewer.formFields.splice(o,1),this.pdfViewer.formDesignerModule&&e.formFieldAnnotationType&&this.pdfViewer.formFieldCollection.splice(o,1);for(var a=this.getPageObjects(e.pageIndex),s=0;s<a.length;s++){if(a[parseInt(s.toString(),10)].id===e.id){a.splice(s,1);break}a[parseInt(s.toString(),10)]&&a[parseInt(s.toString(),10)].id&&-1!==a[parseInt(s.toString(),10)].id.indexOf(e.id)&&a.splice(s,1)}}if("Textbox"===e.formFieldAnnotationType||"Checkbox"===e.formFieldAnnotationType||"RadioButton"===e.formFieldAnnotationType||"PasswordField"===e.formFieldAnnotationType||"DropdownList"===e.formFieldAnnotationType||"ListBox"===e.formFieldAnnotationType||"SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){var l=document.getElementById("form_field_"+e.id+"_content_html_element");l&&(l.remove(),this.pdfViewer.renderDrawing(void 0,n));for(o=0;o<this.pdfViewer.formFieldCollections.length;o++){var d=this.pdfViewer.formFieldCollections[parseInt(o.toString(),10)];d.id===e.id&&this.pdfViewer.formFieldCollections.splice(o,1)}for(o=0;o<this.pdfViewer.viewerBase.formFieldCollection.length;o++)e.id==this.pdfViewer.viewerBase.formFieldCollection[parseInt(o.toString(),10)]&&this.pdfViewer.viewerBase.formFieldCollection.splice(o,1);var A={name:e.name,id:e.id,value:e.value,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,color:e.color,backgroundColor:e.backgroundColor,alignment:e.alignment,isReadonly:e.isReadonly,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:e.rotateAngle,tooltip:e.tooltip,options:e.options,isChecked:e.isChecked,isSelected:e.isSelected,customData:e.customData,lineBound:e.bounds,pageNumber:e.pageIndex,insertSpaces:e.insertSpaces,formFieldAnnotationType:e.formFieldAnnotationType,borderColor:e.borderColor,thickness:e.thickness,isTransparent:e.isTransparent};t.isNullOrUndefined(A)||"diagram_helper"===A.id||(this.pdfViewer.fireFormFieldRemoveEvent("formFieldRemove",A,e.pageIndex),this.pdfViewer.formDesignerModule.removeFieldsFromAnnotationCollections(e.id,A.name))}this.pdfViewer.enableServerDataBinding(i,!0)},e.prototype.getPageObjects=function(e){return this.getPageTable(e).objects},e.prototype.refreshCanvasDiagramLayer=function(e,n,o){var r=this;if(e||(e=this.pdfViewer.viewerBase.getAnnotationCanvas("_annotationCanvas_",n)),e){var a=void 0;a=e.id===this.pdfViewer.element.id+"_print_annotation_layer_"+n?1:this.pdfViewer.viewerBase.getZoomFactor();var s=e.width/a,l=e.height/a,d=e.getContext("2d");d.lineCap="round",d.lineJoin="round",a<1&&(d.lineWidth=d.lineWidth/a);var A=a*this.pdfViewer.viewerBase.getWindowDevicePixelRatio();!t.Browser.isDevice||t.Browser.isDevice&&a<=.7?d.setTransform(A,0,0,A,0,0):d.setTransform(a,0,0,a,0,0),d.clearRect(0,0,s,l);for(var h=this.getPageObjects(n).filter(function(e,i,n){return"free"===e.id.split("_")[0]||(t.isNullOrUndefined(r.pdfViewer.formDesignerModule)?i===n.findIndex(function(t){return t.id===e.id}):i===n.findIndex(function(t){return t.id.split("_")[0]===e.id.split("_")[0]}))}),p=0;p<h.length;p++){var c=void 0;if(e.id===this.pdfViewer.element.id+"_print_annotation_layer_"+n)h[parseInt(p.toString(),10)].isPrint&&(c=this.pdfViewer.nameTable[h[parseInt(p.toString(),10)].id].wrapper,t.isNullOrUndefined(c)||i.refreshDiagramElements(e,[c],this.renderer));else{c=this.pdfViewer.nameTable[h[parseInt(p.toString(),10)].id].wrapper;var g=h[parseInt(p.toString(),10)].id,u=this.pdfViewer.nameTable[""+g];if(c&&this.shouldRefreshElement(u)||t.isNullOrUndefined(this.pdfViewer.formDesignerModule)){if(!t.isNullOrUndefined(u.properties.data)&&u.properties.data.includes("base64"))(f=new Image).src=u.properties.data,null==window.customStampCollection&&void 0===window.customStampCollection&&(window.customStampCollection=new Map),window.customStampCollection&&!window.customStampCollection.get(c.id)&&window.customStampCollection.set(c.id,f);else if(!t.isNullOrUndefined(u.properties.value)&&u.properties.value.includes("base64")){var f=new Image;f.src=u.properties.value,null==window.signatureCollection&&void 0===window.signatureCollection&&(window.signatureCollection=new Map),window.signatureCollection&&!window.signatureCollection.get(c.id)&&window.signatureCollection.set(c.id,f)}i.refreshDiagramElements(e,[c],this.renderer)}}}}},e.prototype.shouldRefreshElement=function(e){var i=this.pdfViewer.nameTable[e.id.split("_")[0]];return!t.isNullOrUndefined(i)&&"visible"===e.visibility||!t.isNullOrUndefined(e.subject)&&"SignatureField"!==e.annotName&&t.isNullOrUndefined(e.visibility)||"annotations"===e.propName&&"Path"!==e.shapeAnnotationType&&"SignatureText"!==e.shapeAnnotationType&&"SignatureImage"!==e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType&&"formFields"!==e.propName||"SignatureText"===e.shapeAnnotationType&&"formFields"!==e.propName||t.isNullOrUndefined(i)&&"diagram_helper"===e.id},e.prototype.clearHighlighter=function(e){var t=this.getAdornerLayerSvg(this.pdfViewer.element.id+e+"_diagramAdornerLayer",e);if(t){var i=t.getElementById(t.id+"_highlighter");i&&i.parentNode.removeChild(i)}},e.prototype.getSelectorElement=function(e,t){var i=null,n=this.getAdornerLayerSvg(e,t);return n&&(i=n.getElementById(e+t+"_SelectorElement")),i},e.prototype.getAdornerLayerSvg=function(e,t){var n=null,o=i.getDiagramElement(e+t+"_diagramAdornerLayer");return o&&(n=o.getElementsByClassName("e-adorner-layer"+t)[0]),n},e.prototype.clearSelectorLayer=function(e){var t=this.getAdornerLayerSvg(this.pdfViewer.element.id,e);if(t){var i=t.getElementById(this.pdfViewer.adornerSvgLayer.id+"_selected_region");i&&i.parentNode.removeChild(i),this.clearHighlighter(e);for(var n=this.getSelectorElement(this.pdfViewer.element.id,e).childNodes,o=void 0,r=n.length;r>0;r--)(o=n[r-1]).parentNode.removeChild(o)}},e.prototype.renderSelector=function(e,t,n,o){if(!n||o){var r=new i.Size,a=this.pdfViewer.selectedItems;if(this.clearSelectorLayer(e),a.wrapper){a.wrapper.measure(r);var s=this.pdfViewer.viewerBase.getZoomFactor();a.wrapper.arrange(a.wrapper.desiredSize),a.width=a.wrapper.actualSize.width,a.height=a.wrapper.actualSize.height,a.offsetX=a.wrapper.offsetX,a.offsetY=a.wrapper.offsetY,1===a.annotations.length&&(a.rotateAngle=a.annotations[0].rotateAngle,a.wrapper.rotateAngle=a.annotations[0].rotateAngle);var l=void 0;if(a.formFields.length)for(var d=0;d<a.formFields.length;d++){h=a.formFields[parseInt(d.toString(),10)];if((l=this.getSelectorElement(this.pdfViewer.element.id,e))&&h.pageIndex===e&&this.pdfViewer.designerMode&&this.renderResizeHandle(h.wrapper.children[0],l,a.thumbsConstraints,s,void 0,void 0,void 0,!1,!0,null,null,t),this.pdfViewer.formDesignerModule&&h.formFieldAnnotationType&&!this.pdfViewer.viewerBase.isFormFieldSelect&&!this.pdfViewer.viewerBase.isFormFieldMouseDown&&!this.pdfViewer.viewerBase.isFormFieldMouseMove){this.pdfViewer.viewerBase.isFormFieldSelect=!0;c={name:h.name,id:h.id,value:h.value,fontFamily:h.fontFamily,fontSize:h.fontSize,fontStyle:h.fontStyle,color:h.color,backgroundColor:h.backgroundColor,alignment:h.alignment,isReadonly:h.isReadonly,visibility:h.visibility,maxLength:h.maxLength,isRequired:h.isRequired,isPrint:h.isPrint,rotation:h.rotateAngle,tooltip:h.tooltip,options:h.options,isChecked:h.isChecked,isSelected:h.isSelected,bounds:h.bounds,pageNumber:h.pageIndex,insertSpaces:h.insertSpaces,formFieldAnnotationType:h.formFieldAnnotationType,customData:h.customData,borderColor:h.borderColor,thickness:h.thickness,isTransparent:h.isTransparent};this.pdfViewer.formDesignerModule.isFormFieldSizeUpdated||this.pdfViewer.fireFormFieldSelectEvent("formFieldSelect",c,h.pageIndex,this.pdfViewer.formDesignerModule.isProgrammaticSelection),this.pdfViewer.formDesignerModule.isFormFieldSizeUpdated=!1}}if(a.annotations.length)for(var A=0;A<a.annotations.length;A++){var h=a.annotations[parseInt(A.toString(),10)];if((l=this.getSelectorElement(this.pdfViewer.element.id,e))&&h.pageIndex===e){if("Distance"===h.shapeAnnotationType||"Line"===h.shapeAnnotationType||"LineWidthArrowHead"===h.shapeAnnotationType||"Polygon"===h.shapeAnnotationType)this.renderEndPointHandle(h,l,a.thumbsConstraints,{scale:s,tx:0,ty:0},void 0,void 0,!0,t);else if("StickyNotes"===h.shapeAnnotationType)this.renderResizeHandle(h.wrapper.children[0],l,a.thumbsConstraints,s,void 0,void 0,void 0,!1,!0,null,null,t);else if("Stamp"!==this.pdfViewer.tool){var p="Path"===h.shapeAnnotationType||"SignatureField"===h.formFieldAnnotationType||"InitialField"===h.formFieldAnnotationType;this.renderResizeHandle(h.wrapper.children[0],l,a.thumbsConstraints,s,void 0,void 0,void 0,"Stamp"===h.shapeAnnotationType,!1,p,"FreeText"===h.shapeAnnotationType||"HandWrittenSignature"===h.shapeAnnotationType||"SignatureImage"===h.shapeAnnotationType||"Image"===h.shapeAnnotationType||"SignatureText"===h.shapeAnnotationType,t)}if(this.pdfViewer.viewerBase.isNewSignatureAdded||"HandWrittenSignature"!==h.shapeAnnotationType&&"SignatureText"!==h.shapeAnnotationType&&"SignatureImage"!==h.shapeAnnotationType||this.pdfViewer.annotationModule.selectSignature(h.signatureName,h.pageIndex,h),this.pdfViewer.formDesignerModule&&h.formFieldAnnotationType&&!this.pdfViewer.viewerBase.isFormFieldSelect&&!this.pdfViewer.viewerBase.isFormFieldMouseDown&&!this.pdfViewer.viewerBase.isFormFieldMouseMove){this.pdfViewer.viewerBase.isFormFieldSelect=!0;var c={value:h.value,fontFamily:h.fontFamily,fontSize:h.fontSize,fontStyle:h.fontStyle,color:h.color,backgroundColor:h.backgroundColor,alignment:h.alignment,isReadonly:h.isReadonly,visibility:h.visibility,maxLength:h.maxLength,isRequired:h.isRequired,isPrint:h.isPrint,rotation:h.rotateAngle,tooltip:h.tooltip,options:h.options,isChecked:h.isChecked,isSelected:h.isSelected,bounds:h.bounds};this.pdfViewer.formDesignerModule.isFormFieldSizeUpdated||this.pdfViewer.fireFormFieldSelectEvent("formFieldSelect",c,h.pageIndex,this.pdfViewer.formDesignerModule.isProgrammaticSelection),this.pdfViewer.formDesignerModule.isFormFieldSizeUpdated=!1}""===h.annotName&&"ink"!==h.signatureName||"SignatureText"===h.annotName||n&&h===n&&!h.formFieldAnnotationType&&(this.pdfViewer.viewerBase.isAddComment||this.pdfViewer.viewerBase.isAnnotationSelect||this.pdfViewer.viewerBase.isAnnotationMouseDown||this.pdfViewer.viewerBase.isAnnotationMouseMove||this.pdfViewer.viewerBase.isInkAdded||this.pdfViewer.viewerBase.isNewStamp||(this.pdfViewer.viewerBase.isAnnotationSelect=!0,this.pdfViewer.annotationModule.annotationSelect(h.annotName,h.pageIndex,h)))}}}}},e.prototype.rotate=function(e,t,i,n){if(e)if(i=i||{x:e.wrapper.offsetX,y:e.wrapper.offsetY},e instanceof at){e.rotateAngle+=t,e.wrapper.rotateAngle+=t;var o=[];o=o.concat(e.annotations),this.rotateObjects(e,o,t,i,null,n)}else this.rotateObjects(e,[e],t,i)},e.prototype.rotateObjects=function(e,t,n,o,r,a){o=o||{};var s=i.identityMatrix();i.rotateMatrix(s,n,o.x,o.y);for(var l=0,d=t;l<d.length;l++){var A=d[l];if(A instanceof tt){if(!1!==r||e!==A){A.rotateAngle+=n,A.rotateAngle=(A.rotateAngle+360)%360;var h=i.transformPointByMatrix(s,{x:A.wrapper.offsetX,y:A.wrapper.offsetY});A.wrapper.offsetX=h.x,A.wrapper.offsetY=h.y,this.nodePropertyChange(A,{rotateAngle:A.rotateAngle})}this.renderSelector(A.pageIndex,a)}}},e.prototype.getParentSvg=function(e,t,i){return e&&e.id&&t&&"selector"===t?this.pdfViewer.adornerSvgLayer:i},e.prototype.shownBorder=function(){var e=!1;if(this.pdfViewer.annotationModule){var i=this.pdfViewer.selectedItems.annotations[0],n=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(i),o=this.pdfViewer.annotationModule.checkIsLockSettings(i);e=!t.isNullOrUndefined(n)&&(n.includes("Select")||!o)}return e},e.prototype.renderBorder=function(e,i,n,o,r,a,s,l){var d=w(e,o);if(o=o||{scale:1,tx:0,ty:0},l){d.x*=o.scale,d.y*=o.scale,d.width*=o.scale,d.height*=o.scale;p=this.pdfViewer.selectedItems.annotations.length>0?this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType:this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType;if(n&&"object"!=typeof n&&""!==n){var A=JSON.parse(n),h=""===A.selectionBorderColor?"black":A.selectionBorderColor;d.stroke=h,d.strokeWidth=1===n.selectionBorderThickness?1:A.selectionBorderThickness,(c=0===A.selectorLineDashArray.length?[6,3]:A.selectorLineDashArray).length>2&&(c=[c[0],c[1]]),d.dashArray=c.toString()}else if(n&&""!==n){h=""===n.selectionBorderColor?"black":n.selectionBorderColor;d.stroke=h,d.strokeWidth=1===n.selectionBorderThickness?1:n.selectionBorderThickness;c=t.isNullOrUndefined(n.selectorLineDashArray)||0!==n.selectorLineDashArray.length?n.selectorLineDashArray:[6,3];!t.isNullOrUndefined(c)&&c.length>2&&(c=[c[0],c[1]]),t.isNullOrUndefined(c)||(d.dashArray=c.toString())}else this.getBorderSelector(p,d)}else{d.x*=o.scale,d.y*=o.scale,d.width*=o.scale,d.height*=o.scale,d.fill="transparent";var p=this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType;if(n&&"object"!=typeof n&&""!==n){h=""===(A=JSON.parse(n)).selectionBorderColor?"black":A.selectionBorderColor;d.stroke=h,d.strokeWidth=1===n.selectionBorderThickness?1:A.selectionBorderThickness,(c=0===A.selectorLineDashArray.length?[6,3]:A.selectorLineDashArray).length>2&&(c=[c[0],c[1]]),d.dashArray=c.toString()}else if(n&&""!==n){h=""===n.selectionBorderColor?"black":n.selectionBorderColor;d.stroke=h,d.strokeWidth=1===n.selectionBorderThickness?1:n.selectionBorderThickness;var c=t.isNullOrUndefined(n.selectorLineDashArray)||0!==n.selectorLineDashArray.length?n.selectorLineDashArray:[6,3];!t.isNullOrUndefined(c)&&c.length>2&&(c=[c[0],c[1]]),t.isNullOrUndefined(c)||(d.dashArray=c.toString())}else if(!this.pdfViewer.designerMode)if("HandWrittenSignature"===p||"SignatureText"===p||"SignatureImage"===p||"Ink"===p){this.pdfViewer.nameTable[e.id.split("_")[0]];var g=this.pdfViewer.viewerBase.checkSignatureFormField(e.id);this.getSignBorder(p,d,g)}else this.getBorderSelector(p,d);d.class="e-pv-diagram-border",s&&(d.class+=" e-diagram-lane"),d.id="borderRect",d.id="borderRect",r||(d.class+=" e-disabled"),a&&(d.class+=" e-thick-border"),d.cornerRadius=0}if(this.shownBorder()){var u=this.getParentSvg(e,"selector");this.svgRenderer.drawRectangle(i,d,this.pdfViewer.element.id,void 0,!0,u)}},e.prototype.getSignBorder=function(e,i,n){if(n||"HandWrittenSignature"!==e&&"SignatureText"!==e&&"SignatureImage"!==e||!this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)if("Ink"===e&&this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings){r=t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectionBorderColor?"#0000ff":this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=r;s=t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=s,(a=t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.selectorLineDashArray).length>2&&(a=[a[0],a[1]]),i.dashArray=a.toString()}else{var o=this.pdfViewer.annotationSelectorSettings,r=""===o.selectionBorderColor?"black":o.selectionBorderColor;i.stroke=r,i.strokeWidth=1===o.selectionBorderThickness?1:o.selectionBorderThickness;var a=0===o.selectorLineDashArray.length?[6,3]:o.selectorLineDashArray;a.length>2&&(a=[a[0],a[1]]),i.dashArray=a.toString()}else{r=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectionBorderColor?"#0000ff":this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=r;var s=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=s,(a=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.selectorLineDashArray).length>2&&(a=[a[0],a[1]]),i.dashArray=a.toString()}},e.prototype.getBorderSelector=function(e,i){var n=this.pdfViewer.annotationSelectorSettings,o=t.isNullOrUndefined(n.selectionBorderColor)||""===n.selectionBorderColor?"black":n.selectionBorderColor;i.stroke=o,i.strokeWidth=t.isNullOrUndefined(n.selectionBorderThickness)||1===n.selectionBorderThickness?1:n.selectionBorderThickness;var r=t.isNullOrUndefined(n.selectorLineDashArray)||0===n.selectorLineDashArray.length?[6,3]:n.selectorLineDashArray;if(r.length>2&&(r=[r[0],r[1]]),i.dashArray=r.toString(),"Rectangle"===e&&this.pdfViewer.rectangleSettings.annotationSelectorSettings){var a=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=a;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var s=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectorLineDashArray;s.length>2&&(s=[s[0],s[1]]),i.dashArray=s.toString()}else if("Textbox"!==e&&"Checkbox"!==e&&"RadioButton"!==e&&"SignatureField"!==e&&"InitialField"!==e&&"DropdownList"!==e&&"ListBox"!==e&&"PasswordField"!==e||!this.pdfViewer.rectangleSettings.annotationSelectorSettings){if("Ellipse"===e&&this.pdfViewer.circleSettings.annotationSelectorSettings){var l=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.selectionBorderColor)?"black":this.pdfViewer.circleSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=l;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.circleSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var d=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.circleSettings.annotationSelectorSettings.selectorLineDashArray;d.length>2&&(d=[d[0],d[1]]),i.dashArray=d.toString()}else if("Radius"===e&&this.pdfViewer.radiusSettings.annotationSelectorSettings){var A=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.selectionBorderColor)?"black":this.pdfViewer.radiusSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=A;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.radiusSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var h=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.radiusSettings.annotationSelectorSettings.selectorLineDashArray;h.length>2&&(h=[h[0],h[1]]),i.dashArray=h.toString()}else if("FreeText"===e&&this.pdfViewer.freeTextSettings.annotationSelectorSettings){var p=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectionBorderColor)?"black":this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=p;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var c=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.freeTextSettings.annotationSelectorSettings.selectorLineDashArray;c.length>2&&(c=[c[0],c[1]]),i.dashArray=c.toString()}else if("StickyNotes"===e&&this.pdfViewer.stickyNotesSettings.annotationSelectorSettings){var g=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectionBorderColor)?"black":this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=g;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var u=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[6,3]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.stickyNotesSettings.annotationSelectorSettings.selectorLineDashArray;u.length>2&&(u=[u[0],u[1]]),i.dashArray=u.toString()}else if(("Stamp"===e||"Image"===e)&&this.pdfViewer.stampSettings.annotationSelectorSettings){var f=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"#0000ff":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderColor)?"#0000ff":this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=f;C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var m=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.stampSettings.annotationSelectorSettings.selectorLineDashArray;m.length>2&&(m=[m[0],m[1]]),i.dashArray=m.toString()}}else{var w=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderColor)||""===this.pdfViewer.annotationSelectorSettings.selectionBorderColor?"black":this.pdfViewer.annotationSelectorSettings.selectionBorderColor?this.pdfViewer.annotationSelectorSettings.selectionBorderColor:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderColor)?"black":this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderColor;i.stroke=w;var C=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness?this.pdfViewer.annotationSelectorSettings.selectionBorderThickness:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderThickness)?1:this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectionBorderThickness;i.strokeWidth=C;var B=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)||0===this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length?[4]:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray?this.pdfViewer.annotationSelectorSettings.selectorLineDashArray:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectorLineDashArray)?[4]:this.pdfViewer.rectangleSettings.annotationSelectorSettings.selectorLineDashArray;B.length>2&&(B=[B[0],B[1]]),i.dashArray=B.toString()}},e.prototype.renderCircularHandle=function(e,t,n,o,r,a,s,l,d,A,h,p,c,g){var u=t,f={x:n,y:o};if(l=l||{scale:1,tx:0,ty:0},0!==u.rotateAngle||0!==u.parentTransform){var m=i.identityMatrix();i.rotateMatrix(m,u.rotateAngle+u.parentTransform,u.offsetX,u.offsetY),f=i.transformPointByMatrix(m,f)}var C,B=w(u);C=this.pdfViewer.selectedItems.annotations.length>0&&this.pdfViewer.selectedItems.annotations[0].measureType?this.pdfViewer.selectedItems.annotations[0].measureType:this.pdfViewer.selectedItems.formFields.length>0?this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType:this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType,this.getResizerColors(C,B,g,l),this.getShapeSize(C,B,g,l),B.strokeWidth=1,void 0!==p&&(B.id="segmentEnd_"+p),B.centerX=(f.x+l.tx)*l.scale,B.centerY=(f.y+l.ty)*l.scale,B.angle=0,B.id=e,B.visible=a,B.class=c,B.opacity=1,d&&(B.class+=" e-connected"),A&&(B.visible=!1),B.x=f.x*l.scale-B.width/2,B.y=f.y*l.scale-B.height/2;var S=this.getParentSvg(t,"selector");"Square"===this.getShape(C,g)?this.svgRenderer.drawRectangle(r,B,e,void 0,!0,S):"Circle"===this.getShape(C,g)&&this.svgRenderer.drawCircle(r,B,1)},e.prototype.getShapeSize=function(e,i,n,o){if(n&&"object"!=typeof n&&""!==n){r=JSON.parse(n);i.radius=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)/2,i.width=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)*o.scale,i.height=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)*o.scale}else if(n&&""!==n)i.radius=(t.isNullOrUndefined(n.resizerSize)||8===n.resizerSize?8:n.resizerSize)/2,i.width=(t.isNullOrUndefined(n.resizerSize)||8===n.resizerSize?8:n.resizerSize)*o.scale,i.height=(t.isNullOrUndefined(n.resizerSize)||8===n.resizerSize?8:n.resizerSize)*o.scale;else{var r=this.pdfViewer.annotationSelectorSettings;i.radius=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)/2,i.width=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)*o.scale,i.height=(t.isNullOrUndefined(r.resizerSize)||8===r.resizerSize?8:r.resizerSize)*o.scale;var a="string"==typeof e?e:e.shapeAnnotationType,s={Line:this.pdfViewer.lineSettings,LineWidthArrowHead:this.pdfViewer.arrowSettings,Rectangle:this.pdfViewer.rectangleSettings,Ellipse:this.pdfViewer.circleSettings,Distance:this.pdfViewer.distanceSettings,Polygon:this.pdfViewer.polygonSettings,Radius:this.pdfViewer.radiusSettings,Area:this.pdfViewer.areaSettings,Volume:this.pdfViewer.volumeSettings,Ink:this.pdfViewer.inkAnnotationSettings,Stamp:this.pdfViewer.stampSettings,Image:this.pdfViewer.stampSettings,FreeText:this.pdfViewer.freeTextSettings,HandWrittenSignature:this.pdfViewer.handWrittenSignatureSettings,SignatureText:this.pdfViewer.handWrittenSignatureSettings,SignatureImage:this.pdfViewer.handWrittenSignatureSettings,Perimeter:this.pdfViewer.perimeterSettings}[""+a];if(s&&s.annotationSelectorSettings){var l=this.pdfViewer.annotationSelectorSettings.resizerSize||8,d=s.annotationSelectorSettings.resizerSize;i.radius=d&&8!==d?d/2:l/2;var A=d&&8!==d?d*o.scale:l*o.scale;i.width=A,i.height=A}}},e.prototype.getShape=function(e,i){var n;if(i&&"object"!=typeof i&&""!==i){o=JSON.parse(i);n=t.isNullOrUndefined(o.resizerShape)||"Square"===o.resizerShape?"Square":o.resizerShape}else if(i&&""!==i)n=t.isNullOrUndefined(i.resizerShape)||"Square"===i.resizerShape?"Square":i.resizerShape;else{var o=this.pdfViewer.annotationSelectorSettings;n=t.isNullOrUndefined(o.resizerShape)||"Square"===o.resizerShape?"Square":o.resizerShape,"Line"===e&&this.pdfViewer.lineSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.lineSettings.annotationSelectorSettings.resizerShape:"LineWidthArrowHead"===e&&this.pdfViewer.arrowSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerShape:"Rectangle"===e&&this.pdfViewer.rectangleSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerShape:"Ellipse"===e&&this.pdfViewer.circleSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.circleSettings.annotationSelectorSettings.resizerShape:"Polygon"===e&&this.pdfViewer.polygonSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerShape:"Distance"===e&&this.pdfViewer.distanceSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerShape:"Radius"===e&&this.pdfViewer.radiusSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerShape:"Stamp"!==e&&"Image"!==e||!this.pdfViewer.stampSettings.annotationSelectorSettings?"FreeText"===e&&this.pdfViewer.freeTextSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerShape:("HandWrittenSignature"===e||"SignatureText"===e||"SignatureImage"===e)&&this.pdfViewer.handWrittenSignatureSettings&&this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerShape:"Perimeter"===e&&this.pdfViewer.perimeterSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerShape:"Area"===e&&this.pdfViewer.areaSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.areaSettings.annotationSelectorSettings.resizerShape:"Volume"===e&&this.pdfViewer.volumeSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerShape:"Ink"===e&&this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings&&(n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerShape):n=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerShape)||"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape?this.pdfViewer.annotationSelectorSettings.resizerShape:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.resizerShape)?"Square":this.pdfViewer.stampSettings.annotationSelectorSettings.resizerShape}return n},e.prototype.getResizerColors=function(e,i,n,o){if(n&&"object"!=typeof n&&""!==n){r=JSON.parse(n);i.stroke=t.isNullOrUndefined(r.resizerBorderColor)||"black"===r.resizerBorderColor?"black":r.resizerBorderColor,i.fill=t.isNullOrUndefined(r.resizerFillColor)||"#FF4081"===r.resizerFillColor?"#FF4081":r.resizerFillColor}else if(n&&""!==n)i.stroke=t.isNullOrUndefined(n.resizerBorderColor)?"black":n.resizerBorderColor,i.fill=t.isNullOrUndefined(n.resizerFillColor)?"#FF4081":n.resizerFillColor;else{var r=this.pdfViewer.annotationSelectorSettings;i.stroke=t.isNullOrUndefined(r.resizerBorderColor)||"black"===r.resizerBorderColor?"black":r.resizerBorderColor,i.fill=t.isNullOrUndefined(r.resizerFillColor)||"#FF4081"===r.resizerFillColor?"#FF4081":r.resizerFillColor,"Line"===e&&this.pdfViewer.lineSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.lineSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.lineSettings.annotationSelectorSettings.resizerFillColor):"LineWidthArrowHead"===e&&this.pdfViewer.arrowSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerFillColor):"Rectangle"===e&&this.pdfViewer.rectangleSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerFillColor):"Ellipse"===e&&this.pdfViewer.circleSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.circleSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.circleSettings.annotationSelectorSettings.resizerFillColor):"Distance"===e&&this.pdfViewer.distanceSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerFillColor):"Polygon"===e&&this.pdfViewer.polygonSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerFillColor):"Radius"===e&&this.pdfViewer.radiusSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerFillColor):"Stamp"!==e&&"Image"!==e||!this.pdfViewer.stampSettings.annotationSelectorSettings?"FreeText"===e&&this.pdfViewer.freeTextSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerFillColor):"HandWrittenSignature"!==e&&"SignatureText"!==e&&"SignatureImage"!==e||!this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings?"Perimeter"===e&&this.pdfViewer.perimeterSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerFillColor):"Area"===e&&this.pdfViewer.areaSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.areaSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.areaSettings.annotationSelectorSettings.resizerFillColor):"Volume"===e&&this.pdfViewer.volumeSettings.annotationSelectorSettings?(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerFillColor):"Ink"===e&&this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings&&(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerFillColor):(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerFillColor):(i.stroke=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerBorderColor)||"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor?this.pdfViewer.annotationSelectorSettings.resizerBorderColor:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.resizerBorderColor)?"black":this.pdfViewer.stampSettings.annotationSelectorSettings.resizerBorderColor,i.fill=t.isNullOrUndefined(this.pdfViewer.annotationSelectorSettings.resizerFillColor)||"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor?this.pdfViewer.annotationSelectorSettings.resizerFillColor:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.resizerFillColor)?"FF4081":this.pdfViewer.stampSettings.annotationSelectorSettings.resizerFillColor)}},e.prototype.renderRotateThumb=function(e,t,n,o,r){var a,s=e.offsetY-e.actualSize.height*e.pivot.y,l=e.offsetX-e.actualSize.width*e.pivot.x+e.pivot.x*e.actualSize.width,d=s;if(l=(l+n.tx)*n.scale,d=(d+n.ty)*n.scale,a={x:l,y:d-25},0!==e.rotateAngle||0!==e.parentTransform){var A=i.identityMatrix();i.rotateMatrix(A,e.rotateAngle+e.parentTransform,(n.tx+e.offsetX)*n.scale,(n.ty+e.offsetY)*n.scale),a=i.transformPointByMatrix(A,a)}var h=w(e);h.stroke="black",h.strokeWidth=1,h.opacity=1,h.fill="#FF4081",h.centerX=a.x,h.centerY=a.y,h.radius=4,h.angle=0,h.visible=!0,h.class="e-diagram-rotate-handle",h.id="rotateThumb",this.shownBorder()&&this.svgRenderer.drawCircle(t,h,i.ThumbsConstraints.Rotate,{"aria-label":"Thumb to rotate the selected object"});var p=t.querySelector("#"+h.id);p&&p.setAttribute("role","separator")},e.prototype.renderResizeHandle=function(e,t,n,o,r,a,s,l,d,A,h,p){var c=e.offsetX-e.actualSize.width*e.pivot.x,g=e.offsetY-e.actualSize.height*e.pivot.y,u=e.actualSize.height,f=e.actualSize.width,m={scale:o,tx:0,ty:0};l&&(this.renderPivotLine(e,t,m),this.renderRotateThumb(e,t,m)),h&&(l=!0),this.renderBorder(e,t,p,m,a,s,!0,d);var w=e.actualSize.width*o,C=e.actualSize.height*o,B=this.pdfViewer.selectedItems.annotations.length>0?this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType:this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType,S=!1;if(!this.pdfViewer.formDesignerModule){var y=this.pdfViewer.selectedItems.annotations[0],I=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(y);(this.pdfViewer.annotationModule.checkIsLockSettings(y)||y.annotationSettings.isLock)&&this.getAllowedInteractions(I)&&(S=!0),"Select"===I[0]&&(S=!1)}var E=this.getResizerLocation(B,p);(E<1||E>3)&&(E=3);var v=!1;!this.pdfViewer.selectedItems.annotations[0]||"Ellipse"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Radius"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Rectangle"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Ink"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||(v=!0),this.pdfViewer.viewerBase.checkSignatureFormField(e.id)||s||d||A||S||((l||v&&w>=40&&C>=40&&(1===E||3===E))&&(this.renderCircularHandle("resizeNorthWest",e,c,g,t,!0,n&i.ThumbsConstraints.ResizeNorthWest,m,void 0,r,{"aria-label":"Thumb to resize the selected object on top left side direction"},void 0,"e-pv-diagram-resize-handle e-northwest",p),this.renderCircularHandle("resizeNorthEast",e,c+f,g,t,!0,n&i.ThumbsConstraints.ResizeNorthEast,m,void 0,r,{"aria-label":"Thumb to resize the selected object on top right side direction"},void 0,"e-pv-diagram-resize-handle e-northeast",p),this.renderCircularHandle("resizeSouthWest",e,c,g+u,t,!0,n&i.ThumbsConstraints.ResizeSouthWest,m,void 0,r,{"aria-label":"Thumb to resize the selected object on bottom left side direction"},void 0,"e-pv-diagram-resize-handle e-southwest",p),this.renderCircularHandle("resizeSouthEast",e,c+f,g+u,t,!0,n&i.ThumbsConstraints.ResizeSouthEast,m,void 0,r,{"aria-label":"Thumb to resize the selected object on bottom right side direction"},void 0,"e-pv-diagram-resize-handle e-southeast",p)),(l||v)&&(!v||2!==E&&3!==E&&(w>=40&&C>=40||1!==E))||(this.renderCircularHandle("resizeNorth",e,c+f/2,g,t,!0,n&i.ThumbsConstraints.ResizeNorth,m,void 0,r,{"aria-label":"Thumb to resize the selected object on top side direction"},void 0,"e-pv-diagram-resize-handle e-north",p),this.renderCircularHandle("resizeSouth",e,c+f/2,g+u,t,!0,n&i.ThumbsConstraints.ResizeSouth,m,void 0,r,{"aria-label":"Thumb to resize the selected object on bottom side direction"},void 0,"e-pv-diagram-resize-handle e-south",p),this.renderCircularHandle("resizeWest",e,c,g+u/2,t,!0,n&i.ThumbsConstraints.ResizeWest,m,void 0,r,{"aria-label":"Thumb to resize the selected object on left side direction"},void 0,"e-pv-diagram-resize-handle e-west",p),this.renderCircularHandle("resizeEast",e,c+f,g+u/2,t,!0,n&i.ThumbsConstraints.ResizeEast,m,void 0,r,{"aria-label":"Thumb to resize the selected object on right side direction"},void 0,"e-pv-diagram-resize-handle e-east",p))),"Textbox"!==B&&"Checkbox"!==B&&"RadioButton"!==B&&"SignatureField"!==B&&"InitialField"!==B&&"DropdownList"!==B&&"ListBox"!==B&&"PasswordField"!==B||(this.renderCircularHandle("resizeNorth",e,c+f/2,g,t,!0,n&i.ThumbsConstraints.ResizeNorth,m,void 0,r,{"aria-label":"Thumb to resize the selected object on top side direction"},void 0,"e-pv-diagram-resize-handle e-north",p),this.renderCircularHandle("resizeSouth",e,c+f/2,g+u,t,!0,n&i.ThumbsConstraints.ResizeSouth,m,void 0,r,{"aria-label":"Thumb to resize the selected object on bottom side direction"},void 0,"e-pv-diagram-resize-handle e-south",p),this.renderCircularHandle("resizeWest",e,c,g+u/2,t,!0,n&i.ThumbsConstraints.ResizeWest,m,void 0,r,{"aria-label":"Thumb to resize the selected object on left side direction"},void 0,"e-pv-diagram-resize-handle e-west",p),this.renderCircularHandle("resizeEast",e,c+f,g+u/2,t,!0,n&i.ThumbsConstraints.ResizeEast,m,void 0,r,{"aria-label":"Thumb to resize the selected object on right side direction"},void 0,"e-pv-diagram-resize-handle e-east",p))},e.prototype.getAllowedInteractions=function(e){if(e&&e.length>0)for(var t=0;t<e.length;t++)if("None"!==e[0]&&"Resize"===e[parseInt(t.toString(),10)])return!1;return!0},e.prototype.getResizerLocation=function(e,i){var n;if(i&&"object"!=typeof i&&""!==i){o=JSON.parse(i);n=t.isNullOrUndefined(o.resizerLocation)||3===o.resizerLocation?3:o.resizerLocation}else if(i&&""!==i)n=t.isNullOrUndefined(i.resizerLocation)||3===i.resizerLocation?3:i.resizerLocation;else{var o=this.pdfViewer.annotationSelectorSettings;n=t.isNullOrUndefined(o.resizerLocation)||3===o.resizerLocation?3:o.resizerLocation,"Line"===e&&this.pdfViewer.lineSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.lineSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.lineSettings.annotationSelectorSettings.resizerLocation:"LineWidthArrowHead"===e&&this.pdfViewer.arrowSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerLocation:"Rectangle"===e&&this.pdfViewer.rectangleSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerLocation:"Ellipse"===e&&this.pdfViewer.circleSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.circleSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.circleSettings.annotationSelectorSettings.resizerLocation:"Polygon"===e&&this.pdfViewer.polygonSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerLocation:"Distance"===e?n=t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerLocation:"Radius"===e&&this.pdfViewer.radiusSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerLocation:"Stamp"===e&&this.pdfViewer.stampSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation:"FreeText"===e&&this.pdfViewer.freeTextSettings.annotationSelectorSettings?n=t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerLocation:"HandWrittenSignature"!==e&&"SignatureText"!==e&&"SignatureImage"!==e||!this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings?"Ink"===e&&this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings&&(n=t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerLocation):n=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerLocation)||3===this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerLocation?3:t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)||t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerLocation)?3:this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerLocation}return n},e.prototype.renderPivotLine=function(e,t,i,n,o){var r=e,a=!0;o&&(a=!1);var s=w(r,i);s.fill="None",s.stroke="black",s.strokeWidth=1,s.dashArray="2,3",s.visible=a;var l=i.scale;s.x*=l,s.y*=l,s.width*=l,s.height*=l,s.id="pivotLine",s.class="e-diagram-pivot-line";var d={x:r.actualSize.width*r.pivot.x*l,y:-20},A={x:r.actualSize.width*r.pivot.x*l,y:0};s.startPoint=d,s.endPoint=A,this.shownBorder()&&this.svgRenderer.drawLine(t,s)},e.prototype.renderEndPointHandle=function(e,t,n,o,r,a,s,l){o=o||{tx:0,ty:0,scale:1};var d,A=e.sourcePoint,h=e.targetPoint,p=e.wrapper,c=this.shownBorder();if(c)for(d=0;d<e.vertexPoints.length;d++){u=e.vertexPoints[parseInt(d.toString(),10)];this.renderCircularHandle("segementThumb_"+(d+1),p,u.x,u.y,t,!0,n&i.ThumbsConstraints.ConnectorSource,o,r,null,null,d,"e-pv-diagram-resize-handle",l)}var g=0;if("Distance"===e.shapeAnnotationType)for(d=0;d<e.wrapper.children.length;d++){var u=e.wrapper.children[parseInt(d.toString(),10)],f=void 0,m=i.Point.findAngle(e.sourcePoint,e.targetPoint);if(u.id.indexOf("leader")>-1){var w=e.wrapper.children[0].bounds.center;0===g?(f={x:e.sourcePoint.x,y:e.sourcePoint.y-e.leaderHeight},w=A):(f={x:e.targetPoint.x,y:e.targetPoint.y-e.leaderHeight},w=h);var C=i.identityMatrix();if(i.rotateMatrix(C,m,w.x,w.y),c){var B=i.transformPointByMatrix(C,{x:f.x,y:f.y});this.renderCircularHandle("leaderThumb_"+(d+1),p,B.x,B.y,t,!0,n&i.ThumbsConstraints.ConnectorSource,o,r,null,null,d,"e-pv-diagram-resize-handle",l)}g++}}},e.prototype.initSelectorWrapper=function(){this.pdfViewer.selectedItems.init(this)},e.prototype.select=function(e,i,n,o){for(var r=this.pdfViewer.selectedItems,a=this,s=0;s<e.length;s++)!function(n){var s=a.pdfViewer.nameTable[e[parseInt(n.toString(),10)]];if(s.formFieldAnnotationType&&a.pdfViewer.designerMode)r.formFields.push(s),a.initSelectorWrapper(),r.wrapper.children.push(s.wrapper),a.renderSelector(s.pageIndex,i,s,!0);else if(s&&!s.formFieldAnnotationType&&!(s instanceof at)&&s.wrapper.visible&&a.pdfViewer.annotationModule){var l=void 0;s.annotationSettings?(l=s.annotationSettings,t.isNullOrUndefined(l)||t.isNullOrUndefined(l.isLock)||(l.isLock=JSON.parse(l.isLock))):s.formFieldAnnotationType||(l=a.pdfViewer.annotationModule.findAnnotationSettings(s,!0),s.annotationSettings=l);!s.formFieldAnnotationType&&(!!l&&l.isLock);l&&l.isLock&&a.pdfViewer.annotationModule.checkAllowedInteractions("Select",s)&&!1;var d="Path"===s.shapeAnnotationType||"SignatureText"===s.shapeAnnotationType||"SignatureImage"===s.shapeAnnotationType,A=!1;a.pdfViewer.formFieldCollection.filter(function(e){return e.id===s.id.split("_")[0]}).forEach(function(e){return A=e.isReadonly}),A&&d||(r.annotations.push(s),a.shownBorder()&&(a.initSelectorWrapper(),r.wrapper.rotateAngle=r.rotateAngle=0,r.wrapper.children.push(s.wrapper),o||a.renderSelector(s.pageIndex,i,s,!0)))}}(s)},e.prototype.dragSelectedObjects=function(e,t,i,n,o){var r=this.pdfViewer.selectedItems;return this.drag(r,e,t,n,o),!0},e.prototype.drag=function(e,t,i,n,o){if(e instanceof at){if(e.annotations.length)for(var r=0,a=e.annotations;r<a.length;r++){d=a[r];this.drag(d,t,i,n,o),this.renderSelector(d.pageIndex,n,o)}else if(e.formFields.length)for(var s=0,l=e.formFields;s<l.length;s++){var d=l[s];this.drag(d,t,i,n,o),this.renderSelector(d.pageIndex,n,o)}}else this.dragAnnotation(e,t,i)},e.prototype.dragAnnotation=function(e,t,i){var n=this.moveInsideViewer(e,t,i);if(e.wrapper.offsetX+=n.tx,e.wrapper.offsetY+=n.ty,g(e)||"Polygon"===e.shapeAnnotationType){if(e.wrapper.children.length)for(var o=e.wrapper.children,r=0;r<o.length;r++)o[parseInt(r.toString(),10)].offsetX+=t,o[parseInt(r.toString(),10)].offsetY+=i;this.dragControlPoint(e,t,i,!0)}this.nodePropertyChange(e,{bounds:{x:e.wrapper.offsetX,y:e.wrapper.offsetY}}),e.wrapper.measureChildren=!1;var a=this.pdfViewer.viewerBase.getAnnotationCanvas("_annotationCanvas_",e.pageIndex);this.pdfViewer.renderDrawing(a,e.pageIndex)},e.prototype.dragControlPoint=function(e,t,i,n,o){for(var r=this.pdfViewer.nameTable[e.id],a=0;a<r.vertexPoints.length;a++)r.vertexPoints[parseInt(a.toString(),10)].x+=t,r.vertexPoints[parseInt(a.toString(),10)].y+=i;return n||this.updateEndPoint(r),!0},e.prototype.updateEndPoint=function(e){this.nodePropertyChange(e,{vertexPoints:e.vertexPoints}),this.renderSelector(e.pageIndex)},e.prototype.nodePropertyChange=function(e,n,o){var r;if(n.bounds&&(void 0!==n.bounds.width&&(e.bounds.width=e.wrapper.width=n.bounds.width),void 0!==n.bounds.height&&(e.bounds.height=e.wrapper.height=n.bounds.height),void 0!==n.bounds.x&&(e.bounds.x=n.bounds.x-.5*e.bounds.width,e.wrapper.offsetX=n.bounds.x),void 0!==n.bounds.y&&(e.bounds.y=n.bounds.y-.5*e.bounds.height,e.wrapper.offsetY=n.bounds.y),void 0!==n.leaderHeight&&(e.leaderHeight=n.leaderHeight,this.updateConnector(e,e.vertexPoints)),e.wrapper.children.length))for(var a=e.wrapper.children,s=0;s<a.length;s++)if(a[parseInt(s.toString(),10)].id){var l=a[parseInt(s.toString(),10)].id.split("_");if(l.length&&(l.indexOf("perimeter")>-1||l.indexOf("radius")>-1))this.setNodePosition(a[parseInt(s.toString(),10)],e);else if(l.length&&l.indexOf("srcDec")>-1)a[parseInt(s.toString(),10)].offsetX=e.vertexPoints[0].x,a[parseInt(s.toString(),10)].offsetY=e.vertexPoints[0].y;else if(l.length&&l.indexOf("tarDec")>-1)a[parseInt(s.toString(),10)].offsetX=e.vertexPoints[e.vertexPoints.length-1].x,a[parseInt(s.toString(),10)].offsetY=e.vertexPoints[e.vertexPoints.length-1].y;else if(l.length&&l.indexOf("stamp")>-1){var d=0;if(void 0!==e.wrapper.width&&void 0!==e.wrapper.height&&(d=20),e.isDynamicStamp){a[parseInt(s.toString(),10)].width=e.bounds.width-d,a[parseInt(s.toString(),10)].height=e.bounds.height/2-d;var A=a[1],h=this.pdfViewer.stampSettings?this.pdfViewer.stampSettings:this.pdfViewer.annotationSettings;if(h&&(h.maxHeight||h.maxWidth)&&e.bounds.height>60)A.style.fontSize=0!==d?e.bounds.width/d:e.wrapper.bounds.width/20;else if(0!==d){p=e.rotateAngle>0?e.wrapper.actualSize.width:e.bounds.width;A.style.fontSize=this.fontSizeCalculation(e,A,p-20)}else{var p=e.rotateAngle>0?e.wrapper.actualSize.width:e.wrapper.bounds.width;A.style.fontSize=this.fontSizeCalculation(e,A,p-20)}0!==d&&(A.margin.bottom=-a[parseInt(s.toString(),10)].height/2)}else a[parseInt(s.toString(),10)].width=e.bounds.width-d,a[parseInt(s.toString(),10)].height=e.bounds.height-d;a[parseInt(s.toString(),10)].offsetX=e.wrapper.offsetX,a[parseInt(s.toString(),10)].offsetY=e.wrapper.offsetX,a[parseInt(s.toString(),10)].isDirt=!0}}if(void 0!==n.sourceDecoraterShapes&&(e.sourceDecoraterShapes=n.sourceDecoraterShapes,this.updateConnector(e,e.vertexPoints)),void 0!==n.isReadonly&&"FreeText"===e.shapeAnnotationType&&(e.isReadonly=n.isReadonly),void 0!==n.annotationSelectorSettings&&(e.annotationSelectorSettings=n.annotationSelectorSettings),void 0!==n.taregetDecoraterShapes&&(e.taregetDecoraterShapes=n.taregetDecoraterShapes,this.updateConnector(e,e.vertexPoints)),void 0!==n.fillColor&&(e.fillColor=n.fillColor,e.wrapper.children[0].style.fill=n.fillColor,(e.enableShapeLabel||e.measureType)&&e.wrapper&&e.wrapper.children))for(var a=e.wrapper.children,c=0;c<a.length;c++)a[parseInt(c.toString(),10)].textNodes&&(e.enableShapeLabel&&(e.labelFillColor=n.fillColor,a[parseInt(c.toString(),10)].style.fill=n.fillColor),e.measureType&&(a[parseInt(c.toString(),10)].style.fill=n.fillColor));if(e.enableShapeLabel&&void 0!==n.labelFillColor&&e.enableShapeLabel&&e.wrapper&&e.wrapper.children)for(var a=e.wrapper.children,f=0;f<a.length;f++)a[parseInt(f.toString(),10)].textNodes&&(e.labelFillColor=n.labelFillColor,a[parseInt(f.toString(),10)].style.fill=n.labelFillColor);if(void 0!==n.opacity&&("Stamp"===e.shapeAnnotationType||"FreeText"===e.shapeAnnotationType?(e.wrapper.children[1].style.opacity=n.opacity,e.wrapper.children[2]&&(e.wrapper.children[2].style.opacity=n.opacity)):"StickyNotes"===e.shapeAnnotationType&&(this.pdfViewer.nameTable[e.annotName].wrapper.children[0].style.opacity=n.opacity),e.opacity=n.opacity,e.wrapper.children[0].style.opacity=n.opacity,e.enableShapeLabel&&e.wrapper&&e.wrapper.children))for(var a=e.wrapper.children,m=0;m<a.length;m++)a[parseInt(m.toString(),10)].textNodes&&(a[parseInt(m.toString(),10)].style.opacity=n.labelOpacity);if(e.enableShapeLabel&&void 0!==n.labelOpacity&&e.enableShapeLabel&&e.wrapper&&e.wrapper.children)for(var a=e.wrapper.children,w=0;w<a.length;w++)a[parseInt(w.toString(),10)].textNodes&&(a[parseInt(w.toString(),10)].style.opacity=n.labelOpacity);if(void 0!==n.rotateAngle&&(e.rotateAngle=n.rotateAngle,e.wrapper.rotateAngle=n.rotateAngle),void 0!==n.strokeColor&&(e.strokeColor=n.strokeColor,e.wrapper.children[0].style.strokeColor=n.strokeColor,"Radius"===e.shapeAnnotationType&&e.wrapper.children[1]&&(e.wrapper.children[1].style.strokeColor=n.strokeColor)),void 0!==n.fontColor&&(e.fontColor=n.fontColor,"FreeText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&((a=e.wrapper.children)[1].style.color=n.fontColor,"Justify"===e.textAlign?a[1].horizontalAlignment="Center":a[1].horizontalAlignment="Auto"),e.enableShapeLabel&&e.wrapper&&e.wrapper.children))for(var a=e.wrapper.children,C=0;C<a.length;C++)a[parseInt(C.toString(),10)].textNodes&&(a[parseInt(C.toString(),10)].style.color=n.fontColor);if(void 0!==n.fontFamily&&(e.fontFamily=n.fontFamily,"FreeText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&((a=e.wrapper.children)[1].style.fontFamily=n.fontFamily),e.enableShapeLabel&&e.wrapper&&e.wrapper.children))for(var a=e.wrapper.children,S=0;S<a.length;S++)a[parseInt(S.toString(),10)].textNodes&&(a[parseInt(S.toString(),10)].style.fontFamily=n.fontFamily);if(void 0!==n.fontSize){if(("FreeText"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType)&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&((a=e.wrapper.children)[1].style.fontSize=n.fontSize,"SignatureText"===e.shapeAnnotationType&&(e.wrapper.children[1].bounds.width=e.bounds.width,e.wrapper.children[1].desiredSize.width=e.bounds.width,e.wrapper.children[1].actualSize.width=e.bounds.width,a[1].horizontalAlignment="Center",a[1].verticalAlignment="Center",a[1].setOffsetWithRespectToBounds(0,0,"Absolute"))),e.enableShapeLabel&&e.wrapper&&e.wrapper.children)for(var a=e.wrapper.children,y=0;y<a.length;y++)a[parseInt(y.toString(),10)].textNodes&&(a[parseInt(y.toString(),10)].style.fontSize=n.fontSize);this.pdfViewer.enableToolbar&&this.pdfViewer.toolbarModule?this.pdfViewer.toolbarModule.annotationToolbarModule.updateFontSizeInIcon(n.fontSize):this.pdfViewer.annotationModule&&e.fontSize!==n.fontSize&&this.pdfViewer.annotationModule.handleFontSizeUpdate(n.fontSize)}if(void 0!==n.font&&"FreeText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length){a=e.wrapper.children;void 0!==n.font.isBold&&(a[1].style.bold=n.font.isBold,e.font.isBold=n.font.isBold),void 0!==n.font.isItalic&&(a[1].style.italic=n.font.isItalic,e.font.isItalic=n.font.isItalic),void 0!==n.font.isUnderline&&(n.font.isUnderline&&(e.font.isStrikeout=!1),!0===n.font.isUnderline?a[1].style.textDecoration="Underline":n.font.isStrikeout||(a[1].style.textDecoration="None"),e.font.isUnderline=n.font.isUnderline),void 0!==n.font.isStrikeout&&(n.font.isStrikeout&&(e.font.isUnderline=!1),!0===n.font.isStrikeout?a[1].style.textDecoration="LineThrough":n.font.isUnderline||(a[1].style.textDecoration="None"),e.font.isStrikeout=n.font.isStrikeout)}if(void 0!==n.textAlign){var I=!t.isNullOrUndefined(this.pdfViewer.selectedItems.annotations)&&this.pdfViewer.selectedItems.annotations.length>0?this.pdfViewer.selectedItems.annotations[0]:e,v=B(I),b=B(I);e.textAlign!==n.textAlign&&(e.textAlign=n.textAlign,b.textAlign=n.textAlign,"FreeText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&((a=e.wrapper.children)[1].style.textAlign=n.textAlign,1===a[1].childNodes.length?"Justify"===e.textAlign?(a[1].horizontalAlignment="Left",a[1].setOffsetWithRespectToBounds(.01,0,null)):"Right"===e.textAlign?(a[1].horizontalAlignment="Right",a[1].setOffsetWithRespectToBounds(1,0,null)):"Left"===e.textAlign?(a[1].horizontalAlignment="Left",a[1].setOffsetWithRespectToBounds(.01,0,null)):"Center"===e.textAlign&&(a[1].horizontalAlignment="Center",a[1].setOffsetWithRespectToBounds(.51,0,null)):a[1].childNodes.length>1&&"Justify"===e.textAlign?a[1].horizontalAlignment="Center":a[1].horizontalAlignment="Auto",this.pdfViewer.annotation.isUndoRedoAction||this.pdfViewer.annotation.addAction(this.pdfViewer.viewerBase.getActivePage(!1),null,I,"textAlign","",v,b)))}if(void 0!==n.thickness){if(e.thickness=n.thickness,e.wrapper.children[0].style.strokeWidth=n.thickness,"Line"===e.shapeAnnotationType||"LineWidthArrowHead"===e.shapeAnnotationType)for(var V=0;V<e.wrapper.children.length;V++){var D=e.wrapper.children[parseInt(V.toString(),10)];(D.id.includes("srcDec")||D.id.includes("tarDec"))&&(D.width=12*n.thickness,D.height=12*n.thickness)}"Radius"===e.shapeAnnotationType&&e.wrapper.children[1]&&(e.wrapper.children[1].style.strokeWidth=n.thickness)}if(void 0!==n.borderDashArray&&(e.borderDashArray=n.borderDashArray,e.wrapper.children[0].style.strokeDashArray=n.borderDashArray),void 0!==n.borderStyle&&(e.borderStyle=n.borderStyle),void 0!==n.author&&(e.author=n.author),void 0!==n.modifiedDate&&(e.modifiedDate=n.modifiedDate),void 0!==n.subject&&(e.subject=n.subject),void 0!==n.vertexPoints&&(e.vertexPoints=n.vertexPoints,this.pdfViewer.nameTable[e.id].vertexPoints=n.vertexPoints,this.updateConnector(e,n.vertexPoints)),void 0!==n.leaderHeight&&"Polygon"!==e.shapeAnnotationType&&(e.leaderHeight=n.leaderHeight,this.updateConnector(e,e.vertexPoints)),void 0!==n.notes&&(e.notes=n.notes),void 0!==n.annotName&&(e.annotName=n.annotName),"Distance"===e.shapeAnnotationType){for(r=0;r<e.wrapper.children.length;r++){var x=e.wrapper.children[parseInt(r.toString(),10)],Q=E(e);x.id.indexOf("leader1")>-1&&this.setLineDistance(e,Q,x,!1),x.id.indexOf("leader2")>-1&&this.setLineDistance(e,Q,x,!0)}this.updateConnector(e,e.vertexPoints)}if("Polygon"===e.shapeAnnotationType&&n.vertexPoints){e.data=U(e.vertexPoints);var M=e.wrapper.children[0];M.data=e.data,M.canMeasurePath=!0}if(g(e))for(var F=0;F<e.wrapper.children.length;F++)e.wrapper.children[parseInt(F.toString(),10)].textNodes||u(e,e.wrapper.children[parseInt(F.toString(),10)]),!0===e.enableShapeLabel?(e.wrapper.children[parseInt(F.toString(),10)]instanceof i.TextElement&&(e.wrapper.children[parseInt(F.toString(),10)].style.fill=e.labelFillColor),e.wrapper.children[parseInt(F.toString(),10)]instanceof i.PathElement&&"Perimeter"===e.measureType&&(e.wrapper.children[parseInt(F.toString(),10)].style.fill="transparent")):(e.wrapper.children[parseInt(F.toString(),10)]instanceof i.PathElement&&"Perimeter"===e.measureType||e.wrapper.children[parseInt(F.toString(),10)]instanceof i.TextElement)&&(e.wrapper.children[parseInt(F.toString(),10)].style.fill="transparent");
10if(e&&("FreeText"===e.shapeAnnotationType||!0===e.enableShapeLabel)&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length)for(var a=e.wrapper.children,T=0;T<a.length;T++)a[parseInt(T.toString(),10)].textNodes&&("FreeText"===e.shapeAnnotationType?(n.dynamicText?(a[parseInt(T.toString(),10)].content=n.dynamicText,e.dynamicText=n.dynamicText):a[parseInt(T.toString(),10)].content=e.dynamicText,a[parseInt(T.toString(),10)].width=e.bounds.width):!0===e.enableShapeLabel&&e.measureType?(n.labelContent?(a[parseInt(T.toString(),10)].content=n.labelContent,e.labelContent=n.labelContent):a[parseInt(T.toString(),10)].content=e.labelContent,e.notes=a[parseInt(T.toString(),10)].content):!0===e.enableShapeLabel&&(n.labelContent?(a[parseInt(T.toString(),10)].content=n.labelContent,e.labelContent=n.labelContent):a[parseInt(T.toString(),10)].content=e.labelContent,e.notes=a[parseInt(T.toString(),10)].content),a[parseInt(T.toString(),10)].isDirt=!0);if(e&&"SignatureText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length>1&&(e.wrapper.children[1].isDirt=!0),e&&"FreeText"===e.shapeAnnotationType&&this.pdfViewer.annotationModule.stickyNotesAnnotationModule.textFromCommentPanel?(e.wrapper.width=void 0,e.wrapper.height=void 0,e.wrapper.measure(new i.Size(e.bounds.width,e.bounds.height)),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.textFromCommentPanel=!1):e.wrapper.measure(new i.Size(e.wrapper.bounds.width,e.wrapper.bounds.height)),e.wrapper.arrange(e.wrapper.desiredSize),e&&e.formFieldAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&((a=e.wrapper.children[0]).actualSize.width=e.wrapper.desiredSize.width,a.actualSize.height=e.wrapper.desiredSize.height),e&&"FreeText"===e.shapeAnnotationType&&!t.isNullOrUndefined(e.subject)){if(e.wrapper&&e.wrapper.children&&e.wrapper.children.length){(a=e.wrapper.children)[1].childNodes.length>1&&"Justify"===e.textAlign?a[1].horizontalAlignment="Center":1===a[1].childNodes.length&&("Justify"===e.textAlign?(a[1].horizontalAlignment="Left",a[1].setOffsetWithRespectToBounds(.01,0,null)):"Right"===e.textAlign?(a[1].horizontalAlignment="Right",a[1].setOffsetWithRespectToBounds(1,0,null)):"Left"===e.textAlign?(a[1].horizontalAlignment="Left",a[1].setOffsetWithRespectToBounds(.01,0,null)):"Center"===e.textAlign&&(a[1].horizontalAlignment="Center",a[1].setOffsetWithRespectToBounds(.51,0,null)));for(var k=0;k<a.length;k++){if(a[parseInt(k.toString(),10)].textNodes&&a[parseInt(k.toString(),10)].textNodes.length>0){a[parseInt(k.toString(),10)].isDirt=!0;var P=a[parseInt(k.toString(),10)].textNodes.length*a[parseInt(k.toString(),10)].textNodes[0].dy,N=e.bounds.height-P;if(N>0&&N<a[parseInt(k.toString(),10)].textNodes[0].dy&&(P+=a[parseInt(k.toString(),10)].textNodes[0].dy),P>e.bounds.height){for(var R="",L=0;L<a[parseInt(k.toString(),10)].textNodes.length;L++)R+=a[parseInt(k.toString(),10)].textNodes[parseInt(L.toString(),10)].text;a[parseInt(k.toString(),10)].content=R}}a[parseInt(k.toString(),10)].width=e.bounds.width}}e.wrapper.measure(new i.Size(e.bounds.width,e.bounds.height)),e.wrapper.arrange(e.wrapper.desiredSize)}(o||t.isNullOrUndefined(o))&&this.pdfViewer.renderDrawing(void 0,e.pageIndex),e&&"FreeText"===e.shapeAnnotationType&&e.wrapper&&e.wrapper.children&&e.wrapper.children.length&&(1===(a=e.wrapper.children)[1].childNodes.length&&"Justify"===e.textAlign?(a[1].horizontalAlignment="Left",a[1].setOffsetWithRespectToBounds(.5,0,null)):a[1].childNodes.length>1&&"Justify"===e.textAlign&&(a[1].horizontalAlignment="Center",a[1].setOffsetWithRespectToBounds(0,0,null)))},e.prototype.fontSizeCalculation=function(e,t,i){var n=this.pdfViewer.viewerBase.getAnnotationCanvas("_annotationCanvas_",e.pageIndex).getContext("2d"),o=0,r=0,a="";for(t.style.italic&&t.style.bold?a="bold italic ":t.style.bold?a="bold ":t.style.italic&&(a="italic ");i>o;)n.font=a+r+"px "+t.style.fontFamily,o=n.measureText(e.dynamicText).width,r+=.1;return r-=.1},e.prototype.setLineDistance=function(e,t,i,n){var o;o=n?H(e,t[1],t[0],n):H(e,t[0],t[1],n),i.data=o.data,i.offsetX=o.offsetX,i.offsetY=o.offsetY,i.rotateAngle=o.rotateAngle,i.width=o.width,i.height=o.height,i.pivot=o.pivot,i.c
10anMeasurePath=!0,i.isDirt=!0},e.prototype.scaleSelectedItems=function(e,t,i){var n=this.pdfViewer.selectedItems;return this.scale(n,e,t,i)},e.prototype.scale=function(e,t,i,n){var o=!0;if(e instanceof at){if(e.annotations&&e.annotations.length)for(var r=0,a=e.annotations;r<a.length;r++){d=a[r];o=this.scaleAnnotation(d,t,i,n,e)}else if(e.formFields&&e.formFields.length)for(var s=0,l=e.formFields;s<l.length;s++){var d=l[s];o=this.scaleAnnotation(d,t,i,n,e)}}else o=this.scaleAnnotation(e,t,i,n,void 0);return o},e.prototype.scaleObject=function(e,t,n,o,r,a){if(e=e<0?1:e,t=t<0?1:t,1!==e||1!==t){var s=void 0,l=void 0;if(!g(o)){s=(h=o).wrapper.actualSize.width*e,l=h.wrapper.actualSize.height*t,e=s/h.wrapper.actualSize.width,t=l/h.wrapper.actualSize.height}var d=i.identityMatrix();a||(a=o);var A=a.wrapper;if(i.rotateMatrix(d,-A.rotateAngle,n.x,n.y),i.scaleMatrix(d,e,t,n.x,n.y),i.rotateMatrix(d,A.rotateAngle,n.x,n.y),!g(o)){var h=o,p=i.transformPointByMatrix(d,{x:h.wrapper.offsetX,y:h.wrapper.offsetY});s>0&&(h.wrapper.width=s,h.wrapper.offsetX=p.x),l>0&&(h.wrapper.height=l,h.wrapper.offsetY=p.y),this.nodePropertyChange(o,{bounds:{width:h.wrapper.width,height:h.wrapper.height,x:h.wrapper.offsetX,y:h.wrapper.offsetY}})}}},e.prototype.scaleAnnotation=function(e,t,i,n,o){var r=this.pdfViewer.nameTable[e.id],a=r.wrapper;o||(o=e);var s=o.wrapper,l=s.offsetX-s.actualSize.width*s.pivot.x,d=s.offsetY-s.actualSize.height*s.pivot.y,A=this.getShapePoint(l,d,s.actualSize.width,s.actualSize.height,s.rotateAngle,s.offsetX,s.offsetY,n);void 0!==a.actualSize.width&&void 0!==a.actualSize.height&&this.scaleObject(t,i,A,r,a,o);var h=this.checkBoundaryConstraints(void 0,void 0,e.pageIndex,e.wrapper.bounds);if(!h&&(this.scaleObject(1/t,1/i,A,r,a,o),"FreeText"===e.shapeAnnotationType&&("free_text"===e.id.slice(0,9)||"freetext"===e.id.slice(0,8)))){var p=this.moveInsideViewer(e);this.nodePropertyChange(e,{bounds:{width:e.wrapper.width,height:e.wrapper.height,x:e.wrapper.offsetX+p.tx,y:e.wrapper.offsetY+p.ty}})}return h},e.prototype.moveInsideViewer=function(e,t,i){if(t=t||0,i=i||0,"FreeText"===e.shapeAnnotationType&&("free_text"===e.id.slice(0,9)||"freetext"===e.id.slice(0,8))){var n=this.pdfViewer.viewerBase.getAnnotationCanvas("_annotationCanvas_",e.pageIndex);if(n){var o=e.wrapper.bounds,r=n.clientWidth/this.pdfViewer.viewerBase.getZoomFactor(),a=n.clientHeight/this.pdfViewer.viewerBase.getZoomFactor(),s=o.right,l=o.left,d=o.top,A=o.bottom;if(!(s+t<=r-3&&l+t>=1&&A+i<=a-3&&d+i>=1)){var h=0,p=0;s<=r-3||(h=r-s-3),l>=1||(h=h-l+1),A<=a-3||(p=a-A-3),d>=1||(p=p-d+1),0!==h&&(t=h),0!==p&&(i=p)}}}return{tx:t,ty:i}},e.prototype.checkBoundaryConstraints=function(e,t,i,n,o,r){var a=n?void 0:this.pdfViewer.selectedItems.wrapper.bounds,s=n,l=this.pdfViewer.viewerBase.getAnnotationCanvas("_annotationCanvas_",i),d=1;if(l){var A=l.clientWidth/this.pdfViewer.viewerBase.getZoomFactor(),h=l.clientHeight/this.pdfViewer.viewerBase.getZoomFactor(),p=(n?s.right:a.right)+(e||0),c=(n?s.left:a.left)+(e||0),g=(n?s.top:a.top)+(t||0),u=(n?s.bottom:a.bottom)+(t||0);if(o&&(d=50,this.pdfViewer.viewerBase.eventArgs&&this.pdfViewer.viewerBase.eventArgs.source&&this.RestrictStamp(this.pdfViewer.viewerBase.eventArgs.source)))return!1;if(p<=A-3&&c>=1&&u<=h-3&&g>=d)return!0;if(r&&(d=10,p<=A-10&&c>=10&&u<=h-10&&g>=d))return!0}return!1},e.prototype.RestrictStamp=function(e){return!(!e||void 0===e.pageIndex||!this.pdfViewer.viewerBase.activeElements||e.pageIndex===this.pdfViewer.viewerBase.activeElements.activePageID)},e.prototype.getShapeBounds=function(e){var t=new i.Rect,n=i.cornersPointsBeforeRotation(e),o=n.middleLeft,r=n.topCenter,a=n.bottomCenter,s=n.middleRight,l=n.topLeft,d=n.topRight,A=n.bottomLeft,h=n.bottomRight;if(e.corners={topLeft:l,topCenter:r,topRight:d,middleLeft:o,middleRight:s,bottomLeft:A,bottomCenter:a,bottomRight:h},0!==e.rotateAngle||0!==e.parentTransform){var p=i.identityMatrix();i.rotateMatrix(p,e.rotateAngle+e.parentTransform,e.offsetX,e.offsetY),e.corners.topLeft=l=i.transformPointByMatrix(p,l),e.corners.topCenter=r=i.transformPointByMatrix(p,r),e.corners.topRight=d=i.transformPointByMatrix(p,d),e.corners.middleLeft=o=i.transformPointByMatrix(p,o),e.corners.middleRight=s=i.transformPointByMatrix(p,s),e.corners.bottomLeft=A=i.transformPointByMatrix(p,A),e.corners.bottomCenter=a=i.transformPointByMatrix(p,a),e.corners.bottomRight=h=i.transformPointByMatrix(p,h)}return t=i.Rect.toBounds([l,d,A,h]),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},e.prototype.getShapePoint=function(e,t,n,o,r,a,s,l){var d={x:0,y:0},A=i.identityMatrix();switch(i.rotateMatrix(A,r,a,s),l.x){case 1:switch(l.y){case 1:d=i.transformPointByMatrix(A,{x:e+n,y:t+o});break;case 0:d=i.transformPointByMatrix(A,{x:e+n,y:t});break;case.5:d=i.transformPointByMatrix(A,{x:e+n,y:t+o/2})}break;case 0:switch(l.y){case.5:d=i.transformPointByMatrix(A,{x:e,y:t+o/2});break;case 1:d=i.transformPointByMatrix(A,{x:e,y:t+o});break;case 0:d=i.transformPointByMatrix(A,{x:e,y:t})}break;case.5:switch(l.y){case 0:d=i.transformPointByMatrix(A,{x:e+n/2,y:t});break;case.5:d=i.transformPointByMatrix(A,{x:e+n/2,y:t+o/2});break;case 1:d=i.transformPointByMatrix(A,{x:e+n/2,y:t+o})}}return{x:d.x,y:d.y}},e.prototype.dragConnectorEnds=function(e,t,n,o,r,a,s){var l,d,A;if(l=t instanceof at?t.annotations[0]:t,n={x:n.x/this.pdfViewer.viewerBase.getZoomFactor(),y:n.y/this.pdfViewer.viewerBase.getZoomFactor()},this.checkBoundaryConstraints(void 0,void 0,l.pageIndex,l.wrapper.bounds)){if
vendor: 61,775 bytes, line 10
10("Distance"===l.shapeAnnotationType){var h=I(l,e);if("Leader0"===e)this.pdfViewer.viewerBase.tool instanceof St?(l.vertexPoints[0].x=n.x,l.vertexPoints[0].y=n.y):(d=n.x-h.point.x,A=n.y-h.point.y,l.vertexPoints[0].x+=d,l.vertexPoints[0].y+=A);else if("Leader1"===e){var p=l.vertexPoints.length-1;this.pdfViewer.viewerBase.tool instanceof St?(l.vertexPoints[parseInt(p.toString(),10)].x=n.x,l.vertexPoints[parseInt(p.toString(),10)].y=n.y):(d=n.x-h.point.x,A=n.y-h.point.y,l.vertexPoints[parseInt(p.toString(),10)].x+=d,l.vertexPoints[parseInt(p.toString(),10)].y+=A)}else{var c=i.Point.findAngle(l.sourcePoint,l.targetPoint),g=t.wrapper.children[0].bounds.center,u=i.identityMatrix();i.rotateMatrix(u,-c,g.x,g.y);var f=i.transformPointByMatrix(u,{x:n.x,y:n.y});if("ConnectorSegmentPoint"===e.split("_")[0]){var m=i.identityMatrix();i.rotateMatrix(m,-c,g.x,g.y);var w=i.transformPointByMatrix(m,l.vertexPoints[0]),C=i.transformPointByMatrix(m,l.vertexPoints[l.vertexPoints.length-1]);if(A=f.y-w.y,0===l.leaderHeight&&null!=l.leaderHeight)l.leaderHeight=this.pdfViewer.distanceSettings.leaderLength;else{l.leaderHeight+=A,w.y+=A,C.y+=A;var B=i.identityMatrix();i.rotateMatrix(B,c,g.x,g.y),l.vertexPoints[0]=i.transformPointByMatrix(B,w),l.vertexPoints[l.vertexPoints.length-1]=i.transformPointByMatrix(B,C)}}}}else if("ConnectorSegmentPoint"===e.split("_")[0]){var S=Number(e.split("_")[1]);d=n.x-l.vertexPoints[parseInt(S.toString(),10)].x,A=n.y-l.vertexPoints[parseInt(S.toString(),10)].y,l.vertexPoints[parseInt(S.toString(),10)].x+=d,l.vertexPoints[parseInt(S.toString(),10)].y+=A,l.vertexPoints.length>2&&"Perimeter"!==t.measureType&&(0===parseFloat(e.split("_")[1])?(l.vertexPoints[l.vertexPoints.length-1].x+=d,l.vertexPoints[l.vertexPoints.length-1].y+=A):parseFloat(e.split("_")[1])===l.vertexPoints.length-1&&(l.vertexPoints[0].x+=d,l.vertexPoints[0].y+=A))}this.nodePropertyChange(l,{vertexPoints:l.vertexPoints}),this.renderSelector(l.pageIndex,s)}return this.pdfViewer.renderDrawing(),!0},e.prototype.dragSourceEnd=function(e,t,i,n){var o=this.pdfViewer.nameTable[e.id];return o.vertexPoints[parseInt(n.toString(),10)].x+=t,o.vertexPoints[parseInt(n.toString(),10)].y+=i,this.pdfViewer.renderDrawing(),!0},e.prototype.updateConnector=function(e,t){e.vertexPoints=t,b(e,t,e.wrapper.children[0]);var i=e.vertexPoints,n=e.wrapper.children[0];n.canMeasurePath=!0;for(var o=0;o<e.wrapper.children.length;o++)n=e.wrapper.children[parseInt(o.toString(),10)],"Polygon"!==e.shapeAnnotationType&&(n.id.indexOf("srcDec")>-1&&D(e,n,t[0],i[1],!0),e.targetPoint,n.id.indexOf("tarDec")>-1&&D(e,n,t[t.length-1],i[i.length-2],!1))},e.prototype.copy=function(){var e;t.isNullOrUndefined(this.pdfViewer.annotationModule)||(e=this.pdfViewer.annotationModule.findAnnotationSettings(this.pdfViewer.selectedItems.annotations[0])),!(this.pdfViewer.formDesignerModule&&!this.pdfViewer.formDesigner.isPropertyDialogOpen||this.pdfViewer.annotationModule)||!this.pdfViewer.designerMode&&!this.pdfViewer.enableAnnotation||0===this.pdfViewer.selectedItems.formFields.length&&(0===this.pdfViewer.selectedItems.annotations.length||t.isNullOrUndefined(e)||e.isLock)||(this.pdfViewer.clipboardData.pasteIndex=1,this.pdfViewer.clipboardData.clipObject=this.copyObjects(),this.copiedElementID=this.pdfViewer.clipboardData.clipObject[0].id);var i,n=document.getElementById(this.pdfViewer.element.id+"_search_box");return n&&(i="none"!==n.style.display),(this.pdfViewer.formDesigner&&this.pdfViewer.formDesigner.isPropertyDialogOpen||i)&&(this.pdfViewer.clipboardData.clipObject={}),this.pdfViewer.clipboardData.clipObject},e.prototype.copyObjects=function(){var e=[],t=[];if(this.pdfViewer.clipboardData.childTable={},this.pdfViewer.selectedItems.annotations.length>0){e=this.pdfViewer.selectedItems.annotations;for(i=0;i<e.length;i++){n=B(e[parseInt(i.toString(),10)]);t.push(n)}}if(this.pdfViewer.selectedItems.formFields.length>0){e=this.pdfViewer.selectedItems.formFields;for(var i=0;i<e.length;i++){var n=B(e[parseInt(i.toString(),10)]);t.push(n)}}if(0===this.pdfViewer.clipboardData.pasteIndex)for(var o=0,r=e;o<r.length;o++){var a=r[o];this.pdfViewer.nameTable[a.id]&&(a.formFieldAnnotationType?(this.pdfViewer.clearSelection(a.pageIndex),this.pdfViewer.formDesignerModule.deleteFormField(a.id)):a.annotName?this.pdfViewer.annotationModule.deleteAnnotationById(a.annotName):this.pdfViewer.annotationModule.deleteAnnotation())}return this.sortByZIndex(t,"zIndex"),t},e.prototype.getNewObject=function(e){var t,i=[];this.pdfViewer.clipboardData.pasteIndex=1;for(var n=0;n<e.length;n++)t=B(e[parseInt(n.toString(),10)]),i.push(t);return i},e.prototype.isWithinBounds=function(e,t){var i=t.clientX,n=t.clientY,o=e.left,r=e.right,a=e.top,s=e.bottom;return o<i&&i<r&&a<n&&n<s},e.prototype.paste=function(e,n){var o=this.pdfViewer.viewerBase.getZoomFactor(),r=this.pdfViewer.allowServerDataBinding;this.pdfViewer.enableServerDataBinding(!1);var a;if(this.isPasted=!0,e||this.pdfViewer.clipboardData.clipObject){var s=e?this.getNewObject(e):this.pdfViewer.clipboardData.clipObject;if(s){var l={};if(0!==this.pdfViewer.clipboardData.pasteIndex&&this.pdfViewer.clearSelection(n),!t.isNullOrUndefined(s[0])&&this.pdfViewer.currentPageNumber===s[0].pageIndex+1){for(var d=0,A=s;d<A.length;d++){var h=A[d];a=h.id,h.id+=i.randomId();var p=this.splitFormFieldName(h),c=0;this.pdfViewer.formDesigner&&(this.pdfViewer.formDesigner.setFormFieldIndex(),c=this.pdfViewer.formDesigner.formFieldIndex,h.name=p+c),l[h.id]=h}for(var u=this,f=0;f<s.length;f++)!function(e){var r=s[parseInt(e.toString(),10)],l=u.pdfViewer.viewerBase.getElement("_pageDiv_"+r.pageIndex),d=event,A=l.getBoundingClientRect();if(!d||d.clientX||d.clientY||(d={clientX:u.pdfViewer.viewerBase.mouseLeft,clientY:u.pdfViewer.viewerBase.mouseTop}),t.isBlazor()&&(d=u.pdfViewer.viewerBase.mouseDownEvent),g(r)?u.calculateCopyPosition(r,l,d):l&&(A.right-d.clientX<r.bounds.width*o?r.bounds.x=(l.clientWidth-r.bounds.width*o)/o:r.bounds.x=(d.clientX-A.left)/o,A.bottom-d.clientY>r.bounds.height*o?r.bounds.y=(d.clientY-A.top)/o:r.bounds.y=(l.clientHeight-r.bounds.height*o)/o),u.isWithinBounds(A,d)){var h=B(r);if("Cut"!==u.pdfViewer.viewerBase.contextMenuModule.previousAction){if(h.id+=i.randomId(),u.pdfViewer.annotationModule&&"HandWrittenSignature"!==h.shapeAnnotationType&&(h.annotName=h.id,u.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationCollection(h,s[0],!1)),"SignatureText"!==h.shapeAnnotationType&&"HandWrittenSignature"!==h.shapeAnnotationType&&"SignatureImage"!==h.shapeAnnotationType||u.pdfViewer.viewerBase.signatureModule.storeSignatureData(h.pageIndex,h),!h.formFieldAnnotationType&&"SignatureText"!==h.shapeAnnotationType&&"HandWrittenSignature"!==h.shapeAnnotationType&&"SignatureImage"!==h.shapeAnnotationType&&(u.pdfViewer.annotation.addAction(u.pdfViewer.viewerBase.getActivePage(!1),null,h,"Addition","",h,h),"Distance"===h.measureType||"Perimeter"===h.measureType||"Area"===h.measureType||"Radius"===h.measureType||"Volume"===h.measureType)){var p=u.pdfViewer.annotationModule.measureAnnotationModule.scaleRatioCollection.find(function(e){return h.id.startsWith(e.id)});if(p){var c=JSON.parse(JSON.stringify(p));c.annotName=h.id,u.pdfViewer.annotationModule.measureAnnotationModule.scaleRatioCollection.push(c)}}}else u.pdfViewer.annotationModule&&u.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationCollection(h,s[0],!0),"SignatureText"!==h.shapeAnnotationType&&"HandWrittenSignature"!==h.shapeAnnotationType&&"SignatureImage"!==h.shapeAnnotationType||u.pdfViewer.viewerBase.signatureModule.storeSignatureData(h.pageIndex,h),h.formFieldAnnotationType||"SignatureText"===h.shapeAnnotationType||"HandWrittenSignature"===h.shapeAnnotationType||"SignatureImage"===h.shapeAnnotationType||u.pdfViewer.annotation.addAction(u.pdfViewer.viewerBase.getActivePage(!1),null,h,"Addition","",h,h);var f=u.add(h);if(u.pdfViewer.formDesigner&&f.formFieldAnnotationType&&u.pdfViewer.annotation&&u.pdfViewer.annotation.addAction(u.pdfViewer.viewerBase.getActivePage(!0),null,f,"Addition","",f,f),("FreeText"===h.shapeAnnotationType||h.enableShapeLabel)&&f&&u.nodePropertyChange(f,{}),f.formFieldAnnotationType&&f.pageIndex===n){u.pdfViewer.formFieldCollection.push(f);var m={id:f.id,name:f.name,value:f.value,type:f.formFieldAnnotationType,isReadOnly:f.isReadonly,fontFamily:f.fontFamily,fontSize:f.fontSize,fontStyle:f.fontStyle,color:f.color,backgroundColor:f.backgroundColor,alignment:f.alignment,visibility:f.visibility,maxLength:f.maxLength,isRequired:f.isRequired,isPrint:f.isPrint,isSelected:f.isSelected,isChecked:f.isChecked,tooltip:f.tooltip,bounds:f.bounds,thickness:f.thickness,borderColor:f.borderColor,signatureIndicatorSettings:f.signatureIndicatorSettings,insertSpaces:f.insertSpaces,isMultiline:f.isMultiline,isTransparent:f.isTransparent,options:f.options,pageIndex:f.pageIndex,pageNumber:f.pageNumber,rotateAngle:f.rotateAngle,signatureType:f.signatureType,zIndex:f.zIndex,selectedIndex:f.selectedIndex};f.options&&f.options.length>0&&(m.options=f.options),u.pdfViewer.formFieldCollections.push(m),u.pdfViewer.formDesigner.drawHTMLContent(f.formFieldAnnotationType,f.wrapper.children[0],f,f.pageIndex,u.pdfViewer,a)}u.pdfViewer.select([h.id],u.pdfViewer.annotationSelectorSettings),f.formFieldAnnotationType||u.pdfViewer.annotationModule.triggerAnnotationAddEvent(h)}}(f)}}this.pdfViewer.renderDrawing(void 0,n),this.pdfViewer.clipboardData.pasteIndex++}this.pdfViewer.enableServerDataBinding(r,!0)},e.prototype.splitFormFieldName=function(e){var t=null;if(e)switch(e.formFieldAnnotationType){case"Textbox":t="Textbox";break;case"PasswordField":t="Password";break;case"Checkbox":t="Check Box";break;case"RadioButton":t="Radio Button";break;case"DropdownList":t="Dropdown";break;case"ListBox":t="List Box";break;case"SignatureField":t="Signature";break;case"InitialField":t="Initial"}return t},e.prototype.calculateCopyPosition=function(e,t,i){for(var n,o,r,a,s=this.pdfViewer.viewerBase.getZoomFactor(),l=0;l<e.vertexPoints.length;l++)if(t)if(0===l){var d=t.getBoundingClientRect();n=e.vertexPoints[parseInt(l.toString(),10)].x,o=e.vertexPoints[parseInt(l.toString(),10)].y,e.vertexPoints[parseInt(l.toString(),10)].x=(i.clientX-d.left)/s,e.vertexPoints[parseInt(l.toString(),10)].y=(i.clientY-d.top)/s,r=e.vertexPoints[parseInt(l.toString(),10)].x,a=e.vertexPoints[parseInt(l.toString(),10)].y}else e.vertexPoints[parseInt(l.toString(),10)].x+=r-n,e.vertexPoints[parseInt(l.toString(),10)].y+=a-o},e.prototype.cut=function(e){var t=this.pdfViewer.allowServerDataBinding;this.pdfViewer.enableServerDataBinding(!1),this.pdfViewer.annotationModule&&(this.pdfViewer.annotationModule.removedAnnotationCollection=[]),(this.pdfViewer.formDesignerModule&&!this.pdfViewer.formDesigner.isPropertyDialogOpen||this.pdfViewer.selectedItems.annotations.length>0)&&(this.pdfViewer.designerMode||this.pdfViewer.selectedItems.annotations.length>0)&&(0!==this.pdfViewer.selectedItems.formFields.length||0!==this.pdfViewer.selectedItems.annotations.length)&&(this.pdfViewer.clipboardData.pasteIndex=0,this.pdfViewer.clipboardData.clipObject=this.copyObjects(),this.pdfViewer.renderDrawing(void 0,e),this.pdfViewer.enableServerDataBinding(t,!0),this.copiedElementID=this.pdfViewer.clipboardData.clipObject[0].id);var i,n=document.getElementById(this.pdfViewer.element.id+"_search_box");n&&(i="none"!==n.style.display),(this.pdfViewer.formDesigner&&this.pdfViewer.formDesigner.isPropertyDialogOpen||i)&&(this.pdfViewer.clipboardData.clipObject={})},e.prototype.sortByZIndex=function(e,t){var i=t||"zIndex";return e=e.sort(function(e,t){return e[""+i]-t[""+i]})},e}(),ht=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),pt=function(){function e(e,t,i){this.commandHandler=null,this.inAction=!1,this.pdfViewerBase=null,this.currentElement=null,this.blocked=!1,this.isTooltipVisible=!1,this.childTable={},this.helper=void 0,this.undoElement={annotations:[]},this.undoParentElement={annotations:[]},this.commandHandler=e,this.pdfViewerBase=t}return e.prototype.startAction=function(e){this.currentElement=e,this.inAction=!0},e.prototype.mouseDown=function(e){this.currentElement=e.source,this.startPosition=this.currentPosition=this.prevPosition=e.position,this.isTooltipVisible=!0,this.startAction(e.source)},e.prototype.mouseMove=function(e){return this.currentPosition=e.position,this.prevPageId=this.pdfViewerBase.activeElements.activePageID,!this.blocked},e.prototype.mouseUp=function(e){this.currentPosition=e.position,this.isTooltipVisible=!1,this.endAction(),this.helper=null},e.prototype.endAction=function(){this.commandHandler&&(this.commandHandler.tool="",this.helper&&this.commandHandler.remove(this.helper)),this.commandHandler=null,this.currentElement=null,this.currentPosition=null,this.inAction=!1,this.blocked=!1},e.prototype.mouseWheel=function(e){this.currentPosition=e.position},e.prototype.mouseLeave=function(e){this.mouseUp(e)},e.prototype.updateSize=function(e,t,n,o,r,a,s){var l=this.commandHandler.viewerBase.getZoomFactor(),d=this.currentPosition.x/l-this.startPosition.x/l,A=this.currentPosition.y/l-this.startPosition.y/l,h=e instanceof i.TextElement?a:e.rotateAngle,p=i.identityMatrix();i.rotateMatrix(p,-h,0,0);var c,g=0,u=0,f=e instanceof i.TextElement?e.actualSize.width:e.wrapper.bounds.width,m=e instanceof i.TextElement?e.actualSize.height:e.wrapper.bounds.height,w=e;e.formFieldAnnotationType||e.annotName||e.shapeAnnotationType||e&&(w=e.annotations[0]);var C=this.commandHandler.annotationModule?this.commandHandler.annotationModule.findAnnotationSettings(w):{},B=0,S=0,y=0,I=0;(C.minWidth||C.maxWidth||C.minHeight||C.maxHeight)&&(B=C.maxHeight?C.maxHeight:2e3,S=C.maxWidth?C.maxWidth:2e3,y=C.minHeight?C.minHeight:0,I=C.minWidth?C.minWidth:0);var E=!1;if((y||I||B||S)&&(E=!0),E&&s){var v=this.getPositions(o,d,A),b=f+v.x,V=m+v.y;V<y?A=y-m:V>B&&(A=B-m),b<I?d=I-f:b>S&&(d=S-f)}switch(o){case"ResizeWest":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,u=1,A=0,E&&r.width-d>S&&(d=S-r.width),g=(r.width-d)/f;break;case"ResizeEast":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,A=0,E&&r.width+d>S&&(d=S-r.width),g=(r.width+d)/f,u=1;break;case"ResizeNorth":g=1,d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&r.height-A>B&&(A=B-r.height),u=(r.height-A)/m;break;case"ResizeSouth":g=1,d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&r.height+A>B&&(A=B-r.height),u=(r.height+A)/m;break;case"ResizeNorthEast":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&(r.width+d>S&&(d=S-r.width),r.height-A>B&&(A=B-r.height)),g=(r.width+d)/f,u=(r.height-A)/m;break;case"ResizeNorthWest":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&(r.width-d>S&&(d=S-r.width),r.height-A>B&&(A=B-r.height)),g=(r.width-d)/f,u=(r.height-A)/m;break;case"ResizeSouthEast":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&(r.width+d>S&&(d=S-r.width),r.height+A>B&&(A=B-r.height)),u=(r.height+A)/m,g=(r.width+d)/f;break;case"ResizeSouthWest":d=(c=i.transformPointByMatrix(p,{x:d,y:A})).x,A=c.y,E&&(r.width-d>S&&(d=S-r.width),r.height+A>B&&(A=B-r.height)),g=(r.width-d)/f,u=(r.height+A)/m}return{width:g,height:u}},e.prototype.getPivot=function(e){switch(e){case"ResizeWest":return{x:1,y:.5};case"ResizeEast":return{x:0,y:.5};case"ResizeNorth":return{x:.5,y:1};case"ResizeSouth":return{x:.5,y:0};case"ResizeNorthEast":return{x:0,y:1};case"ResizeNorthWest":return{x:1,y:1};case"ResizeSouthEast":return{x:0,y:0};case"ResizeSouthWest":return{x:1,y:0}}return{x:.5,y:.5}},e.prototype.getPositions=function(e,t,i){switch(e){case"ResizeEast":return{x:t,y:0};case"ResizeSouthEast":return{x:t,y:i};case"ResizeSouth":return{x:0,y:i};case"ResizeNorth":return{x:0,y:-i};case"ResizeNorthEast":return{x:t,y:-i};case"ResizeNorthWest":return{x:-t,y:-i};case"ResizeWest":return{x:-t,y:0};case"ResizeSouthWest":return{x:-t,y:i}}return{x:t,y:i}},e}(),ct=function(e){function i(t,i){return e.call(this,t,i,!0)||this}return ht(i,e),i.prototype.mouseDown=function(t){this.inAction=!0,this.mouseEventHelper(t),e.prototype.mouseDown.call(this,t)},i.prototype.mouseEventHelper=function(e){this.commandHandler&&this.commandHandler.annotationModule&&(this.commandHandler.annotationModule.overlappedCollections=j(e,this.pdfViewerBase,this.commandHandler,!0));var i=j(e,this.pdfViewerBase,this.commandHandler),n=!1;if(i&&"StickyNotes"===i.shapeAnnotationType&&i.annotationSettings&&i.annotationSettings.isLock&&(n=!this.commandHandler.annotationModule.checkAllowedInteractions("Select",i)),!n){var o=void 0;if(o=e.source&&null!==e.annotationSelectorSettings?e.source.annotationSelectorSettings:"",this.commandHandler){var r=this.commandHandler.selectedItems;if(r){var a=r.annotations[0],s=r.formFields[0],l=this.commandHandler.selectedItems.annotations[0],d=e.source;if(r.annotations.length&&e.info&&!e.info.ctrlKey&&this.commandHandler.annotationModule&&!1===this.commandHandler.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus?this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID):e.info&&e.info.ctrlKey&&(d&&"FreeText"===d.shapeAnnotationType||l&&"FreeText"===l.shapeAnnotationType)?this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID):t.isNullOrUndefined(i)&&this.commandHandler.annotationModule&&!t.isNullOrUndefined(this.commandHandler.annotation.textMarkupAnnotationModule)&&t.isNullOrUndefined(this.commandHandler.annotation.textMarkupAnnotationModule.currentTextMarkupAnnotation)&&this.commandHandler.formDesignerModule&&!(d&&"FreeText"===d.shapeAnnotationType||l&&("FreeText"===l.shapeAnnotationType||"Image"===l.shapeAnnotationType||"StickyNotes"===l.shapeAnnotationType))&&this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),i&&(!(t.isNullOrUndefined(s)||s&&s.id!==i.id)||t.isNullOrUndefined(this.pdfViewerBase.isFreeTextSelected)||this.pdfViewerBase.isFreeTextSelected||(this.commandHandler.select([i.id],o),this.commandHandler.viewerBase.isAnnotationMouseDown=!0),this.pdfViewerBase.isFreeTextSelected=!1,this.commandHandler.viewerBase.isFormFieldMouseDown=!0),0===r.annotations.length&&a&&"HandWrittenSignature"!==a.shapeAnnotationType&&"SignatureText"!==a.shapeAnnotationType&&"SignatureImage"!==a.shapeAnnotationType&&"Path"!==a.shapeAnnotationType&&!a.formFieldAnnotationType&&(this.commandHandler.enableToolbar&&t.Browser.isDevice&&!this.commandHandler.enableDesktopMode&&this.commandHandler.toolbarModule.showToolbar(!0),this.commandHandler.fireAnnotationUnSelect(a.annotName,a.pageIndex,a)),0===r.annotations.length&&a&&("HandWrittenSignature"===a.shapeAnnotationType||"SignatureText"===a.shapeAnnotationType||"SignatureImage"===a.shapeAnnotationType||"Path"===a.shapeAnnotationType||a.signatureType)&&this.commandHandler.fireSignatureUnselect(a.signatureName,a.pageIndex,a),0===r.formFields.length&&this.commandHandler.formDesignerModule&&s&&s.formFieldAnnotationType){p={name:s.name,id:s.id,value:s.value,fontFamily:s.fontFamily,fontSize:s.fontSize,fontStyle:s.fontStyle,color:s.color,backgroundColor:s.backgroundColor,alignment:s.alignment,isReadonly:s.isReadOnly,visibility:s.visibility,maxLength:s.maxLength,isRequired:s.isRequired,isPrint:s.isPrint,rotation:s.rotation,tooltip:s.tooltip,options:s.options,isChecked:s.isChecked,isSelected:s.isSelected,customData:s.customData,lineBound:s.bounds,pageNumber:s.pageIndex,insertSpaces:s.insertSpaces,formFieldAnnotationType:s.formFieldAnnotationType,borderColor:s.borderColor,thickness:s.thickness,isTransparent:s.isTransparent};this.commandHandler.fireFormFieldUnselectEvent("formFieldUnselect",p,s.pageIndex)}else if(this.pdfViewerBase.currentTarget&&this.pdfViewerBase.currentTarget.id&&this.commandHandler.formFields&&"mousedown"===event.type)for(var A=0;A<this.commandHandler.formFields.length;A++){var h=this.commandHandler.formFields[parseInt(A.toString(),10)];if(this.pdfViewerBase.currentTarget&&this.pdfViewerBase.currentTarget.id===h.id){var p={value:h.value,fontFamily:h.fontFamily,fontSize:h.fontSize,fontStyle:h.fontStyle,color:h.color,backgroundColor:h.backgroundColor,alignment:h.alignment,isReadonly:h.isReadonly,visibility:h.visibility,maxLength:h.maxLength,isRequired:h.isRequired,isPrint:h.isPrint,rotation:h.rotateAngle,tooltip:h.tooltip,options:h.options,isChecked:h.isChecked,isSelected:h.isSelected,id:h.id,name:h.name};i?this.pdfViewerBase.currentTarget.id!==event.target.id&&"e-pv-text-layer"!==event.target.className&&(this.commandHandler.fireFocusOutFormField(p,h.pageIndex),this.pdfViewerBase.currentTarget=null):(this.commandHandler.fireFocusOutFormField(p,h.pageIndex),this.pdfViewerBase.currentTarget=null)}}}}}},i.prototype.mouseMove=function(t){return e.prototype.mouseMove.call(this,t),!this.blocked},i.prototype.mouseUp=function(t){this.mouseEventHelper(t),this.inAction=!1,e.prototype.mouseUp.call(this,t)},i.prototype.mouseLeave=function(e){this.inAction&&this.mouseUp(e)},i}(pt),gt=function(e){function i(t,i){var n=e.call(this,t,i)||this;return n.currentTarget=null,n.prevNode=null,n}return ht(i,e),i.prototype.mouseDown=function(t){e.prototype.mouseDown.call(this,t),this.offset={x:t.source.wrapper.offsetX,y:t.source.wrapper.offsetY},this.startPosition=t.position;var i=B(t.source);this.redoElement={bounds:{x:i.wrapper.offsetX,y:i.wrapper.offsetY,width:i.wrapper.actualSize.width,height:i.wrapper.actualSize.height}},g(i)&&(this.redoElement.vertexPoints=i.vertexPoints,this.redoElement.leaderHeight=i.leaderHeight),this.inAction=!0},i.prototype.mouseUp=function(i){if(this.commandHandler&&i.source){this.checkisAnnotationMove(i);var n=!1,o=i.source.annotationSelectorSettings;this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.commandHandler.select([i.source.id],o),this.pdfViewerBase.activeElements.activePageID===i.source.pageIndex&&"Drag"===this.pdfViewerBase.action&&this.commandHandler.dragSelectedObjects(this.calculateMouseActionXDiff(i),this.calculateMouseActionYDiff(i),this.pdfViewerBase.activeElements.activePageID,o,null),!i.source||"Textbox"!==i.source.formFieldAnnotationType&&"Checkbox"!==i.source.formFieldAnnotationType&&"RadioButton"!==i.source.formFieldAnnotationType&&"ListBox"!==i.source.formFieldAnnotationType&&"SignatureField"!==i.source.formFieldAnnotationType&&"InitialField"!==i.source.formFieldAnnotationType&&"DropdownList"!==i.source.formFieldAnnotationType&&"PasswordField"!==i.source.formFieldAnnotationType||this.commandHandler.formDesignerModule.updateHTMLElement(i.source),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,o),this.commandHandler.viewerBase.isAnnotationMouseMove=!1,this.commandHandler.viewerBase.isFormFieldMouseMove=!1;var r={bounds:{x:i.source.wrapper.offsetX,y:i.source.wrapper.offsetY,width:i.source.wrapper.actualSize.width,height:i.source.wrapper.actualSize.height},modifiedDate:i.source.modifiedDate};if(g(i.source)&&(r.vertexPoints=i.source.vertexPoints,r.leaderHeight=i.source.leaderHeight),i.target&&i.target.formFieldAnnotationType){var a=i.target,s={value:a.value,fontFamily:a.fontFamily,fontSize:a.fontSize,fontStyle:a.fontStyle,color:a.color,backgroundColor:a.backgroundColor,borderColor:a.borderColor,thickness:a.thickness,alignment:a.alignment,isReadonly:a.isReadonly,visibility:a.visibility,maxLength:a.maxLength,isRequired:a.isRequired,isPrint:a.isPrint,rotation:a.rotateAngle,tooltip:a.tooltip,options:a.options,isChecked:a.isChecked,isSelected:a.isSelected,id:i.source?i.source.id:"",name:a.name,customData:a.customData,lineBound:a.bounds,pageNumber:a.pageIndex,insertSpaces:a.insertSpaces,formFieldAnnotationType:a.formFieldAnnotationType,isTransparent:a.isTransparent},l=i.source.wrapper.actualSize.width,d=i.source.wrapper.actualSize.height,A={X:i.source.wrapper.offsetX-l/2,Y:i.source.wrapper.offsetY-d/2,Width:l,Height:d},h={X:this.offset.x-l/2,Y:this.offset.y-d/2,Width:i.source.wrapper.actualSize.width,Height:i.source.wrapper.actualSize.height};this.commandHandler.fireFormFieldMoveEvent("formFieldMove",s,a.pageIndex,h,A)}t.isNullOrUndefined(this.redoElement)||this.redoElement.bounds.height===r.bounds.height&&this.redoElement.bounds.width===r.bounds.width&&this.redoElement.bounds.x===r.bounds.x&&this.redoElement.bounds.y===r.bounds.y||(n=!0),this.commandHandler.annotation&&n&&(this.commandHandler.annotation.addAction(this.pageIndex,null,i.source,"Drag","",this.redoElement,r),this.commandHandler.annotation.stampAnnotationModule.updateSessionStorage(i.source,null,"Drag"),this.commandHandler.annotation.stickyNotesAnnotationModule.updateStickyNotes(i.source,null))}var p=this.commandHandler&&this.commandHandler.selectedItems&&this.commandHandler.selectedItems.annotations&&this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0].shapeAnnotationType:null;p&&"Image"!==p&&"SignatureImage"!==p?e.prototype.mouseUp.call(this,i):"Image"===p||"SignatureImage"===p?this.inAction=!1:this.commandHandler&&this.commandHandler.selectedItems&&this.commandHandler.selectedItems.formFields&&this.commandHandler.selectedItems.formFields.length>0&&e.prototype.mouseUp.call(this,i)},i.prototype.calculateMouseXDiff=function(){return this.currentPosition&&this.startPosition?this.currentPosition.x-this.startPosition.x:0},i.prototype.calculateMouseYDiff=function(){return this.currentPosition&&this.startPosition?this.currentPosition.y-this.startPosition.y:0},i.prototype.calculateMouseActionXDiff=function(e){var t=this.calculateMouseXDiff()/this.commandHandler.viewerBase.getZoomFactor();return this.offset?this.offset.x+t-e.source.wrapper.offsetX:0},i.prototype.calculateMouseActionYDiff=function(e){var t=this.calculateMouseYDiff()/this.commandHandler.viewerBase.getZoomFactor();return this.offset?this.offset.y+t-e.source.wrapper.offsetY:0},i.prototype.mouseMove=function(t,i,n){if(e.prototype.mouseMove.call(this,t),this.inAction){this.currentPosition=t.position,this.currentTarget=t.target;var o=t.source.annotationSelectorSettings,r=this.calculateMouseXDiff()/this.commandHandler.viewerBase.getZoomFactor(),a=this.calculateMouseYDiff()/this.commandHandler.viewerBase.getZoomFactor(),s=this.offset.x+r,l=this.offset.y+a,d=this.calculateMouseActionXDiff(t),A=this.calculateMouseActionYDiff(t),h=this.commandHandler.selectedItems.annotations[0],p=void 0;if(this.helper)d=s-this.helper.wrapper.offsetX,A=l-this.helper.wrapper.offsetY;else{(p=B(this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0]:this.commandHandler.selectedItems.formFields[0])).wrapper&&(d=s-p.wrapper.offsetX,A=l-p.wrapper.offsetY,p.bounds=this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0].wrapper.bounds:this.commandHandler.selectedItems.formFields[0].wrapper.bounds),p.wrapper=void 0,p.id="diagram_helper","Stamp"===p.shapeAnnotationType?(p.strokeColor="",p.borderDashArray="",p.fillColor="transparent",p.stampFillColor="transparent",p.data=""):"FreeText"===p.shapeAnnotationType?(p.strokeColor="blue",p.fillColor="transparent",p.thickness=1,p.opacity=1,p.dynamicText=""):"SignatureText"===p.shapeAnnotationType?(p.strokeColor="red",p.borderDashArray="5,5",p.fillColor="transparent",p.thickness=2,p.opacity=1,p.data=""):(p.strokeColor="red",p.borderDashArray="5,5",p.fillColor="transparent",p.thickness=2,p.opacity=1),!0===p.enableShapeLabel&&(p.labelContent="");c=p.shapeAnnotationType;i||"Image"===c||"SignatureImage"===c?p=this.helper=t.source:this.helper=p=this.commandHandler.add(p),this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations=[p]:this.commandHandler.selectedItems.formFields=[p]}if(this.helper&&"Stamp"===this.helper.shapeAnnotationType&&(i=!0),this.commandHandler.checkBoundaryConstraints(d,A,this.pdfViewerBase.activeElements.activePageID,this.helper.wrapper.bounds,i,n)){var c=this.helper.shapeAnnotationType;if(!this.helper||"Image"!==c&&"SignatureImage"!==c)this.commandHandler.dragSelectedObjects(d,A,this.pdfViewerBase.activeElements.activePageID,o,this.helper);else{this.checkisAnnotationMove(t);var g=t.source.annotationSelectorSettings;this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.commandHandler.select([t.source.id],g),this.commandHandler.dragSelectedObjects(d,A,this.pdfViewerBase.activeElements.activePageID,g,this.helper),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,g)}this.prevNode=this.helper,this.prevPosition=this.currentPosition}else this.currentPosition=this.prevPosition;h&&h.annotName&&this.commandHandler.annotation.triggerAnnotationMove(h,!0)}return!0},i.prototype.mouseLeave=function(t){var i=t.source.annotationSelectorSettings,n=this.offset.x+this.calculateMouseXDiff(),o=this.offset.y+this.calculateMouseYDiff(),r=n-t.source.wrapper.offsetX,a=o-t.source.wrapper.offsetY;this.commandHandler.dragSelectedObjects(r,a,this.prevPageId,i,null),this.commandHandler.renderSelector(this.prevPageId,i),e.prototype.mouseLeave.call(this,t)},i.prototype.endAction=function(){e.prototype.endAction.call(this),this.currentTarget=null,this.prevPosition=null},i.prototype.checkisAnnotationMove=function(e){this.commandHandler.selectedItems&&this.commandHandler.selectedItems.annotations&&this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0].annotName===e.source.annotName&&(this.commandHandler.viewerBase.isAnnotationMouseMove=!0):this.commandHandler.viewerBase.isAnnotationMouseMove=!1,this.commandHandler.selectedItems&&this.commandHandler.selectedItems.formFields&&this.commandHandler.selectedItems.formFields.length>0?this.commandHandler.selectedItems.formFields[0].name===e.source.name&&(this.commandHandler.viewerBase.isFormFieldMouseMove=!0):this.commandHandler.viewerBase.isFormFieldMouseMove=!1},i}(pt),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ht(t,e),t.prototype.mouseDown=function(t){e.prototype.mouseUp.call(this,t)},t.prototype.mouseMove=function(t){var i;if(!this.inAction){var n=this.pdfViewerBase.activeElements.activePageID;this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID);var o=this.commandHandler.annotation.stampAnnotationModule.moveStampElement(t.position.x,t.position.y,n);if("SignatureText"===o.shapeAnnotationType){var r=this.getTextWidth(o.data,o.fontSize,o.fontFamily),a=1;r>o.bounds.width&&(a=o.bounds.width/r),o.fontSize=this.getFontSize(Math.floor(o.fontSize*a));o.bounds.height=o.fontSize<32?2*o.fontSize:o.bounds.height,o.thickness=0}i=this.commandHandler.add(o),t.source=this.commandHandler.annotations[this.commandHandler.annotations.length-1],t.sourceWrapper=t.source.wrapper,this.inAction=!0;var s=t.source;!s||"HandWrittenSignature"!==s.shapeAnnotationType&&"SignatureText"!==s.shapeAnnotationType&&"SignatureImage"!==s.shapeAnnotationType?this.offset={x:t.source.wrapper.offsetX,y:t.source.wrapper.offsetY}:this.offset={x:t.source.wrapper.offsetX-t.source.wrapper.bounds.width/2,y:t.source.wrapper.offsetY-t.source.wrapper.bounds.height/2},this.startPosition=t.position,this.commandHandler.select([i.id])}var l=t.source.annotationSelectorSettings;return e.prototype.mouseMove.call(this,t,!0,!0),this.commandHandler.renderSelector(t.source.pageIndex,l),this.inAction},t.prototype.getTextWidth=function(e,t,i){var n,o=document.createElement("canvas"),r=o.getContext("2d");t&&(n=t+"px "+i),r.font=n||getComputedStyle(document.body).font;var a=r.measureText(e).width;return this.pdfViewerBase.releaseCanvas(o),a},t.prototype.getFontSize=function(e){return e%2==0?e:--e},t}(gt),ft=function(e){function t(t,i,n){var o=e.call(this,t,i)||this;return o.sourceObject=n,o}return ht(t,e),t.prototype.mouseDown=function(t){this.pdfViewerBase.disableTextSelectionMode(),e.prototype.mouseDown.call(this,t),this.inAction=!0;var i={currentPosition:this.currentPosition,prevPosition:this.prevPosition};this.commandHandler.annotation.inkAnnotationModule.drawInkInCanvas(i,this.pdfViewerBase.activeElements.activePageID)},t.prototype.mouseMove=function(t){if(e.prototype.mouseMove.call(this,t),this.inAction){var i={currentPosition:this.currentPosition,prevPosition:this.pdfViewerBase.prevPosition};this.commandHandler.annotation.inkAnnotationModule.drawInkInCanvas(i,this.pdfViewerBase.activeElements.activePageID)}return this.inAction},t.prototype.mouseUp=function(e){return this.commandHandler.annotation.inkAnnotationModule.storePathData(),!0},t.prototype.mouseLeave=function(e){},t.prototype.endAction=function(){e.prototype.endAction.call(this)},t}(pt),mt=function(e){function t(t,i,n){var o=e.call(this,t,i,!0)||this;return o.endPoint=n,o}return ht(t,e),t.prototype.mouseDown=function(t){this.inAction=!0,this.undoElement=void 0,e.prototype.mouseDown.call(this,t);t.source&&t.source.annotations&&({x:this.prevPosition.x,y:this.prevPosition.y},t.source.annotations[0]),this.initialPosition=t.position,this.prevSource=this.commandHandler.selectedItems.annotations[0];var i=B(t.source);this.redoElement={bounds:{x:i.wrapper.offsetX,y:i.wrapper.offsetY,width:i.wrapper.actualSize.width,height:i.wrapper.actualSize.height}},g(i)&&(this.redoElement.vertexPoints=i.vertexPoints,this.redoElement.leaderHeight=i.leaderHeight,"Distance"!==i.measureType&&"Perimeter"!==i.measureType&&"Area"!==i.measureType&&"Volume"!==i.measureType||(this.redoElement.notes=i.notes)),this.currentPosition=t.position},t.prototype.mouseUp=function(t){if(this.commandHandler){var i=this.commandHandler.selectedItems.annotations[0],n=!1;if(i){var o=this.commandHandler.annotationModule.findAnnotationSettings(i),r=0,a=0,s=0,l=0;if((o.minWidth||o.maxWidth||o.minHeight||o.maxHeight)&&(r=o.maxHeight?o.maxHeight:2e3,a=o.maxWidth?o.maxWidth:2e3,s=o.minHeight?o.minHeight:0,l=o.minWidth?o.minWidth:0),i.vertexPoints.length>3){var d=this.commandHandler.viewerBase.checkAnnotationWidth(i.vertexPoints),A=d.width,h=d.height;s||l||r||a?(h>s&&h<r||A>l&&A<a)&&this.commandHandler.nodePropertyChange(this.prevSource,{vertexPoints:i.vertexPoints,leaderHeight:i.leaderHeight}):this.commandHandler.nodePropertyChange(this.prevSource,{vertexPoints:i.vertexPoints,leaderHeight:i.leaderHeight})}else if(s||l||r||a)if("Line"===i.shapeAnnotationType||"Distance"===i.shapeAnnotationType||"LineWidthArrowHead"===i.shapeAnnotationType){var p=0,c=0,u=(p=i.vertexPoints[0].x>i.vertexPoints[1].x?i.vertexPoints[0].x-i.vertexPoints[1].x:i.vertexPoints[1].x-i.vertexPoints[0].x)>(c=i.vertexPoints[0].y>i.vertexPoints[1].y?i.vertexPoints[0].y-i.vertexPoints[1].y:i.vertexPoints[1].y-i.vertexPoints[0].y)?p:c;u<(r||a)&&u>(s||l)&&this.commandHandler.nodePropertyChange(this.prevSource,{vertexPoints:i.vertexPoints,leaderHeight:i.leaderHeight})}else this.commandHandler.nodePropertyChange(this.prevSource,{vertexPoints:i.vertexPoints,leaderHeight:i.leaderHeight});else this.commandHandler.nodePropertyChange(this.prevSource,{vertexPoints:i.vertexPoints,leaderHeight:i.leaderHeight});var f=t.source.annotationSelectorSettings;this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.commandHandler.select([this.prevSource.id],f),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,f);var m={bounds:{x:t.source.wrapper.offsetX,y:t.source.wrapper.offsetY,width:t.source.wrapper.actualSize.width,height:t.source.wrapper.actualSize.height}};"Distance"!==i.measureType&&"Perimeter"!==i.measureType&&"Area"!==i.measureType&&"Volume"!==i.measureType||(this.commandHandler.annotation.updateCalibrateValues(this.commandHandler.selectedItems.annotations[0]),m.notes=t.source.notes),g(t.source)&&(m.vertexPoints=t.source.vertexPoints,m.leaderHeight=t.source.leaderHeight),this.redoElement.bounds.height===m.bounds.height&&this.redoElement.bounds.width===m.bounds.width&&this.redoElement.bounds.x===m.bounds.x&&this.redoElement.bounds.y===m.bounds.y||(n=!0),n&&this.commandHandler.annotation.addAction(this.pageIndex,null,this.prevSource,"Resize","",this.redoElement,m)}}e.prototype.mouseUp.call(this,t)},t.prototype.mouseMove=function(t){e.prototype.mouseMove.call(this,t);if(this.currentPosition=t.position,this.currentPosition&&this.prevPosition){var i=this.currentPosition.x-this.prevPosition.x,n=this.currentPosition.y-this.prevPosition.y;if(t.source&&t.source.annotations&&({x:this.currentPosition.x,y:this.currentPosition.y},{x:this.prevPosition.x,y:this.prevPosition.y},t.source.annotations[0]),this.inAction&&void 0!==this.endPoint&&0!==i||0!==n){if(!this.helper){var o=B(this.commandHandler.selectedItems.annotations[0]);o.id="diagram_helper",o.strokeColor="red",o.borderDashArray="5,5",o.fillColor="transparent",o.thickness=2,o.opacity=1,!0===o.enableShapeLabel&&(o.labelContent=""),this.helper=o=this.commandHandler.add(o),this.commandHandler.selectedItems.annotations=[o]}var r=t.source.annotationSelectorSettings;this.blocked=!this.commandHandler.dragConnectorEnds(this.endPoint,this.helper,this.currentPosition,this.selectedSegment,t.target,null,r),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,r)}}return this.prevPosition=this.currentPosition,!this.blocked},t.prototype.mouseLeave=function(e){this.mouseUp(e)},t.prototype.endAction=function(){e.prototype.endAction.call(this),this.prevPosition=null,this.endPoint=null},t}(pt),wt=function(e){function t(t,n,o){var r=e.call(this,t,n,!0)||this;return r.initialBounds=new i.Rect,r.corner=o,r}return ht(t,e),t.prototype.mouseDown=function(t){e.prototype.mouseDown.call(this,t),this.initialBounds.x=t.source.wrapper.offsetX,this.initialBounds.y=t.source.wrapper.offsetY,this.initialBounds.height=t.source.wrapper.actualSize.height,this.initialBounds.width=t.source.wrapper.actualSize.width,this.initialPosition=t.position;var i=B(t.source);this.redoElement={bounds:{x:i.wrapper.offsetX,y:i.wrapper.offsetY,width:i.wrapper.actualSize.width,height:i.wrapper.actualSize.height}},g(i)&&(this.redoElement.vertexPoints=i.vertexPoints,this.redoElement.leaderHeight=i.leaderHeight),"Radius"===i.measureType&&(this.redoElement.notes=i.notes),this.prevSource=this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0]:this.commandHandler.selectedItems.formFields[0]},t.prototype.mouseUp=function(t,i){t.source;var n=B(t.source),o=!1;if(this.commandHandler&&this.prevSource){this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.commandHandler.viewerBase.isAnnotationSelect=!0,this.commandHandler.viewerBase.isFormFieldSelect=!0,this.commandHandler.select([this.prevSource.id],this.prevSource.annotationSelectorSettings);var r=this.updateSize(this.prevSource,this.currentPosition,this.initialPosition,this.corner,this.initialBounds,null,!0);if(this.blocked=this.scaleObjects(r.width,r.height,this.corner,this.currentPosition,this.initialPosition,this.prevSource,t.info.ctrlKey),this.commandHandler.selectedItems&&this.commandHandler.selectedItems.annotations&&this.commandHandler.selectedItems.annotations[0]&&"Stamp"===this.commandHandler.selectedItems.annotations[0].shapeAnnotationType&&(this.commandHandler.stampSettings.minHeight||this.commandHandler.stampSettings.minWidth)&&this.commandHandler.select([this.prevSource.id],this.prevSource.annotationSelectorSettings),this.commandHandler.selectedItems.formFields.length>0&&("Textbox"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"Checkbox"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"RadioButton"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"InitialField"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"SignatureField"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"DropdownList"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"ListBox"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType||"PasswordField"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType)&&("SignatureField"===this.commandHandler.selectedItems.formFields[0].formFieldAnnotationType&&(this.commandHandler.selectedItems.formFields[0].signatureIndicatorSettings=this.commandHandler.selectedItems.formFields[0].signatureIndicatorSettings?this.commandHandler.selectedItems.formFields[0].signatureIndicatorSettings:{opacity:1,backgroundColor:"rgba(255, 228, 133, 0.35)",width:19,height:10,fontSize:10,text:null,color:"black"}),this.commandHandler.formDesignerModule.updateHTMLElement(this.commandHandler.selectedItems.formFields[0])),this.commandHandler.renderSelector(this.prevPageId,this.prevSource.annotationSelectorSettings),this.commandHandler.annotation&&t.source.wrapper){var a={bounds:{x:t.source.wrapper.offsetX,y:t.source.wrapper.offsetY,width:t.source.wrapper.actualSize.width,height:t.source.wrapper.actualSize.height}};if(g(t.source)&&(a.vertexPoints=t.source.vertexPoints,a.leaderHeight=t.source.leaderHeight),this.redoElement.bounds.height===a.bounds.height&&this.redoElement.bounds.width===a.bounds.width&&this.redoElement.bounds.x===a.bounds.x&&this.redoElement.bounds.y===a.bounds.y||(o=!0),"Radius"===this.prevSource.measureType&&o&&(a.notes=t.source.notes,this.commandHandler.annotation.updateCalibrateValues(this.prevSource)),"SignatureText"===this.prevSource.shapeAnnotationType){var s=n.bounds&&n.bounds.width?n.bounds.width:n.width,l=a.bounds.width/s;a.fontSize=this.prevSource.wrapper.children[1].style.fontSize*l,null!=t.target&&(t.target.fontSize=a.fontSize,t.target.wrapper.children[1].style.fontSize=a.fontSize,t.target.wrapper.children[1].horizontalAlignment="Center",t.target.wrapper.children[1].verticalAlignment="Center",t.target.wrapper.children[1].setOffsetWithRespectToBounds(0,0,"Absolute"),this.commandHandler.selectedItems.annotations[0].wrapper.children[1].style.fontSize=a.fontSize,this.commandHandler.selectedItems.annotations[0].wrapper.children[1].horizontalAlignment="Center",this.commandHandler.selectedItems.annotations[0].wrapper.children[1].verticalAlignment="Center",this.commandHandler.selectedItems.annotations[0].wrapper.children[1].setOffsetWithRespectToBounds(0,0,"Absolute"),this.commandHandler.selectedItems.annotations[0].fontSize=a.fontSize)}"SignatureText"===this.prevSource.shapeAnnotationType&&this.commandHandler.selectedItems.annotations&&this.commandHandler.selectedItems.annotations.length>0&&this.commandHandler.nodePropertyChange(this.commandHandler.selectedItems.annotations[0],{fontSize:a.fontSize}),o&&this.commandHandler.annotation.addAction(this.pageIndex,null,this.prevSource,"Resize","",this.redoElement,a)}if(t.target&&t.target.formFieldAnnotationType){var d=t.target,A={id:t.source.id,value:d.value,fontFamily:d.fontFamily,fontSize:d.fontSize,fontStyle:d.fontStyle,color:d.color,backgroundColor:d.backgroundColor,alignment:d.alignment,isReadonly:d.isReadonly,visibility:d.visibility,maxLength:d.maxLength,isRequired:d.isRequired,isPrint:d.isPrint,rotation:d.rotateAngle,tooltip:d.tooltip,options:d.options,isChecked:d.isChecked,isSelected:d.isSelected,name:d.name,customData:d.customData,lineBound:d.bounds,pageNumber:d.pageIndex,insertSpaces:d.insertSpaces,isTransparent:d.isTransparent,formFieldAnnotationType:d.formFieldAnnotationType,borderColor:d.borderColor,thickness:d.thickness},h=t.source.wrapper.actualSize.width,p=t.source.wrapper.actualSize.height,c={X:t.source.wrapper.offsetX-h/2,Y:t.source.wrapper.offsetY-p/2,Width:h,Height:p},u={X:this.initialBounds.x-this.initialBounds.width/2,Y:this.initialBounds.y-this.initialBounds.height/2,Width:this.initialBounds.width,Height:this.initialBounds.height};this.commandHandler.fireFormFieldResizeEvent("formFieldResize",A,d.pageIndex,u,c)}this.commandHandler.annotation&&this.commandHandler.annotation.stampAnnotationModule&&this.commandHandler.annotation.stampAnnotationModule.updateSessionStorage(t.source,this.prevSource.id,"Resize")}return e.prototype.mouseUp.call(this,t),!this.blocked},t.prototype.mouseMove=function(t){e.prototype.mouseMove.call(this,t);var n=t.source;this.currentPosition=t.position;var o=this.currentPosition.x-this.startPosition.x,r=this.currentPosition.y-this.startPosition.y;o/=this.commandHandler.viewerBase.getZoomFactor(),r/=this.commandHandler.viewerBase.getZoomFactor();var a=t.source,s=this.getPoints(o,r),l=a.width+s.x,d=a.height+s.y,A=n;n&&n.annotations&&(A=n.annotations[0]);var h=this.commandHandler.annotationModule?this.commandHandler.annotationModule.findAnnotationSettings(A):{},p=0,c=0,g=0,u=0;(h.minWidth||h.maxWidth||h.minHeight||h.maxHeight)&&(p=h.maxHeight?h.maxHeight:2e3,c=h.maxWidth?h.maxWidth:2e3,g=h.minHeight?h.minHeight:0,u=h.minWidth?h.minWidth:0),(g||u||p||c)&&(d<g?r=g-a.height:d>p&&(r=p-a.height),l<u?o=u-a.width:l>c&&(o=c-a.width));var f={x:o,y:r};if(this.currentElement.wrapper&&(f=i.rotatePoint(-this.currentElement.wrapper.rotateAngle,void 0,void 0,f)),f=this.getChanges(f),this.commandHandler.renderSelector(this.prevPageId,this.prevSource.annotationSelectorSettings),!this.helper){var m=B(this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0]:this.commandHandler.selectedItems.formFields[0]);m.id="diagram_helper","Stamp"===m.shapeAnnotationType?(m.strokeColor="",m.borderDashArray="",m.fillColor="transparent",m.stampFillColor="transparent",m.data=""):"FreeText"===m.shapeAnnotationType?(m.strokeColor="blue",m.fillColor="transparent",m.thickness=1,m.opacity=1,m.dynamicText=""):(m.bounds=this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations[0].wrapper.bounds:this.commandHandler.selectedItems.formFields[0].wrapper.bounds,m.strokeColor="red",m.borderDashArray="5,5",m.fillColor="transparent",m.thickness=2,m.opacity=1),!0===m.enableShapeLabel&&(m.labelContent=""),"SignatureText"===m.shapeAnnotationType&&(m.fillColor="transparent",m.thickness=1,m.opacity=1,m.data=""),this.helper=m=this.commandHandler.add(m),this.commandHandler.selectedItems.annotations.length>0?this.commandHandler.selectedItems.annotations=[m]:this.commandHandler.selectedItems.formFields=[m]}var w=this.updateSize(this.helper,this.startPosition,this.currentPosition,this.corner,this.initialBounds);return this.blocked=!this.scaleObjects(w.width,w.height,this.corner,this.startPosition,this.currentPosition,this.helper,t.info.ctrlKey),this.prevPosition=this.currentPosition,!this.blocked},t.prototype.mouseLeave=function(e){this.mouseUp(e)},t.prototype.getTooltipContent=function(e){return"W:"+Math.round(e.wrapper.bounds.width)+" H:"+Math.round(e.wrapper.bounds.height)},t.prototype.getChanges=function(e){switch(this.corner){case"ResizeEast":return{x:e.x,y:0};case"ResizeSouthEast":return e;case"ResizeSouth":return{x:0,y:e.y};case"ResizeNorth":return{x:0,y:-e.y};case"ResizeNorthEast":return{x:e.x,y:-e.y};case"ResizeNorthWest":return{x:-e.x,y:-e.y};case"ResizeWest":return{x:-e.x,y:0};case"ResizeSouthWest":return{x:-e.x,y:e.y}}return e},t.prototype.getPoints=function(e,t){switch(this.corner){case"ResizeEast":return{x:e,y:0};case"ResizeSouthEast":return{x:e,y:t};case"ResizeSouth":return{x:0,y:t};case"ResizeNorth":return{x:0,y:-t};case"ResizeNorthEast":return{x:e,y:-t};case"ResizeNorthWest":return{x:-e,y:-t};case"ResizeWest":return{x:-e,y:0};case"ResizeSouthWest":return{x:-e,y:t}}return{x:e,y:t}},t.prototype.scaleObjects=function(e,t,i,n,o,r,a){var s=this.commandHandler.annotationModule?this.commandHandler.annotationModule.findAnnotationSettings(r):{},l=0,d=0,A=this.currentPosition.x-this.startPosition.x,h=this.currentPosition.y-this.startPosition.y;A/=this.commandHandler.viewerBase.getZoomFactor(),h/=this.commandHandler.viewerBase.getZoomFactor();var p=r,c=this.getPoints(A,h),g=p.bounds.width+c.x,u=p.bounds.height+c.y;return(s.minWidth||s.maxWidth||s.minHeight||s.maxHeight)&&(l=s.maxHeight?s.maxHeight:2e3,d=s.maxWidth?s.maxWidth:2e3,s.minHeight?s.minHeight:0,s.minWidth?s.minWidth:0),r instanceof at&&1===r.annotations.length&&("Perimeter"===r.annotations[0].shapeAnnotationType||"Radius"===r.annotations[0].shapeAnnotationType||"Stamp"===r.shapeAnnotationType)?t=e=1!==t||1!==e?Math.max(1===t?0:t,1===e?0:e):n!==o?Math.max(t,e):0:"Image"===r.shapeAnnotationType||"HandWrittenSignature"===r.shapeAnnotationType||"SignatureText"===r.shapeAnnotationType||"SignatureImage"===r.shapeAnnotationType?(1===t&&1===e||a&&(g>=d&&u<l&&(t=Math.max(t,e)),u>=l&&g<d&&(e=Math.max(t,e)),g<d&&u<l&&(t=e=Math.max(t,e))),a||(t=e=Math.max(t,e))):"Perimeter"!==r.shapeAnnotationType&&"Radius"!==r.shapeAnnotationType&&"Stamp"!==r.shapeAnnotationType||("Stamp"===r.shapeAnnotationType?(l||t||(t=Math.max(1===t?0:t)),d||e||(e=Math.max(1===e?0:e))):l&&d||1===t&&1===e||(t=e=Math.max(1===t?0:t,1===e?0:e))),this.blocked=this.commandHandler.scaleSelectedItems(e,t,this.getPivot(this.corner)),this.blocked},t}(pt),Ct=function(e){function n(t,i,n){var o=e.call(this,t,i)||this;return o.sourceObject=n,o}return ht(n,e),n.prototype.mouseDown=function(n){if(!isNaN(this.pdfViewerBase.activeElements.activePageID)&&"e-pv-page-container"!==event.target.className){e.prototype.mouseDown.call(this,n),this.inAction=!0;var o={bounds:{x:100,y:300,width:100,height:100},pageIndex:0,strokeColor:"red",thickness:3};o.id=i.randomId(),this.sourceObject.pageIndex=o.pageIndex=this.pdfViewerBase.activeElements.activePageID||0,this.sourceObject.enableShapeLabel=this.commandHandler.enableShapeLabel,this.pdfViewerBase.updateFreeTextProperties(this.sourceObject),this.isFormDesign=!1;var r=document.getElementById("FormField_helper_html_element");if(r&&r.remove(),this.commandHandler.drawingObject=this.drawingObject=this.commandHandler.add(this.sourceObject||o),"Textbox"===this.drawingObject.formFieldAnnotationType||"SignatureField"===this.drawingObject.formFieldAnnotationType||"InitialField"===this.drawingObject.formFieldAnnotationType||"Checkbox"===this.drawingObject.formFieldAnnotationType||"ListBox"===this.drawingObject.formFieldAnnotationType||"RadioButton"===this.drawingObject.formFieldAnnotationType||"DropdownList"===this.drawingObject.formFieldAnnotationType||"PasswordField"===this.drawingObject.formFieldAnnotationType){this.inAction=!1,this.drawingObject.pageNumber=this.pdfViewerBase.getActivePage(!0);var a=this.commandHandler.formDesignerModule.updateFormFieldInitialSize(this.drawingObject.wrapper.children[0],this.drawingObject.formFieldAnnotationType),s=this.drawingObject.pageIndex,l=this.pdfViewerBase.getElement("_pageDiv_"+s),d=l.clientWidth-a.width,A=l.clientHeight-a.height,h=l.offsetLeft,p=void 0;if(this.currentPosition.y>=A&&event.target&&event.target.parentElement&&event.target.parentElement.classList.contains("foreign-object")&&event.path){var c=event.path[3].getBoundingClientRect();p=event.clientX-c.left}else p=!t.isNullOrUndefined(event.path)||"SignatureField"!==this.drawingObject.formFieldAnnotationType&&"InitialField"!==this.drawingObject.formFieldAnnotationType?this.currentPosition.x-h:this.currentPosition.x;var g=void 0;g=this.currentPosition.x>=d&&this.currentPosition.y>=A?{x:d,y:A,width:this.drawingObject.wrapper.children[0].width,height:this.drawingObject.wrapper.children[0].height}:this.currentPosition.x>=d?{x:d,y:this.currentPosition.y,width:this.drawingObject.wrapper.children[0].width,height:this.drawingObject.wrapper.children[0].height}:this.currentPosition.y>=A?{x:p,y:A,width:this.drawingObject.wrapper.children[0].width,height:this.drawingObject.wrapper.children[0].height}:{x:this.currentPosition.x,y:this.currentPosition.y,width:this.drawingObject.wrapper.children[0].width,height:this.drawingObject.wrapper.children[0].height},this.updateNodeDimension(this.drawingObject,g),this.drawingObject.bounds.x=this.drawingObject.bounds.x-this.drawingObject.bounds.width/2,this.drawingObject.bounds.y=this.drawingObject.bounds.y-this.drawingObject.bounds.height/2,this.commandHandler.formFieldCollection.push(this.drawingObject);var u=this.drawingObject,f={id:u.id,name:u.name,value:u.value,type:u.formFieldAnnotationType,isReadOnly:u.isReadonly,fontFamily:u.fontFamily,fontSize:u.fontSize,fontStyle:u.fontStyle,color:u.color,backgroundColor:u.backgroundColor,alignment:u.alignment,visibility:u.visibility,maxLength:u.maxLength,isRequired:u.isRequired,isPrint:u.isPrint,isSelected:u.isSelected,isChecked:u.isChecked,tooltip:u.tooltip,bounds:u.bounds,thickness:u.thickness,borderColor:u.borderColor,signatureIndicatorSettings:u.signatureIndicatorSettings,pageIndex:u.pageIndex,pageNumber:u.pageNumber,isMultiline:u.isMultiline,insertSpaces:u.insertSpaces,isTransparent:u.isTransparent,rotateAngle:u.rotateAngle,selectedIndex:u.selectedIndex,options:u.options?u.options:[],signatureType:u.signatureType,zIndex:u.zIndex,customData:u.customData?u.customData:""};this.commandHandler.formFieldCollections.push(f),this.commandHandler.formDesignerModule.drawHTMLContent(this.drawingObject.formFieldAnnotationType,this.drawingObject.wrapper.children[0],this.drawingObject,this.drawingObject.pageIndex,this.commandHandler),this.commandHandler.select([this.commandHandler.drawingObject.id],this.commandHandler.annotationSelectorSettings),this.commandHandler.annotation&&this.commandHandler.annotation.addAction(this.pdfViewerBase.getActivePage(!0),null,this.drawingObject,"Addition","",this.drawingObject,this.drawingObject),this.endAction(),this.pdfViewerBase.tool=null,this.pdfViewerBase.action="Select",this.drawingObject=null,this.pdfViewerBase.isMouseDown=!1,this.pdfViewerBase.pdfViewer.drawingObject=null,this.isFormDesign=!0}}},n.prototype.mouseMove=function(n){if(e.prototype.mouseMove.call(this,n),this.inAction&&!1===i.Point.equals(this.currentPosition,this.prevPosition)){this.dragging=!0;var o=i.Rect.toBounds([this.prevPosition,this.currentPosition]);t.isNullOrUndefined(this.drawingObject)||(this.updateNodeDimension(this.drawingObject,o),"Radius"===this.drawingObject.shapeAnnotationType&&this.updateRadiusLinePosition(this.drawingObject.wrapper.children[1],this.drawingObject))}return!0},n.prototype.mouseUp=function(i){if(this.drawingObject&&this.dragging){this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),t.isNullOrUndefined(i.source)||t.isNullOrUndefined(i.source.annotationSelectorSettings)||this.commandHandler.select([this.drawingObject.id],i.source.annotationSelectorSettings);var n=this.commandHandler.selectedItems.annotations[0];t.isNullOrUndefined(n)||t.isNullOrUndefined(n.wrapper)||(this.commandHandler.nodePropertyChange(n,{bounds:{x:n.wrapper.offsetX,y:n.wrapper.offsetY}}),this.commandHandler.annotation.updateCalibrateValues(this.drawingObject,!0),this.commandHandler&&!this.isFormDesign&&this.commandHandler.annotation.addAction(this.pageIndex,null,this.drawingObject,"Addition","",this.drawingObject,this.drawingObject),this.dragging=!1,e.prototype.mouseUp.call(this,i),this.inAction=!1)}else e.prototype.mouseUp.call(this,i);this.drawingObject=null},n.prototype.endAction=function(){e.prototype.endAction.call(this)},n.prototype.updateNodeDimension=function(e,i){var n=this.commandHandler.viewerBase.getZoomFactor();if(!t.isNullOrUndefined(e)){e.bounds.x=i.x/n+i.width/n,e.bounds.y=i.y/n+i.height/n,e.bounds.width=i.width/n,e.bounds.height=i.height/n;var o=this.commandHandler.annotationModule?this.commandHandler.annotationModule.findAnnotationSettings(e):{},r=0,a=0;o.maxWidth||o.maxHeight?(r=o.maxHeight?o.maxHeight:2e3,a=o.maxWidth?o.maxWidth:2e3,e.bounds.width>a&&(e.bounds.width=a),e.bounds.height>r&&(e.bounds.height=r),e.bounds.height<=r&&e.bounds.width<=a&&this.commandHandler.nodePropertyChange(e,{bounds:e.bounds})):this.commandHandler.nodePropertyChange(e,{bounds:e.bounds})}},n.prototype.updateRadiusLinePosition=function(e,t){var n={x:t.bounds.x+t.bounds.width/4,y:t.bounds.y},o={x:t.bounds.x+t.bounds.width/2,y:t.bounds.y+t.bounds.height/2},r=i.identityMatrix();i.rotateMatrix(r,t.rotateAngle,o.x,o.y);var a=i.transformPointByMatrix(r,n),s={x:a.x,y:a.y};e.offsetX=s.x,e.offsetY=s.y,e.width=t.bounds.width/2;var l=this.commandHandler.annotationModule.findAnnotationSettings(t),d=0;l.maxWidth&&(d=l.maxWidth?l.maxWidth:2e3,t.bounds.width>d&&(t.bounds.width=d,e.width=t.bounds.width/2)),this.commandHandler.renderDrawing(void 0,t.pageIndex)},n}(pt),Bt=function(e){function n(t,i,n){var o=e.call(this,t,i)||this;return o.action=n,o}return ht(n,e),n.prototype.mouseDown=function(t){if(e.prototype.mouseDown.call(this,t),this.inAction=!0,this.drawingObject){var i=void 0,n=this.drawingObject;i={x:(i=n.vertexPoints[n.vertexPoints.length-1]).x,y:i.y};var o=this.drawingObject.vertexPoints[this.drawingObject.vertexPoints.length-1];o.x===i.x&&o.x===i.y||this.drawingObject.vertexPoints.push(i),this.commandHandler.nodePropertyChange(n,{vertexPoints:n.vertexPoints})}else{this.startPoint={x:this.startPosition.x,y:this.startPosition.y};var r={bounds:{x:this.currentPosition.x,y:this.currentPosition.y,width:5,height:5},vertexPoints:[{x:this.startPoint.x/this.pdfViewerBase.getZoomFactor(),y:this.startPoint.y/this.pdfViewerBase.getZoomFactor()},{x:this.currentPosition.x/this.pdfViewerBase.getZoomFactor(),y:this.currentPosition.y/this.pdfViewerBase.getZoomFactor()}],shapeAnnotationType:"Line",fillColor:this.commandHandler.drawingObject.fillColor,strokeColor:this.commandHandler.drawingObject.strokeColor,pageIndex:this.pdfViewerBase.activeElements.activePageID,notes:this.commandHandler.drawingObject.notes,thickness:this.commandHandler.drawingObject.thickness,author:this.commandHandler.drawingObject.author,subject:this.commandHandler.drawingObject.subject,borderDashArray:this.commandHandler.drawingObject.borderDashArray,modifiedDate:this.commandHandler.drawingObject.modifiedDate,borderStyle:this.commandHandler.drawingObject.borderStyle,measureType:this.commandHandler.drawingObject.measureType,enableShapeLabel:this.commandHandler.enableShapeLabel,opacity:this.commandHandler.drawingObject.opacity};this.pdfViewerBase.updateFreeTextProperties(r),this.drawingObject=this.commandHandler.add(r)}},n.prototype.mouseMove=function(t){if(e.prototype.mouseMove.call(this,t),this.inAction&&!1===i.Point.equals(this.currentPosition,this.prevPosition)){this.dragging=!0;var n=this.drawingObject;this.drawingObject&&this.currentPosition&&(n.vertexPoints[n.vertexPoints.length-1].x=this.currentPosition.x/this.pdfViewerBase.getZoomFactor(),n.vertexPoints[n.vertexPoints.length-1].y=this.currentPosition.y/this.pdfViewerBase.getZoomFactor(),this.commandHandler.nodePropertyChange(n,{vertexPoints:n.vertexPoints})),"Perimeter"===n.measureType&&N(n,n.vertexPoints,this.commandHandler.annotation.measureAnnotationModule)}return!0},n.prototype.mouseUp=function(n,o,r){var a=!1;e.prototype.mouseMove.call(this,n);var s;if(s=n.source&&null!==n.annotationSelectorSettings?n.source.annotationSelectorSettings:"",this.drawingObject&&2===this.drawingObject.vertexPoints.length&&o&&r&&(this.commandHandler.remove(this.drawingObject),a=!0,this.endAction()),this.drawingObject&&!a){var l=new i.Rect(this.drawingObject.vertexPoints[this.drawingObject.vertexPoints.length-1].x-20,this.drawingObject.vertexPoints[this.drawingObject.vertexPoints.length-1].y-20,40,40),d={x:this.drawingObject.vertexPoints[0].x,y:this.drawingObject.vertexPoints[0].y};if((l.containsPoint(d)||o)&&this.dragging){if(this.inAction&&(this.inAction=!1,this.drawingObject)){if(r||this.drawingObject.vertexPoints.length>2&&!n.isTouchMode&&this.drawingObject.vertexPoints.splice(this.drawingObject.vertexPoints.length-1,1),"Polygon"===this.action){r?this.drawingObject.vertexPoints[this.drawingObject.vertexPoints.length]=this.drawingObject.vertexPoints[0]:this.drawingObject.vertexPoints[this.drawingObject.vertexPoints.length-1]=this.drawingObject.vertexPoints[0],this.commandHandler.nodePropertyChange(this.drawingObject,{vertexPoints:this.drawingObject.vertexPoints});var A=B(this.drawingObject);A.shapeAnnotationType="Polygon",A.bounds.width=A.wrapper.actualSize.width,A.bounds.height=A.wrapper.actualSize.height,A.bounds.x=this.drawingObject.wrapper.bounds.x,A.bounds.y=this.drawingObject.wrapper.bounds.y,this.commandHandler.add(A),this.commandHandler.remove(this.drawingObject),this.commandHandler.select([A.id],s);var h=this.commandHandler.selectedItems.annotations[0];h&&(this.commandHandler.enableShapeAnnotation&&(t.isNullOrUndefined(h.measureType)||""===h.measureType)&&this.commandHandler.annotation.shapeAnnotationModule.renderShapeAnnotations(h,h.pageIndex),!this.commandHandler.enableMeasureAnnotation||"Area"!==h.measureType&&"Volume"!==h.measureType||("Area"===h.measureType?(h.notes=this.commandHandler.annotation.measureAnnotationModule.calculateArea(h.vertexPoints),this.commandHandler.annotation.stickyNotesAnnotationModule.addTextToComments(h.annotName,h.notes)):"Volume"===h.measureType&&(h.notes=this.commandHandler.annotation.measureAnnotationModule.calculateVolume(h.vertexPoints),this.commandHandler.annotation.stickyNotesAnnotationModule.addTextToComments(h.annotName,h.notes)),h.enableShapeLabel&&(h.labelContent=h.notes,this.commandHandler.nodePropertyChange(h,{vertexPoints:h.vertexPoints,notes:h.notes})),this.commandHandler.annotation.measureAnnotationModule.renderMeasureShapeAnnotations(h,h.pageIndex)))}else r||o&&this.drawingObject.vertexPoints.splice(this.drawingObject.vertexPoints.length-1,1),this.commandHandler.nodePropertyChange(this.drawingObject,{vertexPoints:this.drawingObject.vertexPoints,sourceDecoraterShapes:this.commandHandler.drawingObject.sourceDecoraterShapes,taregetDecoraterShapes:this.commandHandler.drawingObject.taregetDecoraterShapes}),this.commandHandler.select([this.drawingObject.id],s),this.commandHandler.enableMeasureAnnotation&&"Per
10imeter"===this.drawingObject.measureType&&(this.commandHandler.renderDrawing(null,this.drawingObject.pageIndex),this.drawingObject.notes=this.commandHandler.annotation.measureAnnotationModule.calculatePerimeter(this.drawingObject),this.drawingObject.enableShapeLabel&&(this.drawingObject.labelContent=this.drawingObject.notes,this.commandHandler.nodePropertyChange(this.drawingObject,{vertexPoints:this.drawingObject.vertexPoints,notes:this.drawingObject.notes})),this.commandHandler.annotation.stickyNotesAnnotationModule.addTextToComments(this.drawingObject.annotName,this.drawingObject.notes),this.commandHandler.annotation.measureAnnotationModule.renderMeasureShapeAnnotations(this.drawingObject,this.drawingObject.pageIndex));var p=this.commandHandler.selectedItems.annotations[0];this.commandHandler.annotation.addAction(this.pageIndex,null,p,"Addition","",p,p),this.drawingObject=null}this.endAction()}else this.inAction&&!this.dragging&&this.commandHandler.remove(this.drawingObject)}},n.prototype.mouseLeave=function(e){this.mouseUp(e,!0,!0)},n.prototype.mouseWheel=function(t){e.prototype.mouseWheel.call(this,t),this.mouseMove(t)},n.prototype.endAction=function(){this.inAction=!1,this.drawingObject=null,this.commandHandler.tool=""},n}(pt),St=function(e){function t(t,i,n,o){var r=e.call(this,t,i,!0)||this;return r.endPoint=n,r.drawingObject=o,r}return ht(t,e),t.prototype.mouseDown=function(t){this.inAction=!0,this.undoElement=void 0,e.prototype.mouseDown.call(this,t);if(t.source&&t.source.annotations&&({x:this.prevPosition.x,y:this.prevPosition.y},this.drawingObject),this.initialPosition=t.position,this.prevSource=this.drawingObject,this.currentPosition=t.position,this.drawingObject){if(!this.dragging){var i={bounds:{x:this.currentPosition.x,y:this.currentPosition.y,width:5,height:5},vertexPoints:[{x:this.startPosition.x/this.pdfViewerBase.getZoomFactor(),y:this.startPosition.y/this.pdfViewerBase.getZoomFactor()},{x:this.currentPosition.x/this.pdfViewerBase.getZoomFactor(),y:this.currentPosition.y/this.pdfViewerBase.getZoomFactor()}],shapeAnnotationType:this.drawingObject.shapeAnnotationType,sourceDecoraterShapes:this.drawingObject.sourceDecoraterShapes,taregetDecoraterShapes:this.drawingObject.taregetDecoraterShapes,fillColor:this.drawingObject.fillColor,strokeColor:this.drawingObject.strokeColor,pageIndex:this.pdfViewerBase.activeElements.activePageID,opacity:this.drawingObject.opacity||1,borderDashArray:this.drawingObject.borderDashArray,thickness:this.drawingObject.thickness,modifiedDate:this.drawingObject.modifiedDate,author:this.drawingObject.author,subject:this.drawingObject.subject,lineHeadEnd:this.drawingObject.lineHeadEnd,lineHeadStart:this.drawingObject.lineHeadStart,measureType:this.commandHandler.drawingObject.measureType,enableShapeLabel:this.commandHandler.enableShapeLabel};this.pdfViewerBase.updateFreeTextProperties(i),this.drawingObject=this.commandHandler.add(i)}}else{var n=this.commandHandler.annotation.measureAnnotationModule,o={vertexPoints:[{x:this.startPosition.x/this.pdfViewerBase.getZoomFactor(),y:this.startPosition.y/this.pdfViewerBase.getZoomFactor()},{x:this.currentPosition.x/this.pdfViewerBase.getZoomFactor(),y:this.currentPosition.y/this.pdfViewerBase.getZoomFactor()}],bounds:{x:this.currentPosition.x,y:this.currentPosition.y,width:5,height:5},sourceDecoraterShapes:this.commandHandler.drawingObject.sourceDecoraterShapes,taregetDecoraterShapes:this.commandHandler.drawingObject.taregetDecoraterShapes,measureType:"Distance",fillColor:this.commandHandler.drawingObject.fillColor,notes:this.commandHandler.drawingObject.notes,strokeColor:this.commandHandler.drawingObject.strokeColor,opacity:this.commandHandler.drawingObject.opacity,thickness:this.commandHandler.drawingObject.thickness,borderDashArray:this.commandHandler.drawingObject.borderDashArray,shapeAnnotationType:"Distance",pageIndex:this.pdfViewerBase.activeElements.activePageID,author:this.commandHandler.drawingObject.author,subject:this.commandHandler.drawingObject.subject,enableShapeLabel:this.commandHandler.enableShapeLabel,leaderHeight:n.leaderLength};this.pdfViewerBase.updateFreeTextProperties(o),this.drawingObject=this.commandHandler.add(o)}},t.prototype.mouseUp=function(t){if(this.dragging){if(e.prototype.mouseMove.call(this,t),this.commandHandler){var i=void 0;i=t.source&&null!==t.annotationSelectorSettings?t.source.annotationSelectorSettings:"";var n=this.drawingObject;this.commandHandler.nodePropertyChange(n,{vertexPoints:n.vertexPoints,leaderHeight:n.leaderHeight}),this.commandHandler.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.commandHandler.select([n.id],i),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,i)}this.endPoint&&this.endPoint.indexOf("ConnectorSegmentPoint")>-1&&this.dragging&&(this.commandHandler.annotation.updateCalibrateValues(this.drawingObject),this.commandHandler.annotation.addAction(this.pageIndex,null,this.drawingObject,"Addition","",this.drawingObject,this.drawingObject),this.drawingObject=null,this.dragging=!1,e.prototype.mouseUp.call(this,t)),this.drawingObject&&(this.endPoint="ConnectorSegmentPoint_1")}else this.drawingObject&&this.commandHandler.remove(this.drawingObject)},t.prototype.mouseMove=function(t){if(e.prototype.mouseMove.call(this,t),this.inAction&&!1===i.Point.equals(this.currentPosition,this.prevPosition)){if
vendor: 244,891 bytes, line 10
10(this.currentPosition=t.position,this.dragging=!0,this.currentPosition&&this.prevPosition){var n=this.currentPosition.x-this.prevPosition.x,o=this.currentPosition.y-this.prevPosition.y,r=void 0;r=t.source&&null!==t.annotationSelectorSettings?t.source.annotationSelectorSettings:"",(this.inAction&&this.commandHandler&&this.drawingObject&&void 0!==this.endPoint&&0!==n||0!==o)&&(this.blocked=!this.commandHandler.dragConnectorEnds(this.endPoint,this.drawingObject,this.currentPosition,this.selectedSegment,t.target,null,r),this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,r))}this.prevPosition=this.currentPosition}return!this.blocked},t.prototype.mouseLeave=function(e){this.mouseUp(e)},t.prototype.endAction=function(){e.prototype.endAction.call(this),this.prevPosition=null,this.endPoint=null},t}(pt),yt=function(e){function t(t,i){return e.call(this,t,i,!0)||this}return ht(t,e),t.prototype.mouseDown=function(t){var i=B(t.source);this.undoElement={bounds:{x:i.wrapper.offsetX,y:i.wrapper.offsetY,width:i.wrapper.actualSize.width,height:i.wrapper.actualSize.height},rotateAngle:i.rotateAngle},e.prototype.mouseDown.call(this,t)},t.prototype.mouseUp=function(t){var i,n=t.source;if(this.undoElement.rotateAngle!==n.wrapper.rotateAngle){var o=t.source.annotations[0].annotationSelectorSettings;this.commandHandler.renderSelector(this.pdfViewerBase.activeElements.activePageID,o),i={bounds:{x:t.source.wrapper.offsetX,y:t.source.wrapper.offsetY,width:t.source.wrapper.actualSize.width,height:t.source.wrapper.actualSize.height},rotateAngle:t.source.wrapper.rotateAngle}}this.commandHandler.annotation.addAction(this.pageIndex,null,t.source,"Rotate","",this.undoElement,i),this.commandHandler.annotation.stampAnnotationModule.updateSessionStorage(t.source,null,"Rotate"),this.commandHandler.annotation.stickyNotesAnnotationModule.updateStickyNotes(t.source,null),e.prototype.mouseUp.call(this,t)},t.prototype.mouseMove=function(t){e.prototype.mouseMove.call(this,t);var n=t.source,o=t.source.annotations[0].annotationSelectorSettings;if(this.currentPosition=t.position,n.wrapper){var r={x:n.wrapper.offsetX,y:n.wrapper.offsetY},a=i.Point.findAngle(r,this.currentPosition)+90;a=(a+360)%360,this.blocked=!this.commandHandler.rotate(a-n.wrapper.rotateAngle,o)}return!this.blocked},t.prototype.getTooltipContent=function(e){return Math.round(e.rotateAngle%360).toString()+"°"},t.prototype.mouseLeave=function(e){this.mouseUp(e)},t.prototype.endAction=function(){e.prototype.endAction.call(this)},t}(pt),It=function(){function e(){this.activePage=void 0,this.activePageID=void 0}return Object.defineProperty(e.prototype,"activePageID",{get:function(){return this.activePage},set:function(e){this.activePage=e},enumerable:!0,configurable:!0}),e}();!function(e){e[e.None=1]="None",e[e.Accepted=2]="Accepted",e[e.Canceled=3]="Canceled",e[e.Completed=4]="Completed",e[e.Rejected=5]="Rejected"}(e.CommentStatus||(e.CommentStatus={})),function(e){e[e.None=0]="None",e[e.Bold=1]="Bold",e[e.Italic=2]="Italic",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough"}(e.FontStyle||(e.FontStyle={})),function(e){e[e.Copy=0]="Copy",e[e.Highlight=1]="Highlight",e[e.Cut=2]="Cut",e[e.Underline=4]="Underline",e[e.Paste=8]="Paste",e[e.Delete=16]="Delete",e[e.ScaleRatio=32]="ScaleRatio",e[e.Strikethrough=64]="Strikethrough",e[e.Properties=128]="Properties",e[e.Comment=256]="Comment",e[e.Squiggly=512]="Squiggly"}(e.ContextMenuItem||(e.ContextMenuItem={})),function(e){e.Draw="Draw",e.Type="Type",e.Image="Image"}(e.SignatureType||(e.SignatureType={})),function(e){e[e.Corners=1]="Corners",e[e.Edges=2]="Edges"}(e.AnnotationResizerLocation||(e.AnnotationResizerLocation={})),function(e){e.None="None",e.TextOnly="TextOnly",e.BoundsOnly="BoundsOnly",e.TextAndBounds="TextAndBounds"}(e.ExtractTextOption||(e.ExtractTextOption={})),function(e){e[e.Draw=1]="Draw",e[e.Text=2]="Text",e[e.Upload=4]="Upload"}(e.DisplayMode||(e.DisplayMode={})),function(e){e.auto="auto",e.crossHair="crosshair",e.e_resize="e-resize",e.ew_resize="ew-resize",e.grab="grab",e.grabbing="grabbing",e.move="move",e.n_resize="n-resize",e.ne_resize="ne-resize",e.ns_resize="ns-resize",e.nw_resize="nw-resize",e.pointer="pointer",e.s_resize="s-resize",e.se_resize="se-resize",e.sw_resize="sw-resize",e.text="text",e.w_resize="w-resize"}(e.CursorType||(e.CursorType={})),function(e){e.Revised="Revised",e.Reviewed="Reviewed",e.Received="Received",e.Approved="Approved",e.Confidential="Confidential",e.NotApproved="NotApproved"}(e.DynamicStampItem||(e.DynamicStampItem={})),function(e){e.Witness="Witness",e.InitialHere="InitialHere",e.SignHere="SignHere",e.Accepted="Accepted",e.Rejected="Rejected"}(e.SignStampItem||(e.SignStampItem={})),function(e){e.Approved="Approved",e.NotApproved="NotApproved",e.Draft="Draft",e.Final="Final",e.Completed="Completed",e.Confidential="Confidential",e.ForPublicRelease="ForPublicRelease",e.NotForPublicRelease="NotForPublicRelease",e.ForComment="ForComment",e.Void="Void",e.PreliminaryResults="PreliminaryResults",e.InformationOnly="InformationOnly"}(e.StandardBusinessStampItem||(e.StandardBusinessStampItem={})),function(e){e.Select="Select",e.Move="Move",e.Resize="Resize",e.Delete="Delete",e.None="None",e.PropertyChange="PropertyChange"}(e.AllowedInteraction||(e.AllowedInteraction={})),function(e){e.Json="Json",e.Xfdf="Xfdf"}(e.AnnotationDataFormat||(e.AnnotationDataFormat={})),function(e){e.Xml="Xml",e.Fdf="Fdf",e.Xfdf="Xfdf",e.Json="Json"}(e.FormFieldDataFormat||(e.FormFieldDataFormat={})),function(e){e[e.None=0]="None",e[e.Control=1]="Control",e[e.Meta=1]="Meta",e[e.Alt=2]="Alt",e[e.Shift=4]="Shift"}(e.ModifierKeys||(e.ModifierKeys={})),function(e){e[e.None=null]="None",e[e.N0=48]="N0",e[e.N1=49]="N1",e[e.N2=50]="N2",e[e.N3=51]="N3",e[e.N4=52]="N4",e[e.N5=53]="N5",e[e.N6=54]="N6",e[e.N7=55]="N7",e[e.N8=56]="N8",e[e.N9=57]="N9",e[e.Number0=96]="Number0",e[e.Number1=97]="Number1",e[e.Number2=98]="Number2",e[e.Number3=99]="Number3",e[e.Number4=100]="Number4",e[e.Number5=101]="Number5",e[e.Number6=102]="Number6",e[e.Number7=103]="Number7",e[e.Number8=104]="Number8",e[e.Number9=105]="Number9",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.Delete=46]="Delete",e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.BackSpace=8]="BackSpace",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F3=114]="F3",e[e.F4=115]="F4",e[e.F5=116]="F5",e[e.F6=117]="F6",e[e.F7=118]="F7",e[e.F8=119]="F8",e[e.F9=120]="F9",e[e.F10=121]="F10",e[e.F11=122]="F11",e[e.F12=123]="F12",e[e.Star=56]="Star",e[e.Plus=187]="Plus",e[e.Minus=189]="Minus",e[e.BracketLeft=219]="BracketLeft",e[e.BracketRight=221]="BracketRight"}(e.PdfKeys||(e.PdfKeys={}));var Et,vt=function(){function i(e,t){this.inputBoxCount=0,this.isFreeTextValueChange=!1,this.isAddAnnotationProgramatically=!1,this.isInuptBoxInFocus=!1,this.freeTextPageNumbers=[],this.selectedText="",this.isTextSelected=!1,this.selectionStart=0,this.selectionEnd=0,this.isBold=!1,this.isItalic=!1,this.isUnderline=!1,this.isStrikethrough=!1,this.isReadonly=!1,this.isMaximumWidthReached=!1,this.freeTextPaddingLeft=4,this.freeTextPaddingTop=5,this.defaultFontSize=16,this.lineGap=1.5,this.previousText="Type Here",this.currentPosition=[],this.pdfViewer=e,this.pdfViewerBase=t,this.updateTextProperties(),this.inputBoxElement=document.createElement("textarea"),this.inputBoxElement.style.position="absolute",this.inputBoxElement.style.Width=this.defautWidth,this.inputBoxElement.style.Height=this.defaultHeight,this.inputBoxElement.style.zIndex="5",this.inputBoxElement.style.fontSize=this.fontSize+"px",this.inputBoxElement.className="free-text-input",this.inputBoxElement.style.resize="none",this.inputBoxElement.style.borderColor=this.borderColor,this.inputBoxElement.style.background=this.fillColor,this.inputBoxElement.style.borderStyle=this.borderStyle,this.inputBoxElement.style.borderWidth=this.borderWidth+"px",this.inputBoxElement.style.padding=this.padding,this.inputBoxElement.style.paddingLeft=this.freeTextPaddingLeft+"px",this.inputBoxElement.style.paddingTop=this.freeTextPaddingTop*(parseFloat(this.inputBoxElement.style.fontSize)/this.defaultFontSize)+"px",this.inputBoxElement.style.borderRadius="2px",this.inputBoxElement.style.verticalAlign="middle",this.inputBoxElement.style.fontFamily=this.fontFamily,this.inputBoxElement.style.color=this.pdfViewer.freeTextSettings.fontColor?this.pdfViewer.freeTextSettings.fontColor:"#000",this.inputBoxElement.style.overflow="hidden",this.inputBoxElement.style.wordBreak=this.wordBreak,this.inputBoxElement.readOnly=this.isReadonly,this.inputBoxElement.addEventListener("focusout",this.onFocusOutInputBox.bind(this)),this.inputBoxElement.addEventListener("keydown",this.onKeyDownInputBox.bind(this)),this.inputBoxElement.addEventListener("mouseup",this.onMouseUpInputBox.bind(this)),this.freeTextPageNumbers=[]}return i.prototype.updateTextProperties=function(){if(this.defautWidth=this.pdfViewer.freeTextSettings.width?this.pdfViewer.freeTextSettings.width:151,this.defaultHeight=this.pdfViewer.freeTextSettings.height?this.pdfViewer.freeTextSettings.height:24.6,this.borderColor=this.pdfViewer.freeTextSettings.borderColor?this.pdfViewer.freeTextSettings.borderColor:"#ffffff00",this.fillColor=this.pdfViewer.freeTextSettings.fillColor?this.pdfViewer.freeTextSettings.fillColor:"#fff",this.borderStyle=this.pdfViewer.freeTextSettings.borderStyle?this.pdfViewer.freeTextSettings.borderStyle:"solid",this.borderWidth=t.isNullOrUndefined(this.pdfViewer.freeTextSettings.borderWidth)?1:this.pdfViewer.freeTextSettings.borderWidth,this.fontSize=this.pdfViewer.freeTextSettings.fontSize?this.pdfViewer.freeTextSettings.fontSize:16,this.opacity=this.pdfViewer.freeTextSettings.opacity?this.pdfViewer.freeTextSettings.opacity:1,this.fontColor=this.pdfViewer.freeTextSettings.fontColor?this.pdfViewer.freeTextSettings.fontColor:"#000",this.author=this.pdfViewer.freeTextSettings.author&&"Guest"!==this.pdfViewer.freeTextSettings.author?this.pdfViewer.freeTextSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest",t.isNullOrUndefined(this.pdfViewer.annotationModule)||0===this.getRgbCode(this.borderColor).a&&(this.borderWidth=0),this.pdfViewer.freeTextSettings.fontFamily){var i=this.pdfViewer.freeTextSettings.fontFamily;this.fontFamily="Helvetica"===i||"Times New Roman"===i||"Courier"===i||"Symbol"===i||"ZapfDingbats"===i?i:"Helvetica"}else this.fontFamily="Helvetica";this.textAlign=this.pdfViewer.freeTextSettings.textAlignment?this.pdfViewer.freeTextSettings.textAlignment:"Left",this.defaultText=this.pdfViewer.freeTextSettings.defaultText?this.pdfViewer.freeTextSettings.defaultText:"Type here",this.isReadonly=!1,this.pdfViewer.freeTextSettings.enableAutoFit?(this.wordBreak="break-all",this.padding="2px"):(this.padding="0px",this.wordBreak="break-word"),(this.pdfViewer.freeTextSettings.isLock||this.pdfViewer.annotationSettings.isLock||this.pdfViewer.freeTextSettings.isReadonly)&&(this.isReadonly=!0),this.isBold=(this.pdfViewer.freeTextSettings.fontStyle&e.FontStyle.Bold)===e.FontStyle.Bold,this.isItalic=(this.pdfViewer.freeTextSettings.fontStyle&e.FontStyle.Italic)===e.FontStyle.Italic,this.isUnderline=(this.pdfViewer.freeTextSettings.fontStyle&e.FontStyle.Underline)===e.FontStyle.Underline,this.isStrikethrough=(this.pdfViewer.freeTextSettings.fontStyle&e.FontStyle.Strikethrough)===e.FontStyle.Strikethrough},i.prototype.renderFreeTextAnnotations=function(e,i,n,o,r){var a=!1;if(!n)for(var s=0;s<this.freeTextPageNumbers.length;s++)if(this.freeTextPageNumbers[parseInt(s.toString(),10)]===i){a=!0;break}if(e&&(!a||o)&&e.length>=1){this.freeTextPageNumbers.push(i);for(var l=0;l<e.length;l++){var d=e[parseInt(l.toString(),10)];if(d.annotationAddMode=this.pdfViewer.annotationModule.findAnnotationMode(d,i,d.AnnotType),d.AnnotType){var A=null;if(d.VertexPoints){A=[];for(var h=0;h<d.VertexPoints.length;h++){var p={x:d.VertexPoints[parseInt(h.toString(),10)].X,y:d.VertexPoints[parseInt(h.toString(),10)].Y};A.push(p)}}d.AnnotationSettings=d.AnnotationSettings?d.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings),d.IsLocked&&(d.AnnotationSettings.isLock=d.IsLocked);var c=t.isNullOrUndefined(d.Bounds.X)?d.Bounds.x:d.Bounds.X-.5,g=t.isNullOrUndefined(d.Bounds.Y)?d.Bounds.y:d.Bounds.Y-.5,u=d.Bounds.Width?d.Bounds.Width:d.Bounds.width,f=d.Bounds.Height?d.Bounds.Height:d.Bounds.height,m=!!d.isAddAnnotationProgramatically&&d.isAddAnnotationProgramatically,w=this.getRotationValue(i,m),C=d.PageRotation;1===Math.sign(d.Rotate)?d.Rotate=-d.Rotate+w:d.Rotate=d.Rotate+w;var B=Math.abs(d.Rotate);if(n&&w!==C&&this.pdfViewerBase.isJsonImported){var S=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)],y=d.Bounds.X,I=d.Bounds.Y,E=u,v=f;if(C>0){var b=C/90;1===b?(f=u,u=d.Bounds.Height,c=d.Bounds.Y,g=270!==w?S.height-d.Bounds.X-d.Bounds.Width:S.width-d.Bounds.X-d.Bounds.Width):2===b?270!==w&&90!==w?(c=S.width-d.Bounds.X-d.Bounds.Width,g=S.height-d.Bounds.Y-d.Bounds.Height):(c=S.height-d.Bounds.X-d.Bounds.Width,g=S.width-d.Bounds.Y-d.Bounds.Height):3===b&&(f=u,u=d.Bounds.Height,c=90!==w?S.width-d.Bounds.Y-u:S.height-d.Bounds.Y-u,g=d.Bounds.X),y=c,I=g,E=u,v=f}1===(B=w/90%4)?(f=u,u=v,c=S.width-I-v-.5,g=y-.5,B=90):2===B?(c=S.width-y-E-.5,g=S.height-I-v-.5,B=180):3===B?(f=u,u=v,c=I-.5,g=S.height-y-f-.5,B=270):0===B&&(c=y-.5,g=I-.5)}if(90===B||270===B){var V=u;c=c-(u=f)/2+(f=V)/2,g+=u/2-f/2}if(d.allowedInteractions=d.AllowedInteractions?d.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(d),!t.isNullOrUndefined(d)&&d.MarkupText&&d.MarkupText.includes("\n")){var D=d.MarkupText.split("\n").length*d.FontSize*this.lineGap,x=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].height-d.Bounds.Y;f<D&&(f=D),f>x&&(f=x)}var Q={author:d.Author,modifiedDate:d.ModifiedDate,subject:d.Subject,id:"freetext"+this.inputBoxCount,rotateAngle:d.Rotate,dynamicText:d.MarkupText,strokeColor:d.StrokeColor,thickness:d.Thickness,fillColor:d.FillColor,bounds:{x:c,y:g,left:c,top:g,width:u,height:f,right:d.Bounds.Right,bottom:d.Bounds.Bottom},annotName:d.AnnotName,shapeAnnotationType:"FreeText",pageIndex:i,opacity:d.Opacity,fontColor:d.FontColor,fontSize:d.FontSize,pageRotation:w,fontFamily:d.FontFamily,notes:d.MarkupText,textAlign:d.TextAlign,comments:this.pdfViewer.annotationModule.getAnnotationComments(d.Comments,d,d.Author),review:{state:d.State,stateModel:d.StateModel,modifiedDate:d.ModifiedDate,author:d.Author},font:{isBold:d.Font.Bold,isItalic:d.Font.Italic,isStrikeout:d.Font.Strikeout,isUnderline:d.Font.Underline},annotationSelectorSettings:this.getSettings(d),annotationSettings:d.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(d),annotationAddMode:d.annotationAddMode,allowedInteractions:d.allowedInteractions,isPrint:d.IsPrint,isCommentLock:d.IsCommentLock,isReadonly:d.IsReadonly,isAddAnnotationProgrammatically:m,isTransparentSet:d.IsTransparentSet};n&&(Q.id=d.AnnotName,Q.previousFontSize=d.FontSize?d.FontSize:this.fontSize);var M=this.pdfViewer.add(Q);if(this.pdfViewer.annotationModule.storeAnnotations(i,Q,"_annotations_freetext"),this.isAddAnnotationProgramatically){var F={opacity:Q.opacity,borderColor:Q.strokeColor,borderWidth:Q.thickness,author:d.author,subject:d.subject,modifiedDate:d.modifiedDate,fillColor:Q.fillColor,fontSize:Q.fontSize,width:Q.bounds.width,height:Q.bounds.height,fontColor:Q.fontColor,fontFamily:Q.fontFamily,defaultText:Q.dynamicText,fontStyle:Q.font,textAlignment:Q.textAlign};this.pdfViewer.fireAnnotationAdd(Q.pageIndex,Q.annotName,"FreeText",Q.bounds,F)}this.inputBoxCount+=1,this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!0;var T=!(!(n&&r||t.isNullOrUndefined(n))&&n);this.pdfViewer.nodePropertyChange(M,{},T),this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!1}}}},i.prototype.getSettings=function(e){var t=this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?t="string"==typeof e.AnnotationSelectorSettings?JSON.parse(e.AnnotationSelectorSettings):e.AnnotationSelectorSettings:this.pdfViewer.freeTextSettings.annotationSelectorSettings&&(t=this.pdfViewer.freeTextSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(t)),t},i.prototype.setAnnotationType=function(e){switch(this.pdfViewerBase.disableTextSelectionMode(),this.pdfViewer.annotationModule.isFormFieldShape=!1,e){case"FreeText":this.currentAnnotationMode="FreeText",this.updateTextProperties();var t=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();this.pdfViewer.drawingObject={shapeAnnotationType:"FreeText",strokeColor:this.borderColor,fillColor:this.fillColor,opacity:this.opacity,notes:"",isCommentLock:!1,thickness:this.borderWidth,borderDashArray:"0",modifiedDate:t,author:this.author,subject:this.pdfViewer.freeTextSettings.subject,font:{isBold:this.isBold,isItalic:this.isItalic,isStrikeout:this.isStrikethrough,isUnderline:this.isUnderline},textAlign:this.textAlign},this.pdfViewer.tool="Select"}},i.prototype.modifyInCollection=function(e,i,n,o){t.isNullOrUndefined(n.formFieldAnnotationType)||""===n.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0;var r=null,a=!1,s=this.getAnnotations(i,null);if(null!==s&&n){for(var l=0;l<s.length;l++)if(n.id===s[parseInt(l.toString(),10)].id){if("bounds"===e)this.pdfViewerBase.isBounds=this.pdfViewerBase.boundsCalculation(s[parseInt(l.toString(),10)].bounds,n.wrapper.bounds),this.pdfViewerBase.isBounds&&(s[parseInt(l.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom});else if("fill"===e)s[parseInt(l.toString(),10)].fillColor=n.wrapper.children[0].style.fill;else if("stroke"===e)s[parseInt(l.toString(),10)].strokeColor=n.wrapper.children[0].style.strokeColor;else if("opacity"===e)s[parseInt(l.toString(),10)].opacity=n.wrapper.children[0].style.opacity;else if("thickness"===e)s[parseInt(l.toString(),10)].thickness=n.wrapper.children[0].style.strokeWidth;else if("notes"===e)s[parseInt(l.toString(),10)].note=n.notes;else{if("delete"===e){r=s.splice(l,1)[0];break}"dynamicText"===e?(s[parseInt(l.toString(),10)].dynamicText!==n.dynamicText&&(a=!0,this.pdfViewer.fireCommentEdit(s[parseInt(l.toString(),10)].annotName,n.dynamicText,s[parseInt(l.toString(),10)])),s[parseInt(l.toString(),10)].dynamicText=n.dynamicText):"fontColor"===e?s[parseInt(l.toString(),10)].fontColor=n.fontColor:"fontSize"===e?s[parseInt(l.toString(),10)].fontSize=n.fontSize:"fontFamily"===e?s[parseInt(l.toString(),10)].fontFamily=n.fontFamily:"textPropertiesChange"===e?s[parseInt(l.toString(),10)].font={isBold:n.font.isBold,isItalic:n.font.isItalic,isStrikeout:n.font.isStrikeout,isUnderline:n.font.isUnderline}:"textAlign"===e&&(s[parseInt(l.toString(),10)].textAlign=n.textAlign)}this.pdfViewerBase.isBounds&&(s[parseInt(l.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()),a&&(s[parseInt(l.toString(),10)].author=n.author,s[parseInt(l.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()),this.pdfViewer.annotationModule.storeAnnotationCollections(s[parseInt(l.toString(),10)],i)}this.manageAnnotations(s,i)}return!o&&a&&this.pdfViewerBase.updateDocumentEditedProperty(!0),r},i.prototype.addInCollection=function(e,t){if(t){var i=this.getAnnotations(e,null);i&&i.push(t),this.manageAnnotations(i,e)}},i.prototype.saveFreeTextAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_freetext");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_freetext"]);for(var t=[],i=0;i<this.pdfViewerBase.pageCount;i++)t[parseInt(i.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var n=JSON.parse(e),o=0;o<n.length;o++){var r=[],a=n[parseInt(o.toString(),10)];if(a){for(var s=0;a.annotations.length>s;s++){this.pdfViewer.annotationModule.updateModifiedDate(a.annotations[parseInt(s.toString(),10)]),a.annotations[parseInt(s.toString(),10)].bounds=this.getBoundsBasedOnRotation(a.annotations[parseInt(s.toString(),10)].bounds,a.annotations[parseInt(s.toString(),10)].rotateAngle,a.pageIndex,a.annotations[parseInt(s.toString(),10)]),a.annotations[parseInt(s.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(a.annotations[parseInt(s.toString(),10)].bounds,a.pageIndex));var l=a.annotations[parseInt(s.toString(),10)].strokeColor;a.annotations[parseInt(s.toString(),10)].strokeColor=JSON.stringify(this.getRgbCode(l));var d=a.annotations[parseInt(s.toString(),10)].fillColor;a.annotations[parseInt(s.toString(),10)].fillColor=JSON.stringify(this.getRgbCode(d));var A=a.annotations[parseInt(s.toString(),10)].fontColor;a.annotations[parseInt(s.toString(),10)].fontColor=JSON.stringify(this.getRgbCode(A)),a.annotations[parseInt(s.toString(),10)].vertexPoints=JSON.stringify(a.annotations[parseInt(s.toString(),10)].vertexPoints),null!==a.annotations[parseInt(s.toString(),10)].rectangleDifference&&(a.annotations[parseInt(s.toString(),10)].rectangleDifference=JSON.stringify(a.annotations[parseInt(s.toString(),10)].rectangleDifference)),a.annotations[parseInt(s.toString(),10)].padding=this.getPaddingValues(this.fontSize)}r=a.annotations}t[a.pageIndex]=r}return JSON.stringify(t)},i.prototype.getRotationValue=function(e,i){var n=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)];return!t.isNullOrUndefined(i)&&i?0:0===n.rotation?0:1===n.rotation?90:2===n.rotation?180:3===n.rotation?270:0},i.prototype.getBoundsBasedOnRotation=function(e,t,i,n,o){var r=this.getRotationValue(i,o);if(n.rotateAngle=t-r,n.pageRotation=r,90===t||-90===t||270===t||-270===t){var a=e.left+e.width/2-e.height/2,s=e.top-(e.width/2-e.height/2);return{x:a+.5,y:s+.5,left:a+.5,top:s+.5,width:e.height,height:e.width}}return{x:e.left+.5,y:e.top+.5,left:e.left+.5,top:e.top+.5,width:e.width,height:e.height}},i.prototype.manageAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_freetext");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_freetext"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_freetext");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_freetext"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_freetext",r)}},i.prototype.getAnnotations=function(e,t){var i,n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_freetext");if(this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_freetext"]),n){var o=JSON.parse(n),r=this.pdfViewer.annotationModule.getPageCollection(o,e);i=null!=r&&o[parseInt(r.toString(),10)]?o[parseInt(r.toString(),10)].annotations:t}else i=t;return i},i.prototype.getRgbCode=function(e){e.match(/#([a-z0-9]+)/gi)||e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(e=this.pdfViewer.annotationModule.nameToHash(e));var i=e.split(",");return t.isNullOrUndefined(i[1])&&(i=(e=this.pdfViewer.annotationModule.getValue(e,"rgba")).split(",")),{r:parseFloat(i[0].split("(")[1]),g:parseFloat(i[1]),b:parseFloat(i[2]),a:parseFloat(i[3])}},i.prototype.onFocusOutInputBox=function(){var e=this.pdfViewer.allowServerDataBinding;if(this.pdfViewer.enableServerDataBinding(!1),this.pdfViewerBase.isFreeTextContextMenu)this.inputBoxElement.focus(),this.isTextSelected||window.getSelection().removeAllRanges();else{this.pdfViewer.fireBeforeAddFreeTextAnnotation(this.inputBoxElement.value),this.pdfViewer.enableHtmlSanitizer&&this.inputBoxElement&&(this.inputBoxElement.value=t.SanitizeHtmlHelper.sanitize(this.inputBoxElement.value));var i=this.inputBoxElement.id&&this.inputBoxElement.id.split("_freeText_")[1]&&this.inputBoxElement.id.split("_freeText_")[1].split("_")[0]?parseFloat(this.inputBoxElement.id.split("_freeText_")[1].split("_")[0]):this.pdfViewerBase.currentPageNumber-1,n=this.pdfViewerBase.getElement("_pageDiv_"+i),o=parseFloat(this.inputBoxElement.style.width);if(this.pdfViewer.freeTextSettings.enableAutoFit&&!this.isMaximumWidthReached&&this.isNewFreeTextAnnot){o=parseFloat(this.inputBoxElement.style.width);this.inputBoxElement.style.width=o-8+"px"}var r=parseFloat(this.inputBoxElement.style.height),a=parseFloat(this.inputBoxElement.style.width),s=parseFloat(this.inputBoxElement.style.left);this.pdfViewerBase.isMixedSizeDocument&&(s-=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i).offsetLeft);var l=parseFloat(this.inputBoxElement.style.top),d=this.pdfViewerBase.getZoomFactor();this.pdfViewer.isValidFreeText&&(this.inputBoxElement.value="Type Here",this.pdfViewer.isValidFreeText=!1);var A=this.inputBoxElement.value,h=!1;if(!0===this.isNewFreeTextAnnot){var p=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),c=this.pdfViewer.annotation.createGUID();this.isNewFreeTextAnnot=!1,h=!0;var g=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("freeText",i+1);g&&(document.getElementById(g).id=c);var u=this.pdfViewer.freeTextSettings.annotationSelectorSettings;this.pdfViewerBase.updateSelectorSettings(u);var f=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings);this.author=this.author?this.author:this.pdfViewer.freeTextSettings.author?this.pdfViewer.freeTextSettings.author:"Guest",this.subject=this.subject?this.subject:this.pdfViewer.freeTextSettings.subject?this.pdfViewer.freeTextSettings.subject:"Text Box";var m=this.pdfViewer.freeTextSettings.allowedInteractions?this.pdfViewer.freeTextSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,w={author:this.author,modifiedDate:p,subject:this.subject,id:"free_text"+this.inputBoxCount,rotateAngle:0,dynamicText:A,strokeColor:this.borderColor,thickness:this.borderWidth,fillColor:this.fillColor,bounds:{left:s/d,top:l/d,x:s/d,y:l/d,width:a/d,height:r/d},annotName:c,shapeAnnotationType:"FreeText",pageIndex:i,fontColor:this.fontColor,fontSize:this.fontSize,fontFamily:this.fontFamily,opacity:this.opacity,comments:[],textAlign:this.textAlign,font:{isBold:this.isBold,isItalic:this.isItalic,isStrikeout:this.isStrikethrough,isUnderline:this.isUnderline},review:{state:"Unmarked",stateModel:"None",modifiedDate:p,author:this.author},annotationSelectorSettings:u,annotationSettings:f,customData:this.pdfViewer.annotationModule.getData("FreeText"),isPrint:!(this.pdfViewer.freeTextSettings&&!t.isNullOrUndefined(this.pdfViewer.freeTextSettings.isPrint))||this.pdfViewer.freeTextSettings.isPrint,allowedInteractions:m,isReadonly:this.isReadonly};this.pdfViewer.enableRtl&&(w.textAlign="Right");var C=this.pdfViewer.add(w),B={left:w.bounds.x,top:w.bounds.y,width:w.bounds.width,height:w.bounds.height},S={opacity:w.opacity,borderColor:w.strokeColor,borderWidth:w.thickness,author:C.author,subject:C.subject,modifiedDate:C.modifiedDate,fillColor:w.fillColor,fontSize:w.fontSize,width:w.bounds.width,height:w.bounds.height,fontColor:w.fontColor,fontFamily:w.fontFamily,defaultText:w.dynamicText,fontStyle:w.font,textAlignment:w.textAlign};this.pdfViewer.annotation.storeAnnotations(i,w,"_annotations_freetext"),this.pdfViewerBase.updateDocumentEditedProperty(!0),this.pdfViewer.fireAnnotationAdd(w.pageIndex,w.annotName,"FreeText",B,S),this.pdfViewer.fireCommentAdd(w.annotName,w.dynamicText,w),this.pdfViewer.annotation.addAction(i,null,C,"Addition","",C,C),this.pdfViewer.renderSelector(w.pageIndex),this.pdfViewer.clearSelection(w.pageIndex),this.selectedAnnotation=C}if(this.isInuptBoxInFocus=!1,this.selectedAnnotation&&this.pdfViewer.selectedItems.annotations){var y=90===this.selectedAnnotation.pageRotation||270===this.selectedAnnotation.pageRotation;r=parseFloat(y?this.inputBoxElement.style.width:this.inputBoxElement.style.height)/d,a=parseFloat(y?this.inputBoxElement.style.height:this.inputBoxElement.style.width)/d;var I=r-this.selectedAnnotation.bounds.height,E=void 0;I>0&&(E=(E=this.selectedAnnotation.wrapper.offsetY+I/2)>0?E:void 0);var v=a-this.selectedAnnotation.bounds.width,b=void 0;v>0?b=(b=this.selectedAnnotation.wrapper.offsetX+v/2)>0?b:void 0:(v=Math.abs(v),b=this.selectedAnnotation.wrapper.offsetX-v/2),this.selectedAnnotation.bounds.width=a,this.selectedAnnotation.bounds.height=r;var V=0;V=parseFloat(this.inputBoxElement.style.fontSize)/d/(this.defaultFontSize/2),this.selectedAnnotation.wrapper.children[1].margin.left=this.freeTextPaddingLeft,this.selectedAnnotation.wrapper.children[1].margin.top=parseFloat(this.inputBoxElement.style.paddingTop)/d+V,this.pdfViewer.annotation.modifyDynamicTextValue(A,this.selectedAnnotation.annotName),this.selectedAnnotation.dynamicText=A,this.modifyInCollection("dynamicText",i,this.selectedAnnotation,h),this.modifyInCollection("bounds",i,this.selectedAnnotation,h),this.pdfViewer.nodePropertyChange(this.selectedAnnotation,{bounds:{width:this.selectedAnnotation.bounds.width,height:this.selectedAnnotation.bounds.height,y:E,x:b}});var D=document.getElementById(this.selectedAnnotation.annotName);D&&D.childNodes&&(D.childNodes[0].ej2_instances?(D.childNodes[0].ej2_instances[0].value=A,D.childNodes[0].ej2_instances[0].dataBind()):D.childNodes[0].childNodes&&D.childNodes[0].childNodes[1].ej2_instances&&(D.childNodes[0].childNodes[1].ej2_instances[0].value=A,D.childNodes[0].childNodes[1].ej2_instances[0].dataBind())),this.pdfViewer.renderSelector(this.selectedAnnotation.pageIndex,this.selectedAnnotation.annotationSelectorSettings)}this.inputBoxElement.parentElement&&(n&&n.id===this.inputBoxElement.parentElement.id?n.removeChild(this.inputBoxElement):this.inputBoxElement.parentElement.removeChild(this.inputBoxElement));var x=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i);this.pdfViewer.renderDrawing(x,i),this.inputBoxCount+=1}this.pdfViewer.enableServerDataBinding(e,!0)},i.prototype.onKeyDownInputBox=function(e){if(18!==e.which){var i=this;(9===e.which||t.isNullOrUndefined(this.pdfViewer.selectedItems.annotations[0])&&!this.isNewFreeTextAnnot)&&e.preventDefault(),this.selectedAnnotation=this.pdfViewer.selectedItems.annotations&&this.isNewFreeTextAnnot?this.pdfViewer.selectedItems.annotations[0]:this.selectedAnnotation,setTimeout(function(){i.defaultHeight<i.inputBoxElement.scrollHeight&&parseInt(i.inputBoxElement.style.height,10)<i.inputBoxElement.scrollHeight?i.updateFreeTextAnnotationSize(!0):i.updateFreeTextAnnotationSize(!1)},0)}},i.prototype.updateFreeTextAnnotationSize=function(e){var t=this,i=t.pdfViewer.freeTextSettings.enableAutoFit;if(i?this.autoFitFreeText():this.isMaximumWidthReached=!0,this.isMaximumWidthReached){var n=t.inputBoxElement.getBoundingClientRect().height;e||t.inputBoxElement.readOnly||(t.inputBoxElement.style.height="auto");var o=t.inputBoxElement.getBoundingClientRect().height-n,r=parseFloat(t.inputBoxElement.style.fontSize);t.inputBoxElement.style.height=t.inputBoxElement.readOnly?t.inputBoxElement.style.height:t.inputBoxElement.scrollHeight+r/2+"px",t.inputBoxElement.style.height=o<0&&!t.inputBoxElement.readOnly?n+"px":t.inputBoxElement.style.height}var a=t.pdfViewerBase.getZoomFactor(),s=this.selectedAnnotation&&(90===this.selectedAnnotation.pageRotation||270===this.selectedAnnotation.pageRotation),l=parseFloat(s?this.inputBoxElement.style.width:this.inputBoxElement.style.height)/a,d=parseFloat(s?this.inputBoxElement.style.height:this.inputBoxElement.style.width)/a,A=0;if(this.selectedAnnotation){var h=void 0,p=0;if((h=90===this.selectedAnnotation.pageRotation||270===this.selectedAnnotation.pageRotation?d-t.selectedAnnotation.bounds.width:l-t.selectedAnnotation.bounds.height)>0?p=t.selectedAnnotation.wrapper.offsetY+h/2:(h=Math.abs(h),p=t.selectedAnnotation.wrapper.offsetY-h/2),i){var c=d-t.selectedAnnotation.bounds.width;c>0?A=t.selectedAnnotation.wrapper.offsetX+c/2:(c=Math.abs(c),A=t.selectedAnnotation.wrapper.offsetX-c/2)}t.selectedAnnotation.bounds.width=d,t.selectedAnnotation.bounds.height=l,i?t.pdfViewer.nodePropertyChange(t.selectedAnnotation,{bounds:{width:t.selectedAnnotation.bounds.width,height:t.selectedAnnotation.bounds.height,y:p,x:A}}):t.pdfViewer.nodePropertyChange(t.selectedAnnotation,{bounds:{width:t.selectedAnnotation.bounds.width,height:t.selectedAnnotation.bounds.height,y:p}}),t.pdfViewer.renderSelector(t.selectedAnnotation.pageIndex,this.selectedAnnotation.annotationSelectorSettings)}},i.prototype.autoFitFreeText=function(t,i){var n=this.pdfViewerBase.currentPageNumber-1,o=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",n).getContext("2d"),r=this.inputBoxElement.style.fontSize;this.pdfViewer.freeTextSettings.fontStyle===e.FontStyle.Bold||"bold"===this.inputBoxElement.style.fontWeight?o.font="bold "+r+" "+this.inputBoxElement.style.fontFamily:o.font=r+" "+this.inputBoxElement.style.fontFamily;var a="",s=[],l=this.inputBoxElement.value;if(l.indexOf("\n")>-1){s=l.split("\n");for(var d=0;d<s.length;d++){var A=o.measureText(s[parseInt(d.toString(),10)]),h=o.measureText(a);A.width>h.width&&(a=s[parseInt(d.toString(),10)])}this.isMaximumWidthReached=!0}else a=l,this.isMaximumWidthReached=!1;var p,c=o.measureText(a),g=(r=parseFloat(this.inputBoxElement.style.fontSize))+r/2;this.isNewFreeTextAnnot?(p=Math.ceil(c.width+18),this.inputBoxElement.style.height=g+"px",this.inputBoxElement.style.top=i-g/2+"px"):p=Math.ceil(c.width)+r+Math.ceil(4),this.inputBoxElement.style.width=p+"px";var u=this.pdfViewerBase.getPageWidth(n)-parseFloat(this.inputBoxElement.style.left);if(parseFloat(this.inputBoxElement.style.width)>u)if(this.isMaximumWidthReached=!0,this.isNewAddedAnnot&&t){p-=8,this.inputBoxElement.style.width=p+"px";var f=t+p*this.pdfViewerBase.getZoomFactor(),m=parseFloat(this.inputBoxElement.style.left);f>=this.pdfViewerBase.getPageWidth(n)&&(m=this.pdfViewerBase.getPageWidth(n)-p),this.inputBoxElement.style.left=m+"px"}else this.inputBoxElement.style.width=u+"px"},i.prototype.onMouseUpInputBox=function(e){var t=e.target;this.selectionStart=0,this.selectionEnd=0,3===e.which&&t&&(this.selectionStart=t.selectionStart,this.selectionEnd=t.selectionEnd),3===e.which&&null!==window.getSelection()&&""!==window.getSelection().toString()?this.isTextSelected=!0:this.isTextSelected=!1},i.prototype.addInuptElemet=function(e,i,n){void 0===i&&(i=null),this.currentPosition=[],t.isNullOrUndefined(n)&&(n=this.pdfViewerBase.currentPageNumber-1),i&&(n=i.pageIndex),t.isBlazor()&&null===i&&0===this.pdfViewer.selectedItems.annotations.length&&this.updateTextProperties(),this.inputBoxElement.id=this.pdfViewer.element.id+"_freeText_"+n+"_"+this.inputBoxCount;var o=this.pdfViewerBase.getElement("_pageDiv_"+n),r=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",n),a=this.pdfViewerBase.getZoomFactor();if(this.inputBoxElement.value=i&&i.dynamicText?i.dynamicText:this.defaultText,this.inputBoxElement.style.boxSizing="border-box",this.inputBoxElement.style.left=e.x+"px",this.inputBoxElement.style.top=e.y-this.defaultHeight*a/2+"px",this.pdfViewer.freeTextSettings.enableAutoFit?this.inputBoxElement.style.wordBreak="break-all":this.inputBoxElement.style.wordBreak="break-word",i?this.applyFreetextStyles(a,i.isReadonly):this.applyFreetextStyles(a),this.isBold?this.inputBoxElement.style.fontWeight="bold":this.inputBoxElement.style.fontWeight="normal",this.isItalic?this.inputBoxElement.style.fontStyle="italic":this.inputBoxElement.style.fontStyle="normal",this.inputBoxElement.style.textDecoration="none",this.isUnderline&&(this.inputBoxElement.style.textDecoration="underline"),this.isStrikethrough&&(this.inputBoxElement.style.textDecoration="line-through"),this.pdfViewer.enableRtl?(this.inputBoxElement.style.textAlign="right",this.inputBoxElement.style.direction="rtl",this.inputBoxElement.style.left=e.x-this.defautWidth*a/2):this.inputBoxElement.style.textAlign=this.textAlign.toLowerCase(),this.inputBoxElement.style.borderColor=this.borderColor,this.inputBoxElement.style.color=this.fontColor,this.inputBoxElement.style.background=this.fillColor,i&&i.wrapper&&i.wrapper.children[0]&&(this.inputBoxElement.style.opacity=i.wrapper.children[0].style.opacity),!0===this.isNewFreeTextAnnot&&this.pdfViewer.clearSelection(n),i&&i.wrapper&&i.wrapper.bounds){var s=i.wrapper.bounds;s.left&&(this.inputBoxElement.style.left=s.left*a+"px"),s.top&&(this.inputBoxElement.style.top=s.top*a+"px"),this.inputBoxElement.style.height=s.height?s.height*a+"px":this.defaultHeight*a+"px",this.inputBoxElement.style.width=s.width?s.width*a+"px":this.defautWidth*a+"px",this.selectedAnnotation=i,this.previousText=this.selectedAnnotation.dynamicText,this.selectedAnnotation.dynamicText="",this.inputBoxElement.style.borderColor=this.selectedAnnotation.strokeColor,this.inputBoxElement.style.color=this.selectedAnnotation.fontColor,this.inputBoxElement.style.background=this.selectedAnnotation.fillColor,!0===this.selectedAnnotation.font.isBold&&(this.inputBoxElement.style.fontWeight="bold"),!0===this.selectedAnnotation.font.isItalic&&(this.inputBoxElement.style.fontStyle="italic"),!0===this.selectedAnnotation.font.isUnderline&&(this.inputBoxElement.style.textDecoration="underline"),!0===this.selectedAnnotation.font.isStrikeout&&(this.inputBoxElement.style.textDecoration="line-through"),this.pdfViewer.enableRtl?(this.inputBoxElement.style.textAlign="right",this.inputBoxElement.style.direction="rtl"):this.selectedAnnotation.textAlign&&(this.inputBoxElement.style.textAlign=this.selectedAnnotation.textAlign),this.inputBoxElement.style.fontSize=this.selectedAnnotation.fontSize*a+"px",this.inputBoxElement.style.fontFamily=this.selectedAnnotation.fontFamily,this.pdfViewer.nodePropertyChange(this.selectedAnnotation,{})}this.pdfViewerBase.isMixedSizeDocument&&(this.inputBoxElement.style.left=parseFloat(this.inputBoxElement.style.left)+r.offsetLeft+"px"),this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!1,this.pdfViewer.freeTextSettings.enableAutoFit&&this.autoFitFreeText(e.x,e.y),this.inputBoxElement.style.paddingLeft=this.freeTextPaddingLeft*a+"px",this.inputBoxElement.style.paddingTop=parseFloat(this.inputBoxElement.style.fontSize)/a/this.defaultFontSize/a*this.freeTextPaddingTop+"px";var l=0;l=parseFloat(this.inputBoxElement.style.fontSize)/a/(this.defaultFontSize/2),this.inputBoxElement.style.paddingTop=parseFloat(this.inputBoxElement.style.paddingTop)-l+"px",o.appendChild(this.inputBoxElement),!this.pdfViewer.freeTextSettings.enableAutoFit&&this.defaultHeight*a<this.inputBoxElement.scrollHeight&&parseInt(this.inputBoxElement.style.height,10)<this.inputBoxElement.scrollHeight&&(this.inputBoxElement.style.height=this.inputBoxElement.scrollHeight+"px"),this.isInuptBoxInFocus=!0,this.inputBoxElement.focus(),!0!==this.isNewFreeTextAnnot&&this.inputBoxElement.value!==this.defaultText||(this.inputBoxElement.select(),this.pdfViewerBase.isFreeTextSelected=!0),this.currentPosition.push(parseInt(this.inputBoxElement.style.left,10)/a,parseInt(this.inputBoxElement.style.top,10)/a,parseInt(this.inputBoxElement.style.width,10)/a,parseInt(this.inputBoxElement.style.height,10)/a)},i.prototype.applyFreetextStyles=function(e,i){this.inputBoxElement.style.height=this.defaultHeight*e+"px",this.inputBoxElement.style.width=this.defautWidth*e+"px",this.inputBoxElement.style.borderWidth=this.borderWidth*e+"px",this.inputBoxElement.style.fontSize=this.fontSize*e+"px",this.inputBoxElement.style.fontFamily=this.fontFamily,this.inputBoxElement.readOnly=t.isNullOrUndefined(i)?this.isReadonly:i},i.prototype.copySelectedText=function(){if(null!==window.getSelection()){this.selectedText=window.getSelection().toString();var e=document.createElement("textarea");e.contentEditable="true",e.textContent=this.selectedText,e.style.position="fixed",document.body.appendChild(e),e.select();try{document.execCommand("copy")}catch(e){console.warn("Copy to clipboard failed.",e)}finally{e&&document.body.removeChild(e)}}},i.prototype.pasteSelectedText=function(e){if(""!==this.selectedText&&e){var t=e.value;e.value=t.slice(0,this.selectionStart)+this.selectedText+t.slice(this.selectionEnd,t.length)}var i=event;this.onKeyDownInputBox(i)},i.prototype.cutSelectedText=function(e){if(null!==window.getSelection()){var t=e.value;this.selectedText=window.getSelection().toString(),e.value=t.slice(0,e.selectionStart)+t.slice(e.selectionEnd);var i=document.createElement("textarea");i.contentEditable="true",i.textContent=this.selectedText,i.style.position="fixed",document.body.appendChild(i),i.select();try{document.execCommand("cut")}catch(e){console.warn("Copy to clipboard failed.",e)}finally{i&&document.body.removeChild(i)}}},i.prototype.saveImportedFreeTextAnnotations=function(e,i){var n=e;if(n.AnnotType){var o=null;if(n.VertexPoints){o=[];for(var r=0;r<n.VertexPoints.length;r++){var a={x:n.VertexPoints[parseInt(r.toString(),10)].X,y:n.VertexPoints[parseInt(r.toString(),10)].Y};o.push(a)}}n.AnnotationSettings=n.AnnotationSettings?n.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings),n.allowedInteractions=n.AllowedInteractions?n.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(n);var s=t.isNullOrUndefined(n.Bounds.X)?n.Bounds.x:n.Bounds.X,l=t.isNullOrUndefined(n.Bounds.Y)?n.Bounds.y:n.Bounds.Y,d=n.Bounds.Width?n.Bounds.Width:n.Bounds.width,A=n.Bounds.Height?n.Bounds.Height:n.Bounds.height,h={author:n.Author,allowedInteractions:n.allowedInteractions,modifiedDate:n.ModifiedDate,subject:n.Subject,id:"freetext",rotateAngle:n.Rotate,dynamicText:n.MarkupText,strokeColor:n.StrokeColor,thickness:n.Thickness,fillColor:n.FillColor,bounds:{x:s,y:l,left:s,top:l,width:d,height:A,right:n.Bounds.Right,bottom:n.Bounds.Bottom},annotName:n.AnnotName,shapeAnnotationType:"FreeText",pageIndex:i,opacity:n.Opacity,fontColor:n.FontColor,fontSize:n.FontSize,fontFamily:n.FontFamily,notes:n.MarkupText,textAlign:n.TextAlign,comments:this.pdfViewer.annotationModule.getAnnotationComments(n.Comments,n,n.Author),review:{state:n.State,stateModel:n.StateModel,modifiedDate:n.ModifiedDate,author:n.Author},font:{isBold:n.Font.Bold,isItalic:n.Font.Italic,isStrikeout:n.Font.Strikeout,isUnderline:n.Font.Underline},annotationSelectorSettings:this.getSettings(n),annotationSettings:n.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(n),isPrint:n.IsPrint,isCommentLock:n.IsCommentLock,isReadonly:n.IsReadonly};this.pdfViewer.annotationModule.storeAnnotations(i,h,"_annotations_freetext")}},i.prototype.updateFreeTextAnnotationCollections=function(e,t){var i=e;if(i.annotationAddMode=this.pdfViewer.annotationModule.findAnnotationMode(i,t,i.AnnotType),i.AnnotType){var n=null;if(i.VertexPoints){n=[];for(var o=0;o<i.VertexPoints.length;o++){var r={x:i.VertexPoints[parseInt(o.toString(),10)].X,y:i.VertexPoints[parseInt(o.toString(),10)].Y};n.push(r)}}i.AnnotationSettings=i.AnnotationSettings?i.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings),i.IsLocked&&(i.AnnotationSettings.isLock=i.IsLocked),i.allowedInteractions=i.AllowedInteractions?i.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(i);var a=i.Bounds.X?i.Bounds.X:i.Bounds.x,s=i.Bounds.Y?i.Bounds.Y:i.Bounds.y,l=i.Bounds.Width?i.Bounds.Width:i.Bounds.width,d=i.Bounds.Height?i.Bounds.Height:i.Bounds.height;return{author:i.Author,allowedInteractions:i.allowedInteractions,modifiedDate:i.ModifiedDate,subject:i.Subject,id:"freetext",rotateAngle:i.Rotate,dynamicText:i.MarkupText,strokeColor:i.StrokeColor,thickness:i.Thickness,fillColor:i.FillColor,bounds:{x:a,y:s,left:a,top:s,width:l,height:d,right:i.Bounds.Right,bottom:i.Bounds.Bottom},annotationId:i.AnnotName,shapeAnnotationType:"FreeText",pageIndex:t,opacity:i.Opacity,fontColor:i.FontColor,fontSize:i.FontSize,fontFamily:i.FontFamily,notes:i.MarkupText,comments:this.pdfViewer.annotationModule.getAnnotationComments(i.Comments,i,i.Author),review:{state:i.State,stateModel:i.StateModel,modifiedDate:i.ModifiedDate,author:i.Author},customData:this.pdfViewer.annotation.getCustomData(i),font:{isBold:i.Font.Bold,isItalic:i.Font.Italic,isStrikeout:i.Font.Strikeout,isUnderline:i.Font.Underline},pageNumber:t,annotationSettings:i.AnnotationSettings,isCommentLock:i.IsCommentLock,isReadonly:i.IsReadonly,isPrint:i.IsPrint}}},i.prototype.updateAddAnnotationDetails=function(i,n){n=i?i.offset?i.offset:{x:1,y:1}:(i={offset:{x:1,y:1},pageNumber:0,width:void 0,height:void 0}).offset;var o=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),r=this.pdfViewer.annotation.createGUID(),a=i.fontStyle?i.fontStyle:e.FontStyle.None,s=this.pdfViewer.freeTextSettings.annotationSelectorSettings;this.pdfViewerBase.updateSelectorSettings(s);var l=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings),d=this.pdfViewer.freeTextSettings.allowedInteractions?this.pdfViewer.freeTextSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions;i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("freeText",l.annotationSubType),l.isLock=i.isLock?i.isLock:l.isLock,(this.pdfViewer.freeTextSettings.isLock||this.pdfViewer.annotationSettings.isLock||this.pdfViewer.freeTextSettings.isReadonly)&&(i.isReadonly=!0),l.minHeight=i.minHeight?i.minHeight:0,l.minWidth=i.minWidth?i.minWidth:0,l.maxWidth=i.maxWidth?i.maxWidth:0,l.maxHeight=i.maxHeight?i.maxHeight:0,i.width=i.width?i.width:150,i.height=i.height?i.height:24.6;var A=[],h={AllowedInteractions:i.allowedInteractions?i.allowedInteractions:d,AnnotName:r,AnnotType:"freeText",AnnotationFlags:"Default",AnnotationIntent:null,AnnotationSelectorSettings:i.annotationSelectorSettings?i.annotationSelectorSettings:s,AnnotationSettings:l,Author:i.author?i.author:"Guest",Border:{HorizontalRadius:0,VerticalRadius:0,Width:t.isNullOrUndefined(i.borderWidth)?1:i.borderWidth},BorderColor:{IsEmpty:!0,B:255,Blue:1,C:0,G:255},Bounds:{X:n.x,Y:n.y,Width:i.width,Height:i.height,Left:n.x,Top:n.y,Right:n.x+i.width,Bottom:n.y+i.height},CalloutLines:null,Color:{IsEmpty:!1,B:51,Blue:.2,C:0,G:255},Comments:null,CreatedDate:o,CustomData:i.customData?i.customData:null,ExistingCustomData:null,FillColor:i.fillColor?i.fillColor:"#ffffff00",Flatten:!1,FlattenPopups:!1,Font:{Bold:(a&e.FontStyle.Bold)===e.FontStyle.Bold,Italic:(a&e.FontStyle.Italic)===e.FontStyle.Italic,Strikeout:(a&e.FontStyle.Strikethrough)===e.FontStyle.Strikethrough,Underline:(a&e.FontStyle.Underline)===e.FontStyle.Underline},FontColor:i.fontColor?i.fontColor:"#000",FontFamily:i.fontFamily?i.fontFamily:"Helvetica",FontSize:i.fontSize?i.fontSize:16,FreeTextAnnotationType:"Text Box",InnerColor:null,IsCommentLock:!1,IsLock:!!i.isLock&&i.isLock,IsPrint:!!t.isNullOrUndefined(i.isPrint)||i.isPrint,Layer:null,LineEndingStyle:"OpenArrow",Location:null,MarkupText:i.defaultText?i.defaultText:"Type Here",ModifiedDate:"",Name:r,Opacity:i.opacity?i.opacity:1,Page:null,PageTags:null,ReviewHistory:null,Rotate:0,IsReadonly:!!i.isReadonly&&i.isReadonly,State:"Unmarked",StateModel:"None",StrokeColor:i.borderColor?i.borderColor:"#ffffff00",Subject:i.subject?i.subject:"Text Box",Text:i.defaultText?i.defaultText:"Type Here",TextAlign:i.textAlignment?i.textAlignment:"Left",TextMarkupColor:null,Thickness:t.isNullOrUndefined(i.borderWidth)?1:i.borderWidth,isAddAnnotationProgramatically:!0};return A[0]=h,{freeTextAnnotation:A}},i.prototype.getPaddingValues=function(e){var t=5;return t=e/16*(t-2),[4,t]},i.prototype.addInputInZoom=function(e){var t=this.pdfViewerBase.getZoomFactor();this.inputBoxElement.style.left=e.x*t+"px",this.inputBoxElement.style.top=e.y*t+"px",this.inputBoxElement.style.height=e.height*t+"px",this.inputBoxElement.style.width=e.width*t+"px",this.inputBoxElement.style.borderWidth=this.borderWidth*t+"px",this.inputBoxElement.style.fontSize=this.fontSize*t+"px"},i.prototype.destroy=function(){this.inputBoxElement&&(this.inputBoxElement.removeEventListener("focusout",this.onFocusOutInputBox.bind(this)),this.inputBoxElement.removeEventListener("keydown",this.onKeyDownInputBox.bind(this)),this.inputBoxElement.removeEventListener("mouseup",this.onMouseUpInputBox.bind(this))),this.currentAnnotationMode=null,this.opacity=null,this.borderColor=null,this.borderWidth=null,this.defautWidth=null,this.defaultHeight=null,this.inputBoxElement=null,this.borderStyle=null,this.author=null,this.subject=null,this.isNewFreeTextAnnot=null,this.isNewAddedAnnot=null,this.inputBoxCount=null,this.selectedAnnotation=null,this.isFreeTextValueChange=null,this.isAddAnnotationProgramatically=null,this.isInuptBoxInFocus=null,this.fontSize=null,this.annodationIntent=null,this.annotationFlags=null,this.fillColor=null,this.fontColor=null,this.fontFamily=null,this.freeTextPageNumbers=null,this.selectedText=null,this.isTextSelected=null,this.selectionStart=null,this.selectionEnd=null,this.isBold=null,this.isItalic=null,this.isUnderline=null,this.isStrikethrough=null,this.textAlign=null,this.defaultText=null,this.isReadonly=null,this.isMaximumWidthReached=null,this.padding=null,this.wordBreak=null,this.freeTextPaddingLeft=null,this.freeTextPaddingTop=null,this.defaultFontSize=null,this.lineGap=null,this.previousText=null,this.currentPosition=null},i}(),bt=function(){function e(e,t){this.pdfViewer=e,this.pdfViewerBase=t,this.inputBoxElement=document.createElement("input"),this.inputBoxElement.addEventListener("focusout",this.onFocusOutInputBox.bind(this)),this.maxHeight=24.6,this.maxWidth=151,this.fontSize=16,this.isInFocus=!1,this.inputBoxElement.style.position="absolute",this.inputBoxElement.style.fontFamily="Helvetica"}return e.prototype.editLabel=function(e,t){var i=this.pdfViewerBase.currentPageNumber-1,n=this.pdfViewerBase.getElement("_pageDiv_"+i),o=this.pdfViewerBase.getZoomFactor();if(this.inputBoxElement.value=t.labelContent,this.inputBoxElement.select(),t.labelContent="",this.pdfViewer.nodePropertyChange(t,{}),this.inputBoxElement.style.left=e.x*o+"px",this.inputBoxElement.style.top=e.y*o+"px",this.inputBoxElement.style.maxHeight=this.maxHeight*o+"px",this.inputBoxElement.style.maxWidth=this.maxWidth*o+"px",this.inputBoxElement.style.fontSize=this.fontSize*o+"px",this.inputBoxElement.style.textAlign="center",t&&t.wrapper&&t.wrapper.bounds){this.inputBoxElement.style.width=t.wrapper.bounds.width?t.wrapper.bounds.width*o+1+"px":this.maxWidth*o+"px";var r=parseFloat(this.inputBoxElement.style.width);r=r>this.maxWidth*o?this.maxWidth*o:r,t.wrapper.bounds.left&&(this.inputBoxElement.style.left=(t.wrapper.bounds.left+t.wrapper.bounds.width/2-r/(2*o))*o+"px"),t.wrapper.bounds.top&&("Line"===t.shapeAnnotationType||"LineWidthArrowHead"===t.shapeAnnotationType||"Distance"===t.shapeAnnotationType||"Polygon"===t.shapeAnnotationType?this.inputBoxElement.style.top=(t.wrapper.bounds.top+t.wrapper.bounds.height/2-this.maxHeight)*o+"px":this.inputBoxElement.style.top=(t.wrapper.bounds.top+t.wrapper.bounds.height/2-this.maxHeight/2)*o+"px"),this.inputBoxElement.maxLength=t.labelMaxLength,this.inputBoxElement.fontFamily=t.fontFamily,this.inputBoxElement.style.color=t.fontColor,this.inputBoxElement.style.border="1px solid #ffffff00",this.inputBoxElement.style.padding="2px",this.inputBoxElement.style.background=t.labelFillColor}n.appendChild(this.inputBoxElement),this.isInFocus=!0,this.inputBoxElement.focus()},e.prototype.onFocusOutInputBox=function(){var e=this.pdfViewerBase.currentPageNumber-1,t=this.pdfViewerBase.getElement("_pageDiv_"+e),i=parseFloat(this.inputBoxElement.style.height),n=parseFloat(this.inputBoxElement.style.width);this.isInFocus=!1;var o=this.pdfViewer.selectedItems.annotations[0];if(o){n=(n-1)/this.pdfViewerBase.getZoomFactor(),i=(i-1)/this.pdfViewerBase.getZoomFactor(),o.labelContent=this.inputBoxElement.value,o.notes=this.inputBoxElement.value,"Rectangle"===o.shapeAnnotationType||"Ellipse"===o.shapeAnnotationType||"Line"===o.shapeAnnotationType||"LineWidthArrowHead"===o.shapeAnnotationType?this.pdfViewer.annotation.shapeAnnotationModule.modifyInCollection("labelContent",e,o,null):"Radius"===o.shapeAnnotationType&&o.measureType&&this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("labelContent",e,o),this.pdfViewer.nodePropertyChange(o,{}),this.pdfViewer.renderSelector(o.pageIndex,this.pdfViewer.annotationSelectorSettings);var r=document.getElementById(this.pdfViewer.selectedItems.annotations[0].annotName);r&&r.childNodes&&"label"!==this.inputBoxElement.value&&(r.childNodes[0].ej2_instances?r.childNodes[0].ej2_instances[0].value=this.inputBoxElement.value:r.childNodes[0].childNodes&&r.childNodes[0].childNodes[1].ej2_instances&&(r.childNodes[0].childNodes[1].ej2_instances[0].value=this.inputBoxElement.value))}t.removeChild(this.inputBoxElement);var a=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",e);this.pdfViewer.renderDrawing(a,e)},e.prototype.calculateLabelBounds=function(e,t){var i={};if(e){var n=0,o=0,r=0;void 0===t&&(t=this.pdfViewerBase.currentPageNumber-1);var a=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)].rotation;e.width&&(r=(r=e.width/2)>0&&r<151?r:151),e.left&&(o=e.left+e.width/2-r/2),e.top&&(n=e.top+e.height/2-12.3),i=1===a||3===a?{left:o,top:n,width:r-24.6+r/2,height:49.2+r,right:0,bottom:0}:{left:o,top:n,width:r,height:24.6,right:0,bottom:0}}return i},e.prototype.destroy=function(){this.inputBoxElement=null,this.isInFocus=null,this.maxHeight=null,this.maxWidth=null,this.fontSize=null},e.prototype.calculateLabelBoundsFromLoadedDocument=function(e){var t={};if(e){var i=0,n=0,o=0;e.Width&&(o=(o=e.Width/2)>0&&o<151?o:151),e.Left&&(n=e.Left+e.Width/2-o/2),e.Top&&(i=e.Top+e.Height/2-12.3),t={left:n,top:i,width:o,height:24.6,right:0,bottom:0}}return t},e}(),Vt=function(){function s(e,t){this.isUndoActionImageLoad=!1,this.isUndoRedoAction=!1,this.isFreeTextFontsizeChanged=!1,this.isUndoAction=!1,this.annotationSelected=!0,this.isAnnotDeletionApiCall=!1,this.removedDocumentAnnotationCollection=[],this.nonRenderSelectedAnnotation=null,this.isShapeCopied=!1,this.actionCollection=[],this.redoCollection=[],this.isPopupNoteVisible=!1,this.undoCommentsElement=[],this.redoCommentsElement=[],this.selectAnnotationId=null,this.isAnnotationSelected=!1,this.annotationPageIndex=null,this.previousIndex=null,this.annotationType=null,this.overlappedAnnotations=[],this.overlappedCollections=[],this.isFormFieldShape=!1,this.removedAnnotationCollection=[],this.isEdited=!1,this.pdfViewer=e,this.pdfViewerBase=t,this.pdfViewer.enableTextMarkupAnnotation&&(this.textMarkupAnnotationModule=new Ut(this.pdfViewer,this.pdfViewerBase)),this.pdfViewer.enableShapeAnnotation&&(this.shapeAnnotationModule=new Yt(this.pdfViewer,this.pdfViewerBase)),this.pdfViewer.enableMeasureAnnotation&&(this.measureAnnotationModule=new Ht(this.pdfViewer,this.pdfViewerBase)),this.stampAnnotationModule=new Gt(this.pdfViewer,this.pdfViewerBase),this.stickyNotesAnnotationModule=new Jt(this.pdfViewer,this.pdfViewerBase),this.freeTextAnnotationModule=new vt(this.pdfViewer,this.pdfViewerBase),this.inputElementModule=new bt(this.pdfViewer,this.pdfViewerBase),this.inkAnnotationModule=new jt(this.pdfViewer,this.pdfViewerBase)}return s.prototype.setAnnotationMode=function(t,i,n,o){var r=this.pdfViewer.allowServerDataBinding;if(this.pdfViewer.enableServerDataBinding(!1),"Stamp"===this.pdfViewer.tool&&this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateStampItems(),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.resetFreeTextAnnot(),"None"!==t&&this.triggerAnnotationUnselectEvent(),this.pdfViewer.tool="",this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.deSelectCommentAnnotation(),"None"===t)this.clearAnnotationMode();else if("Highlight"===t||"Strikethrough"===t||"Underline"===t||"Squiggly"===t)this.textMarkupAnnotationModule&&(this.textMarkupAnnotationModule.isSelectionMaintained=!1,this.textMarkupAnnotationModule.drawTextMarkupAnnotations(t.toString()));else if("Line"===t||"Arrow"===t||"Rectangle"===t||"Circle"===t||"Polygon"===t)this.shapeAnnotationModule&&this.shapeAnnotationModule.setAnnotationType(t);else if("Distance"===t||"Perimeter"===t||"Area"===t||"Radius"===t||"Volume"===t)this.measureAnnotationModule&&this.measureAnnotationModule.setAnnotationType(t);else if("FreeText"===t&&this.freeTextAnnotationModule)this.freeTextAnnotationModule.setAnnotationType("FreeText"),this.freeTextAnnotationModule.isNewFreeTextAnnot=!0,this.freeTextAnnotationModule.isNewAddedAnnot=!0;else if("HandWrittenSignature"===t)this.pdfViewerBase.signatureModule.setAnnotationMode();else if("Initial"===t)this.pdfViewerBase.signatureModule.setInitialMode();else if("Ink"===t)this.inkAnnotationModule.setAnnotationMode();else if("StickyNotes"===t){this.pdfViewerBase.isCommentIconAdded=!0,this.pdfViewerBase.isAddComment=!0;var a=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+(this.pdfViewerBase.currentPageNumber-1));a&&a.addEventListener("mousedown",this.pdfViewer.annotationModule.stickyNotesAnnotationModule.drawIcons.bind(this))}else if("Stamp"===t)if(this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,this.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,this.pdfViewerBase.stampAdded=!0,i){s=e.DynamicStampItem[i];this.pdfViewerBase.isDynamicStamp=!0,this.stampAnnotationModule.retrieveDynamicStampAnnotation(s)}else if(n){s=e.SignStampItem[n];this.pdfViewerBase.isDynamicStamp=!1,this.stampAnnotationModule.retrievestampAnnotation(s)}else if(o){var s=e.StandardBusinessStampItem[o];this.pdfViewerBase.isDynamicStamp=!1,this.stampAnnotationModule.retrievestampAnnotation(s)}this.pdfViewer.enableServerDataBinding(r,!0),this.pdfViewerBase.initiateTextSelection()},s.prototype.deleteAnnotationById=function(e){e&&(this.isAnnotDeletionApiCall=!0,this.annotationSelected=!1,this.selectAnnotation(e),this.deleteAnnotation(),this.isAnnotDeletionApiCall=!1,this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.clearTextSelection())},s.prototype.clearAnnotationMode=function(){if(this.textMarkupAnnotationModule&&(this.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1),this.freeTextAnnotationModule&&(this.freeTextAnnotationModule.isNewFreeTextAnnot=!1,this.freeTextAnnotationModule.isNewAddedAnnot=!1),this.pdfViewerBase.isTextMarkupAnnotationModule()&&(this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode=""),this.pdfViewerBase.isShapeAnnotationModule()&&(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode=""),this.pdfViewerBase.isCalibrateAnnotationModule()&&(this.pdfViewer.annotation.measureAnnotationModule.currentAnnotationMode=""),this.pdfViewer.annotationModule.inkAnnotationModule){var e=parseInt(this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(e)}},s.prototype.deleteAnnotation=function(){this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.deleteTextMarkupAnnotation();var e=this.pdfViewer.selectedItems.annotations[0];if(e){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_formfields"),n=JSON.parse(i),o=[];if(n){for(var r=0;r<n.length;r++)if(n[parseInt(r.toString(),10)].uniqueID==e.id){n[parseInt(r.toString(),10)].Value="";for(var a=0;a<n.length;a++)"ink"===n[parseInt(a.toString(),10)].Name&&(n[parseInt(a.toString(),10)].Value=""),n[parseInt(r.toString(),10)].FieldName===n[parseInt(a.toString(),10)].FieldName&&"ink"===n[parseInt(a.toString(),10)].Name&&n.splice(a,1);o.push(n[parseInt(r.toString(),10)])}else o.push(n[parseInt(r.toString(),10)]);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_formfields",JSON.stringify(o))}}var s=!1,l=!1;if(this.pdfViewer.selectedItems.annotations.length>0){var d=this.pdfViewer.selectedItems.annotations[0],A=d.shapeAnnotationType;if("Path"===A||"SignatureField"===d.formFieldAnnotationType||"InitialField"===d.formFieldAnnotationType||"HandWrittenSignature"===A||"SignatureText"===A||"SignatureImage"===A){var h=document.getElementById(d.id);h&&h.disabled&&(l=!0)}if(d.annotationSettings&&(s=d.annotationSettings.isLock)&&this.checkAllowedInteractions("Delete",d)&&(s=!1),!s&&!l){var p=d.pageIndex,c=d.shapeAnnotationType,g=void 0;"Line"===c||"LineWidthArrowHead"===c||"Polygon"===c||"Ellipse"===c||"Rectangle"===c||"Radius"===c||"Distance"===c?(t.isNullOrUndefined(d.measureType)||""===d.measureType?(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(d,"shape"),this.updateImportAnnotationCollection(d,p,"shapeAnnotation")):(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(d,"measure"),this.updateImportAnnotationCollection(d,p,"measureShapeAnnotation")),g=this.modifyInCollections(d,"delete")):"FreeText"===c?(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(d,"FreeText","delete"),g=this.modifyInCollections(d,"delete"),this.updateImportAnnotationCollection(d,p,"freeTextAnnotation")):"HandWrittenSignature"===c||"SignatureImage"===c||"SignatureText"===c?g=this.modifyInCollections(d,"delete"):"Ink"===c?(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(d,"Ink","delete"),g=this.modifyInCollections(d,"delete"),this.updateImportAnnotationCollection(d,p,"signatureInkAnnotation")):(g=this.pdfViewer.selectedItems.annotations[0],this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(g,g.shapeAnnotationType,"delete"),this.pdfViewer.annotation.stampAnnotationModule.updateSessionStorage(d,null,"delete")),"StickyNotes"===c&&this.updateImportAnnotationCollection(d,p,"stickyNotesAnnotation"),"Stamp"!==c&&"Image"!==c||this.updateImportAnnotationCollection(d,p,"stampAnnotations");var u=this.pdfViewer.nameTable[d.id.split("_")[0]];(t.isNullOrUndefined(u)||"SignatureField"!==u.formFieldAnnotationType&&"InitialField"!==u.formFieldAnnotationType)&&this.pdfViewer.annotation.addAction(p,null,d,"Delete","",g,d);M=void 0;""!==d.annotName?M=document.getElementById(d.annotName):g&&""!==g.annotName&&(M=document.getElementById(g.annotName)),this.removeCommentPanelDiv(M);var f=this.pdfViewer.selectedItems.annotations[0],m=f.annotName,w=this.getAnnotationType(f.shapeAnnotationType,f.measureType);if("Path"===c||"SignatureField"===f.formFieldAnnotationType||"InitialField"===f.formFieldAnnotationType||"HandWrittenSignature"===c||"SignatureText"===c||"SignatureImage"===c){var C=this.pdfViewer.retrieveFormFields(),B=void 0;(I=C.findIndex(function(e){return e.id===d.id}))>-1&&(B=C[parseInt(I.toString(),10)].name);for(var S=0;S<C.length;S++)if(f.id===C[parseInt(S.toString(),10)].id||t.isNullOrUndefined(B)&&B===C[parseInt(S.toString(),10)].name){C[parseInt(S.toString(),10)].value="",C[parseInt(S.toString(),10)].signatureType="";var y=this.getAnnotationsFromCollections(C[parseInt(S.toString(),10)].id);this.updateInputFieldDivElement(y),g=this.modifyInCollections(y,"delete"),this.pdfViewer.annotation.addAction(y.pageIndex,null,y,"Delete","",g,y),this.pdfViewer.formDesignerModule&&f.formFieldAnnotationType?this.updateFormFieldCollection(y):this.updateAnnotationCollection(y),this.pdfViewer.remove(y)}this.pdfViewer.formDesignerModule&&f.formFieldAnnotationType?this.updateFormFieldCollection(d):this.updateAnnotationCollection(d)}if(this.pdfViewer.formDesignerModule&&f.formFieldAnnotationType?this.updateFormFieldCollection(d):this.updateAnnotationCollection(d),null!=u&&("SignatureField"===u.formFieldAnnotationType||"InitialField"===u.formFieldAnnotationType)){var I=this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===d.id.split("_")[0]}),B=void 0;I>-1&&(B=this.pdfViewer.formFieldCollections[parseInt(I.toString(),10)].name);for(var E=0;E<this.pdfViewer.formFieldCollections.length;E++)if(B===this.pdfViewer.formFieldCollections[parseInt(E.toString(),10)].name){var v=this.pdfViewer.formFieldCollections[parseInt(E.toString(),10)];this.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",v,v.pageIndex,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,v.value,""),v.value="",v.signatureType="",this.pdfViewer.formDesignerModule.updateFormFieldCollections(v);var b=this.getAnnotationsFromCollections(v.id+"_content");if(!t.isNullOrUndefined(b)){g=this.modifyInCollections(b,"delete"),this.pdfViewer.annotation.addAction(b.pageIndex,null,b,"Delete","",g,b),this.updateInputFieldDivElement(b);var V=this.pdfViewer.nameTable[b.id.split("_")[0]];V.wrapper.children.splice(V.wrapper.children.indexOf(b.wrapper.children[0]),1),this.pdfViewer.remove(b)}}}if(this.pdfViewer.remove(d),this.pdfViewer.renderDrawing(),this.pdfViewer.clearSelection(p),this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.pdfViewerBase.updateDocumentEditedProperty(!0),this.pdfViewerBase.tool=null,this.pdfViewer.tool=null,"HandWrittenSignature"===f.shapeAnnotationType||"SignatureText"===f.shapeAnnotationType||"SignatureImage"===f.shapeAnnotationType||"Path"===f.shapeAnnotationType){var D={left:f.bounds.x,top:f.bounds.y,width:f.bounds.width,height:f.bounds.height};this.pdfViewer.fireSignatureRemove(p,f.id,f.shapeAnnotationType,D)}else this.pdfViewer.annotationModule&&this.pdfViewer.fireAnnotationRemove(p,m,w,f.bounds);this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.enableTextSelectionMode()}}else if(this.nonRenderSelectedAnnotation&&this.nonRenderSelectedAnnotation.annotationId&&this.isAnnotDeletionApiCall){var m=this.nonRenderSelectedAnnotation.annotationId,x=this.nonRenderSelectedAnnotation.pageNumber?this.nonRenderSelectedAnnotation.pageNumber:this.nonRenderSelectedAnnotation.pageIndex,Q=this.updateCollectionForNonRenderedPages(this.nonRenderSelectedAnnotation,m,x);Q.pageIndex=x,this.pdfViewer.annotation.addAction(x,null,Q,"Delete","",Q,Q),this.undoCommentsElement.push(Q);var M=document.getElementById(m);this.removeCommentPanelDiv(M),this.nonRenderSelectedAnnotation=null}this.updateToolbar(!0),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&!s&&(this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(!1,!0),this.pdfViewer.toolbarModule.annotationToolbarModule.enableTextMarkupAnnotationPropertiesTools(!1))},s.prototype.getAnnotationsFromCollections=function(e){var t=this.pdfViewer.annotations;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].id===e)return t[parseInt(i.toString(),10)];return null},s.prototype.updateInputFieldDivElement=function(e){var i=document.getElementById(e.id),n=document.getElementById(e.id+"_html_element");null!==i||t.isNullOrUndefined(n)||(i=n.children[0].children[0]),i&&i.classList.contains("e-pdfviewer-signatureformfields-signature")&&(i.className="e-pdfviewer-signatureformfields",i.style.pointerEvents="",i.parentElement.style.pointerEvents=""),this.pdfViewer.formDesignerModule?this.pdfViewer.formDesignerModule.updateSignatureValue(e.id):this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.updateDataInSession(i,"")},s.prototype.storeAnnotationCollections=function(e,i,n,o){if(this.isFormFieldShape){r=this.checkFormDesignCollection(e);(a=B(e)).formFieldId=e.annotName,a.pageNumber=i,delete a.annotName,e.id&&(a.uniqueKey=e.id,delete a.id),r.isExisting?this.pdfViewer.formFieldCollection.splice(r.position,0,a):this.pdfViewer.formFieldCollection.push(a)}else{var r=this.checkAnnotationCollection(e),a=B(e);a.annotationId=e.annotName,a.pageNumber=i,delete a.annotName,"stamp"===e.shapeAnnotationType&&(a.uniqueKey=e.randomId,delete a.randomId),"sticky"===e.shapeAnnotationType&&(a.uniqueKey=e.annotName),e.id&&(a.uniqueKey=e.id,delete a.id),a.customData&&e.customData&&JSON.stringify(a.customData)!==JSON.stringify(e.customData)&&(a.customData=e.customData),r.isExisting?this.pdfViewer.annotationCollection.splice(r.position,0,a):!t.isNullOrUndefined(n)&&n?this.pdfViewer.annotationCollection.splice(o,0,a):this.pdfViewer.annotationCollection.push(a)}},s.prototype.checkFormDesignCollection=function(e){var t=this.pdfViewer.formFieldCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].formFieldId===e.annotName)return this.pdfViewer.formFieldCollection.splice(i,1),{isExisting:!0,position:i};return{isExisting:!1,position:null}},s.prototype.updateFormFieldCollection=function(e){var t=this.pdfViewer.formFieldCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].formFieldId===e.annotName){this.removedAnnotationCollection.push(t[parseInt(i.toString(),10)]),this.pdfViewer.formFieldCollection.splice(i,1);break}},s.prototype.getCustomData=function(e){var i;if(e.ExistingCustomData&&!e.CustomData)i=JSON.parse(e.ExistingCustomData);else if(null===e.CustomData)"sticky"===e.shapeAnnotationType&&(i=this.pdfViewer.stickyNotesSettings.customData),"Stamp"===e.shapeAnnotationType&&(i=this.pdfViewer.stampSettings.customData),"FreeText"===e.shapeAnnotationType&&(i=this.pdfViewer.freeTextSettings.customData),"shape"===e.id&&(i=this.getShapeData(e.ShapeAnnotationType,e.subject)),"measure"===e.id&&(i=this.getMeasureData(e.Subject)),"textMarkup"===e.shapeAnnotationType&&(i=this.getTextMarkupData(e.subject)),"Ink"===e.shapeAnnotationType&&(i=this.pdfViewer.inkAnnotationSettings.customData);else{var n=e.CustomData?e.CustomData:e.customData;t.isNullOrUndefined(n)||(i="string"==typeof n?JSON.parse(n):n)}return i},s.prototype.getShapeData=function(e,t){var i;return"Line"===e&&"Arrow"!==t&&this.pdfViewer.lineSettings.customData?i=this.pdfViewer.lineSettings.customData:"LineWidthArrowHead"!==e&&"Arrow"!==t||!this.pdfViewer.arrowSettings.customData?"Rectangle"!==e&&"Square"!==e||!this.pdfViewer.rectangleSettings.customData?"Ellipse"!==e&&"Circle"!==e||!this.pdfViewer.circleSettings.customData?"Polygon"===e&&this.pdfViewer.polygonSettings.customData?i=this.pdfViewer.polygonSettings.customData:this.pdfViewer.annotationSettings.customData&&(i=this.pdfViewer.annotationSettings.customData):i=this.pdfViewer.circleSettings.customData:i=this.pdfViewer.rectangleSettings.customData:i=this.pdfViewer.arrowSettings.customData,i},s.prototype.getMeasureData=function(e){var t;return"Distance"!==e&&"Distance calculation"!==e||!this.pdfViewer.distanceSettings.customData?"Line"!==e&&"Perimeter calculation"!==e||!this.pdfViewer.lineSettings.customData?"Polygon"!==e&&"Area calculation"!==e&&"Volume calculation"!==e||!this.pdfViewer.polygonSettings.customData?"Radius"!==e&&"Radius calculation"!==e||!this.pdfViewer.radiusSettings.customData?this.pdfViewer.annotationSettings.customData&&(t=this.pdfViewer.annotationSettings.customData):t=this.pdfViewer.radiusSettings.customData:t=this.pdfViewer.polygonSettings.customData:t=this.pdfViewer.lineSettings.customData:t=this.pdfViewer.distanceSettings.customData,t},s.prototype.getTextMarkupData=function(e){var t;return"Highlight"===e&&this.pdfViewer.highlightSettings.customData?t=this.pdfViewer.highlightSettings.customData:"Underline"===e&&this.pdfViewer.underlineSettings.customData?t=this.pdfViewer.underlineSettings.customData:"Strikethrough"===e&&this.pdfViewer.strikethroughSettings.customData?t=this.pdfViewer.strikethroughSettings.customData:"Squiggly"===e&&this.pdfViewer.squigglySettings.customData?t=this.pdfViewer.squigglySettings.customData:this.pdfViewer.annotationSettings.customData&&(t=this.pdfViewer.annotationSettings.customData),t},s.prototype.getData=function(e){var t;return"FreeText"===e&&this.pdfViewer.freeTextSettings.customData?t=this.pdfViewer.freeTextSettings.customData:"image"!==e&&"Stamp"!==e||!this.pdfViewer.stampSettings.customData?"sticky"===e&&this.pdfViewer.stickyNotesSettings.customData?t=this.pdfViewer.stickyNotesSettings.customData:this.pdfViewer.annotationSettings.customData&&(t=this.pdfViewer.annotationSettings.customData):t=this.pdfViewer.stampSettings.customData,t},s.prototype.clearAnnotationStorage=function(){var e=Fi.sessionStorageManager.getWindowSessionStorageSize(),t=4500;if((this.pdfViewerBase.isDeviceiOS||this.pdfViewerBase.isMacSafari)&&(t=2e3),e>t){for(var i=Fi.sessionStorageManager.getSessionLength(),n=[],o=0;o<i;o++)Fi.sessionStorageManager.getKey(o)&&Fi.sessionStorageManager.getKey(o).split("_")[3]&&"annotations"===Fi.sessionStorageManager.getKey(o).split("_")[3]&&(this.pdfViewerBase.annotationStorage[Fi.sessionStorageManager.getKey(o)]=Fi.sessionStorageManager.getItem(Fi.sessionStorageManager.getKey(o)),n.push(Fi.sessionStorageManager.getKey(o)));if(n)for(o=0;o<n.length;o++)Fi.sessionStorageManager.removeItem(n[parseInt(o.toString(),10)])}},s.prototype.checkAnnotationCollection=function(e){var t=this.pdfViewer.annotationCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].annotationId===e.annotName&&(t[parseInt(i.toString(),10)].pageNumber===e.pageNumber||t[parseInt(i.toString(),10)].pageNumber===e.pageIndex))return this.pdfViewer.annotationCollection.splice(i,1),{isExisting:!0,position:i};return{isExisting:!1,position:null}},s.prototype.updateAnnotationCollection=function(e){var t=this.pdfViewer.annotationCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].annotationId===e.annotName||t[parseInt(i.toString(),10)].annotationId===e.annotationId&&t[parseInt(i.toString(),10)].pageNumber===e.pageNumber){this.removedAnnotationCollection.push(t[parseInt(i.toString(),10)]),this.pdfViewer.annotationCollection.splice(i,1);break}},s.prototype.updateImportAnnotationCollection=function(e,i,n){this.pdfViewerBase.isImportAction&&this.pdfViewerBase.importedAnnotation&&this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)]&&(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)][""+n]&&!t.isNullOrUndefined(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)].annotationOrder)&&(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)].annotationOrder=this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)].annotationOrder.filter(function(t){return!(e.annotName===t.AnnotName||e.annotName===t.annotName)})),t.isNullOrUndefined(this.pdfViewerBase.importedAnnotation)||t.isNullOrUndefined(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)])||t.isNullOrUndefined(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)][""+n])||(this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)][""+n]=this.pdfViewerBase.importedAnnotation[parseInt(i.toString(),10)][""+n].filter(function(t){return e.annotName!==t.AnnotName})));var o=this.pdfViewerBase.documentAnnotationCollections;if(o&&o[parseInt(i.toString(),10)]){var r=o[parseInt(i.toString(),10)];if(r&&r[""+n])for(var a=0;a<r[""+n].length;a++)if(e.annotName===r[""+n][parseInt(a.toString(),10)].AnnotName){this.pdfViewerBase.documentAnnotationCollections[parseInt(i.toString(),10)][""+n].splice(a,1);break}}},s.prototype.selectAnnotation=function(e){var i,n;if("object"==typeof e&&(n=(i=e).annotationId,i=this.getAnnotationsFromAnnotationCollections(n,e)),"string"==typeof e&&(i=this.getAnnotationsFromAnnotationCollections(e),n=e),i){var o=t.isNullOrUndefined(i.pageNumber)?i.pageIndex:i.pageNumber,r=!1;r=this.findRenderPageList(o);var a=this.pdfViewer.annotationSelectorSettings;if(i&&o>=0){if("textMarkup"===i.shapeAnnotationType)if(i.rect||i.bounds){l=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].top*this.pdfViewerBase.getZoomFactor()+this.getAnnotationTop(i)*this.pdfViewerBase.getZoomFactor();if(!this.isAnnotDeletionApiCall){var s=(l-20).toString();this.pdfViewerBase.viewerContainer.scrollTop=parseInt(s,10),this.pdfViewerBase.viewerContainer.scrollLeft=i.bounds[0].Left*this.pdfViewerBase.getZoomFactor()-20}}else this.pdfViewer.navigation&&this.pdfViewer.navigation.goToPage(o+1);else if(i.bounds){var l=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].top*this.pdfViewerBase.getZoomFactor()+i.bounds.top*this.pdfViewerBase.getZoomFactor(),d=i.bounds.left*this.pdfViewerBase.getZoomFactor()-20;if("Ink"===i.shapeAnnotationType&&(l=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].top*this.pdfViewerBase.getZoomFactor()+i.bounds.y*this.pdfViewerBase.getZoomFactor(),d=i.bounds.x*this.pdfViewerBase.getZoomFactor()-20),!this.isAnnotDeletionApiCall){var A=(l-20).toString();this.pdfViewerBase.viewerContainer.scrollTop=parseInt(A,10),this.pdfViewerBase.viewerContainer.scrollLeft=d}}else this.pdfViewer.navigation&&this.pdfViewer.navigation.goToPage(o+1);if(r){if(this.previousIndex&&this.pdfViewer.clearSelection(this.previousIndex),this.pdfViewer.clearSelection(o),this.previousIndex=o,"textMarkup"===i.shapeAnnotationType){this.pdfViewer.annotationModule.textMarkupAnnotationModule.clearCurrentAnnotationSelection(o,!0);var h="Highlight"===i.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",p="_blendAnnotationsIntoCanvas_"===h?this.pdfViewerBase.getElement(h+o):this.pdfViewerBase.getAnnotationCanvas(h,o),c=this.getTextMarkupAnnotations(o,i);c&&(this.textMarkupAnnotationModule.currentTextMarkupAnnotation=null,this.textMarkupAnnotationModule.isSelectedAnnotation=!0,this.textMarkupAnnotationModule.showHideDropletDiv(!0),this.textMarkupAnnotationModule.annotationClickPosition=null,this.textMarkupAnnotationModule.selectAnnotation(c,p,o,null,!0),this.textMarkupAnnotationModule.currentTextMarkupAnnotation=c,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage=o,this.textMarkupAnnotationModule.enableAnnotationPropertiesTool(!0),this.textMarkupAnnotationModule.isSelectedAnnotation=!1,this.pdfViewer.toolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem)))}else"stamp"===i.shapeAnnotationType||"stamp"===i.ShapeAnnotationType?(this.pdfViewer.select([i.uniqueKey],a),this.pdfViewer.annotation.onAnnotationMouseDown()):"sticky"===i.shapeAnnotationType||"sticky"===i.ShapeAnnotationType?(this.pdfViewer.select([i.annotationId],a),this.pdfViewer.annotation.onAnnotationMouseDown()):i.uniqueKey?(this.pdfViewer.select([i.uniqueKey],a),this.pdfViewer.annotation.onAnnotationMouseDown()):(this.selectAnnotationId=n,this.isAnnotationSelected=!0,this.annotationPageIndex=o,this.annotationType=i.stampAnnotationType);var g=document.getElementById(this.pdfViewer.element.id+"_commantPanel");if(g&&"block"===g.style.display){var u=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+this.pdfViewer.currentPageNumber);u&&u.ej2_instances[0].expandItem(!0);var f=document.getElementById(n);f&&(f.classList.contains("e-pv-comments-border")||f.firstChild.click())}}else i.uniqueKey||"textMarkup"===i.shapeAnnotationType&&"Imported Annotation"===i.annotationAddMode||!this.isAnnotDeletionApiCall?(this.selectAnnotationId=n,this.isAnnotationSelected=!0,this.annotationPageIndex=o,this.annotationType=i.stampAnnotationType,(i.uniqueKey||"textMarkup"===i.shapeAnnotationType&&"Imported Annotation"===i.annotationAddMode)&&this.selectAnnotationFromCodeBehind()):r||i.uniqueKey||!this.isAnnotDeletionApiCall||(this.nonRenderSelectedAnnotation=i)}}},s.prototype.updateCollectionForNonRenderedPages=function(e,t,i){var n,o=this.pdfViewer.annotationCollection;if(o.length){var r=o.filter(function(e){return e.annotationId===t});n=r[0],this.updateAnnotationCollection(r[0])}var a=this.getTypeOfAnnotation(e),s=this.pdfViewerBase.documentAnnotationCollections[parseInt(i.toString(),10)];if(s[""+a].length)for(var l=0;l<s[""+a].length;l++)if(s[""+a][parseInt(l.toString(),10)].AnnotName===e.annotationId){var d=s[""+a][parseInt(l.toString(),10)];this.removedDocumentAnnotationCollection.push(d),s[""+a].splice(l,1);break}return n},s.prototype.getTypeOfAnnotation=function(e){var t;return e.id&&"shape"===e.id.toLowerCase()?t="shapeAnnotation":e.id&&"measure"===e.id.toLowerCase()?t="measureShapeAnnotation":e.id&&"freetext"===e.id.toLowerCase()?t="freeTextAnnotation":e.shapeAnnotationType&&"textmarkup"===e.shapeAnnotationType.toLowerCase()?t="textMarkupAnnotation":e.shapeAnnotationType&&"stamp"===e.shapeAnnotationType.toLowerCase()?t="stampAnnotations":e.shapeAnnotationType&&"ink"===e.shapeAnnotationType.toLowerCase()?t="signatureInkAnnotation":e.shapeAnnotationType&&"sticky"===e.shapeAnnotationType.toLowerCase()&&(t="stickyNotesAnnotation"),t},s.prototype.removeCommentPanelDiv=function(e){e&&(1===e.parentElement.childElementCount?this.stickyNotesAnnotationModule.updateAccordionContainer(e):e.remove())},s.prototype.clearSelection=function(){if(this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.textMarkupAnnotationModule.clearCurrentSelectedAnnotation(),this.textMarkupAnnotationModule.clearCurrentAnnotationSelection(this.textMarkupAnnotationModule.selectTextMarkupCurrentPage);else if(this.pdfViewer.selectedItems&&this.pdfViewer.selectedItems.annotations[0]){var e=this.pdfViewer.selectedItems.annotations[0];this.pdfViewer.clearSelection(e.pageIndex)}else this.pdfViewer.clearSelection(this.pdfViewer.currentPageNumber-1)},s.prototype.getAnnotationTop=function(e){return e.rect&&(e.rect.Top||e.rect.top)?e.rect.Top||e.rect.top:e.bounds[0].Top||e.bounds[0].top},s.prototype.getAnnotationLeft=function(e){return e.rect?e.rect.Left?e.rect.Left:e.rect.left:e.bounds[0].Left?e.bounds[0].Left:e.bounds[0].left},s.prototype.selectAnnotationFromCodeBehind=function(){if(this.isAnnotationSelected&&this.selectAnnotationId){var e=this.getAnnotationsFromAnnotationCollections(this.selectAnnotationId),t=this.selectAnnotationId,i=e.pageNumber,n=this.pdfViewer.annotationSelectorSettings;if(e&&this.annotationPageIndex>=0&&this.annotationPageIndex===i){if(this.previousIndex&&this.pdfViewer.clearSelection(this.previousIndex),this.pdfViewer.clearSelection(i),this.previousIndex=i,"textMarkup"===e.shapeAnnotationType){this.pdfViewer.annotationModule.textMarkupAnnotationModule.clearCurrentAnnotationSelection(i,!0);var o="Highlight"===e.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",r="_blendAnnotationsIntoCanvas_"===o?this.pdfViewerBase.getElement(o+i):this.pdfViewerBase.getAnnotationCanvas(o,i),a=this.getTextMarkupAnnotations(i,e);a&&(this.textMarkupAnnotationModule.currentTextMarkupAnnotation=null,this.textMarkupAnnotationModule.isSelectedAnnotation=!0,this.textMarkupAnnotationModule.showHideDropletDiv(!0),this.textMarkupAnnotationModule.annotationClickPosition=null,this.textMarkupAnnotationModule.selectAnnotation(a,r,i),this.textMarkupAnnotationModule.currentTextMarkupAnnotation=a,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage=i,this.textMarkupAnnotationModule.enableAnnotationPropertiesTool(!0),this.textMarkupAnnotationModule.isSelectedAnnotation=!1,this.pdfViewer.toolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem)))}else"stamp"===e.shapeAnnotationType||"stamp"===e.ShapeAnnotationType?(this.pdfViewer.select([e.uniqueKey],n),this.pdfViewer.annotation.onAnnotationMouseDown()):"sticky"===e.shapeAnnotationType||"sticky"===e.ShapeAnnotationType?(this.pdfViewer.select([e.annotationId],n),this.pdfViewer.annotation.onAnnotationMouseDown()):e.uniqueKey?(this.pdfViewer.select([e.uniqueKey],n),this.pdfViewer.annotation.onAnnotationMouseDown()):(this.pdfViewer.select([e.annotationId],n),this.pdfViewer.annotation.onAnnotationMouseDown());var s=document.getElementById(this.pdfViewer.element.id+"_commantPanel");if(s&&"block"===s.style.display){var l=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+this.pdfViewer.currentPageNumber);l&&l.ej2_instances[0].expandItem(!0);var d=document.getElementById(t);d&&(d.classList.contains("e-pv-comments-border")||d.firstChild.click())}}this.isAnnotationSelected=!1,this.selectAnnotationId=null,this.annotationPageIndex=null}},s.prototype.findRenderPageList=function(e){var t=!1,i=this.pdfViewerBase.renderedPagesList;if(i)for(var n=0;n<i.length;n++)if(i[parseInt(n.toString(),10)]===e)return t=!0;return t},s.prototype.getAnnotationIdFromSignatureCollections=function(e){var t=this.pdfViewer.signatureCollection.find(function(t){return e===t.annotationId});return t?t.uniqueKey:e},s.prototype.getAnnotationsFromAnnotationCollections=function(e,i){var n=this.pdfViewer.annotationCollection;if(n&&e)for(var o=!t.isNullOrUndefined(i)&&"object"==typeof i,r=0;r<n.length;r++)if(n[parseInt(r.toString(),10)].annotationId===e&&(!o||n[parseInt(r.toString(),10)].pageNumber===i.pageNumber))return n[parseInt(r.toString(),10)];0===this.pdfViewer.selectedItems.annotations.length&&(t.isNullOrUndefined(this.pdfViewer.nameTable[""+e])&&(e=this.getAnnotationIdFromSignatureCollections(e)),this.pdfViewer.selectedItems.annotations.push(this.pdfViewer.nameTable[""+e]))},s.prototype.getTextMarkupAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_textMarkup");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_textMarkup"]),i){var n=JSON.parse(i),o=this.getPageCollection(n,e);if(null!=o&&n[parseInt(o.toString(),10)]){for(var r=0;r<n[parseInt(o.toString(),10)].annotations.length;r++)if(n[parseInt(o.toString(),10)].annotations[parseInt(r.toString(),10)].annotName===t.annotationId)return n[parseInt(o.toString(),10)].annotations[parseInt(r.toString(),10)];return null}return null}return null},s.prototype.getAnnotationType=function(e,i){var n;if(""===i||t.isNullOrUndefined(i))switch(e){case"Line":n="Line";break;case"LineWidthArrowHead":n="Arrow";break;case"Rectangle":n="Rectangle";break;case"Ellipse":n="Circle";break;case"Polygon":n="Polygon";break;case"Stamp":n="Stamp";break;case"Image":n="Image";break;case"FreeText":n="FreeText";break;case"Ink":n="Ink";break;case"StickyNotes":n="StickyNotes"}else switch(i){case"Distance":n="Distance";break;case"Perimeter":n="Perimeter";break;case"Area":n="Area";break;case"Radius":n="Radius";break;case"Volume":n="Volume"}return n},s.prototype.getAnnotationIndex=function(e,t){for(var i=this.pdfViewer.drawing.getPageObjects(e),n=null,o=0;o<i.length;o++)if(i[parseInt(o.toString(),10)].id===t){n=o;break}return n},s.prototype.initializeCollection=function(){this.actionCollection=[],this.redoCollection=[],this.popupNote||this.createNote()},s.prototype.showCommentsPanel=function(){if(this.pdfViewer.enableCommentPanel){var e=document.getElementById(this.pdfViewer.element.id+"_commantPanel");if(e&&"none"===e.style.display){e.style.display="block",t.Browser.isDevice&&!t.isBlazor()&&document.getElementById(this.pdfViewer.element.id+"_viewerMainContainer").insertBefore(this.pdfViewerBase.navigationPane.commentPanelContainer,this.pdfViewer.toolbarModule.toolbarElement),this.pdfViewerBase.navigationPane.commentPanelResizer&&(this.pdfViewerBase.navigationPane.commentPanelResizer.style.display="block"),this.pdfViewerBase.navigationPane.setCommentPanelResizeIconTop(),this.pdfViewer.annotation.stickyNotesAnnotationModule.updateCommentPanelTextTop();var i=document.getElementById(this.pdfViewer.element.id+"_viewerContainer"),n=document.getElementById(this.pdfViewer.element.id+"_pageViewContainer");if(i&&(this.pdfViewer.enableRtl?i.style.left=this.pdfViewerBase.navigationPane.getViewerContainerRight()+"px":i.style.right=this.pdfViewerBase.navigationPane.getViewerContainerRight()+"px",i.style.width=(this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth)-this.pdfViewerBase.navigationPane.getViewerContainerLeft()-this.pdfViewerBase.navigationPane.getViewerContainerRight()+"px",n.style.width=i.offsetWidth-this.pdfViewerBase.navigationPane.getViewerContainerScrollbarWidth()+"px"),this.pdfViewerBase.updateZoomValue(),this.pdfViewer.annotation&&this.pdfViewer.annotation.textMarkupAnnotationModule&&this.pdfViewer.annotation.textMarkupAnnotationModule.showHideDropletDiv(!0),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&!t.isBlazor()){if(e.style.height=this.pdfViewerBase.viewerMainContainer.clientHeight+"px",this.pdfViewer.selectedItems.annotations.length>0){var o=document.getElementById(this.pdfViewer.selectedItems.annotations[0].annotName);o&&o.lastElementChild.children[1]&&o.lastElementChild.children[1].ej2_instances?(o.lastElementChild.children[1].ej2_instances[0].enableEditMode=!0,o.lastElementChild.children[1].ej2_instances[0].dataBind()):o&&o.lastElementChild.ej2_instances&&(o.lastElementChild.ej2_instances[0].enableEditMode=!0,o.lastElementChild.ej2_instances[0].dataBind(),o.lastElementChild.style.display="block",o.lastElementChild.children[1]&&(o.lastElementChild.children[1].style.display="block"))}this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.element.style.display="none",this.pdfViewer.toolbarModule.annotationToolbarModule.propertyToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.propertyToolbar.element.style.display="none"))}t.isNullOrUndefined(this.pdfViewerBase.navigationPane)||this.pdfViewerBase.navigationPane.calculateCommentPanelWidth()}}},s.prototype.addAction=function(e,t,i,n,o,r,a){var s={pageIndex:e,index:t,annotation:i,action:n,modifiedProperty:o,undoElement:r,redoElement:a};this.actionCollection.push(s),this.updateToolbar()},s.prototype.undo=function(){var e=this,n=this.actionCollection.pop();if(n){var o=n.annotation.shapeAnnotationType;switch(this.isUndoRedoAction=!0,this.isUndoAction=!0,this.isUndoActionImageLoad=!0,n.action){case"Text Markup Added":case"Text Markup Deleted":this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.undoTextMarkupAction(n.annotation,n.pageIndex,n.index,n.action);break;case"Text Markup Property modified":this.textMarkupAnnotationModule&&(n.annotation=this.textMarkupAnnotationModule.undoRedoPropertyChange(n.annotation,n.pageIndex,n.index,n.modifiedProperty,!0));break;case"Drag":case"Resize":g(n.annotation)?this.pdfViewer.nodePropertyChange(n.annotation,{bounds:n.undoElement.bounds,vertexPoints:n.undoElement.vertexPoints,leaderHeight:n.undoElement.leaderHeight}):this.pdfViewer.nodePropertyChange(n.annotation,{bounds:n.undoElement.bounds}),"Distance"!==n.annotation.measureType&&"Perimeter"!==n.annotation.measureType&&"Area"!==n.annotation.measureType&&"Radius"!==n.annotation.measureType&&"Volume"!==n.annotation.measureType||(this.pdfViewer.nodePropertyChange(n.annotation,{notes:n.undoElement.notes}),this.updateCalibrateValues(n.annotation)),n.annotation.formFieldAnnotationType&&this.pdfViewer.formDesigner.updateHTMLElement(n.annotation),this.pdfViewer.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.pdfViewer.select([n.annotation.id]),"Line"!==n.annotation.shapeAnnotationType&&"Rectangle"!==n.annotation.shapeAnnotationType&&"Ellipse"!==n.annotation.shapeAnnotationType&&"Polygon"!==n.annotation.shapeAnnotationType&&"LineWidthArrowHead"!==n.annotation.shapeAnnotationType&&"Radius"!==n.annotation.shapeAnnotationType&&"FreeText"!==n.annotation.shapeAnnotationType&&"HandWrittenSignature"!==n.annotation.shapeAnnotationType&&"SignatureText"!==n.annotation.shapeAnnotationType&&"SignatureImage"!==n.annotation.shapeAnnotationType&&"Ink"!==n.annotation.shapeAnnotationType||this.modifyInCollections(n.annotation,"bounds");break;case"Addition":if(this.pdfViewer.formDesigner&&n.annotation.formFieldAnnotationType)this.pdfViewer.formDesigner.deleteFormField(n.undoElement.id,!1);else{var r=!1;if("Line"===o||"LineWidthArrowHead"===o||"Polygon"===o||"Ellipse"===o||"Rectangle"===o||"Radius"===o||"Distance"===o){""===n.annotation.measureType||t.isNullOrUndefined(n.annotation.measureType)?this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(n.annotation,"shape",null,!0):this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(n.annotation,"measure",null,!0),r=!0;var a=n.annotation,s=a.wrapper?a.wrapper:null;s&&s.bounds&&(n.annotation.bounds=s.bounds),n.duplicate=this.modifyInCollections(n.annotation,"delete")}"Stamp"!==o&&"Image"!==o||(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(n.annotation,n.annotation.shapeAnnotationType,"delete",!0),this.stampAnnotationModule.updateSessionStorage(n.annotation,null,"delete"),n.duplicate=this.modifyInCollections(n.annotation,"delete"),r=!0),"FreeText"!==o&&"HandWrittenSignature"!==o&&"SignatureImage"!==o&&"SignatureText"!==o&&"Ink"!==o||(r=!0,this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(n.annotation,n.annotation.shapeAnnotationType,"delete",!0),n.duplicate=this.modifyInCollections(n.annotation,"delete")),r||this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(n.annotation,n.annotation.shapeAnnotationType,"delete",!0),this.pdfViewer.clearSelection(t.isNullOrUndefined(this.pdfViewerBase.activeElements.activePageID)||isNaN(this.pdfViewerBase.activeElements.activePageID)?n.annotation.pageIndex:this.pdfViewerBase.activeElements.activePageID),this.pdfViewer.remove(n.annotation);this.pdfViewer.annotationCollection.filter(function(t){var i=t.annotationId!==n.annotation.annotName;if(i){var o=document.getElementById(t.annotName);o&&(1===o.parentElement.childElementCount?e.stickyNotesAnnotationModule.updateAccordionContainer(o):o.parentElement.removeChild(o))}return!i});this.pdfViewer.renderDrawing(null,n.annotation.pageIndex);var l=document.getElementById(n.annotation.annotName);if(l&&(1===l.parentElement.childElementCount?this.stickyNotesAnnotationModule.updateAccordionContainer(l):l.parentElement.removeChild(l)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var d=document.getElementById(this.pdfViewer.element.id+"_propertyToolbar");d&&d.children.length>0&&(this.pdfViewer.toolbarModule.annotationToolbarModule.toolbarCreated=!1,this.pdfViewer.toolbarModule.annotationToolbarModule.createAnnotationToolbarForMobile())}}break;case"Delete":if(this.pdfViewer.formDesigner&&n.annotation.formFieldAnnotationType)n.undoElement.bounds.x=n.undoElement.wrapper.bounds.x,n.undoElement.bounds.y=n.undoElement.wrapper.bounds.y,this.pdfViewer.formDesigner.drawFormField(n.undoElement);else{if("Line"!==o&&"LineWidthArrowHead"!==o&&"Polygon"!==o&&"Ellipse"!==o&&"Rectangle"!==o&&"Radius"!==o&&"Distance"!==o||(""===n.annotation.measureType||t.isNullOrUndefined(n.annotation.measureType)?(o="shape",this.shapeAnnotationModule.addInCollection(n.annotation.pageIndex,n.undoElement)):(o="shape_measure",this.measureAnnotationModule.addInCollection(n.annotation.pageIndex,n.undoElement))),"Stamp"===o||"Image"===o?this.stampAnnotationModule.updateDeleteItems(n.annotation.pageIndex,n.annotation):"FreeText"===o?this.freeTextAnnotationModule.addInCollection(n.annotation.pageIndex,n.undoElement):"Ink"===o?this.inkAnnotationModule.addInCollection(n.annotation.pageIndex,n.undoElement):"HandWrittenSignature"!==o&&"SignatureText"!==o&&"SignatureImage"!==o||this.pdfViewerBase.signatureModule.addInCollection(n.annotation.pageIndex,n.undoElement),!n.annotation.annotationId){var A=this.pdfViewer.add(n.annotation);("FreeText"===o||A.enableShapeLabel)&&A&&this.pdfViewer.nodePropertyChange(A,{})}S=void 0;if(n.annotation.id&&(S=this.pdfViewer.nameTable[n.annotation.id.split("_")[0]]),null!=S&&("SignatureField"===S.formFieldAnnotationType||"InitialField"===S.formFieldAnnotationType)){S.wrapper.children.push(n.annotation.wrapper.children[0]),"SignatureText"===n.annotation.shapeAnnotationType&&S.wrapper.children.push(n.annotation.wrapper.children[1]);var h=n.annotation.id.split("_")[0]+"_content",p=null;if(this.pdfViewer.formDesignerModule&&(p=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),p){for(var c=JSON.parse(p),u=0;u<c.length;u++)if(c[parseInt(u.toString(),10)].Key===h)if("SignatureText"===n.annotation.shapeAnnotationType)c[parseInt(u.toString(),10)].FormField.signatureType="Text",c[parseInt(u.toString(),10)].FormField.value=n.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.value=n.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.signatureType="Text";else if("SignatureImage"===n.annotation.shapeAnnotationType)c[parseInt(u.toString(),10)].FormField.signatureType="Image",c[parseInt(u.toString(),10)].FormField.value=n.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.value=n.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.signatureType="Image";else{c[parseInt(u.toString(),10)].FormField.signatureType="Path",this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.signatureType="Path";var f=i.processPathData(n.annotation.data),m=i.splitArrayCollection(f);c[parseInt(u.toString(),10)].FormField.value=JSON.stringify(m),this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.value=JSON.stringify(m)}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}if(this.pdfViewer.renderDrawing(null,n.annotation.pageIndex),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addAnnotationComments(n.annotation.pageIndex,o,!0),n.annotation.annotationId){var w=this.removedAnnotationCollection[this.removedAnnotationCollection.length-1],C=this.getTypeOfAnnotation(w);this.pdfViewer.annotationCollection.push(w),this.removedAnnotationCollection.splice(this.removedAnnotationCollection.length-1);var B=n.annotation.pageNumber>=0?n.annotation.pageNumber:n.annotation.pageIndex;this.pdfViewerBase.documentAnnotationCollections[parseInt(B.toString(),10)][""+C].push(this.removedDocumentAnnotationCollection[this.removedDocumentAnnotationCollection.length-1]),this.removedDocumentAnnotationCollection.splice(this.removedDocumentAnnotationCollection.length-1)}}break;case"stampOpacity":this.pdfViewer.nodePropertyChange(n.annotation,{opacity:n.undoElement.opacity}),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n.annotation,null,!0),n.annotation.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();break;case"Shape Stroke":this.pdfViewer.nodePropertyChange(n.annotation,{strokeColor:n.undoElement.strokeColor}),this.modifyInCollections(n.annotation,"stroke"),this.pdfViewer.renderDrawing();break;case"Shape Fill":this.pdfViewer.nodePropertyChange(n.annotation,{fillColor:n.undoElement.fillColor}),this.modifyInCollections(n.annotation,"fill"),this.pdfViewer.renderDrawing();break;case"Shape Opacity":this.pdfViewer.nodePropertyChange(n.annotation,{opacity:n.undoElement.opacity}),"StickyNotes"===n.annotation.shapeAnnotationType?(this.stickyNotesAnnotationModule.updateOpacityValue(n.annotation),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n.annotation,null,!0),n.annotation.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()):this.modifyInCollections(n.annotation,"opacity"),this.pdfViewer.renderDrawing();break;case"Shape Thickness":this.pdfViewer.nodePropertyChange(n.annotation,{thickness:n.undoElement.thickness}),this.modifyInCollections(n.annotation,"thickness"),this.pdfViewer.renderDrawing();break;case"Line properties change":this.pdfViewer.nodePropertyChange(n.annotation,{fillColor:n.undoElement.fillColor,borderDashArray:n.undoElement.borderDashArray,borderStyle:n.undoElement.borderStyle,strokeColor:n.undoElement.strokeColor,opacity:n.undoElement.opacity,thickness:n.undoElement.thickness,sourceDecoraterShapes:this.getArrowType(n.undoElement.lineHeadStart),taregetDecoraterShapes:this.getArrowType(n.undoElement.lineHeadEnd)}),this.updateCollectionForLineProperty(n.annotation),this.pdfViewer.renderDrawing();break;case"Text Property Added":n.annotation=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.undoAction(n.annotation,n.action,n.undoElement),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n.annotation,null,!0),n.annotation.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();break;case"Comments Property Added":case"Status Property Added":case"Comments Reply Deleted":n.annotation=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.undoAction(n.annotation,n.action,n.undoElement);break;case"dynamicText Change":this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!0,n.annotation.dynamicText=n.undoElement.dynamicText,this.pdfViewer.selectedItems.annotations[0]&&(this.pdfViewer.selectedItems.annotations[0].dynamicText=n.undoElement.dynamicText),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.undoAction(n.annotation,n.action,n.undoElement),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n.annotation,null,!0),this.modifyInCollections(n.annotation,"dynamicText"),this.pdfViewer.selectedItems.annotations[0]?this.pdfViewer.nodePropertyChange(this.pdfViewer.selectedItems.annotations[0],{}):this.pdfViewer.nodePropertyChange(n.annotation,{}),this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!1,this.pdfViewer.clearSelection(this.pdfViewerBase.activeElements.activePageID);break;case"fontColor":this.pdfViewer.nodePropertyChange(n.annotation,{fontColor:n.undoElement.fontColor}),this.modifyInCollections(n.annotation,"fontColor"),this.pdfViewer.renderDrawing();break;case"fontSize":this.isFreeTextFontsizeChanged=!0,this.pdfViewer.nodePropertyChange(n.annotation,{fontSize:n.undoElement.fontSize}),this.modifyInCollections(n.annotation,"fontSize"),this.pdfViewer.renderDrawing();break;case"fontFamily":this.pdfViewer.nodePropertyChange(n.annotation,{fontFamily:n.undoElement.fontFamily}),this.modifyInCollections(n.annotation,"fontFamily"),this.pdfViewer.renderDrawing();break;case"textAlign":this.pdfViewer.nodePropertyChange(n.annotation,{textAlign:n.undoElement.textAlign}),this.modifyInCollections(n.annotation,"textAlign"),this.pdfViewer.renderDrawing();break;case"textPropertiesChange":this.pdfViewer.nodePropertyChange(n.annotation,{font:n.undoElement.font}),this.modifyInCollections(n.annotation,"textPropertiesChange"),this.pdfViewer.renderDrawing();break;case"Rotate":this.pdfViewer.nodePropertyChange(n.annotation.annotations[0],{bounds:n.undoElement.bounds,rotateAngle:n.undoElement.rotateAngle}),this.modifyInCollections(n.annotation.annotations[0],"bounds"),this.pdfViewer.renderDrawing();break;case"FormDesigner Properties Change":n.undoElement&&n.undoElement.isMultiline!==n.redoElement.isMultiline&&this.undoRedoMultiline(n.undoElement),this.updateFormFieldPropertiesChanges(n.undoElement.formFieldAnnotationType,n.undoElement);break;case"FormField Value Change":if(n.annotation.formFieldAnnotationType)"RadioButton"===n.annotation.formFieldAnnotationType?(this.updateFormFieldValueChange(n.annotation.formFieldAnnotationType,n.undoElement,!1),this.updateFormFieldValueChange(n.annotation.formFieldAnnotationType,n.redoElement,!0)):this.updateFormFieldValueChange(n.annotation.formFieldAnnotationType,n.annotation,n.undoElement);else{document.getElementById(n.annotation.id+"_html_element").children[0].children[0].className="e-pdfviewer-signatureformfields";var S=this.pdfViewer.nameTable[n.annotation.id.split("_")[0]],y=this.pdfViewer.nameTable[n.annotation.id];"SignatureField"!==n.annotation.annotName&&"SignatureText"!==n.annotation.annotName||(n.annotation.bounds=y.wrapper.bounds),S.wrapper.children.splice(S.wrapper.children.indexOf(y.wrapper.children[0]),1),"SignatureText"===n.annotation.shapeAnnotationType&&S.wrapper.children.splice(S.wrapper.children.indexOf(y.wrapper.children[1]),1);var h=n.annotation.id.split("_")[0]+"_content",p=null;if(this.pdfViewer.formDesignerModule&&(p=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),p){for(var c=JSON.parse(p),u=0;u<c.length;u++)c[parseInt(u.toString(),10)].Key===h&&(c[parseInt(u.toString(),10)].FormField.value="",c[parseInt(u.toString(),10)].FormField.signatureType="",this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.value="",this.pdfViewerBase.formFieldCollection[parseInt(u.toString(),10)].FormField.signatureType="");this.pdfViewer.remove(n.annotation),this.pdfViewer.renderDrawing(),this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}}this.redoCollection.push(n),this.updateToolbar(),this.isUndoRedoAction=!1,this.isUndoAction=!1}},s.prototype.redo=function(){var e=this.redoCollection.pop(),n=this.pdfViewer.nameTable[e.annotation.id];if(e){var o=e.annotation.shapeAnnotationType;switch(this.isUndoRedoAction=!0,e.action){case"Text Markup Property modified":this.textMarkupAnnotationModule&&(e.annotation=this.textMarkupAnnotationModule.undoRedoPropertyChange(e.annotation,e.pageIndex,e.index,e.modifiedProperty));break;case"Text Markup Added":case"Text Markup Deleted":this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.redoTextMarkupAction(e.annotation,e.pageIndex,e.index,e.action);break;case"Drag":case"Resize":g(e.annotation)?this.pdfViewer.nodePropertyChange(n,{bounds:e.redoElement.bounds,vertexPoints:e.redoElement.vertexPoints,leaderHeight:e.redoElement.leaderHeight}):this.pdfViewer.nodePropertyChange(n,{bounds:e.redoElement.bounds}),"Distance"!==e.annotation.measureType&&"Perimeter"!==e.annotation.measureType&&"Area"!==e.annotation.measureType&&"Radius"!==e.annotation.measureType&&"Volume"!==e.annotation.measureType||(this.pdfViewer.nodePropertyChange(n,{notes:e.redoElement.notes}),this.updateCalibrateValues(n)),e.annotation.formFieldAnnotationType&&this.pdfViewer.formDesigner.updateHTMLElement(e.annotation),this.pdfViewer.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.pdfViewer.select([n.id]),"Line"!==e.annotation.shapeAnnotationType&&"Rectangle"!==e.annotation.shapeAnnotationType&&"Ellipse"!==e.annotation.shapeAnnotationType&&"Polygon"!==e.annotation.shapeAnnotationType&&"LineWidthArrowHead"!==e.annotation.shapeAnnotationType&&"Radius"!==e.annotation.shapeAnnotationType&&"FreeText"!==e.annotation.shapeAnnotationType&&"HandWrittenSignature"!==e.annotation.shapeAnnotationType&&"SignatureText"!==e.annotation.shapeAnnotationType&&"SignatureImage"!==e.annotation.shapeAnnotationType&&"Ink"!==e.annotation.shapeAnnotationType||this.modifyInCollections(n,"bounds");break;case"Addition":if(this.pdfViewer.formDesigner&&e.annotation.formFieldAnnotationType)e.redoElement.bounds.x=e.redoElement.wrapper.bounds.x,e.redoElement.bounds.y=e.redoElement.wrapper.bounds.y,this.pdfViewer.formDesigner.drawFormField(e.redoElement,null,"Addition");else{"Line"!==o&&"LineWidthArrowHead"!==o&&"Polygon"!==o&&"Ellipse"!==o&&"Rectangle"!==o&&"Radius"!==o&&"Distance"!==o||(""===e.annotation.measureType||t.isNullOrUndefined(e.annotation.measureType)?(o="shape",this.shapeAnnotationModule.addInCollection(e.annotation.pageIndex,e.duplicate)):(o="shape_measure",this.measureAnnotationModule.addInCollection(e.annotation.pageIndex,e.duplicate))),"FreeText"===o&&this.freeTextAnnotationModule.addInCollection(e.annotation.pageIndex,e.duplicate),"Stamp"!==o&&"Image"!==o||this.stampAnnotationModule.updateDeleteItems(e.annotation.pageIndex,e.redoElement),"HandWrittenSignature"!==o&&"SignatureText"!==o&&"SignatureImage"!==o||this.pdfViewerBase.signatureModule.addInCollection(e.annotation.pageIndex,e.duplicate),"Ink"===o&&this.inkAnnotationModule.addInCollection(e.annotation.pageIndex,e.duplicate);var r=this.pdfViewer.add(e.annotation);if(this.pdfViewer.select([e.annotation.id]),("FreeText"===o||r.enableShapeLabel)&&r&&this.pdfViewer.nodePropertyChange(r,{}),this.pdfViewer.renderDrawing(null,e.annotation.pageIndex),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addAnnotationComments(e.annotation.pageIndex,o,!1),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var a=document.getElementById(this.pdfViewer.element.id+"_propertyToolbar");a&&a.children.length>0&&(this.pdfViewer.toolbarModule.annotationToolbarModule.toolbarCreated=!1,this.pdfViewer.toolbarModule.annotationToolbarModule.createAnnotationToolbarForMobile())}}break;case"Delete":if(this.pdfViewer.formDesigner&&e.annotation.formFieldAnnotationType)this.pdfViewer.formDesigner.deleteFormField(e.redoElement.id,!1);else{var s=!1,l=e.annotation.shapeAnnotationType;"Line"!==o&&"LineWidthArrowHead"!==o&&"Polygon"!==o&&"Ellipse"!==o&&"Rectangle"!==o&&"Radius"!==o&&"Distance"!==o||(l=""===e.annotation.measureType||t.isNullOrUndefined(e.annotation.measureType)?"shape":"measure",this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(e.annotation,l,"delete"),this.modifyInCollections(e.annotation,"delete"),s=!0),"Stamp"!==o&&"Image"!==o||(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(e.annotation,l,"delete"),this.stampAnnotationModule.updateSessionStorage(e.annotation,null,"delete"),this.modifyInCollections(e.annotation,"delete"),s=!0),"FreeText"!==o&&"HandWrittenSignature"!==o&&"SignatureText"!==o&&"SignatureImage"!==o||(this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(e.annotation,l,"delete"),this.modifyInCollections(e.annotation,"delete")),s||this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(e.annotation,l,"delete");w=void 0;if(e.annotation.id&&(w=this.pdfViewer.nameTable[e.annotation.id.split("_")[0]]),null!=w&&("SignatureField"===w.formFieldAnnotationType||"InitialField"===w.formFieldAnnotationType)){w.wrapper.children.splice(w.wrapper.children.indexOf(e.annotation.wrapper.children[0]),1),"SignatureText"===e.annotation.shapeAnnotationType&&w.wrapper.children.splice(w.wrapper.children.indexOf(e.annotation.wrapper.children[1]),1);var d=e.annotation.id.split("_")[0]+"_content",A=null;if(this.pdfViewer.formDesignerModule&&(A=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),A){for(var h=JSON.parse(A),p=0;p<h.length;p++)h[parseInt(p.toString(),10)].Key===d&&(h[parseInt(p.toString(),10)].FormField.value="",h[parseInt(p.toString(),10)].FormField.signatureType="",this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.value="",this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.signatureType="");this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}this.pdfViewer.clearSelection(e.annotation.pageIndex),this.pdfViewer.remove(e.annotation),this.pdfViewer.renderDrawing(null,e.annotation.pageIndex);var c=e.annotation.annotName?e.annotation.annotName:e.annotation.annotationId,u=document.getElementById(c);if(this.removeCommentPanelDiv(u),e.annotation.annotationId){var f=this.updateCollectionForNonRenderedPages(e.annotation,c,e.annotation.pageIndex);this.undoCommentsElement.push(f)}}break;case"stampOpacity":this.pdfViewer.nodePropertyChange(n,{opacity:e.redoElement.opacity}),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n,null,!0);break;case"Shape Stroke":this.pdfViewer.nodePropertyChange(n,{strokeColor:e.redoElement.strokeColor}),this.modifyInCollections(n,"stroke"),this.pdfViewer.renderDrawing();break;case"Shape Fill":this.pdfViewer.nodePropertyChange(n,{fillColor:e.redoElement.fillColor}),this.modifyInCollections(n,"fill"),this.pdfViewer.renderDrawing();break;case"Shape Opacity":this.pdfViewer.nodePropertyChange(n,{opacity:e.redoElement.opacity}),"StickyNotes"===e.annotation.shapeAnnotationType?(this.stickyNotesAnnotationModule.updateOpacityValue(n),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n,null,!0)):this.modifyInCollections(n,"opacity"),this.pdfViewer.renderDrawing();break;case"Shape Thickness":this.pdfViewer.nodePropertyChange(n,{thickness:e.redoElement.thickness}),this.modifyInCollections(n,"thickness"),this.pdfViewer.renderDrawing();break;case"Line properties change":this.pdfViewer.nodePropertyChange(n,{fillColor:e.redoElement.fillColor,strokeColor:e.redoElement.strokeColor,opacity:e.redoElement.opacity,thickness:e.redoElement.thickness,sourceDecoraterShapes:this.getArrowType(e.redoElement.lineHeadStart),taregetDecoraterShapes:this.getArrowType(e.redoElement.lineHeadEnd),borderDashArray:e.redoElement.borderDashArray,borderStyle:e.redoElement.borderStyle}),this.updateCollectionForLineProperty(n),this.pdfViewer.renderDrawing();break;case"Text Property Added":e.annotation=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.redoAction(e.annotation,e.action,e.undoElement),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(e.annotation,null,!0);break;case"Comments Property Added":e.annotation=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.redoAction(e.annotation,e.action,e.undoElement);break;case"Status Property Added":case"Comments Reply Deleted":e.annotation=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.redoAction(e.annotation,e.action);break;case"dynamicText Change":this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!0,n.dynamicText=e.redoElement.dynamicText;var m=this.pdfViewer.selectedItems.annotations[0];m&&(m.dynamicText=e.redoElement.dynamicText,m.bounds.height=e.redoElement.bounds.height),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.redoAction(e.annotation,e.action,e.undoElement),this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n,null,!0),this.modifyInCollections(n,"dynamicText"),m?this.pdfViewer.nodePropertyChange(m,{}):this.pdfViewer.nodePropertyChange(n,{}),this.pdfViewer.annotation.freeTextAnnotationModule.isFreeTextValueChange=!1,this.pdfViewer.clearSelection(this.pdfViewerBase.activeElements.activePageID),this.pdfViewer.select([n.id]);break;case"fontColor":this.pdfViewer.nodePropertyChange(n,{fontColor:e.redoElement.fontColor}),this.modifyInCollections(n,"fontColor"),this.pdfViewer.renderDrawing();break;case"fontSize":this.isFreeTextFontsizeChanged=!0,this.pdfViewer.nodePropertyChange(n,{fontSize:e.redoElement.fontSize}),this.modifyInCollections(n,"fontSize"),this.pdfViewer.renderDrawing();break;case"textAlign":this.pdfViewer.nodePropertyChange(n,{textAlign:e.redoElement.textAlign}),this.modifyInCollections(n,"textAlign"),this.pdfViewer.renderDrawing();break;case"textPropertiesChange":this.pdfViewer.nodePropertyChange(n,{font:e.redoElement.font}),this.modifyInCollections(n,"textPropertiesChange"),this.pdfViewer.renderDrawing();break;case"Rotate":this.pdfViewer.nodePropertyChange(e.annotation.annotations[0],{bounds:e.redoElement.bounds,rotateAngle:e.redoElement.rotateAngle}),this.modifyInCollections(e.annotation.annotations[0],"bounds"),this.pdfViewer.renderDrawing();break;case"FormDesigner Properties Change":e.redoElement&&e.undoElement.isMultiline!==e.redoElement.isMultiline&&this.undoRedoMultiline(e.redoElement),this.updateFormFieldPropertiesChanges(e.redoElement.formFieldAnnotationType,e.redoElement);break;case"FormField Value Change":if(e.annotation.formFieldAnnotationType)"RadioButton"===e.annotation.formFieldAnnotationType?(this.updateFormFieldValueChange(e.annotation.formFieldAnnotationType,e.undoElement,!0),this.updateFormFieldValueChange(e.annotation.formFieldAnnotationType,e.redoElement,!1)):this.updateFormFieldValueChange(e.annotation.formFieldAnnotationType,e.annotation,e.redoElement);else{document.getElementById(e.annotation.id+"_html_element").children[0].children[0].className="e-pdfviewer-signatureformfields-signature";var w=this.pdfViewer.nameTable[e.annotation.id.split("_")[0]],C=this.pdfViewer.nameTable[e.annotation.id];w.wrapper.children.push(C.wrapper.children[0]),"SignatureText"===e.annotation.shapeAnnotationType&&w.wrapper.children.push(C.wrapper.children[1]);var d=e.annotation.id.split("_")[0]+"_content",A=null;if(this.pdfViewer.formDesignerModule&&(A=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),A){for(var h=JSON.parse(A),p=0;p<h.length;p++)if(h[parseInt(p.toString(),10)].Key===d)if("SignatureText"===e.annotation.shapeAnnotationType)h[parseInt(p.toString(),10)].FormField.signatureType="Text",h[parseInt(p.toString(),10)].FormField.value=e.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.value=e.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.signatureType="Text";else if("SignatureImage"===e.annotation.shapeAnnotationType)h[parseInt(p.toString(),10)].FormField.signatureType="Image",h[parseInt(p.toString(),10)].FormField.value=e.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.value=e.annotation.data,this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.signatureType="Image";else{h[parseInt(p.toString(),10)].FormField.signatureType="Path",this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.signatureType="Path";var B=i.processPathData(e.annotation.data),S=i.splitArrayCollection(B);h[parseInt(p.toString(),10)].FormField.value=JSON.stringify(S),this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].FormField.value=JSON.stringify(S)}this.pdfViewer.add(e.annotation);var y=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",e.pageIndex);this.pdfViewer.renderDrawing(y,e.pageIndex),this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}}e.redoElement&&void 0!==e.redoElement.modifiedDate&&(e.annotation.modifiedDate=e.redoElement.modifiedDate),this.actionCollection.push(e),this.updateToolbar(),this.isUndoRedoAction=!1}},s.prototype.undoRedoMultiline=function(e){e.isMultiline&&"Textbox"===e.formFieldAnnotationType?this.pdfViewer.formDesignerModule.renderMultilineText(e,!0):"Textbox"===e.formFieldAnnotationType&&this.pdfViewer.formDesignerModule.renderTextbox(e,!0)},s.prototype.updateFormFieldValueChange=function(e,t,i){if(t){var n=this.pdfViewer.formDesigner.getFormField(t.id.split("_")[0]),o=null;if(this.pdfViewer.formDesignerModule&&(o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),o){var r=JSON.parse(o),a=this.pdfViewer.formDesigner.getFormFiledIndex(t.id.split("_")[0]);switch(e){case"Textbox":case"PasswordField":case"RadioButton":case"DropdownList":case"ListBox":var s=document.getElementById(t.id.split("_")[0]+"_content_html_element").firstElementChild.firstElementChild;if("Textbox"===e||"PasswordField"===e)n.value=i,this.pdfViewer.formDesigner.updateValuePropertyChange(n,s,!0,a,r);else if("RadioButton"===e)n.isSelected=i,this.pdfViewer.formDesigner.updateIsSelectedPropertyChange(n,s.firstElementChild,!0,a,r);else if("DropdownList"===e||"ListBox"===e)if(n.selectedIndex=i,r[parseInt(a.toString(),10)].FormField.selectedIndex=i,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.selectedIndex=i,this.pdfViewer.nameTable[r[parseInt(a.toString(),10)].Key.split("_")[0]].selectedIndex=i,"ListBox"===e)for(var l=0;l<s.options.length;l++)s.options[parseInt(l.toString(),10)].selected=!!i.includes(l);else s.selectedIndex=i;break;case"Checkbox":var d=document.getElementById(t.id.split("_")[0]+"_content_html_element").firstElementChild.firstElementChild.lastElementChild;n.isChecked=i,this.pdfViewer.formDesigner.updateIsCheckedPropertyChange(n,d,!0,a,r)}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}},s.prototype.updateFormFieldPropertiesChanges=function(e,t){switch(e){case"Textbox":case"PasswordField":this.pdfViewer.formDesigner.updateTextboxFormDesignerProperties(t,!0);break;case"Checkbox":this.pdfViewer.formDesigner.updateCheckboxFormDesignerProperties(t,!0,!0);break;case"RadioButton":this.pdfViewer.formDesigner.updateRadioButtonDesignerProperties(t,!0,!0);break;case"DropdownList":this.pdfViewer.formDesigner.updateDropdownFormDesignerProperties(t,!0);break;case"ListBox":this.pdfViewer.formDesigner.updateListBoxFormDesignerProperties(t,!0);break;case"SignatureField":case"InitialField":this.pdfViewer.formDesigner.updateSignatureTextboxProperties(t,!0)}},s.prototype.updateCollectionForLineProperty=function(e){this.modifyInCollections(e,"fill"),this.modifyInCollections(e,"stroke"),this.modifyInCollections(e,"opacity"),this.modifyInCollections(e,"thickness"),this.modifyInCollections(e,"dashArray"),this.modifyInCollections(e,"startArrow"),this.modifyInCollections(e,"endArrow")},s.prototype.updateToolbar=function(e){this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateUndoRedoButtons(),this.actionCollection&&0===this.actionCollection.length?this.pdfViewerBase.updateDocumentEditedProperty(!1):this.pdfViewerBase.updateDocumentEditedProperty(!0),e&&this.pdfViewerBase.updateDocumentEditedProperty(!0)},s.prototype.createNote=function(){this.popupNote=t.createElement("div",{id:this.pdfViewer.element.id+"_annotation_note",className:"e-pv-annotation-note",styles:"display:none"}),this.popupNoteAuthor=t.createElement("div",{id:this.pdfViewer.element.id+"_annotation_note_author",className:"e-pv-annotation-note-author"}),this.popupNote.appendChild(this.popupNoteAuthor),this.popupNoteContent=t.createElement("div",{id:this.pdfViewer.element.id+"_annotation_note_content",className:"e-pv-annotation-note-content"}),this.popupNote.appendChild(this.popupNoteContent),this.pdfViewerBase.mainContainer&&this.pdfViewerBase.mainContainer.appendChild(this.popupNote)},s.prototype.showPopupNote=function(e,t,i,n,o){var r=this.pdfViewerBase.mainContainer.getBoundingClientRect(),a=this.popupNote.getBoundingClientRect();i&&(this.popupNoteAuthor.textContent=i),this.popupNoteContent.textContent=n,"Highlight"===o?this.popupNote.style.backgroundColor="rgb(237, 232, 177)":"Underline"===o?this.popupNote.style.backgroundColor="rgb(187, 241, 191)":"Strikethrough"===o?this.popupNote.style.backgroundColor="rgb(242, 188, 207)":"Squiggly"===o&&(this.popupNote.style.backgroundColor="rgb(242, 188, 207)"),this.popupNote.style.display="block";var s=e.pageY-r.top+5,l=e.pageX-r.left+5;l+a.width>r.width&&(l-=a.width),s+a.height>r.height&&(s-=a.height),this.popupNote.style.top=s+"px",this.popupNote.style.left=l+"px"},s.prototype.hidePopupNote=function(){this.popupNote&&(this.popupNote.style.display="none")},s.prototype.createTextMarkupPopup=function(){var e=this,i=this.pdfViewer.element.id;this.popupElement=t.createElement("div",{id:i+"_popup_annotation_note",className:"e-pv-annotation-popup-menu",styles:"display:none"});var n=t.createElement("div",{id:i+"_popup_header",className:"e-pv-annotation-popup-header"});this.authorPopupElement=t.createElement("div",{id:i+"_popup_author",className:"e-pv-annotation-popup-author"}),n.appendChild(this.authorPopupElement);var o=t.createElement("span",{id:i+"_popup_close",className:"e-pv-annotation-popup-close e-pv-icon"});n.appendChild(o),this.popupElement.appendChild(n),this.modifiedDateElement=t.createElement("div",{id:i+"_popup_modified_time",className:"e-pv-annotation-modified-time"}),this.popupElement.appendChild(this.modifiedDateElement);var r=t.createElement("div",{id:i+"_popup_content_container",className:"e-pv-annotation-popup-note-container"});this.noteContentElement=t.createElement("div",{id:i+"_popup_content",className:"e-pv-annotation-popup-content"}),this.noteContentElement.contentEditable="true",r.appendChild(this.noteContentElement),this.popupElement.appendChild(r),this.pdfViewerBase.viewerContainer.appendChild(this.popupElement),o.addEventListener("click",this.saveClosePopupMenu.bind(this)),o.addEventListener("touchend",this.saveClosePopupMenu.bind(this)),this.popupElement.addEventListener("mousedown",this.onPopupElementMoveStart.bind(this)),this.popupElement.addEventListener("mousemove",this.onPopupElementMove.bind(this)),window.addEventListener("mouseup",this.onPopupElementMoveEnd.bind(this)),this.popupElement.addEventListener("touchstart",this.onPopupElementMoveStart.bind(this)),this.popupElement.addEventListener("touchmove",this.onPopupElementMove.bind(this)),window.addEventListener("touchend",this.onPopupElementMoveEnd.bind(this)),this.noteContentElement.addEventListener("mousedown",function(){e.noteContentElement.focus()})},s.prototype.onPopupElementMoveStart=function(e){if("touchstart"===e.type&&(e=e.changedTouches[0]),e.target.id!==this.noteContentElement.id||!e.target.contains(this.noteContentElement.childNodes[0])){this.isPopupMenuMoved=!0;var t=this.popupElement.getBoundingClientRect();this.clientX=e.clientX-t.left,this.clientY=e.clientY-t.top+this.pdfViewerBase.pageSize[this.currentAnnotPageNumber].top*this.pdfViewerBase.getZoomFactor()}},s.prototype.onPopupElementMove=function(e){if("touchmove"===e.type&&(e=e.changedTouches[0]),this.isPopupMenuMoved&&(e.target.id!==this.noteContentElement.id||!e.target.contains(this.noteContentElement.childNodes[0]))){var t=e.clientX-this.clientX+parseFloat(this.popupElement.style.left),i=e.clientY-this.clientY+parseFloat(this.popupElement.style.top);this.clientX=e.clientX,this.clientY=e.clientY;var n=this.popupElement.getBoundingClientRect(),o=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+this.currentAnnotPageNumber);t>parseFloat(o.style.left)&&t+n.width<parseFloat(o.style.left)+parseFloat(o.style.width)?this.popupElement.style.left=t+"px":this.popupElement.style.left=parseFloat(this.popupElement.style.left)+"px",i>parseFloat(o.style.top)&&i+n.height<parseFloat(o.style.top)+parseFloat(o.style.height)?this.popupElement.style.top=i+"px":this.popupElement.style.top=parseFloat(this.popupElement.style.top)+"px"}},s.prototype.onPopupElementMoveEnd=function(){this.isPopupMenuMoved=!1},s.prototype.saveClosePopupMenu=function(){this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.saveNoteContent(this.currentAnnotPageNumber,this.noteContentElement.innerText),this.closePopupMenu()},s.prototype.closePopupMenu=function(){this.popupElement&&(this.popupElement.parentElement.removeChild(this.popupElement),this.popupElement=null,this.isPopupNoteVisible=!1)},s.prototype.showAnnotationPopup=function(e){if(this.textMarkupAnnotationModule&&(this.currentAnnotPageNumber=this.getEventPageNumber(e),this.textMarkupAnnotationModule&&(e.target!==this.noteContentElement||e.target.contains(this.noteContentElement.childNodes[0]))&&(this.hidePopupNote(),!this.popupElement))){this.createTextMarkupPopup(),this.popupElement.style.display="block",this.authorPopupElement.textContent=this.textMarkupAnnotationModule.currentTextMarkupAnnotation.author,this.modifiedDateElement.textContent=this.getProperDate(this.textMarkupAnnotationModule.currentTextMarkupAnnotation.modifiedDate),this.noteContentElement.textContent=this.textMarkupAnnotationModule.currentTextMarkupAnnotation.note;var t=this.popupElement.getBoundingClientRect(),i=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+this.currentAnnotPageNumber),n=i.getBoundingClientRect(),o=e.clientY-n.top+parseFloat(i.style.top),r=e.clientX;r+t.width>parseFloat(i.style.left)+parseFloat(i.style.width)?this.popupElement.style.left=r-t.width+"px":this.popupElement.style.left=r+"px",o+t.height>parseFloat(i.style.top)+parseFloat(i.style.height)?this.popupElement.style.top=o-t.height+"px":this.popupElement.style.top=o+"px",this.isPopupNoteVisible=!0}},s.prototype.modifyOpacity=function(e,t){var i=this.pdfViewer.selectedItems.annotations[0],n=B(i),o=B(i),r=1;r=t?e/100:e.value/100,i.opacity!==r&&(o.opacity=r,this.pdfViewer.nodePropertyChange(i,{opacity:r}),"StickyNotes"===i.shapeAnnotationType?this.stickyNotesAnnotationModule.updateOpacityValue(i):this.modifyInCollections(i,"opacity"),"HandWrittenSignature"===i.shapeAnnotationType||"SignatureImage"===i.shapeAnnotationType||"SignatureText"===i.shapeAnnotationType?this.pdfViewer.fireSignaturePropertiesChange(i.pageIndex,i.signatureName,i.shapeAnnotationType,!1,!0,!1,n.opacity,o.opacity):this.triggerAnnotationPropChange(i,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"Shape Opacity","",n,o),this.pdfViewer.renderDrawing())},s.prototype.modifyFontColor=function(e){var t=this.pdfViewer.selectedItems.annotations[0],i=B(t),n=B(t);n.fontColor=e,this.pdfViewer.nodePropertyChange(t,{fontColor:e}),this.modifyInCollections(t,"fontColor"),this.triggerAnnotationPropChange(t,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"fontColor","",i,n),this.pdfViewer.renderDrawing()},s.prototype.modifyFontFamily=function(e){var t=this.pdfViewer.selectedItems.annotations[0],i=B(t),n=B(t);n.fontFamily=e,this.pdfViewer.freeTextSettings.enableAutoFit?this.updateFontFamilyRenderSize(t,e):this.pdfViewer.nodePropertyChange(t,{fontFamily:e}),this.modifyInCollections(t,"fontFamily"),this.triggerAnnotationPropChange(t,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"fontFamily","",i,n),this.pdfViewer.renderDrawing()},s.prototype.modifyFontSize=function(e,t){var i=this.pdfViewer.selectedItems.annotations[0],n=B(i),o=B(i);o.fontSize=e;var r=this.freeTextAnnotationModule,a=i.bounds.x,s=i.bounds.y;if(i.fontSize=e,r&&!r.isNewFreeTextAnnot&&""!==i.dynamicText){if(r.addInuptElemet({x:a,y:s},i),i){i.previousFontSize!==e&&(r.inputBoxElement.style.height="auto",t||this.isFreeTextFontsizeChanged||r.inputBoxElement.scrollHeight+5>i.bounds.height?(this.isFreeTextFontsizeChanged=!1,r.inputBoxElement.style.height=r.inputBoxElement.scrollHeight+5+"px"):r.inputBoxElement.style.height=i.bounds.height+"px");var l=parseFloat(r.inputBoxElement.style.height),d=parseFloat(r.inputBoxElement.style.width),A=this.pdfViewerBase.getZoomFactor();d/=A;var h=(l/=A)-i.bounds.height,p=void 0;h>0?p=(p=i.wrapper.offsetY+h/2)>0?p:void 0:(h=Math.abs(h),p=(p=i.wrapper.offsetY-h/2)>0?p:void 0);var c=d-i.bounds.width,g=void 0;c>0?g=(g=i.wrapper.offsetX+c/2)>0?g:void 0:(c=Math.abs(c),g=i.wrapper.offsetX-c/2),i.bounds.width=d,i.bounds.height=l,this.pdfViewer.nodePropertyChange(i,{fontSize:e,bounds:{width:i.bounds.width,height:i.bounds.height,y:p,x:g}}),this.pdfViewer.renderSelector(i.pageIndex,this.pdfViewer.annotationSelectorSettings),i.previousFontSize=e}this.modifyInCollections(i,"fontSize"),this.modifyInCollections(i,"bounds"),this.triggerAnnotationPropChange(i,!1,!1,!1,!0),t&&this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"fontSize","",n,o),r.inputBoxElement.blur()}var u=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i.pageIndex);this.pdfViewer.drawing.refreshCanvasDiagramLayer(u,i.pageIndex)},s.prototype.handleFontSizeUpdate=function(e){1===this.pdfViewer.selectedItems.annotations.length&&e?this.isUndoRedoAction?this.modifyFontSize(e,!1):this.modifyFontSize(e,!0):this.freeTextAnnotationModule&&(this.pdfViewer.freeTextSettings.fontSize=e,this.freeTextAnnotationModule.updateTextProperties())},s.prototype.modifyTextAlignment=function(e){var t=this.pdfViewer.selectedItems.annotations[0];this.pdfViewer.nodePropertyChange(t,{textAlign:e}),this.modifyInCollections(t,"textAlign"),this.triggerAnnotationPropChange(t,!1,!1,!1,!0),this.pdfViewer.renderDrawing()},s.prototype.modifyTextProperties=function(e,t){var i=this.pdfViewer.selectedItems.annotations[0],n=B(i),o=B(i);"bold"===t?o.font.isBold=e.isBold:"italic"===t?o.font.isItalic=e.isItalic:"underline"===t?(o.font.isUnderline=e.isUnderline,o.font.isUnderline&&o.font.isStrikeout&&(o.font.isStrikeout=!1)):"strikeout"===t&&(o.font.isStrikeout=e.isStrikeout,o.font.isUnderline&&o.font.isStrikeout&&(o.font.isUnderline=!1)),this.pdfViewer.nodePropertyChange(i,{font:e}),this.modifyInCollections(i,"textPropertiesChange"),this.triggerAnnotationPropChange(i,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"textPropertiesChange","",n,o),this.pdfViewer.renderDrawing()},s.prototype.modifyThickness=function(e){var t=this.pdfViewer.selectedItems.annotations[0];if(t.thickness!==e){var i=B(t),n=B(t);n.thickness=e,this.pdfViewer.nodePropertyChange(t,{thickness:e}),this.modifyInCollections(t,"thickness"),"HandWrittenSignature"===t.shapeAnnotationType||"SignatureText"===t.shapeAnnotationType||"SignatureImage"===t.shapeAnnotationType?this.pdfViewer.fireSignaturePropertiesChange(t.pageIndex,t.signatureName,t.shapeAnnotationType,!1,!1,!0,i.thickness,n.thickness):this.triggerAnnotationPropChange(t,!1,!1,!0,!1),this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"Shape Thickness","",i,n),this.pdfViewer.renderDrawing()}},s.prototype.modifyStrokeColor=function(e){var t=this.pdfViewer.selectedItems.annotations[0],i=B(t),n=B(t);n.strokeColor=e,this.pdfViewer.nodePropertyChange(t,{strokeColor:e}),this.modifyInCollections(t,"stroke"),"HandWrittenSignature"===t.shapeAnnotationType||"SignatureText"===t.shapeAnnotationType||"SignatureImage"===t.shapeAnnotationType?this.pdfViewer.fireSignaturePropertiesChange(t.pageIndex,t.signatureName,t.shapeAnnotationType,!0,!1,!1,i.strokeColor,n.strokeColor):this.triggerAnnotationPropChange(t,!1,!0,!1,!1),this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"Shape Stroke","",i,n),this.pdfViewer.renderDrawing()},s.prototype.modifyFillColor=function(e){var t=this.pdfViewer.selectedItems.annotations[0],i=B(t),n=B(t);n.fillColor=e,this.pdfViewer.nodePropertyChange(this.pdfViewer.selectedItems.annotations[0],{fillColor:e}),this.modifyInCollections(t,"fill"),this.triggerAnnotationPropChange(t,!0,!1,!1,!1),this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"Shape Fill","",i,n),this.pdfViewer.renderDrawing()},s.prototype.modifyDynamicTextValue=function(e,i){var n=null;if(n=this.pdfViewer.annotations.filter(function(e){return e.annotName===i})[0]){var o=B(n),r=B(n);n.dynamicText=e,r.dynamicText=e,""===o.dynamicText&&(o.dynamicText=this.freeTextAnnotationModule.previousText),this.pdfViewer.nodePropertyChange(n,{dynamicText:e}),this.pdfViewer.renderSelector(n.pageIndex,n.annotationSelectorSettings),o.dynamicText!==r.dynamicText&&(this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"dynamicText Change","",o,r),this.modifyInCollections(n,"dynamicText")),t.isNullOrUndefined(this.freeTextAnnotationModule)||this.freeTextAnnotationModule.previousText===n.dynamicText||this.triggerAnnotationPropChange(n,!1,!1,!1,!1,!1,!1,!1,!0,this.freeTextAnnotationModule.previousText,n.dynamicText),this.pdfViewer.renderDrawing()}},s.prototype.modifyInCollections=function(e,i){var n;return""===e.measureType||t.isNullOrUndefined(e.measureType)?n="FreeText"===e.shapeAnnotationType?this.freeTextAnnotationModule.modifyInCollection(i,e.pageIndex,e):"HandWrittenSignature"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType?this.pdfViewerBase.signatureModule.modifySignatureCollection(i,e.pageIndex,e):"Stamp"===e.shapeAnnotationType||"Image"===e.shapeAnnotationType?this.stampAnnotationModule.modifyInCollection(i,e.pageIndex,e,null):"Ink"===e.shapeAnnotationType?this.inkAnnotationModule.modifySignatureInkCollection(i,e.pageIndex,e):this.shapeAnnotationModule.modifyInCollection(i,e.pageIndex,e,null):"Distance"!==e.measureType&&"Perimeter"!==e.measureType&&"Radius"!==e.measureType&&"Area"!==e.measureType&&"Volume"!==e.measureType||(n=this.measureAnnotationModule.modifyInCollection(i,e.pageIndex,e)),this.isUndoRedoAction?(this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(e,null,!0),this.isUndoAction&&(e.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime())):"bounds"!==i&&this.stickyNotesAnnotationModule.updateAnnotationModifiedDate(e),this.isUndoRedoAction&&"delete"===i&&this.updateAnnotationCollection(e),n},s.prototype.createPropertiesWindow=function(){var e=this;if(t.isBlazor()){var i=100*this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.opacity,n=this.getArrowString(this.pdfViewer.selectedItems.annotations[0].sourceDecoraterShapes),r=this.getArrowString(this.pdfViewer.selectedItems.annotations[0].taregetDecoraterShapes),a=void 0;parseInt(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray,10)>=3?a="Dashed":"2"===this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray?a="Dotted":"0"===this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray&&(a="Solid"),this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenPropertiesDialog",i,n,r,a)}else{var s=this.pdfViewer.element.id,l=t.createElement("div",{id:s+"_properties_window",className:"e-pv-properties-window"}),d=this.createAppearanceTab();this.pdfViewerBase.pageContainer.appendChild(l),this.propertiesDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:this.pdfViewer.localeObj.getConstant("Line Properties"),target:this.pdfViewer.element,content:d,close:function(){e.destroyPropertiesWindow()}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.propertiesDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.onOkClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.onCancelClicked.bind(this)}]:this.propertiesDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.onCancelClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.onOkClicked.bind(this)}],this.pdfViewer.enableRtl&&(this.propertiesDialog.enableRtl=!0),this.propertiesDialog.appendTo(l),this.pdfViewer.selectedItems.annotations[0]&&"Line"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(document.getElementById(this.pdfViewer.element.id+"_properties_fill_color").disabled=!0),this.startArrowDropDown.content=this.createContent(this.getArrowString(this.pdfViewer.selectedItems.annotations[0].sourceDecoraterShapes)).outerHTML,this.endArrowDropDown.content=this.createContent(this.getArrowString(this.pdfViewer.selectedItems.annotations[0].taregetDecoraterShapes)).outerHTML,this.thicknessBox.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeWidth,this.fillColorPicker.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.fill,this.refreshColorPicker(this.fillColorPicker),this.strokeColorPicker.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor,this.refreshColorPicker(this.strokeColorPicker),this.updateColorInIcon(this.fillDropDown.element,this.fillColorPicker.value),this.updateColorInIcon(this.strokeDropDown.element,this.strokeColorPicker.value),this.opacitySlider.value=100*this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.opacity,this.updateOpacityIndicator(),parseInt(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray,10)>=3?this.lineStyleDropDown.content=this.createDropDownContent("dashed").outerHTML:"2"===this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray?this.lineStyleDropDown.content=this.createDropDownContent("dotted").outerHTML:"0"===this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray&&(this.lineStyleDropDown.content=this.createDropDownContent("solid").outerHTML),this.selectedLineStyle=this.pdfViewer.selectedItems.annotations[0].borderStyle,this.selectedLineDashArray=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeDashArray,"Distance"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(this.leaderLengthBox.value=this.pdfViewer.selectedItems.annotations[0].leaderHeight)}},s.prototype.destroyPropertiesWindow=function(){this.strokeColorPicker&&(this.strokeColorPicker.destroy(),this.strokeColorPicker=null),this.fillColorPicker&&(this.fillColorPicker.destroy(),this.fillColorPicker=null),this.endArrowDropDown&&(this.endArrowDropDown.destroy(),this.endArrowDropDown=null),this.startArrowDropDown&&(this.startArrowDropDown.destroy(),this.startArrowDropDown=null),this.opacitySlider&&(this.opacitySlider.destroy(),this.opacitySlider=null),this.thicknessBox&&(this.thicknessBox.destroy(),this.thicknessBox=null),this.lineStyleDropDown&&(this.lineStyleDropDown.destroy(),this.lineStyleDropDown=null),this.leaderLengthBox&&(this.leaderLengthBox.destroy(),this.leaderLengthBox=null),this.propertiesDialog&&(this.propertiesDialog.destroy(),this.propertiesDialog=null);var e=this.pdfViewerBase.getElement("_properties_window");e&&e.parentElement.removeChild(e)},s.prototype.refreshColorPicker=function(e){e.setProperties({value:e.value},!0),e.refresh()},s.prototype.createAppearanceTab=function(){var e=this,i=this.pdfViewer.element.id,o=[{text:this.pdfViewer.localeObj.getConstant("None")},{text:this.pdfViewer.localeObj.getConstant("Open Arrow")},{text:this.pdfViewer.localeObj.getConstant("Closed Arrow")},{text:this.pdfViewer.localeObj.getConstant("Round Arrow")},{text:this.pdfViewer.localeObj.getConstant("Square Arrow")},{text:this.pdfViewer.localeObj.getConstant("Diamond Arrow")}],a=t.createElement("div",{id:i+"_properties_appearance"}),s=t.createElement("div",{className:"e-pv-properties-line-style-prop"});a.appendChild(s);var l=this.createInputElement(this.pdfViewer.localeObj.getConstant("Start Arrow"),s,"text","button",!0,"e-pv-properties-line-start",i+"_properties_line_start");this.startArrowDropDown=new r.DropDownButton({items:o,cssClass:"e-pv-properties-line-start",select:this.onStartArrowHeadStyleSelect.bind(this)},l);var d=this.createInputElement(this.pdfViewer.localeObj.getConstant("End Arrow"),s,"text","button",!0,"e-pv-properties-line-end",i+"_properties_line_end"),A=t.createElement("div",{className:"e-pv-properties-border-style"});a.appendChild(A),this.endArrowDropDown=new r.DropDownButton({items:o,cssClass:"e-pv-properties-line-end",select:this.onEndArrowHeadStyleSelect.bind(this)},d);var h=this.createInputElement(this.pdfViewer.localeObj.getConstant("Line Style"),A,"text","button",!0,"e-pv-properties-line-style",i+"_properties_line_style"),p=this.createStyleList();this.lineStyleDropDown=new r.DropDownButton({cssClass:"e-pv-properties-line-style",target:p},h);var c=this.createInputElement(this.pdfViewer.localeObj.getConstant("Line Thickness"),A,"text","input",!0,"e-pv-properties-line-thickness",i+"_properties_thickness");this.thicknessBox=new n.NumericTextBox({value:0,format:"## pt",cssClass:"e-pv-properties-line-thickness",min:0,max:12},c);var g=t.createElement("div",{className:"e-pv-properties-color-style"});a.appendChild(g);var u=this.createInputElement(this.pdfViewer.localeObj.getConstant("Fill Color"),g,"color","button",!0,"e-pv-properties-line-fill-color",i+"_properties_fill_color");this.fillColorPicker=this.createColorPicker(i+"_properties_fill_color",!0),this.fillColorPicker.change=function(t){var i=""===t.currentValue.hex?"#ffffff00":t.currentValue.hex;e.fillDropDown.toggle(),e.updateColorInIcon(e.fillDropDown.element,i)},this.fillDropDown=this.createDropDownButton(u,"e-pv-properties-fill-color-icon",this.fillColorPicker.element.parentElement),this.fillDropDown.beforeOpen=this.onFillDropDownBeforeOpen.bind(this),this.fillDropDown.open=function(){e.fillColorPicker.refresh()};var f=this.createInputElement(this.pdfViewer.localeObj.getConstant("Line Color"),g,"color","button",!0,"e-pv-properties-line-stroke-color",i+"_properties_stroke_color");this.strokeColorPicker=this.createColorPicker(i+"_properties_stroke_color",!1),this.strokeColorPicker.change=function(t){var i=""===t.currentValue.hex?"#ffffff00":t.currentValue.hex;e.strokeDropDown.toggle(),e.updateColorInIcon(e.strokeDropDown.element,i)},this.strokeDropDown=this.createDropDownButton(f,"e-pv-properties-stroke-color-icon",this.strokeColorPicker.element.parentElement),this.strokeDropDown.beforeOpen=this.onStrokeDropDownBeforeOpen.bind(this),this.strokeDropDown.open=function(){e.strokeColorPicker.refresh()};var m=t.createElement("div",{className:"e-pv-properties-opacity-style"});a.appendChild(m);var w=this.createInputElement(this.pdfViewer.localeObj.getConstant("Opacity"),m,"","div",!0,"e-pv-properties-line-opacity",i+"_properties_opacity");if(this.opacitySlider=new n.Slider({type:"MinRange",max:100,min:0,cssClass:"e-pv-properties-line-opacity",change:function(){e.updateOpacityIndicator()}},w),"Distance"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType){var C=this.createInputElement(this.pdfViewer.localeObj.getConstant("Leader Length"),m,"text","input",!0,"e-pv-properties-line-leader-length",i+"_properties_leader_length");this.leaderLengthBox=new n.NumericTextBox({value:0,format:"## pt",cssClass:"e-pv-properties-line-leader-length",min:0,max:100},C)}return a},s.prototype.createContent=function(e){var i=t.createElement("div",{className:"e-pv-properties-line-style-content"});return i.textContent=e,i},s.prototype.onStrokeDropDownBeforeOpen=function(){1===this.pdfViewer.selectedItems.annotations.length&&(this.strokeColorPicker.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor),this.strokeColorPicker.refresh()},s.prototype.onFillDropDownBeforeOpen=function(){1===this.pdfViewer.selectedItems.annotations.length&&(this.fillColorPicker.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor),this.fillColorPicker.refresh()},s.prototype.createStyleList=function(){var e=this,i=t.createElement("ul");document.body.appendChild(i);var n=this.createListForStyle("solid");n.addEventListener("click",function(){e.setThickness("0","solid")}),i.appendChild(n);var o=this.createListForStyle("dotted");o.addEventListener("click",function(){e.setThickness("2","dotted")}),i.appendChild(o);var r=this.createListForStyle("dashed");return r.addEventListener("click",function(){e.setThickness("3","dashed")}),i.appendChild(r),i},s.prototype.createColorPicker=function(e,i){var o=t.createElement("input",{id:e+"_target"});document.body.appendChild(o);var r=new n.ColorPicker({inline:!0,mode:"Palette",enableOpacity:!1,value:"#000000",showButtons:!1,modeSwitcher:!1,noColor:i});return this.pdfViewer.enableRtl&&(r.enableRtl=!0),r.appendTo(o),r},s.prototype.createDropDownButton=function(e,t,i){var n=new r.DropDownButton({iconCss:t+" e-pv-icon",target:i});return this.pdfViewer.enableRtl&&(n.enableRtl=!0),n.appendTo(e),n},s.prototype.updateColorInIcon=function(e,t){e.childNodes[0].style.borderBottomColor=t},s.prototype.onFillColorChange=function(e){var t=document.querySelector("#"+this.pdfViewer.element.id+"_properties_fill_color_button");"transparent"!==e&&(t.children[0].style.borderBottomColor=e)},s.prototype.onStrokeColorChange=function(e){var t=document.querySelector("#"+this.pdfViewer.element.id+"_properties_stroke_color_button");"transparent"!==e&&(t.children[0].style.borderBottomColor=e)},s.prototype.setThickness=function(e,t,i){i||(this.lineStyleDropDown.content=this.createDropDownContent(t).outerHTML),this.selectedLineDashArray=e,"0"===e?this.selectedLineStyle="Solid":"2"!==e&&"3"!==e||(this.selectedLineStyle="Dashed")},s.prototype.createDropDownContent=function(e){var i=t.createElement("div",{className:"e-pv-line-styles-content-container"}),n=t.createElement("span",{className:"e-pv-line-styles-content",styles:"border-bottom-style:"+e});return i.appendChild(n),i},s.prototype.createListForStyle=function(e){var i=t.createElement("li",{className:"e-menu-item"}),n=t.createElement("div",{className:"e-pv-line-styles-container"}),o=t.createElement("span",{className:"e-pv-line-styles-item",styles:"border-bottom-style:"+e});return n.appendChild(o),i.appendChild(n),i},s.prototype.onStartArrowHeadStyleSelect=function(e){this.startArrowDropDown.content=this.createContent(e.item.text).outerHTML},s.prototype.onEndArrowHeadStyleSelect=function(e){this.endArrowDropDown.content=this.createContent(e.item.text).outerHTML},s.prototype.createInputElement=function(e,i,n,o,r,a,s){var l=t.createElement("div",{id:s+"_container",className:a+"-container"});if(r){var d=t.createElement("div",{id:s+"_label",className:a+"-label"});d.textContent=e,l.appendChild(d)}this.pdfViewer.localeObj.getConstant("Opacity")===e&&(this.opacityIndicator=t.createElement("span",{className:"e-pv-properties-opacity-indicator"}),l.appendChild(this.opacityIndicator));var A=t.createElement(o,{id:s});return"input"===o&&(A.type=n),l.appendChild(A),i.appendChild(l),A},s.prototype.updateOpacityIndicator=function(){this.opacityIndicator.textContent=this.opacitySlider.value+"%"},s.prototype.onOkClicked=function(e){var i,n,o,r,a,s;if(t.isBlazor()){var l=document.querySelector("#"+this.pdfViewer.element.id+"_properties_line_start"),d=document.querySelector("#"+this.pdfViewer.element.id+"_properties_line_end"),A=document.querySelector("#"+this.pdfViewer.element.id+"_line_thickness"),h=document.querySelector("#"+this.pdfViewer.element.id+"_properties_style"),p=document.querySelector("#"+this.pdfViewer.element.id+"_properties_fill_color_button"),c=document.querySelector("#"+this.pdfViewer.element.id+"_properties_stroke_color_button"),g=document.querySelector("#"+this.pdfViewer.element.id+"_properties_opacity");i=this.getArrowTypeFromDropDown(l.value,!0),n=this.getArrowTypeFromDropDown(d.value,!0),o=parseInt(A.value,10),r=""===(r=this.getValue(c.children[0].style.borderBottomColor,"hex"))?"#ffffff00":r,a=""===(a=this.getValue(p.children[0].style.borderBottomColor,"hex"))?"#ffffff00":a,s=e?e/100:g.value/100,h.value&&("Solid"===h.value?this.setThickness("0","solid",!0):"Dotted"===h.value?this.setThickness("2","dotted",!0):"Dashed"===h.value&&this.setThickness("3","dashed",!0))}else i=this.getArrowTypeFromDropDown(this.startArrowDropDown.content),n=this.getArrowTypeFromDropDown(this.endArrowDropDown.content),o=this.thicknessBox.value,r=""===(r=this.strokeColorPicker.getValue(this.strokeColorPicker.value,"hex"))?"#ffffff00":r,a=""===(a=this.fillColorPicker.getValue(this.fillColorPicker.value,"hex"))||"#transp"===a||"#ffffff00"===this.fillColorPicker.value?"#ffffff00":a,s=this.opacitySlider.value/100;var u=this.pdfViewer.selectedItems.annotations[0],f=B(u),m=B(u),w={},C=!1,S=!1,y=!1,I=!1,E=!1,v=!1,b=!1;if(i!==u.sourceDecoraterShapes&&(w.sourceDecoraterShapes=i,m.lineHeadStart=this.getArrowString(i),E=!0),n!==u.taregetDecoraterShapes&&(w.taregetDecoraterShapes=n,m.lineHeadEnd=this.getArrowString(n),v=!0),o!==u.wrapper.children[0].style.strokeWidth&&(w.thickness=o,m.thickness=o,y=!0),r!==u.wrapper.children[0].style.strokeColor&&(w.strokeColor=r,m.strokeColor=r,S=!0),a!==u.wrapper.children[0].style.fill&&(w.fillColor=a,m.fillColor=a,C=!0),s!==u.wrapper.children[0].style.opacity&&(w.opacity=s,m.opacity=s,I=!0),this.selectedLineDashArray!==u.wrapper.children[0].style.strokeDashArray&&(w.borderDashArray=this.selectedLineDashArray,w.borderStyle=this.selectedLineStyle,m.borderDashArray=w.borderDashArray,m.borderStyle=w.borderStyle,b=!0),t.isBlazor()){var V=document.querySelector("#"+this.pdfViewer.element.id+"_properties_leader_length");"Distance"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&parseInt(V.value,10)!==this.pdfViewer.selectedItems.annotations[0].leaderHeight&&(w.leaderHeight=parseInt(V.value,10))}else"Distance"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&this.leaderLengthBox.value!==this.pdfViewer.selectedItems.annotations[0].leaderHeight&&(w.leaderHeight=this.leaderLengthBox.value);this.pdfViewer.nodePropertyChange(this.pdfViewer.selectedItems.annotations[0],w),this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.fill=a,this.triggerAnnotationPropChange(this.pdfViewer.selectedItems.annotations[0],C,S,y,I,E,v,b),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"thickness"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"stroke"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"fill"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"opacity"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"dashArray"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"startArrow"),this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"endArrow"),"Distance"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&this.modifyInCollections(this.pdfViewer.selectedItems.annotations[0],"leaderLength"),this.pdfViewer.annotation.addAction(u.pageIndex,null,u,"Line properties change","",f,m),this.renderAnnotations(u.pageIndex,null,null,null),t.isBlazor()||this.propertiesDialog.hide()},s.prototype.onCancelClicked=function(){this.propertiesDialog.hide()},s.prototype.getArrowTypeFromDropDown=function(e,t){t||(e=e.split("</div>")[0].split('">')[1]);var i="None";switch(e){case this.pdfViewer.localeObj.getConstant("None"):i="None";break;case this.pdfViewer.localeObj.getConstant("Open Arrow"):i="OpenArrow";break;case this.pdfViewer.localeObj.getConstant("Closed Arrow"):i="Arrow";break;case this.pdfViewer.localeObj.getConstant("Round Arrow"):i="Circle";break;case this.pdfViewer.localeObj.getConstant("Square Arrow"):i="Square";break;case this.pdfViewer.localeObj.getConstant("Diamond Arrow"):i="Diamond";break;case this.pdfViewer.localeObj.getConstant("Butt"):i="Butt"}return i},s.prototype.getArrowString=function(e){var t=this.pdfViewer.localeObj.getConstant("None");switch(e){case"Arrow":t=this.pdfViewer.localeObj.getConstant("Closed");break;case"OpenArrow":t=this.pdfViewer.localeObj.getConstant("Open Arrow");break;case"Circle":t=this.pdfViewer.localeObj.getConstant("Round");break;case"None":case"Square":case"Diamond":t=this.pdfViewer.localeObj.getConstant(e);break;case"Butt":t=this.pdfViewer.localeObj.getConstant("Butt")}return t},s.prototype.onAnnotationMouseUp=function(){if(0!==this.pdfViewer.selectedItems.annotations.length)this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule&&(this.enableBasedOnType(),this.pdfViewer.toolbar.annotationToolbarModule.selectAnnotationDeleteItem(!0),t.Browser.isDevice||this.pdfViewer.toolbar.annotationToolbarModule.updateAnnnotationPropertyItems()),this.pdfViewer.textSelectionModule&&!this.pdfViewer.textSelectionModule.isTextSelection&&this.pdfViewerBase.disableTextSelectionMode();else if(!this.pdfViewer.textSelectionModule||this.pdfViewerBase.isPanMode||this.pdfViewer.designerMode||this.pdfViewer.textSelectionModule.enableTextSelectionMode(),this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule&&(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)){var e=this.pdfViewer.toolbar.annotationToolbarModule.inkAnnotationSelected;!this.pdfViewer.annotation.freeTextAnnotationModule||this.pdfViewer.annotation.freeTextAnnotationModule.isInuptBoxInFocus||e||(this.pdfViewer.toolbar.annotationToolbarModule.enableAnnotationPropertiesTools(!1),this.pdfViewer.toolbar.annotationToolbarModule.enableFreeTextAnnotationPropertiesTools(!1)),this.pdfViewer.toolbar.annotationToolbarModule.updateAnnnotationPropertyItems(),this.pdfViewer.toolbar.annotationToolbarModule.selectAnnotationDeleteItem(!1)}},s.prototype.onShapesMouseup=function(e,i){e=t.isNullOrUndefined(this.pdfViewer.selectedItems.annotations[0])?e:this.pdfViewer.selectedItems.annotations[0];var n=!1;if(this.pdfViewerBase.prevPosition.x===this.pdfViewerBase.currentPosition.x&&this.pdfViewerBase.prevPosition.y===this.pdfViewerBase.currentPosition.y||(n=!0),e){if(this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.currentTextMarkupAnnotation&&(this.textMarkupAnnotationModule.currentTextMarkupAnnotation=null,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage=null),(this.pdfViewerBase.tool instanceof Ct||this.pdfViewerBase.tool instanceof St)&&!this.pdfViewerBase.tool.dragging){var o={opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate};this.getAnnotationIndex(e.pageIndex,e.id);this.pdfViewerBase.tool instanceof St&&(o.lineHeadStartStyle=this.getArrowString(e.sourceDecoraterShapes),o.lineHeadEndStyle=this.getArrowString(e.taregetDecoraterShapes),o.borderDashArray=e.borderDashArray),this.pdfViewerBase.isAnnotationAdded&&"Distance"!==e.measureType||(""===e.measureType||t.isNullOrUndefined(e.measureType)?this.shapeAnnotationModule.renderShapeAnnotations(e,e.pageIndex):"Distance"!==e.measureType&&"Perimeter"!==e.measureType&&"Radius"!==e.measureType||this.measureAnnotationModule.renderMeasureShapeAnnotations(e,e.pageIndex)),this.pdfViewerBase.updateDocumentEditedProperty(!0)}else this.pdfViewerBase.tool instanceof gt||this.pdfViewerBase.tool instanceof wt?(n&&this.pdfViewerBase.updateDocumentEditedProperty(!0),""===e.measureType||t.isNullOrUndefined(e.measureType)?"FreeText"===e.shapeAnnotationType?this.pdfViewer.annotation.freeTextAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e):"HandWrittenSignature"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType?this.pdfViewerBase.signatureModule.modifySignatureCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e):"Ink"===e.shapeAnnotationType?this.inkAnnotationModule.modifySignatureInkCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e):"Stamp"===e.shapeAnnotationType||"Image"===e.shapeAnnotationType?this.stampAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e,n):this.pdfViewer.annotation.shapeAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e,n):"Distance"!==e.measureType&&"Perimeter"!==e.measureType&&"Radius"!==e.measureType&&"Area"!==e.measureType&&"Volume"!==e.measureType||this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e),this.pdfViewerBase.tool instanceof wt&&(e.formFieldAnnotationType||this.triggerAnnotationResize(e)),this.pdfViewerBase.tool instanceof gt&&"Select"!==this.pdfViewerBase.action&&(e.formFieldAnnotationType||this.triggerAnnotationMove(e))):this.pdfViewerBase.tool instanceof mt&&(n&&this.pdfViewerBase.updateDocumentEditedProperty(!0),""===e.measureType||t.isNullOrUndefined(e.measureType)?"Line"!==e.shapeAnnotationType&&"LineWidthArrowHead"!==e.shapeAnnotationType&&"Polygon"!==e.shapeAnnotationType||this.pdfViewer.annotation.shapeAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e,n):"Distance"!==e.measureType&&"Perimeter"!==e.measureType&&"Area"!==e.measureType&&"Volume"!==e.measureType||("Distance"===e.measureType&&this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("leaderLength",this.pdfViewer.annotation.getEventPageNumber(i),e),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("bounds",this.pdfViewer.annotation.getEventPageNumber(i),e)),this.triggerAnnotationResize(e));if(this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.annotationMenuObj&&this.pdfViewer.isSignatureEditable&&("HandWrittenSignature"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType)&&(this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!0),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!0)),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.clearTextMarkupMode(),""===e.measureType||t.isNullOrUndefined(e.measureType)?this.pdfViewer.toolbarModule.annotationToolbarModule.clearMeasureMode():"Distance"!==e.measureType&&"Perimeter"!==e.measureType&&"Area"!==e.measureType&&"Volume"!==e.measureType&&"Radius"!==e.measureType||this.pdfViewer.toolbarModule.annotationToolbarModule.clearShapeMode(),1===this.pdfViewer.selectedItems.annotations.length&&null===this.pdfViewer.selectedItems.annotations[0].formFieldAnnotationType&&this.pdfViewer.toolbarModule.annotationToolbarModule.enableAnnotationPropertiesTools(!0),!t.isBlazor()&&1===this.pdfViewer.selectedItems.annotations.length&&!this.pdfViewer.designerMode)){if(this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(!0),this.pdfViewer.toolbarModule.annotationToolbarModule.setCurrentColorInPicker(),this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,this.pdfViewer.formDesignerModule||""==e.id||null==e.id||"sign"==e.id.slice(0,4))this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem);else{var r=document.getElementById(e.id),a=r&&r.disabled;a?this.pdfViewer.annotation&&a&&this.pdfViewer.annotation.clearSelection():this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem)}this.pdfViewer.isAnnotationToolbarVisible&&this.pdfViewer.isFormDesignerToolbarVisible&&(document.getElementById(this.pdfViewer.element.id+"_formdesigner_toolbar").style.display="none",this.pdfViewer.toolbarModule&&(this.pdfViewer.toolbarModule.formDesignerToolbarModule.isToolbarHidden=!1,this.pdfViewer.toolbarModule.formDesignerToolbarModule.showFormDesignerToolbar(this.pdfViewer.toolbarModule.formDesignerItem),this.pdfViewer.toolbarModule.annotationToolbarModule.adjustViewer(!0)))}}},s.prototype.updateCalibrateValues=function(e,t){"Distance"===e.measureType?(e.notes=T(e,e.vertexPoints,this.measureAnnotationModule),!0===e.enableShapeLabel&&(e.labelContent=e.notes),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("notes",e.pageIndex,e,t),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(e.annotName,e.notes),this.renderAnnotations(e.pageIndex,null,null,null,null)):"Radius"===e.measureType?(e.notes=k(e,this.measureAnnotationModule),!0===e.enableShapeLabel&&(e.labelContent=e.notes),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("notes",e.pageIndex,e,t),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(e.annotName,e.notes),this.renderAnnotations(e.pageIndex,null,null,null,null)):"Perimeter"===e.measureType?(e.notes=N(e,e.vertexPoints,this.measureAnnotationModule),!0===e.enableShapeLabel&&(e.labelContent=e.notes),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("notes",e.pageIndex,e,t),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(e.annotName,e.notes),this.renderAnnotations(e.pageIndex,null,null,null,null)):"Area"===e.measureType?(e.notes=this.measureAnnotationModule.calculateArea(e.vertexPoints,e.id,e.pageIndex),!0===e.enableShapeLabel&&(e.labelContent=e.notes,L(e)),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("notes",e.pageIndex,e,t),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(e.annotName,e.notes),this.renderAnnotations(e.pageIndex,null,null,null,null)):"Volume"===e.measureType&&(e.notes=this.measureAnnotationModule.calculateVolume(e.vertexPoints,e.id,e.pageIndex),!0===e.enableShapeLabel&&(e.labelContent=e.notes,L(e)),this.pdfViewer.annotation.measureAnnotationModule.modifyInCollection("notes",e.pageIndex,e,t),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(e.annotName,e.notes),this.renderAnnotations(e.pageIndex,null,null,null,null))},s.prototype.onAnnotationMouseDown=function(){if(1===this.pdfViewer.selectedItems.annotations.length&&null===this.pdfViewer.selectedItems.annotations[0].formFieldAnnotationType&&this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule){if(!t.isBlazor()&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&"none"===document.getElementById(this.pdfViewer.element.id+"_commantPanel").style.display)if(this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&!t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools("");else if(this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&!this.pdfViewerBase.isAddComment){this.pdfViewer.toolbarModule.annotationToolbarModule.createAnnotationToolbarForMobile(),this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools(this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType);var e=document.getElementById(this.pdfViewer.element.id+"_annotationIcon");e&&!e.parentElement.classList.contains("e-pv-select")&&e.parentElement.classList.add("e-pv-select")}this.enableBasedOnType(),this.pdfViewer.toolbar.annotationToolbarModule.selectAnnotationDeleteItem(!0)}},s.prototype.enableBasedOnType=function(){var e=!1,i=this.pdfViewer.selectedItems.annotations[0];i&&i.annotationSettings&&(e=i.annotationSettings.isLock)&&this.checkAllowedInteractions("PropertyChange",i)&&(e=!1),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?e||("Stamp"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"Image"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableStampAnnotationPropertiesTools(!0):"StickyNotes"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableStampAnnotationPropertiesTools(!0):"Path"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureImage"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableAnnotationPropertiesTools(!1):"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableFreeTextAnnotationPropertiesTools(!0):"HandWrittenSignature"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableSignaturePropertiesTools(!0):"Ink"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.pdfViewer.toolbar.annotationToolbarModule.enableSignaturePropertiesTools(!0):1===this.pdfViewer.selectedItems.annotations.length&&null===this.pdfViewer.selectedItems.annotations[0].formFieldAnnotationType&&this.pdfViewer.toolbar.annotationToolbarModule.enableAnnotationPropertiesTools(!0)):t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)||this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation||"annotations"===this.pdfViewer.selectedItems.annotations[0].propName||!t.Browser.isDevice||this.pdfViewer.enableDesktopMode||this.pdfViewer.toolbarModule.annotationToolbarModule.createMobileAnnotationToolbar(!0,!0)},s.prototype.getProperDate=function(e){var t=new Date(e.toString());if(isNaN(t.getFullYear())){var i=e.slice(2,16);i=i.slice(0,4)+"/"+i.slice(4,6)+"/"+i.slice(6,8)+" "+i.slice(8,10)+":"+i.slice(10,12)+":"+i.slice(12,14),t=new Date(i)}return t.getMonth()+1+"/"+t.getDate()+"/"+t.getFullYear()+" "+t.getHours()+":"+t.getMinutes()+":"+t.getSeconds()},s.prototype.getPageCollection=function(e,t){for(var i=null,n=0;n<e.length;n++)if(e[parseInt(n.toString(),10)].pageIndex===t){i=n;break}return i},s.prototype.getAnnotationWithId=function(e,t){for(var i,n=0;n<e.length;n++)t===e[parseInt(n.toString(),10)].id&&(i=e[parseInt(n.toString(),10)]);return i},s.prototype.getEventPageNumber=function(e){var i=e.target,n=e.target.parentElement;i.classList.contains("e-pv-hyperlink")?i=n:n&&n.classList.contains("foreign-object")&&n.parentElement&&n.parentElement.parentElement&&n.parentElement.parentElement.parentElement?i=n.parentElement.parentElement.parentElement:i.classList.contains("e-pdfviewer-formFields")&&(i=n);var o;return i&&(o=i.id.split("_text_")[1]||i.id.split("_textLayer_")[1]||i.id.split("_annotationCanvas_")[1]||i.id.split("_pageDiv_")[1]),isNaN(parseInt(o,10))&&((i=(e=this.pdfViewerBase.annotationEvent&&this.pdfViewerBase.annotationEvent.target.id===i.id?this.pdfViewerBase.annotationEvent:e).target)&&i.id&&(o=i.id.split("_text_")[1]||i.id.split("_textLayer_")[1]||i.id.split("_annotationCanvas_")[1]||i.id.split("_pageDiv_")[1]),t.isNullOrUndefined(this.pdfViewerBase.annotationEvent)||t.isNullOrUndefined(this.pdfViewerBase.annotationEvent.target)||!t.isNullOrUndefined(o)||(o=this.pdfViewerBase.annotationEvent.target.id.split("_textLayer_")[1])),parseInt(o,10)},s.prototype.getAnnotationComments=function(e,t,i){var n=[],o=null;if(e&&e.length>0)for(var r=0;r<e.length;r++){var a=e[parseInt(r.toString(),10)];o={shapeAnnotationType:"sticky",author:a.Author,modifiedDate:a.ModifiedDate,note:a.Note,state:a.state,stateModel:a.stateModel,comments:[],review:{state:a.State,stateModel:a.StateModel,modifiedDate:a.ModifiedDate,author:a.Author},annotName:a.AnnotName,parentId:t.AnnotName,subject:a.Subject,isLock:a.IsLock},n[n.length]=o}return n},s.prototype.getRandomNumber=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){return(16*Math.random()|0).toString(16)})},s.prototype.createGUID=function(){return this.getRandomNumber()},s.prototype.createBlendAnnotationsIntoCanvas=function(e,i,n,o,r){var a=this.pdfViewerBase.getElement("_blendAnnotationsIntoCanvas_"+o);if(a)return this.pdfViewerBase.updateCanvas(a,i,n,o),a;var s=t.createElement("canvas",{id:this.pdfViewer.element.id+"_blendAnnotationsIntoCanvas_"+o,className:"e-pv-annotation-canvas"});return this.pdfViewerBase.updateCanvas(s,i,n,o),s.style.mixBlendMode="multiply",e.appendChild(s),s},s.prototype.resizeAnnotations=function(e,t,i){var n=this;["_annotationCanvas_","_blendAnnotationsIntoCanvas_"].forEach(function(o){var r=n.pdfViewerBase.getElement(o+i);r&&(r.style.width=e+"px",r.style.height=t+"px",n.pdfViewerBase.applyElementStyles(r,i))})},s.prototype.clearAnnotationCanvas=function(e){var t=this,i=this.pdfViewerBase.getZoomFactor(),n=this.pdfViewerBase.getZoomRatio(i);["_annotationCanvas_","_blendAnnotationsIntoCanvas_"].forEach(function(o){var r=t.pdfViewerBase.getElement(o+e);if(r){var a=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width,s=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height;r.width=a*n,r.height=s*n,r.style.width=a*i+"px",r.style.height=s*i+"px"}})},s.prototype.renderAnnotations=function(e,n,o,r,a,s,l,d,A,h){if((t.isNullOrUndefined(h)||h)&&this.clearAnnotationCanvas(e),this.shapeAnnotationModule&&n&&(s?this.shapeAnnotationModule.renderShapeAnnotations(n,e,!0):this.shapeAnnotationModule.renderShapeAnnotations(n,e,null,l)),this.measureAnnotationModule&&o&&(s?this.measureAnnotationModule.renderMeasureShapeAnnotations(o,e,!0):this.measureAnnotationModule.renderMeasureShapeAnnotations(o,e,null,l)),this.freeTextAnnotationModule&&d&&(s?this.freeTextAnnotationModule.renderFreeTextAnnotations(d,e,!0,null,!0):this.freeTextAnnotationModule.renderFreeTextAnnotations(d,e,null,l)),this.inkAnnotationModule&&A&&(s?this.inkAnnotationModule.renderExistingInkSignature(A,e,!0,null,!0):this.inkAnnotationModule.renderExistingInkSignature(A,e,null,l)),(t.isNullOrUndefined(h)||h)&&this.pdfViewer.drawing.refreshCanvasDiagramLayer(a,e),this.pdfViewerBase.getElement("_blendAnnotationsIntoCanvas_"+e)&&(t.isNullOrUndefined(h)||h)&&this.pdfViewer.drawing.refreshCanvasDiagramLayer(a,e),!this.pdfViewerBase.isInkAdded&&"Ink"===this.pdfViewer.tool&&this.pdfViewer.currentPageNumber-1===e){var p=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",this.pdfViewer.currentPageNumber-1),c=this.pdfViewerBase.getZoomFactor(),g=this.pdfViewerBase.getWindowDevicePixelRatio(),u=p.getContext("2d"),f=this.pdfViewer.inkAnnotationSettings.thickness?this.pdfViewer.inkAnnotationSettings.thickness:1,m=this.pdfViewer.inkAnnotationSettings.opacity?this.pdfViewer.inkAnnotationSettings.opacity:1,w=this.pdfViewer.inkAnnotationSettings.strokeColor?this.pdfViewer.inkAnnotationSettings.strokeColor:"#ff0000";(!t.Browser.isDevice||t.Browser.isDevice&&c<=.7)&&u.setTransform(g,0,0,g,0,0),u.beginPath(),u.lineJoin="round",u.lineCap="round",u.lineWidth=f*c>1?f*c:f,u.strokeStyle=w,u.globalAlpha=m;for(var C=i.processPathData(this.pdfViewer.annotationModule.inkAnnotationModule.updateInkDataWithZoom()),B=i.splitArrayCollection(C),S=0;S<B.length;S++){var y=B[parseInt(S.toString(),10)];switch(y.command){case"M":u.moveTo(y.x,y.y);break;case"L":u.lineTo(y.x,y.y)}}u.stroke(),u.closePath(),t.isNullOrUndefined(this.pdfViewer.toolbarModule)||t.isNullOrUndefined(this.pdfViewer.toolbarModule.annotationToolbarModule)||(this.pdfViewer.toolbar.annotationToolbarModule.inkAnnotationSelected=!0)}this.textMarkupAnnotationModule&&(t.isNullOrUndefined(h)||h||s&&r)&&(s?this.textMarkupAnnotationModule.renderTextMarkupAnnotationsInPage(r,e,!0):this.textMarkupAnnotationModule.renderTextMarkupAnnotationsInPage(r,e))},s.prototype.storeAnnotations=function(e,t,i){Fi.sessionStorageManager.getWindowSessionStorageSize()>4500&&(this.clearAnnotationStorage(),this.pdfViewerBase.isStorageExceed=!0,this.pdfViewerBase.isFormStorageExceed||this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.clearFormFieldStorage());var n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+i);this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+i]);var o=0;if(n){this.storeAnnotationCollections(t,e);var r=JSON.parse(n);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+i);var a=this.pdfViewer.annotationModule.getPageCollection(r,e);if(null!=a&&r[parseInt(a.toString(),10)])r[parseInt(a.toString(),10)].annotations.filter(function(e,i){e.annotName===t.annotName&&r[parseInt(a.toString(),10)].annotations.splice(i,1)}),r[parseInt(a.toString(),10)].annotations.push(t),o=r[parseInt(a.toString(),10)].annotations.indexOf(t);else{var s={pageIndex:e,annotations:[]};s.annotations.push(t),o=s.annotations.indexOf(t),r.push(s)}A=JSON.stringify(r);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+i]=A:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+i,A)}else{this.storeAnnotationCollections(t,e);var l={pageIndex:e,annotations:[]};l.annotations.push(t),o=l.annotations.indexOf(t);var d=[];d.push(l);var A=JSON.stringify(d);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+i]=A:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+i,A)}return o},s.prototype.getArrowType=function(e){var t="None";switch(e){case"ClosedArrow":case"Closed":t="Arrow";break;case"OpenArrow":case"Open":t="OpenArrow";break;case"Square":t="Square";break;case"Circle":case"Round":t="Circle";break;case"Diamond":t="Diamond";break;case"Butt":t="Butt"}return t},s.prototype.getArrowTypeForCollection=function(e){var t;switch(e){case"Arrow":t="ClosedArrow";break;case"OpenArrow":case"Square":case"Circle":case"Diamond":case"None":t=e.toString();break;case"Butt":t="Butt"}return t},s.prototype.getBounds=function(e,t){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];return i?1===i.rotation?{left:e.top,top:i.width-(e.left+e.width),width:e.height,height:e.width}:2===i.rotation?{left:i.width-e.left-e.width,top:i.height-e.top-e.height,width:e.width,height:e.height}:3===i.rotation?{left:i.height-e.top-e.height,top:e.left,width:e.height,height:e.width}:e:e},s.prototype.getInkBounds=function(e,t){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];return i?1===i.rotation?{x:e.y,y:i.width-(e.x+e.width),width:e.height,height:e.width}:2===i.rotation?{x:i.width-e.x-e.width,y:i.height-e.y-e.height,width:e.width,height:e.height}:3===i.rotation?{x:i.height-e.y-e.height,y:e.x,width:e.height,height:e.width}:e:e},s.prototype.getVertexPoints=function(e,t){if(e){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];if(1===i.rotation){for(var n=[],o=0;o<e.length;o++){s={x:e[parseInt(o.toString(),10)].y,y:i.width-e[parseInt(o.toString(),10)].x};n.push(s)}return n}if(2===i.rotation){for(var r=[],o=0;o<e.length;o++){s={x:i.width-e[parseInt(o.toString(),10)].x,y:i.height-e[parseInt(o.toString(),10)].y};r.push(s)}return r}if(3===i.rotation){for(var a=[],o=0;o<e.length;o++){var s={x:i.height-e[parseInt(o.toString(),10)].y,y:e[parseInt(o.toString(),10)].x};a.push(s)}return a}return e}},s.prototype.getStoredAnnotations=function(e,t,i){var n,o=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+i);if(this.pdfViewerBase.isStorageExceed&&(o=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+i]),o){var r=JSON.parse(o),a=this.pdfViewer.annotationModule.getPageCollection(r,e);n=null!=a&&r[parseInt(a.toString(),10)]?r[parseInt(a.toString(),10)].annotations:null}else n=null;return n},s.prototype.triggerAnnotationPropChange=function(e,t,i,n,o,r,a,s,l,d,A){this.getAnnotationIndex(e.pageIndex,e.id);var h=this.getAnnotationType(e.shapeAnnotationType,e.measureType),p={name:"annotationPropertiesChange",pageIndex:e.pageIndex,annotationId:e.annotName,annotationType:h,isColorChanged:t,isOpacityChanged:o,isThicknessChanged:n,isStrokeColorChanged:i};l&&(p.isFreeTextChanged=l,p.previousText=d,p.currentText=A),r&&(p.isLineHeadStartStyleChanged=r),a&&(p.isLineHeadEndStyleChanged=a),s&&(p.isBorderDashArrayChanged=s),this.pdfViewer.trigger("annotationPropertiesChange",p)},s.prototype.triggerAnnotationAdd=function(e){var t={opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate},i={left:e.wrapper.bounds.x,top:e.wrapper.bounds.y,width:e.wrapper.bounds.width,height:e.wrapper.bounds.height},n=this.getAnnotationType(e.shapeAnnotationType,e.measureType);"Line"!==n&&"Arrow"!==n&&"Distance"!==n&&"Perimeter"!==n||(t.lineHeadStartStyle=this.getArrowString(e.sourceDecoraterShapes),t.lineHeadEndStyle=this.getArrowString(e.taregetDecoraterShapes),t.borderDashArray=e.borderDashArray);var o;this.pdfViewer.enableShapeLabel?(o={fontColor:e.fontColor,fontSize:e.fontSize,fontFamily:e.fontFamily,opacity:e.labelOpacity,labelContent:e.labelContent,fillColor:e.labelFillColor},this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,n,i,t,null,null,null,o)):this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,n,i,t)},s.prototype.triggerAnnotationResize=function(e){var t={opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate},i=e.bounds,n={left:i.x,top:i.y,x:i.x,y:i.y,width:i.width,height:i.height},o={left:i.oldProperties.x,top:i.oldProperties.y,width:i.oldProperties.width,height:i.oldProperties.height},r=this.getAnnotationType(e.shapeAnnotationType,e.measureType);"Line"!==r&&"Arrow"!==r&&"Distance"!==r&&"Perimeter"!==r||(t.lineHeadStartStyle=this.getArrowString(e.sourceDecoraterShapes),t.lineHeadEndStyle=this.getArrowString(e.taregetDecoraterShapes),t.borderDashArray=e.borderDashArray);var a;this.pdfViewer.enableShapeLabel&&"HandWrittenSignature"!==e.shapeAnnotationType?(a={fontColor:e.fontColor,fontSize:e.fontSize,fontFamily:e.fontFamily,opacity:e.labelOpacity,labelContent:e.labelContent,fillColor:e.labelFillColor,notes:e.notes},this.pdfViewer.fireAnnotationResize(e.pageIndex,e.annotName,r,n,t,null,null,null,a)):"HandWrittenSignature"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType?this.pdfViewer.fireSignatureResize(e.pageIndex,e.signatureName,e.shapeAnnotationType,e.opacity,e.strokeColor,e.thickness,n,o):this.pdfViewer.fireAnnotationResize(e.pageIndex,e.annotName,r,n,t)},s.prototype.triggerAnnotationMove=function(e,t){var i={opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate},n=e.bounds,o={left:n.x,top:n.y,x:n.x,y:n.y,width:n.width,height:n.height},r={left:n.oldProperties.x?n.oldProperties.x:n.x,top:n.oldProperties.y?n.oldProperties.y:n.y,width:n.width,height:n.height},a=this.getAnnotationType(e.shapeAnnotationType,e.measureType);"Line"!==a&&"Arrow"!==a&&"Distance"!==a&&"Perimeter"!==a||(i.lineHeadStartStyle=this.getArrowString(e.sourceDecoraterShapes),i.lineHeadEndStyle=this.getArrowString(e.taregetDecoraterShapes),i.borderDashArray=e.borderDashArray),"HandWrittenSignature"===e.shapeAnnotationType||"SignatureText"===e.shapeAnnotationType||"SignatureImage"===e.shapeAnnotationType?this.pdfViewer.fireSignatureMove(e.pageIndex,e.signatureName,e.shapeAnnotationType,e.opacity,e.strokeColor,e.thickness,r,o):t?this.pdfViewer.fireAnnotationMoving(e.pageIndex,e.annotName,a,i,r,o):this.pdfViewer.fireAnnotationMove(e.pageIndex,e.annotName,a,i,r,o)},s.prototype.annotationSelect=function(e,t,i,n,o,r){var a;"textMarkup"===i.shapeAnnotationType?a={type:"TextMarkup",subType:i.subject,opacity:i.opacity,color:i.color,textMarkupContent:i.textMarkupContent,textMarkupStartIndex:i.textMarkupStartIndex,textMarkupEndIndex:i.textMarkupEndIndex,customData:i.customData}:"StickyNotes"===i.shapeAnnotationType?a={type:"StickyNotes",opacity:i.opacity,customData:i.customData}:"Stamp"===i.shapeAnnotationType||"Image"===i.shapeAnnotationType?a={type:"Stamp",opacity:i.opacity,customData:i.customData}:"Ink"===i.shapeAnnotationType?a={type:"Ink",opacity:i.opacity,strokeColor:i.strokeColor,thickness:i.thickness,modifiedDate:i.modifiedDate,width:i.bounds.width,height:i.bounds.height,left:i.bounds.x,top:i.bounds.y,data:i.data,customData:i.customData}:"FreeText"===i.shapeAnnotationType?a={type:"FreeText",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,content:i.dynamicText,fontFamily:i.fontFamily,fontSize:i.fontSize,fontColor:i.fontColor,textAlign:i.textAlign,fontStyle:this.updateFreeTextFontStyle(i.font),customData:i.customData}:""===i.measureType?"Line"===i.shapeAnnotationType?a={type:"Shape",subType:"Line",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,borderDashArray:i.borderDashArray,lineHeadStartStyle:i.sourceDecoraterShapes,lineHeadEndStyle:i.taregetDecoraterShapes,customData:i.customData}:"Arrow"===i.shapeAnnotationType||"LineWidthArrowHead"===i.shapeAnnotationType?a={type:"Shape",subType:"Arrow",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,borderDashArray:i.borderDashArray,lineHeadStartStyle:i.sourceDecoraterShapes,lineHeadEndStyle:i.taregetDecoraterShapes,customData:i.customData}:"Rectangle"===i.shapeAnnotationType?a={type:"Shape",subType:"Rectangle",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,customData:i.customData}:"Circle"===i.shapeAnnotationType||"Ellipse"===i.shapeAnnotationType?a={type:"Shape",subType:"Circle",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,customData:i.customData}:"Polygon"===i.shapeAnnotationType&&(a={type:"Shape",subType:"Polygon",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,customData:i.customData}):""!==i.measureType&&("Distance"===i.measureType?a={type:"Measure",subType:"Distance",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,borderDashArray:i.borderDashArray,lineHeadStartStyle:i.sourceDecoraterShapes,lineHeadEndStyle:i.taregetDecoraterShapes,customData:i.customData}:"Perimeter"===i.measureType?a={type:"Measure",subType:"Perimeter",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,borderDashArray:i.borderDashArray,lineHeadStartStyle:i.sourceDecoraterShapes,lineHeadEndStyle:i.taregetDecoraterShapes,customData:i.customData}:"Area"===i.measureType?a={type:"Measure",subType:"Area",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,customData:i.customData}:"Radius"===i.measureType?a={type:"Measure",subType:"Radius",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,customData:i.customData}:"Volume"===i.measureType&&(a={type:"Measure",subType:"Volume",opacity:i.opacity,fillColor:i.fillColor,strokeColor:i.strokeColor,thickness:i.thickness,calibrate:i.calibrate,annotationId:i.annotName,customData:i.customData}));var s=[],l=this.getOverlappedAnnotations(i,t);if(l&&this.overlappedCollections){for(var d=[],A=0;A<l.length;A++)if("textMarkup"!==l[parseInt(A.toString(),10)].shapeAnnotationType&&this.overlappedCollections&&this.overlappedCollections.length>0||r){for(p=0;p<this.overlappedCollections.length;p++)if(l[parseInt(A.toString(),10)].annotName===this.overlappedCollections[parseInt(p.toString(),10)].annotName){d.push(l[parseInt(A.toString(),10)]);break}}else d.push(l[parseInt(A.toString(),10)]);l=d}if(this.pdfViewer.enableMultiLineOverlap)for(A=0;A<l.length;A++)if("textMarkup"===l[parseInt(A.toString(),10)].shapeAnnotationType){for(var h=!1,p=0;p<l[parseInt(A.toString(),10)].bounds.length;p++){var c=this.orderTextMarkupBounds(l[parseInt(A.toString(),10)].bounds[parseInt(p.toString(),10)]),g=this.textMarkupAnnotationModule.annotationClickPosition;g&&(g.x||g.y)?c.left<=g.x&&c.left+c.width>=g.x&&c.top<=g.y&&c.top+c.height>=g.y&&(h=!0):h=!0}h||l.splice(A,1)}if(l&&l.length>0){n=l;for(A=0;A<n.length;A++){var u=B(n[parseInt(A.toString(),10)]);u.annotationId=n[parseInt(A.toString(),10)].annotName,e===n[parseInt(A.toString(),10)].annotName&&i.measureType&&"Volume"===i.measureType&&(a.calibrate=n[parseInt(A.toString(),10)].calibrate),delete u.annotName,s.push(u)}}else s=null;this.addFreeTextProperties(i,a);var f=i.annotationAddMode;if(o)"Stamp"===i.shapeAnnotationType||"Image"===i.shapeAnnotationType?this.pdfViewerBase.isNewStamp||this.pdfViewer.fireAnnotationDoubleClick(e,t,a):this.pdfViewer.fireAnnotationDoubleClick(e,t,a);else if("Stamp"===i.shapeAnnotationType||"Image"===i.shapeAnnotationType)!this.pdfViewerBase.isNewStamp&&this.annotationSelected&&(s?this.pdfViewer.fireAnnotationSelect(e,t,a,s,null,null,f):this.pdfViewer.fireAnnotationSelect(e,t,a,null,null,null,f));else{var m=this.textMarkupAnnotationModule,w=m&&m.multiPageCollectionList(i);w&&0===w.length&&(w=null),this.annotationSelected&&(s?(r=!1,this.pdfViewer.fireAnnotationSelect(e,t,a,s,w,r,f)):(r=!0,this.pdfViewer.fireAnnotationSelect(e,t,a,null,w,r,f)))}this.annotationSelected=!0},s.prototype.selectSignature=function(e,t,i){var n=i.bounds,o={height:n.height,width:n.width,x:n.x,y:n.y};if(!this.pdfViewerBase.signatureAdded&&"ink"!==i.signatureName){var r={bounds:o,opacity:i.opacity,thickness:i.thickness,strokeColor:i.strokeColor};this.pdfViewer.fireSignatureSelect(e,t,r)}},s.prototype.unselectSignature=function(e,t,i){var n=i.bounds,o={height:n.height,width:n.width,x:n.x,y:n.y};if(!this.pdfViewerBase.signatureAdded){var r={bounds:o,opacity:i.opacity,thickness:i.thickness,strokeColor:i.strokeColor};this.pdfViewer.fireSignatureUnselect(e,t,r)}},s.prototype.editSignature=function(e){var i,n=(i=e.uniqueKey?this.pdfViewer.nameTable[e.uniqueKey]:this.pdfViewer.selectedItems.annotations[0]).pageIndex;if("HandWrittenSignature"===i.shapeAnnotationType||"SignatureText"===i.shapeAnnotationType||"SignatureImage"===i.shapeAnnotationType){var o=B(i),r=B(i);t.isNullOrUndefined(e.opacity)&&i.opacity===e.opacity||(r.opacity=e.opacity,this.pdfViewer.nodePropertyChange(i,{opacity:e.opacity}),this.pdfViewer.fireSignaturePropertiesChange(i.pageIndex,i.signatureName,i.shapeAnnotationType,!1,!0,!1,o.opacity,r.opacity),this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"Shape Opacity","",o,r)),i.strokeColor!==e.strokeColor&&(r.strokeColor=e.strokeColor,this.pdfViewer.nodePropertyChange(i,{strokeColor:e.strokeColor}),this.pdfViewer.fireSignaturePropertiesChange(i.pageIndex,i.signatureName,i.shapeAnnotationType,!0,!1,!1,o.strokeColor,r.strokeColor),this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"Shape Stroke","",o,r)),i.thickness!==e.thickness&&(r.thickness=e.thickness,this.pdfViewer.nodePropertyChange(i,{thickness:e.thickness}),this.pdfViewer.fireSignaturePropertiesChange(i.pageIndex,i.signatureName,i.shapeAnnotationType,!1,!1,!0,o.thickness,r.thickness),this.pdfViewer.annotation.addAction(i.pageIndex,null,i,"Shape Thickness","",o,r)),i.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),this.pdfViewer.renderDrawing(),this.pdfViewerBase.signatureModule.modifySignatureCollection(null,n,i,!0)}},s.prototype.deletComment=function(e){e.parentElement.firstChild===e?this.deleteAnnotation():this.pdfViewer.annotationModule.stickyNotesAnnotationModule.modifyCommentDeleteProperty(e.parentElement,e)},s.prototype.addReplyComments=function(e,t,i){if("add"===i){o=document.getElementById(e.annotName);this.pdfViewer.annotationModule.stickyNotesAnnotationModule.createCommentDiv(o);for(var n=0;n<t.length;n++)this.pdfViewer.annotationModule.stickyNotesAnnotationModule.saveCommentDiv(o,t[parseInt(n.toString(),10)])}else if("next"===i){var o=document.getElementById(e.annotationId);this.selectAnnotation(e),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.saveCommentDiv(o,t)}},s.prototype.editComments=function(e,t){document.getElementById(e).childNodes[1].ej2_instances[0].value=t},s.prototype.editAnnotation=function(i){var n,o,r,s,l,d=!1;if(t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)||(l=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation),!l||i.annotationId&&i.uniqueKey||i.annotationId!==l.annotName?this.pdfViewer.selectedItems.annotations[0]&&(o=(n=this.pdfViewer.selectedItems.annotations[0]).annotName,s=n.pageIndex):(o=(n=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation).annotName,s=this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage),void 0!==i.uniqueKey){if((n=this.pdfViewer.nameTable[i.uniqueKey])&&n.annotationSettings&&!t.isNullOrUndefined(n.annotationSettings.isLock)&&(n.annotationSettings.isLock=i.annotationSettings.isLock,this.isEdited=!0),o=n.annotName,s=n.pageIndex,t.isBlazor()&&i.allowedInteractions)for(var A=i.allowedInteractions.length,h=0;h<A;h++)0===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.Select),1===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.Move),2===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.Resize),3===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.Delete),4===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.PropertyChange),5===i.allowedInteractions[parseInt(h.toString(),10)]&&(i.allowedInteractions[parseInt(h.toString(),10)]=e.AllowedInteraction.None);i.allowedInteractions&&n.allowedInteractions!==i.allowedInteractions&&(this.isEdited=!0),n.allowedInteractions=i.allowedInteractions?i.allowedInteractions:this.updateAnnotationAllowedInteractions(i)}if(n||"sticky"===i.shapeAnnotationType&&void 0!==i.annotationId&&(n=this.pdfViewer.nameTable[i.annotationId])&&(n.annotationSettings.isLock=i.annotationSettings.isLock,o=n.annotName,s=n.pageIndex,this.isEdited=!0),"textMarkup"===i.shapeAnnotationType){n=this.pdfViewer.annotationModule.textMarkupAnnotationModule.getAnnotations(i.pageNumber,i);for(h=0;h<n.length;h++)if(i.annotationId===n[parseInt(h.toString(),10)].annotName){d=!0,(n=n[parseInt(h.toString(),10)]).isPrint=i.isPrint,this.textMarkupAnnotationModule.currentTextMarkupAnnotation=n,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage=n.pageNumber,n.allowedInteractions=i.allowedInteractions,s=n.pageNumber,o=i.annotationId,this.isEdited=!0;break}}if(n){var p=B(n),c=B(n);if("textMarkup"===i.shapeAnnotationType&&(r="textMarkup"),i&&!0===i.isCommentLock&&(n.isCommentLock=i.isCommentLock,this.isEdited=!0),i&&JSON.stringify(n.annotationSelectorSettings)!==JSON.stringify(i.annotationSelectorSettings)&&(!t.isNullOrUndefined(i.type)&&"TextMarkup"!==i.type||!t.isNullOrUndefined(i.shapeAnnotationType)&&"textMarkup"!==i.shapeAnnotationType)&&(n.annotationSelectorSettings=i.annotationSelectorSettings,c.annotationSelectorSettings=i.annotationSelectorSettings,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{annotationSelectorSettings:i.annotationSelectorSettings}),this.triggerAnnotationPropChange(n,!1,!0,!1,!1)),i.comments)for(L=0;L<i.comments.length;L++)!0===i.comments[parseInt(L.toString(),10)].isLock&&(r?(n.comments=i.comments,n.comments[parseInt(L.toString(),10)].isLock=i.comments[parseInt(L.toString(),10)].isLock):(n.properties.comments=i.comments,n.properties.comments[parseInt(L.toString(),10)].isLock=i.comments[parseInt(L.toString(),10)].isLock),this.isEdited=!0);if(i&&""!==i.note&&void 0!==i.note?(r?(n.note=i.note,this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addTextToComments(n.annotName,n.note)):(n.notes=i.note,this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addTextToComments(n.annotName,n.notes)),this.isEdited=!0):i&&i.isCommentLock&&(i.type&&"FreeText"!==i.type||"FreeText"!==i.shapeAnnotationType)&&(this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addTextToComments(n.annotName,"  "),this.isEdited=!0),i.commentId&&i.editComment&&"edit"===i.commentType&&(this.editComments(i.commentId,i.editComment),this.isEdited=!0),i.replyComment&&"add"===i.commentType&&(this.addReplyComments(n,i.replyComment,i.commentType),this.pdfViewer.annotationCollection[0].note=i.note,this.isEdited=!0),i.nextComment&&"next"===i.commentType&&(this.addReplyComments(i,i.nextComment,i.commentType),this.isEdited=!0),t.isNullOrUndefined(i.commentId)&&"delete"===i.commentType)for(var g=document.querySelectorAll(".e-pv-more-options-button"),h=0;h<g.length;h++)if("visible"===g[parseInt(h.toString(),10)].style.visibility){var u=g[parseInt(h.toString(),10)].parentElement.nextSibling,f=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.checkIslockProperty(u);u&&!f&&(this.deletComment(u.parentElement),this.isEdited=!0);break}if(i.comments&&"delete"===i.commentType&&(g=document.querySelectorAll(".e-pv-more-options-button"))&&i.commentId)for(h=0;h<i.comments.length;h++)if(i.comments[parseInt(h.toString(),10)].annotName===i.commentId){var u=g[parseInt((h+1).toString(),10)].parentElement.parentElement,f=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.checkIslockProperty(u);u&&!f&&(this.pdfViewer.annotationModule.stickyNotesAnnotationModule.modifyCommentDeleteProperty(u.parentElement,u),this.isEdited=!0);break}if("TextMarkup"===i.type||"textMarkup"===i.shapeAnnotationType){if(n.annotationSettings&&i.annotationSettings&&n.annotationSettings.isLock!==i.annotationSettings.isLock){m=this.textMarkupAnnotationModule.modifyAnnotationProperty("AnnotationSettings",i.annotationSettings.isLock,null);this.isEdited=!0,this.textMarkupAnnotationModule.manageAnnotations(m,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage)}if(i&&JSON.stringify(n.annotationSelectorSettings)!==JSON.stringify(i.annotationSelectorSettings)){var m=this.textMarkupAnnotationModule.modifyAnnotationProperty("AnnotationSelectorSettings",i.annotationSelectorSettings,null);this.isEdited=!0,this.textMarkupAnnotationModule.manageAnnotations(m,this.textMarkupAnnotationModule.selectTextMarkupCurrentPage)}n.opacity!==i.opacity&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyOpacityProperty(null,i.opacity),this.isEdited=!0),n.color!==i.color&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyColorProperty(i.color),this.isEdited=!0),JSON.stringify(n.bounds)!==JSON.stringify(i.bounds)&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyBoundsProperty(i.bounds),this.isEdited=!0),r="textMarkup",d&&(this.textMarkupAnnotationModule.selectTextMarkupCurrentPage=null)}else if(i&&"image"===i.stampAnnotationType&&"stamp"===i.shapeAnnotationType&&i.stampAnnotationPath)r="stamp",n.data!==i.stampAnnotationPath&&(n.data=i.stampAnnotationPath,n.wrapper.children[0].imageSource=i.stampAnnotationPath,this.pdfViewer.renderDrawing(null,s),this.isEdited=!0),t.isNullOrUndefined(i.opacity)||n.opacity===i.opacity||(c.opacity=i.opacity,this.annotationPropertyChange(n,i.opacity,"Shape Opacity",p,c),this.isEdited=!0),this.calculateAnnotationBounds(n,i);else if("StickyNotes"===i.type||"Stamp"===i.type||"sticky"===i.shapeAnnotationType||"stamp"===i.shapeAnnotationType)t.isNullOrUndefined(i.opacity)||n.opacity===i.opacity||(c.opacity=i.opacity,this.annotationPropertyChange(n,i.opacity,"Shape Opacity",p,c),this.isEdited=!0),this.calculateAnnotationBounds(n,i),r="StickyNotes"===i.type||"sticky"===i.shapeAnnotationType?"sticky":"stamp";else if("Ink"===i.type||"Shape"===i.type||"Measure"===i.type||"Line"===i.shapeAnnotationType||"Square"===i.shapeAnnotationType||"Circle"===i.shapeAnnotationType||"Polygon"===i.shapeAnnotationType||"Polyline"===i.shapeAnnotationType||"Ink"===i.shapeAnnotationType){if("Square"!==i.shapeAnnotationType&&"Circle"!==i.shapeAnnotationType&&"Radius"!==i.shapeAnnotationType&&"Ink"!==i.shapeAnnotationType||(this.calculateAnnotationBounds(n,i),"PolygonRadius"===i.indent&&(this.updateCalibrateValues(n),i.note=n.notes)),t.isNullOrUndefined(i.opacity)||n.opacity===i.opacity||(c.opacity=i.opacity,this.annotationPropertyChange(n,i.opacity,"Shape Opacity",p,c),this.isEdited=!0),i.fillColor&&n.fillColor!==i.fillColor&&(c.fillColor=i.fillColor,this.isEdited=!0,i.labelSettings&&i.labelSettings.fillColor&&(i.labelSettings.fillColor=i.fillColor),this.pdfViewer.nodePropertyChange(n,{fillColor:i.fillColor}),this.triggerAnnotationPropChange(n,!0,!1,!1,!1),this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Shape Fill","",p,c)),i.strokeColor&&n.strokeColor!==i.strokeColor&&(c.strokeColor=i.strokeColor,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{strokeColor:i.strokeColor}),this.triggerAnnotationPropChange(n,!1,!0,!1,!1),this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Shape Stroke","",p,c)),i.leaderLength&&n.leaderHeight!==i.leaderLength&&(c.leaderHeight=i.leaderLength,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{leaderHeight:i.leaderLength})),i.thickness&&n.thickness!==i.thickness&&(c.thickness=i.thickness,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{thickness:i.thickness}),this.triggerAnnotationPropChange(n,!1,!1,!0,!1),this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Shape Thickness","",p,c)),n.subject!==i.subject&&(c.subject=i.subject,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{subject:i.subject}),this.triggerAnnotationPropChange(n,!1,!0,!1,!1)),n.modifiedDate!==i.modifiedDate&&(c.modifiedDate=i.modifiedDate,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{modifiedDate:i.modifiedDate})),n.subject!==i.subject&&(c.subject=i.subject,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{subject:i.subject}),this.triggerAnnotationPropChange(n,!1,!0,!1,!1),this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Shape Stroke","",p,c)),this.pdfViewer.enableShapeLabel&&n.fontColor!==i.fontColor&&(c.fontColor=i.fontColor,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{fontColor:i.fontColor})),this.pdfViewer.enableShapeLabel&&i.labelSettings&&i.labelSettings.fillColor&&(n.labelFillColor!==i.labelSettings.fillColor&&(c.labelFillColor=i.labelSettings.fillColor,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{labelFillColor:i.labelSettings.fillColor})),n.labelContent!==i.labelSettings.labelContent&&(c.labelContent=i.labelSettings.labelContent,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{labelContent:i.labelSettings.labelContent}))),"Line"!==i.shapeAnnotationType&&"Polyline"!==i.shapeAnnotationType&&"Polygon"!==i.shapeAnnotationType||JSON.stringify(n.vertexPoints)!==JSON.stringify(i.vertexPoints)&&(n.vertexPoints=i.vertexPoints,this.isEdited=!0,this.pdfViewer.nodePropertyChange(n,{vertexPoints:i.vertexPoints}),"LineDimension"!==i.indent&&"PolyLineDimension"!==i.indent&&"PolygonDimension"!==i.indent&&"PolygonVolume"!==i.indent||(this.updateCalibrateValues(n),i.note=n.notes),this.pdfViewer.renderSelector(n.pageIndex,this.pdfViewer.annotationSelectorSettings)),"Line"===i.subType||"Arrow"===i.subType||"Distance"===i.subType||"Perimeter"===i.subType){var w=!1,C=!1,S=!1;p.lineHeadStart=n.sourceDecoraterShapes,p.lineHeadEnd=n.taregetDecoraterShapes,c.lineHeadStart=i.lineHeadStartStyle,c.lineHeadEnd=i.lineHeadEndStyle,c.borderDashArray=i.borderDashArray,this.isEdited=!0,n.taregetDecoraterShapes!==i.lineHeadEndStyle&&(C=!0),n.sourceDecoraterShapes!==i.lineHeadStartStyle&&(w=!0),n.borderDashArray!==i.borderDashArray&&(S=!0),this.pdfViewer.nodePropertyChange(n,{sourceDecoraterShapes:i.lineHeadStartStyle,taregetDecoraterShapes:i.lineHeadEndStyle,borderDashArray:i.borderDashArray}),this.triggerAnnotationPropChange(n,!1,!1,!1,!1,w,C,S),this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Line properties change","",p,c)}"Shape"!==i.type&&"Line"!==i.shapeAnnotationType&&"Square"!==i.shapeAnnotationType&&"Circle"!==i.shapeAnnotationType&&"Polygon"!==i.shapeAnnotationType||(r="shape"),"Ink"!==i.type&&"Ink"!==i.shapeAnnotationType||(r="ink"),"Measure"!==i.type&&"LineDimension"!==i.indent&&"PolyLineDimension"!==i.indent&&"PolygonDimension"!==i.indent&&"PolygonRadius"!==i.indent&&"PolygonVolume"!==i.indent||(r="shape_measure"),i.labelSettings&&this.pdfViewer.enableShapeLabel&&(this.updateFreeTextProperties(n),this.pdfViewer.nodePropertyChange(n,{labelOpacity:i.labelSettings.opacity,fontColor:i.labelSettings.fontColor,fontSize:i.labelSettings.fontSize,fontFamily:i.labelSettings.fontFamily,labelContent:n.notes,labelFillColor:i.labelSettings.fillColor}),this.isEdited=!0),this.pdfViewer.enableShapeLabel&&i.calibrate&&i.calibrate.depth&&this.pdfViewer.annotationModule.measureAnnotationModule.volumeDepth!==i.calibrate.depth&&(this.pdfViewer.annotationModule.measureAnnotationModule.volumeDepth=i.calibrate.depth,n.notes=this.pdfViewer.annotationModule.measureAnnotationModule.calculateVolume(n.vertexPoints,n.id,n.pageIndex),n.labelContent=n.notes,this.isEdited=!0,i.labelSettings&&i.labelSettings.labelContent&&(i.labelSettings.labelContent=n.notes),this.pdfViewer.nodePropertyChange(n,{labelContent:n.labelContent}),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addTextToComments(n.annotName,n.notes))}else if("FreeText"===i.type||"FreeText"===i.shapeAnnotationType){if(r="freetext",this.pdfViewer.freeTextSettings.enableAutoFit&&n.dynamicText!==i.content){var y=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",n.pageIndex).getContext("2d"),I=i.fontSize,E=void 0,v=i.fontFamily,b=this.pdfViewerBase.getZoomFactor();E=i.font.isBold?"bold "+I+"px "+v:I+"px "+v,y.font=E;var V="",D=[],x=i.content?i.content:i.dynamicText;if(x.indexOf("\n")>-1){D=x.split("\n");for(L=0;L<D.length;L++){var Q=y.measureText(D[parseInt(L.toString(),10)]),M=y.measureText(V);Q.width>M.width&&(V=D[parseInt(L.toString(),10)])}}else V=x;var F=y.measureText(V);i.bounds.width=Math.ceil(F.width+18);var T=this.pdfViewerBase.getElement("_pageDiv_"+i.pageIndex).clientWidth-i.bounds.left*b;i.bounds.width>T&&(i.bounds.width=T/b);var k=i.bounds.height;i.bounds.height=k>=n.bounds.height?k:n.bounds.height}this.calculateAnnotationBounds(n,i),i.opacity&&n.opacity!==i.opacity&&this.triggerAnnotationPropChange(n,!1,!1,!1,!0),i.fillColor&&n.fillColor!==i.fillColor&&(c.fillColor=i.fillColor,this.isEdited=!0,this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Shape Fill","",p,c),this.triggerAnnotationPropChange(n,!0,!1,!1,!1)),i.fontColor&&n.fontColor!==i.fontColor&&(c.fontColor=i.fontColor,this.isEdited=!0,this.pdfViewer.annotation.addAction(n.pageIndex,null,n,"fontColor","",p,c),this.triggerAnnotationPropChange(n,!1,!1,!1,!1)),i.strokeColor&&n.strokeColor!==i.strokeColor&&this.triggerAnnotationPropChange(n,!1,!0,!1,!1),i.thickness&&n.thickness!==i.thickness&&this.triggerAnnotationPropChange(n,!1,!1,!0,!1);var P=n.isLock;t.isNullOrUndefined(i.isLock)?t.isNullOrUndefined(i.annotationSettings.isLock)||(P=i.annotationSettings.isLock,this.isEdited=!0):(P=i.isLock,this.isEdited=!0),n.annotationSettings.isLock=P,n.isLock=P,i.content=i.content&&i.content===i.dynamicText?i.content:i.dynamicText,i.content&&n.dynamicText!==i.content&&this.triggerAnnotationPropChange(n,!1,!1,!1,!1,!1,!1,!1,!0,n.dynamicText,i.content),this.pdfViewer.nodePropertyChange(n,{opacity:i.opacity,fontColor:i.fontColor,fontSize:i.fontSize,fontFamily:i.fontFamily,dynamicText:i.content,fillColor:i.fillColor,textAlign:i.textAlign,strokeColor:i.strokeColor,thickness:i.thickness,font:i.fontStyle?this.setFreeTextFontStyle(i.fontStyle):this.setFreeTextFontStyle(i.font),isReadonly:i.isReadonly}),i.content&&n&&this.updateAnnotationComments(n.annotName,i.content);var N=document.getElementById(this.pdfViewer.element.id+"_commenttextbox_editor");new a.InPlaceEditor({value:i.content}).appendTo(N)}if(n.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),n.customData!==i.customData&&(n.customData=i.customData,this.isEdited=!0),n.isPrint!==i.isPrint&&(n.isPrint=i.isPrint,this.isEdited=!0),"TextMarkup"!==i.type&&"textMarkup"!==i.shapeAnnotationType&&this.pdfViewer.renderDrawing(),n.author!==i.author){c.author=i.author,n.author=i.author,this.isEdited=!0,this.triggerAnnotationPropChange(n,!1,!0,!1,!1);var R=document.getElementById(i.annotationId).firstChild.firstChild.childNodes[1];R instanceof Element&&R.classList.contains("e-pv-comment-title")&&(R.children[0].textContent=i.author,R.children[1].textContent=" - "+this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime())}if(!t.isNullOrUndefined(i.setState)&&n.review.state!==i.setState){n.review.state=i.setState,i.review.state=i.setState,this.isEdited=!0,this.selectAnnotation(i.annotationId);O={item:{text:i.setState}};this.pdfViewer.annotationModule.stickyNotesAnnotationModule.commentMenuItemSelect(O)}for(var L=0;L<i.comments.length;L++){var U=i.comments[parseInt(L.toString(),10)];if(!t.isNullOrUndefined(U)&&n.comments[parseInt(L.toString(),10)].annotName===i.commentId&&i.commentId){if(n.comments[parseInt(L.toString(),10)].author!==U.author){document.getElementById(i.commentId).firstChild.childNodes[0].textContent=U.author+" - "+this.pdfViewer.annotationModule.stickyNotesAnnotationModule.getDateAndTime(),n.comments[parseInt(L.toString(),10)].author=U.author,i.comments[parseInt(L.toString(),10)].review.author=U.author,this.isEdited=!0;break}if(n.comments[parseInt(L.toString(),10)].review.state!==U.review.state){n.comments[parseInt(L.toString(),10)].review.state=U.review.state;var O={item:{text:U.review.state}};this.pdfViewer.annotationModule.stickyNotesAnnotationModule.commentMenuItemSelect(O),this.isEdited=!0;break}}}this.updateCollection(o,s,i,r),this.isEdited&&this.pdfViewerBase.updateDocumentEditedProperty(!0)}this.isEdited=!1},s.prototype.annotationPropertyChange=function(e,t,i,n,o){this.pdfViewer.nodePropertyChange(e,{opacity:t}),this.triggerAnnotationPropChange(e,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(e.pageIndex,null,e,i,"",n,o)},s.prototype.calculateAnnotationBounds=function(e,t){var i=this.pdfViewerBase.convertBounds(e.wrapper.bounds),n=this.pdfViewerBase.convertBounds(t.bounds);if(i&&n&&(JSON.stringify(i)!==JSON.stringify(n)&&Math.abs(i.Y-n.Y)>2||Math.abs(i.X-n.X)>2||Math.abs(i.Width-n.Width)>2||Math.abs(i.Height-n.Height)>2)){var o={x:n.X+n.Width/2,y:n.Y+n.Height/2,width:n.Width,height:n.Height};this.pdfViewer.nodePropertyChange(e,{bounds:o}),this.triggerAnnotationPropChange(e,!1,!1,!1,!1),this.pdfViewer.renderSelector(e.pageIndex,this.pdfViewer.annotationSelectorSettings),this.isEdited=!0}},s.prototype.updateFreeTextProperties=function(e){e.labelSettings&&(e.labelSettings.fillColor&&(e.labelFillColor=e.labelSettings.fillColor),e.labelSettings.fontColor&&(e.fontColor=e.labelSettings.fontColor),e.labelSettings.fontSize&&(e.fontSize=e.labelSettings.fontSize),e.labelSettings.fontFamily&&(e.fontFamily=e.labelSettings.fontFamily),e.labelSettings.opacity&&(e.labelOpacity=e.labelSettings.opacity),e.labelSettings.labelContent&&(e.labelContent=e.labelSettings.labelContent))},s.prototype.updateAnnotationComments=function(e,t){var i=document.getElementById(e);i&&i.childNodes&&(i.childNodes[0].ej2_instances?i.childNodes[0].ej2_instances[0].value=t:i.childNodes[0].childNodes&&i.childNodes[0].childNodes[1].ej2_instances&&(i.childNodes[0].childNodes[1].ej2_instances[0].value=t))},s.prototype.addFreeTextProperties=function(e,t){this.pdfViewer.enableShapeLabel&&e&&t&&(t.labelSettings={fontColor:e.fontColor,fontSize:e.fontSize,fontFamily:e.fontFamily,opacity:e.labelOpacity,labelContent:e.labelContent,fillColor:e.labelFillColor})},s.prototype.updateMeasurementSettings=function(){if(this.pdfViewer.enableAnnotation&&this.pdfViewer.enableMeasureAnnotation){var e="1 "+this.pdfViewer.measurementSettings.conversionUnit+" = "+this.pdfViewer.measurementSettings.scaleRatio+" "+this.pdfViewer.measurementSettings.displayUnit;this.measureAnnotationModule.updateMeasureValues(e,this.pdfViewer.measurementSettings.displayUnit,this.pdfViewer.measurementSettings.conversionUnit,this.pdfViewer.measurementSettings.depth)}},s.prototype.updateCollection=function(e,t,i,n){var o,r=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_"+n);if(this.pdfViewerBase.isStorageExceed&&(r=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+n]),r){var a=JSON.parse(r),s=this.getPageCollection(a,t);if(null!=s&&a[parseInt(s.toString(),10)]&&null!==(o=a[parseInt(s.toString(),10)].annotations)){for(var l=0;l<o.length;l++)if(o[parseInt(l.toString(),10)].annotName===e){var d=this.modifyAnnotationProperties(o[parseInt(l.toString(),10)],i,n);o[parseInt(l.toString(),10)]=d,this.storeAnnotationCollections(d,t)}this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_"+n),a[parseInt(s.toString(),10)]&&(a[parseInt(s.toString(),10)].annotations=o);var A=JSON.stringify(a);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+n]=A:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_"+n,A)}}},s.prototype.modifyAnnotationProperties=function(e,i,n){var o=!1;if(i&&!0===i.isCommentLock&&(e.isCommentLock=i.isCommentLock),t.isNullOrUndefined(i)||t.isNullOrUndefined(i.annotationSettings)||!0!==i.annotationSettings.isLock||!0!==i.isCommentLock||(o=!0),i.comments)for(a=0;a<i.comments.length;a++)t.isNullOrUndefined(i.comments[parseInt(a.toString(),10)].isLock)||t.isNullOrUndefined(e.comments[parseInt(a.toString(),10)])||(e.comments[parseInt(a.toString(),10)].isLock=i.comments[parseInt(a.toString(),10)].isLock);if(i&&""!==i.note&&void 0!==i.note&&(e.note=i.note),i.review&&(e.review=i.review),i.commentId&&i.editComment&&"edit"===i.commentType){var r=document.getElementById(i.commentId);i.annotationId===i.commentId&&(e.note=r.childNodes[1].ej2_instances[0].value);for(a=0;a<i.comments.length;a++)i.comments[parseInt(a.toString(),10)].annotName===i.commentId&&(e.comments[parseInt(a.toString(),10)].note=r.childNodes[1].ej2_instances[0].value)}for(var a=0;a<i.comments.length;a++){var s=i.comments[parseInt(a.toString(),10)];if(!t.isNullOrUndefined(s)&&i.commentId&&s.annotName===i.commentId){e.comments[parseInt(a.toString(),10)].author=s.author,e.comments[parseInt(a.toString(),10)].review.author=s.author,e.comments[parseInt(a.toString(),10)].review.state=s.review.state;break}}if("textMarkup"===n)e.opacity=i.opacity,e.color=i.color,e.allowedInteractions=i.allowedInteractions,e.annotationSettings=i.annotationSettings;else if("sticky"===n||"stamp"===n)i.bounds&&(e.bounds=i.bounds),e.opacity=i.opacity,e.annotationSettings=i.annotationSettings,e.allowedInteractions=i.allowedInteractions,i.stampAnnotationPath&&e.stampAnnotationPath!==i.stampAnnotationPath&&(e.stampAnnotationPath=i.stampAnnotationPath,e.template="");else if("ink"===n)i.bounds&&(e.bounds=i.bounds),e.opacity=i.opacity,e.strokeColor=i.strokeColor,e.thickness=i.thickness,e.annotationSettings=i.annotationSettings,e.allowedInteractions=i.allowedInteractions;else if("shape"===n||"shape_measure"===n){if("Line"===i.subType||"Arrow"===i.subType||"Distance"===i.subType||"Perimeter"===i.subType?(i.bounds&&(e.bounds=i.bounds),i.vertexPoints&&(e.vertexPoints=i.vertexPoints),e.opacity=i.opacity,e.fillColor=i.fillColor,e.strokeColor=i.strokeColor,e.thickness=i.thickness,e.borderDashArray=i.borderDashArray,e.lineHeadStart=this.getArrowTypeForCollection(i.lineHeadStartStyle),e.lineHeadEnd=this.getArrowTypeForCollection(i.lineHeadEndStyle),e.annotationSettings=i.annotationSettings,e.allowedInteractions=i.allowedInteractions):(i.bounds&&(e.bounds=i.bounds),i.vertexPoints&&(e.vertexPoints=i.vertexPoints),e.opacity=i.opacity,e.fillColor=i.fillColor,e.strokeColor=i.strokeColor,e.thickness=i.thickness,e.annotationSettings=i.annotationSettings,e.allowedInteractions=i.allowedInteractions,i.calibrate&&e.annotName===i.annotationId&&e.calibrate.depth!==i.calibrate.depth&&(e.calibrate.depth=i.calibrate.depth,this.pdfViewer.annotationModule.measureAnnotationModule.volumeDepth=i.calibrate.depth,e.note=this.pdfViewer.annotationModule.measureAnnotationModule.calculateVolume(e.vertexPoints))),this.pdfViewer.enableShapeLabel&&i.labelSettings){var l=i.labelSettings.labelContent;e.note=l,e.fontSize=i.labelSettings.fontSize,e.labelFillColor=i.labelSettings.fillColor,e.labelContent&&(e.labelContent=l),e.labelSettings&&(e.labelSettings=i.labelSettings),this.updateAnnotationComments(e.annotName,l)}}else"freetext"===n&&(i.bounds&&(e.bounds=i.bounds),e.opacity=i.opacity,e.strokeColor=i.strokeColor,e.thickness=i.thickness,i.content&&(e.dynamicText=i.content),e.fontFamily=i.fontFamily,e.fontSize=i.fontSize,e.fontColor=i.fontColor,e.fillColor=i.fillColor,e.font=i.font?i.font:i.fontStyle,e.textAlign=i.textAlign,e.annotationSettings=i.annotationSettings,e.allowedInteractions=i.allowedInteractions,e.isReadonly=i.isReadonly);return e.author=i.author,e.customData=i.customData,e.subject=i.subject,e.modifiedDate=o?i.modifiedDate:this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),e.isPrint=i.isPrint,i.annotationSettings&&!t.isNullOrUndefined(i.annotationSettings.isLock)&&(e.isLocked=i.annotationSettings.isLock),t.isNullOrUndefined(i.annotationSelectorSettings)||e.annotationSelectorSettings===i.annotationSelectorSettings||(e.annotationSelectorSettings=i.annotationSelectorSettings),e},s.prototype.updateAnnotationAuthor=function(e,i){var n;return"sticky"===e?"Guest"!==(n="Guest"!==this.pdfViewer.stickyNotesSettings.author?this.pdfViewer.stickyNotesSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"stamp"===e?"Guest"!==(n="Guest"!==this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"shape"===e?"Line"===i?"Guest"!==(n="Guest"!==this.pdfViewer.lineSettings.author?this.pdfViewer.lineSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"LineWidthArrowHead"===i||"Arrow"===i?"Guest"!==(n="Guest"!==this.pdfViewer.arrowSettings.author?this.pdfViewer.arrowSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Circle"===i||"Ellipse"===i||"Oval"===i?"Guest"!==(n="Guest"!==this.pdfViewer.circleSettings.author?this.pdfViewer.circleSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Rectangle"===i||"Square"===i?"Guest"!==(n="Guest"!==this.pdfViewer.rectangleSettings.author?this.pdfViewer.rectangleSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Polygon"===i&&"Guest"!==(n="Guest"!==this.pdfViewer.polygonSettings.author?this.pdfViewer.polygonSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"measure"===e?"Distance"===i||"Distance calculation"===i?"Guest"!==(n="Guest"!==this.pdfViewer.distanceSettings.author?this.pdfViewer.distanceSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Perimeter"===i||"Perimeter calculation"===i?"Guest"!==(n="Guest"!==this.pdfViewer.perimeterSettings.author?this.pdfViewer.perimeterSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Radius"===i||"Radius calculation"===i?"Guest"!==(n="Guest"!==this.pdfViewer.radiusSettings.author?this.pdfViewer.radiusSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Area"===i||"Area calculation"===i?"Guest"!==(n="Guest"!==this.pdfViewer.areaSettings.author?this.pdfViewer.areaSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Volume"!==i&&"Volume calculation"!==i||"Guest"!==(n="Guest"!==this.pdfViewer.volumeSettings.author?this.pdfViewer.volumeSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"textMarkup"===e?"Highlight"===i?"Guest"!==(n="Guest"!==this.pdfViewer.highlightSettings.author?this.pdfViewer.highlightSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Underline"===i?"Guest"!==(n="Guest"!==this.pdfViewer.underlineSettings.author?this.pdfViewer.underlineSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Strikethrough"===i?"Guest"!==(n="Guest"!==this.pdfViewer.strikethroughSettings.author?this.pdfViewer.strikethroughSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"Squiggly"===i?"Guest"!==(n="Guest"!==this.pdfViewer.squigglySettings.author?this.pdfViewer.squigglySettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):n=this.pdfViewer.annotationSettings.author:"freeText"===e?"Guest"!==(n="Guest"!==this.pdfViewer.freeTextSettings.author?this.pdfViewer.freeTextSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)):"ink"===e&&"Guest"!==(n="Guest"!==this.pdfViewer.inkAnnotationSettings.author?this.pdfViewer.inkAnnotationSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest")&&this.pdfViewer.enableHtmlSanitizer&&(n=t.SanitizeHtmlHelper.sanitize(n)),n||(n=this.pdfViewer.annotationSettings.author),n},s.prototype.nameToHash=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",yellow:"#ffff00",yellowgreen:"#9acd32",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkred:"#8b0000",darksalmon:"#e9967a",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",indigo:"#4b0082",ivory:"#fffff0",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",pink:"#ffc0cb",plum:"#dda0dd",steelblue:"#4682b4",violet:"#ee82ee",powderblue:"#b0e0e6",purple:"#800080",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0"};return void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:""},s.prototype.updateFreeTextFontStyle=function(e){return 1===e.isBold?1:2===e.isItalic?2:4===e.isUnderline?4:8===e.isStrikeout?8:{isBold:e.isBold,isItalic:e.isItalic,isUnderline:e.isUnderline,isStrikeout:e.isStrikeout}},s.prototype.setFreeTextFontStyle=function(e){return 1===e?{isBold:!0}:2===e?{isItalic:!0}:4===e?{isUnderline:!0}:8===e?{isStrikeout:!0}:{isBold:e.isBold,isItalic:e.isItalic,isUnderline:e.isUnderline,isStrikeout:e.isStrikeout}},s.prototype.findAnnotationSettings=function(e,t){var i=this.pdfViewer.annotationSettings;if(e){var n=e.shapeAnnotationType;"StickyNotes"===n&&this.pdfViewer.stickyNotesSettings?i=this.pdfViewer.stickyNotesSettings:"Stamp"===n||"Image"===n?(i=this.pdfViewer.stampSettings,"Image"===n&&(i=this.pdfViewer.customStampSettings)):"FreeText"===n?i=this.pdfViewer.freeTextSettings:""===e.measureType?"Line"===n?i=this.pdfViewer.lineSettings:"Arrow"===n||"LineWidthArrowHead"===n?i=this.pdfViewer.arrowSettings:"Rectangle"===n?i=this.pdfViewer.rectangleSettings:"Circle"===n||"Ellipse"===n?i=this.pdfViewer.circleSettings:"Polygon"===n&&this.pdfViewer.polygonSettings&&(i=this.pdfViewer.polygonSettings):""!==e.measureType&&("Distance"===e.measureType?i=this.pdfViewer.distanceSettings:"Perimeter"===e.measureType?i=this.pdfViewer.perimeterSettings:"Area"===e.measureType?i=this.pdfViewer.areaSettings:"Radius"===e.measureType?i=this.pdfViewer.radiusSettings:"Volume"===e.measureType&&(i=this.pdfViewer.volumeSettings))}var o=e?e.annotationSettings:{};return o&&(o.minWidth||o.maxWidth||o.minHeight||o.maxHeight)?this.updateSettings(o):t?this.updateSettings(i):i},s.prototype.updateAnnotationSettings=function(e){var t=this.pdfViewer.annotationSettings;return"sticky"===e.AnnotType?t=this.pdfViewer.stickyNotesSettings:"stamp"===e.AnnotType||"image"===e.AnnotType||"Image"===e.AnnotType?(t=this.pdfViewer.stampSettings,"image"!==e.Subject&&"Image"!==e.Subject||(t=this.pdfViewer.customStampSettings)):"freeText"===e.AnnotType?t=this.pdfViewer.freeTextSettings:"ink"===e.AnnotType||"Ink"===e.AnnotationType?t=this.pdfViewer.inkAnnotationSettings:"shape"===e.AnnotType?"Line"===e.Subject?t=this.pdfViewer.lineSettings:"Arrow"===e.Subject||"LineWidthArrowHead"===e.Subject?t=this.pdfViewer.arrowSettings:"Rectangle"===e.Subject||"Square"===e.Subject?t=this.pdfViewer.rectangleSettings:"Circle"===e.Subject||"Ellipse"===e.Subject||"Oval"===e.Subject?t=this.pdfViewer.circleSettings:"Polygon"===e.Subject&&(t=this.pdfViewer.polygonSettings):"shape_measure"===e.AnnotType?"Distance"===e.Subject||"Distance calculation"===e.Subject?t=this.pdfViewer.distanceSettings:"Perimeter"===e.Subject||"Perimeter calculation"===e.Subject?t=this.pdfViewer.perimeterSettings:"Area"===e.Subject||"Area calculation"===e.Subject?t=this.pdfViewer.areaSettings:"Radius"===e.Subject||"Radius calculation"===e.Subject?t=this.pdfViewer.radiusSettings:"Volume"!==e.Subject&&"Volume calculation"!==e.Subject||(t=this.pdfViewer.volumeSettings):"textMarkup"===e.shapeAnnotationType&&("Highlight"===e.subject?t=this.pdfViewer.highlightSettings:"Underline"===e.subject?t=this.pdfViewer.underlineSettings:"Strikethrough"===e.subject?t=this.pdfViewer.strikethroughSettings:"Squiggly"===e.subject&&(t=this.pdfViewer.squigglySettings)),this.updateSettings(t)},s.prototype.updateSettings=function(e){var t=0,i=0,n=0,o=0,r=!1,a=!0,s=this.pdfViewer.annotationSettings;return e.minWidth||e.maxWidth||e.minHeight||e.maxHeight?(t=e.maxHeight?e.maxHeight:2e3,i=e.maxWidth?e.maxWidth:2e3,n=e.minHeight?e.minHeight:0,o=e.minWidth?e.minWidth:0):(s.minWidth||s.maxWidth||s.minHeight||s.maxHeight)&&(t=s.maxHeight?s.maxHeight:2e3,i=s.maxWidth?s.maxWidth:2e3,n=s.minHeight?s.minHeight:0,o=s.minWidth?s.minWidth:0),r=e.isLock?e.isLock:!!s.isLock&&s.isLock,a=e.isPrint,{minWidth:o,maxWidth:i,minHeight:n,maxHeight:t,isLock:r,isPrint:a}},s.prototype.getOverlappedAnnotations=function(e,t){for(var i,n=this.getPageShapeAnnotations(t),o=0;o<n.length;o++)if(e.annotName===n[parseInt(o.toString(),10)].annotName){i=n[parseInt(o.toString(),10)];break}return this.findOverlappedAnnotations(i,n)},s.prototype.getPageShapeAnnotations=function(e){var t=[],i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_ink");if(i){var n=JSON.parse(i);if(n&&null!=(y=this.getPageCollection(n,e))&&n[parseInt(y.toString(),10)]){var o=n[parseInt(y.toString(),10)].annotations;if(o&&o.length>0)for(E=0;E<o.length;E++)t.push(o[parseInt(E.toString(),10)])}}var r=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape");if(r){var a=JSON.parse(r);if(a&&null!=(y=this.getPageCollection(a,e))&&a[parseInt(y.toString(),10)]){var s=a[parseInt(y.toString(),10)].annotations;if(s&&s.length>0)for(E=0;E<s.length;E++)t.push(s[parseInt(E.toString(),10)])}}var l=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape_measure");if(l){var d=JSON.parse(l);if(d&&null!=(y=this.getPageCollection(d,e))&&d[parseInt(y.toString(),10)]){var A=d[parseInt(y.toString(),10)].annotations;if(A&&A.length>0)for(E=0;E<A.length;E++)t.push(A[parseInt(E.toString(),10)])}}var h=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp");if(h){var p=JSON.parse(h);if(p&&null!=(y=this.getPageCollection(p,e))&&p[parseInt(y.toString(),10)]){var c=p[parseInt(y.toString(),10)].annotations;if(c&&c.length>0)for(E=0;E<c.length;E++)t.push(c[parseInt(E.toString(),10)])}}var g=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_freetext");if(g){var u=JSON.parse(g);if(u&&null!=(y=this.getPageCollection(u,e))&&u[parseInt(y.toString(),10)]){var f=u[parseInt(y.toString(),10)].annotations;if(f&&f.length>0)for(E=0;E<f.length;E++)t.push(f[parseInt(E.toString(),10)])}}var m=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sticky");if(m){var w=JSON.parse(m);if(w&&null!=(y=this.getPageCollection(w,e))&&w[parseInt(y.toString(),10)]){var C=w[parseInt(y.toString(),10)].annotations;if(C&&C.length>0)for(E=0;E<C.length;E++)t.push(C[parseInt(E.toString(),10)])}}var B=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_textMarkup");if(B){var S=JSON.parse(B);if(S){var y=this.getPageCollection(S,e);if(null!=y&&S[parseInt(y.toString(),10)]){var I=S[parseInt(y.toString(),10)].annotations;if(I&&I.length>0)for(var E=0;E<I.length;E++)t.push(I[parseInt(E.toString(),10)])}}}return t},s.prototype.findOverlappedAnnotations=function(e,t){if(this.overlappedAnnotations=[],e&&e.bounds)if("textMarkup"===e.shapeAnnotationType)for(var i=0;i<e.bounds.length;i++){var n=this.orderTextMarkupBounds(e.bounds[parseInt(i.toString(),10)]);this.calculateOverlappedAnnotationBounds(e,n,t)}else this.calculateOverlappedAnnotationBounds(e,e.bounds,t);return this.overlappedAnnotations},s.prototype.calculateOverlappedAnnotationBounds=function(e,t,i){var n=t;"Ink"===e.shapeAnnotationType&&(n={left:t.x,top:t.y,height:t.height,width:t.width});for(var o=parseInt(n.left,10),r=parseInt(n.top,10),a=parseInt(n.top+n.height,10),s=parseInt(n.left+n.width,10),l=0;l<i.length;l++)if(e.annotName===i[parseInt(l.toString(),10)].annotName)this.checkOverlappedCollections(i[parseInt(l.toString(),10)],this.overlappedAnnotations);else{var d=1;"textMarkup"===i[parseInt(l.toString(),10)].shapeAnnotationType&&(d=i[parseInt(l.toString(),10)].bounds.length);for(var A=0;A<d;A++){var h=void 0,p=i[parseInt(l.toString(),10)].bounds;if("Ink"===i[parseInt(l.toString(),10)].shapeAnnotationType&&(p={left:p.x,top:p.y,height:p.height,width:p.width}),h="textMarkup"!==i[parseInt(l.toString(),10)].shapeAnnotationType&&1===d?p:this.orderTextMarkupBounds(p[parseInt(A.toString(),10)])){var c=!1;(o<=parseInt(h.left,10)&&s>=parseInt(h.left,10)||o<=parseInt(h.left+h.width,10)&&s>=parseInt(h.left+h.width,10))&&(c=!0),c&&(c=r<=parseInt(h.top,10)&&a>=parseInt(h.top,10)||r<=parseInt(h.top+h.height,10)&&a>=parseInt(h.top+h.height,10)),c?this.checkOverlappedCollections(i[parseInt(l.toString(),10)],this.overlappedAnnotations):((parseInt(h.left,10)<=o&&parseInt(h.left+h.width,10)>=o||s>=parseInt(h.left,10)&&s<=parseInt(h.left+h.width,10))&&(c=!0),c&&(c=parseInt(h.top,10)<=r&&parseInt(h.top+h.height,10)>=r||a>=parseInt(h.top,10)&&a<=parseInt(h.top+h.height,10)),c?this.checkOverlappedCollections(i[parseInt(l.toString(),10)],this.overlappedAnnotations):((o<=parseInt(h.left,10)&&s>=parseInt(h.left,10)||o<=parseInt(h.left+h.width,10)&&s>=parseInt(h.left+h.width,10))&&(c=!0),c&&(c=parseInt(h.top,10)<=r&&parseInt(h.top+h.height,10)>=r||a>=parseInt(h.top,10)&&a<=parseInt(h.top+h.height,10)),c?this.checkOverlappedCollections(i[parseInt(l.toString(),10)],this.overlappedAnnotations):((parseInt(h.left,10)<=o&&parseInt(h.left+h.width,10)>=o||s>=parseInt(h.left,10)&&s<=parseInt(h.left+h.width,10))&&(c=!0),c&&(c=r<=parseInt(h.top,10)&&a>=parseInt(h.top,10)||r<=parseInt(h.top+h.height,10)&&a>=parseInt(h.top+h.height,10)),c&&this.checkOverlappedCollections(i[parseInt(l.toString(),10)],this.overlappedAnnotations))))}}}},s.prototype.findAnnotationMode=function(e,t,i){var n=this.pdfViewer.viewerBase.importedAnnotation[parseInt(t.toString(),10)];if(n){var o=void 0;if("shape"===i?o=n.shapeAnnotation:"shape_measure"===i?o=n.measureShapeAnnotation:"freeText"===i?o=n.freeTextAnnotation:"stamp"===i?o=n.stampAnnotations:"sticky"===i?o=n.stickyNotesAnnotation:"textMarkup"===i&&(o=n.textMarkupAnnotation),o)for(var r=0;r<o.length;r++)if(o[parseInt(r.toString(),10)].AnnotName===e.AnnotName)return"Imported Annotation"}return"Existing Annotation"},s.prototype.checkOverlappedCollections=function(e,t){if(t.length>0){for(var i=!1,n=0;n<t.length;n++)if(e.annotName===t[parseInt(n.toString(),10)].annotName&&e.bounds===t[parseInt(n.toString(),10)].bounds){i=!0;break}i||t.push(e)}else t.push(e)},s.prototype.orderTextMarkupBounds=function(e){return e.Left||e.Width?{left:e.Left,top:e.Top,height:e.Height,width:e.Width}:{left:e.left,top:e.top,height:e.height,width:e.width}},s.prototype.updateModifiedDate=function(e){if(e.modifiedDate&&(e.modifiedDate=this.setAnnotationModifiedDate(e.modifiedDate)),e.comments&&e.comments.length>0)for(var t=0;t<e.comments.length;t++)e.comments[parseInt(t.toString(),10)].modifiedDate&&(e.comments[parseInt(t.toString(),10)].modifiedDate=this.setAnnotationModifiedDate(e.comments[parseInt(t.toString(),10)].modifiedDate),e.comments[parseInt(t.toString(),10)].review&&e.comments[parseInt(t.toString(),10)].review.modifiedDate&&(e.comments[parseInt(t.toString(),10)].review.modifiedDate=this.setAnnotationModifiedDate(e.comments[parseInt(t.toString(),10)].review.modifiedDate)));e.review&&e.review.modifiedDate&&(e.review.modifiedDate=this.setAnnotationModifiedDate(e.review.modifiedDate))},s.prototype.setAnnotationModifiedDate=function(e){var t,i;if(""===e)return e;var n=parseInt(e.split(" ")[1].split(":")[0],10);t=3===e.split(" ").length?n+":"+e.split(" ")[1].split(":")[1]+":"+e.split(" ")[1].split(":")[2]+" "+e.split(" ")[2]:n>=12?12===n?n+":"+e.split(" ")[1].split(":")[1]+":"+e.split(" ")[1].split(":")[2]+" PM":n-12+":"+e.split(" ")[1].split(":")[1]+":"+e.split(" ")[1].split(":")[2]+" PM":n+":"+e.split(" ")[1].split(":")[1]+":"+e.split(" ")[1].split(":")[2]+" AM";var o=e.split(" ")[0];return i=e.split(",").length>1?o+" "+t:o+", "+t,/\u0041\u004D|\u0050\u004D/i.test(i)&&(i=new Date(i).toISOString()),i},s.prototype.clear=function(){this.shapeAnnotationModule&&(this.shapeAnnotationModule.shapeCount=0),this.measureAnnotationModule&&(this.measureAnnotationModule.measureShapeCount=0),this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.clear(),this.stickyNotesAnnotationModule&&this.stickyNotesAnnotationModule.clear(),this.pdfViewer.refresh(),this.undoCommentsElement=[],this.redoCommentsElement=[],this.overlappedAnnotations=[],this.previousIndex=null,this.pdfViewer.annotation&&this.pdfViewer.annotation.stampAnnotationModule&&(this.pdfViewer.annotation.stampAnnotationModule.stampPageNumber=[]),this.pdfViewer.annotation&&this.pdfViewer.annotation.freeTextAnnotationModule&&(this.pdfViewer.annotation.freeTextAnnotationModule.freeTextPageNumbers=[],this.freeTextAnnotationModule.previousText="Type Here"),this.pdfViewer.annotation&&this.pdfViewer.annotation.inkAnnotationModule&&(this.pdfViewer.annotation.inkAnnotationModule.inkAnnotationindex=[]),Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_shape"),Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_shape_measure"),Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_stamp"),Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_sticky")},s.prototype.retrieveAnnotationCollection=function(){return this.pdfViewer.annotationCollection},s.prototype.checkAllowedInteractions=function(e,t){var i=this.updateAnnotationAllowedInteractions(t);if(i&&i.length>0)for(var n=0;n<i.length;n++)if("Select"===e){if("Move"===i[parseInt(n.toString(),10)]||"Resize"===i[parseInt(n.toString(),10)]||"Delete"===i[parseInt(n.toString(),10)]||"PropertyChange"===i[parseInt(n.toString(),10)]||"Select"===i[parseInt(n.toString(),10)])return!0}else if(i[parseInt(n.toString(),10)]===e)return!0;return!1},s.prototype.checkContextMenuDeleteItem=function(e){var t=this.findCurrentAnnotation();t&&t.annotationSettings&&(t.annotationSettings.isLock?this.checkAllowedInteractions("Delete",t)?e.enableItems([this.pdfViewer.localeObj.getConstant("Delete Context")],!0):e.enableItems([this.pdfViewer.localeObj.getConstant("Delete Context")],!1):e.enableItems([this.pdfViewer.localeObj.getConstant("Delete Context")],!0))},s.prototype.isEnableDelete=function(){var e=this.findCurrentAnnotation();return!(!e||!e.annotationSettings)&&(!e.annotationSettings.isLock||!!this.checkAllowedInteractions("Delete",e))},s.prototype.findCurrentAnnotation=function(){return this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.textMarkupAnnotationModule.currentTextMarkupAnnotation:this.pdfViewer.selectedItems.annotations&&this.pdfViewer.selectedItems.annotations[0]?this.pdfViewer.selectedItems.annotations[0]:null},s.prototype.updateAnnotationAllowedInteractions=function(e){var t=["None"];return e&&("FreeText"===e.shapeAnnotationType&&this.pdfViewer.freeTextSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.freeTextSettings.allowedInteractions,e.allowedInteractions):"Ink"===e.shapeAnnotationType&&this.pdfViewer.inkAnnotationSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.inkAnnotationSettings.allowedInteractions,e.allowedInteractions):"StickyNotes"===e.shapeAnnotationType&&this.pdfViewer.stickyNotesSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.stickyNotesSettings.allowedInteractions,e.allowedInteractions):"Stamp"===e.shapeAnnotationType&&this.pdfViewer.stampSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.stampSettings.allowedInteractions,e.allowedInteractions):"Image"===e.shapeAnnotationType&&this.pdfViewer.customStampSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.customStampSettings.allowedInteractions,e.allowedInteractions):"textMarkup"===e.shapeAnnotationType?"Highlight"===e.textMarkupAnnotationType&&this.pdfViewer.highlightSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.highlightSettings.allowedInteractions,e.allowedInteractions):"Underline"===e.textMarkupAnnotationType&&this.pdfViewer.underlineSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.underlineSettings.allowedInteractions,e.allowedInteractions):"Strikethrough"===e.textMarkupAnnotationType&&this.pdfViewer.strikethroughSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.strikethroughSettings.allowedInteractions,e.allowedInteractions):"Squiggly"===e.textMarkupAnnotationType&&this.pdfViewer.squigglySettings.allowedInteractions&&(t=this.checkAllowedInteractionSettings(this.pdfViewer.squigglySettings.allowedInteractions,e.allowedInteractions)):""!==e.measureType?"Distance"===e.measureType&&this.pdfViewer.distanceSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.distanceSettings.allowedInteractions,e.allowedInteractions):"Perimeter"===e.measureType&&this.pdfViewer.perimeterSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.perimeterSettings.allowedInteractions,e.allowedInteractions):"Radius"===e.measureType&&this.pdfViewer.radiusSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.radiusSettings.allowedInteractions,e.allowedInteractions):"Area"===e.measureType&&this.pdfViewer.areaSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.areaSettings.allowedInteractions,e.allowedInteractions):"Volume"===e.measureType&&this.pdfViewer.volumeSettings.allowedInteractions&&(t=this.checkAllowedInteractionSettings(this.pdfViewer.volumeSettings.allowedInteractions,e.allowedInteractions)):"Line"===e.shapeAnnotationType&&this.pdfViewer.lineSettings.allowedInteractions?t=this.checkAllowedInteractionSettings(this.pdfViewer.lineSettings.allowedInteractions,e.allowedInteractions):"Arrow"!==e.shapeAnnotationType&&"LineWidthArrowHead"!==e.shapeAnnotationType||!this.pdfViewer.arrowSettings.allowedInteractions?"Circle"!==e.shapeAnnotationType&&"Ellipse"!==e.shapeAnnotationType&&"Oval"!==e.shapeAnnotationType||!this.pdfViewer.circleSettings.allowedInteractions?"Rectangle"!==e.shapeAnnotationType&&"Square"!==e.shapeAnnotationType||!this.pdfViewer.rectangleSettings.allowedInteractions?"Polygon"===e.shapeAnnotationType&&this.pdfViewer.polygonSettings.allowedInteractions&&(t=this.checkAllowedInteractionSettings(this.pdfViewer.polygonSettings.allowedInteractions,e.allowedInteractions)):t=this.checkAllowedInteractionSettings(this.pdfViewer.rectangleSettings.allowedInteractions,e.allowedInteractions):t=this.checkAllowedInteractionSettings(this.pdfViewer.circleSettings.allowedInteractions,e.allowedInteractions):t=this.checkAllowedInteractionSettings(this.pdfViewer.arrowSettings.allowedInteractions,e.allowedInteractions)),t},s.prototype.checkIsLockSettings=function(e){var t=!1;return e&&("FreeText"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.freeTextSettings.isLock):"Ink"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.inkAnnotationSettings.isLock):"StickyNotes"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.stickyNotesSettings.isLock):"Stamp"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.stampSettings.isLock):"Image"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.customStampSettings.isLock):"textMarkup"===e.shapeAnnotationType?"Highlight"===e.textMarkupAnnotationType?t=this.checkLockSettings(this.pdfViewer.highlightSettings.isLock):"Underline"===e.textMarkupAnnotationType?t=this.checkLockSettings(this.pdfViewer.underlineSettings.isLock):"Strikethrough"===e.textMarkupAnnotationType?t=this.checkLockSettings(this.pdfViewer.strikethroughSettings.isLock):"Squiggly"===e.textMarkupAnnotationType&&(t=this.checkLockSettings(this.pdfViewer.squigglySettings.isLock)):""!==e.measureType?"Distance"===e.measureType?t=this.checkLockSettings(this.pdfViewer.distanceSettings.isLock):"Perimeter"===e.measureType?t=this.checkLockSettings(this.pdfViewer.perimeterSettings.isLock):"Radius"===e.measureType?t=this.checkLockSettings(this.pdfViewer.radiusSettings.isLock):"Area"===e.measureType?t=this.checkLockSettings(this.pdfViewer.areaSettings.isLock):"Volume"===e.measureType&&(t=this.checkLockSettings(this.pdfViewer.volumeSettings.isLock)):"Line"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.lineSettings.isLock):"Arrow"===e.shapeAnnotationType||"LineWidthArrowHead"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.arrowSettings.isLock):"Circle"===e.shapeAnnotationType||"Ellipse"===e.shapeAnnotationType||"Oval"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.circleSettings.isLock):"Rectangle"===e.shapeAnnotationType||"Square"===e.shapeAnnotationType?t=this.checkLockSettings(this.pdfViewer.rectangleSettings.isLock):"Polygon"===e.shapeAnnotationType&&(t=this.checkLockSettings(this.pdfViewer.polygonSettings.isLock))),t},s.prototype.checkLockSettings=function(e){var t=!1;return(e||this.pdfViewer.annotationSettings.isLock)&&(t=!0),t},s.prototype.restrictContextMenu=function(){var e=!1,t=this.findCurrentAnnotation();return t&&this.checkIsLockSettings(t)&&this.checkAllowedInteractions("Select",t)&&(e=!0),e},s.prototype.checkAllowedInteractionSettings=function(e,t){if(t){if(1!==t.length)return t;if("None"!==t[0])return t}if(e){if(1!==e.length)return e;if("None"!==e[0])return e}return this.pdfViewer.annotationSettings.allowedInteractions?this.pdfViewer.annotationSettings.allowedInteractions:["None"]},s.prototype.getValue=function(e,t){if(t=t?t.toLowerCase():"hex","r"===e[0]){i=this.convertRgbToNumberArray(e);if("hex"===t||"hexa"===t){n=this.rgbToHex(i);return"hex"===t?n.slice(0,7):n}return"hsv"===t?this.convertToHsvString(this.rgbToHsv.apply(this,i.slice(0,3))):"hsva"===t?this.convertToHsvString(this.rgbToHsv.apply(this,i)):"null"}if("h"===e[0]){var i=this.hsvToRgb.apply(this,this.convertRgbToNumberArray(e));if("rgba"===t)return this.convertToRgbString(i);if("hex"===t||"hexa"===t){var n=this.rgbToHex(i);return"hex"===t?n.slice(0,7):n}
vendor: 1,167 bytes, line 10
10return"rgb"===t?this.convertToRgbString(i.slice(0,3)):"null"}e=this.roundValue(e);var o=this.hexToRgb(e);return"rgb"!==t&&"hsv"!==t||(o=o.slice(0,3)),"rgba"===t||"rgb"===t?this.convertToRgbString(o):"hsva"===t||"hsv"===t?this.convertToHsvString(this.rgbToHsv.apply(this,o)):"hex"===t?e.slice(0,7):"a"===t?o[3].toString():"null"},s.prototype.convertRgbToNumberArray=function(e){return e.slice(e.indexOf("(")+1,e.indexOf(")")).split(",").map(function(e,t){return 3!==t?parseInt(e,10):parseFloat(e)})},s.prototype.convertToRgbString=function(e){return e.length?4===e.length?"rgba("+e.join()+")":"rgb("+e.join()+")":""},s.prototype.convertToHsvString=function(e){return 4===e.length?"hsva("+e.join()+")":"hsv("+e.join()+")"},s.prototype.roundValue=function(e){if(!e)return"";"#"!==e[0]&&(e="#"+e);var t=e.length;if(4===t&&(e+="f",t=5),5===t){for(var i="",n=1,o=e.length;n<o;n++)i+=e.charAt(n)+e.charAt(n);e="#"+i,t=9}return 7===t&&(e+="ff"),e},s.prototype.hexToRgb=function(e){if(!e)return[];9!==(e=e.trim()).length&&(e=this.roundValue(e));var t=Number((parseInt(e.slice(-2),16)/255).toFixed(2));e=e.slice(1,7);var i=parseInt(e,16),n=[];return n.push(i>>16&255),n.push(i>
vendor: 10,743 bytes, line 10
10>8&255),n.push(255&i),n.push(t),n},s.prototype.rgbToHsv=function(e,i,n,o){e/=255,i/=255,n/=255;var r,a=Math.max(e,i,n),s=Math.min(e,i,n),l=a,d=a-s,A=0===a?0:d/a;if(a===s)r=0;else{switch(a){case e:r=(i-n)/d+(i<n?6:0);break;case i:r=(n-e)/d+2;break;case n:r=(e-i)/d+4}r/=6}var h=[Math.round(360*r),Math.round(1e3*A)/10,Math.round(1e3*l)/10];return t.isNullOrUndefined(o)||h.push(o),h},s.prototype.hsvToRgb=function(e,i,n,o){var r,a,s;if(i/=100,n/=100,0===i)return r=a=s=n,[Math.round(255*r),Math.round(255*a),Math.round(255*s),o];e/=60;var l=Math.floor(e),d=e-l,A=n*(1-i),h=n*(1-i*d),p=n*(1-i*(1-d));switch(l){case 0:r=n,a=p,s=A;break;case 1:r=h,a=n,s=A;break;case 2:r=A,a=n,s=p;break;case 3:r=A,a=h,s=n;break;case 4:r=p,a=A,s=n;break;default:r=n,a=A,s=h}var c=[Math.round(255*r),Math.round(255*a),Math.round(255*s)];return t.isNullOrUndefined(o)||c.push(o),c},s.prototype.rgbToHex=function(e){return e.length?"#"+this.hex(e[0])+this.hex(e[1])+this.hex(e[2])+(t.isNullOrUndefined(e[3])?"":0!==e[3]?(Math.round(255*e[3])+65536).toString(16).substr(-2):"00"):""},s.prototype.exportAnnotationsAsStream=function(e){var t=this;return this.pdfViewer.annotationModule&&this.pdfViewer.viewerBase.updateExportItem()?new Promise(function(i,n){t.pdfViewer.viewerBase.createRequestForExportAnnotations(!0,e,!0).then(function(e){i(e)})}):null},s.prototype.hex=function(e){return t.isNullOrUndefined(e)?"0":("0"+e.toString(16)).slice(-2)},s.prototype.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},s.prototype.destroy=function(){var e=this,t=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+(this.pdfViewerBase.currentPageNumber-1));t&&t.removeEventListener("mousedown",this.pdfViewer.annotationModule.stickyNotesAnnotationModule.drawIcons.bind(this));var i=document.getElementById(this.pdfViewer.element.id+"_popup_close");i&&(i.removeEventListener("click",this.saveClosePopupMenu.bind(this)),i.removeEventListener("touchend",this.saveClosePopupMenu.bind(this))),this.popupElement&&(this.popupElement.removeEventListener("mousedown",this.onPopupElementMoveStart.bind(this)),this.popupElement.removeEventListener("mousemove",this.onPopupElementMove.bind(this)),this.popupElement.removeEventListener("touchstart",this.onPopupElementMoveStart.bind(this)),this.popupElement.removeEventListener("touchmove",this.onPopupElementMove.bind(this))),this.noteContentElement&&this.noteContentElement.removeEventListener("mousedown",function(){e.noteContentElement.focus()}),window.removeEventListener("mouseup",this.onPopupElementMoveEnd.bind(this)),window.removeEventListener("touchend",this.onPopupElementMoveEnd.bind(this)),this.destroyPropertiesWindow(),this.textMarkupAnnotationModule&&this.textMarkupAnnotationModule.clear(),this.textMarkupAnnotationModule=null,this.shapeAnnotationModule=null,this.measureAnnotationModule=null,this.stampAnnotationModule=null,this.freeTextAnnotationModule=null,this.inputElementModule=null,this.inkAnnotationModule=null,this.stickyNotesAnnotationModule=null,this.popupNote=null,this.popupNoteAuthor=null,this.popupNoteContent=null,this.popupElement=null,this.authorPopupElement=null,this.noteContentElement=null,this.modifiedDateElement=null,this.opacityIndicator=null,this.startArrowDropDown=null,this.endArrowDropDown=null,this.lineStyleDropDown=null,this.thicknessBox=null,this.leaderLengthBox=null,this.fillColorPicker=null,this.strokeColorPicker=null,this.fillDropDown=null,this.strokeDropDown=null,this.opacitySlider=null,this.propertiesDialog=null,this.currentAnnotPageNumber=null,this.clientX=null,this.clientY=null,this.isPopupMenuMoved=null,this.selectedLineStyle=null,this.selectedLineDashArray=null,this.isUndoRedoAction=null,this.isFreeTextFontsizeChanged=null,this.isUndoAction=null,this.annotationSelected=null,this.isAnnotDeletionApiCall=null,this.removedDocumentAnnotationCollection=null,this.nonRenderSelectedAnnotation=null,this.isShapeCopied=null,this.actionCollection=null,this.redoCollection=null,this.isPopupNoteVisible=null,this.undoCommentsElement=null,this.redoCommentsElement=null,this.selectAnnotationId=null,this.isAnnotationSelected=null,this.annotationPageIndex=null,this.previousIndex=null,this.annotationType=null,this.overlappedAnnotations=null,this.overlappedCollections=null,this.isFormFieldShape=null,this.removedAnnotationCollection=null,this.isEdited=null},s.prototype.getModuleName=function(){return"Annotation"},s.prototype.getVertexPointsXY=function(e){for(var t=[],i=0;i<e.length;i++)t[parseInt(i.toString(),10)]={X:e[parseInt(i.toString(),10)].x,Y:e[parseInt(i.toString(),10)].y};return t},s.prototype.addAnnotation=function(e,t,i,n,o){var r={x:1,y:1},a=0;t&&t.pageNumber&&t.pageNumber>0&&(a=t.pageNumber?t.pageNumber-1:0);var s=null,l=[];this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),"FreeText"===e?(l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.freeTextAnnotationModule.updateAddAnnotationDetails(t,r),this.pdfViewer.annotation.freeTextAnnotationModule.isAddAnnotationProgramatically=!0):"StickyNotes"===e?(l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.stickyNotesAnnotationModule.updateAddAnnotationDetails(t,r),this.pdfViewer.annotation.stickyNotesAnnotationModule.isAddAnnotationProgramatically=!0):"Highlight"===e||"Underline"===e||"Strikethrough"===e||"Squiggly"===e?("Highlight"===e?s=t:"Underline"===e?s=t:"Strikethrough"===e?s=t:"Squiggly"===e&&(s=t),l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.textMarkupAnnotationModule.updateAddAnnotationDetails(e,s),this.pdfViewer.annotation.textMarkupAnnotationModule.isAddAnnotationProgramatically=!0):"Line"===e||"Arrow"===e||"Rectangle"===e||"Circle"===e||"Polygon"===e?("Line"===e?s=t:"Arrow"===e?s=t:"Rectangle"===e?s=t:"Circle"===e?s=t:"Polygon"===e&&(s=t),l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.shapeAnnotationModule.updateAddAnnotationDetails(e,s,r),this.pdfViewerBase.updateFreeTextProperties(l[parseInt(a.toString(),10)]),this.pdfViewer.annotation.shapeAnnotationModule.isAddAnnotationProgramatically=!0):"Distance"===e||"Perimeter"===e||"Area"===e||"Radius"===e||"Volume"===e?("Distance"===e?s=t:"Perimeter"===e?s=t:"Area"===e?s=t:"Radius"===e?s=t:"Volume"===e&&(s=t),l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.measureAnnotationModule.updateAddAnnotationDetails(e,s,r),this.pdfViewer.annotation.measureAnnotationModule.isAddAnnotationProgramatically=!0):"Stamp"===e?(t&&t.customStamps,l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.stampAnnotationModule.updateAddAnnotationDetails(t,r,a,i,n,o),this.pdfViewer.annotation.stampAnnotationModule.isAddAnnotationProgramatically=!0):"Ink"===e?(l[parseInt(a.toString(),10)]=this.pdfViewer.annotation.inkAnnotationModule.updateAddAnnotationDetails(t,r,a),this.pdfViewer.annotation.inkAnnotationModule.isAddAnnotationProgramatically=!0):"HandWrittenSignature"!==e&&"Initial"!==e||(l[parseInt(a.toString(),10)]=this.pdfViewerBase.signatureModule.updateSignatureDetails(t,r,a),this.pdfViewerBase.signatureModule.isAddAnnotationProgramatically=!0);var d={pdfAnnotation:l};this.pdfViewerBase.isAddAnnotation=!0,this.pdfViewerBase.importAnnotations(d),this.pdfViewerBase.isAddAnnotation=!1},s.prototype.triggerAnnotationAddEvent=function(e){var t=e.shapeAnnotationType;if("Stamp"===t||"Image"===t||"Path"===t||"FreeText"===t||"StickyNotes"===t||"Ink"===t){var i=void 0;i="FreeText"===t?{opacity:e.opacity,borderColor:e.strokeColor,borderWidth:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate,fillColor:e.fillColor,fontSize:e.fontSize,width:e.bounds.width,height:e.bounds.height,fontColor:e.fontColor,fontFamily:e.fontFamily,defaultText:e.dynamicText,fontStyle:e.font,textAlignment:e.textAlign}:{opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate,data:e.data};var n={left:e.bounds.x,top:e.bounds.y,width:e.bounds.width,height:e.bounds.height},o=this.getAnnotationType(e.shapeAnnotationType,e.measureType);this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,o,n,i)}else if("SignatureText"===t||"SignatureImage"===t||"HandWrittenSignature"===t){n={left:e.bounds.x,top:e.bounds.y,width:e.bounds.width,height:e.bounds.height};this.pdfViewer.fireSignatureAdd(e.pageIndex,e.signatureName,e.shapeAnnotationType,n,e.opacity,e.strokeColor,e.thickness,e.data)}else{var r={opacity:e.opacity,fillColor:e.fillColor,strokeColor:e.strokeColor,thickness:e.thickness,author:e.author,subject:e.subject,modifiedDate:e.modifiedDate},n={left:e.bounds.x,top:e.bounds.y,width:e.bounds.width,height:e.bounds.height};"Line"!==(o=this.getAnnotationType(e.shapeAnnotationType,e.measureType))&&"Arrow"!==o&&"Distance"!==o&&"Perimeter"!==o||(r.lineHeadStartStyle=this.getArrowString(e.sourceDecoraterShapes),r.lineHeadEndStyle=this.getArrowString(e.taregetDecoraterShapes),r.borderDashArray=e.borderDashArray);var a=void 0;this.pdfViewer.enableShapeLabel?(a={fontColor:e.fontColor,fontSize:e.fontSize,fontFamily:e.fontFamily,opacity:e.labelOpacity,labelContent:e.labelContent,fillColor:e.labelFillColor},this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,o,n,r,null,null,null,a)):this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,o,n,r)}},s.prototype.triggerAnnotationUnselectEvent=function(){if(this.pdfViewer.selectedItems.annotations&&this.pdfViewer.selectedItems.annotations[0]){var e=this.pdfViewer.selectedItems.annotations[0];"HandWrittenSignature"!==e.shapeAnnotationType&&"SignatureText"!==e.shapeAnnotationType&&"SignatureImage"!==e.shapeAnnotationType&&"Path"!==e.shapeAnnotationType&&(this.pdfViewer.fireAnnotationUnSelect(e.annotName,e.pageIndex,e),this.pdfViewer.clearSelection(e.pageIndex))}},s.prototype.triggerSignatureUnselectEvent=function(){if(this.pdfViewer.selectedItems.annotations&&this.pdfViewer.selectedItems.annotations[0]){var e=this.pdfViewer.selectedItems;if(e.annotations.length)for(var t=0;t<e.annotations.length;t++){var i=e.annotations[parseInt(t.toString(),10)];this.pdfViewer.annotationModule.unselectSignature(i.signatureName,i.pageIndex,i),this.pdfViewer.clearSelection(i.pageIndex)}}},s.prototype.updateFontFamilyRenderSize=function(e,t){var i=this.freeTextAnnotationModule;i.inputBoxElement.style.fontFamily=t,i.autoFitFreeText();var n=this.pdfViewerBase.getZoomFactor(),o=(parseFloat(i.inputBoxElement.style.paddingLeft),e.bounds.height*n),r=parseFloat(i.inputBoxElement.style.width)-8;r/=n;var a=(o/=n)-e.bounds.height,s=void 0;a>0?s=(s=e.wrapper.offsetY+a/2)>0?s:void 0:(a=Math.abs(a),s=(s=e.wrapper.offsetY-a/2)>0?s:void 0);var l=r-e.bounds.width,d=void 0;l>0?d=(d=e.wrapper.offsetX+l/2)>0?d:void 0:(l=Math.abs(l),d=e.wrapper.offsetX-l/2),e.bounds.width=r,e.bounds.height=o,this.pdfViewer.nodePropertyChange(e,{fontFamily:t,boun
10ds:{width:e.bounds.width,height:e.bounds.height,y:s,x:d}}),this.pdfViewer.renderSelector(e.pageIndex,this.pdfViewer.annotationSelectorSettings),this.modifyInCollections(e,"bounds")},s.prototype.calculateFontSize=function(e,t){for(var i=document.createElement("canvas").getContext("2d"),n=10,o=0;t.width>o;)i.font=n+"px Helvetica",o=i.measureText(e).width,n++;return n},s}(),Dt=function(){function e(){}return e}(),xt=function(){function e(){}return e}(),Qt=function(){function e(){}return e}(),Mt=function(){function e(){}return e}(),Ft=function(){function e(){}return e}(),Tt=function(){function e(){}return e}(),kt=function(){function e(){}return e}(),Pt=function(){function e(){}return e}(),Nt=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},Rt=function(e,t){function i(e){return function(t){return n([e,t])}}function n(i){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){l.label=i[1];break}if(6===i[0]&&l.label<a[1]){l.label=a[1],a=i;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(i);break}a[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{o=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}var o,r,a,s,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Lt=function(){function e(e,t){this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.renderHyperlinkContent=function(e,t){if(this.pdfViewer.enableHyperlink){var i=e.hyperlinks,n=e.hyperlinkBounds;this.linkAnnotation=e.linkAnnotation,this.linkPage=e.linkPage,this.annotationY=e.annotationLocation,i&&i.length>0&&n.length>0&&this.renderWebLink(i,n,t),this.linkAnnotation&&this.linkAnnotation.length>0&&this.linkPage.length>0&&this.renderDocumentLink(this.linkAnnotation,this.linkPage,this.annotationY,t)}},e.prototype.disableHyperlinkNavigationUnderObjects=function(e,t,i){if(K(i,i.pdfViewer,t).length>0)t.target.classList.contains("e-pv-hyperlink")&&(e.style.cursor="move",e.style.pointerEvents="none",e.title="");else{var n=document.getElementsByClassName("e-pv-hyperlink");if(n&&n.length>0)for(var o=0;o<n.length;o++)"none"===n[parseInt(o.toString(),10)].style.pointerEvents&&(n[parseInt(o.toString(),10)].style.pointerEvents="all"),n[parseInt(o.toString(),10)].title||(n[parseInt(o.toString(),10)].title=n[parseInt(o.toString(),10)].href)}},e.prototype.renderWebLink=function(e,i,n){for(var o=this,r=this,a=!1,s=this,l=0;l<e.length;l++)!function(l){var d=t.createElement("a",{id:"weblinkdiv_"+l+"_"+n}),A=i[parseInt(l.toString(),10)];if(d=s.setHyperlinkProperties(d,A,n),d.title=e[parseInt(l.toString(),10)],e[parseInt(l.toString(),10)]&&1===e[parseInt(l.toString(),10)].split("http").length){var h="http://"+e[parseInt(l.toString(),10)];d.setAttribute("href",h)}else d.setAttribute("href",e[parseInt(l.toString(),10)]);"CurrentTab"===s.pdfViewer.hyperlinkOpenState?(d.target="_self",d.onclick=function(t){return Nt(o,void 0,void 0,function(){var i;return Rt(this,function(n){switch(n.label){case 0:return a?[3,4]:(t.preventDefault(),r.pdfViewerBase.tool instanceof St||r.pdfViewerBase.tool instanceof Bt?[2,!1]:[3,1]);case 1:return[4,r.pdfViewer.fireHyperlinkClick(e[parseInt(l.toString(),10)],d)];case 2:return(i=n.sent())&&0===this.pdfViewer.selectedItems.annotations.length&&0===this.pdfViewer.selectedItems.formFields.length&&(a=!0,d.click()),[2,i];case 3:return[3,5];case 4:return a=!1,[2,!0];case 5:return[2]}})})},d.onmouseover=function(){r.triggerHyperlinkEvent(d)}):"NewTab"===s.pdfViewer.hyperlinkOpenState?(d.target="_blank",d.onclick=function(t){return Nt(o,void 0,void 0,function(){var i;return Rt(this,function(n){switch(n.label){case 0:return a?[3,4]:(t.preventDefault(),r.pdfViewerBase.tool instanceof St||r.pdfViewerBase.tool instanceof Bt?[2,!1]:[3,1]);
10case 1:return[4,r.pdfViewer.fireHyperlinkClick(e[parseInt(l.toString(),10)],d)];case 2:return(i=n.sent())&&0===this.pdfViewer.selectedItems.annotations.length&&0===this.pdfViewer.selectedItems.formFields.length&&(a=!0,d.click()),[2,i];case 3:return[3,5];case 4:return a=!1,[2,!0];case 5:return[2]}})})},d.onmouseover=function(){r.triggerHyperlinkEvent(d)}):"NewWindow"===s.pdfViewer.hyperlinkOpenState&&(d.onclick=function(t){return Nt(o,void 0,void 0,function(){var i;return Rt(this,function(n){switch(n.label){case 0:return t.preventDefault(),r.pdfViewerBase.tool instanceof St||r.pdfViewerBase.tool instanceof Bt?[2,!1]:[3,1];case 1:return[4,r.pdfViewer.fireHyperlinkClick(e[parseInt(l.toString(),10)],d)];case 2:return(i=n.sent())&&0===this.pdfViewer.selectedItems.annotations.length&&0===this.pdfViewer.selectedItems.formFields.length&&window.open(d.href,"_blank","scrollbars=yes,resizable=yes"),[2,!1]}})})},d.onmouseover=function(){r.triggerHyperlinkEvent(d)});var p=document.getElementById(s.pdfViewer.element.id+"_pageDiv_"+n);t.isNullOrUndefined(p)||p.appendChild(d)}(l)},e.prototype.triggerHyperlinkEvent=function(e){return!(this.pdfViewerBase.tool instanceof St||this.pdfViewerBase.tool instanceof Bt)&&(this.pdfViewer.fireHyperlinkHover(e),!0)},e.prototype.renderDocumentLink=function(e,i,n,o){for(var r=this,a=this,s=this,l=0;l<e.length;l++)!function(l){var d=t.createElement("a",{id:"linkdiv_"+l+"_"+o}),A=e[parseInt(l.toString(),10)];(d=s.setHyperlinkProperties(d,A,o)).setAttribute("href","javascript:void(0)");var h=i[parseInt(l.toString(),10)];if(!t.isNullOrUndefined(h)&&h>=0){var p,c,g=s.pdfViewerBase.pageSize[parseInt(o.toString(),10)].height,u=s.pdfViewerBase.pageSize[parseInt(h.toString(),10)];u&&(t.isNullOrUndefined(n)||0===n.length?c=u.top*s.pdfViewerBase.getZoomFactor():(p=n[parseInt(l.toString(),10)],c=u.top*s.pdfViewerBase.getZoomFactor()+(g-p)*s.pdfViewerBase.getZoomFactor())),void 0!==c?(d.name=c.toString(),d.setAttribute("aria-label",c.toString())):t.isNullOrUndefined(u)&&h>s.pdfViewerBase.pageSize.length&&(d.dataset.annotationY=JSON.stringify(n),d.dataset.pageIndex=JSON.stringify(h),d.dataset.index=JSON.stringify(l)),d.onclick=function(){if(a.pdfViewerBase.tool instanceof St||a.pdfViewerBase.tool instanceof Bt)return!1;if(!d.name){if(d.dataset.pageIndex){var e=a.pdfViewerBase.pageSize[JSON.parse(d.dataset.pageIndex)],t=JSON.parse(d.dataset.annotationY),i=JSON.parse(d.dataset.index),o=r.pdfViewerBase.getZoomFactor();t&&t.length>0?(p=n[parseInt(i.toString(),10)],c=e.top*o+(g-p)*o):c=e.top*o}d.name=c.toString(),d.setAttribute("aria-label",c.toString())}return a.pdfViewerBase.viewerContainer.scrollTop=parseInt(d.name,10),!1};var f=document.getElementById(s.pdfViewer.element.id+"_pageDiv_"+o);t.isNullOrUndefined(f)||f.appendChild(d)}}(l)},e.prototype.setHyperlinkProperties=function(e,t,i){return e.className="e-pv-hyperlink",e.style.background="transparent",e.style.position="absolute",e.style.left=t.Left*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=t.Top*this.pdfViewerBase.getZoomFactor()+"px",e.style.width=t.Width*this.pdfViewerBase.getZoomFactor()+"px",t.Height<0?(e.style.height=-t.Height*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=(t.Top+t.Height)*this.pdfViewerBase.getZoomFactor()+"px"):e.style.height=(t.Height<0?-t.Height:t.Height)*this.pdfViewerBase.getZoomFactor()+"px",e.style.color="transparent",this.pdfViewerBase.applyElementStyles(e,i),e},e.prototype.modifyZindexForTextSelection=function(e,t){if(this.pdfViewerBase.pageCount>0){var i=this.pdfViewerBase.getElement("_pageDiv_"+e);if(i)for(var n=i.childNodes,o=0;o<n.length;o++){var r=n[parseInt(o.toString(),10)];"A"===r.tagName&&(t?r.classList.add("e-pv-onselection"):r.classList.remove("e-pv-onselection"))}}},e.prototype.modifyZindexForHyperlink=function(e,t){t?e.classList.add("e-pv-onselection"):e.classList.remove("e-pv-onselection")},e.prototype.destroy=function(){for(var e=0;e<this.pdfViewerBase.pageCount-1;e++){var t=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+e);if(t){var i=t.getElementsByTagName("a");if(0!==i.length)for(var n=i.length-1;n>=0;n--)i[parseInt(n.toString(),10)].parentNode.removeChild(i[parseInt(n.toString(),10)])}}this.linkAnnotation=null,this.linkPage=null,this.annotationY=null},e.prototype.getModuleName=function(){return"LinkAnnotation"},e}(),Ut=function(){function e(e,t){var i=this;
vendor: 224,959 bytes, line 10
10this.currentTextMarkupAddMode="",this.selectTextMarkupCurrentPage=null,this.currentTextMarkupAnnotation=null,this.isAddAnnotationProgramatically=!1,this.currentAnnotationIndex=null,this.isAnnotationSelect=!1,this.isDropletClicked=!1,this.isRightDropletClicked=!1,this.isLeftDropletClicked=!1,this.isSelectionMaintained=!1,this.isExtended=!1,this.isNewAnnotation=!1,this.selectedTextMarkup=null,this.multiPageCollection=[],this.triggerAddEvent=!1,this.isSelectedAnnotation=!1,this.dropletHeight=20,this.strikeoutDifference=-3,this.underlineDifference=2,this.annotationClickPosition={},this.maintainSelection=function(){i.isDropletClicked=!0,i.pdfViewer.textSelectionModule.initiateSelectionByTouch(),i.isExtended=!0,i.pdfViewer.textSelectionModule.selectionRangeArray=[]},this.selectionEnd=function(){i.isDropletClicked&&(i.isDropletClicked=!1)},this.annotationLeftMove=function(){i.isDropletClicked&&(i.isLeftDropletClicked=!0)},this.annotationRightMove=function(){i.isDropletClicked&&(i.isRightDropletClicked=!0)},this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.createAnnotationSelectElement=function(){this.dropDivAnnotationLeft=t.createElement("div",{id:this.pdfViewer.element.id+"_droplet_left",className:"e-pv-drop"}),this.dropDivAnnotationLeft.style.borderRight="2px solid",this.dropDivAnnotationRight=t.createElement("div",{id:this.pdfViewer.element.id+"_droplet_right",className:"e-pv-drop"}),this.dropDivAnnotationRight.style.borderLeft="2px solid",this.dropElementLeft=t.createElement("div",{className:"e-pv-droplet",id:this.pdfViewer.element.id+"_dropletspan_left"}),this.dropElementLeft.style.transform="rotate(0deg)",this.dropDivAnnotationLeft.appendChild(this.dropElementLeft),this.dropElementRight=t.createElement("div",{className:"e-pv-droplet",id:this.pdfViewer.element.id+"_dropletspan_right"}),this.dropElementRight.style.transform="rotate(-90deg)",this.dropDivAnnotationRight.appendChild(this.dropElementRight),this.pdfViewerBase.pageContainer.appendChild(this.dropDivAnnotationLeft),this.pdfViewerBase.pageContainer.appendChild(this.dropDivAnnotationRight),this.dropElementLeft.style.top="20px",this.dropElementRight.style.top="20px",this.dropElementRight.style.left="-8px",this.dropElementLeft.style.left="-8px",this.dropDivAnnotationLeft.style.display="none",this.dropDivAnnotationRight.style.display="none",this.dropDivAnnotationLeft.addEventListener("mousedown",this.maintainSelection),this.dropDivAnnotationLeft.addEventListener("mousemove",this.annotationLeftMove),this.dropDivAnnotationLeft.addEventListener("mouseup",this.selectionEnd),this.dropDivAnnotationRight.addEventListener("mousedown",this.maintainSelection),this.dropDivAnnotationRight.addEventListener("mousemove",this.annotationRightMove),this.dropDivAnnotationRight.addEventListener("mouseup",this.selectionEnd)},e.prototype.textSelect=function(e,t,i){if(this.isLeftDropletClicked){var n=this.dropDivAnnotationRight.getBoundingClientRect(),o=this.dropDivAnnotationLeft.getBoundingClientRect(),r=t,a=i;e.classList.contains("e-pv-text")&&(o.top-25>n.top?this.pdfViewer.textSelectionModule.textSelectionOnDrag(e,r,a,!0):this.pdfViewer.textSelectionModule.textSelectionOnDrag(e,r,a,!1),this.updateLeftposition(r,a))}else if(this.isRightDropletClicked){var n=this.dropDivAnnotationLeft.getBoundingClientRect(),r=t,a=i;e.classList.contains("e-pv-text")&&(a>=n.top?this.pdfViewer.textSelectionModule.textSelectionOnDrag(e,r,a,!0):this.pdfViewer.textSelectionModule.textSelectionOnDrag(e,r,a,!1),this.updatePosition(r,a))}},e.prototype.showHideDropletDiv=function(e){var t=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode;this.isEnableTextMarkupResizer(t)&&this.dropDivAnnotationLeft&&this.dropDivAnnotationRight&&(e?(this.dropDivAnnotationLeft.style.display="none",this.dropDivAnnotationRight.style.display="none"):(this.dropDivAnnotationLeft.style.display="",this.dropDivAnnotationRight.style.display="",this.updateDropletStyles(t)))},e.prototype.isEnableTextMarkupResizer=function(e){var t=!1;return e?"Highlight"===e&&this.pdfViewer.highlightSettings.enableTextMarkupResizer?t=!0:"Underline"===e&&this.pdfViewer.underlineSettings.enableTextMarkupResizer?t=!0:"Strikethrough"===e&&this.pdfViewer.strikethroughSettings.enableTextMarkupResizer?t=!0:"Squiggly"===e&&this.pdfViewer.squigglySettings.enableTextMarkupResizer?t=!0:this.pdfViewer.enableTextMarkupResizer&&(t=!0):this.pdfViewer.enableTextMarkupResizer?t=!0:this.pdfViewer.highlightSettings.enableTextMarkupResizer?t=!0:this.pdfViewer.underlineSettings.enableTextMarkupResizer?t=!0:this.pdfViewer.strikethroughSettings.enableTextMarkupResizer?t=!0:this.pdfViewer.squigglySettings.enableTextMarkupResizer&&(t=!0),t},e.prototype.updateDropletStyles=function(e){this.isEnableTextMarkupResizer(e)&&this.dropDivAnnotationLeft&&this.dropDivAnnotationLeft.offsetWidth>0&&(this.dropDivAnnotationLeft.style.width=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropDivAnnotationRight.style.width=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementLeft.style.width=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementRight.style.width=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropDivAnnotationLeft.style.height=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropDivAnnotationRight.style.height=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementLeft.style.height=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementRight.style.height=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementLeft.style.top=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px",this.dropElementRight.style.top=this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px")},e.prototype.updateAnnotationBounds=function(){this.isSelectionMaintained=!1;var e=this.currentTextMarkupAnnotation;e&&e.isMultiSelect?(this.showHideDropletDiv(!0),this.updateMultiAnnotBounds(e)):e&&e.bounds&&(this.retreieveSelection(e,null),this.pdfViewer.textSelectionModule.maintainSelection(this.selectTextMarkupCurrentPage,!1),this.isSelectionMaintained=!0,window.getSelection().removeAllRanges())},e.prototype.updateMultiAnnotBounds=function(e){if(!e.annotpageNumbers&&(a=this.getAnnotations(e.pageNumber,null)))for(d=0;d<a.length;d++)if(a[parseInt(d.toString(),10)].annotName===e.annotName){e=a[parseInt(d.toString(),10)];break}for(var t=e.annotpageNumbers[0],i=e.annotpageNumbers[0],n=0;n<e.annotpageNumbers.length;n++){var o=e.annotpageNumbers[parseInt(n.toString(),10)];o>=i&&(i=o),o<=t&&(t=o)}for(var r=t;r<=i;r++){var a=this.getAnnotations(r,null);if(a)for(var s=0;s<e.annotNameCollection.length;s++)for(var l=e.annotNameCollection[parseInt(s.toString(),10)],d=0;d<a.length;d++)if(a[parseInt(d.toString(),10)].annotName===l){var A=a[parseInt(d.toString(),10)];this.retreieveSelection(A,null),this.pdfViewer.textSelectionModule.maintainSelection(A.pageNumber,!1)}}this.isSelectionMaintained=!0,window.getSelection().removeAllRanges()},e.prototype.retreieveSelection=function(e,t){for(var i=0;i<e.bounds.length;i++){var n=e.bounds[parseInt(i.toString(),10)],o=(n.left?n.left:n.Left)*this.pdfViewerBase.getZoomFactor(),r=(n.top?n.top:n.Top)*this.pdfViewerBase.getZoomFactor(),a=(n.width?n.width:n.Width)*this.pdfViewerBase.getZoomFactor(),s=this.pdfViewerBase.getElement("_textLayer_"+e.pageNumber);if(s){for(var l=s.childNodes,d=0;d<l.length;d++)if(l[parseInt(d.toString(),10)]){var A=l[parseInt(d.toString(),10)].getBoundingClientRect(),h=this.getClientValueTop(A.top,e.pageNumber),p=A.left-this.pdfViewerBase.getElement("_pageDiv_"+e.pageNumber).getBoundingClientRect().left,c=p+A.width,g=parseInt(l[parseInt(d.toString(),10)].style.left,10),u=parseInt(l[parseInt(d.toString(),10)].style.top,10),f=this.pdfViewer.textSelectionModule.checkLeftBounds(p,g,c,o),m=this.pdfViewer.textSelectionModule.checkTopBounds(h,u,r);if(f&&m){t=l[parseInt(d.toString(),10)];break}}if(null!=t){var w=this.pdfViewerBase.getElement("_textLayer_"+e.pageNumber).getBoundingClientRect();this.pdfViewer.textSelectionModule.textSelectionOnMouseMove(t,o+w.left,r+w.top,!1),e.bounds.length-1===i&&this.pdfViewer.textSelectionModule.textSelectionOnMouseMove(t,o+w.left+a,r+w.top,!1)}}}},e.prototype.updatePosition=function(e,t,i){this.showHideDropletDiv(!1);var n=this.pdfViewerBase.pageSize[this.pdfViewerBase.currentPageNumber-1].top,o=this.getClientValueTop(t,this.pdfViewerBase.currentPageNumber-1),r=document.getElementById(this.pdfViewer.element.id+"_droplet_right");r.style.top=i?o*this.pdfViewerBase.getZoomFactor()+n*this.pdfViewerBase.getZoomFactor()+"px":o+n*this.pdfViewerBase.getZoomFactor()+"px",r.style.left=e+this.pdfViewerBase.viewerContainer.scrollLeft-this.pdfViewerBase.viewerContainer.getBoundingClientRect().left+"px"},e.prototype.updateLeftposition=function(e,t,i){this.showHideDropletDiv(!1);var n=this.pdfViewerBase.pageSize[this.pdfViewerBase.currentPageNumber-1].top,o=this.getClientValueTop(t,this.pdfViewerBase.currentPageNumber-1),r=document.getElementById(this.pdfViewer.element.id+"_droplet_left");r.style.display="",r.style.top=i?o*this.pdfViewerBase.getZoomFactor()+n*this.pdfViewerBase.getZoomFactor()+"px":o+n*this.pdfViewerBase.getZoomFactor()+"px",r.style.left=e+this.pdfViewerBase.viewerContainer.scrollLeft-this.pdfViewerBase.viewerContainer.getBoundingClientRect().left-this.dropletHeight*this.pdfViewerBase.getZoomFactor()+"px"},e.prototype.getClientValueTop=function(e,t){return this.pdfViewerBase.getElement("_pageDiv_"+t)?e-this.pdfViewerBase.getElement("_pageDiv_"+t).getBoundingClientRect().top:e},e.prototype.renderTextMarkupAnnotationsInPage=function(e,t,i,n){var o=e&&"Highlight"===e.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",r="_blendAnnotationsIntoCanvas_"===o?this.pdfViewerBase.getElement(o+t):this.pdfViewerBase.getAnnotationCanvas(o,t);i?(this.renderTextMarkupAnnotations(null,t,r,this.pdfViewerBase.getZoomFactor()),this.renderTextMarkupAnnotations(e,t,r,this.pdfViewerBase.getZoomFactor(),!0)):this.renderTextMarkupAnnotations(e,t,r,this.pdfViewerBase.getZoomFactor(),null,n)},e.prototype.renderTextMarkupAnnotations=function(e,i,n,o,r,a){var s=null;if(n){var l=n.getContext("2d");l.setTransform(1,0,0,1,0,0),l.setLineDash([]);var d;if(d=r||a?e:this.getAnnotations(i,e),e&&e.forEach(function(e){d.some(function(t){return t.annotName===e.AnnotName})||d.push(e)}),d){for(var A=[],h=0;h<d.length;h++){for(var p=!1,c=0;c<A.length;c++)if(d[parseInt(h.toString(),10)].AnnotName===A[parseInt(c.toString(),10)].AnnotName&&d[parseInt(h.toString(),10)].annotName===A[parseInt(c.toString(),10)].annotName){p=!0;break}p||A.push(d[parseInt(h.toString(),10)])}d=A}if(d)for(h=0;h<d.length;h++){var g=d[parseInt(h.toString(),10)],u=null,f=void 0;if(g.TextMarkupAnnotationType){if(r&&this.pdfViewerBase.isJsonImported){for(var m=[],w=0;w<g.Bounds.length;w++)g.Bounds[parseInt(w.toString(),10)]=this.pdfViewerBase.importJsonForRotatedDocuments(g.Rotate,i,g.Bounds[parseInt(w.toString(),10)],g.AnnotationRotation),g.Bounds[parseInt(w.toString(),10)].left=g.Bounds[parseInt(w.toString(),10)].X,g.Bounds[parseInt(w.toString(),10)].top=g.Bounds[parseInt(w.toString(),10)].Y,m.push(g.Bounds[parseInt(w.toString(),10)]);g.Bounds=m,f=this.pdfViewerBase.isPageRotated}if(g.annotationAddMode=this.pdfViewer.annotationModule.findAnnotationMode(g,i,g.AnnotType),g.allowedInteractions=g.AllowedInteractions?g.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(g),g.AnnotationSettings=g.AnnotationSettings?g.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(g),g.IsLocked&&(g.AnnotationSettings.isLock=g.IsLocked),u={textMarkupAnnotationType:g.TextMarkupAnnotationType,color:g.Color,allowedInteractions:g.allowedInteractions,opacity:g.Opacity,bounds:g.Bounds,author:g.Author,subject:g.Subject,modifiedDate:g.ModifiedDate,note:g.Note,rect:g.Rect,annotName:g.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(g.Comments,g,g.Author),review:{state:g.State,stateModel:g.StateModel,modifiedDate:g.ModifiedDate,author:g.Author},shapeAnnotationType:"textMarkup",pageNumber:i,textMarkupContent:g.TextMarkupContent,textMarkupStartIndex:0,textMarkupEndIndex:0,annotationSelectorSettings:this.getSettings(g),customData:this.pdfViewer.annotation.getCustomData(g),annotationAddMode:g.annotationAddMode,annotationSettings:g.AnnotationSettings,isLocked:g.IsLocked,isPrint:g.IsPrint,isCommentLock:g.IsCommentLock,isAnnotationRotated:f,annotationRotation:g.AnnotationRotation},g.IsMultiSelect&&(u.annotNameCollection=g.AnnotNameCollection,u.annotpageNumbers=g.AnnotpageNumbers,u.isMultiSelect=g.IsMultiSelect),g.textMarkupContent&&""!==g.textMarkupContent&&(u.textMarkupContent=g.textMarkupContent,u.textMarkupStartIndex=g.textMarkupStartIndex,u.textMarkupEndIndex=g.textMarkupEndIndex),t.isNullOrUndefined(g.TextMarkupContent)&&t.isNullOrUndefined(g.textMarkupContent)){var C=g.Bounds,B=this.pdfViewerBase.getStoredData(i,!0);if(t.isNullOrUndefined(B))this.pdfViewerBase.requestForTextExtraction(i,u);else{var S=B.pageText.split(""),y=this.pdfViewerBase.textLayer.characterBound[parseInt(i.toString(),10)],I=this.pdfViewerBase.textMarkUpContent(C,S,y);u.textMarkupContent=I}}if(this.pdfViewer.annotationModule.storeAnnotations(i,u,"_annotations_textMarkup"),this.isAddAnnotationProgramatically){var E={opacity:u.opacity,author:g.author,subject:g.subject,modifiedDate:g.modifiedDate,width:u.bounds.width,height:u.bounds.height};this.pdfViewer.fireAnnotationAdd(u.pageNumber,u.annotName,g.TextMarkupAnnotationType,u.bounds,E)}}var v=g.TextMarkupAnnotationType?g.TextMarkupAnnotationType:g.textMarkupAnnotationType,b=g.Bounds?g.Bounds:g.bounds,V=g.Opacity?g.Opacity:g.opacity,D=g.Color?g.Color:g.color,x=g.AnnotationRotation?g.AnnotationRotation:g.annotationRotation,Q=!0;switch(g.TextMarkupAnnotationType&&(Q=g.IsPrint),g.textMarkupAnnotationType&&(Q=g.isPrint),"Highlight"===v&&t.isNullOrUndefined(s)&&(s=this.getHighlightCanvasContext(this.isPrintCanvas(n),i)),v){case"Highlight":this.renderHighlightAnnotation(b,V,D,s.context,o,Q,i);break;case"Strikethrough":this.renderStrikeoutAnnotation(b,V,D,l,o,i,Q,x,g.textMarkupContent);break;case"Underline":this.renderUnderlineAnnotation(b,V,D,l,o,i,Q,x);break;case"Squiggly":this.renderSquigglyAnnotation(b,V,D,l,o,i,Q,x)}}var M=!1;if(this.currentTextMarkupAnnotation&&this.currentTextMarkupAnnotation.annotpageNumbers)for(var F=0;F<this.currentTextMarkupAnnotation.annotpageNumbers.length;F++)if(i===this.currentTextMarkupAnnotation.annotpageNumbers[parseInt(F.toString(),10)]){M=!0,this.isAnnotationSelect=!1;break}if((i===this.selectTextMarkupCurrentPage||M)&&(this.isAnnotationSelect?this.isAnnotationSelect=!1:this.maintainAnnotationSelection()),this.pdfViewerBase.isPrint){var T=n.toDataURL(),k=void 0;return s&&(k=s.canvas.toDataURL()),{annotImg:T,highlightImg:k}}}},e.prototype.getHighlightCanvasContext=function(e,i){var n;if(e){if(n=this.pdfViewerBase.getElement(this.pdfViewer.element.id+"_print_blendAnnotations_canvas_"+i),t.isNullOrUndefined(n)){(n=t.createElement("canvas",{id:this.pdfViewer.element.id+"_print_blendAnnotations_canvas_"+i})).style.width="816px",n.style.height="1056px";var o=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].width,r=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].height,a=void 0;a=e?1:this.pdfViewerBase.getZoomFactor();var s=this.pdfViewerBase.getZoomRatio(a);n.height=r*s,n.width=o*s}}else if(n=this.pdfViewerBase.getElement("_blendAnnotationsIntoCanvas_"+i),t.isNullOrUndefined(n)){var l=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+i),d=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)];l&&d&&d.width&&d.height&&(n=this.pdfViewer.annotationModule.createBlendAnnotationsIntoCanvas(l,d.width,d.height,i))}var A=n.getContext("2d");return A.setTransform(1,0,0,1,0,0),A.setLineDash([]),{context:A,canvas:n}},e.prototype.isPrintCanvas=function(e){return!(!e||-1===e.id.indexOf("_print_annotation_layer_"))},e.prototype.getSettings=function(e){return e.AnnotationSelectorSettings?"string"==typeof e.AnnotationSelectorSettings?JSON.parse(e.AnnotationSelectorSettings):e.AnnotationSelectorSettings:this.getSelector(e.TextMarkupAnnotationType)},e.prototype.drawTextMarkupAnnotations=function(e){var t=!1;this.isTextMarkupAnnotationMode=!0,this.pdfViewer.annotationModule.isFormFieldShape=!1,this.currentTextMarkupAddMode=e;var i=!0;this.multiPageCollection=[];var n=this.pdfViewer.textSelectionModule?this.pdfViewer.textSelectionModule.selectionRangeArray:[];n.length>0&&!this.isSelectionMaintained&&(t=!0,this.convertSelectionToTextMarkup(e,n,this.pdfViewerBase.getZoomFactor()));var o,r=window.getSelection();if(r&&r.anchorNode&&(o=r.anchorNode.parentElement),this.isEnableTextMarkupResizer(e)&&this.isExtended&&window.getSelection().toString()){if((l=this.getDrawnBounds())[0]&&l[0].bounds)for(var a=this.currentTextMarkupAnnotation,s=0;s<l.length;s++)if(a&&a.pageNumber===l[parseInt(s.toString(),10)].pageIndex)this.currentTextMarkupAnnotation=a,this.selectTextMarkupCurrentPage=l[parseInt(s.toString(),10)].pageIndex,this.updateTextMarkupAnnotationBounds(l,s);else if(a&&""===e&&(e=a.textMarkupAnnotationType),a.isMultiSelect)a.isMultiSelect&&a.annotNameCollection&&this.modifyCurrentAnnotation(a,l,s);else{d=!1;this.isMultiAnnotation(e)&&(this.multiPageCollection.push(a),d=!0),this.drawTextMarkups(e,l[parseInt(s.toString(),10)].bounds,l[parseInt(s.toString(),10)].pageIndex,l[parseInt(s.toString(),10)].rect,this.pdfViewerBase.getZoomFactor(),l[parseInt(s.toString(),10)].textContent,l[parseInt(s.toString(),10)].startIndex,l[parseInt(s.toString(),10)].endIndex,d,o)}}else if(window.getSelection().toString()&&!t){var l=this.getDrawnBounds(),d=this.isMultiPageAnnotations(l,e);if(l.length>0)for(var A=0;A<l.length;A++)""===e&&(i=!1),this.drawTextMarkups(e,l[parseInt(A.toString(),10)].bounds,l[parseInt(A.toString(),10)].pageIndex,l[parseInt(A.toString(),10)].rect,this.pdfViewerBase.getZoomFactor(),l[parseInt(A.toString(),10)].textContent,l[parseInt(A.toString(),10)].startIndex,l[parseInt(A.toString(),10)].endIndex,d,o)}if(this.multiPageCollection)for(var h=0;h<this.multiPageCollection.length;h++)this.updateAnnotationNames(this.multiPageCollection[parseInt(h.toString(),10)],this.multiPageCollection[parseInt(h.toString(),10)].pageNumber);this.isExtended=!1,this.isSelectionMaintained=!1,i&&this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.clearTextSelection(),this.isEnableTextMarkupResizer(e)&&this.updateAnnotationBounds()},e.prototype.isMultiPageAnnotations=function(e,t){for(var i=!1,n=0;n<e.length;n++)if(e[parseInt(n.toString(),10)].pageIndex!==e[0].pageIndex&&this.isMultiAnnotation(t)){i=!0;break}return i},e.prototype.isMultiAnnotation=function(e){var t=!1;return"Highlight"===e&&this.pdfViewer.highlightSettings.enableMultiPageAnnotation?t=!0:"Underline"===e&&this.pdfViewer.underlineSettings.enableMultiPageAnnotation?t=!0:"Strikethrough"===e&&this.pdfViewer.strikethroughSettings.enableMultiPageAnnotation?t=!0:"Squiggly"===e&&this.pdfViewer.squigglySettings.enableMultiPageAnnotation?t=!0:this.pdfViewer.enableMultiPageAnnotation&&(t=!0),t},e.prototype.modifyCurrentAnnotation=function(e,t,i){for(var n=0;n<e.annotNameCollection.length;n++){var o=e.annotNameCollection[parseInt(n.toString(),10)],r=this.getAnnotations(t[parseInt(i.toString(),10)].pageIndex,null);if(r)for(var a=0;a<r.length;a++)if(r[parseInt(a.toString(),10)].annotName===o){this.currentTextMarkupAnnotation=r[parseInt(a.toString(),10)],this.selectTextMarkupCurrentPage=t[parseInt(i.toString(),10)].pageIndex,this.updateTextMarkupAnnotationBounds(t,i);break}}},e.prototype.drawAnnotationSelector=function(e,i,n){for(var o=[],r=0,a=0,s=0,l=0,d=0,A=0,h=0,p=0,c=0,g=!1,u=0;u<e.bounds.length;u++){var f=e.bounds[parseInt(u.toString(),10)];d=f.top?f.top:f.Top,A=t.isNullOrUndefined(e.bounds[u+1])?0:e.bounds[u+1].top?e.bounds[u+1].top:e.bounds[u+1].Top,h=f.left?f.left:f.Left,p=t.isNullOrUndefined(e.bounds[u+1])?0:e.bounds[u+1].left?e.bounds[u+1].left:e.bounds[u+1].Left;var m=this.pdfViewerBase.pageSize[e.pageNumber].rotation,w=0===(c=t.isNullOrUndefined(f.rotation)?m||0:f.rotation)||2===c||180===c;if(w){var C=f.right?f.right:f.Right,B=t.isNullOrUndefined(e.bounds[u+1])?0:e.bounds[u+1].right?e.bounds[u+1].right:e.bounds[u+1].Right;g=0===B||Math.abs(h-B)<.5||0===p||Math.abs(C-p)<.5}else{var S=f.bottom?f.bottom:f.Bottom,y=t.isNullOrUndefined(e.bounds[u+1])?0:e.bounds[u+1].bottom?e.bounds[u+1].bottom:e.bounds[u+1].Bottom;g=0===y||Math.abs(y-d)<.5||Math.abs(A-S)<.5}if(e.bounds.length>1&&u<e.bounds.length-1&&(d===A||h===p)&&g)o.push(f);else if((u===e.bounds.length-1||e.bounds.length>=1)&&o.push(f),o.length>=1){if(r=o.reduce(function(e,t){return(t.left?t.left:t.Left||0)<e?t.left?t.left:t.Left||0:e},1/0),a=o.reduce(function(e,t){return(t.top?t.top:t.Top||0)<e?t.top?t.top:t.Top||0:e},1/0),!this.pdfViewerBase.clientSideRendering||w){w?l=o[0].height?o[0].height:o[0].Height:s=o[0].width?o[0].width:o[0].Width;for(var I=0;I<o.length;I++)w?(!isNaN(o[parseInt(I.toString(),10)].width)&&o[parseInt(I.toString(),10)].width>0||!isNaN(o[parseInt(I.toString(),10)].Width)&&o[parseInt(I.toString(),10)].Width>0)&&(s+=o[parseInt(I.toString(),10)].width?o[parseInt(I.toString(),10)].width:o[parseInt(I.toString(),10)].Width):l+=o[parseInt(I.toString(),10)].height?o[parseInt(I.toString(),10)].height:o[parseInt(I.toString(),10)].Height}else s+=o[0].width?o[0].width:o[0].Width,l=o.reduce(function(e,t){return e+(t.height?t.height:t.Height||0)},0);if(!n){var E="Highlight"===e.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_";n="_blendAnnotationsIntoCanvas_"===E?this.pdfViewerBase.getElement(E+e.pageNumber):this.pdfViewerBase.getAnnotationCanvas(E,e.pageNumber)}0!==s&&0!==l&&this.drawAnnotationSelectRect(n,this.getMagnifiedValue(r-.5,this.pdfViewerBase.getZoomFactor()),this.getMagnifiedValue(a-.5,this.pdfViewerBase.getZoomFactor()),this.getMagnifiedValue(s+.5,this.pdfViewerBase.getZoomFactor()),this.getMagnifiedValue(l+.5,this.pdfViewerBase.getZoomFactor()),i),o=[],s=0,l=0}}},e.prototype.selectMultiPageAnnotations=function(e){for(var t=0;t<e.annotNameCollection.length;t++){var i=e.annotNameCollection[parseInt(t.toString(),10)];if(i!==e.annotName)for(var n=0;n<e.annotpageNumbers.length;n++){var o=e.annotpageNumbers[parseInt(n.toString(),10)],r=this.getAnnotations(o,null);if(r)for(var a=0;a<r.length;a++)if(r[parseInt(a.toString(),10)].annotName===i){var s=r[parseInt(a.toString(),10)];this.drawAnnotationSelector(s,e)}}}},e.prototype.deletMultiPageAnnotation=function(e){for(var t=0;t<e.annotNameCollection.length;t++){var i=e.annotNameCollection[parseInt(t.toString(),10)];if(i!==e.annotName)for(var n=0;n<e.annotpageNumbers.length;n++){var o=e.annotpageNumbers[parseInt(n.toString(),10)],r=this.getAnnotations(o,null);if(r)for(var a=0;a<r.length;a++)if(r[parseInt(a.toString(),10)].annotName===i){var s=r[parseInt(a.toString(),10)],l=null;l=r.splice(a,1)[0],this.pdfViewer.annotationModule.addAction(o,a,l,"Text Markup Deleted",null),this.currentAnnotationIndex=a,this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(l,"textMarkup");var d=document.getElementById(l.annotName);d&&(1===d.parentElement.childElementCount?this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAccordionContainer(d):d.remove()),this.pdfViewer.annotationModule.updateAnnotationCollection(s),this.manageAnnotations(r,o),this.pdfViewer.annotationModule.updateImportAnnotationCollection(s,s.pageNumber,"textMarkupAnnotation"),this.pdfViewer.annotationModule.renderAnnotations(o,null,null,null)}}}},e.prototype.modifyMultiPageAnnotations=function(e,t,i){for(var n=0;n<e.annotNameCollection.length;n++){var o=e.annotNameCollection[parseInt(n.toString(),10)];if(o!==e.annotName)for(var r=0;r<e.annotpageNumbers.length;r++){var a=e.annotpageNumbers[parseInt(r.toString(),10)],s=this.getAnnotations(a,null);if(s)for(var l=0;l<s.length;l++)s[parseInt(l.toString(),10)].annotName===o&&("Color"===t?s[parseInt(l.toString(),10)].color=i:s[parseInt(l.toString(),10)].opacity=i,s[parseInt(l.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),this.currentAnnotationIndex=l,null!==status&&"changed"!==status||this.pdfViewer.annotationModule.addAction(s[parseInt(l.toString(),10)].pageNumber,l,s[parseInt(l.toString(),10)],"Text Markup Property modified",t),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationModifiedDate(s[parseInt(l.toString(),10)]),this.manageAnnotations(s,a),this.pdfViewer.annotationModule.renderAnnotations(a,null,null,null))}}},e.prototype.convertSelectionToTextMarkup=function(e,t,i){var n=!1;this.triggerAddEvent=!1,this.multiPageCollection=[];for(var o=0;o<t.length;o++){var r=t[parseInt(o.toString(),10)].textContent,a=void 0;if(t[parseInt(o.toString(),10)].startNode===t[parseInt(o.toString(),10)].endNode){var s=document.getElementById(t[parseInt(o.toString(),10)].startNode).textContent;a=this.getIndexNumbers(t[parseInt(o.toString(),10)].pageNumber,r,s)}else a=this.getIndexNumbers(t[parseInt(o.toString(),10)].pageNumber,r);if(!n)for(var l=1;l<t.length;l++)if(t[parseInt(l.toString(),10)].pageNumber!==t[0].pageNumber&&this.isMultiAnnotation(e)){n=!0;break}this.isMultiAnnotation(e)&&t.length-1===o&&(this.triggerAddEvent=!0),this.drawTextMarkups(e,t[parseInt(o.toString(),10)].rectangleBounds,t[parseInt(o.toString(),10)].pageNumber,t[parseInt(o.toString(),10)].bound,i,r,a.startIndex,a.endIndex,n,document.getElementById(t[parseInt(o.toString(),10)].startNode))}},e.prototype.updateTextMarkupAnnotationBounds=function(e,t){if(this.currentTextMarkupAnnotation){var i=this.getAnnotations(e[parseInt(t.toString(),10)].pageIndex,null),n=null;if(i){for(var o=0;o<i.length;o++)JSON.stringify(this.currentTextMarkupAnnotation)===JSON.stringify(i[parseInt(o.toString(),10)])&&(i[parseInt(o.toString(),10)].bounds=e[parseInt(t.toString(),10)].bounds,i[parseInt(o.toString(),10)].textMarkupContent=e[parseInt(t.toString(),10)].textContent,i[parseInt(o.toString(),10)].textMarkupStartIndex=e[parseInt(t.toString(),10)].startIndex,i[parseInt(o.toString(),10)].textMarkupEndIndex=e[parseInt(t.toString(),10)].endIndex,i[parseInt(o.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),n=i[parseInt(o.toString(),10)]);if(this.manageAnnotations(i,e[parseInt(t.toString(),10)].pageIndex),this.currentTextMarkupAnnotation=null,this.pdfViewer.annotationModule.renderAnnotations(e[parseInt(t.toString(),10)].pageIndex,null,null,null),this.pdfViewerBase.updateDocumentEditedProperty(!0),n){var r={opacity:n.opacity,color:n.color,author:n.author,subject:n.subject,modifiedDate:n.modifiedDate},a=this.multiPageCollectionList(n);a.length>0?e.length-1===t&&this.pdfViewer.fireAnnotationResize(e[parseInt(t.toString(),10)].pageIndex,n.annotName,n.textMarkupAnnotationType,n.bounds,r,n.textMarkupContent,n.textMarkupStartIndex,n.textMarkupEndIndex,null,a):this.pdfViewer.fireAnnotationResize(e[parseInt(t.toString(),10)].pageIndex,n.annotName,n.textMarkupAnnotationType,n.bounds,r,n.textMarkupContent,n.textMarkupStartIndex,n.textMarkupEndIndex,null)}this.currentAnnotationIndex=null,this.selectTextMarkupCurrentPage=null}}},e.prototype.multiPageCollectionList=function(e){var t=[];if(e.isMultiSelect&&e.annotNameCollection){t.push(e);for(var i=0;i<e.annotNameCollection.length;i++){var n=e.annotNameCollection[parseInt(i.toString(),10)];if(n!==e.annotName)for(var o=0;o<e.annotpageNumbers.length;o++){var r=e.annotpageNumbers[parseInt(o.toString(),10)],a=this.getAnnotations(r,null);if(a)for(var s=0;s<a.length;s++)a[parseInt(s.toString(),10)].annotName===n&&t.push(a[parseInt(s.toString(),10)])}}}return t},e.prototype.updateAnnotationNames=function(e,t){if(e){var i=this.getAnnotations(t,null);if(i){for(var n=0;n<i.length;n++)if(e.annotName===i[parseInt(n.toString(),10)].annotName){for(var o=[],r=[],a=0;a<this.multiPageCollection.length;a++)o.push(this.multiPageCollection[parseInt(a.toString(),10)].annotName),r.push(this.multiPageCollection[parseInt(a.toString(),10)].pageNumber);i[parseInt(n.toString(),10)].isMultiSelect=!0,i[parseInt(n.toString(),10)].annotNameCollection=o,i[parseInt(n.toString(),10)].annotpageNumbers=r,i[parseInt(n.toString(),10)]}this.manageAnnotations(i,t)}}},e.prototype.updateAnnotationContent=function(e,t){if(e){var i=this.getAnnotations(this.selectTextMarkupCurrentPage,null);if(i){for(var n=0;n<i.length;n++)JSON.stringify(this.currentTextMarkupAnnotation)===JSON.stringify(i[parseInt(n.toString(),10)])&&(i[parseInt(n.toString(),10)].textMarkupContent=t.textContent,i[parseInt(n.toString(),10)].textMarkupStartIndex=t.startIndex,i[parseInt(n.toString(),10)].textMarkupEndIndex=t.endIndex,i[parseInt(n.toString(),10)]),this.pdfViewer.annotationModule.storeAnnotationCollections(i[parseInt(n.toString(),10)],this.selectTextMarkupCurrentPage);this.manageAnnotations(i,this.selectTextMarkupCurrentPage)}}},e.prototype.drawTextMarkups=function(e,i,n,o,r,a,s,l,d,A){var h=null;this.isNewAnnotation=!1;var p,c="Guest",g="Highlight"===e?this.getPageContext(n,"_blendAnnotationsIntoCanvas_"):this.getPageContext(n,"_annotationCanvas_"),u=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();this.highlightColor=this.highlightColor?this.highlightColor:this.pdfViewer.highlightSettings.color?this.pdfViewer.highlightSettings.color:"#FFDF56",this.underlineColor=this.underlineColor?this.underlineColor:this.pdfViewer.underlineSettings.color?this.pdfViewer.underlineSettings.color:"#00ff00",this.strikethroughColor=this.strikethroughColor?this.strikethroughColor:this.pdfViewer.strikethroughSettings.color?this.pdfViewer.strikethroughSettings.color:"#ff0000",this.squigglyColor=this.squigglyColor?this.squigglyColor:this.pdfViewer.squigglySettings.color?this.pdfViewer.squigglySettings.color:"#00ff00",this.highlightOpacity=this.highlightOpacity?this.highlightOpacity:this.pdfViewer.highlightSettings.opacity,this.underlineOpacity=this.underlineOpacity?this.underlineOpacity:this.pdfViewer.underlineSettings.opacity,this.strikethroughOpacity=this.strikethroughOpacity?this.strikethroughOpacity:this.pdfViewer.strikethroughSettings.opacity,this.squigglyOpacity=this.squigglyOpacity?this.squigglyOpacity:this.pdfViewer.squigglySettings.opacity?this.pdfViewer.squigglySettings.opacity:1,this.annotationAddMode="UI Drawn Annotation";var f,m=this.pdfViewerBase.pageSize[parseInt(n.toString(),10)],w=0,C=this.pdfViewerBase.getAngle(m.rotation);if(t.isNullOrUndefined(g)){var B=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+n);B&&m&&m.width&&m.height&&(g=this.pdfViewer.annotationModule.createBlendAnnotationsIntoCanvas(B,m.width,m.height,n).getContext("2d"))}if(g){switch(g.setLineDash([]),e){case"Highlight":this.isNewAnnotation=!0,p=""!==this.pdfViewer.highlightSettings.subject&&this.pdfViewer.highlightSettings.subject?this.pdfViewer.highlightSettings.subject:this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Highlight",c="Guest"!==this.pdfViewer.highlightSettings.author&&this.pdfViewer.highlightSettings.author?this.pdfViewer.highlightSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest",f=this.pdfViewer.highlightSettings.allowedInteractions?this.pdfViewer.highlightSettings.allowedInteractions:["None"],t.isNullOrUndefined(this.highlightOpacity)&&(this.highlightOpacity=1),(h=this.getAddedAnnotation(e,this.highlightColor,this.highlightOpacity,i,c,p,u,"",!1,o,n,a,s,l,d,f,w))&&this.renderHighlightAnnotation(h.bounds,h.opacity,h.color,g,r,h.isPrint,n);break;case"Strikethrough":this.isNewAnnotation=!0,p=""!==this.pdfViewer.strikethroughSettings.subject&&this.pdfViewer.strikethroughSettings.subject?this.pdfViewer.strikethroughSettings.subject:this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Strikethrough",c="Guest"!==this.pdfViewer.strikethroughSettings.author&&this.pdfViewer.strikethroughSettings.author?this.pdfViewer.strikethroughSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest",f=this.pdfViewer.strikethroughSettings.allowedInteractions?this.pdfViewer.strikethroughSettings.allowedInteractions:["None"],A&&""!==A.style.transform&&(w=A.style.transform.startsWith("rotate(90deg)")?Math.abs(C-90):A.style.transform.startsWith("rotate(180deg)")?Math.abs(C-180):A.style.transform.startsWith("rotate(-90deg)")?Math.abs(C-270):C),t.isNullOrUndefined(this.strikethroughOpacity)&&(this.strikethroughOpacity=1),(h=this.getAddedAnnotation(e,this.strikethroughColor,this.strikethroughOpacity,i,c,p,u,"",!1,o,n,a,s,l,d,f,w))&&this.renderStrikeoutAnnotation(h.bounds,h.opacity,h.color,g,r,n,h.isPrint,h.annotationRotation,h.textMarkupContent);break;case"Underline":this.isNewAnnotation=!0,p=""!==this.pdfViewer.underlineSettings.subject&&this.pdfViewer.underlineSettings.subject?this.pdfViewer.underlineSettings.subject:this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Underline",c="Guest"!==this.pdfViewer.underlineSettings.author&&this.pdfViewer.underlineSettings.author?this.pdfViewer.underlineSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest",f=this.pdfViewer.underlineSettings.allowedInteractions?this.pdfViewer.underlineSettings.allowedInteractions:["None"],A&&""!==A.style.transform&&(w=A.style.transform.startsWith("rotate(90deg)")?Math.abs(C-90):A.style.transform.startsWith("rotate(180deg)")?Math.abs(C-180):A.style.transform.startsWith("rotate(-90deg)")?Math.abs(C-270):C),t.isNullOrUndefined(this.underlineOpacity)&&(this.underlineOpacity=1),(h=this.getAddedAnnotation(e,this.underlineColor,this.underlineOpacity,i,c,p,u,"",!1,o,n,a,s,l,d,f,w))&&this.renderUnderlineAnnotation(h.bounds,h.opacity,h.color,g,r,n,h.isPrint,h.annotationRotation);break;case"Squiggly":this.isNewAnnotation=!0,p=""!==this.pdfViewer.squigglySettings.subject&&this.pdfViewer.squigglySettings.subject?this.pdfViewer.squigglySettings.subject:this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Squiggly",c="Guest"!==this.pdfViewer.squigglySettings.author&&this.pdfViewer.squigglySettings.subject?this.pdfViewer.squigglySettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest",f=this.pdfViewer.squigglySettings.allowedInteractions?this.pdfViewer.squigglySettings.allowedInteractions:["None"],A&&""!==A.style.transform&&(w=A.style.transform.startsWith("rotate(90deg)")?Math.abs(C-90):A.style.transform.startsWith("rotate(180deg)")?Math.abs(C-180):A.style.transform.startsWith("rotate(-90deg)")?Math.abs(C-270):C),i=this.formatSquigglyBounds(i,C,a),(h=this.getAddedAnnotation(e,this.squigglyColor,this.squigglyOpacity,i,c,p,u,"",!1,o,n,a,s,l,d,f,w))&&this.renderSquigglyAnnotation(h.bounds,h.opacity,h.color,g,r,n,h.isPrint,h.annotationRotation)}if(this.isNewAnnotation=!1,h){this.pdfViewerBase.updateDocumentEditedProperty(!0);var S={opacity:h.opacity,color:h.color,author:h.author,subject:h.subject,modifiedDate:h.modifiedDate};this.isMultiAnnotation(e)?this.triggerAddEvent&&this.pdfViewer.fireAnnotationAdd(n,h.annotName,e,h.bounds,S,a,s,l,null,this.multiPageCollection):this.pdfViewer.fireAnnotationAdd(n,h.annotName,e,h.bounds,S,a,s,l)}t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools(e)}},e.prototype.retreiveTextIndex=function(e){if(""===e.textMarkupContent){this.retreieveSelection(e,null);var t=this.getDrawnBounds();window.getSelection().removeAllRanges(),t[0]&&t[0].bounds&&(this.updateAnnotationContent(e,t[0]),e.textMarkupContent=t[0].textContent,e.textMarkupStartIndex=t[0].startIndex,e.textMarkupEndIndex=t[0].endIndex)}return e},e.prototype.renderHighlightAnnotation=function(e,t,i,n,o,r,a){for(var s=this.pdfViewerBase.getZoomRatio(o),l=0;l<e.length;l++){var d=e[parseInt(l.toString(),10)];n.beginPath();var A=d.X?d.X:d.left,h=d.Y?d.Y:d.top,p=d.Width?d.Width:d.width,c=d.Height?d.Height:d.height,g=d.Rotation?d.Rotation:d.rotation;A=A||d.x,h=h||d.y,this.pdfViewerBase.clientSideRendering?(g>=0&&(g=Math.abs(g)/90),0===g||2===g?c-=1:1!==g&&3!==g||(p-=1)):c-=1,n.canvas.id===this.pdfViewer.element.id+"_print_annotation_layer_"+a||n.canvas.id===this.pdfViewer.element.id+"_print_blendAnnotations_canvas_"+a?r&&(n.rect(A*s,h*s,p*s,c*s),n.globalAlpha=t,n.closePath(),n.fillStyle=i,n.msFillRule="nonzero",n.fill()):(n.rect(A*s,h*s,p*s,c*s),n.globalAlpha=t,n.closePath(),n.fillStyle=i,n.msFillRule="nonzero",n.fill())}n.save()},e.prototype.renderStrikeoutAnnotation=function(e,t,i,n,o,r,a,s,l){for(var d=0;d<e.length;d++){var A=this.getProperBounds(e[parseInt(d.toString(),10)]),h=this.pdfViewerBase.pageSize[parseInt(r.toString(),10)],p=this.pdfViewerBase.getZoomRatio(o),c=h.rotation;if(s||this.pdfViewerBase.clientSideRendering&&e[parseInt(d.toString(),10)].rotation){var g=this.pdfViewerBase.getAngle(c);c=this.pdfViewerBase.clientSideRendering?Math.abs(e[parseInt(d.toString(),10)].rotation)/90:Math.abs(s-g)/90}n.canvas.id===this.pdfViewer.element.id+"_print_annotation_layer_"+r?a&&(1===c?this.drawLine(t,A.x+A.width/2,A.y,A.width,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):2===c?this.drawLine(t,A.x,A.y+A.height/2,A.width,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):3===c?this.drawLine(t,A.x,A.y,A.width/2,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):this.drawLine(t,A.x,A.y,A.width,A.height/2,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l)):1===c?this.drawLine(t,A.x+A.width/2,A.y,A.width,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):2===c?this.drawLine(t,A.x,A.y+A.height/2,A.width,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):3===c?this.drawLine(t,A.x,A.y,A.width/2,A.height,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l):this.drawLine(t,A.x,A.y,A.width,A.height/2,i,p,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(d.toString(),10)].rotation:s,l)}},e.prototype.renderUnderlineAnnotation=function(e,t,i,n,o,r,a,s){for(var l=0;l<e.length;l++){var d=this.getProperBounds(e[parseInt(l.toString(),10)]),A=this.pdfViewerBase.getZoomRatio(o);n.canvas.id===this.pdfViewer.element.id+"_print_annotation_layer_"+r?a&&this.drawLine(t,d.x,d.y,d.width,d.height,i,A,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(l.toString(),10)].rotation:s):this.drawLine(t,d.x,d.y,d.width,d.height,i,A,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(l.toString(),10)].rotation:s)}},e.prototype.getProperBounds=function(e){var t=e.X?e.X:e.left,i=e.Y?e.Y:e.top,n=e.Width?e.Width:e.width,o=e.Height?e.Height:e.height;return t=t||e.x,i=i||e.y,{x:t,y:i,width:n,height:o}},e.prototype.isChineseLanguage=function(e){return!!/[\u4e00-\u9fff]/.test(e)},e.prototype.drawLine=function(e,i,n,o,r,a,s,l,d,A,h){l.globalAlpha=e,t.isBlazor()&&(n-=1),this.isChineseLanguage(h)&&(r-=1.5),this.pdfViewerBase.clientSideRendering||this.isChineseLanguage(h)||(r-=1),l.beginPath();var p=this.pdfViewerBase.pageSize[parseInt(d.toString(),10)].rotation;if(A||this.pdfViewerBase.clientSideRendering&&A>=0){var c=this.pdfViewerBase.getAngle(p);p=this.pdfViewerBase.clientSideRendering?Math.abs(A)/90:Math.abs(A-c)/90}if(this.pdfViewerBase.clientSideRendering&&(0===p||2===p?r-=1:1!==p&&3!==p||(o-=1)),1===p){g=Math.round(i*s);l.moveTo(g,Math.round(n*s)),l.lineTo(g,Math.round((n+r)*s))}else if(2===p){u=Math.round(n*s);l.moveTo(Math.round(i*s),u),l.lineTo(Math.round((o+i)*s),u)}else if(3===p){var g=Math.round((o+i)*s);l.moveTo(g,Math.round(n*s)),l.lineTo(g,Math.round((n+r)*s))}else{var u=Math.round((n+r)*s);l.moveTo(Math.round(i*s),u),l.lineTo(Math.round((o+i)*s),u)}l.lineWidth=1,l.strokeStyle=a,l.closePath(),l.msFillRule="nonzero",l.stroke()},e.prototype.renderSquigglyAnnotation=function(e,t,i,n,o,r,a,s){for(var l=0;l<e.length;l++){var d=this.getProperBounds(e[parseInt(l.toString(),10)]),A=this.pdfViewerBase.getZoomRatio(o);n.canvas.id===this.pdfViewer.element.id+"_print_annotation_layer_"+r?a&&this.drawSquiggly(t,d.x,d.y,d.width,d.height,i,A,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(l.toString(),10)].rotation:s):this.drawSquiggly(t,d.x,d.y,d.width,d.height,i,A,n,r,this.pdfViewerBase.clientSideRendering?e[parseInt(l.toString(),10)].rotation:s)}},e.prototype.drawSquiggly=function(e,t,i,n,o,r,a,s,l,d){s.globalAlpha=e,s.strokeStyle=r,s.lineWidth=.85*a,s.setLineDash([]),s.save();var A=t*a,h=i*a,p=n*a,c=o*a;s.beginPath(),s.rect(A,h,p,c),s.clip();var g=this.pdfViewerBase.pageSize[l].rotation;if(d||this.pdfViewerBase.clientSideRendering&&d>=0){var u=this.pdfViewerBase.getAngle(g);g=this.pdfViewerBase.clientSideRendering?Math.abs(d)/90:Math.abs(d-u)/90}var f=0,m=0;a>=1?0===g||2===g?(f=Math.max(3.05,.15*o*a),m=Math.max(3.5,.17*o*a)):1!==g&&3!==g||(f=Math.max(3.05,.15*n*a),m=Math.max(3.5,.17*n*a)):0===g||2===g?(f=Math.max(.35,.13*o*a),m=Math.max(.5,.15*o*a)):1!==g&&3!==g||(f=Math.max(.35,.13*n*a),m=Math.max(.5,.15*n*a));var w,C,B,S;if(s.beginPath(),0===g)for(w=t*a,C=(i+o)*a,B=(t+n)*a,s.moveTo(w,C);w<B;)s.lineTo(w+f,C-m),w+=f,s.lineTo(w+f,C),w+=f;else if(1===g)for(w=t*a,C=i*a,S=(i+o)*a,s.moveTo(w,C);C<S;)s.lineTo(w+m,C+f),C+=f,s.lineTo(w,C+f),C+=f;else if(2===g)for(w=(t+n)*a,C=i*a,B=t*a,s.moveTo(w,C);w>B;)s.lineTo(w-f,C+m),w-=f,s.lineTo(w-f,C),w-=f;else if(3===g)for(w=(t+n)*a,C=(i+o)*a,S=i*a,s.moveTo(w,C);C>S;)s.lineTo(w-m,C-f),C-=f,s.lineTo(w,C-f),C-=f;s.stroke(),s.closePath(),s.restore()},e.prototype.printAnnotationsInCanvas=function(e,i,n,o,r,a,s,l){var d=t.createElement("canvas",{id:this.pdfViewer.element.id+"_print_annotation_layer_"+i});d.style.width="816px",d.style.height="1056px";var A=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].width,h=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].height,p=this.pdfViewerBase.getZoomRatio(1);d.height=h*p,d.width=A*p;var c=this.getAnnotations(i,null,"_annotations_shape"),g=this.getAnnotations(i,null,"_annotations_shape_measure"),u=this.getAnnotations(i,null,"_annotations_stamp"),f=this.getAnnotations(i,null,"_annotations_sticky");return this.getAnnotations(i,null,"_annotations_ink")||u||c||f||g?(this.pdfViewer.renderDrawing(d,i),this.pdfViewer.annotation.renderAnnotations(i,null,null,null,d,null,null,s,l)):(this.pdfViewer.annotation.renderAnnotations(i,o,r,null,d,null,null,s,l),this.pdfViewer.annotation.stampAnnotationModule.renderStampAnnotations(n,i,d),this.pdfViewer.annotation.stickyNotesAnnotationModule.renderStickyNotesAnnotations(a,i,d)),this.renderTextMarkupAnnotations(null,i,d,1)},e.prototype.saveTextMarkupAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_textMarkup");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_textMarkup"]);for(var t=[],i=0;i<this.pdfViewerBase.pageCount;i++)t[parseInt(i.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var n=JSON.parse(e),o=0;o<n.length;o++){var r=[],a=n[parseInt(o.toString(),10)];if(a){for(var s=this,l=0;a.annotations.length>l;l++)!function(e){if(s.pdfViewer.annotationModule.updateModifiedDate(a.annotations[parseInt(e.toString(),10)]),s.pdfViewerBase.isJsonExported)if(a.annotations[parseInt(e.toString(),10)].isAnnotationRotated)a.annotations[parseInt(e.toString(),10)].bounds=s.getBoundsForSave(a.annotations[parseInt(e.toString(),10)].bounds,o);else{var t=s.pdfViewerBase.pageSize[a.pageIndex];t&&(a.annotations[parseInt(e.toString(),10)].annotationRotation=t.rotation)}if(s.isChineseLanguage(a.annotations[parseInt(e.toString(),10)].textMarkupContent)&&a.annotations[parseInt(e.toString(),10)].bounds.length>0){var i="Strikethrough"===a.annotations[parseInt(e.toString(),10)].textMarkupAnnotationType?s.strikeoutDifference:"Underline"===a.annotations[parseInt(e.toString(),10)].textMarkupAnnotationType?s.underlineDifference:0;a.annotations[parseInt(e.toString(),10)].bounds.forEach(function(e){e.height=e.height?e.height:e.Height,e.height>0&&(e.height+=i)})}a.annotations[parseInt(e.toString(),10)].bounds=JSON.stringify(s.getBoundsForSave(a.annotations[parseInt(e.toString(),10)].bounds,a.annotations[parseInt(e.toString(),10)].pageNumber));var n=a.annotations[parseInt(e.toString(),10)].color;a.annotations[parseInt(e.toString(),10)].color=JSON.stringify(s.getRgbCode(n)),a.annotations[parseInt(e.toString(),10)].rect=JSON.stringify(a.annotations[parseInt(e.toString(),10)].rect)}(l);r=a.annotations}t[a.pageIndex]=r}return JSON.stringify(t)},e.prototype.deleteTextMarkupAnnotation=function(){if(this.currentTextMarkupAnnotation){var e=!1;if(this.currentTextMarkupAnnotation.annotationSettings&&(e=this.currentTextMarkupAnnotation.annotationSettings.isLock,this.pdfViewer.annotationModule.checkAllowedInteractions("Delete",this.currentTextMarkupAnnotation)&&(e=!1)),!e){var i=null;this.showHideDropletDiv(!0);var n=this.currentTextMarkupAnnotation;this.currentTextMarkupAnnotation.isMultiSelect&&n.annotNameCollection&&this.deletMultiPageAnnotation(n);var o=this.getAnnotations(this.selectTextMarkupCurrentPage,null);if(o){for(var r=0;r<o.length;r++)if(this.currentTextMarkupAnnotation.annotName===o[parseInt(r.toString(),10)].annotName){i=o.splice(r,1)[0],this.pdfViewer.annotationModule.addAction(this.selectTextMarkupCurrentPage,r,i,"Text Markup Deleted",null),this.currentAnnotationIndex=r,this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(i,"textMarkup");var a=document.getElementById(i.annotName);a&&(1===a.parentElement.childElementCount?this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAccordionContainer(a):a.remove())}this.pdfViewer.annotationModule.updateAnnotationCollection(this.currentTextMarkupAnnotation),this.manageAnnotations(o,this.selectTextMarkupCurrentPage),this.pdfViewer.annotationModule.updateImportAnnotationCollection(this.currentTextMarkupAnnotation,this.currentTextMarkupAnnotation.pageNumber,"textMarkupAnnotation");var s=this.currentTextMarkupAnnotation.annotName,l=this.currentTextMarkupAnnotation.bounds;this.currentTextMarkupAnnotation=null,this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage,null,null,null),this.pdfViewerBase.updateDocumentEditedProperty(!0);var d=this.multiPageCollectionList(n);d.length>0?(d.push(i),this.pdfViewer.fireAnnotationRemove(this.selectTextMarkupCurrentPage,s,i.textMarkupAnnotationType,l,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex,d)):t.isNullOrUndefined(i)||this.pdfViewer.fireAnnotationRemove(this.selectTextMarkupCurrentPage,s,i.textMarkupAnnotationType,l,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex),this.currentAnnotationIndex=null,this.selectTextMarkupCurrentPage=null,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.pdfViewer.toolbarModule.annotationToolbarModule.hideMobileAnnotationToolbar(),this.pdfViewer.toolbarModule.showToolbar(!0))}}}},e.prototype.modifyBoundsProperty=function(e){if(this.currentTextMarkupAnnotation){var t=this.modifyAnnotationProperty("Bounds",e,null);this.manageAnnotations(t,this.selectTextMarkupCurrentPage),this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage,null,null,null),this.pdfViewerBase.updateDocumentEditedProperty(!0);var i=this.currentTextMarkupAnnotation,n=this.multiPageCollectionList(i);n.length>0?(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,i.annotName,i.textMarkupAnnotationType,!1,!1,!1,!1,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex,n),this.currentAnnotationIndex=null):(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,i.annotName,i.textMarkupAnnotationType,!1,!1,!1,!1,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex),this.currentAnnotationIndex=null)}},e.prototype.modifyColorProperty=function(e){if(this.currentTextMarkupAnnotation){var t=this.modifyAnnotationProperty("Color",e,null);this.manageAnnotations(t,this.selectTextMarkupCurrentPage),this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage,null,null,null),this.pdfViewerBase.updateDocumentEditedProperty(!0);var i=this.currentTextMarkupAnnotation,n=this.multiPageCollectionList(i);n.length>0?(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,i.annotName,i.textMarkupAnnotationType,!0,!1,!1,!1,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex,n),this.currentAnnotationIndex=null):(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,i.annotName,i.textMarkupAnnotationType,!0,!1,!1,!1,i.textMarkupContent,i.textMarkupStartIndex,i.textMarkupEndIndex),this.currentAnnotationIndex=null)}},e.prototype.modifyOpacityProperty=function(e,i){if(this.currentTextMarkupAnnotation){var n=void 0;if((n=t.isNullOrUndefined(i)?this.modifyAnnotationProperty("Opacity",e.value/100,e.name):this.modifyAnnotationProperty("Opacity",i,"changed"))&&(this.manageAnnotations(n,this.selectTextMarkupCurrentPage),this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage,null,null,null),!t.isNullOrUndefined(i)||"changed"===e.name)){this.pdfViewerBase.updateDocumentEditedProperty(!0);var o=this.currentTextMarkupAnnotation,r=this.multiPageCollectionList(o);r.length>0?(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,o.annotName,o.textMarkupAnnotationType,!1,!0,!1,!1,o.textMarkupContent,o.textMarkupStartIndex,o.textMarkupEndIndex,r),this.currentAnnotationIndex=null):(this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage,o.annotName,o.textMarkupAnnotationType,!1,!0,!1,!1,o.textMarkupContent,o.textMarkupStartIndex,o.textMarkupEndIndex),this.currentAnnotationIndex=null)}}},e.prototype.modifyAnnotationProperty=function(e,t,i,n){var o=this.currentTextMarkupAnnotation;this.pdfViewer.annotationModule.isFormFieldShape=!1,o.isMultiSelect&&o.annotNameCollection&&this.modifyMultiPageAnnotations(o,e,t);var r=this.getAnnotations(this.selectTextMarkupCurrentPage,null);if(r)for(var a=0;a<r.length;a++)JSON.stringify(this.currentTextMarkupAnnotation)===JSON.stringify(r[parseInt(a.toString(),10)])&&("Color"===e?r[parseInt(a.toString(),10)].color=t:"Opacity"===e?r[parseInt(a.toString(),10)].opacity=t:"AnnotationSettings"===e?r[parseInt(a.toString(),10)].annotationSettings={isLock:t}:"Bounds"===e?r[parseInt(a.toString(),10)].bounds=t:"AnnotationSelectorSettings"===e&&(r[parseInt(a.toString(),10)].annotationSelectorSettings=t),r[parseInt(a.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),this.currentAnnotationIndex=a,null!==i&&"changed"!==i||this.pdfViewer.annotationModule.addAction(this.selectTextMarkupCurrentPage,a,this.currentTextMarkupAnnotation,"Text Markup Property modified",e),this.currentTextMarkupAnnotation=r[parseInt(a.toString(),10)],this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationModifiedDate(r[parseInt(a.toString(),10)]),this.pdfViewer.annotationModule.storeAnnotationCollections(r[parseInt(a.toString(),10)],this.selectTextMarkupCurrentPage));return r},e.prototype.undoTextMarkupAction=function(e,t,i,n){var o=this.getAnnotations(t,null);if(o)if("Text Markup Added"===n){this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(o[parseInt(i.toString(),10)],"textMarkup",null,!0);var r=document.getElementById(o[parseInt(i.toString(),10)].annotName);r&&(1===r.parentElement.childElementCount?this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAccordionContainer(r):r.parentElement.removeChild(r)),o.splice(i,1),this.pdfViewer.annotationCollection.splice(i,1)}else"Text Markup Deleted"===n&&(this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addAnnotationComments(t,e.shapeAnnotationType,!0),o.splice(i,0,e));this.clearCurrentAnnotation(),this.pdfViewerBase.updateDocumentEditedProperty(!0),this.manageAnnotations(o,t),this.pdfViewer.annotationModule.renderAnnotations(t,null,null,null)},e.prototype.undoRedoPropertyChange=function(e,t,i,n,o){var r=this.getAnnotations(t,null);if(r){if("Color"===n){var a=r[parseInt(i.toString(),10)].color;r[parseInt(i.toString(),10)].color=e.color,e.color=a}else{var s=r[parseInt(i.toString(),10)].opacity;r[parseInt(i.toString(),10)].opacity=e.opacity,e.opacity=s}this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationModifiedDate(e,null,!0),o&&(e.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime())}return this.clearCurrentAnnotation(),this.pdfViewerBase.updateDocumentEditedProperty(!0),this.manageAnnotations(r,t),this.pdfViewer.annotationModule.renderAnnotations(t,null,null,null),e},e.prototype.redoTextMarkupAction=function(e,t,i,n){var o=this.getAnnotations(t,null);if(o)if("Text Markup Added"===n)this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addAnnotationComments(t,e.shapeAnnotationType,!1),o.push(e);else if("Text Markup Deleted"===n){this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(o[parseInt(i.toString(),10)],"textMarkup");var r=document.getElementById(o[parseInt(i.toString(),10)].annotName);r&&(1===r.parentElement.childElementCount?this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAccordionContainer(r):r.remove()),o.splice(i,1)}this.clearCurrentAnnotation(),this.pdfViewerBase.updateDocumentEditedProperty(!0),this.manageAnnotations(o,t),this.pdfViewer.annotationModule.renderAnnotations(t,null,null,null)},e.prototype.saveNoteContent=function(e,t){var i=this.getAnnotations(e,null);if(i)for(var n=0;n<i.length;n++)JSON.stringify(this.currentTextMarkupAnnotation)===JSON.stringify(i[parseInt(n.toString(),10)])&&(i[parseInt(n.toString(),10)].note=t);this.manageAnnotations(i,e),this.pdfViewerBase.updateDocumentEditedProperty(!0)},e.prototype.clearCurrentAnnotation=function(){if(!this.isExtended){this.pdfViewer.isMaintainSelection&&!this.pdfViewer.textSelectionModule.isTextSelection||(this.selectTextMarkupCurrentPage=null,this.currentTextMarkupAnnotation=null);var e=!1;this.pdfViewer.annotation.freeTextAnnotationModule&&this.pdfViewer.annotation.freeTextAnnotationModule.isInuptBoxInFocus&&(e=!0),e||this.enableAnnotationPropertiesTool(!1)}},e.prototype.clearCurrentAnnotationSelection=function(e,t){this.isAnnotationSelect=!!t;for(var i=e-2>=0?e-2:0,n=e+2<this.pdfViewerBase.pageCount?e+2:this.pdfViewerBase.pageCount-1,o=i;o<=n;o++)this.clearAnnotationSelection(o)},e.prototype.getBoundsForSave=function(e,t){for(var i=[],n=0;n<e.length;n++){var o=this.getAnnotationBounds(e[parseInt(n.toString(),10)],t);i.push(o)}return i},e.prototype.getAnnotationBounds=function(e,i){var n=t.isNullOrUndefined(e.left)?e.Left:e.left,o=t.isNullOrUndefined(e.top)?e.Top:e.top,r=t.isNullOrUndefined(e.height)?e.Height:e.height,a=t.isNullOrUndefined(e.width)?e.Width:e.width,s=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)];return n=n||e.x,o=o||e.y,s?1===s.rotation?{left:o,top:s.width-(n+a),width:r,height:a}:2===s.rotation?{left:s.width-n-a,top:s.height-o-r,width:a,height:r}:3===s.rotation?{left:s.height-o-r,top:n,width:r,height:a}:{left:n,top:o,width:a,height:r}:{left:n,top:o,width:a,height:r}},e.prototype.getRgbCode=function(e){e.match(/#([a-z0-9]+)/gi)||e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(e=this.pdfViewer.annotationModule.nameToHash(e));var i=e.split(",");t.isNullOrUndefined(i[1])&&(i=(e=this.pdfViewer.annotationModule.getValue(e,"rgba")).split(","));var n=parseInt(i[0].split("(")[1],10),o=parseInt(i[1],10),r=parseInt(i[2],10);return{a:parseInt(i[3],10),r:n,g:o,b:r}},e.prototype.getDrawnBounds=function(){var e=[],t=window.getSelection();if(null!==t.anchorNode){var i=document.createRange(),n=this.pdfViewerBase.textLayer.isBackWardSelection(t);if(t.anchorNode===t.focusNode){var o=this.pdfViewerBase.textLayer.getPageIndex(t.anchorNode);if(!isNaN(o)){Q=this.pdfViewerBase.getElement("_pageDiv_"+o).getBoundingClientRect();this.pdfViewerBase.isMixedSizeDocument&&(Q=this.pdfViewerBase.getElement("_textLayer_"+o).getBoundingClientRect()),n?(i.setStart(t.focusNode,t.focusOffset),i.setEnd(t.anchorNode,t.anchorOffset)):t.anchorOffset<t.focusOffset?(t.anchorOffset,t.focusOffset,i.setStart(t.anchorNode,t.anchorOffset),i.setEnd(t.focusNode,t.focusOffset)):(t.focusOffset,t.anchorOffset,i.setStart(t.focusNode,t.focusOffset),i.setEnd(t.anchorNode,t.anchorOffset));var r=i.getBoundingClientRect(),a=0;if(this.pdfViewerBase.clientSideRendering){var s=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)],l=(this.pdfViewerBase.getAngle(s.rotation),void 0);(l=i.startContainer.parentElement?i.startContainer.parentElement:i.startContainer.parentNode)&&""!==l.style.transform&&(a=l.style.transform.startsWith("rotate(90deg)")?90:l.style.transform.startsWith("rotate(180deg)")?180:l.style.transform.startsWith("rotate(-90deg)")||l.style.transform.startsWith("rotate(270deg)")?270:0)}var d=this.getIndexNumbers(o,i.toString(),i.commonAncestorContainer.textContent.toString()),A={left:this.getDefaultValue(r.left-Q.left),top:this.getDefaultValue(r.top-Q.top),width:this.getDefaultValue(r.width),height:this.getDefaultValue(r.height),right:this.getDefaultValue(r.right-Q.left),bottom:this.getDefaultValue(r.bottom-Q.top),rotation:a},h=[];h.push(A);O={left:A.left,top:A.top,right:A.right,bottom:A.bottom,rotation:a};e.push({pageIndex:o,bounds:h,rect:O,startIndex:d.startIndex,endIndex:d.endIndex,textContent:i.toString()})}}else{var p=void 0,c=void 0,g=void 0,u=void 0;n?(p=t.focusNode,g=t.focusOffset,c=t.anchorNode,u=t.anchorOffset):(p=t.anchorNode,g=t.anchorOffset,c=t.focusNode,u=t.focusOffset);for(var f=this.pdfViewerBase.textLayer.getPageIndex(p),m=this.pdfViewerBase.textLayer.getTextIndex(p,f),w=this.pdfViewerBase.textLayer.getPageIndex(c),C=this.pdfViewerBase.textLayer.getTextIndex(c,w),B=0,S=0,y=0,I=f;I<=w;I++){var E=[],v=void 0,b=void 0,V=void 0,D=void 0,x=this.pdfViewerBase.getElement("_textLayer_"+I).childNodes,Q=this.pdfViewerBase.getElement("_pageDiv_"+I).getBoundingClientRect();this.pdfViewerBase.isMixedSizeDocument&&(Q=this.pdfViewerBase.getElement("_textLayer_"+I).getBoundingClientRect());for(var M=y=I===f?m:0;M<x.length;M++){l=x[parseInt(M.toString(),10)];M===y?(v=y,V=I===f?g:0):(b=M,D=I===w?u:l.textContent.length),B=M===m&&I===f?g:0,S=M===C&&I===w?u:l.textContent.length;for(var F=0;F<l.childNodes.length;F++){var T=l.childNodes[parseInt(F.toString(),10)];i.setStart(T,B),i.setEnd(T,S)}var r=i.getBoundingClientRect(),a=0;if(this.pdfViewerBase.clientSideRendering){s=this.pdfViewerBase.pageSize[parseInt(I.toString(),10)],this.pdfViewerBase.getAngle(s.rotation);l&&""!==l.style.transform&&(a=l.style.transform.startsWith("rotate(90deg)")?90:l.style.transform.startsWith("rotate(180deg)")?180:l.style.transform.startsWith("rotate(-90deg)")||l.style.transform.startsWith("rotate(270deg)")?270:0)}A={left:this.getDefaultValue(r.left-Q.left),top:this.getDefaultValue(r.top-Q.top),width:this.getDefaultValue(r.width),height:this.getDefaultValue(r.height),right:this.getDefaultValue(r.right-Q.left),bottom:this.getDefaultValue(r.bottom-Q.top),rotation:a};if(E.push(A),i.detach(),I===w&&M===C)break}b||(b=v),D||(D=S);var k=this.pdfViewerBase.getElement("_text_"+I+"_"+v).childNodes[0],P=this.pdfViewerBase.getElement("_text_"+I+"_"+b).childNodes[0],N=document.createRange();N.setStart(k,V),N.setEnd(P,D);var R=N.getBoundingClientRect(),L=N.toString(),d=this.getIndexNumbers(I,L),U={left:this.getDefaultValue(R.left-Q.left),top:this.getDefaultValue(R.top-Q.top),width:this.getDefaultValue(R.width),height:this.getDefaultValue(R.height),right:this.getDefaultValue(R.right-Q.left),bottom:this.getDefaultValue(R.bottom-Q.top)},O={left:U.left,top:U.top,right:U.right,bottom:U.bottom};e.push({pageIndex:I,bounds:E,rect:O,startIndex:d.startIndex,endIndex:d.endIndex,textContent:L})}}}return t.removeAllRanges(),e},e.prototype.getIndexNumbers=function(e,i,n){var o,r,a=this.pdfViewerBase.clientSideRendering?this.pdfViewerBase.getLinkInformation(e):this.pdfViewerBase.getStoredData(e);if(a){for(var s=0,l=a.pageText,d=0;d<e;d++)if(this.pdfViewer.isExtractText){var A=this.pdfViewer.textSearchModule.documentTextCollection[parseInt(d.toString(),10)][parseInt(d.toString(),10)],h=A.pageText?A.pageText:A.PageText;if(this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.documentTextCollection&&this.pdfViewer.textSearchModule.isTextRetrieved)this.pdfViewer.textSearchModule.documentTextCollection[parseInt(d.toString(),10)]&&(s+=h.length);else if(this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.documentTextCollection){if(!(e<=this.pdfViewer.textSearchModule.documentTextCollection.length)){s=0;break}this.pdfViewer.textSearchModule.documentTextCollection[parseInt(d.toString(),10)]&&(s+=h.length)}}r=(o=t.isNullOrUndefined(n)?l.indexOf(i)+s:l.indexOf(n)+n.indexOf(i)+s)+(i.length-1)}return{startIndex:o,endIndex:r}},e.prototype.rerenderAnnotationsPinch=function(e){var t=this;["_annotationCanvas_","_blendAnnotationsIntoCanvas_"].forEach(function(i){var n=t.pdfViewerBase.getElement(i+e);if(n){var o=t.pdfViewerBase.getElement("_old_annotationCanvas_"+e);o&&(n?(o.id=n.id,n.parentElement.removeChild(n)):o.id=t.pdfViewer.element.id+"_annotationCanvas_"+e,n=o),n.style.width="",n.style.height="",t.pdfViewer.restrictZoomRequest?(n.style.width=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width*t.pdfViewerBase.getZoomFactor()+"px",n.style.height=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height*t.pdfViewerBase.getZoomFactor()+"px"):(n.width=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width*t.pdfViewerBase.getZoomFactor(),n.height=t.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height*t.pdfViewerBase.getZoomFactor()),t.renderTextMarkupAnnotations(null,e,n,t.pdfViewerBase.getZoomFactor())}})},e.prototype.rerenderAnnotations=function(e){for(var t=this,i=document.querySelectorAll("#"+this.pdfViewer.element.id+"_old_annotationCanvas_"+e),n=0;n<i.length;n++)i[parseInt(n.toString(),10)]&&i[parseInt(n.toString(),10)].parentElement.removeChild(i[parseInt(n.toString(),10)]);["_annotationCanvas_"+e,"_blendAnnotationsIntoCanvas_"+e].forEach(function(e){var i=t.pdfViewerBase.getElement(e);i&&(i.style.display="block")})},e.prototype.onTextMarkupAnnotationMouseUp=function(e){var i=this.pdfViewer.annotationModule.getEventPageNumber(e);if(t.isNullOrUndefined(i)||isNaN(i))this.pdfViewerBase.isClickedOnScrollBar(e,!0)||(this.clearCurrentAnnotation(),this.clearCurrentAnnotationSelection(i));else{var n=this.pdfViewerBase.getElement("_annotationCanvas_"+i),o=this.pdfViewerBase.getElement("_blendAnnotationsIntoCanvas_"+i);this.currentTextMarkupAnnotation?this.selectedTextMarkup=this.currentTextMarkupAnnotation:this.selectedTextMarkup=null,this.clearCurrentSelectedAnnotation();var r=this.getCurrentMarkupAnnotation(e.clientX,e.clientY,i,n),a=this.getCurrentMarkupAnnotation(e.clientX,e.clientY,i,o);r&&!window.getSelection().toString()?this.onTextMarkupMouseUp(r,e,n,i):a&&!window.getSelection().toString()?this.onTextMarkupMouseUp(a,e,o,i):this.clearCurrentAnnotation(),this.pdfViewer.isMaintainSelection&&!this.pdfViewer.textSelectionModule.isTextSelection?(r||a)&&this.clearCurrentAnnotationSelection(i):this.clearCurrentAnnotationSelection(i)}},e.prototype.onTextMarkupMouseUp=function(e,i,n,o){var r=!1,a=!1;if(e.annotationSettings&&e.annotationSettings.isLock&&(r=e.annotationSettings.isLock)&&this.pdfViewer.annotationModule.checkAllowedInteractions("Select",e)&&(r=!1,a=!this.pdfViewer.annotationModule.checkAllowedInteractions("PropertyChange",e)),!r){var s=n.parentElement.getBoundingClientRect(),l=i.clientX-s.left,d=i.clientY-s.top;this.annotationClickPosition={x:l,y:d},this.selectAnnotation(e,n,o,i),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools(this.currentTextMarkupAnnotation.textMarkupAnnotationType),this.currentTextMarkupAnnotation=e,this.selectTextMarkupCurrentPage=o,a||this.enableAnnotationPropertiesTool(!0);var A=document.getElementById(this.pdfViewer.element.id+"_commantPanel");if(A&&"block"===A.style.display){var h=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+(o+1));h&&h.ej2_instances[0].expandItem(!0);var p=document.getElementById(e.annotName);p&&p.firstChild.click()}t.isBlazor()||this.pdfViewer.toolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem))}},e.prototype.onTextMarkupAnnotationTouchEnd=function(e){var i=this.pdfViewer.annotationModule.getEventPageNumber(e);if(t.isNullOrUndefined(i)||isNaN(i))if(null!=this.selectTextMarkupCurrentPage&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var n=this.selectTextMarkupCurrentPage;this.selectTextMarkupCurrentPage=null,this.clearAnnotationSelection(n)}else this.clearCurrentAnnotation(),this.clearCurrentAnnotationSelection(i);else{this.currentTextMarkupAnnotation?this.selectedTextMarkup=this.currentTextMarkupAnnotation:this.selectedTextMarkup=null,this.clearCurrentAnnotationSelection(i);var o=this.pdfViewerBase.getElement("_annotationCanvas_"+i),r=this.pdfViewerBase.getElement("_blendAnnotationsIntoCanvas_"+i);this.clearCurrentSelectedAnnotation();var a=this.getCurrentMarkupAnnotation(e.touches[0].clientX,e.touches[0].clientY,i,o),s=this.getCurrentMarkupAnnotation(e.touches[0].clientX,e.touches[0].clientY,i,r);a?this.onTextMarkupTouchEnd(a,o,e,i):s?this.onTextMarkupTouchEnd(s,r,e,i):this.clearCurrentAnnotation(),this.clearCurrentAnnotationSelection(i)}},e.prototype.onTextMarkupTouchEnd=function(e,i,n,o){var r=!1;if(e.annotationSettings&&e.annotationSettings.isLock&&(r=e.annotationSettings.isLock),!r){var a=i.parentElement.getBoundingClientRect(),s=n.touches[0].clientX-a.left,l=n.touches[0].clientY-a.top;this.annotationClickPosition={x:s,y:l},this.selectAnnotation(e,i,o,n),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools(this.currentTextMarkupAnnotation.textMarkupAnnotationType),this.currentTextMarkupAnnotation=e,this.selectTextMarkupCurrentPage=o,this.enableAnnotationPropertiesTool(!0);var d=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+(o+1));d&&d.ej2_instances[0].expandItem(!0);var A=document.getElementById(e.annotName);A&&(t.Browser.isDevice||A.firstChild.click())}},e.prototype.clearCurrentSelectedAnnotation=function(){if(this.currentTextMarkupAnnotation){this.clearAnnotationSelection(this.selectTextMarkupCurrentPage);var e=this.currentTextMarkupAnnotation;this.pdfViewer.fireAnnotationUnSelect(e.annotName,e.pageNumber,e),this.currentTextMarkupAnnotation=null,this.clearCurrentAnnotation()}},e.prototype.onTextMarkupAnnotationMouseMove=function(e){var t=this,i=e.target,n=parseInt(i.id.split("_text_")[1],10)||parseInt(i.id.split("_textLayer_")[1],10)||parseInt(i.id.split("_annotationCanvas_")[1],10);e.target&&(i.id.indexOf("_text")>-1||i.id.indexOf("_annotationCanvas")>-1||i.classList.contains("e-pv-hyperlink"))&&this.pdfViewer.annotation&&(n=this.pdfViewer.annotation.getEventPageNumber(e),["_annotationCanvas_","_blendAnnotationsIntoCanvas_"].forEach(function(o){var r=t.pdfViewerBase.getElement(o+n),a=t.getCurrentMarkupAnnotation(e.clientX,e.clientY,n,r);if(a){e.target.style.cursor="pointer";var s=t.pdfViewerBase.getMousePosition(e),l=t.pdfViewerBase.relativePosition(e),d={left:l.x,top:l.y},A={left:s.x,top:s.y},h={opacity:a.opacity,color:a.color,author:a.author,subject:a.subject,modifiedDate:a.modifiedDate};t.pdfViewerBase.isMousedOver=!0,t.pdfViewer.fireAnnotationMouseover(a.annotName,a.pageNumber,a.textMarkupAnnotationType,a.bounds,h,A,d)}else t.pdfViewer.annotationModule.hidePopupNote(),t.pdfViewerBase.isPanMode&&!t.pdfViewerBase.getAnnotationToolStatus()&&(i.style.cursor="grab"),t.pdfViewerBase.isMousedOver&&!t.pdfViewerBase.isFormFieldMousedOver&&(t.pdfViewer.fireAnnotationMouseLeave(n),t.pdfViewerBase.isMousedOver=!1)}))},e.prototype.showPopupNote=function(e,t){t.note&&this.pdfViewer.annotationModule.showPopupNote(e,t.color,t.author,t.note,t.textMarkupAnnotationType)},e.prototype.getCurrentMarkupAnnotation=function(e,t,i,n){var o=[];if(n){var r=n.parentElement.getBoundingClientRect();n.clientWidth!==n.parentElement.clientWidth&&(r=n.getBoundingClientRect());var a=e-r.left,s=t-r.top,l=this.getAnnotations(i,null),d=!1;if(l)for(var A=0;A<l.length;A++)for(var h=l[parseInt(A.toString(),10)],p=0;p<h.bounds.length;p++){var c=h.bounds[parseInt(p.toString(),10)],g=c.left?c.left:c.Left,u=c.top?c.top:c.Top,f=c.width?c.width:c.Width,m=c.height?c.height:c.Height;if(a>=this.getMagnifiedValue(g,this.pdfViewerBase.getZoomFactor())&&a<=this.getMagnifiedValue(g+f,this.pdfViewerBase.getZoomFactor())&&s>=this.getMagnifiedValue(u,this.pdfViewerBase.getZoomFactor())&&s<=this.getMagnifiedValue(u+m,this.pdfViewerBase.getZoomFactor()))o.push(h),d=!0;else if(d){d=!1;break}}var w=null;return o.length>1?w=this.compareCurrentAnnotations(o):1===o.length&&(w=o[0]),w}return null},e.prototype.compareCurrentAnnotations=function(e){for(var t,i=null,n=0;n<e.length&&n!==e.length-1;n++){var o=e[parseInt(n.toString(),10)].bounds,r=o[0].left?o[0].left:o[0].Left,a=o[0].top?o[0].top:o[0].Top,s=e[n+1].bounds,l=s[0].left?s[0].left:s[0].Left,d=s[0].top?s[0].top:s[0].Top;r<l||a<d?(t=l,i=e[n+1]):(t=r,i=e[parseInt(n.toString(),10)]),t&&n===e.length-2&&t===r&&t===l&&(t=l,i=e[n+1])}return i},e.prototype.clearAnnotationSelection=function(e){var t=this;["_annotationCanvas_"+e,"_blendAnnotationsIntoCanvas_"+e].forEach(function(i){var n=t.pdfViewerBase.getElement(i);n&&(n.getContext("2d").setLineDash([]),t.pdfViewer.annotationModule.renderAnnotations(e,null,null,null))})},e.prototype.selectAnnotation=function(e,t,i,n,o){this.pdfViewer.selectedItems.annotations[0]&&(this.pdfViewer.clearSelection(this.pdfViewer.selectedItems.annotations[0].pageIndex),this.pdfViewer.clearSelection(this.selectTextMarkupCurrentPage));var r=!1;if(e.annotationSettings&&e.annotationSettings.isLock&&(r=e.annotationSettings.isLock)&&this.pdfViewer.annotationModule.checkAllowedInteractions("Select",e)&&(r=!1),!r){var a=!1;this.currentTextMarkupAnnotation||(a=!0),this.selectedTextMarkup&&e&&!o&&(a=this.selectedTextMarkup.annotName!==e.annotName),isNaN(i)||(this.selectTextMarkupCurrentPage=i,this.currentTextMarkupAnnotation=e,e=this.retreiveTextIndex(e),this.currentTextMarkupAnnotation=e),this.isSelectedAnnotation&&this.pdfViewer.textSelectionModule&&(this.pdfViewerBase.isSelection=!0,this.updateAnnotationBounds());var s=n;if(this.isEnableTextMarkupResizer(e.textMarkupAnnotationType)&&e&&s&&!s.touches&&this.updateCurrentResizerPosition(e),this.drawAnnotationSelector(e,this.currentTextMarkupAnnotation,t),e.isMultiSelect&&e.annotNameCollection&&this.selectMultiPageAnnotations(e),""!==e.annotName&&!this.isNewAnnotation&&a){var l=!1;s||(l=!0),this.pdfViewer.annotationModule.annotationSelect(e.annotName,this.selectTextMarkupCurrentPage,e,null,!1,l),this.selectedTextMarkup=null}e&&this.isEnableTextMarkupResizer(e.textMarkupAnnotationType)&&(this.isTextMarkupAnnotationMode=!0)}},e.prototype.updateCurrentResizerPosition=function(e){if(e||(e=this.currentTextMarkupAnnotation),e&&this.isEnableTextMarkupResizer(e.textMarkupAnnotationType)&&e){var t=this.pdfViewerBase.getElement("_textLayer_"+this.selectTextMarkupCurrentPage);if(t){var i=t.getBoundingClientRect(),n=e.bounds[0].left?e.bounds[0].left:e.bounds[0].Left,o=e.bounds[0].top?e.bounds[0].top:e.bounds[0].Top;this.updateLeftposition(n*this.pdfViewerBase.getZoomFactor()+i.left,i.top+o,!0);var r=e.bounds[e.bounds.length-1],a=r.left?r.left:r.Left,s=r.top?r.top:r.Top,l=r.width?r.width:r.Width;this.updatePosition((a+l)*this.pdfViewerBase.getZoomFactor()+i.left,s+i.top,!0)}}},e.prototype.drawAnnotationSelectRect=function(e,t,i,n,o,r){var a=this.pdfViewerBase.getZoomRatio();if(e){var s=e.getContext("2d");if(s.setTransform(1,0,0,1,0,0),s.beginPath(),"string"==typeof r.annotationSelectorSettings){(l=0===JSON.parse(r.annotationSelectorSettings).selectorLineDashArray.length?[4]:JSON.parse(r.annotationSelectorSettings).selectorLineDashArray).length>2&&(l=[l[0],l[1]]),s.setLineDash(l),s.globalAlpha=1,s.rect(t*a,i*a,n*a,o*a),s.closePath();d=""===JSON.parse(r.annotationSelectorSettings).selectionBorderColor?"#0000ff":JSON.parse(r.annotationSelectorSettings).selectionBorderColor;s.strokeStyle=d,s.lineWidth=1===JSON.parse(r.annotationSelectorSettings).selectionBorderThickness?1:r.annotationSelectorSettings.selectionBorderThickness,s.stroke(),s.save()}else{var l=0===r.annotationSelectorSettings.selectorLineDashArray.length?[4]:r.annotationSelectorSettings.selectorLineDashArray;l.length>2&&(l=[l[0],l[1]]),s.setLineDash(l),s.globalAlpha=1,s.rect(t*a,i*a,n*a,o*a),s.closePath();var d=""===r.annotationSelectorSettings.selectionBorderColor?"#0000ff":r.annotationSelectorSettings.selectionBorderColor;s.strokeStyle=d,s.lineWidth=r.annotationSelectorSettings.selectionBorderThickness?1:r.annotationSelectorSettings.selectionBorderThickness,s.stroke(),s.save()}}},e.prototype.enableAnnotationPropertiesTool=function(e){if(this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&(this.pdfViewer.toolbarModule.annotationToolbarModule.colorDropDownElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-color-container")),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&(t.Browser.isDevice||this.pdfViewer.toolbarModule.annotationToolbarModule.createMobileAnnotationToolbar(e)),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.isMobileAnnotEnabled&&0===this.pdfViewer.selectedItems.annotations.length&&this.pdfViewer.toolbarModule.annotationToolbarModule){this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(e);var i=e;this.isTextMarkupAnnotationMode&&(i=!0),this.pdfViewer.toolbarModule.annotationToolbarModule.enableTextMarkupAnnotationPropertiesTools(i),this.currentTextMarkupAnnotation?t.isBlazor()?this.pdfViewer.toolbarModule.annotationToolbarModule.updateColorInIcon(this.pdfViewer.toolbarModule.annotationToolbarModule.colorDropDownElementInBlazor,this.currentTextMarkupAnnotation.color):this.pdfViewer.toolbarModule.annotationToolbarModule.updateColorInIcon(this.pdfViewer.toolbarModule.annotationToolbarModule.colorDropDownElement,this.currentTextMarkupAnnotation.color):t.isNullOrUndefined(this.isTextMarkupAnnotationMode)||this.isTextMarkupAnnotationMode?this.pdfViewer.toolbarModule.annotationToolbarModule.setCurrentColorInPicker():t.isBlazor()?this.pdfViewer.toolbarModule.annotationToolbarModule.updateColorInIcon(this.pdfViewer.toolbarModule.annotationToolbarModule.colorDropDownElementInBlazor,"#000000"):this.pdfViewer.toolbarModule.annotationToolbarModule.updateColorInIcon(this.pdfViewer.toolbarModule.annotationToolbarModule.colorDropDownElement,"#000000")}},e.prototype.maintainAnnotationSelection=function(){if(this.currentTextMarkupAnnotation){var e="Highlight"===this.currentTextMarkupAnnotation.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",t="_blendAnnotationsIntoCanvas_"===e?this.pdfViewerBase.getElement(e+this.selectTextMarkupCurrentPage):this.pdfViewerBase.getAnnotationCanvas(e,this.selectTextMarkupCurrentPage);t&&this.selectAnnotation(this.currentTextMarkupAnnotation,t,this.selectTextMarkupCurrentPage)}},e.prototype.manageAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_textMarkup");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_textMarkup"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_textMarkup");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_textMarkup"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_textMarkup",r)}},e.prototype.getAnnotations=function(e,t,i){var n;null!=i&&void 0!==i||(i="_annotations_textMarkup");var o=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+i);if(this.pdfViewerBase.isStorageExceed&&(o=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+i]),o){var r=JSON.parse(o),a=this.pdfViewer.annotationModule.getPageCollection(r,e);n=null!=a&&r[parseInt(a.toString(),10)]?r[parseInt(a.toString(),10)].annotations:t}else n=t;return n},e.prototype.getAddedAnnotation=function(e,t,i,n,o,r,a,s,l,d,A,h,p,c,g,u,f){var m=a||this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),w=this.pdfViewer.annotation.createGUID(),C=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("textMarkup",A+1,e);C&&(document.getElementById(C).id=w);var B=this.pdfViewer.annotationSettings,S=this.getIsPrintValue(e),y={textMarkupAnnotationType:e,color:t,opacity:i,bounds:n,author:o,allowedInteractions:u,subject:r,modifiedDate:m,note:s,rect:d,annotName:w,comments:[],review:{state:"",stateModel:"",author:o,modifiedDate:m},shapeAnnotationType:"textMarkup",pageNumber:A,textMarkupContent:h,textMarkupStartIndex:p,textMarkupEndIndex:c,isMultiSelect:g,annotationSelectorSettings:this.getSelector(e),customData:this.pdfViewer.annotation.getTextMarkupData(r),annotationAddMode:this.annotationAddMode,annotationSettings:B,isPrint:S,isCommentLock:l,isAnnotationRotated:!1,annotationRotation:f,isLocked:!1};y.annotationSettings=this.pdfViewer.annotationModule.updateAnnotationSettings(y),g&&this.multiPageCollection.push(y);var I=!1;g&&this.isExtended&&(I=!0),document.getElementById(w)&&!I&&document.getElementById(w).addEventListener("mouseup",this.annotationDivSelect(y,A));var E=this.pdfViewer.annotationModule.storeAnnotations(A,y,"_annotations_textMarkup");return this.pdfViewer.annotationModule.addAction(A,E,y,"Text Markup Added",null),y},e.prototype.getSelector=function(e){var t=this.pdfViewer.annotationSelectorSettings;return"Highlight"===e&&this.pdfViewer.highlightSettings.annotationSelectorSettings?t=this.pdfViewer.highlightSettings.annotationSelectorSettings:"Underline"===e&&this.pdfViewer.underlineSettings.annotationSelectorSettings?t=this.pdfViewer.underlineSettings.annotationSelectorSettings:"Strikethrough"===e&&this.pdfViewer.strikethroughSettings.annotationSelectorSettings?t=this.pdfViewer.strikethroughSettings.annotationSelectorSettings:"Squiggly"===e&&this.pdfViewer.squigglySettings.annotationSelectorSettings&&(t=this.pdfViewer.squigglySettings.annotationSelectorSettings),t},e.prototype.getIsPrintValue=function(e){var i=!0;return"Highlight"===e&&(i=this.pdfViewer.highlightSettings.isPrint),"Underline"===e&&(i=this.pdfViewer.underlineSettings.isPrint),"Strikethrough"===e&&(i=this.pdfViewer.strikethroughSettings.isPrint),"Squiggly"===e&&(i=this.pdfViewer.squigglySettings.isPrint),t.isNullOrUndefined(i)&&(i=!0),i},e.prototype.annotationDivSelect=function(e,i){var n="Highlight"===e.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",o="_blendAnnotationsIntoCanvas_"===n?this.pdfViewerBase.getElement(n+i):this.pdfViewerBase.getAnnotationCanvas(n,i);if(this.selectAnnotation(e,o,i),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.enableAnnotationToolbar){this.pdfViewer.toolbarModule.annotationToolbarModule.clearShapeMode(),this.pdfViewer.toolbarModule.annotationToolbarModule.clearMeasureMode();var r=!1;e.annotationSettings&&e.annotationSettings.isLock&&(r=e.annotationSettings.isLock),r?(this.pdfViewer.annotationModule.checkAllowedInteractions("PropertyChange",e)&&(this.pdfViewer.toolbarModule.annotationToolbarModule.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.toolbarModule.annotationToolbarModule.setCurrentColorInPicker()),this.pdfViewer.annotationModule.checkAllowedInteractions("Delete",e)&&this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(!0)):(this.pdfViewer.toolbarModule.annotationToolbarModule.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(!0),this.pdfViewer.toolbarModule.annotationToolbarModule.setCurrentColorInPicker()),this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,t.isBlazor()||this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem)}},e.prototype.getPageContext=function(e,t){var i,n=null;return(i="_annotationCanvas_"===t?this.pdfViewerBase.getAnnotationCanvas(t,e):this.pdfViewerBase.getElement(t+e))&&(n=i.getContext("2d")),n},e.prototype.getDefaultValue=function(e){return e/this.pdfViewerBase.getZoomFactor()},e.prototype.getMagnifiedValue=function(e,t){return e*t},e.prototype.saveImportedTextMarkupAnnotations=function(e,t){var i=null;e.Author=this.pdfViewer.annotationModule.updateAnnotationAuthor("textMarkup",e.Subject),e.allowedInteractions=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),i={textMarkupAnnotationType:e.TextMarkupAnnotationType,color:e.Color,opacity:e.Opacity,allowedInteractions:e.allowedInteractions,bounds:e.Bounds,author:e.Author,subject:e.Subject,modifiedDate:e.ModifiedDate,note:e.Note,rect:e.Rect,annotName:e.AnnotName,isLocked:e.IsLocked,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},shapeAnnotationType:"textMarkup",pageNumber:t,textMarkupContent:"",textMarkupStartIndex:0,textMarkupEndIndex:0,annotationSelectorSettings:this.getSettings(e),customData:this.pdfViewer.annotation.getCustomData(e),isMultiSelect:e.IsMultiSelect,annotNameCollection:e.AnnotNameCollection,annotpageNumbers:e.AnnotpageNumbers,annotationAddMode:this.annotationAddMode,annotationSettings:e.AnnotationSettings,isPrint:e.IsPrint,isCommentLock:e.IsCommentLock,isAnnotationRotated:!1},this.pdfViewer.annotationModule.storeAnnotations(t,i,"_annotations_textMarkup")},e.prototype.updateTextMarkupAnnotationCollections=function(e,t){return e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked),{textMarkupAnnotationType:e.TextMarkupAnnotationType,allowedInteractions:e.allowedInteractions,color:e.Color,opacity:e.Opacity,bounds:e.Bounds,author:e.Author,subject:e.Subject,modifiedDate:e.ModifiedDate,note:e.Note,rect:e.Rect,annotationId:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},shapeAnnotationType:"textMarkup",pageNumber:t,isMultiSelect:e.IsMultiSelect,annotNameCollection:e.AnnotNameCollection,annotpageNumbers:e.AnnotpageNumbers,customData:this.pdfViewer.annotation.getCustomData(e),annotationSettings:e.AnnotationSettings,isLocked:e.IsLocked,isPrint:e.IsPrint,isCommentLock:e.IsCommentLock}},e.prototype.updateTextMarkupSettings=function(e){"highlightSettings"===e&&(this.highlightColor=this.pdfViewer.highlightSettings.color?this.pdfViewer.highlightSettings.color:this.highlightColor,this.highlightOpacity=this.pdfViewer.highlightSettings.opacity?this.pdfViewer.highlightSettings.opacity:this.highlightOpacity),"underlineSettings"===e&&(this.underlineColor=this.pdfViewer.underlineSettings.color?this.pdfViewer.underlineSettings.color:this.underlineColor,this.underlineOpacity=this.pdfViewer.underlineSettings.opacity?this.pdfViewer.underlineSettings.opacity:this.underlineOpacity),"strikethroughSettings"===e&&(this.strikethroughColor=this.pdfViewer.strikethroughSettings.color?this.pdfViewer.strikethroughSettings.color:this.strikethroughColor,this.strikethroughOpacity=this.pdfViewer.strikethroughSettings.opacity?this.pdfViewer.strikethroughSettings.opacity:this.strikethroughOpacity),"squigglySettings"===e&&(this.squigglyColor=this.pdfViewer.squigglySettings.color?this.pdfViewer.squigglySettings.color:this.squigglyColor,this.squigglyOpacity=this.pdfViewer.squigglySettings.opacity?this.pdfViewer.squigglySettings.opacity:this.squigglyOpacity)},e.prototype.clear=function(){this.dropDivAnnotationLeft&&(this.dropDivAnnotationLeft.addEventListener("mousedown",this.maintainSelection),this.dropDivAnnotationLeft.addEventListener("mousemove",this.annotationLeftMove),this.dropDivAnnotationLeft.addEventListener("mouseup",this.selectionEnd)),this.dropDivAnnotationRight&&(this.dropDivAnnotationRight.addEventListener("mousedown",this.maintainSelection),this.dropDivAnnotationRight.addEventListener("mousemove",this.annotationRightMove),this.dropDivAnnotationRight.addEventListener("mouseup",this.selectionEnd)),this.selectTextMarkupCurrentPage=null,this.currentTextMarkupAnnotation=null,this.annotationClickPosition=null,Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_textMarkup"),this.isTextMarkupAnnotationMode=null,this.currentTextMarkupAddMode=null,this.highlightColor=null,this.underlineColor=null,this.strikethroughColor=null,this.highlightOpacity=null,this.underlineOpacity=null,this.annotationAddMode=null,this.strikethroughOpacity=null,this.isAddAnnotationProgramatically=null,this.currentAnnotationIndex=null,this.isAnnotationSelect=null,this.dropDivAnnotationLeft=null,this.dropDivAnnotationRight=null,this.dropElementLeft=null,this.dropElementRight=null,this.isDropletClicked=null,this.isRightDropletClicked=null,this.isLeftDropletClicked=null,this.isSelectionMaintained=null,this.isExtended=null,this.isNewAnnotation=null,this.selectedTextMarkup=null,this.multiPageCollection=null,this.triggerAddEvent=null,this.isSelectedAnnotation=null,this.dropletHeight=null,this.strikeoutDifference=null,this.underlineDifference=null},e.prototype.getOffsetPoints=function(e){for(var t=[],i=0;i<e.length;i++)t[parseInt(i.toString(),10)]={X:e[parseInt(i.toString(),10)].x,Y:e[parseInt(i.toString(),10)].y,Width:e[parseInt(i.toString(),10)].width,Height:e[parseInt(i.toString(),10)].height,Left:e[parseInt(i.toString(),10)].x,Top:e[parseInt(i.toString(),10)].y};return t},e.prototype.updateAddAnnotationDetails=function(e,i){i||(i={pageNumber:0});var n=null,o=null,r="",a=null,s="",l=[],d=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),A=this.pdfViewer.annotation.createGUID();"Highlight"===e?(n=this.pdfViewer.highlightSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(n),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.highlightSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("textMarkup",e),o=this.pdfViewer.highlightSettings.allowedInteractions?this.pdfViewer.highlightSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,r="Highlight",s=i.color?i.color:"#FFDF56"):"Underline"===e?(n=this.pdfViewer.underlineSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(n),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.underlineSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("textMarkup",e),o=this.pdfViewer.underlineSettings.allowedInteractions?this.pdfViewer.underlineSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,r="Underline",s=i.color?i.color:"#00ff00"):"Strikethrough"===e?(n=this.pdfViewer.strikethroughSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(n),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.strikethroughSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("textMarkup",e),o=this.pdfViewer.strikethroughSettings.allowedInteractions?this.pdfViewer.strikethroughSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,r="Strikethrough",s=i.color?i.color:"#ff0000"):"Squiggly"===e&&(n=this.pdfViewer.squigglySettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(n),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.squigglySettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("textMarkup",e),o=this.pdfViewer.squigglySettings.allowedInteractions?this.pdfViewer.squigglySettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,r="Squiggly",s=i.color?i.color:"#ff0000"),a.isLock=i.isLock?i.isLock:a.isLock,l=i.bounds?this.getOffsetPoints(i.bounds):[{X:1,Y:1,Width:100,Height:14,Left:1,Top:1,Location:{X:1,Y:1},Size:{Height:14,IsEmpty:!1,Width:100}}];var h=[],p={AllowedInteractions:i.allowedInteractions?i.allowedInteractions:o,AnnotName:A,AnnotNameCollection:null,AnnotType:"textMarkup",AnnotationSelectorSettings:i.annotationSelectorSettings?i.annotationSelectorSettings:n,AnnotationSettings:a,Author:i.author?i.author:"Guest",Bounds:l,Color:i.color?i.color:s,Comments:null,CreatedDate:d,CustomData:i.customData?i.customData:null,ExistingCustomData:null,EnableMultiPageAnnotation:!!i.enableMultiPageAnnotation&&i.enableMultiPageAnnotation,EnableTextMarkupResizer:!!i.enableTextMarkupResizer&&i.enableTextMarkupResizer,IsCommentLock:!1,IsMultiSelect:!1,IsLocked:!!i.isLock&&i.isLock,IsLock:!!i.isLock&&i.isLock,IsPrint:!!t.isNullOrUndefined(i.isPrint)||i.isPrint,ModifiedDate:"",Note:"",Opacity:i.opacity?i.opacity:1,Rect:{},State:"",StateModel:"",Subject:i.subject?i.subject:r,TextMarkupAnnotationType:r};return h[0]=p,{textMarkupAnnotation:h}},e.prototype.formatSquigglyBounds=function(e,t,i){var n=[],o=0,r=function(e){return e<=0?e:2.1/Math.abs(e)+.035},a=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/;if(this.pdfViewerBase.clientSideRendering&&a.test(i))return e;if(!this.pdfViewerBase.clientSideRendering&&(90===t||180===t||270===t)){for(s=0;s<e.length;s++)o=r(180===t?e[s].height:e[s].width),90===t?(e[s].left-=e[s].width*o,e[s].width+=e[s].width*o):180===t?(e[s].top-=e[s].height*o,e[s].height+=e[s].height*o):270===t&&(e[s].width+=e[s].width*o);return e}o=r(0===t||180===t?e[0].height:e[0].width),0===t?e[0].height+=e[0].height*o:90===t?(e[0].left-=e[0].width*o,e[0].width+=e[0].width*o):180===t?(e[0].top-=e[0].height*o,e[0].height+=e[0].height*o):270===t&&(e[0].width+=e[0].width*o),n.push(e[0]);for(var s=1;s<e.length;s++){var l=n[n.length-1],d=e[s],A=0;o=r(0===t||180===t?d.height:d.width),this.pdfViewerBase.clientSideRendering||(l.rotation=t,d.rotation=t),0!==l.rotation&&180!==l.rotation||l.rotation!==d.rotation?90!==l.rotation&&270!==l.rotation||l.rotation!==d.rotation||(90===l.rotation?(d.left-=d.width*o,d.width+=d.width*o,(A=Math.abs(d.top-(l.top+l.height)))>30||d.left!==l.left?n.push(d):A<30&&l.left===d.left&&(l.height+=d.height)):270===l.rotation&&(d.width+=d.width*o,l.left===d.left?(l.height+=d.height,l.top>d.top&&(l.top=d.top)):n.push(d))):0===l.rotation?(d.height+=d.height*o,(A=Math.abs(d.left-(l.left+l.width)))>30||d.top!==l.top?n.push(d):A<30&&l.top===d.top&&(l.width+=d.width)):180===l.rotation&&(d.top-=d.height*o,d.height+=d.height*o,l.top===d.top?(l.width+=d.width,l.left>d.left&&(l.left=d.left)):n.push(d))}return n},e}(),Ot=function(){return(Ot=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},zt=function(){function e(){}return e}(),Ht=function(){function e(e,t){this.measureShapeCount=0,this.isAddAnnotationProgramatically=!1,this.scaleRatioCollection=[],this.scaleRatioAddCollection=[],this.pdfViewer=e,this.pdfViewerBase=t}return Object.defineProperty(e.prototype,"pixelToPointFactor",{get:function(){return.75},enumerable:!0,configurable:!0}),e.prototype.renderMeasureShapeAnnotations=function(e,i,n,o){if(e)if(e.length>=1){if(!this.pdfViewer.annotation.getStoredAnnotations(i,e,"_annotations_shape_measure")||n||o)for(var r=this,a=0;a<e.length;a++)!function(o){var a=e[parseInt(o.toString(),10)],s=null;r.measureShapeCount=r.measureShapeCount+1,a.annotationAddMode=r.pdfViewer.annotationModule.findAnnotationMode(a,i,a.AnnotType);var l=void 0;if(a.ShapeAnnotationType){n&&r.pdfViewerBase.isJsonImported&&(a.Bounds=r.pdfViewerBase.importJsonForRotatedDocuments(a.Rotate,i,a.Bounds,a.AnnotationRotation),l=r.pdfViewerBase.isPageRotated);var d=null;if(a.VertexPoints)if(d=[],n&&r.pdfViewerBase.isJsonImported)d=r.pdfViewerBase.calculateVertexPoints(a.Rotate,i,a.VertexPoints,a.AnnotationRotation);else for(var A=0;A<a.VertexPoints.length;A++){var h={x:a.VertexPoints[parseInt(A.toString(),10)].X?a.VertexPoints[parseInt(A.toString(),10)].X:a.VertexPoints[parseInt(A.toString(),10)].x,y:a.VertexPoints[parseInt(A.toString(),10)].Y?a.VertexPoints[parseInt(A.toString(),10)].Y:a.VertexPoints[parseInt(A.toString(),10)].y};d.push(h)}a.Bounds&&!0===a.EnableShapeLabel&&(a.LabelBounds=r.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(a.Bounds),a.LabelBorderColor=a.LabelBorderColor?a.LabelBorderColor:a.StrokeColor,a.FontColor=a.FontColor?a.FontColor:a.StrokeColor,a.LabelFillColor=a.LabelFillColor?a.LabelFillColor:a.FillColor,a.FontSize=a.FontSize?a.FontSize:16,a.LabelSettings=a.LabelSettings?a.LabelSettings:r.pdfViewer.shapeLabelSettings),a.AnnotationSettings=a.AnnotationSettings?a.AnnotationSettings:r.pdfViewer.annotationModule.updateAnnotationSettings(a),a.IsLocked&&(a.AnnotationSettings.isLock=a.IsLocked),a.allowedInteractions=a.AllowedInteractions?a.AllowedInteractions:r.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(a);var p=a.IsPrint,c={ratio:a.Calibrate.Ratio,x:r.getNumberFormatArray(a.Calibrate.X),distance:r.getNumberFormatArray(a.Calibrate.Distance),area:r.getNumberFormatArray(a.Calibrate.Area),angle:r.getNumberFormatArray(a.Calibrate.Angle),volume:r.getNumberFormatArray(a.Calibrate.Volume),targetUnitConversion:a.Calibrate.TargetUnitConversion};a.Calibrate.Depth&&(c.depth=a.Calibrate.Depth);var g=a.Bounds.X?a.Bounds.X:a.Bounds.x,u=a.Bounds.Y?a.Bounds.Y:a.Bounds.y,f=a.Bounds.Width?a.Bounds.Width:a.Bounds.width,m=a.Bounds.Height?a.Bounds.Height:a.Bounds.height,w=(s={id:"measure"+r.measureShapeCount,shapeAnnotationType:a.ShapeAnnotationType,author:a.Author,allowedInteractions:a.allowedInteractions,modifiedDate:a.ModifiedDate,subject:a.Subject,note:a.Note,strokeColor:a.StrokeColor,fillColor:a.FillColor,opacity:a.Opacity,thickness:a.Thickness,rectangleDifference:a.RectangleDifference,borderStyle:a.BorderStyle,borderDashArray:a.BorderDashArray,rotateAngle:a.RotateAngle,isCloudShape:a.IsCloudShape,cloudIntensity:a.CloudIntensity,vertexPoints:d,lineHeadStart:a.LineHeadStart,lineHeadEnd:a.LineHeadEnd,isLocked:a.IsLocked,pageNumber:i,bounds:{left:g,top:u,width:f,height:m,right:a.Bounds.Right,bottom:a.Bounds.Bottom},caption:a.Caption,captionPosition:a.CaptionPosition,calibrate:c,leaderLength:a.LeaderLength,leaderLineExtension:a.LeaderLineExtension,leaderLineOffset:a.LeaderLineOffset,indent:a.Indent,annotName:a.AnnotName,comments:r.pdfViewer.annotationModule.getAnnotationComments(a.Comments,a,a.Author),review:{state:a.State,stateModel:a.StateModel,modifiedDate:a.ModifiedDate,author:a.Author},labelContent:a.LabelContent,enableShapeLabel:a.EnableShapeLabel,labelFillColor:a.LabelFillColor,fontColor:a.FontColor,labelBorderColor:a.LabelBorderColor,fontSize:a.FontSize,labelBounds:a.LabelBounds,annotationSelectorSettings:r.getSettings(a),labelSettings:a.LabelSettings,annotationSettings:a.AnnotationSettings,customData:r.pdfViewer.annotation.getCustomData(a),isPrint:a.IsPrint,isCommentLock:a.IsCommentLock,isAnnotationRotated:l}).vertexPoints;null==d&&(w=[]);var C="string"==typeof a.AnnotationSelectorSettings?JSON.parse(a.AnnotationSelectorSettings):a.AnnotationSelectorSettings;t.isNullOrUndefined(a.AnnotationSelectorSettings)?r.pdfViewerBase.annotationSelectorSettingLoad(a):a.AnnotationSelectorSettings=C,a.allowedInteractions=a.AllowedInteractions?a.AllowedInteractions:r.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(a);var B={id:"measure"+r.measureShapeCount,shapeAnnotationType:r.getShapeType(s),author:s.author,allowedInteractions:a.allowedInteractions,modifiedDate:s.modifiedDate,subject:s.subject,notes:s.note,fillColor:s.fillColor,strokeColor:s.strokeColor,opacity:s.opacity,thickness:s.thickness,borderStyle:s.borderStyle,borderDashArray:s.borderDashArray.toString(),rotateAngle:parseFloat(s.rotateAngle.split("Angle")[1]),isCloudShape:s.isCloudShape,cloudIntensity:s.cloudIntensity,taregetDecoraterShapes:r.pdfViewer.annotation.getArrowType(s.lineHeadEnd),sourceDecoraterShapes:r.pdfViewer.annotation.getArrowType(s.lineHeadStart),vertexPoints:w,bounds:{x:s.bounds.left,y:s.bounds.top,width:s.bounds.width,height:s.bounds.height},leaderHeight:s.leaderLength,pageIndex:i,annotName:s.annotName,comments:s.comments,review:s.review,measureType:r.getMeasureType(s),labelContent:a.LabelContent,enableShapeLabel:a.EnableShapeLabel,labelFillColor:a.LabelFillColor,fontColor:a.FontColor,labelBorderColor:a.LabelBorderColor,fontSize:a.FontSize,labelBounds:a.LabelBounds,annotationSelectorSettings:a.AnnotationSelectorSettings,annotationSettings:s.annotationSettings,annotationAddMode:a.annotationAddMode,isPrint:p,isCommentLock:s.isCommentLock,customData:s.customData};if(r.scaleRatioCollection){var S=r.scaleRatioCollection.find(function(e){return e.annotName===B.annotName});S&&void 0===S.id&&(S.id=B.id)}if(r.pdfViewer.annotation.storeAnnotations(i,s,"_annotations_shape_measure"),r.pdfViewer.add(B),r.isAddAnnotationProgramatically){var y={opacity:B.opacity,strokeColor:B.strokeColor,thickness:B.thickness,modifiedDate:B.modifiedDate,width:B.bounds.width,height:B.bounds.height};r.pdfViewer.fireAnnotationAdd(B.pageIndex,B.annotName,a.ShapeAnnotationType,B.bounds,y)}}}(a)}else if(e.shapeAnnotationType){var s=this.createAnnotationObject(e);this.updateScaleRatioCollection();var l=this.pdfViewer.measurementSettings;if("in"!==l.conversionUnit||"in"!==l.displayUnit||1!==l.scaleRatio){var d=s.calibrate.ratio.split("=").map(function(e){return e.trim()}),A=d[0].split(" "),h=A[0],p=A[1],c=d[1].split(" "),g=c[0],u=c[1],f=parseFloat(g),m=l.depth?l.depth:96,w=parseFloat(h),C={annotName:s.annotName,displayUnit:u,unit:p,ratio:f/w,destValue:f,srcValue:w,volumeDepth:m,depthValue:m,ratioString:d};this.scaleRatioCollection.push(C)}else if(t.isNullOrUndefined(this.measureRatioObject)){var w=this.sourceTextBox&&this.sourceTextBox.value?this.sourceTextBox.value:1,f=this.destTextBox&&this.destTextBox.value?this.destTextBox.value:1;this.measureRatioObject={id:s.id,annotName:s.annotName,displayUnit:this.displayUnit,unit:this.unit,depthValue:this.volumeDepth,volumeDepth:this.volumeDepth,ratioString:w+" "+this.unit+" = "+f+" "+this.displayUnit,ratio:f/w},this.scaleRatioCollection.push(Ot({},this.measureRatioObject)),this.scaleRatioAddCollection.push(Ot({},this.measureRatioObject))}else this.measureRatioObject.id=s.id,this.measureRatioObject.annotName=s.annotName,this.scaleRatioCollection.push(Ot({},this.measureRatioObject));this.pdfViewer.annotationModule.isFormFieldShape=!1,this.pdfViewer.annotationModule.storeAnnotations(i,s,"_annotations_shape_measure"),e&&(e.customData=s.customData),this.pdfViewer.annotationModule.triggerAnnotationAdd(e)}},e.prototype.getSettings=function(e){this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?"string"==typeof e.AnnotationSelectorSettings?JSON.parse(e.AnnotationSelectorSettings):e.AnnotationSelectorSettings:this.getSelector(e.Subject)},e.prototype.setAnnotationType=function(e){var i,n="Guest",o="";switch(this.updateMeasureproperties(),this.pdfViewerBase.disableTextSelectionMode(),e){case"Distance":this.currentAnnotationMode="Distance";this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.distanceSettings.author?this.pdfViewer.distanceSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.distanceSettings.subject?this.pdfViewer.distanceSettings.subject:"Distance calculation":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.distanceSettings.customData?this.pdfViewer.distanceSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={sourceDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.distanceStartHead),taregetDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.distanceEndHead),measureType:"Distance",fillColor:this.distanceFillColor,notes:"",strokeColor:this.distanceStrokeColor,leaderHeight:this.leaderLength,opacity:this.distanceOpacity,thickness:this.distanceThickness,borderDashArray:this.distanceDashArray.toString(),shapeAnnotationType:"Distance",author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="Distance";break;case"Perimeter":this.currentAnnotationMode="Perimeter";this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.perimeterSettings.author?this.pdfViewer.perimeterSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.perimeterSettings.subject?this.pdfViewer.perimeterSettings.subject:"Perimeter calculation":this.pdfViewer.annotationSettings.subject,this.pdfViewer.drawingObject={shapeAnnotationType:"LineWidthArrowHead",fillColor:this.perimeterFillColor,notes:"",strokeColor:this.perimeterStrokeColor,opacity:this.perimeterOpacity,thickness:this.perimeterThickness,sourceDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.perimeterStartHead),taregetDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.perimeterEndHead),measureType:"Perimeter",borderDashArray:this.perimeterDashArray.toString(),author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="Perimeter";break;case"Area":this.currentAnnotationMode="Area";var r=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.areaSettings.author?this.pdfViewer.areaSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.areaSettings.subject?this.pdfViewer.areaSettings.subject:"Area calculation":this.pdfViewer.annotationSettings.subject,this.pdfViewer.drawingObject={shapeAnnotationType:"Polygon",fillColor:this.areaFillColor,notes:"",strokeColor:this.areaStrokeColor,thickness:this.areaThickness,opacity:this.areaOpacity,measureType:"Area",modifiedDate:r,borderStyle:"",borderDashArray:"0",author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="Polygon";break;case"Radius":this.currentAnnotationMode="Radius";var a=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.radiusSettings.author?this.pdfViewer.radiusSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.radiusSettings.subject?this.pdfViewer.radiusSettings.subject:"Radius calculation":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.radiusSettings.customData?this.pdfViewer.radiusSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={shapeAnnotationType:"Radius",fillColor:this.radiusFillColor,notes:"",strokeColor:this.radiusStrokeColor,opacity:this.radiusOpacity,thickness:this.radiusThickness,measureType:"Radius",modifiedDate:a,borderStyle:"",borderDashArray:"0",author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="DrawTool";break;case"Volume":this.currentAnnotationMode="Volume";var s=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.volumeSettings.author?this.pdfViewer.volumeSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.volumeSettings.subject?this.pdfViewer.volumeSettings.subject:"Volume calculation":this.pdfViewer.annotationSettings.subject,this.pdfViewer.drawingObject={shapeAnnotationType:"Polygon",notes:"",fillColor:this.volumeFillColor,strokeColor:this.volumeStrokeColor,opacity:this.volumeOpacity,thickness:this.volumeThickness,measureType:"Volume",modifiedDate:s,borderStyle:"",borderDashArray:"0",author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="Polygon"}},e.prototype.updateMeasureproperties=function(){this.distanceFillColor=this.pdfViewer.distanceSettings.fillColor?this.pdfViewer.distanceSettings.fillColor:"#ff0000",this.distanceStrokeColor=this.pdfViewer.distanceSettings.strokeColor?this.pdfViewer.distanceSettings.strokeColor:"#ff0000",this.distanceOpacity=this.pdfViewer.distanceSettings.opacity?this.pdfViewer.distanceSettings.opacity:1,this.distanceThickness=this.pdfViewer.distanceSettings.thickness?this.pdfViewer.distanceSettings.thickness:1,this.distanceDashArray=this.pdfViewer.distanceSettings.borderDashArray?this.pdfViewer.distanceSettings.borderDashArray:0,this.leaderLength=null!=this.pdfViewer.distanceSettings.leaderLength?this.pdfViewer.distanceSettings.leaderLength:40,this.distanceStartHead=this.pdfViewer.distanceSettings.lineHeadStartStyle?this.pdfViewer.distanceSettings.lineHeadStartStyle:"Closed",this.distanceEndHead=this.pdfViewer.distanceSettings.lineHeadEndStyle?this.pdfViewer.distanceSettings.lineHeadEndStyle:"Closed",this.perimeterFillColor=this.pdfViewer.perimeterSettings.fillColor?this.pdfViewer.perimeterSettings.fillColor:"#ffffff00",this.perimeterStrokeColor=this.pdfViewer.perimeterSettings.strokeColor?this.pdfViewer.perimeterSettings.strokeColor:"#ff0000",this.perimeterOpacity=this.pdfViewer.perimeterSettings.opacity?this.pdfViewer.perimeterSettings.opacity:1,this.perimeterThickness=this.pdfViewer.perimeterSettings.thickness?this.pdfViewer.perimeterSettings.thickness:1,this.perimeterDashArray=this.pdfViewer.perimeterSettings.borderDashArray?this.pdfViewer.perimeterSettings.borderDashArray:0,this.perimeterStartHead=this.pdfViewer.perimeterSettings.lineHeadStartStyle?this.pdfViewer.perimeterSettings.lineHeadStartStyle:"Open",this.perimeterEndHead=this.pdfViewer.perimeterSettings.lineHeadEndStyle?this.pdfViewer.perimeterSettings.lineHeadEndStyle:"Open",this.areaFillColor=this.pdfViewer.areaSettings.fillColor?this.pdfViewer.areaSettings.fillColor:"#ffffff00",this.areaStrokeColor=this.pdfViewer.areaSettings.strokeColor?this.pdfViewer.areaSettings.strokeColor:"#ff0000",this.areaOpacity=this.pdfViewer.areaSettings.opacity?this.pdfViewer.areaSettings.opacity:1,this.areaThickness=this.pdfViewer.areaSettings.thickness?this.pdfViewer.areaSettings.thickness:1,this.radiusFillColor=this.pdfViewer.radiusSettings.fillColor?this.pdfViewer.radiusSettings.fillColor:"#ffffff00",this.radiusStrokeColor=this.pdfViewer.radiusSettings.strokeColor?this.pdfViewer.radiusSettings.strokeColor:"#ff0000",this.radiusOpacity=this.pdfViewer.radiusSettings.opacity?this.pdfViewer.radiusSettings.opacity:1,this.radiusThickness=this.pdfViewer.radiusSettings.thickness?this.pdfViewer.radiusSettings.thickness:1,this.volumeFillColor=this.pdfViewer.volumeSettings.fillColor?this.pdfViewer.volumeSettings.fillColor:"#ffffff00",this.volumeStrokeColor=this.pdfViewer.volumeSettings.strokeColor?this.pdfViewer.volumeSettings.strokeColor:"#ff0000",this.volumeOpacity=this.pdfViewer.volumeSettings.opacity?this.pdfViewer.volumeSettings.opacity:1,this.volumeThickness=this.pdfViewer.volumeSettings.thickness?this.pdfViewer.volumeSettings.thickness:1;var e=this.scaleRatioAddCollection[this.scaleRatioAddCollection.length-1];this.currentScaleRatio&&this.currentScaleRatio.unit!==this.pdfViewer.measurementSettings.conversionUnit.toLowerCase()?this.unit=this.currentScaleRatio.unit:"in"!==this.pdfViewer.measurementSettings.conversionUnit.toLowerCase()?this.unit=this.pdfViewer.measurementSettings.conversionUnit.toLowerCase():this.unit=e?e.unit:this.pdfViewer.measurementSettings.conversionUnit.toLowerCase(),this.currentScaleRatio&&this.currentScaleRatio.displayUnit!==this.pdfViewer.measurementSettings.conversionUnit.toLowerCase()?this.displayUnit=this.currentScaleRatio.displayUnit:"in"!==this.pdfViewer.measurementSettings.displayUnit.toLowerCase()?this.displayUnit=this.pdfViewer.measurementSettings.displayUnit.toLowerCase():this.displayUnit=e?e.displayUnit:this.pdfViewer.measurementSettings.displayUnit.toLowerCase(),this.currentScaleRatio&&this.currentScaleRatio.ratio!==this.pdfViewer.measurementSettings.scaleRatio?this.ratio=this.currentScaleRatio.ratio:1!==this.pdfViewer.measurementSettings.scaleRatio?this.ratio=this.pdfViewer.measurementSettings.scaleRatio:e?this.ratio=e.ratio:(t.isNullOrUndefined(this.ratio)||this.ratio===this.pdfViewer.measurementSettings.scaleRatio)&&(this.ratio=this.pdfViewer.measurementSettings.scaleRatio),this.currentScaleRatio&&this.currentScaleRatio.volumeDepth!==this.pdfViewer.measurementSettings.depth?this.volumeDepth=this.currentScaleRatio.volumeDepth:1!==this.pdfViewer.measurementSettings.scaleRatio?this.volumeDepth=this.pdfViewer.measurementSettings.depth:this.volumeDepth=e?e.volumeDepth:this.pdfViewer.measurementSettings.depth?this.pdfViewer.measurementSettings.depth:96,this.scaleRatioString="1 "+this.unit+" = "+this.ratio.toString()+" "+this.displayUnit,this.currentScaleRatio=null},e.prototype.createAnnotationObject=function(e){var t,i,n=this.pdfViewer.annotation.createGUID(),o=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("shape_measure",e.pageIndex+1,e.measureType);o&&(document.getElementById(o).id=n),e.annotName=n,e.author=e&&"Guest"!=e.author?e.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e.subject),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(n,e.notes),e.wrapper.bounds?(t={left:e.wrapper.bounds.x,top:e.wrapper.bounds.y,height:e.wrapper.bounds.height,width:e.wrapper.bounds.width,right:e.wrapper.bounds.right,bottom:e.wrapper.bounds.bottom},i=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(e.wrapper.bounds)):(t={left:0,top:0,height:0,width:0,right:0,bottom:0},i={left:0,top:0,height:0,width:0,right:0,bottom:0});var r=parseInt(e.borderDashArray,10);r=isNaN(r)?0:r;var a={ratio:this.scaleRatioString,x:[this.createNumberFormat("x")],distance:[this.createNumberFormat("d")],area:[this.createNumberFormat("a")]};"Volume"===e.measureType&&(a.depth=this.volumeDepth);var s=this.pdfViewer.annotationModule.findAnnotationSettings(e,!0),l=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e);e.isPrint=s.isPrint;var d=this.pdfViewer.shapeLabelSettings,A={borderColor:e.strokeColor,fillColor:e.fillColor,fontColor:e.fontColor,fontSize:e.fontSize,labelContent:e.labelContent,labelHeight:d.labelHeight,labelWidth:d.labelMaxWidth,opacity:e.opacity};return{id:e.id,shapeAnnotationType:this.getShapeAnnotType(e.measureType),author:e.author,allowedInteractions:l,subject:e.subject,note:e.notes,strokeColor:e.strokeColor,fillColor:e.fillColor,opacity:e.opacity,thickness:e.thickness,borderStyle:e.borderStyle,borderDashArray:r,bounds:t,modifiedDate:this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),rotateAngle:"RotateAngle"+e.rotateAngle,isCloudShape:e.isCloudShape,cloudIntensity:e.cloudIntensity,vertexPoints:e.vertexPoints,lineHeadStart:this.pdfViewer.annotation.getArrowTypeForCollection(e.sourceDecoraterShapes),lineHeadEnd:this.pdfViewer.annotation.getArrowTypeForCollection(e.taregetDecoraterShapes),rectangleDifference:[],isLocked:s.isLock,leaderLength:e.leaderHeight,leaderLineExtension:2,leaderLineOffset:0,calibrate:a,caption:!0,captionPosition:"Top",indent:this.getIndent(e.measureType),annotName:n,comments:[],review:{state:"",stateModel:"",modifiedDate:this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),author:e.author},labelContent:e.labelContent,enableShapeLabel:e.enableShapeLabel,labelFillColor:e.labelFillColor,labelBorderColor:e.labelBorderColor,fontColor:e.fontColor,fontSize:e.fontSize,labelBounds:i,annotationSelectorSettings:this.getSelector(e.subject),labelSettings:A,annotationSettings:s,customData:this.pdfViewer.annotation.getMeasureData(e.subject),isPrint:e.isPrint,isCommentLock:e.isCommentLock,isAnnotationRotated:!1,pageNumber:e.pageIndex}},e.prototype.getSelector=function(e){var t=this.pdfViewer.annotationSelectorSettings;return"Distance calculation"===e&&this.pdfViewer.distanceSettings.annotationSelectorSettings?t=this.pdfViewer.distanceSettings.annotationSelectorSettings:"Perimeter calculation"===e&&this.pdfViewer.perimeterSettings.annotationSelectorSettings?t=this.pdfViewer.perimeterSettings.annotationSelectorSettings:"Area calculation"===e&&this.pdfViewer.areaSettings.annotationSelectorSettings?t=this.pdfViewer.areaSettings.annotationSelectorSettings:"Radius calculation"===e&&this.pdfViewer.radiusSettings.annotationSelectorSettings?t=this.pdfViewer.radiusSettings.annotationSelectorSettings:"Volume calculation"===e&&this.pdfViewer.volumeSettings.annotationSelectorSettings&&(t=this.pdfViewer.volumeSettings.annotationSelectorSettings),t},e.prototype.getShapeAnnotType=function(e){var t;switch(e){case"Distance":t="Line";break;case"Perimeter":t="Polyline";break;case"Area":case"Volume":t="Polygon";break;case"Radius":t="Circle"}return t},e.prototype.getShapeType=function(e){var t;return"Line"===e.shapeAnnotationType?t="Distance":"Polyline"===e.shapeAnnotationType?t="LineWidthArrowHead":"Polygon"===e.shapeAnnotationType&&"PolygonDimension"===e.indent?t="Polygon":"Polygon"===e.shapeAnnotationType&&"PolygonRadius"===e.indent||"Circle"===e.shapeAnnotationType?t="Radius":"Polygon"===e.shapeAnnotationType&&"PolygonVolume"===e.indent&&(t="Polygon"),t},e.prototype.getMeasureType=function(e){var t;return"Line"===e.shapeAnnotationType?t="Distance":"Polyline"===e.shapeAnnotationType?t="Perimeter":"Polygon"===e.shapeAnnotationType&&"PolygonDimension"===e.indent?t="Area":"Polygon"===e.shapeAnnotationType&&"PolygonRadius"===e.indent||"Circle"===e.shapeAnnotationType?t="Radius":"Polygon"===e.shapeAnnotationType&&"PolygonVolume"===e.indent&&(t="Volume"),t},e.prototype.getIndent=function(e){var t;switch(e){case"Distance":t="LineDimension";break;case"Perimeter":t="PolyLineDimension";break;case"Area":t="PolygonDimension";break;case"Radius":t="PolygonRadius";break;case"Volume":t="PolygonVolume"}return t},e.prototype.getNumberFormatArray=function(e){var t=[];if(e)for(var i=0;i<e.length;i++)t[parseInt(i.toString(),10)]={unit:e[parseInt(i.toString(),10)].Unit,fractionalType:e[parseInt(i.toString(),10)].FractionalType,conversionFactor:e[parseInt(i.toString(),10)].ConversionFactor,denominator:e[parseInt(i.toString(),10)].Denominator,formatDenominator:e[parseInt(i.toString(),10)].FormatDenominator};return t},e.prototype.createNumberFormat=function(e){var t=1,i=this.displayUnit;return"x"===e&&(t=this.getFactor(this.unit)),"a"===e&&(i="sq "+this.displayUnit),{unit:i,fractionalType:"D",conversionFactor:t,denominator:100,formatDenominator:!1}},e.prototype.saveMeasureShapeAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape_measure");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape_measure"]);for(var t=[],i=0;i<this.pdfViewerBase.pageCount;i++)t[parseInt(i.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var n=JSON.parse(e),o=0;o<n.length;o++){var r=[],a=n[parseInt(o.toString(),10)];if(a){for(var s=0;a.annotations.length>s;s++){if(this.pdfViewer.annotationModule.updateModifiedDate(a.annotations[parseInt(s.toString(),10)]),this.pdfViewerBase.isJsonExported)if(a.annotations[parseInt(s.toString(),10)].isAnnotationRotated)a.annotations[parseInt(s.toString(),10)].bounds=this.pdfViewer.annotation.getBounds(a.annotations[parseInt(s.toString(),10)].bounds,a.pageIndex),a.annotations[parseInt(s.toString(),10)].vertexPoints=this.pdfViewer.annotation.getVertexPoints(a.annotations[parseInt(s.toString(),10)].vertexPoints,a.pageIndex);else{var l=this.pdfViewerBase.pageSize[a.pageIndex];l&&(a.annotations[parseInt(s.toString(),10)].annotationRotation=l.rotation)}a.annotations[parseInt(s.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(a.annotations[parseInt(s.toString(),10)].bounds,a.pageIndex));var d=a.annotations[parseInt(s.toString(),10)].strokeColor;a.annotations[parseInt(s.toString(),10)].strokeColor=JSON.stringify(this.getRgbCode(d));var A=a.annotations[parseInt(s.toString(),10)].fillColor;if(a.annotations[parseInt(s.toString(),10)].fillColor=JSON.stringify(this.getRgbCode(A)),a.annotations[parseInt(s.toString(),10)].vertexPoints=JSON.stringify(this.pdfViewer.annotation.getVertexPoints(a.annotations[parseInt(s.toString(),10)].vertexPoints,a.pageIndex)),null!==a.annotations[parseInt(s.toString(),10)].rectangleDifference&&(a.annotations[parseInt(s.toString(),10)].rectangleDifference=JSON.stringify(a.annotations[parseInt(s.toString(),10)].rectangleDifference)),a.annotations[parseInt(s.toString(),10)].calibrate=this.getStringifiedMeasure(a.annotations[parseInt(s.toString(),10)].calibrate),!0===a.annotations[parseInt(s.toString(),10)].enableShapeLabel){a.annotations[parseInt(s.toString(),10)].labelBounds=JSON.stringify(this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(JSON.parse(a.annotations[parseInt(s.toString(),10)].bounds),a.pageIndex));var h=a.annotations[parseInt(s.toString(),10)].labelFillColor;a.annotations[parseInt(s.toString(),10)].labelFillColor=JSON.stringify(this.getRgbCode(h));var p=a.annotations[parseInt(s.toString(),10)].labelBorderColor;a.annotations[parseInt(s.toString(),10)].labelBorderColor=JSON.stringify(this.getRgbCode(p)),a.annotations[parseInt(s.toString(),10)].labelSettings.fillColor=h;var c=a.annotations[parseInt(s.toString(),10)].labelSettings.fontColor;a.annotations[parseInt(s.toString(),10)].fontColor=JSON.stringify(this.getRgbCode(c))}}r=a.annotations}t[a.pageIndex]=r}return JSON.stringify(t)},e.prototype.createScaleRatioWindow=function(){var e=this;if(t.isBlazor())this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenScaleRatioDialog");else{var i=this.pdfViewer.element.id,n=t.createElement("div",{id:i+"_scale_ratio_window",className:"e-pv-scale-ratio-window"});this.pdfViewerBase.pageContainer.appendChild(n);var r=this.createRatioUI();if(this.scaleRatioDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:this.pdfViewer.localeObj.getConstant("Scale Ratio"),target:this.pdfViewer.element,content:r,close:function(){e.sourceTextBox.destroy(),e.convertUnit.destroy(),e.destTextBox.destroy(),e.dispUnit.destroy(),e.scaleRatioDialog.destroy();var t=e.pdfViewerBase.getElement("_scale_ratio_window");t.parentElement.removeChild(t)}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.scaleRatioDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.onOkClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.onCancelClicked.bind(this)}]:this.scaleRatioDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.onCancelClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.onOkClicked.bind(this)}],this.pdfViewer.enableRtl&&(this.scaleRatioDialog.enableRtl=!0),this.scaleRatioDialog.appendTo(n),this.updateScaleRatioCollection(),1===this.scaleRatioCollection.length){var a=this.scaleRatioCollection[0];2===Object.keys(a).length&&Object.prototype.hasOwnProperty.call(a,"id")&&Object.prototype.hasOwnProperty.call(a,"annotName")&&Object.assign(a,{ratio:this.destTextBox.value/this.sourceTextBox.value,unit:this.getContent(this.convertUnit.content),displayUnit:this.getContent(this.dispUnit.content),destValue:this.destTextBox.value,srcValue:this.sourceTextBox.value,volumeDepth:this.depthTextBox.value,depthValue:this.depthTextBox.value,ratioString:this.sourceTextBox.value+" "+this.unit+" = "+this.destTextBox.value+" "+this.displayUnit})}if(this.pdfViewer.selectedItems.annotations[0]&&1===this.scaleRatioAddCollection.length&&"in"===this.scaleRatioAddCollection[0].displayUnit&&"in"===this.scaleRatioAddCollection[0].unit&&1===this.scaleRatioAddCollection[0].destValue&&1===this.scaleRatioAddCollection[0].srcValue&&96===this.scaleRatioAddCollection[0].depthValue)this.convertUnit.content="in",this.dispUnit.content="in",this.depthUnit.content="in",this.destTextBox.value=1,this.depthTextBox.value=96,this.sourceTextBox.value=1;else if(this.pdfViewer.selectedItems.annotations[0]){var s=void 0,l=void 0;if(this.scaleRatioCollection.length>0)for(var d=0;d<this.scaleRatioCollection.length;d++)if(this.scaleRatioCollection[parseInt(d.toString(),10)].annotName===this.pdfViewer.selectedItems.annotations[0].annotName){var A=this.scaleRatioCollection[parseInt(d.toString(),10)];s=A.unit,l=A.displayUnit,this.convertUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(s)).outerHTML,this.dispUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(l)).outerHTML,this.depthUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(l)).outerHTML,this.destTextBox.value=A.destValue?A.destValue:1,this.depthTextBox.value=A.depthValue,this.sourceTextBox.value=A.srcValue?A.srcValue:1;break}}else t.isNullOrUndefined(this.measureRatioObject)?(this.convertUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.unit)).outerHTML,this.dispUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.displayUnit)).outerHTML,this.depthUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.displayUnit)).outerHTML):(this.convertUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.measureRatioObject.unit?this.measureRatioObject.unit:this.unit)).outerHTML,this.dispUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.measureRatioObject.displayUnit?this.measureRatioObject.displayUnit:this.displayUnit)).outerHTML,this.depthUnit.content=this.createContent(this.pdfViewer.localeObj.getConstant(this.measureRatioObject.displayUnit?this.measureRatioObject.displayUnit:this.displayUnit)).outerHTML,this.destTextBox.value=this.measureRatioObject.destValue?this.measureRatioObject.destValue:1,this.depthTextBox.value=this.measureRatioObject.depthValue,this.sourceTextBox.value=this.measureRatioObject.srcValue?this.measureRatioObject.srcValue:1)}},e.prototype.updateScaleRatioCollection=function(){if(0===this.scaleRatioCollection.length)for(var e=0;e<this.pdfViewer.annotationCollection.length;e++){var t=this.pdfViewer.annotationCollection[parseInt(e.toString(),10)];if("Distance calculation"===t.subject||"Perimeter calculation"===t.subject||"Area calculation"===t.subject||"Radius calculation"===t.subject||"Volume calculation"===t.subject){var i=t.calibrate.ratio.split("=").map(function(e){return e.trim()}),n=i[0].split(" "),o=n[0],r=n[1],a=i[1].split(" "),s=a[0],l=a[1],d=parseFloat(s),A=void 0,h=parseFloat(o);A="Volume calculation"===this.pdfViewer.annotationCollection[parseInt(e.toString(),10)].subject?this.pdfViewer.annotationCollection[parseInt(e.toString(),10)].calibrate.depth:96,this.sourceTextBox.value=parseFloat(o);var p={id:t.uniqueKey,annotName:t.annotationId,displayUnit:l,unit:r,ratio:d/h,destValue:d,srcValue:h,volumeDepth:A,depthValue:A,ratioString:i};this.scaleRatioCollection.push(p)}}},e.prototype.createRatioUI=function(){var e=t.createElement("div"),i=this.pdfViewer.element.id,o=[{text:this.pdfViewer.localeObj.getConstant("pt"),label:"pt"},{text:this.pdfViewer.localeObj.getConstant("in"),label:"in"},{text:this.pdfViewer.localeObj.getConstant("mm"),label:"mm"},{text:this.pdfViewer.localeObj.getConstant("cm"),label:"cm"},{text:this.pdfViewer.localeObj.getConstant("p"),label:"p"},{text:this.pdfViewer.localeObj.getConstant("ft"),label:"ft"},{text:this.pdfViewer.localeObj.getConstant("ft_in"),label:"ft_in"},{text:this.pdfViewer.localeObj.getConstant("m"),label:"m"}],a=t.createElement("div",{id:i+"_scale_ratio_label",className:"e-pv-scale-ratio-text"});a.textContent=this.pdfViewer.localeObj.getConstant("Scale Ratio"),e.appendChild(a);var s=t.createElement("div",{id:i+"_scale_src_container"});e.appendChild(s);var l=this.createInputElement("input","e-pv-scale-ratio-src-input",i+"_src_input",s);this.sourceTextBox=new n.NumericTextBox({value:1,format:"##",cssClass:"e-pv-scale-ratio-src-input",min:1,max:1e5},l);var d=this.createInputElement("button","e-pv-scale-ratio-src-unit",i+"_src_unit",s);this.convertUnit=new r.DropDownButton({items:o,cssClass:"e-pv-scale-ratio-src-unit"},d),this.convertUnit.select=this.convertUnitSelect.bind(this);var A=t.createElement("div",{id:i+"_scale_dest_container"}),h=this.createInputElement("input","e-pv-scale-ratio-dest-input",i+"_dest_input",A);this.destTextBox=new n.NumericTextBox({value:1,format:"##",cssClass:"e-pv-scale-ratio-dest-input",min:1,max:1e5},h);var p=this.createInputElement("button","e-pv-scale-ratio-dest-unit",i+"_dest_unit",A);this.dispUnit=new r.DropDownButton({items:o,cssClass:"e-pv-scale-ratio-dest-unit"},p),this.dispUnit.select=this.dispUnitSelect.bind(this),e.appendChild(A);var c=t.createElement("div",{id:i+"_depth_label",className:"e-pv-depth-text"});c.textContent=this.pdfViewer.localeObj.getConstant("Depth"),e.appendChild(c);var g=t.createElement("div",{id:i+"_depth_container"});e.appendChild(g);var u=this.createInputElement("input","e-pv-depth-input",i+"_depth_input",g);this.depthTextBox=new n.NumericTextBox({value:this.volumeDepth,format:"##",cssClass:"e-pv-depth-input",min:1},u);var f=this.createInputElement("button","e-pv-depth-unit",i+"_depth_unit",g);return this.depthUnit=new r.DropDownButton({items:o,cssClass:"e-pv-depth-unit"},f),this.depthUnit.select=this.depthUnitSelect.bind(this),e},e.prototype.convertUnitSelect=function(e){this.convertUnit.content=this.createContent(e.item.text).outerHTML},e.prototype.dispUnitSelect=function(e){this.dispUnit.content=this.createContent(e.item.text).outerHTML,this.depthUnit.content=this.createContent(e.item.text).outerHTML},e.prototype.depthUnitSelect=function(e){this.depthUnit.content=this.createContent(e.item.text).outerHTML},e.prototype.createContent=function(e){var i=t.createElement("div",{className:"e-pv-scale-unit-content"});return i.textContent=e,i},e.prototype.createInputElement=function(e,i,n,o){var r=t.createElement("div",{id:n+"_container",className:i+"-container"}),a=t.createElement(e,{id:n});return"input"===e&&(a.type="text"),r.appendChild(a),o.appendChild(r),a},e.prototype.onOkClicked=function(){var e=this.getContent(this.convertUnit.content),i=this.getContent(this.dispUnit.content);if(t.isBlazor()){var n=document.querySelector("#"+this.pdfViewer.element.id+"_src_unit"),o=document.querySelector("#"+this.pdfViewer.element.id+"_dest_unit"),r=document.querySelector("#"+this.pdfViewer.element.id+"_ratio_input"),a=document.querySelector("#"+this.pdfViewer.element.id+"_dest_input"),s=document.querySelector("#"+this.pdfViewer.element.id+"_depth_input");n&&o&&r&&a&&s&&(this.unit=n.value,this.displayUnit=o.value,this.ratio=parseInt(a.value,10)/parseInt(r.value,10),this.volumeDepth=parseInt(s.value,10)),this.scaleRatioString=parseInt(r.value,10)+" "+this.unit+" = "+parseInt(a.value,10)+" "+this.displayUnit,this.updateMeasureValues(this.scaleRatioString,this.displayUnit,this.unit,this.volumeDepth)}else if(this.pdfViewer.selectedItems.annotations[0]){for(var l=0;l<this.scaleRatioCollection.length;l++)if(this.scaleRatioCollection[parseInt(l.toString(),10)].annotName===this.pdfViewer.selectedItems.annotations[0].annotName&&this.scaleRatioCollection[parseInt(l.toString(),10)].displayUnit===this.getContent(this.dispUnit.content)&&this.scaleRatioCollection[parseInt(l.toString(),10)].unit===this.getContent(this.convertUnit.content)&&this.scaleRatioCollection[parseInt(l.toString(),10)].destValue===this.destTextBox.value&&this.scaleRatioCollection[parseInt(l.toString(),10)].srcValue===this.sourceTextBox.value&&this.scaleRatioCollection[parseInt(l.toString(),10)].volumeDepth===this.depthTextBox.value){var d=this.scaleRatioCollection[parseInt(l.toString(),10)];this.updateRatioValues(d.unit,d.displayUnit,d.ratio,d.volumeDepth,d.srcValue,d.destValue)}else if(this.scaleRatioCollection[parseInt(l.toString(),10)].annotName===this.pdfViewer.selectedItems.annotations[0].annotName){(d=this.scaleRatioCollection[parseInt(l.toString(),10)]).ratio=this.destTextBox.value/this.sourceTextBox.value,d.unit=this.getContent(this.convertUnit.content),d.displayUnit=this.getContent(this.dispUnit.content),d.destValue=this.destTextBox.value,d.srcValue=this.sourceTextBox.value,d.volumeDepth=this.depthTextBox.value,d.depthValue=this.depthTextBox.value,d.ratioString=this.sourceTextBox.value+" "+d.unit+" = "+this.destTextBox.value+" "+d.displayUnit;var A=this.depthTextBox.value,h=this.sourceTextBox.value+" "+e+" = "+this.destTextBox.value+" "+i;this.scaleRatioDialog.hide();var p=this.restoreUnit(this.convertUnit,e),c=this.restoreUnit(this.dispUnit,i);this.updateMeasureValues(h,c,p,A)}}else this.measureRatioObject={ratio:this.destTextBox.value/this.sourceTextBox.value,unit:e,displayUnit:i,destValue:this.destTextBox.value,srcValue:this.sourceTextBox.value,volumeDepth:this.depthTextBox.value,depthValue:this.depthTextBox.value,ratioString:this.sourceTextBox.value+" "+e+" = "+this.destTextBox.value+" "+i},this.scaleRatioAddCollection.push(this.measureRatioObject),this.currentScaleRatio=this.measureRatioObject,this.updateRatioValues(this.measureRatioObject.unit,this.measureRatioObject.displayUnit,this.measureRatioObject.ratio,this.measureRatioObject.volumeDepth,this.measureRatioObject.srcValue,this.measureRatioObject.destValue)},e.prototype.updateRatioValues=function(e,t,i,n,o,r){this.unit=e,this.displayUnit=t,this.ratio=r/o,this.destValue=r,this.srcValue=o,this.volumeDepth=n,this.depthValue=n,this.scaleRatioString=o+" "+e+" = "+r+" "+t,this.scaleRatioDialog.hide();var a=this.restoreUnit(this.convertUnit,this.unit),s=this.restoreUnit(this.dispUnit,this.displayUnit);this.updateMeasureValues(this.scaleRatioString,s,a,this.volumeDepth)},e.prototype.restoreUnit=function(e,t){for(var i,n=0;n<e.items.length;n++){var o=e.items[parseInt(n.toString(),10)];t===o.text&&(i=o.label)}return i},e.prototype.destroy=function(){this.currentAnnotationMode=null,this.distanceOpacity=null,this.perimeterOpacity=null,this.areaOpacity=null,this.radiusOpacity=null,this.volumeOpacity=null,this.distanceFillColor=null,this.perimeterFillColor=null,this.areaFillColor=null,this.radiusFillColor=null,this.volumeFillColor=null,this.distanceStrokeColor=null,this.perimeterStrokeColor=null,this.areaStrokeColor=null,this.radiusStrokeColor=null,this.volumeStrokeColor=null,this.distanceThickness=null,this.leaderLength=null,this.perimeterThickness=null,this.areaThickness=null,this.radiusThickness=null,this.volumeThickness=null,this.distanceDashArray=null,this.distanceStartHead=null,this.distanceEndHead=null,this.perimeterDashArray=null,this.perimeterStartHead=null,this.perimeterEndHead=null,this.unit=null,this.displayUnit=null,this.measureShapeCount=null,this.volumeDepth=null,this.isAddAnnotationProgramatically=null,this.ratio=null,this.srcValue=null,this.destValue=null,this.scaleRatioString=null,this.scaleRatioDialog=null,this.sourceTextBox=null,this.convertUnit=null,this.destTextBox=null,this.dispUnit=null,this.depthTextBox=null,this.depthUnit=null,this.scaleRatioCollection=null,this.scaleRatioAddCollection=null},e.prototype.updateMeasureValues=function(e,t,i,n){this.scaleRatioString=e,this.displayUnit=t,this.unit=i,this.volumeDepth=n;for(var o=0;o<this.pdfViewerBase.pageCount;o++){var r=this.getAnnotations(o,null);if(r)for(var a=this,s=0;s<r.length;s++)!function(e){if(r=a.getAnnotations(o,null),a.pdfViewer.selectedItems.annotations[0]&&a.pdfViewer.selectedItems.annotations[0].id){var t=r[parseInt(e.toString(),10)],n=a.scaleRatioCollection.find(function(e){return e.annotName===t.annotName});r[parseInt(e.toString(),10)].annotName===a.pdfViewer.selectedItems.annotations[0].annotName&&!t.annotationSettings.isLock&&n&&(t.calibrate.ratio=n.ratioString,t.calibrate.x[0].unit=n.displayUnit,t.calibrate.distance[0].unit=n.displayUnit,t.calibrate.area[0].unit=n.displayUnit,t.calibrate.x[0].conversionFactor=a.getFactor(i),"PolygonVolume"===t.indent&&(t.calibrate.depth=n.volumeDepth),r[parseInt(e.toString(),10)]=t,a.manageAnnotations(r,o),a.pdfViewer.annotation.updateCalibrateValues(a.getAnnotationBaseModel(t.id)))}}(s);this.pdfViewer.annotation.renderAnnotations(o,null,null,null,null,!1)}},e.prototype.getAnnotationBaseModel=function(e){for(var t=null,i=0;i<this.pdfViewer.annotations.length;i++)if(e===this.pdfViewer.annotations[parseInt(i.toString(),10)].id){t=this.pdfViewer.annotations[parseInt(i.toString(),10)];break}return t},e.prototype.getContent=function(e){return e.split("</div>")[0].split('">')[1]},e.prototype.setConversion=function(e,t){var i;if(t){var n=t.pageIndex;"diagram_helper"===t.id&&(n=t.pageIndex?t.pageIndex:this.pdfViewerBase.activeElements.activePageID,t=this.getCurrentObject(n,null,t.annotName)),i=t?this.getCurrentValues(t.id,n):this.getCurrentValues()}else i=this.getCurrentValues();var o=e*i.ratio;return this.convertPointToUnits(i.factor,o,i.unit)},e.prototype.onCancelClicked=function(){this.scaleRatioDialog.hide()},e.prototype.modifyInCollection=function(e,i,n,o){t.isNullOrUndefined(n.formFieldAnnotationType)||""===n.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0;var r=null,a=!1,s=this.getAnnotations(i,null);if(null!=s&&n){for(var l=0;l<s.length;l++)if(n.id===s[parseInt(l.toString(),10)].id){if("bounds"===e)this.pdfViewerBase.isBounds=this.pdfViewerBase.boundsCalculation(s[parseInt(l.toString(),10)].bounds,n.wrapper.bounds),this.pdfViewerBase.isBounds&&(this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n,!0),"Line"===s[parseInt(l.toString(),10)].shapeAnnotationType||"Polyline"===s[parseInt(l.toString(),10)].shapeAnnotationType?(s[parseInt(l.toString(),10)].vertexPoints=n.vertexPoints,s[parseInt(l.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}):"Polygon"===s[parseInt(l.toString(),10)].shapeAnnotationType?(s[parseInt(l.toString(),10)].vertexPoints=n.vertexPoints,s[parseInt(l.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}):s[parseInt(l.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}),!0===s[parseInt(l.toString(),10)].enableShapeLabel&&n.wrapper&&(s[parseInt(l.toString(),10)].labelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(n.wrapper.bounds));else if("fill"===e)s[parseInt(l.toString(),10)].fillColor=n.wrapper.children[0].style.fill,this.pdfViewer.enableShapeLabel&&(s[parseInt(l.toString(),10)].labelFillColor=n.wrapper.children[0].style.fill);else if("stroke"===e)s[parseInt(l.toString(),10)].strokeColor=n.wrapper.children[0].style.strokeColor;else if("opacity"===e)s[parseInt(l.toString(),10)].opacity=n.wrapper.children[0].style.opacity;else if("thickness"===e)s[parseInt(l.toString(),10)].thickness=n.wrapper.children[0].style.strokeWidth;else if("dashArray"===e)s[parseInt(l.toString(),10)].borderDashArray=n.wrapper.children[0].style.strokeDashArray,s[parseInt(l.toString(),10)].borderStyle=n.borderStyle;else if("startArrow"===e)s[parseInt(l.toString(),10)].lineHeadStart=this.pdfViewer.annotation.getArrowTypeForCollection(n.sourceDecoraterShapes);else if("endArrow"===e)s[parseInt(l.toString(),10)].lineHeadEnd=this.pdfViewer.annotation.getArrowTypeForCollection(n.taregetDecoraterShapes);else if("leaderLength"===e)s[parseInt(l.toString(),10)].leaderLength=n.leaderHeight;else if("notes"===e)s[parseInt(l.toString(),10)].note=n.notes,!0===s[parseInt(l.toString(),10)].enableShapeLabel&&(a=!0,s[parseInt(l.toString(),10)].labelContent=n.notes);else{if("delete"===e){r=s.splice(l,1)[0];break}if("labelContent"===e){s[parseInt(l.toString(),10)].note=n.labelContent,s[parseInt(l.toString(),10)].labelContent=n.labelContent;break}"fontColor"===e?s[parseInt(l.toString(),10)].fontColor=n.fontColor:"fontSize"===e&&(s[parseInt(l.toString(),10)].fontSize=n.fontSize)}this.pdfViewerBase.isBounds&&(s[parseInt(l.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()),this.pdfViewer.annotationModule.storeAnnotationCollections(s[parseInt(l.toString(),10)],i)}this.manageAnnotations(s,i)}return!o&&a&&this.pdfViewerBase.updateDocumentEditedProperty(!0),r},e.prototype.addInCollection=function(e,t){var i=this.getAnnotations(e,null);i&&i.push(t),this.manageAnnotations(i,e)},e.prototype.manageAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape_measure");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape_measure"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_shape_measure");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape_measure"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_shape_measure",r)}},e.prototype.getAnnotations=function(e,t){var i,n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape_measure");if(this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape_measure"]),n){var o=JSON.parse(n),r=this.pdfViewer.annotationModule.getPageCollection(o,e);i=null!=r&&o[parseInt(r.toString(),10)]?o[parseInt(r.toString(),10)].annotations:t}else i=t;return i},e.prototype.getCurrentObject=function(e,t,i){var n=null,o=this.getAnnotations(e,null);if(null!=o)for(var r=0;r<o.length;r++)if(t){if(t===o[parseInt(r.toString(),10)].id){n=o[parseInt(r.toString(),10)];break}}else if(i&&i===o[parseInt(r.toString(),10)].annotName){n=o[parseInt(r.toString(),10)];break}return n},e.prototype.getCurrentValues=function(e,t){var i,n,o,r;if(e&&!isNaN(t)){var a=this.getCurrentObject(t,e);a?(i=this.getCurrentRatio(a.calibrate.ratio),n=a.calibrate.x[0].unit,o=a.calibrate.x[0].conversionFactor,r=a.calibrate.depth):(i=this.ratio,n=this.displayUnit,o=this.getFactor(this.unit),r=this.volumeDepth)}else i=this.ratio,n=this.displayUnit,o=this.getFactor(this.unit),r=this.volumeDepth;return{ratio:i,unit:n,factor:o,depth:r}},e.prototype.getCurrentRatio=function(e){var t=e.split(" ");return"="===t[3]?parseFloat(t[4])/parseFloat(t[0]):parseFloat(t[3])/parseFloat(t[0])},e.prototype.calculateArea=function(e,t,i){var n=this.getCurrentValues(t,i),o=this.getArea(e,n.factor,n.unit)*n.ratio;if("ft_in"===n.unit){var r=Math.round(100*o)/100;if(r>=12){if(r=(Math.round(r/12*100)/100).toString(),(r=r.split("."))[1]){var a=0;return r[1].charAt(1)?(a=parseInt(r[1].charAt(0),10)+"."+parseInt(r[1].charAt(1),10),a=Math.round(a)):a=r[1],a?r[0]+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant("ft")+" "+a+" "+this.pdfViewer.localeObj.getConstant("in"):r[0]+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant("ft")}return r[0]+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant("ft")}return Math.round(100*o)/100+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant("in")}return"m"===n.unit?100*o/100+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant(n.unit):Math.round(100*o)/100+" "+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant(n.unit)},e.prototype.getArea=function(e,t,i){for(var n=0,o=e.length-1,r=0;r<e.length;r++)n+=(e[parseInt(o.toString(),10)].x*this.pixelToPointFactor*t+e[parseInt(r.toString(),10)].x*this.pixelToPointFactor*t)*(e[parseInt(o.toString(),10)].y*this.pixelToPointFactor*t-e[parseInt(r.toString(),10)].y*this.pixelToPointFactor*t),o=r;return"ft_in"===i?Math.abs(2*n):Math.abs(n/2)},e.prototype.calculateVolume=function(e,t,i){var n=this.getCurrentValues(t,i),o=n.depth?n.depth:this.volumeDepth,r=this.getArea(e,n.factor,n.unit)*(o*this.convertUnitToPoint(n.unit)*n.factor)*n.ratio;if("ft_in"===n.unit){var a=Math.round(100*r)/100;if(a>=12){if(a=(Math.round(a/12*100)/100).toString(),(a=a.split("."))[1]){var s=0;return a[1].charAt(1)?(s=parseInt(a[1].charAt(0),10)+"."+parseInt(a[1].charAt(1),10),s=Math.round(s)):s=a[1],s?a[0]+" "+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant("ft")+" "+s+" "+this.pdfViewer.localeObj.getConstant("in"):a[0]+" "+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant("ft")}return a[0]+" "+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant("ft")}return Math.round(100*r)/100+" "+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant("in")}return Math.round(100*r)/100+" "+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant(n.unit)},e.prototype.calculatePerimeter=function(e){var t=i.Point.getLengthFromListOfPoints(e.vertexPoints);return this.setConversion(t*this.pixelToPointFactor,e)},e.prototype.getFactor=function(e){var t;switch(e){case"in":t=1/72;break;case"cm":t=1/28.346;break;case"mm":t=1/2.835;break;case"pt":t=1;break;case"p":t=1/12;break;case"ft":t=1/864;break;case"ft_in":t=1/72;break;case"m":t=1/2834.64567}return t},e.prototype.convertPointToUnits=function(e,t,i){var n;if("ft_in"===i){var o=Math.round(t*e*100)/100;if(o>=12)if(o=(Math.round(o/12*100)/100).toString(),(o=o.split("."))[1]){var r=0;o[1].charAt(1)?(r=parseInt(o[1].charAt(0),10)+"."+parseInt(o[1].charAt(1),10),r=Math.round(r)):r=o[1],n=r?o[0]+" "+this.pdfViewer.localeObj.getConstant("ft")+" "+r+" "+this.pdfViewer.localeObj.getConstant("in"):o[0]+" "+this.pdfViewer.localeObj.getConstant("ft")}else n=o[0]+" "+this.pdfViewer.localeObj.getConstant("ft");else n=Math.round(t*e*100)/100+" "+this.pdfViewer.localeObj.getConstant("in")}else n=Math.round(t*e*100)/100+" "+this.pdfViewer.localeObj.getConstant(i);return n},e.prototype.convertUnitToPoint=function(e){var t;switch(e){case"in":t=72;break;case"cm":t=28.346;break;case"mm":t=2.835;break;case"pt":t=1;break;case"p":t=12;break;case"ft":t=864;break;case"ft_in":t=72;break;case"m":t=2834.64567}return t},e.prototype.getStringifiedMeasure=function(e){return t.isNullOrUndefined(e)||(e.angle=JSON.stringify(e.angle),e.area=JSON.stringify(e.area),e.distance=JSON.stringify(e.distance),e.volume=JSON.stringify(e.volume)),JSON.stringify(e)},e.prototype.getRgbCode=function(e){e.match(/#([a-z0-9]+)/gi)||e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(e=this.pdfViewer.annotationModule.nameToHash(e));var i=e.split(",");return t.isNullOrUndefined(i[1])&&(i=(e=this.pdfViewer.annotationModule.getValue(e,"rgba")).split(",")),{r:parseInt(i[0].split("(")[1],10),g:parseInt(i[1],10),b:parseInt(i[2],10),a:parseInt(i[3],10)}},e.prototype.saveImportedMeasureAnnotations=function(e,t){var i=null,n=null;if(e.VertexPoints){n=[];for(var o=0;o<e.VertexPoints.length;o++){var r={x:e.VertexPoints[parseInt(o.toString(),10)].X,y:e.VertexPoints[parseInt(o.toString(),10)].Y};n.push(r)}}var a={ratio:e.Calibrate.Ratio,x:this.getNumberFormatArray(e.Calibrate.X),distance:this.getNumberFormatArray(e.Calibrate.Distance),area:this.getNumberFormatArray(e.Calibrate.Area),angle:this.getNumberFormatArray(e.Calibrate.Angle),volume:this.getNumberFormatArray(e.Calibrate.Volume),targetUnitConversion:e.Calibrate.TargetUnitConversion};e.Calibrate.Depth&&(a.depth=e.Calibrate.Depth),e.Bounds&&!0===e.EnableShapeLabel&&(e.LabelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(e.Bounds),e.LabelBorderColor=e.LabelBorderColor?e.LabelBorderColor:e.StrokeColor,e.FontColor=e.FontColor?e.FontColor:e.StrokeColor,e.LabelFillColor=e.LabelFillColor?e.LabelFillColor:e.FillColor,e.FontSize=e.FontSize?e.FontSize:16,e.LabelSettings=e.LabelSettings?e.LabelSettings:this.pdfViewer.shapeLabelSettings),e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),e.Author=this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e.Subject),i={id:"measure",shapeAnnotationType:e.ShapeAnnotationType,author:e.Author,allowedInteractions:e.allowedInteractions,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,thickness:e.Thickness,rectangleDifference:e.RectangleDifference,borderStyle:e.BorderStyle,borderDashArray:e.BorderDashArray,rotateAngle:e.RotateAngle,isCloudShape:e.IsCloudShape,cloudIntensity:e.CloudIntensity,vertexPoints:n,lineHeadStart:e.LineHeadStart,lineHeadEnd:e.LineHeadEnd,isLocked:e.IsLocked,bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},caption:e.Caption,captionPosition:e.CaptionPosition,calibrate:a,leaderLength:e.LeaderLength,leaderLineExtension:e.LeaderLineExtension,leaderLineOffset:e.LeaderLineOffset,indent:e.Indent,annotName:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},labelContent:e.LabelContent,enableShapeLabel:e.EnableShapeLabel,labelFillColor:e.LabelFillColor,labelBorderColor:e.LabelBorderColor,fontColor:e.FontColor,fontSize:e.FontSize,labelBounds:e.LabelBounds,annotationSelectorSettings:this.getSettings(e),labelSettings:e.LabelSettings,annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.IsPrint,isCommentLock:e.IsCommentLock,isAnnotationRotated:!1},this.pdfViewer.annotationModule.storeAnnotations(t,i,"_annotations_shape_measure")},e.prototype.updateMeasureAnnotationCollections=function(e,t){var i=null;if(e.VertexPoints){i=[];for(var n=0;n<e.VertexPoints.length;n++){var o={x:e.VertexPoints[parseInt(n.toString(),10)].X,y:e.VertexPoints[parseInt(n.toString(),10)].Y};i.push(o)}}var r={ratio:e.Calibrate.Ratio,x:this.getNumberFormatArray(e.Calibrate.X),distance:this.getNumberFormatArray(e.Calibrate.Distance),area:this.getNumberFormatArray(e.Calibrate.Area),angle:this.getNumberFormatArray(e.Calibrate.Angle),volume:this.getNumberFormatArray(e.Calibrate.Volume),targetUnitConversion:e.Calibrate.TargetUnitConversion};if(e.Calibrate.Depth&&(r.depth=e.Calibrate.Depth),e.Bounds&&!0===e.EnableShapeLabel){e.LabelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(e.Bounds),e.LabelBorderColor=e.LabelBorderColor?e.LabelBorderColor:e.StrokeColor,e.FontColor=e.FontColor?e.FontColor:e.StrokeColor,e.LabelFillColor=e.LabelFillColor?e.LabelFillColor:e.FillColor,e.FontSize=e.FontSize?e.FontSize:16;var a=this.pdfViewer.shapeLabelSettings,s={borderColor:e.StrokeColor,fillColor:e.FillColor,fontColor:e.FontColor,fontSize:e.FontSize,labelContent:e.LabelContent,labelHeight:a.labelHeight,labelWidth:a.labelWidth,opacity:e.Opacity};e.LabelSettings=e.LabelSettings?e.LabelSettings:s}return e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.AnnotationSelectorSettings=e.AnnotationSelectorSettings?e.AnnotationSelectorSettings:this.pdfViewerBase.annotationSelectorSettingLoad(e),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked),{id:"measure",shapeAnnotationType:e.ShapeAnnotationType,author:e.Author,allowedInteractions:e.allowedInteractions,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,thickness:e.Thickness,rectangleDifference:e.RectangleDifference,borderStyle:e.BorderStyle,borderDashArray:e.BorderDashArray,rotateAngle:e.RotateAngle,isCloudShape:e.IsCloudShape,cloudIntensity:e.CloudIntensity,vertexPoints:i,lineHeadStart:e.LineHeadStart,lineHeadEnd:e.LineHeadEnd,isLocked:e.IsLocked,bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},caption:e.Caption,captionPosition:e.CaptionPosition,calibrate:r,leaderLength:e.LeaderLength,leaderLineExtension:e.LeaderLineExtension,leaderLineOffset:e.LeaderLineOffset,indent:e.Indent,annotationId:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},labelContent:e.LabelContent,enableShapeLabel:e.EnableShapeLabel,labelFillColor:e.LabelFillColor,labelBorderColor:e.LabelBorderColor,fontColor:e.FontColor,fontSize:e.FontSize,labelBounds:e.LabelBounds,pageNumber:t,annotationSelectorSettings:e.AnnotationSelectorSettings,labelSettings:e.labelSettings,annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.IsPrint,isCommentLock:e.IsCommentLock}},e.prototype.updateAddAnnotationDetails=function(e,i,n){n=i?i.offset?i.offset:{x:10,y:10}:(i={offset:{x:10,y:10},pageNumber:0,width:void 0,height:void 0}).offset;var o=null,r=null,a=null,s="",l="",d="",A=!1,h=[],p=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),c=this.pdfViewer.annotation.createGUID();"Distance"===e?(o=this.pdfViewer.lineSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.lineSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e),r=this.pdfViewer.lineSettings.allowedInteractions?this.pdfViewer.lineSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="LineDimension",l="Line",d=""!==this.pdfViewer.lineSettings.subject?this.pdfViewer.lineSettings.subject:""!==this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Distance calculation",A=!0,h=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+100,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1):"Perimeter"===e?(o=this.pdfViewer.arrowSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.arrowSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e),r=this.pdfViewer.arrowSettings.allowedInteractions?this.pdfViewer.arrowSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="PolyLineDimension",l="Polyline",d=""!==this.pdfViewer.arrowSettings.subject?this.pdfViewer.arrowSettings.subject:""!==this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Perimeter calculation",A=!0,h=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+85,y:n.y},{x:n.x+86,y:n.y+62}],i.width=i.width?i.width:1,i.height=i.height?i.height:1):"Area"===e?(o=this.pdfViewer.rectangleSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.rectangleSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e),r=this.pdfViewer.rectangleSettings.allowedInteractions?this.pdfViewer.rectangleSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="PolygonDimension",l="Polygon",d=""!==this.pdfViewer.rectangleSettings.subject?this.pdfViewer.rectangleSettings.subject:""!==this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Area calculation",h=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+88,y:n.y-1},{x:n.x+89,y:n.y+53},{x:n.x,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1):"Radius"===e?(o=this.pdfViewer.circleSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.circleSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e),r=this.pdfViewer.circleSettings.allowedInteractions?this.pdfViewer.circleSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="PolygonRadius",l="Circle",d=""!==this.pdfViewer.circleSettings.subject?this.pdfViewer.circleSettings.subject:""!==this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Radius calculation",i.width=i.width?i.width:100,i.height=i.height?i.height:100,h=null):"Volume"===e&&(o=this.pdfViewer.polygonSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.polygonSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("measure",e),r=this.pdfViewer.polygonSettings.allowedInteractions?this.pdfViewer.polygonSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="PolygonVolume",l="Polygon",d=""!==this.pdfViewer.polygonSettings.subject?this.pdfViewer.polygonSettings.subject:""!==this.pdfViewer.annotationSettings.subject?this.pdfViewer.annotationSettings.subject:"Volume calculation",h=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x,y:n.y+109},{x:n.x+120,y:n.y+109},{x:n.x+120,y:n.y-1},{x:n.x,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1),a.isLock=i.isLock?i.isLock:a.isLock,a.minHeight=i.minHeight?i.minHeight:a.minHeight,a.minWidth=i.minWidth?i.minWidth:a.minWidth,a.maxWidth=i.maxWidth?i.maxWidth:a.maxWidth,a.maxHeight=i.maxHeight?i.maxHeight:a.maxHeight;var g={depth:96,factor:.013888888888888888,ratio:1,unit:"in"},u="";if(h||"Radius"===e||"Volume"===e)if("Distance"===e||"Perimeter"===e||"Radius"===e){var f=0;if("Radius"===e)f=i.width/2*this.pixelToPointFactor;else{for(B=0;B<h.length-1;B++)f+=Math.sqrt(Math.pow(h[parseInt(B.toString(),10)].x-h[B+1].x,2)+Math.pow(h[parseInt(B.toString(),10)].y-h[B+1].y,2));f*=this.pixelToPointFactor}var m=f*g.ratio;u=this.convertPointToUnits(g.factor,m,g.unit)}else if("Area"===e||"Volume"===e){for(var w=0,C=h.length-1,B=0;B<h.length;B++)w+=(h[parseInt(C.toString(),10)].x*this.pixelToPointFactor*g.factor+h[parseInt(B.toString(),10)].x*this.pixelToPointFactor*g.factor)*(h[parseInt(C.toString(),10)].y*this.pixelToPointFactor*g.factor-h[parseInt(B.toString(),10)].y*this.pixelToPointFactor*g.factor),C=B;w=Math.abs(w/2),"Volume"===e?(w=w*(g.depth*this.convertUnitToPoint(g.unit)*g.factor)*g.ratio,u=Math.round(100*w)/100+this.pdfViewer.localeObj.getConstant("cu")+" "+this.pdfViewer.localeObj.getConstant(g.unit)):u=Math.round(100*w)/100+this.pdfViewer.localeObj.getConstant("sq")+" "+this.pdfViewer.localeObj.getConstant(g.unit)}h&&(h=this.pdfViewer.annotation.getVertexPointsXY(h));var S=[],y={AllowedInteractions:i.allowedInteractions?i.allowedInteractions:r,AnnotName:c,AnnotType:"shape_measure",AnnotationSelectorSettings:i.annotationSelectorSettings?i.annotationSelectorSettings:o,AnnotationSettings:a,Author:i.author?i.author:"Guest",BorderDashArray:i.borderDashArray?i.borderDashArray:0,BorderStyle:"Solid",Bounds:{X:n.x,Y:n.y,Width:i.width,Height:i.height,Left:n.x,Top:n.y,Location:{X:n.x,Y:n.y},Size:{Height:i.height,IsEmpty:!1,Width:i.width}},Calibrate:{Area:[{ConversionFactor:1,Denominator:100,FormatDenominator:!1,FractionalType:"D",Unit:"sq in"}],Depth:i.depth?i.depth:96,Distance:[{ConversionFactor:1,Denominator:100,FormatDenominator:!1,FractionalType:"D",Unit:"in"}],Ratio:"1 in = 1 in",TargetUnitConversion:0,Volume:null,X:[{ConversionFactor:.013888889,Denominator:100,FormatDenominator:!1,FractionalType:"D",Unit:"in"}]},Caption:!0,CaptionPosition:"Top",CloudIntensity:0,Comments:null,CustomData:i.customData?i.customData:null,CreatedDate:p,EnableShapeLabel:!1,ExistingCustomData:null,FillColor:i.fillColor?i.fillColor:"#ffffff00",FontColor:null,FontSize:0,Indent:s,IsCloudShape:!1,IsCommentLock:!1,IsLocked:!!i.isLock&&i.isLock,IsPrint:!!t.isNullOrUndefined(i.isPrint)||i.isPrint,LabelBorderColor:null,LabelBounds:{X:0,Y:0,Width:0,Height:0},LabelContent:null,LabelFillColor:null,LabelSettings:null,LeaderLength:i.leaderLength?i.leaderLength:0,LeaderLineExtension:0,LeaderLineOffset:0,LineHeadStart:i.lineHeadStartStyle?i.lineHeadStartStyle:A?"ClosedArrow":"None",LineHeadEnd:i.lineHeadEndStyle?i.lineHeadEndStyle:A?"ClosedArrow":"None",ModifiedDate:"",Note:u,Opacity:i.opacity?i.opacity:1,RectangleDifference:[],RotateAngle:"RotateAngle0",ShapeAnnotationType:l,State:"",StateModel:"",StrokeColor:i.strokeColor?i.strokeColor:"#ff0000",Subject:i.subject?i.subject:d,Thickness:i.thickness?i.thickness:1,VertexPoints:h},I=y.Calibrate.Ratio.split("=").map(function(e){return e.trim()}),E=I[0].split(" "),v=E[0],b=E[1],V=I[1].split(" "),D=V[0],x=V[1],Q=parseFloat(D),M=parseFloat(v),F={annotName:y.AnnotName,displayUnit:x,unit:b,ratio:Q/M,destValue:Q,srcValue:M,volumeDepth:96,depthValue:96,ratioString:I};return this.scaleRatioCollection.push(F),S[0]=y,{measureShapeAnnotation:S}},e}(),Yt=function(){function e(e,t){this.shapeCount=0,this.isAddAnnotationProgramatically=!1,this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.renderShapeAnnotations=function(e,i,n,o){if(e)if(e.length>=1){if(!this.pdfViewer.annotation.getStoredAnnotations(i,e,"_annotations_shape")||o||n)for(var r=0;r<e.length;r++){var a=e[parseInt(r.toString(),10)];a.annotationAddMode=this.pdfViewer.annotationModule.findAnnotationMode(a,i,a.AnnotType);m=null;this.shapeCount=this.shapeCount+1;var s=void 0;if(a.ShapeAnnotationType){n&&this.pdfViewerBase.isJsonImported&&(a.Bounds=this.pdfViewerBase.importJsonForRotatedDocuments(a.Rotate,i,a.Bounds,a.AnnotationRotation),s=this.pdfViewerBase.isPageRotated);var l=null;t.isNullOrUndefined(a.VertexPoints)||(l=n&&this.pdfViewerBase.isJsonImported?this.pdfViewerBase.calculateVertexPoints(a.Rotate,i,a.VertexPoints,a.AnnotationRotation):a.VertexPoints.map(function(e){return{x:t.isNullOrUndefined(e.X)?e.x:e.X,y:t.isNullOrUndefined(e.Y)?e.y:e.Y}})),a.Bounds&&!0===a.EnableShapeLabel&&(a.LabelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(a.Bounds),a.LabelBorderColor=a.LabelBorderColor?a.LabelBorderColor:a.StrokeColor,a.FontColor=a.FontColor?a.FontColor:a.StrokeColor,a.LabelFillColor=a.LabelFillColor?a.LabelFillColor:a.FillColor,a.FontSize=a.FontSize?a.FontSize:16,a.FontFamily=a.FontFamily?a.FontFamily:"Helvetica",a.LabelSettings=a.LabelSettings?a.LabelSettings:this.pdfViewer.shapeLabelSettings);var d="string"==typeof a.AnnotationSelectorSettings?JSON.parse(a.AnnotationSelectorSettings):a.AnnotationSelectorSettings;t.isNullOrUndefined(d)?this.pdfViewerBase.annotationSelectorSettingLoad(a):a.AnnotationSelectorSettings=d,a.AnnotationSettings=a.AnnotationSettings?a.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(a),a.IsLocked&&(a.AnnotationSettings.isLock=a.IsLocked),a.allowedInteractions=a.AllowedInteractions?a.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(a);var A=a.Bounds.X?a.Bounds.X:a.Bounds.x,h=a.Bounds.Y?a.Bounds.Y:a.Bounds.y,p=a.Bounds.Width?a.Bounds.Width:a.Bounds.width,c=a.Bounds.Height?a.Bounds.Height:a.Bounds.height,g=(m={id:"shape"+this.shapeCount,shapeAnnotationType:a.ShapeAnnotationType,author:a.Author,allowedInteractions:a.allowedInteractions,modifiedDate:a.ModifiedDate,subject:a.Subject,pageNumber:i,note:a.Note,strokeColor:a.StrokeColor,fillColor:a.FillColor,opacity:a.Opacity,thickness:a.Thickness,rectangleDifference:a.RectangleDifference,borderStyle:a.BorderStyle,borderDashArray:a.BorderDashArray,rotateAngle:a.RotateAngle,isCloudShape:a.IsCloudShape,cloudIntensity:a.CloudIntensity,vertexPoints:l,lineHeadStart:a.LineHeadStart,lineHeadEnd:a.LineHeadEnd,isLocked:a.IsLocked,comments:this.pdfViewer.annotationModule.getAnnotationComments(a.Comments,a,a.Author),review:{state:a.State,stateModel:a.StateModel,modifiedDate:a.ModifiedDate,author:a.Author},annotName:a.AnnotName,bounds:{left:A,top:h,width:p,height:c,right:a.Bounds.Right,bottom:a.Bounds.Bottom},labelContent:a.LabelContent,enableShapeLabel:a.EnableShapeLabel,labelFillColor:a.LabelFillColor,fontColor:a.FontColor,labelBorderColor:a.LabelBorderColor,fontSize:a.FontSize,fontFamily:a.FontFamily,labelBounds:a.LabelBounds,annotationSelectorSettings:this.getSettings(a),labelSettings:a.LabelSettings,annotationSettings:a.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(a),isPrint:a.IsPrint,isCommentLock:a.IsCommentLock,isAnnotationRotated:s}).vertexPoints;null==l&&(g=[]),a.AnnotationSelectorSettings=a.AnnotationSelectorSettings?"string"==typeof a.AnnotationSelectorSettings?JSON.parse(a.AnnotationSelectorSettings):a.AnnotationSelectorSettings:this.pdfViewer.annotationSelectorSettings;var u={id:"shape"+this.shapeCount,shapeAnnotationType:this.getShapeType(m),author:m.author,allowedInteractions:m.allowedInteractions,modifiedDate:m.modifiedDate,annotName:m.annotName,subject:m.subject,notes:m.note,fillColor:m.fillColor,strokeColor:m.strokeColor,opacity:m.opacity,thickness:m.thickness,borderStyle:m.borderStyle,borderDashArray:m.borderDashArray?m.borderDashArray.toString():"0",rotateAngle:parseFloat(m.rotateAngle.split("Angle")[1]),comments:m.comments,review:m.review,isCloudShape:m.isCloudShape,cloudIntensity:m.cloudIntensity,taregetDecoraterShapes:this.pdfViewer.annotation.getArrowType(m.lineHeadEnd),sourceDecoraterShapes:this.pdfViewer.annotation.getArrowType(m.lineHeadStart),vertexPoints:g,bounds:{x:m.bounds.left,y:m.bounds.top,width:m.bounds.width,height:m.bounds.height},pageIndex:m.pageNumber,labelContent:a.LabelContent,enableShapeLabel:a.EnableShapeLabel,labelFillColor:a.LabelFillColor,fontColor:a.FontColor,labelBorderColor:a.LabelBorderColor,fontSize:a.FontSize,fontFamily:a.FontFamily,labelBounds:a.LabelBounds,annotationSelectorSettings:a.AnnotationSelectorSettings,annotationSettings:m.annotationSettings,annotationAddMode:a.annotationAddMode,isPrint:a.IsPrint,isCommentLock:m.isCommentLock,customData:m.customData};this.pdfViewer.add(u);if(this.pdfViewer.annotationModule.storeAnnotations(i,m,"_annotations_shape"),this.isAddAnnotationProgramatically){var f={opacity:u.opacity,strokeColor:u.strokeColor,thickness:u.thickness,modifiedDate:u.modifiedDate,width:u.bounds.width,height:u.bounds.height};this.pdfViewer.fireAnnotationAdd(u.pageIndex,u.annotName,a.ShapeAnnotationType,u.bounds,f,null,null,null,m.labelSettings)}}}}else if(e.shapeAnnotationType){var m=this.createAnnotationObject(e);t.isNullOrUndefined(e.formFieldAnnotationType)||""===e.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0,this.pdfViewer.annotationModule.storeAnnotations(i,m,"_annotations_shape"),e&&(e.customData=m.customData),this.pdfViewer.annotationModule.triggerAnnotationAdd(e)}},e.prototype.getSettings=function(e){this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?"string"==typeof e.AnnotationSelectorSettings?JSON.parse(e.AnnotationSelectorSettings):e.AnnotationSelectorSettings:this.getSelector(e.ShapeAnnotationType,e.Subject)},e.prototype.setAnnotationType=function(e){this.updateShapeProperties(),this.pdfViewerBase.disableTextSelectionMode();var i,n="Guest",o="";switch(e){case"Line":this.currentAnnotationMode="Line";var r=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.lineSettings.author?this.pdfViewer.lineSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.lineSettings.subject?this.pdfViewer.lineSettings.subject:"Line":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.lineSettings.customData?this.pdfViewer.lineSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={shapeAnnotationType:this.setShapeType("Line"),fillColor:this.lineFillColor,notes:"",strokeColor:this.lineStrokeColor,opacity:this.lineOpacity,thickness:this.lineThickness,modifiedDate:r,borderDashArray:this.lineDashArray.toString(),sourceDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.lineStartHead.toString()),taregetDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.lineEndHead.toString()),author:n,subject:o,lineHeadStart:this.lineStartHead,lineHeadEnd:this.lineEndHead,isCommentLock:!1,customData:i},this.pdfViewer.tool="Line";break;case"Arrow":this.currentAnnotationMode="Arrow";var a=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.arrowSettings.author?this.pdfViewer.arrowSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.arrowSettings.subject?this.pdfViewer.arrowSettings.subject:"Arrow":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.arrowSettings.customData?this.pdfViewer.arrowSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={shapeAnnotationType:this.setShapeType("Arrow"),opacity:this.arrowOpacity,sourceDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.arrowStartHead.toString()),taregetDecoraterShapes:this.pdfViewer.annotation.getArrowType(this.arrowEndHead.toString()),fillColor:this.arrowFillColor,strokeColor:this.arrowStrokeColor,notes:"",thickness:this.arrowThickness,borderDashArray:this.arrowDashArray.toString(),author:n,subject:o,modifiedDate:a,lineHeadStart:this.arrowStartHead,lineHeadEnd:this.arrowEndHead,isCommentLock:!1,customData:i},this.pdfViewer.tool="Line";break;case"Rectangle":this.currentAnnotationMode="Rectangle";var s=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.rectangleSettings.author?this.pdfViewer.rectangleSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.rectangleSettings.subject?this.pdfViewer.rectangleSettings.subject:"Rectangle":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.rectangleSettings.customData?this.pdfViewer.rectangleSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={shapeAnnotationType:this.setShapeType("Rectangle"),strokeColor:this.rectangleStrokeColor,fillColor:this.rectangleFillColor,opacity:this.rectangleOpacity,notes:"",thickness:this.rectangleThickness,borderDashArray:"0",modifiedDate:s,author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="DrawTool";break;case"Circle":this.currentAnnotationMode="Circle";var l=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.circleSettings.author?this.pdfViewer.circleSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.circleSettings.subject?this.pdfViewer.circleSettings.subject:"Circle":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.circleSettings.customData?this.pdfViewer.circleSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={shapeAnnotationType:this.setShapeType("Circle"),strokeColor:this.circleStrokeColor,fillColor:this.circleFillColor,opacity:this.circleOpacity,notes:"",thickness:this.circleThickness,borderDashArray:"0",modifiedDate:l,author:n,subject:o,isCommentLock:!1,customData:i},this.pdfViewer.tool="DrawTool";break;case"Polygon":this.currentAnnotationMode="Polygon";var d=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();n="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.polygonSettings.author?this.pdfViewer.polygonSettings.author:"Guest",o=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.polygonSettings.subject?this.pdfViewer.polygonSettings.subject:"Polygon":this.pdfViewer.annotationSettings.subject,i=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.polygonSettings.customData?this.pdfViewer.polygonSettings.customData:null:this.pdfViewer.annotationSettings.customData,this.pdfViewer.drawingObject={strokeColor:this.polygonStrokeColor,fillColor:this.polygonFillColor,opacity:this.polygonOpacity,thickness:this.polygonThickness,borderDashArray:"0",notes:"",author:n,subject:o,modifiedDate:d,borderStyle:"",isCommentLock:!1,customData:i},this.pdfViewer.tool="Polygon"}},e.prototype.updateShapeProperties=function(){this.lineFillColor=this.pdfViewer.lineSettings.fillColor?this.pdfViewer.lineSettings.fillColor:"#ffffff00",this.lineStrokeColor=this.pdfViewer.lineSettings.strokeColor?this.pdfViewer.lineSettings.strokeColor:"#ff0000",this.lineThickness=this.pdfViewer.lineSettings.thickness?this.pdfViewer.lineSettings.thickness:1,this.lineOpacity=this.pdfViewer.lineSettings.opacity?this.pdfViewer.lineSettings.opacity:1,this.lineDashArray=this.pdfViewer.lineSettings.borderDashArray?this.pdfViewer.lineSettings.borderDashArray:0,this.lineStartHead=this.pdfViewer.lineSettings.lineHeadStartStyle?this.pdfViewer.lineSettings.lineHeadStartStyle:"None",this.lineEndHead=this.pdfViewer.lineSettings.lineHeadEndStyle?this.pdfViewer.lineSettings.lineHeadEndStyle:"None",this.arrowFillColor=this.pdfViewer.arrowSettings.fillColor?this.pdfViewer.arrowSettings.fillColor:"#ffffff00",this.arrowStrokeColor=this.pdfViewer.arrowSettings.strokeColor?this.pdfViewer.arrowSettings.strokeColor:"#ff0000",this.arrowThickness=this.pdfViewer.arrowSettings.thickness?this.pdfViewer.arrowSettings.thickness:1,this.arrowOpacity=this.pdfViewer.arrowSettings.opacity?this.pdfViewer.arrowSettings.opacity:1,this.arrowDashArray=this.pdfViewer.arrowSettings.borderDashArray?this.pdfViewer.arrowSettings.borderDashArray:0,this.arrowStartHead=this.pdfViewer.arrowSettings.lineHeadStartStyle?this.pdfViewer.arrowSettings.lineHeadStartStyle:"Closed",this.arrowEndHead=this.pdfViewer.arrowSettings.lineHeadEndStyle?this.pdfViewer.arrowSettings.lineHeadEndStyle:"Closed",this.rectangleFillColor=this.pdfViewer.rectangleSettings.fillColor?this.pdfViewer.rectangleSettings.fillColor:"#ffffff00",this.rectangleStrokeColor=this.pdfViewer.rectangleSettings.strokeColor?this.pdfViewer.rectangleSettings.strokeColor:"#ff0000",this.rectangleThickness=this.pdfViewer.rectangleSettings.thickness?this.pdfViewer.rectangleSettings.thickness:1,this.rectangleOpacity=this.pdfViewer.rectangleSettings.opacity?this.pdfViewer.rectangleSettings.opacity:1,this.circleFillColor=this.pdfViewer.circleSettings.fillColor?this.pdfViewer.circleSettings.fillColor:"#ffffff00",this.circleStrokeColor=this.pdfViewer.circleSettings.strokeColor?this.pdfViewer.circleSettings.strokeColor:"#ff0000",this.circleThickness=this.pdfViewer.circleSettings.thickness?this.pdfViewer.circleSettings.thickness:1,this.circleOpacity=this.pdfViewer.circleSettings.opacity?this.pdfViewer.circleSettings.opacity:1,this.polygonFillColor=this.pdfViewer.polygonSettings.fillColor?this.pdfViewer.polygonSettings.fillColor:"#ffffff00",this.polygonStrokeColor=this.pdfViewer.polygonSettings.strokeColor?this.pdfViewer.polygonSettings.strokeColor:"#ff0000",this.polygonThickness=this.pdfViewer.polygonSettings.thickness?this.pdfViewer.polygonSettings.thickness:1,this.polygonOpacity=this.pdfViewer.polygonSettings.opacity?this.pdfViewer.polygonSettings.opacity:1},e.prototype.setShapeType=function(e){var t;switch(e){case"Line":t="Line";break;case"Circle":t="Ellipse";break;case"Square":t="Rectangle";break;case"Polyline":t="Line";break;case"Arrow":t="LineWidthArrowHead"}return t},e.prototype.getShapeType=function(e){var t;switch(e.shapeAnnotationType){case"Line":t="Line";break;case"Circle":t="Ellipse";break;case"Square":t="Rectangle";break;case"Polyline":t="Line";break;case"Polygon":t="Polygon"}return"Line"!==e.shapeAnnotationType&&"Polyline"!==e.shapeAnnotationType||"None"===e.lineHeadStart&&"None"===e.lineHeadEnd||(t="LineWidthArrowHead"),t},e.prototype.getShapeAnnotType=function(e){var t;switch(e){case"Line":case"LineWidthArrowHead":t="Line";break;case"Rectangle":t="Square";break;case"Ellipse":t="Circle";break;case"Polygon":t="Polygon"}return t},e.prototype.modifyInCollection=function(e,i,n,o){t.isNullOrUndefined(n.formFieldAnnotationType)||""===n.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0,o&&this.pdfViewerBase.updateDocumentEditedProperty(!0);var r=null;n&&"bounds"===e&&this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationModifiedDate(n,!0);var a=this.getAnnotations(i,null);if(null!=a&&n){for(var s=0;s<a.length;s++)if(n.id===a[parseInt(s.toString(),10)].id){if("bounds"===e){if(this.pdfViewerBase.isBounds=this.pdfViewerBase.boundsCalculation(a[parseInt(s.toString(),10)].bounds,n.wrapper.bounds),this.pdfViewerBase.isBounds&&("Line"===a[parseInt(s.toString(),10)].shapeAnnotationType?(a[parseInt(s.toString(),10)].vertexPoints=n.vertexPoints,a[parseInt(s.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}):"Polygon"===a[parseInt(s.toString(),10)].shapeAnnotationType?(a[parseInt(s.toString(),10)].vertexPoints=n.vertexPoints,a[parseInt(s.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}):a[parseInt(s.toString(),10)].bounds={left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height,right:n.bounds.right,bottom:n.bounds.bottom}),!0===a[parseInt(s.toString(),10)].enableShapeLabel&&n.wrapper){var l=0,d=0,A=0;n.wrapper.bounds.width&&(A=(A=n.wrapper.bounds.width/2)>0&&A<151?A:151),n.wrapper.bounds.left&&(d=n.wrapper.bounds.left+n.wrapper.bounds.width/2-A/2),n.wrapper.bounds.top&&(l=n.wrapper.bounds.top+n.wrapper.bounds.height/2-12.3),a[parseInt(s.toString(),10)].labelBounds={left:d,top:l,width:A,height:24.6,right:0,bottom:0}}}else if("fill"===e)a[parseInt(s.toString(),10)].fillColor=n.wrapper.children[0].style.fill;else if("stroke"===e)a[parseInt(s.toString(),10)].strokeColor=n.wrapper.children[0].style.strokeColor;else if("opacity"===e)a[parseInt(s.toString(),10)].opacity=n.wrapper.children[0].style.opacity;else if("thickness"===e)a[parseInt(s.toString(),10)].thickness=n.wrapper.children[0].style.strokeWidth;else if("dashArray"===e)a[parseInt(s.toString(),10)].borderDashArray=n.wrapper.children[0].style.strokeDashArray,a[parseInt(s.toString(),10)].borderStyle=n.borderStyle;else if("startArrow"===e)a[parseInt(s.toString(),10)].lineHeadStart=this.pdfViewer.annotation.getArrowTypeForCollection(n.sourceDecoraterShapes);else if("endArrow"===e)a[parseInt(s.toString(),10)].lineHeadEnd=this.pdfViewer.annotation.getArrowTypeForCollection(n.taregetDecoraterShapes);else if("notes"===e)a[parseInt(s.toString(),10)].note=n.notes;else{if("delete"===e){r=a.splice(s,1)[0];break}if("labelContent"===e){a[parseInt(s.toString(),10)].note=n.labelContent,a[parseInt(s.toString(),10)].labelContent=n.labelContent;break}"fontColor"===e?a[parseInt(s.toString(),10)].fontColor=n.fontColor:"fontSize"===e&&(a[parseInt(s.toString(),10)].fontSize=n.fontSize)}this.pdfViewerBase.isBounds&&(a[parseInt(s.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()),this.pdfViewer.annotationModule.storeAnnotationCollections(a[parseInt(s.toString(),10)],i)}this.manageAnnotations(a,i)}return r},e.prototype.addInCollection=function(e,t){var i=this.getAnnotations(e,null);i&&i.push(t),this.manageAnnotations(i,e)},e.prototype.saveShapeAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape"]);for(var i=[],n=0;n<this.pdfViewerBase.pageCount;n++)i[parseInt(n.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var o=JSON.parse(e),r=0;r<o.length;r++){var a=[],s=o[parseInt(r.toString(),10)];if(s){for(var l=0;s.annotations.length>l;l++)if(this.pdfViewerBase.checkFormFieldCollection(s.annotations[parseInt(l.toString(),10)].id))s.annotations[parseInt(l.toString(),10)]="";else{if(this.pdfViewer.annotationModule.updateModifiedDate(s.annotations[parseInt(l.toString(),10)]),this.pdfViewerBase.isJsonExported)if(s.annotations[parseInt(l.toString(),10)].isAnnotationRotated)s.annotations[parseInt(l.toString(),10)].bounds=this.pdfViewer.annotation.getBounds(s.annotations[parseInt(l.toString(),10)].bounds,s.pageIndex),s.annotations[parseInt(l.toString(),10)].vertexPoints=this.pdfViewer.annotation.getVertexPoints(s.annotations[parseInt(l.toString(),10)].vertexPoints,s.pageIndex);else{var d=this.pdfViewerBase.pageSize[s.pageIndex];d&&(s.annotations[parseInt(l.toString(),10)].annotationRotation=d.rotation)}s.annotations[parseInt(l.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(s.annotations[parseInt(l.toString(),10)].bounds,s.pageIndex));var A=s.annotations[parseInt(l.toString(),10)].strokeColor;s.annotations[parseInt(l.toString(),10)].strokeColor=JSON.stringify(this.getRgbCode(A));var h=s.annotations[parseInt(l.toString(),10)].fillColor;if(t.isNullOrUndefined(h)?s.annotations[parseInt(l.toString(),10)].fillColor="transparent":s.annotations[parseInt(l.toString(),10)].fillColor=JSON.stringify(this.getRgbCode(h)),s.annotations[parseInt(l.toString(),10)].vertexPoints=JSON.stringify(this.pdfViewer.annotation.getVertexPoints(s.annotations[parseInt(l.toString(),10)].vertexPoints,s.pageIndex)),null!==s.annotations[parseInt(l.toString(),10)].rectangleDifference&&(s.annotations[parseInt(l.toString(),10)].rectangleDifference=JSON.stringify(s.annotations[parseInt(l.toString(),10)].rectangleDifference)),!0===s.annotations[parseInt(l.toString(),10)].enableShapeLabel){s.annotations[parseInt(l.toString(),10)].labelBounds=JSON.stringify(this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(JSON.parse(s.annotations[parseInt(l.toString(),10)].bounds)));var p=s.annotations[parseInt(l.toString(),10)].labelFillColor;s.annotations[parseInt(l.toString(),10)].labelFillColor=JSON.stringify(this.getRgbCode(p));var c=s.annotations[parseInt(l.toString(),10)].labelBorderColor;s.annotations[parseInt(l.toString(),10)].labelBorderColor=JSON.stringify(this.getRgbCode(c)),s.annotations[parseInt(l.toString(),10)].labelSettings.fillColor=p;var g=s.annotations[parseInt(l.toString(),10)].labelSettings.fontColor;s.annotations[parseInt(l.toString(),10)].fontColor=JSON.stringify(this.getRgbCode(g))}}s.annotations=s.annotations.filter(function(e){return e}),a=s.annotations}i[s.pageIndex]=a}return JSON.stringify(i)},e.prototype.manageAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_shape");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_shape",r)}},e.prototype.createAnnotationObject=function(e){var t,i,n=this.pdfViewer.annotation.createGUID();if(!e.formFieldAnnotationType){var o=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("shape",e.pageIndex+1,e.shapeAnnotationType);o&&(document.getElementById(o).id=n)}e.annotName=n,e.wrapper.bounds?(t={left:e.wrapper.bounds.x,top:e.wrapper.bounds.y,height:e.wrapper.bounds.height,width:e.wrapper.bounds.width,right:e.wrapper.bounds.right,bottom:e.wrapper.bounds.bottom},i=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(e.wrapper.bounds)):(t={left:0,top:0,height:0,width:0,right:0,bottom:0},i={left:0,top:0,height:0,width:0,right:0,bottom:0}),"Line"===e.subject&&"Polygon"===e.shapeAnnotationType?e.author=this.pdfViewer.annotationModule.updateAnnotationAuthor("shape","Polygon"):e.author=e&&"Guest"!=e.author?e.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e.subject),this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(n,e.notes);var r=parseInt(e.borderDashArray,10);r=isNaN(r)?0:r;var a=this.pdfViewer.annotationModule.findAnnotationSettings(e,!0);e.isPrint=a.isPrint;var s=this.pdfViewer.shapeLabelSettings,l={borderColor:e.strokeColor,fillColor:e.fillColor,fontColor:e.fontColor,fontSize:e.fontSize,labelContent:e.labelContent,labelHeight:s.labelHeight,labelWidth:s.labelMaxWidth,opacity:e.opacity};return{id:e.id,shapeAnnotationType:this.getShapeAnnotType(e.shapeAnnotationType),author:e.author,allowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),subject:e.subject,note:e.notes,strokeColor:e.strokeColor,annotName:n,comments:[],review:{state:"",stateModel:"",modifiedDate:this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),author:e.author},fillColor:e.fillColor,opacity:e.opacity,thickness:e.thickness,pageNumber:e.pageIndex,borderStyle:e.borderStyle,borderDashArray:r,bounds:t,modifiedDate:this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),rotateAngle:"RotateAngle"+e.rotateAngle,isCloudShape:e.isCloudShape,cloudIntensity:e.cloudIntensity,vertexPoints:e.vertexPoints,lineHeadStart:this.pdfViewer.annotation.getArrowTypeForCollection(e.sourceDecoraterShapes),lineHeadEnd:this.pdfViewer.annotation.getArrowTypeForCollection(e.taregetDecoraterShapes),rectangleDifference:[],isLocked:a.isLock,labelContent:e.labelContent,enableShapeLabel:e.enableShapeLabel,labelFillColor:e.labelFillColor,fontColor:e.fontColor,labelBorderColor:e.labelBorderColor,fontSize:e.fontSize,fontFamily:e.fontFamily,labelBounds:i,annotationSelectorSettings:this.getSelector(e.shapeAnnotationType,e.subject),labelSettings:l,annotationSettings:a,customData:this.pdfViewer.annotation.getShapeData(e.shapeAnnotationType,e.subject),isPrint:e.isPrint,isCommentLock:e.isCommentLock,isAnnotationRotated:!1}},e.prototype.getSelector=function(e,t){var i=this.pdfViewer.annotationSelectorSettings;return"Line"===e&&"Arrow"!==t&&this.pdfViewer.lineSettings.annotationSelectorSettings?i=this.pdfViewer.lineSettings.annotationSelectorSettings:"LineWidthArrowHead"!==e&&"Arrow"!==t||!this.pdfViewer.lineSettings.annotationSelectorSettings?"Rectangle"!==e&&"Square"!==e||!this.pdfViewer.rectangleSettings.annotationSelectorSettings?"Ellipse"!==e&&"Circle"!==e||!this.pdfViewer.circleSettings.annotationSelectorSettings?"Polygon"===e&&this.pdfViewer.polygonSettings.annotationSelectorSettings&&(i=this.pdfViewer.polygonSettings.annotationSelectorSettings):i=this.pdfViewer.circleSettings.annotationSelectorSettings:i=this.pdfViewer.rectangleSettings.annotationSelectorSettings:i=this.pdfViewer.arrowSettings.annotationSelectorSettings,i},e.prototype.getAnnotations=function(e,t){var i,n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape");if(this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_shape"]),n){var o=JSON.parse(n),r=this.pdfViewer.annotationModule.getPageCollection(o,e);i=null!=r&&o[parseInt(r.toString(),10)]?o[parseInt(r.toString(),10)].annotations:t}else i=t;return i},e.prototype.getRgbCode=function(e){e.match(/#([a-z0-9]+)/gi)||e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(e=this.pdfViewer.annotationModule.nameToHash(e));var i=e.split(",");return t.isNullOrUndefined(i[1])&&(i=(e=this.pdfViewer.annotationModule.getValue(e,"rgba")).split(",")),{r:parseInt(i[0].split("(")[1],10),g:parseInt(i[1],10),b:parseInt(i[2],10),a:parseFloat(i[3])}},e.prototype.destroy=function(){this.currentAnnotationMode=null,this.lineOpacity=null,this.arrowOpacity=null,this.rectangleOpacity=null,this.circleOpacity=null,this.polygonOpacity=null,this.lineFillColor=null,this.arrowFillColor=null,this.rectangleFillColor=null,this.circleFillColor=null,this.polygonFillColor=null,this.lineStrokeColor=null,this.arrowStrokeColor=null,this.rectangleStrokeColor=null,this.circleStrokeColor=null,this.polygonStrokeColor=null,this.lineThickness=null,this.arrowThickness=null,this.rectangleThickness=null,this.circleThickness=null,this.polygonThickness=null,this.lineDashArray=null,this.lineStartHead=null,this.lineEndHead=null,this.arrowDashArray=null,this.arrowStartHead=null,this.arrowEndHead=null,this.shapeCount=null,this.isAddAnnotationProgramatically=null},e.prototype.saveImportedShapeAnnotations=function(e,t){var i=null,n=null;if(e.Author=this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e.Subject),e.VertexPoints){n=[];for(var o=0;o<e.VertexPoints.length;o++){var r={x:e.VertexPoints[parseInt(o.toString(),10)].X,y:e.VertexPoints[parseInt(o.toString(),10)].Y};n.push(r)}}e.Bounds&&!0===e.EnableShapeLabel&&(e.LabelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(e.Bounds),e.LabelBorderColor=e.LabelBorderColor?e.LabelBorderColor:e.StrokeColor,e.FontColor=e.FontColor?e.FontColor:e.StrokeColor,e.LabelFillColor=e.LabelFillColor?e.LabelFillColor:e.FillColor,e.FontSize=e.FontSize?e.FontSize:16,e.LabelSettings=e.LabelSettings?e.LabelSettings:this.pdfViewer.shapeLabelSettings),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),i={id:"shape",shapeAnnotationType:e.ShapeAnnotationType,author:e.Author,allowedInteractions:e.allowedInteractions,modifiedDate:e.ModifiedDate,subject:e.Subject,pageNumber:t,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,thickness:e.Thickness,rectangleDifference:e.RectangleDifference,borderStyle:e.BorderStyle,borderDashArray:e.BorderDashArray,rotateAngle:e.RotateAngle,isCloudShape:e.IsCloudShape,cloudIntensity:e.CloudIntensity,vertexPoints:n,lineHeadStart:e.LineHeadStart,lineHeadEnd:e.LineHeadEnd,isLocked:e.IsLocked,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},annotName:e.AnnotName,bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},labelContent:e.LabelContent,enableShapeLabel:e.EnableShapeLabel,labelFillColor:e.LabelFillColor,labelBorderColor:e.LabelBorderColor,fontColor:e.FontColor,fontSize:e.FontSize,fontFamily:e.FontFamily,labelBounds:e.LabelBounds,annotationSelectorSettings:this.getSettings(e),labelSettings:e.LabelSettings,annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.IsPrint,isCommentLock:e.IsCommentLock,isAnnotationRotated:!1},this.pdfViewer.annotationModule.storeAnnotations(t,i,"_annotations_shape")},e.prototype.updateShapeAnnotationCollections=function(e,t){var i=null;if(e.VertexPoints){i=[];for(var n=0;n<e.VertexPoints.length;n++){var o={x:e.VertexPoints[parseInt(n.toString(),10)].X,y:e.VertexPoints[parseInt(n.toString(),10)].Y};i.push(o)}}if(e.Bounds&&!0===e.EnableShapeLabel){e.LabelBounds=this.pdfViewer.annotationModule.inputElementModule.calculateLabelBoundsFromLoadedDocument(e.Bounds),e.LabelBorderColor=e.LabelBorderColor?e.LabelBorderColor:e.StrokeColor,e.FontColor=e.FontColor?e.FontColor:e.StrokeColor,e.LabelFillColor=e.LabelFillColor?e.LabelFillColor:e.FillColor,e.FontSize=e.FontSize?e.FontSize:16;var r=this.pdfViewer.shapeLabelSettings,a={borderColor:e.StrokeColor,fillColor:e.FillColor,fontColor:e.FontColor,fontSize:e.FontSize,labelContent:e.LabelContent,labelHeight:r.labelHeight,labelWidth:r.labelWidth,opacity:e.Opacity};e.LabelSettings=e.LabelSettings?e.LabelSettings:a}return e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked),e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),{id:"shape",shapeAnnotationType:e.ShapeAnnotationType,author:e.Author,allowedInteractions:e.allowedInteractions,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,thickness:e.Thickness,rectangleDifference:e.RectangleDifference,borderStyle:e.BorderStyle,borderDashArray:e.BorderDashArray,rotateAngle:e.RotateAngle,isCloudShape:e.IsCloudShape,cloudIntensity:e.CloudIntensity,vertexPoints:i,lineHeadStart:e.LineHeadStart,lineHeadEnd:e.LineHeadEnd,isLocked:e.IsLocked,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},annotationId:e.AnnotName,bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},labelContent:e.LabelContent,enableShapeLabel:e.EnableShapeLabel,labelFillColor:e.LabelFillColor,labelBorderColor:e.LabelBorderColor,fontColor:e.FontColor,fontSize:e.FontSize,labelBounds:e.LabelBounds,pageNumber:t,labelSettings:e.LabelSettings,annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.IsPrint,isCommentLock:e.IsCommentLock}},e.prototype.getLabelSettingsValues=function(e){var t=this.pdfViewer.shapeLabelSettings;return{fontColor:e.fontColor?e.fontColor:t.fontColor,labelContent:e.labelContent?e.labelContent:t.labelContent,fillColor:e.labelFillColor?e.labelFillColor:t.fillColor,fontSize:e.fontSize?e.fontSize:t.fontSize,opacity:e.opacity?e.opacity:t.opacity,fontFamily:e.fontFamily?e.fontFamily:t.fontFamily}},e.prototype.updateAddAnnotationDetails=function(e,i,n){n=i?i.offset?i.offset:{x:10,y:10}:(i={offset:{x:10,y:10},pageNumber:0,width:void 0,height:void 0}).offset;var o=null,r=null,a=null,s="",l=!1,d=null,A=null,h=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),p=this.pdfViewer.annotation.createGUID();"Line"===e?(o=this.pdfViewer.lineSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.lineSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e),r=this.pdfViewer.lineSettings.allowedInteractions?this.pdfViewer.lineSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="Line",d=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+100,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1,A=this.getLabelSettingsValues(i)):"Arrow"===e?(o=this.pdfViewer.arrowSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.arrowSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e),r=this.pdfViewer.arrowSettings.allowedInteractions?this.pdfViewer.arrowSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="Line",l=!0,d=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+100,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1,A=this.getLabelSettingsValues(i)):"Rectangle"===e?(o=this.pdfViewer.rectangleSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.rectangleSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e),r=this.pdfViewer.rectangleSettings.allowedInteractions?this.pdfViewer.rectangleSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="Square",i.width=i.width?i.width:150,i.height=i.height?i.height:75,A=this.getLabelSettingsValues(i)):"Circle"===e?(o=this.pdfViewer.circleSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.circleSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e),r=this.pdfViewer.circleSettings.allowedInteractions?this.pdfViewer.circleSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="Circle",i.width=i.width?i.width:100,i.height=i.height?i.height:90,A=this.getLabelSettingsValues(i)):"Polygon"===e&&(o=this.pdfViewer.polygonSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(o),a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.polygonSettings),i.author=i.author?i.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("shape",e),r=this.pdfViewer.polygonSettings.allowedInteractions?this.pdfViewer.polygonSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,s="Polygon",A=this.getLabelSettingsValues(i),d=i.vertexPoints?i.vertexPoints:[{x:n.x,y:n.y},{x:n.x+42,y:n.y-29},{x:n.x+89,y:n.y-1},{x:n.x+78,y:n.y+42},{x:n.x+11,y:n.y+42},{x:n.x,y:n.y}],i.width=i.width?i.width:1,i.height=i.height?i.height:1),a.isLock=i.isLock?i.isLock:a.isLock,a.minHeight=i.minHeight?i.minHeight:a.minHeight,a.minWidth=i.minWidth?i.minWidth:a.minWidth,a.maxWidth=i.maxWidth?i.maxWidth:a.maxWidth,a.maxHeight=i.maxHeight?i.maxHeight:a.maxHeight,d&&(d=this.pdfViewer.annotation.getVertexPointsXY(d));var c=[],g={AllowedInteractions:i.allowedInteractions?i.allowedInteractions:r,AnnotName:p,AnnotType:"shape",AnnotationSelectorSettings:i.annotationSelectorSettings?i.annotationSelectorSettings:o,AnnotationSettings:a,Author:i.author?i.author:"Guest",BorderDashArray:i.borderDashArray?i.borderDashArray:0,BorderStyle:"Solid",Bounds:{X:n.x,Y:n.y,Width:i.width,Height:i.height,Left:n.x,Top:n.y,Location:{X:n.x,Y:n.y},Size:{Height:i.height,IsEmpty:!1,Width:i.width}},CloudIntensity:0,Comments:null,CustomData:i.customData?i.customData:null,CreatedDate:h,EnableShapeLabel:this.pdfViewer.enableShapeLabel,ExistingCustomData:null,FillColor:i.fillColor?i.fillColor:"#ffffff00",FontColor:A.fontColor,FontSize:A.fontSize,FontFamily:A.fontFamily,IsCloudShape:!1,IsCommentLock:!1,IsLocked:!!i.isLock&&i.isLock,IsPrint:!!t.isNullOrUndefined(i.isPrint)||i.isPrint,LabelBorderColor:A.borderColor,LabelBounds:{X:0,Y:0,Width:0,Height:0},LabelContent:A.labelContent,LabelFillColor:A.fillColor,LabelSettings:A,LineHeadStart:i.lineHeadStartStyle?i.lineHeadStartStyle:l?"ClosedArrow":"None",LineHeadEnd:i.lineHeadEndStyle?i.lineHeadEndStyle:l?"ClosedArrow":"None",ModifiedDate:"",Note:this.pdfViewer.enableShapeLabel&&A.labelContent?A.labelContent:"",Opacity:i.opacity?i.opacity:1,RectangleDifference:null,RotateAngle:"RotateAngle0",ShapeAnnotationType:s,State:"",StateModel:"",StrokeColor:i.strokeColor?i.strokeColor:"#ff0000",Subject:i.subject?i.subject:e.toString(),Thickness:i.thickness?i.thickness:1,VertexPoints:d};return c[0]=g,{shapeAnnotation:c}},e}(),Gt=function(){function n(e,t){this.isStampAddMode=!1,this.stampPageNumber=[],this.isAddAnnotationProgramatically=!1,this.customStampName=null,this.dynamicText="",this.pdfViewer=e,this.pdfViewerBase=t}return n.prototype.renderStampAnnotations=function(e,i,n,o,r){var a=this;return new Promise(function(s){var l=!1;if(!o)for(var d=0;d<a.stampPageNumber.length;d++)if(a.stampPageNumber[parseInt(d.toString(),10)]===i){l=!0;break}if(o&&(l=!1),e&&(!l||r)){a.stampPageNumber.push(i);for(var A=0;A<e.length;A++)!function(r){var l=e[parseInt(r.toString(),10)];l.annotationAddMode=a.pdfViewer.annotationModule.findAnnotationMode(l,i,l.AnnotType);var d=l.Apperarance,A=l.Rect,h=l.Opacity,p=parseFloat(e[parseInt(r.toString(),10)].pageNumber);isNaN(p)&&(p=e[parseInt(r.toString(),10)].PageNumber);var c=l.IsDynamic;l.AnnotationSettings=l.AnnotationSettings?l.AnnotationSettings:a.pdfViewer.annotationModule.updateSettings(a.pdfViewer.stampSettings),l.IsLocked&&(l.AnnotationSettings.isLock=l.IsLocked);var g=a.stampImageData(l);if(c&&l.IconName&&"Draft"!==l.IconName&&!g&&(t.isNullOrUndefined(l.template)||""===l.template)){a.retrieveDynamicStampAnnotation(l.IconName),a.isExistingStamp=!0;for(var u=a.calculateImagePosition(A,!0),f=l.RotateAngle,m=0;m<d.length;m++){var w=d[parseInt(m.toString(),10)];if("string"===w.type&&void 0!==w.text){var C=void 0;2===(C=!o&&w.text.split("(").length>1?w.text.split("(")[1].split(")")[0]:w.text).split("(").length?C.split("(")[1].split(")")[0].toLowerCase()!==l.IconName.toLowerCase()&&(a.dynamicText+=C.split("(")[1].split(")")[0]):C.toLowerCase()!==l.IconName.toLowerCase()&&(a.dynamicText+=C)}}a.renderStamp(u.left,u.top,u.width,u.height,p,h,f,n,l,!0),s()}else if(!l.IconName||g||!t.isNullOrUndefined(l.template)&&""!==l.template){if(d){for(var B=0;B<d.length;B++)!function(e){var t=d[parseInt(e.toString(),10)],i=t.imagedata,o=t.CreationDate,r=t.ModifiedDate,c=t.RotateAngle;if(i){var g=new Image,u=a;g.onload=function(){var e=u.calculateImagePosition(A,!0);l.AnnotationSettings=l.AnnotationSettings?l.AnnotationSettings:u.pdfViewer.customStampSettings.annotationSettings,u.renderCustomImage(e,p,g,o,r,c,h,n,!0,l,null,null,null),"image"===u.pdfViewer.annotationModule.annotationType&&(u.pdfViewer.annotation.selectAnnotationFromCodeBehind(),u.pdfViewer.annotationModule.annotationType=null),s()},g.src=i}}(B);0===d.length&&s()}}else{a.retrievestampAnnotation(l.IconName),a.isExistingStamp=!0;var u=a.calculateImagePosition(A,!0),f=l.RotateAngle;a.renderStamp(u.left,u.top,u.width,u.height,p,h,f,n,l),a.isExistingStamp=!1,s()}}(A);0===e.length&&s()}})},n.prototype.renderStampAnnotImage=function(e,t,i,n,o,r,a){var s=e.Apperarance,l=e.Rect,d=e.Opacity,A=(e.AnnotationSelectorSettings,parseFloat(e.pageNumber));if(s)for(var h=this,p=0;p<s.length;p++)!function(t){var n=s[parseInt(t.toString(),10)],o=n.imagedata,p=n.CreationDate,c=n.ModifiedDate,g=n.RotateAngle;if(o){var u=new Image,f=h;u.onload=function(){var t=f.calculateImagePosition(l,!0);e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:f.pdfViewer.customStampSettings.annotationSettings,f.renderCustomImage(t,A,u,p,c,g,d,i,!0,e,null,r,a)},u.src=o}}(p)},n.prototype.moveStampElement=function(e,i,n){var o=this.pdfViewerBase.getZoomFactor();e/=o,i/=o;var r=t.isNullOrUndefined(this.pdfViewer.annotationSettings.author)||"Guest"===this.pdfViewer.annotationSettings.author?this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:"Guest":this.pdfViewer.annotationSettings.author;if(this.pdfViewerBase.isDynamicStamp)if(this.pdfViewer.dateTimeFormat){var a=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTimeFormat();this.dynamicText="By "+r+" at "+a+" "}else{var s=(new Date).toString().split(" ").splice(1,3).join(" "),l=(new Date).toLocaleTimeString();this.dynamicText="By "+r+" at "+l+" , "+s+"   "}var d,A=this.currentStampAnnotation,h=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.stampSettings.subject?this.pdfViewer.stampSettings.subject:t.isNullOrUndefined(A)?"":A.iconName:this.pdfViewer.annotationSettings.subject,p={resizerFillColor:this.pdfViewer.annotationSelectorSettings.resizerFillColor,resizerBorderColor:this.pdfViewer.annotationSelectorSettings.resizerBorderColor,selectionBorderColor:this.pdfViewer.annotationSelectorSettings.selectionBorderColor,resizerSize:this.pdfViewer.annotationSelectorSettings.resizerSize,resizerShape:this.pdfViewer.annotationSelectorSettings.resizerShape,resizerCursorType:this.pdfViewer.annotationSelectorSettings.resizerCursorType,selectionBorderThickness:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness,selectorLineDashArray:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray};return this.updateStampSelectorSettings(p),A&&"Image"===A.shapeAnnotationType?d={id:"stamp"+this.pdfViewerBase.customStampCount,bounds:{x:e,y:i,width:A.bounds.width,height:A.bounds.height},pageIndex:n,data:A.data,modifiedDate:A.modifiedDate,shapeAnnotationType:"Image",opacity:A.opacity,rotateAngle:A.RotationAngle,annotName:A.annotationName,comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:A.author}}:A&&(d={id:"stamp"+this.pdfViewerBase.customStampCount,bounds:{x:e,y:i,width:A.width,height:A.height},pageIndex:n,data:A.pathdata,shapeAnnotationType:"Stamp",strokeColor:A.strokeColor,fillColor:A.fillColor,opacity:.5,stampFillColor:A.stampFillColor,stampStrokeColor:A.stampStrokeColor,rotateAngle:A.RotateAngle,isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:this.dynamicText,subject:h,annotationSelectorSettings:p,icon:A.iconName}),this.pdfViewerBase.currentSignatureAnnot&&(d="SignatureText"===(A=this.pdfViewerBase.currentSignatureAnnot).shapeAnnotationType?{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:e,y:i,width:A.bounds.width,height:A.bounds.height},pageIndex:n,data:A.data,modifiedDate:"",shapeAnnotationType:"SignatureText",thickness:A.thickness,strokeColor:A.strokeColor,opacity:A.opacity,signatureName:A.signatureName,fontFamily:A.fontFamily,fontSize:Math.floor(A.bounds.height/2)}:"SignatureImage"===A.shapeAnnotationType?{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:e,y:i,width:A.bounds.width,height:A.bounds.height},pageIndex:n,data:A.data,modifiedDate:"",shapeAnnotationType:"SignatureImage",thickness:A.thickness,strokeColor:A.strokeColor,opacity:A.opacity,signatureName:A.signatureName}:{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:e,y:i,width:A.bounds.width,height:A.bounds.height},pageIndex:n,data:A.data,shapeAnnotationType:"HandWrittenSignature",thickness:A.thickness,strokeColor:A.strokeColor,opacity:A.opacity,signatureName:A.signatureName}),d},n.prototype.ConvertPointToPixel=function(e){return e*(96/72)},n.prototype.calculateImagePosition=function(e,i){var n=parseFloat(t.isNullOrUndefined(e.x)?e.X:e.x),o=parseFloat(t.isNullOrUndefined(e.y)?e.Y:e.y),r=parseFloat(e.width?e.width:e.Width),a=parseFloat(e.height?e.height:e.Height);return i?{width:this.ConvertPointToPixel(r),height:this.ConvertPointToPixel(a),left:this.ConvertPointToPixel(n),top:this.ConvertPointToPixel(o)}:{width:r,height:a,left:n,top:o}},n.prototype.createCustomStampAnnotation=function(e,t){var i=this,n=this.pdfViewerBase.currentPageNumber-1,o=new Image,r=this;o.onload=function(){var e=i.pdfViewer.customStampSettings,a=e.width>0?e.width:0,s=e.height>0?e.height:0;a>0||s>0||(o.naturalHeight>=o.naturalWidth?(s=o.naturalHeight/o.naturalHeight*100,a=o.naturalWidth/o.naturalHeight*100):(s=o.naturalHeight/o.naturalWidth*100,a=o.naturalWidth/o.naturalWidth*100));var l=0,d=0,A={width:a,height:s,left:l=i.pdfViewer.customStampSettings.left,top:d=i.pdfViewer.customStampSettings.top},h=(new Date).toLocaleDateString(),p=i.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();r.renderCustomImage(A,n,o,h,p,0,1,null,null,null,t)},o.src=e},n.prototype.renderStamp=function(e,n,o,r,a,s,l,d,A,h){t.Browser.isDevice&&(this.pdfViewerBase.customStampCount+=1);var p="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:"Guest";if(this.pdfViewerBase.isDynamicStamp){var c=(new Date).toString().split(" ").splice(1,3).join(" "),g=(new Date).toLocaleTimeString();this.dynamicText="By "+p+" at "+g+" , "+c+" "}h&&(this.dynamicText+=" ",this.pdfViewerBase.isDynamicStamp=!0);var u,f=null,m=this.currentStampAnnotation;if(m){if(null!==o&&null!==r){m.width=o,m.height=r,m.Opacity=s,m.RotateAngle=l;Q=A.AnnotName;m.AnnotName=Q;var w=A.State;m.State=w;var C=A.AnnotationSettings;m.AnnotationSettings=C||this.pdfViewer.annotationModule.updateAnnotationSettings(m);var B="string"==typeof A.AnnotationSelectorSettings?JSON.parse(A.AnnotationSelectorSettings):A.AnnotationSelectorSettings;m.AnnotationSelectorSettings=B||this.pdfViewer.annotationSelectorSettings;var S=A.ModifiedDate;m.ModifiedDate=S;var y=A.StateNodel;m.StateModel=y;var I=A.IsCommentLock;m.IsCommentLock=I;var E=A.Note;m.Note=E;var v=A.Author;m.Author=v;var b=A.Subject;m.Subject=b;var V=this.pdfViewer.annotation.getCustomData(A);m.allowedInteractions=A.AllowedInteractions?A.AllowedInteractions:A.allowedInteractions?A.allowedInteractions:["None"],m.CustomData=V;var D=!0;D=t.isNullOrUndefined(A.IsPrint)&&t.isNullOrUndefined(A.IsPrint)?A.AnnotationSettings.isPrint:A.IsPrint,m.isPrint=D,null===m.Author&&(m.Author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:"Guest");var x=A.Comments;m.Comments=this.pdfViewer.annotationModule.getAnnotationComments(x,A,v)}else{var Q=this.pdfViewer.annotation.createGUID(),M=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("stamp",a+1);M&&(document.getElementById(M).id=Q),m.AnnotationSettings=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings),m.AnnotName=Q,m.Comments=[],m.State="",m.StateModel="",m.Note="",m.Opacity=1,m.RotateAngle=0,m.ModifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),m.Author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:"Guest",m.Subject=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.stampSettings.subject?this.pdfViewer.stampSettings.subject:m.iconName:this.pdfViewer.annotationSettings.subject}var F=i.processPathData(m.pathdata),T=i.splitArrayCollection(F),k=A?A.annotationAddMode:"UI Drawn Annotation";m.AnnotationSelectorSettings=m.AnnotationSelectorSettings?m.AnnotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,u={id:"stamp"+this.pdfViewerBase.customStampCount,bounds:{x:e,y:n,width:m.width,height:m.height},pageIndex:a,data:m.pathdata,modifiedDate:m.ModifiedDate,shapeAnnotationType:"Stamp",strokeColor:m.strokeColor,fillColor:m.fillColor,opacity:m.Opacity,stampFillColor:m.stampFillColor,stampStrokeColor:m.stampStrokeColor,rotateAngle:m.RotateAngle,isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:this.dynamicText,annotName:m.AnnotName,notes:m.Note,comments:m.Comments,review:{state:m.State,stateModel:m.StateModel,modifiedDate:m.ModifiedDate,author:m.Author},subject:m.Subject,annotationSelectorSettings:m.AnnotationSelectorSettings,annotationSettings:m.AnnotationSettings,allowedInteractions:m.allowedInteractions,annotationAddMode:k,isPrint:m.isPrint,isCommentLock:m.IsCommentLock},f={stampAnnotationType:"path",author:m.Author,modifiedDate:m.ModifiedDate,subject:m.Subject,note:m.Note,strokeColor:m.strokeColor,fillColor:m.fillColor,opacity:m.Opacity,stampFillcolor:m.stampFillColor,rotateAngle:m.RotateAngle,creationDate:m.creationDate,pageNumber:a,icon:m.iconName,stampAnnotationPath:T,randomId:"stamp"+this.pdfViewerBase.customStampCount,isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:this.dynamicText,bounds:{left:e,top:n,width:m.width,height:m.height},annotName:m.AnnotName,comments:m.Comments,review:{state:m.State,stateModel:m.StateModel,author:m.Author,modifiedDate:m.ModifiedDate},shapeAnnotationType:"stamp",annotationSelectorSettings:this.getSettings(m),annotationSettings:m.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(m),allowedInteractions:m.allowedInteractions,isPrint:m.isPrint,isCommentLock:m.IsCommentLock,isMaskedImage:m.IsMaskedImage,customStampName:"",template:m?m.template:null,templateSize:m?m.templateSize:0},this.storeStampInSession(a,f),this.pdfViewer.add(u),this.isAddAnnotationProgramatically&&this.triggerAnnotationAdd(u,m),t.isNullOrUndefined(d)&&(d=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",a)),this.pdfViewer.renderDrawing(d,a),this.pdfViewerBase.stampAdded&&(this.triggerAnnotationAdd(u,m),this.pdfViewerBase.isNewStamp=!0,this.pdfViewer.annotation.addAction(a,null,u,"Addition","",u,u)),this.pdfViewerBase.stampAdded=!1,this.isExistingStamp||(m.creationDate=(new Date).toLocaleDateString(),m.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime())}this.resetAnnotation()},n.prototype.getSettings=function(e){var t=this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?t=e.AnnotationSelectorSettings:this.pdfViewer.stampSettings.annotationSelectorSettings&&(t=this.pdfViewer.stampSettings.annotationSelectorSettings),t},n.prototype.resetAnnotation=function(){this.pdfViewerBase.isDynamicStamp=!1,this.dynamicText="",this.currentStampAnnotation=null,t.Browser.isDevice||(this.pdfViewerBase.customStampCount+=1)},n.prototype.updateDeleteItems=function(e,n,o){this.pdfViewerBase.updateDocumentEditedProperty(!0);var r=null,a=!1;if(n.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),n.author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:"Guest",o){var s=this.pdfViewer.annotation.createGUID(),l=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("stamp",e+1);l&&(document.getElementById(l).id=s),n.annotName=s,n.Comments=[],n.State="",n.StateModel="",n.Note="",n.Opacity=1,n.RotateAngle=0}"Stamp"===n.shapeAnnotationType&&(n.isPrint=this.pdfViewer.stampSettings.isPrint);var d=this.pdfViewer.annotationSelectorSettings;this.updateStampSelectorSettings(d);var A=this.pdfViewer.stampSettings.allowedInteractions?this.pdfViewer.stampSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions;if("Image"===n.shapeAnnotationType?(n.Author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.customStampSettings.author?this.pdfViewer.customStampSettings.author:"Guest",n.Subject=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.customStampSettings.subject?this.pdfViewer.customStampSettings.subject:"":this.pdfViewer.annotationSettings.subject,n.isPrint=this.pdfViewer.customStampSettings.isPrint,this.customStampName=this.customStampName?this.customStampName:this.currentStampAnnotation&&this.currentStampAnnotation.signatureName?this.currentStampAnnotation.signatureName:n.id,r={stampAnnotationType:"image",author:n.author,modifiedDate:n.modifiedDate,subject:n.Subject,note:"",strokeColor:"",fillColor:"",opacity:o,rotateAngle:"0",creationDate:n.currentDate,pageNumber:e,icon:"",stampAnnotationPath:n.data,randomId:n.id,bounds:{left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height},stampFillcolor:"",isDynamicStamp:!1,annotName:n.annotName,comments:[],review:{state:"",stateModel:"",author:n.author,modifiedDate:n.modifiedDate},shapeAnnotationType:"stamp",annotationSelectorSettings:d,annotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),customData:this.pdfViewer.annotationModule.getData("image"),isPrint:n.isPrint,allowedInteractions:A,isCommentLock:!1,isMaskedImage:n.isMaskedImage,customStampName:this.customStampName,template:n?n.template:null,templateSize:n?n.templateSize:0}):r=n.stampAnnotationType?{stampAnnotationType:n.stampAnnotationType,author:n.author,modifiedDate:n.modifiedDate,subject:n.Subject,note:n.Note,strokeColor:n.strokeColor,fillColor:n.fillColor,opacity:n.opacity,stampFillcolor:n.stampFillcolor,rotateAngle:n.rotateAngle,creationDate:n.creationDate,pageNumber:n.pageNumber,icon:n.icon,stampAnnotationPath:n.stampAnnotationPath,randomId:n.randomId,isDynamicStamp:n.isDynamicStamp,dynamicText:n.dynamicText,bounds:{left:n.bounds.left,top:n.bounds.top,width:n.bounds.width,height:n.bounds.height},annotName:n.annotName,comments:n.Comments,review:{state:n.State,stateModel:n.StateModel,author:n.author,modifiedDate:n.ModifiedDate},shapeAnnotationType:"stamp",annotationSelectorSettings:d,annotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings),customData:this.pdfViewer.annotationModule.getData(n.stampAnnotationType),isPrint:n.isPrint,allowedInteractions:A,isCommentLock:n.isCommentLock,isMaskedImage:n.isMaskedImage,customStampName:"",template:n?n.template:null,templateSize:n?n.templateSize:0}:{stampAnnotationType:n.shapeAnnotationType,author:n.author,modifiedDate:n.modifiedDate,subject:n.subject,note:n.notes,strokeColor:n.strokeColor,fillColor:n.fillColor,opacity:n.opacity,stampFillcolor:n.stampFillColor,rotateAngle:n.rotateAngle,creationDate:n.creationDate,pageNumber:n.pageIndex,icon:n.icon,stampAnnotationPath:n.data,randomId:n.id,isDynamicStamp:n.isDynamicStamp,dynamicText:n.dynamicText,shapeAnnotationType:"stamp",bounds:{left:n.bounds.x,top:n.bounds.y,width:n.bounds.width,height:n.bounds.height},annotName:n.annotName,comments:n.Comments,review:{state:n.State,stateModel:n.StateModel,author:n.author,modifiedDate:n.ModifiedDate},annotationSelectorSettings:d,annotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings),customData:this.pdfViewer.annotationModule.getData(n.shapeAnnotationType),isPrint:n.isPrint,allowedInteractions:A,isCommentLock:n.isCommentLock,isMaskedImage:n.isMaskedImage,customStampName:"",template:n?n.template:null,templateSize:n?n.templateSize:0},o){if("Image"!==n.shapeAnnotationType){var h=i.processPathData(n.data),p=i.splitArrayCollection(h);r.stampAnnotationPath=p}if(n.creationDate=(new Date).toLocaleDateString(),!t.Browser.isDevice&&n.wrapper&&(r.bounds.width=n.wrapper.actualSize.width,r.bounds.height=n.wrapper.actualSize.height,r.bounds.left=n.wrapper.bounds.x,r.bounds.top=n.wrapper.bounds.y),r.opacity=o,this.pdfViewerBase.stampAdded){this.storeStampInSession(e,r),a=!0;var c={left:r.bounds.left,top:r.bounds.top,width:r.bounds.width,height:r.bounds.height};this.pdfViewerBase.updateDocumentEditedProperty(!0);var g={opacity:r.opacity,author:r.author,modifiedDate:r.modifiedDate};"Image"===n.shapeAnnotationType?(this.pdfViewerBase.stampAdded=!1,this.pdfViewer.fireAnnotationAdd(r.pageNumber,r.annotName,"Image",c,g,null,null,null,null,null,this.customStampName),this.customStampName=null):this.pdfViewer.fireAnnotationAdd(r.pageNumber,r.annotName,"Stamp",c,g),this.pdfViewer.annotation.addAction(e,null,n,"Addition","",n,r)}}a||this.storeStampInSession(e,r)},n.prototype.renderCustomImage=function(e,i,n,o,r,a,s,l,d,A,h,p,c,g){var u,f,m,w,C=null,B=this.pdfViewer.customStampSettings.left>0&&this.pdfViewer.customStampSettings.top>0,S=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),y=this.pdfViewer.stampSettings.allowedInteractions?this.pdfViewer.stampSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,I=!(t.isNullOrUndefined(A)||!A.template);t.Browser.isDevice&&(this.pdfViewerBase.customStampCount+=1),d?(u=A.AnnotName,f=A.Author,m=A.Subject,w=A.IsCommentLock,S=A.AnnotationSettings?A.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),y=A.AllowedInteractions?A.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(A),null===f&&(f="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.customStampSettings.author?this.pdfViewer.customStampSettings.author:"Guest"),null===m&&(m=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.customStampSettings.subject?this.pdfViewer.customStampSettings.subject:"":this.pdfViewer.annotationSettings.subject),A.IsLocked&&(A.AnnotationSettings?A.AnnotationSettings.isLock=A.IsLocked:S.isLock=A.IsLocked)):(u=this.pdfViewer.annotation.createGUID(),f="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.customStampSettings.author?this.pdfViewer.customStampSettings.author:"Guest",m=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.customStampSettings.subject?this.pdfViewer.customStampSettings.subject:"":this.pdfViewer.annotationSettings.subject,w=!1),r||(r=A.ModifiedDate?A.ModifiedDate:(new Date).toLocaleString());var E=A?A.annotationAddMode:"UI Drawn Annotation ",v=!0;d?"Imported Annotation"===A.annotationAddMode?v=A.IsPrint:A.AnnotationSettings&&(v=A.AnnotationSettings.isPrint):v=this.pdfViewer.customStampSettings.isPrint;var b;t.isNullOrUndefined(A)||t.isNullOrUndefined(A.AnnotationSelectorSettings)?(b={resizerFillColor:this.pdfViewer.annotationSelectorSettings.resizerFillColor,resizerBorderColor:this.pdfViewer.annotationSelectorSettings.resizerBorderColor,selectionBorderColor:this.pdfViewer.annotationSelectorSettings.selectionBorderColor,resizerSize:this.pdfViewer.annotationSelectorSettings.resizerSize,resizerShape:this.pdfViewer.annotationSelectorSettings.resizerShape,resizerCursorType:this.pdfViewer.annotationSelectorSettings.resizerCursorType,selectionBorderThickness:this.pdfViewer.annotationSelectorSettings.selectionBorderThickness,selectorLineDashArray:this.pdfViewer.annotationSelectorSettings.selectorLineDashArray},this.updateStampSelectorSettings(b)):b="string"==typeof A.AnnotationSelectorSettings?JSON.parse(A.AnnotationSelectorSettings):A.AnnotationSelectorSettings;var V={id:"stamp"+this.pdfViewerBase.customStampCount,allowedInteractions:y,bounds:{x:e.left,y:e.top,width:e.width,height:e.height},pageIndex:i,data:n.src,modifiedDate:r,shapeAnnotationType:"Image",opacity:s,rotateAngle:a,annotName:u,comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:f},annotationSettings:S,annotationSelectorSettings:b,annotationAddMode:E,signatureName:h,isPrint:v,isCommentLock:w,subject:m,template:I?A.template:null,templateSize:A?A.templateSize:0};if(this.currentStampAnnotation=V,d||B){if(!A){this.isStampAnnotSelected=!1,(A=V).Note="",A.State="",A.StateModel="";var D=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("stamp",i+1);D&&(document.getElementById(D).id=u)}if(C={stampAnnotationType:"image",author:f,allowedInteractions:y,modifiedDate:r,subject:m,note:A.Note,strokeColor:"",fillColor:"",opacity:s,rotateAngle:"0",creationDate:o,pageNumber:i,icon:"",stampAnnotationPath:n.src,randomId:"stamp"+this.pdfViewerBase.customStampCount,bounds:{left:e.left,top:e.top,width:e.width,height:e.height},stampFillcolor:"",isDynamicStamp:!1,annotName:u,comments:this.pdfViewer.annotationModule.getAnnotationComments(A.Comments,A,A.Author),review:{state:A.State,stateModel:A.StateModel,author:f,modifiedDate:r},shapeAnnotationType:"stamp",annotationSelectorSettings:b,annotationSettings:S,customData:this.pdfViewer.annotation.getCustomData(A),isPrint:v,isCommentLock:w,isMaskedImage:A.IsMaskedImage,customStampName:A.CustomStampName,template:I?A.template:null,templateSize:A?A.templateSize:0},this.storeStampInSession(i,C,p,c),V.comments=this.pdfViewer.annotationModule.getAnnotationComments(A.Comments,A,A.Author),V.review={state:A.State,stateModel:A.StateModel,author:f,modifiedDate:r},this.pdfViewer.add(V),t.isNullOrUndefined(c)||this.adjustZIndexOrder(V,c),this.isAddAnnotationProgramatically){var x={opacity:V.opacity,borderColor:V.strokeColor,borderWidth:V.thickness,author:A.author,subject:A.subject,modifiedDate:A.modifiedDate,fillColor:V.fillColor,fontSize:V.fontSize,width:V.bounds.width,height:V.bounds.height,fontColor:V.fontColor,fontFamily:V.fontFamily,defaultText:V.dynamicText,fontStyle:V.font,textAlignment:V.textAlign};this.customStampName=this.customStampName?this.customStampName:this.currentStampAnnotation.signatureName?this.currentStampAnnotation.signatureName:A.id,this.pdfViewer.fireAnnotationAdd(V.pageIndex,V.annotName,"Image",V.bounds,x,null,null,null,null,null,this.customStampName),this.customStampName=null}t.isNullOrUndefined(l)&&(l=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i)),(g||t.isNullOrUndefined(g))&&this.pdfViewer.renderDrawing(l,i),this.pdfViewerBase.stampAdded&&this.pdfViewer.annotation.addAction(i,null,V,"Addition","",V,V)}t.Browser.isDevice||(this.pdfViewerBase.customStampCount+=1)},n.prototype.adjustZIndexOrder=function(e,i){if(!t.isNullOrUndefined(this.pdfViewer.zIndexTable[e.pageIndex])){var n=this.pdfViewer.zIndexTable[e.pageIndex].objects;if(n&&n.length>0){var o=n[n.length-1];n.splice(n.length-1),n.splice(i,0,o)}}},n.prototype.retrieveDynamicStampAnnotation=function(e){var t;if(e){switch(e.trim()){case"Revised":t={iconName:"Revised",pathdata:"M19.68,21.22a3.94,3.94,0,0,1-1.1-1.9L16,11.87l-.21-.64a20.77,20.77,0,0,0,2.11-.58,7.24,7.24,0,0,0,2-1.09,5.65,5.65,0,0,0,1.72-2.12,5.4,5.4,0,0,0,.52-2.2A4.15,4.15,0,0,0,19.1,1.05a14.58,14.58,0,0,0-4.72-.6H5.31v.86a7,7,0,0,1,2,.33c.3.14.45.48.45,1a6.1,6.1,0,0,1-.14,1.08l-.21.8L3.31,19.32a3.35,3.35,0,0,1-.94,1.78,3.58,3.58,0,0,1-1.74.57v.86h9.83v-.86a6.22,6.22,0,0,1-2-.35c-.29-.15-.43-.52-.43-1.11,0-.1,0-.21,0-.31a2.36,2.36,0,0,1,0-.28l.28-1.14,1.95-6.86h.93l3.56,10.91h6.25v-.88A3.05,3.05,0,0,1,19.68,21.22ZM13.29,10.31a14,14,0,0,1-2.63.23l2-7.56a2.67,2.67,0,0,1,.52-1.17,1.4,1.4,0,0,1,1-.3,2.74,2.74,0,0,1,2.33.91,3.72,3.72,0,0,1,.69,2.3,6.4,6.4,0,0,1-.49,2.52,6.72,6.72,0,0,1-1.06,1.82A4.11,4.11,0,0,1,13.29,10.31ZM26,.45H43.74l-1.4,6.27-.88-.15a6,
106,0,0,0-.78-3.4c-.84-1.12-2.54-1.69-5.11-1.69a2.9,2.9,0,0,0-1.68.32A2.34,2.34,0,0,0,33.26,3l-1.95,7.33a13.55,13.55,0,0,0,4.48-.56c.68-.32,1.44-1.3,2.27-2.92l.91.11-2.44,9-.91-.16a7.27,7.27,0,0,0,.09-.82q0-.35,0-.57a2.69,2.69,0,0,0-1-2.4A7.57,7.57,0,0,0,31,11.38l-2.17,8c0,.2-.09.38-.12.57a2.62,2.62,0,0,0,0,.43.92.92,0,0,0,.35.74,2.54,2.54,0,0,0,1.49.29,13.84,13.84,0,0,0,5.11-.84A9.85,9.85,0,0,0,40.73,16l.81.14-1.95,6.42h-18v-.9a3.43,3.43,0,0,0,1.42-.53A3.42,3.42,0,0,0,24,19.32L28,4.51c.1-.37.18-.72.25-1a4.23,4.23,0,0,0,.09-.78c0-.56-.15-.91-.44-1.06a6.85,6.85,0,0,0-2-.34ZM63.4,3.37,51,23.15H49.9L47.39,6.34a17.25,17.25,0,0,0-.93-4.24c-.25-.43-.93-.7-2.05-.79V.45h9.86v.86a5.47,5.47,0,0,0-1.72.19,1.14,1.14,0,0,0-.81,1.16,3,3,0,0,0,0,.31l0,.32L53.5,16.43l6.24-9.85c.49-.79.94-1.57,1.33-2.36a4.45,4.45,0,0,0,.6-1.85.88.88,0,0,0-.61-.9,6.11,6.11,0,0,0-1.52-.16V.45h6.34v.86a3.88,3.88,0,0,0-1.16.5A5.73,5.73,0,0,0,63.4,3.37ZM70.08,20c0,.11,0,.22,0,.31,0,.56.15.91.45,1.06a6.39,6.39,0,0,0,1.95.35v.86H62.63v-.86a3.58,3.58,0,0,0,1.74-.57,3.35,3.35,0,0,0,.94-1.78l4-14.81q.18-.63.27-1a3.78,3.78,0,0,0,.09-.75c0-.56-.16-.91-.47-1.06a7,7,0,0,0-2-.34V.45h9.83v.86a3.61,3.61,0,0,0-1.75.58,3.37,3.37,0,0,0-.91,1.78L70.4,18.48l-.26,1.14Zm19.26-7.23a6.37,6.37,0,0,1,1.07,3.62,6.58,6.58,0,0,1-2.06,4.71,7.54,7.54,0,0,1-5.65,2.1A10.15,10.15,0,0,1,80.89,23a11.42,11.42,0,0,1-1.8-.49l-.83-.3-.58-.2a2,2,0,0,0-.38,0,1,1,0,0,0-.78.26,3.89,3.89,0,0,0-.52.92H75l1.19-7.4,1,.07a14.63,14.63,0,0,0,.28,2.3,5.27,5.27,0,0,0,2.79,3.44,4.73,4.73,0,0,0,2.06.44,3.85,3.85,0,0,0,3.07-1.26,4.39,4.39,0,0,0,1.09-2.94q0-2.09-4.05-5.25c-2.7-2.22-4-4.26-4-6.14a6.31,6.31,0,0,1,1.78-4.53,6.51,6.51,0,0,1,5-1.87,9.67,9.67,0,0,1,1.82.18A6.54,6.54,0,0,1,88,.45l.84.28.56.13a2.59,2.59,0,0,0,.52.06,1.4,1.4,0,0,0,.88-.24,2.2,2.2,0,0,0,.53-.6h1L91,6.69l-.85-.12L90,5.49a6,6,0,0,0-1-2.62,3.82,3.82,0,0,0-3.38-1.73A3,3,0,0,0,82.9,2.53a3.6,3.6,0,0,0-.58,2,3.44,3.44,0,0,0,.59,2,6,6,0,0,0,1,1l2.85,2.33A12.75,12.75,0,0,1,89.34,12.72ZM110.27,16l.81.14-2,6.42H90.85v-.86a3.66,3.66,0,0,0,1.74-.57,3.42,3.42,0,0,0,.93-1.78l4-14.81c.1-.37.18-.72.25-1a4.23,4.23,0,0,0,.09-.78c0-.56-.14-.91-.44-1.06a6.85,6.85,0,0,0-2-.34V.45h17.77l-1.4,6.27L111,6.57a6,6,0,0,0-.78-3.4c-.84-1.12-2.54-1.69-5.1-1.69a2.92,2.92,0,0,0-1.69.32A2.34,2.34,0,0,0,102.8,3l-2,7.33a13.55,13.55,0,0,0,4.48-.56c.69-.32,1.44-1.3,2.27-2.92l.92.11-2.45,9-.91-.16a7.27,7.27,0,0,0,.09-.82q0-.35,0-.57a2.69,2.69,0,0,0-1-2.4,7.57,7.57,0,0,0-3.79-.64l-2.17,8c0,.2-.09.38-.12.57a2.62,2.62,0,0,0,0,.43.92.92,0,0,0,.35.74,2.54,2.54,0,0,0,1.49.29,13.84,13.84,0,0,0,5.11-.84A9.81,9.81,0,0,0,110.27,16Zm22.65-13Q130.39.45,125.52.45h-9.58v.86a7,7,0,0,1,2,.34c.31.15.47.5.47,1.06a3.61,3.61,0,0,1-.09.74c-.06.29-.15.64-.26,1.06L114,19.31a3.18,3.18,0,0,1-1.15,1.91,3.57,3.57,0,0,1-1.53.45v.86h9.47a14.87,14.87,0,0,0,10.95-4.14,12,12,0,0,0,3.75-8.77A8.94,8.94,0,0,0,132.92,2.94ZM129,15.36q-2.62,6.06-8.52,6.05a2.46,2.46,0,0,1-1.42-.29,1.05,1.05,0,0,1-.4-.93,2.24,2.24,0,0,1,0-.34,2.65,2.65,0,0,1,.08-.43l4.55-16.67a2,2,0,0,1,.54-.92,2.2,2.2,0,0,1,1.44-.35,4.74,4.74,0,0,1,4.47,2.22,7.9,7.9,0,0,1,.83,3.9A19.32,19.32,0,0,1,129,15.36Z",opacity:1,strokeColor:"",fillColor:"#192760",width:127.47,height:55.84601,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Reviewed":t={iconName:"Reviewed",pathdata:"M17.37,18.25a3.47,3.47,0,0,1-1-1.67L14.17,10c0-.
1007-.1-.26-.19-.56A14.71,14.71,0,0,0,15.83,9a6.08,6.08,0,0,0,1.76-1A4.92,4.92,0,0,0,19.1,6.14a4.71,4.71,0,0,0,.46-1.93A3.65,3.65,0,0,0,16.86.52,12.83,12.83,0,0,0,12.72,0h-8V.75a6.62,6.62,0,0,1,1.72.3c.26.12.39.41.39.88a4.56,4.56,0,0,1-.13.94c0,.2-.1.44-.17.7L3,16.58a2.87,2.87,0,0,1-.82,1.56,3.15,3.15,0,0,1-1.53.51v.75H9.27v-.75a5.88,5.88,0,0,1-1.74-.31c-.25-.13-.37-.46-.37-1a2.53,2.53,0,0,1,0-.28,1.44,1.44,0,0,1,0-.24l.24-1,1.71-6H10l3.13,9.59h5.49v-.77A2.71,2.71,0,0,1,17.37,18.25ZM11.75,8.67a12.06,12.06,0,0,1-2.3.19L11.2,2.22a2.2,2.2,0,0,1,.46-1,1.19,1.19,0,0,1,.87-.27,2.41,2.41,0,0,1,2.05.8,3.29,3.29,0,0,1,.6,2A5.63,5.63,0,0,1,14.75,6a6.06,6.06,0,0,1-.93,1.59A3.65,3.65,0,0,1,11.75,8.67ZM22.9,0H38.52L37.29,5.51l-.78-.13a5.34,5.34,0,0,0-.68-3c-.74-1-2.24-1.48-4.49-1.48a2.68,2.68,0,0,0-1.49.27,2.09,2.09,0,0,0-.54,1L27.59,8.67a12.08,12.08,0,0,0,3.94-.5,5.69,5.69,0,0,0,2-2.56l.81.1-2.16,7.93-.79-.15c0-.27.06-.51.08-.71s0-.37,0-.5a2.34,2.34,0,0,0-.85-2.11A6.61,6.61,0,0,0,27.3,9.6l-1.91,7.08a4.91,4.91,0,0,0-.1.5,2,2,0,0,0,0,.38.83.83,0,0,0,.31.65,2.29,2.29,0,0,0,1.31.25,12.21,12.21,0,0,0,4.49-.73,8.69,8.69,0,0,0,4.51-4.09l.71.12L34.86,19.4H19.05v-.79a2.88,2.88,0,0,0,1.28-.47,2.94,2.94,0,0,0,.82-1.56l3.56-13q.13-.49.21-.9A3.26,3.26,0,0,0,25,2q0-.73-.39-.93A6.44,6.44,0,0,0,22.9.75ZM55.79,2.57,44.86,20h-.93L41.72,5.17a16.05,16.05,0,0,0-.81-3.73c-.22-.37-.82-.6-1.81-.69V0h8.67V.75a5,5,0,0,0-1.52.17,1,1,0,0,0-.7,1,2.53,2.53,0,0,0,0,.28l0,.27L47.09,14l5.48-8.66C53,4.69,53.4,4,53.75,3.32a4,4,0,0,0,.52-1.63.78.78,0,0,0-.54-.8A5.88,5.88,0,0,0,52.4.75V0H58V.75a3.55,3.55,0,0,0-1,.44A5.18,5.18,0,0,0,55.79,2.57ZM62,18.34a6,6,0,0,0,1.71.31v.75H55.12v-.75a3.15,3.15,0,0,0,1.53-.51,2.94,2.94,0,0,0,.82-1.56L61,3.57c.1-.37.18-.68.23-.93A2.81,2.81,0,0,0,61.34,2c0-.49-.13-.8-.41-.93a6.61,6.61,0,0,0-1.71-.3V0h8.63V.75a3.17,3.17,0,0,0-1.53.51,3,3,0,0,0-.8,1.57l-3.58,13-.22,1a2.74,2.74,0,0,0,0,.28,1.41,1.41,0,0,0,0,.28C61.64,17.9,61.78,18.21,62,18.34ZM69.13,0H84.75L83.52,5.51l-.78-.13a5.34,5.34,0,0,0-.68-3c-.74-1-2.24-1.48-4.49-1.48a2.68,2.68,0,0,0-1.49.27,2.09,2.09,0,0,0-.54,1L73.82,8.67a12.08,12.08,0,0,0,3.94-.5,5.69,5.69,0,0,0,2-2.56l.81.1L78.4,13.64l-.79-.15c0-.27.07-.51.08-.71s0-.37,0-.5a2.34,2.34,0,0,0-.85-2.11,6.61,6.61,0,0,0-3.33-.57l-1.91,7.08a4.91,4.91,0,0,0-.1.5,2,2,0,0,0,0,.38.83.83,0,0,0,.31.65,2.29,2.29,0,0,0,1.31.25,12.21,12.21,0,0,0,4.49-.73,8.69,8.69,0,0,0,4.51-4.09l.71.12L81.1,19.4H65v-.75a3.15,3.15,0,0,0,1.53-.51,2.94,2.94,0,0,0,.82-1.56l3.56-13q.14-.49.21-.9A3.26,3.26,0,0,0,71.24,2q0-.73-.39-.93a6.44,6.44,0,0,0-1.72-.3Zm39.15,2.83L100,20h-.84L97.41,5.85,90.67,20h-.84L87.58,3.13A3.83,3.83,0,0,0,87,1.23,2.84,2.84,0,0,0,85.33.71V0h8.06V.75A2.55,2.55,0,0,0,92.27,1a1.33,1.33,0,0,0-.66,1.31c0,.06,0,.13,0,.19s0,.15,0,.26l1.15,10.16,4.32-9a1,1,0,0,0,0-.27,3.33,3.33,0,0,0-.64-2.38A2.5,2.5,0,0,0,95.06.71V0h7.78V.71a2.9,2.9,0,0,0-1.4.34c-.27.19-.41.6-.41,1.24,0,.13,0,.32,0,.55,0,.4.08.88.14,1.47l1,8.47,4.51-9.42a7.12,7.12,0,0,0,.29-.74,2.48,2.48,0,0,0,.14-.79.9.9,0,0,0-.48-.93,3.25,3.25,0,0,0-1.34-.19V0h5.41V.71a2.34,2.34,0,0,0-1.1.35A4.56,4.56,0,0,0,108.28,2.83Zm16.45,10.81.71.12-1.71,5.64H107.66v-.75a3.15,3.15,0,0,0,1.53-.51,2.87,2.87,0,0,0,.82-1.56l3.57-13q.12-.49.21-.9a3.17,3.17,0,0,0,.08-.69q0-.73-.39-.93a6.44,6.44,0,0,0-1.72-.3V0h15.62l-1.23,5.51-.78-.13a5.26,5.26,0,0,0-.68-3C124,1.4,122.46.91,120.2.91a2.64,2.64,0,0,0-1.48.27,2.09,2.09,0,0,0-.55,1l-1.72,6.45a12,12,0,0,0,3.94-.5,5.62,5.62,0,0,0,2-2.56l.81.1L121,13.64l-.79-.15c0-.27.06-.51.07-.71s0-.37,0-.5a2.34,2.34,0,0,0-.86-2.11,6.57,6.57,0,0,0-3.32-.57l-1.91,7.08a5,5,0,0,0-.11.5,3.14,3.14,0,0,0,0,.38.8.8,0,0,0,.31.65,2.25,2.25,0,0,0,1.3.25,12.26,12.26,0,0,0,4.5-.73A8.67,8.67,0,0,0,124.73,13.64ZM144.64,2.19Q142.41,0,138.14,0h-8.42V.75a6.61,6.61,0,0,1,1.71.3c.28.13.41.44.41.93a2.81,2.81,0,0,1-.08.66c0,.25-.12.56-.23.93l-3.56,13a2.78,2.78,0,0,1-1,1.68,3.44,3.44,0,0,1-1.35.4v.75h8.32a13.06,13.06,0,0,0,9.63-3.64,10.49,10.49,0,0,0,3.3-7.7A7.87,7.87,0,0,0,144.64,2.19ZM141.2,13.1q-2.31,5.32-7.48,5.32a2.27,2.27,0,0,1-1.26-.25,1,1,0,0,1-.34-.82,1.62,1.62,0,0,1,0-.3,2.16,2.16,0,0,1,.08-.38l4-14.65a1.63,1.63,0,0,1,.47-.81A2,2,0,0,1,138,.91a4.16,4.16,0,0,1,3.93,1.95,7,7,0,0,1,.72,3.42A16.82,16.82,0,0,1,141.2,13.1Z",opacity:1,strokeColor:"",fillColor:"#192760",width:127.70402,height:55.84601,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Received":t={iconName:"Received",pathdata:"M18.17,8.76a5,5,0,0,0,1.57-1.93,5,5,0,0,0,.47-2A3.76,3.76,0,0,0,17.42,1,13,13,0,0,0,13.13.48H4.89v.78a6.49,6.49,0,0,1,1.77.31c.27.12.41.43.41.91a5.87,5.87,0,0,1-.13,1c-.05.2-.12.44-.19.72L3.06,17.64a3,3,0,0,1-.84,1.61,3.36,3.36,0,0,1-1.59.53v.77H9.57v-.77a6.17,6.17,0,0,1-1.8-.32c-.26-.14-.39-.48-.39-1a2.46,2.46,0,0,1,0-.28,1.78,1.78,0,0,1,0-.26l.25-1,1.78-6.25h.84l3.24,9.92h5.66v-.8A2.76,2.76,0,0,1,18,19.36a3.57,3.57,0,0,1-1-1.72l-2.31-6.78c0-.07-.09-.27-.19-.58.87-.2,1.51-.38,1.92-.52A6.56,6.56,0,0,0,18.17,8.76Zm-2.93-2.1a6.19,6.19,0,0,1-1,1.65,3.85,3.85,0,0,1-2.14,1.14,12.92,12.92,0,0,1-2.39.2l1.81-6.87A2.5,2.5,0,0,1,12,1.72a1.27,1.27,0,0,1,.9-.27,2.5,2.5,0,0,1,2.12.83,3.35,3.35,0,0,1,.62,2.09A5.81,5.81,0,0,1,15.24,6.66ZM30.3,2.78,28.52,9.45a12.53,12.53,0,0,0,4.08-.51,5.91,5.91,0,0,0,2-2.66l.84.11-2.23,8.2-.82-.15c0-.28.07-.53.08-.74a5.17,5.17,0,0,0,0-.52A2.43,2.43,0,0,0,31.66,11a6.87,6.87,0,0,0-3.44-.58l-2,7.32a3.61,3.61,0,0,0-.11.51,2.31,2.31,0,0,0,0,.4.83.83,0,0,0,.32.67,2.32,2.32,0,0,0,1.35.26,12.58,12.58,0,0,0,4.65-.76,9,9,0,0,0,4.67-4.23l.73.13-1.77,5.83H19.8v-.83A2.83,2.83,0,0,0,21,19.25a3.09,3.09,0,0,0,.85-1.
1061L25.54,4.17c.09-.34.16-.65.22-.93a3.35,3.35,0,0,0,.09-.71c0-.5-.13-.82-.4-1a6.34,6.34,0,0,0-1.78-.31V.48H39.82l-1.27,5.7-.81-.13A5.44,5.44,0,0,0,37,3Q35.9,1.42,32.4,1.42a2.69,2.69,0,0,0-1.54.29A2.08,2.08,0,0,0,30.3,2.78ZM56.56,6.1c0-.07,0-.18,0-.33a4.89,4.89,0,0,0-1.12-3.53,3.75,3.75,0,0,0-2.82-1.16c-2.33,0-4.35,1.55-6.07,4.63a17.09,17.09,0,0,0-2.31,8.43c0,2.08.47,3.5,1.43,4.27a4.89,4.89,0,0,0,3.11,1.15,6.84,6.84,0,0,0,4.14-1.45A11.51,11.51,0,0,0,55,16l.91.66A10.08,10.08,0,0,1,52.26,20a9.33,9.33,0,0,1-4.34,1.11A8.56,8.56,0,0,1,42,19a7.25,7.25,0,0,1-2.35-5.67A13.53,13.53,0,0,1,43.22,4a11.19,11.19,0,0,1,8.56-4A12.34,12.34,0,0,1,55,.44,13.17,13.17,0,0,0,56.9.88a1,1,0,0,0,.71-.24A2.94,2.94,0,0,0,58.06,0H59L57.45,7l-.94-.18C56.54,6.42,56.55,6.17,56.56,6.1Zm18,8.49.74.13-1.78,5.83H56.87v-.77a3.31,3.31,0,0,0,1.58-.53,3.09,3.09,0,0,0,.85-1.61L63,4.17c.09-.34.16-.65.22-.93a3.35,3.35,0,0,0,.09-.71c0-.5-.14-.82-.4-1a6.34,6.34,0,0,0-1.78-.31V.48H77.26L76,6.18l-.81-.13A5.44,5.44,0,0,0,74.48,3q-1.14-1.54-4.64-1.54a2.69,2.69,0,0,0-1.54.29,2.08,2.08,0,0,0-.56,1.07L66,9.45A12.53,12.53,0,0,0,70,8.94a5.91,5.91,0,0,0,2-2.66l.84.11-2.23,8.2-.82-.15c0-.28.07-.53.08-.74a5.17,5.17,0,0,0,0-.52A2.43,2.43,0,0,0,69.1,11a6.87,6.87,0,0,0-3.44-.58l-2,7.32a3.61,3.61,0,0,0-.11.51,2.31,2.31,0,0,0,0,.4.83.83,0,0,0,.32.67,2.32,2.32,0,0,0,1.35.26,12.58,12.58,0,0,0,4.65-.76A8.91,8.91,0,0,0,74.52,14.59Zm31-11.45-11.31,18h-1L91,5.83A16.56,16.56,0,0,0,90.12,2c-.2-.34-.71-.56-1.51-.67a3,3,0,0,0-1.31.48,3.08,3.08,0,0,0-.82,1.62l-3.7,13.47-.24,1c0,.1,0,.2-.05.3s0,.2,0,.28c0,.51.14.83.41,1a6.21,6.21,0,0,0,1.77.32v.77H75.72v-.77a3.31,3.31,0,0,0,1.58-.53,3.09,3.09,0,0,0,.85-1.61L81.83,4.17c.11-.38.19-.7.25-.95a3.75,3.75,0,0,0,.08-.69c0-.5-.15-.82-.43-1A6.49,6.49,0,0,0,80,1.26V.48H97.22v.78a4.92,4.92,0,0,0-1.57.18,1,1,0,0,0-.73,1.05,2.81,2.81,0,0,0,0,.29l0,.28,1.56,12,5.67-9a24.21,24.21,0,0,0,1.21-2.14,4.07,4.07,0,0,0,.54-1.68.79.79,0,0,0-.55-.82A5.69,5.69,0,0,0,102,1.26V.48h5.76v.78a3.5,3.5,0,0,0-1,.46A5.16,5.16,0,0,0,105.52,3.14Zm16.83,11.45.73.13-1.77,5.83H104.69v-.77a3.31,3.31,0,0,0,1.58-.53,3,3,0,0,0,.85-1.61l3.69-13.47c.08-.34.16-.65.22-.93a4,4,0,0,0,.08-.71c0-.5-.13-.82-.4-1a6.34,6.34,0,0,0-1.78-.31V.48h16.16l-1.28,5.7-.8-.13A5.43,5.43,0,0,0,122.3,3q-1.14-1.54-4.64-1.54a2.67,2.67,0,0,0-1.53.29,2.16,2.16,0,0,0-.57,1.07l-1.78,6.67a12.53,12.53,0,0,0,4.08-.51,5.91,5.91,0,0,0,2.06-2.66l.83.11-2.22,8.2-.82-.15c0-.28.06-.53.08-.74s0-.38,0-.52a2.45,2.45,0,0,0-.88-2.18,6.9,6.9,0,0,0-3.44-.58l-2,7.32c-.05.18-.08.35-.11.51a3.58,3.58,0,0,0,0,.4.81.81,0,0,0,.32.67,2.28,2.28,0,0,0,1.35.26,12.62,12.62,0,0,0,4.65-.76A9,9,0,0,0,122.35,14.59ZM142.94,2.75Q140.63.48,136.21.48h-8.7v.78a6.66,6.66,0,0,1,1.77.31q.42.21.42,1a2.91,2.91,0,0,1-.08.68q-.08.39-.24,1L125.7,17.62a2.93,2.93,0,0,1-1,1.75,3.54,3.54,0,0,1-1.39.41v.77h8.61a13.5,13.5,0,0,0,10-3.76,10.84,10.84,0,0,0,3.41-8A8.14,8.14,0,0,0,142.94,2.75ZM139.38,14q-2.38,5.51-7.74,5.5a2.35,2.35,0,0,1-1.29-.26,1,1,0,0,1-.36-.85,1.78,1.78,0,0,1,0-.31,2.08,2.08,0,0,1,.08-.39l4.13-15.15a1.76,1.76,0,0,1,.49-.84A2,2,0,0,1,136,1.42a4.32,4.32,0,0,1,4.07,2A7.17,7.17,0,0,1,140.83,7,17.49,17.49,0,0,1,139.38,14Z",opacity:1,strokeColor:"",fillColor:"#192760",width:127.70402,height:55.84601,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Approved":t={iconName:"Approved",pathdata:"M19,20.22H10.55v-.71a4.26,4.26,0,0,0,1.79-.41,1.37,1.37,0,0,0,.53-1.29c0-.22,0-.75-.16-1.58,0-.17-.11-.89-.29-2.15H6.06l-1.72,3a4,4,0,0,0-.31.66,2,2,0,0,0-.14.69c0,.41.12.67.37.78a5.42,5.42,0,0,0,1.53.3v.71H0v-.71A4,4,0,0,0,1.21,19a5.68,5.68,0,0,0,1.28-1.56L13.45.07h.76L17,17a4.35,4.35,0,0,0,.7,2.08,2.4,2.4,0,0,0,1.31.44Zm-6.83-7.31L11.13,5.73,6.76,12.91Zm7.18,6.52a3,3,0,0,0,1.33-.49,3,3,0,0,0,.84-1.59L25.19,4.11c.07-.3.14-.6.2-.9a3.14,3.14,0,0,0,.1-.72,1,1,0,0,0-.58-1,5.68,5.68,0,0,0-1.57-.23V.48h8.47a9.68,9.68,0,0,1,3.57.57,4,4,0,0,1,2.71,4,4.93,4.93,0,0,1-2.2,4.22,9.53,9.53,0,0,1-5.69,1.58l-.85,0-1.71-.11L26,16.6l-.25,1a1,1,0,0,0-.05.3,2.83,2.83,0,0,0,0,.29c0,.5.14.81.4.94a6.31,6.31,0,0,0,1.76.31v.76H19.39Zm8.52-9.66.54.06h.48a5.81,5.81,0,0,0,2.3-.36,3.47,3.47,0,0,0,1.4-1.18,6.24,6.24,0,0,0,.86-2,8.94,8.94,0,0,0,.3-2,3.29,3.29,0,0,0-.58-2,2.3,2.3,0,0,0-2-.79,1.23,1.23,0,0,0-.93.28,2.71,2.71,0,0,0-.46,1Zm8,9.69a3.19,3.19,0,0,0,1.55-.52,3,3,0,0,0,.84-1.59L42,4.11c.07-.3.14-.6.2-.9a3.14,3.14,0,0,0,.1-.72,1,1,0,0,0-.58-1,5.68,5.68,0,0,0-1.57-.23V.48h8.47a9.68,9.68,0,0,1,3.57.57,4,4,0,0,1,2.71,4,4.93,4.93,0,0,1-2.2,4.22A9.53,9.53,0,0,1,47,10.87l-.85,0-1.71-.11L42.79,16.6l-.25,1a1.45,1.45,0,0,0,0,.3,2.83,2.83,0,0,0,0,.29c0,.5.14.81.4.94a6.31,6.31,0,0,0,1.76.31v.76h-8.7Zm8.74-9.69.54.06h.48A5.81,5.81,0,0,0,48,9.48a3.41,3.41,0,0,0,1.4-1.18,6.24,6.24,0,0,0,.86-2,9,9,0,0,0,.31-2,3.29,3.29,0,0,0-.59-2,2.3,2.3,0,0,0-2-.79,1.23,1.23,0,0,0-.93.28,2.88,2.88,0,0,0-.46,1Zm7.95,9.69a3.27,3.27,0,0,0,1.56-.52A3.06,3.06,0,0,0,55,17.35L58.64,4.11l.18-.71a4.72,4.72,0,0,0,.13-1c0-.47-.13-.77-.4-.9a6.74,6.74,0,0,0-1.74-.3V.48h8.11A13,13,0,0,1,69.14,1a3.7,3.7,0,0,1,2.74,3.75,4.8,4.8,0,0,1-.46,2,5,5,0,0,1-1.54,1.9,6.55,6.55,0,0,1-1.79,1,19.35,19.35,0,0,1-1.89.52c.1.3.16.49.2.57l2.27,6.66a3.49,3.49,0,0,0,1,1.7,3.08,3.08,0,0,0,1.6.41v.76H65.33l-3.19-9.76h-.83L59.57,16.6l-.25,1a1.87,1.87,0,0,0,0,.25,2.64,2.64,0,0,0,0,.28q0,.8.39,1a5.88,5.88,0,0,0,1.76.32v.76H52.62ZM63.94,9.3a3.79,3.79,0,0,0,2.11-1.13A6,6,0,0,0,67,6.55a5.84,5.84,0,0,0,.44-2.26,3.31,3.31,0,0,0-.61-2,2.47,2.47,0,0,0-2.09-.81,1.25,1.25,0,0,0-.88.26,2.34,2.34,0,0,0-.47,1.05L61.59,9.5A13.42,13.42,0,0,0,63.94,9.3ZM76.39,4.53Q80.26,0,85,0a7.34,7.34,0,0,1,5.23,1.92,6.76,6.76,0,0,1,2,5.19,13.9,13.9,0,0,1-3.62,9.07q-3.86,4.61-8.88,4.6a7.06,7.06,0,0,1-5.13-1.92,6.86,6.86,0,0,1-2-5.14A14,14,0,0,1,76.39,4.53ZM77.3,18a2.56,2.56,0,0,0,2.57,1.78A4.62,4.62,0,0,0,83,18.47,14.42,14.42,0,0,0,86,13.54a27.18,27.18,0,0,0,1.52-4.83,20.67,20.67,0,0,0,.54-4.11,4.38,4.38,0,0,0-.73-2.55A2.62,2.62,0,0,0,85,1q-3.68,0-6.19,6.54a24.29,24.29,0,0,0-1.9,8.26A5.91,5.91,0,0,0,77.3,18ZM102.23.48v.76a5.19,5.19,0,0,0-1.55.17,1,1,0,0,0-.72,1,2.46,2.46,0,0,0,0,.28L100,3l1.52,11.76L107.11,6c.44-.71.84-1.41,1.2-2.11a4.06,4.06,0,0,0,.53-1.66.79.79,0,0,0-.55-.81,6.11,6.11,0,0,0-1.35-.14V.48h5.67v.76a3.31,3.31,0,0,0-1,.45,5.33,5.33,0,0,0-1.18,1.4L99.26,20.78h-.94l-2.25-15A15.49,15.49,0,0,0,95.24,2c-.22-.39-.84-.62-1.83-.71V.48Zm7.35,19a3.19,3.19,0,0,0,1.55-.52,3,3,0,0,0,.84-1.59l3.62-13.24c.09-.34.16-.64.22-.92a3.27,3.27,0,0,0,.09-.7c0-.5-.14-.81-.4-.94a6.13,6.13,0,0,0-1.75-.31V.48h15.89l-1.25,5.6L127.6,6a5.32,5.32,0,0,0-.7-3q-1.12-1.52-4.56-1.51a2.61,2.61,0,0,0-1.51.28,2.12,2.12,0,0,0-.56,1.06L118.52,9.3a12.1,12.1,0,0,0,4-.51,5.8,5.8,0,0,0,2-2.61l.82.1-2.19,8.07-.81-.14c0-.28.07-.52.08-.73s0-.37,0-.51a2.4,2.4,0,0,0-.87-2.15,6.76,6.76,0,0,0-3.38-.57l-1.94,7.2a3.34,3.34,0,0,0-.11.51,3.67,3.67,0,0,0,0,.39.81.81,0,0,0,.32.66,2.3,2.3,0,0,0,1.33.26,12.39,12.39,0,0,0,4.57-.75A8.84,8.84,0,0,0,127,14.35l.72.13-1.74,5.74H109.58Zm18.27,0a3.27,3.27,0,0,0,1.37-.41,2.85,2.85,0,0,0,1-1.71l3.63-13.23c.1-.38.18-.69.23-1a3,3,0,0,0,.09-.67c0-.5-.15-.81-.42-.94A6.38,6.38,0,0,0,132,1.24V.48h8.57c2.9,0,5.1.74,6.62,2.22a8,8,0,0,1,2.26,6,10.72,10.72,0,0,1-3.35,7.84,13.3,13.3,0,0,1-9.8,3.7h-8.47ZM144.4,3.39a4.23,4.23,0,0,0-4-2,2,2,0,0,0-1.29.31,1.74,1.74,0,0,0-.48.83l-4.07,14.9a3.24,3.24,0,0,0-.07.39,1.69,1.69,0,0,0,0,.3,1,1,0,0,0,.36.84,2.27,2.27,0,0,0,1.27.26q5.26,0,7.62-5.42a17.25,17.25,0,0,0,1.43-6.94A7,7,0,0,0,144.4,3.39Z",opacity:1,strokeColor:"",fillColor:"#516c30",width:127.70402,height:55.84601,stampFillColor:"#e6eddf",stampStrokeColor:""};break;case"Confidential":t={iconName:"Confidential",pathdata:"M13.71,0,12.63,6.9,12,6.73c0-.41,0-.66,0-.73s0-.18,0-.32a6.16,6.16,0,0,0-.79-3.47,2.37,2.37,0,0,0-2-1.14c-1.64,0-3.07,1.51-4.29,4.55a22,22,0,0,0-1.64,8.29c0,2,.34,3.44,1,4.2A3,3,0,0,0,6.5,19.24a4.08,4.08,0,0,0,2.93-1.43,10.47,10.47,0,0,0,1.5-2.09l.64.65A8.84,8.84,0,0,1,9,19.72a5.24,5.24,0,0,1-3.08,1.09,5.16,5.16,0,0,1-4.21-2.08A8.68,8.68,0,0,1,0,13.16,16.5,16.5,0,0,1,2.55,3.92Q5.1,0,8.61,0a6.35,6.35,0,0,1,2.25.43,6.62,6.62,0,0,0,1.38.43.55.55,0,0,0,.5-.23A2.61,2.61,0,0,0,13.06,0ZM27.49,7.11a17.19,17.19,0,0,1-2.61,9.07q-2.77,4.61-6.39,4.6a4.42,4.42,0,0,1-3.7-1.92,8.47,8.47,0,0,1-1.43-5.14A17.31,17.31,0,0,1,16,4.53C17.88,1.51,20,0,22.25,0A4.53,4.53,0,0,1,26,1.92,8.27,8.27,0,0,1,27.49,7.11ZM24.42,4.6a5.71,5.71,0,0,0-.53-2.55A1.76,1.76,0,0,0,22.24,1q-2.65,0-4.45,6.54a31.93,31.93,0,0,0-1.37,8.26A8.15,8.15,0,0,0,16.67,18c.34,1.19,1,1.78,1.85,1.78a2.9,2.9,0,0,0,2.28-1.29,15.85,15.85,0,0,0,2.13-4.93A34.08,34.08,0,0,0,24,8.71,28.5,28.5,0,0,0,24.42,4.6ZM42.75,1.3l.3-.06V.48H38.69v.76a2.55,2.55,0,0,1,1.16.33,1.8,1.8,0,0,1,.51,1.48,10.11,10.11,0,0,1-.13,1.34c-.06.41-.14.87-.24,1.39l-1.65,8.34L33.73.48H29.45v.76a2.66,2.66,0,0,1,1,.24,1.88,1.88,0,0,1,.65,1.06l.09.3L28.81,15a20.72,20.72,0,0,1-1,3.61,1.61,1.61,0,0,1-1.19.9v.76h4.42v-.76a2.55,2.55,0,0,1-1.13-.32,1.67,1.67,0,0,1-.56-1.44,7.13,7.13,0,0,1,.05-.79c.06-.43.17-1.09.34-2L31.89,4.38l5.52,16.33h.52l3-15a22.58,22.58,0,0,1,.87-3.42A1.42,1.42,0,0,1,42.75,1.3ZM55.53.48H44.23v.76a3.63,3.63,0,0,1,1.26.3c.19.13.29.42.29.9a7.08,7.08,0,0,1-.09,1c0,.2-.08.44-.13.71L43,17.34a3.47,3.47,0,0,1-.59,1.58,1.91,1.91,0,0,1-1.13.54v.76h6.29v-.76a2.13,2.13,0,0,1-1-.19A1.23,1.23,0,0,1,46,18.1c0-.1,0-.21,0-.31s0-.23.05-.35l1.4-7.21a3.15,3.15,0,0,1,2.37.64A3.21,3.21,0,0,1,50.38,13c0,.11,0,.28,0,.49s0,.46-.06.75l.58.14,1.58-8.07-.59-.1a5.79,5.79,0,0,1-1.43,2.59,6.17,6.17,0,0,1-2.77.52l1.26-6.54a2.06,2.06,0,0,1,.42-1.08,1.39,1.39,0,0,1,1-.26c1.62,0,2.7.51,3.24,1.54a7.11,7.11,0,0,1,.49,3l.57.13Zm3.69,17.71c0-.08,0-.17,0-.27s0-.2,0-.3l.17-1L62.06,3.36a3.44,3.44,0,0,1,.59-1.6,2,2,0,0,1,1.12-.52V.48H57.44v.76a3.47,3.47,0,0,1,1.26.31c.2.13.3.44.3.94a4.25,4.25,0,0,1-.06.67c0,.26-.09.57-.17,1L56.16,17.35a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.12.52v.76h6.33v-.76a3.3,3.3,0,0,1-1.26-.32C59.32,19,59.22,18.69,59.22,18.19Zm18-9.51a13,13,0,0,1-2.42,7.84,8.31,8.31,0,0,1-7,3.7H61.6v-.76a2,2,0,0,0,1-.41,3.14,3.14,0,0,0,.73-1.71L65.93,4.11c.08-.38.13-.69.17-1a4.36,4.36,0,0,0,.06-.67c0-.5-.1-.81-.3-.94a3.47,3.47,0,0,0-1.26-.31V.48h6.17A5.52,5.52,0,0,1,75.53,2.7,9.91,9.91,0,0,1,77.17,8.68ZM74,6.87a9.22,9.22,0,0,0-.53-3.48,2.91,2.91,0,0,0-2.87-2,1.12,1.12,0,0,0-.93.31,1.81,1.81,0,0,0-.35.83l-2.93,14.9a3,3,0,0,0-.05.39c0,.11,0,.21,0,.3a1.17,1.17,0,0,0,.25.84,1.3,1.3,0,0,0,.92.26q3.8,0,5.49-5.42A23.26,23.26,0,0,0,74,6.87Zm11.3,11.65a6.72,6.72,0,0,1-3.29.75,1.3,1.3,0,0,1-1-.26,1,1,0,0,1-.23-.66,3.28,3.28,0,0,1,0-.39,4.88,4.88,0,0,1,.08-.51l1.4-7.2a3.73,3.73,0,0,1,2.43.57A2.87,2.87,0,0,1,85.43,13c0,.14,0,.31,0,.51s0,.45-.
1006.73l.59.14,1.57-8.07-.59-.1a5.79,5.79,0,0,1-1.46,2.61,6.5,6.5,0,0,1-2.89.51l1.26-6.56a2.41,2.41,0,0,1,.41-1.06c.16-.19.52-.28,1.08-.28,1.65,0,2.75.5,3.29,1.51a7,7,0,0,1,.5,3l.57.13.9-5.6H79.14v.76a3.35,3.35,0,0,1,1.26.31c.19.13.29.44.29.94a5,5,0,0,1-.07.7c0,.28-.09.58-.15.92L77.86,17.35a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.13.52v.76H87.91l1.25-5.74-.52-.13A7.69,7.69,0,0,1,85.34,18.52ZM105.8,1.24V.48h-4.37v.76a2.55,2.55,0,0,1,1.16.33,1.77,1.77,0,0,1,.52,1.48A10.58,10.58,0,0,1,103,4.39c-.06.41-.13.87-.23,1.39l-1.66,8.34L96.47.48H92.19v.76a2.61,2.61,0,0,1,1,.24,1.83,1.83,0,0,1,.65,1.06l.1.3L91.55,15a19,19,0,0,1-1,3.61,1.61,1.61,0,0,1-1.19.9v.76h4.42v-.76a2.59,2.59,0,0,1-1.13-.32,1.67,1.67,0,0,1-.56-1.44,7.13,7.13,0,0,1,0-.79c.06-.43.17-1.09.35-2L94.63,4.38l5.52,16.33h.53l2.95-15a22.93,22.93,0,0,1,.86-3.42,1.42,1.42,0,0,1,1-1Zm11.4,4.9L118,.48H106.28l-.82,5,.55.2a8,8,0,0,1,1.87-3.16,3.7,3.7,0,0,1,2.7-1.06l-3.12,15.85a2.94,2.94,0,0,1-.87,1.85,2.48,2.48,0,0,1-1.34.26v.76h7v-.76a4.24,4.24,0,0,1-1.43-.3c-.23-.13-.34-.45-.34-.95a2.26,2.26,0,0,1,0-.26c0-.09,0-.2,0-.33l.18-1,3-15.1a2.73,2.73,0,0,1,1.79.63c.75.7,1.13,2,1.17,3.94Zm3.57,12.05c0-.08,0-.17,0-.27s0-.2,0-.3l.17-1,2.62-13.24a3.44,3.44,0,0,1,.59-1.6,2,2,0,0,1,1.12-.52V.48H119v.76a3.47,3.47,0,0,1,1.26.31c.2.13.3.44.3.94a4.25,4.25,0,0,1-.06.67c0,.26-.09.57-.17,1l-2.61,13.24a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.12.52v.76h6.33v-.76a3.36,3.36,0,0,1-1.26-.32C120.87,19,120.77,18.69,120.77,18.19Zm28.86-3.71-1.24,5.74H130.3v-.71a2.48,2.48,0,0,0,1.3-.41,1.64,1.64,0,0,0,.37-1.29c0-.22,0-.75-.11-1.58,0-.17-.08-.89-.21-2.15h-4.58l-1.24,3a5.1,5.1,0,0,0-.22.66,2.45,2.45,0,0,0-.1.69c0,.41.09.67.26.78a3.05,3.05,0,0,0,1.11.3v.71h-4.17v-.71a2.66,2.66,0,0,0,.87-.53,5.79,5.79,0,0,0,.92-1.56L132.39.07h.55L135,17a5.53,5.53,0,0,0,.5,2.08,1.67,1.67,0,0,0,1.14.46v0a1.93,1.93,0,0,0,1.12-.52,3.52,3.52,0,0,0,.6-1.6l2.61-13.23c.08-.38.13-.69.17-1a4.36,4.36,0,0,0,.06-.67c0-.5-.1-.81-.3-.94a3.47,3.47,0,0,0-1.26-.31V.48h6.73v.76a3.23,3.23,0,0,0-1.49.48,3.06,3.06,0,0,0-.64,1.64l-2.77,14.08c0,.16-.05.3-.07.44s0,.29,0,.47a.79.79,0,0,0,.31.71,1.55,1.55,0,0,0,.87.21,6.83,6.83,0,0,0,3.79-1,8.42,8.42,0,0,0,2.81-3.88ZM131.5,12.91l-.78-7.18-3.14,7.18Z",opacity:1,strokeColor:"",fillColor:"#192760",width:127.70402,height:55.84601,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"NotApproved":case"Not Approved":t={iconName:"Not Approved",pathdata:"M0,19.46a1.56,1.56,0,0,0,1.16-.9A19.84,19.84,0,0,0,2.1,15L4.42,2.84l-.09-.3a1.82,1.82,0,0,0-.64-1.06,2.41,2.41,0,0,0-1-.24V.48H6.88l4.49,13.64L13,5.78c.09-.52.17-1,.22-1.39a10.11,10.11,0,0,0,.13-1.34,1.83,1.83,0,0,0-.49-1.48,2.49,2.49,0,0,0-1.13-.33V.48H16v.76l-.29.06a1.42,1.42,0,0,0-1,1,23.7,23.7,0,0,0-.84,3.42L11,20.71h-.51L5.1,4.38,3,15c-.17.87-.28,1.53-.33,2a5.32,5.32,0,0,0,0,.79,1.69,1.69,0,0,0,.54,1.44,2.48,2.48,0,0,0,1.1.32v.76H0ZM17.73,4.53C19.54,1.51,21.55,0,23.79,0a4.4,4.4,0,0,1,3.66,1.92,8.52,8.52,0,0,1,1.43,5.19,17.56,17.56,0,0,1-2.53,9.07q-2.7,4.61-6.21,4.6a4.24,4.24,0,0,1-3.6-1.92,8.6,8.6,0,0,1-1.39-5.14A17.68,17.68,0,0,1,17.73,4.53ZM18.37,18c.33,1.19.93,1.78,1.8,1.78a2.83,2.83,0,0,0,2.22-1.29,16.41,16.41,0,0,0,2.06-4.93,35.53,35.53,0,0,0,1.06-4.83A28.26,28.26,0,0,0,25.9,4.6a5.86,5.86,0,0,0-.52-2.55A1.7,1.7,0,0,0,23.78,1Q21.2,1,19.45,7.53a33,33,0,0,0-1.33,8.26A8.15,8.15,0,0,0,18.37,18Zm11.08,1.48a2.34,2.34,0,0,0,1.3-.26,3,3,0,0,0,.85-1.85l3-15.85A3.54,3.54,0,0,0,32,2.56a8,8,0,0,0-1.82,3.16l-.53-.2.8-5H41.81l-.74,5.66-.54-.07c0-1.92-.41-3.24-1.13-3.94a2.6,2.6,0,0,0-1.74-.63L34.79,16.6l-.17,1a2.43,2.43,0,0,0,0,.33,2.26,2.26,0,0,0,0,.26c0,.5.11.82.33.95a3.94,3.94,0,0,0,1.39.3v.76H29.45Zm26.65.76H50.18v-.71a2.28,2.28,0,0,0,1.25-.41,1.64,1.64,0,0,0,.37-1.29c0-.22,0-.75-.11-1.58,0-.17-.08-.89-.2-2.15H47l-1.2,3c-.08.2-.15.42-.22.66a2.84,2.84,0,0,0-.09.69c0,.41.08.67.25.78a2.91,2.91,0,0,0,1.08.3v.71H42.79v-.71a2.44,2.44,0,0,0,.85-.53,5.59,5.59,0,0,0,.9-1.56L52.21.07h.53l2,16.88A5.46,5.46,0,0,0,55.2,19a1.36,1.36,0,0,0,.9.43Zm-4.76-7.31-.76-7.18-3,7.18Zm4.95,6.53a1.82,1.82,0,0,0,1-.5,3.56,3.56,0,0,0,.58-1.59L60.42,4.11c.06-.3.1-.6.15-.9a5.46,5.46,0,0,0,.06-.72c0-.52-.13-.86-.4-1a2.88,2.88,0,0,0-1.1-.23V.48h5.93a5,5,0,0,1,2.5.57c1.26.73,1.9,2.07,1.9,4a5.81,5.81,0,0,1-1.54,4.22,5.32,5.32,0,0,1-4,1.58l-.59,0-1.2-.11L61,16.6l-.17,1a2.72,2.72,0,0,0,0,.3,2.81,2.81,0,0,0,0,.29c0,.5.09.81.28.94a3.26,3.26,0,0,0,1.23.31v.76h-6Zm6-9.67.38.06H63a3,3,0,0,0,1.62-.36,2.87,2.87,0,0,0,1-1.18,7.28,7.28,0,0,0,.6-2,11.67,11.67,0,0,0,.22-2,4.4,4.4,0,0,0-.41-2,1.44,1.44,0,0,0-1.39-.79.71.71,0,0,0-.65.28,3.7,3.7,0,0,0-.32,1Zm5.61,9.69A1.86,1.86,0,0,0,69,18.94a3.54,3.54,0,0,0,.59-1.59L72.15,4.11q.09-.45.15-.9a5.73,5.73,0,0,0,.07-.72,1.1,1.1,0,0,0-.41-1,2.88,2.88,0,0,0-1.1-.23V.48h5.93a5,5,0,0,1,2.5.57c1.27.73,1.9,2.07,1.9,4a5.77,5.77,0,0,1-1.54,4.22,5.31,5.31,0,0,1-4,1.58l-.6,0-1.2-.11L72.74,16.6l-.17,1a2.72,2.72,0,0,0,0,.3c0,.1,0,.19,0,.29,0,.5.1.81.29.94a3.15,3.15,0,0,0,1.23.31v.76h-6.1Zm6.12-9.69.38.06h.33a3,3,0,0,0,1.62-.36,3,3,0,0,0,1-1.18,7.67,7.67,0,0,0,.59-2,11.67,11.67,0,0,0,.22-2,4.4,4.4,0,0,0-.41-2,1.43,1.43,0,0,0-1.38-.79.73.73,0,0,0-.66.28,3.7,3.7,0,0,0-.32,1Zm5.57,9.69a1.9,1.9,0,0,0,1.09-.52,3.56,3.56,0,0,0,.58-1.59L83.84,4.11c0-.27.09-.51.13-.71a7.08,7.08,0,0,0,.09-1c0-.47-.1-.77-.28-.9a3.53,3.53,0,0,0-1.22-.3V.48h5.68a6.57,6.57,0,0,1,3,.53q1.92,1,1.92,3.75a6.79,6.79,0,0,1-.32,2,5.23,5.23,0,0,1-1.08,1.9,4.56,4.56,0,0,1-1.25,1,11.62,11.62,0,0,1-1.33.52c.07.3.12.49.14.57l1.59,6.66a4.07,4.07,0,0,0,.69,1.7,1.72,1.72,0,0,0,1.13.41v.76H88.52l-2.23-9.76h-.58L84.49,16.6l-.17,1a1,1,0,0,0,0,.25,2.62,2.62,0,0,0,0,.28c0,.53.09.86.26,1a3.11,3.11,0,0,0,1.24.32v.76H79.63ZM87.55,9.3A2.59,2.59,0,0,0,89,8.17a7.24,7.24,0,0,0,.66-1.62A8.18,8.18,0,0,0,90,4.29a4.32,4.32,0,0,0-.43-2,1.5,1.5,0,0,0-1.45-.81.71.71,0,0,0-.62.26,2.78,2.78,0,0,0-.33,1.05L85.91,9.5A6.63,6.63,0,0,0,87.55,9.3Zm8.72-4.77Q99,0,102.32,0A4.37,4.37,0,0,1,106,1.92a8.46,8.46,0,0,1,1.44,5.19,17.58,17.58,0,0,1-2.54,9.07q-2.7,4.61-6.21,4.6a4.27,4.27,0,0,1-3.6-1.92,8.67,8.67,0,0,1-1.38-5.14A17.68,17.68,0,0,1,96.27,4.53ZM96.9,18c.33,1.19.93,1.78,1.8,1.78a2.83,2.83,0,0,0,2.22-1.29A16.63,16.63,0,0,0,103,13.54a37.1,37.1,0,0,0,1.06-4.83,29.49,29.49,0,0,0,.38-4.11,5.86,5.86,0,0,0-.51-2.55A1.71,1.71,0,0,0,102.31,1C100.6,1,99.15,3.17,98,7.53a33.42,33.42,0,0,0-1.33,8.26A8.57,8.57,0,0,0,96.9,18ZM114.35.48v.76a2.57,2.57,0,0,0-1.08.17,1.07,1.07,0,0,0-.5,1,2.53,2.53,0,0,0,0,.28,2.64,2.64,0,0,0,0,.28l1.07,11.76L117.77,6c.31-.71.59-1.41.84-2.11A5.25,5.25,0,0,0,119,2.19a.85.85,0,0,0-.38-.81,3.09,3.09,0,0,0-.95-.14V.48h4v.76a2.08,2.08,0,0,0-.73.45,5.35,5.35,0,0,0-.82,1.4l-7.79,17.69h-.66L110,5.74A22,22,0,0,0,109.46,2c-.16-.39-.58-.62-1.28-.71V.48Zm5.15,19a1.83,1.83,0,0,0,1.08-.52,3.42,3.42,0,0,0,.59-1.59l2.54-13.24c.06-.34.11-.64.15-.92a4.83,4.83,0,0,0,.06-.7c0-.5-.09-.81-.28-.94a3.14,3.14,0,0,0-1.22-.31V.48h11.12l-.87,5.6L132.11,6a7,7,0,0,0-.49-3c-.52-1-1.59-1.51-3.19-1.51-.55,0-.9.09-1.
1006.28A2.44,2.44,0,0,0,127,2.74L125.76,9.3a6.21,6.21,0,0,0,2.81-.51A6,6,0,0,0,130,6.18l.58.1L129,14.35l-.56-.14c0-.28,0-.52,0-.73s0-.37,0-.51a2.92,2.92,0,0,0-.61-2.15,3.55,3.55,0,0,0-2.37-.57l-1.36,7.2a4.79,4.79,0,0,0-.07.51,3.28,3.28,0,0,0,0,.39,1,1,0,0,0,.22.66,1.24,1.24,0,0,0,.93.26,6.43,6.43,0,0,0,3.21-.75,7.67,7.67,0,0,0,3.21-4.17l.5.13-1.22,5.74H119.5Zm12.79,0a1.87,1.87,0,0,0,1-.41,3.23,3.23,0,0,0,.71-1.71L136.5,4.11c.07-.38.13-.69.17-1a5.89,5.89,0,0,0,.05-.67c0-.5-.1-.81-.29-.94a3.32,3.32,0,0,0-1.22-.31V.48h6a5.35,5.35,0,0,1,4.63,2.22,10.11,10.11,0,0,1,1.58,6,13.3,13.3,0,0,1-2.34,7.84,8,8,0,0,1-6.86,3.7h-5.93ZM143.87,3.39a2.84,2.84,0,0,0-2.79-2,1.08,1.08,0,0,0-.91.31,1.93,1.93,0,0,0-.34.83L137,17.44a3.1,3.1,0,0,0-.06.39c0,.11,0,.21,0,.3a1.22,1.22,0,0,0,.24.84,1.26,1.26,0,0,0,.9.26q3.67,0,5.33-5.42a23.91,23.91,0,0,0,1-6.94A9.45,9.45,0,0,0,143.87,3.39Z",opacity:1,strokeColor:"",fillColor:"#8a251a",width:127.70402,height:55.84601,stampFillColor:"#f6dedd",stampStrokeColor:""}}if(t)return t.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),this.currentStampAnnotation=t,t}},n.prototype.retrievestampAnnotation=function(e){if(e){var t=void 0;switch(e.trim()){case"Approved":t={iconName:"Approved",pathdata:"M19,20.22H10.55v-.71a4.26,4.26,0,0,0,1.79-.41,1.37,1.37,0,0,0,.53-1.29c0-.22,0-.75-.16-1.58,0-.17-.11-.89-.29-2.15H6.06l-1.72,3a4,4,0,0,0-.31.66,2,2,0,0,0-.14.69c0,.41.12.67.37.78a5.42,5.42,0,0,0,1.53.3v.71H0v-.71A4,4,0,0,0,1.21,19a5.68,5.68,0,0,0,1.28-1.56L13.45.07h.76L17,17a4.35,4.35,0,0,0,.7,2.08,2.4,2.4,0,0,0,1.31.44Zm-6.83-7.31L11.13,5.73,6.76,12.91Zm7.18,6.52a3,3,0,0,0,1.33-.49,3,3,0,0,0,.84-1.59L25.19,4.11c.07-.3.14-.6.2-.9a3.14,3.14,0,0,0,.1-.72,1,1,0,0,0-.58-1,5.68,5.68,0,0,0-1.57-.23V.48h8.47a9.68,9.68,0,0,1,3.57.57,4,4,0,0,1,2.71,4,4.93,4.93,0,0,1-2.2,4.22,9.53,9.53,0,0,1-5.69,1.58l-.85,0-1.71-.11L26,16.6l-.25,1a1,1,0,0,0-.05.3,2.83,2.83,0,0,0,0,.29c0,.5.14.81.4.94a6.31,6.31,0,0,0,1.76.31v.76H19.39Zm8.52-9.66.54.06h.48a5.81,5.81,0,0,0,2.3-.36,3.47,3.47,0,0,0,1.4-1.18,6.24,6.24,0,0,0,.86-2,8.94,8.94,0,0,0,.3-2,3.29,3.29,0,0,0-.58-2,2.3,2.3,0,0,0-2-.79,1.23,1.23,0,0,0-.93.28,2.71,2.71,0,0,0-.46,1Zm8,9.69a3.19,3.19,0,0,0,1.55-.52,3,3,0,0,0,.84-1.59L42,4.11c.07-.3.14-.6.2-.9a3.14,3.14,0,0,0,.1-.72,1,1,0,0,0-.58-1,5.68,5.68,0,0,0-1.57-.23V.48h8.47a9.68,9.68,0,0,1,3.57.57,4,4,0,0,1,2.71,4,4.93,4.93,0,0,1-2.2,4.22A9.53,9.53,0,0,1,47,10.87l-.85,0-1.71-.11L42.79,16.6l-.25,1a1.45,1.45,0,0,0,0,.3,2.83,2.83,0,0,0,0,.29c0,.5.14.81.4.94a6.31,6.31,0,0,0,1.76.31v.76h-8.7Zm8.74-9.69.54.06h.48A5.81,5.81,0,0,0,48,9.48a3.41,3.41,0,0,0,1.4-1.18,6.24,6.24,0,0,0,.86-2,9,9,0,0,0,.31-2,3.29,3.29,0,0,0-.59-2,2.3,2.3,0,0,0-2-.79,1.23,1.23,0,0,0-.93.28,2.88,2.88,0,0,0-.46,1Zm7.95,9.69a3.27,3.27,0,0,0,1.56-.52A3.06,3.06,0,0,0,55,17.35L58.64,4.11l.18-.71a4.72,4.72,0,0,0,.13-1c0-.47-.13-.77-.4-.9a6.74,6.74,0,0,0-1.74-.3V.48h8.11A13,13,0,0,1,69.14,1a3.7,3.7,0,0,1,2.74,3.75,4.8,4.8,0,0,1-.46,2,5,5,0,0,1-1.54,1.9,6.55,6.55,0,0,1-1.79,1,19.35,19.35,0,0,1-1.89.52c.1.3.16.49.2.57l2.27,6.66a3.49,3.49,0,0,0,1,1.7,3.08,3.08,0,0,0,1.6.41v.76H65.33l-3.19-9.76h-.83L59.57,16.6l-.25,1a1.87,1.87,0,0,0,0,.25,2.64,2.64,0,0,0,0,.28q0,.8.39,1a5.88,5.88,0,0,0,1.76.32v.76H52.62ZM63.94,9.3a3.79,3.79,0,0,0,2.11-1.13A6,6,0,0,0,67,6.55a5.84,5.84,0,0,0,.44-2.26,3.31,3.31,0,0,0-.61-2,2.47,2.47,0,0,0-2.09-.81,1.25,1.25,0,0,0-.88.26,2.34,2.34,0,0,0-.47,1.05L61.59,9.5A13.42,13.42,0,0,0,63.94,9.3ZM76.39,4.53Q80.26,0,85,0a7.34,7.34,0,0,1,5.23,1.92,6.76,6.76,0,0,1,2,5.19,13.9,13.9,0,0,1-3.62,9.07q-3.86,4.61-8.88,4.6a7.06,7.06,0,0,1-5.13-1.92,6.86,6.86,0,0,1-2-5.14A14,14,0,0,1,76.39,4.53ZM77.3,18a2.56,2.56,0,0,0,2.57,1.78A4.62,4.62,0,0,0,83,18.47,14.42,14.42,0,0,0,86,13.54a27.18,27.18,0,0,0,1.52-4.83,20.67,20.67,0,0,0,.54-4.11,4.38,4.38,0,0,0-.73-2.55A2.62,2.62,0,0,0,85,1q-3.68,0-6.19,6.54a24.29,24.29,0,0,0-1.9,8.26A5.91,5.91,0,0,0,77.3,18ZM102.23.48v.76a5.19,5.19,0,0,0-1.55.17,1,1,0,0,0-.72,1,2.46,2.46,0,0,0,0,.28L100,3l1.52,11.76L107.11,6c.44-.71.84-1.41,1.2-2.11a4.06,4.06,0,0,0,.53-1.66.79.79,0,0,0-.55-.81,6.11,6.11,0,0,0-1.35-.14V.48h5.67v.76a3.31,3.31,0,0,0-1,.45,5.33,5.33,0,0,0-1.18,1.4L99.26,20.78h-.94l-2.25-15A15.49,15.49,0,0,0,95.24,2c-.22-.39-.84-.62-1.83-.71V.48Zm7.35,19a3.19,3.19,0,0,0,1.55-.52,3,3,0,0,0,.84-1.59l3.62-13.24c.09-.34.16-.64.22-.92a3.27,3.27,0,0,0,.09-.7c0-.5-.14-.81-.4-.94a6.13,6.13,0,0,0-1.75-.31V.48h15.89l-1.25,5.6L127.6,6a5.32,5.32,0,0,0-.7-3q-1.12-1.52-4.56-1.51a2.61,2.61,0,0,0-1.51.28,2.12,2.12,0,0,0-.56,1.06L118.52,9.3a12.1,12.1,0,0,0,4-.51,5.8,5.8,0,0,0,2-2.61l.82.1-2.19,8.07-.81-.14c0-.28.07-.52.08-.73s0-.37,0-.51a2.4,2.4,0,0,0-.87-2.15,6.76,6.76,0,0,0-3.38-.57l-1.94,7.2a3.34,3.34,0,0,0-.11.51,3.67,3.67,0,0,0,0,.39.81.81,0,0,0,.32.66,2.3,2.3,0,0,0,1.33.26,12.39,12.39,0,0,0,4.57-.75A8.84,8.84,0,0,0,127,14.35l.72.13-1.74,5.74H109.58Zm18.27,0a3.27,3.27,0,0,0,1.37-.41,2.85,2.85,0,0,0,1-1.71l3.63-13.23c.1-.38.18-.69.23-1a3,3,0,0,0,.09-.67c0-.5-.15-.81-.42-.94A6.38,6.38,0,0,0,132,1.24V.48h8.57c2.9,0,5.1.74,6.62,2.22a8,8,0,0,1,2.26,6,10.72,10.72,0,0,1-3.35,7.84,13.3,13.3,0,0,1-9.8,3.7h-8.47ZM144.4,3.39a4.23,4.23,0,0,0-4-2,2,2,0,0,0-1.29.31,1.74,1.74,0,0,0-.48.83l-4.07,14.9a3.24,3.24,0,0,0-.07.39,1.69,1.69,0,0,0,0,.3,1,1,0,0,0,.36.84,2.27,2.27,0,0,0,1.27.26q5.26,0,7.62-5.42a17.25,17.25,0,0,0,1.43-6.94A7,7,0,0,0,144.4,3.39Z",opacity:1,strokeColor:"",fillColor:"#516c30",width:149.474,height:20.783,stampFillColor:"#e6eddf",stampStrokeColor:""};break;case"Confidential":t={iconName:"Confidential",pathdata:"M13.71,0,12.63,6.9,12,6.73c0-.41,0-.66,0-.73s0-.18,0-.32a6.16,6.16,0,0,0-.79-3.47,2.37,2.37,0,0,0-2-1.14c-1.64,0-3.07,1.51-4.29,4.55a22,22,0,0,0-1.64,8.29c0,2,.34,3.44,1,4.2A3,3,0,0,0,6.5,19.24a4.08,4.08,0,0,0,2.93-1.43,10.47,10.47,0,0,0,1.5-2.09l.64.65A8.84,8.84,0,0,1,9,19.72a5.24,5.24,0,0,1-3.08,1.09,5.16,5.16,0,0,1-4.21-2.08A8.68,8.68,0,0,1,0,13.16,16.5,16.5,0,0,1,2.55,3.92Q5.1,0,8.61,0a6.35,6.35,0,0,1,2.25.43,6.62,6.62,0,0,0,1.38.43.55.55,0,0,0,.5-.23A2.61,2.61,0,0,0,13.06,0ZM27.49,7.11a17.19,17.19,0,0,1-2.61,9.07q-2.77,4.61-6.39,4.6a4.42,4.42,0,0,1-3.7-1.92,8.47,8.47,0,0,1-1.43-5.14A17.31,17.31,0,0,1,16,4.53C17.88,1.51,20,0,22.25,0A4.53,4.53,0,0,1,26,1.92,8.27,8.27,0,0,1,27.49,7.11ZM24.42,4.6a5.71,5.71,0,0,0-.53-2.55A1.76,1.76,0,0,0,22.24,1q-2.65,0-4.45,6.54a31.93,31.93,0,0,0-1.37,8.26A8.15,8.15,0,0,0,16.67,18c.34,1.19,1,1.78,1.85,1.78a2.9,2.9,0,0,0,2.28-1.29,15.85,15.85,0,0,0,2.13-4.93A34.08,34.08,0,0,0,24,8.71,28.5,28.5,0,0,0,24.42,4.6ZM42.75,1.3l.3-.06V.48H38.69v.76a2.55,2.55,0,0,1,1.16.33,1.8,1.8,0,0,1,.51,1.48,10.11,10.11,0,0,1-.13,1.34c-.06.41-.14.87-.24,1.39l-1.65,8.34L33.73.48H29.45v.76a2.66,2.66,0,0,1,1,.24,1.88,1.88,0,0,1,.65,1.06l.09.3L28.81,15a20.72,20.72,0,0,1-1,3.61,1.61,1.61,0,0,1-1.19.9v.76h4.42v-.76a2.55,2.55,0,0,1-1.13-.32,1.67,1.67,0,0,1-.56-1.44,7.13,7.13,0,0,1,.05-.79c.06-.43.17-1.09.34-2L31.89,4.38l5.52,16.33h.52l3-15a22.58,22.58,0,0,1,.87-3.42A1.42,1.42,0,0,1,42.75,1.3ZM55.53.48H44.23v.76a3.63,3.63,0,0,1,1.26.3c.19.13.29.42.29.9a7.08,7.08,0,0,1-.09,1c0,.2-.08.44-.13.71L43,17.34a3.47,3.47,0,0,1-.59,1.58,1.91,1.91,0,0,1-1.13.54v.76h6.29v-.76a2.13,2.13,0,0,1-1-.19A1.23,1.23,0,0,1,46,18.1c0-.1,0-.21,0-.31s0-.23.05-.35l1.4-7.21a3.15,3.15,0,0,1,2.37.64A3.21,3.21,0,0,1,50.38,13c0,.11,0,.28,0,.49s0,.46-.06.75l.58.14,1.58-8.07-.59-.1a5.79,5.79,0,0,1-1.43,2.59,6.17,6.17,0,0,1-2.77.52l1.26-6.54a2.06,2.06,0,0,1,.42-1.08,1.39,1.39,0,0,1,1-.26c1.62,0,2.7.51,3.24,1.54a7.11,7.11,0,0,1,.49,3l.57.13Zm3.69,17.71c0-.08,0-.17,0-.27s0-.2,0-.3l.17-1L62.06,3.36a3.44,3.44,0,0,1,.59-1.6,2,2,0,0,1,1.12-.52V.48H57.44v.76a3.47,3.47,0,0,1,1.26.31c.2.13.3.44.3.94a4.25,4.25,0,0,1-.06.67c0,.26-.09.57-.17,1L56.16,17.35a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.12.52v.76h6.33v-.76a3.3,3.3,0,0,1-1.26-.32C59.32,19,59.22,18.69,59.22,18.19Zm18-9.51a13,13,0,0,1-2.42,7.84,8.31,8.31,0,0,1-7,3.7H61.6v-.76a2,2,0,0,0,1-.41,3.14,3.14,0,0,0,.73-1.71L65.93,4.11c.08-.38.13-.69.17-1a4.36,4.36,0,0,0,.06-.67c0-.5-.1-.81-.3-.94a3.47,3.47,0,0,0-1.26-.31V.48h6.17A5.52,5.52,0,0,1,75.53,2.7,9.91,9.91,0,0,1,77.17,8.68ZM74,6.87a9.22,9.22,0,0,0-.53-3.48,2.91,2.91,0,0,0-2.87-2,1.12,1.12,0,0,0-.93.31,1.81,1.81,0,0,0-.35.83l-2.93,14.9a3,3,0,0,0-.05.39c0,.11,0,.21,0,.3a1.17,1.17,0,0,0,.25.84,1.3,1.3,0,0,0,.92.26q3.8,0,5.49-5.42A23.26,23.26,0,0,0,74,6.87Zm11.3,11.65a6.72,6.72,0,0,1-3.29.75,1.3,1.3,0,0,1-1-.26,1,1,0,0,1-.23-.66,3.28,3.28,0,0,1,0-.39,4.88,4.88,0,0,1,.08-.51l1.4-7.2a3.73,3.73,0,0,1,2.43.57A2.87,2.87,0,0,1,85.43,13c0,.14,0,.31,0,.51s0,.45-.
1006.73l.59.14,1.57-8.07-.59-.1a5.79,5.79,0,0,1-1.46,2.61,6.5,6.5,0,0,1-2.89.51l1.26-6.56a2.41,2.41,0,0,1,.41-1.06c.16-.19.52-.28,1.08-.28,1.65,0,2.75.5,3.29,1.51a7,7,0,0,1,.5,3l.57.13.9-5.6H79.14v.76a3.35,3.35,0,0,1,1.26.31c.19.13.29.44.29.94a5,5,0,0,1-.07.7c0,.28-.09.58-.15.92L77.86,17.35a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.13.52v.76H87.91l1.25-5.74-.52-.13A7.69,7.69,0,0,1,85.34,18.52ZM105.8,1.24V.48h-4.37v.76a2.55,2.55,0,0,1,1.16.33,1.77,1.77,0,0,1,.52,1.48A10.58,10.58,0,0,1,103,4.39c-.06.41-.13.87-.23,1.39l-1.66,8.34L96.47.48H92.19v.76a2.61,2.61,0,0,1,1,.24,1.83,1.83,0,0,1,.65,1.06l.1.3L91.55,15a19,19,0,0,1-1,3.61,1.61,1.61,0,0,1-1.19.9v.76h4.42v-.76a2.59,2.59,0,0,1-1.13-.32,1.67,1.67,0,0,1-.56-1.44,7.13,7.13,0,0,1,0-.79c.06-.43.17-1.09.35-2L94.63,4.38l5.52,16.33h.53l2.95-15a22.93,22.93,0,0,1,.86-3.42,1.42,1.42,0,0,1,1-1Zm11.4,4.9L118,.48H106.28l-.82,5,.55.2a8,8,0,0,1,1.87-3.16,3.7,3.7,0,0,1,2.7-1.06l-3.12,15.85a2.94,2.94,0,0,1-.87,1.85,2.48,2.48,0,0,1-1.34.26v.76h7v-.76a4.24,4.24,0,0,1-1.43-.3c-.23-.13-.34-.45-.34-.95a2.26,2.26,0,0,1,0-.26c0-.09,0-.2,0-.33l.18-1,3-15.1a2.73,2.73,0,0,1,1.79.63c.75.7,1.13,2,1.17,3.94Zm3.57,12.05c0-.08,0-.17,0-.27s0-.2,0-.3l.17-1,2.62-13.24a3.44,3.44,0,0,1,.59-1.6,2,2,0,0,1,1.12-.52V.48H119v.76a3.47,3.47,0,0,1,1.26.31c.2.13.3.44.3.94a4.25,4.25,0,0,1-.06.67c0,.26-.09.57-.17,1l-2.61,13.24a3.52,3.52,0,0,1-.6,1.59,2,2,0,0,1-1.12.52v.76h6.33v-.76a3.36,3.36,0,0,1-1.26-.32C120.87,19,120.77,18.69,120.77,18.19Zm28.86-3.71-1.24,5.74H130.3v-.71a2.48,2.48,0,0,0,1.3-.41,1.64,1.64,0,0,0,.37-1.29c0-.22,0-.75-.11-1.58,0-.17-.08-.89-.21-2.15h-4.58l-1.24,3a5.1,5.1,0,0,0-.22.66,2.45,2.45,0,0,0-.1.69c0,.41.09.67.26.78a3.05,3.05,0,0,0,1.11.3v.71h-4.17v-.71a2.66,2.66,0,0,0,.87-.53,5.79,5.79,0,0,0,.92-1.56L132.39.07h.55L135,17a5.53,5.53,0,0,0,.5,2.08,1.67,1.67,0,0,0,1.14.46v0a1.93,1.93,0,0,0,1.12-.52,3.52,3.52,0,0,0,.6-1.6l2.61-13.23c.08-.38.13-.69.17-1a4.36,4.36,0,0,0,.06-.67c0-.5-.1-.81-.3-.94a3.47,3.47,0,0,0-1.26-.31V.48h6.73v.76a3.23,3.23,0,0,0-1.49.48,3.06,3.06,0,0,0-.64,1.64l-2.77,14.08c0,.16-.05.3-.07.44s0,.29,0,.47a.79.79,0,0,0,.31.71,1.55,1.55,0,0,0,.87.21,6.83,6.83,0,0,0,3.79-1,8.42,8.42,0,0,0,2.81-3.88ZM131.5,12.91l-.78-7.18-3.14,7.18Z",opacity:1,strokeColor:"",fillColor:"#192760",width:149.633,height:20.811,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Witness":t={iconName:"Witness",pathdata:"M19.63,2.67,12.77,16.84h-.69L10.63,5.17,5.05,16.84H4.36L2.5,2.92A3.13,3.13,0,0,0,2,1.35,2.38,2.38,0,0,0,.63.91V.33H7.3V1a2.27,2.27,0,0,0-.92.17A1.11,1.11,0,0,0,5.84,2.2v.16c0,.05,0,.13,0,.22L6.81,11l3.57-7.48a.79.79,0,0,0,0-.23,2.78,2.78,0,0,0-.53-2A2.23,2.23,0,0,0,8.68.91V.33h6.45V.91A2.42,2.42,0,0,0,14,1.2c-.23.16-.34.5-.34,1,0,.11,0,.26,0,.46s.07.73.12,1.21l.8,7L18.3,3.11c.09-.19.17-.4.25-.62a2.11,2.11,0,0,0,.11-.65.73.73,0,0,0-.4-.76,2.73,2.73,0,0,0-1.1-.17V.33h4.47V.91a1.92,1.92,0,0,0-.91.3A3.66,3.66,0,0,0,19.63,2.67ZM29.76.33H22.62V1A5.07,5.07,0,0,1,24,1.2c.23.11.34.36.34.77a2.86,2.86,0,0,1-.06.54c0,.21-.11.47-.19.77L21.17,14.05a2.47,2.47,0,0,1-.68,1.29,2.62,2.62,0,0,1-1.27.42v.62h7.15v-.62A5.09,5.09,0,0,1,25,15.51c-.22-.11-.33-.37-.33-.77a2,2,0,0,1,0-.23c0-.08,0-.16,0-.24l.19-.83,3-10.77a2.5,2.5,0,0,1,.66-1.3A2.76,2.76,0,0,1,29.76,1ZM41.9,4.88l.63,0,.86-4.6H30.2l-.93,4.1.62.16A6.6,6.6,0,0,1,32,2a5.22,5.22,0,0,1,3.06-.86L31.53,14.05a2.24,2.24,0,0,1-1,1.5,3.67,3.67,0,0,1-1.51.21v.62H37v-.62a6,6,0,0,1-1.62-.24c-.26-.1-.39-.36-.39-.77,0-.07,0-.14,0-.21s0-.16.05-.27l.2-.83L38.57,1.16a3.76,3.76,0,0,1,2,.52A3.69,3.69,0,0,1,41.9,4.88ZM59.24,1,59.58,1V.33H54.65V1A3.78,3.78,0,0,1,56,1.22a1.25,1.25,0,0,1,.58,1.2,6.26,6.26,0,0,1-.15,1.09c-.07.33-.16.71-.27,1.13l-1.87,6.79L49.05.33H44.21V1a3.51,3.51,0,0,1,1.13.2,1.51,1.51,0,0,1,.74.85l.1.25L43.49,12.1A13.5,13.5,0,0,1,42.4,15a1.87,1.87,0,0,1-1.35.72v.62h5v-.62a3.62,3.62,0,0,1-1.28-.26,1.19,1.19,0,0,1-.64-1.17,3.55,3.55,0,0,1,.06-.64q.11-.53.39-1.59L47,3.5,53.2,16.78h.59L57.13,4.6a15.29,15.29,0,0,1,1-2.78A1.51,1.51,0,0,1,59.24,1Zm7.26.31a2.11,2.11,0,0,1,1.23-.23c1.87,0,3.1.41,3.71,1.23A4.39,4.39,0,0,1,72,4.78l.64.11,1-4.56H60.75V1a5,5,0,0,1,1.42.25c.22.11.32.36.32.77a2.73,2.73,0,0,1-.07.57c0,.22-.1.47-.17.74l-3,10.77a2.47,2.47,0,0,1-.68,1.29,2.62,2.62,0,0,1-1.27.42v.62h13.3l1.42-4.66-.59-.11A7.1,7.1,0,0,1,67.75,15a10,10,0,0,1-3.72.61A1.86,1.86,0,0,1,63,15.4a.67.67,0,0,1-.26-.54,2.36,2.36,0,0,1,0-.32,3.38,3.38,0,0,1,.09-.41l1.58-5.86a5.48,5.48,0,0,1,2.75.47,2,2,0,0,1,.71,1.75c0,.11,0,.25,0,.41s0,.37-.06.6l.65.11L70.2,5.05,69.54,5a4.69,4.69,0,0,1-1.65,2.12,10.06,10.06,0,0,1-3.26.41l1.42-5.33A1.75,1.75,0,0,1,66.5,1.31ZM80.88.83a2.77,2.77,0,0,1,2.46,1.26A4.36,4.36,0,0,1,84,4l.08.78.62.08,1-4.8H85a1.77,1.77,0,0,1-.38.43A1,1,0,0,1,84,.67a2.76,2.76,0,0,1-.37,0l-.41-.1-.61-.2a4.78,4.78,0,0,0-.79-.2A
106.71,6.71,0,0,0,80.46,0a4.76,4.76,0,0,0-3.62,1.36,4.61,4.61,0,0,0-1.29,3.29q0,2.05,2.94,4.47t2.94,3.82a3.19,3.19,0,0,1-.79,2.14,2.8,2.8,0,0,1-2.23.92,3.43,3.43,0,0,1-1.5-.33,3.82,3.82,0,0,1-2-2.5,10.33,10.33,0,0,1-.2-1.67L74,11.45l-.87,5.38h.73a2.85,2.85,0,0,1,.38-.67A.75.75,0,0,1,74.8,16a1.12,1.12,0,0,1,.27,0l.42.15.61.22a8.62,8.62,0,0,0,1.3.35,7.53,7.53,0,0,0,1.32.12,5.48,5.48,0,0,0,4.11-1.53,4.77,4.77,0,0,0,1.49-3.43,4.59,4.59,0,0,0-.77-2.63,9.31,9.31,0,0,0-1.87-2L79.61,5.5a4.31,4.31,0,0,1-.74-.77,2.55,2.55,0,0,1-.43-1.45,2.68,2.68,0,0,1,.42-1.44A2.23,2.23,0,0,1,80.88.83Zm12.31,0a2.8,2.8,0,0,1,2.47,1.26A4.49,4.49,0,0,1,96.35,4l.08.78.62.08,1-4.8h-.71a1.62,1.62,0,0,1-.39.43,1,1,0,0,1-.64.18,2.9,2.9,0,0,1-.38,0l-.41-.1-.61-.2a4.65,4.65,0,0,0-.78-.2A6.88,6.88,0,0,0,92.77,0a4.73,4.73,0,0,0-3.61,1.36,4.57,4.57,0,0,0-1.3,3.29q0,2.05,2.94,4.47c2,1.54,3,2.81,3,3.82a3.2,3.2,0,0,1-.8,2.14,2.78,2.78,0,0,1-2.23.92,3.36,3.36,0,0,1-1.49-.33A3.68,3.68,0,0,1,88,14.73a3.76,3.76,0,0,1-.81-1.56A10.6,10.6,0,0,1,87,11.5l-.7-.05-.86,5.38h.72a2.85,2.85,0,0,1,.38-.67.78.78,0,0,1,.57-.19,1.12,1.12,0,0,1,.27,0l.42.15.61.22a8.74,8.74,0,0,0,1.31.35,7.37,7.37,0,0,0,1.32.12,5.49,5.49,0,0,0,4.11-1.53,4.81,4.81,0,0,0,1.49-3.43,4.67,4.67,0,0,0-.77-2.63A9.57,9.57,0,0,0,94,7.2L91.93,5.5a4,4,0,0,1-.74-.77,2.48,2.48,0,0,1-.43-1.45,2.68,2.68,0,0,1,.42-1.44A2.2,2.2,0,0,1,93.19.83Z",opacity:1,strokeColor:"",fillColor:"#192760",width:97.39,height:16.84,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"InitialHere":case"Initial Here":t={iconName:"Initial Here",pathdata:"M6.36,15.51a5.09,5.09,0,0,0,1.42.25v.62H.63v-.62a2.62,2.62,0,0,0,1.27-.42,2.47,2.47,0,0,0,.68-1.29l3-10.77c.08-.3.15-.56.19-.77A2.86,2.86,0,0,0,5.78,2c0-.41-.11-.66-.34-.77A5.07,5.07,0,0,0,4,1V.33h7.14V1a2.76,2.76,0,0,0-1.27.42,2.5,2.5,0,0,0-.66,1.3l-3,10.77-.19.83c0,.08,0,.16,0,.24a2,2,0,0,0,0,.23C6,15.14,6.14,15.4,6.36,15.51ZM27,1,27.36,1V.33H22.43V1a3.78,3.78,0,0,1,1.31.27,1.25,1.25,0,0,1,.58,1.2,6.26,6.26,0,0,1-.15,1.09c-.07.33-.16.71-.27,1.13L22,11.43,16.83.33H12V1a3.49,3.49,0,0,1,1.12.2,1.51,1.51,0,0,1,.74.85l.11.25-2.7,9.85A13,13,0,0,1,10.18,15a1.85,1.85,0,0,1-1.35.72v.62h5v-.62a3.62,3.62,0,0,1-1.28-.26,1.19,1.19,0,0,1-.63-1.17,4.72,4.72,0,0,1,.05-.64q.1-.53.39-1.59l2.39-8.6L21,16.78h.6L24.91,4.6a15.29,15.29,0,0,1,1-2.78A1.51,1.51,0,0,1,27,1ZM35.78.33H28.64V1a5.16,5.16,0,0,1,1.41.25c.23.11.34.36.34.77a2.86,2.86,0,0,1-.06.54c0,.21-.11.47-.19.77L27.19,14.05a2.47,2.47,0,0,1-.68,1.29,2.66,2.66,0,0,1-1.27.42v.62h7.15v-.62A5.09,5.09,0,0,1,31,15.51c-.22-.11-.33-.37-.33-.77a2,2,0,0,1,0-.23,2,2,0,0,1,0-.24l.19-.83,3-10.77a2.5,2.5,0,0,1,.66-1.3A2.76,2.76,0,0,1,35.78,1Zm12.76,4.6.87-4.6H36.22l-.93,4.1.62.16A6.52,6.52,0,0,1,38,2a5.21,5.21,0,0,1,3-.86L37.55,14.05a2.24,2.24,0,0,1-1,1.5,3.7,3.7,0,0,1-1.51.21v.62H43v-.62a5.79,5.79,0,0,1-1.61-.24c-.26-.1-.39-.36-.39-.77a1.48,1.48,0,0,1,0-.21,2,2,0,0,1,0-.27l.2-.83L44.58,1.16a3.77,3.77,0,0,1,2,.52,3.74,3.74,0,0,1,1.31,3.2Zm4,9.81a.93.93,0,0,1,0-.23,2,2,0,0,1,0-.24l.18-.83,3-10.77a2.42,2.42,0,0,1,.67-1.3A2.72,2.72,0,0,1,57.72,1V.33H50.5
107V1A5.26,5.26,0,0,1,52,1.2c.23.11.34.36.34.77a2.28,2.28,0,0,1-.07.54,7.71,7.71,0,0,1-.19.77l-3,10.77a2.4,2.4,0,0,1-.68,1.29,2.58,2.58,0,0,1-1.26.42v.62h7.14v-.62a5.07,5.07,0,0,1-1.41-.25C52.69,15.4,52.58,15.14,52.58,14.74Zm32-3.13.57.11-1.4,4.66H63.34v-.57a3.65,3.65,0,0,0,1.46-.34c.29-.16.43-.51.43-1,0-.18,0-.61-.13-1.29,0-.14-.09-.73-.23-1.75H59.69l-1.4,2.44a3.38,3.38,0,0,0-.25.54,1.64,1.64,0,0,0-.11.56q0,.5.3.63a4.41,4.41,0,0,0,1.25.25v.57H54.76v-.57a3.36,3.36,0,0,0,1-.43,4.58,4.58,0,0,0,1-1.27L65.7,0h.62l2.3,13.72a3.49,3.49,0,0,0,.56,1.7,2.34,2.34,0,0,0,1.29.37v0a2.58,2.58,0,0,0,1.26-.42,2.46,2.46,0,0,0,.68-1.3L75.35,3.28c.09-.3.16-.56.2-.77A2.86,2.86,0,0,0,75.61,2c0-.41-.11-.66-.34-.77A5.17,5.17,0,0,0,73.85,1V.33h7.61V1a4.77,4.77,0,0,0-1.69.39A2.27,2.27,0,0,0,79,2.67L75.92,14.12c0,.13,0,.25-.07.36a2.21,2.21,0,0,0,0,.39.59.59,0,0,0,.35.57,2.33,2.33,0,0,0,1,.17,10.06,10.06,0,0,0,4.28-.84A7.67,7.67,0,0,0,84.6,11.61ZM64.7,10.44,63.81,4.6l-3.55,5.84Zm38,4.32a.71.71,0,0,1,0-.16s0-.16.07-.34l.2-.83L106,2.67a2.43,2.43,0,0,1,.79-1.39A2.78,2.78,0,0,1,107.9,1V.33h-7.15V1a4.45,4.45,0,0,1,1.27.19.81.81,0,0,1,.47.83,2.73,2.73,0,0,1-.07.57c0,.22-.1.47-.17.74l-1.14,4.16h-5.7L96.7,2.67a2.27,2.27,0,0,1,.73-1.33A4.77,4.77,0,0,1,99.12,1V.33H91.51V1a5.09,5.09,0,0,1,1.42.25c.22.11.33.36.33.77a2.93,2.93,0,0,1-.08.58c-.05.24-.1.48-.17.73L90.07,14a2.73,2.73,0,0,1-.65,1.29,2.47,2.47,0,0,1-1.3.43v.62h7.15v-.62a5.13,5.13,0,0,1-1.42-.24c-.21-.1-.31-.34-.31-.72a3.11,3.11,0,0,1,0-.57c0-.16.1-.43.19-.8L95.12,8.5h5.7L99.31,14a2.21,2.21,0,0,1-.74,1.33,4.36,4.36,0,0,1-1.69.39v.62h7.63v-.62a4.72,4.72,0,0,1-1.25-.17A.8.8,0,0,1,102.73,14.76Zm13.38.24a10.07,10.07,0,0,1-3.72.61,1.86,1.86,0,0,1-1.08-.21.67.67,0,0,1-.26-.54,2.36,2.36,0,0,1,0-.32,3.38,3.38,0,0,1,.09-.41l1.58-5.86a5.51,5.51,0,0,1,2.75.47,2,2,0,0,1,.7,1.75c0,.11,0,.25,0,.41s0,.37-.07.6l.66.11,1.78-6.56L117.89,5a4.63,4.63,0,0,1-1.65,2.12A10,10,0,0,1,113,7.5l1.43-5.33a1.6,1.6,0,0,1,.45-.86,2.07,2.07,0,0,1,1.23-.23c1.86,0,3.1.41,3.71,1.23a4.32,4.32,0,0,1,.56,2.47l.65.11,1-4.56H109.1V1a5.1,5.1,0,0,1,1.43.25c.21.11.32.36.32.77a3.63,3.63,0,0,1-.07.57c0,.22-.11.47-.18.74l-2.95,10.77a2.4,2.4,0,0,1-.68,1.29,2.58,2.58,0,0,1-1.26.42v.62H119l1.42-4.66-.58-.11A7.17,7.17,0,0,1,116.11,15ZM144.36,2.17,142.93,7.5a10.13,10.13,0,0,0,3.27-.41A4.69,4.69,0,0,0,147.84,5l.67.08-1.78,6.56-.66-.11c0-.23.06-.43.07-.6s0-.3,0-.41a2,2,0,0,0-.7-1.75,5.51,5.51,0,0,0-2.75-.47l-1.58,5.86a3.38,3.38,0,0,0-.09.41,2.36,2.36,0,0,0,0,.32.67.67,0,0,0,.26.54,1.86,1.86,0,0,0,1.08.21,10.07,10.07,0,0,0,3.72-.61,7.14,7.14,0,0,0,3.73-3.39l.58.11L149,16.38H131l-2.59-7.93h-.68l-1.42,5-.2.83,0,.2a1.77,1.77,0,0,0,0,.23c0,.43.1.7.31.81a4.87,4.87,0,0,0,1.43.25v.62h-7.14v-.62a2.58,2.58,0,0,0,1.26-.42,2.4,2.4,0,0,0,.68-1.29l3-10.77.15-.57a4.09,4.09,0,0,0,.1-.79c0-.38-.11-.62-.32-.72A4.8,4.8,0,0,0,124,1V.33h6.6a10.58,10.58,0,0,1,3.42.43,3,3,0,0,1,2.24,3.05,4,4,0,0,1-.38,1.6A4,4,0,0,1,134.66,7a5.47,5.47,0,0,1-1.45.8c-.33.11-.85.25-1.54.42a4.73,4.73,0,0,0,.16.46l1.85,5.42a2.81,2.81,0,0,0,.8,1.38,2.42,2.42,0,0,0,1.23.32,2.53,2.53,0,0,0,1.22-.41,2.47,2.47,0,0,0,.68-1.29l2.94-10.77c.07-.27.13-.52.18-.74A2.73,2.73,0,0,0,140.8,2c0-.41-.11-.66-.32-.77A5.1,5.1,0,0,0,139.05,1V.33H152l-1,4.56-.65-.11a4.32,4.32,0,0,0-.56-2.47c-.61-.82-1.85-1.23-3.71-1.23a2.07,2.07,0,0,0-1.23.23A1.67,1.67,0,0,0,144.36,2.17ZM131.54,6.59a5,5,0,0,0,.77-1.32,4.68,4.68,0,0,0,.36-1.84,2.74,2.74,0,0,0-.5-1.67,2,2,0,0,0-1.7-.66,1,1,0,0,0-.72.22,2,2,0,0,0-.38.85l-1.45,5.49a10.33,10.33,0,0,0,1.91-.16A3.07,3.07,0,0,0,131.54,6.59Z",opacity:1,strokeColor:"",fillColor:"#192760",width:151.345,height:16.781,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"SignHere":case"Sign Here":t={iconName:"Sign Here",pathdata:"M6.38,1.9A2.56,2.56,0,0,0,6,3.34a2.49,2.49,0,0,0,.44,1.45,3.9,3.9,0,0,0,.73.76l2.07,1.7a9.34,9.34,0,0,1,1.87,2.06,4.6,4.6,0,0,1,.78,2.63,4.78,4.78,0,0,1-1.5,3.43A5.46,5.46,0,0,1,6.23,16.9a7.34,7.34,0,0,1-1.31-.12,7.48,7.48,0,0,1-1.31-.36L3,16.2l-.42-.14a1.12,1.12,0,0,0-.27,0,.71.71,0,0,0-.57.19,2.85,2.85,0,0,0-.38.67H.63l.87-5.38.69,0a10.34,10.34,0,0,0,.2,1.68,3.82,3.82,0,0,0,2,2.5,3.42,3.42,0,0,0,1.5.32,2.76,2.76,0,0,0,2.23-.92A3.14,3.14,0,0,0,8.94,13c0-1-1-2.29-2.94-3.82S3.06,6.08,3.06,4.71A4.59,4.59,0,0,1,4.35,1.42,4.76,4.76,0,0,1,8,.06,6.71,6.71,0,0,1,9.29.19a4.78,4.78,0,0,1,.79.2l.61.2.41.1a2.76,2.76,0,0,0,.37,0,1,1,0,0,0,.65-.18A1.75,1.75,0,0,0,12.5.12h.72l-1,4.8-.62-.08-.09-.79a4.45,4.45,0,0,0-.69-1.91A2.78,2.78,0,0,0,8.39.89,2.2,2.2,0,0,0,6.38,1.9ZM22.8.39H15.66V1a4.71,4.71,0,0,1,1.41.25c.23.11.34.36.34.77a2.86,2.86,0,0,1-.06.54c0,.21-.11.47-.19.77L14.21,14.11a2.47,2.47,0,0,1-.68,1.29,2.62,2.62,0,0,1-1.27.42v.62h7.15v-.62A4.63,4.63,0,0,1,18,15.56c-.22-.1-.33-.36-.33-.77a1.8,1.8,0,0,1,0-.22c0-.08,0-.16,0-.24l.19-.83,3-10.77a2.5,2.5,0,0,1,.66-1.3A2.76,2.76,0,0,1,22.8,1ZM38.09,9.14V8.52H31.18v.62a5.05,5.05,0,0,1,1.44.28c.22.1.32.35.32.75a13.35,13.35,0,0,1-.54,2.54,19.13,19.13,0,0,1-.54,1.87A1.85,1.85,0,0,1,31,15.66a3.77,3.77,0,0,1-1.78.35A3.71,3.71,0,0,1,27,15.38c-1.09-.77-1.64-2.13-1.64-4.08a13.74,13.74,0,0,1,1.78-6.69q2.05-3.72,5-3.72a2.93,2.93,0,0,1,3,1.86,6.09,6.09,0,0,1,.4,2.48l.69.08L37.44,0h-.71a2.44,2.44,0,0,1-.41.53.82.82,0,0,1-.58.2A9.14,9.14,0,0,1,34.33.36,9.23,9.23,0,0,0,31.73,0a9.4,9.4,0,0,0-7.46,3.42,10.46,10.46,0,0,0-2.65,7,5.88,5.88,0,0,0,2.2,4.83,7.77,7.77,0,0,0,5,1.64A13.06,13.06,0,0,0,32,16.52a14.26,14.26,0,0,0,2.33-.75l.67-.3,1.2-4.36a4.15,4.15,0,0,1,.62-1.59A2.28,2.28,0,0,1,38.09,9.14ZM50.36,1a3.36,3.36,0,0,1,1.31.27,1.25,1.25,0,0,1,.58,1.2,6.26,6.26,0,0,1-.15,1.09c-.07.33-.16.7-.27,1.13L50,11.48,44.76.39H39.93V1a3.49,3.49,0,0,1,1.12.2,1.51,1.51,0,0,1,.74.85l.1.25L39.2,12.16a12.62,12.62,0,0,1-1.09,2.93,1.86,1.86,0,0,1-1.35.73v.62h5v-.62a3.62,3.62,0,0,1-1.28-.26,1.21,1.21,0,0,1-.63-1.17,4.72,4.72,0,0,1,0-.64q.1-.52.39-1.59l2.39-8.6,6.23,13.28h.6L52.84,4.66a15.29,15.29,0,0,1,1-2.78A1.52,1.52,0,0,1,55,1.05l.34,0V.39H50.36Zm22.33,13.8a.66.66,0,0,1,0-.15c0-.05,0-.16.07-.34l.2-.83L75.91,2.73a2.43,2.43,0,0,1,.79-1.39A2.78,2.78,0,0,1,77.86,1V.39H70.71V1A4.45,4.45,0,0,1,72,1.2a.81.81,0,0,1,.47.83,2.73,2.73,0,0,1-.07.57c0,.22-.1.47-.17.74L71.07,7.5h-5.7l1.29-4.77a2.27,2.27,0,0,1,.73-1.33A4.36,4.36,0,0,1,69.08,1V.39H61.47V1a4.73,4.73,0,0,1,1.42.25c.22.11.33.36.33.77a2.93,2.93,0,0,1-.08.58c0,.24-.1.48-.17.73L60,
1014.1a2.73,2.73,0,0,1-.65,1.29,2.47,2.47,0,0,1-1.3.43v.62h7.15v-.62a5.13,5.13,0,0,1-1.42-.24c-.21-.1-.31-.34-.31-.72a3,3,0,0,1,0-.57c0-.16.1-.43.19-.8l1.35-4.94h5.7L69.27,14.1a2.21,2.21,0,0,1-.74,1.33,4.77,4.77,0,0,1-1.69.39v.62h7.63v-.62a4.72,4.72,0,0,1-1.25-.17A.82.82,0,0,1,72.69,14.81Zm13.38.25a10.28,10.28,0,0,1-3.72.61,1.86,1.86,0,0,1-1.08-.21.67.67,0,0,1-.26-.54,2.23,2.23,0,0,1,0-.32,3.38,3.38,0,0,1,.09-.41l1.58-5.86a5.51,5.51,0,0,1,2.75.47,2,2,0,0,1,.7,1.75c0,.11,0,.24,0,.41s0,.37-.07.59l.66.12,1.78-6.56L87.85,5a4.75,4.75,0,0,1-1.64,2.12,10.13,10.13,0,0,1-3.27.41l1.43-5.33a1.56,1.56,0,0,1,.45-.86,2.07,2.07,0,0,1,1.23-.23c1.86,0,3.1.41,3.71,1.23a4.32,4.32,0,0,1,.56,2.47L91,5,92,.39H79.06V1a4.75,4.75,0,0,1,1.43.25c.21.11.32.36.32.77a2.73,2.73,0,0,1-.07.57c0,.22-.11.47-.18.74l-3,10.77a2.4,2.4,0,0,1-.68,1.29,2.58,2.58,0,0,1-1.26.42v.62H89l1.41-4.66-.58-.11A7.22,7.22,0,0,1,86.07,15.06ZM114.32,2.23l-1.43,5.33a10.13,10.13,0,0,0,3.27-.41A4.75,4.75,0,0,0,117.8,5l.67.08-1.78,6.56-.66-.12c0-.22.06-.42.07-.59s0-.3,0-.41a2,2,0,0,0-.71-1.75,5.51,5.51,0,0,0-2.75-.47l-1.58,5.86a3.38,3.38,0,0,0-.09.41,2.23,2.23,0,0,0,0,.32.67.67,0,0,0,.26.54,1.86,1.86,0,0,0,1.08.21,10.28,10.28,0,0,0,3.72-.61,7.22,7.22,0,0,0,3.73-3.39l.58.11-1.41,4.66h-18L98.33,8.51h-.68l-1.42,5-.2.83,0,.2a1.77,1.77,0,0,0,0,.23c0,.43.1.7.31.8a4.51,4.51,0,0,0,1.43.26v.62H90.59v-.62a2.58,2.58,0,0,0,1.26-.42,2.4,2.4,0,0,0,.68-1.29l3-10.77.15-.57a4.09,4.09,0,0,0,.1-.79c0-.38-.11-.62-.32-.73A5.3,5.3,0,0,0,94,1V.39h6.6A10.58,10.58,0,0,1,104,.82a3,3,0,0,1,2.24,3.05,4,4,0,0,1-.38,1.6A4.06,4.06,0,0,1,104.62,7a5.32,5.32,0,0,1-1.45.8c-.33.11-.84.25-1.54.42.08.24.13.4.16.46l1.85,5.42a2.81,2.81,0,0,0,.8,1.38,2.42,2.42,0,0,0,1.23.32,2.64,2.64,0,0,0,1.22-.41,2.47,2.47,0,0,0,.68-1.29l2.94-10.77c.07-.27.13-.52.18-.74a2.73,2.73,0,0,0,.07-.57c0-.41-.11-.66-.32-.77A4.75,4.75,0,0,0,109,1V.39h12.93l-1,4.56-.64-.11a4.39,4.39,0,0,0-.57-2.47c-.61-.82-1.85-1.23-3.71-1.23a2.07,2.07,0,0,0-1.23.23A1.7,1.7,0,0,0,114.32,2.23ZM101.5,6.64a4.76,4.76,0,0,0,.77-1.31,4.68,4.68,0,0,0,.36-1.84,2.72,2.72,0,0,0-.5-1.67,2,2,0,0,0-1.7-.66.94.94,0,0,0-.71.22,1.81,1.81,0,0,0-.39.85L97.88,7.72a10.33,10.33,0,0,0,1.91-.16A3,3,0,0,0,101.5,6.64Z",opacity:1,strokeColor:"",fillColor:"#192760",width:121.306,height:16.899,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Accepted":t={iconName:"Accepted",pathdata:"M22.409,0.000 C22.647,0.006 25.364,2.818 27.458,4.112 28.000,4.448 28.015,5.227 23.803,7.927 12.881,15.464 9.475,23.800 8.332,24.542 6.069,21.014 1.899,14.526 0.095,11.832 0.081,11.023 1.967,10.824 6.581,9.529 7.847,11.400 8.402,13.832 8.952,14.781 16.385,3.230 21.985,0.106 21.985,0.106 21.985,0.106 22.266,-0.003 22.409,0.00021190348 z",opacity:1,strokeColor:"",fillColor:"#516c30",width:27.873,height:24.346,stampFillColor:"#e6eddf",stampStrokeColor:""};break;case"Rejected":t={iconName:"Rejected",pathdata:"M3.8779989,0 L11.294,7.4140023 18.710001,0 22.588001,3.8779911 15.172998,11.293032 22.588001,18.707033 18.710001,22.586 11.294,15.169985 3.8779989,22.586 0,18.707033 7.4150017,11.293032 0,3.8779911 z",opacity:1,strokeColor:"",fillColor:"#8a251a",width:22.588,height:22.586,stampFillColor:"#f6dedd",stampStrokeColor:""};break;case"Rejected_with_border":t={iconName:"Rejected_with_border",pathdata:"M3.8779989,0 L11.294,7.4140023 18.710001,0 22.588001,3.8779911 15.172998,11.293032 22.588001,18.707033 18.710001,22.586 11.294,15.169985 3.8779989,22.586 0,18.707033 7.4150017,11.293032 0,3.8779911 z",opacity:1,strokeColor:"",fillColor:"#192760",width:22.588,height:24.346,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"NotApproved":case"Not Approved":t={iconName:"Not Approved",pathdata:"M0,19.46a1.56,1.56,0,0,0,1.16-.9A19.84,19.84,0,0,0,2.1,15L4.42,2.84l-.09-.3a1.82,1.82,0,0,0-.64-1.06,2.41,2.41,0,0,0-1-.24V.48H6.88l4.49,13.64L13,5.78c.09-.52.17-1,.22-1.39a10.11,10.11,0,0,0,.13-1.34,1.83,1.83,0,0,0-.49-1.48,2.49,2.49,0,0,0-1.13-.33V.48H16v.76l-.29.06a1.42,1.42,0,0,0-1,1,23.7,23.7,0,0,0-.84,3.42L11,20.71h-.51L5.1,4.38,3,15c-.17.87-.28,1.53-.33,2a5.32,5.32,0,0,0,0,.79,1.69,1.69,0,0,0,.54,1.44,2.48,2.48,0,0,0,1.1.32v.76H0ZM17.73,4.53C19.54,1.51,21.55,0,23.79,0a4.4,4.4,0,0,1,3.66,1.92,8.52,8.52,0,0,1,1.43,5.19,17.56,17.56,0,0,1-2.53,9.07q-2.7,4.61-6.21,4.6a4.24,4.24,0,0,1-3.6-1.92,8.6,8.6,0,0,1-1.39-5.14A17.68,17.68,0,0,1,17.73,4.53ZM18.37,18c.33,1.19.93,1.78,1.8,1.78a2.83,2.83,0,0,0,2.22-1.29,16.41,16.41,0,0,0,2.06-4.93,35.53,35.53,0,0,0,1.06-4.83A28.26,28.26,0,0,0,25.9,4.6a5.86,5.86,0,0,0-.52-2.55A1.7,1.7,0,0,0,23.78,1Q21.2,1,19.45,7.53a33,33,0,0,0-1.33,8.26A8.15,8.15,0,0,0,18.37,18Zm11.08,1.48a2.34,2.34,0,0,0,1.3-.26,3,3,0,0,0,.85-1.85l3-15.85A3.54,3.54,0,0,0,32,2.56a8,8,0,0,0-1.82,3.16l-.53-.2.8-5H41.81l-.74,5.66-.54-.07c0-1.92-.41-3.24-1.13-3.94a2.6,2.6,0,0,0-1.74-.63L34.79,16.6l-.17,1a2.43,2.43,0,0,0,0,.33,2.26,2.26,0,0,0,0,.26c0,.5.11.82.33.95a3.94,3.94,0,0,0,1.39.3v.76H29.45Zm26.65.76H50.18v-.71a2.28,2.28,0,0,0,1.25-.41,1.64,1.64,0,0,0,.37-1.29c0-.22,0-.75-.11-1.58,0-.17-.08-.89-.2-2.15H47l-1.2,3c-.08.2-.15.42-.22.66a2.84,2.84,0,0,0-.09.69c0,.41.08.67.25.78a2.91,2.91,0,0,0,1.08.3v.71H42.79v-.71a2.44,2.44,0,0,0,.85-.53,5.59,5.59,0,0,0,.9-1.56L52.21.07h.53l2,16.88A5.46,5.46,0,0,0,55.2,19a1.36,1.36,0,0,0,.9.43Zm-4.76-7.31-.76-7.18-3,7.18Zm4.95,6.53a1.82,1.82,0,0,0,1-.5,3.56,3.56,0,0,0,.58-1.59L60.42,4.11c.06-.3.1-.6.15-.9a5.46,5.46,0,0,0,.06-.72c0-.52-.13-.86-.4-1a2.88,2.88,0,0,0-1.1-.23V.48h5.93a5,5,0,0,1,2.5.57c1.26.73,1.9,2.07,1.9,4a5.81,5.81,0,0,1-1.54,4.22,5.32,5.32,0,0,1-4,1.58l-.59,0-1.2-.11L61,16.6l-.17,1a2.72,2.72,0,0,0,0,.3,2.81,2.81,0,0,0,0,.29c0,.5.09.81.28.94a3.26,3.26,0,0,0,1.23.31v.76h-6Zm6-9.67.38.06H63a3,3,0,0,0,1.62-.36,2.87,2.87,0,0,0,1-1.18,7.28,7.28,0,0,0,.6-2,11.67,11.67,0,0,0,.22-2,4.4,4.4,0,0,0-.41-2,1.44,1.44,0,0,0-1.39-.79.71.71,0,0,0-.65.28,3.7,3.7,0,0,0-.32,1Zm5.61,9.69A1.86,1.86,0,0,0,69,18.94a3.54,3.54,0,0,0,.59-1.59L72.15,4.11q.09-.45.15-.9a5.73,5.73,0,0,0,.07-.72,1.1,1.1,0,0,0-.41-1,2.88,2.88,0,0,0-1.1-.23V.48h5.93a5,5,0,0,1,2.5.57c1.27.73,1.9,2.07,1.9,4a5.77,5.77,0,0,1-1.54,4.22,5.31,5.31,0,0,1-4,1.58l-.6,0-1.2-.11L72.74,16.6l-.17,1a2.72,2.72,0,0,0,0,.3c0,.1,0,.19,0,.29,0,.5.1.81.29.94a3.15,3.15,0,0,0,1.23.31v.76h-6.1Zm6.12-9.69.38.06h.33a3,3,0,0,0,1.62-.36,3,3,0,0,0,1-1.18,7.67,7.67,0,0,0,.59-2,11.67,11.67,0,0,0,.22-2,4.4,4.4,0,0,0-.41-2,1.43,1.43,0,0,0-1.38-.79.73.73,0,0,0-.66.28,3.7,3.7,0,0,0-.32,1Zm5.57,9.69a1.9,1.9,0,0,0,1.09-.52,3.56,3.56,0,0,0,.58-1.59L83.84,4.11c0-.27.09-.51.13-.71a7.08,7.08,0,0,0,.09-1c0-.47-.1-.77-.28-.9a3.53,3.53,0,0,0-1.22-.3V.48h5.68a6.57,6.57,0,0,1,3,.53q1.92,1,1.92,3.75a6.79,6.79,0,0,1-.32,2,5.23,5.23,0,0,1-1.08,1.9,4.56,4.56,0,0,1-1.25,1,11.62,11.62,0,0,1-1.33.52c.07.3.12.49.14.57l1.59,6.66a4.07,4.07,0,0,0,.69,1.7,1.72,1.72,0,0,0,1.13.41v.76H88.52l-2.23-9.76h-.58L84.49,16.6l-.17,1a1,1,0,0,0,0,.25,2.62,2.62,0,0,0,0,.28c0,.53.09.86.26,1a3.11,3.11,0,0,0,1.24.32v.76H79.63ZM87.55,9.3A2.59,2.59,0,0,0,89,8.17a7.24,7.24,0,0,0,.66-1.62A8.18,8.18,0,0,0,90,4.29a4.32,4.32,0,0,0-.43-2,1.5,1.5,0,0,0-1.45-.81.71.71,0,0,0-.62.26,2.78,2.78,0,0,0-.33,1.05L85.91,9.5A6.63,6.63,0,0,0,87.55,9.3Zm8.72-4.77Q99,0,102.32,0A4.37,4.37,0,0,1,106,1.92a8.46,8.46,0,0,1,1.44,5.19,17.58,17.58,0,0,1-2.54,9.07q-2.7,4.61-6.21,4.6a4.27,4.27,0,0,1-3.6-1.92,8.67,8.67,0,0,1-1.38-5.14A17.68,17.68,0,0,1,96.27,4.53ZM96.9,18c.33,1.19.93,1.78,1.8,1.78a2.83,2.83,0,0,0,2.22-1.29A16.63,16.63,0,0,0,103,13.54a37.1,37.1,0,0,0,1.06-4.83,29.49,29.49,0,0,0,.38-4.11,5.86,5.86,0,0,0-.51-2.55A1.71,1.71,0,0,0,102.31,1C100.6,1,99.15,3.17,98,7.53a33.42,33.42,0,0,0-1.33,8.26A8.57,8.57,0,0,0,96.9,18ZM114.35.48v.76a2.57,2.57,0,0,0-1.08.17,1.07,1.07,0,0,0-.5,1,2.53,2.53,0,0,0,0,.28,2.64,2.64,0,0,0,0,.28l1.07,11.76L117.77,6c.31-.71.59-1.41.84-2.11A5.25,5.25,0,0,0,119,2.19a.85.85,0,0,0-.38-.81,3.09,3.09,0,0,0-.95-.14V.48h4v.76a2.08,2.08,0,0,0-.73.45,5.35,5.35,0,0,0-.82,1.4l-7.79,17.69h-.66L110,5.74A22,22,0,0,0,109.46,2c-.16-.39-.58-.62-1.28-.71V.48Zm5.15,19a1.83,1.83,0,0,0,1.08-.52,3.42,3.42,0,0,0,.59-1.59l2.54-13.24c.06-.34.11-.64.15-.92a4.83,4.83,0,0,0,.06-.7c0-.5-.09-.81-.28-.94a3.14,3.14,0,0,0-1.22-.31V.48h11.12l-.87,5.6L132.11,6a7,7,0,0,0-.49-3c-.52-1-1.59-1.51-3.19-1.51-.55,0-.9.09-1.
1006.28A2.44,2.44,0,0,0,127,2.74L125.76,9.3a6.21,6.21,0,0,0,2.81-.51A6,6,0,0,0,130,6.18l.58.1L129,14.35l-.56-.14c0-.28,0-.52,0-.73s0-.37,0-.51a2.92,2.92,0,0,0-.61-2.15,3.55,3.55,0,0,0-2.37-.57l-1.36,7.2a4.79,4.79,0,0,0-.07.51,3.28,3.28,0,0,0,0,.39,1,1,0,0,0,.22.66,1.24,1.24,0,0,0,.93.26,6.43,6.43,0,0,0,3.21-.75,7.67,7.67,0,0,0,3.21-4.17l.5.13-1.22,5.74H119.5Zm12.79,0a1.87,1.87,0,0,0,1-.41,3.23,3.23,0,0,0,.71-1.71L136.5,4.11c.07-.38.13-.69.17-1a5.89,5.89,0,0,0,.05-.67c0-.5-.1-.81-.29-.94a3.32,3.32,0,0,0-1.22-.31V.48h6a5.35,5.35,0,0,1,4.63,2.22,10.11,10.11,0,0,1,1.58,6,13.3,13.3,0,0,1-2.34,7.84,8,8,0,0,1-6.86,3.7h-5.93ZM143.87,3.39a2.84,2.84,0,0,0-2.79-2,1.08,1.08,0,0,0-.91.31,1.93,1.93,0,0,0-.34.83L137,17.44a3.1,3.1,0,0,0-.06.39c0,.11,0,.21,0,.3a1.22,1.22,0,0,0,.24.84,1.26,1.26,0,0,0,.9.26q3.67,0,5.33-5.42a23.91,23.91,0,0,0,1-6.94A9.45,9.45,0,0,0,143.87,3.39Z",opacity:1,strokeColor:"",fillColor:"#8a251a",width:147.425,height:20.783,stampFillColor:"#f6dedd",stampStrokeColor:""};break;case"Draft":t={iconName:"Draft",pathdata:"M24.92,3Q22,.46,16.4.46h-11v.87a9.38,9.38,0,0,1,2.24.35q.54.23.54,1.08a3.24,3.24,0,0,1-.1.76c-.07.29-.17.65-.31,1.08L3.08,19.69a3.26,3.26,0,0,1-1.32,1.95A4.67,4.67,0,0,1,0,22.1V23H10.91q7.8,0,12.61-4.22a11.56,11.56,0,0,0,4.32-8.94A8.58,8.58,0,0,0,24.92,3ZM20.41,15.66a10.18,10.18,0,0,1-9.8,6.18A3.18,3.18,0,0,1,9,21.54a1,1,0,0,1-.46-.95,2.47,2.47,0,0,1,0-.35,3,3,0,0,1,.1-.44l5.24-17a1.91,1.91,0,0,1,.62-.95,2.81,2.81,0,0,1,1.66-.35c2.44,0,4.15.76,5.15,2.27a7.29,7.29,0,0,1,.94,4A17.63,17.63,0,0,1,20.41,15.66ZM49.75,9.74a5.84,5.84,0,0,0,2-2.16,5.1,5.1,0,0,0,.59-2.24c0-2.1-1.18-3.53-3.54-4.27A18.67,18.67,0,0,0,43.36.46H32.92v.87a8.79,8.79,0,0,1,2.24.35c.35.14.52.48.52,1a5.36,5.36,0,0,1-.17,1.11c-.06.23-.14.5-.23.8L30.61,19.7a3.26,3.26,0,0,1-1.08,1.81,4.44,4.44,0,0,1-2,.59V23H38.85V22.1a8.54,8.54,0,0,1-2.28-.36c-.32-.15-.49-.53-.49-1.13,0-.11,0-.21,0-.32a1.15,1.15,0,0,1,.06-.28l.31-1.16,2.25-7h1.07L43.89,23h7.64V22.1a4.27,4.27,0,0,1-2.07-.47,3.91,3.91,0,0,1-1.27-1.93l-2.92-7.6a4.67,4.67,0,0,1-.25-.65c1.1-.23,1.91-.42,2.43-.59A8.49,8.49,0,0,0,49.75,9.74ZM46,7.39a6.73,6.73,0,0,1-1.21,1.84,5,5,0,0,1-2.72,1.29,19.56,19.56,0,0,1-3,.23L41.38,3A2.54,2.54,0,0,1,42,1.85a1.76,1.76,0,0,1,1.14-.31,3.38,3.38,0,0,1,2.69.93,3.52,3.52,0,0,1,.79,2.34A5.94,5.94,0,0,1,46,7.39Zm27.9,11.85L70.29,0h-1L55.21,19.78a6.61,6.61,0,0,1-1.66,1.78,5.3,5.3,0,0,1-1.55.6V23h7.45v-.81a8,8,0,0,1-2-.34.85.85,0,0,1-.47-.89,2,2,0,0,1,.17-.79,5.32,5.32,0,0,1,.4-.75L59.8,16H68c.22,1.44.35,2.25.37,2.45a16,16,0,0,1,.2,1.81,1.51,1.51,0,0,1-.67,1.47,6.38,6.38,0,0,1-2.31.46V23H77.1v-.81a4.28,4.28,0,0,1-2.28-.55A4.47,4.47,0,0,1,73.93,19.24ZM60.7,14.64l5.62-8.19,1.4,8.19ZM84,.46h20.2l-1.61,6.39-1-.15a5.61,5.61,0,0,0-.88-3.43Q99.2,1.52,94.86,1.51a3.56,3.56,0,0,0-1.76.3A2.05,2.05,0,0,0,92.34,3L90.1,10.5A16.53,16.53,0,0,0,95,9.91c.77-.33,1.62-1.32,2.56-3l1.06.12-2.82,9.2-1-.17c0-.33.08-.61.1-.85s0-.43,0-.56a2.76,2.76,0,0,0-1-2.38c-.66-.49-2.07-.73-4.23-.73l-2.5,8.22a3.56,3.56,0,0,0-.09.39,1.55,1.55,0,0,0,0,.37,1.32,1.32,0,0,0,1,1.33,5.52,5.52,0,0,0,1.78.21V23H78.58V22.1a4.35,4.35,0,0,0,2-.61,3.33,3.33,0,0,0,1.06-1.8L86.32,4.6c.09-.31.16-.58.23-.81a5.05,5.05,0,0,0,.16-1.1c0-.53-.17-.87-.52-1A8.7,8.7,0,0,0,84,1.33Zm24.1,0h20.89l-1.37,6.46-1-.08c-.07-2.2-.76-3.69-2.09-4.49a6.61,6.61,0,0,0-3.2-.72L116,18.84,115.7,20a2.63,2.63,0,0,0-.07.38,1.51,1.51,0,0,0,0,.3c0,.57.2.94.61,1.08a11.19,11.19,0,0,0,2.56.34V23H106.2V22.1a6.49,6.49,0,0,0,2.4-.3,3.19,3.19,0,0,0,1.56-2.1l5.58-18.07a9.07,9.07,0,0,0-4.83,1.2,9.52,9.52,0,0,0-3.34,3.61l-1-.23Z",opacity:1,strokeColor:"",fillColor:"#192760",width:128.941,height:22.97,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Final":t={iconName:"Final",pathdata:"M24.94,6l-1.06-.13a4.37,4.37,0,0,0-.91-3q-1.51-1.54-6-1.54a4.28,4.28,0,0,0-1.83.26,1.8,1.8,0,0,0-.78,1.08L12,9.21a20.26,20.26,0,0,0,5.15-.52A6.49,6.49,0,0,0,19.8,6.1l1.1.1L18,14.27l-1.09-.15a6.34,6.34,0,0,0,.11-.74c0-.22,0-.38,0-.5a2.26,2.26,0,0,0-1-2.09c-.68-.42-2.15-.63-4.39-.63L9,17.37a3.09,3.09,0,0,0-.1.34,1.22,1.22,0,0,0,0,.32,1.18,1.18,0,0,0,1,1.17,7,7,0,0,0,1.86.18v.77H0v-.77a5.14,5.14,0,0,0,2.11-.53,3,3,0,0,0,1.1-1.58L8.06,4c.09-.27.17-.5.23-.7a3.74,3.74,0,0,0,.18-1,.83.83,0,0,0-.55-.89,10.94,10.94,0,0,0-2.33-.3V.4h21Zm8.54,12.11a1.49,1.49,0,0,1,0-.28,2.46,2.46,0,0,1,.07-.29l.3-1L38.76,3.29a2.93,2.93,0,0,1,1.09-1.6A5.42,5.42,0,0,1,42,1.17V.4H30.17v.77a10.52,10.52,0,0,1,2.34.31.88.88,0,0,1,.56.94,2.58,2.58,0,0,1-.11.67c-.07.26-.18.57-.32,1L27.79,17.28a2.94,2.94,0,0,1-1.12,1.59,5.28,5.28,0,0,1-2.09.51v.77H36.36v-.7
107A10.22,10.22,0,0,1,34,19.07.89.89,0,0,1,33.48,18.12ZM66.19,2.24a2.53,2.53,0,0,1,1.87-1l.56-.06V.4H60.5v.77a8,8,0,0,1,2.16.33,1.47,1.47,0,0,1,1,1.48,5.61,5.61,0,0,1-.25,1.34c-.11.4-.25.87-.43,1.38l-3.08,8.35L51.26.4h-8v.77a8.44,8.44,0,0,1,1.86.24,2.26,2.26,0,0,1,1.22,1.05l.17.31L42.11,14.88a13.74,13.74,0,0,1-1.8,3.61,3.36,3.36,0,0,1-2.22.89v.77h8.23v-.77a7.75,7.75,0,0,1-2.1-.31,1.45,1.45,0,0,1-1-1.44,3.56,3.56,0,0,1,.1-.79,16.15,16.15,0,0,1,.64-2L47.85,4.31,58.11,20.64h1l5.5-15A15.48,15.48,0,0,1,66.19,2.24Zm23,17.13v.78H78.08v-.71A7.47,7.47,0,0,0,80.49,19a1.25,1.25,0,0,0,.7-1.29A13.26,13.26,0,0,0,81,16.16c0-.18-.16-.89-.39-2.15H72.06l-2.3,3a3.7,3.7,0,0,0-.42.66,1.54,1.54,0,0,0-.18.69.74.74,0,0,0,.49.78,10.28,10.28,0,0,0,2.06.3v.71H63.94v-.71a6.43,6.43,0,0,0,1.63-.53,6.63,6.63,0,0,0,1.72-1.56L82,0h1l3.78,16.88A3.69,3.69,0,0,0,87.7,19,3.53,3.53,0,0,0,89.24,19.37Zm-8.93-6.53L78.86,5.65,73,12.84Zm32.8,1.44a11.51,11.51,0,0,1-5.23,3.88,21.36,21.36,0,0,1-7,1A4.88,4.88,0,0,1,99.22,19a.74.74,0,0,1-.58-.71,2.33,2.33,0,0,1,0-.48c0-.13.08-.28.13-.43L104,3.29a2.72,2.72,0,0,1,1.19-1.64,9.4,9.4,0,0,1,2.79-.48V.4H95.4v.77a10.42,10.42,0,0,1,2.34.31.88.88,0,0,1,.56.94,2.58,2.58,0,0,1-.11.67c-.07.25-.17.57-.31.94L93,17.27a2.92,2.92,0,0,1-1.12,1.6,4.59,4.59,0,0,1-1.71.47v.81h21.55l2.32-5.74Z",opacity:1,strokeColor:"",fillColor:"#516c30",width:114.058,height:20.639,stampFillColor:"#e6eddf",stampStrokeColor:""};break;case"Completed":t={iconName:"Completed",pathdata:"M16.37,0,15.08,6.9l-.79-.17c0-.41,0-.66,0-.73a2.73,2.73,0,0,0,0-.32,5.33,5.33,0,0,0-.94-3.47A3,3,0,0,0,11,1.07c-2,0-3.68,1.51-5.13,4.55a18.84,18.84,0,0,0-2,8.29q0,3.06,1.2,4.2a3.82,3.82,0,0,0,2.64,1.13,5.3,5.3,0,0,0,3.51-1.43,10.75,10.75,0,0,0,1.78-2.09l.77.65a9.32,9.32,0,0,1-3.12,3.35A7,7,0,0,1,7,20.81a6.66,6.66,0,0,1-5-2.08,7.72,7.72,0,0,1-2-5.57A14.57,14.57,0,0,1,3.05,3.92Q6.1,0,10.29,0A8.92,8.92,0,0,1,13,.43a9.09,9.09,0,0,0,1.65.43.72.72,0,0,0,.6-.23A2.55,2.55,0,0,0,15.6,0ZM32.83,7.11a15.24,15.24,0,0,1-3.11,9.07q-3.31,4.61-7.63,4.6a5.63,5.63,0,0,1-4.42-1.92A7.47,7.47,0,0,1,16,13.72a15.27,15.27,0,0,1,3.18-9.19Q22.46,0,26.57,0a5.82,5.82,0,0,1,4.5,1.92A7.35,7.35,0,0,1,32.83,7.11ZM29.16,4.6a4.92,4.92,0,0,0-.63-2.55,2.14,2.14,0,0,0-2-1.06Q23.4,1,21.24,7.53a27.45,27.45,0,0,0-1.63,8.26A6.68,6.68,0,0,0,19.92,18a2.24,2.24,0,0,0,2.2,1.78,3.71,3.71,0,0,0,2.73-1.29,15,15,0,0,0,2.54-4.93,30.56,30.56,0,0,0,1.3-4.83A23,23,0,0,0,29.16,4.6Zm21.2,13.62a3.83,3.83,0,0,1,.08-.75,8.6,8.6,0,0,1,.19-.88L53.75,3.31a3,3,0,0,1,.85-1.67,2.72,2.72,0,0,1,1.21-.4V.48H50.42L42.66,14.39,41.21.48h-5.8v.76a4.65,4.65,0,0,1,1.45.21c.26.11.38.37.38.78a4.57,4.57,0,0,1-.08.75c-.06.28-.13.61-.23,1L34.34,15a16.85,16.85,0,0,1-1.16,3.65,1.9,1.9,0,0,1-1.42.86v.76h5.3v-.76a3.22,3.22,0,0,1-1.32-.29A1.48,1.48,0,0,1,35,17.74a8.32,8.32,0,0,1,.17-1.42c.07-.37.17-.82.3-1.37L38.06,4.23l1.71,16.38h.71L50,3.76l-3.2,13.58A2.84,2.84,0,0,1,46,19a4.06,4.06,0,0,1-1.76.49v.76h7.93v-.76a4.79,4.79,0,0,1-1.49-.31Q50.36,19,50.36,18.22ZM67.69,9.29a7.39,7.39,0,0,1-4.89,1.58l-.73,0-1.48-.11L59.21,16.6l-.21,1a1,1,0,0,0,0,.3,2.83,2.83,0,0,0,0,.29c0,.5.12.81.35.94a4.74,4.74,0,0,0,1.51.31v.76H53.31v-.76a2.52,2.52,0,0,0,1.33-.52,3.18,3.18,0,0,0,.72-1.59L58.48,4.11q.1-.45.18-.9a4.48,4.48,0,0,0,.08-.72,1,1,0,0,0-.49-1,4.36,4.36,0,0,0-1.36-.23V.48h7.29a7.29,7.29,0,0,1,3.07.57,4,4,0,0,1,2.33,4A5.22,5.22,0,0,1,67.69,9.29Zm-1.8-5a3.65,3.65,0,0,0-.51-2,1.85,1.85,0,0,0-1.7-.79,1,1,0,0,0-.8.28,3.27,3.27,0,0,0-.4,1l-1.66,7,.47.06h.41a4.37,4.37,0,0,0,2-.36,3.14,3.14,0,0,0,1.2-1.18,6.51,6.51,0,0,0,.74-2A9.87,9.87,0,0,0,65.89,4.25Zm16.9,10.1a8.71,8.71,0,0,1-3.35,3.88,9.36,9.36,0,0,1-4.53,1,2.15,2.15,0,0,1-1-.21.75.75,0,0,1-.37-.71,3.18,3.18,0,0,1,0-.47c0-.14,0-.28.08-.44l3.3-14.08a2.94,2.94,0,0,1,.77-1.64,4.47,4.47,0,0,1,1.79-.48V.48h-8v.76a4.8,4.8,0,0,1,1.5.31c.23.13.35.44.35.94a4.36,4.36,0,0,1-.06.67c0,.26-.12.57-.21,1L69.9,17.34a3.18,3.18,0,0,1-.72,1.6,2.53,2.53,0,0,1-1.34.52v.76H81.91l1.49-5.74ZM85.73,1.24a4.59,4.59,0,0,1,1.5.31c.23.13.34.44.34.94a3.84,3.84,0,0,1-.07.7c0,.28-.11.58-.19.92L84.2,17.35a3.18,3.18,0,0,1-.72,1.59,2.27,2.27,0,0,1-1.06.47h-.07v.8H96.2l1.5-5.74-.62-.13a8.14,8.14,0,0,1-3.94,4.17,9.39,9.39,0,0,1-3.94.75A1.75,1.75,0,0,1,88.06,19a.87.87,0,0,1-.27-.66,3.28,3.28,0,0,1,0-.39,5,5,0,0,1,.09-.51l1.67-7.2a5.16,5.16,0,0,1,2.91.57A2.58,2.58,0,0,1,93.24,13c0,.14,0,.31,0,.51s0,.45-.
1007.73l.7.14,1.88-8.07L95,6.18a5.62,5.62,0,0,1-1.74,2.61,9.05,9.05,0,0,1-3.45.51l1.51-6.56a2.23,2.23,0,0,1,.47-1.06,2,2,0,0,1,1.3-.28c2,0,3.29.5,3.93,1.51a6.13,6.13,0,0,1,.6,3l.68.13L99.4.48H85.73ZM114,6.14l.92-5.66h-14l-1,5,.66.2a7.81,7.81,0,0,1,2.23-3.16,4.91,4.91,0,0,1,3.23-1.06l-3.73,15.85a2.84,2.84,0,0,1-1,1.85,3.48,3.48,0,0,1-1.6.26v.76h8.4v-.76a5.82,5.82,0,0,1-1.71-.3c-.27-.13-.41-.45-.41-.95a2.26,2.26,0,0,1,0-.26c0-.09,0-.2,0-.33l.21-1,3.53-15.1a3.65,3.65,0,0,1,2.14.63c.89.7,1.35,2,1.39,3.94Zm9.44,12.38a9.39,9.39,0,0,1-3.94.75,1.77,1.77,0,0,1-1.14-.26.87.87,0,0,1-.27-.66,3.28,3.28,0,0,1,0-.39,5,5,0,0,1,.09-.51l1.67-7.2a5.12,5.12,0,0,1,2.91.57,2.58,2.58,0,0,1,.75,2.15c0,.14,0,.31,0,.51s0,.45-.07.73l.7.14L126,6.28l-.7-.1a5.78,5.78,0,0,1-1.74,2.61,9.16,9.16,0,0,1-3.46.51l1.51-6.56a2.14,2.14,0,0,1,.48-1.06,2,2,0,0,1,1.3-.28c2,0,3.28.5,3.92,1.51a6,6,0,0,1,.6,3l.68.13,1.08-5.6H116v.76a4.67,4.67,0,0,1,1.51.31c.22.13.34.44.34.94a4,4,0,0,1-.08.7c0,.28-.11.58-.18.92l-3.12,13.24a3.18,3.18,0,0,1-.72,1.59,2.56,2.56,0,0,1-1.34.52v.76h14.06l1.5-5.74-.62-.13A8.14,8.14,0,0,1,123.39,18.52Zm23.32-9.84a11.62,11.62,0,0,1-2.89,7.84,10.6,10.6,0,0,1-8.42,3.7h-7.29v-.76a2.58,2.58,0,0,0,1.18-.41,2.94,2.94,0,0,0,.88-1.71l3.11-13.23c.09-.38.16-.69.21-1a4.49,4.49,0,0,0,.07-.67c0-.5-.12-.81-.36-.94a4.8,4.8,0,0,0-1.5-.31V.48h7.36a7.16,7.16,0,0,1,5.69,2.22A8.72,8.72,0,0,1,146.71,8.68ZM143,6.87a8,8,0,0,0-.64-3.48,3.52,3.52,0,0,0-3.44-2,1.52,1.52,0,0,0-1.11.31,1.75,1.75,0,0,0-.41.83l-3.5,14.9c0,.14,0,.27-.07.39s0,.21,0,.3a1.06,1.06,0,0,0,.3.84,1.75,1.75,0,0,0,1.1.26q4.53,0,6.55-5.42A19.84,19.84,0,0,0,143,6.87Z",opacity:1,strokeColor:"",fillColor:"#516c30",width:146.706,height:20.811,stampFillColor:"#e6eddf",stampStrokeColor:""};break;case"ForPublicRelease":case"For Public Release":t={iconName:"For Public Release"
vendor: 8,934 bytes, line 10
10,pathdata:"M10.33.48l-.65,5.6L9.27,6a9.74,9.74,0,0,0-.36-3A2.27,2.27,0,0,0,6.57,1.4a.85.85,0,0,0-.71.26,2.67,2.67,0,0,0-.3,1.08L4.65,9.28a3.45,3.45,0,0,0,2-.52,6.65,6.65,0,0,0,1-2.59l.43.1L7,14.34l-.42-.14c0-.29,0-.54,0-.75s0-.38,0-.49a4.17,4.17,0,0,0-.39-2.09,1.91,1.91,0,0,0-1.71-.64l-1,7.21c0,.13,0,.24,0,.35s0,.21,0,.31a1.45,1.45,0,0,0,.38,1.17,1.17,1.17,0,0,0,.72.19v.76H0v-.76a1.31,1.31,0,0,0,.82-.54,4.39,4.39,0,0,0,.42-1.58L3.13,4.11c0-.27.06-.51.09-.71,0-.41.07-.73.07-1a1.34,1.34,0,0,0-.21-.9,2.13,2.13,0,0,0-.91-.3V.48ZM20.5,7.11a22.43,22.43,0,0,1-1.88,9.07q-2,4.61-4.62,4.6a3,3,0,0,1-2.67-1.92,10.91,10.91,0,0,1-1-5.14,22.46,22.46,0,0,1,1.92-9.19Q14.23,0,16.71,0a3.11,3.11,0,0,1,2.72,1.92A10.72,10.72,0,0,1,20.5,7.11ZM18.28,4.6a7.7,7.7,0,0,0-.38-2.55c-.26-.7-.65-1-1.19-1-1.28,0-2.35,2.17-3.22,6.53a43.69,43.69,0,0,0-1,8.26,10.72,10.72,0,0,0,.19,2.2c.24,1.18.69,1.77,1.33,1.77s1.16-.43,1.65-1.29a19.35,19.35,0,0,0,1.54-4.93A48.7,48.7,0,0,0,18,8.71,38.21,38.21,0,0,0,18.28,4.6Zm11.59.16a8.73,8.73,0,0,1-.24,2,5.64,5.64,0,0,1-.8,1.9,3.49,3.49,0,0,1-.93,1,7.31,7.31,0,0,1-1,.52c0,.3.08.49.1.57l1.18,6.66a4.54,4.54,0,0,0,.52,1.7,1.1,1.1,0,0,0,.83.41v.76H26.46l-1.65-9.76h-.43l-.91,6.14-.13,1a2,2,0,0,0,0,.25,2.62,2.62,0,0,0,0,.28,1.57,1.57,0,0,0,.2,1,1.77,1.77,0,0,0,.92.32v.76H19.86v-.76a1.33,1.33,0,0,0,.81-.52,4.35,4.35,0,0,0,.43-1.59L23,4.11c0-.27.07-.51.09-.71a8.23,8.23,0,0,0,.07-1,1.3,1.3,0,0,0-.21-.9,2.08,2.08,0,0,0-.91-.3V.48h4.22A3.79,3.79,0,0,1,28.44,1C29.4,1.66,29.87,2.91,29.87,4.76Zm-2.31-.47a5.77,5.77,0,0,0-.32-2,1.12,1.12,0,0,0-1.09-.81.5.5,0,0,0-.46.26,3.87,3.87,0,0,0-.24,1.05L24.52,9.5a3.73,3.73,0,0,0,1.22-.2,2.1,2.1,0,0,0,1.1-1.13,8.41,8.41,0,0,0,.49-1.62A10.75,10.75,0,0,0,27.56,4.29Zm14.92.78a7.06,7.06,0,0,1-1.14,4.22,3.5,3.5,0,0,1-3,1.58l-.44,0-.89-.11-.84,5.86-.12,1a1.45,1.45,0,0,0,0,.3,2.81,2.81,0,0,0,0,.29,1.38,1.38,0,0,0,.21.94,1.93,1.93,0,0,0,.91.31v.76H32.65v-.76a1.28,1.28,0,0,0,.8-.52,4.3,4.3,0,0,0,.44-1.59L35.77,4.11c0-.3.08-.6.11-.9a5.21,5.21,0,0,0,0-.72,1.29,1.29,0,0,0-.3-1,1.82,1.82,0,0,0-.81-.23V.48h4.4a3,3,0,0,1,1.86.57C42,1.78,42.48,3.12,42.48,5.07Zm-2.23-.82a5.74,5.74,0,0,0-.3-2,1.07,1.07,0,0,0-1-.79.5.5,0,0,0-.49.28,5.11,5.11,0,0,0-.24,1l-1,7,.28.06h.25a1.79,1.79,0,0,0,1.2-.36,2.88,2.88,0,0,0,.73-1.18,10.56,10.56,0,0,0,.44-2A15.74,15.74,0,0,0,40.25,4.25Zm12.91-3V.48H50v.76a1.46,1.46,0,0,1,.82.32A2,2,0,0,1,51.24,3a15,15,0,0,1-.14,1.57q0-.17-.15,1.17l-.89,6.16a29.63,29.63,0,0,1-1,4.77c-.55,1.63-1.31,2.44-2.28,2.44a1.59,1.59,0,0,1-1.38-.77,4.16,4.16,0,0,1-.5-2.23q0-.63.15-2c.06-.5.15-1.14.27-1.93l1.26-8.84a4.13,4.13,0,0,1,.46-1.66,1.66,1.66,0,0,1,1-.46V.48H43.34v.76a2,2,0,0,1,.9.3,1.3,1.3,0,0,1,.21.9,7.27,7.27,0,0,1,0,.75c0,.29-.07.59-.11.92l-1,7.24c-.16,1.14-.27,1.93-.32,2.38a19.16,19.16,0,0,0-.12,2,6.13,6.13,0,0,0,1,3.71,2.93,2.93,0,0,0,2.43,1.33c1.39,0,2.45-.9,3.17-2.69a29.58,29.58,0,0,0,1.23-5.61l1-6.74A24.45,24.45,0,0,1,52.3,2.1,1.22,1.22,0,0,1,53.16,1.24Zm7.14,9.82a5.87,5.87,0,0,1,.68,3,8.55,8.55,0,0,1-1,4.27,3.68,3.68,0,0,1-3.48,1.84H51.82v-.76a1.3,1.3,0,0,0,.72-.4,3.94,3.94,0,0,0,.52-1.71L55,4.1c0-.39.09-.72.12-1s0-.46,0-.6c0-.53-.07-.86-.23-1A1.64,1.64,0,0,0,54,1.24V.48h4.17a3.4,3.4,0,0,1,2.67,1,4.91,4.91,0,0,1,1,3.38,5.33,5.33,0,0,1-1.17,3.61,4.8,4.8,0,0,1-1.68,1.22A4.84,4.84,0,0,1,60.3,11.06Zm-1.66,2.45a3.81,3.81,0,0,0-.73-2.74,2.63,2.63,0,0,0-1.58-.52l-1,7.2a4,4,0,0,0-.05.4c0,.15,0,.32,0,.51a.9.9,0,0,0,.33.82,1.13,1.13,0,0,0,.59.12c1,0,1.67-.87,2.1-2.59A13.54,13.54,0,0,0,58.64,13.51Zm.12-5.29A5.92,5.92,0,0,0,59.4,6.1a12.74,12.74,0,0,0,.13-1.74,6.54,6.54,0,0,0-.29-2.11,1.11,1.11,0,0,0-1.13-.81.49.49,0,0,0-.49.32,3.52,3.52,0,0,0-.23,1l-.94,6.62A7.45,7.45,0,0,0,58,9,1.8,1.8,0,0,0,58.76,8.22Zm11.71,6.14a8.78,8.78,0,0,1-2,3.87,4,4,0,0,1-2.74,1,.89.89,0,0,1-.63-.21.93.93,0,0,1-.22-.7,3.4,3.4,0,0,1,0-.48c0-.14,0-.28,0-.44l2-14.08a3.8,3.8,0,0,1,.47-1.64,1.94,1.94,0,0,1,1.08-.48V.48H63.6v.76a2,2,0,0,1,.91.31,1.36,1.36,0,0,1,.22.94c0,.2,0,.42,0,.67s-.07.57-.13,1L62.68,17.34a4.31,4.31,0,0,1-.44,1.6,1.28,1.28,0,0,1-.8.52v.76h8.5l.9-5.74ZM76.89.48H72.32v.76a1.92,1.92,0,0,1,.9.31c.15.13.22.44.22.94a5.56,5.56,0,0,1,0,.67c0,.26-.07.57-.12,1L71.39,17.35A4.35,4.35,0,0,1,71,18.94a1.33,1.33,0,0,1-.81.52v.76h4.57v-.76a1.81,1.81,0,0,1-.91-.32,1.39,1.39,0,0,1-.21-.94c0-.09,0-.18,0-.28l0-.3.12-1L75.65,3.36a4.43,4.43,0,0,1,.43-1.6,1.3,1.3,0,0,1,.81-.52Zm8.46.15A.38.38,0,0,1,85,.87a4.12,4.12,0,0,1-1-.44A3.51,3.51,0,0,0,82.37,0Q79.84,0,78,3.92a21.42,21.42,0,0,0-1.84,9.24,11.15,11.15,0,0,0,1.2,5.57,3.51,3.51,0,0,0,3.05,2.08,3.15,3.15,0,0,0,2.21-1.09,8.92,8.92,0,0,0,1.89-3.35L84,15.72A11.08,11.08,0,0,1,83,17.81a2.71,2.71,0,0,1-2.12,1.43,2,2,0,0,1-1.59-1.13,8.33,8.33,0,0,1-.74-4.2A29.46,29.46,0,0,1,79.7,5.62Q81,1.08,82.8,1.07c.59,0,1.07.38,1.45,1.14a8,8,0,0,1,.57,3.47,2.73,2.73,0,0,1,0,.32c0,.08,0,.32,0,.73l.48.17L86.05,0h-.47A2.93,2.93,0,0,1,85.35.63Zm21.41,13.73.37.12-.9,5.74H94.72l-1.66-9.76h-.43l-.91,6.14-.13,1c0,.08,0,.16,0,.25s0,.19,0,.28a1.57,1.57,0,0,0,.2,1,1.81,1.81,0,0,0,.92.32v.76H88.11v-.76a1.3,1.3,0,0,0,.81-.52,4.35,4.35,0,0,0,.43-1.59L91.24,4.11c0-.27.07-.51.09-.71a8.23,8.23,0,0,0,.07-1,1.3,1.3,0,0,0-.21-.9,2.08,2.08,0,0,0-.91-.3V.48h4.23A3.81,3.81,0,0,1,96.7,1c1,.65,1.43,1.9,1.43,3.75a8.73,8.73,0,0,1-.24,2,5.66,5.66,0,0,1-.81,1.9,3.49,3.49,0,0,1-.93,1,6.73,6.73,0,0,1-1,.52c0,.3.09.49.1.57l1.18,6.66a4.74,4.74,0,0,0,.52,1.7,1,1,0,0,0,.78.39,1.23,1.23,0,0,0,.78-.5A4.3,4.3,0,0,0,99,17.35l1.88-13.24c.05-.34.09-.64.12-.92a6.28,6.28,0,0,0,0-.7,1.45,1.45,0,0,0-.2-.94,2,2,0,0,0-.91-.31V.48h8.26l-.65,5.6L107.1,6a9.57,9.57,0,0,0-.36-3,2.3,2.3,0,0,0-2.38-1.51c-.41,0-.67.09-.78.28a2.87,2.87,0,0,0-.29,1.06l-.91,6.56a3.57,3.57,0,0,0,2.08-.51,6.59,6.59,0,0,0,1.06-2.61l.42.1-1.14,8.08-.42-.15c0-.28,0-.52.05-.73s0-.37,0-.51a3.6,3.6,0,0,0-.46-2.15,2.14,2.14,0,0,0-1.75-.57l-1,7.2a4.7,4.7,0,0,0-.06.51c0,.16,0,.29,0,.39a1.12,1.12,0,0,0,.17.66.77.77,0,0,0,.69.26,3.77,3.77,0,0,0,2.37-.75A7.71,7.71,0,0,0,106.76,14.36ZM95.09,8.17a7.75,7.75,0,0,0,.49-1.62,10.75,10.75,0,0,0,.23-2.26,5.77,5.77,0,0,0-.32-2,1.11,1.11,0,0,0-1.08-.81.48.48,0,0,0-.46.26,3.44,3.44,0,0,0-.25,1.05L92.78,9.5A3.78,3.78,0,0,0,94,9.3,2.08,2.08,0,0,0,95.09,8.17Zm21.32,6.19a8.67,8.67,0,0,1-2,3.87,4,4,0,0,1-2.73,1,.89.89,0,0,1-.63-.21.93.93,0,0,1-.23-.7c0-.19,0-.35,0-.48s0-.28,0-.44l2-14.08a3.84,3.84,0,0,1,.46-1.64,2,2,0,0,1,1.08-.48V.48h-4.86v.76a2,2,0,0,1,.91.31,1.38,1.38,0,0,1,.21.94,5.56,5.56,0,0,1,0,.67c0,.26-.07.57-.12,1l-1.89,13.23a4.16,4.16,0,0,1-.43,1.6,1.27,1.27,0,0,1-.81.52v.76h8.51l.9-5.74Zm8.64,0a7.71,7.71,0,0,1-2.38,4.16,3.82,3.82,0,0,1-2.38.75.77.77,0,0,1-.69-.26,1.2,1.2,0,0,1-.17-.66c0-.1,0-.23,0-.39a4.7,4.7,0,0,1,.06-.51l1-7.2a2.17,2.17,0,0,1,1.76.57,3.69,3.69,0,0,1,.45,2.15c0,.14,0,.31,0,.51s0,.45,0,.73l.42.15,1.13-8.08-.42-.1a6.79,6.79,0,0,1-1,2.61,3.63,3.63,0,0,1-2.09.51l.91-6.56a2.87,2.87,0,0,1,.29-1.06c.12-.19.38-.28.78-.28A2.3,2.3,0,0,1,125,2.91a9.57,9.57,0,0,1,.36,3l.41.13.65-5.6h-8.26v.76a1.93,1.93,0,0,1,.91.31,1.45,1.45,0,0,1,.2.94,6.28,6.28,0,0,1,0,.7c0,.28-.07.58-.11.92l-1.89,13.24a4.35,4.35,0,0,1-.43,1.59,1.33,1.33,0,0,1-.81.52v.76h8.5l.91-5.74Zm10.29,5.15v.71h-4.65v-.71a1.44,1.44,0,0,0,.93-.41,2.08,2.08,0,0,0,.27-1.29c0-.22,0-.75-.08-1.58,0-.17-.06-.89-.15-2.15h-3.31l-.89,3a5.32,5.32,0,0,0-.16.66,3.4,3.4,0,0,0-.08.69,1.06,1.06,0,0,0,.2.78,1.68,1.68,0,0,0,.79.3v.71h-3v-.71a1.8,1.8,0,0,0,.63-.53,6.45,6.45,0,0,0,.67-1.56L132.19.07h.4L134.06,17a7.15,7.15,0,0,0,.36,2.08A1.13,1.13,0,0,0,135.34,19.51Zm-3.79-6.6L131,5.73l-2.27,7.18Zm9.6-4-1.32-2.09a4.57,4.57,0,0,1-.47-.94,5.12,5.12,0,0,1-.28-1.78,5.57,5.57,0,0,1,.27-1.77c.27-.83.7-1.24,1.29-1.24s1.21.51,1.57,1.54A8.78,8.78,0,0,1,142.65,5l.06,1,.39.1.63-5.91h-.46a2.09,2.09,0,0,1-.25.54.46.46,0,0,1-.41.21.57.57,0,0,1-.24-.05,1.23,1.23,0,0,1-.26-.12l-.39-.24a2.34,2.34,0,0,0-.5-.25,2.41,2.41,0,0,0-.85-.16,2.55,2.55,0,0,0-2.31,1.67,9.11,9.11,0,0,0-.83,4.05,10.47,10.47,0,0,0,1.88,5.5A9.21,9.21,0,0,1,141,16a6.49,6.49,0,0,1-.5,2.63,1.59,1.59,0,0,1-1.43,1.14,1.42,1.42,0,0,1-1-.4,3.55,3.55,0,0,1-.78-1.16,7.09,7.09,0,0,1-.52-1.92c-.05-.43-.1-1.12-.13-2.06l-.44-.06-.55,6.62h.46a4.11,4.11,0,0,1,.25-.82.36.36,0,0,1,.36-.23.47.47,0,0,1,.17,0,2.38,2.38,0,0,1,.27.18l.39.27a3.52,3.52,0,0,0,.84.43,2.48,2.48,0,0,0,.84.15,2.91,2.91,0,0,0,2.63-1.88,9.24,9.24,0,0,0,1-4.21,9.85,9.85,0,0,0-.49-3.24A12.1,12.1,0,0,0,141.15,8.92Zm7.75-7.24c.12-.19.38-.28.78-.28a2.3,2.3,0,0,1,2.38,1.51,9.57,9.57,0,0,1,.36,3l.41.13.65-5.6h-8.26v.76a1.93,1.93,0,0,1,.91.31c.14.13.2.44.2.94a6.28,6.28,0,0,1,0,.7c0,.28-.07.58-.11.92l-1.89,13.24a4.35,4.35,0,0,1-.43,1.59,1.33,1.33,0,0,1-.81.52v.76h8.5l.91-5.74-.38-.12a7.71,7.71,0,0,1-2.38,4.16,3.82,3.82,0,0,1-2.38.75.77.77,0,0,1-.69-.26,1.2,1.2,0,0,1-.17-.66c0-.1,0-.23,0-.39a4.7,4.7,0,0,1,.06-.51l1-7.2a2.17,2.17,0,0,1,1.76.57,3.69,3.69,0,0,1,.45,2.15c0,.14,0,.31,0,.51s0,.45,0,.73l.42.15,1.14-8.08-.43-.1a6.79,6.79,0,0,1-1.05,2.61,3.63,3.63,0,0,1-2.09.51l.91-6.56A2.87,2.87,0,0,1,148.9,1.68Z",opacity:1,strokeColor:"",fillColor:"#192760",width:
10153.485,height:20.812,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"NotForPublicRelease":case"Not For Public Release":t={iconName:"Not For Public Release",pathdata:"M9,2.35q-.21.9-.51,3.48L6.69,21.05H6.38L3.11,4.45,1.85,15.19c-.1.89-.17,1.56-.2,2s0,.55,0,.81A2.39,2.39,0,0,0,2,19.45a1.09,1.09,0,0,0,.67.33v.77H0v-.77a1.22,1.22,0,0,0,.71-.91,33.91,33.91,0,0,0,.57-3.68L2.7,2.88l-.06-.3a2.09,2.09,0,0,0-.39-1.07,1,1,0,0,0-.59-.25V.48H4.2L6.93,14.36l1-8.49c.06-.53.11-1,.14-1.4.06-.63.08-1.08.08-1.37a2.67,2.67,0,0,0-.3-1.5,1.07,1.07,0,0,0-.69-.34V.48H9.73v.78l-.18.06C9.29,1.41,9.09,1.75,9,2.35ZM16.74,2a13.19,13.19,0,0,1,.87,5.28,27.45,27.45,0,0,1-1.54,9.22q-1.65,4.66-3.79,4.67-1.35,0-2.19-1.95a13.31,13.31,0,0,1-.85-5.23A27.59,27.59,0,0,1,10.82,4.6C11.91,1.53,13.15,0,14.51,0,15.41,0,16.16.65,16.74,2Zm-.95,2.73a9.33,9.33,0,0,0-.31-2.59c-.21-.72-.54-1.08-1-1.08-1.05,0-1.92,2.21-2.64,6.64a54.69,54.69,0,0,0-.81,8.4,14.21,14.21,0,0,0,.15,2.23c.2,1.2.57,1.8,1.1,1.8s.95-.43,1.35-1.31a22.84,22.84,0,0,0,1.26-5c.28-1.55.49-3.19.65-4.91S15.79,5.74,15.79,4.68Zm2.3.93.32.21A10.7,10.7,0,0,1,19.52,2.6a1.87,1.87,0,0,1,1.6-1.08L19.27,17.63a4,4,0,0,1-.52,1.88,1,1,0,0,1-.79.27v.77h4.17v-.77a1.72,1.72,0,0,1-.85-.3,1.56,1.56,0,0,1-.2-1,2.44,2.44,0,0,1,0-.27c0-.08,0-.2,0-.33l.11-1L23,1.52A1.31,1.31,0,0,1,24,2.17a8.49,8.49,0,0,1,.69,4l.33.07L25.5.48H18.57ZM28.75.48v.78a1.39,1.39,0,0,1,.74.31,1.44,1.44,0,0,1,.18.9q0,.36-.06,1c0,.2-.05.44-.07.71L28,17.62a5.34,5.34,0,0,1-.35,1.61,1.05,1.05,0,0,1-.67.55v.77H30.7v-.77a.82.82,0,0,1-.6-.2,1.69,1.69,0,0,1-.31-1.18c0-.11,0-.22,0-.32l0-.35.83-7.33a1.42,1.42,0,0,1,1.4.64,5,5,0,0,1,.33,2.13c0,.12,0,.28,0,.5s0,.47,0,.76l.34.15.94-8.21-.35-.1a8.12,8.12,0,0,1-.85,2.64,2.42,2.42,0,0,1-1.64.52l.74-6.65a3.34,3.34,0,0,1,.25-1.1.64.64,0,0,1,.59-.26A1.91,1.91,0,0,1,34.28,3a11.32,11.32,0,0,1,.29,3.06l.34.13.54-5.7Zm15,6.75a27.46,27.46,0,0,1-1.55,9.22q-1.65,4.66-3.79,4.67-1.35,0-2.19-1.95a13.49,13.49,0,0,1-.85-5.23A27.59,27.59,0,0,1,37,4.6Q38.65,0,40.69,0c.91,0,1.65.65,2.23,2A13.17,13.17,0,0,1,43.8,7.23ZM42,4.68a9.3,9.3,0,0,0-.32-2.59c-.21-.72-.53-1.08-1-1.08Q39.12,1,38,7.65a54.69,54.69,0,0,0-.81,8.4,13,13,0,0,0,.16,2.23c.2,1.2.56,1.8,1.09,1.8s1-.43,1.35-1.31a23.28,23.28,0,0,0,1.27-5c.27-1.55.49-3.19.64-4.91S42,5.74,42,4.68ZM50.32,1c.78.66,1.17,1.93,1.17,3.8a11,11,0,0,1-.19,2,7.2,7.2,0,0,1-.66,1.93,3.45,3.45,0,0,1-.77,1,5.58,5.58,0,0,1-.8.52c0,.31.07.51.08.58l1,6.78a5.63,5.63,0,0,0,.42,1.72.85.85,0,0,0,.69.42v.77H48.69l-1.36-9.92H47l-.75,6.25-.1,1c0,.08,0,.16,0,.26v.28a1.94,1.94,0,0,0,.16,1,1.39,1.39,0,0,0,.75.32v.77H43.27v-.77a1.07,1.07,0,0,0,.66-.53,4.83,4.83,0,0,0,.36-1.61L45.84,4.18c0-.28.06-.52.08-.72,0-.42,0-.75,0-1a1.48,1.48,0,0,0-.17-.91,1.39,1.39,0,0,0-.74-.31V.48h3.46A2.67,2.67,0,0,1,50.32,1Zm-.73,3.34a7.2,7.2,0,0,0-.26-2.09c-.18-.55-.47-.83-.89-.83a.4.4,0,0,0-.38.27,4.46,4.46,0,0,0-.2,1.06L47.1,9.65a2.39,2.39,0,0,0,1-.2A2,2,0,0,0,49,8.31a10,10,0,0,0,.4-1.65A12.71,12.71,0,0,0,49.59,4.37Zm11.1-3.3c.77.74,1.16,2.1,1.16,4.09a8.51,8.51,0,0,1-.94,4.28A2.78,2.78,0,0,1,58.48,11h-.36l-.73-.12-.69,6-.11,1c0,.1,0,.2,0,.3s0,.2,0,.3a1.7,1.7,0,0,0,.17.95,1.47,1.47,0,0,0,.75.32v.77H53.77v-.77a1.07,1.07,0,0,0,.66-.53,4.83,4.83,0,0,0,.36-1.61L56.34,4.17l.09-.9c0-.31,0-.55,0-.74a1.58,1.58,0,0,0-.25-1,1.33,1.33,0,0,0-.67-.23V.48h3.62A2.11,2.11,0,0,1,60.69,1.07ZM60,4.32a7,7,0,0,0-.25-2.06c-.17-.53-.45-.8-.84-.8a.4.4,0,0,0-.4.29,6.14,6.14,0,0,0-.2,1L57.5,9.93l.23.06h.21a1.3,1.3,0,0,0,1-.36,3.17,3.17,0,0,0,.6-1.2,12.69,12.69,0,0,0,.36-2A19.64,19.64,0,0,0,60,4.32Zm10.6-3.06V.48H68v.78a1.17,1.17,0,0,1,.68.32A2.43,2.43,0,0,1,69,3.05c0,.32,0,.85-.11,1.6,0-.12,0,.27-.12,1.18l-.73,6.26a36.28,36.28,0,0,1-.8,4.86c-.45,1.65-1.07,2.47-1.87,2.47a1.27,1.27,0,0,1-1.13-.78,5.05,5.05,0,0,1-.41-2.27c0-.43,0-1.1.13-2,.05-.51.12-1.17.21-2l1-9a4.69,4.69,0,0,1,.38-1.69,1.24,1.24,0,0,1,.8-.47V.48H62.55v.78a1.39,1.39,0,0,1,.74.31,1.56,1.56,0,0,1,.17.91c0,.21,0,.47,0,.76s-.06.6-.1.94l-.85,7.36c-.14,1.15-.23,2-.27,2.42-.06.76-.1,1.44-.1,2a7.4,7.4,0,0,0,.81,3.78,2.35,2.35,0,0,0,2,1.35c1.14,0,2-.91,2.6-2.74a35.69,35.69,0,0,0,1-5.7l.79-6.85a30.83,30.83,0,0,1,.58-3.7A1.15,1.15,0,0,1,70.61,1.26Zm5.86,10a7.16,7.16,0,0,1,.56,3.1,10.31,10.31,0,0,1-.86,4.34,2.93,2.93,0,0,1-2.86,1.87h-3.8v-.77a1.07,1.07,0,0,0,.59-.41,4.64,4.64,0,0,0,.43-1.73L72.08,4.17c0-.4.08-.73.1-1s0-.46,0-.61a1.83,1.83,0,0,0-.19-1,1.22,1.22,0,0,0-.73-.28V.48h3.43a2.58,2.58,0,0,1,2.19,1.06A5.92,5.92,0,0,1,77.69,5a6.3,6.3,0,0,1-1,3.67,4.18,4.18,0,0,1-1.39,1.24A4.36,4.36,0,0,1,76.47,11.24Zm-1.36,2.49a4.59,4.59,0,0,0-.6-2.79,2,2,0,0,0-1.3-.52l-.84,7.32c0,.12,0,.25,0,.4s0,.33,0,.52a1.06,1.06,0,0,0,.27.84.77.77,0,0,0,.48.11c.8,0,1.38-.87,1.73-2.63A17.3,17.3,0,0,0,75.11,13.73Zm.1-5.38a7.33,7.33,0,0,0,.52-2.15,15,15,0,0,0,.11-1.77,7.89,7.89,0,0,0-.24-2.14c-.16-.55-.46-.83-.93-.83a.42.42,0,0,0-.4.33,4.42,4.42,0,0,0-.19,1l-.77,6.73a5.23,5.23,0,0,0,1.27-.36A1.77,1.77,0,0,0,75.21,8.35Zm9.61,6.24a9.73,9.73,0,0,1-1.66,3.94,2.93,2.93,0,0,1-2.25,1,.64.64,0,0,1-.51-.21,1,1,0,0,1-.19-.71c0-.19,0-.35,0-.49s0-.29,0-.44L81.91,3.41a4.53,4.53,0,0,1,.38-1.66,1.47,1.47,0,0,1,.88-.49V.48h-4v.78a1.39,1.39,0,0,1,.75.32,1.59,1.59,0,0,1,.18.95c0,.2,0,.43,0,.68s0,.58-.1,1L78.42,17.62a5.28,5.28,0,0,1-.35,1.63,1.12,1.12,0,0,1-.67.53v.77h7l.73-5.83ZM90.09,1.26V.48H86.34v.78a1.38,1.38,0,0,1,.74.32,1.59,1.59,0,0,1,.18.95q0,.3,0,.69c0,.25-.06.57-.11.95L85.58,17.64a5.41,5.41,0,0,1-.36,1.61,1.07,1.07,0,0,1-.66.53v.77h3.75v-.77a1.47,1.47,0,0,1-.75-.32,1.78,1.78,0,0,1-.17-1c0-.08,0-.18,0-.28s0-.2,0-.3l.1-1L89.07,3.41a5.68,5.68,0,0,1,.35-1.62A1.1,1.1,0,0,1,90.09,1.26Zm7-.62a.33.33,0,0,1-.3.24,3.1,3.1,0,0,1-.82-.44A2.5,2.5,0,0,0,94.59,0Q92.51,0,91,4a26.57,26.57,0,0,0-1.51,9.39,13.57,13.57,0,0,0,1,5.67c.66,1.41,1.49,2.11,2.5,2.11A2.46,2.46,0,0,0,94.79,20a9.66,9.66,0,0,0,1.55-3.4L96,16a12.68,12.68,0,0,1-.89,2.13c-.54,1-1.12,1.45-1.74,1.45-.47,0-.91-.39-1.31-1.15a10.33,10.33,0,0,1-.6-4.27,36.59,36.59,0,0,1,1-8.43c.72-3.08,1.57-4.63,2.54-4.63.48,0,.88.39,1.19,1.16a10,10,0,0,1,.47,3.53V6.1c0,.07,0,.32,0,.74L97,7l.64-7h-.38A4.28,4.28,0,0,1,97,.64Zm17.57,14,.31.13-.75,5.83h-9.45l-1.35-9.92H103l-.74,6.25-.11,1c0,.08,0,.16,0,.26v.28a1.94,1.94,0,0,0,.16,1,1.39,1.39,0,0,0,.75.32v.77H99.3v-.77a1.12,1.12,0,0,0,.67-.53,5.18,5.18,0,0,0,.35-1.61l1.55-13.46c0-.28.06-.52.08-.72,0-.42,0-.75,0-1a1.48,1.48,0,0,0-.17-.91,1.39,1.39,0,0,0-.74-.31V.48h3.46a2.64,2.64,0,0,1,1.8.55c.78.66,1.17,1.93,1.17,3.8a11,11,0,0,1-.19,2,6.57,6.57,0,0,1-.66,1.93,3.61,3.61,0,0,1-.76,1,6.48,6.48,0,0,1-.81.52c0,.31.07.51.08.58l1,6.78a5.63,5.63,0,0,0,.42,1.72.84.84,0,0,0,.65.4,1.06,1.06,0,0,0,.64-.51,5.41,5.41,0,0,0,.36-1.61l1.54-13.47c0-.34.07-.65.1-.92s0-.52,0-.72a1.61,1.61,0,0,0-.17-.95,1.31,1.31,0,0,0-.74-.32V.48h6.78l-.53,5.7-.34-.13a11.8,11.8,0,0,0-.3-3.09,1.92,1.92,0,0,0-2-1.54c-.33,0-.55.1-.64.29a3.46,3.46,0,0,0-.24,1.07L111,9.45a2.6,2.6,0,0,0,1.72-.51,7.79,7.79,0,0,0,.86-2.66l.35.11-.93,8.2-.35-.15c0-.28,0-.53,0-.74v-.52a4.42,4.42,0,0,0-.37-2.18,1.56,
101.56,0,0,0-1.44-.58l-.83,7.32c0,.18,0,.35,0,.51s0,.3,0,.4a1.45,1.45,0,0,0,.13.67c.09.18.28.26.57.26a2.72,2.72,0,0,0,2-.76A8.33,8.33,0,0,0,114.61,14.59ZM105,8.31a9.81,9.81,0,0,0,.41-1.65,13.72,13.72,0,0,0,.18-2.29,6.87,6.87,0,0,0-.26-2.09c-.17-.55-.47-.83-.89-.83a.4.4,0,0,0-.38.27,5.05,5.05,0,0,0-.2,1.06l-.76,6.87a2.39,2.39,0,0,0,1-.2A2,2,0,0,0,105,8.31Zm17.51,6.28a9.86,9.86,0,0,1-1.67,3.94,2.93,2.93,0,0,1-2.25,1,.64.64,0,0,1-.51-.21,1.1,1.1,0,0,1-.19-.71c0-.19,0-.35,0-.49s0-.29,0-.44l1.64-14.32A4.53,4.53,0,0,1,120,1.75a1.47,1.47,0,0,1,.89-.49V.48h-4v.78a1.39,1.39,0,0,1,.75.32,1.59,1.59,0,0,1,.18.95c0,.2,0,.43,0,.68s0,.58-.1,1l-1.55,13.45a5.28,5.28,0,0,1-.35,1.63,1.1,1.1,0,0,1-.66.53v.77h7l.74-5.83Zm7.09,0a8.33,8.33,0,0,1-2,4.23,2.73,2.73,0,0,1-2,.76c-.29,0-.48-.08-.57-.26a1.45,1.45,0,0,1-.13-.67c0-.1,0-.23,0-.4s0-.33,0-.51l.83-7.32a1.58,1.58,0,0,1,1.44.58,4.42,4.42,0,0,1,.37,2.18c0,.14,0,.31,0,.52s0,.46,0,.74l.34.15.94-8.2-.35-.11a7.71,7.71,0,0,1-.87,2.66,2.56,2.56,0,0,1-1.71.51l.75-6.67A3.46,3.46,0,0,1,127,1.71c.09-.19.31-.29.64-.29a1.92,1.92,0,0,1,2,1.54,11.8,11.8,0,0,1,.3,3.09l.33.13.54-5.7H124v.78a1.31,1.31,0,0,1,.75.32,1.7,1.7,0,0,1,.17.95,6.75,6.75,0,0,1,0,.72c0,.27-.05.58-.09.92l-1.55,13.47a5.18,5.18,0,0,1-.35,1.61,1.12,1.12,0,0,1-.67.53v.77h7l.75-5.83Zm8.45,5.24v.72h-3.83v-.72a1.11,1.11,0,0,0,.77-.41,2.52,2.52,0,0,0,.23-1.31c0-.23,0-.77-.07-1.62,0-.17-.05-.9-.13-2.18h-2.71l-.74,3c0,.2-.09.43-.13.67a4.44,4.44,0,0,0-.06.71,1.27,1.27,0,0,0,.16.79,1.35,1.35,0,0,0,.65.3v.72h-2.47v-.72a1.66,1.66,0,0,0,.52-.54,7.25,7.25,0,0,0,.55-1.58L135.49.07h.33L137,17.23a8.87,8.87,0,0,0,.3,2.11A.9.9,0,0,0,138.08,19.83ZM135,13.12l-.47-7.3-1.86,7.3Zm7.88-4-1.09-2.13a6.38,6.38,0,0,1-.39-1,6.65,6.65,0,0,1-.23-1.82,6.93,6.93,0,0,1,.23-1.8q.33-1.26,1-1.26c.57,0,1,.53,1.3,1.57a10.87,10.87,0,0,1,.36,2.39l0,1,.33.1.51-6h-.38a2.26,2.26,0,0,1-.2.54.38.38,0,0,1-.34.22.54.54,0,0,1-.19-.05l-.22-.13-.32-.25a2.36,2.36,0,0,0-.41-.25,1.82,1.82,0,0,0-.7-.16c-.81,0-1.44.57-1.9,1.7a11.21,11.21,0,0,0-.68,4.12,12.36,12.36,0,0,0,1.55,5.58,10.74,10.74,0,0,1,1.54,4.78,7.8,7.8,0,0,1-.41,2.67c-.28.76-.67,1.15-1.17,1.15a1.07,1.07,0,0,1-.79-.4,3.78,3.78,0,0,1-.64-1.18,7.79,7.79,0,0,1-.42-1.95c-.05-.44-.08-1.14-.11-2.1l-.36-.06-.46,6.73h.38a6.32,6.32,0,0,1,.2-.83.31.31,0,0,1,.3-.24.21.21,0,0,1,.14,0,1.06,1.06,0,0,1,.22.18l.32.27a3,3,0,0,0,.69.44,1.72,1.72,0,0,0,.69.15c.92,0,1.64-.63,2.16-1.91a11.22,11.22,0,0,0,.78-4.28,12.2,12.2,0,0,0-.4-3.29A14.21,14.21,0,0,0,142.85,9.07Zm6.36-7.36c.09-.19.31-.29.64-.29a1.92,1.92,0,0,1,2,1.54,11.8,11.8,0,0,1,.3,3.09l.33.13L153,.48h-6.79v.78a1.31,1.31,0,0,1,.75.32,1.7,1.7,0,0,1,.17.95,6.75,6.75,0,0,1,0,.72c0,.27-.05.58-.09.92l-1.55,13.47a5.18,5.18,0,0,1-.35,1.61,1.12,1.12,0,0,1-.67.53v.77h7l.75-5.83-.31-.13a8.33,8.33,0,0,1-2,4.23,2.73,2.73,0,0,1-2,.76c-.29,0-.48-.08-.57-.26a1.45,1.45,0,0,1-.13-.67c0-.1,0-.23,0-.4s0-.33.05-.51l.83-7.32a1.58,1.58,0,0,1,1.44.58,4.42,4.42,0,0,1,.37,2.18c0,.14,0,.31,0,.52s0,.46,0,.74l.34.15.94-8.2-.35-.11a7.71,7.71,0,0,1-.87,2.66,2.56,2.56,0,0,1-1.71.51L149,2.78A3.46,3.46,0,0,1,149.21,1.71Z",opacity:1,strokeColor:"",fillColor:"#192760",width:152.969,height:21.152,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"ForComment":case"For Comment":t={iconName:"For Comment",pathdata:"M14.1.48l-.89,5.6L12.65,6a7.14,7.14,0,0,0-.48-3c-.54-1-1.6-1.54-3.19-1.54a1.37,1.37,0,0,0-1,.26,2.06,2.06,0,0,0-.42,1.08L6.35,9.28a6,6,0,0,0,2.73-.52,5.92,5.92,0,0,0,1.41-2.59l.58.1L9.52,14.34,9,14.2c0-.29,0-.54.05-.75s0-.38,0-.49a3.15,3.15,0,0,0-.55-2.09,3.07,3.07,0,0,0-2.32-.64L4.77,17.44c0,.13,0,.24-.06.35s0,.21,0,.31a1.23,1.23,0,0,0,.53,1.17,2,2,0,0,0,1,.19v.76H0v-.76a1.91,1.91,0,0,0,1.12-.54,3.56,3.56,0,0,0,.58-1.58L4.27,4.11c.05-.27.09-.51.12-.71a7.42,7.42,0,0,0,.1-1c0-.48-.1-.77-.29-.9A3.54,3.54,0,0,0,3,1.24V.48ZM28,7.11a17.42,17.42,0,0,1-2.57,9.07q-2.75,4.61-6.3,4.6a4.33,4.33,0,0,1-3.65-1.92,8.53,8.53,0,0,1-1.41-5.14,17.56,17.56,0,0,1,2.62-9.19Q19.43,0,22.82,0a4.48,4.48,0,0,1,3.72,1.92A8.46,8.46,0,0,1,28,7.11ZM25,4.6a5.72,5.72,0,0,0-.52-2.55,1.72,1.72,0,0,0-1.63-1c-1.74,0-3.2,2.17-4.39,6.53a32.66,32.66,0,0,0-1.35,8.26,8.24,8.24,0,0,0,.26,2.2c.33,1.18.94,1.77,1.82,1.77a2.88,2.88,0,0,0,2.25-1.29,16.48,16.48,0,0,0,2.1-4.93,37.09,37.09,0,0,0,1.07-4.83A28.26,28.26,0,0,0,25,4.6Zm15.83.16a6.49,6.49,0,0,1-.33,2,5.12,5.12,0,0,1-1.09,1.9,4.65,4.65,0,0,1-1.27,1,11.5,11.5,0,0,1-1.35.52c.07.3.12.49.14.57l1.62,6.66a3.79,3.79,0,0,0,.7,1.7,1.75,1.75,0,0,0,1.14.41v.76H36.13l-2.26-9.76h-.59L32,16.6l-.17,1,0,.25a2.62,2.62,0,0,0,0,.28q0,.8.27,1a3,3,0,0,0,1.25.32v.76H27.11v-.76a1.93,1.93,0,0,0,1.11-.52,3.54,3.54,0,0,0,.59-1.59L31.38,4.11c.06-.27.1-.51.13-.71a6,6,0,0,0,.1-1c0-.47-.1-.77-.29-.9a3.54,3.54,0,0,0-1.24-.3V.48h5.76a6.77,6.77,0,0,1,3,.53Q40.79,2,40.79,4.76Zm-3.16-.47a4.35,4.35,0,0,0-.44-2,1.54,1.54,0,0,0-1.48-.81.75.75,0,0,0-.63.26,2.78,2.78,0,0,0-.33,1.05L33.48,9.5a6.85,6.85,0,0,0,1.67-.2,2.55,2.55,0,0,0,1.49-1.13,6.37,6.37,0,0,0,.67-1.62A7.81,7.81,0,0,0,37.63,4.29ZM58.49,0a2.61,2.61,0,0,1-.32.63.55.55,0,0,1-.49.24A7,7,0,0,1,56.31.43,6.15,6.15,0,0,0,54.1,0q-3.47,0-6,3.92a16.73,16.73,0,0,0-2.51,9.24,8.73,8.73,0,0,0,1.64,5.57,5,5,0,0,0,7.19,1A8.89,8.89,0,0,0,57,16.37l-.64-.65a10.47,10.47,0,0,1-1.47,2.09A4,4,0,0,1,52,19.24a2.89,2.89,0,0,1-2.17-1.13c-.67-.75-1-2.15-1-4.2a22.2,22.2,0,0,1,1.62-8.29q1.8-4.54,4.23-4.55a2.33,2.33,0,0,1,2,1.14,6.16,6.16,0,0,1,.78,3.47c0,.14,0,.25,0,.32s0,.32,0,.73l.66.17L59.12,0ZM72.71,7.11a17.33,17.33,0,0,1-2.57,9.07c-1.82,3.07-3.93,4.6-6.3,4.6a4.34,4.34,0,0,1-3.65-1.92,8.53,8.53,0,0,1-1.4-5.14A17.55,17.55,0,0,1,61.4,4.53Q64.15,0,67.54,0a4.48,4.48,0,0,1,3.72,1.92A8.39,8.39,0,0,1,72.71,7.11Zm-3-2.51a5.72,5.72,0,0,0-.52-2.55,1.72,1.72,0,0,0-1.63-1c-1.74,0-3.2,2.17-4.39,6.53a32.66,32.66,0,0,0-1.35,8.26,8.24,8.24,0,0,0,.26,2.2c.33,1.18.94,1.77,1.82,1.77a2.85,2.85,0,0,0,2.25-1.29,16,16,0,0,0,2.1-4.93,34.08,34.08,0,0,0,1.07-4.83A28.26,28.26,0,0,0,69.68,4.6Zm17.5,13.62a4.63,4.63,0,0,1,.07-.75c0-.3.09-.59.15-.88L90,3.31a3.32,3.32,0,0,1,.7-1.67,2,2,0,0,1,1-.4V.48H87.23l-6.4,13.91L79.63.48H74.84v.76a3.29,3.29,0,0,1,1.2.21c.21.11.31.37.31.78a4.35,4.35,0,0,1-.07.75c0,.28-.11.61-.18,1L74,15a19.63,19.63,0,0,1-1,3.65,1.54,1.54,0,0,1-1.17.86v.76H76.2v-.76a2.31,2.31,0,0,1-1.09-.29,1.6,1.6,0,0,1-.58-1.43,8.8,8.8,0,0,1,.14-1.42c0-.37.14-.82.24-1.37L77,4.24l1.41,16.37H79L86.89,3.76,84.25,17.34A2.94,2.94,0,0,1,83.61,19a2.87,2.87,0,0,1-1.44.49v.76h6.54v-.76a3.39,3.39,0,0,1-1.23-.31Q87.18,19,87.18,18.22Zm17.73,0a4.63,4.63,0,0,1,.07-.75c0-.3.1-.59.16-.88l2.58-13.28a3.24,3.24,0,0,1,.69-1.67,2,2,0,0,1,1-.4V.48H105l-6.4,13.91L97.36.48H92.57v.76a3.29,3.29,0,0,1,1.2.21c.21.11.32.37.32.78A5.65,5.65,0,0,1,94,3c0,.28-.11.61-.19,1L91.69,15a19.63,19.63,0,0,1-1,3.65,1.54,1.54,0,0,1-1.17.86v.76h4.38v-.76a2.33,2.33,0,0,1-1.1-.29,1.6,1.6,0,0,1-.58-1.43,10.12,10.12,0,0,1,.14-1.42c.06-.37.14-.82.25-1.37L94.76,4.24l1.41,16.37h.59l7.86-16.85L102,17.34a3.1,3.1,0,0,1-.64,1.63,3,3,0,0,1-1.45.49v.76h6.55v-.76a3.46,3.46,0,0,1-1.24-.31Q104.91,19,104.91,18.22Zm11.52.3a6.56,6.56,0,0,1-3.25.75,1.27,1.27,0,0,1-.94-.26,1,1,0,0,1-.22-.66,3,3,0,0,1,0-.39,4.88,4.88,0,0,1,.08-.51l1.38-7.2a3.65,3.65,0,0,1,2.4.57,2.92,2.92,0,0,1,.62,2.15c0,.14,0,.31,0,.51s0,.45-.
1006.73l.58.15,1.55-8.08-.58-.1a5.92,5.92,0,0,1-1.44,2.61,6.32,6.32,0,0,1-2.85.51L115,2.74a2.44,2.44,0,0,1,.39-1.06,1.43,1.43,0,0,1,1.07-.28c1.63,0,2.71.5,3.25,1.51a7.37,7.37,0,0,1,.49,3l.56.13.89-5.6H110.31v.76a3.28,3.28,0,0,1,1.25.31c.19.13.28.44.28.94a4.83,4.83,0,0,1-.06.7c0,.28-.09.58-.16.92l-2.57,13.24a3.54,3.54,0,0,1-.59,1.59,1.93,1.93,0,0,1-1.11.52v.76H119l1.24-5.74-.51-.12A7.7,7.7,0,0,1,116.43,18.52ZM136.6,1.24V.48h-4.3v.76a2.5,2.5,0,0,1,1.14.33A1.8,1.8,0,0,1,134,3.05a10.58,10.58,0,0,1-.14,1.34c-.05.41-.13.87-.22,1.39L132,14.12,127.41.48h-4.22v.76a2.53,2.53,0,0,1,1,.24,1.82,1.82,0,0,1,.64,1.06l.1.3L122.55,15a19.54,19.54,0,0,1-1,3.61,1.59,1.59,0,0,1-1.18.9v.76h4.37v-.76a2.5,2.5,0,0,1-1.12-.32,1.67,1.67,0,0,1-.55-1.44,5.32,5.32,0,0,1,0-.79c0-.43.17-1.09.34-2l2.08-10.57L131,20.71h.52l2.91-15a24.72,24.72,0,0,1,.85-3.42,1.42,1.42,0,0,1,1-1Zm.48-.76-.81,5,.54.2a8.1,8.1,0,0,1,1.85-3.16,3.63,3.63,0,0,1,2.66-1.06l-3.08,15.85a3,3,0,0,1-.86,1.85,2.42,2.42,0,0,1-1.32.26v.76H143v-.76a4,4,0,0,1-1.41-.3c-.23-.13-.34-.45-.34-.95a2.26,2.26,0,0,1,0-.26c0-.09,0-.2,0-.33l.17-1,2.92-15.1a2.64,2.64,0,0,1,1.76.63c.74.7,1.12,2,1.15,3.94l.55.07L148.6.48Z",opacity:1,strokeColor:"",fillColor:"#192760",width:148.603,height:20.812,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"Void":t={iconName:"Void",pathdata:"M27.88,1.72a6.53,6.53,0,0,0-1.81,1.42L9,21.12H7.54L4.09,5.83A11.83,11.83,0,0,0,2.82,2Q2.3,1.4,0,1.26V.48H13.54v.78a11,11,0,0,0-2.37.18q-1.11.27-1.11,1.05a1.43,1.43,0,0,0,0,.29c0,.09,0,.19,0,.28l2.35,12,8.56-9a25.11,25.11,0,0,0,1.83-2.14,3.15,3.15,0,0,0,.82-1.68c0-.41-.28-.69-.84-.82a12.57,12.57,0,0,0-2.08-.15V.48h8.7v.78A7.11,7.11,0,0,0,27.88,1.72ZM57.37,7.23q0,4.85-5.56,9.22a21.41,21.41,0,0,1-13.62,4.67,14.41,14.41,0,0,1-7.89-1.95,6,6,0,0,1-3-5.23q0-4.92,5.66-9.34A21.12,21.12,0,0,1,46.2,0a15,15,0,0,1,8,2A6,6,0,0,1,57.37,7.23ZM50.82,4.68a3.46,3.46,0,0,0-1.13-2.59A4.93,4.93,0,0,0,46.17,1q-5.64,0-9.49,6.64c-1.94,3.36-2.92,6.16-2.92,8.4a4.27,4.27,0,0,0,.56,2.23q1.08,1.8,3.93,1.8a9.24,9.24,0,0,0,4.87-1.31,15.24,15.24,0,0,0,4.54-5A21.81,21.81,0,0,0,50,8.85,14.23,14.23,0,0,0,50.82,4.68ZM66,18.49a1.49,1.49,0,0,1,0-.28c0-.1,0-.2.08-.3l.35-1L72,3.41a2.94,2.94,0,0,1,1.25-1.62,6.79,6.79,0,0,1,2.4-.53V.48H62.19v.78a13.27,13.27,0,0,1,2.67.32.88.88,0,0,1,.64.95,2.38,2.38,0,0,1-.12.69c-.08.25-.2.57-.36.95L59.45,17.64a3,3,0,0,1-1.28,1.61,6.84,6.84,0,0,1-2.39.53v.77H69.27v-.77a13.72,13.72,0,0,1-2.67-.32A.9.9,0,0,1,66,18.49Zm38.25-9.67q0,4.59-5.15,8-5.73,3.77-15,3.76h-13v-.77a7.4,7.4,0,0,0,2.1-.41,3.08,3.08,0,0,0,1.57-1.75L80.28,4.17c.16-.38.28-.7.37-1a2.27,2.27,0,0,0,.12-.68.89.89,0,0,0-.64-.95,13.41,13.41,0,0,0-2.68-.32V.48H90.6q6.68,0,10.15,2.27A6.92,6.92,0,0,1,104.23,8.82ZM97.58,7a5.28,5.28,0,0,0-1.13-3.54q-1.77-2-6.14-2a4.24,4.24,0,0,0-2,.32,1.77,1.77,0,0,0-.74.84L81.35,17.73a1.72,1.72,0,0,0-.12.39,1.89,1.89,0,0,0,0,.31.89.89,0,0,0,.54.85,5.1,5.1,0,0,0,2,.26q8.07,0,11.68-5.5A12.61,12.61,0,0,0,97.58,7Z",opacity:1,strokeColor:"",fillColor:"#8a251a",width:104.233,height:21.123,stampFillColor:"#f6dedd",stampStrokeColor:""};break;case"PreliminaryResults":case"Preliminary Results":t={iconName:"Preliminary Results"
vendor: 9,495 bytes, line 10
10,pathdata:"M9.23,5.08q0-3-1.32-4.08A2.6,2.6,0,0,0,6.17.41H2v.78a1.5,1.5,0,0,1,.76.23,1.39,1.39,0,0,1,.28,1c0,.19,0,.43,0,.73s-.07.61-.1.91L1.17,17.56a4.76,4.76,0,0,1-.41,1.62A1.18,1.18,0,0,1,0,19.7v.78H4.25V19.7a1.77,1.77,0,0,1-.86-.31,1.5,1.5,0,0,1-.2-1c0-.09,0-.19,0-.3a1.36,1.36,0,0,1,0-.29l.12-1,.78-6L5,11h.41a3.21,3.21,0,0,0,2.78-1.6A7.57,7.57,0,0,0,9.23,5.08ZM7,6.32a10,10,0,0,1-.42,2,3,3,0,0,1-.68,1.21,1.63,1.63,0,0,1-1.13.36H4.53l-.27-.06,1-7.15a4.75,4.75,0,0,1,.22-1,.45.45,0,0,1,.46-.29,1,1,0,0,1,1,.8,6.22,6.22,0,0,1,.29,2.06A18,18,0,0,1,7,6.32ZM23.4,18.75a3.35,3.35,0,0,1-2.23.76.68.68,0,0,1-.64-.26,1.27,1.27,0,0,1-.16-.68c0-.09,0-.23,0-.39s0-.34.05-.51l.95-7.33a1.92,1.92,0,0,1,1.65.59,4,4,0,0,1,.42,2.18c0,.14,0,.31,0,.52s0,.46,0,.74l.4.15,1.07-8.21-.4-.1a7,7,0,0,1-1,2.65,3.15,3.15,0,0,1-2,.52l.85-6.67a3,3,0,0,1,.28-1.08c.11-.19.35-.28.73-.28a2.16,2.16,0,0,1,2.23,1.54A10.27,10.27,0,0,1,26,6l.39.13L27,.41H19.2v.78a1.67,1.67,0,0,1,.86.31,1.52,1.52,0,0,1,.19,1,6.58,6.58,0,0,1,0,.71c0,.28-.07.59-.11.93L18.33,17.56a4.59,4.59,0,0,1-.4,1.62,1.22,1.22,0,0,1-.74.51,1,1,0,0,1-.73-.4A5.08,5.08,0,0,1,16,17.56l-1.1-6.77c0-.08,0-.27-.1-.58a5.14,5.14,0,0,0,.92-.53,3.23,3.23,0,0,0,.87-1,6,6,0,0,0,.76-1.93,9.63,9.63,0,0,0,.22-2c0-1.87-.44-3.14-1.34-3.81a3.4,3.4,0,0,0-2-.54h-4v.78a1.78,1.78,0,0,1,.85.3,1.4,1.4,0,0,1,.19.91c0,.24,0,.56-.06,1,0,.21-.05.45-.09.73L9.31,17.56a4.53,4.53,0,0,1-.41,1.62,1.15,1.15,0,0,1-.75.52v.78h4.28V19.7a1.62,1.62,0,0,1-.86-.32,1.72,1.72,0,0,1-.18-1v-.29c0-.09,0-.18,0-.25l.12-1,.86-6.24h.4l1.55,9.92h10.8L26,14.65l-.35-.13A7.9,7.9,0,0,1,23.4,18.75ZM13.67,9.38a3.35,3.35,0,0,1-1.15.2l.87-6.87a4,4,0,0,1,.23-1.06.45.45,0,0,1,.43-.27,1.05,1.05,0,0,1,1,.83,6.14,6.14,0,0,1,.3,2.08,11.74,11.74,0,0,1-.21,2.29,9,9,0,0,1-.47,1.65A2,2,0,0,1,13.67,9.38ZM35,14.65l-.84,5.83h-8V19.7a1.24,1.24,0,0,0,.76-.52,4.73,4.73,0,0,0,.4-1.63L29.15,4.1q.08-.57.12-1c0-.26,0-.48,0-.68a1.42,1.42,0,0,0-.21-1,1.67,1.67,0,0,0-.85-.31V.41h4.56v.78a1.67,1.67,0,0,0-1,.49,4.17,4.17,0,0,0-.44,1.66L29.49,17.65c0,.16,0,.31,0,.45a3.47,3.47,0,0,0,0,.48,1,1,0,0,0,.21.72.8.8,0,0,0,.59.21,3.54,3.54,0,0,0,2.56-1.05,9.24,9.24,0,0,0,1.91-3.94Zm2.79,4.73a1.61,1.61,0,0,0,.85.32v.78H34.39V19.7a1.18,1.18,0,0,0,.76-.52,4.76,4.76,0,0,0,.41-1.62L37.33,4.1c.05-.38.09-.7.11-1a5.83,5.83,0,0,0,0-.68,1.5,1.5,0,0,0-.2-1,1.71,1.71,0,0,0-.85-.31V.41h4.29v.78a1.22,1.22,0,0,0-.77.52,4.9,4.9,0,0,0-.39,1.63L37.78,16.8l-.11,1,0,.29c0,.11,0,.2,0,.29A1.52,1.52,0,0,0,37.83,19.38Zm12.2,0a1.81,1.81,0,0,0,.85.31v.78h-4.5V19.7a1.64,1.64,0,0,0,1-.49,4,4,0,0,0,.44-1.66l1.81-13.8-5.4,17.12h-.4l-1-16.64L41.39,15.12c-.07.56-.13,1-.17,1.39-.06.61-.09,1.09-.09,1.45a2,2,0,0,0,.4,1.45,1.19,1.19,0,0,0,.75.29v.78h-3V19.7a1.21,1.21,0,0,0,.81-.87,29.47,29.47,0,0,0,.66-3.71L42.21,4c0-.38.09-.71.12-1a5.41,5.41,0,0,0,.05-.75c0-.42-.07-.69-.21-.8a1.69,1.69,0,0,0-.83-.21V.41h3.29l.83,14.14L49.85.41h3.07v.78a1.12,1.12,0,0,0-.69.41,4.08,4.08,0,0,0-.48,1.69L50,16.79c0,.29-.08.59-.11.89s0,.56,0,.76A1.41,1.41,0,0,0,50,19.39Zm5,0a1.61,1.61,0,0,0,.85.32v.78H51.56V19.7a1.18,1.18,0,0,0,.76-.52,4.76,4.76,0,0,0,.41-1.62L54.5,4.1c0-.38.09-.7.11-1a5.83,5.83,0,0,0,0-.68,1.5,1.5,0,0,0-.2-1,1.71,1.71,0,0,0-.85-.31V.41h4.29v.78a1.22,1.22,0,0,0-.77.52,4.9,4.9,0,0,0-.39,1.63L55,16.8l-.11,1,0,.29c0,.11,0,.2,0,.29A1.52,1.52,0,0,0,55,19.38ZM66.13,5.75,64.13,21h-.36L60,4.38,58.6,15.12c-.12.89-.2,1.55-.23,2a7.32,7.32,0,0,0,0,.81,2.17,2.17,0,0,0,.38,1.46,1.32,1.32,0,0,0,.77.32v.78h-3V19.7a1.26,1.26,0,0,0,.81-.91,29,29,0,0,0,.65-3.67L59.56,2.81,59.5,2.5a2,2,0,0,0-.45-1.06,1.21,1.21,0,0,0-.67-.25V.41h2.9L64.4,14.28,65.52,5.8c.07-.53.12-1,.16-1.41.06-.62.09-1.08.09-1.36a2.45,2.45,0,0,0-.34-1.51,1.39,1.39,0,0,0-.79-.33V.41h3v.78l-.21.06c-.29.08-.52.43-.68,1A34.22,34.22,0,0,0,66.13,5.75ZM83.27,1A3.41,3.41,0,0,0,81.21.41h-4v.78a1.74,1.74,0,0,1,.85.3c.14.13.2.43.2.91,0,.24,0,.56-.06,1,0,.21-.06.45-.09.73L76.38,17.56A4.53,4.53,0,0,1,76,19.18a1.18,1.18,0,0,1-.76.52v0a1,1,0,0,1-.67-.45,8.11,8.11,0,0,1-.34-2.12L72.83,0h-.38L67.11,17.64a6.42,6.42,0,0,1-.63,1.58,1.84,1.84,0,0,1-.59.54v.72h2.83v-.72a1.68,1.68,0,0,1-.75-.31,1.16,1.16,0,0,1-.18-.79,3.46,3.46,0,0,1,.07-.7,5.16,5.16,0,0,1,.15-.67l.84-3H72c.08,1.28.13,2,.13,2.18.06.85.08,1.39.08,1.61a2.26,2.26,0,0,1-.25,1.31,1.43,1.43,0,0,1-.88.42v.72H79.5V19.7a1.58,1.58,0,0,1-.86-.32,1.7,1.7,0,0,1-.19-1c0-.1,0-.2,0-.29a1.81,1.81,0,0,1,0-.25l.12-1,.85-6.24h.41l1.55,9.92h2.9V19.7a1,1,0,0,1-.79-.41A5.15,5.15,0,0,1,83,17.56l-1.11-6.77c0-.08,0-.27-.09-.58a5.53,5.53,0,0,0,.92-.53,3.52,3.52,0,0,0,.87-1,6.16,6.16,0,0,0,.75-1.93,9.67,9.67,0,0,0,.23-2C84.61,2.89,84.16,1.62,83.27,1ZM69.19,13.05l2.13-7.3.53,7.3Zm13-6.47a8.39,8.39,0,0,1-.46,1.65,2,2,0,0,1-1,1.15,3.29,3.29,0,0,1-1.14.2l.87-6.87a3.61,3.61,0,0,1,.23-1.06.45.45,0,0,1,.43-.27,1.05,1.05,0,0,1,1,.83,6.14,6.14,0,0,1,.3,2.08A11,11,0,0,1,82.22,6.58ZM90.48.41h3v.78a1.07,1.07,0,0,0-.55.41,6.13,6.13,0,0,0-.77,1.62l-2.72,8-.72,5.55c0,.22-.07.51-.1.86a7.29,7.29,0,0,0-.06.73,1.46,1.46,0,0,0,.29,1.07,1.61,1.61,0,0,0,.83.25v.78H85V19.7a1.56,1.56,0,0,0,.93-.39,3.7,3.7,0,0,0,.53-1.76l.85-6.45-1.26-8a6.07,6.07,0,0,0-.36-1.47.81.81,0,0,0-.7-.4V.41h4v.78a1.32,1.32,0,0,0-.76.23c-.15.12-.23.4-.23.84a4.46,4.46,0,0,0,0,.48c0,.19,0,.39.07.6l1,6.54,1.88-5.55c.1-.29.18-.55.24-.79a4.68,4.68,0,0,0,.14-1.11,1.35,1.35,0,0,0-.31-1,1.14,1.14,0,0,0-.66-.2Zm18.61,1.22c.1-.19.35-.28.73-.28a2.16,2.16,0,0,1,2.23,1.54A10.27,10.27,0,0,1,112.39,6l.38.13.62-5.7h-7.76v.78a1.67,1.67,0,0,1,.86.31,1.59,1.59,0,0,1,.19,1,6.58,6.58,0,0,1,0,.71c0,.28-.07.59-.11.93l-1.77,13.46a4.53,4.53,0,0,1-.41,1.62,1.17,1.17,0,0,1-.73.51,1,1,0,0,1-.73-.4,5.08,5.08,0,0,1-.49-1.73l-1.1-6.77c0-.08,0-.27-.1-.58a5.14,5.14,0,0,0,.92-.53,3.4,3.4,0,0,0,.88-1,6.16,6.16,0,0,0,.75-1.93,9.63,9.63,0,0,0,.22-2c0-1.87-.44-3.14-1.34-3.81a3.38,3.38,0,0,0-2-.54h-4v.78a1.78,1.78,0,0,1,.85.3,1.4,1.4,0,0,1,.19.91c0,.24,0,.56-.06,1,0,.21,0,.45-.09.73L95.74,17.56a4.53,4.53,0,0,1-.41,1.62,1.15,1.15,0,0,1-.75.52v.78h4.28V19.7a1.62,1.62,0,0,1-.86-.32,1.72,1.72,0,0,1-.18-1v-.29c0-.09,0-.18,0-.25l.12-1,.86-6.24h.4l1.55,9.92h10.8l.85-5.83-.35-.13a7.9,7.9,0,0,1-2.24,4.23,3.35,3.35,0,0,1-2.23.76.71.71,0,0,1-.65-.26,1.37,1.37,0,0,1-.15-.68c0-.09,0-.23,0-.39s0-.34.05-.51l.95-7.33a1.92,1.92,0,0,1,1.65.59,4,4,0,0,1,.42,2.18c0,.14,0,.31,0,.52s0,.46,0,.74l.4.15,1.07-8.21-.41-.1a7,7,0,0,1-1,2.65,3.15,3.15,0,0,1-2,.52l.85-6.67A3,3,0,0,1,109.09,1.63Zm-9,7.75a3.35,3.35,0,0,1-1.15.2l.87-6.87a4,4,0,0,1,.23-1.06.45.45,0,0,1,.43-.27,1.05,1.05,0,0,1,1,.83,6.14,6.14,0,0,1,.3,2.08,11.74,11.74,0,0,1-.21,2.29,9,9,0,0,1-.47,1.65A2,2,0,0,1,100.1,9.38ZM120.18.07h.43l-.59,6-.37-.1-.05-1a10.11,10.11,0,0,0-.41-2.39c-.34-1-.83-1.57-1.48-1.57s-.95.42-1.21,1.26a6.17,6.17,0,0,0-.25,1.8,5.92,5.92,0,0,0,.26,1.82,5.23,5.23,0,0,0,.44,1L118.19,9a12.6,12.6,0,0,1,1.12,2.57,10.75,10.75,0,0,1,.47,3.29,10,10,0,0,1-.9,4.29,2.76,2.76,0,0,1-2.46,1.91,2.17,2.17,0,0,1-.79-.15,3.28,3.28,0,0,1-.79-.44l-.36-.28-.26-.18a.38.38,0,0,0-.16,0,.34.34,0,0,0-.34.23,5.5,5.5,0,0,0-.23.84h-.43l.52-6.73.41.06c0,1,.07,1.66.12,2.09a7.13,7.13,0,0,0,.49,1.95,3.52,3.52,0,0,0,.73,1.18,1.25,1.25,0,0,0,.9.41c.57,0,1-.39,1.34-1.15a7.13,7.13,0,0,0,.47-2.68,9.86,9.86,0,0,0-1.76-4.77,11.23,11.23,0,0,1-1.77-5.58,9.8,9.8,0,0,1,.78-4.12A2.41,2.41,0,0,1,117.46,0a2.06,2.06,0,0,1,.79.16,1.9,1.9,0,0,1,.47.25l.37.25a1.15,1.15,0,0,0,.25.12.47.47,0,0,0,.22,0A.44.44,0,0,0,120,.62,2.6,2.6,0,0,0,120.18.07Zm10,2a26.67,26.67,0,0,0-.66,3.7l-.9,6.85a32.12,32.12,0,0,1-1.16,5.7c-.68,1.83-1.67,2.74-3,2.74a2.7,2.7,0,0,1-2.28-1.36,6.67,6.67,0,0,1-.92-3.77,19.46,19.46,0,0,1,.11-2c0-.46.15-1.26.3-2.42l1-7.36c0-.33.08-.64.11-.93s0-.55,0-.77a1.38,1.38,0,0,0-.2-.91,1.74,1.74,0,0,0-.85-.3V.41h4.43v.78a1.39,1.39,0,0,0-.91.47,4.25,4.25,0,0,0-.44,1.68l-1.18,9c-.11.8-.19,1.46-.25,2q-.15,1.37-.15,2a4.41,4.41,0,0,0,.48,2.27,1.44,1.44,0,0,0,1.29.78c.91,0,1.62-.82,2.13-2.48a30.62,30.62,0,0,0,.91-4.85L129,5.76c.1-.91.14-1.3.13-1.19a14.64,14.64,0,0,0,.13-1.6,2.12,2.12,0,0,0-.38-1.46,1.35,1.35,0,0,0-.77-.32V.41H131v.78A1.18,1.18,0,0,0,130.23,2.06Zm8.41,12.59-.84,5.83h-8V19.7a1.24,1.24,0,0,0,.76-.52,4.73,4.73,0,0,0,.4-1.63L132.75,4.1q.08-.57.12-1c0-.26,0-.48,0-.68,0-.51-.06-.83-.2-1a1.67,1.67,0,0,0-.85-.31V.41h4.56v.78a1.67,1.67,0,0,0-1,.49A4.17,4.17,0,0,0,135,3.34l-1.87,14.31c0,.16,0,.31-.05.45s0,.3,0,.48a1,1,0,0,0,.21.72.8.8,0,0,0,.59.21,3.54,3.54,0,0,0,2.56-1.05,9.24,9.24,0,0,0,1.91-3.94Zm7.72-8.56a7.63,7.63,0,0,0-.79-4,1.53,1.53,0,0,0-1.21-.64l-2,15.35-.12,1a2.47,2.47,0,0,0,0,.34,2.35,2.35,0,0,0,0,.26c0,.52.08.84.23,1a2,2,0,0,0,1,.3v.78h-4.76V19.7a1.18,1.18,0,0,0,.9-.26,3.75,3.75,0,0,0,.6-1.88l2.11-16.11a2.17,2.17,0,0,0-1.83,1.08,9.57,9.57,0,0,0-1.27,3.21l-.37-.2.56-5.13h7.91l-.52,5.76Zm3.41-3.79a6.17,6.17,0,0,0-.25,1.8,5.63,5.63,0,0,0,.26,1.82,5.23,5.23,0,0,0,.44,1L151.46,9a13.19,13.19,0,0,1,1.13,2.57,11.08,11.08,0,0,1,.46,3.29,10,10,0,0,1-.9,4.29,2.76,2.76,0,0,1-2.46,1.91,2.21,2.21,0,0,1-.79-.15,3.28,3.28,0,0,1-.79-.44l-.36-.28-.26-.18a.38.38,0,0,0-.16,0,.34.34,0,0,0-.34.23,5.5,5.5,0,0,0-.23.84h-.43l.52-6.73.41.06c0,1,.07,1.66.12,2.09a7.13,7.13,0,0,0,.49,1.95,3.52,3.52,0,0,0,.73,1.18,1.25,1.25,0,0,0,.9.41c.57,0,1-.39,1.34-1.15a7.13,7.13,0,0,0,.47-2.68,9.86,9.86,0,0,0-1.76-4.77,11.23,11.23,0,0,1-1.77-5.58,9.8,9.8,0,0,1,.78-4.12A2.41,2.41,0,0,1,150.73,0a2.06,2.06,0,0,1,.79.16,1.9,1.9,0,0,1,.47.25l.37.25a1.34,1.34,0,0,0,.24.12.56.56,0,0,0,.23,0,.44.44,0,0,0,.39-.21,2.6,2.6,0,0,0,.23-.55h.43l-.59,6-.37-.1,0-1a10.11,10.11,0,0,0-.41-2.39c-.34-1-.83-1.57-1.48-1.57S150,1.46,149.77,2.3Z",opacity:1,strokeColor:"",fillColor:"#192760",width:
10153.879,height:21.051,stampFillColor:"#dce3ef",stampStrokeColor:""};break;case"InformationOnly":case"Information Only":t={iconName:"Information Only",pathdata:"M4,19.14a2,2,0,0,0,1,.32v.76H0v-.76a1.42,1.42,0,0,0,.87-.52,4,4,0,0,0,.47-1.59l2-13.24c.06-.38.1-.69.13-1a5.73,5.73,0,0,0,0-.67c0-.5-.08-.81-.24-.94a2.2,2.2,0,0,0-1-.31V.48H7.26v.76a1.48,1.48,0,0,0-.88.52,4.14,4.14,0,0,0-.45,1.6l-2,13.24-.13,1c0,.1,0,.19,0,.3a2.72,2.72,0,0,0,0,.28A1.32,1.32,0,0,0,4,19.14ZM18.17,1.3l.24-.06V.48H15v.76a1.66,1.66,0,0,1,.9.33,2.08,2.08,0,0,1,.4,1.48,12.85,12.85,0,0,1-.1,1.34c-.05.41-.11.87-.18,1.39l-1.29,8.34L11.15.48H7.83v.76a1.69,1.69,0,0,1,.77.24,1.9,1.9,0,0,1,.51,1.06l.07.3L7.33,15a24.86,24.86,0,0,1-.76,3.61,1.32,1.32,0,0,1-.92.9v.76H9.09v-.76a1.67,1.67,0,0,1-.88-.32,1.92,1.92,0,0,1-.44-1.44,7.09,7.09,0,0,1,0-.79c0-.43.13-1.09.27-2L9.72,4.38,14,20.71h.41l2.3-15a28.78,28.78,0,0,1,.67-3.42C17.57,1.72,17.83,1.38,18.17,1.3ZM19.33.48v.76a2.32,2.32,0,0,1,1,.3c.15.13.23.42.23.9,0,.23,0,.55-.07,1,0,.2-.06.44-.1.71l-2,13.23a4,4,0,0,1-.46,1.58,1.39,1.39,0,0,1-.88.54v.76h4.89v-.76a1.36,1.36,0,0,1-.78-.19,1.39,1.39,0,0,1-.41-1.17c0-.1,0-.21,0-.31s0-.22,0-.35l1.09-7.21a2.09,2.09,0,0,1,1.83.64A3.81,3.81,0,0,1,24.1,13c0,.11,0,.28,0,.49s0,.46,0,.75l.45.14,1.22-8.07-.46-.1a6.19,6.19,0,0,1-1.11,2.59A3.89,3.89,0,0,1,22,9.28l1-6.54a2.43,2.43,0,0,1,.33-1.08.93.93,0,0,1,.76-.26,2.45,2.45,0,0,1,2.52,1.54A9,9,0,0,1,27,6l.44.13.7-5.6ZM39.06,7.11a21,21,0,0,1-2,9.07q-2.16,4.61-5,4.6a3.28,3.28,0,0,1-2.88-1.92,10.29,10.29,0,0,1-1.11-5.14,21.08,21.08,0,0,1,2.07-9.19Q32.31,0,35,0a3.37,3.37,0,0,1,2.93,1.92A10.14,10.14,0,0,1,39.06,7.11ZM36.68,4.6a7,7,0,0,0-.42-2.55A1.37,1.37,0,0,0,35,1c-1.37,0-2.52,2.17-3.46,6.53a40.81,40.81,0,0,0-1.07,8.26,10,10,0,0,0,.21,2.2c.26,1.18.74,1.77,1.43,1.77s1.24-.43,1.78-1.29a18.75,18.75,0,0,0,1.65-4.93,43.28,43.28,0,0,0,.85-4.83A36.93,36.93,0,0,0,36.68,4.6ZM61,19.15a2.25,2.25,0,0,0,1,.31v.76H56.84v-.76A2,2,0,0,0,58,19a3.6,3.6,0,0,0,.5-1.63L60.56,3.76l-6.2,16.85H53.9L52.78,4.24,51.12,15c-.09.55-.15,1-.2,1.37a13,13,0,0,0-.11,1.42,1.8,1.8,0,0,0,.46,1.43,1.54,1.54,0,0,0,.86.29v.76H45.49l-1.78-9.76h-.47l-1,6.14-.13,1,0,.25c0,.09,0,.19,0,.28a1.47,1.47,0,0,0,.22,1,2,2,0,0,0,1,.32v.76H38.37v-.76a1.42,1.42,0,0,0,.88-.52,4.21,4.21,0,0,0,.46-1.59l2-13.24c0-.27.08-.51.11-.71a8.23,8.23,0,0,0,.07-1,1.23,1.23,0,0,0-.23-.9,2.32,2.32,0,0,0-1-.3V.48h4.54A4.34,4.34,0,0,1,47.62,1c1,.65,1.54,1.9,1.54,3.75a7.78,7.78,0,0,1-.26,2A5.56,5.56,0,0,1,48,8.62a3.87,3.87,0,0,1-1,1,8.06,8.06,0,0,1-1.06.52c.05.3.09.49.11.57l1.27,6.66a4.58,4.58,0,0,0,.55,1.7,1.23,1.23,0,0,0,.83.39,1.31,1.31,0,0,0,.86-.84A23,23,0,0,0,50.36,15L52.05,4c.06-.37.11-.7.15-1a7.42,7.42,0,0,0,0-.75c0-.41-.08-.67-.25-.78a2.09,2.09,0,0,0-.94-.21V.48h3.77l1,13.91,5-13.91h3.51v.76a1.46,1.46,0,0,0-.79.4A3.71,3.71,0,0,0,63,3.31L61,16.59c0,.29-.09.58-.13.88s-.05.55-.05.75Q60.79,19,61,19.15Zm-15.14-11a7.46,7.46,0,0,0,.53-1.62,9.54,9.54,0,0,0,.25-2.26,5.31,5.31,0,0,0-.35-2,1.18,1.18,0,0,0-1.16-.81.54.54,0,0,0-.5.26,3.37,3.37,0,0,0-.26,1.05l-1,6.76a4.28,4.28,0,0,0,1.31-.2A2.17,2.17,0,0,0,45.89,8.17ZM73.21,19.51v.71h-5v-.71a1.61,1.61,0,0,0,1-.41,1.92,1.92,0,0,0,.3-1.29c0-.22,0-.75-.09-1.58,0-.17-.06-.89-.16-2.15H65.68l-1,3c-.06.2-.12.42-.17.66a3.4,3.4,0,0,0-.08.69q0,.62.21.78a1.9,1.9,0,0,0,.86.3v.71H62.29v-.71A2,2,0,0,0,63,19a6.47,6.47,0,0,0,.72-1.56L69.82.07h.43L71.83,17A6.77,6.77,0,0,0,72.22,19,1.23,1.23,0,0,0,73.21,19.51Zm-4.08-6.6-.61-7.18-2.44,7.18ZM82.52,6.14l.6-5.66H74l-.63,5,.42.2a8.71,8.71,0,0,1,1.46-3.16,2.57,2.57,0,0,1,2.1-1.06L75,17.35a3.36,3.36,0,0,1-.68,1.85,1.57,1.57,0,0,1-1,.26v.76H78.7v-.76a2.69,2.69,0,0,1-1.11-.3c-.18-.13-.27-.45-.27-.95a2.26,2.26,0,0,1,0-.26c0-.09,0-.2,0-.33l.14-1L79.8,1.5a1.87,1.87,0,0,1,1.39.63c.58.7.88,2,.91,3.94ZM88.84.48H83.92v.76a2.31,2.31,0,0,1,1,.31c.15.13.23.44.23.94a5.56,5.56,0,0,1,0,.67c0,.26-.08.57-.14,1l-2,13.24a4,4,0,0,1-.47,1.59,1.36,1.36,0,0,1-.87.52v.76H86.5v-.76a2,2,0,0,1-1-.32,1.32,1.32,0,0,1-.23-.94c0-.09,0-.18,0-.28s0-.2,0-.3l.13-1,2-13.24A4.09,4.09,0,0,1,88,1.76a1.45,1.45,0,0,1,.87-.52ZM99.11,7.11a21,21,0,0,1-2,9.07q-2.16,4.61-5,4.6a3.28,3.28,0,0,1-2.88-1.92,10.29,10.29,0,0,1-1.11-5.14,21.08,21.08,0,0,1,2.07-9.19C91.63,1.51,93.25,0,95,0A3.36,3.36,0,0,1,98,1.92,10,10,0,0,1,99.11,7.11ZM96.72,4.6a7.18,7.18,0,0,0-.41-2.55c-.28-.7-.7-1-1.29-1-1.37,0-2.52,2.17-3.46,6.53a40.7,40.7,0,0,0-1.06,8.26,10,10,0,0,0,.2,2.2c.26,1.18.74,1.77,1.43,1.77a2.2,2.2,0,0,0,1.78-1.29,18.75,18.75,0,0,0,1.65-4.93,41.1,41.1,0,0,0,.85-4.83A34.65,34.65,0,0,0,96.72,4.6Zm11.1-3.36a1.66,1.66,0,0,1,.9.33,2.08,2.08,0,0,1,.4,1.48,12.85,12.85,0,0,1-.1,1.34c0,.41-.11.87-.18,1.39l-1.29,8.34L104,.48h-3.33v.76a1.7,1.7,0,0,1,.78.24,2,2,0,0,1,.51,1.06l.07.3L100.13,15a24,24,0,0,1-.75,3.61,1.35,1.35,0,0,1-.93.9v.76h3.45v-.76a1.67,1.67,0,0,1-.88-.32,1.88,1.88,0,0,1-.44-1.44,7.09,7.09,0,0,1,0-.79c0-.43.13-1.09.27-2l1.64-10.57,4.29,16.33h.41l2.3-15a28.78,28.78,0,0,1,.67-3.42c.18-.59.44-.93.78-1l.23-.06V.48h-3.39ZM125,7.11a21,21,0,0,1-2,9.07c-1.45,3.07-3.1,4.6-5,4.6a3.28,3.28,0,0,1-2.87-1.92A10.29,10.29,0,0,1,114,13.72a21.22,21.22,0,0,1,2.06-9.19Q118.22,0,120.91,0a3.36,3.36,0,0,1,2.92,1.92A10,10,0,0,1,125,7.11ZM122.59,4.6a7,7,0,0,0-.41-2.55,1.37,1.37,0,0,0-1.28-1c-1.37,0-2.53,2.17-3.46,6.53a40.11,40.11,0,0,0-1.07,8.26,10.65,10.65,0,0,0,.2,2.2q.39,1.77,1.44,1.77a2.2,2.2,0,0,0,1.77-1.29,18.29,18.29,0,0,0,1.66-4.93,45.71,45.71,0,0,0,.85-4.83A36.53,36.53,0,0,0,122.59,4.6Zm14.26-3.3.24-.06V.48h-3.4v.76a1.74,1.74,0,0,1,.91.33,2.13,2.13,0,0,1,.4,1.48c0,.28,0,.73-.11,1.34,0,.41-.11.87-.18,1.39l-1.29,8.34L129.83.48h-3.32v.76a1.69,1.69,0,0,1,.77.24,1.9,1.9,0,0,1,.51,1.06l.07.3L126,15a27,27,0,0,1-.75,3.61,1.35,1.35,0,0,1-.93.9v.76h3.44v-.76a1.67,1.67,0,0,1-.88-.32,1.92,1.92,0,0,1-.44-1.44c0-.26,0-.52,0-.79.05-.43.13-1.09.27-2l1.65-10.57,4.29,16.33h.41l2.29-15a31.07,31.07,0,0,1,.67-3.42C136.25,1.72,136.52,1.38,136.85,1.3Zm8.52,13.06a8.55,8.55,0,0,1-2.19,3.87,4.44,4.44,0,0,1-2.94,1,1,1,0,0,1-.68-.21.9.9,0,0,1-.24-.7,3.4,3.4,0,0,1,0-.48c0-.14,0-.28,0-.44l2.15-14.08a3.69,3.69,0,0,1,.5-1.64,2.22,2.22,0,0,1,1.16-.48V.48H138v.76a2.2,2.2,0,0,1,1,.31c.16.13.24.44.24.94a5.73,5.73,0,0,1-.05.67c0,.26-.07.57-.13,1l-2,13.23a4,4,0,0,1-.47,1.6,1.36,1.36,0,0,1-.87.52v.76h9.16l1-5.74ZM151.79.48v.76a1.52,1.52,0,0,1,.76.2,1.21,1.21,0,0,1,.37,1,4.09,4.09,0,0,1-.17,1.09c-.07.24-.16.5-.27.79L150.32,9.8l-1.
1018-6.44a4.51,4.51,0,0,1-.08-.6,4.37,4.37,0,0,1,0-.46c0-.43.09-.71.27-.83a1.75,1.75,0,0,1,.87-.23V.48h-4.63v.76a.94.94,0,0,1,.8.4,5.08,5.08,0,0,1,.42,1.44L148.2,11l-1,6.35a3.35,3.35,0,0,1-.61,1.73,1.91,1.91,0,0,1-1.06.39v.76h5.32v-.76a2,2,0,0,1-.95-.25,1.29,1.29,0,0,1-.33-1.05,7.29,7.29,0,0,1,.06-.73q.06-.51.12-.84l.82-5.46,3.12-7.89a5.54,5.54,0,0,1,.89-1.59,1.28,1.28,0,0,1,.63-.41V.48Z",opacity:1,strokeColor:"",fillColor:"#192760",width:155.237,height:20.783,stampFillColor:"#dce3ef",stampStrokeColor:""}}if(t)return t.modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),this.currentStampAnnotation=t,t}},n.prototype.saveStampAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]);for(var i=[],n=0;n<this.pdfViewerBase.pageCount;n++)i[parseInt(n.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var o=JSON.parse(e),r=0;r<o.length;r++){var a=[],s=o[parseInt(r.toString(),10)];if(s){for(var l=0;s.annotations.length>l;l++){if(this.pdfViewer.annotationModule.updateModifiedDate(s.annotations[parseInt(l.toString(),10)]),this.pdfViewer.nameTable[s.annotations[parseInt(l.toString(),10)].randomId]&&(s.annotations[parseInt(l.toString(),10)].wrapperBounds=this.pdfViewer.nameTable[s.annotations[parseInt(l.toString(),10)].randomId].wrapper.bounds),!this.pdfViewerBase.clientSideRendering&&s.annotations[parseInt(l.toString(),10)].icon){var d=s.annotations[parseInt(l.toString(),10)].bounds,A=this.pdfViewer.annotationModule.calculateFontSize(s.annotations[parseInt(l.toString(),10)].icon.toUpperCase(),d);A=t.Browser.isDevice&&t.Browser.isAndroid?A-11:A-5,s.annotations[parseInt(l.toString(),10)].iconFontSize=A;var h=10,p=s.annotations[parseInt(l.toString(),10)].dynamicText;0!==p.trim().length&&(h=this.pdfViewer.annotationModule.calculateFontSize(p,d)-5),s.annotations[parseInt(l.toString(),10)].textFontSize=h}s.annotations[parseInt(l.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(s.annotations[parseInt(l.toString(),10)].bounds,s.pageIndex))}a=s.annotations}i[s.pageIndex]=a}return JSON.stringify(i)},n.prototype.storeStampInSession=function(e,i,n,o){var r=Fi.sessionStorageManager.getWindowSessionStorageSize(),a=Math.round(JSON.stringify(i).length/1024);this.pdfViewer.annotationModule.isFormFieldShape=!1,r+a>4500&&(this.pdfViewerBase.isStorageExceed=!0,this.pdfViewer.annotationModule.clearAnnotationStorage(),this.pdfViewerBase.isFormStorageExceed||t.isNullOrUndefined(this.pdfViewer.formFieldsModule)||this.pdfViewer.formFieldsModule.clearFormFieldStorage());var s=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp"),l=0;if(this.pdfViewerBase.isStorageExceed&&(s=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]),s){this.pdfViewer.annotationModule.storeAnnotationCollections(i,e,n,o);var d=JSON.parse(s);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_stamp");var A=this.pdfViewer.annotationModule.getPageCollection(d,e);if(null!=A&&d[parseInt(A.toString(),10)])d[parseInt(A.toString(),10)].annotations.push(i),l=d[parseInt(A.toString(),10)].annotations.indexOf(i);else{var h={pageIndex:e,annotations:[]};h.annotations.push(i),l=h.annotations.indexOf(i),d.push(h)}g=JSON.stringify(d);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]=g:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_stamp",g)}else{this.pdfViewer.annotationModule.storeAnnotationCollections(i,e,n,o);var p={pageIndex:e,annotations:[]};p.annotations.push(i),l=p.annotations.indexOf(i);var c=[];c.push(p);var g=JSON.stringify(c);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]=g:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_stamp",g)}return l},n.prototype.updateSessionStorage=function(e,t,i){if(null!=t&&e.annotations)for(var n=0;n<e.annotations.length;n++)if(e.annotations[parseInt(n.toString(),10)].id===t){e=e.annotations[parseInt(n.toString(),10)];break}"Rotate"===i&&(e=e.annotations[0]);var o=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp");if(this.pdfViewerBase.isStorageExceed&&(o=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]),o)for(var r=e.bounds,a=JSON.parse(o),s=0;s<a.length;s++)for(var l=a[parseInt(s.toString(),10)],d=0;d<l.annotations.length;d++)if(null!=a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)]&&a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].randomId===e.id){this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_stamp");var A=this.pdfViewer.annotationModule.getPageCollection(a,a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].pageNumber);"delete"!==i?null!=A&&a[parseInt(A.toString(),10)]&&(e.wrapper.children[1]?a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].opacity=e.wrapper.children[1].style.opacity:a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].opacity=e.wrapper.children[0].style.opacity,a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].rotateAngle=e.rotateAngle,a[parseInt(s.toString(),10)].annotations[parseInt(d.toString(),10)].bounds={left:r.x,top:r.y,width:e.wrapper.actualSize.width,height:e.wrapper.actualSize.height,right:r.right,bottom:r.bottom}):a[parseInt(s.toString(),10)].annotations.splice(d,1);var h=JSON.stringify(a);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]=h:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_stamp",h);break}},n.prototype.saveImportedStampAnnotations=function(e,t){var n,o=null,r=!1,a=e.IsDynamic;if(e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings),e.allowedInteractions=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.IconName&&a)n=this.retrieveDynamicStampAnnotation(e.IconName),r=!0;else if(e.IconName&&(n=this.retrievestampAnnotation(e.IconName),"Accepted"===e.IconName||"Rejected"===e.IconName)){var s=i.processPathData(n.pathdata);n.pathdata=i.splitArrayCollection(s),r=!0}n?(o={stampAnnotationType:"path",author:e.Author,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,strokeColor:n.strokeColor,fillColor:n.fillColor,opacity:e.Opacity,stampFillcolor:n.stampFillColor,rotateAngle:e.RotateAngle,creationDate:e.ModifiedDate,pageNumber:t,icon:n.iconName,stampAnnotationPath:n.pathdata,randomId:"stamp",isDynamicStamp:!1,dynamicText:this.dynamicText,boun
vendor: 23,831 bytes, line 10
10ds:this.calculateImagePosition(e.Rect,!0),annotName:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,author:e.Author,modifiedDate:e.ModifiedDate},shapeAnnotationType:"stamp",annotationSelectorSettings:this.getSettings(e),annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.isPrint,isCommentLock:e.IsCommentLock,isMaskedImage:e.IsMaskedImage,customStampName:"",template:e?e.template:null,templateSize:e?e.templateSize:0},r&&(o.dynamicText=this.findDynamicText(e.Apperarance,e.IconName),""===o.dynamicText&&(o.dynamicText="By "+o.author+" at "+o.creationDate),o.isDynamicStamp=!0),this.pdfViewer.annotationModule.storeAnnotations(t,o,"_annotations_stamp")):(e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),o={stampAnnotationType:"image",author:e.Author,modifiedDate:e.ModifiedDate,subject:e.Subject,allowedInteractions:e.allowedInteractions,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,stampFillcolor:e.FillColor,rotateAngle:e.RotateAngle,creationDate:e.ModifiedDate,pageNumber:t,icon:"",stampAnnotationPath:this.findImageData(e.Apperarance),randomId:"image",isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:" ",bounds:this.calculateImagePosition(e.Rect,!0),annotName:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,author:e.Author,modifiedDate:e.ModifiedDate},shapeAnnotationType:"stamp",annotationSelectorSettings:this.getSettings(e),annotationSettings:e.annotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.isPrint,isCommentLock:e.IsCommentLock,isMaskedImage:e.IsMaskedImage,customStampName:e.CustomStampName,template:e?e.template:null,templateSize:e?e.templateSize:0},this.pdfViewer.annotationModule.storeAnnotations(t,o,"_annotations_stamp"))},n.prototype.updateStampAnnotationCollections=function(e,t){var i,n=e.IsDynamic;e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e);var o=this.stampImageData(e);if(e.IconName&&n&&"Draft"!==e.IconName&&!o)i=this.retrieveDynamicStampAnnotation(e.IconName);else{if(!e.IconName||o)return e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.customStampSettings),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked),{stampAnnotationType:"image",author:e.Author,bounds:{left:e.Rect.X,top:e.Rect.Y,width:e.Rect.Width,height:e.Rect.Height},modifiedDate:e.ModifiedDate,allowedInteractions:e.allowedInteractions,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,stampFillcolor:e.StampFillColor,rotateAngle:e.RotateAngle,pageNumber:t,randomId:"stamp",isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:this.dynamicText,annotationId:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,author:e.Author,modifiedDate:e.ModifiedDate},shapeAnnotationType:"stamp",annotationSettings:e.AnnotationSettings,customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.isPrint,isMaskedImage:e.IsMaskedImage,customStampName:e.CustomStampName,subject:e.Subject,template:e?e.template:null,templateSize:e?e.templateSize:0};i=this.retrievestampAnnotation(e.IconName)}if(i)return e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked),e.allowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),{stampAnnotationType:"path",author:e.Author,allowedInteractions:e.allowedInteractions,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,strokeColor:e.StrokeColor,fillColor:e.FillColor,opacity:e.Opacity,stampFillcolor:e.StampFillColor,rotateAngle:e.RotateAngle,creationDate:i.creationDate,pageNumber:t,icon:i.iconName,stampAnnotationPath:i.pathdata,randomId:"stamp",isDynamicStamp:this.pdfViewerBase.isDynamicStamp,dynamicText:this.dynamicText,bounds:{left:e.Rect.X,top:e.Rect.Y,width:e.Rect.Width,height:e.Rect.Height},annotationId:e.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,author:e.Author,modifiedDate:e.ModifiedDate},shapeAnnotationType:"stamp",customData:this.pdfViewer.annotation.getCustomData(e),isPrint:e.isPrint,isMaskedImage:e.IsMaskedImage,customStampName:"",template:e?e.template:null,templateSize:e?e.templateSize:0}},n.prototype.stampImageData=function(e){var t=!1;if(e&&e.Apperarance)for(var i=0;i<e.Apperarance.length;i++)if(e.Apperarance[parseInt(i.toString(),10)].imagedata){t=!0;break}return t},n.prototype.findImageData=function(e){if(e)for(var t=0;t<e.length;t++){var i=e[parseInt(t.toString(),10)].imagedata;if(i)return i}return""},n.prototype.findDynamicText=function(e,t){var i="";if(e){for(var n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)],r=o.type,a=o.isImport;if("string"===r&&void 0!==o.text){var s=void 0;if(a)s=o.text;else{var l=o.text.split("(");s=l[1]?l[1].split(")")[0]:o.text}s.toLowerCase()!==t.toLowerCase()&&(i+=s)}}return i}return i},n.prototype.destroy=function(){this.author=null,this.currentStampAnnotation=null,this.isStampAnnotSelected=null,this.isStampAddMode=null,this.isNewStampAnnot=null,this.isExistingStamp=null,this.stampPageNumber=null,this.isAddAnnotationProgramatically=null,this.customStampName=null,this.dynamicText=null},n.prototype.getAnnotations=function(e,t){var i,n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp");if(this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]),n){var o=JSON.parse(n),r=this.pdfViewer.annotationModule.getPageCollection(o,e);i=null!=r&&o[parseInt(r.toString(),10)]?o[parseInt(r.toString(),10)].annotations:t}else i=t;return i},n.prototype.modifyInCollection=function(e,i,n,o){t.isNullOrUndefined(n.formFieldAnnotationType)||""===n.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0,o&&this.pdfViewerBase.updateDocumentEditedProperty(!0);var r=null,a=this.getAnnotations(i,null);if(null!=a&&n){for(var s=0;s<a.length;s++)if(n.annotName===a[parseInt(s.toString(),10)].annotName){if("bounds"===e)this.pdfViewerBase.isBounds=this.pdfViewerBase.boundsCalculation(a[parseInt(s.toString(),10)].bounds,n.wrapper.bounds),this.pdfViewerBase.isBounds&&(a[parseInt(s.toString(),10)].bounds={left:n.wrapper.bounds.x,top:n.wrapper.bounds.y,width:n.wrapper.actualSize.width,height:n.wrapper.actualSize.height}),a[parseInt(s.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime();else if("delete"===e){r=a.splice(s,1)[0];break}this.pdfViewer.annotationModule.storeAnnotationCollections(a[parseInt(s.toString(),10)],i)}this.manageAnnotations(a,i)}return r},n.prototype.manageAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_stamp");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_stamp",r)}},n.prototype.updateAddAnnotationDetails=function(i,n,o,r,a,s){n=i?i.offset?i.offset:{x:10,y:10}:(i={offset:{x:10,y:10},pageNumber:0,width:void 0,height:void 0}).offset,r||a||s||(r=e.DynamicStampItem.Approved);var l=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),d=this.pdfViewer.annotation.createGUID(),A=o,h=[],p="",c="Stamp",g=[],u=!1,f=i.author?i.author:"Guest",m=this.pdfViewer.annotationSelectorSettings;this.updateStampSelectorSettings(m);var w=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stampSettings);f=f||this.pdfViewer.annotationModule.updateAnnotationAuthor("stamp",w.annotationSubType);var C=this.pdfViewer.stampSettings.allowedInteractions?this.pdfViewer.stampSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions;if(w.isLock=i.isLock?i.isLock:w.isLock,w.minHeight=i.minHeight?i.minHeight:w.minHeight,w.minWidth=i.minWidth?i.minWidth:w.minWidth,w.maxWidth=i.maxWidth?i.maxWidth:w.maxWidth,w.maxHeight=i.maxHeight?i.maxHeight:w.maxHeight,i.customStamps&&i.customStamps[0].customStampName)g[0]={imagedata:i.customStamps[0].customStampImageSource,isImport:!0},this.customStampName=i.customStamps[0].customStampName,this.pdfViewerBase.customStampCollection.push(i.customStamps[0]),c="Image",i.width=i.width?i.width:100,i.height=i.height?i.height:100;else if(r){var B=[];B=l.split(" "),p=r.toString(),g[0]={baseFontName:"Helvetica-BoldOblique",currentFontname:"95b303ab-d397-438a-83af-e2ff8a9900f1",fontSize:10,isImport:!0,text:"By "+f+" at "+B[1]+B[2]+" , "+B[0],type:"string"},u=!0,i.width=i.width?i.width:170.33,i.height=i.height?i.height:56.88}else a?(p=a.toString(),a===e.SignStampItem.Accepted||a===e.SignStampItem.Rejected?(i.width=i.width?i.width:35,i.height=i.height?i.height:35):a===e.SignStampItem.SignHere?(i.width=i.width?i.width:110,i.height=i.height?i.height:30):a===e.SignStampItem.Witness?(i.width=i.width?i.width:130,i.height=i.height?i.height:30):a===e.SignStampItem.InitialHere&&(i.width=i.width?i.width:90,i.height=i.height?i.height:30)):s&&(p=s.toString(),s===e.StandardBusinessStampItem.Final||s===e.StandardBusinessStampItem.Draft?(i.width=i.width?i.width:110,i.height=i.height?i.height:30):s===e.StandardBusinessStampItem.Void?(i.width=i.width?i.width:100,i.height=i.height?i.height:30):(i.width=i.width?i.width:130,i.height=i.height?i.height:30));var S={AllowedInteractions:i.allowedInteractions?i.allowedInteractions:C,AnnotName:d,AnnotType:"stamp",AnnotationSelectorSettings:i.annotationSelectorSettings?i.annotationSelectorSettings:m,AnnotationSettings:w,Apperarance:g||null,Author:f,Comments:null,CreatedDate:l,CustomData:i.customData?i.customData:null,ExistingCustomData:null,FillColor:"#192760",Icon:0,IsCommentLock:!1,IsDynamic:u,IsLocked:!!i.isLock&&i.isLock,IsPrint:!!t.isNullOrUndefined(i.isPrint)||i.isPrint,ModifiedDate:"",Name:null,Note:"",Opacity:i.opacity?i.opacity:1,Rect:{X:n.x,Y:n.y,Width:i.width,Height:i.height,Left:n.x,Top:n.y,Location:{X:n.x,Y:n.y},Size:{Height:i.height,IsEmpty:!1,Width:i.width}},RotateAngle:0,StampAnnotationtype:c,State:"",StateModel:"",StrokeColor:"#dce3ef",IconName:p,Subject:i.subject?i.subject:p,matrix:null,CustomStampName:this.customStampName?this.customStampName:"",pageNumber:A};return h[0]=S,{stampAnnotations:h}},n.prototype.triggerAnnotationAdd=function(e,t){var i={opacity:e.opacity,borderColor:e.strokeColor,borderWidth:e.thickness,author:t.author,subject:t.subject,modifiedDate:t.modifiedDate,fillColor:e.fillColor,fontSize:e.fontSize,width:e.bounds.width,height:e.bounds.height,fontColor:e.fontColor,fontFamily:e.fontFamily,defaultText:e.dynamicText,fontStyle:e.font,textAlignment:e.textAlign};this.pdfViewer.fireAnnotationAdd(e.pageIndex,e.annotName,"Stamp",e.bounds,i)},n.prototype.updateStampSelectorSettings=function(e){this.pdfViewer.stampSettings.annotationSelectorSettings&&"#FF4081"!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerFillColor?e.resizerFillColor=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerFillColor:e.resizerFillColor=t.isNullOrUndefined(e.resizerFillColor)?"#FF4081":e.resizerFillColor,this.pdfViewer.stampSettings.annotationSelectorSettings&&"black"!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerBorderColor?e.resizerBorderColor=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerBorderColor:e.resizerBorderColor=t.isNullOrUndefined(e.resizerBorderColor)?"black":e.resizerBorderColor,this.pdfViewer.stampSettings.annotationSelectorSettings&&""!==this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderColor?e.selectionBorderColor=this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderColor:e.selectionBorderColor=t.isNullOrUndefined(e.selectionBorderColor)?"":e.selectionBorderColor,this.pdfViewer.stampSettings.annotationSelectorSettings&&8!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerSize?e.resizerSize=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerSize:e.resizerSize=t.isNullOrUndefined(e.resizerSize)?8:e.resizerSize,this.pdfViewer.stampSettings.annotationSelectorSettings&&"Square"!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerShape?e.resizerShape=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerShape:e.resizerShape=t.isNullOrUndefined(e.resizerShape)?"Square":e.resizerShape,this.pdfViewer.stampSettings.annotationSelectorSettings&&null!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerCursorType?e.resizerCursorType=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerCursorType:e.resizerCursorType=t.isNullOrUndefined(e.resizerCursorType)?null:e.resizerCursorType,this.pdfViewer.stampSettings.annotationSelectorSettings&&1!==this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderThickness?e.selectionBorderThickness=this.pdfViewer.stampSettings.annotationSelectorSettings.selectionBorderThickness:e.selectionBorderThickness=t.isNullOrUndefined(e.selectionBorderThickness)?1:e.selectionBorderThickness,this.pdfViewer.stampSettings.annotationSelectorSettings&&0!==this.pdfViewer.stampSettings.annotationSelectorSettings.selectorLineDashArray.length?e.selectorLineDashArray=this.pdfViewer.stampSettings.annotationSelectorSettings.selectorLineDashArray:e.selectorLineDashArray=t.isNullOrUndefined(e.selectorLineDashArray)?[]:e.selectorLineDashArray,this.pdfViewer.stampSettings.annotationSelectorSettings&&3!==this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation?e.resizerLocation=this.pdfViewer.stampSettings.annotationSelectorSettings.resizerLocation:e.resizerLocation=t.isNullOrUndefined(e.resizerLocation)?3:e.resizerLocation},n}(),Jt=function(){function e(e,i){this.moreButtonId="",this.commentsCount=0,this.commentsreplyCount=0,this.commentContextMenu=[],this.isAccordionContainer=!0,this.isCreateContextMenu=!1,this.isCommentsSelected=!1,this.isAddAnnotationProgramatically=!1,this.isEditableElement=!1,this.isPageCommentsRendered=!1,this.isCommentsRendered=!1,this.isAnnotationRendered=!1,this.textFromCommentPanel=!1,this.pdfViewer=e,this.pdfViewerBase=i;var n=this.pdfViewer.stickyNotesSettings.opacity;this.opacity=!t.isNullOrUndefined(n)&&n>=0&&n<=1?n:1}return e.prototype.renderStickyNotesAnnotations=function(e,i,n,o,r){if(e&&e.length>0)for(var a=0;a<e.length;a++){var s=e[parseInt(a.toString(),10)],l=!1,d=this.getAnnotations(i,null,"sticky");if(null!==d)for(var A=0;A<d.length;A++){var h=s.annotName?s.annotName:s.AnnotName,p=d[parseInt(A.toString(),10)].annotName?d[parseInt(A.toString(),10)].annotName:d[parseInt(A.toString(),10)].AnnotName;if(p&&h&&p===h){l=!0;break}}if(!l){s.annotationAddMode=this.pdfViewer.annotationModule.findAnnotationMode(s,i,s.AnnotType);var c=null,g=s.Bounds,u=s.Author;s.AnnotationSettings=s.AnnotationSettings?s.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(s),s.allowedInteractions=s.AllowedInteraction?s.AllowedInteraction:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(s);var f=!0;f="Imported Annotation"===s.annotationAddMode?s.IsPrint:s.AnnotationSettings.isPrint,(s.IsLock||s.IsLocked)&&(s.AnnotationSettings.isLock=s.IsLock?s.IsLock:s.IsLocked);var m=!t.isNullOrUndefined(s.Opacity)&&s.Opacity>=0&&s.Opacity<=1?s.Opacity:1;c={shapeAnnotationType:"sticky",author:u,modifiedDate:s.ModifiedDate,subject:s.Subject,note:s.Note,opacity:m,state:s.State,stateModel:s.StateModel,pathData:"",comments:this.pdfViewer.annotationModule.getAnnotationComments(s.Comments,s,u),review:{state:s.State,stateModel:s.StateModel,modifiedDate:s.ModifiedDate,author:u},pageNumber:i,bounds:{left:s.Bounds.X,top:s.Bounds.Y,width:s.Bounds.Width,height:s.Bounds.Height,right:s.Bounds.Right,bottom:s.Bounds.Bottom},annotName:s.AnnotName,color:s.color,annotationSelectorSettings:this.getSettings(s),customData:this.pdfViewer.annotation.getCustomData(s),annotationSettings:s.AnnotationSettings,allowedInteractions:s.allowedInteractions,isPrint:f,isCommentLock:s.IsCommentLock},s.AnnotationSelectorSettings=s.AnnotationSelectorSettings?s.AnnotationSelectorSettings:this.pdfViewer.annotationSelectorSettings;var w={author:u,modifiedDate:c.modifiedDate,annotName:c.annotName,pageIndex:i,bounds:{x:g.Left,y:g.Top,width:g.Width,height:g.Height},strokeColor:"transparent",stampStrokeColor:"",data:this.setImageSource(),shapeAnnotationType:"StickyNotes",subject:c.subject,notes:c.note,opacity:m,id:c.annotName,fillColor:c.color,annotationSelectorSettings:s.AnnotationSelectorSettings,annotationSettings:c.annotationSettings,annotationAddMode:s.annotationAddMode,isPrint:f,isCommentLock:c.isCommentLock};if(n)this.drawStickyNotes(g.Left,g.Top,g.Width,g.Height,i,w,n);else{this.pdfViewer.add(w);var C=!(!(o&&r||t.isNullOrUndefined(o))&&o);this.drawStickyNotes(g.Left,g.Top,g.Width,g.Height,i,w,null,C),this.pdfViewer.annotationModule.storeAnnotations(i,c,"_annotations_sticky")}if(this.isAddAnnotationProgramatically){var B={opacity:w.opacity,borderColor:w.strokeColor,borderWidth:w.thickness,author:s.author,subject:s.subject,modifiedDate:s.modifiedDate,fillColor:w.fillColor,fontSize:w.fontSize,width:w.bounds.width,height:w.bounds.height,fontColor:w.fontColor,fontFamily:w.fontFamily,defaultText:w.dynamicText,fontStyle:w.font,textAlignment:w.textAlign};this.pdfViewer.fireAnnotationAdd(w.pageIndex,w.annotName,"StickyNotes",w.bounds,B)}}}},e.prototype.getSettings=function(e){var t=this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?t="string"==typeof e.AnnotationSelectorSettings?JSON.parse(e.AnnotationSelectorSettings):e.AnnotationSelectorSettings:this.pdfViewer.stickyNotesSettings.annotationSelectorSettings&&(t=this.pdfViewer.stickyNotesSettings.annotationSelectorSettings),t},e.prototype.drawStickyNotes=function(e,i,n,o,r,a,s,l){var d,A=this,h=null,p=new Image,c=this;p.onload=function(){var g,u,f;f=t.isNullOrUndefined(A.pdfViewer.annotationSettings.author)?"Guest":"Guest"!==A.pdfViewer.annotationSettings.author?A.pdfViewer.annotationSettings.author:A.pdfViewer.stickyNotesSettings.author;var m,w=""===A.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(A.pdfViewer.annotationSettings.subject)?A.pdfViewer.stickyNotesSettings.subject?A.pdfViewer.stickyNotesSettings.subject:"Sticky Note":A.pdfViewer.annotationSettings.subject,C=A.pdfViewer.annotationModule.updateSettings(A.pdfViewer.stickyNotesSettings);if(a)m=!t.isNullOrUndefined(a.opacity)&&a.opacity>=0&&a.opacity<=1?a.opacity:1,d={author:a.author,modifiedDate:a.modifiedDate,annotName:a.annotName,annotationSettings:a.annotationSettings&&""!==a.annotationSettings?a.annotationSettings:C,data:p.src,bounds:{x:e,y:i,width:n,height:o},subject:a.subject,notes:a.notes,opacity:m,id:a.annotName,shapeAnnotationType:"StickyNotes",strokeColor:"transparent",stampStrokeColor:"",pageIndex:a.pageIndex,isPrint:a.isPrint};else{u=A.pdfViewer.annotation.createGUID(),(g=c.addComments("sticky",r+1))&&(document.getElementById(g).id=u);var B=A.pdfViewer.stickyNotesSettings.annotationSelectorSettings?A.pdfViewer.stickyNotesSettings.annotationSelectorSettings:A.pdfViewer.annotationSelectorSettings,S=A.pdfViewer.stickyNotesSettings.isPrint;m=!t.isNullOrUndefined(A.opacity)&&A.opacity>=0&&A.opacity<=1?A.opacity:1,d={bounds:{x:e,y:i,width:n,height:o},pageIndex:r,data:p.src,modifiedDate:A.getDateAndTime(),annotationSettings:C,shapeAnnotationType:"StickyNotes",strokeColor:"transparent",stampStrokeColor:"",annotName:u,id:u,opacity:m,isPrint:S};var y=A.pdfViewer.stickyNotesSettings.isLock?A.pdfViewer.stickyNotesSettings.isLock:A.pdfViewer.annotationSettings.isLock,I=A.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(a);h={author:f,allowedInteractions:I,modifiedDate:A.getDateAndTime(),subject:w,shapeAnnotationType:"sticky",pageNumber:r,note:"",opacity:m,pathData:"",state:"",stateModel:"",color:"rgba(255,255,0)",comments:[],annotName:u,bounds:{left:e,top:i,width:n,height:o},review:{state:"",stateModel:"",modifiedDate:"",author:f},annotationSelectorSettings:B,customData:A.pdfViewer.annotationModule.getData("sticky"),annotationSettings:{isLock:y},isPrint:S,isCommentLock:!1}}if(a||(c.pdfViewer.annotation.addAction(r,null,d,"Addition","",d,d),c.pdfViewer.add(d),c.pdfViewer.annotationModule.storeAnnotations(r,h,"_annotations_sticky")),c.pdfViewerBase.isAddComment){var E={left:d.bounds.x,top:d.bounds.y,width:d.bounds.width,height:d.bounds.height};A.pdfViewerBase.updateDocumentEditedProperty(!0);var v={opacity:d.opacity,author:f,modifiedDate:d.modifiedDate,subject:w};A.pdfViewer.fireAnnotationAdd(d.pageIndex,d.annotName,"StickyNotes",E,v)}if(s)c.pdfViewer.renderDrawing(s,r);else if(t.isNullOrUndefined(l)||l){var b=A.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",r);c.pdfViewer.renderDrawing(b,r)}t.Browser.isDevice&&c.pdfViewer.select([d.id],d.annotationSelectorSettings),c.pdfViewerBase.isAddComment=!1},p.src=this.setImageSource()},e.prototype.setImageSource=function(){return"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgd2lkdGg9IjE2IgogICBoZWlnaHQ9IjE1IgogICB2aWV3Qm94PSIwIDAgNC4yMzMzMzMxIDMuOTY4NzQ5NyIKICAgdmVyc2lvbj0iMS4xIj4KICA8ZyBpZD0ibGF5ZXIxIj4KICAgIDxwYXRoCiAgICAgICBkPSJNIDMuODM4OSwwLjk0MT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9Ik0gMy4wNDI5LDEuNDE2NyBIIDEuMTkxMiBDIDEuMTExMiwxLjQxNjcgMS4wNTkyLDEuMzYzNyAxLjA1OTIsMS4yODM3IDEuMDU5MiwxLjIwNDcgMS4xMTEyLDEuMTUxNyAxLjE5MTIsMS4xNT
10E3IEggMy4wNDI5IEMgMy4xMjE5LDEuMTUxNyAzLjE3NDksMS4yMDQ3IDMuMTc0OSwxLjI4MzcgMy4xNzQ5LDEuMzYzNyAzLjEyMTksMS40MTY3IDMuMDQyOSwxLjQxNjcgWiIKICAgICAgIGlkPSJwYXRoMTUzNiIKICAgICAgIHN0eWxlPSJzdHJva2Utd2lkdGg6MC4yNjQ1ODMiIC8+CiAgICA8cGF0aAogICAgICAgZD0iTSAzLjA0MjksMS45NDU3IEggMS4xOTEyIEMgMS4xMTEyLDEuOTQ1NyAxLjA1OTIsMS44OTI3IDEuMDU5MiwxLjgxMjcgMS4wNTkyLDEuNzMzNyAxLjExMTIsMS42ODA3IDEuMTkxMiwxLjY4MDcgSCAzLjA0MjkgQyAzLjEyMTksMS42ODA3IDMuMTc0OSwxLjczMzcgMy4xNzQ5LDEuODEyNyAzLjE3NDksMS44OTI3IDMuMTIxOSwxLjk0NTcgMy4wNDI5LDEuOTQ1NyBaIgogICAgICAgaWQ9InBhdGgxNTQwIgogICAgICAgc3R5bGU9InN0cm9rZS13aWR0aDowLjI2NDU4MyIgLz4KICA8L2c+Cjwvc3ZnPgo="},e.prototype.createRequestForComments=function(){var e,t=this,i=t.pdfViewerBase.pageCount;t.isCommentsRendered||(20<i?i=20:t.isPageCommentsRendered=!0),this.isCommentsRendered?e={pageStartIndex:20..toString(),pageEndIndex:i.toString(),hashId:this.pdfViewerBase.hashId,action:"RenderAnnotationComments",elementId:this.pdfViewer.element.id,uniqueId:t.pdfViewerBase.documentId}:(e={pageStartIndex:(0).toString(),pageEndIndex:i.toString(),hashId:this.pdfViewerBase.hashId,action:"RenderAnnotationComments",elementId:this.pdfViewer.element.id,uniqueId:t.pdfViewerBase.documentId},t.isCommentsRendered=!0),this.pdfViewerBase.jsonDocumentId&&(e.documentId=this.pdfViewerBase.jsonDocumentId);var n=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.renderComments;if(t.commentsRequestHandler=new Pi(t.pdfViewer),t.commentsRequestHandler.url=n,t.commentsRequestHandler.mode=!0,t.commentsRequestHandler.responseType="text",this.pdfViewerBase.clientSideRendering){var o=this.pdfViewer.pdfRendererModule.getAnnotationComments(e);this.renderCommentsOnSuccess(o,t)}else this.pdfViewerBase.requestCollection.push(this.commentsRequestHandler),t.commentsRequestHandler.send(e),t.commentsRequestHandler.onSuccess=function(e){var i=e.data;if(!t.pdfViewerBase.checkRedirection(i)&&i){if("object"!=typeof i)try{"object"!=typeof(i=JSON.parse(i))&&(i=JSON.parse(i)),"object"!=typeof i&&(t.pdfViewerBase.onControlError(500,i,this.pdfViewer.serverActionSettings.renderComments),i=null)}catch(e){t.pdfViewerBase.onControlError(500,i,this.pdfViewer.serverActionSettings.renderComments),i=null}t.renderCommentsOnSuccess(i,t)}},t.commentsRequestHandler.onFailure=function(e){this.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText)},t.commentsRequestHandler.onError=function(e){t.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,t.pdfViewer.serverActionSettings.renderComments)}},e.prototype.renderCommentsOnSuccess=function(e,t){if(e){var i=!1;if(t.pdfViewerBase.annotationComments?t.pdfViewerBase.annotationComments=e.annotationDetails:(t.pdfViewerBase.annotationComments=e.annotationDetails,i=!0),e.annotationDetails&&e.uniqueId===t.pdfViewerBase.documentId){t.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.renderComments,e),t.isAnnotationRendered=!0;var n=void 0;if(t.pdfViewerBase.documentAnnotationCollections)n=t.updateAnnotationsInDocumentCollections(t.pdfViewerBase.annotationComments,t.pdfViewerBase.documentAnnotationCollections);else{var o=t.pdfViewerBase.createAnnotationsCollection();n=t.updateAnnotationsInDocumentCollections(t.pdfViewerBase.annotationComments,o)}t.pdfViewerBase.annotationComments=n,t.pdfViewerBase.documentAnnotationCollections=n;for(var r=e.startPageIndex;r<e.endPageIndex;r++){var a=e.annotationDetails[parseInt(r.toString(),10)];t.pdfViewerBase.updateModifiedDateToLocalDate(a,"annotationOrder"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"freeTextAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"measureShapeAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"shapeAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"signatureAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"signatureInkAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"stampAnnotations"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"stickyNotesAnnotation"),t.pdfViewerBase.updateModifiedDateToLocalDate(a,"textMarkupAnnotation")}for(var s=e.startPageIndex;s<e.endPageIndex;
vendor: 153,749 bytes, line 10
10s++)e.annotationDetails[parseInt(s.toString(),10)]&&t.renderAnnotationCollections(e.annotationDetails[parseInt(s.toString(),10)],s,i);t.isPageCommentsRendered||(t.isPageCommentsRendered=!0,t.createRequestForComments())}}},e.prototype.updateAnnotationsInDocumentCollections=function(e,t){for(var i=0;i<this.pdfViewerBase.pageCount;i++)if(e[parseInt(i.toString(),10)]&&t[parseInt(i.toString(),10)]){if(e[parseInt(i.toString(),10)].textMarkupAnnotation&&0!==e[parseInt(i.toString(),10)].textMarkupAnnotation.length&&t[parseInt(i.toString(),10)].textMarkupAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].textMarkupAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].textMarkupAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].textMarkupAnnotation);if(e[parseInt(i.toString(),10)].shapeAnnotation&&0!==e[parseInt(i.toString(),10)].shapeAnnotation.length&&t[parseInt(i.toString(),10)].shapeAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].shapeAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].shapeAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].shapeAnnotation);if(e[parseInt(i.toString(),10)].measureShapeAnnotation&&0!==e[parseInt(i.toString(),10)].measureShapeAnnotation.length&&t[parseInt(i.toString(),10)].measureShapeAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].measureShapeAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].measureShapeAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].measureShapeAnnotation);if(e[parseInt(i.toString(),10)].stampAnnotations&&0!==e[parseInt(i.toString(),10)].stampAnnotations.length&&t[parseInt(i.toString(),10)].stampAnnotations)for(n=0;n<e[parseInt(i.toString(),10)].stampAnnotations.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].stampAnnotations[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].stampAnnotations);if(e[parseInt(i.toString(),10)].stickyNotesAnnotation&&0!==e[parseInt(i.toString(),10)].stickyNotesAnnotation.length&&t[parseInt(i.toString(),10)].stickyNotesAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].stickyNotesAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].stickyNotesAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].stickyNotesAnnotation);if(e[parseInt(i.toString(),10)].freeTextAnnotation&&0!==e[parseInt(i.toString(),10)].freeTextAnnotation.length&&t[parseInt(i.toString(),10)].freeTextAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].freeTextAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].freeTextAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].freeTextAnnotation);if(e[parseInt(i.toString(),10)].signatureAnnotation&&0!==e[parseInt(i.toString(),10)].signatureAnnotation.length&&t[parseInt(i.toString(),10)].signatureAnnotation)for(n=0;n<e[parseInt(i.toString(),10)].signatureAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].signatureAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].signatureAnnotation);if(e[parseInt(i.toString(),10)].signatureInkAnnotation&&0!==e[parseInt(i.toString(),10)].signatureInkAnnotation.length&&t[parseInt(i.toString(),10)].signatureInkAnnotation)for(var n=0;n<e[parseInt(i.toString(),10)].signatureInkAnnotation.length;n++)this.updateDocumentAnnotationCollections(e[parseInt(i.toString(),10)].signatureInkAnnotation[parseInt(n.toString(),10)],t[parseInt(i.toString(),10)].signatureInkAnnotation)}return t},e.prototype.updateDocumentAnnotationCollections=function(e,t){if(0===t.length)t.push(e);else{for(var i=!1,n=0;n<t.length;n++)if(e.AnnotName&&t[parseInt(n.toString(),10)].AnnotName&&e.AnnotName===t[parseInt(n.toString(),10)].AnnotName){i=!0;break}i||t.push(e)}},e.prototype.renderAnnotationCollections=function(e,i,n){var o=[],r=e.annotationOrder,a=!n&&!this.pdfViewerBase.clientSideRendering&&o;if(!t.isNullOrUndefined(r))for(var s=0;s<r.length;s++){var l=r[parseInt(s.toString(),10)],d=l.AnnotType?l.AnnotType:l.AnnotationType;switch(this.pdfViewer.dateTimeFormat&&(l.ModifiedDate=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.getDateAndTime(l.ModifiedDate)),o.push(l),d){case"textMarkup":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.textMarkupAnnotationModule.updateTextMarkupAnnotationCollections(l,i));break;case"shape_measure":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.measureAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.measureAnnotationModule.updateMeasureAnnotationCollections(l,i));break;case"shape":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.shapeAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.shapeAnnotationModule.updateShapeAnnotationCollections(l,i));break;case"sticky":this.updateCollections(this.updateStickyNotesAnnotationCollections(l,i));break;case"stamp":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.stampAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.stampAnnotationModule.updateStampAnnotationCollections(l,i));break;case"Ink":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.inkAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.inkAnnotationModule.updateInkCollections(l,i));break;case"Text Box":t.isNullOrUndefined(this.pdfViewer.annotationModule)||t.isNullOrUndefined(this.pdfViewer.annotationModule.freeTextAnnotationModule)||this.updateCollections(this.pdfViewer.annotationModule.freeTextAnnotationModule.updateFreeTextAnnotationCollections(l,i))}}if(e.signatureAnnotation&&0!==e.signatureAnnotation.length)for(A=0;A<e.signatureAnnotation.length;A++)this.pdfViewer.dateTimeFormat&&(e.signatureAnnotation[parseInt(A.toString(),10)].ModifiedDate=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.getDateAndTime(e.signatureAnnotation[parseInt(A.toString(),10)].ModifiedDate)),this.updateCollections(this.pdfViewerBase.signatureModule.updateSignatureCollections(e.signatureAnnotation[parseInt(A.toString(),10)],i),!0);if(this.pdfViewer.toolbarModule&&this.renderAnnotationComments(o,i),n||a)for(var A=0;A<this.pdfViewerBase.renderedPagesList.length;A++)this.pdfViewerBase.renderedPagesList[parseInt(A.toString(),10)]===i&&this.pdfViewerBase.renderAnnotations(i,e,!1)},e.prototype.updateCollections=function(e,t){var i,n=!1;if((i=t?this.pdfViewer.signatureCollection:this.pdfViewer.annotationCollection)&&e)for(var o=0;o<i.length;o++)if(t){if(i[parseInt(o.toString(),10)].signatureName===e.signatureName&&i[parseInt(o.toString(),10)].pageNumber===e.pageNumber){n=!0;break}}else if(i[parseInt(o.toString(),10)].annotationId===e.annotationId&&i[parseInt(o.toString(),10)].pageNumber===e.pageNumber){n=!0;break}!n&&e&&(t?this.pdfViewer.signatureCollection.push(e):this.pdfViewer.annotationCollection.push(e))},e.prototype.renderAnnotationComments=function(e,t){if(t+=1,e&&0!==e.length){(1!==e.length||"Signature"!==e[0].AnnotationType&&"signature"!==e[0].AnnotationType)&&this.createPageAccordion(t);for(var i=0;i<e.length;i++)e[parseInt(i.toString(),10)].AnnotName&&1===e[parseInt(i.toString(),10)].AnnotName.split("freeText").length&&this.createCommentControlPanel(e[parseInt(i.toString(),10)],t);var n=document.querySelectorAll(".e-pv-new-comments-div");if(n)for(var o=0;o<n.length;o++)n[parseInt(o.toString(),10)].style.display="none"}},e.prototype.initializeAcccordionContainer=function(){var e=t.createElement("div",{id:this.pdfViewer.element.id+"_commentsPanelText",className:"e-pv-comments-panel-text"});t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_NoCommentsYet").then(function(t){e.textContent=t}):e.textContent=this.pdfViewer.localeObj.getConstant("No Comments Yet"),this.updateCommentPanelTextTop(),this.pdfViewerBase.navigationPane.commentsContentContainer.appendChild(e),this.accordionContentContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_accordionContentContainer",className:"e-pv-accordion-content-container"}),this.pdfViewerBase.navigationPane.commentsContentContainer.appendChild(this.accordionContentContainer),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!1),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!1)},e.prototype.updateCommentPanelTextTop=function(){var e=document.getElementById(this.pdfViewer.element.id+"_commentsPanelText");this.pdfViewerBase.navigationPane.commentPanelContainer&&this.pdfViewerBase.navigationPane.commentPanelContainer.clientHeight&&"none"!==e.style.display&&(e.style.paddingTop=this.pdfViewerBase.navigationPane.commentPanelContainer.clientHeight/2-47+"px",e.style.paddingLeft=this.pdfViewerBase.navigationPane.commentPanelContainer.clientWidth/3+"px")},e.prototype.createPageAccordion=function(e){if(null===document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+e))return this.accordionContent=t.createElement("div",{id:this.pdfViewer.element.id+"_accordioncontent"+e}),this.accordionContent.style.zIndex="1000",this.accordionPageContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_accordionPageContainer"+e,className:"e-pv-accordion-page-container"}),this.accordionPageContainer.appendChild(this.accordionContent),this.pdfViewerBase.viewerMainContainer.appendChild(this.accordionPageContainer),this.accordionContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_accordionContainer"+e,className:"e-pv-accordion-container"}),new s.Accordion({items:[{header:this.pdfViewer.localeObj.getConstant("Page")+" "+e,expanded:!0,content:"#"+this.pdfViewer.element.id+"_accordioncontent"+e}]}).appendTo(this.accordionContainer),this.accordionContainer.style.order="pageIndex",this.alignAccordionContainer(this.accordionContainer,e),document.getElementById(this.pdfViewer.element.id+"_commentsPanelText")&&(this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!0),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!0),document.getElementById(this.pdfViewer.element.id+"_commentsPanelText").style.display="none"),document.getElementById(this.pdfViewer.element.id+"_accordionContentContainer")&&(document.getElementById(this.pdfViewer.element.id+"_accordionContentContainer").style.display="block"),this.accordionContainer},e.prototype.alignAccordionContainer=function(e,t){var i=!0;if(this.accordionContentContainer){if(this.isAccordionContainer)this.accordionContentContainer.appendChild(e),i=!1;else for(var n=1;n<=this.pdfViewerBase.pageCount;n++){var o=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+n);if(o&&t<n){this.accordionContentContainer.insertBefore(e,o),i=!1;break}}i&&(this.accordionContentContainer.appendChild(e),i=!1),this.isAccordionContainer=!1}},e.prototype.updateCommentPanelScrollTop=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+e);if(t){var i=t.offsetTop+t.clientTop-35;this.pdfViewerBase.navigationPane.commentsContentContainer.scrollTop=i}},e.prototype.getButtonState=function(e,t){t.addEventListener("keyup",function(t){e.element.querySelector(".e-btn-save")&&(""===t.srcElement.value&&""===t.srcElement.defaultValue||t.srcElement.defaultValue===t.srcElement.value||(e.element.querySelector(".e-btn-save").ej2_instances[0].disabled=!1))})},e.prototype.createCommentControlPanel=function(e,i,n,o,r){var s=document.getElementById(this.pdfViewer.element.id+"_accordioncontent"+i);if(s){var l=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+i);l&&l.ej2_instances[0].expandItem(!0),this.commentsContainer=t.createElement("div",{id:this.pdfViewer.element.id+"commentscontainer_"+i+"_"+this.commentsCount,className:"e-pv-comments-container"}),this.commentsContainer.accessKey=i.toString()+"_"+this.commentsCount;var d=!1;if(e){if(this.commentsContainer.id=e.AnnotName,e.AnnotName)for(f=0;f<s.childElementCount;f++)if(s.children[parseInt(f.toString(),10)].id===e.AnnotName){d=!0,r&&(document.getElementById(s.children[parseInt(f.toString(),10)].id).remove(),d=!1);break}e.Name&&"freeText"===e.Name?this.commentsContainer.setAttribute("name","freeText"):this.commentsContainer.setAttribute("name",e.AnnotType)}n&&this.commentsContainer.setAttribute("name",n),this.commentsContainer.addEventListener("mousedown",this.commentsAnnotationSelect.bind(this));var A=t.createElement("div",{id:this.pdfViewer.element.id+"_commentdiv_"+i+"_"+this.commentsCount,className:"e-pv-comments-div"});this.commentsCount=this.commentsCount+1,this.commentsContainer.appendChild(A),this.updateCommentPanelScrollTop(i),d||s.appendChild(this.commentsContainer);var h=void 0;e?("null"===(h=this.commentsContainer.getAttribute("name"))&&(h=e.AnnotationType),this.createTitleContainer(A,h,i,e.Subject,e.ModifiedDate,e.Author)):(h=this.commentsContainer.getAttribute("name"),this.createTitleContainer(A,h,i,o));var p=t.createElement("div",{id:this.pdfViewer.element.id+"_commenttextbox_"+i+"_"+this.commentsCount,className:"e-pv-comment-textbox",attrs:{role:"textbox","aria-label":"comment textbox"}}),c=this.pdfViewer.enableAutoComplete?"on":"off",g=new a.InPlaceEditor({mode:"Inline",type:"Text",model:{placeholder:this.pdfViewer.localeObj.getConstant("Add a comment")+"..",htmlAttributes:{autocomplete:c}},emptyText:"",editableOn:"EditIconClick",saveButton:{content:this.pdfViewer.localeObj.getConstant("Post"),cssClass:"e-outline",disabled:!0},cancelButton:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-outline"},submitOnEnter:!0});!e||t.isNullOrUndefined(e.Note)&&t.isNullOrUndefined(e.Text)||(g.created=function(){setTimeout(function(){g.element.querySelector(".e-editable-value").innerText=t.isNullOrUndefined(e.Note)?t.isNullOrUndefined(e.Text)?"":e.Text:e.Note})},g.beginEdit=function(){g.value=g.valueEle.innerText}),g.appendTo(p);for(var u=document.querySelectorAll(".e-editable-inline"),f=0;f<u.length;f++)u[parseInt(f.toString(),10)].style.display="none";if(e||"freeText"===n||(g.enableEditMode=!0),g.enableEditMode&&"ink"===n&&g.dataBind(),this.getButtonState(g,p),g.actionSuccess=this.createCommentDiv.bind(this,g),A.appendChild(p),e){if(g.value=t.isNullOrUndefined(e.Note)?t.isNullOrUndefined(e.Text)?"":e.Text:e.Note,this.checkIslockProperty(e)&&null==e.Comments&&this.createCommentDiv(this.commentsContainer),"freeText"===e.Name&&(g.value=e.MarkupText),e.State){var m=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),w=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),C=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon"});w.appendChild(C),m.appendChild(w),A.appendChild(m),this.updateStatusContainer(e.State,C,w,m)}if(e.Comments){for(f=0;f<e.Comments.length;f++)this.renderComments(e.Comments[parseInt(f.toString(),10)],this.commentsContainer);" "!==e.Note&&""!==e.Note&&null!==e.Note&&this.createCommentDiv(this.commentsContainer),"Text Box"===e.AnnotType&&" "!==e.Text&&""!==e.Text&&null!==e.Text&&this.createCommentDiv(this.commentsContainer)}" "!==e.Note&&""!==e.Note&&null!==e.Note&&this.createCommentDiv(this.commentsContainer),"Text Box"===e.AnnotType&&" "!==e.Text&&""!==e.Text&&null!==e.Text&&this.createCommentDiv(this.commentsContainer)}return this.isNewcommentAdded=!0,A.addEventListener("click",this.commentsDivClickEvent.bind(this)),A.addEventListener("mouseover",this.commentDivMouseOver.bind(this)),A.addEventListener("mouseleave",this.commentDivMouseLeave.bind(this)),A.addEventListener("mouseout",this.commentDivMouseLeave.bind(this)),A.addEventListener("focusout",this.commentDivMouseLeave.bind(this)),p.addEventListener("dblclick",this.openEditorElement.bind(this)),p.addEventListener("focusin",this.commentDivFocus.bind(this)),this.commentsContainer.id}return""},e.prototype.commentDivFocus=function(e){if(t.isNullOrUndefined(this.pdfViewer.freeTextSettings.defaultText)&&(this.pdfViewer.freeTextSettings.defaultText="Type here"),!t.isNullOrUndefined(e.target)&&!t.isNullOrUndefined(this.pdfViewer.freeTextSettings.defaultText)&&this.pdfViewer.selectedItems&&this.pdfViewer.selectedItems.annotations[0]&&"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&e.target.value===this.pdfViewer.freeTextSettings.defaultText&&e.target.select(),this.isNewcommentAdded){var i=this,n=this.pdfViewerBase.currentPageNumber;setTimeout(function(){i.updateScrollPosition(n)},500)}else null!==e.relatedTarget&&e.relatedTarget.id===this.pdfViewer.element.id+"_viewerContainer"&&(e.preventDefault(),e.target.blur())},e.prototype.updateScrollPosition=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+e);if(t&&this.isNewcommentAdded){var i=0,n=document.querySelectorAll(".e-editable-inline");n[0]&&(i=n[0].getBoundingClientRect().height);var o=t.offsetTop+t.clientTop+i;this.pdfViewerBase.navigationPane.commentsContentContainer.scrollTop<o&&(this.pdfViewerBase.navigationPane.commentsContentContainer.scrollTop=o),this.isNewcommentAdded=!1}},e.prototype.updateCommentsScrollTop=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+this.pdfViewerBase.currentPageNumber),i=document.querySelector(".e-pv-comments-border"),n=0;if(t&&i){n=i.getBoundingClientRect().height;var o=void 0;o=e?t.offsetTop+i.offsetTop+n/4:t.offsetTop+i.offsetTop-70,this.pdfViewerBase.navigationPane.commentsContentContainer.scrollTop=o}},e.prototype.createCommentDiv=function(e){var i,n,o=this,r=t.createElement("div",{id:this.pdfViewer.element.id+"_newcommentdiv_"+this.commentsCount+"_"+this.commentsreplyCount,className:"e-pv-new-comments-div"});e.localName?i=e:(i=e.valueEle.parentElement.parentElement.parentElement.parentElement,n=e.valueEle.parentElement.parentElement.previousSibling.childNodes[1]);var s=this.pdfViewer.enableAutoComplete?"on":"off",l=new a.InPlaceEditor({mode:"Inline",type:"Text",value:"",editableOn:"Click",model:{placeholder:this.pdfViewer.localeObj.getConstant("Add a reply")+"..",htmlAttributes:{autocomplete:s}},emptyText:this.pdfViewer.localeObj.getConstant("Add a reply"),saveButton:{content:this.pdfViewer.localeObj.getConstant("Post"),cssClass:"e-outline",disabled:!0},cancelButton:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-outline"},submitOnEnter:!0});if(l.appendTo(r),r.lastChild.firstChild.click(),this.getButtonState(l,r),e.valueEle){this.pdfViewer.enableHtmlSanitizer&&e.value&&(e.value=t.SanitizeHtmlHelper.sanitize(e.value));var d=e.valueEle.parentNode.parentNode.parentNode.parentNode.id,A=this.pdfViewer.annotationCollection.filter(function(e){return e.annotationId===d})[0],h=e.element.parentElement.childNodes[0].childNodes[1].childNodes[0],p=i.getAttribute("name"),c=void 0,g=void 0;t.isNullOrUndefined(A)||("textMarkup"===p?this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation&&(c=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation.textMarkupAnnotationType):c=A.shapeAnnotationType,g=A.subject);var u=e.value!==e.prevValue?this.updatedAuthor(p,c,A.author,g):h.textContent;if(h.textContent=u,null!==e.value&&""!==e.value&&" "!==e.value||""===e.value&&""!==e.prevValue){if(this.pdfViewer.selectedItems.annotations[0]&&"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType)this.modifyTextProperty(e.value,e.prevValue,e.valueEle.parentNode.parentNode.parentNode.parentNode.id,u);else try{this.modifyTextProperty(e.value,e.prevValue,e.valueEle.parentNode.parentNode.parentNode.parentNode.id,u)}catch(t){this.modifyTextProperty(e.value,e.prevValue)}e.prevValue!=e.value&&this.updateModifiedDate(n)}1===e.valueEle.parentElement.parentElement.parentElement.parentElement.childElementCount&&null!=e.value&&""!==e.value&&(i.appendChild(r),setTimeout(function(){o.updateCommentsScrollTop(!0)},50))}else i.appendChild(r),setTimeout(function(){o.updateCommentsScrollTop(!0)},50);l.actionSuccess=this.saveCommentDiv.bind(this,l)},e.prototype.updatedAuthor=function(e,t,i,n){var o;return"textMarkup"===e?"Highlight"===t?o="Guest"!==this.pdfViewer.highlightSettings.author?this.pdfViewer.highlightSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Underline"===t?o="Guest"!==this.pdfViewer.underlineSettings.author?this.pdfViewer.underlineSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Strikethrough"===t&&(o="Guest"!==this.pdfViewer.strikethroughSettings.author?this.pdfViewer.strikethroughSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest"):"shape"===e?"Line"===t&&"Line"===n?o="Guest"!==this.pdfViewer.lineSettings.author?this.pdfViewer.lineSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Line"===t&&"Arrow"===n?o="Guest"!==this.pdfViewer.arrowSettings.author?this.pdfViewer.arrowSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Circle"===t&&"Circle"===n?o="Guest"!==this.pdfViewer.circleSettings.author?this.pdfViewer.circleSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Square"===t&&"Rectangle"===n?o="Guest"!==this.pdfViewer.rectangleSettings.author?this.pdfViewer.rectangleSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Polygon"===t&&"Polygon"===n&&(o="Guest"!==this.pdfViewer.polygonSettings.author?this.pdfViewer.polygonSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest"):"shape_measure"===e?"Line"!==t||"Line"!==n&&"Distance calculation"!==n?"Polyline"!==t||"Arrow"!==n&&"Perimeter calculation"!==n?"Circle"!==t||"Circle"!==n&&"Radius calculation"!==n?"Polygon"!==t||"Rectangle"!==n&&"Area calculation"!==n?"Polygon"!==t||"Polygon"!==n&&"Volume calculation"!==n||(o="Guest"!==this.pdfViewer.volumeSettings.author?this.pdfViewer.volumeSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest"):o="Guest"!==this.pdfViewer.areaSettings.author?this.pdfViewer.areaSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":o="Guest"!==this.pdfViewer.radiusSettings.author?this.pdfViewer.radiusSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":o="Guest"!==this.pdfViewer.perimeterSettings.author?this.pdfViewer.perimeterSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":o="Guest"!==this.pdfViewer.distanceSettings.author?this.pdfViewer.distanceSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"Ink"===t?o="Guest"!==this.pdfViewer.inkAnnotationSettings.author?this.pdfViewer.inkAnnotationSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"FreeText"===t?o="Guest"!==this.pdfViewer.freeTextSettings.author?this.pdfViewer.freeTextSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"sticky"===t?o="Guest"!==this.pdfViewer.stickyNotesSettings.author?this.pdfViewer.stickyNotesSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest":"stamp"===t&&(o="Guest"!==this.pdfViewer.stampSettings.author?this.pdfViewer.stampSettings.author:this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:"Guest"),o||(o=this.pdfViewer.annotationSettings.author),""!==o&&"Guest"!==o||"Guest"===i||""===i||(o=i),o},e.prototype.saveCommentDiv=function(e,i){var n,o,r,s;if(this.pdfViewer.enableHtmlSanitizer&&e.value&&(e.value=t.SanitizeHtmlHelper.sanitize(e.value)),i.name&&""!==e.value?(n=e.valueEle.parentElement.parentElement.parentElement,r=e.valueEle.parentElement.parentElement,s=e.value):(r=(n=e).lastChild,s=i),n&&r){n.removeChild(r);var l=t.createElement("div",{id:this.pdfViewer.element.id+"_replytextbox_"+this.commentsCount+"_"+this.commentsreplyCount});this.commentsreplyCount=this.commentsreplyCount+1;var d=t.createElement("div",{id:this.pdfViewer.element.id+"replyDiv_"+this.commentsCount+"_"+this.commentsreplyCount,className:"e-pv-reply-div"});d.id=this.pdfViewer.annotation.createGUID(),o=this.getAuthorName(this.pdfViewer.selectedItems.annotations[0],n),this.createReplyDivTitleContainer(d,null,o),d.addEventListener("mouseover",this.commentDivMouseOver.bind(this)),d.addEventListener("mouseleave",this.commentDivMouseLeave.bind(this)),d.addEventListener("click",this.commentDivOnSelect.bind(this)),l.addEventListener("dblclick",this.openEditorElement.bind(this)),d.style.border="1px",d.style.borderColor="black",d.style.zIndex=1002;var A=this.pdfViewer.enableAutoComplete?"on":"off",h=new a.InPlaceEditor({mode:"Inline",type:"Text",emptyText:"",editableOn:"EditIconClick",model:{placeholder:this.pdfViewer.localeObj.getConstant("Add a reply")+"..",htmlAttributes:{autocomplete:A}},value:s,saveButton:{content:this.pdfViewer.localeObj.getConstant("Post"),cssClass:"e-outline",disabled:!0},cancelButton:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-outline"}});h.created=function(){setTimeout(function(){h.element.querySelector(".e-editable-value").innerText=s})},h.beginEdit=function(){h.value=h.valueEle.innerText},h.appendTo(l),h.actionSuccess=this.modifyProperty.bind(this,h),d.appendChild(l),d.style.paddingLeft="24px",n.appendChild(d),this.getButtonState(h,l),d.addEventListener("click",this.commentsDivClickEvent.bind(this)),d.addEventListener("dblclick",this.commentsDivDoubleClickEvent.bind(this)),this.createCommentDiv(d.parentElement),this.modifyCommentsProperty(s,d.id,n.id)}},e.prototype.renderComments=function(e,i,n,o,r){var s,l=t.createElement("div",{id:this.pdfViewer.element.id+"_replytextbox_"+this.commentsCount+"_"+this.commentsreplyCount});this.commentsreplyCount=this.commentsreplyCount+1;var d=t.createElement("div",{id:"replyDiv_"+this.commentsCount+"_"+this.commentsreplyCount,className:"e-pv-reply-div"});n?(d.id=e.annotName,s=e.author):(d.id=e.AnnotName,s=e.Author),d.style.border="1px",d.style.borderColor="black",s||(s=i.getAttribute("author")),n?void 0!==e.modifiedDate?this.createReplyDivTitleContainer(d,e.modifiedDate,s):this.createReplyDivTitleContainer(d,null,s):this.createReplyDivTitleContainer(d,e.ModifiedDate,s),d.addEventListener("mouseover",this.commentDivMouseOver.bind(this)),d.addEventListener("mouseleave",this.commentDivMouseLeave.bind(this)),d.addEventListener("click",this.commentDivOnSelect.bind(this)),l.addEventListener("dblclick",this.openEditorElement.bind(this));var A=this.pdfViewer.enableAutoComplete?"on":"off",h=new a.InPlaceEditor({mode:"Inline",type:"Text",emptyText:"",editableOn:"EditIconClick",model:{placeholder:this.pdfViewer.localeObj.getConstant("Add a reply")+"..",htmlAttributes:{autocomplete:A}},value:"",saveButton:{content:this.pdfViewer.localeObj.getConstant("Post"),cssClass:"e-outline",disabled:!0},cancelButton:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-outline"}});if(h.value=n?e.note:e.Note,h.created=function(){setTimeout(function(){h.element.querySelector(".e-editable-value").innerText=n?e?e.note:"":e?e.Note:""})},h.beginEdit=function(){h.value=h.valueEle.innerText},h.appendTo(l),d.appendChild(l),n&&(e.State=e.state?e.state:e.review&&e.review.state?e.review.state:null),e.State){var p=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),c=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),g=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon"});c.appendChild(g),p.appendChild(c),d.appendChild(p),this.updateStatusContainer(e.State,g,c,p)}if(d.style.paddingLeft="24px",this.getButtonState(h,l),n)if(r)i.appendChild(d);else{var u=document.getElementById(o);e.position?u.insertBefore(d,u.childNodes[e.position]):u&&(u.childElementCount>1?u.insertBefore(d,u.childNodes[u.childElementCount-1]):i.appendChild(d))}else i.appendChild(d);d.addEventListener("click",this.commentsDivClickEvent.bind(this)),d.addEventListener("dblclick",this.commentsDivDoubleClickEvent.bind(this)),h.actionSuccess=this.modifyProperty.bind(this,h)},e.prototype.createCommentsContainer=function(e,i,n){var o=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+i);if(!o){var r=document.getElementById(this.pdfViewer.element.id+"_accordionPageContainer"+i);r&&r.parentElement.removeChild(r),(o=this.createPageAccordion(i))&&o.ej2_instances[0].expandItem(!0)}var s=document.getElementById(this.pdfViewer.element.id+"_accordioncontent"+i);this.commentsContainer=t.createElement("div",{id:this.pdfViewer.element.id+"commentscontainer_"+i+"_"+this.commentsCount,className:"e-pv-comments-container"}),this.commentsContainer.accessKey=i.toString()+"_"+this.commentsCount,e&&(this.commentsContainer.id=e.annotName?e.annotName:e.annotationId),this.commentsContainer.addEventListener("mousedown",this.commentsAnnotationSelect.bind(this));var l=t.createElement("div",{id:this.pdfViewer.element.id+"_commentdiv_"+i+"_"+this.commentsCount,className:"e-pv-comments-div"});if(this.commentsCount=this.commentsCount+1,this.commentsContainer.appendChild(l),this.updateCommentPanelScrollTop(i),e&&s&&(e.position||0===e.position?s.insertBefore(this.commentsContainer,s.children[e.position]):s.appendChild(this.commentsContainer)),e&&s)if(e.indent)this.commentsContainer.setAttribute("name","shape_measure"),this.createTitleContainer(l,"shape_measure",i,e.subject,e.modifiedDate,e.author);else if("sticky"===e.shapeAnnotationType||"stamp"===e.shapeAnnotationType){var d=this.createTitleContainer(l,e.shapeAnnotationType,i,null,e.modifiedDate,e.author);this.commentsContainer.setAttribute("name",d),"sticky"===d&&(n||this.addStickyNotesAnnotations(i-1,e))}else"textMarkup"===e.shapeAnnotationType?(this.commentsContainer.setAttribute("name","textMarkup"),this.createTitleContainer(l,"textMarkup",i,e.subject,e.modifiedDate,e.author)):"FreeText"===e.shapeAnnotationType?(e.note=e.dynamicText,this.commentsContainer.setAttribute("name","freetext"),this.createTitleContainer(l,"freeText",i,e.subject,e.modifiedDate)):"Ink"===e.shapeAnnotationType?(e.note=e.dynamicText,this.commentsContainer.setAttribute("name","ink"),this.createTitleContainer(l,"ink",i,e.subject,e.modifiedDate)):(this.commentsContainer.setAttribute("name","shape"),"Line"===e.shapeAnnotationType?this.createTitleContainer(l,"shape",i,e.subject,e.modifiedDate,e.author):this.createTitleContainer(l,"shape",i,e.shapeAnnotationType,e.modifiedDate,e.author));var A=t.createElement("div",{id:this.pdfViewer.element.id+"_commenttextbox_"+i+"_"+this.commentsCount,className:"e-pv-comment-textbox",attrs:{role:"textbox","aria-label":"comment textbox"}}),h=this.pdfViewer.enableAutoComplete?"on":"off",p=new a.InPlaceEditor({mode:"Inline",type:"Text",model:{placeholder:this.pdfViewer.localeObj.getConstant("Add a comment")+"..",htmlAttributes:{autocomplete:h}},emptyText:"",editableOn:"EditIconClick",saveButton:{content:this.pdfViewer.localeObj.getConstant("Post"),cssClass:"e-outline",disabled:!0},cancelButton:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-outline"},submitOnEnter:!0});p.appendTo(A);for(var c=document.querySelectorAll(".e-editable-inline"),g=0;g<c.length;g++)c[parseInt(g.toString(),10)].style.display="none";if(A.addEventListener("keydown",function(e){p.element.querySelector(".e-btn-save")&&(""!==e.srcElement.value?p.element.querySelector(".e-btn-save").ej2_instances[0].disabled=!1:p.element.querySelector(".e-btn-save").ej2_instances[0].disabled=!0)}),p.actionSuccess=this.createCommentDiv.bind(this,p),l.appendChild(A),e){p.value=e.note;var u=e.state?e.state:e.review&&e.review.state?e.review.state:null;if(u){var f=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),m=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),w=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon"});m.appendChild(w),f.appendChild(m),l.appendChild(f),this.updateStatusContainer(u,w,m,f)}if(e.comments){for(g=0;g<e.comments.length;g++)this.renderComments(e.comments[parseInt(g.toString(),10)],this.commentsContainer,!0,null,!0);e.comments.length>0&&this.createCommentDiv(this.commentsContainer)}}return l.addEventListener("click",this.commentsDivClickEvent.bind(this)),l.addEventListener("mouseover",this.commentDivMouseOver.bind(this)),l.addEventListener("mouseleave",this.commentDivMouseLeave.bind(this)),l.addEventListener("mouseout",this.commentDivMouseLeave.bind(this)),l.addEventListener("focusout",this.commentDivMouseLeave.bind(this)),A.addEventListener("dblclick",this.openEditorElement.bind(this)),this.commentsContainer.id},e.prototype.modifyProperty=function(e){var i=e.element.parentElement.id,n=e.element.parentElement.parentElement.id,o=e.element.previousSibling.firstChild;this.updateModifiedDate(o);var r,a,s=this.pdfViewer.annotationCollection.filter(function(e){return e.annotationId===n})[0],l=e.element.parentElement.parentElement.getAttribute("name");t.isNullOrUndefined(s)||("textMarkup"===l?this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation&&(r=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation.textMarkupAnnotationType):r=s.shapeAnnotationType,a=s.subject);var d=e.value!==e.prevValue?this.updatedAuthor(l,r,s.author,a):o.childNodes[0].textContent;o.childNodes[0].textContent=d,this.modifyCommentsProperty(e.value,i,n,e.prevValue,d)},e.prototype.createTitleContainer=function(e,i,n,o,r,a,s){var l=this.getAnnotationType(i),d=t.createElement("div",{id:this.pdfViewer.element.id+"_commentTitleConatiner_"+n+"_"+this.commentsCount,className:"e-pv-comment-title-container"}),A=t.createElement("span",{id:this.pdfViewer.element.id+"_commenttype_icon"+n+"_"+this.commentsCount});A.style.opacity="0.6",this.updateCommentIcon(A,l,o);var h;h=(h=a||this.pdfViewer.annotationModule.updateAnnotationAuthor(l,o)).replace(/(\r\n|\n|\r)/gm,""),A.style.padding="8px",A.style.cssFloat="left",d.appendChild(A);var p=t.createElement("div",{id:this.pdfViewer.element.id+"_commentTitle_"+n+"_"+this.commentsCount,className:"e-pv-comment-title"}),c=t.createElement("span",{id:this.pdfViewer.element.id+"_commentAuthor"+n+"_"+this.commentsCount,className:"e-pv-comment-author"}),g=t.createElement("span",{id:this.pdfViewer.element.id+"_commentDate"+n+"_"+this.commentsCount,className:"e-pv-comment-date"});r?(c.textContent=h,g.textContent=" - "+this.convertUTCDateToLocalDate(r)):(c.textContent=h,g.textContent=" - "+this.setModifiedDate()),d.appendChild(p),p.appendChild(c),p.appendChild(g),p.style.whiteSpace="nowrap",p.style.display="flex",p.style.alignItems="baseline",c.style.whiteSpace="nowrap",c.style.overflow="hidden",c.style.textOverflow="ellipsis",c.style.minWidth="40px",c.style.marginRight="8px",this.moreButtonId=this.pdfViewer.element.id+"_more-options_"+this.commentsCount+"_"+this.commentsreplyCount;var u=t.createElement("button",{id:this.moreButtonId,className:"e-pv-more-options-button e-btn",attrs:{tabindex:"-1"}});u.style.visibility="hidden",u.style.zIndex="1001",u.setAttribute("type","button"),u.setAttribute("aria-label","more button");var f=t.createElement("span",{id:this.pdfViewer.element.id+"_more-options_icon",className:"e-pv-more-icon e-pv-icon"});u.appendChild(f),f.style.opacity="0.87",d.appendChild(u),e.appendChild(d);var m=e.parentElement;if(m){var w=this.pdfViewer.annotationModule.updateAnnotationAuthor(l,o);m.setAttribute("author",w)}return this.isCreateContextMenu||this.createCommentContextMenu(),this.isCreateContextMenu=!0,p.parentElement&&0!==p.parentElement.clientWidth?p.style.maxWidth=p.parentElement.clientWidth-u.clientWidth+"px":p.style.maxWidth="258px",d.addEventListener("dblclick",this.openTextEditor.bind(this)),u.addEventListener("mouseup",this.moreOptionsClick.bind(this)),l},e.prototype.createReplyDivTitleContainer=function(e,i,n){var o=t.createElement("div",{id:this.pdfViewer.element.id+"_replyTitleConatiner_"+this.commentsCount+"_"+this.commentsreplyCount,className:"e-pv-reply-title-container"}),r=t.createElement("div",{id:this.pdfViewer.element.id+"_replyTitle_"+this.commentsCount+"_"+this.commentsreplyCount,className:"e-pv-reply-title"});n=n.replace(/(\r\n|\n|\r)/gm,"");var a=t.createElement("span",{id:this.pdfViewer.element.id+"_replyTitle_author_"+this.commentsreplyCount,className:"e-pv-reply-author"}),s=t.createElement("span",{id:this.pdfViewer.element.id+"_replyTitle_date_"+this.commentsreplyCount,className:"e-pv-reply-date"});i?(a.textContent=n,s.textContent=" - "+this.setExistingAnnotationModifiedDate(i)):(a.textContent=n,s.textContent=" - "+this.setModifiedDate()),o.appendChild(r),r.appendChild(a),r.appendChild(s),r.style.whiteSpace="nowrap",r.style.display="flex",a.style.whiteSpace="nowrap",a.style.overflow="hidden",a.style.textOverflow="ellipsis",a.style.minWidth="40px",a.style.marginRight="8px",this.moreButtonId=this.pdfViewer.element.id+"_more-options_"+this.commentsCount+"_"+this.commentsreplyCount;var l=t.createElement("button",{id:this.moreButtonId,className:"e-pv-more-options-button e-btn",attrs:{tabindex:"-1"}});l.style.visibility="hidden",l.style.zIndex="1001",l.setAttribute("type","button"),l.setAttribute("aria-label","more button");var d=t.createElement("span",{id:this.pdfViewer.element.id+"_more-options_icon",className:"e-pv-more-icon e-pv-icon"});l.appendChild(d),d.style.opacity="0.87",o.appendChild(l),e.appendChild(o);var A=document.querySelector('[class="e-pv-comment-author"]'),h=document.querySelectorAll('[class="e-pv-more-options-button e-btn"]');A&&h[0]&&A.parentElement&&0!==A.parentElement.clientWidth?r.style.maxWidth=parseInt(A.parentElement.style.maxWidth,10)-h[0].clientWidth+"px":r.style.maxWidth="217px",o.addEventListener("dblclick",this.openTextEditor.bind(this)),l.addEventListener("mouseup",this.moreOptionsClick.bind(this))},e.prototype.updateCommentIcon=function(e,t,i){"sticky"===t?e.className="e-pv-comment-icon e-pv-icon":"stamp"===t?e.className="e-pv-stamp-icon e-pv-icon":"shape"===t?e.className="Line"===i?"e-pv-shape-line-icon e-pv-icon":"LineWidthArrowHead"===i||"Arrow"===i?"e-pv-shape-arrow-icon e-pv-icon":"Circle"===i||"Ellipse"===i||"Oval"===i?"e-pv-shape-circle-icon e-pv-icon":"Rectangle"===i||"Square"===i?"e-pv-shape-rectangle-icon e-pv-icon":"Polygon"===i?"e-pv-shape-pentagon-icon e-pv-icon":"e-pv-annotation-shape-icon e-pv-icon":"measure"===t?e.className="Distance"===i||"Distance calculation"===i?"e-pv-calibrate-distance-icon e-pv-icon":"Perimeter"===i||"Perimeter calculation"===i?"e-pv-calibrate-perimeter-icon e-pv-icon":"Radius"===i||"Radius calculation"===i?"e-pv-calibrate-radius-icon e-pv-icon":"Area"===i||"Area calculation"===i?"e-pv-calibrate-area-icon e-pv-icon":"Volume"===i||"Volume calculation"===i?"e-pv-calibrate-volume-icon e-pv-icon":"e-pv-annotation-calibrate-icon e-pv-icon":"textMarkup"===t?e.className="Highlight"===i?"e-pv-highlight-icon e-pv-icon":"Underline"===i?"e-pv-underline-icon e-pv-icon":"Strikethrough"===i?"e-pv-strikethrough-icon e-pv-icon":"Squiggly"===i?"e-pv-squiggly-icon e-pv-icon":"e-pv-annotation-icon e-pv-icon":"freeText"===t?e.className="e-pv-freetext-icon e-pv-icon":"ink"!==t&&"Ink"!==i||(e.className="e-pv-inkannotation-icon e-pv-icon")},e.prototype.updateStatusContainer=function(e,t,i,n){"Accepted"===e?(i.style.backgroundColor="rgb(24,169,85)",t.className="e-pv-accepted-icon"):"Completed"===e?(i.style.backgroundColor="rgb(0,122,255)",t.className="e-pv-completed-icon"):"Cancelled"===e?(i.style.backgroundColor="rgb(245,103,0)",t.className="e-pv-cancelled-icon"):"Rejected"===e?(i.style.backgroundColor="rgb(255,59,48)",t.className="e-pv-rejected-icon"):(t.className="",n.parentElement.removeChild(n))},e.prototype.updateAccordionContainer=function(e){var t=parseInt(e.accessKey.split("_")[0],10),i=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+t);i&&i.parentElement.removeChild(i);var n=document.getElementById(this.pdfViewer.element.id+"_accordionContentContainer");n&&0===n.childElementCount&&(n.style.display="none",document.getElementById(this.pdfViewer.element.id+"_commentsPanelText")&&(this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!1),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!1),document.getElementById(this.pdfViewer.element.id+"_commentsPanelText").style.display="block",this.updateCommentPanelTextTop()))},e.prototype.createCommentContextMenu=function(){this.commentContextMenu=[{text:this.pdfViewer.localeObj.getConstant("Edit")},{text:this.pdfViewer.localeObj.getConstant("Delete Context")},{text:this.pdfViewer.localeObj.getConstant("Set Status"),items:[{text:this.pdfViewer.localeObj.getConstant("None")},{text:this.pdfViewer.localeObj.getConstant("Accepted")},{text:this.pdfViewer.localeObj.getConstant("Cancelled")},{text:this.pdfViewer.localeObj.getConstant("Completed")},{text:this.pdfViewer.localeObj.getConstant("Rejected")}]}];var e=t.createElement("ul",{id:this.pdfViewer.element.id+"_comment_context_menu"});this.pdfViewer.element.appendChild(e),this.commentMenuObj=new s.ContextMenu({target:"#"+this.moreButtonId,items:this.commentContextMenu,beforeOpen:this.contextMenuBeforeOpen.bind(this),select:this.commentMenuItemSelect.bind(this)}),this.pdfViewer.enableRtl&&(this.commentMenuObj.enableRtl=!0),this.commentMenuObj.appendTo(e),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.commentMenuObj.animationSettings.effect="ZoomIn":this.commentMenuObj.animationSettings.effect="SlideDown"},e.prototype.contextMenuBeforeOpen=function(e){var t,i=document.querySelectorAll(".e-pv-more-options-button");if(i)for(var n=0;n<i.length;n++)"visible"===i[parseInt(n.toString(),10)].style.visibility&&(t=i[parseInt(n.toString(),10)].parentElement.nextSibling);this.checkIslockProperty(t)?(this.commentMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Edit")],!1),this.commentMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Delete Context")],!1)):(this.commentMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Edit")],!0),this.commentMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Delete Context")],!0))},e.prototype.commentMenuItemSelect=function(e){var i,n=document.querySelectorAll(".e-pv-more-options-button");if(n){for(r=0;r<n.length;r++)"visible"===n[parseInt(r.toString(),10)].style.visibility&&(i=n[parseInt(r.toString(),10)].parentElement.nextSibling);if(e.item)switch(e.item.text){case this.pdfViewer.localeObj.getConstant("Edit"):for(var o=document.querySelectorAll(".e-pv-new-comments-div"),r=0;r<o.length;r++)o[parseInt(r.toString(),10)].style.display="none";i.ej2_instances[0].enableEditMode=!0,i.ej2_instances[0].dataBind();break;case this.pdfViewer.localeObj.getConstant("Delete Context"):if(i.parentElement.parentElement.firstChild===i.parentElement){var a=this.getAnnotationById(i.parentElement.parentElement);if(a){var s=a.annotation;a.pageIndex;s&&this.handleCommentDeletion(s)}}else this.modifyCommentDeleteProperty(i.parentElement.parentElement,i.parentElement);break;case this.pdfViewer.localeObj.getConstant("Set Status"):break;case this.pdfViewer.localeObj.getConstant("Accepted"):i.parentElement.lastChild.id===this.pdfViewer.element.id+"status_container"&&i.parentElement.lastChild.remove();var l=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),d=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),A=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon",className:"e-pv-accepted-icon"});d.style.backgroundColor="rgb(24,169,85)",d.appendChild(A),l.appendChild(d),i.parentElement.appendChild(l),this.modifyStatusProperty("Accepted",i.parentElement);break;case this.pdfViewer.localeObj.getConstant("Completed"):i.parentElement.lastChild.id===this.pdfViewer.element.id+"status_container"&&i.parentElement.lastChild.remove();var h=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),p=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),c=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon",className:"e-pv-completed-icon"});p.style.backgroundColor="rgb(0,122,255)",p.appendChild(c),h.appendChild(p),i.parentElement.appendChild(h),this.modifyStatusProperty("Completed",i.parentElement);break;case this.pdfViewer.localeObj.getConstant("Cancelled"):i.parentElement.lastChild.id===this.pdfViewer.element.id+"status_container"&&i.parentElement.lastChild.remove();var g=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),u=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),f=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon",className:"e-pv-cancelled-icon"});u.style.backgroundColor="rgb(245,103,0)",u.appendChild(f),g.appendChild(u),i.parentElement.appendChild(g),this.modifyStatusProperty("Cancelled",i.parentElement);break;case this.pdfViewer.localeObj.getConstant("Rejected"):i.parentElement.lastChild.id===this.pdfViewer.element.id+"status_container"&&i.parentElement.lastChild.remove();var m=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),w=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),C=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon",className:"e-pv-rejected-icon"});w.style.backgroundColor="rgb(255,59,48)",w.appendChild(C),m.appendChild(w),i.parentElement.appendChild(m),this.modifyStatusProperty("Rejected",i.parentElement);break;case this.pdfViewer.localeObj.getConstant("None"):i.parentElement.lastChild.id===this.pdfViewer.element.id+"status_container"&&i.parentElement.lastChild.remove(),this.modifyStatusProperty("None",i.parentElement)}}},e.prototype.handleCommentDeletion=function(e){t.isNullOrUndefined(e.note)||""===e.note||this.pdfViewer.fireCommentDelete(e.annotName,e.note,e),this.pdfViewer.annotationModule.deleteAnnotation()},e.prototype.getAnnotationById=function(e){var t=parseInt(e.accessKey.split("_")[0],10)-1,i=e.getAttribute("name"),n=this.getAnnotations(t,null,i);return n?{annotation:n.find(function(t){return t.annotName===e.id})||null,pageIndex:t}:null},e.prototype.moreOptionsClick=function(e,t){if("block"!==document.getElementById(this.pdfViewer.element.id+"_comment_context_menu").style.display&&(this.pdfViewer.annotationModule.checkContextMenuDeleteItem(this.commentMenuObj),this.commentMenuObj.open(e.clientY,e.clientX,e.currentTarget)),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.inkAnnotationModule){var i=parseInt(this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(i)}},e.prototype.openTextEditor=function(e){for(var t=document.querySelectorAll(".e-pv-new-comments-div"),i=0;i<t.length;i++)t[parseInt(i.toString(),10)].style.display="none";this.checkIslockProperty(e.currentTarget.nextSibling)?e.currentTarget.nextSibling.ej2_instances[0].enableEditMode=!1:e.currentTarget&&e.target?this.checkAnnotationSettings(e.currentTarget.id)||(e.currentTarget.nextSibling.ej2_instances[0].enableEditMode=!0,e.currentTarget.nextSibling.ej2_instances[0].dataBind()):(e.currentTarget.nextSibling.ej2_instances[0].enableEditMode=!0,e.currentTarget.nextSibling.ej2_instances[0].dataBind())},e.prototype.checkIslockProperty=function(e){var i,n=this.pdfViewer.annotationCollection;if(e.IsCommentLock)return!0;this.pdfViewer.annotationModule.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?i=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation:this.pdfViewer.selectedItems.annotations[0]&&(i=this.pdfViewer.selectedItems.annotations[0]);for(var o=0;o<n.length;o++){n[parseInt(o.toString(),10)].annotationSettings=t.isNullOrUndefined(n[parseInt(o.toString(),10)].annotationSettings)?{}:n[parseInt(o.toString(),10)].annotationSettings;var r=t.isNullOrUndefined(n[parseInt(o.toString(),10)].note)?n[parseInt(o.toString(),10)].notes:n[parseInt(o.toString(),10)].note;if(n[parseInt(o.toString(),10)].annotationSettings.isLock&&(e.textContent===r||n[parseInt(o.toString(),10)].dynamicText===e.textContent))return!0;if(n[parseInt(o.toString(),10)].isCommentLock&&(this.pdfViewer.selectedItems.annotations[parseInt(o.toString(),10)]&&this.pdfViewer.selectedItems.annotations[parseInt(o.toString(),10)].isCommentLock||this.pdfViewer.annotationModule.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation.isCommentLock))return!0;for(var a=0;a<n[parseInt(o.toString(),10)].comments.length;a++)if(i&&n[parseInt(o.toString(),10)].annotationId===i.annotName&&n[parseInt(o.toString(),10)].pageNumber===i.pageNumber&&!0===n[parseInt(o.toString(),10)].comments[parseInt(a.toString(),10)].isLock&&e.textContent===n[parseInt(o.toString(),10)].comments[parseInt(a.toString(),10)].note)return!0}return!1},e.prototype.openEditorElement=function(e){for(var i=document.querySelectorAll(".e-pv-new-comments-div"),n=0;n<i.length;n++)i[parseInt(n.toString(),10)].style.display="none";this.checkIslockProperty(e.currentTarget)?e.currentTarget.ej2_instances[0].enableEditMode=!1:e.currentTarget&&e.target?this.checkAnnotationSettings(e.currentTarget.id)||(!t.isNullOrUndefined(this.pdfViewer.selectedItems)&&this.pdfViewer.selectedItems.annotations[0]&&this.pdfViewer.selectedItems.annotations[0].isReadonly?e.currentTarget.ej2_instances[0].enableEditMode=!1:(e.currentTarget.ej2_instances[0].enableEditMode=!0,e.currentTarget.ej2_instances[0].dataBind())):(e.currentTarget.ej2_instances[0].enableEditMode=!0,e.currentTarget.ej2_instances[0].dataBind())},e.prototype.commentsDivClickEvent=function(e){var i=this.findAnnotationObject(e.currentTarget.parentElement.id);if(!(!t.isNullOrUndefined(i)&&(i.annotationSettings.isLock||i.isLock))){var n=!1;if(0===e.clientX&&0===e.clientY?this.isSetAnnotationType=!0:this.isSetAnnotationType=!1,"e-pv-more-icon e-pv-icon"===e.target.className)return null;for(var o=document.querySelectorAll(".e-pv-more-options-button"),r=0;r<o.length;r++)o[parseInt(r.toString(),10)].style.visibility="hidden";"none"===document.getElementById(this.pdfViewer.element.id+"_commantPanel").style.display&&this.pdfViewer.annotationModule.showCommentsPanel(),e.currentTarget.parentElement.classList.contains("e-pv-comments-border")&&(n=!0),e.currentTarget.firstChild.lastChild.style.visibility="visible";var a=document.querySelectorAll(".e-pv-comments-border");if(a)for(var s=0;s<a.length;s++)a[parseInt(s.toString(),10)].classList.remove("e-pv-comments-border");e.currentTarget.parentElement.classList.add("e-pv-comments-border");for(var l=document.querySelectorAll(".e-pv-new-comments-div"),r=0;r<l.length;r++)l[parseInt(r.toString(),10)].style.display="none";var d=e.currentTarget.parentElement.lastChild,A=e.currentTarget.parentElement;if(d){if(d.style.display="block",d.querySelector(".e-editable-inline")){this.isEditableElement||(d.querySelector(".e-editable-inline").style.display="block");for(r=0;r<A.childElementCount;r++){var h=A.childNodes[parseInt(r.toString(),10)].querySelector(".e-editable-inline");h&&""===h.style.display&&(d.style.display="none",d.querySelector(".e-editable-inline").style.display="none")}}this.isSetAnnotationType&&(n||this.updateCommentsScrollTop())}if(1===e.currentTarget.parentElement.childElementCount)if(this.pdfViewer.enableShapeLabel){var p=e.currentTarget.parentElement.getAttribute("name");this.isSetAnnotationType&&"shape"===p?e.currentTarget.childNodes[1].ej2_instances[0].enableEditMode=!1:(e.currentTarget.childNodes[1].ej2_instances[0].enableEditMode=!0,e.currentTarget.childNodes[1].ej2_instances[0].dataBind())}else e.currentTarget.childNodes[1].ej2_instances[0].enableEditMode=!0,e.currentTarget.childNodes[1].ej2_instances[0].dataBind();var c=void 0;e&&e.currentTarget&&e.currentTarget.childNodes[1]&&(c=e.currentTarget.childNodes[1].ej2_instances[0]),e.currentTarget&&e.currentTarget.id&&c&&(i&&i.isCommentLock&&(c.enableEditMode=!1,this.createCommentDiv(e.currentTarget)),this.pdfViewer.fireCommentSelect(e.currentTarget.id,e.currentTarget.childNodes[1].ej2_instances[0].value,i)),this.commentDivOnSelect(e),e.preventDefault()}},e.prototype.commentsDivDoubleClickEvent=function(e){for(var t=document.querySelectorAll(".e-pv-new-comments-div"),i=0;i<t.length;i++)t[parseInt(i.toString(),10)].style.display="none";this.checkIslockProperty(e.currentTarget.children[1])?2===e.currentTarget.childElementCount?e.currentTarget.lastChild.ej2_instances[0].enableEditMode=!1:e.currentTarget.childNodes[1].ej2_instances[0].enableEditMode=!1:e.currentTarget&&e.target&&(this.checkAnnotationSettings(e.currentTarget.id)||(2===e.currentTarget.childElementCount?(e.currentTarget.lastChild.ej2_instances[0].enableEditMode=!0,e.currentTarget.lastChild.ej2_instances[0].dataBind()):(e.currentTarget.childNodes[1].ej2_instances[0].enableEditMode=!0,e.currentTarget.childNodes[1].ej2_instances[0].dataBind())))},e.prototype.commentDivOnSelect=function(e){for(var t=document.querySelectorAll(".e-pv-comments-select"),i=0;i<t.length;i++)t[parseInt(i.toString(),10)].classList.remove("e-pv-comments-select");var n=document.getElementById(e.currentTarget.id);if(n&&(n.classList.remove("e-pv-comments-hover"),n.classList.remove("e-pv-comments-leave"),n.classList.add("e-pv-comments-select"),e.currentTarget.nextSibling&&e.currentTarget.nextSibling.classList.contains("e-pv-new-comments-div"))){var o=document.getElementById(e.currentTarget.nextSibling.id);o.classList.remove("e-pv-comments-hover"),o.classList.remove("e-pv-comments-leave"),o.classList.add("e-pv-comments-select")}},e.prototype.commentDivMouseOver=function(e){var t=document.getElementById(e.currentTarget.id);if(t&&(t.classList.remove("e-pv-comments-select"),t.classList.remove("e-pv-comments-leave"),t.classList.add("e-pv-comments-hover"),e.currentTarget.nextSibling&&e.currentTarget.nextSibling.classList.contains("e-pv-new-comments-div"))){var i=document.getElementById(e.currentTarget.nextSibling.id);i.classList.remove("e-pv-comments-select"),i.classList.remove("e-pv-comments-leave"),i.classList.add("e-pv-comments-hover")}},e.prototype.commentDivMouseLeave=function(e){var t=document.getElementById(e.currentTarget.id);if(t&&(t.classList.remove("e-pv-comments-hover"),t.classList.remove("e-pv-comments-select"),t.classList.add("e-pv-comments-leave"),e.currentTarget.nextSibling&&e.currentTarget.nextSibling.classList.contains("e-pv-new-comments-div"))){var i=document.getElementById(e.currentTarget.nextSibling.id);i.classList.remove("e-pv-comments-hover"),i.classList.remove("e-pv-comments-select"),i.classList.add("e-pv-comments-leave")}},e.prototype.drawIcons=function(e){if(this.pdfViewerBase.isCommentIconAdded){var i=this.pdfViewer.annotation.getEventPageNumber(e),n=this.pdfViewerBase.getElement("_pageDiv_"+i).getBoundingClientRect(),o=this.pdfViewerBase.getZoomFactor();this.pdfViewer.annotationModule.isFormFieldShape=!1,this.pdfViewer.annotation.stickyNotesAnnotationModule.drawStickyNotes((e.clientX-n.left)/o,(e.clientY-n.top)/o,30,30,i,null),this.pdfViewerBase.isCommentIconAdded=!1;var r=document.getElementById(this.pdfViewer.element.id+"_comment");if(t.isBlazor()&&(r=r.children[0]),r&&r.classList.contains("e-pv-select"))r.classList.remove("e-pv-select");else{var a=document.getElementById(this.pdfViewer.element.id+"_commentIcon");a&&(this.pdfViewer.enableRtl?a.className="e-pv-comment-icon e-pv-icon e-icon-left e-right":a.className="e-pv-comment-icon e-pv-icon e-icon-left")}}},e.prototype.addComments=function(e,t,i){var n;return document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+t)?n=this.pdfViewer.annotation.stickyNotesAnnotationModule.createCommentControlPanel(null,t,e,i):(this.pdfViewer.annotation.stickyNotesAnnotationModule.createPageAccordion(t),n=this.pdfViewer.annotation.stickyNotesAnnotationModule.createCommentControlPanel(null,t,e,i)),n},e.prototype.commentsAnnotationSelect=function(e){var t=e.currentTarget;if(this.checkAnnotationSettings(t.id)){r=parseInt(t.accessKey.split("_")[0],10);this.pdfViewer.navigation&&this.pdfViewer.navigationModule.goToPage(r);var i=t.getAttribute("name");"null"!==i&&"Ink"!==i||(i="ink"),this.isCommentsSelected=!1,this.setAnnotationType(t.id,i,r),this.isCommentsSelected||(this.selectAnnotationObj={id:t.id,annotType:i,pageNumber:r})}else{if(t.classList.contains("e-pv-comments-border")){for(var n=document.querySelectorAll(".e-pv-comments-div"),o=0;o<n.length;o++)n[parseInt(o.toString(),10)].style.minHeight="60px";1===e.currentTarget.childElementCount&&e.currentTarget.childNodes[0].querySelector(".e-editable-inline")&&(e.currentTarget.childNodes[0].style.minHeight=e.currentTarget.childNodes[0].clientHeight)}if("e-pv-more-icon e-pv-icon"===e.target.className||"e-pv-more-options-button e-btn"===e.target.className)return e.preventDefault(),null;var r=parseInt(t.accessKey.split("_")[0],10);if(t.classList.contains("e-pv-comments-border"))this.isSetAnnotationType=!0;else{var a=document.querySelectorAll(".e-pv-comments-border");if(a)for(o=0;o<a.length;o++)a[parseInt(o.toString(),10)].classList.remove("e-pv-comments-border");(n=document.getElementById(t.id))&&(document.querySelectorAll('.e-pv-more-options-button[style*="visibility: visible"]').forEach(function(e){return e.style.visibility="hidden"}),"e-editable-value-wrapper"===e.target.className?e.target.parentElement.parentElement.firstChild.lastChild.style.visibility="visible":"e-pv-reply-title"===e.target.className||"e-pv-comment-title"===e.target.className?e.target.parentElement.lastChild.style.visibility="visible":"e-editable-value"===e.target.className&&(e.target.parentElement.parentElement.parentElement.firstChild.lastChild.style.visibility="visible"),n.classList.add("e-pv-comments-border"));for(var s=document.querySelectorAll(".e-pv-new-comments-div"),o=0;o<s.length;o++)s[parseInt(o.toString(),10)].style.display="none";if(n){var l=n.querySelector(".e-pv-new-comments-div");l&&(l.style.display="block")}var d=t.lastChild;if(this.isEditableElement=!1,d.querySelector(".e-editable-inline")){d.style.display="block",d.querySelector(".e-editable-inline").style.display="block";for(var A=0;A<t.childElementCount;A++){var h=t.childNodes[parseInt(A.toString(),10)].querySelector(".e-editable-inline");h&&""===h.style.display&&d.classList.contains("e-pv-new-comments-div")&&(this.isEditableElement=!0,d.style.display="none",d.querySelector(".e-editable-inline").style.display="none")}}this.isSetAnnotationType=!1,1===e.currentTarget.childElementCount&&(e.currentTarget.childNodes[0].childNodes[1].ej2_instances[0].enableEditMode=!0,e.currentTarget.childNodes[0].childNodes[1].ej2_instances[0].dataBind())}this.isSetAnnotationType||("null"!==(i=t.getAttribute("name"))&&"Ink"!==i||(i="ink"),this.isCommentsSelected=!1,this.setAnnotationType(t.id,i,r),this.isCommentsSelected||(this.selectAnnotationObj={id:t.id,annotType:i,pageNumber:r}),this.pdfViewer.navigation&&this.pdfViewer.navigationModule.goToPage(r))}this.isSetAnnotationType=!1},e.prototype.findAnnotationObject=function(e){if(this.pdfViewer.annotationModule.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)return this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation;if(this.pdfViewer.selectedItems.annotations[0])return this.pdfViewer.selectedItems.annotations[0];var t=this.pdfViewer.annotationCollection;if(t)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].annotationId&&t[parseInt(i.toString(),10)].annotationId===e){if("textMarkup"===t[parseInt(i.toString(),10)].shapeAnnotationType)return t[parseInt(i.toString(),10)];t=this.pdfViewer.annotations;for(var n=0;n<t.length;n++)if(t[parseInt(n.toString(),10)].annotName&&t[parseInt(n.toString(),10)].annotName===e)return t[parseInt(n.toString(),10)]}},e.prototype.checkAnnotationSettings=function(e){var i=this.pdfViewer.annotationCollection;if(i){var n=i.find(function(t){return t.annotationId===e});return!!(n&&n.annotationSettings&&n.annotationSettings.isLock)&&(!(n.isCommentLock||0!==n.comments.length||!t.isNullOrUndefined(n.note)&&""!==n.note||"FreeText"===n.shapeAnnotationType)||!!(!t.isNullOrUndefined(n.comments)&&n.comments.length>0&&n.comments[0].isLock||n.isCommentLock))}return!1},e.prototype.updateCommentsContainerWidth=function(){var e=document.getElementById(this.pdfViewer.element.id+"_accordionContentContainer"),t=document.getElementById(this.pdfViewer.element.id+"_commentscontentcontainer");e.style.width=t.clientWidth+"px"},e.prototype.selectCommentsAnnotation=function(e){this.selectAnnotationObj&&!this.isCommentsSelected&&this.selectAnnotationObj.pageNumber-1===e&&(this.setAnnotationType(this.selectAnnotationObj.id,this.selectAnnotationObj.annotType,this.selectAnnotationObj.pageNumber),this.selectAnnotationObj=null,this.isCommentsSelected=!0)},e.prototype.setAnnotationType=function(e,t,i){var n="measure"===t?"shape_measure":t;"freeText"===n&&(n="freetext");var o=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_"+n);if(this.pdfViewerBase.isStorageExceed&&(o=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+n]),o){var r=JSON.parse(o),a=this.pdfViewer.selectedItems.annotations[0],s=this.pdfViewer.annotationModule.getPageCollection(r,i-1);if(null!=s&&r[parseInt(s.toString(),10)])for(var l=r[parseInt(s.toString(),10)].annotations,d=0;d<l.length;d++){var A=l[parseInt(d.toString(),10)].annotationSelectorSettings;if(l[parseInt(d.toString(),10)].annotName===e){if(a&&(this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent()),this.pdfViewer.clearSelection(i-1),"textMarkup"===t){this.pdfViewer.annotationModule.textMarkupAnnotationModule.clearCurrentAnnotationSelection(i-1,!0);var h=a&&"Highlight"===a.textMarkupAnnotationType?"_blendAnnotationsIntoCanvas_":"_annotationCanvas_",p=this.pdfViewerBase.getElement(h+(i-1));this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectAnnotation(l[parseInt(d.toString(),10)],p,i-1),this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAnnotation=l[parseInt(d.toString(),10)],this.pdfViewer.annotation.textMarkupAnnotationModule.selectTextMarkupCurrentPage=i-1,this.pdfViewer.annotation.textMarkupAnnotationModule.enableAnnotationPropertiesTool(!0),this.pdfViewer.toolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden=!0,this.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(this.pdfViewer.toolbarModule.annotationItem))}else"stamp"===t?(this.pdfViewer.select([l[parseInt(d.toString(),10)].randomId],A),this.pdfViewer.annotation.onAnnotationMouseDown()):"sticky"===t?(this.pdfViewer.select([l[parseInt(d.toString(),10)].annotName],A),this.pdfViewer.annotation.onAnnotationMouseDown()):(this.pdfViewer.select([l[parseInt(d.toString(),10)].id],A),this.pdfViewer.annotation.onAnnotationMouseDown());if("textMarkup"===t){if((l[parseInt(d.toString(),10)].rect||l[parseInt(d.toString(),10)].bounds)&&(f=this.pdfViewerBase.pageSize[i-1].top*this.pdfViewerBase.getZoomFactor()+this.pdfViewer.annotationModule.getAnnotationTop(l[parseInt(d.toString(),10)])*this.pdfViewerBase.getZoomFactor())){var c=(f-20).toString();this.pdfViewerBase.viewerContainer.scrollTop=parseInt(c,10),this.pdfViewerBase.viewerContainer.scrollLeft=l[parseInt(d.toString(),10)].bounds[0].Left*this.pdfViewerBase.getZoomFactor()-20}}else{var g=l[parseInt(d.toString(),10)].bounds.top,u=l[parseInt(d.toString(),10)].bounds.left*this.pdfViewerBase.getZoomFactor()-20;"ink"===t&&(g=l[parseInt(d.toString(),10)].bounds.y,u=l[parseInt(d.toString(),10)].bounds.x*this.pdfViewerBase.getZoomFactor()-20);var f=this.pdfViewerBase.pageSize[i-1].top*this.pdfViewerBase.getZoomFactor()+g*this.pdfViewerBase.getZoomFactor(),m=(f-20).toString();this.pdfViewerBase.viewerContainer.scrollTop=parseInt(m,10),this.pdfViewerBase.viewerContainer.scrollLeft=u}this.isCommentsSelected=!0}}}},e.prototype.modifyTextProperty=function(e,i,n,o){var r,a=this.pdfViewer.annotationModule.textMarkupAnnotationModule;if(a&&a.currentTextMarkupAnnotation&&(r=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation),r?r.annotName!==n&&(r=this.pdfViewer.selectedItems.annotations[0]):r=this.pdfViewer.selectedItems.annotations[0],(t.isNullOrUndefined(r)&&n||!t.isNullOrUndefined(r)&&r.annotName!==n)&&(r=this.pdfViewer.annotationCollection.filter(function(e){return e.annotationId===n})[0]),n&&r.annotName!==n)for(g=0;g<this.pdfViewer.annotations.length;g++)if(n===this.pdfViewer.annotations[parseInt(g.toString(),10)].annotName){r=this.pdfViewer.annotations[parseInt(g.toString(),10)];break}if(r){r.annotName=t.isNullOrUndefined(r.annotName)?r.annotationId:r.annotName;var s=document.getElementById(r.annotName);if(s){var l=void 0;l=s.accessKey.split("_")[0]?parseInt(s.accessKey.split("_")[0],10):this.pdfViewerBase.currentPageNumber;var d=s.getAttribute("name"),A=l-1,h=void 0,p=!1;if("FreeText"===r.shapeAnnotationType||this.pdfViewer.enableShapeLabel&&("shape"===d||"shape_measure"===d)){var c=!1;n&&r.annotName!==n&&(this.pdfViewer.annotation.modifyDynamicTextValue(e,n),c=!0),c||("FreeText"===r.shapeAnnotationType?(r.dynamicText!==e&&(this.textFromCommentPanel=!0,r.author=o,this.pdfViewer.annotation.modifyDynamicTextValue(e,r.annotName)),r.dynamicText=e):(this.pdfViewer.annotation.modifyDynamicTextValue(e,r.annotName),r.labelContent=e,r.notes=e),this.pdfViewer.nodePropertyChange(r,{}))}if(r.measureType&&""!==r.measureType?(h=this.getAnnotations(A,null,"shape_measure"),p=!0):h=this.getAnnotations(A,null,r.shapeAnnotationType),null!==h&&"FreeText"!==r.shapeAnnotationType)for(var g=0;g<h.length;g++)if(h[parseInt(g.toString(),10)].annotName===r.annotName){var u=B(h[parseInt(g.toString(),10)]);if((!t.isNullOrUndefined(e)&&""!==e||!t.isNullOrUndefined(e)&&""===e&&""!==i)&&h[parseInt(g.toString(),10)].note!==e)return this.pdfViewer.annotation.addAction(A,g,h[parseInt(g.toString(),10)],"Text Property Added","",u,h[parseInt(g.toString(),10)]),r=h[parseInt(g.toString(),10)],r.note=e,r.author=o,r.enableShapeLabel&&(r.labelContent=e),r.modifiedDate=this.getDateAndTime(),p?this.updateUndoRedoCollections(r,A,"shape_measure"):this.updateUndoRedoCollections(r,A),i&&""!==i?this.pdfViewer.fireCommentEdit(r.annotName,r.note,r):this.pdfViewer.fireCommentAdd(r.annotName,r.note,r),r}}}},e.prototype.getDateAndTime=function(e){e||(e=new Date),"en-US"!==this.pdfViewer.locale?this.globalize=new t.Internationalization("en-US"):this.globalize=new t.Internationalization;var i={format:"M/d/yyyy h:mm:ss a",type:"dateTime"};return this.globalize.formatDate(new Date(e),i)},e.prototype.getDateAndTimeFormat=function(e){if(e||(e=new Date),this.globalize=new t.Internationalization,"M/d/yyyy h:mm:ss a"===this.pdfViewer.dateTimeFormat&&"en-US"!==this.pdfViewer.locale&&"en"!==this.pdfViewer.locale){var i={format:this.globalize.getDatePattern({skeleton:"medium",type:"date"}),type:"date"},n={format:this.globalize.getDatePattern({skeleton:"medium",type:"time"}),type:"time"};return this.globalize.formatDate(new Date(e),i)+" "+this.globalize.formatDate(new Date(e),n)}i={format:this.pdfViewer.dateTimeFormat,type:"dateTime"};return this.globalize.formatDate(new Date(e),i)},e.prototype.modifyCommentsProperty=function(e,i,n,o,r){var a;if(!(a=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation:this.pdfViewer.selectedItems.annotations[0])||!t.isNullOrUndefined(a)&&a.annotName!==n)for(var s=Object.keys(this.pdfViewer.nameTable),l=0;l<s.length;l++)if(n===(C=this.pdfViewer.nameTable[s[parseInt(l.toString(),10)]]).annotName){a=C;break}if(a){var d=document.getElementById(a.annotName),A=parseInt(d.accessKey.split("_")[0],10)-1,h=void 0,p=!1,c=this.getAuthorName(a,d);a.measureType&&""!==a.measureType?(h=this.getAnnotations(A,null,"shape_measure"),p=!0):h=this.getAnnotations(A,null,a.shapeAnnotationType);var g=a.notes||a.note;if(null!==h)for(l=0;l<h.length;l++)h[parseInt(l.toString(),10)].annotName===a.annotName&&(a=h[parseInt(l.toString(),10)]);var u=B(a);if(a.comments.length>0){for(var f=!1,m=0;m<a.comments.length;m++)a.comments[parseInt(m.toString(),10)].annotName===i&&(f=!0,a.comments[parseInt(m.toString(),10)].note=e,a.comments[parseInt(m.toString(),10)].modifiedDate=this.getDateAndTime(),a.comments[parseInt(m.toString(),10)].author=r);if(a.annotName===n){w={annotName:i,parentId:n,subject:a.subject,comments:[],author:c,note:e,shapeAnnotationType:"",state:"",stateModel:"",modifiedDate:this.getDateAndTime(),review:{state:"",stateModel:"",modifiedDate:this.getDateAndTime(),author:c},isLock:!1};f||(a.comments[a.comments.length]=w)}t.isNullOrUndefined(g)||""===g||"note"!==(S=void 0!==a.note?"note":"notes")&&"notes"!==S||(a[""+S]=g,u[""+S]=g)}else if(a.annotName===n){var w={annotName:i,parentId:n,subject:a.subject,comments:[],author:c,note:e,shapeAnnotationType:"",state:"",stateModel:"",modifiedDate:this.getDateAndTime(),review:{state:"",stateModel:"",modifiedDate:this.getDateAndTime(),author:c},isLock:!1};a.comments[a.comments.length]=w;for(var s=Object.keys(this.pdfViewer.nameTable),l=0;l<s.length;l++){var C=this.pdfViewer.nameTable[s[parseInt(l.toString(),10)]];if(!t.isNullOrUndefined(C)&&n===C.annotName){C.comments[a.comments.length-1]=w;break}}if(!t.isNullOrUndefined(g)&&""!==g){var S=void 0!==a.note?"note":"notes";"note"!==S&&"notes"!==S||(a[""+S]=g,u[""+S]=g)}}this.pdfViewer.annotation.addAction(A,null,a,"Comments Property Added","",u,a),p?this.updateUndoRedoCollections(a,A,"shape_measure"):this.updateUndoRedoCollections(a,A)}void 0!==o?this.pdfViewer.fireCommentEdit(i,e,a):this.pdfViewer.fireCommentAdd(i,e,a)},e.prototype.modifyStatusProperty=function(e,t){var i;if(i=this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAnnotation:this.pdfViewer.selectedItems.annotations[0]){var n=document.getElementById(i.annotName),o=parseInt(n.accessKey.split("_")[0],10)-1,r=void 0,a=!1,s=n.getAttribute("author");if(i.measureType&&""!==i.measureType?(r=this.getAnnotations(o,null,"shape_measure"),a=!0):r=this.getAnnotations(o,null,i.shapeAnnotationType),null!==r)for(var l=0;l<r.length;l++)r[parseInt(l.toString(),10)].annotName===i.annotName&&(i=r[parseInt(l.toString(),10)]);var d=B(i);if(t.parentElement.firstChild.id===t.id)i.review={state:e,stateModel:"Review",author:s,modifiedDate:this.getDateAndTime(),annotId:t.id},i.state=e,i.stateModel="Review",this.pdfViewer.annotation.addAction(o,null,i,"Status Property Added","",d,i),this.pdfViewer.fireCommentStatusChanged(t.id,i.note,i,i.state);else for(var A=0;A<i.comments.length;A++)if(i.comments[parseInt(A.toString(),10)].annotName===t.id){var h=B(i.comments[parseInt(A.toString(),10)]);i.comments[parseInt(A.toString(),10)].state=e,i.comments[parseInt(A.toString(),10)].stateModel="Review",i.comments[parseInt(A.toString(),10)].review={state:e,stateModel:"Review",author:s,modifiedDate:this.getDateAndTime(),annotId:t.id},this.pdfViewer.annotation.addAction(o,null,i,"Status Property Added","",h,i.comments[parseInt(A.toString(),10)]),this.pdfViewer.fireCommentStatusChanged(i.comments[parseInt(A.toString(),10)].annotName,i.comments[parseInt(A.toString(),10)].note,i,i.comments[parseInt(A.toString(),10)].state)}a?this.updateUndoRedoCollections(i,o,"shape_measure"):this.updateUndoRedoCollections(i,o)}},e.prototype.modifyCommentDeleteProperty=function(e,t){var i=document.getElementById(e.id),n=this.getAnnotationById(e);if(i&&n){for(var o=n.annotation,r=n.pageIndex,a=void 0,s=void 0,l=1;l<i.childElementCount;l++)if(i.childNodes[parseInt(l.toString(),10)].id===t.id){var d=l-1,A=o.comments[d];a=B(o),s=B(A),A.position=l,this.pdfViewer.fireCommentDelete(A.annotName,A.note,o),o.comments.splice(parseInt(d.toString(),10),1),t.remove()}this.pdfViewer.annotation.addAction(r,null,a,"Comments Reply Deleted","",s,o),this.updateUndoRedoCollections(o,r)}},e.prototype.updateOpacityValue=function(e){var t=this.getAnnotations(e.pageIndex,null,e.shapeAnnotationType);if(this.pdfViewer.annotationModule.isFormFieldShape=!1,null!==t)for(var i=0;i<t.length;i++)t[parseInt(i.toString(),10)].annotName===e.annotName&&(t[parseInt(i.toString(),10)].opacity=e.opacity,this.updateUndoRedoCollections(t[parseInt(i.toString(),10)],e.pageIndex))},e.prototype.undoAction=function(e,t,i){if("Text Property Added"===t){if(e&&(p=document.getElementById(e.annotName))){var n=(h=parseInt(p.accessKey.split("_")[0],10))-1,o=B(e);p.firstChild.firstChild.nextSibling.ej2_instances[0].value=i.note,p.firstChild.firstChild.nextSibling.ej2_instances[0].dataBind();var r=i.note;return e.note=r,2===p.childElementCount&&(p.lastChild.style.display="block"),this.updateUndoRedoCollections(e,n),o}}else if("Comments Property Added"===t){if(e.comments.length>0){var a=document.getElementById(e.annotName),n=this.pdfViewerBase.currentPageNumber-1;a&&(n=(h=parseInt(a.accessKey.split("_")[0],10))-1);var o=B(e),s=e.comments[e.comments.length-1],l=document.getElementById(s.annotName);return l&&l.remove(),e=i,this.updateUndoRedoCollections(e,n),o}}else if("Status Property Added"===t){if(e){var a=document.getElementById(e.annotName),n=this.pdfViewerBase.currentPageNumber-1;a&&(n=(h=parseInt(a.accessKey.split("_")[0],10))-1);o=B(e);if(e.annotName===i.annotName)e.review=i.review,e.state=i.state,e.stateModel=i.stateModel,this.pdfViewer.annotation.redoCommentsElement.push(e);else for(var d=0;d<e.comments.length;d++)if(e.comments[parseInt(d.toString(),10)].annotName===i.annotName){e.comments[parseInt(d.toString(),10)].state=i.state,e.comments[parseInt(d.toString(),10)].stateModel=i.stateModel,e.comments[parseInt(d.toString(),10)].review=i.review,this.pdfViewer.annotation.redoCommentsElement.push(e.comments[parseInt(d.toString(),10)]);break}var A=document.getElementById(i.annotName);return A.lastChild.id===this.pdfViewer.element.id+"status_container"?A.lastChild.remove():A.firstChild.lastChild.id===this.pdfViewer.element.id+"status_container"&&A.firstChild.lastChild.remove(),this.updateUndoRedoCollections(e,n),o}}else if("Comments Reply Deleted"===t){if(a=document.getElementById(e.annotName)){var h=parseInt(a.accessKey.split("_")[0],10),n=h-1;return this.renderComments(i,a,!0,e.annotName),this.pdfViewer.annotation.redoCommentsElement.push(i),this.updateUndoRedoCollections(e,n),e}}else if("dynamicText Change"===t&&e){var p=document.getElementById(e.annotName);if(p)return p.firstChild.firstChild.nextSibling.ej2_instances[0].value=i.dynamicText,p.firstChild.firstChild.nextSibling.ej2_instances[0].dataBind(),e}},e.prototype.redoAction=function(e,i,n){if("Text Property Added"===i){if(w=document.getElementById(e.annotName)){s=(g=parseInt(w.accessKey.split("_")[0],10))-1;return w.firstChild.firstChild.nextSibling.ej2_instances[0].value=e.note,w.firstChild.firstChild.nextSibling.ej2_instances[0].dataBind(),w.lastChild.style.display="block",this.updateUndoRedoCollections(e,s),e}}else if("Comments Property Added"===i){var o=e.comments[e.comments.length-1],r=document.getElementById(e.annotName);if(r){s=(g=parseInt(r.accessKey.split("_")[0],10))-1;return this.renderComments(o,r,!0,e.annotName),this.updateUndoRedoCollections(e,s),e}}else{if("Status Property Added"===i){var a=this.pdfViewer.annotation.redoCommentsElement.pop(),s=this.pdfViewerBase.currentPageNumber-1;if(a){var l=t.createElement("div",{id:this.pdfViewer.element.id+"status_container",className:"e-pv-status-container"}),d=t.createElement("div",{id:this.pdfViewer.element.id+"status_div",className:"e-pv-status-div"}),A=t.createElement("span",{id:this.pdfViewer.element.id+"status_icon"});if(d.appendChild(A),l.appendChild(d),(c=document.getElementById(e.annotName))&&(s=(g=parseInt(c.accessKey.split("_")[0],10))-1),e.annotName===a.annotName){this.updateStatusContainer(e.state,A,d,l);for(f=0;f<c.firstChild.children.length;f++)c.firstChild.children[parseInt(f.toString(),10)].id===this.pdfViewer.element.id+"status_container"&&c.firstChild.children[parseInt(f.toString(),10)].parentElement.removeChild(c.firstChild.children[parseInt(f.toString(),10)]);c.firstChild.appendChild(l)}else for(f=0;f<e.comments.length;f++)if(e.comments[parseInt(f.toString(),10)].annotName===a.annotName){this.updateStatusContainer(e.comments[parseInt(f.toString(),10)].state,A,d,l);for(var h=document.getElementById(a.annotName),p=0;p<h.children.length;p++)h.children[parseInt(p.toString(),10)].id===this.pdfViewer.element.id+"status_container"&&h.children[parseInt(p.toString(),10)].parentElement.removeChild(h.children[parseInt(p.toString(),10)]);h&&h.appendChild(l)}}return this.updateUndoRedoCollections(e,s),e}if("Comments Reply Deleted"===i){var s=this.pdfViewerBase.currentPageNumber-1,c=document.getElementById(e.annotName);if(c){var g=parseInt(c.accessKey.split("_")[0],10);s=g-1}for(var a=this.pdfViewer.annotation.redoCommentsElement.pop(),u=B(e),f=0;f<e.comments.length;f++)if(e.comments[parseInt(f.toString(),10)].annotName===a.annotName){var m=document.getElementById(a.annotName);e.comments.splice(f,1),m.remove()}return this.updateUndoRedoCollections(e,s),u}if("dynamicText Change"===i&&e){var w=document.getElementById(e.annotName);if(w)return w.firstChild.firstChild.nextSibling.ej2_instances[0].value=e.dynamicText,w.firstChild.firstChild.nextSibling.ej2_instances[0].dataBind(),e}}},e.prototype.updateUndoRedoCollections=function(e,t,i,n){var o=i||e.shapeAnnotationType;e.indent&&""!==e.indent&&(o="shape_measure");var r=this.getAnnotations(t,null,o);if(null!==r){for(var a=0;a<r.length;a++)e.annotName===r[parseInt(a.toString(),10)].annotName&&(r[parseInt(a.toString(),10)]=e,this.pdfViewer.annotationModule.storeAnnotationCollections(r[parseInt(a.toString(),10)],t),n&&(r.splice(a,1),this.deleteStickyNotesAnnotations(r,t)));"shape_measure"===o?this.manageAnnotations(r,t,"shape_measure"):this.manageAnnotations(r,t,e.shapeAnnotationType)}},e.prototype.addAnnotationComments=function(e,t,i){var n,o=e+1;i?i&&(n=this.pdfViewer.annotation.undoCommentsElement.pop()):n=this.pdfViewer.annotation.redoCommentsElement.pop(),n&&(this.createCommentsContainer(n,o),this.updateUndoRedoCollections(n,e,t),this.pdfViewer.annotationModule.storeAnnotationCollections(n,o-1))},e.prototype.findPosition=function(e,t,i,n){var o,r=document.getElementById(e.annotName);if(r){for(var a=parseInt(r.accessKey.split("_")[0],10)-1,s=r.parentElement,l=0;l<s.childElementCount;l++)s.childNodes[parseInt(l.toString(),10)].id===e.annotName&&(o=l);"Stamp"===t||"Image"===t?t="stamp":"FreeText"===t?t="freetext":"StickyNotes"===t||"sticky"===t?t="sticky":"Ink"===t&&(t="ink");var d=this.getAnnotations(a,null,t);if(null!==d)for(l=0;l<d.length;l++)if(d[parseInt(l.toString(),10)].annotName===e.annotName){var A=B(d[parseInt(l.toString(),10)]);d[parseInt(l.toString(),10)].position=o,n?this.pdfViewer.annotation.redoCommentsElement.push(d[parseInt(l.toString(),10)]):this.pdfViewer.annotation.undoCommentsElement.push(d[parseInt(l.toString(),10)]),"sticky"===t&&this.updateUndoRedoCollections(A,a,null,i)}}},e.prototype.getAnnotations=function(e,t,i){var n;i="Stamp"===i||"stamp"===i||"Image"===i?"stamp":"StickyNotes"===i||"sticky"===i?"sticky":"textMarkup"===i?"textMarkup":"shape"===i||"Line"===i||"Radius"===i||"Rectangle"===i||"Ellipse"===i||"Polygon"===i||"LineWidthArrowHead"===i||"Square"===i||"Circle"===i?"shape":"FreeText"===i||"freetext"===i||"freeText"===i?"freetext":"ink"===i||"Ink"===i?"ink":"shape_measure";var o=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_"+i);if(this.pdfViewerBase.isStorageExceed&&(o=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+i]),o){var r=JSON.parse(o),a=this.pdfViewer.annotationModule.getPageCollection(r,e);n=null!=a&&r[parseInt(a.toString(),10)]?r[parseInt(a.toString(),10)].annotations:t}else n=t;return n},e.prototype.manageAnnotations=function(e,t,i){i="Stamp"===i||"stamp"===i?"stamp":"Sticky"===i||"sticky"===i?"sticky":"textMarkup"===i?"textMarkup":"shape"===i||"Line"===i||"Radius"===i||"Rectangle"===i||"Ellipse"===i||"Polygon"===i||"LineWidthArrowHead"===i||"Square"===i||"Circle"===i?"shape":"FreeText"===i?"freetext":"ink"===i||"Ink"===i?"ink":"shape_measure";var n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_"+i);if(this.pdfViewerBase.isStorageExceed&&(n=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+i]),n){var o=JSON.parse(n);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_"+i);var r=this.pdfViewer.annotationModule.getPageCollection(o,t);null!=r&&o[parseInt(r.toString(),10)]&&(o[parseInt(r.toString(),10)].annotations=e);var a=JSON.stringify(o);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_"+i]=a:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_"+i,a)}},e.prototype.updateStickyNotes=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sticky");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sticky"]),i)for(var n=e.bounds,o=JSON.parse(i),r=0;r<o.length;r++)for(var a=o[parseInt(r.toString(),10)],s=0;s<a.annotations.length;s++)if(o[parseInt(r.toString(),10)].annotations[parseInt(s.toString(),10)].annotName===e.annotName){this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_sticky");this.pdfViewer.annotationModule.getPageCollection(o,0);o[parseInt(r.toString(),10)]&&(o[parseInt(r.toString(),10)].annotations[parseInt(s.toString(),10)].bounds={left:n.x,top:n.y,width:n.width,height:n.height,right:n.right,bottom:n.bottom});var l=JSON.stringify(o);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sticky"]=l:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_sticky",l);break}},e.prototype.saveStickyAnnotations=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sticky");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sticky"]);for(var t=[],i=0;i<this.pdfViewerBase.pageCount;i++)t[parseInt(i.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var n=JSON.parse(e),o=0;o<n.length;o++){var r=[],a=n[parseInt(o.toString(),10)];if(a){for(var s=0;a.annotations.length>s;s++)this.pdfViewer.annotationModule.updateModifiedDate(a.annotations[parseInt(s.toString(),10)]),a.annotations[parseInt(s.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(a.annotations[parseInt(s.toString(),10)].bounds,a.pageIndex));r=a.annotations}t[a.pageIndex]=r}return JSON.stringify(t)},e.prototype.deleteStickyNotesAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sticky");if(this.pdfViewerBase.isStorageExceed&&(i=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sticky"]),i){var n=JSON.parse(i);this.pdfViewerBase.isStorageExceed||Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_sticky");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sticky"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_sticky",r)}},e.prototype.addStickyNotesAnnotations=function(e,t){var i=this.getAnnotations(e,null,"sticky");i&&i.push(t),this.manageAnnotations(i,e,"sticky")},e.prototype.addTextToComments=function(e,t){var i=document.getElementById(e);i&&(i.firstChild.firstChild.nextSibling.ej2_instances[0].value=t,i.firstChild.firstChild.nextSibling.ej2_instances[0].dataBind())},e.prototype.updateAnnotationCollection=function(e,t,i){var n=this.findAnnotationType(t),o=this.getAnnotations(t.pageIndex,null,n);if(i&&(o=this.pdfViewer.annotationModule.removedAnnotationCollection),null!==o)for(var r=0;r<o.length;r++)if(i&&!o[parseInt(r.toString(),10)].annotName&&(o[parseInt(r.toString(),10)].annotName=o[parseInt(r.toString(),10)].annotationId),o[parseInt(r.toString(),10)].annotName===t.annotName){var a=B(o[parseInt(r.toString(),10)]);a.annotName=e.annotName,"shape"!==n&&"shape_measure"!==n&&"freetext"!==n&&"ink"!==n||(a.id=e.id),"stamp"===n&&(a.randomId=e.id),"ink"===n?(a.bounds.x=e.bounds.x,a.bounds.y=e.bounds.y):(a.bounds.left=e.bounds.x,a.bounds.top=e.bounds.y,a.bounds.x=e.bounds.x,a.bounds.y=e.bounds.y,a.vertexPoints=e.vertexPoints),a.note=a.note?a.note:"",a.comments=[],a.review={state:"",stateModel:"",modifiedDate:a.ModifiedDate,author:a.author},a.state="",a.stateModel="",a.pageNumber=t.pageIndex,this.pdfViewer.annotationModule.storeAnnotations(t.pageIndex,a,"_annotations_"+n),this.createCommentsContainer(a,t.pageIndex+1,!0),i&&(this.pdfViewer.annotationModule.removedAnnotationCollection=[]);break}},e.prototype.findAnnotationType=function(e){return""!==e.measureType?"shape_measure":"StickyNotes"===e.shapeAnnotationType?"sticky":"Stamp"===e.shapeAnnotationType||"Image"===e.shapeAnnotationType?"stamp":"FreeText"===e.shapeAnnotationType?"freetext":"Ink"===e.shapeAnnotationType?"ink":"shape"},e.prototype.setExistingAnnotationModifiedDate=function(e){return""!==e?this.setModifiedDate(e):this.setModifiedDate()},e.prototype.updateModifiedTime=function(e,t){return e>=12?12===e?e+":"+t+" PM":e-12+":"+t+" PM":e+":"+t+" AM"},e.prototype.setModifiedDate=function(e){var t;t=e?this.getDateAndTimeFormat(e):this.getDateAndTimeFormat();var i=new Date(t),n=t.toString().split(" ").splice(0,4).join(" ");if(2===i.toLocaleTimeString().split(" ").length)i.toLocaleTimeString().split(" ")[0].split(":").splice(0,2).join(":")+" "+i.toLocaleTimeString().split(" ")[1];else{var o=parseInt(i.toLocaleTimeString().split(":")[0],10),r=i.toLocaleTimeString().split(":")[1];this.updateModifiedTime(o,r)}return n},e.prototype.convertUTCDateToLocalDate=function(e){if(this.globalize=new t.Internationalization,"M/d/yyyy h:mm:ss a"===this.pdfViewer.dateTimeFormat&&"en-US"!==this.pdfViewer.locale&&"en"!==this.pdfViewer.locale){var i={format:this.globalize.getDatePattern({skeleton:"medium",type:"date"}),type:"date"},n={format:this.globalize.getDatePattern({skeleton:"medium",type:"time"}),type:"time"};return this.globalize.formatDate(new Date(e),i)+" "+this.globalize.formatDate(new Date(e),n)}i={format:this.pdfViewer.dateTimeFormat,type:"dateTime"};return this.globalize.formatDate(new Date(e),i)},e.prototype.updateModifiedDate=function(e){e.id===this.pdfViewer.element.id+"_commenttype_icon"&&(e=e.nextSibling),e.querySelectorAll("span")[1].textContent=" - "+this.setModifiedDate()},e.prototype.updateAnnotationModifiedDate=function(e,t,i){var n;if(e){var o=document.getElementById(e.annotName);if(o){if(t){var r=this.findAnnotationType(e),a=this.getAnnotations(e.pageIndex,null,r);if(null!==a&&e)for(var s=0;s<a.length;s++)e.annotName===a[parseInt(s.toString(),10)].annotName&&(e.bounds.x===a[parseInt(s.toString(),10)].bounds.left&&e.bounds.y===a[parseInt(s.toString(),10)].bounds.top&&e.bounds.height===a[parseInt(s.toString(),10)].bounds.height&&e.bounds.width===a[parseInt(s.toString(),10)].bounds.width||((l=(n=o.firstChild.firstChild.childNodes[1]).querySelectorAll("span"))[1].textContent=" - "+this.setModifiedDate())),"sticky"===a[parseInt(s.toString(),10)].shapeAnnotationType&&this.pdfViewer.annotationModule.storeAnnotationCollections(a[parseInt(s.toString(),10)],e.pageIndex)}else(l=(n=o.firstChild.firstChild.childNodes[1]).querySelectorAll("span"))[1].textContent=" - "+this.setModifiedDate();if(i&&(n=o.firstChild.firstChild.childNodes[1],void 0!==e.modifiedDate)){var l=n.querySelectorAll("span");l[1].textContent=" - "+this.setExistingAnnotationModifiedDate(e.modifiedDate)}}}},e.prototype.saveImportedStickyNotesAnnotations=function(e,i){var n=null;e.Author||(e.Author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stickyNotesSettings.author);var o=this.pdfViewer.stickyNotesSettings.isLock?this.pdfViewer.stickyNotesSettings.isLock:this.pdfViewer.annotationSettings.isLock,r=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),a=!t.isNullOrUndefined(e.Opacity)&&e.Opacity>=0&&e.Opacity<=1?e.Opacity:1;n={shapeAnnotationType:"sticky",author:e.Author,allowedInteractions:r,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,opacity:a,state:e.State,stateModel:e.StateModel,pathData:"",comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},pageNumber:i,bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},annotName:e.AnnotName,color:e.color,annotationSelectorSettings:this.getSettings(e),customData:this.pdfViewer.annotation.getCustomData(e),annotationSettings:{isLock:o},isPrint:e.IsPrint,isCommentLock:e.IsCommentLock},this.pdfViewer.annotationModule.storeAnnotations(i,n,"_annotations_sticky")},e.prototype.updateStickyNotesAnnotationCollections=function(e,i){e.Author||(e.Author="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.stickyNotesSettings.author);var n=this.pdfViewer.stickyNotesSettings.isLock?this.pdfViewer.stickyNotesSettings.isLock:this.pdfViewer.annotationSettings.isLock,o=e.AllowedInteraction?e.AllowedInteraction:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e);e.IsLock&&(n=e.isLock);var r=!t.isNullOrUndefined(e.Opacity)&&e.Opacity>=0&&e.Opacity<=1?e.Opacity:1;return{shapeAnnotationType:"sticky",author:e.Author,allowedInteractions:o,modifiedDate:e.ModifiedDate,subject:e.Subject,note:e.Note,opacity:r,state:e.State,stateModel:e.StateModel,pathData:"",comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),review:{state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},bounds:{left:e.Bounds.X,top:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height,right:e.Bounds.Right,bottom:e.Bounds.Bottom},annotationId:e.AnnotName,color:e.color,pageNumber:i,customData:this.pdfViewer.annotation.getCustomData(e),annotationSettings:{isLock:n},isPrint:e.IsPrint,isCommentLock:e.IsCommentLock}},e.prototype.clear=function(){this.commentsContainer&&this.commentsContainer.removeEventListener("mousedown",this.commentsAnnotationSelect.bind(this)),this.commentsCount=0,this.commentsreplyCount=0,this.isAccordionContainer=!0,this.isEditableElement=!1,this.isCreateContextMenu=!1,this.isPageCommentsRendered=!1,this.isCommentsRendered=!1,this.isAnnotationRendered=!1,this.commentMenuObj&&this.commentMenuObj.destroy();var e=document.querySelectorAll(".e-pv-accordion-page-container");if(e)for(var t=0;t<e.length;t++)e[parseInt(t.toString(),10)].remove();this.commentsRequestHandler&&this.commentsRequestHandler.clear(),this.accordionContent=null,this.accordionPageContainer=null,this.accordionContentContainer=null,this.commentsContainer=null,this.commentMenuObj=null,this.moreButtonId=null,this.commentContextMenu=null,this.isSetAnnotationType=null,this.isNewcommentAdded=null,this.commentsRequestHandler=null,this.selectAnnotationObj=null,this.isCommentsSelected=null,this.isAddAnnotationProgramatically=null,this.accordionContainer=null,this.mainContainer=null,this.opacity=null,this.globalize=null,this.textFromCommentPanel=null},e.prototype.getModuleName=function(){return"StickyNotesAnnotation"},e.prototype.updateAddAnnotationDetails=function(e,i){i=e?e.offset?e.offset:{x:1,y:1}:(e={offset:{x:1,y:1},pageNumber:0}).offset;var n=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),o=this.pdfViewer.annotation.createGUID(),r=this.pdfViewer.stickyNotesSettings.annotationSelectorSettings;this.pdfViewerBase.updateSelectorSettings(r);var a=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.stickyNotesSettings);e.author=e.author?e.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("sticky",a.annotationSubType);var s=this.pdfViewer.stickyNotesSettings.allowedInteractions?this.pdfViewer.stickyNotesSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions;a.isLock=e.isLock?e.isLock:a.isLock;var l=[],d=!t.isNullOrUndefined(e.opacity)&&e.opacity>=0&&e.opacity<=1?e.opacity:1,A={AllowedInteractions:e.allowedInteractions?e.allowedInteractions:s,AnnotName:o,AnnotType:"sticky",AnnotationFlags:null,AnnotationSelectorSettings:e.annotationSelectorSettings?e.annotationSelectorSettings:r,AnnotationSettings:a,Author:e.author?e.author:"Guest",Bounds:{X:i.x,Y:i.y,Width:30,Height:30,Left:i.x,Top:i.y,Location:{X:i.x,Y:i.y},Size:{Height:30,IsEmpty:!1,Width:30}},Color:{IsEmpty:!1,B:51,Blue:.2,C:0,G:255},Comments:null,CreatedDate:n,CustomData:e.customData?e.customData:null,ExistingCustomData:null,Icon:"Comment",IsCommentLock:!1,IsLock:!!e.isLock&&e.isLock,IsPrint:!!t.isNullOrUndefined(e.isPrint)||e.isPrint,ModifiedDate:"",Note:"",Opacity:d,Reference:null,Size:{IsEmpty:!0,Width:0,Height:0},State:"",StateModel:"",StrokeColor:null,SubType:null,Subject:e.subject?e.subject:"Sticky Note",Type:null};return l[0]=A,{stickyNotesAnnotation:l}},e.prototype.getAnnotationType=function(e){var t;return"stamp"===e||"Stamp"===e?t="stamp":"shape"===e||"Line"===e||"Radius"===e||"Rectangle"===e||"Ellipse"===e||"Polygon"===e||"LineWidthArrowHead"===e||"Square"===e||"Circle"===e?t="shape":"textMarkup"===e?t="textMarkup":"freeText"===e||"FreeText"===e?t="freeText":"sticky"===e||"StickyNotes"===e?t="sticky":"measure"===e||"shape_measure"===e?t="measure":"ink"!==e&&"Ink"!==e||(t="ink"),t},e.prototype.getAuthorName=function(e,t){var i;if(e){var n=e.shapeAnnotationType,o=this.getAnnotationType(n);i=this.pdfViewer.annotationModule.updateAnnotationAuthor(o,n)}else i=t.getAttribute("author");return i},e}(),jt=function(){function e(e,t){this.newObject=[],this.outputString="",this.inkAnnotationindex=[],this.isAddAnnotationProgramatically=!1,this.currentPageNumber="",this.inkAnnotationInitialZoom=1,this.inkPathDataCollection=[],this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.drawInk=function(){this.pdfViewerBase.disableTextSelectionMode(),this.pdfViewer.tool="Ink"},e.prototype.drawInkAnnotation=function(e){if(this.pdfViewerBase.isToolbarInkClicked){this.pdfViewerBase.isInkAdded=!0,this.pdfViewer.annotationModule.isFormFieldShape=!1;var i=isNaN(e)?this.pdfViewerBase.currentPageNumber-1:e;if(this.outputString&&""!==this.outputString||this.inkPathDataCollection.length>0){var n=this.addInk(i);this.pdfViewer.renderDrawing(void 0,i),this.pdfViewer.clearSelection(i),this.pdfViewer.select([n.id],n.annotationSelectorSettings),this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule&&this.pdfViewer.toolbar.annotationToolbarModule.enableSignaturePropertiesTools(!0),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar&&this.pdfViewer.toolbarModule.annotationToolbarModule.createPropertyTools("Ink")}else this.outputString="",this.newObject=[],this.pdfViewerBase.isToolbarInkClicked=!1,this.pdfViewer.tool="",this.inkPathDataCollection=[];this.pdfViewerBase.isInkAdded=!1}},e.prototype.updateInkDataWithZoom=function(){var e="";if(""!==this.outputString&&this.inkPathDataCollection.push({pathData:this.outputString,zoomFactor:this.inkAnnotationInitialZoom}),this.inkPathDataCollection.length>0)for(var t=0;t<this.inkPathDataCollection.length;t++)e+=this.updatePathDataWithZoom(this.inkPathDataCollection[parseInt(t.toString(),10)].pathData,this.inkPathDataCollection[parseInt(t.toString(),10)].zoomFactor);else e+=this.updatePathDataWithZoom(this.outputString,this.inkAnnotationInitialZoom);return e},e.prototype.updatePathDataWithZoom=function(e,t){for(var n="",o=this.pdfViewerBase.getZoomFactor(),r=i.processPathData(e),a=i.splitArrayCollection(r),s=0;s<a.length;s++){var l=a[parseInt(s.toString(),10)];n+=l.command+l.x*(o/t)+","+l.y*(o/t)+" "}return n},e.prototype.storePathData=function(){this.convertToPath(this.newObject),this.newObject=[]},e.prototype.drawInkInCanvas=function(e,i){""!==this.currentPageNumber&&parseInt(this.currentPageNumber,10)!==i&&(this.drawInkAnnotation(parseInt(this.currentPageNumber,10)),this.pdfViewerBase.isToolbarInkClicked=!0,this.pdfViewer.tool="Ink");var n=this.pdfViewerBase.getZoomFactor();this.inkAnnotationInitialZoom=n;var o=this.pdfViewerBase.getWindowDevicePixelRatio(),r=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i).getContext("2d"),a=this.pdfViewer.inkAnnotationSettings.thickness?this.pdfViewer.inkAnnotationSettings.thickness:1,s=this.pdfViewer.inkAnnotationSettings.opacity?this.pdfViewer.inkAnnotationSettings.opacity:1,l=this.pdfViewer.inkAnnotationSettings.strokeColor?this.pdfViewer.inkAnnotationSettings.strokeColor:"#ff0000";(!t.Browser.isDevice||t.Browser.isDevice&&n<=.7)&&r.setTransform(o,0,0,o,0,0),r.beginPath(),r.lineJoin="round",r.lineCap="round",r.moveTo(e.prevPosition.x,e.prevPosition.y),r.lineTo(e.currentPosition.x,e.currentPosition.y),r.lineWidth=a*n>1?a*n:a,r.strokeStyle=l,r.globalAlpha=s,r.setLineDash([]),r.stroke(),r.arc(e.prevPosition.x,e.prevPosition.y,1,0,2*Math.PI,!0),r.closePath(),this.pdfViewerBase.prevPosition=e.currentPosition,this.newObject.push(e.currentPosition.x,e.currentPosition.y),this.currentPageNumber=i.toString()},e.prototype.convertToPath=function(e){this.movePath(e[0],e[1]),this.linePath(e[0],e[1]);for(var t=2;t<e.length;t+=2)this.linePath(e[parseInt(t.toString(),10)],e[t+1])},e.prototype.linePath=function(e,i){t.isNullOrUndefined(e)||t.isNullOrUndefined(i)||(this.outputString+="L"+e+","+i+" ")},e.prototype.movePath=function(e,i){t.isNullOrUndefined(e)||t.isNullOrUndefined(i)||(this.outputString+="M"+e+","+i+" ")},e.prototype.addInk=function(e){this.outputString=this.updateInkDataWithZoom();var i,n=this.calculateInkSize(this.outputString);if(this.pdfViewerBase.isToolbarInkClicked){var o=this.pdfViewer.annotation.createGUID(),r=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),a=isNaN(e)?this.pdfViewerBase.currentPageNumber-1:e,s=this.pdfViewer.inkAnnotationSettings.thickness?this.pdfViewer.inkAnnotationSettings.thickness:1,l=this.pdfViewer.inkAnnotationSettings.opacity?this.pdfViewer.inkAnnotationSettings.opacity:1,d=this.pdfViewer.inkAnnotationSettings.strokeColor?this.pdfViewer.inkAnnotationSettings.strokeColor:"#ff0000",A=this.pdfViewer.inkAnnotationSettings.isLock?this.pdfViewer.inkAnnotationSettings.isLock:this.pdfViewer.annotationSettings.isLock,h="Guest"!==this.pdfViewer.annotationSettings.author?this.pdfViewer.annotationSettings.author:this.pdfViewer.inkAnnotationSettings.author?this.pdfViewer.inkAnnotationSettings.author:"Guest",p=""===this.pdfViewer.annotationSettings.subject||t.isNullOrUndefined(this.pdfViewer.annotationSettings.subject)?this.pdfViewer.inkAnnotationSettings.subject?this.pdfViewer.inkAnnotationSettings.subject:"Ink":this.pdfViewer.annotationSettings.subject,c=t.isNullOrUndefined(this.pdfViewer.annotationSettings.customData)?this.pdfViewer.inkAnnotationSettings.customData?this.pdfViewer.inkAnnotationSettings.customData:null:this.pdfViewer.annotationSettings.customData,g=this.pdfViewer.inkAnnotationSettings.isPrint,u=this.pdfViewer.inkAnnotationSettings.allowedInteractions?this.pdfViewer.inkAnnotationSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions,f=this.pdfViewer.annotationSettings?this.pdfViewer.annotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(this.pdfViewer.inkAnnotationSettings);i={id:"ink"+this.pdfViewerBase.inkCount,bounds:{x:n.x,y:n.y,width:n.width,height:n.height},pageIndex:a,data:this.outputString,customData:c,shapeAnnotationType:"Ink",opacity:l,strokeColor:d,thickness:s,annotName:o,comments:[],author:h,subject:p,notes:"",review:{state:"",stateModel:"",modifiedDate:r,author:h},annotationSelectorSettings:this.getSelector("Ink",""),modifiedDate:r,annotationSettings:f,isPrint:g,allowedInteractions:u,isCommentLock:!1,isLocked:A};var m=this.pdfViewer.add(i),w={left:i.bounds.x,top:i.bounds.y,width:i.bounds.width,height:i.bounds.height},C={opacity:i.opacity,strokeColor:i.strokeColor,thickness:i.thickness,modifiedDate:i.modifiedDate,width:i.bounds.width,height:i.bounds.height,data:this.outputString};this.pdfViewerBase.inkCount++;var B=this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments("ink",i.pageIndex+1,i.shapeAnnotationType);B&&(document.getElementById(B).id=o),i.annotName=o,this.pdfViewer.annotation.addAction(a,null,m,"Addition","",m,m),this.pdfViewer.annotationModule.storeAnnotations(a,i,"_annotations_ink"),this.pdfViewer.fireAnnotationAdd(i.pageIndex,i.annotName,"Ink",w,C),this.pdfViewerBase.isInkAdded&&(this.outputString="",this.newObject=[],this.inkPathDataCollection=[]),this.pdfViewerBase.isToolbarInkClicked=!1,this.pdfViewer.tool=""}return i},e.prototype.setAnnotationMode=function(){this.pdfViewerBase.isToolbarInkClicked?this.drawInkAnnotation():(this.pdfViewerBase.isToolbarInkClicked=!0,this.drawInk())},e.prototype.saveInkSignature=function(){var e=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_ink");this.pdfViewerBase.isStorageExceed&&(e=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_ink"]);for(var t=[],n=0;n<this.pdfViewerBase.pageCount;n++)t[parseInt(n.toString(),10)]=[];if(e&&!this.pdfViewer.annotationSettings.skipDownload)for(var o=JSON.parse(e),r=0;r<o.length;r++){var a=[],s=o[parseInt(r.toString(),10)];if(s){for(var l=0;s.annotations.length>l;l++){this.pdfViewer.annotationModule.updateModifiedDate(s.annotations[parseInt(l.toString(),10)]);var d=s.annotations[parseInt(l.toString(),10)].strokeColor;s.annotations[parseInt(l.toString(),10)].strokeColor=JSON.stringify(this.pdfViewerBase.signatureModule.getRgbCode(d)),s.annotations[parseInt(l.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getInkBounds(s.annotations[parseInt(l.toString(),10)].bounds,s.pageIndex));var A=i.processPathData(s.annotations[parseInt(l.toString(),10)].data),h=i.splitArrayCollection(A);s.annotations[parseInt(l.toString(),10)].data=JSON.stringify(h)}a=s.annotations}t[s.pageIndex]=a}return JSON.stringify(t)},e.prototype.addInCollection=function(e,t){if(t){var i=this.getAnnotations(e,null);i&&i.push(t),this.manageInkAnnotations(i,e)}},e.prototype.calculateInkSize=function(e){for(var t=-1,n=-1,o=-1,r=-1,a=i.processPathData(e),s=this.pdfViewerBase.getZoomFactor(),l=0;l<a.length;l++){var d=a[parseInt(l.toString(),10)];if(-1===t)t=d.x,o=d.x,n=d.y,r=d.y;else{var A=d.x,h=d.y;t>=A&&(t=A),n>=h&&(n=h),o<=A&&(o=A),r<=h&&(r=h)}}return{x:t/s,y:n/s,width:(o-t)/s,height:(r-n)/s}},e.prototype.renderExistingInkSignature=function(e,n,o,r,a){var s,l=!1;if(!o)for(var d=0;d<this.inkAnnotationindex.length;d++)if(this.inkAnnotationindex[parseInt(d.toString(),10)]===n){l=!0;break}if(e&&(!l||r)){e.length>0&&-1===this.inkAnnotationindex.indexOf(n)&&this.inkAnnotationindex.push(n);for(var A=0;A<e.length;A++){var h=e[parseInt(A.toString(),10)];if(h){var p=h.PathData;o&&p&&("object"==typeof p&&p.length>1?p=i.getPathString(p):h.IsPathData||p.split("command").length<=1||(p=i.getPathString(JSON.parse(p)))),this.outputString=p;var c=this.calculateInkSize(this.outputString);this.outputString="";var g=0,u=1,f=h.Bounds;c&&(c.height<1?(g=f.Height?f.Height:f.height,u=f.Height?f.Height:f.height):c.width<1&&(g=f.Width?f.Width:f.width,u=f.Width?f.Width:f.width));var m=t.isNullOrUndefined(f.X)?f.x+g/2:f.X+g/2,w=t.isNullOrUndefined(f.Y)?f.y+g/2:f.Y+g/2,C=f.Width?f.Width-(u-1):f.width-(u-1),B=f.Height?f.Height-(u-1):f.height-(u-1),S=(!!h.AnnotationSettings&&h.AnnotationSettings.isLock,h.AnnotationSelectorSettings?"string"==typeof h.AnnotationSelectorSettings?JSON.parse(h.AnnotationSelectorSettings):h.AnnotationSelectorSettings:this.getSelector(h,"Ink")),y=this.pdfViewer.annotation.getCustomData(h),I=!0;I=h.AnnotationSettings?h.AnnotationSettings.isPrint:this.pdfViewer.inkAnnotationSettings.isPrint,I=!!t.isNullOrUndefined(h.IsPrint)||h.IsPrint,h.IsLocked&&h.IsLocked,"Highlight"===h.Subject&&1===h.Opacity&&(h.Opacity=h.Opacity/2),h.allowedInteractions=h.AllowedInteractions?h.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(h),h.AnnotationSettings=h.AnnotationSettings?h.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(h),h.State=h.State?h.State:"",h.StateModel=h.StateModel?h.StateModel:"",s={id:"ink"+this.pdfViewerBase.inkCount,bounds:{x:m,y:w,width:C,height:B},pageIndex:n,data:p,shapeAnnotationType:"Ink",opacity:h.Opacity,strokeColor:h.StrokeColor,thickness:h.Thickness,annotName:h.AnnotName,comments:this.pdfViewer.annotationModule.getAnnotationComments(h.Comments,h,h.Author),author:h.Author,allowedInteractions:h.allowedInteractions,subject:h.Subject,modifiedDate:h.ModifiedDate,review:{state:h.State,stateModel:h.StateModel,modifiedDate:h.ModifiedDate,author:h.Author},notes:h.Note,annotationSettings:h.AnnotationSettings,annotationSelectorSettings:S,customData:y,isPrint:I,isCommentLock:h.IsCommentLock},this.pdfViewer.add(s);var E=h.pageIndex?h.pageIndex:h.PageNumber,v=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",E);if(!(!(o&&a||t.isNullOrUndefined(o))&&o)&&this.pdfViewer.renderDrawing(v,s.pageIndex),this.pdfViewer.annotationModule.storeAnnotations(s.pageIndex,s,"_annotations_ink"),this.isAddAnnotationProgramatically){var b={opacity:s.opacity,strokeColor:s.strokeColor,thickness:s.thickness,modifiedDate:s.modifiedDate,width:s.bounds.width,height:s.bounds.height,data:this.outputString};this.pdfViewer.fireAnnotationAdd(s.pageIndex,s.annotName,"Ink",f,b)}this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.signatureCount++,this.pdfViewerBase.inkCount++,this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.annotationMenuObj&&this.pdfViewer.isSignatureEditable&&(this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!0),this.pdfViewerBase.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!0))}}}},e.prototype.saveImportedInkAnnotation=function(e,t){var n=null,o=e.Bounds,r={x:o.X,y:o.Y,width:o.Width,height:o.Height},a=this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),s=this.pdfViewer.annotation.getCustomData(e),l=this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),d={state:e.State,stateModel:e.StateModel,modifiedDate:e.ModifiedDate,author:e.Author},A=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),h=this.getSettings(e),p=e.PathData;"object"==typeof p&&p.length>1?p=i.getPathString(p):!e.IsPathData&&p.split("command").length>1&&(p=i.getPathString(JSON.parse(p))),n={allowedInteractions:a,annotName:e.AnnotName,annotationSelectorSettings:h,annotationSettings:A,author:e.Author,bounds:r,customData:s,comments:l,data:p,id:"Ink",isCommentLock:e.IsCommentLock,isLocked:e.IsLocked,isPrint:e.IsPrint,modifiedDate:e.ModifiedDate,note:e.Note,opacity:e.Opacity,pageIndex:t,review:d,shapeAnnotationType:e.AnnotationType,strokeColor:e.StrokeColor,subject:e.Subject,thickness:e.Thickness},this.pdfViewer.annotationModule.storeAnnotations(t,n,"_annotations_ink")},e.prototype.getSettings=function(e){this.pdfViewer.annotationSelectorSettings;return e.AnnotationSelectorSettings?e.AnnotationSelectorSettings:this.getSelector(e.ShapeAnnotationType,e.Subject)},e.prototype.storeInkSignatureData=function(e,t){this.pdfViewer.annotation.addAction(t.pageIndex,null,t,"Addition","",t,t);var i=null,n=t.bounds.left?t.bounds.left:t.bounds.x,o=t.bounds.top?t.bounds.top:t.bounds.y;t.wrapper&&t.wrapper.bounds&&(n=t.wrapper.bounds.left,o=t.wrapper.bounds.top),i={id:t.id,bounds:{x:n,y:o,width:t.bounds.width,height:t.bounds.height},shapeAnnotationType:"Ink",opacity:t.opacity,thickness:t.thickness,strokeColor:t.strokeColor,pageIndex:t.pageIndex,data:t.data,annotName:t.annotName,comments:t.comments,author:t.author,subject:t.subject,modifiedDate:t.modifiedDate,review:{state:"",stateModel:"",modifiedDate:t.modifiedDate,author:t.author},notes:t.notes,annotationSelectorSettings:this.getSelector(t,"Ink"),isCommentLock:t.isCommentLock};var r=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_ink");if(r){var a=JSON.parse(r);Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_ink");var s=this.pdfViewer.annotationModule.getPageCollection(a,e);if(null!=s&&a[parseInt(s.toString(),10)])a[parseInt(s.toString(),10)].annotations.push(i),a[parseInt(s.toString(),10)].annotations.indexOf(i);else{var l={pageIndex:e,annotations:[]};l.annotations.push(i),l.annotations.indexOf(i),a.push(l)}h=JSON.stringify(a);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_ink",h)}else{var d={pageIndex:e,annotations:[]};d.annotations.push(i),d.annotations.indexOf(i);var A=[];A.push(d);var h=JSON.stringify(A);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_ink",h)}},e.prototype.getSelector=function(e,t){var i=this.pdfViewer.annotationSelectorSettings;return"Ink"!==e&&"Ink"!==t||!this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings||(i=this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings,this.pdfViewerBase.updateSelectorSettings(i)),i},e.prototype.getAnnotations=function(e,t){var i,n=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_ink");if(n){var o=JSON.parse(n),r=this.pdfViewer.annotationModule.getPageCollection(o,e);i=null!=r&&o[parseInt(r.toString(),10)]?o[parseInt(r.toString(),10)].annotations:t}else i=t;return i},e.prototype.modifySignatureInkCollection=function(e,i,n){t.isNullOrUndefined(n.formFieldAnnotationType)||""===n.formFieldAnnotationType?this.pdfViewer.annotationModule.isFormFieldShape=!1:this.pdfViewer.annotationModule.isFormFieldShape=!0,this.pdfViewerBase.updateDocumentEditedProperty(!0);var o=null,r=this.getAnnotations(i,null);if(null!=r&&n){for(var a=0;a<r.length;a++)if(n.id===r[parseInt(a.toString(),10)].id){if("bounds"===e)this.pdfViewerBase.isBounds=this.pdfViewerBase.boundsCalculation(r[parseInt(a.toString(),10)].bounds,n.wrapper.bounds),this.pdfViewerBase.isBounds&&(r[parseInt(a.toString(),10)].bounds={x:n.wrapper.bounds.left,y:n.wrapper.bounds.top,width:n.bounds.width,height:n.bounds.height});else if("stroke"===e)r[parseInt(a.toString(),10)].strokeColor=n.wrapper.children[0].style.strokeColor;else if("opacity"===e)r[parseInt(a.toString(),10)].opacity=n.wrapper.children[0].style.opacity;else if("thickness"===e)r[parseInt(a.toString(),10)].thickness=n.wrapper.children[0].style.strokeWidth;else if("notes"===e)r[parseInt(a.toString(),10)].notes=n.notes;else if("delete"===e){o=r.splice(a,1)[0];break}this.pdfViewerBase.isBounds&&(r[parseInt(a.toString(),10)].modifiedDate=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime()),this.pdfViewer.annotationModule.storeAnnotationCollections(r[parseInt(a.toString(),10)],i)}this.manageInkAnnotations(r,i)}return o},e.prototype.manageInkAnnotations=function(e,t){var i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_ink");if(i){var n=JSON.parse(i);Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_ink");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_ink",r)}},e.prototype.destroy=function(){this.newObject=null,this.outputString=null,this.mouseX=null,this.mouseY=null,this.inkAnnotationindex=null,this.isAddAnnotationProgramatically=null,this.currentPageNumber=null,this.inkAnnotationInitialZoom=null,this.inkPathDataCollection=null},e.prototype.updateInkCollections=function(e,t,n){if(e){var o=e.Bounds,r=o.X,a=o.Y,s=o.Width,l=o.Height,d=e.customData,A=e.isPrint;e.AllowedInteractions=e.AllowedInteractions?e.AllowedInteractions:this.pdfViewer.annotationModule.updateAnnotationAllowedInteractions(e),e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.inkAnnotationSettings?this.pdfViewer.inkAnnotationSettings:this.pdfViewer.annotationSettings,e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked);var h=e.PathData;return n&&(h=i.getPathString(JSON.parse(e.PathData))),{id:"ink"+this.pdfViewerBase.signatureCount,bounds:{x:r,y:a,width:s,height:l},pageIndex:t,data:h,shapeAnnotationType:"Ink",opacity:e.Opacity,strokeColor:e.StrokeColor,thickness:e.Thickness,annotationId:e.AnnotName,customData:d,comments:this.pdfViewer.annotationModule.getAnnotationComments(e.Comments,e,e.Author),author:e.Author,allowedInteractions:e.AllowedInteractions,subject:e.Subject,modifiedDate:e.ModifiedDate,review:{state:"",stateModel:"",modifiedDate:e.ModifiedDate,author:e.Author},notes:e.Note,isPrint:A,isCommentLock:e.IsCommentLock,annotationSettings:e.AnnotationSettings,isLocked:e.AnnotationSettings.isLock}}},e.prototype.updateAddAnnotationDetails=function(e,n,o){n=e?e.offset?e.offset:{x:10,y:10}:(e={offset:{x:10,y:10},pageNumber:0,width:void 0,height:void 0}).offset;var r=this.pdfViewer.annotation.stickyNotesAnnotationModule.getDateAndTime(),a=this.pdfViewer.annotation.createGUID(),s=this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings;this.pdfViewerBase.updateSelectorSettings(s);var l=this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.inkAnnotationSettings);e.author=e.author?e.author:this.pdfViewer.annotationModule.updateAnnotationAuthor("ink",l.AnnotationType);var d=this.pdfViewer.inkAnnotationSettings.allowedInteractions?this.pdfViewer.inkAnnotationSettings.allowedInteractions:this.pdfViewer.annotationSettings.allowedInteractions;l.isLock=e.isLock?e.isLock:l.isLock,e.width=e.width?e.width:150,e.height=e.height?e.height:60;var A=e.path?e.path:"";if(!t.isNullOrUndefined(A))if("M"===A[0]||"L"===A[0]){var h=i.processPathData(A),p=i.splitArrayCollection(h);A=JSON.stringify(p)}else A=i.getPathString(JSON.parse(A));e.path=A;var c=[],g={AllowedInteractions:e.allowedInteractions?e.allowedInteractions:d,AnnotName:a,AnnotType:"ink",AnnotationFlags:null,AnnotationSelectorSettings:e.annotationSelectorSettings?e.annotationSelectorSettings:s,AnnotationSettings:l,AnnotationType:"Ink",Author:e.author?e.author:"Guest",Bounds:{X:n.x,Y:n.y,Width:e.width,Height:e.height,Left:n.x,Top:n.y,Location:{X:n.x,Y:n.y},Size:{Height:e.height,IsEmpty:!1,Width:e.width}},Comments:null,CreatedDate:r,CustomData:e.customData?e.customData:null,ExistingCustomData:null,IsCommentLock:!1,IsLock:!!e.isLock&&e.isLock,IsPrint:!!t.isNullOrUndefined(e.isPrint)||e.isPrint,ModifiedDate:"",Note:"",Opacity:e.opacity?e.opacity:1,PathData:e.path,PageNumber:o,State:"",StateModel:"",StrokeColor:e.strokeColor?e.strokeColor:"rgba(255,0,0,1)",SubType:null,Subject:e.subject?e.subject:"Ink",Type:null,Thickness:e.thickness?e.thickness:1};return c[0]=g,{signatureInkAnnotation:c}},e}(),Kt=function(){function i(i,n){var o=this;this.thumbnailWidthMin=200,this.contentContainerScrollWidth=33,this.closeButtonLeft=170,this.isTooltipCreated=!1,this.annotationContextMenu=[],this.isCommentPanelShow=!1,this.commentPanelWidthMin=300,this.isThumbnail=!1,this.isThumbnailAddedProgrammatically=!1,this.isBookmarkOpenProgrammatically=!1,this.isNavigationToolbarVisible=!1,this.isBookmarkListOpen=!1,this.isNavigationPaneResized=!1,this.isBookmarkOpen=!1,this.isThumbnailOpen=!1,this.restrictUpdateZoomValue=!0,this.loadImportAnnotation=function(i){var n=i.target.files;if(null!==i.target.files[0]){var r=n[0];if(r){o.pdfViewer.fireImportStart(r);var a=r.type;if(r.name.split(".json").length>1&&a.includes("json"))(s=new FileReader).readAsDataURL(r),s.onload=function(t){if(t.currentTarget.result){var i=t.currentTarget.result.split(",")[1],n=atob(i);if(n){var r=JSON.parse(n),a=r.pdfAnnotation[Object.keys(r.pdfAnnotation)[0]];Object.keys(r.pdfAnnotation).length>=1&&(a.textMarkupAnnotation||a.measureShapeAnnotation||a.freeTextAnnotation||a.stampAnnotations||a.signatureInkAnnotation||a.shapeAnnotation&&a.shapeAnnotation[0].Bounds)?(o.pdfViewerBase.isPDFViewerJson=!0,o.pdfViewerBase.importAnnotations(r,e.AnnotationDataFormat.Json)):(o.pdfViewerBase.isPDFViewerJson=!1,o.pdfViewerBase.clientSideRendering?o.pdfViewerBase.importAnnotations(d._decode(i),e.AnnotationDataFormat.Json):o.pdfViewerBase.importAnnotations(i,e.AnnotationDataFormat.Json))}}};else if(r.name.split(".xfdf").length>1&&(a.includes("xfdf")||i.target.accept.includes("xfdf"))){var s=new FileReader;o.pdfViewerBase.clientSideRendering?s.readAsArrayBuffer(r):s.readAsDataURL(r),s.onload=function(t){if(t.currentTarget.result)if(o.pdfViewerBase.clientSideRendering){var i=new Uint8Array(t.currentTarget.result);i&&o.pdfViewerBase.importAnnotations(i,e.AnnotationDataFormat.Xfdf,!0)}else{var n=t.currentTarget.result.split(",")[1];atob(n)&&o.pdfViewerBase.importAnnotations(n,e.AnnotationDataFormat.Xfdf,!0)}}}else o.pdfViewer.fireImportFailed(r,o.pdfViewer.localeObj.getConstant("Import Failed")),t.isBlazor()?o.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_ImportFailed").then(function(e){o.pdfViewerBase.openImportExportNotificationPopup(e)}):o.pdfViewerBase.openImportExportNotificationPopup(o.pdfViewer.localeObj.getConstant("Import Failed"))}i.target.value=""}},this.resizeIconMouseOver=function(e){e.srcElement.style.cursor="e-resize"},this.resizePanelMouseDown=function(e){var t=null;(t=o).offset=[t.sideBarResizer.offsetLeft-e.clientX,t.sideBarResizer.offsetTop-e.clientY,t.sideBarResizer.offsetParent.clientWidth],o.previousX=e.clientX,t.isDown=!0,t.isNavigationPaneResized=!0,t.pdfViewerBase.viewerContainer.style.cursor="e-resize",t.sideBarContentContainer&&(t.sideBarContentContainer.style.cursor="e-resize")},this.resizeViewerMouseLeave=function(e){var t=null;(t=o).isDown&&setTimeout(function(){t.pdfViewerBase.onWindowResize()},200),t.isDown=!1,t.isNavigationPaneResized&&t.sideBarContentContainer&&(t.pdfViewerBase.viewerContainer.style.cursor="default",t.sideBarContentContainer.style.cursor="default",t.isNavigationPaneResized=!1),t.commentPanelContainer&&t.isCommentPanelShow&&(o.commentPanelMouseLeave(e),t.isCommentPanelShow=!1)},this.resizePanelMouseMove=function(e){var t=null;if(t=o,!o.pdfViewerBase.getPopupNoteVisibleStatus()){var i=e.target;if(o.pdfViewerBase.skipPreventDefault(i)&&e.preventDefault(),t.isDown&&o.sideBarContentContainer){if(o.pdfViewer.enableRtl)(n=o.previousX-e.clientX+t.offset[2])>(r=Math.floor(o.outerContainerWidth/2))&&(n=r),n<o.thumbnailWidthMin&&(n=o.thumbnailWidthMin),t.sideBarResizer.style.right=n+"px",t.sideBarContentContainer.style.width=n+"px",t.sideBarContent.style.width=n+"px",t.sideBarContentSplitter.style.width=n+"px",t.sideBarTitleContainer.style.width=n+"px",t.pdfViewerBase.viewerContainer.style.right=t.getViewerContainerLeft()+"px",t.pdfViewerBase.viewerContainer.style.left=t.getViewerContainerRight()+"px";else{var n=e.clientX+t.offset[0],r=Math.floor(o.outerContainerWidth/2);n>r&&(n=r),n<o.thumbnailWidthMin&&(n=o.thumbnailWidthMin),t.sideBarResizer.style.left=n+"px",t.closeDiv.style.left=n-t.contentContainerScrollWidth+"px",t.sideBarContentContainer.style.width=n+"px",t.sideBarContent.style.width=n+"px",t.sideBarContentSplitter.style.width=n+"px",t.sideBarTitleContainer.style.width=n+"px",t.pdfViewerBase.viewerContainer.style.left=t.getViewerContainerLeft()+"px",t.pdfViewerBase.viewerContainer.style.right=t.getViewerContainerRight()+"px"}var a=(t.pdfViewer.element.clientWidth>0?t.pdfViewer.element.clientWidth:t.pdfViewer.element.offsetWidth)-t.getViewerContainerLeft()-t.getViewerContainerRight();t.pdfViewerBase.viewerContainer.style.width=a+"px",t.pdfViewerBase.pageContainer.style.width=t.pdfViewerBase.viewerContainer.clientWidth+"px",t.pdfViewer.thumbnailViewModule.gotoThumbnailImage(t.pdfViewerBase.currentPageNumber-1),t.pdfViewer.thumbnailViewModule.renderViewPortThumbnailImage(),t.pdfViewerBase.updateZoomValue(),t.bookmarkButton.children[0].classList.contains("e-pv-bookmark-disable-icon")||t.pdfViewer.bookmarkViewModule.setBookmarkContentHeight()}else t.isCommentPanelShow&&o.commentPanelContainer&&o.updateCommentPanelContainer(e)}},this.sideToolbarOnClose=function(e){var t=null;(t=o).removeThumbnailSelectionIconTheme(),t.removeBookmarkSelectionIconTheme(),t.updateViewerContainerOnClose(),t.pdfViewerBase.focusViewerContainer(),t.isThumbnailAddedProgrammatically=!1,t.isBookmarkOpenProgrammatically=!1,t.isThumbnail=!1,t.isBookmarkOpen=!1},this.organizeButtonOnClick=function(e){t.isNullOrUndefined(o.pdfViewer.pageOrganizer)||o.pdfViewer.pageOrganizer.createOrganizeWindow()},this.sideToolbarOnClick=function(e){o.sideBarTitle.textContent=o.pdfViewer.localeObj.getConstant("Page Thumbnails"),o.sideBarContent.setAttribute("aria-label","Thumbnail View Panel");var i=null;i=o;var n=document.getElementById(o.pdfViewer.element.id+"_bookmark_view");if(n&&(i.removeBookmarkSelectionIconTheme(),n.style.display="none"),document.getElementById(o.pdfViewer.element.id+"_thumbnail_view").style.display="flex",i.sideBarContentContainer&&("none"!==i.sideBarContentContainer.style.display?i.isBookmarkOpen?(i.isThumbnailOpen=!0,i.isThumbnail=!0,i.setThumbnailSelectionIconTheme(),i.updateViewerContainerOnExpand(),document.getElementById(i.pdfViewer.element.id+"_thumbnail_image_"+(i.pdfViewerBase.currentPageNumber-1)).focus(),i.isThumbnailAddedProgrammatically=!0):(i.isThumbnailOpen=!1,i.removeThumbnailSelectionIconTheme(),i.updateViewerContainerOnClose(),i.isThumbnailAddedProgrammatically=!1,i.isThumbnail=!1):(i.sideBarContent.focus(),i.isThumbnailOpen=!0,i.setThumbnailSelectionIconTheme(),i.updateViewerContainerOnExpand(),i.isThumbnail=!0,t.isNullOrUndefined(document.getElementById(i.pdfViewer.element.id+"_thumbnail_image_"+(i.pdfViewerBase.currentPageNumber-1)))||document.getElementById(i.pdfViewer.element.id+"_thumbnail_image_"+(i.pdfViewerBase.currentPageNumber-1)).focus(),i.isThumbnailAddedProgrammatically=!0)),i.isBookmarkOpen=!1,i.isBookmarkOpenProgrammatically=!1,o.pdfViewer.annotationModule&&o.pdfViewer.annotationModule.inkAnnotationModule){var r=parseInt(o.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);o.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(r)}},this.openThumbnailPane=function(){var e=null;e=o;var i=document.getElementById(o.pdfViewer.element.id+"_sideBarContent"),n=document.getElementById(o.pdfViewer.element.id+"_sideBarContentContainer"),r=document.getElementById(o.pdfViewer.element.id+"_viewerContainer"),a=document.getElementById(o.pdfViewer.element.id+"_pageViewContainer");document.getElementById(o.pdfViewer.element.id+"_thumbnail_view").style.display="block",document.getElementById(o.pdfViewer.element.id+"_sideBarResizer").style.display="none",e.sideBarTitle.textContent=o.pdfViewer.localeObj.getConstant("Page Thumbnails"),e.sideBarContent.setAttribute("aria-label","Thumbnail View Panel"),e.sideBarContent.setAttribute("tabindex","0");var s=document.getElementById(o.pdfViewer.element.id+"_bookmark_view");if(s&&(e.removeBookmarkSelectionIconTheme(),s.style.display="none"),n&&!o.isThumbnailAddedProgrammatically&&(e.isThumbnail?(n.style.display="none",r.style.width=(e.pdfViewer.element.clientWidth>0?e.pdfViewer.element.clientWidth:e.pdfViewer.element.offsetWidth)+"px",a.style.width=r.clientWidth+"px",r.style.left=n.clientWidth+"px",e.pdfViewerBase.updateZoomValue(),e.removeThumbnailSelectionIconTheme(),e.isThumbnail=!1):(i.focus(),e.setThumbnailSelectionIconTheme(),e.updateViewerContainerOnExpand(),e.isThumbnail=!0,e.pdfViewerBase.updateZoomValue(),t.isNullOrUndefined(e.pdfViewer.thumbnailViewModule)||e.pdfViewer.thumbnailViewModule.gotoThumbnailImage(e.pdfViewerBase.currentPageNumber-1),e.isThumbnailAddedProgrammatically=!0,e.isThumbnailOpen=!0,e.isBookmarkOpen=!1,e.isBookmarkOpenProgrammatically=!1)),o.pdfViewer.annotationModule&&o.pdfViewer.annotationModule.inkAnnotationModule){var l=parseInt(o.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);o.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(l)}},this.closeThumbnailPane=function(){var e=null;((e=o).isThumbnail||e.isThumbnailAddedProgrammatically||e.pdfViewer.isThumbnailViewOpen)&&(e.sideBarContent.removeAttribute("tabindex"),e.removeThumbnailSelectionIconTheme(),e.isThumbnailOpen=!1,e.updateViewerContainerOnClose(),e.isThumbnailAddedProgrammatically=!1,e.isThumbnail=!1)},this.bookmarkButtonOnClick=function(e){o.openBookmarkcontentInitially(!0)},this.closeBookmarkPane=function(){var e=o;(e.isBookmarkOpen||e.isBookmarkOpenProgrammatically)&&(e.removeBookmarkSelectionIconTheme(),e.isBookmarkOpen=!1,e.updateViewerContainerOnClose(),e.isBookmarkOpenProgrammatically=!1,e.isBookmarkListOpen=!1)},this.commentPanelMouseDown=function(e){var t=null;(t=o).offset=[t.commentPanelResizer.offsetLeft-e.clientX,t.commentPanelResizer.offsetTop-e.clientY,t.getViewerContainerRight()],o.isCommentPanelShow=!0,o.previousX=e.clientX,t.pdfViewerBase.viewerContainer.style.cursor="e-resize",t.commentPanelResizer.style.cursor="e-resize"},this.updateCommentPanelContainer=function(e){var t=null;if(t=o,o.pdfViewer.enableRtl)(i=e.clientX+t.offset[0])>(n=Math.floor(o.outerContainerWidth/2))&&(i=n),i<o.commentPanelWidthMin&&(i=o.commentPanelWidthMin),t.commentPanelResizer.style.left=i+"px",t.commentPanelContainer.style.width=i+"px",t.pdfViewerBase.viewerContainer.style.left=t.getViewerContainerRight()+"px",t.pdfViewerBase.viewerContainer.style.right=t.getViewerContainerLeft()+"px";else{var i=o.previousX-e.clientX+t.offset[2],n=Math.floor(o.outerContainerWidth/2);i>n&&(i=n),i<o.commentPanelWidthMin&&(i=o.commentPanelWidthMin),t.commentPanelResizer.style.right=i+"px",t.commentPanelContainer.style.width=i+"px",t.pdfViewerBase.viewerContainer.style.right=t.getViewerContainerRight()+"px",t.pdfViewerBase.viewerContainer.style.left=t.getViewerContainerLeft()+"px"}o.pdfViewer.annotation.stickyNotesAnnotationModule.updateCommentPanelTextTop();var r=(t.pdfViewer.element.clientWidth>0?t.pdfViewer.element.clientWidth:t.pdfViewer.element.offsetWidth)-t.getViewerContainerLeft()-t.getViewerContainerRight();t.pdfViewerBase.viewerContainer.style.width=r+"px",t.pdfViewerBase.pageContainer.style.width=t.pdfViewerBase.viewerContainer.clientWidth+"px",t.calculateCommentPanelWidth(),t.pdfViewerBase.updateZoomValue()},this.commentPanelMouseLeave=function(e){var t=null;(t=o).commentPanelContainer&&(t.pdfViewerBase.viewerContainer.style.cursor="default",t.commentPanelContainer.style.cursor="default")},this.pdfViewer=i,this.pdfViewerBase=n}return i.prototype.initializeNavigationPane=function(){!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.createNavigationPane():(this.commentPanelContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_commantPanel",className:"e-pv-mobile-comments-container"}),this.pdfViewerBase.mainContainer.appendChild(this.commentPanelContainer),this.pdfViewer.enableRtl?this.commentPanelContainer.style.left="0px":this.commentPanelContainer.style.right="0px",this.commentPanelContainer.style.bottom="0px",this.createCommentPanelTitleContainer(),this.commentPanelContainer.style.display="none",this.commentsContentContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_commentscontentcontainer",className:"e-pv-comments-content-container"}),this.commentPanelContainer.appendChild(this.commentsContentContainer),this.createFileElement(this.commentPanelContainer),this.createXFdfFileElement(this.commentPanelContainer))},i.prototype.createNavigationPane=function(){t.isBlazor()?(this.sideBarToolbar=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar"),this.sideBarToolbarSplitter=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar-splitter"),this.sideBarContentContainer=this.pdfViewer.element.querySelector(".e-pv-sidebar-content-container"),this.sideBarContentSplitter=this.pdfViewer.element.querySelector(".e-pv-sidebar-content-splitter"),this.sideBarContent=this.pdfViewer.element.querySelector(".e-pv-sidebar-content"),this.sideBarTitleContainer=this.pdfViewer.element.querySelector(".e-pv-sidebar-title-container"),this.sideBarTitle=this.pdfViewer.element.querySelector(".e-pv-sidebar-title"),this.sideBarResizer=this.pdfViewer.element.querySelector(".e-pv-sidebar-resizer")):(this.sideBarToolbar=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarToolbar",className:"e-pv-sidebar-toolbar",attrs:{role:"toolbar","aria-orientation":"vertical",tabindex:"-1","aria-label":"Sidebar Toolbar"}}),this.sideBarToolbarSplitter=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarToolbarSplitter",className:"e-pv-sidebar-toolbar-splitter"}),this.sideBarContentContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarContentContainer",className:"e-pv-sidebar-content-container"}),this.sideBarContentSplitter=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarContentSplitter",className:"e-pv-sidebar-content-splitter"}),this.sideBarContent=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarContent",className:"e-pv-sidebar-content"}),this.sideBarTitleContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarTitleContainer",className:"e-pv-sidebar-title-container"}),this.sideBarTitle=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarTitle",className:"e-pv-sidebar-title",attrs:{tabindex:"-1"}}),this.sideBarResizer=t.createElement("div",{id:this.pdfViewer.element.id+"_sideBarResizer",className:"e-pv-sidebar-resizer"})),this.pdfViewerBase.mainContainer.appendChild(this.sideBarToolbar),this.pdfViewer.enableRtl&&(this.sideBarToolbar.style.cssFloat="right",this.sideBarToolbar.style.right="1px",this.sideBarToolbar.style.position="relative"),this.pdfViewerBase.mainContainer.appendChild(this.sideBarToolbarSplitter),this.pdfViewer.enableRtl?this.sideBarToolbarSplitter.classList.add("e-right"):this.sideBarToolbarSplitter.classList.add("e-left"),this.pdfViewer.enableRtl?this.sideBarContentContainer.classList.add("e-right"):this.sideBarContentContainer.classList.add("e-left"),this.pdfViewerBase.mainContainer.appendChild(this.sideBarContentContainer),this.pdfViewer.enableRtl&&(this.sideBarContentSplitter.style.right="0px"),this.sideBarContentContainer.appendChild(this.sideBarContentSplitter),this.pdfViewer.enableRtl&&(this.sideBarContent.style.right="0px",this.sideBarContent.style.direction="rtl"),this.sideBarContentContainer.appendChild(this.sideBarContent),this.pdfViewer.enableRtl&&(this.sideBarTitleContainer.style.right="0px"),this.pdfViewer.enableRtl?this.sideBarTitle.classList.add("e-right"):this.sideBarTitle.classList.add("e-left"),this.sideBarTitleContainer.appendChild(this.sideBarTitle),this.sideBarContentContainer.appendChild(this.sideBarTitleContainer),this.sideBarResizer.addEventListener("mousedown",this.resizePanelMouseDown),this.pdfViewerBase.mainContainer.addEventListener("mousemove",this.resizePanelMouseMove),this.pdfViewerBase.mainContainer.addEventListener("mouseup",this.resizeViewerMouseLeave),this.pdfViewer.enableRtl?this.sideBarResizer.classList.add("e-right"):this.sideBarResizer.classList.add("e-left"),this.sideBarContentContainer.appendChild(this.sideBarResizer),this.createCommentPanel();var e=this.getViewerContainerLeft(),i=this.getViewerContainerRight();this.pdfViewer.enableRtl||(this.pdfViewerBase.viewerContainer.style.left=e+"px",this.pdfViewerBase.viewerContainer.style.right=i+"px"),this.pdfViewerBase.viewerContainer.style.width=(this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth)-e-this.commentPanelContainer.clientWidth+"px",this.sideBarContentContainer.style.display="none",this.pdfViewer.enableNavigationToolbar||(this.pdfViewer.enableRtl?this.sideBarContentContainer.style.right="0px":this.sideBarContentContainer.style.left="0px"),this.createSidebarToolBar(),this.createSidebarTitleCloseButton(),this.createResizeIcon(),this.sideBarToolbar.addEventListener("mouseup",this.sideToolbarOnMouseup.bind(this)),this.sideBarContentContainer.addEventListener("mouseup",this.sideBarTitleOnMouseup.bind(this))},i.prototype.adjustPane=function(){if(t.isBlazor()){var e=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar-splitter"),i=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar"),n=this.pdfViewer.element.querySelector(".e-pv-sidebar-content-container");0===(r=(o=this.pdfViewer.element.querySelector(".e-pv-toolbar")).getBoundingClientRect().height)&&(r=parseFloat(window.getComputedStyle(o).height)+1),this.pdfViewer.enableToolbar||(r=0),i.style.top=r+"px",n.style.top=r+"px",e.style.top=r+"px",i.style.height=this.getSideToolbarHeight(r),n.style.height=this.getSideToolbarHeight(r),e.style.height=this.getSideToolbarHeight(r),this.pdfViewerBase.viewerContainer.style.height=this.getSideToolbarHeight(r)}else{var e=this.pdfViewerBase.getElement("_sideBarToolbarSplitter"),o=this.pdfViewerBase.getElement("_toolbarContainer"),r=o.clientHeight;0===r&&(r=parseFloat(window.getComputedStyle(o).height)+1),this.sideBarToolbar.style.top=r+"px",this.sideBarContentContainer.style.top=r+"px",e.style.top=r+"px"}},i.prototype.getSideToolbarHeight=function(e){var t=this.pdfViewer.element.getBoundingClientRect().height;return 0!==t?t-e+"px":""},i.prototype.createCommentPanel=function(){this.commentPanelContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_commantPanel",className:"e-pv-comment-panel"}),this.pdfViewerBase.mainContainer.appendChild(this.commentPanelContainer),this.pdfViewer.enableRtl?this.commentPanelContainer.style.left="0px":this.commentPanelContainer.style.right="0px",this.commentPanelContainer.style.bottom="0px",this.createCommentPanelTitleContainer(),this.commentPanelContainer.style.display="none",this.commentsContentContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_commentscontentcontainer",className:"e-pv-comments-content-container"}),this.commentPanelContainer.appendChild(this.commentsContentContainer),this.commentPanelResizer=t.createElement("div",{id:this.pdfViewer.element.id+"_commentPanelResizer",className:"e-pv-comment-panel-resizer"}),this.pdfViewer.enableRtl?this.commentPanelResizer.classList.add("e-left"):this.commentPanelResizer.classList.add("e-right"),this.commentPanelResizer.style.display="none",this.commentPanelResizer.addEventListener("mousedown",this.commentPanelMouseDown),this.pdfViewerBase.mainContainer.appendChild(this.commentPanelResizer),this.createCommentPanelResizeIcon(),this.createFileElement(this.commentPanelContainer),this.createXFdfFileElement(this.commentPanelContainer)},i.prototype.createCommentPanelTitleContainer=function(){var e=t.createElement("div",{id:this.pdfViewer.element.id+"_commentPanelTitleContainer",className:"e-pv-comment-panel-title-container"}),i=t.createElement("div",{id:this.pdfViewer.element.id+"_commentPanelTitle",className:"e-pv-comment-panel-title",attrs:{tabindex:"-1"}});t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_Comments").then(function(e){i.innerText=e}):i.innerText=this.pdfViewer.localeObj.getConstant("Comments");var n=t.createElement("button",{id:this.pdfViewer.element.id+"_annotations_btn"});n.setAttribute("aria-label","annotation button"),n.setAttribute("type","button"),n.className="e-btn e-pv-tbar-btn e-pv-comment-panel-title-close-div e-btn";var o=t.createElement("span",{id:this.pdfViewer.element.id+"_annotation_more_icon",className:"e-pv-more-icon e-pv-icon"});if(n.appendChild(o),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&!t.isBlazor()){var r=t.createElement("button");r.setAttribute("aria-label","annotation button"),r.setAttribute("type","button"),r.style.borderColor="transparent",r.style.paddingTop="11px",r.style.paddingBottom="11px",r.style.backgroundColor="transparent",r.addEventListener("click",this.closeCommentPanelContainer.bind(this)),i.style.left="37px";var a=t.createElement("span",{className:"e-pv-annotation-tools-close-icon e-pv-icon"});r.appendChild(a),e.appendChild(r)}e.appendChild(i),e.appendChild(n),this.commentPanelContainer.appendChild(e),this.createAnnotationContextMenu(),n.addEventListener("click",this.openAnnotationContextMenu.bind(this))},i.prototype.createCommentPanelResizeIcon=function(){this.commentPanelResizeIcon=t.createElement("div",{id:this.pdfViewer.element.id+"_commentPanel_resize",className:"e-pv-resize-icon e-pv-icon"}),this.setCommentPanelResizeIconTop(),this.commentPanelResizeIcon.style.position="absolute",this.commentPanelResizer.appendChild(this.commentPanelResizeIcon)},i.prototype.openAnnotationContextMenu=function(e){this.annotationMenuObj.open(e.clientY,e.clientX,e.currentTarget)},i.prototype.createAnnotationContextMenu=function(){this.annotationContextMenu=[{text:this.pdfViewer.localeObj.getConstant("Export Annotations")},{text:this.pdfViewer.localeObj.getConstant("Import Annotations")},{text:this.pdfViewer.localeObj.getConstant("Export XFDF")},{text:this.pdfViewer.localeObj.getConstant("Import XFDF")}];var e=t.createElement("ul",{id:this.pdfViewer.element.id+"_annotation_context_menu"});this.pdfViewer.element.appendChild(e),this.annotationMenuObj=new s.ContextMenu({target:"#"+this.pdfViewer.element.id+"_annotations_btn",items:this.annotationContextMenu,select:this.annotationMenuItemSelect.bind(this)}),this.pdfViewer.enableRtl&&(this.annotationMenuObj.enableRtl=!0),this.annotationMenuObj.appendTo(e),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.annotationMenuObj.animationSettings.effect="ZoomIn":this.annotationMenuObj.animationSettings.effect="SlideDown"},i.prototype.annotationMenuItemSelect=function(t){if(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.inkAnnotationModule){var i=parseInt(this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(i)}if(t.item)switch(t.item.text){case this.pdfViewer.localeObj.getConstant("Export Annotations"):this.pdfViewerBase.exportAnnotations(e.AnnotationDataFormat.Json);break;case this.pdfViewer.localeObj.getConstant("Import Annotations"):this.importAnnotationIconClick(t);break;case this.pdfViewer.localeObj.getConstant("Export XFDF"):this.pdfViewerBase.exportAnnotations(e.AnnotationDataFormat.Xfdf);break;case this.pdfViewer.localeObj.getConstant("Import XFDF"):this.importXFdfAnnotationIconClick(t)}},i.prototype.createFileElement=function(e){this.annotationInputElement=t.createElement("input",{id:this.pdfViewer.element.id+"_annotationUploadElement",styles:"position:fixed; left:-100em",attrs:{type:"file","aria-label":"upload elements"}}),this.annotationInputElement.setAttribute("accept",".json"),e.appendChild(this.annotationInputElement),this.annotationInputElement.addEventListener("change",this.loadImportAnnotation)},i.prototype.createXFdfFileElement=function(e){this.annotationXFdfInputElement=t.createElement("input",{id:this.pdfViewer.element.id+"_annotationXFdfUploadElement",styles:"position:fixed; left:-100em",attrs:{type:"file","aria-label":"upload elements"}}),this.annotationXFdfInputElement.setAttribute("accept",".xfdf"),e.appendChild(this.annotationXFdfInputElement),this.annotationXFdfInputElement.addEventListener("change",this.loadImportAnnotation)},i.prototype.importAnnotationIconClick=function(e){this.annotationInputElement.click()},i.prototype.importXFdfAnnotationIconClick=function(e){this.annotationXFdfInputElement.click()},i.prototype.closeCommentPanelContainer=function(){var e=null;e=this;var i=document.getElementById(this.pdfViewer.element.id+"_viewerContainer"),n=document.getElementById(this.pdfViewer.element.id+"_pageViewContainer"),o=document.getElementById(this.pdfViewer.element.id+"_commantPanel");o&&(o.style.display="none",e.commentPanelResizer&&(e.commentPanelResizer.style.display="none"),i&&(this.pdfViewer.enableRtl?i.style.left=e.getViewerContainerRight()+"px":i.style.right=e.getViewerContainerRight()+"px",i.style.width=(e.pdfViewer.element.clientWidth>0?e.pdfViewer.element.clientWidth:e.pdfViewer.element.offsetWidth)-e.getViewerContainerLeft()-e.getViewerContainerRight()+"px",n.style.width=e.pdfViewerBase.viewerContainer.offsetWidth-e.getViewerContainerScrollbarWidth()+"px"),e.pdfViewerBase&&e.pdfViewerBase.updateZoomValue(),this.pdfViewer.annotation&&this.pdfViewer.annotation.textMarkupAnnotationModule&&this.pdfViewer.annotation.textMarkupAnnotationModule.showHideDropletDiv(!0),t.Browser.isDevice&&!t.isBlazor()&&this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.element.style.display="block",this.pdfViewer.toolbarModule.annotationToolbarModule.propertyToolbar&&(this.pdfViewer.toolbarModule.annotationToolbarModule.propertyToolbar.element.style.display="block")))},i.prototype.createNavigationPaneMobile=function(e){var i=this;this.isNavigationToolbarVisible=!0,this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_navigationToolbar",className:"e-pv-nav-toolbar"}),this.pdfViewerBase.viewerMainContainer.insertBefore(this.toolbarElement,this.pdfViewerBase.viewerContainer);var n;if("search"===e){var o='<div class="e-input-group e-pv-text-search-input-mobile" id="'+this.pdfViewer.element.id+'_search_input_container"><input class="e-input" type="text" placeholder="'+this.pdfViewer.localeObj.getConstant("Find in document")+'" id="'+this.pdfViewer.element.id+'_search_input"></input></div>',r='\n                <span class="e-pv-search-count" id="'+this.pdfViewer.element.id+'_search_count"></span>\n            ';n=[{prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)},{template:o},{prefixIcon:"e-pv-search-icon e-pv-icon",id:this.pdfViewer.element.id+"_search_box-icon",click:function(){var e=i.pdfViewerBase.getElement("_search_box-icon").firstElementChild;e.classList.contains("e-pv-search-close")&&i.enableSearchItems(!1),i.pdfViewer.textSearchModule.searchButtonClick(e,i.searchInput,!0),i.setSearchInputWidth()}},{template:r},{prefixIcon:this.pdfViewer.enableRtl?"e-pv-next-search-icon e-pv-icon":"e-pv-prev-search-icon e-pv-icon",id:this.pdfViewer.element.id+"_prev_occurrence",click:function(e){i.pdfViewer.textSearchModule.searchPrevious(),i.setSearchInputWidth()}},{prefixIcon:this.pdfViewer.enableRtl?"e-pv-prev-search-icon e-pv-icon":"e-pv-next-search-icon e-pv-icon",id:this.pdfViewer.element.id+"_next_occurrence",click:function(e){i.pdfViewer.textSearchModule.searchNext(),i.setSearchInputWidth()}}]}else n=[{prefixIcon:"e-pv-backward-icon e-pv-icon",id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)},{text:this.pdfViewer.localeObj.getConstant("Bookmarks")}];if(this.toolbar=new s.Toolbar({items:n,width:"",height:"",overflowMode:"Popup"}),this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.toolbarElement),"search"===e){var a=this.pdfViewerBase.getElement("_toolbarContainer");if(a){var l=a.clientHeight;0===l&&(l=parseFloat(window.getComputedStyle(a).height)+1),this.pdfViewerBase.toolbarHeight=l}this.initiateSearchBox()}else this.initiateBookmarks()},i.prototype.initiateSearchBox=function(){var e=this;this.searchInput=this.pdfViewerBase.getElement("_search_input"),this.pdfViewer.textSearchModule.searchBtn=this.pdfViewerBase.getElement("_search_box-icon").firstElementChild,this.searchInput.addEventListener("keyup",function(t){e.enableSearchItems(!0);e.searchInput.value;13===t.which?(e.initiateTextSearch(),e.setSearchInputWidth()):e.pdfViewer.textSearchModule.resetVariables()});var t=document.getElementById(this.pdfViewer.element.id+"_search_count").parentElement;t&&(t.style.display="none"),this.pdfViewer.textSearchModule.searchInput=this.searchInput,this.setSearchInputWidth(),this.enableSearchItems(!1),this.searchInput.focus()},i.prototype.enableSearchItems=function(e){t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("EnableSearchItems",e):(this.toolbar.enableItems(this.pdfViewerBase.getElement("_prev_occurrence").parentElement,e),this.toolbar.enableItems(this.pdfViewerBase.getElement("_next_occurrence").parentElement,e))},i.prototype.initiateBookmarks=function(){if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){this.pdfViewerBase.mobileScrollerContainer.style.display="none";for(var e=document.querySelectorAll(".e-pv-mobile-annotation-toolbar"),i=0;i<e.length;i++)e[parseInt(i.toString(),10)].style.display="none"}var n=t.createElement("div",{id:this.pdfViewer.element.id+"_bookmarks_container",className:"e-pv-bookmark-container"});n.style.width="100%",n.style.height=this.pdfViewerBase.viewerContainer.style.height,this.pdfViewerBase.getElement("_viewerMainContainer").appendChild(n),this.pdfViewerBase.viewerContainer.style.display="none",this.isBookmarkListOpen=!0,this.pdfViewer.bookmarkViewModule.renderBookmarkContentMobile()},i.prototype.initiateTextSearch=function(){var e=this.searchInput.value;this.pdfViewer.textSearchModule.initiateSearch(e,!0)},i.prototype.goBackToToolbar=function(){if(this.isNavigationToolbarVisible=!1,(!t.isBlazor()||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode)&&t.isBlazor()||this.pdfViewer.textSearchModule.cancelTextSearch(),this.searchInput=null,0!==this.pdfViewer.bookmarkViewModule.childNavigateCount)this.pdfViewer.bookmarkViewModule.bookmarkList.back(),this.pdfViewer.bookmarkViewModule.childNavigateCount--;else{null!=this.toolbar&&(this.toolbar.destroy(),this.toolbar=null);var e=this.pdfViewerBase.getElement("_bookmarks_container");e&&(e.parentElement.removeChild(e),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.pdfViewerBase.mobileScrollerContainer.style.display="")),this.toolbarElement&&null!=this.toolbarElement.parentElement&&this.toolbarElement.parentElement.removeChild(this.toolbarElement),this.pdfViewerBase.viewerContainer.style.display="block",this.isBookmarkListOpen=!1,t.isBlazor()?this.pdfViewerBase.onWindowResize():this.pdfViewer.toolbar.annotationToolbarModule.isMobileAnnotEnabled||this.pdfViewer.toolbarModule.showToolbar(!0)}},i.prototype.setSearchInputWidth=function(){var e=this.searchInput.parentElement,i=window.getComputedStyle(e.parentElement,null).getPropertyValue("padding-left");t.isBlazor()&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.toolbarElement=this.pdfViewerBase.getElement("_navigationToolbar"));var n=this.toolbarElement.clientWidth-this.getParentElementSearchBox("_backward").clientWidth-this.getParentElementSearchBox("_search_box-icon").clientWidth-this.getParentElementSearchBox("_prev_occurrence").clientWidth-this.getParentElementSearchBox("_next_occurrence").clientWidth-this.getParentElementSearchBox("_search_count").clientWidth-6;""!==i&&(n-=2*parseFloat(i)),e.style.width=n+"px"},i.prototype.getParentElementSearchBox=function(e){return this.pdfViewerBase.getElement(e).parentElement},i.prototype.createTooltipMobile=function(e){if(this.isTooltipCreated){if(this.toastObject){this.toastObject.title=e;var t=this.pdfViewerBase.getElement("_container_tooltip").firstElementChild;if(t)t.style.width="auto",t.firstElementChild.firstElementChild.textContent=e;else{this.isTooltipCreated=!1;var i=this.pdfViewerBase.getElement("_container_tooltip");this.toastObject&&this.toastObject.destroy(),i.parentElement.removeChild(i),this.toastObject=null,this.createMobileTooltip(e)}}}else this.createMobileTooltip(e)},i.prototype.createMobileTooltip=function(e){var i=t.createElement("div",{className:"e-pv-container-tooltip",id:this.pdfViewer.element.id+"_container_tooltip"});this.pdfViewer.element.appendChild(i),this.toastObject=new l.Toast({title:e,target:this.pdfViewer.element,close:this.onTooltipClose.bind(this),position:{X:0,Y:0},animation:{hide:{duration:200,effect:"FadeOut"}}}),this.toastObject.appendTo(i);var n=.65*this.pdfViewer.element.clientHeight,o=(this.pdfViewer.element.clientWidth-i.clientWidth)/2;this.isTooltipCreated=!0,this.toastObject.show({position:{X:o,Y:n}});var r=i.firstElementChild;r&&(r.style.width="auto")},i.prototype.onTooltipClose=function(e){if(this.pdfViewer.textSearchModule){this.isTooltipCreated=!1;var t=this.pdfViewerBase.getElement("_container_tooltip");this.pdfViewer.textSearchModule.isMessagePopupOpened=!1,this.toastObject&&this.toastObject.destroy(),t.parentElement.removeChild(t),this.toastObject=null}},i.prototype.toolbarResize=function(){this.searchInput&&(this.searchInput.style.width="auto",this.setSearchInputWidth())},i.prototype.createSidebarToolBar=function(){if(t.isBlazor())this.thumbnailButton=this.pdfViewer.element.querySelector(".e-pv-thumbnail-view-button"),this.bookmarkButton=this.pdfViewer.element.querySelector(".e-pv-bookmark-button");else{var e=!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i);this.thumbnailButton=t.createElement("button",{id:this.pdfViewer.element.id+"_thumbnail-view",attrs:{disabled:"disabled","aria-label":"Page Thumbnails",tabindex:"-1"}}),this.thumbnailButton.className="e-pv-tbar-btn e-pv-thumbnail-view-button e-btn",this.thumbnailButton.setAttribute("type","button");var i=t.createElement("span",{id:this.pdfViewer.element.id+"_thumbnail-view_icon",className:"e-pv-thumbnail-view-disable-icon e-pv-icon"});this.thumbnailButton.appendChild(i),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Page Thumbnails")+(e?" (⌘+⌥+1)":" (Ctrl+Alt+1)")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.thumbnailButton),this.bookmarkButton=t.createElement("button",{id:this.pdfViewer.element.id+"_bookmark",attrs:{disabled:"disabled","aria-label":"Bookmarks",tabindex:"-1"}}),this.bookmarkButton.setAttribute("type","button"),this.bookmarkButton.className="e-pv-tbar-btn e-pv-bookmark-button e-btn";var n=t.createElement("span",{id:this.pdfViewer.element.id+"_bookmark_icon",className:"e-pv-bookmark-disable-icon e-pv-icon"});this.bookmarkButton.appendChild(n),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Bookmarks")+(e?" (⌘+⌥+2)":" (Ctrl+Alt+2)")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.bookmarkButton),this.organizePageButton=t.createElement("button",{id:this.pdfViewer.element.id+"_organize-view",attrs:{disabled:"disabled","aria-label":"Organize Pages",tabindex:"-1"}}),this.organizePageButton.className="e-pv-tbar-btn e-pv-organize-view-button e-btn",this.organizePageButton.setAttribute("type","button");var r=t.createElement("span",{id:this.pdfViewer.element.id+"_organize-view_icon",className:"e-pv-organize-view-disable-icon e-pv-icon"});this.organizePageButton.appendChild(r),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Organize Pages")+(e?" (⌘+⌥+3)":" (Ctrl+Alt+3)")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.organizePageButton),this.sideBarToolbar.appendChild(this.thumbnailButton),this.sideBarToolbar.appendChild(this.bookmarkButton),t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||this.sideBarToolbar.appendChild(this.organizePageButton)}this.thumbnailButton.addEventListener("click",this.sideToolbarOnClick),this.bookmarkButton.addEventListener("click",this.bookmarkButtonOnClick),this.organizePageButton.addEventListener("click",this.organizeButtonOnClick)},i.prototype.onTooltipBeforeOpen=function(e){this.pdfViewer.toolbarSettings.showTooltip
vendor: 8,933 bytes, line 10
10||(e.cancel=!0)},i.prototype.enableOrganizeButton=function(e){this.organizePageButton&&(e?(this.organizePageButton.removeAttribute("disabled"),this.organizePageButton.children[0].classList.remove("e-pv-organize-view-disable-icon"),this.organizePageButton.children[0].classList.add("e-pv-organize-view-icon"),this.organizePageButton.setAttribute("tabindex","0")):(this.organizePageButton.setAttribute("disabled","disabled"),this.organizePageButton.children[0].classList.remove("e-pv-organize-view-icon"),this.organizePageButton.children[0].classList.add("e-pv-organize-view-disable-icon"),this.organizePageButton.setAttribute("tabindex","-1")))},i.prototype.enableThumbnailButton=function(){this.thumbnailButton&&(this.thumbnailButton.removeAttribute("disabled"),this.thumbnailButton.children[0].classList.remove("e-pv-thumbnail-view-disable-icon"),this.thumbnailButton.children[0].classList.add("e-pv-thumbnail-view-icon"),this.thumbnailButton.setAttribute("tabindex","0"))},i.prototype.enableBookmarkButton=function(){this.bookmarkButton&&(this.bookmarkButton.removeAttribute("disabled"),this.bookmarkButton.children[0].classList.remove("e-pv-bookmark-disable-icon"),this.bookmarkButton.children[0].classList.add("e-pv-bookmark-icon"),this.bookmarkButton.setAttribute("tabindex","0"))},i.prototype.createSidebarTitleCloseButton=function(){this.closeDiv=t.createElement("button",{id:this.pdfViewer.element.id+"_close_btn"}),this.closeDiv.setAttribute("aria-label","close button"),this.closeDiv.setAttribute("type","button"),this.closeDiv.className="e-btn e-pv-tbar-btn e-pv-title-close-div e-btn",this.pdfViewer.enableRtl?this.closeDiv.style.left="8px":this.closeDiv.style.left=this.closeButtonLeft+"px";var e=t.createElement("span",{id:this.pdfViewer.element.id+"_close_icon",className:"e-pv-title-close-icon e-pv-icon"});this.closeDiv.appendChild(e),this.sideBarTitleContainer.appendChild(this.closeDiv),this.closeDiv.addEventListener("click",this.sideToolbarOnClose)},i.prototype.createResizeIcon=function(){this.resizeIcon=t.createElement("div",{id:this.pdfViewer.element.id+"_resize",className:"e-pv-resize-icon e-pv-icon"}),this.setResizeIconTop(),this.resizeIcon.style.position="absolute",this.resizeIcon.addEventListener("click",this.sideToolbarOnClose),this.resizeIcon.addEventListener("mouseover",this.resizeIconMouseOver),this.sideBarResizer.appendChild(this.resizeIcon)},i.prototype.setResizeIconTop=function(){this.sideBarToolbar&&this.sideBarToolbar.clientHeight&&""===this.resizeIcon.style.top&&(this.resizeIcon.style.top=this.sideBarToolbar.clientHeight/2+"px")},i.prototype.setCommentPanelResizeIconTop=function(){this.commentPanelContainer&&this.commentPanelContainer.clientHeight&&this.commentPanelResizeIcon&&""===this.commentPanelResizeIcon.style.top&&(this.commentPanelResizeIcon.style.top=this.commentPanelContainer.clientHeight/2+"px")},Object.defineProperty(i.prototype,"outerContainerWidth",{get:function(){return this.mainContainerWidth||(this.mainContainerWidth=this.pdfViewerBase.mainContainer.clientWidth),this.mainContainerWidth},enumerable:!0,configurable:!0}),i.prototype.getViewerContainerScrollbarWidth=function(){return this.pdfViewerBase.viewerContainer.offsetWidth+this.pdfViewerBase.viewerContainer.offsetLeft-(this.pdfViewerBase.viewerContainer.clientWidth+this.pdfViewerBase.viewerContainer.offsetLeft)},Object.defineProperty(i.prototype,"sideToolbarWidth",{get:function(){return this.sideBarToolbar?this.sideBarToolbar.clientWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sideBarContentContainerWidth",{get:function(){return this.sideBarContentContainer?this.sideBarContentContainer.clientWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"commentPanelContainerWidth",{get:function(){return this.commentPanelContainer?this.commentPanelContainer.offsetWidth:0},enumerable:!0,configurable:!0}),i.prototype.updateViewerContainerOnClose=function(){var e=null;(e=this).sideBarContentContainer&&(e.sideBarContentContainer.style.display="none",this.pdfViewer.enableRtl?e.pdfViewerBase.viewerContainer.style.right=e.sideToolbarWidth+"px":e.pdfViewerBase.viewerContainer.style.left=e.sideToolbarWidth+"px",e.pdfViewerBase.viewerContainer.style.width=(e.pdfViewer.element.clientWidth>0?e.pdfViewer.element.clientWidth:e.pdfViewer.element.offsetWidth)-e.sideToolbarWidth-e.getViewerContainerRight()+"px",e.pdfViewerBase.pageContainer.style.width=e.pdfViewerBase.viewerContainer.offsetWidth-e.getViewerContainerScrollbarWidth()+"px",this.restrictUpdateZoomValue&&e.pdfViewerBase.updateZoomValue())},i.prototype.updateViewerContainerOnExpand=function(){var e=null;(e=this).sideBarContentContainer&&(t.isNullOrUndefined(this.pdfViewer.thumbnailViewModule)||this.pdfViewer.thumbnailViewModule.isThubmnailOpen||(e.sideBarContentContainer.style.display="block"),(e.pdfViewer.isBookmarkPanelOpen||this.isBookmarkOpen)&&(e.sideBarContentContainer.style.display="block"),this.pdfViewer.enableRtl?e.pdfViewerBase.viewerContainer.style.right=e.getViewerContainerLeft()+"px":e.pdfViewerBase.viewerContainer.style.left=e.getViewerContainerLeft()+"px",e.pdfViewerBase.viewerContainer.style.width=(e.pdfViewer.element.clientWidth>0?e.pdfViewer.element.clientWidth:e.pdfViewer.element.offsetWidth)-this.getViewerContainerLeft()-this.getViewerContainerRight()+"px",e.pdfViewerBase.pageContainer.style.width=e.pdfViewerBase.viewerContainer.clientWidth+"px",e.pdfViewerBase.updateZoomValue(),e.pdfViewer.enableThumbnail&&(e.pdfViewer.thumbnailViewModule.gotoThumbnailImage(e.pdfViewerBase.currentPageNumber-1),e.pdfViewer.thumbnailViewModule.renderViewPortThumbnailImage()))},i.prototype.getViewerContainerLeft=function(){return this.sideToolbarWidth?this.sideToolbarWidth+this.sideBarContentContainerWidth:0!==this.sideToolbarWidth||this.pdfViewer.enableNavigationToolbar?0:this.sideBarContentContainerWidth},i.prototype.getViewerContainerRight=function(){return this.commentPanelResizer?this.commentPanelContainerWidth+this.commentPanelResizer.clientWidth:0!==this.sideToolbarWidth||this.pdfViewer.enableNavigationToolbar?0:this.sideBarContentContainerWidth},i.prototype.getViewerMainContainerWidth=function(){return(this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth)-this.sideToolbarWidth},i.prototype.setThumbnailSelectionIconTheme=function(){this.thumbnailButton&&(this.thumbnailButton.children[0].classList.remove("e-pv-thumbnail-view-icon"),this.thumbnailButton.children[0].classList.add("e-pv-thumbnail-view-selection-icon"),this.thumbnailButton.classList.add("e-pv-thumbnail-view-button-selection"))},i.prototype.removeThumbnailSelectionIconTheme=function(){this.thumbnailButton&&this.thumbnailButton.children[0]&&(this.thumbnailButton.children[0].classList.add("e-pv-thumbnail-view-icon"),this.thumbnailButton.children[0].classList.remove("e-pv-thumbnail-view-selection-icon"),this.thumbnailButton.classList.remove("e-pv-thumbnail-view-button-selection"))},i.prototype.resetThumbnailIcon=function(){this.thumbnailButton&&this.thumbnailButton.children[0]&&(this.thumbnailButton.children[0].classList.remove("e-pv-thumbnail-view-icon"),this.thumbnailButton.children[0].classList.add("e-pv-thumbnail-view-disable-icon"))},i.prototype.resetThumbnailView=function(){this.sideBarContentContainer&&(this.sideBarContentContainer.style.display="none",this.pdfViewer.enableRtl?this.pdfViewerBase.viewerContainer.style.left="1px":this.pdfViewerBase.viewerContainer.style.left=this.sideToolbarWidth+"px",this.pdfViewerBase.viewerContainer.style.width=(this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth)-this.sideToolbarWidth-this.getViewerContainerRight()+"px",this.pdfViewerBase.pageContainer&&(this.pdfViewerBase.pageContainer.style.width=this.pdfViewerBase.viewerContainer.clientWidth+"px"),this.thumbnailButton.setAttribute("disabled","disabled"),this.removeThumbnailSelectionIconTheme(),this.resetThumbnailIcon())},i.prototype.setBookmarkSelectionIconTheme=function(){this.bookmarkButton&&(this.bookmarkButton.children[0].classList.remove("e-pv-bookmark-icon"),this.bookmarkButton.children[0].classList.add("e-pv-bookmark-selection-icon"),this.bookmarkButton.classList.add("e-pv-bookmark-button-selection"))},i.prototype.removeBookmarkSelectionIconTheme=function(){this.bookmarkButton&&this.bookmarkButton.children[0]&&(this.bookmarkButton.children[0].classList.add("e-pv-bookmark-icon"),this.bookmarkButton.children[0].classList.remove("e-pv-bookmark-selection-icon"),this.bookmarkButton.classList.remove("e-pv-bookmark-button-selection"))},i.prototype.sideToolbarOnMouseup=function(e){e.target===this.sideBarToolbar&&this.pdfViewerBase.focusViewerContainer()},i.prototype.sideBarTitleOnMouseup=function(e){e.target===this.sideBarToolbar&&this.pdfViewerBase.focusViewerContainer()},i.prototype.openBookmarkcontentInitially=function(e){var t=this;if(
vendor: 84,460 bytes, line 10
10document.getElementById(t.pdfViewer.element.id+"_thumbnail_view")&&(document.getElementById(t.pdfViewer.element.id+"_thumbnail_view").style.display="none"),t.removeThumbnailSelectionIconTheme(),t.sideBarTitle.textContent=t.pdfViewer.localeObj.getConstant("Bookmarks"),t.sideBarContent.setAttribute("aria-label","Bookmark View Panel"),t.sideBarContent.setAttribute("role","navigation"),t.pdfViewer.bookmarkViewModule.renderBookmarkcontent(),!t.sideBarContentContainer||!e&&t.isBookmarkOpenProgrammatically||("none"!==t.sideBarContentContainer.style.display?t.isThumbnailOpen?(t.setBookmarkSelectionIconTheme(),t.isBookmarkOpen=!0,t.updateViewerContainerOnExpand(),t.isThumbnail=!1,t.isThumbnailAddedProgrammatically=!1,t.isBookmarkOpenProgrammatically=!0,t.pdfViewer.isThumbnailViewOpen=!1):(t.removeBookmarkSelectionIconTheme(),t.isBookmarkOpen=!1,t.updateViewerContainerOnClose(),t.isBookmarkOpenProgrammatically=!1):(t.sideBarContent.focus(),t.setBookmarkSelectionIconTheme(),t.isBookmarkOpen=!0,t.updateViewerContainerOnExpand(),t.isBookmarkOpenProgrammatically=!0,t.pdfViewer.isThumbnailViewOpen=!1)),t.isThumbnailOpen=!1,t.pdfViewer.annotationModule&&t.pdfViewer.annotationModule.inkAnnotationModule){var i=parseInt(t.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);t.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(i)}t.isBookmarkOpen&&document.getElementById(t.pdfViewer.element.id+"_bookmark_view").focus()},i.prototype.disableBookmarkButton=function(){if(this.sideBarContentContainer&&this.bookmarkButton&&this.bookmarkButton.children[0]){var e=this.pdfViewer.element.querySelector(".e-pv-bookmark-view");e&&(e.style.display="none"),this.bookmarkButton.setAttribute("disabled","disabled"),this.bookmarkButton.children[0].classList.add("e-pv-bookmark-disable-icon")}},i.prototype.calculateCommentPanelWidth=function(){for(var e=document.getElementsByClassName("e-pv-comment-title"),t=document.getElementsByClassName("e-pv-more-options-button e-btn"),i=0;i<e.length;i++){var n=e[parseInt(i.toString(),10)],o=t[parseInt(i.toString(),10)];n.style.maxWidth=n.parentElement.clientWidth-o.clientWidth+"px"}for(var r=document.getElementsByClassName("e-pv-reply-title"),a=document.getElementsByClassName("e-pv-more-options-button e-btn"),s=0;s<r.length;s++){var l=r[parseInt(s.toString(),10)],d=a[parseInt(s.toString(),10)];l.style.maxWidth=l.parentElement.clientWidth-d.clientWidth+"px"}},i.prototype.clear=function(){t.Browser.isDevice||(this.removeBookmarkSelectionIconTheme(),this.removeThumbnailSelectionIconTheme(),this.closeCommentPanelContainer()),this.commentsContentContainer&&(this.commentsContentContainer.innerHTML="")},i.prototype.destroy=function(){var e=this;this.sideBarResizer&&this.sideBarResizer.removeEventListener("mousedown",this.resizePanelMouseDown),this.pdfViewerBase.mainContainer&&(this.pdfViewerBase.mainContainer.removeEventListener("mousemove",this.resizePanelMouseMove),this.pdfViewerBase.mainContainer.removeEventListener("mouseup",this.resizeViewerMouseLeave)),this.sideBarToolbar&&this.sideBarToolbar.removeEventListener("mouseup",this.sideToolbarOnMouseup.bind(this)),this.sideBarContentContainer&&this.sideBarContentContainer.removeEventListener("mouseup",this.sideBarTitleOnMouseup.bind(this)),this.commentPanelResizer&&this.commentPanelResizer.removeEventListener("mousedown",this.commentPanelMouseDown),this.annotationInputElement&&this.annotationInputElement.removeEventListener("change",this.loadImportAnnotation),this.annotationXFdfInputElement&&this.annotationXFdfInputElement.removeEventListener("change",this.loadImportAnnotation),this.searchInput&&this.searchInput.removeEventListener("keyup",function(t){e.enableSearchItems(!0);e.searchInput.value;13===t.which?(e.initiateTextSearch(),e.setSearchInputWidth()):e.pdfViewer.textSearchModule.resetVariables()}),this.resizeIcon&&(this.resizeIcon.removeEventListener("click",this.sideToolbarOnClose),this.resizeIcon.removeEventListener("mouseover",this.resizeIconMouseOver)),this.closeDiv&&this.closeDiv.removeEventListener("click",this.sideToolbarOnClose);var t=this.bookmarkButton,i=this.thumbnailButton,n=this.organizePageButton;if(t&&t.ej2_instances&&t.ej2_instances.length>0&&(t.removeEventListener("click",this.bookmarkButtonOnClick),t.ej2_instances[0].destroy(),t=null),i&&i.ej2_instances&&i.ej2_instances.length>0&&(i.removeEventListener("click",this.sideToolbarOnClick),i.ej2_instances[0].destroy(),i=null),n&&n.ej2_instances&&n.ej2_instances.length>0&&(n.removeEventListener("click",this.organizeButtonOnClick),n.ej2_instances[0].destroy(),n=null),this.annotationMenuObj){var o=this.annotationMenuObj.element;o&&o.ej2_instances&&o.ej2_instances.length>0&&(this.annotationMenuObj.destroy(),this.annotationMenuObj=null)}this.sideBarResizer=null,this.sideBarContentSplitter=null,this.sideBarTitleContainer=null,this.thumbnailWidthMin=null,this.mainContainerWidth=null,this.closeDiv=null,this.resizeIcon=null,this.isDown=null,this.offset=null,this.contentContainerScrollWidth=null,this.closeButtonLeft=null,this.previousX=null,this.toolbarElement=null,this.toolbar=null,this.searchInput=null,this.toastObject=null,this.isTooltipCreated=null,this.annotationInputElement=null,this.annotationXFdfInputElement=null,this.annotationContextMenu=null,this.isCommentPanelShow=null,this.commentPanelWidthMin=null,this.commentPanelResizeIcon=null,this.isThumbnail=null,this.isThumbnailAddedProgrammatically=null,this.isBookmarkOpenProgrammatically=null,this.sideBarTitle=null,this.isNavigationToolbarVisible=null,this.isBookmarkListOpen=null,this.isNavigationPaneResized=null,this.sideBarToolbar=null,this.sideBarContent=null,this.sideBarContentContainer=null,this.sideBarToolbarSplitter=null,this.isBookmarkOpen=null,this.isThumbnailOpen=null,this.commentPanelContainer=null,this.commentsContentContainer=null,this.accordionContentContainer=null,this.commentPanelResizer=null,this.restrictUpdateZoomValue=null},i.prototype.getModuleName=function(){return"NavigationPane"},i}(),Wt=function(){function e(e,t){this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.createContextMenu=function(){var e=document.getElementsByClassName(this.pdfViewer.element.id+"_context_menu");if(e&&(this.contextMenuElement=e[0],this.contextMenuElement.children&&this.contextMenuElement.children.length>0)){var t=this.contextMenuElement.children[0];t.className=t.className+" e-pv-context-menu"}},e.prototype.open=function(e,t,i){this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenContextMenu",e,t)},e.prototype.close=function(){this.pdfViewer._dotnetInstance.invokeMethodAsync("CloseContextMenu")},e.prototype.destroy=function(){this.previousAction="",this.contextMenuElement=null,this.currentTarget=null},e.prototype.OnItemSelected=function(e){"string"==typeof e?this.pdfViewerBase.OnItemSelected(e):this.pdfViewerBase.OnItemSelected(e[0])},e}(),Zt={},_t=null,Xt=null,qt=30,$t=30,ei=30,ti=30,ii=36,ni=30,oi=30,ri="e-spin-show",ai="e-spin-hide",si="e-spin-material",li="e-spin-material3",di="e-spin-fabric",Ai="e-spin-bootstrap",hi="e-spin-bootstrap4",pi="e-spin-bootstrap5",ci="e-spin-tailwind",gi="e-spin-fluent",ui="e-spin-fluent2",fi="e-spin-tailwind3",mi="e-spin-high-contrast",wi="e-spinner-pane",Ci="e-spinner-inner",Bi="e-path-circle",Si="e-path-arc",yi="e-spin-label",Ii="e-spin-template",Ei=function(){function e(e,t){this.pdfViewer=null,this.pdfViewerBase=null,this.totalPageElement=null,this.currentPageBoxElementContainer=null,this.currentPageBoxElement=null,this.firstPageElement=null,this.previousPageElement=null,this.nextPageElement=null,this.lastPageElement=null,this.zommOutElement=null,this.zoomInElement=null,this.zoomDropDownElement=null,this.selectToolElement=null,this.handToolElement=null,this.undoElement=null,this.redoElement=null,this.commentElement=null,this.submitFormButton=null,this.searchElement=null,this.annotationElement=null,this.printElement=null,this.downloadElement=null,this.highlightElement=null,this.underlineElement=null,this.strikeThroughElement=null,this.shapeElement=null,this.calibrateElement=null,this.stampElement=null,this.freeTextElement=null,this.signatureElement=null,this.inkElement=null,this.annotationFontSizeInputElement=null,this.annotationFontFamilyInputElement=null,this.annotationColorElement=null,this.annotationStrokeColorElement=null,this.annotationThicknessElement=null,this.annotationOpacityElement=null,this.annotationFontColorElement=null,this.annotationFontFamilyElement=null,this.annotationFontSizeElement=null,this.annotationTextAlignElement=null,this.annotationTextColorElement=null,this.annotationTextPropertiesElement=null,this.annotationDeleteElement=null,this.annotationCloseElement=null,this.annotationCommentPanelElement=null,this.mobileToolbarContainerElement=null,this.mobileSearchPreviousOccurenceElement=null,this.mobileSearchNextOccurenceElement=null,this.cssClass="e-overlay",this.disableClass=" e-overlay",this.editAnnotationButtonElement=null,this.pdfViewer=e,this.pdfViewerBase=t,this.findToolbarElements()}return e.prototype.findToolbarElements=function(){this.totalPageElement=this.pdfViewerBase.getElement("_totalPage").children[0],this.currentPageBoxElementContainer=this.pdfViewerBase.getElement("_currentPageInput"),this.currentPageBoxElement=this.pdfViewerBase.getElement("_currentPageInput").children[0].children[0],this.firstPageElement=this.pdfViewerBase.getElement("_firstPage"),this.previousPageElement=this.pdfViewerBase.getElement("_previousPage"),this.nextPageElement=this.pdfViewerBase.getElement("_nextPage"),this.lastPageElement=this.pdfViewerBase.getElement("_lastPage"),this.zommOutElement=this.pdfViewerBase.getElement("_zoomOut"),this.zoomInElement=this.pdfViewerBase.getElement("_zoomIn"),this.zoomDropDownElement=this.pdfViewerBase.getElement("_zoomDropDown"),this.selectToolElement=this.pdfViewerBase.getElement("_selectTool"),this.handToolElement=this.pdfViewerBase.getElement("_handTool"),this.undoElement=this.pdfViewerBase.getElement("_undo"),this.redoElement=this.pdfViewerBase.getElement("_redo"),this.commentElement=this.pdfViewerBase.getElement("_comment"),this.submitFormButton=this.pdfViewerBase.getElement("_submitFormButton"),this.searchElement=this.pdfViewerBase.getElement("_search"),this.annotationElement=this.pdfViewerBase.getElement("_annotation"),this.editAnnotationButtonElement=this.annotationElement.children[0],this.editAnnotationButtonElement.classList.add("e-pv-tbar-btn"),this.printElement=this.pdfViewerBase.getElement("_print"),this.downloadElement=this.pdfViewerBase.getElement("_download"),this.highlightElement=this.pdfViewerBase.getElement("_highLight"),this.underlineElement=this.pdfViewerBase.getElement("_underline"),this.strikeThroughElement=this.pdfViewerBase.getElement("_strikethrough"),this.shapeElement=this.pdfViewerBase.getElement("_annotation_shapes"),this.calibrateElement=this.pdfViewerBase.getElement("_annotation_calibrate"),this.stampElement=this.pdfViewerBase.getElement("_annotation_stamp"),this.freeTextElement=this.pdfViewerBase.getElement("_annotation_freeTextEdit"),this.signatureElement=this.pdfViewerBase.getElement("_annotation_signature"),this.inkElement=this.pdfViewerBase.getElement("_annotation_ink"),this.annotationFontSizeInputElement=this.pdfViewerBase.getElement("_annotation_fontsize").children[0].children[0],this.annotationFontFamilyInputElement=this.pdfViewerBase.getElement("_annotation_fontname").children[0].children[0],this.annotationColorElement=this.pdfViewerBase.getElement("_annotation_color"),this.annotationStrokeColorElement=this.pdfViewerBase.getElement("_annotation_stroke"),this.annotationThicknessElement=this.pdfViewerBase.getElement("_annotation_thickness"),this.annotationOpacityElement=this.pdfViewerBase.getElement("_annotation_opacity"),this.annotationFontColorElement=this.pdfViewerBase.getElement("_annotation_textcolor"),this.annotationFontFamilyElement=this.pdfViewerBase.getElement("_annotation_fontname"),this.annotationFontSizeElement=this.pdfViewerBase.getElement("_annotation_fontsize"),this.annotationTextAlignElement=this.pdfViewerBase.getElement("_annotation_textalign"),this.annotationTextColorElement=this.pdfViewerBase.getElement("_annotation_textcolor"),this.annotationTextPropertiesElement=this.pdfViewerBase.getElement("_annotation_textproperties"),this.annotationDeleteElement=this.pdfViewerBase.getElement("_annotation_delete"),this.annotationCommentPanelElement=this.pdfViewerBase.getElement("_annotation_commentPanel"),this.annotationCloseElement=this.pdfViewerBase.getElement("_annotation_close"),this.mobileToolbarContainerElement=this.pdfViewerBase.getElement("_mobileToolbarContainer"),this.mobileSearchPreviousOccurenceElement=this.pdfViewerBase.getElement("_prev_occurrence"),this.mobileSearchNextOccurenceElement=this.pdfViewerBase.getElement("_next_occurrence")},e.prototype.updateTotalPage=function(){this.totalPageElement.textContent=this.pdfViewer.localeObj.getConstant("of")+this.pdfViewerBase.pageCount.toString()},e.prototype.updateCurrentPage=function(e){this.currentPageBoxElement.value=e.toString()},e.prototype.loadDocument=function(){this.pdfViewer.enableNavigation&&(this.currentPageBoxElementContainer.classList.remove(this.cssClass),this.currentPageBoxElement.value="1",this.totalPageElement.textContent=this.pdfViewer.localeObj.getConstant("of")+this.pdfViewerBase.pageCount.toString(),this.isEnabled(this.firstPageElement)||(this.firstPageElement.className+=this.disableClass),this.isEnabled(this.previousPageElement)||(this.previousPageElement.className+=this.disableClass),this.nextPageElement.classList.remove(this.cssClass),this.lastPageElement.classList.remove(this.cssClass),1===this.pdfViewerBase.pageCount&&(this.nextPageElement.classList.contains(this.cssClass)||(this.nextPageElement.className+=this.disableClass),this.lastPageElement.classList.contains(this.cssClass)||(this.lastPageElement.className+=this.disableClass))),this.pdfViewer.enableMagnification&&(this.zoomInElement.classList.remove(this.cssClass),this.zommOutElement.classList.remove(this.cssClass),this.zoomDropDownElement.classList.remove(this.cssClass)),this.pdfViewer.enableTextSelection&&(this.selectToolElement.classList.remove(this.cssClass),this.selectItem(this.pdfViewer.toolbar.SelectToolElement)),this.handToolElement.classList.remove(this.cssClass),this.pdfViewer.enableStickyNotesAnnotation&&this.commentElement.classList.remove(this.cssClass),this.pdfViewer.enableTextSearch&&this.searchElement.classList.remove(this.cssClass),this.pdfViewer.isFormFieldDocument&&this.submitFormButton.classList.remove(this.cssClass),this.pdfViewer.enableAnnotation&&this.pdfViewer.enableAnnotationToolbar&&this.annotationElement.classList.remove(this.cssClass),this.pdfViewer.enablePrint&&this.printElement.classList.remove(this.cssClass),this.pdfViewer.enableDownload&&this.downloadElement.classList.remove(this.cssClass),this.pdfViewer.enableAnnotation&&this.pdfViewer.enableTextMarkupAnnotation&&(this.highlightElement.classList.remove(this.cssClass),this.underlineElement.classList.remove(this.cssClass),this.strikeThroughElement.classList.remove(this.cssClass)),this.pdfViewer.enableAnnotation&&this.pdfViewer.enableShapeAnnotation&&this.shapeElement.classList.remove(this.cssClass),this.pdfViewer.enableAnnotation&&this.pdfViewer.enableMeasureAnnotation&&this.calibrateElement.classList.remove(this.cssClass),this.pdfViewer.enableAnnotation&&this.pdfViewer.enableStampAnnotations&&this.stampElement.classList.remove(this.cssClass),this.pdfViewer.enableFreeText&&this.freeTextElement.classList.remove(this.cssClass),this.pdfViewer.enableHandwrittenSignature&&this.signatureElement.classList.remove(this.cssClass),this.pdfViewer.enableInkAnnotation&&this.inkElement.classList.remove(this.cssClass),this.pdfViewer.enableCommentPanel&&this.annotationCommentPanelElement.classList.remove(this.cssClass)},e.prototype.selectItem=function(e){e&&e.classList.add("e-pv-select")},e.prototype.deselectItem=function(e){e&&e.classList.remove("e-pv-select")},e.prototype.showAnnotationToolbar=function(e){this.pdfViewer.toolbar.annotationToolbarModule.adjustViewer(e[0]),e[0]?this.pdfViewer.toolbar.selectItem(this.editAnnotationButtonElement):(this.pdfViewer.toolbar.deSelectItem(this.editAnnotationButtonElement),this.pdfViewerBase.focusViewerContainer())},e.prototype.closeAnnotationToolbar=function(){this.pdfViewer.toolbar.annotationToolbarModule.adjustViewer(!1),this.pdfViewer.toolbar.deSelectItem(this.editAnnotationButtonElement),this.pdfViewerBase.navigationPane.closeCommentPanelContainer()},e.prototype.resetToolbar=function(){this.pdfViewer.enableToolbar&&(this.currentPageBoxElement.value="0",this.totalPageElement.textContent=this.pdfViewer.localeObj.getConstant("of")+"0",this.isEnabled(this.currentPageBoxElementContainer)||(this.currentPageBoxElementContainer.className+=this.disableClass),this.isEnabled(this.firstPageElement)||(this.firstPageElement.className+=this.disableClass),this.isEnabled(this.previousPageElement)||(this.previousPageElement.className+=this.disableClass),this.isEnabled(this.nextPageElement)||(this.nextPageElement.className+=this.disableClass),this.isEnabled(this.lastPageElement)||(this.lastPageElement.className+=this.disableClass),this.isEnabled(this.zoomInElement)||(this.zoomInElement.className+=this.disableClass),this.isEnabled(this.zommOutElement)||(this.zommOutElement.className+=this.disableClass),this.isEnabled(this.zoomDropDownElement)||(this.zoomDropDownElement.className+=this.disableClass),this.isEnabled(this.selectToolElement)||(this.selectToolElement.className+=this.disableClass),this.isEnabled(this.handToolElement)||(this.handToolElement.className+=this.disableClass),this.isEnabled(this.undoElement)||(this.undoElement.className+=this.disableClass),this.isEnabled(this.redoElement)||(this.redoElement.className+=this.disableClass),this.isEnabled(this.commentElement)||(this.commentElement.className+=this.disableClass),this.isEnabled(this.searchElement)||(this.searchElement.className+=this.disableClass),this.isEnabled(this.submitFormButton)||(this.submitFormButton.className+=this.disableClass),this.isEnabled(this.annotationElement)||(this.annotationElement.className+=this.disableClass),this.isEnabled(this.printElement)||(this.printElement.className+=this.disableClass),this.isEnabled(this.downloadElement)||(this.downloadElement.className+=this.disableClass)),this.pdfViewer.enableAnnotationToolbar&&(this.isEnabled(this.highlightElement)||(this.highlightElement.className+=this.disableClass),this.isEnabled(this.underlineElement)||(this.underlineElement.className+=this.disableClass),this.isEnabled(this.strikeThroughElement)||(this.strikeThroughElement.className+=this.disableClass),this.isEnabled(this.shapeElement)||(this.shapeElement.className+=this.disableClass),this.isEnabled(this.calibrateElement)||(this.calibrateElement.className+=this.disableClass),this.isEnabled(this.stampElement)||(this.stampElement.className+=this.disableClass),this.isEnabled(this.freeTextElement)||(this.freeTextElement.className+=this.disableClass),this.isEnabled(this.signatureElement)||(this.signatureElement.className+=this.disableClass),this.isEnabled(this.inkElement)||(this.inkElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextColorElement)||(this.annotationTextColorElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass),this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass),this.isEnabled(this.annotationCommentPanelElement)||(this.annotationCommentPanelElement.className+=this.disableClass))},e.prototype.EnableDeleteOption=function(e){null!==this.annotationDeleteElement&&(e?this.annotationDeleteElement.classList.remove(this.cssClass):this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass))},e.prototype.pageChanged=function(e){this.pdfViewer.enableNavigation&&(this.currentPageBoxElement.value=e.toString()),e===this.pdfViewer.pageCount&&(this.isEnabled(this.nextPageElement)||(this.nextPageElement.className+=this.disableClass),this.previousPageElement.classList.remove(this.cssClass),this.isEnabled(this.lastPageElement)||(this.lastPageElement.className+=this.disableClass),this.firstPageElement.classList.remove(this.cssClass)),e<this.pdfViewer.pageCount&&1!==e&&(this.firstPageElement.classList.remove(this.cssClass),this.previousPageElement.classList.remove(this.cssClass),this.nextPageElement.classList.remove(this.cssClass),this.lastPageElement.classList.remove(this.cssClass)),1===e&&(this.nextPageElement.classList.remove(this.cssClass),this.lastPageElement.classList.remove(this.cssClass),this.isEnabled(this.firstPageElement)||(this.firstPageElement.className+=this.disableClass),this.isEnabled(this.previousPageElement)||(this.previousPageElement.className+=this.disableClass))},e.prototype.updateUndoRedoButton=function(e,t){"undo"===e&&(t?this.undoElement.classList.remove(this.cssClass):this.isEnabled(this.undoElement)||(this.undoElement.className+=this.disableClass)),"redo"===e&&(t?this.redoElement.classList.remove(this.cssClass):this.isEnabled(this.redoElement)||(this.redoElement.className+=this.disableClass))},e.prototype.disableUndoRedoButton=function(){this.isEnabled(this.undoElement)||(this.undoElement.className+=this.disableClass),this.isEnabled(this.redoElement)||(this.redoElement.className+=this.disableClass)},e.prototype.enableTextMarkupAnnotationPropertiesTools=function(e){e?(this.annotationColorElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass)):(this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass)),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass)},e.prototype.enableAnnotationPropertiesTool=function(e,t){t&&(e?(this.annotationColorElement.classList.remove(this.cssClass),this.annotationStrokeColorElement.classList.remove(this.cssClass),this.annotationThicknessElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.pdfViewer.enableShapeLabel&&(this.annotationFontColorElement.classList.remove(this.cssClass),this.annotationFontFamilyElement.classList.remove(this.cssClass),this.annotationFontSizeElement.classList.remove(this.cssClass)),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)):(this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass)))},e.prototype.enableFreeTextAnnotationPropertiesTools=function(e,t){t&&e&&(this.annotationColorElement.classList.remove(this.cssClass),this.annotationStrokeColorElement.classList.remove(this.cssClass),this.annotationThicknessElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.annotationFontColorElement.classList.remove(this.cssClass),this.annotationFontFamilyElement.classList.remove(this.cssClass),this.annotationFontSizeElement.classList.remove(this.cssClass),this.annotationTextAlignElement.classList.remove(this.cssClass),this.annotationTextPropertiesElement.classList.remove(this.cssClass),this.annotationDeleteElement.classList.remove(this.cssClass),this.annotationCommentPanelElement.classList.remove(this.cssClass))},e.prototype.enableStampAnnotationPropertiesTools=function(e,t){e?(this.annotationOpacityElement.classList.remove(this.cssClass),this.annotationDeleteElement.classList.remove(this.cssClass),this.annotationCommentPanelElement.classList.remove(this.cssClass)):(this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass),this.isEnabled(this.annotationCommentPanelElement)||(this.annotationCommentPanelElement.className+=this.disableClass)),this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)},e.prototype.enableSignaturePropertiesTools=function(e,t){e?(this.annotationStrokeColorElement.classList.remove(this.cssClass),this.annotationThicknessElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.annotationDeleteElement.classList.remove(this.cssClass),this.annotationCommentPanelElement.classList.remove(this.cssClass)):(this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass),this.isEnabled(this.annotationCommentPanelElement)||(this.annotationCommentPanelElement.className+=this.disableClass)),this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)},e.prototype.annotationAdd=function(){this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)},e.prototype.annotationUnSelect=function(){this.isEnabled(this.annotationColorElement)||(this.annotationColorElement.className+=this.disableClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.isEnabled(this.annotationOpacityElement)||(this.annotationOpacityElement.className+=this.disableClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass),this.isEnabled(this.annotationDeleteElement)||(this.annotationDeleteElement.className+=this.disableClass)},e.prototype.annotationSelect=function(e){"FreeText"===e&&(this.annotationColorElement.classList.remove(this.cssClass),this.annotationStrokeColorElement.classList.remove(this.cssClass),this.annotationThicknessElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.annotationFontColorElement.classList.remove(this.cssClass),this.annotationFontFamilyElement.classList.remove(this.cssClass),this.annotationFontSizeElement.classList.remove(this.cssClass),this.annotationTextAlignElement.classList.remove(this.cssClass),this.annotationTextPropertiesElement.classList.remove(this.cssClass)),"Shape"!==e&&"Measure"!==e||(this.annotationColorElement.classList.remove(this.cssClass),this.annotationStrokeColorElement.classList.remove(this.cssClass),this.annotationThicknessElement.classList.remove(this.cssClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)),"TextMarkup"===e&&(this.annotationColorElement.classList.remove(this.cssClass),this.isEnabled(this.annotationStrokeColorElement)||(this.annotationStrokeColorElement.className+=this.disableClass),this.isEnabled(this.annotationThicknessElement)||(this.annotationThicknessElement.className+=this.disableClass),this.annotationOpacityElement.classList.remove(this.cssClass),this.isEnabled(this.annotationFontColorElement)||(this.annotationFontColorElement.className+=this.disableClass),this.isEnabled(this.annotationFontFamilyElement)||(this.annotationFontFamilyElement.className+=this.disableClass),this.isEnabled(this.annotationFontSizeElement)||(this.annotationFontSizeElement.className+=this.disableClass),this.isEnabled(this.annotationTextAlignElement)||(this.annotationTextAlignElement.className+=this.disableClass),this.isEnabled(this.annotationTextPropertiesElement)||(this.annotationTextPropertiesElement.className+=this.disableClass)),this.annotationDeleteElement.classList.remove(this.cssClass),this.annotationCommentPanelElement.classList.remove(this.cssClass)},e.prototype.destroy=function(){this.totalPageElement=null,this.currentPageBoxElementContainer=null,this.currentPageBoxElement=null,this.firstPageElement=null,this.previousPageElement=null,this.nextPageElement=null,this.lastPageElement=null,this.zommOutElement=null,this.zoomInElement=null,this.zoomDropDownElement=null,this.selectToolElement=null,this.handToolElement=null,this.undoElement=null,this.redoElement=null,this.commentElement=null,this.submitFormButton=null,this.searchElement=null,this.annotationElement=null,this.printElement=null,this.downloadElement=null,this.highlightElement=null,this.underlineElement=null,this.strikeThroughElement=null,this.shapeElement=null,this.calibrateElement=null,this.stampElement=null,this.freeTextElement=null,this.signatureElement=null,this.inkElement=null,this.annotationFontSizeInputElement=null,this.annotationFontFamilyInputElement=null,this.annotationColorElement=null,this.annotationStrokeColorElement=null,this.annotationThicknessElement=null,this.annotationOpacityElement=null,this.annotationFontColorElement=null,this.annotationFontFamilyElement=null,this.annotationFontSizeElement=null,this.annotationTextAlignElement=null,this.annotationTextColorElement=null,this.annotationTextPropertiesElement=null,this.annotationDeleteElement=null,this.annotationCloseElement=null,this.annotationCommentPanelElement=null,this.mobileToolbarContainerElement=null,this.mobileSearchPreviousOccurenceElement=null,this.mobileSearchNextOccurenceElement=null,this.cssClass=null,this.disableClass=null,this.editAnnotationButtonElement=null},e.prototype.updateFontFamilyInIcon=function(e){this.annotationFontFamilyInputElement.value=e},e.prototype.updateFontSizeInIcon=function(e){var t=e.toString()+"px";this.annotationFontSizeInputElement.value=t},e.prototype.enableSearchItems=function(e){e?(this.mobileSearchPreviousOccurenceElement.classList.remove(this.cssClass),this.mobileSearchNextOccurenceElement.classList.remove(this.cssClass)):(this.isEnabled(this.mobileSearchPreviousOccurenceElement)||(this.mobileSearchPreviousOccurenceElement.className+=this.disableClass),this.isEnabled(this.mobileSearchNextOccurenceElement)||(this.mobileSearchNextOccurenceElement.className+=this.disableClass))},e.prototype.tapOnMobileDevice=function(e){null!=this.mobileToolbarContainerElement&&(this.mobileToolbarContainerElement.style.display=e?"none":"block")},e.prototype.isEnabled=function(e){return e.classList.contains(this.cssClass)},e}(),vi=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},bi=function(e,t){function i(e){return function(t){return n([e,t])}}function n(i){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){l.label=i[1];break}if(6===i[0]&&l.label<a[1]){l.label=a[1],a=i;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(i);break}a[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{o=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}var o,r,a,s,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Vi=function(){function e(){}return e.isSupportedFont=function(e,i){try{if(!t.isNullOrUndefined(e)&&!t.isNullOrUndefined(i)){for(var n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)];if(i._fontInternal._ttfReader._getGlyph(o),!i._fontInternal._ttfReader._isFontPresent&&" "!==o&&!this.hasEscapeSequences(o))return i._fontInternal._ttfReader._isFontPresent}return!0}}catch(e){return!1}return!1},e.hasEscapeSequences=function(e){return/[\0\b\t\n\v\f\r'"\\]/.test(e)},e.processFontStream=function(e){return e instanceof Uint8Array?this.convertByteArrayToBase64(e):e},e.fetchCustomFonts=function(e,t){var i=this,n={},o=e.map(function(e){var o,r=(o=e.startsWith("http://")||e.startsWith("https://")?e:t+"/"+e).split("/"),a=r.pop()||"";return-1===Object.keys(n).indexOf(a)?i.fetchData(o).then(function(o){return vi(i,void 0,void 0,function(){var i;return bi(this,function(s){return o?(n[-1!==r.indexOf("fallbackfonts")?"fallbackfonts_"+a.toLowerCase():a.toLowerCase()]=o,[2]):(i=t+"/fallbackfonts/"+e,[2,this.fetchData(i).then(function(e){e&&(n["fallbackfonts_"+a.toLowerCase()]=e)})])})})}):null});return Promise.all(o).then(function(){return n})},e.tryGetFontFromKeys=function(e,t,i,n){for(var o=0,r=Object.keys(e);o<r.length;o++){var a=r[o],s=this.processFontStream(e[""+a]),l=new d.PdfTrueTypeFont(s,this.convertPixelToPoint(i),n||d.PdfFontStyle.regular);if(this.isSupportedFont(t,l))return l;l=null,s=null}return null},e.getFontKey=function(e,t){if(e[""+t]||e[t+".ttf"])return e[""+t]?t:t+".ttf";var i=t.endsWith(".ttf")?t:t+".ttf";for(var n in e)if(n.toLowerCase().endsWith(i.toLowerCase()))return n},e.isHexRGBAAndTransparent=function(e){if(!/^#([A-Fa-f0-9]{8})$/.test(e))return!1;var t=e.slice(-2);return 0===parseInt(t,16)},e.setTransparencyToHex=function(e){return e.includes("#")&&(e.length>8&&"#00000000"!==e?e=e.slice(0,-2)+"60":e+="60"),e},e.removeAlphaValueFromHex=function(e){return e.includes("#")&&e.length>8&&(e=e.slice(0,-2)),e},e.fetchData=function(e){return fetch(e).then(function(e){return e.ok?e.arrayBuffer().then(function(e){return new Uint8Array(e)}):null}).catch(function(){return null})},e.convertByteArrayToBase64=function(e){for(var t="",i=e.byteLength,n=0;n<i;n++)t+=String.fromCharCode(e[parseInt(n.toString(),10)]);return btoa(t)},e.convertPixelToPoint=function(e){return 72*e/96},e.cloneProxy=function(e){if(this.isProxy(e)){var t=Object.assign({},e);for(var i in t)this.isProxy(t[i])&&(t[i]=this.cloneProxy(t[i]));return t}return e},e.isProxy=function(e){return"[object Object]"===Object.prototype.toString.call(e)},e.createGUID=function(){return this.getRandomNumber()},e.getRandomNumber=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){return(16*Math.random()|0).toString(16)})},e}(),Di=function(){function e(e){this.localStorage={},this.enableLocalStorage=!0,this.documentId="",this.enableLocalStorage=e}return e.prototype.setItem=function(e,t){this.enableLocalStorage?this.localStorage[""+e]=t:window.sessionStorage.setItem(e,t)},e.prototype.getItem=function(e){return this.enableLocalStorage?e in this.localStorage?this.localStorage[""+e]:null:window.sessionStorage.getItem(e)},e.prototype.removeItem=function(e){this.enableLocalStorage?delete this.localStorage[""+e]:window.sessionStorage.removeItem(e)},e.prototype.getSessionLength=function(){return this.enableLocalStorage?Object.keys(this.localStorage).length:window.sessionStorage.length},e.prototype.getKey=function(e){return this.enableLocalStorage?Object.keys(this.localStorage)[parseInt(e.toString(),10)]||null:window.sessionStorage.key(e)},e.prototype.getWindowSessionStorageSize=function(){return Math.round(JSON.stringify(window.sessionStorage).length/1024)},e.prototype.migrateToLocalStorage=function(e){if(this.enableLocalStorage=e,this.enableLocalStorage){for(var i=this.getRemovingItems(),n=0;n<i.length;n++){var o=i[parseInt(n.toString(),10)];if(o){var r=window.sessionStorage.getItem(o);t.isNullOrUndefined(r)||""===this.documentId||-1===o.indexOf(this.documentId)||(this.localStorage[""+o]=r,window.sessionStorage.removeItem(o))}}i=null}},e.prototype.clear=function(){if(this.enableLocalStorage)this.localStorage={};else{for(var e=this.getRemovingItems(),t=0;t<e.length;t++){var i=e[parseInt(t.toString(),10)];-1!==i.indexOf("Sync_PdfViewer_")&&window.sessionStorage.removeItem(i)}e=null}},e.prototype.getRemovingItems=function(){for(var e=[],t=0;t<window.sessionStorage.length;t++){var i=window.sessionStorage.key(t);i&&e.push(i)}return e},e}();!function(e){e[e.High=1]="High",e[e.Medium=2]="Medium",e[e.Low=3]="Low"}(Et||(Et={}));var xi=function(){function e(e,t){this.taskQueue=[],this.isProcessing=!1,this.functionManager={},this.worker=new Worker(e),this.taskQueue=[],this.isProcessing=!1,this.pdfViewer=t,this.functionManager={}}return e.prototype.addTask=function(e,t){"unloadFPDF"!==e.message&&!0!==e.skipOnReload||(this.taskQueue=[],this.functionManager={}),this.taskQueue.push({taskData:e,priority:t}),this.taskQueue.sort(function(e,t){return e.priority-t.priority}),this.processQueue()},e.prototype.removePreviewImageTasks=function(e){for(var t=0;t<this.taskQueue.length;)this.taskQueue[t].taskData.imageSize!==e?this.taskQueue.splice(t,1):t++},e.prototype.processQueue=function(){if(!this.isProcessing&&0!==this.taskQueue.length){var e=this.taskQueue.shift();this.isProcessing=!0;var t=this.pdfViewer.isVue3||this.pdfViewer.parent&&this.pdfViewer.parent.isVue3?Vi.cloneProxy(e.taskData):e.taskData;this.worker.postMessage(t)}},e.prototype.onMessage=function(e,t){var i=this;Object.prototype.hasOwnProperty.call(this.functionManager,e)||(this.functionManager[""+e]=t),this.worker.onmessage=function(e){if(""!==e.data.message)for(var t in i.functionManager)if(Object.prototype.hasOwnProperty.call(i.functionManager,t)&&t.includes(e.data.message)){i.functionManager[""+t](e);break}i.isProcessing=!1,i.processQueue()}},e.prototype.terminate=function(){this.worker.terminate(),this.functionManager={}},e}(),Qi=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},Mi=function(e,t){function i(e){return function(t){return n([e,t])}}function n(i){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){l.label=i[1];break}if(6===i[0]&&l.label<a[1]){l.label=a[1],a=i;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(i);break}a[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{o=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}var o,r,a,s,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Fi=function(){function e(n){var o=this;this.hyperlinkAndLinkAnnotation={},this.pageTextDetails={},this.pageImageDetails={},this.pageSize=[],this.existingFieldImport=!0,this.pageCount=0,this.customZoomValues=[],this.isReRenderRequired=!0,this.currentPageNumber=0,this.initialZoomValue={},this.activeElements=new It,this.mouseDownEvent=null,this.pngData=[],this.isDocumentLoaded=!1,this.renderedPagesList=[],this.pageGap=8,this.signatureAdded=!1,this.isSignInitialClick=!1,this.isFreeTextSelected=!1,this.pageLeft=5,this.sessionLimit=1e3,this.pageStopValue=300,this.toolbarHeight=56,this.pageLimit=0,this.previousPage=0,this.isViewerMouseDown=!1,this.isViewerMouseWheel=!1,this.scrollPosition=0,this.sessionStorage=[],this.isLoadedFormFieldAdded=!1,this.isInkAnnot=!1,this.modifiedPageIndex=[],this.pointerCount=0,this.pointersForTouch=[],this.isPasswordAvailable=!1,this.isBounds=!1,this.isImportDoc=!1,this.passwordData="",this.reRenderedCount=0,this.mouseX=0,this.mouseY=0,this.mouseLeft=0,this.mouseTop=0,this.touchClientX=0,this.touchClientY=0,this.previousTime=0,this.currentTime=0,this.isTouchScrolled=!1,this.isgetFocused=!1,this.isLongTouchPropagated=!1,this.longTouchTimer=null,this.isViewerContainerDoubleClick=!1,this.dblClickTimer=null,this.pinchZoomStorage=[],this.isTextSelectionDisabled=!1,this.isPanMode=!1,this.dragX=0,this.dragY=0,this.isScrollbarMouseDown=!1,this.scrollX=0,this.scrollY=0,this.ispageMoved=!1,this.isThumb=!1,this.isTapHidden=!1,this.singleTapTimer=null,this.tapCount=0,this.inputTapCount=0,this.isInitialLoaded=!1,this.annotationPageList=[],this.importPageList=[],this.isImportAction=!1,this.isImportedAnnotation=!1,this.isAnnotationCollectionRemoved=!1,this.tool=null,this.action="Select",this.eventArgs=null,this.inAction=!1,this.isMouseDown=!1,this.isStampMouseDown=!1,this.stampAdded=!1,this.customStampCount=0,this.isDynamicStamp=!1,this.isMixedSizeDocument=!1,this.highestWidth=0,this.highestHeight=0,this.customStampCollection=[],this.isAlreadyAdded=!1,this.isWebkitMobile=!1,this.isFreeTextContextMenu=!1,this.isSelection=!1,this.isAddAnnotation=!1,this.annotationComments=null,this.isToolbarSignClicked=!1,this.signatureCount=0,this.isSignatureAdded=!1,this.isNewSignatureAdded=!1,this.isInitialPageMode=!1,this.documentAnnotationCollections=null,this.annotationRenderredList=[],this.annotationStorage={},this.formFieldStorage={},this.isStorageExceed=!1,this.isFormStorageExceed=!1,this.isNewStamp=!1,this.downloadCollections={},this.isAnnotationAdded=!1,this.annotationEvent=null,this.isAnnotationDrawn=!1,this.isAnnotationSelect=!1,this.isAnnotationMouseDown=!1,this.isAnnotationMouseMove=!1,this.validateForm=!1,this.isMinimumZoom=!1,this.documentLoaded=!1,this.tileRenderCount=0,this.tileRequestCount=0,this.isTileImageRendered=!1,this.isDataExits=!1,this.requestLists=[],this.tilerequestLists=[],this.textrequestLists=[],this.renderThumbnailImages=!1,this.pageRenderCount=2,this.isInkAdded=!1,this.inkCount=0,this.isAddedSignClicked=!1,this.imageCount=0,this.isMousedOver=!1,this.isFormFieldSelect=!1,this.isFormFieldMouseDown=!1,this.isFormFieldMouseMove=!1,this.isFormFieldMousedOver=!1,this.isPassword=!1,this.digitalSignaturePages=[],this.isDigitalSignaturePresent=!1,this.isDrawnCompletely=!1,this.isAddComment=!1,this.drawSignatureWithTool=!1,this.formFieldCollection=[],this.requestCollection=[],this.nonFillableFields={},this.isInitialField=!1,this.isTouchDesignerMode=!1,this.isPrint=!1,this.isPDFViewerJson=!1,this.isJsonImported=!1,this.isJsonExported=!1,this.isPageRotated=!1,this.downloadFileName="",this.isFocusField=!1,this.isTouchPad=!1,this.isMacGestureActive=!1,this.macGestureStartScale=0,this.zoomInterval=5,this.isTaggedPdf=!1,this.accessibilityTagsHandler=null,this.accessibilityTagsCollection=[],this.pageRequestListForAccessibilityTags=[],this.enableAccessibilityMultiPageRequest=!0,this.clientSideRendering=!1,this.focusField=[],this.isSkipDocumentPath=!1,this.isScrollerMoving=!1,this.isScrollerMovingTimer=null,this.previousScrollbarWidth=0,this.closeNotification=function(){o.notifyDialog.hide()},this.clearSessionStorage=function(){if(!o.clientSideRendering){var i="",n=e.sessionStorageManager.getItem(o.documentId+"_hashId"),r=e.sessionStorageManager.getItem(o.documentId+"_documentLiveCount"),a=e.sessionStorageManager.getItem(o.documentId+"_serviceURL");if(null!=(i=t.Browser.isIE||"edge"===t.Browser.info.name?decodeURI(n):n)){var s={hashId:i,documentLiveCount:r,action:"Unload",elementId:o.pdfViewer.element.id},l=e.sessionStorageManager.getItem(o.documentId+"_unload");if(t.isNullOrUndefined(a))t.isBlazor()&&o.clearCache(l,s,o);else if("keepalive"in new Request("")){var d=o.setUnloadRequestHeaders(),A=o.pdfViewer.ajaxRequestSettings.withCredentials?"include":"omit";fetch(a+"/"+l,{method:"POST",credentials:A,headers:d,body:JSON.stringify(s)})}}}e.sessionStorageManager.clear()},this.onWindowResize=function(e){var i=null;i=o,o.pdfViewer.enableRtl?(i.viewerContainer.style.right=(i.navigationPane.sideBarToolbar?i.navigationPane.getViewerContainerLeft():0)+"px",i.viewerContainer.style.left=(i.navigationPane.commentPanelContainer?i.navigationPane.commentPanelContainer.offsetWidth:0)+"px"):(i.viewerContainer.style.left=(i.navigationPane.sideBarToolbar?i.navigationPane.getViewerContainerLeft():0)+"px",i.viewerContainer.style.right=(i.navigationPane.commentPanelContainer?i.navigationPane.commentPanelContainer.offsetWidth:0)+"px");var n=(i.pdfViewer.element.clientWidth>0?i.pdfViewer.element.clientWidth:i.pdfViewer.element.style.width?i.pdfViewer.element.style.width:i.pdfViewer.element.offsetWidth)-(i.navigationPane.sideBarToolbar?i.navigationPane.getViewerContainerLeft():0)-(i.navigationPane.commentPanelContainer?i.navigationPane.getViewerContainerRight():0);if(i.viewerContainer.style.width=n+"px",i.pdfViewer.toolbarModule){var r=t.isBlazor()?i.pdfViewer.element.querySelector(".e-pv-toolbar"):i.getElement("_toolbarContainer"),a=0,s=0;if(r&&(a=r.getBoundingClientRect().height),i.isAnnotationToolbarHidden()||t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode){if(0===a&&o.navigationPane.isNavigationToolbarVisible&&(a=i.getElement("_navigationToolbar").getBoundingClientRect().height),!i.isFormDesignerToolbarHidded()){var l=i.getElement("_formdesigner_toolbar");s=l?l.getBoundingClientRect().height:0}i.viewerContainer.style.height=i.updatePageHeight(i.pdfViewer.element.getBoundingClientRect().height,a+s)}else{var d=t.isBlazor()?i.pdfViewer.element.querySelector(".e-pv-annotation-toolbar"):i.getElement("_annotation_toolbar"),A=0;d&&(A=d.getBoundingClientRect().height),i.viewerContainer.style.height=i.updatePageHeight(i.pdfViewer.element.getBoundingClientRect().height,a+A)}}else i.viewerContainer.style.height=i.updatePageHeight(i.pdfViewer.element.getBoundingClientRect().height,0);if(i.pdfViewer.bookmarkViewModule&&t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode){var h=i.getElement("_bookmarks_container");h&&(h.style.height=i.updatePageHeight(i.pdfViewer.element.getBoundingClientRect().height,0))}"0px"===i.viewerContainer.style.height&&("auto"===i.pdfViewer.height.toString()?(i.pdfViewer.height=500,i.viewerContainer.style.height=i.pdfViewer.height+"px"):i.viewerContainer.style.height=i.pdfViewer.element.style.height),"0px"===i.viewerContainer.style.width&&("auto"===i.pdfViewer.width.toString()?(i.pdfViewer.width=500,i.viewerContainer.style.width=i.pdfViewer.width+"px"):i.viewerContainer.style.width=i.pdfViewer.element.style.width),i.pageContainer.style.width=i.viewerContainer.clientWidth+"px",0===i.viewerContainer.clientWidth&&(i.pageContainer.style.width=i.pdfViewer.element.style.width),t.isBlazor()||i.pdfViewer.toolbarModule&&i.pdfViewer.toolbarModule.onToolbarResize(i.navigationPane.sideBarToolbar?i.navigationPane.getViewerMainContainerWidth():i.pdfViewer.element.clientWidth>0?i.pdfViewer.element.clientWidth:i.pdfViewer.element.offsetWidth),o.pdfViewer.enableToolbar&&o.pdfViewer.thumbnailViewModule&&(i.pdfViewer.thumbnailViewModule.gotoThumbnailImage(i.currentPageNumber-1),i.navigationPane.sideBarToolbar&&i.navigationPane.sideBarContentContainer&&(i.navigationPane.sideBarContentContainer.style.height=i.viewerContainer.style.height)),!i.pdfViewer.textSearchModule||t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode||i.pdfViewer.textSearchModule.textSearchBoxOnResize(),0!==n&&(i.navigationPane.isBookmarkListOpen||i.updateZoomValue()),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode?(i.mobileScrollerContainer.style.left=n-parseFloat(i.mobileScrollerContainer.style.width)+"px",i.mobilePageNoContainer.style.left=n/2-parseFloat(i.mobilePageNoContainer.style.width)/2+"px",i.mobilePageNoContainer.style.top=i.pdfViewer.element.clientHeight/2+"px",i.updateMobileScrollerPosition()):(i.navigationPane.setResizeIconTop(),i.navigationPane.setCommentPanelResizeIconTop(),e&&"resize"===e.type&&i.signatureModule.updateCanvasSize()),i.navigationPane.sideBarToolbar&&(i.navigationPane.sideBarToolbar.style.height=i.viewerContainer.style.height)},this.viewerContainerOnMousedown=function(e){o.isFreeTextContextMenu=!1;var i=!1;o.isSelection=!0;var n=e.target;if(0===e.button&&!o.getPopupNoteVisibleStatus()&&!o.isClickedOnScrollBar(e,!1)){o.isViewerMouseDown=!0,1===e.detail&&"e-pdfviewer-formFields"!==n.className&&"free-text-input"!==n.className&&(i=!0,o.focusViewerContainer(!0)),o.scrollPosition=o.viewerContainer.scrollTop/o.getZoomFactor(),o.mouseX=e.clientX,o.mouseY=e.clientY,o.mouseLeft=e.clientX,o.mouseTop=e.clientY;var r=!!document.documentMode;!o.pdfViewer.textSelectionModule||o.isClickedOnScrollBar(e,!0)||o.isTextSelectionDisabled||(r||"e-pdfviewer-formFields"===n.className||"e-pdfviewer-ListBox"===n.className||-1!==n.className.indexOf("e-pv-formfield-dropdown")||"e-pv-formfield-listbox"===n.className||"e-pv-formfield-input"===n.className||"e-pv-formfield-textarea"===n.className||e.preventDefault(),"e-pv-droplet"!==n.className&&o.pdfViewer.textSelectionModule.clearTextSelection())}o.isClickedOnScrollBar(e,!1)&&(o.isViewerMouseDown=!0),o.isPanMode&&(o.dragX=e.pageX,o.dragY=e.pageY,o.viewerContainer.contains(e.target)&&e.target!==o.viewerContainer&&e.target!==o.pageContainer&&o.isPanMode&&(o.viewerContainer.style.cursor="grabbing")),!o.isShapeBasedAnnotationsEnabled()||!o.isAnnotationDrawn&&("e-pv-page-container"===n.className||"foreign-object"===n.className&&isNaN(o.activeElements.activePageID))||o.diagramMouseDown(e),o.pdfViewer.annotation&&o.pdfViewer.annotation.stickyNotesAnnotationModule.accordionContainer&&(i||(o.pdfViewer.annotationModule.stickyNotesAnnotationModule.isEditableElement=!1,o.updateCommentPanel(),i=!0)),t.isBlazor()&&o.mouseDownHandler(e)},this.viewerContainerOnMouseup=function(e){if(!o.getPopupNoteVisibleStatus()){o.isViewerMouseDown&&(o.scrollHoldTimer&&(clearTimeout(o.scrollHoldTimer),o.scrollHoldTimer=null),o.scrollPosition*o.getZoomFactor()!==o.viewerContainer.scrollTop&&o.pageViewScrollChanged(o.currentPageNumber));var i=!1;e.target&&("e-pv-show-designer-name"===e.target.className&&""!==e.target.id.split("_",1)&&(i=document.getElementById(e.target.id.split("_",1)).disabled),"foreign-object"===e.target.className&&e.target.children[0]&&(i=e.target.children[0].disabled)),i&&o.pdfViewer.annotation&&o.pdfViewer.annotation.clearSelection(),!o.isShapeBasedAnnotationsEnabled()||i||!o.isAnnotationDrawn&&"DrawTool"===o.action||(o.diagramMouseUp(e),o.pdfViewer.annotation&&o.pdfViewer.annotation.onAnnotationMouseUp()),o.pdfViewer.selectedItems.formFields.length>0?t.isNullOrUndefined(o.pdfViewer.toolbar)||t.isNullOrUndefined(o.pdfViewer.toolbar.formDesignerToolbarModule)||t.Browser.isDevice||o.pdfViewer.toolbar.formDesignerToolbarModule.showHideDeleteIcon(!0):t.isNullOrUndefined(o.pdfViewer.toolbar)||t.isNullOrUndefined(o.pdfViewer.toolbar.formDesignerToolbarModule)||t.Browser.isDevice||o.pdfViewer.toolbar.formDesignerToolbarModule.showHideDeleteIcon(!1),o.isSelection=!1;var n=document.getElementById(o.pdfViewer.element.id+"_commantPanel");if(n&&"block"===n.style.display&&o.pdfViewer.selectedItems&&0!==o.pdfViewer.selectedItems.annotations.length){var r=document.getElementById(o.pdfViewer.element.id+"_accordionContainer"+o.pdfViewer.currentPageNumber);r&&r.ej2_instances[0].expandItem(!0);var a=document.getElementById(o.pdfViewer.selectedItems.annotations[0].annotName);a&&(a.classList.contains("e-pv-comments-border")||a.firstChild.click())}if(0===e.button&&!o.isClickedOnScrollBar(e,!1)){var s=e.target,l=e.clientX,d=e.clientY,A=o.getZoomFactor(),h=o.currentPageNumber;if(s){var p=s.id.split("_text_")[1]||s.id.split("_textLayer_")[1]||s.id.split("_annotationCanvas_")[1]||s.id.split("_pageDiv_")[1]||s.id.split("_freeText_")[1]||s.id.split("_")[1];if(h=parseInt(p,10),isNaN(h)&&o.pdfViewer.formFieldCollection){var c=o.pdfViewer.formFieldCollection.filter(function(e){return e.id===s.id||e.id===s.id.split("_")[0]});c.length>0&&(h=c[0].pageIndex)}}var g=o.getElement("_pageDiv_"+h);if(g){var u=g.getBoundingClientRect();l=(e.clientX-u.left)/A,d=(e.clientY-u.top)/A}s&&s.classList&&!s.classList.contains("e-pv-hyperlink")&&!s.classList.contains("e-pv-page-container")&&(o.pdfViewer.firePageClick(l,d,h+1),o.pdfViewer.formFieldsModule&&!o.pdfViewer.formDesignerModule&&o.signatureModule.removeFocus()),o.isTextMarkupAnnotationModule()&&!o.isToolbarInkClicked&&o.pdfViewer.annotationModule.textMarkupAnnotationModule.onTextMarkupAnnotationMouseUp(e),o.pdfViewer.formDesignerModule&&!o.pdfViewer.annotationModule&&o.pdfViewer.formDesignerModule.updateCanvas(h),o.viewerContainer.contains(e.target)&&e.target!==o.viewerContainer&&e.target!==o.pageContainer&&o.isPanMode&&(o.viewerContainer.style.cursor="move",o.viewerContainer.style.cursor="-webkit-grab",o.viewerContainer.style.cursor="-moz-grab",o.viewerContainer.style.cursor="grab")}o.isViewerMouseDown=!1}},this.detectTouchPad=function(e){o.isTouchPad=e.wheelDeltaY?e.wheelDeltaY===-3*e.deltaY||Math.abs(e.deltaY)<60:0===e.deltaMode},this.handleMacGestureStart=function(e){e.preventDefault(),e.stopPropagation(),o.macGestureStartScale=o.pdfViewer.magnification.zoomFactor},this.handleMacGestureChange=function(e){e.preventDefault(),e.stopPropagation();var t=e.clientX,i=e.clientY,n=Number((o.macGestureStartScale*e.scale).toFixed(2));o.isMacGestureActive||(o.isMacGestureActive=!0,o.pdfViewer.magnification.initiateMouseZoom(t,i,100*n),setTimeout(function(){o.isMacGestureActive=!1},50))},this.handleMacGestureEnd=function(e){e.preventDefault(),e.stopPropagation()},this.viewerContainerOnMouseWheel=function(e){if(o.isViewerMouseWheel=!0,o.getRerenderCanvasCreated()&&e.preventDefault(),e.ctrlKey){var t=25;(o.pdfViewer.magnificationModule?o.pdfViewer.magnification.zoomFactor:o.pdfViewer.zoomValue<1)&&(t=10),(o.pdfViewer.magnificationModule?o.pdfViewer.magnification.zoomFactor:o.pdfViewer.zoomValue>=2)&&(t=50),o.isTouchPad&&!o.isMacSafari&&(t/=o.zoomInterval),o.pdfViewer.magnificationModule&&(e.wheelDelta>0?o.pdfViewer.magnification.initiateMouseZoom(e.x,e.y,100*o.pdfViewer.magnification.zoomFactor+t):o.pdfViewer.magnification.initiateMouseZoom(e.x,e.y,100*o.pdfViewer.magnification.zoomFactor-t)),o.isTouchPad=!1}o.pdfViewer.magnificationModule&&(o.pdfViewer.magnificationModule.pageRerenderOnMouseWheel(),e.ctrlKey&&e.preventDefault(),o.pdfViewer.magnificationModule.fitPageScrollMouseWheel(e)),o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled&&o.isViewerMouseDown&&(e.target.classList.contains("e-pv-text")||o.pdfViewer.textSelectionModule.textSelectionOnMouseWheel(o.currentPageNumber-1))},this.onWindowKeyDown=function(e){var i=!!!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)&&e.metaKey;if(!o.isFreeTextAnnotationModule()||!o.pdfViewer.annotationModule||!0!==o.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus&&!0!==o.pdfViewer.annotationModule.inputElementModule.isInFocus){if(!e.ctrlKey||!i)switch(e.keyCode){case 46:var n=document.activeElement;"INPUT"===n.tagName||"TEXTAREA"===n.tagName||n.isContentEditable||o.DeleteKeyPressed(e);break;case 27:if(o.pdfViewer.toolbar){if(o.pdfViewer.toolbar.addInkAnnotation(),o.pdfViewer.toolbar.deSelectCommentAnnotation(),o.pdfViewer.toolbar.updateStampItems(),o.pdfViewer.toolbar.annotationToolbarModule&&(t.isBlazor()?o.pdfViewer.toolbar.annotationToolbarModule.deselectAllItemsInBlazor():o.pdfViewer.toolbar.annotationToolbarModule.deselectAllItems()),o.pdfViewer.isFormDesignerToolbarVisible&&document.getElementById("FormField_helper_html_element")){var r=document.getElementById("FormField_helper_html_element");r&&r.remove()}o.pdfViewer.tool="",o.focusViewerContainer()}o.pdfViewer.textSearchModule&&o.pdfViewer.textSearchModule.textSearchOpen&&o.pdfViewer.textSearchModule.showSearchBox(!1);break;case 13:if(o.pdfViewer.formDesignerModule&&"keydown"===e.type&&13===e.keyCode&&e.target&&(e.target.id||e.target.tabIndex)&&o.pdfViewer.formFieldCollections){var a=void 0;e.target;a=e.target.tabIndex&&!e.target.id?e.target.parentElement.id.split("_content_html_element")[0]:e.target.id.split("_")[0];for(p=0;p<o.pdfViewer.formFieldCollections.length;p++){var s=o.pdfViewer.formFieldCollections[parseInt(p.toString(),10)];a!==s.id||"SignatureField"!==s.type&&"InitialField"!==s.type||(o.pdfViewer.fireFormFieldClickEvent("formFieldClicked",o.pdfViewer.formFieldCollections[parseInt(p.toString(),10)]),e.preventDefault())}}break;case 32:if(o.pdfViewer.formDesignerModule&&"keydown"===e.type&&32===e.keyCode&&e.target&&e.target.id&&o.pdfViewer.formFields)for(p=0;p<o.pdfViewer.formFields.length;p++){c=o.pdfViewer.formFields[parseInt(p.toString(),10)];if(e.target.id.split("_")[0]===c.id&&"Checkbox"===c.formFieldAnnotationType){o.pdfViewer.formDesignerModule.setCheckBoxState(e),e.preventDefault();break}}break;case 9:if(e.target&&(e.target.id||e.target.tabIndex)&&o.pdfViewer.formFieldCollections&&("e-pv-formfield-input"===e.target.className||"foreign-object"===e.target.className||e.target.id===o.pdfViewer.element.id+"_viewerContainer")){var l,d=void 0,A=void 0,h=e.target;e.target.tabIndex&&!e.target.id?(h=e.target.parentElement,l=h.id.split("_content_html_element")[0]):(h=e.target,l=h.id.split("_input")[0]),o.pdfViewer.formDesignerModule&&(d=e.shiftKey&&"Tab"===e.key?(A=o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===l}))>0?o.pdfViewer.formFieldCollections[A-1]:o.pdfViewer.formFieldCollections[o.pdfViewer.formFieldCollections.length-1]:(A=o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===l}))+1<o.pdfViewer.formFieldCollections.length?o.pdfViewer.formFieldCollections[A+1]:o.pdfViewer.formFieldCollections[0],o.pdfViewer.focusFormField(d),e.preventDefault()),o.pdfViewer.formDesigner||"e-pdfviewer-formFields"!==h.className&&(d=e.shiftKey&&"Tab"===e.key?(A=o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===h.id}))>0?o.pdfViewer.formFieldCollections[A-1]:o.pdfViewer.formFieldCollections[o.pdfViewer.formFieldCollections.length-1]:(A=o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===h.id}))+1<o.pdfViewer.formFieldCollections.length?o.pdfViewer.formFieldCollections[A+1]:o.pdfViewer.formFieldCollections[0],o.pdfViewer.focusFormField(d),e.preventDefault())}if(e.target&&e.target.id&&o.pdfViewer.formFields)for(var p=0;p<o.pdfViewer.formFields.length;p++){var c=o.pdfViewer.formFields[parseInt(p.toString(),10)];if(e.target.id===c.id){var g={value:c.value,fontFamily:c.fontFamily,fontSize:c.fontSize,fontStyle:c.fontStyle,color:c.color,backgroundColor:c.backgroundColor,alignment:c.alignment,isReadonly:c.isReadonly,visibility:c.visibility,maxLength:c.maxLength,isRequired:c.isRequired,isPrint:c.isPrint,rotation:c.rotateAngle,tooltip:c.tooltip,options:c.options,isChecked:c.isChecked,isSelected:c.isSelected};o.pdfViewer.fireFocusOutFormField(g,c.pageIndex)}}break;case 40:"ArrowDown"===e.key&&(u=e.target).id===o.pdfViewer.element.id+"_zoomDropDown"&&(o.pdfViewer.magnificationModule.zoomIn(),u.focus());break;case 38:"ArrowUp"===e.key&&(u=e.target).id===o.pdfViewer.element.id+"_zoomDropDown"&&(o.pdfViewer.magnificationModule.zoomOut(),u.focus())}if(o.pdfViewer.pageOrganizer&&o.pdfViewer.pageOrganizer.isPageZoomPopupOpen){var u=e.target;switch(e.keyCode){case 39:u.id===o.pdfViewer.element.id+"_page_zoom_decrease"&&o.getElement("_page_zoom_slider").querySelector(".e-handle").focus();break;case 37:u.id===o.pdfViewer.element.id+"_page_zoom_increase"&&o.getElement("_page_zoom_slider").querySelector(".e-handle").focus()}}}},this.viewerContainerOnKeyDown=function(e){var i=!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i),n=!!i&&e.metaKey,r=o.pdfViewer.commandManager;if(0!==Object.keys(r).length&&o.fireCustomCommands(e),!o.pdfViewer.pageOrganizerModule||o.pdfViewer.pageOrganizerModule&&(!o.pdfViewer.pageOrganizerModule.isOrganizeWindowOpen||(e.ctrlKey||e.metaKey)&&e.altKey&&51===e.keyCode&&!e.shiftKey)){if(o.isFreeTextAnnotationModule()&&o.pdfViewer.annotationModule&&(!0===o.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus||!0===o.pdfViewer.annotationModule.inputElementModule.isInFocus))return;if(e.shiftKey&&!(e.target.classList.contains("e-pv-formfield-input")||e.target.classList.contains("e-textbox")||e.target.classList.contains("e-pdfviewer-formFields")||e.target.classList.contains("e-pv-formfield-textarea")||e.target.id===o.pdfViewer.element.id+"_search_input"))switch(e.keyCode){case 72:e.preventDefault(),o.pdfViewer.toolbarModule&&o.pdfViewer.enableToolbar&&-1!==o.pdfViewer.toolbarSettings.toolbarItems.indexOf("PanTool")&&(o.pdfViewer.interactionMode="Pan",o.focusViewerContainer());break;case 86:e.preventDefault(),o.pdfViewer.toolbarModule&&o.pdfViewer.enableToolbar&&-1!==o.pdfViewer.toolbarSettings.toolbarItems.indexOf("SelectionTool")&&(o.pdfViewer.interactionMode="TextSelection",o.focusViewerContainer())}if(e.ctrlKey||n){if(e.shiftKey&&!i||i&&!e.shiftKey)switch(e.keyCode){case 38:case 33:e.preventDefault(),1!==o.currentPageNumber&&o.updateScrollTop(0);break;case 40:case 34:e.preventDefault(),o.currentPageNumber!==o.pageCount&&o.updateScrollTop(o.pageCount-1)}switch(e.keyCode){case 79:o.pdfViewer.toolbarModule&&o.pdfViewer.enableToolbar&&-1!==o.pdfViewer.toolbarSettings.toolbarItems.indexOf("OpenOption")?o.pdfViewer.toolbarModule.openFileDialogBox(e):e.preventDefault();break;case 67:o.pdfViewer.textSelectionModule&&o.pdfViewer.enableTextSelection&&!o.isTextSelectionDisabled&&o.isTargetClassNameValid(e)&&(e.preventDefault(),o.pdfViewer.textSelectionModule.copyText()),(o.pdfViewer.selectedItems.annotations.length||o.pdfViewer.selectedItems.formFields.length)&&(o.pdfViewer.copy(),o.contextMenuModule.previousAction="Copy");break;case 70:o.pdfViewer.textSearchModule&&o.pdfViewer.enableTextSearch&&(e.preventDefault(),o.pdfViewer.toolbarModule.textSearchButtonHandler());break;case 80:o.pdfViewer.printModule&&o.pdfViewer.enablePrint&&(e.preventDefault(),o.pdfViewer.firePrintStart());break;case 83:e.preventDefault(),o.pdfViewer.download();break;case 90:o.pdfViewer.textSearchModule&&o.isTextSearchBoxOpen()||o.pdfViewer.annotationModule&&o.focusOnViewerContainer()&&(!t.isNullOrUndefined(o.pdfViewer.annotationModule)&&o.pdfViewer.toolbarModule.annotationToolbarModule.inkAnnotationSelected&&o.pdfViewer.annotationModule.setAnnotationMode("None"),o.pdfViewer.annotationModule.undo());break;case 88:(o.pdfViewer.selectedItems.annotations.length||o.pdfViewer.selectedItems.formFields.length)&&(o.pdfViewer.cut(),o.contextMenuModule.previousAction="Cut");break;case 89:o.pdfViewer.textSearchModule&&o.isTextSearchBoxOpen()||o.pdfViewer.annotationModule&&o.focusOnViewerContainer()&&o.pdfViewer.annotationModule.redo();break;case 86:if(o.pdfViewer.annotation&&o.pdfViewer.annotation.isShapeCopied||o.pdfViewer.formFields&&o.pdfViewer.formDesigner&&o.pdfViewer.formDesigner.isShapeCopied){var a=void 0,s=document.getElementById(o.pdfViewer.element.id+"_search_box");s&&(a="none"!==s.style.display),!a&&o.pdfViewer.formDesigner&&o.isTargetClassNameValid(e)&&"e-pv-properties-tooltip-prop-input e-input e-lib e-textbox e-control"!==e.target.className&&(o.pdfViewer.paste(),o.contextMenuModule.previousAction="Paste")}break;case 71:e.preventDefault();var l=document.querySelector(".e-control.e-numerictextbox.e-lib.e-input");o.pdfViewer.toolbarModule&&o.pdfViewer.enableToolbar&&null!=l&&"none"!==l.style.display&&(l.blur(),l.focus());break;case 48:if(e.altKey){e.preventDefault();var d=document.getElementById(o.pdfViewer.element.id+"_commantPanel");o.pageCount>0&&"none"===d.style.display?o.pdfViewer.annotationModule.showCommentsPanel():o.navigationPane.closeCommentPanelContainer()}break;case 49:e.altKey&&(e.preventDefault(),o.pageCount>0&&o.pdfViewer.enableThumbnail&&(e.preventDefault(),o.navigationPane.sideToolbarOnClick(e),o.focusViewerContainer()));break;case 50:e.altKey&&(e.preventDefault(),o.pageCount>0&&o.pdfViewer.enableBookmark&&(o.navigationPane.bookmarkButtonOnClick(e),o.focusViewerContainer()));break;case 51:e.altKey&&(e.preventDefault(),!t.isNullOrUndefined(o.pdfViewer.pageOrganizer)&&o.pageCount>0&&o.pdfViewer.enablePageOrganizer&&(o.pdfViewer.pageOrganizer.switchPageOrganizer(),o.focusViewerContainer()));break;case 65:if(e.shiftKey){e.preventDefault(),o.pageCount>0&&o.pdfViewer.enableAnnotationToolbar&&o.pdfViewer.toolbarModule&&o.pdfViewer.toolbarModule.annotationToolbarModule&&(o.pdfViewer.toolbarModule.initiateAnnotationMode(null,!0),o.focusViewerContainer());var A=document.getElementById(o.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.items[0].id);A&&A.focus()}}}else if(o.pdfViewer.annotationModule&&!o.pdfViewer.textSearchModule&&"Delete"===e.key){var h=document.activeElement;"e-pdfviewer-formFields"===e.target.className||"INPUT"===h.tagName||"TEXTAREA"===h.tagName||h.isContentEditable||o.DeleteKeyPressed(e)}o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.magnifyBehaviorKeyDown(e)}},this.viewerContainerOnMousemove=function(e){o.mouseX=e.clientX,o.mouseY=e.clientY;var n=!!document.documentMode,r=e.target;if("Drag"===o.action&&e.preventDefault(),o.isViewerMouseDown&&"Perimeter"!==o.action&&"Polygon"!==o.action&&"Line"!==o.action&&"DrawTool"!==o.action&&"Distance"!==o.action)if(o.pdfViewer.textSelectionModule&&o.pdfViewer.enableTextSelection&&!o.isTextSelectionDisabled&&!o.getPopupNoteVisibleStatus())if(n){var a=window.getSelection();a.type||a.isCollapsed||null===a.anchorNode||(o.pdfViewer.textSelectionModule.isTextSelection=!0)}else{"e-pdfviewer-formFields"!==e.target.className&&e.preventDefault(),o.mouseX=e.clientX,o.mouseY=e.clientY;var s=o.pdfViewer.annotationModule;s&&s.textMarkupAnnotationModule&&s.textMarkupAnnotationModule.isDropletClicked&&s.textMarkupAnnotationModule.isEnableTextMarkupResizer(s.textMarkupAnnotationModule.currentTextMarkupAddMode)?s.textMarkupAnnotationModule.textSelect(e.target,o.mouseX,o.mouseY):o.pdfViewer.textSelectionModule.textSelectionOnMouseMove(e.target,o.mouseX,o.mouseY)}else o.skipPreventDefault(r)&&e.preventDefault();if(o.isTextMarkupAnnotationModule()&&!o.getPopupNoteVisibleStatus()&&o.pdfViewer.annotationModule.textMarkupAnnotationModule.onTextMarkupAnnotationMouseMove(e),o.isPanMode&&o.panOnMouseMove(e),o.isShapeBasedAnnotationsEnabled()){var l=void 0,d=void 0;if(e.target&&(e.target.id.indexOf("_text")>-1||e.target.parentElement.classList.contains("foreign-object")||e.target.id.indexOf("_annotationCanvas")>-1||e.target.classList.contains("e-pv-hyperlink"))&&o.pdfViewer.annotation||e.target.classList.contains("e-pdfviewer-formFields")||e.target.classList.contains("e-pv-text-layer")){if(o.pdfViewer.annotation)d=o.pdfViewer.annotation.getEventPageNumber(e);else{var A=e.target.id.match(/\d+/);d=A?parseInt(A[0],10):o.pdfViewer.currentPageNumber-1}if(c=document.getElementById(o.pdfViewer.element.id+"_pageDiv_"+d)){var h=(g=c.getBoundingClientRect()).x?g.x:g.left,p=g.y?g.y:g.top;l=o.pdfViewer.annotationModule&&o.pdfViewer.annotationModule.stampAnnotationModule.currentStampAnnotation&&"Image"===o.pdfViewer.annotationModule.stampAnnotationModule.currentStampAnnotation.shapeAnnotationType?new i.Rect(h,p,g.width-10,g.height-10):new i.Rect(h+1,p+1,g.width-3,g.height-3)}}else if(!o.pdfViewer.annotationModule&&o.pdfViewer.formDesignerModule){d=o.pdfViewer.formDesignerModule.getEventPageNumber(e);var c=o.getAnnotationCanvas("_annotationCanvas_",d);if(c){var g=c.getBoundingClientRect(),h=g.x?g.x:g.left,u=g.y?g.y:g.top;l=new i.Rect(h+10,u+10,g.width-10,g.height-10)}}var f=o.pdfViewer.annotationModule?o.pdfViewer.annotationModule.stampAnnotationModule:null;if(!l||!l.containsPoint({x:o.mouseX,y:o.mouseY})||f&&f.isStampAnnotSelected||!t.isNullOrUndefined(o.pageNumberCanvas)&&d!==o.pageNumberCanvas){if(o.diagramMouseLeave(e),o.isAnnotationDrawn&&!o.pdfViewer.isFormDesignerToolbarVisible){if(o.eventArgs&&!o.eventArgs.source){var m=Object.entries(o.pdfViewer.nameTable);if(m.length>0){var w=m[m.length-1][1];o.eventArgs.source=w}}o.diagramMouseUp(e),o.isAnnotationAdded=!0}}else o.diagramMouseMove(e),o.annotationEvent=e;o.pdfViewer.enableStampAnnotations&&f&&f.isStampAnnotSelected&&(o.pdfViewer.tool="Stamp",o.tool=new ut(o.pdfViewer,o),o.isMouseDown=!0,f.isStampAnnotSelected=!1,f.isNewStampAnnot=!0),o.isSignatureAdded&&o.pdfViewer.enableHandwrittenSignature&&(o.pdfViewer.tool="Stamp",o.tool=new ut(o.pdfViewer,o),o.isMouseDown=!0,o.isSignatureAdded=!1,o.isNewSignatureAdded=!0)}},this.panOnMouseMove=function(e){var t=!1;if("Ink"!==o.action&&"Line"!==o.action&&"Perimeter"!==o.action&&"Polygon"!==o.action&&"DrawTool"!==o.action&&"Drag"!==o.action&&-1===o.action.indexOf("Rotate")&&-1===o.action.indexOf("Resize")||(t=!0),o.viewerContainer.contains(e.target)&&e.target!==o.viewerContainer&&e.target!==o.pageContainer&&!t)if(o.isViewerMouseDown){var i=o.dragX-e.pageX,n=o.dragY-e.pageY;o.viewerContainer.scrollTop=o.viewerContainer.scrollTop+n,o.viewerContainer.scrollLeft=o.viewerContainer.scrollLeft+i,o.viewerContainer.style.cursor="move",o.viewerContainer.style.cursor="-webkit-grabbing",o.viewerContainer.style.cursor="-moz-grabbing",o.viewerContainer.style.cursor="grabbing",o.dragX=e.pageX,o.dragY=e.pageY}else o.navigationPane.isNavigationPaneResized||(o.viewerContainer.style.cursor="move",o.viewerContainer.style.cursor="-webkit-grab",o.viewerContainer.style.cursor="-moz-grab",o.viewerContainer.style.cursor="grab");else o.navigationPane.isNavigationPaneResized||(o.viewerContainer.style.cursor="auto")},this.viewerContainerOnMouseLeave=function(e){o.isViewerMouseDown&&o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled&&o.pdfViewer.textSelectionModule.textSelectionOnMouseLeave(e),o.pdfViewer.textSelectionModule&&o.pdfViewer.textSelectionModule.isTextSelection&&e.preventDefault(),"Ink"===o.action&&(o.diagramMouseUp(e),o.isAnnotationAdded=!0)},this.viewerContainerOnMouseEnter=function(e){o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled&&o.pdfViewer.textSelectionModule.clear()},this.viewerContainerOnMouseOver=function(e){var t=!!document.documentMode;o.isViewerMouseDown&&(t||e.preventDefault())},this.viewerContainerOnClick=function(e){if("dblclick"===e.type){if(!o.pdfViewer.textSelectionModule||o.isTextSelectionDisabled||o.getCurrentTextMarkupAnnotation())o.getCurrentTextMarkupAnnotation();else if(e.target.classList.contains("e-pv-text")){if(o.isViewerContainerDoubleClick=!0,!o.getTextMarkupAnnotationMode()){var i=parseFloat(e.target.id.split("_")[2]);o.pdfViewer.fireTextSelectionStart(i+1)}o.pdfViewer.textSelectionModule.selectAWord(e.target,e.clientX,e.clientY,!1),"MouseUp"===o.pdfViewer.contextMenuSettings.contextMenuAction&&o.pdfViewer.textSelectionModule.calculateContextMenuPosition(e.clientY,e.clientX),o.getTextMarkupAnnotationMode()?o.isTextMarkupAnnotationModule()&&o.getTextMarkupAnnotationMode()&&o.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations(o.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode):(o.pdfViewer.textSelectionModule.maintainSelectionOnZoom(!0,!1),o.dblClickTimer=setTimeout(function(){o.applySelection()},100),o.pdfViewer.textSelectionModule.fireTextSelectEnd())}if(o.action&&("Perimeter"===o.action||"Polygon"===o.action)&&o.tool){o.eventArgs.position=o.currentPosition,o.getMouseEventArgs(o.currentPosition,o.eventArgs,e,o.eventArgs.source);o.isMetaKey(e);var n={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey};o.eventArgs.info=n,o.eventArgs.clickCount=e.detail,o.eventArgs.isTouchMode=!1,o.tool.mouseUp(o.eventArgs,!0)}if((o.pdfViewer.selectedItems||o.pdfViewer.annotation&&o.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)&&!o.pdfViewer.annotationSettings.isLock){var r=o.pdfViewer.selectedItems.annotations[0];if(0===o.pdfViewer.selectedItems.annotations.length||r.annotationSettings.isLock||r.isLock){var a=o.pdfViewer.annotation,s=o.pdfViewer.annotationModule;if(a&&s.textMarkupAnnotationModule&&s.textMarkupAnnotationModule.currentTextMarkupAnnotation){var l=o.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation;o.pdfViewer.annotationModule.annotationSelect(l.annotName,o.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage,l,null,!0);var d=document.getElementById(o.pdfViewer.element.id+"_accordionContainer"+o.currentPageNumber);d&&d.ej2_instances[0].expandItem(!0);var A=document.getElementById(l.annotName);A&&A.firstChild.click()}}else if(o.pdfViewer.annotationModule&&!r.formFieldAnnotationType&&(o.pdfViewer.annotationModule.annotationSelect(r.annotName,r.pageIndex,r,null,!0),!1===o.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus))if(!0!==o.isFreeTextAnnotation(o.pdfViewer.selectedItems.annotations)||o.pdfViewer.selectedItems.annotations[0].isLock)if(!0===o.pdfViewer.selectedItems.annotations[0].enableShapeLabel){var h={};h.x=o.pdfViewer.selectedItems.annotations[0].bounds.x,h.y=o.pdfViewer.selectedItems.annotations[0].bounds.y,o.pdfViewer.annotation.inputElementModule.editLabel(h,o.pdfViewer.selectedItems.annotations[0])}else{(d=document.getElementById(o.pdfViewer.element.id+"_accordionContainer"+o.pdfViewer.currentPageNumber))&&d.ej2_instances[0].expandItem(!0),o.pdfViewer.toolbarModule&&o.pdfViewer.isFormDesignerToolbarVisible&&o.pdfViewer.enableAnnotationToolbar&&!o.pdfViewer.isAnnotationToolbarVisible&&!t.isNullOrUndefined(o.pdfViewer.toolbarModule.annotationToolbarModule)&&o.pdfViewer.toolbarModule.annotationToolbarModule.showAnnotationToolbar(o.pdfViewer.toolbarModule.annotationItem);var p=document.getElementById(o.pdfViewer.selectedItems.annotations[0].annotName);p&&(p.classList.contains("e-pv-comments-border")||p.firstChild.click())}else(h={}).x=o.pdfViewer.selectedItems.annotations[0].bounds.x,h.y=o.pdfViewer.selectedItems.annotations[0].bounds.y,o.pdfViewer.annotation.freeTextAnnotationModule.addInuptElemet(h,o.pdfViewer.selectedItems.annotations[0])}if(o.pdfViewer.designerMode&&o.pdfViewer.selectedItems.formFields.length>0){var c={name:"formFieldDoubleClick",field:o.pdfViewer.selectedItems.formFields[0],cancel:!1};o.pdfViewer.fireFormFieldDoubleClickEvent(c),c.cancel||o.pdfViewer.formDesigner.createPropertiesWindow()}}else 3===e.detail&&(o.isViewerContainerDoubleClick&&(clearTimeout(o.dblClickTimer),o.isViewerContainerDoubleClick=!1),!o.pdfViewer.textSelectionModule||o.isTextSelectionDisabled||o.getTextMarkupAnnotationMode()||(o.pdfViewer.textSelectionModule.selectEntireLine(e),o.pdfViewer.textSelectionModule.maintainSelectionOnZoom(!0,!1),o.pdfViewer.textSelectionModule.fireTextSelectEnd(),o.applySelection()))},this.viewerContainerOnDragStart=function(e){!!document.documentMode||e.preventDefault()},this.viewerContainerOnContextMenuClick=function(e){o.isViewerMouseDown=!1},this.onWindowMouseUp=function(e){o.isFreeTextContextMenu=!1,o.isNewStamp=!1,o.signatureAdded=!1;var t=o.pdfViewer.annotationModule;if(t&&t.textMarkupAnnotationModule&&t.textMarkupAnnotationModule.isEnableTextMarkupResizer(t.textMarkupAnnotationModule.currentTextMarkupAddMode)){var i=t.textMarkupAnnotationModule;i.isLeftDropletClicked=!1,i.isDropletClicked=!1,i.isRightDropletClicked=!1,i.currentTextMarkupAnnotation||null!==window.getSelection().anchorNode?i.currentTextMarkupAnnotation||""!==i.currentTextMarkupAddMode||(i.isTextMarkupAnnotationMode=!1):i.showHideDropletDiv(!0)}if(!o.getPopupNoteVisibleStatus()){if(0===e.button){if(o.isNewFreeTextAnnotation())if(!o.pdfViewer.textSelectionModule||o.isTextSelectionDisabled||o.getTextMarkupAnnotationMode()){if(o.getTextMarkupAnnotationMode()){var n=o.pdfViewer.element,r=e.target;n&&r&&n.id.split("_")[0]===r.id.split("_")[0]&&"commenttextbox"!==r.id.split("_")[1]&&o.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations(o.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode)}}else{1!==e.detail||o.viewerContainer.contains(e.target)||o.contextMenuModule.contextMenuElement.contains(e.target)||null!==window.getSelection().anchorNode&&o.pdfViewer.textSelectionModule.textSelectionOnMouseup(e);var a=e.target;o.viewerContainer.contains(e.target)&&"e-pdfviewer-formFields"!==a.className&&"e-pv-formfield-input"!==a.className&&"e-pv-formfield-textarea"!==a.className&&(o.isClickedOnScrollBar(e,!0)||o.isScrollbarMouseDown?null!==window.getSelection().anchorNode&&o.pdfViewer.textSelectionModule.applySpanForSelection():o.pdfViewer.textSelectionModule.textSelectionOnMouseup(e))}}else 2===e.button&&o.viewerContainer.contains(e.target)&&o.skipPreventDefault(e.target)&&o.checkIsNormalText()&&window.getSelection().removeAllRanges();return!o.isViewerMouseDown||(o.isViewerMouseDown=!1,o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled&&(o.pdfViewer.textSelectionModule.clear(),o.pdfViewer.textSelectionModule.selectionStartPage=null),e.preventDefault(),e.stopPropagation(),!1)}},this.onWindowTouchEnd=function(e){o.signatureAdded=!1,o.pdfViewer.element.contains(e.target)||o.contextMenuModule.contextMenuElement.contains(e.target)||o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled&&o.pdfViewer.textSelectionModule.clearTextSelection()},this.viewerContainerOnTouchStart=function(e){var i=e.touches;o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.setTouchPoints(i[0].clientX,i[0].clientY);var n=e.target;1===i.length&&!n.classList.contains("e-pv-hyperlink")&&o.skipPreventDefault(n)&&o.preventTouchEvent(e),1===e.touches.length&&o.isTextMarkupAnnotationModule()&&!o.getPopupNoteVisibleStatus()&&(o.isToolbarInkClicked||o.pdfViewer.annotationModule.textMarkupAnnotationModule.onTextMarkupAnnotationTouchEnd(e)),o.touchClientX=i[0].clientX,o.touchClientY=i[0].clientY,o.scrollY=i[0].clientY,o.previousTime=(new Date).getTime(),o.diagramMouseDown(e),1!==i.length||e.target.classList.contains("e-pv-touch-select-drop")||e.target.classList.contains("e-pv-touch-ellipse")||(t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&o.pageCount>0&&!o.isThumb&&!e.target.classList.contains("e-pv-hyperlink")&&o.handleTaps(i,e),t.isBlazor()&&t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode||o.handleTextBoxTaps(i),o.isDesignerMode(n)?(o.contextMenuModule.close(),o.isLongTouchPropagated||(o.longTouchTimer=setTimeout(function(){o.isMoving||(o.isTouchDesignerMode=!0,o.contextMenuModule.open(o.touchClientY,o.touchClientX,o.viewerContainer))},1e3)),o.isLongTouchPropagated=!0,o.isMoving=!1):o.pdfViewer.textSelectionModule&&!o.isTextSelectionDisabled?(o.pdfViewer.textSelectionModule.clearTextSelection(),o.contextMenuModule.close(),o.isLongTouchPropagated||(o.longTouchTimer=setTimeout(function(){o.viewerContainerOnLongTouch(e)},1e3)),o.isLongTouchPropagated=!0):o.contextMenuModule.close());var r=o.pdfViewer.toolbarModule?o.pdfViewer.toolbarModule.annotationToolbarModule:"null";!n.classList.contains("e-pv-text")||r&&r.textMarkupToolbarElement&&0!==r.textMarkupToolbarElement.children.length||n.classList.add("e-pv-text-selection-none"),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&n.classList.remove("e-enable-text-selection"),"Per
10imeter"!==o.action&&"Distance"!==o.action&&"Line"!==o.action&&"Polygon"!==o.action&&"DrawTool"!==o.action&&"Drag"!==o.action&&-1===o.action.indexOf("Rotate")&&-1===o.action.indexOf("Resize")||e.preventDefault()},this.viewerContainerOnLongTouch=function(e){if(o.touchClientX=e.touches[0].clientX,o.touchClientY=e.touches[0].clientY,e.preventDefault(),o.pdfViewer.textSelectionModule){var i=e.target;i.classList.contains("e-pv-text-selection-none")&&i.classList.contains("e-pv-text")&&(i.classList.remove("e-pv-text-selection-none"),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&i.classList.add("e-enable-text-selection")),o.pdfViewer.textSelectionModule.initiateTouchSelection(e,o.touchClientX,o.touchClientY),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&(clearTimeout(o.singleTapTimer),o.tapCount=0)}},this.viewerContainerOnPointerDown=function(e){"touch"===e.pointerType&&++o.pointerCount<=2&&(e.preventDefault(),o.pointersForTouch.push(e),2===o.pointerCount&&(o.pointerCount=0),o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.setTouchPoints(e.clientX,e.clientY))},this.viewerContainerOnTouchMove=function(e){"Drag"===o.action&&(o.isMoving=!0),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&(clearTimeout(o.singleTapTimer),o.singleTapTimer=null,o.tapCount=0),o.preventTouchEvent(e),o.isToolbarInkClicked&&e.preventDefault();var n=e.touches;o.pdfViewer.magnificationModule&&(o.isTouchScrolled=!0,n.length>1&&o.pageCount>0?(t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&(o.isTouchScrolled=!1),o.pdfViewer.enablePinchZoom&&o.pdfViewer.magnificationModule.initiatePinchMove(n[0].clientX,n[0].clientY,n[1].clientX,n[1].clientY)):1===n.length&&o.getPagesPinchZoomed()&&(t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&(o.isTouchScrolled=!1),o.pdfViewer.magnificationModule.pinchMoveScroll())),o.mouseX=n[0].clientX,o.mouseY=n[0].clientY;var r;if(e.target&&(e.target.id.indexOf("_text")>-1||e.target.id.indexOf("_annotationCanvas")>-1||e.target.classList.contains("e-pv-hyperlink"))&&o.pdfViewer.annotation){var a=o.pdfViewer.annotation.getEventPageNumber(e),s=o.getAnnotationCanvas("_annotationCanvas_",a);if(s){var l=s.getBoundingClientRect(),d=l.x?l.x:l.left,A=l.y?l.y:l.top;r=new i.Rect(d+10,A+10,l.width-10,l.height-10)}}r&&r.containsPoint({x:o.mouseX,y:o.mouseY})||"Ink"===o.action?(o.diagramMouseMove(e),o.annotationEvent=e):(o.diagramMouseLeave(e),o.isAnnotationDrawn&&(o.diagramMouseUp(e),o.isAnnotationAdded=!0)),n=null},this.viewerContainerOnPointerMove=function(e){if("touch"===e.pointerType&&o.pageCount>0&&(e.preventDefault(),2===o.pointersForTouch.length)){for(var t=0;t<o.pointersForTouch.length;t++)if(e.pointerId===o.pointersForTouch[parseInt(t.toString(),10)].pointerId){o.pointersForTouch[parseInt(t.toString(),10)]=e;break}o.pdfViewer.magnificationModule&&o.pdfViewer.enablePinchZoom&&o.pdfViewer.magnificationModule.initiatePinchMove(o.pointersForTouch[0].clientX,o.pointersForTouch[0].clientY,o.pointersForTouch[1].clientX,o.pointersForTouch[1].clientY)}},this.viewerContainerOnTouchEnd=function(e){if(o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.pinchMoveEnd(),e.cancelable&&!e.target.classList.contains("e-pv-touch-ellipse")&&o.pdfViewer.textSelectionModule&&o.pdfViewer.textSelectionModule.isTextSelection&&e.preventDefault(),o.isLongTouchPropagated=!1,clearInterval(o.longTouchTimer),o.longTouchTimer=null,t.Browser.isDevice&&!o.isDeviceiOS&&!o.pdfViewer.enableDesktopMode&&o.isTouchScrolled){o.currentTime=(new Date).getTime();var i=o.currentTime-o.previousTime,n=o.scrollY-e.changedTouches[0].pageY,r=n/i;if(Math.abs(r)>1.5){var a=n+i*r;a>0&&(o.viewerContainer.scrollTop+=a,o.updateMobileScrollerPosition())}}o.diagramMouseUp(e),0!==o.pdfViewer.selectedItems.annotations.length?o.disableTextSelectionMode():o.pdfViewer.textSelectionModule&&o.pdfViewer.textSelectionModule.enableTextSelectionMode(),o.renderStampAnnotation(e),t.Browser.isDevice||(o.isgetFocused=!0,o.focusViewerContainer())},this.viewerContainerOnPointerEnd=function(e){"touch"===e.pointerType&&(e.preventDefault(),o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.pinchMoveEnd(),o.pointersForTouch=[],o.pointerCount=0)},this.viewerContainerOnScroll=function(e){var i=null,n=(i=o).pdfViewer.allowServerDataBinding;i.pdfViewer.enableServerDataBinding(!1);var r=0,a=0;if(e.touches&&t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode){var s=(o.viewerContainer.scrollHeight-o.viewerContainer.clientHeight)/(o.viewerContainer.clientHeight-o.toolbarHeight);if(o.isThumb){o.ispageMoved=!0,e.preventDefault(),o.isScrollerMoving=!0,o.mobilePageNoContainer.style.display="block",r=e.touches[0].pageX-o.scrollX,a=e.touches[0].pageY-o.viewerContainer.offsetTop,t.isNullOrUndefined(o.isScrollerMovingTimer)&&(o.isScrollerMovingTimer=setTimeout(function(){o.isScrollerMoving=!1,o.pageViewScrollChanged(o.currentPageNumber)},300)),Math.abs(o.viewerContainer.scrollTop-a*s)>10&&(clearTimeout(o.isScrollerMovingTimer),o.isScrollerMovingTimer=null),o.viewerContainer.scrollTop=a*s;var l=e.touches[0].pageY,d=o.pdfViewer.toolbarModule?0:50;0!==o.viewerContainer.scrollTop&&l<=o.viewerContainer.clientHeight-d&&(o.mobileScrollerContainer.style.top=l+"px")}else"e-pv-touch-ellipse"!==e.touches[0].target.className&&(o.isWebkitMobile&&t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode||(o.mobilePageNoContainer.style.display="none",a=o.touchClientY-e.touches[0].pageY,r=o.touchClientX-e.touches[0].pageX,o.viewerContainer.scrollTop=o.viewerContainer.scrollTop+a,o.viewerContainer.scrollLeft=o.viewerContainer.scrollLeft+r),o.updateMobileScrollerPosition(),o.touchClientY=e.touches[0].pageY,o.touchClientX=e.touches[0].pageX)}o.scrollHoldTimer&&clearTimeout(o.scrollHoldTimer);var A=o.currentPageNumber;o.scrollHoldTimer=null,o.contextMenuModule.close();for(var h=o.viewerContainer.scrollTop,p=0;p<o.pageCount;p++)if(null!=o.pageSize[parseInt(p.toString(),10)]){var c=o.getPageHeight(p);if(o.pageStopValue=c<150?75:c>=150&&c<300?125:c>=300&&c<500?200:300,h+o.pageStopValue<=o.getPageTop(p)+c){o.currentPageNumber=p+1,o.pdfViewer.currentPageNumber=p+1;break}}o.pdfViewer.magnificationModule&&"fitToPage"===o.pdfViewer.magnificationModule.fitType&&o.currentPageNumber>0&&o.pageSize[o.currentPageNumber-1]&&(o.isPanMode||t.Browser.isDevice||!o.pdfViewer.enableDesktopMode||(o.viewerContainer.scrollTop=o.pageSize[o.currentPageNumber-1].top*o.getZoomFactor())),o.renderElementsVirtualScroll(o.currentPageNumber),o.pdfViewer.toolbarModule&&(t.isBlazor()||o.pdfViewer.toolbarModule.updateCurrentPage(o.currentPageNumber),t.isBlazor()||t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode||o.pdfViewer.toolbarModule.updateNavigationButtons()),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&o.pageCount>0&&(o.mobileSpanContainer.innerHTML=o.currentPageNumber.toString(),o.mobilecurrentPageContainer.innerHTML=o.currentPageNumber.toString()),A!==o.currentPageNumber&&(!i.pdfViewer.thumbnailViewModule||t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode||(i.pdfViewer.thumbnailViewModule.gotoThumbnailImage(i.currentPageNumber-1),i.pdfViewer.thumbnailViewModule.isThumbnailClicked=!1),o.pdfViewer.firePageChange(A)),o.pdfViewer.magnificationModule&&(o.isPanMode||t.Browser.isDevice||!o.pdfViewer.enableDesktopMode||o.pdfViewer.magnificationModule.updatePagesForFitPage(o.currentPageNumber-1));var g=o.getElement("_pageDiv_"+(o.currentPageNumber-1));if(g&&(g.style.visibility="visible"),o.isViewerMouseDown||!o.isViewerMouseDown&&!o.getPinchZoomed()&&
vendor: 104,601 bytes, line 10
10!o.getPinchScrolled()&&!o.getPagesPinchZoomed()||o.isViewerMouseWheel)if(o.getRerenderCanvasCreated()&&!o.isPanMode&&o.pdfViewer.magnificationModule.clearIntervalTimer(),o.clientSideRendering?o.getLinkInformation(o.currentPageNumber):o.getStoredData(o.currentPageNumber))o.isDataExits=!0,o.initiatePageViewScrollChanged(),o.isDataExits=!1;else{var u=o.pdfViewer.scrollSettings.delayPageRequestTimeOnScroll?o.pdfViewer.scrollSettings.delayPageRequestTimeOnScroll:100;o.scrollHoldTimer=setTimeout(function(){o.initiatePageViewScrollChanged()},u)}o.pdfViewer.annotation&&o.navigationPane.commentPanelContainer&&o.pdfViewer.annotation.stickyNotesAnnotationModule.updateCommentPanelScrollTop(o.currentPageNumber),t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&e.touches&&"e-pv-touch-ellipse"!==e.touches[0].target.className&&setTimeout(function(){o.updateMobileScrollerPosition()},500),i.pdfViewer.enableServerDataBinding(n,!0)},this.pdfViewer=n,this.navigationPane=new Kt(this.pdfViewer,this),this.textLayer=new Ti(this.pdfViewer,this),this.accessibilityTags=new ao(this.pdfViewer,this),this.signatureModule=new Ni(this.pdfViewer,this)}return e.prototype.initializeComponent=function(){var e=document.getElementById(this.pdfViewer.element.id);if(e){this.blazorUIAdaptor=t.isBlazor()?new Ei(this.pdfViewer,this):null,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.element.classList.add("e-pv-mobile-view");var i=void 0;this.viewerMainContainer=t.isBlazor()?e.querySelector(".e-pv-viewer-main-container"):t.createElement("div",{id:this.pdfViewer.element.id+"_viewerMainContainer",className:"e-pv-viewer-main-container"}),this.viewerContainer=t.isBlazor()?e.querySelector(".e-pv-viewer-container"):t.createElement("div",{id:this.pdfViewer.element.id+"_viewerContainer",className:"e-pv-viewer-container"}),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.createMobilePageNumberContainer(),this.viewerContainer.tabIndex=-1,this.pdfViewer.enableRtl&&(this.viewerContainer.style.direction="rtl"),e.style.touchAction="pan-x pan-y",this.setMaximumHeight(e),this.mainContainer=t.isBlazor()?e.querySelector(".e-pv-main-container"):t.createElement("div",{id:this.pdfViewer.element.id+"_mainContainer",className:"e-pv-main-container"}),this.mainContainer.appendChild(this.viewerMainContainer),e.appendChild(this.mainContainer),this.applyViewerHeight(this.mainContainer),this.pdfViewer.toolbarModule?(this.navigationPane.initializeNavigationPane(),i=this.pdfViewer.toolbarModule.intializeToolbar("100%")):t.isBlazor()&&(this.navigationPane.initializeNavigationPane(),i=this.pdfViewer.element.querySelector(".e-pv-toolbar"),this.pdfViewer.enableToolbar||(this.toolbarHeight=0,i.style.display="none"),!this.pdfViewer.enableNavigationToolbar&&(t.Browser.isDevice&&this.pdfViewer.enableDesktopMode||!t.Browser.isDevice)&&(this.navigationPane.sideBarToolbar.style.display="none",this.navigationPane.sideBarToolbarSplitter.style.display="none",(this.navigationPane.isBookmarkOpen||this.navigationPane.isThumbnailOpen)&&this.navigationPane.updateViewerContainerOnClose())),this.viewerContainer.style.height=i?this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,56):this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,0);var n=this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth;t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(n=n-(this.navigationPane.sideBarToolbar?this.navigationPane.getViewerContainerLeft():0)-(this.navigationPane.commentPanelContainer?this.navigationPane.getViewerContainerRight():0)),this.viewerContainer.style.width=n+"px",this.viewerMainContainer.appendChild(this.viewerContainer),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.mobileScrollerContainer.style.left=n-parseFloat(this.mobileScrollerContainer.style.width)+"px",this.mobilePageNoContainer.style.left=n/2-parseFloat(this.mobilePageNoContainer.style.width)/2+"px",this.mobilePageNoContainer.style.top=this.pdfViewer.element.clientHeight/2+"px",this.mobilePageNoContainer.style.display="none",this.mobilePageNoContainer.appendChild(this.mobilecurrentPageContainer),this.mobilePageNoContainer.appendChild(this.mobilenumberContainer),this.mobilePageNoContainer.appendChild(this.mobiletotalPageContainer),this.viewerContainer.appendChild(this.mobilePageNoContainer),this.viewerMainContainer.appendChild(this.mobileScrollerContainer),this.mobileScrollerContainer.appendChild(this.mobileSpanContainer),this.pdfViewer.isAnnotationToolbarVisible&&this.pdfViewer.toolbarModule&&this.pdfViewer.toolbar.showAnnotationToolbar(!0)),this.pageContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_pageViewContainer",className:"e-pv-page-container",attrs:{role:"document"}}),this.pdfViewer.enableRtl&&(this.pageContainer.style.direction="ltr"),this.viewerContainer.appendChild(this.pageContainer),this.pageContainer.style.width=this.viewerContainer.clientWidth+"px",i&&this.pdfViewer.thumbnailViewModule&&(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)&&this.pdfViewer.thumbnailViewModule.createThumbnailContainer(),this.createPrintPopup(),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.createGoToPagePopup();var o=t.createElement("div",{id:this.pdfViewer.element.id+"_loadingIndicator"});if(this.viewerContainer.appendChild(o),oe({target:o,cssClass:"e-spin-center"}),this.setLoaderProperties(o),t.isBlazor()){this.contextMenuModule=new Wt(this.pdfViewer,this);var r=document.getElementsByClassName(this.pdfViewer.element.id+"_spinner");r&&r[0]&&!r[0].classList.contains("e-spin-hide")&&(r[0].classList.remove("e-spin-show"),r[0].classList.add("e-spin-hide"))}else this.contextMenuModule=new ki(this.pdfViewer,this);this.contextMenuModule.createContextMenu(),this.createFileInputElement(),this.wireEvents(),!this.pdfViewer.textSearchModule||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||this.pdfViewer.textSearchModule.createTextSearchBox(),this.pdfViewer.documentPath&&(this.pdfViewer.enableHtmlSanitizer&&(this.pdfViewer.documentPath=t.SanitizeHtmlHelper.sanitize(this.pdfViewer.documentPath)),t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("LoadDocumentFromClient",this.pdfViewer.documentPath):this.pdfViewer.load(this.pdfViewer.documentPath,null)),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.initializeCollection()}t.Browser.isDevice&&this.pdfViewer.enableDesktopMode&&this.pdfViewer.toolbarModule&&(this.pdfViewer.interactionMode="Pan")},e.prototype.createMobilePageNumberContainer=function(){this.mobilePageNoContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_mobilepagenoContainer",className:"e-pv-mobilepagenoscroll-container"}),this.mobilecurrentPageContainer=t.createElement("span",{id:this.pdfViewer.element.id+"_mobilecurrentpageContainer",className:"e-pv-mobilecurrentpage-container"}),this.mobilenumberContainer=t.createElement("span",{id:this.pdfViewer.element.id+"_mobiledashedlineContainer",className:"e-pv-mobiledashedline-container"}),this.mobiletotalPageContainer=t.createElement("span",{id:this.pdfViewer.element.id+"_mobiletotalpageContainer",className:"e-pv-mobiletotalpage-container"}),this.mobileScrollerContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_mobilescrollContainer",className:"e-pv-mobilescroll-container"}),this.mobileSpanContainer=t.createElement("span",{id:this.pdfViewer.element.id+"_mobilespanContainer",className:"e-pv-mobilespanscroll-container"}),this.mobileSpanContainer.innerHTML="1",this.mobilecurrentPageContainer.innerHTML="1",this.mobilenumberContainer.innerHTML="&#x2015;&#x2015;&#x2015;&#x2015;&#x2015;",this.mobileScrollerContainer.style.cssFloat="right",this.mobileScrollerContainer.style.width="40px",this.mobileScrollerContainer.style.height="32px",this.mobileScrollerContainer.style.zIndex="100",this.mobilePageNoContainer.style.width="120px",this.mobilePageNoContainer.style.height="100px",this.mobilePageNoContainer.style.zIndex="100",this.mobilePageNoContainer.style.position="fixed",this.mobileScrollerContainer.addEventListener("touchstart",this.mobileScrollContainerDown.bind(this)),this.mobileScrollerContainer.addEventListener("touchend",this.mobileScrollContainerEnd.bind(this)),this.mobileScrollerContainer.style.display="none"},e.prototype.isValidPDF=function(e){for(var t=[37,80,68,70,45],i=Math.min(e.length-t.length,1024),n=0;n<=i;n++){for(var o=!0,r=0;r<t.length;r++)if(e[parseInt(n.toString(),10)+parseInt(r.toString(),10)]!==t[parseInt(r.toString(),10)]){o=!1;break}if(o)return!0}return!1},e.prototype.addTask=function(e,i,n){var o=this;if(t.isNullOrUndefined(this.pdfViewer.pdfRenderer.loadedDocument)||(void 0!==e.hideEmptyDigitalSignatureFields&&this.pdfViewer.pdfRenderer.formFieldsBase&&(this.pdfViewer.pdfRenderer.formFieldsBase.hideEmptyDigitalSignatureFields=e.hideEmptyDigitalSignatureFields),void 0!==e.showDigitalSignatureAppearance&&this.pdfViewer.pdfRenderer.formFieldsBase&&(this.pdfViewer.pdfRenderer.formFieldsBase.showDigitalSignatureAppearance=e.showDigitalSignatureAppearance)),this.isValidPDF(i)){var r=void 0;try{r=new d.PdfDocument(i,this.passwordData)}catch(e){return this.renderPasswordPopup(i,null,this.isImportDoc),!0}var a=r.form,s=!1;if(!t.isNullOrUndefined(a)&&!t.isNullOrUndefined(a._fields)){for(var l=0;l<a.count;l++)if(a.fieldAt(l)instanceof d.PdfSignatureField){var A=a.fieldAt(l);A.isSigned&&this.pdfViewer.pdfRenderer.formFieldsBase&&(this.pdfViewer.pdfRenderer.formFieldsBase.mIsDigitalSignaturePresent=!0),this.pdfViewer.pdfRenderer.formFieldsBase&&this.pdfViewer.pdfRenderer.formFieldsBase.mIsDigitalSignaturePresent&&this.pdfViewer.pdfRenderer.formFieldsBase.showDigitalSignatureAppearance&&(A.flatten=!0,s=!0)}s&&(this.pdfViewer.pdfRenderer.digitialByteArray=r.save())}r.destroy()}n?!t.isNullOrUndefined(i)&&i.length>0&&this.pdfViewerRunner.addTask({uploadedFile:i,message:"LoadPageCollection",password:o.passwordData,pageIndex:1,isZoomMode:!1,skipOnReload:this.skipOnReload},Et.High):!t.isNullOrUndefined(this.pdfViewer.fileByteArray)&&this.pdfViewer.fileByteArray.length>0&&(this.pdfViewer.pdfRenderer.digitialByteArray?this.pdfViewerRunner.addTask({uploadedFile:this.pdfViewer.pdfRenderer.digitialByteArray,message:"LoadPageCollection",password:this.passwordData,pageIndex:1,isZoomMode:!1,skipOnReload:this.skipOnReload},Et.High):this.pdfViewerRunner.addTask({uploadedFile:this.pdfViewer.fileByteArray,message:"LoadPageCollection",password:this.passwordData,pageIndex:1,isZoomMode:!1,skipOnReload:this.skipOnReload},Et.High)),this.pdfViewerRunner.onMessage("PageLoaded,LoadedStampForFormFields,LoadedStamp",function(e){"PageLoaded"===e.data.message&&o.clientSideRendering?o.requestSuccessPdfium(e.data):"LoadedStampForFormFields"===e.data.message?o.initialPagesRenderedForSign(e.data):"LoadedStamp"===e.data.message&&o.pdfViewer.pdfRendererModule.renderer.initialPagesRendered(e.data)})},e.prototype.initiatePageRender=function(i,n,o){var r=this;if(void 0===o&&(o=!0),this.isPasswordProtected=!t.isNullOrUndefined(n)&&""!==n,this.clientSideRendering&&this.pdfViewer.unload(),this.loadedData=i,this.documentId=this.createGUID(),e.sessionStorageManager.documentId=this.documentId,this.viewerContainer&&(this.viewerContainer.scrollTop=0),this.showLoadingIndicator(!0),this.hashId=" ",this.isFileName=!1,this.saveDocumentInfo(),"Pan"===this.pdfViewer.interactionMode&&this.initiatePanning(),i instanceof Uint8Array){this.pdfViewer.fileByteArray=i,this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.uploadedDocumentName&&this.setFileName(),this.clientSideRendering&&null===this.pdfViewer.fileName&&"string"==typeof this.loadedData&&this.setDocumentName(this.loadedData),this.pdfViewer.downloadFileName?this.downloadFileName=this.pdfViewer.downloadFileName:this.downloadFileName=this.pdfViewer.fileName;var a=this.constructJsonObject(i,n,!1);this.addTask(a,i,!1)||this.createAjaxRequest(a,i,n)}else this.getPdfByteArray(i).then(function(e){var t=!1,a=!0,s=!1;"string"==typeof i&&(i.startsWith("http://")||i.startsWith("https://"))&&(t=!0),"string"==typeof i&&(i.includes("pdf;base64,")||i.startsWith("blob:"))&&(s=!0);var l=!1;if("string"==typeof r.loadedData&&(l=r.loadedData.includes("pdf;base64,")),(t||s)&&r.clientSideRendering)r.pdfViewer.fileByteArray=e,r.pdfViewer.uploadedFileByteArray=e,i=e;else if(t||i.includes("pdf;base64,")||!r.clientSideRendering)i=r.checkDocumentData(r.loadedData,o);else{var d="URL"===r.identifyDataType(i);(a=r.isValidPDFBase64(i)||d)?(i=r.convertBase64(e),r.pdfViewer.fileByteArray=i,s=!0):r.invalidFilePopup()}if(a){(r.pdfViewer.toolbarModule&&r.pdfViewer.toolbarModule.uploadedDocumentName||s||!s&&!t&&!i.includes("pdf;base64,"))&&r.setFileName(),t&&r.clientSideRendering&&null===r.pdfViewer.fileName&&r.setDocumentName(r.loadedData),r.pdfViewer.downloadFileName?r.downloadFileName=r.pdfViewer.downloadFileName:r.downloadFileName=r.pdfViewer.fileName;var A=r.constructJsonObject(i,n,l),h=r.clientSideRendering&&r.addTask(A,i,!1);r.clientSideRendering&&h||r.createAjaxRequest(A,i,n)}})},e.prototype.requestSuccessPdfium=function(i,n,o){if(i&&void 0!==i.pageCount){t.isBlazor()&&this.isPassword&&(this.isPassword=!1,this.isPasswordAvailable=!1,this.pdfViewer._dotnetInstance.invokeMethodAsync("ClosePasswordDialog")),o&&""!==o&&(this.passwordData=o),this.pdfViewer.allowServerDataBinding=!1,this.pageCount=i.pageCount,this.pdfViewer.pageCount=i.pageCount,this.isAnnotationCollectionRemoved=!1,this.saveDocumentHashData(),this.pageRender(i);var r={pageCount:i.pageCount,pageSizes:i.pageSizes};if(e.sessionStorageManager.setItem(this.documentId+"_pagedata",JSON.stringify(r)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){this.mobileScrollerContainer.style.display="";var a=this.pdfViewer.toolbarModule?this.toolbarHeight:0;this.mobileScrollerContainer.style.top=a+"px"}}else this.pageCount=0,this.currentPageNumber=0,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.mobileScrollerContainer.style.display="none"),4===i?t.isBlazor()||this.renderPasswordPopup(n,o,this.isImportDoc):3===i&&(t.isBlazor()||this.renderCorruptPopup(this.isImportDoc)),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateToolbarItems();var s=this.pdfViewer.annotationModule;s&&s.textMarkupAnnotationModule&&s.textMarkupAnnotationModule.isEnableTextMarkupResizer(s.textMarkupAnnotationModule.currentTextMarkupAddMode)&&s.textMarkupAnnotationModule.createAnnotationSelectElement()},e.prototype.initiateLoadDocument=function(t,i,n){t&&(this.documentId=t,e.sessionStorageManager.documentId=this.documentId),this.viewerContainer&&(this.viewerContainer.scrollTop=0),this.showLoadingIndicator(!0),this.hashId=" ",this.isFileName=i,this.saveDocumentInfo(),"Pan"===this.pdfViewer.interactionMode&&this.initiatePanning(),this.setFileName(),null===this.pdfViewer.fileName&&(i&&n?(this.pdfViewer.fileName=n,this.jsonDocumentId=this.pdfViewer.fileName):(this.pdfViewer.fileName="undefined.pdf",this.jsonDocumentId=null)),this.pdfViewer.downloadFileName?this.downloadFileName=this.pdfViewer.downloadFileName:this.downloadFileName=this.pdfViewer.fileName},e.prototype.convertBase64=function(e){return new Uint8Array(atob(e).split("").map(function(e){return e.charCodeAt(0)}))},e.prototype.loadSuccess=function(e,t){var i=e;if(i){if("object"!=typeof i)try{i=JSON.parse(i)}catch(e){this.onControlError(500,i,this.pdfViewer.serverActionSettings.load),i=null}if(i){for(;"object"!=typeof i;)if(i=JSON.parse(i),"number"==typeof parseInt(i,10)&&!isNaN(parseInt(i,10))){i=parseInt(i,10);break}i.StatusText&&"File Does not Exist"===i.StatusText&&this.showLoadingIndicator(!1),(i.uniqueId===this.documentId||"number"==typeof parseInt(i,10)&&!isNaN(parseInt(i,10)))&&(this.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.load,i),this.requestSuccess(i,null,t))}}},e.prototype.mobileScrollContainerDown=function(e){if(this.ispageMoved=!1,this.isThumb=!0,this.isScrollerMoving=!1,this.isTextMarkupAnnotationModule()&&null!=this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var i=this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage;this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage=null,this.pdfViewer.annotationModule.textMarkupAnnotationModule.clearAnnotationSelection(i),this.pdfViewer.toolbar.showToolbar(!0)}this.mobileScrollerContainer.addEventListener("touchmove",this.viewerContainerOnScroll.bind(this),!0)},e.prototype.relativePosition=function(e){var t=this.viewerContainer.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}},e.prototype.getAnnotationCanvas=function(e,i){var n=this.getElement(e+i);if(n||this.isPrint)return n;if(!t.isNullOrUndefined(i)){var o=this.getElement("_pageDiv_"+i),r=this.pageSize[parseInt(i.toString(),10)];if(o&&r&&r.width&&r.height){var a=r.width,s=r.height;if(n=this.createAnnotationLayer(o,a,s,i),this.isShapeBasedAnnotationsEnabled()){n&&(te(n.getBoundingClientRect(),"position:absolute;top:0px;left:0px;overflow:hidden;pointer-events:none;z-index:1000",n,i,this.pdfViewer),this.pdfViewer.renderSelector(i,this.pdfViewer.annotationSelectorSettings))}}}return n},e.prototype.createAnnotationLayer=function(e,i,n,o,r){var a=this.getElement("_annotationCanvas_"+o);if(a)return this.updateCanvas(a,i,n,o),a;var s=t.createElement("canvas",{id:this.pdfViewer.element.id+"_annotationCanvas_"+o,className:"e-pv-annotation-canvas"});return this.updateCanvas(s,i,n,o),e.appendChild(s),s},e.prototype.setMaximumHeight=function(e){var i=e.getBoundingClientRect();(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode||i&&0===i.height)&&(e.style.minHeight="500px"),this.updateWidth(),this.updateHeight()},e.prototype.applyViewerHeight=function(e){var i=e.getBoundingClientRect();t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&i&&0===i.height&&(e.style.minHeight="500px")},e.prototype.updateCanvas=function(e,t,i,n){var o=this.getZoomFactor(),r=this.getZoomRatio(o);e.width=t*r,e.height=i*r,e.style.width=t*o+"px",e.style.height=i*o+"px",e.style.position="absolute",e.style.zIndex="1",this.applyElementStyles(e,n)},e.prototype.updateWidth=function(){"auto"!==this.pdfViewer.width.toString()&&(this.pdfViewer.element.style.width=this.pdfViewer.width)},e.prototype.updateHeight=function(){"auto"!==this.pdfViewer.height.toString()&&(this.pdfViewer.element.style.height=this.pdfViewer.height)},e.prototype.updateViewerContainer=function(){var e=this.getElement("_sideBarContentContainer");e&&"none"===e.style.display?this.navigationPane.updateViewerContainerOnClose():e&&"block"===e.style.display?this.navigationPane.updateViewerContainerOnExpand():this.updateViewerContainerSize();var i=this.pdfViewer.toolbarModule;if(!t.isNullOrUndefined(this.viewerContainer)&&!t.isNullOrUndefined(i)&&!t.isNullOrUndefined(i.toolbarElement)){if("none"==i.toolbarElement.style.display)this.viewerContainer.style.height=this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,0);else if("block"==i.toolbarElement.style.display){var n=document.getElementById(this.pdfViewer.element.id+"_toolbarContainer");if(n){var o=n.getBoundingClientRect().height;this.viewerContainer.style.height=this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,o)}}this.navigationPane.sideBarToolbar&&(this.navigationPane.sideBarToolbar.style.height=this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,0))}i&&(t.isBlazor()?(this.pdfViewer.enableToolbar||this.pdfViewer.enableAnnotationToolbar)&&this.pdfViewer._dotnetInstance.invokeMethodAsync("RefreshToolbarItems"):(this.pdfViewer.enableToolbar&&(t.isNullOrUndefined(i.toolbar)||i.toolbar.refreshOverflow()),this.pdfViewer.enableAnnotationToolbar&&i.annotationToolbarModule&&(t.isNullOrUndefined(i.annotationToolbarModule)||t.isNullOrUndefined(i.annotationToolbarModule.toolbar)||i.annotationToolbarModule.toolbar.refreshOverflow())))},e.prototype.updateViewerContainerSize=function(){t.isNullOrUndefined(this.viewerContainer)||(this.viewerContainer.style.width=(this.pdfViewer.element.clientWidth>0?this.pdfViewer.element.clientWidth:this.pdfViewer.element.offsetWidth)+"px"),t.isNullOrUndefined(this.pageContainer)||(this.pageContainer.style.width=this.viewerContainer.offsetWidth+"px"),this.updateZoomValue()},e.prototype.mobileScrollContainerEnd=function(e){this.ispageMoved||this.goToPagePopup.show(),this.isThumb=!1,this.ispageMoved=!1,this.isScrollerMoving=!1,this.pageViewScrollChanged(this.currentPageNumber),this.mobileScrollerContainer.removeEventListener("touchmove",this.viewerContainerOnScroll.bind(this),!0),this.mobilePageNoContainer.style.display="none"},e.prototype.checkRedirection=function(e){var i=!1;return e&&"object"==typeof e&&(e.redirectUrl||e.redirectUri||""===e.redirectUrl||""===e.redirectUri)?""===e.redirectUrl||""===e.redirectUri?i=!0:e.redirectUrl?window.location.href=e.redirectUrl:window.location.href=e.redirectUri:e&&"string"==typeof e&&(e.includes("redirectUrl")||e.includes("redirectUri"))&&(""===JSON.parse(e).redirectUrl||""===JSON.parse(e).redirectUri?i=!0:t.isNullOrUndefined(JSON.parse(e).redirectUrl)&&t.isNullOrUndefined(JSON.parse(e).redirectUri)||(e.includes("redirectUrl")?window.location.href=JSON.parse(e).redirectUrl:window.location.href=JSON.parse(e).redirectUri)),i},e.prototype.getPdfByteArray=function(e){var t=this;return"string"==typeof e&&this.clientSideRendering&&(e.startsWith("http://")||e.startsWith("https://")||e.includes("pdf;base64,")||e.startsWith("blob:"))?fetch(e).then(function(e){if(e.ok)return e.arrayBuffer();throw new Error(e.statusText)}).then(function(e){return new Uint8Array(e)}).catch(function(e){throw t.openNotificationPopup("CORS policy error"),t.pdfViewer.fireDocumentLoadFailed(!1,null),e}):Promise.resolve(e)},e.prototype.getPdfBase64=function(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("blob:")?fetch(e).then(function(e){if(e.ok)return e.arrayBuffer();throw console.error("Error fetching PDF:",e.statusText),new Error(e.statusText)}).then(function(e){var t=new Uint8Array(e).reduce(function(e,t){return e+String.fromCharCode(t)},"");return btoa(t)}).catch(function(e){throw console.error("Error fetching PDF:",e.message),e}):Promise.resolve(e)},e.prototype.isValidPDFBase64=function(e){if(e.length%4!=0||!/^[A-Za-z0-9+/]+={0,2}$/.test(e.replace(/\s/g,"")))return!1;try{return atob(e).indexOf("%PDF-")>-1}catch(e){return!1}},e.prototype.isUrl=function(e){try{return new URL(e),!0}catch(e){return!1}},e.prototype.isBase64=function(e){return/^[A-Za-z0-9+/=]+$/.test(e)},e.prototype.identifyDataType=function(e){return this.isUrl(e)?"URL":this.isBase64(e)?"Base64":"Unknown"},e.prototype.createAjaxRequest=function(e,i,n){this.corruptPopup&&this.closeCorruptPopup(),this.notifyDialog&&this.closeNotification();var o=null;if(o=this,this.pdfViewer.serverActionSettings)if(this.loadRequestHandler=new Pi(this.pdfViewer),this.loadRequestHandler.url=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.load,this.loadRequestHandler.responseType="json",this.loadRequestHandler.mode=!0,e.action="Load",e.elementId=this.pdfViewer.element.id,this.clientSideRendering){var r=this.pdfViewer.pdfRendererModule.load(i,this.documentId,n,e);if(r){if("object"!=typeof r)try{r=JSON.parse(r)}catch(e){o.onControlError(500,r,this.pdfViewer.serverActionSettings.load),r=null}if(r){for(;"object"!=typeof r;)if(r=JSON.parse(r),"number"==typeof parseInt(r,10)&&!isNaN(parseInt(r,10))){r=parseInt(r,10);break}(r.uniqueId===o.documentId||"number"==typeof parseInt(r,10)&&!isNaN(parseInt(r,10)))&&(o.updateFormFieldName(r),o.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.load,r),!t.isNullOrUndefined(r.isTaggedPdf)&&r.isTaggedPdf&&(o.isTaggedPdf=!0),o.requestSuccess(r,i,n))}}else o.invalidFilePopup()}else i.startsWith("blob:")?o.getPdfBase64(i).then(function(t){t&&(e.document=t,e.isFileName=!1),o.loadRequestHandler.send(e)}).catch(function(e){o.invalidFilePopup()}):o.loadRequestHandler.send(e),this.loadRequestHandler.onSuccess=function(e){var r=e.data;if(o.checkRedirection(r))o.showLoadingIndicator(!1);else if(r){if("object"!=typeof r)try{r=JSON.parse(r)}catch(e){o.onControlError(500,r,this.pdfViewer.serverActionSettings.load),r=null}if(r){for(;"object"!=typeof r;)if(r=JSON.parse(r),"number"==typeof parseInt(r,10)&&!isNaN(parseInt(r,10))){r=parseInt(r,10);break}(r.uniqueId===o.documentId||"number"==typeof parseInt(r,10)&&!isNaN(parseInt(r,10)))&&(o.updateFormFieldName(r),o.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.load,r),!t.isNullOrUndefined(r.isTaggedPdf)&&r.isTaggedPdf&&(o.isTaggedPdf=!0),o.requestSuccess(r,i,n))}}else o.showLoadingIndicator(!1),o.openImportExportNotificationPopup(o.pdfViewer.localeObj.getConstant("Import PDF Failed"))},this.loadRequestHandler.onFailure=function(e){var t=e.status.toString().split("")[0];"4"===t?o.openNotificationPopup("Client error"):"5"===t?o.openNotificationPopup("CORS policy error"):o.openNotificationPopup(),o.showLoadingIndicator(!1),o.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,o.pdfViewer.serverActionSettings.load)},this.loadRequestHandler.onError=function(e){o.openNotificationPopup(),o.showLoadingIndicator(!1),o.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,o.pdfViewer.serverActionSettings.load)}},e.prototype.invalidFilePopup=function(){this.showLoadingIndicator(!1),this.openImportExportNotificationPopup(this.pdfViewer.localeObj.getConstant("Import PDF Failed"))},e.prototype.updateFormFieldName=function(e){if(e&&e.PdfRenderedFormFields&&e.PdfRenderedFormFields.length>0)for(var i=void 0,n=0;n<e.PdfRenderedFormFields.length;n++)(i=e.PdfRenderedFormFields[parseInt(n.toString(),10)])&&(i.ActualFieldName&&(i.FieldName=i.ActualFieldName),t.isNullOrUndefined(i.Value)&&(i.Value=""))},e.prototype.createNotificationPopup=function(e){var i=this;if(!this.isMessageBoxOpen){var n=t.createElement("div",{id:this.pdfViewer.element.id+"_notify",className:"e-pv-notification-popup"});!t.isNullOrUndefined(this.pdfViewer.pageOrganizer)&&this.pdfViewer.pageOrganizer.dialogDivElement?this.pdfViewer.pageOrganizer.dialogDivElement.appendChild(n):this.viewerContainer.appendChild(n),this.notifyDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:this.pdfViewer.localeObj.getConstant("PdfViewer"),buttons:[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.closeNotification.bind(this)}],content:'<div class="e-pv-notification-popup-content" tabindex = "0">'+e+"</div>",target:this.pdfViewer.element,beforeClose:function(){if(i.notifyDialog.destroy(),i.pdfViewer.pageOrganizerModule&&i.pdfViewer.pageOrganizerModule.showOrganizeLoadingIndicator(!1),i.pdfViewer.element)try{i.pdfViewer.element.removeChild(n)}catch(e){n.parentElement.removeChild(n)}i.pdfViewer.textSearchModule&&(i.pdfViewer.textSearch.isMessagePopupOpened=!1),i.isMessageBoxOpen=!1}}),this.pdfViewer.enableRtl&&(this.notifyDialog.enableRtl=!0),this.notifyDialog.appendTo(n),this.isMessageBoxOpen=!0}},e.prototype.openNotificationPopup=function(e){var i=this;if(this.pdfViewer.showNotificationDialog){if("Client error"===e)t.isBlazor()?(n=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_Clienterror")).then(function(e){i.createNotificationPopup(e)}):this.createNotificationPopup(this.pdfViewer.localeObj.getConstant("Client error"));else if("CORS policy error"===e)this.createNotificationPopup(this.pdfViewer.localeObj.getConstant("Cors policy error"));else if(t.isBlazor()){var n=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_Servererror");n.then(function(e){i.createNotificationPopup(e)})}else this.createNotificationPopup(this.pdfViewer.localeObj.getConstant("Server error"));this.getElement("_notify")&&this.getElement("_notify").classList.add("e-pv-notification-large-content")}},e.prototype.showNotificationPopup=function(e){this.pdfViewer.showNotificationDialog||""===e||(this.createNotificationPopup(e),this.getElement("_notify")&&this.getElement("_notify").classList.add("e-pv-notification-large-content"))},e.prototype.requestSuccess=function(i,n,o){if(this.clientSideRendering&&(i.isDigitalSignaturePresent&&!t.isNullOrUndefined(i.digitialSignatureFile)&&i.digitialSignatureFile&&this.pdfViewer.pdfRenderer.digitialByteArray&&this.pdfViewer.pdfRenderer.digitialByteArray.length>0?(this.pdfViewer.fileByteArray=this.pdfViewer.pdfRenderer.digitialByteArray,this.pdfViewer.pdfRenderer.digitialByteArray=null):t.isNullOrUndefined(this.pdfViewer.fileByteArray)&&this.pdfViewer.uploadedFileByteArray?(this.pdfViewer.fileByteArray=this.pdfViewer.uploadedFileByteArray,this.pdfViewer.uploadedFileByteArray=null):this.pdfViewer.fileByteArray||t.isNullOrUndefined(this.pdfViewer.toolbarModule)||!this.pdfViewer.toolbarModule.uploadedFile?!this.pdfViewer.fileByteArray&&i.documentData&&(this.pdfViewer.fileByteArray=this.convertBase64(i.documentData)):"string"==typeof this.pdfViewer.toolbarModule.uploadedFile&&(this.pdfViewer.fileByteArray=this.convertBase64(this.pdfViewer.toolbarModule.uploadedFile.replace(/^data:+[a-zA-Z]+\/[a-zA-Z]+;base64,/g,"")))),i&&!t.isNullOrUndefined(i.uniqueId)){if(t.isBlazor()&&this.isPassword&&(this.isPassword=!1,this.isPasswordAvailable=!1,this.pdfViewer._dotnetInstance.invokeMethodAsync("ClosePasswordDialog")),o&&""!==o&&(this.passwordData=o),this.pdfViewer.allowServerDataBinding=!1,this.pageCount=i.pageCount,this.pdfViewer.pageCount=i.pageCount,this.hashId=i.hashId,this.documentLiveCount=i.documentLiveCount,this.isAnnotationCollectionRemoved=!1,this.saveDocumentHashData(),i.pageCount<100&&this.saveFormfieldsData(i),this.pdfViewer.allowServerDataBinding=!0,this.clientSideRendering?this.isDigitalSignaturePresent=i.isDigitalSignaturePresent:this.digitalSignaturePages=i.digitalSignaturePages,!this.clientSideRendering){this.pageRender(i);var r={pageCount:i.pageCount,pageSizes:i.pageSizes};e.sessionStorageManager.setItem(this.documentId+"_pagedata",JSON.stringify(r))}if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){this.mobileScrollerContainer.style.display="";var a=this.pdfViewer.toolbarModule?this.toolbarHeight:0;this.mobileScrollerContainer.style.top=a+"px"}this.restrictionList=i.RestrictionSummary,this.RestrictionEnabled(this.restrictionList,!1)}else this.pageCount=0,this.currentPageNumber=0,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.mobileScrollerContainer.style.display="none"),4===i?t.isBlazor()||this.renderPasswordPopup(n,o,this.isImportDoc):3===i&&(t.isBlazor()||this.renderCorruptPopup(this.isImportDoc)),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateToolbarItems();var s=this.pdfViewer.annotationModule;s&&s.textMarkupAnnotationModule&&s.textMarkupAnnotationModule.isEnableTextMarkupResizer(s.textMarkupAnnotationModule.currentTextMarkupAddMode)&&s.textMarkupAnnotationModule.createAnnotationSelectElement()},e.prototype.RestrictionEnabled=function(e,i){if(e)for(var n=0;n<e.length;n++)this.EnableRestriction(e[parseInt(n.toString(),10)],i),t.isBlazor()?this.pdfViewer.toolbarModule&&this.pdfViewer._dotnetInstance.invokeMethodAsync("RestrictToolbarItems",e,i):this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.DisableToolbarItems(e[parseInt(n.toString(),10)],i)},e.prototype.EnableRestriction=function(e,t){switch(e){case"Print":this.pdfViewer.enablePrint=t;break;case"CopyContent":this.pdfViewer.enableTextSelection=t;break;case"FillFields":this.pdfViewer.enableFormFields=t,this.enableFormFieldButton(t);break;case"EditAnnotations":this.pdfViewer.annotationSettings.isLock=!0}},e.prototype.pageRender=function(e){this.document=null,this.passwordDialogReset(),this.passwordPopup&&this.passwordPopup.hide(),this.initPageDiv(e)},e.prototype.loadPage=function(e){this.currentPageNumber=e+1,this.pdfViewer.currentPageNumber=e+1,this.previousZoomValue=this.pdfViewer.zoomValue;var i=!1;if(this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isAutoZoom=!0,this.pdfViewer.zoomValue&&this.pdfViewer.zoomValue>0&&(100!==this.pdfViewer.zoomValue&&(i=!0),this.isInitialPageMode=!0,this.pdfViewer.magnification.zoomTo(this.pdfViewer.zoomValue)),"FitToWidth"===this.pdfViewer.zoomMode?(this.isInitialPageMode=!0,i=!0,this.pdfViewer.magnificationModule.fitToWidth()):"FitToPage"===this.pdfViewer.zoomMode&&(this.isInitialPageMode=!0,i=!0,this.pdfViewer.magnificationModule.fitToPage()),this.documentLoaded=!0,this.pdfViewer.magnificationModule.isInitialLoading=!0,this.onWindowResize(),this.documentLoaded=!1,this.pdfViewer.magnificationModule.isInitialLoading=!1),this.isDocumentLoaded=!0,this.clientSideRendering){this.pdfViewer.fileByteArray;this.initialPagesRendered(0,!1)}else this.initialPagesRendered(e,i);this.showLoadingIndicator(!1),t.isBlazor()||this.pdfViewer.toolbarModule&&(this.pdfViewer.toolbarModule.uploadedDocumentName=null,this.pdfViewer.toolbarModule.updateCurrentPage(this.currentPageNumber),this.pdfViewer.toolbarModule.updateToolbarItems(),this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule&&this.pdfViewer.toolbar.annotationToolbarModule.enableAnnotationAddTools(!0)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.mobileSpanContainer.innerHTML=this.currentPageNumber.toString(),this.mobilecurrentPageContainer.innerHTML=this.currentPageNumber.toString())},e.prototype.initialPagesRenderedForSign=function(e){var t=document.createElement("canvas"),i=e.value,n=e.width,o=e.height,r=e.formFieldName,a=e.formFieldList,s=e.PageIndex,l=JSON.parse(a);t.width=n,t.height=o;var d=t.getContext("2d"),A=d.createImageData(n,o);A.data.set(i),d.putImageData(A,0,0);var h=t.toDataURL(),p=this.removeTrailingNumber(r),c=l.find(function(e){return e.FieldName===p}).LineBounds,g=Math.min(c.Height/this.pdfViewer.formFieldsModule.paddingDifferenceValue,c.Width/this.pdfViewer.formFieldsModule.paddingDifferenceValue),u=c.Height-g,f=c.Width-g,m=Math.min(f/n,u/o),w=n*m,C=o*m,B=c.X+(c.Width-w)/2,S=c.Y+(c.Height-C)/2,y=new wo;y.LineBounds={X:B,Y:S,Width:w,Height:C},y.Value=h,y.ActualFieldName=null,y.Name="SignatureImage",y.FieldName=r,y.PageIndex=s;var I=this.pdfViewer.formFieldCollections.findIndex(function(e){return("SignatureField"===e.type||"InitialField"===e.type)&&y.FieldName&&y.FieldName.includes(e.name)&&y.FieldName.includes(e.name+"_")});I>=0&&(this.pdfViewer.formFieldCollections[parseInt(I.toString(),10)].value=y.Value),this.pdfViewer.pdfRendererModule.formFieldsBase.PdfRenderedFormFields.push(y);var E=JSON.stringify(this.pdfViewer.pdfRendererModule.formFieldsBase.PdfRenderedFormFields);this.setItemInSessionStorage(E,"_formfields")},e.prototype.removeTrailingNumber=function(e){return e.replace(/_\d+$/,"")},e.prototype.initialPagesRendered=function(e,t){if(-1===this.renderedPagesList.indexOf(e)&&!t){this.createRequestForRender(e);for(var i=e+1,n=this.pdfViewer.initialRenderPages<=this.pageCount?this.pdfViewer.initialRenderPages>this.pageRenderCount?this.pdfViewer.initialRenderPages:2:this.pageCount,o=1;o<n;o++)this.createRequestForRender(o),i+=1;if(this.pageSize[parseInt(i.toString(),10)])for(var r=this.getPageTop(i),a=this.viewerContainer.clientHeight;a>r&&this.pageSize[parseInt(i.toString(),10)];)this.renderPageElement(i),this.createRequestForRender(i),r=this.getPageTop(i),i+=1}},e.prototype.renderPasswordPopup=function(e,i,n){var o=this;if(t.isBlazor()){var r=document.getElementById(this.pdfViewer.element.id+"_prompt");this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_EnterPassword").then(function(e){r.textContent=e});var a=document.querySelector("#"+this.pdfViewer.element.id+"_password_input");a.addEventListener("keyup",function(){""===a.value&&o.passwordDialogReset()}),a.addEventListener("focus",function(){a.parentElement.classList.add("e-input-focus")}),a.addEventListener("blur",function(){a.parentElement.classList.remove("e-input-focus")}),this.isPasswordAvailable?(this.pdfViewer.fireDocumentLoadFailed(!0,i),r.classList.add("e-pv-password-error"),this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_InvalidPassword").then(function(e){r.textContent=e}),r.focus(),this.isFileName?this.document=e:this.document="data:application/pdf;base64,"+e):(this.isFileName?this.document=e:this.document="data:application/pdf;base64,"+e,this.isPasswordAvailable=!0,this.pdfViewer.fireDocumentLoadFailed(!0,null)),this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenPasswordDialog")}else this.isPasswordAvailable?(this.pdfViewer.fireDocumentLoadFailed(!0,i),this.promptElement.classList.add("e-pv-password-error"),this.promptElement.textContent=this.pdfViewer.localeObj.getConstant("Invalid Password"),this.promptElement.focus(),this.isFileName?this.document=e:e instanceof Uint8Array?this.document=e:this.document="data:application/pdf;base64,"+e,this.passwordPopup.show()):(this.isFileName?this.document=e:e instanceof Uint8Array?this.document=e:this.document="data:application/pdf;base64,"+e,this.isPasswordAvailable=!0,this.createPasswordPopup(n),this.pdfViewer.fireDocumentLoadFailed(!0,null),this.passwordPopup.show())},e.prototype.renderCorruptPopup=function(e){this.pdfViewer.fireDocumentLoadFailed(!1,null),this.documentId=null,this.pdfViewer.showNotificationDialog&&(t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenCorruptedDialog"):(this.createCorruptedPopup(e),this.corruptPopup.show()))},e.prototype.constructJsonObject=function(e,t,i){var n;return t?(this.isPasswordAvailable=!0,this.passwordData=t,n={document:e,password:t,isClientsideLoading:i,zoomFactor:"1",isFileName:this.isFileName.toString(),uniqueId:this.documentId,showDigitalSignatureAppearance:this.pdfViewer.showDigitalSignatureAppearance}):(this.isPasswordAvailable=!1,this.passwordData="",n={document:e,zoomFactor:"1",isClientsideLoading:i,isFileName:this.isFileName.toString(),uniqueId:this.documentId,hideEmptyDigitalSignatureFields:this.pdfViewer.hideEmptyDigitalSignatureFields,showDigitalSignatureAppearance:this.pdfViewer.showDigitalSignatureAppearance}),n},e.prototype.checkDocumentData=function(e,t){void 0===t&&(t=!0);var i;return i=this.isValidPDFBase64(e)?e:e.split("base64,")[1],void 0!==i&&this.isValidPDFBase64(i)?t&&(this.jsonDocumentId=null):(this.isFileName=!0,this.jsonDocumentId=e,null===this.pdfViewer.fileName&&(e.startsWith("http://")||e.startsWith("https://")||e.endsWith(".pdf"))?(this.setDocumentName(e),i=e):(this.setFileName(),i=e)),i},e.prototype.setDocumentName=function(e){var t=-1!==e.indexOf("\\")?e.split("\\"):e.split("/");this.pdfViewer.fileName=t[t.length-1],this.jsonDocumentId=this.pdfViewer.fileName},e.prototype.setFileName=function(){null===this.pdfViewer.fileName&&(this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.uploadedDocumentName?(this.pdfViewer.fileName=this.pdfViewer.toolbarModule.uploadedDocumentName,this.jsonDocumentId=this.pdfViewer.fileName):(this.pdfViewer.fileName="undefined.pdf",this.jsonDocumentId=null))},e.prototype.saveDocumentInfo=function(){e.sessionStorageManager.getWindowSessionStorageSize()+Math.round(JSON.stringify(this.documentId).length/1024)<5e3?(e.sessionStorageManager.setItem(this.documentId+"_currentDocument",this.documentId),e.sessionStorageManager.setItem(this.documentId+"_serviceURL",this.pdfViewer.serviceUrl),this.pdfViewer.serverActionSettings&&e.sessionStorageManager.setItem(this.documentId+"_unload",this.pdfViewer.serverActionSettings.unload)):(this.sessionStorage.push(this.documentId+"_currentDocument",this.documentId),this.sessionStorage.push(this.documentId+"_serviceURL",this.pdfViewer.serviceUrl),this.pdfViewer.serverActionSettings&&this.sessionStorage.push(this.documentId+"_unload",this.pdfViewer.serverActionSettings.unload))},e.prototype.saveDocumentHashData=function(){var i="";i=t.Browser.isIE||"edge"===t.Browser.info.name?encodeURI(this.hashId):this.hashId,e.sessionStorageManager.setItem(this.documentId+"_hashId",i),this.documentLiveCount&&e.sessionStorageManager.setItem(this.documentId+"_documentLiveCount",this.documentLiveCount.toString())},e.prototype.signatureValue=function(e){if("string"==typeof e&&e.trim().startsWith("["))return JSON.parse(e).map(function(e){var t=Math.round(e.x),i=Math.round(e.y);return""+e.command+t+","+i}).join(" ")},e.prototype.saveFormfieldsData=function(e){if(!this.clientSideRendering){var t=["ink","SignatureText","SignatureImage"];e.PdfRenderedFormFields=e.PdfRenderedFormFields.filter(function(e){return-1===t.indexOf(e.Name)}).concat(e.PdfRenderedFormFields.filter(function(e){return-1!==t.indexOf(e.Name)}))}if(this.pdfViewer.isFormFieldDocument=!1,this.enableFormFieldButton(!1),e&&e.PdfRenderedFormFields&&e.PdfRenderedFormFields.length>0){if(this.formfieldvalue)this.pdfViewer.formFieldsModule&&this.setItemInSessionStorage(this.formfieldvalue,"_formfields"),this.formfieldvalue=null;else if(this.pdfViewer.formFieldsModule){for(var i=0;i<e.PdfRenderedFormFields.length;i++)""===e.PdfRenderedFormFields[parseInt(i.toString(),10)].FieldName&&e.PdfRenderedFormFields.splice(i,1);this.setItemInSessionStorage(e.PdfRenderedFormFields,"_formfields")}this.pdfViewer.enableFormFields&&this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.formFieldCollections(e),this.pdfViewer.formFieldCollections.length>0&&(this.pdfViewer.isFormFieldDocument=!0,this.enableFormFieldButton(!0))}},e.prototype.enableFormFieldButton=function(e){e&&(this.pdfViewer.isFormFieldDocument=!0),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.submitItem&&this.pdfViewer.toolbarModule.toolbar.enableItems(this.pdfViewer.toolbarModule.submitItem.parentElement,e)},e.prototype.updateWaitingPopup=function(e){if(null!=this.pageSize[parseInt(e.toString(),10)].top){var i=this.getElement("_pageDiv_"+e).getBoundingClientRect(),n=this.getElement("_pageDiv_"+e).firstChild.firstChild;i.top<0?this.toolbarHeight+this.viewerContainer.clientHeight/2-i.top<i.height?n.style.top=this.getElement("_pageDiv_"+e).clientHeight/2-this.getElement("_pageDiv_"+e).clientTop-this.toolbarHeight+"px":this.toolbarHeight+i.bottom/2-i.top<i.height&&(n.style.top=i.bottom/2-this.getElement("_pageDiv_"+e).clientTop-this.toolbarHeight+"px"):n.style.top=this.getElement("_pageDiv_"+e).clientHeight/2+"px",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&i.width>this.viewerContainer.clientWidth?n.style.left=this.getElement("_pageDiv_"+e).clientWidth/2+this.viewerContainer.scrollLeft+"px":(this.getZoomFactor()>1.25&&(i.width,this.viewerContainer.clientWidth),n.style.left=this.getElement("_pageDiv_"+e).clientWidth/2+"px")}},e.prototype.getActivePage=function(e){return this.activeElements&&!t.isNullOrUndefined(this.activeElements.activePageID)?e?this.activeElements.activePageID+1:this.activeElements.activePageID:e?this.currentPageNumber:this.currentPageNumber-1},e.prototype.createWaitingPopup=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+e);t&&(oe({target:t}),this.setLoaderProperties(t))},e.prototype.showLoadingIndicator=function(e){var t=this.getElement("_loadingIndicator");t&&(e?(t.style.display="block",Ye(t)):(t.style.display="none",Je(t)))},e.prototype.spinnerPosition=function(e,t){var i=e.querySelector(".e-spinner-inner"),n=this.getZoomFactor(),o=this.pageSize[parseInt(t.toString(),10)].width*n,r=this.pageSize[parseInt(t.toString(),10)].height*n;i.style.top=r/2+"px",i.style.left=o/2+"px";var a=i.children[0];n<=.2?(a.style.width="20px",a.style.height="20px",a.style.transformOrigin="10px 10px 10px"):n<=.45?(a.style.width="30px",a.style.height="30px",a.style.transformOrigin="15px 15px 15px"):(a.style.width="48px",a.style.height="48px",a.style.transformOrigin="24px 24px 24px")},e.prototype.showPageLoadingIndicator=function(e,i){var n=this.getElement("_pageDiv_"+e);null!=n&&(this.spinnerPosition(n,e),i?Ye(n):Je(n),t.isNullOrUndefined(this.pdfViewer.magnificationModule)||this.pdfViewer.magnificationModule.isWaitingPopupUpdated||this.updateWaitingPopup(e))},e.prototype.showPrintLoadingIndicator=function(e){var t=this.getElement("_printLoadingIndicator");null!=t&&(e?(this.printMainContainer.style.display="block",Ye(t)):(this.printMainContainer.style.display="none",Je(t)))},e.prototype.setLoaderProperties=function(e){var t=e.firstChild.firstChild.firstChild;t&&(t.style.height="48px",t.style.width="48px",t.style.transformOrigin="24px 24px 24px")},e.prototype.updateScrollTop=function(e,i){var n=this;if(null!=this.pageSize[parseInt(e.toString(),10)]){this.renderElementsVirtualScroll(e),t.isNullOrUndefined(i)&&(this.viewerContainer.scrollTop=this.getPageTop(e)),-1===this.renderedPagesList.indexOf(e)&&this.createRequestForRender(e);var o=e+1;if(o<this.pdfViewer.pageCount&&-1===this.renderedPagesList.indexOf(o)&&this.createRequestForRender(o),this.pageSize[parseInt(o.toString(),10)])for(var r=this.getPageTop(o),a=this.viewerContainer.clientHeight+this.getPageTop(o-1);a>r&&this.pageSize[parseInt(o.toString(),10)];)this.renderPageElement(o),-1===this.renderedPagesList.indexOf(o)&&this.createRequestForRender(o),r=this.getPageTop(o),o+=1;setTimeout(function(){var t=e+1;t!==n.currentPageNumber&&(n.pdfViewer.currentPageNumber=t,n.currentPageNumber=t,n.pdfViewer.toolbarModule&&n.pdfViewer.toolbarModule.updateCurrentPage(t))},100)}},e.prototype.getZoomFactor=function(){return this.pdfViewer.magnificationModule?this.pdfViewer.magnificationModule.zoomFactor:1},e.prototype.getCustomZoomValues=function(){this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isInitialCustomZoomValues=!1);var e=this,t=e.pdfViewer.minZoom,i=e.pdfViewer.maxZoom,n=[],o=[10,25,50,75,100,125,150,200,400];if(null!=t&&null!=i&&t>i){var r=i;i=t,t=r}if(null!=t||null!=i){var a=0;null==t||n.some(function(e){return parseInt(e.id,10)===t})||(n.push({percent:t+"%",id:a.toString()}),this.customZoomValues.push(t),a++);for(var s=0;s<o.length;s++){var l=o[parseInt(s.toString(),10)];(function(e){return(null==t||e>=t)&&(null==i||e<=i)})(l)&&l!==t&&l!==i&&(n.push({percent:l+"%",id:a.toString()}),this.customZoomValues.push(l),a++)}null==i||n.some(function(e){return parseInt(e.id,10)===i})||i===t||(n.push({percent:i+"%",id:a.toString()}),this.customZoomValues.push(i),a++),n.sort(function(e,t){return parseInt(e.id,10)-parseInt(t.id,10)}),this.customZoomValues.sort(function(e,t){return parseInt(e.id,10)-parseInt(t.id,10)})}},e.prototype.getPinchZoomed=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isPinchZoomed},e.prototype.getMagnified=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isMagnified},e.prototype.getPinchScrolled=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isPinchScrolled},e.prototype.getPagesPinchZoomed=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isPagePinchZoomed},e.prototype.getPagesZoomed=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isPagesZoomed},e.prototype.getRerenderCanvasCreated=function(){return!!this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isRerenderCanvasCreated},e.prototype.getDocumentId=function(){return this.documentId},e.prototype.download=function(){this.pageCount>0&&this.createRequestForDownload()},e.prototype.saveAsBlob=function(){var e=this;return this.pageCount>0?new Promise(function(t,i){e.saveAsBlobRequest().then(function(e){t(e)})}):null},e.prototype.fireCustomCommands=function(e){var t=null,i=(t=this).pdfViewer.commandManager,n=i.keyboardCommand.map(function(e){return{name:e.name,gesture:{pdfKeys:e.gesture.pdfKeys,modifierKeys:e.gesture.modifierKeys}}}),o=JSON.stringify(n);if(0!==Object.keys(i).length){var r=JSON.parse(o),a=t.getModifiers(e);if(null!=a&&e.keyCode){var s={name:"",gesture:{pdfKeys:e.keyCode,modifierKeys:a}},l=r.find(function(e){return e.gesture&&e.gesture.pdfKeys===s.gesture.pdfKeys&&e.gesture.modifierKeys===s.gesture.modifierKeys});null!=l&&(s.name=l.name,s.gesture.modifierKeys=l.gesture.modifierKeys,s.gesture.pdfKeys=l.gesture.pdfKeys,t.pdfViewer.fireKeyboardCustomCommands(s))}}},e.prototype.getModifiers=function(e){var t=!!!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)&&e.metaKey,i=0;return(e.ctrlKey||t)&&(i|=1),e.altKey&&(i|=2),e.shiftKey&&(i|=4),e.metaKey&&(i|=8),i},e.prototype.saveAsBlobRequest=function(){var e=this,i=null;return i=this,new Promise(function(n,o){var r=i.constructJsonDownload();if((i.clientSideRendering?i.isDigitalSignaturePresent:i.digitalSignaturePages&&0!==i.digitalSignaturePages.length)&&(i.pdfViewer.isDocumentEdited?r.digitalSignatureDocumentEdited=!0:r.digitalSignatureDocumentEdited=!1),i.pdfViewer.isDocumentEdited||!t.isNullOrUndefined(i.pdfViewer.pageOrganizer)&&i.pdfViewer.pageOrganizer.isDocumentModified?r.isPdfEdited=!0:r.isPdfEdited=!1,t.isNullOrUndefined(e.pdfViewer.pageOrganizer)||t.isNullOrUndefined(e.pdfViewer.pageOrganizer.organizePagesCollection)||!e.pdfViewer.pageOrganizer.isDocumentModified||(r.organizePages=JSON.stringify(e.pdfViewer.pageOrganizer.organizePagesCollection)),e.dowonloadRequestHandler=new Pi(e.pdfViewer),e.dowonloadRequestHandler.url=i.pdfViewer.serviceUrl+"/"+i.pdfViewer.serverActionSettings.download,e.dowonloadRequestHandler.responseType="text",e.validateForm&&e.pdfViewer.enableFormFieldsValidation)e.pdfViewer.fireValidatedFailed(i.pdfViewer.serverActionSettings.download),e.validateForm=!1;else if(e.clientSideRendering){var a=e.pdfViewer.pdfRendererModule.getDocumentAsBase64(r),s=i.saveAsBlobFile(a,i);n(s)}else e.dowonloadRequestHandler.send(r);e.dowonloadRequestHandler.onSuccess=function(e){var t=e.data,o=i.saveAsBlobFile(t,i);n(o)},e.dowonloadRequestHandler.onFailure=function(e){i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,i.pdfViewer.serverActionSettings.download)},e.dowonloadRequestHandler.onError=function(e){i.openNotificationPopup(),i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,i.pdfViewer.serverActionSettings.download)}})},e.prototype.saveAsBlobFile=function(e,t){return this.clientSideRendering?new Promise(function(i){e&&("object"!=typeof e&&(t.onControlError(500,e,t.pdfViewer.serverActionSettings.download),e=null),e&&(t.clientSideRendering||t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.download,e),i(new Blob([e],{type:"application/pdf"}))))}):new Promise(function(i){e&&("object"==typeof e&&(e=JSON.parse(e)),"object"!=typeof e&&-1===e.indexOf("data:application/pdf")&&(t.onControlError(500,e,t.pdfViewer.serverActionSettings.download),e=null),e&&(t.clientSideRendering||t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.download,e),i(t.createBlobUrl(e.split("base64,")[1],"application/pdf"))))})},e.prototype.clear=function(i){var n=this,o=n.pdfViewer,r=o.printModule,a=o.textSearchModule,s=o.bookmarkViewModule,l=o.thumbnailView,d=o.annotation,A=o.magnificationModule,h=o.textSelectionModule,p=o.formFieldsModule,c=n.signatureModule,g=o.pageOrganizer;if(n.isPasswordAvailable=!1,n.isDocumentLoaded=!1,n.isInitialLoaded=!1,n.isImportAction=!1,n.navigationPane.isThumbnailAddedProgrammatically=!1,n.navigationPane.isThumbnail=!1,n.annotationPageList=[],n.annotationComments=null,o.annotationCollection=[],o.signatureCollection=[],o.formFieldCollection=[],o.customContextMenuItems=[],n.isAnnotationCollectionRemoved=!1,n.documentAnnotationCollections=null,n.isDrawnCompletely=!1,n.annotationRenderredList=[],n.isImportAction=!1,n.isImportedAnnotation=!1,n.importedAnnotation=[],n.isStorageExceed=!1,n.annotationStorage={},n.formFieldStorage={},n.downloadCollections={},n.annotationEvent=null,n.highestWidth=0,n.highestHeight=0,n.requestLists=[],n.tilerequestLists=[],n.isToolbarInkClicked=!1,o.formFieldCollections=[],n.passwordData="",n.isFocusField=!1,n.focusField=[],n.modifiedPageIndex=[],n.isInkAnnot=!1,n.updateDocumentEditedProperty(!1),o.clipboardData.clipObject={},o.pdfRendererModule&&n.clientSideRendering&&(n.pdfViewer.pdfRendererModule.pageRotationCollection=[]),o.toolbar&&(o.toolbar.uploadedFile=null),n.isTaggedPdf=!1,o.formDesignerModule&&(o.formDesignerModule.formFieldIndex=0,n.activeElements&&o.clearSelection(n.activeElements.activePageID),o.zIndexTable=[]),n.initiateTextSelectMode(),n.RestrictionEnabled(n.restrictionList,!0),n.restrictionList=null,t.Browser.isDevice&&!o.enableDesktopMode||n.navigationPane.sideBarToolbar&&n.navigationPane.clear(),(!t.isBlazor()&&t.Browser.isDevice||!o.enableDesktopMode)&&n.navigationPane.clear(),l&&l.clear(),s&&s.clear(),A&&(A.isMagnified=!1,A.isFormFieldPageZoomed=!1,A.clearIntervalTimer()),h&&h.clearTextSelection(),a&&a.resetTextSearch(!0),d&&(d.clear(),d.initializeCollection()),p&&(p.readOnlyCollection=[],p.signatureFieldCollection=[],p.renderedPageList=[],p.currentTarget=null),c&&(c.signAnnotationIndex=[]),g&&g.clear(),n.pageSize&&(n.pageSize=[]),n.renderedPagesList&&(n.renderedPagesList=[]),n.accessibilityTagsCollection&&(n.accessibilityTagsCollection=[]),n.pageRequestListForAccessibilityTags&&(n.pageRequestListForAccessibilityTags=[]),n.pageContainer)for(;n.pageContainer.hasChildNodes();)n.pageContainer.removeChild(n.pageContainer.lastChild);if(n.pageCount>0){if(n.unloadDocument(n),n.textLayer.characterBound=[],n.loadRequestHandler&&n.loadRequestHandler.clear(),n.requestCollection){for(var u=0;u<n.requestCollection.length;u++)n.requestCollection[parseInt(u.toString(),10)].clear();n.requestCollection=[]}n.virtualLoadRequestHandler&&n.virtualLoadRequestHandler.clear(),n.pageRequestHandler&&n.pageRequestHandler.clear(),n.dowonloadRequestHandler&&n.dowonloadRequestHandler.clear(),n.importAnnotationRequestHandler&&n.importAnnotationRequestHandler.clear(),n.exportAnnotationRequestHandler&&n.exportAnnotationRequestHandler.clear(),n.importFormFieldsRequestHandler&&n.importFormFieldsRequestHandler.clear(),n.exportFormFieldsRequestHandler&&n.exportFormFieldsRequestHandler.clear(),r&&r.printRequestHandler&&r.printRequestHandler.clear()}n.windowSessionStorageClear(),e.sessionStorageManager.clear(),n.pinchZoomStorage&&(n.pinchZoomStorage=[]),!n.previousZoomValue&&0!==n.previousZoomValue||n.previousZoomValue===o.zoomValue||(o.zoomValue=n.previousZoomValue),i&&n.pageCount>0&&o.fireDocumentUnload(this.pdfViewer.fileName),this.pdfViewer.fileName=null,window.customStampCollection instanceof Map&&window.customStampCollection.clear(),window.signatureCollection instanceof Map&&window.signatureCollection.clear()},e.prototype.destroy=function(){if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.element.classList.remove("e-pv-mobile-view"),this.unWireEvents(),this.clear(!1),this.pageContainer&&this.pageContainer.parentNode&&this.pageContainer.parentNode.removeChild(this.pageContainer),this.viewerContainer&&this.viewerContainer.parentNode&&this.viewerContainer.parentNode.removeChild(this.viewerContainer),this.contextMenuModule){var i=this.contextMenuModule.contextMenuElement;i&&i.ej2_instances&&i.ej2_instances.length>0&&this.contextMenuModule.destroy()}this.pdfViewer.toolbarModule&&this.navigationPane.destroy(),null!==this.pdfViewerRunner&&void 0!==this.pdfViewerRunner&&this.pdfViewerRunner.terminate();var n=document.getElementById("measureElement");n&&(n=void 0),this.hyperlinkAndLinkAnnotation={},this.navigationPane=new Kt(this.pdfViewer,this),this.textLayer=new Ti(this.pdfViewer,this),this.accessibilityTags=new ao(this.pdfViewer,this),this.signatureModule=new Ni(this.pdfViewer,this),this.pageTextDetails={},this.pageImageDetails={},this.viewerContainer=null,this.contextMenuModule=null,this.documentPathByteArray=null,this.pageSize=[],this.existingFieldImport=null,this.pageCount=0,this.customZoomValues=[],this.isReRenderRequired=null,this.currentPageNumber=null,this.previousZoomValue=null,this.initialZoomValue={},this.activeElements=new It,this.mouseDownEvent=null,this.pngData=[],this.blazorUIAdaptor=null,this.unload=null,this.isDocumentLoaded=null,this.documentId=null,this.jsonDocumentId=null,this.renderedPagesList=[],this.pageGap=8,this.signatureAdded=null,this.isSignInitialClick=null,this.loadedData="",this.isFreeTextSelected=null,this.formfieldvalue=null,this.pageLeft=5,this.sessionLimit=1e3,this.pageStopValue=300,this.toolbarHeight=56,this.pageLimit=0,this.previousPage=0,this.isViewerMouseDown=null,this.isViewerMouseWheel=null,this.scrollPosition=0,this.sessionStorage=[],e.sessionStorageManager.clear(),this.pageContainer=null,this.isLoadedFormFieldAdded=null,this.scrollHoldTimer=null,this.isFileName=null,this.isInkAnnot=null,this.modifiedPageIndex=[],this.pointerCount=0,this.pointersForTouch=[],this.corruptPopup=null,this.passwordPopup=null,this.goToPagePopup=null,this.isPasswordAvailable=null,this.isBounds=null,this.isImportDoc=null,this.document=null,this.passwordData="",this.reRenderedCount=0,this.passwordInput=null,this.promptElement=null,this.mouseX=0,this.mouseY=0,this.mouseLeft=0,this.mouseTop=0,this.hashId="",this.documentLiveCount=null,this.mainContainer=null,this.viewerMainContainer=null,this.printMainContainer=null,this.mobileScrollerContainer=null,this.mobilePageNoContainer=null,this.mobileSpanContainer=null,this.mobilecurrentPageContainer=null,this.mobilenumberContainer=null,this.mobiletotalPageContainer=null,this.touchClientX=0,this.touchClientY=0,this.previousTime=0,this.currentTime=0,this.isTouchScrolled=null,this.isgetFocused=null,this.goToPageInput=null,this.pageNoContainer=null,this.goToPageElement=null,this.isLongTouchPropagated=null,this.longTouchTimer=null,this.isViewerContainerDoubleClick=null,this.dblClickTimer=null,this.pinchZoomStorage=null,this.isPinchZoomStorage=null,this.isTextSelectionDisabled=null,this.isPanMode=null,this.dragX=0,this.dragY=0,this.isScrollbarMouseDown=null,this.scrollX=0,this.scrollY=0,this.ispageMoved=null,this.isThumb=null,this.isTapHidden=null,this.singleTapTimer=null,this.tapCount=0,this.inputTapCount=0,this.isInitialLoaded=null,this.loadRequestHandler=null,this.unloadRequestHandler=null,this.dowonloadRequestHandler=null,this.pageRequestHandler=null,this.textRequestHandler=null,this.virtualLoadRequestHandler=null,this.exportAnnotationRequestHandler=null,this.importAnnotationRequestHandler=null,this.exportFormFieldsRequestHandler=null,this.importFormFieldsRequestHandler=null,this.annotationPageList=null,this.importPageList=null,this.importedAnnotation=null,this.isImportAction=null,this.isImportedAnnotation=null,this.isAnnotationCollectionRemoved=null,this.tool=null,this.action="",this.eventArgs={},this.inAction=null,this.isMouseDown=null,this.isStampMouseDown=null,this.currentPosition=null,this.prevPosition=null,this.initialEventArgs=null,this.stampAdded=null,this.customStampCount=0,this.isDynamicStamp=null,this.isMixedSizeDocument=null,this.highestWidth=0,this.highestHeight=0,this.customStampCollection=[],this.isAlreadyAdded=null,this.isWebkitMobile=null,this.isFreeTextContextMenu=null,this.isSelection=null,this.isAddAnnotation=null,this.annotationComments=null,this.isToolbarSignClicked=null,this.signatureCount=0,this.isSignatureAdded=null,this.isNewSignatureAdded=null,this.currentSignatureAnnot=null,this.isInitialPageMode=null,this.ajaxData=null,this.documentAnnotationCollections=null,this.annotationRenderredList=[],this.annotationStorage={},this.formFieldStorage={},this.isStorageExceed=null,this.isFormStorageExceed=null,this.isNewStamp=null,this.downloadCollections={},this.isAnnotationAdded=null,this.annotationEvent=null,this.isAnnotationDrawn=null,this.isAnnotationSelect=null,this.isAnnotationMouseDown=null,this.isAnnotationMouseMove=null,this.validateForm=null,this.isMinimumZoom=null,this.documentLoaded=null,this.tileRenderCount=0,this.tileRequestCount=0,this.isTileImageRendered=null,this.isDataExits=null,this.requestLists=[],this.tilerequestLists=[],this.textrequestLists=[],this.renderThumbnailImages=null,this.pageRenderCount=2,this.isToolbarInkClicked=null,this.isInkAdded=null,this.inkCount=null,this.isAddedSignClicked=null,this.imageCount=0,this.isMousedOver=null,this.isFormFieldSelect=null,this.isFormFieldMouseDown=null,this.isFormFieldMouseMove=null,this.isFormFieldMousedOver=null,this.isPassword=null,this.digitalSignaturePages=[],this.isDigitalSignaturePresent=null,this.restrictionList=null,this.isDrawnCompletely=null,this.isAddComment=null,this.isCommentIconAdded=null,this.currentTarget=null,this.fromTarget=null,this.drawSignatureWithTool=null,this.formFieldCollection=[],this.requestCollection=[],this.nonFillableFields={},this.pdfViewerRunner=null,this.isInitialField=null,this.isTouchDesignerMode=null,this.designerModetarget=null,this.isPrint=null,this.isPDFViewerJson=null,this.isJsonImported=null,this.isJsonExported=null,this.isPageRotated=null,this.preventContextmenu=null,this.downloadFileName="",this.isFocusField=null,this.isTouchPad=null,this.isMacGestureActive=null,this.macGestureStartScale=0,this.zoomInterval=5,this.isTaggedPdf=null,this.accessibilityTagsHandler=null,this.accessibilityTagsCollection=[],this.pageRequestListForAccessibilityTags=[],this.enableAccessibilityMultiPageRequest=null,this.clientSideRendering=null,this.focusField=null,this.isPasswordProtected=null,this.isMoving=null,this.isDeviceiOS=null,this.isMacSafari=null,this.globalize=null,this.isSkipDocumentPath=null,this.isScrollerMoving=null,this.isScrollerMovingTimer=null,this.isMessageBoxOpen=null,this.notifyDialog=null,this.previousScrollbarWidth=0,!t.isNullOrUndefined(this.pdfViewer.annotationModule)&&this.pdfViewer.annotationModule.measureAnnotationModule&&this.pdfViewer.annotationModule.measureAnnotationModule.destroy()},e.prototype.unloadDocument=function(i){if(!this.clientSideRendering){var n="",o=e.sessionStorageManager.getItem(this.documentId+"_hashId"),r=e.sessionStorageManager.getItem(this.documentId+"_documentLiveCount"),a=e.sessionStorageManager.getItem(this.documentId+"_serviceURL");if(null!==(n=t.Browser.isIE||"edge"===t.Browser.info.name?decodeURI(o):i.hashId?i.hashId:o)){var s={hashId:n,documentLiveCount:r,action:"Unload",elementId:i.pdfViewer.element.id},l=e.sessionStorageManager.getItem(this.documentId+"_unload");if("undefined"===a||"null"===a||""===a||t.isNullOrUndefined(a))t.isBlazor()&&this.clearCache(l,s,i);else try{if("keepalive"in new Request("")){var d=this.setUnloadRequestHeaders(),A=this.pdfViewer.ajaxRequestSettings.withCredentials?"include":"omit";fetch(a+"/"+l,{method:"POST",credentials:A,headers:d,body:JSON.stringify(s)})}}catch(e){this.unloadRequestHandler=new Pi(this.pdfViewer),this.unloadRequestHandler.send(s)}}}this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.zoomFactor=1),this.formFieldCollection=[],this.textrequestLists=[],!i.pdfViewer.textSearchModule||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.pdfViewer.textSearchModule.showSearchBox(!1),this.pdfViewer.textSearchModule.isDocumentTextCollectionReady=!1),e.sessionStorageManager.clear()},e.prototype.clearCache=function(t,i,n){this.unloadRequestHandler=new Pi(this.pdfViewer),this.unloadRequestHandler.url=e.sessionStorageManager.getItem(this.documentId+"_serviceURL")+"/"+t,this.unloadRequestHandler.mode=!1,this.unloadRequestHandler.responseType=null,this.unloadRequestHandler.send(i),this.unloadRequestHandler.onSuccess=function(e){var i=e.data;i&&("object"!=typeof i&&-1===i.indexOf("Document")&&(n.onControlError(500,i,t),i=null),i&&n.pdfViewer.fireAjaxRequestSuccess(n.pdfViewer.serverActionSettings.unload,i))},this.unloadRequestHandler.onFailure=function(e){n.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,t)},this.unloadRequestHandler.onError=function(e){n.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,t)}},e.prototype.setUnloadRequestHeaders=function(){var e=new Headers;if(e.append("Content-Type","application/json;charset=UTF-8"),!t.isNullOrUndefined(this.pdfViewer.ajaxRequestSettings)&&!t.isNullOrUndefined(this.pdfViewer.ajaxRequestSettings.ajaxHeaders))for(var i=0;i<this.pdfViewer.ajaxRequestSettings.ajaxHeaders.length;i++)e.append(this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(i.toString(),10)].headerName,this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(i.toString(),10)].headerValue);return e},e.prototype.windowSessionStorageClear=function(){e.sessionStorageManager.removeItem(this.documentId+"_currentDocument"),e.sessionStorageManager.removeItem(this.documentId+"_serviceURL"),e.sessionStorageManager.removeItem(this.documentId+"_unload");for(var t=0;t<this.sessionStorage.length;t++)e.sessionStorageManager.removeItem(this.sessionStorage[parseInt(t.toString(),10)])},e.prototype.updateCommentPanel=function(){for(var e=document.querySelectorAll(".e-pv-more-options-button"),t=0;t<e.length;t++)e[parseInt(t.toString(),10)].style.visibility="hidden";for(var i=document.querySelectorAll(".e-pv-new-comments-div"),n=0;n<i.length;n++)i[parseInt(n.toString(),10)].style.display="none";for(var o=document.querySelectorAll(".e-pv-comments-border"),n=0;n<o.length;n++)o[parseInt(n.toString(),10)].classList.remove("e-pv-comments-border");for(var r=document.querySelectorAll(".e-editable-inline"),n=0;n<r.length;n++)r[parseInt(n.toString(),10)].style.display="none";for(var a=document.querySelectorAll(".e-pv-comments-select"),s=0;s<a.length;s++)a[parseInt(s.toString(),10)].classList.remove("e-pv-comments-select");for(var l=document.querySelectorAll(".e-pv-comments-div"),n=0;n<l.length;n++)l[parseInt(n.toString(),10)].style.minHeight="60px"},e.prototype.focusViewerContainer=function(e){var t=window.scrollX,i=window.scrollY,n=this.getScrollParent(this.viewerContainer),o=0,r=0;null!==n&&(o=n.scrollLeft,r=n.scrollTop),this.isgetFocused||this.viewerContainer.focus(),this.isgetFocused=!1,this.pdfViewer.annotation&&this.pdfViewer.annotation.stickyNotesAnnotationModule.accordionContainer&&this.updateCommentPanel(),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>-1||-1!==navigator.userAgent.indexOf("Edge"))&&null!==n?(n.scrollLeft=o,n.scrollTop=r):null!==n&&n.scrollTo(o,r),window.scrollTo(t,i)},e.prototype.getScrollParent=function(e){if(null===e||"HTML"===e.nodeName)return null;var t=getComputedStyle(e);return this.viewerContainer.id===e.id||"scroll"!==t.overflowY&&"auto"!==t.overflowY?this.getScrollParent(e.parentNode):e},e.prototype.createCorruptedPopup=function(e){var i=this,n=t.createElement("div",{id:this.pdfViewer.element.id+"_corrupted_popup",className:"e-pv-corrupted-popup"});e?this.pdfViewer.pageOrganizerModule.dialogDivElement.appendChild(n):this.pageContainer.appendChild(n),this.corruptPopup=new o.Dialog({showCloseIcon:!0,closeOnEscape:!0,isModal:!0,header:'<div class="e-pv-corrupted-popup-header"> '+this.pdfViewer.localeObj.getConstant("File Corrupted")+"</div>",visible:!1,buttons:[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.closeCorruptPopup.bind(this)}],target:this.pdfViewer.element,beforeClose:function(){i.corruptPopup.destroy(),i.getElement("_corrupted_popup").remove(),i.corruptPopup=null;var t=i.getElement("_loadingIndicator");e&&null!=i.pdfViewer.pageOrganizerModule.waitingPopup?Je(i.pdfViewer.pageOrganizerModule.waitingPopup):null!=t&&Je(t)}}),this.pdfViewer.enableRtl?(this.corruptPopup.content='<div id="e-pv-corrupted-templatertl" class="e-pv-notification-icon-rtl"> <div class="e-pv-corrupted-popup-content-rtl" tabindex="0">'+this.pdfViewer.localeObj.getConstant("File Corrupted Content")+"</div></div>",this.corruptPopup.enableRtl=!0):this.corruptPopup.content='<div id="e-pv-corrupted-template" class="e-pv-notification-icon"> <div class="e-pv-corrupted-popup-content" tabindex="0">'+this.pdfViewer.localeObj.getConstant("File Corrupted Content")+"</div></div>",this.corruptPopup.appendTo(n)},e.prototype.hideLoadingIndicator=function(){var e=this.getElement("_loadingIndicator");null!==e&&Je(e)},e.prototype.closeCorruptPopup=function(){this.corruptPopup.hide();var e=this.getElement("_loadingIndicator");this.isImportDoc&&null!=this.pdfViewer.pageOrganizerModule.waitingPopup?Je(this.pdfViewer.pageOrganizerModule.waitingPopup):null!=e&&Je(e)},e.prototype.createPrintPopup=function(){var e=document.getElementById(this.pdfViewer.element.id);this.printMainContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_printcontainer",className:"e-pv-print-popup-container"}),e.appendChild(this.printMainContainer),this.printMainContainer.style.display="none";var i=t.createElement("div",{id:this.pdfViewer.element.id+"_printLoadingIndicator",className:"e-pv-print-loading-container"});this.printMainContainer.appendChild(i),oe({target:i,cssClass:"e-spin-center"}),this.setLoaderProperties(i)},e.prototype.createGoToPagePopup=function(){var e=this,i=t.createElement("div",{id:this.pdfViewer.element.id+"_goTopage_popup",className:"e-pv-gotopage-popup"});this.goToPageElement=t.createElement("span",{id:this.pdfViewer.element.id+"_prompt"}),this.goToPageElement.textContent=this.pdfViewer.localeObj.getConstant("Enter pagenumber"),i.appendChild(this.goToPageElement);var r=t.createElement("span",{className:"e-pv-text-input"});this.goToPageInput=t.createElement("input",{id:this.pdfViewer.element.id+"_page_input",className:"e-input"}),this.goToPageInput.type="text",this.goToPageInput.style.maxWidth="80%",this.pageNoContainer=t.createElement("span",{className:".e-pv-number-ofpages"}),r.appendChild(this.goToPageInput),r.appendChild(this.pageNoContainer),i.appendChild(r),this.pageContainer.appendChild(i),this.goToPagePopup=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:this.pdfViewer.localeObj.getConstant("GoToPage"),visible:!1,buttons:[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.GoToPageCancelClick.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Apply"),disabled:!0,cssClass:"e-pv-gotopage-apply-btn",isPrimary:!0},click:this.GoToPageApplyClick.bind(this)}],close:this.closeGoToPagePopUp.bind(this)}),this.pdfViewer.enableRtl&&(this.goToPagePopup.enableRtl=!0),this.goToPagePopup.appendTo(i),t.isBlazor()||new n.NumericTextBox({format:"##",showSpinButton:!1}).appendTo(this.goToPageInput),this.goToPageInput.addEventListener("keyup",function(){var t=e.goToPageInput.value;""!==t&&parseFloat(t)>0&&e.pdfViewer.pageCount+1>parseFloat(t)?e.EnableApplyButton():e.DisableApplyButton()})},e.prototype.closeGoToPagePopUp=function(){this.goToPageInput.value="",this.DisableApplyButton()},e.prototype.EnableApplyButton=function(){document.getElementsByClassName("e-pv-gotopage-apply-btn")[0].removeAttribute("disabled")},e.prototype.DisableApplyButton=function(){document.getElementsByClassName("e-pv-gotopage-apply-btn")[0].setAttribute("disabled",!0)},e.prototype.GoToPageCancelClick=function(){this.goToPagePopup.hide()},e.prototype.GoToPageApplyClick=function(){this.goToPagePopup.hide();var e=this.goToPageInput.value;this.pdfViewer.navigation.goToPage(e),this.updateMobileScrollerPosition()},e.prototype.updateMobileScrollerPosition=function(){if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.mobileScrollerContainer){var e=(this.viewerContainer.scrollHeight-this.viewerContainer.clientHeight)/(this.viewerContainer.clientHeight-56),i=this.viewerContainer.scrollTop/e,n=this.pdfViewer.toolbarModule?this.toolbarHeight:0;this.mobileScrollerContainer.style.top=n+i+"px"}},e.prototype.createPasswordPopup=function(e){var i=this,n=t.createElement("div",{id:this.pdfViewer.element.id+"_password_popup",className:"e-pv-password-popup",attrs:{tabindex:"-1"}});this.promptElement=t.createElement("span",{id:this.pdfViewer.element.id+"_prompt",attrs:{tabindex:"-1"}}),this.promptElement.textContent=this.pdfViewer.localeObj.getConstant("Enter Password"),n.appendChild(this.promptElement);var r=t.createElement("span",{className:"e-input-group e-pv-password-input"});this.passwordInput=t.createElement("input",{id:this.pdfViewer.element.id+"_password_input",className:"e-input"}),this.passwordInput.type="password",this.passwordInput.name="Required",r.appendChild(this.passwordInput),n.appendChild(r),e?this.pdfViewer.pageOrganizerModule.dialogDivElement.appendChild(n):this.pageContainer.appendChild(n),this.passwordPopup=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:this.pdfViewer.localeObj.getConstant("Password Protected"),visible:!1,close:this.passwordCancel.bind(this),target:this.pdfViewer.element,beforeClose:function(){i.passwordPopup.destroy(),i.getElement("_password_popup").remove(),i.passwordPopup=null;var t=i.getElement("_loadingIndicator");e&&null!=i.pdfViewer.pageOrganizerModule.waitingPopup?Je(i.pdfViewer.pageOrganizerModule.waitingPopup):null!=t&&Je(t)}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.passwordPopup.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.applyPassword.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.passwordCancelClick.bind(this)}]:this.passwordPopup.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.passwordCancelClick.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.applyPassword.bind(this)}],this.pdfViewer.enableRtl&&(this.passwordPopup.enableRtl=!0),this.passwordPopup.appendTo(n),this.passwordInput.addEventListener("keyup",function(){""===i.passwordInput.value&&i.passwordDialogReset()}),this.passwordInput.addEventListener("focus",function(){i.passwordInput.parentElement.classList.add("e-input-focus")}),this.passwordInput.addEventListener("blur",function(){i.passwordInput.parentElement.classList.remove("e-input-focus")})},e.prototype.passwordCancel=function(e){e.isInteraction&&(this.isImportDoc||this.pdfViewer.pageOrganizerModule||this.clear(!1),this.passwordDialogReset(),this.passwordInput.value="");var t=this.getElement("_loadingIndicator");this.isImportDoc&&null!=this.pdfViewer.pageOrganizerModule.waitingPopup?Je(this.pdfViewer.pageOrganizerModule.waitingPopup):null!==t&&Je(t)},e.prototype.passwordCancelClick=function(){this.isImportDoc||this.pdfViewer.pageOrganizerModule||this.clear(!1),this.passwordDialogReset(),this.passwordPopup.hide();var e=this.getElement("_loadingIndicator");this.isImportDoc&&null!=this.pdfViewer.pageOrganizerModule.waitingPopup?Je(this.pdfViewer.pageOrganizerModule.waitingPopup):null!==e&&Je(e)},e.prototype.passwordDialogReset=function(){t.isBlazor()||this.promptElement&&(this.promptElement.classList.remove("e-pv-password-error"),this.promptElement.textContent=this.pdfViewer.localeObj.getConstant("Enter Password"),this.passwordInput.value="")},e.prototype.applyPassword=function(){if(!t.isBlazor()){var e=this.passwordInput.value;!t.isNullOrUndefined(e)&&e.length>0&&(this.isImportDoc&&this.pdfViewer.pageOrganizerModule?this.pdfViewer.pageOrganizerModule.loadImportDoc(this.pdfViewer.pageOrganizerModule.importedDocumentData,e,!0):(this.pdfViewer.load(this.document,e),this.focusViewerContainer()))}},e.prototype.createFileInputElement=function(){this.pdfViewer.enableAnnotationToolbar&&this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.createCustomStampElement(),this.signatureModule&&this.signatureModule.createSignatureFileElement()},e.prototype.wireEvents=function(){var e=this;this.isDeviceiOS=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,this.isMacSafari=navigator.userAgent.indexOf("Safari")>-1&&-1===navigator.userAgent.indexOf("Chrome")&&!this.isDeviceiOS,this.isWebkitMobile=/Chrome/.test(navigator.userAgent)||/Google Inc/.test(navigator.vendor)||-1!==navigator.userAgent.indexOf("Safari")||-1!==navigator.userAgent.indexOf("WebKit"),this.viewerContainer.addEventListener("scroll",this.viewerContainerOnScroll,!0),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.viewerContainer.addEventListener("touchmove",this.viewerContainerOnScroll,!0),this.viewerContainer.addEventListener("mousedown",this.viewerContainerOnMousedown),this.viewerContainer.addEventListener("mouseup",this.viewerContainerOnMouseup),this.viewerContainer.addEventListener("wheel",this.detectTouchPad,!1),this.viewerContainer.addEventListener("wheel",this.viewerContainerOnMouseWheel),this.isMacSafari&&(window.addEventListener("gesturestart",function(e){return e.preventDefault()}),window.addEventListener("gesturechange",function(e){return e.preventDefault()}),window.addEventListener("gestureend",function(e){return e.preventDefault()}),this.viewerContainer.addEventListener("gesturestart",this.handleMacGestureStart,!1),this.viewerContainer.addEventListener("gesturechange",this.handleMacGestureChange,!1),this.viewerContainer.addEventListener("gestureend",this.handleMacGestureEnd,!1)),this.viewerContainer.addEventListener("mousemove",this.viewerContainerOnMousemove),this.viewerContainer.addEventListener("mouseleave",this.viewerContainerOnMouseLeave),this.viewerContainer.addEventListener("mouseenter",this.viewerContainerOnMouseEnter),this.viewerContainer.addEventListener("mouseover",this.viewerContainerOnMouseOver),this.viewerContainer.addEventListener("click",this.viewerContainerOnClick),this.viewerContainer.addEventListener("dblclick",this.viewerContainerOnClick),this.viewerContainer.addEventListener("dragstart",this.viewerContainerOnDragStart),this.pdfViewer.element.addEventListener("keydown",this.viewerContainerOnKeyDown),window.addEventListener("keydown",this.onWindowKeyDown),window.addEventListener("mouseup",this.onWindowMouseUp),window.addEventListener("touchend",this.onWindowTouchEnd),this.unload=function(){null!==e.pdfViewerRunner&&void 0!==e.pdfViewerRunner&&e.pdfViewerRunner.terminate()},this.unloadDocument(this),window.addEventListener("unload",this.unload),window.addEventListener("beforeunload",this.clearSessionStorage),window.addEventListener("resize",this.onWindowResize),-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Edge")||-1!==navigator.userAgent.indexOf("Trident")?(this.viewerContainer.addEventListener("pointerdown",this.viewerContainerOnPointerDown),this.viewerContainer.addEventListener("pointermove",this.viewerContainerOnPointerMove),this.viewerContainer.addEventListener("pointerup",this.viewerContainerOnPointerEnd),this.viewerContainer.addEventListener("pointerleave",this.viewerContainerOnPointerEnd)):(this.viewerContainer.addEventListener("touchstart",this.viewerContainerOnTouchStart),this.isWebkitMobile&&this.isDeviceiOS&&this.viewerContainer.addEventListener("touchmove",function(e){t.isNullOrUndefined(e.scale)||1===e.scale||e.preventDefault()},{passive:!1}),this.viewerContainer.addEventListener("touchmove",this.viewerContainerOnTouchMove),this.viewerContainer.addEventListener("touchend",this.viewerContainerOnTouchEnd),this.viewerContainer.addEventListener("touchleave",this.viewerContainerOnTouchEnd),this.viewerContainer.addEventListener("touchcancel",this.viewerContainerOnTouchEnd))},e.prototype.unWireEvents=function(){var e=this;this.viewerContainer&&(this.viewerContainer.removeEventListener("selectstart",function(){return!1}),this.viewerContainer.removeEventListener("scroll",this.viewerContainerOnScroll,!0),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.viewerContainer.removeEventListener("touchmove",this.viewerContainerOnScroll,!0),this.viewerContainer.removeEventListener("mousedown",this.viewerContainerOnMousedown),this.viewerContainer.removeEventListener("mouseup",this.viewerContainerOnMouseup),this.viewerContainer.removeEventListener("wheel",this.detectTouchPad,!1),this.viewerContainer.removeEventListener("wheel",this.viewerContainerOnMouseWheel),this.isMacSafari&&(window.removeEventListener("gesturestart",function(e){return e.preventDefault()}),window.removeEventListener("gesturechange",function(e){return e.preventDefault()}),window.removeEventListener("gestureend",function(e){return e.preventDefault()}),this.viewerContainer.removeEventListener("gesturestart",this.handleMacGestureStart,!1),this.viewerContainer.removeEventListener("gesturechange",this.handleMacGestureChange,!1),this.viewerContainer.removeEventListener("gestureend",this.handleMacGestureEnd,!1)),this.viewerContainer.removeEventListener("mousemove",this.viewerContainerOnMousemove),this.viewerContainer.removeEventListener("mouseleave",this.viewerContainerOnMouseLeave),this.viewerContainer.removeEventListener("mouseenter",this.viewerContainerOnMouseEnter),this.viewerContainer.removeEventListener("mouseover",this.viewerContainerOnMouseOver),this.viewerContainer.removeEventListener("click",this.viewerContainerOnClick),this.viewerContainer.removeEventListener("dragstart",this.viewerContainerOnDragStart),this.viewerContainer.removeEventListener("contextmenu",this.viewerContainerOnContextMenuClick),this.pdfViewer.element.removeEventListener("keydown",this.viewerContainerOnKeyDown),window.removeEventListener("keydown",this.onWindowKeyDown),window.removeEventListener("mouseup",this.onWindowMouseUp),window.removeEventListener("touchend",this.onWindowTouchEnd),window.removeEventListener("unload",this.unload),window.removeEventListener("resize",this.onWindowResize),-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Edge")||-1!==navigator.userAgent.indexOf("Trident")?(this.viewerContainer.removeEventListener("pointerdown",this.viewerContainerOnPointerDown),this.viewerContainer.removeEventListener("pointermove",this.viewerContainerOnPointerMove),this.viewerContainer.removeEventListener("pointerup",this.viewerContainerOnPointerEnd),this.viewerContainer.removeEventListener("pointerleave",this.viewerContainerOnPointerEnd)):(this.viewerContainer.removeEventListener("touchstart",this.viewerContainerOnTouchStart),this.isWebkitMobile&&this.isDeviceiOS&&this.viewerContainer.removeEventListener("touchmove",function(e){t.isNullOrUndefined(e.scale)||1===e.scale||e.preventDefault()},!1),this.viewerContainer.removeEventListener("touchmove",this.viewerContainerOnTouchMove),this.viewerContainer.removeEventListener("touchend",this.viewerContainerOnTouchEnd),this.viewerContainer.removeEventListener("touchleave",this.viewerContainerOnTouchEnd),this.viewerContainer.removeEventListener("touchcancel",this.viewerContainerOnTouchEnd))),this.mobileScrollerContainer&&(this.mobileScrollerContainer.removeEventListener("touchstart",this.mobileScrollContainerDown.bind(this)),this.mobileScrollerContainer.removeEventListener("touchend",this.mobileScrollContainerEnd.bind(this)),this.mobileScrollerContainer.removeEventListener("touchmove",this.viewerContainerOnScroll.bind(this),!0)),this.goToPageInput&&this.goToPageInput.removeEventListener("keyup",function(){var t=e.goToPageInput.value;""!==t&&parseFloat(t)>0&&e.pdfViewer.pageCount+1>parseFloat(t)?e.EnableApplyButton():e.DisableApplyButton()}),this.passwordInput&&(this.passwordInput.removeEventListener("keyup",function(){""===e.passwordInput.value&&e.passwordDialogReset()}),this.passwordInput.removeEventListener("focus",function(){e.passwordInput.parentElement.classList.add("e-input-focus")}),this.passwordInput.removeEventListener("blur",function(){e.passwordInput.parentElement.classList.remove("e-input-focus")}))},e.prototype.updateZoomValue=function(){this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isAutoZoom?this.pdfViewer.magnificationModule.fitToAuto():"FitToWidth"!==this.pdfViewer.zoomMode&&"fitToWidth"===this.pdfViewer.magnificationModule.fitType?this.pdfViewer.magnificationModule.fitToWidth():"FitToPage"!==this.pdfViewer.zoomMode&&"fitToPage"===this.pdfViewer.magnificationModule.fitType&&this.pdfViewer.magnificationModule.fitToPage());for(var e=0;e<this.pageCount;e++)this.applyLeftPosition(e)},e.prototype.updateFreeTextProperties=function(e){this.pdfViewer.enableShapeLabel&&(this.pdfViewer.shapeLabelSettings.fillColor&&(e.labelFillColor=this.pdfViewer.shapeLabelSettings.fillColor),this.pdfViewer.shapeLabelSettings.fontColor&&(e.fontColor=this.pdfViewer.shapeLabelSettings.fontColor),this.pdfViewer.shapeLabelSettings.fontSize&&(e.fontSize=this.pdfViewer.shapeLabelSettings.fontSize),this.pdfViewer.shapeLabelSettings.fontFamily&&(e.fontFamily=this.pdfViewer.shapeLabelSettings.fontFamily),this.pdfViewer.shapeLabelSettings.opacity&&(e.labelOpacity=this.pdfViewer.shapeLabelSettings.opacity),this.pdfViewer.shapeLabelSettings.labelContent&&(e.labelContent=this.pdfViewer.shapeLabelSettings.labelContent))},e.prototype.mouseDownHandler=function(e){var i,n=!1,o=[],r=[];if(e&&e.target&&(this.mouseDownEvent=e,this.contextMenuModule.currentTarget=e.target),this.pdfViewer.annotationModule&&(n=this.pdfViewer.annotationModule.isEnableDelete()),n||r.push("DeleteContext"),"None"===this.pdfViewer.contextMenuOption)i=!0;else if(this.pdfViewer.textSelectionModule||this.isShapeBasedAnnotationsEnabled()){if(e){var a=this.isClickWithinSelectionBounds(e);this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus?(this.isFreeTextContextMenu=!0,this.pdfViewer.annotation.freeTextAnnotationModule&&!this.pdfViewer.annotation.freeTextAnnotationModule.isTextSelected&&(r.push("Cut"),r.push("Copy")),this.pdfViewer.annotation.freeTextAnnotationModule&&""===this.pdfViewer.annotation.freeTextAnnotationModule.selectedText&&r.push("Paste"),o.push("HighlightContext"),o.push("UnderlineContext"),o.push("StrikethroughContext"),o.push("SquigglyContext"),o.push("ScaleRatio"),o.push("Properties"),o.push("Comment"),o.push("DeleteContext")):a&&this.pdfViewer.textSelectionModule?(!e.target.classList.contains("e-pv-maintaincontent")&&e.target.classList.contains("e-pv-text")||e.target.classList.contains("e-pv-text-layer")?this.checkIsNormalText()&&(i=!0):(t.Browser.isIE||"edge"===t.Browser.info.name)&&e.target.classList.contains("e-pv-page-container")&&(i=!0),o.push("Cut"),o.push("Paste"),o.push("DeleteContext"),o.push("ScaleRatio"),o.push("Comment"),o.push("Properties")):0===this.pdfViewer.selectedItems.annotations.length||"HandWrittenSignature"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureImage"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?0!==this.pdfViewer.selectedItems.annotations.length&&"Path"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.shapeMenuItems(o,r,!0):this.pdfViewer.annotation&&this.pdfViewer.annotation.isShapeCopied&&(e.target.classList.contains("e-pv-text-layer")||e.target.classList.contains("e-pv-text"))&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?(o.push("Properties"),this.shapeMenuItems(o,r,!1)):this.isCalibrateAnnotationModule()&&this.pdfViewer.annotationModule.measureAnnotationModule.currentAnnotationMode?(o.push("HighlightContext"),o.push("UnderlineContext"),o.push("StrikethroughContext"),o.push("SquigglyContext"),o.push("Properties"),r.push("Cut"),r.push("Copy"),r.push("Paste"),r.push("DeleteContext"),r.push("Comment")):this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?(o.push("HighlightContext"),o.push("UnderlineContext"),o.push("StrikethroughContext"),o.push("SquigglyContext"),o.push("Properties"),o.push("Cut"),o.push("Copy"),o.push("Paste"),o.push("ScaleRatio")):i=!0:this.shapeMenuItems(o,r,!1,!0)}else this.pdfViewer.textSelectionModule&&"MouseUp"===this.pdfViewer.contextMenuOption?(o.push("Cut"),o.push("Paste"),o.push("DeleteContext"),o.push("ScaleRatio"),o.push("Comment"),o.push("Properties")):0===this.pdfViewer.selectedItems.annotations.length&&(o.push("Cut"),o.push("Paste"),o.push("DeleteContext"),o.push("ScaleRatio"),o.push("Properties"));this.pdfViewer.enableCommentPanel||r.push("Comment")}else i=!0;var s={hidenItems:o,disabledItems:r,isCancel:i};this.pdfViewer._dotnetInstance.invokeMethodAsync("MouseDownHandler",s)},e.prototype.OnItemSelected=function(e){var t=this.contextMenuModule.currentTarget,i=document.getElementById(this.pdfViewer.element.id+"_commantPanel"),n=!(!i||"block"!==i.style.display);switch(e){case this.pdfViewer.localeObj.getConstant("Copy"):this.CopyItemSelected();break;case this.pdfViewer.localeObj.getConstant("Highlight context"):this.TextMarkUpSelected("Highlight"),n||this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Underline context"):this.TextMarkUpSelected("Underline"),n||this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Strikethrough context"):this.TextMarkUpSelected("Strikethrough"),n||this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Squiggly context"):this.TextMarkUpSelected("Squiggly"),n||this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Properties"):this.PropertiesItemSelected();break;case this.pdfViewer.localeObj.getConstant("Cut"):this.CutItemSelected(t),this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Paste"):this.pasteItemSelected(t);break;case this.pdfViewer.localeObj.getConstant("Delete Context"):this.DeleteItemSelected(),this.focusViewerContainer();break;case this.pdfViewer.localeObj.getConstant("Scale Ratio"):this.ScaleRatioSelected();break;case this.pdfViewer.localeObj.getConstant("Comment"):this.CommentItemSelected()}},e.prototype.CommentItemSelected=function(){if(this.pdfViewer.annotation&&(this.pdfViewer.annotation.showCommentsPanel(),0!==this.pdfViewer.selectedItems.annotations.length||this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)){var e=void 0;e=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation:this.pdfViewer.selectedItems.annotations[0];var t=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+this.pdfViewer.currentPageNumber);t&&t.ej2_instances[0].expandItem(!0);var i=document.getElementById(e.annotName);i&&(i.classList.contains("e-pv-comments-border")||i.firstChild.click())}},e.prototype.ScaleRatioSelected=function(){this.isCalibrateAnnotationModule()&&this.pdfViewer.annotation.measureAnnotationModule.createScaleRatioWindow()},e.prototype.DeleteItemSelected=function(){this.pdfViewer.formDesignerModule&&0!==this.pdfViewer.selectedItems.formFields.length?this.pdfViewer.formDesignerModule.deleteFormField(this.pdfViewer.selectedItems.formFields[0].id):this.pdfViewer.annotation&&this.pdfViewer.annotation.deleteAnnotation()},e.prototype.pasteItemSelected=function(e){this.isFreeTextContextMenu||this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus&&e&&"free-text-input"===e.className&&"TEXTAREA"===e.tagName?(this.pdfViewer.annotation.freeTextAnnotationModule.pasteSelectedText(e),this.contextMenuModule.close()):(this.pdfViewer.paste(),this.contextMenuModule.previousAction="Paste")},e.prototype.CutItemSelected=function(e){if(this.isFreeTextContextMenu||this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus&&e&&"free-text-input"===e.className&&"TEXTAREA"===e.tagName)this.pdfViewer.annotation.freeTextAnnotationModule.cutSelectedText(e),this.contextMenuModule.close();else if(1===this.pdfViewer.selectedItems.annotations.length){this.pdfViewer.selectedItems.annotations[0].pageIndex;this.pdfViewer.cut(),this.contextMenuModule.previousAction="Cut"}else 1===this.pdfViewer.selectedItems.formFields.length&&(this.pdfViewer.cut(),this.contextMenuModule.previousAction="Cut")},e.prototype.CopyItemSelected=function(){var e=!1;this.isFreeTextContextMenu||this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus?(this.pdfViewer.annotation.freeTextAnnotationModule.copySelectedText(),this.contextMenuModule.close(),e=!0):this.pdfViewer.textSelectionModule&&(this.pdfViewer.textSelectionModule.copyText(),this.contextMenuModule.close()),this.pdfViewer.selectedItems.annotations.length&&!e?(this.pdfViewer.copy(),this.contextMenuModule.previousAction="Copy"):this.pdfViewer.selectedItems.formFields.length>0&&(this.pdfViewer.copy(),this.contextMenuModule.previousAction="Copy")},e.prototype.PropertiesItemSelected=function(){0===this.pdfViewer.selectedItems.annotations.length||"Line"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"LineWidthArrowHead"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Distance"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?0!==this.pdfViewer.selectedItems.formFields.length&&this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&this.pdfViewer.formDesigner.createPropertiesWindow():this.pdfViewer.annotation.createPropertiesWindow()},e.prototype.TextMarkUpSelected=function(e){this.pdfViewer.annotation&&this.pdfViewer.annotation.textMarkupAnnotationModule&&(this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained=!1,this.pdfViewer.annotation.textMarkupAnnotationModule.drawTextMarkupAnnotations(e),this.pdfViewer.annotation.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1,this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode="",this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained=!0)},e.prototype.shapeMenuItems=function(e,t,i,n){this.pdfViewer.annotation&&!this.pdfViewer.annotation.isShapeCopied&&t.push("Paste"),e.push("HighlightContext"),e.push("UnderlineContext"),e.push("StrikethroughContext"),e.push("SquigglyContext"),e.push("ScaleRatio"),i?"Line"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"LineWidthArrowHead"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Distance"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&e.push("Properties"):n?(e.push("Properties"),e.push("Comment")):(e.push("Cut"),e.push("Copy"),e.push("DeleteContext"),e.push("Comment"))},e.prototype.checkIsRtlText=function(e){return new RegExp("^[^A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02B8\\u0300-\\u0590\\u0800-\\u1FFF\\u2C00-\\uFB1C\\uFDFE-\\uFE6F\\uFEFD-\\uFFFF]*[\\u0591-\\u07FF\\uFB1D-\\uFDFD\\uFE70-\\uFEFC]").test(e)},e.prototype.isClickWithinSelectionBounds=function(e){var i,n=!1,o=this.currentPageNumber-5<0?0:this.currentPageNumber-5,r=this.currentPageNumber-5>this.pageCount?this.pageCount:this.currentPageNumber+5;if(this.pdfViewer.textSelectionModule){for(var a=o;a<r;a++)if(a>=0&&(i=this.pdfViewer.textSelectionModule.getCurrentSelectionBounds(a))){var s=i;if(this.getHorizontalValue(s.left,a)<e.clientX&&this.getHorizontalValue(s.right,a)>e.clientX&&this.getVerticalValue(s.top,a)<e.clientY&&this.getVerticalValue(s.bottom,a)>e.clientY||this.pdfViewer.textSelectionModule.selectionRangeArray[0].rectangleBounds.length>=1&&0!==e.clientX&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode){n=!0;break}}(t.Browser.isDevice&&this.pdfViewer.textSelectionModule.selectionRangeArray&&1===this.pdfViewer.textSelectionModule.selectionRangeArray.length||(t.Browser.isIE||"edge"===t.Browser.info.name)&&i||this.pdfViewer.textSelectionModule.isTouchSelection)&&this.pdfViewer.textSelectionModule.selectionRangeArray.length>0&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation&&(n=!0)}return n},e.prototype.getHorizontalClientValue=function(e){return e-this.getElement("_pageDiv_"+(this.currentPageNumber-1)).getBoundingClientRect().left},e.prototype.getVerticalClientValue=function(e){return e-this.getElement("_pageDiv_"+(this.currentPageNumber-1)).getBoundingClientRect().top},e.prototype.getHorizontalValue=function(e,t){var i=this.getElement("_pageDiv_"+(t||this.currentPageNumber-1)).getBoundingClientRect();return e*this.getZoomFactor()+i.left},e.prototype.getVerticalValue=function(e,t){var i=this.getElement("_pageDiv_"+(t||this.currentPageNumber-1)).getBoundingClientRect();return e*this.getZoomFactor()+i.top},e.prototype.checkIsNormalText=function(){var e=!0,t="",i=this.pdfViewer.textSelectionModule;return i&&i.selectionRangeArray&&1===i.selectionRangeArray.length?t=i.selectionRangeArray[0].textContent:window.getSelection()&&window.getSelection().anchorNode&&(t=window.getSelection().toString()),""!==t&&this.checkIsRtlText(t)&&(e=!1),e},e.prototype.isTextSearchBoxOpen=function(){var e,t=document.getElementById(this.pdfViewer.element.id+"_search_box");return t&&(e="none"!==t.style.display),e},e.prototype.isTargetClassNameValid=function(e){return"e-pv-formfield-input"!==e.target.className&&"e-pv-formfield-textarea"!==e.target.className&&"e-pv-properties-name-edit-input e-input e-lib e-textbox e-control"!==e.target.className&&"e-pv-properties-value-input e-input e-lib e-textbox e-control"!==e.target.className&&e.target.id!==this.pdfViewer.element.id+"_search_input"&&"e-input-group e-pv-search-input e-input-focus"!==e.target.className&&"e-pdfviewer-formFields"!==e.target.className},e.prototype.DeleteKeyPressed=function(e){var t,i=document.getElementById(this.pdfViewer.element.id+"_search_box");if(i&&(t="none"!==i.style.display),this.pdfViewer.formDesignerModule&&!this.pdfViewer.formDesigner.isPropertyDialogOpen&&this.pdfViewer.designerMode&&0!==this.pdfViewer.selectedItems.formFields.length&&!t)this.pdfViewer.formDesignerModule.deleteFormField(this.pdfViewer.selectedItems.formFields[0].id);else if(this.pdfViewer.annotation&&!this.pdfViewer.designerMode&&e.srcElement.parentElement.classList&&!e.srcElement.parentElement.classList.contains("e-input-focus")&&(!this.isTextMarkupAnnotationModule()||this.getPopupNoteVisibleStatus()||t||this.pdfViewer.annotationModule.deleteAnnotation(),this.pdfViewer.selectedItems.annotations.length>0)){var n=this.pdfViewer.selectedItems.annotations[0],o=!0,r=n.shapeAnnotationType;if("Path"===r||"SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType||"HandWrittenSignature"===r||"SignatureText"===r||"SignatureImage"===r){var a=document.getElementById(n.id);a&&a.disabled&&(o=!0)}o||(n.annotationSettings&&n.annotationSettings.isLock?this.pdfViewer.annotationModule.checkAllowedInteractions("Delete",n)&&(this.pdfViewer.remove(n),this.pdfViewer.renderSelector(this.pdfViewer.annotation.getEventPageNumber(e))):(this.pdfViewer.remove(n),this.pdfViewer.renderSelector(this.pdfViewer.annotation.getEventPageNumber(e))))}},e.prototype.initiatePanning=function(){this.isPanMode=!0,this.textLayer.modifyTextCursor(!1),this.disableTextSelectionMode(),this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule&&this.pdfViewer.toolbar.annotationToolbarModule.deselectAllItems()},e.prototype.initiateTextSelectMode=function(){this.isPanMode=!1,this.viewerContainer&&(this.viewerContainer.style.cursor="auto",this.pdfViewer.textSelectionModule&&(this.textLayer.modifyTextCursor(!0),this.pdfViewer.textSelectionModule.enableTextSelectionMode()),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||t.isBlazor()||this.enableAnnotationAddTools(!0))},e.prototype.initiateTextSelection=function(){this.pdfViewer.toolbar&&!this.pdfViewer.toolbar.isSelectionToolDisabled&&(this.initiateTextSelectMode(),this.pdfViewer.toolbar.updateInteractionTools(!0))},e.prototype.enableAnnotationAddTools=function(e){this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.enableAnnotationAddTools(e)},e.prototype.applySelection=function(){null!==window.getSelection().anchorNode&&this.pdfViewer.textSelectionModule.applySpanForSelection(),this.isViewerContainerDoubleClick=!1},e.prototype.isDesignerMode=function(e){var t=!1;return 0===this.pdfViewer.selectedItems.annotations.length||"HandWrittenSignature"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureImage"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?0!==this.pdfViewer.selectedItems.annotations.length&&"Path"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?t=!0:0!==this.pdfViewer.selectedItems.formFields.length&&this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&this.pdfViewer.designerMode?t=!0:this.pdfViewer.annotation&&this.pdfViewer.annotation.isShapeCopied&&(e.classList.contains("e-pv-text-layer")||e.classList.contains("e-pv-text"))&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?t=!0:this.pdfViewer.formDesigner&&this.pdfViewer.formDesigner.isShapeCopied&&(e.classList.contains("e-pv-text-layer")||e.classList.contains("e-pv-text"))&&(t=!0):t=!0,this.designerModetarget=e,t},e.prototype.handleTaps=function(e,i){var n=this;if(this.isDeviceiOS){var o=j(i,this,this.pdfViewer),r=!t.isNullOrUndefined(this.pdfViewer.annotation)&&!t.isNullOrUndefined(this.pdfViewer.annotation.freeTextAnnotationModule)&&!this.pdfViewer.annotation.freeTextAnnotationModule.isNewFreeTextAnnot&&(!o||!this.pdfViewer.selectedItems.annotations[0]||o.id!==this.pdfViewer.selectedItems.annotations[0].id)&&document.activeElement.classList.contains("free-text-input")&&this.isFreeTextAnnotation(this.pdfViewer.selectedItems.annotations);this.singleTapTimer?this.pdfViewer.enablePinchZoom&&(++this.tapCount>2&&(this.tapCount=2),clearTimeout(this.singleTapTimer),this.singleTapTimer=null,this.onDoubleTap(e)):(this.singleTapTimer=setTimeout(function(){!r||t.isNullOrUndefined(n.pdfViewer.selectedItems)||t.isNullOrUndefined(n.pdfViewer.selectedItems.annotations[0])||(n.pdfViewer.clearSelection(n.pdfViewer.selectedItems.annotations[0].pageIndex),n.focusViewerContainer(!0)),n.onSingleTap(e)},300),this.tapCount++)}else this.singleTapTimer?this.pdfViewer.enablePinchZoom&&(++this.tapCount>2&&(this.tapCount=2),clearTimeout(this.singleTapTimer),this.singleTapTimer=null,this.onDoubleTap(e)):(this.singleTapTimer=setTimeout(function(){n.onSingleTap(e)},300),this.tapCount++)},e.prototype.handleTextBoxTaps=function(e){var t=this;if(setTimeout(function(){t.inputTapCount=0},300),this.inputTapCount++,this.isDeviceiOS)this.onTextBoxDoubleTap(e);else setTimeout(function(){t.onTextBoxDoubleTap(e)},200);this.inputTapCount>2&&(this.inputTapCount=0)},e.prototype.onTextBoxDoubleTap=function(e){e[0].target;if(2===this.inputTapCount&&0!==this.pdfViewer.selectedItems.annotations.length){if(this.pdfViewer.annotationModule){var t=this.pdfViewer.selectedItems.annotations[0];this.isDeviceiOS&&document.activeElement.classList.contains("free-text-input")&&this.isFreeTextAnnotation(this.pdfViewer.selectedItems.annotations)&&this.focusViewerContainer(!0),this.pdfViewer.annotationModule.annotationSelect(t.annotName,t.pageIndex,t,null,!0)}if(this.isFreeTextAnnotation(this.pdfViewer.selectedItems.annotations)&&!this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus){(n={}).x=this.pdfViewer.selectedItems.annotations[0].bounds.x,n.y=this.pdfViewer.selectedItems.annotations[0].bounds.y;var i=void 0;i="diagram_helper"===this.pdfViewer.selectedItems.annotations[0].id?this.pdfViewer.nameTable[this.eventArgs.source.id]:this.pdfViewer.selectedItems.annotations[0],this.pdfViewer.annotation.freeTextAnnotationModule.addInuptElemet(n,i)}else if(this.pdfViewer.selectedItems.annotations[0]&&this.pdfViewer.selectedItems.annotations[0].enableShapeLabel&&!this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus){var n={};n.x=this.pdfViewer.selectedItems.annotations[0].bounds.x,n.y=this.pdfViewer.selectedItems.annotations[0].bounds.y,this.pdfViewer.annotation.inputElementModule.editLabel(n,this.pdfViewer.selectedItems.annotations[0])}}},e.prototype.onSingleTap=function(e){var i=e[0].target,n=!1;if(this.singleTapTimer=null,i&&(i.classList.contains("e-pdfviewer-formFields")||i.classList.contains("e-pdfviewer-ListBox")||i.classList.contains("e-pdfviewer-signatureformfields"))&&(n=!0),!this.isLongTouchPropagated&&!this.navigationPane.isNavigationToolbarVisible&&!n&&this.pdfViewer.toolbarModule){if(this.touchClientX>=e[0].clientX-10&&this.touchClientX<=e[0].clientX+10&&this.touchClientY>=e[0].clientY-10&&this.touchClientY<=e[0].clientY+10){if(this.isTapHidden)t.isBlazor()&&(this.viewerContainer.scrollTop+=this.pdfViewer.element.querySelector(".e-pv-mobile-toolbar").clientHeight*this.getZoomFactor());else if(t.isBlazor()&&(this.viewerContainer.scrollTop-=this.pdfViewer.element.querySelector(".e-pv-mobile-toolbar").clientHeight*this.getZoomFactor()),this.pdfViewer.toolbar.moreDropDown){var o=this.getElement("_more_option-
10popup");o.firstElementChild&&(o.classList.remove("e-popup-open"),o.classList.add("e-popup-close"),o.removeChild(o.firstElementChild))}this.isTapHidden&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?(this.mobileScrollerContainer.style.display="",this.updateMobileScrollerPosition()):t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&null==this.getSelectTextMarkupCurrentPage()&&(this.mobileScrollerContainer.style.display="none"),null==this.getSelectTextMarkupCurrentPage()&&(t.isBlazor()?this.blazorUIAdaptor.tapOnMobileDevice(this.isTapHidden):this.pdfViewer.enableToolbar&&this.pdfViewer.toolbarModule.showToolbar(!0),this.isTapHidden=!this.isTapHidden)}this.tapCount=0}},e.prototype.onDoubleTap=function(e){var t=e[0].target,i=!1;t&&(t.classList.contains("e-pdfviewer-formFields")||t.classList.contains("e-pdfviewer-ListBox")||t.classList.contains("e-pdfviewer-signatureformfields"))&&(i=!0),2!==this.tapCount||i||(this.tapCount=0,this.touchClientX>=parseInt((e[0].clientX-10).toString(),10)&&this.touchClientX<=e[0].clientX+10&&this.touchClientY>=e[0].clientY-10&&this.touchClientY<=e[0].clientY+30&&(this.pdfViewer.magnification&&1!==this.pdfViewer.selectedItems.annotations.length&&this.pdfViewer.magnification.onDoubleTapMagnification(),this.viewerContainer.style.height=this.updatePageHeight(this.pdfViewer.element.getBoundingClientRect().height,this.toolbarHeight),this.isTapHidden=!1,clearTimeout(this.singleTapTimer),this.singleTapTimer=null))},e.prototype.preventTouchEvent=function(e){this.pdfViewer.textSelectionModule&&(this.isPanMode||!this.pdfViewer.enableTextSelection||this.isTextSelectionDisabled||null!=this.getSelectTextMarkupCurrentPage()||this.isWebkitMobile&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(e.preventDefault(),e.stopPropagation()))},e.prototype.renderStampAnnotation=function(e){if(this.pdfViewer.annotation){var t=this.getZoomFactor(),i=this.pdfViewer.annotation.getEventPageNumber(e),n=this.getElement("_pageDiv_"+i);if(this.pdfViewer.enableStampAnnotations){var o=this.pdfViewer.annotationModule.stampAnnotationModule;if(o&&o.isStampAnnotSelected&&n){s=n.getBoundingClientRect();if("touchend"===e.type&&"Image"===this.pdfViewer.annotationModule.stampAnnotationModule.currentStampAnnotation.shapeAnnotationType){var r=this.pdfViewer.annotationModule.stampAnnotationModule.currentStampAnnotation;r.pageIndex=i,r.bounds.x=(e.changedTouches[0].clientX-s.left)/t,r.bounds.y=(e.changedTouches[0].clientY-s.top)/t,o.updateDeleteItems(i,r,r.opacity),this.pdfViewer.add(r);var a=this.getAnnotationCanvas("_annotationCanvas_",i);this.pdfViewer.renderDrawing(a,i)}else o.renderStamp((e.changedTouches[0].clientX-s.left)/t,(e.changedTouches[0].clientY-s.top)/t,null,null,i,null,null,null,null);o.isStampAnnotSelected=!1}this.pdfViewer.annotation.onAnnotationMouseDown()}if(this.pdfViewer.enableHandwrittenSignature&&this.isSignatureAdded&&n){var s=n.getBoundingClientRect();this.currentSignatureAnnot.pageIndex=i,this.signatureModule.renderSignature((e.changedTouches[0].clientX-s.left)/t,(e.changedTouches[0].clientY-s.top)/t),this.isSignatureAdded=!1}1===e.touches.length&&this.isTextMarkupAnnotationModule()&&!this.getPopupNoteVisibleStatus()&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.onTextMarkupAnnotationTouchEnd(e)}},e.prototype.focusOnViewerContainer=function(){var e=document.activeElement;return document.querySelector(".e-pv-viewer-container").contains(e)},e.prototype.initPageDiv=function(e){if(t.isBlazor()||this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateTotalPage(),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.mobiletotalPageContainer&&(this.mobiletotalPageContainer.innerHTML=this.pageCount.toString(),this.pageNoContainer.innerHTML="(1-"+this.pageCount.toString()+")"),this.pageCount>0){var i=this.getPageLimit();if(this.pageSizeCollection(e,0,i),this.pageCount<=100){for(var n=this.renderPageContainerLimit(i),o=0;o<n;o++)this.renderPageContainer(o,this.getPageWidth(o),this.getPageHeight(o),this.getPageTop(o));this.loadPage(0)}this.pageContainer.style.height=this.getPageTop(this.pageSize.length-1)+this.getPageHeight(this.pageSize.length-1)+"px",this.pageContainer.style.position="relative",100===this.pageLimit&&null===this.getElement("_pageDiv_"+this.pageLimit)&&this.pageLimit<this.pageCount&&Promise.all([this.renderPagesVirtually()])}},e.prototype.renderPageContainerLimit=function(e){var t;if(this.pageCount>0){this.isMixedSizeDocument=!1;for(var i=!1,n=!1,o=!1,r=0;r<this.pageCount;r++){this.pageSize[parseInt(r.toString(),10)].height>this.pageSize[parseInt(r.toString(),10)].width&&(i=!0),this.pageSize[parseInt(r.toString(),10)].width>this.pageSize[parseInt(r.toString(),10)].height&&(n=!0),r>0&&this.pageSize[parseInt(r.toString(),10)].width!==this.pageSize[r-1].width&&(o=!0);var a=this.pageSize[parseInt(r.toString(),10)].width;a>this.highestWidth&&(this.highestWidth=a);var s=this.pageSize[parseInt(r.toString(),10)].height;s>this.highestHeight&&(this.highestHeight=s)}(i&&n||o)&&(this.isMixedSizeDocument=!0),t=this.pdfViewer.initialRenderPages>10?this.pdfViewer.initialRenderPages>100?e:this.pdfViewer.initialRenderPages<=this.pageCount?this.pdfViewer.initialRenderPages:this.pageCount:this.pageCount<10?this.pageCount:10}return t},e.prototype.pageSizeCollection=function(e,i,n){for(var o=0,r=i;r<n;r++)if("object"!=typeof e.pageSizes[parseInt(r.toString(),10)]){var a=e.pageSizes[parseInt(r.toString(),10)].split(",");if(null!==e.pageSizes[r-1]&&0!==r){s=e.pageSizes[r-1].split(",");o=this.pageGap+parseFloat(s[1])+o}else o=this.pageGap;l={width:parseFloat(a[0]),height:parseFloat(a[1]),top:o,rotation:!t.isNullOrUndefined(e.pageRotation)&&(!t.isNullOrUndefined(e.pageRotation.length)&&e.pageRotation.length>0||!t.isNullOrUndefined(Object.keys(e.pageRotation).length)&&Object.keys(e.pageRotation).length>0)?e.pageRotation[parseInt(r.toString(),10)]:0};this.pageSize.push(l)}else{if(null!==e.pageSizes[r-1]&&0!==r){var s=e.pageSizes[r-1];o=this.pageGap+(parseFloat(s.height)?parseFloat(s.height):parseFloat(s.Height))+o}else o=this.pageGap;var l={width:e.pageSizes[parseInt(r.toString(),10)].width?e.pageSizes[parseInt(r.toString(),10)].width:e.pageSizes[parseInt(r.toString(),10)].Width,height:e.pageSizes[parseInt(r.toString(),10)].height?e.pageSizes[parseInt(r.toString(),10)].height:e.pageSizes[parseInt(r.toString(),10)].Height,top:o,rotation:!t.isNullOrUndefined(e.pageRotation)&&(!t.isNullOrUndefined(e.pageRotation.length)&&e.pageRotation.length>0||!t.isNullOrUndefined(Object.keys(e.pageRotation).length)&&Object.keys(e.pageRotation).length>0)?e.pageRotation[parseInt(r.toString(),10)]:0};this.pageSize.push(l)}},e.prototype.getPageLimit=function(){var e=0;return this.pageCount>100?(e=100,this.pageLimit=e):e=this.pageCount,e},e.prototype.renderElementsVirtualScroll=function(e){var i=1,n=e+(i=this.pageStopValue<=200?4:2);n>this.pageCount&&(n=this.pageCount);for(r=e-1;r<=n;r++)-1!==r&&this.renderPageElement(r);var o=e-3;o<0&&(o=0);for(var r=e-1;r>=o;r--)-1!==r&&this.renderPageElement(r);for(var a=0;a<this.pageCount;a++)if(!(o<=a&&a<=n)){var s=this.getElement("_pageDiv_"+a),l=this.getElement("_pageCanvas_"+a),d=this.getElement("_textLayer_"+a),A=this.pdfViewer.initialRenderPages>this.pageRenderCount?this.pdfViewer.initialRenderPages<=this.pageCount?this.pdfViewer.initialRenderPages-1:this.pageCount:-1;if(l&&a>A&&(l.onload=null,l.onerror=null,l.parentNode.removeChild(l),d&&(this.pdfViewer.textSelectionModule&&0!==d.childNodes.length&&!this.isTextSelectionDisabled&&this.pdfViewer.textSelectionModule.maintainSelectionOnScroll(a,!0),d.parentNode.removeChild(d)),-1!==(h=this.renderedPagesList.indexOf(a))&&this.renderedPagesList.splice(h,1)),s&&a>A){s.parentNode.removeChild(s);var h=this.renderedPagesList.indexOf(a);-1!==h&&this.renderedPagesList.splice(h,1)}}t.isBlazor()&&this.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateCurrentPageNumber",this.currentPageNumber)},e.prototype.renderPageElement=function(e){var t=this.getElement("_pageDiv_"+e);null==this.getElement("_pageCanvas_"+e)&&null==t&&e<this.pageSize.length&&this.renderPageContainer(e,this.getPageWidth(e),this.getPageHeight(e),this.getPageTop(e))},e.prototype.renderPagesVirtually=function(){return Qi(this,void 0,void 0,function(){var e;return Mi(this,function(t){return e=this,this.initiateRenderPagesVirtually(e),[2]})})},e.prototype.initiateRenderPagesVirtually=function(e){var t={hashId:e.hashId,isCl
vendor: 70,360 bytes, line 10
10ientsideLoading:this.clientSideRendering,isCompletePageSizeNotReceived:!0,action:"VirtualLoad",elementId:e.pdfViewer.element.id,uniqueId:e.documentId,password:e.passwordData};if(e.jsonDocumentId&&(t.documentId=e.jsonDocumentId),this.virtualLoadRequestHandler=new Pi(this.pdfViewer),this.virtualLoadRequestHandler.url=e.pdfViewer.serviceUrl+"/"+e.pdfViewer.serverActionSettings.load,this.virtualLoadRequestHandler.responseType="json",this.virtualLoadRequestHandler.mode=!0,this.clientSideRendering){var i=this.pdfViewer.pdfRendererModule.load(null,this.documentId,null,t);this.viritualload(JSON.parse(i),this)}else this.virtualLoadRequestHandler.send(t);this.virtualLoadRequestHandler.onSuccess=function(t){var i=t.data;if(i&&"object"!=typeof i)try{i=JSON.parse(i)}catch(t){e.onControlError(500,i,"VirtualLoad")}if(i){for(;"object"!=typeof i;)i=JSON.parse(i);e.viritualload(i,e)}},this.virtualLoadRequestHandler.onFailure=function(t){e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText)},this.virtualLoadRequestHandler.onError=function(t){e.openNotificationPopup(),e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText)}},e.prototype.viritualload=function(i,n){if(n.documentId===i.uniqueId){n.pdfViewer.fireAjaxRequestSuccess("VirtualLoad",i);var o=i;if(n.pageSize[n.pageLimit-1]){for(var r=n.pageSize[n.pageLimit-1].top,a=n.pageLimit;a<n.pageCount;a++)if("object"!=typeof o.pageSizes[parseInt(a.toString(),10)]){var s=o.pageSizes[parseInt(a.toString(),10)].split(",");if(null!==n.pageSize[a-1]&&0!==a){l=n.pageSize[a-1].height;r=n.pageGap+parseFloat(l)+r}d={width:parseFloat(s[0]),height:parseFloat(s[1]),top:r,rotation:!t.isNullOrUndefined(o.pageRotation)&&(!t.isNullOrUndefined(o.pageRotation.length)&&o.pageRotation.length>0||!t.isNullOrUndefined(Object.keys(o.pageRotation).length)&&Object.keys(o.pageRotation).length>0)?o.pageRotation[parseInt(a.toString(),10)]:0};n.pageSize.push(d)}else{if(null!==n.pageSize[a-1]&&0!==a){var l=n.pageSize[a-1].height;r=n.pageGap+parseFloat(l)+r}var d={width:parseFloat(o.pageSizes[parseInt(a.toString(),10)].width)?parseFloat(o.pageSizes[parseInt(a.toString(),10)].width):parseFloat(o.pageSizes[parseInt(a.toString(),10)].Width),height:parseFloat(o.pageSizes[parseInt(a.toString(),10)].height)?parseFloat(o.pageSizes[parseInt(a.toString(),10)].height):parseFloat(o.pageSizes[parseInt(a.toString(),10)].Height),top:r,rotation:!t.isNullOrUndefined(o.pageRotation)&&(!t.isNullOrUndefined(o.pageRotation.length)&&o.pageRotation.length>0||!t.isNullOrUndefined(Object.keys(o.pageRotation).length)&&Object.keys(o.pageRotation).length>0)?o.pageRotation[parseInt(a.toString(),10)]:0};n.pageSize.push(d)}var A=n.getPageLimit();if(n.pageCount>100){for(var h=n.renderPageContainerLimit(A),a=0;a<h;a++)n.renderPageContainer(a,n.getPageWidth(a),n.getPageHeight(a),n.getPageTop(a));n.loadPage(0),n.saveFormfieldsData(i)}n.pageContainer.style.height=n.getPageTop(n.pageSize.length-1)+n.getPageHeight(n.pageSize.length-1)+"px";var p=e.sessionStorageManager.getItem(n.documentId+"_pagedata");if(n.pageCount>100){if(this.pdfViewer.initialRenderPages>100)for(var h=this.pdfViewer.initialRenderPages<=n.pageCount?this.pdfViewer.initialRenderPages:n.pageCount,a=100;a<h;a++)n.renderPageContainer(a,n.getPageWidth(a),n.getPageHeight(a),n.getPageTop(a)),n.createRequestForRender(a);n.pdfViewer.fireDocumentLoad(p);var c=n.pdfViewer.linkAnnotationModule;c&&c.linkAnnotation&&c.linkAnnotation.length>0&&c.linkPage.length>0&&c.renderDocumentLink(c.linkAnnotation,c.linkPage,c.annotationY,n.currentPageNumber-1)}}}},e.prototype.tileRenderPage=function(i,n){var o=this,r=null;if(r=this,i&&this.pageSize[parseInt(n.toString(),10)]){var a=this.getPageWidth(n),s=this.getPageHeight(n),l=this.getElement("_pageCanvas_"+n),d=this.getElement("_pageDiv_"+n),A=i.tileX?i.tileX:0,h=i.tileY?i.tileY:0;d&&(d.style.width=a+"px",d.style.height=s+"px",d.style.background="#fff",d.style.top=this.getPageTop(n)+"px",this.pdfViewer.enableRtl?d.style.right=this.updateLeftPosition(n)+"px":d.style.left=this.updateLeftPosition(n)+"px"),l&&(l.style.background="#fff");var p=i.image,c=this.retrieveCurrentZoomFactor(),g=document.querySelectorAll('img[id*="'+r.pdfViewer.element.id+"_tileimg_"+n+'_"]');if(0===g.length&&(this.isReRenderRequired=!0),this.isReRenderRequired){i.zoomFactor&&(c=i.zoomFactor);var u=this.documentId+"_"+n+"_"+c+"_"+i.tileX+"_"+i.tileY;this.tilerequestLists.push(u);var f=i.transformationMatrix,m=i.width;if(p){var w=i.tileX?i.tileX:0,C=i.tileY?i.tileY:0,B=t.isNullOrUndefined(i.scaleFactor)?1.5:i.scaleFactor,S=document.getElementById(this.pdfViewer.element.id+"_tileimg_"+n+"_"+this.getZoomFactor()+"_"+w+"_"+C);if(S||((S=new Image).id=this.pdfViewer.element.id+"_tileimg_"+n+"_"+this.getZoomFactor()+"_"+w+"_"+C,S.style.userSelect="none",d&&d.append(S)),d){S.src=p,S.setAttribute("alt",""),S.onload=function(){if(r.showPageLoadingIndicator(n,!1),r.tileRenderCount=r.tileRenderCount+1,0===w&&0===C&&0===n&&o.isDocumentLoaded){r.renderPDFInformations(),r.isInitialLoaded=!0;var t=e.sessionStorageManager.getItem(r.documentId+"_pagedata");r.pageCount<=100&&r.pdfViewer.fireDocumentLoad(t),r.isDocumentLoaded=!1,!r.pdfViewer.textSearch||(!r.clientSideRendering||r.pdfViewer.thumbnailViewModule||r.pdfViewer.pageOrganizer)&&r.clientSideRendering||r.pdfViewer.textSearchModule.getPDFDocumentTexts()}if(r.tileRenderCount===r.tileRequestCount&&i.uniqueId===r.documentId){r.isTextMarkupAnnotationModule()&&r.pdfViewer.annotationModule.textMarkupAnnotationModule.rerenderAnnotations(n),l&&(l.style.display="none",l.src="#");for(var a=document.querySelectorAll('img[id*="'+r.pdfViewer.element.id+'_oldCanvas"]'),s=0;s<a.length;s++)a[parseInt(s.toString(),10)].onload=null,a[parseInt(s.toString(),10)].onerror=null,d.removeChild(a[parseInt(s.toString(),10)]);r.isTileImageRendered=!1,r.tileRenderCount=0,r.pdfViewer.magnificationModule&&r.pdfViewer.magnificationModule.rerenderCountIncrement(),r.isDrawnCompletely=!0,r.pdfViewer.firePageRenderComplete(i)}S.setAttribute("alt","Page "+(n+1))};var y=m*this.getZoomFactor()/c/B,I=f?f.Elements?f.Elements:f.Values:[1,0,0,1,1,1],E=I[5]*this.getZoomFactor()/c/B,v=I[4]*this.getZoomFactor()/c/B;S.width=y,S.style.width=y+"px",S.style.top=E+"px",S.style.left=v+"px",S.style.position="absolute"}}0===A&&0===h&&this.onPageRender(i,n,d)}else{for(var b=this,V=0;V<g.length;V++)!function(t){var a=g[parseInt(t.toString(),10)].id.split("_"),s=r.retrieveCurrentZoomFactor(),A=void 0;if((A=b.clientSideRendering?JSON.parse(r.getStoredTileImageDetails(n,parseFloat(a[a.length-2]),parseFloat(a[a.length-1]),s)):JSON.parse(r.getWindowSessionStorageTile(n,parseFloat(a[a.length-2]),parseFloat(a[a.length-1]),s)))&&A.zoomFactor&&(s=A.zoomFactor),parseFloat(a[a.length-4])===n){var h=g[parseInt(t.toString(),10)];h.nodeType===Node.ELEMENT_NODE&&(h.onload=function(){if(r.showPageLoadingIndicator(n,!1),r.tileRenderCount=r.tileRenderCount+1,0===D&&0===x&&0===n&&o.isDocumentLoaded){o.renderPDFInformations(),o.isInitialLoaded=!0;var t=e.sessionStorageManager.getItem(r.documentId+"_pagedata");r.pageCount<=100&&r.pdfViewer.fireDocumentLoad(t),r.isDocumentLoaded=!1,!r.pdfViewer.textSearch||(!r.clientSideRendering||r.pdfViewer.thumbnailViewModule||r.pdfViewer.pageOrganizer)&&r.clientSideRendering||r.pdfViewer.textSearchModule.getPDFDocumentTexts()}if(r.tileRenderCount===r.tileRequestCount&&i.uniqueId===r.documentId){l.style.display="none",l.src="#",r.isTextMarkupAnnotationModule()&&r.pdfViewer.annotationModule.textMarkupAnnotationModule.rerenderAnnotations(n);for(var a=document.querySelectorAll('img[id*="'+r.pdfViewer.element.id+'_oldCanvas"]'),s=0;s<a.length;s++)a[parseInt(s.toString(),10)].onload=null,a[parseInt(s.toString(),10)].onerror=null,d.removeChild(a[parseInt(s.toString(),10)]);r.isTileImageRendered=!1,r.tileRenderCount=0,r.pdfViewer.magnificationModule&&r.pdfViewer.magnificationModule.rerenderCountIncrement(),r.isDrawnCompletely=!0,r.pdfViewer.firePageRenderComplete(i)}h.setAttribute("alt","Page "+(n+1))},A&&(h.src=A.image))}}(V);var D=i.tileX?i.tileX:0,x=i.tileY?i.tileY:0;0===D&&0===x&&this.onPageRender(i,n,d)}}},e.prototype.renderTileCanvas=function(e,i,n,o,r,a){var s=this.getElement("_pageTileCanvas_"+n);return s||((s=t.createElement("canvas",{id:this.pdfViewer.element.id+"_pageTileCanvas_"+n,className:"e-pv-pageTile-canvas"})).style.width=e+"px",s.style.height=i+"px",s.style.display="none",s.style.backgroundColor="#fff",this.isMixedSizeDocument&&this.highestWidth>0&&(s.style.marginLeft="auto",s.style.marginRight="auto"),o.appendChild(s)),s},e.prototype.calculateImageWidth=function(e,t,i,n){var o=e/this.getZoomFactor()*t*i;return parseInt(n.toString(),10)===parseInt(o.toString(),10)&&(n=o),n=n*this.getZoomFactor()/t},e.prototype.renderPage=function(t,i,n){var o=this,r=this;if(t&&this.pageSize[parseInt(i.toString(),10)]){var a=this.getPageWidth(i),s=this.getPageHeight(i),l=this.getElement("_pageCanvas_"+i),d=this.getElement("_pageDiv_"+i);if(d&&(d.style.width=a+"px",d.style.height=s+"px",d.style.top=this.getPageTop(i)+"px",this.pdfViewer.enableRtl?d.style.right=this.updateLeftPosition(i)+"px":d.style.left=this.updateLeftPosition(i)+"px"),l){l.style.background="#fff",l.style.display="block",l.style.width=a+"px",l.style.height=s+"px",a<parseFloat(d.style.width)&&(d.style.boxShadow="none");var A=this.renderThumbnailImages&&!this.clientSideRendering?n:t.image;A&&(l.onload=function(){for(var t=document.querySelectorAll('img[id*="'+r.pdfViewer.element.id+'_tileimg_"]'),n=r.getElement("_pageDiv_"+i),a=0;a<t.length;a++){var s=t[parseInt(a.toString(),10)].id.split("_");parseFloat(s[s.length-3])!==r.getZoomFactor()&&(i!==parseInt(s[s.length-4],10)?(t[parseInt(a.toString(),10)].onload=null,t[parseInt(a.toString(),10)].onerror=null,r.getElement("_pageDiv_"+s[s.length-4]).removeChild(t[parseInt(a.toString(),10)])):(t[parseInt(a.toString(),10)].onload=null,t[parseInt(a.toString(),10)].onerror=null,n.removeChild(t[parseInt(a.toString(),10)])))}for(var A=document.querySelectorAll('img[id*="'+r.pdfViewer.element.id+'_oldCanvas"]'),a=0;a<A.length;a++)A[parseInt(a.toString(),10)].onload=null,A[parseInt(a.toString(),10)].onerror=null,d.removeChild(A[parseInt(a.toString(),10)]);if(o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.rerenderCountIncrement(),o.showPageLoadingIndicator(i,!1),0===i&&o.isDocumentLoaded){o.renderPDFInformations(),o.isInitialLoaded=!0;var h=e.sessionStorageManager.getItem(o.documentId+"_pagedata");o.pageCount<=100&&o.pdfViewer.fireDocumentLoad(h),o.isDocumentLoaded=!1,!o.pdfViewer.textSearch||(!o.clientSideRendering||o.pdfViewer.thumbnailViewModule||o.pdfViewer.pageOrganizer)&&o.clientSideRendering||o.pdfViewer.textSearchModule.getPDFDocumentTexts()}o.pdfViewer.magnificationModule&&o.pdfViewer.magnificationModule.pushImageObjects(l),l.setAttribute("alt","Page "+(i+1))},l.src=A),this.onPageRender(t,i,d)}}},e.prototype.updateAnnotationsAndState=function(e,t,i,n){return!!t&&(e.shapeAnnotation=t.shapeAnnotation,e.measureShapeAnnotation=t.measureShapeAnnotation,e.textMarkupAnnotation=t.textMarkupAnnotation,e.freeTextAnnotation=t.freeTextAnnotation,e.stampAnnotations=t.stampAnnotations,e.stickyNotesAnnotation=t.stickyNotesAnnotation,e.signatureInkAnnotation=t.signatureInkAnnotation,n.push(i),!0)},e.prototype.isNeedToRenderAnnotations=function(e,i){return new Set(e.map(function(e){return t.isNullOrUndefined(e.pageNumber)?e.pageIndex:e.pageNumber})).has(i)},e.prototype.isFormFieldsNeedtoRender=function(e,t){return e.some(function(e){return e.FormField.pageNumber===t+1})},e.prototype.onPageRender=function(e,i,n){var o=n&&n.getElementsByTagName("a"),r=!1,a=this.isNeedToRenderAnnotations(this.pdfViewer.annotationCollection,i),s=this.isNeedToRenderAnnotations(this.pdfViewer.signatureCollection,i),l=this.isFormFieldsNeedtoRender(this.formFieldCollection,i);if(o&&0!==o.length)for(var d=o.length-1;d>=0;d--)o[parseInt(d.toString(),10)].parentNode.removeChild(o[parseInt(d.toString(),10)]);if((this.pdfViewer.textSearchModule||this.pdfViewer.textSelectionModule||this.pdfViewer.annotationModule)&&this.renderTextContent(e,i),!this.pdfViewer.formFieldsModule||this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.isFormFieldPageZoomed||(this.pdfViewer.viewerBase.existingFieldImport?this.pdfViewer.formFieldsModule.renderFormFields(i,!1):this.pdfViewer.formFieldsModule.renderFormFields(i,!0)),this.pdfViewer.accessibilityTagsModule&&this.pdfViewer.enableAccessibilityTags&&this.isTaggedPdf&&(this.accessibilityTagsCollection[i.toString()]?this.renderAccessibilityTags(i,this.accessibilityTagsCollection[i.toString()]):-1===this.pageRequestListForAccessibilityTags.indexOf(i)&&this.createRequestForAccessibilityTags(i)),this.pdfViewer.formDesignerModule&&!this.isDocumentLoaded&&this.pdfViewer.formDesignerModule.rerenderFormFields(i),!this.pdfViewer.formFieldsModule||this.isDocumentLoaded||this.pdfViewer.formDesignerModule||this.pdfViewer.formFieldsModule.renderFormFields(i,!1),this.pdfViewer.formDesignerModule&&this.isDocumentLoaded&&(!this.pdfViewer.magnificationModule||this.pdfViewer.magnificationModule.isFormFieldPageZoomed)&&this.pdfViewer.formFieldsModule&&(this.pdfViewer.formFieldsModule.renderFormFields(i,!1),this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isFormFieldPageZoomed=!1)),this.pdfViewer.enableHyperlink&&this.pdfViewer.linkAnnotationModule&&this.pdfViewer.linkAnnotationModule.renderHyperlinkContent(e,i),this.pdfViewer.textSelectionModule&&!this.isTextSelectionDisabled&&this.pdfViewer.textSelectionModule.applySelectionRangeOnScroll(i),this.documentAnnotationCollections){for(var A=!1,h=0;h<this.annotationRenderredList.length;h++)this.annotationRenderredList[parseInt(h.toString(),10)]===i&&(A=!0);(p=this.documentAnnotationCollections[parseInt(i.toString(),10)])&&!A&&(e.shapeAnnotation=p.shapeAnnotation,e.measureShapeAnnotation=p.measureShapeAnnotation,e.textMarkupAnnotation=p.textMarkupAnnotation,e.freeTextAnnotation=p.freeTextAnnotation,e.stampAnnotations=p.stampAnnotations,e.stickyNotesAnnotation=p.stickyNotesAnnotation,e.signatureAnnotation=p.signatureAnnotation,e.signatureInkAnnotation=p.signatureInkAnnotation,this.annotationRenderredList.push(i))}if(this.isImportAction){var p=this.checkDocumentCollectionData(i);this.drawPageAnnotations(this.importedAnnotation[parseInt(i.toString(),10)],i),p&&(e.shapeAnnotation=p.shapeAnnotation,e.measureShapeAnnotation=p.measureShapeAnnotation,e.textMarkupAnnotation=p.textMarkupAnnotation,e.freeTextAnnotation=p.freeTextAnnotation,e.stampAnnotations=p.stampAnnotations,e.stickyNotesAnnotation=p.stickyNotesAnnotation,e.signatureInkAnnotation=p.signatureInkAnnotation,this.annotationRenderredList.push(i),r=!0)}if(!this.isImportAction){A=!1;if((p=this.checkDocumentCollectionData(i))&&!A&&(r=this.updateAnnotationsAndState(e,p,i,this.annotationRenderredList)),this.pdfViewer.annotationModule&&(this.isTextMarkupAnnotationModule()||this.isShapeBasedAnnotationsEnabled())){if(this.isStampAnnotationModule()){var c=e.stampAnnotations;r?this.pdfViewer.annotationModule.stampAnnotationModule.renderStampAnnotations(c,i,null,!0,null):this.pdfViewer.annotationModule.stampAnnotationModule.renderStampAnnotations(c,i)}r&&(e.shapeAnnotation.length>0||e.measureShapeAnnotation.length>0||e.textMarkupAnnotation.length>0||this.pdfViewer.signatureCollection.length>0&&s||this.formFieldCollection.length>0&&l)?this.pdfViewer.annotationModule.renderAnnotations(i,e.shapeAnnotation,e.measureShapeAnnotation,e.textMarkupAnnotation,null,!0):(!t.isNullOrUndefined(e.shapeAnnotation)&&e.shapeAnnotation.length>0||!t.isNullOrUndefined(e.measureShapeAnnotation)&&e.measureShapeAnnotation.length>0||!t.isNullOrUndefined(e.textMarkupAnnotation)&&e.textMarkupAnnotation.length>0||this.pdfViewer.annotationCollection.length>0&&a)&&this.pdfViewer.annotationModule.renderAnnotations(i,e.shapeAnnotation,e.measureShapeAnnotation,e.textMarkupAnnotation),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderStickyNotesAnnotations(e.stickyNotesAnnotation,i)}this.isFreeTextAnnotationModule()&&e.freeTextAnnotation&&e.freeTextAnnotation.length>0&&(r?this.pdfViewer.annotationModule.freeTextAnnotationModule.renderFreeTextAnnotations(e.freeTextAnnotation,i,!0,null,!0):this.pdfViewer.annotationModule.freeTextAnnotationModule.renderFreeTextAnnotations(e.freeTextAnnotation,i)),this.isInkAnnotationModule()&&e&&e.signatureInkAnnotation&&e.signatureInkAnnotation.length>0&&(this.pdfViewer.isSignatureEditable||(e.signatureInkAnnotation=this.canUpdateSignCollection(e.signatureInkAnnotation)),e.signatureInkAnnotation&&this.pdfViewer.annotationModule.inkAnnotationModule.renderExistingInkSignature(e.signatureInkAnnotation,i,r,null,!0))}this.pdfViewer.formDesignerModule&&!this.pdfViewer.annotationModule&&this.pdfViewer.formDesignerModule.updateCanvas(i),this.pdfViewer.textSearchModule&&(this.pdfViewer.textSearchModule.isDocumentTextCollectionReady?this.pdfViewer.textSearchModule.isTextSearch&&0!==this.pdfViewer.textSearchModule.currentOccurrence?this.pdfViewer.textSearchModule.highlightOtherOccurrences(i):this.pdfViewer.textSearchModule.programaticalSearch||this.pdfViewer.textSearchModule.isFiltering||this.pdfViewer.textSearchModule.highlightAfterComplete():this.pdfViewer.textSearchModule.isTextSearchHandled&&0!==this.pdfViewer.textSearchModule.currentOccurrence?this.pdfViewer.textSearchModule.hightlightSearchedTexts(this.pdfViewer.textSearchModule.searchPageIndex,!0):this.pdfViewer.textSearchModule.programaticalSearch||this.pdfViewer.textSearchModule.isFiltering||this.pdfViewer.textSearchModule.hightlightSearchedTexts(void 0,!0,!0)),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.stickyNotesAnnotationModule.selectCommentsAnnotation(i),e&&e.signatureAnnotation&&e.signatureAnnotation.length>0&&this.signatureModule&&(this.pdfViewer.isSignatureEditable||(e.signatureAnnotation=this.canUpdateSignCollection(e.signatureAnnotation)),e.signatureAnnotation&&this.signatureModule.renderExistingSignature(e.signatureAnnotation,i,!1)),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.isAnnotationSelected&&this.pdfViewer.annotationModule.annotationPageIndex===i&&"image"!==this.pdfViewer.annotationModule.annotationType&&this.pdfViewer.annotationModule.selectAnnotationFromCodeBehind(),this.isLoadedFormFieldAdded=!1},e.prototype.removeInkFromAnnotCollection=function(e){for(var t=this.pdfViewer.annotationCollection,i=0;i<t.length;i++){var n=e.Bounds;if("Ink"===t[parseInt(i.toString(),10)].shapeAnnotationType||"ink"===t[parseInt(i.toString(),10)].shapeAnnotationType){var o=t[parseInt(i.toString(),10)].bounds;Math.round(n.X)===Math.round(o.x)&&Math.round(n.Y)===Math.round(o.y)&&Math.round(n.Width)===Math.round(o.width)&&Math.round(n.Height)===Math.round(o.height)&&this.pdfViewer.annotationCollection.splice(i,1)}}},e.prototype.canReduse=function(e,t,i){return e===t?i:i-1},e.prototype.isBoundsAreEqual=function(e,t){return Math.round(t.X)===Math.round(e.X)&&Math.round(t.Y)===Math.round(e.Y)&&Math.round(t.Width)===Math.round(e.Width)&&Math.round(t.Height)===Math.round(e.Height)},e.prototype.removeAnnotFromDoc=function(e,t){var i=e.Bounds,n=this.documentAnnotationCollections[parseInt(e.PageNumber.toString(),10)],o=n.signatureInkAnnotation,r=n.signatureAnnotation,a=0!==o.length?o:r;if(0!==o.length&&r.length)for(var s=0;s<o.length;s++)this.isBoundsAreEqual(o[0].Bounds,i)||(a=r);for(var l=0;l<a.length;l++){var d=a.length,A=a[parseInt(l.toString(),10)].Bounds;this.isBoundsAreEqual(A,i)&&(this.removeInkFromAnnotCollection(a[parseInt(l.toString(),10)]),a.splice(l,1),l=this.canReduse(d,a.length,l),t=a)}return t},e.prototype.isGroupedSignatureFields=function(e){var i=this.pdfViewer.retrieveFormFields(),n=!1;return t.isNullOrUndefined(e)||(n=i.filter(function(t){return t.name===e}).length>1),n},e.prototype.isSignatureWithInRect=function(e,t){e=e[0],t=t[0];var i=e.x+e.width,n=t.x+t.width,o=e.y+e.height,r=t.y+t.height;return e.x-10<=t.x&&i+10>=n&&e.y-10<=t.y&&o+10>=r},e.prototype.canvasRectArray=function(e){var n=[];if(e){var o=t.isNullOrUndefined(e.x)?t.isNullOrUndefined(e.X)?t.isNullOrUndefined(e.left)?e.Left:e.left:e.X:e.x,r=t.isNullOrUndefined(e.y)?t.isNullOrUndefined(e.Y)?t.isNullOrUndefined(e.top)?e.Top:e.top:e.Y:e.y,a=t.isNullOrUndefined(e.width)?e.Width:e.width,s=t.isNullOrUndefined(e.height)?e.Height:e.height,l=new i.Rect(o+10,r+10,a-10,s-10);n.push(l)}return n},e.prototype.isFormFieldSignature=function(e,i){var n=i;if(!this.pdfViewer.isSignatureEditable)for(var o=this.pdfViewer.retrieveFormFields(),r=0;r<o.length;r++)if("SignatureField"===o[parseInt(r.toString(),10)].type||"InitialField"===o[parseInt(r.toString(),10)].type){var a=o[parseInt(r.toString(),10)].bounds,s=o[parseInt(r.toString(),10)].name;if(this.isSignatureWithInRect(this.canvasRectArray(a),this.canvasRectArray(e.Bounds))&&!this.isGroupedSignatureFields(s)){if(n=i?this.removeAnnotFromDoc(e,i):this.removeAnnotFromDoc(e),""===o[parseInt(r.toString(),10)].value){var l=t.isNullOrUndefined(e.PageNumber)?e.pageNumber:e.PageNumber;-1===this.modifiedPageIndex.indexOf(l)&&this.modifiedPageIndex.push(l),o[parseInt(r.toString(),10)].value=e.PathData,o[parseInt(r.toString(),10)].signatureType="Draw";var d={x:e.Bounds.X,y:e.Bounds.Y,width:e.Bounds.Width,height:e.Bounds.Height};o[parseInt(r.toString(),10)].signatureBounds=d,this.pdfViewer.updateFormFieldsValue(o[parseInt(r.toString(),10)])}this.isInkAnnot=!0;break}}return n},e.prototype.canUpdateSignCollection=function(e){for(var t=0;t<e.length;t++){var i=e.length;e=this.isFormFieldSignature(e[parseInt(t.toString(),10)],e),t=this.canReduse(i,e.length,t)}return e},e.prototype.renderAnnotations=function(e,i,n){return Qi(this,void 0,void 0,function(){var n,o,r,a,s,l,d,A,h;return Mi(this,function(p){switch(p.label){case 0:if(n={},this.documentAnnotationCollections){for(r=!1,a=0;a<this.annotationRenderredList.length;a++)this.annotationRenderredList[parseInt(a.toString(),10)]===e&&(r=!0);(o=this.documentAnnotationCollections[parseInt(e.toString(),10)])&&!r&&(n.shapeAnnotation=o.shapeAnnotation,n.measureShapeAnnotation=o.measureShapeAnnotation,n.textMarkupAnnotation=o.textMarkupAnnotation,n.freeTextAnnotation=o.freeTextAnnotation,n.stampAnnotations=o.stampAnnotations,n.stickyNotesAnnotation=o.stickyNotesAnnotation,n.signatureAnnotation=o.signatureAnnotation,n.signatureInkAnnotation=o.signatureInkAnnotation,this.annotationRenderredList.push(e))}if(this.isAnnotationCollectionRemoved&&(n.shapeAnnotation=[],n.measureShapeAnnotation=[],n.textMarkupAnnotation=[],n.freeTextAnnotation=[],n.stampAnnotations=[],n.stickyNotesAnnotation=[],n.signatureInkAnnotation=[]),this.isImportAction){for(r=!1,a=0;a<this.annotationPageList.length;a++)this.annotationPageList[parseInt(a.toString(),10)]===e&&(r=!0);r||this.importedAnnotation&&(this.drawPageAnnotations(this.importedAnnotation,e,!0),this.annotationPageList[this.annotationPageList.length]=e)}if(s=[],l=i.annotationOrder,t.isNullOrUndefined(l))return[3,13];d=0,p.label=1;case 1:if(!(d<l.length))return[3,13];switch(this.isInkAnnot=!1,A=l[parseInt(d.toString(),10)].AnnotType?l[parseInt(d.toString(),10)].AnnotType:l[parseInt(d.toString(),10)].AnnotationType,s.push(l[parseInt(d.toString(),10)]),h=A){case"textMarkup":return[3,2];case"shape_measure":return[3,3];case"shape":return[3,4];case"sticky":return[3,5];case"stamp":return[3,6];case"Ink":return[3,8];case"Text Box":return[3,9]}return[3,10];case 2:return t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)||this.pdfViewer.annotationModule.textMarkupAnnotationModule.renderTextMarkupAnnotationsInPage(s,e,null,!0),[3,11];case 3:return this.pdfViewer.annotationModule.renderAnnotations(e,null,s,null,null,null,!0,null,null,d+1===l.length),[3,11];case 4:return this.pdfViewer.annotationModule.renderAnnotations(e,s,null,null,null,null,!0,null,null,d+1===l.length),[3,11];case 5:return this.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderStickyNotesAnnotations(s,e),[3,11];case 6:return[4,this.pdfViewer.annotationModule.stampAnnotationModule.renderStampAnnotations(s,e,null,null,!0)];case 7:return p.sent(),[3,11];case 8:return this.pdfViewer.isSignatureEditable||this.isFormFieldSignature(s[0]),this.isInkAnnot||this.pdfViewer.annotationModule.inkAnnotationModule.renderExistingInkSignature(s,e,!1,!0),[3,11];case 9:return this.pdfViewer.annotationModule.freeTextAnnotationModule.renderFreeTextAnnotations(s,e,void 0,!0),[3,11];case 10:return[3,11];case 11:s=[],p.label=12;case 12:return d++,[3,1];case 13:return n&&n.signatureAnnotation&&(this.pdfViewer.isSignatureEditable||(n.signatureAnnotation=this.canUpdateSignCollection(n.signatureAnnotation)),n.signatureAnnotation&&this.signatureModule.renderExistingSignature(n.signatureAnnotation,e,!1)),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.isAnnotationSelected&&this.pdfViewer.annotationModule.selectAnnotationFromCodeBehind(),[2]}})})},e.prototype.renderTextContent=function(e,t){var i=e.textContent,n=e.textBounds,o=e.rotation,r=e.documentTextCollection?this.checkIsRtlText(e.documentTextCollection[0][parseInt(t.toString(),10)].PageText):this.checkIsRtlText(e.pageText),a=this.getElement("_textLayer_"+t);a||(a=this.textLayer.addTextLayer(t,this.getPageWidth(t),this.getPageHeight(t),this.getElement("_pageDiv_"+t))),a&&i&&n&&(a.style.display="block",0===a.childNodes.length?this.textLayer.renderTextContents(t,i,n,o,r):this.textLayer.resizeTextContents(t,i,n,o,!0))},e.prototype.renderAccessibilityTags=function(e,t){this.accessibilityTags.renderAccessibilityTags(e,t)},e.prototype.returnPageListForAccessibilityTags=function(e){var t=[];if(!this.enableAccessibilityMultiPageRequest)return[e];for(var i=e-2>0?e-2:0,n=e+4<this.pageCount-1?e+4:this.pageCount-1,o=i;o<=n;o++)void 0===this.accessibilityTagsCollection[parseInt(o.toString(),10)]?t.push(parseInt(o.toString(),10)):n=n+1<this.pageCount-1?n+1:this.pageCount-1;return this.pageRequestListForAccessibilityTags=t,t},e.prototype.createRequestForAccessibilityTags=function(e){var t=this,i={action:"RenderTaggedContent",elementId:this.pdfViewer.element.id,hashId:this.hashId,uniqueId:this.documentId,pageList:JSON.stringify(this.returnPageListForAccessibilityTags(e))};this.jsonDocumentId&&(i.document=this.jsonDocumentId);var n=this.pdfViewer.serviceUrl+"/RenderTaggedContent";this.accessibilityTagsHandler=new Pi(this.pdfViewer),this.accessibilityTagsHandler.url=n,this.accessibilityTagsHandler.mode=!0,this.accessibilityTagsHandler.responseType="text",this.accessibilityTagsHandler.send(i),this.accessibilityTagsHandler.onSuccess=function(i){for(var n,o=JSON.parse(i.data),r=0;r<o.length;r++)n=o[parseInt(r.toString(),10)],t.accessibilityTagsCollection[n[0]]=n[1];t.pageRequestListForAccessibilityTags=[],t.accessibilityTagsCollection[parseInt(e.toString(),10)]&&t.renderAccessibilityTags(e,t.accessibilityTagsCollection[parseInt(e.toString(),10)]),t.accessibilityTagsCollection[e-1<=0?parseInt((e-1).toString(),10):0]&&t.renderAccessibilityTags(e-1<=0?e-1:0,t.accessibilityTagsCollection[e-1<=0?parseInt((e-1).toString(),10):0])}},e.prototype.renderPageContainer=function(e,i,n,o){var r=t.createElement("div",{id:this.pdfViewer.element.id+"_pageDiv_"+e,className:"e-pv-page-div",attrs:{tabindex:"-1"}});t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&r.classList.add("e-pv-text-selection-none"),r.style.width=i+"px",r.style.height=n+"px",this.pdfViewer.enableRtl?r.style.right=this.updateLeftPosition(e)+"px":r.style.left=this.updateLeftPosition(e)+"px",r.style.top=o+"px",this.pageContainer.appendChild(r),this.pageContainer.style.width=this.isMixedSizeDocument&&this.highestWidth*this.getZoomFactor()>this.viewerContainer.clientWidth?this.highestWidth*this.getZoomFactor()+"px":this.viewerContainer.clientWidth+"px",this.createWaitingPopup(e),this.orderPageDivElements(r,e),this.renderPageCanvas(r,i,n,e,"block"),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode||this.isThumb||this.updateMobileScrollerPosition()},e.prototype.renderPDFInformations=function(){!this.pdfViewer.thumbnailViewModule||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?!t.isNullOrUndefined(this.pdfViewer.pageOrganizer)&&this.pdfViewer.enablePageOrganizer&&this.pdfViewer.pageOrganizer.createRequestForPreview():this.pdfViewer.thumbnailViewModule.createRequestForThumbnails(),this.pdfViewer.bookmarkViewModule&&this.pdfViewer.bookmarkViewModule.createRequestForBookmarks(),this.pdfViewer.annotationModule&&(this.pdfViewer.toolbarModule&&this.pdfViewer.annotationModule.stickyNotesAnnotationModule.initializeAcccordionContainer(),this.pdfViewer.isCommandPanelOpen&&this.pdfViewer.annotation.showCommentsPanel(),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.createRequestForComments())},e.prototype.orderPageDivElements=function(e,t){var i=this.getElement("_pageDiv_"+(t+1));this.pageContainer&&e&&(i?this.pageContainer.insertBefore(e,i):this.pageContainer.appendChild(e))},e.prototype.renderPageCanvas=function(e,i,n,o,r){if(e){var a=this.getElement("_pageCanvas_"+o);return a?(a.width=i,a.height=n,a.style.display="block",this.isMixedSizeDocument&&this.highestWidth>0&&(a.style.marginLeft="auto",a.style.marginRight="auto")):((a=t.createElement("img",{id:this.pdfViewer.element.id+"_pageCanvas_"+o,className:"e-pv-page-canvas"})).width=i,a.height=n,a.style.display=r,a.style.userSelect="none",this.isMixedSizeDocument&&this.highestWidth>0&&(a.style.marginLeft="auto",a.style.marginRight="auto"),e.appendChild(a)),a.setAttribute("alt",""),(this.pdfViewer.textSearchModule||this.pdfViewer.textSelectionModule||this.pdfViewer.formFieldsModule||this.pdfViewer.annotationModule)&&this.textLayer.addTextLayer(o,i,n,e),a}},e.prototype.applyElementStyles=function(e,t){if(this.isMixedSizeDocument&&e){var i=document.getElementById(this.pdfViewer.element.id+"_pageCanvas_"+t),n=document.getElementById(this.pdfViewer.element.id+"_oldCanvas_"+t);e&&i&&i.offsetLeft>0?(e.style.marginLeft=i.offsetLeft+"px",e.style.marginRight=i.offsetLeft+"px"):n&&n.offsetLeft>0?(e.style.marginLeft=n.offsetLeft+"px",e.style.marginRight=n.offsetLeft+"px"):(e.style.marginLeft="auto",e.style.marginRight="auto")}},e.prototype.updateLeftPosition=function(e){var i,n=this.viewerContainer.getBoundingClientRect().width;if(0===n&&(n=parseFloat(this.pdfViewer.width.toString())),this.isMixedSizeDocument&&this.highestWidth>0){i=this.viewerContainer.clientWidth>0?(this.viewerContainer.clientWidth-this.highestWidth*this.getZoomFactor())/2:(n-this.highestWidth*this.getZoomFactor())/2;var o=(this.highestWidth*this.getZoomFactor()-this.getPageWidth(e))/2;i>0?i+=o:i=o,this.pageContainer.style.width=this.highestWidth*this.getZoomFactor()>this.viewerContainer.clientWidth?this.highestWidth*this.getZoomFactor()+"px":this.viewerContainer.clientWidth+"px"}else i=this.viewerContainer.clientWidth>0?(this.viewerContainer.clientWidth-this.getPageWidth(e))/2:(n-this.getPageWidth(e))/2;if(this.pageSize[parseInt(e.toString(),10)].width,this.pageSize[parseInt(e.toString(),10)].height,i<0||this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isAutoZoom&&this.getZoomFactor()<1||"fitToWidth"===this.pdfViewer.magnificationModule.fitType)){var r=i;(i=i>0&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?r:this.pageLeft)>0&&this.isMixedSizeDocument&&r>0&&(i=r)}if(this.viewerContainer.clientHeight>=this.viewerContainer.scrollHeight&&this.previousScrollbarWidth>0){var a=this.navigationPane.getViewerContainerScrollbarWidth();i-=(this.previousScrollbarWidth-a)/2}return i},e.prototype.applyLeftPosition=function(e){var t;if(this.pageSize[parseInt(e.toString(),10)]){if(this.isMixedSizeDocument&&this.highestWidth>0){t=this.viewerContainer.clientWidth>0?(this.viewerContainer.clientWidth-this.highestWidth*this.getZoomFactor())/2:(this.viewerContainer.getBoundingClientRect().width-this.highestWidth*this.getZoomFactor())/2;var i=(this.highestWidth*this.getZoomFactor()-this.getPageWidth(e))/2;t>0?t+=i:t=i}else t=this.viewerContainer.clientWidth>0?(this.viewerContainer.clientWidth-this.pageSize[parseInt(e.toString(),10)].width*this.getZoomFactor())/2:(this.viewerContainer.getBoundingClientRect().width-this.pageSize[parseInt(e.toString(),10)].width*this.getZoomFactor())/2;if(this.pageSize[parseInt(e.toString(),10)].width,this.pageSize[parseInt(e.toString(),10)].height,t<0||this.pdfViewer.magnificationModule&&(this.pdfViewer.magnificationModule.isAutoZoom&&this.getZoomFactor()<1||"fitToWidth"===this.pdfViewer.magnificationModule.fitType)){var n=t;t=this.pageLeft,n>0&&this.isMixedSizeDocument&&(t=n)}var o=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+e);o&&(this.pdfViewer.enableRtl?o.style.right=t+"px":o.style.left=t+"px")}},e.prototype.updatePageHeight=function(e,t){return(e-t)/e*100+"%"},e.prototype.getPageNumberFromClientPoint=function(e){for(var t=e.x+this.viewerContainer.scrollLeft,i=e.y+this.viewerContainer.scrollTop,n=0;n<this.pageCount;n++){var o=this.pageSize[parseInt(n.toString(),10)].height+this.viewerContainer.scrollTop;if(i<this.pageSize[parseInt(n.toString(),10)].top+o){var r=this.getElement("_pageViewContainer").getBoundingClientRect(),a=(r.width-this.pageSize[parseInt(n.toString(),10)].width)/2+r.x,s=0;if((s=i>this.pageSize[parseInt(n.toString(),10)].top?i-this.pageSize[parseInt(n.toString(),10)].top:this.pageSize[parseInt(n.toString(),10)].top-i)>0&&null!=this.pageSize[parseInt(n.toString(),10)]){this.getPageHeight(n);if(a>=0&&(t<a||t>a+this.pageSize[parseInt(n.toString(),10)].width))return-1;if(s<=this.getPageTop(n)+o)return n+1}}}return-1},e.prototype.convertClientPointToPagePoint=function(e,t){if(-1!==t){var i=this.getElement("_pageViewContainer").getBoundingClientRect(),n=(i.width-this.pageSize[t-1].width)/2+i.x;return{x:e.x+this.viewerContainer.scrollLeft-n,y:e.y+this.viewerContainer.scrollTop-this.pageSize[t-1].top}}return null},e.prototype.convertPagePointToClientPoint=function(e,t){if(-1!==t){var i=this.getElement("_pageViewContainer").getBoundingClientRect(),n=(i.width-this.pageSize[t-1].width)/2+i.x;return{x:e.x+n,y:e.y+this.pageSize[t-1].top}}return null},e.prototype.convertPagePointToScrollingPoint=function(e,t){return-1!==t?{x:e.x+this.viewerContainer.scrollLeft,y:e.y+this.viewerContainer.scrollTop}:null},e.prototype.initiatePageViewScrollChanged=function(){this.scrollHoldTimer&&clearTimeout(this.scrollHoldTimer),this.scrollHoldTimer=null,this.scrollPosition*this.getZoomFactor()!==this.viewerContainer.scrollTop&&(this.scrollPosition=this.viewerContainer.scrollTop,this.pageViewScrollChanged(this.currentPageNumber))},e.prototype.renderCountIncrement=function(){this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.renderCountIncrement()},e.prototype.pageViewScrollChanged=function(e){this.isPanMode?-1===this.renderedPagesList.indexOf(e-1)&&(this.reRenderedCount=0):this.reRenderedCount=0;var t=e-1;if(e!==this.previousPage&&e<=this.pageCount){n=!1,this.clientSideRendering?this.getLinkInformation(t):this.getStoredData(t);this.isDataExits&&!this.getStoredData(t)&&(n=!0),-1!==this.renderedPagesList.indexOf(t)||this.getMagnified()||n||this.isScrollerMoving||(this.renderCountIncrement(),this.createRequestForRender(t))}if(!this.getMagnified()&&!this.getPagesPinchZoomed()){var i=t-1,n=!1,o=this.getElement("_pageCanvas_"+i);this.clientSideRendering?this.getLinkInformation(i):this.getStoredData(i);this.isDataExits&&!this.getStoredData(i)&&(n=!0),null===o||n||-1!==this.renderedPagesList.indexOf(i)||this.getMagnified()||this.isScrollerMoving||(this.renderCountIncrement(),this.createRequestForRender(i)),this.isMinimumZoom&&this.renderPreviousPagesInScroll(i);var r=t+1,a=0;if(r<this.pageCount&&(a=this.getPageHeight(r),(this.isMinimumZoom?this.isMinimumZoom:-1===this.renderedPagesList.indexOf(r))&&!this.getMagnified()&&a)){var s=this.pdfViewer.initialRenderPages<=this.pageCount?this.pdfViewer.initialRenderPages:this.pageCount;if(this.isDocumentLoaded&&this.pdfViewer.initialRenderPages>this.pageRenderCount&&this.getPageHeight(s-1)+this.getPageTop(s-1)>this.viewerContainer.clientHeight)for(var l=1;l<s;l++)this.createRequestForRender(l);else if(!this.isScrollerMoving)for(this.createRequestForRender(r),this.renderCountIncrement();this.viewerContainer.clientHeight>a&&(r+=1)<this.pageCount;)this.renderPageElement(r),this.createRequestForRender(r),a+=this.getPageHeight(r),this.renderCountIncrement()}}},e.prototype.renderPreviousPagesInScroll=function(e){var t=e-1,i=t-1;t>0&&(-1!==this.renderedPagesList.indexOf(t)||this.getMagnified()||(this.createRequestForRender(t),this.renderCountIncrement()),i>0&&(-1!==this.renderedPagesList.indexOf(i)||this.getMagnified()||(this.createRequestForRender(i),this.renderCountIncrement())))},e.prototype.downloadDocument=function(e){e=(URL||webkitURL).createObjectURL(e);var i=t.createElement("a");if(i.click){if(i.href=e,i.target="_parent","download"in i)if(t.isNullOrUndefined(this.downloadFileName))i.download="Default.pdf";else if(this.downloadFileName.endsWith(".pdf"))i.download=this.downloadFileName;else{var n=this.downloadFileName.split(".pdf")[0]+".pdf";i.download=n}(document.body||document.documentElement).appendChild(i),i.click(),i.parentNode.removeChild(i)}else{if(window.top===window&&e.split("#")[0]===window.location.href.split("#")[0]){var o=-1===e.indexOf("?")?"?":"&";e=e.replace(/#|$/,o+"$&")}window.open(e,"_parent")}},e.prototype.downloadExportFormat=function(e,i,n,o){var r="Json"===i||"Json"===n,a=r?".json":"Fdf"===n?".fdf":"Xml"===n?".xml":"Xfdf"===i||"Xfdf"===n?".xfdf":null;if(!t.isNullOrUndefined(a)){e=(URL||webkitURL).createObjectURL(e);var s=t.createElement("a");if(s.click)s.href=e,s.target="_parent","download"in s&&(null!==this.pdfViewer.exportAnnotationFileName?s.download=this.pdfViewer.exportAnnotationFileName.split(".")[0]+a:s.download=this.pdfViewer.fileName.split(".")[0]+a),(document.body||document.documentElement).appendChild(s),s.click(),s.parentNode.removeChild(s),o?this.pdfViewer.fireFormExportSuccess(e,s.download):this.pdfViewer.fireExportSuccess(e,s.download);else if(r){if(window.top===window&&e.split("#")[0]===window.location.href.split("#")[0]){var l=-1===e.indexOf("?")?"?":"&";e=e.replace(/#|$/,l+"$&")}window.open(e,"_parent"),o?this.pdfViewer.fireFormExportSuccess(e,this.pdfViewer.fileName.split(".")[0]+a):this.pdfViewer.fireExportSuccess(e,this.pdfViewer.fileName.split(".")[0]+a)}}},e.prototype.exportFormFields=function(e,t){this.createRequestForExportFormfields(!1,t,e)},e.prototype.importFormFields=function(e,t){this.createRequestForImportingFormfields(e,t)},e.prototype.createRequestForExportFormfields=function(e,t,i){var n=this,o=null;o=this;var r=new Promise(function(r,a){var s=o.createFormfieldsJsonData(),l=!1;if("Json"!==t&&"Fdf"!==t&&"Xfdf"!==t&&"Xml"!==t||(s.formFieldDataFormat=t,l=o.pdfViewer.fireFormExportStarted(s)),l){s.action="ExportFormFields",s.hashId=o.hashId,s.fileName=o.pdfViewer.fileName,i&&""!==i&&!e&&(s.filePath=i),s.elementId=n.pdfViewer.element.id,o.jsonDocumentId&&(s.document=o.jsonDocumentId);var d=n.getFormFieldsPageList(s.formDesigner);s.formFieldsPageList=JSON.stringify(d),s.isFormFieldAnnotationsExist=n.isAnnotationsExist(s.formDesigner)||n.isFieldsDataExist(s.fieldsData)||d.length>0;var A=o.pdfViewer.serviceUrl+"/"+o.pdfViewer.serverActionSettings.exportFormFields;if(o.exportFormFieldsRequestHandler=new Pi(n.pdfViewer),o.exportFormFieldsRequestHandler.url=A,o.exportFormFieldsRequestHandler.mode=!0,o.exportFormFieldsRequestHandler.responseType="text",o.validateForm&&o.pdfViewer.enableFormFieldsValidation)o.pdfViewer.fireValidatedFailed(o.pdfViewer.serverActionSettings.download),o.validateForm=!1;else if(o.clientSideRendering){var h=o.pdfViewer.pdfRendererModule.exportFormFields(s,e),p=new TextDecoder("utf-8").decode(h);if(e){var c=n.getDataOnSuccess(p);r(c)}else o.exportFileDownload(h,o,t,s,e)}else o.exportFormFieldsRequestHandler.send(s);o.exportFormFieldsRequestHandler.onSuccess=function(i){var n=i.data;if(!o.checkRedirection(n)&&n)if(e){var a=o.exportFileDownload(n,o,t,s,e);r(a)}else o.exportFileDownload(n,o,t,s,e)},o.exportFormFieldsRequestHandler.onFailure=function(e){o.pdfViewer.fireFormExportFailed(s.pdfAnnotation,e.statusText)},o.exportFormFieldsRequestHandler.onError=function(e){o.pdfViewer.fireFormExportFailed(s.pdfAnnotation,e.statusText)}}});return!e||r},e.prototype.exportFileDownload=function(e,i,n,o,r){return this.clientSideRendering?new Promise(function(a){if(e)if(i.clientSideRendering||i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.exportFormFields,e),r){var s=decodeURIComponent(escape(atob(e.split(",")[1])));a(s),i.pdfViewer.fireFormExportSuccess(s,i.pdfViewer.fileName)}else if(e&&"string"!=typeof e){var l=new Blob([e],{type:"application/json"});t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(l,i.pdfViewer.fileName.split(".")[0]+".json"):"Json"!==o.formFieldDataFormat&&"Fdf"!==o.formFieldDataFormat&&"Xfdf"!==o.formFieldDataFormat&&"Xml"!==o.formFieldDataFormat||i.downloadExportFormat(l,null,n,!0)}}):new Promise(function(a){if(e)if(i.clientSideRendering||i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.exportFormFields,e),r){var s=decodeURIComponent(escape(atob(e.split(",")[1])));a(s),i.pdfViewer.fireFormExportSuccess(s,i.pdfViewer.fileName)}else if(e.split("base64,")[1]){var l=i.createBlobUrl(e.split("base64,")[1],"application/json");t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(l,i.pdfViewer.fileName.split(".")[0]+".json"):"Json"!==o.formFieldDataFormat&&"Fdf"!==o.formFieldDataFormat&&"Xfdf"!==o.formFieldDataFormat&&"Xml"!==o.formFieldDataFormat||i.downloadExportFormat(l,null,n,!0)}})},e.prototype.getLastIndexValue=function(e,t){return e.slice(e.lastIndexOf(t)+1)},e.prototype.createRequestForImportingFormfields=function(i,n){var o=null;o=this;var r={},a=this.getLastIndexValue(i,".");"object"==typeof i||"json"!==a&&"fdf"!==a&&"xfdf"!==a&&"xml"!==a?(r.formFieldDataFormat=n,r.data="Json"===n?JSON.stringify(i):i):(r.data=i,r.fileName=o.pdfViewer.fileName,r.formFieldDataFormat=n),o.pdfViewer.fireFormImportStarted(i),r.hashId=o.hashId,r.elementId=this.pdfViewer.element.id,o.jsonDocumentId&&(r.document=o.jsonDocumentId),(r=Object.assign(r,this.constructJsonDownload())).action="ImportFormFields";var s=o.pdfViewer.serviceUrl+"/"+o.pdfViewer.serverActionSettings.importFormFields;if(o.importFormFieldsRequestHandler=new Pi(this.pdfViewer),o.importFormFieldsRequestHandler.url=s,o.importFormFieldsRequestHandler.mode=!0,o.importFormFieldsRequestHandler.responseType="text",o.clientSideRendering){var l=o.pdfViewer.pdfRendererModule.importFormFields(r);this.importClientSideFormFields(l,i)}else o.importFormFieldsRequestHandler.send(r);o.importFormFieldsRequestHandler.onSuccess=function(n){var r=n.data;if(!o.checkRedirection(r))if(r&&"null"!==r){if("object"!=typeof r)try{"object"!=typeof(r=JSON.parse(r))&&(o.onControlError(500,r,o.pdfViewer.serverActionSettings.importFormFields),o.pdfViewer.fireFormImportFailed(i,n.statusText),r=null)}catch(e){o.pdfViewer.fireFormImportFailed(i,o.pdfViewer.localeObj.getConstant("File not found")),t.isBlazor()?(s=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_FileNotFound")).then(function(e){o.openImportExportNotificationPopup(e)}):o.openImportExportNotificationPopup(o.pdfViewer.localeObj.getConstant("File not found")),o.onControlError(500,r,o.pdfViewer.serverActionSettings.importFormFields),r=null}o.pdfViewer.fireAjaxRequestSuccess(o.pdfViewer.serverActionSettings.importFormFields,r),o.pdfViewer.fireFormImportSuccess(i),e.sessionStorageManager.removeItem(this.documentId+"_formfields"),this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.removeExistingFormFields(),e.sessionStorageManager.removeItem(this.documentId+"_formDesigner"),o.saveFormfieldsData(r);for(var a=0;a<o.renderedPagesList.length;a++)this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.renderFormFields(o.renderedPagesList[parseInt(a.toString(),10)],!0)}else if(o.pdfViewer.fireFormImportFailed(i,n.statusText),t.isBlazor()){var s=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_FileNotFound");s.then(function(e){o.openImportExportNotificationPopup(e)})}else o.openImportExportNotificationPopup(o.pdfViewer.localeObj.getConstant("File not found"))},o.importFormFieldsRequestHandler.onFailure=function(e){o.pdfViewer.fireFormImportFailed(i,e.statusText)},o.importFormFieldsRequestHandler.onError=function(e){o.pdfViewer.fireFormImportFailed(i,e.statusText)}},e.prototype.importClientSideFormFields=function(i,n){if(t.isNullOrUndefined(i))this.pdfViewer.fireFormImportFailed(n,null),this.openImportExportNotificationPopup(this.pdfViewer.localeObj.getConstant("File not found"));else{this.pdfViewer.fireFormImportSuccess(n),this.pdfViewer.viewerBase.existingFieldImport=!1,e.sessionStorageManager.removeItem(this.documentId+"_formfields"),this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.removeExistingFormFields(),e.sessionStorageManager.removeItem(this.documentId+"_formDesigner"),this.saveFormfieldsData(i);for(var o=0;o<this.renderedPagesList.length;o++)this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.renderFormFields(this.renderedPagesList[parseInt(o.toString(),10)],!0)}},e.prototype.createFormfieldsJsonData=function(){var e={};if(this.pdfViewer.formDesignerModule){t=this.pdfViewer.formDesignerModule.downloadFormDesigner();e.formDesigner=t}else if(this.pdfViewer.formFieldsModule){var t=this.pdfViewer.formFieldsModule.downloadFormFieldsData();e.fieldsData=t}return e},e.prototype.constructJsonDownload=function(){var e={hashId:this.hashId};if(this.jsonDocumentId&&(e.documentId=this.jsonDocumentId),e.uniqueId=this.documentId,this.importPageList=[],this.pdfViewer.annotationModule&&this.saveImportedAnnotations(),this.isTextMarkupAnnotationModule()){this.isJsonExported=!1;var i=this.pdfViewer.annotationModule.textMarkupAnnotationModule.saveTextMarkupAnnotations();e.textMarkupAnnotations=i}if(this.isShapeAnnotationModule()){this.isJsonExported=!1;var n=this.pdfViewer.annotationModule.shapeAnnotationModule.saveShapeAnnotations();e.shapeAnnotations=n}if(this.isCalibrateAnnotationModule()){this.isJsonExported=!1;var o=this.pdfViewer.annotationModule.measureAnnotationModule.saveMeasureShapeAnnotations();e.measureShapeAnnotations=o}if(this.isStampAnnotationModule()){var r=this.pdfViewer.annotationModule.stampAnnotationModule.saveStampAnnotations();e.stampAnnotations=r}if(this.isCommentAnnotationModule()){var a=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.saveStickyAnnotations();e.stickyNotesAnnotation=a}if(this.isImportAction){var s=JSON.stringify(this.importPageList);e.importPageList=s}if(this.pdfViewer.formDesignerModule){l=this.pdfViewer.formDesignerModule.downloadFormDesigner();e.formDesigner=l}if(this.pdfViewer.formFieldsModule&&t.isNullOrUndefined(e.formDesigner)){var l=this.pdfViewer.formFieldsModule.downloadFormFieldsData();e.fieldsData=l}var d=this.signatureModule.saveSignature();if(e.signatureData=d,this.pdfViewer.isSignatureEditable&&(e.isSignatureEdited=this.pdfViewer.isSignatureEditable),this.isFreeTextAnnotationModule()){var A=this.pdfViewer.annotationModule.freeTextAnnotationModule.saveFreeTextAnnotations();e.freeTextAnnotation=A}if(this.isInkAnnotationModule()){var h=this.pdfViewer.annotationModule.inkAnnotationModule.saveInkSignature();e.inkSignatureData=h}if(e.action="Download",e.elementId=this.pdfViewer.element.id,this.pdfViewer.annotationModule){var p=this.getAnnotationsPageList();e.isAnnotationsExist=this.isAnnotationsExist(e.textMarkupAnnotations)||this.isAnnotationsExist(e.shapeAnnotations)||this.isAnnotationsExist(e.measureShapeAnnotations)||this.isAnnotationsExist(e.stampAnnotations)||this.isAnnotationsExist(e.stickyNotesAnnotation)||this.isAnnotationsExist(e.signatureData)||this.isAnnotationsExist(e.freeTextAnnotation)||this.isAnnotationsExist(e.inkSignatureData)||p.length>0,e.annotationsPageList=JSON.stringify(p)}if(this.pdfViewer.formDesignerModule||this.pdfViewer.formFieldsModule){var c=this.getFormFieldsPageList(e.formDesigner);e.isFormFieldAnnotationsExist=this.isAnnotationsExist(e.formDesigner)||this.isFieldsDataExist(e.fieldsData)||c.length>0,e.formFieldsPageList=JSON.stringify(c)}return this.pdfViewer.annotationCollection&&(e.annotationCollection=JSON.stringify(this.pdfViewer.annotationCollection)),e},e.prototype.isAnnotationsExist=function(e){return!t.isNullOrUndefined(e)&&JSON.parse(e).flat(1).length>0},e.prototype.isFieldsDataExist=function(e){return!t.isNullOrUndefined(e)&&0!==Object.entries(JSON.parse(e)).length},e.prototype.getAnnotationsPageList=function(){var e=this.pdfViewer.annotationCollection.map(function(e){return e.pageNumber}),i=this.pdfViewer.annotationModule.actionCollection.filter(function(e){return"formFields"!==e.annotation.propName&&t.isNullOrUndefined(e.annotation.formFieldAnnotationType)}).map(function(e){return e.pageIndex});return e.concat(i,this.modifiedPageIndex).filter(function(e,t,i){return i.indexOf(e)===t&&void 0!==e})},e.prototype.getFormFieldsPageList=function(e){var i,n=this.pdfViewer.formFieldCollection.map(function(e){return t.isNullOrUndefined(e.properties)?e.pageNumber+1:e.properties.pageNumber}),o=t.isNullOrUndefined(this.pdfViewer.annotationModule)?[]:this.pdfViewer.annotationModule.actionCollection.filter(function(e){return"formFields"===e.annotation.propName||!t.isNullOrUndefined(e.annotation.formFieldAnnotationType)||!t.isNullOrUndefined(e.annotation.type)}).map(function(e){return e.pageIndex}),r=n.concat(o);return t.isNullOrUndefined(e)||(i=JSON.parse(e).map(function(e){return e.FormField.pageNumber})),r.concat(i).filter(function(e,i,n){return n.indexOf(e)===i&&!t.isNullOrUndefined(e)})},e.prototype.checkFormFieldCollection=function(e){var t=!1,i=null;if(i=this.getItemFromSessionStorage("_formDesigner"))for(var n=JSON.parse(i),o=0;o<n.length;o++)if("RadioButton"===n[parseInt(o.toString(),10)].FormField.formFieldAnnotationType){for(var r=0;r<n[parseInt(o.toString(),10)].FormField.radiobuttonItem.length;r++)if(e===n[parseInt(o.toString(),10)].FormField.radiobuttonItem[parseInt(r.toString(),10)].id.split("_")[0]){t=!0;break}}else if(n[parseInt(o.toString(),10)].Key.split("_")[0]===e){t=!0;break}return t},e.prototype.isFreeTextAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.freeTextAnnotationModule)},e.prototype.createRequestForDownload=function(){var e=null;if((e=this).pdfViewer.fireDownloadStart(e.downloadFileName)){var i=this.constructJsonDownload();if((e.clientSideRendering?e.isDigitalSignaturePresent:e.digitalSignaturePages&&0!==e.digitalSignaturePages.length)&&(e.pdfViewer.isDocumentEdited?i.digitalSignatureDocumentEdited=!0:i.digitalSignatureDocumentEdited=!1),e.pdfViewer.isDocumentEdited||!t.isNullOrUndefined(e.pdfViewer.pageOrganizer)&&e.pdfViewer.pageOrganizer.isDocumentModified?i.isPdfEdited=!0:i.isPdfEdited=!1,t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||t.isNullOrUndefined(this.pdfViewer.pageOrganizer.organizePagesCollection)||!this.pdfViewer.pageOrganizer.isDocumentModified||(i.organizePages=JSON.stringify(this.pdfViewer.pageOrganizer.organizePagesCollection)),this.dowonloadRequestHandler=new Pi(this.pdfViewer),this.dowonloadRequestHandler.url=e.pdfViewer.serviceUrl+"/"+e.pdfViewer.serverActionSettings.download,this.dowonloadRequestHandler.responseType="text",this.validateForm&&this.pdfViewer.enableFormFieldsValidation)this.pdfViewer.fireValidatedFailed(e.pdfViewer.serverActionSettings.download),this.validateForm=!1;else if(this.clientSideRendering){var n=this.pdfViewer.pdfRendererModule.getDocumentAsBase64(i);this.fileDownload(n,this)}else this.dowonloadRequestHandler.send(i);this.dowonloadRequestHandler.onSuccess=function(t){var i=t.data;e.checkRedirection(i)||(i?e.fileDownload(i,e):e.pdfViewer.fireDownloadEnd(e.downloadFileName,"PDF Document saved in server side successfully"))},this.dowonloadRequestHandler.onFailure=function(t){e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,e.pdfViewer.serverActionSettings.download)},this.dowonloadRequestHandler.onError=function(t){e.openNotificationPopup(),e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,e.pdfViewer.serverActionSettings.download)}}},e.prototype.fileDownload=function(e,i,n){if(void 0===n&&(n=!1),this.clientSideRendering){if(e){if("object"!=typeof e&&(i.onControlError(500,e,i.pdfViewer.serverActionSettings.download),e=null),e){i.pdfViewer.downloadFileName&&i.pdfViewer.downloadFileName!==i.downloadFileName&&(i.downloadFileName=i.pdfViewer.downloadFileName),this.pdfViewer.enableHtmlSanitizer&&i.pdfViewer.downloadFileName&&(i.pdfViewer.downloadFileName=t.SanitizeHtmlHelper.sanitize(i.pdfViewer.downloadFileName)),i.clientSideRendering&&!n&&i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.download,e);o=new Blob([e],{type:"application/pdf"});t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(o,i.downloadFileName):i.downloadDocument(o),n||i.pdfViewer.fireDownloadEnd(i.downloadFileName,e)}n||i.updateDocumentAnnotationCollections()}}else if(e){if("object"!=typeof e&&-1===e.indexOf("data:application/pdf")&&(i.onControlError(500,e,i.pdfViewer.serverActionSettings.download),e=null),"object"==typeof e&&(e=JSON.parse(e)),e){i.pdfViewer.downloadFileName&&i.pdfViewer.downloadFileName!==i.downloadFileName&&(i.downloadFileName=i.pdfViewer.downloadFileName),this.pdfViewer.enableHtmlSanitizer&&i.pdfViewer.downloadFileName&&(i.pdfViewer.downloadFileName=t.SanitizeHtmlHelper.sanitize(i.pdfViewer.downloadFileName)),n||i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.download,e);var o=i.createBlobUrl(e.split("base64,")[1],"application/pdf");t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(o,i.downloadFileName):i.downloadDocument(o),n||i.pdfViewer.fireDownloadEnd(i.downloadFileName,e)}n||i.updateDocumentAnnotationCollections()}},e.prototype.getTileCount=function(e,t){if(e&&"number"==typeof e){var i=1;i=this.getZoomFactor()>2&&e<=1200?2:e/816;var n=Math.ceil(i);return n<=0?1:this.pdfViewer.tileRenderingSettings.enableTileRendering?n:1}return 1},e.prototype.createRequestForRender=function(e){var n,o,r,a=null,s=(a=this).getElement("_pageCanvas_"+e),l=a.getElement("_oldCanvas_"+e);if(this.pageSize&&this.pageSize[parseInt(e.toString(),10)]){var d=this.pageSize[parseInt(e.toString(),10)].width,A=this.pageSize[parseInt(e.toString(),10)].height,h=(this.getElement("_pageCanvas_"+e),1200),p=a.pdfViewer.element.clientHeight>0?a.pdfViewer.element.clientHeight:a.pdfViewer.element.style.height;h=parseInt(h,10),p=parseInt(p,10)?parseInt(p,10):500;var c=void 0,g=void 0,u=void 0,f=new Object,m=document.getElementById(this.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+e);this.isMinimumZoom&&m&&m.children[0]&&!t.isNullOrUndefined(m.children[0].src)&&""!==m.children[0].src?h>=d&&(this.renderThumbnailImages=!0,u=m.children[0].src):this.renderThumbnailImages=!1;var w=this.getTileCount(d,A);if(s){isNaN(parseFloat(s.style.width))&&!l||a.isInitialLoaded&&a.showPageLoadingIndicator(e,!1);var C=a.getStoredData(e);c=g=w;var B=a.pdfViewer.tileRenderingSettings;B.enableTileRendering&&B.x>0&&B.y>0&&(h<d||this.getZoomFactor()>2)&&(c=B.x,g=B.y),a.tileRequestCount=c*g;var S=this.retrieveCurrentZoomFactor(),y=void 0;if(1===w)C=a.getStoredData(e),y=a.pageRequestSent(e,0,0);else{var I=JSON.parse(a.getWindowSessionStorageTile(e,0,0,S));w>1&&(C=I)}if(C&&C.uniqueId===a.documentId&&(C.image||this.isMinimumZoom)){if(s.style.backgroundColor="#fff",a.pdfViewer.magnification&&a.pdfViewer.magnification.isPinchZoomed||!this.pageSize[parseInt(e.toString(),10)])return;var E=this.retrieveCurrentZoomFactor();if(h=E>2&&d<=1200?700:1200,a.pdfViewer.tileRenderingSettings.enableTileRendering||(h=1200),(h>=d||!a.pdfViewer.tileRenderingSettings.enableTileRendering)&&1===w)this.renderThumbnailImages&&1===w?a.renderPage(C,e,u):a.renderPage(C,e);else if(a.isTileImageRendered=!0,a.tileRenderCount=0,this.renderThumbnailImages&&1===w)a.renderPage(C,e,u);else{a.tileRenderPage(C,e);for(var v=0;v<c;v++)for(var b=0;b<g;b++)0===v&&0===b||(C=this.clientSideRendering?JSON.parse(this.getStoredTileImageDetails(e,v,b,E)):JSON.parse(this.getWindowSessionStorageTile(e,v,b,E)))&&a.tileRenderPage(C,e)}C=null}else if(null===C||!y){if(this.renderThumbnailImages||(this.getPagesPinchZoomed()?a.showPageLoadingIndicator(e,!1):a.showPageLoadingIndicator(e,!0),a.getPagesZoomed()&&a.isInitialLoaded&&a.showPageLoadingIndicator(e,!1)),a.pdfViewer.magnification&&a.pdfViewer.magnification.isPinchZoomed)return;a.pdfViewer.tileRenderingSettings.enableTileRendering&&!this.renderThumbnailImages||(c=1,g=1),a.tileRenderCount=0,a.isTileImageRendered=!0;for(var V=0;V<c;V++)for(var D=0;D<g;D++){var x=null,Q=this.retrieveCurrentZoomFactor();if(h=Q>2&&d<=1200?700:1200,a.pdfViewer.tileRenderingSettings.enableTileRendering||(h=1200),this.renderThumbnailImages&&!this.clientSideRendering){if(a.renderPage(f,e,u),-1===this.textrequestLists.indexOf(e)&&(x={pageStartIndex:e,pageEndIndex:e+1,documentId:a.getDocumentId(),hashId:a.hashId,action:"RenderPdfTexts",elementId:a.pdfViewer.element.id,uniqueId:a.documentId},this.jsonDocumentId&&(x.documentId=this.jsonDocumentId),this.textRequestHandler=new Pi(this.pdfViewer),this.textRequestHandler.url=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.renderTexts,this.textRequestHandler.responseType="json",this.clientSideRendering||((r=JSON.parse(JSON.stringify(x))).action="pageRenderInitiate",a.pdfViewer.firePageRenderInitiate(r),this.textRequestHandler.send(x)),this.textrequestLists.push(e),a.textRequestHandler.onSuccess=function(t){if(!(a.pdfViewer.magnification&&a.pdfViewer.magnification.isPinchZoomed||!a.pageSize[parseInt(e.toString(),10)])){var i=t.data;if(i&&"object"!=typeof i)try{i=JSON.parse(i)}catch(e){a.onControlError(500,i,a.pdfViewer.serverActionSettings.renderTexts),i=null}i&&a.pageTextRequestOnSuccess(i,a,e)}},this.textRequestHandler.onFailure=function(e){a.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,a.pdfViewer.serverActionSettings.renderTexts)},this.textRequestHandler.onError=function(e){a.openNotificationPopup(),a.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,a.pdfViewer.serverActionSettings.renderTexts)},this.clientSideRendering)){this.pdfViewer.pdfRendererModule.getDocumentText(x,"pageTextRequest")}}else if(x={xCoordinate:V.toString(),yCoordinate:D.toString(),viewPortWidth:h.toString(),viewPortHeight:p.toString(),pageNumber:e.toString(),hashId:a.hashId,tilecount:w.toString(),tileXCount:c.toString(),tileYCount:g.toString(),zoomFactor:Q.toString(),action:"RenderPdfPages",uniqueId:this.documentId,elementId:a.pdfViewer.element.id,digitalSignaturePresent:a.digitalSignaturePresent(e)},this.jsonDocumentId&&(x.documentId=this.jsonDocumentId),a.pageRequestHandler=new Pi(this.pdfViewer),a.pageRequestHandler.url=a.pdfViewer.serviceUrl+"/"+a.pdfViewer.serverActionSettings.renderPages,a.pageRequestHandler.responseType="json",t.isNullOrUndefined(a.hashId)||(0==x.xCoordinate&&0==x.yCoordinate&&((r=JSON.parse(JSON.stringify(x))).action="pageRenderInitiate",this.clientSideRendering||a.pdfViewer.firePageRenderInitiate(r)),this.requestCollection.push(this.pageRequestHandler),this.clientSideRendering||a.pageRequestHandler.send(x)),a.requestLists.push(a.documentId+"_"+e+"_"+V+"_"+D+"_"+Q),a.pageRequestHandler.onSuccess=function(t){if(!(a.pdfViewer.magnification&&a.pdfViewer.magnification.isPinchZoomed||!a.pageSize[parseInt(e.toString(),10)])){var i=t.data;if(a.checkRedirection(i))a.showLoadingIndicator(!1);else{if(i&&"object"!=typeof i)try{i=JSON.parse(i)}catch(e){a.onControlError(500,i,a.pdfViewer.serverActionSettings.renderPages),i=null}i&&a.pageRequestOnSuccess(i,a,h,d,e)}}},this.pageRequestHandler.onFailure=function(e){a.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,a.pdfViewer.serverActionSettings.renderPages)},this.pageRequestHandler.onError=function(e){a.openNotificationPopup(),a.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,a.pdfViewer.serverActionSettings.renderPages)},this.clientSideRendering){var M=a.documentId+"_"+e+"_textDetails",F=!a.pageTextDetails||!a.pageTextDetails[""+M],T=this.pdfViewer.pdfRenderer.loadedDocument.getPage(e),k=new i.Rect(0,0,0,0),P=new i.Rect(0,0,0,0);T&&T._pageDictionary&&T._pageDictionary._map&&T._pageDictionary._map.CropBox&&(n=T._pageDictionary._map.CropBox,k.x=n[0],k.y=n[1],k.width=n[2],k.height=n[3]),T&&T._pageDictionary&&T._pageDictionary._map&&T._pageDictionary._map.MediaBox&&(o=T._pageDictionary._map.MediaBox,P.x=o[0],P.y=o[1],P.width=o[2],P.height=o[3]),h>=d||!a.pdfViewer.tileRenderingSettings.enableTileRendering?((r=JSON.parse(JSON.stringify(x))).action="pageRenderInitiate",a.pdfViewer.firePageRenderInitiate(r),this.pdfViewerRunner.addTask({pageIndex:e,message:"renderPage",zoomFactor:Q,isTextNeed:F,textDetailsId:M,cropBoxRect:k,mediaBoxRect:P},Et.High)):(this.showPageLoadingIndicator(e,!0),0==x.xCoordinate&&0==x.yCoordinate&&((r=JSON.parse(JSON.stringify(x))).action="pageRenderInitiate",a.pdfViewer.firePageRenderInitiate(r)),this.pdfViewerRunner.addTask({pageIndex:e,message:"renderImageAsTile",zoomFactor:Q,tileX:V,tileY:D,tileXCount:c,tileYCount:g,isTextNeed:F,textDetailsId:M,cropBoxRect:k,mediaBoxRect:P},Et.High)),this.pdfViewerRunner.onMessage("imageRendered,renderTileImage,renderThumbnail,renderPreviewTileImage,printImage,textSearched",function(e){switch(e.data.message){case"imageRendered":if("imageRendered"===e.data.message){var i=document.createElement("canvas"),n=e.data,o=n.value,r=n.width,s=n.height,l=n.pageIndex;i.width=r,i.height=s,(M=(Q=i.getContext("2d")).createImageData(r,s)).data.set(o),Q.putImageData(M,0,0);F=i.toDataURL();a.releaseCanvas(i);var A=e.data.textBounds,p=e.data.textContent,c=e.data.pageText,g=e.data.rotation,u=e.data.characterBounds,f=a.pdfViewer.pdfRendererModule.getHyperlinks(l),m={image:F,pageNumber:l,uniqueId:a.documentId,pageWidth:e.data.pageWidth,zoomFactor:e.data.zoomFactor,hyperlinks:f.hyperlinks,hyperlinkBounds:f.hyperlinkBounds,linkAnnotation:f.linkAnnotation,linkPage:f.linkPage,annotationLocation:f.annotationLocation,characterBounds:u};if(e.data.isTextNeed)m.textBounds=A,m.textContent=p,m.rotation=g,m.pageText=c,a.storeTextDetails(l,A,p,c,g,u);else{R=JSON.parse(a.pageTextDetails[""+e.data.textDetailsId]);m.textBounds=R.textBounds,m.textContent=R.textContent,m.rotation=R.rotation,m.pageText=R.pageText,m.characterBounds=R.characterBounds}if(m&&m.image&&!t.isNullOrUndefined(m.image.split("base64,")[1])&&m.uniqueId===a.documentId){m.pageWidth&&m.pageWidth>0&&m.pageWidth;a.pdfViewer.fireAjaxRequestSuccess(a.pdfViewer.serverActionSettings.renderPages,m);var w=void 0!==m.pageNumber?m.pageNumber:l,C=a.createBlobUrl(m.image.split("base64,")[1],"image/png"),B={image:N=(L=URL||webkitURL).createObjectURL(C),width:m.pageWidth,uniqueId:m.uniqueId,zoomFactor:m.zoomFactor};a.storeImageData(w,B),a.pageRequestOnSuccess(m,a,h,d,l)}}break;case"renderTileImage":if("renderTileImage"===e.data.message){var S=document.createElement("canvas"),y=e.data,o=y.value,I=y.w,E=y.h,v=y.noTileX,b=y.noTileY,V=y.x,D=y.y,x=y.pageIndex;S.setAttribute("height",E),S.setAttribute("width",I),S.width=I,S.height=E;var Q=S.getContext("2d"),M=Q.createImageData(I,E);M.data.set(o),Q.putImageData(M,0,0);var F=S.toDataURL();a.releaseCanvas(S);var T=I,k=E,A=e.data.textBounds,p=e.data.textContent,c=e.data.pageText,g=e.data.rotation,u=e.data.characterBounds,f=void 0;0===V&&0===D&&(f=a.pdfViewer.pdfRendererModule.getHyperlinks(x));var P={image:F,noTileX:v,noTileY:b,pageNumber:x,tileX:V,tileY:D,uniqueId:a.documentId,pageWidth:d,width:T,transformationMatrix:{Values:[1,0,0,1,T*V,k*D,0,0,0]},zoomFactor:e.data.zoomFactor,characterBounds:u,isTextNeed:e.data.isTextNeed,textDetailsId:e.data.textDetailsId,textBounds:A,textContent:p,pageText:c,hyperlinks:f&&f.hyperlinks,hyperlinkBounds:f&&f.hyperlinkBounds,linkAnnotation:f&&f.linkAnnotation,linkPage:f&&f.linkPage};if(P&&P.image&&P.uniqueId===a.documentId){P.pageWidth&&P.pageWidth>0&&P.pageWidth;a.pdfViewer.fireAjaxRequestSuccess(a.pdfViewer.serverActionSettings.renderPages,P);w=void 0!==P.pageNumber?P.pageNumber:x;if(0===V&&0===D){var C=a.createBlobUrl(P.image.split("base64,")[1],"image/png"),N=(L=URL||webkitURL).createObjectURL(C);if(P.isTextNeed)P.textBounds=A,P.textContent=p,P.rotation=g,P.pageText=c,a.storeTextDetails(x,A,p,c,g,u);else{var R=JSON.parse(a.pageTextDetails[""+P.textDetailsId]);P.textBounds=R.textBounds,P.textContent=R.textContent,P.rotation=R.rotation,P.pageText=R.pageText,P.characterBounds=R.characterBounds}B={image:N,width:P.width,uniqueId:P.uniqueId,tileX:P.tileX,tileY:P.tileY,zoomFactor:P.zoomFactor,transformationMatrix:P.transformationMatrix,pageText:P.pageText,textContent:P.textContent,textBounds:P.textBounds};a.storeImageData(w,B,P.tileX,P.tileY)}else{var C=a.createBlobUrl(P.image.split("base64,")[1],"image/png"),L=URL||webkitURL,B={image:N=L.createObjectURL(C),width:P.width,uniqueId:P.uniqueId,tileX:P.tileX,tileY:P.tileY,zoomFactor:P.zoomFactor,transformationMatrix:P.transformationMatrix};a.storeImageData(w,B,P.tileX,P.tileY)}a.pageRequestOnSuccess(P,a,h,d,x,!0)}}break;case"renderThumbnail":a.clientSideRendering&&(a.pdfViewer.thumbnailViewModule.thumbnailOnMessage(e),a.pdfViewer.textSearch&&a.pdfViewer.pdfRendererModule.textExtractionOnmessage(e));break;case"renderPreviewTileImage":a.pdfViewer.pageOrganizer.previewOnMessage(e),a.pdfViewer.textSearch&&e.data.initialLoad&&a.pdfViewer.pdfRendererModule.textExtractionOnmessage(e);break;case"printImage":a.pdfViewer.printModule.printOnMessage(e);break;case"textSearched":a.pdfViewer.textSearchModule.searchTextAfteresult(e.data.resultPages,e.data.totalSearchCount,e.data.searchWord,e.data.matchCase,e.data.isRequestsend,e.data.isCompletedSearch,e.data.endIndex)}})}}}-1===this.renderedPagesList.indexOf(e)&&a.renderedPagesList.push(e)}}},e.prototype.pageRequestOnSuccess=function(e,i,n,o,r,a){for(;"object"!=typeof e;)e=JSON.parse(e);if(e.image&&e.uniqueId===i.documentId){var s=e.pageWidth&&e.pageWidth>0?e.pageWidth:o;i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.renderPages,e),r=t.isNullOrUndefined(e.pageNumber)?r:e.pageNumber,e.pageNumber=r+1,!(n>=s)&&i.pdfViewer.tileRenderingSettings.enableTileRendering||a?i.storeWinData(e,r,e.tileX,e.tileY):i.storeWinData(e,r),!(n>=s)&&i.pdfViewer.tileRenderingSettings.enableTileRendering||a?i.tileRenderPage(e,r):(i.renderPage(e,r),i.pdfViewer.firePageRenderComplete(e))}},e.prototype.pageTextRequestSuccess=function(e,t){this.pageTextRequestOnSuccess(e,this,t)},e.prototype.pageTextRequestOnSuccess=function(e,t,i){for(;"object"!=typeof e;)e=JSON.parse(e);if(e.documentTextCollection&&e.uniqueId===t.documentId){t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.renderTexts,e),t.pdfViewer.firePageRenderComplete(e);var n=void 0!==e.pageNumber?e.pageNumber:i;t.storeWinData(e,n),t.renderPage(e,i)}},e.prototype.requestForTextExtraction=function(e,t){var i=this,n={pageStartIndex:e,pageEndIndex:e+1,documentId:i.getDocumentId(),hashId:i.hashId,action:"RenderPdfTexts",elementId:i.pdfViewer.element.id,uniqueId:i.documentId};if(this.jsonDocumentId&&(n.documentId=this.jsonDocumentId),this.textRequestHandler=new Pi(this.pdfViewer),this.textRequestHandler.url=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.renderTexts,this.textRequestHandler.responseType="json",this.clientSideRendering||this.textRequestHandler.send(n),this.textrequestLists.push(e),i.textRequestHandler.onSuccess=function(n){if(!(i.pdfViewer.magnification&&i.pdfViewer.magnification.isPinchZoomed||!i.pageSize[parseInt(e.toString(),10)])){var o=n.data;if(!i.checkRedirection(o)){if(o&&"object"!=typeof o)try{o=JSON.parse(o)}catch(e){i.onControlError(500,o,i.pdfViewer.serverActionSettings.renderTexts),o=null}o&&i.textRequestOnSuccess(o,i,e,t)}}},this.textRequestHandler.onFailure=function(e){i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,i.pdfViewer.serverActionSettings.renderTexts)},this.textRequestHandler.onError=function(e){i.openNotificationPopup(),i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,i.pdfViewer.serverActionSettings.renderTexts)},this.clientSideRendering){this.pdfViewer.pdfRendererModule.getDocumentText(n,"textRequest",t)}},e.prototype.textRequestSuccess=function(e,t,i){this.textRequestOnSuccess(e,this,t,i)},e.prototype.textRequestOnSuccess=function(e,i,n,o){for(;"object"!=typeof e;)e=JSON.parse(e);if(e.documentTextCollection&&e.uniqueId===i.documentId){i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.renderTexts,e);var r=void 0!==e.pageNumber?e.pageNumber:n;if(i.storeWinData(e,r),t.isNullOrUndefined(o))i.renderPage(e,n);else{var a=o.bounds,s=e.documentTextCollection[0][parseInt(n.toString(),10)].PageText.split(""),l=e.characterBounds,d=i.textMarkUpContent(a,s,l);o.textMarkupContent=d,this.pdfViewer.annotationModule.storeAnnotations(n,o,"_annotations_textMarkup")}}},e.prototype.textMarkUpContent=function(e,t,i){for(var n="",o=0;o<e.length;o++)for(var r=0;r<i.length;r++){i[parseInt(r.toString(),10)].Y>=e[parseInt(o.toString(),10)].Y-.5&&i[parseInt(r.toString(),10)].X>=e[parseInt(o.toString(),10)].X-.5&&i[parseInt(r.toString(),10)].Y<=e[parseInt(o.toString(),10)].Y+e[parseInt(o.toString(),10)].Height+.5&&i[parseInt(r.toString(),10)].X<=e[parseInt(o.toString(),10)].X+e[parseInt(o.toString(),10)].Width+.5&&(n+=t[parseInt(r.toString(),10)])}return n.replace(/(\r\n)/gm,"")},e.prototype.digitalSignaturePresent=function(e){var t=!1;return this.digitalSignaturePages&&0!==this.digitalSignaturePages.length&&-1!==this.digitalSignaturePages.indexOf(e)&&(t=!0),t},e.prototype.pageRequestSent=function(e,t,i){var n=this.retrieveCurrentZoomFactor(),o=this.documentId+"_"+e+"_"+t+"_"+i+"_"+n;return!!(this.requestLists&&this.requestLists.indexOf(o)>-1)},e.prototype.onControlError=function(e,t,i){this.openNotificationPopup(),this.pdfViewer.fireAjaxRequestFailed(e,t,i)},e.prototype.getStoredData=function(e,i){var n=this.retrieveCurrentZoomFactor();this.pdfViewer.restrictZoomRequest&&!this.pdfViewer.tileRenderingSettings.enableTileRendering&&(n=this.initialZoomValue[parseInt(e.toString(),10)]);var o=this.getWindowSessionStorage(e,n)?this.getWindowSessionStorage(e,n):this.getPinchZoomPage(e);
10if(!o&&i){var r=this.clientSideRendering?this.getStoredTileImageDetails(e,0,0,n):this.getWindowSessionStorageTile(e,0,0,n),a=JSON.parse(r);if(r&&(o=r),a&&t.isNullOrUndefined(a.pageText)&&t.isNullOrUndefined(a.textContent)){var s=JSON.parse(this.getWindowSessionStorageTile(e,0,0,n));t.isNullOrUndefined(s)||s.uniqueId!==a.uniqueId||(o=JSON.stringify(s))}}var l=null;return o&&(l=o,this.isPinchZoomStorage||(l=JSON.parse(o)),this.isPinchZoomStorage=!1),l},e.prototype.storeWinData=function(e,t,i,n){var o;if(e.image){var r=this.createBlobUrl(e.image.split("base64,")[1],"image/png"),a=(URL||webkitURL).createObjectURL(r);isNaN(i)&&isNaN(n)||0===i&&0===n?(o={image:a,transformationMatrix:e.transformationMatrix,hyperlinks:e.hyperlinks,hyperlinkBounds:e.hyperlinkBounds,linkAnnotation:e.linkAnnotation,linkPage:e.linkPage,annotationLocation:e.annotationLocation,textContent:e.textContent,width:e.width,textBounds:e.textBounds,pageText:e.pageText,rotation:e.rotation,scaleFactor:e.scaleFactor,uniqueId:e.uniqueId,zoomFactor:e.zoomFactor,tileX:i,tileY:n},this.pageSize[parseInt(t.toString(),10)]&&(this.pageSize[parseInt(t.toString(),10)].rotation=parseFloat(e.rotation)),this.textLayer.characterBound[parseInt(t.toString(),10)]=e.characterBounds):o={image:a,transformationMatrix:e.transformationMatrix,tileX:i,tileY:n,width:e.width,zoomFactor:e.zoomFactor}}else{var s=e.documentTextCollection[0][parseInt(t.toString(),10)];o={textContent:e.textContent,textBounds:e.textBounds,pageText:s.PageText,rotation:e.rotation,uniqueId:e.uniqueId},this.pageSize[parseInt(t.toString(),10)]&&(this.pageSize[parseInt(t.toString(),10)].rotation=parseFloat(e.rotation)),this.textLayer.characterBound[parseInt(t.toString(),10)]=e.characterBounds}this.pageSize[parseInt(t.toString(),10)]&&this.pageSize[parseInt(t.toString(),10)].width,this.manageSessionStorage(t,o,i,n)},e.prototype.setCustomAjaxHeaders=function(e){for(var t=0;t<this.pdfViewer.ajaxRequestSettings.ajaxHeaders.length;t++)e.setRequestHeader(this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(t.toString(),10)].headerName,this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(t.toString(),10)].headerValue)},e.prototype.getPinchZoomPage=function(e){for(var t in this.pinchZoomStorage)if(Object.prototype.hasOwnProperty.call(this.pinchZoomStorage,t)&&this.pinchZoomStorage[t].index===e)return this.isPinchZoomStorage=!0,this.pinchZoomStorage[t].pinchZoomStorage;return null},e.prototype.getWindowSessionStorage=function(t,i){return e.sessionStorageManager.getItem(this.documentId+"_"+t+"_"+i)},e.prototype.getWindowSessionStorageTile=function(t,i,n,o){return e.sessionStorageManager.getItem(this.documentId+"_"+t+"_"+i+"_"+n+"_"+o)},e.prototype.getStoredTileImageDetails=function(e,t,i,n){return this.pageImageDetails[this.documentId+"_"+e+"_"+t+"_"+i+"_"+n+"_imageUrl"]||null},e.prototype.retrieveCurrentZoomFactor=function(){var e=this.getZoomFactor();return this.pdfViewer.enableZoomOptimization?(e<=1?e=1:e>1&&e<=2?e=2:e>2&&e<=3?e=3:e>3&&e<=4&&(e=4),e):(e<=0&&(e=1),e)},e.prototype.storeTextDetails=function(e,t,i,n,o,r){var a={textBounds:t,textContent:i,rotation:o,pageText:n,characterBounds:r};this.pageSize[parseInt(e.toString(),10)]&&(this.pageSize[parseInt(e.toString(),10)].rotation=o),this.textLayer.characterBound[parseInt(e.toString(),10)]=r,this.pageTextDetails[this.documentId+"_"+e+"_textDetails"]=JSON.stringify(a)},e.prototype.storeImageData=function(e,i,n,o){var r=t.isNullOrUndefined(i.zoomFactor)?this.retrieveCurrentZoomFactor():i.zoomFactor;isNaN(n)&&isNaN(o)?this.pageImageDetails[this.documentId+"_"+e+"_"+r+"_imageUrl"]=JSON.stringify(i):this.pageImageDetails[this.documentId+"_"+e+"_"+n+"_"+o+"_"+r+"_imageUrl"]=JSON.stringify(i)},e.prototype.manageSessionStorage=function(t,i,n,o){var r=e.sessionStorageManager.getWindowSessionStorageSize()+Math.round(JSON.stringify(i).length/1024),a=5e3,s=200;if((this.isDeviceiOS||this.isMacSafari)&&(a=2e3,s=80),r>=a){if(!this.isStorageExceed){for(var l=[],d=[],A=0;A<e.sessionStorageManager.getSessionLength();A++)e.sessionStorageManager.getKey(A)&&e.sessionStorageManager.getKey(A).split("_")[3]&&("annotations"===e.sessionStorageManager.getKey(A).split("_")[3]?(this.annotationStorage[e.sessionStorageManager.getKey(A)]=e.sessionStorageManager.getItem(e.sessionStorageManager.getKey(A)),l.push(e.sessionStorageManager.getKey(A))):"formfields"===e.sessionStorageManager.getKey(A).split("_")[3]?(this.formFieldStorage[e.sessionStorageManager.getKey(A)]=e.sessionStorageManager.getItem(e.sessionStorageManager.getKey(A)),d.push(e.sessionStorageManager.getKey(A))):"formDesigner"===e.sessionStorageManager.getKey(A).split("_")[3]&&(this.formFieldStorage[e.sessionStorageManager.getKey(A)]=e.sessionStorageManager.getItem(e.sessionStorageManager.getKey(A)),d.push(e.sessionStorageManager.getKey(A))));if(l)for(A=0;A<l.length;A++)e.sessionStorageManager.removeItem(l[parseInt(A.toString(),10)]);if(d)for(A=0;A<d.length;A++)e.sessionStorageManager.removeItem(d[parseInt(A.toString(),10)])}if(this.isStorageExceed=!0,(r=e.sessionStorageManager.getWindowSessionStorageSize())>=a){var h=e.sessionStorageManager.getSessionLength();h>s&&(h=s);for(A=0;A<h;A++)e.sessionStorageManager.getKey(A)&&e.sessionStorageManager.getKey(A).split("_")[3]&&"annotations"!==e.sessionStorageManager.getKey(A).split("_")[3]&&(e.sessionStorageManager.removeItem(e.sessionStorageManager.getKey(A)),h-=1,A-=1)}}var p=this.retrieveCurrentZoomFactor();this.initialZoomValue[parseInt(t.toString(),10)]=p,isNaN(n)&&isNaN(o)?(r<
vendor: 79,005 bytes, line 10
10a&&e.sessionStorageManager.setItem(this.documentId+"_"+t+"_"+p,JSON.stringify(i)),this.sessionStorage.push(this.documentId+"_"+t+"_"+p)):(this.sessionStorage.push(this.documentId+"_"+t+"_"+n+"_"+o+"_"+p),r<a&&e.sessionStorageManager.setItem(this.documentId+"_"+t+"_"+n+"_"+o+"_"+p,JSON.stringify(i)))},e.prototype.createBlobUrl=function(e,t){for(var i=atob(e),n=[],o=0;o<i.length;o+=512){for(var r=i.slice(o,o+512),a=new Array(r.length),s=0;s<r.length;s++)a[parseInt(s.toString(),10)]=r.charCodeAt(s);var l=new Uint8Array(a);n.push(l)}return new Blob(n,{type:t})},e.prototype.getRandomNumber=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){return(16*Math.random()|0).toString(16)})},e.prototype.createGUID=function(){return"Sync_PdfViewer_"+this.getRandomNumber()},e.prototype.isClickedOnScrollBar=function(e,t){var i=!1;return t&&this.setScrollDownValue(e.type,!1),this.viewerContainer.clientWidth+this.viewerContainer.offsetLeft<e.clientX&&e.clientX<this.viewerContainer.offsetWidth+this.viewerContainer.offsetLeft&&(i=!0,t&&this.setScrollDownValue(e.type,!0)),this.viewerContainer.clientHeight+this.viewerContainer.offsetTop<e.clientY&&e.clientY<this.viewerContainer.offsetHeight+this.viewerContainer.offsetTop&&(i=!0,t&&this.setScrollDownValue(e.type,!0)),i},e.prototype.setScrollDownValue=function(e,t){"mousedown"===e&&(this.isScrollbarMouseDown=t)},e.prototype.disableTextSelectionMode=function(){this.isTextSelectionDisabled=!0,t.isNullOrUndefined(this.viewerContainer)||this.viewerContainer.classList.remove("e-enable-text-selection"),this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.clearTextSelection(),t.isNullOrUndefined(this.viewerContainer)||(this.viewerContainer.classList.add("e-disable-text-selection"),this.viewerContainer.addEventListener("selectstart",function(){return!1}))},e.prototype.getElement=function(e){return document.getElementById(this.pdfViewer.element.id+e)},e.prototype.getPageWidth=function(e){return this.pageSize[parseInt(e.toString(),10)]?this.pageSize[parseInt(e.toString(),10)].width*this.getZoomFactor():0},e.prototype.getPageHeight=function(e){return this.pageSize[parseInt(e.toString(),10)]?this.pageSize[parseInt(e.toString(),10)].height*this.getZoomFactor():0},e.prototype.getPageTop=function(e){return this.pageSize[parseInt(e.toString(),10)]?this.pageSize[parseInt(e.toString(),10)].top*this.getZoomFactor():0},e.prototype.isAnnotationToolbarHidden=function(){return!this.pdfViewer.toolbarModule.annotationToolbarModule||this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden},e.prototype.isFormDesignerToolbarHidded=function(){var e=this.pdfViewer.toolbarModule.formDesignerToolbarModule;return!e||e.isToolbarHidden},e.prototype.getTextMarkupAnnotationMode=function(){return!!this.isTextMarkupAnnotationModule()&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode},e.prototype.isNewFreeTextAnnotation=function(){return!this.pdfViewer.annotationModule||!this.pdfViewer.annotationModule.freeTextAnnotationModule||!this.pdfViewer.annotationModule.freeTextAnnotationModule.isNewFreeTextAnnot},e.prototype.getCurrentTextMarkupAnnotation=function(){return!!this.isTextMarkupAnnotationModule()&&!!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation},e.prototype.getSelectTextMarkupCurrentPage=function(){return this.isTextMarkupAnnotationModule()?this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage:null},e.prototype.getAnnotationToolStatus=function(){return!!this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.isAnnotationButtonsEnabled()},e.prototype.getPopupNoteVisibleStatus=function(){return!!this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.isPopupNoteVisible},e.prototype.isTextMarkupAnnotationModule=function(){return this.pdfViewer.annotationModule?this.pdfViewer.annotationModule.textMarkupAnnotationModule:null},e.prototype.isShapeAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.shapeAnnotationModule)},e.prototype.isFormDesignerModule=function(){return!!this.pdfViewer.formDesignerModule},e.prototype.isFormFieldsModule=function(){return!!this.pdfViewer.formFieldsModule},e.prototype.isCalibrateAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.measureAnnotationModule)},e.prototype.isStampAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.stampAnnotationModule)},e.prototype.isInkAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.inkAnnotationModule)},e.prototype.isCommentAnnotationModule=function(){return!!this.pdfViewer.annotation&&!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.stickyNotesAnnotationModule)},e.prototype.isShapeBasedAnnotationsEnabled=function(){return!!(this.isShapeAnnotationModule()||this.isCalibrateAnnotationModule()||this.isStampAnnotationModule()||this.isCommentAnnotationModule()||this.isFormDesignerModule()||this.isFormFieldsModule())},e.prototype.getMousePosition=function(e){var t,i,n,o=e.target.parentElement;if(-1!==e.type.indexOf("touch")){if(t=e,this.pdfViewer.annotation||this.isDeviceiOS){var r=this.pdfViewer.currentPageNumber-1;this.pdfViewer.annotation&&!isNaN(this.pdfViewer.annotation.getEventPageNumber(e))&&(r=this.pdfViewer.annotation.getEventPageNumber(e)),isNaN(r)&&this.pdfViewer.formDesignerModule&&(r=this.pdfViewer.formDesignerModule.getEventPageNumber(e));var a=this.getElement("_pageDiv_"+r);if(a){var s=a.getBoundingClientRect();i=t.changedTouches[0].clientX-s.left,n=t.changedTouches[0].clientY-s.top}}}else if(e.target.classList.contains("e-pv-hyperlink"))i=e.offsetX+e.target.offsetLeft,n=e.offsetY+e.target.offsetTop;else if(e.target.classList.contains("e-pv-text")&&o){d=o.getBoundingClientRect();i=e.clientX-d.left,n=e.clientY-d.top}else if(e.target&&e&&e.path&&o&&(o.classList.contains("foreign-object")||o.parentElement.classList.contains("foreign-object"))){d=void 0;if("e-pv-page-div"===e.path[4].className)d=e.path[4].getBoundingClientRect();else for(var l=0;l<e.path.length;l++)if("e-pv-page-div"===e.path[parseInt(l.toString(),10)].className){d=e.path[parseInt(l.toString(),10)].getBoundingClientRect();break}i=e.clientX-d.left,n=e.clientY-d.top}else if(e.target&&o&&o.classList.contains("foreign-object")||e.target.classList.contains("e-pv-checkbox-div")){var d=void 0;d=e.target.classList.contains("e-pv-checkbox-div")?e.target.offsetParent.offsetParent.offsetParent.offsetParent.getBoundingClientRect():e.target.offsetParent.offsetParent.offsetParent.getBoundingClientRect(),i=e.clientX-d.left,n=e.clientY-d.top}else i=e.offsetX,n=e.offsetY;return{x:i,y:n}},e.prototype.getMouseEventArgs=function(e,t,i,n){t.position=e;var o;n?o=j(i,this,this.pdfViewer):"Drag"===this.action||"ConnectorSourceEnd"===this.action||"SegmentEnd"===this.action||"OrthoThumb"===this.action||"BezierSourceThumb"===this.action||"BezierTargetThumb"===this.action||"ConnectorTargetEnd"===this.action||-1!==this.action.indexOf("Rotate")||-1!==this.action.indexOf("Resize")?(o=this.pdfViewer.selectedItems,"Drag"===this.action&&o&&this.pdfViewer.selectedItems.annotations.length>0?o=j(i,this,this.pdfViewer):"Drag"===this.action&&o&&this.pdfViewer.selectedItems.formFields.length>0&&(o=j(i,this,this.pdfViewer))):o=j(i,this,this.pdfViewer);var r;return o&&(r=o.wrapper),n?(t.target=o,t.targetWrapper=r):(t.source=o,t.sourceWrapper=r),t.actualObject=this.eventArgs.actualObject,t},e.prototype.findToolToActivate=function(e,t){t={x:t.x/this.getZoomFactor(),y:t.y/this.getZoomFactor()};var n=this.pdfViewer.selectedItems.wrapper;if(n&&e){var o=n.bounds,r=new i.Rect(o.x,o.y,o.width,o.height);if("Line"===e.shapeAnnotationType||"LineWidthArrowHead"===e.shapeAnnotationType||"Distance"===e.shapeAnnotationType||"Polygon"===e.shapeAnnotationType){var a=this.pdfViewer.selectedItems.annotations[0];if(a)for(d=0;d<a.vertexPoints.length;d++)if(i.contains(t,a.vertexPoints[parseInt(d.toString(),10)],10)&&0!==a.leaderHeight)return"ConnectorSegmentPoint_"+d}if("Distance"===e.shapeAnnotationType){var s=0,l=void 0;if(e&&e.wrapper)for(var d=0;d<e.wrapper.children.length;d++){var A=i.Point.findAngle(e.sourcePoint,e.targetPoint);if(e.wrapper.children[parseInt(d.toString(),10)].id.indexOf("leader")>-1){var h=e.wrapper.children[0].bounds.center;0===s?(l={x:e.sourcePoint.x,y:e.sourcePoint.y-e.leaderHeight},h=e.sourcePoint):(l={x:e.targetPoint.x,y:e.targetPoint.y-e.leaderHeight},h=e.targetPoint);var p=i.identityMatrix();i.rotateMatrix(p,A,h.x,h.y);var c=i.transformPointByMatrix(p,{x:l.x,y:l.y});if(i.contains(t,c,10))return"Leader"+s;s++}}}var g=this.pdfViewer.touchPadding;this.getZoomFactor()<=1.5&&(g/=this.getZoomFactor());var u=i.identityMatrix();i.rotateMatrix(u,e.rotateAngle+n.parentTransform,n.offsetX,n.offsetY);var f=n.offsetX-n.pivot.x*n.actualSize.width,m=n.offsetY-n.pivot.y*n.actualSize.height,w={x:f+(.5===n.pivot.x?2*n.pivot.x:n.pivot.x)*n.actualSize.width/2,y:m-30/this.getZoomFactor()};if(w=i.transformPointByMatrix(u,w),"Stamp"===e.shapeAnnotationType&&i.contains(t,w,g))return"Rotate";if((r=this.inflate(g,r)).containsPoint(t,0)){var C=this.checkResizeHandles(this.pdfViewer,n,t,u,f,m);if(C)return C}return this.pdfViewer.selectedItems.annotations.indexOf(e)>-1?"Drag":this.pdfViewer.selectedItems.formFields.indexOf(e)>-1&&this.pdfViewer.designerMode?"Drag":"Select"}return this.pdfViewer.tool||"Select"},e.prototype.inflate=function(e,t){return t.x-=e,t.y-=e,t.width+=2*e,t.height+=2*e,t},e.prototype.checkResizeHandles=function(e,t,i,n,o,r){var a;return a||(a=this.checkForResizeHandles(e,t,i,n,o,r)),a||null},e.prototype.checkForResizeHandles=function(e,n,o,r,a,s){var l=this.pdfViewer.touchPadding/1;this.getZoomFactor()>=2&&!t.Browser.isDevice&&(l/=this.getZoomFactor()/1.9),(n.actualSize.width<40||n.actualSize.height<40&&t.Browser.isDevice)&&(l=l/2*this.getZoomFactor()/1);e.selectedItems;var d=!1,A=!1,h=!1,p=!1,c=this.pdfViewer.annotationSelectorSettings.resizerLocation;if((c<1||c>3)&&(c=3),!this.pdfViewer.selectedItems.annotations[0]||"Stamp"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"FreeText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Image"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"HandWrittenSignature"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureImage"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||(d=!0),this.pdfViewer.selectedItems.annotations[0]&&"StickyNotes"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(A=!0),this.pdfViewer.selectedItems.annotations[0]&&"Ink"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(p=!0),!this.pdfViewer.selectedItems.annotations[0]||"Ellipse"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Radius"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Rectangle"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||(h=!0),!A){if(p||d||this.pdfViewer.selectedItems.annotations[0]&&("HandWrittenSignature"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureImage"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType)||n.actualSize.width>=40&&n.actualSize.height>=40&&h&&(1===c||3===c)){if(i.contains(o,i.transformPointByMatrix(r,{x:a+n.actualSize.width,y:s+n.actualSize.height}),l))return"ResizeSouthEast";if(i.contains(o,i.transformPointByMatrix(r,{x:a,y:s+n.actualSize.height}),l))return"ResizeSouthWest";if(i.contains(o,i.transformPointByMatrix(r,{x:a+n.actualSize.width,y:s}),l))return"ResizeNorthEast";if(i.contains(o,i.transformPointByMatrix(r,{x:a,y:s}),l))return"ResizeNorthWest"}if(p||!h||h&&(2===c||3===c||!(n.actualSize.width>=40&&n.actualSize.height>=40)&&1===c)){if(i.contains(o,i.transformPointByMatrix(r,{x:a+n.actualSize.width,y:s+n.actualSize.height/2}),l)&&!d)return"ResizeEast";if(i.contains(o,i.transformPointByMatrix(r,{x:a,y:s+n.actualSize.height/2}),l)&&!d)return"ResizeWest";if(i.contains(o,i.transformPointByMatrix(r,{x:a+n.actualSize.width/2,y:s+n.actualSize.height}),l)&&!d)return"ResizeSouth";if(i.contains(o,i.transformPointByMatrix(r,{x:a+n.actualSize.width/2,y:s}),l)&&!d)return"ResizeNorth"}}return null},e.prototype.checkSignatureFormField=function(e){var t=!1;this.pdfViewer.formDesignerModule&&(e=e.split("_")[0]);var i=this.pdfViewer.nameTable[""+e];return i&&("SignatureField"!==i.formFieldAnnotationType&&"InitialField"!==i.formFieldAnnotationType&&"SignatureField"!==i.annotName||(t=!0)),t},e.prototype.diagramMouseMove=function(e){var n=this.pdfViewer.allowServerDataBinding,o=this.getElement("_pageDiv_"+(this.currentPageNumber-1));this.pdfViewer.enableServerDataBinding(!1),this.currentPosition=this.getMousePosition(e),this.pdfViewer.firePageMouseover(this.currentPosition.x,this.currentPosition.y),this.pdfViewer.annotation?this.activeElements.activePageID=this.pdfViewer.annotation.getEventPageNumber(e):this.pdfViewer.formDesignerModule&&(this.activeElements.activePageID=this.pdfViewer.formDesignerModule.getEventPageNumber(e));var r=j(e,this,this.pdfViewer);(this.tool instanceof Ct||this.tool instanceof St)&&(r=this.pdfViewer.drawingObject);var a,s=this.pdfViewer.selectedItems.annotations.length>0&&this.checkSignatureFormField(this.pdfViewer.selectedItems.annotations[0].id);if(!1===i.Point.equals(this.currentPosition,this.prevPosition)||this.inAction){if(!1===this.isMouseDown){this.eventArgs={};r&&(this.tool=this.getTool(this.action),r.wrapper&&r.wrapper.children[0]&&(a=r));l=e.target;this.action=this.findToolToActivate(r,this.currentPosition),r&&r.annotationSettings&&r.annotationSettings.isLock&&("Select"===this.action&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Select",r)||(this.action="")),"Drag"===this.action&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Move",r)||(this.action="Select")),("ResizeSouthEast"===this.action||"ResizeNorthEast"===this.action||"ResizeNorthWest"===this.action||"ResizeSouthWest"===this.action||"ResizeNorth"===this.action||"ResizeWest"===this.action||"ResizeEast"===this.action||"ResizeSouth"===this.action||this.action.includes("ConnectorSegmentPoint")||this.action.includes("Leader"))&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Resize",r)||(this.action="Select"))),this.pdfViewer.designerMode||(t.isNullOrUndefined(a)||t.isNullOrUndefined(a.formFieldAnnotationType))&&!s||("ResizeSouthEast"===this.action||"ResizeNorthEast"===this.action||"ResizeNorthWest"===this.action||"ResizeSouthWest"===this.action||"ResizeNorth"===this.action||"Drag"===this.action||"ResizeWest"===this.action||"ResizeEast"===this.action||"ResizeSouth"===this.action||this.action.includes("ConnectorSegmentPoint")||this.action.includes("Leader"))&&(this.action=""),this.tool=this.getTool(this.action),this.setCursor(l,e),this.pdfViewer.linkAnnotationModule&&0!==this.pdfViewer.selectedItems.annotations.length&&0!==this.pdfViewer.selectedItems.formFields.length&&this.pdfViewer.linkAnnotationModule.disableHyperlinkNavigationUnderObjects(l,e,this)}else{if(!this.tool&&this.action&&"Rotate"===this.action&&(this.tool=this.getTool(this.action),e.target&&this.setCursor(e.target,e)),this.pdfViewer.designerMode||(t.isNullOrUndefined(a)||t.isNullOrUndefined(a.formFieldAnnotationType))&&!s||("ResizeSouthEast"===this.action||"ResizeNorthEast"===this.action||"ResizeNorthWest"===this.action||"ResizeSouthWest"===this.action||"ResizeNorth"===this.action||"Drag"===this.action||"ResizeWest"===this.action||"ResizeEast"===this.action||"ResizeSouth"===this.action||this.action.includes("ConnectorSegmentPoint")||this.action.includes("Leader"))&&(this.action="",this.tool=null),this.eventArgs&&this.eventArgs.source){var l=e.target;this.updateDefaultCursor(this.eventArgs.source,l,e)}else this.setCursor(e.target,e);if(this.diagramMouseActionHelper(e),this.tool){var d=r;if(d&&"FreeText"===d.shapeAnnotationType&&this.pdfViewer.freeTextSettings.allowEditTextOnly&&"Ink"!==this.action&&this.eventArgs.source&&"FreeText"===this.eventArgs.source.shapeAnnotationType&&((l=event.target).style.cursor="default",this.tool=null),null!=this.tool){var A={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey};this.eventArgs.info=A,this.tool.mouseMove(this.eventArgs)}}}if(this.pdfViewer.drawingObject&&this.pdfViewer.drawingObject.formFieldAnnotationType&&"Drag"!==this.action&&!(this.tool instanceof wt)&&(this.tool=this.getTool(this.action),this.tool instanceof Ct)){var h=this.pdfViewer.drawingObject,p=this.pdfViewer.formDesignerModule.updateFormFieldInitialSize(h,h.formFieldAnnotationType),c=this.pageContainer.firstElementChild.clientWidth-p.width,g=this.pageContainer.firstElementChild.clientHeight-p.height;if(this.pdfViewer.formDesignerModule&&h.formFieldAnnotationType&&this.currentPosition.x<c&&this.currentPosition.y<g)if(f=document.getElementById("FormField_helper_html_element")){if(f){var u=f.parentElement.id.split("_text_")[1]||f.parentElement.id.split("_textLayer_")[1]||f.parentElement.id.split("_annotationCanvas_")[1]||f.parentElement.id.split("_pageDiv_")[1];if(parseInt(u,10)!==this.activeElements.activePageID)f.remove("FormField_helper_html_element");else{m=this.getMousePosition(event);"Checkbox"===h.formFieldAnnotationType&&f.firstElementChild.firstElementChild.lastElementChild?f.firstElementChild.firstElementChild.lastElementChild.style.visibility="visible":"SignatureField"===h.formFieldAnnotationType||"InitialField"===h.formFieldAnnotationType?(f.firstElementChild.firstElementChild.style.visibility="visible",f.firstElementChild.lastElementChild.style.visibility="visible"):f.firstElementChild.firstElementChild.style.visibility="visible",f.style.cssText="height: "+p.height+"px;width: "+p.width+"px;\n                                    left: "+m.x+"px;top: "+m.y+"px;position: absolute;opacity: 0.5;"}}}else this.pdfViewer.formDesignerModule.drawHelper(h.formFieldAnnotationType,h,e);else if(this.currentPosition.x>c||this.currentPosition.y>g){var f=document.getElementById("FormField_helper_html_element");if(f){if(f){var m=this.getMousePosition(event);f.style.cssText="height: "+p.height+"px;width: "+p.width+"px;left: "+m.x+"px;\n                                top: "+m.y+"px;position: absolute;opacity: 0.5;",this.currentPosition.x+parseInt(f.style.width,10)>parseInt(o.style.width,10)?"Checkbox"===h.formFieldAnnotationType&&f.firstElementChild.firstElementChild.lastElementChild?f.firstElementChild.firstElementChild.lastElementChild.style.visibility="hidden":"SignatureField"===h.formFieldAnnotationType||"InitialField"===h.formFieldAnnotationType?(f.firstElementChild.firstElementChild.style.visibility="hidden",f.firstElementChild.lastElementChild.style.visibility="hidden"):f.firstElementChild.firstElementChild.style.visibility="hidden":"Checkbox"===h.formFieldAnnotationType&&f.firstElementChild.firstElementChild.lastElementChild?f.firstElementChild.firstElementChild.lastElementChild.style.visibility="visible":"SignatureField"===h.formFieldAnnotationType||"InitialField"===h.formFieldAnnotationType?(f.firstElementChild.firstElementChild.style.visibility="visible",f.firstElementChild.lastElementChild.style.visibility="visible"):f.firstElementChild.firstElementChild.style.visibility="visible"}}else this.pdfViewer.formDesignerModule.drawHelper(h.formFieldAnnotationType,h,e)}}this.prevPosition=this.currentPosition}this.pdfViewer.enableServerDataBinding(n,!0)},e.prototype.updateDefaultCursor=function(e,t,i){e&&void 0!==e.pageIndex&&e.pageIndex!==this.activeElements.activePageID&&t?this.isPanMode?t.style.cursor="grab":t.style.cursor="default":this.setCursor(t,i)},e.prototype.diagramMouseLeave=function(e){this.currentPosition=this.getMousePosition(e),this.pdfViewer.annotation&&(this.activeElements.activePageID=this.pdfViewer.annotation.getEventPageNumber(e)),isNaN(this.activeElements.activePageID)&&this.pdfViewer.formDesignerModule&&(this.activeElements.activePageID=this.pdfViewer.formDesignerModule.getEventPageNumber(e));var t=j(e,this,this.pdfViewer),n=!1;if(!1===i.Point.equals(this.currentPosition,this.prevPosition)||this.inAction){if(!1===this.isMouseDown||n){this.eventArgs={};t&&(t.wrapper.children[0],n=!1)}else this.diagramMouseActionHelper(e),this.tool&&"Drag"!==this.action&&"Stamp"!==this.pdfViewer.tool&&this.tool.currentElement&&"Stamp"!==this.tool.currentElement.shapeAnnotationType&&(this.tool.mouseLeave(this.eventArgs),this.tool=null,this.pdfViewer.annotation&&this.pdfViewer.annotationModule.renderAnnotations(this.previousPage,null,null,null));this.prevPosition=this.currentPosition}},e.prototype.diagramMouseActionHelper=function(e){this.eventArgs.position=this.currentPosition,"Drag"===this.action&&this.eventArgs.source instanceof at&&this.getMouseEventArgs(this.currentPosition,this.eventArgs,e),this.getMouseEventArgs(this.currentPosition,this.eventArgs,e,this.eventArgs.source),this.inAction=!0,this.initialEventArgs=null},e.prototype.setCursor=function(e,i){var n,o=this.pdfViewer.annotationModule?this.pdfViewer.annotationModule.freeTextAnnotationModule:null;if(this.tool instanceof wt)"ResizeNorthWest"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"nw-resize":n):"ResizeNorthEast"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"ne-resize":n):"ResizeSouthWest"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"sw-resize":n):"ResizeSouthEast"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"se-resize":n):"ResizeNorth"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"n-resize":n):"ResizeWest"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"w-resize":n):"ResizeEast"===this.tool.corner?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"e-resize":n):"ResizeSouth"===this.tool.corner&&(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"s-resize":n);else if(this.isCommentIconAdded&&this.isAddComment)e.style.cursor="crosshair";else if(this.pdfViewer.enableHandwrittenSignature&&this.isNewSignatureAdded&&this.tool instanceof ut)e.style.cursor="crosshair";else if(this.tool instanceof gt)e.style.cursor="move";else if(this.tool instanceof Ct||this.tool instanceof St||this.tool instanceof Bt||o&&o.isNewAddedAnnot||this.tool instanceof ft)e.style.cursor="crosshair";else if(this.tool instanceof mt)this.tool.endPoint&&this.tool.endPoint.indexOf("Leader0")?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"nw-resize":n):this.tool.endPoint&&this.tool.endPoint.indexOf("Leader1")?(n=this.setResizerCursorType(),e.style.cursor=t.isNullOrUndefined(n)?"ne-resize":n):this.tool.endPoint&&this.tool.endPoint.indexOf("ConnectorSegmentPoint")&&(e.style.cursor="sw-resize");else if(e.classList.contains("e-pv-text"))e.style.cursor="text";else if(e.classList.contains("e-pv-hyperlink"))e.style.cursor="pointer";else if(this.isPanMode){if(this.isViewerMouseDown&&"mousemove"===i.type)e.style.cursor="grabbing";else if((A=j(i,this,this.pdfViewer))&&"mousemove"===i.type){e.style.cursor="pointer";var r=A,a=this.getMousePosition(i),s={left:(c=this.relativePosition(i)).x,top:c.y},l={left:a.x,top:a.y},d={opacity:r.opacity,fillColor:r.fillColor,strokeColor:r.strokeColor,thicknes:r.thickness,author:r.author,subject:r.subject,modifiedDate:r.modifiedDate};this.isMousedOver=!0;p=this.checkSignatureFormField(r.id);if(r.formFieldAnnotationType){this.isFormFieldMousedOver=!0;f={id:r.id,name:r.name,value:r.value,fontFamily:r.fontFamily,fontSize:r.fontSize,fontStyle:r.fontStyle,color:r.color,backgroundColor:r.backgroundColor,borderColor:r.borderColor,thickness:r.thickness,alignment:r.alignment,isReadonly:r.isReadonly,visibility:r.visibility,maxLength:r.maxLength,isRequired:r.isRequired,isPrint:r.isPrint,rotation:r.rotateAngle,tooltip:r.tooltip,options:r.options,isChecked:r.isChecked,isSelected:r.isSelected,customData:r.customData,lineBound:r.bounds,pageNumber:r.pageIndex,insertSpaces:r.insertSpaces,formFieldAnnotationType:r.formFieldAnnotationType,isTransparent:r.isTransparent};this.pdfViewer.fireFormFieldMouseoverEvent("formFieldMouseover",f,r.pageIndex,c.x,c.y,a.x,a.y)}else p||this.pdfViewer.fireAnnotationMouseover(r.annotName,r.pageIndex,r.shapeAnnotationType,r.bounds,d,l,s)}else if(e.style.cursor="grab",this.isMousedOver){w=void 0;w=this.pdfViewer.formDesignerModule?this.pdfViewer.formDesignerModule.getEventPageNumber(i):this.pdfViewer.annotation.getEventPageNumber(i),this.isFormFieldMousedOver?this.pdfViewer.fireFormFieldMouseLeaveEvent("formFieldMouseLeave",null,w):this.pdfViewer.fireAnnotationMouseLeave(w),this.isMousedOver=!1,this.isFormFieldMousedOver=!1}}else{var A=j(i,this,this.pdfViewer);if(A&&0===this.pdfViewer.selectedItems.annotations.length&&"mousemove"===i.type){var r=A,h=this.pdfViewer.nameTable[r.id];"HandWrittenSignature"!==h.shapeAnnotationType&&"Ink"!==h.shapeAnnotationType&&h.annotationSettings&&void 0!==h.annotationSettings.isLock&&(h.annotationSettings.isLock=JSON.parse(h.annotationSettings.isLock)),h.annotationSettings&&h.annotationSettings.isLock?e.style.cursor="default":e.style.cursor="pointer";var a=this.getMousePosition(i),s={left:(c=this.relativePosition(i)).x,top:c.y},l={left:a.x,top:a.y},d={opacity:r.opacity,fillColor:r.fillColor,strokeColor:r.strokeColor,thicknes:r.thickness,author:r.author,subject:r.subject,modifiedDate:r.modifiedDate};this.isMousedOver=!0;var p=this.checkSignatureFormField(r.id);if(r.formFieldAnnotationType){this.isFormFieldMousedOver=!0;f={id:r.id,name:r.name,value:r.value,fontFamily:r.fontFamily,fontSize:r.fontSize,fontStyle:r.fontStyle,color:r.color,backgroundColor:r.backgroundColor,borderColor:r.borderColor,thickness:r.thickness,alignment:r.alignment,isReadonly:r.isReadonly,visibility:r.visibility,maxLength:r.maxLength,isRequired:r.isRequired,isPrint:r.isPrint,rotation:r.rotateAngle,tooltip:r.tooltip,options:r.options,isChecked:r.isChecked,isSelected:r.isSelected,isTransparent:r.isTransparent,customData:r.customData,lineBound:r.bounds,pageNumber:r.pageIndex,insertSpaces:r.insertSpaces,formFieldAnnotationType:r.formFieldAnnotationType};this.fromTarget=r,this.pdfViewer.fireFormFieldMouseoverEvent("formFieldMouseover",f,r.pageIndex,c.x,c.y,a.x,a.y)}else p||this.pdfViewer.fireAnnotationMouseover(r.annotName,r.pageIndex,r.shapeAnnotationType,r.bounds,d,l,s)}else if(!this.pdfViewer.formDesignerModule&&i.target.classList.contains("e-pdfviewer-formFields")){w=void 0;this.pdfViewer.annotation&&(w=this.pdfViewer.annotation.getEventPageNumber(i));for(var a=this.getMousePosition(i),c=this.relativePosition(i),g=this.getItemFromSessionStorage("_formfields"),u=JSON.parse(g),f=void 0,m=0;m<u.length;m++)u[parseInt(m.toString(),10)].FieldName===i.target.name&&(f={name:u[parseInt(m.toString(),10)].FieldName,id:u[parseInt(m.toString(),10)].uniqueID});this.isMousedOver=!0,this.isFormFieldMousedOver=!0,this.pdfViewer.fireFormFieldMouseoverEvent("formFieldMouseover",f,w,c.x,c.y,a.x,a.y)}else{if(this.isMousedOver){var w=void 0;if(this.pdfViewer.formDesignerModule?w=this.pdfViewer.formDesignerModule.getEventPageNumber(i):this.pdfViewer.annotation&&(w=this.pdfViewer.annotation.getEventPageNumber(i)),this.isFormFieldMousedOver)if(this.fromTarget){f={name:this.fromTarget.name,id:this.fromTarget.id,value:this.fromTarget.value,fontFamily:this.fromTarget.fontFamily,fontSize:this.fromTarget.fontSize,fontStyle:this.fromTarget.fontStyle,color:this.fromTarget.color,backgroundColor:this.fromTarget.backgroundColor,borderColor:this.fromTarget.borderColor,thickness:this.fromTarget.thickness,alignment:this.fromTarget.alignment,isReadonly:this.fromTarget.isReadonly,visibility:this.fromTarget.visibility,maxLength:this.fromTarget.maxLength,isRequired:this.fromTarget.isRequired,isPrint:this.fromTarget.isPrint,rotation:this.fromTarget.rotateAngle,tooltip:this.fromTarget.tooltip,options:this.fromTarget.options,isChecked:this.fromTarget.isChecked,isSelected:this.fromTarget.isSelected,customData:this.fromTarget.customData,lineBound:this.fromTarget.bounds,pageNumber:this.fromTarget.pageIndex,insertSpaces:this.fromTarget.insertSpaces,formFieldAnnotationType:this.fromTarget.formFieldAnnotationType,isTransparent:this.fromTarget.isTransparent};this.pdfViewer.fireFormFieldMouseLeaveEvent("formFieldMouseLeave",f,w)}else this.pdfViewer.fireFormFieldMouseLeaveEvent("formFieldMouseLeave",null,w);else this.pdfViewer.fireAnnotationMouseLeave(w);this.isMousedOver=!1,this.isFormFieldMousedOver=!1,e.style.cursor="default"}A&&1===this.pdfViewer.selectedItems.annotations.length&&"mousemove"===i.type?e.style.cursor="pointer":e.style.cursor="default"}}},e.prototype.setResizerCursorType=function(){var e;return this.pdfViewer.selectedItems.annotations[0]&&t.isNullOrUndefined(this.pdfViewer.selectedItems.annotations[0].annotationSelectorSettings.resizerCursorType)?"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.freeTextSettings.annotationSelectorSettings)?null:this.pdfViewer.freeTextSettings.annotationSelectorSettings.resizerCursorType:"Stamp"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.stampSettings.annotationSelectorSettings)?null:this.pdfViewer.stampSettings.annotationSelectorSettings.resizerCursorType:"HandWrittenSignature"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureImage"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings)?null:this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings.resizerCursorType:"Ink"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings)?null:this.pdfViewer.inkAnnotationSettings.annotationSelectorSettings.resizerCursorType:this.pdfViewer.selectedItems.annotations[0].measureType?this.pdfViewer.selectedItems.annotations[0].measureType&&("Distance calculation"===this.pdfViewer.selectedItems.annotations[0].subject?e=t.isNullOrUndefined(this.pdfViewer.distanceSettings.annotationSelectorSettings)?null:this.pdfViewer.distanceSettings.annotationSelectorSettings.resizerCursorType:"Perimeter calculation"===this.pdfViewer.selectedItems.annotations[0].subject?e=t.isNullOrUndefined(this.pdfViewer.perimeterSettings.annotationSelectorSettings)?null:this.pdfViewer.perimeterSettings.annotationSelectorSettings.resizerCursorType:"Area calculation"===this.pdfViewer.selectedItems.annotations[0].subject?e=t.isNullOrUndefined(this.pdfViewer.areaSettings.annotationSelectorSettings)?null:this.pdfViewer.areaSettings.annotationSelectorSettings.resizerCursorType:"Radius calculation"===this.pdfViewer.selectedItems.annotations[0].subject?e=t.isNullOrUndefined(this.pdfViewer.radiusSettings.annotationSelectorSettings)?null:this.pdfViewer.radiusSettings.annotationSelectorSettings.resizerCursorType:"Volume calculation"===this.pdfViewer.selectedItems.annotations[0].subject&&(e=t.isNullOrUndefined(this.pdfViewer.volumeSettings.annotationSelectorSettings)?null:this.pdfViewer.volumeSettings.annotationSelectorSettings.resizerCursorType)):"Line"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.lineSettings.annotationSelectorSettings)?null:this.pdfViewer.lineSettings.annotationSelectorSettings.resizerCursorType:"LineWidthArrowHead"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.arrowSettings.annotationSelectorSettings)?null:this.pdfViewer.arrowSettings.annotationSelectorSettings.resizerCursorType:"Rectangle"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.rectangleSettings.annotationSelectorSettings)?null:this.pdfViewer.rectangleSettings.annotationSelectorSettings.resizerCursorType:"Ellipse"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?e=t.isNullOrUndefined(this.pdfViewer.circleSettings.annotationSelectorSettings)?null:this.pdfViewer.circleSettings.annotationSelectorSettings.resizerCursorType:"Polygon"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(e=t.isNullOrUndefined(this.pdfViewer.polygonSettings.annotationSelectorSettings)?null:this.pdfViewer.polygonSettings.annotationSelectorSettings.resizerCursorType):this.pdfViewer.selectedItems.annotations[0]&&(e=this.pdfViewer.selectedItems.annotations[0].annotationSelectorSettings.resizerCursorType),e||(e=this.pdfViewer.annotationSelectorSettings.resizerCursorType),e},e.prototype.getTool=function(e){switch(e){case"Select":return new ct(this.pdfViewer,this);case"Drag":return new gt(this.pdfViewer,this);case"ResizeSouthEast":case"ResizeSouthWest":case"ResizeNorthEast":case"ResizeNorthWest":case"ResizeSouth":case"ResizeNorth":case"ResizeWest":case"ResizeEast":return new wt(this.pdfViewer,this,e);case"ConnectorSourceEnd":case"ConnectorTargetEnd":case"Leader":case"ConnectorSegmentPoint":return new mt(this.pdfViewer,this,e);case"DrawTool":return new Ct(this.pdfViewer,this,this.pdfViewer.drawingObject);case"Polygon":return new Bt(this.pdfViewer,this,"Polygon");case"Distance":return new St(this.pdfViewer,this,"Leader1",void 0);case"Line":return new St(this.pdfViewer,this,"ConnectorSegmentPoint_1",this.pdfViewer.drawingObject);case"Perimeter":return new Bt(this.pdfViewer,this,"Perimeter");case"Rotate":return new yt(this.pdfViewer,this);case"Stamp":return new ut(this.pdfViewer,this);case"Ink":return new ft(this.pdfViewer,this,this.pdfViewer.drawingObject)}return e.indexOf("ConnectorSegmentPoint")>-1||e.indexOf("Leader")>-1?new mt(this.pdfViewer,this,e):null},e.prototype.diagramMouseUp=function(e){var t=this.pdfViewer.allowServerDataBinding;this.pdfViewer.enableServerDataBinding(!1);var i=this.action.toLowerCase().includes("resize")||this.action.toLowerCase().includes("connectorsegmentpoint"),n="Drag"===this.action||i||(this.tool instanceof Ct||this.tool instanceof St||this.tool instanceof Bt)&&this.tool.dragging&&this.tool.drawingObject;if(this.tool){if(!this.inAction&&3!==e.which&&"Drag"===this.action){this.action="Select";r=j(e,this,this.pdfViewer)}if(this.tool instanceof Bt||this.tool instanceof St||this.tool instanceof Ct||(this.inAction=!1,this.isMouseDown=!1),this.currentPosition=this.getMousePosition(e),this.tool){this.eventArgs.position=this.currentPosition,this.getMouseEventArgs(this.currentPosition,this.eventArgs,e,this.eventArgs.source);this.isMetaKey(e);var o={ctrlKey:e.ctrlKey,shiftKey:e.shiftKey};if(this.eventArgs.info=o,this.eventArgs.clickCount=e.detail,"touchend"===e.type?this.eventArgs.isTouchMode=!0:this.eventArgs.isTouchMode=!1,this.tool.mouseUp(this.eventArgs),this.isAnnotationMouseDown=!1,this.isFormFieldMouseDown=!1,(this.tool instanceof Ct||this.tool instanceof St||this.tool instanceof Bt)&&!this.tool.dragging&&(this.inAction=!1,this.isMouseDown=!1),n){var r=j(e,this,this.pdfViewer);(this.isShapeAnnotationModule()||this.isCalibrateAnnotationModule())&&this.pdfViewer.annotation.onShapesMouseup(r,e)}this.isAnnotationDrawn=!1,this.pageNumberCanvas=null}}var a=e.target;e.cancelable&&(!this.isDeviceiOS||this.pdfViewer.annotationModule)&&this.skipPreventDefault(a)&&e.preventDefault(),this.eventArgs={},this.pdfViewer.enableServerDataBinding(t,!0),"MouseUp"===this.pdfViewer.contextMenuSettings.contextMenuAction&&this.pdfViewer.selectedItems&&(this.pdfViewer.selectedItems.annotations&&this.pdfViewer.selectedItems.annotations.length>0||this.pdfViewer.selectedItems.formFields&&this.pdfViewer.selectedItems.formFields.length>0)&&this.contextMenuModule.open(this.mouseY,this.mouseX,this.viewerContainer)},e.prototype.skipPreventDefault=function(e){var t=!1,i=!1;return this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus&&(i=!0),!e.parentElement||"foreign-object"===e.parentElement.className||e.classList.contains("e-pv-radio-btn")||e.classList.contains("e-pv-radiobtn-span")||e.classList.contains("e-pv-checkbox-div")||e.classList.contains("e-pdfviewer-formFields")||e.classList.contains("e-pdfviewer-ListBox")||e.classList.contains("e-pdfviewer-signatureformfields")||"free-text-input"===e.className&&"TEXTAREA"===e.tagName||i||"e-pv-hyperlink"===e.className||!(e.parentElement.classList.length>0)||e.parentElement.classList.contains("e-editable-elements")||this.isAddComment||(t=!0),t},e.prototype.isMetaKey=function(e){return navigator.platform.match("Mac")?e.metaKey:e.ctrlKey},e.prototype.diagramMouseDown=function(e){var n=this;this.tool instanceof gt&&!(this.tool instanceof ut)&&this.tool.inAction&&(this.diagramMouseUp(e),1===e.which&&(this.preventContextmenu=!0,setTimeout(function(){n.preventContextmenu=!1},200)));var o=this.pdfViewer.allowServerDataBinding;this.pdfViewer.enableServerDataBinding(!1);var r=null;r=e.touches,this.isMouseDown=!0,this.isAnnotationAdded=!1,this.currentPosition=this.prevPosition=this.getMousePosition(e),this.eventArgs={};var a=!1;if("Stamp"===this.pdfViewer.tool&&(this.pdfViewer.tool="",a=!0),this.pdfViewer.annotation){var s=this.pdfViewer.annotation.getEventPageNumber(e);this.activeElements.activePageID=s>=0?s:this.pdfViewer.currentPageNumber-1}var l=j(e,this,this.pdfViewer);if(t.isNullOrUndefined(l)){var d=e.target;if(!t.isNullOrUndefined(d)&&!t.isNullOrUndefined(d.id)){var A=d.id.split("_")[0];l=this.pdfViewer.nameTable[""+A]}}if(t.isNullOrUndefined(l)||"SignatureField"!==l.formFieldAnnotationType&&"InitialField"!==l.formFieldAnnotationType&&"SignatureField"!==l.annotName&&"InitialField"!==l.annotName?this.isSignInitialClick=!1:this.isSignInitialClick=!0,!t.Browser.isDevice||this.pdfViewer.enableDesktopMode||!l||l instanceof it||e.preventDefault(),this.pdfViewer.annotation&&this.pdfViewer.enableStampAnnotations){var h=this.pdfViewer.annotationModule.stampAnnotationModule;if(h&&h.isNewStampAnnot){var p=l;if(!p&&this.pdfViewer.selectedItems.annotations[0]&&(p=this.pdfViewer.selectedItems.annotations[0]),p){this.isViewerMouseDown=!1,p.opacity=this.pdfViewer.stampSettings.opacity,this.isNewStamp=!0;var c=void 0;if(c="Image"===p.shapeAnnotationType?this.pdfViewer.customStampSettings.opacity:this.pdfViewer.stampSettings.opacity,this.pdfViewer.nodePropertyChange(p,{opacity:c}),this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!1,"Image"===p.shapeAnnotationType&&!this.isAlreadyAdded){this.stampAdded=!0;var g=p.id;h.currentStampAnnotation&&h.currentStampAnnotation.signatureName&&(g=h.currentStampAnnotation.signatureName);for(var u=!1,f=0;f<this.customStampCollection.length;f++)if(this.customStampCollection[parseInt(f.toString(),10)].customStampName===g){u=!0;break}u&&(g=p.id),g=h.customStampName?h.customStampName:h.currentStampAnnotation.signatureName,this.customStampCollection.push({customStampName:g,customStampImageSource:p.data}),t.isBlazor()&&this.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateCustomStampCollection",g,p.data)}this.pdfViewer.customStampSettings.enableCustomStamp&&this.pdfViewer.customStampSettings.isAddToMenu&&(this.stampAdded=!0),this.isAlreadyAdded=!1,h.updateDeleteItems(p.pageIndex,p,p.opacity),h.resetAnnotation(),h.isNewStampAnnot=!1}}}if(this.isNewSignatureAdded){this.signatureCount++,this.currentSignatureAnnot=null;var m=l;if(t.isNullOrUndefined(m)&&this.pdfViewer.selectedItems.annotations[0]&&(m=this.pdfViewer.selectedItems.annotations[0]),m){var w="";this.signatureAdded=!0,this.signatureModule.storeSignatureData(m.pageIndex,m);var C={left:m.bounds.x,top:m.bounds.y,width:m.bounds.width,height:m.bounds.height};w="Draw"===this.signatureModule.signaturetype?this.signatureModule.saveImageString:m.data,this.pdfViewer.fireSignatureAdd(m.pageIndex,m.signatureName,m.shapeAnnotationType,C,m.opacity,m.strokeColor,m.thickness,w)}this.isNewSignatureAdded=!1}if(this.pdfViewer.annotationModule){this.pageNumberCanvas=this.pdfViewer.annotation.getEventPageNumber(e);var B=this.pdfViewer.annotationModule.freeTextAnnotationModule;if(!0===B.isNewFreeTextAnnot){var S=void 0;if(e.target&&(e.target.id.indexOf("_text")>-1||e.target.id.indexOf("_annotationCanvas")>-1||e.target.classList.contains("e-pv-hyperlink"))&&this.pdfViewer.annotation){var y=this.pdfViewer.annotation.getEventPageNumber(e),I=this.getAnnotationCanvas("_annotationCanvas_",y);if(I){var E=I.getBoundingClientRect(),v=E.x?E.x:E.left,b=E.y?E.y:E.top;S=new i.Rect(v+5,b+5,E.width-10,E.height-10)}}if(r&&(this.mouseX=r[0].clientX,this.mouseY=r[0].clientY),S&&S.containsPoint({x:this.mouseX,y:this.mouseY})&&B.isNewAddedAnnot){y=this.pdfViewer.annotation.getEventPageNumber(e);if(!this.pdfViewer.freeTextSettings.enableAutoFit){var V=this.getZoomFactor(),D=this.currentPosition.x+B.defautWidth*V,x=this.getPageWidth(y);D>=x&&(this.currentPosition.x=x-B.defautWidth*V,this.currentPosition.x<=0&&(this.currentPosition.x=5),B.defautWidth=B.defautWidth*V>=x?x-10:B.defautWidth)}if(B.addInuptElemet(this.currentPosition,null,y),this.pdfViewer.toolbar&&this.pdfViewer.toolbar.annotationToolbarModule){var Q=this.pdfViewer.toolbar.annotationToolbarModule;t.isBlazor()||Q.primaryToolbar.deSelectItem(Q.freeTextEditItem)}e.preventDefault(),B.isNewAddedAnnot=!1}}}l&&l.wrapper.children[0],(!this.tool||this.tool&&!this.tool.drawingObject)&&(a?(this.action="Select",this.tool=this.getTool(this.action)):(this.action=this.findToolToActivate(l,this.currentPosition),l&&l.annotationSettings&&l.annotationSettings.isLock&&("Select"===this.action&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Select",l)||(this.action="")),"Drag"===this.action&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Move",l)||(this.action="Select")),"Rotate"===this.action&&(this.action="Select"),("ResizeSouthEast"===this.action||"ResizeNorthEast"===this.action||"ResizeNorthWest"===this.action||"ResizeSouthWest"===this.action||"ResizeSouth"===this.action||"ResizeNorth"===this.action||"ResizeWest"===this.action||"ResizeEast"===this.action||this.action.includes("ConnectorSegmentPoint")||this.action.includes("Leader"))&&(this.pdfViewer.annotationModule.checkAllowedInteractions("Resize",l)||(this.action="Select"))),this.tool=this.getTool(this.action),this.tool||(this.action=this.pdfViewer.tool||"Select",this.tool=this.getTool(this.action)))),this.getMouseEventArgs(this.currentPosition,this.eventArgs,e),this.eventArgs.position=this.currentPosition,this.tool&&(this.isAnnotationMouseDown=!1,this.isFormFieldMouseDown=!1,this.isAnnotationMouseMove=!1,this.isFormFieldMouseMove=!1,t.isNullOrUndefined(l)||"annotations"===l.propName||(this.eventArgs.source=l),this.tool.mouseDown(this.eventArgs),this.isAnnotationDrawn=!0,this.signatureAdded=!0),this.pdfViewer.annotation&&this.pdfViewer.annotation.onAnnotationMouseDown(),this.pdfViewer.selectedItems&&1===this.pdfViewer.selectedItems.formFields.length&&(t.isNullOrUndefined(this.pdfViewer.toolbar)||t.isNullOrUndefined(this.pdfViewer.toolbar.formDesignerToolbarModule)||this.pdfViewer.toolbar.formDesignerToolbarModule.showHideDeleteIcon(!0));var M=1===this.pdfViewer.selectedItems.annotations.length?this.pdfViewer.nameTable[this.pdfViewer.selectedItems.annotations[0].id.split("_")[0]+"_content"]:null;if(M||(M=1===this.pdfViewer.selectedItems.annotations.length?this.pdfViewer.nameTable[this.pdfViewer.selectedItems.annotations[0].id]:null),this.eventArgs&&this.eventArgs.source&&(this.eventArgs.source.formFieldAnnotationType||M)&&!this.pdfViewer.designerMode){var F=void 0;if((F=M?this.pdfViewer.nameTable[this.pdfViewer.selectedItems.annotations[0].id.split("_")[0]]:this.eventArgs.source)||(F=this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===M.id})]),F){var T={name:F.name,id:F.id,fontFamily:F.fontFamily,fontSize:F.fontSize,fontStyle:F.fontStyle,color:F.color,value:F.value,type:F.formFieldAnnotationType?F.formFieldAnnotationType:F.type,backgroundColor:F.backgroundColor,alignment:F.alignment,bounds:F.bounds},k=document.getElementById(F.id);(k=k||(document.getElementById(F.id+"_content_html_element")?document.getElementById(F.id+"_content_html_element").children[0].children[0]:null))&&(this.currentTarget=k,this.pdfViewer.fireFormFieldClickEvent("formFieldClicked",T,!1,0===e.button))}}this.initialEventArgs={source:this.eventArgs.source,sourceWrapper:this.eventArgs.sourceWrapper},this.initialEventArgs.position=this.currentPosition,this.initialEventArgs.info=this.eventArgs.info,this.pdfViewer.enableServerDataBinding(o,!0)},e.prototype.exportAnnotationsAsObject=function(e){var t=this;if(this.pdfViewer.annotationModule&&this.updateExportItem())return new Promise(function(i,n){t.createRequestForExportAnnotations(!0,e).then(function(e){i(e)})})},e.prototype.getItemFromSessionStorage=function(t){return this.isStorageExceed?this.formFieldStorage[this.documentId+t]:e.sessionStorageManager.getItem(this.documentId+t)},e.prototype.setStyleToTextDiv=function(e,t,i,n,o,r,a){var s=this.getZoomFactor();a&&(s=1,e.style.position="absolute"),e.style.left=t*s+"px",e.style.top=i*s+"px",e.style.height=r*s+"px",e.style.width=o*s+"px",e.style.margin="0px",n>0&&(e.style.fontSize=n*s+"px")},e.prototype.ConvertPointToPixel=function(e){return e*(96/72)},e.prototype.getAngle=function(e){var t=0;if(e)switch(e){case 0:t=0;break;case 1:t=90;break;case 2:t=180;break;case 3:t=270}return t},e.prototype.setItemInSessionStorage=function(i,n){var o=Math.round(JSON.stringify(i).length/1024),r=e.sessionStorageManager.getWindowSessionStorageSize();o>4500&&(this.isStorageExceed=!0,this.pdfViewer.formFieldsModule&&(this.isFormStorageExceed||(this.pdfViewer.formFieldsModule.clearFormFieldStorage(),this.isFormStorageExceed=!0))),this.isStorageExceed?this.formFieldStorage[this.documentId+n]=JSON.stringify(i):o+r>4500?(this.isStorageExceed=!0,this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.clearFormFieldStorage(),this.isFormStorageExceed=!0,this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.clearAnnotationStorage(),this.formFieldStorage[this.documentId+n]=JSON.stringify(i)):t.isNullOrUndefined(i)||e.sessionStorageManager.setItem(this.documentId+n,JSON.stringify(i))},e.prototype.exportFormFieldsAsObject=function(e){var t=this;if(this.pdfViewer.formFieldsModule)return new Promise(function(i,n){t.createRequestForExportFormfields(!0,e).then(function(e){i(e)})})},e.prototype.importAnnotations=function(e,t,i){this.pdfViewer.annotationModule&&this.createRequestForImportAnnotations(e,t,i)},e.prototype.exportAnnotations=function(e){this.pdfViewer.annotationModule&&this.updateExportItem()&&this.createRequestForExportAnnotations(!1,e)},e.prototype.createRequestForExportAnnotations=function(e,t,i){var n=this,o=null;o=this;var r=new Promise(function(r,a){var s=n.constructJsonDownload();if(s.annotationDataFormat=t,s.action="ExportAnnotations",o.pdfViewer.fireExportStart(s)){o.jsonDocumentId&&(s.document=o.jsonDocumentId);var l=o.pdfViewer.serviceUrl+"/"+o.pdfViewer.serverActionSettings.exportAnnotations;if(o.exportAnnotationRequestHandler=new Pi(n.pdfViewer),o.exportAnnotationRequestHandler.url=l,o.exportAnnotationRequestHandler.mode=!0,o.exportAnnotationRequestHandler.responseType="text",n.clientSideRendering){var d=n.pdfViewer.pdfRendererModule.exportAnnotation(s,e);o.exportAnnotationFileDownload(d,o,t,s,e,i).then(function(e){r(e)})}else o.exportAnnotationRequestHandler.send(s);o.exportAnnotationRequestHandler.onSuccess=function(n){var a=n.data;if(!o.checkRedirection(a))if(a)o.exportAnnotationFileDownload(a,o,t,s,e,i).then(function(e){r(e)});else{var l=void 0;l=null!==o.pdfViewer.exportAnnotationFileName?o.pdfViewer.exportAnnotationFileName:o.pdfViewer.fileName,o.pdfViewer.fireExportSuccess("Exported data saved in server side successfully",l)}},o.exportAnnotationRequestHandler.onFailure=function(e){o.pdfViewer.fireExportFailed(s.pdfAnnotation,e.statusText)},o.exportAnnotationRequestHandler.onError=function(e){o.pdfViewer.fireExportFailed(s.pdfAnnotation,e.statusText)}}});return!e&&!i||r},e.prototype.handleServerSideExport=function(e,i,n,o,r,a){var s=this;return new Promise(function(l){if(e){if("object"==typeof e&&(e=JSON.parse(e)),e){var d=i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.exportAnnotations,e);if(r||a&&!t.isBlazor())if(e.split("base64,")[1]){var A=e,h=atob(e.split(",")[1]);r&&("Json"===o.annotationDataFormat?(h=i.getSanitizedString(h),A=JSON.parse(h)):A=h),null!==i.pdfViewer.exportAnnotationFileName?i.pdfViewer.fireExportSuccess(A,i.pdfViewer.exportAnnotationFileName):i.pdfViewer.fireExportSuccess(A,i.pdfViewer.fileName),i.updateDocumentAnnotationCollections(),l(a?e:h)}else i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed"));else if("Json"===n)if(e.split("base64,")[1]){if(d)return e;p=i.createBlobUrl(e.split("base64,")[1],"application/json");t.Browser.isIE||"edge"===t.Browser.info.name?null!==i.pdfViewer.exportAnnotationFileName?window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.exportAnnotationFileName.split(".")[0]+".json"):window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.fileName.split(".")[0]+".json"):i.downloadExportFormat(p,n),i.updateDocumentAnnotationCollections()}else t.isBlazor()?(c=s.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_ExportFailed")).then(function(e){i.openImportExportNotificationPopup(e)}):i.openImportExportNotificationPopup(i.pdfViewer.localeObj.getConstant("Export Failed")),i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed"));else if(e.split("base64,")[1]){if(d)return e;var p=i.createBlobUrl(e.split("base64,")[1],"application/vnd.adobe.xfdf");t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.fileName.split(".")[0]+".xfdf"):i.downloadExportFormat(p,n),i.updateDocumentAnnotationCollections()}else{if(t.isBlazor()){var c=s.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_ExportFailed");c.then(function(e){i.openImportExportNotificationPopup(e)})}else i.openImportExportNotificationPopup(i.pdfViewer.localeObj.getConstant("Export Failed"));i.pdfViewer.fireExportFailed(o,i.pdfViewer.localeObj.getConstant("Export Failed"))}}if("string"!=typeof e)try{"string"==typeof e&&(i.onControlError(500,e,i.pdfViewer.serverActionSettings.exportAnnotations),e=null)}catch(t){i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed")),i.onControlError(500,e,i.pdfViewer.serverActionSettings.exportAnnotations),e=null}}return""})},e.prototype.handleClientSideExport=function(e,i,n,o,r,a){var s=this;return new Promise(function(l){if(e){if(e){var d=i.pdfViewer.fireAjaxRequestSuccess(i.pdfViewer.serverActionSettings.exportAnnotations,e);if(r||a&&!t.isBlazor())if(e&&"string"!=typeof e){var A=e,h=new TextDecoder("utf-8").decode(e);r&&("Json"===o.annotationDataFormat?(h=i.getSanitizedString(h),A=JSON.parse(h)):A=h),null!==i.pdfViewer.exportAnnotationFileName?i.pdfViewer.fireExportSuccess(A,i.pdfViewer.exportAnnotationFileName):i.pdfViewer.fireExportSuccess(A,i.pdfViewer.fileName),i.updateDocumentAnnotationCollections(),l(a?e:h)}else i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed"));else if("Json"===n)if(e&&"string"!=typeof e){if(d)return e;p=new Blob([e],{type:"application/json"});t.Browser.isIE||"edge"===t.Browser.info.name?null!==i.pdfViewer.exportAnnotationFileName?window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.exportAnnotationFileName.split(".")[0]+".json"):window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.fileName.split(".")[0]+".json"):i.downloadExportFormat(p,n),i.updateDocumentAnnotationCollections()}else t.isBlazor()?(c=s.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_ExportFailed")).then(function(e){i.openImportExportNotificationPopup(e)}):i.openImportExportNotificationPopup(i.pdfViewer.localeObj.getConstant("Export Failed")),i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed"));else if(e&&"string"!=typeof e){if(d)return e;var p=new Blob([e],{type:"application/vnd.adobe.xfdf"});t.Browser.isIE||"edge"===t.Browser.info.name?window.navigator.msSaveOrOpenBlob(p,i.pdfViewer.fileName.split(".")[0]+".xfdf"):i.downloadExportFormat(p,n),i.updateDocumentAnnotationCollections()}else{if(t.isBlazor()){var c=s.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_ExportFailed");c.then(function(e){i.openImportExportNotificationPopup(e)})}else i.openImportExportNotificationPopup(i.pdfViewer.localeObj.getConstant("Export Failed"));i.pdfViewer.fireExportFailed(o,i.pdfViewer.localeObj.getConstant("Export Failed"))}}}else try{"string"==typeof e&&(i.onControlError(500,e,i.pdfViewer.serverActionSettings.exportAnnotations),e=null)}catch(t){i.pdfViewer.fireExportFailed(o.pdfAnnotation,i.pdfViewer.localeObj.getConstant("Export Failed")),i.onControlError(500,e,i.pdfViewer.serverActionSettings.exportAnnotations),e=null}return""})},e.prototype.exportAnnotationFileDownload=function(e,t,i,n,o,r){return this.clientSideRendering?this.handleClientSideExport(e,t,i,n,o,r):this.handleServerSideExport(e,t,i,n,o,r)},e.prototype.getDataOnSuccess=function(e){var t=this;return new Promise(function(i){var n=null;(n=t).pdfViewer.fireExportSuccess(e,n.pdfViewer.fileName),n.updateDocumentAnnotationCollections(),i(e)})},e.prototype.updateModifiedDateToLocalDate=function(e,t){if(e[""+t]&&e[""+t].length>0){var i=e[""+t];if(i)for(var n=0;n<i.length;n++)if(i[parseInt(n.toString(),10)].ModifiedDate=this.convertUTCDateTimeToLocalDateTime(i[parseInt(n.toString(),10)].ModifiedDate),i[parseInt(n.toString(),10)].Comments)for(var o=0;o<i[parseInt(n.toString(),10)].Comments.length;o++)i[parseInt(n.toString(),10)].Comments[parseInt(o.toString(),10)].ModifiedDate=this.convertUTCDateTimeToLocalDateTime(i[parseInt(n.toString(),10)].Comments[parseInt(o.toString(),10)].ModifiedDate)}},e.prototype.convertUTCDateTimeToLocalDateTime=function(e){var i;if("en-US"!==this.pdfViewer.locale?this.globalize=new t.Internationalization("en-US"):this.globalize=new t.Internationalization(this.pdfViewer.locale),null!==e&&void 0!==e&&""!==e)i=this.clientSideRendering?new Date(e):new Date(Date.parse(e+" UTC"));else{var n=new Date,o=Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds());i=new Date(o)}return this.globalize.formatDate(i,{format:"M/d/yyyy h:mm:ss a",type:"dateTime"})},e.prototype.createRequestForImportAnnotations=function(e,i,n){var o,r=null;if(r=this,!n&&r.isPDFViewerJson?this.isJsonImported=!0:this.isJsonImported=!1,"object"!=typeof e||e instanceof Uint8Array){r.pdfViewer.fireImportStart(e),o="Json"===i&&r.isPDFViewerJson?{fileName:e,action:"ImportAnnotations",elementId:r.pdfViewer.element.id,hashId:r.hashId,uniqueId:r.documentId,annotationDataFormat:i}:{importedData:e,action:"ImportAnnotations",elementId:r.pdfViewer.element.id,hashId:r.hashId,uniqueId:r.documentId,annotationDataFormat:i},(o=Object.assign(o,this.constructJsonDownload())).action="ImportAnnotations",r.jsonDocumentId&&(o.documentId&&delete o.documentId,o.document=r.jsonDocumentId);var a=r.pdfViewer.serviceUrl+"/"+r.pdfViewer.serverActionSettings.importAnnotations;if(r.importAnnotationRequestHandler=new Pi(r.pdfViewer),r.importAnnotationRequestHandler.url=a,r.importAnnotationRequestHandler.mode=!0,r.importAnnotationRequestHandler.responseType="text",this.clientSideRendering){var s=this.pdfViewer.pdfRendererModule.importAnnotations(o);s&&this.addAnnotationOnImport(s,e)}else r.importAnnotationRequestHandler.send(o);r.importAnnotationRequestHandler.onSuccess=function(i){var n=i.data;if(!r.checkRedirection(n)&&n){if("object"!=typeof n)try{"object"!=typeof(n=JSON.parse(n))&&(r.onControlError(500,n,r.pdfViewer.serverActionSettings.importAnnotations),n=null)}catch(i){r.pdfViewer.fireImportFailed(e,r.pdfViewer.localeObj.getConstant("File not found")),t.isBlazor()?this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_FileNotFound").then(function(e){r.openImportExportNotificationPopup(e)}):r.openImportExportNotificationPopup(r.pdfViewer.localeObj.getConstant("File not found")),r.onControlError(500,n,r.pdfViewer.serverActionSettings.importAnnotations),n=null}if(n&&(r.pdfViewer.fireAjaxRequestSuccess(r.pdfViewer.serverActionSettings.importAnnotations,n),n.pdfAnnotation)){for(var o=void 0,a=Object.keys(n.pdfAnnotation),s=0;s<Object.keys(n.pdfAnnotation).length;s++)o=n.pdfAnnotation[a[parseInt(s.toString(),10)]],r.updateModifiedDateToLocalDate(o,"annotationOrder"),r.updateModifiedDateToLocalDate(o,"freeTextAnnotation"),r.updateModifiedDateToLocalDate(o,"measureShapeAnnotation"),r.updateModifiedDateToLocalDate(o,"shapeAnnotation"),r.updateModifiedDateToLocalDate(o,"signatureAnnotation"),r.updateModifiedDateToLocalDate(o,"signatureInkAnnotation"),r.updateModifiedDateToLocalDate(o,"stampAnnotations"),r.updateModifiedDateToLocalDate(o,"stickyNotesAnnotation"),r.updateModifiedDateToLocalDate(o,"textMarkupAnnotation");r.reRenderAnnotations(n.pdfAnnotation),r.isImportedAnnotation=!0,r.updateDocumentEditedProperty(!0),r.pdfViewer.fireImportSuccess(n.pdfAnnotation)}}},r.importAnnotationRequestHandler.onFailure=function(t){r.pdfViewer.fireImportFailed(e,t.statusText)},r.importAnnotationRequestHandler.onError=function(t){r.pdfViewer.fireImportFailed(e,t.statusText)}}else{if(e&&e.pdfAnnotation)for(var l=Object.keys(e.pdfAnnotation),d=0;d<l.length;d++){var A=e.pdfAnnotation[l[parseInt(d.toString(),10)]];this.updateModifiedDateToLocalDate(A,"freeTextAnnotation"),this.updateModifiedDateToLocalDate(A,"measureShapeAnnotation"),this.updateModifiedDateToLocalDate(A,"shapeAnnotation"),this.updateModifiedDateToLocalDate(A,"signatureAnnotation"),this.updateModifiedDateToLocalDate(A,"signatureInkAnnotation"),this.updateModifiedDateToLocalDate(A,"stampAnnotations"),this.updateModifiedDateToLocalDate(A,"stickyNotesAnnotation"),this.updateModifiedDateToLocalDate(A,"textMarkupAnnotation")}r.reRenderAnnotations(e.pdfAnnotation),r.isImportedAnnotation=!0,r.updateDocumentEditedProperty(!0),this.isAddAnnotation||r.pdfViewer.fireImportSuccess(e.pdfAnnotation)}},e.prototype.addAnnotationOnImport=function(t,i){var n=null;if(n=this,t)if(n.pdfViewer.fireAjaxRequestSuccess(n.pdfViewer.serverActionSettings.importAnnotations,t),t.pdfAnnotation){for(var o=void 0,r=Object.keys(t.pdfAnnotation),a=0;a<Object.keys(t.pdfAnnotation).length;a++)o=t.pdfAnnotation[r[parseInt(a.toString(),10)]],n.updateModifiedDateToLocalDate(o,"annotationOrder"),n.updateModifiedDateToLocalDate(o,"freeTextAnnotation"),n.updateModifiedDateToLocalDate(o,"measureShapeAnnotation"),n.updateModifiedDateToLocalDate(o,"shapeAnnotation"),n.updateModifiedDateToLocalDate(o,"signatureAnnotation"),n.updateModifiedDateToLocalDate(o,"signatureInkAnnotation"),n.updateModifiedDateToLocalDate(o,"stampAnnotations"),n.updateModifiedDateToLocalDate(o,"stickyNotesAnnotation"),n.updateModifiedDateToLocalDate(o,"textMarkupAnnotation");n.reRenderAnnotations(t.pdfAnnotation),n.isImportedAnnotation=!0,n.updateDocumentEditedProperty(!0),n.pdfViewer.fireImportSuccess(t.pdfAnnotation);for(var s=e.sessionStorageManager.getSessionLength(),l=[],a=0;a<s;a++)e.sessionStorageManager.getKey(a)&&e.sessionStorageManager.getKey(a).split("_")[3]&&"annotations"===e.sessionStorageManager.getKey(a).split("_")[3]&&(this.annotationStorage[e.sessionStorageManager.getKey(a)]=e.sessionStorageManager.getItem(e.sessionStorageManager.getKey(a)),l.push(e.sessionStorageManager.getKey(a)));var d=this.renderedPagesList;l.forEach(function(t){var i=e.sessionStorageManager.getItem(t);if(i){var n=JSON.parse(i).filter(function(e){return d.indexOf(e.pageIndex)>-1});0===n.length?e.sessionStorageManager.removeItem(t):e.sessionStorageManager.setItem(t,JSON.stringify(n))}})}else n.pdfViewer.fireImportFailed(i,n.pdfViewer.localeObj.getConstant("File not found"))},e.prototype.openImportExportNotificationPopup=function(e){this.pdfViewer.showNotificationDialog&&this.createNotificationPopup(e)},e.prototype.reRenderAnnotations=function(i){if(i){this.isImportAction=!0;var n=0;this.isImportedAnnotation?this.importedAnnotation=this.combineImportedData(this.importedAnnotation,i):this.pageCount>0&&(this.importedAnnotation=i),this.isImportedAnnotation||(n=0);for(var o=0;o<this.pageCount;o++)if(i[parseInt(o.toString(),10)]){var r=[],a=e.sessionStorageManager.getItem(this.documentId+"_annotations_textMarkup"),s=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape"),l=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape_measure"),d=e.sessionStorageManager.getItem(this.documentId+"_annotations_stamp"),A=e.sessionStorageManager.getItem(this.documentId+"_annotations_sticky"),h=e.sessionStorageManager.getItem(this.documentId+"_annotations_freetext"),p=e.sessionStorageManager.getItem(this.documentId+"_annotations_sign"),c=e.sessionStorageManager.getItem(this.documentId+"_annotations_ink");if(this.isStorageExceed&&(a=this.annotationStorage[this.documentId+"_annotations_textMarkup"],s=this.annotationStorage[this.documentId+"_annotations_shape"],l=this.annotationStorage[this.documentId+"_annotations_shape_measure"],d=this.annotationStorage[this.documentId+"_annotations_stamp"],A=this.annotationStorage[this.documentId+"_annotations_sticky"],h=this.annotationStorage[this.documentId+"_annotations_freetext"],c=this.annotationStorage[this.documentId+"_annotations_ink"]),this.drawPageAnnotations(i[parseInt(o.toString(),10)],o),this.isImportedAnnotation){for(var g=!1,u=0;u<this.annotationPageList.length;u++)this.annotationPageList[parseInt(u.toString(),10)]===o&&(g=!0);g&&(this.annotationPageList[parseInt(n.toString(),10)]=o,n+=1)}else this.annotationPageList[parseInt(n.toString(),10)]=o,n+=1;if(i[parseInt(o.toString(),10)].textMarkupAnnotation&&0!==i[parseInt(o.toString(),10)].textMarkupAnnotation.length){if(a){f=JSON.parse(a);i[parseInt(o.toString(),10)].textMarkupAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].textMarkupAnnotation,o)}i[parseInt(o.toString(),10)].textMarkupAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].textMarkupAnnotation,o),r.textMarkupAnnotation=i[parseInt(o.toString(),10)].textMarkupAnnotation}if(i[parseInt(o.toString(),10)].shapeAnnotation&&0!==i[parseInt(o.toString(),10)].shapeAnnotation.length){if(s){f=JSON.parse(s);i[parseInt(o.toString(),10)].shapeAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].shapeAnnotation,o)}i[parseInt(o.toString(),10)].shapeAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].shapeAnnotation,o),r.shapeAnnotation=i[parseInt(o.toString(),10)].shapeAnnotation}if(i[parseInt(o.toString(),10)].measureShapeAnnotation&&0!==i[parseInt(o.toString(),10)].measureShapeAnnotation.length){if(l){f=JSON.parse(l);i[parseInt(o.toString(),10)].measureShapeAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].measureShapeAnnotation,o)}i[parseInt(o.toString(),10)].measureShapeAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].measureShapeAnnotation,o),r.measureShapeAnnotation=i[parseInt(o.toString(),10)].measureShapeAnnotation}if(i[parseInt(o.toString(),10)].stampAnnotations&&0!==i[parseInt(o.toString(),10)].stampAnnotations.length){if(d){f=JSON.parse(d);i[parseInt(o.toString(),10)].stampAnnotations=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].stampAnnotations,o)}i[parseInt(o.toString(),10)].stampAnnotations=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].stampAnnotations,o),r.stampAnnotations=i[parseInt(o.toString(),10)].stampAnnotations}if(i[parseInt(o.toString(),10)].stickyNotesAnnotation&&0!==i[parseInt(o.toString(),10)].stickyNotesAnnotation.length){if(A){f=JSON.parse(A);i[parseInt(o.toString(),10)].stickyNotesAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].stickyNotesAnnotation,o)}i[parseInt(o.toString(),10)].stickyNotesAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].stickyNotesAnnotation,o),r.stickyNotesAnnotation=i[parseInt(o.toString(),10)].stickyNotesAnnotation}if(i[parseInt(o.toString(),10)].freeTextAnnotation&&0!==i[parseInt(o.toString(),10)].freeTextAnnotation.length){if(h){f=JSON.parse(h);i[parseInt(o.toString(),10)].freeTextAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].freeTextAnnotation,o)}i[parseInt(o.toString(),10)].freeTextAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].freeTextAnnotation,o),r.freeTextAnnotation=i[parseInt(o.toString(),10)].freeTextAnnotation}if(i[parseInt(o.toString(),10)].signatureAnnotation&&0!==i[parseInt(o.toString(),10)].signatureAnnotation.length){if(p){f=JSON.parse(p);i[parseInt(o.toString(),10)].signatureAnnotation=this.checkSignatureCollections(f,i[parseInt(o.toString(),10)].signatureAnnotation,o)}r.signatureAnnotation=i[parseInt(o.toString(),10)].signatureAnnotation}if(i[parseInt(o.toString(),10)].signatureInkAnnotation&&0!==i[parseInt(o.toString(),10)].signatureInkAnnotation.length){if(c){var f=JSON.parse(c);i[parseInt(o.toString(),10)].signatureInkAnnotation=this.checkAnnotationCollections(f,i[parseInt(o.toString(),10)].signatureInkAnnotation,o)}i[parseInt(o.toString(),10)].signatureInkAnnotation=this.checkAnnotationCommentsCollections(i[parseInt(o.toString(),10)].signatureInkAnnotation,o),r.signatureInkAnnotation=i[parseInt(o.toString(),10)].signatureInkAnnotation}if(i[parseInt(o.toString(),10)].annotationOrder)for(var m=i[parseInt(o.toString(),10)].annotationOrder,w=[],C=this,B=0;B<m.length;B++)!function(e){var n=m[parseInt(e.toString(),10)].AnnotType?m[parseInt(e.toString(),10)].AnnotType:m[parseInt(e.toString(),10)].AnnotationType;switch(w.push(m[parseInt(e.toString(),10)]),n){case"textMarkup":if(0!==i[parseInt(o.toString(),10)].textMarkupAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(l=0;l<w.length;l++)t.isNullOrUndefined(C.pdfViewer.annotationModule.textMarkupAnnotationModule)||C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.textMarkupAnnotationModule.updateTextMarkupAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"shape":if(0!==i[parseInt(o.toString(),10)].shapeAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);var r=i[parseInt(o.toString(),10)].shapeAnnotation[0];if(i[parseInt(o.toString(),10)].shapeAnnotation.length>0&&r&&r.AnnotName){var a=i[parseInt(o.toString(),10)].shapeAnnotation[0].AnnotName,s=C.pdfViewer.annotationCollection.find(function(e){return e.annotationId===a});s&&s.enableShapeLabel&&s.labelContent&&C.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(s.annotationId,s.labelContent)}for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.shapeAnnotationModule.updateShapeAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"shape_measure":if(0!==i[parseInt(o.toString(),10)].measureShapeAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.measureAnnotationModule.updateMeasureAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"stamp":if(0!==i[parseInt(o.toString(),10)].stampAnnotations.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.stampAnnotationModule.updateStampAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"Text Box":case"freeText":if(0!==i[parseInt(o.toString(),10)].freeTextAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.freeTextAnnotationModule.updateFreeTextAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"sticky":if(0!==i[parseInt(o.toString(),10)].stickyNotesAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateStickyNotesAnnotationCollections(m[parseInt(e.toString(),10)],o))}break;case"signature":if(0!==i[parseInt(o.toString(),10)].signatureAnnotation.length||0!==w.length)for(l=0;l<w.length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.signatureModule.updateSignatureCollections(m[parseInt(e.toString(),10)],o),!0);break;case"Ink":case"ink":if(0!==i[parseInt(o.toString(),10)].signatureInkAnnotation.length||0!==w.length){C.pdfViewer.annotationModule.stickyNotesAnnotationModule.renderAnnotationComments(w,o);for(var l=0;l<i[parseInt(o.toString(),10)].annotationOrder[parseInt(e.toString(),10)].length;l++)C.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateCollections(C.pdfViewer.annotationModule.inkAnnotationModule.updateInkCollections(m[parseInt(e.toString(),10)],o))}}w=[]}(B);this.updateImportedAnnotationsInDocumentCollections(r,o)}if(this.pageCount>0&&this.pdfViewer.annotationModule.stickyNotesAnnotationModule&&!this.pdfViewer.annotationModule.stickyNotesAnnotationModule.isAnnotationRendered){var S=this.createAnnotationsCollection();S&&(this.documentAnnotationCollections=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAnnotationsInDocumentCollections(this.importedAnnotation,S))}}this.isImportAction=!1},e.prototype.updateImportedAnnotationsInDocumentCollections=function(e,t){if(this.documentAnnotationCollections){var i=this.documentAnnotationCollections[parseInt(t.toString(),10)];if(i){if(e.textMarkupAnnotation&&0!==e.textMarkupAnnotation.length)for(n=0;n<e.textMarkupAnnotation.length;n++)i.textMarkupAnnotation.push(e.textMarkupAnnotation[parseInt(n.toString(),10)]);if(e.shapeAnnotation&&0!==e.shapeAnnotation.length)for(n=0;n<e.shapeAnnotation.length;n++)i.shapeAnnotation.push(e.shapeAnnotation[parseInt(n.toString(),10)]);if(e.measureShapeAnnotation&&0!==e.measureShapeAnnotation.length)for(n=0;n<e.measureShapeAnnotation.length;n++)i.measureShapeAnnotation.push(e.measureShapeAnnotation[parseInt(n.toString(),10)]);if(e.stampAnnotations&&0!==e.stampAnnotations.length)for(n=0;n<e.stampAnnotations.length;n++)i.stampAnnotations.push(e.stampAnnotations[parseInt(n.toString(),10)]);if(e.stickyNotesAnnotation&&0!==e.stickyNotesAnnotation.length)for(n=0;n<e.stickyNotesAnnotation.length;n++)i.stickyNotesAnnotation.push(e.stickyNotesAnnotation[parseInt(n.toString(),10)]);if(e.freeTextAnnotation&&0!==e.freeTextAnnotation.length)for(n=0;n<e.freeTextAnnotation.length;n++)i.freeTextAnnotation.push(e.freeTextAnnotation[parseInt(n.toString(),10)]);if(e.signatureAnnotation&&0!==e.signatureAnnotation.length)for(n=0;n<e.signatureAnnotation.length;n++)i.signatureAnnotation.push(e.signatureAnnotation[parseInt(n.toString(),10)]);if(e.signatureInkAnnotation&&0!==e.signatureInkAnnotation.length)for(var n=0;n<e.signatureInkAnnotation.length;n++)i.signatureInkAnnotation.push(e.signatureInkAnnotation[parseInt(n.toString(),10)]);this.documentAnnotationCollections[parseInt(t.toString(),10)]=i}}},e.prototype.checkDocumentCollectionData=function(t,i){var n;if(i)n=i;else if(this.documentAnnotationCollections){var o=this.documentAnnotationCollections[parseInt(t.toString(),10)];o&&(n=B(o))}if(n){var r=e.sessionStorageManager.getItem(this.documentId+"_annotations_textMarkup"),a=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape"),s=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape_measure"),l=e.sessionStorageManager.getItem(this.documentId+"_annotations_stamp"),d=e.sessionStorageManager.getItem(this.documentId+"_annotations_sticky"),A=e.sessionStorageManager.getItem(this.documentId+"_annotations_freetext"),h=e.sessionStorageManager.getItem(this.documentId+"_annotations_ink"),p=e.sessionStorageManager.getItem(this.documentId+"_annotations_sign");if(this.isStorageExceed&&(r=this.annotationStorage[this.documentId+"_annotations_textMarkup"],a=this.annotationStorage[this.documentId+"_annotations_shape"],s=this.annotationStorage[this.documentId+"_annotations_shape_measure"],l=this.annotationStorage[this.documentId+"_annotations_stamp"],d=this.annotationStorage[this.documentId+"_annotations_sticky"],A=this.annotationStorage[this.documentId+"_annotations_freetext"],h=this.annotationStorage[this.documentId+"_annotations_ink"],p=this.annotationStorage[this.documentId+"_annotations_sign"]),n.textMarkupAnnotation&&0!==n.textMarkupAnnotation.length&&r&&(c=JSON.parse(r))&&(n.textMarkupAnnotation=this.findImportedAnnotations(c,n.textMarkupAnnotation,t)),n.shapeAnnotation&&0!==n.shapeAnnotation.length&&a&&(c=JSON.parse(a))&&(n.shapeAnnotation=this.findImportedAnnotations(c,n.shapeAnnotation,t)),n.measureShapeAnnotation&&0!==n.measureShapeAnnotation.length&&s&&(c=JSON.parse(s))&&(n.measureShapeAnnotation=this.findImportedAnnotations(c,n.measureShapeAnnotation,t)),n.stampAnnotations&&0!==n.stampAnnotations.length&&l&&(c=JSON.parse(l))&&(n.stampAnnotations=this.findImportedAnnotations(c,n.stampAnnotations,t)),n.stickyNotesAnnotation&&0!==n.stickyNotesAnnotation.length&&d&&(c=JSON.parse(d))&&(n.stickyNotesAnnotation=this.findImportedAnnotations(c,n.stickyNotesAnnotation,t)),n.freeTextAnnotation&&0!==n.freeTextAnnotation.length&&A&&(c=JSON.parse(A))&&(n.freeTextAnnotation=this.findImportedAnnotations(c,n.freeTextAnnotation,t)),n.signatureInkAnnotation&&0!==n.signatureInkAnnotation.length&&h&&(c=JSON.parse(h))&&(n.signatureInkAnnotation=this.findImportedAnnotations(c,n.signatureInkAnnotation,t)),n.signatureAnnotation&&0!==n.signatureAnnotation.length&&p){var c=JSON.parse(h);c&&(n.signatureAnnotation=this.findImportedAnnotations(c,n.signatureAnnotation,t))}return n}},e.prototype.findImportedAnnotations=function(e,t,i){for(var n=null,o=0;o<e.length;o++)e[parseInt(o.toString(),10)].pageIndex===i&&(n=e[parseInt(o.toString(),10)].annotations);if(n)for(var r=0;r<n.length;r++)for(var a=0;a<t.length;a++)n[parseInt(r.toString(),10)].annotName===t[parseInt(a.toString(),10)].AnnotName&&(t.splice(a,1),a-=1);return n=null,t},e.prototype.setAnnotationSettings=function(e){t.isNullOrUndefined(e)||(e.AnnotationSettings=e.AnnotationSettings?e.AnnotationSettings:this.pdfViewer.annotationModule.updateAnnotationSettings(e),e.IsLocked&&(e.AnnotationSettings.isLock=e.IsLocked))},e.prototype.drawPageAnnotations=function(i,n,o){if(o&&(i=i[parseInt(n.toString(),10)]),i&&!i.annotationOrder){var r=["freeTextAnnotation","measureShapeAnnotation","shapeAnnotation","signatureAnnotation","signatureInkAnnotation","stampAnnotations","stickyNotesAnnotation","textMarkupAnnotation"].find(function(e){if(i[""+e]&&0!==i[""+e].length)return i[""+e]});r&&(i.annotationOrder=i[""+r])}if(i){var a=i.annotationOrder,s=[],l=!0;if(!t.isNullOrUndefined(a))for(var d=0;d<a.length;d++){var A=a[parseInt(d.toString(),10)].AnnotType?a[parseInt(d.toString(),10)].AnnotType:a[parseInt(d.toString(),10)].AnnotationType;s.push(a[parseInt(d.toString(),10)]);var h=void 0,p=void 0,c=d===a.length-1;switch(A){case"textMarkup":l=!1,h=e.sessionStorageManager.getItem(this.documentId+"_annotations_textMarkup"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_textMarkup"]),h&&(p=JSON.parse(h))&&(s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.textMarkupAnnotation=this.checkAnnotationCommentsCollections(i.textMarkupAnnotation,n),this.pdfViewer.annotationModule.renderAnnotations(n,null,null,s,null,!0,null,null,null,c);break;case"shape":l=!1,h=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_shape"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.shapeAnnotation=this.checkAnnotationCommentsCollections(i.shapeAnnotation,n),this.pdfViewer.annotationModule.renderAnnotations(n,s,null,null,null,!0,null,null,null,c);break;case"shape_measure":l=!1,h=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape_measure"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_shape_measure"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.measureShapeAnnotation=this.checkAnnotationCommentsCollections(i.measureShapeAnnotation,n),this.pdfViewer.annotationModule.renderAnnotations(n,null,s,null,null,!0,null,null,null,c);break;case"stamp":h=e.sessionStorageManager.getItem(this.documentId+"_annotations_stamp"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_stamp"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.stampAnnotations=this.checkAnnotationCommentsCollections(i.stampAnnotations,n),this.pdfViewer.annotationModule.stampAnnotationModule.renderStampAnnotations(s,n,null,!0,null);break;case"Text Box":case"freeText":h=e.sessionStorageManager.getItem(this.documentId+"_annotations_freetext"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_freetext"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.freeTextAnnotation=this.checkAnnotationCommentsCollections(i.freeTextAnnotation,n),this.pdfViewer.annotationModule.freeTextAnnotationModule.renderFreeTextAnnotations(s,n,!0,null,c);break;case"sticky":h=e.sessionStorageManager.getItem(this.documentId+"_annotations_sticky"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_sticky"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.stickyNotesAnnotation=this.checkAnnotationCommentsCollections(i.stickyNotesAnnotation,n),this.pdfViewer.annotationModule.stickyNotesAnnotationModule.render
10StickyNotesAnnotations(s,n,null,!0,c);break;case"signature":case"Signature":case"SignatureText":case"SignatureImage":h=e.sessionStorageManager.getItem(this.documentId+"_annotations_sign"),p=JSON.parse(h),s&&this.setAnnotationSettings(s[0]),p&&(i.signatureAnnotation=this.checkSignatureCollections(p,s,n)),this.signatureModule.renderExistingSignature(s,n,!0,c);break;case"Ink":case"ink":h=e.sessionStorageManager.getItem(this.documentId+"_annotations_ink"),this.isStorageExceed&&(h=this.annotationStorage[this.documentId+"_annotations_ink"]),h&&(p=JSON.parse(h),s=this.checkAnnotationCollections(p,s,n)),s&&this.setAnnotationSettings(s[0]),i.signatureInkAnnotation=this.checkAnnotationCommentsCollections(i.signatureInkAnnotation,n),this.pdfViewer.annotationModule.inkAnnotationModule.renderExistingInkSignature(s,n,!0,null,c)}s=[]}l&&this.pdfViewer.annotationModule.renderAnnotations(n,null,null,null)}},e.prototype.checkSignatureCollections=function(e,t,i){for(var n=null,o=0;o<e.length;o++)e[parseInt(o.toString(),10)].pageIndex===i&&(n=e[parseInt(o.toString(),10)].annotations);if(n)for(var r=0;r<n.length;r++)for(var a=0;a<t.length;a++)n[parseInt(r.toString(),10)].signatureName===t[parseInt(a.toString(),10)].SignatureName&&(t.splice(a,1),a-=1);return n=null,t},e.prototype.checkAnnotationCollections=function(e,t,i){for(var n=null,o=0;o<e.length;o++)e[parseInt(o.toString(),10)].pageIndex===i&&(n=e[parseInt(o.toString(),10)].annotations);if(n)for(var r=0;r<n.length;r++)for(var a=0;a<t.length;a++)n[parseInt(r.toString(),10)].annotName===t[parseInt(a.toString(),10)].AnnotName&&(t.splice(a,1),a-=1);return n=null,t},e.prototype.checkAnnotationCommentsCollections=function(e,t){if(this.annotationComments){var i=this.annotationComments[parseInt(t.toString(),10)];if(i=this.selectAnnotationCollections(i))for(var n=0;n<i.length;n++)for(var o=0;o<e.length;o++)i[parseInt(n.toString(),10)].AnnotName===e[parseInt(o.toString(),10)].AnnotName&&(e.splice(o,1),o-=1);i=null}return e},e.prototype.selectAnnotationCollections=function(e){var t=[];if(e){if(e.textMarkupAnnotation&&0!==e.textMarkupAnnotation.length)for(i=0;i<e.textMarkupAnnotation.length;i++)t.push(e.textMarkupAnnotation[parseInt(i.toString(),10)]);if(e.shapeAnnotation&&0!==e.shapeAnnotation.length)for(i=0;i<e.shapeAnnotation.length;i++)t.push(e.shapeAnnotation[parseInt(i.toString(),10)]);if(e.measureShapeAnnotation&&0!==e.measureShapeAnnotation.length)for(i=0;i<e.measureShapeAnnotation.length;i++)t.push(e.measureShapeAnnotation[parseInt(i.toString(),10)]);if(e.stampAnnotations&&0!==e.stampAnnotations.length)for(i=0;i<e.stampAnnotations.length;i++)t.push(e.stampAnnotations[parseInt(i.toString(),10)]);if(e.stickyNotesAnnotation&&0!==e.stickyNotesAnnotation.length)for(i=0;i<e.stickyNotesAnnotation.length;i++)t.push(e.stickyNotesAnnotation[parseInt(i.toString(),10)]);if(e.freeTextAnnotation&&0!==e.freeTextAnnotation.length)for(i=0;i<e.freeTextAnnotation.length;i++)t.push(e.freeTextAnnotation[parseInt(i.toString(),10)]);if(e.signatureInkAnnotation&&0!==e.signatureInkAnnotation.length)for(var i=0;i<e.signatureInkAnnotation.length;i++)t.push(e.signatureInkAnnotation[parseInt(i.toString(),10)])}return t},e.prototype.saveImportedAnnotations=function(){var t=e.sessionStorageManager.getItem(this.documentId+"_annotations_textMarkup"),i=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape"),n=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape_measure"),o=e.sessionStorageManager.getItem(this.documentId+"_annotations_stamp"),r=e.sessionStorageManager.getItem(this.documentId+"_annotations_sticky"),a=e.sessionStorageManager.getItem(this.documentId+"_annotations_freetext"),s=e.sessionStorageManager.getItem(this.documentId+"_annotations_ink"),l=e.sessionStorageManager.getItem(this.documentId+"_annotations_sign");if(this.isStorageExceed&&(t=this.annotationStorage[this.documentId+"_annotations_textMarkup"],i=this.annotationStorage[this.documentId+"_annotations_shape"],n=this.annotationStorage[this.documentId+"_annotations_shape_measure"],o=this.annotationStorage[this.documentId+"_annotations_stamp"],r=this.annotationStorage[this.documentId+"_annotations_sticky"],a=this.annotationStorage[this.documentId+"_annotations_freetext"],s=this.annotationStorage[this.documentId+"_annotations_ink"],l=this.annotationStorage[this.documentId+"_annotations_sign"]),this.downloadCollections={textMarkupObject:t,shapeObject:i,measureShapeObject:n,stampObject:o,stickyObject:r,freeTextOb
10ject:a,inkObject:s,signatureObject:l},this.documentAnnotationCollections)for(var d=0;d<this.pageCount;d++)if(this.documentAnnotationCollections[parseInt(d.toString(),10)]){var A=B(this.documentAnnotationCollections[parseInt(d.toString(),10)]);A=this.checkDocumentCollectionData(d,A),this.savePageAnnotations(A,d)}},e.prototype.savePageAnnotations=function(e,i){if(0!==e.textMarkupAnnotation.length)for(n=0;n<e.textMarkupAnnotation.length;n++)t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)||this.pdfViewer.annotationModule.textMarkupAnnotationModule.saveImportedTextMarkupAnnotations(e.textMarkupAnnotation[parseInt(n.toString(),10)],i);if(0!==e.shapeAnnotation.length)for(n=0;n<e.shapeAnnotation.length;n++)this.pdfViewer.annotationModule.shapeAnnotationModule.saveImportedShapeAnnotations(e.shapeAnnotation[parseInt(n.toString(),10)],i);if(0!==e.measureShapeAnnotation.length)for(n=0;n<e.measureShapeAnnotation.length;n++)this.pdfViewer.annotationModule.measureAnnotationModule.saveImportedMeasureAnnotations(e.measureShapeAnnotation[parseInt(n.toString(),10)],i);if(0!==e.stampAnnotations.length)for(n=0;n<e.stampAnnotations.length;n++)this.pdfViewer.annotationModule.stampAnnotationModule.saveImportedStampAnnotations(e.stampAnnotations[parseInt(n.toString(),10)],i);if(0!==e.stickyNotesAnnotation.length)for(n=0;n<e.stickyNotesAnnotation.length;n++)this.pdfViewer.annotationModule.stickyNotesAnnotationModule.saveImportedStickyNotesAnnotations(e.stickyNotesAnnotation[parseInt(n.toString(),10)],i);if(0!==e.freeTextAnnotation.length)for(n=0;n<e.freeTextAnnotation.length;n++)this.pdfViewer.annotationModule.freeTextAnnotationModule.saveImportedFreeTextAnnotations(e.freeTextAnnotation[parseInt(n.toString(),10)],i);if(0!==e.signatureInkAnnotation.length){this.pdfViewer.isSignatureEditable||(e.signatureInkAnnotation=this.canUpdateSignCollection(e.signatureInkAnnotation));for(var n=0;n<e.signatureInkAnnotation.length;n++)this.pdfViewer.annotationModule.inkAnnotationModule.saveImportedInkAnnotation(e.signatureInkAnnotation[parseInt(n.toString(),10)],i)}0!==e.signatureAnnotation.length&&(this.pdfViewer.isSignatureEditable||(e.signatureAnnotation=this.canUpdateSignCollection(e.signatureAnnotation)))},e.prototype.updateDocumentAnnotationCollections=function(){e.sessionStorageManager.removeItem(this.documentId+"_annotations_textMarkup"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_shape"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_shape_measure"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_stamp"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_sticky"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_freetext"),e.sessionStorageManager.removeItem(this.documentId+"_annotations_ink"),this.downloadCollections&&(this.isStorageExceed?(this.annotationStorage[this.documentId+"_annotations_textMarkup"]=this.downloadCollections.textMarkupObject,this.annotationStorage[this.documentId+"_annotations_shape"]=this.downloadCollections.shapeObject,this.annotationStorage[this.documentId+"_annotations_shape_measure"]=this.downloadCollections.measureShapeObject,this.annotationStorage[this.documentId+"_annotations_stamp"]=this.downloadCollections.stampObject,this.annotationStorage[this.documentId+"_annotations_sticky"]=this.downloadCollections.stickyObject,this.annotationStorage[this.documentId+"_annotations_freetext"]=this.downloadCollections.freeTextObject,this.annotationStorage[this.documentId+"_annotations_ink"]=this.downloadCollections.inkObject):(this.downloadCollections.textMarkupObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_textMarkup",this.downloadCollections.textMarkupObject),this.downloadCollections.shapeObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_shape",this.downloadCollections.shapeObject),this.downloadCollections.measureShapeObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_shape_measure",this.downloadCollections.measureShapeObject),this.downloadCollections.stampObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_stamp",this.downloadCollections.stampObject),this.downloadCollections.stickyObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_sticky",this.downloadCollections.stickyObject),this.downloadCollections.freeTextOb
vendor: 259,217 bytes, line 10
10ject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_freetext",this.downloadCollections.freeTextObject),this.downloadCollections.inkObject&&e.sessionStorageManager.setItem(this.documentId+"_annotations_ink",this.downloadCollections.inkObject)))},e.prototype.createAnnotationJsonData=function(){var e,t,i,n,o,r,a,s,l={};if(this.saveImportedAnnotations(),this.isTextMarkupAnnotationModule()&&(this.isJsonExported=!0,e=this.pdfViewer.annotationModule.textMarkupAnnotationModule.saveTextMarkupAnnotations()),this.isShapeAnnotationModule()&&(this.isJsonExported=!0,t=this.pdfViewer.annotationModule.shapeAnnotationModule.saveShapeAnnotations()),this.isCalibrateAnnotationModule()&&(this.isJsonExported=!0,i=this.pdfViewer.annotationModule.measureAnnotationModule.saveMeasureShapeAnnotations()),this.isStampAnnotationModule()&&(n=this.pdfViewer.annotationModule.stampAnnotationModule.saveStampAnnotations()),this.isCommentAnnotationModule()&&(o=this.pdfViewer.annotationModule.stickyNotesAnnotationModule.saveStickyAnnotations()),this.isFreeTextAnnotationModule()&&(r=this.pdfViewer.annotationModule.freeTextAnnotationModule.saveFreeTextAnnotations()),this.isInkAnnotationModule()&&(s=this.pdfViewer.annotationModule.inkAnnotationModule.saveInkSignature()),this.pdfViewer.isSignatureEditable)a=this.signatureModule.saveSignature();else{for(var d=[],A=0;A<this.pageCount;A++)d[parseInt(A.toString(),10)]=[];a=JSON.stringify(d)}for(var h=0;h<this.pageCount;h++){var p={textMarkupAnnotation:JSON.parse(e)[parseInt(h.toString(),10)],shapeAnnotation:JSON.parse(t)[parseInt(h.toString(),10)],measureShapeAnnotation:JSON.parse(i)[parseInt(h.toString(),10)],stampAnnotations:JSON.parse(n)[parseInt(h.toString(),10)],stickyNotesAnnotation:JSON.parse(o)[parseInt(h.toString(),10)],freeTextAnnotation:JSON.parse(r)[parseInt(h.toString(),10)],signatureAnnotation:JSON.parse(a)[parseInt(h.toString(),10)],signatureInkAnnotation:JSON.parse(s)[parseInt(h.toString(),10)]};l[parseInt(h.toString(),10)]=p}return JSON.stringify(l)},e.prototype.combineImportedData=function(e,t){for(var i=0;i<this.pageCount;i++)if(t[parseInt(i.toString(),10)])if(e[parseInt(i.toString(),10)])t[parseInt(i.toString(),10)].textMarkupAnnotation&&0!==t[parseInt(i.toString(),10)].textMarkupAnnotation.length&&(e[parseInt(i.toString(),10)].textMarkupAnnotation?(t[parseInt(i.toString(),10)].textMarkupAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].textMarkupAnnotation,t[parseInt(i.toString(),10)].textMarkupAnnotation,i),0!==t[parseInt(i.toString(),10)].textMarkupAnnotation.length&&(e[parseInt(i.toString(),10)].textMarkupAnnotation=e[parseInt(i.toString(),10)].textMarkupAnnotation.concat(t[parseInt(i.toString(),10)].textMarkupAnnotation))):e[parseInt(i.toString(),10)].textMarkupAnnotation=t[parseInt(i.toString(),10)].textMarkupAnnotation),t[parseInt(i.toString(),10)].shapeAnnotation&&0!==t[parseInt(i.toString(),10)].shapeAnnotation.length&&(e[parseInt(i.toString(),10)].shapeAnnotation?(t[parseInt(i.toString(),10)].shapeAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].shapeAnnotation,t[parseInt(i.toString(),10)].shapeAnnotation,i),0!==t[parseInt(i.toString(),10)].shapeAnnotation.length&&(e[parseInt(i.toString(),10)].shapeAnnotation=e[parseInt(i.toString(),10)].shapeAnnotation.concat(t[parseInt(i.toString(),10)].shapeAnnotation))):e[parseInt(i.toString(),10)].shapeAnnotation=t[parseInt(i.toString(),10)].shapeAnnotation),t[parseInt(i.toString(),10)].measureShapeAnnotation&&0!==t[parseInt(i.toString(),10)].measureShapeAnnotation.length&&(e[parseInt(i.toString(),10)].measureShapeAnnotation?(t[parseInt(i.toString(),10)].measureShapeAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].measureShapeAnnotation,t[parseInt(i.toString(),10)].measureShapeAnnotation,i),0!==t[parseInt(i.toString(),10)].measureShapeAnnotation.length&&(e[parseInt(i.toString(),10)].measureShapeAnnotation=e[parseInt(i.toString(),10)].measureShapeAnnotation.concat(t[parseInt(i.toString(),10)].measureShapeAnnotation))):e[parseInt(i.toString(),10)].measureShapeAnnotation=t[parseInt(i.toString(),10)].measureShapeAnnotation),t[parseInt(i.toString(),10)].stampAnnotations&&0!==t[parseInt(i.toString(),10)].stampAnnotations.length&&(e[parseInt(i.toString(),10)].stampAnnotations?(t[parseInt(i.toString(),10)].stampAnnotations=this.checkImportedData(e[parseInt(i.toString(),10)].stampAnnotations,t[parseInt(i.toString(),10)].stampAnnotations,i),0!==t[parseInt(i.toString(),10)].stampAnnotations.length&&(e[parseInt(i.toString(),10)].stampAnnotations=e[parseInt(i.toString(),10)].stampAnnotations.concat(t[parseInt(i.toString(),10)].stampAnnotations))):e[parseInt(i.toString(),10)].stampAnnotations=t[parseInt(i.toString(),10)].stampAnnotations),t[parseInt(i.toString(),10)].stickyNotesAnnotation&&0!==t[parseInt(i.toString(),10)].stickyNotesAnnotation.length&&(e[parseInt(i.toString(),10)].stickyNotesAnnotation?(t[parseInt(i.toString(),10)].stickyNotesAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].stickyNotesAnnotation,t[parseInt(i.toString(),10)].stickyNotesAnnotation,i),0!==t[parseInt(i.toString(),10)].stickyNotesAnnotation.length&&(e[parseInt(i.toString(),10)].stickyNotesAnnotation=e[parseInt(i.toString(),10)].stickyNotesAnnotation.concat(t[parseInt(i.toString(),10)].stickyNotesAnnotation))):e[parseInt(i.toString(),10)].stickyNotesAnnotation=t[parseInt(i.toString(),10)].stickyNotesAnnotation),t[parseInt(i.toString(),10)].freeTextAnnotation&&0!==t[parseInt(i.toString(),10)].freeTextAnnotation.length&&(e[parseInt(i.toString(),10)].freeTextAnnotation?(t[parseInt(i.toString(),10)].freeTextAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].freeTextAnnotation,t[parseInt(i.toString(),10)].freeTextAnnotation,i),0!==t[parseInt(i.toString(),10)].freeTextAnnotation.length&&(e[parseInt(i.toString(),10)].freeTextAnnotation=e[parseInt(i.toString(),10)].freeTextAnnotation.concat(t[parseInt(i.toString(),10)].freeTextAnnotation))):e[parseInt(i.toString(),10)].freeTextAnnotation=t[parseInt(i.toString(),10)].freeTextAnnotation),t[parseInt(i.toString(),10)].signatureInkAnnotation&&0!==t[parseInt(i.toString(),10)].signatureInkAnnotation.length&&(e[parseInt(i.toString(),10)].signatureInkAnnotation?(t[parseInt(i.toString(),10)].signatureInkAnnotation=this.checkImportedData(e[parseInt(i.toString(),10)].signatureInkAnnotation,t[parseInt(i.toString(),10)].signatureInkAnnotation,i),0!==t[parseInt(i.toString(),10)].signatureInkAnnotation.length&&(e[parseInt(i.toString(),10)].signatureInkAnnotation=e[parseInt(i.toString(),10)].signatureInkAnnotation.concat(t[parseInt(i.toString(),10)].signatureInkAnnotation))):e[parseInt(i.toString(),10)].signatureInkAnnotation=t[parseInt(i.toString(),10)].signatureInkAnnotation);else{var n={textMarkupAnnotation:t[parseInt(i.toString(),10)].textMarkupAnnotation,shapeAnnotation:t[parseInt(i.toString(),10)].shapeAnnotation,measureShapeAnnotation:t[parseInt(i.toString(),10)].measureShapeAnnotation,stampAnnotations:t[parseInt(i.toString(),10)].stampAnnotations,stickyNotesAnnotation:t[parseInt(i.toString(),10)].stickyNotesAnnotation,freeTextAnnotation:t[parseInt(i.toString(),10)].freeTextAnnotation,signatureInkAnnotation:t[parseInt(i.toString(),10)].signatureInkAnnotation};e[parseInt(i.toString(),10)]=n}return e},e.prototype.updateExportItem=function(){var t=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape"),i=e.sessionStorageManager.getItem(this.documentId+"_annotations_shape_measure"),n=e.sessionStorageManager.getItem(this.documentId+"_annotations_stamp"),o=e.sessionStorageManager.getItem(this.documentId+"_annotations_sticky"),r=e.sessionStorageManager.getItem(this.documentId+"_annotations_textMarkup"),a=e.sessionStorageManager.getItem(this.documentId+"_annotations_freetext"),s=!1,l=e.sessionStorageManager.getItem(this.documentId+"_annotations_ink");return this.pdfViewer.isSignatureEditable&&e.sessionStorageManager.getItem(this.documentId+"_annotations_sign")&&(s=!0),!!(this.checkExportAnnotations(t)||this.checkExportAnnotations(i)||this.checkExportAnnotations(n)||this.checkExportAnnotations(o)||this.checkExportAnnotations(r)||this.checkExportAnnotations(a)||this.isImportAction||this.isStorageExceed||s||this.checkExportAnnotations(l)||this.pdfViewer.annotationCollection.length>0)},e.prototype.checkExportAnnotations=function(e){return!!e&&JSON.parse(e).filter(function(e){return e.annotations.length>0}).length>0},e.prototype.isFreeTextAnnotation=function(e){var i=!1;return e&&e.length>0&&(i=e.some(function(e){return"FreeText"===e.shapeAnnotationType&&!t.isNullOrUndefined(e.subject)})),i},e.prototype.checkImportedData=function(e,t,i){for(s=0;s<e.length;s++)for(l=0;l<t.length;l++)if(e[parseInt(s.toString(),10)].AnnotName===t[parseInt(l.toString(),10)].AnnotName){for(var n=this.pdfViewer.annotationCollection.length,o=0;o<n;o++)if(this.pdfViewer.annotationCollection[parseInt(o.toString(),10)].annotationId===t[parseInt(l.toString(),10)].AnnotName){this.pdfViewer.annotationCollection[parseInt(o.toString(),10)].comments=this.pdfViewer.annotationModule.getAnnotationComments(t[parseInt(l.toString(),10)].Comments,t[parseInt(l.toString(),10)],t[parseInt(l.toString(),10)].Author),this.pdfViewer.annotationCollection[parseInt(o.toString(),10)].review={state:t[parseInt(l.toString(),10)].State,stateModel:t[parseInt(l.toString(),10)].StateModel,modifiedDate:t[parseInt(l.toString(),10)].ModifiedDate,author:t[parseInt(l.toString(),10)].Author},this.pdfViewer.annotationCollection[parseInt(o.toString(),10)].note=t[parseInt(l.toString(),10)].Note;var r=this.pdfViewer.annotationCollection[parseInt(o.toString(),10)];"shape"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.shapeAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].shapeAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_shape")):"textMarkup"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.textMarkupAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].textMarkupAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_textMarkup")):"shape_measure"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.measureAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].measureShapeAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_shape_measure")):"stamp"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.stampAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].stampAnnotations[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_stamp")):"freeText"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.freeTextAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].freeTextAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_freetext")):"ink"===e[parseInt(s.toString(),10)].AnnotType&&this.pdfViewer.annotationModule.inkAnnotationModule?(this.documentAnnotationCollections[parseInt(i.toString(),10)].signatureInkAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_ink")):"sticky"===e[parseInt(s.toString(),10)].AnnotType&&(this.documentAnnotationCollections[parseInt(i.toString(),10)].stickyNotesAnnotation[parseInt(s.toString(),10)]=t[parseInt(l.toString(),10)],this.updateAnnotationsInSessionStorage(t[parseInt(l.toString(),10)],r,"_annotations_sticky"));break}this.pdfViewer.annotationModule.stickyNotesAnnotationModule.createCommentControlPanel(t[parseInt(l.toString(),10)],i+1,null,null,!0),t.splice(l,1),l-=1}if(this.annotationComments){var a=this.annotationComments[parseInt(i.toString(),10)];if(a=this.selectAnnotationCollections(a))for(var s=0;s<a.length;s++)for(var l=0;l<t.length;l++)a[parseInt(s.toString(),10)].AnnotName===t[parseInt(l.toString(),10)].AnnotName&&(t.splice(l,1),l-=1)}return t},e.prototype.updateAnnotationsInSessionStorage=function(t,i,n){var o=e.sessionStorageManager.getItem(this.documentId+n),r=JSON.parse(o);if(r){for(var a=0;a<r.length;a++)if(r[parseInt(a.toString(),10)].annotations)for(var s=0;s<r[parseInt(a.toString(),10)].annotations.length;s++)if(r[parseInt(a.toString(),10)].annotations[parseInt(s.toString(),10)].annotName===t.AnnotName){r[parseInt(a.toString(),10)].annotations[parseInt(s.toString(),10)].comments=i.comments,r[parseInt(a.toString(),10)].annotations[parseInt(s.toString(),10)].review=i.review,r[parseInt(a.toString(),10)].annotations[parseInt(s.toString(),10)].note=i.note;break}e.sessionStorageManager.setItem(this.documentId+n,JSON.stringify(r))}},e.prototype.checkAnnotationWidth=function(e){for(var t,i,n,o,r=0,a=0,s=0;s<e.length;s++)t?(t>e[parseInt(s.toString(),10)].x?t=e[parseInt(s.toString(),10)].x:i<e[parseInt(s.toString(),10)].x&&(i=e[parseInt(s.toString(),10)].x),n>e[parseInt(s.toString(),10)].y?n=e[parseInt(s.toString(),10)].y:o<e[parseInt(s.toString(),10)].y&&(o=e[parseInt(s.toString(),10)].y)):(t=e[parseInt(s.toString(),10)].x,i=e[parseInt(s.toString(),10)].x,n=e[parseInt(s.toString(),10)].y,o=e[parseInt(s.toString(),10)].y);return r=i-t,a=o-n,{width:r,height:a}},e.prototype.deleteAnnotations=function(){if(this.pdfViewer.annotationModule){this.updateAnnotationsUndoRedo(),this.updateSignatureUndoRedo(),t.isNullOrUndefined(this.pdfViewer.annotations)||(this.pdfViewer.annotations.length=0),this.pdfViewer.zIndexTable=[],this.pdfViewer.annotationCollection=[],this.pdfViewer.signatureCollection=[];var e=this.createAnnotationsCollection();this.annotationComments=e,this.documentAnnotationCollections=e,this.annotationRenderredList=[];for(var i=0;i<this.pageCount;i++){this.pdfViewer.annotationModule.renderAnnotations(i,null,null,null),this.pdfViewer.renderDrawing(void 0,i),this.pdfViewer.clearSelection(i);var n=document.getElementById(this.pdfViewer.element.id+"_accordionContainer"+(i+1));n&&n.remove();var o=document.getElementById(this.pdfViewer.element.id+"_accordionContentContainer");o&&0===o.childElementCount&&(o.style.display="none",document.getElementById(this.pdfViewer.element.id+"_commentsPanelText")&&(this.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export Annotations")],!1),this.navigationPane.annotationMenuObj.enableItems([this.pdfViewer.localeObj.getConstant("Export XFDF")],!1),document.getElementById(this.pdfViewer.element.id+"_commentsPanelText").style.display="block"))}this.isImportedAnnotation=!1,this.isImportAction=!1,this.importedAnnotation=[],this.annotationPageList=[],this.pdfViewer.annotationModule.freeTextAnnotationModule.freeTextPageNumbers=[],this.pdfViewer.annotationModule.stampAnnotationModule.stampPageNumber=[],this.pdfViewer.annotation.inkAnnotationModule.inkAnnotationindex=[],this.isAnnotationCollectionRemoved=!0}else this.getModuleWarningMessage("Annotation")},e.prototype.updateAnnotationsUndoRedo=function(){for(var e=this,i=0;i<this.pdfViewer.annotationCollection.length;i++)!function(i){var n=null,o=e;if("textMarkup"===o.pdfViewer.annotationCollection[parseInt(i.toString(),10)].shapeAnnotationType){n=o.pdfViewer.annotationCollection[parseInt(i.toString(),10)];var r=o.pdfViewer.annotation.textMarkupAnnotationModule.getAnnotations(n.pageNumber,null);if(r)for(A=0;A<r.length;A++)if(n.annotationId===r[parseInt(A.toString(),10)].annotName){var a=r.splice(parseInt(A.toString(),10),1)[0];o.pdfViewer.annotation.addAction(n.pageNumber,parseInt(A.toString(),10),a,"Text Markup Deleted",null),o.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(a,"textMarkup");var s=document.getElementById(a.annotName);s&&(1===s.parentElement.childElementCount?o.pdfViewer.annotationModule.stickyNotesAnnotationModule.updateAccordionContainer(s):s.remove())}o.pdfViewer.annotation.textMarkupAnnotationModule.manageAnnotations(r,n.pageNumber)}else{n=o.pdfViewer.annotations.filter(function(e){return e.annotName===o.pdfViewer.annotationCollection[parseInt(i.toString(),10)].annotationId})[0],t.isNullOrUndefined(n)&&((n=new tt(e.pdfViewer,"annotations",o.pdfViewer.annotationCollection[parseInt(i.toString(),10)],!0)).pageIndex=n.pageNumber,n.id=o.pdfViewer.annotationCollection[parseInt(i.toString(),10)].uniqueId,n.annotName=o.pdfViewer.annotationCollection[parseInt(i.toString(),10)].annotationId,n.annotationId=null);var l=o.pdfViewer.annotation.modifyInCollections(n,"delete");if(t.isNullOrUndefined(l)&&((l=o.pdfViewer.annotationCollection[parseInt(i.toString(),10)]).annotName=o.pdfViewer.annotationCollection[parseInt(i.toString(),10)].annotationId,delete l.annotationId),o.pdfViewer.annotation.undoCommentsElement.push(l),o.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Delete","",l,n),"Square"===n.shapeAnnotationType||"Line"===n.shapeAnnotationType||"Circle"===n.shapeAnnotationType||"Polygon"===n.shapeAnnotationType||"Polyline"===n.shapeAnnotationType)n.calibrate?o.pdfViewer.annotation.measureAnnotationModule.manageAnnotations(n,n.pageNumber):o.pdfViewer.annotation.shapeAnnotationModule.manageAnnotations(n,n.pageNumber);else if("Stamp"===n.shapeAnnotationType||"Image"===n.shapeAnnotationType)o.pdfViewer.annotation.stampAnnotationModule.manageAnnotations(n,n.pageNumber);else if("FreeText"===n.shapeAnnotationType)o.pdfViewer.annotation.freeTextAnnotationModule.manageAnnotations(n,n.pageNumber);else if("Ink"===n.shapeAnnotationType)o.pdfViewer.annotation.inkAnnotationModule.manageInkAnnotations(n,n.pageNumber);else if("StickyNotes"===n.shapeAnnotationType){for(var d=o.pdfViewer.annotation.stickyNotesAnnotationModule.getAnnotations(n.pageIndex,null,"sticky"),A=0;A<d.length;A++)if(d[parseInt(A.toString(),10)].annotName===n.annotName){d.splice(A,1);break}o.pdfViewer.annotation.stickyNotesAnnotationModule.manageAnnotations(d,n.pageIndex,"sticky")}}}(i)},e.prototype.updateSignatureUndoRedo=function(){for(var e=0;e<this.pdfViewer.signatureCollection.length;e++){var i=this,n=void 0;if("HandWrittenSignature"===i.pdfViewer.signatureCollection[parseInt(e.toString(),10)].shapeAnnotationType||"SignatureText"===i.pdfViewer.signatureCollection[parseInt(e.toString(),10)].shapeAnnotationType||"SignatureImage"===i.pdfViewer.signatureCollection[parseInt(e.toString(),10)].shapeAnnotationType){n=i.pdfViewer.signatureCollection[parseInt(e.toString(),10)];for(var o=0,r=i.signatureModule.getAnnotations(n.pageNumber,null);o<r.length;o++){var a=r[o];if(a.id===n.uniqueKey){n=a;break}}var s=i.pdfViewer.annotation.modifyInCollections(n,"delete");t.isNullOrUndefined(s)&&((s=i.pdfViewer.signatureCollection[parseInt(e.toString(),10)]).annotName=i.pdfViewer.signatureCollection[parseInt(e.toString(),10)].annotationId,delete s.annotationId),i.pdfViewer.annotation.undoCommentsElement.push(s),i.pdfViewer.annotation.addAction(n.pageIndex,null,n,"Delete","",s,n),"HandWrittenSignature"!==n.shapeAnnotationType&&"SignatureText"!==n.shapeAnnotationType&&"SignatureImage"!==n.shapeAnnotationType||i.signatureModule.manageAnnotations(n,n.pageNumber)}e--}},e.prototype.createAnnotationsCollection=function(e,t){var i=[];if(t){o={textMarkupAnnotation:[],shapeAnnotation:[],measureShapeAnnotation:[],stampAnnotations:[],stickyNotesAnnotation:[],freeTextAnnotation:[],signatureAnnotation:[],signatureInkAnnotation:[]};(i={})[parseInt(e.toString(),10)]=o}else for(var n=0;n<this.pageCount;n++){var o={textMarkupAnnotation:[],shapeAnnotation:[],measureShapeAnnotation:[],stampAnnotations:[],stickyNotesAnnotation:[],freeTextAnnotation:[],signatureAnnotation:[],signatureInkAnnotation:[]};i.push(o)}return i},e.prototype.addAnnotation=function(e){var t,i={};if(e){var n=!1,o=1;e.shapeAnnotationType||e.author?(n=!0,t=this.createAnnotationsCollection(e.pageNumber,!0)):e.length?(o=e.length,t=this.createAnnotationsCollection()):(n=!0,t=this.createAnnotationsCollection(e.pageNumber,!0));for(var r=0;r<o;r++){var a=void 0;a=n?e:e[parseInt(r.toString(),10)];var s={};if(s.ShapeAnnotationType=a.shapeAnnotationType,s.AnnotationAddMode=a.annotationAddMode,s.Author=a.author,s.AnnotationSelectorSettings=a.annotationSelectorSettings,s.AnnotationSettings=a.annotationSettings,s.PageNumber=a.pageNumber,s.ModifiedDate=a.modifiedDate,s.Subject=a.subject,s.Note=a.note,s.AnnotName=a.annotationId,s.IsCommentLock=a.isCommentLock,s.Comments=a.comments,a.comments&&a.comments.length>0){for(var l=[],d=0;d<a.comments.length;d++)l.push(this.updateComments(a,a.comments[parseInt(d.toString(),10)]));s.Comments=l}if(a.review&&(s.State=a.review.state,s.StateModel=a.review.stateModel),s.CustomData=a.customData,s.Opacity=a.opacity,"textMarkup"===a.shapeAnnotationType){if(s.AnnotType="textMarkup",s.Color=a.color,s.IsMultiSelect=a.isMultiSelect,s.TextMarkupAnnotationType=a.textMarkupAnnotationType,s.TextMarkupContent=a.textMarkupContent,s.TextMarkupStartIndex=a.textMarkupStartIndex,s.TextMarkupEndIndex=a.textMarkupEndIndex,a.rect&&(s.Rect=this.convertBounds(a.rect,!0)),a.bounds&&a.bounds.length>=1){for(var A=[],d=0;d<a.bounds.length;d++)A.push(this.convertBounds(a.bounds[parseInt(d.toString(),10)]));s.Bounds=A}t[a.pageNumber].textMarkupAnnotation.push(s)}else if("sticky"===a.shapeAnnotationType)s.AnnotType="sticky",s.Icon="Comment",s.Bounds=this.convertBounds(a.bounds),s.StrokeColor=a.strokeColor,s.Color=a.color,t[a.pageNumber].stickyNotesAnnotation.push(s);else if("FreeText"===a.shapeAnnotationType)s.AnnotType="freeText",s.Name=a.annotationId,s.MarkupText=a.dynamicText,s.Text=a.dynamicText,s.Note=a.dynamicText,s.TextAlign=a.textAlign,s.Thickness=a.thicknes,s.StrokeColor=a.strokeColor,s.FillColor=a.fillColor,s.FontColor=a.fontColor,s.FontSize=a.fontSize,s.FontFamily=a.fontFamily,s.Rotate=a.rotateAngle,s.Bounds=this.convertBounds(a.bounds),s.Font={Name:a.fontFamily,Size:a.fontSize,Bold:a.font.isBold,Italic:a.font.isItalic,Strikeout:a.font.isStrikeout,Underline:a.font.isUnderline},t[a.pageNumber].freeTextAnnotation.push(s);else if("stamp"===a.shapeAnnotationType){if(s.AnnotType="stamp",s.Icon=a.icon,s.isDynamic=!1,s.Rect=this.convertBounds(a.bounds,!1,!0),s.RotateAngle=a.rotateAngle,s.FillColor=a.fillColor,s.StrokeColor=a.strokeColor,s.StampAnnotationType=a.stampAnnotationType,s.CreationDate=a.creationDate,"image"===a.stampAnnotationType){var h=[],p={imagedata:a.stampAnnotationPath};h.push(p),s.Apperarance=h}if(a.isDynamicStamp){s.IsDynamic=!0,s.StrokeColor=a.stampFillcolor;var h=[],p={type:"string",text:a.dynamicText,currentFontname:"95b303ab-d397-438a-83af-e2ff8a9900f1",baseFontName:"Helvetica-BoldOblique",fontSize:10,isImport:!0};h.push(p),s.Apperarance=h}t[a.pageNumber].stampAnnotations.push(s)}else if("Ink"===a.shapeAnnotationType||"Signature"===a.shapeAnnotationType)s.StrokeColor=a.strokeColor,s.FillColor=a.fillColor,s.Thickness=a.thickness,s.Bounds=this.convertBounds(a.bounds),s.PathData=a.data,s.pageIndex=a.pageNumber,"Ink"===a.shapeAnnotationType&&(s.AnnotType="Ink",s.IsPathData=!0,t[a.pageNumber].signatureInkAnnotation.push(s)),"Signature"===a.shapeAnnotationType&&(s.AnnotType="Signature",s.SignatureName=a.annotationId,s.IsSignature=!0,t[a.pageNumber].signatureAnnotation.push(s));else if("Line"===a.shapeAnnotationType||"LineWidthArrowHead"===a.shapeAnnotationType||"Polyline"===a.shapeAnnotationType||"Polygon"===a.shapeAnnotationType||"Polyline"===a.shapeAnnotationType||"Circle"===a.shapeAnnotationType||"Oval"===a.shapeAnnotationType||"Rectangle"===a.shapeAnnotationType||"Square"===a.shapeAnnotationType||"Ellipse"===a.shapeAnnotationType){if(s.AnnotType="shape",s.StrokeColor=a.strokeColor,s.FillColor=a.fillColor,s.Thickness=a.thickness,s.BorderStyle=a.borderStyle,s.BorderDashArray=a.borderDashArray,s.RotateAngle=a.rotateAngle,s.IsCloudShape=a.isCloudShape,s.CloudIntensity=a.cloudIntensity,s.RectangleDifference=a.rectangleDifference,s.LineHeadStart=a.lineHeadStart,s.LineHeadEnd=a.lineHeadEnd,s.IsLocked=a.isLocked,s.EnableShapeLabel=a.enableShapeLabel,s.LabelContent=a.labelContent,s.LabelFillColor=a.labelFillColor,s.LabelBorderColor=a.labelBorderColor,s.FontColor=a.fontColor,s.FontSize=a.fontSize,s.LabelBounds=this.convertBounds(a.labelBounds),s.LabelSettings=a.labelSettings,s.Bounds=this.convertBounds(a.bounds),s.LeaderLength=a.leaderLength,s.LeaderLineExtenstion=a.leaderLineExtension,a.vertexPoints&&a.vertexPoints.length>=1){for(var c=[],d=0;d<a.vertexPoints.length;d++)c.push(this.convertVertexPoints(a.vertexPoints[parseInt(d.toString(),10)]));s.VertexPoints=c}if(s.EnableShapeLabel=a.enableShapeLabel,"Distance calculation"===a.subject||"Perimeter calculation"===a.subject||"Area calculation"===a.subject||"Radius calculation"===a.subject||"Volume calculation"===a.subject){s.AnnotType="shape_measure";var g=a.calibrate;g&&(s.Calibrate={Ratio:g.ratio,X:[{Unit:g.x[0].unit,ConversionFactor:g.x[0].conversionFactor,FractionalType:g.x[0].fractionalType,Denominator:g.x[0].denominator,FormatDenominator:g.x[0].formatDenominator}],Distance:[{Unit:g.distance[0].unit,ConversionFactor:g.distance[0].conversionFactor,FractionalType:g.distance[0].fractionalType,Denominator:g.distance[0].denominator,FormatDenominator:g.distance[0].formatDenominator}],Area:[{Unit:g.area[0].unit,ConversionFactor:g.area[0].conversionFactor,FractionalType:g.area[0].fractionalType,Denominator:g.area[0].denominator,FormatDenominator:g.area[0].formatDenominator}],Angle:null,Volume:null,TargetUnitConversion:g.targetUnitConversion,Depth:g.depth}),s.Indent=a.indent,s.Caption=a.caption,s.CaptionPosition=a.captionPosition,s.LeaderLineExtension=a.leaderLineExtension,s.LeaderLength=a.leaderLength,s.LeaderLineOffset=a.leaderLineOffset,t[a.pageNumber].measureShapeAnnotation.push(s)}else t[a.pageNumber].shapeAnnotation.push(s)}}i.pdfAnnotation=t,this.pdfViewer.importAnnotation(i)}},e.prototype.convertBounds=function(e,t,i){if(e){if(t)return{left:e.left?e.left:e.Left?e.Left:0,right:e.right?e.right:e.Right?e.Right:0,bottom:e.bottom?e.bottom:e.Bottom?e.Bottom:0,top:e.top?e.top:e.Top?e.Top:0};var n=e.x?e.x:e.left?e.left:e.Left?e.Left:0,o=e.y?e.y:e.top?e.top:e.Top?e.Top:0,r=e.width?e.width:e.Width?e.Width:0,a=e.height?e.height:e.Height?e.Height:0;return i?{X:this.ConvertPixelToPoint(n),Y:this.ConvertPixelToPoint(o),Left:this.ConvertPixelToPoint(n),Top:this.ConvertPixelToPoint(o),Height:this.ConvertPixelToPoint(a),Width:this.ConvertPixelToPoint(r)}:{X:n,Y:o,Left:n,Top:o,Height:a,Width:r}}return null},e.prototype.ConvertPixelToPoint=function(e){return.75*e},e.prototype.convertVertexPoints=function(e){if(e){var t=e.x?e.x:e.X?e.X:0,i=e.y?e.y:e.Y?e.Y:0;return{X:t,Y:i,Left:t,Top:i}}},e.prototype.updateComments=function(e,t){if(e&&t){var i={};return i.ShapeAnnotationType=e.shapeAnnotationType,i.Author=t.author,i.AnnotationSelectorSettings=e.annotationSelectorSettings,i.AnnotationSettings=e.annotationSettings,i.PageNumber=e.pageNumber,i.ModifiedDate=t.modifiedDate,i.Subject=e.subject,i.Note=t.note,i.AnnotName=t.annotName,i.Comments=t.comments,i.State=t.review.state,i.StateModel=t.review.stateModel,i.CustomData=e.customData,i.IsLock=t.isLock,i}},e.prototype.removeFocus=function(){if(t.isBlazor()){var e=this.pdfViewer.element.querySelector("#"+this.pdfViewer.element.id+"_totalPage");e&&e.firstElementChild&&e.firstElementChild.firstElementChild&&e.firstElementChild.firstElementChild.blur()}},e.prototype.updateDocumentEditedProperty=function(e){this.pdfViewer.allowServerDataBinding=!0,this.pdfViewer.isDocumentEdited=e,this.pdfViewer.allowServerDataBinding=!1},e.prototype.getWindowDevicePixelRatio=function(){var e=window.devicePixelRatio;return t.Browser.isDevice?e=2:e},e.prototype.getZoomRatio=function(e){var i=this.getZoomFactor(),n=e||1,o=this.getWindowDevicePixelRatio();return!t.Browser.isDevice||t.Browser.isDevice&&i<=.7?n*o:n},e.prototype.importJsonForRotatedDocuments=function(e,t,i,n){var o=Math.abs(e),r=this.pageSize[parseInt(t.toString(),10)];return n!==r.rotation?(o=this.getRotationAngle(n,t),this.isPageRotated=!0):(o=0,this.isPageRotated=!1),1===o?{X:r.width-i.Y-i.Height,Y:i.X,Height:i.Width,Width:i.Height}:2===o?{X:r.width-i.X-i.Width,Y:r.height-i.Y-i.Height,Height:i.Height,Width:i.Width}:3===o?{X:i.Y,Y:r.height-i.X-i.Width,Height:i.Width,Width:i.Height}:i},e.prototype.getRotationAngle=function(e,t){var i=this.pageSize[parseInt(t.toString(),10)];if(0===(e=Math.abs(e)))return i.rotation;if(1===e||90===e){if(0===i.rotation)return 3;if(2===i.rotation)return 1;if(3===i.rotation)return 2}else if(2===e||180===e){if(0===i.rotation)return 2;if(1===i.rotation)return 3;if(3===i.rotation)return 1}else if(3===e||270===e){if(0===i.rotation)return 1;if(2===i.rotation)return 3;if(1===i.rotation)return 2}},e.prototype.calculateVertexPoints=function(e,t,i,n){var o,r,a,s=Math.abs(e),l=[],d=this.pageSize[parseInt(t.toString(),10)];s=n!==d.rotation?this.getRotationAngle(n,t):0;for(var A=0;A<i.length;A++)if(1===s)a={x:o=i[parseInt(A.toString(),10)].Y?d.width-i[parseInt(A.toString(),10)].Y:d.width-i[parseInt(A.toString(),10)].y,y:r=i[parseInt(A.toString(),10)].X?i[parseInt(A.toString(),10)].X:i[parseInt(A.toString(),10)].x},l.push(a);else if(2===s){var h={x:o=i[parseInt(A.toString(),10)].X?d.width-i[parseInt(A.toString(),10)].X:d.width-i[parseInt(A.toString(),10)].x,y:r=i[parseInt(A.toString(),10)].Y?d.height-i[parseInt(A.toString(),10)].Y:d.height-i[parseInt(A.toString(),10)].y};l.push(h)}else if(3===s)a={x:o=i[parseInt(A.toString(),10)].Y?i[parseInt(A.toString(),10)].Y:i[parseInt(A.toString(),10)].y,y:r=i[parseInt(A.toString(),10)].X?d.height-i[parseInt(A.toString(),10)].X:d.height-i[parseInt(A.toString(),10)].x},l.push(a);else{var p={x:o=i[parseInt(A.toString(),10)].X?i[parseInt(A.toString(),10)].X:i[parseInt(A.toString(),10)].x,y:r=i[parseInt(A.toString(),10)].Y?i[parseInt(A.toString(),10)].Y:i[parseInt(A.toString(),10)].y};l.push(p)}return l},e.prototype.isSignaturePathData=function(e){var t=/^(?:(?:\{(?:\s*"[^"]*"\s*:\s*(?:(?:"[^"]*")|(?:\d+)|(?:true|false)|null|(?:\{.*\}|(?:\[[^\]]*\])))\s*,\s*)*(?:\s*"[^"]*"\s*:\s*(?:(?:"[^"]*")|(?:\d+)|(?:true|false)|null|(?:\{.*\}|(?:\[[^\]]*\]))))?\s*\})|(?:\[(?:(?:"[^"]*")|(?:\d+)|(?:true|false)|null|(?:\{.*\}|(?:\[[^\]]*\])))\s*,\s*)*(?:(?:"[^"]*")|(?:\d+)|(?:true|false)|null|(?:\{.*\}|(?:\[[^\]]*\])))?\s*\])$/;return!(!/^([Mm]\s*\d+(\.\d+)?\s*,\s*\d+(\.\d+)?(\s+[Ll]\s*\d+(\.\d+)?\s*,\s*\d+(\.\d+)?)*\s*)+$/.test(e)&&!t.test(e))},e.prototype.isSignatureImageData=function(e){return/^data:image\/([a-z]+);base64,/.test(e)},e.prototype.getSanitizedString=function(e){return e.replace(/[\x00-\x1F\x7F]/g,function(e){return"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")})},e.prototype.getLinkInformation=function(e,t){var i=this.retrieveCurrentZoomFactor();this.pdfViewer.restrictZoomRequest&&!this.pdfViewer.tileRenderingSettings.enableTileRendering&&(i=1);var n=this.documentId+"_"+e,o=this.pageImageDetails&&this.pageImageDetails[n+"_"+i+"_imageUrl"]?this.pageImageDetails[n+"_"+i+"_imageUrl"]:this.getPinchZoomPage(e),r=this.hyperlinkAndLinkAnnotation&&this.hyperlinkAndLinkAnnotation[n+"_hyperlinkAndLinkAnnotation"]?this.hyperlinkAndLinkAnnotation[n+"_hyperlinkAndLinkAnnotation"]:this.getPinchZoomPage(e),a=this.pageTextDetails&&this.pageTextDetails[n+"_textDetails"]?this.pageTextDetails[n+"_textDetails"]:this.getPinchZoomPage(e);if(!o){var s=this.getStoredTileImageDetails(e,0,0,i);s&&(o=s)}var l=null,d=null,A=null,h=null;return o&&r&&(l=JSON.parse(o),d=JSON.parse(r),A=JSON.parse(a),h=Object.assign({},l,d,A),this.isPinchZoomStorage=!1),h},e.prototype.releaseCanvas=function(e){e.width=1,e.height=1;var t=e.getContext("2d");t&&t.clearRect(0,0,1,1)},e.prototype.getModuleWarningMessage=function(e){console.warn("[WARNING] :: Module '"+e+"' is not available in PDF Viewer component! You either misspelled the module name or forgot to load it.")},e.prototype.updateSelectorSettings=function(e){this.pdfViewer.annotationSelectorSettings&&"#FF4081"!==this.pdfViewer.annotationSelectorSettings.resizerFillColor&&(e.resizerFillColor=this.pdfViewer.annotationSelectorSettings.resizerFillColor),this.pdfViewer.annotationSelectorSettings&&"black"!==this.pdfViewer.annotationSelectorSettings.resizerBorderColor&&(e.resizerBorderColor=this.pdfViewer.annotationSelectorSettings.resizerBorderColor),this.pdfViewer.annotationSelectorSettings&&""!==this.pdfViewer.annotationSelectorSettings.selectionBorderColor&&(e.selectionBorderColor=this.pdfViewer.annotationSelectorSettings.selectionBorderColor),this.pdfViewer.annotationSelectorSettings&&8!==this.pdfViewer.annotationSelectorSettings.resizerSize&&(e.resizerSize=this.pdfViewer.annotationSelectorSettings.resizerSize),this.pdfViewer.annotationSelectorSettings&&"Square"!==this.pdfViewer.annotationSelectorSettings.resizerShape&&(e.resizerShape=this.pdfViewer.annotationSelectorSettings.resizerShape),this.pdfViewer.annotationSelectorSettings&&null!==this.pdfViewer.annotationSelectorSettings.resizerCursorType&&(e.resizerCursorType=this.pdfViewer.annotationSelectorSettings.resizerCursorType),this.pdfViewer.annotationSelectorSettings&&1!==this.pdfViewer.annotationSelectorSettings.selectionBorderThickness&&(e.selectionBorderThickness=this.pdfViewer.annotationSelectorSettings.selectionBorderThickness),this.pdfViewer.annotationSelectorSettings&&0!==this.pdfViewer.annotationSelectorSettings.selectorLineDashArray.length&&(e.selectorLineDashArray=this.pdfViewer.annotationSelectorSettings.selectorLineDashArray)},e.prototype.annotationSelectorSettingLoad=function(e){"shape"===e.AnnotationType&&("Line"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.lineSettings.annotationSelectorSettings?this.pdfViewer.lineSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Arrow"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.arrowSettings.annotationSelectorSettings?this.pdfViewer.arrowSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Rectangle"===e.ShapeAnnotationType||"Square"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.rectangleSettings.annotationSelectorSettings?this.pdfViewer.rectangleSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Circle"===e.ShapeAnnotationType||"Ellipse"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.circleSettings.annotationSelectorSettings?this.pdfViewer.circleSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Polygon"===e.ShapeAnnotationType&&(e.AnnotationSelectorSettings=this.pdfViewer.polygonSettings.annotationSelectorSettings?this.pdfViewer.polygonSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings))),"shape_measure"===e.AnnotType&&("Circle"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.radiusSettings.annotationSelectorSettings?this.pdfViewer.radiusSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Line"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.distanceSettings.annotationSelectorSettings?this.pdfViewer.distanceSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Polyline"===e.ShapeAnnotationType?(e.AnnotationSelectorSettings=this.pdfViewer.perimeterSettings.annotationSelectorSettings?this.pdfViewer.perimeterSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Polygon"===e.ShapeAnnotationType&&"PolygonVolume"===e.Indent?(e.AnnotationSelectorSettings=this.pdfViewer.volumeSettings.annotationSelectorSettings?this.pdfViewer.volumeSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)):"Polygon"===e.ShapeAnnotationType&&(e.AnnotationSelectorSettings=this.pdfViewer.areaSettings.annotationSelectorSettings?this.pdfViewer.areaSettings.annotationSelectorSettings:this.pdfViewer.annotationSelectorSettings,this.updateSelectorSettings(e.AnnotationSelectorSettings)))},e.prototype.boundsCalculation=function(e,i){if(t.isNullOrUndefined(e)&&t.isNullOrUndefined(i.x)&&t.isNullOrUndefined(i.y)&&t.isNullOrUndefined(i.width)&&t.isNullOrUndefined(i.height)&&t.isNullOrUndefined(i)&&t.isNullOrUndefined(i.x)&&t.isNullOrUndefined(i.y)&&t.isNullOrUndefined(i.height)&&t.isNullOrUndefined(i.width))return!1;var n=parseFloat(i.x.toFixed(10)),o=parseFloat(i.y.toFixed(10)),r=parseFloat(i.width.toFixed(10)),a=parseFloat(i.height.toFixed(10)),s=e.x?parseFloat(e.x.toFixed(10)):parseFloat(e.left.toFixed(10)),l=e.y?parseFloat(e.y.toFixed(10)):parseFloat(e.top.toFixed(10)),d=parseFloat(e.width.toFixed(10)),A=parseFloat(e.height.toFixed(10));return n!==s||o!==l||r!==d||a!==A},e.sessionStorageManager=new Di(!1),e}(),Ti=function(){function e(e,t){this.textBoundsArray=[],this.characterBound=[],this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.addTextLayer=function(e,i,n,o){var r;return document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e)||((r=t.createElement("div",{id:this.pdfViewer.element.id+"_textLayer_"+e,className:"e-pv-text-layer"})).style.width=i+"px",r.style.height=n+"px",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&r.classList.add("e-pv-text-selection-none"),o&&o.appendChild(r)),this.pdfViewerBase.applyElementStyles(r,e),r},e.prototype.renderTextContents=function(e,i,n,o,r){var a,s=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e),l=t.createElement("canvas");this.pdfViewerBase.clientSideRendering&&(a=!1);var d,A,h=[],p=[];n.length>1&&(0===n[0].Width&&n.length>2?(d=n[1].Y,A=n[1].Height):(d=n[0].Y,A=n[0].Height));var c=0;if(l&&s&&0===s.childNodes.length){for(var g=0;g<i.length;g++)if(i[parseInt(g.toString(),10)].includes("\r\n")||i[parseInt(g.toString(),10)].includes("�")||g===n.length-1||0!==o||r){h.push(n[parseInt(g.toString(),10)]),p.push(i[parseInt(g.toString(),10)]),d>n[parseInt(g.toString(),10)].Y&&0!==n[parseInt(g.toString(),10)].Width&&(d=n[parseInt(g.toString(),10)].Y),A<n[parseInt(g.toString(),10)].Height&&0!==n[parseInt(g.toString(),10)].Width&&(A=n[parseInt(g.toString(),10)].Height);for(var u=0;u<h.length;u++){var f=h[parseInt(u.toString(),10)],m=t.createElement("div",{id:this.pdfViewer.element.id+"_text_"+e+"_"+c,className:"e-pv-text",attrs:{tabindex:"-1"}}),w=p[parseInt(u.toString(),10)];" "===w&&u!==h.length-1&&0!==u&&(f.Height=h[u-1].Height,f.Y=h[u-1].Y),m.textContent=w.replace(/&nbsp;/g," ")," "!==p[parseInt(u.toString(),10)].replace(/  +/g," ")&&(m.style.whiteSpace="pre"),this.pdfViewerBase.clientSideRendering&&(" "===w&&(m.style.whiteSpace="pre"),t.isNullOrUndefined(m.textContent)||" "===w?m.style.direction=a?"rtl":"ltr":(a=this.pdfViewerBase.checkIsRtlText(m.textContent),m.style.direction=a?"rtl":"ltr")),0===f.Width&&u!==h.length-1&&0!==u&&h[u+1].X-(h[u-1].X+h[u-1].Width)<30&&!p[u-1].includes("\r\n")&&!i[parseInt(u.toString(),10)].includes("�")&&(f.Width=h[u+1].X-(h[u-1].X+h[u-1].Width),f.X=h[u-1].X+h[u-1].Width,f.Width<0?f.Width=0:m.style.whiteSpace="pre"),(0!==u||h.length-1==0||f.Y-d>20&&0!==f.Width)&&0!==c&&(n[c-1].Y-n[parseInt(c.toString(),10)].Y>11||n[parseInt(c.toString(),10)].Y-n[c-1].Y>11)&&" "!==p[parseInt(u.toString(),10)]&&(d=h[parseInt(u.toString(),10)].Y,A=h[parseInt(u.toString(),10)].Height),f&&(270!==f.Rotation&&(f.Y=d,f.Height=A),this.setStyleToTextDiv(m,f.X,f.Y,f.Bottom,f.Width,f.Height,f.Rotation)),this.setTextElementProperties(m);var C=l.getContext("2d");C.font=m.style.fontSize+" "+m.style.fontFamily;var B=C.measureText(p[parseInt(u.toString(),10)].replace(/(\r\n|\n|\r)/gm,"")).width;if(f){var S=void 0;S=90===f.Rotation||this.pdfViewerBase.clientSideRendering&&270===f.Rotation?f.Height*this.pdfViewerBase.getZoomFactor()/B:f.Width*this.pdfViewerBase.getZoomFactor()/B,this.applyTextRotation(S,m,o,f.Rotation,f)}s.appendChild(m),this.resizeExcessDiv(s,m),this.pdfViewer.textSelectionModule&&this.pdfViewer.enableTextSelection&&!this.pdfViewerBase.isTextSelectionDisabled&&"e-pdfviewer-formFields"!==m.className&&"e-pdfviewer-signatureformfields"!==m.className&&"e-pdfviewer-signatureformfields-signature"!==m.className&&m.classList.add("e-pv-cursor"),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&m.classList.add("e-enable-text-selection"),c++}h=[],p=[],g<n.length-1&&(0!==n[g+1].Width||t.isNullOrUndefined(n[g+2])?(d=n[g+1].Y,A=n[g+1].Height):(d=n[g+2].Y,A=n[g+2].Height))}else h.push(n[parseInt(g.toString(),10)]),p.push(i[parseInt(g.toString(),10)]),d>n[parseInt(g.toString(),10)].Y&&0!==n[parseInt(g.toString(),10)].Width&&(d=n[parseInt(g.toString(),10)].Y),A<n[parseInt(g.toString(),10)].Height&&0!==n[parseInt(g.toString(),10)].Width&&(A=n[parseInt(g.toString(),10)].Height);this.pdfViewerBase.releaseCanvas(l)}},e.prototype.resizeTextContents=function(e,i,n,o,r){var a=this.pdfViewerBase.getElement("_textLayer_"+e),s=t.createElement("canvas");if(s){for(var l=0;l<a.childNodes.length;l++){var d=void 0,A=this.pdfViewerBase.getElement("_text_"+e+"_"+l);if(t.isNullOrUndefined(A))break;n&&(d=n[parseInt(l.toString(),10)])&&this.setStyleToTextDiv(A,d.X,d.Y,d.Bottom,d.Width,d.Height,d.Rotation),this.setTextElementProperties(A);var h=s.getContext("2d");h.font=A.style.fontSize+" "+A.style.fontFamily;var p=void 0;if(i){var c=i[parseInt(l.toString(),10)];c&&(p=h.measureText(c.replace(/(\r\n|\n|\r)/gm,"")).width)}else p=h.measureText(A.textContent.replace(/(\r\n|\n|\r)/gm,"")).width;if(d){var g=void 0;g=90===d.Rotation||this.pdfViewerBase.clientSideRendering&&270===d.Rotation?d.Height*this.pdfViewerBase.getZoomFactor()/p:d.Width*this.pdfViewerBase.getZoomFactor()/p,this.applyTextRotation(g,A,o,d.Rotation,d)}this.resizeExcessDiv(a,A)}this.pdfViewerBase.releaseCanvas(s)}else a.parentElement.removeChild(a);this.pdfViewer.textSearch&&(r||this.pdfViewer.textSearch.resizeSearchElements(e))},e.prototype.destroy=function(){this.textBoundsArray=null,this.characterBound=null},e.prototype.applyTextRotation=function(e,t,i,n,o){var r="scaleX("+e+")";if(this.pdfViewerBase.clientSideRendering){if(0===i)0===n?t.style.transform=r:90===n?(t.style.left=(o.X+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=o.Y*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+n+"deg) "+r):180===n?(t.style.left=(o.X+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y+o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+n+"deg) "+r):270===n?(t.style.left=o.X*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y+o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+n+"deg) "+r):t.style.transform=r;else if(1===i)(a=n+90)>=360&&(a-=360),0===n?t.style.transform="rotate(90deg) "+r:90===n?(t.style.left=o.X*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):180===n?(t.style.left=(o.X-o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):270===n?(t.style.left=(o.X-o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=o.Y*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):t.style.transform="rotate(90deg) "+r;else if(2===i)(a=n+180)>=360&&(a-=360),0===n?t.style.transform="rotate(180deg) "+r:90===n?(t.style.left=(o.X-o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=o.Y*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):180===n?(t.style.left=(o.X-o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y-o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):270===n?(t.style.left=o.X*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y-o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):t.style.transform="rotate(180deg) "+r;else if(3===i){var a=n+270;a>=360&&(a-=360),0===n?t.style.transform="rotate(270deg) "+r:90===n?(t.style.left=o.X*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y-o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):180===n?(t.style.left=(o.X+o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y-o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):270===n?(t.style.left=(o.X+o.Height)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=o.Y*this.pdfViewerBase.getZoomFactor()+"px",t.style.transform="rotate("+a+"deg) "+r):t.style.transform="rotate(270deg) "+r}}else 0===i?n>=0&&n<90?t.style.transform=r:90===n||270===n?(270===n?(t.style.left=o.X*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=(o.Y+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.height=o.Height*this.pdfViewerBase.getZoomFactor()+"px",t.style.fontSize=o.Height*this.pdfViewerBase.getZoomFactor()+"px"):(t.style.left=(o.X+o.Width)*this.pdfViewerBase.getZoomFactor()+"px",t.style.top=o.Y*this.pdfViewerBase.getZoomFactor()+"px",t.style.height=o.Width*this.pdfViewerBase.getZoomFactor()+"px",t.style.fontSize=o.Width*this.pdfViewerBase.getZoomFactor()+"px",t.style.transformOrigin="0% 0%"),t.style.transform="rotate("+n+"deg) "+r):t.style.transform="rotate("+n+"deg) "+r:1===i?0===n?t.style.transform="rotate(90deg) "+r:-90===n?t.style.transform=r:(n+=90,t.style.transform="rotate("+n+"deg) "+r):2===i?t.style.transform=0===n?"rotate(180deg) "+r:180===n?r:"rotate("+n+"deg) "+r:3===i&&(t.style.transform=0===n?"rotate(-90deg) "+r:90===n?r:"rotate("+n+"deg) "+r)},e.prototype.setTextElementProperties=function(e){e.style.fontFamily="serif",e.style.transformOrigin=this.pdfViewerBase.clientSideRendering?"0% 0%":"0%"},e.prototype.resizeTextContentsOnZoom=function(e){var t,i=Fi.sessionStorageManager.getItem(this.pdfViewerBase.getDocumentId()+"_"+e+"_"+this.getPreviousZoomFactor()),n=[],o=[];if(i){var r=JSON.parse(i);n=r.textBounds,o=r.textContent,t=r.rotation}if(0!==n.length)this.textBoundsArray.push({pageNumber:e,textBounds:n}),this.resizeTextContents(e,o,n,t);else{var a=this.textBoundsArray.filter(function(t){return t.pageNumber===e});a&&0!==a.length&&(n=a[0].textBounds,this.resizeTextContents(e,null,n,t))}},e.prototype.resizeExcessDiv=function(e,t){},e.prototype.clearTextLayers=function(e){var t=this.pdfViewerBase.currentPageNumber-3;t=t>0?t:0;var i=this.pdfViewerBase.currentPageNumber+1;i=i<this.pdfViewerBase.pageCount?i:this.pdfViewerBase.pageCount-1;for(var n=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_textLayer_"]'),o=0;o<n.length;o++)if(n[parseInt(o.toString(),10)].style.display="block",this.pdfViewerBase.getMagnified()&&(this.getTextSelectionStatus()||this.getTextSearchStatus())){var r=parseInt(n[parseInt(o.toString(),10)].id.split("_textLayer_")[1],10);t+1<=r&&r<=i-1||this.removeElement(n[parseInt(o.toString(),10)],e)}else this.pdfViewerBase.getPinchZoomed(),this.removeElement(n[parseInt(o.toString(),10)],e)},e.prototype.removeElement=function(e,i){i?this.removeForeignObjects(e):t.Browser.isIE?e.parentElement?e.parentElement.removeChild(e):e.parentNode&&e.parentNode.removeChild(e):e.remove()},e.prototype.removeForeignObjects=function(e){var i=e.getElementsByClassName("foreign-object");if(i)for(var n=0;n<i.length;n++){var o=i[parseInt(n.toString(),10)],r=o.parentElement;if(t.Browser.isDevice){if(r.classList.contains("e-pv-text-layer")&&"e-pv-checkbox-outer-div"!==r.className)e.removeChild(o),n--;else if("e-pv-checkbox-outer-div"===r.className){var a=document.getElementById(o.id);a&&(a.remove(),n--)}}else"e-pv-text-layer"===r.className&&(e.removeChild(o),n--)}},e.prototype.convertToSpan=function(e,i,n,o,r,a,s){var l=this.pdfViewerBase.getElement("_text_"+e+"_"+i),d=r.substring(n,o),A=document.createTextNode(d);if(a){var h=t.createElement("span");if(h.className=a+" e-pv-text",this.pdfViewerBase.clientSideRendering&&s)if(o===r.length)h.style.left="0px",h.style.top="0px";else if("rtl"===l.style.direction){var p=l.textContent;l.textContent=r.substring(o,r.length);var c=l.getBoundingClientRect();h.style.left=c.width+"px",h.style.top="0px",l.textContent=p}h.style.height=l.style.height,h.appendChild(A),l.appendChild(h)}else l.appendChild(A)},e.prototype.applySpanForSelection=function(e,t,i,n,o,r){if(this.pdfViewer.textSelectionModule)for(var a=e;a<=t;a++){var s=void 0;if(this.pdfViewerBase.clientSideRendering){var l=JSON.parse(this.pdfViewerBase.pageTextDetails[this.pdfViewerBase.documentId+"_"+a+"_textDetails"]).pageText;s=this.pdfViewerBase.checkIsRtlText(l)}var d=void 0,A=void 0,h=this.pdfViewerBase.getElement("_textLayer_"+a).childNodes;a===e?(d=i,A=h.length-1):a===t?(d=0,A=n):(d=0,A=h.length-1),e===t&&(d=i,A=n);for(var p=d;p<=A;p++){var c=this.pdfViewerBase.getElement("_text_"+a+"_"+p),g=void 0,u=void 0,f=void 0;if(c&&c.textContent){f=c.textContent.length;var m=c.textContent;c.textContent="",p===d?(g=a===e?o:0,u=f,this.convertToSpan(a,p,0,g,m,null,s)):p===A&&a===t?(g=0,u=r):(g=0,u=f),d===A&&e===t&&(g=o,u=r),this.convertToSpan(a,p,g,u,m,"e-pv-maintaincontent",s),p===A&&a===t&&this.convertToSpan(a,p,u,m.length,m,null,s)}}}},e.prototype.clearDivSelection=function(){for(var e=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_textLayer_"]'),t=0;t<e.length;t++)for(var i=e[parseInt(t.toString(),10)].childNodes,n=0;n<i.length;n++){var o=i[parseInt(n.toString(),10)];if("e-pdfviewer-formFields"!==o.className&&"e-pdfviewer-signatureformfields"!==o.className&&"e-pdfviewer-signatureformfields-signature"!==o.className){var r=o.textContent;(o.childNodes.length>1||1===o.childNodes.length&&"SPAN"===o.childNodes[0].tagName)&&(o.textContent="",o.textContent=r)}}},e.prototype.setStyleToTextDiv=function(e,t,i,n,o,r,a){e.style.left=t*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=i*this.pdfViewerBase.getZoomFactor()+"px";var s;s=90===a||this.pdfViewerBase.clientSideRendering&&270===a?o*this.pdfViewerBase.getZoomFactor():r*this.pdfViewerBase.getZoomFactor(),e.style.height=s+"px",e.style.fontSize=s+"px"},e.prototype.getTextSelectionStatus=function(){return!!this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.isTextSelection},e.prototype.modifyTextCursor=function(e){for(var t=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_textLayer_"]'),i=0;i<t.length;i++)for(var n=t[parseInt(i.toString(),10)].childNodes,o=0;o<n.length;o++){var r=n[parseInt(o.toString(),10)];e&&"e-pdfviewer-formFields"!==r.className&&"e-pdfviewer-signatureformfields"!==r.className&&"e-pdfviewer-signatureformfields-signature"!==r.className?r.classList.add("e-pv-cursor"):r.classList.remove("e-pv-cursor")}},e.prototype.isBackWardSelection=function(e){var t=e.anchorNode.compareDocumentPosition(e.focusNode),i=!1;return(!t&&e.anchorOffset>e.focusOffset||t===Node.DOCUMENT_POSITION_PRECEDING)&&(i=!0),i},e.prototype.getPageIndex=function(e){var t=e.parentElement;return t||(t=e.parentNode),"e-pv-text-layer"===t.className?parseInt(e.id.split("_text_")[1],10):parseInt(t.id.split("_text_")[1],10)},e.prototype.getTextIndex=function(e,t){var i=e.parentElement;return i||(i=e.parentNode),"e-pv-text-layer"===i.className?parseInt(e.id.split("_text_"+t+"_")[1],10):parseInt(i.id.split("_text_"+t+"_")[1],10)},e.prototype.getPreviousZoomFactor=function(){return this.pdfViewer.magnificationModule?this.pdfViewer.magnificationModule.previousZoomFactor:1},e.prototype.getTextSearchStatus=function(){return!!this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.isTextSearch},e}(),ki=function(){function i(e,t){this.copyContextMenu=[],this.contextMenuList=[],this.customMenuItems=[],this.filteredCustomItemsIds=[],this.defaultContextMenuItems=[],this.pdfViewer=e,this.pdfViewerBase=t,this.defaultCutId=this.pdfViewer.element.id+"_contextmenu_cut",this.defaultCopyId=this.pdfViewer.element.id+"_contextmenu_copy",this.defaultPasteId=this.pdfViewer.element.id+"_contextmenu_paste",this.defaultDeleteId=this.pdfViewer.element.id+"_contextmenu_delete",this.defaultCommentId=this.pdfViewer.element.id+"_contextmenu_comment",this.defaultUnderlineId=this.pdfViewer.element.id+"_contextmenu_underline",this.defaultHighlightId=this.pdfViewer.element.id+"_contextmenu_highlight",this.defaultStrikethroughId=this.pdfViewer.element.id+"_contextmenu_strikethrough",this.defaultSquigglyId=this.pdfViewer.element.id+"_contextmenu_squiggly",this.defaultScaleratioId=this.pdfViewer.element.id+"_contextmenu_scaleratio",this.defaultPropertiesId=this.pdfViewer.element.id+"_contextmenu_properties",this.copyContextMenu=[{text:this.pdfViewer.localeObj.getConstant("Cut"),iconCss:"e-pv-cut-icon",id:this.defaultCutId},{text:this.pdfViewer.localeObj.getConstant("Copy"),iconCss:"e-pv-copy-icon",id:this.defaultCopyId},{text:this.pdfViewer.localeObj.getConstant("Highlight context"),iconCss:"e-pv-highlight-icon",id:this.defaultHighlightId},{text:this.pdfViewer.localeObj.getConstant("Underline context"),iconCss:"e-pv-underline-icon",id:this.defaultUnderlineId},{text:this.pdfViewer.localeObj.getConstant("Strikethrough context"),iconCss:"e-pv-strikethrough-icon",id:this.defaultStrikethroughId},{text:this.pdfViewer.localeObj.getConstant("Squiggly context"),iconCss:"e-pv-squiggly-icon",id:this.defaultSquigglyId},{text:this.pdfViewer.localeObj.getConstant("Paste"),iconCss:"e-pv-paste-icon",id:this.defaultPasteId},{text:this.pdfViewer.localeObj.getConstant("Delete Context"),iconCss:"e-pv-delete-icon",id:this.defaultDeleteId},{text:this.pdfViewer.localeObj.getConstant("Scale Ratio"),iconCss:"e-pv-scale-ratio-icon",id:this.defaultScaleratioId},{separator:!0,id:this.pdfViewer.element.id+"_context_menu_comment_separator"},{text:this.pdfViewer.localeObj.getConstant("Comment"),iconCss:"e-pv-comment-icon",id:this.defaultCommentId},{separator:!0,id:this.pdfViewer.element.id+"_context_menu_separator"},{text:this.pdfViewer.localeObj.getConstant("Properties"),iconCss:"e-pv-property-icon",id:this.defaultPropertiesId}],this.defaultLength=this.copyContextMenu.length}return i.prototype.createContextMenu=function(){this.contextMenuElement=t.createElement("ul",{id:this.pdfViewer.element.id+"_context_menu",className:"e-pv-context-menu"}),this.pdfViewer.element.appendChild(this.contextMenuElement),this.contextMenuObj=new s.ContextMenu({target:"#"+this.pdfViewerBase.viewerContainer.id,items:this.copyContextMenu,beforeOpen:this.contextMenuOnBeforeOpen.bind(this),select:this.onMenuItemSelect.bind(this),created:this.contextMenuOnCreated.bind(this)}),this.pdfViewer.enableRtl&&(this.contextMenuObj.enableRtl=!0),this.contextMenuObj.appendTo(this.contextMenuElement),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.contextMenuObj.animationSettings.effect="ZoomIn":this.contextMenuObj.animationSettings.effect="SlideDown"},i.prototype.contextMenuOnCreated=function(e){var t=[this.defaultHighlightId,this.defaultUnderlineId,this.defaultStrikethroughId,this.defaultSquigglyId];this.pdfViewer.annotationModule?this.pdfViewer.annotationModule.textMarkupAnnotationModule||this.contextMenuObj.enableItems(t,!1,!0):this.contextMenuObj.enableItems(t,!1,!0)},i.prototype.setTarget=function(e){var t=null;return e.event&&e.event.target&&(t=e.event.target,this.currentTarget=t),t},i.prototype.contextMenuOnBeforeOpen=function(e){var i,n=this;this.pdfViewerBase.preventContextmenu&&(e.cancel=!0),this.copyContextMenu.length===this.defaultLength?((i=this.customMenuItems).push.apply(i,this.pdfViewer.customContextMenuItems),this.addCustomContextMenuItems()):this.copyContextMenu.length!==this.defaultLength&&this.copyShowCustomContextMenuBottom!==this.pdfViewer.showCustomContextMenuBottom&&(this.customMenuItems.forEach(function(e){var t=n.copyContextMenu.findIndex(function(t){return t.id===e.id});-1!==t&&n.copyContextMenu.splice(t,1)}),this.addCustomContextMenuItems());var o=this.setTarget(e),r=0!==this.pdfViewer.selectedItems.annotations.length?this.pdfViewer.selectedItems.annotations[0].annotationSettings:null;this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule.isInuptBoxInFocus&&o&&"free-text-input"===o.className&&"TEXTAREA"===o.tagName&&(this.pdfViewerBase.isFreeTextContextMenu=!0),this.defaultContextMenuItems=[this.pdfViewer.localeObj.getConstant("Cut"),this.pdfViewer.localeObj.getConstant("Copy"),this.pdfViewer.localeObj.getConstant("Highlight context"),this.pdfViewer.localeObj.getConstant("Underline context"),this.pdfViewer.localeObj.getConstant("Strikethrough context"),this.pdfViewer.localeObj.getConstant("Squiggly context"),this.pdfViewer.localeObj.getConstant("Paste"),this.pdfViewer.localeObj.getConstant("Delete Context"),this.pdfViewer.localeObj.getConstant("Scale Ratio"),this.pdfViewer.localeObj.getConstant("Comment"),this.pdfViewer.localeObj.getConstant("Properties")];var a=this.customMenuItems.length>0?this.contextMenuObj.items.slice(this.pdfViewer.showCustomContextMenuBottom?-this.customMenuItems.length:0,this.pdfViewer.showCustomContextMenuBottom?this.contextMenuObj.items.length:this.customMenuItems.length).map(function(e){return e.text}):[];if(this.contextMenuObj.showItems(this.pdfViewer.showCustomContextMenuBottom?this.defaultContextMenuItems.concat(a):a.concat(this.defaultContextMenuItems)),this.pdfViewerBase.getElement("_context_menu_separator").classList.remove("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.remove("e-menu-hide"),this.contextMenuObj.enableItems([this.defaultCutId,this.defaultCopyId,this.defaultPasteId,this.defaultDeleteId],!0,!0),!t.isNullOrUndefined(a)&&0!==this.customMenuItems.length){var s=[];s=e.items.length<this.defaultLength?e.items.map(function(e){return e.id}):this.customMenuItems.map(function(e){return e.id}),this.filteredCustomItemsIds=s.filter(function(e){return!t.isNullOrUndefined(e)}),this.pdfViewer.firecustomContextMenuBeforeOpen(this.filteredCustomItemsIds)}if(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.checkContextMenuDeleteItem(this.contextMenuObj),this.pdfViewer.textSelectionModule||this.pdfViewerBase.isShapeBasedAnnotationsEnabled()){if(e.event||this.pdfViewerBase.isTouchDesignerMode){var l=this.pdfViewerBase.isClickWithinSelectionBounds(e.event);if(this.pdfViewerBase.isFreeTextContextMenu)this.contextMenuObj.hideItems([this.defaultHighlightId,this.defaultUnderlineId,this.defaultStrikethroughId,this.defaultSquigglyId,this.defaultPropertiesId,this.defaultCommentId,this.defaultScaleratioId,this.defaultDeleteId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide"),this.pdfViewer.annotation.freeTextAnnotationModule&&this.pdfViewer.annotation.freeTextAnnotationModule.isTextSelected?(this.contextMenuObj.enableItems([this.defaultCopyId],!0,!0),this.contextMenuObj.enableItems([this.defaultCutId],!0,!0)):(this.contextMenuObj.enableItems([this.defaultCopyId],!1,!0),this.contextMenuObj.enableItems([this.defaultCutId],!1,!0),window.getSelection().removeAllRanges()),this.pdfViewer.annotation.freeTextAnnotationModule&&""!==this.pdfViewer.annotation.freeTextAnnotationModule.selectedText?this.contextMenuObj.enableItems([this.defaultPasteId],!0,!0):this.contextMenuObj.enableItems([this.defaultPasteId],!1,!0);else if(l&&this.pdfViewer.textSelectionModule||this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.selectionRangeArray.length>0&&"MouseUp"===this.pdfViewer.contextMenuSettings.contextMenuAction)!e.event.target.classList.contains("e-pv-maintaincontent")&&e.event.target.classList.contains("e-pv-text")||e.event.target.classList.contains("e-pv-text-layer")?this.pdfViewerBase.checkIsNormalText()&&(e.cancel=!0):(t.Browser.isIE||"edge"===t.Browser.info.name)&&e.event.target.classList.contains("e-pv-page-container")&&(e.cancel=!0),this.contextMenuObj.hideItems([this.defaultCutId,this.defaultPasteId,this.defaultDeleteId,this.defaultScaleratioId,this.defaultCommentId,this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide");else if(0===this.pdfViewer.selectedItems.annotations.length||"HandWrittenSignature"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"SignatureImage"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Path"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType)if(0===this.pdfViewer.selectedItems.annotations.length||"Path"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||r.isLock)if(0!==this.pdfViewer.selectedItems.annotations.length&&"Path"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&r.isLock)this.hideDefaultContextMenu();else if(0!==this.pdfViewer.selectedItems.formFields.length&&this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&this.pdfViewer.designerMode)this.onOpeningForShape(!0),t.isNullOrUndefined(this.pdfViewer.toolbar)||t.isNullOrUndefined(this.pdfViewer.toolbar.formDesignerToolbarModule)||this.pdfViewer.toolbar.formDesignerToolbarModule.showHideDeleteIcon(!0);else if(0!==this.customMenuItems.length&&this.pdfViewer.annotation.isShapeCopied&&0===this.pdfViewer.selectedItems.annotations.length&&this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.onOpeningForShape(!1);else{var d=this.pdfViewerBase.designerModetarget,A=this.pdfViewer.annotationModule;e.event&&e.event.target&&(d=e.event.target),this.pdfViewer.annotation&&this.pdfViewer.annotation.isShapeCopied&&(d.classList.contains("e-pv-text-layer")||d.classList.contains("e-pv-text")||d.classList.contains("e-pv-viewer-container"))&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.onOpeningForShape(!1):this.pdfViewer.formDesigner&&this.pdfViewer.formDesigner.isShapeCopied&&(d.classList.contains("e-pv-text-layer")||d.classList.contains("e-pv-text"))?this.onOpeningForShape(!1):this.pdfViewerBase.isCalibrateAnnotationModule()&&this.pdfViewer.annotationModule.measureAnnotationModule.currentAnnotationMode&&!r?(this.contextMenuObj.hideItems([this.defaultHighlightId,this.defaultUnderlineId,this.defaultStrikethroughId,this.defaultSquigglyId,this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.remove("e-menu-hide"),this.contextMenuObj.enableItems([this.defaultCutId,this.defaultCopyId,this.defaultPasteId,this.defaultDeleteId,this.defaultCommentId],!1,!0)):A&&A.textMarkupAnnotationModule&&A.textMarkupAnnotationModule.currentTextMarkupAnnotation&&!A.textMarkupAnnotationModule.currentTextMarkupAnnotation.annotationSettings.isLock?(this.contextMenuObj.hideItems([this.defaultHighlightId,this.defaultUnderlineId,this.defaultStrikethroughId,this.defaultSquigglyId,this.defaultPropertiesId,this.defaultCutId,this.defaultCopyId,this.defaultPasteId,this.defaultScaleratioId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.remove("e-menu-hide"),this.contextMenuObj.showItems([this.defaultDeleteId,this.defaultCommentId],!0)):e.items&&e.items.length>0&&this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.isTextSelection&&l?(this.contextMenuObj.hideItems([this.defaultCutId,this.defaultPasteId,this.defaultDeleteId,this.defaultScaleratioId,this.defaultCommentId,this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")):e.cancel=!0}else this.onOpeningForShape(!0);else this.onOpeningForShape(!1,!0)}else this.pdfViewer.textSelectionModule&&"MouseUp"===this.pdfViewer.contextMenuOption?(this.contextMenuObj.hideItems([this.defaultCutId,this.defaultPasteId,this.defaultDeleteId,this.defaultScaleratioId,this.defaultCommentId,this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")):this.hideContextItems();this.enableCommentPanelItem()}else e.cancel=!0;"None"===this.pdfViewer.contextMenuOption?e.cancel=!0:this.contextMenuItems(e),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.restrictContextMenu()&&(e.cancel=!0),!0===this.pdfViewer.disableDefaultContextMenu&&this.hideDefaultContextMenu(),this.pdfViewerBase.isTouchDesignerMode=!1},i.prototype.contextMenuItems=function(t){if(this.pdfViewer.contextMenuSettings.contextMenuItems.length){for(var i=[],n=(this.contextMenuCollection(),this.contextMenuObj.getRootElement()),o=0;o<this.pdfViewer.contextMenuSettings.contextMenuItems.length;o++)for(var r=0;r<this.contextMenuList.length;r++){var a=this.contextMenuList[parseInt(r.toString(),10)].text;switch(a){case"Highlight":a="Highlight context";break;case"Underline":a="Underline context";break;case"Strikethrough":a="Strikethrough context";break;case"Squiggly":a="Squiggly context";break;case"Delete":a="Delete Context";break;case"Scale Ratio":a="Scale Ratio";break;case"Comment":this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide");break;case"Properties":this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide")}var s=this.contextMenuList[parseInt(r.toString(),10)].text;if(0===o&&s!==e.ContextMenuItem[this.pdfViewer.contextMenuSettings.contextMenuItems[parseInt(o.toString(),10)]]&&i.push(s),o>0&&s===e.ContextMenuItem[this.pdfViewer.contextMenuSettings.contextMenuItems[parseInt(o.toString(),10)]])for(var l=0;l<i.length;l++)if(i[parseInt(l.toString(),10)]===s)if(this.pdfViewer.disableContextMenuItems&&this.pdfViewer.disableContextMenuItems.length>0){for(var d=!1,A=0;A<this.pdfViewer.disableContextMenuItems.length;A++)i[parseInt(l.toString(),10)]===e.ContextMenuItem[this.pdfViewer.disableContextMenuItems[parseInt(A.toString(),10)]]&&(d=!0);d||i.splice(l,1)}else i.splice(l,1)}var h=this.processLocaleContent(i);this.contextMenuObj.hideItems(h),0===this.getEnabledItemCount(n)&&(t.cancel=!0)}},i.prototype.processLocaleContent=function(e){var t=[];if(e.length>0)for(var i=0;i<e.length;i++){var n=e[parseInt(i.toString(),10)];switch(n){case"Highlight":n="Highlight context";break;case"Underline":n="Underline context";break;case"Strikethrough":n="Strikethrough context";break;case"Squiggly":n="Squiggly context";break;case"Delete":n="Delete Context";break;case"ScaleRatio":n="Scale Ratio"}t.push(this.pdfViewer.localeObj.getConstant(n))}return t},i.prototype.contextMenuCollection=function(){return this.contextMenuList=[{text:"Cut"},{text:"Copy"},{text:"Highlight"},{text:"Underline"},{text:"Strikethrough"},{text:"Squiggly"},{text:"Paste"},{text:"Delete"},{text:"ScaleRatio"},{text:"Comment"},{text:"Properties"}]},i.prototype.getEnabledItemCount=function(e){for(var t=this.copyContextMenu.length,i=e.children,n=0;n<i.length;n++){var o=i[parseInt(n.toString(),10)];(o.classList.contains("e-menu-hide")||o.classList.contains("e-disabled"))&&(t-=1)}return t},i.prototype.hideContextItems=function(){0===this.pdfViewer.selectedItems.annotations.length&&(this.contextMenuObj.hideItems([this.defaultCutId,this.defaultPasteId,this.defaultDeleteId,this.defaultScaleratioId,this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"))},i.prototype.enableCommentPanelItem=function(){this.pdfViewer.enableCommentPanel?this.contextMenuObj.enableItems([this.defaultCommentId],!0,!0):this.contextMenuObj.enableItems([this.defaultCommentId],!1,!0),0!==this.pdfViewer.selectedItems.formFields.length&&this.contextMenuObj.enableItems([this.defaultCommentId],!1,!0)},i.prototype.onOpeningForShape=function(e,i){this.pdfViewer.annotation&&this.pdfViewer.annotation.isShapeCopied?this.contextMenuObj.enableItems([this.defaultPasteId],!0,!0):this.pdfViewer.formDesigner&&this.pdfViewer.formDesigner.isShapeCopied?this.contextMenuObj.enableItems([this.defaultPasteId],!0,!0):this.contextMenuObj.enableItems([this.defaultPasteId],!1,!0),this.contextMenuObj.hideItems([this.defaultHighlightId,this.defaultUnderlineId,this.defaultStrikethroughId,this.defaultSquigglyId,this.defaultScaleratioId],!0),e?0===this.pdfViewer.selectedItems.annotations.length||"Distance"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Perimeter"!==this.pdfViewer.selectedItems.annotations[0].measureType&&"Perimeter calculation"!==this.pdfViewer.selectedItems.annotations[0].subject&&"Polygon"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"Radius"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?0===this.pdfViewer.selectedItems.annotations.length||"Line"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&"LineWidthArrowHead"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?0!==this.pdfViewer.selectedItems.formFields.length&&this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?(this.contextMenuObj.hideItems([this.defaultCommentId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.contextMenuObj.showItems([this.defaultPropertiesId],!0)):t.isNullOrUndefined(i)&&"Image"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&!this.pdfViewer.selectedItems.annotations[0].id.startsWith("stamp")?(this.contextMenuObj.hideItems([this.defaultPropertiesId,this.defaultCommentId,this.defaultCutId,this.defaultCopyId,this.defaultPasteId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")):(this.contextMenuObj.hideItems([this.defaultPropertiesId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide")):this.contextMenuObj.showItems([this.defaultPropertiesId],!0):this.contextMenuObj.showItems([this.defaultPropertiesId,this.defaultScaleratioId],!0):i?"SignatureField"===this.pdfViewer.selectedItems.annotations[0].annotName||"InitialField"===this.pdfViewer.selectedItems.annotations[0].annotName||"SignatureText"===this.pdfViewer.selectedItems.annotations[0].annotName?(this.contextMenuObj.hideItems([this.defaultPropertiesId,this.defaultCommentId,this.defaultCutId,this.defaultCopyId,this.defaultPasteId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")):(this.contextMenuObj.hideItems([this.defaultPropertiesId,this.defaultCommentId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")):(this.contextMenuObj.hideItems([this.defaultCutId,this.defaultCopyId,this.defaultDeleteId,this.defaultPropertiesId,this.defaultCommentId],!0),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide"))},i.prototype.OnItemSelected=function(e){this.pdfViewerBase.OnItemSelected(e)},i.prototype.onMenuItemSelect=function(e){var i=this.filteredCustomItemsIds.find(function(t){return t===e.item.id}),n=t.isNullOrUndefined(i)?void 0:i.toString();n?this.pdfViewer.firecustomContextMenuSelect(n):this.pdfViewerBase.OnItemSelected(e.item.text)},i.prototype.destroy=function(){this.contextMenuObj&&(this.previousAction="",this.contextMenuObj.destroy(),this.contextMenuObj=null),this.contextMenuElement=null,this.copyContextMenu=null,this.contextMenuList=null,this.customMenuItems=null,this.defaultLength=null,this.filteredCustomItemsIds=null,this.defaultContextMenuItems=null,this.defaultCopyId=null,this.defaultCutId=null,this.defaultPasteId=null,this.defaultDeleteId=null,this.defaultCommentId=null,this.defaultUnderlineId=null,this.defaultHighlightId=null,this.defaultStrikethroughId=null,this.defaultScaleratioId=null,this.defaultPropertiesId=null,this.copyShowCustomContextMenuBottom=null,this.currentTarget=null},i.prototype.close=function(){this.contextMenuObj.close()},i.prototype.open=function(e,t,i){this.contextMenuObj.open(e,t,i)},i.prototype.addCustomContextMenuItems=function(){var e=new Set;this.customMenuItems=this.customMenuItems.reverse().filter(function(t){return!e.has(t.id)&&e.add(t.id)}).reverse();var t=this.customMenuItems.length;if(t>0){if(!0===this.pdfViewer.showCustomContextMenuBottom)for(i=0;i<t;i++)this.copyContextMenu.push(this.customMenuItems[parseInt(i.toString(),10)]);else for(var i=t-1;i>=0;i--)this.copyContextMenu.unshift(this.customMenuItems[parseInt(i.toString(),10)]);this.contextMenuObj.items=this.copyContextMenu,this.contextMenuObj.dataBind()}this.copyShowCustomContextMenuBottom=this.pdfViewer.showCustomContextMenuBottom},i.prototype.hideDefaultContextMenu=function(){this.contextMenuObj.hideItems(this.defaultContextMenuItems),this.pdfViewerBase.getElement("_context_menu_separator").classList.add("e-menu-hide"),this.pdfViewerBase.getElement("_context_menu_comment_separator").classList.add("e-menu-hide")},i}(),Pi=function(){function e(e){this.type="POST",this.mode=!0,this.contentType="application/json;charset=UTF-8",this.retryTimeout=0,this.pdfViewer=e,this.retryCount=e.retryCount,this.retryStatusCodes=e.retryStatusCodes,this.retryTimeout=1e3*e.retryTimeout}return e.prototype.send=function(e){var t=this;this.httpRequest=new XMLHttpRequest,this.httpRequest.timeout=this.retryTimeout,this.mode?this.sendRequest(e):setTimeout(function(){t.sendRequest(e)}),this.httpRequest.onreadystatechange=function(){var i=!1,n=t.pdfViewer.viewerBase;n&&n.isPasswordAvailable&&""===n.passwordData&&(i=!0,t.retryCount=0),t.retryCount>0&&(i=t.resendRequest(t,e,!1)),i||t.stateChange(t)},this.httpRequest.ontimeout=function(){var i=!1,n=t.pdfViewer.viewerBase;n&&n.isPasswordAvailable&&""===n.passwordData&&(i=!0,t.retryCount=0),t.retryCount>0&&(i=t.resendRequest(t,e,!0)),i||t.stateChange(t)},this.httpRequest.onerror=function(){t.error(t)}},e.prototype.clear=function(){this.httpRequest&&this.httpRequest.abort(),this.onSuccess=null,this.onFailure=null,this.onError=null},e.prototype.resendRequest=function(e,t,i){var n=!1,o=e.httpRequest.status,r=-1!==this.retryStatusCodes.indexOf(o);if(4===e.httpRequest.readyState&&200===o){var a=void 0;if((a=null!==this.responseType?e.httpRequest.response:e.httpRequest.responseText)&&"object"!=typeof a)try{a=JSON.parse(a)}catch(e){"Document stream does not exist in the cache"!==a&&"Document Reference pointer does not exist in the cache"!==a||(n=!0)}}return(r||n||i)&&(n=!0,this.retryCount--,e.pdfViewer.fireAjaxRequestFailed(o,e.httpRequest.statusText,t.action,!0),e.send(t)),n},e.prototype.sendRequest=function(e){this.httpRequest.open(this.type,this.url,this.mode),this.httpRequest.withCredentials=this.pdfViewer.ajaxRequestSettings.withCredentials,this.httpRequest.setRequestHeader("Content-Type",this.contentType),e=this.addExtraData(e),this.setCustomAjaxHeaders(),null!==this.responseType&&(this.httpRequest.responseType=this.responseType),this.httpRequest.send(JSON.stringify(e))},e.prototype.addExtraData=function(e){return this.pdfViewer.viewerBase.ajaxData="",this.pdfViewer.fireAjaxRequestInitiate(e),this.pdfViewer.viewerBase.ajaxData&&""!==this.pdfViewer.viewerBase.ajaxData&&(e=this.pdfViewer.viewerBase.ajaxData),e},e.prototype.stateChange=function(e){var t=e.httpRequest.status,i=t.toString().split("")[0];if(4===e.httpRequest.readyState&&200===t){var n=void 0,o={name:"onSuccess",data:n=null!==this.responseType?e.httpRequest.response:e.httpRequest.responseText,readyState:e.httpRequest.readyState,status:e.httpRequest.status};e.successHandler(o)}else if(4===e.httpRequest.readyState&&("4"===i||"5"===i)){o={name:"onFailure",status:e.httpRequest.status,statusText:e.httpRequest.statusText};e.failureHandler(o)}},e.prototype.error=function(e){var t={name:"onError",status:this.httpRequest.status,statusText:this.httpRequest.statusText};e.errorHandler(t)},e.prototype.destroy=function(){this.url=null,this.type=null,this.responseType=null,this.mode=null,this.contentType=null,this.httpRequest=null,this.retryStatusCodes=null,this.retryTimeout=null,this.onSuccess=null,this.onFailure=null,this.onError=null},e.prototype.successHandler=function(e){return this.onSuccess&&this.onSuccess(e),e},e.prototype.failureHandler=function(e){return this.onFailure&&this.onFailure(e),e},e.prototype.errorHandler=function(e){return this.onError&&this.onError(e),e},e.prototype.setCustomAjaxHeaders=function(){if(!t.isNullOrUndefined(this.pdfViewer.ajaxRequestSettings)&&!t.isNullOrUndefined(this.pdfViewer.ajaxRequestSettings.ajaxHeaders))for(var e=0;e<this.pdfViewer.ajaxRequestSettings.ajaxHeaders.length;e++)this.httpRequest.setRequestHeader(this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(e.toString(),10)].headerName,this.pdfViewer.ajaxRequestSettings.ajaxHeaders[parseInt(e.toString(),10)].headerValue)},e}(),Ni=function(){function r(e,t){var i=this;this.mouseMoving=!0,this.canvasTouched=!1,this.imageSignatureDataUrl="",this.drawSignatureDataUrl="",this.newObject=[],this.outputString="",this.drawOutputString="",this.imageOutputString="",this.signaturecollection=[],this.outputcollection=[],this.signAnnotationIndex=[],this.fontsign=[],this.signfontStyle=[],this.isSaveSignature=!1,this.isSaveInitial=!1,this.isInitialFiledSaveSignature=!1,this.isSignatureFieldsSaveSignature=!1,this.issaveTypeSignature=!1,this.issaveImageSignature=!1,this.issaveTypeInitial=!1,this.issaveImageInitial=!1,this.saveSignatureTypeString="",this.saveInitialTypeString="",this.saveTypeString="",this.signatureTypeString="",this.initialTypeString="",this.saveUploadString="",this.saveSignatureUploadString="",this.saveInitialUploadString="",this.signatureUploadString="",this.initialUploadString="",this.clearUploadString=!1,this.textValue="",this.signatureDrawString="",this.initialDrawString="",this.signatureTextContentTop=.2,this.signatureTextContentLeft=.7,this.saveSignatureString="",this.saveInitialString="",this.saveImageString="",this.signatureFieldCollection=[],this.signatureImageString="",this.initialImageString="",this.maxSaveLimit=5,this.select=function(e){this.canvasTouched&&(this.mouseMoving=!0,this.canvasTouched=!1),e.isSwiped&&"Draw"===this.signaturetype&&this.mouseMoving&&(e.cancel=!0,this.mouseMoving=!1)},this.addStampImage=function(e){var t=e.target.files;if(null!==e.target.files[0]){var n=t[0];if("image"===n.type.split("/")[0]){var o=new FileReader;o.onload=function(e){var t=document.getElementById(i.pdfViewer.element.id+"_signatureuploadCanvas_"),n=t.getContext("2d"),o=new Image,r=i;o.onload=function(){document.getElementById(i.pdfViewer.element.id+"_e-pv-upload-button").style.visibility="hidden",n.drawImage(o,0,0,t.width,t.height),r.enableCreateButton(!1),r.outputString=o.src,r.signatureImageHeight=o.naturalHeight,r.signatureImageWidth=o.naturalWidth},o.src=e.currentTarget.result,r.outputString=e.currentTarget.result,r.switchTabImageSignature=e.currentTarget.result},o.readAsDataURL(n)}}e.target.value="",e.currentTarget.value=""},this.pdfViewer=e,this.pdfViewerBase=t}return r.prototype.createSignaturePanel=function(){var e=this;if(this.imageSignatureDataUrl="",this.drawSignatureDataUrl="",t.isBlazor()){var i=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");if(i){if(!this.pdfViewerBase.pageContainer.querySelector(".e-pv-signature-window")){var n=this.pdfViewer.element.id,r=t.createElement("div",{id:n+"_signature_window",className:"e-pv-signature-window"});r.style.display="block",this.pdfViewerBase.pageContainer.appendChild(r)}i.addEventListener("mousedown",this.signaturePanelMouseDown.bind(this)),i.addEventListener("mousemove",this.signaturePanelMouseMove.bind(this)),i.addEventListener("mouseup",this.signaturePanelMouseUp.bind(this)),i.addEventListener("mouseleave",this.signaturePanelMouseUp.bind(this)),i.addEventListener("touchstart",this.signaturePanelMouseDown.bind(this)),i.addEventListener("touchmove",this.signaturePanelMouseMove.bind(this)),i.addEventListener("touchend",this.signaturePanelMouseUp.bind(this)),this.clearSignatureCanvas()}this.pdfViewer._dotnetInstance.invokeMethodAsync("OpenSignaturePanel",this.pdfViewerBase.isToolbarSignClicked)}else{n=this.pdfViewer.element.id;(r=t.createElement("div",{id:n+"_signature_window",className:"e-pv-signature-window"})).style.display="block",this.pdfViewerBase.pageContainer.appendChild(r);var a=this.createSignatureCanvas(),s=void 0;s=this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField?this.pdfViewer.localeObj.getConstant("InitialFieldDialogHeaderText"):this.pdfViewer.localeObj.getConstant("SignatureFieldDialogHeaderText"):this.pdfViewerBase.isInitialField?this.pdfViewer.localeObj.getConstant("HandwrittenInitialDialogHeaderText"):this.pdfViewer.localeObj.getConstant("HandwrittenSignatureDialogHeaderText"),this.signatureDialog?this.signatureDialog.content=a:(this.signatureDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:s,cssClass:"e-pv-signature-dialog-height",target:this.pdfViewerBase.mainContainer,content:a,width:"750px",visible:!0,allowDragging:!0,beforeClose:function(){e.clearSignatureCanvas(),e.signatureDialog.destroy(),e.signatureDialog=null,e.tabObj&&e.tabObj.destroy();var i=document.getElementById(e.pdfViewer.element.id+"_signature_window");i&&(i.parentNode?i.parentNode.removeChild(i):i.parentElement.removeChild(i)),e.pdfViewerBase.isToolbarSignClicked||e.pdfViewerBase.drawSignatureWithTool||!e.pdfViewer.formFieldsModule||t.isNullOrUndefined(e.pdfViewer.formFieldsModule.currentTarget)||e.pdfViewer.fireFocusOutFormField(e.pdfViewer.formFieldsModule.currentTarget.name,""),e.pdfViewerBase.isToolbarSignClicked=!1,e.setFocus()}}),this.signatureDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Clear"),disabled:!0,cssClass:"e-pv-clearbtn"},click:this.clearSignatureCanvas.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel"),cssClass:"e-pv-cancelbtn"},click:this.closeSignaturePanel.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Create"),isPrimary:!0,disabled:!0,cssClass:"e-pv-createbtn"},click:this.addSignatureInPage.bind(this)}],this.signatureDialog.appendTo(r)),this.pdfViewer.element.offsetWidth<750&&this.updateCanvasSize(),this.pdfViewer.enableRtl&&(this.signatureDialog.enableRtl=this.pdfViewer.enableRtl);var l=this.signatureDialog.content.ej2_instances[0].items[0];if("DRAW"===l.header.label){var d=document.getElementById("checkbox");this.hideSignatureCheckbox(d)}else if("TYPE"===l.header.label){var A=document.getElementById("checkbox1");this.hideSignatureCheckbox(A)}else{var h=document.getElementById("checkbox2");this.hideSignatureCheckbox(h)}this.setSignatureCanvasWidth()}this.drawSavedSignature()},r.prototype.setSignatureCanvasWidth=function(){var e=document.getElementById(this.pdfViewer.element.id+"Signature_appearance");if(e){var t=e.clientWidth,i=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");i&&(i.width=t,i.style.width=t+"px");var n=document.getElementById(this.pdfViewer.element.id+"_signatureuploadCanvas_");n&&(n.width=t,n.style.width=t+"px");var o=document.getElementById(this.pdfViewer.element.id+"_font_appearance");o&&(o.width=t,o.style.width=t+"px")}},r.prototype.drawSavedSignature=function(){if(!this.pdfViewerBase.isToolbarSignClicked&&(this.isSaveSignature||this.isSaveInitial)){!this.pdfViewerBase.isInitialField&&this.isSaveSignature?this.outputString=this.saveSignatureString:this.pdfViewerBase.isInitialField&&this.isSaveInitial&&(this.outputString=this.saveInitialString);var e=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_").getContext("2d"),t=new Image;t.onload=function(){e.drawImage(t,0,0)},!this.pdfViewerBase.isInitialField&&this.isSaveSignature?t.src=this.signatureDrawString:this.pdfViewerBase.isInitialField&&this.isSaveInitial&&(t.src=this.initialDrawString);var i=document.getElementById(this.pdfViewer.element.id+"_signatureCheckBox");i&&(i.checked=!0),this.enableCreateButton(!1),this.enableClearbutton(!1)}},r.prototype.drawSavedTypeSignature=function(){var e="";return this.pdfViewerBase.isToolbarSignClicked||!this.issaveTypeSignature&&!this.issaveTypeInitial||(e=!this.pdfViewerBase.isInitialField&&this.issaveTypeSignature?this.saveSignatureTypeString:this.saveInitialTypeString),e},r.prototype.drawSavedImageSignature=function(){var e="";return this.pdfViewerBase.isToolbarSignClicked||!this.issaveImageSignature&&!this.issaveImageInitial||(e=!this.pdfViewerBase.isInitialField&&this.issaveImageSignature?this.saveSignatureUploadString:this.saveInitialUploadString),e},r.prototype.hideSignatureCheckbox=function(e){this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField?this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings&&this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings.hideSaveSignature&&this.hideCheckboxParent(e):this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings&&this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings.hideSaveSignature&&this.hideCheckboxParent(e):this.pdfViewerBase.isInitialField?this.pdfViewer.initialFieldSettings.initialDialogSettings&&this.pdfViewer.initialFieldSettings.initialDialogSettings.hideSaveSignature&&this.hideCheckboxParent(e):this.pdfViewer.signatureFieldSettings.signatureDialogSettings&&this.pdfViewer.signatureFieldSettings.signatureDialogSettings.hideSaveSignature&&this.hideCheckboxParent(e)},r.prototype.saveSignatureCheckbox=function(){return!this.pdfViewerBase.isToolbarSignClicked&&(this.pdfViewerBase.isInitialField?(!this.pdfViewer.initialFieldSettings.initialDialogSettings||!this.pdfViewer.initialFieldSettings.initialDialogSettings.hideSaveSignature)&&this.isInitialFiledSaveSignature:(!this.pdfViewer.signatureFieldSettings.signatureDialogSettings||!this.pdfViewer.signatureFieldSettings.signatureDialogSettings.hideSaveSignature)&&this.isSignatureFieldsSaveSignature)},r.prototype.hideCheckboxParent=function(e){e&&(e.parentElement.style.display="none")},r.prototype.saveSignatureImage=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signatureCheckBox");if(e&&e.checked){if(""!==this.outputString){this.pdfViewerBase.isInitialField?(this.isSaveInitial=!0,this.saveInitialString=this.outputString):(this.isSaveSignature=!0,this.saveSignatureString=this.outputString);var t=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");this.saveImageString=t.toDataURL(),this.pdfViewerBase.isInitialField?this.initialImageString=this.saveImageString:this.signatureImageString=this.saveImageString}}else this.isSaveSignature&&!this.pdfViewerBase.isInitialField?(this.isSaveSignature=!1,this.saveSignatureString="",this.saveImageString="",this.signatureImageString=""):this.isSaveInitial&&this.pdfViewerBase.isInitialField&&(this.isSaveInitial=!1,this.saveInitialString="",this.saveImageString="",this.initialImageString=""),this.clearSignatureCanvas()},r.prototype.addSignature=function(e){var i;if(this.pdfViewerBase.isToolbarSignClicked){var n=this.pdfViewer.annotation.createGUID();this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.isSignatureAdded=!0;var o=this.pdfViewerBase.currentPageNumber-1,r=this.pdfViewer.handWrittenSignatureSettings.thickness?this.pdfViewer.handWrittenSignatureSettings.thickness:1,a=this.pdfViewer.handWrittenSignatureSettings.opacity?this.pdfViewer.handWrittenSignatureSettings.opacity:1,s=this.pdfViewer.handWrittenSignatureSettings.strokeColor?this.pdfViewer.handWrittenSignatureSettings.strokeColor:"#000000",l=this.updateSignatureAspectRatio(this.outputString,!0),d=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");this.saveImageString=d.toDataURL(),this.pdfViewerBase.isInitialField?this.initialImageString=this.saveImageString:this.signatureImageString=this.saveImageString,i={id:"sign"+this.pdfViewerBase.signatureCount,bounds:l,pageIndex:o,data:this.outputString,fontFamily:"Helvetica",fontSize:16,shapeAnnotationType:"HandWrittenSignature",opacity:a,strokeColor:s,thickness:r,signatureName:n},this.pdfViewerBase.currentSignatureAnnot=i;A=void 0;(A=t.isBlazor()?document.getElementById(this.pdfViewer.element.id+"_signatureCheckBox"):document.getElementById("checkbox"))&&A.checked&&this.addSignatureCollection(),this.hideSignaturePanel(),this.pdfViewerBase.isToolbarSignClicked=!1}else{var A=document.getElementById("checkbox"),h=document.getElementById("checkbox1"),p=document.getElementById("checkbox2"),c=!1;if(!c){d=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");this.saveImageString=d.toDataURL(),A&&(A.checked?(this.pdfViewerBase.isInitialField?(this.isSaveInitial=!0,this.initialDrawString=this.saveImageString,this.saveInitialString=this.outputString):(this.isSaveSignature=!0,this.signatureDrawString=this.saveImageString,this.saveSignatureString=this.outputString),this.checkSaveFiledSign(this.pdfViewerBase.isInitialField,!0)):(this.pdfViewerBase.isInitialField?(this.isSaveInitial=!1,this.saveInitialString=""):(this.isSaveSignature=!1,this.saveSignatureString=""),this.checkSaveFiledSign(this.pdfViewerBase.isInitialField,!1))),this.saveTypeSignature(h),this.saveUploadSignature(p),this.pdfViewerBase.isInitialField?this.initialImageString=this.saveImageString:this.signatureImageString=this.saveImageString,this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.drawSignature(null,null,this.pdfViewerBase.currentTarget,null),c=!0}}},r.prototype.updateSignatureAspectRatio=function(e,t,n,o){for(var r=i.processPathData(e),a=i.splitArrayCollection(r),s=-1,l=-1,d=-1,A=-1,h=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_"),p=0,c=0,g=0;g<a.length;g++){var u=a[parseInt(g.toString(),10)];if(-1===s)s=parseFloat(u.x.toString()),d=parseFloat(u.x.toString()),l=parseFloat(u.y.toString()),A=parseFloat(u.y.toString());else{var f=parseFloat(u.x.toString()),m=parseFloat(u.y.toString());s>=f&&(s=f),l>=m&&(l=m),d<=f&&(d=f),A<=m&&(A=m)}}p=h?h.clientWidth:650,c=h?h.clientHeight:300;var w=d-s,C=A-l,B=this.calculateSignatureBounds(p,c,w,C,t,n,o);if(t){var S=this.pdfViewerBase.getZoomFactor(),y=this.pdfViewerBase.currentPageNumber-1,I=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+y);return{x:(parseFloat(I.style.width)/2-B.currentWidth/2)/S,y:(parseFloat(I.style.height)/2-B.currentHeight/2)/S,width:B.currentWidth,height:B.currentHeight}}return{left:B.currentLeftDiff,top:B.currentTopDiff,width:B.currentWidth,height:B.currentHeight}},r.prototype.calculateSignatureBounds=function(e,t,i,n,o,r,a){var s=i/e,l=n/t,d=this.pdfViewerBase.getZoomFactor(),A=0,h=0,p=!1,c=!1,g=0,u=0;if(o)A=this.pdfViewer.handWrittenSignatureSettings.width?this.pdfViewer.handWrittenSignatureSettings.width:150,h=this.pdfViewer.handWrittenSignatureSettings.height?this.pdfViewer.handWrittenSignatureSettings.height:100;else{var f=r?"100%"===r.style.width?r.clientWidth:parseFloat(r.style.width):this.ConvertPointToPixel(a.LineBounds.Width),m=r?"100%"===r.style.height?r.clientHeight:parseFloat(r.style.height):this.ConvertPointToPixel(a.LineBounds.Height),w=f/m,C=m/f,B=e/t,S=t/e,y=r?r.offsetParent.offsetParent.style.transform?r.offsetParent.offsetParent.style.transform:r.style.transform:a.RotationAngle;if(w>B||C>B||Math.abs(w-C)<=1){var I=0;C>B||Math.abs(w-C)<=1?(c=!0,I=C/S):(p=!0,I=w/B),"rotate(90deg)"===y||"rotate(270deg)"===y?(A=m/d,h=f/d):(p&&(g=f/d,A=f/I/d,h=m/d),c&&(u=m/d,A=f/d,h=m/I/d))}else"rotate(90deg)"===y||"rotate(270deg)"===y?(A=m/d,h=f/d):(A=f/d,h=m/d)}var E=(e-i)/2,v=(t-n)/2;return p?(E=E/e*g,E+=(g*s-A*s)/2,v=v/t*h):c?(E=E/e*A,v=v/t*u,v+=(u*l-h*l)/2):(E=E/e*A,v=v/t*h),"Stretch"!==this.pdfViewer.signatureFitMode&&(A*=s,h*=l),{currentLeftDiff:E,currentTopDiff:v,currentWidth:A,currentHeight:h}},r.prototype.setFocus=function(e){e?(this.removeFocus(),document.getElementById(e).classList.add("e-pv-signature-focus")):this.currentTarget&&document.getElementById(this.currentTarget.id).focus()},r.prototype.removeFocus=function(){if(this.signatureFieldCollection){var e=this.signatureFieldCollection;0===e.length&&(e=this.getSignField());for(var t=0;t<this.signatureFieldCollection.length;t++){var i=this.pdfViewer.formDesignerModule?this.signatureFieldCollection[parseInt(t.toString(),10)].FormField.uniqueID:this.signatureFieldCollection[parseInt(t.toString(),10)].uniqueID,n=document.getElementById(i);n&&n.classList.remove("e-pv-signature-focus")}this.pdfViewer.formFieldsModule.currentTarget&&this.pdfViewer.formFieldsModule.currentTarget.classList.remove("e-pv-signature-focus")}},r.prototype.getSignField=function(){return this.pdfViewer.formDesignerModule?this.signatureFieldCollection=this.pdfViewer.formDesignerModule.getFormDesignerSignField(this.signatureFieldCollection):this.signatureFieldCollection=this.getFormFieldSignField(),this.signatureFieldCollection},r.prototype.getFormFieldSignField=function(){var e,t=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(t)for(var i=JSON.parse(t),n=0;n<i.length;n++)"SignatureField"!==(e=i[parseInt(n.toString(),10)]).Name&&"InitialField"!==e.Name||(e.uniqueID=this.pdfViewer.element.id+"input_"+e.PageIndex+"_"+n,this.signatureFieldCollection.push(i[parseInt(n.toString(),10)]));return this.signatureFieldCollection},r.prototype.checkSaveFiledSign=function(e,t){e?this.isInitialFiledSaveSignature=t:this.isSignatureFieldsSaveSignature=t},r.prototype.addSignatureInPage=function(){"Draw"===this.signaturetype?this.addSignature():"Type"===this.signaturetype?this.typeAddSignature():this.imageAddSignature(),this.drawOutputString="",this.imageOutputString=""},r.prototype.typeAddSignature=function(e){if(this.pdfViewerBase.isToolbarSignClicked){var i=this.pdfViewerBase.getZoomFactor(),n=null,o=this.pdfViewer.annotation.createGUID();this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.isSignatureAdded=!0;var r=this.pdfViewerBase.currentPageNumber-1,a=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+r),s=this.pdfViewer.handWrittenSignatureSettings.thickness?this.pdfViewer.handWrittenSignatureSettings.thickness:1,l=this.pdfViewer.handWrittenSignatureSettings.opacity?this.pdfViewer.handWrittenSignatureSettings.opacity:1,d=this.pdfViewer.handWrittenSignatureSettings.strokeColor?this.pdfViewer.handWrittenSignatureSettings.strokeColor:"#000000",A=0,h=0,p=65,c=200;t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.height)||"Stretch"!==this.pdfViewer.signatureFitMode||(p=this.pdfViewer.handWrittenSignatureSettings.height),t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.width)||"Stretch"!==this.pdfViewer.signatureFitMode||(c=this.pdfViewer.handWrittenSignatureSettings.width),A=(parseFloat(a.style.width)/2-c/2)/i,h=(parseFloat(a.style.height)/2-p/2)/i;var g=this.pdfViewerBase.getZoomFactor();this.signtypevalue||this.updateSignatureTypeValue(!0);var u=this.signtypevalue;this.pdfViewer.enableHtmlSanitizer&&this.outputString&&(this.outputString=t.SanitizeHtmlHelper.sanitize(this.outputString)),n={id:"Typesign"+this.pdfViewerBase.signatureCount,bounds:{left:A/g,top:h/g,x:A/g,y:h/g,width:c,height:p},pageIndex:r,dynamicText:u,data:this.pdfViewerBase.signatureModule.outputString,shapeAnnotationType:"SignatureText",opacity:l,strokeColor:d,thickness:s,fontSize:16,fontFamily:this.fontName,signatureName:o},this.pdfViewerBase.currentSignatureAnnot=n;f=void 0;(f=t.isBlazor()?document.getElementById(this.pdfViewer.element.id+"_signatureCheckBox"):document.getElementById("checkbox1"))&&f.checked&&this.addSignatureCollection(),this.signtypevalue="",this.hideSignaturePanel(),this.pdfViewerBase.isToolbarSignClicked=!1}else{var f=document.getElementById("checkbox"),m=document.getElementById("checkbox1"),w=document.getElementById("checkbox2"),C=!1;if(!C){this.saveDrawSignature(f),this.saveUploadSignature(w);var B=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");B&&(this.saveTypeString=B.toDataURL()),this.updateSignatureTypeValue(),this.pdfViewer.enableHtmlSanitizer&&this.textValue&&(this.textValue=t.SanitizeHtmlHelper.sanitize(this.textValue)),m&&m.checked?this.pdfViewerBase.isInitialField?(this.isSaveInitial=!0,this.initialImageString=this.saveTypeString,this.saveInitialTypeString=this.textValue,this.issaveTypeInitial=!0):(this.isSaveSignature=!0,this.signatureImageString=this.saveTypeString,this.saveSignatureTypeString=this.textValue,this.issaveTypeSignature=!0):this.pdfViewerBase.isInitialField?(this.isSaveInitial=!1,this.saveInitialTypeString="",this.issaveTypeInitial=!1):(this.isSaveSignature=!1,this.saveSignatureTypeString="",this.issaveTypeSignature=!1),this.pdfViewerBase.isInitialField?this.initialTypeString=this.saveTypeString:this.signatureTypeString=this.saveTypeString,this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.drawSignature("Type",this.textValue,this.pdfViewerBase.currentTarget),C=!0,this.hideSignaturePanel()}}},r.prototype.imageAddSignature=function(e){if(this.pdfViewerBase.isToolbarSignClicked){var i=this.pdfViewerBase.getZoomFactor(),n=null,o=this.pdfViewer.annotation.createGUID();this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.isSignatureAdded=!0;var r=this.pdfViewerBase.currentPageNumber-1,a=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+r),s=this.pdfViewer.handWrittenSignatureSettings.thickness?this.pdfViewer.handWrittenSignatureSettings.thickness:1,l=this.pdfViewer.handWrittenSignatureSettings.opacity?this.pdfViewer.handWrittenSignatureSettings.opacity:1,d=this.pdfViewer.handWrittenSignatureSettings.strokeColor?this.pdfViewer.handWrittenSignatureSettings.strokeColor:"#000000",A=0,h=0,p=0,c=0;this.pdfViewer.enableHtmlSanitizer&&this.outputString&&(this.outputString=t.SanitizeHtmlHelper.sanitize(this.outputString)),p=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.height)||"Stretch"!==this.pdfViewer.signatureFitMode?this.signatureImageHeight>=this.signatureImageWidth?this.signatureImageHeight/this.signatureImageHeight*100:this.signatureImageHeight/this.signatureImageWidth*100:this.pdfViewer.handWrittenSignatureSettings.height,c=t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.width)||"Stretch"!==this.pdfViewer.signatureFitMode?this.signatureImageHeight>=this.signatureImageWidth?this.signatureImageWidth/this.signatureImageHeight*100:this.signatureImageWidth/this.signatureImageWidth*100:this.pdfViewer.handWrittenSignatureSettings.width,A=(parseFloat(a.style.width)/2-c/2)/i,h=(parseFloat(a.style.height)/2-p/2)/i;var g=this.pdfViewerBase.getZoomFactor(),u=this.signtypevalue;n={id:"Typesign"+this.pdfViewerBase.signatureCount,bounds:{left:A/g,top:h/g,x:A/g,y:h/g,width:c,height:p},pageIndex:r,dynamicText:u,data:this.pdfViewerBase.signatureModule.outputString,shapeAnnotationType:"SignatureImage",opacity:l,strokeColor:d,thickness:s,fontSize:16,fontFamily:this.fontName,signatureName:o},this.pdfViewerBase.currentSignatureAnnot=n;f=void 0;(f=t.isBlazor()?document.getElementById(this.pdfViewer.element.id+"_signatureCheckBox"):document.getElementById("checkbox2"))&&f.checked&&this.addSignatureCollection(),this.hideSignaturePanel(),this.pdfViewerBase.isToolbarSignClicked=!1}else{var f=document.getElementById("checkbox"),m=document.getElementById("checkbox1"),w=document.getElementById("checkbox2"),C=!1;if(!C){this.saveDrawSignature(f),this.saveTypeSignature(m);var B=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");B&&(this.saveUploadString=B.toDataURL()),this.pdfViewer.enableHtmlSanitizer&&this.outputString&&(this.outputString=t.SanitizeHtmlHelper.sanitize(this.outputString)),w&&w.checked?this.pdfViewerBase.isInitialField?(this.isSaveInitial=!0,this.initialImageString=this.saveUploadString,this.saveInitialUploadString=this.outputString,this.issaveImageInitial=!0):(this.isSaveSignature=!0,this.signatureImageString=this.saveUploadString,this.saveSignatureUploadString=this.outputString,this.issaveImageSignature=!0):this.pdfViewerBase.isInitialField?(this.isSaveInitial=!1,this.saveInitialUploadString="",this.issaveImageInitial=!1):(this.isSaveSignature=!1,this.saveSignatureUploadString="",this.issaveImageSignature=!1),this.pdfViewerBase.isInitialField?this.initialUploadString=this.saveUploadString:this.signatureUploadString=this.saveUploadString,this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.drawSignature("Image","",this.pdfViewerBase.currentTarget),C=!0,this.hideSignaturePanel()}}},r.prototype.saveDrawSignature=function(e){if(e)if(e.checked){if(""!==this.drawOutputString){var t=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");this.saveImageString=t.toDataURL(),this.pdfViewerBase.isInitialField?(this.saveInitialString=this.drawOutputString,this.initialDrawString=this.saveImageString):(this.saveSignatureString=this.drawOutputString,this.signatureDrawString=this.saveImageString),this.checkSaveFiledSign(this.pdfViewerBase.isInitialField,!0)}}else this.pdfViewerBase.isInitialField?this.saveInitialString="":this.saveSignatureString="",this.checkSaveFiledSign(this.pdfViewerBase.isInitialField,!1)},r.prototype.saveTypeSignature=function(e){e&&(e.checked?(this.updateSignatureTypeValue(),""!==this.textValue&&(this.pdfViewerBase.isInitialField?(this.issaveTypeInitial=!0,this.saveInitialTypeString=this.textValue):(this.issaveTypeSignature=!0,this.saveSignatureTypeString=this.textValue))):this.pdfViewerBase.isInitialField?(this.saveInitialTypeString="",this.issaveTypeInitial=!1):(this.saveSignatureTypeString="",this.issaveTypeSignature=!1))},r.prototype.saveUploadSignature=function(e){if(e)if(e.checked){var t=document.getElementById(this.pdfViewer.element.id+"_signatureuploadCanvas_").toDataURL(),i="hidden"===document.getElementById(this.pdfViewer.element.id+"_e-pv-upload-button").style.visibility?t:"";""!==i&&(this.pdfViewerBase.isInitialField?(this.issaveImageInitial=!0,this.saveInitialUploadString=i):(this.issaveImageSignature=!0,this.saveSignatureUploadString=i))}else this.pdfViewerBase.isInitialField?(this.saveInitialUploadString="",this.issaveImageInitial=!1):(this.saveSignatureUploadString="",this.issaveImageSignature=!1)},r.prototype.updateSignatureTypeValue=function(e){var t=document.querySelectorAll(".e-pv-font-sign");if(t)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)]&&"red"===t[parseInt(i.toString(),10)].style.borderColor){this.pdfViewerBase.isToolbarSignClicked?e?(this.signtypevalue=t[parseInt(i.toString(),10)].textContent,this.outputString=t[parseInt(i.toString(),10)].textContent):this.outputString=t[parseInt(i.toString(),10)].textContent:e?(this.signtypevalue=t[parseInt(i.toString(),10)].textContent,this.textValue=t[parseInt(i.toString(),10)].textContent):this.textValue=t[parseInt(i.toString(),10)].textContent;try{this.fontName=JSON.parse(t[parseInt(i.toString(),10)].style.fontFamily)}catch(e){this.fontName=t[parseInt(i.toString(),10)].style.fontFamily}}},r.prototype.hideSignaturePanel=function(){this.signatureDialog&&this.signatureDialog.hide()},r.prototype.bindTypeSignatureClickEvent=function(){if(t.isBlazor())for(var e=0;e<4;e++){var i=document.querySelector("#"+this.pdfViewer.element.id+"_font_signature"+e);i&&i.addEventListener("click",this.typeSignatureclicked.bind(this))}},r.prototype.bindDrawSignatureClickEvent=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");e&&(e.addEventListener("mousedown",this.signaturePanelMouseDown.bind(this)),e.addEventListener("mousemove",this.signaturePanelMouseMove.bind(this)),e.addEventListener("mouseup",this.signaturePanelMouseUp.bind(this)),e.addEventListener("mouseleave",this.signaturePanelMouseUp.bind(this)),e.addEventListener("touchstart",this.signaturePanelMouseDown.bind(this)),e.addEventListener("touchmove",this.signaturePanelMouseMove.bind(this)),e.addEventListener("touchend",this.signaturePanelMouseUp.bind(this)))},r.prototype.typeSignatureclicked=function(e){var t=e.target;if(t){for(var i=0;i<4;i++){var n=document.querySelector("#"+this.pdfViewer.element.id+"_font_signature"+i);n&&(n.style.borderColor="")}t.style.borderColor="red",this.outputString=t.textContent;try{this.fontName=JSON.parse(t.style.fontFamily)}catch(e){this.fontName=t.style.fontFamily}this.enableCreateButton(!1)}},r.prototype.createSignatureCanvas=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_"),i=document.getElementById(this.pdfViewer.element.id+"Signature_appearance");e&&e.remove(),i&&i.remove();var o=305,r=this.pdfViewer.element.clientHeight;r<=500?o=250:r>500&&r<=750&&(o=275);var a=t.createElement("div",{id:this.pdfViewer.element.id+"Signature_appearance",className:"e-pv-signature-apperance",styles:"margin-top:30px"}),l=t.createElement("canvas",{id:this.pdfViewer.element.id+"_signatureCanvas_",className:"e-pv-signature-canvas"});l.classList.add("e-pv-canvas-signature"),l.height=o,l.style.height=o+"px",l.style.border="1px dotted #bdbdbd",l.style.backgroundColor="white",l.style.boxSizing="border-box",l.style.borderRadius="2px",l.addEventListener("mousedown",this.signaturePanelMouseDown.bind(this)),l.addEventListener("mousemove",this.signaturePanelMouseMove.bind(this)),l.addEventListener("mouseup",this.signaturePanelMouseUp.bind(this)),l.addEventListener("mouseleave",this.signaturePanelMouseLeave.bind(this)),l.addEventListener("touchstart",this.signaturePanelMouseDown.bind(this)),l.addEventListener("touchmove",this.signaturePanelMouseMove.bind(this)),l.addEventListener("touchend",this.signaturePanelMouseUp.bind(this)),a.appendChild(l);var d,h,p;p=this.pdfViewerBase.isToolbarSignClicked&&!this.pdfViewerBase.isInitialField?this.pdfViewer.localeObj.getConstant("Save Signature"):this.pdfViewerBase.isInitialField?this.pdfViewer.localeObj.getConstant("Save Initial"):this.pdfViewer.localeObj.getConstant("Save Signature"),this.pdfViewer.hideSaveSignature||((h=document.createElement("input")).type="checkbox",h.id="checkbox",a.appendChild(h),(d=new A.CheckBox({label:p,disabled:!1,checked:!1})).appendTo(h)),this.pdfViewerBase.isInitialField?this.isSaveInitial=this.saveSignatureCheckbox():this.isSaveSignature=this.saveSignatureCheckbox(),this.isSaveSignature&&!this.pdfViewerBase.isInitialField?d.checked=!0:this.isSaveInitial&&this.pdfViewerBase.isInitialField&&(d.checked=!0);var c=t.createElement("div",{id:this.pdfViewer.element.id+"type_appearance",className:"e-pv-signature-apperance",styles:"margin-top:6px"}),g=document.createElement("input");this.pdfViewerBase.isInitialField||!this.issaveTypeSignature||this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField&&this.issaveTypeInitial&&!this.pdfViewerBase.isToolbarSignClicked&&(g.value=this.drawSavedTypeSignature()):g.value=this.drawSavedTypeSignature(),g.type="text",g.id=this.pdfViewer.element.id+"_e-pv-Signtext-box",c.appendChild(g);var u=new n.TextBox({placeholder:this.pdfViewer.localeObj.getConstant("Enter Signature as Name"),floatLabelType:"Auto"});u.appendTo(g);var f=t.createElement("div",{id:this.pdfViewer.element.id+"_font_appearance",className:"e-pv-font-appearance-style"});f.classList.add("e-pv-canvas-signature"),f.style.height=o-35+"px",f.style.border="1px dotted #bdbdbd",f.style.boxSizing="border-box",f.style.borderRadius="2px",f.style.backgroundColor="white",f.style.color="black",f.style.marginTop="8px",f.style.paddingRight="0px",c.appendChild(f),(h=document.createElement("input")).type="checkbox",h.id="checkbox1",c.appendChild(h),(d=new A.CheckBox({label:p,disabled:!1,checked:!1})).appendTo(h),!this.issaveTypeSignature||this.pdfViewerBase.isInitialField||this.pdfViewerBase.isToolbarSignClicked?this.issaveTypeInitial&&this.pdfViewerBase.isInitialField&&!this.pdfViewerBase.isToolbarSignClicked&&(d.checked=!0):d.checked=!0,u.addEventListener("input",this.renderSignatureText.bind(this)),this.enableCreateButton(!0);var m=t.createElement("div",{id:this.pdfViewer.element.id+"Signature_tab"}),w=t.createElement("div",{id:this.pdfViewer.element.id+"upload_appearance",className:"e-pv-signature-apperance",styles:"padding-top:30px"}),C=document.createElement("div");C.id=this.pdfViewer.element.id+"_e-pv-upload-button",w.appendChild(C);var B=new A.Button({cssClass:"e-pv-sign-upload",content:this.pdfViewer.localeObj.getConstant("Browse Signature Image")});B.appendTo(C),B.element.style.position="absolute";var S=t.createElement("canvas",{id:this.pdfViewer.element.id+"_signatureuploadCanvas_",className:"e-pv-signature-uploadcanvas"});this.pdfViewer.element.offsetWidth>750?S.width=714:S.width=this.pdfViewer.element.offsetWidth-35,S.classList.add("e-pv-canvas-signature"),S.height=o,S.style.height=o+"px",B.element.style.left=S.width/2-50+"px",B.element.style.top=parseFloat(S.style.height)/2+20+"px",S.style.border="1px dotted #bdbdbd",S.style.backgroundColor="transparent",S.style.boxSizing="border-box",S.style.borderRadius="2px",S.style.zIndex="0";var y="";if(this.pdfViewerBase.isInitialField||!this.issaveImageSignature||this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField&&this.issaveImageInitial&&!this.pdfViewerBase.isToolbarSignClicked&&(y=this.drawSavedImageSignature()):y=this.drawSavedImageSignature(),""!==y&&!this.pdfViewerBase.isToolbarSignClicked){this.clearUploadString=!1;var I=S.getContext("2d"),E=new Image;E.src=y,E.onload=function(){I.drawImage(E,0,0,S.width,S.height)},B.element.style.display="hidden"}w.appendChild(S),(h=document.createElement("input")).type="checkbox",h.id="checkbox2",w.appendChild(h),(d=new A.CheckBox({label:p,disabled:!1,checked:!1})).appendTo(h),!this.issaveImageSignature||this.pdfViewerBase.isInitialField||this.pdfViewerBase.isToolbarSignClicked?this.issaveImageInitial&&this.pdfViewerBase.isInitialField&&!this.pdfViewerBase.isToolbarSignClicked&&(d.checked=!0):d.checked=!0,C.addEventListener("click",this.uploadSignatureImage.bind(this)),this.signfontStyle=[{FontName:"Helvetica"},{FontName:"Times New Roman"},{FontName:"Courier"},{FontName:"Symbol"}];var v=[];if(this.pdfViewerBase.isToolbarSignClicked&&!t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.typeSignatureFonts))for(var b=0;b<4;b++)t.isNullOrUndefined(this.pdfViewer.handWrittenSignatureSettings.typeSignatureFonts[parseInt(b.toString(),10)])||(this.signfontStyle[parseInt(b.toString(),10)].FontName=this.pdfViewer.handWrittenSignatureSettings.typeSignatureFonts[parseInt(b.toString(),10)]);this.setCustomFonts();for(var V=0;V<this.signfontStyle.length;V++)v[parseInt(V.toString(),10)]=document.createElement("div"),v[parseInt(V.toString(),10)].id="_font_signature"+V,v[parseInt(V.toString(),10)].classList.add("e-pv-font-sign"),275===o?(v[parseInt(V.toString(),10)].style.fontSize="13px",v[parseInt(V.toString(),10)].style.paddingTop="30px",v[parseInt(V.toString(),10)].style.height="78px"):250===o&&(v[parseInt(V.toString(),10)].style.fontSize="12px",v[parseInt(V.toString(),10)].style.paddingTop="25px",v[parseInt(V.toString(),10)].style.height="68px");this.fontsign=v;var D=this,x=[];return x=this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField?this.showHideSignatureTab((this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings?this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings:this.pdfViewer.initialDialogSettings)&&(this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings?this.pdfViewer.handWrittenSignatureSettings.initialDialogSettings.displayMode:this.pdfViewer.initialDialogSettings.displayMode),a,c,w):this.showHideSignatureTab((this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings?this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings:this.pdfViewer.signatureDialogSettings)&&(this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings?this.pdfViewer.handWrittenSignatureSettings.signatureDialogSettings.displayMode:this.pdfViewer.signatureDialogSettings.displayMode),a,c,w):this.pdfViewerBase.isInitialField?this.showHideSignatureTab(this.pdfViewer.initialFieldSettings.initialDialogSettings?this.pdfViewer.initialFieldSettings.initialDialogSettings.displayMode:7,a,c,w):this.showHideSignatureTab(this.pdfViewer.signatureFieldSettings.signatureDialogSettings?this.pdfViewer.signatureFieldSettings.signatureDialogSettings.displayMode:7,a,c,w),this.tabObj=new s.Tab({selected:function(e){D.handleSelectEvent(e)},selecting:function(e){D.select(e)},items:x}),this.tabObj.appendTo(m),"DRAW"===x[0].header.label?this.signaturetype="Draw":"TYPE"===x[0].header.label?this.signaturetype="Type":this.signaturetype="Image",m},r.prototype.setCustomFonts=function(){if(!this.pdfViewerBase.isToolbarSignClicked&&!t.isNullOrUndefined(this.pdfViewer.signatureFieldSettings.typeSignatureFonts)&&!this.pdfViewerBase.isInitialField)for(e=0;e<4;e++)t.isNullOrUndefined(this.pdfViewer.signatureFieldSettings.typeSignatureFonts[parseInt(e.toString(),10)])||(this.signfontStyle[parseInt(e.toString(),10)].FontName=this.pdfViewer.signatureFieldSettings.typeSignatureFonts[parseInt(e.toString(),10)]);if(!this.pdfViewerBase.isToolbarSignClicked&&!t.isNullOrUndefined(this.pdfViewer.initialFieldSettings.typeInitialFonts)&&this.pdfViewerBase.isInitialField)for(var e=0;e<4;e++)t.isNullOrUndefined(this.pdfViewer.initialFieldSettings.typeInitialFonts[parseInt(e.toString(),10)])||(this.signfontStyle[parseInt(e.toString(),10)].FontName=this.pdfViewer.initialFieldSettings.typeInitialFonts[parseInt(e.toString(),10)])},r.prototype.handleSelectEvent=function(e){var t="",i=document.getElementById(this.pdfViewer.element.id+"Signature_tab").ej2_instances[0];if(i&&i.items.length>0)for(var n=0;n<i.items.length;n++)i.items[parseInt(n.toString(),10)].header.text===e.selectedItem.textContent&&(t=i.items[parseInt(n.toString(),10)].header.label);if(this.clearSignatureCanvas(e),"draw"===t.toLocaleLowerCase()){this.signaturetype="Draw",this.enableCreateSignatureButton();var o=document.getElementById("checkbox");this.hideSignatureCheckbox(o)}else if("type"===t.toLocaleLowerCase()){(s=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_"))&&(this.drawSignatureDataUrl=s.toDataURL()),this.updateSignatureTypeValue(),this.signaturetype="Type",this.enableCreateSignatureButton();var r=document.getElementById("checkbox1");this.hideSignatureCheckbox(r);var a=document.getElementById(this.pdfViewer.element.id+"_e-pv-Signtext-box");this.pdfViewerBase.isInitialField||""===this.saveSignatureTypeString||""===a.value||this.pdfViewerBase.isToolbarSignClicked?this.pdfViewerBase.isInitialField&&""!==this.saveInitialTypeString&&""!==a.value&&!this.pdfViewerBase.isToolbarSignClicked&&this.renderSignatureText():this.renderSignatureText()}else if("upload"===t.toLocaleLowerCase()){var s=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");s&&(this.drawSignatureDataUrl=s.toDataURL()),this.signaturetype="Image",this.enableCreateSignatureButton();var l=document.getElementById("checkbox2");this.hideSignatureCheckbox(l);var d=document.getElementById(this.pdfViewer.element.id+"_e-pv-upload-button");""===this.saveSignatureUploadString||this.pdfViewerBase.isInitialField||this.clearUploadString||this.pdfViewerBase.isToolbarSignClicked||(this.enableCreateButton(!1),d.style.visibility="hidden",this.outputString=this.saveSignatureUploadString),""===this.saveInitialUploadString||!this.pdfViewerBase.isInitialField||this.clearUploadString||this.pdfViewerBase.isToolbarSignClicked||(this.enableCreateButton(!1),d.style.visibility="hidden",this.outputString=this.saveInitialUploadString)}this.pdfViewer.element.offsetWidth<750&&this.updateCanvasSize(),this.drawSignOnTabSwitch(),"upload"===t.toLocaleLowerCase()&&this.imageSignatureDataUrl&&this.imageSignOnTabSwitch()},r.prototype.enableCreateSignatureButton=function(){this.pdfViewerBase.isToolbarSignClicked||"Type"!==this.signaturetype?""!==this.outputString?this.enableCreateButton(!1):this.enableCreateButton(!0):""!==this.textValue?this.enableCreateButton(!1):this.enableCreateButton(!0)},r.prototype.showHideSignatureTab=function(t,i,n,o){var r=[];return t&e.DisplayMode.Draw&&r.push({header:{text:this.pdfViewer.localeObj.getConstant("Draw-hand Signature"),label:"DRAW"},content:i}),t&e.DisplayMode.Text&&r.push({header:{text:this.pdfViewer.localeObj.getConstant("Type Signature"),label:"TYPE"},content:n}),t&e.DisplayMode.Upload&&r.push({header:{text:this.pdfViewer.localeObj.getConstant("Upload Signature"),label:"UPLOAD"},content:o}),r},r.prototype.createSignatureFileElement=function(){var e=t.createElement("input",{id:this.pdfViewer.element.id+"_signElement",attrs:{type:"file"}});e.setAttribute("accept",".jpg,.jpeg,.png"),e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.visibility="hidden",document.body.appendChild(e),e.addEventListener("change",this.addStampImage)},r.prototype.uploadSignatureImage=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signElement");t.isNullOrUndefined(e)&&(this.createSignatureFileElement(),e=document.getElementById(this.pdfViewer.element.id+"_signElement")),e&&e.click()},r.prototype.renderSignatureText=function(){for(var e,i=document.getElementById(this.pdfViewer.element.id+"_font_appearance"),n=document.getElementById(this.pdfViewer.element.id+"_e-pv-Signtext-box"),o=0;o<this.signfontStyle.length;o++)this.fontsign[parseInt(o.toString(),10)].innerHTML=n.value,this.fontsign[parseInt(o.toString(),10)].style.fontFamily=this.signfontStyle[parseInt(o.toString(),10)].FontName,""!==this.fontName&&this.signfontStyle[parseInt(o.toString(),10)].FontName===this.fontName?(this.fontsign[parseInt(o.toString(),10)].classList.add("e-pv-selected-fontdiv"),this.fontsign[parseInt(o.toString(),10)].style.borderColor="red"):t.isNullOrUndefined(this.fontName)&&!t.isNullOrUndefined(this.signfontStyle[parseInt(o.toString(),10)].FontName)&&0===o&&(this.fontsign[parseInt(o.toString(),10)].classList.add("e-pv-selected-fontdiv"),this.fontsign[parseInt(o.toString(),10)].style.borderColor="red"),i.appendChild(this.fontsign[parseInt(o.toString(),10)]);for(o=0;o<this.signfontStyle.length;o++)document.getElementById("_font_signature"+o).addEventListener("click",this.typeSignatureclick.bind(this));e=""===n.value.trim(),this.enableCreateButton(e),this.enableClearbutton(e),this.pdfViewer.element.offsetWidth<750&&this.updateCanvasSize(),this.drawSignOnTabSwitch()},r.prototype.typeSignatureclick=function(){var e=event.target;if(""!==e.textContent.trim()){document.getElementsByClassName("e-pv-createbtn")[0].disabled=!1;for(var t=0;t<4;t++){var i=document.getElementById("_font_signature"+t);i&&(i.style.borderColor="",i.classList.remove("e-pv-selected-fontdiv"))}e.classList.add("e-pv-selected-fontdiv"),e.style.borderColor="red",this.outputString=e.textContent;try{this.fontName=JSON.parse(e.style.fontFamily)}catch(t){this.fontName=e.style.fontFamily}}},r.prototype.addSignatureCollection=function(e,t){var n,o=-1,r=-1,a=-1,s=-1,l=i.processPathData(this.outputString),d=document.createElement("canvas"),A=d.getContext("2d"),h=this.pdfViewerBase.currentSignatureAnnot.shapeAnnotationType;if("HandWrittenSignature"===h){if(0!==l.length){for(var p=0;p<l.length;p++){var c=l[parseInt(p.toString(),10)];if(-1===o)o=c.x,a=c.x,r=c.y,s=c.y;else{var g=c.x,u=c.y;o>=g&&(o=g),r>=u&&(r=u),a<=g&&(a=g),s<=u&&(s=u)}}var f=a-o,m=s-r,w=f/100,C=m/100,B=0,S=0;e?(d.width=t.currentWidth,d.height=t.currentHeight,w=f/e.width,C=m/e.height,B=e.x-t.currentLeft,S=e.y-t.currentTop):(d.width=100,d.height=100),A.beginPath();for(var y=0;y<l.length;y++){var g=((c=l[parseInt(y.toString(),10)]).x-o)/w+B,u=(c.y-r)/C+S;"M"===c.command?A.moveTo(g,u):"L"===c.command&&A.lineTo(g,u)}A.stroke(),A.closePath(),n=d.toDataURL()}}else n=this.outputString;if(e)this.saveImageString=n;else{var I={};I["sign_"+this.pdfViewerBase.imageCount]=this.outputString,this.outputcollection.push(I);var E={};E.height=this.pdfViewerBase.currentSignatureAnnot.bounds.height,E.width=this.pdfViewerBase.currentSignatureAnnot.bounds.width;var v=[];v.push({id:"sign_"+this.pdfViewerBase.imageCount,imageData:n,signatureType:h,fontFamily:this.pdfViewerBase.currentSignatureAnnot.fontFamily,bounds:E}),this.signaturecollection.push({image:v,isInitial:this.pdfViewerBase.isInitialField}),this.pdfViewerBase.imageCount++}},r.prototype.getSaveLimit=function(e){return e>this.maxSaveLimit?e=this.maxSaveLimit:e<1&&(e=1),e},r.prototype.RenderSavedSignature=function(){this.pdfViewerBase.signatureCount++;var e,t=this.pdfViewerBase.getZoomFactor();if(this.pdfViewerBase.isAddedSignClicked){var i=this.pdfViewer.annotation.createGUID();this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.isSignatureAdded=!0;var n=this.pdfViewerBase.currentPageNumber-1,o=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+n),r=0,a=0,s=this.pdfViewer.handWrittenSignatureSettings.width?this.pdfViewer.handWrittenSignatureSettings.width:100,l=this.pdfViewer.handWrittenSignatureSettings.height?this.pdfViewer.handWrittenSignatureSettings.height:100,d=this.pdfViewer.handWrittenSignatureSettings.thickness?this.pdfViewer.handWrittenSignatureSettings.thickness:1,A=this.pdfViewer.handWrittenSignatureSettings.opacity?this.pdfViewer.handWrittenSignatureSettings.opacity:1,h=this.pdfViewer.handWrittenSignatureSettings.strokeColor?this.pdfViewer.handWrittenSignatureSettings.strokeColor:"#000000";r=(parseFloat(o.style.width)/2-s/2)/t,a=(parseFloat(o.style.height)/2-l/2)/t;for(var p="",c=void 0,g=void 0,u=void 0,f=0;f<this.outputcollection.length;f++){var m=this.outputcollection[parseInt(f.toString(),10)];if((C=event.target)&&C.id==="sign_"+f||C&&C.id==="sign_border"+f){p=m["sign_"+f];break}}for(var w=0;w<this.signaturecollection.length;w++){var C=event.target,B=this.signaturecollection[parseInt(w.toString(),10)].image[0].id.split("_")[1];if(C&&C.id==="sign_"+B||C&&C.id==="sign_border"+B){c=this.signaturecollection[parseInt(w.toString(),10)].image[0].signatureType,g=this.signaturecollection[parseInt(w.toString(),10)].image[0].fontFamily,u=this.signaturecollection[parseInt(w.toString(),10)].image[0].bounds;break}}if("HandWrittenSignature"===c){var S=this.updateSignatureAspectRatio(p,!0);u.width!==S.width&&u.height!==S.height?(s=u.width,l=u.height):(s=S.width?S.width:s,l=S.height?S.height:l)}else s=u.width,l=u.height;e={id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:r,y:a,width:s,height:l},pageIndex:n,data:p,shapeAnnotationType:c,opacity:A,fontFamily:g,strokeColor:h,thickness:d,signatureName:i},this.pdfViewerBase.currentSignatureAnnot=e,this.pdfViewerBase.isAddedSignClicked=!1}else this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.drawSignature()},r.prototype.updateCanvasSize=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");this.setTabItemWidth(e);var t=document.getElementById(this.pdfViewer.element.id+"_signatureuploadCanvas_");this.setTabItemWidth(t);var i=document.getElementById(this.pdfViewer.element.id+"_font_appearance");this.setTabItemWidth(i)},r.prototype.setTabItemWidth=function(e){var t=2,i=document.querySelector(".e-dlg-content");if(i){var n=getComputedStyle(i);t=t+parseInt(n.paddingLeft,10)+parseInt(n.paddingRight,10)}if(e&&this.signatureDialog&&this.signatureDialog.visible){if("DIV"!==e.tagName){var o=e.getContext("2d"),r=e.toDataURL(),a=new Image;a.src=r,a.onload=function(){o.drawImage(a,0,0,e.width,e.height)}}this.pdfViewer.element.parentElement.clientWidth>750?(e.width=714,e.style.width="714px"):(e.width=this.pdfViewer.element.parentElement.clientWidth-t,e.style.width=e.width+"px")}var s=document.getElementsByClassName("e-pv-font-sign");if(e&&s&&s.length>0)for(var l=0;l<s.length;l++)s[parseInt(l.toString(),10)].style.width=e.width/2-50+"px"},r.prototype.drawSignOnTabSwitch=function(){var e=this,t=new Image;t.onload=function(){var i=document.getElementById(e.pdfViewer.element.id+"_signatureCanvas_");i&&i.getContext("2d").drawImage(t,0,0)},t.src=this.drawSignatureDataUrl},r.prototype.imageSignOnTabSwitch=function(){var e=this,t=new Image;t.onload=function(){var i=document.getElementById(e.pdfViewer.element.id+"_signatureuploadCanvas_");if(i){var n=i.getContext("2d");document.getElementById(e.pdfViewer.element.id+"_e-pv-upload-button").style.visibility="hidden",n.drawImage(t,0,0,i.width,i.height),e.enableCreateButton(!1),e.signatureImageHeight=t.naturalHeight,e.signatureImageWidth=t.naturalWidth}},t.src=this.imageSignatureDataUrl},r.prototype.signaturePanelMouseDown=function(e){"contextmenu"!==e.type&&(e.preventDefault(),this.findMousePosition(e),this.mouseDetection=!0,this.oldX=this.mouseX,this.oldY=this.mouseY,this.newObject=[],this.drawMousePosition(e),this.mouseMoving=!0)},r.prototype.enableCreateButton=function(e){var t=document.getElementsByClassName("e-pv-createbtn")[0];t&&(t.disabled=e),this.enableClearbutton(e)},r.prototype.enableClearbutton=function(e){var t=document.getElementsByClassName("e-pv-clearbtn")[0];t&&(t.disabled=e)},r.prototype.signaturePanelMouseMove=function(e){this.mouseDetection&&"Draw"===this.signaturetype&&(this.findMousePosition(e),this.enableCreateButton(!1),this.drawMousePosition(e))},r.prototype.findMousePosition=function(e){if(-1!==e.type.indexOf("touch")){var t=(e=e).target.getBoundingClientRect();this.mouseX=e.changedTouches[0].clientX-t.left,this.mouseY=e.changedTouches[0].clientY-t.top}else e=e,this.mouseX=e.offsetX,this.mouseY=e.offsetY},r.prototype.drawMousePosition=function(e){this.mouseDetection&&(this.drawSignatureInCanvas(),this.oldX=this.mouseX,this.oldY=this.mouseY)},r.prototype.drawSignatureInCanvas=function(){var e=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_").getContext("2d");e.beginPath(),e.moveTo(this.oldX,this.oldY),e.lineTo(this.mouseX,this.mouseY),e.stroke(),e.lineWidth=2,e.arc(this.oldX,this.oldY,1,0,2*Math.PI,!0),e.closePath(),this.newObject.push(this.mouseX,this.mouseY)},r.prototype.signaturePanelMouseUp=function(){this.mouseDetection&&this.convertToPath(this.newObject),this.mouseDetection=!1,"touchend"===event.type&&(this.canvasTouched=!0)},r.prototype.signaturePanelMouseLeave=function(){this.mouseDetection&&this.convertToPath(this.newObject),this.mouseDetection=!1,this.mouseMoving=!1},r.prototype.convertToPath=function(e){this.movePath(e[0],e[1]),this.linePath(e[0],e[1]);for(var t=2;t<e.length;t+=2)this.linePath(e[parseInt(t.toString(),10)],e[t+1])},r.prototype.linePath=function(e,t){this.outputString+="L"+e+","+t+" "},r.prototype.movePath=function(e,t){this.outputString+="M"+e+","+t+" "},r.prototype.clearSignatureCanvas=function(e){var i=!0,n=[];!e||t.isNullOrUndefined(e.previousIndex)||t.isNullOrUndefined(e.selectedIndex)?(this.outputString="",this.newObject=[]):(i=!1,0===e.previousIndex?(this.drawOutputString=this.outputString,n=this.newObject):2===e.previousIndex&&(this.imageOutputString=this.outputString),this.outputString="",this.newObject=[],0===e.selectedIndex?(this.outputString=this.drawOutputString,this.newObject=n):2===e.selectedIndex&&(this.outputString=this.imageOutputString));var o=!1,r=!1,a=!1;if(e&&e.currentTarget&&e.currentTarget.classList.contains("e-pv-clearbtn"))if(i=!1,"Draw"===this.signaturetype){o=!0;var s=document.getElementById("checkbox"),l=document.getElementById("checkbox");s&&l.nextElementSibling&&(l.nextElementSibling.classList.remove("e-check"),s.checked=!1)}else if("Type"===this.signaturetype){r=!0;var s=document.getElementById("checkbox1"),l=document.getElementById("checkbox1");s&&l.nextElementSibling&&(l.nextElementSibling.classList.remove("e-check"),s.checked=!1,this.textValue="")}else{a=!0,this.clearUploadString=!0;var s=document.getElementById("checkbox2"),l=document.getElementById("checkbox2");s&&l.nextElementSibling&&(l.nextElementSibling.classList.remove("e-check"),s.checked=!1)}var d=document.getElementById(this.pdfViewer.element.id+"_signatureCanvas_");(d&&i||o)&&(h=d.getContext("2d")).clearRect(0,0,d.width,d.height);var A=document.getElementById(this.pdfViewer.element.id+"_signatureuploadCanvas_");if(A&&i||a){var h=A.getContext("2d");h.clearRect(0,0,A.width,A.height);var p=document.getElementById(this.pdfViewer.element.id+"_e-pv-upload-button");p&&(p.style.visibility="")}var c=document.getElementById(this.pdfViewer.element.id+"_font_appearance"),g=document.getElementById(this.pdfViewer.element.id+"_e-pv-Signtext-box");(c&&g&&i||r)&&(g.value="",t.isBlazor()||(c.innerHTML="")),this.enableCreateButton(!0)},r.prototype.closeSignaturePanel=function(){this.pdfViewerBase.currentTarget&&(this.pdfViewerBase.drawSignatureWithTool=!0),this.clearSignatureCanvas(),t.isBlazor()||this.signatureDialog.hide(),this.pdfViewerBase.isToolbarSignClicked=!1,this.pdfViewerBase.drawSignatureWithTool=!1,this.drawOutputString="",this.imageOutputString=""},r.prototype.saveSignature=function(){var e=null;e=this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]:Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sign");for(var n=[],o=0;o<this.pdfViewerBase.pageCount;o++)n[parseInt(o.toString(),10)]=[];if(e)for(var r=JSON.parse(e),a=0;a<r.length;a++){var s=[],l=r[parseInt(a.toString(),10)];if(l){for(var d=0;l.annotations.length>d;d++){if(this.pdfViewer.isSignatureEditable){var A=this.pdfViewer.handWrittenSignatureSettings,h=this.pdfViewer.annotationSettings,p="Guest"!==A.author?A.author:h.author?h.author:"Guest";l.annotations[parseInt(d.toString(),10)].author=p}var c=l.annotations[parseInt(d.toString(),10)].strokeColor?l.annotations[parseInt(d.toString(),10)].strokeColor:"black";if(l.annotations[parseInt(d.toString(),10)].strokeColor=JSON.stringify(this.getRgbCode(c)),l.annotations[parseInt(d.toString(),10)].bounds=JSON.stringify(this.pdfViewer.annotation.getBounds(l.annotations[parseInt(d.toString(),10)].bounds,l.pageIndex)),"HandWrittenSignature"===l.annotations[parseInt(d.toString(),10)].shapeAnnotationType||"ink"===l.annotations[parseInt(d.toString(),10)].signatureName){var g=i.processPathData(l.annotations[parseInt(d.toString(),10)].data),u=i.splitArrayCollection(g);l.annotations[parseInt(d.toString(),10)].data=JSON.stringify(u)}else if("SignatureText"!==l.annotations[parseInt(d.toString(),10)].shapeAnnotationType||this.checkDefaultFont(l.annotations[parseInt(d.toString(),10)].fontFamily))l.annotations[parseInt(d.toString(),10)].data=JSON.stringify(l.annotations[parseInt(d.toString(),10)].data);else{var f=t.createElement("canvas"),m=JSON.parse(l.annotations[parseInt(d.toString(),10)].bounds);f.width=m&&m.width||150,f.height=m&&m.height||2*l.annotations[parseInt(d.toString(),10)].fontSize;var w=f.getContext("2d"),C=f.width/2,B=f.height/2+l.annotations[parseInt(d.toString(),10)].fontSize/2-10;w.textAlign="center",w.font=l.annotations[parseInt(d.toString(),10)].fontSize+"px "+l.annotations[parseInt(d.toString(),10)].fontFamily,w.fillText(l.annotations[parseInt(d.toString(),10)].data,C,B),l.annotations[parseInt(d.toString(),10)].data=JSON.stringify(f.toDataURL("image/png")),l.annotations[parseInt(d.toString(),10)].shapeAnnotationType="SignatureImage"}}s=l.annotations}n[l.pageIndex]=s}return JSON.stringify(n)},r.prototype.checkDefaultFont=function(e){return"Helvetica"===e||"Times New Roman"===e||"Courier"===e||"Symbol"===e},r.prototype.getRgbCode=function(e){e.match(/#([a-z0-9]+)/gi)||e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(e=this.pdfViewer.annotationModule.nameToHash(e));var i=e.split(",");return t.isNullOrUndefined(i[1])&&(i=(e=this.pdfViewer.annotationModule.getValue(e,"rgba")).split(",")),{r:parseInt(i[0].split("(")[1],10),g:parseInt(i[1],10),b:parseInt(i[2],10),a:parseInt(i[3],10)}},r.prototype.renderSignature=function(e,i){var n,o="",r=this.pdfViewerBase.currentSignatureAnnot,a=r.signatureName;if((""===a||t.isNullOrUndefined(a))&&(a=this.pdfViewer.annotation.createGUID()),r){"HandWrittenSignature"===this.pdfViewerBase.currentSignatureAnnot.shapeAnnotationType&&(n={id:r.id,bounds:{x:e,y:i,width:r.bounds.width,height:r.bounds.height},pageIndex:r.pageIndex,data:r.data,shapeAnnotationType:"HandWrittenSignature",opacity:r.opacity,fontFamily:r.fontFamily,fontSize:r.fontSize,strokeColor:r.strokeColor,thickness:r.thickness,signatureName:a}),"SignatureText"===this.pdfViewerBase.currentSignatureAnnot.shapeAnnotationType?n={id:r.id,bounds:{x:e,y:i,width:r.bounds.width,height:r.bounds.height},pageIndex:r.pageIndex,data:r.data,shapeAnnotationType:"SignatureText",opacity:r.opacity,fontFamily:r.fontFamily,fontSize:r.fontSize,strokeColor:r.strokeColor,thickness:r.thickness,signatureName:a}:"SignatureImage"===this.pdfViewerBase.currentSignatureAnnot.shapeAnnotationType&&(n={id:r.id,bounds:{x:e,y:i,width:r.bounds.width,height:r.bounds.height},pageIndex:r.pageIndex,data:r.data,shapeAnnotationType:"SignatureImage",opacity:r.opacity,fontFamily:r.fontFamily,fontSize:r.fontSize,strokeColor:r.strokeColor,thickness:r.thickness,signatureName:a});var s=this.pdfViewer.add(n),l=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",r.pageIndex);this.pdfViewer.renderDrawing(l,r.pageIndex),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.select([s.id]),this.pdfViewerBase.signatureAdded=!0,this.storeSignatureData(r.pageIndex,n),o="Draw"===this.signaturetype?this.saveImageString:r.data,this.pdfViewer.fireSignatureAdd(r.pageIndex,a,r.shapeAnnotationType,r.bounds,r.opacity,r.strokeColor,r.thickness,o),this.pdfViewer.annotation&&this.pdfViewer.annotation.onAnnotationMouseDown(),this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.signatureCount++}},r.prototype.renderExistingSignature=function(e,n,o,r){var a,s=!1;if(!o)for(var l=0;l<this.signAnnotationIndex.length;l++)if(this.signAnnotationIndex[parseInt(l.toString(),10)]===n){s=!0;break}if(e&&!s){e.length>0&&-1===this.signAnnotationIndex.indexOf(n)&&this.signAnnotationIndex.push(n);for(var d=0;d<e.length;d++){var A=e[parseInt(d.toString(),10)];if(A){var h=A.PathData;o&&(h=A.IsSignature?A.PathData:"SignatureImage"===A.AnnotationType||"SignatureText"===A.AnnotationType?JSON.parse(JSON.stringify(A.PathData)):h.includes("command")?i.getPathString(JSON.parse(A.PathData)):A.PathData),this.outputString=h;var p=this.pdfViewer.annotationModule.inkAnnotationModule.calculateInkSize(this.outputString);this.outputString="";var c=0,g=1,u=A.Bounds;!p||"Ink"!==A.AnnotationType&&"signature"!==A.AnnotationType&&"Signature"!==A.AnnotationType||(p.height<1?(c=u.Height?u.Height:u.height,g=u.Height?u.Height:u.height):p.width<1&&(c=u.Width?u.Width:u.width,g=u.Width?u.Width:u.width));var f=t.isNullOrUndefined(u.X)?u.x+c/2:u.X+c/2,m=t.isNullOrUndefined(u.Y)?u.y+c/2:u.Y+c/2,w=u.Width?u.Width-(g-1):u.width-(g-1),C=u.Height?u.Height-(g-1):u.height-(g-1);a="SignatureText"===A.AnnotationType?{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:f,y:m,width:w,height:C},pageIndex:n,data:h,fontFamily:A.FontFamily,fontSize:A.FontSize,shapeAnnotationType:"SignatureText",opacity:A.Opacity,strokeColor:A.StrokeColor,thickness:A.Thickness,signatureName:A.SignatureName}:"SignatureImage"===A.AnnotationType?{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:f,y:m,width:w,height:C},pageIndex:n,data:h,shapeAnnotationType:"SignatureImage",opacity:A.Opacity,strokeColor:A.StrokeColor,thickness:A.Thickness,signatureName:A.SignatureName}:{id:"sign"+this.pdfViewerBase.signatureCount,bounds:{x:f,y:m,width:w,height:C},pageIndex:n,data:h,shapeAnnotationType:"HandWrittenSignature",opacity:A.Opacity,strokeColor:A.StrokeColor,thickness:A.Thickness,signatureName:A.SignatureName?A.SignatureName:"ink"}}this.pdfViewer.add(a),this.isAddAnnotationProgramatically&&this.pdfViewer.fireSignatureAdd(a.pageIndex,a.signatureName,a.shapeAnnotationType,a.bounds,a.opacity,a.strokeColor,a.thickness,a.data);var B=A.pageIndex?A.pageIndex:A.PageNumber;if(!(!(o&&r||t.isNullOrUndefined(o))&&o)){var S=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",B);this.pdfViewer.renderDrawing(S,a.pageIndex)}this.storeSignatureData(a.pageIndex,a),this.pdfViewerBase.currentSignatureAnnot=null,this.pdfViewerBase.signatureCount++}}},r.prototype.storeSignatureData=function(e,i){this.pdfViewer.annotation.addAction(t.isNullOrUndefined(i.pageIndex)?i.PageIndex:i.pageIndex,null,i,"Addition","",i,i);var n,o,r,a,s,l=null,d=this.pdfViewerBase.getZoomFactor();i.bounds?(n=i.bounds.left?i.bounds.left:i.bounds.x,o=i.bounds.top?i.bounds.top:i.bounds.y,r=i.bounds.width,a=i.bounds.height,s=i.pageIndex):(n=i.Bounds.left?i.Bounds.left:i.Bounds.x,o=i.Bounds.top?i.Bounds.top:i.Bounds.y,r=i.LineBounds.Width,a=i.LineBounds.Height,s=i.PageIndex),i.wrapper&&i.wrapper.bounds&&(n=i.wrapper.bounds.left,o=i.wrapper.bounds.top),"SignatureText"===i.shapeAnnotationType&&i.wrapper&&i.wrapper.children&&i.wrapper.children.length>1&&i.wrapper.children[1]&&(n=n+i.wrapper.pivot.x+(this.signatureTextContentLeft-this.signatureTextContentTop*(d-d/this.signatureTextContentLeft)),o=o+(i.wrapper.children[1].bounds.y-o-(i.wrapper.children[1].bounds.y-o)/3)+i.wrapper.pivot.y+this.signatureTextContentTop*d),l={id:i.id?i.id:null,bounds:{left:n,top:o,width:r,height:a},shapeAnnotationType:i.shapeAnnotationType?i.shapeAnnotationType:"ink",opacity:i.opacity?i.opacity:1,thickness:i.thickness?i.thickness:1,strokeColor:i.strokeColor?i.strokeColor:null,pageIndex:s,data:i.data?i.data:i.Value,fontSize:i.fontSize?i.fontSize:null,fontFamily:i.fontFamily?i.fontFamily:null,signatureName:i.signatureName?i.signatureName:i.Name},Fi.sessionStorageManager.getWindowSessionStorageSize()+Math.round(JSON.stringify(l).length/1024)>4500&&(this.pdfViewerBase.isStorageExceed=!0,this.pdfViewer.annotationModule.clearAnnotationStorage(),!this.pdfViewerBase.isFormStorageExceed&&this.pdfViewer.formFieldsModule&&this.pdfViewer.formFieldsModule.clearFormFieldStorage());var A=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sign");if(A){this.storeSignatureCollections(l,e);var h=JSON.parse(A);Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_sign");var p=this.pdfViewer.annotationModule.getPageCollection(h,e);if(!t.isNullOrUndefined(p)&&h[parseInt(p.toString(),10)])h[parseInt(p.toString(),10)].annotations.push(l),h[parseInt(p.toString(),10)].annotations.indexOf(l);else{var c={pageIndex:e,annotations:[]};c.annotations.push(l),c.annotations.indexOf(l),h.push(c)}f=JSON.stringify(h);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]=f:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_sign",f)}else{this.storeSignatureCollections(l,e);var g={pageIndex:e,annotations:[]};g.annotations.push(l),g.annotations.indexOf(l);var u=[];u.push(g);var f=JSON.stringify(u);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]=f:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_sign",f)}},r.prototype.modifySignatureCollection=function(e,t,i,n){this.pdfViewerBase.updateDocumentEditedProperty(!0);var o=null,r=this.getAnnotations(t,null),a=this.pdfViewerBase.getZoomFactor();if(null!=r&&i){for(var s=0;s<r.length;s++)if(i.id===r[parseInt(s.toString(),10)].id){if("bounds"===e){var l=void 0,d=void 0;"SignatureText"===i.shapeAnnotationType&&i.wrapper&&i.wrapper.children[1]?(l=i.wrapper.children[0].bounds.y,d=i.wrapper.children[0].bounds.x+i.wrapper.pivot.x+(this.signatureTextContentLeft-this.signatureTextContentTop*(a-a/this.signatureTextContentLeft)),l=l+(i.wrapper.children[1].bounds.y-l-(i.wrapper.children[1].bounds.y-l)/3)+i.wrapper.pivot.y+this.signatureTextContentTop*a,r[parseInt(s.toString(),10)].bounds={left:d,top:l,width:i.bounds.width,height:i.bounds.height}):r[parseInt(s.toString(),10)].bounds={left:i.wrapper.bounds.left,top:i.wrapper.bounds.top,width:i.bounds.width,height:i.bounds.height},r[parseInt(s.toString(),10)].fontSize=i.fontSize}else if("stroke"===e)r[parseInt(s.toString(),10)].strokeColor=i.wrapper.children[0].style.strokeColor;else if("opacity"===e)r[parseInt(s.toString(),10)].opacity=i.wrapper.children[0].style.opacity;else if("thickness"===e)r[parseInt(s.toString(),10)].thickness=i.wrapper.children[0].style.strokeWidth;else if("delete"===e){this.updateSignatureCollection(r[parseInt(s.toString(),10)]),o=r.splice(s,1)[0];break}if(e&&"delete"!==e&&this.storeSignatureCollections(r[parseInt(s.toString(),10)],t),n){r[parseInt(s.toString(),10)].opacity=i.wrapper.children[0].style.opacity,r[parseInt(s.toString(),10)].strokeColor=i.wrapper.children[0].style.strokeColor,r[parseInt(s.toString(),10)].thickness=i.wrapper.children[0].style.strokeWidth,this.storeSignatureCollections(r[parseInt(s.toString(),10)],t);break}}this.manageAnnotations(r,t)}return o},r.prototype.storeSignatureCollections=function(e,t){var i=this.checkSignatureCollection(e),n=B(e);n.annotationId=e.signatureName,n.pageNumber=t,delete n.annotName,e.id&&(n.uniqueKey=e.id,delete n.id),i.isExisting?this.pdfViewer.signatureCollection.splice(i.position,0,n):this.pdfViewer.signatureCollection.push(n)},r.prototype.checkSignatureCollection=function(e){var t=this.pdfViewer.signatureCollection;if(t&&e)for(var i=0;i<t.length;i++)if((t[parseInt(i.toString(),10)].annotationId?t[parseInt(i.toString(),10)].annotationId:t[parseInt(i.toString(),10)].signatureName)===e.signatureName&&(t[parseInt(i.toString(),10)].pageNumber===e.pageNumber||t[parseInt(i.toString(),10)].pageNumber===e.pageIndex))return this.pdfViewer.signatureCollection.splice(i,1),{isExisting:!0,position:i};return{isExisting:!1,position:null}},r.prototype.updateSignatureCollection=function(e){var t=this.pdfViewer.signatureCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].annotationId===e.signatureName&&(t[parseInt(i.toString(),10)].pageNumber===e.pageNumber||t[parseInt(i.toString(),10)].pageNumber===e.pageIndex)){this.pdfViewer.signatureCollection.splice(i,1);break}},r.prototype.addInCollection=function(e,t){if(t){this.storeSignatureCollections(t,e);var i=this.getAnnotations(e,null);i&&i.push(t),this.manageAnnotations(i,e)}},r.prototype.getAnnotations=function(e,i){var n,o=null;if(o=this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]:Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sign")){var r=JSON.parse(o),a=this.pdfViewer.annotationModule.getPageCollection(r,e);n=!t.isNullOrUndefined(a)&&r[parseInt(a.toString(),10)]?r[parseInt(a.toString(),10)].annotations:i}else n=i;return n},r.prototype.manageAnnotations=function(e,t){var i=null;if(i=this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]:Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_sign")){var n=JSON.parse(i);Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_annotations_sign");var o=this.pdfViewer.annotationModule.getPageCollection(n,t);null!=o&&n[parseInt(o.toString(),10)]&&(n[parseInt(o.toString(),10)].annotations=e);var r=JSON.stringify(n);this.pdfViewerBase.isStorageExceed?this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_sign"]=r:Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_sign",r)}},r.prototype.showSignatureDialog=function(e){e&&this.createSignaturePanel()},r.prototype.setAnnotationMode=function(){this.pdfViewerBase.isToolbarSignClicked=!0,this.pdfViewerBase.isInitialField=!1,this.showSignatureDialog(!0)},r.prototype.setInitialMode=function(){this.pdfViewerBase.isToolbarSignClicked=!0,this.pdfViewerBase.isInitialField=!0,this.showSignatureDialog(!0)},r.prototype.ConvertPointToPixel=function(e){return e*(96/72)},r.prototype.updateSignatureCollections=function(e,t,n){if(e){var o=e.Bounds,r=o.X,a=o.Y,s=o.Width,l=o.Height,d=e.PathData;return n&&(d=i.getPathString(JSON.parse(e.PathData))),{id:"sign"+e.SignatureName,bounds:{x:r,y:a,width:s,height:l},pageIndex:t,data:d,shapeAnnotationType:"HandWrittenSignature",opacity:e.Opacity,strokeColor:e.StrokeColor,thickness:e.Thickness,signatureName:e.SignatureName}}},r.prototype.destroy=function(){Fi.sessionStorageManager.removeItem("_annotations_sign");var e=document.getElementById(this.pdfViewer.element.id+"_signElement");e&&(e.removeEventListener("change",this.addStampImage),e.parentElement&&e.parentElement.removeChild(e)),this.signatureDialog&&this.signatureDialog.destroy(),this.mouseDetection=null,this.mouseMoving=!0,this.canvasTouched=!1,this.signatureImageWidth=null,this.signatureImageHeight=null,this.oldX=null,this.mouseX=null,this.oldY=null,this.mouseY=null,this.imageSignatureDataUrl="",this.drawSignatureDataUrl="",this.newObject=null,this.outputString="",this.drawOutputString="",this.imageOutputString="",this.signatureDialog=null,this.signaturecollection=[],this.outputcollection=[],this.signAnnotationIndex=null,this.fontName="",this.fontsign=[],this.signfontStyle=[],this.signtypevalue="",this.signfont="",this.signHeight="",this.signWidth="",this.signaturetype="",this.tabObj=null,this.isSaveSignature=!1,this.isSaveInitial=!1,this.isInitialFiledSaveSignature=!1,this.isSignatureFieldsSaveSignature=!1,this.issaveTypeSignature=!1,this.issaveImageSignature=!1,this.issaveTypeInitial=!1,this.issaveImageInitial=!1,this.saveSignatureTypeString="",this.saveInitialTypeString="",this.saveTypeString="",this.signatureTypeString="",this.initialTypeString="",this.saveUploadString="",this.saveSignatureUploadString="",this.saveInitialUploadString="",this.signatureUploadString="",this.initialUploadString="",this.clearUploadString=!1,this.textValue="",this.signatureDrawString="",this.initialDrawString="",this.signatureTextContentTop=.2,this.signatureTextContentLeft=.7,this.saveSignatureString="",this.saveInitialString="",this.saveImageString="",this.currentTarget=null,this.signatureFieldCollection=[],this.signatureImageString="",this.initialImageString="",this.maxSaveLimit=5,this.isAddAnnotationProgramatically=null},r.prototype.updateSignatureDetails=function(e,n,o){n=e?e.offset?e.offset:{x:10,y:10}:(e={offset:{x:10,y:10},pageNumber:0,width:void 0,height:void 0}).offset;var r=this.pdfViewer.annotation.createGUID(),a=this.pdfViewer.annotation.updateSettings(this.pdfViewer.handWrittenSignatureSettings),s=this.pdfViewer.handWrittenSignatureSettings.annotationSelectorSettings;this.pdfViewerBase.updateSelectorSettings(s),e.width=e.width?e.width:this.pdfViewer.handWrittenSignatureSettings.width?this.pdfViewer.handWrittenSignatureSettings.width:150,e.height=e.height?e.height:this.pdfViewer.handWrittenSignatureSettings.height?this.pdfViewer.handWrittenSignatureSettings.height:100,e.thickness=e.thickness?e.thickness:this.pdfViewer.handWrittenSignatureSettings.thickness?this.pdfViewer.handWrittenSignatureSettings.thickness:1,e.opacity=e.opacity?e.opacity:this.pdfViewer.handWrittenSignatureSettings.opacity?this.pdfViewer.handWrittenSignatureSettings.opacity:1,e.strokeColor=e.strokeColor?e.strokeColor:this.pdfViewer.handWrittenSignatureSettings.strokeColor?this.pdfViewer.handWrittenSignatureSettings.strokeColor:"#000000",e.path=e.path?e.path:this.pdfViewer.handWrittenSignatureSettings.path?this.pdfViewer.handWrittenSignatureSettings.path:"",e.canSave=!!e.canSave&&e.canSave,e.signatureItem=e.signatureItem?e.signatureItem:["Signature"],e.fontFamily=e.fontFamily?e.fontFamily:"Helvetica";var l,d,A;"Initial"===e.signatureItem[0]?(l=e.initialDialogSettings.displayMode?e.initialDialogSettings.displayMode:1,A=e.saveInitialLimit?e.saveInitialLimit:this.pdfViewer.handWrittenSignatureSettings.saveInitialLimit,this.pdfViewer.handWrittenSignatureSettings.saveInitialLimit=this.pdfViewer.handWrittenSignatureSettings.saveInitialLimit<A?A:this.pdfViewer.handWrittenSignatureSettings.saveInitialLimit):(l=e.signatureDialogSettings.displayMode?e.signatureDialogSettings.displayMode:1,d=e.saveSignatureLimit?e.saveSignatureLimit:this.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit,this.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit=this.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit<d?d:this.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit);var h,p=[];if(1===l){h="signature";var c=e.path?e.path:"";if(!t.isNullOrUndefined(c))if("M"===c[0]||"L"===c[0]){var g=i.processPathData(c),u=i.splitArrayCollection(g);c=JSON.stringify(u)}else c=i.getPathString(JSON.parse(c));e.path=c}2===l&&(e.height=65,h="SignatureText"),4===l&&(h="SignatureImage");var f={SignatureName:r,AnnotationSettings:a,AnnotationType:h,AnnotationSelectorSettings:e.annotationSelectorSettings?e.annotationSelectorSettings:s,Opacity:e.opacity,PathData:e.path,PageNumber:o,FontFamily:e.fontFamily,FontSize:32,StrokeColor:e.strokeColor,Thickness:e.thickness,Bounds:{x:n.x,y:n.y,width:e.width,height:e.height}};if(p[0]=f,e.canSave){var m={x:n.x,y:n.y,width:e.width,height:e.height};this.pdfViewerBase.currentSignatureAnnot=null,this.outputString=e.path,this.pdfViewerBase.isInitialField="Initial"===e.signatureItem[0];var w=void 0;1===l?w={id:"sign"+this.pdfViewerBase.signatureCount,bounds:m,pageIndex:e.pageNumber,data:this.outputString,shapeAnnotationType:"HandWrittenSignature",opacity:e.opacity,strokeColor:e.strokeColor,thickness:e.thickness,signatureName:r}:2===l?w={id:"sign"+this.pdfViewerBase.signatureCount,bounds:m,pageIndex:e.pageNumber,data:this.outputString,fontFamily:e.fontFamily,fontSize:32,shapeAnnotationType:"SignatureText",signatureName:r}:4===l&&(w={id:"sign"+this.pdfViewerBase.signatureCount,bounds:m,pageIndex:e.pageNumber,data:this.outputString,shapeAnnotationType:"SignatureImage",signatureName:r}),this.pdfViewerBase.currentSignatureAnnot=w,this.addSignatureCollection(),this.outputString=""}return{signatureAnnotation:p}},r}(),Ri=function(){function e(e,t){this.zoomFactor=1,this.previousZoomFactor=1,this.scrollWidth=25,this.zoomPercentages=[10,25,50,75,100,125,150,200,400],this.isNotPredefinedZoom=!1,this.pinchStep=0,this.reRenderPageNumber=0,this.magnifyPageRerenderTimer=null,this.rerenderOnScrollTimer=null,this.rerenderInterval=null,this.touchCenterX=0,this.touchCenterY=0,this.mouseCenterX=0,this.mouseCenterY=0,this.pageRerenderCount=0,this.imageObjects=[],this.topValue=0,this.isTapToFitZoom=!1,this.isCanvasCreated=!1,this.isWaitingPopupUpdated=!1,this.isInitialCustomZoomValues=!0,this.fitType=null,this.isPinchZoomed=!1,this.isPagePinchZoomed=!1,this.isRerenderCanvasCreated=!1,this.isMagnified=!1,this.isPagesZoomed=!1,this.isPinchScrolled=!1,this.isAutoZoom=!1,this.isDoubleTapZoom=!1,this.isFormFieldPageZoomed=!1,this.isWebkitMobile=!1,this.isFitToPageMode=!0,this.pdfViewer=e,this.pdfViewerBase=t,this.zoomLevel=2}return e.prototype.zoomTo=function(e){var t=400,i=10,n=this.pdfViewer.minZoom,o=this.pdfViewer.maxZoom;if(null!=n&&null!=o&&n>o){var r=o;o=n,n=r}null!=n||null!=o?(null!=n&&void 0!==n&&(i=n),null!=o&&void 0!==o&&(t=o)):(t=400,i=10),e<i?e=i:e>t&&(e=t),this.fitType=null,this.isNotPredefinedZoom=!1,this.isAutoZoom&&this.isInitialLoading?this.pdfViewerBase.onWindowResize():(this.isAutoZoom=!1,this.onZoomChanged(e)),this.isInitialLoading=!1},e.prototype.zoomIn=function(){if((this.fitType||this.isNotPredefinedZoom)&&(t.isNullOrUndefined(this.lowerZoomLevel)||(this.zoomLevel=this.lowerZoomLevel),this.fitType=null),this.isNotPredefinedZoom=!1,null!=this.pdfViewer.minZoom||null!=this.pdfViewer.maxZoom){var e=this.pdfViewerBase.customZoomValues.length,i=this.zoomLevel;i>=e?i=e:i++,this.zoomLevel=i}else this.zoomLevel>=8?this.zoomLevel=8:this.zoomLevel++;this.isAutoZoom=!1,null!=this.pdfViewer.minZoom||null!=this.pdfViewer.maxZoom?this.onZoomChanged(this.pdfViewerBase.customZoomValues[this.zoomLevel]):this.onZoomChanged(this.zoomPercentages[this.zoomLevel])},e.prototype.zoomOut=function(){(this.fitType||this.isNotPredefinedZoom)&&(t.isNullOrUndefined(this.higherZoomLevel)||(this.zoomLevel=this.higherZoomLevel),this.fitType=null),this.isNotPredefinedZoom=!1,this.zoomLevel<=0?this.zoomLevel=0:this.zoomLevel--,this.isAutoZoom=!1,null!=this.pdfViewer.minZoom||null!=this.pdfViewer.maxZoom?this.onZoomChanged(this.pdfViewerBase.customZoomValues[this.zoomLevel]):this.onZoomChanged(this.zoomPercentages[this.zoomLevel])},e.prototype.fitToWidth=function(){this.isAutoZoom=!1;var e=this.calculateFitZoomFactor("fitToWidth");this.onZoomChanged(e)},e.prototype.fitToAuto=function(){this.isAutoZoom=!0;var e=this.calculateFitZoomFactor("fitToWidth");this.onZoomChanged(e)},e.prototype.fitToPage=function(){var e=this.calculateFitZoomFactor("fitToPage");null!==e&&(this.isAutoZoom=!1,this.onZoomChanged(e),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.pdfViewerBase.isWebkitMobile?this.pdfViewerBase.viewerContainer.style.overflowY="auto":this.pdfViewerBase.viewerContainer.style.overflowY="hidden":this.pdfViewerBase.viewerContainer.style.overflowY="auto",this.pdfViewerBase.pageSize[this.pdfViewerBase.currentPageNumber-1]&&(this.pdfViewerBase.viewerContainer.scrollTop=this.pdfViewerBase.pageSize[this.pdfViewerBase.currentPageNumber-1].top*this.zoomFactor))},e.prototype.calculateFitZoomFactor=function(e){var i=this.pdfViewerBase.viewerContainer.getBoundingClientRect().width,n=this.pdfViewerBase.viewerContainer.getBoundingClientRect().height;if(0===i&&0===n&&(i=parseFloat(this.pdfViewer.width.toString()),n=parseFloat(this.pdfViewer.height.toString())),isNaN(n)||isNaN(i))return null;if(this.fitType=e,"fitToWidth"===this.fitType){o=(i-this.scrollWidth)/this.pdfViewerBase.highestWidth;return this.isAutoZoom&&(this.fitType=null,1===(o=Math.min(1,o))&&(this.zoomLevel=2)),parseInt((100*o).toString(),10)}this.isFitToPageMode=!0;var o=(i-this.scrollWidth-10)/this.pdfViewerBase.highestWidth,r=0;return(r=!this.pdfViewerBase.pageSize||1!==this.pdfViewerBase.pageSize.length||t.isNullOrUndefined(this.pdfViewerBase.pageSize[0].top)||this.isPinchZoomed?n/this.pdfViewerBase.highestHeight:(n-this.pdfViewerBase.pageSize[0].top)/this.pdfViewerBase.highestHeight)>o&&(r=o,this.isFitToPageMode=!1),parseInt((100*r).toString(),10)},e.prototype.initiateMouseZoom=function(e,t,i){var n=this.positionInViewer(e,t);this.mouseCenterX=n.x,this.mouseCenterY=n.y,this.zoomTo(i)},e.prototype.pinchIn=function(){this.fitType=null;var e=this.zoomFactor-this.pinchStep;if(e<4&&e>2&&(e=this.zoomFactor-this.pinchStep),e<=1.5&&(e=this.zoomFactor-this.pinchStep/1.5),null!=this.pdfViewer.minZoom&&e<this.pdfViewer.minZoom/100?e=this.pdfViewer.minZoom/100:e<.25&&(e=.25),this.isPinchZoomed=!0,this.onZoomChanged(100*e),this.isTapToFitZoom=!0,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&100*this.zoomFactor==50){var i=this.calculateFitZoomFactor("fitToWidth");this.fitType=null,i<=50&&this.fitToWidth()}},e.prototype.pinchOut=function(){this.fitType=null;var e=this.zoomFactor+this.pinchStep;t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?null!=this.pdfViewer.maxZoom&&e>this.pdfViewer.maxZoom/100?e=this.pdfViewer.maxZoom/100:e>4&&(e=4):(e>2&&(e-=this.pinchStep),null!=this.pdfViewer.maxZoom&&e>this.pdfViewer.maxZoom/100?e=this.pdfViewer.maxZoom/100:e>4&&(e=4)),this.isTapToFitZoom=!0,this.isPinchZoomed=!0,this.onZoomChanged(100*e)},e.prototype.getZoomLevel=function(e){if(null!=this.pdfViewer.minZoom||null!=this.pdfViewer.maxZoom){for(var t=0,i=this.pdfViewerBase.customZoomValues,n=i.length-1;t<=n;){o=Math.floor((t+n)/2);if(i[parseInt(o.toString(),10)]===e)return o;i[parseInt(o.toString(),10)]<e?t=o+1:n=o-1}return this.higherZoomLevel=t,this.lowerZoomLevel=n,n}for(var t=0,n=this.zoomPercentages.length-1;t<=n&&(0!==t||0!==n);){var o=Math.round((t+n)/2);this.zoomPercentages[parseInt(o.toString(),10)]<=e?t=o+1:this.zoomPercentages[parseInt(o.toString(),10)]>=e&&(n=o-1)}return this.higherZoomLevel=t,this.lowerZoomLevel=n,n},e.prototype.checkZoomFactor=function(){return this.zoomPercentages.indexOf(100*this.zoomFactor)>-1},e.prototype.onZoomChanged=function(e){if(this.isInitialCustomZoomValues&&this.pdfViewerBase.getCustomZoomValues(),e&&(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.closePopupMenu(),this.previousZoomFactor=this.zoomFactor,this.zoomLevel=this.getZoomLevel(e),this.zoomFactor=this.getZoomFactor(e),this.zoomFactor<=.25?this.pdfViewerBase.isMinimumZoom=!0:this.pdfViewerBase.isMinimumZoom=!1,t.isNullOrUndefined(this.pdfViewerBase.viewerContainer)||(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.pdfViewerBase.isWebkitMobile?this.pdfViewerBase.viewerContainer.style.overflowY="auto":this.pdfViewerBase.viewerContainer.style.overflowY="hidden":this.pdfViewerBase.viewerContainer.style.overflowY="auto"),this.pdfViewerBase.pageCount>0&&((this.previousZoomFactor!==this.zoomFactor||this.pdfViewerBase.isInitialPageMode)&&(this.isPinchZoomed?(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.pdfViewerBase.mobilePageNoContainer.style.left=this.pdfViewer.element.clientWidth/2-parseFloat(this.pdfViewerBase.mobilePageNoContainer.style.width)/2+"px"),this.responsivePages()):this.magnifyPages()),t.isBlazor()||this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateZoomButtons(),this.isInitialLoading||this.previousZoomFactor!==this.zoomFactor&&(this.pdfViewer.zoomValue=parseInt((100*this.zoomFactor).toString(),10),this.pdfViewer.fireZoomChange())),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.updateZoomPercentage(this.zoomFactor),this.isInitialLoading||this.previousZoomFactor!==this.zoomFactor&&(this.pdfViewer.zoomValue=parseInt((100*this.zoomFactor).toString(),10),this.pdfViewer.fireZoomChange()),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.isPinchZoomed)){var i=parseInt((100*this.zoomFactor).toString(),10)+"%";this.pdfViewerBase.navigationPane.createTooltipMobile(i)}},e.prototype.setTouchPoints=function(e,t){var i=this.positionInViewer(e,t);this.touchCenterX=i.x,this.touchCenterY=i.y},e.prototype.initiatePinchMove=function(e,t,i,n){this.isPinchScrolled=!1,this.isMagnified=!1,this.reRenderPageNumber=this.pdfViewerBase.currentPageNumber;var o=this.positionInViewer((e+i)/2,(t+n)/2);this.touchCenterX=o.x,this.touchCenterY=o.y,this.zoomOverPages(e,t,i,n)},e.prototype.magnifyPages=function(){var e=this;this.clearRerenderTimer();for(var t=document.querySelectorAll(".e-pv-page-div"),i=t[0].id.split("_pageDiv_")[1],n=t[t.length-1].id.split("_pageDiv_")[1],o=0;o<this.pdfViewerBase.renderedPagesList.length;o++)this.pdfViewer.annotation.clearAnnotationCanvas(this.pdfViewerBase.renderedPagesList[parseInt(o.toString(),10)]);if(this.previousZoomFactor!==this.zoomFactor||this.pdfViewerBase.isInitialPageMode)for(o=i;o<=n;o++)this.pdfViewerBase.showPageLoadingIndicator(o,!1);for(o=i;o<=n;o++)this.pdfViewerBase.showPageLoadingIndicator(o,!0);this.isWaitingPopupUpdated=!0,this.isPagesZoomed||(this.reRenderPageNumber=this.pdfViewerBase.currentPageNumber),this.pdfViewerBase.documentLoaded||this.pdfViewerBase.isInitialPageMode||(this.isPagesZoomed=!0);var r=this.pdfViewerBase.viewerContainer.scrollTop;this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.maintainSelectionOnZoom(!1,!0),!this.pdfViewer.formDesignerModule||this.pdfViewerBase.documentLoaded||this.pdfViewerBase.isDocumentLoaded||(this.isFormFieldPageZoomed=!0),this.isInitialLoading||(this.isMagnified=!0),this.updatePageLocation(),this.resizeCanvas(this.reRenderPageNumber),this.calculateScrollValuesOnMouse(r),this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.resizeTouchElements();var a=this.pdfViewer.annotationModule;if(a&&a.textMarkupAnnotationModule&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.updateCurrentResizerPosition(),this.pdfViewerBase.pageSize.length>0){this.pdfViewerBase.pageContainer.style.height=this.topValue+this.pdfViewerBase.getPageHeight(this.pdfViewerBase.pageSize.length-1)+"px";var s=this;this.pdfViewerBase.renderedPagesList=[],this.pdfViewerBase.pinchZoomStorage=[],this.pdfViewerBase.documentLoaded||(this.designNewCanvas(this.pdfViewerBase.currentPageNumber),this.magnifyPageRerenderTimer=setTimeout(function(){s.rerenderMagnifiedPages(),e.pdfViewerBase.showPageLoadingIndicator(e.pdfViewerBase.currentPageNumber-1,!1)},800))}},e.prototype.updatePageLocation=function(){this.topValue=0;for(t=1;t<this.pdfViewerBase.pageSize.length;t++)this.topValue+=(this.pdfViewerBase.pageSize[parseInt(t.toString(),10)].height+this.pdfViewerBase.pageGap)*this.zoomFactor;var e;e=this.pdfViewer.initialRenderPages>10?this.pdfViewer.initialRenderPages<=this.pdfViewerBase.pageCount?this.pdfViewer.initialRenderPages:this.pdfViewerBase.pageCount:this.pdfViewerBase.pageCount<10?this.pdfViewerBase.pageCount:10;for(var t=0;t<e;t++)this.updatePageContainer(t,this.pdfViewerBase.getPageWidth(t),this.pdfViewerBase.getPageHeight(t),this.pdfViewerBase.getPageTop(t),!0)},e.prototype.updatePageContainer=function(e,t,i,n,o){var r=this.pdfViewerBase.getElement("_pageDiv_"+e);if(r){r.style.width=t+"px",r.style.height=i+"px";var a=this.pdfViewerBase.getElement("_textLayer_"+e);a&&(a.style.width=t+"px",a.style.height=i+"px"),r.style.width=t+"px",r.style.height=i+"px",this.pdfViewer.enableRtl?r.style.right=this.pdfViewerBase.updateLeftPosition(e)+"px":r.style.left=this.pdfViewerBase.updateLeftPosition(e)+"px",r.style.top=n+"px",this.pdfViewerBase.pageContainer.style.width=this.pdfViewerBase.viewerContainer.clientWidth+"px",this.pdfViewerBase.renderPageCanvas(r,t,i,e,"block")}},e.prototype.clearRerenderTimer=function(){clearTimeout(this.rerenderOnScrollTimer),clearTimeout(this.magnifyPageRerenderTimer),this.clearIntervalTimer(),this.isPinchScrolled=!1},e.prototype.clearIntervalTimer=function(){clearInterval(this.rerenderInterval),this.rerenderInterval=null,this.clearRendering();for(var e=document.querySelectorAll('canvas[id*="'+this.pdfViewer.element.id+'_oldCanvas_"]'),t=0;t<e.length;t++){var i=parseInt(e[parseInt(t.toString(),10)].id.split("_oldCanvas_")[1],10),n=this.pdfViewerBase.getElement("_pageCanvas_"+i);n?(e[parseInt(t.toString(),10)].id=n.id,n.parentElement.removeChild(n)):e[parseInt(t.toString(),10)].id=this.pdfViewer.element.id+"_pageCanvas_"+i,this.pdfViewerBase.isTextMarkupAnnotationModule()&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.rerenderAnnotationsPinch(t)}this.isRerenderCanvasCreated=!1},e.prototype.pushImageObjects=function(e){t.isNullOrUndefined(this.imageObjects)||this.imageObjects&&this.imageObjects.push(e)},e.prototype.clearRendering=function(){if(this.imageObjects){for(var e=0;e<this.imageObjects.length;e++)this.imageObjects[parseInt(e.toString(),10)]&&(this.imageObjects[parseInt(e.toString(),10)].onload=null,this.imageObjects[parseInt(e.toString(),10)].onerror=null);this.imageObjects=[]}},e.prototype.rerenderMagnifiedPages=function(){!this.pdfViewerBase.isInitialLoaded&&!this.pdfViewerBase.isDocumentLoaded||this.pdfViewerBase.isInitialPageMode?this.pdfViewerBase.isInitialPageMode&&(this.pageRerenderCount=0,this.pdfViewerBase.renderedPagesList=[],this.pdfViewerBase.pinchZoomStorage=[],this.isMagnified=!1,this.pdfViewerBase.pageViewScrollChanged(this.reRenderPageNumber),this.pdfViewerBase.isInitialPageMode=!1,this.isRerenderCanvasCreated=!1):(this.renderInSeparateThread(this.reRenderPageNumber),this.isPagesZoomed=!1)},e.prototype.renderInSeparateThread=function(e){var t=this;this.pageRerenderCount=0,this.pdfViewerBase.renderedPagesList=[],this.pdfViewerBase.pinchZoomStorage=[],this.isMagnified=!1,this.pdfViewerBase.pageViewScrollChanged(this.pdfViewerBase.currentPageNumber);var i=this;this.rerenderInterval=setInterval(function(){t.initiateRerender(i)},1)},e.prototype.responsivePages=function(){this.isPagesZoomed=!0,this.clearRerenderTimer(),this.pdfViewer.textSelectionModule&&this.pdfViewer.textSelectionModule.clearTextSelection(),this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.clearAllOccurrences();var e=this.pdfViewerBase.viewerContainer.scrollTop;if(this.isAutoZoom=!1,this.updatePageLocation(),this.pdfViewerBase.pageContainer.style.height=this.topValue+this.pdfViewerBase.pageSize[this.pdfViewerBase.pageSize.length-1].height*this.zoomFactor+"px",this.resizeCanvas(this.pdfViewerBase.currentPageNumber),this.pdfViewerBase.textLayer&&this.pdfViewer.formDesignerModule&&this.pdfViewerBase.textLayer.clearTextLayers(!0),this.isPinchZoomed&&this.calculateScrollValues(e),this.pdfViewerBase.renderedPagesList=[],this.pdfViewerBase.pinchZoomStorage=[],this.pdfViewer.formFieldsModule&&!this.pdfViewer.formDesignerModule){var t=this;this.pdfViewerBase.documentLoaded||(this.magnifyPageRerenderTimer=setTimeout(function(){t.rerenderMagnifiedPages()},800))}},e.prototype.calculateScrollValues=function(e){var t=this.pdfViewerBase.currentPageNumber-1,i=this.pdfViewerBase.getElement("_pageDiv_"+t);if(i){var n=void 0,o=i.getBoundingClientRect(),r=(n=this.pdfViewer.enableRtl&&!this.isDoubleTapZoom?this.positionInViewer(o.right,o.top):this.positionInViewer(o.left,o.top)).x,a=n.y,s=a*this.previousZoomFactor,l=e+this.touchCenterY,d=a*this.zoomFactor+(l-s<0?l-s:(l-s)*(this.zoomFactor/this.previousZoomFactor)),A=this.zoomFactor-this.previousZoomFactor>0?-this.pdfViewerBase.pageGap*(this.zoomFactor/this.previousZoomFactor):this.pdfViewerBase.pageGap*(this.previousZoomFactor/this.zoomFactor);this.pdfViewerBase.viewerContainer.scrollTop=d-this.touchCenterY+A/this.pdfViewerBase.zoomInterval;var h=o.width*this.previousZoomFactor/o.width,p=this.zoomFactor/h-1,c=this.touchCenterX-r;this.pdfViewerBase.isMixedSizeDocument&&this.pdfViewerBase.highestWidth*this.pdfViewerBase.getZoomFactor()>this.pdfViewerBase.viewerContainer.clientWidth?this.pdfViewerBase.viewerContainer.scrollLeft=(this.pdfViewerBase.pageContainer.offsetWidth-this.pdfViewerBase.viewerContainer.clientWidth)/2:this.pdfViewerBase.viewerContainer.scrollLeft+=c*p}},e.prototype.calculateScrollValuesOnMouse=function(e){var t=this.pdfViewerBase.currentPageNumber-1,i=this.pdfViewerBase.getElement("_pageDiv_"+t);if(i){var n=void 0,o=i.getBoundingClientRect(),r=(n=this.pdfViewer.enableRtl?this.positionInViewer(o.right,o.top):this.positionInViewer(o.left,o.top)).x,a=n.y,s=a*this.previousZoomFactor,l=e+this.mouseCenterY,d=a*this.zoomFactor+(l-s)*(this.zoomFactor/this.previousZoomFactor),A=this.pdfViewerBase.pageGap*(this.zoomFactor/this.previousZoomFactor);this.pdfViewerBase.isTouchPad&&!this.pdfViewerBase.isMacSafari&&(A/=this.pdfViewerBase.zoomInterval),0===d&&(A=0),this.pdfViewerBase.viewerContainer.scrollTop=d-this.mouseCenterY+A;var h=o.width*this.previousZoomFactor/o.width,p=this.zoomFactor/h-1,c=this.mouseCenterX-r;if(this.pdfViewerBase.isMixedSizeDocument&&this.pdfViewerBase.highestWidth*this.pdfViewerBase.getZoomFactor()>this.pdfViewerBase.viewerContainer.clientWidth)this.pdfViewerBase.viewerContainer.scrollLeft=(this.pdfViewerBase.pageContainer.offsetWidth-this.pdfViewerBase.viewerContainer.clientWidth)/2;else{var g=document.getElementById(this.pdfViewerBase.pageContainer.id);g&&g.children&&g.children[0].clientWidth>this.pdfViewer.viewerBase.viewerContainer.clientWidth?this.pdfViewerBase.viewerContainer.scrollLeft+=c*p:this.pdfViewerBase.viewerContainer.scrollLeft=(this.pdfViewerBase.pageContainer.offsetWidth-this.pdfViewerBase.viewerContainer.clientWidth)/2}}},e.prototype.rerenderOnScroll=function(){var e=this;if(this.isPinchZoomed=!1,this.isPinchScrolled){this.rerenderOnScrollTimer=null,this.isPinchScrolled=!1,this.reRenderPageNumber=this.pdfViewerBase.currentPageNumber,this.pdfViewerBase.renderedPagesList=[],this.pdfViewerBase.pinchZoomStorage=[];for(var i=document.querySelectorAll('img[id*="'+this.pdfViewer.element.id+'_pageCanvas_"]'),n=0;n<i.length;n++){var o=parseInt(i[parseInt(n.toString(),10)].id.split("_pageCanvas_")[1],10),r=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].width;816<r&&this.pdfViewer.tileRenderingSettings.enableTileRendering&&(this.pdfViewer.restrictZoomRequest,i[parseInt(n.toString(),10)].style.width=r*this.pdfViewerBase.getZoomFactor()+"px",i[parseInt(n.toString(),10)].style.height=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].height*this.pdfViewerBase.getZoomFactor()+"px")}if(this.pdfViewerBase.textLayer)for(var a=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_textLayer_"]'),n=0;n<a.length;n++)a[parseInt(n.toString(),10)].style.display="none";if(this.pdfViewerBase.isTextMarkupAnnotationModule())for(var s=document.querySelectorAll('canvas[id*="'+this.pdfViewer.element.id+'_annotationCanvas_"]'),l=0;l<s.length;l++){o=s[parseInt(l.toString(),10)].id.split("_annotationCanvas_")[1];this.pdfViewer.annotationModule.textMarkupAnnotationModule.rerenderAnnotationsPinch(parseInt(o,10))}if(t.Browser.isDevice)if(this.pdfViewer.formDesignerModule)for(var d=this.pdfViewer.currentPageNumber,A=this.pdfViewer.formFieldCollection.filter(function(e){return e.pageNumber===d}),n=0;n<A.length;n++)document.querySelectorAll("[id^="+A[parseInt(n.toString(),10)].id+"]").forEach(function(e){return e.style.display="none"});else document.querySelectorAll('[id^="pdfViewerinput_"]').forEach(function(e){return e.parentElement.style.display="none"});if(this.pdfViewerBase.pageViewScrollChanged(this.reRenderPageNumber),this.isPagePinchZoomed=!1,this.rerenderOnScrollTimer=setTimeout(function(){e.pdfViewerBase.pageViewScrollChanged(e.reRenderPageNumber)},300),this.pdfViewerBase.textLayer)for(var a=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_textLayer_"]'),n=0;n<a.length;n++)a[parseInt(n.toString(),10)].style.display="block"}},e.prototype.pinchMoveScroll=function(){var e=this;this.isRerenderCanvasCreated&&this.clearIntervalTimer(),(this.isPagesZoomed||!this.isRerenderCanvasCreated&&this.isPagePinchZoomed)&&(this.clearRendering(),this.isPagesZoomed=!1,clearTimeout(this.magnifyPageRerenderTimer),this.isPinchScrolled=!0,this.isFormFieldPageZoomed=!0,this.rerenderOnScrollTimer=setTimeout(function(){e.rerenderOnScroll()},100))},e.prototype.initiateRerender=function(e){var t=!1;(this.previousZoomFactor<.4||this.pdfViewerBase.isMinimumZoom)&&(t=!0),e.pageRerenderCount!==e.pdfViewerBase.reRenderedCount&&!t||0===e.pageRerenderCount||0===e.pdfViewerBase.reRenderedCount||(e.reRenderAfterPinch(this.reRenderPageNumber),e.isFormFieldPageZoomed=!1)},e.prototype.reRenderAfterPinch=function(e){this.pageRerenderCount=0;var t=e-3,i=e+1;this.pdfViewerBase.isMinimumZoom&&(t=e-4,i=e+4),t=t>0?t:0,i=i<this.pdfViewerBase.pageCount?i:this.pdfViewerBase.pageCount-1;for(var n=t;n<=i;n++){var o=this.pdfViewerBase.getElement("_pageDiv_"+n),r=this.pdfViewerBase.getElement("_oldCanvas_"+n);r&&(r.onload=null,r.onerror=null,r.parentNode.removeChild(r)),this.pdfViewerBase.isTextMarkupAnnotationModule()?this.pdfViewer.annotationModule.textMarkupAnnotationModule.rerenderAnnotations(n):this.pdfViewer.formDesignerModule&&(this.rerenderAnnotations(n),this.pdfViewer.renderDrawing(void 0,e)),o&&(o.style.visibility="visible")}this.isRerenderCanvasCreated=!1,this.isPagePinchZoomed=!1,0!==this.pdfViewerBase.reRenderedCount&&(this.pdfViewerBase.reRenderedCount=0,this.pageRerenderCount=0,clearInterval(this.rerenderInterval),this.rerenderInterval=null),this.imageObjects=[]},e.prototype.rerenderAnnotations=function(e){for(var t=this,i=document.querySelectorAll("#"+this.pdfViewer.element.id+"_old_annotationCanvas_"+e),n=0;n<i.length;n++)i[parseInt(n.toString(),10)]&&i[parseInt(n.toString(),10)].parentElement.removeChild(i[parseInt(n.toString(),10)]);["_annotationCanvas_","_blendAnnotationsIntoCanvas_"].forEach(function(i){t.pdfViewerBase.getElement(""+i+e).style.setProperty("display","block")})},e.prototype.designNewCanvas=function(e){this.pdfViewerBase.textLayer&&this.pdfViewerBase.textLayer.clearTextLayers();var t=e-3,i=e+1;this.pdfViewerBase.isMinimumZoom&&(t=e-4,i=e+4),t=t>0?t:0,i=i<this.pdfViewerBase.pageCount?i:this.pdfViewerBase.pageCount-1;for(var n=t;n<=i;n++)if(this.pdfViewerBase.pageSize[parseInt(n.toString(),10)]){var o=this.pdfViewerBase.getElement("_pageCanvas_"+n),r=this.pdfViewerBase.pageSize[parseInt(n.toString(),10)].width*this.zoomFactor,a=this.pdfViewerBase.pageSize[parseInt(n.toString(),10)].height*this.zoomFactor;o&&!this.pdfViewer.restrictZoomRequest?this.pdfViewerBase.renderPageCanvas(this.pdfViewerBase.getElement("_pageDiv_"+n),r,a,n,"none"):this.pdfViewer.restrictZoomRequest||this.pdfViewerBase.renderPageCanvas(this.pdfViewerBase.getElement("_pageDiv_"+n),r,a,n,"none")}this.isRerenderCanvasCreated=!0,this.isCanvasCreated=!0},e.prototype.pageRerenderOnMouseWheel=function(){var e=this;this.isRerenderCanvasCreated&&(this.clearIntervalTimer(),this.isCanvasCreated||(clearTimeout(this.magnifyPageRerenderTimer),this.isCanvasCreated=!1),this.isPinchScrolled||(this.isPinchScrolled=!0,this.rerenderOnScrollTimer=setTimeout(function(){e.rerenderOnScroll()},100)))},e.prototype.renderCountIncrement=function(){this.isRerenderCanvasCreated&&this.pageRerenderCount++},e.prototype.rerenderCountIncrement=function(){this.pageRerenderCount>0&&this.pdfViewerBase.reRenderedCount++},e.prototype.resizeCanvas=function(e){var n=this.pdfViewer.annotationModule;if(n&&n.inkAnnotationModule&&""!==n.inkAnnotationModule.outputString&&(n.inkAnnotationModule.inkPathDataCollection.push({pathData:n.inkAnnotationModule.outputString,zoomFactor:n.inkAnnotationModule.inkAnnotationInitialZoom}),n.inkAnnotationModule.outputString=""),n&&n.freeTextAnnotationModule){var o={x:n.freeTextAnnotationModule.currentPosition[0],y:n.freeTextAnnotationModule.currentPosition[1],width:n.freeTextAnnotationModule.currentPosition[2],height:n.freeTextAnnotationModule.currentPosition[3]};n.freeTextAnnotationModule.addInputInZoom(o)}var r=e-3,a=e+3;this.pdfViewerBase.isMinimumZoom&&(r=e-4,a=e+4),this.pdfViewer.initialRenderPages>this.pdfViewerBase.pageRenderCount?(r=0,a=a<this.pdfViewer.initialRenderPages?this.pdfViewer.initialRenderPages<=this.pdfViewerBase.pageCount?this.pdfViewer.initialRenderPages:this.pdfViewerBase.pageCount:a<this.pdfViewerBase.pageCount?a:this.pdfViewerBase.pageCount-1):(r=r>0?r:0,a=a<this.pdfViewerBase.pageCount?a:this.pdfViewerBase.pageCount-1);for(var s=r;s<=a;s++){var l=this.pdfViewerBase.getElement("_pageDiv_"+s),d=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+s);if(l&&r<=s&&s<=a){var A=!1;if(this.pdfViewer.textSelectionModule&&(A=this.pdfViewer.textSelectionModule.isSelectionAvailableOnScroll(s)),null!=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)]){var h=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].width*this.zoomFactor,p=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].height*this.zoomFactor;l.style.width=h+"px",l.style.height=p+"px",l.style.top=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].top*this.zoomFactor+"px",this.pdfViewer.enableRtl?l.style.right=this.pdfViewerBase.updateLeftPosition(s)+"px":l.style.left=this.pdfViewerBase.updateLeftPosition(s)+"px";var c=this.pdfViewerBase.getElement("_pageCanvas_"+s);c&&(c.style.width=h+"px",c.style.height=p+"px",this.pdfViewer.annotation?this.pdfViewer.annotationModule.resizeAnnotations(h,p,s):this.pdfViewer.formDesignerModule&&this.pdfViewer.formDesignerModule.resizeAnnotations(h,p,s));var g=this.pdfViewerBase.retrieveCurrentZoomFactor(),u=void 0,f=void 0;u=f=this.pdfViewerBase.getTileCount(this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].width,this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].height);var m=this.pdfViewer.tileRenderingSettings;if(m.enableTileRendering&&m.x>0&&m.y>0&&(1200<this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].width||this.pdfViewerBase.getZoomFactor()>2)&&(u=m.x,f=m.y),1===u*f){var w=void 0;if(w=this.pdfViewerBase.clientSideRendering?this.pdfViewerBase.getWindowSessionStorage(s,g)?this.pdfViewerBase.getWindowSessionStorage(s,g):this.pdfViewerBase.getPinchZoomPage(s):this.pdfViewerBase.getLinkInformation(s)?this.pdfViewerBase.getLinkInformation(s):this.pdfViewerBase.getWindowSessionStorage(s,g)){if(N=(w=this.pdfViewerBase.clientSideRendering&&"object"==typeof w?w:JSON.parse(w)).image){c.src=N,c.style.display="block";for(var C=document.querySelectorAll('img[id*="'+this.pdfViewer.element.id+"_tileimg_"+s+'_"]'),B=this.pdfViewerBase.getElement("_pageDiv_"+s),S=0;S<C.length;S++){v=C[parseInt(S.toString(),10)].id.split("_");parseFloat(v[v.length-3])!==this.pdfViewerBase.getZoomFactor()&&(C[parseInt(S.toString(),10)].onload=null,C[parseInt(S.toString(),10)].onerror=null,B.removeChild(C[parseInt(S.toString(),10)]))}for(var y=document.querySelectorAll('img[id*="'+this.pdfViewer.element.id+'_oldCanvas"]'),I=0;I<y.length;I++)y[parseInt(I.toString(),10)].onload=null,y[parseInt(I.toString(),10)].onerror=null,l.removeChild(y[parseInt(I.toString(),10)])}this.pdfViewerBase.isReRenderRequired=!1}else this.pdfViewerBase.isReRenderRequired=!0}else{for(var C=document.querySelectorAll('img[id*="'+this.pdfViewer.element.id+"_tileimg_"+s+'_"]'),E=0;E<C.length;E++){var v=C[parseInt(E.toString(),10)].id.split("_"),b=parseFloat(v[v.length-2]),V=parseFloat(v[v.length-1]),D=this.pdfViewerBase.clientSideRendering?JSON.parse(this.pdfViewerBase.getStoredTileImageDetails(s,b,V,g)):JSON.parse(this.pdfViewerBase.getWindowSessionStorageTile(s,b,V,g));if(D&&D.zoomFactor&&(g=D.zoomFactor),parseFloat(v[v.length-4])===s){c.style.display="none";var x=C[parseInt(E.toString(),10)];if(x.nodeType===Node.ELEMENT_NODE){var Q=1.5;t.isNullOrUndefined(D)||(Q=t.isNullOrUndefined(D.scaleFactor)?1.5:D.scaleFactor);var M=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].width*g*Q/u,F=this.pdfViewerBase.pageSize[parseInt(s.toString(),10)].height*g*Q/f,T=M,k=parseFloat(v[v.length-2])*M,P=parseFloat(v[v.length-1])*F;if(x.width=T*this.pdfViewerBase.getZoomFactor()/g/Q,x.style.width=T*this.pdfViewerBase.getZoomFactor()/g/Q+"px",x.style.left=k*this.pdfViewerBase.getZoomFactor()/g/Q+"px",x.style.top=P*this.pdfViewerBase.getZoomFactor()/g/Q+"px",x.id=this.pdfViewer.element.id+"_tileimg_"+s+"_"+this.pdfViewerBase.getZoomFactor()+"_"+b+"_"+V,D){var N=D.image;N&&(x.src=N),this.pdfViewerBase.isReRenderRequired=!1}else this.pdfViewerBase.isReRenderRequired=!0}}}0===C.length&&(this.pdfViewerBase.isReRenderRequired=!0)}if(d){if(d.style.width=h+"px",d.style.height=p+"px",this.pdfViewer.textSelectionModule)if(this.isPinchZoomed)d.style.display="none";else if(this.isMagnified){var R=e-2==0?0:e-2,L=e===this.pdfViewerBase.pageCount?this.pdfViewerBase.pageCount-1:e+1;R<=s&&s<=L&&(this.pdfViewer.textSelectionModule.isTextSelection&&A||this.pdfViewerBase.textLayer.getTextSearchStatus()||this.pdfViewerBase.isInitialPageMode)&&(this.pdfViewerBase.textLayer.resizeTextContentsOnZoom(s),this.pdfViewer.textSelectionModule.isTextSelection&&A&&this.pdfViewer.textSelectionModule.applySelectionRangeOnScroll(s))}this.pdfViewerBase.applyElementStyles(d,s)}var U=i.getDiagramElement(this.pdfViewer.element.id+"_textLayer_"+s);if(U){var O=i.getDiagramElement(this.pdfViewer.element.id+s+"_diagramAdorner_svg");O&&(O.style.width=h+"px",O.style.height=p+"px");var z=i.getDiagramElement(this.pdfViewer.element.id+s+"_diagramAdornerLayer");z&&(z.style.width=h+"px",z.style.height=p+"px"),U.style.width=h+"px",U.style.height=p+"px",this.pdfViewer.renderSelector(s,this.pdfViewer.annotationSelectorSettings),this.pdfViewerBase.applyElementStyles(z,s)}}}}},e.prototype.zoomOverPages=function(e,t,i,n){var o=Math.sqrt(Math.pow(e-i,2)+Math.pow(t-n,2));this.previousTouchDifference>-1&&(o>this.previousTouchDifference?(this.pinchStep=this.getPinchStep(o,this.previousTouchDifference),this.pinchOut()):o<this.previousTouchDifference&&(this.pinchStep=this.getPinchStep(this.previousTouchDifference,o),this.pinchIn())),this.previousTouchDifference=o},e.prototype.pinchMoveEnd=function(){this.touchCenterX=0,this.touchCenterY=0,this.previousTouchDifference=-1,this.isPinchZoomed&&(this.isPinchScrolled=!1,this.isPagePinchZoomed=!0,this.pinchMoveScroll())},e.prototype.fitPageScrollMouseWheel=function(e){"fitToPage"===this.fitType&&(this.isMagnified=!1,e.preventDefault(),e.deltaY>0?this.downwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1):this.upwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1))},e.prototype.magnifyBehaviorKeyDown=function(e){var t=!!!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)&&e.metaKey;switch((e.ctrlKey||t)&&"Equal"===e.code&&(e.preventDefault(),this.zoomIn()),(e.ctrlKey||t)&&"Minus"===e.code&&(e.preventDefault(),this.zoomOut()),e.keyCode){case 37:e.ctrlKey||t?(e.preventDefault(),this.pdfViewerBase.updateScrollTop(0)):this.focusOnViewerContainer()&&this.formElementcheck()&&(e.preventDefault(),this.upwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1));break;case 38:case 33:e.ctrlKey||t?(e.preventDefault(),this.pdfViewerBase.updateScrollTop(0)):"fitToPage"!==this.fitType||(e.ctrlKey||t)&&e.shiftKey||(e.preventDefault(),this.upwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1));break;case 39:e.ctrlKey||t?(e.preventDefault(),this.pdfViewerBase.updateScrollTop(this.pdfViewerBase.pageCount-1)):this.focusOnViewerContainer()&&this.formElementcheck()&&(e.preventDefault(),this.downwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1));break;case 40:case 34:e.ctrlKey||t?(e.preventDefault(),this.pdfViewerBase.updateScrollTop(this.pdfViewerBase.pageCount-1)):"fitToPage"!==this.fitType||(e.ctrlKey||t)&&e.shiftKey||(e.preventDefault(),this.downwardScrollFitPage(this.pdfViewerBase.currentPageNumber-1));break;case 48:!e.ctrlKey&&!t||e.shiftKey||e.altKey||(e.preventDefault(),this.fitToPage());break;case 49:!e.ctrlKey&&!t||e.shiftKey||e.altKey||(e.preventDefault(),this.zoomTo(100))}},e.prototype.formElementcheck=function(){var e=event.target;return e.offsetParent&&e.offsetParent.classList.length>0&&!e.offsetParent.classList.contains("foreign-object")},e.prototype.focusOnViewerContainer=function(){var e=document.activeElement;return document.querySelector(".e-pv-viewer-container").contains(e)},e.prototype.upwardScrollFitPage=function(e){if(e>0){var t=this.pdfViewerBase.getElement("_pageDiv_"+(e-1));if(t&&(t.style.visibility="visible",this.pdfViewerBase.viewerContainer.scrollTop=this.pdfViewerBase.pageSize[e-1].top*this.zoomFactor,this.isFitToPageMode)){var i=this.pdfViewerBase.getElement("_pageDiv_"+e);i&&(i.style.visibility="hidden")}}},e.prototype.updatePagesForFitPage=function(e){"fitToPage"===this.fitType&&this.isFitToPageMode&&(e>0&&this.pdfViewerBase.getElement("_pageDiv_"+(e-1))&&(this.pdfViewerBase.getElement("_pageDiv_"+(e-1)).style.visibility="hidden"),e<this.pdfViewerBase.pageCount-1&&this.pdfViewerBase.getElement("_pageDiv_"+(e+1))&&(this.pdfViewerBase.getElement("_pageDiv_"+(e+1)).style.visibility="hidden"))},e.prototype.onDoubleTapMagnification=function(){var e=this;this.pdfViewer.toolbarModule&&t.isBlazor()&&this.pdfViewer.toolbarModule.showToolbar(!0);var i=this.pdfViewerBase.viewerContainer.scrollTop;if(this.pdfViewer.selectedItems.annotations[0]){if(t.isBlazor()&&this.pdfViewer.selectedItems.annotations[0]&&"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType){var n={};n.x=this.pdfViewer.selectedItems.annotations[0].bounds.x,n.y=this.pdfViewer.selectedItems.annotations[0].bounds.y,this.pdfViewer.annotation.freeTextAnnotationModule.addInuptElemet(n,this.pdfViewer.selectedItems.annotations[0])}}else this.isDoubleTapZoom=!0,this.isTapToFitZoom?this.fitToWidth():this.zoomFactor<2?this.zoomTo(200):this.fitToWidth(),this.calculateScrollValues(i),this.isTapToFitZoom=!this.isTapToFitZoom,setTimeout(function(){e.isMagnified=!1},500),this.isDoubleTapZoom=!1},e.prototype.downwardScrollFitPage=function(e){if(e!==this.pdfViewerBase.pageCount-1){var t=this.pdfViewerBase.getElement("_pageDiv_"+(e+1));if(t&&(t.style.visibility="visible"),this.pdfViewerBase.viewerContainer.scrollTop=this.pdfViewerBase.pageSize[e+1].top*this.zoomFactor,this.isFitToPageMode){var i=this.pdfViewerBase.getElement("_pageDiv_"+e),n=this.pdfViewerBase.getElement("_pageDiv_"+(e+2));e+1===this.pdfViewerBase.pageCount-1?i&&(i.style.visibility="hidden"):n&&(n.style.visibility="hidden")}}},e.prototype.getMagnifiedValue=function(e){return e/this.previousZoomFactor*this.zoomFactor},e.prototype.destroy=function(){this.imageObjects=void 0},e.prototype.getZoomFactor=function(e){return e/100},e.prototype.getModuleName=function(){return"Magnification"},e.prototype.getPinchStep=function(e,t){var i=(e-t)/100;return i<.02?i=.02:i>1&&(i=.1),i},e.prototype.zoomToRect=function(e){var t,i=this.pdfViewerBase,n=i.viewerContainer,o=this.pdfViewer;if(e.width>0&&e.height>0){var r={x:e.x,y:e.y},a=o.getPageNumberFromClientPoint(r);if(a>0){var s=n.getBoundingClientRect().width/e.width,l=n.getBoundingClientRect().height/e.height;t=s<l?s:l;var d=100;d=100*i.getZoomFactor()*t;var A=n.scrollTop,h=n.scrollLeft;this.zoomTo(d),n.scrollTop=A,n.scrollLeft=h;var p=i.getZoomFactor(),c={x:e.x,y:e.y};c=o.convertClientPointToPagePoint(c,a),i.updateScrollTop(a-1),n.scrollLeft=(c.x-h)*p,n.scrollTop=(c.y+i.pageSize[a-1].top-A)*p}}},e.prototype.positionInViewer=function(e,t){var i=this.pdfViewerBase.mainContainer.getBoundingClientRect();return{x:e-i.left,y:t-i.top}},e}(),Li=function(){function e(e,t){this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.goToNextPage=function(){this.pageNumber=this.pdfViewerBase.currentPageNumber,++this.pageNumber<=this.pdfViewerBase.pageCount&&this.pdfViewerBase.updateScrollTop(this.pageNumber-1)},e.prototype.goToPreviousPage=function(){this.pageNumber=this.pdfViewerBase.currentPageNumber,--this.pageNumber>0&&this.pdfViewerBase.updateScrollTop(this.pageNumber-1)},e.prototype.goToPage=function(e){e>0&&e<=this.pdfViewerBase.pageCount&&this.pdfViewerBase.currentPageNumber!==e&&(this.pdfViewerBase.updateScrollTop(e-1),this.pdfViewer.enableThumbnail&&this.pdfViewer.thumbnailViewModule&&this.pdfViewer.thumbnailViewModule.updateScrollTopForThumbnail(e-1)),this.pdfViewer.magnificationModule&&this.pdfViewer.magnificationModule.resizeCanvas(e);var t=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(e-1));t&&(t.style.display="block")},e.prototype.goToFirstPage=function(){this.pageNumber=0,this.pdfViewerBase.updateScrollTop(this.pageNumber)},e.prototype.goToLastPage=function(){this.pageNumber=this.pdfViewerBase.pageCount-1,this.pdfViewerBase.updateScrollTop(this.pageNumber)},e.prototype.destroy=function(){this.pageNumber=0},e.prototype.getModuleName=function(){return"Navigation"},e}(),Ui=function(){function i(e,t){var i=this;this.thumbnailLimit=30,this.thumbnailThreshold=5,this.thumbnailRequestsBatch=5,this.thumbnailTopMargin=10,this.thumbnailTop=8,this.isRendered=!1,this.list=[],this.thumbnailPageSize=[],this.isThubmnailOpen=!1,this.isThumbnailClicked=!1,this.thumbnailOnScroll=function(e){for(var t=0;t<i.thumbnailPageSize.length&&"break"!==function(e){var t=i.pdfViewerBase.navigationPane.sideBarContent.scrollTop,n=i.thumbnailPageSize.findIndex(function(e){return e.top>=t});if(-1!==n){var o=Math.floor(n/i.thumbnailRequestsBatch)*i.thumbnailRequestsBatch;return i.updateScrollTopForThumbnail(o),"break"}}();t++);},this.thumbnailClick=function(e,t){var n=i,o=e.target,r=n.getPageNumberFromID(o.id);if(n.previousElement&&(n.previousElement.classList.remove("e-pv-thumbnail-selection"),n.previousElement.classList.remove("e-pv-thumbnail-focus"),n.previousElement.classList.add("e-pv-thumbnail-selection-ring")),o.parentElement.id===n.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+r?(n.setSelectionStyle(o.parentElement),n.previousElement=o.parentElement):o.id===n.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+r&&(n.setSelectionStyle(o),n.previousElement=o),n.pdfViewer.fireThumbnailClick(r+1),n.isThumbnailClicked=!0,n.goToThumbnailPage(r+1),t||n.pdfViewerBase.focusViewerContainer(),i.pdfViewer.annotationModule&&i.pdfViewer.annotationModule.inkAnnotationModule){var a=parseInt(i.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);i.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(a)}},this.thumbnailKeydown=function(e){(e&&"Enter"===e.key||" "===e.key)&&(i.thumbnailClick(e,!0),e.preventDefault(),e.stopPropagation())},this.thumbnailMouseOver=function(e){var t=i,n=e.target,o=t.getPageNumberFromID(n.id);n.id===t.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+o?t.setMouseOverStyle(n):n.id===t.pdfViewer.element.id+"_thumbnail_image_"+o&&t.setMouseOverStyle(n.parentElement)},this.thumbnailMouseLeave=function(e){var t=i,n=e.target,o=t.getPageNumberFromID(n.id);n.parentElement.id===t.pdfViewer.element.id+"_thumbnail_view"?t.setMouseLeaveStyle(n.children[0].children[0]):n.parentElement.id===t.pdfViewer.element.id+"_thumbnail_"+o&&t.setMouseLeaveStyle(n.parentElement.children[0])},this.pdfViewer=e,this.pdfViewerBase=t}return i.prototype.createThumbnailContainer=function(){this.thumbnailView=t.createElement("div",{id:this.pdfViewer.element.id+"_thumbnail_view",className:"e-pv-thumbnail-view e-pv-thumbnail-row"}),this.pdfViewerBase.navigationPane.sideBarContent.appendChild(this.thumbnailView),this.pdfViewerBase.navigationPane.sideBarContent.addEventListener("scrollend",this.thumbnailOnScroll)},i.prototype.openThumbnailPane=function(){this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.openThumbnailPane()},i.prototype.closeThumbnailPane=function(){this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.closeThumbnailPane()},i.prototype.createRequestForThumbnails=function(){var e=this;e.thumbnailLimit=0;for(var t=0;t<e.pdfViewer.pageCount;t++)e.renderThumbnailEmptyPage(t);if(e.pdfViewer.isThumbnailViewOpen){this.isThubmnailOpen=!0,e.pdfViewerBase.navigationPane&&e.pdfViewerBase.navigationPane.sideBarTitle&&(e.pdfViewerBase.navigationPane.sideBarTitle.textContent=e.pdfViewer.localeObj.getConstant("Page Thumbnails")),document.getElementById(e.pdfViewer.element.id+"_thumbnail_view")&&(document.getElementById(e.pdfViewer.element.id+"_thumbnail_view").style.display="flex");var i=e.pdfViewer.element.querySelector(".e-pv-bookmark-view");i&&(i.style.display="none"),e.pdfViewerBase.navigationPane.updateViewerContainerOnExpand(),this.isThubmnailOpen=!1,e.pdfViewerBase.navigationPane.isBookmarkOpen=!1}this.createRequestForThumbnailImages()},i.prototype.isThumbnailViewOpen=function(){var e=this;e.pdfViewer.isThumbnailViewOpen&&(e.pdfViewerBase.navigationPane.setThumbnailSelectionIconTheme(),e.pdfViewerBase.navigationPane.isThumbnailOpen=!0,this.pdfViewerBase.navigationPane.sideBarContentContainer.style.display="block",this.pdfViewer.enableRtl?e.pdfViewerBase.viewerContainer.style.right=this.pdfViewerBase.navigationPane.getViewerContainerLeft()+"px":e.pdfViewerBase.viewerContainer.style.left=this.pdfViewerBase.navigationPane.getViewerContainerLeft()+"px",e.pdfViewerBase.viewerContainer.style.width=e.pdfViewer.element.clientWidth-this.pdfViewerBase.navigationPane.getViewerContainerLeft()-this.pdfViewerBase.navigationPane.getViewerContainerRight()+"px",e.pdfViewerBase.pageContainer.style.width=e.pdfViewerBase.viewerContainer.clientWidth+"px",e.pdfViewerBase.updateZoomValue())},i.prototype.thumbnailsRequestedForPage=function(e){for(var t=0,i=this.list;t<i.length;t++)if(e===i[t])return!0;return!1},i.prototype.updateScrollTopForThumbnail=function(e){var t=this,i=this.thumbnailRequestsBatch,n=Math.floor((e+1)/i)*i;[n,n-i,n+i,this.pdfViewer.thumbnailViewModule.thumbnailLimit].forEach(function(e){e<0||t.thumbnailsRequestedForPage(e)||t.renderThumbnailImage(null,e)})},i.prototype.renderThumbnailEmptyPage=function(e){if(this.thumbnailView){var i=t.createElement("a",{id:"page_"+e,attrs:{"aria-label":"Thumbnail of Page"+(e+1),tabindex:"-1",role:"link"},className:"e-pv-thumbnail-anchor-node"}),n=t.createElement("div",{id:this.pdfViewer.element.id+"_thumbnail_"+e,className:"e-pv-thumbnail e-pv-thumbnail-column"});this.thumbnailSelectionRing=t.createElement("div",{id:this.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+e,className:"e-pv-thumbnail-selection-ring"}),n.appendChild(this.thumbnailSelectionRing);var o=t.createElement("div",{id:this.pdfViewer.element.id+"_thumbnail_pagenumber_"+e,className:"e-pv-thumbnail-number"});o.textContent=(e+1).toString(),n.appendChild(o);var r=180;if(this.thumbnailImage=t.createElement("img",{id:this.pdfViewer.element.id+"_thumbnail_image_"+e,className:"e-pv-thumbnail-image"}),this.pdfViewerBase.pageSize[parseInt(e.toString(),10)]&&this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height<this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width&&(this.thumbnailImage.style.height="86px",this.thumbnailImage.style.width="126px",n.style.height="100px",n.style.width="140px",o.style.left="18px",i.style.marginRight="41px",n.style.marginLeft="-5px",n.style.marginRight="0px",r=140),0!==e){this.thumbnailTop=this.thumbnailPageSize[e-1].top+this.thumbnailPageSize[e-1].height;a={height:r,top:this.thumbnailTop};this.thumbnailPageSize[parseInt(e.toString(),10)]=a}else{var a={height:r,top:this.thumbnailTop};this.thumbnailPageSize[parseInt(e.toString(),10)]=a}this.thumbnailSelectionRing.appendChild(this.thumbnailImage),i.appendChild(n),this.thumbnailView.appendChild(i),this.wireUpEvents(),0===e&&this.setMouseFocusToFirstPage(),this.pdfViewerBase.navigationPane.enableThumbnailButton()}},i.prototype.renderViewPortThumbnailImage=function(i){var n=i||this;if(n.startIndex=n.thumbnailLimit,this.list.push(n.startIndex),this.pdfViewerBase.pageSize.length!==this.pdfViewerBase.pageCount||this.isRendered||this.renderDiv(),n.thumbnailLimit=n.startIndex+n.thumbnailThreshold<n.pdfViewer.pageCount?n.startIndex+n.thumbnailThreshold:n.pdfViewer.pageCount,this.pdfViewerBase.clientSideRendering){for(var o=n.startIndex;o<n.thumbnailLimit;o++){var r=this.getThumbnailImageElement(o),a={documentId:n.pdfViewerBase.getDocumentId(),hashId:n.pdfViewerBase.hashId,elementId:n.pdfViewer.element.id,uniqueId:n.pdfViewerBase.documentId},s=!!n.pdfViewer.textSearch,l=this.pdfViewer.extractTextOption===e.ExtractTextOption.None||this.pdfViewer.extractTextOption===e.ExtractTextOption.TextOnly,d=n.pdfViewer.pageOrganizer?n.pdfViewer.pageOrganizer.getImageZoomValue(!0):1;(r&&""===r.src||t.isNullOrUndefined(r)&&!t.isNullOrUndefined(this.pdfViewer.pageOrganizer))&&this.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:o,message:"renderThumbnail",isTextNeed:s,jsonObject:a,isRenderText:s,requestType:s?"pdfTextSearchRequest":"",isSkipCharacterBounds:l,imageSize:d},Et.Low)}this.isThumbnailViewOpen()}else{for(var A=!1,h=n.startIndex;h<n.thumbnailLimit;h++)n.pdfViewerBase.digitalSignaturePresent(h)&&(A=!0);var p="";A&&(p=n.pdfViewerBase.digitalSignaturePages.toString());a={startPage:n.startIndex.toString(),endPage:n.thumbnailLimit.toString(),sizeX:"99.7",sizeY:"141",hashId:n.pdfViewerBase.hashId,action:"RenderThumbnailImages",elementId:n.pdfViewer.element.id,uniqueId:n.pdfViewerBase.documentId,digitalSignaturePresent:A,digitalSignaturePageList:p};if(this.pdfViewerBase.jsonDocumentId&&(a.documentId=this.pdfViewerBase.jsonDocumentId),!t.isNullOrUndefined(this.pdfViewer.pageOrganizer)){d=this.pdfViewer.pageOrganizer.getImageZoomValue(!0);a.imageSize=d}this.thumbnailRequestHandler=new Pi(this.pdfViewer),this.thumbnailRequestHandler.url=n.pdfViewer.serviceUrl+"/"+n.pdfViewer.serverActionSettings.renderThumbnail,this.thumbnailRequestHandler.responseType="json",n.startIndex.toString()!==n.thumbnailLimit.toString()&&n.thumbnailLimit>0&&!t.isNullOrUndefined(n.pdfViewerBase.hashId)&&(this.pdfViewerBase.requestCollection.push(this.thumbnailRequestHandler),this.thumbnailRequestHandler.send(a)),this.thumbnailRequestHandler.onSuccess=function(e){var t=e.data;n.pdfViewerBase.checkRedirection(t)||n.updateThumbnailCollection(t)},this.thumbnailRequestHandler.onFailure=function(e){n.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,n.pdfViewer.serverActionSettings.renderThumbnail)},this.thumbnailRequestHandler.onError=function(e){n.pdfViewerBase.openNotificationPopup(),n.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,n.pdfViewer.serverActionSettings.renderThumbnail)}}},i.prototype.thumbnailOnMessage=function(e){if("renderThumbnail"===e.data.message){var i=document.createElement("canvas"),n=e.data,o=n.value,r=n.width,a=n.height,s=n.pageIndex,l=n.imageSize;i.width=r,i.height=a;var d=i.getContext("2d"),A=d.createImageData(r,a);A.data.set(o),d.putImageData(A,0,0);var h=i.toDataURL();this.pdfViewerBase.releaseCanvas(i);var p=this.getThumbnailImageElement(s);p&&(p.src=h);var c={thumbnailImage:h,startPage:this.startIndex,endPage:this.thumbnailLimit,uniqueId:this.pdfViewerBase.documentId,pageIndex:s,imageSize:l};!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.updateThumbnailCollection(c):t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||this.pdfViewer.pageOrganizer.updatePreviewCollection(c)}},i.prototype.updateThumbnailCollection=function(e){if(e){var t=this;if("object"!=typeof e)try{e=JSON.parse(e)}catch(i){t.pdfViewerBase.onControlError(500,e,t.pdfViewer.serverActionSettings.renderThumbnail),e=null}e&&e.uniqueId===t.pdfViewerBase.documentId&&(t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.renderThumbnail,e),t.renderThumbnailImage(e))}},i.prototype.renderDiv=function(e){if(!(this.pdfViewerBase.pageSize.length!==this.pdfViewerBase.pageCount&&t.isNullOrUndefined(e)||this.isRendered)){for(var i=100;i<this.pdfViewer.pageCount;i++){var n=document.getElementById(this.pdfViewer.element.id+"_thumbnail_"+i),o=document.getElementById("page_"+i),r=document.getElementById(this.pdfViewer.element.id+"_thumbnail_pagenumber_"+i),a=this.getThumbnailImageElement(i),s=180;if((this.pdfViewerBase.pageSize[parseInt(i.toString(),10)]&&this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].height<this.pdfViewerBase.pageSize[parseInt(i.toString(),10)].width||e&&(1===e.pageRotation[parseInt(i.toString(),10)]||3===e.pageRotation[parseInt(i.toString(),10)]))&&(a.style.height="86px",a.style.width="126px",n.style.height="100px",n.style.width="140px",r.style.left="18px",o.style.marginRight="41px",n.style.marginLeft="-5px",n.style.marginRight="0px",s=140),this.thumbnailPageSize.length>0){this.thumbnailTop=this.thumbnailPageSize[i-1].top+this.thumbnailPageSize[i-1].height;var l={height:s,top:this.thumbnailTop};this.thumbnailPageSize[parseInt(i.toString(),10)]=l}}this.isRendered=!0}},i.prototype.gotoThumbnailImage=function(e){var t=this.checkThumbnailScroll(e);if(this.thumbnailView){var i=this.thumbnailView.children[parseInt(e.toString(),10)];if(i){var n=i.children[0],o=void 0;t&&(this.pdfViewerBase.pageSize.length!==this.pdfViewerBase.pageCount||this.isRendered||this.renderDiv(),o=n.offsetTop<=0?n.parentElement.offsetTop+n.clientTop-this.thumbnailTopMargin:n.offsetTop+n.clientTop-this.thumbnailTopMargin,this.pdfViewerBase.navigationPane.sideBarContent.scrollTop=o),this.isThumbnailClicked||(this.previousElement&&(this.previousElement.classList.remove("e-pv-thumbnail-selection"),this.previousElement.classList.remove("e-pv-thumbnail-focus"),this.previousElement.classList.remove("e-pv-thumbnail-hover"),this.previousElement.classList.add("e-pv-thumbnail-selection-ring")),this.setFocusStyle(n,e)),this.previousElement=n.children[0]}}},i.prototype.determineThumbnailsRequest=function(e){var t=this.pdfViewer.pageCount,i=this.thumbnailRequestsBatch,n=Math.ceil(t/i);if(this.list.length===n)return t;for(var o=0;o<this.list.length;o++)e===this.list[parseInt(o.toString(),10)]&&(e+=i,o=-1);return void 0!==e&&e<t?e:t},i.prototype.checkThumbnailScroll=function(e){var t=!1;if(this.thumbnailView){var i=this.getVisibleThumbs(),n=i.views.length;if(n>0){var o=this.getPageNumberFromID(i.first.id),r=n>1?this.getPageNumberFromID(i.last.id):o;e<=o||e>=r?t=!0:i.views.some(function(i){var n=i.id.split("_"),o=n[n.length-1];return parseInt(o,10)===e&&(t=i.percent<100&&i.view.offsetWidth>i.view.offsetHeight&&i.percent<97,!0)})}}return t},i.prototype.getPageNumberFromID=function(e){var t=e.split("_"),i=t[t.length-1];return parseInt(i,10)},i.prototype.setFocusStyle=function(e,t){e.children[0].id===this.pdfViewer.element.id+"_thumbnail_Selection_Ring_"+t&&this.setMouseFocusStyle(e.children[0])},i.prototype.renderThumbnailImage=function(e,i){this.thumbnailView&&e&&(this.pdfViewerBase.clientSideRendering?this.renderClientThumbnailImage(e):this.renderServerThumbnailImage(e)),t.isNullOrUndefined(e)||t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||this.pdfViewer.pageOrganizer.getData(e,this.pdfViewerBase.clientSideRendering),this.thumbnailLimit=this.determineThumbnailsRequest(t.isNullOrUndefined(i)?this.thumbnailLimit:i),this.thumbnailLimit===this.pdfViewerBase.pageCount||!this.thumbnailView&&t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||(!!document.documentMode?this.createRequestForThumbnailImages():Promise.all([this.createRequestForThumbnailImages()]))},i.prototype.createRequestForThumbnailImages=function(){var e=this;return!!document.documentMode?(this.renderViewPortThumbnailImage(e),null):new Promise(function(t,i){e.renderViewPortThumbnailImage(e)})},i.prototype.renderServerThumbnailImage=function(e){for(var i=t.isNullOrUndefined(e&&e.startPage)?this.startIndex:e.startPage,n=t.isNullOrUndefined(e&&e.endPage)?this.thumbnailLimit:e.endPage,o=i;o<n;o++)this.thumbnailImageRender(o,e);this.isThumbnailViewOpen()},i.prototype.renderClientThumbnailImage=function(e){var t=e.pageIndex;this.thumbnailImageRender(t,e)},i.prototype.thumbnailImageRender=function(e,i){!t.isNullOrUndefined(i.pageRotation)&&Object.keys(i.pageRotation).length>0&&!this.isRendered&&this.renderDiv(i);var n=document.getElementById(this.pdfViewer.element.id+"_thumbnail_"+e),o=document.getElementById("page_"+e),r=document.getElementById(this.pdfViewer.element.id+"_thumbnail_pagenumber_"+e),a=this.getThumbnailImageElement(e);t.isNullOrUndefined(n)||t.isNullOrUndefined(a)||(a.src=this.pdfViewerBase.clientSideRendering||"string"==typeof i.thumbnailImage||i.thumbnailImage instanceof String?i.thumbnailImage:i.thumbnailImage[parseInt(e.toString(),10)],a.alt=this.pdfViewer.element.id+"_thumbnail_page_"+e,o.setAttribute("aria-label","Thumbnail of Page "+(e+1)),this.pdfViewerBase.pageSize[parseInt(e.toString(),10)]&&this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height<this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width&&(a.style.height="86px",a.style.width="126px",n.style.height="100px",n.style.width="140px",r.style.left="18px",o.style.marginRight="41px",n.style.marginLeft="-5px",n.style.marginRight="0px"),0===e&&(this.pdfViewerBase.navigationPane.enableThumbnailButton(),this.isThumbnailViewOpen()))},i.prototype.wireUpEvents=function(){this.thumbnailSelectionRing&&(this.thumbnailSelectionRing.addEventListener("click",this.thumbnailClick),this.thumbnailImage.addEventListener("keydown",this.thumbnailKeydown),this.thumbnailSelectionRing.addEventListener("mouseover",this.thumbnailMouseOver),this.thumbnailSelectionRing.addEventListener("mouseleave",this.thumbnailMouseLeave))},i.prototype.unwireUpEvents=function(){this.thumbnailSelectionRing&&this.thumbnailImage&&(this.thumbnailSelectionRing.removeEventListener("click",this.thumbnailClick),this.thumbnailImage.removeEventListener("keydown",this.thumbnailKeydown),this.thumbnailSelectionRing.removeEventListener("mouseover",this.thumbnailMouseOver),this.thumbnailSelectionRing.removeEventListener("mouseleave",this.thumbnailMouseLeave))},i.prototype.goToThumbnailPage=function(e){e>0&&e<=this.pdfViewerBase.pageCount&&this.pdfViewerBase.currentPageNumber!==e?this.pdfViewerBase.updateScrollTop(e-1):this.isThumbnailClicked=!1},i.prototype.setSelectionStyle=function(e){e.classList.remove("e-pv-thumbnail-selection-ring"),e.classList.remove("e-pv-thumbnail-hover"),e.classList.remove("e-pv-thumbnail-focus"),e.classList.add("e-pv-thumbnail-selection")},i.prototype.setMouseOverStyle=function(e){e.classList.contains("e-pv-thumbnail-selection")||(e.classList.remove("e-pv-thumbnail-selection-ring"),e.classList.contains("e-pv-thumbnail-focus")||e.classList.add("e-pv-thumbnail-hover"))},i.prototype.setMouseLeaveStyle=function(e){e.classList.contains("e-pv-thumbnail-selection")?e.classList.contains("e-pv-thumbnail-selection")||(e.classList.remove("e-pv-thumbnail-selection"),e.classList.add("e-pv-thumbnail-focus")):(e.classList.contains("e-pv-thumbnail-focus")||e.classList.add("e-pv-thumbnail-selection-ring"),e.classList.remove("e-pv-thumbnail-hover"))},i.prototype.setMouseFocusStyle=function(e){e.classList.remove("e-pv-thumbnail-selection"),e.classList.remove("e-pv-thumbnail-hover"),e.classList.add("e-pv-thumbnail-focus")},i.prototype.setMouseFocusToFirstPage=function(){var e=this.thumbnailView.children[0];if(e){var t=e.children[0].children[0];this.setMouseFocusStyle(t),this.previousElement=t}},i.prototype.clear=function(){if(this.startIndex=0,this.thumbnailLimit=0,this.list=[],this.thumbnailPageSize=[],this.thumbnailTop=0,this.isRendered=!1,this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.sideBarContentContainer&&(this.pdfViewerBase.navigationPane.sideBarContentContainer.style.display="block",this.pdfViewerBase.navigationPane.sideBarContent.scrollTop=0,this.pdfViewerBase.navigationPane.sideBarContentContainer.style.display="none"),this.thumbnailView)for(;this.thumbnailView.hasChildNodes();)this.thumbnailView.removeChild(this.thumbnailView.lastChild);this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.resetThumbnailView(),this.thumbnailRequestHandler&&this.thumbnailRequestHandler.clear(),this.unwireUpEvents()},i.prototype.getVisibleThumbs=function(){return this.getVisibleElements(this.pdfViewerBase.navigationPane.sideBarContent,this.thumbnailView.children)},i.prototype.getVisibleElements=function(e,t){function i(e){return e.offsetTop+e.clientTop+e.clientHeight>p}var n,o,r,a,s,l,d,A,h,p=e.scrollTop,c=p+e.clientHeight,g=e.scrollLeft,u=g+e.clientWidth,f=[],m=0===t.length?0:this.binarySearchFirstItem(t,i);t.length>0&&(m=this.backtrackBeforeAllVisibleElements(m,t,p));for(var w=-1,C=m,B=t.length;C<B;C++){if(n=this.getThumbnailElement(C),o=n,l=o.offsetLeft+o.clientLeft,r=o.offsetTop+o.clientTop,d=o.clientWidth,a=o.clientHeight,A=l+d,s=r+a,-1===w)s>=c&&(w=s);else if(r>w)break;s<=p||r>=c||A<=g||l>=u||(h=(a-(Math.max(0,p-r)+Math.max(0,s-c)))*(d-(Math.max(0,g-l)+Math.max(0,A-u)))*100/a/d|0,f.push({id:n.id,x:l,y:r,view:n,percent:h}))}return{first:f[0],last:f[f.length-1],views:f}},i.prototype.binarySearchFirstItem=function(e,t){var i=0,n=e.length-1;if(0===e.length||!t(this.getThumbnailElement(n)))return e.length-1;if(t(this.getThumbnailElement(i)))return i;for(;i<n;){var o=i+n>>1;t(this.getThumbnailElement(o))?n=o:i=o+1}return i},i.prototype.backtrackBeforeAllVisibleElements=function(e,t,i){if(e<2)return e;var n=this.getThumbnailElement(e),o=n.offsetTop+n.clientTop;o>=i&&(o=(n=this.getThumbnailElement(e-1)).offsetTop+n.clientTop);for(var r=e-2;r>=0&&!((n=this.getThumbnailElement(r)).offsetTop+n.clientTop+n.clientHeight<=o);--r)e=r;return e},i.prototype.getThumbnailElement=function(e){return this.thumbnailView.children[parseInt(e.toString(),10)].children[0]},i.prototype.getThumbnailLinkElement=function(e){return this.thumbnailView.children[parseInt(e.toString(),10)]},i.prototype.getThumbnailImageElement=function(e){if(t.isNullOrUndefined(this.thumbnailView))return null;var i=this.thumbnailView.children[parseInt(e.toString(),10)];return i?i.children[0].children[0].children[0]:null},i.prototype.destroy=function(){this.clear()},i.prototype.getModuleName=function(){return"ThumbnailView"},i}(),Oi=function(){function e(e,t,i){this.isToolbarHidden=!1,this.isTextboxBtnVisible=!0,this.isPasswordBtnVisible=!0,this.isCheckboxBtnVisible=!0,this.isRadiobuttonBtnVisible=!0,this.isDropdownBtnVisible=!0,this.isListboxBtnVisible=!0,this.isSignatureBtnVisible=!0,this.isDeleteBtnVisible=!0,this.toolbarBorderHeight=1,this.pdfViewer=e,this.pdfViewerBase=t,this.primaryToolbar=i}return e.prototype.initializeFormDesignerToolbar=function(){this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_formdesigner_toolbar",className:"e-pv-formdesigner-toolbar"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.toolbarElement),this.toolbar=new s.Toolbar({width:"",height:"",overflowMode:"Popup",items:this.createToolbarItems(),clicked:this.onToolbarClicked.bind(this)}),this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.toolbar.appendTo(this.toolbarElement),this.afterToolbarCreation(),this.createSignContainer(),this.applyFormDesignerToolbarSettings(),this.showFormDesignerToolbar(null,!0)},e.prototype.resetFormDesignerToolbar=function(){this.pdfViewer.isFormDesignerToolbarVisible?(this.pdfViewer.designerMode=!0,this.pdfViewer.formDesignerModule.setMode("designer"),this.adjustViewer(!1),this.toolbarElement.style.display="",this.isToolbarHidden=!1,this.adjustViewer(!0),this.primaryToolbar.selectItem(this.primaryToolbar.formDesignerItem),this.pdfViewer.isFormDesignerToolbarVisible=!0):(this.toolbarElement.style.display="none",this.isToolbarHidden=!0,this.pdfViewer.isAnnotationToolbarVisible||this.adjustViewer(!0),this.primaryToolbar.deSelectItem(this.primaryToolbar.formDesignerItem),this.pdfViewer.isFormDesignerToolbarVisible=!1)},e.prototype.showFormDesignerToolbar=function(e,t){if(this.isToolbarHidden){var i=this.toolbarElement.style.display;if(this.toolbarElement.style.display="block",this.pdfViewer.designerMode=!0,this.pdfViewer.formDesignerModule.setMode("designer"),t||(this.pdfViewer.isFormDesignerToolbarVisible=!0),e?this.primaryToolbar.selectItem(e):this.pdfViewer.enableToolbar&&this.primaryToolbar.selectItem(this.primaryToolbar.formDesignerItem),"none"===i&&this.adjustViewer(!0),this.pdfViewer.formFieldCollection){var n=this.pdfViewer.formFieldCollection.filter(function(e){return"Textbox"===e.formFieldAnnotationType&&e.isMultiline});n.forEach(function(e){var t=document.getElementById(e.id);t&&(t.style.pointerEvents="auto",t.style.resize="auto")})}}else e?this.primaryToolbar.deSelectItem(e):this.pdfViewer.enableToolbar&&this.primaryToolbar.deSelectItem(this.primaryToolbar.formDesignerItem),this.adjustViewer(!1),this.pdfViewer.formFieldCollection&&(n=this.pdfViewer.formFieldCollection.filter(function(e){return"Textbox"===e.formFieldAnnotationType&&e.isMultiline})).forEach(function(e){var t=document.getElementById(e.id);t&&(t.style.pointerEvents="none",t.style.resize="none")}),this.toolbarElement.style.display="none",this.pdfViewer.formDesignerModule.setMode("edit"),this.pdfViewer.designerMode=!1,t||(this.pdfViewer.isFormDesignerToolbarVisible=!1);this.pdfViewer.magnification&&"fitToPage"===this.pdfViewer.magnification.fitType&&this.pdfViewer.magnification.fitToPage(),this.isToolbarHidden=!this.isToolbarHidden},e.prototype.adjustViewer=function(e){var i,n,o;if(t.isBlazor()){i=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar-splitter"),n=this.pdfViewer.element.querySelector(".e-pv-toolbar");var r=this.pdfViewer.element.querySelector(".e-pv-formDesigner-toolbar");o=this.getToolbarHeight(r)}else i=this.pdfViewerBase.getElement("_sideBarToolbarSplitter"),n=this.pdfViewerBase.getElement("_toolbarContainer"),o=this.getToolbarHeight(this.toolbarElement);var a=this.getToolbarHeight(n),s=this.pdfViewerBase.navigationPane.sideBarToolbar,l=this.pdfViewerBase.navigationPane.sideBarContentContainer,d=this.pdfViewerBase.navigationPane.commentPanelContainer,A=this.pdfViewerBase.navigationPane.commentPanelResizer,h="";e?(this.pdfViewer.enableToolbar?(s.style.top=a+o+"px",l.style.top=a+o+"px",i.style.top=a+o+"px",d.style.top=a+o+"px",A.style.top=a+o+"px"):(s.style.top=o+"px",l.style.top=o+"px",i.style.top=o+"px",d.style.top=o+"px",A.style.top=a+o+"px"),this.pdfViewer.enableToolbar||(a=0),this.pdfViewerBase.viewerContainer.style.height=this.updateViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),o+a)+"px",h=this.getNavigationToolbarHeight(o+a),s.style.height=h,i.style.height=h,A.style.height=h,l.style.height=h):(this.pdfViewer.enableToolbar?(s.style.top=a+"px",l.style.top=a+"px",i.style.top=a+"px",d.style.top=a+"px",A.style.top=a+"px"):(s.style.top="1px",s.style.height="100%",l.style.top="1px",l.style.height="100%",i.style.top="1px",i.style.height="100%",d.style.top="1px",d.style.height="100%",A.style.top="1px",A.style.height="100%"),this.pdfViewer.enableToolbar||(a=0),this.pdfViewerBase.viewerContainer.style.height=this.updateViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),o)+"px",h=this.getNavigationToolbarHeight(a),s.style.height=h,i.style.height=h,A.style.height=h,l.style.height=h,"0px"===this.pdfViewerBase.viewerContainer.style.height&&(this.pdfViewerBase.viewerContainer.style.height=parseInt(this.pdfViewer.element.style.height,10)-parseInt(s.style.top,10)+"px"))},e.prototype.getElementHeight=function(e){try{return e.getBoundingClientRect().height}catch(e){return 0}},e.prototype.updateViewerHeight=function(e,t){return this.getElementHeight(this.pdfViewer.element)-t},e.prototype.resetViewerHeight=function(e,t){return e+t},e.prototype.getNavigationToolbarHeight=function(e){var t=this.pdfViewer.element.getBoundingClientRect().height;return 0!==t?t-e+"px":""},e.prototype.updateContentContainerHeight=function(e,t){var i;if(t){var n=this.pdfViewer.element.querySelector(".e-pv-formDesigner-toolbar");i=this.getToolbarHeight(n)}else i=this.getToolbarHeight(this.toolbarElement);var o=this.pdfViewerBase.navigationPane.sideBarContentContainer.getBoundingClientRect();0!==o.height&&(this.pdfViewerBase.navigationPane.sideBarContentContainer.style.height=e?o.height-i+"px":o.height+i+"px")},e.prototype.getToolbarHeight=function(e){var t=e.getBoundingClientRect().height;return 0===t&&e===this.pdfViewerBase.getElement("_toolbarContainer")&&(t=parseFloat(window.getComputedStyle(e).height)+this.toolbarBorderHeight),t},e.prototype.createToolbarItems=function(){var e=this.getTemplate("button","_formfield_signature","e-pv-annotation-handwritten-container"),t=[];return t.push({prefixIcon:"e-pv-textbox-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_textbox",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-password-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_passwordfield",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-checkbox-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_checkbox",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-radiobutton-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_radiobutton",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-dropdown-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_dropdown",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-listbox-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_formdesigner_listbox",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({template:e,align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({type:"Separator",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-annotation-delete-icon e-pv-icon",className:"e-pv-annotation-delete-container",id:this.pdfViewer.element.id+"_formdesigner_delete",align:"Left",attr:{tabindex:0,"data-tabindex":0}}),t.push({prefixIcon:"e-pv-annotation-tools-close-icon e-pv-icon",className:"e-pv-annotation-tools-close-container",id:this.pdfViewer.element.id+"_formdesigner_close",align:"Right",attr:{tabindex:0,"data-tabindex":0}}),t},e.prototype.createSignContainer=function(){var e=this;this.handWrittenSignatureItem=this.pdfViewerBase.getElement("_formfield_signature"),this.handWrittenSignatureItem.setAttribute("tabindex","0"),this.handWrittenSignatureItem.setAttribute("data-tabindex","0"),this.primaryToolbar.createTooltip(this.pdfViewerBase.getElement("_formfield_signature"),this.pdfViewer.localeObj.getConstant("HandwrittenSignatureDialogHeaderText"));var i=[],n={items:i=[{text:"ADD SIGNATURE"},{separator:!0},{text:"ADD INITIAL"}],iconCss:"e-pv-handwritten-icon e-pv-icon",cssClass:"e-pv-handwritten-popup",beforeItemRender:function(i){if(e.pdfViewer.clearSelection(e.pdfViewerBase.currentPageNumber-1),i.element&&-1!==i.element.className.indexOf("e-separator")&&(i.element.style.margin="8px 0",i.element.setAttribute("role","menuitem"),i.element.setAttribute("aria-label","separator")),"ADD SIGNATURE"===i.item.text&&(i.element.innerHTML="",(n=t.createElement("button")).classList.add("e-control","e-btn","e-lib","e-outline","e-primary"),n.textContent=e.pdfViewer.localeObj.getConstant("SignatureFieldDialogHeaderText"),"en-US"===e.pdfViewer.locale?n.style.width="130px":n.style.width="auto",n.style.height="36px",n.addEventListener("click",e.clickSignature.bind(e)),i.element.appendChild(n),i.element.addEventListener("mouseover",e.hoverInitialBtn.bind(e)),i.element.style.width="206px",i.element.style.display="flex",i.element.style.flexDirection="column",i.element.style.height="auto",i.element.style.alignItems="center",i.element.setAttribute("role","menuitem")),"ADD INITIAL"===i.item.text){i.element.innerHTML="";var n=t.createElement("button");n.classList.add("e-control","e-btn","e-lib","e-outline","e-primary"),n.textContent=e.pdfViewer.localeObj.getConstant("InitialFieldDialogHeaderText"),"en-US"===e.pdfViewer.locale?n.style.width="130px":n.style.width="auto",n.style.height="36px",n.addEventListener("click",e.clickInitial.bind(e)),i.element.appendChild(n),i.element.addEventListener("mouseover",e.hoverInitialBtn.bind(e)),i.element.style.width="206px",i.element.style.display="flex",i.element.style.flexDirection="column",i.element.style.height="auto",i.element.style.alignItems="center",i.element.setAttribute("role","menuitem")}}},o=new r.DropDownButton(n);this.pdfViewer.enableRtl&&(o.enableRtl=this.pdfViewer.enableRtl),o.appendTo(this.handWrittenSignatureItem)},e.prototype.hoverInitialBtn=function(e){var i=e.target,n=t.isNullOrUndefined(e.path)?e.composedPath()[0].id:e.path[0].id;if(n!=="sign_"+n.split("_")[1]&&n!=="delete_"+n.split("_")[1]){var o=document.getElementById(i.id);t.isNullOrUndefined(o)&&(o=document.getElementById(i.parentElement.id)),null==o||i.id==="sign_"+i.id.split("_")[1]&&i.id==="sign_border_"+i.id.split("_")[2]?null==o.parentElement||i.id==="sign_"+i.id.split("_")[1]&&i.id==="sign_border_"+i.id.split("_")[2]||(o.parentElement.style.background="transparent",o.parentElement.style.cursor="default"):(o.style.background="transparent",o.style.cursor="default")}},e.prototype.getTemplate=function(e,i,n){var o=t.createElement(e,{id:this.pdfViewer.element.id+i});return n&&(o.className=n),o.outerHTML},e.prototype.onToolbarClicked=function(e){e&&e.item&&(-1!==e.item.id.indexOf("textbox")?this.pdfViewer.formDesignerModule.setFormFieldMode("Textbox"):-1!==e.item.id.indexOf("passwordfield")?this.pdfViewer.formDesignerModule.setFormFieldMode("Password"):-1!==e.item.id.indexOf("checkbox")?this.pdfViewer.formDesignerModule.setFormFieldMode("CheckBox"):-1!==e.item.id.indexOf("radiobutton")?this.pdfViewer.formDesignerModule.setFormFieldMode("RadioButton"):-1!==e.item.id.indexOf("dropdown")?this.pdfViewer.formDesignerModule.setFormFieldMode("DropDown"):-1!==e.item.id.indexOf("listbox")?this.pdfViewer.formDesignerModule.setFormFieldMode("ListBox"):-1!==e.item.id.indexOf("signature")?this.pdfViewer.formDesignerModule.setFormFieldMode("SignatureField"):-1!==e.item.id.indexOf("close")?this.pdfViewer.toolbarModule.formDesignerToolbarModule.showFormDesignerToolbar(this.pdfViewer.toolbarModule.formDesignerItem):-1!==e.item.id.indexOf("delete")&&(this.pdfViewer.formDesignerModule.deleteFormField(this.pdfViewer.selectedItems.formFields[0]),this.showHideDeleteIcon(!1)),this.pdfViewer.selectedItems.formFields.length>0&&this.pdfViewer.clearSelection(this.pdfViewer.selectedItems.formFields[0].pageIndex))},e.prototype.clickSignature=function(e){this.pdfViewer.formDesignerModule.setFormFieldMode("SignatureField")},e.prototype.clickInitial=function(e){this.pdfViewer.isInitialFieldToolbarSelection=!0,this.pdfViewer.formDesignerModule.setFormFieldMode("InitialField"),this.pdfViewer.isInitialFieldToolbarSelection=!1},e.prototype.afterToolbarCreation=function(){this.textboxItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_textbox","e-pv-formdesigner-textbox",this.pdfViewer.localeObj.getConstant("Textbox")),this.textboxItem.setAttribute("tabindex","0"),this.textboxItem.setAttribute("data-tabindex","0"),this.passwordItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_passwordfield","e-pv-formdesigner-passwordfield",this.pdfViewer.localeObj.getConstant("Password")),this.passwordItem.setAttribute("tabindex","0"),this.passwordItem.setAttribute("data-tabindex","0"),this.checkboxItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_checkbox","e-pv-formdesigner-checkbox",this.pdfViewer.localeObj.getConstant("Check Box")),this.checkboxItem.setAttribute("tabindex","0"),this.checkboxItem.setAttribute("data-tabindex","0"),this.radioButtonItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_radiobutton","e-pv-formdesigner-radiobutton",this.pdfViewer.localeObj.getConstant("Radio Button")),this.radioButtonItem.setAttribute("tabindex","0"),this.radioButtonItem.setAttribute("data-tabindex","0"),this.dropdownItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_dropdown","e-pv-formdesigner-dropdown",this.pdfViewer.localeObj.getConstant("Dropdown")),this.dropdownItem.setAttribute("tabindex","0"),this.dropdownItem.setAttribute("data-tabindex","0"),this.listboxItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_listbox","e-pv-formdesigner-listbox",this.pdfViewer.localeObj.getConstant("List Box")),this.listboxItem.setAttribute("tabindex","0"),this.listboxItem.setAttribute("data-tabindex","0"),this.deleteItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_delete","e-pv-formdesigner-delete",this.pdfViewer.localeObj.getConstant("Delete FormField")),this.closeItem=this.primaryToolbar.addClassToolbarItem("_formdesigner_close","e-pv-annotation-tools-close",null),this.closeItem.setAttribute("tabindex","0"),this.closeItem.setAttribute("data-tabindex","0"),this.showHideDeleteIcon(!1)},e.prototype.showHideDeleteIcon=function(e){this.toolbar&&(this.toolbar.enableItems(this.deleteItem.parentElement,e),this.deleteItem.setAttribute("tabindex",e?"0":"-1"),this.deleteItem.setAttribute("data-tabindex",e?"0":"-1"))},e.prototype.applyFormDesignerToolbarSettings=function(){this.pdfViewer.toolbarSettings.formDesignerToolbarItems&&(-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("TextboxTool")?this.showTextboxTool(!0):this.showTextboxTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("PasswordTool")?this.showPasswordTool(!0):this.showPasswordTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("CheckBoxTool")?this.showCheckboxTool(!0):this.showCheckboxTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("RadioButtonTool")?this.showRadioButtonTool(!0):this.showRadioButtonTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("DropdownTool")?this.showDropdownTool(!0):this.showDropdownTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("ListboxTool")?this.showListboxTool(!0):this.showListboxTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("DrawSignatureTool")?this.showDrawSignatureTool(!0):this.showDrawSignatureTool(!1),-1!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.indexOf("DeleteTool")?this.showDeleteTool(!0):this.showDeleteTool(!1),this.showSeparator())},e.prototype.showTextboxTool=function(e){this.isTextboxBtnVisible=e,this.applyHideToToolbar(e,0,0)},e.prototype.showPasswordTool=function(e){this.isPasswordBtnVisible=e,this.applyHideToToolbar(e,1,1)},e.prototype.showCheckboxTool=function(e){this.isCheckboxBtnVisible=e,this.applyHideToToolbar(e,2,2)},e.prototype.showRadioButtonTool=function(e){this.isRadiobuttonBtnVisible=e,this.applyHideToToolbar(e,3,3)},e.prototype.showDropdownTool=function(e){this.isDropdownBtnVisible=e,this.applyHideToToolbar(e,4,4)},e.prototype.showListboxTool=function(e){this.isListboxBtnVisible=e,this.applyHideToToolbar(e,5,5)},e.prototype.showDrawSignatureTool=function(e){this.isSignatureBtnVisible=e,this.applyHideToToolbar(e,6,6)},e.prototype.showDeleteTool=function(e){this.isDeleteBtnVisible=e,this.applyHideToToolbar(e,8,8)},e.prototype.showSeparator=function(){this.isSignatureBtnVisible||this.isDeleteBtnVisible||this.applyHideToToolbar(!1,7,7)},e.prototype.applyHideToToolbar=function(e,t,i){for(var n=!e,o=t;o<=i;o++)this.toolbar.hideItem(o,n)},e.prototype.destroy=function(){for(var e=[this.textboxItem,this.passwordItem,this.checkboxItem,this.radioButtonItem,this.listboxItem,this.dropdownItem,this.handWrittenSignatureItem,this.deleteItem],t=0;t<e.length;t++)e[parseInt(t.toString(),10)]&&this.destroyDependentComponent(e[parseInt(t.toString(),10)])},e.prototype.destroyDependentComponent=function(e){if(e.ej2_instances)for(var t=e.ej2_instances.length-1;t>=0;t--)e.ej2_instances[parseInt(t.toString(),10)].destroy()},e}(),zi=function(){function i(e,i){var n=this;this.isPageNavigationToolDisabled=!1,this.isMagnificationToolDisabled=!1,this.isSelectionToolDisabled=!1,this.isScrollingToolDisabled=!1,this.isOpenBtnVisible=!0,this.isNavigationToolVisible=!0,this.isMagnificationToolVisible=!0,this.isSelectionBtnVisible=!0,this.isScrollingBtnVisible=!0,this.isDownloadBtnVisible=!0,this.isPrintBtnVisible=!0,this.isSearchBtnVisible=!0,this.isTextSearchBoxDisplayed=!1,this.isUndoRedoBtnsVisible=!0,this.isAnnotationEditBtnVisible=!0,this.isFormDesignerEditBtnVisible=!0,this.isCommentBtnVisible=!0,this.isSubmitbtnvisible=!0,this.toolItems=[],this.itemsIndexArray=[],this.onToolbarKeydown=function(e){var t="Tab"===e.key||!0===e.shiftKey||"Enter"===e.key||" "===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"ArrowLeft"===e.key||"ArrowRight"===e.key,i=e.target.id,o=n.toolItems.filter(function(e){return e.id===i});i===n.pdfViewer.element.id+"_currentPageInput"||i===n.pdfViewer.element.id+"_zoomDropDown"||o.length>0||t||(e.preventDefault(),e.stopPropagation())},this.toolbarClickHandler=function(e){var i=e.originalEvent&&"mouse"!==e.originalEvent.pointerType&&"touch"!==e.originalEvent.pointerType;if(!t.Browser.isDevice||n.pdfViewer.enableDesktopMode)if(e.originalEvent.target===n.zoomDropdownItem.parentElement.childNodes[1]||e.originalEvent.target===n.zoomDropdownItem.parentElement.childNodes[2])e.cancel=!0;else if(e.originalEvent.target.id===n.pdfViewer.element.id+"_openIcon"){var o=e.originalEvent.target.parentElement.dataset;if(o&&o.tooltipId){var r=document.getElementById(o.tooltipId);r&&(r.style.display="none")}}n.handleToolbarBtnClick(e,i);var a=e.originalEvent.target,s=[];t.isNullOrUndefined(e.item)||(s=n.toolItems.filter(function(t){return t.id===e.item.id})),!t.Browser.isDevice||n.pdfViewer.enableDesktopMode?e.originalEvent.target===n.zoomDropdownItem.parentElement.childNodes[1]||e.originalEvent.target===n.zoomDropdownItem.parentElement.childNodes[2]||e.originalEvent.target===n.currentPageBoxElement||e.originalEvent.target===n.textSearchItem.childNodes[0]||s.length>0||i||a.parentElement.id===n.pdfViewer.element.id+"_toolbarContainer_nav"||a.id===n.pdfViewer.element.id+"_toolbarContainer_nav"||(e.originalEvent.target.blur(),n.pdfViewerBase.focusViewerContainer()):(e.originalEvent.target.blur(),n.pdfViewerBase.focusViewerContainer())},this.loadDocument=function(e){var i=e.target.files;if(null!==e.target.files[0]){var o=i[0];if(o){n.uploadedDocumentName=o.name;var r=new FileReader;n.pdfViewerBase.clientSideRendering?r.readAsArrayBuffer(o):r.readAsDataURL(o),r.onload=function(i){e.target.value=null;var o=i.currentTarget.result;n.pdfViewer.uploadedFileByteArray=new Uint8Array(o),t.isBlazor()?n.pdfViewer._dotnetInstance.invokeMethodAsync("LoadDocumentFromClient",o):n.pdfViewerBase.clientSideRendering?(n.uploadedFile=n.pdfViewer.uploadedFileByteArray,n.pdfViewerBase.skipOnReload=!0,n.pdfViewer.load(n.pdfViewer.uploadedFileByteArray,null),n.pdfViewerBase.isSkipDocumentPath=!0,n.pdfViewer.documentPath=n.pdfViewer.uploadedFileByteArray,n.pdfViewerBase.documentPathByteArray=n.pdfViewer.documentPath,n.pdfViewerBase.skipOnReload=!1):(n.uploadedFile=o,n.pdfViewer.load(o,null),n.pdfViewerBase.isSkipDocumentPath=!0,n.pdfViewer.documentPath=o,n.pdfViewerBase.documentPathByteArray=n.pdfViewer.documentPath),t.isNullOrUndefined(n.fileInputElement)||(n.fileInputElement.value="")}}}},this.navigateToPage=function(e){if(13===e.which){var t=parseInt(n.currentPageBoxElement.value,10);null!==t&&t>0&&t<=n.pdfViewerBase.pageCount?n.pdfViewer.navigationModule&&n.pdfViewer.navigationModule.goToPage(t):n.updateCurrentPage(n.pdfViewerBase.currentPageNumber),n.currentPageBoxElement.blur(),n.pdfViewerBase.focusViewerContainer()}},this.textBoxFocusOut=function(){(null===n.currentPageBox.value||n.currentPageBox.value>=n.pdfViewerBase.pageCount||n.currentPageBox.value!==n.pdfViewerBase.currentPageNumber)&&n.updateCurrentPage(n.pdfViewerBase.currentPageNumber)},this.pdfViewer=e,this.pdfViewerBase=i}return i.prototype.intializeToolbar=function(e){var i;return t.isBlazor()?t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(i=this.pdfViewer.element.querySelector(".e-pv-toolbar"),this.toolbarElement=i):i=this.createToolbar(e),!!document.documentMode&&(t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.totalPageElement.classList.add("e-pv-total-page-ms"):t.Browser.isDevice||this.totalPageItem.classList.add("e-pv-total-page-ms")),this.createFileElement(i),this.wireEvent(),t.isBlazor()?(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.initialEnableItems(),this.pdfViewerBase.navigationPane.adjustPane(),this.pdfViewer.enableToolbar&&this.bindOpenIconEvent()),this.PanElement=document.getElementById(this.pdfViewer.element.id+"_handTool").children[0],this.PanElement.classList.add("e-pv-tbar-btn"),this.SelectToolElement=document.getElementById(this.pdfViewer.element.id+"_selectTool").children[0],this.SelectToolElement.classList.add("e-pv-tbar-btn"),this.CommentElement=document.getElementById(this.pdfViewer.element.id+"_comment").children[0],this.CommentElement.classList.add("e-pv-tbar-btn"),this.annotationToolbarModule=new Hi(this.pdfViewer,this.pdfViewerBase,this),(this.pdfViewer.enableToolbar&&this.pdfViewer.enableAnnotationToolbar||this.pdfViewer.enableDesktopMode&&t.Browser.isDevice)&&this.annotationToolbarModule.afterAnnotationToolbarCreationInBlazor()):(this.updateToolbarItems(),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?(this.applyToolbarSettings(),this.initialEnableItems(),this.pdfViewerBase.navigationPane.adjustPane()):this.initialEnableItems(),this.pdfViewer.annotationModule&&(this.annotationToolbarModule=new Hi(this.pdfViewer,this.pdfViewerBase,this),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||this.annotationToolbarModule.initializeAnnotationToolbar()),this.pdfViewer.formDesignerModule&&(this.formDesignerToolbarModule=new Oi(this.pdfViewer,this.pdfViewerBase,this),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||this.formDesignerToolbarModule.initializeFormDesignerToolbar())),i},i.prototype.bindOpenIconEvent=function(){var e=document.getElementById(this.pdfViewer.element.id+"_open");e&&e.addEventListener("click",this.openFileDialogBox.bind(this))},i.prototype.InitializeMobileToolbarInBlazor=function(){var e=this.pdfViewer.element.querySelector(".e-pv-mobile-toolbar");this.createFileElement(e),this.wireEvent()},i.prototype.showToolbar=function(e){var i;if(t.isNullOrUndefined(this.toolbarElement)||(i=this.toolbarElement),e){t.isNullOrUndefined(i)||this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.isNavigationToolbarVisible||(i.style.display="block");var n=this.pdfViewerBase.getElement("_toolbarContainer");if(n){var o=n.clientHeight;0===o&&(o=parseFloat(window.getComputedStyle(n).height)+1),this.pdfViewerBase.toolbarHeight=o}t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.hideMobileAnnotationToolbar()}else this.pdfViewerBase.toolbarHeight=0,e&&(t.Browser.isDevice&&this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar&&(this.annotationToolbarModule.toolbarCreated=!1,this.annotationToolbarModule.adjustMobileViewer(),this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.element.style.display="none"),t.Browser.isDevice&&this.annotationToolbarModule.propertyToolbar&&(this.annotationToolbarModule.propertyToolbar.element.style.display="none")),t.isNullOrUndefined(i)||(i.style.display="none")},i.prototype.showNavigationToolbar=function(e){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){var i=this.pdfViewerBase.navigationPane.sideBarToolbar,n=this.pdfViewerBase.navigationPane.sideBarToolbarSplitter;e?(t.isNullOrUndefined(i)||(i.style.display="block"),t.isNullOrUndefined(n)||(n.style.display="block"),(this.pdfViewerBase.navigationPane.isBookmarkOpen||this.pdfViewerBase.navigationPane.isThumbnailOpen)&&this.pdfViewerBase.navigationPane.clear()):(t.isNullOrUndefined(i)||(i.style.display="none"),t.isNullOrUndefined(n)||(n.style.display="none"),(this.pdfViewerBase.navigationPane.isBookmarkOpen||this.pdfViewerBase.navigationPane.isThumbnailOpen)&&this.pdfViewerBase.navigationPane.updateViewerContainerOnClose())}},i.prototype.showAnnotationToolbar=function(e){e?(this.annotationToolbarModule.isToolbarHidden=!0,this.annotationToolbarModule.showAnnotationToolbar(null,!1,!0)):(this.annotationToolbarModule.isToolbarHidden=!1,this.annotationToolbarModule.showAnnotationToolbar(null,!1,!1))},i.prototype.showToolbarItem=function(e,i){for(var n=0;n<e.length;n++)switch(e[parseInt(n.toString(),10)]){case"OpenOption":this.showOpenOption(i);break;case"PageNavigationTool":this.showPageNavigationTool(i);break;case"MagnificationTool":this.showMagnificationTool(i);break;case"SelectionTool":this.showSelectionTool(i);break;case"PanTool":this.showScrollingTool(i);break;case"DownloadOption":this.showDownloadOption(i);break;case"PrintOption":this.showPrintOption(i);break;case"SearchOption":this.showSearchOption(i);break;case"UndoRedoTool":this.showUndoRedoTool(i);break;case"AnnotationEditTool":this.showAnnotationEditTool(i);break;case"FormDesignerEditTool":this.showFormDesignerEditTool(i);break;case"CommentTool":this.showCommentOption(i);break;case"SubmitForm":this.showSubmitForm(i)}!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?(this.applyHideToToolbar(!0,this.itemsIndexArray[0].endIndex+1,this.itemsIndexArray[0].endIndex+1),this.applyHideToToolbar(!0,this.itemsIndexArray[1].endIndex+1,this.itemsIndexArray[1].endIndex+1),this.applyHideToToolbar(!0,this.itemsIndexArray[2].endIndex+1,this.itemsIndexArray[2].endIndex+1),this.applyHideToToolbar(!0,this.itemsIndexArray[4].endIndex+1,this.itemsIndexArray[4].endIndex+1),this.applyHideToToolbar(!0,this.itemsIndexArray[5].endIndex+1,this.itemsIndexArray[5].endIndex+1)):(this.applyHideToToolbar(!0,1,1),this.applyHideToToolbar(!0,8,8),this.applyHideToToolbar(!0,12,12),this.applyHideToToolbar(!0,15,15)),this.showSeparator(e)},i.prototype.enableToolbarItem=function(e,i){for(var n=0;n<e.length;n++)switch(e[parseInt(n.toString(),10)]){case"OpenOption":this.enableOpenOption(i);break;case"PageNavigationTool":this.isPageNavigationToolDisabled=i,this.enablePageNavigationTool(i);break;case"MagnificationTool":this.isMagnificationToolDisabled=i,this.enableMagnificationTool(i);break;case"SelectionTool":this.isSelectionToolDisabled=i,this.enableSelectionTool(i);break;case"PanTool":this.isScrollingToolDisabled=i,this.enableScrollingTool(i);break;case"DownloadOption":this.enableDownloadOption(i);break;case"PrintOption":this.enablePrintOption(i);break;case"SearchOption":this.enableSearchOption(i);break;case"UndoRedoTool":this.enableUndoRedoTool(i);break;case"AnnotationEditTool":this.enableAnnotationEditTool(i);break;case"FormDesignerEditTool":this.enableFormDesignerEditTool(i);break;case"CommentTool":this.enableCommentsTool(i);break;case"OrganizePagesTool":this.enableOrganizePagesButton(i);break;default:var o=void 0,r=e[parseInt(n.toString(),10)];if(r.template){var a=r.template.match(/id="([^"]+)"/),s=a?a[1]:null;(o=t.isNullOrUndefined(s)?null:document.getElementById(s))&&this.enableItems(o.parentElement.parentElement,i)}else(o=t.isNullOrUndefined(r.id)?null:document.getElementById(r.id))&&this.enableItems(o.parentElement,i)}},i.prototype.DisableToolbarItems=function(e,t){switch(e){case"Print":this.enablePrintOption(t);break;case"CopyContent":this.isSelectionToolDisabled=t,this.enableSelectionTool(t),t?(this.pdfViewerBase.initiateTextSelectMode(),this.updateInteractionTools(t)):(this.pdfViewerBase.initiatePanning(),this.updateInteractionTools(t));break;case"EditAnnotations":this.enableAnnotationEditTool(t),this.annotationToolbarModule&&!this.annotationToolbarModule.isToolbarHidden&&this.annotationToolbarModule.showAnnotationToolbar()}},i.prototype.showOpenOption=function(e){this.isOpenBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[0])?0:this.itemsIndexArray[0].startIndex,t.isNullOrUndefined(this.itemsIndexArray[0])?0:this.itemsIndexArray[0].endIndex)},i.prototype.showPageNavigationTool=function(e){this.isNavigationToolVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[1])?2:this.itemsIndexArray[1].startIndex,t.isNullOrUndefined(this.itemsIndexArray[1])?7:this.itemsIndexArray[1].endIndex)},i.prototype.showMagnificationTool=function(e){this.isMagnificationToolVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[2])?9:this.itemsIndexArray[2].startIndex,t.isNullOrUndefined(this.itemsIndexArray[2])?11:this.itemsIndexArray[2].endIndex)},i.prototype.showSelectionTool=function(e){this.isSelectionBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[3])?13:this.itemsIndexArray[3].startIndex,t.isNullOrUndefined(this.itemsIndexArray[3])?13:this.itemsIndexArray[3].endIndex)},i.prototype.showScrollingTool=function(e){this.isScrollingBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[4])?14:this.itemsIndexArray[4].startIndex,t.isNullOrUndefined(this.itemsIndexArray[4])?14:this.itemsIndexArray[4].endIndex)},i.prototype.showDownloadOption=function(e){this.isDownloadBtnVisible=e,!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[12])?26:this.itemsIndexArray[12].startIndex,t.isNullOrUndefined(this.itemsIndexArray[12])?26:this.itemsIndexArray[12].endIndex):this.applyHideToToolbar(e,6,6)},i.prototype.showPageOrganizerToolbar=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&this.applyHideToToolbar(e,4,4)},i.prototype.showPrintOption=function(e){this.isPrintBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[11])?25:this.itemsIndexArray[11].startIndex,t.isNullOrUndefined(this.itemsIndexArray[11])?25:this.itemsIndexArray[11].endIndex)},i.prototype.showSearchOption=function(e){this.isSearchBtnVisible=e,!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[8])?22:this.itemsIndexArray[8].startIndex,t.isNullOrUndefined(this.itemsIndexArray[8])?22:this.itemsIndexArray[8].endIndex):this.applyHideToToolbar(e,6,6)},i.prototype.showUndoRedoTool=function(e){this.isUndoRedoBtnsVisible=e,!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[5])?16:this.itemsIndexArray[5].startIndex,t.isNullOrUndefined(this.itemsIndexArray[5])?17:this.itemsIndexArray[5].endIndex):this.applyHideToToolbar(e,2,3)},i.prototype.showCommentOption=function(e){this.pdfViewer.enableStickyNotesAnnotation?(this.isCommentBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[6])?18:this.itemsIndexArray[6].startIndex,t.isNullOrUndefined(this.itemsIndexArray[6])?19:this.itemsIndexArray[6].endIndex)):(this.isCommentBtnVisible=e,this.applyHideToToolbar(this.pdfViewer.enableStickyNotesAnnotation,t.isNullOrUndefined(this.itemsIndexArray[6])?18:this.itemsIndexArray[6].startIndex,t.isNullOrUndefined(this.itemsIndexArray[6])?19:this.itemsIndexArray[6].endIndex))},i.prototype.showAnnotationEditTool=function(e){this.isAnnotationEditBtnVisible=e,!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[9])?23:this.itemsIndexArray[9].startIndex,t.isNullOrUndefined(this.itemsIndexArray[9])?23:this.itemsIndexArray[9].endIndex):this.applyHideToToolbar(e,5,5)},i.prototype.showFormDesignerEditTool=function(e){this.isFormDesignerEditBtnVisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[10])?24:this.itemsIndexArray[10].startIndex,t.isNullOrUndefined(this.itemsIndexArray[10])?24:this.itemsIndexArray[10].endIndex)},i.prototype.showSubmitForm=function(e){this.isSubmitbtnvisible=e,this.applyHideToToolbar(e,t.isNullOrUndefined(this.itemsIndexArray[7])?20:this.itemsIndexArray[7].startIndex,t.isNullOrUndefined(this.itemsIndexArray[7])?21:this.itemsIndexArray[7].endIndex)},i.prototype.enableOpenOption=function(e){this.enableItems(this.openDocumentItem.parentElement,e)},i.prototype.enablePageNavigationTool=function(e){this.enableItems(this.firstPageItem.parentElement,e),this.enableItems(this.previousPageItem.parentElement,e),this.enableItems(this.nextPageItem.parentElement,e),this.enableItems(this.lastPageItem.parentElement,e),this.currentPageBox.readonly=!e},i.prototype.enableMagnificationTool=function(e){this.enableItems(this.zoomInItem.parentElement,e),this.enableItems(this.zoomOutItem.parentElement,e),this.zoomDropDown.readonly=!e},i.prototype.enableSelectionTool=function(e){this.textSelectItem&&this.textSelectItem.parentElement&&this.enableItems(this.textSelectItem.parentElement,e)},i.prototype.enableScrollingTool=function(e){this.enableItems(this.panItem.parentElement,e)},i.prototype.enableDownloadOption=function(e){this.enableItems(this.downloadItem.parentElement,e)},i.prototype.enablePrintOption=function(e){this.enableItems(this.printItem.parentElement,e)},i.prototype.enableSearchOption=function(e){this.enableItems(this.textSearchItem.parentElement,e)},i.prototype.enableUndoRedoTool=function(e){this.enableItems(this.undoItem.parentElement,e),this.enableItems(this.redoItem.parentElement,e)},i.prototype.enableAnnotationEditTool=function(e){this.enableItems(this.annotationItem.parentElement,e)},i.prototype.enableFormDesignerEditTool=function(e){this.enableItems(this.formDesignerItem.parentElement,e)},i.prototype.enableCommentsTool=function(e){this.pdfViewer.enableStickyNotesAnnotation&&this.enableItems(this.annotationItem.parentElement,e)},i.prototype.enableOrganizePagesButton=function(e){t.isNullOrUndefined(this.organizePageItem)||t.isNullOrUndefined(this.organizePageItem.parentElement)||!this.pdfViewer.enablePageOrganizer||this.enableItems(this.organizePageItem.parentElement,e)},i.prototype.resetToolbar=function(){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)if(t.isNullOrUndefined(this.currentPageBox)||(this.currentPageBox.min=0,this.currentPageBox.value=0),this.updateTotalPage(),this.updateToolbarItems(),this.pdfViewer.toolbarModule&&this.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.updateFontSizeInIcon(16),this.annotationToolbarModule)this.annotationToolbarModule.clear();else if(this.annotationToolbarModule){this.annotationToolbarModule.propertyToolbar&&this.annotationToolbarModule.propertyToolbar.destroy();var e=document.getElementById(this.pdfViewer.element.id+"_commentscontentcontainer");e&&(e.innerHTML="")}},i.prototype.updateToolbarItems=function(){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)this.toolbar&&(0===this.pdfViewerBase.pageCount?(this.enableItems(this.downloadItem.parentElement,!1),this.enableItems(this.printItem.parentElement,!1),this.enableItems(this.commentItem.parentElement,!1),this.updateUndoRedoButtons(),this.updateNavigationButtons(),this.enableItems(this.zoomInItem.parentElement,!1),this.enableItems(this.zoomOutItem.parentElement,!1),this.pdfViewer.magnificationModule&&(this.zoomDropDown.readonly=!0),this.enableItems(this.submitItem.parentElement,!1),this.toolbar.enableItems(this.pdfViewerBase.getElement("_currentPageInputContainer"),!1),this.enableItems(this.pdfViewerBase.getElement("_zoomDropDownContainer"),!1),this.enableItems(this.textSelectItem.parentElement,!1),this.enableItems(this.annotationItem.parentElement,!1),this.enableItems(this.formDesignerItem.parentElement,!1),this.enableItems(this.panItem.parentElement,!1),this.enableItems(this.textSearchItem.parentElement,!1),this.deSelectItem(this.annotationItem),this.annotationToolbarModule&&this.annotationToolbarModule.resetToolbar(),this.deSelectItem(this.formDesignerItem),this.formDesignerToolbarModule&&this.formDesignerToolbarModule.resetFormDesignerToolbar()):this.pdfViewerBase.pageCount>0&&this.pdfViewerBase.getElement("_currentPageInputContainer")&&(this.enableItems(this.downloadItem.parentElement,!0),this.enableItems(this.printItem.parentElement,!0),this.toolbar.enableItems(this.pdfViewerBase.getElement("_currentPageInputContainer"),!0),this.enableItems(this.pdfViewerBase.getElement("_zoomDropDownContainer"),!0),this.updateUndoRedoButtons(),this.updateNavigationButtons(),this.updateZoomButtons(),this.pdfViewer.magnificationModule&&(this.zoomDropDown.readonly=!1),this.updateInteractionItems(),this.pdfViewer.annotationModule&&this.pdfViewer.enableAnnotation&&this.enableItems(this.annotationItem.parentElement,!0),this.pdfViewer.formDesignerModule&&this.pdfViewer.enableFormDesigner&&this.enableItems(this.formDesignerItem.parentElement,!0),this.pdfViewer.textSearchModule&&this.pdfViewer.enableTextSearch&&this.enableItems(this.textSearchItem.parentElement,!0),this.pdfViewer.annotationModule&&this.pdfViewer.enableStickyNotesAnnotation&&this.enableItems(this.commentItem.parentElement,!0)),this.pdfViewer.toolbarSettings.annotationToolbarItems&&(0!==this.pdfViewer.toolbarSettings.annotationToolbarItems.length&&this.pdfViewer.annotationModule&&this.pdfViewer.enableAnnotationToolbar||this.enableToolbarItem(["AnnotationEditTool"],!1)),this.pdfViewer.toolbarSettings.formDesignerToolbarItems&&(0!==this.pdfViewer.toolbarSettings.formDesignerToolbarItems.length&&this.pdfViewer.formDesignerModule&&this.pdfViewer.enableFormDesignerToolbar||this.enableToolbarItem(["FormDesignerEditTool"],!1)),this.pdfViewer.enableDownload||this.enableDownloadOption(!1),this.pdfViewer.enablePrint||this.enablePrintOption(!1));else if(0===this.pdfViewerBase.pageCount)this.enableItems(this.textSearchItem.parentElement,!1),this.enableItems(this.moreOptionItem.parentElement,!1),this.enableItems(this.annotationItem.parentElement,!1);else if(this.pdfViewerBase.pageCount>0&&(this.enableItems(this.textSearchItem.parentElement,!0),this.enableItems(this.moreOptionItem.parentElement,!0),this.pdfViewer.annotationModule&&this.pdfViewer.enableAnnotation&&this.enableItems(this.annotationItem.parentElement,!0),this.pdfViewer.annotationModule&&this.pdfViewer.enableAnnotationToolbar||this.enableToolbarItem(["AnnotationEditTool"],!1),this.updateUndoRedoButtons(),this.pdfViewer&&this.pdfViewer.element&&this.pdfViewer.element.id&&this.pdfViewer.isAnnotationToolbarOpen)){var e=this.pdfViewer.element.id+"_annotationIcon";this.annotationToolbarModule.createAnnotationToolbarForMobile(e)}},i.prototype.updateNavigationButtons=function(){this.pdfViewer.navigationModule&&!this.isPageNavigationToolDisabled?0===this.pdfViewerBase.pageCount||1===this.pdfViewerBase.currentPageNumber&&1===this.pdfViewerBase.pageCount?(this.enableItems(this.firstPageItem.parentElement,!1),this.enableItems(this.previousPageItem.parentElement,!1),this.enableItems(this.nextPageItem.parentElement,!1),this.enableItems(this.lastPageItem.parentElement,!1)):1===this.pdfViewerBase.currentPageNumber&&this.pdfViewerBase.pageCount>0?(this.enableItems(this.firstPageItem.parentElement,!1),this.enableItems(this.previousPageItem.parentElement,!1),this.enableItems(this.nextPageItem.parentElement,!0),this.enableItems(this.lastPageItem.parentElement,!0)):this.pdfViewerBase.currentPageNumber===this.pdfViewerBase.pageCount&&this.pdfViewerBase.pageCount>0?(this.enableItems(this.firstPageItem.parentElement,!0),this.enableItems(this.previousPageItem.parentElement,!0),this.enableItems(this.nextPageItem.parentElement,!1),this.enableItems(this.lastPageItem.parentElement,!1)):this.pdfViewerBase.currentPageNumber>1&&this.pdfViewerBase.currentPageNumber<this.pdfViewerBase.pageCount&&(this.enableItems(this.firstPageItem.parentElement,!0),this.enableItems(this.previousPageItem.parentElement,!0),this.enableItems(this.nextPageItem.parentElement,!0),this.enableItems(this.lastPageItem.parentElement,!0)):(this.enableItems(this.firstPageItem.parentElement,!1),this.enableItems(this.previousPageItem.parentElement,!1),this.enableItems(this.nextPageItem.parentElement,!1),this.enableItems(this.lastPageItem.parentElement,!1),this.currentPageBox.readonly=!0)},i.prototype.updateZoomButtons=function(){!this.pdfViewer.magnificationModule||this.isMagnificationToolDisabled||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(null!=this.pdfViewer.minZoom||null!=this.pdfViewer.maxZoom?this.pdfViewer.magnificationModule.zoomFactor<=this.pdfViewer.minZoom/100?(this.enableItems(this.zoomInItem.parentElement,!0),this.enableItems(this.zoomOutItem.parentElement,!1)):this.pdfViewer.magnificationModule.zoomFactor>=this.pdfViewer.maxZoom/100?(this.enableItems(this.zoomInItem.parentElement,!1),this.enableItems(this.zoomOutItem.parentElement,!0)):(this.enableItems(this.zoomInItem.parentElement,!0),this.enableItems(this.zoomOutItem.parentElement,!0)):this.pdfViewer.magnificationModule.zoomFactor<=.1?(this.enableItems(this.zoomInItem.parentElement,!0),this.enableItems(this.zoomOutItem.parentElement,!1)):this.pdfViewer.magnificationModule.zoomFactor>=4?(this.enableItems(this.zoomInItem.parentElement,!1),this.enableItems(this.zoomOutItem.parentElement,!0)):(this.enableItems(this.zoomInItem.parentElement,!0),this.enableItems(this.zoomOutItem.parentElement,!0)))},i.prototype.updateUndoRedoButtons=function(){this.pdfViewer.annotationModule&&this.pdfViewerBase.pageCount>0?t.isBlazor()?(this.enableCollectionAvailableInBlazor(this.pdfViewer.annotationModule.actionCollection,"undo"),this.enableCollectionAvailableInBlazor(this.pdfViewer.annotationModule.redoCollection,"redo")):(t.isNullOrUndefined(this.undoItem)||t.isNullOrUndefined(this.undoItem.parentElement)||(this.enableCollectionAvailable(this.pdfViewer.annotationModule.actionCollection,this.undoItem.parentElement),this.pdfViewer.annotationModule.actionCollection.length>0?this.undoItem.setAttribute("tabindex","0"):this.undoItem.setAttribute("tabindex","-1")),t.isNullOrUndefined(this.redoItem)||t.isNullOrUndefined(this.redoItem.parentElement)||(this.enableCollectionAvailable(this.pdfViewer.annotationModule.redoCollection,this.redoItem.parentElement),this.pdfViewer.annotationModule.redoCollection.length>0?this.redoItem.setAttribute("tabindex","0"):this.redoItem.setAttribute("tabindex","-1"))):t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.disableUndoRedoButton():this.disableUndoRedoButtons()},i.prototype.enableCollectionAvailable=function(e,t){e.length>0?this.toolbar.enableItems(t,!0):this.toolbar.enableItems(t,!1)},i.prototype.enableCollectionAvailableInBlazor=function(e,t){e.length>0?this.pdfViewerBase.blazorUIAdaptor.updateUndoRedoButton(t,!0):this.pdfViewerBase.blazorUIAdaptor.updateUndoRedoButton(t,!1)},i.prototype.disableUndoRedoButtons=function(){t.isNullOrUndefined(this.undoItem)||this.enableItems(this.undoItem.parentElement,!1),t.isNullOrUndefined(this.redoItem)||this.enableItems(this.redoItem.parentElement,!1)},i.prototype.destroy=function(){t.isBlazor()||(this.unWireEvent(),this.destroyComponent(),this.moreDropDown&&this.moreDropDown.destroy(),this.annotationToolbarModule&&this.annotationToolbarModule.destroy(),this.formDesignerToolbarModule&&this.formDesignerToolbarModule.destroy(),this.toolbar&&this.toolbar.destroy(),this.toolbarElement&&this.toolbarElement.parentElement.removeChild(this.toolbarElement))},i.prototype.destroyComponent=function(){for(var e=[this.openDocumentItem,this.firstPageItem,this.previousPageItem,this.nextPageItem,this.lastPageItem,this.currentPageBoxElement,this.zoomOutItem,this.zoomInItem,this.zoomDropdownItem,this.textSelectItem,this.panItem,this.submitItem,this.undoItem,this.redoItem,this.commentItem,this.textSearchItem,this.annotationItem,this.formDesignerItem,this.printItem,this.downloadItem],t=0;t<e.length;t++)e[parseInt(t.toString(),10)]&&this.destroyDependentComponent(e[parseInt(t.toString(),10)])},i.prototype.destroyDependentComponent=function(e){if(e.ej2_instances)for(var t=e.ej2_instances.length-1;t>=0;t--)e.ej2_instances[parseInt(t.toString(),10)].destroy()},i.prototype.updateCurrentPage=function(e){this.pdfViewerBase.pageCount>0&&(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?(t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.pageChanged(e):t.isNullOrUndefined(this.currentPageBox)||(this.currentPageBox.value===e&&(this.currentPageBoxElement.value=e.toString()),this.currentPageBox.value=e),this.pdfViewerBase.currentPageNumber=e,this.pdfViewer.currentPageNumber=e):(this.pdfViewerBase.mobileSpanContainer.innerHTML=e.toString(),this.pdfViewerBase.mobilecurrentPageContainer.innerHTML=e.toString()))},i.prototype.updateTotalPage=function(){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.pdfViewerBase.pageCount>0&&(t.isNullOrUndefined(this.currentPageBox)||(this.currentPageBox.min=1)),t.isNullOrUndefined(this.totalPageItem)||(this.totalPageItem.textContent=this.pdfViewer.localeObj.getConstant("of")+this.pdfViewerBase.pageCount.toString()))},i.prototype.openFileDialogBox=function(e){e.preventDefault(),this.fileInputElement.click()},i.prototype.createToolbar=function(e){var i=this;return this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_toolbarContainer",className:"e-pv-toolbar"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.toolbarElement),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?(this.toolbar=new s.Toolbar({clicked:this.toolbarClickHandler,width:"",height:"",overflowMode:"Popup",cssClass:"e-pv-toolbar-scroll",items:this.createToolbarItems(),created:function(){i.createZoomDropdown(),i.createNumericTextBox(),i.toolbar.refreshOverflow()}}),this.toolbar.isStringTemplate=!0,this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.toolbar.appendTo(this.toolbarElement),this.applyToolbarSettings(),this.afterToolbarCreation(),this.updateTotalPage(),this.toolbarElement.addEventListener("keydown",this.onToolbarKeydown),this.toolbarElement.setAttribute("aria-label","Toolbar")):(this.createToolbarItemsForMobile(),this.afterToolbarCreationInMobile(),this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.applyToolbarSettingsForMobile(),this.disableUndoRedoButtons()),this.toolbarElement},i.prototype.createCustomItem=function(e){t.isNullOrUndefined(this.pdfViewer.toolbarSettings)||(t.isNullOrUndefined(this.pdfViewer.toolbarSettings.toolbarItems)&&(this.pdfViewer.toolbarSettings.toolbarItems=["OpenOption","PageNavigationTool","MagnificationTool","SelectionTool","PanTool","UndoRedoTool","CommentTool","SubmitForm","SearchOption","AnnotationEditTool","FormDesignerEditTool","PrintOption","DownloadOption"]),t.isNullOrUndefined(this.pdfViewer.toolbarSettings.annotationToolbarItems)&&(this.pdfViewer.toolbarSettings.annotationToolbarItems=["HighlightTool","UnderlineTool","StrikethroughTool","SquigglyTool","ColorEditTool","OpacityEditTool","AnnotationDeleteTool","StampAnnotationTool","HandWrittenSignatureTool","InkAnnotationTool","ShapeTool","CalibrateTool","StrokeColorEditTool","ThicknessEditTool","FreeTextAnnotationTool","FontFamilyAnnotationTool","FontSizeAnnotationTool","FontStylesAnnotationTool","FontAlignAnnotationTool","FontColorAnnotationTool","CommentPanelTool"]),t.isNullOrUndefined(this.pdfViewer.toolbarSettings.formDesignerToolbarItems)&&(this.pdfViewer.toolbarSettings.formDesignerToolbarItems=["TextboxTool","PasswordTool","CheckBoxTool","RadioButtonTool","DropdownTool","ListboxTool","DrawSignatureTool","DeleteTool"]),t.isNullOrUndefined(this.pdfViewer.toolbarSettings.showTooltip)&&(this.pdfViewer.toolbarSettings.showTooltip=!1));for(var i=e;i<this.pdfViewer.toolbarSettings.toolbarItems.length&&"object"==typeof this.pdfViewer.toolbarSettings.toolbarItems[parseInt(i.toString(),10)];i++){var n=this.pdfViewer.toolbarSettings.toolbarItems[parseInt(i.toString(),10)];if(t.isNullOrUndefined(n.prefixIcon)||""===n.prefixIcon||(n.prefixIcon+=" e-pv-icon"),(t.isNullOrUndefined(n.prefixIcon)||""===n.prefixIcon)&&t.isNullOrUndefined(n.template)){var o=document.createElement("button");o.id="Custom",o.className="e-tbar-btn",o.style.fontSize="14px";var r=document.createElement("span");r.textContent=t.isNullOrUndefined(n.text)?"Custom Toolbar Item":n.text,o.appendChild(r),n.template=o}this.toolItems.push(n),(t.isNullOrUndefined(n.align)||"left"===n.align||"Left"===n.align)&&this.toolItems.push({type:"Separator",align:"Left"})}},i.prototype.createToolbarItems=function(){var e=this.createCurrentPageInputTemplate(),t=this.createTotalPageTemplate(),i=this.createZoomDropdownElement(),n=document.createElement("button");n.id=this.pdfViewer.element.id+"_submitForm",n.className="e-tbar-btn",n.style.fontSize="15px";var o=document.createElement("span");o.id=this.pdfViewer.element.id+"_submitFormSpan",o.className="e-tbar-btn-text e-pv-submitform-text",o.textContent=this.pdfViewer.localeObj.getConstant("SubmitForm"),n.appendChild(o);for(var r=["OpenOption","PageNavigationTool","MagnificationTool","SelectionTool","PanTool","UndoRedoTool","CommentTool","SubmitForm","SearchOption","AnnotationEditTool","FormDesignerEditTool","PrintOption","DownloadOption"],a=0;a<r.length;a++){switch(0===a&&this.createCustomItem(a),a){case 0:this.itemsIndexArray.push({item:"OpenOption",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-open-document-icon e-pv-icon",cssClass:"e-pv-open-document-container",id:this.pdfViewer.element.i
vendor: 11,447 bytes, line 10
10d+"_open",text:this.pdfViewer.localeObj.getConstant("Open text"),align:"Left"}),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-open-separator-container"});break;case 1:this.pdfViewer.enableRtl?(this.toolItems.push({prefixIcon:"e-pv-last-page-navigation-icon e-pv-icon",cssClass:"e-pv-last-page-navigation-container",id:this.pdfViewer.element.id+"_firstPage",text:this.pdfViewer.localeObj.getConstant("First text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-next-page-navigation-icon e-pv-icon",cssClass:"e-pv-next-page-navigation-container",id:this.pdfViewer.element.id+"_previousPage",text:this.pdfViewer.localeObj.getConstant("Previous text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-previous-page-navigation-icon e-pv-icon",cssClass:"e-pv-previous-page-navigation-container",id:this.pdfViewer.element.id+"_nextPage",text:this.pdfViewer.localeObj.getConstant("Next text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-first-page-navigation-icon e-pv-icon",cssClass:"e-pv-first-page-navigation-container",id:this.pdfViewer.element.id+"_lastPage",text:this.pdfViewer.localeObj.getConstant("Last text"),align:"Left"}),this.toolItems.push({template:t,align:"Left",cssClass:"e-pv-total-page-container"}),this.toolItems.push({template:e,align:"Left",cssClass:"e-pv-current-page-container"})):(this.itemsIndexArray.push({item:"PageNavigationTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length+5}),this.toolItems.push({prefixIcon:"e-pv-first-page-navigation-icon e-pv-icon",cssClass:"e-pv-first-page-navigation-container",id:this.pdfViewer.element.id+"_firstPage",text:this.pdfViewer.localeObj.getConstant("First text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-previous-page-navigation-icon e-pv-icon",cssClass:"e-pv-previous-page-navigation-container",id:this.pdfViewer.element.id+"_previousPage",text:this.pdfViewer.localeObj.getConstant("Previous text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-next-page-navigation-icon e-pv-icon",cssClass:"e-pv-next-page-navigation-container",id:this.pdfViewer.element.id+"_nextPage",text:this.pdfViewer.localeObj.getConstant("Next text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-last-page-navigation-icon e-pv-icon",cssClass:"e-pv-last-page-navigation-container",id:this.pdfViewer.element.id+"_lastPage",text:this.pdfViewer.localeObj.getConstant("Last text"),align:"Left"}),this.toolItems.push({template:e,align:"Left",cssClass:"e-pv-current-page-container"}),this.toolItems.push({template:t,align:"Left",cssClass:"e-pv-total-page-container"})),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-navigation-separator-container"});break;case 2:this.itemsIndexArray.push({item:"MagnificationTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length+2}),this.toolItems.push({prefixIcon:"e-pv-zoom-out-icon e-pv-icon",cssClass:"e-pv-zoom-out-container",id:this.pdfViewer.element.id+"_zoomOut",text:this.pdfViewer.localeObj.getConstant("Zoom out text"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-zoom-in-icon e-pv-icon",cssClass:"e-pv-zoom-in-container",id:this.pdfViewer.element.id+"_zoomIn",text:this.pdfViewer.localeObj.getConstant("Zoom in text"),align:"Left"}),this.toolItems.push({template:i,cssClass:"e-pv-zoom-drop-down-container",align:"Left"}),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-magnification-separator-container"});break;case 3:this.itemsIndexArray.push({item:"SelectionTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-text-select-tool-icon e-pv-icon",cssClass:"e-pv-text-select-tool-container",id:this.pdfViewer.element.id+"_selectTool",text:this.pdfViewer.localeObj.getConstant("Selection text")});break;case 4:this.itemsIndexArray.push({item:"PanTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-pan-tool-icon e-pv-icon",cssClass:"e-pv-pan-tool-container",id:this.pdfViewer.element.id+"_handTool",text:this.pdfViewer.localeObj.getConstant("Pan text")}),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-pan-separator-container"});break;case 5:this.itemsIndexArray.push({item:"UndoRedoTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length+1}),this.toolItems.push({prefixIcon:"e-pv-undo-icon e-pv-icon",cssClass:"e-pv-undo-container",id:this.pdfViewer.element.id+"_undo",text:this.pdfViewer.localeObj.getConstant("Undo"),align:"Left"}),this.toolItems.push({prefixIcon:"e-pv-redo-icon e-pv-icon",cssClass:"e-pv-redo-container",id:this.pdfViewer.element.id+"_redo",text:this.pdfViewer.localeObj.getConstant("Redo"),align:"Left"}),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-undo-separator-container"});break;case 6:this.itemsIndexArray.push({item:"CommentTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length+1}),this.toolItems.push({prefixIcon:"e-pv-comment-icon e-pv-icon",cssClass:"e-pv-comment-container",id:this.pdfViewer.element.id+"_comment",text:this.pdfViewer.localeObj.getConstant("Add Comments"),align:"Left"}),this.toolItems.push({type:"Separator",align:"Left",cssClass:"e-pv-comment-separator-container"});break;case 7:this.itemsIndexArray.push({item:"SubmitForm",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({template:n,cssClass:"e-pv-submit",align:"Left"});break;case 8:this.itemsIndexArray.push({item:"SearchOption",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-text-search-icon e-pv-icon",cssClass:"e-pv-text-search-container",id:this.pdfViewer.element.id+"_search",text:this.pdfViewer.localeObj.getConstant("Search text"),align:"Right"});break;case 9:this.itemsIndexArray.push({item:"AnnotationEditTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-annotation-icon e-pv-icon",cssClass:"e-pv-annotation-container",id:this.pdfViewer.element.id+"_annotation",text:this.pdfViewer.localeObj.getConstant("Annotation Edit text"),align:"Right"});break;case 10:this.itemsIndexArray.push({item:"FormDesignerEditTool",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-formdesigner-icon e-pv-icon",cssClass:"e-pv-formdesigner-container",id:this.pdfViewer.element.id+"_formdesigner",text:this.pdfViewer.localeObj.getConstant("FormDesigner Edit text"),align:"Right"});break;case 11:this.itemsIndexArray.push({item:"PrintOption",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-print-document-icon e-pv-icon",cssClass:"e-pv-print-document-container",id:this.pdfViewer.element.id+"_print",text:this.pdfViewer.localeObj.getConstant("Print text"),align:"Right"});break;case 12:this.itemsIndexArray.push({item:"DownloadOption",startIndex:this.toolItems.length,endIndex:this.toolItems.length}),this.toolItems.push({prefixIcon:"e-pv-download-document-icon e-pv-icon",cssClass:"e-pv-download-document-container",id:this.pdfViewer.element.id+"_download",text:this.pdfViewer.localeObj.getConstant("Download"),align:"Right"})}for(var s=0;s<this.pdfViewer.toolbarSettings.toolbarItems.length;s++)if(r[parseInt(a.toString(),10)]===this.pdfViewer.toolbarSettings.toolbarItems[parseInt(s.toString(),10)]){if("object"!=typeof this.pdfViewer.toolbarSettings.toolbarItems[s+1])break;this.createCustomItem(s+1)}}return this.toolItems},i.prototype.afterToolbarCreationInMobile=function(){this.itemsContainer=this.toolbar.element.childNodes[0],this.itemsContainer.id=this.pdfViewer.element.id+"_toolbarItemsContainer",this.openDocumentItem=this.addClassToolbarItem("_open","e-pv-open-document",this.pdfViewer.localeObj.getConstant("Open")),this.undoItem=this.addClassToolbarItem("_undo","e-pv-undo",this.pdfViewer.localeObj.getConstant("Undo")),this.redoItem=this.addClassToolbarItem("_redo","e-pv-redo",this.pdfViewer.localeObj.getConstant("Redo")),this.annotationItem=this.addClassToolbarItem("_annotation","e-pv-annotation",this.pdfViewer.localeObj.getConstant("Annotation")),this.textSearchItem=this.addClassToolbarItem("_search","e-pv-text-search",this.pdfViewer.localeObj.getConstant("Text Search"))},i.prototype.afterToolbarCreation=function(){var e=!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i);this.itemsContainer=this.toolbar.element.childNodes[0],this.itemsContainer.id=this.pdfViewer.element.id+"_toolbarItemsContainer",this.openDocumentItem=this.addClassToolbarItem("_open","e-pv-open-document",this.pdfViewer.localeObj.getConstant("Open")+(e?" (⌘+O)":" (Ctrl+O)")),this.undoItem=this.addClassToolbarItem("_undo","e-pv-undo",this.pdfViewer.localeObj.getConstant("Undo")+(e?" (⌘+Z)":" (Ctrl+Z)")),this.redoItem=this.addClassToolbarItem("_redo","e-pv-redo",this.pdfViewer.localeObj.getConstant("Redo")+(e?" (⌘+Y)":" (Ctrl+Y)")),this.pdfViewer.enableRtl?(this.firstPageItem=this.addClassToolbarItem("_firstPage","e-pv-last-page-navigation",this.pdfViewer.localeObj.getConstant("Go To First Page")+(e?" (⌘+← or ⌘+↑)":" (Ctrl+← or Ctrl+↑)")),this.previousPageItem=this.addClassToolbarItem("_previousPage","e-pv-next-page-navigation",this.pdfViewer.localeObj.getConstant("Previous Page")+" (←)"),this.nextPageItem=this.addClassToolbarItem("_nextPage","e-pv-previous-page-navigation",this.pdfViewer.localeObj.getConstant("Next Page")+" (→)"),this.lastPageItem=this.addClassToolbarItem("_lastPage","e-pv-first-page-navigation",this.pdfViewer.localeObj.getConstant("Go To Last Page")+(e?" (⌘+→ or ⌘+↓)":" (Ctrl+→ or Ctrl+↓)"))):(this.firstPageItem=this.addClassToolbarItem("_firstPage","e-pv-first-page-navigation",this.pdfViewer.localeObj.getConstant("Go To First Page")+(e?" (⌘+← or ⌘+↑)":" (Ctrl+← or Ctrl+↑)")),this.previousPageItem=this.addClassToolbarItem("_previousPage","e-pv-previous-page-navigation",this.pdfViewer.localeObj.getConstant("Previous Page")+" (←)"),this.nextPageItem=this.addClassToolbarItem("_nextPage","e-pv-next-page-navigation",this.pdfViewer.localeObj.getConstant("Next Page")+" (→)"),this.lastPageItem=this.addClassToolbarItem("_lastPage","e-pv-last-page-navigation",this.pdfViewer.localeObj.getConstant("Go To Last Page")+(e?" (⌘+→ or ⌘+↓)":" (Ctrl+→ or Ctrl+↓)"))),this.zoomOutItem=this.addClassToolbarItem("_zoomOut","e-pv-zoom-out",this.pdfViewer.localeObj.getConstant("Zoom Out")+(e?" (⌘+Minus)":" (Ctrl+Minus)")),this.zoomInItem=this.addClassToolbarItem("_zoomIn","e-pv-zoom-in",this.pdfViewer.localeObj.getConstant("Zoom In")+(e?" (⌘+Plus)":" (Ctrl+Plus)")),this.textSelectItem=this.addClassToolbarItem("_selectTool","e-pv-text-select-tool",this.pdfViewer.localeObj.getConstant("Text Selection")+(e?" (⇧+V)":" (Shift+V)")),this.panItem=this.addClassToolbarItem("_handTool","e-pv-pan-tool",this.pdfViewer.localeObj.getConstant("Panning")+(e?" (⇧+H)":" (Shift+H)")),this.commentItem=this.addClassToolbarItem("_comment","e-pv-comment",this.pdfViewer.localeObj.getConstant("Add Comments")),this.textSearchItem=this.addClassToolbarItem("_search","e-pv-text-search",this.pdfViewer.localeObj.getConstant("Text Search")+(e?" (⌘+F)":" (Ctrl+F)")),this.textSearchItem.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Search text")),this.annotationItem=this.addClassToolbarItem("_annotation","e-pv-annotation",this.pdfViewer.localeObj.getConstant("Annotation")+(e?" (⌘+â‡
10§+A)":" (Ctrl+Shift+A)")),this.annotationItem.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Annotation Edit text")),this.formDesignerItem=this.addClassToolbarItem("_formdesigner","e-pv-formdesigner",this.pdfViewer.localeObj.getConstant("FormDesigner")),this.printItem=this.addClassToolbarItem("_print","e-pv-print-document",this.pdfViewer.localeObj.getConstant("Print")+(e?" (⌘+P)":" (Ctrl+P)")),this.downloadItem=this.addClassToolbarItem("_download","e-pv-download-document",this.pdfViewer.localeObj.getConstant("Download file")+(e?" (⌘+S)":" (Ctrl+S)")),this.zoomDropdownItem=this.pdfViewerBase.getElement("_zoomDropDown"),this.createTooltip(this.zoomDropdownItem,this.pdfViewer.localeObj.getConstant("Zoom")),this.zoomDropdownItem.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Zoom")),this.addPropertiesToolItemContainer(this.zoomDropdownItem.parentElement.parentElement,null,"_zoomDropDownContainer"),this.createTooltip(this.currentPageBoxElement,this.pdfViewer.localeObj.getConstant("Page Number")+(e?" (⌘+G)":" (Ctrl+G)")),this.currentPageBoxElement.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Page Number")),this.submitItem=this.pdfViewerBase.getElement("_submitForm"),this.addPropertiesToolItemContainer(this.submitItem.parentElement,"e-pv-submit","_submitFormContainer"),this.createTooltip(this.submitItem,this.pdfViewer.localeObj.getConstant("SubmitForm")),this.submitItem.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("SubmitForm")),this.addPropertiesToolItemContainer(this.currentPageBoxElement.parentElement.parentElement,"e-pv-current-page-container","_currentPageInputContainer"),this.pdfViewerBase.getElement("_currentPageInputContainer").style.minWidth="20px",this.totalPageItem=this.pdfViewerBase.getElement("_totalPage"),this.addPropertiesToolItemContainer(this.totalPageItem.parentElement,"e-pv-total-page-container","_totalPageContainer"),this.createCustomItemTooltip()},i.prototype.createCustomItemTooltip=function(){for(var e=0;e<this.pdfViewer.toolbarSettings.toolbarItems.length;e++){var t=this.pdfViewer.toolbarSettings.toolbarItems[parseInt(e.toString(),10)],i=void 0;if("object"==typeof t&&t.tooltipText){if(t.template){var n=t.template.match(/id="([^"]+)"/);i=n?n[1]:null}else i=t.id;if(i){var o=document.getElementById(i);if(o&&(o.title="",o.parentElement.title="",o.classList.add("e-popup-text","e-pv-tbar-btn"),this.createTooltip(o,t.tooltipText),t.template)){var r=window.getComputedStyle(o);o.style.color=r.color}}}}},i.prototype.addClassToolbarItem=function(e,t,i){var n=this.pdfViewerBase.getElement(e);if(n.classList.add(t),n.classList.add("e-pv-tbar-btn"),n.setAttribute("aria-label",i),n.parentElement.classList.add(t+"-container"),n.parentElement.classList.add("e-popup-text"),n.parentElement.id=this.pdfViewer.element.id+e+"Container",n.childNodes.length>0){var o=n.childNodes[0];o.id=this.pdfViewer.element.id+e+"Icon",o.classList.remove("e-icons"),o.classList.remove("e-btn-icon"),this.pdfViewer.enableRtl&&o.classList.add("e-right");var r=n.childNodes[1];r&&r.classList.contains("e-tbar-btn-text")&&(r.id=this.pdfViewer.element.id+e+"Text")}return n.style.width="",this.createTooltip(n,i),n},i.prototype.addPropertiesToolItemContainer=function(e,t,i){null!==t&&e.classList.add(t),e.classList.add("e-popup-text"),e.id=this.pdfViewer.element.id+i},i.prototype.createZoomDropdownElement=function(){return this.createToolbarItem("input",this.pdfViewer.element.id+"_zoomDropDown",null).outerHTML},i.prototype.createZoomDropdown=function(){var e=this,t=e.pdfViewer.minZoom,i=e.pdfViewer.maxZoom,n=[],o=[10,25,50,75,100,125,150,200,400];if(null!=t&&null!=i&&t>i){var r=i;i=t,t=r}if(null!=t||null!=i){var a=0;null==t||n.some(function(e){return parseInt(e.id,10)===t})||(n.push({percent:t+"%",id:a.toString()}),a++);for(var s=0;s<o.length;s++){var l=o[parseInt(s.toString(),10)];(function(e){return(null==t||e>=t)&&(null==i||e<=i)})(l)&&l!==t&&l!==i&&(n.push({percent:l+"%",id:a.toString()}),a++)}null==i||n.some(function(e){return parseInt(e.id,10)===i})||i===t||(n.push({percent:i+"%",id:a.toString()}),a++),n.sort(function(e,t){return parseInt(e.id,10)-parseInt(t.id,10)})}else n.push({percent:"10%",id:"0"},{percent:"35%",id:"1"},{percent:"50%",id:"2"},{percent:"75%",id:"3"},{percent:"100%",id:"4"},{percent:"125%",id:"5"},{percent:"150%",id:"6"},{percent:"200%",id:"7"},{percent:"400%",id:"8"});n.push({percent:e.pdfViewer.localeObj.getConstant("Fit Page"),id:"fitPage"},{percent:e.pdfViewer.localeObj.getConstant("Fit Width"),id:"fitWidth"},{percent:e.pdfViewer.localeObj.getConstant("Automatic"),id:"automatic"}
vendor: 45,419 bytes, line 10
10),e.pdfViewer.enableRtl?e.zoomDropDown=new h.ComboBox({dataSource:n,text:"100%",enableRtl:!0,fields:{text:"percent",value:"id"},readonly:!0,cssClass:"e-pv-zoom-drop-down-rtl",popupHeight:"450px",showClearButton:!1,open:e.openZoomDropdown.bind(e),select:function(t){"keydown"===t.e.type&&t.itemData.percent!==e.zoomDropDown.element.value&&(e.zoomDropDownChange(e.zoomDropDown.element.value),t.cancel=!0)}}):e.zoomDropDown=new h.ComboBox({dataSource:n,text:"100%",fields:{text:"percent",value:"id"},readonly:!0,cssClass:"e-pv-zoom-drop-down",popupHeight:"450px",showClearButton:!1,open:e.openZoomDropdown.bind(e),select:function(t){"keydown"===t.e.type&&t.itemData.percent!==e.zoomDropDown.element.value&&(e.zoomDropDownChange(e.zoomDropDown.element.value),t.cancel=!0)}}),e.zoomDropDown.appendTo(e.pdfViewerBase.getElement("_zoomDropDown"))},i.prototype.createCurrentPageInputTemplate=function(){return this.createToolbarItem("input",this.pdfViewer.element.id+"_currentPageInput",null).outerHTML},i.prototype.createTotalPageTemplate=function(){return this.createToolbarItem("span",this.pdfViewer.element.id+"_totalPage","e-pv-total-page").outerHTML},i.prototype.createNumericTextBox=function(){this.currentPageBox=new n.NumericTextBox({value:0,format:"##",cssClass:"e-pv-current-page-box",showSpinButton:!1}),this.currentPageBoxElement=this.pdfViewerBase.getElement("_currentPageInput"),this.currentPageBox.appendTo(this.currentPageBoxElement)},i.prototype.createToolbarItemsForMobile=function(){this.toolbarElement.classList.add("e-pv-mobile-toolbar");var e='<button id="'+this.pdfViewer.element.id+'_more_option" class="e-tbar-btn"></button>';this.toolbar=new s.Toolbar({items:[{prefixIcon:"e-pv-open-document-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Open"),id:this.pdfViewer.element.id+"_open"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-undo-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Undo"),id:this.pdfViewer.element.id+"_undo"},{prefixIcon:"e-pv-redo-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Redo"),id:this.pdfViewer.element.id+"_redo"},{tooltipText:"Organize PDF",id:this.pdfViewer.element.id+"_menu_organize",prefixIcon:"e-pv-organize-view-icon e-pv-icon",align:"Right",disabled:!0},{prefixIcon:"e-pv-annotation-icon e-pv-icon",cssClass:"e-pv-annotation-container",tooltipText:this.pdfViewer.localeObj.getConstant("Annotation"),id:this.pdfViewer.element.id+"_annotation",align:"Right"},{prefixIcon:"e-pv-text-search-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Text Search"),id:this.pdfViewer.element.id+"_search",align:"Right"},{template:e,align:"Right"}],clicked:this.toolbarClickHandler,width:"",height:"",overflowMode:"Popup"}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.toolbarElement),this.openDocumentItem=this.pdfViewerBase.getElement("_open"),this.openDocumentItem.classList.add("e-pv-open-document"),this.openDocumentItem.firstElementChild.id=this.pdfViewer.element.id+"_openIcon",this.annotationItem=this.pdfViewerBase.getElement("_annotation"),this.annotationItem.classList.add("e-pv-annotation"),this.annotationItem.firstElementChild.id=this.pdfViewer.element.id+"_annotationIcon",this.organizePageItem=this.pdfViewerBase.getElement("_menu_organize"),this.organizePageItem.classList.add("e-pv-organize-view"),this.annotationItem.firstElementChild.id=this.pdfViewer.element.id+"_organize-view_icon",this.textSearchItem=this.pdfViewerBase.getElement("_search"),this.textSearchItem.classList.add("e-pv-text-search"),this.textSearchItem.firstElementChild.id=this.pdfViewer.element.id+"_searchIcon",this.undoItem=this.pdfViewerBase.getElement("_undo"),this.undoItem.classList.add("e-pv-undo"),this.redoItem=this.pdfViewerBase.getElement("_redo"),this.redoItem.classList.add("e-pv-redo"),this.redoItem.firstElementChild.id=this.pdfViewer.element.id+"_redoIcon",this.undoItem.firstElementChild.id=this.pdfViewer.element.id+"_undoIcon",this.createMoreOption(this.pdfViewer.element.id+"_more_option")},i.prototype.createMoreOption=function(e){var t=this;this.moreOptionItem=document.getElementById(e);var i=[{text:this.pdfViewer.localeObj.getConstant("Download"),id:this.pdfViewer.element.id+"_menu_download",iconCss:"e-icons e-pv-download-document-icon e-pv-icon"},{text:this.pdfViewer.localeObj.getConstant("Bookmarks"),id:this.pdfViewer.element.id+"_menu_bookmarks",iconCss:"e-icons e-pv-bookmark-icon e-pv-icon"}];this.moreDropDown=new r.DropDownButton({items:i,iconCss:"e-pv-more-icon e-pv-icon",cssClass:"e-caret-hide",open:function(e){var i=t.moreDropDown.element.getBoundingClientRect();t.pdfViewer.enableRtl||(e.element.parentElement.style.left=i.left+i.width-e.element.parentElement.offsetWidth+"px")},select:function(e){switch(e.item.id){case t.pdfViewer.element.id+"_menu_download":t.pdfViewerBase.download();break;case t.pdfViewer.element.id+"_menu_bookmarks":t.showToolbar(!1),t.pdfViewerBase.navigationPane.createNavigationPaneMobile("bookmarks")}},beforeItemRender:function(e){e.item.id===t.pdfViewer.element.id+"_menu_bookmarks"?t.pdfViewer.bookmarkViewModule&&t.pdfViewer.bookmarkViewModule.bookmarks?e.element.classList.remove("e-disabled"):e.element.classList.add("e-disabled"):e.item.id===t.pdfViewer.element.id+"_menu_download"&&(t.pdfViewer.enableDownload?e.element.classList.remove("e-disabled"):e.element.classList.add("e-disabled"))},close:function(e){t.moreOptionItem.blur(),t.pdfViewerBase.focusViewerContainer()}}),this.moreDropDown.appendTo("#"+e)},i.prototype.createToolbarItem=function(e,i,n){var o=t.createElement(e,{id:i});return null!==n&&(o.className=n),"input"===e&&i!==this.pdfViewer.element.id+"_zoomDropDown"&&(o.type="text"),o},i.prototype.createTooltip=function(e,i){null!==i&&new o.Tooltip({content:t.initializeCSPTemplate(function(){return i}),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(e)},i.prototype.onTooltipBeforeOpen=function(e){!this.pdfViewer.toolbarSettings.showTooltip&&this.toolbarElement.contains(e.target)&&(e.cancel=!0),this.annotationToolbarModule&&!this.pdfViewer.toolbarSettings.showTooltip&&(this.annotationToolbarModule.toolbarElement&&this.annotationToolbarModule.toolbarElement.contains(e.target)||this.annotationToolbarModule.shapeToolbarElement&&this.annotationToolbarModule.shapeToolbarElement.contains(e.target))&&(e.cancel=!0),this.formDesignerToolbarModule&&!this.pdfViewer.toolbarSettings.showTooltip&&this.formDesignerToolbarModule.toolbarElement&&this.formDesignerToolbarModule.toolbarElement.contains(e.target)&&(e.cancel=!0)},i.prototype.createFileElement=function(e){e&&(t.isBlazor()?this.fileInputElement=this.pdfViewer.element.querySelector(".e-pv-fileupload-element"):(this.fileInputElement=t.createElement("input",{id:this.pdfViewer.element.id+"_fileUploadElement",styles:"position:fixed; left:-100em",attrs:{type:"file"}}),this.fileInputElement.setAttribute("accept",".pdf"),this.fileInputElement.setAttribute("aria-label","file upload element"),this.fileInputElement.setAttribute("tabindex","-1")),e&&e.appendChild(this.fileInputElement))},i.prototype.wireEvent=function(){this.fileInputElement&&this.fileInputElement.addEventListener("change",this.loadDocument),t.isBlazor()||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.toolbarElement.addEventListener("mouseup",this.toolbarOnMouseup.bind(this)),this.currentPageBoxElement.addEventListener("focusout",this.textBoxFocusOut),this.currentPageBoxElement.addEventListener("keypress",this.navigateToPage),this.zoomDropDown.change=this.zoomPercentSelect.bind(this),this.zoomDropDown.element.addEventListener("keypress",this.onZoomDropDownInput.bind(this)),this.zoomDropDown.element.addEventListener("click",this.onZoomDropDownInputClick.bind(this)))},i.prototype.unWireEvent=function(){this.fileInputElement&&this.fileInputElement.removeEventListener("change",this.loadDocument),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||t.isBlazor()||(t.isNullOrUndefined(this.toolbarElement)||this.toolbarElement.removeEventListener("mouseup",this.toolbarOnMouseup.bind(this)),t.isNullOrUndefined(this.currentPageBoxElement)||(this.currentPageBoxElement.removeEventListener("focusout",this.textBoxFocusOut),this.currentPageBoxElement.removeEventListener("keypress",this.navigateToPage)),t.isNullOrUndefined(this.zoomDropDown)||(this.zoomDropDown.removeEventListener("change",this.zoomPercentSelect),this.zoomDropDown.element.removeEventListener("keypress",this.onZoomDropDownInput),this.zoomDropDown.element.removeEventListener("click",this.onZoomDropDownInputClick)))},i.prototype.onToolbarResize=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.pdfViewerBase.navigationPane.toolbarResize():t.isNullOrUndefined(this.toolbar)||this.toolbar.refreshOverflow()},i.prototype.toolbarOnMouseup=function(e){e.target!==this.itemsContainer&&e.target!==this.toolbarElement||this.pdfViewerBase.focusViewerContainer()},i.prototype.applyHideToToolbar=function(e,i,n){for(var o=!e,r=i;r<=n;r++)if(!t.isNullOrUndefined(this.toolbar)&&this.toolbar.items[parseInt(r.toString(),10)]){var a=this.toolbar.items[parseInt(r.toString(),10)].cssClass;if(a&&""!==a){var s=this.toolbar.element.querySelector("."+a);s&&this.toolbar.hideItem(s,o)}else this.toolbar.hideItem(r,o)}},i.prototype.handleOpenIconClick=function(e,i){this.fileInputElement.click(),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode||i||(t.isBlazor()||e.originalEvent.target.blur(),this.pdfViewerBase.focusViewerContainer())},i.prototype.handleToolbarBtnClick=function(i,n){switch(this.addInkAnnotation(),this.deSelectCommentAnnotation(),i.originalEvent.target.id||!t.isNullOrUndefined(i.item)&&i.item.id){case this.pdfViewer.element.id+"_open":case this.pdfViewer.element.id+"_openIcon":case this.pdfViewer.element.id+"_openText":this.handleOpenIconClick(i,n);break;case this.pdfViewer.element.id+"_download":case this.pdfViewer.element.id+"_downloadIcon":case this.pdfViewer.element.id+"_downloadText":this.pdfViewerBase.download();break;case this.pdfViewer.element.id+"_print":case this.pdfViewer.element.id+"_printIcon":case this.pdfViewer.element.id+"_printText":this.pdfViewer.printModule&&this.pdfViewer.firePrintStart();break;case this.pdfViewer.element.id+"_undo":case this.pdfViewer.element.id+"_undoIcon":case this.pdfViewer.element.id+"_undoText":this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.undo();break;case this.pdfViewer.element.id+"_redo":case this.pdfViewer.element.id+"_redoIcon":case this.pdfViewer.element.id+"_redoText":this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.redo();break;case this.pdfViewer.element.id+"_firstPage":case this.pdfViewer.element.id+"_firstPageIcon":case this.pdfViewer.element.id+"_firstPageText":this.pdfViewer.navigationModule&&this.pdfViewer.navigationModule.goToFirstPage();break;case this.pdfViewer.element.id+"_previousPage":case this.pdfViewer.element.id+"_previousPageIcon":case this.pdfViewer.element.id+"_previousPageText":this.pdfViewer.navigationModule&&this.pdfViewer.navigationModule.goToPreviousPage();break;case this.pdfViewer.element.id+"_nextPage":case this.pdfViewer.element.id+"_nextPageIcon":case this.pdfViewer.element.id+"_nextPageText":this.pdfViewer.navigationModule&&this.pdfViewer.navigationModule.goToNextPage();break;case this.pdfViewer.element.id+"_lastPage":case this.pdfViewer.element.id+"_lastPageIcon":case this.pdfViewer.element.id+"_lastPageText":this.pdfViewer.navigationModule&&this.pdfViewer.navigationModule.goToLastPage();break;case this.pdfViewer.element.id+"_zoomIn":case this.pdfViewer.element.id+"_zoomInIcon":case this.pdfViewer.element.id+"_zoomInText":this.pdfViewer.magnificationModule.zoomIn();break;case this.pdfViewer.element.id+"_zoomOut":case this.pdfViewer.element.id+"_zoomOutIcon":case this.pdfViewer.element.id+"_zoomOutText":this.pdfViewer.magnificationModule.zoomOut();break;case this.pdfViewer.element.id+"_selectTool":case this.pdfViewer.element.id+"_selectToolIcon":case this.pdfViewer.element.id+"_selectToolText":this.isSelectionToolDisabled||(this.pdfViewerBase.initiateTextSelectMode(),this.updateInteractionTools(!0));break;case this.pdfViewer.element.id+"_handTool":case this.pdfViewer.element.id+"_handToolIcon":case this.pdfViewer.element.id+"_handToolText":this.isScrollingToolDisabled||this.getStampMode()||(this.pdfViewerBase.initiatePanning(),this.updateInteractionTools(!1));break;case this.pdfViewer.element.id+"_search":case this.pdfViewer.element.id+"_searchIcon":case this.pdfViewer.element.id+"_searchText":this.textSearchButtonHandler();break;case this.pdfViewer.element.id+"_annotation":case this.pdfViewer.element.id+"_annotationIcon":case this.pdfViewer.element.id+"_annotationText":this.initiateAnnotationMode(i.originalEvent.target.id,n);break;case this.pdfViewer.element.id+"_formdesigner":case this.pdfViewer.element.id+"_formdesignerIcon":case this.pdfViewer.element.id+"_formdesignerText":this.initiateFormDesignerMode(n),this.formDesignerToolbarModule.showHideDeleteIcon(!1);break;case this.pdfViewer.element.id+"_comment":case this.pdfViewer.element.id+"_commentIcon":case this.pdfViewer.element.id+"_commentText":this.pdfViewerBase.isAddComment=!0,this.pdfViewerBase.isCommentIconAdded=!0,this.annotationToolbarModule.deselectAllItems(),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent(),this.addComments(i.originalEvent.target);break;case this.pdfViewer.element.id+"_submitForm":case this.pdfViewer.element.id+"_submitFormSpan":this.pdfViewerBase.exportFormFields(void 0,e.FormFieldDataFormat.Json);break;case this.pdfViewer.element.id+"_menu_organize":t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||this.pdfViewer.pageOrganizer.createOrganizeWindowForMobile();break;default:this.pdfViewer.fireCustomToolbarClickEvent(i)}},i.prototype.addInkAnnotation=function(){if(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.inkAnnotationModule){var e=parseInt(this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(e)}this.annotationToolbarModule&&(this.pdfViewer.toolbar.annotationToolbarModule.deselectInkAnnotation(),this.annotationToolbarModule.inkAnnotationSelected=!1)},i.prototype.deSelectCommentAnnotation=function(){t.isBlazor()?this.pdfViewer.toolbar.deSelectItem(this.CommentElement):this.pdfViewer.toolbar.deSelectItem(this.commentItem),this.pdfViewerBase.isCommentIconAdded=!1},i.prototype.addComments=function(e){t.isBlazor()?(this.pdfViewerBase.isCommentIconAdded=!0,this.pdfViewerBase.isAddComment=!0,this.annotationToolbarModule.deselectAllItemsInBlazor(),this.CommentElement.classList.add("e-pv-select")):e.id===this.pdfViewer.element.id+"_comment"||e.id===this.pdfViewer.element.id+"_commentIcon"||e.id===this.pdfViewer.element.id+"_commentText"?e.id!==this.pdfViewer.element.id+"_commentIcon"&&e.id!==this.pdfViewer.element.id+"_commentText"||!e.parentElement?e.classList.add("e-pv-select"):e.parentElement.classList.add("e-pv-select"):this.pdfViewer.enableRtl?e.className="e-pv-comment-selection-icon e-pv-icon e-icon-left e-right":e.className="e-pv-comment-selection-icon e-pv-icon e-icon-left",this.updateStampItems(),document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+(this.pdfViewerBase.currentPageNumber-1)).addEventListener("mousedown",this.pdfViewer.annotationModule.stickyNotesAnnotationModule.drawIcons.bind(this))},i.prototype.openZoomDropdown=function(){var e=this;if(document.fullscreen)if(t.isBlazor()){var i=document.fullscreenElement;i&&"BODY"!==i.tagName&&"HTML"!==i.tagName&&setTimeout(function(){var t=document.getElementById(e.pdfViewer.element.id+"_zoomCombo_popup"),i=document.getElementById(e.toolbarElement.id);t&&i&&t.ej2_instances&&(i.appendChild(t),t.ej2_instances[0].refreshPosition())},100)}else{var n=document.getElementById(this.pdfViewer.element.id+"_zoomDropDown_popup"),o=document.getElementById(this.toolbarElement.id);n&&o.appendChild(n)}},i.prototype.onZoomDropDownInput=function(e){if((e.which<48||e.which>57)&&8!==e.which&&13!==e.which&&32!==e.which)return e.preventDefault(),!1;if(13===e.which){e.preventDefault();var t=this.zoomDropDown.element.value.trim();this.zoomDropDownChange(t)}return!0},i.prototype.onZoomDropDownInputClick=function(){this.zoomDropDown.element.select()},i.prototype.zoomPercentSelect=function(e){if(this.pdfViewerBase.pageCount>0)if(e.isInteracted){if(e.itemData){var t=e.itemData.percent;this.zoomDropDownChange(t)}}else this.updateZoomPercentage(this.pdfViewer.magnificationModule.zoomFactor)},i.prototype.zoomDropDownChange=function(e){e!==this.pdfViewer.localeObj.getConstant("Fit Width")&&e!==this.pdfViewer.localeObj.getConstant("Fit Page")&&e!==this.pdfViewer.localeObj.getConstant("Automatic")?(this.pdfViewer.magnificationModule.isAutoZoom=!1,this.pdfViewerBase.previousScrollbarWidth=this.pdfViewerBase.navigationPane.getViewerContainerScrollbarWidth(),this.pdfViewer.magnificationModule.zoomTo(parseFloat(e)),this.updateZoomPercentage(this.pdfViewer.magnificationModule.zoomFactor),this.zoomDropDown.focusOut()):e===this.pdfViewer.localeObj.getConstant("Fit Width")?(this.pdfViewer.magnificationModule.isAutoZoom=!1,this.pdfViewer.magnificationModule.fitToWidth(),this.zoomDropDown.focusOut()):e===this.pdfViewer.localeObj.getConstant("Fit Page")?(this.pdfViewer.magnificationModule.fitToPage(),this.zoomDropDown.focusOut()):e===this.pdfViewer.localeObj.getConstant("Automatic")&&(this.pdfViewer.magnificationModule.isAutoZoom=!0,this.pdfViewer.magnificationModule.fitToAuto(),this.zoomDropDown.focusOut())},i.prototype.updateZoomPercentage=function(e){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){var i=parseInt((100*e).toString(),10)+"%";if(t.isBlazor()){var n=this.pdfViewerBase.getElement("_zoomDropDown");n&&n.children.length>0&&(n.children[0].children[0].value=i)}else t.isNullOrUndefined(this.zoomDropDown)||(this.zoomDropDown.text===i&&(this.zoomDropDown.element.value=i),11===this.zoomDropDown.index&&(this.zoomDropDown.value=4),this.pdfViewerBase.isMinimumZoom=e<=.25,this.zoomDropDown.text=i)}},i.prototype.updateInteractionItems=function(){this.pdfViewer.textSelectionModule&&this.pdfViewer.enableTextSelection?this.enableItems(this.textSelectItem.parentElement,!0):this.enableItems(this.textSelectItem.parentElement,!1),this.enableItems(this.panItem.parentElement,!0),"TextSelection"===this.pdfViewer.interactionMode&&this.pdfViewer.enableTextSelection?(this.selectItem(this.textSelectItem),this.textSelectItem.setAttribute("tabindex","-1"),this.deSelectItem(this.panItem),this.panItem.setAttribute("tabindex","0"),this.pdfViewerBase.initiateTextSelectMode()):(this.selectItem(this.panItem),this.panItem.setAttribute("tabindex","-1"),this.deSelectItem(this.textSelectItem),this.textSelectItem.setAttribute("tabindex","0"),this.pdfViewerBase.initiatePanning())},i.prototype.textSearchButtonHandler=function(e){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){if(this.pdfViewer.textSearchModule&&this.pdfViewerBase.pageCount>0)if(this.isTextSearchBoxDisplayed=!this.isTextSearchBoxDisplayed,this.pdfViewer.textSearchModule.showSearchBox(this.isTextSearchBoxDisplayed),this.isTextSearchBoxDisplayed){t.isBlazor()||(this.selectItem(this.textSearchItem),this.textSearchItem.setAttribute("tabindex","0"));var i=document.getElementById(this.pdfViewer.element.id+"_search_input");i.select(),i.focus()}else if(t.isBlazor()){var n=this.pdfViewerBase.getElement("_search");e?n.firstElementChild.focus():(n.firstElementChild.blur(),this.pdfViewerBase.focusViewerContainer())}else this.deSelectItem(this.textSearchItem),this.textSearchItem.blur()}else this.showToolbar(!1),this.pdfViewerBase.navigationPane.createNavigationPaneMobile("search")},i.prototype.initiateAnnotationMode=function(e,i){!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.annotationToolbarModule&&this.pdfViewer.enableAnnotationToolbar&&(this.annotationToolbarModule.showAnnotationToolbar(this.annotationItem),this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.refreshOverflow(),(i||this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.items.length>0)&&document.getElementById(this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.items[0].id).focus(),this.pdfViewer.isAnnotationToolbarVisible&&this.pdfViewer.isFormDesignerToolbarVisible&&(document.getElementById(this.pdfViewer.element.id+"_formdesigner_toolbar").style.display="none",this.formDesignerToolbarModule.isToolbarHidden=!1,this.formDesignerToolbarModule.showFormDesignerToolbar(this.formDesignerItem),this.annotationToolbarModule.adjustViewer(!0))):t.isBlazor()||(e===this.pdfViewer.element.id+"_annotation"&&(e=this.pdfViewer.element.id+"_annotationIcon"),this.annotationToolbarModule.createAnnotationToolbarForMobile(e))},i.prototype.initiateFormDesignerMode=function(e){if(this.formDesignerToolbarModule&&this.pdfViewer.enableFormDesignerToolbar){if(this.formDesignerToolbarModule.showFormDesignerToolbar(this.formDesignerItem),this.pdfViewer.isAnnotationToolbarVisible&&this.pdfViewer.isFormDesignerToolbarVisible){document.getElementById(this.pdfViewer.element.id+"_annotation_toolbar").style.display="none";var i=document.getElementById(this.pdfViewer.element.id+"_commantPanel");t.isNullOrUndefined(i)||t.isNullOrUndefined(this.pdfViewerBase.navigationPane)||"block"===i.style.display&&this.pdfViewerBase.navigationPane.closeCommentPanelContainer(),this.annotationToolbarModule.isToolbarHidden=!1,this.annotationToolbarModule.showAnnotationToolbar(this.annotationItem),this.formDesignerToolbarModule.adjustViewer(!0)}e&&this.pdfViewer.toolbarModule.formDesignerToolbarModule.toolbar.items.length>0&&document.getElementById(this.pdfViewer.toolbarModule.formDesignerToolbarModule.toolbar.items[0].id).focus()}},i.prototype.DisableInteractionTools=function(){this.deSelectItem(this.textSelectItem),this.deSelectItem(this.panItem)},i.prototype.selectItem=function(e){e&&e.classList.add("e-pv-select")},i.prototype.deSelectItem=function(e){e&&e.classList.remove("e-pv-select")},i.prototype.updateInteractionTools=function(e){var i=t.isBlazor();e?i?(this.selectItem(this.SelectToolElement),this.deSelectItem(this.PanElement)):(this.selectItem(this.textSelectItem),t.isNullOrUndefined(this.textSelectItem)||this.textSelectItem.setAttribute("tabindex","-1"),this.deSelectItem(this.panItem),t.isNullOrUndefined(this.panItem)||this.panItem.setAttribute("tabindex","0")):i?(this.selectItem(this.PanElement),this.deSelectItem(this.SelectToolElement)):(this.selectItem(this.panItem),t.isNullOrUndefined(this.panItem)||this.panItem.setAttribute("tabindex","-1"),this.deSelectItem(this.textSelectItem),t.isNullOrUndefined(this.textSelectItem)||this.textSelectItem.setAttribute("tabindex","0"))},i.prototype.initialEnableItems=function(){this.pdfViewer.enableToolbar?this.showToolbar(!0):this.showToolbar(!1),this.pdfViewer.enableNavigationToolbar?this.showNavigationToolbar(!0):this.showNavigationToolbar(!1),this.pdfViewer.pageOrganizer?this.showPageOrganizerToolbar(!0):this.showPageOrganizerToolbar(!1),t.isBlazor()||(this.isPrintBtnVisible?this.showPrintOption(!0):this.showPrintOption(!1),this.isDownloadBtnVisible?this.showDownloadOption(!0):this.showDownloadOption(!1),this.isSearchBtnVisible?this.showSearchOption(!0):this.showSearchOption(!1),this.isCommentBtnVisible?this.showCommentOption(!0):this.showCommentOption(!1))},i.prototype.showSeparator=function(e){this.isOpenBtnVisible&&(this.isNavigationToolVisible||this.isMagnificationToolVisible||this.isSelectionBtnVisible||this.isScrollingBtnVisible||this.isUndoRedoBtnsVisible)||this.applyHideToToolbar(!1,t.isNullOrUndefined(this.itemsIndexArray[0])?1:this.itemsIndexArray[0].endIndex+1,t.isNullOrUndefined(this.itemsIndexArray[0])?1:this.itemsIndexArray[0].endIndex+1),(this.isNavigationToolVisible||this.isMagnificationToolVisible||this.isOpenBtnVisible)&&(!this.isOpenBtnVisible||this.isNavigationToolVisible)&&(this.isOpenBtnVisible||this.isNavigationToolVisible)&&(this.isMagnificationToolVisible||this.isScrollingBtnVisible||this.isSelectionBtnVisible)||this.applyHideToToolbar(!1,t.isNullOrUndefined(this.itemsIndexArray[1])?8:this.itemsIndexArray[1].endIndex+1,t.isNullOrUndefined(this.itemsIndexArray[1])?8:this.itemsIndexArray[1].endIndex+1),(!this.isMagnificationToolVisible&&!this.isSelectionBtnVisible&&!this.isScrollingBtnVisible||this.isMagnificationToolVisible&&!this.isSelectionBtnVisible&&!this.isScrollingBtnVisible||!this.isMagnificationToolVisible&&(this.isSelectionBtnVisible||this.isScrollingBtnVisible))&&this.applyHideToToolbar(!1,t.isNullOrUndefined(this.itemsIndexArray[2])?12:this.itemsIndexArray[2].endIndex+1,t.isNullOrUndefined(this.itemsIndexArray[2])?12:this.itemsIndexArray[2].endIndex+1),(this.isMagnificationToolVisible||this.isNavigationToolVisible||this.isScrollingBtnVisible||this.isSelectionBtnVisible||!this.isUndoRedoBtnsVisible)&&this.isUndoRedoBtnsVisible||this.applyHideToToolbar(!1,t.isNullOrUndefined(this.itemsIndexArray[4])?15:this.itemsIndexArray[4].endIndex+1,t.isNullOrUndefined(this.itemsIndexArray[4])?15:this.itemsIndexArray[4].endIndex+1),this.isUndoRedoBtnsVisible&&(!this.isUndoRedoBtnsVisible||this.isCommentBtnVisible||this.isSubmitbtnvisible)||t.isNullOrUndefined(this.itemsIndexArray[5])||this.applyHideToToolbar(!1,this.itemsIndexArray[5].endIndex+1,this.itemsIndexArray[5].endIndex+1)},i.prototype.applyToolbarSettings=function(){var e=this.pdfViewer.toolbarSettings.toolbarItems;e&&(-1!==e.indexOf("OpenOption")?this.showOpenOption(!0):this.showOpenOption(!1),-1!==e.indexOf("PageNavigationTool")?this.showPageNavigationTool(!0):this.showPageNavigationTool(!1),-1!==e.indexOf("MagnificationTool")?this.showMagnificationTool(!0):this.showMagnificationTool(!1),-1!==e.indexOf("SelectionTool")?this.showSelectionTool(!0):this.showSelectionTool(!1),-1!==e.indexOf("PanTool")?this.showScrollingTool(!0):this.showScrollingTool(!1),-1!==e.indexOf("PrintOption")?this.showPrintOption(!0):this.showPrintOption(!1),-1!==e.indexOf("DownloadOption")?this.showDownloadOption(!0):this.showDownloadOption(!1),-1!==e.indexOf("SearchOption")?this.showSearchOption(!0):this.showSearchOption(!1),-1!==e.indexOf("UndoRedoTool")?this.showUndoRedoTool(!0):this.showUndoRedoTool(!1),-1!==e.indexOf("AnnotationEditTool")?this.showAnnotationEditTool(!0):this.showAnnotationEditTool(!1),-1!==e.indexOf("FormDesignerEditTool")?this.showFormDesignerEditTool(!0):this.showFormDesignerEditTool(!1),-1!==e.indexOf("CommentTool")?this.showCommentOption(!0):this.showCommentOption(!1),-1!==e.indexOf("SubmitForm")?this.showSubmitForm(!0):this.showSubmitForm(!1),this.showSeparator(e))},i.prototype.applyToolbarSettingsForMobile=function(){var e=this.pdfViewer.toolbarSettings.toolbarItems;e&&(-1!==e.indexOf("OpenOption")?this.showOpenOption(!0):this.showOpenOption(!1),-1!==e.indexOf("UndoRedoTool")?this.showUndoRedoTool(!0):this.showUndoRedoTool(!1),-1!==e.indexOf("AnnotationEditTool")?this.showAnnotationEditTool(!0):this.showAnnotationEditTool(!1),-1!==e.indexOf("SearchOption")?this.showSearchOption(!0):this.showSearchOption(!1))},i.prototype.getStampMode=function(){return!(!this.pdfViewer.annotation||!this.pdfViewer.annotation.stampAnnotationModule)&&this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode},i.prototype.stampBeforeOpen=function(e){if(this.annotationToolbarModule.resetFreeTextAnnot(),""===e.ParentItem.Text&&this.pdfViewer.customStampSettings.isAddToMenu&&e.Items.length>0){for(var t=null,i=0;i<e.Items.length;i++)if("Custom Stamp"===e.Items[parseInt(i.toString(),10)].Text){e.Items[parseInt(i.toString(),10)].Items=[],t=e.Items[parseInt(i.toString(),10)];break}var n=this.pdfViewerBase.customStampCollection,o=this.pdfViewer.customStampSettings.customStamps;if(0===n.length&&o&&o.length>0)for(var r=0;r<o.length;r++)n.push({customStampName:o[parseInt(r.toString(),10)].customStampName,customStampImageSource:o[parseInt(r.toString(),10)].customStampImageSource});for(var a=0;a<n.length;a++)null!=t&&t.Items.push({text:n[parseInt(a.toString(),10)].customStampName})}},i.prototype.stampBeforeClose=function(e,t){e.ParentItem&&"Custom Stamp"!==e.ParentItem.Text&&"Standard Business"!==e.ParentItem.Text&&"Dynamic"!==e.ParentItem.Text&&"Sign Here"!==e.ParentItem.Text||e.ParentItem},i.prototype.updateStampItems=function(){this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.stampAnnotationModule&&this.pdfViewer.annotationModule.stampAnnotationModule.isNewStampAnnot&&(this.pdfViewer.selectedItems.annotations[0]&&(this.pdfViewer.remove(this.pdfViewer.selectedItems.annotations[0]),this.pdfViewer.clearSelection(this.pdfViewer.currentPageNumber-1),this.pdfViewer.renderDrawing(),this.pdfViewerBase.tool=null),this.pdfViewerBase.isAlreadyAdded=!1,this.pdfViewer.annotationModule.stampAnnotationModule.isNewStampAnnot=!1)},i.prototype.stampSelect=function(e,i){if(this.pdfViewerBase.isAlreadyAdded=!1,this.updateStampItems(),"Custom Stamp"===e.Item.Text){this.annotationToolbarModule.checkStampAnnotations(),this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0;var n=t.createElement("input",{id:this.pdfViewer.element.id+"_stampElement",attrs:{type:"file"}});n.setAttribute("accept",".jpg,.jpeg,.png"),n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.visibility="hidden",document.body.appendChild(n),n.click(),n.addEventListener("change",this.annotationToolbarModule.addStampImage),document.body.removeChild(n)}else if("Custom Stamp"===i&&""!==e.Item.Text)for(var o=this.pdfViewerBase.customStampCollection,r=0;r<o.length;r++)o[parseInt(r.toString(),10)].customStampName===e.Item.Text&&(this.pdfViewer.annotationModule.stampAnnotationModule.customStampName=e.Item.Text,this.annotationToolbarModule.checkStampAnnotations(),this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,this.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,this.pdfViewerBase.stampAdded=!0,this.pdfViewerBase.isAlreadyAdded=!0,this.pdfViewer.annotationModule.stampAnnotationModule.createCustomStampAnnotation(o[parseInt(r.toString(),10)].customStampImageSource),this.pdfViewerBase.stampAdded=!1);else"Dynamic"===e.Item.Text||""===e.Item.Text||"Standard Business"===e.Item.Text||"Sign Here"!==i&&"Sign Here"===e.Item.Text||(this.annotationToolbarModule.checkStampAnnotations(),this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,this.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,this.pdfViewerBase.stampAdded=!0,"Dynamic"===i?(this.pdfViewerBase.isDynamicStamp=!0,this.pdfViewer.annotationModule.stampAnnotationModule.retrieveDynamicStampAnnotation(e.Item.Text)):(this.pdfViewerBase.isDynamicStamp=!1,this.pdfViewer.annotationModule.stampAnnotationModule.retrievestampAnnotation(e.Item.Text)))},i.prototype.enableItems=function(e,t){this.toolbar.enableItems(e,t),e&&e.id===this.pdfViewer.element.id+"_zoomDropDownContainer"?(this.pdfViewerBase.getElement("_zoomDropDown").setAttribute("tabindex",t?"0":"-1"),this.pdfViewerBase.getElement("_zoomDropDown").setAttribute("data-tabindex",t?"0":"-1")):e.firstElementChild&&e.id!==this.pdfViewer.element.id+"_zoomDropDownContainer"&&(e.firstElementChild.setAttribute("tabindex",t?"0":"-1"),e.firstElementChild.setAttribute("data-tabindex",t?"0":"-1"))},i.prototype.getModuleName=function(){return"Toolbar"},i}(),Hi=function(){function i(e,i,n){var o=this;this.toolbarBorderHeight=1,this.isToolbarHidden=!1,this.isMobileAnnotEnabled=!1,this.isHighlightEnabled=!1,this.isMobileHighlightEnabled=!1,this.isUnderlineEnabled=!1,this.isMobileUnderlineEnabled=!1,this.isStrikethroughEnabled=!1,this.isMobileStrikethroughEnabled=!1,this.isSquigglyEnabled=!1,this.isMobileSquigglyEnabled=!1,this.isHighlightBtnVisible=!0,this.isCommentBtnVisible=!0,this.isUnderlineBtnVisible=!0,this.isStrikethroughBtnVisible=!0,this.isSquigglyBtnVisible=!0,this.isColorToolVisible=!0,this.isOpacityToolVisible=!0,this.isDeleteAnnotationToolVisible=!0,this.isCurrentAnnotationOpacitySet=!1,this.isStampBtnVisible=!1,this.isShapeBtnVisible=!1,this.isSignatureBtnVisible=!1,this.isInkBtnVisible=!1,this.isFontFamilyToolVisible=!1,this.isFontSizeToolVisible=!1,this.isFontAlignToolVisible=!1,this.isFontColorToolVisible=!1,this.isFontStylesToolVisible=!1,this.isCommentPanelBtnVisible=!1,this.isFreeTextBtnVisible=!1,this.isCalibrateBtnVisible=!1,this.isStrokeColorToolVisible=!1,this.isThicknessToolVisible=!1,this.stampMenu=[],this.stampParentID="",this.inkAnnotationSelected=!1,this.openSignaturePopup=!1,this.isSavedSignatureClicked=!1,this.saveSignatureCount=0,this.saveInitialCount=0,this.isToolbarCreated=!1,this.addStampImage=function(e){var t=o,i=e.target.files;if(null!==e.target.files[0]){var n=i[0];if(o.pdfViewer.annotationModule.stampAnnotationModule.customStampName=n.name.split(".")[0],"image"===n.type.split("/")[0]){var r=new FileReader;r.onload=function(e){var i=e.currentTarget.result;t.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,t.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,t.pdfViewerBase.stampAdded=!0,o.pdfViewer.annotationModule.stampAnnotationModule.createCustomStampAnnotation(i),t.pdfViewerBase.stampAdded=!1},r.readAsDataURL(n)}}e.target.value="",e.currentTarget.value=""},this.popupPosition=function(e,t){if(e&&e.element){var i=t.getBoundingClientRect(),n=e.element.getElementsByClassName("e-container e-color-palette")[0].getElementsByClassName("e-palette")[0].getBoundingClientRect(),o=this.pdfViewerBase.mainContainer.getBoundingClientRect();n.left+n.width>o.width&&(e.element.parentElement.style.left=n.left-n.width+i.width+"px"),n.left-n.width+i.width<0&&(e.element.parentElement.style.left=o.left+i.width+"px")}},this.onShapeToolbarClicked=function(e){var i=o.pdfViewer.element.id,n=o.pdfViewer.annotation.shapeAnnotationModule;if(t.Browser.isDevice&&!o.pdfViewer.enableDesktopMode&&"Polygon"===o.pdfViewerBase.action&&o.pdfViewerBase.tool.mouseUp(e,!0,!0),t.Browser.isDevice){var r=e.originalEvent.target;o.pdfViewer.toolbarModule.selectItem(r.parentElement),o.deselectAllItemsForMobile()}else o.deselectAllItems(),o.resetFreeTextAnnot();switch(e.originalEvent.target.id){case i+"_shape_line":case i+"_shape_lineIcon":n.setAnnotationType("Line"),o.onShapeDrawSelection(!0),o.updateColorInIcon(o.colorDropDownElement,n.lineFillColor),o.updateColorInIcon(o.strokeDropDownElement,n.lineStrokeColor),o.handleShapeTool(i+"_shape_line");break;case i+"_shape_arrow":case i+"_shape_arrowIcon":n.setAnnotationType("Arrow"),o.onShapeDrawSelection(!0),o.updateColorInIcon(o.colorDropDownElement,n.arrowFillColor),o.updateColorInIcon(o.strokeDropDownElement,n.arrowStrokeColor),o.handleShapeTool(i+"_shape_arrow");break;case i+"_shape_rectangle":case i+"_shape_rectangleIcon":n.setAnnotationType("Rectangle"),o.onShapeDrawSelection(!0),o.updateColorInIcon(o.colorDropDownElement,n.rectangleFillColor),o.updateColorInIcon(o.strokeDropDownElement,n.rectangleStrokeColor),o.handleShapeTool(i+"_shape_rectangle");break;case i+"_shape_circle":case i+"_shape_circleIcon":n.setAnnotationType("Circle"),o.onShapeDrawSelection(!0),o.updateColorInIcon(o.colorDropDownElement,n.circleFillColor),o.updateColorInIcon(o.strokeDropDownElement,n.circleStrokeColor),o.handleShapeTool(i+"_shape_circle");break;case i+"_shape_pentagon":case i+"_shape_pentagonIcon":n.setAnnotationType("Polygon"),o.onShapeDrawSelection(!0),o.updateColorInIcon(o.colorDropDownElement,n.polygonFillColor),o.updateColorInIcon(o.strokeDropDownElement,n.polygonStrokeColor),o.handleShapeTool(i+"_shape_pentagon")}},this.pdfViewer=e,this.pdfViewerBase=i,this.primaryToolbar=n}return i.prototype.initializeAnnotationToolbar=function(){var e=this;this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_annotation_toolbar",className:"e-pv-annotation-toolbar"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.toolbarElement),this.toolbar=new s.Toolbar({width:"",height:"",overflowMode:"Popup",cssClass:"e-pv-toolbar-scroll",items:this.createToolbarItems(),clicked:this.onToolbarClicked.bind(this),created:function(){e.createDropDowns()}}),this.toolbar.isStringTemplate=!0,this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.toolbar.appendTo(this.toolbarElement),this.afterToolbarCreation(),this.createStampContainer(),this.createSignContainer(),this.applyAnnotationToolbarSettings(),this.updateToolbarItems(),this.showAnnotationToolbar(null,!0),this.toolbarElement.setAttribute("aria-label","Annotation Toolbar")},i.prototype.createMobileAnnotationToolbar=function(e,i){var n=this;t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?null==this.toolbarElement&&e?(this.isMobileAnnotEnabled=!0,this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_annotation_toolbar",className:"e-pv-annotation-toolbar"}),this.pdfViewerBase.viewerMainContainer.insertBefore(this.toolbarElement,this.pdfViewerBase.viewerContainer),this.toolbar=new s.Toolbar({width:"",height:"",overflowMode:"Popup",items:this.createMobileToolbarItems(i),clicked:this.onToolbarClicked.bind(this),created:function(){n.createDropDowns(i)}}),this.toolbar.isStringTemplate=!0,this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.pdfViewerBase.navigationPane.goBackToToolbar(),this.pdfViewer.toolbarModule.showToolbar(!1),this.toolbar.appendTo(this.toolbarElement),this.deleteItem=this.pdfViewerBase.getElement("_annotation_delete"),this.deleteItem.firstElementChild.id=this.pdfViewer.element.id+"_annotation_delete"):null!=this.toolbarElement&&(e?(this.isMobileAnnotEnabled=!0,this.pdfViewerBase.navigationPane.goBackToToolbar(),this.pdfViewer.toolbarModule.showToolbar(!1),this.toolbarElement.style.display="block"):e||(this.isMobileAnnotEnabled=!1,this.pdfViewer.toolbarModule.showToolbar(!0),this.hideMobileAnnotationToolbar())):this.isMobileAnnotEnabled=!0},i.prototype.hideMobileAnnotationToolbar=function(){if(null!=this.toolbarElement){if(this.pdfViewer.selectedItems.annotations.length>0||!t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.propertyToolbar&&this.propertyToolbar.element.children.length>0&&(this.propertyToolbar.element.style.display="block",this.toolbarCreated=!0);else if(this.toolbar.element.children.length>0?this.toolbarCreated=!0:this.toolbarCreated=!1,this.propertyToolbar&&"none"!==this.propertyToolbar.element.style.display&&(this.propertyToolbar.element.style.display="none",!this.toolbarCreated)){var e=document.getElementById(this.pdfViewer.element.id+"_annotationIcon");e&&e.parentElement.classList.contains("e-pv-select")&&this.createAnnotationToolbarForMobile()}this.toolbarElement.children.length>0&&(this.toolbarElement.style.display="block"),this.adjustMobileViewer()}else this.toolbarCreated&&this.propertyToolbar&&this.propertyToolbar.element.children.length>0&&(this.propertyToolbar.element.style.display="none",this.adjustMobileViewer(),this.toolbarCreated=!1)},i.prototype.FreeTextForMobile=function(){var e=this;this.hideExistingTool(),this.freetextToolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_freeTextToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.freetextToolbarElement);var i=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),n=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_stroke","e-pv-annotation-stroke-container"),o=this.getTemplate("span","_annotation_thickness","e-pv-annotation-thickness-container"),r=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),a=this.getTemplate("input","_annotation_fontname","e-pv-annotation-fontname-container"),l=this.getTemplate("input","_annotation_fontsize","e-pv-annotation-fontsize-container"),d=this.getTemplate("span","_annotation_textcolor","e-pv-annotation-textcolor-container"),A=this.getTemplate("span","_annotation_textalign","e-pv-annotation-textalign-container"),h=this.getTemplate("span","_annotation_textproperties","e-pv-annotation-textprop-container"),p=[{prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)},{type:"Separator",align:"Left",cssClass:"e-pv-hightlight-separator-container"},{template:a},{template:l},{template:d},{template:A},{template:h},{template:i},{template:n},{template:o},{template:r}];this.toolbar=new s.Toolbar({items:p,width:"",height:"",overflowMode:"Scrollable",created:function(){e.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e.pdfViewer.element.id+"_annotation_freeTextEdit")}}),this.toolbar.appendTo(this.freetextToolbarElement),this.showFreeTextPropertiesTool()},i.prototype.createPropertyTools=function(e){var i=this;if(""!==e){this.propertyToolbar&&this.propertyToolbar.destroy(),this.toolbar&&this.toolbar.destroy();var n=void 0;(n=document.getElementById(this.pdfViewer.element.id+"_propertyToolbar"))&&n.parentElement.removeChild(n),n=t.createElement("div",{id:this.pdfViewer.element.id+"_propertyToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(n);var o,r=new s.Toolbar({items:this.createPropertyToolbarForMobile(e),width:"",height:"",overflowMode:"Scrollable",created:function(){o=!t.isNullOrUndefined(i.pdfViewer.annotationModule.textMarkupAnnotationModule)&&i.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?i.pdfViewer.element.id+"_underlineIcon":t.isNullOrUndefined(i.pdfViewer.selectedItems.annotations[0])?"Highlight"===e||"Underline"===e||"Strikethrough"===e||"Squiggly"===e?i.pdfViewer.element.id+"_highlightIcon":i.pdfViewer.element.id+"_annotation_shapesIcon":"FreeText"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?i.pdfViewer.element.id+"_annotation_freeTextEdit":"Stamp"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"StickyNotes"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"Image"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?i.pdfViewer.element.id+"_annotation_stamp":"HandWrittenSignature"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"SignatureText"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?i.pdfViewer.element.id+"_annotation_handwrittenSign":"SignatureImage"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?i.pdfViewer.element.id+"_annotation_handwrittenImage":"Ink"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||"Path"===i.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?i.pdfViewer.element.id+"_annotation_inkIcon":"Highlight"===e||"Underline"===e||"Strikethrough"===e||"Squiggly"===e?i.pdfViewer.element.id+"_highlightIcon":i.pdfViewer.element.id+"_annotation_shapesIcon",i.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(o)}});if(r.isStringTemplate=!0,r.appendTo(n),!t.isNullOrUndefined(this.pdfViewer.annotationModule.textMarkupAnnotationModule)&&!this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation&&("Line"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&this.enableItems(this.colorDropDownElement.parentElement,!1),"HandWrittenSignature"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType)){var a=document.getElementById(this.pdfViewer.element.id+"_annotation_commentPanel");this.enableItems(a.parentElement,!1)}this.showPropertyTool(r,o)}},i.prototype.showPropertyTool=function(e,t){if(this.toolbar&&this.toolbar.destroy(),this.propertyToolbar=e,this.applyProperiesToolSettings(t),this.pdfViewer.selectedItems.annotations[0]){var i=this.pdfViewer.selectedItems.annotations[0];"SignatureText"!==i.shapeAnnotationType&&"HandWrittenSignature"!==i.shapeAnnotationType&&"Stamp"!==i.shapeAnnotationType&&"Image"!==i.shapeAnnotationType&&"Ink"!==i.shapeAnnotationType&&"Path"!==i.shapeAnnotationType&&"StickyNotes"!==i.shapeAnnotationType?(this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.selectedItems.annotations[0].fillColor),this.updateColorInIcon(this.strokeDropDownElement,this.pdfViewer.selectedItems.annotations[0].strokeColor),"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(this.fontFamilyElement.ej2_instances[0].value=this.pdfViewer.selectedItems.annotations[0].fontFamily,this.fontColorElement.children[0].style.borderBottomColor=this.pdfViewer.selectedItems.annotations[0].fontColor,this.pdfViewer.annotation.modifyTextAlignment(this.pdfViewer.selectedItems.annotations[0].textAlign),this.updateTextAlignInIcon(this.pdfViewer.selectedItems.annotations[0].textAlign))):this.strokeDropDownElement&&this.updateColorInIcon(this.strokeDropDownElement,this.pdfViewer.selectedItems.annotations[0].strokeColor)}this.toolbarCreated=!0,this.adjustMobileViewer()},i.prototype.stampToolMobileForMobile=function(e){var i=this;this.hideExistingTool(),this.stampToolbarElement&&this.stampToolbarElement.parentElement.removeChild(this.stampToolbarElement),this.stampToolbarElement=t.createElement("div",{id:this.pdfViewer.element.i
vendor: 4,582 bytes, line 10
10d+"_stampToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.stampToolbarElement),this.toolbar=new s.Toolbar({items:this.createStampToolbarItemsForMobile(),width:"",height:"",overflowMode:"Scrollable",clicked:this.onShapeToolbarClicked.bind(this),created:function(){i.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e)}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.stampToolbarElement),this.showStampPropertiesTool()},i.prototype.shapeToolMobile=function(e){var i=this;this.hideExistingTool(),this.shapeToolbarElement&&this.shapeToolbarElement.parentElement.removeChild(this.shapeToolbarElement),this.shapeToolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_shapeToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.shapeToolbarElement),this.toolbar=new s.Toolbar({items:this.createShapeToolbarItemsForMobile(),width:"",height:"",overflowMode:"Scrollable",clicked:this.onShapeToolbarClicked.bind(this),created:function(){i.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e.originalEvent.target.id)}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.shapeToolbarElement),this.afterShapeToolbarCreationForMobile(),this.showShapeTool()},i.prototype.calibrateToolMobile=function(e){var i=this;this.hideExistingTool(),this.calibrateToolbarElement&&this.calibrateToolbarElement.parentElement.removeChild(this.calibrateToolbarElement),this.calibrateToolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_calibrateToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.calibrateToolbarElement),this.toolbar=new s.Toolbar({items:this.createCalibrateToolbarItemsForMobile(),width:"",height:"",overflowMode:"Scrollable",clicked:this.onCalibrateToolbarClicked.bind(this),created:function(){i.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e.originalEvent.target.id)}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.calibrateToolbarElement),this.afterCalibrateToolbarCreationForMobile(),this.showShapeTool()},i.prototype.textMarkupForMobile=function(e){var i=this;this.hideExistingTool(),this.textMarkupToolbarElement&&this.textMarkupToolbarElement.parentElement.removeChild(this.textMarkupToolbarElement),this.textMarkupToolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_mobileAnnotationToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.textMarkupToolbarElement);var n=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),o=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),r=[{prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)},{type:"Separator",align:"Left",cssClass:"e-pv-hightlight-separator-container"},{template:n,align:"left"},{template:o,align:"left"}];this.propertyToolbar=new s.Toolbar({items:r,width:"",height:"",overflowMode:"Scrollable",created:function(){i.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e.originalEvent.target.id)}}),this.propertyToolbar.isStringTemplate=!0,this.propertyToolbar.appendTo(this.textMarkupToolbarElement),this.showTextMarkupPropertiesTool()},i.prototype.showShapeTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("ColorEditTool")?this.showColorEditTool(!0,7,7):this.showColorEditTool(!1,7,7),-1!==e.indexOf("StrokeColorEditTool")?this.showStrokeColorEditTool(!0,8,8):this.showStrokeColorEditTool(!1,8,8),-1!==e.indexOf("ThicknessEditTool")?this.showThicknessEditTool(!0,9,9):this.showThicknessEditTool(!1,9,9),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,10,10):this.showOpacityEditTool(!1,10,10))},i.prototype.signatureInkForMobile=function(){var e=this;this.hideExistingTool(),this.signatureInkToolbarElement&&this.signatureInkToolbarElement.parentElement.removeChild(this.signatureInkToolbarElement),this.signatureInkToolbarElement=t.createElement("div",{id:this.pdfViewer.element.i
vendor: 1,683 bytes, line 10
10d+"_mobileAnnotationToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.signatureInkToolbarElement);var i=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),n=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_stroke","e-pv-annotation-stroke-container"),o=this.getTemplate("span","_annotation_thickness","e-pv-annotation-thickness-container"),r=[{prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)},{template:i,align:"left"},{template:n,aign:"left"},{template:o,align:"left"}];this.toolbar=new s.Toolbar({items:r,width:"",height:"",overflowMode:"Scrollable",created:function(){e.pdfViewer.toolbarModule.annotationToolbarModule.mobileColorpicker(e.pdfViewer.element.id+"_annotation_inkIcon")}}),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.signatureInkToolbarElement)},i.prototype.hideExistingTool=function(){this.toolbar&&!this.pdfViewer.enableDesktopMode&&this.toolbar.destroy(),this.propertyToolbar&&!this.pdfViewer.enableDesktopMode&&this.propertyToolbar.destroy();var e=document.getElementById(this.pdfViewer.element.id+"_mobileAnnotationToolbar");e&&(e.style.display="none")},i.prototype.applyProperiesToolSettings=function(e){switch(e){case this.pdfViewer.element.id+"_underlineIcon":case this.pdfViewer.element.id+"_highlightIcon":this.showTextMarkupPropertiesTool();break;case this.pdfViewer.element.id+"_annotation_freeTextEdit":this.show
10FreeTextPropertiesTool();break;case this.pdfViewer.element.id+"_annotation_shapesIcon":this.shapePropertiesTool();break;case"stampTool":case this.pdfViewer.element.id+"_annotation_stamp":this.showStampPropertiesTool();break;case this.pdfViewer.element.id+"_annotation_handwrittenSign":case this.pdfViewer.element.id+"_annotation_inkIcon":this.showInkPropertiesTool();break;case this.pdfViewer.element.id+"_annotation_handwrittenImage":this.showImagePropertyTool()}},i.prototype.showImagePropertyTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,0,0):this.showOpacityEditTool(!1,0,0),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,1,1):this.showCommentPanelTool(!1,1,1),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,2,2):this.showAnnotationDeleteTool(!1,2,2))},i.prototype.showFreeTextPropertiesTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("FontFamilyAnnotationTool")?this.showFontFamilyAnnotationTool(!0,2,2):this.showFontFamilyAnnotationTool(!1,2,2),-1!==e.indexOf("FontSizeAnnotationTool")?this.showFontSizeAnnotationTool(!0,3,3):this.showFontSizeAnnotationTool(!1,3,3),-1!==e.indexOf("FontColorAnnotationTool")?this.showFontColorAnnotationTool(!0,4,4):this.showFontColorAnnotationTool(!1,4,4),-1!==e.indexOf("FontAlignAnnotationTool")?this.showFontAlignAnnotationTool(!0,5,5):this.showFontAlignAnnotationTool(!1,5,5),-1!==e.indexOf("FontStylesAnnotationTool")?this.showFontStylesAnnotationTool(!0,6,6):this.showFontStylesAnnotationTool(!1,6,6),-1!==e.indexOf("ColorEditTool")?this.showColorEditTool(!0,7,7):this.showColorEditTool(!1,7,7),-1!==e.indexOf("StrokeColorEditTool")?this.showStrokeColorEditTool(!0,8,8):this.showStrokeColorEditTool(!1,8,8),-1!==e.indexOf("ThicknessEditTool")?this.showThicknessEditTool(!0,9,9):this.showThicknessEditTool(!1,9,9),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,10,10):this.showOpacityEditTool(!1,10,10),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,11,11):this.showCommentPanelTool(!1,11,11),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,12,12):this.showAnnotationDeleteTool(!1,12,12),-1!==e.indexOf("FreeTextAnnotationTool")?this.showFreeTextAnnotationTool(!0,0,0):(this.showFreeTextAnnotationTool(!1,0,0),this.applyHideToToolbar(!1,1,1)))},i.prototype.shapePropertiesTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("ColorEditTool")?this.showColorEditTool(!0,2,2):this.showColorEditTool(!1,2,2),-1!==e.indexOf("StrokeColorEditTool")?this.showStrokeColorEditTool(!0,3,3):this.showStrokeColorEditTool(!1,3,3),-1!==e.indexOf("ThicknessEditTool")?this.showThicknessEditTool(!0,4,4):this.showThicknessEditTool(!1,4,4),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,5,5):this.showOpacityEditTool(!1,5,5),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,6,6):this.showCommentPanelTool(!1,6,6),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,7,7):this.showAnnotationDeleteTool(!1,7,7),-1!==e.indexOf("ShapeTool")?this.showShapeAnnotationTool(!0,0,0):(this.showShapeAnnotationTool(!1,0,0),this.applyHideToToolbar(!1,1,1)))},i.prototype.showStampPropertiesTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,2,2):this.showOpacityEditTool(!1,2,2),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,3,3):this.showCommentPanelTool(!1,3,3),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,4,4):this.showAnnotationDeleteTool(!1,4,4),-1!==e.indexOf("StampAnnotationTool")?this.showStampAnnotationTool(!0,0,0):(this.showStampAnnotationTool(!1,0,0),this.applyHideToToolbar(!1,1,1)))},i.prototype.showTextMarkupPropertiesTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("ColorEditTool")?this.showColorEditTool(!0,2,2):this.showColorEditTool(!1,2,2),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,3,3):this.showOpacityEditTool(!1,3,3),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,4,4):this.showCommentPanelTool(!1,4,4),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,5,5):this.showAnnotationDeleteTool(!1,5,5),e.includes("HighlightTool")||e.includes("UnderlineTool")||e.includes("StrikethroughTool")||e.includes("SquigglyTool")?this.applyHideToToolbar(!0,0,0):(this.applyHideToToolbar(!1,0,0),this.applyHideToToolbar(!1,1,1)))},i.prototype.showInkPropertiesTool=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("StrokeColorEditTool")?this.showStrokeColorEditTool(!0,2,2):this.showStrokeColorEditTool(!1,2,2),-1!==e.indexOf("ThicknessEditTool")?this.showThicknessEditTool(!0,3,3):this.showThicknessEditTool(!1,3,3),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,4,4):this.showOpacityEditTool(!1,4,4),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,5,5):this.showCommentPanelTool(!1,5,5),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,6,6):this.showAnnotationDeleteTool(!1,6,6),-1!==e.indexOf("HandWrittenSignatureTool")?this.showSignatureTool(!0,0,0):(this.showSignatureTool(!1,0,0),this.applyHideToToolbar(!1,1,1)))},i.prototype.createAnnotationToolbarForMobile=function(e){var i;if(e){var n=document.getElementById(e);n.parentElement.classList.contains("e-pv-select")?(i=!0,n.parentElement.classList.remove("e-pv-select")):(i=!1,this.pdfViewer.toolbarModule.selectItem(n.parentElement))}if(i){this.toolbarCreated=!1,this.adjustMobileViewer(),this.toolbar&&(this.toolbar.destroy(),this.deselectAllItemsForMobile()),this.propertyToolbar&&this.propertyToolbar.destroy();
vendor: 28,817 bytes, line 10
10var o=document.getElementById(this.pdfViewer.element.id+"_mobileAnnotationToolbar");return o&&(o.style.display="none"),this.pdfViewer.isAnnotationToolbarVisible=!i,[]}this.isToolbarCreated=!0,this.propertyToolbar&&this.propertyToolbar.destroy(),this.toolbarElement&&this.toolbarElement.parentElement.removeChild(this.toolbarElement),this.toolbarElement=t.createElement("div",{id:this.pdfViewer.element.id+"_mobileAnnotationToolbar",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left;"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.toolbarElement);var r=this.getTemplate("span","_annotation_stamp","e-pv-annotation-stamp-container"),a=this.getTemplate("span","_annotation_signature","e-pv-annotation-handwritten-container"),l=[{prefixIcon:"e-pv-comment-icon e-pv-icon",className:"e-pv-comment-container",id:this.pdfViewer.element.id+"_comment"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-highlight-icon e-pv-icon",className:"e-pv-highlight-container",id:this.pdfViewer.element.id+"_highlight"},{prefixIcon:"e-pv-underline-icon e-pv-icon",className:"e-pv-underline-container",id:this.pdfViewer.element.id+"_underline"},{prefixIcon:"e-pv-strikethrough-icon e-pv-icon",className:"e-pv-strikethrough-container",id:this.pdfViewer.element.id+"_strikethrough"},{prefixIcon:"e-pv-squiggly-icon e-pv-icon",className:"e-pv-squiggly-container",id:this.pdfViewer.element.id+"_squiggly"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-annotation-shape-icon e-pv-icon",className:"e-pv-annotation-shapes-container",id:this.pdfViewer.element.id+"_annotation_shapes"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-annotation-calibrate-icon e-pv-icon",className:"e-pv-annotation-calibrate-container",id:this.pdfViewer.element.id+"_annotation_calibrate"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-freetext-icon e-pv-icon",className:"e-pv-annotation-freetextedit-container",id:this.pdfViewer.element.id+"_annotation_freeTextEdit"},{type:"Separator",align:"Left"},{template:r},{type:"Separator",align:"Left"},{template:a,align:"Left"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-inkannotation-icon e-pv-icon",className:"e-pv-annotation-ink-container",id:this.pdfViewer.element.id+"_annotation_ink",align:"Left"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-comment-panel-icon e-pv-icon",className:"e-pv-comment-panel-icon-container",id:this.pdfViewer.element.id+"_annotation_commentPanel",align:"Right"}];return this.toolbarCreated&&this.toolbar?(this.toolbar.destroy(),this.toolbarCreated=!1,this.adjustMobileViewer()):(this.toolbar=new s.Toolbar({items:l,width:"",height:"",overflowMode:"Scrollable",clicked:this.onToolbarClicked.bind(this)}),this.pdfViewer.enableRtl&&(this.toolbar.enableRtl=!0),this.toolbar.isStringTemplate=!0,this.toolbar.appendTo(this.toolbarElement),this.afterMobileToolbarCreation(),this.createStampContainer(),this.createSignContainer(),this.applyMobileAnnotationToolbarSettings(),this.toolbarCreated=!0,this.adjustMobileViewer()),this.pdfViewerBase.isTextSelectionDisabled||(this.isMobileHighlightEnabled?(this.primaryToolbar.selectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem)):this.isMobileUnderlineEnabled?(this.primaryToolbar.selectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem)):this.isMobileStrikethroughEnabled?(this.primaryToolbar.selectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem)):this.isMobileSquigglyEnabled&&(this.primaryToolbar.selectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem))),this.pdfViewer.isAnnotationToolbarVisible=!i,l},i.prototype.adjustMobileViewer=function(){var e;this.toolbarElement&&(e=this.toolbarElement.clientHeight);var t=!1;this.toolbarElement&&0===this.toolbarElement.children.length&&this.propertyToolbar&&this.propertyToolbar.element.children.length>0?(e=this.propertyToolbar.element.clientHeight,"none"!==this.pdfViewer.toolbarModule.toolbarElement.style.display||this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.isNavigationToolbarVisible||(this.pdfViewer.toolbarModule.toolbarElement.style.display="block")):this.freetextToolbarElement&&this.freetextToolbarElement.children.length>0?e=this.freetextToolbarElement.clientHeight:0===e&&this.pdfViewer.toolbarModule.toolbar?(e=this.pdfViewer.toolbarModule.toolbarElement.clientHeight,t=!0):!e&&this.propertyToolbar&&this.propertyToolbar.element.children.length>0&&(e=this.propertyToolbar.element.clientHeight),this.pdfViewer.enableToolbar&&this.toolbarCreated?this.pdfViewerBase.viewerContainer.style.height=this.updateViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),e+e)+"px":t||(this.pdfViewerBase.viewerContainer.style.height.split("%").length>1?this.pdfViewerBase.viewerContainer.style.height=this.resetViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),-e)+"px":this.pdfViewerBase.viewerContainer.style.height=this.resetViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),e)+"px")},i.prototype.showToolbar=function(e){var i=this.toolbarElement;e?(i.style.display="block",t.Browser.isDevice&&this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.hideMobileAnnotationToolbar()):i.style.display="none"},i.prototype.createMobileToolbarItems=function(e){var t=this.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),i=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),n=[];return n.push({prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)}),e||(n.push({template:t,align:"right"}),n.push({template:i,align:"right"}),n.push({type:"Separator",align:"right"})),n.push({prefixIcon:"e-pv-annotation-delete-icon e-pv-icon",className:"e-pv-annotation-delete-container",id:this.pdfViewer.element.id+"_annotation_delete",align:"right"}),n},i.prototype.goBackToToolbar=function(e){this.isMobileAnnotEnabled=!1,!t.Browser.isDevice&&this.pdfViewer.enableDesktopMode||"Polygon"===this.pdfViewerBase.action&&this.pdfViewerBase.tool.mouseUp(e,!0,!0),this.toolbarElement.children.length>0?this.toolbarElement.style.display="block":(this.toolbarCreated=!1,this.toolbar.destroy(),this.createAnnotationToolbarForMobile());var i=this.pdfViewerBase.getSelectTextMarkupCurrentPage();i&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.selectTextMarkupCurrentPage=null,this.pdfViewer.annotationModule.textMarkupAnnotationModule.clearAnnotationSelection(i))},i.prototype.createToolbarItems=function(){var e=this.getTemplate("button","_annotation_color","e-pv-annotation-color-container"),t=this.getTemplate("button","_annotation_stroke","e-pv-annotation-stroke-container"),i=this.getTemplate("button","_annotation_thickness","e-pv-annotation-thickness-container"),n=this.getTemplate("button","_annotation_opacity","e-pv-annotation-opacity-container"),o=this.getTemplate("button","_annotation_shapes","e-pv-annotation-shapes-container"),r=this.getTemplate("button","_annotation_calibrate","e-pv-annotation-calibrate-container"),a=this.getTemplate("span","_annotation_stamp","e-pv-annotation-stamp-container"),s=this.getTemplate("button","_annotation_fontname","e-pv-annotation-fontname-container"),l=this.getTemplate("button","_annotation_fontsize","e-pv-annotation-fontsize-container"),d=this.getTemplate("button","_annotation_textcolor","e-pv-annotation-textcolor-container"),A=this.getTemplate("button","_annotation_textalign","e-pv-annotation-textalign-container"),h=this.getTemplate("button","_annotation_textproperties","e-pv-annotation-textprop-container"),p=this.getTemplate("button","_annotation_signature","e-pv-annotation-handwritten-container"),c=[];return c.push({prefixIcon:"e-pv-highlight-icon e-pv-icon",className:"e-pv-highlight-container",id:this.pdfViewer.element.id+"_highlight",align:"Left"}),c.push({prefixIcon:"e-pv-underline-icon e-pv-icon",className:"e-pv-underline-container",id:this.pdfViewer.element.id+"_underline",align:"Left"}),c.push({prefixIcon:"e-pv-strikethrough-icon e-pv-icon",className:"e-pv-strikethrough-container",id:this.pdfViewer.element.id+"_strikethrough",align:"Left"}),c.push({prefixIcon:"e-pv-squiggly-icon e-pv-icon",className:"e-pv-squiggly-container",id:this.pdfViewer.element.id+"_squiggly",align:"Left"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-hightlight-separator-container"}),c.push({template:o,align:"Left",cssClass:"e-pv-shape-template-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-shape-separator-container"}),c.push({template:r,align:"Left",cssClass:"e-pv-calibrate-template-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-calibrate-separator-container"}),c.push({prefixIcon:"e-pv-freetext-icon e-pv-icon",className:"e-pv-annotation-freetextedit-container",id:this.pdfViewer.element.id+"_annotation_freeTextEdit",align:"Left"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-freetext-separator-container"}),c.push({template:a,align:"Left",cssClass:"e-pv-stamp-template-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-stamp-separator-container"}),c.push({template:p,align:"Left",cssClass:"e-pv-sign-template-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-sign-separator-container"}),c.push({prefixIcon:"e-pv-inkannotation-icon e-pv-icon",className:"e-pv-annotation-ink-container",id:this.pdfViewer.element.id+"_annotation_ink",align:"Left"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-ink-separator-container"}),c.push({template:s,align:"Left",cssClass:"e-pv-fontfamily-container"}),c.push({template:l,align:"Left",cssClass:"e-pv-fontsize-container"}),c.push({template:d,align:"Left",cssClass:"e-pv-text-color-container"}),c.push({template:A,align:"Left",cssClass:"e-pv-alignment-container"}),c.push({template:h,align:"Left",cssClass:"e-pv-text-properties-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-text-separator-container"}),c.push({template:e,align:"Left",cssClass:"e-pv-color-template-container"}),c.push({template:t,align:"Left",cssClass:"e-pv-stroke-template-container"}),c.push({template:i,align:"Left",cssClass:"e-pv-thickness-template-container"}),c.push({template:n,align:"Left",cssClass:"e-pv-opacity-template-container"}),c.push({type:"Separator",align:"Left",cssClass:"e-pv-opacity-separator-container"}),c.push({prefixIcon:"e-pv-annotation-delete-icon e-pv-icon",className:"e-pv-annotation-delete-container",id:this.pdfViewer.element.id+"_annotation_delete",align:"Left"}),c.push({prefixIcon:"e-pv-comment-panel-icon e-pv-icon",className:"e-pv-comment-panel-icon-container",id:this.pdfViewer.element.id+"_annotation_commentPanel",align:"Right"}),c.push({prefixIcon:"e-pv-annotation-tools-close-icon e-pv-icon",className:"e-pv-annotation-tools-close-container",id:this.pdfViewer.element.id+"_annotation_close",align:"Right"}),c},i.prototype.createSignContainer=function(){var e=this;this.handWrittenSignatureItem=this.pdfViewerBase.getElement("_annotation_signature"),this.primaryToolbar.createTooltip(this.pdfViewerBase.getElement("_annotation_signature"),this.pdfViewer.localeObj.getConstant("SignatureFieldDialogHeaderText")),this.handWrittenSignatureItem.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("SignatureFieldDialogHeaderText"));var i=this,n=[],o={items:n=this.pdfViewer.handWrittenSignatureSettings||0===this.pdfViewer.handWrittenSignatureSettings.signatureItem.length||2===this.pdfViewer.handWrittenSignatureSettings.signatureItem.length?[{text:"ADD SIGNATURE"},{separator:!0},{text:"ADD INITIAL"}]:"Signature"===this.pdfViewer.handWrittenSignatureSettings.signatureItem[0]?[{text:"ADD SIGNATURE"}]:[{text:"ADD INITIAL"}],iconCss:"e-pv-handwritten-icon e-pv-icon",cssClass:"e-pv-handwritten-popup",open:function(e){i.openSignature()},beforeItemRender:function(i){if(e.pdfViewer.annotation.triggerAnnotationUnselectEvent(),e.pdfViewer.annotation.triggerSignatureUnselectEvent(),e.pdfViewer.clearSelection(e.pdfViewerBase.currentPageNumber-1),i.element&&-1!==i.element.className.indexOf("e-separator")&&(i.element.style.margin="8px 0",i.element.setAttribute("role","menuitem"),i.element.setAttribute("aria-label","separator")),"ADD SIGNATURE"===i.item.text){i.element.innerHTML="",e.saveSignatureCount=0;for(r=e.pdfViewerBase.signatureModule.signaturecollection.length;r>0;r--)if(e.saveSignatureCount<e.pdfViewerBase.signatureModule.getSaveLimit(e.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit)){i.element.style.display="block";var n=(a=e.pdfViewerBase.signatureModule.signaturecollection[r-1]).image[0].imageData,o=a.image[0].id.split("_")[1];if(!a.isInitial&&""!==n){(s=t.createElement("div")).id="s"+o,s.style.display="block",s.style.paddingBottom="10px",(l=t.createElement("span")).id="sign_border_"+o,l.classList.add("e-pv-align-border");d=void 0;"SignatureText"===a.image[0].signatureType?((d=t.createElement("div")).classList.add("e-pv-align-border-div"),d.innerText=n,d.style.fontFamily=a.image[0].fontFamily,d.style.fontSize="15px",d.style.display="inline-flex",d.style.alignItems="center",d.style.position="relative",d.id="sign_"+o,d.style.width="80px",d.style.height="53px",d.style.overflow="hidden",d.style.textOverflow="ellipsis",d.style.paddingLeft="11px"):((d=t.createElement("img")).id="sign_"+o,d.src=n,d.width=80,d.height=32,d.classList.add("e-pv-signatureimage"),d.style.paddingLeft="20px",d.style.paddingRight="18px",d.style.paddingTop="12px",d.style.paddingBottom="12px",d.style.boxSizing="content-box",d.setAttribute("alt","Saved Signature")),d.addEventListener("mouseover",e.hoverSignatureImage.bind(e)),d.addEventListener("mouseleave",e.leaveSignatureImage.bind(e)),(A=t.createElement("span")).id="delete_"+o,A.classList.add("e-pv-delete"),A.classList.add("e-pv-align"),l.append(d),l.append(A),s.append(l),i.element.appendChild(s),i.element.style.pointerEvents="auto",i.element.style.background="none",e.pdfViewerBase.getElement("_annotation_signature-popup").style.width="206px",e.saveSignatureCount++}}(h=t.createElement("button")).classList.add("e-control","e-btn","e-lib","e-outline","e-primary"),h.textContent=e.pdfViewer.localeObj.getConstant("HandwrittenSignatureDialogHeaderText"),"en-US"===e.pdfViewer.locale?(h.style.minWidth="130px",h.style.width="auto"):h.style.width="auto",h.style.height="36px",h.addEventListener("click",e.clickSignature.bind(e)),i.element.appendChild(h),i.element.addEventListener("mouseover",e.hoverInitialBtn.bind(e)),i.element.style.minWidth="206px",i.element.style.width="auto",i.element.style.display="flex",i.element.style.flexDirection="column",i.element.style.height="auto",i.element.style.alignItems="center",i.element.setAttribute("role","menuitem")}if("ADD INITIAL"===i.item.text){e.saveInitialCount=0,i.element.innerHTML="";for(var r=e.pdfViewerBase.signatureModule.signaturecollection.length;r>0;r--)if(e.saveInitialCount<e.pdfViewerBase.signatureModule.getSaveLimit(e.pdfViewer.handWrittenSignatureSettings.saveInitialLimit)){var a=e.pdfViewerBase.signatureModule.signaturecollection[r-1],n=a.image[0].imageData,o=a.image[0].id.split("_")[1];if(a.isInitial&&""!==n){var s=t.createElement("div");s.id="s"+o,s.style.display="block",s.style.paddingBottom="10px";var l=t.createElement("span");l.id="sign_border_"+o,l.classList.add("e-pv-align-border");var d=void 0;"SignatureText"===a.image[0].signatureType?((d=t.createElement("div")).classList.add("e-pv-align-border-div"),d.innerText=n,d.style.fontFamily=a.image[0].fontFamily,d.style.fontSize="15px",d.style.display="inline-flex",d.style.alignItems="center",d.style.position="relative",d.id="sign_"+o,d.style.width="80px",d.style.height="53px",d.style.overflow="hidden",d.style.textOverflow="ellipsis",d.style.paddingLeft="11px"):((d=t.createElement("img")).id="sign_"+o,d.src=n,d.width=80,d.height=32,d.classList.add("e-pv-signatureimage"),d.style.paddingLeft="20px",d.style.paddingRight="18px",d.style.paddingTop="12px",d.style.paddingBottom="12px",d.style.boxSizing="content-box",d.setAttribute("alt","Saved Initial")),d.addEventListener("mouseover",e.hoverSignatureImage.bind(e)),d.addEventListener("mouseleave",e.leaveSignatureImage.bind(e)),d.width=80,d.height=32;var A=t.createElement("span");A.id="delete_"+o,A.classList.add("e-pv-delete"),A.classList.add("e-pv-align"),l.append(d),l.append(A),s.append(l),i.element.appendChild(s),i.element.style.pointerEvents="auto",i.element.style.background="none",e.pdfViewerBase.getElement("_annotation_signature-popup").style.width="206px",e.saveInitialCount++}}e.isSignatureIteam=!1;var h=t.createElement("button");h.classList.add("e-control","e-btn","e-lib","e-outline","e-primary"),h.textContent=e.pdfViewer.localeObj.getConstant("HandwrittenInitialDialogHeaderText"),"en-US"===e.pdfViewer.locale?(h.style.minWidth="130px",h.style.width="auto"):h.style.width="auto",h.style.height="36px",h.addEventListener("click",e.clickInitial.bind(e)),i.element.appendChild(h),i.element.addEventListener("mouseover",e.hoverInitialBtn.bind(e)),i.element.style.minWidth="206px",i.element.style.width="auto",i.element.style.display="flex",i.element.style.flexDirection="column",i.element.style.height="auto",i.element.style.alignItems="center",i.element.setAttribute("role","menuitem")}},select:function(t){e.pdfViewer.clearSelection(e.pdfViewerBase.currentPageNumber-1)}},a=new r.DropDownButton(o);this.pdfViewer.enableRtl&&(a.enableRtl=this.pdfViewer.enableRtl),a.appendTo(this.handWrittenSignatureItem)},i.prototype.updateSignatureCount=function(){this.openSignaturePopup=!1;for(var e=this.pdfViewerBase.signatureModule.signaturecollection,t=0;t<e.length;t++)e[parseInt(t.toString(),10)].image[0].imageData},i.prototype.openSignature=function(){this.saveInitialCount=0,this.saveSignatureCount=0;for(e=this.pdfViewerBase.signatureModule.signaturecollection.length;e>0;e--)if(this.saveSignatureCount<this.pdfViewerBase.signatureModule.getSaveLimit(this.pdfViewer.handWrittenSignatureSettings.saveSignatureLimit)&&""!==(t=this.pdfViewerBase.signatureModule.signaturecollection[e-1]).image[0].imageData&&!t.isInitial){this.saveSignatureCount++;i=document.getElementById("sign_border_"+t.image[0].id.split("_")[1]);(n=document.getElementById("delete_"+t.image[0].id.split("_")[1])).style.backgroundClip="content-box",i.addEventListener("click",this.renderAddedSignature.bind(this)),n.addEventListener("click",this.deleteSavedSign.bind(this)),n.addEventListener("mouseover",this.hoverSignatureDelete.bind(this)),n.addEventListener("mouseleave",this.leaveSignatureDelete.bind(this)),i.addEventListener("mouseover",this.hoverSignatureDelete.bind(this)),i.addEventListener("mouseleave",this.leaveSignatureDelete.bind(this))}for(var e=this.pdfViewerBase.signatureModule.signaturecollection.length;e>0;e--)if(this.saveInitialCount<this.pdfViewerBase.signatureModule.getSaveLimit(this.pdfViewer.handWrittenSignatureSettings.saveInitialLimit)){var t=this.pdfViewerBase.signatureModule.signaturecollection[e-1];if(""!==t.image[0].imageData&&t.isInitial){this.saveInitialCount++;var i=document.getElementById("sign_border_"+t.image[0].id.split("_")[1]),n=document.getElementById("delete_"+t.image[0].id.split("_")[1]);n.style.backgroundClip="content-box",i.addEventListener("click",this.renderAddedSignature.bind(this)),n.addEventListener("click",this.deleteSavedSign.bind(this)),n.addEventListener("mouseover",this.hoverSignatureDelete.bind(this)),n.addEventListener("mouseleave",this.leaveSignatureDelete.bind(this)),i.addEventListener("mouseover",this.hoverSignatureDelete.bind(this)),i.addEventListener("mouseleave",this.leaveSignatureDelete.bind(this))}}},i.prototype.hoverSignatureDelete=function(){var e=event.target;(e.id==="sign_"+e.id.split("_")[1]||e.classList.contains("e-pv-delete"))&&(e.classList.add("e-pv-signaturehover"),e.style.cursor="pointer")},i.prototype.hoverInitialBtn=function(e){var i=e.target,n="";if((n=-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident")?i.id:t.isNullOrUndefined(e.path)?e.composedPath()[0].id:e.path[0].id)!=="sign_"+n.split("_")[1]&&n!=="delete_"+n.split("_")[1]){var o=document.getElementById(i.id);t.isNullOrUndefined(o)&&(o=document.getElementById(i.parentElement.id)),null==o||i.id==="sign_"+i.id.split("_")[1]&&i.id==="sign_border_"+i.id.split("_")[2]?null==o.parentElement||i.id==="sign_"+i.id.split("_")[1]&&i.id==="sign_border_"+i.id.split("_")[2]||(o.parentElement.style.background="transparent",o.parentElement.style.cursor="default"):(o.style.background="transparent",o.style.cursor="default")}},i.prototype.hoverSignatureImage=function(){var e=event.target;(e.id==="sign_"+e.id.split("_")[1]||e.classList.contains("e-pv-delete"))&&(e.classList.add("e-pv-signaturehover"),e.classList.remove("e-pv-signatureimage"),e.style.cursor="pointer")},i.prototype.leaveSignatureDelete=function(){var e=event.target;(e.id==="sign_"+e.id.split("_")[1]||e.classList.contains("e-pv-delete"))&&(e.classList.remove("e-pv-signaturehover"),e.children[0]&&"IMG"===e.children[0].tagName&&e.children[0].classList.remove("e-pv-signaturehover"),e.style.cursor="default")},i.prototype.clickSignature=function(){this.pdfViewerBase.isInitialField=!1,this.addSignature()},i.prototype.clickInitial=function(){this.pdfViewerBase.isInitialField=!0,this.addSignature()},i.prototype.leaveSignatureImage=function(){var e=event.target;(e.id==="sign_"+e.id.split("_")[1]||e.classList.contains("e-pv-delete"))&&(e.classList.remove("e-pv-signaturehover"),"IMG"===e.tagName&&e.classList.add("e-pv-signatureimage"),e.children[0]&&"IMG"===e.children[0].tagName&&(e.children[0].classList.remove("e-pv-signaturehover"),e.children[0].classList.add("e-pv-signatureimage")),e.style.cursor="default")},i.prototype.addSignature=function(){this.deselectAllItems(),this.deselectAllItemsForMobile(),this.showSignaturepanel()},i.prototype.renderAddedSignature=function(){this.pdfViewerBase.isAddedSignClicked=!0,this.isSavedSignatureClicked=!0,this.pdfViewerBase.signatureModule.RenderSavedSignature()},i.prototype.deleteSavedSign=function(e){e.stopPropagation();for(var t=this.pdfViewerBase.signatureModule.signaturecollection,i=t.length;i>0;i--)if(e.target.parentElement.children[0].id==="sign_"+t[i-1].image[0].id.split("_")[1]){t[i-1].image[0].imageData="",this.pdfViewerBase.signatureModule.signaturecollection.splice(i-1,1);break}e.target.parentElement.remove()},i.prototype.getTemplate=function(e,i,n){var o=t.createElement(e,{id:this.pdfViewer.element.id+i});return n&&(o.className=n),o.outerHTML},i.prototype.createStampContainer=function(){var i=this;this.stampElement=this.pdfViewerBase.getElement("_annotation_stamp"),this.primaryToolbar.createTooltip(this.pdfViewerBase.getElement("_annotation_stamp"),this.pdfViewer.localeObj.getConstant("Add Stamp")),this.stampElement.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Add Stamp")),this.stampElement.setAttribute("role","combobox"),this.stampElement.setAttribute("aria-expanded","false");var n=t.createElement("ul",{id:this.pdfViewer.element.id+"contextMenuElement"});this.pdfViewerBase.getElement("_annotation_stamp").appendChild(n);var o=[];if(this.pdfViewer.stampSettings){if((t.isNullOrUndefined(this.pdfViewer.stampSettings.dynamicStamps)||0===this.pdfViewer.stampSettings.dynamicStamps.length)&&(this.pdfViewer.stampSettings.dynamicStamps=[e.DynamicStampItem.Revised,e.DynamicStampItem.Reviewed,e.DynamicStampItem.Received,e.DynamicStampItem.Confidential,e.DynamicStampItem.Approved,e.DynamicStampItem.NotApproved]),this.pdfViewer.stampSettings.dynamicStamps&&this.pdfViewer.stampSettings.dynamicStamps.length>0){var r=[];o.push({text:this.pdfViewer.localeObj.getConstant("Dynamic"),label:"Dynamic",items:r}),this.pdfViewer.stampSettings.dynamicStamps.forEach(function(t,n){var o=e.DynamicStampItem[t];switch(o){case"NotApproved":o="Not Approved"}r.push({text:i.pdfViewer.localeObj.getConstant(o),label:o})})}if((t.isNullOrUndefined(this.pdfViewer.stampSettings.signStamps)||0===this.pdfViewer.stampSettings.signStamps.length)&&(this.pdfViewer.stampSettings.signStamps=[e.SignStampItem.Witness,e.SignStampItem.InitialHere,e.SignStampItem.SignHere,e.SignStampItem.Accepted,e.SignStampItem.Rejected]),this.pdfViewer.stampSettings.signStamps&&this.pdfViewer.stampSettings.signStamps.length>0){var a=[];o.push({text:this.pdfViewer.localeObj.getConstant("Sign Here"),label:"Sign Here",items:a}),this.pdfViewer.stampSettings.signStamps.forEach(function(t,n){var o=e.SignStampItem[t];switch(o){case"InitialHere":o="Initial Here";break;case"SignHere":o="Sign Here"}a.push({text:i.pdfViewer.localeObj.getConstant(o),label:o})})}if((t.isNullOrUndefined(this.pdfViewer.stampSettings.standardBusinessStamps)||0===this.pdfViewer.stampSettings.standardBusinessStamps.length)&&(this.pdfViewer.stampSettings.standardBusinessStamps=[e.StandardBusinessStampItem.Approved,e.StandardBusinessStampItem.NotApproved,e.StandardBusinessStampItem.Draft,e.StandardBusinessStampItem.Final,e.StandardBusinessStampItem.Completed,e.StandardBusinessStampItem.Confidential,e.StandardBusinessStampItem.ForPublicRelease,e.StandardBusinessStampItem.NotForPublicRelease,e.StandardBusinessStampItem.ForComment,e.StandardBusinessStampItem.Void,e.StandardBusinessStampItem.PreliminaryResults,e.StandardBusinessStampItem.InformationOnly]),this.pdfViewer.stampSettings.standardBusinessStamps&&this.pdfViewer.stampSettings.standardBusinessStamps.length>0){var l=[];o.push({text:this.pdfViewer.localeObj.getConstant("Standard Business"),label:"Standard Business",items:l}),this.pdfViewer.stampSettings.standardBusinessStamps.forEach(function(t,n){var o=e.StandardBusinessStampItem[t];switch(o){case"NotApproved":o="Not Approved";break;case"ForPublicRelease":o="For Public Release";break;case"NotForPublicRelease":o="Not For Public Release";break;case"ForComment":o="For Comment";break;case"PreliminaryResults":o="Preliminary Results";break;case"InformationOnly":o="Information Only"}l.push({text:i.pdfViewer.localeObj.getConstant(o),label:o})})}}t.isNullOrUndefined(this.pdfViewer.customStampSettings)||!this.pdfViewer.customStampSettings.enableCustomStamp&&!t.isNullOrUndefined(this.pdfViewer.customStampSettings.enableCustomStamp)||(o.length>0&&o.push({separator:!0}),o.push({text:this.pdfViewer.localeObj.getConstant("Custom Stamp"),label:"Custom Stamp",items:[]}),this.pdfViewerBase.customStampCollection=this.pdfViewer.customStampSettings.customStamps?this.pdfViewer.customStampSettings.customStamps:[]),this.stampMenu=[{iconCss:"e-pv-stamp-icon e-pv-icon",items:o}];var d={items:this.stampMenu,cssClass:"e-custom-scroll",showItemOnClick:!0,enableScrolling:!0,beforeOpen:function(e){if(i.resetFreeTextAnnot(),""===e.parentItem.text&&i.pdfViewer.customStampSettings.isAddToMenu&&e.items.length>0){for(var n=null,o=0;o<e.items.length;o++)if(e.items[parseInt(o.toString(),10)].text===i.pdfViewer.localeObj.getConstant("Custom Stamp")){e.items[parseInt(o.toString(),10)].items=[],n=e.items[parseInt(o.toString(),10)];break}var r=i.pdfViewerBase.customStampCollection,a=i.pdfViewer.customStampSettings.customStamps;if(0===r.length&&a&&a.length>0)for(var s=0;s<a.length;s++)r.push({customStampName:a[parseInt(s.toString(),10)].customStampName,customStampImageSource:a[parseInt(s.toString(),10)].customStampImageSource});for(var l=0;l<r.length;l++)if(null!=n){n.items.push({text:r[parseInt(l.toString(),10)].customStampName});for(o=0;o<e.items.length;o++)if(e.items[parseInt(o.toString(),10)].text===i.pdfViewer.localeObj.getConstant("Custom Stamp")){var d=e.element.children[parseInt(o.toString(),10)];if(d&&!d.childElementCount){var A=document.createElement("span");A.className="e-icons e-caret e-menu-caret-icon",d.appendChild(A),d.setAttribute("aria-haspopup","true"),d.setAttribute("aria-expanded","fal
10se")}}}}e.parentItem.text===i.pdfViewer.localeObj.getConstant("Custom Stamp")&&(a=i.pdfViewer.customStampSettings.customStamps)&&a.length>10&&(t.closest(e.element,".e-menu-wrapper").style.height="350px"),i.stampParentID=e.parentItem.text,i.menuItems.showItemOnClick=!1},beforeClose:function(e){(e.parentItem&&e.parentItem.text!==i.pdfViewer.localeObj.getConstant("Custom Stamp")&&"Standard Business"!==e.parentItem.text&&"Dynamic"!==e.parentItem.text&&"Sign Here"!==e.parentItem.text||!e.parentItem)&&(i.menuItems.showItemOnClick=!0)},select:function(e){if(i.pdfViewerBase.isAlreadyAdded=!1,e.item.text===i.pdfViewer.localeObj.getConstant("Custom Stamp")){i.updateInteractionTools(),i.checkStampAnnotations(),i.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0;var n=document.getElementById(i.pdfViewer.element.id+"_stampElement");n&&n.click(),i.pdfViewer.annotation.triggerAnnotationUnselectEvent(),i.pdfViewer.annotation.triggerSignatureUnselectEvent()}else if(i.stampParentID===i.pdfViewer.localeObj.getConstant("Custom Stamp")&&""!==e.item.text)for(var o=i.pdfViewerBase.customStampCollection,r=0;r<o.length;r++)o[parseInt(r.toString(),10)].customStampName===e.item.text&&(i.pdfViewer.annotationModule.stampAnnotationModule.customStampName=e.item.text,i.checkStampAnnotations(),i.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,i.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,i.pdfViewerBase.stampAdded=!0,i.pdfViewerBase.isAlreadyAdded=!0,i.pdfViewer.annotationModule.stampAnnotationModule.createCustomStampAnnotation(o[parseInt(r.toString(),10)].customStampImageSource),i.pdfViewerBase.stampAdded=!1);else e.item.text===i.pdfViewer.localeObj.getConstant("Dynamic")||""===e.item.text||"Standard Business"===e.item.text||"Sign Here"!==i.stampParentID&&"Sign Here"===e.item.text||(i.updateInteractionTools(),i.checkStampAnnotations(),i.pdfViewer.annotation.stampAnnotationModule.isStampAddMode=!0,i.pdfViewer.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,i.pdfViewerBase.stampAdded=!0,i.pdfViewer.annotation.triggerAnnotationUnselectEvent(),i.pdfViewer.annotation.triggerSignatureUnselectEvent(),i.stampParentID===i.pdfViewer.localeObj.getConstant("Dynamic")?(i.pdfViewerBase.isDynamicStamp=!0,i.pdfViewer.annotationModule.stampAnnotationModule.retrieveDynamicStampAnnotation(e.item.label)):(i.pdfViewerBase.isDynamicStamp=!1,i.pdfViewer.annotationModule.stampAnnotationModule.retrievestampAnnotation(e.item.label)),t.Browser.isDevice&&i.stampToolMobileForMobile(i.pdfViewer.element.id+"_annotation_stamp"))}};return this.menuItems=new s.Menu(d,"#"+this.pdfViewer.element.id+"contextMenuElement"),n.parentElement.classList.add("e-pv-stamp"),this.pdfViewer.enableRtl&&(this.menuItems.enableRtl=!0),n},i.prototype.createCustomStampElement=function(){var e=t.createElement("input",{id:this.pdfViewer.element.id+"_stampElement",attrs:{type:"file"}});e.setAttribute("accept",".jpg,.jpeg,.png"),e.style.position="absolute",e.style.left="0px",e.style.top="0px",e.style.visibility="hidden",document.body.appendChild(e),e.addEventListener("change",this.addStampImage)},i.prototype.checkStampAnnotations=function(){if(this.pdfViewer.annotation.stampAnnotationModule.isStampAddMode&&this.pdfViewer.selectedItems&&this.pdfViewer.selectedItems.annotations)for(var e=0;e<this.pdfViewer.selectedItems.annotations.length;e++){var t=this.pdfViewer.selectedItems.annotations[parseInt(e.toString(),10)];!t||t.annotName||t.author||"Shape"===t.shapeAnnotationType&&"Image"===t.shapeAnnotationType||(this.pdfViewer.remove(t),this.pdfViewer.annotation.renderAnnotations(t.pageIndex,null,null,null),this.pdfViewer.clearSelection(t.pageIndex))}},i.prototype.createDropDowns=function(e){var i=this;if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){this.shapeElement=this.pdfViewerBase.getElement("_annotation_shapes");var n=this.createShapeOptions(this.shapeElement.id,!0);this.shapeDropDown=this.createDropDownButton(this.shapeElement,"e-pv-annotation-shape-icon",n.element,this.pdfViewer.localeObj.getConstant("Add Shapes")),this.calibrateElement=this.pdfViewerBase.getElement("_annotation_calibrate");var o=this.createShapeOptions(this.calibrateElement.id,!1);this.calibrateDropDown=this.createDropDownButton(this.calibrateElement,"e-pv-annotation-calibrate-icon",o.element,this.pdfViewer.localeObj.getConstant("Calibrate"))}if(e||(this.colorDropDownElement=this.pdfViewerBase.getElement("_annotation_color"),this.colorPalette=this.createColorPicker(this.colorDropDownElement.id),this.colorPalette.change=this.onColorPickerChange.bind(this),this.colorDropDown=this.createDropDownButton(this.colorDropDownElement,"e-pv-annotation-color-icon",this.colorPalette.element.parentElement,this.pdfViewer.localeObj.getConstant("Color edit")),this.colorDropDown.beforeOpen=this.colorDropDownBeforeOpen.bind(this),this.colorDropDown.open=this.colorDropDownOpen.bind(this),this.pdfViewerBase.getElement("_annotation_color-popup").addEventListener("click",this.onColorPickerCancelClick.bind(this))),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){this.strokeDropDownElement=this.pdfViewerBase.getElement("_annotation_stroke"),this.strokeColorPicker=this.createColorPicker(this.strokeDropDownElement.id),this.strokeColorPicker.change=this.onStrokePickerChange.bind(this),this.strokeDropDown=this.createDropDownButton(this.strokeDropDownElement,"e-pv-annotation-stroke-icon",this.strokeColorPicker.element.parentElement,this.pdfViewer.localeObj.getConstant("Stroke edit")),this.strokeDropDown.beforeOpen=this.strokeDropDownBeforeOpen.bind(this),this.strokeDropDown.open=this.strokeDropDownOpen.bind(this),this.pdfViewerBase.getElement("_annotation_stroke-popup").addEventListener("click",this.onStrokePickerCancelClick.bind(this)),this.thicknessElement=this.pdfViewerBase.getElement("_annotation_thickness");var r=this.createThicknessSlider(this.thicknessElement.id);this.thicknessDropDown=this.createDropDownButton(this.thicknessElement,"e-pv-annotation-thickness-icon",r,this.pdfViewer.localeObj.getConstant("Change thickness")),this.thicknessDropDown.beforeOpen=this.thicknessDropDownBeforeOpen.bind(this),this.thicknessSlider.change=this.thicknessChange.bind(this),this.thicknessSlider.changed=this.thicknessChange.bind(this),this.pdfViewer.enableRtl||(this.thicknessDropDown.open=this.thicknessDropDownOpen.bind(this))}if(!e){this.opacityDropDownElement=this.pdfViewerBase.getElement("_annotation_opacity");var a=this.createSlider(this.opacityDropDownElement.id);this.opacityDropDown=this.createDropDownButton(this.opacityDropDownElement,"e-pv-annotation-opacity-icon",a,this.pdfViewer.localeObj.getConstant("Opacity edit")),this.opacityDropDown.beforeOpen=this.opacityDropDownBeforeOpen.bind(this),this.opacitySlider.change=this.opacityChange.bind(this),this.opacitySlider.changed=this.opacityChange.bind(this),this.pdfViewer.enableRtl||(this.opacityDropDown.open=this.opacityDropDownOpen.bind(this))}t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.fontFamilyElement=this.pdfViewerBase.getElement("_annotation_fontname"),this.createDropDownListForFamily(this.fontFamilyElement),this.fontFamilyElement.addEventListener("change",function(){i.onFontFamilyChange.bind(i)}),this.fontSizeElement=this.pdfViewerBase.getElement("_annotation_fontsize"),this.createDropDownListForSize(this.fontSizeElement),this.fontColorElement=this.pdfViewerBase.getElement("_annotation_textcolor"),this.fontColorPalette=this.createColorPicker(this.fontColorElement.id),this.fontColorPalette.change=this.onFontColorChange.bind(this),this.fontColorDropDown=this.createDropDownButton(this.fontColorElement,"e-pv-annotation-textcolor-icon",this.fontColorPalette.element.parentElement,this.pdfViewer.localeObj.getConstant("Font color")),this.textAlignElement=this.pdfViewerBase.getElement("_annotation_textalign"),this.alignmentToolbar=this.createShapeOptions(this.textAlignElement.id,void 0,!0),this.textAlignDropDown=this.createDropDownButton(this.textAlignElement,"e-pv-annotation-textalign-icon",this.alignmentToolbar.element,this.pdfViewer.localeObj.getConstant("Text Align")),this.textAlignDropDown.beforeOpen=this.textAlignDropDownBeforeOpen.bind(this),this.textPropElement=this.pdfViewerBase.getElement("_annotation_textproperties"),this.propertiesToolbar=this.createShapeOptions(this.textPropElement.id,void 0,!1,!0),this.textPropertiesDropDown=this.createPropDropDownButton(this.textPropElement,"e-pv-annotation-textprop-icon",this.propertiesToolbar.element,this.pdfViewer.localeObj.getConstant("Text Properties")),this.textPropertiesDropDown.beforeOpen=this.textPropertiesDropDownBeforeOpen.bind(this))},i.prototype.mobileColorpicker=function(e){var t=this;this.opacityDropDownElement=this.pdfViewerBase.getElement("_annotation_opacity");var i=this.createSlider(this.opacityDropDownElement.id);if(this.opacityDropDown=this.createDropDownButton(this.opacityDropDownElement,"e-pv-annotation-opacity-icon",i,this.pdfViewer.localeObj.getConstant("Opacity edit")),this.opacityDropDown.beforeOpen=this.opacityDropDownBeforeOpen.bind(this),this.opacitySlider.change=this.opacityChange.bind(this),this.opacitySlider.changed=this.opacityChange.bind(this),this.pdfViewer.enableRtl||(this.opacityDropDown.open=this.opacityDropDownOpen.bind(this)),e===this.pdfViewer.element.i
vendor: 29,584 bytes, line 10
10d+"_annotation_shapes"?e=this.pdfViewer.element.id+"_annotation_shapesIcon":e===this.pdfViewer.element.id+"_annotation_calibrate"?e=this.pdfViewer.element.id+"_annotation_calibrateIcon":e===this.pdfViewer.element.id+"_highlight"?e=this.pdfViewer.element.id+"_highlightIcon":e===this.pdfViewer.element.id+"_underline"?e=this.pdfViewer.element.id+"_underlineIcon":e===this.pdfViewer.element.id+"_strikethrough"?e=this.pdfViewer.element.id+"_strikethroughIcon":e===this.pdfViewer.element.id+"_squiggly"&&(e=this.pdfViewer.element.id+"_squigglyIcon"),(e===this.pdfViewer.element.id+"_annotation_shapesIcon"||e===this.pdfViewer.element.id+"_annotation_calibrateIcon"||e===this.pdfViewer.element.id+"_annotation_freeTextEdit"||e===this.pdfViewer.element.id+"_highlightIcon"||e===this.pdfViewer.element.id+"_underlineIcon"||e===this.pdfViewer.element.id+"_strikethroughIcon"||e===this.pdfViewer.element.id+"_squigglyIcon"||e===this.pdfViewer.element.id+"_annotation_inkIcon"||e===this.pdfViewer.element.id+"_annotation_handwrittenSign")&&(e!==this.pdfViewer.element.id+"_annotation_handwrittenSign"&&e!==this.pdfViewer.element.id+"_annotation_inkIcon"&&(this.colorDropDownElement=this.pdfViewerBase.getElement("_annotation_color"),this.colorPalette=this.createColorPicker(this.colorDropDownElement.id),this.colorPalette.change=this.onColorPickerChange.bind(this),this.colorDropDown=this.createDropDownButton(this.colorDropDownElement,"e-pv-annotation-color-icon",this.colorPalette.element.parentElement,this.pdfViewer.localeObj.getConstant("Color edit")),this.colorDropDown.beforeOpen=this.colorDropDownBeforeOpen.bind(this),this.colorDropDown.open=this.colorDropDownOpen.bind(this),this.pdfViewerBase.getElement("_annotation_color-popup").addEventListener("click",this.onColorPickerCancelClick.bind(this))),e===this.pdfViewer.element.id+"_annotation_freeTextEdit"&&(this.fontFamilyElement=this.pdfViewerBase.getElement("_annotation_fontname"),this.createDropDownListForFamily(this.fontFamilyElement),this.fontFamilyElement.style.textAlign="left",this.fontFamilyElement.addEventListener("change",function(){t.onFontFamilyChange.bind(t)}),this.fontSizeElement=this.pdfViewerBase.getElement("_annotation_fontsize"),this.createDropDownListForSize(this.fontSizeElement),this.fontColorElement=this.pdfViewerBase.getElement("_annotation_textcolor"),this.fontColorPalette=this.createColorPicker(this.fontColorElement.id),this.fontColorPalette.change=this.onFontColorChange.bind(this),this.fontColorDropDown=this.createDropDownButton(this.fontColorElement,"e-pv-annotation-textcolor-icon",this.fontColorPalette.element.parentElement,this.pdfViewer.localeObj.getConstant("Font color")),this.textAlignElement=this.pdfViewerBase.getElement("_annotation_textalign"),this.alignmentToolbar=this.createShapeOptions(this.textAlignElement.id,void 0,!0),this.textAlignDropDown=this.createDropDownButton(this.textAlignElement,"e-pv-annotation-textalign-icon",this.alignmentToolbar.element,this.pdfViewer.localeObj.getConstant("Text Align")),this.textAlignDropDown.beforeOpen=this.textAlignDropDownBeforeOpen.bind(this),this.textPropElement=this.pdfViewerBase.getElement("_annotation_textproperties"),this.propertiesToolbar=this.createShapeOptions(this.textPropElement.id,void 0,!1,!0),this.textPropertiesDropDown=this.createPropDropDownButton(this.textPropElement,"e-pv-annotation-textprop-icon",this.propertiesToolbar.element,this.pdfViewer.localeObj.getConstant("Text Properties")),this.textPropertiesDropDown.beforeOpen=this.textPropertiesDropDownBeforeOpen.bind(this)),e===this.pdfViewer.element.id+"_annotation_shapesIcon"||e===this.pdfViewer.element.id+"_annotation_calibrateIcon"||e===this.pdfViewer.element.id+"_annotation_freeTextEdit"||e===this.pdfViewer.element.id+"_annotation_inkIcon"||e===this.pdfViewer.element.id+"_annotation_handwrittenSign")){this.thicknessElement=this.pdfViewerBase.getElement("_annotation_thickness");var n=this.createThicknessSlider(this.thicknessElement.id);this.thicknessDropDown=this.createDropDownButton(this.thicknessElement,"e-pv-annotation-thickness-icon",n,this.pdfViewer.localeObj.getConstant("Change thickness")),this.thicknessDropDown.beforeOpen=this.thicknessDropDownBeforeOpen.bind(this),this.thicknessSlider.change=this.thicknessChange.bind(this),this.thicknessSlider.changed=this.thicknessChange.bind(this),this.pdfViewer.enableRtl||(this.thicknessDropDown.open=this.thicknessDropDownOpen.bind(this)),this.strokeDropDownElement=this.pdfViewerBase.getElement("_annotation_stroke"),this.strokeColorPicker=this.createColorPicker(this.strokeDropDownElement.id),this.strokeColorPicker.change=this.onStrokePickerChange.bind(this),this.strokeDropDown=this.createDropDownButton(this.strokeDropDownElement,"e-pv-annotation-stroke-icon",this.strokeColorPicker.element.parentElement,this.pdfViewer.localeObj.getConstant("Stroke edit")),this.strokeDropDown.beforeOpen=this.strokeDropDownBeforeOpen.bind(this),this.strokeDropDown.open=this.strokeDropDownOpen.bind(this),this.pdfViewerBase.getElement("_annotation_stroke-popup").addEventListener("click",this.onStrokePickerCancelClick.bind(this))}},i.prototype.opacityDropDownOpen=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?(e.element.parentElement.style.left="0px",e.element.parentElement.style.top=this.pdfViewerBase.viewerContainer.clientHeight+"px"):this.calculateToolbarPosition(e)},i.prototype.onColorPickerCancelClick=function(e){e.target.classList.contains("e-cancel")&&this.colorDropDown.toggle()},i.prototype.onStrokePickerCancelClick=function(e){e.target.classList.contains("e-cancel")&&this.strokeDropDown.toggle()},i.prototype.colorDropDownBeforeOpen=function(e){this.colorPalette.noColor=!1,this.pdfViewer.annotationModule.textMarkupAnnotationModule&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.colorPalette.value=this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation.color:this.setCurrentColorInPicker()),1===this.pdfViewer.selectedItems.annotations.length?(this.colorPalette.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.fill,this.colorPalette.noColor=!0):this.setCurrentColorInPicker(),this.colorPalette.refresh(),this.updateColorInIcon(this.colorDropDownElement,this.colorPalette.value)},i.prototype.setCurrentColorInPicker=function(){if(!t.isBlazor()){if(this.pdfViewer.annotationModule.textMarkupAnnotationModule)switch(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode){case"Highlight":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightColor);break;case"Underline":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineColor);break;case"Strikethrough":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughColor);break;case"Squiggly":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyColor)}if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotationModule.shapeAnnotationModule.currentAnnotationMode){case"Line":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.shapeAnnotationModule.lineFillColor);break;case"Arrow":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.shapeAnnotationModule.arrowFillColor);break;case"Rectangle":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.shapeAnnotationModule.rectangleFillColor);break;case"Circle":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.shapeAnnotationModule.circleFillColor);break;case"Polygon":this.setColorInPicker(this.colorPalette,this.pdfViewer.annotationModule.shapeAnnotationModule.polygonFillColor)}this.colorDropDownElement&&this.updateColorInIcon(this.colorDropDownElement,this.colorPalette.value)}},i.prototype.colorDropDownOpen=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(e.element.parentElement.style.top=this.pdfViewerBase.viewerContainer.clientHeight/2+"px"),this.popupPosition(e,this.colorDropDownElement),this.colorPalette.refresh()},i.prototype.strokeDropDownBeforeOpen=function(e){1===this.pdfViewer.selectedItems.annotations.length?this.strokeColorPicker.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor:this.setCurrentStrokeColorInPicker(),this.strokeColorPicker.refresh(),this.updateColorInIcon(this.strokeDropDownElement,this.strokeColorPicker.value),this.updateInkannotationItems()},i.prototype.setCurrentStrokeColorInPicker=function(){if(!t.isBlazor()&&this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotationModule.shapeAnnotationModule.currentAnnotationMode){case"Line":this.setColorInPicker(this.strokeColorPicker,this.pdfViewer.annotationModule.shapeAnnotationModule.lineStrokeColor);break;case"Arrow":this.setColorInPicker(this.strokeColorPicker,this.pdfViewer.annotationModule.shapeAnnotationModule.arrowStrokeColor);break;case"Rectangle":this.setColorInPicker(this.strokeColorPicker,this.pdfViewer.annotationModule.shapeAnnotationModule.rectangleStrokeColor);break;case"Circle":this.setColorInPicker(this.strokeColorPicker,this.pdfViewer.annotationModule.shapeAnnotationModule.circleStrokeColor);break;case"Polygon":this.setColorInPicker(this.strokeColorPicker,this.pdfViewer.annotationModule.shapeAnnotationModule.polygonStrokeColor)}},i.prototype.strokeDropDownOpen=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(e.element.parentElement.style.top=this.pdfViewerBase.viewerContainer.clientHeight/2+"px"),this.popupPosition(e,this.strokeDropDownElement),this.strokeColorPicker.refresh()},i.prototype.onFontColorChange=function(e){var i;i=t.isBlazor()?e[0]:""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,1===this.pdfViewer.selectedItems.annotations.length?this.pdfViewer.annotation.modifyFontColor(i):(this.pdfViewer.freeTextSettings.fontColor=i,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()),t.isBlazor()?(this.fontColorElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-textcolor-container"),this.updateColorInIcon(this.fontColorElementInBlazor,i)):(this.updateColorInIcon(this.fontColorElement,i),this.fontColorDropDown.toggle())},i.prototype.onFontFamilyChange=function(e){var i;i=t.isBlazor()?e:e&&e.fontFamily&&e.fontFamily.value?e.fontFamily.value:"",1===this.pdfViewer.selectedItems.annotations.length&&i?this.pdfViewer.annotation.modifyFontFamily(i):(this.pdfViewer.freeTextSettings.fontFamily=i,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties())},i.prototype.onFontSizeChange=function(e,i){var n;n=t.isBlazor()?e:e&&e.fontSize&&e.fontSize.value?e.fontSize.value:"";var o=parseFloat(n);if(1===this.pdfViewer.selectedItems.annotations.length&&n){var r=this.pdfViewer.selectedItems.annotations[0].id,a=this.pdfViewer.annotationCollection.filter(function(e){return e.uniqueKey===r})[0];a&&a.fontSize!==o&&this.pdfViewer.annotation.modifyFontSize(o,i)}else this.pdfViewer.freeTextSettings.fontSize=o,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()},i.prototype.textAlignDropDownBeforeOpen=function(e){if(1===this.pdfViewer.selectedItems.annotations.length&&e.element.getElementsByTagName("button")&&e.element.getElementsByTagName("button").length>0)for(var t=e.element.getElementsByTagName("button"),i=this.pdfViewer.selectedItems.annotations[0],n=0;n<t.length;n++)t[parseInt(n.toString(),10)]&&(t[parseInt(n.toString(),10)].classList.remove("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_left_align"&&"Left"===i.textAlign&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_right_align"&&"Right"===i.textAlign&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_center_align"&&"Center"===i.textAlign&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_justify_align"&&"Justify"===i.textAlign&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"))},i.prototype.textPropertiesDropDownBeforeOpen=function(e){if(1===this.pdfViewer.selectedItems.annotations.length&&e.element.getElementsByTagName("button")&&e.element.getElementsByTagName("button").length>0)for(var t=e.element.getElementsByTagName("button"),i=this.pdfViewer.selectedItems.annotations[0],n=0;n<t.length;n++)t[parseInt(n.toString(),10)]&&(t[parseInt(n.toString(),10)].classList.remove("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_bold"&&i.font.isBold&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_italic"&&i.font.isItalic&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_strikeout"&&i.font.isStrikeout&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"),t[parseInt(n.toString(),10)].id===this.pdfViewer.element.id+"_underline_textinput"&&i.font.isUnderline&&t[parseInt(n.toString(),10)].classList.add("textprop-option-active"))},i.prototype.onClickTextAlignment=function(e){var i;i=t.isBlazor()?e[0]:e&&e.item&&e.item.value?e.item.value:"",1===this.pdfViewer.selectedItems.annotations.length&&i?this.pdfViewer.annotation.modifyTextAlignment(i):(this.pdfViewer.freeTextSettings.textAlignment=e.item.value,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()),this.updateTextAlignInIcon(i)},i.prototype.onClickTextProperties=function(e){var i;if(i=t.isBlazor()?e[0]:e&&e.item&&e.item.value?e.item.value:"",1===this.pdfViewer.selectedItems.annotations.length&&i){var n={isBold:void 0,isItalic:void 0,isStrikeout:void 0,isUnderline:void 0};"bold"===i?n.isBold=!this.pdfViewer.selectedItems.annotations[0].font.isBold:"italic"===i?n.isItalic=!this.pdfViewer.selectedItems.annotations[0].font.isItalic:"underline"===i?n.isUnderline=!this.pdfViewer.selectedItems.annotations[0].font.isUnderline:"strikeout"===i&&(n.isStrikeout=!this.pdfViewer.selectedItems.annotations[0].font.isStrikeout),this.pdfViewer.annotation.modifyTextProperties(n,i)}else"bold"===i?this.pdfViewer.annotationModule.freeTextAnnotationModule.isBold?this.pdfViewer.annotationModule.freeTextAnnotationModule.isBold=!1:(this.pdfViewer.freeTextSettings.fontStyle=1,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()):"italic"===i?this.pdfViewer.annotationModule.freeTextAnnotationModule.isItalic?this.pdfViewer.annotationModule.freeTextAnnotationModule.isItalic=!1:(this.pdfViewer.freeTextSettings.fontStyle=2,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()):"underline"===i?this.pdfViewer.annotationModule.freeTextAnnotationModule.isUnderline?this.pdfViewer.annotationModule.freeTextAnnotationModule.isUnderline=!1:(this.pdfViewer.freeTextSettings.fontStyle=4,this.pdfViewer.annotationModule.freeTextAnnotationModule.isStrikethrough=!1,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()):"strikeout"===i&&(this.pdfViewer.annotationModule.freeTextAnnotationModule.isStrikethrough?this.pdfViewer.annotationModule.freeTextAnnotationModule.isStrikethrough=!1:(this.pdfViewer.freeTextSettings.fontStyle=8,this.pdfViewer.annotationModule.freeTextAnnotationModule.isUnderline=!1,this.pdfViewer.annotationModule.freeTextAnnotationModule.updateTextProperties()));this.updateTextPropertySelection(i)},i.prototype.opacityChange=function(e){var i=1;if(i=e&&1===e.length?e[0]:e.value,this.pdfViewer.annotationModule.textMarkupAnnotationModule)if(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)t.isBlazor()?this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyOpacityProperty(null,i):"changed"===e.name&&e.previousValue!==e.value&&this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyOpacityProperty(e);else switch(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode){case"Highlight":this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightOpacity=i/100;break;case"Underline":this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineOpacity=i/100;break;case"Strikethrough":this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughOpacity=i/100;break;case"Squiggly":this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyOpacity=i/100}if(1===this.pdfViewer.selectedItems.annotations.length){var n=this.pdfViewer.selectedItems.annotations[0];if(null==n||"Stamp"!==n.shapeAnnotationType&&"Image"!==n.shapeAnnotationType)t.isBlazor()?this.pdfViewer.annotation.modifyOpacity(i,!0):"changed"===e.name&&e.value!==e.previousValue&&this.pdfViewer.annotation.modifyOpacity(e);else{var o=B(n),r=B(n);r.opacity=i/100,this.pdfViewer.nodePropertyChange(n,{opacity:i/100}),this.pdfViewer.annotation.triggerAnnotationPropChange(n,!1,!1,!1,!0),this.pdfViewer.annotation.addAction(this.pdfViewer.selectedItems.annotations[0].pageIndex,null,this.pdfViewer.selectedItems.annotations[0],"stampOpacity","",o,r),this.pdfViewer.annotation.stampAnnotationModule.updateSessionStorage(this.pdfViewer.selectedItems.annotations[0],null,"opacity")}}else{if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.pdfViewer.annotation.shapeAnnotationModule.lineOpacity=i/100;break;case"Arrow":this.pdfViewer.annotation.shapeAnnotationModule.arrowOpacity=i/100;break;case"Rectangle":this.pdfViewer.annotation.shapeAnnotationModule.rectangleOpacity=i/100;break;case"Circle":this.pdfViewer.annotation.shapeAnnotationModule.circleOpacity=i/100;break;case"Polygon":this.pdfViewer.annotation.shapeAnnotationModule.polygonOpacity=i/100}var a=this.pdfViewer.annotation;a&&a.inkAnnotationModule&&(this.pdfViewer.inkAnnotationSettings.opacity=i/100),this.pdfViewer.drawingObject&&(this.pdfViewer.drawingObject.opacity=i/100,"FreeText"===this.pdfViewer.drawingObject.shapeAnnotationType&&(this.pdfViewer.annotation.freeTextAnnotationModule.opacity=i/100))}t.isBlazor()||this.updateOpacityIndicator()},i.prototype.opacityDropDownBeforeOpen=function(e){if(this.pdfViewer.annotationModule.textMarkupAnnotationModule)if(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.isCurrentAnnotationOpacitySet=!0,this.opacitySlider.value=100*this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation.opacity;else switch(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode){case"Highlight":this.opacitySlider.value=100*this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightOpacity;break;case"Underline":this.opacitySlider.value=100*this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineOpacity;break;case"Strikethrough":this.opacitySlider.value=100*this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughOpacity;break;case"Squiggly":this.opacitySlider.value=100*this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyOpacity}if(1===this.pdfViewer.selectedItems.annotations.length)this.opacitySlider.value=100*this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.opacity;else if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.opacitySlider.value=100*this.pdfViewer.annotation.shapeAnnotationModule.lineOpacity;break;case"Arrow":this.opacitySlider.value=100*this.pdfViewer.annotation.shapeAnnotationModule.arrowOpacity;break;case"Rectangle":this.opacitySlider.value=100*this.pdfViewer.annotation.shapeAnnotationModule.rectangleOpacity;break;case"Circle":this.opacitySlider.value=100*this.pdfViewer.annotation.shapeAnnotationModule.circleOpacity;break;case"Polygon":this.opacitySlider.value=100*this.pdfViewer.annotation.shapeAnnotationModule.polygonOpacity}this.updateOpacityIndicator(),this.updateInkannotationItems()},i.prototype.thicknessDropDownBeforeOpen=function(){if(1===this.pdfViewer.selectedItems.annotations.length)this.thicknessSlider.value=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeWidth;else if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.thicknessSlider.value=this.pdfViewer.annotation.shapeAnnotationModule.lineThickness;break;case"Arrow":this.thicknessSlider.value=this.pdfViewer.annotation.shapeAnnotationModule.arrowThickness;break;case"Rectangle":this.thicknessSlider.value=this.pdfViewer.annotation.shapeAnnotationModule.rectangleThickness;break;case"Circle":this.thicknessSlider.value=this.pdfViewer.annotation.shapeAnnotationModule.circleThickness;break;case"Polygon":this.thicknessSlider.value=this.pdfViewer.annotation.shapeAnnotationModule.polygonThickness}this.updateThicknessIndicator(),this.updateInkannotationItems()},i.prototype.thicknessDropDownOpen=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?(e.element.parentElement.style.left="0px",e.element.parentElement.style.top=this.pdfViewerBase.viewerContainer.clientHeight+"px"):this.calculateToolbarPosition(e)},i.prototype.calculateToolbarPosition=function(e){if(e.element&&e.element.parentElement){var t=parseFloat(e.element.parentElement.style.left),i=e.element.parentElement.offsetWidth;t+i<this.pdfViewer.element.offsetWidth+10&&(e.element.parentElement.style.left=t-i+"px")}},i.prototype.thicknessChangeInBlazor=function(e){1===this.pdfViewer.selectedItems.annotations.length?this.pdfViewer.annotation.modifyThickness(e[0]):this.ShapeThickness(e[0])},i.prototype.thicknessChange=function(e){if(1===this.pdfViewer.selectedItems.annotations.length){if("changed"===e.name){this.pdfViewer.annotation.modifyThickness(e.value),t.isBlazor()||this.updateThicknessIndicator();var i=this.pdfViewer.annotation,n=this.pdfViewer.selectedItems.annotations[0];i&&i.inkAnnotationModule&&n&&"Ink"===n.shapeAnnotationType&&(this.pdfViewer.inkAnnotationSettings.thickness=e.value)}}else this.ShapeThickness(e.value)},i.prototype.ShapeThickness=function(e){if(this.pdfViewer.annotation.shapeAnnotationModule){switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.pdfViewer.annotation.shapeAnnotationModule.lineThickness=e;break;case"Arrow":this.pdfViewer.annotation.shapeAnnotationModule.arrowThickness=e;break;case"Rectangle":this.pdfViewer.annotation.shapeAnnotationModule.rectangleThickness=e;break;case"Circle":this.pdfViewer.annotation.shapeAnnotationModule.circleThickness=e;break;case"Polygon":this.pdfViewer.annotation.shapeAnnotationModule.polygonThickness=e}var i=this.pdfViewer.annotation;i&&i.inkAnnotationModule&&(this.pdfViewer.inkAnnotationSettings.thickness=e.value),this.pdfViewer.drawingObject&&(this.pdfViewer.drawingObject.thickness=e.value),this.pdfViewer.drawingObject&&"FreeText"===this.pdfViewer.drawingObject.shapeAnnotationType&&(this.pdfViewer.annotation.freeTextAnnotationModule.borderWidth=e.value)}var n=this.pdfViewer.annotation;n&&n.inkAnnotationModule&&(this.pdfViewer.inkAnnotationSettings.thickness=e),this.pdfViewer.drawingObject&&(this.pdfViewer.drawingObject.thickness=e),this.pdfViewer.drawingObject&&"FreeText"===this.pdfViewer.drawingObject.shapeAnnotationType&&(this.pdfViewer.annotation.freeTextAnnotationModule.borderWidth=e),t.isBlazor()||this.updateThicknessIndicator()},i.prototype.createDropDownButton=function(e,t,i,n){var o=new r.DropDownButton({iconCss:t+" e-pv-icon",target:i});return this.pdfViewer.enableRtl&&(o.enableRtl=!0),o.appendTo(e),this.primaryToolbar.createTooltip(e,n),e.setAttribute("aria-label",n),o},i.prototype.createShapeOptions=function(e,i,n,o){var r=t.createElement("div",{id:e+"_target",className:"e-pv-shapes-toolbar"});document.body.appendChild(r);var a;return n?((a=new s.Toolbar({items:this.textAlignmentToolbarItems(),overflowMode:"MultiRow"},r)).isStringTemplate=!0,this.afterAlignmentToolbarCreation()):o?((a=new s.Toolbar({items:this.textPropertiesToolbarItems(),overflowMode:"MultiRow"},r)).isStringTemplate=!0,this.afterPropertiesToolbarCreation()):i?!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?((a=new s.Toolbar({items:this.createShapeToolbarItems(),overflowMode:"MultiRow",clicked:this.onShapeToolbarClicked.bind(this)},r)).isStringTemplate=!0,this.afterShapeToolbarCreation()):(this.toolbarElement=t.createElement("div",{id:e+"_target",className:"e-pv-mobile-annotation-toolbar",styles:"bottom: 0px; position: absolute; width: 100%; float: left"}),this.pdfViewerBase.viewerMainContainer.appendChild(this.toolbarElement),(a=new s.Toolbar({items:this.createShapeToolbarItemsForMobile(),overflowMode:"Scrollable",clicked:this.onShapeToolbarClicked.bind(this)},this.toolbarElement)).isStringTemplate=!0,this.afterShapeToolbarCreationForMobile()):((a=new s.Toolbar({items:this.createCalibrateToolbarItems(),overflowMode:"MultiRow",clicked:this.onCalibrateToolbarClicked.bind(this)},r)).isStringTemplate=!0,this.afterCalibrateToolbarCreation()),a},i.prototype.createPropertyToolbarForMobile=function(e){var t=this,i=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),n=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_stroke","e-pv-annotation-stroke-container"),o=this.getTemplate("span","_annotation_thickness","e-pv-annotation-thickness-container"),r=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),a=this.getTemplate("input","_annotation_fontname","e-pv-annotation-fontname-container"),s=this.getTemplate("input","_annotation_fontsize","e-pv-annotation-fontsize-container"),l=this.getTemplate("span","_annotation_textcolor","e-pv-annotation-textcolor-container"),d=this.getTemplate("span","_annotation_textalign","e-pv-annotation-textalign-container"),A=this.getTemplate("span","_annotation_textproperties","e-pv-annotation-textprop-container"),h=[];return"Polygon"===e||"Rectangle"===e||"Ellipse"===e||"Line"===e||"LineWidthArrowHead"===e||"Distance"===e||"Perimeter"===e||"Radius"===e||"FreeText"===e?("FreeText"===e&&(h.push({prefixIcon:"e-pv-freetext-icon e-pv-icon",className:"e-pv-annotation-freetextedit-container"}),h.push({type:"Separator",align:"Left"}),h.push({template:a}),h.push({template:s}),h.push({template:l}),h.push({template:d}),h.push({template:A})),"Polygon"===e?"Area"===this.pdfViewer.selectedItems.annotations[0].measureType?(h.push({prefixIcon:"e-pv-calibrate-area-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Volume"===this.pdfViewer.selectedItems.annotations[0].measureType?(h.push({prefixIcon:"e-pv-calibrate-volume-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):(h.push({prefixIcon:"e-pv-shape-pentagon-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Rectangle"===e?(h.push({prefixIcon:"e-pv-shape-rectangle-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Ellipse"===e?(h.push({prefixIcon:"e-pv-shape-circle-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Line"===e?"Perimeter"===this.pdfViewer.selectedItems.annotations[0].measureType?(h.push({prefixIcon:"e-pv-calibrate-perimeter-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):(h.push({prefixIcon:"e-pv-shape-line-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"LineWidthArrowHead"===e?(h.push({prefixIcon:"e-pv-shape-arrow-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Distance"===e?(h.push({prefixIcon:"e-pv-calibrate-distance-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Perimeter"===e?(h.push({prefixIcon:"e-pv-calibrate-perimeter-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Radius"===e&&(h.push({prefixIcon:"e-pv-calibrate-radius-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})),h.push({template:i}),h.push({template:n}),h.push({template:o})):"Path"===e||"Ink"===e||"HandWrittenSignature"===e||"SignatureText"===e?("Path"===e||"Ink"===e?(h.push({prefixIcon:"e-pv-inkannotation-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"HandWrittenSignature"!==e&&"SignatureText"!==e||(h.push({prefixIcon:"e-pv-handwritten-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})),h.push({template:n}),h.push({template:o})):"Underline"===e||"Highlight"===e||"Strikethrough"===e||"Squiggly"===e?("Highlight"===e?(h.push({prefixIcon:"e-pv-highlight-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Underline"===e?(h.push({prefixIcon:"e-pv-underline-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Strikethrough"===e?(h.push({prefixIcon:"e-pv-strikethrough-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"Squiggly"===e&&(h.push({prefixIcon:"e-pv-squiggly-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})),h.push({template:i})):"Stamp"===e||"Image"===e?(h.push({prefixIcon:"e-pv-stamp-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})):"StickyNotes"===e&&(h.push({prefixIcon:"e-pv-comment-icon e-pv-icon"}),h.push({type:"Separator",align:"Left"})),h.push({template:r}),h.push({prefixIcon:"e-pv-comment-panel-icon e-pv-icon",className:"e-pv-comment-panel-icon-container",id:this.pdfViewer.element.i
vendor: 4,147 bytes, line 10
10d+"_annotation_commentPanel",align:"Right",click:function(e){t.pdfViewer.annotationModule.showCommentsPanel()}}),h.push({prefixIcon:"e-pv-annotation-delete-icon e-pv-icon",className:"e-pv-annotation-delete-container",id:this.pdfViewer.element.id+"_annotation_delete",align:"Right",click:function(e){t.pdfViewer.annotationModule.deleteAnnotation(),t.propertyToolbar.destroy(),t.toolbarCreated=!1,t.createAnnotationToolbarForMobile(),t.adjustMobileViewer()}}),h},i.prototype.createStampToolbarItemsForMobile=function(){var e=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),t=[];return t.push({prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)}),t.push({type:"Separator",align:"Left"}),t.push({template:e}),t},i.prototype.createShapeToolbarItemsForMobile=function(){var e=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),t=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_stroke","e-pv-annotation-stroke-container"),i=this.getTemplate("span","_annotation_thickness","e-pv-annotation-thickness-container"),n=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),o=[];return o.push({prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)}),o.push({prefixIcon:"e-pv-shape-line-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_line",text:this.pdfViewer.localeObj.getConstant("Line Shape"),align:"Left"}),o.push({prefixIcon:"e-pv-shape-arrow-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_arrow",text:this.pdfViewer.localeObj.getConstant("Arrow Shape"),align:"Left"}),o.push({prefixIcon:"e-pv-shape-rectangle-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_rectangle",text:this.pdfViewer.localeObj.getConstant("Rectangle Shape"),align:"Left"}),o.push({prefixIcon:"e-pv-shape-circle-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_circle",text:this.pdfViewer.localeObj.getConstant("Circle Shape"),align:"Left"}),o.push({prefixIcon:"e-pv-shape-pentagon-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_pentagon",text:this.pdfViewer.localeObj.getConstant("Pentagon Shape"),align:"Left"}),o.push({type:"Separator",align:"Left"}),o.push({template:e}),o.push({template:t}),o.push({template:i}),o.push({template:n}),o},i.prototype.createCalibrateToolbarItemsForMobile=function(){var e=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_color","e-pv-annotation-color-container"),t=this.pdfViewer.toolbarModule.annotationToolbarModule.getTemplate("span","_annotation_stroke","e-pv-annotation-stroke-container"),i=this.getTemplate("span","_annotation_thickness","e-pv-annotation-thickness-container"),n=this.getTemplate("span","_annotation_opacity","e-pv-annotation-opacity-container"),o=[];return o.push({prefixIcon:"e-pv-backward-icon e-pv-icon",tooltipText:this.pdfViewer.localeObj.getConstant("Go Back"),id:this.pdfViewer.element.id+"_backward",click:this.goBackToToolbar.bind(this)}),o.push({prefixIcon:"e-pv-calibrate-distance-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_distance",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),o.push({prefixIcon:"e-pv-calibrate-perimeter-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_perimeter",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),o.push({prefixIcon:"e-pv-calibrate-area-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_area",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),o.push({prefixIcon:"e-pv-calibrate-radius-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_radius",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),o.push({prefixIcon:"e-pv-calibrate-volume-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.i
vendor: 26,801 bytes, line 10
10d+"_calibrate_volume",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),o.push({type:"Separator",align:"Left"}),o.push({template:e}),o.push({template:t}),o.push({template:i}),o.push({template:n}),o},i.prototype.handleShapeTool=function(e){if(!t.isBlazor()&&t.Browser.isDevice)for(var i=document.querySelectorAll(".e-pv-select"),n=0;n<i.length;n++)i[parseInt(n.toString(),10)].id!==e&&i[parseInt(n.toString(),10)].id!==this.pdfViewer.element.id+"_annotation"&&i[parseInt(n.toString(),10)].classList.remove("e-pv-select")},i.prototype.createPropDropDownButton=function(e,t,i,n){var o=new r.DropDownButton({iconCss:t+" e-pv-icon",target:i,cssClass:"e-caret-hide"});return this.pdfViewer.enableRtl&&(o.enableRtl=!0),o.appendTo(e),this.primaryToolbar.createTooltip(e,n),e.setAttribute("aria-label",n),o},i.prototype.textAlignmentToolbarItems=function(){var e=[];return e.push({prefixIcon:"e-pv-left-align-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_left_align",align:"Left",value:"Left",click:this.onClickTextAlignment.bind(this)}),e.push({prefixIcon:"e-pv-center-align-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_center_align",align:"Left",value:"Center",click:this.onClickTextAlignment.bind(this)}),e.push({prefixIcon:"e-pv-right-align-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_right_align",align:"Left",value:"Right",click:this.onClickTextAlignment.bind(this)}),e.push({prefixIcon:"e-pv-justfiy-align-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_justify_align",align:"Left",value:"Justify",click:this.onClickTextAlignment.bind(this)}),e},i.prototype.afterAlignmentToolbarCreation=function(){this.alignLeftElement=this.primaryToolbar.addClassToolbarItem("_left_align","e-pv-left-align",this.pdfViewer.localeObj.getConstant("Align left")),this.alignRightElement=this.primaryToolbar.addClassToolbarItem("_right_align","e-pv-right-align",this.pdfViewer.localeObj.getConstant("Align right")),this.alignCenterElement=this.primaryToolbar.addClassToolbarItem("_center_align","e-pv-center-align",this.pdfViewer.localeObj.getConstant("Center")),this.alignJustifyElement=this.primaryToolbar.addClassToolbarItem("_justify_align","e-pv-justfiy-align",this.pdfViewer.localeObj.getConstant("Justify"))},i.prototype.afterPropertiesToolbarCreation=function(){this.boldElement=this.primaryToolbar.addClassToolbarItem("_bold","e-pv-bold",this.pdfViewer.localeObj.getConstant("Bold")),this.italicElement=this.primaryToolbar.addClassToolbarItem("_italic","e-pv-italic",this.pdfViewer.localeObj.getConstant("Italic")),this.fontStyleStrikethroughItem=this.primaryToolbar.addClassToolbarItem("_strikeout","e-pv-strikeout",this.pdfViewer.localeObj.getConstant("Strikethroughs")),this.fontStyleUnderlineItem=this.primaryToolbar.addClassToolbarItem("_underline_textinput","e-pv-underlinetext",this.pdfViewer.localeObj.getConstant("Underlines"))},i.prototype.createDropDownListForSize=function(e){var i=this,n=["8px","9px","10px","11px","12px","14px","16px","18px","20px","22px","24px","26px","28px","36px","48px","72px","96px"];if(this.pdfViewer.enableRtl?this.fontSize=new h.ComboBox({dataSource:n,cssClass:"e-pv-prop-dropdown-rtl",allowCustom:!0,showClearButton:!1,width:"80px",popupWidth:"100px",enableRtl:!0}):this.fontSize=new h.ComboBox({dataSource:n,cssClass:"e-pv-prop-dropdown",allowCustom:!0,showClearButton:!1,width:"80px",popupWidth:"100px"}),this.fontSize.value="16px",!t.isNullOrUndefined(e)){this.fontSize.appendTo(e);var o=e.parentElement?e.parentElement:e;this.primaryToolbar.createTooltip(o,this.pdfViewer.localeObj.getConstant("Font size")),e.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Font size"))}this.fontSize.addEventListener("change",function(e){var t=e.isInteracted;i.onFontSizeChange(i,t)})},i.prototype.createDropDownListForFamily=function(e){var i=this,n=[{FontName:"Helvetica"},{FontName:"Courier"},{FontName:"Symbol"},{FontName:"Times New Roman"}];if(this.pdfViewer.enableRtl?this.fontFamily=new h.ComboBox({dataSource:n,query:(new p.Query).select(["FontName"]),fields:{text:"FontName",value:"FontName"},cssClass:"e-pv-prop-dropdown-rtl",itemTemplate:t.initializeCSPTemplate(function(e){return'<span data-font="'+e.FontName+'">'+e.FontName+"</span>"}),allowCustom:!0,showClearButton:!1,width:"110px",popupWidth:"190px",enableRtl:!0}):this.fontFamily=new h.ComboBox({dataSource:n,query:(new p.Query).select(["FontName"]),fields:{text:"FontName",value:"FontName"},cssClass:"e-pv-prop-dropdown",itemTemplate:t.initializeCSPTemplate(function(e){return'<span data-font="'+e.FontName+'">'+e.FontName+"</span>"}),allowCustom:!0,showClearButton:!1,width:"110px",popupWidth:"190px"}),this.fontFamily.isStringTemplate=!0,this.fontFamily.value="Helvetica",!t.isNullOrUndefined(e)){this.fontFamily.appendTo(e);var o=e.parentElement?e.parentElement:e;this.primaryToolbar.createTooltip(o,this.pdfViewer.localeObj.getConstant("Font family")),e.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Font family"))}this.fontFamily.addEventListener("change",function(){i.onFontFamilyChange(i)})},i.prototype.textPropertiesToolbarItems=function(){var e=[];return e.push({prefixIcon:"e-pv-bold-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_bold",align:"Left",value:"bold",click:this.onClickTextProperties.bind(this)}),e.push({prefixIcon:"e-pv-italic-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_italic",align:"Left",value:"italic",click:this.onClickTextProperties.bind(this)}),e.push({prefixIcon:"e-pv-strikeout-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_strikeout",align:"Left",value:"strikeout",click:this.onClickTextProperties.bind(this)}),e.push({prefixIcon:"e-pv-underlinetext-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_underline_textinput",align:"Left",value:"underline",click:this.onClickTextProperties.bind(this)}),e},i.prototype.createShapeToolbarItems=function(){var e=[];return e.push({prefixIcon:"e-pv-shape-line-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_line",text:this.pdfViewer.localeObj.getConstant("Line Shape"),align:"Left"}),e.push({prefixIcon:"e-pv-shape-arrow-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_arrow",text:this.pdfViewer.localeObj.getConstant("Arrow Shape"),align:"Left"}),e.push({prefixIcon:"e-pv-shape-rectangle-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_rectangle",text:this.pdfViewer.localeObj.getConstant("Rectangle Shape"),align:"Left"}),e.push({prefixIcon:"e-pv-shape-circle-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_circle",text:this.pdfViewer.localeObj.getConstant("Circle Shape"),align:"Left"}),e.push({prefixIcon:"e-pv-shape-pentagon-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_shape_pentagon",text:this.pdfViewer.localeObj.getConstant("Pentagon Shape"),align:"Left"}),e},i.prototype.createCalibrateToolbarItems=function(){var e=[];return e.push({prefixIcon:"e-pv-calibrate-distance-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_distance",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),e.push({prefixIcon:"e-pv-calibrate-perimeter-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_perimeter",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),e.push({prefixIcon:"e-pv-calibrate-area-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_area",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),e.push({prefixIcon:"e-pv-calibrate-radius-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_radius",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),e.push({prefixIcon:"e-pv-calibrate-volume-icon e-pv-icon",cssClass:"",id:this.pdfViewer.element.id+"_calibrate_volume",text:this.pdfViewer.localeObj.getConstant(""),align:"Left"}),e},i.prototype.onCalibrateToolbarClicked=function(e){var i=this.pdfViewer.element.id,n=this.pdfViewer.annotation.measureAnnotationModule;if(this.deselectAllItems(),this.deselectAllItemsForMobile(),this.resetFreeTextAnnot(),t.Browser.isDevice&&!t.isBlazor()){var o=e.originalEvent.target;this.pdfViewer.toolbarModule.selectItem(o.parentElement)}switch(e.originalEvent.target.id){case i+"_calibrate_distance":case i+"_calibrate_distanceIcon":n.setAnnotationType("Distance"),this.onShapeDrawSelection(!1),this.updateColorInIcon(this.colorDropDownElement,n.distanceFillColor),this.updateColorInIcon(this.strokeDropDownElement,n.distanceStrokeColor),this.handleShapeTool(i+"_calibrate_distance");break;case i+"_calibrate_perimeter":case i+"_calibrate_perimeterIcon":n.setAnnotationType("Perimeter"),this.onShapeDrawSelection(!1),this.updateColorInIcon(this.colorDropDownElement,n.perimeterFillColor),this.updateColorInIcon(this.strokeDropDownElement,n.perimeterStrokeColor),this.handleShapeTool(i+"_calibrate_perimeter");break;case i+"_calibrate_area":case i+"_calibrate_areaIcon":n.setAnnotationType("Area"),this.onShapeDrawSelection(!1),this.updateColorInIcon(this.colorDropDownElement,n.areaFillColor),this.updateColorInIcon(this.strokeDropDownElement,n.areaStrokeColor),this.handleShapeTool(i+"_calibrate_area");break;case i+"_calibrate_radius":case i+"_calibrate_radiusIcon":n.setAnnotationType("Radius"),this.onShapeDrawSelection(!1),this.updateColorInIcon(this.colorDropDownElement,n.radiusFillColor),this.updateColorInIcon(this.strokeDropDownElement,n.radiusStrokeColor),this.handleShapeTool(i+"_calibrate_radius");break;case i+"_calibrate_volume":case i+"_calibrate_volumeIcon":n.setAnnotationType("Volume"),this.onShapeDrawSelection(!1),this.updateColorInIcon(this.colorDropDownElement,n.volumeFillColor),this.updateColorInIcon(this.strokeDropDownElement,n.volumeStrokeColor),this.handleShapeTool(i+"_calibrate_volume")}},i.prototype.onShapeDrawSelection=function(e){t.Browser.isDevice||(this.updateInteractionTools(),this.enableAnnotationPropertiesTools(!0),e?this.shapeDropDown.toggle():this.calibrateDropDown.toggle()),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent()},i.prototype.afterCalibrateToolbarCreationForMobile=function(){this.primaryToolbar.addClassToolbarItem("_calibrate_distance","e-pv-calibrate-distance",this.pdfViewer.localeObj.getConstant("Calibrate Distance")),this.primaryToolbar.addClassToolbarItem("_calibrate_perimeter","e-pv-calibrate-perimeter",this.pdfViewer.localeObj.getConstant("Calibrate Perimeter")),this.primaryToolbar.addClassToolbarItem("_calibrate_area","e-pv-calibrate-area",this.pdfViewer.localeObj.getConstant("Calibrate Area")),this.primaryToolbar.addClassToolbarItem("_calibrate_radius","e-pv-calibrate-radius",this.pdfViewer.localeObj.getConstant("Calibrate Radius")),this.primaryToolbar.addClassToolbarItem("_calibrate_volume","e-pv-calibrate-volume",this.pdfViewer.localeObj.getConstant("Calibrate Volume"))},i.prototype.afterShapeToolbarCreationForMobile=function(){this.primaryToolbar.addClassToolbarItem("_annotation_color","e-pv-annotation-color-container",this.pdfViewer.localeObj.getConstant("Change Color")),this.primaryToolbar.addClassToolbarItem("_annotation_stroke","e-pv-annotation-stroke-container",this.pdfViewer.localeObj.getConstant("Change Stroke Color")),this.primaryToolbar.addClassToolbarItem("_annotation_thickness","e-pv-annotation-thickness-container",this.pdfViewer.localeObj.getConstant("Chnage Border Thickness")),this.primaryToolbar.addClassToolbarItem("_annotation_opacity","e-annotation-opacity-container",this.pdfViewer.localeObj.getConstant("Change Opacity")),this.primaryToolbar.addClassToolbarItem("_shape_line","e-pv-shape-line",this.pdfViewer.localeObj.getConstant("Add line")),this.primaryToolbar.addClassToolbarItem("_shape_arrow","e-pv-shape-arrow",this.pdfViewer.localeObj.getConstant("Add arrow")),this.primaryToolbar.addClassToolbarItem("_shape_rectangle","e-pv-shape-rectangle",this.pdfViewer.localeObj.getConstant("Add rectangle")),this.primaryToolbar.addClassToolbarItem("_shape_circle","e-pv-shape-circle",this.pdfViewer.localeObj.getConstant("Add circle")),this.primaryToolbar.addClassToolbarItem("_shape_pentagon","e-pv-shape-pentagon",this.pdfViewer.localeObj.getConstant("Add polygon"))},i.prototype.afterShapeToolbarCreation=function(){this.lineElement=this.primaryToolbar.addClassToolbarItem("_shape_line","e-pv-shape-line",this.pdfViewer.localeObj.getConstant("Add line")),this.arrowElement=this.primaryToolbar.addClassToolbarItem("_shape_arrow","e-pv-shape-arrow",this.pdfViewer.localeObj.getConstant("Add arrow")),this.rectangleElement=this.primaryToolbar.addClassToolbarItem("_shape_rectangle","e-pv-shape-rectangle",this.pdfViewer.localeObj.getConstant("Add rectangle")),this.circleElement=this.primaryToolbar.addClassToolbarItem("_shape_circle","e-pv-shape-circle",this.pdfViewer.localeObj.getConstant("Add circle")),this.polygonElement=this.primaryToolbar.addClassToolbarItem("_shape_pentagon","e-pv-shape-pentagon",this.pdfViewer.localeObj.getConstant("Add polygon"))},i.prototype.afterCalibrateToolbarCreation=function(){this.calibrateDistance=this.primaryToolbar.addClassToolbarItem("_calibrate_distance","e-pv-calibrate-distance",this.pdfViewer.localeObj.getConstant("Calibrate Distance")),this.calibratePerimeter=this.primaryToolbar.addClassToolbarItem("_calibrate_perimeter","e-pv-calibrate-perimeter",this.pdfViewer.localeObj.getConstant("Calibrate Perimeter")),this.calibrateArea=this.primaryToolbar.addClassToolbarItem("_calibrate_area","e-pv-calibrate-area",this.pdfViewer.localeObj.getConstant("Calibrate Area")),this.calibrateRadius=this.primaryToolbar.addClassToolbarItem("_calibrate_radius","e-pv-calibrate-radius",this.pdfViewer.localeObj.getConstant("Calibrate Radius")),this.calibrateVolume=this.primaryToolbar.addClassToolbarItem("_calibrate_volume","e-pv-calibrate-volume",this.pdfViewer.localeObj.getConstant("Calibrate Volume"))},i.prototype.afterMobileToolbarCreation=function(){var e=!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i);this.highlightItem=this.primaryToolbar.addClassToolbarItem("_highlight","e-pv-highlight",this.pdfViewer.localeObj.getConstant("Highlight")),this.underlineItem=this.primaryToolbar.addClassToolbarItem("_underline","e-pv-underline",this.pdfViewer.localeObj.getConstant("Underline")),this.strikethroughItem=this.primaryToolbar.addClassToolbarItem("_strikethrough","e-pv-strikethrough",this.pdfViewer.localeObj.getConstant("Strikethrough")),this.squigglyItem=this.primaryToolbar.addClassToolbarItem("_squiggly","e-pv-squiggly",this.pdfViewer.localeObj.getConstant("Squiggly")),this.shapesItem=this.primaryToolbar.addClassToolbarItem("_annotation_shapes","e-pv-annotation-shapes",this.pdfViewer.localeObj.getConstant("Add Shapes")),this.calibrateItem=this.primaryToolbar.addClassToolbarItem("_annotation_calibrate","e-pv-annotation-calibrate",this.pdfViewer.localeObj.getConstant("Calibrate")),this.freeTextEditItem=this.primaryToolbar.addClassToolbarItem("_annotation_freeTextEdit","e-pv-annotation-freeTextEdit",this.pdfViewer.localeObj.getConstant("Free Text")),this.commentItem=this.primaryToolbar.addClassToolbarItem("_comment","e-pv-comment",this.pdfViewer.localeObj.getConstant("Add Comments")),this.commentItem=this.primaryToolbar.addClassToolbarItem("_annotation_commentPanel","e-pv-annotation-comment-panel",this.pdfViewer.localeObj.getConstant("Comment Panel")+(e?" (⌘+⌥+0)":" (Ctrl+Alt+0)")),this.inkAnnotationItem=this.primaryToolbar.addClassToolbarItem("_annotation_ink","e-pv-annotation-ink",this.pdfViewer.localeObj.getConstant("Draw Ink")),this.selectAnnotationDeleteItem(!1),this.enableCommentPanelTool(this.pdfViewer.enableCommentPanel)},i.prototype.createColorPicker=function(e){var i,o=document.getElementById(e+"_target");i=o||t.createElement("input",{id:e+"_target"}),document.body.appendChild(i);var r=new n.ColorPicker({inline:!0,mode:"Palette",cssClass:"e-show-value",enableOpacity:!1,value:"#000000",showButtons:!1,modeSwitcher:!1});return this.pdfViewer.enableRtl&&(r.enableRtl=!0),r.appendTo(i),r},i.prototype.onColorPickerChange=function(e){var i;if(i=t.isBlazor()?e[0]:""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,this.pdfViewer.annotationModule.textMarkupAnnotationModule)if(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation)this.pdfViewer.annotationModule.textMarkupAnnotationModule.modifyColorProperty(i);else switch(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode){case"Highlight":this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightColor=i;break;case"Underline":this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineColor=i;break;case"Strikethrough":this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughColor=i;break;case"Squiggly":this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyColor=i}if(1===this.pdfViewer.selectedItems.annotations.length)t.isBlazor()?e[0]!==e[1]&&this.pdfViewer.annotation.modifyFillColor(i):e.currentValue.hex===e.previousValue.hex&&e.currentValue.hex===this.pdfViewer.selectedItems.annotations[0].fillColor||this.pdfViewer.annotation.modifyFillColor(i);else{if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.pdfViewer.annotation.shapeAnnotationModule.lineFillColor=i;break;case"Arrow":this.pdfViewer.annotation.shapeAnnotationModule.arrowFillColor=i;break;case"Rectangle":this.pdfViewer.annotation.shapeAnnotationModule.rectangleFillColor=i;break;case"Circle":this.pdfViewer.annotation.shapeAnnotationModule.circleFillColor=i;break;case"Polygon":this.pdfViewer.annotation.shapeAnnotationModule.polygonFillColor=i}this.pdfViewer.drawingObject&&(this.pdfViewer.drawingObject.fillColor=i,"FreeText"===this.pdfViewer.drawingObject.shapeAnnotationType&&(this.pdfViewer.annotation.freeTextAnnotationModule.fillColor=i))}t.isBlazor()?(this.colorDropDownElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-color-container"),this.updateColorInIcon(this.colorDropDownElementInBlazor,i)):(this.updateColorInIcon(this.colorDropDownElement,i),this.colorDropDown.toggle())},i.prototype.onStrokePickerChange=function(e){var i;if(i=t.isBlazor()?e[0]:""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,1===this.pdfViewer.selectedItems.annotations.length)t.isBlazor()?e[0]!==e[1]&&this.pdfViewer.annotation.modifyStrokeColor(i):e.currentValue.hex!==e.previousValue.hex&&this.pdfViewer.annotation.modifyStrokeColor(i);else{if(this.pdfViewer.annotation.shapeAnnotationModule)switch(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode){case"Line":this.pdfViewer.annotation.shapeAnnotationModule.lineStrokeColor=i;break;case"Arrow":this.pdfViewer.annotation.shapeAnnotationModule.arrowStrokeColor=i;break;case"Rectangle":this.pdfViewer.annotation.shapeAnnotationModule.rectangleStrokeColor=i;break;case"Circle":this.pdfViewer.annotation.shapeAnnotationModule.circleStrokeColor=i;break;case"Polygon":this.pdfViewer.annotation.shapeAnnotationModule.polygonStrokeColor=i}var n=this.pdfViewer.annotation;n&&n.inkAnnotationModule&&(this.pdfViewer.inkAnnotationSettings.strokeColor=i),this.pdfViewer.drawingObject&&(this.pdfViewer.drawingObject.strokeColor=i),this.pdfViewer.drawingObject&&"FreeText"===this.pdfViewer.drawingObject.shapeAnnotationType&&(this.pdfViewer.annotation.freeTextAnnotationModule.borderColor=i)}t.isBlazor()?(this.strokeDropDownElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-stroke-container"),this.updateColorInIcon(this.strokeDropDownElementInBlazor,i)):(this.updateColorInIcon(this.strokeDropDownElement,i),this.strokeDropDown.toggle())},i.prototype.updateColorInIcon=function(e,i){t.isBlazor()?e&&(e.children[0].style.borderBottomColor=i):e&&e.childNodes[0]&&(e.childNodes[0].style.borderBottomColor=i)},i.prototype.updateTextPropertySelection=function(e){"bold"===e?document.getElementById(this.pdfViewer.element.id+"_bold").classList.toggle("textprop-option-active"):"italic"===e?document.getElementById(this.pdfViewer.element.id+"_italic").classList.toggle("textprop-option-active"):"underline"===e?(document.getElementById(this.pdfViewer.element.id+"_underline_textinput").classList.toggle("textprop-option-active"),document.getElementById(this.pdfViewer.element.id+"_strikeout").classList.remove("textprop-option-active")):"strikeout"===e&&(document.getElementById(this.pdfViewer.element.id+"_strikeout").classList.toggle("textprop-option-active"),document.getElementById(this.pdfViewer.element.id+"_underline_textinput").classList.remove("textprop-option-active"))},i.prototype.updateFontFamilyInIcon=function(e){this.fontFamily.value=e},i.prototype.updateTextAlignInIcon=function(e){var i="e-btn-icon e-pv-left-align-icon e-pv-icon",n=document.getElementById(this.pdfViewer.element.id+"_left_align"),o=document.getElementById(this.pdfViewer.element.id+"_right_align"),r=document.getElementById(this.pdfViewer.element.id+"_center_align"),a=document.getElementById(this.pdfViewer.element.id+"_justify_align");t.isBlazor()||(n.classList.remove("textprop-option-active"),o.classList.remove("textprop-option-active"),r.classList.remove("textprop-option-active"),a.classList.remove("textprop-option-active")),"Left"===e?n.classList.add("textprop-option-active"):"Right"===e?(i="e-btn-icon e-pv-right-align-icon e-pv-icon",o.classList.add("textprop-option-active")):"Center"===e?(i="e-btn-icon e-pv-center-align-icon e-pv-icon",r.classList.add("textprop-option-active")):"Justify"===e&&(i="e-btn-icon e-pv-justfiy-align-icon e-pv-icon",a.classList.add("textprop-option-active")),document.getElementById(this.pdfViewer.element.id+"_annotation_textalign").children[0].className=i},i.prototype.updateFontSizeInIcon=function(e){t.isNullOrUndefined(this.fontSize)&&this.pdfViewer.annotationModule?this.pdfViewer.annotationModule.handleFontSizeUpdate(e):this.fontSize.value=e+"px"},i.prototype.updateOpacityIndicator=function(){this.opacityIndicator.textContent=parseInt(Math.round(this.opacitySlider.value).toString(),10)+"%"},i.prototype.updateThicknessIndicator=function(){this.thicknessIndicator.textContent=this.thicknessSlider.value+" pt"},i.prototype.createSlider=function(e){var i=t.createElement("div",{className:"e-pv-annotation-opacity-popup-container"});document.body.appendChild(i);var o=t.createElement("span",{id:e+"_label",className:"e-pv-annotation-opacity-label"});o.textContent=this.pdfViewer.localeObj.getConstant("Opacity");var r=t.createElement("div",{id:e+"_slider"});return this.opacitySlider=new n.Slider({type:"MinRange",cssClass:"e-pv-annotation-opacity-slider",max:100,min:0}),this.opacityIndicator=t.createElement("div",{id:e+"_opacity_indicator",className:"e-pv-annotation-opacity-indicator"}),this.opacityIndicator.textContent="100%",this.pdfViewer.enableRtl?(i.appendChild(this.opacityIndicator),i.appendChild(r),this.opacitySlider.enableRtl=!0,this.opacitySlider.appendTo(r),this.opacitySlider.element.parentElement.classList.add("e-pv-annotation-opacity-slider-container"),i.appendChild(o)):(i.appendChild(o),i.appendChild(r),this.opacitySlider.appendTo(r),this.opacitySlider.element.parentElement.classList.add("e-pv-annotation-opacity-slider-container"),i.appendChild(this.opacityIndicator)),i},i.prototype.createThicknessSlider=function(e){var i=t.createElement("div",{className:"e-pv-annotation-thickness-popup-container"});document.body.appendChild(i);var o=t.createElement("span",{id:e+"_label",className:"e-pv-annotation-thickness-label"});o.textContent=this.pdfViewer.localeObj.getConstant("Line Thickness");var r=t.createElement("div",{id:e+"_slider"});return this.thicknessSlider=new n.Slider({type:"MinRange",cssClass:"e-pv-annotation-thickness-slider",max:12,min:0}),this.thicknessIndicator=t.createElement("div",{id:e+"_thickness_indicator",className:"e-pv-annotation-thickness-indicator"}),this.thicknessIndicator.textContent="0 pt",this.pdfViewer.enableRtl?(i.appendChild(this.thicknessIndicator),i.appendChild(r),this.thicknessSlider.enableRtl=!0,this.thicknessSlider.appendTo(r),i.appendChild(o)):(i.appendChild(o),i.appendChild(r),this.thicknessSlider.appendTo(r),i.appendChild(this.thicknessIndicator)),this.thicknessSlider.element.parentElement.classList.add("e-pv-annotation-thickness-slider-container"),i},i.prototype.afterToolbarCreation=function(){var e=!!navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i);this.highlightItem=this.primaryToolbar.addClassToolbarItem("_highlight","e-pv-highlight",this.pdfViewer.localeObj.getConstant("Highlight")),this.underlineItem=this.primaryToolbar.addClassToolbarItem("_underline","e-pv-underline",this.pdfViewer.localeObj.getConstant("Underline")),this.strikethroughItem=this.primaryToolbar.addClassToolbarItem("_strikethrough","e-pv-strikethrough",this.pdfViewer.localeObj.getConstant("Strikethrough")),this.squigglyItem=this.primaryToolbar.addClassToolbarItem("_squiggly","e-pv-squiggly",this.pdfViewer.localeObj.getConstant("Squiggly")),this.deleteItem=this.primaryToolbar.addClassToolbarItem("_annotation_delete","e-pv-annotation-delete",this.pdfViewer.localeObj.getConstant("Delete")+" (delete)"),this.freeTextEditItem=this.primaryToolbar.addClassToolbarItem("_annotation_freeTextEdit","e-pv-annotation-freeTextEdit",this.pdfViewer.localeObj.getConstant("Free Text")),this.inkAnnotationItem=this.primaryToolbar.addClassToolbarItem("_annotation_ink","e-pv-annotation-ink",this.pdfViewer.localeObj.getConstant("Draw Ink")),this.pdfViewerBase.getElement("_annotation_shapes").setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Add Shapes")),this.pdfViewerBase.getElement("_annotation_calibrate").setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Calibrate")),this.pdfViewerBase.getElement("_comment").setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Add Comments")),this.commentItem=this.primaryToolbar.addClassToolbarItem("_annotation_commentPanel","e-pv-annotation-comment-panel",this.pdfViewer.localeObj.getConstant("Comment Panel")+(e?" (⌘+⌥+0)":" (Ctrl+Alt+0)")),this.closeItem=this.primaryToolbar.addClassToolbarItem("_annotation_close","e-pv-annotation-tools-close",null),this.pdfViewerBase.getElement("_annotation_close").setAttribute("aria-label","Close Annotation Toolbar"),this.selectAnnotationDeleteItem(!1),this.enableTextMarkupAnnotationPropertiesTools(!1),this.enableCommentPanelTool(this.pdfViewer.enableCommentPanel)},i.prototype.onToolbarClicked=function(e){var i=this.pdfViewer.selectedItems.annotations[0];e.originalEvent.target.id&&this.pdfViewer.toolbarModule.updateStampItems();var n=e.originalEvent&&"mouse"!==e.originalEvent.pointerType&&"touch"!==e.originalEvent.pointerType;switch(this.pdfViewer.toolbarModule.deSelectCommentAnnotation(),e.originalEvent.target.id){case this.pdfViewer.element.i
10d+"_highlight":case this.pdfViewer.element.id+"_highlightIcon":this.pdfViewer.tool="",t.Browser.isDevice?this.isMobileHighlightEnabled?(this.deselectAllItemsForMobile(),this.pdfViewer.annotationModule.setAnnotationMode("None")):(this.pdfViewer.annotationModule.setAnnotationMode("Highlight"),this.primaryToolbar.selectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.textMarkupForMobile(e),this.isMobileHighlightEnabled=!0,this.isMobileUnderlineEnabled=!1,this.isMobileStrikethroughEnabled=!1,this.isMobileSquigglyEnabled=!1):(this.pdfViewer.tool="",this.resetFreeTextAnnot(),this.handleHighlight()),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent();break;case this.pdfViewer.element.id+"_underline":case this.pdfViewer.element.id+"_underlineIcon":this.pdfViewer.tool="",t.Browser.isDevice?this.isMobileUnderlineEnabled?(this.deselectAllItemsForMobile(),this.pdfViewer.annotationModule.setAnnotationMode("None")):(this.pdfViewer.annotationModule.setAnnotationMode("Underline"),this.primaryToolbar.selectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.textMarkupForMobile(e),this.isMobileUnderlineEnabled=!0,this.isMobileHighlightEnabled=!1,this.isMobileStrikethroughEnabled=!1,this.isMobileSquigglyEnabled=!1):(this.pdfViewer.tool="",this.resetFreeTextAnnot(),this.handleUnderline()),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent();break;case this.pdfViewer.element.id+"_strikethrough":case this.pdfViewer.element.id+"_strikethroughIcon":this.pdfViewer.tool="",t.Browser.isDevice?this.isMobileStrikethroughEnabled?(this.deselectAllItemsForMobile(),this.pdfViewer.annotationModule.setAnnotationMode("None")):(this.pdfViewer.annotationModule.setAnnotationMode("Strikethrough"),this.primaryToolbar.selectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.textMarkupForMobile(e),this.isMobileStrikethroughEnabled=!0,this.isMobileUnderlineEnabled=!1,this.isMobileHighlightEnabled=!1,this.isMobileSquigglyEnabled=!1):(this.pdfViewer.tool="",this.resetFreeTextAnnot(),this.handleStrikethrough()),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent();break;case this.pdfViewer.element.id+"_squiggly":case this.pdfViewer.element.id+"_squigglyIcon":this.pdfViewer.tool="",t.Browser.isDevice?this.isMobileSquigglyEnabled?(this.deselectAllItemsForMobile(),this.pdfViewer.annotationModule.setAnnotationMode("None")):(this.pdfViewer.annotationModule.setAnnotationMode("Squiggly"),this.primaryToolbar.selectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.textMarkupForMobile(e),this.isMobileUnderlineEnabled=!1,this.isMobileHighlightEnabled=!1,this.isMobileStrikethroughEnabled=!1):(this.pdfViewer.tool="",this.resetFreeTextAnnot(),this.handleSquiggly()),this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent();break;case this.pdfViewer.element.id+"_annotation_delete":case this.pdfViewer.element.id+"_annotation_deleteIcon":this.pdfViewer.annotationModule.deleteAnnotation(),this.resetFreeTextAnnot();break;
vendor: 12,456 bytes, line 10
10case this.pdfViewer.element.id+"_annotation_commentPanel":case this.pdfViewer.element.id+"_annotation_commentPanelIcon":this.inkAnnotationSelected=!1;var o=document.getElementById(this.pdfViewer.element.id+"_commantPanel");this.pdfViewer.annotation&&this.pdfViewer.annotation.textMarkupAnnotationModule&&this.pdfViewer.annotation.textMarkupAnnotationModule.showHideDropletDiv(!0),"block"===o.style.display?this.pdfViewerBase.navigationPane.closeCommentPanelContainer():(this.pdfViewer.annotationModule.showCommentsPanel(),n&&!t.isNullOrUndefined(o.firstElementChild)&&!t.isNullOrUndefined(o.firstElementChild.lastElementChild)&&o.firstElementChild.lastElementChild instanceof HTMLButtonElement&&o.firstElementChild.lastElementChild.focus());break;case this.pdfViewer.element.id+"_annotation_close":case this.pdfViewer.element.id+"_annotation_closeIcon":this.inkAnnotationSelected=!1,"block"===document.getElementById(this.pdfViewer.element.id+"_commantPanel").style.display&&this.pdfViewerBase.navigationPane.closeCommentPanelContainer(),this.showAnnotationToolbar(this.primaryToolbar.annotationItem);break;case this.pdfViewer.element.id+"_annotation_freeTextEdit":case this.pdfViewer.element.id+"_annotation_freeTextEditIcon":t.Browser.isDevice?(this.pdfViewer.annotationModule.setAnnotationMode("FreeText"),this.FreeTextForMobile()):(this.resetFreeTextAnnot(),this.handleFreeTextEditor());break;case this.pdfViewer.element.id+"_annotation_signature":case this.pdfViewer.element.id+"_annotation_signatureIcon":this.inkAnnotationSelected=!1,this.updateSignatureCount();break;case this.pdfViewer.element.id+"_annotation_ink":case this.pdfViewer.element.id+"_annotation_inkIcon":if(i&&(this.pdfViewer.annotation.triggerAnnotationUnselectEvent(),this.pdfViewer.annotation.triggerSignatureUnselectEvent()),this.pdfViewer.clearSelection(this.pdfViewer.currentPageNumber-1),this.pdfViewer.annotationModule.inkAnnotationModule){t.Browser.isDevice||this.updateInteractionTools();var r=this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber;r&&""!==r&&(this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(parseInt(r,10)),this.primaryToolbar.deSelectItem(this.inkAnnotationItem))}this.inkAnnotationSelected?this.inkAnnotationSelected=!1:(this.deselectAllItems(),this.deselectAllItemsForMobile(),this.drawInkAnnotation());break;case this.pdfViewer.element.id+"_annotation_shapesIcon":case this.pdfViewer.element.id+"_annotation_shapes":t.Browser.isDevice&&this.shapeToolMobile(e);break;case this.pdfViewer.element.id+"_annotation_calibrateIcon":case this.pdfViewer.element.id+"_annotation_calibrate":t.Browser.isDevice&&this.calibrateToolMobile(e);break;case this.pdfViewer.element.id+"_commentIcon":case this.pdfViewer.element.id+"_comment":this.pdfViewerBase.isAddComment=!0,this.pdfViewerBase.isCommentIconAdded=!0;var a=document.getElementById(this.pdfViewer.element.id+"_comment");this.deselectAllItemsForMobile(),a.classList.add("e-pv-select"),this.pdfViewer.toolbarModule.addComments(e)}},i.prototype.addInkAnnotation=function(){if(this.pdfViewer.clearSelection(this.pdfViewer.currentPageNumber-1),this.pdfViewer.annotationModule.inkAnnotationModule){var e=this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber;e&&""!==e&&(this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(parseInt(e,10)),t.isBlazor()?(this.primaryToolbar.deSelectItem(this.InkAnnotationElement),this.pdfViewerBase.focusViewerContainer()):this.primaryToolbar.deSelectItem(this.inkAnnotationItem))}this.inkAnnotationSelected?this.inkAnnotationSelected=!1:(this.deselectAllItemsInBlazor(),this.drawInkAnnotation())},i.prototype.deselectInkAnnotation=function(){t.isBlazor()?(this.primaryToolbar.deSelectItem(this.InkAnnotationElement),this.pdfViewerBase.focusViewerContainer()):this.primaryToolbar.deSelectItem(this.inkAnnotationItem)},i.prototype.drawInkAnnotation=function(){this.inkAnnotationSelected=!0,t.isBlazor()?this.primaryToolbar.selectItem(this.InkAnnotationElement):this.primaryToolbar.selectItem(this.inkAnnotationItem),this.enableSignaturePropertiesTools(!0),this.pdfViewerBase.isToolbarInkClicked=!0,this.pdfViewer.annotationModule.inkAnnotationModule.drawInk()},i.prototype.resetFreeTextAnnot=function(){if(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.freeTextAnnotationModule&&(this.pdfViewer.annotation.freeTextAnnotationModule.isNewFreeTextAnnot=!1,this.pdfViewer.annotation.freeTextAnnotationModule.isNewAddedAnnot=!1,t.Browser.isDevice||(this.freeTextEditItem&&!t.isBlazor()?this.primaryToolbar.deSelectItem(this.freeTextEditItem):t.isBlazor()&&this.primaryToolbar.deSelectItem(this.FreeTextElement),this.enableFreeTextAnnotationPropertiesTools(!1))),this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.inkAnnotationModule){var e=this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber;e&&""!==e&&(this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(parseInt(e,10)),t.isBlazor()?this.primaryToolbar.deSelectItem(this.InkAnnotationElement):this.primaryToolbar.deSelectItem(this.inkAnnotationItem))}this.inkAnnotationSelected=!1},i.prototype.updateInkannotationItems=function(){if(this.pdfViewer.annotationModule&&this.pdfViewer.annotationModule.inkAnnotationModule&&this.inkAnnotationSelected){var e=this.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber;e&&""!==e&&(this.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(parseInt(e,10)),this.pdfViewerBase.isToolbarInkClicked=!0,this.pdfViewer.tool="Ink",this.pdfViewer.clearSelection(e))}},i.prototype.showSignaturepanel=function(){this.pdfViewerBase.isToolbarSignClicked=!0,this.pdfViewerBase.signatureModule.showSignatureDialog(!0)},i.prototype.handleFreeTextEditor=function(){var e=this.pdfViewer.selectedItems.annotations[0];this.enableFreeTextAnnotationPropertiesTools(!0),e&&(this.pdfViewer.fireAnnotationUnSelect(e.annotName,e.pageIndex,e),this.pdfViewer.fireSignatureUnselect(e.annotName,e.pageIndex,e)),this.pdfViewer.clearSelection(this.pdfViewer.currentPageNumber-1),this.pdfViewer.annotationModule.textMarkupAnnotationModule&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1),this.isStrikethroughEnabled=!1,this.isHighlightEnabled=!1,this.isUnderlineEnabled=!1,this.isSquigglyEnabled=!1;var t=this.pdfViewer.annotation.freeTextAnnotationModule;t.setAnnotationType("FreeText"),t.isNewFreeTextAnnot=!0,t.isNewAddedAnnot=!0,this.updateInteractionTools(),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.selectItem(this.freeTextEditItem),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.annotationModule.freeTextAnnotationModule.fillColor),this.updateColorInIcon(this.strokeDropDownElement,this.pdfViewer.annotationModule.freeTextAnnotationModule.borderColor),this.updateColorInIcon(this.fontColorElement,this.pdfViewer.annotationModule.freeTextAnnotationModule.fontColor),this.updateFontFamilyInIcon(this.pdfViewer.annotationModule.freeTextAnnotationModule.fontFamily),this.updateFontSizeInIcon(this.pdfViewer.annotationModule.freeTextAnnotationModule.fontSize),this.updateTextAlignInIcon(this.pdfViewer.annotationModule.freeTextAnnotationModule.textAlign),this.updateFontFamily()},i.prototype.updateFontFamily=function(){this.pdfViewer.annotationModule.freeTextAnnotationModule.isBold?this.updateFontFamilyIcon("_bold",!0):this.updateFontFamilyIcon("_bold",!1),this.pdfViewer.annotationModule.freeTextAnnotationModule.isItalic?this.updateFontFamilyIcon("_italic",!0):this.updateFontFamilyIcon("_italic",!1),this.pdfViewer.annotationModule.freeTextAnnotationModule.isUnderline?(this.updateFontFamilyIcon("_underline_textinput",!0),this.updateFontFamilyIcon("_strikeout",!1)):this.updateFontFamilyIcon("_underline_textinput",!1),this.pdfViewer.annotationModule.freeTextAnnotationModule.isStrikethrough?(this.updateFontFamilyIcon("_strikeout",!0),this.updateFontFamilyIcon("_underline_textinput",!1)):this.updateFontFamilyIcon("_strikeout",!1)},i.prototype.updateFontFamilyIcon=function(e,t){var i=document.getElementById(this.pdfViewer.element.id+e);t?i.classList.add("textprop-option-active"):i.classList.remove("textprop-option-active")},i.prototype.showAnnotationToolbar=function(e,i,n){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){if(this.isToolbarHidden){var o=void 0;this.toolbarElement&&(o=this.toolbarElement.style.display,this.toolbarElement.style.display="block"),i||(this.pdfViewer.isAnnotationToolbarVisible=!0),e?this.primaryToolbar.selectItem(e):this.pdfViewer.enableToolbar&&this.primaryToolbar.selectItem(this.primaryToolbar.annotationItem),"none"===o&&this.adjustViewer(!0)}else{var r=this.pdfViewer.annotationModule;e?this.primaryToolbar.deSelectItem(e):this.pdfViewer.enableToolbar&&this.primaryToolbar.deSelectItem(this.primaryToolbar.annotationItem),this.adjustViewer(!1),r&&r.textMarkupAnnotationModule&&r.textMarkupAnnotationModule.currentTextMarkupAnnotation?this.enablePropertiesTool(r):(this.deselectAllItems(),this.deselectAllItemsForMobile()),this.toolbarElement.style.display="none",i||(this.pdfViewer.isAnnotationToolbarVisible=!1),this.pdfViewerBase.isPanMode?this.primaryToolbar.updateInteractionTools(!1):this.primaryToolbar.updateInteractionTools(!0)}this.pdfViewer.magnification&&"fitToPage"===this.pdfViewer.magnification.fitType&&this.pdfViewer.magnification.fitToPage(),this.enableAnnotationAddTools(!0),this.isToolbarHidden=!this.isToolbarHidden}else{var a=this.pdfViewer.element.id+"_annotationIcon",s=document.getElementById(a);(s.parentElement.classList.contains("e-pv-select")&&!n||!s.parentElement.classList.contains("e-pv-select")&&n)&&(this.createAnnotationToolbarForMobile(a),this.pdfViewer.isAnnotationToolbarVisible=n)}},i.prototype.enablePropertiesTool=function(e){this.isHighlightEnabled=!1,this.isUnderlineEnabled=!1,this.isStrikethroughEnabled=!1,this.pdfViewerBase.isTextMarkupAnnotationModule()&&(e.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.enableTextMarkupAnnotationPropertiesTools(!0),this.updateColorInIcon(this.colorDropDownElement,e.textMarkupAnnotationModule.currentTextMarkupAnnotation.color),this.selectAnnotationDeleteItem(!0)},i.prototype.applyAnnotationToolbarSettings=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;e&&(-1!==e.indexOf("HighlightTool")?this.showHighlightTool(!0,0,0):this.showHighlightTool(!1,0,0),-1!==e.indexOf("UnderlineTool")?this.showUnderlineTool(!0,1,1):this.showUnderlineTool(!1,1,1),-1!==e.indexOf("StrikethroughTool")?this.showStrikethroughTool(!0,2,2):this.showStrikethroughTool(!1,2,2),-1!==e.indexOf("SquigglyTool")?this.showSquigglyTool(!0,3,3):this.showSquigglyTool(!1,3,3),-1!==e.indexOf("ShapeTool")?this.showShapeAnnotationTool(!0,5,5):this.showShapeAnnotationTool(!1,5,5),-1!==e.indexOf("CalibrateTool")?this.showCalibrateAnnotationTool(!0,7,7):this.showCalibrateAnnotationTool(!1,7,7),-1!==e.indexOf("ColorEditTool")?this.showColorEditTool(!0,23,23):this.showColorEditTool(!1,23,23),-1!==e.indexOf("StrokeColorEditTool")?this.showStrokeColorEditTool(!0,24,24):this.showStrokeColorEditTool(!1,24,24),-1!==e.indexOf("ThicknessEditTool")?this.showThicknessEditTool(!0,25,25):this.showThicknessEditTool(!1,25,25),-1!==e.indexOf("OpacityEditTool")?this.showOpacityEditTool(!0,26,26):this.showOpacityEditTool(!1,26,26),-1!==e.indexOf("AnnotationDeleteTool")?this.showAnnotationDeleteTool(!0,28,28):this.showAnnotationDeleteTool(!1,28,28),-1!==e.indexOf("StampAnnotationTool")?this.showStampAnnotationTool(!0,11,11):this.showStampAnnotationTool(!1,11,11),-1!==e.indexOf("HandWrittenSignatureTool")?this.showSignatureTool(!0,13,13):this.showSignatureTool(!1,13,13),-1!==e.indexOf("FreeTextAnnotationTool")?this.showFreeTextAnnotationTool(!0,9,9):this.showFreeTextAnnotationTool(!1,9,9),-1!==e.indexOf("FontFamilyAnnotationTool")?this.showFontFamilyAnnotationTool(!0,17,17):this.showFontFamilyAnnotationTool(!1,17,17),-1!==e.indexOf("FontSizeAnnotationTool")?this.showFontSizeAnnotationTool(!0,18,18):this.showFontSizeAnnotationTool(!1,18,18),-1!==e.indexOf("FontStylesAnnotationTool")?this.show
10FontStylesAnnotationTool(!0,21,21):this.showFontStylesAnnotationTool(!1,21,21),-1!==e.indexOf("FontAlignAnnotationTool")?this.showFontAlignAnnotationTool(!0,20,20):this.showFontAlignAnnotationTool(!1,20,20),-1!==e.indexOf("FontColorAnnotationTool")?this.showFontColorAnnotationTool(!0,19,19):this.showFontColorAnnotationTool(!1,19,19),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,29,29):this.showCommentPanelTool(!1,29,29),this.showInkAnnotationTool(),this.showSeparator())},i.prototype.applyMobileAnnotationToolbarSettings=function(){var e=this.pdfViewer.toolbarSettings.annotationToolbarItems;if(e){-1!==e.indexOf("HighlightTool")?this.showHighlightTool(!0,2,2):this.showHighlightTool(!1,2,2),-1!==e.indexOf("UnderlineTool")?this.showUnderlineTool(!0,3,3):this.showUnderlineTool(!1,3,3),-1!==e.indexOf("StrikethroughTool")?this.showStrikethroughTool(!0,4,4):this.showStrikethroughTool(!1,4,4),-1!==e.indexOf("SquigglyTool")?this.showSquigglyTool(!0,5,5):this.showSquigglyTool(!1,5,5),-1!==e.indexOf("ShapeTool")?this.showShapeAnnotationTool(!0,7,7):this.showShapeAnnotationTool(!1,7,7),-1!==e.indexOf("CalibrateTool")?this.showCalibrateAnnotationTool(!0,9,9):this.showCalibrateAnnotationTool(!1,9,9);var t=this.pdfViewer.toolbarSettings.toolbarItems;t&&-1!==t.indexOf("CommentTool")?this.showStickyNoteToolInMobile(!0):this.showStickyNoteToolInMobile(!1),-1!==e.indexOf("StampAnnotationTool")?this.showStampAnnotationTool(!0,13,13):this.showStampAnnotationTool(!1,13,13),-1!==e.indexOf("HandWrittenSignatureTool")?this.showSignatureTool(!0,15,15):this.showSignatureTool(!1,15,15),-1!==e.indexOf("FreeTextAnnotationTool")?this.showFreeTextAnnotationTool(!0,11,11):this.showFreeTextAnnotationTool(!1,11,11),-1!==e.indexOf("CommentPanelTool")?this.showCommentPanelTool(!0,19,19):this.showCommentPanelTool(!1,19,19),-1!==e.indexOf("InkAnnotationTool")?this.showInkTool(!0,17,17):this.showInkTool(!1,17,17),this.showSeparatorInMobile()}},i.prototype.showStickyNoteToolInMobile=function(e){this.isCommentBtnVisible=e,this.applyHideToToolbar(e,0,0)},i.prototype.showSeparatorInMobile=function(){this.isCommentBtnVisible||this.applyHideToToolbar(!1,1,1),this.isHighlightBtnVisible||this.isUnderlineBtnVisible||this.isStrikethroughBtnVisible||this.isSquigglyBtnVisible||this.applyHideToToolbar(!1,6,6),this.isShapeBtnVisible||this.applyHideToToolbar(!1,8,8),this.isCalibrateBtnVisible||this.applyHideToToolbar(!1,10,10),this.isFreeTextBtnVisible||this.applyHideToToolbar(!1,12,12),this.isStampBtnVisible||this.applyHideToToolbar(!1,14,14),this.isSignatureBtnVisible||this.applyHideToToolbar(!1,16,16),this.isInkBtnVisible||this.applyHideToToolbar(!1,18,18)},i.prototype.showInkAnnotationTool=function(){-1!==this.pdfViewer.toolbarSettings.annotationToolbarItems.indexOf("InkAnnotationTool")?this.showInkTool(!0,14,14):this.showInkTool(!1,14,14)},i.prototype.showSeparator=function(){this.isHighlightBtnVisible||this.isUnderlineBtnVisible||this.isStrikethroughBtnVisible||this.isSquigglyBtnVisible||this.applyHideToToolbar(!1,4,4),this.isShapeBtnVisible||this.applyHideToToolbar(!1,6,6),this.isCalibrateBtnVisible||this.applyHideToToolbar(!1,8,8),this.isFreeTextBtnVisible||this.applyHideToToolbar(!1,10,10),this.isStampBtnVisible||this.applyHideToToolbar(!1,12,12),this.isSignatureBtnVisible||this.applyHideToToolbar(!1,14,14),this.isInkBtnVisible||this.applyHideToToolbar(!1,16,16),this.isFontFamilyToolVisible||this.isFontSizeToolVisible||this.isFontColorToolVisible||this.isFontAlignToolVisible||this.isFontStylesToolVisible||this.applyHideToToolbar(!1,22,22),(this.isColorToolVisible||this.isStrokeColorToolVisible||this.isThicknessToolVisible||this.isOpacityToolVisible)&&this.isDeleteAnnotationToolVisible||this.applyHideToToolbar(!1,27,27)},i.prototype.showHighlightTool=function(e,t,i){this.isHighlightBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showUnderlineTool=function(e,t,i){this.isUnderlineBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showStrikethroughTool=function(e,t,i){this.isStrikethroughBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showSquigglyTool=function(e,t,i){this.isSquigglyBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showShapeAnnotationTool=function(e,t,i){this.isShapeBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showCalibrateAnnotationTool=function(e,t,i){this.isCalibrateBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFreeTextAnnotationTool=function(e,t,i){this.isFreeTextBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showStampAnnotationTool=function(e,t,i){this.isStampBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showSignatureTool=function(e,t,i){this.isSignatureBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showInkTool=function(e,t,i){this.isInkBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFontFamilyAnnotationTool=function(e,t,i){this.isFontFamilyToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFontSizeAnnotationTool=function(e,t,i){this.isFontSizeToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFontAlignAnnotationTool=function(e,t,i){this.isFontAlignToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFontColorAnnotationTool=function(e,t,i){this.isFontColorToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showFontStylesAnnotationTool=function(e,t,i){this.isFontStylesToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showColorEditTool=function(e,t,i){this.isColorToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showStrokeColorEditTool=function(e,t,i){this.isStrokeColorToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showThicknessEditTool=function(e,t,i){this.isThicknessToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showOpacityEditTool=function(e,t,i){this.isOpacityToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showAnnotationDeleteTool=function(e,t,i){this.isDeleteAnnotationToolVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.showCommentPanelTool=function(e,t,i){this.isCommentPanelBtnVisible=e,this.applyHideToToolbar(e,t,i)},i.prototype.applyHideToToolbar=function(e,i,n){for(var o=!e,r=i;r<=n;r++){var a=void 0,s=this.propertyToolbar&&this.propertyToolbar.element?this.propertyToolbar.element:null,l=this.toolbar&&this.toolbar.element?this.toolbar.element:null;if(l&&l.children&&l.children.length>0?a=this.toolbar:t.Browser.isDevice&&s&&s.children&&s.children.length>0&&(a=this.propertyToolbar),a&&a.items[parseInt(r.toString(),10)]){var d=a.items[parseInt(r.toString(),10)].cssClass;
vendor: 76,683 bytes, line 10
10if(d&&""!==d){var A=a.element.querySelector("."+d);A&&this.toolbar.hideItem(A,o)}else a.hideItem(r,o)}}},i.prototype.adjustViewer=function(e){var i,n,o;if(t.isBlazor()){i=this.pdfViewer.element.querySelector(".e-pv-sidebar-toolbar-splitter"),n=this.pdfViewer.element.querySelector(".e-pv-toolbar");var r=this.pdfViewer.element.querySelector(".e-pv-annotation-toolbar");o=this.getToolbarHeight(r)}else i=this.pdfViewerBase.getElement("_sideBarToolbarSplitter"),n=this.pdfViewerBase.getElement("_toolbarContainer"),o=this.getToolbarHeight(this.toolbarElement);var a=this.getToolbarHeight(n),s=this.pdfViewerBase.navigationPane.sideBarToolbar,l=this.pdfViewerBase.navigationPane.sideBarContentContainer,d=this.pdfViewerBase.navigationPane.commentPanelContainer,A=this.pdfViewerBase.navigationPane.commentPanelResizer,h="";e?(this.pdfViewer.enableToolbar?(t.isNullOrUndefined(s)||(s.style.top=a+o+"px"),t.isNullOrUndefined(l)||(l.style.top=a+o+"px"),t.isNullOrUndefined(i)||(i.style.top=a+o+"px"),t.isNullOrUndefined(d)||(d.style.top=a+o+"px"),t.isNullOrUndefined(A)||(A.style.top=a+o+"px")):(s.style.top=o+"px",l.style.top=o+"px",i.style.top=o+"px",d.style.top=o+"px",A.style.top=a+o+"px"),this.pdfViewer.enableToolbar||(a=0),this.pdfViewerBase.viewerContainer.style.height=this.updateViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),o+a)+"px",h=this.getNavigationToolbarHeight(o+a),t.isNullOrUndefined(s)||(s.style.height=h),t.isNullOrUndefined(i)||(i.style.height=h),t.isNullOrUndefined(A)||(A.style.height=h),t.isNullOrUndefined(l)||(l.style.height=h)):(this.pdfViewer.enableToolbar?(s.style.top=a+"px",l.style.top=a+"px",i.style.top=a+"px",d.style.top=a+"px",A.style.top=a+"px"):(s.style.top="1px",s.style.height="100%",l.style.top="1px",l.style.height="100%",i.style.top="1px",i.style.height="100%",d.style.top="1px",d.style.height="100%",A.style.top="1px",A.style.height="100%"),this.pdfViewer.enableToolbar||(a=0),this.pdfViewerBase.viewerContainer.style.height=this.updateViewerHeight(this.getElementHeight(this.pdfViewerBase.viewerContainer),o)+"px",h=this.getNavigationToolbarHeight(a),t.isNullOrUndefined(s)||(s.style.height=h),t.isNullOrUndefined(i)||(i.style.height=h),t.isNullOrUndefined(A)||(A.style.height=h),t.isNullOrUndefined(l)||(l.style.height=h),"0px"===this.pdfViewerBase.viewerContainer.style.height&&(this.pdfViewerBase.viewerContainer.style.height=parseInt(this.pdfViewer.element.style.height,10)-parseInt(s.style.top,10)+"px"))},i.prototype.updateContentContainerHeight=function(e,t){var i;if(t){var n=this.pdfViewer.element.querySelector(".e-pv-annotation-toolbar");i=this.getToolbarHeight(n)}else i=this.getToolbarHeight(this.toolbarElement);var o=this.pdfViewerBase.navigationPane.sideBarContentContainer.getBoundingClientRect();0!==o.height&&(this.pdfViewerBase.navigationPane.sideBarContentContainer.style.height=e?o.height-i+"px":o.height+i+"px")},i.prototype.getToolbarHeight=function(e){if(!t.isNullOrUndefined(e)){var i=e.getBoundingClientRect().height;return 0===i&&e===this.pdfViewerBase.getElement("_toolbarContainer")&&(i=parseFloat(window.getComputedStyle(e).height)+this.toolbarBorderHeight),i}return null},i.prototype.getNavigationToolbarHeight=function(e){var t=this.pdfViewer.element.getBoundingClientRect().height;return 0!==t?t-e+"px":""},i.prototype.handleHighlight=function(){this.isHighlightEnabled?this.deselectAllItems():(this.updateInteractionTools(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations("Highlight"),this.primaryToolbar.selectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightColor=null,this.setCurrentColorInPicker(),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.annotationModule.textMarkupAnnotationModule.highlightColor),this.isHighlightEnabled=!0,this.isUnderlineEnabled=!1,this.isStrikethroughEnabled=!1,this.isSquigglyEnabled=!1)},i.prototype.handleUnderline=function(){this.isUnderlineEnabled?this.deselectAllItems():(this.updateInteractionTools(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations("Underline"),this.primaryToolbar.selectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineColor=null,this.setCurrentColorInPicker(),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.annotationModule.textMarkupAnnotationModule.underlineColor),this.isUnderlineEnabled=!0,this.isHighlightEnabled=!1,this.isStrikethroughEnabled=!1,this.isSquigglyEnabled=!1)},i.prototype.handleStrikethrough=function(){this.isStrikethroughEnabled?this.deselectAllItems():(this.updateInteractionTools(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations("Strikethrough"),this.primaryToolbar.selectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughColor=null,this.setCurrentColorInPicker(),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.annotationModule.textMarkupAnnotationModule.strikethroughColor),this.isStrikethroughEnabled=!0,this.isHighlightEnabled=!1,this.isUnderlineEnabled=!1,this.isSquigglyEnabled=!1)},i.prototype.handleSquiggly=function(){this.isSquigglyEnabled?this.deselectAllItems():(this.updateInteractionTools(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations("Squiggly"),this.primaryToolbar.selectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.enableTextMarkupAnnotationPropertiesTools(!0),this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyColor=null,this.setCurrentColorInPicker(),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.annotationModule.textMarkupAnnotationModule.squigglyColor),this.isSquigglyEnabled=!0,this.isUnderlineEnabled=!1,this.isHighlightEnabled=!1,this.isStrikethroughEnabled=!1)},i.prototype.deselectAllItemsInBlazor=function(){this.pdfViewerBase.isTextMarkupAnnotationModule()&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1,this.pdfViewer.annotationModule.textMarkupAnnotationModule.showHideDropletDiv(!0)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.primaryToolbar.deSelectItem(this.HighlightElement),this.primaryToolbar.deSelectItem(this.UnderlineElement),this.primaryToolbar.deSelectItem(this.StrikethroughElement),this.primaryToolbar.deSelectItem(this.FreeTextElement),this.primaryToolbar.deSelectItem(this.InkAnnotationElement),this.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateTextMarkupButtons",!1,!1,!1)),this.resetFreeTextAnnot(),this.clearTextMarkupMode(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.tool="",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.enableTextMarkupAnnotationPropertiesTools(!1),this.enableFreeTextAnnotationPropertiesTools(!1),this.updateColorInIcon(this.colorDropDownElement,"#000000"),this.updateColorInIcon(this.strokeDropDownElement,"#000000"),this.updateColorInIcon(this.fontColorElement,"#000000"),this.selectAnnotationDeleteItem(!1)),this.pdfViewer.annotationModule&&(this.pdfViewer.annotationModule.freeTextAnnotationModule.isNewFreeTextAnnot=!1)},i.prototype.deselectAllItemsForMobile=function(){if(t.Browser.isDevice||!this.pdfViewer.enableDesktopMode){t.isBlazor();this.isMobileHighlightEnabled=!1,this.isMobileUnderlineEnabled=!1,this.isMobileStrikethroughEnabled=!1,this.isMobileSquigglyEnabled=!1,this.pdfViewerBase.isTextMarkupAnnotationModule()&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1,this.pdfViewer.annotationModule.textMarkupAnnotationModule.showHideDropletDiv(!0)),this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem),this.resetFreeTextAnnot(),this.clearTextMarkupMode(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.tool="",this.selectAnnotationDeleteItem(!1),this.pdfViewer.annotationModule&&(this.pdfViewer.annotationModule.freeTextAnnotationModule.isNewFreeTextAnnot=!1)}},i.prototype.deselectAllItems=function(){var e=t.isBlazor();this.isHighlightEnabled=!1,this.isUnderlineEnabled=!1,this.isStrikethroughEnabled=!1,this.isSquigglyEnabled=!1,this.pdfViewerBase.isTextMarkupAnnotationModule()&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1,this.pdfViewer.annotationModule.textMarkupAnnotationModule.showHideDropletDiv(!0)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(e?(this.primaryToolbar.deSelectItem(this.pdfViewer.toolbar.SelectToolElement),this.primaryToolbar.selectItem(this.pdfViewer.toolbar.PanElement),this.primaryToolbar.deSelectItem(this.HighlightElement),this.primaryToolbar.deSelectItem(this.UnderlineElement),this.primaryToolbar.deSelectItem(this.StrikethroughElement),this.primaryToolbar.deSelectItem(this.SquigglyElement),this.primaryToolbar.deSelectItem(this.FreeTextElement),this.primaryToolbar.deSelectItem(this.InkAnnotationElement)):(this.primaryToolbar.deSelectItem(this.highlightItem),this.primaryToolbar.deSelectItem(this.underlineItem),this.primaryToolbar.deSelectItem(this.strikethroughItem),this.primaryToolbar.deSelectItem(this.squigglyItem),this.primaryToolbar.deSelectItem(this.freeTextEditItem),this.primaryToolbar.deSelectItem(this.inkAnnotationItem))),this.resetFreeTextAnnot(),this.clearTextMarkupMode(),this.clearShapeMode(),this.clearMeasureMode(),this.pdfViewer.tool="",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.enableTextMarkupAnnotationPropertiesTools(!1),this.enableFreeTextAnnotationPropertiesTools(!1),this.updateColorInIcon(this.colorDropDownElement,"#000000"),this.updateColorInIcon(this.strokeDropDownElement,"#000000"),this.updateColorInIcon(this.fontColorElement,"#000000"),this.selectAnnotationDeleteItem(!1)),this.pdfViewer.annotationModule&&(this.pdfViewer.annotationModule.freeTextAnnotationModule.isNewFreeTextAnnot=!1)},i.prototype.updateInteractionTools=function(){this.pdfViewer.enableTextSelection?(this.pdfViewerBase.initiateTextSelectMode(),t.Browser.isDevice||this.pdfViewer.toolbar.updateInteractionTools(!0)):t.Browser.isDevice||this.pdfViewer.toolbar.updateInteractionTools(!1)},i.prototype.selectAnnotationDeleteItem=function(e,i){if(t.isBlazor()||t.Browser.isDevice){if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){if(e){var n=this.pdfViewer.annotationModule.findCurrentAnnotation();n&&(n.annotationSettings&&n.annotationSettings.isLock?this.pdfViewer.annotationModule.checkAllowedInteractions("Delete",n)?this.pdfViewerBase.blazorUIAdaptor.EnableDeleteOption(e):this.pdfViewerBase.blazorUIAdaptor.EnableDeleteOption(!1):this.pdfViewerBase.blazorUIAdaptor&&this.pdfViewerBase.blazorUIAdaptor.EnableDeleteOption(e))}else this.pdfViewerBase.blazorUIAdaptor&&this.pdfViewerBase.blazorUIAdaptor.EnableDeleteOption(e);i&&this.pdfViewerBase.focusViewerContainer()}}else this.toolbar&&(e?(n=this.pdfViewer.annotationModule.findCurrentAnnotation())&&(n.annotationSettings&&n.annotationSettings.isLock?this.pdfViewer.annotationModule.checkAllowedInteractions("Delete",n)?this.enableItems(this.deleteItem.parentElement,e):this.enableItems(this.deleteItem.parentElement,!1):this.enableItems(this.deleteItem.parentElement,e)):this.enableItems(this.deleteItem.parentElement,e))},i.prototype.enableTextMarkupAnnotationPropertiesTools=function(e){t.Browser.isDevice||(t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.enableTextMarkupAnnotationPropertiesTools(e):(this.enableItems(this.colorDropDownElement.parentElement,e),this.enableItems(this.opacityDropDownElement.parentElement,e),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(this.enableItems(this.strokeDropDownElement.parentElement,!1),this.enableItems(this.thicknessElement.parentElement,!1),this.enableItems(this.fontFamilyElement.parentElement,!1),this.enableItems(this.fontSizeElement.parentElement,!1),this.enableItems(this.fontColorElement.parentElement,!1),this.enableItems(this.textAlignElement.parentElement,!1),this.enableItems(this.textPropElement.parentElement,!1))))},i.prototype.checkAnnotationPropertiesChange=function(){var e=this.pdfViewer.selectedItems.annotations[0];return!(e&&e.annotationSettings&&e.annotationSettings.isLock)||!!this.pdfViewer.annotationModule.checkAllowedInteractions("PropertyChange",e)},i.prototype.enableAnnotationPropertiesTools=function(e){if(!t.Browser.isDevice){var i=this.checkAnnotationPropertiesChange();e||(i=!0),t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.enableAnnotationPropertiesTool(e,i):i&&(this.pdfViewer.selectedItems.annotations[0]&&"Line"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType?this.enableItems(this.colorDropDownElement.parentElement,!1):this.enableItems(this.colorDropDownElement.parentElement,e),this.enableItems(this.opacityDropDownElement.parentElement,e),this.enableItems(this.strokeDropDownElement.parentElement,e),this.enableItems(this.thicknessElement.parentElement,e),this.pdfViewer.enableShapeLabel&&(this.enableItems(this.fontFamilyElement.parentElement,e),this.enableItems(this.fontSizeElement.parentElement,e),this.enableItems(this.fontColorElement.parentElement,e)),this.enableItems(this.textAlignElement.parentElement,!1),this.enableItems(this.textPropElement.parentElement,!1))}},i.prototype.enableSignaturePropertiesTools=function(e){if(!t.Browser.isDevice){var i=this.checkAnnotationPropertiesChange();e||(i=!0),t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.enableSignaturePropertiesTools(e,i):i&&(this.enableItems(this.colorDropDownElement.parentElement,!1),this.enableItems(this.opacityDropDownElement.parentElement,e),this.enableItems(this.strokeDropDownElement.parentElement,e),this.enableItems(this.thicknessElement.parentElement,e),this.enableItems(this.textAlignElement.parentElement,!1),this.enableItems(this.textPropElement.parentElement,!1),this.enableItems(this.fontFamilyElement.parentElement,!1),this.enableItems(this.fontSizeElement.parentElement,!1),this.enableItems(this.fontColorElement.parentElement,!1),this.enableItems(this.textAlignElement.parentElement,!1))}},i.prototype.enableStampAnnotationPropertiesTools=function(e){var i=this.checkAnnotationPropertiesChange();e||(i=!0),t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.enableStampAnnotationPropertiesTools(e,i):i&&(this.enableItems(this.opacityDropDownElement.parentElement,e),this.enableItems(this.colorDropDownElement.parentElement,!1),this.enableItems(this.strokeDropDownElement.parentElement,!1),this.enableItems(this.thicknessElement.parentElement,!1),this.enableItems(this.fontFamilyElement.parentElement,!1),this.enableItems(this.fontSizeElement.parentElement,!1),this.enableItems(this.fontColorElement.parentElement,!1),this.enableItems(this.textAlignElement.parentElement,!1),this.enableItems(this.textPropElement.parentElement,!1))},i.prototype.enableFreeTextAnnotationPropertiesTools=function(e){var i=this.checkAnnotationPropertiesChange();e||(i=!0),t.isBlazor()?this.pdfViewerBase.blazorUIAdaptor.enableFreeTextAnnotationPropertiesTools(e,i):i&&(this.enableItems(this.opacityDropDownElement.parentElement,e),this.enableItems(this.colorDropDownElement.parentElement,e),this.enableItems(this.strokeDropDownElement.parentElement,e),this.enableItems(this.thicknessElement.parentElement,e),this.enableItems(this.fontFamilyElement.parentElement,e),this.enableItems(this.fontSizeElement.parentElement,e),this.enableItems(this.fontColorElement.parentElement,e),this.enableItems(this.textAlignElement.parentElement,e),this.enableItems(this.textPropElement.parentElement,e))},i.prototype.enableAnnotationAddTools=function(e){this.toolbar&&!t.Browser.isDevice&&(this.pdfViewer.enableTextMarkupAnnotation&&(this.enableItems(this.highlightItem.parentElement,e),this.enableItems(this.underlineItem.parentElement,e),this.enableItems(this.strikethroughItem.parentElement,e),this.enableItems(this.squigglyItem.parentElement,e)),this.pdfViewer.enableShapeAnnotation&&this.enableItems(this.shapeElement.parentElement,e),this.pdfViewer.enableStampAnnotations&&this.toolbar.enableItems(this.stampElement.parentElement,e),this.pdfViewer.enableMeasureAnnotation&&this.pdfViewerBase.isCalibrateAnnotationModule()&&this.enableItems(this.calibrateElement.parentElement,e),this.pdfViewer.enableFreeText&&this.enableItems(this.freeTextEditItem.parentElement,e),this.pdfViewer.enableHandwrittenSignature&&this.enableItems(this.handWrittenSignatureItem.parentElement,e),this.pdfViewer.enableInkAnnotation&&this.enableItems(this.inkAnnotationItem.parentElement,e),this.pdfViewer.enableCommentPanel&&this.enableCommentPanelTool(e))},i.prototype.isAnnotationButtonsEnabled=function(){var e=!1;return(this.isHighlightEnabled||this.isUnderlineEnabled||this.isStrikethroughEnabled||this.isSquigglyEnabled)&&(e=!0),e},i.prototype.enableCommentPanelTool=function(e){this.toolbar&&this.enableItems(this.commentItem.parentElement,e)},i.prototype.updateToolbarItems=function(){this.pdfViewer.enableTextMarkupAnnotation?this.enableTextMarkupAddTools(!0):this.enableTextMarkupAddTools(!1),this.enableItems(this.shapeElement.parentElement,this.pdfViewer.enableShapeAnnotation),this.toolbar.enableItems(this.stampElement.parentElement,this.pdfViewer.enableStampAnnotations),this.enableItems(this.calibrateElement.parentElement,this.pdfViewer.enableMeasureAnnotation),this.enableItems(this.freeTextEditItem.parentElement,this.pdfViewer.enableFreeText),this.enableItems(this.handWrittenSignatureItem.parentElement,this.pdfViewer.enableHandwrittenSignature),this.enableItems(this.inkAnnotationItem.parentElement,this.pdfViewer.enableInkAnnotation),this.closeItem.setAttribute("tabindex","0")},i.prototype.enableTextMarkupAddTools=function(e){this.enableItems(this.highlightItem.parentElement,e),this.enableItems(this.underlineItem.parentElement,e),this.enableItems(this.strikethroughItem.parentElement,e),this.enableItems(this.squigglyItem.parentElement,e)},i.prototype.updateAnnnotationPropertyItems=function(){t.isBlazor()?(this.colorDropDownElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-color-container"),this.strokeDropDownElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-stroke-container"),this.fontColorElementInBlazor=this.pdfViewer.element.querySelector(".e-pv-annotation-textcolor-container"),1===this.pdfViewer.selectedItems.annotations.length?(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.colorDropDownElementInBlazor,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.fill,"fillColor")),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.strokeDropDownElementInBlazor,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor,"strokeColor")),"FreeText"===this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType&&(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.fontColorElementInBlazor,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].fontColor,"fontColor")),this.pdfViewerBase.blazorUIAdaptor.updateFontFamilyInIcon(this.pdfViewer.selectedItems.annotations[0].fontFamily),this.pdfViewerBase.blazorUIAdaptor.updateFontSizeInIcon(this.pdfViewer.selectedItems.annotations[0].fontSize))):(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.colorDropDownElementInBlazor,"#000000"),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.strokeDropDownElementInBlazor,"#000000"),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.fontColorElementInBlazor,"#000000"))):1===this.pdfViewer.selectedItems.annotations.length?(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.colorDropDownElement,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.fill,"fillColor")),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.strokeDropDownElement,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeColor,"strokeColor")),"FreeText"!==this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType||this.pdfViewer.selectedItems.annotations[0].isLock||(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.fontColorElement,this.getColorHexValue(this.pdfViewer.selectedItems.annotations[0].fontColor,"fontColor")),this.pdfViewer.toolbar.annotationToolbarModule.updateFontFamilyInIcon(this.pdfViewer.selectedItems.annotations[0].fontFamily),this.pdfViewer.toolbar.annotationToolbarModule.updateFontSizeInIcon(this.pdfViewer.selectedItems.annotations[0].fontSize),this.pdfViewer.toolbar.annotationToolbarModule.updateTextAlignInIcon(this.pdfViewer.selectedItems.annotations[0].textAlign))):(this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.colorDropDownElement,"#000000"),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.strokeDropDownElement,"#000000"),this.pdfViewer.toolbar.annotationToolbarModule.updateColorInIcon(this.fontColorElement,"#000000"))},i.prototype.getColorHexValue=function(e,i){return"#ffffff00"===e&&(e="#ffffff"),"red"===e.toLowerCase()&&(e="#FF0000"),"transparent"!==e?t.isBlazor()?e:this.colorPalette.getValue(e,"hex"):"fontColor"===i||"strokeColor"===i?"#000000":"#ffffff"},i.prototype.setColorInPicker=function(e,t){e&&e.setProperties({value:t},!0)},i.prototype.resetToolbar=function(){this.updateToolbarItems(),(this.pdfViewer.isAnnotationToolbarOpen||this.pdfViewer.isAnnotationToolbarVisible)&&this.pdfViewer.enableAnnotationToolbar?(this.adjustViewer(!1),this.toolbarElement.style.display="",this.isToolbarHidden=!1,this.adjustViewer(!0),this.primaryToolbar.selectItem(this.primaryToolbar.annotationItem),this.pdfViewer.toolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule&&this.pdfViewer.toolbarModule.annotationToolbarModule.toolbar.refreshOverflow(),this.pdfViewer.isAnnotationToolbarVisible=!0):(this.toolbarElement.style.display="none",this.isToolbarHidden=!0,this.pdfViewer.isAnnotationToolbarVisible=!1)},i.prototype.clearTextMarkupMode=function(){this.pdfViewerBase.isTextMarkupAnnotationModule()&&(t.isBlazor()&&(this.pdfViewer.annotationModule.textMarkupAnnotationModule.isTextMarkupAnnotationMode=!1),this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode="")},i.prototype.clearShapeMode=function(){this.pdfViewerBase.isShapeAnnotationModule()&&(this.pdfViewer.annotation.shapeAnnotationModule.currentAnnotationMode="")},i.prototype.clearMeasureMode=function(){this.pdfViewerBase.isCalibrateAnnotationModule()&&(this.pdfViewer.annotation.measureAnnotationModule.currentAnnotationMode="")},i.prototype.clear=function(){this.deselectAllItems(),this.deselectAllItemsForMobile()},i.prototype.destroy=function(){this.destroyComponent(),this.shapeDropDown&&this.shapeDropDown.destroy(),this.calibrateDropDown&&this.calibrateDropDown.destroy(),this.fontColorDropDown&&this.fontColorDropDown.destroy(),this.textAlignDropDown&&this.textAlignDropDown.destroy(),this.colorDropDown&&this.colorDropDown.destroy(),this.strokeDropDown&&this.strokeDropDown.destroy(),this.thicknessDropDown&&this.thicknessDropDown.destroy(),this.opacityDropDown&&this.opacityDropDown.destroy(),this.textPropertiesDropDown&&this.textPropertiesDropDown.destroy(),this.toolbar&&this.toolbar.destroy();var e=document.getElementById(this.pdfViewer.element.id+"_stampElement");e&&e.parentElement.removeChild(e)},i.prototype.destroyComponent=function(){for(var e=[this.highlightItem,this.underlineItem,this.strikethroughItem,this.squigglyItem,this.lineElement,this.arrowElement,this.rectangleElement,this.circleElement,this.polygonElement,this.calibrateDistance,this.calibrateArea,this.calibrateRadius,this.calibrateVolume,this.calibratePerimeter,this.freeTextEditItem,this.stampElement,this.handWrittenSignatureItem,this.inkAnnotationItem,this.fontFamilyElement,this.fontSizeElement,this.alignLeftElement,this.alignRightElement,this.alignCenterElement,this.alignJustifyElement,this.boldElement,this.italicElement,this.fontStyleStrikethroughItem,this.fontStyleUnderlineItem,this.deleteItem,this.commentItem,this.shapeDropDown?this.shapeDropDown.activeElem[0]:null,this.calibrateDropDown?this.calibrateDropDown.activeElem[0]:null,this.fontColorDropDown?this.fontColorDropDown.activeElem[0]:null,this.textAlignDropDown?this.textAlignDropDown.activeElem[0]:null,this.colorDropDown?this.colorDropDown.activeElem[0]:null,this.strokeDropDown?this.strokeDropDown.activeElem[0]:null,this.thicknessDropDown?this.thicknessDropDown.activeElem[0]:null,this.opacityDropDown?this.opacityDropDown.activeElem[0]:null,this.textPropertiesDropDown?this.textPropertiesDropDown.activeElem[0]:null],t=0;t<e.length;t++)e[parseInt(t.toString(),10)]&&this.destroyDependentComponent(e[parseInt(t.toString(),10)])},i.prototype.destroyDependentComponent=function(e){if(e.ej2_instances)for(var t=e.ej2_instances.length-1;t>=0;t--)e.ej2_instances[parseInt(t.toString(),10)].destroy()},i.prototype.getElementHeight=function(e){try{return e.getBoundingClientRect().height}catch(e){return 0}},i.prototype.updateViewerHeight=function(e,t){return this.getElementHeight(this.pdfViewer.element)-t},i.prototype.resetViewerHeight=function(e,t){return e+t},i.prototype.afterAnnotationToolbarCreationInBlazor=function(){this.HighlightElement=document.getElementById(this.pdfViewer.element.id+"_highLight").children[0],this.UnderlineElement=document.getElementById(this.pdfViewer.element.id+"_underline").children[0],this.StrikethroughElement=document.getElementById(this.pdfViewer.element.id+"_strikethrough").children[0],this.InkAnnotationElement=document.getElementById(this.pdfViewer.element.id+"_annotation_ink").children[0],this.InkAnnotationElement.classList.add("e-pv-tbar-btn"),this.FreeTextElement=document.getElementById(this.pdfViewer.element.id+"_annotation_freeTextEdit").children[0],this.HighlightElement=this.addClassToToolbarInBlazor(this.HighlightElement,"e-pv-highlight","_highLight"),this.UnderlineElement=this.addClassToToolbarInBlazor(this.UnderlineElement,"e-pv-underline","_underline"),this.StrikethroughElement=this.addClassToToolbarInBlazor(this.StrikethroughElement,"e-pv-strikethrough","_strikethrough")},i.prototype.addClassToToolbarInBlazor=function(e,t,i){if(e.classList.add(t),e.classList.add("e-pv-tbar-btn"),e.childNodes.length>0){var n=e.childNodes[0];n&&n.classList&&(n.id=this.pdfViewer.element.id+i+"Icon",n.classList.remove("e-icons"),n.classList.remove("e-btn-icon"),this.pdfViewer.enableRtl&&n.classList.add("e-right"))}return e},i.prototype.handleHighlightInBlazor=function(){this.HighlightElement.classList.contains("e-pv-select")?this.primaryToolbar.deSelectItem(this.HighlightElement):this.HighlightElement.classList.contains("e-pv-select")||this.primaryToolbar.selectItem(this.HighlightElement),this.StrikethroughElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.StrikethroughElement),this.UnderlineElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.UnderlineElement)},i.prototype.handleUnderlineInBlazor=function(){this.UnderlineElement.classList.contains("e-pv-select")?this.primaryToolbar.deSelectItem(this.UnderlineElement):this.UnderlineElement.classList.contains("e-pv-select")||this.primaryToolbar.selectItem(this.UnderlineElement),this.StrikethroughElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.StrikethroughElement),this.HighlightElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.HighlightElement)},i.prototype.handleStrikethroughInBlazor=function(){this.StrikethroughElement.classList.contains("e-pv-select")?this.primaryToolbar.deSelectItem(this.StrikethroughElement):this.StrikethroughElement.classList.contains("e-pv-select")||this.primaryToolbar.selectItem(this.StrikethroughElement),this.HighlightElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.HighlightElement),this.UnderlineElement.classList.contains("e-pv-select")&&this.primaryToolbar.deSelectItem(this.UnderlineElement)},i.prototype.AnnotationSliderOpened=function(){if(this.pdfViewer.selectedItems.annotations&&this.pdfViewer.selectedItems.annotations.length>0&&this.pdfViewer.selectedItems.annotations[0]&&this.pdfViewer.selectedItems.annotations[0].wrapper&&this.pdfViewer.selectedItems.annotations[0].wrapper.children[0]){var e=100*this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.opacity,t=this.pdfViewer.selectedItems.annotations[0].wrapper.children[0].style.strokeWidth;this.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateAnnotationSlider",e,t)}},i.prototype.DropDownOpened=function(e){if(e&&e[0].element){var t=e[0].element.getBoundingClientRect(),i=this.pdfViewerBase.navigationPane.sideBarToolbar,n=i?i.getBoundingClientRect().width:0;t.left>this.pdfViewerBase.viewerContainer.clientWidth+t.width+n&&(e[0].element.style.left=t.left-this.pdfViewerBase.viewerContainer.clientHeight/2+"px")}},i.prototype.enableItems=function(e,t){this.toolbar.enableItems(e,t),e.firstElementChild&&(e.firstElementChild.setAttribute("tabindex",t?"0":"-1"),e.firstElementChild.setAttribute("data-tabindex",t?"0":"-1"))},i}(),Yi=function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),Gi=function(e,t,i,n){var o,r=arguments.length,a=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,i,a):o(t,i))||a);return r>3&&a&&Object.defineProperty(t,i,a),a},Ji=function(e,t,i,n){return new(i||(i=Promise))(function(o,r){function a(e){try{l(n.next(e))}catch(e){r(e)}}function s(e){try{l(n.throw(e))}catch(e){r(e)}}function l(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(a,s)}l((n=n.apply(e,t||[])).next())})},ji=function(e,t){function i(e){return function(t){return n([e,t])}}function n(i){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!(a=a.length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){l=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){l.label=i[1];break}if(6===i[0]&&l.label<a[1]){l.label=a[1],a=i;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(i);break}a[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(e,l)}catch(e){i=[6,e],r=0}finally{o=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}var o,r,a,s,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Ki=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(!0)],i.prototype,"showTooltip",void 0),Gi([t.Property()],i.prototype,"toolbarItems",void 0),Gi([t.Property()],i.prototype,"annotationToolbarItems",void 0),Gi([t.Property()],i.prototype,"formDesignerToolbarItems",void 0),i}(t.ChildProperty),Wi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("")],i.prototype,"prefixIcon",void 0),Gi([t.Property("")],i.prototype,"tooltipText",void 0),Gi([t.Property("")],i.prototype,"id",void 0),Gi([t.Property("")],i.prototype,"text",void 0),Gi([t.Property("")],i.prototype,"cssClass",void 0),Gi([t.Property("left")],i.prototype,"align",void 0),Gi([t.Property("")],i.prototype,"template",void 0),Gi([t.Property("Button")],i.prototype,"type",void 0),i}(t.ChildProperty),Zi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property()],i.prototype,"ajaxHeaders",void 0),Gi([t.Property(!1)],i.prototype,"withCredentials",void 0),i}(t.ChildProperty),_i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("")],i.prototype,"customStampName",void 0),Gi([t.Property("")],i.prototype,"customStampImageSource",void 0),i}(t.ChildProperty),Xi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(!0)],i.prototype,"showTooltip",void 0),Gi([t.Property()],i.prototype,"annotationToolbarItem",void 0),i}(t.ChildProperty),qi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(!0)],i.prototype,"showTooltip",void 0),Gi([t.Property()],i.prototype,"formDesignerToolbarItem",void 0),i}(t.ChildProperty),$i=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property()],i.prototype,"signatureDialogSettings",void 0),Gi([t.Property()],i.prototype,"signatureIndicatorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property()],i.prototype,"typeSignatureFonts",void 0),i}(t.ChildProperty),en=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property(!1)],i.prototype,"isInitialField",void 0),Gi([t.Property()],i.prototype,"initialDialogSettings",void 0),Gi([t.Property()],i.prototype,"initialIndicatorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property()],i.prototype,"typeInitialFonts",void 0),i}(t.ChildProperty),tn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("orange")],i.prototype,"backgroundColor",void 0),Gi([t.Property(19)],i.prototype,"width",void 0),Gi([t.Property(10)],i.prototype,"height",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property(null)],i.prototype,"text",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),i}(t.ChildProperty),nn=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return Yi(n,i),Gi([t.Property(e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload)],n.prototype,"displayMode",void 0),Gi([t.Property(!1)],n.prototype,"hideSaveSignature",void 0),n}(t.ChildProperty),on=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("Load")],i.prototype,"load",void 0),Gi([t.Property("Unload")],i.prototype,"unload",void 0),Gi([t.Property("RenderPdfPages")],i.prototype,"renderPages",void 0),Gi([t.Property("RenderPdfPages")],i.prototype,"print",void 0),Gi([t.Property("Download")],i.prototype,"download",void 0),Gi([t.Property("RenderThumbnailImages")],i.prototype,"renderThumbnail",void 0),Gi([t.Property("RenderAnnotationComments")],i.prototype,"renderComments",void 0),Gi([t.Property("ImportAnnotations")],i.prototype,"importAnnotations",void 0),Gi([t.Property("ExportAnnotations")],i.prototype,"exportAnnotations",void 0),Gi([t.Property("ImportFormFields")],i.prototype,"importFormFields",void 0),Gi([t.Property("ExportFormFields")],i.prototype,"exportFormFields",void 0),Gi([t.Property("RenderPdfTexts")],i.prototype,"renderTexts",void 0),Gi([t.Property("ValidatePassword")],i.prototype,"validatePassword",void 0),i}(t.ChildProperty),rn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ff0000")],i.prototype,"color",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(!1)],i.prototype,"enableMultiPageAnnotation",void 0),Gi([t.Property(!1)],i.prototype,"enableTextMarkupResizer",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),an=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ff0000")],i.prototype,"color",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(!1)],i.prototype,"enableMultiPageAnnotation",void 0),Gi([t.Property(!1)],i.prototype,"enableTextMarkupResizer",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),sn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#00ff00")],i.prototype,"color",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(!1)],i.prototype,"enableMultiPageAnnotation",void 0),Gi([t.Property(!1)],i.prototype,"enableTextMarkupResizer",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),ln=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#FFDF56")],i.prototype,"color",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(!1)],i.prototype,"enableMultiPageAnnotation",void 0),Gi([t.Property(!1)],i.prototype,"enableTextMarkupResizer",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),dn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("None")],i.prototype,"lineHeadStartStyle",void 0),Gi([t.Property("None")],i.prototype,"lineHeadEndStyle",void 0),Gi([t.Property(0)],i.prototype,"borderDashArray",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),An=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("None")],i.prototype,"lineHeadStartStyle",void 0),Gi([t.Property("None")],i.prototype,"lineHeadEndStyle",void 0),Gi([t.Property(0)],i.prototype,"borderDashArray",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),hn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(100)],i.prototype,"width",void 0),Gi([t.Property(50)],i.prototype,"height",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),pn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(100)],i.prototype,"width",void 0),Gi([t.Property(100)],i.prototype,"height",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),cn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#000")],i.prototype,"fontColor",void 0),Gi([t.Property(16)],i.prototype,"fontSize",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property("Label")],i.prototype,"labelContent",void 0),Gi([t.Property("")],i.prototype,"notes",void 0),i}(t.ChildProperty),gn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),un=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(150)],i.prototype,"width",void 0),Gi([t.Property(50)],i.prototype,"height",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property([])],i.prototype,"dynamicStamps",void 0),Gi([t.Property([])],i.prototype,"signStamps",void 0),Gi([t.Property([])],i.prototype,"standardBusinessStamps",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),fn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property(0)],i.prototype,"width",void 0),Gi([t.Property(0)],i.prototype,"height",void 0),Gi([t.Property(0)],i.prototype,"left",void 0),Gi([t.Property(0)],i.prototype,"top",void 0),Gi([t.Property(!1)],i.prototype,"isAddToMenu",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property("")],i.prototype,"customStamps",void 0),Gi([t.Property(!0)],i.prototype,"enableCustomStamp",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),mn=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return Yi(n,i),Gi([t.Property({x:0,y:0})],n.prototype,"offset",void 0),Gi([t.Property(1)],n.prototype,"pageNumber",void 0),Gi([t.Property(1)],n.prototype,"opacity",void 0),Gi([t.Property("#ff0000")],n.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],n.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],n.prototype,"author",void 0),Gi([t.Property("1")],n.prototype,"thickness",void 0),Gi([t.Property("None")],n.prototype,"lineHeadStartStyle",void 0),Gi([t.Property("None")],n.prototype,"lineHeadEndStyle",void 0),Gi([t.Property(0)],n.prototype,"borderDashArray",void 0),Gi([t.Property("")],n.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],n.prototype,"minHeight",void 0),Gi([t.Property(0)],n.prototype,"minWidth",void 0),Gi([t.Property(0)],n.prototype,"maxHeight",void 0),Gi([t.Property(0)],n.prototype,"maxWidth",void 0),Gi([t.Property(!1)],n.prototype,"isLock",void 0),Gi([t.Property(null)],n.prototype,"customData",void 0),Gi([t.Property(40)],n.prototype,"leaderLength",void 0),Gi([t.Property(e.CursorType.move)],n.prototype,"resizeCursorType",void 0),Gi([t.Property(["None"])],n.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],n.prototype,"isPrint",void 0),Gi([t.Property("")],n.prototype,"subject",void 0),n}(t.ChildProperty),wn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("None")],i.prototype,"lineHeadStartStyle",void 0),Gi([t.Property("None")],i.prototype,"lineHeadEndStyle",void 0),Gi([t.Property(0)],i.prototype,"borderDashArray",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),Cn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),Bn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(100)],i.prototype,"width",void 0),Gi([t.Property(90)],i.prototype,"height",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),Sn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("1")],i.prototype,"thickness",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),yn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(0)],i.prototype,"width",void 0),Gi([t.Property(0)],i.prototype,"height",void 0),Gi([t.Property(0)],i.prototype,"path",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ff0000")],i.prototype,"strokeColor",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),In=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),En=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"scaleRatio",void 0),Gi([t.Property("in")],i.prototype,"conversionUnit",void 0),Gi([t.Property("in")],i.prototype,"displayUnit",void 0),Gi([t.Property(96)],i.prototype,"depth",void 0),i}(t.ChildProperty),vn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#ffffff00")],i.prototype,"borderColor",void 0),Gi([t.Property(1)],i.prototype,"borderWidth",void 0),Gi([t.Property("solid")],i.prototype,"borderStyle",void 0),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property("#ffffff00")],i.prototype,"fillColor",void 0),Gi([t.Property(16)],i.prototype,"fontSize",void 0),Gi([t.Property(151)],i.prototype,"width",void 0),Gi([t.Property(24.6)],i.prototype,"height",void 0),Gi([t.Property("#000")],i.prototype,"fontColor",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property("TypeHere")],i.prototype,"defaultText",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("Left")],i.prototype,"textAlignment",void 0),Gi([t.Property(!1)],i.prototype,"allowEditTextOnly",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property(!0)],i.prototype,"isPrint",void 0),Gi([t.Property(!1)],i.prototype,"isReadonly",void 0),Gi([t.Property(!1)],i.prototype,"enableAutoFit",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),bn=function(i){function n(){return null!==i&&i.apply(this,arguments)||this}return Yi(n,i),Gi([t.Property("")],n.prototype,"selectionBorderColor",void 0),Gi([t.Property("black")],n.prototype,"resizerBorderColor",void 0),Gi([t.Property("#FF4081")],n.prototype,"resizerFillColor",void 0),Gi([t.Property(8)],n.prototype,"resizerSize",void 0),Gi([t.Property(1)],n.prototype,"selectionBorderThickness",void 0),Gi([t.Property("Square")],n.prototype,"resizerShape",void 0),Gi([t.Property("")],n.prototype,"selectorLineDashArray",void 0),Gi([t.Property(e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges)],n.prototype,"resizerLocation",void 0),Gi([t.Property(null)],n.prototype,"resizerCursorType",void 0),n}(t.ChildProperty),Vn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("#fdd835")],i.prototype,"searchHighlightColor",void 0),Gi([t.Property("#8b4c12")],i.prototype,"searchColor",void 0),i}(t.ChildProperty),Dn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(0)],i.prototype,"pageIndex",void 0),Gi([t.Property(0)],i.prototype,"width",void 0),Gi([t.Property(0)],i.prototype,"height",void 0),Gi([t.Property(0)],i.prototype,"rotation",void 0),i}(t.ChildProperty),xn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(1)],i.prototype,"opacity",void 0),Gi([t.Property("#000000")],i.prototype,"strokeColor",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property(150)],i.prototype,"width",void 0),Gi([t.Property(100)],i.prototype,"height",void 0),Gi([t.Property(1)],i.prototype,"saveSignatureLimit",void 0),Gi([t.Property(1)],i.prototype,"saveInitialLimit",void 0),Gi([t.Property([])],i.prototype,"signatureItem",void 0),Gi([t.Property()],i.prototype,"typeSignatureFonts",void 0),Gi([t.Property("")],i.prototype,"annotationSelectorSettings",void 0),Gi([t.Property()],i.prototype,"signatureDialogSettings",void 0),Gi([t.Property()],i.prototype,"initialDialogSettings",void 0),Gi([t.Property({x:0,y:0})],i.prototype,"offset",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property("")],i.prototype,"path",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(!1)],i.prototype,"canSave",void 0),i}(t.ChildProperty),Qn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("Guest")],i.prototype,"author",void 0),Gi([t.Property(0)],i.prototype,"minHeight",void 0),Gi([t.Property(0)],i.prototype,"minWidth",void 0),Gi([t.Property(0)],i.prototype,"maxHeight",void 0),Gi([t.Property(0)],i.prototype,"maxWidth",void 0),Gi([t.Property(!1)],i.prototype,"isLock",void 0),Gi([t.Property(!1)],i.prototype,"skipPrint",void 0),Gi([t.Property(!1)],i.prototype,"skipDownload",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),Gi([t.Property(["None"])],i.prototype,"allowedInteractions",void 0),Gi([t.Property("")],i.prototype,"subject",void 0),i}(t.ChildProperty),Mn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property()],i.prototype,"textData",void 0),Gi([t.Property()],i.prototype,"pageText",void 0),Gi([t.Property()],i.prototype,"pageSize",void 0),i}(t.ChildProperty),Fn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property()],i.prototype,"bounds",void 0),Gi([t.Property()],i.prototype,"text",void 0),i}(t.ChildProperty),Tn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property()],i.prototype,"size",void 0),Gi([t.Property()],i.prototype,"x",void 0),Gi([t.Property()],i.prototype,"y",void 0),Gi([t.Property()],i.prototype,"width",void 0),Gi([t.Property()],i.prototype,"height",void 0),Gi([t.Property()],i.prototype,"left",void 0),Gi([t.Property()],i.prototype,"top",void 0),Gi([t.Property()],i.prototype,"right",void 0),Gi([t.Property()],i.prototype,"bottom",void 0),Gi([t.Property()],i.prototype,"isEmpty",void 0),i}(t.ChildProperty),kn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(!0)],i.prototype,"enableTileRendering",void 0),Gi([t.Property(0)],i.prototype,"x",void 0),Gi([t.Property(0)],i.prototype,"y",void 0),i}(t.ChildProperty),Pn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(100)],i.prototype,"delayPageRequestTimeOnScroll",void 0),i}(t.ChildProperty),Nn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property(!1)],i.prototype,"isChecked",void 0),Gi([t.Property(!1)],i.prototype,"isSelected",void 0),Gi([t.Property("")],i.prototype,"id",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property("")],i.prototype,"type",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property([""])],i.prototype,"signatureType",void 0),Gi([t.Property("")],i.prototype,"fontName",void 0),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property("Left")],i.prototype,"alignment",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(0)],i.prototype,"maxLength",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property("")],i.prototype,"options",void 0),Gi([t.Property()],i.prototype,"signatureIndicatorSettings",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(!1)],i.prototype,"isMultiline",void 0),Gi([t.Property(!1)],i.prototype,"insertSpaces",void 0),Gi([t.Property(-1)],i.prototype,"pageIndex",void 0),Gi([t.Property(1)],i.prototype,"pageNumber",void 0),Gi([t.Property(!1)],i.prototype,"isTransparent",void 0),Gi([t.Property(0)],i.prototype,"rotateAngle",void 0),Gi([t.Property("")],i.prototype,"selectedIndex",void 0),Gi([t.Property(0)],i.prototype,"zIndex",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),Rn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("RightClick")],i.prototype,"contextMenuAction",void 0),Gi([t.Property([])],i.prototype,"contextMenuItems",void 0),i}(t.ChildProperty),Ln=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property("Left")],i.prototype,"alignment",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(0)],i.prototype,"maxLength",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(!1)],i.prototype,"isMultiline",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),Un=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property("Left")],i.prototype,"alignment",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(0)],i.prototype,"maxLength",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),On=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property(!1)],i.prototype,"isChecked",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),zn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property(!1)],i.prototype,"isSelected",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),Hn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property("Left")],i.prototype,"alignment",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property("")],i.prototype,"options",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),Gi([t.Property(null)],i.prototype,"customData",void 0),i}(t.ChildProperty),Yn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property({x:0,y:0,width:0,height:0})],i.prototype,"bounds",void 0),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Property("")],i.prototype,"value",void 0),Gi([t.Property("Helvetica")],i.prototype,"fontFamily",void 0),Gi([t.Property(10)],i.prototype,"fontSize",void 0),Gi([t.Property(0)],i.prototype,"pageNumber",void 0),Gi([t.Property("None")],i.prototype,"fontStyle",void 0),Gi([t.Property("black")],i.prototype,"color",void 0),Gi([t.Property("white")],i.prototype,"backgroundColor",void 0),Gi([t.Property("Left")],i.prototype,"alignment",void 0),Gi([t.Property(!1)],i.prototype,"isReadOnly",void 0),Gi([t.Property("visible")],i.prototype,"visibility",void 0),Gi([t.Property(!1)],i.prototype,"isRequired",void 0),Gi([t.Property(!1)],i.prototype,"isPrint",void 0),Gi([t.Property("")],i.prototype,"tooltip",void 0),Gi([t.Property([])],i.prototype,"options",void 0),Gi([t.Property(1)],i.prototype,"thickness",void 0),Gi([t.Property("#303030")],i.prototype,"borderColor",void 0),i}(t.ChildProperty),Gn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("")],i.prototype,"itemName",void 0),Gi([t.Property("")],i.prototype,"itemValue",void 0),i}(t.ChildProperty),Jn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property()],i.prototype,"pdfKeys",void 0),Gi([t.Property()],i.prototype,"modifierKeys",void 0),i}(t.ChildProperty),jn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property("")],i.prototype,"name",void 0),Gi([t.Complex({},Jn)],i.prototype,"gesture",void 0),i}(t.ChildProperty),Kn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Collection([],jn)],i.prototype,"keyboardCommand",void 0),i}(t.ChildProperty),Wn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(!0)],i.prototype,"canDelete",void 0),Gi([t.Property(!0)],i.prototype,"canInsert",void 0),Gi([t.Property(!0)],i.prototype,"canRotate",void 0),Gi([t.Property(!0)],i.prototype,"canCopy",void 0),Gi([t.Property(!0)],i.prototype,"canRearrange",void 0),Gi([t.Property(!0)],i.prototype,"canImport",void 0),Gi([t.Property(!1)],i.prototype,"showImageZoomingSlider",void 0),Gi([t.Property(1)],i.prototype,"imageZoomMin",void 0),Gi([t.Property(5)],i.prototype,"imageZoomMax",void 0),Gi([t.Property(1)],i.prototype,"imageZoom",void 0),i}(t.ChildProperty),Zn=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Yi(i,e),Gi([t.Property(0)],i.prototype,"pageIndex",void 0),Gi([t.Property([])],i.prototype,"bounds",void 0),i}(t.ChildProperty),_n=function(n){function o(e,t){var i=n.call(this,e,t)||this;return i.isFormFieldsLoaded=!1,i.signatureCollection=[],i.fileName=null,i.zIndex=-1,i.nameTable={},i.clipboardData={},i.zIndexTable=[],i.isTextSelectionStarted=!1,i.touchPadding=10,i.paddingDifferenceValue=10,i.defaultLocale={PdfViewer:"PDF Viewer",Cancel:"Cancel","Download file":"Download file",Download:"Download","Enter Password":"This document is password protected. Please enter a password.","File Corrupted":"File Corrupted","File Corrupted Content":"The file is corrupted and cannot be opened.","Fit Page":"Fit Page","Fit Width":"Fit Width",Automatic:"Automatic","Go To First Page":"Show first page","Invalid Password":"Incorrect Password. Please try again.","Next Page":"Show next page",OK:"OK",Open:"Open file","Page Number":"Current page number","Previous Page":"Show previous page","Go To Last Page":"Show last page",Zoom:"Zoom","Zoom In":"Zoom in","Zoom Out":"Zoom out","Page Thumbnails":"Page Thumbnails",Bookmarks:"Bookmarks",Print:"Print file","Organize Pages":"Organize Pages","Insert Right":"Insert Right","Insert Left":"Insert Left",Total:"Total",Pages:"Pages","Rotate Right":"Rotate Right","Rotate Left":"Rotate Left","Delete Page":"Delete Page","Delete Pages":"Delete Pages","Copy Page":"Copy Page","Copy Pages":"Copy Pages",Save:"Save","Save As":"Save As","Select All":"Select All","Import Document":"Import Document","Change Page Zoom":"Change Page Zoom","Increase Page Zoom":"Increase Page Zoom","Decrease Page Zoom":"Decrease Page Zoom","Password Protected":"Password Required",Copy:"Copy","Text Selection":"Text selection tool",Panning:"Pan mode","Text Search":"Find text","Find in document":"Find in document","Match case":"Match case","Match any word":"Match any word",Apply:"Apply",GoToPage:"Go to Page","No Matches":"PDF Viewer has finished searching the document. No matches were found.","No More Matches":"PDF Viewer has finished searching the document. No more matches were found.","No Search Matches":"No matches found","No More Search Matches":"No more matches found","Exact Matches":"EXACT MATCHES","Total Matches":"TOTAL MATCHES",Undo:"Undo",Redo:"Redo",Annotation:"Add or Edit annotations",FormDesigner:"Add and Edit Form Fields",Highlight:"Highlight Text",Underline:"Underline Text",Strikethrough:"Strikethrough Text",Squiggly:"Squiggly Text",Delete:"Delete annotation",Opacity:"Opacity","Color edit":"Change Color","Opacity edit":"Change Opacity","Highlight context":"Highlight","Underline context":"Underline","Strikethrough context":"Strikethrough","Squiggly context":"Squiggly","Server error":"Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue.","Client error":"Client-side error is found. Please check the custom headers provided in the AjaxRequestSettings property and web action methods in the ServerActionSettings property.","Cors policy error":"Unable to retrieve the document due to an invali
10d URL or access restrictions. Please check the document URL and try again.","Open text":"Open","First text":"First Page","Previous text":"Previous Page","Next text":"Next Page","Last text":"Last Page","Zoom in text":"Zoom In","Zoom out text":"Zoom Out","Selection text":"Selection","Pan text":"Pan","Print text":"Print","Search text":"Search","Annotation Edit text":"Edit Annotation","FormDesigner Edit text":"Add and Edit Form Fields","Line Thickness":"Line Thickness","Line Properties":"Line Properties","Start Arrow":"Start Arrow","End Arrow":"End Arrow","Line Style":"Line Style","Fill Color":"Fill Color","Line Color":"Line Color",None:"None","Open Arrow":"Open","Closed Arrow":"Closed","Round Arrow":"Round","Square Arrow":"Square","Diamond Arrow":"Diamond",Butt:"Butt",Cut:"Cut",Paste:"Paste","Delete Context":"Delete",Properties:"Properties","Add Stamp":"Add Stamp","Add Shapes":"Add Shapes","Stroke edit":"Change Stroke Color","Change thickness":"Change Border Thickness","Add line":"Add Line","Add arrow":"Add Arrow","Add rectangle":"Add Rectangle","Add circle":"Add Circle","Add polygon":"Add Polygon","Add Comments":"Add Comments",Comments:"Comments",SubmitForm:"Submit Form","No Comments Yet":"No Comments Yet",Accepted:"Accepted",Completed:"Completed",Cancelled:"Cancelled",Rejected:"Rejected","Leader Length":"Leader Length","Scale Ratio":"Scale Ratio",Calibrate:"Calibrate","Calibrate Distance":"Calibrate Distance","Calibrate Perimeter":"Calibrate Perimeter","Calibrate Area":"Calibrate Area","Calibrate Radius":"Calibrate Radius","Calibrate Volume":"Calibrate Volume",Depth:"Depth",Closed:"Closed",Round:"Round",Square:"Square",Diamond:"Diamond",Edit:"Edit",Comment:"Comment","Comment Panel":"Comment Panel","Set Status":"Set Status",Post:"Post",Page:"Page","Add a comment":"Add a comment","Add a reply":"Add a reply","Import Annotations":"Import annotations from JSON file","Export Annotations":"Export annotation to JSON file","Export XFDF":"Export annotation to XFDF file","Import XFDF":"Import annotations from XFDF file",Add:"Add",Clear:"Clear",Bold:"Bold",Italic:"Italic",Strikethroughs:"Strikethrough",Underlines:"Underline",Superscript:"Superscript",Subscript:"Subscript","Align left":"Align Left","Align right":"Align Right",Center:"Center",Justify:"Justify","Font color":"Font Color","Text Align":"Text Align","Text Properties":"Font Style",SignatureFieldDialogHeaderText:"Add Signature",HandwrittenSignatureDialogHeaderText:"Add Signature",InitialFieldDialogHeaderText:"Add Initial",HandwrittenInitialDialogHeaderText:"Add Initial","Draw Ink":"Draw Ink",Create:"Create","Font family":"Font Family","Font size":"Font Size","Free Text":"Free Text","Import Failed":"Invalid JSON file type or file name; please select a valid JSON file","Import PDF Failed":"Invalid PDF file type or PDF file not found. Please select a valid PDF file","File not found":"Imported JSON file is not found in the desired location","Export Failed":"Export annotations action has failed; please ensure annotations are added properly",of:"of ",Dynamic:"Dynamic","Standard Business":"Standard Business","Sign Here":"Sign Here","Custom Stamp":"Custom Stamp","Enter Signature as Name":"Enter your name","Draw-hand Signature":"DRAW","Type Signature":"TYPE","Upload Signature":"UPLOAD","Browse Signature Image":"BROWSE","Save Signature":"Save Signature","Save Initial":"Save Initial",Textbox:"Textbox",Password:"Password","Check Box":"Checkbox","Radio Button":"Radio Button",Dropdown:"Drop Down","List Box":"List Box",Signature:"Signature","Delete FormField":"Delete Form Field","Textbox Properties":"Textbox Properties",Name:"Name",Tooltip:"Tooltip",Value:"Value","Form Field Visibility":"Form Field Visibility","Read Only":"Read Only",Required:"Required",Checked:"Checked","Show Printing":"Show Printing",Formatting:"Format",Fill:"Fill",Border:"Border","Border Color":"Border Color",Thickness:"Thickness","Max Length":"Max Length","List Item":"Item Name","Export Value":"Item Value","Dropdown Item List":"Dropdown Item List","List Box Item List":"List Box Item List",General:"GENERAL",Appearance:"APPEARANCE",Options:"OPTIONS","Delete Item":"Delete",Up:"Up",Down:"Down",Multiline:"Multiline",Revised:"Revised",Reviewed:"Reviewed",Received:"Received",Confidential:"Confidential",Approved:"Approved","Not Approved":"Not Approved",Witness:"Witness","Initial Here":"Initial Here",Draft:"Draft",Final:"Final","For Public Release":"For Public Release","Not For Public Release":"Not For Public Release","For Comment":"For Comment",Void:"Void","Preliminary Results":"Preliminary Results","Information Only":"Information Only",in:"in",m:"m",ft_in:"ft_in",ft:"ft",p:"p",cm:"cm",mm:"mm",pt:"pt",cu:"cu",sq:"sq",Initial:"Initial"},i.viewerBase=new Fi(i),i.drawing=new At(i),i.pdfRendererModule=new ho(i,i.viewerBase),i}return Yi(o,n),Object.defineProperty(o.prototype,"zoomPercentage",{get:function(){return 100*this.magnificationModule.zoomFactor},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"bookmark",{get:function(){return this.bookmarkViewModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"print",{get:function(){return this.printModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"magnification",{get:function(){return this.magnificationModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"navigation",{get:function(){return this.navigationModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"textSearch",{get:function(){return this.textSearchModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"toolbar",{get:function(){return this.toolbarModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"thumbnailView",{get:function(){return this.thumbnailViewModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"annotation",{get:function(){return this.annotationModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"formDesigner",{get:function(){return this.formDesignerModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"textSelection",{get:function(){return this.textSelectionModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"accessibilityTags",{get:function(){return this.accessibilityTagsModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"pdfRenderer",{get:function(){return this.pdfRendererModule},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"pageOrganizer",{get:function(){return this.pageOrganizerModule},enumerable:!0,configurable:!0}),o.prototype.preRender=function(){this.localeObj=new t.L10n(this.getModuleName(),this.defaultLocale,this.locale),t.isNullOrUndefined(this.element)||""!==this.element.i
10d||(this.element.id=this.getUniqueElementId()),t.Browser.isDevice&&(this.touchPadding=16),this.updateLocalStorage(this.enableLocalStorage)},o.prototype.getUniqueElementId=function(){return"pdfViewer_"+Date.now().toString(36)+Math.random().toString(36).substring(2)},o.prototype.initializePdfiumModule=function(e){this.viewerBase.pdfViewerRunner.addTask({url:this.getScriptPathForPlatform(),fonts:e,message:"initialLoading"},Et.High)},o.prototype.render=function(){var e=this;if(this.enableHtmlSanitizer&&this.serviceUrl&&(this.serviceUrl=t.SanitizeHtmlHelper.sanitize(this.serviceUrl)),(t.isNullOrUndefined(this.serviceUrl)||""===this.serviceUrl)&&(this.viewerBase.clientSideRendering=!0),this.viewerBase.clientSideRendering){var i=this,n=new Blob([Ze.toString().replace(/^[^{]*{([\s\S]*)}$/m,"$1")],{type:"text/javascript"}),o=URL.createObjectURL(n);window["pdfViewerRunner_"+this.element.id]=this.viewerBase.pdfViewerRunner=new xi(o,i),this.customFonts&&this.customFonts.length>0?Vi.fetchCustomFonts(this.customFonts,this.getScriptPathForPlatform()).then(function(t){e.pdfRenderer.FallbackFontCollection=t,e.initializePdfiumModule(t)}):this.initializePdfiumModule({}),this.viewerBase.pdfViewerRunner.onMessage("loaded",function(e){"loaded"===e.data.message&&(i.renderComponent(),i.fireResourcesLoaded())})}else this.renderComponent()},o.prototype.exportAsImage=function(e,i){return t.isNullOrUndefined(i)?this.pdfRendererModule.exportAsImage(e):this.pdfRendererModule.exportAsImagewithSize(e,i)},o.prototype.exportAsImages=function(e,i,n){return t.isNullOrUndefined(n)?this.pdfRendererModule.exportAsImages(e,i):this.pdfRendererModule.exportAsImagesWithSize(e,i,n)},o.prototype.extractText=function(e,i,n){var o,r;return"number"==typeof i?(o=i,r=n):r=i,t.isNullOrUndefined(o)&&(o=e),this.pdfRendererModule.extractsText(e,o,r,!0)},o.prototype.getScriptPathForPlatform=function(){if(this.enableHtmlSanitizer&&this.resourceUrl&&(this.resourceUrl=t.SanitizeHtmlHelper.sanitize(this.resourceUrl)),!t.isNullOrUndefined(this.resourceUrl)&&""!==this.resourceUrl)return this.resourceUrl;var e=document.location,i=e.protocol+"//"+e.host+e.pathname.replace(/\/+$/,"");if(this.isAngular||this.parent&&this.parent.isAngular)return i+"/assets/ej2-pdfviewer-lib";if(this.isReact||this.parent&&this.parent.isReact)return i+"/ej2-pdfviewer-lib";if(this.isVue||this.parent&&this.parent.isVue||this.isVue3||this.parent&&this.parent.isVue3)return i+"/public/js/ej2-pdfviewer-lib";window.getRunningScript=function(){return function(){var e=(new Error).stack,t=e&&e.match(/(?:http[s]?:\/\/(?:[^\/\s]+\/))(.*\.js)/);return t?t[0]:"src/pdfviewer/pdfviewer.js"}};var n=window.getRunningScript()(),o=n.split("/");return n.replace("/"+o[o.length-1],"")+"/ej2-pdfviewer-lib"},o.prototype.renderComponent=function(){this.viewerBase.initializeComponent(),this.enableFormFields||(this.formFieldsModule=new oo(this,this.viewerBase),this.formFieldsModule.formFieldsReadOnly(this.enableFormFields)),this.enableTextSelection&&this.textSelectionModule?this.textSelectionModule.enableTextSelectionMode():this.viewerBase.disableTextSelectionMode(),this.drawing.renderLabels(this),this.renderComplete()},o.prototype.getModuleName=function(){return"PdfViewer"},o.prototype.getLocaleConstants=function(){return this.defaultLocale},o.prototype.setJsonData=function(e){this.viewerBase.ajaxData=e},o.prototype.updateLocalStorage=function(e){e&&!Fi.sessionStorageManager.enableLocalStorage?Fi.sessionStorageManager.migrateToLocalStorage(!0):this.enableLocalStorage=Fi.sessionStorageManager.enableLocalStorage},o.prototype.onPropertyChanged=function(e,i){if(!this.isDestroyed)for(var o=0,r=Object.keys(e);o<r.length;o++){var a=r[o];switch(a){case"locale":if(this.viewerBase.loadedData){var s=null;if(this.formFieldsModule&&(s=this.viewerBase.getItemFromSessionStorage("_formfields")),s){this.viewerBase.formfieldvalue=JSON.parse(s);var l=this.annotationCollection,d=this.viewerBase.jsonDocumentId;n.prototype.refresh.call(this),this.load(this.viewerBase.loadedData,null),this.addAnnotation(l),this.viewerBase.loadedData=null,this.downloadFileName=d,this.fileName=d}}break;case"toolbarSettings":!t.Browser.isDevice||this.enableDesktopMode?(this.toolbar.applyToolbarSettings(),t.isNullOrUndefined(this.toolbar.annotationToolbarModule)||this.toolbar.annotationToolbarModule.applyAnnotationToolbarSettings(),t.isNullOrUndefined(this.toolbar.formDesignerToolbarModule)||this.toolbar.formDesignerToolbarModule.applyFormDesignerToolbarSettings()):(this.toolbar.applyToolbarSettingsForMobile(),this.toolbar.annotationToolbarModule.applyMobileAnnotationToolbarSettings());break;case"enableToolbar":this.notify("",{module:"toolbar",enable:this.enableToolbar});break;case"enableLocalStorage":this.updateLocalStorage(this.enableLocalStorage);break;case"enableTextSelection":!t.Browser.isDevice||this.enableDesktopMode?(this.interactionMode="TextSelection",!t.isNullOrUndefined(this.toolbarModule)&&!t.isNullOrUndefined(this.formDesignerModule)&&this.toolbarModule.formDesignerToolbarModule&&this.isFormDesignerToolbarVisible?this.viewerBase.disableTextSelectionMode():this.toolbarModule.updateInteractionItems()):this.enableTextSelection&&this.textSelectionModule?this.textSelectionModule.enableTextSelectionMode():this.viewerBase.disableTextSelectionMode();break;case"enableCommentPanel":this.notify("",{module:"annotation",enable:this.enableCommentPanel}),this.toolbarModule&&this.toolbarModule.annotationToolbarModule&&this.toolbarModule.annotationToolbarModule.enableCommentPanelTool(this.enableCommentPanel),this.enableCommentPanel||this.viewerBase.navigationPane&&this.viewerBase.navigationPane.closeCommentPanelContainer();break;case"documentPath":this.viewerBase.isSkipDocumentPath?this.viewerBase.isSkipDocumentPath=!1:t.isBlazor()?this._dotnetInstance.invokeMethodAsync("LoadDocumentFromClient",e.documentPath):this.load(e.documentPath,null);break;case"interactionMode":this.interactionMode=e.interactionMode,"Pan"===e.interactionMode?(this.viewerBase.initiatePanning(),this.toolbar&&this.toolbar.updateInteractionTools(!1)):"TextSelection"===e.interactionMode&&(this.viewerBase.initiateTextSelectMode(),this.toolbar&&this.toolbar.updateInteractionTools(!0));break;case"height":this.height=e.height,this.viewerBase.updateHeight(),this.viewerBase.onWindowResize(),this.toolbar&&this.toolbar.annotationToolbarModule&&(this.toolbar.annotationToolbarModule.isToolbarHidden?this.toolbar.annotationToolbarModule.adjustViewer(!1):this.toolbar.annotationToolbarModule.adjustViewer(!0));break;case"width":this.width=e.width,this.viewerBase.updateWidth(),this.viewerBase.onWindowResize();break;case"customStamp":this.renderCustomerStamp(this.customStamp[0]);break;case"customStampSettings":if(e.customStampSettings.customStamps)for(var A=0;A<e.customStampSettings.customStamps.length;A++)this.viewerBase.customStampCollection.push({customStampName:this.customStampSettings.customStamps[parseInt(A.toString(),10)].customStampName,customStampImageSource:this.customStampSettings.customStamps[parseInt(A.toString(),10)].customStampImageSource});break;case"enableFormFields":if(this.enableFormFields&&this.formFieldsModule)for(var h=0;h<this.pageCount;h++)this.formFieldsModule.renderFormFields(h,!1);else this.formFieldsModule=new oo(this,this.viewerBase),this.formFieldsModule.formFieldsReadOnly(this.enableFormFields);break;
10case"designerMode":this.designerMode?this.formDesignerModule.setMode("designer"):this.formDesignerModule.setMode("edit");break;case"highlightSettings":case"underlineSettings":case"strikethroughSettings":case"squigglySettings":this.annotationModule&&this.annotationModule.textMarkupAnnotationModule&&this.annotationModule.textMarkupAnnotationModule.updateTextMarkupSettings(a);break;case"signatureFieldSettings":case"initialFieldSettings":if(this.formDesignerModule){var p="initialFieldSettings"===a;this.formDesignerModule.updateSignatureSettings(e[a],p)}break;case"textFieldSettings":this.formDesignerModule&&this.formDesignerModule.updateTextFieldSettings(e[a]);break;case"passwordFieldSettings":this.formDesignerModule&&this.formDesignerModule.updatePasswordFieldSettings(e[a]);break;case"checkBoxFieldSettings":this.formDesignerModule&&this.formDesignerModule.updateCheckBoxFieldSettings(e[a]);break;case"radioButtonFieldSettings":this.formDesignerModule&&this.formDesignerModule.updateRadioButtonFieldSettings(e[a]);break;case"DropdownFieldSettings":this.formDesignerModule&&this.formDesignerModule.updateDropDownFieldSettings(e[a]);break;case"listBoxFieldSettings":this.formDesignerModule&&this.formDesignerModule.updateListBoxFieldSettings(e[a]);break;case"isFormDesignerToolbarVisible":t.Browser.isDevice&&!this.enableDesktopMode||(this.toolbarModule&&this.formDesignerModule&&!i.isFormDesignerToolbarVisible&&e.isFormDesignerToolbarVisible?(this.toolbarModule.annotationToolbarModule&&this.isAnnotationToolbarVisible&&(this.isAnnotationToolbarVisible=!1,this.toolbarModule.annotationToolbarModule.showAnnotationToolbar()),this.toolbarModule.formDesignerToolbarModule.resetFormDesignerToolbar()):t.isNullOrUndefined(this.toolbarModule)||t.isNullOrUndefined(this.formDesignerModule)||!this.toolbarModule.formDesignerToolbarModule||this.isFormDesignerToolbarVisible||(this.isFormDesignerToolbarVisible=!1,this.formDesignerModule.setMode("edit"),this.toolbarModule.formDesignerToolbarModule.resetFormDesignerToolbar()));break;case"isAnnotationToolbarVisible":!t.Browser.isDevice||this.enableDesktopMode?this.toolbarModule&&this.annotationModule&&!i.isAnnotationToolbarVisible&&e.isAnnotationToolbarVisible&&(this.toolbarModule.formDesignerToolbarModule&&this.isFormDesignerToolbarVisible&&(this.isFormDesignerToolbarVisible=!1,this.toolbarModule.formDesignerToolbarModule.showFormDesignerToolbar()),this.toolbarModule.annotationToolbarModule.resetToolbar()):this.toolbarModule&&this.toolbar.showAnnotationToolbar(e.isAnnotationToolbarVisible);break;case"serviceUrl":t.isNullOrUndefined(e.serviceUrl)||""===e.serviceUrl?this.viewerBase.clientSideRendering=!0:this.viewerBase.clientSideRendering=!1;break;case"pageOrganizerSettings":t.isNullOrUndefined(e.pageOrganizerSettings)||t.isNullOrUndefined(this.pageOrganizer)||(this.pageOrganizer.setPageOrganizerSettings(e.pageOrganizerSettings),i.pageOrganizerSettings.imageZoomMax===e.pageOrganizerSettings.imageZoomMax&&i.pageOrganizerSettings.imageZoomMin===e.pageOrganizerSettings.imageZoomMin||this.pageOrganizer.handleImageSizeBoundsChange(e.pageOrganizerSettings),i.pageOrganizerSettings.showImageZoomingSlider!==e.pageOrganizerSettings.showImageZoomingSlider&&this.pageOrganizer.handleImageResizerVisibility(e.pageOrganizerSettings.showImageZoomingSlider),i.pageOrganizerSettings.imageZoom!==e.pageOrganizerSettings.imageZoom&&this.pageOrganizer.handlePageZoomChange(e.pageOrganizerSettings.imageZoom,i.pageOrganizerSettings.imageZoom))}}},o.prototype.renderCustomerStamp=function(e){this.annotation.stampAnnotationModule.isStampAddMode=!0,this.annotationModule.stampAnnotationModule.isStampAnnotSelected=!0,this.viewerBase.stampAdded=!0,this.viewerBase.isAlreadyAdded=!1,this.annotation.stampAnnotationModule.createCustomStampAnnotation(e.customStampImageSource,e.customStampName)},o.prototype.getPersistData=function(){return"PdfViewer"},o.prototype.requiredModules=function(){var e=[];return this.enableMagnification&&e.push({member:"Magnification",args:[this,this.viewerBase]}),this.enableNavigation&&e.push({member:"Navigation",args:[this,this.viewerBase]}),(this.enableToolbar||this.enableNavigationToolbar||this.enableAnnotationToolbar||this.enableFormDesignerToolbar)&&e.push({member:"Toolbar",args:[this,this.viewerBase]}),this.enableHyperlink&&e.push({member:"LinkAnnotation",args:[this,this.viewerBase]}
vendor: 49,366 bytes, line 10
10),this.enableThumbnail&&e.push({member:"ThumbnailView",args:[this,this.viewerBase]}),this.enableBookmark&&e.push({member:"BookmarkView",args:[this,this.viewerBase]}),this.enableTextSelection&&e.push({member:"TextSelection",args:[this,this.viewerBase]}),this.enableTextSearch&&e.push({member:"TextSearch",args:[this,this.viewerBase]}),this.enablePrint&&e.push({member:"Print",args:[this,this.viewerBase]}),this.enableAnnotation&&e.push({member:"Annotation",args:[this,this.viewerBase]}),this.enableFormFields&&e.push({member:"FormFields",args:[this,this.viewerBase]}),this.enableFormDesigner&&!t.isBlazor()&&e.push({member:"FormDesigner",args:[this,this.viewerBase]}),this.enableAccessibilityTags&&e.push({member:"AccessibilityTags",args:[this,this.viewerBase]}),(t.isNullOrUndefined(this.serviceUrl)||""===this.serviceUrl)&&e.push({member:"PdfRenderer",args:[this,this.viewerBase]}),this.enablePageOrganizer&&e.push({member:"PageOrganizer",args:[this,this.viewerBase]}),e},o.prototype.load=function(e,t){this.loadDocInternally(e,t)},o.prototype.loadDocInternally=function(e,i,n){if(void 0===n&&(n=!0),0!==this.pageCount?this.viewerBase.clear(!0):this.viewerBase.clear(!1),this.pageCount=0,this.currentPageNumber=0,t.isBlazor()?this.viewerBase.blazorUIAdaptor.resetToolbar():this.toolbarModule&&this.toolbarModule.resetToolbar(),this.isFormFieldsLoaded=!0,this.viewerBase.documentPathByteArray instanceof Uint8Array&&!this.viewerBase.clientSideRendering){var o=this.convertByteArrayToBase64(this.viewerBase.documentPathByteArray);this.viewerBase.initiatePageRender(o,i)}else this.viewerBase.initiatePageRender(e,i,n)},o.prototype.convertByteArrayToBase64=function(e){for(var t="",i=e.byteLength,n=0;n<i;n++)t+=String.fromCharCode(e[parseInt(n.toString(),10)]);return btoa(t)},o.prototype.loadDocument=function(e,i,n){0!==this.pageCount?this.viewerBase.clear(!0):this.viewerBase.clear(!1),this.viewerBase.clear(!t.isNullOrUndefined(this.customContextMenuItems)),this.pageCount=0,this.currentPageNumber=0,this.viewerBase.blazorUIAdaptor.resetToolbar(),this.fileName=n,this.viewerBase.initiateLoadDocument(e,i,n)},o.prototype.loadSuccess=function(e,t){this.viewerBase.loadSuccess(e,t)},o.prototype.focusElement=function(e){var t=document.getElementById(e);null!=t&&t.focus()},o.prototype.download=function(){this.enableDownload&&this.viewerBase.download()},o.prototype.saveAsBlob=function(){var e=this;return this.enableDownload?new Promise(function(t,i){t(e.viewerBase.saveAsBlob())}):null},o.prototype.updateViewerContainer=function(){this.viewerBase.updateViewerContainer()},o.prototype.getPageInfo=function(e){var i={};if(!t.isNullOrUndefined(e)&&"number"==typeof e&&!t.isNullOrUndefined(this.viewerBase.pageSize)&&0!==this.viewerBase.pageSize.length&&e>=0&&e<this.viewerBase.pageSize.length){var n=parseInt(e.toString(),10),o=this.viewerBase.pageSize[n];i.pageIndex=n,i.height=this.viewerBase.ConvertPixelToPoint(o.height),i.width=this.viewerBase.ConvertPixelToPoint(o.width),i.rotation=this.viewerBase.getAngle(o.rotation)}return i},o.prototype.showNotificationPopup=function(e){this.viewerBase.showNotificationPopup(e)},o.prototype.focusFormField=function(e){var t=this;if("string"==typeof e)for(var i=this.retrieveFormFields(),n=0;n<i.length;n++)i[parseInt(n.toString(),10)].name===e&&(e=i[parseInt(n.toString(),10)]);if(e){if(this.viewerBase.isFocusField=!0,this.viewerBase.focusField=e,this.formDesignerModule)this.navigationModule.goToPage(e.pageIndex+1);else{var o=parseFloat(e.id.split("_")[1]);this.navigationModule.goToPage(o+1)}setTimeout(function(){var i=document.getElementById(e.id);t.formDesignerModule&&"Checkbox"===e.type&&(i=document.getElementById(e.id+"_input")),i&&(!t.formDesignerModule||"SignatureField"!==e.type&&"InitialField"!==e.type?(i.focus(),t.viewerBase.isFocusField=!1,t.viewerBase.focusField=[]):i.parentElement.focus())},100)}},o.prototype.updateFormFieldsValue=function(e){var n=document.getElementById(e.id),o=!1;if(n){if((n=n||document.getElementById(e.id+"_content_html_element").children[0].children[0])&&"Textbox"===e.type||"Password"===e.type||"PasswordField"===e.type)n.value=e.value,n.multiline=e.isMultiline;else if("Checkbox"===e.type||"RadioButton"===e.type||"CheckBox"===e.type){if("CheckBox"===e.type&&(n.style.appearance="auto"),this.formDesignerModule)if("RadioButton"===e.type){var r={isSelected:e.isSelected};this.formDesignerModule.updateFormField(e,r)}else{var a={isChecked:e.isChecked};this.formDesignerModule.updateFormField(e,a)}else"RadioButton"===e.type?n.selected=e.isSelected:n.checked=e.isChecked;n.value!=e.value&&(n.value=e.value)}else if("DropDown"===e.type||"ListBox"===e.type||"DropdownList"===e.type)if(this.formDesignerModule){o=!0;var s={options:e.value};this.formDesignerModule.updateFormField(e,s)}else n.value=e.value,n.selectedIndex=e.selectedIndex;if("SignatureField"===e.type||"InitialField"===e.type){(e.signatureType||e.initialType)&&"string"!=typeof e.signatureType&&(e.signatureType=e.initialType),e.fontName=e.fontName?e.fontName:e.fontFamily;var l=e.value,d=this.getFormFieldByID(e.id),A=this.formDesignerModule?d.value===e.value:d.Value===e.value;n.classList.contains("e-pdfviewer-signatureformfields-signature")&&!A&&(this.formDesignerModule?this.annotation.deleteAnnotationById(e.id.split("_")[0]+"_content"):this.annotation.deleteAnnotationById(e.id)),e.signatureType&&e.value||(e.value=l,this.viewerBase.isSignaturePathData(e.value)?(e.signatureType="Path",n.signatureType="Path"):this.viewerBase.isSignatureImageData(e.value)?(e.signatureType="Image",n.signatureType="Image"):(e.signatureType="Type",n.signatureType="Type")),e.tooltip&&(n.tooltip=e.tooltip),n.Required=!!e.isRequired&&e.isRequired,A||this.formFieldsModule.drawSignature(e.signatureType,e.value,n,e.fontName,e.signatureBounds)}else o||this.formFieldsModule.updateDataInSession(n)}else{var h=this.viewerBase.getItemFromSessionStorage("_formDesigner");if(!t.isNullOrUndefined(h)){var p,c=JSON.parse(h),g=this.viewerBase.formFieldCollection.filter(function(t){return t.FormField.id.split("_")[0]===e.id});if("Path"===e.signatureType){var u=i.processPathData(e.value);p=i.splitArrayCollection(u)}g.forEach(function(t){t.FormField.signatureType=e.signatureType,"Path"===e.signatureType?t.FormField.value=JSON.stringify(p):t.FormField.value=e.value});for(w=0;w<c.length;w++)if(c[parseInt(w.toString(),10)].FormField.id.split("_")[0]===e.id){"Path"===e.signatureType?c[parseInt(w.toString(),10)].FormField.value=JSON.stringify(p):c[parseInt(w.toString(),10)].FormField.value=e.value,c[parseInt(w.toString(),10)].FormField.signatureType=e.signatureType,this.viewerBase.setItemInSessionStorage(c,"_formDesigner");break}}var f=this.viewerBase.getItemFromSessionStorage("_formfields");if(!t.isNullOrUndefined(f)){for(var c=JSON.parse(f),m=this,w=0;w<c.length;w++)!function(i){var n,o=c[parseInt(i.toString(),10)];n="Checkbox"===e.type||"RadioButton"===e.type||"CheckBox"===e.type?o.FieldName:"DropDown"===e.type||"ListBox"===e.type||"DropdownList"===e.type?o.Text:o.FieldName;var r=c.filter(function(e){return e.FieldName===o.FieldName.split("_")[0]});if(t.isNullOrUndefined(r)||t.isNullOrUndefined(r[0])||"SignatureField"!==r[0].Name&&"InitialField"!==r[0].Name||(n=o.FieldName.split("_")[0],o.LineBounds=c.filter(function(e){return e.FieldName===n})[0].LineBounds),n===e.name){if("Textbox"===e.type||"Password"===e.type||"PasswordField"===e.type)e.value&&(o.Text=e.value,o.Value=e.value);else if("Checkbox"===e.type||"RadioButton"===e.type||"CheckBox"===e.type)e.isSelected||e.isChecked?o.Selected=!0:o.Selected=!1,o.Value=e.value;else if("DropDown"===e.type||"ListBox"===e.type||"DropdownList"===e.type){o.SelectedValue=e.value;var a=o.TextList?o.TextList.indexOf(e.value):0;o.selectedIndex=a>-1?a:0,"ListBox"===e.type?o.SelectedListed=[o.selectedIndex]:o.SelectedListed=[]}else if(("SignatureField"===e.type||"InitialField"===e.type)&&e.value){o.Value=e.value;var s=o.Value;"string"==typeof s&&s.trim().startsWith("[")&&"Path"===e.signatureType&&(o.Value=m.viewerBase.signatureValue(s)),o=m.updateSignatureValue(o,e,e.signatureBounds)}m.formFieldsModule.updateFormFieldsCollection(o),m.viewerBase.updateDocumentEditedProperty(!0)}}(w);Fi.sessionStorageManager.removeItem(this.viewerBase.documentId+"_formfields"),this.viewerBase.setItemInSessionStorage(c,"_formfields")}}},o.prototype.getFormFieldByID=function(e){if(this.formDesignerModule)return this.nameTable[e.split("_")[0]];var t=Fi.sessionStorageManager.getItem(this.viewerBase.documentId+"_formfields"),i=JSON.parse(t);return i[i.findIndex(function(t){return t.uniqueID===e})]},o.prototype.ConvertPointToPixel=function(e){return e*(96/72)},o.prototype.updateSignatureValue=function(e,i,n){i.signatureType||(i.signatureType=this.viewerBase.isSignatureImageData(i.value)?"Image":this.viewerBase.isSignaturePathData(i.value)?"Path":"Type");var o,r=e.LineBounds,a=this.ConvertPointToPixel(r.X),s=this.ConvertPointToPixel(r.Y),l=this.ConvertPointToPixel(r.Width),d=this.ConvertPointToPixel(r.Height);if("Type"===i.signatureType){e.FontFamily||(e.FontFamily="Helvetica"),o=this.formFieldsModule.getSignBounds(e.pageIndex,e.RotationAngle,e.pageIndex,this.viewerBase.getZoomFactor(),a,s,l,d),"Default"===this.signatureFitMode&&(o=this.formFieldsModule.getDefaultBoundsforSign(o)),e.Bounds=o;var A=o.height/1.35,h=this.formFieldsModule.getTextWidth(e.value,A,e.FontFamily),p=1;h>o.width&&(p=o.width/h),e.FontSize=this.formFieldsModule.getFontSize(Math.floor(A*p))}else if("Image"===i.signatureType){o=this.formFieldsModule.getSignBounds(e.pageIndex,e.RotationAngle,e.pageIndex,this.viewerBase.getZoomFactor(),a,s,l,d);var c=new Image;c.src=e.Value;var g=this;c.onload=function(){g.imageOnLoad(o,c,e)}}else{if(-1!==e.Value.indexOf("base64"))o=this.formFieldsModule.getSignBounds(e.pageIndex,e.RotationAngle,e.pageIndex,this.viewerBase.getZoomFactor(),a,s,l,d),"Default"===this.signatureFitMode&&(o=this.formFieldsModule.getDefaultBoundsforSign(o));else if(t.isNullOrUndefined(n))if("Default"===this.signatureFitMode){var u=this.viewerBase.signatureModule.updateSignatureAspectRatio(e.Value,!1,null,e);(o=this.formFieldsModule.getSignBounds(e.pageIndex,e.RotationAngle,e.pageIndex,this.viewerBase.getZoomFactor(),a,s,u.width,u.height,!0)).x=o.x+u.left,o.y=o.y+u.top}else o=this.formFieldsModule.getSignBounds(e.pageIndex,e.RotationAngle,e.pageIndex,this.viewerBase.getZoomFactor(),a,s,l,d);else o=n;e.Bounds=o}return e},o.prototype.imageOnLoad=function(e,t,i){if("Default"===this.signatureFitMode){var n=Math.min(e.height/this.paddingDifferenceValue,e.width/this.paddingDifferenceValue),o=e.height-n,r=e.width-n,a=t.width,s=t.height,l=e.width,d=e.height,A=Math.min(r/a,o/s);e.width=a*A,e.height=s*A,e.x=e.x+(l-e.width)/2,e.y=e.y+(d-e.height)/2;var h=this.viewerBase.getItemFromSessionStorage("_formfields");if(h){for(var p=JSON.parse(h),c=0;c<p.length;c++)p[parseInt(c.toString(),10)].FieldName===i.FieldName&&(p[parseInt(c.toString(),10)].Bounds=e,this.formFieldsModule.updateFormFieldsCollection(p[parseInt(c.toString(),10)]));Fi.sessionStorageManager.removeItem(this.viewerBase.documentId+"_formfields"),this.viewerBase.setItemInSessionStorage(p,"_formfields")}}},o.prototype.undo=function(){this.annotationModule?this.annotationModule.undo():this.viewerBase.getModuleWarningMessage("Annotation")},o.prototype.redo=function(){this.annotationModule?this.annotationModule.redo():this.viewerBase.getModuleWarningMessage("Annotation")},o.prototype.unload=function(){t.isNullOrUndefined(this.viewerBase.pdfViewerRunner)||this.viewerBase.isPasswordProtected||!this.toolbar||this.viewerBase.skipOnReload||this.viewerBase.pdfViewerRunner.addTask({message:"unloadFPDF"},Et.High),this.viewerBase.clear(!0),this.pageCount=0,t.Browser.isDevice&&0===this.pageCount&&!this.enableDesktopMode&&(this.viewerBase.mobileSpanContainer.innerHTML=this.pageCount.toString(),this.viewerBase.mobilecurrentPageContainer.innerHTML=this.pageCount.toString()),t.isBlazor()?this.viewerBase.blazorUIAdaptor.resetToolbar():this.toolbarModule&&(this.viewerBase.pageCount=0,this.toolbarModule.resetToolbar()),this.fileByteArray&&(this.fileByteArray=null),this.magnificationModule&&this.magnificationModule.zoomTo(100),this.viewerBase.hyperlinkAndLinkAnnotation&&(this.viewerBase.hyperlinkAndLinkAnnotation={}),this.viewerBase.pageTextDetails&&(this.viewerBase.pageTextDetails={}),this.textSearchModule&&this.textSearchModule.showSearchBox(!1)},o.prototype.destroy=function(){n.prototype.destroy.call(this),t.isNullOrUndefined(this.element)||(this.refreshing||this.element.classList.remove("e-pdfviewer"),this.element.innerHTML=""),this.viewerBase.navigationPane&&(this.viewerBase.navigationPane.restrictUpdateZoomValue=!1),this.viewerBase.destroy(),this.viewerBase.navigationPane&&(this.viewerBase.navigationPane.restrictUpdateZoomValue=!0)},o.prototype.importAnnotation=function(i,n){if(this.annotationModule)if("string"==typeof i){var o=i.indexOf(".xfdf")>-1||n.indexOf("Xfdf")>-1;if(n)i.indexOf("</xfdf>")>-1?this.viewerBase.importAnnotations(i,n,!1):"Json"==n?i.includes("pdfAnnotation")?this.importAnnotationsAsJson(i):"json"===i.split(".")[1]?(this.viewerBase.isPDFViewerJson=!0,this.viewerBase.importAnnotations(i,n,o)):this.importAnnotationsAsJson(i):this.viewerBase.importAnnotations(i,n,o);else if("json"===i.split(".")[1])if(i.includes("pdfAnnotation"))this.importAnnotationsAsJson(i);else{var r=i.split(",")[1]?i.split(",")[1]:i.split(",")[0];i=decodeURIComponent(escape(atob(r))),this.importAnnotationsAsJson(i)}else this.viewerBase.importAnnotations(i,e.AnnotationDataFormat.Xfdf,o)}else{var a=i.pdfAnnotation;if("object"==typeof i&&!t.isNullOrUndefined(a)&&!t.isNullOrUndefined(Object.keys(a))&&!t.isNullOrUndefined(Object.keys(a)[0])&&Object.keys(a[Object.keys(a)[0]]).length>1)this.viewerBase.importAnnotations(i);else if(this.updateShortHexValues(i),i=JSON.stringify(i),this.viewerBase.isPDFViewerJson=!1,this.viewerBase.clientSideRendering){for(var s=(new TextEncoder).encode(i),l="",d=0;d<s.length;d+=65536)l+=String.fromCharCode.apply(String,Array.from(s.subarray(d,d+65536)));this.viewerBase.importAnnotations(btoa(l),e.AnnotationDataFormat.Json)}else this.viewerBase.importAnnotations(btoa(i),e.AnnotationDataFormat.Json)}else this.viewerBase.getModuleWarningMessage("Annotation")},o.prototype.updateShortHexValues=function(e){for(var i=Object.keys(e.pdfAnnotation),n=0;n<i.length;n++)for(var o=e.pdfAnnotation[i[parseInt(n.toString(),10)]].shapeAnnotation,r=0;r<o.length;r++){if(!t.isNullOrUndefined(o[parseInt(r.toString(),10)].color)&&3===o[parseInt(r.toString(),10)].color.replace("#","").length){var a=o[parseInt(r.toString(),10)].color.replace("#",""),s=a[0]+a[0],l=a[1]+a[1],d=a[2]+a[2];o[parseInt(r.toString(),10)].color="#"+s+l+d}if(!t.isNullOrUndefined(o[parseInt(r.toString(),10)]["interior-color"])&&3===o[parseInt(r.toString(),10)]["interior-color"].replace("#","").length){var A=o[parseInt(r.toString(),10)]["interior-color"].replace("#",""),s=A[0]+A[0],l=A[1]+A[1],d=A[2]+A[2];o[parseInt(r.toString(),10)]["interior-color"]="#"+s+l+d}}},o.prototype.importAnnotationsAsJson=function(t){var i=JSON.parse(t),n=i.pdfAnnotation[Object.keys(i.pdfAnnotation)[0]];Object.keys(i.pdfAnnotation).length>=1&&(n.textMarkupAnnotation||n.measureShapeAnnotation||n.freeTextAnnotation||n.stampAnnotations||n.signatureInkAnnotation||n.shapeAnnotation&&n.shapeAnnotation[0].Bounds)?(this.viewerBase.isPDFViewerJson=!0,this.viewerBase.importAnnotations(i,e.AnnotationDataFormat.Json)):(this.viewerBase.isPDFViewerJson=!1,this.viewerBase.importAnnotations(btoa(t),e.AnnotationDataFormat.Json))},o.prototype.exportAnnotation=function(t){this.annotationModule?t&&"Xfdf"===t?this.viewerBase.exportAnnotations(e.AnnotationDataFormat.Xfdf):this.viewerBase.exportAnnotations(e.AnnotationDataFormat.Json):this.viewerBase.getModuleWarningMessage("Annotation")},o.prototype.exportAnnotationsAsObject=function(t){var i=this;void 0===t&&(t=e.AnnotationDataFormat.Json);var n=this.viewerBase.updateExportItem();return this.annotationModule&&n?new Promise(function(e,n){i.viewerBase.exportAnnotationsAsObject(t).then(function(t){e(t)})}):new Promise(function(e){e(null)})},o.prototype.exportAnnotationsAsBase64String=function(e){var t=this;return this.annotationModule?new Promise(function(i,n){t.viewerBase.createRequestForExportAnnotations(!1,e,!0).then(function(e){i(e)})}):null},o.prototype.addAnnotation=function(e){this.viewerBase&&this.viewerBase.addAnnotation(e)},o.prototype.importFormFields=function(i,n){this.formFieldsModule?(t.isNullOrUndefined(n)&&(n=e.FormFieldDataFormat.Json),this.viewerBase.importFormFields(i,n)):this.viewerBase.getModuleWarningMessage("FormFields")},o.prototype.exportFormFields=function(e,t){this.formFieldsModule?this.viewerBase.exportFormFields(e,t):this.viewerBase.getModuleWarningMessage("FormFields")},o.prototype.exportFormFieldsAsObject=function(t){var i=this;return void 0===t&&(t=e.FormFieldDataFormat.Json),this.formFieldsModule?new Promise(function(e,n){i.viewerBase.exportFormFieldsAsObject(t).then(function(t){e(t)})}):null},o.prototype.resetFormFields=function(){this.formFieldsModule.resetFormFields()},o.prototype.clearFormFields=function(e){this.formFieldsModule.clearFormFields(e)},o.prototype.deleteAnnotations=function(){this.annotationModule?this.viewerBase.deleteAnnotations():this.viewerBase.getModuleWarningMessage("Annotation")},o.prototype.retrieveFormFields=function(){return this.formFieldCollections},o.prototype.updateFormFields=function(e){this.updateFormFieldsValue(e),this.formFieldsModule.updateFormFieldValues(e)},o.prototype.fireResourcesLoaded=function(){this.trigger("resourcesLoaded")},o.prototype.fireAjaxRequestInitiate=function(e){var t={name:"ajaxRequestInitiate",JsonData:e};this.trigger("ajaxRequestInitiate",t)},o.prototype.firePageRenderInitiate=function(e){var t={name:"pageRenderInitiate",jsonData:e};this.trigger("pageRenderInitiate",t)},o.prototype.fireButtonFieldClickEvent=function(e,t,i){var n={name:"buttonFieldClicked",buttonFieldValue:e,buttonFieldName:t,id:i};this.trigger("buttonFieldClick",n)},o.prototype.fireFormFieldClickEvent=function(e,i,n,o){return Ji(this,void 0,void 0,function(){var r,a,s,l;return ji(this,function(d){switch(d.label){case 0:return r={name:e,field:i,cancel:n},t.isBlazor()?[4,this.triggerEvent("formFieldClick",r)]:[3,2];case 1:return r=d.sent()||r,r.field.type=i.type,[3,3];case 2:this.triggerEvent("formFieldClick",r),d.label=3;case 3:return"SignatureField"!==i.type&&"InitialField"!==i.type||("InitialField"===i.type?this.viewerBase.isInitialField=!0:this.viewerBase.isInitialField=!1,"hidden"===(a=document.getElementById(i.id)).style.visibility&&(a.disabled=!0),a=a||(document.getElementById(i.id+"_content_html_element")?document.getElementById(i.id+"_content_html_element").children[0].children[0]:null),(s=this.formFieldCollections.filter(function(e){return e.id===i.id}))&&((l=s[0].isReadOnly)||r.cancel||!a||a.disabled||!a.classList.contains("e-pdfviewer-signatureformfields")||!o&&!t.isNullOrUndefined(o)?l&&(a.disabled=!0):this.viewerBase.signatureModule.showSignatureDialog(!0))),[2]}})})},o.prototype.fireFormFieldAddEvent=function(e,t,i){var n={name:e,field:t,pageIndex:i};this.viewerBase.isFormFieldSelect=!1,this.trigger("formFieldAdd",n),this.annotation||this.viewerBase.updateDocumentEditedProperty(!0)},o.prototype.fireFormFieldRemoveEvent=function(e,t,i){var n={name:e,field:t,pageIndex:i};this.trigger("formFieldRemove",n),this.annotation||this.viewerBase.updateDocumentEditedProperty(!0)},o.prototype.fireFormFieldDoubleClickEvent=function(e){return this.trigger("formFieldDoubleClick",e),e},o.prototype.fireFormFieldPropertiesChangeEvent=function(e,i,n,o,r,a,s,l,d,A,h,p,c,g,u,f,m,w,C,B,S,y){var I={name:e,field:i,pageIndex:n,isValueChanged:o,isFontFamilyChanged:r,isFontSizeChanged:a,isFontStyleChanged:s,isColorChanged:l,isBackgroundColorChanged:d,isBorderColorChanged:A,isBorderWidthChanged:h,isAlignmentChanged:p,isReadOnlyChanged:c,isVisibilityChanged:g,isMaxLengthChanged:u,isRequiredChanged:f,isPrintChanged:m,isToolTipChanged:w,oldValue:B,newValue:S,isNameChanged:!t.isNullOrUndefined(y)&&y,isCustomDataChanged:C};this.trigger("formFieldPropertiesChange",I),this.annotation||this.viewerBase.updateDocumentEditedProperty(!0)},o.prototype.fireFormFieldMouseLeaveEvent=function(e,t,i){var n={name:e,field:t,pageIndex:i};this.trigger("formFieldMouseLeave",n)},o.prototype.fireFormFieldMouseoverEvent=function(e,t,i,n,o,r,a){var s={name:e,field:t,pageIndex:i,pageX:n,pageY:o,X:r,Y:a};this.trigger("formFieldMouseover",s)},o.prototype.fireFormFieldMoveEvent=function(e,t,i,n,o){var r={name:e,field:t,pageIndex:i,previousPosition:n,currentPosition:o};this.trigger("formFieldMove",r),this.annotation||this.viewerBase.updateDocumentEditedProperty(!0)},o.prototype.fireFormFieldResizeEvent=function(e,t,i,n,o){var r={name:e,field:t,pageIndex:i,previousPosition:n,currentPosition:o};this.trigger("formFieldResize",r),this.annotation||this.viewerBase.updateDocumentEditedProperty(!0)},o.prototype.fireFormFieldSelectEvent=function(e,t,i,n){var o={name:e,field:t,pageIndex:i,isProgrammaticSelection:n};this.trigger("formFieldSelect",o)},o.prototype.fireFormFieldUnselectEvent=function(e,t,i){var n={name:e,field:t,pageIndex:i};this.trigger("formFieldUnselect",n)},o.prototype.fireDocumentLoad=function(e){var i={name:"documentLoad",documentName:this.fileName,pageData:e};this.trigger("documentLoad",i),t.isBlazor()&&(this._dotnetInstance.invokeMethodAsync("LoadDocument",null),this.viewerBase.blazorUIAdaptor.loadDocument())},o.prototype.fireDocumentUnload=function(e){var t={name:"documentUnload",documentName:e};this.trigger("documentUnload",t)},o.prototype.fireDocumentLoadFailed=function(e,t){var i={name:"documentLoadFailed",documentName:this.fileName,isPasswordRequired:e,password:t};this.trigger("documentLoadFailed",i)},o.prototype.fireAjaxRequestFailed=function(e,t,i,n){var o={name:"ajaxRequestFailed",documentName:this.fileName,errorStatusCode:e,errorMessage:t,action:i};n&&(o.retryCount=!0),this.trigger("ajaxRequestFailed",o)},o.prototype.fireAjaxRequestSuccess=function(e,t){var i={name:"ajaxRequestSuccess",documentName:this.fileName,action:e,data:t,cancel:!1};return this.trigger("ajaxRequestSuccess",i),!!i.cancel},o.prototype.firePageRenderComplete=function(e){var t={name:"pageRenderComplete",documentName:this.fileName,data:e};this.trigger("pageRenderComplete",t)},o.prototype.fireValidatedFailed=function(e){if(t.isBlazor())(i={}).documentName=this.fileName,i.formFields=this.formFieldCollections,i.nonFillableFields=this.viewerBase.nonFillableFields,this.trigger("validateFormFields",i);else{var i={formField:this.formFieldCollections,documentName:this.fileName,nonFillableFields:this.viewerBase.nonFillableFields};this.trigger("validateFormFields",i)}},o.prototype.firePageClick=function(e,t,i){var n={name:"pageClick",documentName:this.fileName,x:e,y:t,pageNumber:i};this.trigger("pageClick",n)},o.prototype.firePageChange=function(e){var i={name:"pageChange",documentName:this.fileName,currentPageNumber:this.currentPageNumber,previousPageNumber:e};this.trigger("pageChange",i),t.isBlazor()&&this.viewerBase.blazorUIAdaptor.pageChanged(this.currentPageNumber)},o.prototype.fireZoomChange=function(){var e={name:"zoomChange",zoomValue:100*this.magnificationModule.zoomFactor,previousZoomValue:100*this.magnificationModule.previousZoomFactor};this.trigger("zoomChange",e)},o.prototype.fireHyperlinkClick=function(e,i){return Ji(this,void 0,void 0,function(){var n;return ji(this,function(o){switch(o.label){case 0:return n={name:"hyperlinkClick",hyperlink:e,hyperlinkElement:i,cancel:!1},t.isBlazor()?[4,this.triggerEvent("hyperlinkClick",n)]:[3,2];case 1:return n=o.sent()||n,[3,3];case 2:this.triggerEvent("hyperlinkClick",n),o.label=3;case 3:return n.hyperlinkElement.href!==n.hyperlink&&(i.href=n.hyperlink),n.cancel?[2,!1]:[2,!0]}})})},o.prototype.fireHyperlinkHover=function(e){var t={name:"hyperlinkMouseOver",hyperlinkElement:e};this.trigger("hyperlinkMouseOver",t)},o.prototype.fireFocusOutFormField=function(e,t){var i={name:"formFieldFocusOut",fieldName:e,value:t};this.trigger("formFieldFocusOut",i)},o.prototype.fireAnnotationAdd=function(e,i,n,o,r,a,s,l,d,A,h){var p={name:"annotationAdd",pageIndex:e,annotationId:i,annotationType:n,annotationBound:o,annotationSettings:r};a&&(t.isBlazor()?(p.annotationSettings.textMarkupContent=a,p.annotationSettings.textMarkupStartIndex=s,p.annotationSettings.textMarkupEndIndex=l):(p.textMarkupContent=a,p.textMarkupStartIndex=s,p.textMarkupEndIndex=l)),d&&(p.labelSettings=d),A&&(p.multiplePageCollection=A),"Image"===n&&(p.customStampName=h),this.viewerBase.isAnnotationSelect=!1,this.trigger("annotationAdd",p),t.isBlazor()&&this.viewerBase.blazorUIAdaptor.annotationAdd()},o.prototype.fireAnnotationRemove=function(e,t,i,n,o,r,a,s){var l={name:"annotationRemove",pageIndex:e,annotationId:t,annotationType:i,annotationBounds:n};o&&(l.textMarkupContent=o,l.textMarkupStartIndex=r,l.textMarkupEndIndex=a),s&&(l.multiplePageCollection=s),this.trigger("annotationRemove",l)},o.prototype.fireBeforeAddFreeTextAnnotation=function(e){var t={name:"beforeAddFreeText",value:e};this.trigger("beforeAddFreeText",t)},o.prototype.fireCommentAdd=function(e,t,i){var n={name:"CommentAdd",id:e,text:t,annotation:i};this.trigger("commentAdd",n)},o.prototype.fireCommentEdit=function(e,t,i){var n={name:"CommentEdit",id:e,text:t,annotation:i};this.trigger("commentEdit",n)},o.prototype.fireCommentDelete=function(e,t,i){var n={name:"CommentDelete",id:e,text:t,annotation:i};this.trigger("commentDelete",n)},o.prototype.fireCommentSelect=function(e,t,i){var n={name:"CommentSelect",id:e,text:t,annotation:i};this.trigger("commentSelect",n)},o.prototype.fireCommentStatusChanged=function(e,t,i,n){var o={name:"CommentStatusChanged",id:e,text:t,annotation:i,status:n};this.trigger("commentStatusChanged",o)},o.prototype.fireAnnotationPropertiesChange=function(e,t,i,n,o,r,a,s,l,d,A){var h={name:"annotationPropertiesChange",pageIndex:e,annotationId:t,annotationType:i,isColorChanged:n,isOpacityChanged:o,isTextChanged:r,isCommentsChanged:a};s&&(h.textMarkupContent=s,h.textMarkupStartIndex=l,h.textMarkupEndIndex=d),A&&(h.multiplePageCollection=A),this.trigger("annotationPropertiesChange",h)},o.prototype.fireSignatureAdd=function(e,t,i,n,o,r,a,s){var l={pageIndex:e,id:t,type:i,bounds:n,opacity:o};a&&(l.thickness=a),r&&(l.strokeColor=r),s&&(l.data=s),this.trigger("addSignature",l)},o.prototype.fireSignatureRemove=function(e,t,i,n){var o={pageIndex:e,id:t,type:i,bounds:n};this.trigger("removeSignature",o)},o.prototype.fireSignatureMove=function(e,t,i,n,o,r,a,s){var l={pageIndex:e,id:t,type:i,opacity:n,strokeColor:o,thickness:r,previousPosition:a,currentPosition:s};this.trigger("moveSignature",l)},o.prototype.fireSignaturePropertiesChange=function(e,t,i,n,o,r,a,s){var l={pageIndex:e,id:t,type:i,isStrokeColorChanged:n,isOpacityChanged:o,isThicknessChanged:r,oldValue:a,newValue:s};this.trigger("signaturePropertiesChange",l)},o.prototype.fireSignatureResize=function(e,t,i,n,o,r,a,s){var l={pageIndex:e,id:t,type:i,opacity:n,strokeColor:o,thickness:r,currentPosition:a,previousPosition:s};this.trigger("resizeSignature",l)},o.prototype.fireSignatureSelect=function(e,t,i){var n={id:e,pageIndex:t,signature:i};this.trigger("signatureSelect",n)},o.prototype.fireSignatureUnselect=function(e,t,i){var n={id:e,pageIndex:t,signature:i};this.trigger("signatureUnselect",n)},o.prototype.fireAnnotationSelect=function(e,i,n,o,r,a,s){var l={name:"annotationSelect",annotationId:e,pageIndex:i,annotation:n};if(o&&(l={name:"annotationSelect",annotationId:e,pageIndex:i,annotation:n,annotationCollection:o}),r&&(l.multiplePageCollection=r),a&&(l.isProgrammaticSelection=a),s&&(l.annotationAddMode=s),t.isBlazor()){if("FreeText"===n.type){var d={isBold:!1,isItalic:!1,isStrikeout:!1,isUnderline:!1};1===n.fontStyle?d.isBold=!0:2===n.fontStyle?d.isItalic=!0:3===n.fontStyle?d.isStrikeout=!0:4===n.fontStyle&&(d.isUnderline=!0),n.fontStyle=d}this.viewerBase.blazorUIAdaptor.annotationSelect(n.type)}this.trigger("annotationSelect",l)},o.prototype.fireAnnotationUnSelect=function(e,i,n){t.isBlazor()&&this.viewerBase.blazorUIAdaptor.annotationUnSelect();var o={name:"annotationUnSelect",annotationId:e,pageIndex:i,annotation:n};this.trigger("annotationUnSelect",o)},o.prototype.fireAnnotationDoubleClick=function(e,t,i){var n={name:"annotationDblClick",annotationId:e,pageIndex:t,annotation:i};this.trigger("annotationDoubleClick",n)},o.prototype.fireTextSelectionStart=function(e){this.isTextSelectionStarted=!0;var t={pageIndex:e};this.trigger("textSelectionStart",t)},o.prototype.fireTextSelectionEnd=function(e,t,i){if(this.isTextSelectionStarted){var n={pageIndex:e,textContent:t,textBounds:i};this.trigger("textSelectionEnd",n),this.isTextSelectionStarted=!1}},o.prototype.renderDrawing=function(e,i){t.isNullOrUndefined(i)&&!t.isNullOrUndefined(this.viewerBase.activeElements.activePageID)&&this.viewerBase.activeElements.activePageID>=0&&!this.viewerBase.isPrint&&(i=this.viewerBase.activeElements.activePageID),this.annotation?this.annotation.renderAnnotations(i,null,null,null,e):this.formDesignerModule&&this.formDesignerModule.updateCanvas(i,e)},o.prototype.fireAnnotationResize=function(e,t,i,n,o,r,a,s,l,d){var A={name:"annotationResize",pageIndex:e,annotationId:t,annotationType:i,annotationBound:n,annotationSettings:o};r&&(A.textMarkupContent=r,A.textMarkupStartIndex=a,A.textMarkupEndIndex=s),l&&(A.labelSettings=l),d&&(A.multiplePageCollection=d),this.trigger("annotationResize",A)},o.prototype.fireAnnotationMoving=function(e,t,i,n,o,r){var a={name:"annotationMoving",pageIndex:e,annotationId:t,annotationType:i,annotationSettings:n,previousPosition:o,currentPosition:r};this.trigger("annotationMoving",a)},o.prototype.fireAnnotationMove=function(e,t,i,n,o,r){var a={name:"annotationMove",pageIndex:e,annotationId:t,annotationType:i,annotationSettings:n,previousPosition:o,currentPosition:r};this.trigger("annotationMove",a)},o.prototype.fireAnnotationMouseover=function(e,i,n,o,r,a,s){var l={name:"annotationMouseover",annotationId:e,pageIndex:i,annotationType:n,annotationBounds:o,annotation:r,pageX:a.left,pageY:a.top,X:s.left,Y:s.top};t.isBlazor()&&("Perimeter calculation"===r.subject?l.annotationType="Perimeter":"Area calculation"===r.subject?l.annotationType="Area":"Volume calculation"===r.subject?l.annotationType="Volume":"Arrow"===r.subject?l.annotationType="Arrow":"Circle"===r.subject&&(l.annotationType="Circle")),this.trigger("annotationMouseover",l)},o.prototype.fireAnnotationMouseLeave=function(e){var t={name:"annotationMouseLeave",pageIndex:e};this.trigger("annotationMouseLeave",t)},o.prototype.firePageMouseover=function(e,t){var i={pageX:e,pageY:t};this.trigger("pageMouseover",i)},o.prototype.fireDownloadStart=function(e){var t={fileName:e,cancel:!1};return this.trigger("downloadStart",t),!t.cancel},o.prototype.fireDownloadEnd=function(e,t){var i={fileName:e,downloadDocument:t};this.trigger("downloadEnd",i)},o.prototype.firePrintStart=function(){return Ji(this,void 0,void 0,function(){var e;return ji(this,function(i){switch(i.label){case 0:return e={fileName:this.downloadFileName,cancel:!1},t.isBlazor?[4,this.triggerEvent("printStart",e)]:[3,2];case 1:return e=i.sent()||e,[3,3];case 2:this.triggerEvent("printStart",e),i.label=3;case 3:return e.cancel||this.printModule.print(),[2]}})})},o.prototype.triggerEvent=function(e,i){return Ji(this,void 0,void 0,function(){var n;return ji(this,function(o){switch(o.label){case 0:return[4,this.trigger(e,i)];case 1:return n=o.sent(),t.isBlazor&&"string"==typeof n&&(n=JSON.parse(n)),[2,n]}})})},o.prototype.firePrintEnd=function(e){var t={fileName:e};this.trigger("printEnd",t)},o.prototype.fireThumbnailClick=function(e){var t={name:"thumbnailClick",pageNumber:e};this.trigger("thumbnailClick",t)},o.prototype.fireCustomToolbarClickEvent=function(e){return Ji(this,void 0,void 0,function(){return ji(this,function(t){return this.trigger("toolbarClick",e),[2]})})},o.prototype.fireBookmarkClick=function(e,t,i,n){var o={name:"bookmarkClick",pageNumber:e,position:t,text:i,fileName:n};this.trigger("bookmarkClick",o)},o.prototype.fireImportStart=function(e){var t={name:"importAnnotationsStart",importData:e,formFieldData:null};this.trigger("importStart",t)},o.prototype.fireExportStart=function(e){var t={name:"exportAnnotationsStart",exportData:e,formFieldData:null,cancel:!1};return this.trigger("exportStart",t),!t.cancel},o.prototype.fireImportSuccess=function(e){var t={name:"importAnnotationsSuccess",importData:e,formFieldData:null};this.trigger("importSuccess",t)},o.prototype.fireExportSuccess=function(e,t){var i={name:"exportAnnotationsSuccess",exportData:e,fileName:t,formFieldData:null};this.trigger("exportSuccess",i)},o.prototype.fireImportFailed=function(e,t){var i={name:"importAnnotationsFailed",importData:e,errorDetails:t,formFieldData:null};this.trigger("importFailed",i)},o.prototype.fireExportFailed=function(e,t){var i={name:"exportAnnotationsFailed",exportData:e,errorDetails:t,formFieldData:null};this.trigger("exportFailed",i)},o.prototype.fireFormImportStarted=function(e){var t={name:"importFormFieldsStart",importData:null,formFieldData:e};this.trigger("importStart",t)},o.prototype.fireFormExportStarted=function(e){var t={name:"exportFormFieldsStart",exportData:null,formFieldData:e,cancel:!1};return this.trigger("exportStart",t),!t.cancel},o.prototype.fireFormImportSuccess=function(e){var t={name:"importFormFieldsSuccess",importData:e,formFieldData:e};this.trigger("importSuccess",t)},o.prototype.fireFormExportSuccess=function(e,t){var i={name:"exportFormFieldsSuccess",exportData:e,fileName:t,formFieldData:e};this.trigger("exportSuccess",i)},o.prototype.fireFormImportFailed=function(e,t){var i={name:"importFormFieldsfailed",importData:e,errorDetails:t,formFieldData:e};this.trigger("importFailed",i)},o.prototype.fireFormExportFailed=function(e,t){var i={name:"exportFormFieldsFailed",exportData:e,errorDetails:t,formFieldData:e};this.trigger("exportFailed",i)},o.prototype.fireTextExtractionCompleted=function(t){var i=[];if(this.extractTextOption===e.ExtractTextOption.TextAndBounds)i=t;else if(this.extractTextOption===e.ExtractTextOption.None)i=[];else for(var n=0;n<t.length;n++){var o=t[parseInt(n.toString(),10)][parseInt(n.toString(),10)];switch(i[parseInt(n.toString(),10)]||(i[parseInt(n.toString(),10)]={}),this.extractTextOption){case e.ExtractTextOption.TextOnly:i[parseInt(n.toString(),10)][parseInt(n.toString(),10)]={PageSize:o.PageSize,PageText:o.PageText};break;case e.ExtractTextOption.BoundsOnly:i[parseInt(n.toString(),10)][parseInt(n.toString(),10)]={PageSize:o.PageSize,TextData:o.TextData}}}var r={documentTextCollection:i};this.trigger("extractTextCompleted",r)},o.prototype.fireTextSearchStart=function(e,t){var i={name:"textSearchStart",searchText:e,matchCase:t};this.trigger("textSearchStart",i)},o.prototype.fireTextSearchComplete=function(e,t){var i={name:"textSearchComplete",searchText:e,matchCase:t};this.trigger("textSearchComplete",i)},o.prototype.fireTextSearchHighlight=function(e,t,i,n){var o={name:"textSearchHighlight",searchText:e,matchCase:t,bounds:i,pageNumber:n};this.trigger("textSearchHighlight",o)},o.prototype.firecustomContextMenuSelect=function(e){var t={id:e};this.trigger("customContextMenuSelect",t)},o.prototype.firecustomContextMenuBeforeOpen=function(e){var t={ids:e};this.trigger("customContextMenuBeforeOpen",t)},o.prototype.fireKeyboardCustomCommands=function(e){var t={keyboardCommand:e};this.trigger("keyboardCustomCommands",t)},o.prototype.firePageOrganizerSaveAsEventArgs=function(e,t){var i={fileName:e,downloadDocument:t,cancel:!1};return this.trigger("pageOrganizerSaveAs",i),!i.cancel},o.prototype.firePageOrganizerZoomChanged=function(e,t){var i={previousZoom:e,currentZoom:t};this.trigger("pageOrganizerZoomChanged",i)},o.prototype.renderAdornerLayer=function(e,t,i,n){te(e,t,i,n,this)},o.prototype.renderSelector=function(e,t){this.drawing.renderSelector(e,t)},o.prototype.select=function(e,t,i,n){var o=this.allowServerDataBinding;if(this.enableServerDataBinding(!1),this.annotationModule){var r=this.annotationModule.textMarkupAnnotationModule,a=r&&r.selectTextMarkupCurrentPage,s=this.selectedItems.annotations[0];if(a){var l=this.annotationModule.textMarkupAnnotationModule.currentTextMarkupAnnotation;this.annotationModule.textMarkupAnnotationModule.clearCurrentAnnotationSelection(a,!0),this.fireAnnotationUnSelect(l.annotName,l.pageNumber,l)}i||this.viewerBase.activeElements&&this.viewerBase.activeElements.activePageID>=0&&!this.viewerBase.isNewStamp&&s&&"HandWrittenSignature"!==s.shapeAnnotationType&&"SignatureText"!==s.shapeAnnotationType&&"SignatureImage"!==s.shapeAnnotationType&&this.fireAnnotationUnSelect(s.annotName,s.pageIndex,s)}if(this.viewerBase.signatureModule){s=this.selectedItems.annotations[0];if(!i){var d=this.selectedItems;if(d.annotations.length)for(var A=0;A<d.annotations.length;A++){var h=d.annotations[parseInt(A.toString(),10)];this.viewerBase.activeElements&&this.viewerBase.activeElements.activePageID>=0&&(this.viewerBase.isNewSignatureAdded||"HandWrittenSignature"!==s.shapeAnnotationType&&"SignatureText"!==s.shapeAnnotationType&&"SignatureImage"!==s.shapeAnnotationType||this.annotationModule.unselectSignature(h.signatureName,h.pageIndex,h))}}}if(this.formDesignerModule){var p=this.selectedItems.formFields[0];if(p&&this.formDesignerModule&&p&&p.formFieldAnnotationType){var c={name:p.name,id:p.id,value:p.value,fontFamily:p.fontFamily,fontSize:p.fontSize,fontStyle:p.fontStyle,color:p.color,backgroundColor:p.backgroundColor,borderColor:p.borderColor,thickness:p.thickness,alignment:p.alignment,isReadonly:p.isReadonly,visibility:p.visibility,maxLength:p.maxLength,isRequired:p.isRequired,isPrint:p.isPrint,rotation:p.rotateAngle,tooltip:p.tooltip,options:p.options,isChecked:p.isChecked,isSelected:p.isSelected};this.fireFormFieldUnselectEvent("formFieldUnselect",c,p.pageIndex)}}var g=this;this.viewerBase.renderedPagesList.forEach(function(e){g.clearSelection(e)}),this.drawing.select(e,t,i,n),this.enableServerDataBinding(o,!0)},o.prototype.getPageTable=function(e){return this.drawing.getPageTable(e)},o.prototype.dragSelectedObjects=function(e,t,i,n,o){return this.drawing.dragSelectedObjects(e,t,i,n,o)},o.prototype.scaleSelectedItems=function(e,t,i){return this.drawing.scaleSelectedItems(e,t,i)},o.prototype.dragConnectorEnds=function(e,t,i,n,o,r,a){return this.drawing.dragConnectorEnds(e,t,i,n,o,null,a)},o.prototype.clearSelection=function(e){var t=this.allowServerDataBinding;this.enableServerDataBinding(!1);var i=this.selectedItems;i.annotations.length>0?this.selectedItems.annotations[0]:this.selectedItems.formFields[0];if(i.annotations.length>0?(i.offsetX=0,i.offsetY=0,i.width=0,i.height=0,i.rotateAngle=0,i.annotations=[],i.wrapper=null):i.formFields.length>0&&(i.offsetX=0,i.offsetY=0,i.width=0,i.height=0,i.rotateAngle=0,i.formFields=[],i.wrapper=null),this.drawing.clearSelectorLayer(e),this.viewerBase.isAnnotationSelect=!1,this.viewerBase.isFormFieldSelect=!1,this.annotationModule){var n=this.annotationModule.textMarkupAnnotationModule;if(n){var o=n.selectTextMarkupCurrentPage;this.annotationModule.textMarkupAnnotationModule.clearCurrentSelectedAnnotation(),this.annotationModule.textMarkupAnnotationModule.clearCurrentAnnotationSelection(o)}}this.enableServerDataBinding(t,!0)},o.prototype.getPageNumberFromClientPoint=function(e){return this.viewerBase.getPageNumberFromClientPoint(e)},o.prototype.convertClientPointToPagePoint=function(e,t){return this.viewerBase.convertClientPointToPagePoint(e,t)},o.prototype.convertPagePointToClientPoint=function(e,t){return this.viewerBase.convertPagePointToClientPoint(e,t)},o.prototype.convertPagePointToScrollingPoint=function(e,t){return this.viewerBase.convertPagePointToScrollingPoint(e,t)},o.prototype.zoomToRect=function(e){this.magnificationModule.zoomToRect(e)},o.prototype.add=function(e){return this.drawing.add(e)},o.prototype.remove=function(e){return this.drawing.remove(e)},o.prototype.copy=function(){return this.annotation?this.annotation.isShapeCopied=!0:this.formDesigner&&this.designerMode&&(this.formDesigner.isShapeCopied=!0),this.drawing.copy()},o.prototype.rotate=function(e,t){return this.drawing.rotate(this.selectedItems,e,null,t)},o.prototype.paste=function(e){var t;return this.viewerBase.activeElements.activePageID&&(t=this.viewerBase.activeElements.activePageID),this.drawing.paste(e,t||0)},o.prototype.refresh=function(){for(var e=0;e<this.annotations.length;e++){if(void 0!==this.zIndexTable.length){for(var t=0;t<this.zIndexTable.length;t++){for(var i=this.zIndexTable[parseInt(t.toString(),10)].objects,n=0;n<i.length;n++)i.splice(n,1);delete this.zIndexTable[parseInt(t.toString(),10)]}this.annotations[parseInt(e.toString(),10)]&&delete this.annotations[parseInt(e.toString(),10)],this.selectedItems.annotations&&this.selectedItems.annotations[parseInt(e.toString(),10)]&&delete this.selectedItems.annotations[parseInt(e.toString(),10)],this.zIndexTable=[],this.renderDrawing()}this.annotations&&0!==this.annotations.length&&(this.annotations.length=0,this.selectedItems.annotations.length=0)}},o.prototype.cut=function(){var e;return this.viewerBase.activeElements.activePageID&&(e=this.viewerBase.activeElements.activePageID),this.annotation?this.annotation.isShapeCopied=!0:this.formDesigner&&this.designerMode&&(this.formDesigner.isShapeCopied=!0),this.drawing.cut(e||0)},o.prototype.nodePropertyChange=function(e,t,i){this.drawing.nodePropertyChange(e,t,i)},o.prototype.enableServerDataBinding=function(e,i){void 0===i&&(i=!1),t.isBlazor()&&(this.allowServerDataBinding=e,i&&(this.bulkChanges={}))},o.prototype.checkBoundaryConstraints=function(e,t,i,n,o,r){return this.drawing.checkBoundaryConstraints(e,t,i,n,o,r)},o.prototype.addCustomMenu=function(e,i,n){var o;t.isNullOrUndefined(e)||((o=this.customContextMenuItems).push.apply(o,e),this.showCustomContextMenuBottom=n),this.disableDefaultContextMenu=i},Gi([t.Property()],o.prototype,"serviceUrl",void 0),Gi([t.Property(0)],o.prototype,"pageCount",void 0),Gi([t.Property(1)],o.prototype,"printScaleFactor",void 0),Gi([t.Property(!1)],o.prototype,"isDocumentEdited",void 0),Gi([t.Property(0)],o.prototype,"currentPageNumber",void 0),Gi([t.Property()],o.prototype,"documentPath",void 0),Gi([t.Property(null)],o.prototype,"exportAnnotationFileName",void 0),Gi([t.Property()],o.prototype,"downloadFileName",void 0),Gi([t.Property("auto")],o.prototype,"height",void 0),Gi([t.Property("auto")],o.prototype,"width",void 0),Gi([t.Property(!0)],o.prototype,"enableToolbar",void 0),Gi([t.Property(1)],o.prototype,"retryCount",void 0),Gi([t.Property([500])],o.prototype,"retryStatusCodes",void 0),Gi([t.Property(0)],o.prototype,"retryTimeout",void 0),Gi([t.Property(2)],o.prototype,"initialRenderPages",void 0),Gi([t.Property(!0)],o.prototype,"showNotificationDialog",void 0),Gi([t.Property(!0)],o.prototype,"enableNavigationToolbar",void 0),Gi([t.Property(!0)],o.prototype,"enableCommentPanel",void 0),Gi([t.Property(!1)],o.prototype,"isCommandPanelOpen",void 0),Gi([t.Property(!1)],o.prototype,"enableTextMarkupResizer",void 0),Gi([t.Property(!1)],o.prototype,"enableMultiLineOverlap",void 0),Gi([t.Property(!1)],o.prototype,"isValidFreeText",void 0),Gi([t.Property(!1)],o.prototype,"isAnnotationToolbarOpen",void 0),Gi([t.Property(!1)],o.prototype,"isAnnotationToolbarVisible",void 0),Gi([t.Property(!1)],o.prototype,"isFormDesignerToolbarVisible",void 0),Gi([t.Property(!1)],o.prototype,"enableMultiPageAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableDownload",void 0),Gi([t.Property(!0)],o.prototype,"enablePrint",void 0),Gi([t.Property(!0)],o.prototype,"enablePrintRotation",void 0),Gi([t.Property([])],o.prototype,"customFonts",void 0),Gi([t.Property(!0)],o.prototype,"enableThumbnail",void 0),Gi([t.Property(!0)],o.prototype,"enablePageOrganizer",void 0),Gi([t.Property(!1)],o.prototype,"isPageOrganizerOpen",void 0),Gi([t.Property({canDelete:!0,canInsert:!0,canRotate:!0,canCopy:!0,canRearrange:!0,canImport:!0,showImageZoomingSlider:!1,imageZoomMin:1,imageZoomMax:5,imageZoom:1})],o.prototype,"pageOrganizerSettings",void 0),Gi([t.Property(!1)],o.prototype,"isThumbnailViewOpen",void 0),Gi([t.Property(!1)],o.prototype,"isSignatureEditable",void 0),Gi([t.Property(!0)],o.prototype,"enableBookmark",void 0),Gi([t.Property("TextAndBounds")],o.prototype,"extractTextOption",void 0),Gi([t.Property(!1)],o.prototype,"enableLocalStorage",void 0),Gi([t.Property(!1)],o.prototype,"enableBookmarkStyles",void 0),Gi([t.Property(!0)],o.prototype,"enableHyperlink",void 0),Gi([t.Property(!0)],o.prototype,"enableHandwrittenSignature",void 0),Gi([t.Property(!0)],o.prototype,"enableInkAnnotation",void 0),Gi([t.Property(!1)],o.prototype,"restrictZoomRequest",void 0),Gi([t.Property("CurrentTab")],o.prototype,"hyperlinkOpenState",void 0),Gi([t.Property("RightClick")],o.prototype,"contextMenuOption",void 0),Gi([t.Property([])],o.prototype,"disableContextMenuItems",void 0),Gi([t.Property({name:"",id:"",type:"",isReadOnly:!1,isSelected:!1,isChecked:!1,value:"",signatureType:[""],fontName:"",fontFamily:"Helvetica",fontSize:10,fontStyle:"None",color:"black",backgroundColor:"white",alignment:"Left",visibility:"visible",maxLength:0,isRequired:!1,isPrint:!1,tooltip:"",pageIndex:-1,options:[],signatureIndicatorSettings:{opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black",customData:""}})],o.prototype,"formFieldCollections",void 0),Gi([t.Property(!0)],o.prototype,"enableNavigation",void 0),Gi([t.Property(!0)],o.prototype,"enableAutoComplete",void 0),Gi([t.Property(!0)],o.prototype,"enableMagnification",void 0),Gi([t.Property(!1)],o.prototype,"enableShapeLabel",void 0),Gi([t.Property(!0)],o.prototype,"enableImportAnnotationMeasurement",void 0),Gi([t.Property(!0)],o.prototype,"enablePinchZoom",void 0),Gi([t.Property(!0)],o.prototype,"enableTextSelection",void 0),Gi([t.Property(!0)],o.prototype,"enableTextSearch",void 0),Gi([t.Property(!0)],o.prototype,"enableAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableFormFields",void 0),Gi([t.Property(!0)],o.prototype,"enableFormDesigner",void 0),Gi([t.Property(!1)],o.prototype,"designerMode",void 0),Gi([t.Property(!1)],o.prototype,"enableFormFieldsValidation",void 0),Gi([t.Property(!1)],o.prototype,"isFormFieldDocument",void 0),Gi([t.Property(!1)],o.prototype,"enableDesktopMode",void 0),Gi([t.Property(!1)],o.prototype,"hideSaveSignature",void 0),Gi([t.Property(!0)],o.prototype,"enableFreeText",void 0),Gi([t.Property(!0)],o.prototype,"enableTextMarkupAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableShapeAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableMeasureAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableStampAnnotations",void 0),Gi([t.Property(!0)],o.prototype,"enableStickyNotesAnnotation",void 0),Gi([t.Property(!0)],o.prototype,"enableAnnotationToolbar",void 0),Gi([t.Property(!0)],o.prototype,"enableFormDesignerToolbar",void 0),Gi([t.Property(!1)],o.prototype,"isBookmarkPanelOpen",void 0),Gi([t.Property(!1)],o.prototype,"isInitialFieldToolbarSelection",void 0),Gi([t.Property("TextSelection")],o.prototype,"interactionMode",void 0),Gi([t.Property("Default")],o.prototype,"zoomMode",void 0),Gi([t.Property("Default")],o.prototype,"signatureFitMode",void 0),Gi([t.Property("Default")],o.prototype,"printMode",void 0),Gi([t.Property(0)],o.prototype,"zoomValue",void 0),Gi([t.Property(10)],o.prototype,"minZoom",void 0),Gi([t.Property(400)],o.prototype,"maxZoom",void 0),Gi([t.Property(!0)],o.prototype,"enableZoomOptimization",void 0),Gi([t.Property(!1)],o.prototype,"isExtractText",void 0),Gi([t.Property(!1)],o.prototype,"isMaintainSelection",void 0),Gi([t.Property(!1)],o.prototype,"hideEmptyDigitalSignatureFields",void 0),Gi([t.Property(!0)],o.prototype,"showDigitalSignatureAppearance",void 0),Gi([t.Property(!0)],o.prototype,"enableAccessibilityTags",void 0),Gi([t.Property(!0)],o.prototype,"enableHtmlSanitizer",void 0),Gi([t.Property("M/d/yyyy h:mm:ss a")],o.prototype,"dateTimeFormat",void 0),Gi([t.Property("")],o.prototype,"resourceUrl",void 0),Gi([t.Property({showTooltip:!0,toolbarItems:["OpenOption","UndoRedoTool","PageNavigationTool","MagnificationTool","PanTool","SelectionTool","CommentTool","SubmitForm","AnnotationEditTool","FormDesignerEditTool","FreeTextAnnotationOption","InkAnnotationOption","ShapeAnnotationOption","StampAnnotation","SignatureOption","SearchOption","PrintOption","DownloadOption"],annotationToolbarItems:["HighlightTool","UnderlineTool","StrikethroughTool","SquigglyTool","ColorEditTool","OpacityEditTool","AnnotationDeleteTool","StampAnnotationTool","HandWrittenSignatureTool","InkAnnotationTool","ShapeTool","CalibrateTool","StrokeColorEditTool","ThicknessEditTool","FreeTextAnnotationTool","FontFamilyAnnotationTool","FontSizeAnnotationTool","FontStylesAnnotationTool","FontAlignAnnotationTool","FontColorAnnotationTool","CommentPanelTool"],formDesignerToolbarItems:["TextboxTool","PasswordTool","CheckBoxTool","RadioButtonTool","DropdownTool","ListboxTool","DrawSignatureTool","DeleteTool"]})],o.prototype,"toolbarSettings",void 0),Gi([t.Property({ajaxHeaders:[],withCredentials:!1})],o.prototype,"ajaxRequestSettings",void 0),Gi([t.Property({customStampName:"",customStampImageSource:""}
vendor: 17,838 bytes, line 10
10)],o.prototype,"customStamp",void 0),Gi([t.Property({load:"Load",renderPages:"RenderPdfPages",unload:"Unload",download:"Download",renderThumbnail:"RenderThumbnailImages",print:"PrintImages",renderComments:"RenderAnnotationComments",importAnnotations:"ImportAnnotations",exportAnnotations:"ExportAnnotations",importFormFields:"ImportFormFields",exportFormFields:"ExportFormFields",renderTexts:"RenderPdfTexts",validatePassword:"ValidatePassword"})],o.prototype,"serverActionSettings",void 0),Gi([t.Property({name:"",isReadOnly:!1,visibility:"visible",isRequired:!1,isPrint:!0,tooltip:"",thickness:1,signatureIndicatorSettings:{opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black"},signatureDialogSettings:{displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1}})],o.prototype,"signatureFieldSettings",void 0),Gi([t.Property({name:"",isReadOnly:!1,visibility:"visible",isRequired:!1,isPrint:!0,tooltip:"",thickness:1,initialIndicatorSettings:{opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black"},initialDialogSettings:{displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1}})],o.prototype,"initialFieldSettings",void 0),Gi([t.Property({opacity:1,color:"#FFDF56",author:"Guest",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges},isLock:!1,enableMultiPageAnnotation:!1,enableTextMarkupResizer:!1,allowedInteractions:["None"],isPrint:!0,subject:"Highlight"})],o.prototype,"highlightSettings",void 0),Gi([t.Property({opacity:1,color:"#ff0000",author:"Guest",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges},isLock:!1,enableMultiPageAnnotation:!1,enableTextMarkupResizer:!1,allowedInteractions:["None"],isPrint:!0,subject:"Strikethrough"})],o.prototype,"strikethroughSettings",void 0),Gi([t.Property({opacity:1,color:"#ff0000",author:"Guest",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges},isLock:!1,enableMultiPageAnnotation:!1,enableTextMarkupResizer:!1,allowedInteractions:["None"],isPrint:!0,subject:"Squiggly"})],o.prototype,"squigglySettings",void 0),Gi([t.Property({opacity:1,color:"#00ff00",author:"Guest",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges},isLock:!1,enableMultiPageAnnotation:!1,enableTextMarkupResizer:!1,allowedInteractions:["None"],isPrint:!0,subject:"Underline"})],o.prototype,"underlineSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,borderDashArray:0,lineHeadStartStyle:"None",lineHeadEndStyle:"None",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Line"})],o.prototype,"lineSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,borderDashArray:0,lineHeadStartStyle:"Closed",lineHeadEndStyle:"Closed",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Arrow"})],o.prototype,"arrowSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Rectangle"})],o.prototype,"rectangleSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",borderColor:"#ff0000",fontColor:"#000",fontSize:16,labelHeight:24.6,labelMaxWidth:151,labelContent:"Label"})],o.prototype,"shapeLabelSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Circle"})],o.prototype,"circleSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Polygon"})],o.prototype,"polygonSettings",void 0),Gi([t.Property({opacity:1,author:"Guest",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,dynamicStamps:[e.DynamicStampItem.Revised,e.DynamicStampItem.Reviewed,e.DynamicStampItem.Received,e.DynamicStampItem.Confidential,e.DynamicStampItem.Approved,e.DynamicStampItem.NotApproved],signStamps:[e.SignStampItem.Witness,e.SignStampItem.InitialHere,e.SignStampItem.SignHere,e.SignStampItem.Accepted,e.SignStampItem.Rejected],standardBusinessStamps:[e.StandardBusinessStampItem.Approved,e.StandardBusinessStampItem.NotApproved,e.StandardBusinessStampItem.Draft,e.StandardBusinessStampItem.Final,e.StandardBusinessStampItem.Completed,e.StandardBusinessStampItem.Confidential,e.StandardBusinessStampItem.ForPublicRelease,e.StandardBusinessStampItem.NotForPublicRelease,e.StandardBusinessStampItem.ForComment,e.StandardBusinessStampItem.Void,e.StandardBusinessStampItem.PreliminaryResults,e.StandardBusinessStampItem.InformationOnly],allowedInteractions:["None"],isPrint:!0,subject:""})],o.prototype,"stampSettings",void 0),Gi([t.Property({opacity:1,author:"Guest",width:0,height:0,left:0,top:0,minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,enableCustomStamp:!0,allowedInteractions:["None"],isPrint:!0,subject:""})],o.prototype,"customStampSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,borderDashArray:0,lineHeadStartStyle:"Closed",lineHeadEndStyle:"Closed",annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,leaderLength:40,resizeCursorType:e.CursorType.move,allowedInteractions:["None"],isPrint:!0,subject:"Distance calculation"})],o.prototype,"distanceSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,borderDashArray:0,lineHeadStartStyle:"Open",lineHeadEndStyle:"Open",minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},allowedInteractions:["None"],isPrint:!0,subject:"Perimeter calculation"})],o.prototype,"perimeterSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},allowedInteractions:["None"],isPrint:!0,subject:"Area calculation"})],o.prototype,"areaSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Radius calculation"})],o.prototype,"radiusSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",strokeColor:"#ff0000",author:"Guest",thickness:1,minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},allowedInteractions:["None"],isPrint:!0,subject:"Volume calculation"})],o.prototype,"volumeSettings",void 0),Gi([t.Property({author:"Guest",opacity:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Sticky Note"})],o.prototype,"stickyNotesSettings",void 0),Gi([t.Property({opacity:1,fillColor:"#ffffff00",borderColor:"#ffffff00",author:"Guest",borderWidth:1,width:151,fontSize:16,height:24.6,fontColor:"#000",fontFamily:"Helvetica",defaultText:"Type Here",textAlignment:"Left",fontStyle:e.FontStyle.None,allowTextOnly:!1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,allowedInteractions:["None"],isPrint:!0,isReadonly:!1,enableAutoFit:!1,subject:"Text Box"})],o.prototype,"freeTextSettings",void 0),Gi([t.Property({conversionUnit:"in",displayUnit:"in",scaleRatio:1,depth:96})],o.prototype,"measurementSettings",void 0),Gi([t.Property({selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null})],o.prototype,"annotationSelectorSettings",void 0),Gi([t.Property({searchHighlightColor:"#fdd835",searchColor:"#8b4c12"})],o.prototype,"textSearchColorSettings",void 0),Gi([t.Property({displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1})],o.prototype,"signatureDialogSettings",void 0),Gi([t.Property({displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1})],o.prototype,"initialDialogSettings",void 0),Gi([t.Property({signatureItem:["Signature","Initial"],saveSignatureLimit:1,saveInitialLimit:1,opacity:1,strokeColor:"#000000",width:150,height:100,thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},allowedInteractions:["None"],signatureDialogSettings:{displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1},initialDialogSettings:{displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1}})],o.prototype,"handWrittenSignatureSettings",void 0),Gi([t.Property({author:"Guest",opacity:1,strokeColor:"#ff0000",thickness:1,annotationSelectorSettings:{selectionBorderColor:"",resizerBorderColor:"black",resizerFillColor:"#FF4081",resizerSize:8,selectionBorderThickness:1,resizerShape:"Square",selectorLineDashArray:[],resizerLocation:e.AnnotationResizerLocation.Corners|e.AnnotationResizerLocation.Edges,resizerCursorType:null},isLock:!1,allowedInteractions:["None"],isPrint:!0,subject:"Ink"})],o.prototype,"inkAnnotationSettings",void 0),Gi([t.Property({author:"Guest",minHeight:0,minWidth:0,maxWidth:0,maxHeight:0,isLock:!1,skipPrint:!1,skipDownload:!1,allowedInteractions:["None"],subject:""})],o.prototype,"annotationSettings",void 0),Gi([t.Property({enableTileRendering:!0,x:0,y:0})],o.prototype,"tileRenderingSettings",void 0),Gi([t.Property({delayPageRequestTimeOnScroll:100})],o.prototype,"scrollSettings",void 0),Gi([t.Property({name:"",value:"",fontFamily:"Helvetica",fontSize:10,fontStyle:"None",color:"black",borderColor:"black",backgroundColor:"white",alignment:"Left",isReadOnly:!1,visibility:"visible",maxLength:0,isRequired:!1,isPrint:!0,tooltip:"",thickness:1,isMultiline:!1,customData:""})],o.prototype,"textFieldSettings",void 0),Gi([t.Property({name:"",value:"",fontFamily:"Helvetica",fontSize:10,fontStyle:"None",color:"black",borderColor:"black",backgroundColor:"white",alignment:"Left",isReadOnly:!1,visibility:"visible",maxLength:0,isRequired:!1,isPrint:!0,tooltip:"",thickness:1,customData:""})],o.prototype,"passwordFieldSettings",void 0),Gi([t.Property({name:"",value:"",isChecked:!1,backgroundColor:"white",isReadOnly:!1,visibility:"visible",isPrint:!0,tooltip:"",isRequired:!1,thickness:1,borderColor:"black",customData:""})],o.prototype,"checkBoxFieldSettings",void 0),Gi([t.Property({name:"",value:"",isSelected:!1,backgroundColor:"white",isReadOnly:!1,visibility:"visible",isPrint:!0,tooltip:"",isRequired:!1,thickness:1,borderColor:"black",customData:""})],o.prototype,"radioButtonFieldSettings",void 0),Gi([t.Property({name:"",fontFamily:"Helvetica",fontSize:10,fontStyle:"None",color:"black",backgroundColor:"white",alignment:"Left",isReadOnly:!1,visibility:"visible",isRequired:!1,isPrint:!0,tooltip:"",options:[],thickness:1,borderColor:"black",customData:""})],o.prototype,"DropdownFieldSettings",void 0),Gi([t.Property({name:"",fontFamily:"Helvetica",fontSize:10,fontStyle:"None",color:"black",backgroundColor:"white",alignment:"Left",isReadOnly:!1,visibility:"visible",isRequired:!1,isPrint:!1,tooltip:"",options:[],thickness:1,borderColor:"black",customData:""})],o.prototype,"listBoxFieldSettings",void 0),Gi([t.Property({contextMenuAction:"RightClick",contextMenuItems:[e.ContextMenuItem.Comment,e.ContextMenuItem.Copy,e.ContextMenuItem.Cut,e.ContextMenuItem.Delete,e.ContextMenuItem.Highlight,e.ContextMenuItem.Paste,e.ContextMenuItem.Properties,e.ContextMenuItem.ScaleRatio,e.ContextMenuItem.Strikethrough,e.ContextMenuItem.Underline,e.ContextMenuItem.Squiggly]})],o.prototype,"contextMenuSettings",void 0),Gi([t.Property([])],o.prototype,"customContextMenuItems",void 0),Gi([t.Property(!1)],o.prototype,"disableDefaultContextMenu",void 0),Gi([t.Property(!1)],o.prototype,"showCustomContextMenuBottom",void 0),Gi([t.Complex({},Kn)],o.prototype,"commandManager",void 0),Gi([t.Complex({},at)],o.prototype,"selectedItems",void 0),Gi([t.Event()],o.prototype,"created",void 0),Gi([t.Event()],o.prototype,"resourcesLoaded",void 0),Gi([t.Event()],o.prototype,"documentLoad",void 0),Gi([t.Event()],o.prototype,"documentUnload",void 0),Gi([t.Event()],o.prototype,"documentLoadFailed",void 0),Gi([t.Event()],o.prototype,"ajaxRequestFailed",void 0),Gi([t.Event()],o.prototype,"ajaxRequestSuccess",void 0),Gi([t.Event()],o.prototype,"pageRenderComplete",void 0),Gi([t.Event()],o.prototype,"validateFormFields",void 0),Gi([t.Event()],o.prototype,"pageClick",void 0),Gi([t.Event()],o.prototype,"pageChange",void 0),Gi([t.Event()],o.prototype,"hyperlinkCl
10ick",void 0),Gi([t.Event()],o.prototype,"hyperlinkMouseOver",void 0),Gi([t.Event()],o.prototype,"zoomChange",void 0),Gi([t.Event()],o.prototype,"annotationAdd",void 0),Gi([t.Event()],o.prototype,"annotationRemove",void 0),Gi([t.Event()],o.prototype,"annotationPropertiesChange",void 0),Gi([t.Event()],o.prototype,"annotationResize",void 0),Gi([t.Event()],o.prototype,"addSignature",void 0),Gi([t.Event()],o.prototype,"removeSignature",void 0),Gi([t.Event()],o.prototype,"moveSignature",void 0),Gi([t.Event()],o.prototype,"signaturePropertiesChange",void 0),Gi([t.Event()],o.prototype,"resizeSignature",void 0),Gi([t.Event()],o.prototype,"signatureSelect",void 0),Gi([t.Event()],o.prototype,"signatureUnselect",void 0),Gi([t.Event()],o.prototype,"annotationSelect",void 0),Gi([t.Event()],o.prototype,"annotationUnSelect",void 0),Gi([t.Event()],o.prototype,"annotationDoubleClick",void 0),Gi([t.Event()],o.prototype,"annotationMove",void 0),Gi([t.Event()],o.prototype,"annotationMoving",void 0),Gi([t.Event()],o.prototype,"annotationMouseover",void 0),Gi([t.Event()],o.prototype,"annotationMouseLeave",void 0),Gi([t.Event()],o.prototype,"pageMouseover",void 0),Gi([t.Event()],o.prototype,"importStart",void 0),Gi([t.Event()],o.prototype,"exportStart",void 0),Gi([t.Event()],o.prototype,"importSuccess",void 0),Gi([t.Event()],o.prototype,"exportSuccess",void 0),Gi([t.Event()],o.prototype,"importFailed",void 0),Gi([t.Event()],o.prototype,"exportFailed",void 0),Gi([t.Event()],o.prototype,"extractTextCompleted",void 0),Gi([t.Event()],o.prototype,"thumbnailClick",void 0),Gi([t.Event()],o.prototype,"bookmarkClick",void 0),Gi([t.Event()],o.prototype,"toolbarClick",void 0),Gi([t.Event()],o.prototype,"textSelectionStart",void 0),Gi([t.Event()],o.prototype,"textSelectionEnd",void 0),Gi([t.Event()],o.prototype,"downloadStart",void 0),Gi([t.Event()],o.prototype,"buttonFieldClick",void 0),Gi([t.Event()],o.prototype,"formFieldClick",void 0),Gi([t.Event()],o.prototype,"downloadEnd",void 0),Gi([t.Event()],o.prototype,"printStart",void 0),Gi([t.Event()],o.prototype,"printEnd",void 0),Gi([t.Event()],o.prototype,"textSearchStart",void 0),Gi([t.Event()],o.prototype,"textSearchComplete",void 0),Gi([t.Event()],o.prototype,"textSearchHighlight",void 0),Gi([t.Event()],o.prototype,"ajaxRequestInitiate",void 0),Gi([t.Event()],o.prototype,"pageRenderInitiate",void 0),Gi([t.Event()],o.prototype,"commentAdd",void 0),Gi([t.Event()],o.prototype,"commentEdit",void 0),Gi([t.Event()],o.prototype,"commentDelete",void 0),Gi([t.Event()],o.prototype,"commentSelect",void 0),Gi([t.Event()],o.prototype,"commentStatusChanged",void 0),Gi([t.Event()],o.prototype,"beforeAddFreeText",void 0),Gi([t.Event()],o.prototype,"formFieldFocusOut",void 0),Gi([t.Event()],o.prototype,"formFieldAdd",void 0),Gi([t.Event()],o.prototype,"formFieldRemove",void 0),Gi([t.Event()],o.prototype,"formFieldPropertiesChange",void 0),Gi([t.Event()],o.prototype,"formFieldMouseLeave",void 0),Gi([t.Event()],o.prototype,"formFieldMouseover",void 0),Gi([t.Event()],o.prototype,"formFieldMove",void 0),Gi([t.Event()],o.prototype,"formFieldResize",void 0),Gi([t.Event()],o.prototype,"formFieldSelect",void 0),Gi([t.Event()],o.prototype,"formFieldUnselect",void 0),Gi([t.Event()],o.prototype,"formFieldDoubleClick",void 0),Gi([t.Event()],o.prototype,"customContextMenuSelect",void 0),Gi([t.Event()],o.prototype,"customContextMenuBeforeOpen",void 0),Gi([t.Event()],o.prototype,"keyboardCustomCommands",void 0),Gi([t.Event()],o.prototype,"pageOrganizerSaveAs",void 0),Gi([t.Event()],o.prototype,"pageOrganizerZoomChanged",void 0),Gi([t.Collection([],tt)],o.prototype,"annotations",void 0),Gi([t.Collection([],it)],o.prototype,"formFields",void 0),Gi([t.Property()],o.prototype,"drawingObject",void 0),o=Gi([t.NotifyPropertyChanges],o)}(t.Component),Xn=function(){function e(e,t){var i=this;this.isKeyboardNavigation=!1,this.childNavigateCount=0,this.bookmarkClick=function(e){if(e.event.target.classList.contains("e-icons"))i.childNavigateCount++;else{var t=e.data.Id;i.childNavigateCount=0,i.pdfViewerBase.navigationPane.goBackToToolbar();var n=i.bookmarkList.getSelectedItems();i.navigateToBookmark(t,e.text,n.data.FileName)}return!1},this.nodeClick=function(e){i.setHeight(e.node);var t=i.treeObj.getTreeData(e.node),n=Number(t[0].Id);if(i.navigateToBookmark(n,e.node.textContent,t[0].FileName),i.pdfViewer.annotationModule&&i.pdfViewer.annotationModule.inkAnnotationModule){var o=parseInt(i.pdfViewer.annotationModule.inkAnnotationModule.currentPageNumber,10);i.pdfViewer.annotationModule.inkAnnotationModule.drawInkAnnotation(o)}return!1},this.bookmarkKeypress=function(e){!e.event||"mouse"===e.event.pointerType||"touch"===e.event.pointerType||"Enter"!==e.event.key&&" "!==e.event.key||(i.isKeyboardNavigation=!0,i.nodeClick(e),i.isKeyboardNavigation=!1)},this.bookmarkPanelBeforeOpen=function(e){if(i.pdfViewer.enableBookmarkStyles)for(var t=0;t<i.bookmarkStyles.length;t++)if(e.text.trim()===i.bookmarkStyles[parseInt(t.toString(),10)].Text.trim()){var n=e.node.lastElementChild;if(n){for(var o=i.bookmarkStyles[parseInt(t.toString(),10)].FontStyle.split(","),r=0;r<o.length;r++)switch(o[parseInt(r.toString(),10)].trim()){case"Italic":n.style.fontStyle="italic";break;case"Bold":n.style.fontWeight="Bold"}var a=n.getElementsByClassName("e-pv-bookmark-title")[0];a?a.style.color=i.bookmarkStyles[parseInt(t.toString(),10)].Color:n.children[0].style.color=i.bookmarkStyles[parseInt(t.toString(),10)].Color}break}},this.pdfViewer=e,this.pdfViewerBase=t}
vendor: 235,174 bytes, line 10
10return e.prototype.openBookmarkPane=function(){this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.openBookmarkcontentInitially()},e.prototype.closeBookmarkPane=function(){this.pdfViewerBase.navigationPane&&this.pdfViewerBase.navigationPane.closeBookmarkPane()},e.prototype.createRequestForBookmarks=function(){var e=this,t={hashId:this.pdfViewerBase.hashId,action:"Bookmarks",elementId:this.pdfViewer.element.id,uniqueId:this.pdfViewerBase.documentId};if(this.pdfViewerBase.jsonDocumentId&&(t.documentId=this.pdfViewerBase.jsonDocumentId),this.pdfViewer.enableBookmarkStyles&&(t.bookmarkStyles=this.pdfViewer.enableBookmarkStyles),this.bookmarkRequestHandler=new Pi(this.pdfViewer),this.bookmarkRequestHandler.url=e.pdfViewer.serviceUrl+"/Bookmarks",this.bookmarkRequestHandler.responseType="json",this.pdfViewerBase.clientSideRendering){var i=this.pdfViewer.pdfRendererModule.getBookmarks(t);this.renderBookmarksOnSuccess(i,e)}else this.pdfViewerBase.requestCollection.push(this.bookmarkRequestHandler),this.bookmarkRequestHandler.send(t),this.bookmarkRequestHandler.onSuccess=function(t){e.pdfViewerBase.navigationPane&&e.pdfViewerBase.navigationPane.disableBookmarkButton();var i=t.data;e.pdfViewerBase.checkRedirection(i)||e.renderBookmarksOnSuccess(i,e)},this.bookmarkRequestHandler.onFailure=function(t){e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,"Bookmarks")},this.bookmarkRequestHandler.onError=function(t){e.pdfViewerBase.openNotificationPopup(),e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,"Bookmarks")}},e.prototype.renderBookmarksOnSuccess=function(e,i){if(e){if("object"!=typeof e)try{e=JSON.parse(e)}catch(t){i.pdfViewerBase.onControlError(500,e,"Bookmarks"),e=null}if(e&&e.uniqueId===i.pdfViewerBase.documentId&&(i.pdfViewer.fireAjaxRequestSuccess("Bookmarks",e),i.bookmarks={bookMark:e.Bookmarks},i.bookmarkStyles=e.Bookmarkstyles,i.bookmarksDestination={bookMarkDestination:e.BookmarksDestination},t.isBlazor())){var n={bookmarks:i.bookmarks,bookmarksDestination:i.bookmarksDestination};i.pdfViewer&&i.pdfViewer._dotnetInstance&&i.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateBookmarkCollection",n)}}i.pdfViewerBase.navigationPane&&(null==i.bookmarks?(i.pdfViewerBase.navigationPane.disableBookmarkButton(),t.isBlazor()&&i.pdfViewer._dotnetInstance&&i.pdfViewer._dotnetInstance.invokeMethodAsync("UpdateBookmarkCollection",null)):(i.pdfViewerBase.navigationPane.enableBookmarkButton(),i.isBookmarkViewDiv=!1,i.pdfViewer.isBookmarkPanelOpen&&i.pdfViewerBase.navigationPane.openBookmarkcontentInitially()))},e.prototype.renderBookmarkcontent=function(){var e=this;if(!this.isBookmarkViewDiv){var i=t.isBlazor();this.bookmarkView=i?this.pdfViewer.element.querySelector(".e-pv-bookmark-view"):t.createElement("div",{id:this.pdfViewer.element.id+"_bookmark_view",className:"e-pv-bookmark-view"}),this.pdfViewerBase.navigationPane.sideBarContent.appendChild(this.bookmarkView);var n=t.createElement("div",{id:this.pdfViewer.element.id+"_bookmark_iconview",className:"e-pv-bookmark-icon-view"});if(this.pdfViewer.enableRtl){o=t.createElement("span",{id:this.pdfViewer.element.id+"_bookmark_icon",className:"e-pv-bookmark-icon e-pv-icon e-right"});n.appendChild(o)}else{var o=t.createElement("span",{id:this.pdfViewer.element.id+"_bookmark_icon",className:"e-pv-bookmark-icon e-pv-icon"});n.appendChild(o)}var r=t.createElement("div",{id:this.pdfViewer.element.id+"_bookmark_Title",className:"e-pv-bookmark-title"});this.pdfViewer.enableRtl&&(r.style.paddingRight="26px"),r.innerText="${Title}",n.appendChild(r),i||(this.treeObj=new s.TreeView({fields:{dataSource:this.bookmarks.bookMark,id:"Id",text:"Title",child:"Child",hasChildren:"HasChild"},nodeTemplate:t.initializeCSPTemplate(function(e){return n.outerHTML.replace("${Title}",e.Title)}),nodeClicked:this.nodeClick.bind(this),keyPress:this.bookmarkKeypress.bind(this),drawNode:this.bookmarkPanelBeforeOpen.bind(this)}),this.treeObj.isStringTemplate=!0,this.pdfViewer.enableRtl&&(this.treeObj.enableRtl=!0),this.treeObj.appendTo(this.bookmarkView));for(var a=["mouseover","keydown"],l=0;l<a.length;l++)this.bookmarkView.addEventListener(a[parseInt(l.toString(),10)],function(t){e.setHeight(t.target)});this.isBookmarkViewDiv=!0}this.bookmarkView.style.display="block"},e.prototype.renderBookmarkContentMobile=function(){null!=this.bookmarkView&&this.bookmarkView.remove(),this.bookmarkView=t.createElement("div",{id:this.pdfViewer.element.id+"_bookmark_view",className:"e-pv-bookmark-view"}),this.pdfViewerBase.getElement("_bookmarks_container").appendChild(this.bookmarkView),this.bookmarkList=new c.ListView({dataSource:this.bookmarks.bookMark,fields:{id:"Id",text:"Title",child:"Child"},showHeader:!1,select:this.bookmarkClick.bind(this)}),this.bookmarkList.isStringTemplate=!0,this.pdfViewer.enableRtl&&(this.bookmarkList.enableRtl=!0),this.bookmarkList.appendTo(this.bookmarkView)},e.prototype.setHeight=function(e){this.treeObj&&this.treeObj.fullRowSelect&&e.classList&&(e.classList.contains("e-treeview")&&e.classList.contains(".e-active")?e=e.querySelector(".e-active").querySelector(".e-fullrow"):e.classList.contains("e-treeview")?e=e.querySelector(".e-fullrow"):e.classList.contains("e-list-parent")?e=e.querySelector(".e-fullrow"):"e-fullrow"!==e.classList.value&&(e.closest&&e.closest(".e-list-item")?e=e.closest(".e-list-item").querySelector(".e-fullrow"):e.classList.contains("e-list-item")?e=e.querySelector(".e-fullrow"):e.classList.contains("e-icons")&&e.classList.contains("interaction")&&e.parentElement.parentElement.classList.contains("e-list-item")&&(e=e.parentElement.parentElement.querySelector(".e-fullrow"))),e.nextElementSibling&&(e.style.height=e.nextElementSibling.offsetHeight+"px"))},e.prototype.setBookmarkContentHeight=function(){if(this.treeObj){var e=this.treeObj.element;this.treeObj.fullRowSelect&&(e.classList.contains("e-treeview")&&e.classList.contains(".e-active")?e=e.querySelector(".e-active").querySelector(".e-fullrow"):e.classList.contains("e-treeview")&&(e=e.querySelector(".e-fullrow")),e.nextElementSibling&&(e.style.height=e.nextElementSibling.offsetHeight+"px"))}},e.prototype.navigateToBookmark=function(e,t,i){var n=this.bookmarksDestination.bookMarkDestination[parseInt(e.toString(),10)].PageIndex,o=this.bookmarksDestination.bookMarkDestination[parseInt(e.toString(),10)].Y;-1!==n&&this.goToBookmark(n,o),this.pdfViewer.fireBookmarkClick(-1!==n?n+1:n,o,t,i)},e.prototype.getBookmarks=function(){if(this.bookmarks&&this.bookmarksDestination)return{bookmarks:this.bookmarks,bookmarksDestination:this.bookmarksDestination}},e.prototype.goToBookmark=function(e,i){var n,o=this,r=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height,a=(n=0===i?this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].top*this.pdfViewerBase.getZoomFactor():this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].top*this.pdfViewerBase.getZoomFactor()+(r-i)*this.pdfViewerBase.getZoomFactor()).toString();return o.pdfViewerBase.viewerContainer.scrollTop=parseInt(a,10),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.pdfViewerBase.mobileScrollerContainer.style.display="",this.pdfViewerBase.updateMobileScrollerPosition()),e>0&&e<=this.pdfViewerBase.pageCount&&this.pdfViewerBase.currentPageNumber!==e+1&&this.pdfViewerBase.updateScrollTop(e,!1),!1},e.prototype.clear=function(){if(this.pdfViewerBase.navigationPane&&(this.pdfViewerBase.navigationPane.disableBookmarkButton(),this.pdfViewerBase.navigationPane.updateViewerContainerOnClose()),this.bookmarks&&(this.bookmarks.bookMark=[],this.bookmarks=null),this.bookmarksDestination&&(this.bookmarksDestination.bookMarkDestination=[]),null!=this.bookmarkView&&!t.isBlazor())for(null!==this.bookmarkView.parentElement&&this.bookmarkView.parentElement.removeChild(this.bookmarkView);this.bookmarkView.hasChildNodes();)this.bookmarkView.removeChild(this.bookmarkView.lastChild);this.bookmarkRequestHandler&&this.bookmarkRequestHandler.clear()},e.prototype.destroy=function(){this.clear()},e.prototype.getModuleName=function(){return"BookmarkView"},e}(),qn=function(){function e(e,t){var i=this;this.isTextSelection=!1,this.selectionStartPage=null,this.isBackwardPropagatedSelection=!1,this.contextMenuHeight=144,this.backwardStart=0,this.selectionRangeArray=[],this.selectionAnchorTouch=null,this.selectionFocusTouch=null,this.scrollMoveTimer=0,this.isMouseLeaveSelection=!1,this.isTouchSelection=!1,this.previousScrollDifference=0,this.topStoreLeft=null,this.topStoreRight=null,this.isTextSearched=!1,this.isSelectionStartTriggered=!1,this.allTextContent="",this.onLeftTouchSelectElementTouchStart=function(e){i.initiateSelectionByTouch()},this.onRightTouchSelectElementTouchStart=function(e){i.initiateSelectionByTouch()},this.onLeftTouchSelectElementTouchEnd=function(e){i.terminateSelectionByTouch(e)},this.onRightTouchSelectElementTouchEnd=function(e){i.terminateSelectionByTouch(e)},this.onLeftTouchSelectElementTouchMove=function(e){var t;e.preventDefault(),e.target.style.zIndex="0";var n=i.dropDivElementRight,o=i.isTouchedWithinContainer(e);if(n&&o){var r=n.getBoundingClientRect(),a=e.changedTouches[0].clientX,s=e.changedTouches[0].clientY;if(e.target.style.zIndex="1000",t=i.getNodeElement(void 0,a,s,e,t)){var l=Math.sqrt((s-r.top)*(s-r.top)+(a-r.left)*(a-r.left)),d=i.isCloserTouchScroll(l),A=!1,h=i.pdfViewerBase.getZoomFactor(),p=Math.abs(s-r.top),c=h>1?15:h>.7?10:h>.5?8:4;if(parseInt(s.toString(),10)<=parseInt(r.top.toString(),10)&&parseInt(p.toString(),10)>=c||parseInt(a.toString(),10)<=parseInt(r.left.toString(),10)&&parseInt(p.toString(),10)<=c?(i.dropElementLeft.style.transform="rotate(0deg)",i.dropElementRight.style.transform="rotate(-90deg)",A=i.selectTextByTouch(t.parentElement,a,s,!1,"left",d)):(i.dropElementLeft.style.transform="rotate(-90deg)",i.dropElementRight.style.transform="rotate(0deg)",A=i.selectTextByTouch(t.parentElement,a,s,!0,"left",d)),A){var g=i.dropDivElementLeft.getBoundingClientRect(),u=i.pdfViewerBase.pageSize[i.pdfViewerBase.currentPageNumber-1].top,f=i.getClientValueTop(s,i.pdfViewerBase.currentPageNumber-1),m=a-i.pdfViewerBase.getElement("_pageDiv_"+(i.pdfViewerBase.currentPageNumber-1)).getBoundingClientRect().left;i.dropDivElementLeft.style.top=u*i.pdfViewerBase.getZoomFactor()+f+"px",i.topStoreLeft={pageTop:u,topClientValue:i.getMagnifiedValue(f),pageNumber:i.pdfViewerBase.currentPageNumber-1,left:i.getMagnifiedValue(m),isHeightNeeded:!1},i.dropDivElementLeft.style.left=a-i.pdfViewerBase.viewerContainer.getBoundingClientRect().left-g.width/2+i.pdfViewerBase.viewerContainer.scrollLeft+"px",i.previousScrollDifference=l}}}},this.onRightTouchSelectElementTouchMove=function(e){var t;e.preventDefault(),e.target.style.zIndex="0";var n=i.dropDivElementLeft,o=i.isTouchedWithinContainer(e);if(n&&o){var r=n.getBoundingClientRect(),a=e.changedTouches[0].clientX,s=e.changedTouches[0].clientY;if(e.target.style.zIndex="1000",t=i.getNodeElement(void 0,a,s,e,t)){var l=Math.sqrt((s-r.top)*(s-r.top)+(a-r.left)*(a-r.left)),d=i.isCloserTouchScroll(l),A=!1,h=i.pdfViewerBase.getZoomFactor(),p=Math.abs(s-r.top),c=h>1?25*h:h>.7?15:h>.5?8:7;if(parseInt(s.toString(),10)>=parseInt(r.top.toString(),10)&&parseInt(p.toString(),10)>=c||parseInt(p.toString(),10)<=c&&parseInt(a.toString(),10)>=parseInt(r.left.toString(),10)?(i.dropElementRight.style.transform="rotate(-90deg)",i.dropElementLeft.style.transform="rotate(0deg)",A=i.selectTextByTouch(t.parentElement,a,s,!0,"right",d)):(i.dropElementRight.style.transform="rotate(0deg)",i.dropElementLeft.style.transform="rotate(-90deg)",A=i.selectTextByTouch(t.parentElement,a,s,!1,"right",d)),A){var g=i.pdfViewerBase.pageSize[i.pdfViewerBase.currentPageNumber-1].top,u=i.getClientValueTop(s,i.pdfViewerBase.currentPageNumber-1),f=i.dropDivElementRight.getBoundingClientRect();i.dropDivElementRight.style.top=g*i.pdfViewerBase.getZoomFactor()+u+"px";var m=a-i.pdfViewerBase.getElement("_pageDiv_"+(i.pdfViewerBase.currentPageNumber-1)).getBoundingClientRect().left;i.topStoreRight={pageTop:g,topClientValue:i.getMagnifiedValue(u),pageNumber:i.pdfViewerBase.currentPageNumber-1,left:i.getMagnifiedValue(m),isHeightNeeded:!1},i.dropDivElementRight.style.left=a-i.pdfViewerBase.viewerContainer.getBoundingClientRect().left-f.width/2+i.pdfViewerBase.viewerContainer.scrollLeft+"px",i.previousScrollDifference=l}}}},this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.textSelectionOnMouseMove=function(e,t,i,n){var o=e;if(this.isTextSearched=!0,o.nodeType===o.TEXT_NODE){this.isSelectionStartTriggered||this.pdfViewerBase.getTextMarkupAnnotationMode()||(this.pdfViewer.fireTextSelectionStart(this.pdfViewerBase.currentPageNumber),this.isSelectionStartTriggered=!0),this.isBackwardPropagatedSelection=!1;var r=o.ownerDocument.createRange(),a=window.getSelection();if(null!==a.anchorNode){var s=a.anchorNode.compareDocumentPosition(a.focusNode);(!s&&a.anchorOffset>a.focusOffset||s===Node.DOCUMENT_POSITION_PRECEDING)&&(this.isBackwardPropagatedSelection=!0)}r.selectNodeContents(o);for(var l=0,d=r.endOffset;l<d;){r.setStart(o,l),r.setEnd(o,l+1);var A=(m=r.getBoundingClientRect()).right;n&&(A=parseInt(m.right.toString(),10)),m.left<=t&&A>=t&&parseInt(m.top.toString(),10)<=i&&m.bottom>=i&&(null!==a.anchorNode&&a.anchorNode.parentNode.classList.contains("e-pv-text")&&(a.anchorOffset>l?0!==this.backwardStart?r.setStart(a.anchorNode,this.backwardStart):r.setStart(a.anchorNode,a.anchorOffset+1):r.setStart(a.anchorNode,a.anchorOffset)),a.removeAllRanges(),a.addRange(r),this.isTextSelection||(this.selectionStartPage=this.pdfViewerBase.currentPageNumber-1),this.isTextSelection=!0,!!document.documentMode||(this.isBackwardPropagatedSelection||r.endOffset>l?(this.backwardStart!==r.startOffset&&r.startOffset>=l&&(this.backwardStart=r.endOffset),0===l&&1!==r.endOffset?a.extend(o,l):a.extend(o,l+1)):n?a.extend(o,l):a.extend(o,l+1)),r.detach()),l+=1}var h=this.pdfViewer.annotationModule;if(h&&h.textMarkupAnnotationModule&&h.textMarkupAnnotationModule.isEnableTextMarkupResizer(h.textMarkupAnnotationModule.currentTextMarkupAddMode)){var p=document.getElementById(this.pdfViewer.element.id+"_droplet_left");if(this.pdfViewerBase.isSelection&&a&&a.rangeCount>0){var c=a.getRangeAt(0).getBoundingClientRect(),g=c.left,u=c.top;this.pdfViewer.annotation.textMarkupAnnotationModule.updateLeftposition(g,u),this.pdfViewerBase.isSelection=!1}else p&&"none"===p.style.display&&this.pdfViewer.annotation.textMarkupAnnotationModule.updateLeftposition(t,i);this.pdfViewer.annotation.textMarkupAnnotationModule.updatePosition(t,i)}}else for(var f=0;f<o.childNodes.length;f++)if(o.childNodes[parseInt(f.toString(),10)].nodeType===o.TEXT_NODE){var m=(r=this.getSelectionRange(f,o)).getBoundingClientRect();m.left<=t&&m.right>=parseInt(t.toString(),10)&&parseInt(m.top.toString(),10)<=i&&m.bottom>=i?(r.detach(),this.textSelectionOnMouseMove(o.childNodes[parseInt(f.toString(),10)],t,i,n)):r.detach()}},e.prototype.textSelectionOnDrag=function(e,t,i,n){var o=e;if(this.isTextSearched=!0,o.nodeType===o.TEXT_NODE){this.isBackwardPropagatedSelection=!1;var r=o.ownerDocument.createRange(),a=window.getSelection();if(null!==a.anchorNode){var s=a.anchorNode.compareDocumentPosition(a.focusNode);(!s&&a.anchorOffset>a.focusOffset||s===Node.DOCUMENT_POSITION_PRECEDING)&&(this.isBackwardPropagatedSelection=!0)}r.selectNodeContents(o);for(var l=0,d=r.endOffset;l<d;){if(r.setStart(o,l),r.setEnd(o,l+1),(g=r.getBoundingClientRect()).left<=t&&g.right>=t&&parseInt(g.top.toString(),10)<=i&&g.bottom>=i)return n?(null!==a.anchorNode&&a.anchorNode.parentNode.classList.contains("e-pv-text")&&r.setStart(a.anchorNode,a.anchorOffset),a.removeAllRanges(),a.addRange(r),a.extend(o,l)):a.focusNode&&(r.setEnd(a.focusNode,a.focusOffset),a.removeAllRanges(),a.addRange(r)),this.isTextSelection||(this.selectionStartPage=this.pdfViewerBase.currentPageNumber-1),this.isTextSelection=!0,r.detach(),!0;l+=1}if(this.pdfViewerBase.isSelection){var A=a.getRangeAt(0).getBoundingClientRect(),h=A.left,p=A.top;this.pdfViewer.annotation.textMarkupAnnotationModule.updateLeftposition(h,p),this.pdfViewerBase.isSelection=!1}this.pdfViewer.annotation.textMarkupAnnotationModule.updatePosition(t,i)}else for(var c=0;c<o.childNodes.length;c++)if(o.childNodes[parseInt(c.toString(),10)].nodeType===o.TEXT_NODE){var g=(r=this.getSelectionRange(c,o)).getBoundingClientRect();g.left<=t&&g.right>=t&&parseInt(g.top.toString(),10)<=i&&g.bottom>=i?(r.detach(),this.textSelectionOnDrag(o.childNodes[parseInt(c.toString(),10)],t,i,n)):r.detach()}return null},e.prototype.selectTextRegion=function(e,t){for(var i=null,n=e-1,o=0;o<t.length;o++){var r=t[parseInt(o.toString(),10)],a=(r.left?r.left:r.Left)*this.pdfViewerBase.getZoomFactor(),s=(r.top?r.top:r.Top)*this.pdfViewerBase.getZoomFactor(),l=(r.width?r.width:r.Width)*this.pdfViewerBase.getZoomFactor(),d=this.pdfViewerBase.getElement("_textLayer_"+n);if(d){for(var A=d.childNodes,h=0;h<A.length;h++)if(A[parseInt(h.toString(),10)]){var p=A[parseInt(h.toString(),10)].getBoundingClientRect(),c=this.getClientValueTop(p.top,n),g=p.left-this.pdfViewerBase.getElement("_pageDiv_"+n).getBoundingClientRect().left,u=g+p.width,f=parseInt(A[parseInt(h.toString(),10)].style.left,10),m=parseInt(A[parseInt(h.toString(),10)].style.top,10),w=this.checkLeftBounds(g,f,u,a),C=this.checkTopBounds(c,m,s);if(w&&C){i=A[parseInt(h.toString(),10)];break}}if(null!=i){var B=this.pdfViewerBase.getElement("_textLayer_"+n).getBoundingClientRect();this.textSelectionOnMouseMove(i,a+B.left,s+B.top,!1),t.length-1===o&&this.textSelectionOnMouseMove(i,a+B.left+l,s+B.top,!1)}}}},e.prototype.checkLeftBounds=function(e,t,i,n){var o=!1;return(e===parseInt(n.toString(),10)||parseInt(e.toString(),10)===parseInt(n.toString(),10)||e+1===parseInt(n.toString(),10)||e-1===parseInt(n.toString(),10)||t===parseInt(n.toString(),10)||t===n||i>=n&&e<=n)&&(o=!0),o},e.prototype.checkTopBounds=function(e,t,i){var n=!1;return e!==parseInt(i.toString(),10)&&parseInt(e.toString(),10)!==parseInt(i.toString(),10)&&parseInt((e+1).toString(),10)!==parseInt(i.toString(),10)&&parseInt((e-1).toString(),10)!==parseInt(i.toString(),10)&&t!==parseInt(i.toString(),10)&&t!==i||(n=!0),n},e.prototype.textSelectionOnMouseLeave=function(e){var t=this;e.preventDefault();var i=this.pdfViewerBase.viewerContainer.offsetTop;this.pdfViewer.magnificationModule&&"fitToPage"===this.pdfViewer.magnificationModule.fitType||(e.clientY>i?this.scrollMoveTimer=setInterval(function(){t.scrollForwardOnSelection()},500):this.scrollMoveTimer=setInterval(function(){t.scrollBackwardOnSelection()},500))},e.prototype.scrollForwardOnSelection=function(){this.pdfViewerBase.isSignInitialClick||(this.isMouseLeaveSelection=!0,this.pdfViewerBase.viewerContainer.scrollTop=this.pdfViewerBase.viewerContainer.scrollTop+200,this.stichSelectionOnScroll(this.pdfViewerBase.currentPageNumber-1))},e.prototype.scrollBackwardOnSelection=function(){this.isMouseLeaveSelection=!0,this.pdfViewerBase.viewerContainer.scrollTop=this.pdfViewerBase.viewerContainer.scrollTop-200,this.stichSelectionOnScroll(this.pdfViewerBase.currentPageNumber-1)},e.prototype.clear=function(){this.scrollMoveTimer&&(this.isMouseLeaveSelection=!1,clearInterval(this.scrollMoveTimer))},e.prototype.selectAWord=function(e,i,n,o){var r=0;if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(r=3),e.nodeType===e.TEXT_NODE){var a=window.getSelection();(f=e.ownerDocument.createRange()).selectNodeContents(e);for(var s=0,l=f.endOffset;s<l;){if(f.setStart(e,s),f.setEnd(e,s+1),(m=f.getBoundingClientRect()).left<=i+r&&m.right>=i-r&&m.top<=n+r&&m.bottom>=n-r){for(var d=e.textContent,A=[],h=void 0,p=void 0,c=0;c<d.length;c++)" "===d[parseInt(c.toString(),10)]&&A.push(c);for(var g=0;g<A.length;g++){if(s===A[parseInt(g.toString(),10)]&&(h=A[parseInt(g.toString(),10)],p=A[parseInt(g.toString(),10)]),A[0]>s){h=0,p=A[parseInt(g.toString(),10)];break}s>A[parseInt(g.toString(),10)]&&s<A[g+1]?(h=A[parseInt(g.toString(),10)],p=A[g+1]):s>A[parseInt(g.toString(),10)]&&(A[g+1]||(h=A[parseInt(g.toString(),10)]))}p||(p=d.length),0===h?f.setStart(e,h):f.setStart(e,h+1),f.setEnd(e,p),a.removeAllRanges(),a.addRange(f),this.isTextSelection=!0;var u=t.isNullOrUndefined(f.startContainer.parentElement)?f.startContainer.parentNode:f.startContainer.parentElement;this.selectionStartPage=parseInt(u.id.split("_text_")[1],10),o&&(this.selectionAnchorTouch={anchorNode:a.anchorNode.parentElement.id,anchorOffset:a.anchorOffset},this.selectionFocusTouch={focusNode:a.focusNode.parentElement.id,focusOffset:a.focusOffset}),t.Browser.isIE||f.detach();break}s+=1}}else for(c=0;c<e.childNodes.length;c++){var f=this.getSelectionRange(c,e),m=f.getBoundingClientRect();m.left<=i+r&&m.right>=i-r&&m.top<=n+r&&m.bottom>=n-r?(f.detach(),this.selectAWord(e.childNodes[parseInt(c.toString(),10)],i,n,o)):f.detach()}},e.prototype.getSelectionRange=function(e,t){var i=t.childNodes[parseInt(e.toString(),10)].ownerDocument.createRange();return i.selectNodeContents(t.childNodes[parseInt(e.toString(),10)]),i},e.prototype.selectEntireLine=function(e){var t=[],i=e.target,n=i.getBoundingClientRect(),o=parseInt((n.top+n.height/2).toString(),10),r=parseInt(e.target.id.split("_text_")[1],10),a=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+"_text_"+r+'"]');if(i.classList.contains("e-pv-text")){this.pdfViewer.fireTextSelectionStart(r+1);for(var s=0;s<a.length;s++){var l=a[parseInt(s.toString(),10)].getBoundingClientRect(),d=parseInt(l.top.toString(),10),A=parseInt(l.bottom.toString(),10);if(d<=o&&A>o&&n.bottom+10>A){var h=a[parseInt(s.toString(),10)].id;""!==h&&t.push(h)}}var p=window.getSelection();p.removeAllRanges();var c=document.createRange(),g=t.length-1,u=document.getElementById(t[0]),f=document.getElementById(t[parseInt(g.toString(),10)]);f.childNodes.length>0?(c.setStart(u.childNodes[0],0),c.setEnd(f.childNodes[0],f.textContent.length)):(c.setStart(u.childNodes[0],0),c.setEnd(f,1)),this.selectionStartPage=parseInt(c.startContainer.parentElement.id.split("_text_")[1],10),p.addRange(c),this.isTextSelection=!0,null!=p&&"MouseUp"===this.pdfViewer.contextMenuSettings.contextMenuAction&&this.calculateContextMenuPosition(e.clientY,e.clientY)}},e.prototype.enableTextSelectionMode=function(){this.pdfViewerBase.isTextSelectionDisabled=!1,t.isNullOrUndefined(this.pdfViewerBase.viewerContainer)||(this.pdfViewerBase.viewerContainer.classList.remove("e-disable-text-selection"),this.pdfViewerBase.viewerContainer.classList.add("e-enable-text-selection"),this.pdfViewerBase.viewerContainer.addEventListener("selectstart",function(e){return e.preventDefault(),!0}))},e.prototype.clearTextSelection=function(){if(this.isTextSelection){if(this.pdfViewerBase.textLayer.clearDivSelection(),window.getSelection&&window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges(),this.pdfViewer.linkAnnotationModule){var e=this.pdfViewerBase.currentPageNumber-3;e=e<0?0:e;var t=this.pdfViewer.currentPageNumber+1;t=t<this.pdfViewerBase.pageCount-1?t:this.pdfViewerBase.pageCount-1;for(var i=e;i<=t;i++)this.pdfViewer.linkAnnotationModule.modifyZindexForTextSelection(i,!1)}this.pdfViewer.annotation&&this.pdfViewer.annotation.textMarkupAnnotationModule&&this.pdfViewer.annotation.textMarkupAnnotationModule.showHideDropletDiv(!0),this.selectionRangeArray=[],this.isTextSelection=!1,this.isTouchSelection=!1,this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.searchAfterSelection(),this.pdfViewerBase.contextMenuModule.close(),this.removeTouchElements()}},e.prototype.removeTouchElements=function(){this.dropDivElementLeft&&(this.dropDivElementLeft.parentElement.removeChild(this.dropDivElementLeft),this.dropDivElementLeft=null,this.dropElementLeft.style.transform="rotate(0deg)"),this.dropDivElementRight&&(this.dropDivElementRight.parentElement.removeChild(this.dropDivElementRight),this.dropDivElementRight=null,this.dropElementRight.style.transform="rotate(-90deg)")},e.prototype.resizeTouchElements=function(){var e=this.pdfViewerBase.viewerContainer.getBoundingClientRect().left;if(this.dropDivElementLeft){var t=this.dropDivElementLeft.getBoundingClientRect(),i=0,n=this.pdfViewerBase.getElement("_pageDiv_"+this.topStoreLeft.pageNumber).getBoundingClientRect();this.dropDivElementLeft.style.left=parseFloat(this.topStoreLeft.left.toString())*this.pdfViewerBase.getZoomFactor()+n.left-e-t.width/2+"px",this.topStoreLeft.isHeightNeeded&&(i=t.height/2*this.pdfViewerBase.getZoomFactor()),this.dropDivElementLeft.style.top=parseFloat(this.topStoreLeft.pageTop.toString())*this.pdfViewerBase.getZoomFactor()+parseFloat(this.topStoreLeft.topClientValue.toString())*this.pdfViewerBase.getZoomFactor()+i+"px"}if(this.dropDivElementRight){var t=this.dropDivElementRight.getBoundingClientRect(),i=0,o=this.pdfViewerBase.getElement("_pageDiv_"+this.topStoreRight.pageNumber).getBoundingClientRect();this.dropDivElementRight.style.left=parseFloat(this.topStoreRight.left.toString())*this.pdfViewerBase.getZoomFactor()+o.left-e-t.width/2+"px",this.topStoreRight.isHeightNeeded&&(i=t.height/2*this.pdfViewerBase.getZoomFactor()),this.dropDivElementRight.style.top=parseFloat(this.topStoreRight.pageTop.toString())*this.pdfViewerBase.getZoomFactor()+parseFloat(this.topStoreRight.topClientValue.toString())*this.pdfViewerBase.getZoomFactor()+i+"px"}},e.prototype.textSelectionOnMouseup=function(e){if(this.clear(),null!==window.getSelection().anchorNode){if(this.isMouseLeaveSelection=!1,this.isSelectionStartTriggered=!1,this.maintainSelectionOnZoom(!0,!1),this.fireTextSelectEnd(),this.pdfViewerBase.textLayer.getTextSearchStatus()){this.pdfViewerBase.textLayer.clearDivSelection();for(var t=this.pdfViewer.textSearchModule.getIndexes(),i=parseFloat(t.lowerPageValue.toString()),n=parseFloat(t.higherPageValue.toString()),o=i;o<n;o++)this.applySelectionRangeOnScroll(o);this.pdfViewer.textSearchModule.searchAfterSelection()}else this.applySpanForSelection();this.pdfViewer.linkAnnotationModule&&this.pdfViewer.linkAnnotationModule.modifyZindexForTextSelection(this.pdfViewerBase.currentPageNumber-1,!1),this.isTextSearched&&"MouseUp"===this.pdfViewer.contextMenuSettings.contextMenuAction&&(this.calculateContextMenuPosition(e.clientY,e.clientX),this.isTextSearched=!1)}else this.pdfViewerBase.textLayer.clearDivSelection(),this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.searchAfterSelection(),this.pdfViewerBase.contextMenuModule.close(),this.removeTouchElements()},e.prototype.fireTextSelectEnd=function(){if(0!==this.selectionRangeArray.length){for(var e=0,t="",i=[],n=0;n<this.selectionRangeArray.length;n++){t+=this.selectionRangeArray[parseInt(n.toString(),10)].textContent;for(var o=0;o<this.selectionRangeArray[parseInt(n.toString(),10)].rectangleBounds.length;o++){var r=this.selectionRangeArray[parseInt(n.toString(),10)].rectangleBounds[parseInt(o.toString(),10)];i.push({left:r.left,right:r.right,top:r.top,bottom:r.bottom,width:r.width,height:r.height,pageIndex:this.selectionRangeArray[parseInt(n.toString(),10)].pageNumber+1})}this.selectionRangeArray[parseInt(n.toString(),10)].isBackward&&0===n?e=this.selectionRangeArray[parseInt(n.toString(),10)].pageNumber+1:this.selectionRangeArray[parseInt(n.toString(),10)].isBackward||n!==this.selectionRangeArray.length-1||(e=this.selectionRangeArray[parseInt(n.toString(),10)].pageNumber+1)}this.pdfViewer.fireTextSelectionEnd(e,t,i)}},e.prototype.maintainSelectionOnZoom=function(e,t){var i=window.getSelection();if("Range"===i.type||!i.type&&!i.isCollapsed){var n=this.pdfViewerBase.textLayer.isBackWardSelection(i);if(null!=i.anchorNode){var o=parseInt(this.getNodeElementFromNode(i.anchorNode).id.split("_text_")[1],10),r=parseInt(this.getNodeElementFromNode(i.focusNode).id.split("_text_")[1],10);if(this.isTouchSelection&&isNaN(r)&&i.focusNode===this.pdfViewerBase.pageContainer){var a=this.pdfViewerBase.pageContainer.lastChild;a.classList.contains("e-pv-touch-select-drop")?r=parseInt(a.previousSibling.previousSibling.id.split("_pageDiv_")[1],10):a.classList.contains("e-pv-page-div")&&(r=parseInt(a.id.split("_pageDiv_")[1],10))}if(n)for(s=o;s>=r;s--)this.maintainSelectionOnScroll(s,t);else for(var s=o;s<=r;s++)this.maintainSelectionOnScroll(s,t)}e||i.removeAllRanges()}},e.prototype.isSelectionAvailableOnScroll=function(e){for(var t=!1,i=this.selectionRangeArray,n=0;n<i.length;n++)if(null!==i[parseInt(n.toString(),10)]&&e===i[parseInt(n.toString(),10)].pageNumber){t=!0,this.isTouchSelection&&!this.pdfViewerBase.getMagnified()&&(t=!1);break}return t},e.prototype.applySelectionRangeOnScroll=function(e){this.isMouseLeaveSelection?this.applySelectionMouseScroll(e):this.applySelectionRange(e)},e.prototype.getSelectionRangeFromArray=function(e){for(var t=!1,i=null,n=this.selectionRangeArray,o=0;o<n.length;o++)if(null!==n[parseInt(o.toString(),10)]&&e===n[parseInt(o.toString(),10)].pageNumber){i=n[parseInt(o.toString(),10)],t=!0;break}return{isSelectionAvailable:t,selectionRange:i}},e.prototype.applySelectionRange=function(e){var t=this.getSelectionRangeFromArray(e),i=t.isSelectionAvailable,n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e);if(n&&i&&0!==n.childNodes.length){var o=t.selectionRange,r=void 0,a=void 0,s=void 0,l=void 0;if(o.isBackward){var d=parseInt(o.endNode.split("_text_")[1].split("_")[1],10),A=parseInt(o.startNode.split("_text_")[1].split("_")[1],10);d<A?(r=d,s=o.endOffset,l=o.startOffset,a=A):(r=A,s=o.endOffset,a=d,l=o.startOffset)}else r=parseInt(o.startNode.split("text_")[1].split("_")[1],10),a=parseInt(o.endNode.split("text_")[1].split("_")[1],10),s=o.startOffset,l=o.endOffset;window.getSelection().removeAllRanges(),this.pdfViewerBase.textLayer.applySpanForSelection(e,e,r,a,s,l),this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.searchAfterSelection()}},e.prototype.applySelectionMouseScroll=function(e){var t=this.getSelectionRangeFromArray(e);if(t.isSelectionAvailable){var i=t.selectionRange,n=window.getSelection(),o=document.getElementById(i.startNode).childNodes[0],r=document.getElementById(i.endNode).childNodes[0],a=document.createRange();if(null===n.anchorNode)i.isBackward?(a.setStart(r,i.endOffset),a.setEnd(o,i.startOffset)):(a.setStart(o,i.startOffset),a.setEnd(r,i.endOffset));else{var s=isNaN(parseInt(n.anchorNode.parentElement.id.split("_text_")[1],10))?parseInt(n.anchorNode.id.split("_pageDiv_")[1],10):parseInt(n.anchorNode.parentElement.id.split("_text_")[1],10);isNaN(s)&&(s=parseInt(n.anchorNode.id.split("_text_")[1],10));var l=isNaN(parseInt(n.focusNode.parentElement.id.split("_text_")[1],10))?parseInt(n.focusNode.id.split("_pageDiv_")[1],10):parseInt(n.focusNode.parentElement.id.split("_text_")[1],10),d=parseInt(i.startNode.split("_text_")[1],10);if(s===l&&s===d)i.isBackward?(a.setStart(r,i.endOffset),a.setEnd(o,i.startOffset)):(a.setStart(o,i.startOffset),a.setEnd(r,i.endOffset));else if(isNaN(s))isNaN(s)&&(i.isBackward?(a.setStart(r,i.endOffset),a.setEnd(o,i.startOffset)):(a.setStart(o,i.startOffset),a.setEnd(r,i.endOffset)));else if(isNaN(s)||i.isBackward){var A=this.pdfViewerBase.textLayer.isBackWardSelection(n);if(s>d&&d>l&&s!==l)A?n.extend(n.focusNode,n.focusOffset):(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(n.focusNode,n.focusOffset));else if(s<d&&d<l&&s!==l)A?n.extend(n.focusNode,n.focusOffset):(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(n.focusNode,n.focusOffset));else if(s<d)A?d!==this.selectionRangeArray[0].pageNumber?this.extendCurrentSelection(r.parentElement,i.endOffset,n,a):this.extendCurrentSelection(o.parentElement,i.startOffset,n,a):d!==this.selectionRangeArray[0].pageNumber?(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(r,i.endOffset)):(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(o,i.startOffset));else if(s===d)d===l?(a.setStart(o,i.startOffset),a.setEnd(o,i.startOffset),n.removeAllRanges(),n.addRange(a),a=document.createRange(),n.extend(r,i.endOffset)):A?this.extendCurrentSelection(r.parentElement,i.endOffset,n,a):(a.setStart(r,i.endOffset),a.setEnd(n.focusNode,n.focusOffset));else if(l===d)A?n.extend(n.focusNode,n.focusOffset):(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(n.focusNode,n.focusOffset));else if(s>d){var h=parseInt(i.startNode.split("_"+d+"_")[1],10),p=parseInt(i.endNode.split("_"+d+"_")[1],10);A?d!==this.selectionRangeArray[0].pageNumber?h<p?this.extendCurrentSelection(o.parentElement,i.startOffset,n,a):(a.setStart(r.parentElement,i.endOffset),a.setEnd(n.anchorNode,n.anchorOffset)):this.extendCurrentSelection(r.parentElement,i.endOffset,n,a):h<p?(a.setStart(o,i.startOffset),a.setEnd(n.focusNode,n.focusOffset)):(a.setStart(r,i.endOffset),a.setEnd(n.focusNode,n.focusOffset))}}else s<d&&d<l&&s!==l?(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(n.focusNode,n.focusOffset)):s<d?(a.setStart(n.anchorNode,n.anchorOffset),a.setEnd(r,i.endOffset)):(a.setStart(o,i.startOffset),a.setEnd(n.focusNode,n.focusOffset))}""!==a.toString()&&(n.removeAllRanges(),n.addRange(a))}},e.prototype.maintainSelectionOnScroll=function(e,t){var i=this.isSelectionAvailableOnScroll(e);this.isTextSelection&&!i&&this.maintainSelection(e,t)},e.prototype.maintainSelection=function(e,t){var i=window.getSelection();if(this.isTextSelection&&("Range"===i.type||!i.type&&!i.isCollapsed)){var n=parseInt(this.getNodeElementFromNode(i.anchorNode).id.split("_text_")[1],10),o=parseInt(this.getNodeElementFromNode(i.focusNode).id.split("_text_")[1],10);if(isNaN(o)&&null!==i.anchorNode)if(this.pdfViewerBase.textLayer.isBackWardSelection(i))o=parseInt(this.pdfViewerBase.pageContainer.firstChild.id.split("_pageDiv_")[1],10);else{var r=this.pdfViewerBase.pageContainer.lastChild;o=r.classList.contains("e-pv-touch-select-drop")?parseInt(r.previousSibling.previousSibling.id.split("_pageDiv_")[1],10):parseInt(r.id.split("_pageDiv_")[1],10)}var a=this.pdfViewerBase.textLayer.isBackWardSelection(i);if(this.isTouchSelection&&e>o&&e>n)return;if(n===o){var s=null,l=this.getSelectionBounds(i.getRangeAt(0),e),d=this.getSelectionRectangleBounds(i.getRangeAt(0),e),A=1===this.getNodeElementFromNode(i.anchorNode).childNodes.length?i.anchorOffset:this.getCorrectOffset(i.anchorNode,i.anchorOffset),h=1===this.getNodeElementFromNode(i.focusNode).childNodes.length?i.focusOffset:this.getCorrectOffset(i.focusNode,i.focusOffset);s={isBackward:a,startNode:this.getNodeElementFromNode(i.anchorNode).id,startOffset:A,endNode:this.getNodeElementFromNode(i.focusNode).id,endOffset:h,textContent:this.allTextContent,pageNumber:e,bound:l,rectangleBounds:d},this.pushSelectionRangeObject(s,e)}else(s=this.createRangeObjectOnScroll(e,n,o))&&(this.pushSelectionRangeObject(s,e),t&&this.stichSelection(a,i,e))}},e.prototype.getCorrectOffset=function(e,t){for(var i=0,n=this.getNodeElementFromNode(e),o=0;o<n.childNodes.length;o++){if(n.childNodes[parseInt(o.toString(),10)]===e){i+=t;break}i+=n.childNodes[parseInt(o.toString(),10)].textContent.length}return i},e.prototype.pushSelectionRangeObject=function(e,t){if(this.isTouchSelection){var i=this.selectionRangeArray.filter(function(e){return e.pageNumber===t});if(i.length>0){var n=this.selectionRangeArray.indexOf(i[0]);return void this.selectionRangeArray.splice(n,1,e)}}var o=this.selectionRangeArray.filter(function(e){return e.pageNumber===t+1});if(0===o.length)if(this.isTouchSelection&&0!==this.selectionRangeArray.length){var r=this.selectionRangeArray.filter(function(e){return e.pageNumber===t-1});if(0!==r.length){var a=this.selectionRangeArray.indexOf(r[0]);this.selectionRangeArray.splice(a+1,0,e)}else{var s=this.selectionRangeArray[0];t<s.pageNumber?this.selectionRangeArray.splice(0,0,e):this.selectionRangeArray.push(e)}}else this.selectionRangeArray.push(e);else{var l=this.selectionRangeArray.indexOf(o[0]);this.selectionRangeArray.splice(l,0,e)}},e.prototype.extendCurrentSelection=function(e,t,i,n){var o=i.focusOffset,r=i.focusNode.parentElement.id,a=isNaN(parseInt(r.split("_text_")[1],10))?parseInt(i.focusNode.id.split("_pageDiv_")[1],10):parseInt(r.split("_text_")[1],10);isNaN(parseInt(r.split("_text_")[1],10))&&(r=this.pdfViewerBase.getElement("_textLayer_"+(a+1)).firstChild.id),n.setStart(e.childNodes[0],t),n.setEnd(e.childNodes[0],t),i.removeAllRanges(),i.addRange(n),i.extend(document.getElementById(r).childNodes[0],o)},e.prototype.stichSelection=function(e,t,i){var n,o=document.createRange();if(e)if(n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(i-1)))(r=n.lastChild)?this.extendCurrentSelection(r,this.getTextLastLength(r),t,o):(r=(n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(i-2))).lastChild,this.extendCurrentSelection(r,this.getTextLastLength(r),t,o));else{var r=(n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(i+1))).firstChild;this.extendCurrentSelection(r,0,t,o)}else if(n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(i+1))){var a=n.firstChild;a?o.setStart(a.childNodes[0],0):(a=(n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(i+2))).firstChild,o.setStart(a.childNodes[0],0)),o.setEnd(t.focusNode,t.focusOffset),t.removeAllRanges(),t.addRange(o)}},e.prototype.textSelectionOnMouseWheel=function(e){this.isMouseLeaveSelection=!0,this.stichSelectionOnScroll(e)},e.prototype.stichSelectionOnScroll=function(e){var t=window.getSelection();if(this.isTextSelection){var i=parseInt(this.getNodeElementFromNode(t.anchorNode).id.split("_text_")[1],10),n=parseInt(this.getNodeElementFromNode(t.focusNode).id.split("_text_")[1],10),o=void 0;if(i!==e&&n!==e)if(this.pdfViewerBase.textLayer.isBackWardSelection(t)){if(o=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(e-1))){var r=o.firstChild;r&&this.extendSelectionStich(r.childNodes[0],0,t)}}else if(o=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(e-1)))if(r=o.lastChild)r.childNodes[0]?this.extendSelectionStich(r.childNodes[0],this.getTextLastLength(r),t):this.extendSelectionStich(r,this.getTextLastLength(r),t);else{var a=(o=this.pdfViewerBase.getElement("_textLayer_"+e)).firstChild;this.extendSelectionStich(a.childNodes[0],0,t)}this.maintainSelectionArray()}},e.prototype.extendSelectionStich=function(e,t,i){i.extend&&i.extend(e,t)},e.prototype.createRangeObjectOnScroll=function(e,t,i){var n=window.getSelection();if(null!==n.anchorNode){var o=this.pdfViewerBase.textLayer.isBackWardSelection(n),r=void 0,a=void 0,s=void 0,l=void 0,d=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e);if(d.childNodes){if(o?e===t?(r=this.getNodeElementFromNode(n.anchorNode),a=d.firstChild,s=this.getCorrectOffset(n.anchorNode,n.anchorOffset),l=0):e<t&&e>i?(r=d.firstChild,a=d.lastChild,s=0,l=this.getTextLastLength(a)):e===i&&(r=this.getNodeElementFromNode(n.focusNode),a=d.lastChild,s=this.getCorrectOffset(n.focusNode,n.focusOffset),l=this.getTextLastLength(a)):e===t?(r=this.getNodeElementFromNode(n.anchorNode),a=d.lastChild,s=this.getCorrectOffset(n.anchorNode,n.anchorOffset),l=this.getTextLastLength(a)):e>t&&e<i?(r=d.firstChild,a=d.lastChild,s=0,l=this.getTextLastLength(a)):e===i&&(r=d.firstChild,-1!==this.getNodeElementFromNode(n.focusNode).id.indexOf(i.toString())?(a=this.getNodeElementFromNode(n.focusNode),l=this.getCorrectOffset(n.focusNode,n.focusOffset)):(a=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+i).lastChild,l=this.getTextLastLength(a)),s=0),r&&a){var A=this.getSelectionRangeObject(r.id,s,a.id,l,e),h=this.getSelectionBounds(A,e),p=this.getSelectionRectangleBounds(A,e);return{isBackward:o,startNode:r.id,startOffset:s,endNode:a.id,endOffset:l,textContent:this.allTextContent,pageNumber:e,bound:h,rectangleBounds:p}}return null}}return null},e.prototype.getSelectionRangeObject=function(e,t,i,n,o){var r=document.getElementById(e),a=document.getElementById(i);r.childNodes[0]&&(r=r.childNodes[0]),a.childNodes[0]&&(a=a.childNodes[0]);var s=parseInt(e.split("_"+o+"_")[1],10),l=parseInt(i.split("_"+o+"_")[1],10),d=document.createRange();return s<=l?(d.setStart(r,t),d.setEnd(a,n)):(d.setStart(a,n),d.setEnd(r,t)),d},e.prototype.getSelectionBounds=function(e,t){var i=null;if(this.getNodeElementFromNode(e.startContainer)!==this.getNodeElementFromNode(e.endContainer)){var n=document.createRange(),o=this.createRangeForSelection(e.startContainer,e.endContainer,e.startOffset,e.endOffset,n);i=this.normalizeBounds(o.getBoundingClientRect(),t)}else i=this.normalizeBounds(e.getBoundingClientRect(),t);return i},e.prototype.getSelectionRectangleBounds=function(e,t){var i=[],n=this.getNodeElementFromNode(e.startContainer),o=this.getNodeElementFromNode(e.endContainer),r=null,a=[];if(this.allTextContent="",n!==o){for(var s=0,l=0,d=0,A=this.pdfViewerBase.textLayer.getPageIndex(e.startContainer),h=this.pdfViewerBase.textLayer.getTextIndex(e.startContainer,A),p=this.pdfViewerBase.textLayer.getPageIndex(e.endContainer),c=this.pdfViewerBase.textLayer.getTextIndex(e.endContainer,p),g=this.pdfViewerBase.getElement("_textLayer_"+p).childNodes,u=d=t===A?h:0;u<g.length;u++){var f=g[parseInt(u.toString(),10)];if(u>c)break;if(s=u===h?e.startOffset:0,l=u===c?e.endOffset:f.textContent.length,0!==s||0!==l){for(var m=document.createRange(),w=0;w<f.childNodes.length;w++){var C=f.childNodes[parseInt(w.toString(),10)];m.setStart(C,s),m.setEnd(C,l)}var B=void 0;if(this.pdfViewerBase.clientSideRendering){B=this.normalizeBounds(m.getBoundingClientRect(),t);E=0;f&&""!==f.style.transform&&(E=f.style.transform.startsWith("rotate(90deg)")?90:f.style.transform.startsWith("rotate(180deg)")?180:f.style.transform.startsWith("rotate(-90deg)")||f.style.transform.startsWith("rotate(270deg)")?270:0),B.rotation=E}else B=this.normalizeBounds(m.getBoundingClientRect(),t);i.push(B);var S=m.toString();if(a.push(S),m.detach(),"\r\n"===S||" "===S){if(u===c+1)break}else if(u===c)break}}for(var y=0;y<a.length;y++){var I=a[parseInt(y.toString(),10)];(0!==y&&" "===I&&a[y-1].includes("\r\n")||y!==a.length-1&&" "===a[parseInt(y.toString(),10)]&&"\r\n"===a[y+1])&&(I=""),"\r\n"!==I.slice(I.length-2)||a.length,this.allTextContent+=I}}else{if(r=this.normalizeBounds(e.getBoundingClientRect(),t),this.pdfViewerBase.clientSideRendering){var E=0;n&&""!==n.style.transform&&(E=n.style.transform.startsWith("rotate(90deg)")?90:n.style.transform.startsWith("rotate(180deg)")?180:n.style.transform.startsWith("rotate(-90deg)")||n.style.transform.startsWith("rotate(270deg)")?270:0),r.rotation=E}this.allTextContent=e.toString(),i.push(r)}return i},e.prototype.getAngle=function(e){var t=0;if(e)switch(e){case 0:t=0;break;case 1:t=90;break;case 2:t=180;break;case 3:t=270}return t},e.prototype.getTextId=function(e){var t=e.lastIndexOf("_"),i=e.substring(t+1,e.length);return parseInt(i,10)},e.prototype.normalizeBounds=function(e,t){var i=this.pdfViewerBase.getElement("_pageDiv_"+t);if(this.pdfViewerBase.isMixedSizeDocument){var n=this.pdfViewerBase.getElement("_textLayer_"+t);n&&(i=n)}var o=i.getBoundingClientRect();return{bottom:this.getMagnifiedValue(e.bottom-o.top),height:this.getMagnifiedValue(e.height),left:this.getMagnifiedValue(e.left-o.left),top:this.getMagnifiedValue(e.top-o.top),right:this.getMagnifiedValue(e.right-o.left),width:this.getMagnifiedValue(e.width)}},e.prototype.getMagnifiedValue=function(e){return e/this.pdfViewerBase.getZoomFactor()},e.prototype.getCurrentSelectionBounds=function(e){for(var t=null,i=this.selectionRangeArray,n=0;n<i.length;n++)null!==i[parseInt(n.toString(),10)]&&e===i[parseInt(n.toString(),10)].pageNumber&&(t=i[parseInt(n.toString(),10)].bound);return t},e.prototype.createRangeForSelection=function(e,t,i,n,o){return o.setStart(e,i),o.setEnd(t,n),o},e.prototype.maintainSelectionArray=function(){var e=this;if(0!==this.selectionRangeArray.length){var t=window.getSelection(),i=this.pdfViewerBase.textLayer.isBackWardSelection(t),n=isNaN(parseInt(this.getNodeElementFromNode(t.anchorNode).id.split("_text_")[1],10))?parseInt(t.anchorNode.id.split("_pageDiv_")[1],10):parseInt(this.getNodeElementFromNode(t.anchorNode).id.split("_text_")[1],10);isNaN(n)&&(n=parseInt(t.anchorNode.id.split("_text_")[1],10));var o=isNaN(parseInt(this.getNodeElementFromNode(t.focusNode).id.split("_text_")[1],10))?parseInt(t.focusNode.id.split("_pageDiv_")[1],10):parseInt(this.getNodeElementFromNode(t.focusNode).id.split("_text_")[1],10);isNaN(o)&&(o=isNaN(parseInt(t.focusNode.id.split("_text_")[1],10))?parseInt(t.focusNode.id.split("_textLayer_")[1],10):parseInt(t.focusNode.id.split("_text_")[1],10));var r=[];if((r=i?this.selectionRangeArray.filter(function(t){return!(o<t.pageNumber&&t.pageNumber<=e.selectionStartPage)}):this.selectionRangeArray.filter(function(t){return!(e.selectionStartPage<=t.pageNumber&&t.pageNumber<o)})).length>0){for(var a=0;a<r.length;a++){var s=this.selectionRangeArray.indexOf(r[parseInt(a.toString(),10)]);-1!==s&&this.selectionRangeArray.splice(s,1)}1===this.selectionRangeArray.length&&(this.selectionRangeArray[0].pageNumber!==n&&this.selectionRangeArray[0].pageNumber!==o||(r=[]))}}},e.prototype.applySpanForSelection=function(){var e=window.getSelection();if(e.anchorNode!==e.focusNode||e.anchorOffset!==e.focusOffset||e.isCollapsed||e.removeAllRanges(),null!==e.anchorNode&&this.pdfViewerBase.viewerContainer.contains(this.getNodeElementFromNode(e.anchorNode))){var t=void 0,i=void 0,n=void 0,o=void 0,r=void 0,a=void 0;if(this.pdfViewerBase.textLayer.isBackWardSelection(e))t=parseInt(this.getNodeElementFromNode(e.focusNode).id.split("_text_")[1],10),i=parseInt(this.getNodeElementFromNode(e.anchorNode).id.split("_text_")[1],10),n=parseInt(this.getNodeElementFromNode(e.focusNode).id.split("_text_")[1].split("_")[1],10),o=parseInt(this.getNodeElementFromNode(e.anchorNode).id.split("_text_")[1].split("_")[1],10),r=e.focusOffset,a=e.anchorOffset;else{var s=this.getNodeElementFromNode(e.anchorNode),l=this.getNodeElementFromNode(e.focusNode);t=-1!==s.id.indexOf("text_")?parseInt(s.id.split("text_")[1],10):parseInt(s.id.split("_textLayer_")[1],10),i=-1!==l.id.indexOf("text_")?parseInt(l.id.split("text_")[1],10):parseInt(l.id.split("_textLayer_")[1],10);var d=!1;if(this.isTouchSelection&&e.focusNode===this.pdfViewerBase.pageContainer){var A=this.pdfViewerBase.pageContainer.lastChild;if(A.classList.contains("e-pv-touch-select-drop")){h=A.previousSibling.previousSibling;i=parseInt(h.id.split("_pageDiv_")[1],10),l=this.pdfViewerBase.getElement("_textLayer_"+i).lastChild,d=!0}else if(A.classList.contains("e-pv-page-div")){var h=A;i=parseInt(h.id.split("_pageDiv_")[1],10),l=this.pdfViewerBase.getElement("_textLayer_"+i).lastChild,d=!0}}s.classList.contains("e-pv-maintaincontent")&&(s=this.getNodeElementFromNode(s),t=parseInt(s.id.split("text_")[1],10)),l.classList.contains("e-pv-maintaincontent")&&(l=this.getNodeElementFromNode(l),i=parseInt(l.id.split("text_")[1],10)),t===i&&(s.contains(l)&&(s=l),l.contains(s)&&(l=s)),n=s.id.split("text_")[1]?parseInt(s.id.split("text_")[1].split("_")[1],10):null,o=l.id.split("text_")[1]?parseInt(l.id.split("text_")[1].split("_")[1],10):null,n=isNaN(n)?o:n,o=isNaN(o)?n:o,r=e.anchorOffset,a=d?l.textContent.length:e.focusOffset}this.pdfViewerBase.checkIsNormalText()&&(e.removeAllRanges(),this.pdfViewerBase.textLayer.clearDivSelection(),this.pdfViewerBase.textLayer.applySpanForSelection(t,i,n,o,r,a)),this.pdfViewer.textSearchModule&&this.pdfViewer.textSearchModule.searchAfterSelection()}},e.prototype.initiateTouchSelection=function(e,t,i){this.pdfViewerBase.isShapeBasedAnnotationsEnabled()&&this.pdfViewer.selectedItems.annotations.length>0&&this.pdfViewer.clearSelection(this.pdfViewer.selectedItems.annotations[0].pageIndex);var n=e.target,o=document.elementsFromPoint(e.touches[0].clientX,e.touches[0].clientY);0!==o.length&&o[0].classList.contains("e-pv-hyperlink")&&o[1].classList.contains("e-pv-text")&&(n=o[1]);var r=parseFloat(n.id.split("_")[2]);this.pdfViewer.fireTextSelectionStart(r+1),this.selectAWord(n,t,i,!0),this.createTouchSelectElement(e),this.maintainSelectionOnZoom(!0,!1),this.fireTextSelectEnd(),this.applySpanForSelection()},e.prototype.selectTextByTouch=function(e,t,i,n,o,r){var a=!1;if(e.nodeType===e.TEXT_NODE){var s=e.ownerDocument.createRange(),l=window.getSelection();s.selectNodeContents(e);for(var d=0,A=s.endOffset;d<A;){if(s.setStart(e,d),s.setEnd(e,d+1),(c=s.getBoundingClientRect()).left<=t&&c.right>=t&&c.top<=i&&c.bottom>=i)return null!==l.anchorNode&&(n&&s.setStart(l.anchorNode,l.anchorOffset),s=this.setTouchSelectionStartPosition(l,s,n,o,e,d,r),n&&l.extend(e,d),a=!0),s.detach(),a;d+=1}}else for(var h=0;h<e.childNodes.length;h++){var p=e.childNodes[parseInt(h.toString(),10)].ownerDocument.createRange();p.selectNodeContents(e.childNodes[parseInt(h.toString(),10)]);var c=p.getBoundingClientRect();if(c.left<=t&&c.right>=t&&c.top<=i&&c.bottom>=i)return p.detach(),this.selectTextByTouch(e.childNodes[parseInt(h.toString(),10)],t,i,n,o,r);p.detach()}return a},e.prototype.setTouchSelectionStartPosition=function(e,t,i,n,o,r,a){if(i){if("left"===n){s=this.getTouchFocusElement(e,!0);t.setStart(s.focusNode,s.focusOffset),t.setEnd(o,r),this.selectionAnchorTouch={anchorNode:t.endContainer.parentElement.id,anchorOffset:t.endOffset}}else if("right"===n){s=this.getTouchAnchorElement(e,!1);t.setStart(s.anchorNode,s.anchorOffset),t.setEnd(o,r),this.selectionFocusTouch={focusNode:t.endContainer.parentElement.id,focusOffset:t.endOffset}}}else if("left"===n)if(a)t.setStart(o,r),t.setEnd(e.focusNode,e.focusOffset),this.selectionAnchorTouch={anchorNode:t.startContainer.parentElement.id,anchorOffset:t.startOffset};else{s=this.getTouchFocusElement(e,!1);t.setStart(o,r),t.setEnd(s.focusNode,s.focusOffset),""===t.toString()&&(t.setStart(o,r),t.setEnd(e.focusNode,e.focusOffset)),this.selectionAnchorTouch={anchorNode:t.startContainer.parentElement.id,anchorOffset:t.startOffset}}else if("right"===n){var s=this.getTouchAnchorElement(e,!0);t.setStart(o,r),t.setEnd(s.anchorNode,s.anchorOffset),""===t.toString()&&(t.setStart(s.anchorNode,s.anchorOffset),t.setEnd(o,r)),this.selectionFocusTouch={focusNode:t.startContainer.parentElement.id,focusOffset:t.startOffset}}return e.removeAllRanges(),e.addRange(t),t},e.prototype.getTouchAnchorElement=function(e,t){var i=document.getElementById(this.selectionAnchorTouch.anchorNode.toString()),n=null,o=0;return i?(n=i.childNodes[0],o=parseInt(this.selectionAnchorTouch.anchorOffset.toString(),10)):t?(n=e.focusNode,o=e.focusOffset):(n=e.anchorNode,o=e.anchorOffset),{anchorNode:n,anchorOffset:o}},e.prototype.getTouchFocusElement=function(e,t){var i=document.getElementById(this.selectionFocusTouch.focusNode.toString()),n=null,o=0;return i?(n=i.childNodes[0],o=parseInt(this.selectionFocusTouch.focusOffset.toString(),10)):t?(n=e.anchorNode,o=e.anchorOffset):(n=e.focusNode,o=e.focusOffset),{focusNode:n,focusOffset:o}},e.prototype.createTouchSelectElement=function(e){this.isTouchSelection=!0;var i=window.getSelection();if("Range"===i.type){this.dropDivElementLeft=t.createElement("div",{id:this.pdfViewer.element.id+"_touchSelect_droplet_left",className:"e-pv-touch-select-drop"}),this.dropDivElementRight=t.createElement("div",{id:this.pdfViewer.element.id+"_touchSelect_droplet_right",className:"e-pv-touch-select-drop"}),this.dropElementLeft=t.createElement("div",{className:"e-pv-touch-ellipse"}),this.dropElementLeft.style.transform="rotate(0deg)",this.dropDivElementLeft.appendChild(this.dropElementLeft),this.dropElementRight=t.createElement("div",{className:"e-pv-touch-ellipse"}),this.dropElementRight.style.transform="rotate(-90deg)",this.dropElementRight.style.margin="0 9px 0 0",this.dropDivElementRight.appendChild(this.dropElementRight),this.pdfViewerBase.pageContainer.appendChild(this.dropDivElementLeft),this.pdfViewerBase.pageContainer.appendChild(this.dropDivElementRight);var n=i.getRangeAt(0).getBoundingClientRect(),o=this.dropDivElementLeft.getBoundingClientRect(),r=this.pdfViewerBase.pageSize[this.pdfViewerBase.currentPageNumber-1].top,a=this.pdfViewerBase.viewerContainer.getBoundingClientRect().left,s=this.getClientValueTop(n.top,this.pdfViewerBase.currentPageNumber-1),l=s-(this.pdfViewerBase.getZoomFactor()>2?8:this.pdfViewerBase.getZoomFactor()>1?4:0)+r*this.pdfViewerBase.getZoomFactor()+o.height/2*this.pdfViewerBase.getZoomFactor()+"px";this.dropDivElementLeft.style.top=l,this.dropDivElementLeft.style.left=n.left-(a+o.width)+this.pdfViewerBase.viewerContainer.scrollLeft+"px",this.dropDivElementRight.style.top=l,this.dropDivElementRight.style.left=n.left+n.width-a+this.pdfViewerBase.viewerContainer.scrollLeft+"px";var d=this.pdfViewerBase.getElement("_pageDiv_"+(this.pdfViewerBase.currentPageNumber-1)).getBoundingClientRect().left,A=n.left-d;this.topStoreLeft={pageTop:r,topClientValue:this.getMagnifiedValue(s),pageNumber:this.pdfViewerBase.currentPageNumber-1,left:this.getMagnifiedValue(A),isHeightNeeded:!0},this.topStoreRight={pageTop:r,topClientValue:this.getMagnifiedValue(s),pageNumber:this.pdfViewerBase.currentPageNumber-1,left:this.getMagnifiedValue(A+n.width),isHeightNeeded:!0},this.dropDivElementLeft.addEventListener("touchstart",this.onLeftTouchSelectElementTouchStart),this.dropDivElementLeft.addEventListener("touchmove",this.onLeftTouchSelectElementTouchMove),this.dropDivElementLeft.addEventListener("touchend",this.onLeftTouchSelectElementTouchEnd),this.dropDivElementRight.addEventListener("touchstart",this.onRightTouchSelectElementTouchStart),this.dropDivElementRight.addEventListener("touchmove",this.onRightTouchSelectElementTouchMove),this.dropDivElementRight.addEventListener("touchend",this.onRightTouchSelectElementTouchEnd),this.calculateContextMenuPosition(e.touches[0].clientY+this.dropDivElementLeft.clientHeight+10,parseInt(this.dropDivElementLeft.style.left,10)-10)}},e.prototype.calculateContextMenuPosition=function(e,i){var n=this;if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var o=e-this.contextMenuHeight;o<this.pdfViewerBase.toolbarHeight?e+=this.contextMenuHeight:e=o,e+this.contextMenuHeight>window.innerHeight&&(e-=this.contextMenuHeight)}"MouseUp"===this.pdfViewer.contextMenuSettings.contextMenuAction&&(i-=50);var r=this;setTimeout(function(){var t=document.getElementsByClassName("e-pv-maintaincontent").length,o=document.getElementsByClassName("e-pv-maintaincontent")[t-1]?document.getElementsByClassName("e-pv-maintaincontent")[t-1].getBoundingClientRect():null;if(o){e=o.bottom+r.contextMenuHeight+r.pdfViewerBase.toolbarHeight>window.innerHeight?o.top-(r.contextMenuHeight+r.pdfViewerBase.toolbarHeight-10):r.dropDivElementRight?o.bottom+r.dropDivElementRight.clientHeight:o.bottom,i=o.right;var a=n.pdfViewer.toolbarModule?n.pdfViewer.toolbarModule.annotationToolbarModule:"null";a&&a.textMarkupToolbarElement&&0!==a.textMarkupToolbarElement.children.length||r.pdfViewerBase.contextMenuModule.open(e,i,r.pdfViewerBase.viewerContainer)}})},e.prototype.initiateSelectionByTouch=function(){this.pdfViewerBase.textLayer.clearDivSelection(),this.pdfViewerBase.contextMenuModule.close();var e=this.pdfViewerBase.currentPageNumber-3;e=e<0?0:e;var t=this.pdfViewer.currentPageNumber+1;t=t<this.pdfViewerBase.pageCount-1?t:this.pdfViewerBase.pageCount-1;for(var i=e;i<=t;i++){var n=this.pdfViewerBase.getElement("_textLayer_"+i);n&&null!==n.childNodes&&this.applySelectionMouseScroll(i)}this.selectionRangeArray.length>0&&this.pdfViewer.fireTextSelectionStart(this.selectionRangeArray[0].pageNumber+1)},e.prototype.terminateSelectionByTouch=function(e){if(this.maintainSelectionOnZoom(!0,!1),this.applySpanForSelection(),this.pdfViewerBase.getTextMarkupAnnotationMode())this.pdfViewer.annotationModule.textMarkupAnnotationModule.drawTextMarkupAnnotations(this.pdfViewer.annotationModule.textMarkupAnnotationModule.currentTextMarkupAddMode);else{this.fireTextSelectEnd();var t=e.changedTouches[0].clientY,i=this.getSpanBounds();i&&(i.bottom+this.contextMenuHeight+this.pdfViewerBase.toolbarHeight>window.innerHeight&&(t=i.top-(this.contextMenuHeight+this.pdfViewerBase.toolbarHeight)),this.pdfViewerBase.contextMenuModule.open(t,e.changedTouches[0].clientX,this.pdfViewerBase.viewerContainer))}},e.prototype.getSpanBounds=function(){var e=[],t=[],i=[],n=0,o=document.getElementsByClassName("e-pv-maintaincontent");if(o.length>0){for(var r=0;r<o.length;r++){var a=o[parseInt(r.toString(),10)].getBoundingClientRect();n+=a.height,e.push(a.width),t.push(a.right),i.push(a.left)}return{top:o[0].getBoundingClientRect().top,bottom:o[o.length-1].getBoundingClientRect().bottom,left:Math.min.apply(null,i),right:Math.max.apply(null,t),width:Math.max.apply(null,e),height:n}}},e.prototype.getNodeElement=function(e,t,i,n,o){if(document.caretRangeFromPoint)e=document.caretRangeFromPoint(t,i),o=this.onTouchElementScroll(e,o,i,n);else if(document.caretPositionFromPoint){var r=document.caretPositionFromPoint(t,i),a=document.caretPositionFromPoint(t,i);(e=document.createRange()).setStart(r.offsetNode,r.offset),e.setEnd(a.offsetNode,a.offset),o=this.onTouchElementScroll(e,o,i,n)}return o},e.prototype.isTouchedWithinContainer=function(e){var t=!1;return 0!==document.elementsFromPoint(e.touches[0].clientX,e.touches[0].clientY).length&&(t=!0),t},e.prototype.onTouchElementScroll=function(e,t,i,n){var o=this.pdfViewerBase.viewerContainer.scrollTop;if(null!=e){t=e.startContainer;var r=this.isScrolledOnScrollBar(n);this.pdfViewerBase.viewerContainer.contains(t.parentElement)&&!r||(i<this.pdfViewerBase.viewerContainer.clientHeight?this.pdfViewerBase.viewerContainer.scrollTop=o-30:this.pdfViewerBase.viewerContainer.scrollTop=o+30)}else i<this.pdfViewerBase.viewerContainer.clientHeight?this.pdfViewerBase.viewerContainer.scrollTop=o-30:this.pdfViewerBase.viewerContainer.scrollTop=o+30;return t},e.prototype.isCloserTouchScroll=function(e){var t=!1;return this.previousScrollDifference>e&&(t=!0),t},e.prototype.getClientValueTop=function(e,t){return this.pdfViewerBase.getElement("_pageDiv_"+t)?e-this.pdfViewerBase.getElement("_pageDiv_"+t).getBoundingClientRect().top:e},e.prototype.isScrolledOnScrollBar=function(e){var t=!1;return e.touches&&this.pdfViewerBase.viewerContainer.clientHeight+this.pdfViewerBase.viewerContainer.offsetTop<e.touches[0].clientY&&e.touches[0].clientY<this.pdfViewerBase.viewerContainer.offsetHeight+this.pdfViewerBase.viewerContainer.offsetTop&&(t=!0),t},e.prototype.getTextLastLength=function(e){return e?e.textContent.length:0},e.prototype.getNodeElementFromNode=function(e){return e.parentElement?e.parentElement:e.parentNode},e.prototype.copyText=function(){var e="";if(this.maintainSelectionOnZoom(!0,!1),this.selectionRangeArray.length>0)for(var t=0;t<this.selectionRangeArray.length;t++)e+=this.selectionRangeArray[parseInt(t.toString(),10)].textContent;if(e.length>0){this.pdfViewer.annotation&&(this.pdfViewer.annotation.isShapeCopied=!1);var i=document.createElement("textarea");i.contentEditable="true",i.textContent=e,this.pdfViewer.annotation&&this.pdfViewer.annotation.freeTextAnnotationModule&&(this.pdfViewer.annotation.freeTextAnnotationModule.selectedText=e),i.style.position="fixed",document.body.appendChild(i),i.select();try{document.execCommand("copy")}catch(e){console.warn("Copy to clipboard failed.",e)}finally{i&&document.body.removeChild(i)}}},e.prototype.destroy=function(){this.clear()},e.prototype.getModuleName=function(){return"TextSelection"},e}(),$n=function(){return($n=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},eo=[],to=function(){function n(e,t){var i=this;this.isTextSearch=!1,this.searchCount=0,this.currentOccurrence=0,this.searchIndex=0,this.currentSearchIndex=0,this.startIndex=null,this.searchPageIndex=null,this.startSearchPageIndex=null,this.searchString=null,this.isMatchCase=!1,this.isMultiSearch=!1,this.isSingleSearch=!1,this.findTextDocumentCollection=[],this.searchRequestHandler=null,this.textSearchHandleRequest=null,this.isTextSearchHandled=!1,this.textSearchOpen=!1,this.programaticalSearch=!1,this.isFiltering=!1,this.textContents=[],this.searchMatches=[],this.multiSearchCounts={},this.getSearchTextDetails={},this.searchedPages=[],this.isPrevSearch=!1,this.isExactMatch=!1,this.autompleteDataSource=[],this.searchedOccurrences=[],this.isSelectedFromPopup=!1,this.isDocumentTextCollectionReady=!1,this.intervalId=null,this.searchTextDivzIndex="-1",this.tempElementStorage=[],this.isMessagePopupOpened=!1,this.isTextRetrieved=!1,this.isTextSearched=!1,this.isTextSearchEventTriggered=!1,this.isSearchText=!1,this.isLastOccurrenceCompleted=!1,this.checkBoxOnChange=function(e){if(e.checked?(i.isMatchCase=!0,i.searchString="",i.searchInput.value&&""!==i.searchInput.value&&(i.isTextSearch=!0)):(i.isMatchCase=!1,i.searchString="",i.searchInput.value&&""!==i.searchInput.value&&(i.isTextSearch=!0)),i.isTextSearch&&i.isDocumentTextCollectionReady){i.resetVariables(),i.clearAllOccurrences();var t=i.searchInput.value;i.searchIndex=0,i.initiateTextSearch(t),0!==i.searchCount||i.isMessagePopupOpened||i.onMessageBoxOpen()}},this.searchKeypressHandler=function(e){var t=String.fromCharCode(e.which||e.keyCode),n=function(e){return/[!@#$%^&*(),.?":{}|<>]/.test(e)};!/[a-zA-Z0-9]/.test(t)&&!n||e.ctrlKey||e.altKey?i.resetVariables():(i.initiateTextSearch(i.searchInput.value),i.updateSearchInputIcon(!1))},this.searchClickHandler=function(e){i.searchButtonClick(i.searchBtn,i.searchAutocompleteObj)},this.nextButtonOnClick=function(e){i.searchString=i.searchInput.value,i.nextSearch()},this.prevButtonOnClick=function(e){i.searchString=i.searchInput.value,i.prevSearch()},this.pdfViewer=e,this.pdfViewerBase=t}return n.prototype.createTextSearchBox=function(){var e=this;this.searchBox=t.createElement("div",{id:this.pdfViewer.element.id+"_search_box",className:"e-pv-text-search-bar"});var i,n;(i=t.isBlazor()?document.getElementById("toolbarContainer"):this.pdfViewerBase.getElement("_toolbarContainer"))&&(t.isBlazor(),this.searchBox.style.top=i.clientHeight+"px");var o=t.createElement("div",{id:this.pdfViewer.element.id+"_search_box_elements",className:"e-pv-text-search-bar-elements"});this.searchInputContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_search_input_container",className:"e-input-group e-pv-text-search-input"}),this.searchInput=t.createElement("input",{id:this.pdfViewer.element.id+"_search_input",className:"e-input e-pv-search-input-ele"});var r={matches:[{SearchString:"",Count:""}]};this.searchAutocompleteObj=new h.AutoComplete({dataSource:r.matches,fields:{value:"SearchString"},headerTemplate:'<div class="e-pv-automplete-header"><span class="e-pv-search-exact-matches">'+this.pdfViewer.localeObj.getConstant("Exact Matches")+'</span><span class="e-pv-total-exact-matches"></span></div>',itemTemplate:'<div class="e-pv-autocomplete-item"><span class="e-pv-autocomplete-word"> ${SearchString} </span><span class="e-pv-autocomplete-count">${Count}</span></div>',placeholder:this.pdfViewer.localeObj.getConstant("Find in document"),popupHeight:"200px",beforeOpen:function(t){Array.isArray(e.autompleteDataSource)&&0===e.autompleteDataSource.length&&(t.cancel=!0)},select:function(t){e.isSelectedFromPopup=!0,e.isSingleSearch=!0,e.isMultiSearch=!1,e.isExactMatch=!0,e.initiateSearch(t.itemData.SearchString)},blur:function(t){e.searchAutocompleteObj.value=n,e.searchAutocompleteObj.dataBind()},filtering:function(i){n=i.text,e.isDocumentTextCollectionReady||(e.resetVariablesTextSearch(),e.clearAllOccurrences()),e.isSelectedFromPopup=!1,e.searchCountEle&&(e.searchCountEle.innerHTML="",e.adjustInputContainerWidth()),e.isSingleSearch=!1,e.isExactMatch=!1,e.isMultiSearch=e.matchAnyWordCheckBox.checked,e.initiateTextSearch(i.text),""===i.text&&(clearInterval(e.intervalId),e.showLoadingIndicator(!1)),e.searchString="",e.documentTextCollection.length===e.pdfViewerBase.pageCount&&(e.isDocumentTextCollectionReady=!0);var o=setInterval(function(){if(e.documentTextCollection.length===e.pdfViewerBase.pageCount){if(i.updateData(e.autompleteDataSource,null),Array.isArray(e.autompleteDataSource)&&0!==e.autompleteDataSource.length){var n=e.autompleteDataSource.reduce(function(e,t){return e+parseInt(t.Count,10)},0);document.querySelector(".e-pv-total-exact-matches").innerHTML=n,e.isMultiSearch?document.querySelector(".e-pv-search-exact-matches").innerHTML=e.pdfViewer.localeObj.getConstant("Total Matches"):document.querySelector(".e-pv-search-exact-matches").innerHTML=e.pdfViewer.localeObj.getConstant("Exact Matches")}else if(0===e.autompleteDataSource.length){var r=document.querySelector(".e-pv-total-exact-matches");t.isNullOrUndefined(r)||(r.innerHTML="0"),e.searchAutocompleteObj.hidePopup()}clearInterval(o),e.isDocumentTextCollectionReady=!0}},1e3)},created:function(t){e.searchAutocompleteObj.element.addEventListener("keydown",function(t){"Enter"===t.key&&(e.isSingleSearch=!0,e.isExactMatch=e.isSelectedFromPopup,e.isMultiSearch=!1,e.isDocumentTextCollectionReady?e.initiateTextSearch(e.searchInput.value):(""!==e.searchInput.value&&e.searchInput.value!==e.searchString&&(e.isTextSearchHandled=!1,e.searchCount=0,e.searchIndex=0,e.searchPageIndex=0,e.textSearchWhileLoading(e.searchInput.value,e.isMatchCase),e.searchString=e.searchInput.value),e.isTextSearchHandled&&e.nextSearch()),0!==e.searchCount||e.isMessagePopupOpened||e.documentTextCollection.length!==e.pdfViewerBase.pageCount||e.onMessageBoxOpen())}),e.searchAutocompleteObj.element.parentElement.querySelector(".e-clear-icon").addEventListener("mousedown",function(t){e.showLoadingIndicator(!1),clearInterval(e.intervalId),e.searchInput.value="",e.resetTextSearch(),e.searchCountEle&&(e.searchCountEle.innerHTML="",e.adjustInputContainerWidth()),e.searchInput.focus(),e.searchString=""})}}),this.searchBtn=t.createElement("span",{id:this.pdfViewer.element.id+"_search_box-icon",className:"e-input-group-icon e-input-search-group-icon e-pv-search-icon"}),this.searchBtn.setAttribute("tabindex","0"),this.searchInputContainer.appendChild(this.searchInput),this.searchAutocompleteObj.appendTo(this.searchInput),o.appendChild(this.searchInputContainer),this.searchCountEle=t.createElement("span",{id:this.pdfViewer.element.id+"_search_count",className:"e-pv-search-count",innerHTML:""}),o.appendChild(this.searchCountEle),this.pdfViewer.enableRtl?this.prevSearchBtn=this.createSearchBoxButtons("prev_occurrence","e-pv-next-search"):this.prevSearchBtn=this.createSearchBoxButtons("prev_occurrence","e-pv-prev-search"),this.prevSearchBtn.setAttribute("aria-label","Previous Search text"),o.appendChild(this.prevSearchBtn),this.pdfViewer.enableRtl?this.nextSearchBtn=this.createSearchBoxButtons("next_occurrence","e-pv-prev-search"):this.nextSearchBtn=this.createSearchBoxButtons("next_occurrence","e-pv-next-search"),this.nextSearchBtn.setAttribute("aria-label","Next Search text"),o.appendChild(this.nextSearchBtn);var a=t.createElement("div",{id:this.pdfViewer.element.id+"_match_case_container",className:"e-pv-textsearch-match-case-container"}),s=t.createElement("input",{id:this.pdfViewer.element.id+"_match_case"});s.type="checkbox",t.isBlazor()&&(s.style.height="17px",s.style.width="17px",s.addEventListener("change",this.checkBoxOnChange.bind(this))),a.appendChild(s);var l=t.createElement("input",{id:this.pdfViewer.element.id+"_match_any_word"});if(l.type="checkbox",a.appendChild(l),this.searchBox.appendChild(o),this.searchBox.appendChild(a),this.pdfViewerBase.mainContainer.appendChild(this.searchBox),t.isBlazor()){var d=t.createElement("span",{id:this.pdfViewer.element.id+"_search_box_text",styles:"position: absolute; padding-top: 3px; padding-left: 8px; padding-right: 8px; font-size: 13px"});this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_Matchcase").then(function(e){d.textContent=e}),a.appendChild(d)}else new A.CheckBox({cssClass:"e-pv-match-case",label:this.pdfViewer.localeObj.getConstant("Match case"),htmlAttributes:{tabindex:"0"},change:this.checkBoxOnChange.bind(this)}).appendTo(s),this.matchAnyWordCheckBox=new A.CheckBox({cssClass:"e-pv-match-any-word",label:this.pdfViewer.localeObj.getConstant("Match any word"),htmlAttributes:{tabindex:"0"},change:function(){e.isMultiSearch=e.matchAnyWordCheckBox.checked}}),this.matchAnyWordCheckBox.appendTo(l);a.firstElementChild.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.target.click(),e.preventDefault(),e.stopPropagation())}),l.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.target.click(),e.preventDefault(),e.stopPropagation())});var p=t.createElement("div",{id:this.pdfViewer.element.id+"_textSearchLoadingIndicator"});this.searchInputContainer.appendChild(p),p.style.position="absolute",p.style.top="15px",p.style.left=this.searchInputContainer.clientWidth-46+"px",oe({target:p,cssClass:"e-spin-center"}),this.setLoaderProperties(p),this.showSearchBox(!1),this.pdfViewer.enableRtl?(this.searchBox.classList.add("e-rtl"),this.searchBox.style.left="88.3px"):(this.searchBox.classList.remove("e-rtl"),this.searchBox.style.right="88.3px"),this.searchBtn.addEventListener("click",this.searchClickHandler.bind(this)),this.searchBtn.addEventListener("keydown",function(t){"Enter"!==t.key&&" "!==t.key||(e.searchClickHandler(t),t.preventDefault(),t.stopPropagation())}),this.nextSearchBtn.addEventListener("click",this.nextButtonOnClick.bind(this)),this.prevSearchBtn.addEventListener("click",this.prevButtonOnClick.bind(this))},n.prototype.setLoaderProperties=function(e){var t=e.firstChild.firstChild.firstChild;t&&(t.style.height="18px",t.style.width="18px",t.style.transformOrigin="9px 9px 9px")},n.prototype.showLoadingIndicator=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_textSearchLoadingIndicator");t&&(e?Ye(t):Je(t))},n.prototype.textSearchWhileLoading=function(e,i,n,o,r,a){var s=o||100,l=a||!1;if(s>=this.pdfViewerBase.pageCount&&(s=this.pdfViewerBase.pageCount,l=!0),!this.pdfViewerBase.clientSideRendering){var d=this,A={text:e,matchCase:i,documentId:this.pdfViewerBase.getDocumentId(),hashId:this.pdfViewerBase.hashId,action:"SearchTextPdf",elementId:this.pdfViewer.element.id,uniqueId:this.pdfViewerBase.documentId,startIndex:n||0,endIndex:s,isCompleted:l,isRequestsend:!t.isNullOrUndefined(r)&&r};this.textSearchHandleRequest=new Pi(this.pdfViewer),this.textSearchHandleRequest.url=this.pdfViewer.serviceUrl+"/RenderPdfTexts",this.textSearchHandleRequest.responseType="json",this.textSearchHandleRequest.send(A),this.textSearchHandleRequest.onSuccess=function(e){var t=e.data;if(t)try{d.searchTextAfteresult(t.resultPages,t.totalSearchCount,t.searchWord,t.matchCase,"true"===t.isRequestsend.toLowerCase(),"true"===t.isCompleted.toLowerCase(),t.endIndex)}catch(e){t=null}}}this.pdfViewerBase.clientSideRendering&&this.pdfViewerBase.pdfViewerRunner.addTask({message:"searchText",zoomFactor:this.pdfViewerBase.getZoomFactor(),searchWord:e,matchCase:i,startIndex:n||0,endIndex:s,isCompleted:l,isRequestsend:!t.isNullOrUndefined(r)&&r},Et.Medium)},n.prototype.searchTextAfteresult=function(e,t,i,n,o,r,a){if(0===t&&0===this.searchCount)r&&(this.isTextSearchHandled=!0,this.pdfViewerBase.createNotificationPopup(this.pdfViewer.localeObj.getConstant("No Matches")),this.showLoadingIndicator(!1));else if(this.isSingleSearch&&this.searchString===i&&this.isMatchCase===n&&(this.textSearchOpen||this.programaticalSearch)){this.isTextSearchHandled=!0;var s=this.getSearchTextDetails;this.getSearchTextDetails=$n({},s,e),this.hightlightSearchedTexts(this.searchPageIndex,o),r?this.showLoadingIndicator(!1):this.showLoadingIndicator(!0),this.searchCount=this.searchCount+t,o||(this.currentOccurrence=1,this.searchedOccurrences.push(this.currentOccurrence),1===this.searchedOccurrences.length&&this.pdfViewer.fireTextSearchStart(this.searchString,this.isMatchCase)),this.searchCountEle.style.display="inline-block",this.getSearchCountText(),this.updateLoadingIndicator()}r||this.searchString!==i||!this.textSearchOpen&&!this.programaticalSearch||this.textSearchWhileLoading(i,n,a,a+100,0!==this.searchCount,r)},n.prototype.updateLoadingIndicator=function(){document.getElementById(this.pdfViewer.element.id+"_textSearchLoadingIndicator").style.left=this.searchInputContainer.clientWidth-46+"px"},n.prototype.hightlightSearchedTexts=function(e,i,n){this.clearAllOccurrences();var o,r=[];for(var a in this.getSearchTextDetails)Object.prototype.hasOwnProperty.call(this.getSearchTextDetails,a)&&r.push(parseInt(a,10));if(r.sort(function(e,t){return e-t}),!t.isNullOrUndefined(e)){for(var s=r[r.length-1],l=r[0],d=0;d<r.length;d++)if(r[parseInt(d.toString(),10)]<e)s=r[parseInt(d.toString(),10)];else if(r[parseInt(d.toString(),10)]>e){l=r[parseInt(d.toString(),10)];break}this.getSearchTextDetails[parseInt(e.toString(),10)]||(e=l),(this.searchIndex+1>this.getSearchTextDetails[parseInt(e.toString(),10)].PageOccurrence||this.searchIndex<0)&&(this.searchIndex+1>this.getSearchTextDetails[parseInt(e.toString(),10)].PageOccurrence&&(e=e+1===r[r.length-1]?0:l,this.searchIndex=0),this.searchIndex<0&&(e=e-1==-1?r[r.length-1]:s,this.searchIndex=this.getSearchTextDetails[parseInt(e.toString(),10)].PageOccurrence-1))}for(var a in this.getSearchTextDetails)if(Object.prototype.hasOwnProperty.call(this.getSearchTextDetails,a)){var A=this.getSearchTextDetails[parseInt(a.toString(),10)],h=0;for(var p in A.Bounds){if(Object.prototype.hasOwnProperty.call(A.Bounds,p))for(var c=A.Bounds[parseInt(p.toString(),10)],d=0;d<c.length;d++){var g=c[parseInt(d.toString(),10)].Left,u=c[parseInt(d.toString(),10)].Top,f=c[parseInt(d.toString(),10)].Height,m=c[parseInt(d.toString(),10)].Width,w=null;if(t.isNullOrUndefined(n)?w=e||r[0]:n&&(w=null),this.searchIndex===h&&w===Number(a)){o=h,(!t.isNullOrUndefined(i)&&!i||t.isNullOrUndefined(i))&&this.pdfViewerBase.updateScrollTop(Number(a));var C="_searchtext_"+Number(a)+"_"+h,B=void 0;(B=c.length<=1||0===d?document.getElementById(this.pdfViewer.element.id+C):document.getElementById(this.pdfViewer.element.id+C+"_"+d))&&B.parentElement.removeChild(B),this.searchPageIndex=Number(a),this.createSearchTextDiv(h,Number(a),f,m,u,g,"e-pv-search-text-highlight",!1,0,d)}else this.createSearchTextDiv(h,Number(a),f,m,u,g,"e-pv-search-text-highlightother",!1,0,d)}h++}}if(!t.isNullOrUndefined(i)&&!i||t.isNullOrUndefined(i)){var B=this.pdfViewerBase.getElement("_searchtext_"+this.searchPageIndex+"_"+o),S={y:-100,x:-100};this.scrollToSearchStr(B,S)}},n.prototype.textSearchBoxOnResize=function(){if(this.pdfViewer.toolbarModule&&this.pdfViewer.enableToolbar){var e=this.pdfViewerBase.getElement("_toolbarContainer_popup");e&&e.contains(this.pdfViewerBase.getElement("_search").parentElement)&&(this.searchBox.style.right="0px")}else this.pdfViewerBase.viewerContainer.clientWidth+this.pdfViewerBase.viewerContainer.offsetLeft<this.searchBox.offsetLeft+this.searchBox.clientWidth?(this.searchBox.style.right="0px",this.searchBox.style.width=parseInt(this.searchBox.style.width,10)-(this.searchBox.offsetLeft+this.searchBox.clientWidth-this.pdfViewerBase.viewerContainer.clientWidth)+"px",this.searchInput.style.width=parseInt(this.searchInput.style.width,10)-(this.searchBox.offsetLeft+this.searchBox.clientWidth-this.pdfViewerBase.viewerContainer.clientWidth)+"px"):(this.searchBox.style.right="88.3px",this.searchBox.style.width="",this.searchInput.style.width="")},n.prototype.showSearchBox=function(e){t.isNullOrUndefined(this.searchBox)||(e?(this.searchBox.style.display="block",this.textSearchOpen=!0):(this.searchBox.style.display="none",this.searchInput.value="",this.searchCountEle.style.display="none",this.pdfViewer.toolbarModule&&(this.pdfViewer.toolbarModule.isTextSearchBoxDisplayed=!1),this.textSearchOpen=!1),this.onTextSearchClose())},n.prototype.searchAfterSelection=function(){0===this.currentOccurrence&&(this.searchPageIndex=this.pdfViewerBase.currentPageNumber-1,this.startSearchPageIndex=this.searchPageIndex),this.isTextSearch&&0!==this.currentOccurrence&&(this.initSearch(this.searchPageIndex,!0),this.highlightOthers())},n.prototype.calculateSearchCount=function(e,i){var n=this;if(this.searchCount=0,this.isTextSearchHandled||(this.currentOccurrence=0,this.resetVariables(),this.searchIndex=0),!e||""===e.trim())return void(this.searchCountEle&&(this.searchCountEle.innerHTML="",this.adjustInputContainerWidth()));if(this.isMultiSearch){this.searchCountEle&&(this.searchCountEle.innerHTML="",this.adjustInputContainerWidth());var o=e.split(" ");this.multiSearchCounts={};for(var r=0,a=o;r<a.length;r++){var s=a[r];if(""!==(s=s.trim())){for(var l=0,d=0;d<i.length;d++){var A=parseInt(Object.keys(i[parseInt(d.toString(),10)])[0],10),h=(g=i[parseInt(d.toString(),10)][parseInt(A.toString(),10)]).pageText?g.pageText:g.PageText;this.isMatchCase||(h=h.toLowerCase(),s=s.toLowerCase());for(y=h.indexOf(s);-1!==y;)l++,y=h.indexOf(s,y+1)}this.multiSearchCounts[""+s]=l}}var p=Object.keys(this.multiSearchCounts).map(function(e){return{SearchString:e,Count:n.multiSearchCounts[""+e].toString()}});return void(this.autompleteDataSource=p)}for(var c={},d=0;d<i.length;d++){var A=parseInt(Object.keys(i[parseInt(d.toString(),10)])[0],10),g=i[parseInt(d.toString(),10)][parseInt(A.toString(),10)],u=(h=g.pageText?g.pageText:g.PageText).replace(/(\s\r\n)/gm," ").replace(/(\r\n)/gm," "),f=h.replace(/(\s\r\n)/gm,"  ").replace(/(\r\n)/gm," "),m=u.replace(/[^a-zA-Z0-9]+/g," "),w=void 0,C=e.length,B=[],S=[],y=-C,I=-C,E=-C,v=-C,b=-C;for(this.isMatchCase||(e=e.toLowerCase(),h=h.toLowerCase(),u=u.toLowerCase(),f=f.toLowerCase(),m=m.toLowerCase());(0!==y||0===y&&B.length>0&&0===B[0])&&e&&" "!==e;){if(this.isExactMatch){var V=void 0,D=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),x=new RegExp("(?<!\\w)"+D+"(?!\\w)","g");for(V=x.exec(h);null!==V;)B.push(V.index),V=x.exec(h);break}if(y=h.indexOf(e,y+C),-1!==e.indexOf(" ")){var Q=e.replace(" ","\r\n");(I=h.indexOf(Q,I+C))<=-1||I<y&&B.push(I)}if(y<=-1&&I<=-1)break;y<=-1||B.push(y),I>y&&!(I<=-1)&&B.push(I)}if(0===B.length){if(E=u.indexOf(e,E+C),v=f.indexOf(e,v+C),b=m.indexOf(e,b+C),-1!==E){y=-(w=this.correctLinetext(e,y,h))[0].length;for(var M=0;M<w.length;M++)y=h.indexOf(w[parseInt(M.toString(),10)].trim(),y+(void 0===w[M-1]?w[0].length:w[M-1].length)),S.push(y),S.length>1&&(S[1]-(S[0]+w[0].length)<=3?(B.push(S),this.searchMatches[parseInt(A.toString(),10)]=B):(M=-1,y=S[0]+w[0].length,S.splice(0,S.length)))}else if(-1!==b){y=-(w=this.correctLinetext(e,y,h))[0].length;for(var F=0;F<w.length;F++)y=h.indexOf(w[parseInt(F.toString(),10)].trim(),y+(void 0===w[F-1]?w[0].length:w[F-1].length)),S.push(y),S.length>1&&(S[1]-(S[0]+w[0].length)<=3?(B.push(S),this.searchMatches[parseInt(A.toString(),10)]=B):(F=-1,y=S[0]+w[0].length,S.splice(0,S.length)))}else if(-1!==v){y=-(w=this.correctLinetext(e,y,h))[0].length;for(var T=0;T<w.length;T++)y=h.indexOf(w[parseInt(T.toString(),10)].trim(),y+(void 0===w[T-1]?w[0].length:w[T-1].length)),S.push(y),S.length>1&&(S[1]-(S[0]+w[0].length)<=3?(B.push(S),this.searchMatches[parseInt(A.toString(),10)]=B):(T=-1,y=S[0]+w[0].length,S.splice(0,S.length)))}B.length>1&&B.splice(1,B.length)}var k=h.match(/[a-zA-Z]+|\d+/g);t.isNullOrUndefined(k)||k.forEach(function(t){t.startsWith(e)&&(c[""+t]?c[""+t]++:c[""+t]=1)}),B.length>0&&(this.searchCount=this.searchCount+B.length),this.searchMatches&&B.length>0&&(this.searchMatches[parseInt(A.toString(),10)]=B)}var P=Object.keys(c).map(function(e){return{SearchString:e,Count:c[""+e].toString()}});this.isSingleSearch?(this.searchCountEle&&(-1===this.searchedOccurrences.indexOf(this.currentOccurrence+1)&&(this.isTextSearchHandled||this.searchedOccurrences.push(this.currentOccurrence+1)),this.adjustInputContainerWidth()),1===this.searchedOccurrences.length&&this.pdfViewer.fireTextSearchStart(this.searchString,this.isMatchCase),this.isTextSearchHandled||(this.currentOccurrence+=1)):this.searchAutocompleteObj&&(this.autompleteDataSource=P)},n.prototype.getSearchCountText=function(){0===this.searchCount?this.searchCountEle.innerHTML="0 "+this.pdfViewer.localeObj.getConstant("of")+" 0":(this.enableNextButton(!0),this.enablePrevButton(!0),this.pdfViewer.enableRtl?this.searchCountEle.innerHTML=this.searchCount+" "+this.pdfViewer.localeObj.getConstant("of")+" "+this.currentOccurrence:this.searchCountEle.innerHTML=this.currentOccurrence+" "+this.pdfViewer.localeObj.getConstant("of")+" "+this.searchCount)},n.prototype.adjustInputContainerWidth=function(){var e=this.searchCountEle.parentElement;this.searchCount>0?(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&e&&(e.style.display="block"),this.searchCountEle.style.display="inline-block"):(this.searchCountEle.style.display="none",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&e&&(e.style.display="none"))},n.prototype.initiateTextSearch=function(e,i){t.isNullOrUndefined(this.documentTextCollection)||this.documentTextCollection.length===this.pdfViewerBase.pageCount?(this.enableNextButton(!0),this.enablePrevButton(!0)):(this.enableNextButton(!1),this.enablePrevButton(!1)),this.autompleteDataSource=[],this.pdfViewer.enableHtmlSanitizer&&"string"==typeof e&&(e=t.SanitizeHtmlHelper.sanitize(e)),e&&e.length>0&&" "===e[e.length-1]&&(e=e.slice(0,e.length-1)),this.initiateSearch(e,i)},n.prototype.handleSearchAfterTextCollectionReady=function(e,i){if(i){var n=document.getElementById(this.pdfViewer.element.id+"_search_count");this.searchCountEle=n}this.isSingleSearch=i||this.isSingleSearch,(e!==this.searchString||this.isLastOccurrenceCompleted)&&(this.isTextSearchHandled=!1,this.calculateSearchCount(e,this.documentTextCollection),this.isInitialSearch=!0,this.isLastOccurrenceCompleted=!1,0===this.currentOccurrence&&(this.startSearchPageIndex=this.searchPageIndex)),e===this.searchString&&null!==this.searchPageIndex&&null!==this.startSearchPageIndex||(this.isTextSearch=!1,this.isTextSearchHandled||(this.searchPageIndex=this.pdfViewerBase.currentPageNumber-1,this.startSearchPageIndex=this.searchPageIndex)),this.isTextSearchHandled||this.clearAllOccurrences(),""!==e&&!this.isMultiSearch&&this.isSingleSearch&&this.searchCount>0&&(this.searchMatches[this.searchPageIndex]&&e===this.searchString?0===this.searchMatches[this.searchPageIndex].length?this.initSearch(this.searchPageIndex,!1):this.nextSearch():t.isNullOrUndefined(this.searchMatches[this.searchPageIndex])&&e===this.searchString?this.initSearch(this.searchPageIndex,!1):this.textSearch(e)),""===e&&(this.searchString="")},n.prototype.initiateSearch=function(e,i){var n=this,o=this.pdfViewerBase.pageCount;t.isNullOrUndefined(this.intervalId)||clearInterval(this.intervalId);var r=function(){n.isTextSearchHandled||n.showLoadingIndicator(!0),n.documentTextCollection.length===o&&(clearInterval(n.intervalId),n.isDocumentTextCollectionReady=!0,n.calculateSearchCount(n.searchInput.value,n.documentTextCollection),n.getSearchTextDetails={},n.showLoadingIndicator(!1),n.enableNextButton(!0),n.enablePrevButton(!0),n.intervalId=null,n.isTextSearchHandled||n.handleSearchAfterTextCollectionReady(e,i)),i&&n.pdfViewerBase.navigationPane&&n.pdfViewerBase.navigationPane.setSearchInputWidth()};this.isDocumentTextCollectionReady?this.handleSearchAfterTextCollectionReady(e,i):this.intervalId=setInterval(r,1e3)},n.prototype.textSearch=function(e){if(""!==e||e){if(this.searchString=e,this.isTextSearch=!0,this.isSearchText=!0,this.searchPageIndex=this.pdfViewerBase.currentPageNumber-1,this.isTextSearchEventTriggered=!1,this.isTextSearchHandled||this.showLoadingIndicator(!0),this.pdfViewer.isExtractText)if(this.isTextRetrieved)for(t=0;t<this.pdfViewerBase.pageCount;t++)this.initSearch(t,!1,!0);else{this.isTextSearched=!0;for(var t=0;t<this.documentTextCollection.length;t++)this.initSearch(t,!1,!0)}this.isTextSearchHandled||(this.searchPageIndex=this.findNextPageWithText(this.searchPageIndex,!0),this.initSearch(this.searchPageIndex,!1),this.highlightOthers())}},n.prototype.nextSearch=function(){this.isPrevSearch=!1,this.isTextSearch=!0,this.isSearchText=!1;var e=!1;if(this.isDocumentTextCollectionReady){if(this.searchString)if(this.clearAllOccurrences(),0!==this.currentOccurrence?(this.searchIndex=this.searchIndex+1,this.areAllOccurencesSearched()&&!this.isMessagePopupOpened&&this.onMessageBoxOpen()):(this.searchIndex=0,this.currentOccurrence+=1,e=!0,this.getSearchCountText(),-1===this.searchedOccurrences.indexOf(this.currentOccurrence)&&this.searchedOccurrences.push(this.currentOccurrence),1===this.searchedOccurrences.length&&this.pdfViewer.fireTextSearchStart(this.searchString,this.isMatchCase)),this.searchMatches[this.searchPageIndex]){if(this.searchIndex>=this.searchMatches[this.searchPageIndex].length)this.searchIndex=0,this.searchPageIndex=this.findNextPageWithText(this.searchPageIndex),this.pdfViewerBase.pageCount>0?this.initSearch(this.searchPageIndex,!1):(this.initSearch(this.searchPageIndex,!0),this.isMessagePopupOpened||this.onMessageBoxOpen(),this.pdfViewerBase.updateScrollTop(this.searchPageIndex)),this.showLoadingIndicator(!0);else{this.highlightSearchedTexts(this.searchPageIndex,!1,void 0);var i=this.pdfViewerBase.getElement("_searchtext_"+this.searchPageIndex+"_"+this.searchIndex);t.isNullOrUndefined(i)||this.isScrollPages(i)&&this.pdfViewerBase.updateScrollTop(this.searchPageIndex),this.showLoadingIndicator(!1)}this.highlightOthers(!0),this.currentOccurrence<=this.searchCount&&!this.isMessagePopupOpened&&(this.currentOccurrence===this.searchCount?this.currentOccurrence=1:e||(this.currentOccurrence=this.currentOccurrence+1),this.searchCountEle&&this.isSingleSearch&&(this.getSearchCountText(),-1===this.searchedOccurrences.indexOf(this.currentOccurrence)&&this.searchedOccurrences.push(this.currentOccurrence),this.adjustInputContainerWidth()))}else this.searchMatches[this.searchPageIndex]||this.isMessagePopupOpened?this.isMessagePopupOpened||this.initiateTextSearch(this.searchInput.value):this.pdfViewerBase.pageCount>0&&this.initSearch(this.searchPageIndex,!1);else this.initiateTextSearch(this.searchInput.value);var n=this.pdfViewerBase.getElement("_searchtext_"+this.searchPageIndex+"_"+this.searchIndex);t.isNullOrUndefined(n)||this.scrollToSearch(n)}else this.clearAllOccurrences(),this.areAllOccurencesSearched()&&this.onMessageBoxOpen(),this.isMessagePopupOpened||(0!==this.currentOccurrence&&(this.searchIndex=this.searchIndex+1),this.currentOccurrence+1>this.searchCount?this.currentOccurrence=1:this.currentOccurrence=this.currentOccurrence+1,-1===this.searchedOccurrences.indexOf(this.currentOccurrence)&&this.searchedOccurrences.push(this.currentOccurrence),this.getSearchCountText(),this.hightlightSearchedTexts(this.searchPageIndex))},n.prototype.findNextPageWithText=function(e,t){if(t&&(this.isInitialSearch=!1,this.searchMatches[parseInt(e.toString(),10)]&&this.searchMatches[parseInt(e.toString(),10)].length>0))return e;for(var i=1;i<this.pdfViewerBase.pageCount;i++){var n=(e+i)%this.pdfViewerBase.pageCount;if(this.searchMatches[parseInt(n.toString(),10)]&&this.searchMatches[parseInt(n.toString(),10)].length>0)return this.searchedOccurrences.length!==this.searchCount||t?n:n=this.startSearchPageIndex}return e},n.prototype.findFirstNonEmptyPage=function(){for(var e=0;e<this.pdfViewerBase.pageCount;e++)if(this.searchMatches[parseInt(e.toString(),10)]&&this.searchMatches[parseInt(e.toString(),10)].length>0)return e;return null},n.prototype.prevSearch=function(){if(eo.push(this.searchPageIndex),this.isPrevSearch=!0,this.isTextSearch=!0,this.isSearchText=!1,this.isDocumentTextCollectionReady)if(this.searchString)this.clearAllOccurrences(),this.searchIndex=this.searchIndex-1,0===this.currentOccurrence&&(this.currentOccurrence=this.searchCount+1),this.areAllOccurencesSearched()&&!this.isMessagePopupOpened&&this.onMessageBoxOpen(),this.isMessagePopupOpened||(this.searchIndex<0?(this.searchPageIndex=this.findPreviousPageWithText(),this.initSearch(this.searchPageIndex,!1),this.showLoadingIndicator(!0)):(this.highlightSearchedTexts(this.searchPageIndex,!1,void 0),this.showLoadingIndicator(!1)),this.highlightOthers(!0)),this.currentOccurrence-1>=0&&!this.isMessagePopupOpened&&(this.currentOccurrence-1==0?this.currentOccurrence=this.searchCount:this.currentOccurrence=this.currentOccurrence-1,this.searchCountEle&&this.isSingleSearch&&(this.getSearchCountText(),-1===this.searchedOccurrences.indexOf(this.currentOccurrence)&&this.searchedOccurrences.push(this.currentOccurrence),1===this.searchedOccurrences.length&&this.pdfViewer.fireTextSearchStart(this.searchString,this.isMatchCase),this.adjustInputContainerWidth()));else{this.searchIndex=this.searchIndex-1,this.searchPageIndex=this.searchPageIndex-1<0?this.pdfViewerBase.pageCount-1:this.searchPageIndex-1;var e=this.searchInput.value;this.textSearch(e)}else if(this.clearAllOccurrences(),this.areAllOccurencesSearched()&&this.onMessageBoxOpen(),!this.isMessagePopupOpened){if(0!==this.currentOccurrence&&(this.searchIndex=this.searchIndex-1),this.currentOccurrence-1<=0){this.currentOccurrence=this.searchCount;var i=Object.keys(this.getSearchTextDetails).pop();this.pdfViewerBase.updateScrollTop(Number(i))}else this.currentOccurrence=this.currentOccurrence-1;-1===this.searchedOccurrences.indexOf(this.currentOccurrence)&&this.searchedOccurrences.push(this.currentOccurrence),this.getSearchCountText(),this.hightlightSearchedTexts(this.searchPageIndex)}var n=this.pdfViewerBase.getElement("_searchtext_"+this.searchPageIndex+"_"+this.searchIndex);t.isNullOrUndefined(n)||this.scrollToSearch(n)},n.prototype.scrollToSearch=function(e){var t={y:-100,x:-100};this.isScrollPages(e)&&this.scrollToSearchStr(e,t)},n.prototype.isScrollPages=function(e){var i=this.pdfViewer.element.getBoundingClientRect(),n=e.getBoundingClientRect(),o=this.pdfViewer.enableToolbar&&!t.isNullOrUndefined(this.pdfViewer.toolbarModule)?this.pdfViewer.toolbar.toolbarElement.getBoundingClientRect().height:0;return!(n.top>=i.top+o&&n.left>=i.left&&n.bottom<=i.bottom&&n.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&n.right<=i.right)},n.prototype.findPreviousPageWithText=function(){for(var e=this.searchPageIndex,t=1;t<this.pdfViewerBase.pageCount;t++){var i=(e-t+this.pdfViewerBase.pageCount)%this.pdfViewerBase.pageCount;if(this.searchMatches[parseInt(i.toString(),10)]&&this.searchMatches[parseInt(i.toString(),10)].length>0)return this.searchedOccurrences.length===this.searchCount?i=0:i}return e},n.prototype.initSearch=function(e,i,n){var o=this.pdfViewerBase.getStoredData(e,!0),r=null,a=null,s=null;if(n){if(0!==this.documentTextCollection.length){var l=this.documentTextCollection[parseInt(e.toString(),10)][parseInt(e.toString(),10)],d=l.pageText?l.pageText:l.PageText;this.documentTextCollection[parseInt(e.toString(),10)]&&l&&this.getSearchTextContent(e,this.searchString,d,a,i,this.documentTextCollection[parseInt(e.toString(),10)])}}else o?(r=o.pageText,a=o.textContent,s=this.pdfViewerBase.textLayer.characterBound[parseInt(e.toString(),10)],this.textContents[parseInt(e.toString(),10)]=a,this.getPossibleMatches(e,this.searchString,r,a,i,s),this.getSearchCountText()):i||t.isNullOrUndefined(e)||this.createRequestForSearch(e)},n.prototype.getPossibleMatches=function(e,i,n,o,r,a){var s,l=n,d=i,A=l.replace(/(\s\r\n)/gm," ").replace(/(\r\n)/gm," "),h=n.replace(/(\s\r\n)/gm,"  ").replace(/(\r\n)/gm," "),p=A.replace(/[^a-zA-Z0-9]+/g," "),c=i.length;this.isMatchCase||(d=i.toLowerCase(),l=n.toLowerCase(),A=A.toLowerCase(),h=h.toLowerCase(),p=p.toLowerCase());for(var g=[],u=[],f=-c,m=-c,w=-c,C=-c,B=-c;(0!==f||0===f)&&""!==d&&" "!==d&&d;){if(this.isExactMatch){var S=void 0,y=i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),I=new RegExp("(?<!\\w)"+y+"(?!\\w)","g");for(S=I.exec(l);null!==S;)g.push(S.index),S=I.exec(l);break}f=l.indexOf(d,f+c);n.substring(0,f);var E=0;if(!this.isMatchCase&&/[^\u0000-\u007F]/.test(n)&&-1!==f&&(f-=E=l.substring(0,f+c).length-l.substring(0,f+c).replace(/[\u0300-\u036f]/g,"").length),-1!==d.indexOf(" ")){var v=i.replace(" ","\r\n");m=l.indexOf(v,m+c),(m=-1)<=-1||m<f&&g.push(m)}if(f<=-1&&m<=-1)break;f<=-1||g.push(f),m>f&&!(m<=-1)&&g.push(m),E>0&&(f+=E)}if(0===g.length){if(w=A.indexOf(d,w+c),C=h.indexOf(d,C+c),B=p.indexOf(d,B+c),-1!==w){f=-(s=this.correctLinetext(i,f,l))[0].length;for(b=0;b<s.length;b++)f=l.indexOf(s[parseInt(b.toString(),10)].trim(),f+(void 0===s[b-1]?s[0].length:s[b-1].length)),u.push(f),u.length>1&&(u[1]-(u[0]+s[0].length)<=3?(g.push(u),this.searchMatches[parseInt(e.toString(),10)]=g):(b=-1,f=u[0]+s[0].length,u.splice(0,u.length)))}else if(-1!==B){f=-(s=this.correctLinetext(i,f,l))[0].length;for(b=0;b<s.length;b++)f=l.indexOf(s[parseInt(b.toString(),10)].trim(),f+(void 0===s[b-1]?s[0].length:s[b-1].length)),u.push(f),u.length>1&&(u[1]-(u[0]+s[0].length)<=3?(g.push(u),this.searchMatches[parseInt(e.toString(),10)]=g):(b=-1,f=u[0]+s[0].length,u.splice(0,u.length)))}else if(-1!==C){f=-(s=this.correctLinetext(i,f,l))[0].length;for(var b=0;b<s.length;b++)f=l.indexOf(s[parseInt(b.toString(),10)].trim(),f+(void 0===s[b-1]?s[0].length:s[b-1].length)),u.push(f),u.length>1&&(u[1]-(u[0]+s[0].length)<=3?(g.push(u),this.searchMatches[parseInt(e.toString(),10)]=g):(b=-1,f=u[0]+s[0].length,u.splice(0,u.length)))}g.length>1&&g.splice(1,g.length)}if(this.searchMatches&&g.length>0&&(this.searchMatches[parseInt(e.toString(),10)]=g),r||(-1===this.searchedPages.indexOf(e)&&(this.searchedPages.push(e),this.startIndex=this.searchedPages[0]),this.updateSearchInputIcon(!1)),this.searchMatches&&this.searchMatches[parseInt(e.toString(),10)]&&0!==this.searchMatches[parseInt(e.toString(),10)].length)r||(this.isPrevSearch&&(this.searchIndex=this.searchMatches[parseInt(e.toString(),10)].length-1),this.pdfViewerBase.currentPageNumber-1!==this.searchPageIndex?this.searchMatches.length>0&&-1===this.searchIndex&&this.searchPageIndex===this.currentSearchIndex?(this.isMessagePopupOpened||this.isSearchText||this.onMessageBoxOpen(),this.searchPageIndex=this.getSearchPage(this.pdfViewerBase.currentPageNumber-1),this.searchedPages=[this.searchPageIndex]):this.isPrevSearch&&this.searchMatches&&this.searchMatches.length>0&&this.searchMatches[this.searchPageIndex]&&this.searchMatches[this.searchPageIndex].length>0&&this.searchedPages.length===this.pdfViewerBase.pageCount&&this.startIndex-1===this.searchPageIndex?(this.isMessagePopupOpened||this.onMessageBoxOpen(),this.searchedPages=[this.startIndex]):eo[0]===this.searchPageIndex&&this.areAllOccurencesSearched()&&(this.isMessagePopupOpened||this.onMessageBoxOpen()):this.searchMatches&&this.searchMatches[this.searchPageIndex]&&this.searchMatches[this.searchPageIndex].length>0&&this.searchedPages.length===this.pdfViewerBase.pageCount&&this.startIndex===this.searchPageIndex&&this.pdfViewerBase.pageCount>1&&(this.isMessagePopupOpened||this.onMessageBoxOpen(),this.searchedPages=[this.startIndex])),this.highlightSearchedTexts(e,r,s);else if(!r)if(this.isPrevSearch?this.searchPageIndex=this.searchPageIndex-1<0?this.pdfViewerBase.pageCount-1:this.searchPageIndex-1:this.searchPageIndex=this.searchPageIndex+1<this.pdfViewerBase.pageCount?this.searchPageIndex+1:0,-1===this.searchedPages.indexOf(this.searchPageIndex)&&this.searchedPages.length!==this.pdfViewerBase.pageCount)this.showLoadingIndicator(!0),this.searchPageIndex=this.findNextPageWithText(this.searchPageIndex,!0),this.initSearch(this.searchPageIndex,!1);else{var V=this.getSearchPage(e);this.searchMatches&&t.isNullOrUndefined(this.searchMatches[this.searchPageIndex])&&this.searchedPages.length===this.pdfViewerBase.pageCount?(this.isMessagePopupOpened||this.onMessageBoxOpen(),this.pdfViewerBase.updateScrollTop(this.startIndex)):this.searchMatches&&this.searchMatches.length>0&&(0===this.searchIndex||-1===this.searchIndex)&&V===this.currentSearchIndex?(this.isPrevSearch?(this.isMessagePopupOpened||this.onMessageBoxOpen(),this.searchPageIndex=V,this.searchedPages=[V],this.searchIndex=-1):(this.isMessagePopupOpened||0===this.pdfViewerBase.currentPageNumber||this.isSearchText||this.onMessageBoxOpen(),this.searchPageIndex=V,this.searchedPages=[V],this.searchIndex=0),this.highlightSearchedTexts(this.searchPageIndex,r,void 0)):this.searchMatches&&this.searchMatches[this.searchPageIndex]&&this.searchMatches[this.searchPageIndex].length>0&&this.searchedPages.length===this.pdfViewerBase.pageCount&&(this.isMessagePopupOpened||this.onMessageBoxOpen(),this.searchPageIndex=this.startIndex,this.searchedPages=[this.searchPageIndex],this.searchIndex=0,this.pdfViewerBase.updateScrollTop(this.startIndex),this.highlightSearchedTexts(this.searchPageIndex,r,void 0))}},n.prototype.correctLinetext=function(e,i,n){var o=[],r=e.split(/[" "]+/);this.isMatchCase||(r=e.toLowerCase().split(/\s+/)),i=0;var a="",s=n.replace(/ \r\n/g," ");s=s.replace(/\r\n/g," "),/[\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]/.test(s)&&(s=s.replace(/[\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]/g," ")),s=s.replace(/[^a-zA-Z0-9 ]/g,""),e=e.replace(/[^a-zA-Z0-9 ]/g,"");var l=s.match(e);if(this.isMatchCase||(l=s.match(e.toLowerCase())),t.isNullOrUndefined(l))return o;for(var d=l=n.slice(l.index,n.length),A=0;A<r.length;A++){var h=a+r[parseInt(A.toString(),10)];i=n.indexOf(h,i),("\n"===(d=d?d.replace(r[A-1],""):n.replace(r[A-1],""))[d.indexOf(r[parseInt(A.toString(),10)])-1]&&"\n"===d[d.indexOf(r[A+1])-1]||"\n"===d[d.indexOf(r[parseInt(A.toString(),10)])-1]&&t.isNullOrUndefined(d[d.indexOf(r[A+1])-1]))&&(i=-1,""===a&&(a=r[parseInt(A.toString(),10)],A+=1)),-1!==i?(a+=r[parseInt(A.toString(),10)]+" ",A===r.length-1&&o.push(a)):(o.push(a),a=r[parseInt(A.toString(),10)]+" ","\n"===d[d.indexOf(r[parseInt(A.toString(),10)])-1]&&"\n"===d[d.indexOf(r[A+1])-1]&&(o.push(a),a=r[A+1]+" ",d=d?d.replace(r[A-1],""):n.replace(r[A-1],""),A+=1),A===r.length-1&&o.push(a))}return o},n.prototype.getSearchTextContent=function(e,t,i,n,o,r){var a=i,s=t,l=t.length;this.isMatchCase||(s=t.toLowerCase(),a=i.toLowerCase());for(var d=[],A=-l,h=-l;0!==A&&""!==s&&" "!==s&&s;){if(A=a.indexOf(s,A+l),-1!==s.indexOf(" ")){var p=t.replace(" ","\r\n");(h=a.indexOf(p,h+l))<=-1||h<A&&d.push(h)}if(A<=-1&&h<=-1)break;A<=-1||d.push(A),h>A&&!(h<=-1)&&d.push(h)}0!==d.length&&(this.searchCount=this.searchCount+d.length),this.searchMatches&&d.length>0&&(this.searchMatches[parseInt(e.toString(),10)]=d)},n.prototype.getSearchPage=function(e){var t=null;if(this.isPrevSearch){for(i=e;i>=0;i--)if(i!==e&&this.searchMatches[parseInt(i.toString(),10)]){t=i;break}if(!t)for(n=this.pdfViewerBase.pageCount-1;n>e;n--)if(this.searchMatches[parseInt(n.toString(),10)]){t=n;break}}else{for(var i=e;i<this.pdfViewerBase.pageCount;i++)if(i!==e&&this.searchMatches[parseInt(i.toString(),10)]){t=i;break}if(!t)if(0===e)t=e;else for(var n=0;n<e;n++)if(this.searchMatches[parseInt(n.toString(),10)]){t=n;break}}return t},n.prototype.areAllNonEmptyPagesSearched=function(){for(var e=[],t=0;t<this.searchMatches.length;t++)this.searchMatches[parseInt(t.toString(),10)]&&this.searchMatches[parseInt(t.toString(),10)].length>0&&e.push(t);for(var i=0,n=e;i<n.length;i++){var o=n[i];if(-1===this.searchedPages.indexOf(o))return!1}return!0},n.prototype.areAllOccurencesSearched=function(){return this.searchedOccurrences.length===this.searchCount},n.prototype.highlightSearchedTexts=function(e,i,n){var o,r=this.searchMatches[parseInt(e.toString(),10)],a={y:-100,x:-100},s=this.searchString,l=this.pdfViewerBase.textLayer.characterBound[parseInt(e.toString(),10)];if(i&&this.pdfViewerBase.currentPageNumber-1!==this.searchPageIndex&&this.searchMatches.length>0&&this.getSearchPage(this.pdfViewerBase.currentPageNumber-1),l&&void 0!==r){for(var d=0;d<r.length;d++){if(void 0!==r[parseInt(d.toString(),10)].length&&void 0!==n)if(d===this.searchIndex&&e===this.searchPageIndex)for(A=0;A<n.length;A++)o="e-pv-search-text-highlight",this.addDivForSearch(d,e,l,n[parseInt(A.toString(),10)].trim().length,o,A);else for(var A=0;A<n.length;A++)o="e-pv-search-text-highlightother",this.addDivForSearch(d,e,l,n[parseInt(A.toString(),10)].trim().length,o,A);else o=d===this.searchIndex&&e===this.searchPageIndex?"e-pv-search-text-highlight":"e-pv-search-text-highlightother";t.isNullOrUndefined(r[parseInt(d.toString(),10)].length)&&this.addDivForSearch(d,e,l,this.searchString.length,o,void 0)}if(this.searchString=s,e===this.searchPageIndex&&!i){var h=this.pdfViewerBase.getElement("_searchtext_"+e+"_"+this.searchIndex);if(h){c=this.getScrollElement(h);this.isScrollPages(c)&&this.scrollToSearchStr(h,a)}else{this.pdfViewerBase.updateScrollTop(e);var p=this.pdfViewerBase.getElement("_searchtext_"+e+"_"+this.searchIndex);if(p){var c=this.getScrollElement(p);this.scrollToSearchStr(c,a)}}}}},n.prototype.addDivForSearch=function(e,i,n,o,r,a){var s=this.pdfViewerBase.getElement("_textLayer_"+i);t.isNullOrUndefined(s)&&"e-pv-search-text-highlight"===r&&this.pdfViewer.navigation&&this.pdfViewer.navigation.goToPage(i+1);for(var l,d=l=void 0!==this.searchMatches[parseInt(i.toString(),10)][parseInt(e.toString(),10)].length?this.searchMatches[parseInt(i.toString(),10)][parseInt(e.toString(),10)][""+a]:this.searchMatches[parseInt(i.toString(),10)][parseInt(e.toString(),10)],A=0;l<d+o;)l=this.addDivElement(l,n,o,r,e,i,d,A,a),A++;"e-pv-search-text-highlight"===r&&this.showLoadingIndicator(!1)},n.prototype.addDivElement=function(e,t,i,n,o,r,a,s,l){var d=0,A=0,h=0,p=0,c=!1,g=0;t[parseInt(e.toString(),10)]&&(p=t[parseInt(e.toString(),10)].X,h=t[parseInt(e.toString(),10)].Y,g=t[parseInt(e.toString(),10)].Rotation);var u=0;for(e-a!=0&&(u=e-a,i+=1),u=u;u<i;u++)t[parseInt(e.toString(),10)]&&(p>(m=t[parseInt(e.toString(),10)]).X+m.Width&&(c=!0),d=d>(w=(h=h<m.Y?h:m.Y)<m.Y?m.Y-h:h-m.Y)+m.Height?d:w+m.Height,e++);var f=!1;if(c){var m=t[a+i-1];p=m.X,A=t[parseInt(a.toString(),10)].X-t[a+i-1].X;var w=(h=h<m.Y?h:m.Y)<m.Y?m.Y-h:h-m.Y;d=d>w+m.Height?d:w+m.Height;for(var C=a>0?t[a-1].Y-t[parseInt(a.toString(),10)].Y:0,B=a+i-1;B>=a;B--)0===(m=t[parseInt(B.toString(),10)]).Width&&(C=m.Y-t[B-1].Y);A+=C}else if(a+i!==e)f=!0,t[e-1]&&(A=t[e-1].X-p);else{f=!1;var S=this.pdfViewerBase.clientSideRendering?this.pdfViewerBase.getLinkInformation(r,!0):this.pdfViewerBase.getStoredData(r,!0),y=null;if(S)y=S.pageText;else if(this.pdfViewer.isExtractText&&0!==this.documentTextCollection.length){var I=this.documentTextCollection[parseInt(r.toString(),10)][parseInt(r.toString(),10)];y=I.pageText?I.pageText:I.PageText}t[parseInt(e.toString(),10)]?A=(!y||""!==y[parseInt(e.toString(),10)]&&" "!==y[parseInt(e.toString(),10)]&&"\r"!==y[parseInt(e.toString(),10)]&&"\n"!==y[parseInt(e.toString(),10)]||0!==t[parseInt(e.toString(),10)].Width)&&(""!==t[parseInt(e.toString(),10)].Text&&" "!==t[parseInt(e.toString(),10)].Text&&"\r"!==t[parseInt(e.toString(),10)].Text&&"\n"!==t[parseInt(e.toString(),10)].Text||0!==t[parseInt(e.toString(),10)].Width)?t[parseInt(e.toString(),10)].X-p:t[e-1].X-p+t[e-1].Width:t[e-1]&&(A=t[e-1].X-p+t[e-1].Width)}return this.createSearchTextDiv(o,r,d,A,h,p,n,f,s,l,g),e},n.prototype.createSearchTextDiv=function(e,i,n,o,r,a,s,l,d,A,h){var p="_searchtext_"+i+"_"+e;l&&(p+="_"+d);var c=document.getElementsByClassName("e-pv-search-text-highlight");if(void 0!==A&&this.pdfViewerBase.getElement(p)&&!c[parseInt(A.toString(),10)]){var g=t.createElement("div",{id:this.pdfViewer.element.id+p+"_"+A}),u=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)];if(this.calculateBounds(g,n,o,r,a,u,h),g.classList.add(s),"e-pv-search-text-highlight"===s){g.style.backgroundColor=""===this.pdfViewer.textSearchColorSettings.searchHighlightColor?"#fdd835":this.pdfViewer.textSearchColorSettings.searchHighlightColor;f={left:a,top:r,width:o,height:n};this.pdfViewer.fireTextSearchHighlight(this.searchString,this.isMatchCase,f,i+1)}else"e-pv-search-text-highlightother"===s&&(g.style.backgroundColor=""===this.pdfViewer.textSearchColorSettings.searchColor?"#8b4c12":this.pdfViewer.textSearchColorSettings.searchColor);m=this.pdfViewerBase.getElement("_textLayer_"+i);g.style.zIndex=this.searchTextDivzIndex,m&&m.appendChild(g)}if(!this.pdfViewerBase.getElement(p)){var g=t.createElement("div",{id:this.pdfViewer.element.id+p}),u=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)];if(this.calculateBounds(g,n,o,r,a,u),g.classList.add(s),"e-pv-search-text-highlight"===s){g.style.backgroundColor=""===this.pdfViewer.textSearchColorSettings.searchHighlightColor?"#fdd835":this.pdfViewer.textSearchColorSettings.searchHighlightColor;var f={left:a,top:r,width:o,height:n};this.pdfViewer.fireTextSearchHighlight(this.searchString,this.isMatchCase,f,i+1)}else"e-pv-search-text-highlightother"===s&&(g.style.backgroundColor=""===this.pdfViewer.textSearchColorSettings.searchColor?"#8b4c12":this.pdfViewer.textSearchColorSettings.searchColor);var m=this.pdfViewerBase.getElement("_textLayer_"+i);g.style.zIndex=this.searchTextDivzIndex,m&&m.appendChild(g)}},n.prototype.calculateBounds=function(e,t,i,n,o,r,a){0===r.rotation||4===r.rotation||2===r.rotation?(e.style.height=Math.ceil(t)*this.pdfViewerBase.getZoomFactor()+"px",e.style.width=i*this.pdfViewerBase.getZoomFactor()+"px",2===r.rotation?(e.style.top=(r.height-n-t)*this.pdfViewerBase.getZoomFactor()+"px",e.style.left=Math.ceil(r.width-o-i)*this.pdfViewerBase.getZoomFactor()+"px"):(e.style.top=n*this.pdfViewerBase.getZoomFactor()+"px",e.style.left=o*this.pdfViewerBase.getZoomFactor()+"px")):1===r.rotation?270===a?(e.style.height=t*this.pdfViewerBase.getZoomFactor()+"px",e.style.width=i*this.pdfViewerBase.getZoomFactor()+"px",e.style.left=o*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=n*this.pdfViewerBase.getZoomFactor()+"px"):(e.style.height=i*this.pdfViewerBase.getZoomFactor()+"px",e.style.width=t*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=o*this.pdfViewerBase.getZoomFactor()+"px",e.style.left=(r.height-n-t)*this.pdfViewerBase.getZoomFactor()+"px"):3===r.rotation&&(e.style.height=i*this.pdfViewerBase.getZoomFactor()+"px",e.style.width=t*this.pdfViewerBase.getZoomFactor()+"px",e.style.left=(r.width-r.height+n)*this.pdfViewerBase.getZoomFactor()+"px",e.style.top=(r.height-o-i)*this.pdfViewerBase.getZoomFactor()+"px")},n.prototype.isClassAvailable=function(){for(var e=!1,t=0;t<this.tempElementStorage.length;t++)if(this.tempElementStorage[parseInt(t.toString(),10)].classString&&("e-pv-search-text-highlight"===this.tempElementStorage[parseInt(t.toString(),10)].classString||"e-pv-search-text-highlightother"===this.tempElementStorage[parseInt(t.toString(),10)].classString)){e=!0;break}return e},n.prototype.getScrollElement=function(e){var t=e;if(e.childNodes.length>0)for(var i=0;i<e.childNodes.length;i++)e.childNodes[parseInt(i.toString(),10)].classList&&e.childNodes[parseInt(i.toString(),10)].classList.contains("e-pv-search-text-highlight")&&(t=e.childNodes[parseInt(i.toString(),10)]);return t},n.prototype.scrollToSearchStr=function(e,i){for(var n=e.offsetParent,o=e.offsetTop+e.clientTop,r=e.offsetLeft+e.clientLeft;n.id!==this.pdfViewerBase.viewerContainer.id;)o+=n.offsetTop,r+=n.offsetLeft,n=n.offsetParent;i&&(o+=i.y,r+=i.x,t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?n.scrollLeft=r:this.pdfViewerBase.getZoomFactor()>1.5&&(n.scrollLeft=r)),n.scrollTop=o,this.pdfViewerBase.updateMobileScrollerPosition()},n.prototype.resizeSearchElements=function(e){for(var t=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+"_searchtext_"+e+'"]'),i=0;i<t.length;i++){var n=t[parseInt(i.toString(),10)],o=1;this.pdfViewer.magnificationModule&&(o=this.pdfViewer.magnificationModule.previousZoomFactor);var r=e+"_"+o+"_"+this.pdfViewerBase.getZoomFactor();n.getAttribute("name")!==r&&(n.style.width=parseFloat(n.style.width)/o*this.pdfViewerBase.getZoomFactor()+"px",n.style.height=parseFloat(n.style.height)/o*this.pdfViewerBase.getZoomFactor()+"px",n.style.top=parseFloat(n.style.top)/o*this.pdfViewerBase.getZoomFactor()+"px",n.style.left=parseFloat(n.style.left)/o*this.pdfViewerBase.getZoomFactor()+"px",n.setAttribute("name",r))}},n.prototype.highlightOtherOccurrences=function(e){this.initSearch(e,!0)},n.prototype.highlightOthers=function(e){for(var t=this.getIndexes(),i=parseFloat(t.lowerPageValue.toString()),n=parseFloat(t.higherPageValue.toString()),o=i;o<=n;o++)this.searchMatches[parseInt(o.toString(),10)]&&this.searchMatches[parseInt(o.toString(),10)].length>0&&this.highlightOtherOccurrences(o);e&&this.showLoadingIndicator(!1)},n.prototype.clearAllOccurrences=function(){for(var e=document.querySelectorAll('div[id*="'+this.pdfViewer.element.id+'_searchtext_"]'),t=0;t<e.length;t++)e[parseInt(t.toString(),10)].parentElement.removeChild(e[parseInt(t.toString(),10)])},n.prototype.getIndexes=function(){var e=this.pdfViewerBase.currentPageNumber-3;e=e>0?e:0;var t=this.pdfViewerBase.currentPageNumber+1;return t=t<this.pdfViewerBase.pageCount?t:this.pdfViewerBase.pageCount-1,{lowerPageValue:e,higherPageValue:t}},n.prototype.applyTextSelection=function(){if(this.pdfViewer.textSelectionModule&&!this.pdfViewerBase.isTextSelectionDisabled)for(var e=this.getIndexes(),t=parseFloat(e.lowerPageValue.toString()),i=parseFloat(e.higherPageValue.toString()),n=t;n<=i;n++)this.pdfViewer.textSelectionModule.applySelectionRangeOnScroll(n)},n.prototype.resetTextSearch=function(e){void 0===e&&(e=!1),this.resetVariables(),this.onTextSearchClose(),this.searchPageIndex=null,this.searchIndex=0,this.updateSearchInputIcon(!0),this.enableNextButton(!1),this.enablePrevButton(!1),e&&(this.documentTextCollection=[]),this.isTextRetrieved=!1,this.isTextSearched=!1,this.isSearchText=!1,this.searchRequestHandler&&this.searchRequestHandler.clear(),this.searchCount=0,this.searchString=""},n.prototype.onTextSearchClose=function(){this.isPrevSearch=!1,this.isTextSearch=!1,this.pdfViewerBase.pageCount>0&&this.clearAllOccurrences()},n.prototype.createRequestForSearch=function(e){var t=this,n=this.pdfViewer.element.clientHeight,o=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width,r=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height,a=this.pdfViewerBase.getTileCount(o,r),s=816>=o?1:a,l=816>=o?1:a,d=!1,A=this.pdfViewer.tileRenderingSettings;A.enableTileRendering&&A.x>0&&A.y>0&&(s=816>=o?1:A.x,l=816>=o?1:A.y),s>1&&l>1&&(d=!0);for(var h=this,p=0;p<s;p++)!function(r){for(var A=0;A<l;A++)!function(A){var p,c,g={xCoordinate:r,yCoordinate:A,pageNumber:e,viewPortWidth:816,viewPortHeight:n,documentId:t.pdfViewerBase.getDocumentId(),hashId:t.pdfViewerBase.hashId,zoomFactor:t.pdfViewerBase.getZoomFactor(),tilecount:a,action:"Search",elementId:t.pdfViewer.element.id,uniqueId:t.pdfViewerBase.documentId,tileXCount:s,tileYCount:l};h.pdfViewerBase.jsonDocumentId&&(g.documentId=h.pdfViewerBase.jsonDocumentId);var u=h.pdfViewerBase.retrieveCurrentZoomFactor();if(h.searchRequestHandler=new Pi(h.pdfViewer),h.searchRequestHandler.url=h.pdfViewer.serviceUrl+"/"+h.pdfViewer.serverActionSettings.renderPages,h.searchRequestHandler.responseType="json",h.pdfViewerBase.clientSideRendering||h.searchRequestHandler.send(g),h.searchRequestHandler.onSuccess=function(i){var n=i.data;if(n){if("object"!=typeof n)try{n=JSON.parse(n)}catch(e){t.pdfViewerBase.onControlError(500,n,this.pdfViewer.serverActionSettings.renderPages),n=null}n&&t.searchRequestOnSuccess(n,t,816,o,d,e,r,A,s,l)}},h.searchRequestHandler.onFailure=function(e){t.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,this.pdfViewer.serverActionSettings.renderPages)},h.searchRequestHandler.onError=function(e){t.pdfViewerBase.openNotificationPopup(),t.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,this.pdfViewer.serverActionSettings.renderPages)},h.pdfViewerBase.clientSideRendering){var f=h.pdfViewerBase.documentId+"_"+e+"_textDetails",m=!h.pdfViewerBase.pageTextDetails||!h.pdfViewerBase.pageTextDetails[""+f],w=new i.Rect(0,0,0,0),C=new i.Rect(0,0,0,0),B=h.pdfViewer.pdfRenderer.loadedDocument.getPage(e);B&&B._pageDictionary&&B._pageDictionary._map&&B._pageDictionary._map.CropBox&&(p=B._pageDictionary._map.CropBox,w.x=p[0],w.y=p[1],w.width=p[2],w.height=p[3]),B&&B._pageDictionary&&B._pageDictionary._map&&B._pageDictionary._map.MediaBox&&(c=B._pageDictionary._map.MediaBox,C.x=c[0],C.y=c[1],C.width=c[2],C.height=c[3]),816>=o||!h.pdfViewer.tileRenderingSettings.enableTileRendering?h.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:e,message:"renderPageSearch",zoomFactor:t.pdfViewerBase.getZoomFactor(),isTextNeed:m,textDetailsId:f,cropBoxRect:w,mediaBoxRect:C},Et.High):h.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:e,message:"renderImageAsTileSearch",zoomFactor:u,tileX:r,tileY:A,tileXCount:s,tileYCount:l,isTextNeed:m,textDetailsId:f,cropBoxRect:w,mediaBoxRect:C},Et.High),h.pdfViewerBase.pdfViewerRunner.onMessage("imageRenderedSearch,renderTileImageSearch",function(e){switch(e.data.message){case"imageRenderedSearch":if("imageRenderedSearch"===e.data.message){var i=document.createElement("canvas"),n=e.data,a=n.value,h=n.width,p=n.height,c=n.pageIndex;i.width=h,i.height=p,(T=(F=i.getContext("2d")).createImageData(h,p)).data.set(a),F.putImageData(T,0,0);k=i.toDataURL();t.pdfViewerBase.releaseCanvas(i);var g=e.data.textBounds,u=e.data.textContent,f=e.data.pageText,m=e.data.rotation,w=e.data.characterBounds,C=t.pdfViewer.pdfRendererModule.getHyperlinks(c),B={image:k,pageNumber:c,uniqueId:t.pdfViewerBase.documentId,pageWidth:h,zoomFactor:e.data.zoomFactor,hyperlinks:C.hyperlinks,hyperlinkBounds:C.hyperlinkBounds,linkAnnotation:C.linkAnnotation,linkPage:C.linkPage,annotationLocation:C.annotationLocation,characterBounds:w};if(e.data.isTextNeed)B.textBounds=g,B.textContent=u,B.rotation=m,B.pageText=f,t.pdfViewerBase.storeTextDetails(c,g,u,f,m,w);else{L=JSON.parse(t.pdfViewerBase.pageTextDetails[""+e.data.textDetailsId]);B.textBounds=L.textBounds,B.textContent=L.textContent,B.rotation=L.rotation,B.pageText=L.pageText,B.characterBounds=L.characterBounds}if(B&&B.image&&B.uniqueId===t.pdfViewerBase.documentId){t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.renderPages,B);var S=void 0!==B.pageNumber?B.pageNumber:c,y=t.pdfViewerBase.createBlobUrl(B.image.split("base64,")[1],"image/png"),I={image:O=(U=URL||webkitURL).createObjectURL(y),width:B.pageWidth,uniqueId:B.uniqueId,zoomFactor:B.zoomFactor};t.pdfViewerBase.storeImageData(S,I),t.searchRequestOnSuccess(B,t,816,o,d,c,r,A,s,l)}}break;case"renderTileImageSearch":if("renderTileImageSearch"===e.data.message){var i=document.createElement("canvas"),E=e.data,a=E.value,v=E.w,b=E.h,V=E.noTileX,D=E.noTileY,x=E.x,Q=E.y,M=E.pageIndex;i.setAttribute("height",b),i.setAttribute("width",v),i.width=v,i.height=b;var F=i.getContext("2d"),T=F.createImageData(v,b);T.data.set(a),F.putImageData(T,0,0);var k=i.toDataURL();t.pdfViewerBase.releaseCanvas(i);var P=v,N=b,g=e.data.textBounds,u=e.data.textContent,f=e.data.pageText,m=e.data.rotation,w=e.data.characterBounds,R={image:k,noTileX:V,noTileY:D,pageNumber:M,tileX:x,tileY:Q,uniqueId:t.pdfViewerBase.documentId,pageWidth:o,width:P,transformationMatrix:{Values:[1,0,0,1,P*x,N*Q,0,0,0]},zoomFactor:e.data.zoomFactor,characterBounds:w,isTextNeed:e.data.isTextNeed,textDetailsId:e.data.textDetailsId};if(R&&R.image&&R.uniqueId===t.pdfViewerBase.documentId){t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.renderPages,R);S=void 0!==R.pageNumber?R.pageNumber:M;if(0===x&&0===Q){var y=t.pdfViewerBase.createBlobUrl(R.image.split("base64,")[1],"image/png"),I={image:O=(U=URL||webkitURL).createObjectURL(y),width:R.pageWidth,uniqueId:R.uniqueId,tileX:R.tileX,tileY:R.tileY,zoomFactor:R.zoomFactor,transformationMatrix:R.transformationMatrix};if(R.isTextNeed)R.textBounds=g,R.textContent=u,R.rotation=m,R.pageText=f,t.pdfViewerBase.storeTextDetails(M,g,u,f,m,w);else{var L=JSON.parse(t.pdfViewerBase.pageTextDetails[""+R.textDetailsId]);R.textBounds=L.textBounds,R.textContent=L.textContent,R.rotation=L.rotation,R.pageText=L.pageText,R.characterBounds=L.characterBounds}t.pdfViewerBase.storeImageData(S,I,R.tileX,R.tileY)}else{var y=t.pdfViewerBase.createBlobUrl(R.image.split("base64,")[1],"image/png"),U=URL||webkitURL,O=U.createObjectURL(y),I={image:O,width:R.width,uniqueId:R.uniqueId,tileX:R.tileX,tileY:R.tileY,zoomFactor:R.zoomFactor,transformationMatrix:R.transformationMatrix};t.pdfViewerBase.storeImageData(S,I,R.tileX,R.tileY)}t.searchRequestOnSuccess(R,t,816,o,d,M,x,Q,V,D)}}}})}}(A)}(p)},n.prototype.searchRequestOnSuccess=function(e,i,n,o,r,a,s,l,d,A){if(t.isNullOrUndefined(e.pageText)||e.uniqueId!==i.pdfViewerBase.documentId){if(r&&e.uniqueId===i.pdfViewerBase.documentId){i.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.renderPages,e);h=void 0!==e.pageNumber?e.pageNumber:a;i.pdfViewerBase.storeWinData(e,h,e.tileX,e.tileY),s===d-1&&l===A-1&&i.initSearch(a,!1)}}else{this.getSearchCountText(),i.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.renderPages,e);var h=void 0!==e.pageNumber?e.pageNumber:a;n>=o?i.pdfViewerBase.storeWinData(e,h):i.pdfViewerBase.storeWinData(e,h,e.tileX,e.tileY),r?s===d-1&&l===A-1&&(this.isMessagePopupOpened||i.initSearch(a,!1)):this.isMessagePopupOpened||i.initSearch(a,!1)}},n.prototype.getPDFDocumentTexts=function(){var e=50,t=this.pdfViewerBase.pageCount;e>=t&&(e=t),this.createRequestForGetPdfTexts(0,e)},n.prototype.createRequestForGetPdfTexts=function(e,t){var i=this,n={pageStartIndex:e,pageEndIndex:t,documentId:i.pdfViewerBase.getDocumentId(),hashId:i.pdfViewerBase.hashId,action:"RenderPdfTexts",elementId:i.pdfViewer.element.id,uniqueId:i.pdfViewerBase.documentId};if(this.pdfViewerBase.jsonDocumentId&&(n.documentId=this.pdfViewerBase.jsonDocumentId),this.searchRequestHandler=new Pi(this.pdfViewer),this.searchRequestHandler.url=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.renderTexts,this.searchRequestHandler.responseType="json",this.pdfViewerBase.clientSideRendering||this.searchRequestHandler.send(n),this.searchRequestHandler.onSuccess=function(n){var o=n.data;if(o){if("object"!=typeof o)try{o=JSON.parse(o)}catch(e){i.pdfViewerBase.onControlError(500,o,this.pdfViewer.serverActionSettings.renderTexts),o=null}o&&i.pdfTextSearchRequestOnSuccess(o,i,e,t)}},this.searchRequestHandler.onFailure=function(e){i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,this.pdfViewer.serverActionSettings.renderTexts)},this.searchRequestHandler.onError=function(e){i.pdfViewerBase.openNotificationPopup(),i.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,this.pdfViewer.serverActionSettings.renderTexts)},this.pdfViewerBase.clientSideRendering){this.pdfViewer.pdfRendererModule.getDocumentText(n,"pdfTextSearchRequest")}},n.prototype.pdfTextSearchRequestSuccess=function(e,t,i){this.pdfTextSearchRequestOnSuccess(e,this,t,i)},n.prototype.pdfTextSearchRequestOnSuccess=function(e,t,i,n){if(e.documentTextCollection&&e.uniqueId===t.pdfViewerBase.documentId)if(e.isNeedToRender)t.findTextDocumentCollection=this.updateDocumentCollection(t.findTextDocumentCollection,e.documentTextCollection),t.pdfViewer.pdfRendererModule.documentTextCollection=[];else{t.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.renderTexts,e),t.documentTextCollection=this.updateDocumentCollection(t.documentTextCollection,e.documentTextCollection);var o=t.pdfViewerBase.pageCount;n!==o?(i=n,(n+=50)>=o&&(n=o),t.createRequestForGetPdfTexts(i,n)):(t.isTextRetrieved=!0,t.pdfViewer.pdfRendererModule.documentTextCollection=[],t.pdfViewer.fireTextExtractionCompleted(t.documentTextCollection),t.isTextSearched&&t.searchString.length>0&&(t.textSearch(t.searchString),t.isTextSearched=!1))}},n.prototype.updateDocumentCollection=function(e,t){return e&&e.length>0?this.pdfViewer.isVue&&!this.pdfViewer.isVue3?e=this.orderPdfTextCollections(JSON.parse("["+JSON.stringify(e).slice(1,-1)+","+JSON.stringify(t).slice(1,-1)+"]")):(e=t.concat(e),e=this.orderPdfTextCollections(e)):e=this.pdfViewer.isVue&&!this.pdfViewer.isVue3?JSON.parse("["+JSON.stringify(t).slice(1,-1)+"]"):t,e},n.prototype.orderPdfTextCollections=function(e){for(var t=[],i=0;i<e.length;i++)if(0===t.length)t.push(e[parseInt(i.toString(),10)]);else if(parseInt(Object.keys(e[parseInt(i.toString(),10)])[0],10)>parseInt(Object.keys(t[t.length-1])[0],10))t.push(e[parseInt(i.toString(),10)]);else for(var n=0;n<t.length;n++)if(parseInt(Object.keys(e[parseInt(i.toString(),10)])[0],10)<parseInt(Object.keys(t[parseInt(n.toString(),10)])[0],10)){t.splice(n,0,e[parseInt(i.toString(),10)]);break}return t},n.prototype.createSearchBoxButtons=function(e,i){var n=t.createElement("button",{id:this.pdfViewer.element.id+"_"+e,className:"e-btn e-icon-btn e-pv-text-search-btn "+i});n.setAttribute("type","button");var o=t.createElement("span",{id:this.pdfViewer.element.id+"_"+e+"Icon",className:"e-pv-icon-search "+i+"-icon"});return n.disabled=!0,n.appendChild(o),n},n.prototype.enablePrevButton=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(e?this.prevSearchBtn.removeAttribute("disabled"):this.prevSearchBtn&&(this.prevSearchBtn.disabled=!0))},n.prototype.enableNextButton=function(e){t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode||(e?this.nextSearchBtn.removeAttribute("disabled"):this.nextSearchBtn&&(this.nextSearchBtn.disabled=!0))},n.prototype.resetVariables=function(){this.searchedPages=[],this.searchMatches=[],this.searchedOccurrences=[]},n.prototype.resetVariablesTextSearch=function(){this.getSearchTextDetails={},this.isTextSearchHandled=!1},n.prototype.searchButtonClick=function(e,t,i){this.isMessagePopupOpened=!1,e.classList.contains("e-pv-search-icon")?this.initiateTextSearch(t.value,i):e.classList.contains("e-pv-search-close")&&(this.showLoadingIndicator(!1),t.value="",this.resetTextSearch(),this.searchCountEle&&(this.searchCountEle.innerHTML="",this.adjustInputContainerWidth()),t.focus())},n.prototype.updateSearchInputIcon=function(e){t.isBlazor()&&this.searchBtn&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.searchBtn=this.pdfViewerBase.getElement("_search_box-icon").children[0].children[0]),this.searchBtn&&(e?(this.searchBtn.classList.remove("e-pv-search-close"),this.searchBtn.classList.add("e-pv-search-icon")):(this.searchBtn.classList.remove("e-pv-search-icon"),this.searchBtn.classList.add("e-pv-search-close")))},n.prototype.onMessageBoxOpen=function(){var e=this;if(this.pdfViewer.fireTextSearchComplete(this.searchString,this.isMatchCase),this.showLoadingIndicator(!1),this.isMessagePopupOpened=!0,this.pdfViewer.showNotificationDialog)if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)t.isBlazor()?(i=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_Nomatches")).then(function(t){e.pdfViewerBase.createNotificationPopup(t)}):this.searchMatches.length>0?this.pdfViewerBase.createNotificationPopup(this.pdfViewer.localeObj.getConstant("No More Matches")):this.pdfViewerBase.createNotificationPopup(this.pdfViewer.localeObj.getConstant("No Matches"));else if(t.isBlazor()){var i=this.pdfViewer._dotnetInstance.invokeMethodAsync("GetLocaleText","PdfViewer_NoTextFound");i.then(function(t){e.pdfViewerBase.navigationPane.createTooltipMobile(t)})}else this.searchMatches.length>0?this.pdfViewerBase.navigationPane.createTooltipMobile(this.pdfViewer.localeObj.getConstant("No More Search Matches")):this.pdfViewerBase.navigationPane.createTooltipMobile(this.pdfViewer.localeObj.getConstant("No Search Matches"));else setTimeout(function(){e.isMessagePopupOpened=!1},100);this.currentOccurrence=this.searchCount,this.isLastOccurrenceCompleted=!0,this.currentOccurrence===this.searchCount&&(this.currentOccurrence=0),this.searchCountEle&&this.isSingleSearch&&(this.getSearchCountText(),this.adjustInputContainerWidth()),this.searchedPages=[],this.searchedOccurrences=[],this.searchIndex=0,this.programaticalSearch||(this.isDocumentTextCollectionReady?this.highlightAfterComplete():this.hightlightSearchedTexts(void 0,!0,!0)),this.searchString="",this.searchPageIndex=this.startSearchPageIndex,t.isNullOrUndefined(this.searchPageIndex)?this.pdfViewerBase.updateScrollTop(0):this.pdfViewerBase.updateScrollTop(this.searchPageIndex),this.showLoadingIndicator(!1)},n.prototype.highlightAfterComplete=function(){for(var e=0;e<this.searchMatches.length;e++)if(this.searchMatches[parseInt(e.toString(),10)]&&this.searchMatches[parseInt(e.toString(),10)].length>0){var i=this.searchMatches[parseInt(e.toString(),10)],n="e-pv-search-text-highlightother",o=this.pdfViewerBase.textLayer.characterBound[parseInt(e.toString(),10)];if(o&&void 0!==i)for(var r=0;r<i.length;r++){if(i[parseInt(r.toString(),10)].length){var a=this.documentTextCollection[parseInt(e.toString(),10)][parseInt(e.toString(),10)],s=a.pageText?a.pageText:a.PageText,l=this.searchInput.value;this.isMatchCase||(l=l.toLowerCase(),s=s.toLowerCase());for(var d=this.correctLinetext(l,null,s),A=0;A<d.length;A++){var h=void 0;h=0===A?"_searchtext_"+e+"_"+r:"_searchtext_"+e+"_"+r+"_"+A,this.pdfViewerBase.getElement(h)||this.addDivForSearch(r,e,o,d[parseInt(A.toString(),10)].trim().length,n,A)}}t.isNullOrUndefined(i[parseInt(r.toString(),10)].length)&&this.addDivForSearch(r,e,o,this.searchInput.value.length,n,void 0)}}},n.prototype.searchText=function(e,i){var n=this;if(this.documentTextCollection.length===this.pdfViewerBase.pageCount)this.isDocumentTextCollectionReady=!0;else var o=setInterval(function(){n.documentTextCollection.length===n.pdfViewerBase.pageCount&&(clearInterval(o),n.calculateSearchCount(e,n.documentTextCollection),n.getSearchTextDetails={},n.isDocumentTextCollectionReady=!0)},1e3);this.isDocumentTextCollectionReady?(e&&e.length>0&&" "===e[e.length-1]&&(e=e.slice(0,e.length-1)),this.pdfViewer.enableHtmlSanitizer&&e&&(e=t.SanitizeHtmlHelper.sanitize(e)),this.searchString=e,this.isMatchCase=i,this.searchIndex=0,this.programaticalSearch=!0,this.isSingleSearch=!0,this.isTextSearchHandled=!1,this.calculateSearchCount(e,this.documentTextCollection),this.textSearch(e)):this.searchString!==e&&(this.isSingleSearch=!0,this.searchString=e,this.isMatchCase=i,this.searchIndex=0,this.searchCount=0,this.searchPageIndex=0,this.programaticalSearch=!0,this.textSearchWhileLoading(e,i))},n.prototype.searchNext=function(){this.nextSearch()},n.prototype.searchPrevious=function(){this.prevSearch()},n.prototype.cancelTextSearch=function(){this.resetTextSearch()},n.prototype.destroy=function(){this.searchMatches=void 0},n.prototype.findText=function(e,i,n){var o=this;this.isMatchCase=i;var r=Array.isArray(e)?e:[e],a={},s=t.isNullOrUndefined(n)?0:n,l=t.isNullOrUndefined(n)?this.documentTextCollection.length:n+1,d=function(e){return o.documentTextCollection[parseInt(e.toString(),10)]?o.documentTextCollection[parseInt(e.toString(),10)][parseInt(e.toString(),10)]:null}(l-1),A=[];return d&&d.TextData.length>0&&(A=this.getSearchResults(e,r,a,s,l,this.documentTextCollection)),A},n.prototype.findTextAsync=function(i,n,o){var r=this,a=this;this.isMatchCase=n,this.pdfViewer.pdfRenderer.searchResults={};var s=Array.isArray(i)?i:[i],l={},d=o||0,A=t.isNullOrUndefined(o)?this.pdfViewerBase.pageCount:o+1,h={pageStartIndex:d,pageEndIndex:A,documentId:a.pdfViewerBase.getDocumentId(),hashId:a.pdfViewerBase.hashId,action:"RenderPdfTexts",elementId:a.pdfViewer.element.id,uniqueId:a.pdfViewerBase.documentId};this.pdfViewerBase.jsonDocumentId&&(h.documentId=this.pdfViewerBase.jsonDocumentId);return this.pdfViewer.extractTextOption===e.ExtractTextOption.None||this.pdfViewer.extractTextOption===e.ExtractTextOption.TextOnly?new Promise(function(e,t){for(var n="extractText_"+Vi.createGUID(),o=d;o<A;o++)!function(t,n){a.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:t,message:n,zoomFactor:a.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!0,isLayout:!0,isSkipCharacterBounds:!1,isNeedToRender:!0,jsonObject:h,isRenderText:!0,requestType:"pdfTextSearchRequest"},Et.Medium),a.pdfViewerBase.pdfViewerRunner.onMessage(n,function(t){-1!==t.data.message.indexOf("extractText")&&(a.pdfViewer.pdfRendererModule.textExtractionOnmessage(t,null,null),t.data.pageIndex+1===A&&(e(r.getSearchResults(i,s,l,d,A,a.findTextDocumentCollection)),a.findTextDocumentCollection=[]))})}(o,n)}):Promise.resolve(this.getSearchResults(i,s,l,d,A,a.documentTextCollection))},n.prototype.getSearchResults=function(e,t,i,n,o,r){for(var a=0,s=t;a<s.length;a++){var l=s[a];this.calculateSearchCount(l,r),i[""+l]=[];for(var d=n;d<o;d++){var A=this.searchMatches[parseInt(d.toString(),10)];if(A){var h=parseInt(Object.keys(r[parseInt(d.toString(),10)])[0],10),p=r[parseInt(d.toString(),10)][parseInt(h.toString(),10)],c=p.textData?p.textData:p.TextData;if(c){for(var g={pageIndex:d,bounds:[]},u=0,f=A;u<f.length;u++)for(var m=f[u],w=0,C=this.calculateTextBounds(l,m,c,g.pageIndex);w<C.length;w++){var B=C[w];g.bounds.push(B)}g.bounds.length>0&&i[""+l].push(g)}}}}return Array.isArray(e)?i:i[e]},n.prototype.calculateTextBounds=function(e,i,n,o){var r,a,s=[],l=0;Array.isArray(i)||(i=[i]);for(var d=0;d<i.length;d++){var A=n[parseInt(i[d].toString(),10)].Bounds,h=A.X,p=A.Y,c=0,g=A.Height,u=0,f=e.length,m=f;0===i[0]&&(f+=1),i.length>=1&&(d===i.length-1?m=f-l:l+=m=i[d+1]-i[d]-(d+1));for(var w=0;w<m;w++){var C=(i&&!t.isNullOrUndefined(i.length)&&i.length,i[d]),B=n[parseInt((C+w).toString(),10)].Bounds;if(g=Math.max(g,B.Height),w===m-1){c=(u=B.Right)-h;var S=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)],y=this.pdfViewerBase.ConvertPixelToPoint(S.height),I=this.pdfViewerBase.ConvertPixelToPoint(S.width);switch(S.rotation){case 0:h=A.X,p=A.Y;break;case 1:h=y-A.Y-g,p=A.X,c=(r=[g,c])[0],g=r[1];break;case 2:h=I-u,p=y-A.Y-g;break;case 3:h=I-y+A.Top,p=y-A.X-c,c=(a=[g,c])[0],g=a[1]}var E={x:h,y:p,width:c,height:g};s.push(E)}}}return s},n.prototype.getModuleName=function(){return"TextSearch"},n}(),io=function(){function e(e,t){this.printHeight=1056,this.printWidth=816,this.maximumPixels=16777216,this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.print=function(){var e,i=this;this.pdfViewerBase.pageCount>0&&(this.printViewerContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_print_viewer_container",className:"e-pv-print-viewer-container"}),"Default"===this.pdfViewer.printMode?(this.pdfViewerBase.showPrintLoadingIndicator(!0),this.iframe=document.createElement("iframe"),this.iframe.className="iframeprint",this.iframe.id="iframePrint",this.iframe.style.position="fixed",this.iframe.style.top="-100000000px",document.body.appendChild(this.iframe),this.frameDoc=this.iframe.contentWindow?this.iframe.contentWindow:this.iframe.contentDocument,this.frameDoc.document.open()):(this.printWindow=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no"),this.printWindow.moveTo(0,0),this.printWindow.resizeTo(screen.availWidth,screen.availHeight),this.createPrintLoadingIndicator(this.printWindow.document.body)),setTimeout(function(){for(e=0;e<i.pdfViewerBase.pageCount;e++){var t=i.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width,n=i.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height,o=793,r=1122;i.printWidth=816,i.printHeight=1056,t>n&&(o=1122,r=793),t>=o+10||t<=o-10||n>=r+10||n<=r-10||(i.printWidth=783,i.printHeight=1110),i.pdfViewer.printModule.createRequestForPrint(e,t,n,i.pdfViewerBase.pageCount,i.pdfViewer.printScaleFactor)}i.pdfViewer.firePrintEnd(i.pdfViewer.downloadFileName)},100))},e.prototype.createRequestForPrint=function(e,t,i,n,o){var r=this,a={pageNumber:e.toString(),documentId:this.pdfViewerBase.documentId,hashId:this.pdfViewerBase.hashId,zoomFactor:"1",action:"PrintImages",elementId:this.pdfViewer.element.id,uniqueId:this.pdfViewerBase.documentId,digitalSignaturePresent:this.pdfViewerBase.digitalSignaturePresent(e),printScaleFactor:o>=.5&&o<=5?o:o>5?5:1};this.pdfViewerBase.jsonDocumentId&&(a.documentId=this.pdfViewerBase.jsonDocumentId),r.pdfViewerBase.createFormfieldsJsonData(),r.printRequestHandler=new Pi(r.pdfViewer),r.printRequestHandler.url=r.pdfViewer.serviceUrl+"/"+r.pdfViewer.serverActionSettings.print,r.printRequestHandler.responseType=null,r.printRequestHandler.mode=!1,this.pdfViewerBase.validateForm&&this.pdfViewer.enableFormFieldsValidation?(this.pdfViewer.fireValidatedFailed(r.pdfViewer.serverActionSettings.download),this.pdfViewerBase.validateForm=!1,this.pdfViewerBase.showPrintLoadingIndicator(!1)):r.pdfViewerBase.clientSideRendering?this.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:e,message:"printImage",printScaleFactor:o>=.5&&o<=5?o:o>5?5:1},Et.High):r.printRequestHandler.send(a),r.printRequestHandler.onSuccess=function(n){r.printSuccess(n,t,i,e)},this.printRequestHandler.onFailure=function(e){r.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,r.pdfViewer.serverActionSettings.print)},this.printRequestHandler.onError=function(e){r.pdfViewerBase.openNotificationPopup(),r.pdfViewer.fireAjaxRequestFailed(e.status,e.statusText,r.pdfViewer.serverActionSettings.print)}},e.prototype.printOnMessage=function(e){var t=document.createElement("canvas"),i=e.data,n=i.value,o=i.width,r=i.height,a=i.pageIndex,s=i.pageWidth,l=i.pageHeight;t.width=o,t.height=r;var d=t.getContext("2d"),A=d.createImageData(o,r);A.data.set(n),d.putImageData(A,0,0);var h=t.toDataURL();this.pdfViewerBase.releaseCanvas(t);var p={image:h,pageNumber:a,uniqueId:this.pdfViewerBase.documentId,pageWidth:o};this.printSuccess(p,s,l,a)},e.prototype.printSuccess=function(e,n,o,r){var a=this;this.pdfViewerBase.isPrint=!0;var s=this.pdfViewerBase.clientSideRendering?e:e.data;if(this.pdfViewerBase.checkRedirection(s))this.pdfViewerBase.showPrintLoadingIndicator(!1);else{if(s&&"object"!=typeof s)try{"object"!=typeof(s=JSON.parse(s))&&(this.pdfViewerBase.onControlError(500,s,this.pdfViewer.serverActionSettings.print),s=null)}catch(e){this.pdfViewerBase.onControlError(500,s,this.pdfViewer.serverActionSettings.print),s=null}if(s&&s.uniqueId===this.pdfViewerBase.documentId){this.pdfViewer.fireAjaxRequestSuccess(this.pdfViewer.serverActionSettings.print,s);var l;if(!this.pdfViewer.annotationSettings.skipPrint){var d=this.pdfViewerBase.documentAnnotationCollections;if(d&&d[s.pageNumber]&&this.pdfViewerBase.isTextMarkupAnnotationModule()){var A=d[s.pageNumber];if(this.pdfViewerBase.isImportAction){var h=A.textMarkupAnnotation,p=A.shapeAnnotation,c=A.measureShapeAnnotation,g=A.stampAnnotations,u=A.freeTextAnnotation,f=A.signatureInkAnnotation,m=A.stickyNotesAnnotation;l=this.pdfViewer.annotationModule.textMarkupAnnotationModule.printAnnotationsInCanvas(h,s.pageNumber,g,p,c,m,u,f)}else l=this.pdfViewer.annotationModule.textMarkupAnnotationModule.printAnnotationsInCanvas(A.textMarkupAnnotation,s.pageNumber,A.stampAnnotations,A.shapeAnnotation,A.measureShapeAnnotation,A.stickyNotesAnnotation,A.freeTextAnnotation,A.signatureInkAnnotation)}this.pdfViewerBase.isAnnotationCollectionRemoved&&(l=this.pdfViewer.annotationModule.textMarkupAnnotationModule.printAnnotationsInCanvas(null,s.pageNumber,null,null,null,null,null,null))}var w=s.pageNumber;this.printCanvas=t.createElement("canvas",{id:this.pdfViewer.element.id+"_printCanvas_"+r,className:"e-pv-print-canvas"}),this.printCanvas.style.width=n+"px",this.printCanvas.style.height=o+"px";var C=this.pdfViewer.printScaleFactor>1&&this.pdfViewer.printScaleFactor<=5?this.pdfViewer.printScaleFactor:this.pdfViewer.printScaleFactor>5?5:2;if(this.pdfViewerBase.clientSideRendering){var B=n,S=o;"Width"===(n>o?"Width":"Height")?4493===(B=n>4493?4493:n)&&(S=o/(n/4493)):4493===(S=o>4493?4493:o)&&(B=n/(o/4493)),o<n&&this.pdfViewer.enablePrintRotation?(this.printCanvas.height=n*C*window.devicePixelRatio,this.printCanvas.width=o*C*window.devicePixelRatio):(this.printCanvas.height=S*C*window.devicePixelRatio,this.printCanvas.width=B*C*window.devicePixelRatio)}else this.printCanvas.height=this.printHeight*C*window.devicePixelRatio,this.printCanvas.width=this.printWidth*C*window.devicePixelRatio;if(this.pdfViewerBase.isDeviceiOS){var y=new i.Size(this.printCanvas.width,this.printCanvas.height),I=this.limitSize(y,this.maximumPixels);this.printCanvas.width=I.width,this.printCanvas.height=I.height}var E=this.printCanvas.getContext("2d"),v=new Image,b=new Image,V=new Image;v.onload=function(){a.pdfViewerBase.isPrint=!0,o>n||!a.pdfViewer.enablePrintRotation?(E.drawImage(v,0,0,a.printCanvas.width,a.printCanvas.height),l&&l.annotImg&&E.drawImage(b,0,0,a.printCanvas.width,a.printCanvas.height),l&&l.highlightImg&&(E.save(),E.globalCompositeOperation="multiply",E.drawImage(V,0,0,a.printCanvas.width,a.printCanvas.height),E.restore())):(E.translate(.5*a.printCanvas.width,.5*a.printCanvas.height),E.rotate(-.5*Math.PI),E.translate(.5*-a.printCanvas.height,.5*-a.printCanvas.width),E.drawImage(v,0,0,a.printCanvas.height,a.printCanvas.width),l&&l.annotImg&&E.drawImage(b,0,0,a.printCanvas.height,a.printCanvas.width),l&&l.highlightImg&&(E.save(),E.globalCompositeOperation="multiply",E.drawImage(V,0,0,a.printCanvas.height,a.printCanvas.width),E.restore())),w===a.pdfViewerBase.pageCount-1&&a.printWindowOpen(),a.pdfViewer.renderDrawing(null,r),a.pdfViewerBase.isPrint=!1},v.src=s.image,l&&!t.isNullOrUndefined(l.annotImg)&&(b.src=l.annotImg),l&&!t.isNullOrUndefined(l.highlightImg)&&(V.src=l.highlightImg),this.printViewerContainer.appendChild(this.printCanvas)}}this.pdfViewerBase.isPrint=!1},e.prototype.limitSize=function(e,t){var n=e.width,o=e.height,r=n*o;if(r<=t)return new i.Size(e.width,e.height);var a=Math.sqrt(t)/Math.sqrt(r);return new i.Size(Math.floor(n*a),Math.floor(o*a))},e.prototype.renderFieldsForPrint=function(e,i,n){var o,r=null;if(o="Default"===this.pdfViewer.printMode?this.frameDoc.document.getElementById("fields_"+e):this.printWindow.document.getElementById("fields_"+e),this.pdfViewer.formFieldsModule&&(r=this.pdfViewerBase.getItemFromSessionStorage("_formfields")),this.pdfViewer.formDesignerModule){var a=null;if(this.pdfViewer.formDesignerModule&&(a=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),a||this.pdfViewer.formFieldCollections.length>0){u=t.isNullOrUndefined(a)?[]:JSON.parse(a);this.pdfViewer.formDesignerModule.updateMissingFormFields(u);for(var s=u,l=0;l<s.length;l++)if((f=s[parseInt(l.toString(),10)].FormField).pageNumber-1===e&&f.isPrint){var d=this.pdfViewer.nameTable[s[parseInt(l.toString(),10)].Key.split("_")[0]],A=null,h=void 0;if(A=t.isNullOrUndefined(d)?(d=this.createSignatureField(f)).wrapper.children[0]:d.wrapper.children[0])if("RadioButton"===f.formFieldAnnotationType){for(var p=0;p<f.radiobuttonItem.length;p++)if(d=this.pdfViewer.nameTable[f.radiobuttonItem[parseInt(p.toString(),10)].id.split("_")[0]],t.isNullOrUndefined(d)&&(d=this.createSignatureField(f.radiobuttonItem[parseInt(p.toString(),10)])),h=this.createFormDesignerFields(f.radiobuttonItem[parseInt(p.toString(),10)],A,d)){var c=f.radiobuttonItem[parseInt(p.toString(),10)].lineBound,g=f.radiobuttonItem[parseInt(p.toString(),10)].fontFamily;this.applyPosition(h,c,g,i,n,!0,f.radiobuttonItem[parseInt(p.toString(),10)].zoomValue,f.pageNumber-1),o.appendChild(h)}}else if(h=this.createFormDesignerFields(f,A,d)){var c=f.lineBound,g=f.fontFamily;this.applyPosition(h,c,g,i,n,!0,f.zoomValue,f.pageNumber-1),!t.isNullOrUndefined(c)&&c.Width>0&&c.Height>0&&o.appendChild(h)}}}}else if(r)for(var u=JSON.parse(r),l=0;l<u.length;l++){var f=u[parseInt(l.toString(),10)];if(parseFloat(f.PageIndex)===e){var m=this.pdfViewer.formFieldsModule.createFormFields(f,e,l,o).currentField;if(m){var c=f.LineBounds,g=f.Font;if(this.applyPosition(m,c,g,i,n),m.InsertSpaces=f.InsertSpaces,m.InsertSpaces){var w=parseInt(m.style.width,10)/m.maxLength-parseFloat(m.style.fontSize)/2-.6;m.style.letterSpacing=w+"px",m.style.fontFamily="monospace"}var C=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)];if(C.width>C.height&&this.pdfViewer.enablePrintRotation){var B=this.pdfViewer.formFieldsModule.ConvertPointToPixel(c.X),S=this.pdfViewer.formFieldsModule.ConvertPointToPixel(c.Y),y=this.pdfViewer.formFieldsModule.ConvertPointToPixel(c.Width),I=this.pdfViewer.formFieldsModule.ConvertPointToPixel(c.Height),E=C.width-B-I,v=S+I;m.style.transform="rotate(-90deg)",m.style.transformOrigin="left bottom",m.style.left=v+"px",m.style.top=E+"px",m.style.height=I+"px",m.style.width=y+"px"}m.style.backgroundColor="transparent",f.IsSignatureField||(m.style.borderColor="transparent"),o.appendChild(m)}}}},e.prototype.createSignatureField=function(e){var t=JSON.parse(JSON.stringify(e));if(e.lineBound){var i=e.lineBound,n=i.X,o=i.Y,r=i.Width,a=i.Height;t.bounds={x:n,y:o,width:r,height:a},delete t.lineBound}!e.option||"DropdownList"!==e.formFieldAnnotationType&&"ListBox"!==e.formFieldAnnotationType||(t.options=t.option,delete t.option);var s=new it(this.pdfViewer,"formFields",t,!0);return this.pdfViewer.drawing.initNode(s),s.backgroundColor="string"==typeof s.backgroundColor?s.backgroundColor:this.pdfViewer.formDesignerModule.getRgbToHex(s.backgroundColor),s.borderColor="string"==typeof s.borderColor?s.borderColor:this.pdfViewer.formDesignerModule.getRgbToHex(s.borderColor),s},e.prototype.createFormDesignerFields=function(e,t,i){var n={id:"form_field_"+t.id+"_html_element",class:"foreign-object"},o=this.pdfViewer.formDesignerModule.createHtmlElement("div",n),r={id:t.id+"_html_element",class:"foreign-object"},a=this.pdfViewer.formDesignerModule.createHtmlElement("div",r);return"SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType?(this.pdfViewer.formDesignerModule.disableSignatureClickEvent=!0,t.template=a.appendChild(this.pdfViewer.formDesignerModule.createSignatureDialog(this.pdfViewer,i,null,!0)),this.pdfViewer.formDesignerModule.disableSignatureClickEvent=!1):"DropdownList"===e.formFieldAnnotationType?t.template=a.appendChild(this.pdfViewer.formDesignerModule.createDropDownList(t,i,!0)):"ListBox"===e.formFieldAnnotationType?t.template=a.appendChild(this.pdfViewer.formDesignerModule.createListBox(t,i,!0)):t.template=a.appendChild(this.pdfViewer.formDesignerModule.createInputElement(e.formFieldAnnotationType,i,null,!0)),o.appendChild(a),a},e.prototype.applyPosition=function(e,i,n,o,r,a,s,l){if(i){var d,A=void 0,h=void 0,p=void 0,c=this.pdfViewerBase.pageSize[l],g=c?c.width:0,u=c?c.height:0;a&&u<g&&this.pdfViewer.enablePrintRotation?(d=g-i.X/s-i.Height/s,A=(i.Y+i.Height)/s,h=i.Width/s,p=i.Height/s,e.style.transform="rotate(-90deg)",e.style.transformOrigin="left bottom"):(A=a?i.X/s/r:this.pdfViewer.formFieldsModule.ConvertPointToPixel(i.X)/r,d=a?i.Y/s/o:this.pdfViewer.formFieldsModule.ConvertPointToPixel(i.Y)/o,h=a?i.Width/s/r:this.pdfViewer.formFieldsModule.ConvertPointToPixel(i.Width)/r,p=a?i.Height/s/o:this.pdfViewer.formFieldsModule.ConvertPointToPixel(i.Height)/o);var f=0;null!==n&&n.Height&&(e.style.fontFamily=n.Name,n.Italic&&(e.style.fontStyle="italic"),n.Bold&&(e.style.fontWeight="Bold"),f=this.pdfViewerBase.ConvertPointToPixel(n.Size)),t.Browser.isIE&&(d-=1),this.pdfViewerBase.setStyleToTextDiv(e,A,d,f,h,p,!0)}},e.prototype.createStyleSheet=function(e,t){var i=new Blob([t],{type:"text/css"}),n=e.createElement("link");n.rel="stylesheet",n.href=URL.createObjectURL(i),e.head.appendChild(n)},e.prototype.printWindowOpen=function(){var e,i=this,n=navigator.userAgent;e="Default"===this.pdfViewer.printMode?this.frameDoc.document:this.printWindow.document;for(var o=0;o<this.printViewerContainer.children.length;o++){0===o&&(e.write("<!DOCTYPE html>"),e.write("<html moznomarginboxes mozdisallowselectionprint><head></head><body>"));var r=this.printViewerContainer.children[parseInt(o.toString(),10)].toDataURL("image/jpeg");if(e.write('<div id="imageElementPdf_'+o+'"><img src="'+r+'" id="image_'+o+'" /><div id="fields_'+o+'"></div></div>'),e.getElementById("imageElementPdf_"+o).style.cssText="margin:0mm;width:"+this.printWidth+"px;height:"+this.printHeight+"px;position:relative",e.getElementById("fields_"+o).style.cssText="margin:0px;top:0px;left:0px;position:absolute;width:"+this.printWidth+"px;height:"+this.printHeight+"px;z-index:2",this.pdfViewer.formFieldsModule||this.pdfViewer.formDesignerModule){var a=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].width,s=this.pdfViewerBase.pageSize[parseInt(o.toString(),10)].height,l=void 0,d=void 0;s<a&&this.pdfViewer.enablePrintRotation?(l=s/this.printWidth,d=a/this.printHeight):(l=s/this.printHeight,d=a/this.printWidth),this.renderFieldsForPrint(o,l,d)}if(0===o)if(-1!==n.indexOf("Chrome")||-1!==n.indexOf("Safari")||-1!==n.indexOf("Firefox")){A="\n                        html, body { height: 100%; width: 100%; }\n                        img { height: 100%; width: 100%; display: block; }\n                        @media print { \n                            body { margin: 0cm; }\n                            img { width: 100%; box-sizing: border-box; }\n                            br, button { display: none; }\n                            div { page-break-inside: avoid; }\n                        }\n                        @page { margin: 0mm; size: "+this.printWidth.toString()+"px "+this.printHeight.toString()+"px; }\n                    ";this.createStyleSheet(e,A)}else{var A="\n                        html, body { height: 100%; }\n                        img { height: 100%; width: 100%; }\n                        @media print { \n                            body { margin: 0cm; }\n                            img { width: 100%; box-sizing: border-box; }\n                            br, button { display: none; }\n                            div { page-break-inside: avoid; }\n                        }\n                        @page { margin: 0mm; size: "+this.printWidth.toString()+"px "+this.printHeight.toString()+"px; }\n                    ";this.createStyleSheet(e,A)}}if(t.Browser.isIE||"edge"===t.Browser.info.name)try{"Default"===this.pdfViewer.printMode?(this.pdfViewerBase.showPrintLoadingIndicator(!1),this.iframe.contentWindow.document.execCommand("print",!1,null)):this.printWindow.document.execCommand("print",!1,null)}catch(e){"Default"===this.pdfViewer.printMode?(this.pdfViewerBase.showPrintLoadingIndicator(!1),this.iframe.contentWindow.print()):this.printWindow.print()}else setTimeout(function(){if("Default"===i.pdfViewer.printMode)if(i.pdfViewerBase.showPrintLoadingIndicator(!1),i.iframe.contentWindow.print(),i.iframe.contentWindow.focus(),i.pdfViewerBase.isDeviceiOS||t.Browser.isDevice){var e=i;window.onafterprint=function(){document.body.removeChild(e.iframe)}}else document.body.removeChild(i.iframe);else i.printWindow&&(i.printWindow.print(),i.printWindow.focus(),t.Browser.isDevice&&!i.pdfViewerBase.isDeviceiOS||i.printWindow.close())},200)},e.prototype.createPrintLoadingIndicator=function(e){var i=t.createElement("div",{id:this.pdfViewer.element.id+"_printWindowcontainer"});i.style.height="100%",i.style.width="100%",i.style.position="absolute",i.style.zIndex=2e3,i.style.left=0,i.style.top=0,i.style.overflow="auto",i.style.backgroundColor="rgba(0, 0, 0, 0.3)",e.appendChild(i);var n=t.createElement("div",{id:this.pdfViewer.element.id+"_printLoadingContainer"});n.style.position="absolute",n.style.width="50px",n.style.height="50px",n.style.left="46%",n.style.top="45%",i.style.zIndex=3e3,i.appendChild(n);var o=new Image;o.src="data:image/gif;base64,R0lGODlhNgA3APMAAP///wAAAHh4eBwcHA4ODtjY2FRUVNzc3MTExEhISIqKigAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAANgA3AAAEzBDISau9OOvNu/9gKI5kaZ4lkhBEgqCnws6EApMITb93uOqsRC8EpA1Bxdnx8wMKl51ckXcsGFiGAkamsy0LA9pAe1EFqRbBYCAYXXUGk4DWJhZN4dlAlMSLRW80cSVzM3UgB3ksAwcnamwkB28GjVCWl5iZmpucnZ4cj4eWoRqFLKJHpgSoFIoEe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3I9Um1yHOJ9sjzCbfyInhwt3E2cPo5dHF5OLvJREAOwAAAAAAAAAAAA==",o.style.width="50px",o.style.height="50px",n.appendChild(o);var r=t.createElement("div",{id:this.pdfViewer.element.id+"_printLabelContainer"});r.style.position="absolute",r.textContent="Loading ...",r.style.fontWeight="Bold",r.style.left="46%",r.style.top="54.5%",r.style.zIndex="3000",i.appendChild(r)},e.prototype.destroy=function(){this.printViewerContainer=void 0,this.frameDoc=void 0,this.printWindow=void 0},e.prototype.getModuleName=function(){return"Print"},e}(),no=function(){return(no=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},oo=function(){function e(e,t){this.maintainTabIndex={},this.maintanMinTabindex={},this.isSignatureField=!1,this.paddingDifferenceValue=10,this.indicatorPaddingValue=4,this.isKeyDownCheck=!1,this.signatureFontSizeConstent=1.35,this.readOnlyCollection=[],this.isSignatureRendered=!1,this.signatureFieldCollection=[],this.selectedIndex=[],this.renderedPageList=[],this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.renderFormFields=function(e,i){if(this.maxTabIndex=0,this.minTabIndex=-1,-1===this.renderedPageList.indexOf(e)||i?this.data=this.pdfViewerBase.getItemFromSessionStorage("_formfields"):(this.data=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),this.data&&"[]"!==this.data||(this.data=this.pdfViewerBase.getItemFromSessionStorage("_formfields"))),this.data){this.formFieldsData=JSON.parse(this.data),"["===this.formFieldsData[0]&&(this.formFieldsData=JSON.parse(this.formFieldsData));var n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e),o=document.getElementById(this.pdfViewer.element.id+"_pageCanvas_"+e),r=void 0;if(null!==this.formFieldsData&&null!==o&&null!==n){for(var a=!1,s=0;s<this.formFieldsData.length;s++){var l=this.formFieldsData[parseInt(s.toString(),10)];!a&&t.isNullOrUndefined(l.ActualFieldName)&&l.PageIndex===e&&(r=parseInt(l.FieldName.slice(l.FieldName.lastIndexOf("_")+1),10),a=!0)}-1===this.renderedPageList.indexOf(e)&&this.renderedPageList.push(e);for(var d=this,s=0;s<this.formFieldsData.length;s++)!function(i){var o=d.formFieldsData[parseInt(i.toString(),10)];if(""!==o.FieldName){o.IsInitialField&&(o.Name="InitialField");var a=o.Font;if(d.pdfViewer.formDesigner){if(parseFloat(o.PageIndex)===e){var s=void 0,l=void 0,A=void 0;!t.isNullOrUndefined(a)&&a.Height&&(s=a.Name,a.Italic&&(l="Italic"),a.Bold&&(l="Bold"),a.Strikeout&&(l="Strikethrough"),a.Underline&&(l="Underline"),A=d.ConvertPointToPixel(a.Size));var h=2===o.Alignment?"right":1===o.Alignment?"center":"left",p=o.BackColor,c=o.LineBounds,g="rgba("+p.R+","+p.G+","+p.B+",1)";!0===o.IsTransparent&&(g="rgba(0,0,0,0)"),"#000000ff"===(g=d.rgbaToHex(g))&&(g="#daeaf7ff");var u=o.FontColor,f={left:d.ConvertPointToPixel(c.X),top:d.ConvertPointToPixel(c.Y),width:d.ConvertPointToPixel(c.Width),height:d.ConvertPointToPixel(c.Height)},m=!1,w=0;0!==o.Rotation?-90!==o.RotationAngle&&-270!==o.RotationAngle&&-180!==o.RotationAngle||(f=d.getBounds(f,e,0,m)):(m=!0,f=d.getBounds(f,e,0,m),w=d.getAngle(e));var C="rgba("+u.R+","+u.G+","+u.B+",1)";C=d.rgbaToHex(C);var B=o.BorderColor,S=void 0;S=o.IsTansparentBorderColor?"rgba("+B.R+","+B.G+","+B.B+",0)":"rgba("+B.R+","+B.G+","+B.B+",1)",S=d.rgbaToHex(S);var y=o.BorderWidth;d.selectedIndex=[];var I="";I="RadioButton"===o.Name||"CheckBox"===o.Name?o.Text?o.Text:o.Value:o.Text;var E="SignatureField"===o.Name?d.pdfViewer.signatureFieldSettings.signatureIndicatorSettings:d.pdfViewer.initialFieldSettings.initialIndicatorSettings,v={bounds:{X:f.left,Y:f.top,Width:f.width,Height:f.height},pageNumber:parseFloat(o.PageIndex)+1,name:o.ActualFieldName?o.ActualFieldName:o.FieldName,tooltip:o.ToolTip,value:I,insertSpaces:o.InsertSpaces,isChecked:o.Selected,isSelected:o.Selected,fontFamily:s,fontStyle:l,backgroundColor:g,color:C,borderColor:S,thickness:y,fontSize:A,isMultiline:o.Multiline,rotateAngle:w,isReadOnly:o.IsReadonly,isRequired:o.IsRequired,alignment:h,options:d.getListValues(o),selectedIndex:d.selectedIndex,maxLength:o.MaxLength,visibility:1===o.Visible?"hidden":"visible",font:{isItalic:!t.isNullOrUndefined(a)&&a.Italic,isBold:!t.isNullOrUndefined(a)&&a.Bold,isStrikeout:!t.isNullOrUndefined(a)&&a.Strikeout,isUnderline:!t.isNullOrUndefined(a)&&a.Underline},isTransparent:o.IsTransparent,customData:t.isNullOrUndefined(o.CustomData)?"":"object"==typeof o.CustomData?o.CustomData:""!==o.CustomData.trim()?JSON.parse(o.CustomData):"",signatureIndicatorSettings:E};o.id||!d.pdfViewer.formFieldCollections[parseInt(i.toString(),10)]||t.isNullOrUndefined(o.ActualFieldName)||(v.id=d.pdfViewer.formFieldCollections[parseInt(i.toString(),10)].id),"DropDown"!==o.Name&&"ListBox"!==o.Name||(v.value=o.SelectedValue);var b=d.getFormFieldType(o);if(("SignatureText"!==o.Name||"SignatureImage"!==o.Name)&&!t.isNullOrUndefined(d.getFormFieldType(o))){if(o.IsRequired){var V=v.thickness;V=V>0?V:1,v.thickness=V}var D=d.pdfViewer.formDesignerModule.addField(b,v,!1,v.id);D&&D.parentElement&&(o.id=D.parentElement.id.split("_")[0]),D&&"hidden"===D.style.visibility&&(D.childNodes[0].disabled=!0)}"SignatureField"!==b&&"InitialField"!==b||(d.addSignaturePath(o,r),t.isNullOrUndefined(o.Value)||""===o.Value||(d.renderExistingAnnnot(o,parseFloat(o.PageIndex)+1,null,m),d.isSignatureRendered=!0,r++)),null!=o.ActualFieldName||t.isNullOrUndefined(o.FieldName)||0!==d.formFieldsData.filter(function(e){return!t.isNullOrUndefined(e.FieldName)&&e.FieldName.includes(o.FieldName.replace(/_\d$/,""))}).filter(function(e){return"ink"!==e.Name}).length||(d.renderExistingAnnnot(o,parseFloat(o.PageIndex)+1,null,m),d.pdfViewerBase.signatureModule.storeSignatureData(e,o),d.isSignatureRendered=!0,r++),d.pdfViewerBase.isLoadedFormFieldAdded=!0}}else if(parseFloat(o.PageIndex)===e){var x=d.createFormFields(o,e,i,null,r),Q=x.currentField,M=x.count,m=!1;if(null!==o.ActualFieldName||t.isNullOrUndefined(o.FieldName)||0!==d.formFieldsData.filter(function(e){return!t.isNullOrUndefined(e.FieldName)&&e.FieldName.includes(o.FieldName.replace(/_\d$/,""))}).filter(function(e){return"ink"!==e.Name}).length||(d.renderExistingAnnnot(o,parseFloat(o.PageIndex)+1,null,m),d.pdfViewerBase.signatureModule.storeSignatureData(e,o),d.isSignatureRendered=!0,r++),Q){var F=d.createParentElement(o,e),c=o.LineBounds,T=o.Font,k=0;if(0===o.Rotation?(m=!0,k=d.getAngle(e),F?F.style.transform="rotate("+k+"deg)":Q.style.transform="rotate("+k+"deg)"):F?F.style.transform="rotate("+k+"deg)":Q.style.transform="rotate("+k+"deg)",d.applyPosition(Q,c,T,e,0,m),Q.InsertSpaces=o.InsertSpaces,Q.InsertSpaces){var P=d.pdfViewerBase.getZoomFactor(),N=parseInt(Q.style.width,10)/Q.maxLength-parseFloat(Q.style.fontSize)/2-.6*P;Q.style.letterSpacing=N+"px",Q.style.fontFamily="monospace",Q.style.paddingLeft=N/2+"px"}o.uniqueID=d.pdfViewer.element.id+"input_"+e+"_"+i;for(var R=0;R<d.pdfViewer.formFieldCollections.length;R++)"text"!==Q.type&&"password"!==Q.type&&"textarea"!==Q.type||"SignatureField"===o.Name||o.uniqueID===d.pdfViewer.formFieldCollections[parseInt(R.toString(),10)].id&&(d.pdfViewer.formFieldCollections[parseInt(R.toString(),10)].value=o.Text);t.isNullOrUndefined(o.Value)&&(o.Value=o.Text),o.ToolTip&&d.setToolTip(o.ToolTip,Q),d.applyCommonProperties(Q,e,i,o,m),d.checkIsReadonly(o,Q),d.applyTabIndex(o,Q,e),d.checkIsRequiredField(o,Q),d.applyDefaultColor(Q),d.updateFormFieldsCollection(o),F?(F.appendChild(Q),n.appendChild(F)):(Q.style.position="absolute",n.appendChild(Q)),Q.addEventListener("focus",d.focusFormFields.bind(d)),Q.addEventListener("blur",d.blurFormFields.bind(d)),Q.addEventListener("click",d.updateFormFields.bind(d)),Q.addEventListener("change",d.changeFormFields.bind(d)),Q.addEventListener("keydown",d.updateFormFieldsValue.bind(d)),Q.addEventListener("keyup",d.updateSameFieldsValue.bind(d)),r=M}}}}(s);this.pdfViewer.formDesigner||(Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_formfields"),this.pdfViewerBase.setItemInSessionStorage(this.formFieldsData,"_formfields"))}}if(this.pdfViewerBase.isFocusField&&this.pdfViewerBase.focusField){var A=document.getElementById(this.pdfViewerBase.focusField.id);if(A){if("SignatureField"!==this.pdfViewerBase.focusField.type&&"InitialField"!==this.pdfViewerBase.focusField.type||!this.pdfViewer.formDesignerModule)A.focus();else{var h=this.pdfViewerBase.focusField.bounds.y,p=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height;this.pdfViewer.bookmark.goToBookmark(this.pdfViewerBase.focusField.pageIndex,p-h)}this.pdfViewerBase.isFocusField=!1,this.pdfViewerBase.focusField=[]}}},e.prototype.setToolTip=function(e,i){new o.Tooltip({content:t.initializeCSPTemplate(function(){return e})}).appendTo(i)},e.prototype.trim=function(e){return e.replace(/^\s+|\s+$/gm,"")},e.prototype.rgbaToHex=function(e){var t=e.substring(e.indexOf("(")).split(","),i=parseInt(this.trim(t[0].substring(1)),10),n=parseInt(this.trim(t[1]),10),o=parseInt(this.trim(t[2]),10),r=parseFloat(parseFloat(this.trim(t[3].substring(0,t[3].length-1))).toFixed(2)),a=[i.toString(16),n.toString(16),o.toString(16),Math.round(255*r).toString(16).substring(0,2)];return a.forEach(function(e,t){1===e.length&&(a[parseInt(t.toString(),10)]="0"+e)}),"#"+a.join("")},e.prototype.getListValues=function(e){var i=e.TextList,n=[];if("DropDown"===this.getFormFieldType(e)){if(i=e.ComboBoxList,!t.isNullOrUndefined(i))for(a=0;a<i.length;a++){var o=i[parseInt(a.toString(),10)].itemValue?i[parseInt(a.toString(),10)].itemValue:i[parseInt(a.toString(),10)].ItemValue,r=i[parseInt(a.toString(),10)].itemName?i[parseInt(a.toString(),10)].itemName:i[parseInt(a.toString(),10)].ItemName;r===e.SelectedValue&&this.selectedIndex.push(a),n.push({itemName:r,itemValue:o})}}else for(var a=0;a<i.length;a++)i[parseInt(a.toString(),10)]===e.SelectedValue&&this.selectedIndex.push(a),n.push({itemName:i[parseInt(a.toString(),10)],itemValue:i[parseInt(a.toString(),10)]});return"ListBox"===this.getFormFieldType(e)&&(this.selectedIndex=e.SelectedList),n},e.prototype.createParentElement=function(e,t){var i;if("Textbox"===e.Name||"Password"===e.Name){(i=document.createElement("div")).style.background="white",e.InsertSpaces&&(i.style.background="transparent");var n=e.LineBounds,o=e.Font;i.style.position="absolute";var r=!1;0===e.Rotation&&(r=!0),this.applyPosition(i,n,o,t,0,r)}return i},e.prototype.getAngle=function(e,t){var i,n=0,o=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)];if(!o&&t&&t.pageSizes&&t.pageSizes[parseInt(e.toString(),10)]?i=t.pageRotation[parseInt(e.toString(),10)]:o&&o.rotation&&(i=o.rotation),(o||t.pageSizes[parseInt(e.toString(),10)])&&i)switch(i){case 0:n=0;break;case 1:n=90;break;case 2:n=180;break;case 3:n=270}return n},e.prototype.nextField=function(){this.signatureFieldNavigate(!0)},e.prototype.previousField=function(){this.signatureFieldNavigate(!1)},e.prototype.signatureFieldNavigate=function(e){var t=e,i=this.signatureFieldCollection,n=this.pdfViewer.formFieldCollections;0===i.length&&(i=this.pdfViewerBase.signatureModule.getSignField());var o;if(this.currentTarget){if(this.pdfViewer.formDesignerModule){for(r=0;r<n.length;r++)if(o=n[parseInt(r.toString(),10)],this.currentTarget.id===o.id){this.currentTarget=document.getElementById(o.id),this.getSignatureIndex(r,n.length,t);break}}else for(var r=0;r<i.length;r++)if(o=this.pdfViewer.formDesignerModule?i[parseInt(r.toString(),10)].FormField:i[parseInt(r.toString(),10)],this.currentTarget.id===o.uniqueID){this.currentTarget=document.getElementById(o.uniqueID),this.getSignatureIndex(r,i.length,t);break}}else e&&(this.pdfViewer.formDesignerModule?(o=i[0]).id&&(this.currentTarget=document.getElementById(o.id),this.getSignatureIndex(0,i.length,t,!0)):(o=i[0]).uniqueID&&(this.currentTarget=document.getElementById(o.uniqueID),this.getSignatureIndex(0,i.length,t,!0)))},e.prototype.getSignatureIndex=function(e,t,i,n){var o=e;n||(i?o++:o--),1===t?this.renderSignatureField(0):o<t&&o>=0?this.renderSignatureField(o):i?o>=t&&this.renderSignatureField(0):o<=0&&this.renderSignatureField(t-1)},e.prototype.renderSignatureField=function(e){var t,i=e,n=this.signatureFieldCollection,o=this.pdfViewer.formFieldCollections;if(i<o.length){for(var r=0;r<o.length;r++)if(this.pdfViewer.formDesignerModule){if((a=o[parseInt(i.toString(),10)].id)===(s=o[parseInt(r.toString(),10)]).id){l=s.pageIndex>=0?s.pageIndex:s.pageNumber;(d=this.pdfViewer.annotationModule.findRenderPageList(l))||(this.pdfViewer.navigation.goToPage(l+1),this.renderFormFields(l,!1)),this.currentTarget=document.getElementById(s.id),t=s;break}}else{var a=this.pdfViewer.formDesignerModule?n[parseInt(i.toString(),10)].FormField.uniqueID:n[parseInt(i.toString(),10)].uniqueID,s=this.pdfViewer.formDesignerModule?n[parseInt(r.toString(),10)].FormField:n[parseInt(r.toString(),10)];if(a===s.uniqueID){var l=s.PageIndex>=0?s.PageIndex:s.pageNumber,d=this.pdfViewer.annotationModule.findRenderPageList(l);d||(this.pdfViewer.navigation.goToPage(l+1),this.renderFormFields(l,!1)),this.currentTarget=document.getElementById(s.uniqueID),t=s;break}}if(null===this.currentTarget){l=t.PageIndex>=0?t.PageIndex:t.pageNumber;this.pdfViewer.navigation.goToPage(l),this.currentTarget=document.getElementById(t.uniqueID)}this.currentTarget&&("e-pdfviewer-signatureformfields-signature"!==this.currentTarget.className||this.pdfViewer.formDesignerModule?"e-pdfviewer-signatureformfields"!==this.currentTarget.className&&"e-pdfviewer-signatureformfields-signature"!==this.currentTarget.className||(this.pdfViewer.formDesignerModule?document.getElementById(this.currentTarget.id).parentElement.focus():document.getElementById(this.currentTarget.id).focus()):(document.getElementById(this.currentTarget.id).focus(),this.pdfViewer.select([this.currentTarget.id],null)))}},e.prototype.formFieldCollections=function(e){var n=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(n)for(var o=JSON.parse(n),r=this,a=0;a<o.length;a++)!function(n){var a=o[parseInt(n.toString(),10)],s=a.Name;if(r.pdfViewer.formDesignerModule)if("ink"!==a.Name&&"SignatureImage"!==a.Name&&"SignatureText"!==a.Name)r.retreiveFormFieldsData(a,!0,e);else{var l=r.pdfViewer.formFieldCollections.findIndex(function(e){return("SignatureField"===e.type||"InitialField"===e.type)&&a.FieldName&&a.FieldName.includes(e.name)&&a.FieldName.includes(e.name+"_")});if(l>=0){var d=a.Value;if("ink"===a.Name){var A=i.processPathData(d),h=i.splitArrayCollection(A);d=JSON.stringify(h)}r.pdfViewer.formFieldCollections[parseInt(l.toString(),10)].value=d}}else if("ink"!==a.Name){var p=void 0;a.LineBounds&&(p=t.isNullOrUndefined(a.Bounds)?r.updateBoundsValue(a.LineBounds):a.Bounds);var c={name:r.retriveFieldName(a),id:r.pdfViewer.element.id+"input_"+parseFloat(a.PageIndex)+"_"+n,isReadOnly:!1,type:a.IsInitialField?"InitialField":s,value:r.retriveCurrentValue(a),fontName:"",isRequired:a.IsRequired,bounds:p};r.pdfViewer.formFieldCollections.push(c)}}(a)},e.prototype.retreiveFormFieldsData=function(e,i,n){var o,r,a;if(""!==e.FieldName){e.IsInitialField&&(e.Name="InitialField");var s=e.Font;!t.isNullOrUndefined(s)&&s.Height&&(o=s.Name,s.Italic&&(r="Italic"),s.Bold&&(r="Bold"),s.Strikeout&&(r="Strikethrough"),s.Underline&&(r="Underline"),a=this.ConvertPointToPixel(s.Size));var l=2===e.Alignment?"right":1===e.Alignment?"center":"left",d=e.BackColor,A=e.LineBounds,h="rgba("+d.R+","+d.G+","+d.B+",1)";h=this.rgbaToHex(h),!0===e.IsTransparent?h="rgba(0,0,0,0)":"#000000ff"===h&&(h="#daeaf7ff");var p=e.FontColor,c=this.ConvertPointToPixel(A.X),g=this.ConvertPointToPixel(A.Y),u=this.ConvertPointToPixel(A.Width),f=this.ConvertPointToPixel(A.Height),m="rgba("+p.R+","+p.G+","+p.B+",1)";m=this.rgbaToHex(m);var w=e.BorderColor,C="rgba("+w.R+","+w.G+","+w.B+",1)";C=this.rgbaToHex(C),!0===e.IsTansparentBorderColor&&(C="rgba(0,0,0,0)");var B=e.BorderWidth;this.selectedIndex=[];var S={left:c,top:g,width:u,height:f},y=!1;0!==e.Rotation?-90!==e.RotationAngle&&-270!==e.RotationAngle&&-180!==e.RotationAngle||(S=this.getBounds(S,e.PageIndex,0,y,n)):(y=!0,S=this.getBounds(S,e.PageIndex,0,y,n),this.getAngle(e.PageIndex,n));var I={bounds:{X:S.left,Y:S.top,Width:S.width,Height:S.height},pageNumber:parseFloat(e.PageIndex)+1,name:e.ActualFieldName,tooltip:e.ToolTip,value:e.Text,isChecked:e.Selected,isSelected:e.Selected,fontFamily:o,fontStyle:r,backgroundColor:h,color:m,borderColor:C,thickness:B,fontSize:a,isMultiline:e.Multiline,isReadOnly:e.IsReadonly,isRequired:e.IsRequired,insertSpaces:e.InsertSpaces,alignment:l,options:this.getListValues(e),selectedIndex:this.selectedIndex,maxLength:e.MaxLength,visibility:1===e.Visible?"hidden":"visible",font:{isItalic:!t.isNullOrUndefined(s)&&s.Italic,isBold:!t.isNullOrUndefined(s)&&s.Bold,isStrikeout:!t.isNullOrUndefined(s)&&s.Strikeout,isUnderline:!t.isNullOrUndefined(s)&&s.Underline},pageIndex:e.PageIndex,isTransparent:e.IsTransparent,rotationAngle:e.RotationAngle,signatureType:e.SignatureType?e.SignatureType:"",signatureIndicatorSettings:e.SignatureIndicatorSettings,zIndex:e.zIndex,customData:t.isNullOrUndefined(e.CustomData)?"":"object"==typeof e.CustomData?e.CustomData:""!==e.CustomData.trim()?JSON.parse(e.CustomData):""};"DropDown"!==e.Name&&"ListBox"!==e.Name||(I.value=e.SelectedValue),"RadioButton"===e.Name&&(I.value=e.Value);var E=this.getFormFieldType(e);return"SignatureField"!==E&&"InitialField"!==E||(this.addSignaturePath(e),this.isSignatureField&&(I.value=e.Value)),this.pdfViewer.formDesignerModule.addField(E,I,i)}return null},e.prototype.updateBoundsValue=function(e){return{x:this.ConvertPointToPixel(e.X),y:this.ConvertPointToPixel(e.Y),width:this.ConvertPointToPixel(e.Width),height:this.ConvertPointToPixel(e.Height)}},e.prototype.updateFormFieldsCollection=function(e){var i,n=e.Name;e.LineBounds&&(i=t.isNullOrUndefined(e.Bounds)?this.updateBoundsValue(e.LineBounds):e.Bounds);var o="DropDown"===e.Name?e.ComboBoxList:e.TextList,r={name:this.retriveFieldName(e),id:e.uniqueID,isReadOnly:e.IsReadonly,isRequired:e.IsRequired,isSelected:e.Selected,isChecked:"RadioButton"!==n&&e.Selected,type:n,value:"ListBox"===n||"DropDown"===n?e.SelectedValue:"Textbox"===n||"Password"===n?e.Text:e.Value,fontName:e.FontFamily?e.FontFamily:"",pageIndex:e.PageIndex,pageNumber:e.PageIndex+1,isMultiline:e.isMultiline?e.isMultiline:e.Multiline,insertSpaces:e.insertSpaces?e.insertSpaces:e.InsertSpaces,isTransparent:e.isTransparent?e.isTransparent:e.IsTransparent,rotateAngle:e.rotateAngle?e.rotateAngle:e.RotationAngle,selectedIndex:e.selectedIndex?e.selectedIndex:e.SelectedList,options:e.options?e.options:o||[],bounds:i,signatureType:e.signatureType?e.signatureType:"",zIndex:e.zIndex,tooltip:e.tooltip?e.tooltip:e.ToolTip?e.ToolTip:"",signatureIndicatorSettings:e.signatureIndicatorSettings?e.signatureIndicatorSettings:""};this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===r.id})]=r},e.prototype.updateFormFieldValues=function(e){if(this.readOnlyCollection.push(e.id),e){var t=document.getElementById(e.id);t&&(e.isReadOnly?(t.disabled=!0,t.style.backgroundColor="",t.style.cursor="default"):(""===t.style.backgroundColor&&(t.style.backgroundColor="rgba(0, 20, 200, 0.2)"),t.disabled=!1,t.style.cursor="")),this.updateDataInSession(t)}},e.prototype.retriveFieldName=function(e){var t;switch(e.Name){case"Textbox":case"Password":case"SignatureField":case"InitialField":t=e.FieldName;break;case"RadioButton":case"CheckBox":t=e.GroupName;break;case"DropDown":t=e.ActualFieldName;break;case"ListBox":t=e.Text}return t},e.prototype.retriveCurrentValue=function(e){var t;switch(e.Name){case"Textbox":case"Password":t=e.Text;break;case"SignatureField":t=e.Value;break;case"RadioButton":case"CheckBox":t=e.Selected;break;case"DropDown":t=e.SelectedValue;break;case"ListBox":t=e.SelectedList}return t},e.prototype.getSignatureBounds=function(e,t,i){var n=this.pdfViewerBase.pageSize[parseInt(i.toString(),10)],o=0;switch(n.rotation){case 0:o=t;break;case 1:o={x:t.x+e.Width+t.width/3.5,y:n.width-e.X+t.height/4};break;case 2:o={x:n.width-t.x-t.width,y:n.height-t.y-t.height};break;case 3:o={x:t.y-t.width/2+t.height,y:t.x+t.width/3}}return o},e.prototype.downloadFormFieldsData=function(){var e=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(e){for(var n=JSON.parse(e),o={},r=[],a=0;a<n.length;a++){var s=n[parseInt(a.toString(),10)],l=s.IsRequired;if("Textbox"===s.Name||"Password"===s.Name||s.Multiline)!l||""!==s.Text&&null!==s.Text?delete this.pdfViewerBase.nonFillableFields[s.FieldName]:(this.pdfViewerBase.validateForm=!0,this.pdfViewerBase.nonFillableFields[s.FieldName]=s.Text),r={fieldValue:s.Text,isReadOnly:s.IsReadonly},o[s.FieldName]=r;else if("RadioButton"===s.Name&&s.Selected)l&&!1===s.Selected?(this.pdfViewerBase.validateForm=!0,this.pdfViewerBase.nonFillableFields[s.GroupName]=s.Value):delete this.pdfViewerBase.nonFillableFields[s.GroupName],r={fieldValue:s.Value,isReadOnly:s.IsReadonly},o[s.GroupName]=r;else if("CheckBox"===s.Name){l&&!1===s.Selected?(this.pdfViewerBase.validateForm=!0,this.pdfViewerBase.nonFillableFields[s.GroupName]=s.Selected):delete this.pdfViewerBase.nonFillableFields[s.GroupName];var d=s.CheckBoxIndex?s.CheckBoxIndex:s.CheckboxIndex?s.CheckboxIndex:null;d&&s.Selected?(r={isSelected:d,isReadOnly:s.IsReadonly,fieldValue:t.isNullOrUndefined(s.Value)?"":s.Value},o[s.GroupName]=r):void 0!==o[s.GroupName]&&null!==o[s.GroupName]||(r={isSelected:s.Selected,isReadOnly:s.IsReadonly,fieldValue:s.Value},o[s.GroupName]=r)}else if("DropDown"===s.Name)l&&""===s.SelectedValue?(this.pdfViewerBase.validateForm=!0,this.pdfViewerBase.nonFillableFields[s.Text]=s.SelectedValue):delete this.pdfViewerBase.nonFillableFields[s.Text],r={fieldValue:s.SelectedValue,isReadOnly:s.IsReadonly},o[s.FieldName]=r;else if("ListBox"===s.Name){for(var A=s.TextList,h=[],p=0;p<s.SelectedList.length;p++){var c=s.SelectedList[parseInt(p.toString(),10)];h.push(A[""+c])}r={fieldValue:JSON.stringify(h),isReadOnly:s.IsReadonly},o[s.Text]=r}else if("SignatureField"===s.Name||"InitialField"===s.Name){var g=void 0;if(!l||null!==s.Value&&""!==s.Value||this.addSignaturePath(s),s.Value&&""!==s.Value){g=s.Value;var u=s.fontFamily?s.fontFamily:s.FontFamily;if(u)o[s.FieldName+"fontName"]=u,o[s.FieldName+"fontSize"]=s.fontSize?s.fontSize:s.FontSize;else if(s.Value.split("base64,")[1])o[s.FieldName+"ImageData"]=!0;else{var f=i.processPathData(s.Value);g=i.splitArrayCollection(f)}}if(!l||null!==s.Value&&""!==s.Value?delete this.pdfViewerBase.nonFillableFields[s.FieldName]:(this.pdfViewerBase.validateForm=!0,this.pdfViewerBase.nonFillableFields[s.FieldName]=JSON.stringify(g)),o[s.FieldName]=JSON.stringify(g),s.Bounds){w=this.getSignatureBounds(s.LineBounds,s.Bounds,s.PageIndex);s.Bounds.x=w.x,s.Bounds.y=w.y,o[s.FieldName+"bounds"]=JSON.stringify(s.Bounds)}else{var m=s.LineBounds,w={x:this.ConvertPointToPixel(m.X),y:this.ConvertPointToPixel(m.Y),width:this.ConvertPointToPixel(m.Width),height:this.ConvertPointToPixel(m.Height)};o[s.FieldName+"bounds"]=JSON.stringify(w)}o[s.FieldName+"isReadOnly"]=s.IsReadonly}}return JSON.stringify(o)}},e.prototype.focusFormFields=function(e){var t=e.target;if(t&&"e-pdfviewer-signatureformfields"!==t.className&&"e-pdfviewer-signatureformfields e-pv-signature-focus"!==t.className){var i=t.style.backgroundColor,n=i.lastIndexOf(","),o=i.slice(0,n+1)+0+")";t.style.backgroundColor=o,"checkbox"===t.type&&(t.style.webkitAppearance=""),t.style.boxShadow="0 0 5px "+("transparent"===t.style.borderColor?"#000000":t.style.borderColor)}else t&&("e-pdfviewer-signatureformfields"!==t.className&&"e-pdfviewer-signatureformfields-signature"!==t.className&&"e-pdfviewer-signatureformfields e-pv-signature-focus"!==t.className&&"e-pdfviewer-signatureformfields-signature  e-pv-signature-focus"!==t.className||this.pdfViewerBase.signatureModule.setFocus(t.id))},e.prototype.blurFormFields=function(e){var t=e.target;if(t.InsertSpaces&&this.isKeyDownCheck){var i=parseInt(t.style.width,10)-parseInt(t.style.height,10)/2;t.style.width=i+"px",this.isKeyDownCheck=!1}"checkbox"===t.type?this.pdfViewer.fireFocusOutFormField(t.name,t.checked):this.pdfViewer.fireFocusOutFormField(t.name,t.value);var n=t.style.backgroundColor,o=n.lastIndexOf(","),r=n.slice(0,o+1)+.2+")";t.style.backgroundColor=r,t.style.boxShadow="none","checkbox"!==t.type||t.checked?t.style.webkitAppearance="":t.style.webkitAppearance="none"},e.prototype.updateFormFields=function(e){var t=e.target;this.pdfViewerBase.isDeviceiOS&&"checkbox"===t.type&&t.focus(),"e-pdfviewer-ListBox"===t.className?(t=t.parentElement,this.updateDataInSession(t)):"e-pdfviewer-signatureformfields"===t.className||"e-pdfviewer-signatureformfields e-pv-signature-focus"===t.className?this.currentTarget=t:"e-pv-buttonItem"!==t.className&&"button"!==t.type||this.pdfViewer.fireButtonFieldClickEvent(t.value,t.name,t.id);for(var i=0;i<this.pdfViewer.formFieldCollections.length;i++)t.id===this.pdfViewer.formFieldCollections[parseInt(i.toString(),10)].id&&((this.pdfViewer.formDesignerModule||this.pdfViewer.annotationModule)&&this.pdfViewer.fireFormFieldClickEvent("formFieldClicked",this.pdfViewer.formFieldCollections[parseInt(i.toString(),10)]),"e-pdfviewer-signatureformfields"!==t.className&&"e-pdfviewer-signatureformfields-signature"!==t.className&&"e-pdfviewer-signatureformfields e-pv-signature-focus"!==t.className&&"e-pdfviewer-signatureformfields-signature  e-pv-signature-focus"!==t.className||this.pdfViewerBase.signatureModule.setFocus(t.id))},e.prototype.drawSignature=function(e,n,o,r,a){var s,l,d,A,h,p=this;h=this.pdfViewer.formDesigner?this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"):this.pdfViewerBase.getItemFromSessionStorage("_formfields");var c,g=JSON.parse(h);c=this.pdfViewer.formDesignerModule&&this.currentTarget&&this.currentTarget.offsetParent?this.currentTarget.offsetParent.name:this.currentTarget?this.currentTarget.name:o.name?o.name:o.offsetParent.name;for(var u=this,f=0;f<g.length;f++)!function(h){var f=u.pdfViewer.formDesigner?g[parseInt(h.toString(),10)].FormField.name:g[parseInt(h.toString(),10)].FieldName;if(u.pdfViewer.formDesigner?f===c:f===c&&!t.isNullOrUndefined(g[parseInt(h.toString(),10)].ActualFieldName)){var m=o=u.pdfViewer.formDesigner?document.getElementById(g[parseInt(h.toString(),10)].Key.split("_")[0]):document.getElementById(g[parseInt(h.toString(),10)].uniqueID);if(u.pdfViewer.annotations.filter(function(e){!t.isNullOrUndefined(m)&&(e.id,o.id)}),!t.isNullOrUndefined(m)){var w=m.offsetParent.offsetParent.id.split("_")[0],C=u.pdfViewer.nameTable[""+w];o&&o.offsetParent&&C&&(d=o.getBoundingClientRect(),A=o.offsetParent.offsetParent.offsetParent.getBoundingClientRect(),u.pdfViewerBase.drawSignatureWithTool=!0,o.nextSibling&&-1!==o.nextSibling.id.indexOf("initial")&&(u.pdfViewer.isInitialFieldToolbarSelection=!0));var B=n||u.pdfViewerBase.signatureModule.outputString;if("Path"===e&&!u.pdfViewer.drawing.isPasted&&!u.pdfViewer.annotation.isUndoAction&&n&&""===u.pdfViewerBase.signatureModule.outputString&&"string"==typeof n&&n.trim().startsWith("[")){var S=JSON.parse(B),y=i.splitArrayCollection(S);B=i.getPathString(y)}var I,E,v=r||u.pdfViewerBase.signatureModule.fontName,b=u.pdfViewerBase.getZoomFactor(),V=u.pdfViewerBase.drawSignatureWithTool?d.width/b:parseFloat(m.style.width)/b,D=u.pdfViewerBase.drawSignatureWithTool?d.height/b:parseFloat(m.style.height)/b,x=u.pdfViewerBase.drawSignatureWithTool?(d.left-A.left)/b:parseFloat(m.style.left)/b,Q=u.pdfViewerBase.drawSignatureWithTool?(d.top-A.top)/b:parseFloat(m.style.top)/b,M=u.pdfViewerBase.drawSignatureWithTool&&o.nextElementSibling?parseFloat(o.nextElementSibling.id.split("_")[1]):parseFloat(m.id.split("_")[1]),F=u.pdfViewerBase.drawSignatureWithTool&&o.nextElementSibling?parseFloat(o.nextElementSibling.id.split("_")[2]):parseFloat(m.id.split("_")[2]),T=u.pdfViewerBase.signatureModule.saveImageString,k=m.offsetParent.offsetParent.style.transform?m.offsetParent.offsetParent.style.transform:m.style.transform,P=(k=k.substring(k.indexOf("(")+1,k.indexOf("d")))?parseInt(k,10):0;if("Type"===e||"Text"===e){if(v||(v="Helvetica"),l=u.getSignBounds(F,P,M,b,x,Q,V,D),"Default"===u.pdfViewer.signatureFitMode&&(l=u.getDefaultBoundsforSign(l)),"SignatureText"===(s={id:m.id,bounds:{x:l.x,y:l.y,width:l.width,height:l.height},pageIndex:M,data:B,modifiedDate:"",shapeAnnotationType:"SignatureText",opacity:1,rotateAngle:P,annotName:"SignatureText",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""},fontFamily:v,fontSize:l.height/u.signatureFontSizeConstent}).shapeAnnotationType){var N=u.getTextWidth(s.data,s.fontSize,s.fontFamily),R=1;N>l.width&&(R=l.width/N),s.fontSize=u.getFontSize(Math.floor(s.fontSize*R))}T=s.data,I=s.fontFamily,E=s.fontSize}else if("Image"===e){l=u.getSignBounds(F,P,M,b,x,Q,V,D);var L=Object.freeze(l),U=new Image,O=o;U.src=B,U.onload=function(){var e=Object.isFrozen(L)?no({},L):L;p.imageOnLoad(e,U,B,M,P,m,C,T,I,E,O)}}else if(-1!==B.indexOf("base64"))l=u.getSignBounds(F,P,M,b,x,Q,V,D),"Default"===u.pdfViewer.signatureFitMode&&(l=u.getDefaultBoundsforSign(l)),s={id:m.id,bounds:{x:l.x,y:l.y,width:l.width,height:l.height},pageIndex:M,data:B,modifiedDate:"",shapeAnnotationType:"SignatureImage",opacity:1,rotateAngle:P,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""}},T=s.data;else{if(t.isNullOrUndefined(a))if("Default"===u.pdfViewer.signatureFitMode){var z=u.pdfViewerBase.signatureModule.updateSignatureAspectRatio(B,!1,m);(l=u.getSignBounds(F,P,M,b,x,Q,z.width,z.height,!0)).x=l.x+z.left,l.y=l.y+z.top}else l=u.getSignBounds(F,P,M,b,x,Q,V,D);else l=a;s={id:m.id,bounds:{x:l.x,y:l.y,width:l.width,height:l.height},pageIndex:M,data:B,modifiedDate:"",shapeAnnotationType:"Path",opacity:1,rotateAngle:P,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""}}}if(u.pdfViewerBase.drawSignatureWithTool&&C&&"Image"!==e){s.id=C.id+"_content";var H=u.pdfViewer.add(s);C.wrapper.children[1]&&H.wrapper.id===C.wrapper.children[1].id&&(t.isNullOrUndefined(C.wrapper.children[1])||"Point"!==C.wrapper.children[1].relativeMode||C.wrapper.children.splice(1,1)),C.wrapper.children.push(H.wrapper)}else"Image"!==e&&u.pdfViewer.add(s);if(s&&"Path"===s.shapeAnnotationType&&""!==B){u.pdfViewerBase.currentSignatureAnnot=s;var Y={currentHeight:D,currentWidth:V,currentLeft:x,currentTop:Q};u.pdfViewerBase.signatureModule.addSignatureCollection(l,Y),T=u.pdfViewerBase.signatureModule.saveImageString,u.pdfViewerBase.currentSignatureAnnot=null}if("Image"!==e){var G=u.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",M);if(u.pdfViewer.renderDrawing(G,M),u.pdfViewerBase.signatureModule.showSignatureDialog(!1),"e-pdfviewer-signatureformfields e-pv-signature-focus"===m.className?m.className="e-pdfviewer-signatureformfields-signature e-pv-signature-focus":m.className="e-pdfviewer-signatureformfields-signature",u.pdfViewerBase.drawSignatureWithTool&&C){var J=o.offsetParent.offsetParent.id.split("_")[0]+"_content";s.bounds={x:l.x*b,y:l.y*b,width:l.width*b,height:l.height*b},u.updateSignatureDataInSession(s,J)}else u.updateDataInSession(m,s.data,s.bounds,I,E);m.style.pointerEvents="none",u.pdfViewer.annotation&&!u.pdfViewer.annotation.isUndoActionImageLoad&&u.pdfViewer.annotation.addAction(s.pageIndex,null,s,"FormField Value Change","",s,s),"Path"!==s.shapeAnnotationType&&"SignatureText"!==s.shapeAnnotationType||u.pdfViewer.fireSignatureAdd(s.pageIndex,s.id,s.shapeAnnotationType,s.bounds,s.opacity,null,null,T),u.pdfViewer.fireFocusOutFormField(m.name,B),u.pdfViewer.annotation&&(u.pdfViewer.annotation.isUndoActionImageLoad=!1)}}}}(f);"Image"!==e&&(this.pdfViewerBase.signatureModule.hideSignaturePanel(),this.pdfViewerBase.drawSignatureWithTool=!1,this.pdfViewer.isInitialFieldToolbarSelection=!1)},e.prototype.imageOnLoad=function(e,i,n,o,r,a,s,l,d,A,h){if(h&&h.offsetParent&&s&&(this.pdfViewerBase.drawSignatureWithTool=!0,h.nextSibling&&-1!==h.nextSibling.id.indexOf("initial")&&(this.pdfViewer.isInitialFieldToolbarSelection=!0)),"Default"===this.pdfViewer.signatureFitMode){var p=Math.min(e.height/this.paddingDifferenceValue,e.width/this.paddingDifferenceValue),c=e.height-p,g=e.width-p,u=i.width,f=i.height,m=e.width,w=e.height,C=Math.min(g/u,c/f);e.width=u*C,e.height=f*C,e.x=e.x+(m-e.width)/2,e.y=e.y+(w-e.height)/2}var B={id:a.id,bounds:{x:e.x,y:e.y,width:e.width,height:e.height},pageIndex:o,data:n,modifiedDate:"",shapeAnnotationType:"SignatureImage",opacity:1,rotateAngle:r,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""}};if(l=B.data,this.pdfViewerBase.drawSignatureWithTool&&s){B.id=s.id+"_content";var S=this.pdfViewer.add(B);s.wrapper.children[1]&&S.wrapper.id===s.wrapper.children[1].id&&(t.isNullOrUndefined(s.wrapper.children[1])||"Point"!==s.wrapper.children[1].relativeMode||s.wrapper.children.splice(1,1)),s.wrapper.children.push(S.wrapper)}else this.pdfViewer.add(B);var y=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",o);if(this.pdfViewer.renderDrawing(y,o),this.pdfViewerBase.signatureModule.showSignatureDialog(!1),"e-pdfviewer-signatureformfields e-pv-signature-focus"===a.className?a.className="e-pdfviewer-signatureformfields-signature e-pv-signature-focus":a.className="e-pdfviewer-signatureformfields-signature",this.pdfViewerBase.drawSignatureWithTool&&s){var I=this.pdfViewerBase.getZoomFactor(),E=h.offsetParent.offsetParent.id.split("_")[0]+"_content";B.bounds={x:e.x*I,y:e.y*I,width:e.width*I,height:e.height*I},this.updateSignatureDataInSession(B,E)}else this.updateDataInSession(a,B.data,B.bounds,d,A);a.style.pointerEvents="none",this.pdfViewer.annotation&&!this.pdfViewer.annotation.isUndoActionImageLoad&&this.pdfViewer.annotation.addAction(B.pageIndex,null,B,"FormField Value Change","",B,B),"SignatureImage"===B.shapeAnnotationType&&this.pdfViewer.fireSignatureAdd(B.pageIndex,B.id,B.shapeAnnotationType,B.bounds,B.opacity,null,null,l),this.pdfViewer.fireFocusOutFormField(a.name,n),this.pdfViewerBase.signatureModule.hideSignaturePanel(),this.pdfViewerBase.drawSignatureWithTool=!1,this.pdfViewer.isInitialFieldToolbarSelection=!1,this.pdfViewer.annotation.isUndoActionImageLoad=!1},e.prototype.updateSignatureDataInSession=function(e,n){var o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o);if(!t.isNullOrUndefined(r))for(var a=this,s=0;s<r.length;s++)!function(t){if(r[parseInt(t.toString(),10)].Key===n){var o=a.pdfViewer.formFieldCollection.findIndex(function(e){return e.id===r[parseInt(t.toString(),10)].FormField.id.split("_")[0]});if("SignatureText"===e.shapeAnnotationType?(r[parseInt(t.toString(),10)].FormField.signatureType="Text",a.pdfViewer.nameTable[(""+n).split("_")[0]].signatureType="Text",a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.signatureType="Text",a.pdfViewer.nameTable[""+n].signatureType="Text",r[parseInt(t.toString(),10)].FormField.fontFamily="TimesRoman"===e.fontFamily?"Times New Roman":e.fontFamily,a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.fontFamily=e.fontFamily,a.pdfViewer.nameTable[""+n].fontFamily=e.fontFamily,a.pdfViewer.nameTable[(""+n).split("_")[0]].fontFamily=e.fontFamily,r[parseInt(t.toString(),10)].FormField.fontSize=e.fontSize,a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.fontSize=e.fontSize,a.pdfViewer.nameTable[""+n].fontSize=e.fontSize,a.pdfViewer.nameTable[(""+n).split("_")[0]].fontSize=e.fontSize,o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].signatureType="Text")):"SignatureImage"===e.shapeAnnotationType?(r[parseInt(t.toString(),10)].FormField.signatureType="Image",r[parseInt(t.toString(),10)].FormField.fontFamily="Helvetica",a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.signatureType="Image",a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.fontFamily="Helvetica",a.pdfViewer.nameTable[""+n].signatureType="Image",o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].signatureType="Image")):(r[parseInt(t.toString(),10)].FormField.signatureType="Path",a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.signatureType="Path",a.pdfViewer.nameTable[""+n].signatureType="Path",o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].signatureType="Path")),r[parseInt(t.toString(),10)].FormField.signatureBound=e.bounds,a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.signatureBound=e.bounds,a.pdfViewer.nameTable[""+n].signatureBound=e.bounds,o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].signatureBound=e.bounds),"Path"===e.shapeAnnotationType){var s=i.processPathData(e.data),l=i.splitArrayCollection(s);r[parseInt(t.toString(),10)].FormField.value=JSON.stringify(l),a.pdfViewer.nameTable[""+n].value=e.data,a.pdfViewer.nameTable[n.split("_")[0]].value=e.data,a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.value=JSON.stringify(l),o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].value=JSON.stringify(l))}else r[parseInt(t.toString(),10)].FormField.value=e.data,a.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.value=e.data,a.pdfViewer.nameTable[n.split("_")[0]].value=e.data,a.pdfViewer.nameTable[""+n].value=e.data,o>-1&&(a.pdfViewer.formFieldCollection[parseInt(o.toString(),10)].value=e.data);a.pdfViewer.formDesigner.updateFormFieldCollections(r[parseInt(t.toString(),10)].FormField),a.pdfViewer.formDesigner.updateFormFieldPropertiesChanges("formFieldPropertiesChange",r[parseInt(t.toString(),10)].FormField,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,"",r[parseInt(t.toString(),10)].FormField.value)}r[parseInt(t.toString(),10)].Key===e.id&&(r[parseInt(t.toString(),10)].FormField.signatureBound=e.bounds)}(s);this.pdfViewerBase.setItemInSessionStorage(r,"_formDesigner")},e.prototype.getDefaultBoundsforSign=function(e){return{x:e.x+4,y:e.y+4,width:e.width-8,height:e.height-8}},e.prototype.getSignBounds=function(e,t,i,n,o,r,a,s,l){var d=this.pdfViewer.isInitialFieldToolbarSelection?"initialIcon":"signIcon",A=document.getElementById(d+"_"+i+"_"+e),h=o*n-(A?parseFloat(A.style.left)*n:0)/n;return 90===t||270===t?(this.rotateAngle=0,""!==A.style.left?l?{x:o-h/n-n,y:r+h/n+n,width:a,height:s}:{x:o-h/n-n,y:r+h/n+n,width:s,height:a}:(h=10,l?{x:o-a,y:r+a,width:s,height:a}:{x:o-a-h/2,y:r+a+h,width:s,height:a})):(this.rotateAngle=0,{x:o,y:r,width:a,height:s})},e.prototype.updateSameFieldsValue=function(e){if(this.formFieldsData)for(var t=0;t<this.formFieldsData.length;t++){var i=this.formFieldsData[parseInt(t.toString(),10)];if(e.target.name===i.FieldName&&e.target.id!==i.uniqueID){var n=document.getElementById(this.formFieldsData[parseInt(t.toString(),10)].uniqueID);n?n.value=e.target.value:(i.Text=e.target.value,this.updateDataInSession(i,null,null,null,null,!0))}}},e.prototype.updateFormFieldsValue=function(e){var t,i,n=e.target;if(n.InsertSpaces&&!this.isKeyDownCheck){var o=parseInt(n.style.width,10)+parseInt(n.style.height,10)/2;n.style.width=o+"px",this.isKeyDownCheck=!0}if(9===e.which&&n&&("e-pdfviewer-formFields"===n.className||"e-pdfviewer-signatureformfields e-pv-signature-focus"===n.className||"e-pdfviewer-signatureformfields-signature"===n.className)){var r=n.id.split("input_")[1].split("_")[0],a=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+parseInt(r,10)).getElementsByClassName("e-pdfviewer-formFields"),s=!0;t=this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===n.id}),e.shiftKey||"Tab"!==e.key||(i=t+1<this.pdfViewer.formFieldCollections.length?this.pdfViewer.formFieldCollections[t+1]:this.pdfViewer.formFieldCollections[0]),this.pdfViewer.focusFormField(i),s=!0,e.preventDefault();for(var l=n.tabIndex+1;!s;){for(var d=0;d<a.length;d++)if(s=!1,a[parseInt(d.toString(),10)].tabIndex===l){a[parseInt(d.toString(),10)].focus(),s=!0,e.preventDefault();break}this.maintainTabIndex[""+r]===l&&(s=!0),l+=1}}if(e.shiftKey&&"Tab"===e.key){var A=this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===n.id}),h=A>0?this.pdfViewer.formFieldCollections[A-1]:this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.length-1];this.pdfViewer.focusFormField(h),e.preventDefault()}if(e.currentTarget.classList.contains("e-pdfviewer-signatureformfields")||e.currentTarget.classList.contains("e-pdfviewer-signatureformfields-signature"))if("Enter"===e.key)for(var p=e.target,c=0;c<this.pdfViewer.formFieldCollections.length;c++)p.id===this.pdfViewer.formFieldCollections[parseInt(c.toString(),10)].id&&(this.pdfViewerBase.signatureModule.setFocus(p.id),this.pdfViewer.fireFormFieldClickEvent("formFieldClicked",this.pdfViewer.formFieldCollections[parseInt(c.toString(),10)]));else e.preventDefault()},e.prototype.changeFormFields=function(e){var t=e.target;this.updateDataInSession(t)},e.prototype.updateDataInSession=function(e,n,o,r,a,s){void 0===s&&(s=!1),this.pdfViewerBase.updateDocumentEditedProperty(!0);var l=[],d=" ",A=0,h=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(h&&!this.pdfViewer.formDesignerModule){var p=JSON.parse(h);(l=p.filter(function(t){return t.uniqueID===e.id})).length>0&&(d=l[0].FieldName,A=p.filter(function(e){return e.FieldName===d}).length);for(var c=0;c<p.length;c++){var g=p[parseInt(c.toString(),10)];if(g.uniqueID===e.id||d===g.FieldName){if(e&&"text"===e.type||"password"===e.type||"textarea"===e.type){var u=e;if(u.classList.contains("e-pdfviewer-signatureformfields")||u.classList.contains("e-pdfviewer-signatureformfields-signature")){if(n&&(g.Value=n),o)if(t.isNullOrUndefined(g.uniqueID)||d!==g.FieldName||e.id!==g.uniqueID){var f=this.ConvertPointToPixel(g.LineBounds.Width),m=this.ConvertPointToPixel(g.LineBounds.Height),w=this.ConvertPointToPixel(g.LineBounds.X),C=this.ConvertPointToPixel(g.LineBounds.Y),B=o.height,S=o.width,y=w+(f-S)/2,I=C+(m-B)/2;g.Bounds={x:y,y:I,height:B,width:S}}else g.Bounds=o;r&&(g.FontFamily=r,g.FontSize=a)}else g.Text=e.value,g.Value=e.value,t.isNullOrUndefined(e.multiline)||(g.Multiline=e.multiline)}else if("radio"===e.type){if(g.uniqueID===e.id){for(var E=e.id,v=p.filter(function(t){return t.GroupName===e.name&&"RadioButton"===t.Name}),b=0;b<v.length;b++)(x=v[parseInt(b.toString(),10)]).uniqueID!==E&&(x.Selected=!1),(Q=document.getElementById(x.uniqueID))&&E!==Q.id&&(Q.Selected=!1);if(""!==g.Value&&g.Value===e.value||(g.Value=e.value),e.value===g.Value||e.id===g.uniqueID){g.Selected=!0;break}g.Selected=!1}}else if("checkbox"===e.type){for(var V=e.id,D=p.filter(function(t){return t.GroupName===e.name&&"CheckBox"===t.Name}),b=0;b<D.length;b++){var x=D[parseInt(b.toString(),10)];x.uniqueID!==V&&(x.Selected=!1,x.checked=!1);var Q=document.getElementById(x.uniqueID);Q&&V!==Q.id&&(Q.Selected=!1,Q.checked=!1,Q.style.webkitAppearance="none")}e.checked&&e.id===g.uniqueID?g.Selected=!0:g.Selected=!1,""===g.Value&&(g.Value=e.value)}else if("select-one"===e.type&&0===e.size){e.selectedIndex<0&&(e.selectedIndex=g.selectedIndex);for(var M=e.options[e.selectedIndex].text,F=e.children,T=0;T<F.length;T++)F[parseInt(T.toString(),10)].text===M&&(g.SelectedValue=M,g.selectedIndex=e.selectedIndex)}else if("select-multiple"===e.type||e.size>0){M=e.selectedOptions;g.SelectedList=[];for(var k=0;k<M.length;k++)for(var F=e.children,T=0;T<F.length;T++)F[parseInt(T.toString(),10)]===M[parseInt(k.toString(),10)]&&g.SelectedList.push(T);g.SelectedValue=e.value;var P=g.TextList?g.TextList.indexOf(e.value):0;g.selectedIndex=P>-1?P:0,g.SelectedList=[g.selectedIndex]}if(e.disabled&&(g.IsReadonly=!0),g.IsRequired=e.Required?e.Required:!!e.required&&e.required,g.ToolTip=e.tooltip?e.tooltip:"",this.updateFormFieldsCollection(g),0===--A)break}else s?s&&(g.SelectedValue=e.Text):e&&null!=e.getAttribute("list")&&"text"===e.type&&g.uniqueID===e.list.id&&(g.SelectedValue=e.value);this.updateFormFieldsCollection(g)}Fi.sessionStorageManager.removeItem(this.pdfViewerBase.documentId+"_formfields"),this.pdfViewerBase.setItemInSessionStorage(p,"_formfields")}if(this.pdfViewer.formDesignerModule&&e&&e.id){var N=this.pdfViewer.nameTable[e.id.split("_")[0]];if(N&&N.wrapper&&N.wrapper.children[0]){N.value=e.value;var R=i.cornersPointsBeforeRotation(N.wrapper.children[0]).topLeft;this.pdfViewer.formDesignerModule.updateFormDesignerFieldInSessionStorage(R,N.wrapper.children[0],N.formFieldAnnotationType,N)}}},e.prototype.removeExistingFormFields=function(){var e=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),i=t.isNullOrUndefined(e)?null:JSON.parse(e);if(i)for(var n=0;n<i.length;n++){if("RadioButton"===i[parseInt(n.toString(),10)].FormField.formFieldAnnotationType){var o=[];o=i[parseInt(n.toString(),10)].FormField.radiobuttonItem;for(var r=i[parseInt(n.toString(),10)].FormField.id.split("_")[0],a=0;a<o.length;a++){var s=o[parseInt(a.toString(),10)];s.id.split("_")[0]!==r&&this.pdfViewer.formDesignerModule.deleteFormField(s.id.split("_")[0])}}i[parseInt(n.toString(),10)].Key&&this.pdfViewer.formDesignerModule.deleteFormField(i[parseInt(n.toString(),10)].Key.split("_")[0])}},e.prototype.applyCommonProperties=function(e,t,i,n,o){var r=document.getElementById(this.pdfViewer.element.id+"input_"+t+"_"+i);if(r){var a=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+t);"text"!==e.type&&"password"!==e.type&&"textarea"!==e.type||r.parentElement===a||r.parentElement.remove(),"e-pdfviewer-signatureformfields e-pv-signature-focus"!==r.className&&r.remove()}var s,l,d,A=document.getElementById("signIcon_"+t+"_"+i),h=parseFloat(e.style.left),p=parseInt(e.style.top,10),c=(parseFloat(e.style.width),parseFloat(e.style.height)),g=this.pdfViewerBase.getZoomFactor();A&&!o&&(s=parseFloat(A.style.width),parseFloat(A.style.height),"rotate(90deg)"===A.style.transform&&(A.style.transform="rotate(0deg)",l=c/2,d=s*g,A.style.left=h-(l-s*g)+d/2+"px"),"rotate(180deg)"===A.style.transform&&(A.style.transform="rotate(0deg)",A.style.left=h+"px",A.style.top=p+"px"),"rotate(270deg)"===A.style.transform&&(A.style.transform="rotate(0deg)",l=c/2,d=s*g,A.style.left=h-(l-d)+d/2+"px",A.style.top=p+"px")),n.IsSignatureField&&this.isSignatureField?(e.className="e-pdfviewer-signatureformfields-signature",e.style.pointerEvents="none"):n.IsSignatureField?n.Value?(e.className="e-pdfviewer-signatureformfields-signature",e.style.pointerEvents="none"):e.className="e-pdfviewer-signatureformfields":"Button"!==n.Name&&(e.className="e-pdfviewer-formFields"),e.id=this.pdfViewer.element.id+"input_"+t+"_"+i,e.ariaLabel=this.pdfViewer.element.id+"input_"+t,e.style.zIndex=1e3},e.prototype.createFormFields=function(e,t,i,n,o){var r;switch(e.Name){case"Textbox":r=this.createTextBoxField(e,t,"text");break;case"Password":r=this.createTextBoxField(e,t,"password");break;case"RadioButton":r=this.createRadioBoxField(e,t,"radio");break;case"CheckBox":r=this.createRadioBoxField(e,t,"checkbox",n);break;case"DropDown":r=this.createDropDownField(e,t,i,n);break;case"ListBox":r=this.createListBoxField(e,t);break;case"InitialField":case"SignatureField":r=this.createSignatureField(e,t,i,n,o);var a=!1;0===e.Rotation&&(a=!0),e.Value&&""!==e.Value&&(this.renderExistingAnnnot(e,i,n,a),this.isSignatureRendered=!0,o++);break;case"Button":r=this.createButtonField(e,t);break;case"ink":this.pdfViewer.formDesignerModule&&e.Value&&""!==e.Value&&!this.isSignatureRendered&&this.renderExistingAnnnot(e,i,n);break;case"SignatureText":case"SignatureImage":e.Value&&""!==e.Value&&!this.isSignatureRendered&&this.renderExistingAnnnot(e,i,n)}return{currentField:r,count:o}},e.prototype.getFormFieldType=function(e){var t;switch(e.Name){case"Textbox":t="Textbox";break;case"Password":t="Password";break;case"RadioButton":t="RadioButton";break;case"CheckBox":t="CheckBox";break;case"DropDown":t="DropDown";break;case"ListBox":t="ListBox";break;case"SignatureField":t="SignatureField",e.IsInitialField&&(t="InitialField");break;case"InitialField":t="InitialField"}return t},e.prototype.createButtonField=function(e,t){var i=document.createElement("input");return e.Value&&(this.isBase64(e.Value)||this.isURL(e.Value))?(i.type="image",i.src=e.Value):i.type="button",i.className="e-pv-buttonItem",""!==e.Text?i.value=e.Text:i.value="",i.name=e.FieldName,i},e.prototype.isBase64=function(e){return/^data:([a-zA-Z]*\/[a-zA-Z+.-]*);base64,/.test(e)},e.prototype.isURL=function(e){try{return new URL(e),!0}catch(e){return!1}},e.prototype.createTextBoxField=function(e,t,i){var n;if(1!==e.Visible)return e.Multiline?(n=document.createElement("textarea")).style.resize="none":(n=document.createElement("input")).type=i,e.MaxLength>0&&(n.maxLength=e.MaxLength),this.addAlignmentPropety(e,n),""!==e.Text?n.value=e.Text:n.value="",this.pdfViewer.enableAutoComplete||(n.autocomplete="off"),n.name=e.FieldName,n},e.prototype.checkIsReadonly=function(e,t){for(var i=!1,n=0;n<this.readOnlyCollection.length;n++)if(t.id===this.readOnlyCollection[parseInt(n.toString(),10)]){i=!0;break}if(this.pdfViewer.formDesignerModule||this.pdfViewer.annotationModule||!e.IsInitialField&&!e.IsSignatureField||(i=!0),e.IsReadonly||!this.pdfViewer.enableFormFields||i)t.disabled=!0,t.style.cursor="default",t.style.backgroundColor="transparent";else{var o=e.BackColor;if("Button"!==e.Name)t.style.backgroundColor="rgba("+o.R+","+o.G+","+o.B+",0.2)";else{var r=e.Opacity;t.style.backgroundColor=r?"rgba("+o.R+","+o.G+","+o.B+","+r+")":"rgb("+o.R+","+o.G+","+o.B+")"}var a=e.FontColor;t.style.color="rgba("+a.R+","+a.G+","+a.B+",1)"}},e.prototype.formFieldsReadOnly=function(e){var t=document.getElementsByClassName("e-pdfviewer-formFields");this.makeformFieldsReadonly(t,e);var i=document.getElementsByClassName("e-pdfviewer-signatureformfields");this.makeformFieldsReadonly(i,e)},e.prototype.makeformFieldsReadonly=function(e,t){for(var i=0;i<e.length;i++)if(e[parseInt(i.toString(),10)]){var n=e[parseInt(i.toString(),10)];t?n.disabled=!1:(n.disabled=!0,n.style.cursor="default")}},e.prototype.applyTabIndex=function(e,t,i){t.tabIndex=e.TabIndex,this.maxTabIndex=Math.max(this.maxTabIndex,t.tabIndex),-1===this.minTabIndex&&(this.minTabIndex=t.tabIndex),this.minTabIndex=Math.min(this.minTabIndex,t.tabIndex),this.maintainTabIndex[i.toString()]=this.maxTabIndex,this.maintanMinTabindex[i.toString()]=this.minTabIndex},e.prototype.checkIsRequiredField=function(e,t){if(e.IsRequired)t.required=!0,t.style.border="1px solid red";else{var i=e.BorderColor;t.style.border=e.BorderWidth,t.style.borderColor="rgba("+i.R+","+i.G+","+i.B+",1)"}if("checkbox"!==t.type&&"radio"!==t.type){var n=e.BorderStyle;this.addBorderStylePropety(n,t)}},e.prototype.applyDefaultColor=function(e){("button"===e.type||"rgba(255, 255, 255, 0.2)"!==e.style.backgroundColor&&"rgba(0, 0, 0, 0.2)"!==e.style.backgroundColor)&&"rgba(218, 234, 247, 0.2)"!==e.style.backgroundColor||(e.style.backgroundColor="rgba(0, 20, 200, 0.2)"),"rgba(255, 255, 255, 0.2)"===e.style.color&&(e.style.color="black")},e.prototype.addAlignmentPropety=function(e,t){switch(e.Alignment){case 0:t.style.textAlign="left";break;case 1:t.style.textAlign="center";break;case 2:t.style.textAlign="right";break;case 3:t.style.textAlign="justify"}},e.prototype.addBorderStylePropety=function(e,t){switch(e){case 0:t.style.borderStyle="solid";break;case 1:t.style.borderStyle="dashed";break;case 2:t.style.borderStyle="outset";break;case 3:t.style.borderStyle="inset";break;case 4:t.style.borderStyle="outset";break;case 5:t.style.borderStyle="dotted";break;case 6:t.style.borderStyle="inset"}},e.prototype.createRadioBoxField=function(e,t,i,n){var o=document.createElement("input");return o.type=i,e.Selected?o.checked=!0:"checkbox"!==i||n||(o.style.webkitAppearance="none"),o.name=e.GroupName,o.value=e.Value,o},e.prototype.createDropDownField=function(e,t,i,n){var o=document.createElement("select"),r="DropDown"===e.Name?e.ComboBoxList:e.TextList;if(e.Selected&&!n){var a=document.getElementById("editableDropdown"+t+"_"+i);a&&a.remove();var s=document.createElement("input");s.id="editableDropdown"+t+"_"+i,s.setAttribute("list",this.pdfViewer.element.id+"input_"+t+"_"+i);var l=e.LineBounds,d=e.Font;s.style.position="absolute",s.style.border="0px",this.applyPosition(s,l,d,t,e.Rotation),s.style.backgroundColor="rgba(0, 20, 200, 0.2)",s.className="e-pdfviewer-formFields",-1===e.selectedIndex&&(s.value=e.SelectedValue),n?n.appendChild(s):document.getElementById(this.pdfViewer.element.id+"_textLayer_"+t).appendChild(s),s.addEventListener("focus",this.focusFormFields.bind(this)),s.addEventListener("blur",this.blurFormFields.bind(this)),s.addEventListener("click",this.updateFormFields.bind(this)),s.addEventListener("change",this.changeFormFields.bind(this)),s.addEventListener("keydown",this.updateFormFieldsValue.bind(this)),o=document.createElement("DATALIST")}for(var A=0;A<r.length;A++){var h=document.createElement("option");h.className="e-dropdownSelect";var p=r[parseInt(A.toString(),10)].itemName?r[parseInt(A.toString(),10)].itemName:r[parseInt(A.toString(),10)].ItemName,c=r[parseInt(A.toString(),10)].itemValue?r[parseInt(A.toString(),10)].itemValue:r[parseInt(A.toString(),10)].ItemValue;e.SelectedValue===p||e.selectedIndex===A?h.selected=!0:h.selected=!1,h.value=c,h.innerHTML=p,o.appendChild(h)}return o.name=e.Text,o},e.prototype.createListBoxField=function(e,t){var i=document.createElement("select"),n=e.TextList;e.MultiSelect?i.multiple=!0:(i.multiple=!1,i.size=n.length);for(var o=0;o<n.length;o++){var r=document.createElement("option");r.className="e-pdfviewer-ListBox";for(var a=0;a<e.SelectedList.length;a++)e.SelectedList[parseInt(a.toString(),10)]===o&&(r.selected=!0);r.innerHTML=n[parseInt(o.toString(),10)],i.appendChild(r)}return i.name=e.Text,i},e.prototype.createSignatureField=function(e,i,n,o,r){var a=document.createElement("input");a.type="text",a.name=e.FieldName;var s=this.pdfViewerBase.getZoomFactor(),l=document.getElementById("signIcon_"+i+"_"+n);l&&!o&&l.remove(),this.pdfViewerBase.isInitialField=e.IsInitialField;var d=this.pdfViewerBase.isInitialField?"Initial":"Sign",A=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings?19===this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.width?this.pdfViewerBase.isInitialField?27:19:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.width:19,h=document.createElement("span"),p=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+i),c=e.LineBounds,g=this.ConvertPointToPixel(c.X),u=this.ConvertPointToPixel(c.Y),f=this.ConvertPointToPixel(c.Width),m=this.ConvertPointToPixel(c.Height),w=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.height>m*s/2?m*s/2:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.height:m*s/2,C=A>f*s/2?f*s/2:A,B=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.fontSize>w/2?10:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.fontSize:10,S=B>C?C/2:B>w?w/2:B;h.style.position="absolute",h.id="signIcon_"+i+"_"+n;var y=this.getAngle(i),I={left:g,top:u,width:C,height:w},E=this.getBounds(I,i);return h.style.transform="rotate("+y+"deg)",h.style.left=E.left*s+"px",h.style.top=E.top*s+"px",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?(h.style.height="5px",h.style.width="10px",h.style.fontSize="3px"):(h.style.height=w+"px",h.style.width=C+"px",h.style.fontSize=S+"px",t.isBlazor()&&(h.style.fontSize=S-1+"px")),w+this.indicatorPaddingValue>m*s||C+this.indicatorPaddingValue>f*s||(h.style.padding="2px"),h.style.textAlign="center",h.style.boxSizing="content-box",h.innerHTML=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings&&this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.text?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.text:d,h.style.color=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings&&this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.color?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.color:"black",h.style.backgroundColor=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings&&this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.backgroundColor?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.backgroundColor:"orange",h.style.opacity=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings&&this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.opacity?this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.opacity:1,t.isNullOrUndefined(p)||p.appendChild(h),this.addSignaturePath(e,r),a},e.prototype.addSignaturePath=function(e,i){this.isSignatureField=!1;var n=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(n){var o=JSON.parse(n);"string"==typeof o&&(o=JSON.parse(o));for(var r=0;r<o.length;r++){var a=o[parseInt(r.toString(),10)];if(null!==a.ActualFieldName||!i||"ink"!==a.Name&&"SignatureField"!==a.Name&&"SignatureImage"!==a.Name&&"SignatureText"!==a.Name||(this.pdfViewer.formDesigner?a.FieldName.split("_")[0]!==e.ActualFieldName&&a.FieldName.split("_")[0]!==e.FieldName:a.FieldName.split("_")[0]!==e.FieldName||t.isNullOrUndefined(e.ActualFieldName)||!a.Value||""===a.Value)||e.PageIndex===a.PageIndex&&(e.Value=a.Value,e.FontFamily=a.FontFamily,e.FontSize=a.FontSize,this.isSignatureField=!0,e.Bounds=a.LineBounds),null===a.ActualFieldName&&i&&("ink"===a.Name||"SignatureField"===a.Name||"SignatureImage"===a.Name||"SignatureText"===a.Name)&&this.pdfViewer.formDesigner?a.FieldName===e.ActualFieldName+"_"+i||a.FieldName===e.FieldName+"_"+i:(a.FieldName===e.FieldName+"_"+i||a.FieldName===e.ActualFieldName+"_"+i)&&!t.isNullOrUndefined(e.ActualFieldName)&&a.Value&&""!==a.Value){e.Value=a.Value,e.FontFamily=a.FontFamily,e.FontSize=a.FontSize,this.isSignatureField=!0,e.Bounds||(e.Bounds=a.LineBounds);break}}}return this.isSignatureField},e.prototype.getBounds=function(e,t,i,n,o){var r=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)],a=i;if(r&&(a=r.rotation),!r&&o&&o.pageSizes&&o.pageSizes[parseInt(t.toString(),10)]){var s=o.pageSizes[parseInt(t.toString(),10)];r={width:s.width,height:s.height,rotation:o.pageRotation[parseInt(t.toString(),10)],top:this.pdfViewerBase.pageGap},a=o.pageRotation[parseInt(t.toString(),10)]}return this.getBoundsPosition(a,e,r,n)},e.prototype.getBoundsPosition=function(e,t,i,n){var o;if(n){switch(e){case 0:o=t;break;case 1:o={left:i.width-t.top-t.height-(t.width/2-t.height/2),top:t.left+(t.width/2-t.height/2),width:t.width,height:t.height};break;case 2:o={left:i.width-t.left-t.width,top:i.height-t.top-t.height,width:t.width,height:t.height};break;case 3:o={left:t.top-(t.width/2-t.height/2),top:i.height-t.left-t.width+(t.width/2-t.height/2),width:t.width,height:t.height}}o||(o=t)}else{switch(e){case 90:o={left:i.width-t.top-t.height,top:t.left,width:t.height,height:t.width};break;case 180:o={left:i.width-t.left-t.width,top:i.height-t.top-t.height,width:t.width,height:t.height};break;case 270:o={left:t.top,top:i.height-t.left-t.width,width:t.height,height:t.width};break;case 0:o=t;break;case 1:o={left:i.width-t.top-t.height,top:t.left,width:t.height,height:t.width};break;case 2:o={left:i.width-t.left-t.width,top:i.height-t.top-t.height,width:t.width,height:t.height};break;case 3:o={left:t.top,top:i.height-t.left-t.width,width:t.height,height:t.width}}o||(o=t)}return o},e.prototype.applyPosition=function(e,i,n,o,r,a){if(i){var s=0,l={left:this.ConvertPointToPixel(i.X),top:this.ConvertPointToPixel(i.Y),width:this.ConvertPointToPixel(i.Width),height:this.ConvertPointToPixel(i.Height)},d=this.getBounds(l,o,r,a);!t.isNullOrUndefined(n)&&n.Height&&(e.style.fontFamily=n.Name,n.Italic&&(e.style.fontStyle="italic"),n.Bold&&(e.style.fontWeight="Bold"),s=this.ConvertPointToPixel(n.Size)),this.pdfViewerBase.setStyleToTextDiv(e,d.left,d.top,s,d.width,d.height,!1)}},e.prototype.renderExistingAnnnot=function(e,i,n,o){if(!n){var r=void 0,a=void 0,s=void 0,l=void 0,d=void 0;(r=e.Bounds&&"ink"!==e.Name?e.Bounds:e.LineBounds).x||r.y||r.width||r.height?(a=r.x,s=r.y,l=r.width,d=r.height):(a=this.ConvertPointToPixel(r.X),s=this.ConvertPointToPixel(r.Y),l=this.ConvertPointToPixel(r.Width),d=this.ConvertPointToPixel(r.Height));var A=void 0,h=void 0,p=parseFloat(e.PageIndex);this.pdfViewerBase.clientSideRendering&&(1===e.Rotation||3===e.Rotation)&&this.pdfViewerBase.isSignatureImageData(e.Value)?(A={left:a,top:s,width:d,height:l},h=this.updateSignatureImageBounds(A,p)):(A={left:a,top:s,width:l,height:d},h=this.updateSignatureBounds(A,p,o));var c,g=e.FontFamily?e.FontFamily:e.fontFamily;if(this.pdfViewerBase.isSignatureImageData(e.Value))c={id:this.pdfViewer.element.id+"input_"+p+"_"+i,bounds:h,pageIndex:p,data:e.Value,modifiedDate:"",shapeAnnotationType:"SignatureImage",opacity:1,rotateAngle:o||this.pdfViewerBase.clientSideRendering&&(1===e.Rotation||2===e.Rotation||3===e.Rotation)?this.getAngle(p):0,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""}};else if(this.pdfViewerBase.isSignaturePathData(e.Value)){var u=h,f={left:h.x,top:h.y,width:h.width,height:h.height};u=this.updateSignatureBounds(f,p,!1),c={id:this.pdfViewer.element.id+"input_"+p+"_"+i,bounds:u,pageIndex:p,data:e.Value,modifiedDate:"",shapeAnnotationType:"Path",opacity:1,rotateAngle:0,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""}}}else(c={id:this.pdfViewer.element.id+"input_"+p+"_"+i,bounds:h,pageIndex:p,data:e.Value,modifiedDate:"",shapeAnnotationType:"SignatureText",opacity:1,rotateAngle:o?this.getAngle(p):0,annotName:"SignatureField",comments:[],review:{state:"",stateModel:"",modifiedDate:"",author:""},fontFamily:e.FontFamily,fontSize:e.FontSize}).fontFamily="TimesRoman"===g?"Times New Roman":g,c.fontSize=e.FontSize?e.FontSize:e.fontSize;if("SignatureField"!==e.Name&&"InitialField"!==e.Name||t.isNullOrUndefined(e.id)){var m=document.getElementById(c.id);m&&m.classList.contains("e-pdfviewer-signatureformfields-signature")&&this.pdfViewer.annotation.deleteAnnotationById(c.id),this.pdfViewer.add(c),m&&(this.updateDataInSession(m,c.data,c.bounds),this.pdfViewer.fireSignatureAdd(c.pageIndex,c.id,c.shapeAnnotationType,c.bounds,c.opacity,c.strokeColor,c.thickness,c.data))}else{var w=e.id,C=document.getElementById(w+"_content_html_element"),B=this.pdfViewer.nameTable[""+w];c.id=B.id+"_content";var S=this.pdfViewer.add(c);if(B.wrapper.children.push(S.wrapper),!t.isNullOrUndefined(C)&&this.isSignatureField)(y=C.children[0].children[0]).style.pointerEvents="none",y.className="e-pdfviewer-signatureformfields-signature",y.parentElement.style.pointerEvents="none";else if(!t.isNullOrUndefined(C)&&e.Value){var y=C.children[0].children[0];y.style.pointerEvents="none",y.className="e-pdfviewer-signatureformfields-signature",y.parentElement.style.pointerEvents="none"}}if(e.Bounds=c.bounds,this.pdfViewer.formDesignerModule){var I=this.pdfViewerBase.getZoomFactor();c.bounds={x:a*I,y:s*I,width:l*I,height:d*I},this.updateSignatureDataInSession(c,c.id)}var E=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",p),v=this.pdfViewer.formFieldCollection.filter(function(e){return c.id.split("_")[0]===e.id});(v.length>0&&"hidden"!==v[0].visibility||!this.pdfViewer.formDesignerModule)&&this.pdfViewer.renderDrawing(E,p)}},e.prototype.updateSignatureImageBounds=function(e,t){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];if(i)return 1===i.rotation?{x:i.width-e.top-e.height-(e.width/2-e.height/2),y:e.left-e.width+(e.width/2+e.height/2),width:e.height,height:e.width}:3===i.rotation?{x:e.top+e.width-(e.width/2+e.height/2),y:i.height-e.left-e.width+(e.width/2-e.height/2),width:e.height,height:e.width}:{x:e.left,y:e.top,width:e.width,height:e.height}},e.prototype.updateSignatureBounds=function(e,t,i){var n=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];return n?i?1===n.rotation?{x:n.width-e.top-e.height-(e.width/2-e.height/2),y:e.left+(e.width/2-e.height/2),width:e.width,height:e.height}:2===n.rotation?{x:n.width-e.left-e.width,y:n.height-e.top-e.height,width:e.width,height:e.height}:3===n.rotation?{x:e.top-(e.width/2-e.height/2),y:n.height-e.left-e.width+(e.width/2-e.height/2),width:e.width,height:e.height}:{x:e.left,y:e.top,width:e.width,height:e.height}:1===n.rotation?{x:n.width-e.top-e.height,y:e.left,width:e.height,height:e.width}:2===n.rotation?{x:n.width-e.left-e.width,y:n.height-e.top-e.height,width:e.width,height:e.height}:3===n.rotation?{x:e.top,y:n.height-e.left-e.width,width:e.height,height:e.width}:{x:e.left,y:e.top,width:e.width,height:e.height}:{x:e.left,y:e.top,width:e.width,height:e.height}},e.prototype.resetFormFields=function(){for(var e=this.pdfViewer.formFieldCollections,t=0;t<e.length;t++){var i=e[parseInt(t.toString(),10)];if(this.currentTarget=document.getElementById(i.id),"Textbox"===i.type)this.currentTarget.value=i.value;else if("RadioButton"===i.type)this.currentTarget.checked=i.value,i.value&&this.updateDataInSession(this.currentTarget);else if("DropDown"===i.type)this.currentTarget.value=i.value;else if("CheckBox"===i.type)this.currentTarget.checked=i.value;else if("SignatureField"===i.type){var n=this.pdfViewer.nameTable[i.id];n&&(this.currentTarget&&"e-pdfviewer-signatureformfields-signature"===this.currentTarget.className&&(this.currentTarget.className="e-pdfviewer-signatureformfields",this.currentTarget.style.pointerEvents="",this.updateDataInSession(this.currentTarget,"")),this.pdfViewer.remove(n),this.pdfViewer.renderDrawing())}"RadioButton"!==i.type&&"SignatureField"!==i.type&&this.updateDataInSession(this.currentTarget)}},e.prototype.clearFormFieldStorage=function(){Fi.sessionStorageManager.getWindowSessionStorageSize();if(this.pdfViewerBase.isDeviceiOS||this.pdfViewerBase.isMacSafari,this.pdfViewerBase.isStorageExceed){for(var e=Fi.sessionStorageManager.getSessionLength(),t=[],i=0;i<e;i++)Fi.sessionStorageManager.getKey(i)&&Fi.sessionStorageManager.getKey(i).split("_")[3]&&("formfields"===Fi.sessionStorageManager.getKey(i).split("_")[3]?(this.pdfViewerBase.formFieldStorage[Fi.sessionStorageManager.getKey(i)]=Fi.sessionStorageManager.getItem(Fi.sessionStorageManager.getKey(i)),t.push(Fi.sessionStorageManager.getKey(i))):"formDesigner"===Fi.sessionStorageManager.getKey(i).split("_")[3]&&(this.pdfViewerBase.formFieldStorage[Fi.sessionStorageManager.getKey(i)]=Fi.sessionStorageManager.getItem(Fi.sessionStorageManager.getKey(i)),t.push(Fi.sessionStorageManager.getKey(i))));if(t)for(i=0;i<t.length;i++)Fi.sessionStorageManager.removeItem(t[parseInt(i.toString(),10)])}},e.prototype.clearFormFields=function(e){var i=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(t.isNullOrUndefined(i)&&(i=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner")),i){var n=void 0;n=e?[e]:JSON.parse(i);for(var o=!0,r=0;r<n.length;r++){var a=n[parseInt(r.toString(),10)];if(e&&(a.uniqueID=e.id,a.Name=e.type),this.currentTarget=document.getElementById(a.uniqueID),"Textbox"===a.Name||"PasswordField"===a.Name)this.currentTarget.value="";else if("RadioButton"===a.Name)o&&(this.currentTarget.checked=!0,this.updateDataInSession(this.currentTarget),o=!1);else if("DropDown"===a.Name||"DropdownList"===a.Name||"ListBox"===a.Name)this.currentTarget.options.length=0,this.pdfViewer.nameTable[this.currentTarget.id.split("_")[0]].options=[];else if("CheckBox"===a.Name)this.currentTarget.checked=!1;else if("SignatureField"===a.Name||"InitialField"===a.Name){var s=this.pdfViewer.nameTable[a.uniqueID];"annotations"!==s.propName&&(s=this.pdfViewer.nameTable[a.uniqueID+"_content"]),s&&(this.currentTarget&&"e-pdfviewer-signatureformfields-signature"===this.currentTarget.className&&(this.currentTarget.className="e-pdfviewer-signatureformfields",this.currentTarget.style.pointerEvents="",this.currentTarget.parentElement.style.pointerEvents="",this.updateDataInSession(this.currentTarget,""),e&&(e.value="",e.signatureType=[e.signatureType],e.signatureType[0]="")),this.pdfViewer.annotation.deleteAnnotationById(s.id),this.currentTarget=null)}"SignatureField"!==a.Name&&"ink"!==a.Name&&"RadioButton"!==a.Name&&this.updateDataInSession(this.currentTarget)}}},e.prototype.ConvertPointToPixel=function(e){return e*(96/72)},e.prototype.destroy=function(){this.currentTarget=null,this.readOnlyCollection=[],this.pdfViewerBase&&this.pdfViewerBase.signatureModule&&this.pdfViewerBase.signatureModule.destroy()},e.prototype.getModuleName=function(){return"FormFields"},e.prototype.getTextWidth=function(e,t,i){var n,o=document.createElement("canvas"),r=o.getContext("2d");t&&(n=t+"px "+i),r.font=n||getComputedStyle(document.body).font;var a=r.measureText(e).width;return this.pdfViewerBase.releaseCanvas(o),a},e.prototype.getFontSize=function(e){return e},e}(),ro=function(){function a(e,t){this.formFieldTooltips=[],this.isFormFieldExistingInCollection=!1,this.multilineCheckboxCheckedState=!1,this.formFieldListItemCollection=[],this.formFieldListItemDataSource=[],this.isInitialField=!1,this.isSetFormFieldMode=!1,this.isAddFormFieldProgrammatically=!1,this.isAddFormFieldUi=!1,this.increasedSize=5,this.defaultZoomValue=1,this.defaultFontSize=10,this.signIndicatorPadding=3,this.signIndicatorMinimunFontSize=1,this.signatureFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isVisibilityChanged:!1,isNameChanged:!1,isPrintChanged:!1,isTooltipChanged:!1,isThicknessChanged:!1},this.initialFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isVisibilityChanged:!1,isNameChanged:!1,isPrintChanged:!1,isTooltipChanged:!1,isThicknessChanged:!1},this.textFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isAlignmentChanged:!1,isFontSizeChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isSelected:!1,isFontFamilyChanged:!1,isFontStyle:!1,isValueChanged:!1,isMaXLength:!1,isColorChanged:!1,isMultilineChanged:!1},this.passwordFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isAlignmentChanged:!1,isFontSizeChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isSelected:!1,isFontFamilyChanged:!1,isFontStyle:!1,isValueChanged:!1,isMaXLength:!1,isColorChanged:!1},this.checkBoxFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isCheckedChanged:!1,isValueChanged:!1},this.radioButtonFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isSelectedChanged:!1,isValueChanged:!1},this.dropdownFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isAlignmentChanged:!1,isFontSizeChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isSelected:!1,isFontFamilyChanged:!1,isFontStyle:!1,isColorChanged:!1,isOptionChanged:!1},this.listBoxFieldPropertyChanged={isReadOnlyChanged:!1,isRequiredChanged:!1,isBackgroundColorChanged:!1,isBorderColorChanged:!1,isAlignmentChanged:!1,isFontSizeChanged:!1,isNameChanged:!1,isToolTipChanged:!1,isThicknessChanged:!1,isVisibilityChanged:!1,isPrintChanged:!1,isSelected:!1,isFontFamilyChanged:!1,isFontStyle:!1,isColorChanged:!1,isOptionChanged:!1},this.disableSignatureClickEvent=!1,this.formFieldIndex=0,this.formFieldIdIndex=0,this.isProgrammaticSelection=!1,this.isShapeCopied=!1,this.isFormFieldSizeUpdated=!1,this.isDrawHelper=!1,this.isFormFieldUpdated=!1,this.isPropertyDialogOpen=!1,this.pdfViewer=e,this.pdfViewerBase=t}return a.prototype.drawHelper=function(e,t,i){var n=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+this.pdfViewerBase.activeElements.activePageID);if(null!==document.getElementById(this.pdfViewer.element.id+"_pageCanvas_"+this.pdfViewerBase.activeElements.activePageID)&&null!==n){var o=this.pdfViewerBase.getZoomFactor(),r={id:"FormField_helper_html_element",class:"foreign-object"},a=this.updateFormFieldInitialSize(t,e),s=this.createHtmlElement("div",r);if(this.isDrawHelper=!0,"SignatureField"===e||"InitialField"===e)s.appendChild(this.createSignatureDialog(this.pdfViewer,t,a));else if("DropdownList"===e){l={id:"dropdown_helper"};s.appendChild(this.createDropDownList(l,t))}else if("ListBox"===e){var l={id:"listbox_helper"};s.appendChild(this.createListBox(l,t))}else s.appendChild(this.createInputElement(e,t,a));n.appendChild(s);var d=this.pdfViewerBase.getMousePosition(i);s.style.cssText="height: "+a.height*o+"px;width: "+a.width*o+"px;\n            left: "+d.x*o+"px;top: "+d.y*o+"px;position: absolute;opacity: 0.5;"}},a.prototype.drawHTMLContent=function(e,n,o,r,a,s,l,d){var A=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+r),h=document.getElementById(this.pdfViewer.element.id+"_pageCanvas_"+r);if(null===document.getElementById("form_field_"+n.id+"_html_element")&&null!==n&&null!==h&&A){var p=this.pdfViewerBase.getZoomFactor(),c={id:"form_field_"+n.id+"_html_element",class:"foreign-object"},g=this.createHtmlElement("div",c),u={id:n.id+"_html_element",class:"foreign-object"},f=this.createHtmlElement("div",u);"TimesRoman"===o.fontFamily&&(o.fontFamily="Times New Roman"),n.template="SignatureField"===e||"InitialField"===e?f.appendChild(this.createSignatureDialog(a,o)):"DropdownList"===e?f.appendChild(this.createDropDownList(n,o)):"ListBox"===e?f.appendChild(this.createListBox(n,o)):f.appendChild(this.createInputElement(e,o));var m=document.createElement("div");if(m.id=o.id+"_designer_name",m.style.fontSize=this.defaultFontSize+"px",m.className="e-pv-show-designer-name",this.pdfViewer.designerMode?(m.innerHTML=o.name,m.style.position="absolute"):(m.innerHTML="",m.style.position="initial"),"Checkbox"===e&&t.Browser.isDevice){var w=(E=o.bounds).height+this.increasedSize,C=E.width+this.increasedSize,B={id:o.id+"_outer_div",className:"e-pv-checkbox-outer-div"},S=t.createElement("div",B);S.style.cssText="height: "+w*p+"px;width: "+C*p+"px;\n                left: "+E.x*p+"px;top: "+E.y*p+"px;position: absolute;opacity: 1;",f.appendChild(m),S.addEventListener("click",this.setCheckBoxState.bind(this)),g.appendChild(f),A.appendChild(S),S.appendChild(g)}else f.appendChild(m),g.appendChild(f),A.appendChild(g);if("RadioButton"===e&&document.getElementsByClassName("e-pv-radiobtn-span").length>0)for(var y=document.getElementsByClassName("e-pv-radiobtn-span"),I=0;I<y.length;I++)if(y[parseInt(I.toString(),10)].id.split("_")[0]===o.id){var E=this.getCheckboxRadioButtonBounds(o);y[parseInt(I.toString(),10)].style.width=E.width/2+"px",y[parseInt(I.toString(),10)].style.height=E.height/2+"px",(parseInt(y[parseInt(I.toString(),10)].style.width,10)<=1||parseInt(y[parseInt(I.toString(),10)].style.height,10)<=1)&&(y[parseInt(I.toString(),10)].style.width="1px",y[parseInt(I.toString(),10)].style.height="1px",y[parseInt(I.toString(),10)].style.margin="1px")}x=i.cornersPointsBeforeRotation(n).topLeft;if("Checkbox"===e&&t.Browser.isDevice?f.style.cssText="height: "+n.actualSize.height*p+"px;\n                width: "+n.actualSize.width*p+"px;left: "+x.x*p+"px;top: "+x.y*p+"px;\n                transform: rotate("+(n.rotateAngle+n.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(n.visible?"visible":"hidden")+";\n                opacity: "+n.style.opacity+";":f.style.cssText="height: "+n.actualSize.height*p+"px;\n                width: "+n.actualSize.width*p+"px;left: "+x.x*p+"px;top: "+x.y*p+"px;\n                position: absolute;transform: rotate("+(n.rotateAngle+n.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(n.visible?"visible":"hidden")+";\n                opacity: "+n.style.opacity+";",this.updateFormDesignerFieldInSessionStorage(x,n,e,o),("SignatureField"===e||"InitialField"===e)&&o.value&&"Addition"!==d){var v=""!==this.pdfViewer.drawing.copiedElementID?this.pdfViewer.drawing.copiedElementID+"_content":n.id,b=void 0;if((b=t.isNullOrUndefined(this.pdfViewer.nameTable[""+v])?o.value:this.pdfViewer.nameTable[""+v].value?this.pdfViewer.nameTable[""+v].value:this.pdfViewer.nameTable[""+v].data)&&this.pdfViewer.formFieldsModule){var V=b.indexOf("base64")>-1?"Image":b.startsWith("M")&&b.split(",")[1]&&b.split(",")[1].split(" ")[1].startsWith("L")||b.startsWith("M")&&b.split(" ")[3].startsWith("L")?"Path":"Type";this.pdfViewerBase.isSignaturePathData(b)&&(V="Path"),this.pdfViewer.formFieldsModule.drawSignature(V,b,n.template,o.fontFamily)}}Q=this.getFormFieldAddEventArgs(o);if(this.pdfViewer.isFormFieldsLoaded&&!l||this.pdfViewerBase.updateDocumentEditedProperty(!0),this.isSetFormFieldMode||l){var D=this.pdfViewerBase.activeElements.activePageID?this.pdfViewerBase.activeElements.activePageID:Q.pageNumber-1;this.pdfViewer.fireFormFieldAddEvent("formFieldAdd",Q,D)}this.isSetFormFieldMode=!1}else{var x=i.cornersPointsBeforeRotation(n).topLeft;if(this.updateFormDesignerFieldInSessionStorage(x,n,e,o),l){var Q=this.getFormFieldAddEventArgs(o);this.pdfViewer.fireFormFieldAddEvent("formFieldAdd",Q,r)}}return n.template},a.prototype.getFormFieldAddEventArgs=function(e){return{name:e.name,id:e.id,value:e.value,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,color:e.color,backgroundColor:e.backgroundColor,alignment:e.alignment,isReadonly:e.isReadonly,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:e.rotateAngle,tooltip:e.tooltip,borderColor:e.borderColor,thickness:e.thickness,options:e.options,pageNumber:e.pageNumber,isChecked:e.isChecked,isSelected:e.isSelected,customData:e.customData,bounds:e.bounds,formFieldAnnotationType:e.formFieldAnnotationType,isMultiline:e.isMultiline,insertSpaces:e.insertSpaces}},a.prototype.updateFormDesignerFieldInSessionStorage=function(e,t,i,n){var o=this.pdfViewerBase.getZoomFactor(),r={id:t.id,lineBound:{X:e.x*o,Y:e.y*o,Width:t.actualSize.width*o,Height:t.actualSize.height*o},name:n.name,zoomValue:o,pageNumber:n.pageNumber,value:n.value,formFieldAnnotationType:i,isMultiline:n.isMultiline,signatureType:n.signatureType,signatureBound:n.signatureBound,fontFamily:n.fontFamily,fontSize:n.fontSize,fontStyle:n.fontStyle,fontColor:this.getRgbCode(n.color),borderColor:this.getRgbCode(n.borderColor),thickness:n.thickness,backgroundColor:this.getRgbCode(n.backgroundColor),textAlign:n.alignment,isChecked:n.isChecked,isSelected:n.isSelected,isReadonly:n.isReadonly,font:{isBold:n.font.isBold,isItalic:n.font.isItalic,isStrikeout:n.font.isStrikeout,isUnderline:n.font.isUnderline},selectedIndex:n.selectedIndex,radiobuttonItem:null,option:n.options?n.options:[],visibility:n.visibility,maxLength:n.maxLength,isRequired:n.isRequired,isPrint:n.isPrint,rotation:n.rotateAngle,tooltip:n.tooltip,insertSpaces:n.insertSpaces,customData:n.customData};if("RadioButton"===r.formFieldAnnotationType&&(r.radiobuttonItem=[],r.radiobuttonItem.push({id:t.id,lineBound:{X:e.x*o,Y:e.y*o,Width:t.actualSize.width*o,Height:t.actualSize.height*o},name:n.name,zoomValue:o,pageNumber:n.pageNumber,value:n.value,formFieldAnnotationType:i,fontFamily:n.fontFamily,fontSize:n.fontSize,fontStyle:n.fontStyle,fontColor:this.getRgbCode(n.color),borderColor:this.getRgbCode(n.borderColor),thickness:n.thickness,backgroundColor:this.getRgbCode(n.backgroundColor),textAlign:n.alignment,isChecked:n.isChecked,isSelected:n.isSelected,isReadonly:n.isReadonly,visibility:n.visibility,maxLength:n.maxLength,isRequired:n.isRequired,isPrint:n.isPrint,rotation:0,tooltip:n.tooltip})),!this.getRadioButtonItem(r,n)){for(var a=0;a<this.pdfViewerBase.formFieldCollection.length;a++)this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].Key===r.id&&(this.pdfViewerBase.formFieldCollection.splice(a,1),this.pdfViewerBase.formFieldCollection.push({Key:t.id,FormField:r}),this.isFormFieldExistingInCollection=!0);this.isFormFieldExistingInCollection||this.pdfViewerBase.formFieldCollection.push({Key:t.id,FormField:r}),this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.isFormFieldExistingInCollection=!1,this.pdfViewerBase.formFieldCollection.length>0?this.pdfViewerBase.enableFormFieldButton(!0):this.pdfViewerBase.enableFormFieldButton(!1)}},a.prototype.getRadioButtonItem=function(e,i){var n=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),o=!1;if(n){for(var r=JSON.parse(n),a=0;a<r.length;a++){var s=r[parseInt(a.toString(),10)],l=void 0;if("RadioButton"===e.formFieldAnnotationType&&e.radiobuttonItem&&s.FormField.radiobuttonItem)for(var d=0;d<s.FormField.radiobuttonItem.length;d++){if(s.FormField.radiobuttonItem[parseInt(d.toString(),10)].id===e.id){l={lineBound:e.lineBound,id:e.id,name:e.name,zoomValue:e.zoomValue,pageNumber:e.pageNumber,value:e.value,formFieldAnnotationType:e.formFieldAnnotationType,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontColor:this.getRgbCode(i.color),borderColor:this.getRgbCode(i.borderColor),thickness:i.thickness,backgroundColor:this.getRgbCode(i.backgroundColor),textAlign:e.textAlign,isChecked:e.isChecked,isSelected:e.isSelected,isReadonly:e.isReadonly,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:0,tooltip:e.tooltip},s.FormField.radiobuttonItem.splice(d,1),s.FormField.radiobuttonItem.push(l),t.isNullOrUndefined(this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)])||this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.name===s.FormField.name&&(this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.radiobuttonItem=s.FormField.radiobuttonItem,o=!0);break}if(e.formFieldAnnotationType===s.FormField.formFieldAnnotationType&&e.name===s.FormField.name){l={lineBound:e.lineBound,id:e.id,name:e.name,zoomValue:e.zoomValue,pageNumber:e.pageNumber,value:e.value,formFieldAnnotationType:e.formFieldAnnotationType,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontColor:this.getRgbCode(i.color),borderColor:this.getRgbCode(i.borderColor),thickness:i.thickness,backgroundColor:this.getRgbCode(i.backgroundColor),textAlign:e.textAlign,isChecked:e.isChecked,isSelected:e.isSelected,isReadonly:e.isReadonly,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:0,tooltip:e.tooltip};for(var A=!1,h=0;h<s.FormField.radiobuttonItem.length;h++)if(s.FormField.radiobuttonItem[parseInt(h.toString(),10)].id===l.id){s.FormField.radiobuttonItem[parseInt(h.toString(),10)]=l,A=!0;break}if(A||s.FormField.radiobuttonItem.push(l),!t.isNullOrUndefined(this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)])){this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.radiobuttonItem=s.FormField.radiobuttonItem,o=!0;for(var p=0;p<this.pdfViewerBase.formFieldCollection.length;p++)this.pdfViewerBase.formFieldCollection[parseInt(p.toString(),10)].Key===l.id&&this.pdfViewerBase.formFieldCollection.splice(p,1)}}}}o&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}return o},a.prototype.getRgbCode=function(e){if(!e.match(/#([a-z0-9]+)/gi)&&!e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)){var i=this.nameToHash(e);""!==i&&(e=i)}var n=e.split(",");t.isNullOrUndefined(n[1])&&(n=(e=this.getValue(e,"rgba")).split(","));var o=parseInt(n[0].split("(")[1],10),r=parseInt(n[1],10),a=parseInt(n[2],10),s=100*parseFloat(n[3]);return isNaN(s)&&(s=0),{r:o,g:r,b:a,a:s}},a.prototype.nameToHash=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",yellow:"#ffff00",yellowgreen:"#9acd32",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkred:"#8b0000",darksalmon:"#e9967a",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",indigo:"#4b0082",ivory:"#fffff0",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",olivedrab:"#6b8e23",orange:"#
10ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",pink:"#ffc0cb",plum:"#dda0dd",steelblue:"#4682b4",violet:"#ee82ee",powderblue:"#b0e0e6",purple:"#800080",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0"};return void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:""},a.prototype.getValue=function(e,t){if(t=t?t.toLowerCase():"hex","r"===e[0]){i=this.convertRgbToNumberArray(e);if("hex"===t||"hexa"===t){n=this.rgbToHex(i);return"hex"===t?n.slice(0,7):n}return"hsv"===t?this.convertToHsvString(this.rgbToHsv.apply(this,i.slice(0,3))):"hsva"===t?this.convertToHsvString(this.rgbToHsv.apply(this,i)):"null"}if("h"===e[0]){var i=this.hsvToRgb.apply(this,this.convertRgbToNumberArray(e));if("rgba"===t)return this.convertToRgbString(i);if("hex"===t||"hexa"===t){var n=this.rgbToHex(i);return"hex"===t?n.slice(0,7):n}return"rgb"===t?this.convertToRgbString(i.slice(0,3)):"null"}e=this.roundValue(e);var o=this.hexToRgb(e);return"rgb"!==t&&"hsv"!==t||(o=o.slice(0,3)),"rgba"===t||"rgb"===t?this.convertToRgbString(o):"hsva"===t||"hsv"===t?this.convertToHsvString(this.rgbToHsv.apply(this,o)):"hex"===t?e.slice(0,7):"a"===t?o[3].toString():"null"},a.prototype.convertRgbToNumberArray=function(e){return e.slice(e.indexOf("(")+1,e.indexOf(")")).split(",").map(function(e,t){return 3!==t?parseInt(e,10):parseFloat(e)})},a.prototype.convertToRgbString=function(e){return e.length?4===e.length?"rgba("+e.join()+")":"rgb("+e.join()+")":""},a.prototype.convertToHsvString=function(e){return 4===e.length?"hsva("+e.join()+")":"hsv("+e.join()+")"},a.prototype.roundValue=function(e){if(!e)return"";"#"!==e[0]&&(e="#"+e);var t=e.length;if(4===t&&(e+="f",t=5),5===t){for(var i="",n=1,o=e.length;n<o;n++)i+=e.charAt(n)+e.charAt(n);e="#"+i,t=9}return 7===t&&(e+="ff"),e},a.prototype.hexToRgb=function(e){if(!e)return[];9!==(e=e.trim()).length&&(e=this.roundValue(e));var t=Number((parseInt(e.slice(-2),16)/255).toFixed(2));e=e.slice(1,7);var i=parseInt(e,16),n=[];return n.push(i>>16&255),n.push(i>
vendor: 7,100 bytes, line 10
10>8&255),n.push(255&i),n.push(t),n},a.prototype.rgbToHsv=function(e,i,n,o){e/=255,i/=255,n/=255;var r,a=Math.max(e,i,n),s=Math.min(e,i,n),l=a,d=a-s,A=0===a?0:d/a;if(a===s)r=0;else{switch(a){case e:r=(i-n)/d+(i<n?6:0);break;case i:r=(n-e)/d+2;break;case n:r=(e-i)/d+4}r/=6}var h=[Math.round(360*r),Math.round(1e3*A)/10,Math.round(1e3*l)/10];return t.isNullOrUndefined(o)||h.push(o),h},a.prototype.hsvToRgb=function(e,i,n,o){var r,a,s;if(i/=100,n/=100,0===i)return r=a=s=n,[Math.round(255*r),Math.round(255*a),Math.round(255*s),o];e/=60;var l=Math.floor(e),d=e-l,A=n*(1-i),h=n*(1-i*d),p=n*(1-i*(1-d));switch(l){case 0:r=n,a=p,s=A;break;case 1:r=h,a=n,s=A;break;case 2:r=A,a=n,s=p;break;case 3:r=A,a=h,s=n;break;case 4:r=p,a=A,s=n;break;default:r=n,a=A,s=h}var c=[Math.round(255*r),Math.round(255*a),Math.round(255*s)];return t.isNullOrUndefined(o)||c.push(o),c},a.prototype.rgbToHex=function(e){return e.length?"#"+this.hex(e[0])+this.hex(e[1])+this.hex(e[2])+(t.isNullOrUndefined(e[3])?"":0!==e[3]?(Math.round(255*e[3])+65536).toString(16).substr(-2):"00"):""},a.prototype.updateCanvas=function(e,i){if(t.isNullOrUndefined(i)){i=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",e);var n=this.pdfViewerBase.getZoomFactor(),o=this.pdfViewerBase.getZoomRatio(n);if(i){var r=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width,a=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height;i.width=r*o,i.height=a*o,i.style.width=r*n+"px",i.style.height=a*n+"px"}}this.pdfViewer.drawing.refreshCanvasDiagramLayer(i,e)},a.prototype.rerenderFormFields=function(e){var i=this,n=this.pdfViewerBase.getZoomFactor(),o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=!1;if(o){var a=JSON.parse(o);"["===a[0]&&(a=JSON.parse(a));var s=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e),l=document.getElementById(this.pdfViewer.element.id+"_pageCanvas_"+e);if(null!==a&&null!==l&&null!==s){for(var d=this,A=0;A<a.length;A++)!function(o){var s=a[parseInt(o.toString(),10)].FormField;if(s.pageNumber===e+1&&!document.getElementById("form_field_"+s.id+"_html_element")){var l=d.pdfViewer.nameTable[a[parseInt(o.toString(),10)].Key.split("_")[0]],A=l.wrapper.children[0],h=d.pdfViewer.formFieldCollections.filter(function(e){return s.id.split("_")[0]===e.id});if(A&&h.length>0&&"visible"===h[0].visibility)if("RadioButton"===s.formFieldAnnotationType)for(var p=0;p<s.radiobuttonItem.length;p++)l=d.pdfViewer.nameTable[s.radiobuttonItem[parseInt(p.toString(),10)].id.split("_")[0]],A=l.wrapper.children[0],s.radiobuttonItem[parseInt(p.toString(),10)]=d.renderFormFieldsInZooming(A,s.radiobuttonItem[parseInt(p.toString(),10)],l,n),d.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.radiobuttonItem[parseInt(p.toString(),10)].lineBound=s.radiobuttonItem[parseInt(p.toString(),10)].lineBound,d.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.radiobuttonItem[parseInt(p.toString(),10)].zoomValue=n;else{var c=d.pdfViewerBase.formFieldCollection.filter(function(e){return e.FormField.id===s.id});s&&""===s.value&&(s.value=c[0]?c[0].FormField.value:"",s.signatureType=c[0]?c[0].FormField.signatureType:""),t.isNullOrUndefined(s)||(s.visibility=h[0].visibility,c[0].FormField.visibility=h[0].visibility);var g=d.renderFormFieldsInZooming(A,s,l,n);if("SignatureField"===s.formFieldAnnotationType||"InitialField"===s.formFieldAnnotationType){var u=d;a.filter(function(e){e.FormField.name!==s.name||e.FormField.id===s.id||t.isNullOrUndefined(u.pdfViewer.nameTable[e.FormField.id])||""===u.pdfViewer.nameTable[e.FormField.id].value||(s.value=u.pdfViewer.nameTable[e.FormField.id].value,s.signatureType="Text"===e.FormField.signatureType?"Type":e.FormField.signatureType,""!==s.value&&(s.signatureBound=e.FormField.signatureBound))}),!t.isNullOrUndefined(u.pdfViewer.nameTable[s.id])&&""!==u.pdfViewer.nameTable[s.id].value||""===s.value||(d.pdfViewer.formFieldsModule&&d.pdfViewer.formFieldsModule.drawSignature(s.signatureType,s.value,s),r=!0)}s.lineBound=g.lineBound,s.signatureBound&&(s.signatureBound=g.signatureBound,d.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.signatureBound=s.signatureBound,"SignatureField"!==s.formFieldAnnotationType&&"InitialField"!==s.formFieldAnnotationType||"Image"!==s.signatureType||!r?t.isNullOrUndefined(d.pdfViewer.nameTable[A.id.split("_")[0]+"_content"])||(d.pdfViewer.nameTable[A.id.split("_")[0]+"_content"].signatureBound=s.signatureBound):setTimeout(function(){t.isNullOrUndefined(i.pdfViewer.nameTable[A.id.split("_")[0]+"_content"])||(i.pdfViewer.nameTable[A.id.split("_")[0]+"_content"].signatureBound=s.signatureBound)},10)),d.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.lineBound=s.lineBound,d.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.zoomValue=n}}if(d.pdfViewerBase.isFocusField&&d.pdfViewerBase.focusField){var f=document.getElementById(d.pdfViewerBase.focusField.id);f&&("SignatureField"!==d.pdfViewerBase.focusField.type&&"InitialField"!==d.pdfViewerBase.focusField.type||!d.pdfViewer.formDesignerModule?f.focus():f.parentElement.focus(),d.pdfViewerBase.isFocusField=!1,d.pdfViewerBase.focusField=[])}}(A);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}},a.prototype.renderFormFieldsInZooming=function(e,n,o,r){if(e){var a={id:"form_field_"+e.id+"_html_element",class:"foreign-object"},s=this.createHtmlElement("div",a),l={id:e.id+"_html_element",class:"foreign-object"},d=this.createHtmlElement("div",l);t.isNullOrUndefined(n)||(o.visibility=n.visibility),"SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType?(this.disableSignatureClickEvent=!0,o.value=n.value,o.signatureType=n.signatureType,o.signatureBound=n.signatureBound,e.template=d.appendChild(this.createSignatureDialog(this.pdfViewer,o)),this.disableSignatureClickEvent=!1):"DropdownList"===n.formFieldAnnotationType?e.template=d.appendChild(this.createDropDownList(e,o)):"ListBox"===n.formFieldAnnotationType?e.template=d.appendChild(this.createListBox(e,o)):e.template=d.appendChild(this.createInputElement(n.formFieldAnnotationType,o));var A=document.createElement("div");A.id=o.id+"_designer_name",A.style.fontSize=r>.5?this.defaultFontSize+"px":"6px",A.className="e-pv-show-designer-name",this.pdfViewer.designerMode?(A.innerHTML=o.name,A.style.position="absolute"):(A.innerHTML="",A.style.position="initial"),d.appendChild(A),s.appendChild(d);var h=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+(n.pageNumber-1));h.appendChild(s),"RadioButton"===o.formFieldAnnotationType&&document.getElementsByClassName("e-pv-radiobtn-span").length;var p=i.cornersPointsBeforeRotation(o.wrapper.children[0]).topLeft;if("Checkbox"===n.formFieldAnnotationType&&t.Browser.isDevice){var c=e.actualSize.height+this.increasedSize,g=e.actualSize.width+this.increasedSize,u={id:e.id+"_outer_div",className:"e-pv-checkbox-outer-div"},f=t.createElement("div",u);f.style.cssText="height: "+c*r+"px;width: "+g*r+"px;\n                left: "+p.x*r+"px;
10top: "+p.y*r+"px;position: absolute;opacity: 1;",f.appendChild(s),f.addEventListener("click",this.setCheckBoxState.bind(this)),h.appendChild(f),d.style.cssText="height: "+e.actualSize.height*r+"px;\n                width: "+e.actualSize.width*r+"px;left: "+p.x*r+"px;top: "+p.y*r+"px;\n                transform: rotate("+(e.rotateAngle+e.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(e.visible?"visible":"hidden")+";\n                opacity: "+e.style.opacity+";"}else d.style.cssText="height: "+e.actualSize.height*r+"px;\n                width: "+e.actualSize.width*r+"px;left: "+p.x*r+"px;top: "+p.y*r+"px;\n                position: absolute;transform: rotate("+(e.rotateAngle+e.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(e.visible?"visible":"hidden")+";\n                opacity: "+e.style.opacity+";";if(n.lineBound={X:p.x*r,Y:p.y*r,Width:e.actualSize.width*r,Height:e.actualSize.height*r},n.signatureBound&&o.wrapper.children[1]){var m=o.wrapper.children[1].bounds;n.signatureBound.x=m.x*r,n.signatureBound.y=m.y*r,n.signatureBound.width=m.width*r,n.signatureBound.height=m.height*r}}return n},a.prototype.updateFormFieldInitialSize=function(e,t){var i=this.pdfViewerBase.getZoomFactor();switch(t){case"Textbox":case"PasswordField":e.width=200*i,e.height=24*i;break;case"SignatureField":case"InitialField":e.width=200*i,e.height=63*i;break;case"Checkbox":case"RadioButton":e.width=20*i,e.height=20*i;break;case"DropdownList":e.width=200*i,e.height=24*i;break;case"ListBox":e.width=198*i,e.height=66*i}return{width:e.width,height:e.height}},a.prototype.updateHTMLElement=function(e){var n=e.wrapper.children[0],o=this.pdfViewerBase.getZoomFactor();if(n){var r=document.getElementById(n.id+"_html_element");if(!t.isNullOrUndefined(r)){var a=i.cornersPointsBeforeRotation(e.wrapper.children[0]).topLeft;r.style.cssText="height: "+n.actualSize.height*o+"px;\n                width: "+n.actualSize.width*o+"px;left: "+a.x*o+"px;top: "+a.y*o+"px;\n                position: absolute;transform: rotate("+(n.rotateAngle+n.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(n.visible?"visible":"hidden")+";\n                opacity: "+n.style.opacity+";";var s=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner");if("RadioButton"===e.formFieldAnnotationType){var l=r.firstElementChild.firstElementChild,d=r.firstElementChild.firstElementChild.lastElementChild;n.actualSize.width>n.actualSize.height?(r.firstElementChild.style.display="inherit",l.style.width=l.style.height=n.actualSize.height*o+"px",d.style.width=d.style.height=n.actualSize.height/2+"px"):(r.firstElementChild.style.display="flex",l.style.width=l.style.height=n.actualSize.width*o+"px",d.style.width=d.style.height=n.actualSize.width/2+"px"),o<1&&l.style.width<=20&&l.style.height<=20?d.style.margin=Math.round(parseInt(l.style.width,10)/3.5)+"px":d.style.margin=Math.round(parseInt(l.style.width,10)/4)+"px"}if("Checkbox"===e.formFieldAnnotationType){var l=r.firstElementChild.firstElementChild,d=r.firstElementChild.firstElementChild.lastElementChild.firstElementChild;if(n.actualSize.width>n.actualSize.height?(r.firstElementChild.style.display="inherit",l.style.width=l.style.height=n.actualSize.height*o+"px",d.style.width=n.actualSize.height/5*o+"px",d.style.height=n.actualSize.height/2.5*o+"px",d.style.left=n.actualSize.height/2.5*o+"px",d.style.top=n.actualSize.height/5*o+"px"):(r.firstElementChild.style.display="flex",l.style.width=l.style.height=n.actualSize.width*o+"px",d.style.width=n.actualSize.width/5*o+"px",d.style.height=n.actualSize.width/2.5*o+"px",d.style.left=n.actualSize.width/2.5*o+"px",d.style.top=n.actualSize.width/5*o+"px"),-1!==d.className.indexOf("e-pv-cb-checked")){var A=parseInt(l.style.width,10);d.style.borderWidth=A>20?"3px":A<=15?"1px":"2px"}}if("SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){var h=r.firstElementChild.firstElementChild,p=h.nextElementSibling,c=this.getBounds(p),g={height:n.actualSize.height,width:n.actualSize.width,signatureIndicatorSettings:{text:p.textContent,width:c.width,height:c.height},initialIndicatorSettings:{text:p.textContent,width:c.width,height:c.height}};this.updateSignatureandInitialIndicator(e,g,h)}for(var u=JSON.parse(s),f=0;f<u.length;f++)if("RadioButton"===u[parseInt(f.toString(),10)].FormField.formFieldAnnotationType){for(var m=0;m<u[parseInt(f.toString(),10)].FormField.radiobuttonItem.length;m++)if(n.id===u[parseInt(f.toString(),10)].FormField.radiobuttonItem[parseInt(m.toString(),10)].id){this.pdfViewerBase.formFieldCollection[parseInt(f.toString(),10)].FormField.radiobuttonItem[parseInt(m.toString(),10)].lineBound={X:a.x*o,Y:a.y*o,Width:n.actualSize.width*o,Height:n.actualSize.height*o},this.pdfViewerBase.formFieldCollection[parseInt(f.toString(),10)].FormField.radiobuttonItem[parseInt(m.toString(),10)].zoomValue=o;break}}else if(u[parseInt(f.toString(),10)].Key===n.id){if(u[parseInt(f.toString(),10)].FormField.lineBound={X:a.x*o,Y:a.y*o,Width:n.actualSize.width*o,Height:n.actualSize.height*o},u[parseInt(f.toString(),10)].FormField.signatureBound){var w=a.x*o+n.actualSize.width*o/2;w-=u[parseInt(f.toString(),10)].FormField.signatureBound.width/2;var C=a.y*o+n.actualSize.height*o/2;C-=u[parseInt(f.toString(),10)].FormField.signatureBound.height/2,u[parseInt(f.toString(),10)].FormField.signatureBound.x=w,u[parseInt(f.toString(),10)].FormField.signatureBound.y=C,this.pdfViewerBase.formFieldCollection[parseInt(f.toString(),10)].FormField.signatureBound=u[parseInt(f.toString(),10)].FormField.signatureBound,this.pdfViewer.nameTable[n.id.split("_")[0]+"_content"].signatureBound=u[parseInt(f.toString(),10)].FormField.signatureBound}this.pdfViewerBase.formFieldCollection[parseInt(f.toString(),10)].FormField.lineBound=u[parseInt(f.toString(),10)].FormField.lineBound}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}}},a.prototype.getCheckboxRadioButtonBounds=function(e,t,i){var n=i?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor(),o=0,r=0,a="";return t?t.width>t.height?(o=r=t.height*n,a="inherit"):(o=r=t.width*n,a="flex"):e&&(e.bounds.width>e.bounds.height?(o=r=e.bounds.height*n,a="inherit"):(o=r=e.bounds.width*n,a="flex")),{width:o,height:r,display:a}},a.prototype.updateSessionFormFieldProperties=function(e){var i=this.pdfViewerBase.getZoomFactor(),n=e.wrapper.children[0],o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o);if(!t.isNullOrUndefined(n))for(var a=0;a<r.length;a++)if("RadioButton"===r[parseInt(a.toString(),10)].FormField.formFieldAnnotationType){for(var s=0;s<r[parseInt(a.toString(),10)].FormField.radiobuttonItem.length;s++)if(n.id===r[parseInt(a.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].id){var l={id:n.id,lineBound:{X:n.bounds.x*i,Y:n.bounds.y*i,Width:n.bounds.width*i,Height:n.bounds.height*i},name:e.name,zoomValue:i,pageNumber:e.pageNumber,value:e.value,formFieldAnnotationType:e.formFieldAnnotationType,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontColor:this.getRgbCode(e.color),backgroundColor:this.getRgbCode(e.backgroundColor),borderColor:this.getRgbCode(e.borderColor),thickness:e.thickness,textAlign:e.alignment,isChecked:e.isChecked,isSelected:e.isSelected,isReadonly:e.isReadonly,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:0,tooltip:e.tooltip,isMultiline:e.isMultiline,insertSpaces:e.insertSpaces,isTransparent:e.isTransparent,zIndex:e.zIndex,customData:e.customData};r[parseInt(a.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]=l,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)]&&this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField&&this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]&&(this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]=l,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.tooltip=l.tooltip);break}}else if(r[parseInt(a.toString(),10)].Key===n.id){var d={id:n.id,lineBound:{X:n.bounds.x*i,Y:n.bounds.y*i,Width:n.bounds.width*i,Height:n.bounds.height*i},name:e.name,zoomValue:i,pageNumber:e.pageNumber,value:e.value,formFieldAnnotationType:e.formFieldAnnotationType,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontColor:this.getRgbCode(e.color),backgroundColor:this.getRgbCode(e.backgroundColor),borderColor:this.getRgbCode(e.borderColor),thickness:e.thickness,textAlign:e.alignment,isChecked:e.isChecked,isSelected:e.isSelected,isReadonly:e.isReadonly,font:{isBold:e.font.isBold,isItalic:e.font.isItalic,isStrikeout:e.font.isStrikeout,isUnderline:e.font.isUnderline},selectedIndex:e.selectedIndex,radiobuttonItem:null,option:e.options?e.options:[],visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:0,tooltip:e.tooltip,isMultiline:e.isMultiline,insertSpaces:e.insertSpaces,isTransparent:e.isTransparent,zIndex:e.zIndex,customData:e.customData};if("SignatureField"===r[parseInt(a.toString(),10)].FormField.formFieldAnnotationType||"InitialField"===r[parseInt(a.toString(),10)].FormField.formFieldAnnotationType){var A=e,h={id:n.id,lineBound:{X:n.bounds.x*i,Y:n.bounds.y*i,Width:n.bounds.width*i,Height:n.bounds.height*i},name:e.name,zoomValue:i,pageNumber:e.pageNumber,value:e.value,formFieldAnnotationType:e.formFieldAnnotationType,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,fontColor:this.getRgbCode(e.color),backgroundColor:this.getRgbCode(e.backgroundColor),borderColor:this.getRgbCode(e.borderColor),thickness:e.thickness,textAlign:e.alignment,isChecked:e.isChecked,isSelected:e.isSelected,isReadonly:e.isReadonly,font:{isBold:e.font.isBold,isItalic:e.font.isItalic,isStrikeout:e.font.isStrikeout,isUnderline:e.font.isUnderline},selectedIndex:e.selectedIndex,radiobuttonItem:null,option:e.options?e.options:[],visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,rotation:0,tooltip:e.tooltip,signatureType:e.signatureType,signatureBound:A.signatureBound,isMultiline:e.isMultiline,insertSpaces:e.insertSpaces,isTransparent:e.isTransparent,zIndex:e.zIndex,customData:e.customData};r[parseInt(a.toString(),10)].FormField=h,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField=h}else r[parseInt(a.toString(),10)].FormField=d,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField=d;break}this.pdfViewerBase.formFieldCollection.length>0?this.pdfViewerBase.enableFormFieldButton(!0):this.pdfViewerBase.enableFormFieldButton(!1),this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.createSignatureDialog=function(i,n,o,r){this.isInitialField=!t.isNullOrUndefined(n.isInitialField)&&n.isInitialField,this.pdfViewerBase.isInitialField=this.isInitialField,this.pdfViewerBase.isInitialField=n.isInitialField;var a=t.createElement("div");a.className="foreign-object",a.style.position="absolute",a.style.width="100%",a.style.height="100%",a.addEventListener("focus",this.focusFormFields.bind(this)),a.addEventListener("blur",this.blurFormFields.bind(this));var s=t.createElement("div");s.style.width="100%",s.style.height="100%",s.style.position="absolute",s.style.backgroundColor="transparent",t.isNullOrUndefined(n.thickness)||(s.className="e-pdfviewer-signatureformfields-signature",s.style.border=n.thickness+"px solid #303030"),t.isNullOrUndefined(n.value)||""===n.value?(s.className="e-pdfviewer-signatureformfields",s.style.pointerEvents=""):(s.className="e-pdfviewer-signatureformfields-signature",s.style.pointerEvents="none"),s.id=n.id,s.disabled=n.isReadonly,a.appendChild(s);var l=this.pdfViewer.signatureFieldSettings,d=this.pdfViewer.initialFieldSettings;l.signatureIndicatorSettings||(l.signatureIndicatorSettings={opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black"}),l.signatureDialogSettings||(l.signatureDialogSettings={displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1}),d.initialIndicatorSettings||(d.initialIndicatorSettings={opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black"}),d.initialDialogSettings||(d.initialDialogSettings={displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1});var A;A=n.isInitialField?n.signatureIndicatorSettings?n.signatureIndicatorSettings:d.initialIndicatorSettings:n.signatureIndicatorSettings?n.signatureIndicatorSettings:l.signatureIndicatorSettings;var h=19===this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.width?n.isInitialField?30:25:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.width,p=A.width?A.width:n.signatureIndicatorSettings&&n.signatureIndicatorSettings.width?n.signatureIndicatorSettings.width:h,c=10===this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.height?13:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.height,g=A.height?A.height:n.signatureIndicatorSettings&&n.signatureIndicatorSettings.height?n.signatureIndicatorSettings.height:c,u=A.backgroundColor?"orange"===A.backgroundColor?"#FFE48559":A.backgroundColor:n.signatureIndicatorSettings&&n.signatureIndicatorSettings.backgroundColor?n.signatureIndicatorSettings.backgroundColor:"#FFE48559",f=n.bounds?n.bounds.width:o.width,m=n.bounds?n.bounds.height:o.height,w=g>m/2?m/2:g,C=p>f/2?f/2:p,B=10;B=n.signatureIndicatorSettings&&n.signatureIndicatorSettings.fontSize?n.signatureIndicatorSettings.fontSize>w/2?10:n.signatureIndicatorSettings.fontSize:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.fontSize>w/2?10:this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.fontSize;var S=t.createElement("span");d.initialIndicatorSettings||(d.initialIndicatorSettings={opacity:1,backgroundColor:"orange",width:19,height:10,fontSize:10,text:null,color:"black"}),d.initialDialogSettings||(d.initialDialogSettings={displayMode:e.DisplayMode.Draw|e.DisplayMode.Text|e.DisplayMode.Upload,hideSaveSignature:!1});var y=n.signatureIndicatorSettings?n.signatureIndicatorSettings.text:null;"InitialField"===n.formFieldAnnotationType?(S.id="initialIcon_"+n.pageIndex+"_"+this.setFormFieldIdIndex(),S.style.fontFamily="Helvetica",this.setIndicatorText(S,y,this.pdfViewer.initialFieldSettings.initialIndicatorSettings.text,"Initial")):(S.style.height="",
vendor: 18,130 bytes, line 10
10S.style.width="",S.id="signIcon_"+n.pageIndex+"_"+this.setFormFieldIdIndex(),S.style.fontFamily="Helvetica",this.setIndicatorText(S,y,this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings.text,"Sign")),S.style.overflow="hidden",S.style.whiteSpace="nowrap",S.style.padding="2px 3px 2px 1px",S.style.boxSizing="border-box";var I=this.pdfViewerBase.getZoomFactor();S.style.textAlign="left",S.style.fontSize=B*I+"px";var E=this.getBounds(S);S.style.backgroundColor=u,S.style.color=A.color,S.style.opacity=A.opacity,S.style.height=g,S.style.width=p,S.style.position="absolute";var v=this.setHeightWidth(f,C,E.width+B,I);S.style.width=v+"px";var b=this.setHeightWidth(m,w,E.height,I);if(S.style.height=b+"px",I<1&&B<=10&&B>b){var V=parseInt(S.style.height,10);S.style.fontSize=V-this.signIndicatorPadding<this.signIndicatorMinimunFontSize?this.signIndicatorMinimunFontSize+"px":V-this.signIndicatorPadding+"px"}return r||a.appendChild(S),this.updateSignInitialFieldProperties(n,n.isInitialField,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),t.isNullOrUndefined(n.tooltip)||""===n.tooltip||this.setToolTip(n.tooltip,a.firstElementChild),this.updateSignatureFieldProperties(n,a,r),a},a.prototype.setIndicatorText=function(e,t,i,n){e.innerHTML=t||(i||n)},a.prototype.getBounds=function(e){var t=e.cloneNode(!0);t.style.height="",t.style.width="",t.id=t.id+"_clonedElement",document.body.appendChild(t);var i=document.getElementById(t.id).getBoundingClientRect();return document.body.removeChild(t),i},a.prototype.updateSignatureandInitialIndicator=function(e,i,n){if(null!==n){var o=n.getBoundingClientRect(),r=this.pdfViewerBase.getZoomFactor(),a=n.nextElementSibling,s=void 0,l=void 0;if("SignatureField"===e.formFieldAnnotationType&&(s=e.signatureIndicatorSettings,l=i.signatureIndicatorSettings),"InitialField"===e.formFieldAnnotationType&&(s=e.signatureIndicatorSettings?e.signatureIndicatorSettings:this.pdfViewer.initialFieldSettings.initialIndicatorSettings,l=i.initialIndicatorSettings),a.style.width="",a.style.height="",l&&s){void 0!==l.text&&(this.setIndicatorText(a,l.text,l.text,"Sign"),s.text=l.text),l.fontSize&&(a.style.fontSize=l.fontSize>e.height/2?10:l.fontSize*r+"px",s.fontSize=l.fontSize);var d=this.getBounds(a);if(l.color&&(a.style.color=l.color,s.color=this.nameToHash(l.color)),l.backgroundColor&&(a.style.backgroundColor=l.backgroundColor,s.backgroundColor=this.nameToHash(l.backgroundColor)),t.isNullOrUndefined(l.opacity)||(a.style.opacity=l.opacity,s.opacity=l.opacity),l.width||i.width||l.text){var A=this.setHeightWidth(o.width,l.width,d.width,r);a.style.width=A+"px",s.width=A}if(l.height||i.height||l.text){var h=this.setHeightWidth(o.height,l.height,d.height,r);a.style.height=h+"px",s.height=h}}return this.updateSignatureFieldProperties(e,n,e.isPrint),e.signatureIndicatorSettings&&s&&(e.signatureIndicatorSettings=s),e}},a.prototype.setHeightWidth=function(e,t,i,n){return e/2>t&&i<t?t*n:i<=e/2?i*n:e/2*n},a.prototype.createDropDownList=function(e,i,n){var o=t.createElement("div");o.className="foreign-object",o.style.position="absolute",o.style.width="100%",o.style.height="100%",o.style.backgroundColor=i.backgroundColor;var r=document.createElement("select");r.addEventListener("change",this.dropdownChange.bind(this)),r.addEventListener("focus",this.focusFormFields.bind(this)),r.addEventListener("blur",this.blurFormFields.bind(this)),r.id=i.id,r.name="editabledropdown"+this.pdfViewerBase.activeElements.activePageID+e.id,r.setAttribute("aria-label","editabledropdown"+this.pdfViewerBase.activeElements.activePageID+e.id),r.className="e-pv-formfield-dropdown",r.style.width="100%",r.style.height="100%",r.style.position="absolute",this.updateDropdownFieldSettingsProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode);var a=i.options?i.options:[];this.updateDropdownListProperties(i,r,n);for(var s=0;s<a.length;s++){var l=document.createElement("option");l.className="e-pv-formfield-dropdown",l.value=a[parseInt(s.toString(),10)].itemValue,l.text=a[parseInt(s.toString(),10)].itemName,this.updateDropdownListProperties(i,l),r.appendChild(l)}return t.isNullOrUndefined(i.selectedIndex)||0===i.selectedIndex.length?r.selectedIndex=-1:r.selectedIndex=t.isNullOrUndefined(i.selectedIndex)?0:i.selectedIndex,o.appendChild(r),t.isNullOrUndefined(i.tooltip)||""===i.tooltip||this.setToolTip(i.tooltip,o.firstElementChild),o},a.prototype.createListBox=function(e,i,n){var o=t.createElement("div");o.className="foreign-object",o.style.position="absolute",o.style.width="100%",o.style.height="100%",o.style.backgroundColor=i.backgroundColor;var r=document.createElement("select");r.addEventListener("click",this.listBoxChange.bind(this)),r.addEventListener("focus",this.focusFormFields.bind(this)),r.addEventListener("blur",this.blurFormFields.bind(this)),r.id=i.id,r.name="editabledropdown"+this.pdfViewerBase.activeElements.activePageID+e.id,r.setAttribute("aria-label","editabledropdown"+this.pdfViewerBase.activeElements.activePageID+e.id),r.className="e-pv-formfield-listbox",r.style.width="100%",r.style.height="100%",r.style.position="absolute",r.multiple=!0,this.updatelistBoxFieldSettingsProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode);var a=i.options?i.options:[];this.updateListBoxProperties(i,r,n);for(var s=0;s<a.length;s++){var l=document.createElement("option");if(l.className="e-pv-formfield-listbox",l.value=a[parseInt(s.toString(),10)].itemValue,l.text=a[parseInt(s.toString(),10)].itemName,!t.isNullOrUndefined(i.selectedIndex))for(var d=0;d<i.selectedIndex.length;d++)s===i.selectedIndex[parseInt(d.toString(),10)]&&(l.selected=!0);r.appendChild(l)}return o.appendChild(r),t.isNullOrUndefined(i.tooltip)||""===i.tooltip||this.setToolTip(i.tooltip,o.firstElementChild),o},a.prototype.createInputElement=function(e,i,n,o){var r=this.pdfViewerBase.getZoomFactor(),a=t.createElement("div");a.className="foreign-object",a.style.position="absolute",a.style.width="100%",a.style.height="100%";var s,l,d,A=t.createElement("input"),h=t.createElement("textarea");if(A.id=i.id,A.setAttribute("aria-label",this.pdfViewer.element.id+"formfilldesigner"),A.style.position="absolute","Textbox"===e)i.isMultiline?(h=this.createTextAreaElement(A.id),this.updateTextFieldSettingProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),this.updateTextboxProperties(i,h,o)):(A=this.createTextboxElement(A.id),this.updateTextFieldSettingProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),this.updateTextboxProperties(i,A,o));else if("Checkbox"===e){var p=o?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor();a.style.display="flex",a.style.alignItems="center";g=this.getCheckboxRadioButtonBounds(i,n,o);if(a.style.display=g.display,s=t.createElement("label",{className:"e-pv-checkbox-container"}),s.style.width=i.bounds?i.bounds.width*p+"px":g.width+"px",s.style.height=i.bounds?i.bounds.height*p+"px":g.height+"px",this.isDrawHelper?s.style.cursor="crosshair":s.style.cursor="pointer",l=t.createElement("div",{className:"e-pv-checkbox-div"}),t.Browser.isDevice||(l.addEventListener("click",this.setCheckBoxState.bind(this)),l.addEventListener("focus",this.focusFormFields.bind(this)),l.addEventListener("blur",this.blurFormFields.bind(this))),l.id=i.id+"_input",d=i.isChecked?t.createElement("span",{className:"e-pv-checkbox-span e-pv-cb-checked"}):t.createElement("span",{className:"e-pv-checkbox-span e-pv-cb-unchecked"}),d.id=i.id+"_input_span",s.id=i.id+"_input_label",d.style.width=g.width/5+"px",d.style.height=g.height/2.5+"px",d.style.left=g.width/2.5+"px",d.style.top=g.height/5+"px",-1!==d.className.indexOf("e-pv-cb-checked")){c=parseInt(s.style.width,10);d.style.borderWidth=c>20?"3px":c<=15?"1px":"2px"}if(o&&(l.style.backgroundColor="rgb(218, 234, 247)",l.style.border="1px solid #303030",l.style.visibility="visible",l.style.height="100%",l.style.width="100%",l.style.position="absolute",-1!==d.className.indexOf("e-pv-cb-checked"))){d.style.border="solid #303030",d.style.position="absolute",d.style.borderLeft="transparent",d.style.borderTop="transparent",d.style.transform="rotate(45deg)";var c=parseInt(s.style.width,10);d.style.borderWidth=c>20?"3px":c<=15?"1px":"2px"}A.type="checkbox",A.style.margin="0px",A.style.width=g.width+"px",A.style.height=g.height+"px",o||this.updateCheckBoxFieldSettingsProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),this.updateCheckboxProperties(i,l),A.appendChild(s),s.appendChild(l),l.appendChild(d),o&&(A.style.outlineWidth=i.thickness+"px",A.style.outlineColor=i.borderColor,A.style.outlineStyle="solid",A.style.background=i.backgroundColor)}else if("PasswordField"===e)A.type="password",A.className="e-pv-formfield-input",A.style.width="100%",A.style.height="100%",A.style.borderStyle="solid",A.addEventListener("click",this.inputElementClick.bind(this)),A.addEventListener("focus",this.focusFormFields.bind(this)),A.addEventListener("blur",this.blurFormFields.bind(this)),A.addEventListener("change",this.getTextboxValue.bind(this)),this.updatePasswordFieldSettingProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),this.updatePasswordFieldProperties(i,A,o);else{a.style.display="flex",a.style.alignItems="center";var g=this.getCheckboxRadioButtonBounds(i,n,o);a.style.display=g.display,(s=t.createElement("label",{className:"e-pv-radiobtn-container"})).style.width=g.width+"px",s.style.height=g.height+"px",s.style.display="table",s.style.verticalAlign="middle",s.style.borderWidth=i.thickness+"px",s.style.boxShadow=i.borderColor+" 0px 0px 0px "+i.thickness+"px",s.style.borderRadius="50%",s.style.visibility=i.visibility,this.isDrawHelper?s.style.cursor="crosshair":s.style.cursor="pointer",s.style.background=i.backgroundColor,(d=t.createElement("span",{className:"e-pv-radiobtn-span"})).id=i.id+"_input_span",d.style.width=Math.floor(g.width/2)+"px",d.style.height=Math.floor(g.height/2)+"px",r<1&&g.width<=20&&g.height<=20?d.style.margin=Math.round(parseInt(s.style.width,10)/3.5)+"px":d.style.margin=Math.round(parseInt(s.style.width,10)/4)+"px",s.addEventListener("click",this.setRadioButtonState.bind(this)),s.id=i.id+"_input_label",A.type="radio",o||(A.className="e-pv-radio-btn"),A.style.margin="0px",A.addEventListener("click",function(e){e.stopPropagation()}),A.addEventListener("focus",this.focusFormFields.bind(this)),A.addEventListener("blur",this.blurFormFields.bind(this)),A.style.width=g.width+"px",A.style.height=g.height+"px",this.updateRadioButtonFieldSettingProperties(i,this.pdfViewer.isFormDesignerToolbarVisible,this.isSetFormFieldMode),this.updateRadioButtonProperties(i,A,s),s.appendChild(A),s.appendChild(d),i.isRequired&&(s.style.boxShadow="red 0px 0px 0px "+i.thickness+"px")}return"Checkbox"!==e&&"RadioButton"!==e||o?"Checkbox"===e&&o?a.appendChild(s):i.isMultiline?a.appendChild(h):a.appendChild(A):a.appendChild(s),t.isNullOrUndefined(i.tooltip)||""===i.tooltip||("RadioButton"===e?this.setToolTip(i.tooltip,s):"Textbox"===e||"PasswordField"===e?this.setToolTip(i.tooltip,a.firstElementChild):"Checkbox"===e&&this.setToolTip(i.tooltip,a.firstElementChild.lastElementChild)),this.isDrawHelper=!1,a},a.prototype.listBoxChange=function(e){for(var t=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),i=JSON.parse(t),n=null,o=this,r=0;r<i.length;r++)!function(t){if(i[parseInt(t.toString(),10)].Key.split("_")[0]===e.currentTarget.id.split("_")[0]||o.pdfViewer.nameTable[e.currentTarget.id.split("_")[0]].name===i[parseInt(t.toString(),10)].FormField.name){if(i[parseInt(t.toString(),10)].Key.split("_")[0]!==e.currentTarget.id.split("_")[0])for(var r=document.getElementById(i[parseInt(t.toString(),10)].Key.split("_")[0]+"_content_html_element").firstElementChild.firstElementChild,a=0;a<e.currentTarget.options.length;a++)r.options[parseInt(a.toString(),10)].selected=e.currentTarget.options[parseInt(a.toString(),10)].selected;i[parseInt(t.toString(),10)].FormField.selectedIndex=[];for(var s=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex,l=0;l<e.currentTarget.selectedOptions.length;l++){var d=e.currentTarget.selectedOptions[parseInt(l.toString(),10)].index,A=0;o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex&&0!==o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex.length&&(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex[0]>=0&&(A=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex.pop()),o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex.push(A));var h=i[parseInt(t.toString(),10)].FormField.option[parseInt(A.toString(),10)].itemValue;i[parseInt(t.toString(),10)].FormField.selectedIndex.push(d),o.pdfViewer.nameTable[i[parseInt(t.toString(),10)].Key.split("_")[0]].selectedIndex=i[parseInt(t.toString(),10)].FormField.selectedIndex,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex=i[parseInt(t.toString(),10)].FormField.selectedIndex;var p=i[parseInt(t.toString(),10)].FormField.option[parseInt(d.toString(),10)].itemValue;o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.value=p,o.updateFormFieldCollections(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField),n=o.pdfViewer.formFieldCollections[o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id+"_content"===i[parseInt(t.toString(),10)].FormField.id})],o.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",i[parseInt(t.toString(),10)].FormField,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,h,p)}o.pdfViewer.annotation&&o.pdfViewer.annotation.addAction(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,null,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField,"FormField Value Change","",s,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex)}}(r);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldSessions(n)},a.prototype.dropdownChange=function(e){for(var t=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),i=JSON.parse(t),n=null,o=this,r=0;r<i.length;r++)!function(t){if(i[parseInt(t.toString(),10)].Key.split("_")[0]===e.target.id.split("_")[0]||o.pdfViewer.nameTable[e.target.id.split("_")[0]].name===i[parseInt(t.toString(),10)].FormField.name){o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex=[];var r=document.getElementById(e.currentTarget.id).selectedIndex,a=0;0!==i[parseInt(t.toString(),10)].FormField.selectedIndex.length&&(a=i[parseInt(t.toString(),10)].FormField.selectedIndex.pop(),i[parseInt(t.toString(),10)].FormField.selectedIndex.push(a));var s=i[parseInt(t.toString(),10)].FormField.option[parseInt(a.toString(),10)].itemValue;o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex.push(r),i[parseInt(t.toString(),10)].FormField.selectedIndex=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex,o.pdfViewer.nameTable[i[parseInt(t.toString(),10)].Key.split("_")[0]].selectedIndex=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.selectedIndex;var l=i[parseInt(t.toString(),10)].FormField.option[parseInt(r.toString(),10)].itemValue;o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.value=l,i[parseInt(t.toString(),10)].Key.split("_")[0]!==e.target.id.split("_")[0]&&(document.getElementById(i[parseInt(t.toString(),10)].Key.split("_")[0]+"_content_html_element").firstElementChild.firstElementChild.selectedIndex=r),o.updateFormFieldCollections(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField),n=o.pdfViewer.formFieldCollections[o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id+"_content"===i[parseInt(t.toString(),10)].FormField.id})],o.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",i[parseInt(t.toString(),10)].FormField,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l),o.pdfViewer.annotation&&o.pdfViewer.annotation.addAction(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,null,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField,"FormField Value Change","",a,r)}}(r);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldSessions(n)},a.prototype.setCheckBoxState=function(e){if(t.Browser.isDevice?(e.target.classList.contains("")||e.target.classList.contains("e-pv-checkbox-outer-div")||e.target.classList.contains("e-pv-checkbox-div"))&&e.currentTarget.classList.contains("e-pv-checkbox-outer-div")&&!this.pdfViewer.designerMode:!this.pdfViewer.designerMode){var i=!1,n=void 0,o=null;if(n=t.Browser.isDevice?document.getElementById(e.target.id.split("_")[0]+"_input"):e.target,"undefined_input"!==e.target.id&&!this.pdfViewer.nameTable[e.target.id.split("_")[0]].isReadonly&&!this.pdfViewer.designerMode){n&&n.firstElementChild&&"e-pv-checkbox-span e-pv-cb-checked"===n.firstElementChild.className?(n.firstElementChild.classList.remove("e-pv-cb-checked"),n.firstElementChild.classList.add("e-pv-checkbox-span","e-pv-cb-unchecked"),i=!1):"e-pv-checkbox-span e-pv-cb-checked"===n.className?(n.classList.remove("e-pv-cb-checked"),n.classList.add("e-pv-checkbox-span","e-pv-cb-unchecked"),i=!1):(n.firstElementChild.classList.remove("e-pv-cb-unchecked"),n.firstElementChild.classList.add("e-pv-checkbox-span","e-pv-cb-checked"),i=!0);var r=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner");if(i&&-1!==n.firstElementChild.className.indexOf("e-pv-cb-checked")){var a=parseInt(e.target.parentElement.style.width,10);n.firstElementChild.style.borderWidth=a>
1020?"3px":a<=15?"1px":"2px"}for(var s=JSON.parse(r),l=this,d=0;d<s.length;d++)!function(t){if(s[parseInt(t.toString(),10)].Key.split("_")[0]===e.target.id.split("_")[0]||l.pdfViewer.nameTable[e.target.id.split("_")[0]].name===s[parseInt(t.toString(),10)].FormField.name){l.pdfViewer.nameTable[s[parseInt(t.toString(),10)].Key.split("_")[0]].isChecked=i;var n=l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.isChecked;if(s[parseInt(t.toString(),10)].FormField.isChecked=i,l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.isChecked=s[parseInt(t.toString(),10)].FormField.isChecked,s[parseInt(t.toString(),10)].Key.split("_")[0]!==e.target.id.split("_")[0]){var r=document.getElementById(s[parseInt(t.toString(),10)].Key.split("_")[0]+"_input").firstElementChild;i?(r.classList.contains("e-pv-cb-unchecked")&&r.classList.remove("e-pv-cb-unchecked"),r.classList.add("e-pv-cb-checked")):(r.classList.contains("e-pv-cb-checked")&&r.classList.remove("e-pv-cb-checked"),r.classList.add("e-pv-cb-unchecked"))}l.updateFormFieldCollections(l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField),o=l.pdfViewer.formFieldCollections[l.pdfViewer.formFieldCollections.findIndex(function(e){return e.id+"_content"===s[parseInt(t.toString(),10)].FormField.id})],l.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",s[parseInt(t.toString(),10)].FormField,l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,n,i),l.pdfViewer.annotation&&l.pdfViewer.annotation.addAction(l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,null,l.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField,"FormField Value Change","",n,i)}}(d);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldSessions(o)}}},a.prototype.setCheckedValue=function(e,t){t?(e.firstElementChild.classList.remove("e-pv-cb-unchecked"),e.firstElementChild.classList.add("e-pv-checkbox-span","e-pv-cb-checked")):(e.firstElementChild.classList.remove("e-pv-cb-checked"),e.firstElementChild.classList.add("e-pv-checkbox-span","e-pv-cb-unchecked"))},a.prototype.setRadioButtonState=function(e){for(var t=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),i=JSON.parse(t),n=null,o=this,r=0;r<i.length;r++)!function(t){if(null!=i[parseInt(t.toString(),10)].FormField.radiobuttonItem){for(var r=void 0,a=void 0,s=0;s<i[parseInt(t.toString(),10)].FormField.radiobuttonItem.length;s++){if(i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].id.split("_")[0]===e.currentTarget.id.split("_")[0])o.pdfViewer.nameTable[e.currentTarget.id.split("_")[0]].isReadonly||(o.pdfViewer.nameTable[e.currentTarget.id.split("_")[0]].isSelected=!0,i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected=!0,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected||(r=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]),o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected=!0,o.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",i[parseInt(t.toString(),10)].FormField,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0));else if(o.pdfViewer.nameTable[e.currentTarget.id.split("_")[0]].name===i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].name){o.pdfViewer.nameTable[i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].id.split("_")[0]].isSelected=!1;o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected;i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected=!1,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected&&(a=o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]),o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected=i[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)].isSelected,o.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",i[parseInt(t.toString(),10)].FormField,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!0,!1)}o.updateFormFieldCollections(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.radiobuttonItem[parseInt(s.toString(),10)]),n=o.pdfViewer.formFieldCollections[o.pdfViewer.formFieldCollections.findIndex(function(e){return e.id+"_content"===i[parseInt(t.toString(),10)].FormField.id})]}null==r&&null==a||!o.pdfViewer.annotation||o.pdfViewer.annotation.addAction(o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.pageNumber,null,o.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField,"FormField Value Change","",r,a)}}(r);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldSessions(n)},a.prototype.getTextboxValue=function(e){for(var i=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),n=JSON.parse(i),o=null,r=this,a=0;a<n.length;a++)!function(i){if(n[parseInt(i.toString(),10)].Key.split("_")[0]===e.target.id.split("_")[0]||r.pdfViewer.nameTable[e.target.id.split("_")[0]].name===n[parseInt(i.toString(),10)].FormField.name){var a=r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.value;if(n[parseInt(i.toString(),10)].FormField.value=e.target.value,r.pdfViewer.enableHtmlSanitizer&&(n[parseInt(i.toString(),10)].FormField.value=t.SanitizeHtmlHelper.sanitize(n[parseInt(i.toString(),10)].FormField.value)),r.pdfViewer.nameTable[n[parseInt(i.toString(),10)].Key.split("_")[0]].value=n[parseInt(i.toString(),10)].FormField.value,r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.value=n[parseInt(i.toString(),10)].FormField.value,
vendor: 163,122 bytes, line 10
10n[parseInt(i.toString(),10)].Key.split("_")[0]!==e.target.id.split("_")[0]){var s=document.getElementById(n[parseInt(i.toString(),10)].Key.split("_")[0]+"_content_html_element");s&&s.firstElementChild&&s.firstElementChild.firstElementChild&&(s.firstElementChild.firstElementChild.value=n[parseInt(i.toString(),10)].FormField.value)}r.updateFormFieldCollections(r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField),o=r.pdfViewer.formFieldCollections[r.pdfViewer.formFieldCollections.findIndex(function(e){return e.id+"_content"===n[parseInt(i.toString(),10)].FormField.id})],r.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField,r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.pageNumber,!0,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,e.target.value),r.pdfViewer.annotation&&r.pdfViewer.annotation.addAction(r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.pageNumber,null,r.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField,"FormField Value Change","",a,e.target.value)}}(a);this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldSessions(o)},a.prototype.inputElementClick=function(e){e.target.focus()},a.prototype.updateFormFieldSessions=function(e){var i=this.pdfViewerBase.getItemFromSessionStorage("_formfields"),n=JSON.parse(i);if(!t.isNullOrUndefined(n)&&!t.isNullOrUndefined(e)){for(var o=0;o<n.length;o++)n[parseInt(o.toString(),10)].ActualFieldName===e.name&&("Textbox"===e.type||"PasswordField"===e.type?n[parseInt(o.toString(),10)].Value=e.value:"Checkbox"===e.type?n[parseInt(o.toString(),10)].Selected=e.isChecked:"RadioButton"===e.type?n[parseInt(o.toString(),10)].Selected=e.isSelected:"DropdownList"===e.type?n[parseInt(o.toString(),10)].Value=e.value:"ListBox"===e.type&&(n[parseInt(o.toString(),10)].Value=e.value));this.pdfViewerBase.setItemInSessionStorage(n,"_formfields")}},a.prototype.focusFormFields=function(e){var t=e.target;if(t||"e-pv-checkbox-outer-div"===t.className){i="transparent"===t.style.borderColor?"#000000":t.style.borderColor;t.style.boxShadow="0 0 5px "+i}if(t&&("e-pv-radiobtn-container"===t.className||"e-pv-radio-btn"===t.className||"e-pv-radiobtn-span"===t.className)&&"transparent"===t.style.borderColor){var i="transparent"===t.style.borderColor?"#000000":t.style.borderColor;t.parentElement.style.boxShadow="0px 0px 5px "+i}!t||"e-pv-radiobtn-container"!==t.className&&"e-pv-radio-btn"!==t.className&&"e-pv-radiobtn-span"!==t.className||(t.parentElement.style.boxShadow=t.style.borderColor+"0px 0px 5px "+t.style.borderWidth)},a.prototype.blurFormFields=function(e){var t=e.target;if(t.style.boxShadow="","radio"===t.type&&"transparent"===t.style.borderColor){var i="transparent"===t.style.borderColor?"#000000":t.style.borderColor;t.parentElement.style.boxShadow="0px 0px 0px "+i}"radio"===t.type&&(t.parentElement.style.boxShadow=t.style.borderColor+"0px 0px 0px "+t.style.borderWidth)},a.prototype.setTextBoxFontStyle=function(t){return{isBold:(t&e.FontStyle.Bold)===e.FontStyle.Bold,isItalic:(t&e.FontStyle.Italic)===e.FontStyle.Italic,isStrikeout:(t&e.FontStyle.Strikethrough)===e.FontStyle.Strikethrough,isUnderline:(t&e.FontStyle.Underline)===e.FontStyle.Underline}},a.prototype.addFormField=function(e,t,i,n){return this.addField(e,t,i,n,!0)},a.prototype.addField=function(e,i,n,o,r){var a={thickness:1,bounds:{x:i.bounds.X,y:i.bounds.Y,width:i.bounds.Width,height:i.bounds.Height},fontFamily:t.isNullOrUndefined(i.fontFamily)?"Helvetica":i.fontFamily,fontSize:t.isNullOrUndefined(i.fontSize)?10:i.fontSize,color:t.isNullOrUndefined(i.color)?"black":i.color,backgroundColor:t.isNullOrUndefined(i.backgroundColor)?"#daeaf7ff":i.backgroundColor,alignment:t.isNullOrUndefined(i.alignment)?"left":i.alignment,isReadonly:!!i.isReadOnly&&i.isReadOnly,rotateAngle:i.rotateAngle?i.rotateAngle:i.rotationAngle,isTransparent:i.isTransparent,insertSpaces:i.insertSpaces,isChecked:i.isChecked,isMultiline:i.isMultiline,isSelected:i.isSelected,options:i.options,selectedIndex:i.selectedIndex,signatureIndicatorSettings:i.signatureIndicatorSettings,signatureType:i.signatureType,zIndex:i.zIndex};switch(a.customData=t.isNullOrUndefined(i.customData)?"":i.customData,a.fontStyle=t.isNullOrUndefined(i.fontStyle)?"None":i.fontStyle,a.visibility=t.isNullOrUndefined(i.visibility)?"visible":i.visibility,a.value=t.isNullOrUndefined(i.value)?"":i.value,a.isRequired=!!i.isRequired&&i.isRequired,a.isPrint=!i.isPrint||i.isPrint,a.pageNumber=t.isNullOrUndefined(i.pageNumber)?this.pdfViewerBase.currentPageNumber:i.pageNumber,a.pageIndex=a.pageNumber-1,a.font=i.font,a.id=o,(n||t.isNullOrUndefined(n))&&this.setFormFieldIndex(),e){case"Textbox":a.formFieldAnnotationType=e,a.isMultiline=i.isMultiline,a.name=t.isNullOrUndefined(i.name)?"Textbox"+this.formFieldIndex:i.name,a.insertSpaces=i.insertSpaces,a.maxLength=i.maxLength,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor,i.font?a.font=i.font:this.pdfViewer.textFieldSettings.fontStyle&&(a.font=this.setTextBoxFontStyle(this.pdfViewer.textFieldSettings.fontStyle));break;case"Password":a.formFieldAnnotationType="PasswordField",a.name=t.isNullOrUndefined(i.name)?"Password"+this.formFieldIndex:i.name,a.maxLength=i.maxLength,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor;break;case"DropDown":a.formFieldAnnotationType="DropdownList",a.name=t.isNullOrUndefined(i.name)?"Dropdown"+this.formFieldIndex:i.name,a.options=i.options?i.options:[];for(s=0;s<this.pdfViewer.formFieldCollection.length;s++)if("DropdownList"===(l=this.pdfViewer.formFieldCollection[parseInt(s.toString(),10)]).formFieldAnnotationType&&l.name===a.name){a.options=l.options;break}a.selectedIndex=t.isNullOrUndefined(i.selectedIndex)?[0]:i.selectedIndex,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor,i.font?a.font=i.font:this.pdfViewer.DropdownFieldSettings.fontStyle&&(a.font=this.setTextBoxFontStyle(this.pdfViewer.DropdownFieldSettings.fontStyle));break;case"ListBox":a.formFieldAnnotationType=e,a.name=t.isNullOrUndefined(i.name)?"List Box"+this.formFieldIndex:i.name,a.options=i.options?i.options:[];for(var s=0;s<this.pdfViewer.formFieldCollection.length;s++){var l=this.pdfViewer.formFieldCollection[parseInt(s.toString(),10)];if(l.formFieldAnnotationType===e&&l.name===a.name){a.options=l.options;break}}a.selectedIndex=i.selectedIndex,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor,i.font?a.font=i.font:this.pdfViewer.listBoxFieldSettings.fontStyle&&(a.font=this.setTextBoxFontStyle(this.pdfViewer.listBoxFieldSettings.fontStyle));break;case"CheckBox":a.formFieldAnnotationType="Checkbox",a.bounds={x:i.bounds.X,y:i.bounds.Y,width:i.bounds.Width,height:i.bounds.Height},a.backgroundColor=t.isNullOrUndefined(i.backgroundColor)?"#daeaf7ff":i.backgroundColor,a.isReadonly=!!i.isReadOnly&&i.isReadOnly,a.name=t.isNullOrUndefined(i.name)?"Check Box"+this.formFieldIndex:i.name,a.isChecked=!!i.isChecked&&i.isChecked,a.visibility=i.visibility?i.visibility:"visible",a.isRequired=!!i.isRequired&&i.isRequired,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor;break;case"RadioButton":a.formFieldAnnotationType=e,a.bounds={x:i.bounds.X,y:i.bounds.Y,width:i.bounds.Width,height:i.bounds.Height},a.backgroundColor=t.isNullOrUndefined(i.backgroundColor)?"#daeaf7ff":i.backgroundColor,a.isReadonly=!!i.isReadOnly&&i.isReadOnly,a.name=t.isNullOrUndefined(i.name)?"Radio Button"+this.formFieldIndex:i.name,a.isSelected=!!i.isSelected&&i.isSelected,a.visibility=i.visibility?i.visibility:"visible",a.isRequired=!!i.isRequired&&i.isRequired,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor;break;case"SignatureField":a.formFieldAnnotationType=e,a.bounds={x:i.bounds.X,y:i.bounds.Y,width:i.bounds.Width,height:i.bounds.Height},a.isReadonly=this.pdfViewer.signatureFieldSettings.isReadOnly?this.pdfViewer.signatureFieldSettings.isReadOnly:!!i.isReadOnly&&i.isReadOnly,a.backgroundColor=t.isNullOrUndefined(i.backgroundColor)?a.isReadonly?"trasnparent":"#daeaf7ff":Vi.setTransparencyToHex(this.colorNametoHashValue(i.backgroundColor)),a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor,a.fontSize=t.isNullOrUndefined(i.fontSize)?10:i.fontSize,a.fontStyle=t.isNullOrUndefined(i.fontStyle)?"None":i.fontStyle,a.name=t.isNullOrUndefined(i.name)?"Signature"+this.formFieldIndex:i.name,a.isRequired=!!i.isRequired&&i.isRequired,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness;var d=i.signatureIndicatorSettings?i.signatureIndicatorSettings:i.initialIndicatorSettings;a.signatureIndicatorSettings=d?{opacity:d.opacity?d.opacity:1,backgroundColor:d.backgroundColor?d.backgroundColor:"orange",width:d.width?d.width:19,height:d.height?d.height:10,fontSize:d.fontSize?d.fontSize:10,text:d.text?d.text:null,color:d.color?d.color:"black"}:null;break;case"InitialField":a.formFieldAnnotationType=e,a.bounds={x:i.bounds.X,y:i.bounds.Y,width:i.bounds.Width,height:i.bounds.Height},a.isReadonly=this.pdfViewer.initialFieldSettings.isReadOnly?this.pdfViewer.initialFieldSettings.isReadOnly:!!i.isReadOnly&&i.isReadOnly,a.backgroundColor=t.isNullOrUndefined(i.backgroundColor)?a.isReadonly?"trasnparent":"#daeaf7ff":Vi.setTransparencyToHex(this.colorNametoHashValue(i.backgroundColor)),a.borderColor=t.isNullOrUndefined(i.borderColor)?"#303030":i.borderColor,a.fontSize=t.isNullOrUndefined(i.fontSize)?10:i.fontSize,a.thickness=t.isNullOrUndefined(i.thickness)?1:i.thickness,a.fontStyle=t.isNullOrUndefined(i.fontStyle)?"None":i.fontStyle,a.name=t.isNullOrUndefined(i.name)?"Initial"+this.formFieldIndex:i.name,a.isRequired=!!i.isRequired&&i.isRequired,a.isInitialField=!0;var A=i.initialIndicatorSettings?i.initialIndicatorSettings:i.signatureIndicatorSettings;a.signatureIndicatorSettings=A?{opacity:A.opacity?A.opacity:1,backgroundColor:A.backgroundColor?A.backgroundColor:"orange",width:A.width?A.width:19,height:A.height?A.height:10,fontSize:A.fontSize?A.fontSize:10,text:A.text?A.text:null,color:A.color?A.color:"black"}:null}a.tooltip=t.isNullOrUndefined(i.tooltip)?"":i.tooltip,this.setFormFieldIndex();var h=null;return n?this.addFieldCollection(a):h=this.drawFormField(a,r),h},a.prototype.addFieldCollection=function(e){var t={id:i.randomId(),name:e.name,value:e.value,type:e.formFieldAnnotationType,isReadOnly:e.isReadonly,fontFamily:e.fontFamily,fontSize:e.fontSize,fontStyle:e.fontStyle,color:e.color,backgroundColor:e.backgroundColor,isMultiline:e.isMultiline,alignment:e.alignment,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,isSelected:e.isSelected,insertSpaces:e.insertSpaces,isChecked:e.isChecked,tooltip:e.tooltip,bounds:e.bounds,thickness:e.thickness,pageIndex:e.pageIndex,borderColor:e.borderColor,signatureIndicatorSettings:e.signatureIndicatorSettings,rotateAngle:e.rotateAngle,isTransparent:e.isTransparent,options:e.options,selectedIndex:e.selectedIndex,signatureType:e.signatureType,zIndex:e.zIndex,pageNumber:e.pageNumber,customData:e.customData};this.pdfViewer.formFieldCollections.push(t)},a.prototype.drawFormField=function(e,t,i){var n,o=this.pdfViewer.add(e),r=this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===o.id});r>-1&&(n=this.pdfViewer.formFieldCollections[parseInt(r.toString(),10)],this.isFormFieldUpdated&&this.updateNodeBasedOnCollections(o,n));var a=this.pdfViewer.formFieldCollection.findIndex(function(e){return e.id===o.id});a<0?this.pdfViewer.formFieldCollection.push(o):a>-1&&(this.pdfViewer.formFieldCollection[parseInt(a.toString(),10)]=o);var s={id:o.id,name:o.name,value:o.value,type:o.formFieldAnnotationType,isReadOnly:o.isReadonly,fontFamily:o.fontFamily,fontSize:o.fontSize,fontStyle:o.fontStyle,color:o.color,backgroundColor:o.backgroundColor,isMultiline:o.isMultiline,alignment:o.alignment,visibility:o.visibility,maxLength:o.maxLength,isRequired:o.isRequired,isPrint:o.isPrint,isSelected:o.isSelected,isChecked:o.isChecked,tooltip:o.tooltip,bounds:o.bounds,pageIndex:o.pageIndex,thickness:o.thickness,borderColor:o.borderColor,signatureIndicatorSettings:o.signatureIndicatorSettings,insertSpaces:o.insertSpaces,rotateAngle:o.rotateAngle,isTransparent:o.isTransparent,options:o.options,selectedIndex:o.selectedIndex,signatureType:o.signatureType,zIndex:o.zIndex,pageNumber:o.pageNumber,customData:o.customData};return r>-1?this.pdfViewer.formFieldCollections[parseInt(r.toString(),10)]=s:this.pdfViewer.formFieldCollections.push(s),this.drawHTMLContent(o.formFieldAnnotationType,o.wrapper.children[0],o,e.pageNumber-1,this.pdfViewer,null,t,i)},a.prototype.updateNodeBasedOnCollections=function(e,t){e.name=t.name,e.value=t.value,e.isReadonly=t.isReadOnly,e.fontFamily=t.fontFamily,e.fontSize=t.fontSize,e.fontStyle=t.fontStyle.toString(),e.color=t.color,e.backgroundColor=t.backgroundColor,e.alignment=t.alignment,e.visibility=t.visibility,e.maxLength=t.maxLength,e.isRequired=t.isRequired,e.isPrint=t.isPrint,e.isSelected=t.isSelected,e.isChecked=t.isChecked,e.tooltip=t.tooltip,e.thickness=t.thickness,e.borderColor=t.borderColor,e.customData=t.customData},a.prototype.setFormFieldMode=function(e,i){this.pdfViewer.selectedItems&&!t.isNullOrUndefined(this.pdfViewer.selectedItems.annotations)&&this.pdfViewer.selectedItems.annotations.length>0&&this.pdfViewerBase.activeElements&&!t.isNullOrUndefined(this.pdfViewerBase.activeElements.activePageID)&&this.pdfViewer.clearSelection(this.pdfViewerBase.activeElements.activePageID);var n=document.getElementById("FormField_helper_html_element");switch(this.pdfViewer.isFormDesignerToolbarVisible&&n&&n.remove(),this.isAddFormFieldUi=!0,e){case"Textbox":this.activateTextboxElement(e),this.isSetFormFieldMode=!0;break;case"Password":this.activatePasswordField("PasswordField"),this.isSetFormFieldMode=!0;break;case"CheckBox":this.activateCheckboxElement("Checkbox"),this.isSetFormFieldMode=!0;break;case"RadioButton":this.activateRadioButtonElement(e),this.isSetFormFieldMode=!0;break;case"DropDown":this.activateDropDownListElement("DropdownList",i),this.isSetFormFieldMode=!0;break;case"ListBox":this.activateListboxElement(e,i),this.isSetFormFieldMode=!0;break;case"SignatureField":case"InitialField":this.activateSignatureBoxElement(e),this.isSetFormFieldMode=!0}},a.prototype.resetFormField=function(e){var t=this.getFormField(e);if(t){switch(t.formFieldAnnotationType){case"Textbox":this.resetTextboxProperties(t);break;case"PasswordField":this.resetPasswordProperties(t);break;case"Checkbox":this.resetCheckboxProperties(t);break;case"RadioButton":this.resetRadioButtonProperties(t);break;case"DropdownList":this.resetDropdownListProperties(t);break;case"ListBox":this.resetListBoxProperties(t);break;case"SignatureField":case"InitialField":this.resetSignatureTextboxProperties(t)}this.updateSessionFormFieldProperties(t)}},a.prototype.selectFormField=function(e){var t=this.getFormField(e);t&&(this.isProgrammaticSelection=!0,this.pdfViewer.select([t.id]),this.isProgrammaticSelection=!1)},a.prototype.updateFormField=function(e,i){var n=this.getFormField(e);this.isFormFieldUpdated=!0;var o=this.pdfViewer.selectedItems.formFields[0];if(n){if(!n.isReadonly||!t.isNullOrUndefined(i.isReadOnly)&&!i.isReadOnly)switch(n.formFieldAnnotationType){case"Textbox":case"PasswordField":case"DropdownList":case"ListBox":case"SignatureField":case"InitialField":var r=document.getElementById(n.id+"_content_html_element");r?(r=r.firstElementChild.firstElementChild,this.isAddFormFieldProgrammatically=!0,this.formFieldPropertyChange(n,i,r,o)):(this.updateFormFieldsInCollections(e,i),this.updateDesignerSession(e,i),this.rerenderFormFields(e.pageIndex));break;case"RadioButton":var a=document.getElementById(n.id+"_content_html_element");a?(a=a.firstElementChild.firstElementChild.firstElementChild,this.formFieldPropertyChange(n,i,a)):(this.updateFormFieldsInCollections(e,i),this.updateDesignerSession(e,i));break;case"Checkbox":var s=document.getElementById(n.id+"_content_html_element");s?(s=s.firstElementChild.firstElementChild.lastElementChild,this.formFieldPropertyChange(n,i,s)):(this.updateFormFieldsInCollections(e,i),this.updateDesignerSession(e,i))}}else this.updateFormFieldsInCollections(e,i),this.updateFormFieldsInFieldsSession(e,i)},a.prototype.updateDesignerSession=function(e,i){var n="object"==typeof e?e.id:e,o=this.pdfViewer.nameTable[""+n],r=o.bounds,a=o.wrapper.children[0],s=o.formFieldAnnotationType;t.isNullOrUndefined(i.customData)||o.customData===i.customData||(o.customData=i.customData),t.isNullOrUndefined(i.name)||o.name===i.name||(o.name=i.name),t.isNullOrUndefined(i.borderColor)||o.borderColor===i.borderColor||(o.borderColor=i.borderColor),t.isNullOrUndefined(i.backgroundColor)||o.backgroundColor===i.backgroundColor||(o.backgroundColor=i.backgroundColor),t.isNullOrUndefined(i.value)||o.value===i.value||(o.value=i.value),this.updateFormDesignerFieldInSessionStorage(r,a,s,o)},a.prototype.updateFormFieldsInFieldsSession=function(e,i){var n=this.pdfViewerBase.getItemFromSessionStorage("_formfields");if(!t.isNullOrUndefined(n)){for(var o=JSON.parse(n),r=0;r<o.length;r++)o[""+r].FieldName===e.name&&(t.isNullOrUndefined(i.customData)||o[""+r].CustomData===i.customData||(o[""+r].CustomData=i.customData),t.isNullOrUndefined(i.backgroundColor)||o[""+r].BackColor===i.backgroundColor||(o[""+r].BackColor=this.getRgbCode(i.backgroundColor)),t.isNullOrUndefined(i.borderColor)||o[""+r].BorderColor===i.borderColor||(o[""+r].BorderColor=this.getRgbCode(i.borderColor)),t.isNullOrUndefined(i.name)||o[""+r].Name===i.name||(o[""+r].Name=i.name),t.isNullOrUndefined(i.value)||o[""+r].Value===i.value||(o[""+r].Value=i.value));this.pdfViewerBase.setItemInSessionStorage(o,"_formfields")}},a.prototype.updateFormFieldsInCollections=function(e,t){for(var i=this.pdfViewer.formFieldCollections,n=this,o=0;o<i.length;o++)!function(o){var r=i[parseInt(o.toString(),10)],a="object"==typeof e?e.id:e;if(r.id===a){n.updateFormFieldData(r,t);var s=n.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===a});n.pdfViewer.formFieldCollections[parseInt(s.toString(),10)]=r}}(o)},a.prototype.updateFormFieldData=function(e,i){if(i.name&&e.name!==i.name&&(e.name=i.name),("SignatureField"!==e.type||"InitialField"!==e.type)&&(i.thickness&&e.thickness!==i.thickness&&(e.thickness=i.thickness),i.borderColor)){var n=this.colorNametoHashValue(i.borderColor);e.borderColor!==n&&(e.borderColor=n)}if(i.backgroundColor){var o=this.colorNametoHashValue(i.backgroundColor);if(e.backgroundColor!==o){e.backgroundColor=o;var r=e.id;t.isNullOrUndefined(this.pdfViewer.nameTable[""+r])||(this.pdfViewer.nameTable[""+r].backgroundColor=o)}}if(t.isNullOrUndefined(i.customData)||e.customData===i.customData||(e.customData=i.customData),t.isNullOrUndefined(i.isReadOnly)||e.isReadonly===i.isReadOnly||(e.isReadOnly=i.isReadOnly),t.isNullOrUndefined(i.isRequired)||e.isRequired===i.isRequired||(e.isRequired=i.isRequired),t.isNullOrUndefined(i.isPrint)||e.isPrint===i.isPrint||(e.isPrint=i.isPrint),i.visibility&&e.visibility!==i.visibility&&(e.visibility=i.visibility),i.tooltip&&e.tooltip!==i.tooltip&&(e.tooltip=i.tooltip),"Checkbox"!==e.type||t.isNullOrUndefined(i.isChecked)||e.isChecked!==i.isChecked||(e.isChecked=i.isChecked),"RadioButton"!==e.type||t.isNullOrUndefined(i.isSelected)||e.isSelected!==i.isSelected||(e.isSelected=i.isSelected),"DropdownList"!==e.type&&"ListBox"!==e.type||!i.options||(e.options=i.options),"Textbox"===e.type||"SignatureField"===e.type||"InitialField"===e.type||"DropdownList"===e.type||"ListBox"===e.type||"PasswordField"===e.type){if(i.value&&e.value!==i.value&&(e.value=i.value),i.fontSize&&e.fontSize!==i.fontSize&&(e.fontSize=i.fontSize),i.color){var a=this.colorNametoHashValue(i.color);e.color!==a&&(e.color=a)}"SignatureField"!==e.type&&(i.alignment&&e.alignment!==i.alignment&&(e.alignment=i.alignment),i.maxLength&&e.maxLength!==i.maxLength&&(e.maxLength=i.maxLength)),"PasswordField"!==e.type&&(i.fontFamily&&e.fontFamily!==i.fontFamily&&(e.fontFamily=i.fontFamily),i.fontStyle&&e.fontStyle!==i.fontStyle&&(e.fontStyle=i.fontStyle))}},a.prototype.formFieldPropertyChange=function(n,o,r,a){var s,l,d=!1,A=!1,h=!1,p=!1,c=!1,g=!1,u=!1,f=!1,m=!1,w=!1,C=!1,B=!1,S=!1,y=!1,I=!1,E=!1,v=!1,b=this.pdfViewerBase.getZoomFactor();if(o.name){n.name!==o.name&&(v=!0),n.name=o.name;var V=document.getElementById(n.id+"_designer_name");V.innerHTML=n.name,V.style.fontSize=n.fontSize?n.fontSize*b+"px":10*b+"px",r.name=o.name,this.pdfViewer.nameTable[n.id.split("_")[0]].name=n.name,v&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l,v)}if(n.formFieldAnnotationType&&(t.isNullOrUndefined(o.thickness)||(n.thickness!==o.thickness&&(f=!0,s=n.thickness,l=o.thickness),r.style.borderWidth=o.thickness.toString()+"px",n.thickness=o.thickness,this.pdfViewer.nameTable[n.id.split("_")[0]].thickness=o.thickness,f&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,f,!1,!1,!1,!1,!1,!1,!1,!1,s,l)),o.borderColor)){var D=this.colorNametoHashValue(o.borderColor);n.borderColor!==D&&(u=!0,s=n.borderColor,l=D),n.borderColor=D,r.style.borderColor=D,"RadioButton"===n.formFieldAnnotationType&&(r.parentElement.style.boxShadow=D+" 0px 0px 0px "+n.thickness+"px",this.setToolTip(o.tooltip,r.parentElement)),this.pdfViewer.nameTable[n.id.split("_")[0]].borderColor=D,u&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,u,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l)}if(o.backgroundColor){var x=this.colorNametoHashValue(o.backgroundColor);x="SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType?Vi.setTransparencyToHex(x):Vi.removeAlphaValueFromHex(x),n.backgroundColor!==x&&(g=!0,s=n.backgroundColor,l=x),n.backgroundColor=x,"SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType?r.parentElement.style.background=x:r.style.background=x,"RadioButton"===n.formFieldAnnotationType&&(r.parentElement.style.background=n.backgroundColor),this.pdfViewer.nameTable[n.id.split("_")[0]].backgroundColor=x,g&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,g,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l)}if(o.bounds){o.bounds.X=o.bounds.X+.5*o.bounds.Width,o.bounds.Y=o.bounds.Y+.5*o.bounds.Height,n.bounds={x:o.bounds.X,y:o.bounds.Y,width:o.bounds.Width,height:o.bounds.Height};var Q=this.pdfViewer.nameTable[n.id.split("_")[0]];Q.bounds={x:o.bounds.X,y:o.bounds.Y,width:o.bounds.Width,height:o.bounds.Height},Q.wrapper.bounds=new i.Rect(o.bounds.X,o.bounds.Y,o.bounds.Width,o.bounds.Height),this.pdfViewer.drawing.nodePropertyChange(Q,{bounds:{x:Q.wrapper.bounds.x,y:Q.wrapper.bounds.y,width:Q.wrapper.bounds.width,height:Q.wrapper.bounds.height}});var M=Q.wrapper.children[0],F=i.cornersPointsBeforeRotation(Q.wrapper.children[0]).topLeft,T=document.getElementById(M.id+"_html_element");t.isNullOrUndefined(T)||(T.style.cssText="height: "+M.actualSize.height*b+"px;\n                width: "+M.actualSize.width*b+"px;left: "+F.x*b+"px;top: "+F.y*b+"px;\n                position: absolute;transform: rotate("+(M.rotateAngle+M.parentTransform)+"deg);\n                pointer-events: "+(this.pdfViewer.designerMode?"none":"all")+";visibility: "+(M.visible?"visible":"hidden")+";\n                opacity: "+M.style.opacity+";"),this.isFormFieldSizeUpdated=!0,this.pdfViewer.select([n.id]),"RadioButton"!==Q.formFieldAnnotationType&&"Checkbox"!==Q.formFieldAnnotationType||this.updateHTMLElement(n)}if(t.isNullOrUndefined(o.isRequired)||(n.isRequired!==o.isRequired&&(S=!0,s=n.isRequired,l=o.isRequired),n.isRequired=o.isRequired,this.setRequiredToElement(n,r,o.isRequired),this.setRequiredToFormField(n,o.isRequired),this.pdfViewer.nameTable[n.id.split("_")[0]].isRequired=o.isRequired,S&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,S,!1,!1,!1,s,l)),o.visibility){if(n.visibility!==o.visibility&&(C=!0,s=n.visibility,l=o.visibility),n.visibility=o.visibility,r.style.visibility=o.visibility,"RadioButton"===n.formFieldAnnotationType&&(r.parentElement.style.visibility=n.visibility),"SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType){r.parentElement.style.visibility=n.visibility;var k=this.pdfViewer.nameTable[n.id.split("_")[0]+"_content"],P=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),N=JSON.parse(P),R=this.getFormFiledIndex(n.id.split("_")[0]);"hidden"===n.visibility?k&&this.hideSignatureValue(n,k,R,N):k&&this.showSignatureValue(n,s,k,R,N)}this.pdfViewer.nameTable[n.id.split("_")[0]].visibility=o.visibility,C&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,C,!1,!1,!1,!1,!1,s,l)}if(t.isNullOrUndefined(o.isPrint)||(n.isPrint!==o.isPrint&&(y=!0,s=n.isPrint,l=o.isPrint),n.isPrint=o.isPrint,this.pdfViewer.nameTable[n.id.split("_")[0]].isPrint=o.isPrint,y&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,y,!1,!1,s,l)),t.isNullOrUndefined(o.tooltip)||(n.tooltip!==o.tooltip&&(I=!0,s=n.tooltip,l=o.tooltip),n.tooltip=o.tooltip,t.isNullOrUndefined(o.tooltip)||("RadioButton"===n.formFieldAnnotationType?this.setToolTip(o.tooltip,r.parentElement):this.setToolTip(o.tooltip,r)),this.pdfViewer.nameTable[n.id.split("_")[0]].tooltip=o.tooltip,I&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,I,!1,s,l)),t.isNullOrUndefined(o.customData)||(n.customData!==o.customData&&(E=!0,s=n.customData,l=o.customData),n.customData=o.customData,this.pdfViewer.nameTable[n.id.split("_")[0]].customData=o.customData,E&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,E,s,l)),"Checkbox"!==n.formFieldAnnotationType||t.isNullOrUndefined(o.isChecked)&&!o.isChecked&&!o.value||(t.isNullOrUndefined(o.isChecked)||n.isChecked===this.checkboxCheckedState||(d=!0,s=n.isChecked,l=o.isChecked),n.isChecked=o.isChecked,r.checked=o.isChecked,this.setCheckedValue(r,o.isChecked),this.pdfViewer.nameTable[n.id.split("_")[0]].isChecked=o.isChecked,(o.value||o.isChecked)&&(n.value!==o.value&&(d=!0,s=n.value,l=o.value),n.value=o.value,this.pdfViewer.nameTable[n.id.split("_")[0]].value=o.value,d&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,d,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l))),"RadioButton"!==n.formFieldAnnotationType||t.isNullOrUndefined(o.isSelected)&&!o.isSelected&&!o.value||(t.isNullOrUndefined(o.isSelected)||n.isSelected===o.isSelected||(d=!0,s=n.isSelected,l=this.checkboxCheckedState),n.isSelected=o.isSelected,r.checked=o.isSelected,this.pdfViewer.nameTable[n.id.split("_")[0]].isSelected=o.isSelected,(o.value||o.isSelected)&&(n.value!==o.value&&(d=!0,s=n.value,l=o.value),n.value=o.value,this.pdfViewer.nameTable[n.id.split("_")[0]].value=o.value,d&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,d,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l))),"DropdownList"!==n.formFieldAnnotationType&&"ListBox"!==n.formFieldAnnotationType||o.options&&(n.options=o.options,n.selectedIndex=[],n.selectedIndex.push(0),this.updateDropDownListDataSource(n,r),this.pdfViewer.nameTable[n.id.split("_")[0]].options=n.options),"Textbox"===n.formFieldAnnotationType||"SignatureField"===n.formFieldAnnotationType||"InitialField"===n.formFieldAnnotationType||"DropdownList"===n.formFieldAnnotationType||"ListBox"===n.formFieldAnnotationType||"PasswordField"===n.formFieldAnnotationType){if(o.value||o.isMultiline){if(t.isNullOrUndefined(o.value)||n.value===o.value||(d=!0,s=n.value,l=o.value),n.value=o.value?o.value:n.value,"Textbox"===n.formFieldAnnotationType&&o.isMultiline&&(this.addMultilineTextbox(n,"e-pv-formfield-input",!0),this.multilineCheckboxCheckedState=!0,document.getElementById(n.id+"_content_html_element")?this.updateTextboxFormDesignerProperties(n):this.updateFormFieldPropertiesInCollections(n)),t.isNullOrUndefined(o.isMultiline)||n.isMultiline===o.isMultiline||(d=!0,n.isMultiline=o.isMultiline),"DropdownList"===n.formFieldAnnotationType||"ListBox"===n.formFieldAnnotationType||t.isNullOrUndefined(o.value)){if("DropdownList"===n.formFieldAnnotationType||"ListBox"===n.formFieldAnnotationType){n.selectedIndex=[];for(z=0;z<r.options.length;z++)r.options[parseInt(z.toString(),10)].text===o.value&&(r.options.selectedIndex=z,n.selectedIndex.push(z));t.isNullOrUndefined(o.selectedIndex)||n.selectedIndex===o.selectedIndex||(n.selectedIndex=o.selectedIndex,r.options.selectedIndex=o.selectedIndex)}}else r.value=o.value;this.pdfViewer.nameTable[n.id.split("_")[0]].value=o.value?o.value:n.value,d&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,d,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l)}else t.isNullOrUndefined(o)||t.isNullOrUndefined(o.isMultiline)||o.isMultiline||(this.renderTextbox(a),this.multilineCheckboxCheckedState=!0,document.getElementById(a.id+"_content_html_element")?this.updateTextboxFormDesignerProperties(a):this.updateFormFieldPropertiesInCollections(a));if(o.fontSize&&(n.fontSize!==o.fontSize&&(h=!0,s=n.fontSize,l=o.fontSize),n.fontSize=o.fontSize,r.style.fontSize=o.fontSize*b+"px",this.pdfViewer.nameTable[n.id.split("_")[0]].fontSize=o.fontSize,h&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,h,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l)),o.color){var L=this.colorNametoHashValue(o.color);n.color!==L&&(c=!0,s=n.color,l=L),n.color=L,r.style.color=L,this.pdfViewer.nameTable[n.id.split("_")[0]].color=L,c&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,c,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l)}if("SignatureField"!==n.formFieldAnnotationType&&(o.alignment&&(n.alignment!==o.alignment&&(m=!0,s=n.alignment,l=o.alignment),n.alignment=o.alignment,r.style.textAlign=o.alignment,this.pdfViewer.nameTable[n.id.split("_")[0]].alignment=o.alignment,m&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,m,!1,!1,!1,!1,!1,!1,!1,s,l)),o.maxLength&&(n.maxLength!==o.maxLength&&(B=!0,s=n.maxLength,l=o.maxLength),n.maxLength=o.maxLength,r.maxLength=o.maxLength,this.pdfViewer.nameTable[n.id.split("_")[0]].maxLength=o.maxLength,B&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,B,!1,!1,!1,!1,s,l))),"PasswordField"!==n.formFieldAnnotationType){o.fontFamily&&(n.fontFamily!==o.fontFamily&&(A=!0,s=n.fontFamily,l=o.fontFamily),n.fontFamily=o.fontFamily,r.style.fontFamily=o.fontFamily,this.pdfViewer.nameTable[n.id.split("_")[0]].fontFamily=o.fontFamily,A&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,A,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l));var U="",O="";t.isNullOrUndefined(o.fontStyle)||(U+=n.font.isBold?"Bold, ":"",U+=n.font.isItalic?"Italic, ":"",U+=n.font.isStrikeout?"Strikethrough, ":"",U+=n.font.isUnderline?"Underline, ":"",t.isNullOrUndefined(o.fontStyle)||o.fontStyle!==e.FontStyle.None?(0!=(o.fontStyle&e.FontStyle.Bold)&&(r.style.fontWeight="bold",n.fontStyle="Bold",n.font.isBold=!0,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isBold=!0,this.setDropdownFontStyleValue(r,"bold","bold")),O+=n.font.isBold?"Bold, ":"",0!=(o.fontStyle&e.FontStyle.Italic)&&(r.style.fontStyle="italic",n.fontStyle="Italic",n.font.isItalic=!0,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isItalic=!0),O+=n.font.isItalic?"Italic, ":"",0!=(o.fontStyle&e.FontStyle.Strikethrough)&&(r.style.textDecoration="line-through",n.font.isStrikeout=!0,n.fontStyle="Strikethrough",this.pdfViewer.nameTable[n.id.split("_")[0]].font.isStrikeout=!0),O+=n.font.isStrikeout?"Strikethrough, ":"",0!=(o.fontStyle&e.FontStyle.Underline)&&(r.style.textDecoration="underline",n.fontStyle="Underline",n.font.isUnderline=!0,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isUnderline=!0),O+=n.font.isUnderline?"Underline, ":""):(r.style.fontWeight="",r.style.fontStyle="",n.fontStyle="",r.style.textDecoration="",n.font.isBold=!1,n.font.isItalic=!1,n.font.isUnderline=!1,n.font.isStrikeout=!1,this.setDropdownFontStyleValue(r,"none",""),this.pdfViewer.nameTable[n.id.split("_")[0]].font.isBold=!1,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isItalic=!1,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isUnderline=!1,this.pdfViewer.nameTable[n.id.split("_")[0]].font.isStrikeout=!1,O=""),(p=!0)&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,p,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,U,O))}}if(!t.isNullOrUndefined(o.isReadOnly)){if(n.isReadonly!==o.isReadOnly&&(w=!0,s=n.isReadonly,l=o.isReadOnly),n.isReadonly=o.isReadOnly,this.setReadOnlyProperty(n,r),"RadioButton"===n.formFieldAnnotationType){r.parentElement.style.pointerEvents=o.isReadOnly?"none":"auto";for(var P=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),N=JSON.parse(P),z=0;z<N.length;z++)if(N[parseInt(z.toString(),10)].FormField.id.split("_")[0]===n.id){for(var H=0;H<N[parseInt(z.toString(),10)].FormField.radiobuttonItem.length;H++){var Y=N[parseInt(z.toString(),10)].FormField.radiobuttonItem[parseInt(H.toString(),10)],G=document.getElementById(Y.id+"_html_element").firstElementChild.firstElementChild.firstElementChild;G.parentElement.style.pointerEvents=o.isReadOnly?"none":"auto",Y.isReadonly=n.isReadonly,this.pdfViewerBase.formFieldCollection[parseInt(z.toString(),10)].FormField.radiobuttonItem[parseInt(H.toString(),10)].isReadonly=n.isReadonly,this.setReadOnlyProperty(Y,G),this.pdfViewerBase.formFieldCollection[parseInt(z.toString(),10)].FormField.radiobuttonItem[parseInt(H.toString(),10)].backgroundColor="object"!=typeof Y.backgroundColor?this.getRgbCode(Y.backgroundColor):Y.backgroundColor}N[parseInt(z.toString(),10)].FormField.isReadonly=n.isReadonly,this.pdfViewerBase.formFieldCollection[parseInt(z.toString(),10)].FormField.isReadonly=n.isReadonly}}else r.style.pointerEvents=o.isReadOnly?o.isMultiline?"auto":"none":"auto";w&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",n,!1,!1,!1,!1,!1,!1,!1,!1,!1,w,!1,!1,!1,!1,!1,!1,s,l)}("SignatureField"===n.formFieldAnnotationType&&o.signatureIndicatorSettings||"InitialField"===n.formFieldAnnotationType&&o.initialIndicatorSettings)&&(n=this.updateSignatureandInitialIndicator(n,o,r)),this.updateSessionFormFieldProperties(n);var J={id:n.id,name:n.name,value:n.value,type:n.formFieldAnnotationType,isReadOnly:n.isReadonly,fontFamily:n.fontFamily,fontSize:n.fontSize,fontStyle:n.fontStyle,color:n.color,backgroundColor:n.backgroundColor,alignment:n.alignment,visibility:n.visibility,maxLength:n.maxLength,isRequired:n.isRequired,isPrint:n.isPrint,tooltip:n.tooltip,bounds:n.bounds,thickness:n.thickness,borderColor:n.borderColor,pageIndex:n.pageIndex,insertSpaces:n.insertSpaces,isTransparent:n.isTransparent,options:n.options,pageNumber:n.pageNumber,rotateAngle:n.rotateAngle,selectedIndex:n.selectedIndex,signatureIndicatorSettings:n.signatureIndicatorSettings,signatureType:n.signatureType,zIndex:n.zIndex,isChecked:n.isChecked,isMultiline:n.isMultiline,isSelected:n.isSelected,customData:n.customData};this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===J.id})]=J,this.pdfViewer.formFieldCollection[this.pdfViewer.formFieldCollection.findIndex(function(e){return e.id===J.id})]=n,(d||A||h||p||c||g||u||f||m||w||C||S||y||I||E||v||B)&&this.pdfViewerBase.updateDocumentEditedProperty(!0)},a.prototype.colorNametoHashValue=function(e){var t=e;return t.match(/#([a-z0-9]+)/gi)||t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)||(t=this.nameToHash(t)),""!==t?t:e},a.prototype.getFormField=function(e){var t,i;return"object"==typeof e&&(i=this.getAnnotationsFromAnnotationCollections(e.id))&&(t=this.pdfViewer.nameTable[i.id]),"string"==typeof e&&(i=this.getAnnotationsFromAnnotationCollections(e))&&(t=this.pdfViewer.nameTable[i.id]),t},a.prototype.resetTextboxProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="textboxField",e.value="",e.fontFamily="Helvetica",e.fontSize=10,e.fontStyle="None",e.color="black",e.backgroundColor="#daeaf7ff",e.alignment="left",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,e.maxLength=0,this.updateTextboxProperties(e,t))},a.prototype.resetPasswordProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="passswordField",e.value="",e.fontFamily="Helvetica",e.fontSize=10,e.fontStyle="None",e.color="black",e.backgroundColor="#daeaf7ff",e.alignment="left",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,e.maxLength=0,this.updatePasswordFieldProperties(e,t))},a.prototype.resetCheckboxProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="checkboxField",e.isChecked=!1,e.backgroundColor="#daeaf7ff",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,this.updateCheckboxProperties(e,t))},a.prototype.resetRadioButtonProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="RadioButtonField",e.isSelected=!1,e.backgroundColor="#daeaf7ff",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,this.updateRadioButtonProperties(e,t))},a.prototype.resetDropdownListProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="dropDownField",e.value="",e.fontFamily="Helvetica",e.fontSize=10,e.fontStyle="None",e.color="black",e.backgroundColor="#daeaf7ff",e.alignment="left",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,e.options=[],this.updateDropdownListProperties(e,t),e.options&&this.updateDropDownListDataSource(e,t))},a.prototype.resetListBoxProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="listBoxField",e.value="",e.fontFamily="Helvetica",e.fontSize=10,e.fontStyle="None",e.color="black",e.backgroundColor="#daeaf7ff",e.alignment="left",e.visibility="visible",e.isReadonly=!1,e.isRequired=!1,e.tooltip="",e.isPrint=!0,e.borderColor="#303030",e.thickness=1,e.options=[],this.updateListBoxProperties(e,t),e.options&&this.updateDropDownListDataSource(e,t))},a.prototype.resetSignatureTextboxProperties=function(e){var t=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;t&&(e.name="signatureField",e.value="",e.fontFamily="Helvetica",e.fontSize=10,e.fontStyle="None",e.color="black",e.backgroundColor="#daeaf7ff",e.isRequired=!1,e.isReadonly=!1,e.tooltip="",e.isPrint=!0,e.visibility="visible",this.updateSignatureFieldProperties(e,t))},a.prototype.deleteFormField=function(e,i){void 0===i&&(i=!0);var n=this.getFormField(e);if(t.isNullOrUndefined(n)&&e){var o=this.pdfViewerBase.getItemFromSessionStorage("_formfields"),r=JSON.parse(o);this.pdfViewer.formFieldCollection=this.pdfViewer.formFieldCollection.filter(function(t){return e.id!==t.id});for(var a=0;a<this.pdfViewer.formFieldCollections.length;a++)if(e.id===this.pdfViewer.formFieldCollections[parseInt(a.toString(),10)].id)for(var s=0;s<r.length;s++)if(e.name===r[parseInt(s.toString(),10)].FieldName){r.splice(s,1);var l=this.pdfViewer.formFieldCollections[parseInt(s.toString(),10)];this.pdfViewer.formFieldCollections.splice(a,1);var d=JSON.stringify(r);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_formfields",d),this.pdfViewer.fireFormFieldRemoveEvent("formFieldRemove",l,l.pageIndex),i&&this.pdfViewer.annotation&&this.pdfViewer.annotation.addAction(l.pageIndex,null,l,"Delete","",l,l)}}n&&(this.clearSelection(e),this.pdfViewer.remove(n),this.pdfViewer.renderDrawing(),t.isNullOrUndefined(this.pdfViewer.toolbar)||t.isNullOrUndefined(this.pdfViewer.toolbar.formDesignerToolbarModule)||this.pdfViewer.toolbar.formDesignerToolbarModule.showHideDeleteIcon(!1),this.pdfViewerBase.formFieldCollection.length>0?this.pdfViewerBase.enableFormFieldButton(!0):this.pdfViewerBase.enableFormFieldButton(!1),i&&this.pdfViewer.annotation&&this.pdfViewer.annotation.addAction(this.pdfViewerBase.currentPageNumber,null,n,"Delete","",n,n))},a.prototype.clearSelection=function(e){var i,n;if("object"==typeof e&&(n=this.getAnnotationsFromAnnotationCollections(e.id),i=this.pdfViewer.nameTable[n.id]),"string"==typeof e&&(n=this.getAnnotationsFromAnnotationCollections(e),i=this.pdfViewer.nameTable[n.id]),i&&this.pdfViewer.selectedItems&&!t.isNullOrUndefined(this.pdfViewer.selectedItems.properties.formFields)&&this.pdfViewer.selectedItems.properties.formFields.length>0&&this.pdfViewer.selectedItems.properties.formFields[0].id===i.id){var o=t.isNullOrUndefined(this.pdfViewerBase.activeElements.activePageID)?i.pageIndex:this.pdfViewerBase.activeElements.activePageID;this.pdfViewer.clearSelection(o)}},a.prototype.setMode=function(e){e&&-1!==e.indexOf("designer")?(this.enableDisableFormFieldsInteraction(!0),this.pdfViewerBase.disableTextSelectionMode()):(this.enableDisableFormFieldsInteraction(!1),this.pdfViewer.toolbarModule.updateInteractionItems())},a.prototype.enableDisableFormFieldsInteraction=function(e){var t=this.pdfViewer.formFieldCollection;if(t&&t.length>0)for(var i=0;i<t.length;i++){var n=document.getElementById(t[parseInt(i.toString(),10)].id+"_content_html_element"),o=document.getElementById(t[parseInt(i.toString(),10)].id+"_designer_name");if(n)if(e){this.pdfViewer.designerMode=!0,n.style.pointerEvents="none",o.innerHTML=t[parseInt(i.toString(),10)].name;this.pdfViewerBase.getZoomFactor();switch(o.style.fontSize=this.defaultFontSize+"px",o.style.position="absolute",t[parseInt(i.toString(),10)].formFieldAnnotationType){case"Textbox":case"PasswordField":case"DropdownList":case"ListBox":case"SignatureField":case"InitialField":case"RadioButton":(r=document.getElementById(t[parseInt(i.toString(),10)].id+"_content_html_element").firstElementChild.firstElementChild).style.pointerEvents="none";break;case"Checkbox":(a=document.getElementById(t[parseInt(i.toString(),10)].id+"_content_html_element").firstElementChild.firstElementChild.lastElementChild).style.pointerEvents="none"}}else{switch(this.pdfViewer.designerMode=!1,n.style.pointerEvents="all",o.innerHTML="",o.style.position="initial","RadioButton"===t[parseInt(i.toString(),10)].formFieldAnnotationType&&this.updateRadioButtonDesignerProperties(t[parseInt(i.toString(),10)],!0),"Checkbox"===t[parseInt(i.toString(),10)].formFieldAnnotationType&&this.updateCheckboxFormDesignerProperties(t[parseInt(i.toString(),10)],!0),t[parseInt(i.toString(),10)].formFieldAnnotationType){case"Textbox":case"PasswordField":case"DropdownList":case"ListBox":case"SignatureField":case"InitialField":case"RadioButton":var r=document.getElementById(t[parseInt(i.toString(),10)].id+"_content_html_element").firstElementChild.firstElementChild;r.style.pointerEvents=t[parseInt(i.toString(),10)].isReadonly?t[parseInt(i.toString(),10)].isMultiline?"auto":"none":"auto";break;case"Checkbox":var a=document.getElementById(t[parseInt(i.toString(),10)].id+"_content_html_element").firstElementChild.firstElementChild.lastElementChild;a.style.pointerEvents=t[parseInt(i.toString(),10)].isReadonly?t[parseInt(i.toString(),10)].isMultiline?"auto":"none":"auto"}this.pdfViewer.clearSelection(t[parseInt(i.toString(),10)].pageIndex)}}},a.prototype.getAnnotationsFromAnnotationCollections=function(e){var t=this.pdfViewer.formFieldCollection;if(t&&e)for(var i=0;i<t.length;i++)if(t[parseInt(i.toString(),10)].id===e)return t[parseInt(i.toString(),10)]},a.prototype.updateSignatureValue=function(e){for(var t=0;t<this.pdfViewerBase.formFieldCollection.length;t++)e===this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.id&&(this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.value="",this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.id.split("_")[0]].value="",this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.id].value="",this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.signatureType="",this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.id.split("_")[0]].signatureType="",this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(t.toString(),10)].FormField.id].signatureType="")},a.prototype.removeFieldsFromAnnotationCollections=function(e,i){var n,o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o),a=this.pdfViewerBase.getItemFromSessionStorage("_formfields");t.isNullOrUndefined(a)||(n=JSON.parse(a));for(c=0;c<r.length;c++)if(r[parseInt(c.toString(),10)].Key.split("_")[0]===e){r.splice(c,1),this.pdfViewerBase.formFieldCollection.splice(c,1);break}if(!t.isNullOrUndefined(n))for(c=0;c<n.length;c++)if(n[parseInt(c.toString(),10)].FieldName===i){n.splice(parseInt(c.toString(),10),1),sessionStorage.setItem(this.pdfViewerBase.documentId+"_formfields",JSON.stringify(n));break}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner");var s=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_shape");if(s){var l=JSON.parse(s),d=this.pdfViewer.annotationModule.getPageCollection(l,this.pdfViewerBase.currentPageNumber-1);if(null!=d&&l[parseInt(d.toString(),10)]){for(var A=0;A<l[parseInt(d.toString(),10)].annotations.length;A++)if(e===l[parseInt(d.toString(),10)].annotations[parseInt(A.toString(),10)].id){l[parseInt(d.toString(),10)].annotations.splice(A,1);break}var h=JSON.stringify(l);Fi.sessionStorageManager.setItem(this.pdfViewerBase.documentId+"_annotations_shape",h)}}var p=this.pdfViewer.formFieldCollection;if(p&&e)for(var c=0;c<p.length;c++)p[parseInt(c.toString(),10)].formFieldId===e&&this.pdfViewer.formFieldCollection.splice(c,1)},a.prototype.setFormFieldIndex=function(){if(this.pdfViewer.formFieldCollections.length>0){var e=this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.length-1],t=e&&e.name?isNaN(parseInt(e.name.match(/\d+/),10))?this.pdfViewer.formFieldCollections.length:parseInt(e.name.match(/\d+/),10):null;this.isAddFormFieldUi?this.formFieldIndex=this.formFieldIndex>this.pdfViewer.formFieldCollections.length?t+1:this.pdfViewer.formFieldCollections.length+1:this.formFieldIndex=isNaN(t)?this.formFieldIndex+1:t+1}else this.formFieldIndex++;return this.formFieldIndex},a.prototype.setFormFieldIdIndex=function(){return this.formFieldIdIndex=this.formFieldIdIndex+1,this.formFieldIdIndex},a.prototype.activateTextboxElement=function(e){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"Textbox"+this.setFormFieldIndex(),value:"",fontFamily:"Helvetica",fontSize:this.defaultFontSize,fontStyle:"None",color:"black",backgroundColor:"#daeaf7ff",thickness:1,borderColor:"#303030",alignment:"left",isReadonly:!1,visibility:"visible",isRequired:!1,isPrint:!0,rotateAngle:0,tooltip:"",customData:"",font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1}},this.pdfViewer.tool="DrawTool"},a.prototype.activatePasswordField=function(e){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"Password"+this.setFormFieldIndex(),value:"",fontFamily:"Helvetica",fontSize:this.defaultFontSize,fontStyle:"None",color:"black",alignment:"left",backgroundColor:"#daeaf7ff",thickness:1,borderColor:"#303030",isReadonly:!1,visibility:"visible",isRequired:!1,isPrint:!0,rotateAngle:0,tooltip:"",customData:"",font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1}},this.pdfViewer.tool="DrawTool"},a.prototype.activateCheckboxElement=function(e){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"Check Box"+this.setFormFieldIndex(),isChecked:!1,fontSize:this.defaultFontSize,backgroundColor:"#daeaf7ff",color:"black",thickness:1,borderColor:"#303030",isReadonly:!1,visibility:"visible",isPrint:!0,rotateAngle:0,tooltip:"",customData:""},this.pdfViewer.tool="DrawTool"},a.prototype.activateRadioButtonElement=function(e){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"Radio Button"+this.setFormFieldIndex(),isSelected:!1,fontSize:this.defaultFontSize,backgroundColor:"#daeaf7ff",color:"black",thickness:1,borderColor:"#303030",isReadonly:!1,visibility:"visible",isPrint:!0,rotateAngle:0,tooltip:"",customData:""},this.pdfViewer.tool="DrawTool"},a.prototype.activateDropDownListElement=function(e,t){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"Dropdown"+this.setFormFieldIndex(),fontFamily:"Helvetica",fontSize:this.defaultFontSize,fontStyle:"None",color:"black",backgroundColor:"#daeaf7ff",thickness:1,borderColor:"#303030",alignment:"left",isReadonly:!1,visibility:"visible",isRequired:!1,isPrint:!0,rotateAngle:0,tooltip:"",customData:"",options:t,isMultiSelect:!1,font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1}},this.pdfViewer.tool="DrawTool"},a.prototype.activateListboxElement=function(e,t){this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"List Box"+this.setFormFieldIndex(),fontFamily:"Helvetica",fontSize:this.defaultFontSize,fontStyle:"None",color:"black",backgroundColor:"#daeaf7ff",thickness:1,borderColor:"#303030",alignment:"left",isReadonly:!1,visibility:"visible",isRequired:!1,isPrint:!0,rotateAngle:0,tooltip:"",customData:"",options:t,isMultiSelect:!0,font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1}},this.pdfViewer.tool="DrawTool"},a.prototype.activateSignatureBoxElement=function(e){var i={opacity:1,backgroundColor:"rgba(255, 228, 133, 0.35)",width:19,height:10,fontSize:this.defaultFontSize,text:null,color:"black"};switch(e){case"SignatureField":t.isNullOrUndefined(this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings)||(i=this.pdfViewer.signatureFieldSettings.signatureIndicatorSettings);break;case"InitialField":t.isNullOrUndefined(this.pdfViewer.initialFieldSettings.initialIndicatorSettings)||(i=this.pdfViewer.initialFieldSettings.initialIndicatorSettings)}this.pdfViewer.drawingObject={formFieldAnnotationType:e,name:"InitialField"===e||this.pdfViewer.isInitialFieldToolbarSelection?"Initial"+this.setFormFieldIndex():"Signature"+this.setFormFieldIndex(),fontFamily:"Helvetica",fontSize:this.defaultFontSize,fontStyle:"None",color:"black",backgroundColor:"#daeaf7ff",alignment:"left",isReadonly:!1,visibility:"visible",isRequired:!1,isPrint:!0,rotateAngle:0,tooltip:"",customData:"",font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1},isInitialField:"InitialField"===e||this.pdfViewer.isInitialFieldToolbarSelection,signatureIndicatorSettings:{opacity:i.opacity,backgroundColor:i.backgroundColor,width:i.width,height:i.height,fontSize:i.fontSize,text:i.text,color:i.color}},this.pdfViewer.tool="DrawTool"},a.prototype.updateTextboxProperties=function(e,i,n){i.name=e.name?e.name:"Textbox"+this.setFormFieldIndex(),i.value=e.value?e.value:"";var o=n?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor();if(e.insertSpaces){var r=e.bounds.width*o/e.maxLength-e.fontSize*o/2-.6*o;i.style.letterSpacing=r+"px",i.style.fontFamily="monospace",i.style.paddingLeft=r/2+"px"}else i.style.fontFamily=e.fontFamily?e.fontFamily:"Helvetica";i.style.fontSize=e.fontSize?e.fontSize*o+"px":10*o+"px",e.font.isBold&&(i.style.fontWeight="bold"),e.font.isItalic&&(i.style.fontStyle="italic"),e.font.isUnderline&&e.font.isStrikeout?i.style.textDecoration="underline line-through":e.font.isStrikeout?i.style.textDecoration="line-through":e.font.isUnderline&&(i.style.textDecoration="underline"),e.isTransparent&&"#ffffffff"===e.borderColor?(i.style.backgroundColor="transparent",i.style.borderColor="transparent"):(i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030"),i.style.color=e.color?e.color:"black",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",i.style.textAlign=e.alignment?e.alignment.toLowerCase():"left",i.style.direction=this.pdfViewer.enableRtl?"rtl":"",i.style.visibility=e.visibility?e.visibility:"visible",i.style.pointerEvents=e.isReadonly?e.isMultiline?"default":"none":"default",i.style.resize=e.isMultiline&&!this.pdfViewer.isFormDesignerToolbarVisible?"none":"default",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),t.isNullOrUndefined(e.maxLength)||(i.maxLength=0===e.maxLength?524288:e.maxLength),i.tabIndex=this.formFieldIndex,i.setAttribute("aria-label",this.pdfViewer.element.id+"formfilldesigner")},a.prototype.updatePasswordFieldProperties=function(e,i,n){i.name=e.name?e.name:"Password"+this.setFormFieldIndex(),i.value=e.value?e.value:"",i.style.fontFamily=e.fontFamily?e.fontFamily:"Helvetica";var o=n?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor();i.style.fontSize=e.fontSize?e.fontSize*o+"px":10*o+"px",e.font.isBold&&(i.style.fontWeight="bold"),e.font.isItalic&&(i.style.fontStyle="italic"),e.font.isStrikeout&&(i.style.textDecoration="line-through"),e.font.isUnderline&&(i.style.textDecoration="underline"),i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",i.style.color=e.color?e.color:"black",i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030",i.style.textAlign=e.alignment?e.alignment.toLowerCase():"left",i.style.direction=this.pdfViewer.enableRtl?"rtl":"",i.style.visibility=e.visibility?e.visibility:"visible",i.style.pointerEvents=e.isReadonly?"none":"default",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),t.isNullOrUndefined(e.maxLength)||(i.maxLength=0===e.maxLength?524288:e.maxLength),i.tabIndex=this.formFieldIndex},a.prototype.updateCheckboxProperties=function(e,i){i.name=e.name?e.name:"Check Box"+this.setFormFieldIndex(),i.checked=!!e.isChecked,e.isTransparent&&"#ffffffff"===e.borderColor?(i.style.backgroundColor="transparent",i.style.borderColor="transparent"):(i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030"),i.style.visibility=e.visibility?e.visibility:"visible",i.style.pointerEvents=e.isReadonly?"none":"default",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),i.tabIndex=this.formFieldIndex},a.prototype.updateRadioButtonProperties=function(e,i,n){i.name=e.name?e.name:"Radio Button"+this.setFormFieldIndex(),i.checked=!!e.isSelected,i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030",i.style.visibility=e.visibility?e.visibility:"visible",t.isNullOrUndefined(n)?i.style.pointerEvents=e.isReadonly?"none":"default":n.style.pointerEvents=e.isReadonly?"none":"default",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),i.tabIndex=this.formFieldIndex},a.prototype.updateDropdownListProperties=function(e,i,n){i.name=e.name?e.name:"Dropdown"+this.setFormFieldIndex(),i.value=e.value?e.value:"",i.style.fontFamily=e.fontFamily?e.fontFamily:"Helvetica";var o=n?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor();i.style.fontSize=e.fontSize?e.fontSize*o+"px":10*o+"px",e.font.isBold&&(i.style.fontWeight="bold"),e.font.isItalic&&(i.style.fontStyle="italic"),e.font.isStrikeout&&(i.style.textDecoration="line-through"),e.font.isUnderline&&(i.style.textDecoration="underline"),i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",i.style.color=e.color?e.color:"black",i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030",i.style.textAlign=e.alignment?e.alignment.toLowerCase():"left",i.style.visibility=e.visibility?e.visibility:"visible",i.style.pointerEvents=e.isReadonly?"none":"default",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),i.tabIndex=this.formFieldIndex},a.prototype.updateListBoxProperties=function(e,i,n){i.name=e.name?e.name:"List Box"+this.setFormFieldIndex(),i.value=e.value?e.value:"",i.style.fontFamily=e.fontFamily?e.fontFamily:"Helvetica";var o=n?this.defaultZoomValue:this.pdfViewerBase.getZoomFactor();i.style.fontSize=e.fontSize?e.fontSize*o+"px":10*o+"px",e.font.isBold&&(i.style.fontWeight="bold"),e.font.isItalic&&(i.style.fontStyle="italic"),e.font.isStrikeout&&(i.style.textDecoration="line-through"),e.font.isUnderline&&(i.style.textDecoration="underline"),i.style.color=e.color?e.color:"black",i.style.backgroundColor=e.backgroundColor?e.backgroundColor:"#daeaf7ff",i.style.borderColor=e.borderColor?e.borderColor:"#303030",i.style.textAlign=e.alignment?e.alignment.toLowerCase():"left",i.style.visibility=e.visibility?e.visibility:"visible",i.style.pointerEvents=e.isReadonly?"none":"default",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px",e.isReadonly&&(i.disabled=!0,i.style.cursor="default",i.style.backgroundColor="#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent"),e.isRequired&&(i.required=!0,i.style.border="1px solid red",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px"),i.tabIndex=this.formFieldIndex},a.prototype.updateSignatureFieldProperties=function(e,i,n){i.name=e.name?e.name:"Signature"+this.setFormFieldIndex(),i.value=e.value?e.value:"",i.style.fontFamily=e.fontFamily?e.fontFamily:"Helvetica",i.style.visibility=e.visibility?e.visibility:"visible";var o=this.pdfViewerBase.getZoomFactor();i.style.fontSize=e.fontSize?e.fontSize*o+"px":10*o+"px",e.font.isBold&&(i.style.fontWeight="bold"),e.font.isItalic&&(i.style.fontStyle="italic"),e.font.isStrikeout&&(i.style.textDecoration="line-through"),e.font.isUnderline&&(i.style.textDecoration="underline"),i.style.color=e.color?e.color:"black",i.style.borderWidth=t.isNullOrUndefined(e.thickness)?"1px":e.thickness+"px";var r=e.backgroundColor?e.backgroundColor:"#FFE48559";if(r=Vi.setTransparencyToHex(r),e.isTransparent&&"#ffffffff"===e.borderColor?(i.style.backgroundColor="transparent",i.style.borderColor="transparent",i.firstElementChild&&(i.firstElementChild.style.borderColor="transparent")):(i.style.backgroundColor=n?"transparent":r,i.style.borderColor=e.borderColor?e.borderColor:"#303030",i.firstElementChild&&(i.firstElementChild.style.borderColor=e.borderColor?e.borderColor:"#303030")),i.style.pointerEvents=e.isReadonly?"none":"default",e.isReadonly&&(t.isNullOrUndefined(i.firstElementChild)||(i.firstElementChild.disabled=!0),i.style.cursor="default"),e.isRequired){if(i.required=!0,i.firstElementChild){var a=e.thickness>0?e.thickness:1;i.firstElementChild.style.border=a+"px solid red"}else i.style.border="1px solid red";i.style.borderWidth=e.thickness?e.thickness+"px":"1px"}i.tabIndex=this.formFieldIndex},a.prototype.createHtmlElement=function(e,i){var n=t.createElement(e);return this.setAttributeHtml(n,i),n},a.prototype.setAttributeHtml=function(e,t){for(var i=Object.keys(t),n=0;n<i.length;n++)"style"!==i[parseInt(n.toString(),10)]?e.setAttribute(i[parseInt(n.toString(),10)],t[i[parseInt(n.toString(),10)]]):this.applyStyleAgainstCsp(e,t[i[parseInt(n.toString(),10)]])},a.prototype.applyStyleAgainstCsp=function(e,t){for(var i=t.split(";"),n=0;n<i.length;n++){var o=i[parseInt(n.toString(),10)].split(":");2===o.length&&(e.style[o[0].trim()]=o[1].trim())}},a.prototype.getFieldBounds=function(e,t){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];e={X:e.X?e.X:e.x,Y:e.Y?e.Y:e.y,Width:e.Width?e.Width:e.width,Height:e.Height?e.Height:e.height};var n;if(i)switch(i.rotation){case 0:n=e;break;case 1:n={X:e.Y-(e.Width/2-e.Height/2),Y:i.width-e.X-e.Height-(e.Width/2-e.Height/2),Width:e.Width,Height:e.Height};break;case 2:n={X:i.width-e.X-e.Width,Y:i.height-e.Y-e.Height,Width:e.Width,Height:e.Height};break;case 3:n={X:i.height-e.Y-e.Width+(e.Width/2-e.Height/2),Y:e.X+(e.Width/2-e.Height/2),Width:e.Height,Height:e.Width}}return n||(n=e),n},a.prototype.downloadFormDesigner=function(){var e=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner");if(0===this.pdfViewer.formFieldCollections.length&&(e="[]"),e||this.pdfViewer.formDesignerModule&&this.pdfViewer.formFieldCollections.length>0){var n=t.isNullOrUndefined(e)?[]:JSON.parse(e);this.updateMissingFormFields(n);for(var o=this,r=0;r<n.length;r++)!function(e){var r=n[parseInt(e.toString(),10)].FormField;if(!t.isNullOrUndefined(r)&&("SignatureField"===r.formFieldAnnotationType||"InitialField"===r.formFieldAnnotationType)&&t.isNullOrUndefined(r.signatureBound)){var a=o.pdfViewer.formFieldCollections.filter(function(e){return e.id===r.id.split("_")[0]});if(t.isNullOrUndefined(r.signatureType)||""!==r.signatureType||(r.signatureType=a[0].signatureType),t.isNullOrUndefined(r.value)||""!==r.value||(r.value=a[0].value),"Image"===r.signatureType){var s=r.value.toString().split(",")[1],l=new d.PdfBitmap(s),A={x:r.lineBound.X,y:r.lineBound.Y,width:r.lineBound.Width,height:r.lineBound.Height};if("Default"===o.pdfViewer.signatureFitMode){var h=Math.min(A.height/o.pdfViewer.formFieldsModule.paddingDifferenceValue,A.width/o.pdfViewer.formFieldsModule.paddingDifferenceValue),p=A.height-h,c=A.width-h,g=l.width,u=l.height,f=A.width,m=A.height,w=Math.min(c/g,p/u);A.width=g*w,A.height=u*w,A.x=A.x+(f-A.width)/2,A.y=A.y+(m-A.height)/2}r.signatureBound=A,l=null}else if("Path"===r.signatureType){A={x:r.lineBound.X,y:r.lineBound.Y,width:r.lineBound.Width,height:r.lineBound.Height};if("Default"===o.pdfViewer.signatureFitMode){y=o.pdfViewerBase.getZoomFactor();r.LineBounds={X:Vi.convertPixelToPoint(r.lineBound.X),Y:Vi.convertPixelToPoint(r.lineBound.Y),Width:Vi.convertPixelToPoint(r.lineBound.Width),Height:Vi.convertPixelToPoint(r.lineBound.Height)},"string"==typeof a[0].value&&a[0].value.trim().startsWith("[")&&(a[0].value=o.pdfViewerBase.signatureValue(a[0].value));var C=o.pdfViewerBase.signatureModule.updateSignatureAspectRatio(a[0].value,!1,null,r);o.pdfViewer.formFieldsModule&&(A=o.pdfViewer.formFieldsModule.getSignBounds(e,r.rotation,r.pageNumber,y,r.lineBound.X,r.lineBound.Y,C.width,C.height,!0)),A.x=A.x+C.left,A.y=A.y+C.top}r.signatureBound=A;var B=i.processPathData(a[0].value),S=i.splitArrayCollection(B);r.value=JSON.stringify(S)}else if("Type"===r.signatureType||"Text"===r.signatureType){var y=o.pdfViewerBase.getZoomFactor();if(o.pdfViewer.formFieldsModule){var I=o.pdfViewer.formFieldsModule.getSignBounds(e,r.rotation,r.pageNumber,y,r.lineBound.X,r.lineBound.Y,r.lineBound.Width,r.lineBound.Height);"Default"===o.pdfViewer.signatureFitMode&&(I=o.pdfViewer.formFieldsModule.getDefaultBoundsforSign(I)),r.signatureBound=I,r.signatureType="Text";var E=I.height/o.pdfViewer.formFieldsModule.signatureFontSizeConstent,v=o.pdfViewer.formFieldsModule.getTextWidth(r.value,E,r.fontFamily),b=1;v>I.width&&(b=I.width/v),r.fontSize=o.pdfViewer.formFieldsModule.getFontSize(Math.floor(E*b))}}}if(r.Multiline=r.isMultiline,r.isRequired)if("Textbox"===r.formFieldAnnotationType||"PasswordField"===r.formFieldAnnotationType||r.Multiline)null===r.value||""===r.value?(o.pdfViewerBase.validateForm=!0,o.pdfViewerBase.nonFillableFields[r.name]=r.value):delete o.pdfViewerBase.nonFillableFields[r.name];else if("RadioButton"===r.formFieldAnnotationType){if(r.radiobuttonItem){for(var V=!1,D=0;D<r.radiobuttonItem.length;D++)if(r.radiobuttonItem[parseInt(D.toString(),10)].isSelected){V=!0;break}V?delete o.pdfViewerBase.nonFillableFields[r.name]:(o.pdfViewerBase.validateForm=!0,o.pdfViewerBase.nonFillableFields[r.name]=V)}}else"Checkbox"===r.formFieldAnnotationType?!1===r.isChecked?(o.pdfViewerBase.validateForm=!0,o.pdfViewerBase.nonFillableFields[r.name]=r.isChecked):delete o.pdfViewerBase.nonFillableFields[r.name]:"DropdownList"===r.formFieldAnnotationType||"ListBox"===r.formFieldAnnotationType?t.isNullOrUndefined(r.selectedIndex)||0===r.selectedIndex.length?(o.pdfViewerBase.validateForm=!0,o.pdfViewerBase.nonFillableFields[r.name]=r.selectedIndex):delete o.pdfViewerBase.nonFillableFields[r.name]:"SignatureField"!==r.formFieldAnnotationType&&"InitialField"!==r.formFieldAnnotationType||(null===r.value||""===r.value?(o.pdfViewerBase.validateForm=!0,o.pdfViewerBase.nonFillableFields[r.name]=r.value):delete o.pdfViewerBase.nonFillableFields[r.name]);r&&("SignatureField"!==r.formFieldAnnotationType&&"InitialField"!==r.formFieldAnnotationType||("Text"!==r.signatureType||o.pdfViewerBase.signatureModule.checkDefaultFont(r.fontFamily)||o.getTextToImage(r),o.pdfViewerBase.clientSideRendering&&"Image"===r.signatureType&&(n[parseInt(e.toString(),10)].FormField.signatureBound=o.getBoundsForSignatureImage(n[parseInt(e.toString(),10)].FormField.signatureBound,n[parseInt(e.toString(),10)].FormField.pageNumber-1))))}(r);return JSON.stringify(n)}return null},a.prototype.getBoundsForSignatureImage=function(e,t){var i=this.pdfViewerBase.pageSize[parseInt(t.toString(),10)];return i?1===i.rotation?{x:e.x+e.width-e.height,y:e.y,width:e.height,height:e.width}:3===i.rotation?{x:e.x,y:e.y-e.width+e.height,width:e.height,height:e.width}:e:e},a.prototype.updateMissingFormFields=function(e){var t=this;if(e&&e.length!==this.pdfViewer.formFieldCollections.length)for(var i=this.pdfViewer.formFieldCollections.filter(function(e){var i=e.id;return!t.pdfViewer.formFieldCollection.some(function(e){return e.id===i})}),n=this,o=0;o<i.length;o++)!function(t){var o=n.pdfViewer.formDesignerModule.loadedFormFieldValue(i[parseInt(t.toString(),10)]);if("RadioButton"===o.formFieldAnnotationType){var r=e.findIndex(function(e){return e.FormField.name===o.name});r&&r>=0?e[parseInt(r.toString(),10)].FormField.radiobuttonItem.push(o):e.push({Key:o.id+"_content",FormField:o})}else e.push({Key:o.id+"_content",FormField:o})}(o)},a.prototype.getTextToImage=function(e){var i=t.createElement("canvas");i.width=e.lineBound.Width/this.pdfViewerBase.getZoomFactor()||150,i.height=e.lineBound.Height/this.pdfViewerBase.getZoomFactor()||2*e.fontSize;var n=i.getContext("2d"),o=i.width/2,r=i.height/2+e.fontSize/2-10;n.textAlign="center",n.font=e.fontSize+"px "+e.fontFamily,n.fillText(e.value,o,r),e.value=JSON.stringify(i.toDataURL("image/png")),e.signatureType="Image"},a.prototype.loadedFormFieldValue=function(e){var n,o,r=this.getRgbCode(e.backgroundColor),a=e.bounds,s=e.backgroundColor?{r:r.r,g:r.g,b:r.b,a:r.a}:{r:218,g:234,b:247,a:100},l=this.hexToRgb(e.color),d=e.color?{r:l[0],g:l[1],b:l[2],a:100}:{r:0,g:0,b:0,a:100},A=this.hexToRgb(e.borderColor),h=e.borderColor?{r:A[0],g:A[1],b:A[2],a:100}:{r:48,g:48,b:48,a:100},p=[],c=[],g=[],u="";if(this.data=this.pdfViewerBase.getItemFromSessionStorage("_formfields"),!t.isNullOrUndefined(this.data)){if(this.formFieldsData=JSON.parse(this.data),"DropdownList"===e.type||"ListBox"===e.type){var f=this.formFieldsData.filter(function(t){return e.name===t.FieldName});if(f.length>0){c=f[0].TextList,t.isNullOrUndefined(f[0].selectedIndex)?g.push(f[0].SelectedList[0]):g.push(f[0].selectedIndex);for(C=0;C<c.length;C++)p.push({itemName:c[parseInt(C.toString(),10)],itemValue:c[parseInt(C.toString(),10)]})}}if("InitialField"===e.type||"SignatureField"===e.type){this.formFieldsData=JSON.parse(this.data),"["===this.formFieldsData[0]&&(this.formFieldsData=JSON.parse(this.formFieldsData));var m=this.formFieldsData.filter(function(t){return e.name===t.FieldName});if(m.length>0)for(var w=this.formFieldsData.filter(function(e){return("ink"===e.Name||"SignatureField"===e.Name||"SignatureImage"===e.Name||"SignatureText"===e.Name)&&m[0].FieldName===e.FieldName.split("_")[0]}),C=0;C<w.length;C++)if(m[0].FieldName!==w[parseInt(C.toString(),10)].FieldName){if(n=w[parseInt(C.toString(),10)].Value,e.fontFamily=w[parseInt(C.toString(),10)].FontFamily,e.fontSize=w[parseInt(C.toString(),10)].FontSize,!m.Bounds){var B=w[parseInt(C.toString(),10)].LineBounds,S=void 0,y=void 0,I=void 0,E=void 0,v=parseFloat(w[parseInt(C.toString(),10)].PageIndex);B.x||B.y||B.width||B.height?(S=B.x,y=B.y,I=B.width,E=B.height):this.pdfViewer.formFieldsModule&&(S=this.pdfViewer.formFieldsModule.ConvertPointToPixel(B.X),y=this.pdfViewer.formFieldsModule.ConvertPointToPixel(B.Y),I=this.pdfViewer.formFieldsModule.ConvertPointToPixel(B.Width),E=this.pdfViewer.formFieldsModule.ConvertPointToPixel(B.Height));var b={left:S,top:y,width:I,height:E};this.pdfViewer.formFieldsModule&&(o=this.pdfViewer.formFieldsModule.updateSignatureBounds(b,v,!1))}if("SignatureImage"===w[parseInt(C.toString(),10)].Name&&(u="Image"),"ink"===w[parseInt(C.toString(),10)].Name&&(u="Path"),"SignatureText"===w[parseInt(C.toString(),10)].Name&&(u="Text"),"Path"===u){var V=i.processPathData(w[parseInt(C.toString(),10)].Value),D=i.splitArrayCollection(V);n=JSON.stringify(D)}break}}}var x={lineBound:{X:a.x,Y:a.y,Width:a.width,Height:a.height},pageNumber:parseFloat(e.pageIndex)+1,name:e.name,tooltip:e.tooltip,value:n||e.value,radiobuttonItem:[],signatureType:e.signatureType?e.signatureType:u,id:e.id,insertSpaces:!!e.insertSpaces&&e.insertSpaces,isChecked:!!e.isChecked&&e.isChecked,isPrint:!!e.isPrint&&e.isPrint,isSelected:!!e.isSelected&&e.isSelected,fontFamily:e.fontFamily,fontStyle:e.fontStyle,backgroundColor:s,fontColor:d,borderColor:h,thickness:e.thickness,fontSize:e.fontSize,isMultiline:!!e.isMultiline&&e.isMultiline,rotation:e.rotateAngle,isReadOnly:!!e.isReadOnly&&e.isReadOnly,isRequired:!!e.isRequired&&e.isRequired,textAlign:e.alignment,formFieldAnnotationType:e.type,zoomValue:1,option:p,maxLength:e.maxLength?e.maxLength:0,visibility:e.visibility,font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1},customData:e.customData};if(o&&(x.signatureBound=o),g.length>0&&(x.selectedIndex=g),"RadioButton"===e.type){var Q={lineBound:{X:a.x,Y:a.y,Width:a.width,Height:a.height},pageNumber:parseFloat(e.pageIndex)+1,name:e.name,tooltip:e.tooltip,value:e.value,signatureType:e.signatureType?e.signatureType:"",id:e.id,isChecked:!!e.isChecked&&e.isChecked,isSelected:!!e.isSelected&&e.isSelected,fontFamily:e.fontFamily,fontStyle:e.fontStyle,backgroundColor:s,fontColor:d,borderColor:h,thickness:e.thickness,fontSize:e.fontSize,rotation:0,isReadOnly:!!e.isReadOnly&&e.isReadOnly,isRequired:!!e.isRequired&&e.isRequired,isPrint:!!e.isPrint&&e.isPrint,textAlign:e.alignment,formFieldAnnotationType:e.type,zoomValue:1,maxLength:e.maxLength?e.maxLength:0,visibility:e.visibility,font:{isItalic:!1,isBold:!1,isStrikeout:!1,isUnderline:!1},customData:e.customData};x.radiobuttonItem.push(Q)}else x.radiobuttonItem=[];return x},a.prototype.createAnnotationLayer=function(e,i,n,o,r){var a=this.pdfViewerBase.getElement("_annotationCanvas_"+o);if(a)return this.updateAnnotationCanvas(a,i,n,o),a;var s=t.createElement("canvas",{id:this.pdfViewer.element.id+"_annotationCanvas_"+o,className:"e-pv-annotation-canvas"});return this.updateAnnotationCanvas(s,i,n,o),e.appendChild(s),s},a.prototype.resizeAnnotations=function(e,t,i){var n=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",i);n&&(n.style.width=e+"px",n.style.height=t+"px",this.pdfViewerBase.applyElementStyles(n,i))},a.prototype.getEventPageNumber=function(e){var t=e.target;t.classList.contains("e-pv-hyperlink")?t=t.parentElement:(t.parentElement.classList.contains("foreign-object")||t.parentElement.classList.contains("e-pv-radiobtn-container"))&&(t=t.closest(".e-pv-text-layer"));var i=t.id.split("_text_")[1]||t.id.split("_textLayer_")[1]||t.id.split("_annotationCanvas_")[1]||t.id.split("_pageDiv_")[1];return isNaN(i)&&(e=this.pdfViewerBase.annotationEvent)&&(i=(t=e.target).id.split("_text_")[1]||t.id.split("_textLayer_")[1]||t.id.split("_annotationCanvas_")[1]||t.id.split("_pageDiv_")[1]),parseInt(i,10)},a.prototype.getPropertyPanelHeaderContent=function(e){switch(e){case"Textbox":return this.pdfViewer.localeObj.getConstant("Textbox");case"PasswordField":return this.pdfViewer.localeObj.getConstant("Password");case"Checkbox":return this.pdfViewer.localeObj.getConstant("Check Box");case"RadioButton":return this.pdfViewer.localeObj.getConstant("Radio Button");case"DropdownList":return this.pdfViewer.localeObj.getConstant("Dropdown");case"ListBox":return this.pdfViewer.localeObj.getConstant("List Box");case"InitialField":return this.pdfViewer.localeObj.getConstant("Initial");case"SignatureField":return this.pdfViewer.localeObj.getConstant("Signature")}},a.prototype.createPropertiesWindow=function(){var e,i=this,n=this.pdfViewer.element.id,r=t.createElement("div",{id:n+"_properties_window",className:"e-pv-properties-form-field-window"}),a=this.createAppearanceTab();this.pdfViewerBase.pageContainer.appendChild(r),e="DropdownList"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"ListBox"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?"430px":"505px",this.propertiesDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!1,isModal:!0,header:'<div class="e-pv-form-field-property-header"> '+this.getPropertyPanelHeaderContent(this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType)+" "+this.pdfViewer.localeObj.getConstant("Properties")+"</div>",minHeight:e,target:this.pdfViewer.element,content:a,beforeOpen:function(){i.isPropertyDialogOpen=!0},allowDragging:!0,close:function(){i.destroyPropertiesWindow(),i.isPropertyDialogOpen=!1}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode,this.propertiesDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Cancel")},click:this.onCancelClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("OK"),isPrimary:!0},click:this.onOkClicked.bind(this)}],this.pdfViewer.enableRtl&&(this.propertiesDialog.enableRtl=!0);var s=t.createElement("div");s.className="e-pv-properties-bottom-spliter",r.appendChild(s),this.propertiesDialog.appendTo(r)},a.prototype.onOkClicked=function(e){var t=this.pdfViewer.selectedItems.formFields[0],n=B(t);if(this.isAddFormFieldProgrammatically=!1,t){switch(t.formFieldAnnotationType){case"Textbox":case"PasswordField":if(this.formFieldMultiline&&this.formFieldMultiline.checked&&"Textbox"===t.formFieldAnnotationType&&this.multilineCheckboxCheckedState?this.renderMultilineText(t):"Textbox"===t.formFieldAnnotationType&&this.multilineCheckboxCheckedState&&this.renderTextbox(t),"PasswordField"===t.formFieldAnnotationType&&this.updateTextboxFormDesignerProperties(t),"Textbox"===t.formFieldAnnotationType){var o=this.checkTextboxName(t);if(o&&o.length>0)for(var r=0;r<o.length;r++){var a=o[parseInt(r.toString(),10)];a.id===t.id&&(t.isMultiline?this.renderMultilineText(a):this.renderTextbox(a),document.getElementById(a.id+"_content_html_element")?this.updateTextboxFormDesignerProperties(a):this.updateFormFieldPropertiesInCollections(a))}}this.multilineCheckboxCheckedState=!1;var s=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(s,t.wrapper.children[0],t.formFieldAnnotationType,t);break;case"Checkbox":this.updateCheckboxFormDesignerProperties(t,!1);var l=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(l,t.wrapper.children[0],t.formFieldAnnotationType,t);break;case"RadioButton":this.updateRadioButtonDesignerProperties(t,!1);var d=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(d,t.wrapper.children[0],t.formFieldAnnotationType,t);break;case"SignatureField":case"InitialField":this.updateSignatureTextboxProperties(t);var A=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(A,t.wrapper.children[0],t.formFieldAnnotationType,t);break;case"DropdownList":this.updateDropdownFormDesignerProperties(t);var h=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(h,t.wrapper.children[0],t.formFieldAnnotationType,t);break;case"ListBox":this.updateListBoxFormDesignerProperties(t);var p=i.cornersPointsBeforeRotation(t.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(p,t.wrapper.children[0],t.formFieldAnnotationType,t)}this.updateFormFieldCollections(t);var c=B(t);this.pdfViewer.annotation&&this.pdfViewer.annotation.addAction(this.pdfViewerBase.currentPageNumber,null,t,"FormDesigner Properties Change","",n,c)}this.propertiesDialog.hide()},a.prototype.updateFormFieldPropertiesInCollections=function(e){for(var t=this.pdfViewer.formFieldCollections,i=0;i<t.length;i++){var n=t[parseInt(i.toString(),10)];if(n.id===e.id&&n.name===e.name){this.formFieldName&&this.formFieldName.value&&(n.name=this.formFieldName.value),this.formFieldValue&&e.value!==this.formFieldValue.value&&(n.value=this.formFieldValue.value),this.formFieldAlign&&e.alignment!==this.formFieldAlign&&(n.alignment=this.formFieldAlign),this.formFieldPrinting&&e.isPrint!==this.formFieldPrinting.checked&&(n.isPrint=this.formFieldPrinting.checked),this.formFieldTooltip&&e.tooltip!==this.formFieldTooltip.value&&(n.tooltip=this.formFieldTooltip.value),this.formFieldVisibility&&e.visibility!==this.formFieldVisibility.value&&(n.visibility=this.formFieldVisibility),this.formFieldFontFamily&&this.formFieldFontFamily.value&&(n.fontFamily=this.formFieldFontFamily.value),this.formFieldFontSize&&this.formFieldFontSize.value&&(n.fontSize=parseInt(this.formFieldFontSize.value.toString(),10)),this.fontColorValue&&e.color!==this.fontColorValue&&(n.color=this.fontColorValue),this.backgroundColorValue&&e.backgroundColor!==this.backgroundColorValue&&(n.backgroundColor=this.backgroundColorValue),this.borderColorValue&&e.borderColor!==this.borderColorValue&&(n.borderColor=this.borderColorValue),this.formFieldBorderWidth&&e.thickness!==parseInt(this.formFieldBorderWidth,10)&&(n.thickness=parseInt(this.formFieldBorderWidth,10)),this.formFieldReadOnly&&e.isReadonly!==this.formFieldReadOnly.checked&&(n.isReadOnly=this.formFieldReadOnly.checked),this.formFieldRequired&&e.isRequired!==this.formFieldRequired.checked&&(n.isRequired=this.formFieldRequired.checked),0!==i&&i<this.pdfViewer.formFieldCollection.length?n.fontStyle=this.pdfViewer.formFieldCollection[i-1].fontStyle:n.fontStyle=this.pdfViewer.formFieldCollection[i+1].fontStyle;var o=this.pdfViewer.formFieldCollections.findIndex(function(t){return t.id===e.id});this.pdfViewer.formFieldCollections[parseInt(o.toString(),10)]=n}}},a.prototype.checkTextboxName=function(e){for(var t=[],i=0;i<this.pdfViewer.formFieldCollection.length;i++){var n=this.pdfViewer.formFieldCollection[parseInt(i.toString(),10)];n.name===e.name&&"Textbox"===n.formFieldAnnotationType&&t.push(n)}return t},a.prototype.renderMultilineText=function(e,t){t?this.reRenderMultilineTextbox(e,"e-pv-formfield-input"):this.addMultilineTextbox(e,"e-pv-formfield-input",!0)},a.prototype.renderTextbox=function(e,t){t?this.reRenderMultilineTextbox(e,"e-pv-formfield-textarea"):this.addMultilineTextbox(e,"e-pv-formfield-textarea",!1)},a.prototype.addMultilineTextbox=function(e,t,i){var n=e.wrapper.children[0];if(e.isMultiline=i,document.getElementById(n.id+"_html_element")){var o=document.getElementById(n.id+"_html_element").children[0],r=o.children[0].id;if(document.getElementById(o.children[0].id).remove(),-1!==t.indexOf("e-pv-formfield-textarea")){var a=this.createTextboxElement(r);n.template=o.appendChild(a)}else{var s=this.createTextAreaElement(r);s.value=e.value,n.template=o.appendChild(s)}var l=this.getFormFiledIndex(e.id.split("_")[0]);this.pdfViewerBase.formFieldCollection[parseInt(l.toString(),10)].FormField.isMultiline=e.isMultiline,this.pdfViewer.nameTable[e.id.split("_")[0]].isMultiline=e.isMultiline}},a.prototype.reRenderMultilineTextbox=function(e,t){var i=document.getElementById(e.id+"_content_html_element");if(i){var n=i.firstElementChild.firstElementChild,o=n.id;if(n.remove(),-1!==t.indexOf("e-pv-formfield-textarea")){r=this.createTextboxElement(o);i.firstElementChild.appendChild(r)}else{var r=this.createTextAreaElement(o);i.firstElementChild.appendChild(r)}}},a.prototype.createTextAreaElement=function(e){var i=t.createElement("textarea");return i.id=e,i.className="e-pv-formfield-textarea",i.style.width="100%",i.style.height="100%",i.style.borderStyle="solid",i.addEventListener("click",this.inputElementClick.bind(this)),i.addEventListener("change",this.getTextboxValue.bind(this)),i},a.prototype.createTextboxElement=function(e){var i=t.createElement("input");return i.id=e,i.type="text",i.className="e-pv-formfield-input",i.autocomplete="off",i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.borderStyle="solid",i.addEventListener("click",this.inputElementClick.bind(this)),i.addEventListener("change",this.getTextboxValue.bind(this)),i.addEventListener("focus",this.focusFormFields.bind(this)),i.addEventListener("blur",this.blurFormFields.bind(this)),i},a.prototype.updateFormFieldCollections=function(e){var i={id:e.id.split("_")[0],name:e.name,value:e.value,type:e.type?e.type:e.formFieldAnnotationType,isReadOnly:e.isReadonly,fontFamily:e.fontFamily,isMultiline:e.isMultiline,fontSize:e.fontSize,fontStyle:e.fontStyle,color:e.color?e.color:this.getRgbToHex(e.fontColor),backgroundColor:"string"==typeof e.backgroundColor?e.backgroundColor:this.getRgbToHex(e.backgroundColor),alignment:e.alignment?e.alignment:e.textAlign,visibility:e.visibility,maxLength:e.maxLength,isRequired:e.isRequired,isPrint:e.isPrint,isSelected:e.isSelected,isChecked:e.isChecked,tooltip:e.tooltip,bounds:e.bounds?e.bounds:e.lineBound,thickness:e.thickness,borderColor:"string"==typeof e.borderColor?e.borderColor:this.getRgbToHex(e.borderColor),pageIndex:t.isNullOrUndefined(e.pageNumber)?e.pageIndex:e.pageNumber-1,insertSpaces:e.insertSpaces,isTransparent:!!e.isTransparent&&e.isTransparent,options:e.option?e.option:e.options,pageNumber:e.pageNumber,rotateAngle:t.isNullOrUndefined(e.rotateAngle)?e.rotation:e.rotateAngle,selectedIndex:e.selectedIndex,signatureIndicatorSettings:e.signatureIndicatorSettings,signatureType:e.signatureType,zIndex:e.zIndex,customData:e.customData};this.pdfViewer.formFieldCollections[this.pdfViewer.formFieldCollections.findIndex(function(e){return e.id===i.id})]=i},a.prototype.getRgbToHex=function(e){return"#"+this.hex(e.r)+this.hex(e.g)+this.hex(e.b)},a.prototype.updateDropdownFormDesignerProperties=function(e,i){var n=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;if(this.pdfViewer.designerMode||i){var o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o),a=this.getFormFiledIndex(e.id.split("_")[0]);if(e.options=this.createDropdownDataSource(e),this.updateDropDownListDataSource(e,n),e.selectedIndex=[],a>-1&&(r[parseInt(a.toString(),10)].FormField.option=e.options,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.option=e.options,!t.isNullOrUndefined(e.options)&&e.options.length>0))if(r[parseInt(a.toString(),10)]&&r[parseInt(a.toString(),10)].FormField.value){var s=e.options.findIndex(function(e){return e.itemValue===r[parseInt(a.toString(),10)].FormField.value});e.selectedIndex.push(s)}else e.selectedIndex.push(0);this.pdfViewer.nameTable[e.id.split("_")[0]].options=e.options,(this.formFieldName&&this.formFieldName.value||i)&&this.updateNamePropertyChange(e,n,i,a,r),(this.formFieldValue&&r[parseInt(a.toString(),10)]&&r[parseInt(a.toString(),10)].FormField.value||i)&&this.updateValuePropertyChange(e,n,i,a,r),(this.formFieldPrinting||i)&&this.updateIsPrintPropertyChange(e,i,a,r),(this.formFieldTooltip||i)&&this.updateTooltipPropertyChange(e,n,i,a,r),(this.formFieldVisibility||i)&&this.updateVisibilityPropertyChange(e,n,i,a,r),(this.formFieldFontFamily&&this.formFieldFontFamily.value||i)&&this.updateFontFamilyPropertyChange(e,n,i,a,r),(this.formFieldFontSize&&this.formFieldFontSize.value||i)&&this.updateFontSizePropertyChange(e,n,i,a,r),this.updateFontStylePropertyChange(e,n,i,a,r),(this.formFieldAlign||i)&&this.updateAlignmentPropertyChange(e,n,i,a,r),(this.fontColorValue||i)&&this.updateColorPropertyChange(e,n,i,a,r),(this.backgroundColorValue||i)&&this.updateBackgroundColorPropertyChange(e,n,i,a,r),(this.borderColorValue||i)&&this.updateBorderColorPropertyChange(e,n,i,a,r),t.isNullOrUndefined(this.formFieldBorderWidth)&&!i||this.updateBorderThicknessPropertyChange(e,n,i,a,r),(this.formFieldReadOnly||i)&&this.updateIsReadOnlyPropertyChange(e,n,i,a,r),(this.formFieldRequired||i)&&this.updateIsRequiredPropertyChange(e,n,i,a,r)}i&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.updateListBoxFormDesignerProperties=function(e,i){var n=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild;if(this.pdfViewer.designerMode||i){var o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o),a=this.getFormFiledIndex(e.id.split("_")[0]);e.options=this.createDropdownDataSource(e),this.updateDropDownListDataSource(e,n),e.selectedIndex=[],a>-1&&(r[parseInt(a.toString(),10)].FormField.option=e.options,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.option=e.options,!t.isNullOrUndefined(e.options)&&e.options.length>0&&(r[parseInt(a.toString(),10)]&&r[parseInt(a.toString(),10)].FormField.value?e.selectedIndex.push(e.options.findIndex(function(e){return e.itemValue===r[parseInt(a.toString(),10)].FormField.value})):e.selectedIndex.push(0))),this.pdfViewer.nameTable[e.id.split("_")[0]].options=e.options,(this.formFieldName&&this.formFieldName.value||i)&&this.updateNamePropertyChange(e,n,i,a,r),(this.formFieldPrinting||i)&&this.updateIsPrintPropertyChange(e,i,a,r),(this.formFieldTooltip||i)&&this.updateTooltipPropertyChange(e,n,i,a,r),(this.formFieldVisibility||i)&&this.updateVisibilityPropertyChange(e,n,i,a,r),(this.formFieldFontFamily&&this.formFieldFontFamily.value||i)&&this.updateFontFamilyPropertyChange(e,n,i,a,r),(this.formFieldFontSize&&this.formFieldFontSize.value||i)&&this.updateFontSizePropertyChange(e,n,i,a,r),this.updateFontStylePropertyChange(e,n,i,a,r),(this.formFieldAlign||i)&&this.updateAlignmentPropertyChange(e,n,i,a,r),(this.fontColorValue||i)&&this.updateColorPropertyChange(e,n,i,a,r),(this.backgroundColorValue||i)&&this.updateBackgroundColorPropertyChange(e,n,i,a,r),(this.borderColorValue||i)&&this.updateBorderColorPropertyChange(e,n,i,a,r),t.isNullOrUndefined(this.formFieldBorderWidth)&&!i||this.updateBorderThicknessPropertyChange(e,n,i,a,r),(this.formFieldReadOnly||i)&&this.updateIsReadOnlyPropertyChange(e,n,i,a,r),(this.formFieldRequired||i)&&this.updateIsRequiredPropertyChange(e,n,i,a,r)}i&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.updateDropDownListDataSource=function(e,t){for(;t.firstChild;)t.firstChild.remove();for(var i=0;i<e.options.length;i++){var n=document.createElement("option");n.className="e-pv-formfield-dropdown",n.value=e.options[parseInt(i.toString(),10)].itemValue,n.text=e.options[parseInt(i.toString(),10)].itemName,t.appendChild(n)}},a.prototype.createDropdownDataSource=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(this.formFieldListItemDataSource=[],t&&t.children&&t.children.length>0)for(var i=0;i<t.children.length;i++){var n=t.children[parseInt(i.toString(),10)];this.formFieldListItemDataSource.push({itemName:n.innerHTML,itemValue:n.innerHTML})}else e&&e.options.length>0&&(this.formFieldListItemDataSource=e.options);return this.formFieldListItemDataSource},a.prototype.updateSignatureTextboxProperties=function(e,i){var n=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild,o=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),r=JSON.parse(o),a=this.getFormFiledIndex(e.id.split("_")[0]);(this.pdfViewer.designerMode||i)&&((this.formFieldName&&this.formFieldName.value||i)&&this.updateNamePropertyChange(e,n,i,a,r),(this.formFieldPrinting||i)&&this.updateIsPrintPropertyChange(e,i,a,r),(this.formFieldTooltip||i)&&this.updateTooltipPropertyChange(e,n,i,a,r),t.isNullOrUndefined(this.formFieldBorderWidth)&&!i||this.updateBorderThicknessPropertyChange(e,n,i,a,r),(this.formFieldVisibility||i)&&this.updateVisibilityPropertyChange(e,n,i,a,r),(this.formFieldReadOnly||i)&&this.updateIsReadOnlyPropertyChange(e,n,i,a,r),(this.formFieldRequired||i)&&this.updateIsRequiredPropertyChange(e,n,i,a,r)),i&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.updateCheckboxFormDesignerProperties=function(e,i,n){var o=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild.lastElementChild,r=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),a=JSON.parse(r),s=this.getFormFiledIndex(e.id.split("_")[0]);(this.formFieldName&&this.formFieldName.value||n)&&this.updateNamePropertyChange(e,o,n,s,a),(this.formFieldValue||n)&&this.updateValuePropertyChange(e,o,n,s,a,i),(this.backgroundColorValue||n)&&this.updateBackgroundColorPropertyChange(e,o,n,s,a),(this.borderColorValue||n)&&this.updateBorderColorPropertyChange(e,o,n,s,a),t.isNullOrUndefined(this.formFieldBorderWidth)&&!n||this.updateBorderThicknessPropertyChange(e,o,n,s,a),this.formFieldChecked&&(this.checkboxCheckedState=this.formFieldChecked.checked),(this.formFieldPrinting||n)&&this.updateIsPrintPropertyChange(e,n,s,a),(this.formFieldTooltip||n)&&this.updateTooltipPropertyChange(e,o,n,s,a),(this.formFieldVisibility||n)&&this.updateVisibilityPropertyChange(e,o,n,s,a),t.isNullOrUndefined(this.checkboxCheckedState)&&!n||this.updateIsCheckedPropertyChange(e,o,n,s,a),(this.pdfViewer.designerMode&&this.borderColorValue||n)&&this.updateBorderColorPropertyChange(e,o,n,s,a),(this.pdfViewer.designerMode&&this.formFieldBorderWidth||n)&&this.updateBorderThicknessPropertyChange(e,o,n,s,a),(this.formFieldReadOnly||n)&&this.updateIsReadOnlyPropertyChange(e,o,n,s,a),(this.formFieldRequired||n)&&this.updateIsRequiredPropertyChange(e,o,n,s,a),n&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.updateRadioButtonDesignerProperties=function(e,n,o){var r=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild.firstElementChild,a=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),s=JSON.parse(a),l=this.getFormFiledIndex(e.id.split("_")[0]);if((this.formFieldName&&this.formFieldName.value||o)&&this.updateNamePropertyChange(e,r,o,l,s),(this.formFieldValue||o)&&this.updateValuePropertyChange(e,r,o,l,s,n),this.formFieldChecked&&(this.checkboxCheckedState=this.formFieldChecked.checked),(this.formFieldPrinting||o)&&this.updateIsPrintPropertyChange(e,o,l,s),(this.formFieldTooltip||o)&&this.updateTooltipPropertyChange(e,r,o,l,s),(this.formFieldVisibility||o)&&this.updateVisibilityPropertyChange(e,r,o,l,s),(this.pdfViewer.designerMode&&!t.isNullOrUndefined(this.formFieldBorderWidth)||o)&&this.updateBorderThicknessPropertyChange(e,r,o,l,s),(this.backgroundColorValue||o)&&this.updateBackgroundColorPropertyChange(e,r,o,l,s),(this.borderColorValue||o)&&this.updateBorderColorPropertyChange(e,r,o,l,s),t.isNullOrUndefined(this.checkboxCheckedState)&&!o||this.updateIsSelectedPropertyChange(e,r,o,l,s),(this.formFieldReadOnly||o)&&this.updateIsReadOnlyPropertyChange(e,r,o,l,s),(this.formFieldRequired||o)&&this.updateIsRequiredPropertyChange(e,r,o,l,s),o){var d=this.pdfViewer.nameTable[e.id.split("_")[0]],A=i.cornersPointsBeforeRotation(d.wrapper.children[0]).topLeft;this.updateFormDesignerFieldInSessionStorage(A,d.wrapper.children[0],d.formFieldAnnotationType,d)}},a.prototype.updateTextboxFormDesignerProperties=function(e,i){var n,o,r=document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild,a=!1,s=this.pdfViewerBase.getItemFromSessionStorage("_formDesigner"),l=JSON.parse(s),d=this.getFormFiledIndex(e.id.split("_")[0]);if(this.pdfViewer.designerMode||i||this.isAddFormFieldProgrammatically){if((this.formFieldName&&this.formFieldName.value||i)&&this.updateNamePropertyChange(e,r,i,d,l),(this.isAddFormFieldProgrammatically?e.value:this.formFieldValue||i)&&this.updateValuePropertyChange(e,r,i,d,l),(this.formFieldPrinting||i)&&this.updateIsPrintPropertyChange(e,i,d,l),(this.formFieldTooltip||i)&&this.updateTooltipPropertyChange(e,r,i,d,l),(this.formFieldVisibility||i)&&this.updateVisibilityPropertyChange(e,r,i,d,l),((this.isAddFormFieldProgrammatically?e.fontFamily:this.formFieldFontFamily&&this.formFieldFontFamily.value)||i)&&this.updateFontFamilyPropertyChange(e,r,i,d,l),((this.isAddFormFieldProgrammatically?e.fontSize:this.formFieldFontSize&&this.formFieldFontSize.value)||i)&&this.updateFontSizePropertyChange(e,r,i,d,l),this.updateFontStylePropertyChange(e,r,i,d,l),(this.formFieldAlign||i||this.multilineCheckboxCheckedState)&&this.updateAlignmentPropertyChange(e,r,i,d,l),this.maxLengthItem||i){if(this.maxLengthItem&&e.maxLength!==this.maxLengthItem.value&&(a=!0,n=e.maxLength,o=this.maxLengthItem.value),!t.isNullOrUndefined(this.maxLengthItem)){var A=0===this.maxLengthItem.value?524288:this.maxLengthItem.value;i&&0!==e.maxLength?r.maxLength=e.maxLength:(r.maxLength=A,e.maxLength=this.maxLengthItem.value)}d>-1&&(l[parseInt(d.toString(),10)].FormField.maxLength=e.maxLength,this.pdfViewerBase.formFieldCollection[parseInt(d.toString(),10)].FormField.maxLength=e.maxLength),this.pdfViewer.nameTable[e.id.split("_")[0]].maxLength=e.maxLength,a&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,!1,!1,!1,!1,n,o)}(this.fontColorValue||i||this.multilineCheckboxCheckedState)&&this.updateColorPropertyChange(e,r,i,d,l),(this.backgroundColorValue||i||this.multilineCheckboxCheckedState)&&this.updateBackgroundColorPropertyChange(e,r,i,d,l),(this.borderColorValue||i||this.multilineCheckboxCheckedState)&&this.updateBorderColorPropertyChange(e,r,i,d,l),t.isNullOrUndefined(this.formFieldBorderWidth)&&!i||this.updateBorderThicknessPropertyChange(e,r,i,d,l),(this.formFieldReadOnly||i)&&this.updateIsReadOnlyPropertyChange(e,r,i,d,l),(this.isAddFormFieldProgrammatically||this.formFieldRequired||i)&&this.updateIsRequiredPropertyChange(e,r,i,d,l)}this.pdfViewer.designerMode||this.formFieldVisibility&&this.formFieldVisibility.value&&(e.visibility=this.formFieldVisibility.value,document.getElementById(e.id+"_content_html_element").firstElementChild.firstElementChild.style.visibility=e.visibility),this.updateFormFieldCollections(e),i&&this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")},a.prototype.updateIsCheckedPropertyChange=function(e,t,i,n,o){if(this.pdfViewer.designerMode||i){var r=!1,a=void 0,s=void 0;e.isChecked!==this.checkboxCheckedState&&(r=!0,a=e.isChecked,s=this.checkboxCheckedState),i||(e.isChecked=this.checkboxCheckedState),n>-1&&(o[parseInt(n.toString(),10)].FormField.isChecked=e.isChecked,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.isChecked=e.isChecked),this.pdfViewer.nameTable[e.id.split("_")[0]].isChecked=e.isChecked,r&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,r,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)}if(!this.pdfViewer.designerMode||i){var l=document.getElementById(e.id+"_input").firstElementChild;e.isChecked?(l.classList.contains("e-pv-cb-unchecked")&&l.classList.remove("e-pv-cb-unchecked"),l.classList.add("e-pv-cb-checked")):(l.classList.contains("e-pv-cb-checked")&&l.classList.remove("e-pv-cb-checked"),l.classList.add("e-pv-cb-unchecked"))}},a.prototype.updateIsSelectedPropertyChange=function(e,t,i,n,o){if(this.pdfViewer.designerMode||i){var r=!1,a=void 0,s=void 0;if(e.isSelected!==this.checkboxCheckedState&&(r=!0,a=e.isSelected,s=this.checkboxCheckedState),i||(e.isSelected=this.checkboxCheckedState),n>-1){o[parseInt(n.toString(),10)].FormField.isSelected=e.isSelected;for(l=0;l<o[parseInt(n.toString(),10)].FormField.radiobuttonItem.length;l++)o[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].id.split("_")[0]===e.id.split("_")[0]&&(o[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isSelected=e.isSelected,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isSelected=e.isSelected)}this.pdfViewer.nameTable[e.id.split("_")[0]].isSelected=e.isSelected,r&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,r,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)}if(!this.pdfViewer.designerMode||i){if(t.checked=e.isSelected,n>-1){o[parseInt(n.toString(),10)].FormField.isSelected=e.isSelected,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.isSelected=e.isSelected;for(var l=0;l<o[parseInt(n.toString(),10)].FormField.radiobuttonItem.length;l++)o[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].id.split("_")[0]===e.id.split("_")[0]&&(o[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isSelected=e.isSelected,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isSelected=e.isSelected)}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.pdfViewer.nameTable[e.id.split("_")[0]].isSelected=e.isSelected}},a.prototype.updateValuePropertyChange=function(e,t,i,n,o,r){var a,s,l=!1;"DropdownList"!==e.formFieldAnnotationType&&this.formFieldValue&&e.value!==this.formFieldValue.value?(l=!0,a=e.value,s=this.formFieldValue.value):"DropdownList"===e.formFieldAnnotationType&&this.formFieldValue&&e.value!==o[parseInt(n.toString(),10)].FormField.value&&(l=!0,a=e.value,s=o[parseInt(n.toString(),10)].FormField.value),i?t.value=e.value:r?l=!1:this.isAddFormFieldProgrammatically?("DropdownList"===e.formFieldAnnotationType&&(e.value=o[parseInt(n.toString(),10)].FormField.value),"DropdownList"===e.formFieldAnnotationType?t.value=o[parseInt(n.toString(),10)].FormField.value:t.value=e.value):("DropdownList"===e.formFieldAnnotationType?e.value=o[parseInt(n.toString(),10)].FormField.value:e.value=this.formFieldValue?this.formFieldValue.value:e.value,"DropdownList"===e.formFieldAnnotationType?t.value=o[parseInt(n.toString(),10)].FormField.value:t.value=this.formFieldValue?this.formFieldValue.value:e.value),n>-1&&(o[parseInt(n.toString(),10)].FormField.value=e.value,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.value=e.value),this.pdfViewer.nameTable[e.id.split("_")[0]].value=e.value,l&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,l,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateFontStylePropertyChange=function(e,t,i,n,o){var r=!1,a="",s="",l=this.updateFontStyle(t,e,i,n,o);r=l[0],a=l[1],s=l[2],n>-1&&(o[parseInt(n.toString(),10)].FormField.fontStyle=e.fontStyle,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.fontStyle=e.fontStyle),this.pdfViewer.nameTable[e.id.split("_")[0]].fontStyle=e.fontStyle,r&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,r,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateBorderThicknessPropertyChange=function(e,t,i,n,o){var r,a,s=!1,l=parseInt(this.formFieldBorderWidth,10);e.thickness!==l&&(s=!0,r=e.thickness,a=l||e.thickness),i?t.style.borderWidth=e.thickness.toString():(t.style.borderWidth=this.formFieldBorderWidth?this.formFieldBorderWidth+"px":e.thickness+"px",e.thickness=l),n>-1&&(o[parseInt(n.toString(),10)].FormField.thickness=e.thickness,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.thickness=e.thickness),this.pdfViewer.nameTable[e.id.split("_")[0]].thickness=e.thickness,s&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,s,!1,!1,!1,!1,!1,!1,!1,!1,r,a)},a.prototype.updateBorderColorPropertyChange=function(e,i,n,o,r){var a,s,l=!1;e.borderColor!==this.borderColorValue&&(l=!0,a=e.borderColor,s=this.borderColorValue?this.borderColorValue:e.borderColor),this.pdfViewer.enableHtmlSanitizer&&this.borderColorValue&&(this.borderColorValue=t.SanitizeHtmlHelper.sanitize(this.borderColorValue)),n?i.style.borderColor=e.borderColor:(i.style.borderColor=this.borderColorValue?this.borderColorValue:e.borderColor,e.borderColor=this.borderColorValue?this.borderColorValue:e.borderColor),"RadioButton"===e.formFieldAnnotationType&&(i.parentElement.style.boxShadow=this.borderColorValue+" 0px 0px 0px "+e.thickness+"px"),o>-1&&(r[parseInt(o.toString(),10)].FormField.borderColor=this.getRgbCode(e.borderColor),this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.borderColor=this.getRgbCode(e.borderColor)),this.pdfViewer.nameTable[e.id.split("_")[0]].borderColor=e.borderColor,l&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,l,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateBackgroundColorPropertyChange=function(e,i,n,o,r){var a,s,l=!1;e.backgroundColor!==this.backgroundColorValue&&(l=!0,a=e.backgroundColor,s=this.backgroundColorValue?this.backgroundColorValue:e.backgroundColor),this.pdfViewer.enableHtmlSanitizer&&this.backgroundColorValue&&(this.backgroundColorValue=t.SanitizeHtmlHelper.sanitize(this.backgroundColorValue)),n?"RadioButton"===e.formFieldAnnotationType?i.parentElement.style.background=e.backgroundColor:i.style.background=e.backgroundColor:("RadioButton"===e.formFieldAnnotationType?i.parentElement.style.background=this.backgroundColorValue?this.backgroundColorValue:e.backgroundColor:i.style.background=this.backgroundColorValue?this.backgroundColorValue:e.backgroundColor,e.backgroundColor=this.backgroundColorValue?this.backgroundColorValue:e.backgroundColor),o>-1&&(r[parseInt(o.toString(),10)].FormField.backgroundColor=this.getRgbCode(e.backgroundColor),this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.backgroundColor=this.getRgbCode(e.backgroundColor)),this.pdfViewer.nameTable[e.id.split("_")[0]].backgroundColor=e.backgroundColor,l&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,l,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateColorPropertyChange=function(e,i,n,o,r){var a,s,l=!1;e.color!==this.fontColorValue&&(l=!0,a=e.color,s=this.fontColorValue?this.fontColorValue:e.color),this.pdfViewer.enableHtmlSanitizer&&this.fontColorValue&&(this.fontColorValue=t.SanitizeHtmlHelper.sanitize(this.fontColorValue)),n?i.style.color=e.color:(i.style.color=this.fontColorValue?this.fontColorValue:e.color,e.color=this.fontColorValue?this.fontColorValue:e.color),o>-1&&(r[parseInt(o.toString(),10)].FormField.color=this.getRgbCode(e.color),this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.color=this.getRgbCode(e.color)),this.pdfViewer.nameTable[e.id.split("_")[0]].color=e.color,l&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,l,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateAlignmentPropertyChange=function(e,t,i,n,o){var r,a,s=!1;if(e.alignment!==this.formFieldAlign&&(s=!0,r=e.alignment,a=this.formFieldAlign?this.formFieldAlign:e.alignment),i){if(t.style.textAlign=e.alignment,("ListBox"===e.formFieldAnnotationType||"DropdownList"===e.formFieldAnnotationType)&&t.children.length>0){t.style.textAlignLast=e.alignment;for(l=0;l<t.children.length;l++)(d=t.children[parseInt(l.toString(),10)]).style.textAlignLast=e.alignment,d.style.textAlign=e.alignment}}else if(t.style.textAlign=this.formFieldAlign?this.formFieldAlign:e.alignment,e.alignment=this.formFieldAlign?this.formFieldAlign:e.alignment,("ListBox"===e.formFieldAnnotationType||"DropdownList"===e.formFieldAnnotationType)&&t.children.length>0){t.style.textAlignLast=this.formFieldAlign?this.formFieldAlign:e.alignment;for(var l=0;l<t.children.length;l++){var d=t.children[parseInt(l.toString(),10)];d.style.textAlignLast=this.formFieldAlign?this.formFieldAlign:e.alignment,d.style.textAlign=this.formFieldAlign?this.formFieldAlign:e.alignment}}n>-1&&(o[parseInt(n.toString(),10)].FormField.alignment=e.alignment,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.alignment=e.alignment),this.pdfViewer.nameTable[e.id.split("_")[0]].alignment=e.alignment,s&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,s,!1,!1,!1,!1,!1,!1,!1,r,a)},a.prototype.updateFontSizePropertyChange=function(e,t,i,n,o){var r,a,s=!1,l=this.pdfViewerBase.getZoomFactor(),d=this.formFieldFontSize?parseInt(this.formFieldFontSize.value.toString(),10):e&&e.fontSize?parseInt(e.fontSize.toString(),10):10;parseInt(e.fontSize,10)!==d&&(s=!0,r=e.fontSize,a=d),i?t.style.fontSize=e.fontSize*l+"px".toString():(e.fontSize=d,t.style.fontSize=this.formFieldFontSize?parseInt(this.formFieldFontSize.value.toString(),10)+"px":parseInt(e.fontSize.toString(),10)+"px"),n>-1&&(o[parseInt(n.toString(),10)].FormField.fontSize=e.fontSize,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.fontSize=e.fontSize),this.pdfViewer.nameTable[e.id.split("_")[0]].fontSize=e.fontSize,s&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,s,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,r,a)},a.prototype.updateFontFamilyPropertyChange=function(e,i,n,o,r){var a,s,l=!1,d=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(this.formFieldFontFamily?this.formFieldFontFamily.value.toString():""):this.formFieldFontFamily?this.formFieldFontFamily.value.toString():"";e.fontFamily!==d&&(l=!0,a=e.fontFamily,s=d),n?i.style.fontFamily=e.fontFamily:""===d?(d=e.fontFamily,i.style.fontFamily=d):(e.fontFamily=d,i.style.fontFamily=d),o>-1&&(r[parseInt(o.toString(),10)].FormField.fontFamily=e.fontFamily,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.fontFamily=e.fontFamily),this.pdfViewer.nameTable[e.id.split("_")[0]].fontFamily=e.fontFamily,l&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,l,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,s)},a.prototype.updateVisibilityPropertyChange=function(e,t,i,n,o){var r,a,s=!1;if(this.formFieldVisibility&&e.visibility!==this.formFieldVisibility.value&&(s=!0,r=e.visibility,a=this.formFieldVisibility.value),i||(e.visibility=this.formFieldVisibility.value),t.style.visibility=e.visibility,"RadioButton"===e.formFieldAnnotationType&&(t.parentElement.style.visibility=e.visibility),"SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){var l=document.getElementById(e.id+"_content_html_element").firstElementChild.children[1];l.style.visibility=e.visibility,l.parentElement.style.visibility=e.visibility;var d=this.pdfViewer.nameTable[e.id.split("_")[0]+"_content"];"hidden"===e.visibility?d&&this.hideSignatureValue(e,d,n,o):d&&this.showSignatureValue(e,r,d,n,o)}n>-1&&(o[parseInt(n.toString(),10)].FormField.visibility=e.visibility,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.visibility=e.visibility),this.pdfViewer.nameTable[e.id.split("_")[0]].visibility=e.visibility,s&&(this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,!1,!1,!1,!1,!1,r,a))},a.prototype.hideSignatureValue=function(e,t,i,n){e.wrapper.children.splice(e.wrapper.children.indexOf(t.wrapper.children[0]),1),this.pdfViewer.remove(t),this.pdfViewer.renderDrawing()},a.prototype.showSignatureValue=function(e,t,n,o,r){if("SignatureText"===n.shapeAnnotationType)e.value=n.data,e.signatureType="Text",r[parseInt(o.toString(),10)].FormField.signatureType="Text",r[parseInt(o.toString(),10)].FormField.value=n.data,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.value=n.data,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.signatureType="Text";else if("SignatureImage"===n.shapeAnnotationType)e.value=n.data,e.signatureType="Image",r[parseInt(o.toString(),10)].FormField.signatureType="Image",r[parseInt(o.toString(),10)].FormField.value=n.data,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.value=n.data,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.signatureType="Image";else{r[parseInt(o.toString(),10)].FormField.signatureType="Path",e.signatureType="Path",this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.signatureType="Path";var a=i.processPathData(n.data),s=i.splitArrayCollection(a);e.value=JSON.stringify(s),r[parseInt(o.toString(),10)].FormField.value=JSON.stringify(s),this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.value=JSON.stringify(s)}if(e.signatureBound=n.signatureBound,"hidden"===t){this.pdfViewer.add(n),e.wrapper.children.push(n.wrapper);var l=this.pdfViewerBase.getAnnotationCanvas("_annotationCanvas_",e.pageIndex);this.pdfViewer.renderDrawing(l,e.pageIndex)}this.pdfViewer.renderDrawing()},a.prototype.updateTooltipPropertyChange=function(e,i,o,r,a){var s,l,d=!1;this.formFieldTooltip&&e.tooltip!==this.formFieldTooltip.value&&(d=!0,s=e.tooltip,l=this.formFieldTooltip.value),this.pdfViewer.enableHtmlSanitizer&&!t.isNullOrUndefined(this.formFieldTooltip)&&this.formFieldTooltip.value&&(this.formFieldTooltip.value=t.SanitizeHtmlHelper.sanitize(this.formFieldTooltip.value)),o?(this.formFieldTooltip=new n.TextBox,this.formFieldTooltip.value=e.tooltip):e.tooltip=this.formFieldTooltip?this.formFieldTooltip.value:e.tooltip,r>-1&&(a[parseInt(r.toString(),10)].FormField.tooltip=e.tooltip,this.pdfViewerBase.formFieldCollection[parseInt(r.toString(),10)].FormField.tooltip=e.tooltip),this.pdfViewer.nameTable[e.id.split("_")[0]].tooltip=this.formFieldTooltip.value,t.isNullOrUndefined(this.formFieldTooltip.value)||""===this.formFieldTooltip.value||this.setToolTip(this.formFieldTooltip.value,"RadioButton"===e.formFieldAnnotationType?i.parentElement:i),d&&(this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,d,!1,s,l))},a.prototype.updateNamePropertyChange=function(e,i,n,o,r){var a=document.getElementById(e.id+"_designer_name");this.pdfViewerBase.getZoomFactor();if(this.pdfViewer.enableHtmlSanitizer&&!t.isNullOrUndefined(this.formFieldName)&&this.formFieldName.value&&(this.formFieldName.value=t.SanitizeHtmlHelper.sanitize(this.formFieldName.value)),a.style.fontSize=this.defaultFontSize+"px",n?a.innerHTML=e.name:(e.name=this.formFieldName?this.formFieldName.value:e.name,a.innerHTML=e.name),o>-1){var s=void 0,l=void 0,d=e.options.length;s=d>1?e.options.slice(0,d-1):"",l=e.options[d-1],("DropdownList"===r[parseInt(o.toString(),10)].FormField.formFieldAnnotationType||"ListBox"===r[parseInt(o.toString(),10)].FormField.formFieldAnnotationType)&&r[parseInt(o.toString(),10)].FormField.name===e.name&&r[parseInt(o.toString(),10)].FormField.option.length>0&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l,!0,r[parseInt(o.toString(),10)].FormField.name),this.formFieldName&&e.name!==r[parseInt(o.toString(),10)].FormField.name&&(s=r[parseInt(o.toString(),10)].FormField.name,l=e.name),r[parseInt(o.toString(),10)].FormField.name!==e.name&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,l,!0,r[parseInt(o.toString(),10)].FormField.name),r[parseInt(o.toString(),10)].FormField.name=e.name,this.pdfViewerBase.formFieldCollection[parseInt(o.toString(),10)].FormField.name=e.name}if(i.name=e.name,this.pdfViewer.nameTable[e.id.split("_")[0]].name=e.name,"DropdownList"===e.formFieldAnnotationType||"ListBox"===e.formFieldAnnotationType)for(var A=0;A<this.pdfViewer.formFieldCollection.length;A++){var h=this.pdfViewer.formFieldCollection[parseInt(A.toString(),10)];if(("DropdownList"===h.formFieldAnnotationType||"ListBox"===h.formFieldAnnotationType)&&h.name===e.name&&h.id!==e.id){e.options=h.options,this.updateDropDownListDataSource(e,i);break}}},a.prototype.setReadOnlyProperty=function(e,t){this.pdfViewer.nameTable[e.id.split("_")[0]].isReadonly=e.isReadonly,this.setReadOnlyToElement(e,t,e.isReadonly),this.setReadOnlyToFormField(e,e.isReadonly)},a.prototype.updateIsReadOnlyPropertyChange=function(e,t,i,n,o){var r,a,s=!1;if(this.formFieldReadOnly&&e.isReadonly!==this.formFieldReadOnly.checked&&(s=!0,r=e.isReadonly,a=this.formFieldReadOnly.checked),i?(this.formFieldReadOnly=new A.CheckBox,this.formFieldReadOnly.checked=e.isReadonly):e.isReadonly=this.formFieldReadOnly.checked,n>-1&&(o[parseInt(n.toString(),10)].FormField.isReadonly=e.isReadonly,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.isReadonly=e.isReadonly,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem)){for(var l=0;l<this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem.length;l++){this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isReadonly=e.isReadonly,this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].id.split("_")[0]].isReadonly=e.isReadonly;var d=document.getElementById(this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].id.split("_")[0]),h=this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)];this.setReadOnlyProperty(h,d),s&&(this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].backgroundColor="string"==typeof h.backgroundColor?this.getRgbCode(h.backgroundColor):h.backgroundColor)}this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}this.setReadOnlyProperty(e,t),s&&(this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,!1,!1,!1,!1,!1,!1,r,a))},a.prototype.updateIsRequiredPropertyChange=function(e,t,i,n,o){var r,a,s=!1;if(this.formFieldRequired&&e.isRequired!==this.formFieldRequired.checked&&(s=!0,r=e.isRequired,a=this.formFieldRequired.checked),i?(this.formFieldRequired=new A.CheckBox,this.formFieldRequired.checked=e.isRequired):e.isRequired=this.formFieldRequired?this.formFieldRequired.checked:e.isRequired,n>-1&&(o[parseInt(n.toString(),10)].FormField.isRequired=e.isRequired,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.isRequired=e.isRequired,this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem)){for(var l=0;l<this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem.length;l++)this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].isRequired=e.isRequired,this.pdfViewer.nameTable[this.pdfViewerBase.formFieldCollection[parseInt(n.toString(),10)].FormField.radiobuttonItem[parseInt(l.toString(),10)].id.split("_")[0]].isRequired=e.isRequired;this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner")}this.pdfViewer.nameTable[e.id.split("_")[0]].isRequired=e.isRequired,this.setRequiredToElement(e,t,e.isRequired),this.setRequiredToFormField(e,e.isRequired),s&&(this.pdfViewerBase.setItemInSessionStorage(this.pdfViewerBase.formFieldCollection,"_formDesigner"),this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,s,!1,!1,!1,r,a))},a.prototype.updateIsPrintPropertyChange=function(e,t,i,n){var o,r,a=!1;this.formFieldPrinting&&e.isPrint!==this.formFieldPrinting.checked&&(a=!0,o=e.isPrint,r=this.formFieldPrinting.checked),t?(this.formFieldPrinting=new A.CheckBox,this.formFieldPrinting.checked=e.isPrint):e.isPrint=this.formFieldPrinting.checked,i>-1&&(n[parseInt(i.toString(),10)].FormField.isPrint=e.isPrint,this.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.isPrint=e.isPrint),this.pdfViewer.nameTable[e.id.split("_")[0]].isPrint=e.isPrint,a&&this.updateFormFieldPropertiesChanges("formFieldPropertiesChange",e,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,!1,a,!1,!1,o,r)},a.prototype.getFormFiledIndex=function(e){if(null==this.pdfViewerBase.formFieldCollection||0===this.pdfViewerBase.formFieldCollection.length)return-1;var t=this.pdfViewerBase.formFieldCollection.findIndex(function(t){return t.Key.split("_")[0]===e});if(t>-1)return t;for(var i=0;i<this.pdfViewerBase.formFieldCollection.length;i++)if("RadioButton"===this.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.formFieldAnnotationType&&this.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.radiobuttonItem)for(var n=0;n<this.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.radiobuttonItem.length;n++)if(this.pdfViewerBase.formFieldCollection[parseInt(i.toString(),10)].FormField.radiobuttonItem[parseInt(n.toString(),10)].id.split("_")[0]===e)return i;return-1},a.prototype.updateFontStyle=function(e,t,i,n,o){var r=!1,a="",s="";return this.formFieldBold?("Bold"!==t.fontStyle&&(r=!0,a+=t.font.isBold?"Bold, ":""),i?t.font.isBold?this.setFontStyleValues(t,"Bold",this.formFieldBold,e,!0,"bold",n,o):this.setFontStyleValues(t,"None",this.formFieldBold,e,!1,"",n,o):"bold"===this.formFieldBold?this.setFontStyleValues(t,"Bold",this.formFieldBold,e,!0,"bold",n,o):this.setFontStyleValues(t,"None","bold",e,!1,"",n,o)):t.font.isBold&&this.setFontStyleValues(t,"None","bold",e,!1,"",n,o),s+=t.font.isBold?"Bold, ":"",this.formFieldItalic?("Italic"!==t.fontStyle&&(r=!0,a+=t.font.isItalic?"Italic, ":""),i?t.font.isItalic?this.setFontStyleValues(t,"Italic",this.formFieldItalic,e,!0,"italic",n,o):this.setFontStyleValues(t,"None",this.formFieldItalic,e,!1,"",n,o):"italic"===this.formFieldItalic?this.setFontStyleValues(t,"Italic",this.formFieldItalic,e,!0,"italic",n,o):this.setFontStyleValues(t,"None","italic",e,!1,"",n,o)):t.font.isItalic&&this.setFontStyleValues(t,"None","italic",e,!1,"",n,o),s+=t.font.isItalic?"Italic, ":"",this.formFieldUnderline?("Underline"!==t.fontStyle&&(r=!0,a+=t.font.isUnderline?"Underline, ":""),i?t.font.isUnderline?this.setFontStyleValues(t,"Underline",this.formFieldUnderline,e,!0,"underline",n,o):this.setFontStyleValues(t,"None",this.formFieldUnderline,e,!1,"",n,o):"underline"===this.formFieldUnderline?this.setFontStyleValues(t,"Underline",this.formFieldUnderline,e,!0,"underline",n,o):this.setFontStyleValues(t,"None","underline",e,!1,"",n,o)):t.font.isUnderline&&this.setFontStyleValues(t,"None","underline",e,!1,"",n,o),s+=t.font.isUnderline?"Underline, ":"",this.formFieldStrikeOut?("Strikethrough"!==t.fontStyle&&(r=!0,a+=t.font.isStrikeout?"Strikethrough, ":""),i?t.font.isStrikeout?this.setFontStyleValues(t,"Strikethrough",this.formFieldStrikeOut,e,!0,"line-through",n,o):this.setFontStyleValues(t,"None",this.formFieldStrikeOut,e,!1,"",n,o):"line-through"===this.formFieldStrikeOut?this.setFontStyleValues(t,"Strikethrough",this.formFieldStrikeOut,e,!0,"line-through",n,o):this.setFontStyleValues(t,"None","line-through",e,!1,"",n,o)):t.font.isStrikeout&&this.setFontStyleValues(t,"None","line-through",e,!1,"",n,o),s+=t.font.isStrikeout?"Strikethrough, ":"",[r,a,s]},a.prototype.setFontStyleValues=function(e,t,i,n,o,r,a,s){"bold"===i?(e.fontStyle=t,e.font.isBold=o,n.style.fontWeight=r,this.setDropdownFontStyleValue(n,i,r),a>-1&&(s[parseInt(a.toString(),10)].FormField.font.isBold=o,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.font.isBold=o),this.pdfViewer.nameTable[e.id.split("_")[0]].font.isBold=o):"italic"===i?(n.style.fontStyle=r,this.setDropdownFontStyleValue(n,i,r),e.fontStyle=t,e.font.isItalic=o,a>-1&&(s[parseInt(a.toString(),10)].FormField.font.isItalic=o,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.font.isItalic=o),this.pdfViewer.nameTable[e.id.split("_")[0]].font.isItalic=o):"underline"===i?(this.setDropdownFontStyleValue(n,i,r),n.style.textDecoration=r,e.fontStyle=t,e.font.isUnderline=o,a>-1&&(s[parseInt(a.toString(),10)].FormField.font.isUnderline=o,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.font.isUnderline=o),this.pdfViewer.nameTable[e.id.split("_")[0]].font.isUnderline=o):"line-through"===i&&(this.setDropdownFontStyleValue(n,i,r),n.style.textDecoration=r,e.fontStyle=t,e.font.isStrikeout=o,a>-1&&(s[parseInt(a.toString(),10)].FormField.font.isStrikeout=o,this.pdfViewerBase.formFieldCollection[parseInt(a.toString(),10)].FormField.font.isStrikeout=o),this.pdfViewer.nameTable[e.id.split("_")[0]].font.isStrikeout=o)},a.prototype.setDropdownFontStyleValue=function(e,t,i){if(e.length>0)for(var n=0;n<e.length;n++)"bold"===t?e[parseInt(n.toString(),10)].style.fontWeight=i:"italic"===t?e[parseInt(n.toString(),10)].style.fontStyle=i:"underline"===t?e[parseInt(n.toString(),10)].style.textDecoration=i:"line-through"===t?e[parseInt(n.toString(),10)].style.textDecoration=i:"none"===t&&(e[parseInt(n.toString(),10)].style.fontWeight=i)},a.prototype.updateFormFieldPropertiesChanges=function(e,t,i,n,o,r,a,s,l,d,A,h,p,c,g,u,f,m,w,C,B,S){var y={name:t.name,id:t.id,value:t.value,fontFamily:t.fontFamily,fontSize:t.fontSize,fontStyle:t.fontStyle,color:t.color,backgroundColor:t.backgroundColor,alignment:t.alignment,isReadonly:t.isReadonly,visibility:t.visibility,maxLength:t.maxLength,isRequired:t.isRequired,isPrint:t.isPrint,rotation:t.rotateAngle,tooltip:t.tooltip,options:t.options,isChecked:t.isChecked,isSelected:t.isSelected,previousName:S,currentName:t.name,customData:t.customData};this.pdfViewer.fireFormFieldPropertiesChangeEvent("formFieldPropertiesChange",y,t.pageIndex,i,n,o,r,a,s,l,d,A,h,p,c,g,u,f,m,w,C,B)},a.prototype.onCancelClicked=function(e){this.propertiesDialog.hide()},a.prototype.select=function(e){e.isSwiped&&(e.cancel=!0)},a.prototype.createAppearanceTab=function(){var e=this.pdfViewer.element.id,i=t.createElement("div",{id:e+"_properties_appearance"});"DropdownList"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"ListBox"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?i.style.height="260px":i.style.height="336px";var n=t.createElement("div");n.className="e-pv-properties-header-spliter",i.appendChild(n);var o=t.createElement("div",{className:"e-pv-properties-tab-style-prop"});return i.appendChild(o),!this.pdfViewer.selectedItems||"ListBox"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"DropdownList"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?!this.pdfViewer.selectedItems||"SignatureField"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"InitialField"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?this.tabControl=new s.Tab({items:[{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("General")+"</div>"},content:this.createGeneralProperties()},{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("Appearance")+"</div>"},content:this.createAppearanceProperties()}],selecting:this.select},o):this.tabControl=new s.Tab({items:[{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("General")+"</div>"},content:this.createGeneralProperties()}],selecting:this.select},o):this.tabControl=new s.Tab({items:[{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("General")+"</div>"},content:this.createGeneralProperties()},{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("Appearance")+"</div>"},content:this.createAppearanceProperties()},{header:{text:'<div class="e-pv-form-field-property-header-general"> '+this.pdfViewer.localeObj.getConstant("Options")+"</div>"},content:this.createOptionProperties()}],selecting:this.select},o),o.children[1].style.height="100%",i},a.prototype.createGeneralProperties=function(){var e=this.pdfViewer.selectedItems.formFields?this.pdfViewer.selectedItems.formFields[0]:null,i=["visible","hidden"],o=this.pdfViewer.element.id,r=t.createElement("div",{id:o+"_general_prop_appearance"}),a=t.createElement("div",{className:"e-pv-properties-text-edit-prop"});r.appendChild(a);var s=t.createElement("div",{className:"e-pv-properties-form-field-name-main-div"}),l=t.createElement("div",{className:"e-pv-properties-name-edit-prop"}),d=t.createElement("input",{className:"e-pv-properties-name-edit-input e-input"});l.appendChild(d),s.appendChild(l),this.formFieldName=new n.TextBox({type:"text",floatLabelType:"Always",placeholder:this.pdfViewer.localeObj.getConstant("Name"),value:e.name,cssClass:"e-pv-properties-formfield-name"},d),a.appendChild(s);var p=t.createElement("div",{className:"e-pv-properties-form-field-tooltip-main-div"}),c=t.createElement("div",{className:"e-pv-properties-tooltip-edit-prop"}),g=t.createElement("input",{className:"e-pv-properties-tooltip-prop-input e-input"});c.appendChild(g),p.appendChild(c),this.formFieldTooltip=new n.TextBox({type:"text",floatLabelType:"Always",placeholder:this.pdfViewer.localeObj.getConstant("Tooltip"),value:e.tooltip,cssClass:"e-pv-properties-formfield-tooltip"},g),a.appendChild(p);var u=t.createElement("div",{className:"e-pv-properties-visibility-style-prop"});r.appendChild(u);var f=t.createElement("div",{className:"e-pv-properties-form-field-value-main-div"}),m=t.createElement("div",{className:"e-pv-properties-value-edit-prop"}),w=t.createElement("input",{className:"e-pv-properties-value-input e-input"});m.appendChild(w),f.appendChild(m),"PasswordField"===this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?this.formFieldValue=new n.TextBox({type:"password",floatLabelType:"Always",placeholder:this.pdfViewer.localeObj.getConstant("Value"),value:e.value,cssClass:"e-pv-properties-formfield-value"},w):this.formFieldValue=new n.TextBox({type:"text",floatLabelType:"Always",placeholder:this.pdfViewer.localeObj.getConstant("Value"),value:e.value,cssClass:"e-pv-properties-formfield-value"},w),"Textbox"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"PasswordField"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"RadioButton"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&"Checkbox"!==this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType&&(this.formFieldValue.enabled=!1,this.formFieldValue.value=""),u.appendChild(f);var C=t.createElement("div",{className:"e-pv-properties-form-field-visibility-main-div"}),B=t.createElement("div",{className:"e-pv-properties-visibility-edit-prop"}),S=t.createElement("input",{className:"e-pv-properties-formfield-visibility"});B.appendChild(S),C.appendChild(B);var y="visible"===e.visibility?0:1;this.formFieldVisibility=new h.DropDownList({dataSource:i,floatLabelType:"Always",index:y,value:e.visibility,placeholder:this.pdfViewer.localeObj.getConstant("Form Field Visibility"),cssClass:"e-pv-properties-formfield-visibility"},S),u.appendChild(C);var I=t.createElement("div",{className:"e-pv-properties-checkbox-main-div-prop"}),E=t.createElement("input",{className:"e-pv-properties-checkbox-readonly-input e-input"});if(I.appendChild(E),this.formFieldReadOnly=new A.CheckBox({label:this.pdfViewer.localeObj.getConstant("Read Only"),checked:e.isReadonly,cssClass:"e-pv-properties-form-field-checkbox"},E),"Checkbox"===this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType||"RadioButton"===this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType){var v=t.createElement("input",{className:"e-pv-properties-checkbox-checked-input e-input"});I.appendChild(v),this.formFieldChecked=new A.CheckBox({label:this.pdfViewer.localeObj.getConstant("Checked"),cssClass:"e-pv-properties-form-field-checkbox",checked:e.isChecked||e.isSelected,change:this.checkBoxChange.bind(this)},v)}var b=t.createElement("input",{className:"e-pv-properties-checkbox-required-input e-input"});I.appendChild(b),this.formFieldRequired=new A.CheckBox({label:this.pdfViewer.localeObj.getConstant("Required"),checked:e.isRequired,cssClass:"e-pv-properties-form-field-checkbox"},b);var V=t.createElement("input",{className:"e-pv-properties-checkbox-printing-input e-input"});if(I.appendChild(V),this.formFieldPrinting=new A.CheckBox({label:this.pdfViewer.localeObj.getConstant("Show Printing"),checked:e.isPrint,cssClass:"e-pv-properties-form-field-checkbox"},V),"Textbox"===e.formFieldAnnotationType){var D=t.createElement("input",{className:"e-pv-properties-checkbox-multiline-input e-input"});I.appendChild(D),this.formFieldMultiline=new A.CheckBox({label:this.pdfViewer.localeObj.getConstant("Multiline"),checked:e.isMultiline,cssClass:"e-pv-properties-form-field-checkbox",change:this.multilineCheckboxChange.bind(this)},D)}return r.appendChild(I),r},a.prototype.checkBoxChange=function(e){this.checkboxCheckedState=e.checked},a.prototype.multilineCheckboxChange=function(e){this.multilineCheckboxCheckedState=!0},a.prototype.setToolTip=function(e,i){var n=new o.Tooltip({content:t.initializeCSPTemplate(function(){return e})});n.appendTo(i),n.beforeOpen=this.tooltipBeforeOpen.bind(this),this.formFieldTooltips.push(n)},a.prototype.tooltipBeforeOpen=function(e){var i=this.pdfViewer.nameTable[""!==e.target.id.split("_")[0]?e.target.id.split("_")[0]:t.isNullOrUndefined(e.target.firstElementChild)?"":e.target.firstElementChild.id.split("_")[0]];t.isNullOrUndefined(i)||(e.element.children[0].innerHTML=i.tooltip,""!==e.element.children[0].innerHTML?e.element.style.display="block":e.element.style.display="none")},a.prototype.createAppearanceProperties=function(){var e=this.pdfViewer.selectedItems.formFields?this.pdfViewer.selectedItems.formFields[0]:null,i=["Helvetica","Courier","Times New Roman","Symbol","ZapfDingbats"],o=["6px","8px","10px","12px","14px","16px","18px","20px","24px","28px","32px","36px","40px"],r=this.pdfViewer.element.id,a=t.createElement("div",{id:r+"_formatting_text_prop_appearance"}),s=t.createElement("div",{className:"e-pv-properties-format-text-style-prop"});a.appendChild(s),this.createLabelElement(this.pdfViewer.localeObj.getConstant("Formatting"),s,!0,"e-pv-properties-formfield-label",r+"_properties_formfield_formatting");var l=t.createElement("div",{className:"e-pv-properties-font-items-container"}),d=t.createElement("div",{className:"e-pv-properties-font-family-container"}),A=t.createElement("input",{className:"e-pv-properties-format-font-family-prop"});d.appendChild(A),l.appendChild(d),this.formFieldFontFamily=new h.DropDownList({dataSource:i,value:this.getFontFamily(e.fontFamily)?e.fontFamily:"Helvetica",cssClass:"e-pv-properties-formfield-fontfamily"},A),this.setToolTip(this.pdfViewer.localeObj.getConstant("Font family"),d);var p=t.createElement("div",{className:"e-pv-properties-font-size-container"}),c=t.createElement("input",{className:"e-pv-properties-format-font-family-prop"});p.appendChild(c),l.appendChild(p),this.formFieldFontSize=new h.DropDownList({dataSource:o,value:e.fontSize+"px",cssClass:"e-pv-properties-formfield-fontsize"},c),this.setToolTip(this.pdfViewer.localeObj.getConstant("Font size"),p);var g=t.createElement("div",{className:"e-pv-properties-form-field-font-style"});g.onclick=this.fontStyleClicked.bind(this),g.appendChild(this.addClassFontItem("_formField_bold","e-pv-bold-icon",e.font.isBold)),g.appendChild(this.addClassFontItem("_formField_italic","e-pv-italic-icon",e.font.isItalic)),g.appendChild(this.addClassFontItem("_formField_underline_textinput","e-pv-underlinetext-icon",e.font.isUnderline)),g.appendChild(this.addClassFontItem("_formField_strikeout","e-pv-strikeout-icon",e.font.isStrikeout)),l.appendChild(g),this.getFontStyle(e.font),a.appendChild(l);var u=t.createElement("div",{className:"e-pv-properties-font-color-container"}),f=t.createElement("div",{className:"e-pv-properties-form-field-font-align"});f.onclick=this.fontAlignClicked.bind(this);var m=e.alignment.toLowerCase();f.appendChild(this.addClassFontItem("_formField_left_align","e-pv-left-align-icon","left"===m)),f.appendChild(this.addClassFontItem("_formField_center_align","e-pv-center-align-icon","center"===m)),f.appendChild(this.addClassFontItem("_formField_right_align","e-pv-right-align-icon","right"===m)),this.getAlignment(m),u.appendChild(f),this.fontColorElement=t.createElement("div",{className:"e-pv-formfield-textcolor-icon",id:this.pdfViewer.element.id+"formField_textColor"}),this.fontColorElement.setAttribute("role","combobox"),this.fontColorPalette=this.createColorPicker(this.fontColorElement.id,e.color),"black"!==e.color?this.fontColorValue=e.color:this.fontColorValue=null,this.fontColorPalette.change=this.onFontColorChange.bind(this),this.fontColorDropDown=this.createDropDownButton(this.fontColorElement,"e-pv-annotation-textcolor-icon",this.fontColorPalette.element.parentElement),u.appendChild(this.fontColorElement),this.setToolTip(this.pdfViewer.localeObj.getConstant("Font color"),this.fontColorDropDown.element),this.updateColorInIcon(this.fontColorElement,this.pdfViewer.selectedItems.formFields[0].color),"Checkbox"!==e.formFieldAnnotationType&&"RadioButton"!==e.formFieldAnnotationType||(this.fontColorPalette.disabled=!0,this.fontColorDropDown.disabled=!0,this.fontColorElement.style.pointerEvents="none",this.fontColorElement.style.opacity="0.5",f.style.pointerEvents="none",f.style.opacity="0.5",this.formFieldFontSize.enabled=!1,this.formFieldFontFamily.enabled=!1,d.style.pointerEvents="none",p.style.pointerEvents="none",g.style.pointerEvents="none",g.style.opacity="0.5");var w=t.createElement("div",{className:"e-pv-formfield-maxlength-group",id:this.pdfViewer.element.id+"formField_maxlength_group"}),C=t.createElement("div",{className:"e-pv-formfield-maxlength-icon",id:this.pdfViewer.element.id+"formField_maxlength"});w.appendChild(C),this.createLabelElement(this.pdfViewer.localeObj.getConstant("Max Length"),C,!0,"e-pv-properties-formfield-label",r+"_properties_formfield_maxlength");var B=t.createElement("div",{className:"e-pv-formfield-maxlength",id:this.pdfViewer.element.id+"formField_maxlength_container"}),S=t.createElement("input",{className:"e-pv-formfield-maxlength-input e-input"});S.setAttribute("aria-label","Max Length"),B.appendChild(S),w.appendChild(B),this.maxLengthItem=new n.NumericTextBox({format:"n",value:0!==e.maxLength?e.maxLength:0,min:0},S),u.appendChild(w),this.setToolTip(this.pdfViewer.localeObj.getConstant("Max Length"),this.maxLengthItem.element),"Textbox"!==e.formFieldAnnotationType&&"PasswordField"!==e.formFieldAnnotationType&&(this.maxLengthItem.enabled=!1,C.style.pointerEvents="none"),a.appendChild(u);var y=t.createElement("div",{className:"e-pv-properties-color-container-style-prop"}),I=t.createElement("div",{className:"e-pv-properties-fill-color-style-prop"});a.appendChild(I),this.createLabelElement(this.pdfViewer.localeObj.getConstant("Fill"),I,!0,"e-pv-properties-formfield-label",r+"_properties_formfield_fontcolor"),this.colorDropDownElement=t.createElement("div",{className:"e-pv-formfield-fontcolor-icon",id:this.pdfViewer.element.id+"formField_fontColor"}),this.colorDropDownElement.setAttribute("role","combobox"),this.colorPalette=this.createColorPicker(this.colorDropDownElement.id,e.backgroundColor),this.colorPalette.change=this.onColorPickerChange.bind(this),this.colorDropDown=this.createDropDownButton(this.colorDropDownElement,"e-pv-annotation-color-icon",this.colorPalette.element.parentElement),this.setToolTip(this.pdfViewer.localeObj.getConstant("Fill Color"),this.colorDropDown.element),I.appendChild(this.colorDropDownElement),y.appendChild(I),this.updateColorInIcon(this.colorDropDownElement,this.pdfViewer.selectedItems.formFields[0].backgroundColor);var E=t.createElement("div",{className:"e-pv-properties-stroke-color-style-prop"});this.createLabelElement(this.pdfViewer.localeObj.getConstant("Border"),E,!0,"e-pv-properties-formfield-label",r+"_properties_formfield_strokecolor"),this.strokeDropDownElement=t.createElement("div",{className:"e-pv-formfield-strokecolor-icon",id:this.pdfViewer.element.id+"formField_strokeColor"}),this.strokeDropDownElement.setAttribute("role","combobox"),this.strokeColorPicker=this.createColorPicker(this.strokeDropDownElement.id,e.borderColor),this.strokeColorPicker.change=this.onStrokePickerChange.bind(this),this.strokeDropDown=this.createDropDownButton(this.strokeDropDownElement,"e-pv-annotation-stroke-icon",this.strokeColorPicker.element.parentElement),this.setToolTip(this.pdfViewer.localeObj.getConstant("Border Color"),this.strokeDropDown.element),E.appendChild(this.strokeDropDownElement),y.appendChild(E),this.updateColorInIcon(this.strokeDropDownElement,this.pdfViewer.selectedItems.formFields[0].borderColor);var v=t.createElement("div",{className:"e-pv-properties-stroke-thickness-style-prop"});this.createLabelElement(this.pdfViewer.localeObj.getConstant("Thickness"),v,!0,"e-pv-properties-formfield-label",r+"_properties_formfield_strokethickness"),this.thicknessElement=t.createElement("div",{className:"e-pv-formfield-strokethickness-icon",id:this.pdfViewer.element.id+"formField_strokethickness"}),this.thicknessElement.setAttribute("role","combobox");var b=this.createThicknessSlider(this.thicknessElement.id);return this.thicknessDropDown=this.createDropDownButton(this.thicknessElement,"e-pv-annotation-thickness-icon",b),this.thicknessDropDown.beforeOpen=this.thicknessDropDownBeforeOpen.bind(this),this.setToolTip(this.pdfViewer.localeObj.getConstant("Thickness"),this.thicknessDropDown.element),this.thicknessSlider.change=this.thicknessChange.bind(this),this.thicknessSlider.changed=this.thicknessChange.bind(this),v.appendChild(this.thicknessElement),y.appendChild(v),a.appendChild(y),a},a.prototype.thicknessChange=function(e){1===this.pdfViewer.selectedItems.formFields.length&&(this.formFieldBorderWidth=e.value,this.updateThicknessIndicator())},a.prototype.thicknessDropDownBeforeOpen=function(){1===this.pdfViewer.selectedItems.formFields.length&&(this.formFieldBorderWidth=this.pdfViewer.selectedItems.formFields[0].thickness.toString(),this.thicknessSlider.value=this.pdfViewer.selectedItems.formFields[0].thickness),this.updateThicknessIndicator()},a.prototype.updateThicknessIndicator=function(){this.thicknessIndicator.textContent=this.thicknessSlider.value+" pt"},a.prototype.createOptionProperties=function(){var e=this,i=this.pdfViewer.element.id,o=t.createElement("div",{id:i+"_option_prop_appearance"}),r=t.createElement("div",{className:"e-pv-properties-form-field-list-add-div"}),a=t.createElement("div",{className:"e-pv-properties-form-field-list-item-main-div"});this.createLabelElement(this.pdfViewer.localeObj.getConstant("List Item"),a,!0,"e-pv-properties-formfield-label",i+"_properties_formfield_listitem");var s=t.createElement("div",{className:"e-pv-properties-list-item-edit-prop"}),l=t.createElement("input",{className:"e-pv-properties-list-item-input e-input"});l.setAttribute("aria-label","Item Name"),l.addEventListener("keyup",function(t){if(e.formFieldAddButton.disabled=!0,e.formFieldListItem.value=t.target.value,t.target&&t.target.value)if(e.formFieldListItemCollection.length>0)for(var i=0;i<e.formFieldListItemCollection.length;i++){if(e.formFieldListItemCollection[parseInt(i.toString(),10)]===t.target.value){e.formFieldAddButton.disabled=!0;break}e.formFieldAddButton.disabled=!1}else e.formFieldAddButton.disabled=!1}),s.appendChild(l),a.appendChild(s),this.formFieldListItem=new n.TextBox({type:"text",cssClass:"e-pv-properties-formfield-listitem"},l),r.appendChild(a),o.appendChild(r);var d=t.createElement("div",{className:"e-pv-properties-form-field-list-btn-div"}),h=t.createElement("button",{className:"e-btn"});h.addEventListener("click",this.addListItemOnClick.bind(this)),d.appendChild(h),this.formFieldAddButton=new A.Button({content:this.pdfViewer.localeObj.getConstant("Add"),disabled:!0,cssClass:"e-pv-properties-dropdown-btn"},h),r.appendChild(d);var p=t.createElement("div",{className:"e-pv-properties-form-field-export-value-div"}),c=t.createElement("div",{className:"e-pv-properties-form-field-export-value-main-div"});this.createLabelElement(this.pdfViewer.localeObj.getConstant("Export Value"),c,!0,"e-pv-properties-formfield-label",i+"_properties_formfield_exportValue");var g=t.createElement("div",{className:"e-pv-properties-export-value-edit-prop"}),u=t.createElement("input",{className:"e-pv-properties-export-value-input e-input"});u.setAttribute("aria-label","Item Value"),g.appendChild(u),c.appendChild(g),this.formFieldListItem=new n.TextBox({type:"text",cssClass:"e-pv-properties-formfield-exportvalue"},u),p.appendChild(c),o.appendChild(p);var f=t.createElement("div",{className:"e-pv-properties-form-field-option-dropdown-list-div"}),m=t.createElement("div",{className:"e-pv-properties-form-field-option-dropdown-list-item-div"});"DropdownList"===this.pdfViewer.selectedItems.formFields[0].formFieldAnnotationType?this.createLabelElement(this.pdfViewer.localeObj.getConstant("Dropdown Item List"),m,!0,"e-pv-properties-formfield-label",i+"_properties_formfield_dropdown_listitem"):this.createLabelElement(this.pdfViewer.localeObj.getConstant("List Box Item List"),m,!0,"e-pv-properties-formfield-label",i+"_properties_formfield_dropdown_listitem"),f.appendChild(m);var w=t.createElement("div",{className:"e-pv-properties-form-field-btn-textarea-container"}),C=t.createElement("div",{className:"e-pv-properties-formfield-textarea",styles:"width:300px;height:123px;border:1px solid #E0E0E0;margin-right:15px;overflow:auto"}),B=t.createElement("ul",{id:this.pdfViewer.element.id+"_ul_list_item",className:"e-pv-form-designer-ul-list-items"}),S=this.createListElement(B);C.appendChild(B),w.appendChild(C);var y=t.createElement("div",{className:"e-pv-properties-form-field-group-btn-div"}),I=t.createElement("div",{className:"e-pv-properties-form-field-delete-btn-div"}),E=t.createElement("button",{className:"e-btn"});E.addEventListener("click",this.deleteListItem.bind(this)),I.appendChild(E),this.formFieldDeleteButton=new A.Button({content:this.pdfViewer.localeObj.getConstant("Delete Item"),disabled:!(S>0),cssClass:"e-pv-properties-dropdown-btn"},E),y.appendChild(I);var v=t.createElement("div",{className:"e-pv-properties-form-field-up-btn-div"}),b=t.createElement("button",{className:"e-btn"});b.addEventListener("click",this.moveUpListItem.bind(this)),v.appendChild(b),this.formFieldUpButton=new A.Button({content:this.pdfViewer.localeObj.getConstant("Up"),disabled:!(S>1),cssClass:"e-pv-properties-dropdown-btn"},b),y.appendChild(v);var V=t.createElement("div",{className:"e-pv-properties-form-field-down-btn-div"}),D=t.createElement("button",{className:"e-btn"});return D.addEventListener("click",this.moveDownListItem.bind(this)),V.appendChild(D),this.formFieldDownButton=new A.Button({content:this.pdfViewer.localeObj.getConstant("Down"),disabled:!0,cssClass:"e-pv-properties-dropdown-btn"},D),y.appendChild(V),w.appendChild(y),f.appendChild(w),o.appendChild(f),o},a.prototype.addListItemOnClick=function(){var e=this.formFieldListItem.value;this.formFieldListItemCollection.push(e);var i=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(i.children&&i.children.length>0)for(var n=0;n<i.children.length;n++){var o=i.children[parseInt(n.toString(),10)];o.classList.contains("e-pv-li-select")&&o.classList.remove("e-pv-li-select")}var r=t.createElement("li",{className:"e-pv-formfield-li-element"});r.addEventListener("click",this.listItemOnClick.bind(this)),r.innerHTML=e,r.classList.add("e-pv-li-select"),i.appendChild(r),this.formFieldDeleteButton.disabled=!1,this.formFieldAddButton.disabled=!0,r.previousElementSibling&&(this.formFieldUpButton.disabled=!1),r.nextElementSibling||(this.formFieldDownButton.disabled=!0)},a.prototype.listItemOnClick=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(t.children&&t.children.length>0)for(var i=0;i<t.children.length;i++){var n=t.children[parseInt(i.toString(),10)];n.classList.contains("e-pv-li-select")&&n.classList.remove("e-pv-li-select")}e.target&&e.target.classList.add("e-pv-li-select"),e.target.nextElementSibling?this.formFieldDownButton.disabled=!1:this.formFieldDownButton.disabled=!0,e.target.previousElementSibling?this.formFieldUpButton.disabled=!1:this.formFieldUpButton.disabled=!0},a.prototype.deleteListItem=function(){var e=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(e.children&&e.children.length>0)for(var t=0;t<e.children.length;t++){var i=e.children[parseInt(t.toString(),10)];i.classList.contains("e-pv-li-select")&&(i.classList.remove("e-pv-li-select"),this.formFieldListItemCollection.splice(t,1),i.previousElementSibling?(i.previousElementSibling.classList.add("e-pv-li-select"),i.previousElementSibling.previousElementSibling||(this.formFieldUpButton.disabled=!0)):i.nextElementSibling&&(i.nextElementSibling.classList.add("e-pv-li-select"),i.nextElementSibling.nextElementSibling||(this.formFieldDownButton.disabled=!0)),i.remove())}e.children&&0===e.children.length&&(this.formFieldDeleteButton.disabled=!0,this.formFieldUpButton.disabled=!0,this.formFieldDownButton.disabled=!0),e.children&&1===e.children.length&&(this.formFieldDeleteButton.disabled=!1,this.formFieldUpButton.disabled=!0,this.formFieldDownButton.disabled=!0)},a.prototype.moveUpListItem=function(){var e=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(e.children&&e.children.length>0)for(var t=0;t<e.children.length;t++){var i=e.children[parseInt(t.toString(),10)];i.classList.contains("e-pv-li-select")&&(i.previousElementSibling?(i.parentNode.insertBefore(i,i.previousElementSibling),i.previousElementSibling||(this.formFieldUpButton.disabled=!0)):this.formFieldUpButton.disabled=!0,i.nextElementSibling&&(this.formFieldDownButton.disabled=!1))}},a.prototype.moveDownListItem=function(){var e,t=document.getElementById(this.pdfViewer.element.id+"_ul_list_item");if(t.children&&t.children.length>0)for(var i=0;i<t.children.length;i++)if((e=t.children[parseInt(i.toString(),10)]).classList.contains("e-pv-li-select")){if(e.nextElementSibling){e.parentNode.insertBefore(e.nextElementSibling,e);break}this.formFieldDownButton.disabled=!0}e.nextElementSibling||(this.formFieldDownButton.disabled=!0),e.previousElementSibling&&(this.formFieldUpButton.disabled=!1)},a.prototype.createListElement=function(e){var i=this.pdfViewer.selectedItems.formFields[0];if(i&&i.options&&i.options.length>0){for(var n=0;n<i.options.length;n++){var o=i.options[parseInt(n.toString(),10)].itemName;if(this.formFieldListItemCollection[parseInt(n.toString(),10)]!==i.options[parseInt(n.toString(),10)].itemName){this.formFieldListItemCollection.push(o);var r=t.createElement("li",{className:"e-pv-formfield-li-element"});r.addEventListener("click",this.listItemOnClick.bind(this)),r.addEventListener("focus",this.focusFormFields.bind(this)),r.addEventListener("blur",this.blurFormFields.bind(this)),r.innerHTML=o,e.appendChild(r)}}e.children[e.children.length-1].classList.add("e-pv-li-select")}return e.children.length},a.prototype.createThicknessSlider=function(e){var i=t.createElement("div",{className:"e-pv-annotation-thickness-popup-container"});document.body.appendChild(i);var o=t.createElement("span",{id:e+"_label",className:"e-pv-annotation-thickness-label"});o.textContent=this.pdfViewer.localeObj.getConstant("Line Thickness");var r=t.createElement("div",{id:e+"_slider"});return this.thicknessSlider=new n.Slider({type:"MinRange",cssClass:"e-pv-annotation-thickness-slider",max:12,min:0}),this.thicknessIndicator=t.createElement("div",{id:e+"_thickness_indicator",className:"e-pv-annotation-thickness-indicator"}),this.thicknessIndicator.textContent="0 pt",this.pdfViewer.enableRtl?(i.appendChild(this.thicknessIndicator),i.appendChild(r),this.thicknessSlider.enableRtl=!0,this.thicknessSlider.appendTo(r),i.appendChild(o)):(i.appendChild(o),i.appendChild(r),this.thicknessSlider.appendTo(r),i.appendChild(this.thicknessIndicator)),this.thicknessSlider.element.parentElement.classList.add("e-pv-annotation-thickness-slider-container"),i},a.prototype.createColorPicker=function(e,i){var o=t.createElement("input",{id:e+"_target"});document.body.appendChild(o);var r=new n.ColorPicker({inline:!0,mode:"Palette",cssClass:"e-show-value",enableOpacity:!1,value:i,showButtons:!1,modeSwitcher:!1});return this.pdfViewer.enableRtl&&(r.enableRtl=!0),r.appendTo(o),r},a.prototype.fontStyleClicked=function(e){if(e.target)if(-1!==e.target.id.indexOf("formField_bold"))(t=-1!==e.target.id.indexOf("formField_bold_div")?e.target:e.target.parentElement).classList.contains("e-pv-li-select")&&(this.isBold=!0),this.isBold=!this.isBold,this.isBold?(this.formFieldBold="bold",t.classList.add("e-pv-li-select")):(this.formFieldBold="normal",t.classList.remove("e-pv-li-select"));else if(-1!==e.target.id.indexOf("formField_italic"))(t=-1!==e.target.id.indexOf("formField_italic_div")?e.target:e.target.parentElement).classList.contains("e-pv-li-select")&&(this.isItalic=!0),this.isItalic=!this.isItalic,this.isItalic?(this.formFieldItalic="italic",t.classList.add("e-pv-li-select")):(this.formFieldItalic="normal",t.classList.remove("e-pv-li-select"));else if(-1!==e.target.id.indexOf("formField_underline"))(t=-1!==e.target.id.indexOf("formField_underline_textinput_div")?e.target:e.target.parentElement).classList.contains("e-pv-li-select")&&(this.isUnderline=!0),this.isUnderline=!this.isUnderline,this.isUnderline?(this.formFieldUnderline="underline",this.isStrikeThrough=!1,t.classList.add("e-pv-li-select")):(this.formFieldUnderline="none",t.classList.remove("e-pv-li-select"));else if(-1!==e.target.id.indexOf("formField_strikeout")){var t=-1!==e.target.id.indexOf("formField_strikeout_div")?e.target:e.target.parentElement;t.classList.contains("e-pv-li-select")&&(this.isStrikeThrough=!0),this.isStrikeThrough=!this.isStrikeThrough,this.isStrikeThrough?(this.formFieldStrikeOut="line-through",this.isUnderline=!1,t.classList.add("e-pv-li-select")):(this.formFieldStrikeOut="none",t.classList.remove("e-pv-li-select"))}},a.prototype.clearFontAlignIconSelection=function(e){for(var t=0;t<e.children.length;t++)e.children[parseInt(t.toString(),10)].classList.contains("e-pv-li-select")&&e.children[parseInt(t.toString(),10)].classList.remove("e-pv-li-select")},a.prototype.fontAlignClicked=function(e){if(e.target)if(e.target.classList.remove("e-pv-li-select"),-1!==e.target.id.indexOf("_formField_left_align")){t=-1!==e.target.id.indexOf("_formField_left_align_div")?e.target:e.target.parentElement;this.formFieldAlign="left",this.clearFontAlignIconSelection(e.currentTarget),t.classList.add("e-pv-li-select")}else if(-1!==e.target.id.indexOf("_formField_right_align")){t=-1!==e.target.id.indexOf("_formField_right_align_div")?e.target:e.target.parentElement;this.formFieldAlign="right",this.clearFontAlignIconSelection(e.currentTarget),t.classList.add("e-pv-li-select")}else{var t=-1!==e.target.id.indexOf("_formField_center_align_div")?e.target:e.target.parentElement;this.formFieldAlign="center",this.clearFontAlignIconSelection(e.currentTarget),t.classList.add("e-pv-li-select")}},a.prototype.onFontColorChange=function(e){this.fontColorValue=""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,this.updateColorInIcon(this.fontColorElement,this.fontColorValue),this.fontColorDropDown.toggle()},a.prototype.onColorPickerChange=function(e){this.backgroundColorValue=""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,this.updateColorInIcon(this.colorDropDownElement,this.backgroundColorValue),this.colorDropDown.toggle()},a.prototype.updateColorInIcon=function(e,t){e.childNodes[0].style.borderBottomColor=t},a.prototype.onStrokePickerChange=function(e){this.borderColorValue=""===e.currentValue.hex?"#ffffff00":e.currentValue.hex,this.updateColorInIcon(this.strokeDropDownElement,this.borderColorValue),this.strokeDropDown.toggle()},a.prototype.createDropDownButton=function(e,t,i){var n=document.getElementById(i.id+"-popup");n&&n.remove();var o=new r.DropDownButton({iconCss:t+" e-pv-icon",target:i});return this.pdfViewer.enableRtl&&(o.enableRtl=!0),o.appendTo(e),o},a.prototype.addClassFontItem=function(e,i,n){var o=t.createElement("div",{id:this.pdfViewer.element.id+e+"_div"});o.classList.add(i+"-div");var r=t.createElement("span",{id:this.pdfViewer.element.id+e+"_span"});switch(r.classList.add(i),r.classList.add("e-pv-icon"),i){case"e-pv-bold-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Bold"),o);break;case"e-pv-italic-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Italic"),o);break;case"e-pv-underlinetext-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Underlines"),o);break;case"e-pv-strikeout-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Strikethroughs"),o);break;case"e-pv-left-align-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Align left"),o);break;case"e-pv-center-align-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Center"),o);break;case"e-pv-right-align-icon":this.setToolTip(this.pdfViewer.localeObj.getConstant("Align right"),o)}return n&&o.classList.add("e-pv-li-select"),o.appendChild(r),o},a.prototype.createLabelElement=function(e,i,n,o,r){var a=t.createElement("div",{id:r+"_container",className:o+"-container"}),s=null;n&&((s=t.createElement("div",{id:r+"_label",className:o})).textContent=e,a.appendChild(s)),i.appendChild(s)},a.prototype.setReadOnlyToFormField=function(e,t){for(var i=0;i<this.pdfViewer.formFieldCollection.length;i++){var n=this.pdfViewer.formFieldCollection[parseInt(i.toString(),10)];if(n.formFieldAnnotationType===e.formFieldAnnotationType&&n.name===e.name&&n.id===e.id)switch(n.isReadonly=t,n.formFieldAnnotationType){case"Textbox":case"PasswordField":case"DropdownList":case"ListBox":case"SignatureField":case"InitialField":case"RadioButton":var o=document.getElementById(n.id+"_content_html_element").firstElementChild.firstElementChild;this.setReadOnlyToElement(n,o,t);break;case"Checkbox":var r=document.getElementById(n.id+"_content_html_element").firstElementChild.firstElementChild.lastElementChild;this.setReadOnlyToElement(n,r,t)}}},a.prototype.getFormDesignerSignField=function(e){for(var t,i=this.pdfViewer.formFieldCollections,n=0;n<i.length;n++)"SignatureField"!==(t=i[parseInt(n.toString(),10)].type)&&"InitialField"!==t||e.push(i[parseInt(n.toString(),10)]);return e},a.prototype.setRequiredToFormField=function(e,t){for(var i=0;i<this.pdfViewer.formFieldCollection.length;i++){var n=this.pdfViewer.formFieldCollection[parseInt(i.toString(),10)];if(n.formFieldAnnotationType===e.formFieldAnnotationType&&n.name===e.name&&n.id===e.id)switch(n.isRequired=t,n.formFieldAnnotationType){case"Textbox":case"PasswordField":case"DropdownList":case"SignatureField":case"InitialField":var o=document.getElementById(n.id+"_content_html_element").firstElementChild.firstElementChild;this.setRequiredToElement(n,o,t);break;case"RadioButton":var r=document.getElementById(n.id+"_content_html_element").firstElementChild.firstElementChild.firstElementChild;this.setRequiredToElement(n,r,t),this.updateFormFieldCollections(n);break;case"Checkbox":var a=document.getElementById(n.id+"_content_html_element").firstElementChild.firstElementChild.lastElementChild;this.setRequiredToElement(n,a,t)}}},a.prototype.isTransparentBackground=function(e){return"object"==typeof e&&(e=JSON.stringify(e)),"#00000000"===e||"transparent"===e||"rgba(0,0,0,0)"===e||'{"r":0,"g":0,"b":0,"a":0}'===e},a.prototype.setReadOnlyToElement=function(e,i,n){var o={r:218,g:234,b:247,a:100};if("DropdownList"!==e.formFieldAnnotationType&&"ListBox"!==e.formFieldAnnotationType||(i.parentElement.style.backgroundColor=i.style.backgroundColor),!n&&i.disabled&&(i.disabled=!1),n)if("RadioButton"===e.formFieldAnnotationType)i.parentElement.style.cursor="default";else if("SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){var r=t.isNullOrUndefined(e.thickness)?e.thickness:1;i.parentElement.style.borderWidth=r}else i.style.cursor="default";if(n&&this.isAddFormFieldProgrammatically&&(this.previousBackgroundColor=e.backgroundColor),"RadioButton"===e.formFieldAnnotationType)i.style.backgroundColor=e.isReadonly?"#daeaf7ff"!==e.backgroundColor&&JSON.stringify(e.backgroundColor)!==JSON.stringify(o)?e.backgroundColor:"transparent":this.isTransparentBackground(e.backgroundColor)?"#daeaf7ff":e.backgroundColor;else if("SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){if(!t.isNullOrUndefined(e)&&""===e.value){var a=e.backgroundColor?e.backgroundColor:"#FFE48559";i.parentElement.style.backgroundColor=n?a:Vi.setTransparencyToHex(a)}}else i.style.backgroundColor=e.isReadonly?"#daeaf7ff"!==e.backgroundColor?e.backgroundColor:"transparent":this.isTransparentBackground(e.backgroundColor)?"#daeaf7ff":e.backgroundColor!==this.previousBackgroundColor?e.backgroundColor:this.previousBackgroundColor;e.backgroundColor=e.isReadonly?"#daeaf7ff"!==e.backgroundColor&&JSON.stringify(e.backgroundColor)!==JSON.stringify(o)?e.backgroundColor:"transparent":this.isTransparentBackground(e.backgroundColor)?"#daeaf7ff":e.backgroundColor!==this.previousBackgroundColor?e.backgroundColor:this.previousBackgroundColor},a.prototype.setRequiredToElement=function(e,t,i){if(i){if(t.required=!0,t.style.border="1px solid red","RadioButton"===e.formFieldAnnotationType){n=0===e.thickness?1:e.thickness;t.parentElement.style.boxShadow="red 0px 0px 0px "+n+"px"}else if("SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType){var n=e.thickness>0?e.thickness:1;t.style.border=n+"px solid red"}}else t.required=!1,"SignatureField"===e.formFieldAnnotationType||"InitialField"===e.formFieldAnnotationType?t.style.borderWidth=e.thickness:t.style.borderWidth=e.thickness+"px",t.style.borderColor=e.borderColor,"RadioButton"===e.formFieldAnnotationType&&(t.parentElement.style.boxShadow=e.borderColor+" 0px 0px 0px "+e.thickness+"px")},a.prototype.destroyPropertiesWindow=function(){this.formFieldListItemCollection=[],this.formFieldListItemDataSource=[],this.formFieldFontFamily=null,this.formFieldFontSize=null,this.formFieldAlign=null,this.fontColorValue=null,this.backgroundColorValue=null,this.borderColorValue=null,this.formFieldBorderWidth=null,this.formFieldName=null,this.formFieldChecked=null,this.formFieldReadOnly=null,this.formFieldRequired=null,this.formFieldTooltip=null,this.formFieldPrinting=null,this.formFieldMultiline=null,this.formFieldVisibility=null,this.strokeColorPicker&&(this.strokeColorPicker.destroy(),this.strokeColorPicker=null),this.strokeDropDown&&(this.strokeDropDown.destroy(),this.strokeDropDown=null),this.strokeDropDownElement&&(this.strokeDropDownElement=null),this.colorDropDownElement&&(this.colorDropDownElement=null),this.colorPalette&&(this.colorPalette.destroy(),this.colorPalette=null),this.colorDropDown&&(this.colorDropDown.destroy(),this.colorDropDown=null),this.thicknessElement&&(this.thicknessElement=null),this.thicknessDropDown&&(this.thicknessDropDown.destroy(),this.thicknessDropDown=null),this.fontColorDropDown&&(this.fontColorDropDown.destroy(),this.fontColorDropDown=null),this.fontColorPalette&&(this.fontColorPalette.destroy(),this.fontColorPalette=null),this.maxLengthItem&&(this.maxLengthItem.destroy(),this.maxLengthItem=null);var e=this.pdfViewerBase.getElement("_properties_window");e&&e.parentElement.removeChild(e)},a.prototype.destroy=function(){if(this.destroyPropertiesWindow(),null!=this.formFieldTooltips){for(var e=0;e<this.formFieldTooltips.length;e++)this.formFieldTooltips[parseInt(e.toString(),10)].destroy();this.formFieldTooltips=[]}},a.prototype.hex=function(e){return("0"+e.toString(16)).slice(-2)},a.prototype.getModuleName=function(){return"FormDesigner"},a.prototype.updateAnnotationCanvas=function(e,t,i,n){var o=this.pdfViewerBase.getZoomRatio();e.width=t*o,e.height=i*o,e.style.width=t+"px",e.style.height=i+"px",e.style.position="absolute",e.style.zIndex="1",this.pdfViewerBase.applyElementStyles(e,n)},a.prototype.getFontFamily=function(e){return["Helvetica","Courier","Times New Roman","Symbol","ZapfDingbats"].indexOf(e)>-1},a.prototype.updateTextFieldSettingProperties=function(e,i,n){var o=this.pdfViewer.textFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.textFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.textFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.value&&this.textFieldPropertyChanged.isValueChanged&&(e.value=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.value):o.value),o.backgroundColor&&"white"!==o.backgroundColor&&this.textFieldPropertyChanged.isBackgroun
vendor: 4,866 bytes, line 10
10dColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.textFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.alignment&&"Left"!==o.alignment&&this.textFieldPropertyChanged.isAlignmentChanged&&(e.alignment=o.alignment),o.color&&"black"!==o.color&&this.textFieldPropertyChanged.isColorChanged&&(e.color=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.color):o.color),o.fontFamily&&"Helvetica"!==o.fontFamily&&this.textFieldPropertyChanged.isFontFamilyChanged&&(e.fontFamily=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.fontFamily):o.fontFamily),o.fontSize&&10!==o.fontSize&&this.textFieldPropertyChanged.isFontSizeChanged&&(e.fontSize=o.fontSize),o.fontStyle&&this.textFieldPropertyChanged.isFontStyleChanged&&(e.fontStyle=this.getFontStyleName(o.fontStyle,e)),o.name&&this.textFieldPropertyChanged.isNameChanged&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.name):o.name),o.tooltip&&this.textFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o.thickness&&1!==o.thickness&&this.textFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.maxLength&&this.textFieldPropertyChanged.isMaxLengthChanged&&(e.maxLength=o.maxLength),o.visibility&&this.textFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.textFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),!t.isNullOrUndefined(o.isMultiline)&&this.textFieldPropertyChanged.isMultilineChanged&&(e.isMultiline=o.isMultiline),!t.isNullOrUndefined(o.customData)&&this.textFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updatePasswordFieldSettingProperties=function(e,i,n){var o=this.pdfViewer.passwordFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.passwordFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.passwordFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.value&&this.passwordFieldPropertyChanged.isValueChanged&&(e.value=o.value),o.backgroundColor&&"white"!==o.backgroundColor&&this.passwordFieldPropertyChanged.isBackgroundColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.passwordFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.alignment&&"Left"!==o.alignment&&this.passwordFieldPropertyChanged.isAlignmentChanged&&(e.alignment=o.alignment),o.color&&"black"!==o.color&&this.passwordFieldPropertyChanged.isColorChanged&&(e.color=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.color):o.color),o.fontFamily&&"Helvetica"!==o.fontFamily&&this.passwordFieldPropertyChanged.isFontFamilyChanged&&(e.fontFamily=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.fontFamily):o.fontFamily),o.fontSize&&10!==o.fontSize&&this.passwordFieldPropertyChanged.isFontSizeChanged&&(e.fontSize=o.fontSize),o.fontStyle&&this.passwordFieldPropertyChanged.isFontStyleChanged&&(e.fontStyle=this.getFontStyleName(o.fontStyle,e)),o.name&&this.passwordFieldPropertyChanged.isNameChanged&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.name):o.name),o.tooltip&&this.passwordFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o.thickness&&1!==o.thickness&&this.passwordFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.maxLength&&this.passwordFieldPropertyChanged.isMaxLengthChanged&&(e.maxLength=o.maxLength),o.visibility&&this.passwordFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.passwordFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),!t.isNullOrUndefined(o.customData)&&this.passwordFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updateCheckBoxFieldSettingsProperties=function(e,i,n){var o=this.pdfViewer.checkBoxFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.checkBoxFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.checkBoxFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.value&&this.checkBoxFieldPropertyChanged.isValueChanged&&(e.value=o.value),o.backgroundColor&&"white"!==o.backgroundColor&&this.checkBoxFieldPropertyChanged.isBackgroun
vendor: 10,233 bytes, line 10
10dColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.checkBoxFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.name&&this.checkBoxFieldPropertyChanged.isNameChanged&&(e.name=t.SanitizeHtmlHelper.sanitize(o.name)),o.tooltip&&this.checkBoxFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o.thickness&&1!==o.thickness&&this.checkBoxFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.visibility&&this.checkBoxFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.checkBoxFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),!t.isNullOrUndefined(o.isChecked)&&this.checkBoxFieldPropertyChanged.isCheckedChanged&&(e.isChecked=o.isChecked),!t.isNullOrUndefined(o.customData)&&this.checkBoxFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updateRadioButtonFieldSettingProperties=function(e,i,n){var o=this.pdfViewer.radioButtonFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.radioButtonFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.radioButtonFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.value&&this.radioButtonFieldPropertyChanged.isValueChanged&&(e.value=o.value),o.backgroundColor&&"white"!==o.backgroundColor&&this.radioButtonFieldPropertyChanged.isBackgroundColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.radioButtonFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.name&&this.radioButtonFieldPropertyChanged.isNameChanged&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.name):o.name),o.tooltip&&this.radioButtonFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o.thickness&&1!==o.thickness&&this.radioButtonFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.visibility&&this.radioButtonFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.radioButtonFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),!t.isNullOrUndefined(o.isSelected)&&this.radioButtonFieldPropertyChanged.isSelectedChanged&&(e.isSelected=o.isSelected),!t.isNullOrUndefined(o.customData)&&this.radioButtonFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updateDropdownFieldSettingsProperties=function(e,i,n){var o=this.pdfViewer.DropdownFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.dropdownFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.dropdownFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.backgroundColor&&"white"!==o.backgroundColor&&this.dropdownFieldPropertyChanged.isBackgroundColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.dropdownFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.alignment&&"Left"!==o.alignment&&this.dropdownFieldPropertyChanged.isAlignmentChanged&&(e.alignment=o.alignment),o.color&&"black"!==o.color&&this.dropdownFieldPropertyChanged.isColorChanged&&(e.color=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.color):o.color),o.fontFamily&&"Helvetica"!==o.fontFamily&&this.dropdownFieldPropertyChanged.isFontFamilyChanged&&(e.fontFamily=t.SanitizeHtmlHelper.sanitize(o.fontFamily)),o.fontSize&&10!==o.fontSize&&this.dropdownFieldPropertyChanged.isFontSizeChanged&&(e.fontSize=o.fontSize),o.fontStyle&&this.dropdownFieldPropertyChanged.isFontStyleChanged&&(e.fontStyle=this.getFontStyleName(o.fontStyle,e)),o.name&&this.dropdownFieldPropertyChanged.isNameChanged&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.name):o.name),o.tooltip&&this.dropdownFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o&&1!==o.thickness&&this.dropdownFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.visibility&&this.dropdownFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.dropdownFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),o.options&&this.dropdownFieldPropertyChanged.isOptionChanged&&(e.options=e.options&&e.options.length>0?e.options:o.options),!t.isNullOrUndefined(o.customData)&&this.dropdownFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updatelistBoxFieldSettingsProperties=function(e,i,n){var o=this.pdfViewer.listBoxFieldSettings;!t.isNullOrUndefined(o.isReadOnly)&&this.listBoxFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=o.isReadOnly),!t.isNullOrUndefined(o.isRequired)&&this.listBoxFieldPropertyChanged.isRequiredChanged&&(e.isRequired=o.isRequired),o.backgroundColor&&"white"!==o.backgroundColor&&this.listBoxFieldPropertyChanged.isBackgroundColorChanged&&(e.backgroundColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.backgroundColor):o.backgroundColor),o.borderColor&&"black"!==o.borderColor&&this.listBoxFieldPropertyChanged.isBorderColorChanged&&(e.borderColor=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.borderColor):o.borderColor),o.alignment&&"Left"!==o.alignment&&this.listBoxFieldPropertyChanged.isAlignmentChanged&&(e.alignment=o.alignment),o.color&&"black"!==o.color&&this.listBoxFieldPropertyChanged.isColorChanged&&(e.color=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.color):o.color),o.fontFamily&&"Helvetica"!==o.fontFamily&&this.listBoxFieldPropertyChanged.isFontFamilyChanged&&(e.fontFamily=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.fontFamily):o.fontFamily),o.fontSize&&10!==o.fontSize&&this.listBoxFieldPropertyChanged.isFontSizeChanged&&(e.fontSize=o.fontSize),o.fontStyle&&this.listBoxFieldPropertyChanged.isFontStyleChanged&&(e.fontStyle=this.getFontStyleName(o.fontStyle,e)),o.name&&this.listBoxFieldPropertyChanged.isNameChanged&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.name):o.name),o.tooltip&&this.listBoxFieldPropertyChanged.isToolTipChanged&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(o.tooltip):o.tooltip),o.thickness&&1!==o.thickness&&this.listBoxFieldPropertyChanged.isThicknessChanged&&(e.thickness=o.thickness),o.visibility&&this.listBoxFieldPropertyChanged.isVisibilityChanged&&(e.visibility=o.visibility),!t.isNullOrUndefined(o.isPrint)&&this.listBoxFieldPropertyChanged.isPrintChanged&&(e.isPrint=o.isPrint),o.options&&this.listBoxFieldPropertyChanged.isOptionChanged&&(e.options=e.options&&e.options.length>0?e.options:o.options),!t.isNullOrUndefined(o.customData)&&this.listBoxFieldPropertyChanged.isCustomDataChanged&&(e.customData=o.customData)},a.prototype.updateSignInitialFieldProperties=function(e,i,n,o){var r=this.pdfViewer.initialFieldSettings,a=this.pdfViewer.signatureFieldSettings;i?(!t.isNullOrUndefined(r.isReadOnly)&&this.initialFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=r.isReadOnly),t.isNullOrUndefined(r.isRequired)||!this.initialFieldPropertyChanged.isRequiredChanged||this.pdfViewer.magnificationModule.isFormFieldPageZoomed||(e.isRequired=r.isRequired),r.visibility&&this.initialFieldPropertyChanged.isVisibilityChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.visibility=r.visibility),r.tooltip&&this.initialFieldPropertyChanged.isTooltipChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(r.tooltip):r.tooltip),!t.isNullOrUndefined(r.thickness)&&!0===o&&this.initialFieldPropertyChanged.isThicknessChanged&&(e.thickness=r.thickness),r.name&&this.initialFieldPropertyChanged.isNameChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(r.name):r.name),t.isNullOrUndefined(r.isPrint)||!this.initialFieldPropertyChanged.isPrintChanged||this.pdfViewer.magnificationModule.isFormFieldPageZoomed||(e.isPrint=r.isPrint),!t.isNullOrUndefined(r.customData)&&this.initialFieldPropertyChanged.isCustomDataChanged&&(e.customData=r.customData)):(!t.isNullOrUndefined(a.isReadOnly)&&this.signatureFieldPropertyChanged.isReadOnlyChanged&&(e.isReadonly=a.isReadOnly),t.isNullOrUndefined(a.isRequired)||!this.signatureFieldPropertyChanged.isRequiredChanged||this.pdfViewer.magnificationModule.isFormFieldPageZoomed||(e.isRequired=a.isRequired),a.visibility&&this.signatureFieldPropertyChanged.isVisibilityChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.visibility=a.visibility),a.tooltip&&this.signatureFieldPropertyChanged.isTooltipChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.tooltip=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(a.tooltip):a.tooltip),!t.isNullOrUndefined(a.thickness)&&!0===o&&this.signatureFieldPropertyChanged.isThicknessChanged&&(e.thickness=a.thickness),a.name&&this.signatureFieldPropertyChanged.isNameChanged&&!this.pdfViewer.magnificationModule.isFormFieldPageZoomed&&(e.name=this.pdfViewer.enableHtmlSanitizer?t.SanitizeHtmlHelper.sanitize(a.name):a.name),t.isNullOrUndefined(a.isPrint)||!this.signatureFieldPropertyChanged.isPrintChanged||this.pdfViewer.magnificationModule.isFormFieldPageZoomed||(e.isPrint=a.isPrint),!t.isNullOrUndefined(a.customData)&&this.signatureFieldPropertyChanged.isCustomDataChanged&&(e.customData=a
vendor: 11,022 bytes, line 10
10.customData))},a.prototype.updateSignatureSettings=function(e,i){(i=!t.isNullOrUndefined(i)&&i)?(this.initialFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.initialFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.initialFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.initialFieldPropertyChanged.isTooltipChanged=!t.isNullOrUndefined(e.tooltip),this.initialFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.initialFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.initialFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.initialFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)):(this.signatureFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.signatureFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.signatureFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.signatureFieldPropertyChanged.isTooltipChanged=!t.isNullOrUndefined(e.tooltip),this.signatureFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.signatureFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.signatureFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.signatureFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData))},a.prototype.updateTextFieldSettings=function(e){this.textFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.textFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.textFieldPropertyChanged.isValueChanged=!t.isNullOrUndefined(e.value),this.textFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.textFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.textFieldPropertyChanged.isAlignmentChanged=!t.isNullOrUndefined(e.alignment),this.textFieldPropertyChanged.isColorChanged=!t.isNullOrUndefined(e.color),this.textFieldPropertyChanged.isFontFamilyChanged=!t.isNullOrUndefined(e.fontFamily),this.textFieldPropertyChanged.isFontSizeChanged=!t.isNullOrUndefined(e.fontSize),this.textFieldPropertyChanged.isFontStyleChanged=!t.isNullOrUndefined(e.fontStyle),this.textFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.textFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.textFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.textFieldPropertyChanged.isMaxLengthChanged=!t.isNullOrUndefined(e.maxLength),this.textFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.textFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.textFieldPropertyChanged.isMultilineChanged=!t.isNullOrUndefined(e.isMultiline),this.textFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.updatePasswordFieldSettings=function(e){this.passwordFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.passwordFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.passwordFieldPropertyChanged.isValueChanged=!t.isNullOrUndefined(e.value),this.passwordFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.passwordFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.passwordFieldPropertyChanged.isAlignmentChanged=!t.isNullOrUndefined(e.alignment),this.passwordFieldPropertyChanged.isColorChanged=!t.isNullOrUndefined(e.color),this.passwordFieldPropertyChanged.isFontFamilyChanged=!t.isNullOrUndefined(e.fontFamily),this.passwordFieldPropertyChanged.isFontSizeChanged=!t.isNullOrUndefined(e.fontSize),this.passwordFieldPropertyChanged.isFontStyleChanged=!t.isNullOrUndefined(e.fontStyle),this.passwordFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.passwordFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.passwordFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.passwordFieldPropertyChanged.isMaxLengthChanged=!t.isNullOrUndefined(e.maxLength),this.passwordFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.passwordFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.passwordFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.updateCheckBoxFieldSettings=function(e){this.checkBoxFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.checkBoxFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.checkBoxFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.checkBoxFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.checkBoxFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.checkBoxFieldPropertyChanged.isValueChanged=!t.isNullOrUndefined(e.value),this.checkBoxFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.checkBoxFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.checkBoxFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.checkBoxFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.checkBoxFieldPropertyChanged.isCheckedChanged=!t.isNullOrUndefined(e.isChecked),this.checkBoxFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.updateRadioButtonFieldSettings=function(e){this.radioButtonFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.radioButtonFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.radioButtonFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.radioButtonFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.radioButtonFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.radioButtonFieldPropertyChanged.isValueChanged=!t.isNullOrUndefined(e.value),this.radioButtonFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.radioButtonFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.radioButtonFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.radioButtonFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.radioButtonFieldPropertyChanged.isSelectedChanged=!t.isNullOrUndefined(e.isSelected),this.radioButtonFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.updateDropDownFieldSettings=function(e){this.dropdownFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.dropdownFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.dropdownFieldPropertyChanged.isValueChanged=!t.isNullOrUndefined(e.value),this.dropdownFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.dropdownFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.dropdownFieldPropertyChanged.isAlignmentChanged=!t.isNullOrUndefined(e.alignment),this.dropdownFieldPropertyChanged.isColorChanged=!t.isNullOrUndefined(e.color),this.dropdownFieldPropertyChanged.isFontFamilyChanged=!t.isNullOrUndefined(e.fontFamily),this.dropdownFieldPropertyChanged.isFontSizeChanged=!t.isNullOrUndefined(e.fontSize),this.dropdownFieldPropertyChanged.isFontStyleChanged=!t.isNullOrUndefined(e.fontStyle),this.dropdownFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.dropdownFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.dropdownFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.dropdownFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.dropdownFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.dropdownFieldPropertyChanged.isOptionChanged=!t.isNullOrUndefined(e.options),this.dropdownFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.updateListBoxFieldSettings=function(e){this.listBoxFieldPropertyChanged.isReadOnlyChanged=!t.isNullOrUndefined(e.isReadOnly),this.listBoxFieldPropertyChanged.isRequiredChanged=!t.isNullOrUndefined(e.isRequired),this.listBoxFieldPropertyChanged.isBackgroundColorChanged=!t.isNullOrUndefined(e.backgroundColor),this.listBoxFieldPropertyChanged.isBorderColorChanged=!t.isNullOrUndefined(e.borderColor),this.listBoxFieldPropertyChanged.isAlignmentChanged=!t.isNullOrUndefined(e.alignment),this.listBoxFieldPropertyChanged.isColorChanged=!t.isNullOrUndefined(e.color),this.listBoxFieldPropertyChanged.isFontFamilyChanged=!t.isNullOrUndefined(e.fontFamily),this.listBoxFieldPropertyChanged.isFontSizeChanged=!t.isNullOrUndefined(e.fontSize),this.listBoxFieldPropertyChanged.isFontStyleChanged=!t.isNullOrUndefined(e.fontStyle),this.listBoxFieldPropertyChanged.isNameChanged=!t.isNullOrUndefined(e.name),this.listBoxFieldPropertyChanged.isToolTipChanged=!t.isNullOrUndefined(e.tooltip),this.listBoxFieldPropertyChanged.isThicknessChanged=!t.isNullOrUndefined(e.thickness),this.listBoxFieldPropertyChanged.isVisibilityChanged=!t.isNullOrUndefined(e.visibility),this.listBoxFieldPropertyChanged.isPrintChanged=!t.isNullOrUndefined(e.isPrint),this.listBoxFieldPropertyChanged.isOptionChanged=!t.isNullOrUndefined(e.options),this.listBoxFieldPropertyChanged.isCustomDataChanged=!t.isNullOrUndefined(e.customData)},a.prototype.getFontStyleName=function(e,t){var i="None";return 1===e&&(t.font.isBold=!0,i="Bold"),2===e&&(t.font.isItalic=!0,i="Italic"),3===e&&(t.font.isBold=!0,t.font.isItalic=!0,i="Bold Italic"),4===e&&(t.font.isUnderline=!0,i="Underline"),5===e&&(t.font.isBold=!0,t.font.isUnderline=!0,i="Bold Underline"),6===e&&(t.font.isUnderline=!0,t.font.isItalic=!0,i="Underline Italic"),7===e&&(t.font.isBold=!0,t.font.isItalic=!0,t.font.isUnderline=!0,i="Bold Italic Underline"),8===e&&(t.font.isStrikeout=!0,i="Strikethrough"),9===e&&(t.font.isBold=!0,t.font.isStrikeout=!0,i="Bold Strikethrough"),10===e&&(t.font.isItalic=!0,t.font.isStrikeout=!0,i="Italic Strikethrough"),11===e&&(t.font.isBold=!0,t.font.isItalic=!0,t.font.isStrikeout=!0,i="Bold Italic Strikethrough"),12===e&&(t.font.isUnderline=!0,t.font.isStrikeout=!0,i="Underline Strikethrough"),13===e&&(t.font.isBold=!0,t.font.isUnderline=!0,t.font.isStrikeout=!0,i="Bold Underline Strikethrough"),14===e&&(t.font.isItalic=!0,t.font.isUnderline=!0,t.font.isStrikeout=!0,i="Italic Underline Strikethrough"),15===e&&(t.font.isBold=!0,t.font.isItalic=!0,t.font.isUnderline=!0,t.font.isStrikeout=!0,i="Bold Italic Underline Strikethrough"),i},a.prototype.getAlignment=function(e){var t;"left"===e?t="left":"right"===e?t="right":"center"===e&&(t="center"),this.formFieldAlign=t},a.prototype.getFontStyle=function(e){e.isBold
vendor: 28,210 bytes, line 10
10&&(this.formFieldBold="bold"),e.isItalic&&(this.formFieldItalic="italic"),e.isUnderline&&(this.formFieldUnderline="underline"),e.isStrikeout&&(this.formFieldStrikeOut="line-through")},a}(),ao=function(){function e(e,t){this.createTag=function(e){var t=this,i=e.TagType,n=e.ParentTagType,o=e.Text,r=e.AltText,a=e.Bounds,s=e.ChildElements,l=document.createElement(this.getTag(i));return l.style.padding="0px",l.style.margin="0px","Document"!==n&&"Part"!==n&&(l.style.position="absolute"),a&&(this.setStyleToTaggedTextDiv(l,a,e.FontSize,e.FontName,e.FontStyle),this.setTextElementProperties(l)),""!==o.trim()&&(l.innerText=o),"Image"!==i&&"Figure"!==i||(r&&""!==r.trim()&&(l.alt=r),l.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNgYAAAAAMAASsJTYQAAAAASUVORK5CYII="),s&&s.length>0&&s.forEach(function(e){"Table"===i?e.ChildElements&&e.ChildElements.forEach(function(e){l.appendChild(t.createTag(e))}):l.appendChild(t.createTag(e))}),l},this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.addTaggedLayer=function(e){var i;if(this.pdfViewer.enableAccessibilityTags&&this.pdfViewerBase.isTaggedPdf){var n=document.getElementById(this.pdfViewer.element.id+"_pageDiv_"+e);i=document.getElementById(this.pdfViewer.element.id+"_taggedLayer_"+e);var o=document.getElementById(this.pdfViewer.element.id+"_textLayer_"+e);o&&o.setAttribute("aria-hidden","true"),i||(i=t.createElement("div",{id:this.pdfViewer.element.id+"_taggedLayer_"+e,className:"e-pv-tagged-layer e-pv-text-layer"})),i.innerHTML="",i.style.width=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width*this.pdfViewerBase.getZoomFactor()+"px",i.style.height=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height*this.pdfViewerBase.getZoomFactor()+"px",i.style.pointerEvents="none",n&&n.appendChild(i)}return i},e.prototype.renderAccessibilityTags=function(e,i){for(var n=this.addTaggedLayer(e),o=0;o<i.length;o++){var r=t.createElement("div",{id:this.pdfViewer.element.id+"_taggedText_"+e+"_"+parseInt(o.toString(),10),className:"e-pv-text",attrs:{tabindex:"-1"}}),a=i[parseInt(o.toString(),10)].Bounds;"Paragraph"===i[parseInt(parseInt(o.toString(),10).toString(),10)].TagType&&null===i[parseInt(o.toString(),10)].ChildElements&&""===i[parseInt(o.toString(),10)].Text.trim()||(r.appendChild(this.createTag(i[parseInt(o.toString(),10)])),r.style.display="inline",this.setStyleToTaggedTextDiv(r,a,i[parseInt(o.toString(),10)].FontSize,i[parseInt(o.toString(),10)].FontName,i[parseInt(o.toString(),10)].FontStyle),this.setTextElementProperties(r),n.appendChild(r))}},e.prototype.getTag=function(e){switch(e){case"Paragraph":return"p";case"Figure":return"img";case"Article":return"art";case"Annotation":return"annot";case"BibliographyEntry":return"bibentry";case"BlockQuotation":return"blockQuote";case"Caption":return"caption";case"Code":return"code";case"Division":return"div";case"Document":return"document";case"Form":return"form";case"Formula":return"formula";case"Index":return"index";case"Heading":return"h";case"HeadingLevel1":return"h1";case"HeadingLevel2":return"h2";case"HeadingLevel3":return"h3";case"HeadingLevel4":return"h4";case"HeadingLevel5":return"h5";case"HeadingLevel6":return"h6";case"Label":return"label";case"Link":return"a";case"List":return"ul";case"ListItem":return"li";case"ListBody":return"p";case"Note":return"note";case"Part":return"part";case"Quotation":return"quote";case"Reference":return"reference";case"Section":return"sect";case"Span":return"span";case"Table":return"table";case"TableDataCell":return"td";case"TableHeader":return"th";case"TableOfContent":return"toc";case"TableOfContentItem":return"toci";case"TableRow":return"tr";case"Image":return"img";default:return"p"}},e.prototype.setStyleToTaggedTextDiv=function(e,t,i,n,o){var r=this.pdfViewerBase.getZoomFactor();e.style.left=this.pdfViewerBase.ConvertPointToPixel(t.X)*r+"px",e.style.top=this.pdfViewerBase.ConvertPointToPixel(t.Y)*r+"px",e.style.width=this.pdfViewerBase.ConvertPointToPixel(t.Width)*r+"px";var a=this.pdfViewerBase.ConvertPointToPixel(t.Height)*r;e.style.height=a+"px",e.style.fontSize=this.pdfViewerBase.ConvertPointToPixel(i)*r+"px",!n||"Wingdings"!==n&&"Symbol"!==n?n&&(e.style.fontFamily=n):e.style.fontFamily="Verdana",o&&(e.style.fontWeight=o),e.style.color="transparent"},e.prototype.setTextElementProperties=function(e){e.style.transformOrigin="0%"},e.prototype.getModuleName=function(){return"AccessibilityTags"},e.prototype.destroy=function(){return!0},e}(),so=function(){function e(e,t,i,n){this.X=e,this.Y=t,this.Width=i,this.Height=n,this.Location={X:e,Y:t},this.Size={IsEmpty:!1,Width:i,Height:n},this.Left=e,this.Top=t,this.Right=e+i,this.Bottom=t+n}return e}(),lo=function(){function e(e,t){this.shapeAnnotationList=[],this.textMarkupAnnotationList=[],this.measureAnnotationList=[],this.stickyAnnotationList=[],this.rubberStampAnnotationList=[],this.freeTextAnnotationList=[],this.signatureAnnotationList=[],this.signatureInkAnnotationList=[],this.annotationOrder=[],this.hyperlinks=[],this.imageData="",this.isMaskedImage=!1,this.hyperlinkBounds=[],this.annotationDestPage=[],this.annotationList=[],this.annotationYPosition=[],this.digitalSignaturePresent=!1,this.annotationCount=0,this.isAnnotationPresent=!1,this.htmldata=[],this.renderingMode=0,this.textString="",this.baseFont="",this.fontSize=0,this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.exportAnnotationComments=function(e,t){var i=this.pdfViewer.pdfRendererModule.loadedDocument.getPage(parseInt(e.toString(),10)).rotation;return this.getAnnotationFromPDF(t.height,t.width,e,i)},e.prototype.IsStampExist=function(e){switch(e.trim()){case"Approved":case"Not Approved":case"Confidential":case"Draft":case"Final":case"Completed":case"For Public Release":case"Not For Public Release":case"For Comment":case"Void":case"Preliminary Results":case"Information Only":case"Witness":case"Initial Here":case"Sign Here":case"Accepted":case"Rejected":case"Revised":case"Reviewed":case"Received":return!0;default:return!1}},e.prototype.getAnnotationFromPDF=function(e,n,o,r){var a=this.pdfViewer.pdfRendererModule.loadedDocument.getPage(parseInt(o.toString(),10)),s=new Co(this.pdfViewer,this.pdfViewerBase),l=[],A=[];if(this.isAnnotationPresent=!1,null!=a&&(A=this.getAllFreeTextAnnotations(a.annotations),this.annotationCount=0,null!=a.annotations&&a.annotations.count>0)){this.isAnnotationPresent=!0;for(var h=this,p=0;p<a.annotations.count;p++)!function(p){var c=a.annotations.at(p);if(c instanceof d.PdfTextMarkupAnnotation){var g=s.loadTextMarkupAnnotation(c,e,n,r,a);h.textMarkupAnnotationList[h.textMarkupAnnotationList.length]=g,h.annotationOrder[h.annotationOrder.length]=g;var u=h.textMarkupAnnotationList[h.textMarkupAnnotationList.length-1].AnnotName;(t.isNullOrUndefined(u)||""===u)&&(h.textMarkupAnnotationList[h.textMarkupAnnotationList.length-1].AnnotName=h.setAnnotationName(o))}else if(c instanceof d.PdfLineAnnotation){B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);var f=(w=s.loadLineAnnotation(c,e,n,r,B)).AnnotName;(t.isNullOrUndefined(f)||""===f)&&(w.AnnotName=h.setAnnotationName(o)),t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}else if(c instanceof d.PdfSquareAnnotation||c instanceof d.PdfRectangleAnnotation){B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);var m=(w=s.loadSquareAnnotation(c,e,n,r,B)).AnnotName;(t.isNullOrUndefined(m)||""===m)&&(w.AnnotName=h.setAnnotationName(o)),t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}else if(c instanceof d.PdfCircleAnnotation){B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);w=s.loadEllipseAnnotation(c,e,n,r,B);t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}else if(c instanceof d.PdfEllipseAnnotation){B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);var w=s.loadEllipseAnnotation(c,e,n,r,B);t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}else if(c instanceof d.PdfPolygonAnnotation){B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);var C=(w=s.loadPolygonAnnotation(c,e,n,r,B)).AnnotName;(t.isNullOrUndefined(C)||""===C)&&(w.AnnotName=h.setAnnotationName(o)),t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}else if(c instanceof d.PdfPolyLineAnnotation||c instanceof d.PdfAngleMeasurementAnnotation){var B=h.getShapeFreeText(c.name,A);t.isNullOrUndefined(B)||l.push(B.name);var S=(w=s.loadPolylineAnnotation(c,e,n,r,B)).AnnotName;(t.isNullOrUndefined(S)||""===S)&&(w.AnnotName=h.setAnnotationName(o)),t.isNullOrUndefined(w)||(w instanceof Eo?(h.measureAnnotationList[h.measureAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w):w instanceof Io&&(h.shapeAnnotationList[h.shapeAnnotationList.length]=w,h.annotationOrder[h.annotationOrder.length]=w))}if(c instanceof d.PdfRubberStampAnnotation){h.htmldata=[];for(var y=c,I=[],E=0,v=h.pdfViewer.pdfRendererModule.formFieldsBase.PdfRenderedFormFields;E<v.length;E++){var b=v[E];if(b.ActualFieldName===y._dictionary._map.T){I.push(b);break}}if(y._dictionary.has("T")&&h.checkName(y))h.signatureAnnotationList.push(s.loadSignatureImage(y,o));else if(y._dictionary.has("M")||y._dictionary.has("NM")||y._dictionary.has("Name")&&!y._dictionary.has("F")||!y._dictionary.has("NM")&&!y._dictionary.has("T")||t.isNullOrUndefined(I[0])||!h.pdfViewerBase.isSignatureWithInRect(h.pdfViewerBase.canvasRectArray(I[0].LineBounds),h.pdfViewerBase.canvasRectArray(y.bounds))){var V=new Ao;if(V.Author=y.author,V.Subject=y.subject,V.AnnotName=y.name,(""===V.AnnotName||t.isNullOrUndefined(V.AnnotName))&&(V.AnnotName=h.setAnnotationName(o)),c._dictionary.has("rotateAngle")){var D=c._dictionary.get("rotateAngle");void 0!==D&&(V.RotateAngle=90*parseInt(D[0],10))}else{V.RotateAngle=360-(Math.abs(y.rotate)-90*r);var x=V.RotateAngle;V.RotateAngle>=360&&(V.RotateAngle=x-360)}if(V.Rect=h.getBounds(y.bounds,e,n,r),V.Rect.y<0){var Q=new i.Rect(V.Rect.x,a.cropBox[1]+V.Rect.y,V.Rect.width,V.Rect.height);V.Rect=h.getBounds(Q,e,n,r)}V.Icon=y.icon,t.isNullOrUndefined(y.modifiedDate)?V.ModifiedDate=h.formatDate(new Date):V.ModifiedDate=h.formatDate(y.modifiedDate),V.Opacity=y.opacity,V.pageNumber=o;var M=c._dictionary.get("AP");if(h.pdfViewerBase.pngData.push(y),V.IsDynamic=!1,V.AnnotType="stamp",Object.prototype.hasOwnProperty.call(y._dictionary,"iconName")?V.IconName=y.getValues("iconName")[0]:null!==y.subject?V.IconName=y.subject:V.IconName="",t.isNullOrUndefined(y.text)?V.Note="":V.Note=y.text,s.updateIsLockProperty(V,y),!t.isNullOrUndefined(y.reviewHistory))for(var F=0;F<y.reviewHistory.count;F++)V.State=h.getStateString(y.reviewHistory.at(parseInt(F.toString(),10)).state),V.StateModel=h.getStateModelString(y.reviewHistory.at(parseInt(F.toString(),10)).stateModel);null!=V.State&&null!=V.StateModel||(V.State="Unmarked",V.StateModel="None"),V.Comments=new Array;for(var T=0;T<y.comments.count;T++){var k=s.loadPopupAnnotation(y.comments.at(T),e,n,r);V.Comments.push(k)}if(c._dictionary.has("Name")&&(V.Name=c._dictionary.get("Name"),c._dictionary.get("Name").name&&(c._dictionary.get("Name").name.includes("#23D")||c._dictionary.get("Name").name.includes("#D"))&&!c._dictionary.get("Name").name.includes("#Draft")&&(V.IsDynamic=!0)),V.IsMaskedImage=h.isMaskedImage,V.Apperarance=h.htmldata,y._dictionary.has("CustomData")){var P=y._dictionary.get("CustomData");if(!t.isNullOrUndefined(P)&&P.trim()){var N=M.get("CustomData")?M.get("CustomData"):P;N&&(V.CustomData=N)}}if(h.rubberStampAnnotationList.push(V),h.annotationOrder.push(V),t.isNullOrUndefined(M)){var R=c._dictionary.get("AP");if(!t.isNullOrUndefined(R)&&!t.isNullOrUndefined(R.dictionary)&&R.dictionary.has("N")){var L=R.dictionary;t.isNullOrUndefined(L)||(0===(U=c.createTemplate()).size[0]||0===U.size[1]||t.isNullOrUndefined(U._appearance)?h.findStampImage(c):h.findStampTemplate(c,V,r,h.annotationOrder.length-1))}}else if(M.has("N")){var U=c.createTemplate();0===U.size[0]||0===U.size[1]||t.isNullOrUndefined(U._appearance)?h.findStampImage(c):h.findStampTemplate(c,V,r,h.annotationOrder.length-1)}}}if(c instanceof d.PdfPopupAnnotation&&!c._dictionary.has("IRT")){var O=s.loadPopupAnnotation(c,e,n,r);h.stickyAnnotationList[h.stickyAnnotationList.length]=O,h.annotationOrder[h.annotationOrder.length]=O;var z=O.AnnotName;(t.isNullOrUndefined(z)||""===z)&&(O.AnnotName=h.setAnnotationName(o))}if(c instanceof d.PdfFreeTextAnnotation){var H=c;if(h.isFreeTextAnnotationType(H)){var Y=l.some(function(e){return e===H.name}),G=s.loadFreeTextAnnotation(H,e,n,r,a);Y||(h.freeTextAnnotationList[h.freeTextAnnotationList.length]=G,h.annotationOrder[h.annotationOrder.length]=G)}else{G=s.loadSignatureText(H,o,e,n,r);H._dictionary.has("T")||(h.signatureAnnotationList[h.signatureAnnotationList.length]=G,h.annotationOrder[h.annotationOrder.length]=G)}}if(c instanceof d.PdfInkAnnotation){var J=c,j=s.loadSignature(J,e,n,r,o,a),K=s.loadInkAnnotation(J,e,n,r,o,a);if(J._dictionary.has("T")){if(J._dictionary.has("NM"))h.signatureInkAnnotationList.push(K),h.annotationOrder.push(K);else if(J._dictionary.has("T")&&J._dictionary.has("annotationSignature")){!(J.getValues("annotationSignature").length>0)&&(h.signatureAnnotationList.push(j),h.annotationOrder.push(j))}}else h.signatureAnnotationList.push(j),h.annotationOrder.push(j);J._dictionary.has("NM")||J._dictionary.has("annotationSignature")||(h.signatureAnnotationList.push(j),h.annotationOrder.push(j))}}(p)}return{shapeAnnotation:this.shapeAnnotationList,textMarkupAnnotation:this.textMarkupAnnotationList,measureShapeAnnotation:this.measureAnnotationList,stampAnnotations:this.rubberStampAnnotationList,stickyNotesAnnotation:this.stickyAnnotationList,freeTextAnnotation:this.freeTextAnnotationList,signatureAnnotation:this.signatureAnnotationList,signatureInkAnnotation:this.signatureInkAnnotationList,annotationOrder:this.annotationOrder}},e.prototype.formatDate=function(e){return this.datePadding(e.getMonth()+1)+"/"+this.datePadding(e.getDate())+"/"+e.getFullYear()+" "+this.datePadding(e.getHours())+":"+this.datePadding(e.getMinutes())+":"+this.datePadding(e.getSeconds())},e.prototype.datePadding=function(e){return e<10?"0"+e:e.toString()},e.prototype.findStampImage=function(e){var i=e._dictionary.get("AP").get("N");if(!t.isNullOrUndefined(i)){var n=i.getString(),o=d._stringToBytes(n,!0),r=new d._ContentParser(o)._readContent();this.stampAnnoattionRender(r,i)}},e.prototype.findStampTemplate=function(e,t,i,n,o,r,a,s){var l=e.createTemplate();t.template=l._appearance,t.templateSize=l.size;var A=new d.PdfDocument(this.readFromResources()),h=new d.PdfPageSettings;h.margins=new d.PdfMargins(0),h.rotation=i,h.size=[l.size[0]+2.3*e.border.width,l.size[1]+2.3*e.border.width],A.addPage(h).graphics.drawTemplate(l,{x:1,y:1,width:l.size[0],height:l.size[1]}),A.removePage(0);var p="data:application/pdf;base64,"+d._encode(A.save());p=this.pdfViewerBase.checkDocumentData(p,!1);var c=this.pdfViewerBase.convertBase64(p);o?this.pdfViewerBase.pdfViewerRunner.addTask({uploadedFile:c,message:"LoadPageStampCollection",password:null,pageIndex:0,zoomFactor:this.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!1,isZoomMode:!1,AnnotName:t.AnnotName,rubberStampAnnotationPageNumber:t.pageNumber,annotationOrder:JSON.stringify(this.annotationOrder),collectionOrder:n,isFormField:o,formFieldName:r,formFieldList:JSON.stringify(a),rubberStampAnnotation:t,PageIndex:s},Et.High):this.pdfViewerBase.pdfViewerRunner.addTask({uploadedFile:c,message:"LoadPageStampCollection",password:null,pageIndex:0,zoomFactor:this.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!1,isZoomMode:!1,AnnotName:t.AnnotName,rubberStampAnnotationPageNumber:t.pageNumber,annotationOrder:JSON.stringify(this.annotationOrder),collectionOrder:n},Et.High)},e.prototype.initialPagesRendered=function(e){var i=document.createElement("canvas"),n=e.value,o=e.width,r=e.height;i.width=o,i.height=r;var a=i.getContext("2d"),s=a.createImageData(o,r);s.data.set(n),a.putImageData(s,0,0);var l=i.toDataURL();this.pdfViewerBase.releaseCanvas(i);var d={imagedata:l},A=e.annotName,h=[];JSON.parse(e.annotationOrder).length>0?h=JSON.parse(e.annotationOrder):this.pdfViewer.viewerBase.importedAnnotation&&this.pdfViewer.viewerBase.importedAnnotation[e.rubberStampAnnotationPageNumber]&&(h=this.pdfViewer.viewerBase.importedAnnotation[e.rubberStampAnnotationPageNumber].annotationOrder);var p,c,g=h.find(function(e){return A===e.AnnotName});if(g){t.isNullOrUndefined(g.Apperarance)||(g.Apperarance=[]),g.Apperarance.push(d),p=Fi.sessionStorageManager.getItem(this.pdfViewerBase.documentId+"_annotations_stamp"),this.pdfViewerBase.isStorageExceed&&(p=this.pdfViewerBase.annotationStorage[this.pdfViewerBase.documentId+"_annotations_stamp"]);var u=!0;if(p&&(c=JSON.parse(p)).length>0)for(var f=0;f<c.length;f++)for(var m=0;m<c[parseInt(f.toString(),10)].annotations.length;m++)c[parseInt(f.toString(),10)].annotations[parseInt(m.toString(),10)].annotName===g.AnnotName&&(u=!1);u&&this.pdfViewer.annotationModule.stampAnnotationModule.renderStampAnnotImage(g,0,null,null,!0,!0,e.collectionOrder)}this.Imagedata=l},e.prototype.readFromResources=function(){return"JVBERi0xLjUNCiWDkvr+DQo0IDAgb2JqDQo8PA0KL1R5cGUgL0NhdGFsb2cNCi9QYWdlcyA1IDAgUg0KL0Fjcm9Gb3JtIDYgMCBSDQo+Pg0KZW5kb2JqDQoxIDAgb2JqDQo8PA0KL0ZpbHRlciAvRmxhdGVEZWNvZGUNCi9MZW5ndGggMTINCj4+DQpzdHJlYW0NCnheUyhU4AIAAiEAvA0KZW5kc3RyZWFtDQplbmRvYmoNCjIgMCBvYmoNCjw8DQovRmlsdGVyIC9GbGF0ZURlY29kZQ0KL0xlbmd0aCAxMg0KPj4NCnN0cmVhbQ0KeF5TCFTgAgABwQCcDQplbmRzdHJlYW0NCmVuZG9iag0KMyAwIG9iag0KPDwNCi9GaWx0ZXIgL0ZsYXRlRGVjb2RlDQovTGVuZ3RoIDEzNQ0KPj4NCnN0cmVhbQ0KeF5tjs0KwjAQhO8L+w578diYSlu9+wSC4DnUbRvIT0324ttrogiih2UYlm9mbggbOi4mzExjbGK62mCEKd+zsCeJ5HiSrcRVIbRKa1Lv+5hDtytCo69Zzq7kTZptyE+k0+XXvKRv++r2QyUSIywIFwoFPCcTsivdvzv+dn9F1/YTwgN6hTPqDQplbmRzdHJlYW0NCmVuZG9iag0KOSAwIG9iag0KPDwNCi9GaXJzdCAyNg0KL04gNA0KL1R5cGUgL09ialN0bQ0KL0ZpbHRlciAvRmxhdGVEZWNvZGUNCi9MZW5ndGggMTk2DQo+Pg0Kc3RyZWFtDQp4Xm1PTQuCQBC9L+x/mF+Qu34H4qHCSwRi3cTDYkMI4YauUP++WcVM6rA784b35r0JQHAWgpQ+ZxFIL+QsBlcIzpKEM+fyeiA4ubphT+jYXHsoIxBQVAT3emgNSOoK7PXQ1dhDkqQpZzQ64bVRO/2EciME2BdsA1ti36Vi9YU2yqANMGlGx6zBu3WpVtPF6l+ieE6Uqw6JF1i80i+qhRVNLNrdGsK0R9oJuOPvzTu/b7PiTtdnNFA6+SH7hPy55Q19a1EBDQplbmRzdHJlYW0NCmVuZG9iag0KMTAgMCBvYmoNCjw8DQovUm9vdCA0IDAgUg0KL0luZGV4IFswIDExXQ0KL1NpemUgMTENCi9UeXBlIC9YUmVmDQovVyBbMSAyIDFdDQovRmlsdGVyIC9GbGF0ZURlY29kZQ0KL0xlbmd0aCA0NA0KPj4NCnN0cmVhbQ0KeF4Vw0ENACAMALG77cVzBvCFUEShAkaTAlcWstFCimD89uipB3PyAFuGA3QNCmVuZHN0cmVhbQ0KZW5kb2JqDQoNCnN0YXJ0eHJlZg0KNzk4DQolJUVPRg0KJVBERi0xLjUNCiWDkvr+DQoxMSAwIG9iag0KPDwNCi9GaXJzdCA1DQovTiAxDQovVHlwZSAvT2JqU3RtDQovRmlsdGVyIC9GbGF0ZURlY29kZQ0KL0xlbmd0aCA3MQ0KPj4NCnN0cmVhbQ0KeF4zVzDg5bKx4eXSd84vzStRMOTl0g+pLEhV0A9ITE8tBvK8M1OKFaItFAwUgmKB3IDEolSgOlMQn5fLzo6Xi5cLAEOtEAkNCmVuZHN0cmVhbQ0KZW5kb2JqDQoxMiAwIG9iag0KPDwNCi9Sb290IDQgMCBSDQovSW5kZXggWzAgMSA3IDEgMTEgMl0NCi9TaXplIDEzDQovVHlwZSAvWFJlZg0KL1cgWzEgMiAxXQ0KL1ByZXYgNzk4DQovTGVuZ3RoIDI0DQovRmlsdGVyIC9GbGF0ZURlY29kZQ0KPj4NCnN0cmVhbQ0KeF5jYGD4z8TAzcDIwsLAyLKbAQAPSwHWDQplbmRzdHJlYW0NCmVuZG9iag0KDQpzdGFydHhyZWYNCjEyMTENCiUlRU9GDQo="},e.prototype.getPageRotation=function(e){return 0===e.rotate?0:90===e.rotate?1:180===e.rotate?2:270===e.rotate?3:0},e.prototype.stampAnnoattionRender=function(e,i){if(!t.isNullOrUndefined(e))for(var n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)]._operands;switch(e[parseInt(n.toString(),10)]._operator){case"q":m={restorecanvas:!1};this.htmldata.push(m);break;case"Q":m={restorecanvas:!0};this.htmldata.push(m);break;case"Tr":this.renderingMode=parseInt(o[0],10);break;case"TJ":case"Tj":case"'":this.textString=e[parseInt(n.toString(),10)]._operands[0];m={type:"string",text:this.textString,currentFontname:this.currentFont,baseFontName:this.baseFont,fontSize:this.fontSize};this.htmldata.push(m);break;case"Tf":var r=0;for(r=0;r<o.length;r++)if(o[parseInt(r.toString(),10)].includes("/")){this.currentFont=o[parseInt(r.toString(),10)].replace("/","");break}if(this.fontSize=parseInt(o[r+1],10),i.dictionary.has("Resources")){h=i.dictionary.get("Resources");if(!t.isNullOrUndefined(h)){var a=h.get("Font");if(!t.isNullOrUndefined(a)&&"Tf"===e[parseInt(n.toString(),10)]._operator){var s=o[0].replace("/",""),l=a.get(s);if(!t.isNullOrUndefined(l)&&!t.isNullOrUndefined(l.dictionary)){var A=l.dictionary;this.baseFont=A.get("BaseFont")}}}}break;case"Do":if(i.dictionary.has("Resources")){var h=i.dictionary.get("Resources");if(!t.isNullOrUndefined(h)){var p=h.get("XObject");if(!t.isNullOrUndefined(p)&&"Do"===e[parseInt(n.toString(),10)]._operator){var c=o[0].replace("/","");if(p.has(c)){l=p.get(c);if(!t.isNullOrUndefined(l)&&!t.isNullOrUndefined(l.dictionary)){if("Image"===(A=l).dictionary.get("Subtype").name){var g=new zo(A,A.dictionary);if(!t.isNullOrUndefined(g)){var u=g.getImageStream(),f="data:image/png;base64,"+d._encode(u),m={imagedata:f};this.htmldata.push(m),this.Imagedata=f}}else if("Form"===A.dictionary.get("Subtype").name){var w=A.getString(),C=d._stringToBytes(w,!0),B=new d._ContentParser(C)._readContent();this.stampAnnoattionRender(B,A)}this.IsMaskedImage=!1,A.dictionary.get("SMask")&&(this.IsMaskedImage=!0)}}}}}}}},e.prototype.getStateModelString=function(e){switch(e){case d.PdfAnnotationStateModel.review:return"Review";case d.PdfAnnotationStateModel.marked:return"Marked";case d.PdfAnnotationStateModel.none:default:return"None"}},e.prototype.getStateString=function(e){switch(e){case d.PdfAnnotationState.accepted:return"Accepted";case d.PdfAnnotationState.rejected:return"Rejected";case d.PdfAnnotationState.cancel:return"Cancelled";case d.PdfAnnotationState.completed:return"Completed";case d.PdfAnnotationState.none:return"None";case d.PdfAnnotationState.unmarked:return"Unmarked";case d.PdfAnnotationState.marked:return"Marked";case d.PdfAnnotationState.unknown:return"Unknown";default:return null}},e.prototype.getBounds=function(e,t,n,o){var r;return 0===o?r=new i.Rect(e.x,e.y,e.width,e.height):1===o?r=new i.Rect(this.convertPixelToPoint(n-this.convertPointToPixel(e.y)-this.convertPointToPixel(e.height)),e.x,e.height,e.width):2===o?r=new i.Rect(this.convertPixelToPoint(n-this.convertPointToPixel(e.x)-this.convertPointToPixel(e.width)),this.convertPixelToPoint(t-this.convertPointToPixel(e.y)-this.convertPointToPixel(e.height)),e.width,e.height):3===o&&(r=new i.Rect(e.y,this.convertPixelToPoint(t-this.convertPointToPixel(e.x)-this.convertPointToPixel(e.width)),e.height,e.width)),r},e.prototype.destroy=function(){this.shapeAnnotationList=null,this.textMarkupAnnotationList=null,this.measureAnnotationList=null,this.stickyAnnotationList=null,this.rubberStampAnnotationList=null,this.freeTextAnnotationList=null,this.signatureAnnotationList=null,this.signatureInkAnnotationList=null,this.annotationOrder=null,this.hyperlinks=null,this.imageData=null,this.isMaskedImage=null,this.hyperlinkBounds=null,this.annotationDestPage=null,this.annotationList=null,this.annotationYPosition=null,this.digitalSignaturePresent=null,this.annotationCount=null,this.isAnnotationPresent=null,this.htmldata=null,this.renderingMode=null,this.textString=null,this.currentFont=null,this.baseFont=null,this.fontSize=null,this.Imagedata=null,this.IsMaskedImage=null},e.prototype.getRubberStampBounds=function(e,n,o,r,a){var s=new i.Rect,l=0,d=0;if(0===a)l=n.x+n.width/2,d=n.y+n.height/2,s=new i.Rect(l-e.width/2,d-e.height/2,e.width,e.height);else if(1===a){var A=this.convertPixelToPoint(r-this.convertPointToPixel(t.isNullOrUndefined(n.Y)?n.y:n.Y)-this.convertPointToPixel(n.height)),h=t.isNullOrUndefined(n.X)?n.x:n.X;l=A+n.height/2,d=h+n.width/2,s=new i.Rect(l-e.width/2,d-e.height/2,e.width,e.height)}else if(2===a){var A=this.convertPixelToPoint(r-this.convertPointToPixel(t.isNullOrUndefined(n.X)?n.x:n.X)-this.convertPointToPixel(n.width)),h=this.convertPixelToPoint(o-this.convertPointToPixel(t.isNullOrUndefined(n.Y)?n.y:n.Y)-this.convertPointToPixel(n.height));l=A+n.width/2,d=h+n.height/2,s=new i.Rect(l-e.width/2,d-e.height/2,e.width,e.height)}else if(3===a){var A=t.isNullOrUndefined(n.Y)?n.y:n.Y,h=this.convertPixelToPoint(o-this.convertPointToPixel(t.isNullOrUndefined(n.X)?n.x:n.X)-this.convertPointToPixel(n.width));l=A+n.height/2,d=h+n.width/2,s=new i.Rect(l-e.width/2,d-e.height/2,e.width,e.height)}return s},e.prototype.convertPixelToPoint=function(e){return 72*e/96},e.prototype.convertPointToPixel=function(e){return 96*e/72},e.prototype.getRotateAngleString=function(e){switch(e){case d.PdfRotationAngle.angle0:return"RotateAngle0";case d.PdfRotationAngle.angle90:return"RotateAngle90";case d.PdfRotationAngle.angle180:return"RotateAngle180";case d.PdfRotationAngle.angle270:return"RotateAngle270";default:return"RotateAngle0"}},e.prototype.checkName=function(e){if("Name"in e._dictionary){var i=e.getValues("Name");if(!t.isNullOrUndefined(i)&&i.indexOf("#")>-1)return!0}return!1},e.prototype.getAllFreeTextAnnotations=function(e){for(var t=[],i=0;i<e.count;i++){var n=e.at(i);n instanceof d.PdfFreeTextAnnotation&&t.push(n)}return t},e.prototype.getShapeFreeText=function(e,i){return t.isNullOrUndefined(e)||""===e?null:i.find(function(t){return void 0!=t.name&&t.name.includes(e)})},e.prototype.setAnnotationName=function(e){var t=e+this.annotationCount.toString();return this.annotationCount++,t},e.prototype.isFreeTextAnnotationType=function(e){var i=!0;if(e._dictionary.has("AnnotationType")){var n=e.getValues("AnnotationType");t.isNullOrUndefined(n)||"Signature"!==n[0]||(i=!1)}return i},e}(),Ao=function(){function e(){}return e}(),ho=function(){function n(e,t){this.bookmarkStyles=[],this.bookmarkCollection=[],this.pageRotationCollection=[],this.bookmarkDictionary={},this.annotationDetailCollection={},this.documentTextCollection=[],this.pageSizes={},this.isCompletePageSizeNotReceieved=!0,this.x=0,this.y=0,this.zoom=1,this.id=0,this.pageIndex=0,this.textCollections=[],this.scaleFactor=1.5,this.restrictionList=[],this.securityList=["Print","EditContent","CopyContent","EditAnnotations","FillFields","AccessibilityCopyContent","AssembleDocument","FullQualityPrint"],this._fallbackFontCollection={},this.document=null,this.searchResults={},this.isDummyInserted=!1,this.pdfViewer=e,this.pdfViewerBase=t}return Object.defineProperty(n.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ReferencePath",{get:function(){return this.mReferencePath},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"referencePath",{set:function(e){this.mReferencePath=e},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"ScaleFactor",{get:function(){return this.scaleFactor},set:function(e){this.scaleFactor=e,this.scaleFactor<=0&&(this.scaleFactor=1)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"FallbackFontCollection",{get:function(){return this._fallbackFontCollection},set:function(e){this._fallbackFontCollection=e},enumerable:!0,configurable:!0}),n.prototype.load=function(e,t,i,n){try{"VirtualLoad"!==n.action&&(this.loadedDocument=new d.PdfDocument(e,i||""),this.loadedByteArray=e,this.password=i,this.isCompletePageSizeNotReceieved=!0)}catch(e){return"Invalid PDF structure."===e.message?"3":"Cannot open an encrypted document. The password is invali
10d."===e.message?"4":"Invalid cross reference"===e.message?"4":e.message}var o=this.loadDocument(e,t,i,n);return this.bookmarkStyles=[],this.bookmarkCollection=[],this.bookmarkDictionary={},JSON.stringify(o)},n.prototype.loadImportDocument=function(e,t,i,n){try{"VirtualLoad"!==n.action&&(this.loadImportedDocument=new d.PdfDocument(e,i||""),this.loadImportedBase64String=e,this.importedDocpassword=i)}catch(e){return"Invalid PDF structure."===e.message?"3":"Cannot open an encrypted document. The password is invalid."===e.message?"4":"Invalid cross reference"===e.message?"4":e.message}var o={uniqueId:t,password:this.importedDocpassword};return this.loadImportedDocument.destroy(),this.loadImportedDocument=null,JSON.stringify(o)},n.prototype.loadDocument=function(e,i,n,o){Object.prototype.hasOwnProperty.call(o,"isCompletePageSizeNotReceived")&&(this.isCompletePageSizeNotReceieved=!o.isCompletePageSizeNotReceived),this.pageCount=this.loadedDocument.pageCount,this.pageSizes=this.getPageSizes(this.pageCount);var r=[];return this.formFieldsBase=new mo(this.pdfViewer,this.pdfViewerBase,!1),this.restrictionList=[],t.isNullOrUndefined(this.loadedDocument)||this.documentSecurity(n),t.isNullOrUndefined(this.loadedDocument)||(Object.prototype.hasOwnProperty.call(o,"hideEmptyDigitalSignatureFields")&&(this.formFieldsBase.hideEmptyDigitalSignatureFields=o.hideEmptyDigitalSignatureFields),Object.prototype.hasOwnProperty.call(o,"showDigitalSignatureAppearance")&&(this.formFieldsBase.showDigitalSignatureAppearance=o.showDigitalSignatureAppearance)),!t.isNullOrUndefined(this.formFieldsBase)&&this.pageSizes&&Object.keys(this.pageSizes).length<=100&&(this.formFieldsBase.GetFormFields(),r=this.formFieldsBase.PdfRenderedFormFields),{pageCount:this.pageCount,pageSizes:this.pageSizes,uniqueId:i,PdfRenderedFormFields:r,RestrictionSummary:this.restrictionList,isDigitalSignaturePresent:this.formFieldsBase.mIsDigitalSignaturePresent,digitialSignatureFile:!!this.digitialByteArray,isTaggedPdf:!1,pageRotation:this.pageRotationCollection}},n.prototype.documentSecurity=function(e){var i=this.loadedDocument.isEncrypted&&(!this.loadedDocument.isUserPassword||this.loadedDocument._hasUserPasswordOnly);!t.isNullOrUndefined(e)&&""!==e&&i?this.restrictionSummary(e,!0):this.restrictionSummary(e,!1)},n.prototype.restrictionSummary=function(e,t){var i=e||"",n=e||"",o=this.getPermissionArray(this.loadedDocument.permissions),r=this.loadedDocument.isEncrypted;if(1!==o.length||"Default"!==o[0]||r&&""===i&&""===n)for(l=0;l<this.securityList.length;l++){for(var a=!1,s=0;s<o.length;s++)if(o[parseInt(s.toString(),10)].trim()===this.securityList[parseInt(l.toString(),10)].trim()){a=!0;break}a||t||this.restrictionList.push(this.securityList[parseInt(l.toString(),10)].trim())}else if(1===o.length&&"Default"===o[0]&&r&&!t)for(var l=0;l<this.securityList.length;l++)this.restrictionList.push(this.securityList[parseInt(l.toString(),10)].trim())},n.prototype.getPermissionArray=function(e){var t=[];return e===d.PdfPermissionFlag.default?t.push("Default"):(e&d.PdfPermissionFlag.fullQualityPrint&&t.push("FullQualityPrint"),e&d.PdfPermissionFlag.assembleDocument&&t.push("AssembleDocument"),e&d.PdfPermissionFlag.accessibilityCopyContent&&t.push("AccessibilityCopyContent"),e&d.PdfPermissionFlag.fillFields&&t.push("FillFields"),e&d.PdfPermissionFlag.editAnnotations&&t.push("EditAnnotations"),e&d.PdfPermissionFlag.copyContent&&t.push("CopyContent"),e&d.PdfPermissionFlag.editContent&&t.push("EditContent"),e&d.PdfPermissionFlag.print&&t.push("Print")),t},n.prototype.getPageSizes=function(e){var t={},i=e;if(e>100&&(i=100),this.isCompletePageSizeNotReceieved)for(n=0;n<i;n++){t[n.toString()]=this.getPageSize(n);r=(o=this.loadedDocument.getPage(n)).rotation%4;this.pageRotationCollection.push(r)}else for(var n=i;n<e;n++){t[n.toString()]=this.getPageSize(n);var o=this.loadedDocument.getPage(n),r=o.rotation%4;this.pageRotationCollection.push(r)}return t},n.prototype.getPageSize=function(e){var t=new i.Size;if(e>=0&&e<this.loadedDocument.pageCount){var n=this.loadedDocument.getPage(e),o=n.size,r=n.rotation%4;t=r===d.PdfRotationAngle.angle0||r===d.PdfRotationAngle.angle180?new i.Size(this.convertPointToPixel(o[0]),this.convertPointToPixel(o[1])):new i.Size(this.convertPointToPixel(o[1]),this.convertPointToPixel(o[0]))}return t},n.prototype.convertPointToPixel=function(e){return 96*e/72},n.prototype.convertPixelToPoint=function(e){return.75*e},n.prototype.getDocumentAsBase64=function(e){this.loadedDocument=new d.PdfDocument(this.loadedByteArray,this.password);var i=null;if(Object.prototype.hasOwnProperty.call(e,"digitalSignatureDocumentEdited")&&!e.digitalSignatureDocumentEdited||Object.prototype.hasOwnProperty.call(e,"isPdfEdited")&&!e.isPdfEdited)return this.loadedByteArray;var n=new Co(this.pdfViewer,this.pdfViewerBase),o=new mo(this.pdfViewer,this.pdfViewerBase);if(n.removeSignatureTypeAnnot(e,this.loadedDocument),this.orderAnnotations(e),Object.prototype.hasOwnProperty.call(e,"isFormFieldAnnotationsExist")&&e.isFormFieldAnnotationsExist&&(Object.prototype.hasOwnProperty.call(e,"formDesigner")&&!t.isNullOrUndefined(e.formDesigner)?o.saveFormFieldsDesignerData(e):Object.prototype.hasOwnProperty.call(e,"fieldsData")&&o.saveFormFieldsData(e)),Ob
vendor: 11,944 bytes, line 10
10ject.prototype.hasOwnProperty.call(e,"organizePages")){var r=this.loadedDocument.save();i=new d.PdfDocument(r,this.password);var a=JSON.parse(e.organizePages);if(a.length>0){var s=this.rearrangePages(a);this.deletePdfPages(a,s),this.insertPdfPages(a),this.copyPages(a,i),this.rotatePages(a),this.importPages(a),this.isDummyInserted&&(this.loadedDocument.removePage(this.loadedDocument.pageCount-1),this.isDummyInserted=!1)}i.destroy(),i=null}var l=this.loadedDocument.save();return null!=this.document&&(this.document.destroy(),this.document=null),l},n.prototype.rearrangePages=function(e){var t=this,i=[];if(e.length>0){for(var n=JSON.parse(JSON.stringify(e)).sort(function(e,i){return t.pdfViewer.pageOrganizer.sorting(e.currentPageIndex,i.currentPageIndex)}),o=0;o<n.length;o++){var r=n[parseInt(o.toString(),10)];!r.isInserted&&!r.isCopied&&!r.isImportedDoc&&null!==r.currentPageIndex&&null!==r.pageIndex&&parseInt(r.pageIndex.toString(),10)>=0&&i.push(parseInt(r.pageIndex.toString(),10))}for(var a=n.filter(function(e){return e.isDeleted&&null===e.currentPageIndex}),o=0;o<a.length;o++){var s=a[parseInt(o.toString(),10)];i=i.slice(0,s.pageIndex).concat([s.pageIndex],i.slice(s.pageIndex))}i.length>0&&this.loadedDocument.reorderPages(i)}return i},n.prototype.rotatePages=function(e){if(e.length>0)for(var i=0,n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)].pageIndex,r=e[parseInt(n.toString(),10)].currentPageIndex,a=e[parseInt(n.toString(),10)].isDeleted,s=e[parseInt(n.toString(),10)].isInserted,l=e[parseInt(n.toString(),10)].isCopied,d=e[parseInt(n.toString(),10)].isImportedDoc,A=e[parseInt(n.toString(),10)].rotateAngle;d&&i++,t.isNullOrUndefined(r)||t.isNullOrUndefined(A)||a||s||l||d||-1===o||(this.loadedDocument.getPage(r-i).rotation=this.getPdfRotationAngle(A))}},n.prototype.insertPdfPages=function(e){if(e.length>0)for(var i=0,n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)].pageIndex,r=e[parseInt(n.toString(),10)].currentPageIndex,a=e[parseInt(n.toString(),10)].isDeleted,s=e[parseInt(n.toString(),10)].isInserted,l=e[parseInt(n.toString(),10)].isCopied,A=e[parseInt(n.toString(),10)].isImportedDoc,h=void 0;if(t.isNullOrUndefined(e[parseInt(n.toString(),10)].pageSize)||(h=[this.convertPixelToPoint(e[parseInt(n.toString(),10)].pageSize.width),this.convertPixelToPoint(e[parseInt(n.toString(),10)].pageSize.height)]),(l||A)&&i++,!t.isNullOrUndefined(r)&&!a&&s&&-1===o){var p=e[parseInt(n.toString(),10)].rotateAngle,c=new d.PdfPageSettings;c.rotation=this.getPdfRotationAngle(p),t.isNullOrUndefined(h)||(c.size=h),this.loadedDocument.addPage(r-i,c)}}},n.prototype.copyPages=function(e,i){if(e.length>0)for(var n=0,o=0;o<e.length;o++){var r=e[parseInt(o.toString(),10)].pageIndex,a=e[parseInt(o.toString(),10)].currentPageIndex,s=e[parseInt(o.toString(),10)].copiedPageIndex,l=e[parseInt(o.toString(),10)].isDeleted,A=e[parseInt(o.toString(),10)].isInserted,h=e[parseInt(o.toString(),10)].isCopied,p=e[parseInt(o.toString(),10)].isImportedDoc,c=e[parseInt(o.toString(),10)].rotateAngle;if(p&&n++,!t.isNullOrUndefined(a)&&!l&&!A&&!p&&h&&-1===r){var g=i.getPage(s);g.rotation=this.getPdfRotationAngle(c);var u=new d.PdfPageImportOptions;u.targetIndex=a-n,u.groupFormFields=!0,this.loadedDocument.importPage(g,i,u)}}},n.prototype.importPages=function(e){if(e.length>0)for(var i=e.length-1;i>=0;i--){var n=e[parseInt(i.toString(),10)].pageIndex,o=e[parseInt(i.toString(),10)].currentPageIndex,r=e[parseInt(i.toString(),10)].isDeleted,a=e[parseInt(i.toString(),10)].isInserted,s=e[parseInt(i.toString(),10)].isCopied,l=e[parseInt(i.toString(),10)].isImportedDoc,A=e[parseInt(i.toString(),10)].documentData,h=e[parseInt(i.toString(),10)].password;if(!t.isNullOrUndefined(o)&&!r&&!a&&!s&&l&&-1===n){for(var p=0,c=0;c<i;c++)e[parseInt(c.toString(),10)].isImportedDoc&&p++;A=this.pdfViewerBase.convertBase64(A),this.document=null,this.document=new d.PdfDocument(A,h);var g=new d.PdfPageImportOptions;g.targetIndex=o-p,g.groupFormFields=!0,this.loadedDocument.importPageRange(this.document,0,this.document.pageCount-1,g)}}},n.prototype.deletePdfPages=function(e,i){if(e.length>0){for(var n=JSON.parse(JSON.stringify(e)),o=[],r=0,a=this.loadedDocument.pageCount,s=0;s<n.length;s++)!function(e){n.find(function(t){return t.pageIndex===i[parseInt(e.toString(),10)]})&&(o[parseInt(e.toString(),10)]=n.find(function(t){return t.pageIndex===i[parseInt(e.toString(),10)]}))}(s);for(s=o.length-1;s>=0;s--){var l=0,d=o[parseInt(s.toString(),10)].pageIndex,A=o[parseInt(s.toString(),10)].isDeleted;if(!t.isNullOrUndefined(d)&&A){r+1===a&&(this.loadedDocument.addPage(),this.isDummyInserted=!0);for(var h=s-1;h>=0;h--)s!==o[parseInt(s.toString(),10)].pageIndex&&l++;l>o[parseInt(s.toString(),10)].pageIndex?(l-=o[parseInt(s.toString(),10)].pageIndex,this.loadedDocument.removePage(d+l)):this.loadedDocument.removePage(d),r++}}}},n.prototype.getPdfRotationAngle=function(e){switch(e){case 0:return d.PdfRotationAngle.angle0;case 90:return d.PdfRotationAngle.angle90;case 180:return d.PdfRotationAngle.angle180;case 270:return d.PdfRotationAngle.angle270;default:return d.PdfRotationAngle.angle0}},n.prototype.importAnnotations=function(e){try{var t=new Co(this.pdfViewer,this.pdfViewerBase),i=e.importedData;t.removeSignatureTypeAnnot(e,this.loadedDocument);var n=e.annotationDataFormat;if("string"==typeof n){switch(this.loadedDocument._allowImportCustomData=!0,n.toLowerCase()){case"json":this.loadedDocument.importAnnotations(i,d.DataFormat.json);break;case"xfdf":this.loadedDocument.importAnnotations(i,d.DataFormat.xfdf)}for(var o=0;o<this.loadedDocument.pageCount;o++){var r=o,a=this.getPageSize(r),s=new lo(this.pdfViewer,this.pdfViewerBase);s.exportAnnotationComments(r,a),this.annotationDetailCollection[o.toString()]=new uo,this.annotationDetailCollection[parseInt(o.toString(),10)].textMarkupAnnotation=s.textMarkupAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].shapeAnnotation=s.shapeAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].measureShapeAnnotation=s.measureAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].stampAnnotations=s.rubberStampAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].stickyNotesAnnotation=s.stickyAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].freeTextAnnotation=s.freeTextAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].signatureAnnotation=s.signatureAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].signatureInkAnnotation=s.signatureInkAnnotationList,this.annotationDetailCollection[parseInt(o.toString(),10)].annotationOrder=s.annotationOrder,this.removeAnnotationsFromCollection(s)}var l=JSON.parse(JSON.stringify(this.annotationDetailCollection));return Object.prototype.hasOwnProperty.call(e,"uniqueId")?{pdfAnnotation:l,uniqueId:e.uniqueId}:{pdfAnnotation:l}}}catch(e){return e.message}},n.prototype.removeAnnotationsFromCollection=function(e){e.textMarkupAnnotationList=[],e.shapeAnnotationList=[],e.measureAnnotationList=[],e.rubberStampAnnotationList=[],e.stickyAnnotationList=[],e.freeTextAnnotationList=[],e.signatureAnnotationList=[],e.signatureInkAnnotationList=[],e.annotationOrder=[]},n.prototype.exportAnnotation=function(e,t){new Co(this.pdfViewer,this.pdfViewerBase).removeSignatureTypeAnnot(e,this.loadedDocument),this.orderAnnotations(e);var i=new d.PdfAnnotationExportSettings,n=e.annotationDataFormat;if("string"==typeof n)switch(n.toLowerCase()){case"json":return i.dataFormat=d.DataFormat.json,t?(i.exportAppearance=t,this.loadedDocument.exportAnnotations(i)):(this.changeFileExtension(this.pdfViewer.fileName,"json"),this.loadedDocument.exportAnnotations(i));case"xfdf":return i.dataFormat=d.DataFormat.xfdf,t?(i.exportAppearance=t,this.loadedDocument.exportAnnotations(i)):(this.changeFileExtension(this.pdfViewer.fileName,"xfdf"),this.loadedDocument.exportAnnotations(i))}return null},n.prototype.changeFileExtension=function(e,t){var i=e.lastIndexOf(".");return-1===i?e+"."+t:e.slice(0,i)+"."+t},n.prototype.orderAnnotations=function(e){var i=new Co(this.pdfViewer,this.pdfViewerBase),n=new Ro(this.pdfViewer,this.pdfViewerBase);if(Object.prototype.hasOwnProperty.call(e,"isAnnotationsExist")&&e.isAnnotationsExist&&Object.prototype.hasOwnProperty.call(e,"annotationCollection")){for(var o=JSON.parse(e.annotationCollection),r=o.length,a=this,s=0;s<r;s++)!function(n){var r=o[parseInt(n.toString(),10)].shapeAnnotationType,s=o[parseInt(n.toString(),10)];switch(!Object.prototype.hasOwnProperty.call(s,"calibrate")||"Circle"!==s.shapeAnnotationType&&"Line"!==s.shapeAnnotationType&&"Polygon"!==s.shapeAnnotationType&&"Polyline"!==s.shapeAnnotationType?Object.prototype.hasOwnProperty.call(s,"calibrate")||"Line"!==s.shapeAnnotationType&&"Circle"!==s.shapeAnnotationType&&"Polygon"!==s.shapeAnnotationType&&"Square"!==s.shapeAnnotationType&&"Polyline"!==s.shapeAnnotationType||(r="shapeAnnotation"):r="measureShapes",r){case"textMarkup":if(Object.prototype.hasOwnProperty.call(e,"textMarkupAnnotations")){var l=JSON.parse(e.textMarkupAnnotations),d=s.pageNumber.toString(),A=(p=w=l[parseInt(d,10)]).find(function(e){return e.annotName.toString()===s.annotationId.toString()});A&&(s=A,i.addTextMarkup(s,a.loadedDocument))}break;case"shapeAnnotation":if(Object.prototype.hasOwnProperty.call(e,"shapeAnnotations")){var h=JSON.parse(e.shapeAnnotations),d=s.pageNumber.toString(),p=w=h[parseInt(d,10)],c=a.loadedDocument.getPage(parseInt(d,10));(f=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()}))&&(s=f,i.addShape(s,c))}break;case"stamp":if(Object.prototype.hasOwnProperty.call(e,"stampAnnotations")){var g=JSON.parse(e.stampAnnotations),d=s.pageNumber.toString(),p=w=g[parseInt(d,10)],c=a.loadedDocument.getPage(parseInt(d,10)),u=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()});u&&(s=u,i.addCustomStampAnnotation(s,c))}break;case"measureShapes":if(Object.prototype.hasOwnProperty.call(e,"measureShapeAnnotations")){var h=JSON.parse(e.measureShapeAnnotations),d=s.pageNumber.toString(),p=w=h[parseInt(d,10)],c=a.loadedDocument.getPage(parseInt(d,10));(f=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()}))&&(s=f,i.addMeasure(s,c))}break;case"sticky":if(Object.prototype.hasOwnProperty.call(e,"stickyNotesAnnotation")){var h=JSON.parse(e.stickyNotesAnnotation),d=s.pageNumber.toString(),p=w=h[parseInt(d,10)],c=a.loadedDocument.getPage(parseInt(d,10));(f=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()}))&&(s=f,i.addStickyNotes(s,c))}break;case"Ink":if(Object.prototype.hasOwnProperty.call(e,"inkSignatureData")){var h=JSON.parse(e.inkSignatureData),d=s.pageNumber.toString(),p=w=h[parseInt(d,10)],c=a.loadedDocument.getPage(parseInt(d,10)),f=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()});f&&(s=f,i.saveInkSignature(s,c))}break;case"FreeText":if(Object.prototype.hasOwnProperty.call(e,"freeTextAnnotation")){var m=JSON.parse(e.freeTextAnnotation),d=s.pageNumber.toString(),w=m[parseInt(d,10)],p=w,c=a.loadedDocument.getPage(parseInt(d,10)),C=p.find(function(e){return e.annotName.toString()===s.annotationId.toString()});t.isNullOrUndefined(C)||(s=C,t.isNullOrUndefined(a.FallbackFontCollection)||0===Object.keys(a.FallbackFontCollection).length?i.addFreeText(s,c):i.addFreeText(s,c,a.FallbackFontCollection))}}}(s);e.signatureData&&(e.isSignatureEdited?n.saveSignatureAsAnnotatation(e,this.loadedDocument):n.saveSignatureData(e,this.loadedDocument))}},n.prototype.getAnnotationComments=function(e){try{if(Object.prototype.hasOwnProperty.call(e,"pageStartIndex")&&!t.isNullOrUndefined(e.pageStartIndex)){for(var i=parseInt(e.pageStartIndex,10),n=parseInt(e.pageEndIndex,10),o={},r=i;r<n;r++){var a=r,s=this.getPageSize(a);this.renderer=new lo(this.pdfViewer,this.pdfViewerBase),o[a.toString()]=this.renderer.exportAnnotationComments(a,s)}
10return{uniqueId:e.uniqueId,annotationDetails:o,startPageIndex:i,endPageIndex:n,isAnnotationPresent:this.renderer.isAnnotationPresent}}return""}catch(e){return e.message}},n.prototype.getBookmarks=function(e){try{var i=this.loadedDocument.bookmarks;if(!t.isNullOrUndefined(i)&&Object.prototype.hasOwnProperty.call(e,"bookmarkStyles"))for(n=0;n<i.count;n++)this.retrieveFontStyles(i.at(n),!1);if(t.isNullOrUndefined(i)||t.isNullOrUndefined(i.count)||0===i.count)return null;for(var n=0;n<i.count;n++){var o=i.at(n),r=new Uo,a=o.destination?o.destination:o.namedDestination&&o.namedDestination.destination?o.namedDestination.destination:null;r.X=t.isNullOrUndefined(a)?0:a.location[0],r.PageIndex=t.isNullOrUndefined(a)?0:a.pageIndex,r.Zoom=t.isNullOrUndefined(a)?0:a.zoom;var s=new Lo;s.Id=++this.id,s.Title=o.title,s.Child=[],s.FileName=t.isNullOrUndefined(o.action)?"":o.action.toString(),t.isNullOrUndefined(a)?r.Y=0:a.page.rotation===d.PdfRotationAngle.angle90?r.Y=this.convertPointToPixel(a.page.size[0])-this.convertPointToPixel(Math.abs(a.location[1])):a.page.rotation===d.PdfRotationAngle.angle270?r.Y=this.convertPointToPixel(Math.abs(a.location[1])):r.Y=this.convertPointToPixel(a.page.size[1])-this.convertPointToPixel(Math.abs(a.location[1])),this.bookmarkDictionary[this.id.toString()]=r,s.Child=this.getChildrenBookmark(o),s.Child.length>0&&(s.HasChild=!0),this.bookmarkCollection.push(s)}return Object.prototype.hasOwnProperty.call(e,"uniqueId")?{Bookmarks:JSON.parse(JSON.stringify(this.bookmarkCollection)),BookmarksDestination:JSON.parse(JSON.stringify(this.bookmarkDictionary)),uniqueId:e.uniqueId.toString(),Bookmarkstyles:JSON.parse(JSON.stringify(this.bookmarkStyles))}:{Bookmarks:JSON.parse(JSON.stringify(this.bookmarkCollection)),BookmarksDestination:JSON.parse(JSON.stringify(this.bookmarkDictionary)),Bookmarkstyles:JSON.parse(JSON.stringify(this.bookmarkStyles))}}catch(e){return e.message}},n.prototype.retrieveFontStyles=function(e,i){var n=e,o=new Oo;t.isNullOrUndefined(n)||(t.isNullOrUndefined(n.color)||(o.Color="rgba("+n.color[0]+","+n.color[1]+","+n.color[2]+",1)"),o.FontStyle=this.getPdfTextStyleString(n.textStyle),o.Text=n.title,o.IsChild=i,this.bookmarkStyles.push(o),this.getChildrenStyles(e))},n.prototype.getPdfTextStyleString=function(e){switch(e){case d.PdfTextStyle.bold:return"Bold";case d.PdfTextStyle.italic:return"Italic";case d.PdfTextStyle.regular:default:return"Regular"}},n.prototype.getChildrenStyles=function(e){for(var t=0;t<e.count;t++)this.retrieveFontStyles(e.at(t),!0)},n.prototype.getChildrenBookmark=function(e){var i=[];if(!t.isNullOrUndefined(e)&&!t.isNullOrUndefined(e.count)&&e.count>0)for(var n=0;n<e.count;n++){var o=e.at(n),r=o.destination?o.destination:o.namedDestination&&o.namedDestination.destination?o.namedDestination.destination:null;this.id++;var a=o.title;this.pageIndex=t.isNullOrUndefined(r)?0:r.pageIndex,this.x=t.isNullOrUndefined(r)?0:r.location[0];var s=t.isNullOrUndefined(r)?0:Math.abs(r.location[1]);t.isNullOrUndefined(r)||t.isNullOrUndefined(r.page)?(this.y=0,this.zoom=0):(r.page.rotation===d.PdfRotationAngle.angle90?this.y=this.convertPointToPixel(r.page.size[0])-this.convertPointToPixel(s):r.page.rotation===d.PdfRotationAngle.angle270?this.y=this.convertPointToPixel(s):this.y=this.convertPointToPixel(r.page.size[1])-this.convertPointToPixel(s),this.zoom=r.zoom);var l=new Lo;l.Title=a,l.Id=this.id,l.Child=[],l.FileName=t.isNullOrUndefined(o.action)?"":o.action.toString();var A=new Uo;A.X=this.x,A.Y=this.y,A.PageIndex=this.pageIndex,A.Zoom=this.zoom,this.bookmarkDictionary[this.id.toString()]=A,i.push(l),l.Child=this.getChildrenBookmark(o),l.Child.length>0&&(l.HasChild=!0)}return i},n.prototype.getHyperlinks=function(e){return t.isNullOrUndefined(this.renderer)&&(this.renderer=new lo(this.pdfViewer,this.pdfViewerBase)),t.isNullOrUndefined(this.renderer.hyperlinks)&&(this.renderer.hyperlinks=[]),this.exportHyperlinks(e,this.getPageSize(e),!1,!0),{hyperlinks:this.renderer.hyperlinks,hyperlinkBounds:this.renderer.hyperlinkBounds,linkAnnotation:this.renderer.annotationList,linkPage:this.renderer.annotationDestPage,annotationLocation:this.renderer.annotationYPosition}}
vendor: 14,105 bytes, line 10
10,n.prototype.exportHyperlinks=function(e,i,n,o){if(e>=0&&e<this.loadedDocument.pageCount){var r=this.loadedDocument.getPage(e);this.renderer.hyperlinks=[],this.renderer.hyperlinkBounds=[],this.renderer.annotationDestPage=[],this.renderer.annotationList=[],this.renderer.annotationYPosition=[];for(var a=0;a<r.annotations.count;a++)if(r.annotations.at(a)instanceof d.PdfUriAnnotation){var s=r.annotations.at(a),l=this.getHyperlinkBounds(s.bounds,i,r.rotation);t.isNullOrUndefined(this.renderer.hyperlinks)&&(this.renderer.hyperlinks=[],this.renderer.hyperlinkBounds=[]),this.renderer.hyperlinks.push(s.uri),this.renderer.hyperlinkBounds.push(l)}else if(r.annotations.at(a)instanceof d.PdfTextWebLinkAnnotation){var A=r.annotations.at(a),l=this.getHyperlinkBounds(A.bounds,i,r.rotation);t.isNullOrUndefined(this.renderer.hyperlinks)&&(this.renderer.hyperlinks=[],this.renderer.hyperlinkBounds=[]),this.renderer.hyperlinks.push(A.url),this.renderer.hyperlinkBounds.push(l)}else if(r.annotations.at(a)instanceof d.PdfDocumentLinkAnnotation){var h=r.annotations.at(a),l=this.getHyperlinkBounds(h.bounds,i,r.rotation);if(t.isNullOrUndefined(this.renderer.annotationDestPage)&&(this.renderer.annotationDestPage=[],this.renderer.annotationList=[],this.renderer.annotationYPosition=[]),!t.isNullOrUndefined(h.destination)){var p=t.isNullOrUndefined(h.destination.pageIndex)?0:h.destination.pageIndex;this.renderer.annotationDestPage.push(p),this.renderer.annotationList.push(l),r.rotation===d.PdfRotationAngle.angle180?this.renderer.annotationYPosition.push(this.convertPointToPixel(Math.abs(h.destination.location[1]))):r.rotation===d.PdfRotationAngle.angle90||r.rotation===d.PdfRotationAngle.angle270?this.renderer.annotationYPosition.push(i.width-this.convertPointToPixel(Math.abs(h.destination.location[1]))):this.renderer.annotationYPosition.push(i.height-this.convertPointToPixel(Math.abs(h.destination.location[1])))}}}},n.prototype.getHyperlinkBounds=function(e,t,i){var n;return i===d.PdfRotationAngle.angle0?n=new Fo(this.convertPointToPixel(e.x),this.convertPointToPixel(e.y),this.convertPointToPixel(e.width),this.convertPointToPixel(e.height)):i===d.PdfRotationAngle.angle90?n=new Fo(t.width-this.convertPointToPixel(e.y-e.height),this.convertPointToPixel(e.x),this.convertPointToPixel(e.height),this.convertPointToPixel(e.width)):i===d.PdfRotationAngle.angle180?n=new Fo(t.width-this.convertPointToPixel(e.x-e.width),t.height-this.convertPointToPixel(e.y-e.height),this.convertPointToPixel(e.width),this.convertPointToPixel(e.height)):i===d.PdfRotationAngle.angle270&&(n=new Fo(this.convertPointToPixel(e.y),t.height-this.convertPointToPixel(e.x-e.width),this.convertPointToPixel(e.height),this.convertPointToPixel(e.width))),n},n.prototype.exportFormFields=function(e,t){var i=new mo(this.pdfViewer,this.pdfViewerBase);i.saveFormFieldsData(e),i.saveFormFieldsDesignerData(e),Object.prototype.hasOwnProperty.call(e,"fileName")||(e.fileName="undefined.pdf"),this.loadedDocument.form.exportEmptyFields=!0;var n=d.DataFormat.json;Object.prototype.hasOwnProperty.call(e,"formFieldDataFormat")&&(n=this.exportDataFormat(e.formFieldDataFormat));var o=new d.PdfFormFieldExportSettings;return o.dataFormat=n,t?this.loadedDocument.exportFormData(o):(this.changeFileExtension(this.pdfViewer.fileName,this.fileFormat(n)),this.loadedDocument.exportFormData(o))},n.prototype.importFormFields=function(e){try{var t=new mo(this.pdfViewer,this.pdfViewerBase);t.saveFormFieldsDesignerData(e);var i=this.exportDataFormat(e.formFieldDataFormat);if(!this.isBase64(e.data)&&!this.isUint8Array(e.data)){"Json"===e.formFieldDataFormat&&(e.data=JSON.parse(e.data));var n=(new TextEncoder).encode(e.data);e.data=new Uint8Array(n)}Object.prototype.hasOwnProperty.call(e,"formFieldDataFormat")&&this.loadedDocument.importFormData(e.data,i),(t=new mo(this.pdfViewer,this.pdfViewerBase)).GetFormFields();var o=[];return o=t.PdfRenderedFormFields,{PdfRenderedFormFields:o}}catch(e){return null}},n.prototype.isUint8Array=function(e){return e instanceof Uint8Array},n.prototype.isBase64=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},n.prototype.exportDataFormat=function(e){var t;switch(e){case"Json":t=d.DataFormat.json;break;case"Xfdf":t=d.DataFormat.xfdf;break;case"Fdf":t=d.DataFormat.fdf;break;case"Xml":t=d.DataFormat.xml}return t},n.prototype.fileFormat=function(e){var t;switch(e){case 0:t="fdf";break;case 1:t="xfdf";break;case 2:t="json";break;case 3:t="xml"}return t},n.prototype.exportAsImage=function(e){var t=this;return new Promise(function(i,n){i(t.pdfiumExportAsImage(e))})},n.prototype.exportAsImages=function(e,t){var i=this;return new Promise(function(n,o){n(i.pdfiumExportAsImages(e,t))})},n.prototype.exportAsImagewithSize=function(e,t){var i=this;return new Promise(function(n,o){n(i.pdfiumExportAsImage(e,t))})},n.prototype.exportAsImagesWithSize=function(e,t,i){var n=this;return new Promise(function(o,r){o(n.pdfiumExportAsImages(e,t,i))})},n.prototype.pdfiumExportAsImage=function(e,i){var n=this,o=this;return new Promise(function(r,a){t.isNullOrUndefined(n.pdfViewerBase.pdfViewerRunner)||t.isNullOrUndefined(n.loadedDocument)?r(null):(i=t.isNullOrUndefined(i)?null:i,n.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:e,message:"extractImage",zoomFactor:n.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!1,size:i},Et.Medium),n.pdfViewerBase.pdfViewerRunner.onMessage("imageExtracted",function(e){if("imageExtracted"===e.data.message){var t=document.createElement("canvas"),i=e.data,n=i.value,a=i.width,s=i.height;t.width=a,t.height=s;var l=t.getContext("2d"),d=l.createImageData(a,s);d.data.set(n),l.putImageData(d,0,0);var A=t.toDataURL();o.pdfViewerBase.releaseCanvas(t),r(A)}}))})},n.prototype.pdfiumExportAsImages=function(e,i,n){var o=this,r=this;return new Promise(function(a,s){if(t.isNullOrUndefined(o.pdfViewerBase.pdfViewerRunner)||t.isNullOrUndefined(o.loadedDocument))a(null);else{e<0&&(e=0),i>o.loadedDocument.pageCount-1&&(i=o.loadedDocument.pageCount-1),e>i&&s("Invalid page index"),n=t.isNullOrUndefined(n)?null:n;for(var l=[],d=i-e+1,A=e;A<=i;A++)o.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:A,message:"extractImages",zoomFactor:o.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!1,size:n},Et.Medium);o.pdfViewerBase.pdfViewerRunner.onMessage("imagesExtracted",function(e){if("imagesExtracted"===e.data.message){var t=document.createElement("canvas"),i=e.data,n=i.value,o=i.width,s=i.height;t.width=o,t.height=s;var A=t.getContext("2d"),h=A.createImageData(o,s);h.data.set(n),A.putImageData(h,0,0);var p=t.toDataURL();r.pdfViewerBase.releaseCanvas(t),l.push(p),l.length===d&&a(l)}})}})},n.prototype.textExtractionOnmessage=function(i,n,o){var r="",a=[];if(-1!==i.data.message.indexOf("extractText")||"renderThumbnail"===i.data.message||"renderPreviewTileImage"===i.data.message){for(var s=i.data.characterBounds,l=0;l<s.length;l++){i.data.isLayout||-1===s[parseInt(l.toString(),10)].Text.indexOf("\r")?r+=s[parseInt(l.toString(),10)].Text:r+="";var d=this.loadedDocument.getPage(i.data.pageIndex).cropBox,A=new Fo(this.convertPixelToPoint(s[parseInt(l.toString(),10)].X),this.convertPixelToPoint(s[parseInt(l.toString(),10)].Y+d[1]),this.convertPixelToPoint(s[parseInt(l.toString(),10)].Width),this.convertPixelToPoint(s[parseInt(l.toString(),10)].Height));a.push(new po(s[parseInt(l.toString(),10)].Text,A))}if(i.data.isAPI){if(-1!==i.data.message.indexOf("extractText")){r=i.data.pageText;h=function(){return i.data.options===e.ExtractTextOption.BoundsOnly?{textData:a}:i.data.options===e.ExtractTextOption.TextOnly?{pageText:r}:{textData:a,pageText:r}};this.textCollections.push(h()),1===o?(n(h()),this.textCollections=[]):this.textCollections.length===o&&(n(this.textCollections),this.textCollections=[])}}else{var h={};i.data.isRenderText?(h.extractedTextDetails={textDataCollection:a,extractedText:r},h.textBounds=i.data.textBounds,h.textContent=i.data.textContent,h.rotation=i.data.rotation,h.pageText=i.data.pageText,h.characterBounds=i.data.characterBounds,h.isRenderText=i.data.isRenderText,h.pageIndex=i.data.pageIndex,h.jsonObject=i.data.jsonObject,h.requestType=i.data.requestType,h.annotationObject=i.data.annotationObject,h.isNeedToRender=i.data.isNeedToRender):h={textDataCollection:a,extractedText:r,isRenderText:i.data.isRenderText,pageIndex:i.data.pageIndex,jsonObject:i.data.jsonObject,requestType:i.data.requestType,annotationObject:i.data.annotationObject,isNeedToRender:i.data.isNeedToRender};var p=this.getPageTextDataCollection(h),c=this.getDocumentTextCollection(p);t.isNullOrUndefined(c)||("pageTextRequest"===c.requestType?this.pdfViewerBase.pageTextRequestSuccess(c,c.pageIndex):"textRequest"===c.requestType?this.pdfViewerBase.textRequestSuccess(c,c.pageIndex,c.annotationObject):"pdfTextSearchRequest"===c.requestType&&this.pdfViewer.textSearchModule.pdfTextSearchRequestSuccess(c,c.pageStartIndex,c.pageEndIndex))}}},n.prototype.extractsText=function(e,t,i,n){var o=this;return new Promise(function(r,a){r(o.textExtraction(e,t,i,!0,n))})},n.prototype.extractTextFromCharacterDetails=function(t,i,n,o,r){var a="",s=[];if(t.length>0)for(var l=0,d=t;l<d.length;l++){var A=d[l],h=A.Text;if(o!==e.ExtractTextOption.BoundsOnly&&(n||-1===h.indexOf("\r")?a+=h:a+=""),o!==e.ExtractTextOption.TextOnly){var p=new Fo(this.convertPointToPixel(A.X?A.X:A.Bounds.X),this.convertPointToPixel((A.Y?A.Y:A.Bounds.Y)+i[1]),this.convertPointToPixel(A.Width?A.Width:A.Bounds.Width),this.convertPointToPixel(A.Height?A.Height:A.Bounds.Height));s.push(new po(h,p))}}return r&&(a=r),o===e.ExtractTextOption.BoundsOnly?{textData:s}:o===e.ExtractTextOption.TextOnly?{pageText:a}:{textData:s,pageText:a}},n.prototype.textExtraction=function(i,n,o,r,a,s,l,d,A){var h=this,p=!r&&(this.pdfViewer.extractTextOption===e.ExtractTextOption.None||this.pdfViewer.extractTextOption===e.ExtractTextOption.TextOnly);return r||(this.documentTextCollection=[]),new Promise(function(c,g){if(t.isNullOrUndefined(h.pdfViewerBase.pdfViewerRunner))return void c(null);var u=(n=Math.min(n,h.pdfViewer.pageCount-1))-i+1,f=function(e){return h.pdfViewer.textSearch.documentTextCollection[parseInt(e.toString(),10)]?h.pdfViewer.textSearch.documentTextCollection[parseInt(e.toString(),10)][parseInt(e.toString(),10)]:null},m="extractText";if(r&&(m="extractText_"+Vi.createGUID()),!r&&h.pdfViewer.extractTextOption!==e.ExtractTextOption.None||r)for(var w=i;w<=n;w++)!function(i,n){var g=f(i);if(t.isNullOrUndefined(g)||!t.isNullOrUndefined(g)&&((o===e.ExtractTextOption.BoundsOnly||o===e.ExtractTextOption.TextAndBounds)&&!t.isNullOrUndefined(g.TextData)&&0===g.TextData.length||t.isNullOrUndefined(g.TextData))||o===e.ExtractTextOption.TextOnly&&!t.isNullOrUndefined(g.PageText)&&""===g.PageText||t.isNullOrUndefined(g.PageText))h.pdfViewerBase.pdfViewerRunner.addTask({pageIndex:i,message:n,zoomFactor:h.pdfViewer.magnificationModule.zoomFactor,isTextNeed:!0,isLayout:a,isSkipCharacterBounds:p,options:o,isRenderText:s,jsonObject:l,requestType:d,annotationObject:A,isAPI:r},r?Et.Medium:Et.Low),h.pdfViewerBase.pdfViewerRunner.onMessage(n,function(e){-1!==e.data.message.indexOf("extractText")&&h.textExtractionOnmessage(e,c,u)});else{var m=h.loadedDocument.getPage(i).cropBox,w=h.extractTextFromCharacterDetails(g.TextData,m,a,o,g.PageText);h.textCollections.push(w),1===u?(c(w),h.textCollections=[]):h.textCollections.length===u&&(c(h.textCollections),h.textCollections=[])}}(w,m)})},n.prototype.getCharacterBounds=function(e){var t=this.pdfViewer.textSearchModule.documentTextCollection[parseInt(e.toString(),10)][parseInt(e.toString(),10)];return t.textData||t.TextData},n.prototype.getPageTextDataCollection=function(e){var i={};if(t.isNullOrUndefined(e))return null;var n=e;return e.isRenderText&&((n=e.extractedTextDetails).extractedText=e.pageText),i[e.pageIndex]=new co(new go(this.getPageSize(e.pageIndex).width,this.getPageSize(e.pageIndex).height),n.textDataCollection,n.extractedText),e.isRenderText?{pageTextDataCollection:i,textBounds:e.textBounds,textContent:e.textContent,rotation:e.rotation,characterBounds:e.characterBounds,jsonObject:e.jsonObject,requestType:e.requestType,pageIndex:e.pageIndex,annotationObject:e.annotationObject,isNeedToRender:e.isNeedToRender}:i},n.prototype.getDocumentTextCollection=function(e){var i=t.isNullOrUndefined(e.jsonObject.pageStartIndex)?e.jsonObject.pageIndex:e.jsonObject.pageStartIndex,n=t.isNullOrUndefined(e.jsonObject.pageEndIndex)?e.jsonObject.pageIndex+1:e.jsonObject.pageEndIndex,o=this.loadedDocument.pageCount,r=t.isNullOrUndefined(e.jsonObject.pageStartIndex)?o:n-i;return t.isNullOrUndefined(e)?null:(this.documentTextCollection.push(e.pageTextDataCollection),this.documentTextCollection.length===r?{uniqueId:e.jsonObject.uniqueId,documentTextCollection:this.documentTextCollection,pageStartIndex:i,pageEndIndex:t.isNullOrUndefined(e.jsonObject.pageEndIndex)?o:n,textBounds:e.textBounds,textContent:e.textContent,rotation:e.rotation,characterBounds:e.characterBounds,requestType:e.requestType,pageIndex:e.pageIndex,annotationObject:e.annotationObject,isNeedToRender:e.isNeedToRender}:void 0)},n.prototype.extractTextWithPageSize=function(e){var t=this;return new Promise(function(i,n){i(t.extractTextDetailsWithPageSize(e))})},n.prototype.extractTextDetailsWithPageSize=function(e,t,i,n,o){this.textExtraction(e,e,null,!1,!0,t,i,n,o)},n.prototype.getDocumentText=function(i,n,o){var r=t.isNullOrUndefined(i.pageStartIndex)?i.pageIndex:i.pageStartIndex,a=t.isNullOrUndefined(i.pageEndIndex)?i.pageIndex+1:i.pageEndIndex;this.loadedDocument.pageCount;if(this.pdfViewer.extractTextOption!==e.ExtractTextOption.None)for(var s=r;s<a;s++)this.extractTextDetailsWithPageSize(s,!0,i,n,o);else this.pdfViewer.fireTextExtractionCompleted([])},n.IsLinuxOS=!1,n.IsWindowsOS=!1,n}(),po=function(){function e(e,t){this.Text=e,this.Bounds=t}return e}(),co=function(){function e(e,t,i){this.PageSize=e,this.TextData=t,this.PageText=i}return e}(),go=function(){function e(e,t){this.IsEmpty=!0,this.Width=e,this.Height=t,this.IsEmpty=!1}return e}(),uo=function(){function e(){}return e}(),fo=
vendor: 16,734 bytes, line 10
10"AAEAAAAXAQAABABwRFNJRyQ9+ecABX+MAAAafEdERUZeI11yAAV1GAAAAKZHU1VC1fDdzAAFdcAAAAmqSlNURm0qaQYABX9sAAAAHkxUU0iAZfo8AAAceAAABo5PUy8yDN8yawAAAfgAAABWUENMVP17PkMABXTgAAAANlZETVhQkmr1AAAjCAAAEZRjbWFw50BqOgAA0cQAABdqY3Z0IJYq0nYAAPqgAAAGMGZwZ23MeVmaAADpMAAABm5nYXNwABgACQAFdNAAAAAQZ2x5Zg73j+wAARr8AAPnYmhkbXi+u8OXAAA0nAAAnShoZWFkzpgmkgAAAXwAAAA2aGhlYRIzEv8AAAG0AAAAJGhtdHgONFhAAAACUAAAGihrZXJuN2E5NgAFAmAAABVgbG9jYQ5haTIAAQDQAAAaLG1heHALRwyoAAAB2AAAACBuYW1lwPJlOwAFF8AAABsNcG9zdI/p134ABTLQAABB/3ByZXBS/sTpAADvoAAACv8AAQAAAAMAAObouupfDzz1CBsIAAAAAACi4ycqAAAAALnVtPb6r/1nEAAIDAAAAAkAAQABAAAAAAABAAAHPv5OAEMQAPqv/iYQAAABAAAAAAAAAAAAAAAAAAAGigABAAAGigEAAD8AdgAHAAIAEAAvAFYAAAQNCv8AAwACAAEDiAGQAAUAAAWaBTMAAAEbBZoFMwAAA9EAZgISCAUCCwYEAgICAgIEAAB6h4AAAAAAAAAIAAAAAE1vbm8AQAAg//wF0/5RATMHPgGyQAAB////AAAAAAYAAQAAAAAAAjkAAAI5AAACOQCwAtcAXgRzABUEcwBJBx0AdwVWAFgBhwBaAqoAfAKqAHwDHQBABKwAcgI5AKoCqgBBAjkAugI5AAAEcwBVBH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BAQEBAQEBAQEBAQErKxERKysRESsrEREBAQEBAQEBATIyIwEBAQEBAR0BAQEdAQEBHQEBAR0BAQEdATIyMjIJAQEjCQEBIwEBAQEBAQEBAQEBAQkBASMJAQEjCQEBIwkBASMJAQEjAQEBAQEBAQEBAQEBAQEBAQEBLCwBAQEBAQEsLAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEsLAEBAQEsLAEBCQkJCQEBAQEBAQEBBQEBAQEBAQEyAQEBAQEBASsrEREBAQEBIwEBAQEBASwoLCwsLCwJAfcBFMIjASMBIwEjASMBIwEjAQEBIwEAAAAAAAMAAwEBAQEBBQMDAQIBAQAYBewLwAD4CP8ACAAI//4ACQAJ//0ACgAK//0ACwAL//0ADAAM//0ADQAN//0ADgAN//0ADwAO//0AEAAP//0AEQAP//wAEgAR//wAEwAS//wAFAAT//wAFQAT//sAFgAU//sAFwAV//sAGAAV//oAGQAX//sAGgAZ//oAGwAa//oAHAAa//oAHQAb//oAHgAc//kAHwAc//kAIAAd//kAIQAf//kAIgAg//kAIwAg//gAJAAh//gAJQAi//gAJgAi//cAJwAj//cAKAAk//cAKQAm//cAKgAm//cAKwAn//YALAAo//YALQAo//YALgAq//YALwAr//YAMAAt//YAMQAt//UAMgAu//UAMwAv//UANAAw//QANQAw//QANgAx//QANwAz//QAOAA0//MAOQA0//MAOgA1//MAOwA1//MAPAA2//MAPQA3//MAPgA4//MAPwA5//IAQAA6//IAQQA7//IAQgA8//IAQwA8//EARAA9//EARQA+//EARgA///AARwBA//AASABB//AASQBC//AASgBC//AASwBD//AATABE//AATQBG/+8ATgBG/+8ATwBH/+8AUABI/+8AUQBJ/+4AUgBJ/+4AUwBK/+4AVABL/+0AVQBN/+0AVgBN/+0AVwBO/+0AWABP/+wAWQBQ/+wAWgBQ/+0AWwBR/+wAXABT/+wAXQBU/+wAXgBU/+wAXwBV/+sAYABW/+sAYQBX/+sAYgBX/+oAYwBZ/+oAZABa/+oAZQBb/+oAZgBc/+k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4AAMdwAADH4gAAyDwAAMm0AADLIAAAzAAAAMwyAADMzgAAzfIAANBoAADQogAA0OYAANEiAADRhAAA0cYAANIMAADSWAAA0ooAANLeAADTHAAA00wAANOKAADT0AAA1BIAANRQAADU0gAA1UAAANYmAADWYgAA1uIAANcWAADXuAAA2EAAANisAADZOAAA2aQAANqQAADbggAA27YAANvqAADcGgAA3F4AANzWAADeUAAA4GoAAOCcAADg1gAA4dAAAONeAADjlAAA5PgAAOV0AADmVAAA50oAAOjaAADqRAAA7DIAAO0uAADtdAAA7agAAO3qAADuJAAA7ngAAO7AAADvCgAA7zoAAO9qAADxUgAA8ZAAAPHKAADx+gAA8i4AAPJeAADyigAA8tIAAPSIAAD2AgAA9i4AAPZwAAD2tAAA9uQAAPcUAAD3agAA+EgAAPlaAAD5ngAA+dQAAPouAAD6bAAA+qAAAPrQAAD7DAAA+0wAAPuKAAD7xgAA/AgAAPw+AAD8egAA/LoAAP3IAAD/NAAA/4QAAQDgAAEBNgABAWoAAQG4AAECBAABAkYAAQJ+AAECtAABAvwAAQOeAAEFOgABBwIAAQiEAAEKdgABC8gAAQ1MAAEOLgABD8gAARAyAAEQWgABEPgAARN6AAETugABE/oAARQ6AAEUeAABFNYAARU0AAEVogABFcIAARasAAEXTAABF4IAARfQAAEYGgABGGQAARiAAAEYnAABGLwAARjcAAEY/AABGRwAARlCAAEZaAABGY4AARm0AAEZ5AABGgwAARo0AAEaYAABGowAARrAAAEa6gABGxYAARtMAAEbdgABG6IAARvYAAEcAgABHCwAARxgAAEckAABHMQAAR0IAAEdOAABHWwAAR2uAAEd4gABHhQAAR5WAAEeigABHroAAR78AAEfQAABH4YAAR/iAAEf/gABIBoAASA2AAEgUgABIG4AASHcAAEkrAABJxwAASc4AAEnUgABJ24AASeKAAEnpgABJ8IAASgeAAEoWAABKMIAASmMAAEqLAABKwIAASuCAAEsCgABLHoAAS0QAAEtbgABLbQAAS4SAAEudAABLywAAS/qAAEwFgABMHIAATC2AAEyIgABMxYAATN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AAJNBAACTuYAAlAqAAJRWAACUYIAAlGsAAJR1gACUgAAAlIqAAJSVAACUn4AAlKoAAJS0gACUvwAAlMmAAJTUAACU3oAAlOkAAJTzgACU/gAAlY0AAJXsAACWPQAAlrcAAJcJAACXE4AAlx4AAJcqAACXNgAAl0oAAJdeAACXbgAAl4qAAJefgACXtwAAl8yAAJfaAACX6oAAl/wAAJgOgACYGoAAmCiAAJg0gACYgoAAmVQAAJlegACZaQAAmXOAAJl+AACZiIAAmZMAAJmdgACZqAAAmbKAAJm9AACZx4AAmdIAAJncgACZ5wAAmfGAAJn8AACaBoAAmhEAAJobgACaJgAAmjCAAJo7AACaRYAAmlAAAJpagACaZQAAmm+AAJp6AACaoYAAmqcAAJqxgACbaYAAm22AAJu0AACb/IAAnEwAAJycgACdBgAAnQoAAJ1agACdroAAniqAAJ6fgACe5YAAnumAAJ8KAACfLYAAn22AAJ9xgACfmYAAn52AAJ/jAACgN4AAoIOAAKCHgACguwAAoL8AAKEcgAChIIAAoWWAAKFpgAChtoAAohwAAKJLAACiTwAAoo6AAKLlAACjCAAAowwAAKNWgACjuYAAo+iAAKPsgACkE4AApBeAAKRLAACkTwAApIUAAKSJAACkywAApM8AAKVAgAClRIAApZqAAKWegACmOQAApj0AAKa7gACmv4AApxoAAKceAACnWgAAp14AAKfEAACnyAAAqA+AAKgTgACoY4AAqGeAAKhrgACob4AAqM2AAKjRgACo1YAAqNmAAKkuAACpgYAAqbUAAKnuAACqTgAAqq6AAKrugACrM4AAq4SAAKuIgACrxAAAq/qAAKxhgACsZYAArK0AAKzugACtbgAArXIAAK12AACtegAArcyAAK3QgACt/oAArgKAAK5GAACuSgAAroUAAK6JAACu0IAArtSAAK78AACvAAAArwQAAK8/gACvnIAAr+eAALAmAACwKgAAsC4AALAyAACwmYAAsQgAALE7gACxP4AAsdeAALJpAACzCoAAs6OAALREgAC04QAAtVUAALXCgAC1zQAAtdeAALXbgAC134AAteoAALX0gAC1/wAAtgMAALYHAAC2EYAAthwAAL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AAMZlAADGfQAAxo2AAMaggADGrwAAxr4AAMbMgADG24AAxuiAAMb1AADHAQAAxw0AAMcXgADHIQAAxyuAAMc3AADHQYAAx1SAAMdlgADHcwAAx4IAAMePAADHmoAAx6oAAMe2AADHxIAAx88AAMfagADH5AAAx+2AAMf4gADID4AAyBuAAMgngADIM4AAyEGAAMhOgADIWgAAyGYAAMhyAADIfgAAyIoAAMiXAADIrIAAyLmAAMjRgADI3oAAyPSAAMkBgADJGIAAyUAAAMlzgADJu4AAye2AAMoRgADKNwAAyrIAAMsxAADLjwAAy+4AAMxYgADMxQAAzP8AAM1MgADNioAAzc8AAM4WgADOZAAAzr6AAM8aAADPf4AAz96AANAigADQJoAA0HGAANDAgADREQAA0XIAANGogADRxgAA0fOAANIdAADSeQAA0ocAANKlgADS1gAA0wSAANMegADTYAAA062AANPhAADUOIAA1FcAANR1gADUp4AA1NYAANUDAADVGgAA1TCAANVCgADVXoAA1X2AANWQAADVnoAA1bAAANXBAADV1YAA1eoAANYKgADWKwAA1juAANZLgADWWQAA1maAANZyAADWfYAA1oqAANaXgADWqAAA1riAANbHgADW1oAA1uUAANbzgADXAAAA1wyAANcZAADXJYAA1zQAANdCgADXUwAA12OAANd0AADXhIAA15gAANergADXvAAA18yAANfcgADX7IAA1/sAANgJgADYHIAA2C+AANg/AADYTwAA2GCAANhyAADYgQAA2JaAANilgADYtIAA2MSAANjUgADY44AA2PKAANkCgADZEoAA2SOAANk0gADZSYAA2W0AANl9gADZjgAA2agAANnCAADZzoAA2dsAANnpAADZ9wAA2hyAANpCAADaVIAA2mcAANp2AADahQAA2pqAANqwAADawoAA2tUAANrrAADbAQAA2xEAANshAADbLwAA2z0AANtPgADbYgAA23GAANuBAADbkYAA26IAANu3AADbzAAA292AANvvAADcAIAA3BIAANwngADcPQAA3FKAANxoAADcewAA3I4AANyhAADctAAA3NEAANzuAADdCwAA3SgAAN03gADdRwAA3VaAAN1mAADddYAA3YUAAN2WAADdpwAA3boAAN3NAADd5QAA3f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AQe5AiIAKQArAStdKysrNf//ACMAAAGbBcICJgDVAAABBgBDygAAKEAQAQVAFxk0BUAiJTQgBQEFArj/prRIKwEBBbkCIgApACsBK10rKzX////vAAACaAXCAiYA1QAAAQYA1tYAABZACgEABgkBAkEBAQq5AiIAKQArASs1//8ACQAAAjoFwwImANUAAAEGAI7MAAAfQBECAQggCwsGVQgCAEgrAQICC7kCIgApACsBKys1NQD//wCHAAAD5gWqAiYAUQAAAQcA1wD/AAAANbMBAQEmuQIiACkAKwGxBgJDVFi1ABcjAQtBKxu5ACj/wLciJDRPKAEoErj/4rFIKytdK1k1AP//AET/6AQnBcICJgBSAAABBwCNAPQAAAAbQA4C4B3wHQIdBABIKwIBHbkCIgApACsBK101AP//AET/6AQnBcICJgBSAAABBwBDAN4AAAAmsQIbuP/AQBELDTQPGwFwGwEbBABIKwIBG7kCIgApACsBK11xKzX//wBE/+gEJwXCAiYAUgAAAQcA1gDgAAAAIEASAhxALjI0nxwBABwfAAdBAgEguQIiACkAKwErcis1//8ARP/oBCcFwwImAFIAAAEHAI4A4AAAACpACQMCHkAWFgZVHrj/wEANCgsGVR4EbkgrAgMCIbkCIgApACsBKysrNTX//wBE/+gEJwWqAiYAUgAAAQcA1wDgAAAAMEAXAi8rPysCfyv/KwJPK48rAi8rPysCKwS4/+y0SCsCASm5AiIAKQArAStdXV1xNf//AIP/6APgBcICJgBYAAABBwCNAOcAAAAhQBMBHEAOEDQfHE8cAhwRPEgrAQEcuQIiACkAKwErcSs1AP//AIP/6APgBcICJgBYAAABBwBDAQcAAAAVQAoBARoRAEgnAQEauQIiACkAKwErAP//AIP/6APgBcICJgBYAAABBwDWANwAAAApswEBAR+5AiIAKQArAbEGAkNUWLUAGx4LFkErG7ePGQEZESNIKytdWTUA//8Ag//oA+AFwwImAFgAAAEHAI4A3AAAAB1ADwIBcBkBABkfERFBAQICILkCIgApACsBK101NQAAAQBJ/qYEHgWYAAsAXkAzAgEJCgoBIAQLAAMECAcHBG4GBQAICQYHB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gA1NDY2Amtu1Hb+/ra3/v521AP6ctRyt/7+AQK3c9NyAAACAHABqgJmA6AACwAXAAABMhYVFAYjIiY1NDYXIgYVFBYzMjY1NCYBa2iTk2hok5JpSWZnSEhnZgOgk2hok5NoaJNMZ0hJZmZJSGf////9AAAFWQa+AiYAJAAAAQcA2AFKAV8AJkAXAgAPARAP0A8CIA8wDwIADxIMDEECAQ+5AiEAKQArAStdcXI1//8ASv/oBBwFXwImAEQAAAEHANgA9QAAABpADQJwOAEAODsCAkECATi5AsMAKQArAStdNf//AGb/5wV2ByYCJgAmAAABBwDWAbABZAAWQAoBACAjCA9BAQEguQIhACkAKwErNf//AFD/6APtBcICJgBGAAABBwDWAPoAAAAWQAoBAB0gBw5BAQEduQIiACkAKwErNf//AGb/5wV2BxoCJgAmAAABBwDaAbABkAAVQAkBHgtkSCsBAR65AiEAKQArASs1AP//AFD/6APtBYoCJgBGAAABBwDaAPAAAAApswEBARu5AiIAKQArAbEGAkNUWLUAGx4LC0ErG7dvGwEbEyhIKytdWTUA//8AogAABOgGyQImACgAAAEHANgBgQFqABZACgEADA8BAkEBAQy5AiEAKQArASs1//8AS//oBB4FXwImAEgAAAEHANgA4AAAABZACgIAHiEHD0ECAR65AsMAKQArASs1//8AogAABOgHIgImACgAAAEHANkBawFqACWzAQEBELkCIQApACsBsQYCQ1RYtQATDQECQSsbtBMFRkgrK1k1AP//AEv/6AQeBbgCJgBIAAABBwDZAPQAAAAVQAoCASUWAEgnAgEiuQIiACkAKwErAP//AKIAAAToBvQCJgAoAAABBwDaAYEBagAWQAoBAAwPAQJBAQEMuQIhACkAKwErNf//AEv/6AQeBYoCJgBIAAABBwDaAPoAAAAWQAoCAB4hBw9BAgEeuQIiACkAKwErNf//AG3/5wW5ByECJgAqAAABBwDWAg4BXwAlswEBASi5AiEAKQArAbEGAkNUWLUAKCsODkErG7QmDgBIKytZNQD//wBC/lED6gXCAiYASgAAAQcA1gDIAAAAFkAKAgAtMA8XQQIBLbkCIgApACsBK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HycbGyQR+32RkZPx+AUP+4fEtTxqKAeQBG2T6P2TfAQzRAsS6WzYuApTfAUP6P2QCe63AwK2vwMD+sQFD/H5kZAFD3wMZY8LPbdz/AQ3+8/71AAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAAC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AMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAD//wBGBWIBnAYxABYC9AAA//8ARgTXAZwGPQAWAvEAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAP//AEYE1wFRBg0AFgL4AAD//wBGBNcBsQYZABYC9wAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAAAAIBAAAABQAFAAADAAcAACERIRElIREhAQAEAPwgA8D8QAUA+wAgBMAA//8ASATXAa0GigAWAvUAAP//AEYE1wHlBloAFgLyAAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAD//wBGBNcBsQa5ABYDSQAA//8ARgTXAbEHVwAWAxIAAP//AEYE1wGxBtMAFgNLAAD//wBGBNcBsQc9ABYDSAAA//8AQATZAbEHLgAWA0oAAP//ADAE1wHPB3cAFgNHAAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAD//wBG/9UBnACkABYC9gAA//8ARv72AZwAWwAWAvMAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQAAAwAHAAAhESERJSERIQEABAD8IAPA/EAFAPsAIATAAAACAQAAAAUABQ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AgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAgEAAAAFAAUAAAMABwAAIREhESUhESEBAAQA/CADwPxABQD7ACAEwAAAAf+6ASUBAAHTAAMAGL0AAgLvAAEC6wAAAvCxBQEvEOUAP+0xMAEhNSEBAP66AUYBJa4AAAH/ugEl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AS7/4wKMATH/4wKMATP/4wKMAhD/4wKMAhf/4wKMAiD/4wKMAiL/4wKMAib/4wKMAiv/4wAAAEYDTgAAAAMAAAAAAP4AAAAAAAMAAAABAAoBPgAAAAMAAAACAA4F3gAAAAMAAAADAF4FwAAAAAMAAAAEAAoBPgAAAAMAAAAFABgF7gAAAAMAAAAGAA4GHgAAAAMAAAAHAMQGLAAAAAMAAAAIACYHfAAAAAMAAAAJAIoNpAAAAAMAAAAKBMIA/gAAAAMAAAALAGIOLgAAAAMAAAAMAGYOkAAAAAMAAAANBrQG8AAAAAMAAAAOAFwO9gABAAAAAAAAAH8PUgABAAAAAAABAAUP8QABAAAAAAACAAcSQQABAAAAAAADAC8SMgABAAAAAAAEAAUP8QABAAAAAAAFAAwSSQABAAAAAAAGAAcSYQABAAAAAAAHAGISaAABAAAAAAAIABMTEAABAAAAAAAJAEUWJAABAAAAAAAKAmEP0QABAAAAAAALADEWaQABAAAAAAAMADMWmgABAAAAAAANA1oSygABAAAAAAAOAC4WzQADAAEEAwACAAwW+wADAAEEBQACABAXCwADAAEEBgACAAwXGwADAAEEBwACABAXJwADAAEECAACABAXNwADAAEECQAAAP4AAAADAAEECQABAAoBPgADAAEECQACAA4F3gADAAEECQADAF4FwAADAAEECQAEAAoBPgADAAEECQAFABgF7gADAAEECQAGAA4GHgADAAEECQAHAMQGLAADAAEECQAIACYHfAADAAEECQAJAIoNpAADAAEECQAKBMIA/gADAAEECQALAGIOLgADAAEECQAMAGYOkAADAAEECQANBrQG8AADAAEECQAOAFwO9gADAAEECgACAAwW+wADAAEECwACABAXRwADAAEEDAACAAwW+wADAAEEDgACAAwXVwADAAEEEAACAA4XZwADAAEEEwACABIXdQADAAEEFAACAAwW+wADAAEEFQACABAW+wADAAEEFgACAAwW+wADAAEEGQACAA4XhwADAAEEGwACABAXVwADAAEEHQACAAwW+wADAAEEHwACAAwW+wADAAEEJAACAA4XlQADAAEEKgACAA4XowADAAEELQACAA4XsQADAAEICgACAAwW+wADAA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WakAL9IPVQ0JQieAmFdJtN7+siQKy4rnVdrMCOOvn3tzRbXOGb+u/EJDRKXpX74XQcmk6sdq5/FgZC8vVxTbrU8jT3GNWYRFDyY/tySwA="
vendor: 17,843 bytes, line 10
10,mo=function(){function e(e,t,i){this.PdfRenderedFormFields=[],this.pdfViewer=e,this.pdfViewerBase=t,this.formFieldLoadedDocument=this.pdfViewer.pdfRendererModule.loadedDocument,this.mIsDigitalSignaturePresent=i}return e.prototype.drawFreeTextAnnotations=function(e,i,n){var o=e.data,r=o.replace(/"/g,""),a=JSON.parse(e.bounds),s=i.getPage(e.pageIndex);if(""!==o){var l=this.convertPixelToPoint(a.left),A=this.convertPixelToPoint(a.top),h=this.convertPixelToPoint(a.width),p=this.convertPixelToPoint(a.height),c=new d.PdfFreeTextAnnotation(l,A,h,p);c._dictionary.set("NM",e.signatureName.toString());var g=e.fontSize;c.border.width=0;var u=d.PdfFontFamily.helvetica,f=e.fontFamily.toString();if(!t.isNullOrUndefined(f)){var m=f.toString();m.includes("Times New Roman")?u=d.PdfFontFamily.timesRoman:m.includes("Courier")?u=d.PdfFontFamily.courier:m.includes("Symbol")?u=d.PdfFontFamily.symbol:m.includes("ZapfDingbats")&&(u=d.PdfFontFamily.zapfDingbats)}g=Math.floor(this.convertPixelToPoint(g));var w=d.PdfFontStyle.regular;if(c.font=new d.PdfStandardFont(u,g,w),c.text=r,c.borderColor=[0,0,0],c.textAlignment=d.PdfTextAlignment.center,c._annotFlags=d.PdfAnnotationFlag.print,n){var C=this.getRotateAngle(s.rotation);c.rotationAngle=Math.abs(C)}c.setValues("AnnotationType","Signature"),n&&(c.flatten=!0),c.setAppearance(!0),s.annotations.add(c)}},e.prototype.destroy=function(){this.formFieldLoadedDocument=null,this.defaultAppearanceFields=null,this.pageRenderer=null,this.mIsDigitalSignaturePresent=null,this.showDigitalSignatureAppearance=null,this.hideEmptyDigitalSignatureFields=null,this.PdfRenderedFormFields=null},e.prototype.getRotateAngle=function(e){var t=0;switch(e){case d.PdfRotationAngle.angle0:t=0;break;case d.PdfRotationAngle.angle180:t=2;break;case d.PdfRotationAngle.angle270:t=3;break;case d.PdfRotationAngle.angle90:t=1}return t},e.prototype.drawImage=function(e,t,i){var n,o=e.data,r=JSON.parse(e.bounds),a=t.getPage(e.pageIndex);if(""!==o){var s=o.toString().split(",")[1],l=this.convertPixelToPoint(r.left),A=this.convertPixelToPoint(r.top),h=this.convertPixelToPoint(r.width),p=this.convertPixelToPoint(r.height);a.rotation!==d.PdfRotationAngle.angle90&&a.rotation!==d.PdfRotationAngle.angle270||(h=(n=[p,h])[0],p=n[1]);var c=new d.PdfRubberStampAnnotation(l,A,h,p),g=new d.PdfBitmap(s),u=a.graphics,f=c.appearance.normal;c._dictionary.set("NM",e.signatureName.toString());var m=this.getRotateAngle(a.rotation);if(c.rotationAngle=Math.abs(m),i&&(c.flatten=!0),i)f.graphics.drawImage(g,0,0,h,p);else{var w=u.save();f.graphics.drawImage(g,0,0,h,p),f.graphics.restore(w)}a.annotations.add(c)}},e.prototype.saveFormFieldsDesignerData=function(e){if(Object.prototype.hasOwnProperty.call(e,"formDesigner")){var i=e.formDesigner;if(!t.isNullOrUndefined(i)){var n=JSON.parse(i),o=[];Object.prototype.hasOwnProperty.call(e,"formFieldsPageList")&&JSON.parse(e.formFieldsPageList);if(!t.isNullOrUndefined(this.formFieldLoadedDocument.form))for(var r=this.formFieldLoadedDocument.form._fields.length,a=this.formFieldLoadedDocument.form,s=r-1;s>=0;s--){var l=a.fieldAt(s),A=null;l instanceof d.PdfSignatureField&&(A=l);var h=!!t.isNullOrUndefined(A)||A.isSigned;null!=A&&h||a.removeField(a.fieldAt(s))}for(p=0;p<n.length;p++)this.addFormFieldsToDocument(n[parseInt(p.toString(),10)].FormField)}if(!t.isNullOrUndefined(this.formFieldLoadedDocument.form))if(t.isNullOrUndefined(this.defaultAppearanceFields))this.formFieldLoadedDocument.form.setDefaultAppearance(!1);else{for(var p=0;p<this.formFieldLoadedDocument.form.count;p++){var c=this.formFieldLoadedDocument.form.fieldAt(p);-1===this.defaultAppearanceFields.indexOf(c.name)&&c.setAppearance(!0)}this.defaultAppearanceFields=null}}},e.prototype.setFont=function(e,t){var i=this.getFontStyle(e);t._dictionary.set("FontStyle",i),/[^\u0000-\u007F]/.test(t.text)?t.font=this.getTrueFont(e.fontSize,i):e.FontFamily&&e.fontSize&&(t.font=new d.PdfStandardFont(this.getFontFamily(e.FontFamily),this.convertPixelToPoint(e.fontSize),i))},e.prototype.saveFormFieldsData=function(e){if(Object.prototype.hasOwnProperty.call(e,"fieldsData")){var i=e.fieldsData,n=JSON.parse(i);if(!t.isNullOrUndefined(n)&&Object.keys(n).length>0&&!t.isNullOrUndefined(this.formFieldLoadedDocument.form)){this.formFieldLoadedDocument.form._fields.length>0&&this.formFieldLoadedDocument.form.setDefaultAppearance(!1);for(var o=0;o<this.formFieldLoadedDocument.form._fields.length;o++){var r=this.formFieldLoadedDocument.form.fieldAt(o),a="",s="";if(t.isNullOrUndefined(r.name)||(a=r.name.replace(/[^0-9a-zA-Z]+/g,"").replace(/\s+/g,""),s=r.name),r instanceof d.PdfTextBoxField){if(r.password){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);l=n[""+a];!t.isNullOrUndefined(l)&&Object.prototype.hasOwnProperty.call(l,"isReadOnly")&&(r.text=l.fieldValue,r.readOnly="true"===l.isReadOnly),this.setFont(l,r)}}else if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);l=n[""+a];!t.isNullOrUndefined(l)&&Object.prototype.hasOwnProperty.call(l,"isReadOnly")&&(r.text=l.fieldValue,r.readOnly="true"===l.isReadOnly),this.setFont(l,r)}}else if(r instanceof d.PdfComboBoxField){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);var l=n[""+a],A=r.itemsCount,h="";t.isNullOrUndefined(l)||(Object.prototype.hasOwnProperty.call(l,"isReadOnly")&&(r.readOnly="true"===l.isReadOnly),t.isNullOrUndefined(l.fieldValue)||(h=l.fieldValue));for(var p=!1,c=0;c<A;c++){var g=void 0;r._dictionary.has("Opt")?g=r._dictionary.get("Opt")[parseInt(c.toString(),10)]:t.isNullOrUndefined(r.itemAt(c))||(g=r.itemAt(c).text),(g===h||g&&g.length>0&&g[1]===h)&&(r.selectedIndex=c,p=!0)}r.editable&&!p&&(r.selectedValue=h),this.setFont(l,r)}}else if(r instanceof d.PdfCheckBoxField){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);var u=(l=n[""+a]).isSelected,f=u.toString(),m=l.fieldValue;if(t.isNullOrUndefined(m)||r._dictionary.set("ExportValue",m),"true"===f.toLowerCase()||"false"===f.toLowerCase()){if(r.checked=u,!t.isNullOrUndefined(l)&&Object.prototype.hasOwnProperty.call(l,"isReadOnly")&&(r.readOnly=l.readonly),"false"===f.toLowerCase()){for(var w=r,C=0;C<w.itemsCount;C++)w.itemAt(C).checked=!1;r.checked=!1}}else{var B=t.isNullOrUndefined(f)?-1:parseInt(f,10);if((w=r).itemsCount>0)if(-1===B){for(var S=0;S<w.itemsCount;S++)w.itemAt(S).checked=!1;r.checked=!1}else t.isNullOrUndefined(w.itemAt(B))||(w.itemAt(B).checked=!0)}}}else if(r instanceof d.PdfListBoxField){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);var y=n[""+a],A=r.itemsCount,h="";t.isNullOrUndefined(y)||(Object.prototype.hasOwnProperty.call(y,"fieldValue")&&!t.isNullOrUndefined(y.fieldValue)&&(h=y.fieldValue),Object.prototype.hasOwnProperty.call(y,"isReadOnly")&&(r.readOnly="true"===y.isReadOnly)),h=JSON.parse(h)[0].replace(/[^0-9a-zA-Z]+/g,"");for(var I=[],C=0;C<A;C++)(g=r.itemAt(C).text)===h&&I.push(C);r.selectedIndex=I,this.setFont(y,r)}}else if(r instanceof d.PdfRadioButtonListField){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);l=n[""+a];if(!t.isNullOrUndefined(l)&&Object.prototype.hasOwnProperty.call(l,"isReadOnly")){var E=l.fieldValue;if(E)for(var v=0;v<r.itemsCount;v++){var b=r.itemAt(v);if(b&&(b.value===E||b._optionValue===E)){r.selectedIndex=v;break}}r.readOnly="true"===l.isReadOnly}}}else if(r instanceof d.PdfSignatureField){if(Object.prototype.hasOwnProperty.call(n,a)&&!t.isNullOrUndefined(n[""+a])||Object.prototype.hasOwnProperty.call(n,s)&&!t.isNullOrUndefined(n[""+s])){Object.prototype.hasOwnProperty.call(n,s)&&(a=s);var V=r;Object.prototype.hasOwnProperty.call(n,a+"fontName")?this.drawFieldFreeTextAnnotations(n[""+a],V,a,n[a+"bounds"],n[a+"fontName"],n[a+"fontSize"]):Object.prototype.hasOwnProperty.call(n,a+"ImageData")?this.drawFieldImage(n[""+a],V,a,n[a+"bounds"]):Object.prototype.hasOwnProperty.call(n,a+"bounds")&&this.drawFieldPath(n[""+a],V,a,n[a+"bounds"]);var D=V.itemsCount;if(D>0)for(C=0;C<D;C++)Object.prototype.hasOwnProperty.call(n,a+"fontName_"+C)?this.drawFieldFreeTextAnnotations(n[""+a],V,a,n[a+"bounds_"+C],n[a+"fontName_"+C],n[a+"fontSize_"+C]):Object.prototype.hasOwnProperty.call(n,a+"ImageData_"+C)?this.drawFieldImage(n[""+a],V,a,n[a+"bounds_"+C]):Object.prototype.hasOwnProperty.call(n,a+"bounds_"+C)&&this.drawFieldPath(n[""+a],V,a,n[a+"bounds_"+C])}(Object.prototype.hasOwnProperty.call(n,a+"isReadOnly")||Object.prototype.hasOwnProperty.call(n,s+"isReadOnly"))&&(Object.prototype.hasOwnProperty.call(n,s+"isReadOnly")&&(a=s),r.readOnly="true"===n.isReadOnly)}}}}},e.prototype.addFormFieldsToDocument=function(e){var t,i=this.formFieldLoadedDocument.getPage(e.pageNumber-1);switch(e.formFieldAnnotationType){case"Textbox":case"PasswordField":t=this.saveTextBoxField(i,e);break;case"Checkbox":t=this.SaveCheckBoxField(i,e);break;case"RadioButton":t=this.saveRadioButtonField(e);break;case"DropdownList":t=this.saveDropDownField(i,e);break;case"ListBox":t=this.saveListBoxField(i,e);break;case"SignatureField":case"InitialField":t=this.saveSignatureField(i,e)}t&&this.formFieldLoadedDocument.form.add(t)},e.prototype.setFontFromKeys=function(e,i,n,o,r,a){var s=Vi.tryGetFontFromKeys(n,e.toString(),o,a);if(t.isNullOrUndefined(s))if(r){var l=this.getTrueFont(o,a);Vi.isSupportedFont(e,s)?i.font=l:this.disableFieldAppearance(i)}else this.disableFieldAppearance(i);else i.font=s,i.setAppearance(!0)},e.prototype.setFontAppearance=function(e,i,n,o,r,a,s){if(!t.isNullOrUndefined(r)&&Object.keys(r).length>0){var l=Vi.getFontKey(r,i.toLowerCase());if(t.isNullOrUndefined(l))this.setFontFromKeys(e,o,r,n,a,s);else{var A=r[""+l];A=Vi.processFontStream(A);var h=new d.PdfTrueTypeFont(A,this.convertPixelToPoint(n),s),p=Vi.isSupportedFont(e,h);o.setAppearance(p),p?o.font=h:this.setFontFromKeys(e,o,r,n,a,s)}}else try{o.font.measureString(e.toString())}catch(t){if(a){var c=this.getTrueFont(n,s);Vi.isSupportedFont(e,c)?o.font=c:this.disableFieldAppearance(o)}else this.disableFieldAppearance(o)}},e.prototype.disableFieldAppearance=function(e){e.setAppearance(!1),t.isNullOrUndefined(this.defaultAppearanceFields)&&(this.defaultAppearanceFields=[]),this.defaultAppearanceFields.push(e.name)},e.prototype.saveTextBoxField=function(e,i){var n=t.isNullOrUndefined(i.name)?"Password"===i.type?"passwordTextbox":"textbox":i.name,o=this.convertFieldBounds(i),r=e.rotation,a=!1;0!==i.rotation&&(a=!0);var s=this.getBounds(o,e.size[1],e.size[0],r,a),l={x:s.X,y:s.Y,width:s.Width,height:s.Height},A=new d.PdfTextBoxField(e,n,l);A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b],0===i.backgroundColor.r&&0===i.backgroundColor.g&&0===i.backgroundColor.b&&0===i.backgroundColor.a&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b,i.backgroundColor.a]),A.maxLength=i.maxLength,A.insertSpaces=i.insertSpaces,A.readOnly=i.isReadonly,A.required=i.isRequired,A.textAlignment=this.getTextAlignment(i.textAlign),A.visibility=this.getFormFieldsVisibility(i.visibility),A.text=t.isNullOrUndefined(i.value)?"":i.value,A.toolTip=t.isNullOrUndefined(i.tooltip)?"":i.tooltip,A.color=[i.fontColor.r,i.fontColor.g,i.fontColor.b],A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b],0==i.borderColor.r&&0==i.borderColor.g&&0==i.borderColor.b&&0==i.borderColor.a&&(A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b,i.borderColor.a]),A.border.width=i.thickness,A.multiLine=i.Multiline;var h=this.getFontStyle(i);A._dictionary.set("FontStyle",h);var p=/[^\u0000-\u007F]/.test(A.text),c=i.FontFamily?i.FontFamily:i.fontFamily;if(A.font=new d.PdfStandardFont(this.getFontFamily(c),this.convertPixelToPoint(i.fontSize),h),!t.isNullOrUndefined(A.text.toString())){var g=this.pdfViewer.pdfRenderer.FallbackFontCollection;this.setFontAppearance(A.text.toString(),i.fontFamily,i.fontSize,A,g,p,h)}if("PasswordField"===i.formFieldAnnotationType&&(A.password=!0),a||(A.rotate=this.getFormfieldRotation(e.rotation)),!t.isNullOrUndefined(i.customData)){var u=JSON.stringify(i.customData);A._dictionary.set("CustomData",u)}return A},e.prototype.saveDropDownField=function(e,i){var n=t.isNullOrUndefined(i.name)?"dropdownList":i.name,o=this.convertFieldBounds(i),r=e.rotation,a=!1;0!==i.rotation&&(a=!0);for(var s=this.getBounds(o,e.size[1],e.size[0],r,a),l={x:s.X,y:s.Y,width:s.Width,height:s.Height},A=new d.PdfComboBoxField(e,n,l),h=!1,p=0;p<i.option.length;p++){var c=new d.PdfListFieldItem(i.option[parseInt(p.toString(),10)].itemName,i.option[parseInt(p.toString(),10)].itemValue);A.addItem(c),/[^\u0000-\u007F]/.test(i.option[parseInt(p.toString(),10)].itemName)&&(h=!0)}A.textAlignment=this.getTextAlignment(i.textAlign);var g=this.getFontStyle(i);A._dictionary.set("FontStyle",g);var u=i.FontFamily?i.FontFamily:i.fontFamily;A.font=new d.PdfStandardFont(this.getFontFamily(u),this.convertPixelToPoint(i.fontSize),g);for(p=0;p<i.option.length;p++){var f=i.option[parseInt(p.toString(),10)].itemName.toString();if(!t.isNullOrUndefined(f)){var m=this.pdfViewer.pdfRenderer.FallbackFontCollection;this.setFontAppearance(f,i.fontFamily,i.fontSize,A,m,h,g);break}}if(A.itemsCount>0&&(i.selectedIndex.length>0?A.selectedIndex=i.selectedIndex[0]:A.selectedIndex=0),A.required=i.isRequired,A.readOnly=i.isReadonly,A.visibility=this.getFormFieldsVisibility(i.visibility),A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b],0===i.backgroundColor.r&&0===i.backgroundColor.g&&0===i.backgroundColor.b&&0===i.backgroundColor.a&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b,i.backgroundColor.a]),A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b],0==i.borderColor.r&&0==i.borderColor.g&&0==i.borderColor.b&&0==i.borderColor.a&&(A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b,i.borderColor.a]),A.border.width=i.thickness,A.color=[i.fontColor.r,i.fontColor.g,i.fontColor.b],a||(A.rotate=this.getFormfieldRotation(e.rotation)),A.toolTip=t.isNullOrUndefined(i.tooltip)?"":i.tooltip,!t.isNullOrUndefined(i.customData)){var w=JSON.stringify(i.customData);A._dictionary.set("CustomData",w)}return A},e.prototype.SaveCheckBoxField=function(e,i){var n=t.isNullOrUndefined(i.name)&&""===i.name?"checkboxField":i.name,o=this.convertFieldBounds(i),r=e.rotation,a=!1;0!==i.rotation&&(a=!0);var s=this.getBounds(o,e.size[1],e.size[0],r,a),l={x:s.X,y:s.Y,width:s.Width,height:s.Height},A=new d.PdfCheckBoxField(n,l,e);if(A.readOnly=i.isReadonly,A.required=i.isRequired,A.checked=i.isChecked,A.visibility=this.getFormFieldsVisibility(i.visibility),A._dictionary.set("ExportValue",i.value),A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b],0===i.backgroundColor.r&&0===i.backgroundColor.g&&0===i.backgroundColor.b&&0===i.backgroundColor.a&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b,i.backgroundColor.a]),A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b],0===i.borderColor.r&&0===i.borderColor.g&&0===i.borderColor.b&&0===i.borderColor.a&&(A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b,i.borderColor.a]),A.border.width=i.thickness,A.toolTip=t.isNullOrUndefined(i.tooltip)?"":i.tooltip,a||(A.rotate=this.getFormfieldRotation(e.rotation)),!t.isNullOrUndefined(i.customData)){var h=JSON.stringify(i.customData);A._dictionary.set("CustomData",h)}return A},e.prototype.saveListBoxField=function(e,i){var n=t.isNullOrUndefined(i.name)?"listBox":i.name,o=this.convertFieldBounds(i),r=e.rotation,a=!1;0!==i.rotation&&(a=!0);for(var s=this.getBounds(o,e.size[1],e.size[0],r,a),l={x:s.X,y:s.Y,width:s.Width,height:s.Height},A=new d.PdfListBoxField(e,n,l),h=!1,p=!1,c=0;c<i.option.length;c++){var g=new d.PdfListFieldItem(i.option[parseInt(c.toString(),10)].itemName,i.option[parseInt(c.toString(),10)].itemValue);A.addItem(g),/[^\u0000-\u007F]/.test(i.option[parseInt(c.toString(),10)].itemName)&&(p=!0),t.isNullOrUndefined(g&&g._dictionary&&!h)||(g.textAlignment=this.getTextAlignment(i.textAlign),h=!0)}if(A.itemsCount>0){var u=i.selectedIndex.length;if(Array.isArray(i.selectedIndex)&&u>0)if(1===u)A.selectedIndex=i.selectedIndex[0];else{for(var f=[],m=0;m<u;m++)f.push(i.selectedIndex[parseInt(m.toString(),10)]);A.selectedIndex=f}else A.selectedIndex=0}A.textAlignment=this.getTextAlignment(i.textAlign),A.multiSelect=!0,A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b],0===i.backgroundColor.r&&0===i.backgroundColor.g&&0===i.backgroundColor.b&&0===i.backgroundColor.a&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b,i.backgroundColor.a]),A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b],0==i.borderColor.r&&0==i.borderColor.g&&0==i.borderColor.b&&0==i.borderColor.a&&(A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b,i.borderColor.a]),A.border.width=i.thickness;var w=this.getFontStyle(i);A._dictionary.set("FontStyle",w);var C=i.FontFamily?i.FontFamily:i.fontFamily;A.font=new d.PdfStandardFont(this.getFontFamily(C),this.convertPixelToPoint(i.fontSize),w);for(c=0;c<i.option.length;c++){var B=i.option[parseInt(c.toString(),10)].itemName.toString();
10if(!t.isNullOrUndefined(B)){var S=this.pdfViewer.pdfRenderer.FallbackFontCollection;this.setFontAppearance(B,i.fontFamily,i.fontSize,A,S,p,w);break}}if(A.readOnly=i.isReadonly,A.required=i.isRequired,A.visibility=this.getFormFieldsVisibility(i.visibility),A.toolTip=t.isNullOrUndefined(i.tooltip)?"":i.tooltip,a||(A.rotate=this.getFormfieldRotation(e.rotation)),!t.isNullOrUndefined(i.customData)){var y=JSON.stringify(i.customData);A._dictionary.set("CustomData",y)}return A},e.prototype.saveRadioButtonField=function(e){for(var i=this.formFieldLoadedDocument.getPage(e.pageNumber-1),n=t.isNullOrUndefined(e.radiobuttonItem[0].name)?"radiobuttonField":e.radiobuttonItem[0].name,o=new d.PdfRadioButtonListField(i,n),r=0,a=!1,s=!1,l=!1,A=0;A<e.radiobuttonItem.length;A++){var h=e.radiobuttonItem[parseInt(A.toString(),10)],p=this.formFieldLoadedDocument.getPage(h.pageNumber-1),c=t.isNullOrUndefined(h.value)||""===h.value?n:h.value,g=this.getRotateAngle(p.rotation),u=this.convertFieldBounds(h),f=!1;0!==e.rotation&&(f=!0);var m=this.getBounds(u,p.size[1],p.size[0],g,f),w={x:m.X,y:m.Y,width:m.Width,height:m.Height},C=new d.PdfRadioButtonListItem(c,w,p);f||(C.rotationAngle=this.GetRotateAngle(p.rotation)),h.isReadonly&&(s=!0),h.isRequired&&(l=!0),C.borderColor=[h.borderColor.r,h.borderColor.g,h.borderColor.b],0==h.borderColor.r&&0==h.borderColor.g&&0==h.borderColor.b&&0==h.borderColor.a&&(C.borderColor=[h.borderColor.r,h.borderColor.g,h.borderColor.b,h.borderColor.a]),C.border.width=h.thickness,C.backColor=[h.backgroundColor.r,h.backgroundColor.g,h.backgroundColor.b],0===h.backgroundColor.r&&0===h.backgroundColor.g&&0===h.backgroundColor.b&&0===h.backgroundColor.a&&(C.backColor=[h.backgroundColor.r,h.backgroundColor.g,h.backgroundColor.b,h.backgroundColor.a]),C.visibility=this.getFormFieldsVisibility(h.visibility),o.add(C),h.isSelected&&(r=A,a=!0)}if(o.readOnly=s,o.required=l,o.toolTip=t.isNullOrUndefined(e.tooltip)?"":e.tooltip,a&&(o.selectedIndex=r),t.isNullOrUndefined(e.radiobuttonItem[0].customData)){if(!t.isNullOrUndefined(e.customData)){B=JSON.stringify(e.customData);o._dictionary.set("CustomData",B)}}else{var B=JSON.stringify(e.radiobuttonItem[0].customData);o._dictionary.set("CustomData",B)}return o},e.prototype.saveSignatureField=function(e,i){var n=t.isNullOrUndefined(i.name)?"signatureField":i.name,o=this.convertFieldBounds(i),r=e.rotation,a=!1;0!==i.rotation&&(a=!0);var s=this.getBounds(o,e.size[1],e.size[0],r,a),l={x:s.X,y:s.Y,width:s.Width,height:s.Height},A=new d.PdfSignatureField(e,n,l);if(A.toolTip=i.tooltip,A.required=i.isRequired,A.readOnly=i.isReadonly,"InitialField"===i.formFieldAnnotationType&&A._dictionary.set("InitialField",!0),""===i.value&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b],0===i.backgroundColor.r&&0===i.backgroundColor.g&&0===i.backgroundColor.b&&0===i.backgroundColor.a&&(A.backColor=[i.backgroundColor.r,i.backgroundColor.g,i.backgroundColor.b,i.backgroundColor.a])),A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b],0===i.borderColor.r&&0===i.borderColor.g&&0===i.borderColor.b&&0===i.borderColor.a&&(A.borderColor=[i.borderColor.r,i.borderColor.g,i.borderColor.b,i.borderColor.a]),A.border.width=i.thickness,"hidden"===i.visibility?A.visible=!1:"visible"===i.visibility&&(A.visible=!0),"Text"===i.signatureType?this.drawDesignerFieldFreeTextAnnotations(A,n,i):"Image"===i.signatureType?this.drawDesignerFieldImage(A,n,i):"Path"===i.signatureType&&(t.isNullOrUndefined(i.value)||""===i.value||this.drawDesignerFieldPath(A,n,i)),a||(A.rotate=this.getFormfieldRotation(e.rotation)),!t.isNullOrUndefined(i.customData)){var h=JSON.stringify(i.customData);A._dictionary.set("CustomData",h)}return A},e.prototype.drawDesignerFieldFreeTextAnnotations=function(e,i,n){var o={X:n.signatureBound.x,Y:n.signatureBound.y,Width:n.signatureBound.width,Height:n.signatureBound.height},r=e.page,a=r.rotation,s=n.zoomValue,l={X:this.convertPixelToPoint(o.X/s),Y:this.convertPixelToPoint(o.Y/s),Width:this.convertPixelToPoint(o.Width/s),Height:this.convertPixelToPoint(o.Height/s)},A=!1;if(0!==n.rotation&&(A=!0),l=this.getBounds(l,r.size[1],r.size[0],a,A),!t.isNullOrUndefined(n)){var h=l.X,p=l.Y,c=l.Width,g=l.Height,u={X:h,Y:p,Width:c,Height:g},f=new d.PdfFreeTextAnnotation(h,p,c,g);f.setAppearance(!0),f._dictionary.set("T",i);var m=n.fontSize,w=d.PdfFontFamily.helvetica;t.isNullOrUndefined(n.fontFamily)||(w=this.getFontFamily(n.fontFamily));var C=this.getFontStyle(n),B=/[^\u0000-\u007F]/.test(n.value);f.font=B?this.getTrueFont(this.convertPixelToPoint(m),C):new d.PdfStandardFont(w,this.convertPixelToPoint(n.fontSize),C
10),f.text=n.value,this.setFontSize(this.convertPixelToPoint(m),f.font,n.value,u,w,C),f.border.width=0,f.textAlignment=d.PdfTextAlignment.center,f.flags=d.PdfAnnotationFlag.print,"hidden"===n.visibility&&(f.flags=d.PdfAnnotationFlag.hidden),A||(f.rotationAngle=Math.abs(this.getRotateAngle(r.rotation))),f.setValues("AnnotationType","Signature"),f.setAppearance(!0),r.annotations.add(f)}},e.prototype.drawDesignerFieldImage=function(e,i,n){var o={X:n.signatureBound.x,Y:n.signatureBound.y,Width:n.signatureBound.width,Height:n.signatureBound.height},r=e.page,a=r.rotation,s=n.zoomValue,l={X:this.convertPixelToPoint(o.X/s),Y:this.convertPixelToPoint(o.Y/s),Width:this.convertPixelToPoint(o.Width/s),Height:this.convertPixelToPoint(o.Height/s)},A=!1;if(0!==n.rotation&&(A=!0),l=this.getBounds(l,r.size[1],r.size[0],a,A),!t.isNullOrUndefined(n)){var h=l.X,p=l.Y,c=l.Width,g=l.Height,u=n.value.toString().split(",")[1],f=new d.PdfRubberStampAnnotation(h,p,c,g),m=new d.PdfBitmap(u);f.appearance.normal.graphics.drawImage(m,0,0,c,g),A||(f.rotationAngle=Math.abs(this.getRotateAngle(r.rotation))),f._dictionary.set("T",i),f.flags=d.PdfAnnotationFlag.print,"hidden"===n.visibility&&(f.flags=d.PdfAnnotationFlag.hidden),r.annotations.add(f)}},e.prototype.drawDesignerFieldPath=function(e,t,i){var n=JSON.parse(i.value),o={X:i.signatureBound.x,Y:i.signatureBound.y,Width:i.signatureBound.width,Height:i.signatureBound.height},r=e.page,a=r.rotation,s=i.zoomValue,l={X:this.convertPixelToPoint(o.X/s),Y:this.convertPixelToPoint(o.Y/s),Width:this.convertPixelToPoint(o.Width/s),Height:this.convertPixelToPoint(o.Height/s)};l=this.getBounds(l,r.size[1],r.size[0],a,!1);for(var A=0,h=0;h<this.formFieldLoadedDocument.pageCount&&r!==this.formFieldLoadedDocument.getPage(h);h++)A++;if(n.length>0){for(var p=l.X,c=l.Y,g=l.Width,u=l.Height,f=-1,m=-1,w=-1,C=-1,B=new d.PdfPath,S=0;S<n.length;S++){var y=n[parseInt(S.toString(),10)];B.addLine(y.x,y.y,0,0)}for(S=0;S<B._points.length;S+=2){P=B._points[parseInt(S.toString(),10)];if(-1===f)f=P[0],m=P[1],w=P[0],C=P[1];else{var I=P[0],E=P[1];f>=I&&(f=I),m>=E&&(m=E),w<=I&&(w=I),C<=E&&(C=E)}}var v=(w-f)/g,b=(C-m)/u,V=[],D=0;if(0!==a){for(var x=0;x<n.length;x++){if("M"===(R=(P=n[parseInt(x.toString(),10)]).command.toString())&&0!==x){D=x;break}V.push(parseFloat(P.x)),V.push(parseFloat(P.y))}V=[];for(k=0;k<n.length;k++){P=n[parseInt(k.toString(),10)];V.push((parseFloat(P.x)-f)/v+p),V.push(this.formFieldLoadedDocument.getPage(A).size[1]-(parseFloat(P.y)-m)/b-c)}}else for(h=0;h<n.length;h++){if("M"===(R=(P=n[parseInt(h.toString(),10)]).command.toString())&&0!==h){D=h;break}V.push((parseFloat(P.x)-f)/v+p);L=(parseFloat(P.y)-m)/b;V.push(this.formFieldLoadedDocument.getPage(A).size[1]-L-c)}var Q=new d.PdfInkAnnotation([p,c,g,u],V);if(Q.flags=d.PdfAnnotationFlag.print,"hidden"===i.visibility&&(Q.flags=d.PdfAnnotationFlag.hidden),Q.bounds={x:l.X,y:l.Y,width:l.Width,height:l.Height},Q.border.width=0,Q.color=[0,0,0],Q.setValues("annotationSignature","annotationSignature"),V=[],0!==a){for(var M=[],F=D;F<n.length;F++)"M"===(R=(P=n[parseInt(F.toString(),10)]).command.toString())&&F!==D&&(M.push(V),V=[]),V.push(parseFloat(P.x)),V.push(parseFloat(P.y));V.length>0&&M.push(V);for(var T=0;T<M.length;T++){if(V=[],M[parseInt(T.toString(),10)].length>0){for(var k=0;k<n.length;k++){var P=n[parseInt(k.toString(),10)];V.push((parseFloat(P.x)-f)/v+p),V.push(this.formFieldLoadedDocument.getPage(A).size[1]-(parseFloat(P.y)-m)/b-c)}Q.inkPointsCollection.push(V)}V=[]}}else{for(var N=0;N<n.length;N++){var R=(P=n[parseInt(N.toString(),10)]).command.toString();"M"===R&&0!==N&&(Q.inkPointsCollection.push(V),V=[]),V.push((parseFloat(P.x)-f)/v+p);var L=(parseFloat(P.y)-m)/b;V.push(this.formFieldLoadedDocument.getPage(A).size[1]-L-c)}V.length>0&&Q.inkPointsCollection.push(V)}Q._dictionary.set("T",t),Q.setAppearance(!0),Q.rotationAngle=Math.abs(this.getRotateAngle(r.rotation)),this.formFieldLoadedDocument.getPage(A).annotations.add(Q)}},e.prototype.setFontSize=function(e,t,i,n,o,r){t=new d.PdfStandardFont(o,e,r);do{if(e-=.001,t._size=e,e<.25){t._size=.25;break}var a=t.measureString(i);if(a[0]<n.Width&&a[1]<n.height){t._size=e;break}}while(e>.25)},e.prototype.getTrueFont=function(e,t){return new d.PdfTrueTypeFont(_e(),this.convertPixelToPoint(e),t)},e.prototype.convertFieldBounds=function(e){var t=e.zoomValue;return{X:this.convertPixelToPoint(e.lineBound.X/t),Y:this.convertPixelToPoint(e.lineBound.Y/t),Width:this.convertPixelToPoint(e.lineBound.Width/t),Height:this.convertPixelToPoint(e.lineBound.Height/t)}},e.prototype.getFontFamily=function(e){var t=d.PdfFontFamily.helvetica;switch(e){case"Courier":t=d.PdfFontFamily.courier;break;case"Times New Roman":t=d.PdfFontFamily.timesRoman;break;case"Symbol":t=d.PdfFontFamily.symbol;break;case"ZapfDingbats":t=d.PdfFontFamily.zapfDingbats}return t},e.prototype.getBounds=function(e,t,i,n,o){var r={};
vendor: 5,262 bytes, line 10
10return 0===n?r={X:e.X,Y:e.Y,Width:e.Width,Height:e.Height}:1===n?r=o?{X:e.Y-(e.Width/2-e.Height/2),Y:t-e.X-e.Height-(e.Width/2-e.Height/2),Width:e.Width,Height:e.Height}:{X:e.Y,Y:t-e.X-e.Width,Width:e.Height,Height:e.Width}:2===n?r={X:i-e.X-e.Width,Y:t-e.Y-e.Height,Width:e.Width,Height:e.Height}:3===n&&(r=o?{X:i-e.Y-e.Height-(e.Width/2-e.Height/2),Y:e.X+(e.Width/2-e.Height/2),Width:e.Width,Height:e.Height}:{X:i-e.Y-e.Height,Y:e.X,Width:e.Height,Height:e.Width}),r},e.prototype.getFormfieldRotation=function(e){var t=0;switch(e){case 1:t=90;break;case 2:t=180;break;case 3:t=270;break;case 4:t=360}return t},e.prototype.getTextAlignment=function(e){var t;switch(e.toLowerCase()){case"left":t=d.PdfTextAlignment.left;break;case"right":t=d.PdfTextAlignment.right;break;case"center":t=d.PdfTextAlignment.center;break;case"justify":t=d.PdfTextAlignment.justify}return t},e.prototype.getFormFieldsVisibility=function(e){var t;switch(e){case"visible":t=d.PdfFormFieldVisibility.visible;break;case"hidden":t=d.PdfFormFieldVisibility.hidden;break;case"visibleNotPrintable":t=d.PdfFormFieldVisibility.visibleNotPrintable;break;case"hiddenPrintable":t=d.PdfFormFieldVisibility.hiddenPrintable}return t},e.prototype.getFontStyle=function(e){var i;return i=d.PdfFontStyle.regular,t.isNullOrUndefined(e)||t.isNullOrUndefined(e.font)||(e.font.isBold&&(i|=d.PdfFontStyle.bold),e.font.isItalic&&(i|=d.PdfFontStyle.italic),e.font.isUnderline&&(i|=d.PdfFontStyle.underline),e.font.isStrikeout&&(i|=d.PdfFontStyle.strikeout)),i},e.prototype.convertPixelToPoint=function(e){return 72*e/96},e.prototype.convertPointtoPixel=function(e){return 96*e/72},e.prototype.fontConvert=function(e){return{Bold:e.isBold,FontFamily:this.getFontFamilyString(e.fontFamily),Height:e.height,Italic:e.isItalic,Name:this.getFontFamilyString(e.fontFamily).toString(),Size:e.size,Strikeout:e.isStrikeout,Underline:e.isUnderline,Style:e.style}},e.prototype.parseFontStyle=function(e,t){return(e&d.PdfFontStyle.underline)>0&&(t.Underline=!0),(e&d.PdfFontStyle.strikeout)>0&&(t.Strikeout=!0),(e&d.PdfFontStyle.bold)>0&&(t.Bold=!0),(e&d.PdfFontStyle.italic)>0&&(t.Italic=!0),t},e.prototype.GetFormFields=function(){this.PdfRenderedFormFields=[];var e=this.formFieldLoadedDocument.form;if(!t.isNullOrUndefined(e)&&!t.isNullOrUndefined(e._fields)){e.orderFormFields();for(var i=0;i<e.count;i++){for(var n=e.fieldAt(i),o=n.page,r=0,a=0;a<this.formFieldLoadedDocument.pageCount&&o!==this.formFieldLoadedDocument.getPage(a);a++)r++;if(!t.isNullOrUndefined(n.page))if(n instanceof d.PdfTextBoxField){var s=n;s.itemsCount>0?this.addTextBoxFieldItems(s):this.addTextBoxField(s,r,s.bounds,null)}else if(n instanceof d.PdfComboBoxField){var l=e.fieldAt(i);this.addComboBoxField(l,r)}else if(n instanceof d.PdfCheckBoxField){var A=n;A.itemsCount>1?this.addCheckBoxFieldItems(A):this.addCheckBoxField(A,r,A.bounds,null)}else if(n instanceof d.PdfListBoxField){var h=n;this.addListBoxField(h,r)}else if(n instanceof d.PdfRadioButtonListField)for(var p=0;p<n.itemsCount;p++){var c=n.itemAt(p);if(c){var g=c.page;g&&this.addRadioButtonField(c,g._pageIndex,n.name)}}else if(e.fieldAt(i)instanceof d.PdfSignatureField){var u=e.fieldAt(i);u.isSigned&&this.showDigitalSignatureAppearance?(this.mIsDigitalSignaturePresent=!0,u.flatten=!0):u.isSigned&&this.hideEmptyDigitalSignatureFields||(u.itemsCount>0?this.addSigntureFieldItems(u):this.addSignatureField(u,r,u.bounds))}}}this.retrieveInkAnnotation(this.formFieldLoadedDocument)},e.prototype.addTextBoxFieldItems=function(e){if(e instanceof d.PdfTextBoxField){var i=e;if(i.itemsCount>0)for(var n=0;n<i.itemsCount;n++){var o=i.itemAt(n).page;if(!t.isNullOrUndefined(o)){for(var r=0,a=0;a<this.formFieldLoadedDocument.pageCount&&o!==this.formFieldLoadedDocument.getPage(r);a++)r++;this.addTextBoxField(i,r,i.itemAt(n).bounds,i.itemAt(n).font)}}}},e.prototype.addTextBoxField=function(e,i,n,o){var r=new wo;if(r.FieldName=e.name,r.ActualFieldName=e.name,e.password?r.Name="Password":r.Name="Textbox",r.ToolTip=e.toolTip,t.isNullOrUndefined(n)?r.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height}:r.LineBounds={X:n.x,Y:n.y,Width:n.width,Height:n.height},r.TabIndex=e.tabIndex,r.PageIndex=i,r.BorderWidth=e.border.width,r.BorderStyle=e.border.style,t.isNullOrUndefined(e.backColor)?r.IsTransparent=!0:r.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},r.Alignment=e.textAlignment,r.MaxLength=e.maxLength,r.Visible=e.visibility,r.InsertSpaces=e.insertSpaces,t.isNullOrUndefined(o)?r.Font=this.fontConvert(e.font):r.Font=this.fontConvert(o),e._dictionary.has("FontStyle")){var a=e._dictionary.get("FontStyle");r.Font=this.parseFontStyle(a,r.Font)}r.Rotation=e.rotationAngle,r.IsReadonly=e.readOnly,r.IsRequired=e.required,t.isNullOrUndefined(e.color)||(r.FontColor={R:e.color[0],G:e.color[1],B:e.color[2]}),t.isNullOrUndefined(e.borderColor)?r.IsTransparent=!0:r.BorderColor={R:e.borderColor[0],G:e.borderColor[1],B:e.borderColor[2]},r.Text=e.text?e.text:"",r.Multiline=e.multiLine,r.RotationAngle=this.GetRotateAngle(e.page.rotation),e._dictionary.has("CustomData")&&(r.CustomData=JSON.parse(e._dictionary.get("CustomData"))),r.TextList=[],this.PdfRenderedFormFields.push(r)},e.prototype.addComboBoxField=function(e,i){var n=new wo;
10if(n.Name="DropDown",n.ToolTip=e.toolTip,n.FieldName=e.name,n.Font=this.fontConvert(e.font),n.IsAutoSize=e._isAutoFontSize,n.Selected=e.editable,e._dictionary.has("FontStyle")){var o=e._dictionary.get("FontStyle");n.Font=this.parseFontStyle(o,n.Font)}if(n.ActualFieldName=e.name,n.SelectedValue=e.selectedValue,e._options.length>0&&"string"!=typeof e._options[0]){var r=e._options.filter(function(e){return e[0]===n.SelectedValue});r&&r[0]&&(n.SelectedValue=r[0][1])}if(n.selectedIndex=e.selectedIndex,n.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height},n.TabIndex=e.tabIndex,n.PageIndex=i,t.isNullOrUndefined(e.backColor)?n.IsTransparent=!0:n.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},n.BorderWidth=e.border.width,n.BorderStyle=e.border.style,t.isNullOrUndefined(e.borderColor)?n.IsTransparent=!0:n.BorderColor={R:e.borderColor[0],G:e.borderColor[1],B:e.borderColor[2]},n.FontColor={R:e.color[0],G:e.color[1],B:e.color[2]},n.Rotation=e.rotationAngle,n.IsRequired=e.required,n.IsReadonly=e.readOnly,n.Visible=e.visibility,n.RotationAngle=this.GetRotateAngle(e.page.rotation),n.Alignment=e.textAlignment,e._dictionary.has("CustomData")&&(n.CustomData=JSON.parse(e._dictionary.get("CustomData"))),n.TextList=[],e._dictionary.has("Opt")){var a=e._dictionary.get("Opt");a.length>0&&(n.ComboBoxList=a.map(function(e){return"string"==typeof e?{itemName:e,itemValue:e}:"object"==typeof e?{itemName:e[1],itemValue:e[0]}:{itemName:"",itemValue:""}}))}if(0===n.TextList.length)for(var s=0;s<e.itemsCount;s++){var l=e.itemAt(s);l&&(n.TextList.push(l.text),0===s&&(n.Alignment=l.textAlignment))}this.PdfRenderedFormFields.push(n)},e.prototype.addCheckBoxFieldItems=function(e){if(e instanceof d.PdfCheckBoxField){var i=e;if(i.itemsCount>0)for(var n=0;n<i.itemsCount;n++){var o=i.itemAt(n).page;if(!t.isNullOrUndefined(o)){for(var r=0,a=0;a<this.formFieldLoadedDocument.pageCount&&o!==this.formFieldLoadedDocument.getPage(r);a++)r++;this.addCheckBoxField(i,r,i.itemAt(n).bounds,n.toString())}}}},e.prototype.addCheckBoxField=function(e,i,n,o){var r=new wo;r.Name="CheckBox",r.ToolTip=e.toolTip,n.IsEmpty?r.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height}:r.LineBounds={X:n.x,Y:n.y,Width:n.width,Height:n.height},r.Selected=e.checked,r.TabIndex=e.tabIndex,r.GroupName=e.name.replace(/[^0-9a-zA-Z]+/g,""),r.ActualFieldName=e.name,r.PageIndex=i,r.BorderWidth=e.border.width,t.isNullOrUndefined(e.backColor)?r.IsTransparent=!0:r.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},r.BorderStyle=e.border.style,t.isNullOrUndefined(e.borderColor)?r.IsTransparent=!0:r.BorderColor={R:e.borderColor[0],G:e.borderColor[1],B:e.borderColor[2]},r.RotationAngle=this.GetRotateAngle(e.page.rotation),r.IsReadonly=e.readOnly,r.IsRequired=e.required,r.Visible=e.visibility;var a=e._dictionary._get("ExportValue");if(e._dictionary._get("ExportValue")&&!t.isNullOrUndefined(a)&&(r.Value=a),!t.isNullOrUndefined(o)){r.CheckBoxIndex=o;var s=e.itemAt(parseInt(o,10));t.isNullOrUndefined(s)||(r.Selected=s.checked)}r.RotationAngle=this.GetRotateAngle(e.page.rotation),e._dictionary.has("CustomData")&&(r.CustomData=JSON.parse(e._dictionary.get("CustomData"))),this.PdfRenderedFormFields.push(r)},e.prototype.addListBoxField=function(e,i){var n=new wo;n.Name="ListBox",n.ToolTip=e.toolTip,n.Text=e.name.replace(/[^0-9a-zA-Z]+/g,""),n.ActualFieldName=e.name;var o=e.itemsCount;if(o>0){var r=e.selectedIndex;if(Array.isArray(r))for(s=0;s<r.length;s++)n.SelectedList.push(r[parseInt(s.toString(),10)]);else n.SelectedList.push(r)}if(n.Font=this.fontConvert(e.font),e._dictionary.has("FontStyle")){var a=e._dictionary.get("FontStyle");n.Font=this.parseFontStyle(a,n.Font)}n.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height},n.TabIndex=e.tabIndex,n.PageIndex=i,n.BorderWidth=e.border.width,n.BorderStyle=e.border.style,t.isNullOrUndefined(e.backColor)?n.IsTransparent=!0:n.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},n.FontColor={R:e.color[0],G:e.color[1],B:e.color[2]},t.isNullOrUndefined(e.borderColor)||(n.BorderColor={R:e.borderColor[0],G:e.borderColor[1],B:e.borderColor[2]}),n.Rotation=e.rotationAngle,n.IsReadonly=e.readOnly,n.IsRequired=e.required,n.Visible=e.visibility,n.MultiSelect=e.multiSelect,o>0&&Array.isArray(e.selectedIndex)&&Array.isArray(e.selectedValue)&&(n.selectedIndex=e.selectedIndex[0],n.SelectedValue=e.selectedValue[0]);for(var s=0;s<o;s++){var l=e._kidsCount>0?e.itemAt(s):e._options[parseInt(s.toString(),10)];l&&(n.TextList.push(e._kidsCount>0?l.text:l),0===s&&(n.Alignment=e.textAlignment))}n.RotationAngle=this.GetRotateAngle(e.page.rotation),e._dictionary.has("CustomData")&&(n.CustomData=JSON.parse(e._dictionary.get("CustomData"))),this.PdfRenderedFormFields.push(n)},e.prototype.addRadioButtonField=function(e,i,n){var o=e._field,r=new wo;r.Name="RadioButton",r.ToolTip=o.toolTip,t.isNullOrUndefined(o.actualName)||(r.GroupName=o.actualName.replace(/[^0-9a-zA-Z]+/g,""),r.ActualFieldName=n),r.TabIndex=o.tabIndex,r.Selected=e.selected,r.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height},r.Value=e.value,r.PageIndex=i,t.isNullOrUndefined(e.backColor)?r.IsTransparent=!0:r.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},r.BorderWidth=e.border.width,r.BorderStyle=e.border.style,r.BorderColor={R:o.borderColor[0],G:o.borderColor[1],B:o.borderColor[2]},r.Rotation=o.rotationAngle,r.IsRequired=o.required,r.IsReadonly=o.readOnly,r.Visible=o.visibility,r.RotationAngle=this.GetRotateAngle(e.page.rotation),o._dictionary.has("CustomData")&&(r.CustomData=JSON.parse(o._dictionary.get("CustomData"))),this.PdfRenderedFormFields.push(r)},e.prototype.checkTransparent=function(e){var t=!1;
10return 0===e.R&&0===e.G&&0===e.B&&(t=!0),t},e.prototype.GetRotateAngle=function(e){var t=0;switch(e){case 0:t=0;break;case 1:t=-90;break;case 2:t=-180;break;case 3:t=-270}return t},e.prototype.drawFieldFreeTextAnnotations=function(e,i,n,o,r,a){for(var s=JSON.parse(e),l=JSON.parse(o),A=i.page,h=0;h<this.formFieldLoadedDocument.pageCount&&A!==this.formFieldLoadedDocument.getPage(h);h++);if(!t.isNullOrUndefined(s)&&""!==s){var p=this.convertPixelToPoint(l.x),c=this.convertPixelToPoint(l.y),g=this.convertPixelToPoint(l.width),u=this.convertPixelToPoint(l.height),f=new d.PdfFreeTextAnnotation(p,c,g,u);f.setAppearance(!0),f._dictionary.set("T",n);var m=a>0?a:u/2,w=d.PdfFontFamily.helvetica;if(!t.isNullOrUndefined(r)){var C=r;C.includes("Times New Roman")?w=d.PdfFontFamily.timesRoman:C.includes("Courier")?w=d.PdfFontFamily.courier:C.includes("Symbol")?w=d.PdfFontFamily.symbol:C.includes("ZapfDingbats")&&(w=d.PdfFontFamily.zapfDingbats)}var B=this.getFontStyle();f.font=new d.PdfStandardFont(w,this.convertPixelToPoint(m),B),f.text=s,f.rotationAngle=this.getRotateAngle(A.rotation),f.flags=d.PdfAnnotationFlag.print,f.setValues("AnnotationType","Signature"),f.setAppearance(!0),A.annotations.add(f)}},e.prototype.drawFieldImage=function(e,i,n,o){for(var r=JSON.parse(e),a=JSON.parse(o),s=i.page,l=0;l<this.formFieldLoadedDocument.pageCount&&s!==this.formFieldLoadedDocument.getPage(l);l++);if(!t.isNullOrUndefined(r)&&""!==r){var A=r.toString().split(",")[1],h=this.convertPixelToPoint(a.x),p=this.convertPixelToPoint(a.y),c=this.convertPixelToPoint(a.width),g=this.convertPixelToPoint(a.height),u=new d.PdfRubberStampAnnotation(h,p,c,g),f=new d.PdfBitmap(A);u.appearance.normal.graphics.drawImage(f,0,0,c,g),u.rotationAngle=this.getRotateAngle(s.rotation),u._dictionary.set("T",n),u.flags=d.PdfAnnotationFlag.print,u.setAppearance(!0),s.annotations.add(u)}},e.prototype.drawFieldPath=function(e,t,i,n){for(var o=JSON.parse(e),r=JSON.parse(n),a=t.page,s=0,l=0;l<this.formFieldLoadedDocument.pageCount&&a!==this.formFieldLoadedDocument.getPage(l);l++)s++;if(o.length>0){var A=this.GetRotateAngle(a.rotation),h=this.convertPixelToPoint(r.x),p=this.convertPixelToPoint(r.y),c=this.convertPixelToPoint(r.width),g=this.convertPixelToPoint(r.height);0!==A&&(h=this.convertPixelToPoint(t.bounds.x),p=this.convertPixelToPoint(t.bounds.y),c=this.convertPixelToPoint(t.bounds.width),g=this.convertPixelToPoint(t.bounds.height));for(var u=-1,f=-1,m=-1,w=-1,C=0;C<o.length;C++){T=o[parseInt(C.toString(),10)];if(-1===u)u=T.x,f=T.y,m=T.x,w=T.y;else{var B=T.x,S=T.y;u>=B&&(u=B),f>=S&&(f=S),m<=B&&(m=B),w<=S&&(w=S)}}var y=(m-u)/c,I=(w-f)/g,E=[],v=0;if(0!==A){for(var b=0;b<o.length;b++){if("M"===(P=(T=o[parseInt(b.toString(),10)]).command.toString())&&0!==b){v=b;break}E.push(parseFloat(T.x)),E.push(parseFloat(T.y))}E=[];for(F=0;F<o.length;F++){T=o[parseInt(F.toString(),10)];E.push((parseFloat(T.x)-u)/y+h),E.push(this.formFieldLoadedDocument.getPage(s).size[1]-(parseFloat(T.y)-f)/I-p)}}else for(l=0;l<o.length;l++){if("M"===(P=(T=o[parseInt(l.toString(),10)]).command.toString())&&0!==l){v=l;break}E.push((parseFloat(T.x)-u)/y+h);N=(parseFloat(T.y)-f)/I;E.push(this.formFieldLoadedDocument.getPage(s).size[1]-N-p)}var V=new d.PdfInkAnnotation([h,p,c,g],E);V.flags=d.PdfAnnotationFlag.print;var D={x:V.bounds.x,y:a.size[1]-(V.bounds.y+V.bounds.height),width:V.bounds.width,height:V.bounds.height};if(V.bounds=D,V.border.width=0,E=[],0!==A){for(var x=[],Q=v;Q<o.length;Q++)"M"===(P=(T=o[parseInt(Q.toString(),10)]).command.toString())&&Q!==v&&(x.push(E),E=[]),E.push(parseFloat(T.x)),E.push(parseFloat(T.y));E.length>0&&x.push(E);for(var M=0;M<x.length;M++){if(E=[],x[parseInt(M.toString(),10)].length>0){for(var F=0;F<o.length;F++){var T=o[parseInt(F.toString(),10)];E.push((parseFloat(T.x)-u)/y+h),E.push(this.formFieldLoadedDocument.getPage(s).size[1]-(parseFloat(T.y)-f)/I-p)}V.inkPointsCollection.push(E)}E=[]}}else{for(var k=0;k<o.length;k++){var P=(T=o[parseInt(k.toString(),10)]).command.toString();"M"===P&&0!==k&&(V.inkPointsCollection.push(E),E=[]),E.push((parseFloat(T.x)-u)/y+h);var N=(parseFloat(T.y)-f)/I;E.push(this.formFieldLoadedDocument.getPage(s).size[1]-N-p)}E.length>0&&V.inkPointsCollection.push(E)}V._dictionary.set("T",i),V.setAppearance(!0),this.formFieldLoadedDocument.getPage(s).annotations.add(V)}},e.prototype.addSigntureFieldItems=function(e){if(e instanceof d.PdfSignatureField){var i=e;if(i.itemsCount>0)for(var n=0;n<i.itemsCount;n++)if(!t.isNullOrUndefined(i.itemAt(n).page)){for(var o=i.itemAt(n).page,r=0,a=0;a<this.formFieldLoadedDocument.pageCount&&o!==this.formFieldLoadedDocument.getPage(r);a++)r++;this.addSignatureField(i,r,i.itemAt(n).bounds)}}},e.prototype.addSignatureField=function(e,i,n){var o=new wo;
10o.Name="SignatureField",o.ToolTip=e.toolTip,o.FieldName=e.name,o.ActualFieldName=e.name,n.IsEmpty?o.LineBounds={X:e.bounds.x,Y:e.bounds.y,Width:e.bounds.width,Height:e.bounds.height}:o.LineBounds={X:n.x,Y:n.y,Width:n.width,Height:n.height},o.PageIndex=i,o.TabIndex=e.tabIndex,o.BorderWidth=e.border.width,o.BorderStyle=e.border.style,o.IsReadonly=e.readOnly,o.IsRequired=e.required,o.Visible=e.visibility,t.isNullOrUndefined(e.backColor)?o.IsReadonly&&(o.IsTransparent=!0):o.BackColor={R:e.backColor[0],G:e.backColor[1],B:e.backColor[2]},o.IsSignatureField=!0,o.Rotation=e.rotationAngle,o.RotationAngle=this.GetRotateAngle(e.page.rotation);var r=e._dictionary.get("InitialField");t.isNullOrUndefined(r)||(o.IsInitialField=r),e._dictionary.has("CustomData")&&(o.CustomData=JSON.parse(e._dictionary.get("CustomData"))),this.PdfRenderedFormFields.push(o)},e.prototype.retrieveInkAnnotation=function(e){for(var i=1,n=0;n<e.pageCount;n++)for(var o=e.getPage(n),r=o.annotations,a=parseInt(r.count.toString(),10),s=0;s<a;s++){var l=r.at(s);if(l instanceof d.PdfInkAnnotation){var A="",h=[],p=[];if((S=l)._dictionary.has("T")&&!S._dictionary.has("NM")){if(!t.isNullOrUndefined(S.inkPointsCollection))for(var c=0;c<S.inkPointsCollection.length;c++)for(var g=S.inkPointsCollection[parseInt(c.toString(),10)],u=0;u<g.length;u+=2){var f=void 0,m=void 0;o.rotation===d.PdfRotationAngle.angle90?(f=g[u+1],m=g[parseInt(u.toString(),10)]):o.rotation===d.PdfRotationAngle.angle180?(f=o.size[0]-g[u+1],m=g[u+1]):o.rotation===d.PdfRotationAngle.angle270?(f=o.size[0]-g[u+1],m=o.size[1]-g[parseInt(u.toString(),10)]):(f=g[parseInt(u.toString(),10)],m=o.size[1]-g[u+1]),A+=0===u?"M"+f+","+m+" ":"L"+f+","+m+" ",h.push(f),p.push(m)}var w=new wo;S._dictionary.has("T")&&(w.FieldName=S._dictionary.get("T")),w.FieldName=w.FieldName+"_"+i,w.Name="ink";var C=o.rotation,B=!1;0!==l.rotationAngle&&(B=!0);y={X:S.bounds.x,Y:S.bounds.y,Width:S.bounds.width,Height:S.bounds.height};w.LineBounds=this.getBounds(y,o.size[1],o.size[0],C,!B),w.Value=A,w.PageIndex=n,w.BorderColor=t.isNullOrUndefined(S.color)?{R:0,G:0,B:0}:[S.color[0],S.color[1],S.color[2]],w.Rotation=l.rotationAngle,this.PdfRenderedFormFields.push(w),i++}}else if(l instanceof d.PdfFreeTextAnnotation){var S=l;if(S._dictionary.has("T")&&!S._dictionary.has("NM")&&!S._dictionary.has("M")){(w=new wo).FieldName=S._dictionary.get("T")+"_"+i;var y={X:S.bounds.x,Y:S.bounds.y,Width:S.bounds.width,Height:S.bounds.height};w.LineBounds=y,w.Name="SignatureText",w.FontFamily=this.getFontFamilyString(S.font._fontFamily),w.FontSize=this.convertPointtoPixel(S.font.size),w.Value=S.text,w.PageIndex=n,w.BorderColor=S.borderColor,this.PdfRenderedFormFields.push(w),i++}}else if(l instanceof d.PdfRubberStampAnnotation){for(var I=l,E=[],v=0,b=this.PdfRenderedFormFields;v<b.length;v++){var V=b[v];if(V.ActualFieldName===I._dictionary._map.T){E.push(V);break}}if(I._dictionary.has("T")&&!I._dictionary.has("NM")&&!I._dictionary.has("M")&&E.length>0&&this.pdfViewerBase.isSignatureWithInRect(this.pdfViewerBase.canvasRectArray(E[0].LineBounds),this.pdfViewerBase.canvasRectArray(I.bounds))){(w=new wo).FieldName=I._dictionary.get("T")+"_"+i;var D=l._dictionary.get("AP"),x=new lo(this.pdfViewer,this.pdfViewerBase);if(w.LineBounds={X:I.bounds.x,Y:I.bounds.y,Width:I.bounds.width,Height:I.bounds.height},w.Name="SignatureImage",w.PageIndex=n,i++,t.isNullOrUndefined(D)){var Q=l._dictionary.get("AP");if(!t.isNullOrUndefined(Q)&&!t.isNullOrUndefined(Q.dictionary)&&Q.dictionary.has("N")){var M=Q.dictionary;t.isNullOrUndefined(M)||x.findStampImage(l)}}else if(D.has("N")){var F=l.createTemplate();0===F.size[0]||0===F.size[1]||t.isNullOrUndefined(F._appearance)?x.findStampImage(l):(w.PageIndex=n,x.findStampTemplate(l,w,w.Rotation,x.annotationOrder.length-1,!0,w.FieldName,this.PdfRenderedFormFields,w.PageIndex))}}}}},e.prototype.getFontFamilyString=function(e){switch(e){case d.PdfFontFamily.helvetica:return"Helvetica";case d.PdfFontFamily.timesRoman:return"Times New Roman";case d.PdfFontFamily.courier:return"Courier";case d.PdfFontFamily.symbol:return"Symbol";case d.PdfFontFamily.zapfDingbats:return"ZapfDingbats";default:return"Helvetica"}},e}(),wo=function(){function e(){this.ActualFieldName=null,this.FontColor={R:0,G:0,B:0},this.BackColor={R:0,G:0,B:0},this.BorderColor={R:0,G:0,B:0},this.CheckBoxGroupName=null,this.Alignment=0,this.BorderStyle=0,this.BorderWidth=0,this.CheckBoxGroupName=null,this.CheckBoxIndex=null,this.ComboBoxList=[],this.FieldName=null,this.Font=null,this.FontFamily=null,this.FontSize=0,this.FontStyle=0,this.GroupName=null,this.InsertSpaces=!1,this.IsAutoSize=!1,this.IsInitialField=!1,this.IsReadonly=!1,this.IsRequired=!1,this.IsSignatureField=!1,this.IsTransparent=!1,this.MaxLength=0,this.MultiSelect=!1,this.Multiline=!1,this.Name=null,this.PageIndex=0,this.Rotation=0,this.RotationAngle=0,this.Selected=!1,this.SelectedList=[],this.SelectedValue=null,this.TabIndex=0,this.Text=null,this.TextList=[],this.ToolTip=null,this.Value=null,this.Visible=0,this.CustomData=null}return e}(),Co=function(){function e(e,t){this.formats=["M/d/yyyy h:mm:ss tt","M/d/yyyy, h:mm:ss tt","M/d/yyyy h:mm tt","MM/dd/yyyy hh:mm:ss","M/d/yyyy h:mm:ss","M/d/yyyy hh:mm tt","M/d/yyyy hh tt","M/d/yyyy h:mm","M/d/yyyy h:mm","MM/dd/yyyy hh:mm","M/dd/yyyy hh:mm","dd/M/yyyy h:mm:ss tt","dd/M/yyyy, h:mm:ss tt","M/d/yy, h:mm:ss tt","yyyy/MM/dd, h:mm:ss tt","dd/MMM/yy, h:mm:ss tt","yyyy-MM-dd, h:mm:ss tt","dd-MMM-yy, h:mm:ss tt","MM-dd-yy, h:mm:ss tt","YYYY-MM-DDTHH:mm:ss.sssZ","±YYYYYY-MM-DDTHH:mm:ss.sssZ","yyyy-MM-ddTHH:mm:ss.fffZ"],this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.addShape=function(e,n){var o=e;this.checkAnnotationLock(o);if(t.isNullOrUndefined(o.shapeAnnotationType)||"Line"!==o.shapeAnnotationType)if(t.isNullOrUndefined(o.shapeAnnotationType)||"Square"!==o.shapeAnnotationType)if(t.isNullOrUndefined(o.shapeAnnotationType)||"Circle"!==o.shapeAnnotationType)if(t.isNullOrUndefined(o.shapeAnnotationType)||"Polygon"!==o.shapeAnnotationType){if(!t.isNullOrUndefined(o.shapeAnnotationType)&&"Polyline"===o.shapeAnnotationType){var r=JSON.parse(o.vertexPoints),a=this.getSaveVertexPoints(r,n),s=JSON.parse(o.bounds),l=new d.PdfPolyLineAnnotation(a);
vendor: 11,509 bytes, line 10
10if(l.bounds=new i.Rect(this.convertPixelToPoint(s.left?s.left:0),this.convertPixelToPoint(s.top?s.top:0),this.convertPixelToPoint(s.width?s.width:0),this.convertPixelToPoint(s.height?s.height:0)),t.isNullOrUndefined(o.note)||(l.text=o.note.toString()),l.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),t.isNullOrUndefined(o.subject)||(l.subject=o.subject.toString()),l._dictionary.set("NM",o.annotName.toString()),!t.isNullOrUndefined(o.strokeColor)){var A=JSON.parse(o.strokeColor),h=[A.r,A.g,A.b];l.color=h}if(!t.isNullOrUndefined(o.fillColor)){Q=JSON.parse(o.fillColor);if(!this.isTransparentColor(Q)){M=[Q.r,Q.g,Q.b];l.innerColor=M}Q.a<1&&Q.a>0?(l._dictionary.update("FillOpacity",Q.a),Q.a=1):l._dictionary.update("FillOpacity",Q.a)}t.isNullOrUndefined(o.opacity)||(l.opacity=o.opacity);var p=new d.PdfAnnotationBorder;p.width=o.thickness,p.style=o.borderStyle,p.dash=o.borderDashArray,l.border=p,l.rotationAngle=this.getRotateAngle(o.rotateAngle),l.beginLineStyle=this.getLineEndingStyle(o.lineHeadStart),l.endLineStyle=this.getLineEndingStyle(o.lineHeadEnd);U=void 0;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),l.modifiedDate=U),(F=o.comments).length>0)for(Z=0;Z<F.length;Z++)l.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],l.bounds));T=o.review;if(l.reviewHistory.add(this.addReviewCollections(T,l.bounds)),!t.isNullOrUndefined(o.isCloudShape)&&o.isCloudShape){var c=new d._PdfDictionary(n._crossReference);c.update("S",d._PdfName.get("C")),c.update("I",o.cloudIntensity),l._dictionary.update("BE",c);var g=JSON.parse(o.rectangleDifference);if(g.length>0){D=this.getRDValues(g);l._dictionary.update("RD",D)}}this.preserveIsLockProperty(o,l),l.setAppearance(!0),t.isNullOrUndefined(o.customData)||l.setValues("CustomData",JSON.stringify(o.customData)),t.isNullOrUndefined(o.allowedInteractions)||l.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),n.annotations.add(l)}}else{var r=JSON.parse(o.vertexPoints),a=this.getSaveVertexPoints(r,n),s=JSON.parse(o.bounds);t.isNullOrUndefined(s.left)&&(o.bounds.left=0),t.isNullOrUndefined(s.top)&&(o.bounds.top=0);var u=this.convertPixelToPoint(s.left),f=this.convertPixelToPoint(s.top),m=this.convertPixelToPoint(s.width),w=this.convertPixelToPoint(s.height),C=new d.PdfPolygonAnnotation(a);if(C.bounds=new i.Rect(u,f,m,w),t.isNullOrUndefined(o.note)||(C.text=o.note.toString()),C.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),t.isNullOrUndefined(o.subject)||(C.subject=o.subject.toString()),C._dictionary.set("NM",o.annotName.toString()),!t.isNullOrUndefined(o.strokeColor)){h=[(A=JSON.parse(o.strokeColor)).r,A.g,A.b];C.color=h}if(!t.isNullOrUndefined(o.fillColor)){Q=JSON.parse(o.fillColor);if(!this.isTransparentColor(Q)){M=[Q.r,Q.g,Q.b];C.innerColor=M}Q.a<1&&Q.a>0?(C._dictionary.update("FillOpacity",Q.a),Q.a=1):C._dictionary.update("FillOpacity",Q.a)}t.isNullOrUndefined(o.opacity)||(C.opacity=o.opacity),(p=new d.PdfAnnotationBorder).width=o.thickness,p.style=o.borderStyle,p.dash=o.borderDashArray,C.border=p,C.rotationAngle=this.getRotateAngle(o.rotateAngle);U=void 0;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),C.modifiedDate=U),(F=o.comments).length>0)for(Z=0;Z<F.length;Z++)C.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],C.bounds));T=o.review;if(C.reviewHistory.add(this.addReviewCollections(T,C.bounds)),!t.isNullOrUndefined(o.isCloudShape)&&o.isCloudShape){var B=new d.PdfBorderEffect;if(B.style=d.PdfBorderEffectStyle.cloudy,B.intensity=o.cloudIntensity,C.borderEffect=B,(g=JSON.parse(o.rectangleDifference)).length>0){D=this.getRDValues(g);C._dictionary.update("RD",D)}}this.preserveIsLockProperty(o,C),t.isNullOrUndefined(o.customData)||C.setValues("CustomData",JSON.stringify(o.customData)),t.isNullOrUndefined(o.allowedInteractions)||C.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),C.setAppearance(!0),n.annotations.add(C)}else{var s=JSON.parse(o.bounds),u=t.isNullOrUndefined(s.left)?0:this.convertPixelToPoint(s.left),S=t.isNullOrUndefined(s.top)?0:this.convertPixelToPoint(s.top),m=t.isNullOrUndefined(s.width)?0:this.convertPixelToPoint(s.width),w=t.isNullOrUndefined(s.height)?0:this.convertPixelToPoint(s.height),y=0,I=0;0!==(v=this.getCropBoxValue(n,!1)).x&&0!==v.y&&v.x===u?(y=v.x,I=v.y):0===v.x&&n.cropBox[2]===n.size[0]&&v.y===n.size[1]&&(y=v.x,I=v.y);var E=new d.PdfCircleAnnotation(y+u,I+S,m,w);if(t.isNullOrUndefined(o.note)||(E.text=o.note.toString()),E.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),E._dictionary.set("NM",o.annotName.toString()),t.isNullOrUndefined(o.subject)||(E.subject=o.subject.toString()),!t.isNullOrUndefined(o.strokeColor)){h=[(A=JSON.parse(o.strokeColor)).r,A.g,A.b];E.color=h}if(!t.isNullOrUndefined(o.fillColor)){Q=JSON.parse(o.fillColor);if(!this.isTransparentColor(Q)){M=[Q.r,Q.g,Q.b];E.innerColor=M}Q.a<1&&Q.a>0?(E._dictionary.update("FillOpacity",Q.a),Q.a=1):E._dictionary.update("FillOpacity",Q.a)}t.isNullOrUndefined(o.opacity)||(E.opacity=o.opacity),(p=new d.PdfAnnotationBorder).width=o.thickness,p.style=o.borderStyle,p.dash=o.borderDashArray,E.border=p,E.rotationAngle=this.getRotateAngle(o.rotateAngle);U=void 0;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),E.modifiedDate=U),(F=o.comments).length>0)for(Z=0;Z<F.length;Z++)E.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],E.bounds));T=o.review;if(E.reviewHistory.add(this.addReviewCollections(T,E.bounds)),!t.isNullOrUndefined(o.isCloudShape)&&o.isCloudShape&&((B=new d.PdfBorderEffect).style=d.PdfBorderEffectStyle.cloudy,B.intensity=o.cloudIntensity,E._borderEffect=B,(g=JSON.parse(o.rectangleDifference)).length>0)){D=this.getRDValues(g);E._dictionary.update("RD",D)}this.preserveIsLockProperty(o,E),t.isNullOrUndefined(o.customData)||E.setValues("CustomData",JSON.stringify(o.customData)),o.allowedInteractions&&null!=o.allowedInteractions&&E.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),E.setAppearance(!0),n.annotations.add(E)}else{s=JSON.parse(o.bounds);t.isNullOrUndefined(s.left)&&(o.bounds.left=0),t.isNullOrUndefined(s.top)&&(o.bounds.top=0);var v=this.getCropBoxValue(n,!1),u=this.convertPixelToPoint(s.left),b=this.convertPixelToPoint(s.top),m=this.convertPixelToPoint(s.width),w=this.convertPixelToPoint(s.height),y=0,I=0;0!==v.x&&0!==v.y&&v.x===u?(y=v.x,I=v.y):0===v.x&&n.cropBox[2]===n.size[0]&&v.y===n.size[1]&&(y=v.x,I=v.y);var V=new d.PdfSquareAnnotation(y+u,I+b,m,w);if(t.isNullOrUndefined(o.note)||(V.text=o.note.toString()),V.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),V._dictionary.set("NM",o.annotName.toString()),t.isNullOrUndefined(o.subject)||(V.subject=o.subject.toString()),!t.isNullOrUndefined(o.strokeColor)){h=[(A=JSON.parse(o.strokeColor)).r,A.g,A.b];V.color=h}if(!t.isNullOrUndefined(o.fillColor)){Q=JSON.parse(o.fillColor);if(!this.isTransparentColor(Q)){M=[Q.r,Q.g,Q.b];V.innerColor=M}Q.a<1&&Q.a>0?(V._dictionary.update("FillOpacity",Q.a),Q.a=1):V._dictionary.update("FillOpacity",Q.a)}t.isNullOrUndefined(o.opacity)||(V.opacity=o.opacity),(p=new d.PdfAnnotationBorder).width=o.thickness,p.style=o.borderStyle,p.dash=o.borderDashArray,V.border=p,V.rotationAngle=this.getRotateAngle(o.rotateAngle);U=void 0;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),V.modifiedDate=U),(F=o.comments).length>0)for(Z=0;Z<F.length;Z++)V.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],V.bounds));T=o.review;if(V.reviewHistory.add(this.addReviewCollections(T,V.bounds)),!t.isNullOrUndefined(o.isCloudShape)&&o.isCloudShape&&((B=new d.PdfBorderEffect).style=d.PdfBorderEffectStyle.cloudy,B.intensity=o.cloudIntensity,V.borderEffect=B,(g=JSON.parse(o.rectangleDifference)).length>0)){var D=this.getRDValues(g);V._dictionary.update("RD",D)}this.preserveIsLockProperty(o,V),t.isNullOrUndefined(o.customData)||V.setValues("CustomData",JSON.stringify(o.customData)),o.allowedInteractions&&null!=o.allowedInteractions&&V.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),V.setAppearance(!0),n.annotations.add(V)}else{var r=JSON.parse(o.vertexPoints),a=this.getSaveVertexPoints(r,n),x=new d.PdfLineAnnotation(a);if(t.isNullOrUndefined(o.note)||(x.text=o.note.toString()),x.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),x._dictionary.set("NM",o.annotName.toString()),t.isNullOrUndefined(o.subject)||(x.subject=o.subject.toString()),!t.isNullOrUndefined(o.strokeColor)){h=[(A=JSON.parse(o.strokeColor)).r,A.g,A.b];x.color=h}if(!t.isNullOrUndefined(o.fillColor)){var Q=JSON.parse(o.fillColor);if(!t.isNullOrUndefined(Q.r)&&!t.isNullOrUndefined(Q.g)&&!t.isNullOrUndefined(Q.b)&&!t.isNullOrUndefined(Q.a)&&Q.a>0){var M=[Q.r,Q.g,Q.b];x.innerColor=M}}t.isNullOrUndefined(o.opacity)||(x.opacity=o.opacity),(p=new d.PdfAnnotationBorder).width=o.thickness,p.style=o.borderStyle,p.dash=o.borderDashArray,x.border=p,x.rotationAngle=this.getRotateAngle(o.rotateAngle),x.lineEndingStyle.begin=this.getLineEndingStyle(o.lineHeadStart),x.lineEndingStyle.end=this.getLineEndingStyle(o.lineHeadEnd);U=void 0;t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),x.modifiedDate=U);var F=o.comments,s=JSON.parse(o.bounds);if(x.bounds=s,x.bounds.x=s.left,x.bounds.y=s.top,F.length>0)for(Z=0;Z<F.length;Z++)x.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],x.bounds));var T=o.review;x.reviewHistory.add(this.addReviewCollections(T,x.bounds)),this.preserveIsLockProperty(o,x),t.isNullOrUndefined(o.customData)||x.setValues("CustomData",JSON.stringify(o.customData)),o.allowedInteractions&&null!=o.allowedInteractions&&x.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),x.setAppearance(!0),n.annotations.add(x)}if(!t.isNullOrUndefined(o.enableShapeLabel)&&o.enableShapeLabel){var k=JSON.parse(o.labelBounds.toString()),u=this.convertPixelToPoint(k.left),P=this.convertPixelToPoint(k.top);"Line"===o.shapeAnnotationType&&(P-=5);var N=this.convertPixelToPoint(k.width),R=this.convertPixelToPoint(k.height),L=new d.PdfFreeTextAnnotation(P,u,N,R);L.author=o.author;var U=void 0;t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(U=new Date(Date.parse(o.modifiedDate)),L.modifiedDate=U),L._dictionary.set("NM",o.annotName.toString()+"freeText"),L.lineEndingStyle=d.PdfLineEndingStyle.openArrow,L.annotationIntent=d.PdfAnnotationIntent.freeTextTypeWriter;var O=0;t.isNullOrUndefined(o.fontSize)||(O=parseFloat(o.fontSize)),O=!t.isNullOrUndefined(O)&&!isNaN(O)&&O>0?O:16;var z=this.getFontFamily(o.fontFamily),H={},Y=this.getFontStyle(H);if(L.font=new d.PdfStandardFont(z,O,Y),L.subject="Text Box",L.text="",t.isNullOrUndefined(o.labelContent)||null!==o.labelContent.toString()&&(L.text=o.labelContent.toString()),L.rotationAngle=this.getRotateAngle(o.rotateAngle),L.border=new d.PdfAnnotationBorder,Object.prototype.hasOwnProperty.call(o,"thickness")&&!t.isNullOrUndefined(o.thickness)){var G=parseInt(o.thickness.toString(),10);L.border.width=G}L.opacity=1,Object.prototype.hasOwnProperty.call(o,"opacity")&&(t.isNullOrUndefined(o.opacity)||(L.op
10acity=parseFloat(o.opacity)));var J=[(h=JSON.parse(o.labelBorderColor)).r,h.g,h.b];L.borderColor=J;var j=[(Q=JSON.parse(o.labelFillColor)).r,Q.g,Q.b];L.color=j;var K=JSON.parse(o.fontColor),W=[K.r,K.g,K.b];if(L.textMarkUpColor=W,(F=L.comments).length>0)for(var Z=0;Z<F.length;Z++)L.comments.add(this.addCommentsCollection(F[parseInt(Z.toString(),10)],L.bounds));t.isNullOrUndefined(o.customData)||L.setValues("CustomData",o.customData),n.annotations.add(L)}},e.prototype.saveInkSignature=function(e,n){var o=e,r=JSON.parse(o.bounds),a=JSON.parse(o.data.toString()),s=this.getInkRotateAngle(n.rotation.toString()),l=this.convertPixelToPoint(r.x),A=this.convertPixelToPoint(r.y),h=this.convertPixelToPoint(r.width),p=this.convertPixelToPoint(r.height),c=o.opacity,g=parseInt(o.thickness.toString(),10);if(!t.isNullOrUndefined(o.strokeColor)){var u=JSON.parse(o.strokeColor),f=[u.r,u.g,u.b];o.color=f}for(var m=-1,w=-1,C=-1,B=-1,S=new d.PdfPath,y=0;y<a.length;y++){var I=a[parseInt(y.toString(),10)];S.addLine(I.x,I.y,0,0)}for(var E=this.getRotatedPathForMinMax(S._points,s),v=0;v<E.points.length;v+=2){var b=E.points[parseInt(v.toString(),10)];if(-1===m)m=b[0],w=b[1],C=b[0],B=b[1];else{var V=b[0],D=b[1];m>=V&&(m=V),w>=D&&(w=D),C<=V&&(C=V),B<=D&&(B=D)}}var x=(C-m)/h,Q=(B-w)/p;0===x?x=1:0===Q&&(Q=1);var M=[],F=0;if(0!==s){for(T=0;T<a.length;T++){if("M"===(G=(I=a[parseInt(T.toString(),10)]).command.toString())&&T!==F){F=T;break}M.push(parseFloat(I.x.toString())),M.push(parseFloat(I.y.toString()))}H=this.getRotatedPath(M,s);M=[];for(Y=0;Y<H._points.length;Y+=2)M.push((H._points[parseInt(Y.toString(),10)][0]-m)/x+l),M.push(n.size[1]-(H._points[parseInt(Y.toString(),10)][1]-w)/Q-A)}else for(var T=0;T<a.length;T++){if("M"===(G=(I=a[parseInt(T.toString(),10)]).command.toString())&&T!==F){F=T;break}M.push((I.x-m)/x+l);J=(I.y-w)/Q;M.push(n.size[1]-J-A)}var k=[o.color[0],o.color[1],o.color[2]],P=new d.PdfInkAnnotation([l,A,h,p],M),N=new i.Rect;if(N=new i.Rect(P.bounds.x,n.size[1]-(P.bounds.y+P.bounds.height),P.bounds.width,P.bounds.height),P.bounds=N,P.color=k,M=[],F>0)if(0!==s){for(var R=[],L=F;L<a.length;L++)"M"===(G=(I=a[parseInt(L.toString(),10)]).command.toString())&&L!==F&&(R.push(M),M=[]),M.push(I.x),M.push(I.y);M.length>0&&R.push(M);for(var U=0;U<R.length;U++){var O=[],z=R[parseInt(U.toString(),10)];if(z.length>0){for(var H=this.getRotatedPath(z,s),Y=0;Y<H._points.length;Y+=2)O.push((H._points[parseInt(Y.toString(),10)][0]-m)/x+l),O.push(n.size[1]-(H._points[parseInt(Y.toString(),10)][1]-w)/Q-A);P.inkPointsCollection.push(O)}O=[]}}else{for(L=F;L<a.length;L++){var G=(I=a[parseInt(L.toString(),10)]).command.toString();"M"===G&&L!==F&&(P.inkPointsCollection.push(M),M=[]),M.push((I.x-m)/x+l);var J=(I.y-w)/Q;M.push(n.size[1]-J-A)}M.length>0&&P.inkPointsCollection.push(M)}this.checkAnnotationLock(o);t.isNullOrUndefined(o.author)||t.isNullOrUndefined(o.author)&&""===o.author?o.author="Guest":P.author=t.isNullOrUndefined(o.author)?"Guest":""!==o.author.toString()?o.author.toString():"Guest",t.isNullOrUndefined(o.subject)||""===o.subject||(P.subject=o.subject.toString()),t.isNullOrUndefined(o.note)?t.isNullOrUndefined(o.notes)||(P.text=o.notes.toString()):P.text=o.note.toString();var j;t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(j=new Date(Date.parse(o.modifiedDate)),P.modifiedDate=j);var K=o.review;P.reviewHistory.add(this.addReviewCollections(K,P.bounds));var W=o.comments;if(W.length>0)for(L=0;L<W.length;L++)P.comments.add(this.addCommentsCollection(W[parseInt(L.toString(),10)],P.bounds));return this.preserveIsLockProperty(o,P),P.border.width=g,P.opacity=c,P._isEnableControlPoints=!1,P._dictionary.set("NM",o.annotName.toString()),P.rotationAngle=this.getRotateAngle(o.rotationAngle),t.isNullOrUndefined(o.customData)||P.setValues("CustomData",JSON.stringify(o.customData)),P.setAppearance(!0),n.annotations.add(P),o},e.prototype.getRotatedPath=function(e,t){for(var i=this.getRotatedPoints(e,t),n=new d.PdfPath,o=0;o<i.points.length;o+=2)n.addLine(i.points[parseInt(o.toString(),10)][0],i.points[parseInt(o.toString(),10)][1],i.points[parseInt((o+1).toString(),10)][0],i.points[o+1][1]);return n},e.prototype.getRotationMatrix=function(e){var t=e*(Math.PI/180),i=Math.cos(t),n=Math.sin(t);return[[i,-n,0],[n,i,0],[0,0,1]]},e.prototype.getRotatedPoints=function(e,t){for(var i=new Po,n=0;n<e.length;n+=2)i.moveTo(e[parseInt(n.toString(),10)],e[parseInt((n+1).toString(),10)]),i.lineTo(0,0);var o=this.getRotationMatrix(t);return i.transform(o),i},e.prototype.getRotatedPathForMinMax=function(e,t){for(var i=new Po,n=0;n<e.length;n+=2)i.moveTo(e[parseInt(n.toString(),10)][0],e[parseInt(n.toString(),10)][1]),i.lineTo(e[parseInt((n+1).toString(),10)][0],e[parseInt((n+1).toString(),10)][1]);var o=this.getRotationMatrix(t);return i.transform(o),i},e.prototype.addTextMarkup=function(e,n){var o=e,r=parseInt(o.pageNumber.toString(),10),a=n.getPage(r),s=new d.PdfTextMarkupAnnotation;switch(o.textMarkupAnnotationType.toString()){case"Highlight":s.textMarkupType=d.PdfTextMarkupAnnotationType.highlight;break;case"Strikethrough":s.textMarkupType=d.PdfTextMarkupAnnotationType.strikeOut;break;case"Underline":s.textMarkupType=d.PdfTextMarkupAnnotationType.underline;break;case"Squiggly":s.textMarkupType=d.PdfTextMarkupAnnotationType.squiggly}for(var l=JSON.parse(o.bounds),A=[],h=0;h<l.length;h++){var p=l[parseInt(h.toString(),10)],c=this.getCropBoxValue(a,!0);
vendor: 5,264 bytes, line 10
10t.isNullOrUndefined(p.left)||A.push(new i.Rect(c.x+this.convertPixelToPoint(p.left),c.y+this.convertPixelToPoint(p.top),Object.prototype.hasOwnProperty.call(p,"width")?this.convertPixelToPoint(p.width):0,Object.prototype.hasOwnProperty.call(p,"height")?this.convertPixelToPoint(p.height):0))}var g=new d.PdfTextMarkupAnnotation(null,0,0,0,0);A.length>0&&(g.bounds={x:A[0].x,y:A[0].y,width:A[0].width,height:A[0].height}),g.textMarkupType=s.textMarkupType;this.checkAnnotationLock(o);t.isNullOrUndefined(o.author)||t.isNullOrUndefined(o.author)&&""===o.author?o.author="Guest":g.author=t.isNullOrUndefined(o.author)?"Guest":""!==o.author.toString()?o.author.toString():"Guest",t.isNullOrUndefined(o.subject)||""===o.subject||(g.subject=o.subject.toString()),t.isNullOrUndefined(o.note)||(g.text=o.note.toString()),t.isNullOrUndefined(o.annotationRotation)||(g.rotateAngle=this.getRotateAngle(o.annotationRotation));var u;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(u=new Date(Date.parse(o.modifiedDate)),g.modifiedDate=u),g._dictionary.set("NM",o.annotName.toString()),!t.isNullOrUndefined(o.color)){v=[(E=JSON.parse(o.color)).r,E.g,E.b];g.color=v}if(t.isNullOrUndefined(o.opacity)||(g.opacity=o.opacity),A.length>0){for(var f=[],h=0;h<A.length;h++){var m=A[parseInt(h.toString(),10)],w=m.x,C=m.y,B=m.width,S=m.height;0!==w&&0!==C&&0!==B&&0!==S&&f.push([w,C,B,S])}g.boundsCollection=f}var y=o.comments;if(y.length>0)for(h=0;h<y.length;h++)g.comments.add(this.addCommentsCollection(y[parseInt(h.toString(),10)],g.bounds));var I=o.review;if(g.reviewHistory.add(this.addReviewCollections(I,g.bounds)),!t.isNullOrUndefined(o.color)){var E=JSON.parse(o.color),v=[E.r,E.g,E.b];g.textMarkUpColor=v}this.preserveIsLockProperty(o,g),t.isNullOrUndefined(o.customData)||g.setValues("CustomData",JSON.stringify(o.customData)),t.isNullOrUndefined(o.allowedInteractions)||g.setValues("AllowedInteractions",JSON.stringify(o.allowedInteractions)),t.isNullOrUndefined(o.textMarkupContent)||g._dictionary.set("TextMarkupContent",o.textMarkupContent.toString()),g.setAppearance(!0),a.annotations.add(g)},e.prototype.getCropBoxValue=function(e,t){var i=0,n=0;return null!=e&&(i=t?0:e.cropBox[0],n=t?0:e.cropBox[1]),{x:i,y:n}},e.prototype.getBothCropBoxValue=function(e){return[e.cropBox[0],e.cropBox[1]]},e.prototype.preserveIsLockProperty=function(e,i){var n=this.checkAnnotationLock(e),o=!1,r=!1;e.isCommentLock&&null!==e.isCommentLock&&(r=Boolean(e.isCommentLock.toString())),e.isPrint&&null!==e.isPrint&&(o=Boolean(e.isPrint.toString())),(!t.isNullOrUndefined(e.isLocked)&&e.isLocked||n)&&(n=!0),i.flags=n&&r&&o?d.PdfAnnotationFlag.locked|d.PdfAnnotationFlag.print|d.PdfAnnotationFlag.readOnly:n&&r?d.PdfAnnotationFlag.locked|d.PdfAnnotationFlag.readOnly:n&&o?d.PdfAnnotationFlag.locked|d.PdfAnnotationFlag.print:r&&o?d.PdfAnnotationFlag.print|d.PdfAnnotationFlag.readOnly:n?d.PdfAnnotationFlag.locked:r?d.PdfAnnotationFlag.readOnly:d.PdfAnnotationFlag.print},e.prototype.addCustomStampAnnotation=function(e,n){var o=e,r=JSON.parse(o.bounds),a=parseInt(o.pageNumber.toString(),10),s=this.getCropBoxValue(n,!1),l=0,A=0,h=(n.graphics,!t.isNullOrUndefined(o.template)&&""!==o.template);if(Object.prototype.hasOwnProperty.call(o,"wrapperBounds")&&!h){var p=o.wrapperBounds,c=this.calculateBoundsXY(p,r,a,n);l=c.x,A=c.y}else l=this.convertPixelToPoint(r.left),A=this.convertPixelToPoint(r.top);var g=0,u=0;0!==s.x&&0!==s.y&&s.x===l?(g=s.x,u=s.y):0===s.x&&n.cropBox[2]===n.size[0]&&s.y===n.size[1]&&(g=s.x,u=s.y),l+=g,A+=u;var f=this.convertPixelToPoint(r.width),m=this.convertPixelToPoint(r.height);t.isNullOrUndefined(o.stampAnnotationType)||"image"!==o.stampAnnotationType||" "===o.stampAnnotationPath||h||n.rotation!==d.PdfRotationAngle.angle90&&n.rotation!==d.PdfRotationAngle.angle270||(f=this.convertPixelToPoint(r.height),m=this.convertPixelToPoint(r.width));var w=o.opacity,C=o.rotateAngle;if(Object.prototype.hasOwnProperty.call(o,"annotationSettings")&&!t.isNullOrUndefined(o.annotationSettings)){var B=o.annotationSettings;t.isNullOrUndefined(B.isLock)||B.isLock}if(!t.isNullOrUndefined(o.stampAnnotationType)&&"image"===o.stampAnnotationType&&" "!==o.stampAnnotationPath||h){var S=new d.PdfRubberStampAnnotation(l,A,f,m);if(n.annotations.add(S),h){var y=S.appearance.normal,I=new d._PdfDictionary(n._crossReference),E=y.graphics.save();y.graphics.setTransparency(w);var v=new d.PdfTemplate(o.template,I._crossReference);v._isExported=!0,v._appearance=o.template,v._crossReference=I._crossReference,v._size=[o.templateSize[0],o.templateSize[1]];var b={x:0,y:0,width:f,height:m};y.graphics.drawTemplate(v,b),y.graphics.restore(E)}else{var V=o.stampAnnotationPath.toString().split(",")[1],D=d._decode(V,!1),x=void 0;if(D&&D.length>2&&(255===D[0]&&216===D[1]||137===D[0]&&80===D[1]&&78===D[2]&&71===D[3]&&13===D[4]&&10===D[5]&&26===D[6]&&10===D[7])){x=new d.PdfBitmap(D);E=(y=S.appearance.normal).graphics.save();y.graphics.setTransparency(w),y.graphics.drawImage(x,0,0,f,m),y.graphics.restore(E)}else{var y=S.appearance,Q=(I=this.pdfViewerBase.pngData.filter(function(e){return e.name===o.annotName})[0]._dictionary.get("AP")).get("N");y.normal=new d.PdfTemplate(Q,n._crossReference)}S.rotationAngle=this.getRubberStampRotateAngle(n.rotation,C)}
10S.opacity=w,t.isNullOrUndefined(o.note)||(S.text=o.note.toString()),S._dictionary.set("NM",o.annotName.toString());z=void 0;if(t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(z=new Date(Date.parse(o.modifiedDate)),S.modifiedDate=z),(H=o.comments).length>0)for(Y=0;Y<H.length;Y++)S.comments.add(this.addCommentsCollection(H[parseInt(Y.toString(),10)],S.bounds));G=o.review;S.reviewHistory.add(this.addReviewCollections(G,S.bounds)),!t.isNullOrUndefined(o.author)&&o.author&&(S.author=o.author.toString()),!t.isNullOrUndefined(o.subject)&&o.subject&&(S.subject=o.subject.toString()),this.preserveIsLockProperty(o,S),t.isNullOrUndefined(o.customData)||S.setValues("CustomData",JSON.stringify(o.customData)),t.isNullOrUndefined(o.icon)||S.setValues("iconName",o.icon)}else{var M=o.icon.toString(),F=o.stampFillcolor.toString(),T=t.isNullOrUndefined(o.fillColor)?"#192760":o.fillColor.toString(),k=o.isDynamicStamp.toString(),P=new d.PdfBrush([0,0,0]),N=[];"#192760"===T?N=[25,39,96]:"#516c30"===T?N=[81,108,48]:"#8a251a"===T&&(N=[138,37,26]),P=new d.PdfBrush(N);var R=new d.PdfBrush([0,0,0]),L=[];"#e6eddf"===F?L=[230,237,223]:"#f6dedd"===F?L=[246,222,221]:"#dce3ef"===F&&(L=[220,227,239]),P=new d.PdfBrush(N),R=new d.PdfBrush(L);var U=new d.PdfPen(N,1),O=new i.Rect(l,A,f,m);n.rotation!==d.PdfRotationAngle.angle90&&n.rotation!==d.PdfRotationAngle.angle270||(O=new i.Rect(l,A,m,f)),(S=new d.PdfRubberStampAnnotation).bounds=O,!t.isNullOrUndefined(o.subject)&&o.subject&&(S.subject=o.subject.toString()),t.isNullOrUndefined(o.note)||(S.text=o.note.toString()),S._dictionary.set("NM",o.annotName.toString());var z=void 0;t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(z=new Date(Date.parse(o.modifiedDate)),S.modifiedDate=z);var H=o.comments;if(H.length>0)for(var Y=0;Y<H.length;Y++)S.comments.add(this.addCommentsCollection(H[parseInt(Y.toString(),10)],S.bounds));var G=o.review;S.reviewHistory.add(this.addReviewCollections(G,S.bounds));var J=!1;"true"!==k&&(J=this.getIconName(o,M,S));var j=void 0;if("Accepted"===M.trim()||"Rejected"===M.trim()?j=this.drawStampAsPath(o.stampAnnotationPath,S,P,R):J&&(n.rotation!==d.PdfRotationAngle.angle90&&n.rotation!==d.PdfRotationAngle.angle270||(S.bounds=O),S.rotationAngle=this.getRubberStampRotateAngle(n.rotation,o.rotateAngle)),!t.isNullOrUndefined(o.modifiedDate)&&!isNaN(Date.parse(o.modifiedDate))){var K;t.isNullOrUndefined(o.modifiedDate)||isNaN(Date.parse(o.modifiedDate))||(K=new Date(Date.parse(o.modifiedDate)),S.modifiedDate=K)}if(S.opacity=w,S.author=t.isNullOrUndefined(o.author)||""===o.author.toString()?"Guest":o.author.toString(),this.preserveIsLockProperty(o,S),t.isNullOrUndefined(o.customData)||S.setValues("CustomData",JSON.stringify(o.customData)),t.isNullOrUndefined(o.rotateAngle)||S.setValues("rotateAngle",o.rotateAngle.toString()),t.isNullOrUndefined(o.icon)||S.setValues("iconName",o.icon.toString()),n.annotations.add(S),!J){if((y=S.appearance.normal).graphics.drawRoundedRectangle(0,0,O.width,O.height,10,U,R),"true"===k){var W=o.dynamicText.toString(),E=y.graphics.save();y.graphics.setTransparency(w),this.renderDynamicStamp(S,M,W,P,O,U,n),y.graphics.restore(E),S._dictionary.set("Name",d._PdfName.get("#23D"+M.split(" ").join("")))}else{this.retriveDefaultWidth(M.trim());E=y.graphics.save();y.graphics.setTransparency(w),this.renderSignHereStamp(S,O,M,P,n,U,j),y.graphics.restore(E)}S.rotationAngle=this.getRubberStampRotateAngle(n.rotation,C)}}},e.prototype.addMeasure=function(e,i){var n=e;if(t.isNullOrUndefined(n.shapeAnnotationType)||"Line"!==n.shapeAnnotationType)if(t.isNullOrUndefined(n.shapeAnnotationType)||"Polyline"!==n.shapeAnnotationType){if(!t.isNullOrUndefined(n.shapeAnnotationType)&&"Polyline"===n.shapeAnnotationType&&"PolygonRadius"===n.shapeAnnotationType||"Circle"===n.shapeAnnotationType){var o=this.addCircleMeasurementAnnotation(n,i);i.annotations.add(o)}else if(!t.isNullOrUndefined(n.shapeAnnotationType)&&"Polygon"===n.shapeAnnotationType&&"PolygonRadius"!==n.indent){var r=JSON.parse(n.vertexPoints),a=this.getSaveVertexPoints(r,i),s=new d.PdfPolygonAnnotation(a);if(s.author=t.isNullOrUndefined(n.author)||""===n.author.toString()?"Guest":n.author.toString(),t.isNullOrUndefined(n.note)||(s.text=n.note.toString()),t.isNullOrUndefined(n.annotName)||(s.name=n.annotName.toString()),t.isNullOrUndefined(n.subject)||(s.subject=n.subject.toString()),!t.isNullOrUndefined(n.strokeColor)){w=JSON.parse(n.strokeColor);s.color=[w.r,w.g,w.b]}if(!t.isNullOrUndefined(n.fillColor)){C=JSON.parse(n.fillColor);if(!this.isTransparentColor(C)){B=[C.r,C.g,C.b];s.innerColor=B}C.a<1&&C.a>0?(s._dictionary.update("FillOpacity",C.a),C.a=1):s._dictionary.update("FillOpacity",C.a)}
vendor: 9,387 bytes, line 10
10t.isNullOrUndefined(n.opacity)||(s.opacity=n.opacity);var l=new d.PdfAnnotationBorder;l.width=n.thickness,l.style=n.borderStyle,t.isNullOrUndefined(n.borderDashArray)||(l.dash=[n.borderDashArray,n.borderDashArray]),s.border=l,s._dictionary.update("IT",d._PdfName.get(n.indent.toString())),s.rotationAngle=this.getRotateAngle(n.rotateAngle);S=void 0;t.isNullOrUndefined(n.modifiedDate)||isNaN(Date.parse(n.modifiedDate))||(S=new Date(Date.parse(n.modifiedDate)),s.modifiedDate=S);var A=n.comments,h=JSON.parse(n.bounds);if(s.bounds=h,s.bounds.x=h.left,s.bounds.y=h.top,A.length>0)for(I=0;I<A.length;I++)s.comments.add(this.addCommentsCollection(A[parseInt(I.toString(),10)],s.bounds));E=n.review;if(s.reviewHistory.add(this.addReviewCollections(E,s.bounds)),!t.isNullOrUndefined(n.isCloudShape)&&Boolean(n.isCloudShape.toString())){s.borderEffect.style=d.PdfBorderEffectStyle.cloudy,s.borderEffect.intensity=n.cloudIntensity;var p=JSON.parse(n.rectangleDifference);if(p.length>0){f=this.getRDValues(p);s._dictionary.update("RD",f)}}this.preserveIsLockProperty(n,s);v=JSON.parse(n.calibrate);t.isNullOrUndefined(v)||(s._dictionary.set("Measure",this.setMeasureDictionary(v)),"PolygonVolume"===n.indent&&Object.prototype.hasOwnProperty.call(v,"depth")&&s._dictionary.update("Depth",v.depth)),t.isNullOrUndefined(n.customData)||s.setValues("CustomData",JSON.stringify(n.customData)),n.allowedInteractions&&null!=n.allowedInteractions&&s.setValues("AllowedInteractions",JSON.stringify(n.allowedInteractions)),s.setAppearance(!0),i.annotations.add(s)}}else{var r=JSON.parse(n.vertexPoints),a=this.getSaveVertexPoints(r,i),c=new d.PdfPolyLineAnnotation(a);if(c.author=t.isNullOrUndefined(n.author)||""===n.author.toString()?"Guest":n.author.toString(),t.isNullOrUndefined(n.note)||(c.text=n.note.toString()),c._dictionary.set("NM",n.annotName.toString()),t.isNullOrUndefined(n.subject)||(c.subject=n.subject.toString()),!t.isNullOrUndefined(n.strokeColor)){var g=[(w=JSON.parse(n.strokeColor)).r,w.g,w.b];c.color=g}if(!t.isNullOrUndefined(n.fillColor)){C=JSON.parse(n.fillColor);if(!this.isTransparentColor(C)){B=[C.r,C.g,C.b];c.innerColor=B}C.a<1&&C.a>0?(c._dictionary.update("FillOpacity",C.a),C.a=1):c._dictionary.update("FillOpacity",C.a)}t.isNullOrUndefined(n.opacity)||(c.opacity=n.opacity),(l=new d.PdfAnnotationBorder).width=n.thickness,l.style=this.getBorderStyle(n.borderStyle),l.dash=n.borderDashArray,c.border=l,c.rotationAngle=this.getRotateAngle(n.rotateAngle),c.beginLineStyle=this.getLineEndingStyle(n.lineHeadStart),c.endLineStyle=this.getLineEndingStyle(n.lineHeadEnd);S=void 0;t.isNullOrUndefined(n.modifiedDate)||isNaN(Date.parse(n.modifiedDate))||(S=new Date(Date.parse(n.modifiedDate)),c.modifiedDate=S);var A=n.comments,h=JSON.parse(n.bounds);if(c.bounds=h,c.bounds.x=h.left,c.bounds.y=h.top,A.length>0)for(I=0;I<A.length;I++)c.comments.add(this.addCommentsCollection(A[parseInt(I.toString(),10)],c.bounds));E=n.review;if(c.reviewHistory.add(this.addReviewCollections(E,c.bounds)),c._dictionary.set("IT",d._PdfName.get(n.indent.toString())),!t.isNullOrUndefined(n.isCloudShape)&&n.isCloudShape){var u=new d._PdfDictionary(i._crossReference);if(u.update("S",d._PdfName.get("C")),u.update("I",n.cloudIntensity),c._dictionary.update("BE",u),(p=JSON.parse(n.rectangleDifference)).length>0){var f=this.getRDValues(p);c._dictionary.update("RD",f)}}this.preserveIsLockProperty(n,c);v=JSON.parse(n.calibrate);t.isNullOrUndefined(v)||c._dictionary.set("Measure",this.setMeasureDictionary(v)),t.isNullOrUndefined(n.customData)||c.setValues("CustomData",JSON.stringify(n.customData)),n.allowedInteractions&&null!==n.allowedInteractions&&c.setValues("AllowedInteractions",JSON.stringify(n.allowedInteractions)),c.setAppearance(!0),i.annotations.add(c)}else{var r=JSON.parse(n.vertexPoints),a=this.getSaveVertexPoints(r,i),m=new d.PdfLineAnnotation(a);if(t.isNullOrUndefined(n.note)||(m.text=n.note.toString()),m.author=t.isNullOrUndefined(n.author)||""===n.author.toString()?"Guest":n.author.toString(),t.isNullOrUndefined(n.subject)||(m.subject=n.subject.toString()),m.lineIntent=d.PdfLineIntent.lineDimension,t.isNullOrUndefined(n.annotName)||(m.name=n.annotName.toString()),!t.isNullOrUndefined(n.strokeColor)){var w=JSON.parse(n.strokeColor);m.color=[w.r,w.g,w.b]}if(!t.isNullOrUndefined(n.fillColor)){var C=JSON.parse(n.fillColor);if(!this.isTransparentColor(C)){var B=[C.r,C.g,C.b];m.innerColor=B}C.a<1&&C.a>0?(m._dictionary.update("FillOpacity",C.a),C.a=1):m._dictionary.update("FillOpacity",C.a)}t.isNullOrUndefined(n.opacity)||(m.opacity=n.opacity),(l=new d.PdfAnnotationBorder).width=n.thickness,t.isNullOrUndefined(n.borderStyle)||""===n.borderStyle||(l.style=this.getBorderStyle(n.borderStyle)),t.isNullOrUndefined(n.borderDashArray)||(l.dash=[n.borderDashArray,n.borderDashArray]),m.border=l,m.rotationAngle=this.getRotateAngle(n.rotateAngle),m.lineEndingStyle.begin=this.getLineEndingStyle(n.lineHeadStart),m.lineEndingStyle.end=this.getLineEndingStyle(n.lineHeadEnd);var S=void 0;t.isNullOrUndefined(n.modifiedDate)||isNaN(Date.parse(n.modifiedDate))||(S=new Date(Date.parse(n.modifiedDate)),m.modifiedDate=S),m.caption.type=this.getCaptionType(n.captionPosition);var y=/[\u0600-\u06FF]/.test(m.text);m.caption.cap=!y&&n.caption,m.leaderExt=n.leaderLength,m.leaderLine=n.leaderLineExtension;var A=n.comments,h=JSON.parse(n.bounds);if(m.bounds=h,m.bounds.x=h.left,m.bounds.y=h.top,A.length>0)for(var I=0;I<A.length;I++)m.comments.add(this.addCommentsCollection(A[parseInt(I.toString(),10)],m.bounds));var E=n.review;m.reviewHistory.add(this.addReviewCollections(E,m.bounds)),m._dictionary.update("LLO",n.leaderLineOffset),this.preserveIsLockProperty(n,m);var v=JSON.parse(n.calibrate);t.isNullOrUndefined(v)||m._dictionary.set("Measure",this.setMeasureDictionary(v)),t.isNullOrUndefined(n.customData)||m.setValues("CustomData",JSON.stringify(n.customData)),n.allowedInteractions&&null!=n.allowedInteractions&&m.setValues("AllowedInteractions",JSON.stringify(n.allowedInteractions)),m.setAppearance(!0),i.annotations.add(m)}},e.prototype.addStickyNotes=function(e,i){var n=e,o=JSON.parse(n.bounds),r=this.getCropBoxValue(i,!1),a=this.convertPixelToPoint(o.left),s=this.convertPixelToPoint(o.top),l=this.convertPixelToPoint(o.width),A=this.convertPixelToPoint(o.height),h=0,p=0;0!==r.x&&0!==r.y&&r.x===a?(h=r.x,p=r.y):0===r.x&&i.cropBox[2]===i.size[0]&&r.y===i.size[1]&&(h=r.x,p=r.y);var c=new d.PdfPopupAnnotation(null,h+a,p+s,l,A);null===n.author&&(n.author="Guest"),null!=n.note&&(c.text=n.note.toString()),c.author=n.author.toString(),null!=n.subject&&(c.subject=n.subject.toString()),c._dictionary.set("NM",n.annotName.toString());var g;t.isNullOrUndefined(n.modifiedDate)||isNaN(Date.parse(n.modifiedDate))||(g=new Date(Date.parse(n.modifiedDate)),c.modifiedDate=g);var u=n.comments;if(u.length>0)for(var f=0;f<u.length;f++)c.comments.add(this.addCommentsCollection(u[parseInt(f.toString(),10)],c.bounds));var m=n.review;c.reviewHistory.add(this.addReviewCollections(m,c.bounds));var w=[255,255,51];c.color=w,c.opacity=n.opacity,c.icon=d.PdfPopupIcon.comment,this.preserveIsLockProperty(n,c),t.isNullOrUndefined(n.customData)||c.setValues("CustomData",JSON.stringify(n.customData)),i.annotations.add(c)},e.hasDynamicText=function(e){return Object.prototype.hasOwnProperty.call(e,"dynamicText")&&!t.isNullOrUndefined(e.dynamicText.toString())},e.setFontFromKeys=function(e,i,n,o,r){var a=Vi.tryGetFontFromKeys(n,e.dynamicText.toString(),o,r);t.isNullOrUndefined(a)?i.setAppearance(!1):(i.font=a,i.setAppearance(!0))},e.prototype.addFreeText=function(i,n,o){var r=i,a=JSON.parse(r.bounds),s=this.getCropBoxValue(n,!1),l=this.convertPixelToPoint(a.left),A=this.convertPixelToPoint(a.top),h=this.convertPixelToPoint(a.width),p=this.convertPixelToPoint(a.height),c=0,g=0;0!==s.x&&0!==s.y&&s.x===l?(c=s.x,g=s.y):0===s.x&&n.cropBox[2]===n.size[0]&&s.y===n.size[1]&&(c=s.x,g=s.y);var u=new d.PdfFreeTextAnnotation(c+l,g+A,h,p);u.setAppearance(!0),t.isNullOrUndefined(r.author)&&(r.author="Guest"),u.author=r.author.toString();var f;t.isNullOrUndefined(r.modifiedDate)||isNaN(Date.parse(r.modifiedDate))||(f=new Date(Date.parse(r.modifiedDate)),u.modifiedDate=f);var m=r.review;u.reviewHistory.add(this.addReviewCollections(m,u.bounds)),u._dictionary.set("NM",r.annotName.toString()),u.lineEndingStyle=d.PdfLineEndingStyle.openArrow,u.annotationIntent=d.PdfAnnotationIntent.freeTextTypeWriter;var w=0;t.isNullOrUndefined(r.fontSize)||(w=parseFloat(r.fontSize)),w=!t.isNullOrUndefined(w)&&!isNaN(w)&&w>0?w:16;var C=this.getFontFamily(r.fontFamily),B={};Object.prototype.hasOwnProperty.call(r,"font")&&!t.isNullOrUndefined(r.font)&&(B=r.font);var S=this.getFontStyle(B);if(u.font=new d.PdfStandardFont(C,this.convertPixelToPoint(w),S),e.hasDynamicText(r))if(!t.isNullOrUndefined(o)&&Object.keys(o).length>0){var y=Vi.getFontKey(o,r.fontFamily.toLowerCase());if(t.isNullOrUndefined(y))e.setFontFromKeys(r,u,o,w,S);else{var I=o[""+y];I=Vi.processFontStream(I);var E=new d.PdfTrueTypeFont(I,this.convertPixelToPoint(w),S),v=Vi.isSupportedFont(r.dynamicText.toString(),E);u.setAppearance(v),v?u.font=E:e.setFontFromKeys(r,u,o,w,S)}}else try{u.font.measureString(r.dynamicText.toString())}catch(e){u.setAppearance(!1)}null!=r.subject&&(u.subject=r.subject.toString()),u.text="",Object.prototype.hasOwnProperty.call(r,"dynamicText")&&!t.isNullOrUndefined(r.dynamicText.toString())&&
10(u.text=r.dynamicText.toString());var b="RotateAngle"+Math.abs(r.rotateAngle);u.rotationAngle=this.getRotateAngle(b);var V=new d.PdfAnnotationBorder;if(V.width=t.isNullOrUndefined(r.thickness)?1:r.thickness,u.border=V,u.border.width=V.width,Object.prototype.hasOwnProperty.call(r,"padding")&&t.isNullOrUndefined(r.padding),u.opacity=t.isNullOrUndefined(r.opacity)?1:r.opacity,!t.isNullOrUndefined(r.strokeColor)){var D=JSON.parse(r.strokeColor),x=[D.r,D.g,D.b];u.borderColor=x,this.isTransparentColor(D)||(u.border.width=t.isNullOrUndefined(r.thickness)?0:r.thickness)}if(!t.isNullOrUndefined(r.fillColor)){var Q=JSON.parse(r.fillColor);if(!this.isTransparentColor(Q)){x=[Q.r,Q.g,Q.b];r.isTransparentSet?u.color=void 0:u.color=x}Q.a<1&&Q.a>0?(u._dictionary.update("FillOpacity",Q.a),Q.a=1):u._dictionary.update("FillOpacity",Q.a)}if(!t.isNullOrUndefined(r.fontColor)){var M=JSON.parse(r.fontColor);if(!this.isTransparentColor(M)){var F=[M.r,M.g,M.b];u.textMarkUpColor=F}}var T=r.comments;if(T.length>0)for(var k=0;k<T.length;k++)u.comments.add(this.addCommentsCollection(T[parseInt(k.toString(),10)],u.bounds));this.preserveIsLockProperty(r,u),t.isNullOrUndefined(r.customData)||u.setValues("CustomData",JSON.stringify(r.customData)),Object.prototype.hasOwnProperty.call(r,"textAlign")&&!t.isNullOrUndefined(r.textAlign)&&(u.textAlignment=this.getPdfTextAlignment(r.textAlign.toString().toLowerCase())),Object.prototype.hasOwnProperty.call(r,"allowedInteractions")&&!t.isNullOrUndefined(r.allowedInteractions)&&u.setValues("AllowedInteractions",JSON.stringify(r.allowedInteractions)),n.annotations.add(u)},e.prototype.renderSignHereStamp=function(e,t,i,n,o,r,a){var s=new d.PdfStringFormat,l=new d.PdfStandardFont(d.PdfFontFamily.helvetica,20,d.PdfFontStyle.bold|d.PdfFontStyle.italic);s.alignment=d.PdfTextAlignment.center,s.lineAlignment=d.PdfVerticalAlignment.middle;var A=[0,0],h=[0,0],p=new d.PdfPath,c=e.appearance.normal;this.defaultHeight>0&&this.defaultWidth>0&&c.graphics.scaleTransform(t.width/(this.defaultWidth+4),t.height/28),A=[this.defaultWidth/2+1,15,0,0],h=[0,0],p.addLine(A[0],A[1],h[0],h[1]);var g=[p._points[0][0],p._points[0][1],0,0];if(a){for(var u=Number.MAX_VALUE,f=Number.MAX_VALUE,m=Number.MIN_VALUE,w=Number.MIN_VALUE,C=0;C<a._points.length;C++){var B=a._points[parseInt(C.toString(),10)];u=Math.min(u,B[0]),f=Math.min(f,B[1]),m=Math.max(m,B[0]),w=Math.max(w,B[1])}for(var S=(t.width-(m-u))/2-u,y=(t.height-(w-f))/2-f,C=0;C<a._points.length;C++)a._points[parseInt(C.toString(),10)][0]+=S,a._points[parseInt(C.toString(),10)][1]+=y;e.appearance.normal.graphics.drawPath(a,r,n)}else c.graphics.drawString(i.toUpperCase(),l,g,r,n,s)},e.prototype.retriveDefaultWidth=function(e){switch(e.trim()){case"Witness":this.defaultWidth=97.39,this.defaultHeight=16.84;break;case"Initial Here":this.defaultWidth=151.345,this.defaultHeight=16.781;break;case"Sign Here":this.defaultWidth=121.306,this.defaultHeight=16.899;break;default:this.defaultWidth=0,this.defaultHeight=0}},e.prototype.renderDynamicStamp=function(e,i,n,o,r,a,s){var l=new d.PdfStringFormat;l.alignment=d.PdfTextAlignment.left,l.lineAlignment=d.PdfVerticalAlignment.middle;var A=null,h=null,p=!1;/[\u0600-\u06FF]/.test(n)&&(p=!0),p?(A=new d.PdfTrueTypeFont(_e(),t.Browser.isDevice&&t.Browser.isAndroid?this.pdfViewer.annotationModule.calculateFontSize(i.toUpperCase(),r)-10:this.pdfViewer.annotationModule.calculateFontSize(i.toUpperCase(),r)-5,d.PdfFontStyle.bold|d.PdfFontStyle.italic),h=new d.PdfTrueTypeFont(_e(),this.pdfViewer.annotationModule.calculateFontSize(n.toUpperCase(),r)-5,d.PdfFontStyle.bold|d.PdfFontStyle.italic)):(A=new d.PdfStandardFont(d.PdfFontFamily.helvetica,t.Browser.isDevice&&t.Browser.isAndroid?this.pdfViewer.annotationModule.calculateFontSize(i.toUpperCase(),r)-10:this.pdfViewer.annotationModule.calculateFontSize(i.toUpperCase(),r)-5,d.PdfFontStyle.bold|d.PdfFontStyle.italic),h=new d.PdfStandardFont(d.PdfFontFamily.helvetica,this.pdfViewer.annotationModule.calculateFontSize(n,r)-5,d.PdfFontStyle.bold|d.PdfFontStyle.italic));var c=e.appearance.normal,g=[0,0],u=[0,0],f=new d.PdfPath;
10g=[5,r.height/3],u=[5,r.height-2*h.size],f.addLine(g[0],g[1],u[0],u[1]);var m=[f._points[0][0],f._points[0][1],0,0],w=[f._points[1][0],f._points[1][1],r.width-f._points[1][0],r.height-f._points[1][1]];c.graphics.drawString(i.toUpperCase(),A,m,a,o,l),c.graphics.drawString(n,h,w,a,o,l)},e.prototype.calculateBoundsXY=function(e,t,n,o){var r=new i.Rect,a=this.pdfViewer.pdfRendererModule.getPageSize(n);return o.rotation===d.PdfRotationAngle.angle90?(r.x=this.convertPixelToPoint(e.y),r.y=this.convertPixelToPoint(a.width-e.x-e.width)):o.rotation===d.PdfRotationAngle.angle180?(r.x=this.convertPixelToPoint(a.width-e.x-e.width),r.y=this.convertPixelToPoint(a.height-e.y-e.height)):o.rotation===d.PdfRotationAngle.angle270?(r.x=this.convertPixelToPoint(a.height-e.y-e.height),r.y=this.convertPixelToPoint(e.x)):(r.x=this.convertPixelToPoint(e.x),r.y=this.convertPixelToPoint(e.y)),r},e.prototype.setMeasurementUnit=function(e){var t;switch(e){case"cm":t=d.PdfMeasurementUnit.centimeter;break;case"in":t=d.PdfMeasurementUnit.inch;break;case"mm":t=d.PdfMeasurementUnit.millimeter;break;case"pt":t=d.PdfMeasurementUnit.point;break;case"p":t=d.PdfMeasurementUnit.pica}return t},e.prototype.getRubberStampRotateAngle=function(e,t){var i=d.PdfRotationAngle.angle0;switch(t){case 0:i=d.PdfRotationAngle.angle0;break;case 90:i=d.PdfRotationAngle.angle90;break;case 180:i=d.PdfRotationAngle.angle180;break;case 270:i=d.PdfRotationAngle.angle270}return i=(e-i+4)%4},e.prototype.getFontFamily=function(e){var i=d.PdfFontFamily.helvetica;switch(e=t.isNullOrUndefined(e)||""===e?"Helvetica":e){case"Helvetica":i=d.PdfFontFamily.helvetica;break;case"Courier":i=d.PdfFontFamily.courier;break;case"Times New Roman":i=d.PdfFontFamily.timesRoman;break;case"Symbol":i=d.PdfFontFamily.symbol;break;case"ZapfDingbats":i=d.PdfFontFamily.zapfDingbats}return i},e.prototype.getFontStyle=function(e){var i=d.PdfFontStyle.regular;return t.isNullOrUndefined(e)||(e.isBold&&(i|=d.PdfFontStyle.bold),e.isItalic&&(i|=d.PdfFontStyle.italic),e.isStrikeout&&(i|=d.PdfFontStyle.strikeout),e.isUnderline&&(i|=d.PdfFontStyle.underline)),i},e.prototype.getPdfTextAlignment=function(e){var t=d.PdfTextAlignment.left;switch(e){case"center":t=d.PdfTextAlignment.center;break;case"right":t=d.PdfTextAlignment.right;break;case"justify":t=d.PdfTextAlignment.justify}return t},e.prototype.drawStampAsPath=function(e,t,i,n){for(var o={x:0,y:0},r=new d.PdfPath,a=e,s=0;s<a.length;s++){var l=a[parseInt(s.toString(),10)],A=l.command.toString();if("M"===A&&(r.startFigure(),o={x:l.x,y:l.y}),"L"===A){var h=[o,{x:l.x,y:l.y}];this.transformPoints(h);var p=[{x:h[0].x,y:h[0].y},{x:h[1].x,y:h[1].y}];r.addLine(this.convertPixelToPoint(p[0].x),this.convertPixelToPoint(p[0].y),this.convertPixelToPoint(p[1].x),this.convertPixelToPoint(p[1].y)),o={x:l.x,y:l.y}}if("C"===A){var c=[o,{x:l.x,y:l.y},{x:l.x1,y:l.y1},{x:l.x2,y:l.y2}];this.transformPoints(c);var g=[{x:c[0].x,y:c[0].y},{x:c[1].x,y:c[1].y},{x:c[2].x,y:c[2].y},{x:c[3].x,y:c[3].y}];r.addBezier(this.convertPixelToPoint(g[0].x),this.convertPixelToPoint(g[0].y),this.convertPixelToPoint(g[1].x),this.convertPixelToPoint(g[1].y),this.convertPixelToPoint(g[2].x),this.convertPixelToPoint(g[2].y),this.convertPixelToPoint(g[3].x),this.convertPixelToPoint(g[3].y)),o={x:l.x,y:l.y}}"Z"!==A&&"z"!==A||r.closeFigure()}return r},e.prototype.transformPoints=function(e){if(!t.isNullOrUndefined(e))for(var i=0;i<e.length;i++)e[parseInt(i.toString(),10)]=this.transform(e[parseInt(i.toString(),10)])},e.prototype.transform=function(e){return{x:e.x,y:e.y}},e.prototype.getIconName=function(e,t,i){var n=!0;switch(t.trim()){case"Approved":i.icon=d.PdfRubberStampAnnotationIcon.approved;break;case"Confidential":i.icon=d.PdfRubberStampAnnotationIcon.confidential;break;case"Not Approved":i.icon=d.PdfRubberStampAnnotationIcon.notApproved;break;case"Draft":i.icon=d.PdfRubberStampAnnotationIcon.draft;break;case"Final":i.icon=d.PdfRubberStampAnnotationIcon.final;break;case"Completed":i.icon=d.PdfRubberStampAnnotationIcon.completed;break;case"For Public Release":i.icon=d.PdfRubberStampAnnotationIcon.forPublicRelease;break;case"Not For Public Release":i.icon=d.PdfRubberStampAnnotationIcon.notForPublicRelease;break;case"For Comment":i.icon=d.PdfRubberStampAnnotationIcon.forComment;break;case"Void":i.icon=d.PdfRubberStampAnnotationIcon.void;break;case"Preliminary Results":i.icon=d.PdfRubberStampAnnotationIcon.preliminaryResults;break;case"Information Only":i.icon=d.PdfRubberStampAnnotationIcon.informationOnly;break;default:n=!1}return n},e.prototype.addCircleMeasurementAnnotation=function(e,i){var n=JSON.parse(e.bounds),o=this.getCropBoxValue(i,!1),r=this.convertPixelToPoint(n.left),a=this.convertPixelToPoint(n.top),s=this.convertPixelToPoint(n.width),l=this.convertPixelToPoint(n.height);
vendor: 8,478 bytes, line 10
10t.isNullOrUndefined(n.left)&&(e.bounds.left=0),t.isNullOrUndefined(n.top)&&(e.bounds.top=0);var A=0,h=0;0!==o.x&&0!==o.y&&o.x===r?(A=o.x,h=o.y):0===o.x&&i.cropBox[2]===i.size[0]&&o.y===i.size[1]&&(A=o.x,h=o.y);var p=new d.PdfCircleAnnotation(A+r,h+a,s,l);if(t.isNullOrUndefined(e.note)||(p.text=e.note.toString()),p.author=t.isNullOrUndefined(e.author)||""===e.author.toString()?"Guest":e.author.toString(),p._dictionary.set("NM",e.annotName.toString()),t.isNullOrUndefined(e.subject)||(p.subject=e.subject.toString()),!t.isNullOrUndefined(e.strokeColor)){var c=JSON.parse(e.strokeColor),g=[c.r,c.g,c.b];p.color=g}if(!t.isNullOrUndefined(e.fillColor)){var u=JSON.parse(e.fillColor);if(!this.isTransparentColor(u)){var f=[u.r,u.g,u.b];p.innerColor=f}u.a<1&&u.a>0?(p._dictionary.update("FillOpacity",u.a),u.a=1):p._dictionary.update("FillOpacity",u.a)}t.isNullOrUndefined(e.opacity)||(p.opacity=e.opacity);var m=new d.PdfAnnotationBorder;m.width=e.thickness,m.style=e.borderStyle,m.dash=e.borderDashArray,p.border=m,p.rotationAngle=this.getRotateAngle(e.rotateAngle);var w;t.isNullOrUndefined(e.modifiedDate)||isNaN(Date.parse(e.modifiedDate))||(w=new Date(Date.parse(e.modifiedDate)),p.modifiedDate=w);var C=e.comments;if(C.length>0)for(var B=0;B<C.length;B++)p.comments.add(this.addCommentsCollection(C[parseInt(B.toString(),10)],p.bounds));var S=e.review;if(p.reviewHistory.add(this.addReviewCollections(S,p.bounds)),!t.isNullOrUndefined(e.isCloudShape)&&e.isCloudShape){var y=new d.PdfBorderEffect;y.style=d.PdfBorderEffectStyle.cloudy,y.intensity=e.cloudIntensity,p._borderEffect=y;var I=JSON.parse(e.rectangleDifference);if(I.length>0){var E=this.getRDValues(I);p._dictionary.update("RD",E)}}this.preserveIsLockProperty(e,p),p.measureType=d.PdfCircleMeasurementType.radius;var v=JSON.parse(e.calibrate);return t.isNullOrUndefined(v)||p._dictionary.set("Measure",this.setMeasureDictionary(v)),t.isNullOrUndefined(e.customData)||p.setValues("CustomData",JSON.stringify(e.customData)),p.setAppearance(!0),p},e.prototype.setMeasureDictionary=function(e){var i=new d._PdfDictionary;if(i.set("Type","Measure"),i.set("R",e.ratio),!t.isNullOrUndefined(e.x)){var n=this.createNumberFormat(e.x);i.set("X",n)}if(!t.isNullOrUndefined(e.distance)){var o=this.createNumberFormat(JSON.parse(e.distance));i.set("D",o)}if(!t.isNullOrUndefined(e.area)){var r=this.createNumberFormat(JSON.parse(e.area));i.set("A",r)}if(!t.isNullOrUndefined(e.angle)){var a=this.createNumberFormat(JSON.parse(e.angle));i.set("T",a)}if(!t.isNullOrUndefined(e.volume)){var s=this.createNumberFormat(JSON.parse(e.volume));i.set("V",s)}return i},e.prototype.createNumberFormat=function(e){var i=[];if(!t.isNullOrUndefined(e)&&0!==e.length){for(var n=0;n<e.length;n++){var o=new d._PdfDictionary,r=e[parseInt(n.toString(),10)];o.set("Type","NumberFormat"),o.set("U",r.unit),o.set("F",r.fractionalType),o.set("D",r.denominator),o.set("C",r.conversionFactor),o.set("FD",r.formatDenominator),i.push(o)}return i}},e.prototype.checkAnnotationLock=function(e){var i=!1;if(!t.isNullOrUndefined(e.annotationSettings)){var n=e.annotationSettings;t.isNullOrUndefined(n.isLock)||(i=n.isLock)}return i},e.prototype.getSaveVertexPoints=function(e,t){for(var i=t.size[1],n=[],o=0;o<e.length;o++){var r=this.convertPixelToPoint(e[parseInt(o.toString(),10)].x);n.push(r);var a=i-this.convertPixelToPoint(e[parseInt(o.toString(),10)].y);n.push(a)}return n},e.prototype.getLineEndingStyle=function(e){var t=d.PdfLineEndingStyle.none;switch(e){case"Square":t=d.PdfLineEndingStyle.square;break;case"ClosedArrow":case"Closed":t=d.PdfLineEndingStyle.closedArrow;break;case"RClosedArrow":t=d.PdfLineEndingStyle.rClosedArrow;break;case"OpenArrow":case"Open":t=d.PdfLineEndingStyle.openArrow;break;case"ROpenArrow":t=d.PdfLineEndingStyle.rOpenArrow;break;case"Butt":t=d.PdfLineEndingStyle.butt;break;case"Circle":case"Round":t=d.PdfLineEndingStyle.circle;break;case"Diamond":t=d.PdfLineEndingStyle.diamond;break;case"Slash":t=d.PdfLineEndingStyle.slash}return t},e.prototype.getCaptionType=function(e){var t=d.PdfLineCaptionType.inline;switch(e){case"Inline":t=d.PdfLineCaptionType.inline;break;case"Top":t=d.PdfLineCaptionType.top}return t},e.prototype.addReviewCollections=function(e,t){var i=new d.PdfPopupAnnotation(null,t.x,t.y,t.width,t.height);return null!=e.state&&(i.state=this.getReviewState(e.state.toString()),i.stateModel=d.PdfAnnotationStateModel.review),i},e.prototype.addCommentsCollection=function(e,i){var n=new d.PdfPopupAnnotation;n.text=e.note,n.author=e.author,n.subject=e.subject,t.isNullOrUndefined(e.note)?n._annotFlags=d.PdfAnnotationFlag.print:n.text=e.note.toString();var o=e.review;n.reviewHistory.add(this.addReviewCollections(o,i));var r;return t.isNullOrUndefined(e.modifiedDate)||isNaN(Date.parse(e.modifiedDate))||(r=new Date(Date.parse(e.modifiedDate)),n.modifiedDate=r),t.isNullOrUndefined(e.annotName)||n._dictionary.set("NM",e.annotName.toString()),n},e.prototype.getReviewState=function(e){var t;switch(e){case"Accepted":t=d.PdfAnnotationState.accepted;break;case"Cancelled":t=d.PdfAnnotationState.cancel;break;case"Completed":t=d.PdfAnnotationState.completed;break;case"Rejected":t=d.PdfAnnotationState.rejected;break;case"None":t=d.PdfAnnotationState.none;break;default:t=d.PdfAnnotationState.unmarked}return t},e.prototype.convertPixelToPoint=function(e){return 72*e/96},e.prototype.convertPointToPixel=function(e){return 96*e/72},e.prototype.isTransparentColor=function(e){return e&&0===e.a},e.prototype.getRDValues=function(e){for(var t=[],i=0;i<e.length;i++)t.push(parseFloat(e[parseInt(i.toString(),10)]));return t},e.prototype.getRotateAngle=function(e){var t=d.PdfRotationAngle.angle0;switch(e){case"RotateAngle0":t=d.PdfRotationAngle.angle0;break;case"RotateAngle180":t=d.PdfRotationAngle.angle180;break;case"RotateAngle270":t=d.PdfRotationAngle.angle270;break;case"RotateAngle90":t=d.PdfRotationAngle.angle90}return t},e.prototype.getInkRotateAngle=function(e){var t=0;switch(e){case"0":t=0;break;case"1":t=-90;break;case"2":t=-180;break;case"3":t=-270}return t},e.prototype.loadSignature=function(e,i,n,o,r,a){var s=new vo,l="";if(!t.isNullOrUndefined(e.inkPointsCollection))for(var A=0;A<e.inkPointsCollection.length;A++)for(var h=e.inkPointsCollection[parseInt(A.toString(),10)],p=0;p<h.length;p+=2){var c=void 0,g=void 0;e._page.rotation===d.PdfRotationAngle.angle90?(c=h[p+1],g=h[parseInt(p.toString(),10)]):e._page.rotation===d.PdfRotationAngle.angle180?(c=e._page.size[0]-h[parseInt(p.toString(),10)],g=h[p+1]):e._page.rotation===d.PdfRotationAngle.angle270?(c=e._page.size[0]-h[p+1],g=e._page.size[1]-h[parseInt(p.toString(),10)]):(c=h[parseInt(p.toString(),10)],g=e._page.size[1]-h[p+1]),l+=0===p?"M"+c+","+g+" ":"L"+c+","+g+" "}return s.AnnotationType="Signature",s.Bounds=this.getBounds(e.bounds,i,n,o),s.Opacity=e.opacity,s.Thickness=e.border.width,s.PathData=l,s.StrokeColor="rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")",s.PageNumber=r,s.SignatureName=e.name,s},e.prototype.loadInkAnnotation=function(e,n,o,r,a,s){var l=new yo,A="";if(!t.isNullOrUndefined(e.inkPointsCollection))for(var h=0;h<e.inkPointsCollection.length;h++)for(var p=e.inkPointsCollection[parseInt(h.toString(),10)],c=0;c<p.length;c+=2){var g=void 0,u=void 0;e._page.rotation===d.PdfRotationAngle.angle90?(g=p[c+1],u=p[parseInt(c.toString(),10)]):e._page.rotation===d.PdfRotationAngle.angle180?(g=e._page.size[0]-p[parseInt(c.toString(),10)],u=p[c+1]):e._page.rotation===d.PdfRotationAngle.angle270?(g=e._page.size[0]-p[c+1],u=e._page.size[1]-p[parseInt(c.toString(),10)]):(g=p[parseInt(c.toString(),10)],u=e._page.size[1]-p[c+1]),A+=0===c?"M"+g+","+u+" ":"L"+g+","+u+" "}l.Author=e.author,l.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?l.ModifiedDate=this.formatDate(new Date):l.ModifiedDate=this.formatDate(e.modifiedDate),l.Note=this.getValidNoteContent(e.text);for(f=0;f<e.reviewHistory.count;f++)l.State=this.getStateString(e.reviewHistory.at(parseInt(f.toString(),10)).state),l.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(f.toString(),10)).stateModel);(t.isNullOrUndefined(l.State)||t.isNullOrUndefined(l.StateModel))&&(l.State="Unmarked",l.StateModel="None"),l.Comments=new Array;for(var f=0;f<e.comments.count;f++){var m=this.loadPopupAnnotation(e.comments.at(f),n,o,r);l.Comments.push(m)}if(this.updateIsLockProperty(l,e),l.AnnotationType="Ink",l.AnnotType="Ink",l.Bounds=this.getBounds(e.bounds,n,o,r),e.bounds.y<0){var w=new i.Rect
10(e.bounds.x,s.cropBox[1]+e.bounds.y,e.bounds.width,e.bounds.height);l.Bounds=this.getBounds(w,n,o,r)}if(l.Opacity=e.opacity,l.Thickness=e.border.width,l.PathData=A,l.StrokeColor="rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")",l.PageNumber=a,l.AnnotName=e.name,e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var C=e._dictionary.get("CustomData");null!=C&&(l.ExistingCustomData=C)}return l},e.prototype.loadSquareAnnotation=function(e,i,n,o,r){var a=new Io;a.ShapeAnnotationType="Square",a.Author=e.author,a.AnnotName=e.name,a.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Note=this.getValidNoteContent(e.text),a.Thickness=e.border.width,a.BorderStyle=this.getBorderStylesString(e.border.style),a.BorderDashArray=e.border.dash&&e.border.dash[0]?e.border.dash[0]:0,a.Opacity=e.opacity,a.RotateAngle=this.getRotateAngleString(e.rotate),a.AnnotType="shape";for(s=0;s<e.reviewHistory.count;s++)a.State=this.getStateString(e.reviewHistory.at(parseInt(s.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(s.toString(),10)).stateModel);(t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array;for(var s=0;s<e.comments.count;s++){var l=this.loadPopupAnnotation(e.comments.at(s),i,n,o);a.Comments.push(l)}if(a.Bounds=this.getBounds(e.bounds,i,n,o),a.LineHeadStart="None",a.LineHeadEnd="None",t.isNullOrUndefined(e.borderEffect)?(a.IsCloudShape=!1,a.CloudIntensity=0):e.borderEffect.style===d.PdfBorderEffectStyle.cloudy?(a.IsCloudShape=!0,a.CloudIntensity=e.borderEffect.intensity):(a.IsCloudShape=!1,a.CloudIntensity=0),e._dictionary.has("RD")&&!t.isNullOrUndefined(e._dictionary.get("RD"))?a.RectangleDifference=e._dictionary.get("RD"):a.RectangleDifference=new Array,this.updateIsLockProperty(a,e),e._dictionary.has("AllowedInteractions")){var A=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(A)}a.StrokeColor=t.isNullOrUndefined(e.color)?"rgba(0,0,0,1)":"rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")";var h=!t.isNullOrUndefined(e.color)&&e.color[3]?e.color[3]:1;if(e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(h=parseInt(e._dictionary.get("FillOpacity").toString(),10)),h=e.innerColor?h:0,e.innerColor=e.innerColor?e.innerColor:[255,255,255],a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+h+")",a.EnableShapeLabel=!1,null!=r&&(a.EnableShapeLabel=!0,a.LabelContent=r.text,a.LabelFillColor="rgba("+r.color[0]+","+r.color[1]+","+r.color[2]+","+(r.color[3]?r.color[3]:1)+")",a.FontColor="rgba("+r.textMarkUpColor[0]+","+r.textMarkUpColor[1]+","+r.textMarkUpColor[2]+","+(r.textMarkUpColor[3]?r.textMarkUpColor[3]:1)+")",a.LabelBorderColor="rgba("+r.borderColor[0]+","+r.borderColor[1]+","+r.borderColor[2]+","+(r.borderColor[3]?r.borderColor[3]:1)+")",a.FontSize=r.font.size),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var p=e._dictionary.get("CustomData");null!=p&&(a.ExistingCustomData=p)}return a},e.prototype.loadLineAnnotation=function(e,i,n,o,r){var a=new Io;a.ShapeAnnotationType="Line",a.Author=e.author,a.AnnotName=e.name,a.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Note=this.getValidNoteContent(e.text),a.Thickness=e.border.width,a.BorderStyle=this.getBorderStylesString(e.border.style),a.BorderDashArray=e.border.dash&&e.border.dash[0]?e.border.dash[0]:0,a.Opacity=e.opacity,a.RotateAngle=this.getRotateAngleString(e.rotate),a.AnnotType="shape",a.EnableShapeLabel=!1,null!=r&&(a.EnableShapeLabel=!0,a.LabelContent=r.text,a.LabelFillColor="rgba("+r.color[0]+","+r.color[1]+","+r.color[2]+","+(r.color[3]?r.color[3]:1)+")",a.FontColor="rgba("+r.textMarkUpColor[0]+","+r.textMarkUpColor[1]+","+r.textMarkUpColor[2]+","+(r.textMarkUpColor[3]?r.textMarkUpColor[3]:1)+")",a.LabelBorderColor="rgba("+r.borderColor[0]+","+r.borderColor[1]+","+r.borderColor[2]+","+(r.borderColor[3]?r.borderColor[3]:1)+")",a.FontSize=r.font.size,a.FontFamily=this.getFontFamilyString(r.font._fontFamily));for(s=0;s<e.reviewHistory.count;s++)a.State=this.getStateString(e.reviewHistory.at(parseInt(s.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(s.toString(),10)).stateModel);(t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array;for(var s=0;s<e.comments.count;s++){var l=this.loadPopupAnnotation(e.comments.at(s),i,n,o);a.Comments.push(l)}if(a.Bounds=this.getBounds(e.bounds,i,n,o),a.LineHeadStart=this.getLineEndingStyleStr
10ing(e.lineEndingStyle.begin),a.LineHeadEnd=this.getLineEndingStyleString(e.lineEndingStyle.end),t.isNullOrUndefined(e._borderEffect)?(a.IsCloudShape=!1,a.CloudIntensity=0):e._borderEffect.style===d.PdfBorderEffectStyle.cloudy?(a.IsCloudShape=!0,a.CloudIntensity=e._borderEffect.intensity):(a.IsCloudShape=!1,a.CloudIntensity=0),a.VertexPoints=this.getLinePoints(e.linePoints,i,n,o,e._page),e._dictionary.has("RD")&&!t.isNullOrUndefined(e._dictionary.get("RD"))?a.RectangleDifference=e._dictionary.get("RD"):a.RectangleDifference=new Array,this.updateIsLockProperty(a,e),e._dictionary.has("AllowedInteractions")){var A=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(A)}var h=t.isNullOrUndefined(e.color)?[0,0,0]:e.color;a.StrokeColor="rgba("+h[0]+","+h[1]+","+h[2]+","+(h[3]?h[3]:1)+")";var p=e.color&&e.color[3]?e.color[3]:1;if(e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(p=parseInt(e._dictionary.get("FillOpacity").toString(),10)),p=e.innerColor?p:0,e.innerColor=e.innerColor?e.innerColor:[255,255,255],a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+p+")",e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))&&null!=(g=e._dictionary.get("CustomData"))&&(a.ExistingCustomData=g),e.lineIntent!==d.PdfLineIntent.lineArrow&&e._dictionary.has("Measure")){var c=new Eo(a);if(e._dictionary.has("Measure")&&(c.Calibrate=this.getMeasureObject(e)),c.Indent=e.lineIntent.toString(),c.Caption=e.caption.cap,c.LeaderLength=e.leaderExt,c.LeaderLineExtension=e.leaderLine,c.ExistingCustomData=a.ExistingCustomData,e._dictionary.has("LLO")?c.LeaderLineOffset=e._dictionary.get("LLO"):c.LeaderLineOffset=0,c.CaptionPosition=e.caption.type.toString(),e.flags===d.PdfAnnotationFlag.readOnly?c.IsCommentLock=!0:c.IsCommentLock=!1,e.flags===d.PdfAnnotationFlag.print&&(c.IsPrint=!0),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var g=e._dictionary.get("CustomData");null!=g&&(c.ExistingCustomData=g)}return c}return a},e.prototype.getLinePoints=function(e,t,i,n,o){var r=[],a=new Mo(e[0],e[1]),s=new Mo(e[2],e[3]),l=this.getBothCropBoxValue(o),d=0,A=0;return 0===l[0]&&o.cropBox[2]===o.size[2]&&l[1]===o.size[3]||(d=l[0],A=l[1]),0===n?(a={X:this.convertPointToPixel(e[0])-this.convertPointToPixel(d),Y:t-this.convertPointToPixel(e[1])+this.convertPointToPixel(A)},s={X:this.convertPointToPixel(e[2])-this.convertPointToPixel(d),Y:t-this.convertPointToPixel(e[3])+this.convertPointToPixel(A)}):1===n?(a={X:this.convertPointToPixel(e[1]),Y:this.convertPointToPixel(e[0])},s={X:this.convertPointToPixel(e[3]),Y:this.convertPointToPixel(e[2])}):2===n?(a={X:i-this.convertPointToPixel(e[0]),Y:this.convertPointToPixel(e[1])},s={X:i-this.convertPointToPixel(e[2]),Y:this.convertPointToPixel(e[3])}):3===n&&(a={X:i-this.convertPointToPixel(e[1]),Y:t-this.convertPointToPixel(e[0])},s={X:i-this.convertPointToPixel(e[3]),Y:t-this.convertPointToPixel(e[2])}),r.push(a),r.push(s),r},e.prototype.loadEllipseAnnotation=function(e,i,n,o,r){var a=new Io;a.ShapeAnnotationType="Circle",a.Author=e.author,a.AnnotName=e.name,a.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Note=this.getValidNoteContent(e.text),a.Thickness=e.border.width,a.BorderStyle=this.getBorderStylesString(e.border.style),a.BorderDashArray=e.border.dash&&e.border.dash[0]?e.border.dash[0]:0,a.Opacity=e.opacity,a.RotateAngle=this.getRotateAngleString(e.rotate),a.AnnotType="shape";for(s=0;s<e.reviewHistory.count;s++)a.State=this.getStateString(e.reviewHistory.at(parseInt(s.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(s.toString(),10)).stateModel);(t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array;for(var s=0;s<e.comments.count;s++){var l=this.loadPopupAnnotation(e.comments.at(s),i,n,o);a.Comments.push(l)}if(a.Bounds=this.getBounds(e.bounds,i,n,o),a.LineHeadStart="None",a.LineHeadEnd="None",t.isNullOrUndefined(e._borderEffect)?(a.IsCloudShape=!1,a.CloudIntensity=0):e._borderEffect.style===d.PdfBorderEffectStyle.cloudy?(a.IsCloudShape=!0,a.CloudIntensity=e._borderEffect.intensity):(a.IsCloudShape=!1,a.CloudIntensity=0),e._dictionary.has("RD")&&!t.isNullOrUndefined(e._dictionary.get("RD"))?a.RectangleDifference=e._dictionary.get("RD"):a.RectangleDifference=new Array,this.updateIsLockProperty(a,e),e._dictionary.has("AllowedInteractions")){var A=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(A)}a.StrokeColor="rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")";var h=e.color[3]?e.color[3]:1;if(e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(h=parseInt(e._dictionary.get("FillOpacity").toString(),10)),h=e.innerColor?h:0,e.innerColor=e.innerColor?e.innerColor:[255,255,255],a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+h+")",a.EnableShapeLabel=!1,null!=r&&(a.EnableShapeLabel=!0,a.LabelContent=r.text,a.LabelFillColor="rgba("+r.color[0]+","+r.color[1]+","+r.color[2]+","+(r.color[3]?r.color[3]:1)+")",a.FontColor="rgba("+r.textMarkUpColor[0]+","+r.textMarkUpColor[1]+","+r.textMarkUpColor[2]+","+(r.textMarkUpColor[3]?r.textMarkUpColor[3]:1)+")",a.LabelBorderColor="rgba("+r.borderColor[0]+","+r.borderColor[1]+","+r.borderColor[2]+","+(r.borderColor[3]?r.borderColor[3]:1)+")",a.FontSize=r.font.size),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))&&null!=(c=e._dictionary.get("CustomData"))&&(a.ExistingCustomData=c),e._dictionary.has("Measure")){a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+h+")";var p=new Eo(a);if(p.Calibrate=this.getMeasureObject(e),e._dictionary.has("IT")?p.Indent=e._dictionary.get("IT"):p.Indent="PolyLineDimension",p.Caption=!1,p.LeaderLength=0,p.LeaderLineExtension=0,p.LeaderLineOffset=0,p.CaptionPosition="",e.flags===d.PdfAnnotationFlag.readOnly?p.IsCommentLock=!0:p.IsCommentLock=!1,e.flags===d.PdfAnnotationFlag.print&&(p.IsPrint=!0),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var c=e._dictionary.get("CustomData");null!=c&&(p.ExistingCustomData=c)}return p}return a},e.prototype.loadPolygonAnnotation=function(e,i,n,o,r){var a=new Io;a.ShapeAnnotationType="Polygon",a.Author=e.author,a.AnnotName=e.name,a.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Note=this.getValidNoteContent(e.text),a.Thickness=e.border.width,a.BorderStyle=this.getBorderStylesString(e.border.style),a.BorderDashArray=e.border.dash&&e.border.dash[0]?e.border.dash[0]:0,a.Opacity=e.opacity,a.RotateAngle=this.getRotateAngleString(e.rotate),a.AnnotType="shape";for(s=0;s<e.reviewHistory.count;s++)a.State=this.getStateString(e.reviewHistory.at(parseInt(s.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(s.toString(),10)).stateModel);(t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array;for(var s=0;s<e.comments.count;s++){var l=this.loadPopupAnnotation(e.comments.at(s),i,n,o);a.Comments.push(l)}a.Bounds=this.getBounds(e.bounds,i,n,o),t.isNullOrUndefined(e._dictionary.get("Vertices"))||(a.VertexPoints=this.getVertexPoints(e._dictionary.get("Vertices"),n,i,o,e._page)),t.isNullOrUndefined(a.VertexPoints)||JSON.stringify(a.VertexPoints[0])===JSON.stringify(a.VertexPoints[a.VertexPoints.length-1])||a.VertexPoints.push(a.VertexPoints[0]),a.StrokeColor="rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")";var A=e.color[3]?e.color[3]:1;if(e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(A=parseInt(e._dictionary.get("FillOpacity").toString(),10)),A=e.innerColor?A:0,e.innerColor=e.innerColor?e.innerColor:[255,255,255],a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+A+")",a.LineHeadStart="None",a.LineHeadEnd="None",a.EnableShapeLabel=!1,null!=r&&(a.EnableShapeLabel=!0,a.LabelContent=r.text,a.LabelFillColor="rgba("+r.color[0]+","+r.color[1]+","+r.color[2]+","+(r.color[3]?r.color[3]:1)+")",a.FontColor="rgba("+r.textMarkUpColor[0]+","+r.textMarkUpColor[1]+","+r.textMarkUpColor[2]+","+(r.textMarkUpColor[3]?r.textMarkUpColor[3]:1)+")",a.LabelBorderColor="rgba("+r.borderColor[0]+","+r.borderColor[1]+","+r.borderColor[2]+","+(r.borderColor[3]?r.borderColor[3]:1)+")",a.FontSize=r.font.size),t.isNullOrUndefined(e.borderEffect)?(a.IsCloudShape=!1,a.CloudIntensity=0):e.borderEffect.style===d.PdfBorderEffectStyle.cloudy?(a.IsCloudShape=!0,a.CloudIntensity=e.borderEffect.intensity):(a.IsCloudShape=!1,a.CloudIntensity=0),e._dictionary.has("RD")&&!t.isNullOrUndefined(e._dictionary.get("RD"))?a.RectangleDifference=e._dictionary.get("RD"):a.RectangleDifference=new Array,this.updateIsLockProperty(a,e),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))&&null!=(c=e._dictionary.get("CustomData"))&&(a.ExistingCustomData=c),e._dictionary.has("AllowedInteractions")){var h=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(h)}if(e._dictionary.has("Measure")){var p=new Eo(a);if(e._dictionary.has("IT")&&!t.isNullOrUndefined(e._dictionary.get("IT"))?p.Indent=e._dictionary.get("IT").name:p.Indent="PolygonDimension",p.Calibrate=this.getMeasureObject(e),t.isNullOrUndefined(p.Calibrate))return a;
10if("PolygonVolume"===p.Indent&&e._dictionary.has("Depth")&&!t.isNullOrUndefined(e._dictionary.get("Depth"))&&(p.Calibrate.Depth=e._dictionary.get("Depth")),p.Caption=!1,p.LeaderLength=0,p.LeaderLineExtension=0,p.LeaderLineOffset=0,p.CaptionPosition="",e.flags===d.PdfAnnotationFlag.readOnly?p.IsCommentLock=!0:p.IsCommentLock=!1,e.flags===d.PdfAnnotationFlag.print&&(p.IsPrint=!0),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var c=e._dictionary.get("CustomData");t.isNullOrUndefined(c)||(p.ExistingCustomData=c)}return p}return a},e.prototype.loadPolylineAnnotation=function(e,i,n,o,r){var a=new Io;if(a.ShapeAnnotationType="Polyline",a.Author=e.author,a.AnnotName=e.name,a.Subject=e.subject,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Note=this.getValidNoteContent(e.text),a.Thickness=e.border.width,a.BorderStyle=this.getBorderStylesString(e.border.style),a.BorderDashArray=e.border.dash&&e.border.dash[0]?e.border.dash[0]:0,a.Opacity=e.opacity,a.RotateAngle=this.getRotateAngleString(e.rotate),a.AnnotType="shape",!t.isNullOrUndefined(e.reviewHistory))for(s=0;s<e.reviewHistory.count;s++)a.State=this.getStateString(e.reviewHistory.at(parseInt(s.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(s.toString(),10)).stateModel);if((t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array,!t.isNullOrUndefined(e.comments))for(var s=0;s<e.comments.count;s++){var l=this.loadPopupAnnotation(e.comments.at(s),i,n,o);a.Comments.push(l)}a.Bounds=this.getBounds(e.bounds,i,n,o),t.isNullOrUndefined(e._dictionary.get("Vertices"))||(a.VertexPoints=this.getVertexPoints(e._dictionary.get("Vertices"),n,i,o,e._page)),a.StrokeColor="rgba("+e.color[0]+","+e.color[1]+","+e.color[2]+","+(e.color[3]?e.color[3]:1)+")";var A=e.color[3]?e.color[3]:1;if(e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(A=parseInt(e._dictionary.get("FillOpacity").toString(),10)),A=e.innerColor?A:0,e.innerColor=e.innerColor?e.innerColor:[255,255,255],a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+A+")",a.LineHeadStart=this.getLineEndingStyleString(e.beginLineStyle),a.LineHeadEnd=this.getLineEndingStyleString(e.endLineStyle),a.EnableShapeLabel=!1,null!=r&&(a.EnableShapeLabel=!0,a.LabelContent=r.text,a.LabelFillColor="rgba("+r.color[0]+","+r.color[1]+","+r.color[2]+","+(r.color[3]?r.color[3]:1)+")",a.FontColor="rgba("+r.textMarkUpColor[0]+","+r.textMarkUpColor[1]+","+r.textMarkUpColor[2]+","+(r.textMarkUpColor[3]?r.textMarkUpColor[3]:1)+")",a.LabelBorderColor="rgba("+r.borderColor[0]+","+r.borderColor[1]+","+r.borderColor[2]+","+(r.borderColor[3]?r.borderColor[3]:1)+")",a.FontSize=r.font.size),t.isNullOrUndefined(e._borderEffect)?(a.IsCloudShape=!1,a.CloudIntensity=0):e._borderEffect.style===d.PdfBorderEffectStyle.cloudy?(a.IsCloudShape=!0,a.CloudIntensity=e._borderEffect.intensity):(a.IsCloudShape=!1,a.CloudIntensity=0),e._dictionary.has("RD")&&!t.isNullOrUndefined(e._dictionary.get("RD"))?a.RectangleDifference=e._dictionary.get("RD"):a.RectangleDifference=new Array,this.updateIsLockProperty(a,e),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))&&null!=(c=e._dictionary.get("CustomData"))&&(a.ExistingCustomData=c),e._dictionary.has("AllowedInteractions")){var h=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(h)}if(e._dictionary.has("Measure")){a.FillColor="rgba("+e.innerColor[0]+","+e.innerColor[1]+","+e.innerColor[2]+","+A+")";var p=new Eo(a);if(p.Calibrate=this.getMeasureObject(e),e._dictionary.has("IT")?p.Indent=e._dictionary.get("IT").name:p.Indent="PolyLineDimension",p.Caption=!1,p.LeaderLength=0,p.LeaderLineExtension=0,p.LeaderLineOffset=0,p.CaptionPosition="",e.flags===d.PdfAnnotationFlag.readOnly?p.IsCommentLock=!0:p.IsCommentLock=!1,e.flags===d.PdfAnnotationFlag.print&&(p.IsPrint=!0),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var c=e._dictionary.get("CustomData");null!=c&&(p.ExistingCustomData=c)}return p}return a},e.prototype.loadSignatureImage=function(e,t){var n=e,o=new vo;o.SignatureName=n.name;var r=e._dictionary.get("AP");if(null===r){var a=e._dictionary.get("AP");null!==a&&null!==a.Object&&(r=a.Object)}
vendor: 28,372 bytes, line 10
10return null!==r&&r.has("N")&&this.m_renderer.findStampImage(e),o.Bounds=new i.Rect(n.bounds.x,n.bounds.y,n.bounds.width,n.bounds.height),o.PathData=this.m_renderer.imageData,o.AnnotationType="SignatureImage",o.PageNumber=t,o.Opacity=n.opacity,o.StrokeColor="rgba("+n.color+","+n.color[1]+","+n.color[2]+","+(n.color[3]?n.color[3]:1)+")",o},e.prototype.getMeasureObject=function(e){var i,n=new bo;if(e._dictionary.has("Measure")&&(i=e._dictionary.get("Measure")),!i.has("R"))return null;n.Ratio=i.get("R");var o;i.has("X")&&(o=this.getMeasureValues(i.getArray("X"))),n.X=o;var r;i.has("D")&&(r=this.getMeasureValues(i.getArray("D"))),n.Distance=r;var a;i.has("A")&&(a=this.getMeasureValues(i.getArray("A"))),n.Area=a;var s;i.has("T")&&(s=this.getMeasureValues(i.getArray("T"))),n.Angle=s;var l;return i.has("V")&&(l=this.getMeasureValues(i.getArray("V"))),n.Volume=l,!t.isNullOrUndefined(i)&&i.has("TargetUnitConversion")?n.TargetUnitConversion=i.get("TargetUnitConversion").FloatValue:n.TargetUnitConversion=0,n},e.prototype.getMeasureValues=function(e){var i=new Array;if(!t.isNullOrUndefined(e))for(var n=0;n<e.length;n++){var o=e[parseInt(n.toString(),10)],r=new Vo;if(!t.isNullOrUndefined(o)){if(o.has("D")&&!t.isNullOrUndefined(o.get("D"))&&(r.Denominator=o.get("D")),o.has("C")&&!t.isNullOrUndefined(o.get("C"))&&(r.ConversionFactor=o.get("C")),o.has("F")&&!t.isNullOrUndefined(o.get("F"))){var a=o.get("F");"object"!=typeof a||t.isNullOrUndefined(a.name)||(r.FractionalType=a.name)}else r.FractionalType="D";o.has("FD")&&!t.isNullOrUndefined(o.get("FD"))&&(r.FormatDenominator=o.get("FD")),o.has("U")&&!t.isNullOrUndefined(o.get("U"))&&(r.Unit=o.get("U"))}i.push(r)}return i},e.prototype.getVertexPoints=function(e,t,i,n,o){var r=[],a=this.getBothCropBoxValue(o),s=0,l=0;if(0===a[0]&&o.cropBox[2]===o.size[2]&&a[1]===o.size[3]||(s=a[0],l=a[1]),0===n)for(d=0;d<e.length;d++){A={X:this.convertPointToPixel(e[parseInt(d.toString(),10)])-this.convertPointToPixel(s),Y:i-this.convertPointToPixel(e[d+1])+this.convertPointToPixel(l)};d+=1,r.push(A)}else if(1===n)for(d=0;d<e.length;d++){A={X:this.convertPointToPixel(e[d+1]),Y:this.convertPointToPixel(e[parseInt(d.toString(),10)])};d+=1,r.push(A)}else if(2===n)for(d=0;d<e.length;d++){A={X:t-this.convertPointToPixel(e[parseInt(d.toString(),10)]),Y:this.convertPointToPixel(e[d+1])};d+=1,r.push(A)}else if(3===n)for(var d=0;d<e.length;d++){var A={X:t-this.convertPointToPixel(e[d+1]),Y:i-this.convertPointToPixel(e[parseInt(d.toString(),10)])};d+=1,r.push(A)}return r},e.prototype.getLineIndentString=function(e){switch(e){case d.PdfLineIntent.lineArrow:return"LineArrow";case d.PdfLineIntent.lineDimension:return"LineDimension"}},e.prototype.getLineEndingStyleString=function(e){switch(e){case d.PdfLineEndingStyle.none:return"None";case d.PdfLineEndingStyle.butt:return"Butt";case d.PdfLineEndingStyle.circle:return"Circle";case d.PdfLineEndingStyle.closedArrow:return"ClosedArrow";case d.PdfLineEndingStyle.diamond:return"Diamond";case d.PdfLineEndingStyle.openArrow:return"OpenArrow";case d.PdfLineEndingStyle.rClosedArrow:return"RClosedArrow";case d.PdfLineEndingStyle.rOpenArrow:return"ROpenArrow";case d.PdfLineEndingStyle.slash:return"Slash";case d.PdfLineEndingStyle.square:return"Square"}},e.prototype.getBorderStylesString=function(e){switch(e){case d.PdfBorderStyle.solid:return"Solid";case d.PdfBorderStyle.dashed:return"Dashed";case d.PdfBorderStyle.beveled:return"Beveled";case d.PdfBorderStyle.inset:return"Inset";case d.PdfBorderStyle.underline:return"Underline";case d.PdfBorderStyle.dot:return"Dot";default:return"None"}},e.prototype.getBorderStyle=function(e){var t=d.PdfBorderStyle.solid;switch(e){case"Solid":t=d.PdfBorderStyle.solid;break;case"Dashed":t=d.PdfBorderStyle.dashed;break;case"Beveled":t=d.PdfBorderStyle.beveled;break;case"Inset":t=d.PdfBorderStyle.inset;break;case"Underline":t=d.PdfBorderStyle.underline;break;case"Dot":t=d.PdfBorderStyle.dot}return t},e.prototype.getRotateAngleString=function(e){switch(e){case d.PdfRotationAngle.angle0:return"RotateAngle0";case d.PdfRotationAngle.angle90:return"RotateAngle90";case d.PdfRotationAngle.angle180:return"RotateAngle180";case d.PdfRotationAngle.angle270:return"RotateAngle270";default:return"RotateAngle0"}},e.prototype.getValidNoteContent=function(e){return t.isNullOrUndefined(e)||""===e||" "===e?"":e},e.prototype.getBounds=function(e,t,i,n){var o;return 0===n?o=new Fo(this.convertPointToPixel(e.x),this.convertPointToPixel(e.y),this.convertPointToPixel(e.width),this.convertPointToPixel(e.height)):1===n?o=new Fo(i-this.convertPointToPixel(e.y)-this.convertPointToPixel(e.height),this.convertPointToPixel(e.x),this.convertPointToPixel(e.height),this.convertPointToPixel(e.width)):2===n?o=new Fo(i-this.convertPointToPixel(e.x)-this.convertPointToPixel(e.width),t-this.convertPointToPixel(e.y)-this.convertPointToPixel(e.height),this.convertPointToPixel(e.width),this.convertPointToPixel(e.height)):3===n&&(o=new Fo(this.convertPointToPixel(e.y),t-this.convertPointToPixel(e.x)-this.convertPointToPixel(e.width),this.convertPointToPixel(e.height),this.convertPointToPixel(e.width))),o},e.prototype.loadPopupAnnotation=function(e,i,n,o){var r=new Do;if(r.Author=e.author,r.Subject=e.subject,!e._dictionary.has("Subtype")||t.isNullOrUndefined(e._dictionary.get("Subtype"))||t.isNullOrUndefined(e._dictionary.get("Subtype").name)||(r.SubType=e._dictionary.get("Subtype").name.toString()),!e._dictionary.has("Type")||t.isNullOrUndefined(e._dictionary.get("Type"))||t.isNullOrUndefined(e._dictionary.get("Type").name)||(r.Type=e._dictionary.get("Type").name.toString()),e._dictionary.has("IRT")&&!t.isNullOrUndefined(e._dictionary.get("IRT"))){var a=e._dictionary.get("IRT");null!=a&&(r.Reference=a.Reference)}r.AnnotName=e.name,t.isNullOrUndefined(e.modifiedDate)?r.ModifiedDate=this.formatDate(new Date):r.ModifiedDate=this.formatDate(e.modifiedDate),r.Note=e.text,this.updateIsLockProperty(r,e),r.Icon=this.getPopupIconString(e.icon),r.State=this.getStateString(e.state),r.StateModel=this.getStateModelString(e.stateModel),r.Size=new go(e.bounds.width,e.bounds.height),e.color=e.color?e.color:[0,0,0],r.Color=new To(e.color[0],e.color[1],e.color[2]),r.Opacity=e.opacity,r.AnnotType="sticky",r.StrokeColor="rgba("+r.Color.R+","+r.Color.G+","+r.Color.B+",1)",r.Bounds=this.getBounds(e.bounds,i,n,o);for(l=0;l<e.reviewHistory.count;l++)r.State=this.getStateString(e.reviewHistory.at(parseInt(l.toString(),10)).state),r.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(l.toString(),10)).stateModel);if((t.isNullOrUndefined(r.State)||"None"===r.State||t.isNullOrUndefined(r.StateModel))&&(r.State="Unmarked",r.StateModel="None"),r.Comments=new Array,e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var s=e._dictionary.get("CustomData");null!=s&&(r.ExistingCustomData=s)}for(var l=0;l<e.comments.count;l++)r.Comments.push(this.loadPopupAnnotation(e.comments.at(l),i,n,o));return r},e.prototype.loadFreeTextAnnotation=function(e,i,n,o,r){var a=new So;a.AnnotationIntent=this.getAnnotationIntentString(e.annotationIntent),a.AnnotationFlags=this.getAnnotationFlagsString(e.flags),a.Author=e.author,a.AnnotName=e.name,(t.isNullOrUndefined(a.AnnotName)||""===a.AnnotName)&&(a.AnnotName=Math.abs(Math.random()).toString(36).substring(2)),a.AnnotType="Text Box",a.FreeTextAnnotationType="Text Box",a.BorderColor=new To(e.borderColor[0],e.borderColor[1],e.borderColor[2]);var s=[{X:100,Y:400},{X:200,Y:400}];a.CalloutLines=s;var l=e.color?e.color:[0,0,0];t.isNullOrUndefined(e.color)&&(a.IsTransparentSet=!0),a.Color=new To(l[0],l[1],l[2]),a.Flatten=e.flatten,a.FlattenPopups=!t.isNullOrUndefined(e.flattenPopups)&&e.flattenPopups,2===e.font._fontFamily?a.FontFamily=this.getFontFamilyString(e.font._fontFamily):a.FontFamily=e._obtainFontDetails().name,a.FontSize=this.convertPointToPixel(e.font.size),a.Font=new ko(e.font,a.FontFamily),a.Thickness=e.border.width,a.StrokeColor="rgba("+e.borderColor[0]+","+e.borderColor[1]+","+e.borderColor[2]+","+(e.borderColor[3]?e.borderColor[3]:1)+")";var d;e._dictionary.has("FillOpacity")&&!t.isNullOrUndefined(e._dictionary.get("FillOpacity"))&&(d=parseInt(e._dictionary.get("FillOpacity").toString(),10)),d=e.color?t.isNullOrUndefined(d)?1:d:0,a.FillColor="rgba("+l[0]+","+l[1]+","+l[2]+","+d+")",a.Layer=e._dictionary.has("Layer")?e._dictionary.get("Layer"):null,a.Location=e._dictionary.has("Location")?e._dictionary.get("Location"):"{X="+e.bounds.x+",Y="+e.bounds.y+"}",a.MarkupText=e.text,t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.Name="freeText",a.Opacity=e.opacity,e._dictionary.has("Rotation")&&!t.isNullOrUndefined(e._dictionary.get("Rotation"))&&(a.Rotate=parseInt(e._dictionary.get("Rotation"),10)),e._dictionary.has("Rotate")&&!t.isNullOrUndefined(e._dictionary.get("Rotate"))&&(a.Rotate=parseInt(e._dictionary.get("Rotate"),10)),t.isNullOrUndefined(e.subject)?a.Subject="Text Box":a.Subject=e.subject,a.Text=e.text,a.MarkupText=e.text,a.TextAlign=this.getTextAlignmentString(e.textAlignment),(t.isNullOrUndefined(a.State)||"None"===a.State||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.FontColor=t.isNullOrUndefined(e.textMarkUpColor)?"rgba(0, 0, 0, 1)":"rgba("+e.textMarkUpColor[0]+","+e.textMarkUpColor[1]+","+e.textMarkUpColor[2]+","+(e.textMarkUpColor[3]?e.textMarkUpColor[3]:1)+")";for(A=0;A<e.reviewHistory.count;A++)a.State=this.getStateString(e.reviewHistory.at(parseInt(A.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(A.toString(),10)).stateModel);a.Comments=new Array;for(var A=0;A<e.comments.count;A++){var h=this.loadPopupAnnotation(e.comments.at(A),i,n,o);a.Comments.push(h)}if(a.Bounds=this.getBounds(e.bounds,i,n,o),a.Bounds.Y<0){var p={x:e.bounds.x,y:r.cropBox[1]+e.bounds.y,width:e.bounds.width,height:e.bounds.height};a.Bounds=this.getBounds(p,i,n,o)}if(a.PageRotation=o,this.updateIsLockProperty(a,e),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var c=e._dictionary.get("CustomData");null!=c&&(a.ExistingCustomData=c)}if(e._dictionary.has("AllowedInteractions")){var g=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(g)}return a},e.prototype.getTextAlignmentString=function(e){switch(e){case d.PdfTextAlignment.left:return"Left";case d.PdfTextAlignment.right:return"Right";case d.PdfTextAlignment.center:return"Center";case d.PdfTextAlignment.justify:return"Justify";default:return"Left"}},e.prototype.loadSignatureText=function(e,t,i,n,o){var r=new vo;return r.SignatureName=e.name,r.Bounds=this.getBounds(e.bounds,n,i,o),r.AnnotationType="SignatureText",r.FontFamily=this.getFontFamilyString(e.font._fontFamily),r.FontSize=this.convertPointToPixel(e.font.size),r.PathData=e.text,r.PageNumber=t,r.StrokeColor="rgba("+e.textMarkUpColor[0]+","+e.textMarkUpColor[1]+","+e.textMarkUpColor[2]+","+(e.textMarkUpColor[3]?e.textMarkUpColor[3]:1)+")",r.Opacity=e.opacity,r.Thickness=1,r},e.prototype.getFontFamilyString=function(e){switch(e){case d.PdfFontFamily.helvetica:return"Helvetica";case d.PdfFontFamily.timesRoman:return"Times New Roman";case d.PdfFontFamily.courier:return"Courier";case d.PdfFontFamily.symbol:return"Symbol";case d.PdfFontFamily.zapfDingbats:return"ZapfDingbats";default:return"Helvetica"}},e.prototype.getAnnotationFlagsString=function(e){switch(e){case d.PdfAnnotationFlag.default:return"Default";case d.PdfAnnotationFlag.invisible:return"Invisible";case d.PdfAnnotationFlag.hidden:return"Hidden";case d.PdfAnnotationFlag.print:return"Print";case d.PdfAnnotationFlag.noZoom:return"NoZoom";case d.PdfAnnotationFlag.noRotate:return"NoRotate";case d.PdfAnnotationFlag.noView:return"NoView";case d.PdfAnnotationFlag.readOnly:return"ReadOnly";case d.PdfAnnotationFlag.locked:return"Locked";case d.PdfAnnotationFlag.toggleNoView:return"ToggleNoView";default:return"Default"}},e.prototype.getAnnotationIntentString=function(e){switch(e){case d.PdfAnnotationIntent.freeTextCallout:return"FreeTextCallout";case d.PdfAnnotationIntent.freeTextTypeWriter:return"FreeTextTypeWriter";case d.PdfAnnotationIntent.none:return"None"}},e.prototype.getStateString=function(e){switch(e){case d.PdfAnnotationState.accepted:return"Accepted";case d.PdfAnnotationState.rejected:return"Rejected";case d.PdfAnnotationState.cancel:return"Cancelled";case d.PdfAnnotationState.completed:return"Completed";case d.PdfAnnotationState.none:return"None";case d.PdfAnnotationState.unmarked:return"Unmarked";case d.PdfAnnotationState.marked:return"Marked";case d.PdfAnnotationState.unknown:return"Unknown";default:return null}},e.prototype.getStateModelString=function(e){switch(e){case d.PdfAnnotationStateModel.review:return"Review";case d.PdfAnnotationStateModel.marked:return"Marked";case d.PdfAnnotationStateModel.none:default:return"None"}},e.prototype.getPopupIconString=function(e){switch(e){case d.PdfPopupIcon.comment:return"Comment";case d.PdfPopupIcon.help:return"Help";case d.PdfPopupIcon.insert:return"Insert";case d.PdfPopupIcon.key:return"Key";case d.PdfPopupIcon.newParagraph:return"NewParagraph";case d.PdfPopupIcon.note:return"Note";case d.PdfPopupIcon.paragraph:return"Paragraph";default:return null}},e.prototype.formatDate=function(e){return this.datePadding(e.getMonth()+1)+"/"+this.datePadding(e.getDate())+"/"+e.getFullYear()+" "+this.datePadding(e.getHours())+":"+this.datePadding(e.getMinutes())+":"+this.datePadding(e.getSeconds())},e.prototype.datePadding=function(e){return e<10?"0"+e:e.toString()},e.prototype.removeSignatureTypeAnnot=function(e,t){if(Object.prototype.hasOwnProperty.call(e,"isAnnotationsExist")&&JSON.parse(e.isAnnotationsExist)||Object.prototype.hasOwnProperty.call(e,"isFormFieldAnnotationsExist")&&JSON.parse(e.isFormFieldAnnotationsExist)){var i=e.annotationsPageList?e.annotationsPageList:[],n=e.formFieldsPageList?e.formFieldsPageList:"[]";if(0!==i.length)for(var o=JSON.parse(i),r=0;r<o.length;r++)for(var a=o[parseInt(r.toString(),10)],s=(A=t.getPage(parseInt(a,10))).annotations,l=(h=parseInt(s.count.toString(),10))-1;l>=0;l--)((p=s.at(l))instanceof d.PdfFreeTextAnnotation||p instanceof d.PdfInkAnnotation||p instanceof d.PdfLineAnnotation||p instanceof d.PdfRubberStampAnnotation||p instanceof d.PdfTextMarkupAnnotation||p instanceof d.PdfPopupAnnotation||p instanceof d.PdfSquareAnnotation||p instanceof d.PdfCircleAnnotation||p instanceof d.PdfEllipseAnnotation||p instanceof d.PdfPolygonAnnotation||p instanceof d.PdfRectangleAnnotation||p instanceof d.PdfPolyLineAnnotation)&&s.remove(p);if(0!==n.length)for(var o=JSON.parse(n),r=0;r<o.length;r++)for(var a=o[parseInt(r.toString(),10)],A=t.getPage(parseInt(a,10)-1),s=A.annotations,h=parseInt(s.count.toString(),10),l=h-1;l>=0;l--){var p=s.at(l);(p instanceof d.PdfFreeTextAnnotation||p instanceof d.PdfInkAnnotation||p instanceof d.PdfLineAnnotation||p instanceof d.PdfRubberStampAnnotation||p instanceof d.PdfTextMarkupAnnotation||p instanceof d.PdfPopupAnnotation||p instanceof d.PdfSquareAnnotation||p instanceof d.PdfCircleAnnotation||p instanceof d.PdfEllipseAnnotation||p instanceof d.PdfPolygonAnnotation||p instanceof d.PdfRectangleAnnotation||p instanceof d.PdfPolyLineAnnotation)&&s.remove(p)}}},e.prototype.updateIsLockProperty=function(e,i){var n=d._annotationFlagsToString(i.flags);!t.isNullOrUndefined(n)&&n.includes("locked")?e.IsLocked=!0:e.IsLocked=!1,!t.isNullOrUndefined(n)&&n.includes("readOnly")?e.IsCommentLock=!0:e.IsCommentLock=!1,!t.isNullOrUndefined(n)&&n.includes("print")&&(e.IsPrint=!0)},e.prototype.loadTextMarkupAnnotation=function(e,i,n,o,r){var a=new xo;a.TextMarkupAnnotationType=this.getMarkupAnnotTypeString(e.textMarkupType),"StrikeOut"===a.TextMarkupAnnotationType&&(a.TextMarkupAnnotationType="Strikethrough"),a.Author=e.author,a.Subject=e.subject,a.AnnotName=e.name,a.Note=e.text?e.text:"",a.Rect=new No(e.bounds.x,e.bounds.y,e.bounds.width+e.bounds.x,e.bounds.height+e.bounds.y),a.Opacity=e.opacity,a.Color="#"+(1<<24|e.color[0]<<16|e.color[1]<<8|e.color[2]).toString(16).slice(1),t.isNullOrUndefined(e.modifiedDate)?a.ModifiedDate=this.formatDate(new Date):a.ModifiedDate=this.formatDate(e.modifiedDate),a.AnnotationRotation=e.rotationAngle;var s=e._dictionary.has("QuadPoints")?e._dictionary.get("QuadPoints"):[],l=[];if(0===o)for(u=0;u<e.boundsCollection.length;u++){var d=e.boundsCollection[parseInt(u.toString(),10)],A=d[0],h=d[1],p=d[2],c=d[3],g={x:A,y:h,width:p,height:c};l.push(this.getBounds(g,c,p,o))}else l=this.getTextMarkupBounds(s,i,n,o,r);a.Bounds=l,a.AnnotType="textMarkup";for(u=0;u<e.reviewHistory.count;u++)a.State=this.getStateString(e.reviewHistory.at(parseInt(u.toString(),10)).state),a.StateModel=this.getStateModelString(e.reviewHistory.at(parseInt(u.toString(),10)).stateModel);(t.isNullOrUndefined(a.State)||t.isNullOrUndefined(a.StateModel))&&(a.State="Unmarked",a.StateModel="None"),a.Comments=new Array;for(var u=0;u<e.comments.count;u++){var f=this.loadPopupAnnotation(e.comments.at(u),i,n,o);a.Comments.push(f)}if(this.updateIsLockProperty(a,e),e._dictionary.has("CustomData")&&!t.isNullOrUndefined(e._dictionary.get("CustomData"))){var m=e._dictionary.get("CustomData");null!=m&&(a.ExistingCustomData=m)}if(e._dictionary.has("AllowedInteractions")){var w=e.getValues("AllowedInteractions")[0];a.AllowedInteractions=JSON.parse(w)}if(e._dictionary.has("TextMarkupContent")){var C=e.getValues("TextMarkupContent");t.isNullOrUndefined(C)||(a.TextMarkupContent=C[0])}return a},e.prototype.getTextMarkupBounds=function(e,i,n,o,r){var a=0,s=0,l=0,d=0,A=[],h=this.getCropBoxValue(r,!1),p=0,c=0;if(0!==h.x&&0!==h.y&&(p=h.x,c=h.y),!t.isNullOrUndefined(e))for(var g=0;g<e.length;g++){0===o?(a=this.convertPointToPixel(parseInt(e[parseInt(g.toString(),10)],10)-p),s=i-this.convertPointToPixel(parseInt(e[g+1],10)+c),d=this.convertPointToPixel(parseInt(e[g+3],10)-parseInt(e[g+7],10)),l=this.convertPointToPixel(parseInt(e[g+6],10)-parseInt(e[g+4],10))):1===o?(a=this.convertPointToPixel(parseInt(e[g+5],10)),s=this.convertPointToPixel(parseInt(e[parseInt(g.toString(),10)],10)),d=this.convertPointToPixel(parseInt(e[g+6],10)-parseInt(e[g+4],10)),l=this.convertPointToPixel(parseInt(e[g+3],10)-parseInt(e[g+7],10))):2===o?(a=n-this.convertPointToPixel(parseInt(e[g+2],10)),s=this.convertPointToPixel(parseInt(e[g+5],10)),d=this.convertPointToPixel(parseInt(e[g+3],10)-parseInt(e[g+7],10)),l=this.convertPointToPixel(parseInt(e[g+6],10)-parseInt(e[g+4],10))):(a=n-this.convertPointToPixel(parseInt(e[g+1],10)),s=i-this.convertPointToPixel(parseInt(e[g+6],10)),d=this.convertPointToPixel(parseInt(e[g+6],10)-parseInt(e[g+4],10)),l=this.convertPointToPixel(parseInt(e[g+3],10)-parseInt(e[g+7],10)));var u=new Fo(a,s,l,d);g+=7,A.push(u)}return A},e.prototype.destroy=function(){this.formats=null,this.defaultWidth=null,this.defaultHeight=null,this.m_renderer=null},e.prototype.getMarkupAnnotTypeString=function(e){var t="";switch(e){case d.PdfTextMarkupAnnotationType.highlight:t="Highlight";break;case d.PdfTextMarkupAnnotationType.strikeOut:t="StrikeOut";break;case d.PdfTextMarkupAnnotationType.underline:t="Underline";break;case d.PdfTextMarkupAnnotationType.squiggly:t="Squiggly"}return t},e}(),Bo=function(){function e(e,t){this.x=e,this.y=t}return e}(),So=function(){function e(){this.AnnotationSelectorSettings=null,this.TextMarkupColor=null,this.Color=null,this.Font=null,this.Border=null,this.LineEndingStyle=null,this.AnnotationFlags=null,this.CalloutLines=null,this.ModifiedDate=null,this.Comments=null,this.CreatedDate=null,this.InnerColor=null,this.Layer=null,this.Page=null,this.PageTags=null,this.ReviewHistory=null,this.Rotate=0,this.Note=null,this.CustomData=null,this.AnnotationSettings=null,this.IsPrint=!0,this.IsReadonly=!1,this.ExistingCustomData=null,this.Bounds=null,this.PageRotation=0,this.IsTransparentSet=!1}return e}(),yo=function(){function e(){this.AnnotationType=null,this.Bounds=null,this.CustomData=null,this.Opacity=0,this.StrokeColor=null,this.Thickness=null,this.PathData=null,this.IsLocked=null,this.IsCommentLock=null,this.PageNumber=null,this.AnnotName=null,this.Author=null,this.ModifiedDate=null,this.Subject=null,this.Note=null,this.State=null,this.StateModel=null,this.AnnotationSelectorSettings=null,this.AnnotationSettings=null,this.AllowedInteractions=null,this.Comments=null,this.AnnotType=null,this.IsPrint=null,this.ExistingCustomData=null}return e}(),Io=function(){function e(){this.LabelBounds=new Fo(0,0,0,0),this.LabelContent=null,this.LabelFillColor=null,this.LabelBorderColor=null,this.LabelSettings=null,this.FontColor=null,this.FontSize=0,this.FontFamily=null,this.AnnotationSettings=null,this.AnnotationSelectorSettings=null,this.VertexPoints=null,this.CustomData=null,this.ExistingCustomData=null,this.IsPrint=!0,this.AllowedInteractions=null,this.AnnotationRotation=0}return e}(),Eo=function(){function e(e){this.LabelBounds=new Fo(0,0,0,0),this.LabelContent=null,this.LabelFillColor=null,this.LabelBorderColor=null,this.LabelSettings=null,this.FontColor=null,this.FontSize=0,this.FontFamily=null,this.AnnotationSettings=null,this.AnnotationSelectorSettings=null,this.VertexPoints=null,this.CustomData=null,this.ExistingCustomData=null,this.IsPrint=!0,this.AllowedInteractions=null,this.AnnotationRotation=0,this.Author=e.Author,this.AnnotationSelectorSettings=e.AnnotationSelectorSettings,this.BorderDashArray=e.BorderDashArray,this.BorderStyle=e.BorderStyle,this.Bounds=e.Bounds,this.CloudIntensity=e.CloudIntensity,this.FillColor=e.FillColor,this.IsCloudShape=e.IsCloudShape,this.IsLocked=e.IsLocked,this.LineHeadEnd=e.LineHeadEnd,this.LineHeadStart=e.LineHeadStart,this.ModifiedDate=e.ModifiedDate,this.Note=e.Note,this.Opacity=e.Opacity,this.RectangleDifference=e.RectangleDifference,this.RotateAngle=e.RotateAngle,this.ShapeAnnotationType=e.ShapeAnnotationType,this.StrokeColor=e.StrokeColor,this.Subject=e.Subject,this.Thickness=e.Thickness,this.VertexPoints=e.VertexPoints,this.AnnotName=e.AnnotName,this.Comments=e.Comments,this.State=e.State,this.StateModel=e.StateModel,this.AnnotType="shape_measure",this.AnnotationSettings=e.AnnotationSettings,this.EnableShapeLabel=e.EnableShapeLabel,this.AllowedInteractions=e.AllowedInteractions,this.AnnotationRotation=e.AnnotationRotation,!0===e.EnableShapeLabel&&(this.LabelContent=e.LabelContent,this.LabelFillColor=e.LabelFillColor,this.FontColor=e.FontColor,this.LabelBorderColor=e.LabelBorderColor,this.FontSize=e.FontSize,this.LabelSettings=e.LabelSettings,this.LabelBounds=e.LabelBounds)}return e}(),vo=function(){function e(){this.PathData=null,this.ExistingCustomData=null}return e}(),bo=function(){function e(){this.Ratio="",this.X=[],this.Distance=[],this.Area=[],this.Angle=[],this.Volume=[],this.TargetUnitConversion=0,this.Depth=0}return e}(),Vo=function(){function e(){this.Unit="",this.ConversionFactor=0,this.FractionalType="",this.Denominator=0,this.FormatDenominator=!1}return e}(),Do=function(){function e(){this.AnnotationFlags=null,this.AnnotationSelectorSettings=null,this.AnnotationSettings=null,this.ExistingCustomData=null,this.CustomData=null,this.IsPrint=!1}return e}(),xo=function(){function e(){this.AnnotationSelectorSettings=null,this.AnnotationSettings=null,this.ExistingCustomData=null,this.CustomData=null,this.IsPrint=!0,this.IsMultiSelect=!1,this.AnnotpageNumbers=null,this.AnnotNameCollection=null}return e}(),Qo=function(){function e(){}return e}(),Mo=function(){function e(e,t){this.X=e,this.Y=t}return e}(),Fo=function(){function e(e,t,i,n){this.X=e,this.Y=t,this.Width=i,this.Height=n,this.Location={X:e,Y:t},this.Size={IsEmpty:!1,Width:i,Height:n},this.Left=e,this.Top=t,this.Right=e+i,this.Bottom=t+n}return e}(),To=function(){function e(e,t,i){this.IsEmpty=!0,this.R=e,this.G=t,this.B=i,0===this.R&&0===this.G&&0===this.B||(this.IsEmpty=!1)}return e}(),ko=function(){function e(e,t){this.Bold=e.isBold,this.FontFamily=e._fontFamily,this.Height=e.height,this.Italic=e.isItalic,this.Name=t,this.Size=e.size,this.Strikeout=e.isStrikeout,this.Style=e.style,this.Underline=e.isUnderline}return e}(),Po=function(){function e(){this.points=[]}return e.prototype.moveTo=function(e,t){this.points.push([e,t])},e.prototype.lineTo=function(e,t){this.points.push([e,t])},e.prototype.transform=function(e){this.points=this.points.map(function(t){var i=t[0],n=t[1];return[e[0][0]*i+e[0][1]*n+e[0][2],e[1][0]*i+e[1][1]*n+e[1][2]]})},e}(),No=function(){function e(e,t,i,n){this.left=e,this.top=t,this.right=i,this.bottom=n,this.width=i-e,this.height=n-t}return e}(),Ro=function(){function e(e,t){this.pdfViewer=e,this.pdfViewerBase=t}return e.prototype.saveSignatureData=function(e,i){var n=new mo(this.pdfViewer,this.pdfViewerBase),o=JSON.parse(e.signatureData);if(!t.isNullOrUndefined(o))for(var r=0;r<o.length;r++){var a=o[parseInt(r.toString(),10)];if(a.length>0)for(var s=0;s<a.length;s++){var l=a[parseInt(s.toString(),10)],A=Object.prototype.hasOwnProperty.call(l,"shapeAnnotationType")&&null!==l.shapeAnnotationType?l.shapeAnnotationType.toString():null;if(null!==A&&"SignatureText"===A)n.drawFreeTextAnnotations(l,i,!0);else if(null!==A&&"SignatureImage"===A)n.drawImage(l,i,!0);else{var h=l.pageIndex,p=i.getPage(h),c=this.getRotateAngle(p.rotation.toString()),g=p.size,u=g[0],f=g[1];1===c||3===c?(f=g[0],u=g[1]):(f=g[1],u=g[0]);var m=JSON.parse(l.bounds);m=this.getSignatureBounds(m,this.convertPointToPixel(f),this.convertPointToPixel(u),c);for(var w=JSON.parse(l.data),C=this.convertPixelToPoint(m.left),B=this.convertPixelToPoint(m.top),S=this.convertPixelToPoint(m.width),y=this.convertPixelToPoint(m.height),I=l.opacity,E=l.thickness,v=JSON.parse(l.strokeColor),b=[v.r,v.g,v.b],V=-1,D=-1,x=-1,Q=-1,M=0;M<w.length;M++){var F=w[parseInt(M.toString(),10)];if(-1===V)V=F.x,D=F.y,x=F.x,Q=F.x;else{var T=F.x,k=F.y;V>=T&&(V=T),D>=k&&(D=k),x<=T&&(x=T),Q<=k&&(Q=k)}}var P=x-V,N=Q-D,R=[0,0],L=i.getPage(h),U=null;null!=L&&((U=L.graphics).save(),U.setTransparency(I),U.translateTransform(C,B));var O=new d.PdfPen(b,S);if(O._width=this.convertPixelToPoint(E),w.length>0)for(var z=new d.PdfPath,H=0;H<w.length;H++){var Y=(F=w[parseInt(H.toString(),10)]).command.toString(),G=P/S,J=N/y,j=(F.x-V)/G,K=(F.y-D)/J;if("M"===Y)0!==H&&(p.graphics.drawPath(z,O,null),z=new d.PdfPath),R=[j,K],t.isNullOrUndefined(U)||z.addLine(j,K,j,K);else if("L"===Y){var W=[j,K];null!=U&&z.addLine(R[0],R[1],W[0],W[1]),R=W}H===w.length-1&&p.graphics.drawPath(z,O,null)}null!=U&&U.restore()}}}},e.prototype.getSignatureBounds=function(e,t,i,n){var o;return 0===n?o={left:e.left,top:e.top,width:e.width,height:e.height}:1===n?o={left:i-e.top-e.height,top:e.left,width:e.height,height:e.width}:2===n?o={left:i-e.left-e.width,top:t-e.top-e.height,width:e.width,height:e.height}:3===n&&(o={left:e.top,top:t-e.left-e.width,width:e.height,height:e.width}),o},e.prototype.saveSignatureAsAnnotatation=function(e,n){var o=new Co(this.pdfViewer,this.pdfViewerBase),r=JSON.parse(e.signatureData);if(!t.isNullOrUndefined(r))for(var a=0;a<r.length;a++){var s=r[parseInt(a.toString(),10)];if(s.length>0)for(var l=0;l<s.length;l++){var A=new mo(this.pdfViewer,this.pdfViewerBase),h=s[parseInt(l.toString(),10)],p=Object.prototype.hasOwnProperty.call(h,"shapeAnnotationType")&&null!==h.shapeAnnotationType?h.shapeAnnotationType.toString():null;if(null!==p&&"SignatureText"===p)A.drawFreeTextAnnotations(h,n,!1);else if(null!==p&&"SignatureImage"===p)A.drawImage(h,n,!1);else{var c=JSON.parse(h.bounds),g=JSON.parse(h.data),u=h.pageIndex,f=n.getPage(u),m=o.getCropBoxValue(f,!1),w=m.x+this.convertPixelToPoint(c.left),C=this.convertPixelToPoint(c.top);0===m.x&&f.cropBox[2]===f.size[0]&&m.y===f.size[1]||(C-=m.y);for(var B=this.convertPixelToPoint(c.width),S=this.convertPixelToPoint(c.height),y=h.opacity,I=h.thickness,E=JSON.parse(h.strokeColor),v=[E.r,E.g,E.b],b=-1,V=-1,D=-1,x=-1,Q=o.getInkRotateAngle(f.rotation.toString()),M=new d.PdfPath,F=0;F<g.length;F++){var T=g[parseInt(F.toString(),10)];M.addLine(T.x,T.y,0,0)}for(var k=o.getRotatedPathForMinMax(M._points,Q),P=0;P<k.points.length;P+=2){var N=k.points[parseInt(P.toString(),10)];if(-1===b)b=N[0],V=N[1],D=N[0],x=N[1];else{var R=N[0],L=N[1];b>=R&&(b=R),V>=L&&(V=L),D<=R&&(D=R),x<=L&&(x=L)}}var U=(D-b)/B,O=(x-V)/S;0===U?U=1:0===O&&(O=1);var z=[],H=0;if(0!==Q){for(Y=0;Y<g.length;Y++){if("M"===(ee=(T=g[parseInt(Y.toString(),10)]).command.toString())&&Y!==H){H=Y;break}
10z.push(parseFloat(T.x.toString())),z.push(parseFloat(T.y.toString()))}X=o.getRotatedPath(z,Q);z=[];for(q=0;q<X._points.length;q+=2)z.push((X._points[parseInt(q.toString(),10)][0]-b)/U+w),z.push(f.size[1]-(X._points[parseInt(q.toString(),10)][1]-V)/O-C)}else for(var Y=0;Y<g.length;Y++){if("M"===(ee=(T=g[parseInt(Y.toString(),10)]).command.toString())&&Y!==H){H=Y;break}z.push((T.x-b)/U+w);te=(T.y-V)/O;z.push(f.size[1]-te-C)}var G=new d.PdfInkAnnotation([w,C,B,S],z),J=new i.Rect;if(J=new i.Rect(G.bounds.x,f.size[1]-(G.bounds.y+G.bounds.height),G.bounds.width,G.bounds.height),G.bounds=J,G.color=v,z=[],H>0)if(0!==Q){for(var j=[],K=H;K<g.length;K++)"M"===(ee=(T=g[parseInt(K.toString(),10)]).command.toString())&&K!==H&&(j.push(z),z=[]),z.push(T.x),z.push(T.y);z.length>0&&j.push(z);for(var W=0;W<j.length;W++){var Z=[],_=j[parseInt(W.toString(),10)];if(_.length>0){for(var X=o.getRotatedPath(_,Q),q=0;q<X._points.length;q+=2)Z.push((X._points[parseInt(q.toString(),10)][0]-b)/U+w),Z.push(f.size[1]-(X._points[parseInt(q.toString(),10)][1]-V)/O-C);G.inkPointsCollection.push(Z)}Z=[]}}else{for(var $=H;$<g.length;$++){var ee=(T=g[parseInt($.toString(),10)]).command.toString();"M"===ee&&$!==H&&(G.inkPointsCollection.push(z),z=[]),z.push((T.x-b)/U+w);var te=(T.y-V)/O;z.push(f.size[1]-te-C)}z.length>0&&G.inkPointsCollection.push(z)}if(G.border.width=I,G.opacity=y,G._dictionary.set("NM",h.signatureName.toString()),G._annotFlags=d.PdfAnnotationFlag.print,Object.prototype.hasOwnProperty.call(h,"author")&&null!==h.author){var ie=h.author.toString();"Guest"!==ie&&(G.author=ie)}f.annotations.add(G)}}}},e.prototype.convertPointToPixel=function(e){return 96*e/72},e.prototype.convertPixelToPoint=function(e){return.75*e},e.prototype.getRotateAngle=function(e){var t=0;switch(e){case"RotateAngle0":case"0":t=0;break;case"RotateAngle180":case"2":t=2;break;case"RotateAngle270":case"3":t=3;break;case"RotateAngle90":case"1":t=1}return t},e}(),Lo=function(){function e(){this.HasChild=!1}return e}(),Uo=function(){function e(){}return e}(),Oo=function(){function e(){}return e}(),zo=function(){function e(e,i){this.mIsImageStreamParsed=!1,this.mIsImageInterpolated=!1,this.isDualFilter=!1,this.numberOfComponents=0,t.isNullOrUndefined(i)||(this.mImageStream=e,this.mImageDictionary=i)}return e.prototype.getImageStream=function(){this.mIsImageStreamParsed=!0;var e=this.mImageDictionary;this.getImageInterpolation(e);var i=this.setImageFilter(),n=this.imageStream();if(t.isNullOrUndefined(i)&&this.mImageFilter.push("FlateDecode"),!t.isNullOrUndefined(i)){for(var o=0;o<i.length;o++)switch(i.length>1&&(this.isDualFilter=!0),i[parseInt(o.toString(),10)]){case"DCTDecode":if(!this.mImageDictionary.has("SMask")&&!this.mImageDictionary.has("Mask")){var r=this.setColorSpace();if(("DeviceCMYK"===r.name||"DeviceN"===r.name||"DeviceGray"===r.name||"Separation"===r.name||"DeviceRGB"===r.name||"ICCBased"===r.name&&4===this.numberOfComponents)&&"DeviceRGB"===r.name&&(this.mImageDictionary.has("DecodeParms")||this.mImageDictionary.has("Decode")))break}}return this.mImageFilter=null,n}return null},e.prototype.setColorSpace=function(){if(t.isNullOrUndefined(this.mColorspace))return this.getColorSpace(),this.mColorspace},e.prototype.getColorSpace=function(){if(this.mImageDictionary.has("ColorSpace")){this.internalColorSpace="";if(this.mImageDictionary.has("ColorSpace")){var e=this.mImageDictionary.getArray("ColorSpace");e&&Array.isArray(e)&&e.length>0&&this.mImageDictionary.get("ColorSpace")}this.mImageDictionary.get("ColorSpace")instanceof d._PdfName&&(this.mColorspace=this.mImageDictionary.get("ColorSpace"))}},e.prototype.setImageFilter=function(){return t.isNullOrUndefined(this.mImageFilter)&&(this.mImageFilter=this.getImageFilter()),this.mImageFilter},e.prototype.getImageFilter=function(){var e=[];return t.isNullOrUndefined(this.mImageDictionary)||this.mImageDictionary.has("Filter")&&this.mImageDictionary.get("Filter")instanceof d._PdfName&&e.push(this.mImageDictionary.get("Filter").name),e},e.prototype.getImageInterpolation=function(e){!t.isNullOrUndefined(e)&&e.has("Interpolate")&&(this.mIsImageInterpolated=e.get("Interpolate"))},e.prototype.imageStream=function(){return d._stringToBytes(this.mImageStream.getString(),!1,!0)},e.prototype.destroy=function(){this.mImageDictionary=null,this.mIsImageStreamParsed=null,this.mIsImageInterpolated=null,this.mImageFilter=null,this.isDualFilter=null,this.mColorspace=null,this.numberOfComponents=null,this.internalColorSpace
vendor: 1,749 bytes, line 10
10=null,this.mImageStream=null},e}(),Ho=function(){return(Ho=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)},Yo=function(){function i(e,i){var n=this;this.previewLimit=5,this.lastRequestedPageIndex=0,this.pageZoomSliderStep=.25,this.dataDetails=[],this.mobileContextMenu=[],this.organizePagesCollection=[],this.tempOrganizePagesCollection=[],this.isSkipRevert=!1,this.isAllImagesReceived=!1,this.selectedPageIndexes=[],this.autoScrollInterval=null,this.gapBetweenDivs=48,this.previousImageZoom=1,this.isDocumentModified=!1,this.undoOrganizeCollection=[],this.redoOrganizeCollection=[],this.toolbarUndoRedoCollection=[],this.isTouchEvent=!1,this.isPageZoomChanged=!1,this.isInitialLoading=!0,this.isOrganizeWindowOpen=!1,this.isPageZoomPopupOpen=!1,this.pageDragDrop=function(e){var t=e.target.closest(".e-pv-organize-anchor-node"),i=parseInt(t.getAttribute("data-page-order"),10);n.dragEndIndex=i,n.movePDFpages(n.selectedPageIndexes,n.dragEndIndex,n.isRightInsertion)},this.thumbnailMouseOver=function(e){var t=n;if(e.currentTarget instanceof HTMLElement)for(var i=0,o=Array.from(e.currentTarget.children);i<o.length;i++)for(var r=o[i],a=0,s=Array.from(r.children);a<s.length;a++){var l=s[a];if(!l.classList.contains("e-pv-image-container"))if(l.style.display="flex",l.classList.contains("e-checkbox-wrapper"))l.children[0].style.display="block";else if(l.classList.contains("e-pv-organize-buttondiv")&&l.childElementCount>0)for(var d=0,A=Array.from(l.children);d<A.length;d++){var h=A[d];t.totalCheckedCount>1?"insert"===h.id.split("_")[1]?h.style.display="flex":h.style.display="none":h.style.display="flex";
10var p=h.classList;(p.contains("e-pv-insert-left-button")||p.contains("e-pv-insert-right-button"))&&(h.style.top="-"+parseFloat(n.pageLink.style.height.replace("px",""))/2+"px")}}},this.thumbnailMouseLeave=function(e){if(e.currentTarget instanceof HTMLElement)for(var t=0,i=Array.from(e.currentTarget.children);t<i.length;t++)for(var n=i[t],o=0,r=Array.from(n.children);o<r.length;o++){var a=r[o];a.classList.contains("e-pv-image-container")||(e.currentTarget.classList.contains("e-pv-organize-node-selection-ring")&&a.classList.contains("e-checkbox-wrapper")?a.style.display="block":a.style.display="none")}},this.onSelectClick=function(e){var i=event.currentTarget.querySelector(".e-pv-organize-tile-checkbox"),o=i.closest(".e-pv-organize-anchor-node");if("mouse"!==e.event.pointerType&&(n.isTouchEvent||t.Browser.isDevice&&!n.pdfViewer.enableDesktopMode))("touch"===e.event.pointerType||n.isTouchEvent||t.Browser.isDevice&&!n.pdfViewer.enableDesktopMode)&&(t.isNullOrUndefined(i)||t.isNullOrUndefined(o)||o&&n.setSelectionRingStyle(i,o));else if(!n.isClickedOnCheckBox||t.isNullOrUndefined(i)||t.isNullOrUndefined(o)){if(!t.isNullOrUndefined(i)&&!t.isNullOrUndefined(o)){if(!n.ctrlKey&&!n.shiftKey){var r=document.querySelectorAll(".e-pv-organize-node-selection-ring");if(r.length>0)for(s=0;s<r.length;s++){var a=r[parseInt(s.toString(),10)].closest(".e-pv-organize-anchor-node").querySelector(".e-pv-organize-tile-checkbox");a.checked=!1,n.setSelectionRingStyle(a,r[parseInt(s.toString(),10)])}n.isClickedOnCheckBox||(i.checked=!0)}n.shiftKey&&(i.checked=!0),n.setSelectionRingStyle(i,o)}}else o&&n.setSelectionRingStyle(i,o);if(n.updateSelectAllCheckbox(),n.enableDisableToolbarItems(),n.totalCheckedCount>1)for(var s=0;s<o.querySelector(".e-pv-organize-buttondiv").childElementCount;s++)"insert"===o.querySelector(".e-pv-organize-buttondiv").children[parseInt(s.toString(),10)].id.split("_")[1]?o.querySelector(".e-pv-organize-buttondiv").children[parseInt(s.toString(),10)].style.display="flex":o.querySelector(".e-pv-organize-buttondiv").children[parseInt(s.toString(),10)].style.display="none"},this.rotateButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canRotate){var t=e.currentTarget.closest(".e-pv-organize-anchor-node"),i=t.querySelector(".e-pv-organize-image"),o=parseInt(t.getAttribute("data-page-order"),10);if(i){var r=parseFloat(i.style.transform.replace("rotate(","").replace("deg)",""))||0;(r+=90)>=360&&(r=0),i.style.transform="rotate("+r+"deg)",n.updateTempRotationDetail(o,90);var a=[];a.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===o}))),n.addOrganizeAction(a,"Rotate Right",[],[],null,!1)}}},this.rotateLeftButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canRotate){var t=e.currentTarget.closest(".e-pv-organize-anchor-node"),i=t.querySelector(".e-pv-organize-image"),o=parseInt(t.getAttribute("data-page-order"),10);if(i){var r=parseFloat(i.style.transform.replace("rotate(","").replace("deg)",""))||0;(r-=90)>=360&&(r=0),-90===r&&(r=270),i.style.transform="rotate("+r+"deg)",n.updateTempRotationDetail(o,-90);var a=[];a.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===o}))),n.addOrganizeAction(a,"Rotate Left",[],[],null,!1)}}},this.onToolbarRightButtonClick=function(){if(n.pdfViewer.pageOrganizerSettings.canRotate){for(var e=n,t=0;t<e.tileAreaDiv.childElementCount;t++)!function(t){var i=e.tileAreaDiv.childNodes[parseInt(t.toString(),10)];if(i instanceof HTMLElement&&i.classList.contains("e-pv-organize-node-selection-ring")){var o=i.querySelector(".e-pv-organize-image"),r=parseInt(i.getAttribute("data-page-order"),10);if(o){var a=parseFloat(o.style.transform.replace("rotate(","").replace("deg)",""))||0;(a+=90)>=360&&(a=0),o.style.transform="rotate("+a+"deg)",n.updateTempRotationDetail(r,90),n.toolbarUndoRedoCollection.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r})))}}}(t);n.addOrganizeAction(null,"Toolbar Rotate Right",n.toolbarUndoRedoCollection,[],null,!1),n.toolbarUndoRedoCollection=[]}},this.onToolbarLeftButtonClick=function(){for(var e=n,t=0;t<e.tileAreaDiv.childElementCount;t++)!function(t){var i=e.tileAreaDiv.childNodes[parseInt(t.toString(),10)];if(i instanceof HTMLElement&&i.classList.contains("e-pv-organize-node-selection-ring")){var o=i.querySelector(".e-pv-organize-image"),r=parseInt(i.getAttribute("data-page-order"),10);if(o){var a=parseFloat(o.style.transform.replace("rotate(","").replace("deg)",""))||0;(a-=90)>
10=360&&(a=0),-90===a&&(a=270),o.style.transform="rotate("+a+"deg)",n.updateTempRotationDetail(r,-90),n.toolbarUndoRedoCollection.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r})))}}}(t);n.addOrganizeAction(null,"Toolbar Rotate Left",n.toolbarUndoRedoCollection,[],null,!1),n.toolbarUndoRedoCollection=[]},this.onToolbarCopyButtonClick=function(){if(n.pdfViewer.pageOrganizerSettings.canCopy){for(var e=n,t=0;t<e.tileAreaDiv.childElementCount;t++)!function(t){var i=e.tileAreaDiv.childNodes[parseInt(t.toString(),10)];if(i instanceof HTMLElement&&i.classList.contains("e-pv-organize-node-selection-ring")){var o=i.id.split("anchor_page_")[i.id.split("anchor_page_").length-1],r=parseInt(i.getAttribute("data-page-order"),10),a=o.split("_"),s=0,l=parseInt(a[parseInt((a.length-1).toString(),10)],10);a.length>1&&(l=parseInt(a[parseInt((a.length-2).toString(),10)],10)),s=n.getNextSubIndex(i.parentElement,l),n.copyPage(r,i),n.tileImageRender(l,s,r+1,i,!0,!1,!1),n.updatePageNumber(),n.toolbarUndoRedoCollection.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r+1})))}}(t);n.updateTotalPageCount(),n.disableTileDeleteButton(),n.addOrganizeAction(null,"Toolbar Copy",n.toolbarUndoRedoCollection,[],null,!1),n.toolbarUndoRedoCollection=[]}},this.onToolbarDeleteButtonClick=function(){if(n.pdfViewer.pageOrganizerSettings.canDelete){var e=n,t=e.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring");t.forEach(function(e){var t=e.closest(".e-pv-organize-anchor-node"),i=parseInt(t.getAttribute("data-page-order"),10);n.toolbarUndoRedoCollection.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===i})))}),t.forEach(function(t){var i=t.closest(".e-pv-organize-anchor-node");e.deletePageElement(i)})}n.enableDisableToolbarItems(),n.addOrganizeAction(null,"Toolbar Delete",n.toolbarUndoRedoCollection,[],null,!1),n.toolbarUndoRedoCollection=[]},this.restorePagesBeforeZoom=function(){var e=n.undoOrganizeCollection.length;if(e>0)for(var t=e-1;t>=0;t--){var i=n.undoOrganizeCollection[t];n.undoActionHandler(i)}},this.restorePagesAfterZoom=function(){var e=n.undoOrganizeCollection.length;if(e>0)for(var t=0;t<e;t++){var i=n.undoOrganizeCollection[t];n.redoActionHandler(i)}},this.undoActionHandler=function(e){if(e){var t=JSON.parse(JSON.stringify(e));switch(t.action){case"Insert Right":case"Insert Left":case"Import Pages":case"Copy":n.removePage(t.UndoRedoTileActions[0].currentPageIndex);break;case"Rotate Right":n.rotateImage(t.UndoRedoTileActions[0].currentPageIndex,-90);break;case"Rotate Left":n.rotateImage(t.UndoRedoTileActions[0].currentPageIndex,90);break;case"Delete":A=n.tileAreaDiv.childNodes[parseInt(t.UndoRedoTileActions[0].currentPageIndex.toString(),10)];t.UndoRedoTileActions[0].isCopied?(n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,A),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,A,!0,!0,!1)):t.UndoRedoTileActions[0].isInserted?(n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,A),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,A,!0,!0,!0)):t.UndoRedoTileActions[0].isImportedDoc?(n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,A),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,A,!0,!0,!1,!0,t.UndoRedoTileActions[0].documentName)):t.UndoRedoTileActions[0].isCopied||t.UndoRedoTileActions[0].isInserted||t.UndoRedoTileActions[0].isImportedDoc||(n.undoDeletedPage(t.UndoRedoTileActions[0].currentPageIndex,t.UndoRedoTileActions[0].pageIndex,t.UndoRedoTileActions[0].rotateAngle,A),n.tileImageRender(t.UndoRedoTileActions[0].pageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,A,!0,!0,!1)),n.updatePageDetail();break;case"Move Pages":for(var i=t.dropIndex,o=[],r=[],a=new Set,s=function(e,t,i){return i>=e&&i<=t},l=0;l<t.UndoRedoTileActions.length;l++)!function(e){var l=t.UndoRedoTileActions[parseInt(e.toString(),10)],d=n.tempOrganizePagesCollection.find(function(e){return l.isCopied?e.copiedPageIndex===l.copiedPageIndex&&s(i-t.selectedPagesIndexes.length,i+t.selectedPagesIndexes.length,e.currentPageIndex)&&!a.has(e.currentPageIndex):l.isInserted?e.copiedPageIndex===l.copiedPageIndex&&e.isInserted&&s(i-t.selectedPagesIndexes.length,i+t.selectedPagesIndexes.length,e.currentPageIndex)&&!a.has(e.currentPageIndex):l.isImportedDoc?e.copiedPageIndex===l.copiedPageIndex&&e.isImportedDoc&&s(i-t.selectedPagesIndexes.length,i+t.selectedPagesIndexes.length,e.currentPageIndex)&&!a.has(e.currentPageIndex):e.pageIndex===l.pageIndex});if(d){var A=[d.currentPageIndex];a.add(d.currentPageIndex),i<l.currentPageIndex?r.push({currentPageIndex:l.currentPageIndex,selectedIndexes:A}):o.push({currentPageIndex:l.currentPageIndex,selectedIndexes:A})}}(l);if(o.length>0){o.sort(function(e,t){return e.currentPageIndex-t.currentPageIndex});for(d=0;d<o.length;d++)n.rearrangePages(o[parseInt(d.toString(),10)].selectedIndexes,o[parseInt(d.toString(),10)].currentPageIndex,o[parseInt(d.toString(),10)].currentPageIndex>o[parseInt(d.toString(),10)].selectedIndexes[0])}if(r.length>0){r.sort(function(e,t){return t.currentPageIndex-e.currentPageIndex});for(var d=0;d<r.length;d++)n.rearrangePages(r[parseInt(d.toString(),10)].selectedIndexes,r[parseInt(d.toString(),10)].currentPageIndex,r[parseInt(d.toString(),10)].currentPageIndex>r[parseInt(d.toString(),10)].selectedIndexes[0])}break;case"Toolbar Rotate Right":n.rotateImages(t,-90);break;case"Toolbar Rotate Left":n.rotateImages(t,90);break;case"Toolbar Copy":if(t.toolbarActions.length>0)for(l=t.toolbarActions.length-1;l>=0;l--){A=n.tileAreaDiv.childNodes[parseInt(t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex.toString(),10)];n.deleteTempPage(t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A),n.tileAreaDiv.removeChild(A),n.updatePageDetail()}n.disableTileDeleteButton();break;case"Toolbar Delete":if(t.toolbarActions.length>0)for(l=0;l<t.toolbarActions.length;l++){var A=n.tileAreaDiv.childNodes[parseInt(t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex.toString(),10)];t.toolbarActions[parseInt(l.toString(),10)].isCopied?(n.insertRemovedPages(t.toolbarActions[parseInt(l.toString(),10)],t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A),n.tileImageRender(t.toolbarActions[parseInt(l.toString(),10)].copiedPageIndex,0,t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A,!0,!0,!1)):t.toolbarActions[parseInt(l.toString(),10)].isInserted?(n.insertRemovedPages(t.toolbarActions[parseInt(l.toString(),10)],t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A),n.tileImageRender(t.toolbarActions[parseInt(l.toString(),10)].copiedPageIndex,0,t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A,!0,!0,!0)):t.toolbarActions[parseInt(l.toString(),10)].isImportedDoc?(n.insertRemovedPages(t.toolbarActions[parseInt(l.toString(),10)],t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A),n.tileImageRender(t.toolbarActions[parseInt(l.toString(),10)].copiedPageIndex,0,t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A,!0,!0,!1,!0,t.toolbarActions[parseInt(l.toString(),10)].documentName)):t.toolbarActions[parseInt(l.toString(),10)].isCopied||t.toolbarActions[parseInt(l.toString(),10)].isInserted||t.toolbarActions[parseInt(l.toString(),10)].isImportedDoc||(n.undoDeletedPage(t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,t.toolbarActions[parseInt(l.toString(),10)].pageIndex,t.toolbarActions[parseInt(l.toString(),10)].rotateAngle,A),n.tileImageRender(t.toolbarActions[parseInt(l.toString(),10)].pageIndex,0,t.toolbarActions[parseInt(l.toString(),10)].currentPageIndex,A,!0,!0,!1)),n.updatePageDetail()}n.disableTileDeleteButton()}}},this.redoActionHandler=function(e){if(e){var t=JSON.parse(JSON.stringify(e));switch(t.action){case"Insert Right":case"Insert Left":o=n.tileAreaDiv.childNodes[parseInt(t.UndoRedoTileActions[0].currentPageIndex.toString(),10)];n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,o),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,o,!0,
10!0,!0),n.disableTileCopyButton(),n.updatePageDetail();break;case"Rotate Right":n.rotateImage(t.UndoRedoTileActions[0].currentPageIndex,90);break;case"Rotate Left":n.rotateImage(t.UndoRedoTileActions[0].currentPageIndex,-90);break;case"Copy":o=n.tileAreaDiv.childNodes[parseInt(t.UndoRedoTileActions[0].currentPageIndex.toString(),10)];n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,o),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,o,!0,!0,!1),n.updatePageDetail();break;case"Import Pages":o=n.tileAreaDiv.childNodes[parseInt(t.UndoRedoTileActions[0].currentPageIndex.toString(),10)];n.insertRemovedPages(t.UndoRedoTileActions[0],t.UndoRedoTileActions[0].currentPageIndex,o),n.tileImageRender(t.UndoRedoTileActions[0].copiedPageIndex,0,t.UndoRedoTileActions[0].currentPageIndex,o,!0,!0,!1,!0,t.UndoRedoTileActions[0].documentName),n.disableTileCopyRotateButton(),n.updatePageDetail();break;case"Delete":n.removePage(t.UndoRedoTileActions[0].currentPageIndex);break;case"Move Pages":n.rearrangePages(t.selectedPagesIndexes,t.dropIndex,t.isRightInsertion);break;case"Toolbar Rotate Right":n.rotateImages(t,90);break;case"Toolbar Rotate Left":n.rotateImages(t,-90);break;case"Toolbar Copy":if(t.toolbarActions.length>0)for(i=0;i<t.toolbarActions.length;i++){o=n.tileAreaDiv.childNodes[parseInt(t.toolbarActions[parseInt(i.toString(),10)].currentPageIndex.toString(),10)];n.insertRemovedPages(t.toolbarActions[parseInt(i.toString(),10)],t.toolbarActions[parseInt(i.toString(),10)].currentPageIndex,o),n.tileImageRender(t.toolbarActions[parseInt(i.toString(),10)].copiedPageIndex,0,t.toolbarActions[parseInt(i.toString(),10)].currentPageIndex,o,!0,!0,!1),n.updatePageDetail()}n.disableTileDeleteButton();break;case"Toolbar Delete":if(t.toolbarActions.length>0)for(var i=t.toolbarActions.length-1;i>=0;i--){var o=n.tileAreaDiv.childNodes[parseInt(t.toolbarActions[parseInt(i.toString(),10)].currentPageIndex.toString(),10)];n.deleteTempPage(t.toolbarActions[parseInt(i.toString(),10)].currentPageIndex,o),n.tileAreaDiv.removeChild(o),n.updatePageDetail()}n.disableTileDeleteButton()}}},this.undo=function(){var e=n.undoOrganizeCollection.pop();n.undoActionHandler(e),n.redoOrganizeCollection.push(e),n.enableDisableToolbarItems(),n.updateUndoRedoButtons()},this.redo=function(){var e=n.redoOrganizeCollection.pop();n.redoActionHandler(e),n.undoOrganizeCollection.push(e),n.enableDisableToolbarItems(),n.updateUndoRedoButtons()},this.rotateImages=function(e,t){if(e.toolbarActions.length>0)for(var i=0;i<e.toolbarActions.length;i++){var o=n.tileAreaDiv.childNodes[parseInt(e.toolbarActions[parseInt(i.toString(),10)].currentPageIndex.toString(),10)].querySelector(".e-pv-organize-image");if(o){var r=parseFloat(o.style.transform.replace("rotate(","").replace("deg)",""))||0;r=(r+t+360)%360,o.style.transform="rotate("+r+"deg)",n.updateTempRotationDetail(e.toolbarActions[parseInt(i.toString(),10)].currentPageIndex,t)}}},this.insertRightButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canInsert){var t=e.currentTarget,i=t.id.split("_insert_page_")[t.id.split("_insert_page_").length-1],o=t.closest(".e-pv-organize-anchor-node"),r=parseInt(o.getAttribute("data-page-order"),10),a=i.split("_"),s=0,l=parseInt(a[parseInt((a.length-1).toString(),10)],10);a.length>1&&(l=parseInt(a[parseInt((a.length-2).toString(),10)],10)),s=n.getNextSubIndex(o.parentElement,l),n.insertTempPage(r,!1,o),n.tileImageRender(l,s,r+1,o,!0,!1,!0),n.updateTotalPageCount(),n.updatePageNumber(),n.disableTileDeleteButton(),n.disableTileCopyButton(),n.updateSelectAllCheckbox(),n.enableDisableToolbarItems();var d=[];d.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r+1}))),n.addOrganizeAction(d,"Insert Right",[],[],null,!1)}},this.insertLeftButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canInsert){var t=e.currentTarget,i=t.id.split("_insert_page_")[t.id.split("_insert_page_").length-1],o=t.closest(".e-pv-organize-anchor-node"),r=parseInt(o.getAttribute("data-page-order"),10),a=i.split("_"),s=0,l=parseInt(a[parseInt((a.length-1).toString(),10)],10);a.length>1&&(l=parseInt(a[parseInt((a.length-2).toString(),10)],10)),s=n.getNextSubIndex(o.parentElement,l),n.insertTempPage(r,!0,o),n.tileImageRender(l,s,r,o,!0,!0,!0),n.updateTotalPageCount(),n.updatePageNumber(),n.disableTileDeleteButton(),n.disableTileCopyButton(),n.updateSelectAllCheckbox(),n.enableDisableToolbarItems();var d=[];d.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r}))),n.addOrganizeAction(d,"Insert Left",[],[],null,!1)}},this.copyButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canCopy){var t=e.currentTarget,i=t.id.split("_copy_page_")[t.id.split("_copy_page_").length-1],o=t.closest(".e-pv-organize-anchor-node"),r=parseInt(o.getAttribute("data-page-order"),10),a=i.split("_"),s=0,l=parseInt(a[parseInt((a.length-1).toString(),10)],10);a.length>1&&(l=parseInt(a[parseInt((a.length-2).toString(),10)],10)),s=n.getNextSubIndex(o.parentElement,l),n.copyPage(r,o),n.tileImageRender(l,s,r+1,o,!0,
10!1,!1),n.updateTotalPageCount(),n.updatePageNumber(),n.disableTileDeleteButton();var d=[];d.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===r+1}))),n.addOrganizeAction(d,"Copy",[],[],null,!1)}},this.deleteButtonClick=function(e){if(n.pdfViewer.pageOrganizerSettings.canDelete){var t=e.currentTarget.closest(".e-pv-organize-anchor-node"),i=parseInt(t.getAttribute("data-page-order"),10),o=[];o.push(n.clonedCollection(n.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===i}))),n.addOrganizeAction(o,"Delete",[],[],null,!1),n.deletePageElement(t)}n.updateSelectAllCheckbox(),n.enableDisableToolbarItems()},this.pdfViewer=e,this.pdfViewerBase=i,this.setPageOrganizerSettings(this.pdfViewer.pageOrganizerSettings),this.currentImageZoom=this.pdfViewer.pageOrganizerSettings.imageZoom,this.currentPageZoomSliderValue=this.pdfViewer.pageOrganizerSettings.imageZoom,this.previouslyRequestedImageZoom=Math.round(this.pdfViewer.pageOrganizerSettings.imageZoom)}return i.prototype.createOrganizeWindow=function(e){var i=this,n=this.pdfViewer.element.id;if(!t.isNullOrUndefined(document.getElementById(n+"_organize_window"))&&!t.isNullOrUndefined(this.organizeDialog))return this.organizeDialog.show(!0),void(this.isOrganizeWindowOpen=!0);this.dialogDivElement=t.createElement("div",{id:n+"_organize_window",className:"e-pv-organize-window"});var r=this.dialogDivElement,a=this.createContentArea();if(this.pdfViewerBase.mainContainer.appendChild(r),this.organizeDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!0,isModal:!0,header:this.pdfViewer.localeObj.getConstant("Organize Pages"),target:this.pdfViewerBase.mainContainer,content:a,visible:!1,open:function(){i.organizeWindowFocus()},close:function(e){i.isSkipRevert?i.isSkipRevert=!1:(i.tempOrganizePagesCollection=JSON.parse(JSON.stringify(i.organizePagesCollection)),i.undoOrganizeCollection=[],i.redoOrganizeCollection=[],i.isDocumentModified=!1,i.pdfViewerBase.isImportDoc=!1,i.startTile=null,i.ctrlKey=!1,i.shiftKey=!1,i.isTouchEvent=!1,i.isClickedOnCheckBox=!1,i.totalCheckedCount=0,i.isOrganizeWindowOpen=!1,i.destroyDialogWindow(),i.createOrganizeWindow(!0))},created:function(e){i.pdfViewer.pageOrganizerSettings.showImageZoomingSlider&&i.createPageZoomDropDown()}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){var s=this.pdfViewerBase.pageCount;this.organizeDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Save As"),isPrimary:!0},click:this.onSaveasClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Save"),isPrimary:!0},click:this.onSaveClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Total")+" "+s.toString()+" "+this.pdfViewer.localeObj.getConstant("Pages"),cssClass:"e-pv-organize-total-page-button",disabled:!0}}]}window.addEventListener("resize",function(){i.updateOrganizeDialogSize()}),this.pdfViewer.enableRtl&&(this.organizeDialog.enableRtl=!0),this.waitingPopup=t.createElement("div",{id:n+"_organizeLoadingIndicator"}),r.appendChild(this.waitingPopup),oe({target:this.waitingPopup,cssClass:"e-spin-center"}),this.pdfViewerBase.setLoaderProperties(this.waitingPopup),this.organizeDialog.appendTo(r),e||(this.organizeDialog.show(!0),this.isOrganizeWindowOpen=!0),this.disableTileDeleteButton(),this.enableDisableToolbarItems(),this.updateUndoRedoButtons(),this.initEventListeners()},i.prototype.createOrganizeWindowForMobile=function(e){var i=this,n=this.pdfViewer.element.id;if(!t.isNullOrUndefined(document.getElementById(n+"_organize_window"))&&!t.isNullOrUndefined(this.organizeDialog))return this.organizeDialog.show(!0),void(this.isOrganizeWindowOpen=!0);this.dialogDivElement=t.createElement("div",{id:n+"_organize_window",className:"e-pv-organize-window"});var r=this.dialogDivElement,a=this.createContentArea();if(this.pdfViewerBase.mainContainer.appendChild(r),this.organizeDialog=new o.Dialog({showCloseIcon:!0,closeOnEscape:!0,isModal:!0,header:this.pdfViewer.localeObj.getConstant("Organize Pages"),target:this.pdfViewerBase.mainContainer,content:a,visible:!1,animationSettings:{effect:"None"},created:function(){i.pdfViewer.pageOrganizerSettings.showImageZoomingSlider&&i.createPageZoomDropDown()},open:function(){i.toolbar.refreshOverflow(),i.pdfViewer.pageOrganizerSettings.showImageZoomingSlider&&i.handlePageZoomPopupMobile()},close:function(){i.isSkipRevert?i.isSkipRevert=!1:(i.tempOrganizePagesCollection=JSON.parse(JSON.stringify(i.organizePagesCollection)),i.undoOrganizeCollection=[],i.redoOrganizeCollection=[],i.isDocumentModified=!1,i.pdfViewerBase.isImportDoc=!1,i.startTile=null,i.ctrlKey=!1,i.shiftKey=!1,i.isTouchEvent=!1,i.isClickedOnC
vendor: 5,071 bytes, line 10
10heckBox=!1,i.isOrganizeWindowOpen=!1,i.totalCheckedCount=0,i.destroyDialogWindow(),i.createOrganizeWindowForMobile(!0))}}),!t.Browser.isDevice||this.pdfViewer.enableDesktopMode){var s=this.pdfViewerBase.pageCount;this.organizeDialog.buttons=[{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Save As"),isPrimary:!0},click:this.onSaveasClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Save"),isPrimary:!0},click:this.onSaveClicked.bind(this)},{buttonModel:{content:this.pdfViewer.localeObj.getConstant("Total")+" "+s.toString()+" "+this.pdfViewer.localeObj.getConstant("Pages"),cssClass:"e-pv-organize-total-page-button",disabled:!0}}]}window.addEventListener("resize",function(){i.updateOrganizeDialogSize()}),this.pdfViewer.enableRtl&&(this.organizeDialog.enableRtl=!0),this.waitingPopup=t.createElement("div",{id:n+"_organizeLoadingIndicator"}),r.appendChild(this.waitingPopup),oe({target:this.waitingPopup,cssClass:"e-spin-center"}),this.pdfViewerBase.setLoaderProperties(this.waitingPopup),this.organizeDialog.appendTo(r),e||(this.organizeDialog.show(!0),this.isOrganizeWindowOpen=!0),this.createMobileContextMenu(),this.disableTileDeleteButton(),this.enableDisableToolbarItems(),this.updateUndoRedoButtons(),this.initEventListeners()},i.prototype.setPageOrganizerSettings=function(e){if(!t.isNullOrUndefined(e)){t.isNullOrUndefined(e.canDelete)&&(this.pdfViewer.pageOrganizerSettings.canDelete=!0),t.isNullOrUndefined(e.canRotate)&&(this.pdfViewer.pageOrganizerSettings.canRotate=!0),t.isNullOrUndefined(e.canInsert)&&(this.pdfViewer.pageOrganizerSettings.canInsert=!0),t.isNullOrUndefined(e.canCopy)&&(this.pdfViewer.pageOrganizerSettings.canCopy=!0),t.isNullOrUndefined(e.canRearrange)&&(this.pdfViewer.pageOrganizerSettings.canRearrange=!0),t.isNullOrUndefined(e.canImport)&&(this.pdfViewer.pageOrganizerSettings.canImport=!0),t.isNullOrUndefined(e.showImageZoomingSlider)&&(this.pdfViewer.pageOrganizerSettings.showImageZoomingSlider=!1),t.isNullOrUndefined(e.imageZoomMin)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMin=1),t.isNullOrUndefined(e.imageZoomMax)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMax=5),this.pdfViewer.pageOrganizerSettings.imageZoomMin>=this.pdfViewer.pageOrganizerSettings.imageZoomMax&&(this.pdfViewer.pageOrganizerSettings.imageZoomMin=1,this.pdfViewer.pageOrganizerSettings.imageZoomMax=5),(this.pdfViewer.pageOrganizerSettings.imageZoomMin<1||this.pdfViewer.pageOrganizerSettings.imageZoomMin>=5)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMin=1),(this.pdfViewer.pageOrganizerSettings.imageZoomMax>5||this.pdfViewer.pageOrganizerSettings.imageZoomMax<=1)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMax=5);var i=this.pdfViewer.pageOrganizerSettings.imageZoomMax-this.pdfViewer.pageOrganizerSettings.imageZoomMin;this.pageZoomSliderStep=i/100,t.isNullOrUndefined(e.imageZoom)&&(this.pdfViewer.pageOrganizerSettings.imageZoom=this.pdfViewer.pageOrganizerSettings.imageZoomMin),this.pdfViewer.pageOrganizerSettings.imageZoom>this.pdfViewer.pageOrganizerSettings.imageZoomMax?this.pdfViewer.pageOrganizerSettings.imageZoom=this.pdfViewer.pageOrganizerSettings.imageZoomMax:this.pdfViewer.pageOrganizerSettings.imageZoom<this.pdfViewer.pageOrganizerSettings.imageZoomMin&&(this.pdfViewer.pageOrganizerSettings.imageZoom=this.pdfViewer.pageOrganizerSettings.imageZoomMin)}},i.prototype.initEventListeners=function(){this.boundOnTileAreaMouseDown=this.onTileAreaMouseDown.bind(this),this.boundOnTileAreaKeyDown=this.onTileAreaKeyDown.bind(this),this.boundOnTileAreaKeyUp=this.onTileAreaKeyUp.bind(this),this.boundPageOrganizerOnScroll=this.pageOrganizerOnScroll.bind(this),this.dialogDivElement.addEventListener("wheel",this.boundPageOrganizerOnScroll),this.tileAreaDiv.addEventListener("mousedown",this.boundOnTileAreaMouseDown),document.addEventListener("keydown",this.boundOnTileAreaKeyDown),document.addEventListener("keyup",this.boundOnTileAreaKeyUp)},i.prototype.removeEventListeners=function(){t.isNullOrUndefined(this.dialogDivElement)||this.dialogDivElement.removeEventListener("wheel",this.boundPageOrganizerOnScroll),t.isNullOrUndefined(this.tileAreaDiv)||this.tileAreaDiv.removeEventListener("mousedown",this.boundOnTileAreaMouseDown),document.removeEventListener("keydown",this.boundOnTileAreaKeyDown),document.removeEventListener("keyup",this.boundOnTileAreaKeyUp)},i.prototype.pageOrganizerOnScroll=function(e){if(this.ctrlKey){e.preventDefault();var t=this.getImageZoomValue(),i=this.getImageZoomMin(),n=this.getImageZoomMax();e.deltaY<0&&t<n?t+this.pageZoomSliderStep<n?this.handlePageZoomChange(t+this.pageZoomSliderStep,t):t+this.pageZoomSliderStep>n&&t!==n&&this.handlePageZoomChange(n,t):e.deltaY>0&&t>i&&(t-this.pageZoomSliderStep>i?this.handlePageZoomChange(t-this.pageZoomSliderStep,t):t-this.pageZoomSliderStep<i&&t!==i&&this.handlePageZoomChange(i,t))}},i.prototype.onTileAreaMouseDown=function(e){var t=this;if(e.target&&e.target.previousElementSibling&&e.target.previousElementSibling.classList.contains("e-pv-organize-tile-checkbox")?this.isClickedOnC
10heckBox=!0:this.isClickedOnCheckBox=!1,e.target.closest(".e-pv-organize-anchor-node")){var i=e.target,n=Array.from(this.tileAreaDiv.children);if(this.shiftKey&&this.startTile){var o=Array.from(this.tileAreaDiv.children).indexOf(i.closest(".e-pv-organize-anchor-node"));if(this.startTile){var r=Array.from(this.tileAreaDiv.children).indexOf(this.startTile.closest(".e-pv-organize-anchor-node"));this.selectRange(r,o),n.forEach(function(e,i){(i<Math.min(r,o)||i>Math.max(r,o))&&t.deselectTile(e)})}}else this.ctrlKey||(this.startTile=i)}else this.ctrlKey||this.shiftKey||(this.clearSelection(),this.startTile=null);this.updateSelectAllCheckbox(),this.enableDisableToolbarItems()},i.prototype.onTileAreaKeyDown=function(e){!e.ctrlKey&&!e.metaKey||e.shiftKey||(this.ctrlKey=!0,this.isOrganizeWindowOpen&&(65===e.keyCode&&(e.preventDefault(),this.selectAllTiles()),90===e.keyCode?(e.preventDefault(),this.undo()):89===e.keyCode&&(e.preventDefault(),this.redo()))),e.shiftKey&&(this.shiftKey=!0)},i.prototype.onTileAreaKeyUp=function(e){e.ctrlKey||e.metaKey||(this.ctrlKey=!1),e.shiftKey||(this.shiftKey=!1)},i.prototype.onSelectAllClick=function(e){e.checked?this.selectAllTiles():this.clearSelection()},i.prototype.selectRange=function(e,t){for(var i=Math.min(e,t),n=Math.max(e,t),o=i;o<=n;o++){var r=this.tileAreaDiv.children[parseInt(o.toString(),10)];this.selectTile(r)}},i.prototype.selectTile=function(e){if(!t.isNullOrUndefined(e)){var i=e.closest(".e-pv-organize-anchor-node").querySelector(".e-pv-organize-tile-checkbox");i&&(i.checked=!0,this.setSelectionRingStyle(i,e))}},i.prototype.deselectTile=function(e){if(!t.isNullOrUndefined(e)){var i=e.closest(".e-pv-organize-anchor-node").querySelector(".e-pv-organize-tile-checkbox");i&&(i.checked=!1,this.setSelectionRingStyle(i,e))}},i.prototype.clearSelection=function(){var e=this;document.querySelectorAll(".e-pv-organize-node-selection-ring").forEach(function(t){var i=t.closest(".e-pv-organize-anchor-node").querySelector(".e-pv-organize-tile-checkbox");i.checked=!1,e.setSelectionRingStyle(i,t)}),this.updateSelectAllCheckbox(),this.enableDisableToolbarItems()},i.prototype.selectAllTiles=function(){var e=this;Array.from(this.tileAreaDiv.children).forEach(function(t){e.selectTile(t)}),this.updateSelectAllCheckbox(),this.enableDisableToolbarItems()},i.prototype.updateOrganizeDialogSize=function(){var e=this.pdfViewer.element.getBoundingClientRect().width,i=this.pdfViewer.element.getBoundingClientRect().height;t.isNullOrUndefined(this.organizeDialog)||(this.organizeDialog.width=e+"px",this.organizeDialog.height=i+"px")},i.prototype.createContentArea=function(){var e=this,i=this.pdfViewer.element.id,n=t.createElement("div",{id:i+"_content_appearance",className:"e-pv-organize-content-apperance"}),o=t.createElement("div",{id:i+"_toolbar_appearance",className:"e-pv-organize-toolbar-apperance"});this.tileAreaWrapper=t.createElement("div",{id:this.pdfViewer.element.id+"_organize_tile_view_wrapper",className:"e-pv-organize-tile-view-wrapper"}),this.tileAreaDiv=t.createElement("div",{id:this.pdfViewer.element.id+"_organize_tile_view",className:"e-pv-organize-tile-view e-pv-thumbnail-row"}),this.tileAreaWrapper.style.width="100%",this.tileAreaWrapper.style.height="calc(100% - 48px)",this.tileAreaWrapper.style.position="relative",n.style.width="100%",n.style.height="100%",o.style.height="48px",this.tileAreaDiv.style.height="100%",this.selectAllCheckBox=new A.CheckBox({label:t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?"":this.pdfViewer.localeObj.getConstant("Select All"),cssClass:"e-pv-organize-select-all",checked:!1,change:this.onSelectAllClick.bind(this)});var r=[],a=[{type:"Input",template:this.selectAllCheckBox,id:"selectAllCheckbox",align:"Left"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-undo-icon e-pv-icon",visible:!0,cssClass:"e-pv-undo-container",id:this.pdfViewer.element.id+"_undo_organize_Pages",align:"Left",click:function(t){e.undo()}},{prefixIcon:"e-pv-redo-icon e-pv-icon",visible:!0,cssClass:"e-pv-redo-container",id:this.pdfViewer.element.id+"_redo_organize_Pages",align:"Left",click:function(t){e.redo()}},{prefixIcon:"e-pv-rotate-left-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-left",id:this.pdfViewer.element.i
vendor: 48,421 bytes, line 10
10d+"_rotate_page_left",align:"Center",click:function(t){e.onToolbarLeftButtonClick()}},{prefixIcon:"e-pv-rotate-right-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-right",id:this.pdfViewer.element.id+"_rotate_page_right",align:"Center",click:function(t){e.onToolbarRightButtonClick()}},{type:"Separator",align:"Center"},{prefixIcon:"e-pv-copy-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-right",id:this.pdfViewer.element.id+"_copy_page",align:"Center",click:function(t){e.onToolbarCopyButtonClick()}},{type:"Separator",align:"Center"},{prefixIcon:"e-pv-delete-icon e-pv-icon",visible:!0,cssClass:"e-pv-delete-selected",id:this.pdfViewer.element.id+"_delete_selected",align:"Center",click:function(t){e.onToolbarDeleteButtonClick()}},{prefixIcon:"e-pv-import-icon e-pv-icon",text:this.pdfViewer.localeObj.getConstant("Import Document"),visible:!0,cssClass:"e-pv-import-pages",id:this.pdfViewer.element.id+"_import_pages",align:"Right",click:function(t){e.bindImportDocEvent()}}];this.pdfViewer.pageOrganizerSettings.showImageZoomingSlider&&this.addPageZoomDropDown(!0,a);var l=[{type:"Input",template:this.selectAllCheckBox,id:"selectAllCheckbox",align:"Left"},{type:"Separator",align:"Left"},{prefixIcon:"e-pv-undo-icon e-pv-icon",visible:!0,cssClass:"e-pv-undo-container",id:this.pdfViewer.element.id+"_undo_organize_Pages",align:"Left",click:function(t){e.undo()}},{prefixIcon:"e-pv-redo-icon e-pv-icon",visible:!0,cssClass:"e-pv-redo-container",id:this.pdfViewer.element.id+"_redo_organize_Pages",align:"Left",click:function(t){e.redo()}},{prefixIcon:"e-pv-rotate-left-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-left",id:this.pdfViewer.element.id+"_rotate_page_left",align:"Right",click:function(t){e.onToolbarLeftButtonClick()}},{prefixIcon:"e-pv-rotate-right-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-right",id:this.pdfViewer.element.id+"_rotate_page_right",align:"Right",click:function(t){e.onToolbarRightButtonClick()}},{prefixIcon:"e-pv-delete-icon e-pv-icon",visible:!0,cssClass:"e-pv-delete-selected",id:this.pdfViewer.element.id+"_delete_selected",align:"Right",click:function(t){e.onToolbarDeleteButtonClick()}},{type:"Separator",align:"Right"},{prefixIcon:"e-pv-more-icon e-pv-icon",visible:!0,cssClass:"e-pv-toolbar-rotate-right",id:this.pdfViewer.element.id+"_organize_more_button",align:"Right",click:this.openContextMenu.bind(this)}];this.pdfViewer.pageOrganizerSettings.showImageZoomingSlider&&this.addPageZoomDropDown(!0,l),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?r.push.apply(r,l):r.push.apply(r,a),this.toolbar=new s.Toolbar({items:r}),this.toolbar.cssClass="e-pv-organize-toolbar",this.toolbar.height="48px",this.toolbar.width="auto",t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&(this.toolbar.overflowMode="Popup"),this.toolbar.appendTo(o),n.appendChild(o),this.renderThumbnailImage(),this.tileAreaWrapper.appendChild(this.tileAreaDiv),n.appendChild(this.tileAreaWrapper),this.createImportDocElement(o),this.organizeWireEvent();var d=o.querySelector("#"+this.pdfViewer.element.id+"_rotate_page_right");t.isNullOrUndefined(d)||this.createTooltip(d,this.pdfViewer.localeObj.getConstant("Rotate Right"));var h=o.querySelector("#"+this.pdfViewer.element.id+"_rotate_page_left");t.isNullOrUndefined(h)||this.createTooltip(h,this.pdfViewer.localeObj.getConstant("Rotate Left"));var p=o.querySelector("#"+this.pdfViewer.element.id+"_copy_page");t.isNullOrUndefined(p)||this.createTooltip(p,this.pdfViewer.localeObj.getConstant("Copy Pages"));var c=o.querySelector("#"+this.pdfViewer.element.id+"_delete_selected");t.isNullOrUndefined(c)||this.createTooltip(c,this.pdfViewer.localeObj.getConstant("Delete Pages"));var g=o.querySelector("#"+this.pdfViewer.element.id+"_undo_organize_Pages");t.isNullOrUndefined(g)||this.createTooltip(g,this.pdfViewer.localeObj.getConstant("Undo"));var u=o.querySelector("#"+this.pdfViewer.element.id+"_redo_organize_Pages");return t.isNullOrUndefined(u)||this.createTooltip(u,this.pdfViewer.localeObj.getConstant("Redo")),n},i.prototype.updatePageZoomPopup=function(){this.isPageZoomPopupOpen&&this.pageZoomSlider.value!==this.currentPageZoomSliderValue&&(this.pageZoomSlider.value=this.currentPageZoomSliderValue,this.pageZoomSlider.reposition()),this.handlePageZoomButtonsVisibility(this.currentPageZoomSliderValue)},i.prototype.getImageZoomMin=function(){var e=this.pdfViewer.pageOrganizerSettings.imageZoomMin;t.isNullOrUndefined(e)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMin=1,e=1);return Number.isInteger(e)||(e=Math.floor(e),this.pdfViewer.pageOrganizerSettings.imageZoomMin=e),e<1&&(this.pdfViewer.pageOrganizerSettings.imageZoomMin=1),this.pdfViewer.pageOrganizerSettings.imageZoomMin},i.prototype.getImageZoomMax=function(){var e=this.pdfViewer.pageOrganizerSettings.imageZoomMax;t.isNullOrUndefined(e)&&(this.pdfViewer.pageOrganizerSettings.imageZoomMax=5,e=5);return Number.isInteger(e)||(e=Math.floor(e),this.pdfViewer.pageOrganizerSettings.imageZoomMax=e),e>5&&(this.pdfViewer.pageOrganizerSettings.imageZoomMax=5),this.pdfViewer.pageOrganizerSettings.imageZoomMax},i.prototype.isOrganizeDialogRendered=function(){return!t.isNullOrUndefined(document.getElementById(this.pdfViewer.element.id+"_organize_window"))&&!t.isNullOrUndefined(this.organizeDialog)},i.prototype.modifyThumbnailContainer=function(){for(var e=this.tileAreaDiv.children,t=this.getImageZoomFactor(e[0].cloneNode(!0)),i=0;i<e.length;i++){var n=e[i];n.style.width=140*t+"px",n.style.height=140*t+"px",this.blurImageContainer(!0,n)}},i.prototype.setThumbnailImage=function(){for(var e=this.tileAreaDiv.children,t=0;t<e.length;t++){var i=e[t];i.querySelector(".e-pv-organize-image").src=this.dataDetails[parseInt(t.toString(),10)].image,this.blurImageContainer(!1,i)}},i.prototype.handlePageZoomPopupMobile=function(){var e=this.pdfViewerBase.getElement("_page_zoom");e&&e.parentElement.classList.contains("e-toolbar-popup")&&(e.children[0].style.padding="0 5px",e.children[0].style.minWidth="0")},i.prototype.addPageZoomDropDown=function(e,i){var n=this;if(e)if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){o=i.findIndex(function(e){return e.id===n.pdfViewer.element.id+"_organize_more_button"});i.splice(o-1,0,{visible:!0,cssClass:"e-pv-page-zoom",id:this.pdfViewer.element.id+"_page_zoom",align:"Right"})}else{o=i.findIndex(function(e){return"e-pv-import-pages"===e.cssClass});i.splice(o,0,{type:"Separator",align:"Center"},{visible:!0,cssClass:"e-pv-page-zoom",id:this.pdfViewer.element.id+"_page_zoom",align:"Center"})}else{if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode)-1!==(o=this.toolbar.items.findIndex(function(e){return e.id===n.pdfViewer.element.id+"_page_zoom"}))&&this.toolbar.hideItem(this.pdfViewerBase.getElement("_page_zoom").parentElement,!1);else{var o=this.toolbar.items.findIndex(function(e){return"e-pv-import-pages"===e.cssClass});"Separator"!==this.toolbar.items[o-1].type?this.toolbar.addItems([{type:"Separator",align:"Center"},{visible:!0,cssClass:"e-pv-page-zoom",id:this.pdfViewer.element.id+"_page_zoom",align:"Center"}],o):this.toolbar.addItems([{visible:!0,cssClass:"e-pv-page-zoom",id:this.pdfViewer.element.id+"_page_zoom",align:"Center"}],o)}this.toolbar.element.children[0].children[1].removeAttribute("style")}},i.prototype.createPageZoomDropDown=function(){this.pageZoomElement=this.pdfViewerBase.getElement("_page_zoom"),this.pageZoomContainer=this.createPageZoomSlider(this.pageZoomElement.id);var e=new r.DropDownButton({iconCss:"e-pv-page-zoom-icon e-pv-icon e-icons",target:this.pageZoomContainer});this.pdfViewer.enableRtl&&(e.enableRtl=!0),e.appendTo(this.pageZoomElement),this.createTooltip(this.pageZoomElement,this.pdfViewer.localeObj.getConstant("Change Page Zoom")),this.pageZoomElement.setAttribute("aria-label",this.pdfViewer.localeObj.getConstant("Change Page Zoom")),this.pageZoomDropDown=e,this.pageZoomWireEvents(),this.pageZoomSliderWireEvents()},i.prototype.shrinkElement=function(e){var t=this.pdfViewer.element.getBoundingClientRect(),i=e.clientWidth,n=(i-t.width)/i,o=e.clientHeight*(1-n),r=i*(1-n);e.style.width=r+"px",e.style.height=o+"px"},i.prototype.pageZoomDropDownOpen=function(e){var i=this;if(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode){var n=this.pdfViewerBase.getElement("_page_zoom");e.element.parentElement.style.left="0px",e.element.parentElement.clientWidth>this.pdfViewer.element.getBoundingClientRect().width&&this.shrinkElement(e.element.parentElement);var o=e.element.parentElement.getBoundingClientRect();if(n&&n.parentElement.classList.contains("e-toolbar-popup"))e.element.parentElement.style.left=this.pdfViewer.element.getBoundingClientRect().left+Math.max((this.pdfViewer.element.getBoundingClientRect().width-o.width)/2,0)+"px";else{var r=n.getBoundingClientRect();e.element.parentElement.style.left=Math.max(r.right-o.width,this.pdfViewer.element.getBoundingClientRect().left)+"px"}e.element.parentElement.style.top=this.pdfViewerBase.getElement("_toolbar_appearance").getBoundingClientRect().bottom+"px"}else if(e.element&&e.element.parentElement){var a=parseFloat(e.element.parentElement.style.left),s=e.element.parentElement.offsetWidth;a+s>this.pdfViewer.element.getBoundingClientRect().left+this.pdfViewer.element.offsetWidth+10&&(e.element.parentElement.style.left=a-s+"px")}this.isPageZoomPopupOpen=!0,this.updatePageZoomPopup(),requestAnimationFrame(function(){i.pageZoomDecreaseButton.disabled?i.pageZoomSlider.element.querySelector(".e-handle").focus():i.pageZoomDecreaseButton.focus()})},i.prototype.pageZoomDropDownClose=function(){var e=this;requestAnimationFrame(function(){e.pageZoomDropDown.focusIn()}),this.isPageZoomPopupOpen=!1},i.prototype.pageZoomChange=function(e){e.isInteracted&&e.previousValue!==e.value&&(this.pageZoomSlider.element.querySelector(".e-handle").classList.remove("e-large-thumb-size"),this.handlePageZoomChange(e.value,e.previousValue))},i.prototype.blurImageContainer=function(e,i){t.isNullOrUndefined(i)||(i.style.filter=e?"blur(5px)":"")},i.prototype.createPageZoomSlider=function(e){var i=t.createElement("div",{className:"e-pv-page-zoom-popup-container"});document.body.appendChild(i),this.pageZoomDecreaseButton=t.createElement("button",{id:e+"_decrease",attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Decrease Page Zoom"),tabindex:"0"}}),this.pageZoomDecreaseButton.className="e-btn e-pv-page-zoom-decrease e-flat",this.pageZoomDecreaseButton.setAttribute("type","button");var o=t.createElement("span",{id:e+"_decrease_icon",className:"e-pv-page-zoom-decrease-icon e-btn-icon e-icons e-pv-icon"});this.pageZoomDecreaseButton.appendChild(o),this.pageZoomIncreaseButton=t.createElement("button",{id:e+"_increase",attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Increase Page Zoom"),tabindex:"0"}}),this.pageZoomIncreaseButton.className="e-btn e-pv-page-zoom-increase e-flat",this.pageZoomIncreaseButton.setAttribute("type","button");var r=t.createElement("span",{id:e+"_decrease_icon",className:"e-pv-page-zoom-increase-icon e-btn-icon e-icons e-pv-icon"});this.pageZoomIncreaseButton.appendChild(r);var a=t.createElement("div",{id:e+"_slider"});return this.pageZoomSlider=new n.Slider({type:"MinRange",cssClass:"e-pv-page-zoom-slider",max:this.getImageZoomMax(),min:this.getImageZoomMin(),step:this.pageZoomSliderStep}),this.pdfViewer.enableRtl?(i.appendChild(this.pageZoomIncreaseButton),i.appendChild(a),this.pageZoomSlider.enableRtl=!0,this.pageZoomSlider.appendTo(a),i.appendChild(this.pageZoomDecreaseButton)):(i.appendChild(this.pageZoomDecreaseButton),i.appendChild(a),this.pageZoomSlider.appendTo(a),i.appendChild(this.pageZoomIncreaseButton)),this.pageZoomSlider.element.parentElement.classList.add("e-pv-page-zoom-slider-container"),i},i.prototype.createMobileContextMenu=function(){this.mobileContextMenu=[{text:this.pdfViewer.localeObj.getConstant("Save"),iconCss:"e-icons e-pv-save-icon e-pv-icon"},{text:this.pdfViewer.localeObj.getConstant("Save As"),iconCss:"e-icons e-pv-save-as-icon e-pv-icon"},{separator:!0},{text:this.pdfViewer.localeObj.getConstant("Copy"),iconCss:"e-pv-copy-icon e-pv-icon"},{separator:!0},{text:this.pdfViewer.localeObj.getConstant("Import Document"),id:this.pdfViewer.element.id+"_import_pages",iconCss:"e-pv-import-icon e-pv-icon"}];var e=t.createElement("ul",{id:this.pdfViewer.element.id+"_organize_context_menu"});this.pdfViewer.element.appendChild(e),t.isNullOrUndefined(this.contextMenuObj)&&(this.contextMenuObj=new s.ContextMenu({target:"#"+this.pdfViewer.element.id+"_organize_more_button",items:this.mobileContextMenu,beforeOpen:this.contextMenuBeforeOpen.bind(this),select:this.contextMenuItemSelect.bind(this)}),this.pdfViewer.enableRtl&&(this.contextMenuObj.enableRtl=!0),this.contextMenuObj.appendTo(e)),t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.contextMenuObj.animationSettings.effect="ZoomIn":this.contextMenuObj.animationSettings.effect="SlideDown"},i.prototype.contextMenuBeforeOpen=function(e){this.contextMenuObj.enableItems(["Save","Save As"],!0),this.contextMenuObj.enableItems(["Copy"],!1),this.contextMenuObj.enableItems(["Import Document"],!0);!this.selectAllCheckBox.checked&&!this.selectAllCheckBox.indeterminate||!this.pdfViewer.pageOrganizerSettings.canCopy||this.getCopiedItems(!1)||this.getImportedItems(!1)||this.contextMenuObj.enableItems(["Copy"],!0)},i.prototype.getCopiedItems=function(e){var t=this;return this.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring").forEach(function(i){var n=i.closest(".e-pv-organize-anchor-node"),o=parseInt(n.getAttribute("data-page-order"),10),r=t.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===o});r.isInserted&&!r.isDeleted&&(e=!0)}),e},i.prototype.getImportedItems=function(e){var t=this;return this.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring").forEach(function(i){var n=i.closest(".e-pv-organize-anchor-node"),o=parseInt(n.getAttribute("data-page-order"),10),r=t.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===o});r.isImportedDoc&&!r.isDeleted&&(e=!0)}),e},i.prototype.contextMenuItemSelect=function(e){switch(e.item.text){case"Save":this.onSaveClicked();break;case"Save As":this.onSaveasClicked();break;case"Copy":this.onToolbarCopyButtonClick();break;case"Import Document":this.bindImportDocEvent()}},i.prototype.createRequestForPreview=function(){var e=this;return!!document.documentMode?(this.requestPreviewCreation(e),null):new Promise(function(t,i){e.requestPreviewCreation(e)})},i.prototype.requestPreviewCreation=function(e){for(var i=this.lastRequestedPageIndex,n=i+this.previewLimit>=this.pdfViewer.pageCount?this.pdfViewer.pageCount:i+this.previewLimit,o=!1,r=i;r<n;r++)e.pdfViewerBase.digitalSignaturePresent(r)&&(o=!0);var a="";o&&(a=e.pdfViewerBase.digitalSignaturePages.toString());var s={startPage:i.toString(),endPage:n.toString(),sizeX:"99.7",sizeY:"141",hashId:e.pdfViewerBase.hashId,action:"RenderThumbnailImages",elementId:e.pdfViewer.element.id,uniqueId:e.pdfViewerBase.documentId,digitalSignaturePresent:o,digitalSignaturePageList:a};if(this.pdfViewerBase.jsonDocumentId&&(s.documentId=this.pdfViewerBase.jsonDocumentId),this.pdfViewerBase.clientSideRendering)for(var l=this.pdfViewer.pageCount,d={documentId:e.pdfViewerBase.getDocumentId(),hashId:e.pdfViewerBase.hashId,elementId:e.pdfViewer.element.id,uniqueId:e.pdfViewerBase.documentId},A=!!e.pdfViewer.textSearch,h=this.isInitialLoading,p=e.getImageZoomValue(!0),c=0;c<l;c++)t.isNullOrUndefined(this.dataDetails[c]&&this.dataDetails[c].imageSize===p)&&this.pdfViewerBase.pdfViewerRunner.addTask({startIndex:0,endIndex:l,pageIndex:c,message:"renderPreviewTileImage",isTextNeed:A,jsonObject:d,isRenderText:A,requestType:A?"pdfTextSearchRequest":"",imageSize:p,initialLoad:h},Et.Medium);else{p=this.previouslyRequestedImageZoom;s.imageSize=p,s.initialLoad=this.isInitialLoading,this.previewRequestHandler=new Pi(this.pdfViewer),this.previewRequestHandler.url=e.pdfViewer.serviceUrl+"/"+e.pdfViewer.serverActionSettings.renderThumbnail,this.previewRequestHandler.responseType="json",n>0&&!t.isNullOrUndefined(e.pdfViewerBase.hashId)&&!this.isAllImagesReceived&&this.previewRequestHandler.send(s),this.previewRequestHandler.onSuccess=function(t){var i=t.data;e.pdfViewerBase.checkRedirection(i)||e.updatePreviewCollection(i)},this.previewRequestHandler.onFailure=function(t){e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,e.pdfViewer.serverActionSettings.renderThumbnail)},this.previewRequestHandler.onError=function(t){e.pdfViewerBase.openNotificationPopup(),e.pdfViewer.fireAjaxRequestFailed(t.status,t.statusText,e.pdfViewer.serverActionSettings.renderThumbnail)}}},i.prototype.updatePreviewCollection=function(e){if(e){var t=this;if("object"!=typeof e)try{e=JSON.parse(e)}catch(i){t.pdfViewerBase.onControlError(500,e,t.pdfViewer.serverActionSettings.renderThumbnail),e=null}e&&e.uniqueId===t.pdfViewerBase.documentId&&(t.pdfViewer.fireAjaxRequestSuccess(t.pdfViewer.serverActionSettings.renderThumbnail,e),this.getData(e,t.pdfViewerBase.clientSideRendering))}},i.prototype.previewOnMessage=function(e){if("renderPreviewTileImage"===e.data.message){var t=document.createElement("canvas"),i=e.data,n=i.value,o=i.width,r=i.height,a=i.pageIndex,s=i.startIndex,l=i.endIndex,d=i.imageSize;t.width=o,t.height=r;var A=t.getContext("2d"),h=A.createImageData(o,r);h.data.set(n),A.putImageData(h,0,0);var p=t.toDataURL();this.pdfViewerBase.releaseCanvas(t);var c={thumbnailImage:p,startPage:s,endPage:l,uniqueId:this.pdfViewerBase.documentId,pageIndex:a,imageSize:d};this.updatePreviewCollection(c)}},i.prototype.getData=function(e,i){if(this.dataDetails||(this.dataDetails=[]),e.imageSize===this.previouslyRequestedImageZoom&&this.dataDetails.length!==this.pdfViewer.pageCount){if(i)this.dataDetails.push({pageId:e.pageIndex,image:e.thumbnailImage,imageSize:e.imageSize});else for(var n=e.startPage,o=e.endPage,r=n;r<o;r++){var a=e.thumbnailImage[parseInt(r.toString(),10)],s=r;this.dataDetails.push({pageId:s,image:a,imageSize:e.imageSize})}this.dataDetails.sort(function(e,t){return e.pageId-t.pageId}),this.dataDetails.length===this.pdfViewer.pageCount?(t.isNullOrUndefined(this.pdfViewerBase.navigationPane)||this.pdfViewerBase.navigationPane.enableOrganizeButton(!0),t.isNullOrUndefined(this.pdfViewer.toolbar)||this.pdfViewer.toolbar.enableToolbarItem(["OrganizePagesTool"],!0),this.isInitialLoading&&this.pdfViewer.isPageOrganizerOpen&&(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.createOrganizeWindow():this.createOrganizeWindowForMobile()),this.isPageZoomChanged&&((this.isOrganizeWindowOpen||this.isOrganizeDialogRendered())&&(this.restorePagesBeforeZoom(),this.setThumbnailImage(),this.restorePagesAfterZoom()),this.isOrganizeWindowOpen&&this.showOrganizeLoadingIndicator(!1),this.isPageZoomChanged=!1,this.currentImageZoom=this.getImageZoomValue(),this.previousImageZoom!==this.currentImageZoom&&this.pdfViewer.firePageOrganizerZoomChanged(this.previousImageZoom,this.currentImageZoom)),this.isAllImagesReceived=!0,this.isInitialLoading=!1,this.lastRequestedPageIndex=0):this.pdfViewerBase.clientSideRendering||(!this.isInitialLoading||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode)&&(this.lastRequestedPageIndex=parseInt(e.endPage,10),!!document.documentMode?this.createRequestForPreview():Promise.all([this.createRequestForPreview()]))}},i.prototype.createImportDocElement=function(e){this.pdfViewer.pageOrganizerSettings.canImport&&e&&(this.importDocInputElement=t.createElement("input",{id:this.pdfViewer.element.id+"_importDocElement",styles:"position:fixed; left:-100em",attrs:{type:"file"}}),this.importDocInputElement.setAttribute("accept",".pdf"),this.importDocInputElement.setAttribute("aria-label","import document element"),this.importDocInputElement.setAttribute("tabindex","-1"),e.appendChild(this.importDocInputElement))},i.prototype.movePDFpages=function(e,t,i){for(var n=this,o=!1,r=0,a=e;r<a.length;r++)if(a[r]===t){o=!0;break}if(!o){for(var s=[],l=this,d=0;d<this.selectedPageIndexes.length;d++)!function(e){s.push(l.clonedCollection(l.tempOrganizePagesCollection.find(function(t){return t.currentPageIndex===n.selectedPageIndexes[parseInt(e.toString(),10)]})))}(d);var A=[];A.push.apply(A,this.selectedPageIndexes),this.addOrganizeAction(s,"Move Pages",[],A,this.dragEndIndex,this.isRightInsertion),this.rearrangePages(e,t,i)}},i.prototype.rearrangePages=function(e,t,i){var n=this;this.tempOrganizePagesCollection=this.updateCollection(this.tempOrganizePagesCollection,e,t,i);var o=Array.from(this.tileAreaDiv.children);e.sort(function(e,t){return e-t});var r=e.map(function(e){return o[parseInt(e.toString(),10)]}),a=i?t+1:t;r.forEach(function(e){o.splice(a,0,e),a+=1});for(var s=0;s<e.length;s++)e[parseInt(s.toString(),10)]>=t&&(e[parseInt(s.toString(),10)]+=r.length);e.sort(function(e,t){return t-e}).forEach(function(e){o.splice(e,1)}),this.tileAreaDiv.innerHTML="",o.forEach(function(e,t){n.tileAreaDiv.appendChild(e),e.setAttribute("data-page-order",t.toString())}),this.updatePageNumber()},i.prototype.updateCollection=function(e,i,n,o){var r=this,a=[],s=0,l=[];i.sort(),n=o?n+1:n;var d=0;i.forEach(function(e){e<n&&d++});var A=e.sort(function(e,t){return r.sorting(e.currentPageIndex,t.currentPageIndex)}),h=A.filter(function(e){return null===e.currentPageIndex}).length;A.forEach(function(e){null===e.currentPageIndex&&a.push(Ho({},e))});for(g=0;g<A.length;g++){for(var p=!1,c=0;c<i.length;c++)if(A[parseInt(g.toString(),10)].currentPageIndex===i[parseInt(c.toString(),10)]){p=!0;break}if(s===n-d)break;p||this.containsPageDetails(A[parseInt(g.toString(),10)],l)||t.isNullOrUndefined(A[parseInt(g.toString(),10)].currentPageIndex)||(a.push(Ho({},A[parseInt(g.toString(),10)])),l.push(A[parseInt(g.toString(),10)]),a[a.length-1].currentPageIndex=s,s+=1)}for(g=0;g<A.length;g++){for(var p=!1,c=0;c<i.length;c++)if(A[parseInt(g.toString(),10)].currentPageIndex===i[parseInt(c.toString(),10)]){p=!0;break}p&&!this.containsPageDetails(A[parseInt(g.toString(),10)],l)&&(a.push(Ho({},A[parseInt(g.toString(),10)])),l.push(A[parseInt(g.toString(),10)]),a[a.length-1].currentPageIndex=s,s+=1)}for(var g=h;g<A.length;g++){for(var p=!1,c=0;c<i.length;c++)if(A[parseInt(g.toString(),10)].currentPageIndex===i[parseInt(c.toString(),10)]){p=!0;break}p||this.containsPageDetails(A[parseInt(g.toString(),10)],l)||(a.push(Ho({},A[parseInt(g.toString(),10)])),l.push(A[parseInt(g.toString(),10)]),a[a.length-1].currentPageIndex=s,s+=1)}return a},i.prototype.sorting=function(e,i){return e=t.isNullOrUndefined(e)?-1:parseInt(e.toString(),10),i=t.isNullOrUndefined(i)?-1:parseInt(i.toString(),10),e>i?1:e<i?-1:0},i.prototype.containsPageDetails=function(e,t){for(var i=!1,n=!1,o=0;o<t.length;o++)t[parseInt(o.toString(),10)].pageIndex===e.pageIndex&&(i=!0),t[parseInt(o.toString(),10)].currentPageIndex===e.currentPageIndex&&(n=!0);return i&&n},i.prototype.renderThumbnailImage=function(){this.organizePagesCollection=[];for(var e=0;e<this.pdfViewer.pageCount;e++)this.tileImageRender(e),this.organizePagesCollection.push(new Jo(e,e,null,!1,!1,!1,!1,!1,!1,this.getRotatedAngle(this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].rotation.toString()),this.pdfViewerBase.pageSize[parseInt(e.toString(),10)],!1,null,null,null));this.tempOrganizePagesCollection=JSON.parse(JSON.stringify(this.organizePagesCollection))},i.prototype.bindImportDocEvent=function(){this.pdfViewer.pageOrganizerSettings.canImport&&document.getElementById(this.pdfViewer.element.id+"_import_pages")&&this.importDocInputElement.click()},i.prototype.tileImageRender=function(e,i,n,r,a,s,l,d,h){var p=this,c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAAaADAAQAAAABAAAAAQAAAAD5Ip3+AAAAC0lEQVQIHWP4DwQACfsD/Qy7W+cAAAAASUVORK5CYII=";this.pageLink=t.createElement("div",{id:"anchor_page_"+e,className:"e-pv-organize-anchor-node"});var g=this.getImageZoomFactor(this.pageLink.cloneNode(!0));a?(this.pageLink.id=this.pageLink.id+"_"+i,this.pageLink.setAttribute("data-page-order",n.toString())):this.pageLink.setAttribute("data-page-order",e.toString()),this.pageLink.style.width=140*g+"px",this.pageLink.style.height=140*g+"px",this.thumbnail=t.createElement("div",{id:this.pdfViewer.element.id+"_organize_page_"+e,className:"e-pv-organize-tile e-pv-thumbnail-column"}),a&&(this.thumbnail.id=this.thumbnail.id+"_"+i),this.imageContainer=t.createElement("div",{id:this.pdfViewer.element.id+"_container_image_"+e,className:"e-pv-image-container"}),a&&(this.imageContainer.id=this.imageContainer.id+"_"+i);var u;a||l?(u=this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n}).pageSize,s&&n-1>=0&&(u=this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n-1}).pageSize)):u=this.pdfViewerBase.pageSize[parseInt(e.toString(),10)],this.thumbnailImage=t.createElement("img",{id:this.pdfViewer.element.id+"_organize_image_"+e,className:"e-pv-organize-image"}),a&&(this.thumbnailImage.id=this.thumbnailImage.id+"_"+i);var f,m;if(u.height>u.width?(f=100*u.width/u.height,m=100):(f=100,m=100*u.height/u.width),this.thumbnailImage.style.width=f+"%",this.thumbnailImage.style.height=m+"%",l)this.thumbnailImage.src=c;else if(n&&null!==n){var w=this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n});w&&-1!==w.pageIndex?this.thumbnailImage.src=this.dataDetails[parseInt(w.pageIndex.toString(),10)].image:w&&null!==w.copiedPageIndex&&w.copiedPageIndex>=0?this.thumbnailImage.src=this.dataDetails[parseInt(w.copiedPageIndex.toString(),10)].image:this.thumbnailImage.src=c}else this.thumbnailImage.src=this.dataDetails[parseInt(e.toString(),10)].image;if(this.imageContainer.addEventListener("click",function(e){p.handleImageContainerClick(e)}),this.thumbnailImage.alt=this.pdfViewer.element.id+"_organize_page_"+e,a&&(this.thumbnailImage.alt=this.pdfViewer.element.id+"_organize_page_"+n),d){var C=t.createElement("span",{id:this.pdfViewer.element.id+"_organize_import_download_icon_"+e,className:"e-pv-organize-import-download-icon e-pv-import-icon e-pv-icon"});this.importImageWrapper=t.createElement("div",{id:this.pdfViewer.element.id+"_organize_import_image_wrapper_"+e,className:"e-pv-organize-import-image-wrapper"}),this.importImageWrapper.appendChild(C),this.imageContainer.appendChild(this.importImageWrapper)}else this.imageContainer.appendChild(this.thumbnailImage);var B=0;a&&!t.isNullOrUndefined(this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n}))&&(B=this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n}).rotateAngle,this.imageContainer.style.transform="rotate("+B+"deg)"),this.thumbnail.appendChild(this.imageContainer);var S=t.createElement("div",{id:this.pdfViewer.element.id+"_tile_pagenumber_"+e,className:"e-pv-tile-number"});a&&(S.id=S.id+"_"+i),S.textContent=d?h:a?(n+1).toString():(e+1).toString();var y=document.createElement("input");y.type="checkbox",y.className="e-pv-organize-tile-checkbox",y.id="checkboxdiv_page_"+e,a&&(y.id=y.id+"_"+i),this.thumbnail.appendChild(y),new A.CheckBox({disabled:!1,checked:!1,change:this.onSelectClick.bind(this)}).appendTo(y),y.parentElement.style.height="100%",y.parentElement.style.width="100%",y.parentElement.style.display="none";var I=t.createElement("div",{id:this.pdfViewer.element.id+"_organize_buttondiv_"+e,className:"e-pv-organize-buttondiv"});a&&(I.id=I.id+"_"+i),this.deleteButton=t.createElement("button",{id:this.pdfViewer.element.id+"_delete_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Delete Page"),tabindex:"-1"}}),a&&(this.deleteButton.id=this.deleteButton.id+"_"+i),this.deleteButton.className="e-pv-tbar-btn e-pv-delete-button e-btn e-pv-organize-pdf-tile-btn",this.deleteButton.setAttribute("type","button");var E=t.createElement("span",{id:this.pdfViewer.element.id+"_delete_icon",className:"e-pv-delete-icon e-pv-icon"});this.deleteButton.appendChild(E),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Delete Page")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.deleteButton),this.rotateRightButton=t.createElement("button",{id:this.pdfViewer.element.id+"_rotate_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Rotate Right"),tabindex:"-1"}}),a&&(this.rotateRightButton.id=this.rotateRightButton.id+"_"+i),this.rotateRightButton.className="e-pv-tbar-btn e-pv-rotate-right-button e-btn e-pv-organize-pdf-tile-btn",this.rotateRightButton.setAttribute("type","button");var v=t.createElement("span",{id:this.pdfViewer.element.id+"_rotate-right_icon",className:"e-pv-rotate-right-icon e-pv-icon"});this.rotateRightButton.appendChild(v),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Rotate Right")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.rotateRightButton),this.rotateLeftButton=t.createElement("button",{id:this.pdfViewer.element.id+"_rotate_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Rotate Left"),tabindex:"-1"}}),a&&(this.rotateLeftButton.id=this.rotateLeftButton.id+"_"+i),this.rotateLeftButton.className="e-pv-tbar-btn e-pv-rotate-left-button e-btn e-pv-organize-pdf-tile-btn",this.rotateLeftButton.setAttribute("type","button");var b=t.createElement("span",{id:this.pdfViewer.element.id+"_rotate_left_icon",className:"e-pv-rotate-left-icon e-pv-icon"});this.rotateLeftButton.appendChild(b),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Rotate Left")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.rotateLeftButton),this.copyButton=t.createElement("button",{id:this.pdfViewer.element.id+"_copy_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Copy Page"),tabindex:"-1"}}),a&&(this.copyButton.id=this.copyButton.id+"_"+i),this.copyButton.className="e-pv-tbar-btn e-pv-copy-button e-btn e-pv-organize-pdf-tile-btn",this.copyButton.setAttribute("type","button");var V=t.createElement("span",{id:this.pdfViewer.element.id+"_copy_icon",className:"e-pv-copy-icon e-pv-icon"});this.copyButton.appendChild(V),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Copy Page")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.copyButton),this.insertRightButton=t.createElement("button",{id:this.pdfViewer.element.id+"_insert_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Insert Right"),tabindex:"-1"}}),a&&(this.insertRightButton.id=this.insertRightButton.id+"_"+i),this.insertRightButton.className="e-pv-tbar-btn e-pv-insert-right-button e-btn e-pv-organize-pdf-tile-btn",this.insertRightButton.setAttribute("type","button");var D=t.createElement("span",{id:this.pdfViewer.element.id+"_insert_right_icon",className:"e-icons e-plus"});this.insertRightButton.appendChild(D),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Insert Right")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.insertRightButton),this.insertLeftButton=t.createElement("button",{id:this.pdfViewer.element.id+"_insert_page_"+e,attrs:{"aria-label":this.pdfViewer.localeObj.getConstant("Insert Left"),tabindex:"-1"}}),a&&(this.insertLeftButton.id=this.insertLeftButton.id+"_"+i),this.insertLeftButton.className="e-pv-tbar-btn e-pv-insert-left-button e-btn e-pv-organize-pdf-tile-btn",this.insertLeftButton.setAttribute("type","button");var x=t.createElement("span",{id:this.pdfViewer.element.id+"_insert_left_icon",className:"e-icons e-plus"});this.insertLeftButton.appendChild(x),new o.Tooltip({content:t.initializeCSPTemplate(function(){return this.pdfViewer.localeObj.getConstant("Insert Left")},this),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(this.insertLeftButton),this.pdfViewer.pageOrganizerSettings.canInsert||(this.insertLeftButton.setAttribute("disabled","disabled"),this.insertLeftButton.firstElementChild.classList.add("e-disabled"),this.insertRightButton.setAttribute("disabled","disabled"),this.insertRightButton.firstElementChild.classList.add("e-disabled")),this.pdfViewer.pageOrganizerSettings.canRotate||(this.rotateLeftButton.setAttribute("disabled","disabled"),this.rotateLeftButton.firstElementChild.classList.add("e-disabled"),this.rotateRightButton.setAttribute("disabled","disabled"),this.rotateRightButton.firstElementChild.classList.add("e-disabled")),this.pdfViewer.pageOrganizerSettings.canDelete||(this.deleteButton.setAttribute("disabled","disabled"),this.deleteButton.firstElementChild.classList.add("e-disabled")),this.pdfViewer.pageOrganizerSettings.canCopy||(this.copyButton.setAttribute("disabled","disabled"),this.copyButton.firstElementChild.classList.add("e-disabled")),I.appendChild(this.insertLeftButton),d||(I.appendChild(this.rotateLeftButton),I.appendChild(this.rotateRightButton),I.appendChild(this.copyButton)),I.appendChild(this.deleteButton),I.appendChild(this.insertRightButton),this.thumbnail.appendChild(I),I.style.display="none",this.pageLink.appendChild(this.thumbnail),this.tileAreaDiv.appendChild(this.pageLink),this.pageLink.appendChild(S),this.rotateRightButton.addEventListener("click",this.rotateButtonClick),this.rotateLeftButton.addEventListener("click",this.rotateLeftButtonClick),this.insertRightButton.addEventListener("click",this.insertRightButtonClick),this.insertLeftButton.addEventListener("click",this.insertLeftButtonClick),this.deleteButton.addEventListener("click",this.deleteButtonClick),this.copyButton.addEventListener("click",this.copyButtonClick),this.pageLink.addEventListener("mouseover",this.thumbnailMouseOver),this.pageLink.addEventListener("mouseleave",this.thumbnailMouseLeave),this.movePages(),a&&(s?this.tileAreaDiv.insertBefore(this.pageLink,r):this.tileAreaDiv.insertBefore(this.pageLink,r.nextSibling))},i.prototype.handleImageContainerClick=function(e){var i=e.target.closest(".e-pv-organize-anchor-node").querySelector(".e-pv-organize-tile-checkbox.e-control.e-checkbox.e-lib");e instanceof PointerEvent?"touch"===e.pointerType?this.isTouchEvent=!0:"mouse"===e.pointerType&&(this.isTouchEvent=!1):!this.pdfViewerBase.isMacSafari&&e instanceof TouchEvent?this.isTouchEvent=!0:e instanceof MouseEvent&&(this.isTouchEvent=!1),i&&!t.isNullOrUndefined(i)&&!t.isNullOrUndefined(i.ej2_instances)&&i.ej2_instances.length>0&&i.ej2_instances[0].click()},i.prototype.movePages=function(){var e=this,i=this,n=this.imageContainer;this.dragObj=new t.Draggable(n,{dragArea:this.tileAreaDiv,isDragScroll:!0,enableTapHold:!0,tapHoldThreshold:t.Browser.isDevice?50:750,helper:function(i){if(e.pdfViewer.pageOrganizerSettings.canRearrange){var n=i.element.querySelector(".e-pv-organize-image, .e-pv-organize-import-image-wrapper"),o=n.cloneNode(!0);return o.style.width=n.clientWidth+"px",o.style.height=n.clientHeight+"px",e.virtualEle=t.createElement("div",{className:"e-pv-virtual-image-container"}),e.virtualEle.appendChild(o),e.tileAreaWrapper.appendChild(e.virtualEle),e.virtualEle}return null},drag:function(e){if(e.event.preventDefault(),i.pdfViewer.pageOrganizerSettings.canRearrange){i.autoScroll(e),i.addSelectionRingStyle();var n=!t.isNullOrUndefined(e.target)&&e.target instanceof Element?e.target.closest(".e-pv-organize-anchor-node"):null;if(!t.isNullOrUndefined(n)){var o=parseInt(n.getAttribute("data-page-order"),10);i.dragHoveredIndex=o;var r=n.getBoundingClientRect(),a=document.querySelector(".e-pv-organize-outer-border");t.isNullOrUndefined(a)&&(a=t.createElement("div",{className:"e-pv-organize-outer-border"}),i.tileAreaWrapper.appendChild(a)),a.style.display="block",i.isHoveredOnSelectedPages(i.selectedPageIndexes,i.dragHoveredIndex)&&!t.isNullOrUndefined(e.target)&&(e.target.classList.contains("e-pv-organize-image")||e.target.classList.contains("e-pv-organize-import-image-wrapper")||e.target.classList.contains("e-pv-image-container"))?(a.classList.add("e-pv-selected"),a.classList.remove("e-pv-not-selected")):!t.isNullOrUndefined(e.target)&&(e.target.classList.contains("e-pv-organize-image")||e.target.classList.contains("e-pv-organize-import-image-wrapper")||e.target.classList.contains("e-pv-image-container"))&&(a.classList.add("e-pv-not-selected"),a.classList.remove("e-pv-selected")),i.handlePageMove(e,r,i.gapBetweenDivs,a)}}},dragStart:function(n){if(i.selectedPageIndexes=[],i.pdfViewer.pageOrganizerSettings.canRearrange){if(n.element.parentElement.querySelector(".e-pv-organize-tile-checkbox").checked)for(var o=i.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring"),r=0;r<o.length;r++)i.selectedPageIndexes.push(parseInt(o[parseInt(r.toString(),10)].getAttribute("data-page-order"),10)),o[parseInt(r.toString(),10)].classList.add("e-pv-organize-tile-draggedEle"),(s=o[parseInt(r.toString(),10)].querySelector(".e-pv-organize-image, .e-pv-organize-import-image-wrapper"))&&s.classList.add("e-pv-organize-tile-draggedEle");else{var a=n.element.closest(".e-pv-organize-anchor-node");if(a){i.selectedPageIndexes.push(parseInt(a.getAttribute("data-page-order"),10)),a.classList.add("e-pv-organize-tile-draggedEle");var s=a.querySelector(".e-pv-organize-image, .e-pv-organize-import-image-wrapper");s&&s.classList.add("e-pv-organize-tile-draggedEle")}}var l=t.createElement("span",{className:"e-badge e-badge-primary e-badge-overlap e-badge-notification",innerHTML:""+e.selectedPageIndexes.length});l.classList.add("e-pv-notification"),i.virtualEle.append(l),i.addSelectionRingStyle()}},dragStop:function(e){var n=function(){i.virtualEle.parentNode.removeChild(i.virtualEle),i.tileAreaDiv.querySelectorAll(".e-pv-organize-tile-draggedEle").forEach(function(e){e.classList.remove("e-pv-organize-tile-draggedEle")});var e=document.querySelector(".e-pv-organize-outer-border");t.isNullOrUndefined(e)||(e.classList.remove("e-pv-selected","e-pv-not-selected"),i.selectedPageIndexes=[])};null!==i.autoScrollInterval&&(clearInterval(i.autoScrollInterval),i.autoScrollInterval=null),i.removeSelectionRingStyle(),e.target instanceof Element&&e.target.classList?null!=e.target&&(e.target.classList.contains("e-pv-organize-image")||e.target.classList.contains("e-pv-organize-import-image-wrapper")||e.target.classList.contains("e-pv-image-container"))||n():n()}});var o=this.thumbnail;this.dropObj=new t.Droppable(o,{drop:function(e){null!==i.autoScrollInterval&&(clearInterval(i.autoScrollInterval),i.autoScrollInterval=null),i.removeSelectionRingStyle();var t=document.querySelector(".e-pv-organize-outer-border");t&&(t.classList.remove("e-pv-selected","e-pv-not-selected"),t.parentNode.removeChild(t)),i.virtualEle&&i.virtualEle.parentNode&&(i.virtualEle.parentNode.removeChild(i.virtualEle),i.virtualEle=null),i.pageDragDrop(e),i.tileAreaDiv.querySelectorAll(".e-pv-organize-tile-draggedEle").forEach(function(e){e.classList.remove("e-pv-organize-tile-draggedEle")}),i.selectedPageIndexes=[]},over:function(e){},out:function(e){var i=document.querySelector(".e-pv-organize-outer-border");t.isNullOrUndefined(i)||i.classList.remove("e-pv-selected","e-pv-not-selected")}})},i.prototype.autoScroll=function(e){function i(){n.tileAreaDiv.onscroll=function(){var e=document.querySelector(".e-pv-organize-outer-border");t.isNullOrUndefined(e)||(e.style.display="none")};var e=n.virtualEle.getBoundingClientRect(),i=e.bottom-(n.previousClientY+e.height),r=e.top-n.previousClientY;n.previousClientY=e.top;var a=n.tileAreaDiv.scrollTop,d=a>0&&r<=0,A=a<g&&i>=0,h=a;if(p&&d)h-=10*(u=(s-n.virtualEle.getBoundingClientRect().top)/o);else if(c&&A){var u=(n.virtualEle.getBoundingClientRect().bottom-l)/o;h+=10*u}return(h=Math.max(0,Math.min(g,h)))!==a&&(n.tileAreaDiv.scrollTop=h,!0)}var n=this,o=("touchmove"===e.event.type?e.event.touches[0].clientY:e.event.clientY,10);this.autoScrollInterval=null;var r,a=window.innerHeight,s=o,l=a-o,d=document.getElementById(this.pdfViewer.element.id+"_toolbar_appearance").getBoundingClientRect().bottom+o,A=this.organizeDialog.element.getElementsByClassName("e-footer-content");!t.isNullOrUndefined(A)&&A.length>0&&(r=A[0].getBoundingClientRect());var h=t.isNullOrUndefined(r)?this.tileAreaDiv.getBoundingClientRect().bottom-o:r.top-o;if(s=parseFloat(Math.max(s,d).toFixed(2)),l=Math.min(l,h),this.virtualEle.getBoundingClientRect().height>=this.tileAreaDiv.getBoundingClientRect().height)return clearTimeout(this.autoScrollInterval),void(n.autoScrollInterval=null);var p=parseFloat(this.virtualEle.getBoundingClientRect().top.toFixed(2))<=s,c=this.virtualEle.getBoundingClientRect().bottom>=l;if(!p&&!c)return clearTimeout(this.autoScrollInterval),void(n.autoScrollInterval=null);var g=this.tileAreaDiv.scrollHeight-this.tileAreaDiv.clientHeight;!function e(){clearTimeout(n.autoScrollInterval),n.autoScrollInterval=null,i()&&(n.autoScrollInterval=window.setTimeout(e,30))}()},i.prototype.handlePageMove=function(e,i,n,o){var r=this.isTileRightInsertion(e);if(!t.isNullOrUndefined(this.isTileRightInsertion)){var a=r?i.width+n/2:-n/2,s=o.parentElement.getBoundingClientRect();o.style.left=i.x+a-s.x+"px",o.style.top=i.top-s.y+"px",o.style.height=i.height+"px",this.isRightInsertion=r}},i.prototype.isTileRightInsertion=function(e){var i=t.isNullOrUndefined(e.target)?null:e.target.closest(".e-pv-organize-anchor-node");if(!t.isNullOrUndefined(i)){var n=i.getBoundingClientRect();return("mousemove"===e.event.type?e.event.clientX:e.event.touches[0].clientX)>n.x+n.width/2}return null},i.prototype.addSelectionRingStyle=function(){for(var e=this.tileAreaDiv.querySelectorAll(".e-pv-organize-anchor-node"),t=0;t<this.selectedPageIndexes.length;t++)e[this.selectedPageIndexes[parseInt(t.toString(),10)]].classList.add("e-pv-dragging-style")},i.prototype.removeSelectionRingStyle=function(){for(var e=this.tileAreaDiv.querySelectorAll(".e-pv-organize-anchor-node"),t=0;t<this.selectedPageIndexes.length;t++)e[this.selectedPageIndexes[parseInt(t.toString(),10)]].classList.remove("e-pv-dragging-style")},i.prototype.isHoveredOnSelectedPages=function(e,t){for(var i=!1,n=0;n<e.length;n++)if(e[parseInt(n.toString(),10)]===t){i=!0;break}return i},i.prototype.addOrganizeAction=function(e,t,i,n,o,r){var a={UndoRedoTileActions:e,action:t,toolbarActions:i,selectedPagesIndexes:n,dropIndex:o,isRightInsertion:r};this.undoOrganizeCollection.push(a),this.redoOrganizeCollection=[],this.updateUndoRedoButtons()},i.prototype.updateUndoRedoButtons=function(){var e=this;this.toolbar.items.forEach(function(t){t.id===e.pdfViewer.element.id+"_undo_organize_Pages"?e.enableToolbarItem(t.id,e.undoOrganizeCollection.length>0):t.id===e.pdfViewer.element.id+"_redo_organize_Pages"&&e.enableToolbarItem(t.id,e.redoOrganizeCollection.length>0)})},i.prototype.handlePageZoomButtonsVisibility=function(e){e===this.getImageZoomMin()?(this.enablePageZoomButtons(!1,!1),this.enablePageZoomButtons(!0,!0)):e===this.getImageZoomMax()?(this.enablePageZoomButtons(!1,!0),this.enablePageZoomButtons(!0,!1)):(this.enablePageZoomButtons(!0,!0),this.enablePageZoomButtons(!0,!1))},i.prototype.enablePageZoomButtons=function(e,i){var n;n=i?this.pageZoomIncreaseButton:this.pageZoomDecreaseButton,t.isNullOrUndefined(n)||(e?(n.removeAttribute("disabled"),n.firstElementChild.classList.remove("e-disabled")):(n.setAttribute("disabled","disabled"),n.firstElementChild.classList.add("e-disabled")))},i.prototype.enableDisableToolbarItems=function(){var e=this;this.toolbar.items.forEach(function(t){t.id===e.pdfViewer.element.id+"_rotate_page_left"?e.enableToolbarItem(t.id,(e.selectAllCheckBox.checked||e.selectAllCheckBox.indeterminate)&&e.pdfViewer.pageOrganizerSettings.canRotate&&!e.getImportedItems(!1)):t.id===e.pdfViewer.element.id+"_rotate_page_right"?e.enableToolbarItem(t.id,(e.selectAllCheckBox.checked||e.selectAllCheckBox.indeterminate)&&e.pdfViewer.pageOrganizerSettings.canRotate&&!e.getImportedItems(!1)):t.id===e.pdfViewer.element.id+"_copy_page"?e.enableToolbarItem(t.id,(e.selectAllCheckBox.checked||e.selectAllCheckBox.indeterminate)&&e.pdfViewer.pageOrganizerSettings.canCopy&&!e.getCopiedItems(!1)&&!e.getImportedItems(!1)):t.id===e.pdfViewer.element.id+"_delete_selected"?e.enableToolbarItem(t.id,e.selectAllCheckBox.indeterminate&&e.pdfViewer.pageOrganizerSettings.canDelete):t.id===e.pdfViewer.element.id+"_import_pages"&&e.enableToolbarItem(t.id,e.pdfViewer.pageOrganizerSettings.canImport)})},i.prototype.enableToolbarItem=function(e,i){var n=document.getElementById(e);t.isNullOrUndefined(n)||t.isNullOrUndefined(n.parentElement)||(this.toolbar.enableItems(n.parentElement,i),n.setAttribute("tabindex",i?"0":"-1"),n.setAttribute("data-tabindex",i?"0":"-1"))},i.prototype.disableTileDeleteButton=function(){if(1===this.tileAreaDiv.childElementCount){n=(i=this.tileAreaDiv.querySelector(".e-pv-organize-anchor-node")).querySelector(".e-pv-delete-button");t.isNullOrUndefined(n)||(n.setAttribute("disabled","disabled"),n.firstElementChild.classList.add("e-disabled"))}else for(var e=0;e<this.tileAreaDiv.childElementCount;e++){var i=void 0,n=(i=this.tileAreaDiv.childNodes[parseInt(e.toString(),10)].classList.contains("e-pv-organize-anchor-node")?this.tileAreaDiv.childNodes[parseInt(e.toString(),10)]:this.tileAreaDiv.childNodes[parseInt(e.toString(),10)].querySelector(".e-pv-organize-anchor-node")).querySelector(".e-pv-delete-button");!t.isNullOrUndefined(n)&&this.pdfViewer.pageOrganizerSettings.canDelete&&(n.removeAttribute("disabled"),n.firstElementChild.classList.remove("e-disabled"))}},i.prototype.disableTileCopyRotateButton=function(){for(var e=0;e<this.tempOrganizePagesCollection.length;e++){var i=this.tempOrganizePagesCollection[parseInt(e.toString(),10)];if(i.isImportedDoc&&!i.isDeleted&&null!=!i.currentPageIndex){var n=this.tileAreaDiv.querySelector('[data-page-order="'+i.currentPageIndex.toString()+'"]'),o=n.querySelector(".e-pv-rotate-left-button"),r=n.querySelector(".e-pv-rotate-right-button"),a=n.querySelector(".e-pv-copy-button");t.isNullOrUndefined(o)||(o.setAttribute("disabled","disabled"),o.firstElementChild.classList.add("e-disabled")),t.isNullOrUndefined(r)||(r.setAttribute("disabled","disabled"),r.firstElementChild.classList.add("e-disabled")),t.isNullOrUndefined(a)||(a.setAttribute("disabled","disabled"),a.firstElementChild.classList.add("e-disabled"))}}},i.prototype.disableTileCopyButton=function(){for(var e=0;e<this.tempOrganizePagesCollection.length;e++){var i=this.tempOrganizePagesCollection[parseInt(e.toString(),10)];if(i.isInserted&&!i.isDeleted&&null!=!i.currentPageIndex){var n=this.tileAreaDiv.querySelector('[data-page-order="'+i.currentPageIndex.toString()+'"]').querySelector(".e-pv-copy-button");t.isNullOrUndefined(n)||(n.setAttribute("disabled","disabled"),n.firstElementChild.classList.add("e-disabled"))}}},i.prototype.updateSelectAllCheckbox=function(){var e=this.tileAreaDiv.childElementCount;this.totalCheckedCount=this.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring").length,this.selectAllCheckBox&&(0===this.totalCheckedCount?(this.selectAllCheckBox.indeterminate=!1,this.selectAllCheckBox.checked=!1):e===this.totalCheckedCount?(this.selectAllCheckBox.indeterminate=!1,this.selectAllCheckBox.checked=!0):this.selectAllCheckBox.indeterminate=!0)},i.prototype.setSelectionRingStyle=function(e,i){e.checked?i.classList.add("e-pv-organize-node-selection-ring"):i.classList.remove("e-pv-organize-node-selection-ring");for(var n=0,o=Array.from(i.children);n<o.length;n++)for(var r=o[n],a=0,s=Array.from(r.children);a<s.length;a++){var l=s[a];if(l.classList.contains("e-checkbox-wrapper")){var d=l.getElementsByClassName("e-control e-checkbox e-lib")[0].id,A=t.getComponent(document.getElementById(d),"checkbox");e.checked?(l.style.display="block",l.children[0].style.display="block",A.checked=!0):(l.style.display="none",l.children[0].style.display="none",A.checked=!1,t.isNullOrUndefined(l.parentElement)||t.isNullOrUndefined(l.parentElement.lastElementChild)||!l.parentElement.lastElementChild.classList.contains("e-pv-organize-buttondiv")||(l.parentElement.lastElementChild.style.display="none"))}}},i.prototype.onTooltipBeforeOpen=function(e){this.pdfViewer.toolbarSettings.showTooltip||(e.cancel=!0)},i.prototype.openContextMenu=function(e){var i=document.getElementById(this.pdfViewer.element.i
10d+"_organize_context_menu");t.isNullOrUndefined(i)||"block"===i.style.display||this.contextMenuObj.open(e.originalEvent.clientY,e.originalEvent.clientX,e.originalEvent.currentTarget)},i.prototype.updateTempRotationDetail=function(e,t){if(this.pdfViewer.pageOrganizerSettings.canRotate){var i=this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e});if(-1!==i){var n=this.tempOrganizePagesCollection[parseInt(i.toString(),10)].rotateAngle+t;-90===n&&(n=0),this.tempOrganizePagesCollection[parseInt(i.toString(),10)].rotateAngle=Math.abs((this.tempOrganizePagesCollection[parseInt(i.toString(),10)].rotateAngle+t+360)%360)}}this.organizeWindowFocus()},i.prototype.organizeWindowFocus=function(){var e=this.pdfViewer.element.id;document.getElementById(e+"_organize_window").focus()},i.prototype.getRotatedAngle=function(e){switch(e.trim()){case"0":return 0;case"90":case"1":return 90;case"180":case"2":return 180;case"270":case"3":return 270;case"360":case"4":default:return 0}},i.prototype.getRotation=function(e){switch(e.trim()){case"0":return 0;case"90":return 1;case"180":return 2;case"270":return 3;case"360":default:return 0}},i.prototype.updateRotationDetailCollection=function(){for(var e=0;e<this.tempOrganizePagesCollection.length;e++){var t=this.tempOrganizePagesCollection[parseInt(e.toString(),10)];if(-1!==t.pageIndex){var i=this.pdfViewerBase.pageSize[parseInt(t.pageIndex.toString(),10)];Math.abs(this.getRotation(i.rotation.toString())-t.rotateAngle)%180==90&&this.updatePageSize(t.pageIndex,i.height,i.width)}}},i.prototype.updatePageSize=function(e,t,i){this.pdfViewerBase.pageSize[parseInt(e.toString(),10)]&&(this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].width=t,this.pdfViewerBase.pageSize[parseInt(e.toString(),10)].height=i,this.pdfViewerBase.highestWidth<t&&(this.pdfViewerBase.highestWidth=t),this.pdfViewerBase.isMixedSizeDocument=!0);for(var n=e;n<this.pdfViewerBase.pageSize.length;n++)!this.pdfViewerBase.pageSize[parseInt((n-1).toString(),10)]&&n-1<0?this.pdfViewerBase.pageSize[parseInt(n.toString(),10)].top=this.pdfViewerBase.pageGap:this.pdfViewerBase.pageSize[parseInt(n.toString(),10)].top=this.pdfViewerBase.pageSize[parseInt((n-1).toString(),10)].top+this.pdfViewerBase.pageSize[parseInt((n-1).toString(),10)].height+this.pdfViewerBase.pageGap},i.prototype.onSaveClicked=function(){var e=this;if(this.isSkipRevert=!0,this.showOrganizeLoadingIndicator(!0),JSON.stringify(this.tempOrganizePagesCollection)!==JSON.stringify(this.organizePagesCollection)||this.isDocumentModified){this.updateOrganizePageCollection(),this.isDocumentModified=!0;var i;this.pdfViewer.saveAsBlob().then(function(n){i=n,e.blobToBase64(i).then(function(i){if(!t.isNullOrUndefined(i)&&""!==i){var n=e.pdfViewer.fileName,o=e.pdfViewer.downloadFileName,r=e.pdfViewerBase.jsonDocumentId;e.showOrganizeLoadingIndicator(!1),e.organizeDialog.hide(),e.undoOrganizeCollection=[],e.redoOrganizeCollection=[],e.pdfViewer.loadDocInternally(i,null,!1),e.pdfViewerBase.updateDocumentEditedProperty(!0),e.pdfViewer.fileName=n,t.isNullOrUndefined(o)?e.pdfViewer.downloadFileName=n:e.pdfViewer.downloadFileName=o,e.pdfViewerBase.jsonDocumentId=r}})})}else this.showOrganizeLoadingIndicator(!1),this.organizeDialog.hide(),this.undoOrganizeCollection=[],this.redoOrganizeCollection=[]},i.prototype.blobToByteArray=function(e){return new Promise(function(t,i){var n=new FileReader;n.onloadend=function(){var e=n.result,i=new Uint8Array(e);t(i)},n.readAsArrayBuffer(e)})},i.prototype.blobToBase64=function(e){return new Promise(function(t,i){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)})},i.prototype.showOrganizeLoadingIndicator=function(e){var t=document.getElementById(this.pdfViewer.element.id+"_organizeLoadingIndicator");t&&(e?(t.style.display="block",Ye(t)):(t.style.display="none",Je(t)))},i.prototype.updateOrganizePageDetailsInViewer=function(){for(var e=0,t=this.organizePagesCollection;e<t.length;e++){var i=t[e],n=i.pageIndex,o=i.rotateAngle,r=void 0,a=(r=-1!==n?this.pdfViewerBase.pageSize[parseInt(n.toString(),10)]:this.pdfViewerBase.pageSize[parseInt(i.copiedPageIndex.toString(),10)]).width*this.pdfViewerBase.getZoomFactor(),s=r.height*this.pdfViewerBase.getZoomFactor(),l=r.top*this.pdfViewerBase.getZoomFactor(),d=this.pdfViewerBase.getElement("_pageDiv_"+n),A=this.pdfViewerBase.getElement("_pageCanvas_"+n);if(d&&A){if(d.style.width=a+"px",d.style.height=s+"px",this.pdfViewer.enableRtl?d.style.right=this.pdfViewerBase.updateLeftPosition(n)+"px":d.style.left=this.pdfViewerBase.updateLeftPosition(n)+"px",d.style.top=l+"px",this.pdfViewerBase.pageContainer.style.width=this.pdfViewerBase.isMixedSizeDocument&&this.pdfViewerBase.highestWidth*this.pdfViewerBase.getZoomFactor()>this.pdfViewerBase.viewerContainer.clientWidth?this.pdfViewerBase.highestWidth*this.pdfViewerBase.getZoomFactor()+"px":this.pdfViewerBase.viewerContainer.clientWidth+"px",90===o||270===o){var h=d.style.width;d.style.width=d.style.height,d.style.height=h}else d.style.width="",d.style.height="";if(d.style.left=(this.pdfViewerBase.viewerContainer.clientWidth-parseInt(d.style.width,10)*this.pdfViewerBase.getZoomFactor())/2+"px",A.style.transform="rotate("+o+"deg)",90===o||270===o){var p=A.width;A.style.width=A.height+"px",A.width=A.height,A.style.height=p+"px",A.height=p,A.style.margin="0px",A.style.marginLeft=(A.height-A.width)/2+"px",A.style.marginTop=(A.width-A.height)/2+"px"}else A.style.margin="0px";this.applyElementStyles(A,n)}}},i.prototype.getNextSubIndex=function(e,t){var i=-1;return e.querySelectorAll("[id^='anchor_page_"+t+"']").forEach(function(e){var t=e.id.split("_").slice(2),n=(t[0],t[1]);Number(n)>i&&(i=Number(n))}),i+1},i.prototype.removePage=function(e){var t=this.tileAreaDiv.childNodes[parseInt(e.toString(),10)];this.deleteTempPage(e,t),this.tileAreaDiv.removeChild(t),this.updatePageDetail()},i.prototype.rotateImage=function(e,t){var i=this.tileAreaDiv.childNodes[parseInt(e.toString(),10)].querySelector(".e-pv-organize-image");if(i){var n=parseFloat(i.style.transform.replace("rotate(","").replace("deg)",""))||0;n=(n+t+360)%360,i.style.transform="rotate("+n+"deg)",this.updateTempRotationDetail(e,t)}},i.prototype.updatePageDetail=function(){this.updateTotalPageCount(),this.updatePageNumber()},i.prototype.deletePageElement=function(e){if(this.pdfViewer.pageOrganizerSettings.canDelete&&this.tileAreaDiv.childElementCount>1){var i=parseInt(e.getAttribute("data-page-order"),10);this.deleteTempPage(i,e);var n=e.querySelector(".e-pv-delete-button");!t.isNullOrUndefined(n)&&!t.isNullOrUndefined(n.ej2_instances)&&n.ej2_instances.length>0&&n.ej2_instances[0].destroy(),this.tileAreaDiv.removeChild(e),this.updateTotalPageCount(),this.updatePageNumber(),this.updateSelectAllCheckbox(),this.disableTileDeleteButton()}},i.prototype.deleteTempPage=function(e,i){if(this.pdfViewer.pageOrganizerSettings.canDelete&&this.tempOrganizePagesCollection.filter(function(e){return!1===e.isDeleted}).length>0){var n=this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e}),o=this.tempOrganizePagesCollection[parseInt(n.toString(),10)].currentPageIndex;for(-1===n||this.tempOrganizePagesCollection[parseInt(n.toString(),10)].isInserted||this.tempOrganizePagesCollection[parseInt(n.toString(),10)].isCopied||this.tempOrganizePagesCollection[parseInt(n.toString(),10)].isImportedDoc?this.tempOrganizePagesCollection.splice(n,1):(this.tempOrganizePagesCollection[parseInt(n.toString(),10)].isDeleted=!0,this.tempOrganizePagesCollection[parseInt(n.toString(),10)].currentPageIndex=null),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(e){return o<e.currentPageIndex&&!e.isDeleted&&(e.currentPageIndex=e.currentPageIndex-1),e});!t.isNullOrUndefined(i.nextElementSibling);){var r=i.nextElementSibling,a=parseInt(r.getAttribute("data-page-order"),10);a-=1,r.setAttribute("data-page-order",a.toString()),i=r}}},i.prototype.undoDeletedPage=function(e,i,n,o){if(this.tempOrganizePagesCollection.some(function(e){return e.isDeleted})){var r=this.tempOrganizePagesCollection.find(function(e){return null===e.currentPageIndex&&e.isDeleted&&-1!==e.pageIndex&&e.pageIndex===i&&null===e.copiedPageIndex});r&&(r.currentPageIndex=e,r.rotateAngle=n)}for(this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(t){return t.currentPageIndex>=e&&!t.isDeleted?t.currentPageIndex+=1:t.currentPageIndex===e&&t.isDeleted&&(t.isDeleted=!1),t}),this.tempOrganizePagesCollection.sort(function(e,t){return e.currentPageIndex-t.currentPageIndex}),o&&o.setAttribute("data-page-order",(e+1).toString());o&&!t.isNullOrUndefined(o.nextElementSibling);){var a=o.nextElementSibling,s=parseInt(a.getAttribute("data-page-order"),10);s+=1,a.setAttribute("data-page-order",s.toString()),o=a}},i.prototype.insertRemovedPages=function(e,i,n){var o=0,r=this.tempOrganizePagesCollection.findIndex(function(e){return e.currentPageIndex===i});if(-1!==r)for(a=0;a<r;a++)this.tempOrganizePagesCollection[parseInt(a.toString(),10)].isDeleted&&o++;else for(var a=0;a<i;a++)this.tempOrganizePagesCollection[parseInt(a.toString(),10)].isDeleted&&o++;for(this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,i+o).concat(e,this.tempOrganizePagesCollection.slice(i+o)),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(e,t){return t>
10i+o&&!e.isDeleted&&(e.currentPageIndex+=1),e}),n&&n.setAttribute("data-page-order",(i+1).toString());n&&!t.isNullOrUndefined(n.nextElementSibling);){var s=n.nextElementSibling,l=parseInt(s.getAttribute("data-page-order"),10);l+=1,s.setAttribute("data-page-order",l.toString()),n=s}},i.prototype.clonedCollection=function(e){return JSON.parse(JSON.stringify(e))},i.prototype.updateTotalPageCount=function(){var e=document.querySelectorAll(".e-pv-organize-anchor-node").length,i=document.querySelector(".e-pv-organize-total-page-button");t.isNullOrUndefined(i)||(i.textContent=this.pdfViewer.localeObj.getConstant("Total")+" "+e.toString()+" "+this.pdfViewer.localeObj.getConstant("Pages"))},i.prototype.updatePageNumber=function(){var e=this;document.querySelectorAll(".e-pv-organize-anchor-node").forEach(function(i){var n=parseInt(i.getAttribute("data-page-order"),10),r=i.querySelector(".e-pv-tile-number");if(r){var a=e.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===n});a.isImportedDoc?(r.textContent=a.documentName,new o.Tooltip({content:t.initializeCSPTemplate(function(){return r.textContent},e),opensOn:"Hover",beforeOpen:e.onTooltipBeforeOpen.bind(e)}).appendTo(r)):r.textContent=(n+1).toString()}}),this.organizeWindowFocus()},i.prototype.insertTempPage=function(e,i,n){if(this.pdfViewer.pageOrganizerSettings.canInsert){var o=this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e}),r=void 0;r=0!==e?this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e-1}):o;var a=void 0,s=void 0;if(i){if(a=this.tempOrganizePagesCollection[parseInt(r.toString(),10)].pageIndex,o-1>=0&&!this.tempOrganizePagesCollection[parseInt((o-1).toString(),10)].isInserted&&(this.tempOrganizePagesCollection[parseInt((o-1).toString(),10)].hasEmptyPageAfter=!0),o<=this.tempOrganizePagesCollection.length-1&&!this.tempOrganizePagesCollection[parseInt(o.toString(),10)].isInserted&&(this.tempOrganizePagesCollection[parseInt(o.toString(),10)].hasEmptyPageBefore=!0),s=JSON.parse(JSON.stringify(this.tempOrganizePagesCollection[parseInt(r.toString(),10)].pageSize)),-1!==a&&!t.isNullOrUndefined(s.rotation)&&(90===this.getRotatedAngle(s.rotation.toString())||270===this.getRotatedAngle(s.rotation.toString()))){l=s.width;s.width=s.height,s.height=l}this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,o).concat([new Jo(e,-1,this.tempOrganizePagesCollection[parseInt(o.toString(),10)].pageIndex,!0,!1,!1,!1,!1,!1,this.tempOrganizePagesCollection[parseInt(r.toString(),10)].rotateAngle,s,!1,null,null,null)],this.tempOrganizePagesCollection.slice(o)),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(t,i){return i!==o&&t.currentPageIndex>=e&&null!=t.currentPageIndex&&(t.currentPageIndex=t.currentPageIndex+1),t}),n.setAttribute("data-page-order",(e+1).toString())}else{if(a=this.tempOrganizePagesCollection[parseInt(o.toString(),10)].pageIndex,o>=0&&!this.tempOrganizePagesCollection[parseInt(o.toString(),10)].isInserted&&(this.tempOrganizePagesCollection[parseInt(o.toString(),10)].hasEmptyPageAfter=!0),o+1<=this.tempOrganizePagesCollection.length-1&&!this.tempOrganizePagesCollection[parseInt((o+1).toString(),10)].isInserted&&(this.tempOrganizePagesCollection[parseInt((o+1).toString(),10)].hasEmptyPageBefore=!0),s=JSON.parse(JSON.stringify(this.tempOrganizePagesCollection[parseInt(o.toString(),10)].pageSize)),-1!==a&&!t.isNullOrUndefined(s.rotation)&&(90===this.getRotatedAngle(s.rotation.toString())||270===this.getRotatedAngle(s.rotation.toString()))){var l=s.width;s.width=s.height,s.height=l}this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,o+1).concat([new Jo(e+1,-1,this.tempOrganizePagesCollection[parseInt(o.toString(),10)].pageIndex,!0,!1,!1,!1,!1,!1,this.tempOrganizePagesCollection[parseInt(o.toString(),10)].rotateAngle,s,!1,null,null,null)],this.tempOrganizePagesCollection.slice(o+1)),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(t,i){return i!==o+1&&t.currentPageIndex>=e+1&&null!=t.currentPageIndex&&(t.currentPageIndex=t.currentPageIndex+1),t})}for(;!t.isNullOrUndefined(n.nextElementSibling);){var d=n.nextElementSibling,A=parseInt(d.getAttribute("data-page-order"),10);A+=1,d.setAttribute("data-page-order",A.toString()),n=d}}},i.prototype.copyPage=function(e,i){if(this.pdfViewer.pageOrganizerSettings.canCopy){var n=this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e}),o=void 0,r=void 0;if(-1!==n){if(o=this.tempOrganizePagesCollection[parseInt(n.toString(),10)].pageIndex,r=JSON.parse(JSON.stringify(this.tempOrganizePagesCollection[parseInt(n.toString(),10)].pageSize)),-1!==o&&!t.isNullOrUndefined(r.rotation)&&(90==this.getRotatedA
vendor: 7,760 bytes, line 10
10ngle(r.rotation.toString())||270===this.getRotatedAngle(r.rotation.toString()))){var a=r.width;r.width=r.height,r.height=a}for(-1===o&&this.tempOrganizePagesCollection[parseInt(n.toString(),10)].isCopied?this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,n+1).concat([new Jo(e+1,-1,this.tempOrganizePagesCollection[parseInt(n.toString(),10)].copiedPageIndex,!1,!1,!0,!1,!1,!1,this.tempOrganizePagesCollection[parseInt(n.toString(),10)].rotateAngle,r,!1,null,null,null)],this.tempOrganizePagesCollection.slice(n+1)):this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,n+1).concat([new Jo(e+1,-1,o,!1,!1,!0,!1,!1,!1,this.tempOrganizePagesCollection[parseInt(n.toString(),10)].rotateAngle,r,!1,null,null,null)],this.tempOrganizePagesCollection.slice(n+1)),this.tempOrganizePagesCollection[parseInt(n.toString(),10)].istargetCopied=!0,this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(e,t){return t>n+1&&null!=e.currentPageIndex&&(e.currentPageIndex=e.currentPageIndex+1),e});!t.isNullOrUndefined(i.nextElementSibling);){var s=i.nextElementSibling,l=parseInt(s.getAttribute("data-page-order"),10);l+=1,s.setAttribute("data-page-order",l.toString()),i=s}}}},i.prototype.importPage=function(e,i,n,o,r,a){if(this.pdfViewer.pageOrganizerSettings.canImport){var s=this.tempOrganizePagesCollection.findIndex(function(t){return t.currentPageIndex===e}),l=void 0,d=void 0;if(-1!==s)for(l=this.tempOrganizePagesCollection[parseInt(s.toString(),10)].pageIndex,d=JSON.parse(JSON.stringify(this.tempOrganizePagesCollection[parseInt(s.toString(),10)].pageSize)),r?(this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,s).concat([new Jo(e,-1,l,!1,!1,!1,!1,!1,!1,0,d,!0,o,n,a)],this.tempOrganizePagesCollection.slice(s)),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(t,i){return i!==s&&t.currentPageIndex>=e&&null!=t.currentPageIndex&&(t.currentPageIndex=t.currentPageIndex+1),t}),i.setAttribute("data-page-order",(e+1).toString())):(this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.slice(0,s+1).concat([new Jo(e+1,-1,l,!1,!1,!1,!1,!1,!1,0,d,!0,o,n,a)],this.tempOrganizePagesCollection.slice(s+1)),this.tempOrganizePagesCollection=this.tempOrganizePagesCollection.map(function(e,t){return t>s+1&&null!=e.currentPageIndex&&(e.currentPageIndex=e.currentPageIndex+1),e}));!t.isNullOrUndefined(i.nextElementSibling);){var A=i.nextElementSibling,h=parseInt(A.getAttribute("data-page-order"),10);h+=1,A.setAttribute("data-page-order",h.toString()),i=A}}},i.prototype.organizeWireEvent=function(){this.importDocInputElement&&this.importDocInputElement.addEventListener("change",this.importDocument.bind(this))},i.prototype.organizeUnWireEvent=function(){this.importDocInputElement&&this.importDocInputElement.removeEventListener("change",this.importDocument.bind(this))},i.prototype.importDocument=function(e){if(this.pdfViewer.pageOrganizerSettings.canImport){var i=this,n=e.target.files;if(null!==e.target.files[0]){var o=n[0];if(o){this.importedDocumentName=o.name;var r=new FileReader;r.readAsDataURL(o),r.onload=function(e){var n=e.currentTarget.result;i.loadImportDoc(n,null,!1),t.isNullOrUndefined(i.importDocInputElement)||(i.importDocInputElement.value="")}}}}},i.prototype.loadImportDoc=function(e,t,i){var n=this;if(this.pdfViewer.pageOrganizerSettings.canImport){var o=null;o=this;var r=!1;this.importedDocumentData=e;var a=this.pdfViewerBase.createGUID(),s=e.includes("pdf;base64,"),l=e;e=this.pdfViewerBase.checkDocumentData(e,!1);var d=this.pdfViewerBase.constructJsonObject(e,t,s);this.pdfViewer.serverActionSettings&&(this.pdfViewerBase.loadRequestHandler=new Pi(this.pdfViewer),this.pdfViewerBase.loadRequestHandler.url=this.pdfViewer.serviceUrl+"/"+this.pdfViewer.serverActionSettings.validatePassword,this.pdfViewerBase.loadRequestHandler.responseType="json",this.pdfViewerBase.loadRequestHandler.mode=!0,d.action="ValidatePassword",d.elementId=this.pdfViewer.element.id,d.isFileName=!1,this.pdfViewerBase.clientSideRendering?this.pdfViewerBase.getPdfByteArray(l).then(function(o){var s=n.pdfViewer.pdfRendererModule.loadImportDocument(o,a,t,d);if(s){if("object"!=typeof s)try{s=JSON.parse(s)}catch(e){n.pdfViewerBase.onControlError(500,s,n.pdfViewer.serverActionSettings.load),s=null}if(s){for(;"object"!=typeof s;)if(s=JSON.parse(s),"number"==typeof parseInt(s,10)&&!isNaN(parseInt(s,10))){s=parseInt(s,10);break}(s.uniqueId===a||"number"==typeof parseInt(s,10)&&!isNaN(parseInt(s,10)))&&(4===s?(n.pdfViewerBase.isImportDoc=!0,r=!0,n.pdfViewerBase.renderPasswordPopup(e,t,n.pdfViewerBase.isImportDoc)):3===s&&(n.pdfViewerBase.isImportDoc=!0,n.pdfViewerBase.renderCorruptPopup(n.pdfViewerBase.isImportDoc)))}i&&4!==s&&(n.pdfViewerBase.passwordDialogReset(),n.pdfViewerBase.passwordPopup&&n.pdfViewerBase.passwordPopup.hide()),(!r||i&&4!==s)&&3!==s&&n.importDocuments(t,n.importedDocumentName,e)}}):(this.pdfViewerBase.loadRequestHandler.send(d),this.pdfViewerBase.loadRequestHandler.onSuccess=function(n){var s=n.data;if(s){if("object"!=typeof s)try{s=JSON.parse(s)}catch(e){o.pdfViewerBase.onControlError(500,s,o.pdfViewer.serverActionSettings.load),s=null}if(s){for(;"object"!=typeof s;)if(s=JSON.parse(s),"number"==typeof parseInt(s,10)&&!isNaN(parseInt(s,10))){s=parseInt(s,10);break}(s.uniqueId===a||"number"==typeof parseInt(s,10)&&!isNaN(parseInt(s,10)))&&(4===s?(o.pdfViewerBase.isImportDoc=!0,r=!0,o.pdfViewerBase.renderPasswordPopup(e,t,o.pdfViewerBase.isImportDoc)):3===s&&(o.pdfViewerBase.isImportDoc=!0,o.pdfViewerBase.renderCorruptPopup(o.pdfViewerBase.isImportDoc)))}i&&4!==s&&(o.pdfViewerBase.passwordDialogReset(),o.pdfViewerBase.passwordPopup&&o.pdfViewerBase.passwordPopup.hide()),(!r||i&&4!==s)&&3!==s&&o.importDocuments(t,o.importedDocumentName,e)}}))}},i.prototype.importDocuments=function(e,t,i){if(this.pdfViewer.pageOrganizerSettings.canImport){var n=this;if(1===this.tileAreaDiv.querySelectorAll(".e-pv-organize-node-selection-ring").length)for(var o=this,r=0;r<n.tileAreaDiv.childElementCount;r++)!function(r){var a=n.tileAreaDiv.childNodes[parseInt(r.toString(),10)];if(a instanceof HTMLElement&&a.classList.contains("e-pv-organize-node-selection-ring")){var s=a.id.split("anchor_page_")[a.id.split("anchor_page_").length-1],l=parseInt(a.getAttribute("data-page-order"),10),d=s.split("_"),A=0,h=parseInt(d[parseInt((d.length-1).toString(),10)],10);d.length>1&&(h=parseInt(d[parseInt((d.length-2).toString(),10)],10)),A=o.getNextSubIndex(a.parentElement,h),o.importPage(l,a,e,t,!1,i),o.tileImageRender(h,A,l+1,a,!0,!1,!1,!0,t);var p=[];p.push(o.clonedCollection(o.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===l+1}))),o.addOrganizeAction(p,"Import Pages",[],[],null,!1)}}(r);else{var a=n.tileAreaDiv.childNodes[0],s=a.id.split("anchor_page_")[a.id.split("anchor_page_").length-1],l=parseInt(a.getAttribute("data-page-order"),10),d=s.split("_"),A=0,h=parseInt(d[parseInt((d.length-1).toString(),10)],10);d.length>1&&(h=parseInt(d[parseInt((d.length-2).toString(),10)],10)),A=this.getNextSubIndex(a.parentElement,h),this.importPage(l,a,e,t,!0,i),this.tileImageRender(h,A,l,a,!0,!0,!1,!0,t);var p=[];p.push(this.clonedCollection(this.tempOrganizePagesCollection.find(function(e){return e.currentPageIndex===l}))),this.addOrganizeAction(p,"Import Pages",[],[],null,!1)}this.updatePageNumber(),this.updateTotalPageCount(),this.enableDisableToolbarItems(),this.disableTileCopyRotateButton(),this.disableTileDeleteButton()}},i.prototype.updateOrganizePageCollection=function(){this.organizePagesCollection=JSON.parse(JSON.stringify(this.tempOrganizePagesCollection))},i.prototype.applyElementStyles=function(e,t){if(e){var i=document.getElementById(this.pdfViewer.element.i
10d+"_pageCanvas_"+t),n=document.getElementById(this.pdfViewer.element.id+"_oldCanvas_"+t);if(i&&i.offsetLeft>0){var o=i.offsetLeft,r=i.offsetTop;e.style.marginLeft=o+"px",e.style.marginRight=o+"px",e.style.top=r+"px"}else if(n&&n.offsetLeft>0){var o=n.offsetLeft,r=n.offsetTop;e.style.marginLeft=o+"px",e.style.marginRight=o+"px",e.style.top=r+"px"}else e.style.marginLeft="auto",e.style.marginRight="auto",e.style.top="auto"}},i.prototype.onSaveasClicked=function(){var e=this;JSON.stringify(this.tempOrganizePagesCollection)!==JSON.stringify(this.organizePagesCollection)&&(this.updateOrganizePageCollection(),this.isDocumentModified=!0,this.pdfViewerBase.updateDocumentEditedProperty(!0));var i,n=this.pdfViewer.fileName,o=!1,r=JSON.parse(JSON.stringify(this.organizePagesCollection));this.pdfViewer.saveAsBlob().then(function(a){i=a,(e.pdfViewerBase.clientSideRendering?e.blobToByteArray(i):e.blobToBase64(i)).then(function(i){t.isNullOrUndefined(i)||""===i||(o=e.pdfViewer.firePageOrganizerSaveAsEventArgs(n,i))&&(e.pdfViewerBase.fileDownload(i,e.pdfViewerBase,!0),e.organizePagesCollection=JSON.parse(JSON.stringify(r)))})})},i.prototype.rotateAllPages=function(e){if(this.pdfViewer.pageOrganizerSettings.canRotate){var t=e,i=this.pdfViewer.pageCount,n=Array.from({length:i},function(e,t){return t});this.processRotation(n,t)}},i.prototype.rotatePages=function(e,t){if(this.pdfViewer.pageOrganizerSettings.canRotate)if(Array.isArray(e))if(void 0!==t&&"number"==typeof t){var i=e,n=t;this.processRotation(i,n)}else for(var o=0,r=e;o<r.length;o++){var a=r[o];this.processRotation([a.pageIndex],a.rotationAngle)}else if("number"==typeof e&&"number"==typeof t){var s=e,l=t,n=arguments[2];this.processRotation(this.generateRange(s,l),n)}},i.prototype.processRotation=function(e,t){if(this.pdfViewer.pageOrganizerSettings.canRotate)for(var i=this,n=0,o=e;n<o.length;n++)!function(e){var n=i.pdfRotateAngle(t),o=i.organizePagesCollection.findIndex(function(t){return t.pageIndex===e});-1!==o&&(i.organizePagesCollection[parseInt(o.toString(),10)].rotateAngle=(i.organizePagesCollection[parseInt(o.toString(),10)].rotateAngle+n+360)%360)}(o[n])},i.prototype.generateRange=function(e,t){return Array.from({length:t-e+1},function(t,i){return e+i})},i.prototype.pdfRotateAngle=function(t){var i=0;return t===e.PdfPageRotateAngle.RotateAngle0?i=0:t===e.PdfPageRotateAngle.RotateAngle90?i=90:t===e.PdfPageRotateAngle.RotateAngle180?i=180:t===e.PdfPageRotateAngle.RotateAngle270?i=270:t===e.PdfPageRotateAngle.RotateAngle360&&(i=0),i},i.prototype.createTooltip=function(e,i){null!==i&&new o.Tooltip({content:t.initializeCSPTemplate(function(){return i}),opensOn:"Hover",beforeOpen:this.onTooltipBeforeOpen.bind(this)}).appendTo(e)},i.prototype.updateOrganizePageImageSize=function(e,i){(t.isNullOrUndefined(i)||i!==e)&&(this.pdfViewerBase.clientSideRendering&&this.pdfViewerBase.pdfViewerRunner.removePreviewImageTasks(e),this.lastRequestedPageIndex=0,this.dataDetails=[],this.isPageZoomChanged=!0,this.isOrganizeWindowOpen?(this.showOrganizeLoadingIndicator(!0),this.modifyThumbnailContainer(),this.isPageZoomPopupOpen&&this.updatePageZoomPopup()):(t.isNullOrUndefined(this.pdfViewerBase.navigationPane)||this.pdfViewerBase.navigationPane.enableOrganizeButton(!1),t.isNullOrUndefined(this.toolbar)||this.pdfViewer.toolbar.enableToolbarItem(["OrganizePagesTool"],!1),this.isOrganizeDialogRendered()&&this.modifyThumbnailContainer()),this.isAllImagesReceived=!1,this.createRequestForPreview())},i.prototype.rotateClockwise=function(e){if(this.pdfViewer.pageOrganizerSettings.canRotate)for(var t=this,i=0,n=e;i<n.length;i++)!function(e){var i=t.organizePagesCollection.findIndex(function(t){return t.pageIndex===e});-1!==i&&(t.organizePagesCollection[parseInt(i.toString(),10)].rotateAngle=(t.organizePagesCollection[parseInt(i.toString(),10)].rotateAngle+90+360)%360)}(n[i])},i.prototype.rotateCounterclockwise=function(e){if(this.pdfViewer.pageOrganizerSettings.canRotate)for(var t=this,i=0,n=e;i<n.length;i++)!function(e){var i=t.organizePagesCollection.findIndex(function(t){return t.pageIndex===e});-1!==i&&(t.organizePagesCollection[parseInt(i.toString(),10)].rotateAngle=(t.organizePagesCollection[parseInt(i.toString(),10)].rotateAngle-90+360)%360)}(n[i])},i.prototype.openPageOrganizer=function(){t.isNullOrUndefined(this.pdfViewer.pageOrganizer)?this.pdfViewerBase.getModuleWarningMessage("PageOrganizer"):this.isAllImagesReceived&&(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode?this.createOrganizeWindow():this.createOrganizeWindowForMobile())},i.prototype.closePageOrganizer=function(){t.isNullOrUndefined(this.pdfViewer.pageOrganizer)?this.pdfViewerBase.getModuleWarningMessage("PageOrganizer"):t.isNullOrUndefined(this.organizeDialog)||this.organizeDialog.hide()},i.prototype.handleImageSizeBoundsChange=function(e){t.isNullOrUndefined(e.imageZoomMin)||(this.pdfViewer.pageOrganizerSettings.imageZoomMin=e.imageZoomMin),t.isNullOrUndefined(e.imageZoomMax)||(this.pdfViewer.pageOrganizerSettings.imageZoomMax=e.imageZoomMax),t.isNullOrUndefined(this.pageZoomSlider)||(this.pageZoomSlider.min=this.getImageZoomMin(),this.pageZoomSlider.max=this.getImageZoomMax())},i.prototype.handleImageResizerVisibility=function(e){var i=this;this.isOrganizeDialogRendered()&&(t.isNullOrUndefined(e)||!e?-1!==this.toolbar.items.findIndex(function(e){return e.id===i.pdfViewer.element.i
vendor: 6,928 bytes, line 10
10d+"_page_zoom"})&&(t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode?this.toolbar.hideItem(this.pdfViewerBase.getElement("_page_zoom").parentElement,!0):this.toolbar.removeItems(this.pdfViewerBase.getElement("_page_zoom").parentElement),t.isNullOrUndefined(this.pageZoomSlider)||(this.pageZoomSliderUnwireEvents(),this.pageZoomSlider.destroy(),this.pageZoomSlider=null),t.isNullOrUndefined(this.pageZoomDropDown)||(this.pageZoomUnWireEvents(),this.pageZoomDropDown.destroy(),this.pageZoomDropDown=null),t.isNullOrUndefined(this.pageZoomIncreaseButton)||(this.pageZoomIncreaseButton=null),t.isNullOrUndefined(this.pageZoomDecreaseButton)||(this.pageZoomDecreaseButton=null),this.toolbar.element.children[0].children[1].removeAttribute("style")):(-1===this.toolbar.items.findIndex(function(e){return e.id===i.pdfViewer.element.id+"_page_zoom"})||t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode)&&(this.addPageZoomDropDown(!1),this.createPageZoomDropDown()),this.isOrganizeWindowOpen&&t.Browser.isDevice&&!this.pdfViewer.enableDesktopMode&&e&&(this.toolbar.refreshOverflow(),this.handlePageZoomPopupMobile()))},i.prototype.switchPageOrganizer=function(){t.isNullOrUndefined(this.pdfViewer.pageOrganizer)||(!t.isNullOrUndefined(this.organizeDialog)&&this.organizeDialog.visible?this.closePageOrganizer():this.openPageOrganizer())},i.prototype.getModuleName=function(){return"PageOrganizer"},i.prototype.getImageZoomFactor=function(e){var i=this.getImageZoomMin();if(!this.pdfViewer.enablePageOrganizer||t.isNullOrUndefined(this.pdfViewer.pageOrganizerSettings))return i;var n=this.getImageZoomValue();if(t.isNullOrUndefined(n))return i;var o=this.getImageZoomMax();if(!t.Browser.isDevice||this.pdfViewer.enableDesktopMode)return this.getImageZoomValue();var r=this.pdfViewer.element.clientWidth;e.style.position="absolute",document.body.appendChild(e);var a=window.getComputedStyle(e),s=parseFloat(a.marginLeft)+parseFloat(a.marginRight);if(document.body.removeChild(e),140*o<=r-s)return this.getImageZoomValue();var l=((r-s)/140-i)/(o-i);return n<i?i:n>o?i+(o-i)*l:i+(n-i)*l},i.prototype.getImageZoomValue=function(e,i){var n=this.getImageZoomMin();if(!this.pdfViewer.enablePageOrganizer||t.isNullOrUndefined(this.pdfViewer.pageOrganizerSettings))return n;if(t.isNullOrUndefined(i)&&(i=this.pdfViewer.pageOrganizerSettings.imageZoom,t.isNullOrUndefined(i)))return n;var o=this.getImageZoomMax();return i<n?n:i>o?o:e?Math.round(i):i},i.prototype.destroyDialogWindow=function(){this.removeEventListeners(),this.isOrganizeWindowOpen=!1,t.isNullOrUndefined(this.pageZoomSlider)||(this.pageZoomSliderUnwireEvents(),this.pageZoomSlider.destroy(),this.pageZoomSlider=null),t.isNullOrUndefined(this.pageZoomDropDown)||(this.pageZoomUnWireEvents(),this.pageZoomDropDown.destroy(),this.pageZoomDropDown=null),t.isNullOrUndefined(this.organizeDialog)||(this.organizeUnWireEvent(),this.organizeDialog.destroy(),this.organizeDialog=null);var e=this.pdfViewerBase.getElement("_organize_window");t.isNullOrUndefined(e)||e.parentElement.removeChild(e);var i=this.pdfViewerBase.getElement("_page_zoom-popup");t.isNullOrUndefined(i)||i.parentElement.removeChild(i)},i.prototype.pageZoomWireEvents=function(){t.isNullOrUndefined(this.pageZoomDropDown)||(this.boundPageZoomDropDownOpen=this.pageZoomDropDownOpen.bind(this),this.boundPageZoomDropDownClose=this.pageZoomDropDownClose.bind(this),this.pageZoomDropDown.open=this.boundPageZoomDropDownOpen,this.pageZoomDropDown.close=this.boundPageZoomDropDownClose),t.isNullOrUndefined(this.pageZoomDecreaseButton)||(this.boundDecreasePageZoom=this.decreasePageZoom.bind(this),this.pageZoomDecreaseButton.addEventListener("click",this.boundDecreasePageZoom)),t.isNullOrUndefined(this.pageZoomIncreaseButton)||(this.boundIncreasePageZoom=this.increasePageZoom.bind(this),this.pageZoomIncreaseButton.addEventListener("click",this.boundIncreasePageZoom))},i.prototype.increasePageZoom=function(){this.pageZoomSlider.value+this.pageZoomSliderStep<=this.getImageZoomMax()?this.handlePageZoomChange(this.pageZoomSlider.value+this.pageZoomSliderStep,this.pageZoomSlider.value):this.pageZoomSlider.value!==this.getImageZoomMax()&&this.handlePageZoomChange(this.getImageZoomMax(),this.pageZoomSlider.value)},i.prototype.decreasePageZoom=function(){this.pageZoomSlider.value-this.pageZoomSliderStep>=this.getImageZoomMin()?this.handlePageZoomChange(this.pageZoomSlider.value-this.pageZoomSliderStep,this.pageZoomSlider.value):this.pageZoomSlider.value!==this.getImageZoomMin()&&this.handlePageZoomChange(this.getImageZoomMin(),this.pageZoomSlider.value)},i.prototype.handlePageZoomChange=function(e,t){if(this.currentPageZoomSliderValue=e,this.pdfViewer.pageOrganizerSettings.imageZoom=e,this.updatePageZoomPopup(),this.previouslyRequestedImageZoom<Math.round(e))this.previouslyRequestedImageZoom=Math.round(e),this.updateOrganizePageImageSize(Math.round(e)),this.previousImageZoom=t;else{for(var i=this.tileAreaDiv.children,n=this.getImageZoomFactor(i[0].cloneNode(!0)),o=0;o<i.length;o++){var r=i[o];r.style.width=140*n+"px",r.style.height=140*n+"px"}"block"!==this.pdfViewerBase.getElement("_organizeLoadingIndicator").style.display&&(this.currentImageZoom=e,this.previousImageZoom=t,this.currentImageZoom!==this.previousImageZoom&&this.pdfViewer.firePageOrganizerZoomChanged(this.previousImageZoom,this.currentImageZoom))}this.handlePageZoomButtonsVisibility(e)},i.prototype.pageZoomUnWireEvents=function(){t.isNullOrUndefined(this.pageZoomDropDown)||(this.pageZoomDropDown.removeEventListener("open",this.boundPageZoomDropDownOpen),this.pageZoomDropDown.removeEventListener("close",this.boundPageZoomDropDownClose)),t.isNullOrUndefined(this.pageZoomDecreaseButton)||this.pageZoomDecreaseButton.removeEventListener("click",this.boundDecreasePageZoom),t.isNullOrUndefined(this.pageZoomIncreaseButton)||this.pageZoomIncreaseButton.removeEventListener("click",this.boundIncreasePageZoom)},i.prototype.pageZoomSliderWireEvents=function(){t.isNullOrUndefined(this.pageZoomSlider)||(this.boundPageZoomChange=this.pageZoomChange.bind(this),this.pageZoomSlider.change=this.boundPageZoomChange,this.pageZoomSlider.changed=this.boundPageZoomChange)},i.prototype.pageZoomSliderUnwireEvents=function(){t.isNullOrUndefined(this.pageZoomSlider)||(this.pageZoomSlider.removeEventListener("change",this.boundPageZoomChange),this.pageZoomSlider.removeEventListener("changed",this.boundPageZoomChange))},i.prototype.clear=function(){t.isNullOrUndefined(this.pdfViewerBase.navigationPane)||this.pdfViewerBase.navigationPane.enableOrganizeButton(!1),t.isNullOrUndefined(this.pdfViewer.toolbar)||this.pdfViewer.toolbar.enableToolbarItem(["OrganizePagesTool"],!1),this.destroyDialogWindow(),this.organizePagesCollection=[],this.tempOrganizePagesCollection=[],this.undoOrganizeCollection=[],this.redoOrganizeCollection=[],this.isDocumentModified=!1,this.pdfViewerBase.isImportDoc=!1,this.mobileContextMenu=[],this.dataDetail
10s=[],this.isInitialLoading=!0,this.isPageZoomPopupOpen=!1,this.lastRequestedPageIndex=0,this.previouslyRequestedImageZoom=Math.round(this.currentPageZoomSliderValue)},i.prototype.destroy=function(){return!0},i}();!function(e){e[e.RotateAngle0=1]="RotateAngle0",e[e.RotateAngle90=2]="RotateAngle90",e[e.RotateAngle180=3]="RotateAngle180",e[e.RotateAngle270=4]="RotateAngle270",e[e.RotateAngle360=1]="RotateAngle360"}(e.PdfPageRotateAngle||(e.PdfPageRotateAngle={}));var Go=function(){function e(e,t){this.pageIndex=e,this.rotationAngle=t}return e}(),Jo=function(){function e(e,t,i,n,o,r,a,s,l,d,A,h,p,c,g){this.currentPageIndex=e,this.pageIndex=t,this.copiedPageIndex=i,this.isInserted=n,this.isDeleted=o,this.isCopied=r,this.istargetCopied=a,this.hasEmptyPageAfter=s,this.hasEmptyPageBefore=l,this.rotateAngle=d,this.pageSize=A,this.isImportedDoc=h,this.documentName=p,this.password=c,this.documentData=g}return e}();return _n.Inject(Lt,Xn,Ri,Ui,zi,Li,io,qn,to,Vt,ro,oo,Yo),e.AccessibilityTags=ao,e.ActiveElements=It,e.AjaxHandler=Pi,e.AjaxRequestSettings=Zi,e.AnnotBounds=Fo,e.AnnotBoundsBase=Qt,e.AnnotBoundsRect=xt,e.AnnotColor=To,e.AnnotFontBase=Ft,e.AnnotPoint=Mo,e.AnnotRectBase=Mt,e.Annotation=Vt,e.AnnotationBaseSettings=Dt,e.AnnotationRenderer=Co,e.AnnotationSelectorSettings=bn,e.AnnotationSettings=Qn,e.AnnotationToolbar=Hi,e.AnnotationToolbarSettings=Xi,e.Annotations=uo,e.AnnotationsBase=Pt,e.AnnotationsInternal=kt,e.AreaSettings=Cn,e.ArrowSettings=An,e.BlazorUiAdaptor=Ei,e.BookmarkBase=Lo,e.BookmarkDestination=Uo,e.BookmarkStyles=Oo,e.BookmarkView=Xn,e.CalculateLeaderPoints=Z,e.CheckBoxFieldSettings=On,e.CircleSettings=pn,e.CommandManager=Kn,e.ConnectTool=mt,e.ContextMenu=ki,e.ContextMenuSettings=Rn,e.CustomStamp=_i,e.CustomStampSettings=fn,e.CustomToolbarItem=Wi,e.DistanceSettings=mn,e.DocumentTextCollectionSettings=Mn,e.Drawing=At,e.DropdownFieldSettings=Hn,e.FontBase=ko,e.FormDesigner=ro,e.FormDesignerToolbar=Oi,e.FormDesignerToolbarSettings=qi,e.FormField=Nn,e.FormFields=oo,e.FormFieldsBase=mo,e.FreeTextAnnotation=vt,e.FreeTextAnnotationBase=So,e.FreeTextSettings=vn,e.HandWrittenSignatureSettings=xn,e.HighlightSettings=ln,e.IBounds=Tt,e.ImageStructureBase=zo,e.InitialFieldSettings=en,e.InkAnnotation=jt,e.InkAnnotationSettings=yn,e.InkDrawingTool=ft,e.InkSignatureAnnotation=yo,e.InputElement=bt,e.Item=Gn,e.KeyGesture=Jn,e.KeyboardCommand=jn,e.LineSettings=dn,e.LineTool=St,e.LinkAnnotation=Lt,e.ListBoxFieldSettings=Yn,e.Magnification=Ri,e.MeasureAnnotation=Ht,e.MeasureShapeAnnotationBase=Eo,e.MeasurementScaleRatio=zt,e.MeasurementSettings=En,e.MoveTool=gt,e.Navigation=Li,e.NavigationPane=Kt,e.NodeDrawingTool=Ct,e.OrganizeDetails=Jo,e.PageInfo=Dn,e.PageOrganizer=Yo,e.PageOrganizerSettings=Wn,e.PageRenderer=lo,e.PageRotation=Go,e.PasswordFieldSettings=Un,e.Path=Po,e.PdfAnnotationBase=tt,e.PdfBounds=$e,e.PdfFont=et,e.PdfFormFieldBase=it,e.PdfLayer=Qo,e.PdfRenderedFields=wo,e.PdfRenderer=ho,e.PdfViewer=_n,e.PdfViewerBase=Fi,e.PdfiumRunner=Ze,e.PerimeterSettings=wn,e.PointBase=Bo,e.PolygonDrawingTool=Bt,e.PolygonSettings=gn,e.PopupAnnotationBase=Do,e.Print=io,e.RadioButtonFieldSettings=zn,e.RadiusSettings=Bn,e.RectBounds=so,e.RectangleBase=No,e.RectangleBounds=Tn,e.RectangleSettings=hn,e.ResizeTool=wt,e.RotateTool=yt,e.ScrollSettings=Pn,e.SearchResult=Zn,e.SelectTool=ct,e.Selector=at,e.ServerActionSettings=on,e.ShapeAnnotation=Yt,e.ShapeAnnotationBase=Io,e.ShapeLabelSettings=cn,e.Signature=Ni,e.SignatureAnnotationBase=vo,e.SignatureBase=Ro,e.SignatureDialogSettings=nn,e.SignatureFieldSettings=$i,e.SignatureIndicatorSettings=tn,e.SizeBase=go,e.Spinner=ne,e.SquigglySettings=an,e.StampAnnotation=Gt,e.StampAnnotationBase=Ao,e.StampSettings=un,e.StampTool=ut,e.StickyNotesAnnotation=Jt,e.StickyNotesSettings=In,e.StrikethroughSettings=rn,e.TextDataSettings=Fn,e.TextFieldSettings=Ln,e.TextLayer=Ti,e.TextMarkupAnnotation=Ut,e.TextMarkupAnnotationBase=xo,e.TextSearch=to,e.TextSearchColorSettings=Vn,e.TextSelection=qn,e.ThumbnailView=Ui,e.TileRenderingSettings=kn,e.ToolBase=pt,e.Toolbar=zi,e.ToolbarSettings=Ki,e.UnderlineSettings=sn,e.VolumeSettings=Sn,e.ZOrderPageTable=nt,e.clipDecorator=M,e.clipDecorators=Q,e.cloneArray=S,e.cloneObject=B,e.createSpinner=oe,e.createSvg=ie,e.findActiveElement=j,e.findActivePage=ee,e.findElementUnderMouse=_,e.findNearestPoint=G,e.findObjectUnderMouse=W,e.findObjects=$,e.findObjectsUnderMouse=K,e.findPerimeterLength=m,e.findPointsLength=f,e.findTargetShapeElement=q,e.getArialFontData=_e,e.getBaseShapeAttributes=w,e.getConnectorPoints=E,e.getDecoratorElement=x,e.getDecoratorShape=J,e.getFunction=C,e.getInternalProperties=y,e.getPolygonPath=U,e.getSegmentElement=V,e.getSegmentPath=v,e.hideSpinner=Je,e.initDistanceLabel=F,e.initLeader=H,e.initLeaders=z,e.initPerimeterLabel=P,e.insertObject=X,e.isLeader=I,e.isLineShapes=g,e.isPointOverConnector=Y,e.removePerimeterLabel=R,e.renderAdornerLayer=te,e.setElementStype=u,e.setSpinner=je,e.showSpinner=Ye,e.textElement=O,e.updateCalibrateLabel=L,e.updateDecoratorElement=D,e.updateDistanceLabel=T,e.updatePerimeterLabel=N,e.updateRadiusLabel=k,e.updateSegmentElement=b,e}({},ej.base,ej.drawings,ej.inputs,ej.popups,ej.splitbuttons,ej.inplaceeditor,ej.navigations,ej.notifications,ej.pdf,ej.buttons,ej.dropdowns,ej.data,ej.lists),this.ejs=ej;
11//# sourceMappingURL=ej2-pdfviewer.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.