2716 lines
1.3 MiB
Plaintext
2716 lines
1.3 MiB
Plaintext
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
(function(){function fb(ia){var ba=0;return function(){return ba<ia.length?{done:!1,value:ia[ba++]}:{done:!0}}}var jb="function"==typeof Object.defineProperties?Object.defineProperty:function(ia,ba,e){ia!=Array.prototype&&ia!=Object.prototype&&(ia[ba]=e.value)},nb="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function rb(){rb=function(){};nb.Symbol||(nb.Symbol=Ab)}var Ab=function(){var ia=0;return function(ba){return"jscomp_symbol_"+(ba||"")+ia++}}();
|
|
function Mb(){rb();var ia=nb.Symbol.iterator;ia||(ia=nb.Symbol.iterator=nb.Symbol("iterator"));"function"!=typeof Array.prototype[ia]&&jb(Array.prototype,ia,{configurable:!0,writable:!0,value:function(){return wc(fb(this))}});Mb=function(){}}function wc(ia){Mb();ia={next:ia};ia[nb.Symbol.iterator]=function(){return this};return ia}function xc(ia){var ba="undefined"!=typeof Symbol&&Symbol.iterator&&ia[Symbol.iterator];return ba?ba.call(ia):{next:fb(ia)}}
|
|
function Tc(ia){for(var ba,e=[];!(ba=ia.next()).done;)e.push(ba.value);return e}function Md(ia){return ia instanceof Array?ia:Tc(xc(ia))}function Nd(ia,ba){if(ba){var e=nb;ia=ia.split(".");for(var ea=0;ea<ia.length-1;ea++){var x=ia[ea];x in e||(e[x]={});e=e[x]}ia=ia[ia.length-1];ea=e[ia];ba=ba(ea);ba!=ea&&null!=ba&&jb(e,ia,{configurable:!0,writable:!0,value:ba})}}
|
|
Nd("Promise",function(ia){function ba(e){this.state_=0;this.PL=void 0;this.Bt=[];var da=this.JH();try{e(da.resolve,da.reject)}catch(aa){da.reject(aa)}}function e(){this.yn=null}function ea(e){return e instanceof ba?e:new ba(function(da){da(e)})}if(ia)return ia;e.prototype.TQ=function(e){null==this.yn&&(this.yn=[],this.a5());this.yn.push(e)};e.prototype.a5=function(){var e=this;this.UQ(function(){e.b$()})};var x=nb.setTimeout;e.prototype.UQ=function(e){x(e,0)};e.prototype.b$=function(){for(;this.yn&&
|
|
this.yn.length;){var e=this.yn;this.yn=[];for(var da=0;da<e.length;++da){var aa=e[da];e[da]=null;try{aa()}catch(w){this.b5(w)}}}this.yn=null};e.prototype.b5=function(e){this.UQ(function(){throw e;})};ba.prototype.JH=function(){function e(e){return function(w){aa||(aa=!0,e.call(da,w))}}var da=this,aa=!1;return{resolve:e(this.mia),reject:e(this.HL)}};ba.prototype.mia=function(e){if(e===this)this.HL(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof ba)this.Nka(e);else{a:switch(typeof e){case "object":var da=
|
|
null!=e;break a;case "function":da=!0;break a;default:da=!1}da?this.lia(e):this.QS(e)}};ba.prototype.lia=function(e){var da=void 0;try{da=e.then}catch(aa){this.HL(aa);return}"function"==typeof da?this.Oka(da,e):this.QS(e)};ba.prototype.HL=function(e){this.bZ(2,e)};ba.prototype.QS=function(e){this.bZ(1,e)};ba.prototype.bZ=function(e,da){if(0!=this.state_)throw Error("Cannot settle("+e+", "+da+"): Promise already settled in state"+this.state_);this.state_=e;this.PL=da;this.c$()};ba.prototype.c$=function(){if(null!=
|
|
this.Bt){for(var e=0;e<this.Bt.length;++e)ha.TQ(this.Bt[e]);this.Bt=null}};var ha=new e;ba.prototype.Nka=function(e){var da=this.JH();e.aB(da.resolve,da.reject)};ba.prototype.Oka=function(e,da){var aa=this.JH();try{e.call(da,aa.resolve,aa.reject)}catch(w){aa.reject(w)}};ba.prototype.then=function(e,da){function aa(h,f){return"function"==typeof h?function(f){try{w(h(f))}catch(z){y(z)}}:f}var w,y,n=new ba(function(h,f){w=h;y=f});this.aB(aa(e,w),aa(da,y));return n};ba.prototype.catch=function(e){return this.then(void 0,
|
|
e)};ba.prototype.aB=function(e,da){function aa(){switch(w.state_){case 1:e(w.PL);break;case 2:da(w.PL);break;default:throw Error("Unexpected state: "+w.state_);}}var w=this;null==this.Bt?ha.TQ(aa):this.Bt.push(aa)};ba.resolve=ea;ba.reject=function(e){return new ba(function(da,aa){aa(e)})};ba.race=function(e){return new ba(function(da,aa){for(var w=xc(e),y=w.next();!y.done;y=w.next())ea(y.value).aB(da,aa)})};ba.all=function(e){var da=xc(e),aa=da.next();return aa.done?ea([]):new ba(function(e,y){function n(r){return function(n){h[r]=
|
|
n;f--;0==f&&e(h)}}var h=[],f=0;do h.push(void 0),f++,ea(aa.value).aB(n(h.length-1),y),aa=da.next();while(!aa.done)})};return ba});var Od;if("function"==typeof Object.setPrototypeOf)Od=Object.setPrototypeOf;else{var uf;a:{var vf={a:!0},wf={};try{wf.__proto__=vf;uf=wf.a;break a}catch(ia){}uf=!1}Od=uf?function(ia,ba){ia.__proto__=ba;if(ia.__proto__!==ba)throw new TypeError(ia+" is not extensible");return ia}:null}var xf=Od;
|
|
function yf(){this.hx=!1;this.Ro=null;this.wf=void 0;this.La=1;this.DS=this.Hv=0;this.pp=null}function zf(ia){if(ia.hx)throw new TypeError("Generator is already running");ia.hx=!0}yf.prototype.wx=function(ia){this.wf=ia};yf.prototype.Iy=function(ia){this.pp={wS:ia,sda:!0};this.La=this.Hv||this.DS};yf.prototype.return=function(ia){this.pp={return:ia};this.La=this.DS};function Af(ia,ba,e){ia.La=e;return{value:ba}}function rg(ia,ba){ia.La=ba;ia.Hv=0}
|
|
function sg(ia){ia.Hv=0;var ba=ia.pp.wS;ia.pp=null;return ba}yf.prototype.forIn=function(ia){return new tg(ia)};function tg(ia){this.cX=[];for(var ba in ia)this.cX.push(ba);this.cX.reverse()}function ug(ia){this.fc=new yf;this.Ega=ia}ug.prototype.wx=function(ia){zf(this.fc);if(this.fc.Ro)return vg(this,this.fc.Ro.next,ia,this.fc.wx);this.fc.wx(ia);return wg(this)};
|
|
function xg(ia,ba){zf(ia.fc);var e=ia.fc.Ro;if(e)return vg(ia,"return"in e?e["return"]:function(e){return{value:e,done:!0}},ba,ia.fc.return);ia.fc.return(ba);return wg(ia)}ug.prototype.Iy=function(ia){zf(this.fc);if(this.fc.Ro)return vg(this,this.fc.Ro["throw"],ia,this.fc.wx);this.fc.Iy(ia);return wg(this)};
|
|
function vg(ia,ba,e,ea){try{var x=ba.call(ia.fc.Ro,e);if(!(x instanceof Object))throw new TypeError("Iterator result "+x+" is not an object");if(!x.done)return ia.fc.hx=!1,x;var ha=x.value}catch(ca){return ia.fc.Ro=null,ia.fc.Iy(ca),wg(ia)}ia.fc.Ro=null;ea.call(ia.fc,ha);return wg(ia)}
|
|
function wg(ia){for(;ia.fc.La;)try{var ba=ia.Ega(ia.fc);if(ba)return ia.fc.hx=!1,{value:ba.value,done:!1}}catch(e){ia.fc.wf=void 0,ia.fc.Iy(e)}ia.fc.hx=!1;if(ia.fc.pp){ba=ia.fc.pp;ia.fc.pp=null;if(ba.sda)throw ba.wS;return{value:ba.return,done:!0}}return{value:void 0,done:!0}}function Yh(ia){this.next=function(ba){return ia.wx(ba)};this.throw=function(ba){return ia.Iy(ba)};this.return=function(ba){return xg(ia,ba)};Mb();this[Symbol.iterator]=function(){return this}}
|
|
function Zh(ia){function ba(e){return ia.next(e)}function e(e){return ia.throw(e)}return new Promise(function(ea,x){function ha(ca){ca.done?ea(ca.value):Promise.resolve(ca.value).then(ba,e).then(ha,x)}ha(ia.next())})}function $h(ia){return Zh(new Yh(new ug(ia)))}
|
|
function ai(ia,ba){Mb();ia instanceof String&&(ia+="");var e=0,ea={next:function(){if(e<ia.length){var x=e++;return{value:ba(x,ia[x]),done:!1}}ea.next=function(){return{done:!0,value:void 0}};return ea.next()}};ea[Symbol.iterator]=function(){return ea};return ea}Nd("Array.prototype.keys",function(ia){return ia?ia:function(){return ai(this,function(ba){return ba})}});
|
|
function bi(ia,ba,e){ia instanceof String&&(ia=String(ia));for(var ea=ia.length,x=0;x<ea;x++){var ha=ia[x];if(ba.call(e,ha,x,ia))return{i:x,Py:ha}}return{i:-1,Py:void 0}}Nd("Array.prototype.find",function(ia){return ia?ia:function(ba,e){return bi(this,ba,e).Py}});Nd("Object.setPrototypeOf",function(ia){return ia||xf});function di(ia,ba){return Object.prototype.hasOwnProperty.call(ia,ba)}
|
|
var ei="function"==typeof Object.assign?Object.assign:function(ia,ba){for(var e=1;e<arguments.length;e++){var ea=arguments[e];if(ea)for(var x in ea)di(ea,x)&&(ia[x]=ea[x])}return ia};Nd("Object.assign",function(ia){return ia||ei});Nd("Number.isFinite",function(ia){return ia?ia:function(ba){return"number"!==typeof ba?!1:!isNaN(ba)&&Infinity!==ba&&-Infinity!==ba}});Nd("Number.isInteger",function(ia){return ia?ia:function(ba){return Number.isFinite(ba)?ba===Math.floor(ba):!1}});
|
|
function fi(ia,ba,e){if(null==ia)throw new TypeError("The 'this' value for String.prototype."+e+" must not be null or undefined");if(ba instanceof RegExp)throw new TypeError("First argument to String.prototype."+e+" must not be a regular expression");return ia+""}
|
|
Nd("String.prototype.startsWith",function(ia){return ia?ia:function(ba,e){var ea=fi(this,ba,"startsWith");ba+="";var x=ea.length,ha=ba.length;e=Math.max(0,Math.min(e|0,ea.length));for(var ca=0;ca<ha&&e<x;)if(ea[e++]!=ba[ca++])return!1;return ca>=ha}});Nd("Object.is",function(ia){return ia?ia:function(ba,e){return ba===e?0!==ba||1/ba===1/e:ba!==ba&&e!==e}});
|
|
Nd("Array.prototype.includes",function(ia){return ia?ia:function(ba,e){var ea=this;ea instanceof String&&(ea=String(ea));var x=ea.length;e=e||0;for(0>e&&(e=Math.max(e+x,0));e<x;e++){var ha=ea[e];if(ha===ba||Object.is(ha,ba))return!0}return!1}});Nd("String.prototype.includes",function(ia){return ia?ia:function(ba,e){return-1!==fi(this,ba,"includes").indexOf(ba,e||0)}});
|
|
Nd("WeakMap",function(ia){function ba(e){this.Ww=(ca+=Math.random()+1).toString();if(e){e=xc(e);for(var aa;!(aa=e.next()).done;)aa=aa.value,this.set(aa[0],aa[1])}}function e(){}function ea(da){di(da,ha)||jb(da,ha,{value:new e})}function x(da){var aa=Object[da];aa&&(Object[da]=function(w){if(w instanceof e)return w;ea(w);return aa(w)})}if(function(){if(!ia||!Object.seal)return!1;try{var e=Object.seal({}),aa=Object.seal({}),w=new ia([[e,2],[aa,3]]);if(2!=w.get(e)||3!=w.get(aa))return!1;w.delete(e);
|
|
w.set(aa,4);return!w.has(e)&&4==w.get(aa)}catch(y){return!1}}())return ia;var ha="$jscomp_hidden_"+Math.random();x("freeze");x("preventExtensions");x("seal");var ca=0;ba.prototype.set=function(e,aa){ea(e);if(!di(e,ha))throw Error("WeakMap key fail: "+e);e[ha][this.Ww]=aa;return this};ba.prototype.get=function(e){return di(e,ha)?e[ha][this.Ww]:void 0};ba.prototype.has=function(e){return di(e,ha)&&di(e[ha],this.Ww)};ba.prototype.delete=function(e){return di(e,ha)&&di(e[ha],this.Ww)?delete e[ha][this.Ww]:
|
|
!1};return ba});
|
|
Nd("Map",function(ia){function ba(){var e={};return e.rm=e.next=e.head=e}function e(e,aa){var w=e.Rl;return wc(function(){if(w){for(;w.head!=e.Rl;)w=w.rm;for(;w.next!=w.head;)return w=w.next,{done:!1,value:aa(w)};w=null}return{done:!0,value:void 0}})}function ea(e,aa){var w=aa&&typeof aa;"object"==w||"function"==w?ha.has(aa)?w=ha.get(aa):(w=""+ ++ca,ha.set(aa,w)):w="p_"+aa;var y=e.data_[w];if(y&&di(e.data_,w))for(e=0;e<y.length;e++){var n=y[e];if(aa!==aa&&n.key!==n.key||aa===n.key)return{id:w,list:y,
|
|
index:e,Ef:n}}return{id:w,list:y,index:-1,Ef:void 0}}function x(e){this.data_={};this.Rl=ba();this.size=0;if(e){e=xc(e);for(var aa;!(aa=e.next()).done;)aa=aa.value,this.set(aa[0],aa[1])}}if(function(){if(!ia||"function"!=typeof ia||!ia.prototype.entries||"function"!=typeof Object.seal)return!1;try{var e=Object.seal({x:4}),aa=new ia(xc([[e,"s"]]));if("s"!=aa.get(e)||1!=aa.size||aa.get({x:4})||aa.set({x:4},"t")!=aa||2!=aa.size)return!1;var w=aa.entries(),y=w.next();if(y.done||y.value[0]!=e||"s"!=y.value[1])return!1;
|
|
y=w.next();return y.done||4!=y.value[0].x||"t"!=y.value[1]||!w.next().done?!1:!0}catch(n){return!1}}())return ia;Mb();var ha=new WeakMap;x.prototype.set=function(e,aa){e=0===e?0:e;var w=ea(this,e);w.list||(w.list=this.data_[w.id]=[]);w.Ef?w.Ef.value=aa:(w.Ef={next:this.Rl,rm:this.Rl.rm,head:this.Rl,key:e,value:aa},w.list.push(w.Ef),this.Rl.rm.next=w.Ef,this.Rl.rm=w.Ef,this.size++);return this};x.prototype.delete=function(e){e=ea(this,e);return e.Ef&&e.list?(e.list.splice(e.index,1),e.list.length||
|
|
delete this.data_[e.id],e.Ef.rm.next=e.Ef.next,e.Ef.next.rm=e.Ef.rm,e.Ef.head=null,this.size--,!0):!1};x.prototype.clear=function(){this.data_={};this.Rl=this.Rl.rm=ba();this.size=0};x.prototype.has=function(e){return!!ea(this,e).Ef};x.prototype.get=function(e){return(e=ea(this,e).Ef)&&e.value};x.prototype.entries=function(){return e(this,function(e){return[e.key,e.value]})};x.prototype.keys=function(){return e(this,function(e){return e.key})};x.prototype.values=function(){return e(this,function(e){return e.value})};
|
|
x.prototype.forEach=function(e,aa){for(var w=this.entries(),y;!(y=w.next()).done;)y=y.value,e.call(aa,y[1],y[0],this)};x.prototype[Symbol.iterator]=x.prototype.entries;var ca=0;return x});
|
|
Nd("Set",function(ia){function ba(e){this.vk=new Map;if(e){e=xc(e);for(var ea;!(ea=e.next()).done;)this.add(ea.value)}this.size=this.vk.size}if(function(){if(!ia||"function"!=typeof ia||!ia.prototype.entries||"function"!=typeof Object.seal)return!1;try{var e=Object.seal({x:4}),ea=new ia(xc([e]));if(!ea.has(e)||1!=ea.size||ea.add(e)!=ea||1!=ea.size||ea.add({x:4})!=ea||2!=ea.size)return!1;var x=ea.entries(),ha=x.next();if(ha.done||ha.value[0]!=e||ha.value[1]!=e)return!1;ha=x.next();return ha.done||
|
|
ha.value[0]==e||4!=ha.value[0].x||ha.value[1]!=ha.value[0]?!1:x.next().done}catch(ca){return!1}}())return ia;Mb();ba.prototype.add=function(e){e=0===e?0:e;this.vk.set(e,e);this.size=this.vk.size;return this};ba.prototype.delete=function(e){e=this.vk.delete(e);this.size=this.vk.size;return e};ba.prototype.clear=function(){this.vk.clear();this.size=0};ba.prototype.has=function(e){return this.vk.has(e)};ba.prototype.entries=function(){return this.vk.entries()};ba.prototype.values=function(){return this.vk.values()};
|
|
ba.prototype.keys=ba.prototype.values;ba.prototype[Symbol.iterator]=ba.prototype.values;ba.prototype.forEach=function(e,ea){var x=this;this.vk.forEach(function(ha){return e.call(ea,ha,ha,x)})};return ba});Nd("Array.prototype.fill",function(ia){return ia?ia:function(ba,e,ea){var x=this.length||0;0>e&&(e=Math.max(0,x+e));if(null==ea||ea>x)ea=x;ea=Number(ea);0>ea&&(ea=Math.max(0,x+ea));for(e=Number(e||0);e<ea;e++)this[e]=ba;return this}});
|
|
Nd("Object.values",function(ia){return ia?ia:function(ba){var e=[],ea;for(ea in ba)di(ba,ea)&&e.push(ba[ea]);return e}});Nd("Array.prototype.findIndex",function(ia){return ia?ia:function(ba,e){return bi(this,ba,e).i}});Nd("Math.imul",function(ia){return ia?ia:function(ba,e){ba=Number(ba);e=Number(e);var ea=ba&65535,x=e&65535;return ea*x+((ba>>>16&65535)*x+ea*(e>>>16&65535)<<16>>>0)|0}});
|
|
Nd("String.prototype.endsWith",function(ia){return ia?ia:function(ba,e){var ea=fi(this,ba,"endsWith");ba+="";void 0===e&&(e=ea.length);e=Math.max(0,Math.min(e|0,ea.length));for(var x=ba.length;0<x&&0<e;)if(ea[--e]!=ba[--x])return!1;return 0>=x}});Nd("Math.trunc",function(ia){return ia?ia:function(ba){ba=Number(ba);if(isNaN(ba)||Infinity===ba||-Infinity===ba||0===ba)return ba;var e=Math.floor(Math.abs(ba));return 0>ba?-e:e}});Nd("Number.EPSILON",function(){return Math.pow(2,-52)});
|
|
Nd("Array.from",function(ia){return ia?ia:function(ba,e,ea){e=null!=e?e:function(e){return e};var x=[],ha="undefined"!=typeof Symbol&&Symbol.iterator&&ba[Symbol.iterator];if("function"==typeof ha){ba=ha.call(ba);for(var ca=0;!(ha=ba.next()).done;)x.push(e.call(ea,ha.value,ca++))}else for(ha=ba.length,ca=0;ca<ha;ca++)x.push(e.call(ea,ba[ca],ca));return x}});
|
|
Nd("String.prototype.repeat",function(ia){return ia?ia:function(ba){var e=fi(this,null,"repeat");if(0>ba||1342177279<ba)throw new RangeError("Invalid count value");ba|=0;for(var ea="";ba;)if(ba&1&&(ea+=e),ba>>>=1)e+=e;return ea}});
|
|
Nd("String.fromCodePoint",function(ia){return ia?ia:function(ba){for(var e="",ea=0;ea<arguments.length;ea++){var x=Number(arguments[ea]);if(0>x||1114111<x||x!==Math.floor(x))throw new RangeError("invalid_code_point "+x);65535>=x?e+=String.fromCharCode(x):(x-=65536,e+=String.fromCharCode(x>>>10&1023|55296),e+=String.fromCharCode(x&1023|56320))}return e}});
|
|
Nd("String.prototype.padStart",function(ia){return ia?ia:function(ba,e){var ea=fi(this,null,"padStart");ba-=ea.length;e=void 0!==e?String(e):" ";return(0<ba&&e?e.repeat(Math.ceil(ba/e.length)).substring(0,ba):"")+ea}});Nd("Array.prototype.values",function(ia){return ia?ia:function(){return ai(this,function(ba,e){return e})}});Nd("Array.prototype.entries",function(ia){return ia?ia:function(){return ai(this,function(ba,e){return[ba,e]})}});
|
|
(function(ia){function ba(e){for(var w=e[0],n=e[1],h,f,r=0,z=[];r<w.length;r++)f=w[r],Object.prototype.hasOwnProperty.call(x,f)&&x[f]&&z.push(x[f][0]),x[f]=0;for(h in n)Object.prototype.hasOwnProperty.call(n,h)&&(ia[h]=n[h]);for(aa&&aa(e);z.length;)z.shift()()}function e(w){if(ea[w])return ea[w].exports;var y=ea[w]={i:w,l:!1,exports:{}};ia[w].call(y.exports,y,y.exports,e);y.l=!0;return y.exports}var ea={},x={18:0};e.e=function(w){var y=[],n=x[w];if(0!==n)if(n)y.push(n[2]);else{var h=new Promise(function(f,
|
|
r){n=x[w]=[f,r]});y.push(n[2]=h);var f=document.createElement("script");f.charset="utf-8";f.timeout=120;e.Vea&&f.setAttribute("nonce",e.Vea);f.src=e.p+""+({0:"HttpPartRetriever",1:"vendors.ascii85.quill",2:"vendors.quill",3:"AndroidContentPartRetriever",4:"ArrayBufferPdfPartRetriever",5:"AzurePartRetriever",6:"ContentEdit",7:"ExternalAnnotationMerger",8:"ExternalPdfPartRetriever",9:"IOSPartRetriever",10:"LocalPartRetriever",11:"LocalPdfPartRetriever",12:"PDFInfoVersion1",13:"SelectionInfoOld",14:"StreamingPartRetriever",
|
|
15:"WebDBPartRetriever",16:"WebViewerServerPartRetriever",17:"WinRTPartRetriever",19:"pikaday",20:"vendors.ascii85",21:"vendors.pako"}[w]||w)+".chunk.js";var r=Error();var z=function(h){f.onerror=f.onload=null;clearTimeout(fa);var n=x[w];if(0!==n){if(n){var e=h&&("load"===h.type?"missing":h.type);h=h&&h.target&&h.target.src;r.message="Loading chunk "+w+" failed.\n("+e+": "+h+")";r.name="ChunkLoadError";r.type=e;r.request=h;n[1](r)}x[w]=void 0}};var fa=setTimeout(function(){z({type:"timeout",target:f})},
|
|
12E4);f.onerror=f.onload=z;document.head.appendChild(f)}return Promise.all(y)};e.m=ia;e.c=ea;e.d=function(w,y,n){e.o(w,y)||Object.defineProperty(w,y,{enumerable:!0,get:n})};e.r=function(e){rb();rb();"undefined"!==typeof Symbol&&Symbol.toStringTag&&(rb(),Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}));Object.defineProperty(e,"__esModule",{value:!0})};e.t=function(w,y){y&1&&(w=e(w));if(y&8||y&4&&"object"===typeof w&&w&&w.__esModule)return w;var n=Object.create(null);e.r(n);Object.defineProperty(n,
|
|
"default",{enumerable:!0,value:w});if(y&2&&"string"!=typeof w)for(var h in w)e.d(n,h,function(f){return w[f]}.bind(null,h));return n};e.n=function(w){var y=w&&w.__esModule?function(){return w["default"]}:function(){return w};e.d(y,"a",y);return y};e.o=function(e,y){return Object.prototype.hasOwnProperty.call(e,y)};e.p="../core/";e.Cpa=function(e){console.error(e);throw e;};var ha=window.wpCoreControlsBundle=window.wpCoreControlsBundle||[],ca=ha.push.bind(ha);ha.push=ba;ha=ha.slice();for(var da=0;da<
|
|
ha.length;da++)ba(ha[da]);var aa=ca;return e(e.s=378)})([function(ia,ba,e){(function(e,x){var ha;(function(){function ca(f,r,h){switch(h.length){case 0:return f.call(r);case 1:return f.call(r,h[0]);case 2:return f.call(r,h[0],h[1]);case 3:return f.call(r,h[0],h[1],h[2])}return f.apply(r,h)}function da(f,h,r,n){for(var e=-1,z=null==f?0:f.length;++e<z;){var fa=f[e];h(n,fa,r(fa),f)}return n}function aa(f,h){for(var r=-1,n=null==f?0:f.length;++r<n&&!1!==h(f[r],r,f););return f}function w(f,r){for(var h=
|
|
null==f?0:f.length;h--&&!1!==r(f[h],h,f););return f}function y(f,h){for(var r=-1,n=null==f?0:f.length;++r<n;)if(!h(f[r],r,f))return!1;return!0}function n(f,r){for(var h=-1,n=null==f?0:f.length,e=0,z=[];++h<n;){var fa=f[h];r(fa,h,f)&&(z[e++]=fa)}return z}function h(f,h){return!(null==f||!f.length)&&-1<la(f,h,0)}function f(f,h,r){for(var n=-1,e=null==f?0:f.length;++n<e;)if(r(h,f[n]))return!0;return!1}function r(f,h){for(var r=-1,n=null==f?0:f.length,e=Array(n);++r<n;)e[r]=h(f[r],r,f);return e}function z(f,
|
|
h){for(var r=-1,n=h.length,e=f.length;++r<n;)f[e+r]=h[r];return f}function fa(f,r,h,n){var e=-1,z=null==f?0:f.length;for(n&&z&&(h=f[++e]);++e<z;)h=r(h,f[e],e,f);return h}function ka(f,h,r,n){var e=null==f?0:f.length;for(n&&e&&(r=f[--e]);e--;)r=h(r,f[e],e,f);return r}function ja(f,r){for(var h=-1,n=null==f?0:f.length;++h<n;)if(r(f[h],h,f))return!0;return!1}function pa(f,h,r){var n;r(f,function(f,r,e){if(h(f,r,e))return n=r,!1});return n}function ma(f,r,h,n){var e=f.length;for(h+=n?1:-1;n?h--:++h<e;)if(r(f[h],
|
|
h,f))return h;return-1}function la(f,h,r){if(h===h)a:{--r;for(var n=f.length;++r<n;)if(f[r]===h){f=r;break a}f=-1}else f=ma(f,ra,r);return f}function na(f,h,r,n){--r;for(var e=f.length;++r<e;)if(n(f[r],h))return r;return-1}function ra(f){return f!==f}function sa(f,r){var h=null==f?0:f.length;return h?ua(f,r)/h:Qa}function Da(f){return function(r){return null==r?wa:r[f]}}function qa(f){return function(r){return null==f?wa:f[r]}}function va(f,r,h,n,e){e(f,function(f,e,z){h=n?(n=!1,f):r(h,f,e,z)});return h}
|
|
function ea(f,r){var h=f.length;for(f.sort(r);h--;)f[h]=f[h].value;return f}function ua(f,r){for(var h,n=-1,e=f.length;++n<e;){var z=r(f[n]);z!==wa&&(h=h===wa?z:h+z)}return h}function Ca(f,h){for(var r=-1,n=Array(f);++r<f;)n[r]=h(r);return n}function ya(f,h){return r(h,function(h){return[h,f[h]]})}function Ea(f){return f?f.slice(0,Ma(f)+1).replace(Sb,""):f}function Aa(f){return function(h){return f(h)}}function ia(f,h){return r(h,function(h){return f[h]})}function Ga(f,h){return f.has(h)}function Ba(f,
|
|
h){for(var r=-1,n=f.length;++r<n&&-1<la(h,f[r],0););return r}function Ia(f,h){for(var r=f.length;r--&&-1<la(h,f[r],0););return r}function Ja(f){return"\\"+od[f]}function za(f){var h=-1,r=Array(f.size);f.forEach(function(f,n){r[++h]=[n,f]});return r}function xa(f,h){return function(r){return f(h(r))}}function Ka(f,h){for(var r=-1,n=f.length,e=0,z=[];++r<n;){var fa=f[r];if(fa===h||"__lodash_placeholder__"===fa)f[r]="__lodash_placeholder__",z[e++]=r}return z}function ta(f){var h=-1,r=Array(f.size);f.forEach(function(f){r[++h]=
|
|
f});return r}function Ha(f){var h=-1,r=Array(f.size);f.forEach(function(f){r[++h]=[f,f]});return r}function Na(f){if(yc.test(f)){for(var h=Uc.lastIndex=0;Uc.test(f);)++h;f=h}else f=Vc(f);return f}function Ra(f){return yc.test(f)?f.match(Uc)||[]:f.split("")}function Ma(f){for(var h=f.length;h--&&tb.test(f.charAt(h)););return h}var wa,Pa=1/0,Qa=0/0,Oa=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],Ta=/\b__p \+= '';/g,
|
|
Nb=/\b(__p \+=) '' \+/g,sc=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bb=/&(?:amp|lt|gt|quot|#39);/g,lb=/[&<>"']/g,Tb=RegExp(bb.source),bc=RegExp(lb.source),Fb=/<%-([\s\S]+?)%>/g,Za=/<%([\s\S]+?)%>/g,Hc=/<%=([\s\S]+?)%>/g,Gb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ub=/^\w*$/,Ic=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vb=/[\\^$.*+?()[\]{}|]/g,cd=RegExp(Vb.source),Sb=/^\s+/,tb=/\s/,Jc=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Wb=/\{\n\/\* \[wrapped with (.+)\] \*/,
|
|
dd=/,? & /,xb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pd=/[()=,{}\[\]\/\s]/,Pd=/\\(\\)?/g,zc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Wc=/\w*$/,Ac=/^[-+]0x[0-9a-f]+$/i,qd=/^0b[01]+$/i,re=/^\[object .+?Constructor\]$/,Cf=/^0o[0-7]+$/i,se=/^(?:0|[1-9]\d*)$/,gb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ed=/($^)/,rd=/['\n\r\u2028\u2029\\]/g,sd=/['\u2019]/g,Qd=/[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]/g,Uc=/\ud83c[\udffb-\udfff](?=\ud83c[\udffb-\udfff])|(?:[^\ud800-\udfff][\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]?|[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,
|
|
Rd=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,
|
|
yc=/[\u200d\ud800-\udfff\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff\ufe0e\ufe0f]/,te=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ic="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Kc=-1,eb={};eb["[object Float32Array]"]=eb["[object Float64Array]"]=eb["[object Int8Array]"]=
|
|
eb["[object Int16Array]"]=eb["[object Int32Array]"]=eb["[object Uint8Array]"]=eb["[object Uint8ClampedArray]"]=eb["[object Uint16Array]"]=eb["[object Uint32Array]"]=!0;eb["[object Arguments]"]=eb["[object Array]"]=eb["[object ArrayBuffer]"]=eb["[object Boolean]"]=eb["[object DataView]"]=eb["[object Date]"]=eb["[object Error]"]=eb["[object Function]"]=eb["[object Map]"]=eb["[object Number]"]=eb["[object Object]"]=eb["[object RegExp]"]=eb["[object Set]"]=eb["[object String]"]=eb["[object WeakMap]"]=
|
|
!1;var cb={};cb["[object Arguments]"]=cb["[object Array]"]=cb["[object ArrayBuffer]"]=cb["[object DataView]"]=cb["[object Boolean]"]=cb["[object Date]"]=cb["[object Float32Array]"]=cb["[object Float64Array]"]=cb["[object Int8Array]"]=cb["[object Int16Array]"]=cb["[object Int32Array]"]=cb["[object Map]"]=cb["[object Number]"]=cb["[object Object]"]=cb["[object RegExp]"]=cb["[object Set]"]=cb["[object String]"]=cb["[object Symbol]"]=cb["[object Uint8Array]"]=cb["[object Uint8ClampedArray]"]=cb["[object Uint16Array]"]=
|
|
cb["[object Uint32Array]"]=!0;cb["[object Error]"]=cb["[object Function]"]=cb["[object WeakMap]"]=!1;var od={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,Df=parseInt,Bc="object"==typeof e&&e&&e.Object===Object&&e,td="object"==typeof self&&self&&self.Object===Object&&self,yb=Bc||td||Function("return this")(),kc=ba&&!ba.nodeType&&ba,Cc=kc&&"object"==typeof x&&x&&!x.nodeType&&x,Sd=Cc&&Cc.exports===kc,Lc=Sd&&Bc.process,ob=function(){try{var f=Cc&&Cc.require&&Cc.require("util").types;
|
|
return f?f:Lc&&Lc.binding&&Lc.binding("util")}catch(rc){}}(),fd=ob&&ob.isArrayBuffer,Td=ob&&ob.isDate,ve=ob&&ob.isMap,Ud=ob&&ob.isRegExp,gd=ob&&ob.isSet,Vd=ob&&ob.isTypedArray,Vc=Da("length"),we=qa({"\u00c0":"A","\u00c1":"A","\u00c2":"A","\u00c3":"A","\u00c4":"A","\u00c5":"A","\u00e0":"a","\u00e1":"a","\u00e2":"a","\u00e3":"a","\u00e4":"a","\u00e5":"a","\u00c7":"C","\u00e7":"c","\u00d0":"D","\u00f0":"d","\u00c8":"E","\u00c9":"E","\u00ca":"E","\u00cb":"E","\u00e8":"e","\u00e9":"e","\u00ea":"e","\u00eb":"e",
|
|
"\u00cc":"I","\u00cd":"I","\u00ce":"I","\u00cf":"I","\u00ec":"i","\u00ed":"i","\u00ee":"i","\u00ef":"i","\u00d1":"N","\u00f1":"n","\u00d2":"O","\u00d3":"O","\u00d4":"O","\u00d5":"O","\u00d6":"O","\u00d8":"O","\u00f2":"o","\u00f3":"o","\u00f4":"o","\u00f5":"o","\u00f6":"o","\u00f8":"o","\u00d9":"U","\u00da":"U","\u00db":"U","\u00dc":"U","\u00f9":"u","\u00fa":"u","\u00fb":"u","\u00fc":"u","\u00dd":"Y","\u00fd":"y","\u00ff":"y","\u00c6":"Ae","\u00e6":"ae","\u00de":"Th","\u00fe":"th","\u00df":"ss","\u0100":"A",
|
|
"\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h",
|
|
"\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o",
|
|
"\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z",
|
|
"\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),xe=qa({"&":"&","<":"<",">":">",'"':""","'":"'"}),tc=qa({"&":"&","<":"<",">":">",""":'"',"'":"'"}),qc=function nd(e){function x(f){if(sb(f)&&!Ua(f)&&!(f instanceof oa)){if(f instanceof qa)return f;if(db.call(f,"__wrapped__"))return Ag(f)}return new qa(f)}function ha(){}function qa(f,h){this.__wrapped__=f;this.__actions__=[];this.__chain__=
|
|
!!h;this.__index__=0;this.__values__=wa}function oa(f){this.__wrapped__=f;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=4294967295;this.__views__=[]}function ba(f){var h=-1,r=null==f?0:f.length;for(this.clear();++h<r;){var n=f[h];this.set(n[0],n[1])}}function Fa(f){var h=-1,r=null==f?0:f.length;for(this.clear();++h<r;){var n=f[h];this.set(n[0],n[1])}}function tb(f){var h=-1,r=null==f?0:f.length;for(this.clear();++h<r;){var n=f[h];this.set(n[0],n[1])}}
|
|
function ob(f){var h=-1,r=null==f?0:f.length;for(this.__data__=new tb;++h<r;)this.add(f[h])}function Hb(f){this.size=(this.__data__=new Fa(f)).size}function kc(f,h){var r=Ua(f),n=!r&&hd(f),e=!r&&!n&&Xc(f),z=!r&&!n&&!e&&ud(f);n=(r=r||n||e||z)?Ca(f.length,li):[];var fa=n.length,ja;for(ja in f)!h&&!db.call(f,ja)||r&&("length"==ja||e&&("offset"==ja||"parent"==ja)||z&&("buffer"==ja||"byteLength"==ja||"byteOffset"==ja)||Mc(ja,fa))||n.push(ja);return n}function zb(f){var h=f.length;return h?f[Xd(0,h-1)]:
|
|
wa}function Cc(f,h){return ze(cc(f),lc(h,0,f.length))}function Xb(f){return ze(cc(f))}function rc(f,h,r){(r===wa||uc(f[h],r))&&(r!==wa||h in f)||dc(f,h,r)}function Nc(f,h,r){var n=f[h];db.call(f,h)&&uc(n,r)&&(r!==wa||h in f)||dc(f,h,r)}function Oc(f,h){for(var r=f.length;r--;)if(uc(f[r][0],h))return r;return-1}function hb(f,h,r,n){Yc(f,function(f,e,z){h(n,f,r(f),z)});return n}function Bc(f,h){return f&&Dc(h,Ib(h),f)}function Lc(f,h){return f&&Dc(h,ec(h),f)}function dc(f,h,r){"__proto__"==h&&Ae?Ae(f,
|
|
h,{configurable:!0,enumerable:!0,value:r,writable:!0}):f[h]=r}function id(f,h){for(var r=-1,n=h.length,e=Bb(n),z=null==f;++r<n;)e[r]=z?wa:Hf(f,h[r]);return e}function lc(f,h,r){f===f&&(r!==wa&&(f=f<=r?f:r),h!==wa&&(f=f>=h?f:h));return f}function Cb(f,h,r,n,e,z){var fa,ja=h&1,w=h&2,y=h&4;r&&(fa=e?r(f,n,e,z):r(f));if(fa!==wa)return fa;if(!pb(f))return f;if(n=Ua(f)){if(fa=mi(f),!ja)return cc(f,fa)}else{var la=Ob(f),ka="[object Function]"==la||"[object GeneratorFunction]"==la;if(Xc(f))return vd(f,ja);
|
|
if("[object Object]"==la||"[object Arguments]"==la||ka&&!e){if(fa=w||ka?{}:Fg(f),!ja)return w?ni(f,Lc(fa,f)):oi(f,Bc(fa,f))}else{if(!cb[la])return e?f:{};fa=pi(f,la,ja)}}z||(z=new Hb);if(e=z.get(f))return e;z.set(f,fa);Gg(f)?f.forEach(function(n){fa.add(Cb(n,h,r,n,f,z))}):Hg(f)&&f.forEach(function(n,e){fa.set(e,Cb(n,h,r,e,f,z))});w=y?w?If:Jf:w?ec:Ib;var na=n?wa:w(f);aa(na||f,function(n,e){na&&(e=n,n=f[e]);Nc(fa,e,Cb(n,h,r,e,f,z))});return fa}function Uc(f){var h=Ib(f);return function(r){return Vc(r,
|
|
f,h)}}function Vc(f,h,r){var n=r.length;if(null==f)return!n;for(f=mb(f);n--;){var e=r[n],z=h[e],fa=f[e];if(fa===wa&&!(e in f)||!z(fa))return!1}return!0}function jd(f,h,r){if("function"!=typeof f)throw new mc("Expected a function");return Yd(function(){f.apply(wa,r)},h)}function vc(n,e,z,fa){var ja=-1,w=h,y=!0,aa=n.length,la=[],ka=e.length;if(!aa)return la;z&&(e=r(e,Aa(z)));fa?(w=f,y=!1):200<=e.length&&(w=Ga,y=!1,e=new ob(e));a:for(;++ja<aa;){var na=n[ja],da=null==z?na:z(na);na=fa||0!==na?na:0;if(y&&
|
|
da===da){for(var pa=ka;pa--;)if(e[pa]===da)continue a;la.push(na)}else w(e,da,fa)||la.push(na)}return la}function Zd(f,h){var r=!0;Yc(f,function(f,n,e){return r=!!h(f,n,e)});return r}function Zc(f,h,r){for(var n=-1,e=f.length;++n<e;){var z=f[n],fa=h(z);if(null!=fa&&(ja===wa?fa===fa&&!jc(fa):r(fa,ja)))var ja=fa,w=z}return w}function Jb(f,h){var r=[];Yc(f,function(f,n,e){h(f,n,e)&&r.push(f)});return r}function ib(f,h,r,n,e){var fa=-1,ja=f.length;r||(r=ri);for(e||(e=[]);++fa<ja;){var w=f[fa];0<h&&r(w)?
|
|
1<h?ib(w,h-1,r,n,e):z(e,w):n||(e[e.length]=w)}return e}function ub(f,h){return f&&Kf(f,h,Ib)}function qb(f,h){return f&&Ig(f,h,Ib)}function Pb(f,h){return n(h,function(h){return Pc(f[h])})}function Db(f,h){h=Kb(h,f);for(var r=0,n=h.length;null!=f&&r<n;)f=f[Ec(h[r++])];return r&&r==n?f:wa}function Fc(f,h,r){h=h(f);return Ua(f)?h:z(h,r(f))}function Lb(f){if(null==f)f=f===wa?"[object Undefined]":"[object Null]";else if(kd&&kd in mb(f)){var h=db.call(f,kd),r=f[kd];try{f[kd]=wa;var n=!0}catch(mk){}var e=
|
|
Ce.call(f);n&&(h?f[kd]=r:delete f[kd]);f=e}else f=Ce.call(f);return f}function $d(f,h){return f>h}function vb(f,h){return null!=f&&db.call(f,h)}function od(f,h){return null!=f&&h in mb(f)}function wd(n,e,z){for(var fa=z?f:h,ja=n[0].length,w=n.length,y=w,aa=Bb(w),la=Infinity,ka=[];y--;){var na=n[y];y&&e&&(na=r(na,Aa(e)));la=Qb(na.length,la);aa[y]=!z&&(e||120<=ja&&120<=na.length)?new ob(y&&na):wa}na=n[0];var da=-1,pa=aa[0];a:for(;++da<ja&&ka.length<la;){var x=na[da],ra=e?e(x):x;x=z||0!==x?x:0;if(pa?
|
|
!pa.has(ra):!fa(ka,ra,z)){for(y=w;--y;){var ca=aa[y];if(ca?!ca.has(ra):!fa(n[y],ra,z))continue a}pa&&pa.push(ra);ka.push(x)}}return ka}function td(f,h,r,n){ub(f,function(f,e,z){h(n,r(f),e,z)});return n}function $c(f,h,r){h=Kb(h,f);f=2>h.length?f:Db(f,Yb(h,0,-1));h=null==f?f:f[Ec(nc(h))];return null==h?wa:ca(h,f,r)}function De(f){return sb(f)&&"[object Arguments]"==Lb(f)}function Ee(f){return sb(f)&&"[object ArrayBuffer]"==Lb(f)}function kb(f){return sb(f)&&"[object Date]"==Lb(f)}function fc(f,h,r,
|
|
n,e){if(f===h)h=!0;else if(null==f||null==h||!sb(f)&&!sb(h))h=f!==f&&h!==h;else a:{var z=Ua(f),fa=Ua(h),ja=z?"[object Array]":Ob(f),w=fa?"[object Array]":Ob(h);ja="[object Arguments]"==ja?"[object Object]":ja;w="[object Arguments]"==w?"[object Object]":w;var y="[object Object]"==ja;fa="[object Object]"==w;if((w=ja==w)&&Xc(f)){if(!Xc(h)){h=!1;break a}z=!0;y=!1}if(w&&!y)e||(e=new Hb),h=z||ud(f)?Lg(f,h,r,n,fc,e):si(f,h,ja,r,n,fc,e);else{if(!(r&1)&&(z=y&&db.call(f,"__wrapped__"),ja=fa&&db.call(h,"__wrapped__"),
|
|
z||ja)){f=z?f.value():f;h=ja?h.value():h;e||(e=new Hb);h=fc(f,h,r,n,e);break a}if(w)b:if(e||(e=new Hb),z=r&1,ja=Jf(f),fa=ja.length,w=Jf(h).length,fa==w||z){for(w=fa;w--;){var aa=ja[w];if(!(z?aa in h:db.call(h,aa))){h=!1;break b}}y=e.get(f);aa=e.get(h);if(y&&aa)h=y==h&&aa==f;else{y=!0;e.set(f,h);e.set(h,f);for(var la=z;++w<fa;){aa=ja[w];var ka=f[aa],na=h[aa];if(n)var da=z?n(na,ka,aa,h,f,e):n(ka,na,aa,f,h,e);if(da===wa?ka!==na&&!fc(ka,na,r,n,e):!da){y=!1;break}la||(la="constructor"==aa)}y&&!la&&(r=
|
|
f.constructor,n=h.constructor,r!=n&&"constructor"in f&&"constructor"in h&&!("function"==typeof r&&r instanceof r&&"function"==typeof n&&n instanceof n)&&(y=!1));e["delete"](f);e["delete"](h);h=y}}else h=!1;else h=!1}}return h}function xd(f){return sb(f)&&"[object Map]"==Ob(f)}function ae(f,h,r,n){var e=r.length,z=e,fa=!n;if(null==f)return!z;for(f=mb(f);e--;){var ja=r[e];if(fa&&ja[2]?ja[1]!==f[ja[0]]:!(ja[0]in f))return!1}for(;++e<z;){ja=r[e];var w=ja[0],y=f[w],aa=ja[1];if(fa&&ja[2]){if(y===wa&&!(w in
|
|
f))return!1}else{ja=new Hb;if(n)var la=n(y,aa,w,f,h,ja);if(la===wa?!fc(aa,y,3,n,ja):!la)return!1}}return!0}function Fe(f){return!pb(f)||Mg&&Mg in f?!1:(Pc(f)?ti:re).test(ld(f))}function Lf(f){return sb(f)&&"[object RegExp]"==Lb(f)}function yd(f){return sb(f)&&"[object Set]"==Ob(f)}function be(f){return sb(f)&&Ge(f.length)&&!!eb[Lb(f)]}function He(f){return"function"==typeof f?f:null==f?gc:"object"==typeof f?Ua(f)?ad(f[0],f[1]):Ie(f):Ng(f)}function ce(f){if(!de(f))return ui(f);var h=[],r;for(r in mb(f))db.call(f,
|
|
r)&&"constructor"!=r&&h.push(r);return h}function ee(f,h){return f<h}function Je(f,h){var r=-1,n=hc(f)?Bb(f.length):[];Yc(f,function(f,e,z){n[++r]=h(f,e,z)});return n}function Ie(f){var h=Mf(f);return 1==h.length&&h[0][2]?Og(h[0][0],h[0][1]):function(r){return r===f||ae(r,f,h)}}function ad(f,h){return Nf(f)&&h===h&&!pb(h)?Og(Ec(f),h):function(r){var n=Hf(r,f);return n===wa&&n===h?Of(r,f):fc(h,n,3)}}function zd(f,h,r,n,e){f!==h&&Kf(h,function(z,fa){e||(e=new Hb);if(pb(z)){z=e;var ja=Pf(f,fa),w=Pf(h,
|
|
fa),y=z.get(w);if(y)rc(f,fa,y);else{y=n?n(ja,w,fa+"",f,h,z):wa;var aa=y===wa;if(aa){var la=Ua(w),ka=!la&&Xc(w),na=!la&&!ka&&ud(w);y=w;if(la||ka||na)Ua(ja)?y=ja:wb(ja)?y=cc(ja):ka?(aa=!1,y=vd(w,!0)):na?(aa=!1,y=Ke(w,!0)):y=[];else if(fe(w)||hd(w))if(y=ja,hd(ja))y=Pg(ja);else{if(!pb(ja)||Pc(ja))y=Fg(w)}else aa=!1}aa&&(z.set(w,y),zd(y,w,r,n,z),z["delete"](w));rc(f,fa,y)}}else ja=n?n(Pf(f,fa),z,fa+"",f,h,e):wa,ja===wa&&(ja=z),rc(f,fa,ja)},ec)}function Le(f,h){var r=f.length;if(r)return h+=0>h?r:0,Mc(h,
|
|
r)?f[h]:wa}function Me(f,h,n){h=h.length?r(h,function(f){return Ua(f)?function(h){return Db(h,1===f.length?f[0]:f)}:f}):[gc];var e=-1;h=r(h,Aa(Sa()));f=Je(f,function(f){return{criteria:r(h,function(h){return h(f)}),index:++e,value:f}});return ea(f,function(f,h){a:{for(var r=-1,e=f.criteria,z=h.criteria,fa=e.length,ja=n.length;++r<fa;){var w=Qg(e[r],z[r]);if(w){f=r>=ja?w:w*("desc"==n[r]?-1:1);break a}}f=f.index-h.index}return f})}function Qf(f,h){return Ne(f,h,function(h,r){return Of(f,r)})}function Ne(f,
|
|
h,r){for(var n=-1,e=h.length,z={};++n<e;){var fa=h[n],ja=Db(f,fa);r(ja,fa)&&Rb(z,Kb(fa,f),ja)}return z}function Oe(f){return function(h){return Db(h,f)}}function Ad(f,h,n,e){var z=e?na:la,fa=-1,ja=h.length,w=f;f===h&&(h=cc(h));for(n&&(w=r(f,Aa(n)));++fa<ja;){var y=0,aa=h[fa];for(aa=n?n(aa):aa;-1<(y=z(w,aa,y,e));)w!==f&&Pe.call(w,y,1),Pe.call(f,y,1)}return f}function Qe(f,h){for(var r=f?h.length:0,n=r-1;r--;){var e=h[r];if(r==n||e!==z){var z=e;Mc(e)?Pe.call(f,e,1):ge(f,e)}}return f}function Xd(f,h){return f+
|
|
Re(Rg()*(h-f+1))}function oc(f,h){var r="";if(!f||1>h||9007199254740991<h)return r;do h%2&&(r+=f),(h=Re(h/2))&&(f+=f);while(h);return r}function Va(f,h){return Rf(Sg(f,h,gc),f+"")}function La(f){return zb(Bd(f))}function $a(f,h){f=Bd(f);return ze(f,lc(h,0,f.length))}function Rb(f,h,r,n){if(!pb(f))return f;h=Kb(h,f);for(var e=-1,z=h.length,fa=z-1,ja=f;null!=ja&&++e<z;){var w=Ec(h[e]),y=r;if("__proto__"===w||"constructor"===w||"prototype"===w)break;if(e!=fa){var aa=ja[w];y=n?n(aa,w,ja):wa;y===wa&&(y=
|
|
pb(aa)?aa:Mc(h[e+1])?[]:{})}Nc(ja,w,y);ja=ja[w]}return f}function Sf(f){return ze(Bd(f))}function Yb(f,h,r){var n=-1,e=f.length;0>h&&(h=-h>e?0:e+h);r=r>e?e:r;0>r&&(r+=e);e=h>r?0:r-h>>>0;h>>>=0;for(r=Bb(e);++n<e;)r[n]=f[n+h];return r}function Tf(f,h){var r;Yc(f,function(f,n,e){r=h(f,n,e);return!r});return!!r}function Cd(f,h,r){var n=0,e=null==f?n:f.length;if("number"==typeof h&&h===h&&2147483647>=e){for(;n<e;){var z=n+e>>>1,fa=f[z];null!==fa&&!jc(fa)&&(r?fa<=h:fa<h)?n=z+1:e=z}return e}return he(f,
|
|
h,gc,r)}function he(f,h,r,n){var e=0,z=null==f?0:f.length;if(0===z)return 0;h=r(h);for(var fa=h!==h,ja=null===h,w=jc(h),y=h===wa;e<z;){var aa=Re((e+z)/2),la=r(f[aa]),ka=la!==wa,na=null===la,da=la===la,pa=jc(la);(fa?n||da:y?da&&(n||ka):ja?da&&ka&&(n||!na):w?da&&ka&&!na&&(n||!pa):na||pa?0:n?la<=h:la<h)?e=aa+1:z=aa}return Qb(z,4294967294)}function Se(f,h){for(var r=-1,n=f.length,e=0,z=[];++r<n;){var fa=f[r],ja=h?h(fa):fa;if(!r||!uc(ja,w)){var w=ja;z[e++]=0===fa?0:fa}}return z}function Te(f){return"number"==
|
|
typeof f?f:jc(f)?Qa:+f}function Zb(f){if("string"==typeof f)return f;if(Ua(f))return r(f,Zb)+"";if(jc(f))return Tg?Tg.call(f):"";var h=f+"";return"0"==h&&1/f==-Pa?"-0":h}function Gc(r,n,e){var z=-1,fa=h,ja=r.length,w=!0,y=[],aa=y;if(e)w=!1,fa=f;else if(200<=ja){if(fa=n?null:vi(r))return ta(fa);w=!1;fa=Ga;aa=new ob}else aa=n?[]:y;a:for(;++z<ja;){var la=r[z],ka=n?n(la):la;la=e||0!==la?la:0;if(w&&ka===ka){for(var na=aa.length;na--;)if(aa[na]===ka)continue a;n&&aa.push(ka);y.push(la)}else fa(aa,ka,e)||
|
|
(aa!==y&&aa.push(ka),y.push(la))}return y}function ge(f,h){h=Kb(h,f);f=2>h.length?f:Db(f,Yb(h,0,-1));return null==f||delete f[Ec(nc(h))]}function Dd(f,h,r,n){for(var e=f.length,z=n?e:-1;(n?z--:++z<e)&&h(f[z],z,f););return r?Yb(f,n?0:z,n?z+1:e):Yb(f,n?z+1:0,n?e:z)}function Ue(f,h){f instanceof oa&&(f=f.value());return fa(h,function(f,h){return h.func.apply(h.thisArg,z([f],h.args))},f)}function ie(f,h,r){var n=f.length;if(2>n)return n?Gc(f[0]):[];for(var e=-1,z=Bb(n);++e<n;)for(var fa=f[e],ja=-1;++ja<
|
|
n;)ja!=e&&(z[e]=vc(z[e]||fa,f[ja],h,r));return Gc(ib(z,1),h,r)}function Ve(f,h,r){for(var n=-1,e=f.length,z=h.length,fa={};++n<e;)r(fa,f[n],n<z?h[n]:wa);return fa}function je(f){return wb(f)?f:[]}function ke(f){return"function"==typeof f?f:gc}function Kb(f,h){return Ua(f)?f:Nf(f,h)?[f]:Ug(ab(f))}function $b(f,h,r){var n=f.length;r=r===wa?n:r;return!h&&r>=n?f:Yb(f,h,r)}function vd(f,h){if(h)return f.slice();h=f.length;h=Vg?Vg(h):new f.constructor(h);f.copy(h);return h}function Xa(f){var h=new f.constructor(f.byteLength);
|
|
(new We(h)).set(new We(f));return h}function Ke(f,h){h=h?Xa(f.buffer):f.buffer;return new f.constructor(h,f.byteOffset,f.length)}function Qg(f,h){if(f!==h){var r=f!==wa,n=null===f,e=f===f,z=jc(f),fa=h!==wa,ja=null===h,w=h===h,y=jc(h);if(!ja&&!y&&!z&&f>h||z&&fa&&w&&!ja&&!y||n&&fa&&w||!r&&w||!e)return 1;if(!n&&!z&&!y&&f<h||y&&r&&e&&!n&&!z||ja&&r&&e||!fa&&e||!w)return-1}return 0}function Wg(f,h,r,n){var e=-1,z=f.length,fa=r.length,ja=-1,w=h.length,y=Eb(z-fa,0),aa=Bb(w+y);for(n=!n;++ja<w;)aa[ja]=h[ja];
|
|
for(;++e<fa;)if(n||e<z)aa[r[e]]=f[e];for(;y--;)aa[ja++]=f[e++];return aa}function Uf(f,h,r,n){var e=-1,z=f.length,fa=-1,ja=r.length,w=-1,y=h.length,aa=Eb(z-ja,0),la=Bb(aa+y);for(n=!n;++e<aa;)la[e]=f[e];for(aa=e;++w<y;)la[aa+w]=h[w];for(;++fa<ja;)if(n||e<z)la[aa+r[fa]]=f[e++];return la}function cc(f,h){var r=-1,n=f.length;for(h||(h=Bb(n));++r<n;)h[r]=f[r];return h}function Dc(f,h,r,n){var e=!r;r||(r={});for(var z=-1,fa=h.length;++z<fa;){var ja=h[z],w=n?n(r[ja],f[ja],ja,r,f):wa;w===wa&&(w=f[ja]);e?
|
|
dc(r,ja,w):Nc(r,ja,w)}return r}function oi(f,h){return Dc(f,Vf(f),h)}function ni(f,h){return Dc(f,Xg(f),h)}function Xe(f,h){return function(r,n){var e=Ua(r)?da:hb,z=h?h():{};return e(r,f,Sa(n,2),z)}}function Ed(f){return Va(function(h,r){var n=-1,e=r.length,z=1<e?r[e-1]:wa,fa=2<e?r[2]:wa;z=3<f.length&&"function"==typeof z?(e--,z):wa;fa&&ac(r[0],r[1],fa)&&(z=3>e?wa:z,e=1);for(h=mb(h);++n<e;)(fa=r[n])&&f(h,fa,n,z);return h})}function Yg(f,h){return function(r,n){if(null==r)return r;if(!hc(r))return f(r,
|
|
n);for(var e=r.length,z=h?e:-1,fa=mb(r);(h?z--:++z<e)&&!1!==n(fa[z],z,fa););return r}}function Zg(f){return function(h,r,n){var e=-1,z=mb(h);n=n(h);for(var fa=n.length;fa--;){var ja=n[f?fa:++e];if(!1===r(z[ja],ja,z))break}return h}}function wi(f,h,r){function n(){return(this&&this!==yb&&this instanceof n?z:f).apply(e?r:this,arguments)}var e=h&1,z=le(f);return n}function $g(f){return function(h){h=ab(h);var r=yc.test(h)?Ra(h):wa,n=r?r[0]:h.charAt(0);h=r?$b(r,1).join(""):h.slice(1);return n[f]()+h}}
|
|
function Fd(f){return function(h){return fa(ah(bh(h).replace(sd,"")),f,"")}}function le(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var r=Gd(f.prototype);h=f.apply(r,h);return pb(h)?h:
|
|
r}}function xi(f,h,r){function n(){for(var z=arguments.length,fa=Bb(z),ja=z,w=Hd(n);ja--;)fa[ja]=arguments[ja];ja=3>z&&fa[0]!==w&&fa[z-1]!==w?[]:Ka(fa,w);z-=ja.length;return z<r?ch(f,h,Ye,n.placeholder,wa,fa,ja,wa,wa,r-z):ca(this&&this!==yb&&this instanceof n?e:f,this,fa)}var e=le(f);return n}function dh(f){return function(h,r,n){var e=mb(h);if(!hc(h)){var z=Sa(r,3);h=Ib(h);r=function(f){return z(e[f],f,e)}}r=f(h,r,n);return-1<r?e[z?h[r]:r]:wa}}function eh(f){return Qc(function(h){var r=h.length,
|
|
n=r,e=qa.prototype.thru;for(f&&h.reverse();n--;){var z=h[n];if("function"!=typeof z)throw new mc("Expected a function");if(e&&!fa&&"wrapper"==Ze(z))var fa=new qa([],!0)}for(n=fa?n:r;++n<r;){z=h[n];e=Ze(z);var ja="wrapper"==e?Wf(z):wa;fa=ja&&Xf(ja[0])&&424==ja[1]&&!ja[4].length&&1==ja[9]?fa[Ze(ja[0])].apply(fa,ja[3]):1==z.length&&Xf(z)?fa[e]():fa.thru(z)}return function(){var f=arguments,n=f[0];if(fa&&1==f.length&&Ua(n))return fa.plant(n).value();var e=0;for(f=r?h[e].apply(this,f):n;++e<r;)f=h[e].call(this,
|
|
f);return f}})}function Ye(f,h,r,n,e,z,fa,ja,w,y){function aa(){for(var ra=arguments.length,ca=Bb(ra),sa=ra;sa--;)ca[sa]=arguments[sa];if(da){var ma=Hd(aa),ha;sa=ca.length;for(ha=0;sa--;)ca[sa]===ma&&++ha}n&&(ca=Wg(ca,n,e,da));z&&(ca=Uf(ca,z,fa,da));ra-=ha;if(da&&ra<y)return ma=Ka(ca,ma),ch(f,h,Ye,aa.placeholder,r,ca,ma,ja,w,y-ra);ma=ka?r:this;sa=na?ma[f]:f;ra=ca.length;if(ja){ha=ca.length;for(var qa=Qb(ja.length,ha),Da=cc(ca);qa--;){var ya=ja[qa];ca[qa]=Mc(ya,ha)?Da[ya]:wa}}else pa&&1<ra&&ca.reverse();
|
|
la&&w<ra&&(ca.length=w);this&&this!==yb&&this instanceof aa&&(sa=x||le(sa));return sa.apply(ma,ca)}var la=h&128,ka=h&1,na=h&2,da=h&24,pa=h&512,x=na?wa:le(f);return aa}function fh(f,h){return function(r,n){return td(r,f,h(n),{})}}function $e(f,h){return function(r,n){var e;if(r===wa&&n===wa)return h;r!==wa&&(e=r);if(n!==wa){if(e===wa)return n;"string"==typeof r||"string"==typeof n?(r=Zb(r),n=Zb(n)):(r=Te(r),n=Te(n));e=f(r,n)}return e}}function Yf(f){return Qc(function(h){h=r(h,Aa(Sa()));return Va(function(r){var n=
|
|
this;return f(h,function(f){return ca(f,n,r)})})})}function af(f,h){h=h===wa?" ":Zb(h);var r=h.length;if(2>r)return r?oc(h,f):h;r=oc(h,bf(f/Na(h)));return yc.test(h)?$b(Ra(r),0,f).join(""):r.slice(0,f)}function yi(f,h,r,n){function e(){for(var h=-1,ja=arguments.length,w=-1,y=n.length,aa=Bb(y+ja),la=this&&this!==yb&&this instanceof e?fa:f;++w<y;)aa[w]=n[w];for(;ja--;)aa[w++]=arguments[++h];return ca(la,z?r:this,aa)}var z=h&1,fa=le(f);return e}function gh(f){return function(h,r,n){n&&"number"!=typeof n&&
|
|
ac(h,r,n)&&(r=n=wa);h=Rc(h);r===wa?(r=h,h=0):r=Rc(r);n=n===wa?h<r?1:-1:Rc(n);var e=-1;r=Eb(bf((r-h)/(n||1)),0);for(var z=Bb(r);r--;)z[f?r:++e]=h,h+=n;return z}}function cf(f){return function(h,r){if("string"!=typeof h||"string"!=typeof r)h=pc(h),r=pc(r);return f(h,r)}}function ch(f,h,r,n,e,z,fa,ja,w,y){var aa=h&8,la=aa?fa:wa;fa=aa?wa:fa;var ka=aa?z:wa;z=aa?wa:z;h=(h|(aa?32:64))&~(aa?64:32);h&4||(h&=-4);e=[f,h,e,ka,la,z,fa,ja,w,y];r=r.apply(wa,e);Xf(f)&&hh(r,e);r.placeholder=n;return ih(r,f,h)}function Zf(f){var h=
|
|
Id[f];return function(f,r){f=pc(f);return(r=null==r?0:Qb(Wa(r),292))&&jh(f)?(f=(ab(f)+"e").split("e"),f=h(f[0]+"e"+(+f[1]+r)),f=(ab(f)+"e").split("e"),+(f[0]+"e"+(+f[1]-r))):h(f)}}function kh(f){return function(h){var r=Ob(h);return"[object Map]"==r?za(h):"[object Set]"==r?Ha(h):ya(h,f(h))}}function Sc(f,h,r,n,e,z,fa,ja){var w=h&2;if(!w&&"function"!=typeof f)throw new mc("Expected a function");var y=n?n.length:0;y||(h&=-97,n=e=wa);fa=fa===wa?fa:Eb(Wa(fa),0);ja=ja===wa?ja:Wa(ja);y-=e?e.length:0;if(h&
|
|
64){var aa=n,la=e;n=e=wa}var ka=w?wa:Wf(f);z=[f,h,r,n,e,aa,la,z,fa,ja];if(ka&&(r=z[1],f=ka[1],h=r|f,n=128==f&&8==r||128==f&&256==r&&z[7].length<=ka[8]||384==f&&ka[7].length<=ka[8]&&8==r,131>h||n)){f&1&&(z[2]=ka[2],h|=r&1?0:4);if(r=ka[3])n=z[3],z[3]=n?Wg(n,r,ka[4]):r,z[4]=n?Ka(z[3],"__lodash_placeholder__"):ka[4];if(r=ka[5])n=z[5],z[5]=n?Uf(n,r,ka[6]):r,z[6]=n?Ka(z[5],"__lodash_placeholder__"):ka[6];(r=ka[7])&&(z[7]=r);f&128&&(z[8]=null==z[8]?ka[8]:Qb(z[8],ka[8]));null==z[9]&&(z[9]=ka[9]);z[0]=ka[0];
|
|
z[1]=h}f=z[0];h=z[1];r=z[2];n=z[3];e=z[4];ja=z[9]=z[9]===wa?w?0:f.length:Eb(z[9]-y,0);!ja&&h&24&&(h&=-25);return ih((ka?lh:hh)(h&&1!=h?8==h||16==h?xi(f,h,ja):32!=h&&33!=h||e.length?Ye.apply(wa,z):yi(f,h,r,n):wi(f,h,r),z),f,h)}function mh(f,h,r,n){return f===wa||uc(f,Jd[r])&&!db.call(n,r)?h:f}function nh(f,h,r,n,e,z){pb(f)&&pb(h)&&(z.set(h,f),zd(f,h,wa,nh,z),z["delete"](h));return f}function zi(f){return fe(f)?wa:f}function Lg(f,h,r,n,e,z){var fa=r&1,w=f.length,y=h.length;if(w!=y&&!(fa&&y>w))return!1;
|
|
y=z.get(f);var aa=z.get(h);if(y&&aa)return y==h&&aa==f;y=-1;aa=!0;var la=r&2?new ob:wa;z.set(f,h);for(z.set(h,f);++y<w;){var ka=f[y],na=h[y];if(n)var da=fa?n(na,ka,y,h,f,z):n(ka,na,y,f,h,z);if(da!==wa){if(da)continue;aa=!1;break}if(la){if(!ja(h,function(f,h){if(!la.has(h)&&(ka===f||e(ka,f,r,n,z)))return la.push(h)})){aa=!1;break}}else if(ka!==na&&!e(ka,na,r,n,z)){aa=!1;break}}z["delete"](f);z["delete"](h);return aa}function si(f,h,r,n,e,z,fa){switch(r){case "[object DataView]":if(f.byteLength!=h.byteLength||
|
|
f.byteOffset!=h.byteOffset)break;f=f.buffer;h=h.buffer;case "[object ArrayBuffer]":if(f.byteLength!=h.byteLength||!z(new We(f),new We(h)))break;return!0;case "[object Boolean]":case "[object Date]":case "[object Number]":return uc(+f,+h);case "[object Error]":return f.name==h.name&&f.message==h.message;case "[object RegExp]":case "[object String]":return f==h+"";case "[object Map]":var ja=za;case "[object Set]":ja||(ja=ta);if(f.size!=h.size&&!(n&1))break;if(r=fa.get(f))return r==h;n|=2;fa.set(f,h);
|
|
h=Lg(ja(f),ja(h),n,e,z,fa);fa["delete"](f);return h;case "[object Symbol]":if(me)return me.call(f)==me.call(h)}return!1}function Qc(f){return Rf(Sg(f,wa,oh),f+"")}function Jf(f){return Fc(f,Ib,Vf)}function If(f){return Fc(f,ec,Xg)}function Ze(f){for(var h=f.name+"",r=Kd[h],n=db.call(Kd,h)?r.length:0;n--;){var e=r[n],z=e.func;if(null==z||z==f)return e.name}return h}function Hd(f){return(db.call(x,"placeholder")?x:f).placeholder}function Sa(){var f=x.iteratee||$f;f=f===$f?He:f;return arguments.length?
|
|
f(arguments[0],arguments[1]):f}function df(f,h){f=f.__data__;var r=typeof h;return("string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==h:null===h)?f["string"==typeof h?"string":"hash"]:f.map}function Mf(f){for(var h=Ib(f),r=h.length;r--;){var n=h[r],e=f[n];h[r]=[n,e,e===e&&!pb(e)]}return h}function md(f,h){f=null==f?wa:f[h];return Fe(f)?f:wa}function ph(f,h,r){h=Kb(h,f);for(var n=-1,e=h.length,z=!1;++n<e;){var fa=Ec(h[n]);if(!(z=null!=f&&r(f,fa)))break;f=f[fa]}if(z||++n!=e)return z;
|
|
e=null==f?0:f.length;return!!e&&Ge(e)&&Mc(fa,e)&&(Ua(f)||hd(f))}function mi(f){var h=f.length,r=new f.constructor(h);h&&"string"==typeof f[0]&&db.call(f,"index")&&(r.index=f.index,r.input=f.input);return r}function Fg(f){return"function"!=typeof f.constructor||de(f)?{}:Gd(ef(f))}function pi(f,h,r){var n=f.constructor;switch(h){case "[object ArrayBuffer]":return Xa(f);case "[object Boolean]":case "[object Date]":return new n(+f);case "[object DataView]":return h=r?Xa(f.buffer):f.buffer,new f.constructor(h,
|
|
f.byteOffset,f.byteLength);case "[object Float32Array]":case "[object Float64Array]":case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return Ke(f,r);case "[object Map]":return new n;case "[object Number]":case "[object String]":return new n(f);case "[object RegExp]":return h=new f.constructor(f.source,Wc.exec(f)),h.lastIndex=f.lastIndex,h;case "[object Set]":return new n;
|
|
case "[object Symbol]":return me?mb(me.call(f)):{}}}function ri(f){return Ua(f)||hd(f)||!!(qh&&f&&f[qh])}function Mc(f,h){var r=typeof f;h=null==h?9007199254740991:h;return!!h&&("number"==r||"symbol"!=r&&se.test(f))&&-1<f&&0==f%1&&f<h}function ac(f,h,r){if(!pb(r))return!1;var n=typeof h;return("number"==n?hc(r)&&Mc(h,r.length):"string"==n&&h in r)?uc(r[h],f):!1}function Nf(f,h){if(Ua(f))return!1;var r=typeof f;return"number"==r||"symbol"==r||"boolean"==r||null==f||jc(f)?!0:Ub.test(f)||!Gb.test(f)||
|
|
null!=h&&f in mb(h)}function Xf(f){var h=Ze(f),r=x[h];if("function"!=typeof r||!(h in oa.prototype))return!1;if(f===r)return!0;h=Wf(r);return!!h&&f===h[0]}function de(f){var h=f&&f.constructor;return f===("function"==typeof h&&h.prototype||Jd)}function Og(f,h){return function(r){return null==r?!1:r[f]===h&&(h!==wa||f in mb(r))}}function Sg(f,h,r){h=Eb(h===wa?f.length-1:h,0);return function(){for(var n=arguments,e=-1,z=Eb(n.length-h,0),fa=Bb(z);++e<z;)fa[e]=n[h+e];e=-1;for(z=Bb(h+1);++e<h;)z[e]=n[e];
|
|
z[h]=r(fa);return ca(f,this,z)}}function Pf(f,h){if(("constructor"!==h||"function"!==typeof f[h])&&"__proto__"!=h)return f[h]}function ih(f,h,r){var n=h+"";h=Rf;var e=Ai;var z=(z=n.match(Wb))?z[1].split(dd):[];r=e(z,r);if(e=r.length)z=e-1,r[z]=(1<e?"& ":"")+r[z],r.join(2<e?", ":" "),n=n.replace(Jc,"{\n\n");return h(f,n)}function rh(f){var h=0,r=0;return function(){var n=Bi(),e=16-(n-r);r=n;if(0<e){if(800<=++h)return arguments[0]}else h=0;return f.apply(wa,arguments)}}function ze(f,h){var r=-1,n=f.length,
|
|
e=n-1;for(h=h===wa?n:h;++r<h;){n=Xd(r,e);var z=f[n];f[n]=f[r];f[r]=z}f.length=h;return f}function Ec(f){if("string"==typeof f||jc(f))return f;var h=f+"";return"0"==h&&1/f==-Pa?"-0":h}function ld(f){if(null!=f){try{return ff.call(f)}catch(ki){}return f+""}return""}function Ai(f,r){aa(Oa,function(n){var e="_."+n[0];r&n[1]&&!h(f,e)&&f.push(e)});return f.sort()}function Ag(f){if(f instanceof oa)return f.clone();var h=new qa(f.__wrapped__,f.__chain__);h.__actions__=cc(f.__actions__);h.__index__=f.__index__;
|
|
h.__values__=f.__values__;return h}function sh(f,h,r){var n=null==f?0:f.length;if(!n)return-1;r=null==r?0:Wa(r);0>r&&(r=Eb(n+r,0));return ma(f,Sa(h,3),r)}function uh(f,h,r){var n=null==f?0:f.length;if(!n)return-1;var e=n-1;r!==wa&&(e=Wa(r),e=0>r?Eb(n+e,0):Qb(e,n-1));return ma(f,Sa(h,3),e,!0)}function oh(f){return(null==f?0:f.length)?ib(f,1):[]}function vh(f){return f&&f.length?f[0]:wa}function nc(f){var h=null==f?0:f.length;return h?f[h-1]:wa}function wh(f,h){return f&&f.length&&h&&h.length?Ad(f,
|
|
h):f}function ag(f){return null==f?f:Ci.call(f)}function bg(f){if(!f||!f.length)return[];var h=0;f=n(f,function(f){if(wb(f))return h=Eb(f.length,h),!0});return Ca(h,function(h){return r(f,Da(h))})}function xh(f,h){if(!f||!f.length)return[];f=bg(f);return null==h?f:r(f,function(f){return ca(h,wa,f)})}function yh(f){f=x(f);f.__chain__=!0;return f}function gf(f,h){return h(f)}function Di(){return this}function zh(f,h){return(Ua(f)?aa:Yc)(f,Sa(h,3))}function Ah(f,h){return(Ua(f)?w:Bh)(f,Sa(h,3))}function hf(f,
|
|
h){return(Ua(f)?r:Je)(f,Sa(h,3))}function Ch(f,h,r){h=r?wa:h;h=f&&null==h?f.length:h;return Sc(f,128,wa,wa,wa,wa,h)}function Dh(f,h){var r;if("function"!=typeof h)throw new mc("Expected a function");f=Wa(f);return function(){0<--f&&(r=h.apply(this,arguments));1>=f&&(h=wa);return r}}function Eh(f,h,r){h=r?wa:h;f=Sc(f,8,wa,wa,wa,wa,wa,h);f.placeholder=Eh.placeholder;return f}function Fh(f,h,r){h=r?wa:h;f=Sc(f,16,wa,wa,wa,wa,wa,h);f.placeholder=Fh.placeholder;return f}function Gh(f,h,r){function n(h){var r=
|
|
w,n=y;w=y=wa;na=h;return aa=f.apply(n,r)}function e(f){var r=f-ka;f-=na;return ka===wa||r>=h||0>r||pa&&f>=ca}function z(){var f=jf();if(e(f))return fa(f);var r=Yd;var n=f-na;f=h-(f-ka);n=pa?Qb(f,ca-n):f;la=r(z,n)}function fa(f){la=wa;if(x&&w)return n(f);w=y=wa;return aa}function ja(){var f=jf(),r=e(f);w=arguments;y=this;ka=f;if(r){if(la===wa)return na=f=ka,la=Yd(z,h),da?n(f):aa;if(pa)return Hh(la),la=Yd(z,h),n(ka)}la===wa&&(la=Yd(z,h));return aa}var w,y,aa,la,ka,na=0,da=!1,pa=!1,x=!0;if("function"!=
|
|
typeof f)throw new mc("Expected a function");h=pc(h)||0;if(pb(r)){da=!!r.leading;var ca=(pa="maxWait"in r)?Eb(pc(r.maxWait)||0,h):ca;x="trailing"in r?!!r.trailing:x}ja.cancel=function(){la!==wa&&Hh(la);na=0;w=ka=y=la=wa};ja.flush=function(){return la===wa?aa:fa(jf())};return ja}function kf(f,h){function r(){var n=arguments,e=h?h.apply(this,n):n[0],z=r.cache;if(z.has(e))return z.get(e);n=f.apply(this,n);r.cache=z.set(e,n)||z;return n}if("function"!=typeof f||null!=h&&"function"!=typeof h)throw new mc("Expected a function");
|
|
r.cache=new (kf.Cache||tb);return r}function lf(f){if("function"!=typeof f)throw new mc("Expected a function");return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}function uc(f,h){return f===h||f!==f&&h!==h}function hc(f){return null!=f&&Ge(f.length)&&!Pc(f)}function wb(f){return sb(f)&&hc(f)}function cg(f){if(!sb(f))return!1;var h=Lb(f);
|
|
return"[object Error]"==h||"[object DOMException]"==h||"string"==typeof f.message&&"string"==typeof f.name&&!fe(f)}function Pc(f){if(!pb(f))return!1;f=Lb(f);return"[object Function]"==f||"[object GeneratorFunction]"==f||"[object AsyncFunction]"==f||"[object Proxy]"==f}function Ih(f){return"number"==typeof f&&f==Wa(f)}function Ge(f){return"number"==typeof f&&-1<f&&0==f%1&&9007199254740991>=f}function pb(f){var h=typeof f;return null!=f&&("object"==h||"function"==h)}function sb(f){return null!=f&&"object"==
|
|
typeof f}function Jh(f){return"number"==typeof f||sb(f)&&"[object Number]"==Lb(f)}function fe(f){if(!sb(f)||"[object Object]"!=Lb(f))return!1;f=ef(f);if(null===f)return!0;f=db.call(f,"constructor")&&f.constructor;return"function"==typeof f&&f instanceof f&&ff.call(f)==Ei}function mf(f){return"string"==typeof f||!Ua(f)&&sb(f)&&"[object String]"==Lb(f)}function jc(f){return"symbol"==typeof f||sb(f)&&"[object Symbol]"==Lb(f)}function Kh(f){if(!f)return[];if(hc(f))return mf(f)?Ra(f):cc(f);if(ne&&f[ne]){f=
|
|
f[ne]();for(var h,r=[];!(h=f.next()).done;)r.push(h.value);return r}h=Ob(f);return("[object Map]"==h?za:"[object Set]"==h?ta:Bd)(f)}function Rc(f){if(!f)return 0===f?f:0;f=pc(f);return f===Pa||f===-Pa?1.7976931348623157E308*(0>f?-1:1):f===f?f:0}function Wa(f){f=Rc(f);var h=f%1;return f===f?h?f-h:f:0}function Lh(f){return f?lc(Wa(f),0,4294967295):0}function pc(f){if("number"==typeof f)return f;if(jc(f))return Qa;pb(f)&&(f="function"==typeof f.valueOf?f.valueOf():f,f=pb(f)?f+"":f);if("string"!=typeof f)return 0===
|
|
f?f:+f;f=Ea(f);var h=qd.test(f);return h||Cf.test(f)?Df(f.slice(2),h?2:8):Ac.test(f)?Qa:+f}function Pg(f){return Dc(f,ec(f))}function ab(f){return null==f?"":Zb(f)}function Hf(f,h,r){f=null==f?wa:Db(f,h);return f===wa?r:f}function Of(f,h){return null!=f&&ph(f,h,od)}function Ib(f){return hc(f)?kc(f):ce(f)}function ec(f){if(hc(f))f=kc(f,!0);else if(pb(f)){var h=de(f),r=[];for(n in f)("constructor"!=n||!h&&db.call(f,n))&&r.push(n);f=r}else{var n=[];if(null!=f)for(h in mb(f))n.push(h);f=n}return f}function Mh(f,
|
|
h){if(null==f)return{};var n=r(If(f),function(f){return[f]});h=Sa(h);return Ne(f,n,function(f,r){return h(f,r[0])})}function Bd(f){return null==f?[]:ia(f,Ib(f))}function Nh(f){return dg(ab(f).toLowerCase())}function bh(f){return(f=ab(f))&&f.replace(gb,we).replace(Qd,"")}function ah(f,h,r){f=ab(f);h=r?wa:h;return h===wa?te.test(f)?f.match(Rd)||[]:f.match(xb)||[]:f.match(h)||[]}function eg(f){return function(){return f}}function gc(f){return f}function $f(f){return He("function"==typeof f?f:Cb(f,1))}
|
|
function fg(f,h,r){var n=Ib(h),e=Pb(h,n);null!=r||pb(h)&&(e.length||!n.length)||(r=h,h=f,f=this,e=Pb(h,Ib(h)));var fa=!(pb(r)&&"chain"in r)||!!r.chain,ja=Pc(f);aa(e,function(r){var n=h[r];f[r]=n;ja&&(f.prototype[r]=function(){var h=this.__chain__;if(fa||h){var r=f(this.__wrapped__);(r.__actions__=cc(this.__actions__)).push({func:n,args:arguments,thisArg:f});r.__chain__=h;return r}return n.apply(f,z([this.value()],arguments))})});return f}function gg(){}function Ng(f){return Nf(f)?Da(Ec(f)):Oe(f)}
|
|
function hg(){return[]}function ig(){return!1}e=null==e?yb:qc.defaults(yb.Object(),e,qc.pick(yb,ic));var Bb=e.Array,nf=e.Date,jg=e.Error,Oh=e.Function,Id=e.Math,mb=e.Object,kg=e.RegExp,li=e.String,mc=e.TypeError,of=Bb.prototype,Jd=mb.prototype,pf=e["__core-js_shared__"],ff=Oh.prototype.toString,db=Jd.hasOwnProperty,Fi=0,Mg=function(){var f=/[^.]+$/.exec(pf&&pf.keys&&pf.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),Ce=Jd.toString,Ei=ff.call(mb),Gi=yb._,ti=kg("^"+ff.call(db).replace(Vb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,
|
|
"$1.*?")+"$"),qf=Sd?e.Buffer:wa,bd=e.Symbol,We=e.Uint8Array,Vg=qf?qf.allocUnsafe:wa,ef=xa(mb.getPrototypeOf,mb),Ph=mb.create,Qh=Jd.propertyIsEnumerable,Pe=of.splice,qh=bd?bd.isConcatSpreadable:wa,ne=bd?bd.iterator:wa,kd=bd?bd.toStringTag:wa,Ae=function(){try{var f=md(mb,"defineProperty");f({},"",{});return f}catch(ki){}}(),Hi=e.clearTimeout!==yb.clearTimeout&&e.clearTimeout,Ii=nf&&nf.now!==yb.Date.now&&nf.now,Ji=e.setTimeout!==yb.setTimeout&&e.setTimeout,bf=Id.ceil,Re=Id.floor,lg=mb.getOwnPropertySymbols,
|
|
Ki=qf?qf.isBuffer:wa,jh=e.isFinite,Li=of.join,ui=xa(mb.keys,mb),Eb=Id.max,Qb=Id.min,Bi=nf.now,Mi=e.parseInt,Rg=Id.random,Ci=of.reverse,mg=md(e,"DataView"),oe=md(e,"Map"),ng=md(e,"Promise"),Ld=md(e,"Set"),pe=md(e,"WeakMap"),qe=md(mb,"create"),rf=pe&&new pe,Kd={},Ni=ld(mg),Oi=ld(oe),Pi=ld(ng),Qi=ld(Ld),Ri=ld(pe),sf=bd?bd.prototype:wa,me=sf?sf.valueOf:wa,Tg=sf?sf.toString:wa,Gd=function(){function f(){}return function(h){if(!pb(h))return{};if(Ph)return Ph(h);f.prototype=h;h=new f;f.prototype=wa;return h}}();
|
|
x.templateSettings={escape:Fb,evaluate:Za,interpolate:Hc,variable:"",imports:{_:x}};x.prototype=ha.prototype;x.prototype.constructor=x;qa.prototype=Gd(ha.prototype);qa.prototype.constructor=qa;oa.prototype=Gd(ha.prototype);oa.prototype.constructor=oa;ba.prototype.clear=function(){this.__data__=qe?qe(null):{};this.size=0};ba.prototype["delete"]=function(f){f=this.has(f)&&delete this.__data__[f];this.size-=f?1:0;return f};ba.prototype.get=function(f){var h=this.__data__;return qe?(f=h[f],"__lodash_hash_undefined__"===
|
|
f?wa:f):db.call(h,f)?h[f]:wa};ba.prototype.has=function(f){var h=this.__data__;return qe?h[f]!==wa:db.call(h,f)};ba.prototype.set=function(f,h){var r=this.__data__;this.size+=this.has(f)?0:1;r[f]=qe&&h===wa?"__lodash_hash_undefined__":h;return this};Fa.prototype.clear=function(){this.__data__=[];this.size=0};Fa.prototype["delete"]=function(f){var h=this.__data__;f=Oc(h,f);if(0>f)return!1;f==h.length-1?h.pop():Pe.call(h,f,1);--this.size;return!0};Fa.prototype.get=function(f){var h=this.__data__;f=
|
|
Oc(h,f);return 0>f?wa:h[f][1]};Fa.prototype.has=function(f){return-1<Oc(this.__data__,f)};Fa.prototype.set=function(f,h){var r=this.__data__,n=Oc(r,f);0>n?(++this.size,r.push([f,h])):r[n][1]=h;return this};tb.prototype.clear=function(){this.size=0;this.__data__={hash:new ba,map:new (oe||Fa),string:new ba}};tb.prototype["delete"]=function(f){f=df(this,f)["delete"](f);this.size-=f?1:0;return f};tb.prototype.get=function(f){return df(this,f).get(f)};tb.prototype.has=function(f){return df(this,f).has(f)};
|
|
tb.prototype.set=function(f,h){var r=df(this,f),n=r.size;r.set(f,h);this.size+=r.size==n?0:1;return this};ob.prototype.add=ob.prototype.push=function(f){this.__data__.set(f,"__lodash_hash_undefined__");return this};ob.prototype.has=function(f){return this.__data__.has(f)};Hb.prototype.clear=function(){this.__data__=new Fa;this.size=0};Hb.prototype["delete"]=function(f){var h=this.__data__;f=h["delete"](f);this.size=h.size;return f};Hb.prototype.get=function(f){return this.__data__.get(f)};Hb.prototype.has=
|
|
function(f){return this.__data__.has(f)};Hb.prototype.set=function(f,h){var r=this.__data__;if(r instanceof Fa){var n=r.__data__;if(!oe||199>n.length)return n.push([f,h]),this.size=++r.size,this;r=this.__data__=new tb(n)}r.set(f,h);this.size=r.size;return this};var Yc=Yg(ub),Bh=Yg(qb,!0),Kf=Zg(),Ig=Zg(!0),lh=rf?function(f,h){rf.set(f,h);return f}:gc,Si=Ae?function(f,h){return Ae(f,"toString",{configurable:!0,enumerable:!1,value:eg(h),writable:!0})}:gc,Hh=Hi||function(f){return yb.clearTimeout(f)},
|
|
vi=Ld&&1/ta(new Ld([,-0]))[1]==Pa?function(f){return new Ld(f)}:gg,Wf=rf?function(f){return rf.get(f)}:gg,Vf=lg?function(f){if(null==f)return[];f=mb(f);return n(lg(f),function(h){return Qh.call(f,h)})}:hg,Xg=lg?function(f){for(var h=[];f;)z(h,Vf(f)),f=ef(f);return h}:hg,Ob=Lb;if(mg&&"[object DataView]"!=Ob(new mg(new ArrayBuffer(1)))||oe&&"[object Map]"!=Ob(new oe)||ng&&"[object Promise]"!=Ob(ng.resolve())||Ld&&"[object Set]"!=Ob(new Ld)||pe&&"[object WeakMap]"!=Ob(new pe))Ob=function(f){var h=Lb(f);
|
|
if(f=(f="[object Object]"==h?f.constructor:wa)?ld(f):"")switch(f){case Ni:return"[object DataView]";case Oi:return"[object Map]";case Pi:return"[object Promise]";case Qi:return"[object Set]";case Ri:return"[object WeakMap]"}return h};var Ti=pf?Pc:ig,hh=rh(lh),Yd=Ji||function(f,h){return yb.setTimeout(f,h)},Rf=rh(Si),Ug=function(f){f=kf(f,function(f){500===h.size&&h.clear();return f});var h=f.cache;return f}(function(f){var h=[];46===f.charCodeAt(0)&&h.push("");f.replace(Ic,function(f,r,n,e){h.push(n?
|
|
e.replace(Pd,"$1"):r||f)});return h}),Ui=Va(function(f,h){return wb(f)?vc(f,ib(h,1,wb,!0)):[]}),Vi=Va(function(f,h){var r=nc(h);wb(r)&&(r=wa);return wb(f)?vc(f,ib(h,1,wb,!0),Sa(r,2)):[]}),Wi=Va(function(f,h){var r=nc(h);wb(r)&&(r=wa);return wb(f)?vc(f,ib(h,1,wb,!0),wa,r):[]}),Xi=Va(function(f){var h=r(f,je);return h.length&&h[0]===f[0]?wd(h):[]}),Yi=Va(function(f){var h=nc(f),n=r(f,je);h===nc(n)?h=wa:n.pop();return n.length&&n[0]===f[0]?wd(n,Sa(h,2)):[]}),Zi=Va(function(f){var h=nc(f),n=r(f,je);(h=
|
|
"function"==typeof h?h:wa)&&n.pop();return n.length&&n[0]===f[0]?wd(n,wa,h):[]}),$i=Va(wh),aj=Qc(function(f,h){var n=null==f?0:f.length,e=id(f,h);Qe(f,r(h,function(f){return Mc(f,n)?+f:f}).sort(Qg));return e}),bj=Va(function(f){return Gc(ib(f,1,wb,!0))}),cj=Va(function(f){var h=nc(f);wb(h)&&(h=wa);return Gc(ib(f,1,wb,!0),Sa(h,2))}),dj=Va(function(f){var h=nc(f);h="function"==typeof h?h:wa;return Gc(ib(f,1,wb,!0),wa,h)}),ej=Va(function(f,h){return wb(f)?vc(f,h):[]}),fj=Va(function(f){return ie(n(f,
|
|
wb))}),gj=Va(function(f){var h=nc(f);wb(h)&&(h=wa);return ie(n(f,wb),Sa(h,2))}),hj=Va(function(f){var h=nc(f);h="function"==typeof h?h:wa;return ie(n(f,wb),wa,h)}),ij=Va(bg),jj=Va(function(f){var h=f.length;h=1<h?f[h-1]:wa;h="function"==typeof h?(f.pop(),h):wa;return xh(f,h)}),kj=Qc(function(f){function h(h){return id(h,f)}var r=f.length,n=r?f[0]:0,e=this.__wrapped__;if(1<r||this.__actions__.length||!(e instanceof oa)||!Mc(n))return this.thru(h);e=e.slice(n,+n+(r?1:0));e.__actions__.push({func:gf,
|
|
args:[h],thisArg:wa});return(new qa(e,this.__chain__)).thru(function(f){r&&!f.length&&f.push(wa);return f})}),lj=Xe(function(f,h,r){db.call(f,r)?++f[r]:dc(f,r,1)}),mj=dh(sh),nj=dh(uh),oj=Xe(function(f,h,r){db.call(f,r)?f[r].push(h):dc(f,r,[h])}),pj=Va(function(f,h,r){var n=-1,e="function"==typeof h,z=hc(f)?Bb(f.length):[];Yc(f,function(f){z[++n]=e?ca(h,f,r):$c(f,h,r)});return z}),qj=Xe(function(f,h,r){dc(f,r,h)}),rj=Xe(function(f,h,r){f[r?0:1].push(h)},function(){return[[],[]]}),sj=Va(function(f,
|
|
h){if(null==f)return[];var r=h.length;1<r&&ac(f,h[0],h[1])?h=[]:2<r&&ac(h[0],h[1],h[2])&&(h=[h[0]]);return Me(f,ib(h,1),[])}),jf=Ii||function(){return yb.Date.now()},og=Va(function(f,h,r){var n=1;if(r.length){var e=Ka(r,Hd(og));n|=32}return Sc(f,n,h,r,e)}),Rh=Va(function(f,h,r){var n=3;if(r.length){var e=Ka(r,Hd(Rh));n|=32}return Sc(h,n,f,r,e)}),tj=Va(function(f,h){return jd(f,1,h)}),uj=Va(function(f,h,r){return jd(f,pc(h)||0,r)});kf.Cache=tb;var vj=Va(function(f,h){h=1==h.length&&Ua(h[0])?r(h[0],
|
|
Aa(Sa())):r(ib(h,1),Aa(Sa()));var n=h.length;return Va(function(r){for(var e=-1,z=Qb(r.length,n);++e<z;)r[e]=h[e].call(this,r[e]);return ca(f,this,r)})}),pg=Va(function(f,h){var r=Ka(h,Hd(pg));return Sc(f,32,wa,h,r)}),Sh=Va(function(f,h){var r=Ka(h,Hd(Sh));return Sc(f,64,wa,h,r)}),wj=Qc(function(f,h){return Sc(f,256,wa,wa,wa,h)}),xj=cf($d),yj=cf(function(f,h){return f>=h}),hd=De(function(){return arguments}())?De:function(f){return sb(f)&&db.call(f,"callee")&&!Qh.call(f,"callee")},Ua=Bb.isArray,zj=
|
|
fd?Aa(fd):Ee,Xc=Ki||ig,Aj=Td?Aa(Td):kb,Hg=ve?Aa(ve):xd,qg=Ud?Aa(Ud):Lf,Gg=gd?Aa(gd):yd,ud=Vd?Aa(Vd):be,Bj=cf(ee),Cj=cf(function(f,h){return f<=h}),Dj=Ed(function(f,h){if(de(h)||hc(h))Dc(h,Ib(h),f);else for(var r in h)db.call(h,r)&&Nc(f,r,h[r])}),Th=Ed(function(f,h){Dc(h,ec(h),f)}),tf=Ed(function(f,h,r,n){Dc(h,ec(h),f,n)}),Ej=Ed(function(f,h,r,n){Dc(h,Ib(h),f,n)}),Fj=Qc(id),Gj=Va(function(f,h){f=mb(f);var r=-1,n=h.length,e=2<n?h[2]:wa;for(e&&ac(h[0],h[1],e)&&(n=1);++r<n;){e=h[r];for(var z=ec(e),fa=
|
|
-1,ja=z.length;++fa<ja;){var w=z[fa],y=f[w];if(y===wa||uc(y,Jd[w])&&!db.call(f,w))f[w]=e[w]}}return f}),Hj=Va(function(f){f.push(wa,nh);return ca(Uh,wa,f)}),Ij=fh(function(f,h,r){null!=h&&"function"!=typeof h.toString&&(h=Ce.call(h));f[h]=r},eg(gc)),Jj=fh(function(f,h,r){null!=h&&"function"!=typeof h.toString&&(h=Ce.call(h));db.call(f,h)?f[h].push(r):f[h]=[r]},Sa),Kj=Va($c),Lj=Ed(function(f,h,r){zd(f,h,r)}),Uh=Ed(function(f,h,r,n){zd(f,h,r,n)}),Mj=Qc(function(f,h){var n={};if(null==f)return n;var e=
|
|
!1;h=r(h,function(h){h=Kb(h,f);e||(e=1<h.length);return h});Dc(f,If(f),n);e&&(n=Cb(n,7,zi));for(var z=h.length;z--;)ge(n,h[z]);return n}),Nj=Qc(function(f,h){return null==f?{}:Qf(f,h)}),Vh=kh(Ib),Wh=kh(ec),Oj=Fd(function(f,h,r){h=h.toLowerCase();return f+(r?Nh(h):h)}),Pj=Fd(function(f,h,r){return f+(r?"-":"")+h.toLowerCase()}),Qj=Fd(function(f,h,r){return f+(r?" ":"")+h.toLowerCase()}),Rj=$g("toLowerCase"),Sj=Fd(function(f,h,r){return f+(r?"_":"")+h.toLowerCase()}),Tj=Fd(function(f,h,r){return f+
|
|
(r?" ":"")+dg(h)}),Uj=Fd(function(f,h,r){return f+(r?" ":"")+h.toUpperCase()}),dg=$g("toUpperCase"),Xh=Va(function(f,h){try{return ca(f,wa,h)}catch(Ef){return cg(Ef)?Ef:new jg(Ef)}}),Vj=Qc(function(f,h){aa(h,function(h){h=Ec(h);dc(f,h,og(f[h],f))});return f}),Wj=eh(),Xj=eh(!0),Yj=Va(function(f,h){return function(r){return $c(r,f,h)}}),Zj=Va(function(f,h){return function(r){return $c(f,r,h)}}),ak=Yf(r),bk=Yf(y),ck=Yf(ja),dk=gh(),ek=gh(!0),fk=$e(function(f,h){return f+h},0),gk=Zf("ceil"),hk=$e(function(f,
|
|
h){return f/h},1),ik=Zf("floor"),jk=$e(function(f,h){return f*h},1),kk=Zf("round"),lk=$e(function(f,h){return f-h},0);x.after=function(f,h){if("function"!=typeof h)throw new mc("Expected a function");f=Wa(f);return function(){if(1>--f)return h.apply(this,arguments)}};x.ary=Ch;x.assign=Dj;x.assignIn=Th;x.assignInWith=tf;x.assignWith=Ej;x.at=Fj;x.before=Dh;x.bind=og;x.bindAll=Vj;x.bindKey=Rh;x.castArray=function(){if(!arguments.length)return[];var f=arguments[0];return Ua(f)?f:[f]};x.chain=yh;x.chunk=
|
|
function(f,h,r){h=(r?ac(f,h,r):h===wa)?1:Eb(Wa(h),0);r=null==f?0:f.length;if(!r||1>h)return[];for(var n=0,e=0,z=Bb(bf(r/h));n<r;)z[e++]=Yb(f,n,n+=h);return z};x.compact=function(f){for(var h=-1,r=null==f?0:f.length,n=0,e=[];++h<r;){var z=f[h];z&&(e[n++]=z)}return e};x.concat=function(){var f=arguments.length;if(!f)return[];for(var h=Bb(f-1),r=arguments[0];f--;)h[f-1]=arguments[f];return z(Ua(r)?cc(r):[r],ib(h,1))};x.cond=function(f){var h=null==f?0:f.length,n=Sa();f=h?r(f,function(f){if("function"!=
|
|
typeof f[1])throw new mc("Expected a function");return[n(f[0]),f[1]]}):[];return Va(function(r){for(var n=-1;++n<h;){var e=f[n];if(ca(e[0],this,r))return ca(e[1],this,r)}})};x.conforms=function(f){return Uc(Cb(f,1))};x.constant=eg;x.countBy=lj;x.create=function(f,h){f=Gd(f);return null==h?f:Bc(f,h)};x.curry=Eh;x.curryRight=Fh;x.debounce=Gh;x.defaults=Gj;x.defaultsDeep=Hj;x.defer=tj;x.delay=uj;x.difference=Ui;x.differenceBy=Vi;x.differenceWith=Wi;x.drop=function(f,h,r){var n=null==f?0:f.length;if(!n)return[];
|
|
h=r||h===wa?1:Wa(h);return Yb(f,0>h?0:h,n)};x.dropRight=function(f,h,r){var n=null==f?0:f.length;if(!n)return[];h=r||h===wa?1:Wa(h);h=n-h;return Yb(f,0,0>h?0:h)};x.dropRightWhile=function(f,h){return f&&f.length?Dd(f,Sa(h,3),!0,!0):[]};x.dropWhile=function(f,h){return f&&f.length?Dd(f,Sa(h,3),!0):[]};x.fill=function(f,h,r,n){var e=null==f?0:f.length;if(!e)return[];r&&"number"!=typeof r&&ac(f,h,r)&&(r=0,n=e);e=f.length;r=Wa(r);0>r&&(r=-r>e?0:e+r);n=n===wa||n>e?e:Wa(n);0>n&&(n+=e);for(n=r>n?0:Lh(n);r<
|
|
n;)f[r++]=h;return f};x.filter=function(f,h){return(Ua(f)?n:Jb)(f,Sa(h,3))};x.flatMap=function(f,h){return ib(hf(f,h),1)};x.flatMapDeep=function(f,h){return ib(hf(f,h),Pa)};x.flatMapDepth=function(f,h,r){r=r===wa?1:Wa(r);return ib(hf(f,h),r)};x.flatten=oh;x.flattenDeep=function(f){return(null==f?0:f.length)?ib(f,Pa):[]};x.flattenDepth=function(f,h){if(null==f||!f.length)return[];h=h===wa?1:Wa(h);return ib(f,h)};x.flip=function(f){return Sc(f,512)};x.flow=Wj;x.flowRight=Xj;x.fromPairs=function(f){for(var h=
|
|
-1,r=null==f?0:f.length,n={};++h<r;){var e=f[h];n[e[0]]=e[1]}return n};x.functions=function(f){return null==f?[]:Pb(f,Ib(f))};x.functionsIn=function(f){return null==f?[]:Pb(f,ec(f))};x.groupBy=oj;x.initial=function(f){return(null==f?0:f.length)?Yb(f,0,-1):[]};x.intersection=Xi;x.intersectionBy=Yi;x.intersectionWith=Zi;x.invert=Ij;x.invertBy=Jj;x.invokeMap=pj;x.iteratee=$f;x.keyBy=qj;x.keys=Ib;x.keysIn=ec;x.map=hf;x.mapKeys=function(f,h){var r={};h=Sa(h,3);ub(f,function(f,n,e){dc(r,h(f,n,e),f)});return r};
|
|
x.mapValues=function(f,h){var r={};h=Sa(h,3);ub(f,function(f,n,e){dc(r,n,h(f,n,e))});return r};x.matches=function(f){return Ie(Cb(f,1))};x.matchesProperty=function(f,h){return ad(f,Cb(h,1))};x.memoize=kf;x.merge=Lj;x.mergeWith=Uh;x.method=Yj;x.methodOf=Zj;x.mixin=fg;x.negate=lf;x.nthArg=function(f){f=Wa(f);return Va(function(h){return Le(h,f)})};x.omit=Mj;x.omitBy=function(f,h){return Mh(f,lf(Sa(h)))};x.once=function(f){return Dh(2,f)};x.orderBy=function(f,h,r,n){if(null==f)return[];Ua(h)||(h=null==
|
|
h?[]:[h]);r=n?wa:r;Ua(r)||(r=null==r?[]:[r]);return Me(f,h,r)};x.over=ak;x.overArgs=vj;x.overEvery=bk;x.overSome=ck;x.partial=pg;x.partialRight=Sh;x.partition=rj;x.pick=Nj;x.pickBy=Mh;x.property=Ng;x.propertyOf=function(f){return function(h){return null==f?wa:Db(f,h)}};x.pull=$i;x.pullAll=wh;x.pullAllBy=function(f,h,r){return f&&f.length&&h&&h.length?Ad(f,h,Sa(r,2)):f};x.pullAllWith=function(f,h,r){return f&&f.length&&h&&h.length?Ad(f,h,wa,r):f};x.pullAt=aj;x.range=dk;x.rangeRight=ek;x.rearg=wj;x.reject=
|
|
function(f,h){return(Ua(f)?n:Jb)(f,lf(Sa(h,3)))};x.remove=function(f,h){var r=[];if(!f||!f.length)return r;var n=-1,e=[],z=f.length;for(h=Sa(h,3);++n<z;){var fa=f[n];h(fa,n,f)&&(r.push(fa),e.push(n))}Qe(f,e);return r};x.rest=function(f,h){if("function"!=typeof f)throw new mc("Expected a function");h=h===wa?h:Wa(h);return Va(f,h)};x.reverse=ag;x.sampleSize=function(f,h,r){h=(r?ac(f,h,r):h===wa)?1:Wa(h);return(Ua(f)?Cc:$a)(f,h)};x.set=function(f,h,r){return null==f?f:Rb(f,h,r)};x.setWith=function(f,
|
|
h,r,n){n="function"==typeof n?n:wa;return null==f?f:Rb(f,h,r,n)};x.shuffle=function(f){return(Ua(f)?Xb:Sf)(f)};x.slice=function(f,h,r){var n=null==f?0:f.length;if(!n)return[];r&&"number"!=typeof r&&ac(f,h,r)?(h=0,r=n):(h=null==h?0:Wa(h),r=r===wa?n:Wa(r));return Yb(f,h,r)};x.sortBy=sj;x.sortedUniq=function(f){return f&&f.length?Se(f):[]};x.sortedUniqBy=function(f,h){return f&&f.length?Se(f,Sa(h,2)):[]};x.split=function(f,h,r){r&&"number"!=typeof r&&ac(f,h,r)&&(h=r=wa);r=r===wa?4294967295:r>>>0;return r?
|
|
(f=ab(f))&&("string"==typeof h||null!=h&&!qg(h))&&(h=Zb(h),!h&&yc.test(f))?$b(Ra(f),0,r):f.split(h,r):[]};x.spread=function(f,h){if("function"!=typeof f)throw new mc("Expected a function");h=null==h?0:Eb(Wa(h),0);return Va(function(r){var n=r[h];r=$b(r,0,h);n&&z(r,n);return ca(f,this,r)})};x.tail=function(f){var h=null==f?0:f.length;return h?Yb(f,1,h):[]};x.take=function(f,h,r){if(!f||!f.length)return[];h=r||h===wa?1:Wa(h);return Yb(f,0,0>h?0:h)};x.takeRight=function(f,h,r){var n=null==f?0:f.length;
|
|
if(!n)return[];h=r||h===wa?1:Wa(h);h=n-h;return Yb(f,0>h?0:h,n)};x.takeRightWhile=function(f,h){return f&&f.length?Dd(f,Sa(h,3),!1,!0):[]};x.takeWhile=function(f,h){return f&&f.length?Dd(f,Sa(h,3)):[]};x.tap=function(f,h){h(f);return f};x.throttle=function(f,h,r){var n=!0,e=!0;if("function"!=typeof f)throw new mc("Expected a function");pb(r)&&(n="leading"in r?!!r.leading:n,e="trailing"in r?!!r.trailing:e);return Gh(f,h,{leading:n,maxWait:h,trailing:e})};x.thru=gf;x.toArray=Kh;x.toPairs=Vh;x.toPairsIn=
|
|
Wh;x.toPath=function(f){return Ua(f)?r(f,Ec):jc(f)?[f]:cc(Ug(ab(f)))};x.toPlainObject=Pg;x.transform=function(f,h,r){var n=Ua(f),e=n||Xc(f)||ud(f);h=Sa(h,4);if(null==r){var z=f&&f.constructor;r=e?n?new z:[]:pb(f)?Pc(z)?Gd(ef(f)):{}:{}}(e?aa:ub)(f,function(f,n,e){return h(r,f,n,e)});return r};x.unary=function(f){return Ch(f,1)};x.union=bj;x.unionBy=cj;x.unionWith=dj;x.uniq=function(f){return f&&f.length?Gc(f):[]};x.uniqBy=function(f,h){return f&&f.length?Gc(f,Sa(h,2)):[]};x.uniqWith=function(f,h){h=
|
|
"function"==typeof h?h:wa;return f&&f.length?Gc(f,wa,h):[]};x.unset=function(f,h){return null==f?!0:ge(f,h)};x.unzip=bg;x.unzipWith=xh;x.update=function(f,h,r){return null==f?f:Rb(f,h,ke(r)(Db(f,h)),void 0)};x.updateWith=function(f,h,r,n){n="function"==typeof n?n:wa;null!=f&&(f=Rb(f,h,ke(r)(Db(f,h)),n));return f};x.values=Bd;x.valuesIn=function(f){return null==f?[]:ia(f,ec(f))};x.without=ej;x.words=ah;x.wrap=function(f,h){return pg(ke(h),f)};x.xor=fj;x.xorBy=gj;x.xorWith=hj;x.zip=ij;x.zipObject=function(f,
|
|
h){return Ve(f||[],h||[],Nc)};x.zipObjectDeep=function(f,h){return Ve(f||[],h||[],Rb)};x.zipWith=jj;x.entries=Vh;x.entriesIn=Wh;x.extend=Th;x.extendWith=tf;fg(x,x);x.add=fk;x.attempt=Xh;x.camelCase=Oj;x.capitalize=Nh;x.ceil=gk;x.clamp=function(f,h,r){r===wa&&(r=h,h=wa);r!==wa&&(r=pc(r),r=r===r?r:0);h!==wa&&(h=pc(h),h=h===h?h:0);return lc(pc(f),h,r)};x.clone=function(f){return Cb(f,4)};x.cloneDeep=function(f){return Cb(f,5)};x.cloneDeepWith=function(f,h){h="function"==typeof h?h:wa;return Cb(f,5,h)};
|
|
x.cloneWith=function(f,h){h="function"==typeof h?h:wa;return Cb(f,4,h)};x.conformsTo=function(f,h){return null==h||Vc(f,h,Ib(h))};x.deburr=bh;x.defaultTo=function(f,h){return null==f||f!==f?h:f};x.divide=hk;x.endsWith=function(f,h,r){f=ab(f);h=Zb(h);var n=f.length;n=r=r===wa?n:lc(Wa(r),0,n);r-=h.length;return 0<=r&&f.slice(r,n)==h};x.eq=uc;x.escape=function(f){return(f=ab(f))&&bc.test(f)?f.replace(lb,xe):f};x.escapeRegExp=function(f){return(f=ab(f))&&cd.test(f)?f.replace(Vb,"\\$&"):f};x.every=function(f,
|
|
h,r){var n=Ua(f)?y:Zd;r&&ac(f,h,r)&&(h=wa);return n(f,Sa(h,3))};x.find=mj;x.findIndex=sh;x.findKey=function(f,h){return pa(f,Sa(h,3),ub)};x.findLast=nj;x.findLastIndex=uh;x.findLastKey=function(f,h){return pa(f,Sa(h,3),qb)};x.floor=ik;x.forEach=zh;x.forEachRight=Ah;x.forIn=function(f,h){return null==f?f:Kf(f,Sa(h,3),ec)};x.forInRight=function(f,h){return null==f?f:Ig(f,Sa(h,3),ec)};x.forOwn=function(f,h){return f&&ub(f,Sa(h,3))};x.forOwnRight=function(f,h){return f&&qb(f,Sa(h,3))};x.get=Hf;x.gt=xj;
|
|
x.gte=yj;x.has=function(f,h){return null!=f&&ph(f,h,vb)};x.hasIn=Of;x.head=vh;x.identity=gc;x.includes=function(f,h,r,n){f=hc(f)?f:Bd(f);r=r&&!n?Wa(r):0;n=f.length;0>r&&(r=Eb(n+r,0));return mf(f)?r<=n&&-1<f.indexOf(h,r):!!n&&-1<la(f,h,r)};x.indexOf=function(f,h,r){var n=null==f?0:f.length;if(!n)return-1;r=null==r?0:Wa(r);0>r&&(r=Eb(n+r,0));return la(f,h,r)};x.inRange=function(f,h,r){h=Rc(h);r===wa?(r=h,h=0):r=Rc(r);f=pc(f);return f>=Qb(h,r)&&f<Eb(h,r)};x.invoke=Kj;x.isArguments=hd;x.isArray=Ua;x.isArrayBuffer=
|
|
zj;x.isArrayLike=hc;x.isArrayLikeObject=wb;x.isBoolean=function(f){return!0===f||!1===f||sb(f)&&"[object Boolean]"==Lb(f)};x.isBuffer=Xc;x.isDate=Aj;x.isElement=function(f){return sb(f)&&1===f.nodeType&&!fe(f)};x.isEmpty=function(f){if(null==f)return!0;if(hc(f)&&(Ua(f)||"string"==typeof f||"function"==typeof f.splice||Xc(f)||ud(f)||hd(f)))return!f.length;var h=Ob(f);if("[object Map]"==h||"[object Set]"==h)return!f.size;if(de(f))return!ce(f).length;for(var r in f)if(db.call(f,r))return!1;return!0};
|
|
x.isEqual=function(f,h){return fc(f,h)};x.isEqualWith=function(f,h,r){var n=(r="function"==typeof r?r:wa)?r(f,h):wa;return n===wa?fc(f,h,wa,r):!!n};x.isError=cg;x.isFinite=function(f){return"number"==typeof f&&jh(f)};x.isFunction=Pc;x.isInteger=Ih;x.isLength=Ge;x.isMap=Hg;x.isMatch=function(f,h){return f===h||ae(f,h,Mf(h))};x.isMatchWith=function(f,h,r){r="function"==typeof r?r:wa;return ae(f,h,Mf(h),r)};x.isNaN=function(f){return Jh(f)&&f!=+f};x.isNative=function(f){if(Ti(f))throw new jg("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");
|
|
return Fe(f)};x.isNil=function(f){return null==f};x.isNull=function(f){return null===f};x.isNumber=Jh;x.isObject=pb;x.isObjectLike=sb;x.isPlainObject=fe;x.isRegExp=qg;x.isSafeInteger=function(f){return Ih(f)&&-9007199254740991<=f&&9007199254740991>=f};x.isSet=Gg;x.isString=mf;x.isSymbol=jc;x.isTypedArray=ud;x.isUndefined=function(f){return f===wa};x.isWeakMap=function(f){return sb(f)&&"[object WeakMap]"==Ob(f)};x.isWeakSet=function(f){return sb(f)&&"[object WeakSet]"==Lb(f)};x.join=function(f,h){return null==
|
|
f?"":Li.call(f,h)};x.kebabCase=Pj;x.last=nc;x.lastIndexOf=function(f,h,r){var n=null==f?0:f.length;if(!n)return-1;var e=n;r!==wa&&(e=Wa(r),e=0>e?Eb(n+e,0):Qb(e,n-1));if(h===h){for(r=e+1;r--&&f[r]!==h;);f=r}else f=ma(f,ra,e,!0);return f};x.lowerCase=Qj;x.lowerFirst=Rj;x.lt=Bj;x.lte=Cj;x.max=function(f){return f&&f.length?Zc(f,gc,$d):wa};x.maxBy=function(f,h){return f&&f.length?Zc(f,Sa(h,2),$d):wa};x.mean=function(f){return sa(f,gc)};x.meanBy=function(f,h){return sa(f,Sa(h,2))};x.min=function(f){return f&&
|
|
f.length?Zc(f,gc,ee):wa};x.minBy=function(f,h){return f&&f.length?Zc(f,Sa(h,2),ee):wa};x.stubArray=hg;x.stubFalse=ig;x.stubObject=function(){return{}};x.stubString=function(){return""};x.stubTrue=function(){return!0};x.multiply=jk;x.nth=function(f,h){return f&&f.length?Le(f,Wa(h)):wa};x.noConflict=function(){yb._===this&&(yb._=Gi);return this};x.noop=gg;x.now=jf;x.pad=function(f,h,r){f=ab(f);var n=(h=Wa(h))?Na(f):0;if(!h||n>=h)return f;h=(h-n)/2;return af(Re(h),r)+f+af(bf(h),r)};x.padEnd=function(f,
|
|
h,r){f=ab(f);var n=(h=Wa(h))?Na(f):0;return h&&n<h?f+af(h-n,r):f};x.padStart=function(f,h,r){f=ab(f);var n=(h=Wa(h))?Na(f):0;return h&&n<h?af(h-n,r)+f:f};x.parseInt=function(f,h,r){r||null==h?h=0:h&&(h=+h);return Mi(ab(f).replace(Sb,""),h||0)};x.random=function(f,h,r){r&&"boolean"!=typeof r&&ac(f,h,r)&&(h=r=wa);r===wa&&("boolean"==typeof h?(r=h,h=wa):"boolean"==typeof f&&(r=f,f=wa));f===wa&&h===wa?(f=0,h=1):(f=Rc(f),h===wa?(h=f,f=0):h=Rc(h));if(f>h){var n=f;f=h;h=n}return r||f%1||h%1?(r=Rg(),Qb(f+
|
|
r*(h-f+ue("1e-"+((r+"").length-1))),h)):Xd(f,h)};x.reduce=function(f,h,r){var n=Ua(f)?fa:va,e=3>arguments.length;return n(f,Sa(h,4),r,e,Yc)};x.reduceRight=function(f,h,r){var n=Ua(f)?ka:va,e=3>arguments.length;return n(f,Sa(h,4),r,e,Bh)};x.repeat=function(f,h,r){h=(r?ac(f,h,r):h===wa)?1:Wa(h);return oc(ab(f),h)};x.replace=function(){var f=arguments,h=ab(f[0]);return 3>f.length?h:h.replace(f[1],f[2])};x.result=function(f,h,r){h=Kb(h,f);var n=-1,e=h.length;e||(e=1,f=wa);for(;++n<e;){var z=null==f?wa:
|
|
f[Ec(h[n])];z===wa&&(n=e,z=r);f=Pc(z)?z.call(f):z}return f};x.round=kk;x.runInContext=nd;x.sample=function(f){return(Ua(f)?zb:La)(f)};x.size=function(f){if(null==f)return 0;if(hc(f))return mf(f)?Na(f):f.length;var h=Ob(f);return"[object Map]"==h||"[object Set]"==h?f.size:ce(f).length};x.snakeCase=Sj;x.some=function(f,h,r){var n=Ua(f)?ja:Tf;r&&ac(f,h,r)&&(h=wa);return n(f,Sa(h,3))};x.sortedIndex=function(f,h){return Cd(f,h)};x.sortedIndexBy=function(f,h,r){return he(f,h,Sa(r,2))};x.sortedIndexOf=function(f,
|
|
h){var r=null==f?0:f.length;if(r){var n=Cd(f,h);if(n<r&&uc(f[n],h))return n}return-1};x.sortedLastIndex=function(f,h){return Cd(f,h,!0)};x.sortedLastIndexBy=function(f,h,r){return he(f,h,Sa(r,2),!0)};x.sortedLastIndexOf=function(f,h){if(null==f?0:f.length){var r=Cd(f,h,!0)-1;if(uc(f[r],h))return r}return-1};x.startCase=Tj;x.startsWith=function(f,h,r){f=ab(f);r=null==r?0:lc(Wa(r),0,f.length);h=Zb(h);return f.slice(r,r+h.length)==h};x.subtract=lk;x.sum=function(f){return f&&f.length?ua(f,gc):0};x.sumBy=
|
|
function(f,h){return f&&f.length?ua(f,Sa(h,2)):0};x.template=function(f,h,r){var n=x.templateSettings;r&&ac(f,h,r)&&(h=wa);f=ab(f);h=tf({},h,n,mh);r=tf({},h.imports,n.imports,mh);var e=Ib(r),z=ia(r,e),fa,ja,w=0;r=h.interpolate||ed;var y="__p += '";r=kg((h.escape||ed).source+"|"+r.source+"|"+(r===Hc?zc:ed).source+"|"+(h.evaluate||ed).source+"|$","g");var aa="//# sourceURL="+(db.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Kc+"]")+"\n";f.replace(r,function(h,
|
|
r,n,e,z,aa){n||(n=e);y+=f.slice(w,aa).replace(rd,Ja);r&&(fa=!0,y+="' +\n__e("+r+") +\n'");z&&(ja=!0,y+="';\n"+z+";\n__p += '");n&&(y+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'");w=aa+h.length;return h});y+="';\n";h=db.call(h,"variable")&&h.variable;if(!h)y="with (obj) {\n"+y+"\n}\n";else if(pd.test(h))throw new jg("Invalid `variable` option passed into `_.template`");y=(ja?y.replace(Ta,""):y).replace(Nb,"$1").replace(sc,"$1;");y="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+
|
|
(fa?", __e = _.escape":"")+(ja?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+y+"return __p\n}";h=Xh(function(){return Oh(e,aa+"return "+y).apply(wa,z)});h.source=y;if(cg(h))throw h;return h};x.times=function(f,h){f=Wa(f);if(1>f||9007199254740991<f)return[];var r=4294967295,n=Qb(f,4294967295);h=Sa(h);f-=4294967295;for(n=Ca(n,h);++r<f;)h(r);return n};x.toFinite=Rc;x.toInteger=Wa;x.toLength=Lh;x.toLower=function(f){return ab(f).toLowerCase()};x.toNumber=
|
|
pc;x.toSafeInteger=function(f){return f?lc(Wa(f),-9007199254740991,9007199254740991):0===f?f:0};x.toString=ab;x.toUpper=function(f){return ab(f).toUpperCase()};x.trim=function(f,h,r){if((f=ab(f))&&(r||h===wa))return Ea(f);if(!f||!(h=Zb(h)))return f;f=Ra(f);r=Ra(h);h=Ba(f,r);r=Ia(f,r)+1;return $b(f,h,r).join("")};x.trimEnd=function(f,h,r){if((f=ab(f))&&(r||h===wa))return f.slice(0,Ma(f)+1);if(!f||!(h=Zb(h)))return f;f=Ra(f);h=Ia(f,Ra(h))+1;return $b(f,0,h).join("")};x.trimStart=function(f,h,r){if((f=
|
|
ab(f))&&(r||h===wa))return f.replace(Sb,"");if(!f||!(h=Zb(h)))return f;f=Ra(f);h=Ba(f,Ra(h));return $b(f,h).join("")};x.truncate=function(f,h){var r=30,n="...";if(pb(h)){var e="separator"in h?h.separator:e;r="length"in h?Wa(h.length):r;n="omission"in h?Zb(h.omission):n}f=ab(f);h=f.length;if(yc.test(f)){var z=Ra(f);h=z.length}if(r>=h)return f;h=r-Na(n);if(1>h)return n;r=z?$b(z,0,h).join(""):f.slice(0,h);if(e===wa)return r+n;z&&(h+=r.length-h);if(qg(e)){if(f.slice(h).search(e)){z=r;e.global||(e=kg(e.source,
|
|
ab(Wc.exec(e))+"g"));for(e.lastIndex=0;f=e.exec(z);)var fa=f.index;r=r.slice(0,fa===wa?h:fa)}}else f.indexOf(Zb(e),h)!=h&&(e=r.lastIndexOf(e),-1<e&&(r=r.slice(0,e)));return r+n};x.unescape=function(f){return(f=ab(f))&&Tb.test(f)?f.replace(bb,tc):f};x.uniqueId=function(f){var h=++Fi;return ab(f)+h};x.upperCase=Uj;x.upperFirst=dg;x.each=zh;x.eachRight=Ah;x.first=vh;fg(x,function(){var f={};ub(x,function(h,r){db.call(x.prototype,r)||(f[r]=h)});return f}(),{chain:!1});x.VERSION="4.17.21";aa("bind bindKey curry curryRight partial partialRight".split(" "),
|
|
function(f){x[f].placeholder=x});aa(["drop","take"],function(f,h){oa.prototype[f]=function(r){r=r===wa?1:Eb(Wa(r),0);var n=this.__filtered__&&!h?new oa(this):this.clone();n.__filtered__?n.__takeCount__=Qb(r,n.__takeCount__):n.__views__.push({size:Qb(r,4294967295),type:f+(0>n.__dir__?"Right":"")});return n};oa.prototype[f+"Right"]=function(h){return this.reverse()[f](h).reverse()}});aa(["filter","map","takeWhile"],function(f,h){var r=h+1,n=1==r||3==r;oa.prototype[f]=function(f){var h=this.clone();
|
|
h.__iteratees__.push({iteratee:Sa(f,3),type:r});h.__filtered__=h.__filtered__||n;return h}});aa(["head","last"],function(f,h){var r="take"+(h?"Right":"");oa.prototype[f]=function(){return this[r](1).value()[0]}});aa(["initial","tail"],function(f,h){var r="drop"+(h?"":"Right");oa.prototype[f]=function(){return this.__filtered__?new oa(this):this[r](1)}});oa.prototype.compact=function(){return this.filter(gc)};oa.prototype.find=function(f){return this.filter(f).head()};oa.prototype.findLast=function(f){return this.reverse().find(f)};
|
|
oa.prototype.invokeMap=Va(function(f,h){return"function"==typeof f?new oa(this):this.map(function(r){return $c(r,f,h)})});oa.prototype.reject=function(f){return this.filter(lf(Sa(f)))};oa.prototype.slice=function(f,h){f=Wa(f);var r=this;if(r.__filtered__&&(0<f||0>h))return new oa(r);0>f?r=r.takeRight(-f):f&&(r=r.drop(f));h!==wa&&(h=Wa(h),r=0>h?r.dropRight(-h):r.take(h-f));return r};oa.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()};oa.prototype.toArray=function(){return this.take(4294967295)};
|
|
ub(oa.prototype,function(f,h){var r=/^(?:filter|find|map|reject)|While$/.test(h),n=/^(?:head|last)$/.test(h),e=x[n?"take"+("last"==h?"Right":""):h],fa=n||/^find/.test(h);e&&(x.prototype[h]=function(){function h(f){f=e.apply(x,z([f],w));return n&&ka?f[0]:f}var ja=this.__wrapped__,w=n?[1]:arguments,y=ja instanceof oa,aa=w[0],la=y||Ua(ja);la&&r&&"function"==typeof aa&&1!=aa.length&&(y=la=!1);var ka=this.__chain__,na=!!this.__actions__.length;aa=fa&&!ka;y=y&&!na;if(!fa&&la)return ja=y?ja:new oa(this),
|
|
ja=f.apply(ja,w),ja.__actions__.push({func:gf,args:[h],thisArg:wa}),new qa(ja,ka);if(aa&&y)return f.apply(this,w);ja=this.thru(h);return aa?n?ja.value()[0]:ja.value():ja})});aa("pop push shift sort splice unshift".split(" "),function(f){var h=of[f],r=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",n=/^(?:pop|shift)$/.test(f);x.prototype[f]=function(){var f=arguments;if(n&&!this.__chain__){var e=this.value();return h.apply(Ua(e)?e:[],f)}return this[r](function(r){return h.apply(Ua(r)?r:[],f)})}});ub(oa.prototype,
|
|
function(f,h){if(f=x[h]){var r=f.name+"";db.call(Kd,r)||(Kd[r]=[]);Kd[r].push({name:h,func:f})}});Kd[Ye(wa,2).name]=[{name:"wrapper",func:wa}];oa.prototype.clone=function(){var f=new oa(this.__wrapped__);f.__actions__=cc(this.__actions__);f.__dir__=this.__dir__;f.__filtered__=this.__filtered__;f.__iteratees__=cc(this.__iteratees__);f.__takeCount__=this.__takeCount__;f.__views__=cc(this.__views__);return f};oa.prototype.reverse=function(){if(this.__filtered__){var f=new oa(this);f.__dir__=-1;f.__filtered__=
|
|
!0}else f=this.clone(),f.__dir__*=-1;return f};oa.prototype.value=function(){var f=this.__wrapped__.value(),h=this.__dir__,r=Ua(f),n=0>h,e=r?f.length:0;var z=0;for(var fa=e,ja=this.__views__,w=-1,y=ja.length;++w<y;){var aa=ja[w],la=aa.size;switch(aa.type){case "drop":z+=la;break;case "dropRight":fa-=la;break;case "take":fa=Qb(fa,z+la);break;case "takeRight":z=Eb(z,fa-la)}}ja=fa;fa=ja-z;z=n?ja:z-1;ja=this.__iteratees__;w=ja.length;y=0;aa=Qb(fa,this.__takeCount__);if(!r||!n&&e==fa&&aa==fa)return Ue(f,
|
|
this.__actions__);r=[];a:for(;fa--&&y<aa;){z+=h;n=-1;for(e=f[z];++n<w;){var ka=ja[n];la=ka.iteratee;ka=ka.type;la=la(e);if(2==ka)e=la;else if(!la)if(1==ka)continue a;else break a}r[y++]=e}return r};x.prototype.at=kj;x.prototype.chain=function(){return yh(this)};x.prototype.commit=function(){return new qa(this.value(),this.__chain__)};x.prototype.next=function(){this.__values__===wa&&(this.__values__=Kh(this.value()));var f=this.__index__>=this.__values__.length,h=f?wa:this.__values__[this.__index__++];
|
|
return{done:f,value:h}};x.prototype.plant=function(f){for(var h,r=this;r instanceof ha;){var n=Ag(r);n.__index__=0;n.__values__=wa;h?e.__wrapped__=n:h=n;var e=n;r=r.__wrapped__}e.__wrapped__=f;return h};x.prototype.reverse=function(){var f=this.__wrapped__;return f instanceof oa?(this.__actions__.length&&(f=new oa(this)),f=f.reverse(),f.__actions__.push({func:gf,args:[ag],thisArg:wa}),new qa(f,this.__chain__)):this.thru(ag)};x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=function(){return Ue(this.__wrapped__,
|
|
this.__actions__)};x.prototype.first=x.prototype.head;ne&&(x.prototype[ne]=Di);return x}();yb._=qc;!(ha=qc,ha!==wa&&(x.exports=ha))}).call(this)}).call(this,e(178),e(248)(ia))},function(ia,ba,e){function ea(){ea=Object.assign||function(e){for(var w,n=1,h=arguments.length;n<h;n++){w=arguments[n];for(var f in w)Object.prototype.hasOwnProperty.call(w,f)&&(e[f]=w[f])}return e};return ea.apply(this,arguments)}function x(e,y){x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,h){n.__proto__=
|
|
h}||function(n,h){for(var f in h)h.hasOwnProperty(f)&&(n[f]=h[f])};return x(e,y)}function ha(e,y){function n(){this.constructor=e}x(e,y);e.prototype=null===y?Object.create(y):(n.prototype=y.prototype,new n)}function ca(e,y,n,h){function f(f){return f instanceof n?f:new n(function(h){h(f)})}return new (n||(n=Promise))(function(r,n){function z(f){try{ja(h.next(f))}catch(ma){n(ma)}}function w(f){try{ja(h["throw"](f))}catch(ma){n(ma)}}function ja(h){h.done?r(h.value):f(h.value).then(z,w)}ja((h=h.apply(e,
|
|
y||[])).next())})}function da(e,y){function n(f){return function(r){return h([f,r])}}function h(h){if(r)throw new TypeError("Generator is already executing.");for(;f;)try{if(r=1,z&&(fa=h[0]&2?z["return"]:h[0]?z["throw"]||((fa=z["return"])&&fa.call(z),0):z.next)&&!(fa=fa.call(z,h[1])).done)return fa;if(z=0,fa)h=[h[0]&2,fa.value];switch(h[0]){case 0:case 1:fa=h;break;case 4:return f.label++,{value:h[1],done:!1};case 5:f.label++;z=h[1];h=[0];continue;case 7:h=f.ops.pop();f.Gg.pop();continue;default:if(!(fa=
|
|
f.Gg,fa=0<fa.length&&fa[fa.length-1])&&(6===h[0]||2===h[0])){f=0;continue}if(3===h[0]&&(!fa||h[1]>fa[0]&&h[1]<fa[3]))f.label=h[1];else if(6===h[0]&&f.label<fa[1])f.label=fa[1],fa=h;else if(fa&&f.label<fa[2])f.label=fa[2],f.ops.push(h);else{fa[2]&&f.ops.pop();f.Gg.pop();continue}}h=y.call(e,f)}catch(pa){h=[6,pa],z=0}finally{r=fa=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}var f={label:0,ea:function(){if(fa[0]&1)throw fa[1];return fa[1]},Gg:[],ops:[]},r,z,fa,w;rb();rb();Mb();return w=
|
|
{next:n(0),"throw":n(1),"return":n(2)},"function"===typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w}function aa(){for(var e=0,y=0,n=arguments.length;y<n;y++)e+=arguments[y].length;e=Array(e);var h=0;for(y=0;y<n;y++)for(var f=arguments[y],r=0,z=f.length;r<z;r++,h++)e[h]=f[r];return e}e.d(ba,"c",function(){return ha});e.d(ba,"a",function(){return ea});e.d(ba,"b",function(){return ca});e.d(ba,"d",function(){return da});e.d(ba,"e",function(){return aa})},function(ia,ba,e){function ea(){}
|
|
function x(){}function ha(h,n){Object(f.a)("disableLogs")||h||n&&aa(n)}function ca(h){if(!Object(f.a)("disableLogs"))throw console.error(h),Error(h);}function da(h){Object(f.a)("disableLogs")||console.error(h)}function aa(h,n){Object(f.a)("disableLogs")||(n?console.log(h+": "+n):console.log(h))}function w(f,h,n,e){void 0===e&&(e=!1);var r=n.pop();n=n.length?n.join(", ")+" and "+r:r;e?y("'"+h+"' will be deprecated in version "+f+". Please use "+n+" instead."):y("'"+h+"' is deprecated since version "+
|
|
f+". Please use "+n+" instead.")}function y(h,n){Object(f.a)("disableLogs")||(n?console.warn(h+": "+n):console.warn(h))}function n(h){void 0===h&&(h=!0);Object(f.b)("enableWorkerLogs",h)}function h(h){void 0===h&&(h=!0);Object(f.b)("disableLogs",h)}e.d(ba,"h",function(){return aa});e.d(ba,"j",function(){return y});e.d(ba,"i",function(){return da});e.d(ba,"g",function(){return ca});e.d(ba,"a",function(){return ha});e.d(ba,"e",function(){return h});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea});
|
|
e.d(ba,"d",function(){return w});e.d(ba,"f",function(){return n});var f=e(40)},function(ia,ba,e){e.d(ba,"f",function(){return x});e.d(ba,"h",function(){return ha});e.d(ba,"e",function(){return ca});e.d(ba,"j",function(){return da});e.d(ba,"a",function(){return aa});e.d(ba,"c",function(){return w});e.d(ba,"k",function(){return y});e.d(ba,"m",function(){return n});e.d(ba,"b",function(){return h});e.d(ba,"d",function(){return f});e.d(ba,"n",function(){return r});e.d(ba,"g",function(){return z});e.d(ba,
|
|
"i",function(){return fa});var ea=e(250);e.d(ba,"l",function(){return ea.a});var x;(function(f){f[f.E_0=0]="E_0";f[f.E_90=1]="E_90";f[f.E_180=2]="E_180";f[f.E_270=3]="E_270";f[f.e_0=0]="e_0";f[f.e_90=1]="e_90";f[f.e_180=2]="e_180";f[f.e_270=3]="e_270"})(x||(x={}));var ha;(function(f){f.ACCEPTED="Accepted";f.REJECTED="Rejected";f.CANCELLED="Cancelled";f.COMPLETED="Completed";f.NONE="None"})(ha||(ha={}));var ca;(function(f){f.MARKED="Marked";f.UNMARKED="Unmarked"})(ca||(ca={}));var da;(function(f){f.MARKED=
|
|
"Marked";f.REVIEW="Review"})(da||(da={}));var aa;(function(f){f.NORMAL="Normal";f.ROLLOVER="Rollover"})(aa||(aa={}));var w;(function(f){f.BOLD="BOLD";f.ITALIC="ITALIC";f.UNDERLINE="UNDERLINE"})(w||(w={}));var y={DEFAULT:14,POINT_ON_LINE:1,LINE_MID_POINT:2,LINE_INTERSECTION:4,PATH_ENDPOINT:8,e_DefaultSnapMode:14,e_PointOnLine:1,e_LineMidpoint:2,e_LineIntersection:4,e_PathEndpoint:8},n={ARROW:"AnnotationCreateArrow",CALLOUT:"AnnotationCreateCallout",ELLIPSE:"AnnotationCreateEllipse",FREEHAND:"AnnotationCreateFreeHand",
|
|
FREEHAND_HIGHLIGHT:"AnnotationCreateFreeHandHighlight",FREETEXT:"AnnotationCreateFreeText",DATE_FREETEXT:"AnnotationCreateDateFreeText",LINE:"AnnotationCreateLine",POLYGON:"AnnotationCreatePolygon",POLYGON_CLOUD:"AnnotationCreatePolygonCloud",POLYLINE:"AnnotationCreatePolyline",ARC:"AnnotationCreateArc",RECTANGLE:"AnnotationCreateRectangle",DISTANCE_MEASUREMENT:"AnnotationCreateDistanceMeasurement",PERIMETER_MEASUREMENT:"AnnotationCreatePerimeterMeasurement",ARC_MEASUREMENT:"AnnotationCreateArcMeasurement",
|
|
AREA_MEASUREMENT:"AnnotationCreateAreaMeasurement",RECTANGULAR_AREA_MEASUREMENT:"AnnotationCreateRectangularAreaMeasurement",CLOUDY_RECTANGULAR_AREA_MEASUREMENT:"AnnotationCreateCloudyRectangularAreaMeasurement",ELLIPSE_MEASUREMENT:"AnnotationCreateEllipseMeasurement",COUNT_MEASUREMENT:"AnnotationCreateCountMeasurement",SIGNATURE:"AnnotationCreateSignature",STAMP:"AnnotationCreateStamp",FILEATTACHMENT:"AnnotationCreateFileAttachment",RUBBER_STAMP:"AnnotationCreateRubberStamp",FORM_FILL_CROSS:"AnnotationCreateCrossStamp",
|
|
FORM_FILL_CHECKMARK:"AnnotationCreateCheckStamp",FORM_FILL_DOT:"AnnotationCreateDotStamp",STICKY:"AnnotationCreateSticky",HIGHLIGHT:"AnnotationCreateTextHighlight",SQUIGGLY:"AnnotationCreateTextSquiggly",STRIKEOUT:"AnnotationCreateTextStrikeout",UNDERLINE:"AnnotationCreateTextUnderline",REDACTION:"AnnotationCreateRedaction",TEXT_SELECT:"TextSelect",EDIT:"AnnotationEdit",PAN:"Pan",CONTENT_EDIT:"ContentEditTool",CROP:"CropPage",MARQUEE:"MarqueeZoomTool",ERASER:"AnnotationEraserTool",TEXT_FORM_FIELD:"TextFormFieldCreateTool",
|
|
SIG_FORM_FIELD:"SignatureFormFieldCreateTool",CHECK_BOX_FIELD:"CheckBoxFormFieldCreateTool",RADIO_FORM_FIELD:"RadioButtonFormFieldCreateTool",LIST_BOX_FIELD:"ListBoxFormFieldCreateTool",COMBO_BOX_FIELD:"ComboBoxFormFieldCreateTool",CHANGEVIEW:"AnnotationCreateChangeViewTool",FREEHAND2:"AnnotationCreateFreeHand2",FREEHAND3:"AnnotationCreateFreeHand3",FREEHAND4:"AnnotationCreateFreeHand4",FREEHAND_HIGHLIGHT2:"AnnotationCreateFreeHandHighlight2",FREEHAND_HIGHLIGHT3:"AnnotationCreateFreeHandHighlight3",
|
|
FREEHAND_HIGHLIGHT4:"AnnotationCreateFreeHandHighlight4",HIGHLIGHT2:"AnnotationCreateTextHighlight2",HIGHLIGHT3:"AnnotationCreateTextHighlight3",HIGHLIGHT4:"AnnotationCreateTextHighlight4",DATEFREETEXT2:"AnnotationCreateDateFreeText2",DATEFREETEXT3:"AnnotationCreateDateFreeText3",DATEFREETEXT4:"AnnotationCreateDateFreeText4",FREETEXT2:"AnnotationCreateFreeText2",FREETEXT3:"AnnotationCreateFreeText3",FREETEXT4:"AnnotationCreateFreeText4",CALLOUT2:"AnnotationCreateCallout2",CALLOUT3:"AnnotationCreateCallout3",
|
|
CALLOUT4:"AnnotationCreateCallout4",STICKY2:"AnnotationCreateSticky2",STICKY3:"AnnotationCreateSticky3",STICKY4:"AnnotationCreateSticky4",UNDERLINE2:"AnnotationCreateTextUnderline2",UNDERLINE3:"AnnotationCreateTextUnderline3",UNDERLINE4:"AnnotationCreateTextUnderline4",STRIKEOUT2:"AnnotationCreateTextStrikeout2",STRIKEOUT3:"AnnotationCreateTextStrikeout3",STRIKEOUT4:"AnnotationCreateTextStrikeout4",SQUIGGLY2:"AnnotationCreateTextSquiggly2",SQUIGGLY3:"AnnotationCreateTextSquiggly3",SQUIGGLY4:"AnnotationCreateTextSquiggly4",
|
|
REDACTION2:"AnnotationCreateRedaction2",REDACTION3:"AnnotationCreateRedaction3",REDACTION4:"AnnotationCreateRedaction4",RECTANGLE2:"AnnotationCreateRectangle2",RECTANGLE3:"AnnotationCreateRectangle3",RECTANGLE4:"AnnotationCreateRectangle4",ELLIPSE2:"AnnotationCreateEllipse2",ELLIPSE3:"AnnotationCreateEllipse3",ELLIPSE4:"AnnotationCreateEllipse4",POLYGON2:"AnnotationCreatePolygon2",POLYGON3:"AnnotationCreatePolygon3",POLYGON4:"AnnotationCreatePolygon4",POLYGON_CLOUD2:"AnnotationCreatePolygonCloud2",
|
|
POLYGON_CLOUD3:"AnnotationCreatePolygonCloud3",POLYGON_CLOUD4:"AnnotationCreatePolygonCloud4",LINE2:"AnnotationCreateLine2",LINE3:"AnnotationCreateLine3",LINE4:"AnnotationCreateLine4",POLYLINE2:"AnnotationCreatePolyline2",POLYLINE3:"AnnotationCreatePolyline3",POLYLINE4:"AnnotationCreatePolyline4",ARC2:"AnnotationCreateArc2",ARC3:"AnnotationCreateArc3",ARC4:"AnnotationCreateArc4",ARROW2:"AnnotationCreateArrow2",ARROW3:"AnnotationCreateArrow3",ARROW4:"AnnotationCreateArrow4",COUNT_MEASUREMENT2:"AnnotationCreateCountMeasurement2",
|
|
COUNT_MEASUREMENT3:"AnnotationCreateCountMeasurement3",COUNT_MEASUREMENT4:"AnnotationCreateCountMeasurement4",DISTANCE_MEASUREMENT2:"AnnotationCreateDistanceMeasurement2",DISTANCE_MEASUREMENT3:"AnnotationCreateDistanceMeasurement3",DISTANCE_MEASUREMENT4:"AnnotationCreateDistanceMeasurement4",PERIMETER_MEASUREMENT2:"AnnotationCreatePerimeterMeasurement2",PERIMETER_MEASUREMENT3:"AnnotationCreatePerimeterMeasurement3",PERIMETER_MEASUREMENT4:"AnnotationCreatePerimeterMeasurement4",ARC_MEASUREMENT2:"AnnotationCreateArcMeasurement2",
|
|
ARC_MEASUREMENT3:"AnnotationCreateArcMeasurement3",ARC_MEASUREMENT4:"AnnotationCreateArcMeasurement4",AREA_MEASUREMENT2:"AnnotationCreateAreaMeasurement2",AREA_MEASUREMENT3:"AnnotationCreateAreaMeasurement3",AREA_MEASUREMENT4:"AnnotationCreateAreaMeasurement4",ELLIPSE_MEASUREMENT2:"AnnotationCreateEllipseMeasurement2",ELLIPSE_MEASUREMENT3:"AnnotationCreateEllipseMeasurement3",ELLIPSE_MEASUREMENT4:"AnnotationCreateEllipseMeasurement4",RECTANGULAR_AREA_MEASUREMENT2:"AnnotationCreateRectangularAreaMeasurement2",
|
|
RECTANGULAR_AREA_MEASUREMENT3:"AnnotationCreateRectangularAreaMeasurement3",RECTANGULAR_AREA_MEASUREMENT4:"AnnotationCreateRectangularAreaMeasurement4",TEXT_FORM_FIELD2:"TextFormFieldCreateTool2",TEXT_FORM_FIELD3:"TextFormFieldCreateTool3",TEXT_FORM_FIELD4:"TextFormFieldCreateTool4",SIG_FORM_FIELD2:"SignatureFormFieldCreateTool2",SIG_FORM_FIELD3:"SignatureFormFieldCreateTool3",SIG_FORM_FIELD4:"SignatureFormFieldCreateTool4",LIST_BOX_FIELD2:"ListBoxFormFieldCreateTool2",LIST_BOX_FIELD3:"ListBoxFormFieldCreateTool3",
|
|
LIST_BOX_FIELD4:"ListBoxFormFieldCreateTool4",COMBO_BOX_FIELD2:"ComboBoxFormFieldCreateTool2",COMBO_BOX_FIELD3:"ComboBoxFormFieldCreateTool3",COMBO_BOX_FIELD4:"ComboBoxFormFieldCreateTool4",CLOUDY_RECTANGULAR_AREA_MEASUREMENT2:"AnnotationCreateCloudyRectangularAreaMeasurement2",CLOUDY_RECTANGULAR_AREA_MEASUREMENT3:"AnnotationCreateCloudyRectangularAreaMeasurement3",CLOUDY_RECTANGULAR_AREA_MEASUREMENT4:"AnnotationCreateCloudyRectangularAreaMeasurement4",CHANGEVIEW2:"AnnotationCreateChangeViewTool2",
|
|
CHANGEVIEW3:"AnnotationCreateChangeViewTool3",CHANGEVIEW4:"AnnotationCreateChangeViewTool4"},h="trn-form-field-type",f={TEXT:"TextFormField",SIGNATURE:"SignatureFormField",CHECK:"CheckBoxFormField",RADIO:"RadioButtonFormField",LIST:"ListBoxFormField",COMBO:"ComboBoxFormField"},r={RANDOM_ARCS:"randomArcs",EQUAL_ARCS:"equalArcs"},z="trn-random-arc",fa={SNAP_ROTATION:"SnapRotation",FREEFORM_ROTATION:"FreeformRotation"}},function(ia,ba,e){var ea=e(101);e.d(ba,"a",function(){return ea.a});var x=e(91);
|
|
e.d(ba,"b",function(){return x.a});var ha=e(185);e.d(ba,"d",function(){return ha.a});var ca=e(186);e.d(ba,"c",function(){return ca.a});var da=e(255);e.d(ba,"e",function(){return da.a})},function(ia,ba,e){var ea=e(283);e.d(ba,"a",function(){return ea.a});var x=e(26);e.d(ba,"b",function(){return x.a});var ha=e(206);e.d(ba,"e",function(){return ha.a});var ca=e(284);e.d(ba,"f",function(){return ca.a});var da=e(285);e.d(ba,"g",function(){return da.a});var aa=e(286);e.d(ba,"m",function(){return aa.a});
|
|
var w=e(287);e.d(ba,"n",function(){return w.a});var y=e(288);e.d(ba,"o",function(){return y.a});var n=e(289);e.d(ba,"p",function(){return n.a});var h=e(151);e.d(ba,"q",function(){return h.a});var f=e(290);e.d(ba,"r",function(){return f.a});var r=e(209);e.d(ba,"u",function(){return r.a});var z=e(291);e.d(ba,"v",function(){return z.a});var fa=e(292);e.d(ba,"s",function(){return fa.a});var ka=e(208);e.d(ba,"w",function(){return ka.a});var ja=e(45);e.d(ba,"x",function(){return ja.a});var pa=e(150);e.d(ba,
|
|
"y",function(){return pa.a});var ma=e(293);e.d(ba,"A",function(){return ma.a});var la=e(294);e.d(ba,"B",function(){return la.a});var na=e(295);e.d(ba,"l",function(){return na.a});e(296);var ra=e(207);e.d(ba,"C",function(){return ra.a});var sa=e(297);e.d(ba,"D",function(){return sa.a});var Da=e(149);e.d(ba,"E",function(){return Da.a});var qa=e(152);e.d(ba,"I",function(){return qa.a});var va=e(298);e.d(ba,"j",function(){return va.a});var oa=e(113);e.d(ba,"F",function(){return oa.a});var ua=e(90);e.d(ba,
|
|
"H",function(){return ua.a});var Ca=e(299);e.d(ba,"J",function(){return Ca.a});var ya=e(300);e.d(ba,"K",function(){return ya.a});var Ea=e(301);e.d(ba,"L",function(){return Ea.a});var Aa=e(302);e.d(ba,"N",function(){return Aa.a});var Fa=e(173);e.d(ba,"O",function(){return Fa.a});var Ga=e(89);e.d(ba,"P",function(){return Ga.a});var Ba=e(303);e.d(ba,"R",function(){return Ba.a});var Ia=e(304);e.d(ba,"S",function(){return Ia.a});var Ja=e(305);e.d(ba,"T",function(){return Ja.a});var za=e(306);e.d(ba,"U",
|
|
function(){return za.a});var xa=e(140);e.d(ba,"V",function(){return xa.a});var Ka=e(307);e.d(ba,"W",function(){return Ka.a});var ta=e(308);e.d(ba,"t",function(){return ta.a});var Ha=e(43);e.d(ba,"X",function(){return Ha.a});var Na=e(309);e.d(ba,"Q",function(){return Na.a});var Ra=e(310);e.d(ba,"M",function(){return Ra.a});var Ma=e(311);e.d(ba,"i",function(){return Ma.a});var wa=e(312);e.d(ba,"G",function(){return wa.a});var Pa=e(313);e.d(ba,"z",function(){return Pa.a});var Qa=e(314);e.d(ba,"k",function(){return Qa.a});
|
|
var Oa=e(210);e.d(ba,"c",function(){return Oa.a});var Ta=e(315);e.d(ba,"d",function(){return Ta.a});var Nb=e(316);e.d(ba,"h",function(){return Nb.a})},function(ia,ba,e){function ea(f){var h={};ca(h,"factor",f.getAttribute("factor"));da(h,"unit",f.getAttribute("unit"));da(h,"decimalSymbol",f.getAttribute("decimal-symbol")||".");da(h,"thousandsSymbol",f.getAttribute("thousands-symbol")||",");da(h,"display",f.getAttribute("display")||"D");ca(h,"precision",f.getAttribute("precision")||100);da(h,"unitPrefix",
|
|
f.getAttribute("unit-prefix")||"");da(h,"unitSuffix",f.getAttribute("unit-suffix")||"");da(h,"unitPosition",f.getAttribute("unit-position")||"S");return h}function x(f){var h=document.createElementNS("","numberformat");ha(h,"factor",f.factor);ha(h,"unit",f.unit);ha(h,"decimal-symbol",f.decimalSymbol);ha(h,"thousands-symbol",f.thousandsSymbol);ha(h,"display",f.display);ha(h,"precision",f.precision);ha(h,"unit-prefix",f.unitPrefix);ha(h,"unit-suffix",f.unitSuffix);ha(h,"unit-position",f.unitPosition);
|
|
return h}function ha(f,h,r){Object(pa.isUndefined)(r)||Object(pa.isNull)(r)||f.setAttribute(h,r)}function ca(f,h,r){Object(pa.isUndefined)(r)||Object(pa.isNull)(r)||(f[h]=Number(r))}function da(f,h,r){Object(pa.isUndefined)(r)||Object(pa.isNull)(r)||(f[h]=r)}function aa(f){function h(h,r){var n=f;0===n.indexOf(h)&&(n=r);return n}f=h("Arial","Arial");f=h("Courier","Courier");f=h("Helv","Helvetica");return f=h("Times","Times New Roman")}function w(f){return 1<f.split(" ").length?"'"+f+"'":f}function y(f,
|
|
h,r){f="#"+ka(f.toString(16));f+=ka(h.toString(16));return f+=ka(r.toString(16))}function n(f){if("undefined"===typeof f||null===f||!(f instanceof na.a)||0===f.A)return null;var h=f.R.toString(16).toUpperCase();2>h.length&&(h="0"+h);var r=f.G.toString(16).toUpperCase();2>r.length&&(r="0"+r);f=f.B.toString(16).toUpperCase();2>f.length&&(f="0"+f);return"#"+h+r+f}function h(f,h,r){if("undefined"===typeof r||null===r)r=",";if("undefined"===typeof f||null===f)f="0,0,0,0";r=f.split(r);f=new la.b(r[0],r[1]);
|
|
r=new la.b(r[2],r[3]);h&&(h.ra(f),h.ra(r));return new la.d(f.x,f.y,r.x,r.y)}function f(f,h,r){if("undefined"===typeof r||null===r)r=",";var n=new la.b(f.x1,f.y1);f=new la.b(f.x2,f.y2);h.ra(n);h.ra(f);h=Number.isInteger(n.x)?n.x:n.x.toFixed(3);n=Number.isInteger(n.y)?n.y:n.y.toFixed(3);var e=Number.isInteger(f.x)?f.x:f.x.toFixed(3);f=Number.isInteger(f.y)?f.y:f.y.toFixed(3);return""+h+r+n+r+e+r+f}function r(f){f=Object(pa.filter)(f.childNodes,function(f){return 1===f.nodeType});return 0<f.length?f[0]:
|
|
null}function z(f){return f.localName||f.baseName||f.nodeName}function fa(f,h){return f.getAttribute(h)||f.getAttribute(h.toLowerCase())}function ka(f){return 2>f.length?"0"+f:f}var ja=e(1),pa=e(0);e.n(pa);var ma=e(2),la=e(4),na=e(8),ra=e(22),sa=["Tf","rg"];ba.a={Sw:function(f){if("string"!==typeof f)return f;var h=new DOMParser;f=f.replace(' xmlns="http://www.w3.org/1999/xhtml"',"");h=h.parseFromString(f,"text/xml");0<h.getElementsByTagName("parsererror").length&&Object(ma.j)(h.getElementsByTagName("parsererror")[0].textContent);
|
|
return h},Ly:function(f){var h="D:"+f.getFullYear().toString();h+=ka((f.getMonth()+1).toString());h+=ka(f.getDate().toString());h+=ka(f.getHours().toString());h+=ka(f.getMinutes().toString());h+=ka(f.getSeconds().toString());f=f.getTimezoneOffset();0===f?h+="Z00'00'":(0>f?(h+="+",f*=-1):h+="-",h+=ka(parseInt(f/60,10).toString())+"'",h+=ka((f%60).toString())+"'");return h},toDateString:function(f){return f.getFullYear().toString()+"-"+ka((f.getMonth()+1).toString())+"-"+ka(f.getDate().toString())+
|
|
" "+ka(f.getHours().toString())+":"+ka(f.getMinutes().toString())+":"+ka(f.getSeconds().toString())},escape:function(f){f&&(f=Object(pa.escape)(f),f=f.replace(/(?:\r\n|\r|\n)/g,"
"));return f},toFixed:function(f,h){Object(pa.isUndefined)(h)&&(h=2);return parseFloat(f.toFixed(h)).toString()},getAttribute:fa,$I:z,oT:function(f,h){var r=[];f=f.getElementsByTagName(h);if(0===f.length)return r;for(var n=0;n<f.length;++n){var e=f[n].outerHTML||f[n].xml;if(Object(pa.isUndefined)(e)||0!==e.indexOf("<"+
|
|
h+" "))e=(new XMLSerializer).serializeToString(f[n]);0>e.indexOf("</"+h+">")&&"/"!==e.charAt(e.length-2)&&(e=e.slice(0,e.length-1)+"/"+e.slice(e.length-1));r.push(e)}return r},bpa:function(f){return fa(f,"ActionType")?!0:0<f.getElementsByTagName("OnActivation").length},O$:function(f){return fa(f,"ActionType")?[f]:f.getElementsByTagName("Action")},P$:function(f){if(!f)return null;var h=fa(f,"ActionType");return h?h:(f=r(f))?z(f):null},tT:r,Vp:function(f,h,r){h=fa(f,h);Object(pa.isNull)(h)&&(f=f.getElementsByTagName(r),
|
|
h=0<f.length?f[0].textContent:null);return h},Kna:function(f,h,r){r=r.ra({x:Object(pa.isNull)(f)?0:parseFloat(f),y:Object(pa.isNull)(h)?0:parseFloat(h)});return{x:Object(pa.isNull)(f)?null:r.x,y:Object(pa.isNull)(h)?null:r.y}},noa:function(f,h,r){f=f.split(";");for(var n=[],e=0;e<f.length;++e){var z=f[e].split(",");z=new ra.c(parseFloat(z[0]),parseFloat(z[1]));z=new la.b(z.x,z.y);h.ra(z);"function"===typeof r&&r(z);n.push(z)}return n},aM:function(f,h,r){if("undefined"===typeof r||null===r)r=",";if(!(f instanceof
|
|
la.b))return null;f=new la.b(f.x,f.y);h&&h.ra(f);return f.x+r+f.y},QH:function(f,h,r){if("undefined"===typeof r||null===r)r=",";if("string"!==typeof f)return null;f=f.split(r);r=null;2===f.length?(r=new la.b(parseFloat(f[0]),parseFloat(f[1])),h&&h.ra(r)):Object(ma.j)("Invalid serialized string format.");return r},Cm:function(f,h,r,n){if("undefined"===typeof n||null===n)n=";";if("undefined"===typeof r||null===r)r=",";for(var e="",z=0;z<f.length;z++){var fa=new la.b(f[z].x,f[z].y);h&&h.ra(fa);e+=fa.x+
|
|
r;e+=fa.y+n}return e.substring(0,e.length-1)},In:function(f,h,r,n){var e=[];if("undefined"===typeof n||null===n)n=";";if("undefined"===typeof r||null===r)r=",";if(!f)return e;f=f.split(n);if(n===r)for(n=0;n+1<f.length;n+=2){var z=new la.b(f[n],f[n+1]);h&&h.ra(z);e.push(z)}else for(n=0;n<f.length;++n)f[n]&&(z=f[n].split(r),z[0]&&z[1]&&(z=new la.b(z[0],z[1]),h&&h.ra(z),e.push(z)));return e},Ut:f,BB:h,$L:function(h,r,n){var e=new ra.a;e.Ri(r);e.m_d*=-1;e.m_h=0;e.m_v=0;return f(h,e,n)},VR:function(f,
|
|
r,n){var e=new ra.a;e.Ri(r);e.m_d*=-1;e.m_h=0;e.m_v=0;return h(f,e,n)},Hk:n,Mi:function(f){return(new RegExp(/^#[0-9a-f]{6}$/i)).test(f)?new na.a(parseInt(f.substr(1,2),16),parseInt(f.substr(3,2),16),parseInt(f.substr(5,2),16)):null},AB:function(f){if(f){var h=new Date(Date.UTC(parseInt(f.substring(2,6),10),parseInt(f.substring(6,8),10)-1,parseInt(f.substring(8,10),10),parseInt(f.substring(10,12),10),parseInt(f.substring(12,14),10),parseInt(f.substring(14,16),10),0));f=f.substring(16);if(7===f.length){var r=
|
|
f.substring(0,1);if("Z"!==r){r="-"===r?1:-1;var n=parseInt(f.substring(4,6),10);h.setUTCHours(h.getUTCHours()+r*parseInt(f.substring(1,3),10));h.setUTCMinutes(h.getUTCMinutes()+r*n)}}return h}},Moa:y,rY:function(f,h){return"/"+f.replace(/ /g,"")+" "+h+" Tf"},$oa:w,Jia:function(f){var h=f.Es();return"font: "+w(f.Font)+" "+h+"pt; "+("text-align: "+f.TextAlign+"; ")+("text-vertical-align: "+f.TextVerticalAlign+"; ")+("color: "+n(f.TextColor))},Zpa:function(f){var h=f.Es();return"font-family: "+f.Font+
|
|
"; "+("font-size: "+h+"pt; ")+("text-align: "+f.TextAlign+"; ")+("color: "+n(f.TextColor))},QD:function(f){var h={Qf:f};if(!Object(pa.isNull)(f))for(f=f.split(" ");0<f.length;){var r=f.pop();if(-1!==sa.indexOf(r))switch(r){case "Tf":r=f.pop();var n=f.pop().slice(1);h.font={size:r+"pt",name:aa(n),Vpa:n};break;case "rg":r=f.pop();n=f.pop();var e=f.pop();h.color=y(Math.floor(255*e),Math.floor(255*n),Math.floor(255*r))}}return h},$na:function(f){if(4===f.length)return{r:parseInt(f.charAt(1),16)/16,te:parseInt(f.charAt(2),
|
|
16)/16,ge:parseInt(f.charAt(3),16)/16};if(7===f.length)return{r:parseInt(f.slice(1,3),16)/255,te:parseInt(f.slice(3,5),16)/255,ge:parseInt(f.slice(5,7),16)/255}},vfa:function(f){var h={};Object(pa.isNull)(f)||f.split(";").forEach(function(f){f=f.split(":");if(!(2>f.length)){var r=f[0].trim();f=f[1].trim();switch(r){case "text-align":h.textAlign=f;break;case "text-vertical-align":h.JZ=f;break;case "color":f.startsWith("rgb")?(f=/rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/.exec(f),null!==f&&(h.color=y(parseInt(f[1],
|
|
10),parseInt(f[2],10),parseInt(f[3],10)))):h.color=f;break;case "font":r=f.split(" ");var n=r[0];var e=r[1];/\d/.test(n)&&/pt/.test(n)&&(e=[e,n],n=e[0],e=e[1]);n.includes('"')&&(n=n.replace(/['"]+/g,""));"'"===f[0]&&(n=f.slice(1,f.lastIndexOf("'")),e=r[r.length-1]);h.font={name:aa(n),size:e}}}});return h},dL:aa,FW:function(f){return 0<f.indexOf("Bold")?"bold":"normal"},EW:function(f){return 0<f.indexOf("Italic")||0<f.indexOf("Oblique")?"italic":"normal"},gqa:da,fqa:ca,We:ha,Tt:function(f){var h=document.createElementNS("",
|
|
"measure");ha(h,"scale",f.scale);var r=document.createElementNS("","axis");f.axis.forEach(function(f){r.appendChild(x(f))});var n=document.createElementNS("","distance");f.distance.forEach(function(f){n.appendChild(x(f))});var e=document.createElementNS("","area");f.area.forEach(function(f){e.appendChild(x(f))});h.appendChild(r);h.appendChild(n);h.appendChild(e);return h},hs:function(f){var h,r={};da(r,"scale",f.getAttribute("scale"));r.axis=[];var n=f.querySelector("axis").querySelectorAll("numberformat");
|
|
for(h=0;h<n.length;h++)r.axis.push(ea(n[h]));r.distance=[];n=f.querySelector("distance").querySelectorAll("numberformat");for(h=0;h<n.length;h++)r.distance.push(ea(n[h]));r.area=[];n=f.querySelector("area").querySelectorAll("numberformat");for(h=0;h<n.length;h++)r.area.push(ea(n[h]));return r},$pa:x,moa:ea,tY:function(f,h,r){function n(f){var h="";f&&(h=Object.keys(f).map(function(h){return h+":"+f[h]}).join(";"));return h}var e=document.createElementNS("","contents-richtext"),z=document.createElementNS("",
|
|
"body");(r=n(r))&&z.setAttribute("style",r);var fa=document.createElementNS("","p"),ja=Object.keys(h).map(function(f){return parseInt(f,10)});ja.forEach(function(r,e){var z=h[r];r=f.slice(r,e===ja.length-1?f.length:ja[e+1]);e=document.createElementNS("","span");z=n(z);e.textContent=r;z&&e.setAttribute("style",z);fa.appendChild(e)});z.appendChild(fa);e.appendChild(z);return e},s7:function(f){function h(f){var r=[];if(!f)return r;f.childNodes.forEach(function(f){f.nodeType===Node.TEXT_NODE||1===f.childNodes.length&&
|
|
f.childNodes[0].nodeType===Node.TEXT_NODE?r.push(f):r=Object(ja.e)(r,h(f))});return r}function r(f){var h={};if(!f)return h;f.split(";").forEach(function(f){f=f.split(":");h[f[0]]=f[1]});return h}var n=f.querySelector("body");f=f.textContent;var e=null,z=null;if(n){var fa=0;z=r(n.getAttribute("style"));e={};e[fa]=z;n=h(n);n.length&&n.forEach(function(f){e[fa]=f.getAttribute?Object(ja.a)(Object(ja.a)({},z),r(f.getAttribute("style"))):Object(ja.a)({},z);fa+=f.textContent.length})}return{style:e,wca:z,
|
|
v6:f}},tga:function(f,h){var r,n=(new DOMParser).parseFromString(f,"text/xml"),e=null===(r=n.querySelector("annots"))||void 0===r?void 0:r.children;if(!e)return f;for(f=e.length-1;0<=f;f--)r=e[f],"link"!==r.tagName.toLowerCase()?r.remove():r.setAttribute("page",""+(h-1));return(new XMLSerializer).serializeToString(n)},sY:function(h,r){r=f(h.captionRect,r);h=JSON.parse(JSON.stringify(h));h.captionRect=r;return JSON.stringify(h)},WR:function(f,r){f=JSON.parse(f);r=h(f.captionRect,r);f.captionRect=r;
|
|
return f}}},function(ia,ba,e){function ea(f,h){var r=this;aa.a.call(this);this.iv=z.Annotations.ha.zc.F6();this.ba=ea.Eaa(h)(f);this.ba.GY(function(f){"pagesUpdated"===f.type&&(r.Gq=[],r.nu={});r.trigger(f.type,[f.data])});this.type=h||"xod";this.filename="";this.P1=20;this.Gq=[];this.nu={}}function x(){return fa||ka}e.d(ba,"b",function(){return x});var ha=e(0);e.n(ha);var ca=e(2),da=e(28),aa=e(96);ia=e(51);var w=e(40),y=e(319),n=e(17),h=e(68),f=e(22),r=e(15),z=window;z.ci=z.ci||{};var fa=null,ka=
|
|
null,ja=[];z.Ya.eka=function(f){fa=f};z.Ya.NY=function(f){ka=f};z.Ya.Nia=function(f){ja=[];f=xc(f);for(var h=f.next();!h.done;h=f.next())ja.push(h.value.toLowerCase())};z.Ya.S$=function(){return ja};var pa=8;z.Ya.KN=function(){return pa};z.Ya.dO=function(f){pa=f;Object(w.b)("CANVAS_CACHE_SIZE",524288*f*f);z.ez=524288*f*f;z.lr=3*f;z.W_=n.i||n.n?25+15*f:25+30*f;var h=Object(da.a)();h&&h.Xia(f);switch(f){case 0:z.lr=0;Object(w.b)("CANVAS_CACHE_SIZE",0);z.ez=0;break;case 1:z.lr=0,Object(w.b)("CANVAS_CACHE_SIZE",
|
|
0)}};z.Ya.fO=function(f){var h=1+2*(f-1);--f;0>h&&(h=0);0>f&&(f=0);Object(w.b)("maxPagesBefore",f);Object(w.b)("maxPagesAhead",h)};z.Ya.dO(6);z.Ya.fO(5);ea.Events={DOCUMENT_COMPLETE:"documentComplete",DOCUMENT_READY:"documentReady",PAGES_DIFF:"pagesDiff",PAGES_UPDATED:"pagesUpdated",PAGES_AUTOFILLED:"pagesAutoFilled",CHANGE_PAGE_IDS:"changePageIds",LAYERS_UPDATED:"layersUpdated",BOOKMARKS_UPDATED:"bookmarksUpdated",PAGES_DOWNLOADED:"pagesDownloaded",EMBEDDED_THUMBNAIL_COMPLETE:"embeddedThumbnailComplete"};
|
|
var ma=Object.create({});ea.Eaa=function(f){Object(ha.isUndefined)(f)&&(f="xod");if(!ma.hasOwnProperty(f))throw Error('Document type "'+f+'" is not registered with Core.Document');return function(h){return new ma[f](h)}};ea.It=function(f,h,r){if(Object(ha.isUndefined)(f)||Object(ha.isUndefined)(h))return!1;r&&r.forEach(function(f){ea.prototype[f]=function(){return this.ba[f].apply(this.ba,arguments)}});ma[f]=h;Object(ca.b)('registered document type "'+f+'"');return!0};ea.Ila=function(f){return ma.hasOwnProperty(f)?
|
|
(delete ma[f],!0):!1};ea.prototype={Ml:function(){return this.type},sk:function(){return"webviewerServer"!==this.type?!1:this.ba.sk.apply(this.ba,arguments)},Eh:function(f){return this.ba.Eh.apply(this.ba,arguments)},dZ:function(f){this.ii(f);this.iv.qp(f)},H5:function(f){return this.ba.cancelLoadCanvas.apply(this.ba,arguments)},tu:function(f){return this.ba.tu.apply(this.ba,arguments)},Ev:function(){return this.ba.Ev.apply(this.ba,arguments)},GI:function(){return this.ba.getBookmarks.apply(this.ba,
|
|
arguments)},Gs:function(f){this.ba.Gs.apply(this.ba,arguments)},Hs:function(){return this.ba.Hs.apply(this.ba,arguments)},Wb:function(){return this.ba.getPageCount.apply(this.ba,arguments)},Baa:function(){return this.ba.getDestinations()},mb:function(){return this.ba.mb.apply(this.ba,arguments)},Oi:function(f,h,r){return this.ba.Oi.apply(this.ba,arguments)},ZT:function(f,h,r,n){var e=this;return r<=h?Object(ca.g)("End index must be greater than start index"):new Promise(function(z){e.dj(f,function(f){f=
|
|
f.nf();var e=8*h,fa=8*r;if(e>f.length||fa>f.length)return Object(ca.g)("Index out of bounds");for(var ja=[];e<fa;e+=8)ja.push({x1:f[e],y1:f[e+1],x2:f[e+2],y2:f[e+3],x3:f[e+4],y3:f[e+5],x4:f[e+6],y4:f[e+7]});z(ja);n&&n(ja)})})},FC:function(f,h,r){return this.ba.FC.apply(this.ba,arguments)},co:function(f,h,r){return this.ba.co.apply(this.ba,arguments)},getMetadata:function(){return this.ba.getMetadata.apply(this.ba,arguments)},qk:function(){return this.ba.qk.apply(this.ba,arguments)},nC:function(){return this.ba.nC?
|
|
this.ba.nC():[]},JC:function(){return this.ba.JC?this.ba.JC.apply(this.ba,arguments):!1},Xs:function(f){var h=this;return new Promise(function(r){h.ba.Xs.call(h.ba,function(){r();f&&f()})})},jo:function(){return this.ba.jo()},l9:function(){return this.ba.drawWatermark.apply(this.ba,arguments)},mt:function(f,h,r){var n=this,e=this;return new Promise(function(z,fa){n.ba.loadAsync.call(n.ba,f,function(f){if(f)fa(f);else{for(var r=e.Qb(),n=r.length,ja=e.Yd(),w=0;w<n;++w)r[w].ii(ja);z()}h&&h(f);return e},
|
|
r)})},Oy:function(f){return this.ba&&this.ba.updateRasterizerOptions?(this.ba.updateRasterizerOptions.apply(this.ba,[f]),!0):!1},yV:function(f,h,r,n,e,z){Object(ca.d)("8.3","loadCanvasAsync",["loadCanvas"]);return this.nt(f,h,r,n,e,z)},nt:function(f,r,n,e,z,fa){f=Object(h.b)(f,r,n,e,z,fa);var ja=Object(h.c)(this.mb(f.pageNumber),f);f.getZoom=function(){return ja};return this.ba.loadCanvasAsync(f)},AV:function(f,h){var r=this;return new Promise(function(n){r.dj(f,function(f){if(!f)return n("");f=f.Rb;
|
|
n(f);h&&h(f)})})},SB:function(f){return this.ba.extractXFDF.apply(this.ba,arguments)},DV:function(f,h){Object(ca.d)("8.3","loadThumbnailAsync",["loadThumbnail"]);return this.AK(f,h)},AK:function(f,h){return this.ba.loadThumbnailAsync.apply(this.ba,arguments)},Zw:function(f){this.ba&&this.ba.Zw&&this.ba.Zw(f)},UD:function(f){return this.ba.UD.apply(this.ba,arguments)},lE:function(f){return this.ba.lE.apply(this.ba,arguments)},Gf:function(){return this.ba.Gf.apply(this.ba,arguments)},Zq:function(f){Object(ca.d)("8.0",
|
|
"setOfflineModeEnabled",["enableOfflineMode","disableOfflineMode"]);return this.ba.Zq.apply(this.ba,arguments)},J9:function(){return this.ba.Zq.call(this.ba,!0)},Q7:function(){return this.ba.Zq.call(this.ba,!1)},Cy:function(f,h){var r=this;return new Promise(function(n,e){try{r.ba.Cy.apply(r.ba,[function(){setTimeout(function(){return n()});f&&f()},h])}catch(qa){e(qa)}})},Md:function(){this.iv.se();this.Qj in this.ba&&this.Qj.Md();return this.ba.unloadResources.apply(this.ba,arguments)},qt:function(f,
|
|
h){return this.ba.qt.apply(this.ba,arguments)},rx:function(f,h){return this.ba.rx.apply(this.ba,arguments)},vq:function(){return this.ba.vq.apply(this.ba,arguments)},Dn:function(f){return this.ba.Dn.apply(this.ba,arguments)},fba:function(){return this.ba.maxViewportZoom},QX:function(){var f=this.Gq.shift();Object(ca.b)("text","Text was removed at page index "+f);this.ba.ca[f].text=null;delete this.nu[f]},BL:function(){for(var f=this.Gq.length-1;0<=f;--f)this.QX()},dj:function(f,h){var r=f-1;this.nu[r]?
|
|
this.Gq.splice(this.Gq.indexOf(r),1):(this.Gq.length===this.P1&&this.QX(),this.nu[r]=!0);this.Gq.push(r);Object(ca.b)("text","Load text for pageIndex "+r);var n=this;return this.ba.loadTextData.call(this.ba,f,function(f){h(f);n.nu[r]||(n.ba.ca[r].text=null)})},FE:function(f){return this.ba.FE.apply(this.ba,[f])},ou:function(f,h,r,n){return this.ba.textSearch.call(this.ba,f,h,r,n)},getFileData:function(f){f=void 0===f?{}:f;return this.ba.getFileData.apply(this.ba,[f,this.Yd()])},Is:function(f,h,r){return this.ba.Is(f,
|
|
h,r)},Ks:function(){return this.ba.Ks?this.ba.Ks.apply(this.ba):null},UI:function(){return this.filename},kM:function(f){Object(ha.isString)(f)&&(this.filename=f)},Dy:function(f,h){return this.ba.Dy?this.ba.Dy.apply(this.ba,arguments):null},vw:function(f){return this.ba.vw?this.ba.vw.apply(this.ba,arguments):null},AC:function(f){return this.ba.AC(f)},Hf:function(f,h,r){return this.ba.Hf.apply(this.ba,arguments)},Vh:function(f,h){return this.ba.Vh.apply(this.ba,arguments)},yg:function(f,h){return f.length>=
|
|
this.getPageCount()&&!h?Promise.reject("doc.removePages: unable to remove pages: "+f+". This would result in no pages remaining. Please leave at least one page."):this.ba.yg.apply(this.ba,arguments)},Dl:function(){return this.ba.Dl.apply(this.ba,arguments)},oh:function(f,h){return this.ba.oh.apply(this.ba,arguments)},Ie:function(f,h){var r=this,n=f.find(function(f){return 0>=f||f>r.Wb()});if(n)throw Error('Page number "'+n+'" is not a valid page number');return this.ba.Ie.apply(this.ba,arguments)},
|
|
uD:function(f){for(var h=[],r=0;r<arguments.length;++r)h[r-0]=arguments[r];return this.ba.uD.apply(this.ba,h)},Fh:function(f,h,r,n,e){return this.ba.Fh.apply(this.ba,arguments)},Un:function(){return this.ba.getLayersArray.apply(this.ba,arguments)},Bo:function(){var f=this.ba.Bo.apply(this.ba,arguments);this.nu={};this.trigger(ea.Events.LAYERS_UPDATED);return f},AE:function(f){return this.ba.AE.apply(this.ba,arguments)},ym:function(){return this.ba.ym.apply(this.ba,arguments)},get ne(){return this.ba.ca.length},
|
|
ld:function(f){return this.ba.ca[f-1].width},kd:function(f){return this.ba.ca[f-1].height},hc:function(f){return f>this.getPageCount()?(Object(ca.j)("Attempting to get page matrix for page "+f+" that doesn't exist."),null):this.ba.ca[f-1].Pa},Nh:function(f){return this.ba.Nh.apply(this.ba,arguments)},hk:function(){return this.ba.hk.apply(this.ba,arguments)},ad:function(f){return this.ba.ca[f-1].rotation},hJ:function(f){return this.ba.ca[f-1].text},$ja:function(f,h){"string"===typeof h&&(this.ba.ca[f-
|
|
1].text=h)},pba:function(f){return this.ba.ca[f-1].wn},HT:function(f){return this.ba.ca[f-1].links},Qb:function(){var f=this;this.ba.ca.forEach(function(h){h.ii(f.Yd())});return this.ba.ca},Bs:function(){if(this.ba&&this.ba.Bs)return this.ba.Bs()},rd:function(){Object(ca.d)("8.3","documentCompletePromise",["getDocumentCompletePromise"]);return this.mT()},mT:function(){return this.ba.rd},Rh:function(f,h,r){return this.ba.Rh.apply(this.ba,arguments)},Bm:function(f){this.ba.Bm.apply(this.ba,arguments)},
|
|
Fda:function(){return this.ba.pq},Do:function(f){this.ba.Do.apply(this.ba,arguments)},Al:function(f){f=void 0===f?{}:f;return"boolean"===typeof f?(f?Object(ca.j)("Calling enableColorSeparations with a boolean parameter is deprecated since version 8.0. Please call it without a parameter"):Object(ca.j)("Calling enableColorSeparations with a boolean parameter is deprecated since version 8.0. Please call disableColorSeparations."),this.ba.Al.apply(this.ba,arguments)):"object"===typeof f&&f.checkIfBaseColorsUsed?
|
|
this.ba.Al.apply(this.ba,[!0,f]):this.ba.Al.call(this.ba,!0)},D7:function(){return this.ba.Al.call(this.ba,!1)},iC:function(){return this.ba.iC()},fC:function(){return this.ba.fC()},jC:function(){return this.ba.jC.apply(this.ba,arguments)},PB:function(f,h){return this.ba.PB.apply(this.ba,arguments)},Gl:function(f,h){return 0===f.length?[]:this.ba.Gl.apply(this.ba,arguments)},Go:function(){return this.ba.Go()},Laa:function(f){f=void 0===f?2:f;var h=this,r,n,e,z,fa,ja;return $h(function(w){switch(w.La){case 1:if(1>
|
|
f||3<f)throw Error("Aggression level must be between 1 and 3");r=h.ba;n=r.Tb;if(n.fileSize)return w.return(n.fileSize);if(!n.url){if(n.file&&n.file.size)return w.return(n.file.size);w.La=2;break}e=[function(){return Promise.resolve(r.fileSize)},function(){return Object(y.a)(n.url).then(function(f){return f["content-length"]})},function(){return fetch(n.url).then(function(f){return f.blob()}).then(function(f){return f.size})}].slice(0,f);z=0;case 3:if(!(z<e.length)){w.La=2;break}fa=e[z];w.Hv=6;return Af(w,
|
|
fa(),8);case 8:ja=w.wf;ja=parseInt(ja,10);if(!isNaN(ja)&&"number"===typeof ja)return w.return(ja);rg(w,4);break;case 6:sg(w);case 4:z++;w.La=3;break;case 2:throw Error("Could not determine file size");}})},bca:function(h,n){var e=this;return new Promise(function(z){e.dj(h,function(){var fa=new f.g(e),ja=new r.e;ja.ab(n.x1,n.y1,n.x2,n.y2);fa.dQ(h,ja);z(fa.Yb)})})},Ur:function(f){return this.ba.Ur.call(this.ba,this.Yd(),f)},Rj:function(){return Object(ha.isUndefined)(this.ba.Rj)?!1:this.ba.Rj}};Object(ha.extend)(ea.prototype,
|
|
Object.create(aa.a.prototype));Object(ia.a)(ea);ba.a=ea},function(ia,ba,e){function ea(e,aa){aa||(aa=new ca(0,0,0));return window.Proxy?new window.Proxy(aa,{set:function(w,y,n){switch(y){case "R":case "G":case "B":case "A":e.Ma()}w[y]=n;return!0}}):aa}e.d(ba,"b",function(){return ea});var x=e(0);e.n(x);var ha=e(6),ca=function(){function e(aa,w,y,n){this.A=this.B=this.G=this.R=0;aa instanceof e?(this.R=aa.R,this.G=aa.G,this.B=aa.B,this.A=aa.A):Object(x.isArray)(aa)?1===aa.length?(this.B=this.G=this.R=
|
|
aa=Math.round(255*(aa[0]||0)),this.A=1):3===aa.length?(this.R=Math.round(255*(aa[0]||0)),this.G=Math.round(255*(aa[1]||0)),this.B=Math.round(255*(aa[2]||0)),this.A=1):4===aa.length&&(w=aa[1]||0,y=aa[2]||0,n=aa[3]||0,this.R=Math.round(255*(1-(aa[0]||0))*(1-n)),this.G=Math.round(255*(1-w)*(1-n)),this.B=Math.round(255*(1-y)*(1-n)),this.A=1):Object(x.isString)(aa)&&"#"===aa[0]?(aa=ha.a.Mi(aa),this.R=aa.R,this.G=aa.G,this.B=aa.B,this.A=1):(Object(x.isUndefined)(aa)||(this.R=Number(aa)),Object(x.isUndefined)(w)||
|
|
(this.G=Number(w)),Object(x.isUndefined)(y)||(this.B=Number(y)),Object(x.isUndefined)(n)?Object(x.isUndefined)(aa)&&Object(x.isUndefined)(w)&&Object(x.isUndefined)(y)||(this.A=1):this.A=Number(n))}e.prototype.toString=function(){var e=this.R+","+this.G+","+this.B;return"undefined"===typeof this.A?"rgb("+e+")":"rgba("+e+","+this.A+")"};e.prototype.fr=function(){return ha.a.Hk(this)};e.prototype.KZ=function(){return ha.a.toFixed(this.R/255,3)+" "+ha.a.toFixed(this.G/255,3)+" "+ha.a.toFixed(this.B/255,
|
|
3)+" rg"};e.prototype.tq=function(){return 0===this.R&&0===this.G&&0===this.B&&1===this.A};e.prototype.gD=function(){return 0===this.A};return e}();ba.a=ca},function(ia,ba,e){var ea=e(1),x=e(22),ha=e(0);e.n(ha);var ca=e(2),da=e(11),aa=e(106),w=e(110),y=e(28),n=e(62),h=e(123),f=e(38),r=e(125),z=e(7),fa=e(152),ka=e(58),ja=e(29),pa=e(37),ma=e(344),la=e(146),na=e(55),ra=e(59),sa=e(75),Da=e(5),qa=e(19),va=e(3),oa=e(16),ua=e(135),Ca=e(51);ia=e(240);var ya=e(104),Ea=e(34),Aa=e(130),Fa=e(15),Ga=e(215),Ba=
|
|
e(10),Ia=e(350),Ja=e(224),za=e(8),xa=e(17),Ka=e(122),ta=window,Ha=function(f){function h(){for(var h=[],r=0;r<arguments.length;r++)h[r]=arguments[r];return f.apply(this,h)||this}Object(ea.c)(h,f);return h}(Error),Na=function(){function ba(){var e;this.fA=!0;this.select=Object(ha.bind)(this.select,this);this.SnapMode=va.k;this.ba=null;this.defaults={FitMode:this.Bj.wF,DisplayMode:xa.i?new n.a(this,f.a.Tk):new h.a(this,f.a.Tk),Zoom:1};this.la=new da.a(this);this.Fea=new aa.a(this);this.$G=new w.a(this);
|
|
this.xa=new r.a(this);this.El={};this.i0=3;this.CY();this.vS=this.NE=this.$o=!1;this.cursor="default";this.eF=this.px=!1;this.yW=function(f,h,r){r(f)};var z=new Da.K(this,void 0);z.cF({Icon:"SBRejected",Width:23,Height:23,FillColor:new za.a(0,0,0,1)});var ja=new Da.K(this,void 0);ja.cF({Icon:"SHAccepted",Width:23,Height:23,FillColor:new za.a(0,0,0,1)});var y=new Da.K(this,void 0);y.cF({Icon:"Dot",Width:23,Height:23,FillColor:new za.a(0,0,0,1)});this.no=new Set;this.VM=(e={},e[va.m.ARROW]=new Da.f(this,
|
|
void 0),e[va.m.CALLOUT]=new Da.g(this,void 0),e[va.m.ELLIPSE]=new Da.q(this,void 0),e[va.m.ARC]=new Da.c(this,void 0),e[va.m.FREEHAND]=new Da.u(this,void 0),e[va.m.FREEHAND_HIGHLIGHT]=new Da.v(this,void 0),e[va.m.FREETEXT]=new Da.w(this,void 0),e[va.m.DATE_FREETEXT]=new Da.o(this,void 0),e[va.m.LINE]=new Da.y(this,void 0),e[va.m.POLYGON]=new Da.E(this,void 0),e[va.m.POLYGON_CLOUD]=new Da.D(this,void 0),e[va.m.POLYLINE]=new Da.F(this,void 0),e[va.m.RECTANGLE]=new Da.H(this,void 0),e[va.m.DISTANCE_MEASUREMENT]=
|
|
new Da.p(this,void 0),e[va.m.PERIMETER_MEASUREMENT]=new Da.C(this,void 0),e[va.m.ARC_MEASUREMENT]=new Da.d(this,void 0),e[va.m.AREA_MEASUREMENT]=new Da.e(this,void 0),e[va.m.RECTANGULAR_AREA_MEASUREMENT]=new fa.a(this,void 0),e[va.m.CLOUDY_RECTANGULAR_AREA_MEASUREMENT]=new Da.j(this,void 0),e[va.m.ELLIPSE_MEASUREMENT]=new Da.r(this,void 0),e[va.m.COUNT_MEASUREMENT]=new Da.m(this,void 0),e[va.m.SIGNATURE]=new Da.L(this,void 0),e[va.m.STAMP]=new Da.N(this,void 0),e[va.m.FILEATTACHMENT]=new Da.t(this,
|
|
void 0),e[va.m.RUBBER_STAMP]=new Da.K(this,void 0),e[va.m.FORM_FILL_CROSS]=z,e[va.m.FORM_FILL_CHECKMARK]=ja,e[va.m.FORM_FILL_DOT]=y,e[va.m.STICKY]=new Da.O(this,void 0),e[va.m.HIGHLIGHT]=new Da.R(this,void 0),e[va.m.SQUIGGLY]=new Da.T(this,void 0),e[va.m.STRIKEOUT]=new Da.U(this,void 0),e[va.m.UNDERLINE]=new Da.W(this,void 0),e[va.m.REDACTION]=new Da.J(this,void 0),e[va.m.EDIT]=new Da.a(this,void 0),e[va.m.PAN]=new Da.B(this,void 0),e[va.m.CONTENT_EDIT]=new Da.l(this,void 0),e[va.m.TEXT_SELECT]=new Da.S(this,
|
|
void 0),e[va.m.CROP]=new Da.n(this,void 0),e[va.m.MARQUEE]=new Da.A(this,void 0),e[va.m.ERASER]=new Da.s(this,void 0),e[va.m.TEXT_FORM_FIELD]=new Da.Q(this,void 0),e[va.m.SIG_FORM_FIELD]=new Da.M(this,void 0),e[va.m.CHECK_BOX_FIELD]=new Da.i(this,void 0),e[va.m.RADIO_FORM_FIELD]=new Da.G(this,void 0),e[va.m.LIST_BOX_FIELD]=new Da.z(this,void 0),e[va.m.COMBO_BOX_FIELD]=new Da.k(this,void 0),e[va.m.CHANGEVIEW]=new Da.h(this,void 0),e);this.IK=[va.k.POINT_ON_LINE,va.k.LINE_MID_POINT,va.k.LINE_INTERSECTION,
|
|
va.k.PATH_ENDPOINT];this.yea=this.IK.reduce(function(f,h){return f|h})}ba.prototype.Jla=function(){var f=this;Object.keys(this.links).forEach(function(h){if(f.links.hasOwnProperty(h)){h=f.links[parseInt(h,10)];for(var r=0;r<h.length;++r)h[r].style&&(h[r].style.border="")}})};ba.prototype.SN=function(f){this.ba&&(this.trigger(Ba.e.MOUSE_LEFT_UP,f),this.Ha&&this.Ha.mouseLeftUp&&this.Ha.mouseLeftUp(f),this.Jla())};ba.prototype.RN=function(f){this.trigger(Ba.e.MOUSE_LEFT_DOWN,f);this.Ha&&this.Ha.mouseLeftDown&&
|
|
(this.Ha.mouseLeftDown(f),this.Ha.isSelecting&&this.Ha.isSelecting()||!(this.Ha instanceof Da.a||this.Ha instanceof Da.B)?this.$q("none"):this.$q("auto"))};ba.prototype.O0=function(f){this.trigger(Ba.e.CLICK,f)};ba.prototype.$0=function(f){this.trigger(Ba.e.TAP,f);this.Ha&&this.Ha.tap&&this.Ha.tap(f)};ba.prototype.Q0=function(f){this.trigger(Ba.e.DBL_CLICK,f);this.Ha&&this.Ha.mouseDoubleClick&&this.Ha.mouseDoubleClick(f)};ba.prototype.R0=function(f){this.trigger(Ba.e.KEY_DOWN,f);var h=f.code;this.eF&&
|
|
("ArrowLeft"===h?(f.preventDefault(),this.uf(this.jg()-1)):"ArrowRight"===h&&(f.preventDefault(),this.uf(this.jg()+1)));this.Ha&&this.Ha.keyDown&&this.Ha.keyDown(f)};ba.prototype.S0=function(f){this.trigger(Ba.e.KEY_UP,f);this.Ha&&this.Ha.rV&&this.Ha.rV(f)};ba.prototype.P0=function(f){this.Ha&&this.Ha.contextMenu&&this.Ha.contextMenu(f)};ba.prototype.T0=function(f){this.trigger(Ba.e.MOUSE_ENTER,f);this.Ha&&this.Ha.Rea&&this.Ha.Rea(f)};ba.prototype.TN=function(f){this.ba&&(this.trigger(Ba.e.MOUSE_MOVE,
|
|
f),this.Ha&&this.Ha.mouseMove&&this.Ha.mouseMove(f))};ba.prototype.U0=function(f){this.trigger(Ba.e.MOUSE_LEAVE,f);this.Ha&&this.Ha.mouseLeave&&this.Ha.mouseLeave(f)};ba.prototype.V0=function(f){this.trigger(Ba.e.MOUSE_RIGHT_DOWN,f);this.Ha&&this.Ha.mouseRightDown&&this.Ha.mouseRightDown(f)};ba.prototype.W0=function(f){this.trigger(Ba.e.MOUSE_RIGHT_UP,f);this.Ha&&this.Ha.Sea&&this.Ha.Sea(f)};ba.prototype.Z0=function(f){this.Ha&&this.Ha.VW&&this.Ha.VW(f)};ba.prototype.X0=function(f){this.Ha&&this.Ha.OV&&
|
|
this.Ha.OV(f)};ba.prototype.Y0=function(f){this.Ha&&this.Ha.PV&&this.Ha.PV(f)};ba.prototype.i5=function(){function f(f){var r=h.ba.Qb()[f-1];if(r){var n,fa=h.ta().Pb(),ja=fa.length;if(e&&e!==r){for(n=0;n<ja;++n){var w=fa[n];w.ko()&&w.pageNumber===z&&fa[n].Tf("PC",new ta.Annotations.ha.zc.xb.nz("Close",h,{}))}e.Tf("C",new ta.Annotations.ha.zc.xb.nz.create("Close",h,{}))}e=r;z=f;r.Tf("O",new ta.Annotations.ha.zc.xb.nz.create("Open",h,{}));for(n=0;n<ja;++n)w=fa[n],w.ko()&&w.pageNumber===f&&fa[n].Tf("PO",
|
|
new ta.Annotations.ha.zc.xb.nz("Close",h,{}))}}var h=this,r=this.Xa();r.addEventListener("dragstart",function(f){"IMG"===f.target.nodeName&&f.preventDefault()});r.addEventListener("touchstart",function(f){h.RN(f)});r.addEventListener("touchmove",function(f){h.lc={x:f.touches[0].pageX,y:f.touches[0].pageY};h.TN(f)});r.addEventListener("touchend",function(f){h.SN(f);h.rG=!1});r.addEventListener("pointerdown",function(f){h.Z0(f)});r.addEventListener("dblclick",function(f){h.Q0(f)});r.addEventListener("click",
|
|
function(f){h.O0(f)});r.addEventListener("tap",function(f){h.$0(f)});window.addEventListener("keydown",function(f){h.R0(f)});window.addEventListener("keyup",function(f){h.S0(f)});r.addEventListener("contextmenu",function(f){h.P0(f)});r.addEventListener("mouseenter",function(f){h.T0(f)});r.addEventListener("mouseleave",function(f){h.U0(f)});r=h.Xa();var n=h.jb();n&&(r=n);r.addEventListener("mousedown",function(f){if(n){var r=n.clientWidth,e=n.clientHeight,z=n.getBoundingClientRect();if(f.clientX>z.left+
|
|
r||f.clientY>z.top+e)return}1===f.which?(h.RN(f),h.rG=!0):3===f.which?(h.V0(f),h.zP=!0):2===f.which&&(h.X0(f),h.AP=!0)});document.addEventListener("mouseup",function(f){1===f.which&&h.rG?(h.SN(f),h.rG=!1):3===f.which&&h.zP?(h.W0(f),h.zP=!1):2===f.which&&h.AP&&(h.Y0(f),h.AP=!1)});document.addEventListener("mousemove",function(f){h.lc={x:f.pageX,y:f.pageY};h.TN(f)});h.xa.Vc().Vo()&&n.addEventListener("scroll",Object(ha.bind)(h.onscroll,h));window.addEventListener("resize",Object(ha.bind)(h.resize,h));
|
|
h.addEventListener(ba.yf.b1,function(){h.Ua.pause()});h.addEventListener(ba.yf.p1,function(){h.Ua.resume()});var e=null,z;h.addEventListener(ba.yf.pF,function(){h.ba&&(h.ba.Tf("Init",new ta.Annotations.ha.zc.xb.DN.create("Open",h,{})),h.ba.Tf("Open",new ta.Annotations.ha.zc.xb.DN.create("Open",h,{})),f(1))});h.addEventListener(ba.Events.DOCUMENT_UNLOADED,function(){h.jia()});h.addEventListener(ba.Events.PAGE_NUMBER_UPDATED,function(r){f(r);h.ba.Bm({currentPage:r})});h.addEventListener(ba.yf.IF,function(f){if(h.px){h.oB();
|
|
var r=[];f.forEach(function(f){h.Xh[f]&&r.push(f)});h.Xh.fill(!1);r.forEach(function(f){h.Xh[f]=!0});var n=h.la.Pb().filter(function(h){return-1===f.indexOf(h.ua()-1)});h.la.Wj(n,!0,!0)}h.ba.Bm({visiblePages:f});var e=Object(ha.intersection)(f,h.wv);e.length&&(clearTimeout(h.O4),h.O4=window.setTimeout(function(){h.wm.sm("DocumentViewer.renderRequest",{type:"annotations",pages:e})},80))});h.addEventListener(ba.yf.Z_,function(f){h.am=!1;h.ru();f?(h.loop=!0,h.TM(h.LR,h.U6,!1)):h.loop=!1});h.addEventListener(ba.yf.uN,
|
|
function(){setTimeout(function(){h.tX();h.Ye()},200)})};ba.prototype.resize=function(f){f&&f.target!==window||!this.ba||!this.xa.Vc().Vo()||(this.Ih===this.Bj.Zoom?(this.MA(),this.xa.Vc().Pf(),this.onscroll()):(f=this.Ih(),f!==this.ia.Nl?(this.Or(f),this.uH()):(this.xa.Vc().Pf(),this.uH(),this.onscroll())))};ba.prototype.uH=function(){var f=this.jb(),h=f.getBoundingClientRect().width;h=(f.scrollWidth-h+this.yC())/2;Object(oa.h)(f,h)};ba.prototype.zia=function(){var f=this.jb();Object(ua.c)(getComputedStyle(f).direction);
|
|
this.resize()};ba.prototype.lB=function(){return Object(ea.b)(this,void 0,void 0,function(){var f,h,r,n=this;return Object(ea.d)(this,function(e){switch(e.label){case 0:return f=Object.values(this.Pw()).filter(function(f){return f instanceof Da.u}),h=[],f.forEach(function(f){f.annotation&&h.push(f.complete())}),r=this.la.Tn(),r.If()?[4,r.Yj()]:[3,2];case 1:e.ea(),e.label=2;case 2:return[4,Promise.all(h)];case 3:return e.ea(),this.GB=this.GB.then(function(){if(n.ba)return n.nj(!0),Promise.resolve(n.se()).then(function(){n.trigger(Ba.e.DOCUMENT_UNLOADED);
|
|
n.fN.style.width="0px";n.CY()});var f=Object(na.d)(n.$v);f&&f()}),[2,this.GB]}})})};ba.prototype.CY=function(){this.ba=null;this.$v=Promise.resolve();this.GB=Promise.resolve();this.Ua=new ma.a(this);this.xa.EY(this.defaults.DisplayMode);this.Ih=this.defaults.FitMode;this.by=!1;this.uV=[];this.Xd=1;this.links={};this.ag=[];this.Ja||(this.Ja=Promise.resolve(null));this.ia=new ya.a(null);this.lc=this.Qe=null;this.margin=4;this.su=new x.h;this.My=new x.b;this.ce=this.dW=this.AD=null;this.HK=this.am=this.EJ=
|
|
this.loop=!1;this.UV=this.WV=this.VV=null;this.ax=!1;this.HZ="rgba(0, 0, 200, 0.3)";this.VL="rgba(255, 255, 0, 0.5)";this.TG="rgba(248, 153, 57, 0.5)";var f=this,h=Object.keys(this.El);0<h.length&&h.forEach(function(h){f.El[h].then(function(f){f.destroy()})});this.El={};this.yI=[];this.wm=new la.a;this.wm.JX("DocumentViewer.renderRequest",{read:function(h){h.pH&&f.xa.Pf();f.Rla();var r=f.xa.ve().map(function(f){return f-1});f.Ua.uu(r);h=f.oX();r={Ze:r,xia:h};f.xa.IC(h);return r},consolidateChanges:function(f){var h=
|
|
f.filter(function(f){return"pages"===f.type}),r=f.filter(function(f){return"annotations"===f.type}),n=f.filter(function(f){return"layout"===f.type});f=f.filter(function(f){return"retainScroll"===f.type});var e=[];h.length&&e.push({type:"pages",pages:ha.union.apply(void 0,h.map(function(f){return f.pages||[]})),useVisiblePages:h.some(function(f){return!!f.useVisiblePages}),check:h.every(function(f){return!!f.check})});r.length&&e.push({type:"annotations",pages:ha.union.apply(void 0,r.map(function(f){return f.pages||
|
|
[]}))});n.length&&e.push({type:"layout",pages:ha.union.apply(void 0,n.map(function(f){return f.pages||[]}))});return e=e.concat(f)},write:function(h,r){var n={pH:!1};r.forEach(function(r){if("pages"===r.type){var e=r.useVisiblePages?Object(ha.union)(h.Ze,r.pages):Object(ha.intersection)(h.Ze,r.pages);0<e.length&&(r.check?f.Ua.R5():f.Ye(e.map(function(f){return f+1})))}else"annotations"===r.type?(e=Object(ha.intersection)(h.Ze,r.pages),f.wv=Object(ha.difference)(f.wv,e),f.Ua.RX(),e.forEach(function(h){f.Jn(h+
|
|
1)})):"layout"===r.type?(n.pH=!0,e=f.xa.wh().map(function(f){return f-1}).concat(r.pages),r.pages.forEach(function(h){f.ia.sM(h,void 0)}),e.length&&(e.forEach(function(h){f.Ua.WC(f.ia.ah(h))}),f.wm.sm("DocumentViewer.renderRequest",{type:"pages",pages:e})),f.Ua.dN(f.bc())):"retainScroll"===r.type&&f.v_(h.xia)});return n},clearCache:function(){f.nj(!1,!1,!1)}},{pH:!0},!1);this.ND=[];this.wv=[];this.QA=null;this.MQ=Promise.resolve();this.EM=!1};ba.prototype.dU=function(){this.Ai||(this.Ai=this.Xa().querySelector("#virtualListContainer"));
|
|
return this.Ai};ba.prototype.cU=function(){this.zi||(this.zi=this.Xa().querySelector("#virtualListBody"));return this.zi};ba.prototype.oX=function(){var f=this.jg(),h=this.jb(),r=h.scrollTop,n=this.dU(),e=this.cU();h=Object(oa.d)(h);var z=r||0,fa=this.Xa().querySelector("#pageContainer"+f),ja=n?n.offsetLeft:0,w=e?e.offsetLeft:0;n=n?n.offsetTop:0;e=e?e.offsetTop:0;fa&&(h-=fa.offsetLeft+fa.parentNode.offsetLeft+ja+w,z-=fa.offsetTop+fa.parentNode.offsetTop+n+e);return{wc:f-1,x:h,y:z,offset:r}};ba.prototype.v_=
|
|
function(f){var h=this.Xa().querySelector("#pageContainer"+(f.wc+1)),r=f.x,n=f.y,e=this.dU(),z=this.cU(),fa=e?e.offsetLeft:0,ja=z?z.offsetLeft:0,w=e?e.offsetTop:0;z=z?z.offsetTop:0;h&&(r+=h.offsetLeft+h.parentNode.offsetLeft+fa+ja,n+=h.offsetTop+h.parentNode.offsetTop+w+z);!h&&e&&(n+=this.xa.ya.TT(f.wc));this.scrollTo(r,n)};ba.prototype.o0=function(f){var h={};Object(ha.isUndefined)(f)||(Object(ha.isObject)(f)?h=f:h.docId=f);"onError"in h||(h.onError=function(f){throw Error("Error loading document: "+
|
|
f);});"getPassword"in h||(h.getPassword=function(){throw Error("Document requires a password. If you wish to process this type of document please define a getPassword callback.");});"docId"in h||(h.docId=null);h.licenseKey=h.licenseKey||h.l;"workerTransportPromise"in h||("pdf"===h.type?h.workerTransportPromise=Object(pa.f)(h.pdfBackendType,h.workerHandlers,h.licenseKey):"office"===h.type&&(h.workerTransportPromise=Object(ka.i)(h.officeBackendType,h.workerHandlers,h.licenseKey)));return h};ba.prototype.qX=
|
|
function(f){f=f.map(function(f){return f-1});this.wm.sm("DocumentViewer.renderRequest",{type:"layout",pages:f});this.wm.sm("DocumentViewer.renderRequest",{type:"retainScroll"})};ba.prototype.OT=function(){return this.wm};ba.prototype.ES=function(){if(this.px){for(var f=this.xa.ve(),h=0;h<f.length;++h){var r=f[h]-1;if(!this.Xh[r])return r}return null}r=this.Xd-1;f=this.Xh;for(h=r;!Object(ha.isUndefined)(f[r])||!Object(ha.isUndefined)(f[h]);){if(!1===f[r])return r;if(!1===f[h])return h;--h;++r}return null};
|
|
ba.prototype.GS=function(f){var h=this;f=f.pages;h.IJ||-1===f.indexOf(1)||(h.trigger(ba.yf.pF),h.IJ=!0);var r=h.Ua.Lba();f.forEach(function(f){0<=r.indexOf(f-1)&&h.Jn(f)});var n=h.ES();null===n&&h.trigger(ba.Events.ANNOTATIONS_LOADED);h.ex=!1;h.wv=h.wv.concat(f.map(function(f){return f-1}));h.oB(n)};ba.prototype.h8=function(){this.EM=!0};ba.prototype.oB=function(f){Object(ca.b)("Request annotations for page "+f);if(!this.ex)if(f=Object(ha.isUndefined)(f)?this.ES():f,null!==f){var h=[f];this.EM&&(h=
|
|
[],this.Xh.forEach(function(f,r){f||h.push(r)}),this.EM=!1);this.oea(h,this.$v)}else this.ex=!1};ba.prototype.IV=function(f){var h=this;f.forEach(function(f){h.Xh[f-1]=!0})};ba.prototype.oea=function(f,h){var r=this;r.ex=!0;this.ND=this.ND.concat(f);this.QA||(this.QA=window.setTimeout(function(){if(r.et(h)){var f=r.ND;r.ND=[];r.QA=null;r.Gna=r.MQ.then(function(){if(r.et(h)){var n=f.map(function(f){return f+1});r.la.KX(n);for(var e=0;e<f.length;++e)r.la.qea(f[e]);return(e=r.getDocument())?e.SB(n):
|
|
null}}).then(function(f){return new Promise(function(n){return Object(ea.b)(this,void 0,void 0,function(){return Object(ea.d)(this,function(){r.et(h)&&f?f.hasOwnProperty("xfdfString")?r.yW(f.xfdfString,f.pages,function(e){var z=this;if(r.et(h)&&!Object(ha.isUndefined)(e)){var fa=r.Z$(f.xfdfString===e&&!f.external);r.IV(f.pages);r.la.QJ(e,fa).then(function(){return Object(ea.b)(z,void 0,void 0,function(){return Object(ea.d)(this,function(){r.GS(f);n();return[2]})})})}else n()}):f.hasOwnProperty("annots")&&
|
|
(r.la.Ci(f.annots,{imported:!0}),r.la.kf(f.annots),r.IV(f.pages),r.GS(f),n()):(r.trigger(ba.Events.ANNOTATIONS_LOADED),n());return[2]})})})})}},20))};ba.prototype.l4=function(f){return Object(ea.b)(this,void 0,void 0,function(){var h,r,n,e,z,fa,ja=this;return Object(ea.d)(this,function(w){switch(w.label){case 0:h=function(f){var h,n,e,z,fa,w,y;return Object(ea.d)(this,function(aa){switch(aa.label){case 0:return r.ba?[4,r.ba.AV(f)]:[2,{value:void 0}];case 1:h=aa.ea(),n=Object(Ja.c)(h),e=function(h){var n,
|
|
e;return Object(ea.d)(this,function(z){switch(z.label){case 0:return r.ba?[4,r.ba.ZT(f,h.index,h.index+h.content.length)]:[2,{value:void 0}];case 1:return n=z.ea(),e=Object(Ja.b)(n),e.forEach(function(r){Object(Ja.a)(ja.la,r,f,h.content)}),[2]}})},z=0,fa=n,aa.label=2;case 2:if(!(z<fa.length))return[3,5];w=fa[z];return[5,e(w)];case 3:y=aa.ea();if("object"===typeof y)return[2,y];aa.label=4;case 4:return z++,[3,2];case 5:return 0<n.length&&r.la.Sc(f,!1,!0),[2]}})},r=this,n=0,e=f,w.label=1;case 1:if(!(n<
|
|
e.length))return[3,4];z=e[n];return[5,h(z)];case 2:fa=w.ea();if("object"===typeof fa)return[2,fa.value];w.label=3;case 3:return n++,[3,1];case 4:return[2]}})})};ba.prototype.OU=function(){return this.fA};ba.prototype.oja=function(f){Object(ca.d)("8.0","setEnableAutomaticLinking",["enableAutomaticLinking","disableAutomaticLinking"]);this.fA=f};ba.prototype.y9=function(){this.fA=!0};ba.prototype.C7=function(){this.fA=!1};ba.prototype.mt=function(f,h){var r=this;h=this.o0(h);var n=new z.a(h.docId,h.type),
|
|
e=Promise.resolve(n);Object(na.f)(e,function(){return n.Md()});this.$v=e;n.dZ(this);this.GB.then(function(){return r.Ja}).then(function(f){n.Do(f)}).then(function(){return new Promise(function(z,fa){r.IJ=!1;r.OQ=!1;n.mt(f,function(f){r.et(e)?f?fa(f):null!==r.ba?z(r.lB().then(function(){return n})):z(n):(n.Md(),fa(new Ha("Document already replaced")))},{annotationManager:r.la,getPassword:h.getPassword,workerTransportPromise:h.workerTransportPromise,extension:h.extension,defaultPageSize:h.defaultPageSize,
|
|
pageSizes:h.pageSizes,forceClientSideInit:h.forceClientSideInit,l:h.licenseKey})})}).then(function(f){r.ba=f;r.no.clear();r.CU()}).catch(function(f){if(!(f instanceof Ha))h.onError(f)})};ba.prototype.qx=function(f,h){return Object(ea.b)(this,void 0,void 0,function(){var r,n,e;return Object(ea.d)(this,function(fa){switch(fa.label){case 0:return[4,this.lB()];case 1:return fa.ea(),this.$G.clear(),f instanceof z.a?(r=Promise.resolve(f),Object(na.f)(r,function(){return n.Md()})):r=Object(na.c)(f,Object(ea.a)(Object(ea.a)({},
|
|
h),{annotationManager:this.la})),this.$v=r,[4,r];case 2:n=fa.ea();if(!this.et(r))return n.Md(),[2];n.dZ(this);return[4,this.vJ()];case 3:return e=fa.ea(),n.Do(e),this.OQ=this.IJ=!1,null===this.ba?[3,5]:[4,this.lB()];case 4:fa.ea(),fa.label=5;case 5:return this.ba=n,this.no.clear(),this.CU(),[2]}})})};ba.prototype.CU=function(){var h=this;this.Xh=Array(this.ba.ne);this.ex=!1;var r=this.ba.Go();this.Xh.fill(r?!1:!0);Object(ca.b)("Will request annotations "+r);r&&this.oB(0);this.ia=new ya.a(this.ba);
|
|
this.defaults.FitMode===this.Bj.Zoom&&this.ia.Em(this.defaults.Zoom);this.ba.addEventListener(z.a.Events.BOOKMARKS_UPDATED,function(){h.trigger(ba.yf.L_)});this.ba.addEventListener(z.a.Events.EMBEDDED_THUMBNAIL_COMPLETE,function(f){h.trigger(Ba.e.EMBEDDED_THUMBNAIL_COMPLETE,f)});this.ba.addEventListener(Ga.a.Events.OFFICE_ANNOTATIONS_UPDATED,function(f){h.la.Ci(f,!0);h.la.kf(f)});this.ia.addEventListener(ya.a.Events.PAGES_UPDATED,this.mfa.bind(this));this.ia.addEventListener(ya.a.Events.PAGE_IDS_CHANGED,
|
|
this.lfa.bind(this));this.ia.addEventListener(ya.a.Events.ZOOM_CHANGED,function(f){h.iN=h.Ua.Ig;h.Ua.dN(f)});this.la.GL(this.ia);this.$G.GL(this.ia);this.trigger(ba.Events.BEFORE_DOCUMENT_LOADED);(r=this.ba.Ml())&&r===na.a.PDF||this.Ua.rka();this.Ua.init();this.xa.gQ(this.xa.Vc());this.vS||(this.vS=!0,this.i5());if(this.xa.Vc().mode!==f.a.Uk){this.ia.Em(this.DA(this.Ih));this.nj();this.xa.wh();this.xa.Pf();this.Ye();r=this.jb();var n=(r.scrollWidth+this.yC()-r.clientWidth)/2;Object(oa.h)(r,n)}this.N4=
|
|
new Promise(function(f){h.removeEventListener(ba.yf.pN,null,{df:!0}).addEventListener(ba.yf.pN,function(){h.OQ=!0;f()})});this.trigger(ba.Events.DOCUMENT_LOADED);1.2>=this.ba.ba.li&&this.trigger(ba.yf.pF)};ba.prototype.et=function(f){return f===this.$v};ba.prototype.AI=function(){return this.N4};ba.prototype.$q=function(h){if(this.xa.Vc().mode!==f.a.Uk){var r=this.jb();r&&(r.style["touch-action"]=h)}};ba.prototype.jb=function(){this.oY||this.TY(document.getElementById("DocumentViewer"));return this.oY};
|
|
ba.prototype.TY=function(f){this.oY=f};ba.prototype.Xa=function(){this.fN||this.aZ(document.getElementById("viewer"));return this.fN};ba.prototype.aZ=function(f){this.fN=f};ba.prototype.yC=function(){var f=document.createElement("div");Object(oa.b)(f,{width:50,height:50,overflow:"hidden",position:"absolute",top:-200,left:-200});var h=document.createElement("div");h.style.height="100px";f.appendChild(h);document.body.appendChild(f);h=f.clientWidth;f.style["overflow-y"]="auto";var r=f.clientWidth;document.body.removeChild(f);
|
|
return h-r};ba.prototype.se=function(){var f=this;if(this.ba){var h=this.ba;clearTimeout(this.QA);return this.la.se().then(function(){return Promise.all([f.MQ,f.RB?f.RB.se():null,f.wm?f.wm.se():null,f.Ua?f.Ua.se():null,f.ia?f.ia.se():null])}).then(function(){f.removeEventListener(ba.yf.U_,null,{df:!0});h.removeEventListener();return h.Md()})}return Promise.resolve()};ba.prototype.kd=function(f){var h=this.ba.ad(f);return 90===h||270===h?this.ba.ld(f):this.ba.kd(f)};ba.prototype.ld=function(f){var h=
|
|
this.ba.ad(f);return 90===h||270===h?this.ba.kd(f):this.ba.ld(f)};ba.prototype.hc=function(f){return this.ba.hc(f)};ba.prototype.ta=function(){return this.la};ba.prototype.AT=function(){return this.Fea};ba.prototype.Y$=function(){return this.$G};ba.prototype.Ria=function(f){this.M4=f};ba.prototype.Z$=function(f){return Object.assign({HU:f},this.M4)};ba.prototype.Lja=function(f){Object(ca.d)("8.0","setLoadAnnotationsFromVisiblePages",["enableLoadingAnnotationsFromVisiblePages","disableLoadingAnnotationsFromVisiblePages"]);
|
|
this.px=f};ba.prototype.I9=function(){this.px=!0};ba.prototype.O7=function(){this.px=!1};ba.prototype.Cja=function(){};ba.prototype.uM=function(f){this.yW=f};ba.prototype.hM=function(f){return Object(ea.b)(this,void 0,void 0,function(){var h,r;return Object(ea.d)(this,function(n){switch(n.label){case 0:return this.ex?(Object(ca.j)("\n Internal annotations are being loading at this moment, please call setDocumentXFDFRetriever before loading the document. For example:\n\n instance.docViewer.setDocumentXFDFRetriever(async (documentId) => {\n const documentXFDFString = await fetchDocumentXFDFFromServer(documentId);\n return documentXFDFString;\n });\n instance.loadDocument(...);\n "),
|
|
[2]):"function"!==typeof f?(this.uM(function(f,h,r){r(f)}),[2]):this.RB?[3,2]:[4,e.e(7).then(e.bind(null,449))];case 1:h=n.ea().default,this.RB=new h(this),n.label=2;case 2:return r=this.RB,r.hM(f),this.uM(r.mca()),[2]}})})};ba.prototype.bka=function(f){this.vW=f};ba.prototype.mR=function(){if(this.vW){var f=this.uV,h=this.xa.ve(0,0);f=Object(ha.difference)(h,f);for(var r=0;r<f.length;++r)this.vW(f[r]);this.uV=h}};ba.prototype.Ff=function(){return this.xa};ba.prototype.KE=function(f,h,r,n){function e(){w=
|
|
!0}function z(f){if(w)throw f&&f.destroy(),this.removeEventListener(ba.Events.DOCUMENT_UNLOADED,e),Error("snapToNearest is cancelled because the document got closed.");}var fa=this;if(!Object(ja.k)())return Object(ca.j)("snapToNearest requires the full API to be enabled. Please set the fullAPI option to true in your WebViewer constructor."),Promise.resolve();var w=!1;this.addEventListener(ba.Events.DOCUMENT_UNLOADED,e,{once:!0});n=n||ta.PDFNet.GeometryCollection.SnappingMode.e_DefaultSnapMode;if(!(n>
|
|
this.yea||1>n)){var y=this.getDocument(),aa=y.Oi(f,h,r),ka=function(h){return fa.Paa(f,z).then(function(f){z();return f.snapToNearest(aa.x,aa.y,h)}).then(function(h){z();return y.co(f,h.x,h.y)})},la=[],na=[];if(!this.IK.includes(n)){for(la=Object(ea.e)(this.IK);0<la.length;){var da=la.pop();(n^da)<n&&na.push(da)}la=na.map(function(f){var h=Object.keys(va.k).find(function(h){return va.k[h]===f});return ka(f).then(function(r){return Object(ea.a)(Object(ea.a)({},r),{modeName:h,mode:f})})})}var pa=Object.keys(va.k).find(function(f){return va.k[f]===
|
|
n});la.push(ka(n).then(function(f){return Object(ea.a)(Object(ea.a)({},f),{modeName:pa,mode:n})}));var x=this.la.qJ().radiusThreshold,ra=this.Lb(f);return Promise.all(la).then(function(f){fa.removeEventListener(ba.Events.DOCUMENT_UNLOADED,e,{df:!0});if(1===f.length&&f[0].mode!==va.k.DEFAULT)return f[0];var n=f.pop();if(1<na.length&&na[na.length-1]===va.k.POINT_ON_LINE){for(var z=Math.pow(x/ra,2),ja=null,w=0;w<f.length;w++){var y=Math.pow(Math.abs(h-f[w].x),2)+Math.pow(Math.abs(r-f[w].y),2);y<z&&f[w].mode!==
|
|
va.k.POINT_ON_LINE&&(z=y,ja=f[w])}if(ja)return ja}return f.find(function(f){return f.x===n.x&&f.y===n.y})})}};ba.prototype.Paa=function(f,h){if(this.El[f])return this.El[f];var r=this,n;this.El[f]=ta.PDFNet.initialize().then(function(){h();return r.getDocument().Gf().then(function(r){h();n=r;return n.requirePage(f)}).then(function(){h();return n.getGeometryCollectionForPage(f)}).then(function(f){h(f);return f})});r.F4(f);return this.El[f]};ba.prototype.F4=function(f){this.yI.push(f);this.yI.length>
|
|
this.i0&&(f=this.yI.shift(),this.El[f].then(function(f){f.destroy()}),delete this.El[f])};ba.prototype.rj=function(f){Object(ca.d)("8.3","setOptions",["enableAnnotations","disableAnnotations"]);"undefined"!==typeof f.enableAnnotations&&(this.$o=!!f.enableAnnotations)};ba.prototype.s9=function(){this.$o=!0};ba.prototype.w7=function(){this.$o=!1};ba.prototype.GC=function(){Object(ca.d)("8.3","getZoom",["getZoomLevel"]);return this.bc()};ba.prototype.bc=function(){return this.ia.Nl};ba.prototype.sC=
|
|
function(){return this.margin};ba.prototype.VT=function(){var f=this.margin*this.bc();return Math.round(1<f?f:1)};ba.prototype.Mja=function(f){this.margin=f};ba.prototype.Lw=function(f){return f?this.ia.wba(f-1):this.ia.Lw()};ba.prototype.oJ=function(f){return f?this.ia.xba(f-1):this.ia.oJ()};ba.prototype.Dka=function(f){this.HZ=f};ba.prototype.pka=function(f){void 0===f&&(f={});this.VL=f.searchResult||this.VL;this.TG=f.activeSearchResult||this.TG};ba.prototype.kq=function(){return this.Ha};ba.prototype.Pw=
|
|
function(){return this.VM};ba.prototype.ao=function(f){return this.VM[f]};ba.prototype.jia=function(){Object.values(this.VM).forEach(function(f){return f.reset()})};ba.prototype.rja=function(f){Object(ca.d)("8.0","setEnableStylusMode",["enableStylusMode","disableStylusMode"]);this.NE=f};ba.prototype.uS=function(){this.NE=!0};ba.prototype.U7=function(){this.NE=!1};ba.prototype.hI=function(){this.readOnly=!0;this.trigger(ba.Events.READ_ONLY_MODE_CHANGED,this.readOnly)};ba.prototype.SH=function(){this.readOnly=
|
|
!1;this.trigger(ba.Events.READ_ONLY_MODE_CHANGED,this.readOnly)};ba.prototype.kV=function(){return this.NE};ba.prototype.me=function(f){return Object(ha.isUndefined)(f)?this.ia.oq:this.ia.qf(f-1).rotation};ba.prototype.Hc=function(f){var h=this.me(f);if(Object(ha.isUndefined)(f))throw Error("Please pass the page number as the first parameter");f=this.Sn(f)/90;return(h+f)%4};ba.prototype.py=function(f,h){0<=f&&3>=f&&(Object(ha.isUndefined)(h)?(this.ia.nM(f),this.ia.V5()):this.ia.my(h-1,f),this.rotate(h))};
|
|
ba.prototype.Sn=function(f){return 1>f||Object(ha.isNaN)(f)||f>this.Wb()||!this.ba.ad?0:this.ba.ad(f)};ba.prototype.Yja=function(f){var h=this;Object.keys(f).forEach(function(r){h.ia.my(parseInt(r,10)-1,f[r])});this.Or(this.Ih(),void 0,void 0,!0)};ba.prototype.vba=function(){return this.ia.Uaa()};ba.prototype.getDocument=function(){return this.ba};ba.prototype.Os=function(f,h){void 0===h&&(h=!1);var r=null;this.Ua.Ig&&(r=this.xa,r=r.eo(f,r.EC(h?0:this.Ua.ef,h?0:this.Ua.ef)));return r};ba.prototype.rca=
|
|
function(f){var h=null;if(f=this.Os(f))h=f.mc;return h};ba.prototype.Haa=function(f){var h=null;if(f=this.Os(f,!0))h=f.mc;return h};ba.prototype.GE=function(f,h){var r=this.ba.mb(f),n=this.Lb(f),e=this.xa.Js(f),z=this.Os(f);if(z){var fa=z.mc;e=z.VE}z=r.width;r=r.height;return Object(y.a)().GE(h,{width:z,height:r},n,this.me(f),e,fa,this.Sn(f)/90)};ba.prototype.nq=function(f){return Object(y.a)().nq(f,this.Xa())};ba.prototype.rw=function(f){if(this.ba){var h=this.ba.mb(f),r=this.Lb(f),n=this.xa.Js(f),
|
|
e=this.Os(f);if(e){var z=e.mc;n=e.VE}e=h.width;h=h.height;return Object(y.a)().rw(f,{width:e,height:h},r,this.me(f),n,z,this.Sn(f)/90,this.Xa())}};ba.prototype.Maa=function(){return this.Ih};ba.prototype.Nba=function(){Object(ca.d)("8.0","getRightToLeftPages",["isRightToLeftPageRenderingEnabled"]);return this.by};ba.prototype.dD=function(){return this.by};ba.prototype.ika=function(f){Object(ca.d)("8.0","setRightToLeftPages",["enableRightToLeftPageRendering","disableRightToLeftPageRendering"]);this.by=
|
|
f};ba.prototype.L9=function(){this.by=!0};ba.prototype.S7=function(){this.by=!1};ba.prototype.t9=function(){this.eF=!0};ba.prototype.kda=function(){return this.eF};ba.prototype.x7=function(){this.eF=!1};ba.prototype.d8=function(f){if(f.url)(new ra.k({uri:f.url})).onTriggered(f,null,this);else f.isValid()?this.ks(f.Hb,f.Ts,f.wu):Object(ca.j)("Tried to go to invalid bookmark destination")};ba.prototype.ks=function(f,h,r,n){if(this.xa.Vc().Vo()){this.jg()!==f&&this.uf(f);var e=this.ld(f),z=this.kd(f);
|
|
f=this.xa.gh({x:h>e||0>h?0:h,y:r>z||0>r?0:r},f);h=this.jb();r=Object(oa.c)(h);if(n&&(n=f.x-r.left-Object(oa.d)(h),e=f.y-r.top-(h.scrollTop||0),0<n&&n<h.offsetWidth&&0<e&&e<h.offsetHeight))return;this.scrollTo(f.x-r.left,f.y-r.top)}else this.trigger(ba.Events.DISPLAY_PAGE_LOCATION,[f,r,h,n])};ba.prototype.scrollTo=function(f,h,r){void 0===r&&(r=!1);var n=this.jb(),z=Object(oa.e)(n,f);if(r){var fa=function(){n.scroll({left:z,top:h,behavior:"smooth"})};xa.j||xa.l?fa():e.e(22).then(e.t.bind(null,450,
|
|
7)).then(function(f){f.default.XW();fa()})}else n.scrollLeft=z,n.scrollTop=h};ba.prototype.jla=function(f,h,r){if(f!==this.AD||h!==this.dW)this.WV=f,this.UV=h,this.HK=!0,this.VV=r};ba.prototype.rla=function(f){var h=!1;if(null===this.AD||this.AD!==f)h=!0;if(null===this.loop||!0===this.loop)h=!0;this.AD=f;this.ce!==this.Xd-1&&(this.ce=this.Xd-1,h=!0);return h};ba.prototype.GZ=function(f){for(var h=!0,r=0;r<f.length;++r){var n=f.charCodeAt(r);if(!(1424<=n&&1535>=n||1536<=n&&1791>=n||1872<=n&&1919>=
|
|
n||64336<=n&&65023>=n||65136<=n&&65279>=n)){h=!1;break}}return h};ba.prototype.gma=function(f,h){var r=1<=f,n=h<=this.ba.ne;f=f<=h;r&&n||Object(ca.j)("Start or End Pages are invalid, please check the range and try again. Falling back to default page range...");f||Object(ca.j)("Start Page is greater than End Page, please check the range and try again. Falling back to default page range...");return r&&n&&f};ba.prototype.Pka=function(f,h){this.ia.jB();this.ax=!1;this.ce=h?f.startPage-1:0;f.startPage=
|
|
h?f.startPage:this.ce+1;f.endPage=h?f.endPage:this.ba.ne};ba.prototype.Uka=function(f,h,r,n){this.ax=!0;this.rla(f)&&(n?this.ce=r.startPage-1:0<(h&x.f.rr)?(r.endPage=!0===this.loop?this.ba.ne:this.ce+1,r.startPage=1):(r.startPage=!0===this.loop?1:this.ce+1,r.endPage=this.ba.ne))};ba.prototype.TM=function(f,h,r,n){var e=this,z,fa,ja,w,y;if(this.ba){var aa=!1;var ka=Object(ha.isObject)(r)?r:{fullSearch:r,onResult:n,onPageEnd:n,onDocumentEnd:n};r=ka.fullSearch||!1;this.rE=!1;this.LR!==f&&(this.LR=f,
|
|
this.EJ=!1);this.U6=h;this.GZ(f)&&(f=f.split("").reverse().join(""));if(""!==f){ka.startPage&&(ka.endPage=ka.endPage||this.ba.ne,aa=this.gma(ka.startPage,ka.endPage));var la=function(f){f.resultCode===x.e.To?(e.TH(f),e.EJ=!0):f.resultCode===x.e.DONE&&(e.EJ?e.trigger(ba.Events.NOTIFY,"endOfDocumentSearch"):e.trigger(ba.Events.NOTIFY,"noMatchesFound"))};n=ka.onResult||ka.onPageEnd||ka.onDocumentEnd?function(f){if(ka.onResult&&f.resultCode===x.e.To)ka.onResult(f);else if(ka.onPageEnd&&f.resultCode===
|
|
x.e.pr)ka.onPageEnd(f);else if(ka.onDocumentEnd&&f.resultCode===x.e.DONE)ka.onDocumentEnd(f);else if(ka.onError&&f instanceof Error)ka.onError(f)}:la;var da=null===(z=this.ba)||void 0===z?void 0:z.Ml();z=da===na.a.PDF&&!ta.utils.isPdfjs||da===na.a.WEBVIEWER_SERVER&&(null===(ja=null===(fa=this.ba)||void 0===fa?void 0:fa.ba)||void 0===ja?void 0:ja.Ii)&&(null===(y=null===(w=this.ba)||void 0===w?void 0:w.ba)||void 0===y?void 0:y.Ii)instanceof Ka.a;r?this.Pka(ka,aa):this.Uka(f,h,ka,aa);if(!0===this.am&&
|
|
(this.jla(f,h,ka),this.ic!==this.My))return;this.am=!0;this.ru();z?(this.ic=this.My,this.My.search(this.ba,f,h,ka.startPage,ka.endPage,n,r).then(function(f){f&&(e.am=!1,e.ru())})):(this.ic=this.su,--ka.startPage,--ka.endPage,this.su.f5(this.ba,f,h,ka.startPage,ka.endPage),r&&(la=function(){}),ka.onResult||ka.onPageEnd||ka.onDocumentEnd||(n=la),this.su.Sja(h),this.dW=h,this.ou(r,n))}}};ba.prototype.qka=function(f){0>=f?Object(ca.j)('Value entered for "setSearchPageBatchSize" is invalid. Please enter an integer value greater than 0'):
|
|
this.My.oka(Math.ceil(f))};ba.prototype.YW=function(f){null===this.ba.hJ(f)&&this.ba.dj(f,function(){})};ba.prototype.ru=function(){this.trigger(ba.Events.SEARCH_IN_PROGRESS,[this.am,!this.ax])};ba.prototype.ou=function(f,h){function r(f){ja===e.ba&&(e.ba.$ja(e.ce+1,f),n())}function n(){function n(){fa=[];try{z=e.su.ph(fa)}catch(Za){e.rE=!0;e.am=!1;h(Za);return}ja=z.eY;z.ai=fa;var w={};w=Object.assign(w,z);w.ambientStr=z.KQ;w.resultStr=z.QL;w.resultStrStart=z.gY;w.resultStrEnd=z.fY;w.pageNum=z.WK+
|
|
1;w.resultCode=ja;w.quads=fa;w.ambient_str=w.ambientStr;w.result_str=w.resultStr;w.result_str_start=w.resultStrStart;w.result_str_end=w.resultStrEnd;w.page_num=w.pageNum;if(e.rE)e.rE=!1,e.am=!1,e.ru();else if(!0===e.HK)e.HK=!1,e.am=!1,e.ru(),setTimeout(function(){e.TM(e.WV,e.UV,e.VV)},0);else{if(ja===x.e.pr){var y=void 0,aa=void 0;if(e.su.tc()){if(0<e.ce)for(e.ce--,aa=0;3>aa;++aa)y=e.ce-aa,0<y&&e.YW(y+1)}else if(e.ce<e.ba.ne-1)for(e.ce++,aa=0;3>aa;++aa)y=e.ce+aa,y<e.ba.ne-1&&e.YW(y+1)}else ja!==x.e.To||
|
|
f||(e.ia.kB(),e.ia.tM(z.WK,z.QL));h(w);ja===x.e.DONE||!f&&ja===x.e.To?(e.am=!1,e.ru()):null!==e.ba.hJ(e.ce+1)?setTimeout(n,0):e.ba.dj(e.ce+1,r)}}var ja=-1;null!==e.ba.hJ(e.ce+1)?setTimeout(n,0):e.ba.dj(e.ce+1,r)}var e=this;!0===this.loop&&(this.su.tc()?e.ce=this.ba.ne-1:e.ce=0,this.loop=!1);var z,fa=[],ja=this.ba;n()};ba.prototype.pV=function(f,h,r){r=Object(ea.a)(Object(ea.a)({},{horizontalOffset:"auto",verticalOffset:"auto",zoom:this.bc(),fitToView:!1,isSmoothScroll:!1}),r);var n=parseFloat(r.horizontalOffset),
|
|
e=parseFloat(r.verticalOffset);Object(ha.isNaN)(n)&&(n="auto");Object(ha.isNaN)(e)&&(e="auto");var z=this.jb();r.zoom!==this.bc()&&this.Or(r.zoom);!0===r.fitToView&&this.Bu(Math.min(z.clientWidth/(h[0].x2-h[0].x4),z.clientHeight/(h[0].y2-h[0].y4)));f!==this.Xd&&this.uf(f,r.isSmoothScroll);if(0<h.length){h=h.map(function(f){return f.Wn?f.Wn():f});for(var fa=h[0].y4,ja=h[0].x4,w=h[0].y2,y=h[0].x2,aa=1;aa<h.length;aa++)h[aa].x4<ja&&(ja=h[aa].x4),h[aa].y4<fa&&(fa=h[aa].y4),h[aa].x2>y&&(y=h[aa].x2),h[aa].y2>
|
|
w&&(w=h[aa].y2);h=Object(oa.c)(z);fa=this.xa.gh({x:ja,y:fa},f);y=this.xa.gh({x:y,y:w},f);w={x:fa.x<y.x?fa.x:y.x,y:fa.y<y.y?fa.y:y.y};y={x:fa.x>y.x?fa.x:y.x,y:fa.y>y.y?fa.y:y.y};fa=y.x-w.x;ja=y.y-w.y;aa={x:0,y:0};var ka=void 0;switch(this.Hc(f)){case 1:ka=n;n=e;e=ka;"number"===typeof n&&(n=100-Number(n));break;case 2:ka=n;n=e;e=ka;"number"===typeof n&&(n=100-Number(n));"number"===typeof e&&(e=100-Number(e));break;case 3:ka=n,n=e,e=ka,"number"===typeof e&&(e=100-Number(e))}"auto"===n?aa.x=w.x-z.clientWidth/
|
|
2+fa/2-h.left:(n=Number(n)/100,aa.x=(w.x+y.x)/2-z.clientWidth*n-h.left);"auto"===e?aa.y=w.y-z.clientHeight/2+ja/2-h.top:(e=Number(e)/100,aa.y=(w.y+y.y)/2-z.clientHeight*e-h.top);this.scrollTo(aa.x,aa.y,r.isSmoothScroll)}};ba.prototype.qV=function(f,h){var r=f.pageNum;"undefined"!==typeof h?h(r,f.quads):this.pV(r,f.quads)};ba.prototype.TH=function(f,h){var r=this;this.ax=!0;this.tv=f;this.gr(function(){var n=f.pageNum-1;r.ia.jB();r.ia.Zja(n,f);r.qV(f,h)});this.trigger(Ba.e.ACTIVE_SEARCH_RESULT_CHANGED,
|
|
[f]);var n=this.bq();this.trigger(Ba.e.SEARCH_RESULTS_CHANGED,[n])};ba.prototype.b8=function(f){var h=this;this.gr(function(){h.ia.g_(f.pageNum-1,f)});var r=this.bq();this.trigger(Ba.e.SEARCH_RESULTS_CHANGED,[r])};ba.prototype.c8=function(f){var h=this;this.gr(function(){f.forEach(function(f){h.ia.g_(f.pageNum-1,f)})});var r=this.bq();this.trigger(Ba.e.SEARCH_RESULTS_CHANGED,[r])};ba.prototype.Lia=function(f){this.ax?(this.TH(f),this.tv=f):(this.tv=f,this.qV(f),this.gr(),this.trigger(Ba.e.ACTIVE_SEARCH_RESULT_CHANGED,
|
|
[f]))};ba.prototype.Q$=function(){return this.tv};ba.prototype.a6=function(){var f=this;this.gr(function(){f.ia.jB()});this.rE=!0;this.tv=void 0;this.My.J5();this.trigger(Ba.e.ACTIVE_SEARCH_RESULT_CHANGED,[]);this.trigger(Ba.e.SEARCH_RESULTS_CHANGED,[[]]);this.trigger(Ba.e.SEARCH_IN_PROGRESS,[])};ba.prototype.bq=function(f){return this.ia.bq(f)};ba.prototype.pY=function(f,h,r){var n=new Fa.e;n.ab(h.x,h.y,h.x+1,h.y+1);var e=this,z=new x.g(this.ba),fa=this.ba;fa.dj(f,function(){return Object(ea.b)(this,
|
|
void 0,void 0,function(){return Object(ea.d)(this,function(h){switch(h.label){case 0:return fa!==e.ba?[2]:e.no.has(f)||!e.OU()?[3,2]:[4,e.l4([f])];case 1:h.ea(),e.no.add(f),h.label=2;case 2:return z.dQ(f,n),r(f,z.nf().map(function(f){return f.Wn()}),z.Yb),[2]}})})})};ba.prototype.Rt=function(f,h,r){if(h.constructor!==Fa.e){var n=new Fa.e;n.ab(h.na,h.ja,h.oa,h.ka);h=n}var e=this,z=new x.g(this.ba),fa=this.ba;fa.dj(f,function(){if(fa===e.ba){var n=f-1;"rectangular"===Da.V.SELECTION_MODE?z.Gia(n,h):
|
|
z.Fia(n,h);n=z.Yb;var ja=z.nf();r&&r(f,ja.map(function(f){return f.Wn()}),n)}})};ba.prototype.ZD=function(f,h,r){var n=f-1;this.ia.tM(n,r);this.ia.aka(n,h);this.trigger(ba.Events.TEXT_SELECTED,[h,r,f]);this.gr()};ba.prototype.eI=function(f){this.MJ(f)};ba.prototype.wU=function(f,h,r){for(var n=0;n<h.length;n++){var e=h[n];f.fillStyle=r;f.beginPath();f.moveTo(e.x1,e.y1);f.lineTo(e.x2,e.y2);f.lineTo(e.x3,e.y3);f.lineTo(e.x4,e.y4);f.closePath();f.fill()}};ba.prototype.Oca=function(f,h){var r=this.ia.qf(f-
|
|
1).vj;if(r&&0!==r.length){h=h.getContext("2d");this.wU(h,r,this.HZ);var n={nf:function(){return r}},e=this.ia.dJ().map(function(f){return f+1}),z=!1,fa=!1;f===e[0]&&(z=!0);f===e[e.length-1]&&(fa=!0);h.save();e=new Aa.a(n,!0,!1,this,z,fa);z=this.hc(f);e.draw(h,n,this.Lb(f),z);h.restore()}};ba.prototype.Nca=function(f,h){if((f=this.ia.qf(f-1).gi)&&0!==f.length){var r=h.getContext("2d"),n=this;f.forEach(function(f){var h=f===n.tv?n.TG:n.VL;n.wU(r,f.quads.map(function(f){return f.Wn?f.Wn():f}),h)})}};
|
|
ba.prototype.MJ=function(f,h){h=h||this.rw(f);null!==h&&(this.Oca(f,h),this.Nca(f,h))};ba.prototype.highlight=function(){var f=this;this.ia.cJ().forEach(function(h){f.MJ(h+1)})};ba.prototype.gr=function(f){var h=this.ia.cJ();f&&f();f=this.ia.cJ();h=Object(ha.uniq)(h.concat(f));for(f=0;f<h.length;++f)this.la.Sc(h[f]+1)};ba.prototype.select=function(f,h){if(null!==this.Qe&&null!==this.lc||f||h){this.ia.kB();if(f&&h){f.Hb=f.pageNumber;f.x=f.x;f.y=f.y;h.Hb=h.pageNumber;h.x=h.x;h.y=h.y;var r={first:f.Hb,
|
|
last:h.Hb}}else Object(ca.g)("deprecated"),r=this.xa.gq();var n=r.first;r=r.last;if(null!==n&&null!==r){var e=new Fa.e,z=f||this.xa.xj(this.Qe,n),fa=h||this.xa.xj(this.lc,n);if(z.y>fa.y){var ja=z;z=fa;fa=ja}ja=this.ld(n);var w=this.kd(n);1<=r-n?e.ab(z.x,z.y,ja,w):e.ab(z.x,z.y,fa.x,fa.y);this.Rt(n,e,Object(ha.bind)(this.ZD,this));for(z=n;z<r-1;z++)e=new Fa.e,ja=this.ld(z),w=this.kd(z),e.ab(0,0,ja,w),this.Rt(z,e,Object(ha.bind)(this.ZD,this));n!==r&&(z=f||this.xa.xj(this.Qe,r),fa=h||this.xa.xj(this.lc,
|
|
r),z.y>fa.y&&(fa=z),e=new Fa.e,e.ab(0,0,fa.x,fa.y),this.Rt(r,e,Object(ha.bind)(this.ZD,this)))}}};ba.prototype.b6=function(f){if(0!==this.Lw().length||this.ia.tba(f-1)){var h=this.rw(f);null!==h&&(Object(y.a)().yH(h,this.ld(f),this.kd(f)),this.$o&&this.la.Sc(f))}};ba.prototype.sR=function(){this.ia.kB();this.ia.AH()};ba.prototype.Nv=function(){var f=this;this.gr(function(){""!==f.Lw()&&f.trigger(ba.Events.TEXT_SELECTED,[null,""]);f.sR();f.kq()instanceof Da.S&&f.kq().Nv()})};ba.prototype.paa=function(f,
|
|
h,r){var n=[],e=this.ia.ah(f-1);if((e=this.Ua.ke(e))&&e.Nf)for(h=this.nJ({x:h,y:r},f),f=e.mc?this.nJ({x:e.mc.na,y:e.mc.ja},f):{x:0,y:0},r=Object(qa.k)(),h.x*=r,h.y*=r,f.x*=r,f.y*=r,f=Math.round(h.y-f.y)*e.Nf.width+Math.round(h.x-f.x),e=e.Nf.data,h=0;h<e.length;++h)if(r=e[h],"Alpha"!==r.name){var z=new Uint8Array(r.data);f<z.length&&0<=f&&n.push({name:r.name,value:Math.round(z[f]/255*100)})}return n};ba.prototype.nJ=function(f,h){var r=this.Lb(h),n=this.Hc(h);f=Object(sa.a)(r,n,{width:this.ld(h),height:this.kd(h)},
|
|
null,!1).ra(f);return{x:f.x,y:f.y}};ba.prototype.Qba=function(f,h){var r=this.Lb(h),n=this.me(h);f=Object(sa.a)(r,n,this.ba.mb(h),0,!1).ra(f);return{x:f.x,y:f.y}};ba.prototype.Co=function(f){if(f&&this.Ha!==f){f instanceof Da.a||f instanceof Da.S||f instanceof Da.B||this.Nv();if(this.Ha){this.Ha.switchOut&&this.Ha.switchOut(f);var h=this.Ha}f.switchIn&&f.switchIn(this.Ha);this.Ha=f;this.trigger(ba.Events.TOOL_MODE_UPDATED,[f,h])}};ba.prototype.WT=function(f){var h=this.jb(),r=Object(oa.c)(h);h=this.xa.xj({x:Object(oa.d)(h)+
|
|
r.left,y:(h.scrollTop||0)+r.top},f);return{Hb:f,bma:h,yia:r}};ba.prototype.SY=function(f){var h=f.yia;f=this.xa.gh(f.bma,f.Hb);this.scrollTo(f.x-h.left,f.y-h.top)};ba.prototype.Sba=function(){var f=this.jb(),h=parseFloat(f.scrollTop)/f.scrollHeight;return{tma:parseFloat(Object(oa.d)(f)+f.clientWidth/2)/f.scrollWidth,vma:h}};ba.prototype.nka=function(f){var h=this.jb();this.scrollTo(f.tma*h.scrollWidth-h.clientWidth/2,f.vma*h.scrollHeight)};ba.prototype.lM=function(h){null===this.ba?(this.Ih=h,this.trigger(ba.Events.FIT_MODE_UPDATED,
|
|
this.Ih)):(h=this.DA(h),this.xa.Vc().mode===f.a.Uk?this.ia.Em(h):h!==this.ia.Nl&&(this.Or(h,void 0,void 0,!1,!0),this.uH()))};ba.prototype.DA=function(f){this.Ih=f;f=this.Ih();this.trigger(ba.Events.FIT_MODE_UPDATED,this.Ih);return f};ba.prototype.rotate=function(f){this.Or(this.Ih(),void 0,void 0,!0);this.trigger(ba.Events.ROTATION_UPDATED,[this.me(f),f])};ba.prototype.Ms=function(f,h){return h?(f+1)%4:(f-1+4)%4};ba.prototype.qia=function(f){if(this.ba){var h=this;Object(ha.isUndefined)(f)?(this.ia.nM(this.Ms(this.me(),
|
|
!0)),this.ia.NS(function(f){f.rotation=h.Ms(f.rotation,!0)})):this.ia.my(f-1,this.Ms(this.me(f),!0));this.rotate(f)}};ba.prototype.ria=function(f){if(this.ba){var h=this;Object(ha.isUndefined)(f)?(this.ia.nM(this.Ms(this.me(),!1)),this.ia.NS(function(f){f.rotation=h.Ms(f.rotation,!1)})):this.ia.my(f-1,this.Ms(this.me(f),!1));this.rotate(f)}};ba.prototype.Or=function(f,h,r,n,e){this.ia.Em(f);this.xa.Vc().Vo()&&("undefined"!==typeof h&&"undefined"!==typeof r?(this.nj(!1,n,!0),this.xa.wh(),this.xa.Pf(),
|
|
this.scrollTo(h,r)):e?(f=this.Sba(),this.nj(!1,n,!0),this.xa.wh(),this.xa.Pf(),this.nka(f)):(f=this.WT(this.Xd),this.nj(!1,n,!0),this.xa.wh(),this.xa.Pf(),this.SY(f)),this.Ua.Cp(),this.Ye(),this.trigger(ba.Events.ZOOM_UPDATED,this.ia.Nl))};ba.prototype.Bu=function(f,h,r){this.DA(this.Bj.Zoom);null===this.ba?(this.ia.Em(f),this.trigger(ba.Events.ZOOM_UPDATED,f)):this.Or(f,h,r)};ba.prototype.B_=function(f,h,r){if(this.ba){this.DA(this.Bj.Zoom);this.ia.Em(f);f=this.jb();h=this.lc.x-h;r=this.lc.y-r;var n=
|
|
(parseFloat(f.scrollTop)+r)/f.scrollHeight,e=(parseFloat(Object(oa.d)(f))+h)/f.scrollWidth;this.nj(!1,!1,!0);this.xa.wh();this.xa.Pf();this.scrollTo(e*f.scrollWidth-h,n*f.scrollHeight-r);this.Ye();this.trigger(ba.Events.ZOOM_UPDATED,this.ia.Nl)}};ba.prototype.nba=function(f){f=this.Ns(f);var h=this.ba.Oi(f.pageNumber,f.x,f.y);return{pageNumber:f.pageNumber,x:h.x,y:h.y}};ba.prototype.Ns=function(f){f=this.Ha.Zg(f);var h=this.Ff().Vc().gq(f,f);f=this.Ff().xj(f,null!==h.first?h.first:this.jg());return{pageNumber:f.pageNumber,
|
|
x:f.x,y:f.y}};ba.prototype.Lb=function(f){return this.ia.qf(f-1).zoom};ba.prototype.CE=function(f,h){--f;var r=this.ia.ah(f);this.Ua.wma(r);this.ia.CE(f,h)};ba.prototype.nj=function(f,h,r){this.Ua.u6();this.links={};var n=this.Ua.Ze;if(!h&&r)for(var e=0;e<n.length;e++){var z=n[e],fa=z+1,ja=this.Xa().querySelector("#pageContainer"+fa),w=void 0,y=void 0;ja&&(w=this.iN?ja.querySelector("#hrthumb"+fa):ja.querySelector(".canvas"+fa+":not(.progressive)"),y=ja.querySelector(".auxiliary"));w&&this.ia.sM(z,
|
|
w,y)}r&&!h||this.ia.Y5();this.xa.vm(!f)};ba.prototype.Rha=function(f){if(this.xa.Vc().Vo()){var h=this.Xa().querySelector("#pageContainer"+f),r=document.activeElement;(null===r||void 0===r?0:r.closest("#pageWidgetContainer"+f))&&r.blur();for(!this.xa.Vc().gx(f)&&h&&[].forEach.call(h.querySelectorAll("canvas"),function(f){Object(y.a)().$j(f)});h&&h.firstChild;)h.removeChild(h.firstChild);Object(y.a)().oR()}--f;f in this.links&&delete this.links[f]};ba.prototype.CA=function(f){if(Object(ha.isUndefined)(f)||
|
|
1>f||f>this.ia.ca.length)return!1;this.Xd!==f&&(this.Xd=f,this.trigger(ba.Events.PAGE_NUMBER_UPDATED,f));return!0};ba.prototype.uf=function(h,r){void 0===r&&(r=!1);if(!1!==this.CA(h)){this.KR=!0;h=this.Xd-1;var n=this.xa.Vc();n.$w()||n.mode===f.a.Uk||(this.xa.Vc().mode===f.a.Iu&&h++,n.Ob=Math.floor(window.parseFloat(h)/n.Mc),n.bd=n.Ob,n.lf=n.Ob+1,this.nj(),this.xa.wh(),this.xa.Pf());if(this.xa.Vc().Vo()){h=this.ba.mb(this.Xd);0<this.Sn(this.Xd)/90%2&&(n=h.width,h.width=h.height,h.height=n);n=this.xa.gh({x:0,
|
|
y:0},this.Xd);var e=this.xa.gh({x:h.width,y:h.height},this.Xd);h=Math.min(n.x,e.x);n=Math.min(n.y,e.y);e=Object(oa.c)(this.jb());this.scrollTo(h-e.left,n-this.VT()-e.top,r)}this.Ye()}};ba.prototype.jg=function(){return this.Xd};ba.prototype.Wb=function(){return this.ba.ne};ba.prototype.f8=function(){this.uf(this.ia.ca.length)};ba.prototype.e8=function(){this.uf(1)};ba.prototype.MA=function(f){f=f||this.xa.Vj().wa();var h=0,r=document.getElementById("docpad");if(null!==r){var n=this.jb();n=n?parseFloat(n.style.height):
|
|
0;n>f&&(h=Math.floor((n-f)/2));r.style.marginBottom=window.parseInt(h,10)+"px"}};ba.prototype.W4=function(f,h){var r=this.Lb(h),n=this.ia.qf(h-1);h=this.me(h);var e=Math.floor(n.width*r);r=Math.floor(n.height*r);n=null;h===va.f.E_90||h===va.f.E_270?(n="rotate("+90*h+"deg)",n=h===va.f.E_90?" translate("+e+"px, 0) "+n:" translate(0,"+r+"px) "+n,Object(oa.b)(f,{height:e,width:r})):(h===va.f.e_180&&(n="translate("+e+"px,"+r+"px) scale(-1,-1)"),Object(oa.b)(f,{width:e,height:r}));null!==n&&Object(oa.b)(f,
|
|
{position:"absolute",transform:n,"transform-origin":"top left","ms-transform":n,"ms-transform-origin":"top left","-moz-transform":n,"-moz-transform-origin":"top left","-webkit-transform-origin":"top left","-webkit-transform":n,"-o-transform":n,"-o-transform-origin":"top left"})};ba.prototype.QQ=function(f,h,r,n){f.id=(n?"hrthumb":"thumb")+h;f.style.position="absolute";this.W4(f,h);r&&(f.style["z-index"]=n?"10":"7",(r=this.Xa().querySelector("#pageContainer"+h))?r.querySelector("#"+f.id)||r.insertBefore(f,
|
|
r.firstChild):Object(ca.j)("appendThumb: Page container "+h+" missing"))};ba.prototype.Jn=function(f){this.dH(f);this.b6(f);this.G6(f);this.Wla(f);this.la.Sc(f,void 0,!0)};ba.prototype.TA=function(f,h){this.iN||this.ia.X5(h-1);(f=Object(y.a)().TA(f,h,this.Xa()))||Object(ca.b)("appendAllCanvas: Page container for page "+h+" does not exist.");return f};ba.prototype.dH=function(f){var h=this.Os(f);if(h)var r=h.mc;h=this.ba.mb(f);var n=this.Sn(f);if(90===n||270===n)n=h.width,h.width=h.height,h.height=
|
|
n;Object(y.a)().dH(f,h,this.Lb(f),this.Hc(f),r,this.Xa())};ba.prototype.pB=function(f){var h=this.Os(f);if(h)var r=h.mc;h=this.ba.mb(f);var n=this.Sn(f);if(90===n||270===n)n=h.width,h.width=h.height,h.height=n;return Object(y.a)().pB(f,h,this.Lb(f),this.Hc(f),r)};ba.prototype.zL=function(f,h){var r=this.Ll(f);r=this.getDocument().ad(f)/90+r.rotation;Object(y.a)().zL(f,h,r,this.Xa())};ba.prototype.KT=function(f){var h=this.ba.mb(f),r=h.width;h=h.height;var n=this.ba.ad(f);if(90===n||270===n)n=r,r=
|
|
h,h=n;n=this.Lb(f);r*=n;h*=n;var e=Object(sa.a)(1,this.Hc(f),{width:r,height:h},void 0,!1);return"matrix("+Object.keys(e).reduce(function(f,h,r){return""+f+(0===r?"":",")+e[h].toFixed(10)},"")+")"};ba.prototype.G6=function(f){var h=this.ba.mb(f),r=h.width;h=h.height;var n=this.ba.ad(f);if(90===n||270===n)n=r,r=h,h=n;n=this.Lb(f);r*=n;h*=n;n=this.Xa().querySelector("#pageWidgetContainer"+f);if(!n){n=document.createElement("div");n.id="pageWidgetContainer"+f;var e=Object(y.a)().tca(f,this.Xa());e&&
|
|
e.appendChild(n)}e=this.KT(f);f=this.xa.fJ(f);Object(oa.b)(n,{position:"absolute",top:f.y,left:f.x,width:r,height:h,"z-index":40,transform:e,"transform-origin":"top left","-webkit-transform":e,"-webkit-transform-origin":"top left","-ms-transform":e,"-ms-transform-origin":"top left","-moz-transform":e,"-moz-transform-origin":"top left",overflow:"hidden"})};ba.prototype.Ll=function(f){return this.ia.qf(f-1)};ba.prototype.Pq=function(){this.ba&&(this.ba.Zw(this.ba.Qb()),this.MX());this.tX()};ba.prototype.tX=
|
|
function(){this.trigger(ba.Events.PAGES_UPDATED,{contentChanged:Object(ha.range)(1,this.Wb()+1),removed:[],added:[],moved:{}});this.Ua.Cp()};ba.prototype.AL=function(f){this.ba&&(this.ba.Zw([this.ba.Qb()[f-1]]),this.MX(f));this.trigger(ba.Events.PAGES_UPDATED,{contentChanged:[f],removed:[],added:[],moved:{}});this.Ua.WC(this.Ll(f).id)};ba.prototype.Wla=function(f){f=this.ba.pba(f);Object(ha.isArray)(f)&&this.la.Ci(f,{imported:!0})};ba.prototype.Ye=function(f,h){Object(ha.isUndefined)(h)||this.CA(h);
|
|
this.uu(f);this.Ua.TR();this.mR()};ba.prototype.uu=function(f){f=f||this.xa.ve();f=f.map(function(f){return f-1});var h=this.Ua.Y4(f);this.Ua.uu(f);h&&this.trigger(ba.yf.IF,[f])};ba.prototype.ju=function(f){this.Ua.ju(f-1)};ba.prototype.onscroll=function(){this.ba&&this.wm.sm("DocumentViewer.renderRequest",{type:"pages",useVisiblePages:!0,check:!0});this.mR()};ba.prototype.Ica=function(f){return!!document.querySelector("#pageContainer"+f+" #thumb"+f)};ba.prototype.Dca=function(f){return!!document.querySelector("#pageContainer"+
|
|
f+" #hrthumb"+f)};ba.prototype.MX=function(f){f?(f=document.querySelector("#pageContainer"+f+" #hrthumb"+f))&&f.parentNode.removeChild(f):Array.prototype.forEach.call(document.querySelectorAll("[id^=hrthumb]"),function(f){f.parentNode.removeChild(f)})};ba.prototype.Rla=function(){if(this.KR)this.KR=!1;else{var h=0,r=void 0;this.uu();var n=this.Ua.Ze,e=this.jb(),z=parseInt(getComputedStyle(e).marginLeft,10)||0,fa=e.offsetTop+e.scrollTop||0,ja=fa+e.offsetHeight;z=Object(oa.d)(e)+z+Object(oa.c)(e).left||
|
|
0;var w=z+e.clientWidth+Object(oa.c)(e).left;e=this.xa.Vc();for(var y=0;y<n.length;y++){var aa={na:z,ja:fa,oa:w,ka:ja},ka=n[y]+1;if(!(1>ka)){var la=this.ba.mb(ka),na=e.VK({x:0,y:0},ka);ka=e.VK({x:la.width,y:la.height},ka);aa=Object(Ea.d)(aa,{na:na.x<ka.x?na.x:ka.x,ja:na.y<ka.y?na.y:ka.y,oa:na.x>ka.x?na.x:ka.x,ka:na.y>ka.y?na.y:ka.y});la=la.width*la.height;la=window.parseFloat((aa.oa-aa.na)*(aa.ka-aa.ja))/la;la>h&&(r=n[y],h=la)}}n=!1;fa=e.mode===f.a.Hu||e.mode===f.a.Iu;e.mode!==f.a.vF&&e.mode!==f.a.iz&&
|
|
!fa||r+2!==this.Xd||fa&&0===r||(n=!0);!n&&0<h&&this.CA(r+1)}};ba.prototype.sy=function(f){Object(ca.d)("8.0","setViewportRenderMode",["enableViewportRenderMode","disableViewportRenderMode"]);this.Ua.sy(f)};ba.prototype.P9=function(){this.Ua.sy(!0)};ba.prototype.X7=function(){this.Ua.sy(!1)};ba.prototype.Dda=function(){return this.Ua.Ig};ba.prototype.OY=function(){};ba.prototype.jja=function(f){function h(){r.ba.Oy({pageTransparent:!0})}var r=this;this.ba?h():this.addEventListener(ba.Events.BEFORE_DOCUMENT_LOADED,
|
|
h);Object(qa.v)(f);this.Pq();this.Ye()};ba.prototype.E9=function(){Object(qa.h)();this.ba&&(this.Pq(),this.Ye())};ba.prototype.K7=function(){Object(qa.e)();this.ba&&(this.Pq(),this.Ye())};ba.prototype.yda=function(){return Object(qa.m)()};ba.prototype.tS=function(){Object(qa.g)();this.ba&&(this.Pq(),this.Ye())};ba.prototype.aS=function(){Object(qa.d)();this.ba&&(this.Pq(),this.Ye())};ba.prototype.D9=function(){Object(ca.d)("8.4","enableGrayscaleAnnotations",["enableGrayscaleAnnotationsMode"]);this.tS()};
|
|
ba.prototype.J7=function(){Object(ca.d)("8.4","disableGrayscaleAnnotations",["disableGrayscaleAnnotationsMode"]);this.aS()};ba.prototype.xda=function(){return Object(qa.j)()};ba.prototype.lfa=function(f){this.Ua.Jv(f);this.xa.Jv(f)};ba.prototype.mfa=function(f){var h=this;h.qX(f.contentChanged.map(function(f){return f}));var r=!1,n=f.added;0<n.length&&(n.forEach(function(f){h.Xh.splice(f-1,0,!1)}),r=!0);n=f.removed;0<n.length&&(n.reverse().forEach(function(f){h.Xh.splice(f-1,1)}),h.Ua.$Z(h.ba.hk()),
|
|
r=!0,h.Xd>h.Wb()&&h.CA(h.Wb()));var e=f.moved;if(e&&0<Object.keys(e).length){var z=Object.keys(e);n.forEach(function(f){h.no.delete(f)});var fa=[];z.forEach(function(f){h.no.has(+f)&&(h.no.delete(+f),fa.push(e[f]))});fa.forEach(function(f){h.no.add(f)})}r&&(h.Ua.Z5(),n=this.WT(this.Xd),h.xa.eO(),h.xa.wh(),h.xa.Pf(),this.SY(n),h.Ye());n=f.annotationsChanged;(z=0<n.length)&&n.forEach(function(f){!0===h.Xh[f-1]&&(h.Xh[f-1]=!1)});(r||z)&&h.oB();h.trigger(ba.Events.PAGES_UPDATED,[f])};ba.prototype.Do=
|
|
function(f){this.Ja=Promise.resolve(f);if(this.ba){var h=this;this.Ja.then(function(f){h.ba.Do(f)})}};ba.prototype.vJ=function(){return this.Ja};return ba}();Na.prototype.Bj={HN:function(){var f=this.yC(),h=this.jb();var r=1===this.xa.Vc().Mc?this.ia.qf(this.Xd-1).width:this.xa.Vj().Ba()/this.bc();return window.parseFloat(h.clientWidth-f)/(r+1+this.sC()*this.xa.Vc().Mc*2)},wF:function(){var f=this.jb(),h=f.clientHeight;0===h&&f.parentNode&&(h=f.parentNode.clientHeight);var r=this.ia.qf(this.Xd-1);
|
|
h=window.parseFloat(h/(r.height+2*this.sC()));r=1===this.xa.Vc().Mc?r.width:this.xa.Vj().Ba()/this.bc();f=window.parseFloat(f.clientWidth-this.yC())/(r+1+this.sC()*this.xa.Vc().Mc*2);return h<f?h:f},Zoom:function(){this.MA();return this.ia.Nl}};Object(Ca.a)(Na);Object.defineProperty(Na.prototype,"zoom",{get:function(){return this.bc()},set:function(f){this.ia.Em(f)}});Na.Events=Ba.e;Na.yf=Ba.f;Ca=Object(Ia.a)(Na,{getState:function(f){return Object(ea.b)(void 0,void 0,void 0,function(){var h,r;return Object(ea.d)(this,
|
|
function(n){switch(n.label){case 0:return h={zoom:f.bc(),rotation:f.me(),scrollState:f.oX()},r="layers",[4,f.ba.Un()];case 1:return[2,(h[r]=n.ea(),h)]}})})},efa:function(f,h){return Object(ea.b)(void 0,void 0,void 0,function(){var r;return Object(ea.d)(this,function(n){switch(n.label){case 0:return Object(ha.isUndefined)(h.zoom)||f.Bu(h.zoom),Object(ha.isUndefined)(h.rotation)||f.py(h.rotation),Object(ha.isUndefined)(h.scrollState)||f.v_(h.scrollState),Object(ha.isUndefined)(h.layers)||!f.ba?[3,2]:
|
|
[4,f.ba.Un()];case 1:r=n.ea(),r=r.map(function(f,r){return Object(ea.a)(Object(ea.a)({},f),{visible:h.layers[r].visible})}),f.ba.Bo(r),f.Pq(),f.Ye(),n.label=2;case 2:return[2]}})})}});ba.a=Object(ia.a)([{type:ia.a.U1.V_,check:function(f){return!!f.ba},methods:{ld:"getPageWidth",kd:"getPageHeight",Wb:"getPageCount"}}])(Ca)},function(ia,ba,e){e.d(ba,"b",function(){return ea});e.d(ba,"c",function(){return x});e.d(ba,"e",function(){return ha});e.d(ba,"f",function(){return ca});e.d(ba,"d",function(){return da});
|
|
e.d(ba,"g",function(){return aa});e.d(ba,"a",function(){return w});var ea={ANNOTATION_SELECTED:"annotationSelected",ANNOTATION_DESELECTED:"annotationDeselected",ANNOTATION_DOUBLE_CLICKED:"annotationDoubleClicked",ANNOTATION_CHANGED:"annotationChanged",UPDATE_ANNOTATION_PERMISSION:"updateAnnotationPermission",ANNOTATIONS_DRAWN:"annotationsDrawn",ANNOTATION_HIDDEN:"annotationHidden",SET_NOTE_TEXT:"setNoteText",ADD_REPLY:"addReply",DELETE_REPLY:"deleteReply",FIELD_CHANGED:"fieldChanged",FILE_ATTACHMENT_DATA_AVAILABLE:"fileAttachmentDataAvailable"},
|
|
x={rN:"annotationChanged.editbox",sN:"annotationDoubleClicked.editbox",E_:"annotationSelected.cropTool",qN:"annotationChanged.cropTool"},ha={ACTIVE_SEARCH_RESULT_CHANGED:"activeSearchResultChanged",SEARCH_RESULTS_CHANGED:"searchResultsChanged",MOUSE_LEFT_UP:"mouseLeftUp",MOUSE_LEFT_DOWN:"mouseLeftDown",CLICK:"click",TAP:"tap",DBL_CLICK:"dblClick",KEY_DOWN:"keyDown",KEY_UP:"keyUp",MOUSE_ENTER:"mouseEnter",MOUSE_MOVE:"mouseMove",MOUSE_LEAVE:"mouseLeave",MOUSE_RIGHT_DOWN:"mouseRightDown",MOUSE_RIGHT_UP:"mouseRightUp",
|
|
DOCUMENT_UNLOADED:"documentUnloaded",ANNOTATIONS_LOADED:"annotationsLoaded",BEFORE_DOCUMENT_LOADED:"beforeDocumentLoaded",DOCUMENT_LOADED:"documentLoaded",DISPLAY_PAGE_LOCATION:"displayPageLocation",NOTIFY:"notify",SEARCH_IN_PROGRESS:"searchInProgress",TEXT_SELECTED:"textSelected",TOOL_MODE_UPDATED:"toolModeUpdated",FIT_MODE_UPDATED:"fitModeUpdated",ROTATION_UPDATED:"rotationUpdated",ZOOM_UPDATED:"zoomUpdated",PAGE_NUMBER_UPDATED:"pageNumberUpdated",PAGES_UPDATED:"pagesUpdated",PAGE_COMPLETE:"pageComplete",
|
|
DISPLAY_MODE_UPDATED:"displayModeUpdated",BEGIN_RENDERING:"beginRendering",FINISHED_RENDERING:"finishedRendering",CLIENT_SIDE_DOCUMENT_LOADED:"clientSideDocumentLoaded",TOOL_UPDATED:"toolUpdated",EMBEDDED_THUMBNAIL_COMPLETE:"embeddedThumbnailComplete",READ_ONLY_MODE_CHANGED:"readOnlyModeChanged"},ca={pN:"annotationsLoaded.internal",U_:"documentReady.annotsLoaded",b1:"PAUSE",p1:"RESUME",Z_:"endOfDocumentResult",R_:"contentRemoved.annotManager",C0:"mouseMove.hover",uN:"backendSwitch",a1:"pageProgressiveUpdate",
|
|
XN:"rotationUpdated.textTool",IF:"visiblePagesChanged",pF:"documentReady",L_:"bookmarksUpdated",yma:"contentRemoved"},da={TEXT_CONTENT_UPDATED:"textContentUpdated",EDIT_BOXES_AVAILABLE:"editBoxesAvailable"},aa={SCALE_UPDATED:"scaleUpdated"},w={ADD:"add",DELETE:"delete",MODIFY:"modify"}},function(ia,ba,e){function ea(f){var h=this;if(!f)throw Error("AnnotationManager requires DocumentViewer to initialize");var n=this;n.MR=function(){return Promise.resolve()};n.Sv="";n.bt=!1;n.readOnly=!1;n.Ag={isEnabled:!0,
|
|
defaultRotationType:ma.i.FREEFORM_ROTATION,hotkeyTogglesRotationType:!0,snapAngleStepSizeInDegrees:45};n.uy={radiusThreshold:20,indicatorSize:18,indicatorColor:"#FFA500"};n.Doa=!1;n.PG=!0;n.YO=!1;n.sG=!0;n.aa=f;n.xi=new aa.a(n);n.una=new ca.a(n,f);n.sna=new da.a(n,f);n.cP=new w.a(n);n.Nr=new ua.Ya.f2(n);n.hp=new y.a(n);n.init();n.Zj=new ua.Annotations.ha.xf(this);n.LQ=function(f){return f};f.addEventListener(r.f.R_,function(){n.Vb.forEach(function(f){f.trigger(Ca.HTMLAnnotation.Events.CONTENT_REMOVED)})});
|
|
f.addEventListener(r.e.DOCUMENT_LOADED,function(){n.g8()});n.boa={};n.Pj={line:[Ca.Od],circle:[Ca.kr],square:[Ca.Wk],freetext:[Ca.gb],stamp:[Ca.xh],text:[Ca.yh],ink:[Ca.FreeHandAnnotation,Ca.Eu],arc:[Ca.Eu],polyline:[Ca.qr],polygon:[Ca.pi],strikeout:[Ca.FF],highlight:[Ca.DF],redact:[Ca.Wo],underline:[Ca.GF],squiggly:[Ca.EF],caret:[Ca.BN],widget:[fa.TextWidgetAnnotation,fa.DatePickerWidgetAnnotation,fa.ChoiceWidgetAnnotation,fa.ListWidgetAnnotation,fa.PushButtonWidgetAnnotation,fa.CheckButtonWidgetAnnotation,
|
|
fa.RadioButtonWidgetAnnotation,fa.SignatureWidgetAnnotation],link:[Ca.Pd],fileattachment:[Ca.Mu],custom:[Ca.MN],model3D:[Ca.Cj],sound:[Ca.rz]};n.controlPointSize=8;n.controlPointHitBoxScale=1;n.addEventListener(ea.Events.ANNOTATION_DOUBLE_CLICKED,function(f){f.ViewState&&h.aa.cY(f.ViewState)});n.addEventListener(ea.Events.ANNOTATION_SELECTED,function(f,r){"selected"===r&&1===f.length&&(f=f[0],f.ViewState&&f instanceof Ca.xh&&h.aa.cY(f.ViewState))});n.addEventListener(ea.Events.ANNOTATION_SELECTED,
|
|
function(f,h){var r=this;if(f)if("selected"===h){var n=[];f.forEach(function(f){n=n.concat(r.qC(f))});n=n.filter(function(f){return!r.Xl(f)});r.ey(n)}else if("deselected"===h){this.trigger(ea.Events.ANNOTATION_DESELECTED,[f]);var e=[];f.forEach(function(f){e=e.concat(r.qC(f))});e=e.forEach(function(f){r.Xl(f)&&r.Hn(f)})}});n.addEventListener(ea.Events.ANNOTATION_DOUBLE_CLICKED,function(f){switch(f.elementName){case "fileattachment":f.getFileData().then(function(h){var e=f.rT(),z=e.filename;n.trigger(r.b.FILE_ATTACHMENT_DATA_AVAILABLE,
|
|
{fileData:h,filename:z,mimeType:e.mimeType,fileName:z})})}});n.addEventListener(ea.Events.ANNOTATION_CHANGED,function(f,h){var n=this;h===r.a.ADD&&f.forEach(function(f){if(f.Listable&&!f.ToolName)switch(f.elementName){case "line":f.ToolName=f.Measure&&"LineDimension"===f.IT?ma.m.DISTANCE_MEASUREMENT:"None"===f.Xg()&&"None"===f.pf()?ma.m.LINE:ma.m.ARROW;break;case "circle":f.ToolName=ma.m.ELLIPSE;break;case "square":f.ToolName=ma.m.RECTANGLE;break;case "freetext":f.ToolName=f.Le()===Ca.gb.Intent.FreeTextCallout?
|
|
ma.m.CALLOUT:ma.m.FREETEXT;break;case "stamp":f.ViewState?(f.ToolName=ma.m.CHANGEVIEW,f.selectionModel=oa.a):f.ToolName=ma.m.RUBBER_STAMP;break;case "ink":f.O1===va.a.Gc("signature")?f.ToolName=ma.m.SIGNATURE:f.O1===va.a.Gc("highlight")?f.ToolName=ma.m.FREEHAND_HIGHLIGHT:f.ToolName=ma.m.FREEHAND;break;case "polyline":f.ToolName=f.Measure&&"PolyLineDimension"===f.IT?ma.m.PERIMETER_MEASUREMENT:ma.m.POLYLINE;break;case "polygon":if("cloudy"===f.Style&&"PolygonCloud"===f.nc)f.ToolName=ma.m.POLYGON_CLOUD;
|
|
else if(f.Measure&&"PolygonDimension"===f.IT){var h=f.Ra();f.ToolName=5===h.length&&h[0].Y===h[1].Y&&h[2].Y===h[3].Y&&h[1].X&&h[2].X&&h[0].X&&h[3].X?ma.m.RECTANGULAR_AREA_MEASUREMENT:ma.m.AREA_MEASUREMENT}else f.ToolName=ma.m.POLYGON;break;case "strikeout":f.ToolName=ma.m.STRIKEOUT;break;case "highlight":f.ToolName=ma.m.HIGHLIGHT;break;case "underline":f.ToolName=ma.m.UNDERLINE;break;case "squiggly":f.ToolName=ma.m.SQUIGGLY;break;case "text":f.ToolName=ma.m.STICKY;break;case "redact":f.ToolName=ma.m.REDACTION}});
|
|
h===r.a.MODIFY&&f.forEach(function(f){var h;return $h(function(r){if(1==r.La){if(!f.ViewState){r.La=0;return}h=f;return Af(r,n.aa.getState(),3)}h.ViewState=r.wf;r.La=0})})});n.addEventListener(ea.Events.ANNOTATION_CHANGED,function(f,h,e){e.imported&&h===r.a.ADD&&f.forEach(function(f){var h=f.ac("trn-link-id");setTimeout(function(){if(h){var r=[];JSON.parse(h).forEach(function(f){var h=n.hg(f);h?r.push(h):Object(ha.j)("Associated link annotation with id "+f+" was not found when importing annotations")});
|
|
n.yJ(f,r);f.Df("trn-link-id")}},0)})});n.addEventListener(ea.Events.ANNOTATION_CHANGED,function(f,e,z){z.imported||e===r.a.ADD||e===r.a.DELETE||f.forEach(function(f){var r=n.WI(f);if(!(f instanceof Ca.Xk||f instanceof Ca.Pd)&&0<r.length){var e={};r.forEach(function(h){var r=f.Sa(),n=h.Sa();r.isEqual(n)||(h.cc(r),e[h.PageNumber]=!0)});Object.keys(e).forEach(function(f){h.Sc(parseInt(f,10),null,!0)})}})})}var x=e(0);e.n(x);var ha=e(2),ca=e(336),da=e(337),aa=e(338),w=e(214),y=e(79),n=e(28),h=e(29),f=
|
|
e(5),r=e(10),z=e(43),fa=e(25),ka=e(48),ja=e(4);ia=e(51);var pa=e(75),ma=e(3),la=e(144),na=e(34),ra=e(22),sa=e(104),Da=e(6),qa=e(19),va=e(12);e(282);e(317);var oa=e(155),ua=window,Ca=ua.Annotations;ea.prototype={init:function(){function f(){return{get:function(f,h){return this[f]&&this[f][h]},set:function(f,h,r){this[f]=this[f]||{};this[f][h]=r},delete:function(f,h){this[f]&&delete this[f][h]}}}this.Vb=[];this.Lq={};this.PH=[];this.rp=[];this.wB={};this.xi.he();this.jj=null;this.KB=f();this.VD=f()},
|
|
yJ:function(f,h){function n(f){f.Cw().forEach(function(f){e(f)})}function e(h){f.jl(h);var r=h.InReplyTo;h.InReplyTo=f.Id;h.ReplyType="group";r&&h.InReplyTo!==r&&z.hg(r).xB(h)}var z=this;h.forEach(function(h){h!==f&&(h.InReplyTo?e(h):(e(h),n(h)))});this.trigger(ea.Events.ANNOTATION_CHANGED,[h,r.a.MODIFY,{}])},YZ:function(f){if(0!==f.length){var h=this,n=!1;f.forEach(function(f){if("group"===f.ReplyType){var r=h.hg(f.InReplyTo);r&&(r.xB(f),n=!0);f.InReplyTo=null;f.ReplyType=null}});n&&this.trigger(ea.Events.ANNOTATION_CHANGED,
|
|
[f,r.a.MODIFY,{}])}},hba:function(f){var h=0,r=[];f.forEach(function(f){f=f.InReplyTo||f.Id;0>r.indexOf(f)&&(r.push(f),h++)});return h},qC:function(f){var h=[];if(f.dt()){if(f=this.hg(f.InReplyTo))return h.push(f),h.concat(f.Cw())}else return h.push(f),h.concat(f.Cw());return h},WI:function(f){return this.qC(f).filter(function(f){return f instanceof Ca.Pd})},g8:function(){this.Hp=!1},kg:function(){return this.Sv},eM:function(f){this.Sv=f;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},Yaa:function(){Object(ha.d)("8.0",
|
|
"getIsAdminUser",["isUserAdmin"]);return this.bt},Vda:function(){return this.bt},Dja:function(f){Object(ha.d)("8.0","setIsAdminUser",["promoteUserToAdmin","demoteUserFromAdmin"]);this.bt=f;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},Fga:function(){this.bt=!0;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},p7:function(){this.bt=!1;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},Gba:function(){Object(ha.d)("8.0","getReadOnly",["isReadOnlyModeEnabled"]);return this.readOnly},mK:function(){return this.readOnly},
|
|
fka:function(f){this.readOnly=f;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION);Object(ha.d)("8.0","setReadOnly",["enableReadOnlyMode","disableReadOnlyMode"])},hI:function(){this.readOnly=!0;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},SH:function(){this.readOnly=!1;this.trigger(ea.Events.UPDATE_ANNOTATION_PERMISSION)},uda:function(){Object(ha.d)("8.2","isFreeformRotationEnabled",["getRotationOptions"]);return this.Ag.isEnabled&&(this.Ag.defaultRotationType===ma.i.FREEFORM_ROTATION||
|
|
this.Ag.hotkeyTogglesRotationType)},wja:function(f){Object(ha.d)("8.0","setFreeFormRotationEnabled",["setRotationOptions"]);this.Ag.isEnabled=f;this.Ag.defaultRotationType=ma.i.FREEFORM_ROTATION},C9:function(){Object(ha.d)("8.2","enableFreeformRotation",["setRotationOptions"]);this.Ag.isEnabled=!0;this.Ag.defaultRotationType=ma.i.FREEFORM_ROTATION},I7:function(){Object(ha.d)("8.2","disableFreeformRotation",["setRotationOptions"]);this.Ag.isEnabled=!1;this.Ag.defaultRotationType=ma.i.FREEFORM_ROTATION},
|
|
kka:function(f){void 0!==f.isEnabled&&(this.Ag.isEnabled=f.isEnabled);void 0!==f.hotkeyTogglesRotationType&&(this.Ag.hotkeyTogglesRotationType=f.hotkeyTogglesRotationType);if(void 0!==f.defaultRotationType){if(f.defaultRotationType!==ma.i.SNAP_ROTATION&&f.defaultRotationType!==ma.i.FREEFORM_ROTATION)throw Error("Invalid default rotation type given. Use AnnotationManager.RotationTypes.SNAP_ROTATION or AnnotationManager.RotationTypes.FREEFORM_ROTATION.");this.Ag.defaultRotationType=f.defaultRotationType}if(void 0!==
|
|
f.snapAngleStepSizeInDegrees){if(0>=f.snapAngleStepSizeInDegrees||180<f.snapAngleStepSizeInDegrees)throw Error("Invalid snap angle given. Use an angle between 0 and 180 degrees.");this.Ag.snapAngleStepSizeInDegrees=f.snapAngleStepSizeInDegrees}},wC:function(){return this.Ag},dma:function(){Object(ha.d)("8.0","useFreeTextEditing",["isFreeTextEditingEnabled"]);return this.PG},WU:function(){return this.PG},H7:function(){this.PG=!1;this.cP.disable()},T7:function(){this.YO=!0},cka:function(f){this.OR=
|
|
f},hR:function(f){return(this.OR?this.OR(f.Author,f):this.bt||f.Author===this.Sv||null===f.Author||"undefined"===typeof f.Author||""===f.Author)&&!this.readOnly&&!f.ReadOnly},Qc:function(f){return this.hR(f)&&!f.Locked},qH:function(f){return this.hR(f)&&!f.LockedContents},Cka:function(f){this.AZ=f},Via:function(f){this.ZQ=f},ue:function(){return this.Zj},KX:function(f){f=f.map(Number);var h=[];this.Vb=this.Vb.filter(function(r){return-1!==f.indexOf(r.PageNumber)&&r.fK()?(h.push(r),r.WE(),!1):!0});
|
|
if(0<h.length){var n=this;setTimeout(function(){n.trigger(ea.Events.ANNOTATION_CHANGED,[h,r.a.DELETE,{imported:!0}])},0)}},GL:function(f){var h=this;f.addEventListener(sa.a.Events.PAGES_UPDATED,function(f){if(f.removed&&0<f.removed.length){var r=h.Vb.filter(function(h){return-1<f.removed.indexOf(h.PageNumber)});h.Wj(r,{imported:!1,force:!0,source:"pagesUpdated"})}h.Vb.forEach(function(h){var r=f.moved[h.PageNumber];r&&(h.PageNumber=r)});h.Xla(f)});f.addEventListener(sa.a.Events.PAGE_CONTENT_CHANGED,
|
|
function(f,r){0<r.length&&h.KX(r)});f.addEventListener(sa.a.Events.PAGE_DIFF,function(f){var r={};h.Vb.forEach(function(f){var h=f.ua();h in r?r[h].push(f):r[h]=[f]});f.forEach(function(f){var h=f.before;f=f.after;if(r[f.pageNum]){var n=[].concat(Md(r[f.pageNum]));n=n.sort(function(f){return f.annot?1:-1});var e=new ra.a;e.Ri(f.matrix);e.concat(h.Pa.inverse());n.forEach(function(f){var h=f.IsModified,r=f.Sa(),n=r.x1,z=r.y1,fa=r.x2,ja=r.y2,w=f.isImporting;f.isImporting=!0;f.Lm(e);f.isImporting=w;h||
|
|
r.x1!==n||r.x2!==fa||r.y1!==z||r.y2!==ja||(f.IsModified=h);f.annot&&(h=f.ig(),r=f.IsModified,h.cc(f.Sa()),h.IsModified=r)})}})})},eZ:function(f){var h=!(f instanceof Ca.HTMLAnnotation)||f.Im();if(f.wP)return!1;var r=f instanceof Ca.xh&&this.YO,n=f.Uc();n=Object(na.a)(n)||!!f.xd;var e=f.Uc(ma.a.ROLLOVER);e=f.IsHovering&&Object(na.a)(e);return!(f.editor&&f.editor.hasFocus())&&(e||h&&!r&&n)},Sc:function(f,h,r,n){var e=f;Object(x.isObject)(f)||(e={pageNumber:f,overrideCanvas:h,majorRedraw:r,overrideContainer:n});
|
|
f=e.namespace||"default";e.namespace=f;h=e.pageNumber-1;if(!this.KB.get(h,f)||e.overrideCanvas)return this.vea(e);r=(r=this.VD.get(h,f))&&r.GV;this.VD.set(h,f,{Hb:e.pageNumber,GV:e.majorRedraw||r});return this.KB.get(h,f)},vea:function(f){var h=f.pageNumber,r=f.overrideCanvas,e=f.overrideContainer,z=f.namespace;if(isNaN(h))throw Error("Invalid page index given");var fa=h-1,ja=this.aa.Lb(h),w=this.Gl(h),y=!!r,aa=r,ka=!!this.aa.Xa().querySelector("#pageContainer"+h+" .auxiliary");!y&&ka&&(aa=this.aa.pB(h))&&
|
|
this.aa.GE(h,aa);if(!aa)return Promise.resolve();var la=aa.getContext("2d"),na="undefined"!==typeof f.completeRotation?f.completeRotation:this.aa.Hc(h),da=90*na;ka=this.aa.hc(h);r||(da=this.aa.Sn(h),this.U5(aa,h,da));var pa=e||Object(n.a)().nq(h,this.aa.Xa()),x=Promise.resolve();w={documentRotation:da,completeRotation:na,appearanceData:w,isOverriding:y,widgetContainer:pa,zoom:ja};w=Object.assign(w,f);var ca=[],ra=[];this.Vb.forEach(function(f){f instanceof Ca.HTMLAnnotation?ca.push(f):ra.push(f)});
|
|
f=ra.concat(ca);for(da=0;da<f.length;da++)pa=f[da],pa.ua()!==h||this.Lq[pa.Id]||(x=x.then(this.fS.bind(this,pa,la,ka,w)));this.jj&&this.jj.PageNumber===h&&(this.pg(this.jj)||this.Lq[this.jj.Id]?this.jj=null:x=x.then(this.fS.bind(this,this.jj,la,ka,w)));var ma=this;ka=x.then(function(){var f=ma.aa.getDocument();if(f){y||(ma.aa.MJ(h,aa),ma.KB.delete(fa,z));var n=(ma.aa.me()-na)%4;f.l9(aa,h,!0,n);f=ma.aa.kq();n=ma.aa.Xa();f&&n&&f.br&&"crosshair"===n.style.cursor&&Object(qa.f)(la,ma.aa.Lb(h),f.br,ma.uy);
|
|
y||ja!==ma.aa.Lb(h)||ma.aa.zL(h,aa,ma.aa.Xa());if(!y){if(f=ma.VD.get(fa,z))return ma.VD.delete(fa,z),ma.Sc({pageNumber:f.Hb,overrideCanvas:r,overrideContainer:e,majorRedraw:f.GV,namespace:z});ma.trigger(ea.Events.ANNOTATIONS_DRAWN,[h])}}});y||this.KB.set(fa,z,ka);return ka},U5:function(f,h){this.aa.Ll(h);Object(n.a)().yH(f)},j8:function(f,h,r,n){var e=this;return new Promise(function(z){if(e.aa.$o||f.hK())if(n.isOverriding?f.eV():f.isVisible()){if(n.majorRedraw&&e.pg(f)){var fa=n.isOverriding?1:e.aa.Lb(f.PageNumber);
|
|
f.render(n.widgetContainer,e,fa,n.isOverriding)}e.k8(f,h,r,n).then(function(){z()})}else n.isOverriding||f.WE(),z();else z()})},k8:function(f,h,r,n){var e=this,z,fa,ja,w,y,aa,ka;return $h(function(la){if(1==la.La)return z=!!f.Uc(ma.a.ROLLOVER)||f.DJ(),fa=f.IsHovering?ma.a.ROLLOVER:ma.a.NORMAL,f instanceof Ca.gb||f.Cr||f.measurementCaptionOptions?(la.La=2,la=void 0):la=Af(la,f.Mh(r),3),la;if(2!=la.La&&(ja=la.wf)&&!f.Cr)try{return la.return(Object(na.c)(f,h,r,n,fa))}catch(Na){Object(ha.c)(Na)}w=f instanceof
|
|
Ca.xh&&f.ac("trn-original-image");if(!z&&(w||!e.eZ(f)||f.IsHovering))return e.YH(f,h,r,n),la.return(Promise.resolve());y=n.appearanceData;aa=y.kl.findIndex(function(h,r){return h===f&&f.IsHovering&&y.NQ[r]===ma.a.ROLLOVER});-1===aa&&(aa=y.kl.findIndex(function(h,r){return h===f&&y.NQ[r]===ma.a.NORMAL}));if(ka=y.P4[aa])return f.hidden?la.return(Promise.resolve()):la.return(ka.then(function(r){h.save();var n=f.eC(fa);return r.draw(h,n.offset).then(function(){h.restore()})}).catch(function(z){Object(ha.j)("Annotation appearance failed to render: ",
|
|
z);f.UX();e.YH(f,h,r,n)}));e.YH(f,h,r,n);return la.return(Promise.resolve())})},YH:function(f,h,r,n){n=n||{};var e=f.ua();r=r||this.aa.hc(e);if(this.aa.getDocument()){var z=this.aa.getDocument().mb(e);if(z)if(n.overridePageCanvas?(e=this.aa.getDocument().Ml(),e="webviewerServer"===e||"xod"===e?1:h.canvas.width/z.width):e=this.aa.Lb(e),f.BlendMode&&Object(na.g)(f.BlendMode)){var fa=f.PageNumber,ja=Object(x.isUndefined)(n.overridePageRotation)?this.aa.Hc(fa):n.overridePageRotation,w=n.overridePageRotation;
|
|
Object(x.isUndefined)(w)&&(w=n.overridePageCanvas?ja:this.aa.Sn(fa)/90);va.a.vN.m9(f,h,r,{pageInfo:z,completeRotation:ja,documentRotation:w,zoom:e,overridePageCanvas:n.overridePageCanvas},this.aa)}else f.draw(h,r,n.documentRotation,e)}},fS:function(f,h,r,n){if(!this.Hp&&this.aa.getDocument()){h.save();this.Tka(f,h,n.isOverriding);var e=this;h.save();return f.zm().then(function(){return e.j8(f,h,r,n)}).then(function(){h.restore();n.isOverriding||e.eI(f,h,r);h.restore()}).catch(function(){})}},Pia:function(f,
|
|
h,r){var n=f.canvas;h=Object(pa.a)(h,r,{width:n.width,height:n.height});switch(r){case ma.f.E_0:f.setTransform(h.m_a,h.m_b,h.m_c,h.m_d,0,0);break;case ma.f.E_90:f.setTransform(h.m_a,h.m_b,h.m_c,h.m_d,n.width,0);break;case ma.f.E_180:f.setTransform(h.m_a,h.m_b,h.m_c,h.m_d,n.width,n.height);break;case ma.f.E_270:f.setTransform(h.m_a,h.m_b,h.m_c,h.m_d,0,n.height)}},Tka:function(f,h,r){if(!0===f.NoZoom){var n=new ja.e,e=this.aa.Lb(f.ua()),z=f.Kc(),fa=f.Lc();n.Pk(z,fa,0,0);r||n.scale(1/e,1/e);r=this.aa.Hc(f.PageNumber);
|
|
if(f instanceof Ca.yh&&Object(la.a)()&&f.DateCreated<Object(la.a)()){f=f.Sa();var w=f.KI(),y=w.Kc();w=w.Lc();n.clear();n.Pk(y,w,0,0);n.scale(1/e,1/e);n.rotate(-90*r);z+=f.Ba()/2/e;fa+=f.wa()/2/e}else f.NoRotate&&n.rotate(-90*r);n.Pk(0,0,z,fa);n=n.Ds().Mk();h.transform.apply(h,Md(n))}},eI:function(f,h,r){if(this.Xl(f)&&f.isVisible()){var n=new f.selectionModel(f,this.Qc(f),!0,this.aa),e=this.aa.Lb(f.ua());!0===f.NoZoom&&(e=1);f.oe||(f.mh(),f.di());n.draw(h,f,e,r)}},Gl:function(f){var h=this,r=[],n=
|
|
[],e=[];this.Pb().filter(function(r){return r.PageNumber===f&&h.eZ(r)}).forEach(function(f){r.push(f.eC(ma.a.NORMAL));n.push(f);e.push(ma.a.NORMAL);f.eC(ma.a.ROLLOVER)&&(r.push(Object.assign(f.eC(ma.a.ROLLOVER),{annotationState:ma.a.ROLLOVER})),n.push(f),e.push(ma.a.ROLLOVER))});if(this.aa.getDocument())return{P4:this.aa.getDocument().Gl(r,f),kl:n,NQ:e}},qb:function(f){if(!this.Lq[f.Id])return this.pg(f)||(this.jj=f),this.Sc(f.PageNumber)},gka:function(f){Object(ha.d)("8.0","setRedrawThrottle",["setRedrawThrottleRate"]);
|
|
this.qb=Object(x.throttle)(ea.prototype.qb.bind(this),f)},hka:function(f){this.qb=Object(x.throttle)(ea.prototype.qb.bind(this),f)},fea:function(f,h){h=void 0===h?{horizontalOffset:"auto",verticalOffset:"auto",zoom:this.aa.bc(),fitToView:!1,isSmoothScroll:!1}:h;var r=f.ua();this.aa.pV(r,[{x4:f.X,y4:f.Y,x2:f.X+f.Width,y2:f.Y+f.Height}],h)},Mca:function(f){this.vU([f])},vU:function(f){0!==f.length&&(f.forEach(function(f){f.Hidden=!0}),this.zB(f),this.kf(f),this.trigger(ea.Events.ANNOTATION_HIDDEN,[f,
|
|
!0]))},Zka:function(f){this.lZ([f])},lZ:function(f){f.forEach(function(f){f.Hidden=!1});this.kf(f);this.trigger(ea.Events.ANNOTATION_HIDDEN,[f,!1])},pg:function(f){return-1<this.Vb.indexOf(f)},rM:function(f,h){f.setContents(h);f.wP=!0;this.trigger(ea.Events.ANNOTATION_CHANGED,[[f],r.a.MODIFY,{}])},fy:function(f,h){f.oy(h);this.XE(f);this.trigger(ea.Events.ANNOTATION_CHANGED,[[f],r.a.MODIFY,{}])},Lla:function(f,h,n,e){n=void 0===n?0:n;e=void 0===e?(f.getContents()||"").length:e;Object(x.isNumber)(n)&&
|
|
Object(x.isNumber)(e)&&n>e?Object(ha.j)("Invalid inputs, end index should be greater then start index"):(f.h_(h,n,e),this.XE(f),this.trigger(ea.Events.ANNOTATION_CHANGED,[[f],r.a.MODIFY,{}]))},q5:function(f){var h=this.Vb.indexOf(f);-1<h&&(this.Vb.splice(h,1),this.Vb.push(f))},cR:function(f){var h=this.Vb.indexOf(f);-1<h&&(this.Vb.splice(h,1),this.Vb.unshift(f))},Sd:function(f,h){this.Ci(Array.isArray(f)?f:[f],h)},Ci:function(f,h,n){h=void 0===h?!1:h;n=void 0===n?!1:n;if(f){var e=h;Object(x.isObject)(h)||
|
|
(e={imported:h,isUndoRedo:n,autoFocus:!0});h=e.imported;n=!!e.isUndoRedo;e=!!e.autoFocus;for(var z=0;z<f.length;++z){var fa=f[z];0>=fa.PageNumber&&Object(ha.j)("Invalid annotation PageNumber: "+fa.PageNumber);this.Lq[fa.Id]&&delete this.Lq[fa.Id];this.Vb.push(fa);this.cZ(fa)}this.AM(f);0<f.length&&this.trigger(ea.Events.ANNOTATION_CHANGED,[f,r.a.ADD,{imported:h,isUndoRedo:n,autoFocus:e}])}},Kla:function(f){this.cZ(f);if(f.$l()){var h=this.Xn(f);this.trigger(ea.Events.SET_NOTE_TEXT,[f,h])}else this.trigger(ea.Events.SET_NOTE_TEXT,
|
|
f)},cZ:function(f){function h(){return(65536*(1+Math.random())|0).toString(16).substring(1)}f.Id||(f.isImporting=!0,f.Id=h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h(),f.isImporting=!1);f.ii&&f.ii(this.aa);f.ko()&&f.Sb(f.gc().value)},o4:function(f){for(var h=this.Pb(),r=0,n=h.length;r<n;r++){var e=h[r];e.InReplyTo&&e.InReplyTo===f.Id?(f.jl(e),this.trigger(ea.Events.ADD_REPLY,[e,f,this.Xn(f)])):!e.InReplyTo&&f.InReplyTo&&f.InReplyTo===e.Id&&(e.jl(f),this.trigger(ea.Events.ADD_REPLY,[f,e,this.Xn(e)]))}},
|
|
AM:function(f){function h(f,h){return h.DateCreated-f.DateCreated}var r=[],n;for(n=0;n<f.length;++n){var e=f[n];if(e instanceof Ca.Annotation)if(e.$l()){var z=this.hg(e.InReplyTo);z&&(z.jl(e),this.trigger(ea.Events.ADD_REPLY,[e,z,this.Xn(z)]))}else r.push(e),this.o4(e)}for(n=0;n<r.length;++n)if(f=r[n],0!==f.cq().length)for(e=[],e.push({annot:f,RH:null});0<e.length;){var fa=e.pop();z=fa.annot;null!==fa.RH&&this.trigger(ea.Events.ADD_REPLY,[z,fa.RH,f]);fa=z.cq().sort(h);for(var ja=0;ja<fa.length;++ja)e.push({annot:fa[ja],
|
|
RH:z})}},Rka:function(f){if(f.$l()){var h=this.hg(f.InReplyTo);h&&(h.jl(f),this.trigger(ea.Events.ADD_REPLY,[f,h,this.Xn(f)]))}},Xn:function(f){for(;null!==f&&f.$l();)f=this.hg(f.InReplyTo);return f},B6:function(f,h){var r=new Ca.yh;r.InReplyTo=f.Id;r.X=f.X;r.Y=f.Y;r.PageNumber=f.PageNumber;r.Author=this.kg();r.setContents(h||"");f.jl(r);this.Sd(r);return r},Mla:function(f,h,r,n){h=void 0===h?ma.h.NONE:h;r=void 0===r?ma.j.REVIEW:r;var e=new Ca.yh,z=this.kg();n||(n=h+" set by "+z);e.InReplyTo=f.Id;
|
|
e.X=f.X;e.Y=f.Y;e.PageNumber=f.PageNumber;e.Subject="Sticky Note";e.Author=z;e.State=h;e.StateModel=r;e.Hidden=!0;e.setContents(n);f.jl(e);this.Sd(e);this.trigger(ea.Events.ADD_REPLY,[e,f,this.Xn(f)]);return e},Xla:function(f){this.Pb().filter(function(f){return f instanceof Ca.Pd&&Object(x.hasIn)(f,"actions.U[0].dest.page")}).forEach(function(h){var r=h.actions.U[0].dest.page;f.removed&&-1!==f.removed.indexOf(r)&&(h.actions.U[0].dest.page=null);(r=Object(x.get)(f,"moved["+r+"]",null))&&(h.actions.U[0].dest.page=
|
|
r)})},XE:function(f){this.pg(f)&&this.Sc(f.ua())},fH:function(f){return Ca.$N.fH(f,this.aa)},YJ:function(){var f=this.aa.getDocument();f=f&&f.Ml();var r=["webviewerServer","video","audio"];return this.aE&&(Object(h.k)()&&"pdf"===f||r.includes(f))},oda:function(){return this.aE},K9:function(f){arguments.length?(f?Object(ha.j)("Calling enableRedaction with a parameter is deprecated since version 8.0. Please call it without a parameter"):Object(ha.j)("Calling enableRedaction with a parameter is deprecated since version 8.0. Please call disableRedaction."),
|
|
this.aE=f):this.aE=!0},R7:function(){this.aE=!1},jda:function(f){var h=this.aa.getDocument();return f&&f instanceof Ca.Wo&&!(h&&h.sk())&&this.YJ()},Dc:function(f,h,r,n){this.Wj(Array.isArray(f)?f:[f],h,r,n)},Wj:function(f,h,n,e){var z=this,ja=this,w=h;Object(x.isObject)(h)||(w={imported:h,force:n,isUndoRedo:e});h=w.imported;n=w.force;e=w.isUndoRedo;w=w.source;f=f.filter(function(f){return!!f&&!f.NoDelete});if(0!==f.length){var y=f.slice();f.forEach(function(f){f instanceof Ca.Pd||(ja.WI(f).forEach(function(f){f&&
|
|
y.push(f)}),ja.YZ(f.Cw().filter(function(f){return!y.includes(f)})))});f={};if(n||h||!this.mK()){for(var aa=[],ka=!1,la=[],na=0;na<y.length;na++){var da=y[na];da===this.jj&&(this.jj=null);da.WE();if(da instanceof fa.WidgetAnnotation){var pa=da.gc();if(pa){var ca=pa.widgets.indexOf(da);pa.widgets.splice(ca,1)}}this.pg(da)?n||h||this.Qc(da)?(this.xi.PA(da)&&la.push(da),this.xi.Hn(da),pa=this.Vb.splice(this.Vb.indexOf(da),1),aa.push(pa[0]),this.Lq[pa[0].Id]=pa[0],da.IsAdded||h||this.PH.push(pa[0]),da.$l()&&
|
|
(da.qU&&(pa=this.Xn(da),this.trigger(ea.Events.DELETE_REPLY,[da,pa])),this.hg(da.InReplyTo).xB(da)),da.cq().forEach(function(f){ja.trigger(ea.Events.SET_NOTE_TEXT,[f]);f.InReplyTo=null;ja.AM([f])}),f[da.ua()]=!0):ka=!0:f[da.ua()]=!0}0<aa.length&&this.trigger(ea.Events.ANNOTATION_CHANGED,[aa,r.a.DELETE,{imported:h,isUndoRedo:!!e,source:w}]);0<la.length&&this.trigger(ea.Events.ANNOTATION_SELECTED,[la,"deselected"]);ka&&this.aa.trigger(r.e.NOTIFY,"permissionDelete");new Promise(function(f){setTimeout(function(){z.Lq=
|
|
{};f()},16)});Object.keys(f).forEach(function(f){parseInt(f,10)<=z.aa.Wb()&&z.Sc(parseInt(f,10))})}else this.aa.trigger(r.e.NOTIFY,"readOnlyDelete")}},Qla:function(){if(!this.readOnly){this.rp=[];for(var f={},h=this.Ed(),r=0;r<h.length;r++)if(!(h[r]instanceof Ca.Xk||h[r].ToolName===ma.m.CROP||h[r].Sh())){h[r]instanceof Ca.Eu&&(h[r].elementName="arc");var n=this.Qn(h[r]);n.dt()||(f[h[r].Id]=n.Id);this.rp.push(n)}this.rp.forEach(function(h){h.dt()&&(h.InReplyTo=f[h.InReplyTo])});this.Ez=0}},taa:function(){return this.rp},
|
|
hga:function(f){f=void 0===f?!1:f;if(!this.readOnly&&"undefined"!==typeof this.Ez){this.Ez++;for(var h=[],r,n={},e=0;e<this.rp.length;e++){var z=this.Qn(this.rp[e],{copyAssociatedLink:!0});z.dt()||(n[this.rp[e].Id]=z.Id);h.push(z);var fa=this.aa.jg(),w=this.aa.ba.ld(fa),y=this.aa.ba.kd(fa);w=new ja.d(0,0,w,y);y=z.Sa();if(f){fa=this.aa.jb();fa={x:this.aa.lc.x+fa.scrollLeft,y:this.aa.lc.y+fa.scrollTop};var aa=this.aa.xa,ka=aa.Vc().gq(fa,fa);ka=null!==ka.first?ka.first:this.aa.jg();r=aa.xj(fa,ka);z.FH=
|
|
{x:-h[0].Kc()+z.Kc(),y:-h[0].Lc()+z.Lc()};z.ua()!==ka&&z.ly(ka)}else z.ua()===fa?y.translate(5*this.Ez,5*this.Ez):z.ly(fa);y.Jh(w);z.resize(y)}h.forEach(function(f){f.dt()&&(f.InReplyTo=n[f.InReplyTo])});this.Ci(h,{autoFocus:!1});this.he();this.ey(h);f&&h.forEach(function(f){var h=r,n=h.y;f.Gm(h.x+f.FH.x);f.Hm(n+f.FH.y);delete f.FH})}},Qn:function(f,h){function r(){return(65536*(1+Math.random())|0).toString(16).substring(1)}var n=this,e=this.Jba(f);if(null===e)return null;var z=this.aa.hc(f.ua()),
|
|
fa=z.inverse(),ja=document.createElementNS("",f.elementName);ja=f.serialize(ja,fa);var w=new e;w.isImporting=!0;w.deserialize(ja,z,this);w.isImporting=!1;w.Id=r()+r()+"-"+r()+"-"+r()+"-"+r()+"-"+r()+r()+r();w.Author=this.Sv;w.DateCreated=new Date;w.DateModified=new Date;w.IsAdded=!0;w.IsModified=!1;h&&h.copyAssociatedLink&&(h=this.WI(f),1<=h.length&&!(w instanceof Ca.Pd)&&h.forEach(function(f){f=n.Qn(f);n.Sd(f);n.yJ(w,[f])}));f.ZC()&&(this.hp.Rpa(w),w.vja([].concat(Md(f.sO))),w.uja(Object.assign({},
|
|
f.rO)));return w},X$:function(f){return f.Ema()},Xl:function(f){return this.xi.PA(f)},Cg:function(f){f.Listable&&this.pg(f)&&(this.xi.Cg(f),this.Sc(f.ua()),this.trigger(ea.Events.ANNOTATION_SELECTED,[[f],"selected"]))},ey:function(f){var h=this,r=[],n={};if(f&&Array.isArray(f)){for(var e=0;e<f.length;e++){var z=f[e];z.Listable&&this.pg(z)&&(this.xi.Cg(z),n[z.ua()]=z.ua(),r.push(z))}Object.keys(n).forEach(function(f){h.Sc(parseInt(f,10))})}0<r.length&&this.trigger(ea.Events.ANNOTATION_SELECTED,[r,
|
|
"selected"])},he:function(){var f=this,h=this.Ed();0!==h.length&&(this.xi.he(),this.aa.xa.ve().forEach(function(h){f.Sc(h)}),this.trigger(ea.Events.ANNOTATION_SELECTED,[h,"deselected"]))},Hn:function(f){this.xi.Hn(f);this.Sc(f.ua());this.trigger(ea.Events.ANNOTATION_SELECTED,[[f],"deselected"])},zB:function(f){var h=this;f=f.filter(function(f){return h.xi.PA(f)});this.xi.zB(f);this.kf(f);0<f.length&&this.trigger(ea.Events.ANNOTATION_SELECTED,[f,"deselected"])},Ed:function(){return this.xi.Ed()},Pb:function(){return this.Vb},
|
|
hg:function(f,h){h=h||this.Vb;if(Object(x.isUndefined)(f)||Object(x.isNull)(f))return null;for(var r=0;r<h.length;r++)if(h[r].Id===f)return h[r];return null},dC:function(f,h,r){r=r||this.Vb;if(Object(x.isUndefined)(f)||Object(x.isNull)(f))return[];for(var n=[],e=0;e<r.length;e++)r[e].Id===f&&n.push(r[e]);return Object(x.isUndefined)(h)?n:n.filter(function(f){return f.PageNumber===h})},Pn:function(f){f=this.zI(f);return 0<f.length?f[0]:null},zI:function(f){if(!this.aa.$o)return[];var h=new z.a(this.aa);
|
|
f=h.Me({x:h.Zg(f).x,y:h.Zg(f).y});h=[];if(null!==f)for(var r=this.Pb(),n=new ja.d(f.x,f.y,f.x,f.y),e=r.length-1;0<=e;e--){var fa=r[e];if(fa.selectionModel&&fa.isVisible()&&fa.ua()===f.pageNumber){var w=ka.a.canvasVisibilityPadding,y=fa.Sa(),aa=fa.PageNumber,la=this.aa.Lb(aa);if(fa.NoZoom){var da=new ja.e,pa=fa.Kc(),x=fa.Lc();da=da.Pk(pa,x,0,0).scale(1/la,1/la).Pk(0,0,pa,x).Ds();y.transform(da)}y.translate(-w,-w);y.x2+=2*w;y.y2+=2*w;if(Object(na.i)(y,n)||fa.IsClickableOutsideRect)w=this.aa.hc(aa),
|
|
aa=this.aa.Hc(aa),y=this.Xl(fa),da=new fa.selectionModel(fa,this.Qc(fa),y,this.aa),da.testSelection(fa,f.x,f.y,w,la,aa)?h.push(fa):y&&da.Hy(fa,la,f.x,f.y)&&h.push(fa)}}return h},Rp:function(f){var h=this;this.hp.If()&&this.hp.Yj();var r=this.aa.AI();r||(r=new Promise(function(f){h.aa.addEventListener("documentLoaded",function(){f(h.aa.AI())},{once:!0})}));f&&f.annotList?r=Promise.resolve():this.aa.h8();var n=this.aa.getDocument(),e=n&&"xod"!==n.Ml()&&(!f||f.generateInlineAppearances||Object(x.isUndefined)(f.generateInlineAppearances));
|
|
r=r.then(function(){return Promise.all((f&&f.annotList||h.Pb()).map(function(f){var r;return $h(function(n){if(1==n.La)return Af(n,f.zm(),2);r=window.utils.isPdfjs;!e||f.xd||r?(n.La=0,n=void 0):n=Af(n,f.Mh(h.aa.hc(f.PageNumber)),0);return n})}))});return Promise.all([].concat(Md(this.R$().map(function(f){return f.complete()})),[r])).then(function(){return h.Nr.K1(f)})},d$:function(){Object(ha.d)("8.3","exportAnnotCommand",["exportAnnotationCommand"]);return this.mI()},mI:function(){var f=this;this.hp.If()&&
|
|
this.hp.Yj();var h=this.aa.getDocument()&&"xod"!==this.aa.getDocument().Ml();return Promise.all(this.Pb().map(function(r){return $h(function(n){1==n.La?n=Af(n,r.zm(),2):!h||r.xd?(n.La=0,n=void 0):n=Af(n,r.Mh(f.aa.hc(r.PageNumber)),0);return n})})).then(function(){return f.Nr.U$()})},v$:function(f){this.AM(f);var h=this.Pb();h.filter(function(f){return f instanceof fa.SignatureWidgetAnnotation}).forEach(function(f){for(var r=xc(h),n=r.next();!n.done;n=r.next())if(n=n.value,f.ZJ(n)){f.Vt(n);break}});
|
|
this.aa.OT().sm("DocumentViewer.renderRequest",{type:"annotations",pages:Object(x.uniq)(f.map(function(f){return f.ua()-1}))})},QJ:function(f,h){var r=this;if(!this.aa.getDocument())throw Error("importAnnotations was called before the document was loaded. Please wait for the 'documentLoaded' event before calling 'importAnnotations'. See http://r.pdftron.com/documentloaded for more info.");h=Object.assign({uq:function(){return r.Hp},batchSize:100,batchDelay:0,replace:[],Yt:!0},h);var n=h.replace;n=
|
|
Array.isArray(n)?n:[n];if(0<n.length){var e=[];this.Vb.forEach(function(f){n.every(function(h){return f instanceof h})?f===r.jj&&(r.jj=null):e.push(f)});this.Vb=e}return/<!DOCTYPE(.|\s)*?<!ENTITY.*>/.test(f)?Promise.resolve([]):new Promise(function(n){var e=Da.a.Sw(f);r.Nr.v0(e,function(f){var h=f.kl,e,z,fa,ja;return $h(function(f){switch(f.La){case 1:e=0,z=h.length;case 2:if(!(e<z)){f.La=4;break}fa=h[e].Gj;if(!fa||!fa.filename||h[e].xd){f.La=3;break}return Af(f,r.MR(fa.filename),6);case 6:(ja=f.wf)?
|
|
h[e].un(ja,fa):Object(ha.j)("Custom appearance from filename found in XFDF but handler is not setup to return that document. Please use the AnnotationManager.setCustomAppearanceHandler function to set up your handler.");case 3:e++;f.La=2;break;case 4:if(r.Hp)return n([]),f.return();r.v$(h);n(h);f.La=0}})},h)})},Sca:function(f,h){var r=this;return $h(function(n){Object(ha.d)("8.3","importAnnotCommand",["importAnnotationCommand"]);return n.return(r.Ul(f,h))})},Ul:function(f,h){var r=this,n,e,z,fa,ja,
|
|
w,y,aa;return $h(function(ka){n=Da.a.Sw(f);e=r.Nr.Ul(n,h);z=[];e.LA&&0<e.LA.length&&(z=z.concat(e.LA),r.Rka(e.LA[0]));e.Yv&&0<e.Yv.length&&(z=z.concat(e.Yv));e.FK&&0<e.FK.length&&(z=z.concat(e.FK));fa=e.Yv?e.Yv.map(function(f){return f.Id}):[];ja=z.map(function(f){return f.Id});w=z.filter(function(f){return f.InReplyTo&&!fa.includes(f.Id)});w.forEach(function(f){var h=r.hg(f.InReplyTo);h&&h.jl(f)});y=r.Vb.filter(function(f){return 0<f.cq().length});aa=y.filter(function(f){return f.cq().some(function(f){return ja.includes(f.Id)})});
|
|
aa.forEach(function(f){for(var h=f.cq(),r=h.length-1;0<=r;r--)(h[r].InReplyTo!==f.Id||fa.includes(h[r].Id))&&f.xB(h[r])});return ka.return(z)})},fja:function(f){this.MR=f},kf:function(f){var h=[];(Array.isArray(f)?f:[f]).forEach(function(f){h.push(f.PageNumber);f.uA&&(h.push(f.uA),f.rR())});f=Object(x.uniq)(h);for(var r=[],n=0;n<f.length;n++)r.push(this.Sc(f[n],void 0,!0));return Promise.all(r)},R$:function(){return Object.values(this.aa.Pw()).filter(function(h){return h instanceof f.u})},se:function(){this.Pb().forEach(function(f){f.removeEventListener();
|
|
f.tla&&(f.tla=null);f.innerElement&&(f.Qg=null);f.element&&(f.Uf=null)});this.init();this.Hp=!0;this.Zj.se();this.hp.Yj();return Promise.resolve()},Mha:function(f,h){if("string"!==typeof f||!h)return!1;"undefined"===typeof this.Pj[f]&&(this.Pj[f]=[]);this.Pj[f].push(h);return!0},r7:function(f,h){if("string"!==typeof f||!h)return!1;this.Pj[f]=this.Pj[f].filter(function(f){return f!==h});return!0},Kba:function(){return this.Pj},Jba:function(f){if(!f||!f.elementName)return null;var h=this.Pj[f.elementName];
|
|
if(h&&0<h.length)for(var r=0;r<h.length;r++){var n=h[r];if(f instanceof n)return n}return null},qea:function(f){var h=this.wB[f];if(h){var r=h.length;f=this.aa.hc(f+1);for(var n=[],e=0;e<r;++e){var z=h[e].annot,fa=h[e].data;z.isImporting=!0;z.deserialize(fa,f,this);z.isImporting=!1;z.IsAdded=!1;z.IsModified=!1;n.push(z)}this.Ci(n,!0);this.kf(n)}},mC:function(){return this.cP},Tn:function(){return this.hp},tE:function(f,h){if(Object(x.isFunction)(h)){Object(ha.j)("Passing a function to annotManager.setAnnotationStyles as the second argument is deprecated, please pass an object instead. The deprecated argument will be removed in 7.0.");
|
|
var n="StrokeColor TextColor FillColor FontSize Opacity StrokeThickness Precision Scale OverlayText Dashes Style".split(" ").reduce(function(h,r){if(f[r]||0===f[r])h[r]=f[r];return h},{});h=h(n)}Object(x.isObject)(h)&&(Object.keys(h).forEach(function(r){f[r]=h[r]}),this.XE(f),this.trigger(ea.Events.ANNOTATION_CHANGED,[[f],r.a.MODIFY,{}]))},yY:function(f){this.LQ=f},SI:function(f){if(null===f)return null;"object"===typeof f&&(Object(ha.j)("AnnotationManager.getDisplayAuthor has been changed to accept a userID string instead of an annotation\n please see: https://www.pdftron.com/documentation/web/guides/annotation/display-authors/#map-a-userid-to-a-display-author "),
|
|
f=f.Author);return this.LQ(f)},Vja:function(f){Object(la.b)(f)},A9:function(){this.sG=!0},$R:function(){this.sG=!1},QU:function(){return this.sG},uka:function(f){var h=this;Object.keys(f).forEach(function(r){r in h.uy&&(h.uy[r]=f[r])})},qJ:function(){return this.uy}};Object(ia.a)(ea);ea.Events=r.b;ea.AnnotationChangedActions=r.a;ea.yf=r.c;ba.a=ea},function(ia,ba,e){function ea(f){return y[f]||"Unknown"}var x=e(0);e.n(x);var ha=e(21),ca=e(19),da=e(3);if(!(ia=!Object.defineProperty)){try{Object.defineProperty({},
|
|
"x",{});var aa=!0}catch(r){aa=!1}ia=!aa}ia&&(Object.defineProperty=function(f,h,n){if(f!==Object(f))throw new TypeError("Object.defineProperty called on non-object");Object.prototype.__defineGetter__&&"get"in n&&Object.prototype.__defineGetter__.call(f,h,n.get);Object.prototype.__defineSetter__&&"set"in n&&Object.prototype.__defineSetter__.call(f,h,n.set);"value"in n&&(f[h]=n.value);return f});"function"!==typeof Object.defineProperties&&(Object.defineProperties=function(f,h){if(f!==Object(f))throw new TypeError("Object.defineProperties called on non-object");
|
|
Object.keys(h).forEach(function(r){Object.prototype.hasOwnProperty.call(h,r)&&Object.defineProperty(f,r,h[r])});return f});var w,y={arrow:"Arrow",callout:"Callout",caret:"Caret",ellipse:"Ellipse",freehand:"Free Hand",freehandHighlight:"Free Hand Highlight",freetext:"FreeText",highlight:"Highlight",line:"Line",polygon:"Polygon",polyline:"Polyline",rectangle:"Rectangle",redact:"Redaction",signature:"Signature",squiggly:"Squiggly",stamp:"Stamp",stickyNote:"Comment",strikeout:"Strikeout",underline:"Underline",
|
|
custom:"Custom",fileattachment:"File Attachment","3D":"3D",sound:"Sound"},n=document.createElement("canvas"),h=n.getContext("2d"),f={Rm:1,Gc:function(f){return ea(f)},Sia:function(f){ea=f},ooa:function(f,h){var r=[];h=Math.min(f+1,h-1);for(f=Math.max(0,f-1);f<=h;++f)r.push(f);return r.map(function(f){return f+1})},coa:function(f){return null===f?"":0<f.length?f.replace(/&[^;]*;/g,function(f){switch(f.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===
|
|
f.charAt(2)?String.fromCharCode(parseInt(f.substring(3,f.length-1),16)):String.fromCharCode(parseInt(f.substring(2,f.length-1),10))}return f}):""},iT:function(f){return!f||f instanceof Date?f:new Date(f)},HC:function(){function f(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return f()+f()+"-"+f()+"-"+f()+"-"+f()+"-"+f()+f()+f()},measureText:function(f,h,n,e){if(!f||0===f.length)return{width:0,height:0};var r=document.getElementById("text-width-tester");"number"===typeof h&&(h+="px");
|
|
f=f.pj("\n","<br> ").pj(" "," ");var z=[].concat(Md(f)).some(function(f){return 127<f.charCodeAt(0)})?2:0;if(r)r.style.fontFamily=n,r.style.fontSize=h,r.style.fontWeight=e,r.innerHTML=f;else{var fa="display:none;";Object(x.isString)(n)&&(fa+="font-family:"+n+";");Object(x.isUndefined)(h)||(fa+="font-size:"+h+";");Object(x.isUndefined)(e)||(fa+="font-weight:"+e+";");r=document.createElement("span");r.id="text-width-tester";r.cssText=fa;r.innerHTML=f;document.getElementsByTagName("body")[0].appendChild(r)}r.style.display=
|
|
"";f=r.getBoundingClientRect();z={width:Math.floor(f.width),height:Math.floor(f.height)+z};r.style.display="none";return z},iq:function(f,h){var r=(w||(w=document.createElement("canvas"))).getContext("2d");r.font=h;return r.measureText(f).width},IS:function(f,h,n,e){if(h){h.style.fontSize=n+"px";f=0;for(var r;f<=n;)r=Math.floor((f+n)/2),h.style.overflow="hidden",h.offsetHeight,h.style.fontSize=r+"px",e&&(h.style.lineHeight=e(r)),h.style.overflow="auto",h.scrollHeight>Math.ceil(h.offsetHeight)?n=r-
|
|
1:f=r+1;h.scrollHeight>Math.ceil(h.offsetHeight)&&(h.style.fontSize=parseFloat(h.style.fontSize)-1+"px");return parseFloat(h.style.fontSize)}return n/2},p9:function(f,h){ca.c?f.addEventListener("change",function(f){h({change:f.target.value,XU:!0})}):(f.addEventListener("input",function(f){f.change=f.target.value;h(f)}),"TEXTAREA"!==f.nodeName&&f.addEventListener("keydown",function(f){"Enter"===f.key&&f.target.blur&&"function"===typeof f.target.blur&&f.target.blur()}))},m8:function(f,h,n,e){f.save();
|
|
f.translate(h.x,h.y);f.rotate(ha.a.Math.bk(h,n));f.moveTo(0,0);n=5*e+2;h=Math.cos(.2*Math.PI)*n;n*=Math.sin(.2*Math.PI);f.moveTo(h,-n);f.lineTo(0,0);f.lineTo(h,n);f.stroke();f.restore()},zv:function(f,h){var r=f.ra({x:0,y:0});h=f.ra({x:Number(h),y:0});f=r.x-h.x;r=r.y-h.y;return Math.sqrt(f*f+r*r)},aI:function(h,n,e,w){var r=Object(x.isUndefined)(w)?0<h.Xm:w;n.beginPath();w=ha.a.Math.f6(e);!r&&ha.a.Math.WW(e)&&(w[w.length]={x:w[0].x,y:w[0].y});if(!(!r&&2>=w.length||r&&1>=w.length)){var z=h.Intensity;
|
|
z&&"number"===typeof z||(z=2);var fa=1/8092,y=ha.a.Math.Dba(w);e=1!==Math.round(y);var aa=0,ka=6.5*z,ca=w[0],ea=ka,qa=ka,va={x:w[1].x-w[0].x,y:w[1].y-w[0].y},oa={x:w[0].x-w[w.length-2].x,y:w[0].y-w[w.length-2].y};z=!0;for(var ua=!1,ba=0,ya,ia,Aa,Fa=0;Fa<w.length-1;++Fa){var Ga=w[Fa],Ba=w[Fa+1],Ia={x:Ba.x-Ga.x,y:Ba.y-Ga.y},Ja=Math.sqrt(Ia.x*Ia.x+Ia.y*Ia.y);if(!(Ja<=fa)){Ba={x:Ia.x/Ja,y:Ia.y/Ja};var za=Math.max(Math.floor(Ja/ka),1),xa=Ja/za;aa=ha.a.Math.T$(Ba.x,Ba.y);if(!r&&0===Fa&&3>=w.length){var Ka=
|
|
Math.sqrt(va.x*va.x+va.y*va.y);if(Ka<ka){n.arc(w[0].x,w[0].y,Ka,0,2*Math.PI);return}if(Ka<2*xa){ya=Ka/2;n.arc(w[0].x,w[0].y,ya,0,2*Math.PI);n.moveTo(w[1].x+ya,w[1].y);n.arc(w[1].x,w[1].y,ya,0,2*Math.PI);n.moveTo(w[0].x+ya,w[0].y);return}n.arc(w[0].x,w[0].y,xa/2,0,2*Math.PI);n.moveTo(w[1].x+xa/2,w[1].y);n.arc(w[1].x,w[1].y,xa/2,0,2*Math.PI);n.moveTo(w[0].x+xa/2,w[0].y)}r&&0===Fa&&(Ka=.25*(ea+xa),f.arcTo(w[0].x-Ba.x*xa*.5,w[0].y-Ba.y*xa*.5,n,Ka,Ka,aa,!1,e,w[0].x+Ba.x*xa*.5,w[0].y+Ba.y*xa*.5));0===Fa&&
|
|
(ba=xa,ya={x:Ba.x,y:Ba.y});Ga.x-=Ba.x*xa*.5;Ga.y-=Ba.y*xa*.5;Ka=ha.a.Math.S6(oa,Ia);var ta=0;ua||(++ta,qa=xa,z=0>Ka*y,Ga.x+=Ba.x*xa,Ga.y+=Ba.y*xa,ca=Ga,n.moveTo(ca.x,ca.y),ia=ca.x,Aa=ca.y,ua=!0);if(!h.ArcDrawMode||h.ArcDrawMode===da.n.EQUAL_ARCS){for(ea=.25*(ea+xa);ta<za;++ta)Ga.x+=Ba.x*xa,Ga.y+=Ba.y*xa,Aa=f.arcTo(ia,Aa,n,ea,ea,aa,0===ta&&0>Ka*y,e,Ga.x,Ga.y),ia=Aa.xy,Aa=Aa.zy;oa=Ia;ea=xa}else if(h.ArcDrawMode===da.n.RANDOM_ARCS)for(Ia=Ja-ea,za=ha.a.Math.J6(h.Id);0<Ia;)xa=Math.max(20*za(),1),Ga.x+=
|
|
2*Ba.x*xa,Ga.y+=2*Ba.y*xa,Aa=f.arcTo(ia,Aa,n,xa,xa,aa,!1,e,Ga.x,Ga.y),ia=Aa.xy,Aa=Aa.zy,Ia-=2*xa}}ua||(n.moveTo(ca.x,ca.y),ia=ca.x,Aa=ca.y);ya&&!r&&(h=.25*(qa+ea),f.arcTo(ia,Aa,n,h,h,aa,z,e,w[w.length-1].x+.5*ba*ya.x,w[w.length-1].y+.5*ba*ya.y))}},arcTo:function(f,h,n,e,ja,w,y,aa,na,da){var r=[],z=[];ha.a.Math.X4(f,h,r,z,e,ja,w,y,aa,na,da);for(ja=e=0;ja<z.length;++ja)"c"===z[ja]?(n.bezierCurveTo(r[e],r[e+1],r[e+2],r[e+3],r[e+4],r[e+5]),f=r[e+4],h=r[e+5],e+=6):(n.lineTo(r[e],r[e+1]),f=r[e],h=r[e+1],
|
|
e+=2);return{xy:f,zy:h}},vN:{padding:1,qba:function(f,h,n){if(h.overridePageCanvas)return h.overridePageCanvas;f=f.PageNumber;h=(n=n.Xa())&&n.querySelector(".canvas"+f);n&&!h&&(h=n.querySelector("#hrthumb"+f))&&(h.isHrThumb=!0);return h},pca:function(f,e){e=e.completeRotation;if(e===da.f.E_0)return f;var r=0===e%2?f.width:f.height,z=0===e%2?f.height:f.width;if(!f.isHrThumb){n.width=r;n.height=z;switch(e){case da.f.E_90:h.rotate(-Math.PI/2);h.translate(-n.height,0);break;case da.f.E_180:h.rotate(Math.PI);
|
|
h.translate(-n.width,-n.height);break;case da.f.E_270:h.rotate(Math.PI/2),h.translate(0,-n.width)}e!==da.f.E_0&&(h.drawImage(f,0,0),f=n)}return f},Vba:function(f,h,n){var r=n.pageInfo,e=n.zoom||1,z=n.completeRotation,fa=n.documentRotation;n=h.X;var w=h.Y,y=h.Width||1;h=h.Height||1;var aa=parseFloat(f.style.top)||f.sqa||0,x=parseFloat(f.style.left)||f.qpa||0,ca=f.width/(f.style.width?parseFloat(f.style.width):f.width);"IMG"===f.nodeName&&(ca=f.naturalWidth/r.width);e*=ca;var ha=this.padding*e,ea=this.padding*
|
|
e,oa=r.width,ua=r.height;0!==fa%2&&(ua=r.width,oa=r.height);if(!f.isHrThumb)switch(r=0===z%2?f.width:f.height,f=0===z%2?f.height:f.width,x*=ca,aa*=ca,oa*=e,ua*=e,z){case da.f.E_90:z=aa;aa=ua-f-x;x=z;break;case da.f.E_180:x=oa-r-x;aa=ua-f-aa;break;case da.f.E_270:z=x,x=oa-r-aa,aa=z}return{X:n*e-x-ha,Y:w*e-aa-ea,Width:y*e+2*ha,Height:h*e+2*ea}},Aaa:function(f){return{X:f.X-this.padding,Y:f.Y-this.padding,Width:(f.Width||1)+2*this.padding,Height:(f.Height||1)+2*this.padding}},S8:function(f,h,n,e){var r=
|
|
this.pca(n,h);f.globalCompositeOperation="destination-over";var z=[],fa=this;e.Quads?e.Quads.forEach(function(f){var h=Math.min(f.x1,f.x2,f.x3,f.x4),r=Math.min(f.y1,f.y2,f.y3,f.y4);z.push({X:h,Y:r,Width:Math.max(f.x1,f.x2,f.x3,f.x4)-h,Height:Math.max(f.y1,f.y2,f.y3,f.y4)-r})}):z.push(e);z.forEach(function(e){var z=fa.Vba(n,e,h);e=fa.Aaa(e);f.imageSmoothingEnabled=!1;f.drawImage(r,z.X,z.Y,z.Width,z.Height,e.X,e.Y,e.Width,e.Height)})},m9:function(f,h,n,e,w){var r=this.qba(f,e,w);if(r){if(r.style.transform)return;
|
|
h.save();this.S8(h,e,r,f,w);h.restore()}h.globalCompositeOperation=f.BlendMode;f.draw(h,n,e)},mda:function(f){if(!f)return!1;var r=h.globalCompositeOperation;h.globalCompositeOperation=f;f=h.globalCompositeOperation===f;h.globalCompositeOperation=r;return f}}};(function(h){h.Annotations=h.Annotations||{};h=h.Annotations;h.Y1=f;return h.Y1})(window);ba.a=f},function(ia,ba,e){function ea(e){this.hl={};this.Hr=null;this.qv=0;Object(x.isObject)(e)&&(Object(x.isArray)(e.mask)&&this.hw(e.mask),e.onUpdate&&
|
|
(this.vA=e.onUpdate))}var x=e(0);e.n(x);var ha=e(6);ea.READ_ONLY="ReadOnly";ea.REQUIRED="Required";ea.NO_EXPORT="NoExport";ea.MULTILINE="Multiline";ea.PASSWORD="Password";ea.COMB="Comb";ea.NO_TOGGLE_TO_OFF="NoToggleToOff";ea.RADIO="Radio";ea.PUSH_BUTTON="PushButton";ea.COMBO="Combo";ea.EDIT="Edit";ea.DO_NOT_SCROLL="DoNotScroll";ea.RADIOS_IN_UNISON="RadiosInUnison";ea.FILE_SELECT="FileSelect";ea.DO_NOT_SPELL_CHECK="DoNotSpellCheck";ea.RICH_TEXT="RichText";ea.SORT="Sort";ea.MULTI_SELECT="MultiSelect";
|
|
ea.COMMIT_ON_SEL_CHANGE="CommitOnSelChange";ia={};ea.prototype={hz:(ia[ea.READ_ONLY]=1,ia[ea.REQUIRED]=2,ia[ea.NO_EXPORT]=4,ia[ea.MULTILINE]=4096,ia[ea.PASSWORD]=8192,ia[ea.NO_TOGGLE_TO_OFF]=16384,ia[ea.RADIO]=32768,ia[ea.PUSH_BUTTON]=65536,ia[ea.COMBO]=131072,ia[ea.EDIT]=262144,ia[ea.DO_NOT_SCROLL]=8388608,ia[ea.RADIOS_IN_UNISON]=33554432,ia),clear:function(){this.hl={};this.vA&&this.vA()},hw:function(e){Object(x.isNull)(this.Hr)&&(this.Hr={});for(var da=e.length,aa=0;aa<da;++aa){var w=e[aa];this.Hr[w]=
|
|
this.hz[w]||0}},Z6:function(e){var da=[],aa=this.Hr||this.hz;Object.keys(aa).forEach(function(w){0!==(e&aa[w])&&(e&=~aa[w],da.push(w))});return{result:da,unsupported:e}},get:function(e){return!!this.hl[e]},xla:function(){var e=this,da=0;Object.keys(this.hl).forEach(function(aa){e.hl.hasOwnProperty(aa)&&!0===e.hl[aa]&&(da|=e.hz[aa])});return da|this.qv},toArray:function(){var e=this;return Object.keys(this.hl).filter(function(da){return e.hl[da]})},deserialize:function(e){e=ha.a.getAttribute(e,"Ff");
|
|
this.set(parseInt(e,10))},serialize:function(e){e.setAttribute("Ff",String(this.xla()))},set:function(e,da){if(Object(x.isArray)(e)){da=e.length;for(var aa=0;aa<da;++aa)this.set(e[aa])}else Object(x.isNumber)(e)?(e=this.Z6(e),this.qv|=e.unsupported,this.set(e.result)):Object(x.isString)(e)&&(aa=!0,Object(x.isUndefined)(da)||(aa=!!da),this.Hr?Object(x.isUndefined)(this.Hr[e])?this.qv|=this.hz[e]||0:this.hl[e]=aa:this.hl[e]=aa,this.vA&&this.vA())}};ba.a=ea},function(ia,ba,e){function ea(e){if(0===e)return!1;
|
|
var w=Math.PI/4,y=1E-9>Math.abs(e%w-w);return 0===e%w||1E-9>e%w||y}function x(e,w,y){return e.map(function(n){return ha.a.Math.Am(n,w,y)})}var ha=e(21),ca=e(4),da={vC:x,FM:function(e){e=ha.a.jY(parseFloat(e));return 0===e||90===e||180===e||270===e},Kw:function(e,w,y){var n=e.x,h=e.y,f=e.width,r=e.height,z=new ca.b(n,h),fa=new ca.b(n+f,h);e=new ca.b(n,h+r);n=new ca.b(n+f,h+r);h=w;ea(h)&&(h+=1E-4);w=ha.a.Math.Am(z,h,y);fa=ha.a.Math.Am(fa,h,y);e=ha.a.Math.Am(e,h,y);y=ha.a.Math.Am(n,h,y);z=Math.min(w.x,
|
|
fa.x,e.x,y.x);n=Math.min(w.y,fa.y,e.y,y.y);return new ca.d(z,n,z+(Math.max(w.x,fa.x,e.x,y.x)-z),n+(Math.max(w.y,fa.y,e.y,y.y)-n))},DM:function(e){var w=5*Math.PI/180;return e instanceof Annotations.FreeHandAnnotation||[0,Math.PI/2,Math.PI,3*Math.PI/2,2*Math.PI].some(function(y){return Math.abs(da.tb(e.Rotation)-y)<=w})},Qw:function(e,w){var y=e.x1,n=e.y1,h=e.x2-e.x1;e=e.y2-e.y1;ea(w)&&(w+=1E-4);var f=Math.floor(w/(Math.PI/2))%4,r=w%(2*Math.PI);1===f?w=r-2*(r-Math.PI/2):3===f&&(w=r-2*(r-Math.PI));
|
|
f=(h*Math.tan(w)-e)/(Math.tan(w)*Math.sin(w)-Math.cos(w));w=(h-f*Math.sin(w))/Math.cos(w);f=Math.abs(f);w=Math.abs(w);return{x:y+(h-Math.abs(w))/2,y:n+(e-Math.abs(f))/2,width:w,height:f}},tb:function(e){return e*Math.PI/180},kk:function(e){return 180*e/Math.PI},yk:function(e){for(;0>e;)e+=2*Math.PI;for(;e>=2*Math.PI;)e-=2*Math.PI;return e},ST:function(e,w,y){var n=y.getDocument(),h=new ca.b(n.ld(w)/2,n.kd(w)/2);y=y.me()*Math.PI/2;w=da.tb(n.ad(w));return x(e,y+w,h)}};ba.a=da},function(ia,ba,e){e(181);
|
|
e(182);e(165);var ea=e(249);e.d(ba,"b",function(){return ea.a});var x=e(166);e.d(ba,"c",function(){return x.a});var ha=e(134);e.d(ba,"a",function(){return ha.a});var ca=e(115);e.d(ba,"f",function(){return ca.a});var da=e(95);e.d(ba,"e",function(){return da.a});var aa=e(50);e.d(ba,"d",function(){return aa.a})},function(ia,ba,e){var ea=e(258);e.d(ba,"a",function(){return ea.a});var x=e(259);e.d(ba,"b",function(){return x.a});var ha=e(260);e.d(ba,"c",function(){return ha.a});var ca=e(261);e.d(ba,"f",
|
|
function(){return ca.a});var da=e(138);e.d(ba,"d",function(){return da.a});var aa=e(179);e.d(ba,"h",function(){return aa.a});var w=e(262);e.d(ba,"g",function(){return w.a});e.d(ba,"e",function(){return aa.b})},function(ia,ba,e){function ea(){return!qa&&(ja&&14>ka||Da)}function x(){return la}function ha(){la=!1}function ca(){la=!0}function da(f){Object(w.d)("8.0","setIsWindowsApp",["setAsWindowsApp","unsetAsWindowsApp"]);la=f}function aa(){var f=1E6,h=document.createElement("div");h.setAttribute("style",
|
|
"visibility:hidden;");for(document.body.appendChild(h);;)if(f*=2,h.setAttribute("style","height:"+f+"px;"),1E9<f||h.getBoundingClientRect().height!==f){f=h.getBoundingClientRect().height;break}document.body.removeChild(h);return f}e.d(ba,"m",function(){return fa});e.d(ba,"i",function(){return n});e.d(ba,"o",function(){return ja});e.d(ba,"k",function(){return r});e.d(ba,"d",function(){return z});e.d(ba,"l",function(){return pa});e.d(ba,"e",function(){return ma});e.d(ba,"j",function(){return h});e.d(ba,
|
|
"b",function(){return f});e.d(ba,"t",function(){return da});e.d(ba,"f",function(){return x});e.d(ba,"n",function(){return na});e.d(ba,"q",function(){return ra});e.d(ba,"c",function(){return sa});e.d(ba,"p",function(){return ea});e.d(ba,"h",function(){return va});e.d(ba,"a",function(){return oa});e.d(ba,"r",function(){return ka});e.d(ba,"s",function(){return ca});e.d(ba,"u",function(){return ha});e.d(ba,"g",function(){return aa});var w=e(2),y="undefined"===typeof window?self:window,n=function(){var f=
|
|
navigator.userAgent.toLowerCase();return(f=/(msie) ([\w.]+)/.exec(f)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(f))?parseInt(f[2],10):f}(),h=function(){var f=y.navigator.userAgent.match(/OPR/),h=y.navigator.userAgent.match(/Maxthon/),r=y.navigator.userAgent.match(/Edge/);return y.navigator.userAgent.match(/Chrome\/(.*?) /)&&!f&&!h&&!r}(),f=function(){if(!h)return null;var f=y.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return f?parseInt(f[1],10):f}(),r=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&
|
|
y.navigator.userAgent.match(/Chrome\/(.*?) /),z=function(){if(!r)return null;var f=y.navigator.userAgent.match(/Edg\/([0-9]+)\./);return f?parseInt(f[1],10):f}(),fa=/iPad|iPhone|iPod/.test(y.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints,ka=function(){var f=y.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return f?parseFloat(f[1]):f}(),ja=/^((?!chrome|android).)*safari/i.test(y.navigator.userAgent)||/^((?!chrome|android).)*$/.test(y.navigator.userAgent)&&
|
|
fa,pa=y.navigator.userAgent.match(/Firefox/),ma=function(){if(!pa)return null;var f=y.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return f?parseInt(f[1],10):f}(),la=!1,na=!(n||!/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent)&&!fa),ra=!!navigator.userAgent.match(/(iPad|iPhone|iPod)/i),sa=-1<y.navigator.userAgent.indexOf("Android"),Da=/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(y.navigator.userAgent),qa=y.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)?14<=parseInt(y.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],
|
|
10):!1,va=!(!self.b2||!self.b2.validate),oa=-1<y.navigator.userAgent.indexOf("Edge/16")||-1<y.navigator.userAgent.indexOf("MSAppHost")},function(ia,ba,e){function ea(n){n.lastIndexOf("/")!==n.length-1&&(n+="/");aa=n}function x(){return aa}function ha(n,h){w!==h&&(n=n.Xa())&&(n.style.cursor=da.p?"zoom-in"===h?'url("'+aa+'zoom-in.cur"), default':"zoom-out"===h?'url("'+aa+'zoom-out.cur"), default':h:h,w=h)}function ca(n){return JSON.parse(JSON.stringify(n))}e.d(ba,"e",function(){return ea});e.d(ba,"c",
|
|
function(){return x});e.d(ba,"d",function(){return ha});e.d(ba,"b",function(){return y});e.d(ba,"a",function(){return ca});var da=e(19),aa="../assets/",w,y={scale:"1 in = 1 in",axis:[{factor:.0138889,unit:"in",decimalSymbol:".",thousandsSymbol:",",display:"D",precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}],distance:[{factor:1,unit:"in",decimalSymbol:".",thousandsSymbol:",",display:"D",precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}],area:[{factor:1,unit:"sq in",decimalSymbol:".",
|
|
thousandsSymbol:",",display:"D",precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}]}},function(ia,ba,e){var ea=e(256);e.d(ba,"a",function(){return ea.a});e.d(ba,"i",function(){return ea.b});e.d(ba,"o",function(){return ea.c});e.d(ba,"u",function(){return ea.d});var x=e(17);e.d(ba,"c",function(){return x.c});e.d(ba,"n",function(){return x.f});e.d(ba,"p",function(){return x.i});e.d(ba,"q",function(){return x.m});e.d(ba,"s",function(){return x.q});var ha=e(108);e.d(ba,"b",function(){return ha.a});
|
|
e.d(ba,"d",function(){return ha.b});e.d(ba,"e",function(){return ha.c});e.d(ba,"f",function(){return ha.d});e.d(ba,"g",function(){return ha.e});e.d(ba,"h",function(){return ha.f});e.d(ba,"j",function(){return ha.g});e.d(ba,"k",function(){return ha.h});e.d(ba,"l",function(){return ha.i});e.d(ba,"m",function(){return ha.j});e.d(ba,"v",function(){return ha.l});var ca=e(257);e.d(ba,"r",function(){return ca.a});var da=e(263);e.d(ba,"t",function(){return da.a})},function(ia,ba,e){function ea(n,h,f){h=h.split(" ");
|
|
for(var r=[],e=h[0],fa=1;fa<h.length;fa++){var w=h[fa];n.measureText(e+" "+w).width<f?e+=" "+w:(r.push(e),e=w)}r.push(e);return r}function x(n){var h="";if(!n)return h;var f=n.includes(y.c.BOLD);n=n.includes(y.c.ITALIC);f&&(h+=y.c.BOLD+" ");n&&(h+=y.c.ITALIC+" ");return h.trim()}function ha(n){return n&&n.includes(y.c.UNDERLINE)}function ca(n,h,f,r,e,fa){n.fillText(h,f,r);if(fa){fa=document.createElement("span");fa.style.font=n.font;fa.innerHTML=h;var z=document.createElement("div");z.style.display=
|
|
"inline-block";z.style.width="1px";z.style.height="0px";var w=document.createElement("div");w.appendChild(fa);w.appendChild(z);w.style.height="0px";w.style.overflow="hidden";document.body.appendChild(w);z.style.verticalAlign="baseline";fa=z.offsetTop-fa.offsetTop;z.style.verticalAlign="bottom";document.body.removeChild(w);h=n.measureText(h).width;r+=fa;fa/=15;fa=1>fa?1:fa;n.beginPath();if("left"===n.textAlign||"start"===n.textAlign){var y=f;var aa=f+h}else"right"===n.textAlign||"end"===n.textAlign?
|
|
(y=f-h,aa=f):"center"===n.textAlign&&(y=f-h/2,aa=f+h/2);n.strokeStyle=e;n.lineWidth=fa;n.moveTo(y,r);n.lineTo(aa,r);n.stroke()}}function da(){}function aa(n){return'<?xml version="1.0" encoding="UTF-8"?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><pages><defmtx matrix="1.333333,0.000000,0.000000,-1.333333,0.000000,'+4*n/3+'"/></pages><pdf-info version="2" xmlns="http://www.pdftron.com/pdfinfo"/></xfdf>'}function w(n,h){var f=n.lastIndexOf(".");return n.substring(0,f)+"-"+h+n.substring(f)}
|
|
e.d(ba,"g",function(){return ea});e.d(ba,"c",function(){return x});e.d(ba,"f",function(){return ha});e.d(ba,"a",function(){return ca});e.d(ba,"e",function(){return da});e.d(ba,"b",function(){return aa});e.d(ba,"d",function(){return w});var y=e(3)},function(ia,ba,e){function ea(e,n,h){return(h.y-e.y)*(n.x-e.x)>(n.y-e.y)*(h.x-e.x)}function x(e,n,h){return[e,n,h].some(function(f){return!(f instanceof w.b)})?null:n.x<=Math.max(e.x,h.x)&&n.x>=Math.min(e.x,h.x)&&n.y<=Math.max(e.y,h.y)&&n.y>=Math.min(e.y,
|
|
h.y)}function ha(e,n,h){if([e,n,h].some(function(f){return!(f instanceof w.b)}))return null;e=(n.y-e.y)*(h.x-n.x)-(n.x-e.x)*(h.y-n.y);return 0===e?"colinear":0<e?"clockwise":"counterClockwise"}function ca(e,n,h,f){if([e,f,h,f].some(function(f){return!(f instanceof w.b)}))return null;var r=ha(e,n,h),z=ha(e,n,f),fa=ha(h,f,e),y=ha(h,f,n);return r!==z&&fa!==y||"colinear"===r&&x(e,h,n)||"colinear"===z&&x(e,f,n)||"colinear"===fa&&x(h,e,f)||"colinear"===y&&x(h,n,f)?!0:!1}var da=e(2),aa=e(22),w=e(4);ba.a=
|
|
{jY:function(e){return.5>=e&&359.5<=e?0:90.5>=e&&89.5<=e?90:180.5>=e&&179.5<=e?180:270.5>=e&&269.5<=e?270:e},HV:function(e,n,h,f){return null===e||null===n||null===h||null===f?null:{na:e,ja:n,oa:e+h,ka:n+f}},Ppa:function(e,n){if(!n||!e)return!1;"undefined"!==typeof n.na&&"undefined"!==typeof n.ja&&"undefined"!==typeof n.oa&&"undefined"!==typeof n.ka||Object(da.j)("rect points are undefined");var h=e.x>=n.na&&e.x<=n.oa;e=e.y>=n.ja&&e.y<=n.ka;return h&&e},cha:function(e,n){return e&&n?e.na<=n.oa&&e.oa>=
|
|
n.na&&e.ja<=n.ka&&e.ka>=n.ja?!0:!1:!1},Opa:function(e,n,h,f,r){e=new aa.c(e,n);h=new aa.c(h,f);f=r.ra(e);r=r.ra(h);return{x:Math.min(f.x,r.x),y:Math.min(f.y,r.y),w:Math.abs(f.x-r.x),h:Math.abs(f.y-r.y)}},Math:{J6:function(e){return function(n){return function(){var h=n+=1831565813;h=Math.imul(h^h>>>15,h|1);h^=h+Math.imul(h^h>>>7,h|61);return((h^h>>>14)>>>0)/4294967296}}(function(n){var h;var f=0;for(h=1779033703^n.length;f<n.length;f++)h=Math.imul(h^n.charCodeAt(f),3432918353),h=h<<13|h>>>19;return function(){h=
|
|
Math.imul(h^h>>>16,2246822507);h=Math.imul(h^h>>>13,3266489909);h^=h>>>16;return h>>>=0}}(e)())},mea:function(e,n,h,f){return ea(e,h,f)!==ea(n,h,f)&&ea(e,n,h)!==ea(e,n,f)},bk:function(e,n){var h=Math.atan(Math.abs(e.y-n.y)/Math.abs(e.x-n.x));n.x<e.x&&n.y>e.y?h=Math.PI-h:n.x<=e.x&&n.y<e.y?(h=Math.PI-h,h*=-1):n.x>=e.x&&n.y<e.y&&(h*=-1);0===h&&e.x>n.x&&(h=Math.PI);return h},Am:function(e,n,h){h=h||{x:0,y:0};var f=e.x-h.x;e=e.y-h.y;return new w.b(Math.cos(n)*f-Math.sin(n)*e+h.x,Math.sin(n)*f+Math.cos(n)*
|
|
e+h.y)},clamp:function(e,n,h){h=void 0!==h?h:Infinity;n=void 0!==n?n:-Infinity;return Math.max(Math.min(e,h),n)},T$:function(e,n){return Math.atan2(n,e)},Dba:function(e){if(!(3>e.length)){for(var n=e[0],h=0,f=1;f<e.length;f++){var r=e[f];h+=(r.x-n.x)*(r.y+n.y);n=r}return 0<=h?1:-1}},f6:function(e){for(var n=[],h=0;h<e.length;h++)n.push({x:e[h].x,y:e[h].y});return n},WW:function(e){if(1>e.length)return!1;var n=Math.abs(e[e.length-1].y-e[0].y);return 1.2358E-4<Math.abs(e[e.length-1].x-e[0].x)||1.2358E-4<
|
|
n?!0:!1},zo:function(e){var n=Math.cos(e);e=Math.sin(e);return{m_a:n,m_b:-e,m_c:e,m_d:n,m_h:0,m_v:0}},translate:function(e,n,h){e.m_h+=n;e.m_v+=h;return e},ra:function(e,n,h){return{x:n*e.m_a+h*e.m_c+e.m_h,y:n*e.m_b+h*e.m_d+e.m_v}},X4:function(e,n,h,f,r,z,fa,w,ja,aa,da){0>r&&(r=-r);0>z&&(z=-z);var y=(e-aa)/2,ka=(n-da)/2,pa=Math.cos(fa),x=Math.sin(fa),ca=pa*y+x*ka;y=-x*y+pa*ka;ka=r*r;var ma=z*z,ha=ca*ca,ea=y*y,ua=ha/ka+ea/ma;1<ua&&(r*=Math.sqrt(ua),z*=Math.sqrt(ua),ka=r*r,ma=z*z);if(ua=ka*ea+ma*ha){ka=
|
|
(ka*ma-ka*ea-ma*ha)/ua;w=(w===ja?-1:1)*Math.sqrt(0>ka?0:ka);ma=r*y/z*w;ha=w*-(z*ca/r);w=(e+aa)/2+(pa*ma-x*ha);pa=(n+da)/2+(x*ma+pa*ha);x=(ca-ma)/r;ka=(y-ha)/z;ma=(-ca-ma)/r;y=(-y-ha)/z;ha=Math.sqrt(x*x+ka*ka);ca=(0>ka?-1:1)*Math.acos(x/ha);ha=Math.sqrt((x*x+ka*ka)*(ma*ma+y*y));ka=(0>x*y-ka*ma?-1:1)*Math.acos(Math.max(Math.min((x*ma+ka*y)/ha,1),-1));!ja&&0<ka?ka-=2*Math.PI:ja&&0>ka&&(ka+=2*Math.PI);y=[];x=!1;if(1E-9>Math.abs(ka))ja=4,x=!0,y[0]=r*Math.cos(ca),y[1]=z*Math.sin(ca),y[2]=r*Math.cos(ca+
|
|
ka),y[3]=z*Math.sin(ca+ka);else{ma=0;ja=2;ea=!1;do{0>ka?(ua=ma,ha=.5*-Math.PI,ma-=.5*Math.PI,ma<=ka+.01&&(ha=ka-ua,ea=!0)):(ua=ma,ha=.5*Math.PI,ma+=.5*Math.PI,ma>=ka-.01&&(ha=ka-ua,ea=!0));var ba=Math.cos(ha/2),ya=Math.sin(ha/2),ia=4*(1-ba)/3,Aa=ya-ia*ba/ya;ua=[];var Fa=[];ua[0]=ba;Fa[0]=-ya;ua[1]=ba+ia;Fa[1]=-Aa;ua[2]=ba+ia;Fa[2]=Aa;ua[3]=ba;Fa[3]=ya;ba=Math.sin(ca+ha/2);ya=Math.cos(ca+ha/2);for(ia=0;4>ia;ia++)y[ja-2+2*ia]=r*(ua[ia]*ya-Fa[ia]*ba),y[ja-1+2*ia]=z*(ua[ia]*ba+Fa[ia]*ya);ja+=6;ca+=ha}while(!ea&&
|
|
26>ja)}r=this.zo(-fa);this.translate(r,w,pa);for(z=2;z<ja-2;z+=2)fa=void 0===y[z]?this.ra(r,0,0):this.ra(r,y[z],y[z+1]),y[z]=fa.x,y[z+1]=fa.y;y[0]=e;y[1]=n;2<ja&&(y[ja-2]=aa,y[ja-1]=da);if(x)f.push("l"),f.push("l"),h.push(y[0]),h.push(y[1]),h.push(y[2]),h.push(y[3]);else for(f.push("l"),h.push(y[0]),h.push(y[1]),e=2;e<ja;e+=6)f.push("c"),h.push(y[e]),h.push(y[e+1]),h.push(y[e+2]),h.push(y[e+3]),h.push(y[e+4]),h.push(y[e+5])}},S6:function(e,n){return e.x*n.y-e.y*n.x},zpa:function(e){return 1E4*(e+
|
|
2*Math.PI)%2*Math.PI*1E4/1E4},Ew:function(e,n){var h=180*Math.atan2(n.y-e.y,n.x-e.x)/Math.PI;n=Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2));return n=-157.5>h?{x:e.x-n,y:e.y}:-112.5>h?{x:e.x-n*Math.sin(Math.PI/4),y:e.y-n*Math.sin(Math.PI/4)}:-67.5>h?{x:e.x,y:e.y-n}:-22.5>h?{x:e.x+n*Math.sin(Math.PI/4),y:e.y-n*Math.sin(Math.PI/4)}:22.5>h?{x:e.x+n,y:e.y}:67.5>h?{x:e.x+n*Math.sin(Math.PI/4),y:e.y+n*Math.sin(Math.PI/4)}:112.5>h?{x:e.x,y:e.y+n}:157.5>h?{x:e.x-n*Math.sin(Math.PI/4),y:e.y+n*Math.sin(Math.PI/
|
|
4)}:{x:e.x-n,y:e.y}},Px:function(e,n,h,f,r){var z=[],fa=[];var w=-1/((f-n)/(h-e));fa[0]=(e+h)/2;fa[1]=(n+f)/2;e=-w*fa[0]+fa[1];z[0]=fa[0]+r;z[1]=w*(fa[0]+r)+e;return z},MV:function(e,n){return[e,n].some(function(h){return!(h instanceof w.b)})?null:new w.b((e.x+n.x)/2,(e.y+n.y)/2)},ie:function(e,n){if([e,n].some(function(f){return!(f instanceof w.b)}))return null;var h=e.x-n.x;e=e.y-n.y;return Math.sqrt(h*h+e*e)},ffa:x,lba:ha,fda:ca,lea:function(e,n,h){var f=h.x1,r=h.y1,z=h.x2;h=h.y2;return[[new w.b(f,
|
|
r),new w.b(z,r)],[new w.b(f,r),new w.b(f,h)],[new w.b(f,h),new w.b(z,h)],[new w.b(z,r),new w.b(z,h)]].some(function(f){return ca.apply(null,[e,n].concat(Md(f)))})}}}},function(ia,ba,e){var ea=e(23);e.d(ba,"a",function(){return ea.a});var x=e(100);e.d(ba,"c",function(){return x.a});var ha=e(80);e.d(ba,"d",function(){return ha.a});e(167);e(154);e(183);e(168);var ca=e(61);e.d(ba,"f",function(){return ca.a});var da=e(88);e.d(ba,"e",function(){return da.a});var aa=e(251);e.d(ba,"h",function(){return aa.a});
|
|
var w=e(252);e.d(ba,"b",function(){return w.a});var y=e(253);e.d(ba,"g",function(){return y.a});e(109);e(169);e(184);e(141);e(142);ia=e(254);e.n(ia)},function(ia,ba,e){var ea=e(100);ia=function(){function e(e,x,da,aa,w,y){void 0===e&&(e=0);void 0===x&&(x=0);void 0===da&&(da=0);void 0===aa&&(aa=0);void 0===w&&(w=0);void 0===y&&(y=0);this.m_a=e;this.m_b=x;this.m_c=da;this.m_d=aa;this.m_h=w;this.m_v=y;"undefined"!==typeof e&&(this.m_a=e,"undefined"!==typeof x&&(this.m_b=x,"undefined"!==typeof da&&(this.m_c=
|
|
da,"undefined"!==typeof aa&&(this.m_d=aa,"undefined"!==typeof w&&(this.m_h=w,"undefined"!==typeof y&&(this.m_v=y))))))}e.zo=function(x){var ca=Math.cos(x);x=Math.sin(x);1E-7>Math.abs(x)&&(x=0);1E-7>Math.abs(ca)&&(ca=0);var da=new e;da.ab(ca,-x,x,ca,0,0);return da};e.prototype.Ri=function(e){this.m_a=e.m_a;this.m_b=e.m_b;this.m_c=e.m_c;this.m_d=e.m_d;this.m_h=e.m_h;this.m_v=e.m_v};e.prototype.ab=function(e,x,da,aa,w,y){this.m_a=e;this.m_b=x;this.m_c=da;this.m_d=aa;this.m_h=w;this.m_v=y};e.prototype.set=
|
|
function(e,x,da,aa,w,y){this.m_a=e;this.m_b=x;this.m_c=da;this.m_d=aa;this.m_h=w;this.m_v=y};e.prototype.inverse=function(){var x=new e,ca=this.m_a*this.m_d-this.m_b*this.m_c;if(!ca)return x;x.m_a=this.m_d/ca;x.m_c=-this.m_c/ca;x.m_h=(this.m_c*this.m_v-this.m_h*this.m_d)/ca;x.m_b=-this.m_b/ca;x.m_d=this.m_a/ca;x.m_v=-(this.m_a*this.m_v-this.m_h*this.m_b)/ca;return x};e.prototype.ra=function(e){var x=e.x;e.x=e.x*this.m_a+e.y*this.m_c+this.m_h;e.y=x*this.m_b+e.y*this.m_d+this.m_v;return e};e.prototype.concat=
|
|
function(e){var x=this.m_a,da=this.m_b,aa=this.m_c,w=this.m_d;this.m_a=e.m_a*x+e.m_b*aa;this.m_b=e.m_a*da+e.m_b*w;this.m_c=e.m_c*x+e.m_d*aa;this.m_d=e.m_c*da+e.m_d*w;this.m_h=e.m_h*x+e.m_v*aa+this.m_h;this.m_v=e.m_h*da+e.m_v*w+this.m_v;return this};e.prototype.vs=function(e){return this.m_a===e.m_a&&this.m_b===e.m_b&&this.m_c===e.m_c&&this.m_d===e.m_d&&this.m_h===e.m_h&&this.m_v===e.m_v};e.prototype.YM=function(e){var x=new ea.a(e[0],e[1]),da=new ea.a(e[2],e[3]),aa=new ea.a(e[4],e[5]),w=new ea.a(e[6],
|
|
e[7]);x=this.ra(x);da=this.ra(da);aa=this.ra(aa);w=this.ra(w);e[0]=x.x;e[1]=x.y;e[2]=da.x;e[3]=da.y;e[4]=aa.x;e[5]=aa.y;e[6]=w.x;e[7]=w.y};e.prototype.WZ=function(e){var x=Array(8);x[0]=e.na;x[1]=e.ja;x[2]=e.oa;x[3]=e.ja;x[4]=e.oa;x[5]=e.ka;x[6]=e.na;x[7]=e.ka;this.YM(x);e.Yq(x)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(13),da=e(19),aa=e(6),w=e(12),y=window;ia=function(n){function h(f,r){var e=n.call(this,r)||this;if(!f)throw Error("Please set the field properly in the widget constructor");
|
|
e.fd=null;e.Va=f;e.zr=null;f.G4(e,r?r.index:void 0);e.IsAdded=!1;e.Ama=new Date;e.DateModified=null;e.XP="Left-justified";e.wz=!1;e.e3=!1;e.yna=1;e.HO="";e.Fz={};e.OO={Normal:"",Rollover:"",Down:""};e.Sz=!1;e.xna=null;e.Yc=new ca.a({vpa:["Invisible","Hidden","NoPrint","NoZoom","NoRotate","NoView",ca.a.READ_ONLY,"Locked","ToggleNoView","LockedContents"]});e["_xsi:type"]="Widget";e.Subject=e["_xsi:type"];e.set(r);e.addEventListener(h.Events.COMMIT,Object(x.bind)(e.commit,e));e.addEventListener(h.Events.CHANGE,
|
|
function(){for(var f=[],r=0;r<arguments.length;r++)f[r]=arguments[r];e.DY();1===f.length?e.uj(f[0]):e.uj(f);this.innerElement===document.activeElement&&!1===this.mB||e.trigger(h.Events.COMMIT)});e.addEventListener(h.Events.BLUR,function(){e.fieldFlags.get(ca.a.READ_ONLY)||e.Sb(e.Va.value);e.refresh()});e.addEventListener(h.Events.FOCUS,function(){e.mU()});return e}Object(ea.c)(h,n);Object.defineProperty(h.prototype,"fieldName",{get:function(){return this.Va.name},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,
|
|
"elementName",{get:function(){return"widget"},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"value",{get:function(){return this.Ab()},set:function(f){this.Sb(f)},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"defaultValue",{get:function(){return this.Va.defaultValue},set:function(f){this.Va.defaultValue=f},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"fieldFlags",{get:function(){return this.Va.flags},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,
|
|
"flags",{get:function(){return this.Yc},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"font",{get:function(){return this.zr||this.Va.font},set:function(f){this.zr=new y.Annotations.Vk(f)},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"fieldActions",{get:function(){return this.Va.actions},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"appearance",{get:function(){return this.HO},set:function(f){this.Fz[f]?this.HO=f:Object(ha.h)("Unknown appearance: "+
|
|
f)},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"quadding",{get:function(){return this.XP},set:function(f){this.XP=f},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"appearances",{get:function(){return this.Fz},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"captions",{get:function(){return this.OO},enumerable:!1,configurable:!0});h.prototype.Gi=function(f){if(!y.Annotations.Annotation.prototype.Gi.call(this,f)||!this.Oo)return!1;f=aa.a.getAttribute(f,
|
|
"FT");return this.Oo===f};h.prototype.set=function(f){if(Object(x.isObject)(f)){this.isImporting=f.isImporting;Object(x.isUndefined)(f.value)||(this.value=String(f.value));Object(x.isUndefined)(f.flags)||(this.Yc.set(f.flags),this.Yc.get("Hidden")&&this.uh(!1),this.Yc.get("NoView")&&this.uh(!1));if(!Object(x.isUndefined)(f.captions)){var h=f.captions,e=this.OO;Object.keys(h).forEach(function(f){e[f]=h[f]})}Object(x.isUndefined)(f.page)||(this.PageNumber=f.page);Object(x.isUndefined)(f.quadding)||
|
|
(this.quadding=f.quadding);Object(x.isUndefined)(f.appearances)||(this.Fz=f.appearances);if(f.appearanceString&&(this.xd={dataString:f.appearanceString,w:this.Width,h:this.Height},this.appearances))for(var n=0,w=Object.values(this.appearances);n<w.length;n++)for(var ja=0,y=Object.values(w[n]);ja<y.length;ja++)y[ja].appearanceString=this.xd;Object(x.isUndefined)(f.appearance)||(this.appearance=f.appearance);Object(x.isUndefined)(f.rotation)||(this.rotation=f.rotation);Object(x.isUndefined)(f.font)||
|
|
(this.font=f.font);Object(x.isUndefined)(f.dateModified)||(this.DateModified=f.dateModified,this.Eq=f.originalDateModifiedText,this.Fx=f.originalDateModifiedTime);this.isImporting=!1}};h.prototype.Ab=function(){return this.fd};h.prototype.Sb=function(f){var h=y.Annotations.ha.zc.xb.va.create("Format",this.Va,{value:f});this.Va.Tf("F",h);this.uj(h.value);h.value!==f&&(this.isImporting=!0,this.Db("trn-formatted-value",h.value||f),this.isImporting=!1)};h.prototype.gk=function(){for(var f="",h=Object.keys(this.appearances),
|
|
e=0;e<h.length;++e){var n=h[e];if("Off"!==n){f=n;break}}return f};h.prototype.DY=function(){this.Sz=!0};h.prototype.Si=function(f){this.uj(f)};h.prototype.Fd=function(f){var h=n.prototype.Fd.call(this,f);h=Object.assign(h,this.font.UM(f));this.fieldFlags.get(ca.a.REQUIRED)?h.border=1.5*f+"px solid red":h["border-width"]||(h["border-width"]=0);return Object.assign(h,this.tw())};h.prototype.td=function(f){f=n.prototype.td.call(this,f);return Object.assign(f,{"text-align":{"Left-justified":"left",Centered:"center",
|
|
"Right-justified":"right"}[this.quadding]})};h.prototype.tw=function(){var f=h.getContainerCustomStyles;return f&&f(this)};h.prototype.Hl=function(){var f=h.getCustomStyles;return f&&f(this)};h.prototype.IQ=function(){function f(f){f.scale&&1!==f.scale&&f.preventDefault();this.e3&&f.stopPropagation()}var h=this.Qg;h.addEventListener("touchstart",f,{passive:!1});h.addEventListener("touchmove",f,{passive:!1});h.addEventListener("touchend",f,{passive:!1});h.addEventListener("mousedown",f,{passive:!1});
|
|
h.addEventListener("mousemove",f,{passive:!1});h.addEventListener("mouseup",f,{passive:!1})};h.prototype.ko=function(){return!0};h.prototype.uh=function(f){this.Yc.set("Hidden",!f);n.prototype.uh.call(this,f)};h.prototype.render=function(f,h,e,fa){var r=!1;fa||(w.a.Rm=e,this.innerElement&&this.element&&!da.q||(r=!0));n.prototype.render.call(this,f,h,e,fa);r&&!fa&&(this.element.setAttribute("id",this.Va.name),this.refresh())};h.prototype.uj=function(f){this.fd=f;this.refresh()};h.prototype.refresh=
|
|
function(){var f=this.fieldFlags.get(ca.a.MULTILINE),h=this.fd&&!Array.isArray(this.fd)?String(this.fd):"";Array.isArray(this.fd)&&(h=this.fd);"C"!==this.Cv&&this.font.A$(h,this,f);if(f=this.element)if(f.setAttribute("id",this.Va.name),h=this.Fd(w.a.Rm),this.ml(f,h),f=this.innerElement)h=this.Va.tooltipName,this.Va&&h&&f.setAttribute("title",h),h=this.td(w.a.Rm),this.ml(f,h)};h.prototype.bo=function(){return null};h.prototype.deserialize=function(f,h,e){n.prototype.deserialize.call(this,f,h);this.Va.ZY(aa.a.getAttribute(f,
|
|
"FT"));aa.a.getAttribute(f,"creationdate")?this.DateCreated=aa.a.AB(aa.a.getAttribute(f,"creationdate")):this.DateCreated=null;this.border.deserialize(f);this.fieldFlags.deserialize(f);this.font.deserialize(f,h);var r=aa.a.Vp(f,"V","value");this.Si(r);this.Va.Si(r);this.defaultValue=aa.a.Vp(f,"DV","defaultvalue");r=aa.a.Vp(f,"defaultappearance","defaultappearance");r=aa.a.QD(r);aa.a.getAttribute(f,"color")?this.StrokeColor=aa.a.getAttribute(f,"color").split(","):r.color&&(this.StrokeColor=r.color);
|
|
aa.a.getAttribute(f,"BG")&&(this.backgroundColor=aa.a.getAttribute(f,"BG").split(","));this.rotation=r=(r=aa.a.getAttribute(f,"rotation"))?parseInt(r,10):0;if(90===r||270===r)r=this.Width,this.Width=this.Height,this.Height=r;this.tQ(f,h,e)};h.prototype.serialize=function(){};h.prototype.gc=function(){return this.Va};h.prototype.HY=function(f){this.Va=f;this.Sb(this.Va.value)};h.prototype.ii=function(f){n.prototype.ii.call(this,f);this.Va&&this.Va.ii(f)};h.prototype.q4=function(f,h,e){this.Va.Bi(f,
|
|
h,e)};h.prototype.Bi=function(f,h,e){-1!==["K","V","F","C"].indexOf(f)?this.q4(f,h,e):n.prototype.Bi.call(this,f,h,e)};h.prototype.commit=function(){this.Va.trigger(y.Annotations.ha.va.Events.COMMIT,this.Ab(),this)};h.prototype.Nw=function(){var f=y.Annotations.ha.zc.xb,h=this;return Object.assign(n.prototype.Nw.call(this),{E:{triggers:"mouseenter",internal_name:"mouseenter",getEvent:function(){return f.va.create("Mouse Enter",h.gc())}},X:{triggers:"mouseleave",internal_name:"mouseleave",getEvent:function(){return f.va.create("Mouse Leave",
|
|
h.gc())}},D:{triggers:"mousedown",internal_name:"mousedown",getEvent:function(){return f.va.create("Mouse Down",h.gc())}},U:{triggers:da.s?"touchend":"mouseup",internal_name:"mouseup",getEvent:function(){return f.va.create("Mouse Up",h.gc())}},Bl:{triggers:"focusout",internal_name:"blur",getEvent:function(){var r=h.gc();return f.va.create("Blur",r,{value:r.value})}},Fo:{triggers:"focusin",internal_name:"focus",getEvent:function(){return f.va.create("Focus",h.gc())}}})};h.prototype.Bca=function(){return!!this.zr};
|
|
h.prototype.nl=function(){var f=this;n.prototype.nl.call(this);var r=this.innerElement;if(r){r.addEventListener("focusout",function(){f.Sz&&(f.Sz=!1,f.trigger(h.Events.COMMIT));f.trigger(h.Events.BLUR)});r.addEventListener("focusin",function(){f.trigger(h.Events.FOCUS)});r.addEventListener("mouseenter",function(){f.trigger(h.Events.MOUSE_ENTER)});r.addEventListener("mouseleave",function(){f.trigger(h.Events.MOUSE_LEAVE)});r.addEventListener("mousedown",function(){f.fieldFlags.get(ca.a.READ_ONLY)||
|
|
f.trigger(h.Events.MOUSE_DOWN)});var e=void 0;e=this.k_?"click":da.s?"touchend":"mouseup";r.addEventListener(e,function(){f.fieldFlags.get(ca.a.READ_ONLY)||f.trigger(h.Events.MOUSE_UP)})}};h.prototype.mU=function(){this.fieldFlags.get(ca.a.READ_ONLY)||this.uj(this.Va.value);this.refresh()};h.Events={COMMIT:"commit",CHANGE:"change",BLUR:"blur",FOCUS:"focus",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_DOWN:"mousedown",MOUSE_UP:"mouseup"};h.Oo=null;return h}(y.Annotations.HTMLAnnotation);
|
|
ba.a=ia},function(ia,ba,e){e.r(ba);var ea=e(24);e.d(ba,"WidgetAnnotation",function(){return ea.a});var x=e(13);e.d(ba,"WidgetFlags",function(){return x.a});var ha=e(276);e.d(ba,"ChoiceWidgetAnnotation",function(){return ha.a});var ca=e(277);e.d(ba,"ListWidgetAnnotation",function(){return ca.a});var da=e(278);e.d(ba,"SignatureWidgetAnnotation",function(){return da.a});var aa=e(204);e.d(ba,"TextWidgetAnnotation",function(){return aa.a});var w=e(70);e.d(ba,"ButtonWidgetAnnotation",function(){return w.a});
|
|
var y=e(279);e.d(ba,"PushButtonWidgetAnnotation",function(){return y.a});var n=e(280);e.d(ba,"CheckButtonWidgetAnnotation",function(){return n.a});var h=e(205);e.d(ba,"RadioButtonWidgetAnnotation",function(){return h.a});var f=e(281);e.d(ba,"DatePickerWidgetAnnotation",function(){return f.a})},function(ia,ba,e){var ea=e(1),x=e(43),ha=e(18),ca=e(4),da=e(16),aa=e(10),w=e(17),y=e(111),n=e(2),h=e(3),f=e(66),r=e(29);ia=function(e){function z(f){f=e.call(this,f)||this;f.wna={};f.Da=null;f.qd=null;f.state=
|
|
z.oc.NONE;f.Fn=NaN;f.Vs=!1;f.hn=null;f.en={x:0,y:0};f.nn=0;f.pn=0;f.mouseDown=!1;f.cursor="default";f.overrideSelection=!1;return f}Object(ea.c)(z,e);z.z9=function(){z.dK=!0};z.E7=function(){z.dK=!1};z.prototype.pja=function(f){Object(n.d)("8.0","setEnableImmediateActionOnAnnotationSelection",["enableImmediateActionOnAnnotationSelection","disableImmediateActionOnAnnotationSelection"]);this.Vs=f};z.prototype.F9=function(){this.Vs=!0};z.prototype.L7=function(){this.Vs=!1};z.prototype.mouseLeftDown=
|
|
function(r){if(this.oK())this.state=z.oc.NONE;else{e.prototype.mouseLeftDown.call(this,r);var n=this.aa.ta(),fa=n.Ed(),w=n.Pn(r),aa=!0;!fa.includes(w)&&this.Vs&&(aa=!1);!w||!this.Vs||w instanceof Annotations.Xk||(n.he(),n.Cg(w));if(this.overrideSelection)n.he(),this.state=z.oc.NONE;else{this.mouseDown=!0;this.state=z.oc.NONE;if(fa=this.Me(this.lc)){w&&(w.mh(),w.di());this.Fn=fa.pageNumber;this.nn=fa.x;this.pn=fa.y;this.en.x=this.nn;this.en.y=this.pn;for(var ka=n.Ed(),da=0;da<ka.length;da++){var x=
|
|
ka[da];if(x.ua()===this.Fn){var ca=(new x.selectionModel(x,n.Qc(x),!0,this.aa)).Hy(x,this.aa.Lb(x.ua()),fa.x,fa.y);if(ca){this.Da=x;this.qd=ca;if(ca instanceof y.a)this.state=z.oc.Pu;else if(ca instanceof f.a&&!aa)continue;else!this.Da.NoResize&&n.Qc(this.Da)?this.state=z.oc.qF:(this.state=z.oc.NONE,n.he());return}}}w&&r.altKey&&w.ToolName!==h.m.CROP&&(n.he(),w=n.Qn(w,{copyAssociatedLink:!0}),w.mh(),w.di(),n.Sd(w),n.Cg(w));if(0<n.Ed().length&&(w=n.zI(r),0<w.length)){this.Da=null;for(aa=0;aa<w.length;++aa)if(n.Xl(w[aa])){this.Da=
|
|
w[aa];break}this.Da||(this.Da=w[0]);w=n.Xl(this.Da);!this.Da.NoMove&&n.Qc(this.Da)&&w?this.state=z.oc.rF:r.ctrlKey||r.metaKey?this.state=z.oc.kz:this.Da instanceof Annotations.Cj?this.state=z.oc.q1:(this.state=z.oc.NONE,n.he());return}}n.he()}}};z.prototype.mouseMove=function(h){var n=this;e.prototype.mouseMove.call(this,h);this.mouseDown&&(this.isSelecting()||"PanTool"!==this.sg&&"AnnotationEditTool"!==this.sg)&&(document.activeElement instanceof HTMLTextAreaElement||document.activeElement instanceof
|
|
HTMLInputElement||!h.cancelable||h.preventDefault());if(!this.overrideSelection&&this.Da&&this.state!==z.oc.NONE){var fa=this.aa.ta(),w=this.pageCoordinates[1];if(w&&this.Fn===w.pageNumber){var y=w.x-this.en.x,aa=w.y-this.en.y;this.en.x=w.x;this.en.y=w.y;this.state!==z.oc.Pu&&(this.Da.mh(),this.Da.di());if(this.state===z.oc.rF&&this.bV(this.Da)&&(0!==y||0!==aa)){Object(ha.d)(this.aa,"move");fa=fa.Ed();var ka=this.Zg(h);this.i8(fa,y,aa,ka)}else if((this.state===z.oc.qF||this.state===z.oc.Pu)&&this.qd){var da=
|
|
new ca.b(this.Qe.x,this.Qe.y),x=this.Da.Kc(),qa=this.Da.Lc(),ea=this.Da.Ba(),oa=this.Da.wa();h.altKey||h.shiftKey?(this.Da.pM(!!h.altKey),this.Da.oM(!!h.shiftKey)):(this.Da.pM(!1),this.Da.oM(!1));var ua=function(){var f=n.qd.move(n.Da,y,aa,n.Me(da),w,n.aa,h),r=z.NV(n.Da)||{},e=z.KV(n.Da)||{},fa=r.width;r=r.height;var ja=e.width;e=e.height;n.Da.Width<fa&&(n.Da.ar(Math.max(fa,ea)),n.Da.Gm(x));n.Da.Width>ja&&(n.Da.ar(Math.min(ja,ea)),n.Da.Gm(x));n.Da.Height>e&&(n.Da.Fm(Math.min(e,oa)),n.Da.Hm(qa));n.Da.Height<
|
|
r&&(n.Da.Fm(Math.max(r,oa)),n.Da.Hm(qa));f&&n.aa.la.Sc({majorRedraw:n.Da instanceof Annotations.HTMLAnnotation,pageNumber:n.Da.ua()})};fa=this.aa.ao(this.Da.ToolName);if(!(fa&&Object(r.k)()&&fa.hq&&fa.hq())||this.qd instanceof f.c||this.qd instanceof f.f)ua();else{var ba=this.aa.ta(),ya=this.aa.Lb(this.Da.ua()),ia=this.aa.Ns(h);this.aa.KE(this.Fn,ia.x,ia.y,fa.hq()).then(function(h){var r=h.x;h=h.y;if(Math.pow(Math.abs(ia.x-r),2)+Math.pow(Math.abs(ia.y-h),2)<Math.pow(ba.uy.radiusThreshold/ya,2))if(n.hn=
|
|
{x:r,y:h},n.qd instanceof f.i||n.qd instanceof f.a)n.qd.Zi&&n.qd.Wi?(y=r-n.Da.X,aa=h-n.Da.Y):n.qd.Zi&&n.qd.Yi?(y=r-(n.Da.X+n.Da.Width),aa=h-n.Da.Y):n.qd.Ti&&n.qd.Wi?(y=r-n.Da.X,aa=h-(n.Da.Y+n.Da.Height)):n.qd.Ti&&n.qd.Yi?(y=r-(n.Da.X+n.Da.Width),aa=h-(n.Da.Y+n.Da.Height)):n.hn=null;else if(n.qd instanceof f.g){var e=n.Da.Ra()[n.qd.Nc];y=r-e.x;aa=h-e.y}else n.qd instanceof f.e&&(e=n.qd.Vi?n.Da.Yp():n.Da.Zn(),y=r-e.x,aa=h-e.y);else n.hn&&(y=w.x-n.hn.x,aa=w.y-n.hn.y,n.hn=null);ua()})}}}}};z.prototype.mouseLeftUp=
|
|
function(f){if(!this.overrideSelection){this.hn&&(this.hn=null);this.mouseDown=!1;var h=this.aa.ta(),r=h.Ed();this.Da&&(this.Da.oM(!1),this.Da.pM(!1));if(this.state===z.oc.rF){for(var n=[],e=!1,fa=0;fa<r.length;fa++){var w=r[fa];w.YG&&(w.YG=void 0,n.push(w));if(w.M5){var y=h.Qn(w,{Sna:!0});h.Dc(w);h.Sd(y);n.push(y);e||(e=!0)}}0<n.length&&(e&&(h.kf(n),h.ey(n)),h.trigger(aa.b.ANNOTATION_CHANGED,[n,"modify",{}]))}else this.state===z.oc.o1||this.state===z.oc.Pu?(n=this.qd.qa,this.qd&&h.trigger(aa.b.ANNOTATION_CHANGED,
|
|
[[n],"modify",{}])):this.state===z.oc.qF&&this.Da&&h.trigger(aa.b.ANNOTATION_CHANGED,[[this.Da],"modify",{}]);f=f?h.Pn(f):null;0<r.length?Object(ha.d)(this.aa,"default"):f?Object(ha.d)(this.aa,"pointer"):Object(ha.d)(this.aa,this.cursor);this.state=z.oc.NONE}};z.prototype.kE=function(){this.aa.ta().Dc(this.annotation);this.annotation=null};z.prototype.keyDown=function(f){var h=this;27===f.which&&void 0!==this.annotation&&null!==this.annotation&&this.kE();if((46===f.which||8===f.which)&&!Object(da.f)(f.target)){w.l&&
|
|
f.preventDefault();var r=this.aa.ta().Ed();this.aa.ta().Wj(r)}16===f.which&&(r=this.aa.ta().Ed(),r.forEach(function(f){if(f instanceof Annotations.Cj){f.sS();var r=function(n){16===n.which&&f.ZR();h.aa.ta().Cg(f);document.removeEventListener("keyup",r)};document.addEventListener("keyup",r)}}))};z.prototype.tap=function(f){if(!this.overrideSelection){var h=this.aa.ta();if(this.Ub=h.Pn(f)){var r=h.Xl(this.Ub);f.ctrlKey||f.metaKey?r?h.Hn(this.Ub):h.Cg(this.Ub):r||(this.OA===this.Ub?this.OA=null:(h.he(),
|
|
h.Cg(this.Ub)));this.aa.$q("none");f.preventDefault()}}};z.prototype.oK=function(){return this.state===z.oc.Pu};z.prototype.isSelecting=function(){return this.state!==z.oc.NONE};z.prototype.i8=function(f,h,r,n){Object(ea.b)(this,void 0,Promise,function(){var e,fa,w,ja,y,aa,ka,da,pa,ca,ma=this;return Object(ea.d)(this,function(la){switch(la.label){case 0:return e=f.filter(this.bV.bind(this)),fa=this.H3(this.Da.ua(),h,r),w=fa[0],ja=fa[1],y=this.aa.ta(),(aa=y.QU())?[4,this.E3(e,n)]:[3,2];case 1:aa=la.ea(),
|
|
la.label=2;case 2:if(aa)return[2];x.a.ALLOW_ANNOTS_OUTSIDE_PAGE||e.forEach(function(f){var n=f.Sa(),e=ma.JK(f,ma.Da,h,r),z=e[0];e=e[1];n.translate(z,e);z=ma.JT(f.ua());n.rda(z)&&(n.Jh(z),e=f.Sa(),z=n.x1-e.x1,e=n.y1-e.y1,f=ma.JK(ma.Da,f,z,e),z=f[0],e=f[1],h=0<h?Math.min(z,h):Math.max(z,h),r=0<r?Math.min(e,r):Math.max(e,r))});ka=Number.MAX_VALUE;da=0;pa=Number.MAX_VALUE;ca=0;e.forEach(function(f){var n=ma.JK(f,ma.Da,h,r),e=n[0],z=n[1];n=f.Sa();n.translate(e,z);f.move(n);f.YG=!0;e=ma.aa.Ff().gh({x:n.x1,
|
|
y:n.y1},f.ua());f=ma.aa.Ff().gh({x:n.x2,y:n.y2},f.ua());pa=Math.min(pa,e.x,f.x);ka=Math.min(ka,e.y,f.y);ca=Math.max(ca,e.x,f.x);da=Math.max(da,e.y,f.y)});z.dK&&this.z2(w,ja,pa,ka,ca,da);y.kf(e);return[2]}})})};z.prototype.E3=function(f,h){return Object(ea.b)(this,void 0,Promise,function(){var r,n,e,z,fa,w,ja;return Object(ea.d)(this,function(y){switch(y.label){case 0:r=f.filter(function(f){return!f.Sh()});n=r.map(function(f){return f.ua()});if(1!==(new Set(n)).size)return[3,3];e=this.aa.Ff().gq(h,
|
|
h).first;z=n[0];if(!(1<=e&&e!==z))return[3,3];fa=this.aa.Ff().xj(h,e);w=this.JT(e);r.forEach(function(f){f.ly(e);f.Gm(fa.x);f.Hm(fa.y);var h=f.Sa();h.Jh(w);f.tR&&f.tR();f.move(h);f.YG=!0;f.M5=!0});this.Fn=e;this.nn=fa.x;this.pn=fa.y;this.en.x=this.nn;this.en.y=this.pn;this.pageCoordinates[0]=this.Me(fa,e);this.pageCoordinates[1]=this.pageCoordinates[0];ja=this.aa.ta();return[4,ja.Sc(z)];case 1:return y.ea(),[4,ja.Sc(e)];case 2:return y.ea(),[2,!0];case 3:return[2,!1]}})})};z.prototype.z2=function(f,
|
|
h,r,n,e,z){var fa=this.aa.bc(),w=this.F2(fa);fa=this.G2(fa);var ja=this.aa.jb().offsetTop;ja=this.aa.jb().scrollTop+ja+w;var y=ja+this.aa.jb().parentElement.scrollHeight-2*w,aa=this.aa.jb().scrollLeft+w;w=this.aa.jb().scrollLeft+this.aa.jb().parentElement.scrollWidth-w;0>h&&n<ja&&(this.aa.jb().scrollTop-=fa);0<h&&z>y&&(this.aa.jb().scrollTop+=fa);0>f&&r<aa&&(this.aa.jb().scrollLeft-=fa);0<f&&e>w&&(this.aa.jb().scrollLeft+=fa)};z.prototype.bV=function(f){return this.aa.ta().Qc(f)&&!f.NoMove};z.prototype.JT=
|
|
function(f){var h=this.aa.ld(f);f=this.aa.kd(f);return new ca.d(z.PAGE_PADDING.x1,z.PAGE_PADDING.y1,h-z.PAGE_PADDING.x2,f-z.PAGE_PADDING.y2)};z.prototype.JK=function(f,h,r,n){f=this.aa.Hc(f.ua());h=this.aa.Hc(h.ua());if(f===h)return[r,n];switch(f-h){case -3:case 1:n=[n,-r];r=n[0];n=n[1];break;case -2:case 2:n=[-r,-n];r=n[0];n=n[1];break;case -1:case 3:n=[-n,r],r=n[0],n=n[1]}return[r,n]};z.prototype.H3=function(f,h,r){switch(this.aa.Hc(f)){case 1:return[-r,h];case 2:return[-h,-r];case 3:return[r,-h];
|
|
default:return[h,r]}};z.prototype.G2=function(f){return 1>f?5:1<=f&&5>f?7.5:10};z.prototype.F2=function(f){return 1>f?50:100};z.oc={NONE:0,rF:1,o1:2,kz:3,qF:4,Pu:5,q1:6};z.PAGE_PADDING=new ca.d(2,2,2,2);z.NV=function(){};z.KV=function(){};z.Rja=function(f){z.NV=f};z.Oja=function(f){z.KV=f};z.dK=!0;return z}(x.a);ba.a=ia},function(ia,ba,e){var ea=e(8);ia=function(){function e(e,x,da,aa){this.x=e;this.y=x;this.width=da;this.height=aa}e.prototype.testSelection=function(x,ca,da,aa,w){x=this.getDimensions(x,
|
|
ca,da);ca=0;1<e.selectionAccuracyPadding&&(ca=e.selectionAccuracyPadding);return aa>=x.x1-ca&&aa<=x.x1+x.Ba()+ca&&w>=x.y1-ca&&w<=x.y1+x.wa()+ca};e.prototype.draw=function(e,x,da,aa){"undefined"===typeof aa&&(aa=1);this.dc(e,aa);var w=this.getDimensions(x,da,aa);x=w.x1;da=w.y1;aa=w.Ba();w=w.wa();e.beginPath();e.arc(x+aa/2,da+w/2,aa/2,0,2*Math.PI);e.stroke();e.fill()};e.prototype.dc=function(x,ca){x.strokeStyle=e.outlineColor.toString();x.fillStyle=e.color.toString();x.shadowColor=e.shadowColor.toString();
|
|
x.shadowBlur=e.shadowBlur;x.shadowOffsetY=e.shadowOffsetY;x.lineWidth=e.selectionPointOutlineThickness/ca};e.prototype.kC=function(){return"default"};e.handleWidth=10;e.handleHeight=10;e.rotationHandleWidth=28;e.rotationHandleHeight=28;e.selectionAccuracyPadding=1;e.outlineColor=new ea.a(49,131,200);e.color=new ea.a(49,131,200);e.shadowColor=new ea.a(0,0,0,.2);e.shadowBlur=1;e.shadowOffsetY=1;e.selectionPointOutlineThickness=2;return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),
|
|
ha=e(75),ca=e(19),da=e(3),aa=e(16),w=e(112),y=e(40),n=e(34),h=null;h=new (function(){function f(){this.useCache=!0;this.sp={}}f.prototype.eQ=function(f,h,e,n){h=Math.floor(h);e=Math.floor(e);n=n||Object(ca.k)();var r=parseInt(f.style.width,10),z=parseInt(f.style.height,10);z=""===f.style.height||1<Math.abs(z-e);var fa=.01<Math.abs(f.width/r-n);if(""===f.style.width||1<Math.abs(r-h)||z||fa)r=Math.floor(e*n),f.setAttribute("width",Math.floor(h*n).toString()),f.setAttribute("height",r.toString()),f.style.width=
|
|
h+"px",f.style.height=e+"px"};f.prototype.Nz=function(f,h,e,n){if("undefined"===typeof n||null===n)n=document.createElement("canvas");this.eQ(n,f,h,e);return"undefined"===typeof n.getContext("2d")?null:n};f.prototype.S2=function(f,h,n){var r=.2,e=1,z=null,fa=f;if(1>=f*n||1>=h*n)z=this.Nz(1,1);if(4E6>f*h)return this.Nz(f,h);n=f/h;64E6<f*h&&(h=Math.sqrt(64E6/n),e=n*h/f,f=n*h);n=null;for("undefined"===typeof r&&(r=.25);null===z;){n=this.Nz(Math.ceil(f*e),Math.ceil(h*e),Object(ca.k)(),n);var w=n.getContext("2d");
|
|
w.fillStyle="white";w.fillRect(n.width-1,n.height-1,1,1);w=!(1>Object(ca.k)())&&(n.width<parseFloat(n.style.width)||n.height<parseFloat(n.style.height));if(null!==n&&0<this.g3(n)&&!w)z=n;else if(e-=r,0>=e)return Object(x.g)("No canvas could be created"),null}1>e&&(f="scale("+fa/parseFloat(z.style.width)+")",Object(aa.b)(z,{transform:f,"transform-origin":"top left","ms-transform":f,"ms-transform-origin":"top left","-moz-transform":f,"-moz-transform-origin":"top left","-webkit-transform-origin":"top left",
|
|
"-webkit-transform":f,"-o-transform":f,"-o-transform-origin":"top left"}));z.style.position="absolute";z.getContext("2d").clearRect(z.width-1,z.height-1,1,1);return z};f.prototype.g3=function(f){return f.getContext("2d").getImageData(f.width-1,f.height-1,1,1).data[3]};f.prototype.Xia=function(f){this.useCache=1<f};f.prototype.oR=function(f){this.sp[f]&&(this.sp[f].width=0,this.sp[f].height=0);delete this.sp[f]};f.prototype.yH=function(f){if(!f)throw Error("Canvas not defined");var h=f.getContext("2d");
|
|
h.save();h.setTransform(1,0,0,1,0,0);h.clearRect(0,0,f.width,f.height);h.restore()};f.prototype.setUpCanvas=function(f,h,n,e,w,aa,x,la){x=!1;if(n===da.f.E_90||n===da.f.E_270)x=!0;w=!Object(ea.isUndefined)(aa);e=f;w?(w=(x?aa.y2-aa.y1:aa.x2-aa.x1)*h,f=(x?aa.x2-aa.x1:aa.y2-aa.y1)*h,e={na:aa.x1,oa:aa.x2,ja:aa.y1,ka:aa.y2}):(w=x?f.height*h:f.width*h,f=x?f.width*h:f.height*h);aa=this.Nz(w,f,la);f=parseFloat(aa.style.width);la=la||Object(ca.k)();h=Object(ha.a)(f/w*h,n,e,{x:0,y:0},!0,la);n=aa.getContext("2d");
|
|
Object(y.a)("flattenedResources")||(aa.style.backgroundColor=Object(ca.l)(),aa.style.filter=Object(ca.m)()?"grayscale(1)":void 0);n.transform(h.m_a,h.m_b,h.m_c,h.m_d,h.m_h,h.m_v);return{canvas:aa,ctx:n,t:h}};f.prototype.TA=function(f,h,n){n=n.querySelector("#pageContainer"+h);if(!n)return null;var r=n.querySelector(".canvas"+h);r&&r.parentNode.removeChild(r);Object(aa.b)(f,{"z-index":20,position:"absolute"});f.classList.add("hacc");f.classList.add("canvas"+h);n.appendChild(f);return n};f.prototype.oP=
|
|
function(f){return{width:f.oa-f.na,height:f.ka-f.ja}};f.prototype.bQ=function(f,h){var r=!1;if(h===da.f.E_90||h===da.f.E_270)r=!0;return{width:r?f.height:f.width,height:r?f.width:f.height}};f.prototype.GE=function(f,h,e,w,ja,y,da){if(y){var r=f.getContext("2d");r.restore();r.save();var z=Object(ca.k)(),fa=this.bQ(this.oP(y),w),ka=Math.round(fa.width*e);fa=Math.round(fa.height*e);var x=Math.round(parseFloat(f.style.width)),pa=Math.round(parseFloat(f.style.height));Object(aa.b)(f,{left:ja.x,top:ja.y});
|
|
if(1<Math.abs(x-ka)||1<Math.abs(pa-fa))f.width=ka*z,f.height=fa*z,Object(aa.b)(f,{width:ka,height:fa});if(y&&da){ja=h.width;ka=h.height;if(1===da||3===da)ja=h.height,ka=h.width;h=Object(ha.a)(1,da,{width:ja,height:ka},null,!1).inverse();y=Object(n.l)(h.ra({x:y.na,y:y.ja}),h.ra({x:y.oa,y:y.ka}))}e=Object(ha.a)(e,(w+(da||0))%4,y,null,!0,z);r.setTransform(e.m_a,e.m_b,e.m_c,e.m_d,e.m_h,e.m_v)}else Object(aa.b)(f,{left:"",top:"",transform:""});return f};f.prototype.rw=function(f,h,n,e,w,y,aa,la){return(f=
|
|
la.querySelector("#pageContainer"+f+" .auxiliary"))?this.GE(f,h,n,e,w,y,aa):null};f.prototype.pB=function(f,h,n,e,ja,y){if(ja){var r=this.oP(ja);ja=r.width;r=r.height}else ja=h.width,r=h.height;r=this.bQ({width:ja,height:r},e);ja=r.width*n;r=r.height*n;var z=f-1;!y&&this.sp[z]?(f=this.sp[z],this.eQ(f,ja,r),f.getContext("2d").setTransform(1,0,0,1,0,0)):f=this.S2(ja,r,n);y||(this.sp[z]=f);f.classList.add("auxiliary");f.style["z-index"]=30;f.style.position="absolute";y=f.getContext("2d");if(!y)throw Object(x.j)("Reached canvas memory limit"),
|
|
w.b;y.clearRect(0,0,f.width,f.height);h=Object(ha.a)(parseFloat(f.style.width)/ja*n,e,h);y.transform(h.m_a,h.m_b,h.m_c,h.m_d,h.m_h,h.m_v);return f};f.prototype.dH=function(f,h,n,e,w,y){(y=y.querySelector("#pageContainer"+f))&&!y.querySelector(".auxiliary")&&(f=this.pB(f,h,n,e,w,!0),y.insertBefore(f,y.firstChild))};f.prototype.zL=function(f,n,e,w){if(f=w.querySelector("#pageContainer"+f+" .auxiliary")){h.yH(f);w=n.width;var r=n.height;f.width=w;f.height=r;f.style.width=n.style.width;f.style.height=
|
|
n.style.height;f.style.top=n.style.top;f.style.left=n.style.left;var z=f.getContext("2d");z.setTransform(1,0,0,1,0,0);0<w&&0<r&&z.drawImage(n,0,0);f.setAttribute("data-page-rotation",e);f.removeAttribute("data-transitional");f.style.transform="";f.style.transformOrigin="";Object(aa.b)(f,{filter:Object(ca.j)()?"grayscale(1)":"none"})}};f.prototype.tca=function(f,h){return h.querySelector("#pageContainer"+f)};f.prototype.nq=function(f,h){return h.querySelector("#pageWidgetContainer"+f)};f.prototype.$j=
|
|
function(f){setTimeout(function(){document.body.contains(f)||(f.width=0,f.height=0)},5E3)};return f}());ba.a=function(){return h}},function(ia,ba,e){function ea(){return Da}function x(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");Da=f}function ha(){return sa||ma.ae()}function ca(f,h){h||f.lastIndexOf("/")===f.length-1||(f+="/");sa=f}function da(){return na}function aa(){return na||ma.ae()+"pdf/"}function w(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");na=f}function y(){return la}function n(){return la||
|
|
ma.ae()+"pdf/"+(qa?"full/":"lean/")}function h(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");ra=f}function f(){return ra}function r(){return ra||ma.ae()+"pdf/"+(qa?"full/":"lean/")}function z(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");la=f}function fa(){return qa}function ka(){qa=!1}function ja(f){arguments.length?(Object(pa.j)("The parameter is deprecated since version 8.0. Please use enableFullPDF or disableFullPDF without parameter instead"),qa=f):qa=!0}e.d(ba,"b",function(){return ja});e.d(ba,
|
|
"a",function(){return ka});e.d(ba,"k",function(){return fa});e.d(ba,"p",function(){return z});e.d(ba,"e",function(){return r});e.d(ba,"h",function(){return f});e.d(ba,"n",function(){return h});e.d(ba,"g",function(){return n});e.d(ba,"j",function(){return y});e.d(ba,"o",function(){return w});e.d(ba,"f",function(){return aa});e.d(ba,"i",function(){return da});e.d(ba,"m",function(){return ca});e.d(ba,"d",function(){return ha});e.d(ba,"l",function(){return x});e.d(ba,"c",function(){return ea});var pa=
|
|
e(2);ia="undefined"===typeof window?self:window;ia.Ya=ia.Ya||{};var ma=ia.Ya,la,na,ra,sa,Da,qa=ia.PDFNet&&ia.PDFNet.hasFullApi||!1},function(ia,ba,e){e.d(ba,"d",function(){return ea});e.d(ba,"a",function(){return x});e.d(ba,"f",function(){return ha});e.d(ba,"e",function(){return ca});e.d(ba,"c",function(){return da});e.d(ba,"g",function(){return aa});e.d(ba,"b",function(){return'<?xml version="1.0" encoding="UTF-8"?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"> <pdf-info version="2" import-version="4" xmlns="http://www.pdftron.com/pdfinfo" /></xfdf>'});
|
|
var ea={L0:0,N0:1,UN:2,t1:10},x={NONE:0,INVERT:1,j0:2,E0:3},ha={s0:1,n1:2,r0:4,M0:8,A0:16,O_:32},ca={HF:0,yF:1,PN:2,Ju:3},da={l1:1,k1:2,D_:3,nN:4},aa={J0:1,H0:2,f1:4,m1:8,I0:16,K0:128,EN:256}},function(ia,ba,e){function ea(e){return ca[e]||null}e.d(ba,"d",function(){return ea});var x=e(1);e(163);var ha=e(71);e.d(ba,"b",function(){return ha.b});e.d(ba,"a",function(){return ha.a});var ca={};ba.c=function(da,aa,w){void 0===w&&(w={});return Object(x.b)(void 0,void 0,void 0,function(){var y,n,h,f,r,z,
|
|
fa,ka,ja,pa,ma,la,na,ra,sa,ea,qa,va,oa,ua,ba;return Object(x.d)(this,function(x){switch(x.label){case 0:y=w.decrypt;n=w.decryptOptions;h=w.cacheHint;f=w.useDownloader||!1;r=w.withCredentials;z=w.serverOptions;fa=w.customHeaders;ka=w.filename;ja=da;switch(ja){case ha.b.HttpPartRetriever:return[3,1];case ha.b.LocalPartRetriever:return[3,3];case ha.b.LocalPdfPartRetriever:return[3,5];case ha.b.AndroidContentPartRetriever:return[3,7];case ha.b.ArrayBufferPdfPartRetriever:return[3,9];case ha.b.AzurePartRetriever:return[3,
|
|
11];case ha.b.ExternalPdfPartRetriever:return[3,13];case ha.b.IOSPartRetriever:return[3,15];case ha.b.StreamingPartRetriever:return[3,17];case ha.b.WinRTPartRetriever:return[3,19];case ha.b.WebViewerServerPartRetriever:return[3,21];case ha.b.WebDBPartRetriever:return[3,23]}return[3,25];case 1:return[4,e.e(0).then(e.bind(null,434))];case 2:return pa=x.ea().default,ca.HttpPartRetriever=pa,[2,new pa(aa,h,y,n,fa)];case 3:return[4,e.e(10).then(e.bind(null,436))];case 4:return ma=x.ea().default,ca.LocalPartRetriever=
|
|
ma,[2,new ma(aa,y,n)];case 5:return[4,e.e(11).then(e.bind(null,437))];case 6:return la=x.ea().default,ca.LocalPdfPartRetriever=la,[2,new la(aa)];case 7:return[4,Promise.all([e.e(0),e.e(3)]).then(e.bind(null,438))];case 8:return na=x.ea().default,ca.AndroidContentPartRetriever=na,[2,new na(aa,h,y,n)];case 9:return[4,e.e(4).then(e.bind(null,439))];case 10:return ra=x.ea().default,ca.ArrayBufferPdfPartRetriever=ra,[2,new ra(aa)];case 11:return[4,Promise.all([e.e(0),e.e(5)]).then(e.bind(null,440))];case 12:return sa=
|
|
x.ea().default,ca.AzurePartRetriever=sa,[2,new sa(aa,h,y,n)];case 13:return[4,e.e(8).then(e.bind(null,441))];case 14:return ea=x.ea().default,ca.ExternalPdfPartRetriever=ea,[2,new ea(aa,{useDownloader:f,withCredentials:r,customHeaders:fa,filename:ka})];case 15:return[4,Promise.all([e.e(0),e.e(9)]).then(e.bind(null,442))];case 16:return qa=x.ea().default,ca.IOSPartRetriever=qa,[2,new qa(aa,h,y,n)];case 17:return[4,e.e(14).then(e.bind(null,443))];case 18:return va=x.ea().default,ca.StreamingPartRetriever=
|
|
va,[2,new va(aa,h,y,n,fa)];case 19:return[4,Promise.all([e.e(0),e.e(17)]).then(e.bind(null,444))];case 20:return oa=x.ea().default,ca.WinRTPartRetriever=oa,[2,new oa(aa,h,y,n)];case 21:return[4,e.e(16).then(e.bind(null,445))];case 22:return ua=x.ea().default,ca.WebViewerServerPartRetriever=ua,[2,new ua(aa,z.serverRoot,z)];case 23:return[4,e.e(15).then(e.bind(null,446))];case 24:return ba=x.ea().default,ca.WebDBPartRetriever=ba,[2,new ba(aa,y,n)];case 25:throw Error("Invalid PartRetriever type passed to 'getPartRetriever(type, file, options)'. Valid options are "+
|
|
Object.keys(ha.b).join(", "));}})})}},function(ia,ba,e){function ea(f){if(w[f])return w[f];if(0===f.indexOf("SB")||0===f.indexOf("SH")){var h=w[f.substring(2)];if(h)return h}return f}function x(f,h){h=Object(ca.isUndefined)(h)?1:"string"===typeof h?parseFloat(h):h;var r={po:"rgba(145, 15, 5, "+h+")",fill:"rgba(253, 213, 213, "+.7*h+")",xJ:"rgba(255, 0, 0, "+.7*h+")"},n={po:"rgba(65, 106, 28, "+h+")",fill:"rgba(215, 226, 207, "+.7*h+")",xJ:"rgba(65, 106, 28, "+.7*h+")"},e={po:"rgba(24, 37, 100, "+
|
|
h+")",fill:"rgba(224, 235, 246, "+.7*h+")",xJ:"rgba(24, 37, 100, "+.7*h+")"},ja={po:"rgba(110, 0, 5, "+h+")",fill:"rgba(214, 86, 56, "+.7*h+")"},y={po:"rgba(214, 176, 67, "+h+")",fill:"rgba(249, 239, 122, "+.7*h+")"};h={po:"rgba(64, 46, 132, "+h+")",fill:"rgba(148, 132, 212, "+.7*h+")"};switch(f){case w.Approved:case w.Completed:case w.Final:return n;case w.AsIs:case w.Confidential:case w.Departmental:case w.Draft:case w.Experimental:case w.ForComment:case w.ForPublicRelease:case w.NotForPublicRelease:case w.Sold:case w.TopSecret:return e;
|
|
case w.Expired:case w.NotApproved:case w.Void:return r;case w.SHSignHere:return ja;case w.SHWitness:return y;case w.SHInitialHere:return h;default:return e}}function ha(f,h,n,e,w,ja){f.beginPath();h+=3;n+=3;e-=6;w-=6;f.moveTo(h+ja,n);f.lineTo(h+e-ja,n);f.quadraticCurveTo(h+e,n,h+e,n+ja);f.lineTo(h+e,n+w-ja);f.quadraticCurveTo(h+e,n+w,h+e-ja,n+w);f.lineTo(h+ja,n+w);f.quadraticCurveTo(h,n+w,h,n+w-ja);f.lineTo(h,n+ja);f.quadraticCurveTo(h,n,h+ja,n);f.closePath();f.fill();f.stroke()}var ca=e(0);e.n(ca);
|
|
var da=e(21),aa,w={Approved:"Approved",AsIs:"As Is",Completed:"Completed",Confidential:"Confidential",Departmental:"Departmental",Draft:"Draft",Experimental:"Experimental",Expired:"Expired",Final:"Final",ForComment:"For Comment",ForPublicRelease:"For Public Release",InformationOnly:"Information Only",NotApproved:"Not Approved",NotForPublicRelease:"Not For Public Release",PreliminaryResults:"Preliminary Results",Sold:"Sold",TopSecret:"Top Secret",Void:"Void",SHSignHere:"Sign Here",SHWitness:"Witness",
|
|
SHInitialHere:"Initial Here",SHAccepted:"Accepted",SBRejected:"Rejected"},y=Object.keys(w),n,h={width:36,height:40};ba.a={$M:w,Noa:x,tJ:ea,a9:function(f,h,n,e,w,ja){var r=ja.wy;n=ja.padding;var z=ja.opacity,fa=ja.d7;h=ja.FZ;var y=ea(ja.Icon);ja=r.toUpperCase();e||(e=f.measureText(ja).width+2*n,w=h);z=x(y,z);f.fillStyle=z.fill;f.strokeStyle=z.po;f.lineWidth=1;r=f.createLinearGradient(-(.4*e),0,5*e,0);r.addColorStop(1,z.xJ);r.addColorStop(0,"white");f.fillStyle=r;ha(f,0,0,e,w,.15*w);f.font=fa;f.fillStyle=
|
|
z.po;n=f.measureText(ja).width+2*n;f.save();n=e/n;h=w/(1.9*h);f.scale(n,h);f.textBaseline="middle";f.textAlign="center";f.fillText(ja,e/(2*n),w/(2*h)+2);f.restore()},toa:ha,b9:function(f,h,n,e,w,ja){var r=ja.wy,z=ja.opacity;ja=ea(ja.Icon);ja=x(ja,z);z=.31*w;var fa=.05*(e+w);f.save();f.lineWidth=1;f.beginPath();f.strokeStyle=ja.po;f.fillStyle=ja.fill;ja=.1*Math.min(e,w);f.moveTo(h+fa+z+ja,n+ja);f.lineTo(h+e-fa-ja,n+ja);f.quadraticCurveTo(h+e-ja,n+ja,h+e-ja,n+fa+ja);f.lineTo(h+e-ja,n+w-fa-ja);f.quadraticCurveTo(h+
|
|
e-ja,n+w-ja,h+e-fa-ja,n+w-ja);f.lineTo(h+fa+z+ja,n+w-ja);f.lineTo(h+ja,n+w/2);f.lineTo(h+fa+z+ja,n+ja);f.lineTo(h+fa+z+ja+1,n+ja);f.stroke();f.closePath();f.fill();f.restore();f.save();r=r.toUpperCase();f.font="bold italic "+.35*w+"px sans-serif";f.fillStyle="black";fa=.01*e;var y=f.measureText(r).width+2*fa;z=.8<=y/(e-z)?e/(1.4*y):1;f.scale(z,1);f.textAlign="right";f.textBaseline="middle";f.fillText(r,h+e/z-fa/z*2-2*ja/z,n+w/2);f.restore()},bI:function(f,h,n,e,w){var r=e/2*.25;e=(e-r)/2;f.save();
|
|
var z=h+.5*(2*e+r),fa=n+.5*(2*e+r);f.translate(z,fa);f.rotate(Math.PI/180*45);f.translate(-z,-fa);f.lineWidth=2;f.beginPath();f.strokeStyle=w||"#910f05";z=.2*e;f.moveTo(h+e,n+z);f.lineTo(h+e+r,n+z);f.lineTo(h+e+r,n+e);f.lineTo(h+2*e+r-z,n+e);f.lineTo(h+2*e+r-z,n+e+r);f.lineTo(h+e+r,n+e+r);f.lineTo(h+e+r,n+2*e+r-z);f.lineTo(h+e,n+2*e+r-z);f.lineTo(h+e,n+e+r);f.lineTo(h+z,n+e+r);f.lineTo(h+z,n+e);f.lineTo(h+e,n+e);f.lineTo(h+e,n-f.lineWidth/2+z);f.stroke();h=f.createLinearGradient(-(2*e),0,1.5*e,0);
|
|
h.addColorStop(0,"white");h.addColorStop(1,"rgba(211, 80, 49, 1)");f.fillStyle=w||h;f.fill();f.closePath();f.restore()},r8:function(f,h,n,e,w,ja){f.save();f.lineJoin="round";f.lineWidth=.02*(e+w);f.beginPath();f.strokeStyle=ja||"#3f6b14";var r=.073*e,z=[h+r,n+.4816*w],fa=[h+.2768*e,n+.4334*w],y=[h+.3367*e,n+.66*w],aa=[h+.7756*e,n+r],ka=[h+e-r,n+.2408*w],x=[h+.3267*e,n+w-r];r=[h+r,n+.4816*w];f.moveTo(fa[0],fa[1]);var ca=da.a.Math.Px(z[0],z[1],fa[0],fa[1],.006*e);f.lineTo(y[0],y[1]);var ha=da.a.Math.Px(y[0],
|
|
y[1],aa[0],aa[1],-(.055*e));f.bezierCurveTo(y[0],y[1],ha[0],ha[1],aa[0],aa[1]);ha=da.a.Math.Px(aa[0],aa[1],ka[0],ka[1],-(.02*e));f.bezierCurveTo(aa[0],aa[1],ha[0],ha[1],ka[0],ka[1]);aa=da.a.Math.Px(ka[0],ka[1],x[0],x[1],-(.11*e));f.bezierCurveTo(ka[0],ka[1],aa[0],aa[1],x[0],x[1]);ka=da.a.Math.Px(x[0],x[1],r[0],r[1],.03*e);f.bezierCurveTo(x[0],x[1],ka[0],ka[1],r[0],r[1]);f.bezierCurveTo(z[0],z[1],ca[0],ca[1],fa[0],fa[1]);f.lineTo(y[0],y[1]);f.stroke();h=f.createLinearGradient(h+.28*e,n+.28*w,h+e-.3*
|
|
e,n+w-.3*w);h.addColorStop(0,"#a8d971");h.addColorStop(1,"#3f6b14");f.fillStyle=ja||h;f.fill();f.closePath();f.restore()},d_:function(f,h){aa=aa||document.createElement("canvas");aa.width=h.width;aa.height=h.height;var r=aa.getContext("2d");r.drawImage(h,0,0);h=r.getImageData(0,0,h.width,h.height);for(var n=h.data,e=n.length,w=3;w<e;w+=4)0!==n[w]&&(0===f&&(f=.01),n[w]=255*f);r.putImageData(h,0,0);return aa.toDataURL()},N5:function(f){return-1<y.indexOf(f)},z$:function(f,h,n,e){var r=Math.min(h/e.width,
|
|
n/e.height);f.drawImage(e,h/2-e.width/2*r,n/2-e.height/2*r,e.width*r,e.height*r)},xaa:function(f){n=n||document.createElement("canvas");var h=n.getContext("2d");n.width=f.width;n.height=f.height;h.drawImage(f,0,0);return n.toDataURL()},Jp:function(f,h,n,e){f.beginPath();f.arc(h,n,e,0,2*Math.PI);f.stroke();f.fill()},p8:function(f,r,n){var e=n/h.height*4,z=.75*n,w=.65*r,y=.35*r,aa=.5*r,la=(w+y)/2;f.save();f.lineWidth=n/h.height*4;f.beginPath();f.moveTo(e+.5,e);f.lineTo(r-.5-e,e);f.quadraticCurveTo(r-
|
|
e,e,r-e,.5+e);f.lineTo(r-e,z-.5);f.quadraticCurveTo(r-e,z,r-.5-e,z);f.lineTo(w,z);f.lineTo(la,n-e);f.lineTo(y,z);f.lineTo(.5+e,z);f.quadraticCurveTo(e,z,e,z-.5);f.lineTo(e,.5+e);f.quadraticCurveTo(e,e,.5+e,e);f.moveTo(aa,.25*n);f.lineTo(aa,.5*n);f.moveTo(aa,.55*n);f.lineTo(aa,.65*n);f.stroke();f.restore()},kb:{F_:"Approved",H_:"AsIs",P_:"Completed",Q_:"Confidential",T_:"Departmental",X_:"Draft",$_:"Experimental",a0:"Expired",c0:"Final",e0:"ForComment",f0:"ForPublicRelease",t0:"InformationOnly",F0:"NotApproved",
|
|
G0:"NotForPublicRelease",c1:"PreliminaryResults",s1:"SBRejected",u1:"SHAccepted",v1:"SHInitialHere",w1:"SHSignHere",z1:"SHWitness",A1:"Sold",T1:"TopSecret",Z1:"Void"},x8:function(f){var h=f.ctx,e=f.fu,n=f.OM;f=f.color.toString();h.lineWidth=4;e-=2;n=2*n-2;h.strokeStyle=f;h.fillStyle=f;h.beginPath();h.moveTo(18,2);h.lineTo(e-16,2);h.quadraticCurveTo(e-1,2,e-1,18);h.lineTo(e-1,n-16);h.quadraticCurveTo(e-1,n,e-16,n);h.lineTo(18,n);h.quadraticCurveTo(2,n,2,n-16);h.lineTo(2,18);h.quadraticCurveTo(2,2,
|
|
18,2);h.closePath();h.stroke();h.fill()},y8:function(f){var h=f.ctx,e=f.fontSize,n=f.fu,w=f.OM,ja=f.title,y=f.Gca,aa=f.TE.toString();h.font=[f.bold,f.italic,e.toString()+"px",f.font].join(" ");h.fillStyle=aa;h.textBaseline="middle";h.textAlign="center";h.fillText(ja,n/2,2*(y?.4*w:.5*w));ja=h.measureText(ja).width;n=n/2-ja/2;if(f.lla){var la=2*(y?.4*w:.5*w);h.beginPath();h.strokeStyle=aa;h.lineWidth=3;h.moveTo(n,la);h.lineTo(n+ja,la);h.stroke()}f.underline&&(la=2*(y?.4*w:.5*w)+e/2,h.beginPath(),h.strokeStyle=
|
|
aa,h.lineWidth=4,h.moveTo(n,la),h.lineTo(n+ja,la),h.stroke())},gR:function(f){var h=f.ctx,e=f.title,n=f.fontSize;f=f.yR;h.font="bold ".concat(n.toString(),"px Arial");h=h.measureText(e);e=2*f;f=n;h.width+f>e?n=e/((h.width+f)/n):e=h.width+f;return{fontSize:n,fu:e}},RR:h}},function(ia,ba,e){e.d(ba,"a",function(){return ea});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ha});var ea={oF:"Decimal",uF:"Fraction",YN:"Round",hO:"Truncate"},x={nr:"Metric",Uo:"Imperial",sr:"Typographic"},ha=
|
|
{MM:"mm",N_:"cm",M:"m",z0:"km",LN:"in",g0:"ft",h2:"yd",B0:"mi",e1:"pt",CN:'in"',d1:"ft'",GN:"ft-in"}},function(ia,ba,e){function ea(f,h,e,n,r){void 0===r&&(r=na.a.NORMAL);return Object(la.b)(void 0,void 0,void 0,function(){var z,w,fa,ja,y,aa,ka,na,da,x,pa,ca,ra,sa;return Object(la.d)(this,function(la){switch(la.label){case 0:return[4,f.Mh(e)];case 1:z=la.ea();w=z.PQ;(ja=f.Gj)&&ja.pageNumber?fa=ja.pageNumber:(y=ja.objnum+"-"+ja.gennum,aa=w.hk(),ka=aa.indexOf(y),fa=-1<ka?ka+1:1);na=f.Kc();da=f.Lc();
|
|
x=f.Ba();pa=f.wa();ca=w.ld(fa);ra=w.kd(fa);sa=Math.max(x/ca,pa/ra)*n.zoom;if(f.ZS(r)&&f.A2===sa)return h.drawImage(f.ZS(r),na,da,x,pa),[2,Promise.resolve()];f.A2=sa;return[2,new Promise(function(e){w.Oy({pageTransparent:ja.transparentBackground});return w.nt({pageNumber:fa,drawComplete:function(n){h.drawImage(n,na,da,x,pa);f.Wia(n,r);return e()},getZoom:function(){return sa}})})]}})})}function x(f){var h=Object.prototype.toString.call(f);return"object"===typeof f&&null!==f&&("[object File]"===h||
|
|
"[object Blob]"===h)}function ha(f,h){f.sort(function(f,e){f=h.indexOf(f);e=h.indexOf(e);return f<e?-1:f>e?1:0})}function ca(f){return sa.a.vN.mda(f)}function da(f){for(var h="",e=0,n,r,z;e<f.length;)n=f.charCodeAt(e),128>n?(h+=String.fromCharCode(n),e++):191<n&&224>n?(r=f.charCodeAt(e+1),h+=String.fromCharCode((n&31)<<6|r&63),e+=2):(r=f.charCodeAt(e+1),z=f.charCodeAt(e+2),h+=String.fromCharCode((n&15)<<12|(r&63)<<6|z&63),e+=3);return h}function aa(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];
|
|
var e=[];e[f.length-1]=null;var n=0;if(0<f.length){var r=f[n].endsWith("/")?f[n].length-1:f[n].length;e[n]=f[n].substring(0,r)}for(n=1;n<f.length-1;++n)h=f[n].startsWith("/")?1:0,r=f[n].endsWith("/")?f[n].length-1:f[n].length,e[n]=f[n].substring(h,r);1<f.length&&(h=f[n].startsWith("/")?1:0,e[n]=f[n].substring(h,f[n].length));return e.join("/")}function w(f,h,n){var e=0,r=0;switch(Number(f)){case 90:r=h;break;case 180:e=h;r=n;break;case 270:e=n}return{mS:e,nS:r}}function y(f,h){var n=f.x,e=h.x,r=f.y,
|
|
z=h.y;f.x>h.x&&(e=f.x,n=h.x);f.y>h.y&&(z=f.y,r=h.y);return{na:n,ja:r,oa:e,ka:z}}function n(h,n){h=r(h);n=r(n);var e={na:0,ja:0,oa:0,ka:0};!0===f(h,n)&&(e.na=Math.max(h.x1,n.x1),e.ja=Math.max(h.y1,n.y1),e.oa=Math.min(h.x2,n.x2),e.ka=Math.min(h.y2,n.y2));return e}function h(f,h){f=r(f);h=r(h);return f.x1<=h.x1&&f.x2>=h.x2&&f.y1<=h.y1&&f.y2>=h.y2}function f(f,h){f=r(f);h=r(h);return f.na<=h.oa&&f.oa>=h.na&&f.ja<=h.ka&&f.ka>=h.ja}function r(f){var h,n,e,r,z,w,fa,ja,y;return Object(la.a)(Object(la.a)({},
|
|
f),(h={na:null!==(n=f.x1)&&void 0!==n?n:f.na,oa:null!==(e=f.x2)&&void 0!==e?e:f.oa,ja:null!==(r=f.y1)&&void 0!==r?r:f.ja,ka:null!==(z=f.y2)&&void 0!==z?z:f.ka},h.x1=null!==(w=f.x1)&&void 0!==w?w:f.na,h.x2=null!==(fa=f.x2)&&void 0!==fa?fa:f.oa,h.y1=null!==(ja=f.y1)&&void 0!==ja?ja:f.ja,h.y2=null!==(y=f.y2)&&void 0!==y?y:f.ka,h))}function z(){try{return new ImageData(1,1),!0}catch(Da){return!1}}function fa(){var f=document.createElement("canvas");f.width=1;f.height=1;f=f.getContext("2d");f.fillStyle=
|
|
"#000";f.fillRect(0,0,1,1);f.globalCompositeOperation="multiply";f.fillStyle="#fff";f.fillRect(0,0,1,1);return 0===f.getImageData(0,0,1,1).data[0]}function ka(f){for(var h="",n=0;n<f;n++)h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return h}function ja(){return!(!window.URL||!window.URL.createObjectURL)}function pa(){if(window.Uint8Array)try{return new window.Uint8Array(new ArrayBuffer(1)),!0}catch(Da){return!1}else return!1}function ma(f){return!!f&&
|
|
!Object(ra.isNil)(f.objnum)&&!Object(ra.isNil)(f.gennum)}e.d(ba,"q",function(){return pa});e.d(ba,"f",function(){return ja});e.d(ba,"k",function(){return ka});e.d(ba,"o",function(){return fa});e.d(ba,"p",function(){return z});e.d(ba,"m",function(){return r});e.d(ba,"i",function(){return f});e.d(ba,"b",function(){return h});e.d(ba,"d",function(){return n});e.d(ba,"l",function(){return y});e.d(ba,"e",function(){return w});e.d(ba,"j",function(){return aa});e.d(ba,"r",function(){return da});e.d(ba,"g",
|
|
function(){return ca});e.d(ba,"n",function(){return ha});e.d(ba,"h",function(){return x});e.d(ba,"c",function(){return ea});e.d(ba,"a",function(){return ma});var la=e(1),na=e(3),ra=e(0);e.n(ra);var sa=e(12)},function(ia,ba,e){function ea(f,h,n){Object.defineProperties(f,h);x(f,h,n)}function x(f,h,n){f.Ys||(f.Ys={});h||(h={});n||(n=[]);f.Ys=Object(fa.a)(Object(fa.a)(Object(fa.a)({},f.Ys),Object.keys(h).reduce(function(f,h){f[h]=h;return f},{})),n.reduce(function(f,h){f[h]=h;return f},{}))}function ha(f){f.prototype.Gx&&
|
|
(f.prototype.draw=f.prototype.Gx,delete f.prototype.Gx);f.prototype.Hx&&(f.prototype.Mh=f.prototype.Hx,delete f.prototype.Hx);f.prototype.Ex&&(f.prototype.un=f.prototype.Ex,delete f.prototype.Ex)}function ca(f,h,n){f.prototype.Gx||(f.prototype.Gx=f.prototype.draw);var e=f.prototype.Gx;f.prototype.draw=function(f,n,r){h?h.call(this,f,n,r,{annotation:this,originalDraw:e.bind(this)}):e.apply(this,arguments)};n=n||{};n=Object(fa.a)({generateAppearance:!!h,canvasMultiplier:Object(pa.h)()},n);var r=ma.utils.isPdfjs;
|
|
!r&&n.generateAppearance&&(f.prototype.Ex||(f.prototype.Ex=f.prototype.un,f.prototype.un=function(){var h=f.prototype.Ex.apply(this,arguments);delete this.Cr;return h}),f.prototype.oW||(f.prototype.oW=f.prototype.eE,f.prototype.eE=function(){var h=f.prototype.oW.apply(this,arguments);delete this.Cr;return h}),f.prototype.Hx||(f.prototype.Hx=f.prototype.Mh),f.prototype.Mh=function(z){var w=this;if(this.Vu&&!this.Cr)return f.prototype.Hx.apply(this,arguments);var y=new ja.e,aa=2>n.canvasMultiplier?
|
|
2:n.canvasMultiplier,na=this.X+this.Width/2,la=this.Y+this.Height/2,da="cloudy"===this.Style?Math.max(this.StrokeThickness,12):0,x=document.createElement("canvas");x.width=(this.Width+da)*aa;x.height=(this.Height+da)*aa;da=x.getContext("2d");da.PJ=!1;y=y.Pk(na,la,0,0).scale(aa,aa).Pk(0,0,x.width/2,x.height/2).Ds().Mk();da.setTransform(y[0],y[1],y[2],y[3],y[4],y[5]);h.call(this,da,z,0,{annotation:this,originalDraw:e.bind(this)});return new Promise(function(f,h){x.toBlob(function(n){return Object(fa.b)(w,
|
|
void 0,void 0,function(){var e,z,w;return Object(fa.d)(this,function(fa){switch(fa.label){case 0:if(!n)return[2,f(void 0)];fa.label=1;case 1:return fa.Gg.push([1,3,,4]),[4,Object(ka.c)(n,{useDownloader:!1,extension:"png",loadAsPDF:!0})];case 2:return e=fa.ea(),z=this.un(e,{pageNumber:1}),this.Cr=!0,[2,f(z)];case 3:return w=fa.ea(),r&&(this.Cr=!0),[2,h(w)];case 4:return[2]}})})})})})}function da(f,h){for(var n in h)aa(f,n,h[n],"selectionModel")}function aa(f,h,n,e){var r="original"+(h.charAt(0).toUpperCase()+
|
|
h.slice(1));f.prototype[r]||(f.prototype[r]=f.prototype[h]);var z=f.prototype[r];f.prototype[h]=function(){for(var f,h=[],w=0;w<arguments.length;w++)h[w]=arguments[w];return n?n.apply(this,h.concat((f={},f[e]=this,f[r]=z.bind(this),f))):z.apply(this,arguments)}}function w(f,h){aa(f,"draw",h,"controlHandle")}function y(f){f.prototype.HD&&(f.prototype.deserialize=f.prototype.HD)}function n(f){f.prototype.KD&&(f.prototype.serialize=f.prototype.KD)}function h(f){aa(ma.Annotations.SignatureWidgetAnnotation,
|
|
"createSignHereElement",f,"annotation")}function f(f,h){f.prototype.HD||(f.prototype.HD=f.prototype.deserialize);var n=f.prototype.HD;f.prototype.deserialize=function(f,e){h?h.call(this,f,e,{annotation:this,originalDeserialize:n.bind(this)}):n.apply(this,arguments)}}function r(f,h){aa(f,"createInnerElement",h,"annotation")}function z(f,h){f.prototype.KD||(f.prototype.KD=f.prototype.serialize);var n=f.prototype.KD;f.prototype.serialize=function(f,e){return h?h.call(this,f,e,{annotation:this,originalSerialize:n.bind(this)}):
|
|
n.apply(this,arguments)}}e.d(ba,"j",function(){return z});e.d(ba,"f",function(){return r});e.d(ba,"h",function(){return f});e.d(ba,"g",function(){return h});e.d(ba,"d",function(){return n});e.d(ba,"b",function(){return y});e.d(ba,"e",function(){return w});e.d(ba,"k",function(){return da});e.d(ba,"i",function(){return ca});e.d(ba,"c",function(){return ha});e.d(ba,"a",function(){return ea});var fa=e(1),ka=e(55),ja=e(4),pa=e(108),ma=window},function(ia,ba,e){var ea=e(1);ia=e(85);var x=e(0);e.n(x);var ha=
|
|
e(8),ca=e(83),da=e(35),aa=e(232),w=e(6),y=e(12),n=window.Annotations||{},h,f;e=function(e){function r(f){var h=e.call(this,f)||this;h.Ej=new ha.a(0,0,0,0);h.Fj=1;h.SP=1;h.J3=null;h.WO=new Date;h.xA=null;h.qU=!0;h.cd(f);return h}Object(ea.c)(r,e);r.prototype.dc=function(f,h){null!==this.Opacity&&(f.globalAlpha=this.Opacity);if(this.Style&&"dash"===this.Style&&this.Dashes){var n=this.Dashes.toString().split(/,\s*/);f.setLineDash(n)}null!==this.FillColor&&(f.fillStyle=this.FillColor.toString());null!==
|
|
this.StrokeColor&&(f.strokeStyle=this.StrokeColor.toString());f.lineWidth=0===this.StrokeThickness?.001:this.ak(h)};r.prototype.Vka=function(){var n=this.X+this.Ba()+2*this.StrokeThickness+100,e=this.Y+this.wa()+2*this.StrokeThickness+100;h=h||document.createElement("canvas").getContext("2d");h.canvas.width=n;h.canvas.height=e;f=f||document.createElement("canvas").getContext("2d");f.canvas.width=n;f.canvas.height=e};r.prototype.i9=function(n,e){this.Vka();this.dc(h,e);h.globalAlpha=1;this.zl(h);h.stroke();
|
|
this.dc(f,e);f.globalAlpha=1;this.zl(f);f.fill();h.globalCompositeOperation="source-out";h.setTransform(1,0,0,1,0,0);h.drawImage(f.canvas,0,0);this.dc(n,e);n.globalCompositeOperation="source-over";n.drawImage(h.canvas,0,0);this.zl(n);n.stroke()};r.prototype.fI=function(f,h){f.beginPath();1===this.Opacity||null===this.Opacity||this.FillColor.gD()?(this.dc(f,h),this.zl(f),f.fill(),f.stroke()):this.i9(f,h)};r.prototype.zl=function(){};r.prototype.NT=function(){return this.xA};r.prototype.MY=function(f){this.xA=
|
|
f};r.prototype.ak=function(f){return y.a.zv(f,this.StrokeThickness)};r.prototype.serialize=function(f,h){var r=e.prototype.serialize.apply(this,arguments),z={},fa=w.a.Hk(this.FillColor);null!==fa&&(z["interior-color"]=fa);Object(x.isUndefined)(this.StrokeThickness)||Object(x.isNull)(this.StrokeThickness)||(fa=this.StrokeThickness,1!==fa&&(z.width=fa));Object(x.isUndefined)(this.Opacity)||Object(x.isNull)(this.Opacity)||1===this.Opacity||(z.opacity=this.Opacity);(fa=this.fringe)&&!fa.nV()&&(z.fringe=
|
|
w.a.$L(this.fringe,h));if(fa=this.DateCreated){var y=void 0;this.PK&&(fa.getTime()===this.kW?y=this.PK:(delete this.PK,delete this.kW));y||(y=w.a.Ly(fa));z.creationdate=y}Object(x.isUndefined)(this.Style)||Object(x.isNull)(this.Style)||"solid"===this.Style||(z.style=this.Style);Object(x.isUndefined)(this.Dashes)||Object(x.isNull)(this.Dashes)||"3"===this.Dashes||(z.dashes=this.Dashes);this.We(r,"IT");for(var aa in z)r.setAttribute(aa,z[aa]);!this.xA||this instanceof n.gb||(z=document.createElementNS("",
|
|
"popup"),z=this.xA.serialize(z,h),r.appendChild(z));"EllipseDimension"===this.IT&&this.Measure&&f.appendChild(w.a.Tt(this.Measure));return r};r.prototype.deserialize=function(f,h,n){e.prototype.deserialize.apply(this,arguments);var r=f.getAttribute("opacity");this.Opacity="undefined"!==typeof r&&null!==r?parseFloat(r):1;r=f.getAttribute("width");if(null!==this.StrokeThickness||"undefined"!==typeof r&&null!==r)this.Fj=parseFloat(r||"1");(r=f.getAttribute("style"))&&(this.Style=r);(r=f.getAttribute("dashes"))&&
|
|
(this.Dashes=r);this.tj(f,"IT");this.QK=r=f.getAttribute("fringe");"undefined"!==typeof r&&null!==r&&(this.fringe=w.a.VR(r,h));r=w.a.Mi(f.getAttribute("interior-color"));null!==r?this.FillColor=r:null!==this.FillColor&&(this.FillColor=new ha.a(0,0,0,0));(r=f.getAttribute("creationdate"))?(this.PK=r,r=w.a.AB(r),this.kW=r.getTime(),this.DateCreated=r):this.DateCreated=null;r=f.getElementsByTagName("popup");if(0<r.length){var z=new aa.a;z.deserialize(r[0],h,n);this.MY(z)}r=f.querySelector("measure");
|
|
"EllipseDimension"===f.getAttribute("IT")&&r&&(this.Measure=w.a.hs(r))};return r}(ia.a);ia.a.prototype.selectionModel=ca.a;Object(da.a)(e.prototype,{FillColor:{get:function(){return this.Ej},set:function(f){f instanceof ha.a&&(this.Ej=Object(ha.b)(this,f),this.Ma())}},StrokeColor:{get:function(){return this.Tm},set:function(f){f instanceof ha.a&&(this.Tm=Object(ha.b)(this,f),this.Ma())}},StrokeThickness:{get:function(){return this.Fj},set:function(f){this.Fj=parseFloat(f);this.Ma();this.adjustRect()}},
|
|
Opacity:{get:function(){return this.SP},set:function(f){this.SP=parseFloat(f);this.Ma()}},DateCreated:{get:function(){return this.WO},set:function(f){this.WO=y.a.iT(f)}},ViewState:{get:function(){var f=this.ac("trn-viewstate");return f?JSON.parse(f):f},set:function(f){f?this.Db("trn-viewstate",JSON.stringify(f)):this.Df("trn-viewstate")}}});ba.a=e;(window.Annotations||{}).oi=e},function(ia,ba,e){function ea(f,h,e){Fa||Ca.ij||x(f,h);Object(ma.a)()||Object(ma.f)(e);e=e||Object(ma.a)();f=Object(ma.d)();
|
|
if(Ca.ij){if(f&&e&&!Object(ma.c)(e))throw Error("PDFNet was already initialized in demo mode. For solution see pdftron.com/kb_demo_init. Note that calling initPDFWorkerTransports or creating WebViewer object will also call PDFNet.initialize so your license key should be used in all of these calls.");}else Object(ma.e)(!e),e=Promise.all([Object(ma.b)(e),Fa]).then(function(f){Object(ma.e)(!f[0]||Object(ma.c)(f[0]));return ca(f[1],h,Ea,f[0])}).then(function(f){return Ca.ij.bY=f}),n({pdf:e});return Ca.ij}
|
|
function x(f,n,e){if(!Ca.ij){Object(na.f)().resolve(f);Object(fa.isUndefined)(e)&&(e={});var r=Object(la.i)(),z=Object(la.h)(),w=Object(la.j)();e.Xka=ya||r||z;e.emsWorkerPath=Object(la.f)()+"PDFworker.js";e.isFull=Object(la.k)();e.wasmWorkerPath=Object(la.g)();e.externalPath=Object(la.c)();e.kN=Object(na.h)();w&&(e.pdfWorkerPath=w);Fa=h(f,n,e)}}function ha(f){ya=f}function ca(h,n,e,z){if(Object(fa.isUndefined)(h))return null;var w;n=new Promise(function(f,n){r(function(){n(new pa.a("The worker has encountered an error",
|
|
ra.i?"error.EmsWorkerErrorIE":"error.EmsWorkerError"))});var z={},fa=Object(la.i)(),y=Object(la.h)();ya&&(z.workerHeapSize=ya);fa&&(z.pdfResourcePath=fa);y&&(z.pdfAsmPath=y);fa=window.location.href;y=fa.lastIndexOf("#");y=fa.lastIndexOf("/",y);-1!==y&&(z.parentUrl=fa.substring(0,y+1));w=new window.d2(h,e,z);w.WA=Object(na.d)();Ga=Object(ja.c)("disableLogs",function(f){w.P7(f)});w.Uy.then(function(){f()},function(f){n(f)})});var y=new Promise(function(f,h){if(qa.utils.isJSWorker&&qa.jsworker&&qa.jsworker.utils)"android"!==
|
|
qa.jsworker.platform&&"ios"!==qa.jsworker.platform||!qa.jsworker.utils.getResourcesDir?qa.jsworker.utils.getHTMLContentPath?qa.jsworker.utils.getHTMLContentPath(function(n){n?(n.endsWith("/")||(n+="/"),f(n+"js/html5/pdf/")):h(new pa.a("Couldn't fetch resource file path."))}):h(new pa.a("Some functions required for fetching resources are not defined.")):qa.jsworker.utils.getResourcesDir(function(n,e){n?h(n):f(e)});else{var n=new XMLHttpRequest;n.open("GET",Object(la.f)()+"pdfnet.res",!0);n.responseType=
|
|
"arraybuffer";n.onload=function(){200===n.status||0===n.status?f(n.response):h(new pa.a("Couldn't fetch resource file.","error.ResourceLoadError"))};n.onerror=function(){h(new pa.a("Network error","error.ResourceLoadError"))};n.send(null)}});return Promise.all([n,y]).then(function(h){z=f(z);return qa.utils.isJSWorker&&qa.jsworker&&qa.jsworker.utils?w.tea(h[1],z):w.CV(h[1],z).catch(function(f){if(-1<f.message.indexOf("AMS"))throw f;Object(ka.g)(f.message);return w.CV(h[1])})}).then(function(){var f=
|
|
Aa;"undefined"!==typeof f&&w.Xt(f);return w})}function da(){return Aa}function aa(f){Aa=f;Ca.ij&&Ca.ij.then(function(f){f.Xt(Aa)});Ca.Dq&&Ca.Dq.then(function(f){f.Xt(Aa)})}function w(){Fa=null;Ca.ij&&(Ca.ij.bY&&Ca.ij.bY.reset(),Ca.ij=null);Ca.Dq=null;Ca.kt=null;Ga&&Ga();Object(na.j)();Object(ma.f)(void 0)}function y(){return Ca}function n(f){f.pdf&&(Ca.ij=f.pdf);f.office&&(Ca.Dq=f.office);f.legacyOffice&&(Ca.kt=f.legacyOffice)}function h(f,h,n){n=n||{};var e;f!==Da.d||"wasmWorkerPath"in n||(f=Da.e);
|
|
return Object(na.k)(f).then(function(z){return new Promise(function(w,fa){function y(h){function w(f){"object"===typeof f.data&&"action"in f.data&&("workerLoaded"===f.data.action||"test"===f.data.action)&&(h.workerLoadingProgress&&h.workerLoadingProgress(1),e.removeEventListener("message",w))}r(function(){fa(new pa.a("The worker has encountered an error",ra.i?"error.EmsWorkerErrorIE":"error.EmsWorkerError"))});var y=Object(ja.a)("disableLogs"),aa=n.emsWorkerPath.toLowerCase().startsWith("http"),ka=
|
|
Object(la.k)(),na=n.externalPath||"",da=n.officeAsmPath||"";y={action:"init",shouldResize:n.Xka,isFull:ka,wasm:"asm"!==f,disableLogs:y};aa?(aa=Object(la.g)().slice(0,-9),e=new Worker(Object(la.d)()+"CORSWorker.js"),y.file=n.emsWorkerPath,y.path=aa):(n.pdfWorkerPath?(e=new Worker(n.emsWorkerPath),y.pdfWorkerPath=n.pdfWorkerPath):e=new Worker(n.emsWorkerPath),y.externalPath=na,y.officeAsmPath=da);y.useOptimizedWorker=z;e.postMessage(y);e.onerror=Ba;Ea=!0;e.addEventListener("message",w,!1);aa=va.KN();
|
|
va.NY(aa?18E3/aa:0);return e}function aa(f,h){w(f);n.kN.WA=h}if(f===Da.c)Object(ka.h)("Attempting to load JSWorker"),qa.utils.isJSWorker&&(e=qa.jsworker.loadWorker(),Object(ka.h)("JSWorker loaded!"),e&&e.getProcessId(function(f){Object(ka.h)("Loaded worker in process: "+f)})),Ea=!1,aa(e,Da.c);else if(f===Da.d){r(function(){fa(new pa.a("The worker has encountered an error","error.EmsWorkerError"))});e=document.createElement("iframe");e.style="width:0;height:0;border:0;border:none;display:block;";var da=
|
|
window.location.pathname.endsWith("aspx")?"iframe.aspx":"iframe.html";e.src=va.ae()+"pdf/"+da;e.title="worker";e.vda=n.isFull;document.body.appendChild(e);e.sx=[];var x=e.addEventListener;e.addEventListener=function(f,h){function n(f){e.contentWindow===f.source&&h(f)}x.apply(this,arguments);var e=this;this.sx.push([h,n]);"message"===f&&window.addEventListener(f,n)};var ca=e.removeEventListener;e.removeEventListener=function(f,h){ca.apply(this,arguments);if("message"===f)for(var n=0;n<this.sx.length;n++)if(h===
|
|
this.sx[n][0]){window.removeEventListener(f,this.sx[n][1]);this.sx.splice(n,1);break}};e.postMessage=function(f){this.contentWindow.postMessage(f)};e.reset=function(){this.parentNode.removeChild(this)};e.onerror=Ba;e.getWorkerType=function(){return Da.d};window.loadThreadedBackend=sa.a;window.parentWarn=ka.j;e.onload=function(f){var r=n.wasmWorkerPath,w=e.vda?"full/":"lean/";z&&(r+=na.i,w+=na.i);e.postMessage({action:"loadWasmWorker",wasmSource:r,workerFolder:w},f.origin);Fa=e.contentWindow.getWasmWorkerPromise();
|
|
Ea=!0;Fa.then(function(){h.workerLoadingProgress&&h.workerLoadingProgress(1)});f=va.KN();va.NY(f?18E3/f:0);aa(e,Da.d)}}else f!==Da.e&&f!==Da.a||aa(y(h),f)})})}function f(f){var h=/(ENTERP|ENTCPU|WEBCPU|OEM):/;if(f&&!h.test(f))Object(ka.j)("WebViewer is currently running in demo mode, please provide a commercial license key to remove demo stamps");else return f}function r(f){oa.push(f);for(var h=0;h<ua.length;++h)f(ua[h])}function z(){return Ea}e.d(ba,"d",function(){return z});e.d(ba,"a",function(){return r});
|
|
e.d(ba,"b",function(){return f});e.d(ba,"h",function(){return h});e.d(ba,"l",function(){return n});e.d(ba,"e",function(){return y});e.d(ba,"i",function(){return w});e.d(ba,"j",function(){return aa});e.d(ba,"c",function(){return da});e.d(ba,"k",function(){return ha});e.d(ba,"g",function(){return x});e.d(ba,"f",function(){return ea});var fa=e(0);e.n(fa);var ka=e(2),ja=e(40),pa=e(60),ma=e(76),la=e(29),na=e(56),ra=e(17),sa=e(323),Da=e(63),qa=window,va=window.Ya,oa=[],ua=[],Ca={},ya,Ea,Aa,Fa,Ga,Ba=Object(fa.throttle)(function(f){var h=
|
|
oa.length;ua.push(f);for(var n=0;n<h;++n)oa[n](f)},100,{trailing:!1})},function(ia,ba){ba.a={gO:"Single",Tk:"Continuous",vF:"Facing",iz:"FacingContinuous",Hu:"Cover",Iu:"CoverFacing",Uk:"Custom"}},function(ia,ba,e){function ea(e,aa,w){e.splice(aa,0,w)}function x(e){e.length=0}function ha(e,aa){e.push.apply(e,aa)}function ca(e){return e.length?e[e.length-1]:null}e.d(ba,"d",function(){return ca});e.d(ba,"a",function(){return ha});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea});e(1)},
|
|
function(ia,ba,e){function ea(e,w){rb();var y=Symbol();(ca[e]||(ca[e]=new Map)).set(y,w);return function(){ca[e].delete(y)}}function x(e,w){var y;da[e]=w;null===(y=ca[e])||void 0===y?void 0:y.forEach(function(n){n(w)})}function ha(e){return da[e]}e.d(ba,"a",function(){return ha});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea});var ca={},da={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,
|
|
_logFiltersEnabled:null}},function(ia,ba,e){var ea=e(83);e.d(ba,"a",function(){return ea.a});var x=e(265);e.d(ba,"b",function(){return x.a});var ha=e(266);e.d(ba,"d",function(){return ha.a});var ca=e(188);e.d(ba,"e",function(){return ca.a});var da=e(267);e.d(ba,"f",function(){return da.a});var aa=e(129);e.d(ba,"g",function(){return aa.a});var w=e(268);e.d(ba,"h",function(){return w.a});var y=e(47);e.d(ba,"k",function(){return y.a});var n=e(191);e.d(ba,"m",function(){return n.a});var h=e(192);e.d(ba,
|
|
"c",function(){return h.a});var f=e(130);e.d(ba,"n",function(){return f.a});var r=e(269);e.d(ba,"i",function(){return r.a});var z=e(270);e.d(ba,"j",function(){return z.a});var fa=e(271);e.d(ba,"l",function(){return fa.a})},function(ia,ba,e){function ea(e){Object(ha.a)(e,aa)}e.d(ba,"a",function(){return da});e.d(ba,"b",function(){return ea});var x=e(2),ha=e(121),ca=e(5),da;(function(e){e.HOLD_TO_DRAW="holdToDraw";e.TWO_CLICKS="twoClicks";e.TWO_CLICKS_HOLD_TO_DRAW_HYBRID="twoClicksHoldToDrawHybrid"})(da||
|
|
(da={}));var aa=function(){function e(){}e.prototype.jM=function(e){var n=Object.values(da);this instanceof ca.y||(n=n.filter(function(h){return h!==da.TWO_CLICKS_HOLD_TO_DRAW_HYBRID}));n.includes(e)?this.eA=this.sd=e:Object(x.g)("An invalid draw mode is passed to setDrawMode. Valid values are "+Object.keys(da).map(function(h){return"DrawModes."+h}).join(", "))};e.prototype.yw=function(){return this.sd};return e}()},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(18);ia=e(51);var ca=e(10),da=
|
|
e(138),aa=window;e=function(){function e(e){this.pageCoordinates=[];this.lc=this.Qe=null;this.uS=!1;this.aa=this.documentViewer=e}e.N9=function(){e.ENABLE_TEXT_SELECTION=!0};e.V7=function(){e.ENABLE_TEXT_SELECTION=!1};e.x9=function(){e.ENABLE_AUTO_SWITCH=!0};e.B7=function(){e.ENABLE_AUTO_SWITCH=!1};e.r9=function(){e.ENABLE_ANNOTATION_HOVER_CURSORS=!0};e.v7=function(){e.ENABLE_ANNOTATION_HOVER_CURSORS=!1};e.I4=function(){e.ALLOW_ANNOTS_OUTSIDE_PAGE=!0};e.Z7=function(){e.ALLOW_ANNOTS_OUTSIDE_PAGE=!1};
|
|
e.prototype.reset=function(){this.lc=this.Qe=null;this.pageCoordinates=[]};e.prototype.Zg=function(e){var n={},h=this.aa.jb(),f=Object(da.a)(h);h=h.scrollTop||0;e&&e.touches?(e=0===e.touches.length?e.changedTouches[0]:e.touches[0],n.x=f+e.clientX,n.y=h+e.clientY):(n.x=f+e.pageX,n.y=h+e.pageY);return n};e.prototype.VW=function(e){this.pointerType=e.pointerType};e.prototype.mouseLeftDown=function(e){var n=this.aa.kq();this.aa.kV()&&"touch"===this.pointerType&&"Pan"!==n.name?this.ola(e,n):this.fM(e)};
|
|
e.prototype.ola=function(e,n){var h=this,f=this.aa.ao("Pan");"AnnotationCreateFreeHand"===n.name||"AnnotationCreateFreeHandHighlight"===n.name?n.complete(!0).then(function(){f.previouslyUsedTool=n;h.aa.Co(f);f.mouseLeftDown(e);h.fM(e)}):(f.previouslyUsedTool=n,this.aa.Co(f),f.mouseLeftDown(e),this.fM(e))};e.prototype.fM=function(e){var n=this.Zg(e);this.Qe=n;this.lc={x:n.x,y:n.y};this.pageCoordinates[0]=this.Me(this.Qe);this.pageCoordinates[1]=this.pageCoordinates[0];e.data={mouseCoordinate:{x:n.x,
|
|
y:n.y},pageCoordinate:this.pageCoordinates[0]};this.Ub=this.aa.la.Pn(e);this.LC()&&(this.Ub instanceof aa.Annotations.Xk?Object(ha.d)(this.aa,this.cursor):this.aa.ta().Qc(this.Ub)&&this.Vs&&Object(ha.d)(this.aa,"move"))};e.prototype.mouseLeftUp=function(e){var n=this.Zg(e);this.lc=n;this.pageCoordinates[1]=this.Me(this.lc);e.data={mouseCoordinate:{x:n.x,y:n.y},pageCoordinate:this.pageCoordinates[1]}};e.prototype.mouseRightDown=function(){};e.prototype.OV=function(e){e.preventDefault();var n=this.aa.ao("Pan");
|
|
n.previouslyUsedTool=this.aa.kq();this.aa.Co(n);n.switchIn(n.previouslyUsedTool);n.mouseLeftDown(e)};e.prototype.PV=function(e){e.preventDefault();this.mouseLeftUp(e)};e.prototype.mouseMove=function(w){var n=this.Zg(w),h=this.aa.la;this.lc=n;var f=this.Me(this.lc);f&&(e.ENABLE_ANNOTATION_HOVER_CURSORS||Object(ha.d)(this.aa,this.cursor),this.Ub=h.Pn(w),this.c_(h,f),this.b_(h),this.Sla(h,f));if(this.Qe){if((h=this.pageCoordinates[0])&&null!=h.pageNumber&&h.pageNumber<=this.aa.Wb())var r=h.pageNumber;
|
|
else{h=this.Me(this.Qe);if(!h)return;r=h.pageNumber}if(!this.aa||!this.aa.getDocument())return;h=this.aa.ld(r);f=this.aa.kd(r);r=this.Me(this.lc,r);e.ALLOW_ANNOTS_OUTSIDE_PAGE||(0>r.x&&(r.x=0),0>r.y&&(r.y=0),r.x>h&&(r.x=h),r.y>f&&(r.y=f));this.pageCoordinates[1]=r}else this.pageCoordinates[1]=this.Me(this.lc);w.data={mouseCoordinate:{x:n.x,y:n.y},pageCoordinate:this.pageCoordinates[1]}};e.prototype.LC=function(){return!this.overrideSelection&&this.Ub&&this.Ub.Listable&&this.Ub.isVisible()};e.prototype.c_=
|
|
function(w,n){var h=!e.ENABLE_TEXT_SELECTION||!e.ENABLE_AUTO_SWITCH,f=this.aa.kq();f=!("AnnotationEditTool"===f.sg||"TextSelectTool"===f.sg||"RedactCreateTool"===f.sg);var r=this.Zf&&0<Object.keys(this.Zf).length;h||this.mouseDown||f||r||0<w.Ed().length||this.aa.pY(n.pageNumber,n,function(f,h){0<h.length?("RedactCreateTool"!==this.sg&&this.aa.Co(this.aa.ao("TextSelect")),h=this.dca(h),f=this.aa.getDocument().ad(f),this.kR(Math.abs(h-f))):0===h.length&&("RedactCreateTool"===this.sg?this.cursor="crosshair":
|
|
(this.aa.Co(this.aa.ao("AnnotationEdit")),this.cursor="default"))}.bind(this))};e.prototype.kR=function(e){this.cursor=90===e||270===e?"vertical-text":"text";Object(ha.d)(this.aa,this.cursor)};e.prototype.dca=function(e){e=e[e.length-1];if(!e)return this.aa.getDocument().ad(this.aa.jg());var n=Math.max(e.y1,e.y2,e.y3,e.y4),h=Math.min(e.y1,e.y2,e.y3,e.y4),f=Math.max(e.x1,e.x2,e.x3,e.x4),r=Math.min(e.x1,e.x2,e.x3,e.x4),z;e.x1===r&&e.y1===n?z=0:e.x1===f&&e.y1===n?z=90:e.x1===f&&e.y1===h?z=180:e.x1===
|
|
r&&e.y1===h&&(z=270);return z};e.prototype.b_=function(w){e.ENABLE_ANNOTATION_HOVER_CURSORS&&(this.LC()?w.Xl(this.Ub)?this.Ub instanceof aa.Annotations.Wo&&!this.Ub.IsText?Object(ha.d)(this.aa,"move"):this.Ub instanceof aa.Annotations.Xk?Object(ha.d)(this.aa,this.cursor):this.aa.ta().Qc(this.Ub)&&Object(ha.d)(this.aa,"move"):Object(ha.d)(this.aa,"pointer"):Object(ha.d)(this.aa,this.cursor))};e.prototype.Sla=function(w,n){if(e.ENABLE_ANNOTATION_HOVER_CURSORS&&!this.overrideSelection)for(var h=w.Ed(),
|
|
f=0;f<h.length;f++){var r=h[f],z=(new r.selectionModel(r,w.Qc(r),!0,this.aa)).Hy(r,this.aa.Lb(r.PageNumber),n.x,n.y);z&&(r=this.aa.Hc(r.PageNumber),Object(ha.d)(this.aa,z.kC(r)))}};e.prototype.mouseDoubleClick=function(e){e=this.Zg(e);this.Qe={x:e.x,y:e.y};this.lc={x:e.x,y:e.y};if(e=this.Me(this.lc))this.nn=e.x,this.pn=e.y,this.LC()&&this.aa.la.trigger(ca.b.ANNOTATION_DOUBLE_CLICKED,this.Ub)};e.prototype.mouseLeave=function(){};e.prototype.tap=function(){};e.prototype.keyDown=function(){};e.prototype.contextMenu=
|
|
function(){};e.prototype.switchIn=function(){};e.prototype.switchOut=function(){Object(ha.d)(this.aa,"default");this.aa.la.he()};e.prototype.Yd=function(){return this.aa};e.prototype.Me=function(e,n){if("undefined"===typeof n&&(n=this.documentViewer.Ff().gq(e,e),n=null===n.first?n.last:n.first,null===n))return null;e=this.documentViewer.Ff().xj(e,n);n=parseFloat(e.x.toFixed(2));var h=parseFloat(e.y.toFixed(2));return{pageNumber:e.pageNumber,x:n,y:h}};e.prototype.dc=function(e){var n=this;Object(ea.isFunction)(e)&&
|
|
(Object(x.j)("Passing a function to tool.setStyles is deprecated, please pass an object instead. The deprecated argument will be removed in 7.0."),e=e(this.defaults));e&&e.hasOwnProperty("FontSize")&&"number"===typeof e.FontSize&&(e.FontSize+="pt");Object(ea.isObject)(e)&&(Object.keys(e).forEach(function(h){n.defaults[h]=e[h]}),this.aa.trigger(ca.e.TOOL_UPDATED,[this]))};e.prototype.qM=function(e){this.name=e;this.aa.trigger(ca.e.TOOL_UPDATED,[this])};e.prototype.Bn=function(e){this.annotation&&e.touches&&
|
|
1<e.touches.length&&(this.aa.ta().Dc(this.annotation),this.annotation=null)};e.ENABLE_TEXT_SELECTION=!0;e.ENABLE_AUTO_SWITCH=!0;e.ENABLE_ANNOTATION_HOVER_CURSORS=!0;e.ALLOW_ANNOTS_OUTSIDE_PAGE=!1;return e}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){e.d(ba,"a",function(){return ea});e.d(ba,"b",function(){return x});var ea={LEFT:1,lF:2,RIGHT:4},x={Xo:16,xF:32,So:64}},function(ia,ba,e){var ea=e(1);ia=e(26);var x=e(18),ha=e(4),ca=e(8);e=function(e){function aa(w,y,n){w=e.call(this,w)||this;w.annotation=
|
|
null;w.annotationPrototype=y;w.s6=n;w.cursor="crosshair";w.OA=null;w.defaults={StrokeColor:new ca.a(0,0,0),FillColor:new ca.a(0,0,0,0),StrokeThickness:1,Opacity:1};return w}Object(ea.c)(aa,e);aa.prototype.switchIn=function(){Object(x.d)(this.aa,this.cursor)};aa.prototype.switchOut=function(w){null!==this.annotation&&void 0!==this.annotation&&(this.Mv(),this.aa.la.Dc(this.annotation),this.annotation=null);e.prototype.switchOut.call(this,w)};aa.prototype.Mv=function(){};aa.prototype.mouseLeftDown=function(w){if(!this.oK||
|
|
!this.oK())if(e.prototype.mouseLeftDown.call(this,w),!this.isSelecting()&&!this.annotation&&(w=this.pageCoordinates[0])){var y=this.aa.la;this.annotation=new this.annotationPrototype(this.s6);this.annotation.PageNumber=w.pageNumber;this.annotation.X=w.x;this.annotation.Y=w.y;this.annotation.Author=y.kg();null!==this.annotation.StrokeColor&&(w=this.defaults.StrokeColor)&&(this.annotation.StrokeColor=new ca.a(w.R,w.G,w.B,w.A));null!==this.annotation.StrokeThickness&&null!==this.defaults.StrokeThickness&&
|
|
(this.annotation.StrokeThickness=this.defaults.StrokeThickness);null!==this.annotation.FillColor&&(w=this.defaults.FillColor)&&(this.annotation.FillColor=new ca.a(w.R,w.G,w.B,w.A));null!==this.defaults.Opacity&&(this.annotation.Opacity=this.defaults.Opacity);this.annotation.ToolName=this.name;this.trigger(aa.Events.ANNOTATION_CREATED,[this.annotation])}};aa.prototype.mouseLeftUp=function(w){e.prototype.mouseLeftUp.call(this,w);this.isSelecting()||this.finish()};aa.prototype.mouseMove=function(w){e.prototype.mouseMove.call(this,
|
|
w);var y=this.pageCoordinates[0],n=this.pageCoordinates[1];!this.isSelecting()&&this.annotation&&"undefined"!==typeof this.pageCoordinates&&null!==n&&null!==y&&y.pageNumber===n.pageNumber&&(y=new ha.d(y.x,y.y,n.x,n.y),y.normalize(),this.annotation.cc(y),this.aa.la.qb(this.annotation),this.Bn(w))};aa.prototype.finish=function(){this.annotation&&(this.pK(this.annotation)?this.aa.ta().Dc(this.annotation):(this.Yl()&&(this.OA=this.annotation),this.aa.la.Sd(this.annotation),this.trigger(aa.Events.ANNOTATION_ADDED,
|
|
[this.annotation])),this.annotation=null)};aa.prototype.Yl=function(){return!1};aa.prototype.pK=function(e){var w=e.Ba(),n=e.wa();e=2*(e.getRectPadding()+1);return w<=e&&n<=e};aa.Events={ANNOTATION_ADDED:"annotationAdded",ANNOTATION_CREATED:"annotationCreated"};return aa}(ia.a);ba.a=e},function(ia,ba){var e;ia=e||(e={});ia.START="start";ia.CENTER="center";ia.END="end";ba.a=e},function(ia,ba,e){function ea(e,y,n){if(!(n instanceof Annotations.Xk)){n=Math.abs(e.y2-e.y1);var h=3*ha.a.handleHeight/y;
|
|
Math.abs(e.x2-e.x1)<3*ha.a.handleWidth/y&&(e.x1-=aa.selectionOutlineExtraPadding/y,e.x2+=aa.selectionOutlineExtraPadding/y);n<h&&(e.y2+=aa.selectionOutlineExtraPadding/y,e.y1-=aa.selectionOutlineExtraPadding/y)}return e}var x=e(8),ha=e(27),ca=e(48),da=e(4),aa=function(){function e(e,n,h,f){this.qa=e;this.H2=n;this.DP=h;this.aa=f;this.Gb=[]}e.prototype.testSelection=function(e,n,h,f,r){return ca.a.pl(e,n,h,r)};e.prototype.Hy=function(e,n,h,f){for(var r=this.Gb.length-1;0<=r;r--){var z=this.Gb[r],w=
|
|
this.getDimensions(e);w=ea(w,n,e);if(z.testSelection(e,w,n,h,f))return z}};e.prototype.saa=function(){return this.Gb};e.prototype.getDimensions=function(e){return new da.d(e.X,e.Y,e.X+e.Width,e.Y+e.Height)};e.prototype.Qc=function(){return this.H2};e.prototype.isSelected=function(){return this.DP};e.prototype.HE=function(){return this.Qc()&&this.aa.ta().wC().isEnabled&&this.qa.HJ()};e.prototype.draw=function(e,n,h,f){e.save();this.drawSelectionOutline(e,n,h,f);e.restore();f=this.getDimensions(n);
|
|
f=ea(f,h,n);for(var r=0;r<this.Gb.length;r++)this.Gb[r]&&this.Gb[r].draw(e,n,f,h)};e.prototype.drawSelectionOutline=function(w,n,h){void 0===h&&(h=1);var f=e.useDashedLine;f&&(e.selectionOutlineThickness=2);w.save();var r=this.getDimensions(n);n=ea(r,h,n);w.lineWidth=e.selectionOutlineThickness/h;this.Qc()?w.strokeStyle=e.defaultSelectionOutlineColor.toString():w.strokeStyle=e.defaultNoPermissionSelectionOutlineColor.toString();w.beginPath();w.moveTo(n.x1,n.y1);w.lineTo(n.x2,n.y1);w.lineTo(n.x2,n.y2);
|
|
w.lineTo(n.x1,n.y2);w.closePath();w.stroke();h=e.selectionOutlineDashSize/h;h=[h,h];f&&(w.setLineDash(h),w.strokeStyle="rgb(255, 255, 255)",w.beginPath(),w.moveTo(n.x1,n.y1),w.lineTo(n.x2,n.y1),w.lineTo(n.x2,n.y2),w.lineTo(n.x1,n.y2),w.closePath(),w.stroke());w.restore()};e.selectionOutlineThickness=1;e.selectionAccuracyPadding=2;e.defaultSelectionOutlineColor=new x.a(49,131,200);e.defaultNoPermissionSelectionOutlineColor=new x.a(255,0,0);e.selectionOutlineExtraPadding=10;e.selectionOutlineDashSize=
|
|
4;e.useDashedLine=!1;e.showPaddingWhenAnnotationIsSmall=!0;e.Sq=50;return e}();ba.a=aa},function(ia,ba,e){var ea=e(21),x=e(4),ha=document.createElement("canvas");ba.a=function(){function e(){}e.pl=function(e,aa,w,y){void 0===y&&(y=1);var n=e.Sa(),h=n.x1,f=n.x2,r=n.y1;n=n.y2;var z=e.NoZoom?y:1;y=e.Width/z;z=e.Height/z;e.NoZoom&&(f=h+y,n=r+z);return aa>=h&&aa<=f&&w>=r&&w<=n};e.xp=function(da,aa,w,y,n){if(da.Gj)return!0;var h=ha.getContext("2d");ha.width=4;ha.height=4;h.setTransform(1,0,0,1,-(aa-da.Kc()),
|
|
-(w-da.Lc()));aa=da.StrokeThickness;da.Fj=aa+e.canvasVisibilityPadding/(n/2);da.NoZoom&&h.scale(1/n,1/n);h.translate(-1*da.Kc(),-1*da.Lc());da.draw(h,y);y=1<h.getImageData(0,0,1,1).data[3];h.setTransform(1,0,0,1,0,0);h.clearRect(0,0,2,2);da.Fj=aa;return!y&&da instanceof Annotations.Wk&&da.Gj?!0:y};e.SM=function(e,aa,w){e=e.Quads;for(var y=0;y<e.length;y++){var n=e[y],h=Math.min(n.y1,n.y2,n.y3,n.y4),f=Math.max(n.y1,n.y2,n.y3,n.y4),r=Math.max(n.x1,n.x2,n.x3,n.x4);if(aa>=Math.min(n.x1,n.x2,n.x3,n.x4)&&
|
|
aa<=r&&w>=h&&w<=f)return!0}return!1};e.FU=function(da,aa,w,y,n){if(!(da instanceof Annotations.pi))return!1;var h=da.Ra(),f=h.length;h[0].x===h[f-1].x&&h[0].y===h[f-1].y&&(h=h.slice(0,h.length-1),f=h.length);if(3>f)return e.xp(da,aa,w,y,n);n=ea.a.Math;da=n.fda;y=n.lba;n=n.ffa;aa=new x.b(aa,w);w=new x.b(Number.MAX_VALUE,w);for(var r=0,z=0;z<f;z++){var fa=h[z],ka=h[(z+1)%f];if(da(fa,ka,aa,w)){if("colinear"===y(fa,aa,ka))return n(fa,aa,ka);r++}}return 1===r%2};e.canvasVisibilityPadding=5;return e}()},
|
|
function(ia,ba,e){function ea(f){return.75*f}function x(f){switch(f){case ka.CLOSED_ARROW:case ka.R_CLOSED_ARROW:case ka.BUTT:case ka.SQUARE:case ka.DIAMOND:case ka.CIRCLE:return!0;default:return!1}}function ha(f,h,e){if(h!==ka.NONE){var n=e.eD,r=e.line;h=da(h,{start:r[0],end:r[1],stroke:e.stroke},e.RU);f.save();n?h.start(f):h.end(f);f.restore()}}function ca(f,h,e){f.save();var n=e.line[0],r=e.line[1];f.translate(n.x,n.y);f.rotate(Math.atan2(r.y-n.y,r.x-n.x));f.translate(0,0);ha(f,h,e);f.restore()}
|
|
function da(e,w,fa){void 0===fa&&(fa=!1);var ja=w.start,aa=w.end,da=w.stroke;switch(e){case ka.NONE:return null;case ka.R_OPEN_ARROW:return{start:function(f){f.save();f.scale(-1,1);n(f,fa);f.restore()},end:function(f){f.save();f.translate(y(ja,aa),0);n(f,fa);f.restore()}};case ka.CLOSED_ARROW:return{start:function(f){n(f,fa);f.closePath()},end:function(f){f.save();f.translate(y(ja,aa),0);f.scale(-1,1);n(f,fa);f.closePath();f.restore()}};case ka.R_CLOSED_ARROW:return{start:function(f){f.save();f.scale(-1,
|
|
1);n(f,fa);f.closePath();f.restore()},end:function(f){f.save();f.translate(y(ja,aa),0);n(f,fa);f.closePath();f.restore()}};case ka.BUTT:return{start:function(f){h(f,da)},end:function(f){f.save();f.translate(y(ja,aa),0);h(f,da);f.restore()}};case ka.SQUARE:return{start:function(h){f(h,da)},end:function(h){h.save();h.translate(y(ja,aa),0);f(h,da);h.restore()}};case ka.DIAMOND:return{start:function(h){h.save();h.rotate(Math.PI/4);f(h,da);h.restore()},end:function(h){h.save();h.translate(y(ja,aa),0);
|
|
h.rotate(Math.PI/4);f(h,da);h.restore()}};case ka.CIRCLE:return{start:function(f){r(f,da)},end:function(f){f.save();f.translate(y(ja,aa),0);r(f,da);f.restore()}};case ka.SLASH:return{start:function(f){z(f,da)},end:function(f){f.save();f.translate(y(ja,aa),0);z(f,da);f.restore()}};default:return{start:function(f){n(f,fa)},end:function(f){f.save();f.translate(y(ja,aa),0);f.scale(-1,1);n(f,fa);f.restore()}}}}function aa(f,h){h=null===h||void 0===h?void 0:h.includes(fa.m.DISTANCE_MEASUREMENT);var e=f===
|
|
ka.R_CLOSED_ARROW||f===ka.R_OPEN_ARROW;return f===ka.CLOSED_ARROW||f===ka.OPEN_ARROW||h&&e}function w(f){switch(f){case ka.OPEN_ARROW:return ka.R_OPEN_ARROW;case ka.CLOSED_ARROW:return ka.R_CLOSED_ARROW;default:return f}}function y(f,h){return h?Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2)):0}function n(f,h){var e=5*f.lineWidth+3,n=.2*Math.PI;f.moveTo(Math.cos(n)*e,-Math.sin(n)*e);var r=0;h&&(r=.75*f.lineWidth);f.lineTo(r,0);f.lineTo(Math.cos(n)*e,Math.sin(n)*e)}function h(f,h){h*=6;f.save();
|
|
f.translate(0,h/-2);f.rotate(Math.PI/2);f.moveTo(0,0);f.lineTo(h,0);f.restore()}function f(f,h){h=6*h/2;f.moveTo(-h,-h);f.lineTo(h,-h);f.lineTo(h,h);f.lineTo(-h,h);f.closePath()}function r(f,h){h*=3;f.moveTo(h,0);f.ellipse(0,0,h,h,0,0,2*Math.PI)}function z(f,h){h*=9;f.save();f.rotate(-60*Math.PI/180);f.moveTo(0,0);f.lineTo(h,0);f.restore();f.save();f.rotate(120*Math.PI/180);f.moveTo(0,0);f.lineTo(h,0);f.restore()}e.d(ba,"a",function(){return ka});e.d(ba,"b",function(){return ea});e.d(ba,"f",function(){return x});
|
|
e.d(ba,"c",function(){return ha});e.d(ba,"d",function(){return ca});e.d(ba,"g",function(){return aa});e.d(ba,"e",function(){return w});var fa=e(3),ka;(function(f){f.NONE="None";f.OPEN_ARROW="OpenArrow";f.R_OPEN_ARROW="ROpenArrow";f.CLOSED_ARROW="ClosedArrow";f.R_CLOSED_ARROW="RClosedArrow";f.BUTT="Butt";f.SQUARE="Square";f.DIAMOND="Diamond";f.CIRCLE="Circle";f.SLASH="Slash"})(ka||(ka={}))},function(ia,ba){ia=function(){function e(e,x){void 0===e&&(e=0);void 0===x&&(x=0);this.x=e;this.y=x}e.Fc=function(e){return e.x===
|
|
(void 0).x&&e.y===(void 0).y};e.Apa=function(e,x){return e!==x};e.divide=function(ea,x){var ha=new e;x&&(ha.x=ea.x/x,ha.y=ea.y/x);return ha};e.multiply=function(ea,x){var ha=new e;ha.init(ea.x*x,ea.y*x);return ha};e.ej=function(ea,x){var ha=new e;ha.init(ea.x-x.x,ea.y-x.y);return ha};e.Ft=function(ea,x){var ha=new e;ha.init(ea.x+x.x,ea.y+x.y);return ha};e.ie=function(e,x){var ha=e.x-x.x;e=e.y-x.y;return Math.sqrt(ha*ha+e*e)};e.prototype.init=function(e,x){this.x=e;this.y=x};e.prototype.QC=function(e){this.x=
|
|
e.x;this.y=e.y};e.prototype.add=function(e){this.x+=e.x;this.y+=e.y};e.prototype.sub=function(e){this.x-=e.x;this.y-=e.y};e.prototype.normalize=function(){var e=Math.sqrt(this.x*this.x+this.y*this.y);return e?(this.x/=e,this.y/=e,!0):!1};e.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};e.prototype.Kb=function(e){return this.x*e.x+this.y*e.y};return e}();ba.a=ia},function(ia,ba,e){function ea(e){Object(aa.b)(e,y)}function x(e){Object(aa.a)(e,y)}e.d(ba,"a",function(){return x});
|
|
e.d(ba,"b",function(){return ea});var ha=e(1),ca=e(2),da=e(0);e.n(da);var aa=e(121),w=/^([^\.]*)(?:\.(.+)|)/,y=function(){function e(){}e.prototype.addEventListener=function(h,f,e){var n=this;if(void 0===h||void 0===f||"function"!==typeof f)return this;var r=this.fG(h),w=r[0];r=r[1];this._events||(this._events={});this._events[w]||(this._events[w]=[]);var ja=f;e&&!0===e.once&&(ja=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.removeEventListener(h,ja);f.apply(n,e)});this._events[w].push({RV:r,
|
|
handler:ja});return this};e.prototype.on=function(h,f){Object(ca.d)("8.0","on",["addEventListener"]);return this.addEventListener(h,f)};e.prototype.removeEventListener=function(h,f,e){void 0===e&&(e={df:!1});if(!this._events)return this;void 0===h&&(this._events={});var n=this.fG(h),r=n[0],w=n[1];if(!this._events[r])return this;if(h&&(null===e||void 0===e||!e.df)&&"undefined"===typeof f)return Object(ca.d)("9.0","global removeEventListener",["removeEventListener with defined parameters. See documentation here: https://www.pdftron.com/api/web/Core.EventHandler.html#removeEventListener"],
|
|
!0),this;this._events[r]=f?this._events[r].filter(function(h){return h.handler!==f}):w?this._events[r].filter(function(f){return f.RV!==w}):[];return this};e.prototype.off=function(h,f){Object(ca.d)("8.0","off",["removeEventListener"]);return this.removeEventListener(h,f,{df:!0})};e.prototype.trigger=function(h,f){for(var e=this,n=[],w=2;w<arguments.length;w++)n[w-2]=arguments[w];var aa=!Object(da.isUndefined)(f);f=Object(ha.e)([f],n);if(!this._events)return this;n=this.fG(h);w=n[0];var ja=n[1];if(!this._events[w])return this;
|
|
1===f.length&&Array.isArray(f[0])&&(f=f[0]);(ja?this._events[w].filter(function(f){return f.RV===ja}).map(function(f){return f.handler}):this._events[w].map(function(f){return f.handler})).forEach(function(h){try{aa?h.call.apply(h,Object(ha.e)([e],f)):h.call(e)}catch(ma){Object(ca.g)(ma)}});return this};e.prototype.hW=function(h,f){Object(ca.d)("8.0","one",["addEventListener with {'once': true}"]);return this.addEventListener(h,f,{once:!0})};e.prototype.fG=function(h){h=w.exec(h)||[];return[h[1],
|
|
h[2]||""]};return e}()},function(ia,ba,e){e.d(ba,"a",function(){return ea});var ea={NONE:"none",Pm:"auto",Lu:"fixedWidth",Ku:"fixedHeight"}},function(ia,ba,e){function ea(e,aa){aa.forEach(function(w){x(e,w)})}function x(e,aa){var w=Object.getOwnPropertyNames(aa).reduce(function(e,h){e[h]=Object.getOwnPropertyDescriptor(aa,h);return e},{});Object(ha.a)(e,w);var y=Object.getPrototypeOf(aa);w=Object.getOwnPropertyNames(y).reduce(function(e,h){"constructor"!==h&&(e[h]=Object.getOwnPropertyDescriptor(y,
|
|
h));return e},{});Object(ha.a)(e,w);y.constructor[ca]&&y.constructor[ca].forEach(function(n){e[n]=aa[n]})}e.d(ba,"a",function(){return ca});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea});var ha=e(35);rb();var ca=Symbol(Math.random())},function(ia,ba,e){function ea(f){var h=f.captionStyle;return{isEnabled:f.isEnabled||!1,captionRect:f.captionRect||new sa.d,captionStyle:{fontFamily:(null===h||void 0===h?void 0:h.fontFamily)||"sans-serif",color:(null===h||void 0===h?void 0:h.color)||
|
|
"",staticSize:(null===h||void 0===h?void 0:h.staticSize)||"0pt",maximumSize:(null===h||void 0===h?void 0:h.maximumSize)||"0pt"}}}function x(f){switch(f){case "ft-in":return"ft";default:return f}}function ha(f,h){return 0===h?f:ha(h,f%h)}function ca(){var f=this.IT;if("LineDimension"===f||"PolyLineDimension"===f||"ArcDimension"===f)var h="distance";if("PolygonDimension"===f||"EllipseDimension"===f)h="area";return{property:h,hd:this.Measure}}function da(f,h){for(var e=f.length-3;0<e;e-=3)f=f.slice(0,
|
|
e)+h+f.slice(e);return f}function aa(f){f.Ma&&f.Ma();f.adjustRect&&f.adjustRect()}function w(f,h){var e=0;f=f.match(Ca);for(var n=f.length,r=0;r<n;r++){var z=f[r].match(ya),w=z[1];z=z[2];w.includes(",")&&(w=w.replace(",",""));if(w.includes("/")){if(w.includes(" ")){var fa=w.split(" ");w=fa[0];fa=fa[1].split("/");fa=Number(fa[0])/Number(fa[1]);e+=Ea[z]*Number(w)}else fa=w.split("/"),fa=Number(fa[0])/Number(fa[1]);e+=Ea[z]*fa}else e+=Ea[z]*Number(w)}return e/Ea[h]}function y(f,h,e,n,r){var z=0===f[h].length?
|
|
za[h]:f[h];f[h]=z;var w=n[n.length-1];f[h]=[];n.forEach(function(fa){var ja=JSON.parse(JSON.stringify(z[0]));ja.unit=fa;if(fa===w)ja.factor=e[r[0][1]][fa];else{var aa=n.indexOf(fa)+1;ja.factor=e[n[aa]][fa]}f[h].push(ja)});f[h].reverse()}function n(f){if(f.every(function(f){return Ga[ma.b.nr].includes(f)}))return ma.b.nr;if(f.every(function(f){return Ga[ma.b.Uo].includes(f)}))return ma.b.Uo;if(f.every(function(f){return Ga[ma.b.sr].includes(f)}))return ma.b.sr;Object(ja.j)("Cannot find measurement system from units supplied.")}
|
|
function h(f,h){var e=[];h===ma.b.nr?e=xa:h===ma.b.Uo?e=Ka:h===ma.b.sr&&(e=ta);var n=[];f.forEach(function(f){var h=e.indexOf(f);n[h]=f});return n=n.filter(function(f){return"string"===typeof f&&""!==f})}function f(f){if(f===ma.b.nr)return Ia;if(f===ma.b.Uo)return Ba;if(f===ma.b.sr)return Ja}function r(f,h,e){var n=f[1][0]+" "+f[1][1];f=w(f[0][0]+" "+f[0][1],h);n=w(n,h);e=String(e).split(".")[1].length+1;f=Number(f.toFixed(e));n=Number(n.toFixed(e));f=[f.toFixed(e),h];h=[n.toFixed(e),h];return[f,
|
|
h]}function z(f){var h=Object.keys(Ea);return f.every(function(f){return h.includes(f)})}function fa(f){var h=Object.keys(Ea);return f.filter(function(f){return!h.includes(f)})}e.d(ba,"c",function(){return oa});e.d(ba,"a",function(){return ea});var ka=e(1),ja=e(2),pa=e(53),ma=e(33);ia=e(331);var la=e.n(ia),na=e(12);ia=e(332);var ra=e.n(ia),sa=e(4),Da=e(19),qa=e(171),va=e(55),oa=/(\d+(?:.\d+)?\s\w+)\W+(\d+(?:.\d+)?\s\w+(\W\w+)?)/,ua={"1/2":"\u00bd","1/4":"\u00bc","1/8":"\u215b","3/4":"\u00be","3/8":"\u215c",
|
|
"5/8":"\u215d","7/8":"\u215e","1/16":"\u00b9\u2044\u2081\u2086","3/16":"\u00b3\u2044\u2081\u2086","5/16":"\u2075\u2044\u2081\u2086","7/16":"\u2077\u2044\u2081\u2086","9/16":"\u2079\u2044\u2081\u2086","11/16":"\u00b9\u00b9\u2044\u2081\u2086","13/16":"\u00b9\u00b3\u2044\u2081\u2086","15/16":"\u00b9\u2075\u2044\u2081\u2086","1/32":"\u00b9\u2044\u2083\u2082","3/32":"\u00b3\u2044\u2083\u2082","5/32":"\u2075\u2044\u2083\u2082","7/32":"\u2077\u2044\u2083\u2082","9/32":"\u2079\u2044\u2083\u2082","11/32":"\u00b9\u00b9\u2044\u2083\u2082",
|
|
"13/32":"\u00b9\u00b3\u2044\u2083\u2082","15/32":"\u00b9\u2075\u2044\u2083\u2082","17/32":"\u00b9\u2077\u2044\u2083\u2082","19/32":"\u00b9\u2079\u2044\u2083\u2082","21/32":"\u00b2\u00b9\u2044\u2083\u2082","23/32":"\u00b2\u00b3\u2044\u2083\u2082","25/32":"\u00b2\u2075\u2044\u2083\u2082","27/32":"\u00b2\u2077\u2044\u2083\u2082","29/32":"\u00b2\u2079\u2044\u2083\u2082","31/32":"\u00b3\u00b9\u2044\u2083\u2082","1/64":"\u00b9\u2044\u2086\u2084","3/64":"\u00b3\u2044\u2086\u2084","5/64":"\u2075\u2044\u2086\u2084",
|
|
"7/64":"\u2077\u2044\u2086\u2084","9/64":"\u2079\u2044\u2086\u2084","11/64":"\u00b9\u00b9\u2044\u2086\u2084","13/64":"\u00b9\u00b3\u2044\u2086\u2084","15/64":"\u00b9\u2075\u2044\u2086\u2084","17/64":"\u00b9\u2077\u2044\u2086\u2084","19/64":"\u00b9\u2079\u2044\u2086\u2084","21/64":"\u00b2\u00b9\u2044\u2086\u2084","23/64":"\u00b2\u00b3\u2044\u2086\u2084","25/64":"\u00b2\u2075\u2044\u2086\u2084","27/64":"\u00b2\u2077\u2044\u2086\u2084","29/64":"\u00b2\u2079\u2044\u2086\u2084","31/64":"\u00b3\u00b9\u2044\u2086\u2084",
|
|
"33/64":"\u00b3\u00b3\u2044\u2086\u2084","35/64":"\u00b3\u2075\u2044\u2086\u2084","37/64":"\u00b3\u2077\u2044\u2086\u2084","39/64":"\u00b3\u2079\u2044\u2086\u2084","41/64":"\u2074\u00b9\u2044\u2086\u2084","43/64":"\u2074\u00b3\u2044\u2086\u2084","45/64":"\u2074\u2075\u2044\u2086\u2084","47/64":"\u2074\u2077\u2044\u2086\u2084","49/64":"\u2074\u2079\u2044\u2086\u2084","51/64":"\u2075\u00b9\u2044\u2086\u2084","53/64":"\u2075\u00b3\u2044\u2086\u2084","55/64":"\u2075\u2075\u2044\u2086\u2084","57/64":"\u2075\u2077\u2044\u2086\u2084",
|
|
"59/64":"\u2075\u2079\u2044\u2086\u2084","61/64":"\u2076\u00b9\u2044\u2086\u2084","63/64":"\u2076\u00b3\u2044\u2086\u2084"},Ca=/(\d+|\s)(?:.\d+)?(?:\.\d+)?(?:\s\d+)?(?:\/\d+)?\s\w+/gm,ya=/(\d+(?:.\d+)?(?:\.\d+)?(?:\/\d+)?)\s(\w+)/,Ea={mm:.1,cm:1,m:100,km:1E5,mi:160394,yd:91.44,ft:30.48,"in":2.54,"ft'":30.48,'in"':2.54,pt:.0352778,"ft-in":30.48},Aa=["in","ft-in"],Fa={"in":['in"'],"ft-in":['in"',"ft'"]},Ga={Metric:["km","m","cm","mm"],Imperial:"mi yd ft in ft' in\" ft-in".split(" "),Typographic:["pt"]},
|
|
Ba={mi:{mi:1,yd:1760,ft:5280,"in":63360,"ft'":5280,'in"':63360,"ft-in":5280},yd:{mi:1/1760,yd:1,ft:3,"in":36,"ft'":3,'in"':36,"ft-in":3},ft:{mi:1/5280,yd:1/3,ft:1,"in":12,"ft'":1,'in"':12,"ft-in":1},"in":{mi:1/63360,yd:1/36,ft:1/12,"in":1,"ft'":1/12,'in"':1,"ft-in":1/12},"ft'":{mi:1/5280,yd:1/3,ft:1,"in":12,"ft'":1,'in"':12,"ft-in":1},'in"':{mi:1/63360,yd:1/36,ft:1/12,"in":1,"ft'":1/12,'in"':1,"ft-in":1/12},"ft-in":{mi:1/5280,yd:1/3,ft:1,"in":12,"ft'":1,'in"':12,"ft-in":1}},Ia={km:{km:1,m:1E3,cm:1E5,
|
|
mm:1E6},m:{km:.001,m:1,cm:100,mm:1E3},cm:{km:1E-5,m:.01,cm:1,mm:10},mm:{km:1E-6,m:.001,cm:.1,mm:1}},Ja={pt:{pt:1}},za={scale:"1 in = 1 in",axis:[{factor:.0138889,unit:'in"',decimalSymbol:".",thousandsSymbol:",",display:"D",precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}],distance:[{factor:1,unit:'in"',decimalSymbol:".",thousandsSymbol:",",display:"D",precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}],area:[{factor:1,unit:"sq in",decimalSymbol:".",thousandsSymbol:",",display:"D",
|
|
precision:100,unitPrefix:"",unitSuffix:"",unitPosition:"S"}]},xa=["mm","cm","m","km"],Ka="in in\" ft ft' ft-in yd mi".split(" "),ta=["pt"],Ha=["cm","mm"],Na=["ft","in"],Ra=["pt"];rb();var Ma=Symbol("trn-sym-mm-obj");e=function(){function f(f){this.measurementCaptionOptions=ea({isEnabled:!0});this[Ma]=f}f.prototype.eR=function(){var f=0<parseFloat(this.measurementCaptionOptions.captionStyle.staticSize)?this.measurementCaptionOptions.captionStyle.staticSize:null,h=0<parseFloat(this.measurementCaptionOptions.captionStyle.maximumSize)?
|
|
this.measurementCaptionOptions.captionStyle.maximumSize:null,e=(this.Width+this.Height)/30+"pt";return""+(null!==f&&void 0!==f?f:parseFloat(e)>parseFloat(h)?h:e)};f.prototype.BY=function(f){var h=this.eR();this.measurementCaptionOptions.captionStyle.color||(this.measurementCaptionOptions.captionStyle.color=this.Color.toString());f.font=h+" "+this.measurementCaptionOptions.captionStyle.fontFamily;f.fillStyle=this.measurementCaptionOptions.captionStyle.color;f.textBaseline="top";f.textAlign="center"};
|
|
f.prototype.jT=function(){var f=na.a.measureText(this.getContents(),this.eR(),this.measurementCaptionOptions.captionStyle.fontFamily,"normal"),h=this.laa(),e=f.height;f=f.width;var n=h.top;h=h.left;return new sa.d(h-f/2,n-e/2,h+f/2,n+e/2)};f.prototype.xE=function(){this.measurementCaptionOptions.captionRect=this.jT()};f.prototype.laa=function(){var f=[];this instanceof qa.a&&"EllipseDimension"===this.IT?f.push(this.dk().X,this.dk().Y):(f=this.Ra().map(function(f){return[f.X,f.Y]}),f=ra()([f],1));
|
|
return{left:f[0],top:f[1]}};f.prototype.hS=function(f){var h=this.getContents();if(h){this.measurementCaptionOptions.captionRect||this.xE();var e=this.measurementCaptionOptions.captionRect.y1;h=h.split("\n");for(var n=this.measurementCaptionOptions.captionRect.wa()/h.length,r=0;r<h.length;r++)f.fillText(h[r],this.measurementCaptionOptions.captionRect.x1+this.measurementCaptionOptions.captionRect.Ba()/2,e),e+=n}};f.prototype.Mh=function(f){var h=this,e=this;if("LineDimension"!==e.IT&&(e.Measure||"ArcDimension"===
|
|
e["_xsi:type"])){if(window.utils.isPdfjs)return Object(ja.j)("Custom appearances are unavailable in PDFJS Express."),_super.prototype.Mh.call(this,f);var n=document.createElement("canvas"),r=e.Width,z=e.Height,w=Math.max(2,Object(Da.k)());n.width=r*w;n.height=z*w;n.style.width=r+"px";n.style.height=z+"px";n.className="for-worker";r=n.getContext("2d");r.scale(w,w);r.translate(-e.X,-e.Y);e.draw(r,f);return new Promise(function(f,r){n.toBlob(function(n){return Object(ka.b)(h,void 0,void 0,function(){var h,
|
|
z;return Object(ka.d)(this,function(w){switch(w.label){case 0:return n?[4,Object(va.c)(n,{useDownloader:!1,extension:"png",loadAsPDF:!0})]:[2,f(void 0)];case 1:h=w.ea();try{return z=e.un(h,{pageNumber:1}),[2,f(z)]}catch(Gb){return[2,r(Gb)]}}})})})})}};f.prototype.Kl=function(f,h){if(!Array.isArray(h)||!h.length)return Object(ja.j)("Number format array for measurement should have at least one number format dictionary in it"),"";var e=h.slice().sort(function(f,h){return Ea[f.unit]>Ea[h.unit]?1:Ea[f.unit]<
|
|
Ea[h.unit]?-1:0});h=Array(e.length);var n=h.length;h[n-1]=f;for(f=n-2;0<=f;f--){n=h[f+1];var r=n%1;h[f+1]=Math.trunc(n);h[f]=r*e[f].factor}var z=!1;f=la()(e.map(function(f){return f.unit}),['in"',"ft'"])?"-":" ";return h.map(function(f,h){var n=e[h];var r=n.unit;z&&(f+=1,z=!1);"ft'"===r?r="'":'in"'===r&&(r='"');var w=["'",'"'].includes(r)?"":" ";if(0===h){var fa=f;h=r;f=!1;var aa=n.display;if("D"===aa){aa=n.precision;0!==aa%10&&Object(ja.j)("precision for decimal display must be a multiple of 10");
|
|
h=fa.toFixed((aa/10).toString().length).split(".");var y=h[0];var ka=n.decimalSymbol+h[1]}else if("F"===aa){y=Math.floor(fa);aa=n.precision;fa-=y;ka=aa;if(0>fa||1<=fa)Object(ja.j)("The measurement parameter needs to be a value between 0 and 1"),ka="";else if(fa=Math.round(fa*ka),fa===ka)ka="1";else{var na=ha(fa,ka);ka=[8,16,32,64].includes(ka)?ua[fa/na+"/"+ka/na]:fa/na+"/"+ka/na;ka=fa?ka:""}"1"===ka.trim()&&(y+=1,ka="",'"'===h&&12===y&&(y=0,f=!0));y=y?[8,16,32,64].includes(aa)?""+y:y+" ":""}else"R"===
|
|
aa?(y=Math.round(fa).toString(),ka=""):"T"===aa&&(y=Math.trunc(fa).toString(),ka="");n=(da(y,n.thousandsSymbol)+ka).trim();z=f;return n?[n,r].join(w):""}return f?[da(f.toString(),n.thousandsSymbol),r].join(w):""}).reverse().filter(function(f){return!!f}).join(f)};f.prototype.KY=function(f){var h=this;"PolygonDimension"!==this.IT&&"EllipseDimension"!==this.IT||Object.keys(f).forEach(function(e){"captionStyle"===e&&"object"===typeof f[e]?Object.keys(f[e]).forEach(function(n){n in h.measurementCaptionOptions[e]&&
|
|
(h.measurementCaptionOptions[e][n]=f[e][n])}):e in h.measurementCaptionOptions&&(h.measurementCaptionOptions[e]=f[e])})};f.prototype.zT=function(){if("PolygonDimension"===this.IT||"EllipseDimension"===this.IT)return this.measurementCaptionOptions};f[pa.a]=[Ma];return f}();ba.b=e;Object.defineProperties(e.prototype,{Precision:{get:function(){var f=ca.call(this[Ma]||this),h=f.property;if((f=f.hd)&&h)return h=f[h],(h=h[h.length-1].precision)?h=1/h:Object(ja.j)("Unable to get precision from: ",h),h},
|
|
set:function(f){var h=this[Ma]||this,e=ca.call(h),n=e.property;if((e=e.hd)&&n)if("number"!==typeof f)Object(ja.j)("The argument for setting precision must be a number");else{if(e[n].forEach(function(h){h.precision&&(h.precision=1/f)}),aa(h),h.RE){n=this.Scale[1][1];e=[.125,.0625,.03125,.015625].includes(f);var r=void 0;r=Aa.includes(n)&&e?{Precision:f,DisplayFormat:"Fraction"}:{DisplayFormat:"Decimal",Precision:e?.1:f};h.RE(r)}}else Object(ja.j)("Unable to set precision to an annotation or a tool which has incorrect IT or no measure dictionary")},
|
|
enumerable:!0},Scale:{get:function(){var f=ca.call(this[Ma]||this),h=f.hd,e=f.property;if(h&&e){f=h.scale.match(oa);if(f)if(e=f[1],f=x(f[2]),e&&f){var n=[e.split(" "),f.split(" ")];n[0][0]=Number(n[0][0]);n[1][0]=Number(n[1][0])}else Object(ja.j)("Unable to convert scale from: "+h.scale+" to format [[value, unit], [value, unit]]");else n=h[e],n=n[n.length-1].unit,h=Ea.pt/Ea[n]/h.axis[0].factor,f=[1,n],e=[h,n],n=[e,f];return n}},set:function(h){var e,n=h[0],z=h[1];if(Array.isArray(n)&&Array.isArray(z)){var w=
|
|
this[Ma]||this,fa=ca.call(w),ka=fa.property;if((fa=fa.hd)&&ka){var na=n[0],da=n[1],la=z[0];z="area"===ka?x(z[1]):z[1];fa.scale=n.join(" ")+" = "+h[1].join(" ");fa.axis[0].factor=la/na*(Ea.pt/Ea[da]);w.RE&&(n=Aa.includes(z)?{Scale:h,DisplayFormat:[.125,.0625,.03125,.015625].includes(this.j1)?"Fraction":"Decimal"}:{Scale:h,Precision:.1,DisplayFormat:"Decimal"},w.RE(n));if(Aa.includes(z)&&"area"!==ka){var pa=f(ma.b.Uo),ra=Fa[z];h=r(h,ra[0],1/fa[ka][0].precision);n=h[0];z=h[1];na=n[0];la=z[0];da=n[1];
|
|
fa.axis[0].factor=la/na*(Ea.pt/Ea[da]);y(fa,ka,pa,ra,h);null===(e=w.Td)||void 0===e?void 0:e.call(w)}else h=fa[ka],fa[ka]=[h[h.length-1]],fa[ka][0].unit="area"===ka?"sq "+x(z):x(z),fa[ka][0].factor=1,aa(w)}else Object(ja.j)("Unable to set scale to an annotation or a tool which has incorrect IT or no measure dictionary")}else Object(ja.j)("Both arguments for setting scale must be arrays")},enumerable:!0},System:{get:function(){var f=ca.call(this[Ma]||this),h=[];f.hd[f.property].forEach(function(f){h.push(f.unit)});
|
|
return n(h)},set:function(f){var h=this[Ma]||this,e=h.getContents();f===ma.b.Uo?(f=w(e,"in"),h.DisplayUnits=Na,h.setContents(f+" in")):f===ma.b.nr?(f=w(e,"cm"),h.DisplayUnits=Ha,h.setContents(f+" cm")):f===ma.b.sr&&(f=w(e,"pt"),h.DisplayUnits=Ra,h.setContents(f+" pt"));h.Td()}},DisplayFormat:{set:function(f){var h=this[Ma]||this,e=ca.call(h),n=e.property;e=e.hd;switch(f){case ma.a.oF:var r="D";break;case ma.a.uF:r="F";break;case ma.a.YN:r="R";break;case ma.a.hO:r="T";break;default:r="D"}e[n].forEach(function(f){f.display=
|
|
r});h.Td()}},DisplayUnits:{set:function(e){var w;if(z(e)){var aa=this[Ma]||this,ka=ca.call(aa),na=ka.property;ka=ka.hd;var da=n(e),la=f(da);e=h(e,da);aa.Scale=r(aa.Scale,e[0],aa.Precision);y(ka,na,la,e,aa.Scale);null===(w=aa.Td)||void 0===w?void 0:w.call(aa)}else Object(ja.j)("Unsupported Units",fa(e).join(", "))},get:function(){var f=ca.call(this[Ma]||this),h=[];f.hd[f.property].forEach(function(f){h.push(f.unit)});return h}}})},function(ia,ba,e){function ea(f,h){return Object(na.b)(void 0,void 0,
|
|
Promise,function(){var e,n;return Object(na.d)(this,function(r){switch(r.label){case 0:e=f.type;switch(e){case za.OFFICE:return[3,1];case za.XOD:return[3,3];case za.WEBVIEWER_SERVER:return[3,4];case za.PDF:return[3,5]}return[3,6];case 1:return n=la,[4,f.getFileData({downloadType:"pdf"})];case 2:return[2,n.apply(void 0,[r.ea(),Object(na.a)(Object(na.a)({},h),{extension:"pdf"})])];case 3:return Object(sa.j)("Currently there isn`t a way to load XOD document as a PDF"),[2,f];case 4:return Object(sa.j)('Use "forceClientSideInit" option instead of "loadAsPDF" for WebViewer Server'),
|
|
[2,f];case 5:return[2,f];case 6:return[2,f]}})})}function x(f,h){var e=f.password;if(Object(ra.isString)(e)){var n=!1;e=function(e){n?h("A wrong password is given to decrypt the document. Check if the value of the password option is correct."):(e(f.password),n=!0)}}else Object(ra.isUndefined)(e)&&(e=function(){h("Document requires a password. If you wish to process this type of document please use the password option.")});return e}function ha(f){return Object(na.b)(void 0,void 0,void 0,function(){var h,
|
|
e,n;return Object(na.d)(this,function(r){switch(r.label){case 0:return(h=f.workerTransportPromise)?[3,3]:(e=f.backendType)?[3,2]:[4,Object(Da.e)()];case 1:e=r.ea(),r.label=2;case 2:n={},h=Object(ya.h)(e,n),r.label=3;case 3:return[2,h]}})})}function ca(h,e,n){return Object(na.b)(void 0,void 0,void 0,function(){var r,z,w;return Object(na.d)(this,function(fa){switch(fa.label){case 0:if((r=e.workerTransportPromise)||h!==za.PDF&&h!==za.OFFICE)return[3,3];z={workerLoadingProgress:function(h){return f({type:Ka.WORKER,
|
|
jL:h},e.onLoadingProgress)}};return(w=e.backendType)?[3,2]:[4,Object(Da.e)()];case 1:w=fa.ea(),fa.label=2;case 2:h===za.PDF&&(r=Object(Ca.f)(w,z,e.licenseKey)),h===za.OFFICE&&(r=Object(ya.i)(w,z,e.licenseKey)),r.catch(function(f){f=Object(ra.isString)(f)?f:f.message;n(f);e.onError(f)}),fa.label=3;case 3:return[2,r]}})})}function da(h,e,n,r,w,aa){return Object(na.b)(void 0,void 0,void 0,function(){var y,da,la,x,ca,ha,ma,sa,qa,ea,Da,ba,ua,ya,Ca,Vb,ia,xa,Ba,Aa,ta,Fa;return Object(na.d)(this,function(Ia){switch(Ia.label){case 0:Object(Ea.t)(h)&&
|
|
(h="http://"+h);y=w.customHeaders||{};da=Object(ra.isUndefined)(w.useDownloader)?!0:w.useDownloader;la=w.xodOptions||{};x=null;if(e!==za.WEBVIEWER_SERVER&&e!==za.PDF&&e!==za.OFFICE&&e!==za.XOD)return[2,Object(na.a)({src:h},w.customDocParams)];if(e!==za.WEBVIEWER_SERVER)return[3,4];ca=w.webviewerServerURL||w.pdftronServer;ha={serverRoot:ca,disableWebsockets:w.disableWebsockets,singleServerMode:w.singleServerMode,cacheKey:w.cacheKey,officeOptions:w.officeOptions&&w.officeOptions.F$?w.officeOptions.F$:
|
|
null,customQueryParameters:w.webViewerServerCustomQueryParameters};return fa(h)?[4,h.saveMemoryBuffer(window.PDFNet.SDFDoc.SaveOptions.e_remove_unused)]:[3,2];case 1:ma=Ia.ea(),h=new Blob([ma]),Ia.label=2;case 2:if(pa(h)||ja(h))ha.filename=n,ha.uploadData={fileHandle:h,loadCallback:function(){},onProgress:function(h){f({type:Ka.UPLOAD,jL:h.loaded/h.total},w.onLoadingProgress)},extension:r},h=null;return[4,Object(va.c)(va.b.WebViewerServerPartRetriever,h,{serverOptions:ha})];case 3:return x=Ia.ea(),
|
|
[3,31];case 4:if(e!==za.XOD)return[3,24];sa=va.a.NO_HINT;qa=ka(h);if(!(pa(h)||ja(h)||qa))return[3,6];ea=qa?new Blob([h],{type:"application/octet-stream"}):h;return[4,Object(va.c)(va.b.LocalPartRetriever,ea,la)];case 5:return x=Ia.ea(),[3,23];case 6:return la.startOffline?[4,Object(va.c)(va.b.WebDBPartRetriever,null,la)]:[3,8];case 7:return x=Ia.ea(),[3,23];case 8:return Object(Ea.n)()?[4,Object(va.c)(va.b.WinRTPartRetriever,h,Object(na.a)({cacheHint:sa},la))]:[3,10];case 9:return x=Ia.ea(),[3,23];
|
|
case 10:return Object(ra.isString)(h)&&h.startsWith("iosrange://")?[4,Object(va.c)(va.b.IOSPartRetriever,h,Object(na.a)({cacheHint:sa},la))]:[3,12];case 11:return x=Ia.ea(),[3,23];case 12:return Object(ra.isString)(h)&&h.startsWith("content://")?[4,Object(va.c)(va.b.AndroidContentPartRetriever,h,Object(na.a)({cacheHint:sa},la))]:[3,14];case 13:return x=Ia.ea(),[3,23];case 14:return(Da=la.streaming)?[3,17]:(ba=Object(ra.isUndefined)(la.streaming))?[4,z()]:[3,16];case 15:ba=!Ia.ea(),Ia.label=16;case 16:Da=
|
|
ba,Ia.label=17;case 17:return Da?[4,Object(va.c)(va.b.StreamingPartRetriever,h,Object(na.a)({cacheHint:sa},la))]:[3,19];case 18:return x=Ia.ea(),[3,23];case 19:return la.azureWorkaround?[4,Object(va.c)(va.b.AzurePartRetriever,h,Object(na.a)({cacheHint:sa},la))]:[3,21];case 20:return x=Ia.ea(),[3,23];case 21:return[4,Object(va.c)(va.b.HttpPartRetriever,h,Object(na.a)({cacheHint:sa},la))];case 22:x=Ia.ea(),Ia.label=23;case 23:return[3,31];case 24:if(e!==za.PDF&&e!==za.OFFICE)return[3,31];if(!fa(h))return[3,
|
|
25];x=h;return[3,31];case 25:return pa(h)||ja(h)?[4,Object(va.c)(va.b.LocalPdfPartRetriever,h)]:[3,27];case 26:return x=Ia.ea(),[3,31];case 27:return ka(h)?[4,Object(va.c)(va.b.ArrayBufferPdfPartRetriever,h)]:[3,29];case 28:return x=Ia.ea(),[3,31];case 29:return[4,Object(va.c)(va.b.ExternalPdfPartRetriever,h,{useDownloader:da,withCredentials:w.withCredentials,filename:n+"."+r})];case 30:x=Ia.ea(),Ia.label=31;case 31:return Object(ra.isUndefined)(w.withCredentials)||(null===(ya=(ua=x).Eo)||void 0===
|
|
ya?void 0:ya.call(ua,w.withCredentials)),null===(Vb=(Ca=x).vE)||void 0===Vb?void 0:Vb.call(Ca,y),null===(xa=(ia=x).FY)||void 0===xa?void 0:xa.call(ia,aa),null===(Aa=(Ba=x).addEventListener)||void 0===Aa?void 0:Aa.call(Ba,oa.a.Events.DOCUMENT_LOADING_PROGRESS,function(h,e){f({type:Ka.DOCUMENT,jL:h/e},w.onLoadingProgress)}),null===(Fa=(ta=x).addEventListener)||void 0===Fa?void 0:Fa.call(ta,oa.a.Events.ERROR,function(f,h,e){aa({message:h,serverResponse:e})}),[2,x]}})})}function aa(f,h){if(h.type)return h.type;
|
|
var e,n=h.webviewerServerURL||h.pdftronServer,r=Aa.l.M_.includes(f)||Aa.l.AN.includes(f);n?e=za.WEBVIEWER_SERVER:r&&!h.loadAsPDF?e=za.IMAGE:Aa.l.zN.includes(f)||Aa.l.mF.includes(f)?e=za.PDF:Aa.l.yN.includes(f)?e=za.OFFICE:"xod"===f&&(e=za.XOD);return e}function w(f,h){return Object(na.b)(void 0,void 0,void 0,function(){var e,n,r,z,w,fa,ja,aa,y;return Object(na.d)(this,function(ka){switch(ka.label){case 0:return ka.Gg.push([0,2,,3]),[4,fetch(f,{method:"HEAD",headers:h.customHeaders})];case 1:return e=
|
|
ka.ea(),n=e.headers.get("Content-Type"),r=e.headers.get("Content-Disposition"),w=z=null,r&&r.startsWith("attachment")&&(fa=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/,ja=fa.exec(r),null!=ja&&ja[1]&&(aa=ja[1].replace(/['"]/g,""),y=aa.split("."),z=y[0],w=y[1])),[2,{f$:Ba.a[n]?Ba.a[n]:w,p$:z}];case 2:return ka.ea(),[2,{}];case 3:return[2]}})})}function y(f,h){return Object(na.b)(void 0,void 0,void 0,function(){var e,n,r,z,aa;return Object(na.d)(this,function(y){switch(y.label){case 0:return e=h.filename,
|
|
e||(pa(f)?e=f.name:Object(ra.isString)(f)&&(e=f.split("/").slice(-1)[0],e=e.split("\\").slice(-1)[0],e=e.split("#")[0],e=e.split("?")[0])),n=h.extension,!n&&e&&(n=e.slice((Math.max(0,e.lastIndexOf("."))||Infinity)+1)),n||!Object(ra.isString)(f)?[3,2]:[4,w(f,h)];case 1:r=y.ea(),z=r.f$,aa=r.p$,!n&&z&&(n=z),aa&&(e=aa),y.label=2;case 2:return n||(ka(f)?Object(sa.j)('\n No extension option provided for ArrayBuffer source. WebViewer will assume the extension is "pdf".\n Use "extension" option to specify extension. E.g.\n\n const arrayBuffer = base64ToArrayBuffer(base64);\n const doc = await Core.createDocument(arrayBuffer, { extension: \'pdf\', l: licenseKey })\n ...\n '):
|
|
ja(f)?Object(sa.j)("\n No extension option provided for Blob source. WebViewer will assume the extension is \"pdf\".\n Use \"extension\" option to specify extension. E.g.\n\n const blob = new Blob([buffer], { type:'application/pdf' });\n const doc = await Core.createDocument(blob, { extension: 'pdf', l: licenseKey })\n ...\n "):fa(f)||Object(sa.j)("\n Extension of the document cannot be determined from URL/Path. WebViewer will assume the extension is \"pdf\".\n Use \"extension\" option to specify extension. E.g.\n\n const doc = await Core.createDocument('http://domain/file11243', { extension: 'docx', l: licenseKey })\n ...\n "),
|
|
n="pdf"),n=n.toLowerCase(),[2,{iw:n,filename:e}]}})})}function n(f){return ta.get(f)}function h(f,h){ta.set(f,h)}function f(f,h){var e=f.type;f=f.jL;void 0===h&&(h=function(){});xa[e]=f;e===Ka.UPLOAD?h(xa[Ka.UPLOAD]):h((xa[Ka.DOCUMENT]+xa[Ka.WORKER])/2)}function r(){var f;xa=(f={},f[Ka.DOCUMENT]=0,f[Ka.WORKER]=0,f[Ka.UPLOAD]=0,f)}function z(){return new Promise(function(f){var h=window.location.href.split("#")[0]+"?_="+Date.now(),e=!1;fetch(h,{headers:{Range:"bytes=0-0"}}).then(function(h){h.ok&&
|
|
206===h.status?e=!0:Object(sa.j)("HTTP range requests not supported. Switching to streaming mode.");f(e)}).catch(function(){return f(e)})})}function fa(f){return Object(ua.k)()&&f instanceof window.Core.PDFNet.PDFDoc}function ka(f){return Object(ra.isObject)(f)&&void 0!==f.byteLength}function ja(f){return f instanceof Blob||"[object Blob]"===Object.prototype.toString.call(f)}function pa(f){return"string"!==typeof f&&!fa(f)&&!ka(f)}function ma(f){Ja=f}function la(f,e){void 0===e&&(e={});return Object(na.b)(this,
|
|
void 0,Promise,function(){var n,z,w,fa,ja,ka,pa,ha,ma,sa=this;return Object(na.d)(this,function(oa){switch(oa.label){case 0:return e.licenseKey=e.licenseKey||e.l,e.onError=e.onError||function(){},r(),e.isRelativePath&&Ja&&(f=Object(Ia.a)(f,Ja)),[4,y(f,e)];case 1:n=oa.ea();z=n.iw;w=n.filename;if(!(e.type||Aa.l.aO.includes(z)||e.pdftronServer||e.webviewerServerURL))return fa="File extension "+z+' is not supported. Please see http://r.pdftron.com/fileformats for a full list of file formats supported by WebViewer.\n\nIf this file is actually valid then you can pass the \'extension\' option with the intended file extension e.g. const doc = await Core.createDocument("http://domain/file11243.php", { extension: "pdf" })',
|
|
e.onError(fa),[2,Promise.reject(fa)];if(!e.type&&!Object(ua.k)()&&Aa.l.mF.includes(z)&&!e.pdftronServer&&!e.webviewerServerURL)return fa="File extension "+z+" is only supported by using WebViewer with the full API enabled or with WebViewer Server. See http://r.pdftron.com/fileformats for a full list of file formats supported by WebViewer. Visit https://www.pdftron.com/documentation/web/guides/wv-server-deployment for more information about WebViewer Server",e.onError(fa),[2,Promise.reject(fa)];if(!(e.type||
|
|
e.webviewerServerURL||e.pdftronServer||Aa.l.xN.includes(z)||Object(ua.k)()&&Aa.l.mF.includes(z)))return fa="File extension "+z+" is only supported by using WebViewer with WebViewer Server. See http://r.pdftron.com/fileformats for a full list of file formats supported by WebViewer. Visit https://www.pdftron.com/documentation/web/guides/wv-server-deployment for more information about WebViewer Server",e.onError(fa),[2,Promise.reject(fa)];if(Object(ra.isString)(f)&&f.startsWith("file:///"))return fa=
|
|
"WebViewer doesn't have access to file URLs because of browser security restrictions. Please see http://r.pdftron.com/loadlocalfile",e.onError(fa),[2,Promise.reject(fa)];ja=window.Core.getAllowedFileExtensions();return 0<ja.length&&!ja.includes(z)?(fa="File extension "+z+" is not allowed. The allowed file extensions are "+ja.join(", ")+".",e.onError(fa),[2,Promise.reject(fa)]):"tif"!==z&&"tiff"!==z||e.webviewerServerURL||e.pdftronServer?[3,3]:[4,window.PDFNet.runWithoutCleanup(function(){return Object(na.b)(sa,
|
|
void 0,void 0,function(){var h,e,n;return Object(na.d)(this,function(r){switch(r.label){case 0:return[4,window.PDFNet.PDFDoc.create()];case 1:return h=r.ea(),h.initSecurityHandler(),h.lock(),e=null,"string"!==typeof f?[3,3]:[4,window.PDFNet.Filter.createURLFilter(f)];case 2:return e=r.ea(),[3,6];case 3:return[4,(new Blob([f])).arrayBuffer()];case 4:return n=r.ea(),[4,window.PDFNet.Filter.createFromMemory(n)];case 5:e=r.ea(),r.label=6;case 6:return[4,window.PDFNet.Convert.fromTiff(h,e)];case 7:return r.ea(),
|
|
h.unlock(),f=h,z="pdf",[2]}})})})];case 2:oa.ea(),oa.label=3;case 3:return ka=aa(z,e),pa=new qa.a(e.docId,ka),ha=new Promise(function(h,n){return Object(na.b)(sa,void 0,void 0,function(){var r,fa,ja;return Object(na.d)(this,function(aa){switch(aa.label){case 0:return[4,da(f,ka,w,z,e,n)];case 1:return r=aa.ea(),fa=ca(ka,e,n),ja=x(e,n),pa.kM(w),pa.mt(r,function(r){r?r===Fa.a&&e.fallbackToClientSide?la(f,Object(na.a)(Object(na.a)({},e),{webviewerServerURL:""})).then(function(f){h(f)}).catch(function(){n(r)}):
|
|
n(r):h(pa)},{annotationManager:e.annotationManager,getPassword:ja,workerTransportPromise:fa,customHeaders:e.customHeaders,extension:z,defaultPageSize:e.defaultPageSize,pageSizes:e.pageSizes,forceClientSideInit:e.forceClientSideInit,l:e.licenseKey,backendType:e.backendType,officeOptions:e.officeOptions,customHandlerId:e.customHandlerId}).catch(function(){}),[2]}})})}),ma=new Promise(function(f,h){ha.then(function(h){return e.loadAsPDF?f(ea(h,e)):f(h)}).catch(function(f){Object(Ga.a)(f,z).then(function(f){h(f);
|
|
e.onError(f)})})}),h(ma,function(){return pa.Md()}),[2,ma]}})})}e.d(ba,"e",function(){return ma});e.d(ba,"a",function(){return za});e.d(ba,"f",function(){return h});e.d(ba,"d",function(){return n});e.d(ba,"b",function(){return ha});e.d(ba,"c",function(){return la});var na=e(1),ra=e(0);e.n(ra);var sa=e(2),Da=e(56),qa=e(7),va=e(31),oa=e(94),ua=e(29),Ca=e(37),ya=e(58),Ea=e(19),Aa=e(3),Fa=e(112),Ga=e(328),Ba=e(175),Ia=e(329),Ja,za;(function(f){f.WEBVIEWER_SERVER="webviewerServer";f.PDF="pdf";f.OFFICE=
|
|
"office";f.XOD="xod";f.IMAGE="image"})(za||(za={}));var xa,Ka;(function(f){f.DOCUMENT="document";f.WORKER="worker";f.UPLOAD="upload"})(Ka||(Ka={}));var ta=new WeakMap},function(ia,ba,e){function ea(f){return f!==ja.a&&qa?x():Promise.resolve(!1)}function x(){Da||(Da=Promise.all([Object(pa.c)(),Object(pa.a)(),Object(pa.b)()]).then(function(f){return f[0]&&f[1]&&f[2]},function(){return!1}));return Da}function ha(){qa=!1}function ca(){qa=!0}function da(){return na}function aa(){return y().promise}function w(){na.BK=
|
|
null}function y(){na.BK||(na.BK=window.createPromiseCapability());return na.BK}function n(){return na.WA}function h(){ra||(ra=new Promise(function(h){if(sa)h(sa);else if(la.utils.isJSWorker&&la.jsworker)h(ja.c);else if(la.utils.isPdfjs)h(void 0);else if(f())if(ka.j&&86>ka.b)try{var e=Object(fa.f)()+"simple_wasm/MemGrow.js",n=self.document.createElement("script");self.Module={onRuntimeInitialized:function(){self.Module._GrowMemory()?h(ja.d):h(ja.e);var f=self.Module.PThread.runningWorkers;f.length&&
|
|
f[0].terminate();n.parentNode.removeChild(n)}};n.type="text/javascript";n.src=e;self.document.getElementsByTagName("head")[0].appendChild(n)}catch(Ca){h(ja.e)}else h(ja.d);else h(ja.e)}));return ra}function f(){if(ka.l){if(84>ka.e)return!1}else if(ka.k){if(87>ka.d)return!1}else if(!ka.j||ka.n||la.navigator.userAgent.match(/WOW64/))return!1;if(!1===self.crossOriginIsolated)return Object(z.j)("Your server has not been configured to serve WebAssembly threads. See https://www.pdftron.com/enabling_wasm-threads for instructions on how to resolve this."),
|
|
!1;if(!("SharedArrayBuffer"in la&&"WebAssembly"in la&&"Atomics"in la))return!1;try{if("object"===typeof WebAssembly&&"function"===typeof WebAssembly.instantiate){var f=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(f instanceof WebAssembly.Module&&new WebAssembly.Instance(f)instanceof WebAssembly.Instance)return(new WebAssembly.Memory({initial:1,maximum:1,shared:!0})).buffer instanceof la.SharedArrayBuffer}}catch(oa){}return!1}function r(f){sa=f}e.d(ba,"i",function(){return ma});e.d(ba,
|
|
"c",function(){return r});e.d(ba,"e",function(){return h});e.d(ba,"d",function(){return n});e.d(ba,"f",function(){return y});e.d(ba,"j",function(){return w});e.d(ba,"g",function(){return aa});e.d(ba,"h",function(){return da});e.d(ba,"b",function(){return ca});e.d(ba,"a",function(){return ha});e.d(ba,"k",function(){return ea});var z=e(2),fa=e(29),ka=e(17),ja=e(63),pa=e(220),ma="optimized/",la="undefined"===typeof window?self:window,na={},ra,sa,Da,qa=!0},function(ia,ba,e){function ea(f,h){(f=r[f])||
|
|
(f=h?'<svg viewBox="0 0 24 24" width="100%" height="100%"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"></path></svg>':'<svg viewBox="0 0 10 10" width="100%" height="100%"><circle cx="50%" cy="50%" r="4"></circle></svg>');return f}function x(e){return y.exec(e)||n.exec(e)||h.exec(e)||f.exec(e)}e.d(ba,"a",function(){return ha});e.d(ba,"d",function(){return w});e.d(ba,"c",function(){return aa});e.d(ba,"f",function(){return ca});e.d(ba,"e",function(){return da});e.d(ba,
|
|
"g",function(){return x});e.d(ba,"b",function(){return ea});var ha="D-MMM D-MMM-YY DD-MMM-YY DD-MMM-YYYY DD-MM-YYYY D-M-YYYY".split(" "),ca="m/d;m/d/yy;mm/dd/yy;mm/yy;d-mmm;d-mmm-yy;dd-mmm-yy;yymm-dd;mmm-yy;mmmm-yy;mmm d, yyyy;mmmm d, yyyy;m/d/yy h:MM tt;m/d/yy HH:MM;dd-mmm-yyyy;dd/mm/yyyy;d/m/yyyy;d/m/yy".split(";"),da={"dd/mm/yyyy":"DD/MM/YYYY","d/m/yyyy":"D/M/YYYY","d/m/yy":"D/M/YY","m/d":"M/D","m/d/yy":"M/D/YY","m/d/yyyy":"M/D/YYYY","mm/dd/yy":"MM/DD/YY","mm/dd/yyyy":"MM/DD/YYYY","mm/yy":"MM/YY",
|
|
"mm/yyyy":"MM/YYYY","d-mmm":"D-MMM","d-mmm-yy":"D-MMM-YY","d-mmm-yyyy":"D-MMM-YYYY","dd-mmm-yy":"DD-MMM-YY","dd-mmm-yyyy":"DD-MMM-YYYY","yy-mm-dd":"YY-MM-DD","yyyy-mm-dd":"YYYY-MM-DD","mmm-yy":"MMM-YY","mmm-yyyy":"MMM-YYYY","mmmm-yy":"MMMM-YY","mmmm-yyyy":"MMMM-YYYY","mmm d, yyyy":"MMM D, YYYY","mmmm d, yyyy":"MMMM D, YYYY","m/d/yy h:MM tt":"M/D/YY h:mm a","m/d/yyyy h:MM tt":"M/D/YYYY h:mm a","m/d/yy HH:MM":"M/D/YY HH:mm","m/d/yyyy HH:MM":"M/D/YYYY HH:mm","yymm-dd":"YYMM-DD","m-d-yy":"M-D-YY","m-d":"M-D",
|
|
"mm-yy":"MM-YY","m-d-yyyy":"M-D-YYYY","mm-dd-yyyy":"MM-DD-YYYY","mm-dd-yy":"MM-DD-YY","mm-yyyy":"MM-YYYY","m-d-yyyy h:MM tt":"M-D-YYYY h:mm a","m-d-yyyy HH:MM":"M-D-YYYY HH:mm","HH:MM":"HH:mm","h:MM tt":"h:mm a","HH:MM:ss":"HH:mm:ss","h:MM:ss t":"h:mm:ss a","HH:mm:ss":"HH:mm:ss","h:MM t":"h:mm a"},aa=Object.values(da),w=Object.values(da).filter(function(f){return f&&"m"===f.charAt(0).toLowerCase()}),y=/[\u00c0-\u017d\u0401\u040e\u0419G\u0303\u1e20\u01f4\u1e82\u1e30\u1e54\u1e3e\u00c4\u00d6\u00dc]/,
|
|
n=/[\u3000-\u303f]|[\u3040-\u309f]|[\u30a0-\u30ff]|[\uff00-\uff9f]|[\u4e00-\u9faf]|[\u3400-\u4dbf]/,h=/[\u3131-\u314e]|[\u314f-\u3163]|[\uac00-\ud7a3]/;try{var f=RegExp("[\u4e00-\u9fff]|[\u3400-\u4dbf]|[\ud840\udc00-\ud869\udedf]|[\ud869\udf00-\ud86d\udf3f]|[\ud86d\udf40-\ud86e\udc1f]|[\ud86e\udc20-\ud873\udeaf]|[\uf900-\ufaff]|[\u3300-\u33ff]|[\ufe30-\ufe4f]|[\uf900-\ufaff]|[\ud87e\udc00-\ud87e\ude1f]","u")}catch(z){f=/[\u4e00-\u9fff]|[\u3400-\u4dbf]|[\uf900-\ufaff]|[\u3300-\u33ff]|[\ufe30-\ufe4f]|[\uf900-\ufaff]/}var r=
|
|
{8:'<svg viewBox="0 0 24 24" width="100%" height="100%"><path d="M24 20.188l-8.315-8.209 8.2-8.282-3.697-3.697-8.212 8.318-8.31-8.203-3.666 3.666 8.321 8.24-8.206 8.313 3.666 3.666 8.237-8.318 8.285 8.203z"/></svg>',4:'<svg viewBox="0 0 24 24" width="100%" height="100%"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"></path></svg>',l:'<svg viewBox="0 0 10 10" width="100%" height="100%"><circle cx="50%" cy="50%" r="4"></circle></svg>',u:'<svg x="0px" y="0px" viewBox="0 0 223.646 223.646" width="100%" height="100%" xml:space="preserve"><polygon points="111.823,0 16.622,111.823 111.823,223.646 207.025,111.823 "/></svg>',
|
|
n:'<svg viewBox="-20 -20 100 100" width="100%" height="100%"><rect x="0" y="0" width="60%" height="60%"></rect></svg>',h:'<svg viewBox="0 0 24 24" width="100%" height="100%"><path d="M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"></path></svg>'}},function(ia,ba,e){function ea(f,h){Ba||Object(va.e)().kt||ha(f,h);if(!Object(va.e)().kt){var e;f=Ba.then(function(f){return new Promise(function(h,n){Object(va.a)(function(){n(new sa.a("The worker has encountered an error",
|
|
ua.i?"error.EmsWorkerErrorIE":"error.EmsWorkerError"))});e=new qa.a(f,Object(va.d)(),{});e.Uy.then(function(){var f=Object(va.c)();f&&e.Xt(f);h(e)},function(f){n(f)})})});Object(va.l)({legacyOffice:f})}return Object(va.e)().kt}function x(f){Ba=Promise.resolve(f);Object(va.l)({legacyOffice:null})}function ha(f,h,e){Object(na.isUndefined)(e)&&(e={});Object(va.e)().kt&&f===ka()||(e.emsWorkerPath=aa()+"LegacyOfficeWorker.js",e.externalPath=Object(oa.c)(),e.kN=za,Ga&&(e.pdfWorkerPath=Ga),Aa&&(e.officeAsmPath=
|
|
Aa),Ja&&(e.legacyOfficeAsmPath=Ja),Ba=Object(va.h)(f,h,e))}function ca(){return Ja||Ca.ae()+"}legacyOffice/"}function da(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");Ja=f}function aa(){return Ia||Ca.ae()+"legacyOffice/"}function w(f){f.indexOf("/")!==f.length-1&&(f+="/");Ia=f}function y(){return xa||Ca.ae()+"legacyOffice/"}function n(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");xa=f}function h(){return Ga||Ca.ae()+"office/"}function f(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");Ga=f}function r(f,
|
|
h,e){ya||Object(va.e)().Dq||fa(f,h);Object(ra.a)()||Object(ra.f)(e);e=e||Object(ra.a)();if(!Object(va.e)().Dq){var n;f=Promise.all([Object(ra.b)(e),ya]).then(function(f){var h=f[0],e=f[1];return new Promise(function(f,r){Object(va.a)(function(){r(new sa.a("The worker has encountered an error",ua.i?"error.EmsWorkerErrorIE":"error.EmsWorkerError"))});h=Object(va.b)(h);n=new Da.a(e,Object(va.d)(),{l:h});n.Uy.then(function(){var h=Object(va.c)();h&&n.Xt(h);f(n)},function(f){r(f)})})});Object(va.l)({office:f})}return Object(va.e)().Dq}
|
|
function z(f){ya=Promise.resolve(f);Object(va.l)({office:null})}function fa(f,h,e){Object(na.isUndefined)(e)&&(e={});Object(va.e)().Dq&&f===ka()||(e.emsWorkerPath=ma()+"OfficeWorker.js",e.externalPath=Object(oa.c)(),e.kN=Fa,Ga&&(e.pdfWorkerPath=Ga),Aa&&(e.officeAsmPath=Aa),ya=Object(va.h)(f,h,e))}function ka(){return Fa.WA}function ja(){return Aa||Ca.ae()+"}office/"}function pa(f){f.lastIndexOf("/")!==f.length-1&&(f+="/");Aa=f}function ma(){return Ea||Ca.ae()+"office/"}function la(f){f.indexOf("/")!==
|
|
f.length-1&&(f+="/");Ea=f}e.d(ba,"s",function(){return la});e.d(ba,"g",function(){return ma});e.d(ba,"q",function(){return pa});e.d(ba,"e",function(){return ja});e.d(ba,"a",function(){return ka});e.d(ba,"k",function(){return fa});e.d(ba,"m",function(){return z});e.d(ba,"i",function(){return r});e.d(ba,"r",function(){return f});e.d(ba,"f",function(){return h});e.d(ba,"o",function(){return n});e.d(ba,"c",function(){return y});e.d(ba,"p",function(){return w});e.d(ba,"d",function(){return aa});e.d(ba,
|
|
"n",function(){return da});e.d(ba,"b",function(){return ca});e.d(ba,"j",function(){return ha});e.d(ba,"l",function(){return x});e.d(ba,"h",function(){return ea});var na=e(0);e.n(na);var ra=e(76),sa=e(60),Da=e(324),qa=e(326),va=e(37),oa=e(29),ua=e(17),Ca=("undefined"===typeof window?void 0:window).Ya,ya,Ea,Aa,Fa={},Ga,Ba,Ia,Ja,za={},xa},function(ia,ba,e){var ea=e(227);e.d(ba,"a",function(){return ea.a});e(67);var x=e(148);e.d(ba,"b",function(){return x.a});var ha=e(96);e.d(ba,"c",function(){return ha.a});
|
|
e(230);e(194);var ca=e(196);e.d(ba,"d",function(){return ca.a});var da=e(197);e.d(ba,"e",function(){return da.a});var aa=e(195);e.d(ba,"f",function(){return aa.a});var w=e(200);e.d(ba,"g",function(){return w.a});var y=e(199);e.d(ba,"h",function(){return y.a});var n=e(201);e.d(ba,"i",function(){return n.a});var h=e(202);e.d(ba,"j",function(){return h.a});var f=e(198);e.d(ba,"k",function(){return f.a})},function(ia,ba){function e(e,x){var ha=Error.apply(this,arguments);ha.name=this.name="WorkerError";
|
|
this.stack=ha.stack;this.message=ha.message;this.userMessage=x}e.prototype=Object.create(Error.prototype,{constructor:{value:e,writable:!0,configurable:!0}});ba.a=e},function(ia,ba){ba.a=function(){function e(){}e.Gu=1;e.sz=2;e.rr=4;e.mz=8;e.jz=16;e.cz=32;e.oz=64;e.Qu=128;return e}()},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(28),ha=e(38),ca=e(341),da=e(176),aa=e(75),w=e(16),y=e(34),n=e(22),h=e(10),f=e(19);ia=function(){function e(f,h,e){this.Ob=this.Kf=this.Mc=this.aa=this.mode=null;this.lf=
|
|
this.bd=0;this.vc=null;this.Ze=[];this.qE=null;this.Dd={};this.aa=f;f=h===ha.a.Uk;this.qE=Object(ea.isUndefined)(e)?!f:e;Object(ea.isNull)(h)||Object(ea.isUndefined)(h)||(this.mode=h)}e.prototype.setParameters=function(f,h,e,n,r){this.mode=ha.a.Uk;this.Mc=f;this.Kf=h;this.Ob=e;this.bd=n;this.lf=r};e.prototype.hja=function(f){this.Dd=f};e.prototype.$w=function(){return this.mode===ha.a.Tk||this.mode===ha.a.iz||this.mode===ha.a.Hu};e.prototype.Vo=function(){return this.qE};e.prototype.ua=function(f,
|
|
h){if(!this.vc)return 0;f=this.vc.xC(f-this.vc.bd);if(this.aa.dD()){var e=this.vc.hm;h=f.Qb()[e-(h+1)]}else h=f.Qb()[h];if(!h)return 0;h=h.Hb;return Object(ea.isNumber)(h)?h:0};e.prototype.gh=function(f,h){if(this.Dd.pageToWindow)return this.Dd.pageToWindow(f,h);f=this.aa.nJ(f,h);h=this.aa.ia.qf(h-1);return{x:f.x+h.Lg,y:f.y+h.Mg}};e.prototype.VK=function(f,h){if(this.Dd.pageToWindow)return this.Dd.pageToWindow(f,h);f=this.aa.Qba(f,h);h=this.aa.ia.qf(h-1);return{x:f.x+h.Lg,y:f.y+h.Mg}};e.prototype.xj=
|
|
function(f,h){if(this.Dd.windowToPage)return this.Dd.windowToPage(f,h);var e=this.aa.Lb(h),r=this.aa.ia.qf(h-1),z=new n.c;z.x=f.x-r.Lg;z.y=f.y-r.Mg;f=this.aa.Hc(h);r=this.aa.ld(h);var w=this.aa.kd(h);e=Object(aa.a)(e,f,{width:r,height:w},void 0,!1).inverse().ra(z);return{pageNumber:h,x:e.x,y:e.y}};e.prototype.oma=function(f,h){if(this.Dd.windowToPage)return this.Dd.windowToPage(f,h);var e=this.aa.Lb(h),r=this.aa.ia.qf(h-1),z=new n.c;z.x=f.x-r.Lg;z.y=f.y-r.Mg;f=this.aa.me(h);e=Object(aa.a)(e,f,this.aa.ba.mb(h),
|
|
void 0,!1);e=e.inverse();z=e.ra(z);return{pageNumber:h,x:z.x,y:z.y}};e.prototype.gq=function(f,h){if(this.Dd.getSelectedPages)return this.Dd.getSelectedPages(f,h);var e=null,n=null;f=Object(ea.isUndefined)(f)?this.aa.Qe:f;h=Object(ea.isUndefined)(h)?this.aa.lc:h;a:for(var r=this.bd;r<this.lf;r++)for(var z=0;z<this.Mc;z++){var w=this.ua(r,z);if(!(1>w)){var fa=this.aa.ia.qf(w-1),aa=fa.Lg,y=fa.Mg,da=fa.Lg+fa.width*(fa.zoom||this.aa.zoom);fa=fa.Mg+fa.height*(fa.zoom||this.aa.zoom);null===e&&f.x<=da&&
|
|
f.x>=aa&&f.y<=fa&&f.y>=y&&(e=w);null===n&&h.x<=da&&h.x>=aa&&h.y<=fa&&h.y>=y&&(n=w);if(null!==e&&null!==n)break a}}e>n&&(f=[n,e],e=f[0],n=f[1]);return{first:e,last:n}};e.prototype.ve=function(f,h){if(this.Dd.getVisiblePages)return this.Dd.getVisiblePages(f,h);if(!this.aa.jb())return[];var e=[];h=this.getVisibleRegionRect(f,h);for(var n=this.getVisibleRegionRect(0,0),r=this.bd;r<this.lf;r++)for(var z=0;z<this.Mc;z++)if(f=this.ua(r,z),!(1>f)){var w=this.eo(f,h,n);null!==w&&e.push({Hb:f,Ox:w.UW})}e.sort(function(f,
|
|
h){return h.Ox-f.Ox});return e.map(function(f){return f.Hb})};e.prototype.getVisibleRegionRect=function(f,h){f=Object(ea.isUndefined)(f)?.5:f;h=Object(ea.isUndefined)(h)?.5:h;var e=this.aa.jb();if(null===e)return[];var n=e.getBoundingClientRect(),r=e.scrollTop,z=Object(w.d)(e);e=n.width;var fa=n.height;r=r+n.top-fa*f;n=z+n.left-e*h;return{na:n,ja:r,oa:n+e*(1+2*h),ka:r+fa*(1+2*f)}};e.prototype.eo=function(f,h,e){var n=this.aa.ba.mb(f),r=this.pageToWindowNoRotate({x:0,y:0},f),z=this.pageToWindowNoRotate({x:n.width,
|
|
y:n.height},f);n=Object(y.l)(r,z);h=Object(y.d)(n,h);if(h.na!==h.oa){var w=void 0;e&&(e=Object(y.d)(n,e),w=(e.oa-e.na)*(e.ka-e.ja)/((n.oa-n.na)*(n.ka-n.ja)));r=this.windowToPageNoRotate({x:h.na,y:h.ja},f);z=this.windowToPageNoRotate({x:h.oa,y:h.ka},f);return{mc:Object(y.m)(Object(y.l)(r,z)),VE:{x:h.na-n.na,y:h.ja-n.ja},UW:w}}return null};e.prototype.Js=function(f){if(this.Dd.getPageTransform)return this.Dd.getPageTransform(f);f=this.aa.Ll(f);return{x:0,y:0,width:f.width,height:f.height}};e.prototype.fJ=
|
|
function(){return{x:0,y:0}};e.prototype.Vj=function(){return Object(ca.a)({ji:this.aa.VT(),jma:this.aa.ia.ve(),hm:this.Mc,bd:this.bd,xt:this.lf-this.bd,fla:this.mode===ha.a.Hu||this.mode===ha.a.Iu?1:0,Fk:this.aa.dD()})};e.prototype.gx=function(f){try{var h=this.aa.ia.ah(f-1)}catch(ka){return!1}return this.aa.Ua.gx(h)||this.aa.ia.qf(f-1).Ue};e.prototype.pR=function(f){var h=this;this.YB(function(e){var n=e.id.slice(13),r=0===n.indexOf("b");n=parseInt(n,10);r||h.gx(n)||[].forEach.call(e.querySelectorAll("canvas.canvas"+
|
|
n),function(f){Object(x.a)().$j(f)});Object(x.a)().oR(n-1);f&&h.LX(e)})};e.prototype.LX=function(f){for(;f.firstChild;)f.removeChild(f.firstChild)};e.prototype.vm=function(f){var e=this.aa.Xa();if(f)if(this.mode===ha.a.Uk)for(;e.firstChild;)e.removeChild(e.firstChild);else this.pR(!0);else this.vc=null,this.pR(),e&&(e.textContent=""),this.aa.trigger(h.f.CONTENT_REMOVED)};e.prototype.Jv=function(f){if(this.vc)for(var h=Object.keys(f),e=0,n=this.vc.ca.length;e<n;e++){var r=this.vc.ca[e],z=r.Wh,w=f[z];
|
|
-1<h.indexOf(z)&&r.zja(w)}};e.prototype.wh=function(){if(this.Dd.createPageSections)return this.vm(!1),this.Dd.createPageSections(),Object(ea.range)(1,this.aa.Wb());var f=this;if(this.mode!==ha.a.Uk){var h=this.Vj(),e=Object(da.c)(this.vc,h);e.uba().forEach(function(h){var e=f.aa.Xa().querySelector("#pageContainer"+h),n;e&&(n=f.aa.iN?e.querySelector("#hrthumb"+h):e.querySelector(".canvas"+h+":not(.progressive)"));n&&f.aa.ia.sM(h-1,n)});this.vc=h;h=this.aa.xa;e=e.R4(this.aa.Xa(),!h.kx).ZK;this.aa.MA(this.vc.wa());
|
|
return e}return Object(ea.range)(1,this.aa.Wb()+1)};e.prototype.Xa=function(){return this.aa.Xa()};e.prototype.YB=function(h){var e=this.Xa();if(e)for(e=e.firstChild;e;)Object(f.o)(e,"pageSection")&&h(e.firstChild),e=e.nextSibling};e.prototype.Pf=function(){var f=this.aa.ia,h=this.aa.jb(),e=Object(w.d)(h),n=h.scrollTop,r=document.documentElement.getBoundingClientRect();this.YB(function(h){var z=h.id.slice(13);z=parseInt(z,10);Object(ea.isNaN)(z)||(h=h.getBoundingClientRect(),f.BE(z-1,{Lg:Math.round(e+
|
|
(h.left-r.left)),Mg:Math.round(n+(h.top-r.top))}))})};e.prototype.IC=function(){};e.prototype.gba=function(){return this.mode};return e}();ba.a=ia},function(ia,ba,e){e.d(ba,"a",function(){return ea});e.d(ba,"e",function(){return x});e.d(ba,"c",function(){return ha});e.d(ba,"d",function(){return ca});e.d(ba,"b",function(){return da});var ea="asm",x="ems",ha="jsworker",ca="wasm-threads",da={G_:ea,a2:x,w0:ha,S1:ca}},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(17);document.head||(document.head=
|
|
document.getElementsByTagName("head")[0]);var da=(ia=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent))&&14<=ia[1],aa=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="),
|
|
w={woff:"application/x-font-woff",opentype:"font/opentype",sfnt:"application/font-sfnt"},y={},n=null,h=null,f=function(){function f(f,h,e,n){this.Oea=w;Object(x.isUndefined)(n)?this.url=["data:",this.Oea[e],";base64,",btoa(h)].join(""):this.url="'"+n+"'";this.url=["url(",this.url,")"].join("");this.tia=["@font-face { font-family:'",f,"';src:",this.url,"}"].join("");this.name=f}f.prototype.insert=function(){if(!y[this.name]){var f=h;if(!f){var e=document.createElement("style");document.head.appendChild(e);
|
|
h=f=e.sheet;n=e}e=f.cssRules.length;f.insertRule(this.tia,e);y[this.name]=f.cssRules[e]}};f.prototype.remove=function(){if(!ca.i){var f=y[this.name];if(!f)throw Error("CSS @font-face rule is not in use");var e=h,n,r=e.cssRules.length,z=e.cssRules;for(n=0;n<r;n++)if(z[n]===f){e.deleteRule(n);delete y[this.name];return}throw Error("CSS @font-face stylesheet has been altered externally");}};return f}();ia=!1;if("undefined"!==typeof document&&document.fonts)try{var r=new f("lt"+Date.now()+"0",aa,"opentype");
|
|
ia="error"!==(new window.FontFace(r.name,r.url,{})).status}catch(fa){ia=!1}else ia=!1;r=function(){function h(){this.fonts=[];this.qla=1}h.prototype.s4=function(f){this.fonts.push(f)};h.prototype.Cca=function(){return 0!==this.fonts.length};h.prototype.zV=function(h){function e(f,h){return f.charCodeAt(h)<<24|f.charCodeAt(h+1)<<16|f.charCodeAt(h+2)<<8|f.charCodeAt(h+3)&255}function n(f,h){ca++;30<ca?(Object(ha.j)("Load test font never loaded."),h()):(ka.font="30px "+f,ka.fillText(".",0,20),0<ka.getImageData(0,
|
|
0,1,1).data[3]?h():setTimeout(Object(x.bind)(n,null,f,h)))}var r=this,z;if(Object(x.isEmpty)(y)||da){for(z=0;z<r.fonts.length;z++)setTimeout(h,0,r.fonts[z].name);r.fonts=[]}else{var w=aa,fa;z=document.createElement("canvas");z.width=1;z.height=1;var ka=z.getContext("2d"),ca=0,qa="lt"+Date.now()+this.qla++;w=w.substr(0,976)+qa+w.substr(976+qa.length);var ea=e(w,16);z=0;for(fa=qa.length-3;z<fa;z+=4)ea=ea-1482184792+e(qa,z)|0;z<qa.length&&(ea=ea-1482184792+e(qa+"XXX",z)|0);w=w.substr(0,16)+(String.fromCharCode(ea>>
|
|
24&255)+String.fromCharCode(ea>>16&255)+String.fromCharCode(ea>>8&255)+String.fromCharCode(ea&255))+w.substr(20);var oa=new f(qa,w,"opentype");oa.insert();w=[];z=0;for(fa=this.fonts.length;z<fa;z++)w.push(this.fonts[z].name);w.push(qa);var ba=document.createElement("div");ba.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");z=0;for(fa=w.length;z<fa;++z)ea=document.createElement("span"),ea.textContent="Hi",ea.style.fontFamily=w[z],ba.appendChild(ea);
|
|
document.body.appendChild(ba);n(qa,function(){document.body.removeChild(ba);oa.remove();for(var f=0;f<r.fonts.length;f++)if(h(r.fonts[f].name),!r.fonts[f].url.startsWith("url(data")){var e=r.fonts[f].url;if(e.startsWith("url('")){if(8>e.length){Object(ha.j)("Invalid font ObjectURL.");return}e=e.substring(5,e.length-2)}URL.revokeObjectURL(e);r.fonts[f].url=null}r.fonts=[]})}};h.prototype.rea=function(f,h,e){var n=document.createElement("div");n.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");
|
|
n.innerHTML='<span style="font-family:'+f+'">" + testString +"</span>';document.body.appendChild(n);fetch(h).then(function(f){f.ok&&setTimeout(function(){e();document.body.removeChild(n)},300)})};return h}();e=function(f){function h(h,e,n,r){h=f.call(this,h,e,n,r)||this;h.uI=new window.FontFace(h.name,h.url,{});return h}Object(ea.c)(h,f);h.prototype.insert=function(){document.fonts.add(this.uI);y[this.name]=this};h.prototype.remove=function(){document.fonts.delete(this.uI)};return h}(f);var z=function(f){function h(){return f.call(this)||
|
|
this}Object(ea.c)(h,f);h.prototype.zV=function(f){this.fonts.forEach(function(h){h.uI.load().then(function(){f(h.name);if(!h.url.startsWith("url(data")){var e=h.url;if(e.startsWith("url('")){if(8>e.length){Object(ha.j)("Invalid font ObjectURL.");return}e=e.substring(5,e.length-2)}URL.revokeObjectURL(e);h.url=null}})["catch"](function(e){f(h.name);Object(ha.j)("loadFonts: font failed to load: "+h.name);e&&Object(ha.j)("loadFonts: exception is: "+e.message)})})};return h}(r);ba.a={FontFace:ia?e:f,h0:ia?
|
|
z:r,C$:ia,VI:function(f,h){return"f"+f+"-"+h},pC:function(){return y},$ba:function(){return n},apa:function(){return h},Aka:function(f){n=f},Bka:function(f){h=f}}},function(ia,ba,e){(function(e){(function(x,ha){e.exports=ha()})(this,function(){function x(){return Ke.apply(null,arguments)}function ha(f){return f instanceof Array||"[object Array]"===Object.prototype.toString.call(f)}function ca(f){return null!=f&&"[object Object]"===Object.prototype.toString.call(f)}function da(f,h){return Object.prototype.hasOwnProperty.call(f,
|
|
h)}function aa(f){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(f).length;for(var h in f)if(da(f,h))return!1;return!0}function w(f){return void 0===f}function y(f){return"number"===typeof f||"[object Number]"===Object.prototype.toString.call(f)}function n(f){return f instanceof Date||"[object Date]"===Object.prototype.toString.call(f)}function h(f,h){var e=[],n,r=f.length;for(n=0;n<r;++n)e.push(h(f[n],n));return e}function f(f,h){for(var e in h)da(h,e)&&(f[e]=h[e]);da(h,"toString")&&
|
|
(f.toString=h.toString);da(h,"valueOf")&&(f.valueOf=h.valueOf);return f}function r(f,h,e,n){return se(f,h,e,n,!0).utc()}function z(f){null==f._pf&&(f._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1});return f._pf}function fa(f){if(null==f._isValid){var h=z(f),e=hi.call(h.parsedDateParts,function(f){return null!=f});
|
|
e=!isNaN(f._d.getTime())&&0>h.overflow&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&e);f._strict&&(e=e&&0===h.charsLeftOver&&0===h.unusedTokens.length&&void 0===h.bigHour);if(null!=Object.isFrozen&&Object.isFrozen(f))return e;f._isValid=e}return f._isValid}function ka(h){var e=r(NaN);null!=h?f(z(e),h):z(e).userInvalidated=!0;return e}function ja(f,h){var e,n=yg.length;w(h._isAMomentObject)||
|
|
(f._isAMomentObject=h._isAMomentObject);w(h._i)||(f._i=h._i);w(h._f)||(f._f=h._f);w(h._l)||(f._l=h._l);w(h._strict)||(f._strict=h._strict);w(h._tzm)||(f._tzm=h._tzm);w(h._isUTC)||(f._isUTC=h._isUTC);w(h._offset)||(f._offset=h._offset);w(h._pf)||(f._pf=z(h));w(h._locale)||(f._locale=h._locale);if(0<n)for(e=0;e<n;e++){var r=yg[e];var fa=h[r];w(fa)||(f[r]=fa)}return f}function pa(f){ja(this,f);this._d=new Date(null!=f._d?f._d.getTime():NaN);this.isValid()||(this._d=new Date(NaN));!1===Bf&&(Bf=!0,Bf=
|
|
!1)}function ma(f){return f instanceof pa||null!=f&&null!=f._isAMomentObject}function la(f){!1===x.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+f)}function na(h,e){var n=!0;return f(function(){null!=x.deprecationHandler&&x.deprecationHandler(null,h);if(n){var f=[],r,z,w=arguments.length;for(r=0;r<w;r++){var fa="";if("object"===typeof arguments[r]){fa+="\n["+r+"] ";for(z in arguments[0])da(arguments[0],z)&&(fa+=z+": "+arguments[0][z]+
|
|
", ");fa=fa.slice(0,-2)}else fa=arguments[r];f.push(fa)}la(h+"\nArguments: "+Array.prototype.slice.call(f).join("")+"\n"+Error().stack);n=!1}return e.apply(this,arguments)},e)}function ra(f,h){null!=x.deprecationHandler&&x.deprecationHandler(f,h);zg[f]||(la(h),zg[f]=!0)}function sa(f){return"undefined"!==typeof Function&&f instanceof Function||"[object Function]"===Object.prototype.toString.call(f)}function ea(h,e){var n=f({},h),r;for(r in e)da(e,r)&&(ca(h[r])&&ca(e[r])?(n[r]={},f(n[r],h[r]),f(n[r],
|
|
e[r])):null!=e[r]?n[r]=e[r]:delete n[r]);for(r in h)da(h,r)&&!da(e,r)&&ca(h[r])&&(n[r]=f({},n[r]));return n}function qa(f){null!=f&&this.set(f)}function ba(f,h,e){var n=""+Math.abs(f);return(0<=f?e?"+":"":"-")+Math.pow(10,Math.max(0,h-n.length)).toString().substr(1)+n}function oa(f,h,e,n){var r=n;"string"===typeof n&&(r=function(){return this[n]()});f&&(Hb[f]=r);h&&(Hb[h[0]]=function(){return ba(r.apply(this,arguments),h[1],h[2])});e&&(Hb[e]=function(){return this.localeData().ordinal(r.apply(this,
|
|
arguments),f)})}function ua(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function Ca(f){var h=f.match(Ff),e;var n=0;for(e=h.length;n<e;n++)h[n]=Hb[h[n]]?Hb[h[n]]:ua(h[n]);return function(n){var r="",z;for(z=0;z<e;z++)r+=sa(h[z])?h[z].call(n,f):h[z];return r}}function ya(f,h){if(!f.isValid())return f.localeData().invalidDate();h=ia(h,f.localeData());Gf[h]=Gf[h]||Ca(h);return Gf[h](f)}function ia(f,h){function e(f){return h.longDateFormat(f)||f}var n=5;for(ye.lastIndex=
|
|
0;0<=n&&ye.test(f);)f=f.replace(ye,e),ye.lastIndex=0,--n;return f}function Aa(f,h){var e=f.toLowerCase();Wd[e]=Wd[e+"s"]=Wd[h]=f}function Fa(f){return"string"===typeof f?Wd[f]||Wd[f.toLowerCase()]:void 0}function Ga(f){var h={},e,n;for(n in f)da(f,n)&&(e=Fa(n))&&(h[e]=f[n]);return h}function Ba(f){var h=[],e;for(e in f)da(f,e)&&h.push({unit:e,priority:zb[e]});h.sort(function(f,h){return f.priority-h.priority});return h}function Ia(f){return 0===f%4&&0!==f%100||0===f%400}function Ja(f){return 0>f?
|
|
Math.ceil(f)||0:Math.floor(f)}function za(f){f=+f;var h=0;0!==f&&isFinite(f)&&(h=Ja(f));return h}function xa(f){return function(h){return null!=h?(ta(this,f,h),this):Ka(this,f)}}function Ka(f,h){return f.isValid()?f._d["get"+(f._isUTC?"UTC":"")+h]():NaN}function ta(f,h,e){if(f.isValid()&&!isNaN(e))if("FullYear"===h&&Ia(f.year())&&1===f.month()&&29===f.date())e=za(e),f._d["set"+(f._isUTC?"UTC":"")+h](e,f.month(),Qa(e,f.month()));else f._d["set"+(f._isUTC?"UTC":"")+h](e)}function Ha(f,h,e){Zd[f]=sa(h)?
|
|
h:function(f){return f&&e?e:h}}function Na(f,h){return da(Zd,f)?Zd[f](h._strict,h._locale):new RegExp(Ra(f))}function Ra(f){return Ma(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(f,h,e,n,r){return h||e||n||r}))}function Ma(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wa(f,h){var e,n=h;"string"===typeof f&&(f=[f]);y(h)&&(n=function(f,e){e[h]=za(f)});var r=f.length;for(e=0;e<r;e++)Zc[f[e]]=n}function Pa(f,h){wa(f,function(f,e,n,r){n._w=n._w||{};h(f,n._w,
|
|
n,r)})}function Qa(f,h){if(isNaN(f)||isNaN(h))return NaN;var e=(h%12+12)%12;return 1===e?Ia(f+(h-e)/12)?29:28:31-e%7%2}function Oa(f,h){if(!f.isValid())return f;if("string"===typeof h)if(/^\d+$/.test(h))h=za(h);else if(h=f.localeData().monthsParse(h),!y(h))return f;var e=Math.min(f.date(),Qa(f.year(),h));f._d["set"+(f._isUTC?"UTC":"")+"Month"](h,e);return f}function Ta(f){return null!=f?(Oa(this,f),this):Ka(this,"Month")}function Nb(){function f(f,h){return h.length-f.length}var h=[],e=[],n=[],z;
|
|
for(z=0;12>z;z++){var w=r([2E3,z]);h.push(this.monthsShort(w,""));e.push(this.months(w,""));n.push(this.months(w,""));n.push(this.monthsShort(w,""))}h.sort(f);e.sort(f);n.sort(f);for(z=0;12>z;z++)h[z]=Ma(h[z]),e[z]=Ma(e[z]);for(z=0;24>z;z++)n[z]=Ma(n[z]);this._monthsShortRegex=this._monthsRegex=new RegExp("^("+n.join("|")+")","i");this._monthsStrictRegex=new RegExp("^("+e.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+h.join("|")+")","i")}function sc(f,h,e,n,r,z,w){100>f&&0<=f?(h=
|
|
new Date(f+400,h,e,n,r,z,w),isFinite(h.getFullYear())&&h.setFullYear(f)):h=new Date(f,h,e,n,r,z,w);return h}function bb(f){if(100>f&&0<=f){var h=Array.prototype.slice.call(arguments);h[0]=f+400;h=new Date(Date.UTC.apply(null,h));isFinite(h.getUTCFullYear())&&h.setUTCFullYear(f)}else h=new Date(Date.UTC.apply(null,arguments));return h}function lb(f,h,e){e=7+h-e;return-((7+bb(f,0,e).getUTCDay()-h)%7)+e-1}function Tb(f,h,e,n,r){e=(7+e-n)%7;n=lb(f,n,r);n=1+7*(h-1)+e+n;0>=n?(h=f-1,f=(Ia(h)?366:365)+n):
|
|
n>(Ia(f)?366:365)?(h=f+1,f=n-(Ia(f)?366:365)):(h=f,f=n);return{year:h,dayOfYear:f}}function bc(f,h,e){var n=lb(f.year(),h,e);n=Math.floor((f.dayOfYear()-n-1)/7)+1;1>n?(f=f.year()-1,h=n+Fb(f,h,e)):n>Fb(f.year(),h,e)?(h=n-Fb(f.year(),h,e),f=f.year()+1):(f=f.year(),h=n);return{week:h,year:f}}function Fb(f,h,e){var n=lb(f,h,e);h=lb(f+1,h,e);return((Ia(f)?366:365)-n+h)/7}function Za(f,h){return f.slice(h,7).concat(f.slice(0,h))}function Hc(f,h,e){var n;f=f.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=
|
|
[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;7>n;++n){var z=r([2E3,1]).day(n);this._minWeekdaysParse[n]=this.weekdaysMin(z,"").toLocaleLowerCase();this._shortWeekdaysParse[n]=this.weekdaysShort(z,"").toLocaleLowerCase();this._weekdaysParse[n]=this.weekdays(z,"").toLocaleLowerCase()}if(e)h="dddd"===h?vb.call(this._weekdaysParse,f):"ddd"===h?vb.call(this._shortWeekdaysParse,f):vb.call(this._minWeekdaysParse,f);else if("dddd"===h){h=vb.call(this._weekdaysParse,f);if(-1!==h)return h;h=
|
|
vb.call(this._shortWeekdaysParse,f);if(-1!==h)return h;h=vb.call(this._minWeekdaysParse,f)}else if("ddd"===h){h=vb.call(this._shortWeekdaysParse,f);if(-1!==h)return h;h=vb.call(this._weekdaysParse,f);if(-1!==h)return h;h=vb.call(this._minWeekdaysParse,f)}else{h=vb.call(this._minWeekdaysParse,f);if(-1!==h)return h;h=vb.call(this._weekdaysParse,f);if(-1!==h)return h;h=vb.call(this._shortWeekdaysParse,f)}return-1!==h?h:null}function Gb(){function f(f,h){return h.length-f.length}var h=[],e=[],n=[],z=
|
|
[],w;for(w=0;7>w;w++){var fa=r([2E3,1]).day(w);var ja=Ma(this.weekdaysMin(fa,""));var aa=Ma(this.weekdaysShort(fa,""));fa=Ma(this.weekdays(fa,""));h.push(ja);e.push(aa);n.push(fa);z.push(ja);z.push(aa);z.push(fa)}h.sort(f);e.sort(f);n.sort(f);z.sort(f);this._weekdaysMinRegex=this._weekdaysShortRegex=this._weekdaysRegex=new RegExp("^("+z.join("|")+")","i");this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+e.join("|")+")","i");this._weekdaysMinStrictRegex=
|
|
new RegExp("^("+h.join("|")+")","i")}function Ub(){return this.hours()%12||12}function Ic(f,h){oa(f,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}function Vb(f,h){return h._meridiemParse}function cd(f){return f?f.toLowerCase().replace("_","-"):f}function Sb(f){if(void 0===kb[f]&&"undefined"!==typeof e&&e&&e.exports&&null!=f.match("^[^/\\\\]*$"))try{var h=Error("Cannot find module 'undefined'");h.code="MODULE_NOT_FOUND";throw h;}catch(Uf){kb[f]=null}return kb[f]}
|
|
function tb(f,h){f&&((h=w(h)?Wb(f):Jc(f,h))?xd=h:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+f+" not found. Did you forget to load it?"));return xd._abbr}function Jc(f,h){if(null!==h){var e=Ee;h.abbr=f;if(null!=kb[f])ra("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),
|
|
e=kb[f]._config;else if(null!=h.parentLocale)if(null!=kb[h.parentLocale])e=kb[h.parentLocale]._config;else if(e=Sb(h.parentLocale),null!=e)e=e._config;else return fc[h.parentLocale]||(fc[h.parentLocale]=[]),fc[h.parentLocale].push({name:f,config:h}),null;kb[f]=new qa(ea(e,h));fc[f]&&fc[f].forEach(function(f){Jc(f.name,f.config)});tb(f);return kb[f]}delete kb[f];return null}function Wb(f){var h;f&&f._locale&&f._locale._abbr&&(f=f._locale._abbr);if(!f)return xd;if(!ha(f)){if(h=Sb(f))return h;f=[f]}a:{h=
|
|
0;for(var e,n,r,z;h<f.length;){z=cd(f[h]).split("-");e=z.length;for(n=(n=cd(f[h+1]))?n.split("-"):null;0<e;){if(r=Sb(z.slice(0,e).join("-"))){f=r;break a}if(r=n&&n.length>=e){b:{var w=Math.min(z.length,n.length);for(r=0;r<w;r+=1)if(z[r]!==n[r])break b;r=w}r=r>=e-1}if(r)break;e--}h++}f=xd}return f}function dd(f){var h;(h=f._a)&&-2===z(f).overflow&&(h=0>h[ib]||11<h[ib]?ib:1>h[ub]||h[ub]>Qa(h[Jb],h[ib])?ub:0>h[qb]||24<h[qb]||24===h[qb]&&(0!==h[Pb]||0!==h[Db]||0!==h[Fc])?qb:0>h[Pb]||59<h[Pb]?Pb:0>h[Db]||
|
|
59<h[Db]?Db:0>h[Fc]||999<h[Fc]?Fc:-1,z(f)._overflowDayOfYear&&(h<Jb||h>ub)&&(h=ub),z(f)._overflowWeeks&&-1===h&&(h=Lb),z(f)._overflowWeekday&&-1===h&&(h=$d),z(f).overflow=h);return f}function xb(f){var h=f._i;var e=ae.exec(h)||Fe.exec(h);var n=yd.length;var r=be.length;if(e){z(f).iso=!0;for(h=0;h<n;h++)if(yd[h][1].exec(e[1])){var w=yd[h][0];var fa=!1!==yd[h][2];break}if(null==w)f._isValid=!1;else{if(e[3]){h=0;for(n=r;h<n;h++)if(be[h][1].exec(e[3])){var ja=(e[2]||" ")+be[h][0];break}if(null==ja){f._isValid=
|
|
!1;return}}if(fa||null==ja){if(e[4])if(Lf.exec(e[4]))var aa="Z";else{f._isValid=!1;return}f._f=w+(ja||"")+(aa||"");Ac(f)}else f._isValid=!1}}else f._isValid=!1}function pd(f){var h=ce.exec(f._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(h){var e=h[2],n=h[5],r=h[6],w=h[7],fa=parseInt(h[4],10);e=[49>=fa?2E3+fa:999>=fa?1900+fa:fa,Jg.indexOf(h[3]),parseInt(e,10),parseInt(n,10),parseInt(r,10)];w&&e.push(parseInt(w,10));(w=h[1])&&$c.indexOf(w)!==
|
|
(new Date(e[0],e[1],e[2])).getDay()?(z(f).weekdayMismatch=!0,w=f._isValid=!1):w=!0;w&&(f._a=e,(w=h[8])?h=ee[w]:h[9]?h=0:(h=parseInt(h[10],10),w=h%100,h=(h-w)/100*60+w),f._tzm=h,f._d=bb.apply(null,f._a),f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),z(f).rfc2822=!0)}else f._isValid=!1}function Pd(f){var h=He.exec(f._i);null!==h?f._d=new Date(+h[1]):(xb(f),!1===f._isValid&&(delete f._isValid,pd(f),!1===f._isValid&&(delete f._isValid,f._strict?f._isValid=!1:x.createFromInputFallback(f))))}function zc(f,
|
|
h,e){return null!=f?f:null!=h?h:e}function Wc(f){var h=[];if(!f._d){var e=new Date(x.now());e=f._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()];if(f._w&&null==f._a[ub]&&null==f._a[ib]){var n=f._w;if(null!=n.GG||null!=n.W||null!=n.E){var r=1;var w=4;var fa=zc(n.GG,f._a[Jb],bc(gb(),1,4).year);var ja=zc(n.W,1);var aa=zc(n.E,1);if(1>aa||7<aa)var y=!0}else if(r=f._locale._week.dow,w=f._locale._week.doy,ja=bc(gb(),r,w),fa=zc(n.gg,f._a[Jb],ja.year),
|
|
ja=zc(n.w,ja.week),null!=n.d){if(aa=n.d,0>aa||6<aa)y=!0}else if(null!=n.e){if(aa=n.e+r,0>n.e||6<n.e)y=!0}else aa=r;1>ja||ja>Fb(fa,r,w)?z(f)._overflowWeeks=!0:null!=y?z(f)._overflowWeekday=!0:(y=Tb(fa,ja,aa,r,w),f._a[Jb]=y.year,f._dayOfYear=y.dayOfYear)}if(null!=f._dayOfYear){y=zc(f._a[Jb],e[Jb]);if(f._dayOfYear>(Ia(y)?366:365)||0===f._dayOfYear)z(f)._overflowDayOfYear=!0;y=bb(y,0,f._dayOfYear);f._a[ib]=y.getUTCMonth();f._a[ub]=y.getUTCDate()}for(y=0;3>y&&null==f._a[y];++y)f._a[y]=h[y]=e[y];for(;7>
|
|
y;y++)f._a[y]=h[y]=null==f._a[y]?2===y?1:0:f._a[y];24===f._a[qb]&&0===f._a[Pb]&&0===f._a[Db]&&0===f._a[Fc]&&(f._nextDay=!0,f._a[qb]=0);f._d=(f._useUTC?bb:sc).apply(null,h);h=f._useUTC?f._d.getUTCDay():f._d.getDay();null!=f._tzm&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm);f._nextDay&&(f._a[qb]=24);f._w&&"undefined"!==typeof f._w.d&&f._w.d!==h&&(z(f).weekdayMismatch=!0)}}function Ac(f){if(f._f===x.ISO_8601)xb(f);else if(f._f===x.RFC_2822)pd(f);else{f._a=[];z(f).empty=!0;var h=""+f._i,e,n,r=h.length,
|
|
w=0;var fa=ia(f._f,f._locale).match(Ff)||[];var ja=fa.length;for(e=0;e<ja;e++){var y=fa[e];if(n=(h.match(Na(y,f))||[])[0]){var aa=h.substr(0,h.indexOf(n));0<aa.length&&z(f).unusedInput.push(aa);h=h.slice(h.indexOf(n)+n.length);w+=n.length}if(Hb[y]){if(n?z(f).empty=!1:z(f).unusedTokens.push(y),aa=f,null!=n&&da(Zc,y))Zc[y](n,aa._a,aa,y)}else f._strict&&!n&&z(f).unusedTokens.push(y)}z(f).charsLeftOver=r-w;0<h.length&&z(f).unusedInput.push(h);12>=f._a[qb]&&!0===z(f).bigHour&&0<f._a[qb]&&(z(f).bigHour=
|
|
void 0);z(f).parsedDateParts=f._a.slice(0);z(f).meridiem=f._meridiem;h=f._a;e=qb;r=f._locale;fa=f._a[qb];w=f._meridiem;null!=w&&(null!=r.meridiemHour?fa=r.meridiemHour(fa,w):null!=r.isPM&&((r=r.isPM(w))&&12>fa&&(fa+=12),r||12!==fa||(fa=0)));h[e]=fa;h=z(f).era;null!==h&&(f._a[Jb]=f._locale.erasConvertYear(h,f._a[Jb]));Wc(f);dd(f)}}function qd(f){if(!f._d){var e=Ga(f._i);f._a=h([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],function(f){return f&&parseInt(f,10)});
|
|
Wc(f)}}function re(h){var e=h._i,r=h._f;h._locale=h._locale||Wb(h._l);if(null===e||void 0===r&&""===e)return ka({nullInput:!0});"string"===typeof e&&(h._i=e=h._locale.preparse(e));if(ma(e))return new pa(dd(e));if(n(e))h._d=e;else if(ha(r)){var w=!1,y=h._f.length;if(0===y)z(h).invalidFormat=!0,h._d=new Date(NaN);else{for(e=0;e<y;e++){r=0;var aa=!1;var da=ja({},h);null!=h._useUTC&&(da._useUTC=h._useUTC);da._f=h._f[e];Ac(da);fa(da)&&(aa=!0);r+=z(da).charsLeftOver;r+=10*z(da).unusedTokens.length;z(da).score=
|
|
r;if(w)r<na&&(na=r,x=da);else if(null==na||r<na||aa){var na=r;var x=da;aa&&(w=!0)}}f(h,x||da)}}else r?Ac(h):Cf(h);fa(h)||(h._d=null);return h}function Cf(f){var e=f._i;w(e)?f._d=new Date(x.now()):n(e)?f._d=new Date(e.valueOf()):"string"===typeof e?Pd(f):ha(e)?(f._a=h(e.slice(0),function(f){return parseInt(f,10)}),Wc(f)):ca(e)?qd(f):y(e)?f._d=new Date(e):x.createFromInputFallback(f)}function se(f,h,e,n,r){var z={};if(!0===h||!1===h)n=h,h=void 0;if(!0===e||!1===e)n=e,e=void 0;if(ca(f)&&aa(f)||ha(f)&&
|
|
0===f.length)f=void 0;z._isAMomentObject=!0;z._useUTC=z._isUTC=r;z._l=e;z._i=f;z._f=h;z._strict=n;f=new pa(dd(re(z)));f._nextDay&&(f.add(1,"d"),f._nextDay=void 0);return f}function gb(f,h,e,n){return se(f,h,e,n,!1)}function ed(f,h){var e;1===h.length&&ha(h[0])&&(h=h[0]);if(!h.length)return gb();var n=h[0];for(e=1;e<h.length;++e)if(!h[e].isValid()||h[e][f](n))n=h[e];return n}function rd(f){var h=Ga(f);f=h.year||0;var e=h.quarter||0,n=h.month||0,r=h.week||h.isoWeek||0,z=h.day||0,w=h.hour||0,fa=h.minute||
|
|
0,ja=h.second||0,y=h.millisecond||0;a:{var aa,ka=!1,na=ad.length;for(aa in h)if(da(h,aa)&&(-1===vb.call(ad,aa)||null!=h[aa]&&isNaN(h[aa]))){h=!1;break a}for(aa=0;aa<na;++aa)if(h[ad[aa]]){if(ka){h=!1;break a}parseFloat(h[ad[aa]])!==za(h[ad[aa]])&&(ka=!0)}h=!0}this._isValid=h;this._milliseconds=+y+1E3*ja+6E4*fa+36E5*w;this._days=+z+7*r;this._months=+n+3*e+12*f;this._data={};this._locale=Wb();this._bubble()}function sd(f){return f instanceof rd}function Qd(f){return 0>f?-1*Math.round(-1*f):Math.round(f)}
|
|
function Uc(f,h){oa(f,0,0,function(){var f=this.utcOffset(),e="+";0>f&&(f=-f,e="-");return e+ba(~~(f/60),2)+h+ba(~~f%60,2)})}function Rd(f,h){f=(h||"").match(f);if(null===f)return null;f=((f[f.length-1]||[])+"").match(zd)||["-",0,0];h=+(60*f[1])+za(f[2]);return 0===h?0:"+"===f[0]?h:-h}function yc(f,h){return h._isUTC?(h=h.clone(),f=(ma(f)||n(f)?f.valueOf():gb(f).valueOf())-h.valueOf(),h._d.setTime(h._d.valueOf()+f),h):gb(f).local()}function te(){return this.isValid()?this._isUTC&&0===this._offset:
|
|
!1}function ic(f,h){var e=f;sd(f)?e={ms:f._milliseconds,d:f._days,M:f._months}:y(f)||!isNaN(+f)?(e={},h?e[h]=+f:e.milliseconds=+f):(h=Le.exec(f))?(e="-"===h[1]?-1:1,e={y:0,d:za(h[ub])*e,h:za(h[qb])*e,m:za(h[Pb])*e,s:za(h[Db])*e,ms:za(Qd(1E3*h[Fc]))*e}):(h=Me.exec(f))?(e="-"===h[1]?-1:1,e={y:Kc(h[2],e),M:Kc(h[3],e),w:Kc(h[4],e),d:Kc(h[5],e),h:Kc(h[6],e),m:Kc(h[7],e),s:Kc(h[8],e)}):null==e?e={}:"object"===typeof e&&("from"in e||"to"in e)&&(h=gb(e.from),e=gb(e.to),h.isValid()&&e.isValid()?(e=yc(e,h),
|
|
h.isBefore(e)?e=eb(h,e):(e=eb(e,h),e.milliseconds=-e.milliseconds,e.months=-e.months),h=e):h={milliseconds:0,months:0},e={},e.ms=h.milliseconds,e.M=h.months);e=new rd(e);sd(f)&&da(f,"_locale")&&(e._locale=f._locale);sd(f)&&da(f,"_isValid")&&(e._isValid=f._isValid);return e}function Kc(f,h){f=f&&parseFloat(f.replace(",","."));return(isNaN(f)?0:f)*h}function eb(f,h){var e={};e.months=h.month()-f.month()+12*(h.year()-f.year());f.clone().add(e.months,"M").isAfter(h)&&--e.months;e.milliseconds=+h-+f.clone().add(e.months,
|
|
"M");return e}function cb(f,h){return function(e,n){if(null!==n&&!isNaN(+n)){ra(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");var r=e;e=n;n=r}e=ic(e,n);od(this,e,f);return this}}function od(f,h,e){var n=h._milliseconds,r=Qd(h._days);h=Qd(h._months);f.isValid()&&(h&&Oa(f,Ka(f,"Month")+h*e),r&&ta(f,"Date",Ka(f,"Date")+r*e),n&&f._d.setTime(f._d.valueOf()+n*e))}function ue(f){return"string"===
|
|
typeof f||f instanceof String}function Df(f){var h=ha(f),e=!1;h&&(e=0===f.filter(function(h){return!y(h)&&ue(f)}).length);return h&&e}function Bc(f,h){if(f.date()<h.date())return-Bc(h,f);var e=12*(h.year()-f.year())+(h.month()-f.month()),n=f.clone().add(e,"months");0>h-n?(f=f.clone().add(e-1,"months"),h=(h-n)/(n-f)):(f=f.clone().add(e+1,"months"),h=(h-n)/(f-n));return-(e+h)||0}function td(f){if(void 0===f)return this._locale._abbr;f=Wb(f);null!=f&&(this._locale=f);return this}function yb(){return this._locale}
|
|
function kc(f,h){return(f%h+h)%h}function Cc(f,h,e){return 100>f&&0<=f?new Date(f+400,h,e)-126227808E5:(new Date(f,h,e)).valueOf()}function Sd(f,h,e){return 100>f&&0<=f?Date.UTC(f+400,h,e)-126227808E5:Date.UTC(f,h,e)}function Lc(f,h){return h.erasAbbrRegex(f)}function ob(){var f=[],h=[],e=[],n=[],r,z=this.eras();var w=0;for(r=z.length;w<r;++w)h.push(Ma(z[w].name)),f.push(Ma(z[w].abbr)),e.push(Ma(z[w].narrow)),n.push(Ma(z[w].name)),n.push(Ma(z[w].abbr)),n.push(Ma(z[w].narrow));this._erasRegex=new RegExp("^("+
|
|
n.join("|")+")","i");this._erasNameRegex=new RegExp("^("+h.join("|")+")","i");this._erasAbbrRegex=new RegExp("^("+f.join("|")+")","i");this._erasNarrowRegex=new RegExp("^("+e.join("|")+")","i")}function fd(f,h){oa(0,[f,f.length],0,h)}function Td(f,h,e,n,r){if(null==f)return bc(this,n,r).year;var z=Fb(f,n,r);h>z&&(h=z);f=Tb(f,h,e,n,r);f=bb(f.year,0,f.dayOfYear);this.year(f.getUTCFullYear());this.month(f.getUTCMonth());this.date(f.getUTCDate());return this}function ve(f,h){h[Fc]=za(1E3*("0."+f))}function Ud(f){return f}
|
|
function gd(f,h,e,n){var z=Wb();h=r().set(n,h);return z[e](h,f)}function Vd(f,h,e){y(f)&&(h=f,f=void 0);f=f||"";if(null!=h)return gd(f,h,e,"month");var n=[];for(h=0;12>h;h++)n[h]=gd(f,h,e,"month");return n}function Vc(f,h,e,n){"boolean"!==typeof f&&(e=h=f,f=!1);y(h)&&(e=h,h=void 0);h=h||"";var r=Wb();f=f?r._week.dow:0;r=[];if(null!=e)return gd(h,(e+f)%7,n,"day");for(e=0;7>e;e++)r[e]=gd(h,(e+f)%7,n,"day");return r}function we(f,h,e,n){h=ic(h,e);f._milliseconds+=n*h._milliseconds;f._days+=n*h._days;
|
|
f._months+=n*h._months;return f._bubble()}function xe(f){return 0>f?Math.floor(f):Math.ceil(f)}function tc(f){return function(){return this.as(f)}}function qc(f){return function(){return this.isValid()?this._data[f]:NaN}}function gi(f,h,e,n,r){return r.relativeTime(h||1,!!e,f,n)}function rc(f){return(0<f)-(0>f)||+f}function nd(){if(!this.isValid())return this.localeData().invalidDate();var f=vd(this._milliseconds)/1E3,h=vd(this._days),e=vd(this._months),n=this.asSeconds();if(!n)return"P0D";var r=
|
|
Ja(f/60);var z=Ja(r/60);f%=60;r%=60;var w=Ja(e/12);e%=12;var fa=f?f.toFixed(3).replace(/\.?0+$/,""):"";var ja=rc(this._months)!==rc(n)?"-":"";var aa=rc(this._days)!==rc(n)?"-":"";var y=rc(this._milliseconds)!==rc(n)?"-":"";return(0>n?"-":"")+"P"+(w?ja+w+"Y":"")+(e?ja+e+"M":"")+(h?aa+h+"D":"")+(z||r||f?"T":"")+(z?y+z+"H":"")+(r?y+r+"M":"")+(f?y+fa+"S":"")}var hi=Array.prototype.some?Array.prototype.some:function(f){var h=Object(this),e=h.length>>>0,n;for(n=0;n<e;n++)if(n in h&&f.call(this,h[n],n,h))return!0;
|
|
return!1};var yg=x.momentProperties=[],Bf=!1,zg={};x.suppressDeprecationWarnings=!1;x.deprecationHandler=null;var ji=Object.keys?Object.keys:function(f){var h,e=[];for(h in f)da(f,h)&&e.push(h);return e};var Ff=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ye=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gf={},Hb={},Wd={},zb={},Bg=/\d/,Xb=/\d\d/,
|
|
Cg=/\d{3}/,Nc=/\d{4}/,Oc=/[+-]?\d{6}/,hb=/\d\d?/,Dg=/\d\d\d\d?/,Eg=/\d\d\d\d\d\d?/,dc=/\d{1,3}/,id=/\d{1,4}/,lc=/[+-]?\d{1,6}/,Cb=/\d+/,Be=/[+-]?\d+/,qi=/Z|[+-]\d\d:?\d\d/gi,jd=/Z|[+-]\d\d(?::?\d\d)?/gi,vc=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;var Zd={};var Zc={},Jb=0,ib=1,ub=2,qb=3,Pb=4,Db=5,Fc=6,Lb=7,$d=8;var vb=Array.prototype.indexOf?Array.prototype.indexOf:function(f){var h;for(h=
|
|
0;h<this.length;++h)if(this[h]===f)return h;return-1};oa("M",["MM",2],"Mo",function(){return this.month()+1});oa("MMM",0,0,function(f){return this.localeData().monthsShort(this,f)});oa("MMMM",0,0,function(f){return this.localeData().months(this,f)});Aa("month","M");zb.month=8;Ha("M",hb);Ha("MM",hb,Xb);Ha("MMM",function(f,h){return h.monthsShortRegex(f)});Ha("MMMM",function(f,h){return h.monthsRegex(f)});wa(["M","MM"],function(f,h){h[ib]=za(f)-1});wa(["MMM","MMMM"],function(f,h,e,n){n=e._locale.monthsParse(f,
|
|
n,e._strict);null!=n?h[ib]=n:z(e).invalidMonth=f});var Jg="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),wd=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;oa("Y",0,0,function(){var f=this.year();return 9999>=f?ba(f,4):"+"+f});oa(0,["YY",2],0,function(){return this.year()%100});oa(0,["YYYY",4],0,"year");oa(0,["YYYYY",5],0,"year");oa(0,["YYYYYY",6,!0],0,"year");Aa("year","y");zb.year=1;Ha("Y",Be);Ha("YY",hb,Xb);Ha("YYYY",id,Nc);Ha("YYYYY",lc,Oc);Ha("YYYYYY",lc,Oc);wa(["YYYYY","YYYYYY"],Jb);wa("YYYY",
|
|
function(f,h){h[Jb]=2===f.length?x.parseTwoDigitYear(f):za(f)});wa("YY",function(f,h){h[Jb]=x.parseTwoDigitYear(f)});wa("Y",function(f,h){h[Jb]=parseInt(f,10)});x.parseTwoDigitYear=function(f){return za(f)+(68<za(f)?1900:2E3)};var Kg=xa("FullYear",!0);oa("w",["ww",2],"wo","week");oa("W",["WW",2],"Wo","isoWeek");Aa("week","w");Aa("isoWeek","W");zb.week=5;zb.isoWeek=5;Ha("w",hb);Ha("ww",hb,Xb);Ha("W",hb);Ha("WW",hb,Xb);Pa(["w","ww","W","WW"],function(f,h,e,n){h[n.substr(0,1)]=za(f)});oa("d",0,"do",
|
|
"day");oa("dd",0,0,function(f){return this.localeData().weekdaysMin(this,f)});oa("ddd",0,0,function(f){return this.localeData().weekdaysShort(this,f)});oa("dddd",0,0,function(f){return this.localeData().weekdays(this,f)});oa("e",0,0,"weekday");oa("E",0,0,"isoWeekday");Aa("day","d");Aa("weekday","e");Aa("isoWeekday","E");zb.day=11;zb.weekday=11;zb.isoWeekday=11;Ha("d",hb);Ha("e",hb);Ha("E",hb);Ha("dd",function(f,h){return h.weekdaysMinRegex(f)});Ha("ddd",function(f,h){return h.weekdaysShortRegex(f)});
|
|
Ha("dddd",function(f,h){return h.weekdaysRegex(f)});Pa(["dd","ddd","dddd"],function(f,h,e,n){n=e._locale.weekdaysParse(f,n,e._strict);null!=n?h.d=n:z(e).invalidWeekday=f});Pa(["d","e","E"],function(f,h,e,n){h[n]=za(f)});var $c="Sun Mon Tue Wed Thu Fri Sat".split(" ");oa("H",["HH",2],0,"hour");oa("h",["hh",2],0,Ub);oa("k",["kk",2],0,function(){return this.hours()||24});oa("hmm",0,0,function(){return""+Ub.apply(this)+ba(this.minutes(),2)});oa("hmmss",0,0,function(){return""+Ub.apply(this)+ba(this.minutes(),
|
|
2)+ba(this.seconds(),2)});oa("Hmm",0,0,function(){return""+this.hours()+ba(this.minutes(),2)});oa("Hmmss",0,0,function(){return""+this.hours()+ba(this.minutes(),2)+ba(this.seconds(),2)});Ic("a",!0);Ic("A",!1);Aa("hour","h");zb.hour=13;Ha("a",Vb);Ha("A",Vb);Ha("H",hb);Ha("h",hb);Ha("k",hb);Ha("HH",hb,Xb);Ha("hh",hb,Xb);Ha("kk",hb,Xb);Ha("hmm",Dg);Ha("hmmss",Eg);Ha("Hmm",Dg);Ha("Hmmss",Eg);wa(["H","HH"],qb);wa(["k","kk"],function(f,h){f=za(f);h[qb]=24===f?0:f});wa(["a","A"],function(f,h,e){e._isPm=
|
|
e._locale.isPM(f);e._meridiem=f});wa(["h","hh"],function(f,h,e){h[qb]=za(f);z(e).bigHour=!0});wa("hmm",function(f,h,e){var n=f.length-2;h[qb]=za(f.substr(0,n));h[Pb]=za(f.substr(n));z(e).bigHour=!0});wa("hmmss",function(f,h,e){var n=f.length-4,r=f.length-2;h[qb]=za(f.substr(0,n));h[Pb]=za(f.substr(n,2));h[Db]=za(f.substr(r));z(e).bigHour=!0});wa("Hmm",function(f,h){var e=f.length-2;h[qb]=za(f.substr(0,e));h[Pb]=za(f.substr(e))});wa("Hmmss",function(f,h){var e=f.length-4,n=f.length-2;h[qb]=za(f.substr(0,
|
|
e));h[Pb]=za(f.substr(e,2));h[Db]=za(f.substr(n))});var De=xa("Hours",!0),Ee={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",
|
|
ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January February March April May June July August September October November December".split(" "),monthsShort:Jg,week:{dow:0,doy:6},weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysMin:"Su Mo Tu We Th Fr Sa".split(" "),weekdaysShort:$c,meridiemParse:/[ap]\.?m?\.?/i},kb={},fc={},xd,ae=
|
|
/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Fe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lf=/Z|[+-]\d\d(?::?\d\d)?/,yd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,
|
|
!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],He=/^\/?Date\((-?\d+)/i,ce=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
|
ee={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};x.createFromInputFallback=na("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(f){f._d=new Date(f._i+(f._useUTC?" UTC":""))});x.ISO_8601=function(){};x.RFC_2822=function(){};
|
|
var Je=na("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=gb.apply(null,arguments);return this.isValid()&&f.isValid()?f<this?this:f:ka()}),Ie=na("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var f=gb.apply(null,arguments);return this.isValid()&&f.isValid()?f>this?this:f:ka()}),ad="year quarter month week day hour minute second millisecond".split(" ");Uc("Z",":");
|
|
Uc("ZZ","");Ha("Z",jd);Ha("ZZ",jd);wa(["Z","ZZ"],function(f,h,e){e._useUTC=!0;e._tzm=Rd(jd,f)});var zd=/([\+\-]|\d\d)/gi;x.updateOffset=function(){};var Le=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Me=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ic.fn=rd.prototype;ic.invalid=function(){return ic(NaN)};var Qf=cb(1,"add"),Ne=cb(-1,"subtract");x.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";
|
|
x.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Oe=na("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(f){return void 0===f?this.localeData():this.locale(f)});oa("N",0,0,"eraAbbr");oa("NN",0,0,"eraAbbr");oa("NNN",0,0,"eraAbbr");oa("NNNN",0,0,"eraName");oa("NNNNN",0,0,"eraNarrow");oa("y",["y",1],"yo","eraYear");oa("y",["yy",2],0,"eraYear");oa("y",["yyy",3],0,"eraYear");oa("y",["yyyy",4],0,"eraYear");
|
|
Ha("N",Lc);Ha("NN",Lc);Ha("NNN",Lc);Ha("NNNN",function(f,h){return h.erasNameRegex(f)});Ha("NNNNN",function(f,h){return h.erasNarrowRegex(f)});wa(["N","NN","NNN","NNNN","NNNNN"],function(f,h,e,n){(h=e._locale.erasParse(f,n,e._strict))?z(e).era=h:z(e).invalidEra=f});Ha("y",Cb);Ha("yy",Cb);Ha("yyy",Cb);Ha("yyyy",Cb);Ha("yo",function(f,h){return h._eraYearOrdinalRegex||Cb});wa(["y","yy","yyy","yyyy"],Jb);wa(["yo"],function(f,h,e){var n;e._locale._eraYearOrdinalRegex&&(n=f.match(e._locale._eraYearOrdinalRegex));
|
|
h[Jb]=e._locale.eraYearOrdinalParse?e._locale.eraYearOrdinalParse(f,n):parseInt(f,10)});oa(0,["gg",2],0,function(){return this.weekYear()%100});oa(0,["GG",2],0,function(){return this.isoWeekYear()%100});fd("gggg","weekYear");fd("ggggg","weekYear");fd("GGGG","isoWeekYear");fd("GGGGG","isoWeekYear");Aa("weekYear","gg");Aa("isoWeekYear","GG");zb.weekYear=1;zb.isoWeekYear=1;Ha("G",Be);Ha("g",Be);Ha("GG",hb,Xb);Ha("gg",hb,Xb);Ha("GGGG",id,Nc);Ha("gggg",id,Nc);Ha("GGGGG",lc,Oc);Ha("ggggg",lc,Oc);Pa(["gggg",
|
|
"ggggg","GGGG","GGGGG"],function(f,h,e,n){h[n.substr(0,2)]=za(f)});Pa(["gg","GG"],function(f,h,e,n){h[n]=x.parseTwoDigitYear(f)});oa("Q",0,"Qo","quarter");Aa("quarter","Q");zb.quarter=7;Ha("Q",Bg);wa("Q",function(f,h){h[ib]=3*(za(f)-1)});oa("D",["DD",2],"Do","date");Aa("date","D");zb.date=9;Ha("D",hb);Ha("DD",hb,Xb);Ha("Do",function(f,h){return f?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient});wa(["D","DD"],ub);wa("Do",function(f,h){h[ub]=za(f.match(hb)[0])});var Ad=
|
|
xa("Date",!0);oa("DDD",["DDDD",3],"DDDo","dayOfYear");Aa("dayOfYear","DDD");zb.dayOfYear=4;Ha("DDD",dc);Ha("DDDD",Cg);wa(["DDD","DDDD"],function(f,h,e){e._dayOfYear=za(f)});oa("m",["mm",2],0,"minute");Aa("minute","m");zb.minute=14;Ha("m",hb);Ha("mm",hb,Xb);wa(["m","mm"],Pb);var Qe=xa("Minutes",!1);oa("s",["ss",2],0,"second");Aa("second","s");zb.second=15;Ha("s",hb);Ha("ss",hb,Xb);wa(["s","ss"],Db);var Xd=xa("Seconds",!1);oa("S",0,0,function(){return~~(this.millisecond()/100)});oa(0,["SS",2],0,function(){return~~(this.millisecond()/
|
|
10)});oa(0,["SSS",3],0,"millisecond");oa(0,["SSSS",4],0,function(){return 10*this.millisecond()});oa(0,["SSSSS",5],0,function(){return 100*this.millisecond()});oa(0,["SSSSSS",6],0,function(){return 1E3*this.millisecond()});oa(0,["SSSSSSS",7],0,function(){return 1E4*this.millisecond()});oa(0,["SSSSSSSS",8],0,function(){return 1E5*this.millisecond()});oa(0,["SSSSSSSSS",9],0,function(){return 1E6*this.millisecond()});Aa("millisecond","ms");zb.millisecond=16;Ha("S",dc,Bg);Ha("SS",dc,Xb);Ha("SSS",dc,Cg);
|
|
var oc;for(oc="SSSS";9>=oc.length;oc+="S")Ha(oc,Cb);for(oc="S";9>=oc.length;oc+="S")wa(oc,ve);var Va=xa("Milliseconds",!1);oa("z",0,0,"zoneAbbr");oa("zz",0,0,"zoneName");var La=pa.prototype;La.add=Qf;La.calendar=function(f,h){if(1===arguments.length)if(arguments[0]){var e=arguments[0],r;if(!(r=ma(e)||n(e)||ue(e)||y(e)||Df(e))){r=ca(e)&&!aa(e);var z=!1,w="years year y months month M days day d dates date D hours hour h minutes minute m seconds second s milliseconds millisecond ms".split(" "),fa,ja=
|
|
w.length;for(fa=0;fa<ja;fa+=1){var ka=w[fa];z=z||da(e,ka)}r=r&&z}if(r||null===e||void 0===e)f=arguments[0],h=void 0;else{e=arguments[0];r=ca(e)&&!aa(e);z=!1;w="sameDay nextDay lastDay nextWeek lastWeek sameElse".split(" ");for(fa=0;fa<w.length;fa+=1)ka=w[fa],z=z||da(e,ka);r&&z&&(h=arguments[0],f=void 0)}}else h=f=void 0;e=f||gb();r=yc(e,this).startOf("day");r=x.calendarFormat(this,r)||"sameElse";z=h&&(sa(h[r])?h[r].call(this,e):h[r]);return this.format(z||this.localeData().calendar(r,this,gb(e)))};
|
|
La.clone=function(){return new pa(this)};La.diff=function(f,h,e){if(!this.isValid())return NaN;f=yc(f,this);if(!f.isValid())return NaN;var n=6E4*(f.utcOffset()-this.utcOffset());h=Fa(h);switch(h){case "year":h=Bc(this,f)/12;break;case "month":h=Bc(this,f);break;case "quarter":h=Bc(this,f)/3;break;case "second":h=(this-f)/1E3;break;case "minute":h=(this-f)/6E4;break;case "hour":h=(this-f)/36E5;break;case "day":h=(this-f-n)/864E5;break;case "week":h=(this-f-n)/6048E5;break;default:h=this-f}return e?
|
|
h:Ja(h)};La.endOf=function(f){f=Fa(f);if(void 0===f||"millisecond"===f||!this.isValid())return this;var h=this._isUTC?Sd:Cc;switch(f){case "year":var e=h(this.year()+1,0,1)-1;break;case "quarter":e=h(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":e=h(this.year(),this.month()+1,1)-1;break;case "week":e=h(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":e=h(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":e=
|
|
h(this.year(),this.month(),this.date()+1)-1;break;case "hour":e=this._d.valueOf();e+=36E5-kc(e+(this._isUTC?0:6E4*this.utcOffset()),36E5)-1;break;case "minute":e=this._d.valueOf();e+=6E4-kc(e,6E4)-1;break;case "second":e=this._d.valueOf(),e+=1E3-kc(e,1E3)-1}this._d.setTime(e);return this};La.format=function(f){f||(f=this.isUtc()?x.defaultFormatUtc:x.defaultFormat);f=ya(this,f);return this.localeData().postformat(f)};La.from=function(f,h){return this.isValid()&&(ma(f)&&f.isValid()||gb(f).isValid())?
|
|
ic({to:this,from:f}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()};La.fromNow=function(f){return this.from(gb(),f)};La.to=function(f,h){return this.isValid()&&(ma(f)&&f.isValid()||gb(f).isValid())?ic({from:this,to:f}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()};La.toNow=function(f){return this.to(gb(),f)};La.get=function(f){f=Fa(f);return sa(this[f])?this[f]():this};La.invalidAt=function(){return z(this).overflow};La.isAfter=function(f,h){f=ma(f)?f:gb(f);
|
|
if(!this.isValid()||!f.isValid())return!1;h=Fa(h)||"millisecond";return"millisecond"===h?this.valueOf()>f.valueOf():f.valueOf()<this.clone().startOf(h).valueOf()};La.isBefore=function(f,h){f=ma(f)?f:gb(f);if(!this.isValid()||!f.isValid())return!1;h=Fa(h)||"millisecond";return"millisecond"===h?this.valueOf()<f.valueOf():this.clone().endOf(h).valueOf()<f.valueOf()};La.isBetween=function(f,h,e,n){f=ma(f)?f:gb(f);h=ma(h)?h:gb(h);if(!(this.isValid()&&f.isValid()&&h.isValid()))return!1;n=n||"()";return("("===
|
|
n[0]?this.isAfter(f,e):!this.isBefore(f,e))&&(")"===n[1]?this.isBefore(h,e):!this.isAfter(h,e))};La.isSame=function(f,h){f=ma(f)?f:gb(f);if(!this.isValid()||!f.isValid())return!1;h=Fa(h)||"millisecond";if("millisecond"===h)return this.valueOf()===f.valueOf();f=f.valueOf();return this.clone().startOf(h).valueOf()<=f&&f<=this.clone().endOf(h).valueOf()};La.isSameOrAfter=function(f,h){return this.isSame(f,h)||this.isAfter(f,h)};La.isSameOrBefore=function(f,h){return this.isSame(f,h)||this.isBefore(f,
|
|
h)};La.isValid=function(){return fa(this)};La.lang=Oe;La.locale=td;La.localeData=yb;La.max=Ie;La.min=Je;La.parsingFlags=function(){return f({},z(this))};La.set=function(f,h){if("object"===typeof f){f=Ga(f);h=Ba(f);var e,n=h.length;for(e=0;e<n;e++)this[h[e].unit](f[h[e].unit])}else if(f=Fa(f),sa(this[f]))return this[f](h);return this};La.startOf=function(f){f=Fa(f);if(void 0===f||"millisecond"===f||!this.isValid())return this;var h=this._isUTC?Sd:Cc;switch(f){case "year":var e=h(this.year(),0,1);break;
|
|
case "quarter":e=h(this.year(),this.month()-this.month()%3,1);break;case "month":e=h(this.year(),this.month(),1);break;case "week":e=h(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":e=h(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":e=h(this.year(),this.month(),this.date());break;case "hour":e=this._d.valueOf();e-=kc(e+(this._isUTC?0:6E4*this.utcOffset()),36E5);break;case "minute":e=this._d.valueOf();e-=kc(e,6E4);break;case "second":e=
|
|
this._d.valueOf(),e-=kc(e,1E3)}this._d.setTime(e);return this};La.subtract=Ne;La.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]};La.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}};La.toDate=function(){return new Date(this.valueOf())};La.toISOString=function(f){if(!this.isValid())return null;
|
|
var h=(f=!0!==f)?this.clone().utc():this;return 0>h.year()||9999<h.year()?ya(h,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):sa(Date.prototype.toISOString)?f?this.toDate().toISOString():(new Date(this.valueOf()+6E4*this.utcOffset())).toISOString().replace("Z",ya(h,"Z")):ya(h,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")};La.inspect=function(){if(!this.isValid())return"moment.invalid()";var f="moment",h="";this.isLocal()||(f=0===this.utcOffset()?"moment.utc":"moment.parseZone",
|
|
h="Z");f="["+f+'("]';var e=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY";return this.format(f+e+"-MM-DD[T]HH:mm:ss.SSS"+(h+'[")]'))};rb();rb();"undefined"!==typeof Symbol&&null!=Symbol.for&&(rb(),La[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});La.toJSON=function(){return this.isValid()?this.toISOString():null};La.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")};La.unix=function(){return Math.floor(this.valueOf()/
|
|
1E3)};La.valueOf=function(){return this._d.valueOf()-6E4*(this._offset||0)};La.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}};La.eraName=function(){var f,h=this.localeData().eras();var e=0;for(f=h.length;e<f;++e){var n=this.clone().startOf("day").valueOf();if(h[e].since<=n&&n<=h[e].until||h[e].until<=n&&n<=h[e].since)return h[e].name}return""};La.eraNarrow=function(){var f,h=this.localeData().eras();var e=0;for(f=h.length;e<
|
|
f;++e){var n=this.clone().startOf("day").valueOf();if(h[e].since<=n&&n<=h[e].until||h[e].until<=n&&n<=h[e].since)return h[e].narrow}return""};La.eraAbbr=function(){var f,h=this.localeData().eras();var e=0;for(f=h.length;e<f;++e){var n=this.clone().startOf("day").valueOf();if(h[e].since<=n&&n<=h[e].until||h[e].until<=n&&n<=h[e].since)return h[e].abbr}return""};La.eraYear=function(){var f,h=this.localeData().eras();var e=0;for(f=h.length;e<f;++e){var n=h[e].since<=h[e].until?1:-1;var r=this.clone().startOf("day").valueOf();
|
|
if(h[e].since<=r&&r<=h[e].until||h[e].until<=r&&r<=h[e].since)return(this.year()-x(h[e].since).year())*n+h[e].offset}return this.year()};La.year=Kg;La.isLeapYear=function(){return Ia(this.year())};La.weekYear=function(f){return Td.call(this,f,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)};La.isoWeekYear=function(f){return Td.call(this,f,this.isoWeek(),this.isoWeekday(),1,4)};La.quarter=La.quarters=function(f){return null==f?Math.ceil((this.month()+1)/3):this.month(3*
|
|
(f-1)+this.month()%3)};La.month=Ta;La.daysInMonth=function(){return Qa(this.year(),this.month())};La.week=La.weeks=function(f){var h=this.localeData().week(this);return null==f?h:this.add(7*(f-h),"d")};La.isoWeek=La.isoWeeks=function(f){var h=bc(this,1,4).week;return null==f?h:this.add(7*(f-h),"d")};La.weeksInYear=function(){var f=this.localeData()._week;return Fb(this.year(),f.dow,f.doy)};La.weeksInWeekYear=function(){var f=this.localeData()._week;return Fb(this.weekYear(),f.dow,f.doy)};La.isoWeeksInYear=
|
|
function(){return Fb(this.year(),1,4)};La.isoWeeksInISOWeekYear=function(){return Fb(this.isoWeekYear(),1,4)};La.date=Ad;La.day=La.days=function(f){if(!this.isValid())return null!=f?this:NaN;var h=this._isUTC?this._d.getUTCDay():this._d.getDay();if(null!=f){var e=this.localeData();"string"===typeof f&&(isNaN(f)?(f=e.weekdaysParse(f),f="number"===typeof f?f:null):f=parseInt(f,10));return this.add(f-h,"d")}return h};La.weekday=function(f){if(!this.isValid())return null!=f?this:NaN;var h=(this.day()+
|
|
7-this.localeData()._week.dow)%7;return null==f?h:this.add(f-h,"d")};La.isoWeekday=function(f){if(!this.isValid())return null!=f?this:NaN;if(null!=f){var h=this.localeData();f="string"===typeof f?h.weekdaysParse(f)%7||7:isNaN(f)?null:f;return this.day(this.day()%7?f:f-7)}return this.day()||7};La.dayOfYear=function(f){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864E5)+1;return null==f?h:this.add(f-h,"d")};La.hour=La.hours=De;La.minute=La.minutes=Qe;La.second=La.seconds=
|
|
Xd;La.millisecond=La.milliseconds=Va;La.utcOffset=function(f,h,e){var n=this._offset||0,r;if(!this.isValid())return null!=f?this:NaN;if(null!=f){if("string"===typeof f){if(f=Rd(jd,f),null===f)return this}else 16>Math.abs(f)&&!e&&(f*=60);!this._isUTC&&h&&(r=-Math.round(this._d.getTimezoneOffset()));this._offset=f;this._isUTC=!0;null!=r&&this.add(r,"m");n!==f&&(!h||this._changeInProgress?od(this,ic(f-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,this._changeInProgress=null));return this}return this._isUTC?
|
|
n:-Math.round(this._d.getTimezoneOffset())};La.utc=function(f){return this.utcOffset(0,f)};La.local=function(f){this._isUTC&&(this.utcOffset(0,f),this._isUTC=!1,f&&this.subtract(-Math.round(this._d.getTimezoneOffset()),"m"));return this};La.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var f=Rd(qi,this._i);null!=f?this.utcOffset(f):this.utcOffset(0,!0)}return this};La.hasAlignedHourOffset=function(f){if(!this.isValid())return!1;f=f?gb(f).utcOffset():
|
|
0;return 0===(this.utcOffset()-f)%60};La.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()};La.isLocal=function(){return this.isValid()?!this._isUTC:!1};La.isUtcOffset=function(){return this.isValid()?this._isUTC:!1};La.isUtc=te;La.isUTC=te;La.zoneAbbr=function(){return this._isUTC?"UTC":""};La.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""};La.dates=na("dates accessor is deprecated. Use date instead.",
|
|
Ad);La.months=na("months accessor is deprecated. Use month instead",Ta);La.years=na("years accessor is deprecated. Use year instead",Kg);La.zone=na("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(f,h){return null!=f?("string"!==typeof f&&(f=-f),this.utcOffset(f,h),this):-this.utcOffset()});La.isDSTShifted=na("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!w(this._isDSTShifted))return this._isDSTShifted;
|
|
var f={};ja(f,this);f=re(f);if(f._a){var h=f._isUTC?r(f._a):gb(f._a);var e;if(e=this.isValid()){f=f._a;h=h.toArray();e=Math.min(f.length,h.length);var n=Math.abs(f.length-h.length),z=0,fa;for(fa=0;fa<e;fa++)za(f[fa])!==za(h[fa])&&z++;e=0<z+n}this._isDSTShifted=e}else this._isDSTShifted=!1;return this._isDSTShifted});var $a=qa.prototype;$a.calendar=function(f,h,e){f=this._calendar[f]||this._calendar.sameElse;return sa(f)?f.call(h,e):f};$a.longDateFormat=function(f){var h=this._longDateFormat[f],e=
|
|
this._longDateFormat[f.toUpperCase()];if(h||!e)return h;this._longDateFormat[f]=e.match(Ff).map(function(f){return"MMMM"===f||"MM"===f||"DD"===f||"dddd"===f?f.slice(1):f}).join("");return this._longDateFormat[f]};$a.invalidDate=function(){return this._invalidDate};$a.ordinal=function(f){return this._ordinal.replace("%d",f)};$a.preparse=Ud;$a.postformat=Ud;$a.relativeTime=function(f,h,e,n){var r=this._relativeTime[e];return sa(r)?r(f,h,e,n):r.replace(/%d/i,f)};$a.pastFuture=function(f,h){f=this._relativeTime[0<
|
|
f?"future":"past"];return sa(f)?f(h):f.replace(/%s/i,h)};$a.set=function(f){var h;for(h in f)if(da(f,h)){var e=f[h];sa(e)?this[h]=e:this["_"+h]=e}this._config=f;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)};$a.eras=function(){var f,h=this._eras||Wb("en")._eras;var e=0;for(f=h.length;e<f;++e){switch(typeof h[e].since){case "string":var n=x(h[e].since).startOf("day");h[e].since=n.valueOf()}switch(typeof h[e].until){case "undefined":h[e].until=
|
|
Infinity;break;case "string":n=x(h[e].until).startOf("day").valueOf(),h[e].until=n.valueOf()}}return h};$a.erasParse=function(f,h,e){var n,r=this.eras();f=f.toUpperCase();var z=0;for(n=r.length;z<n;++z){var w=r[z].name.toUpperCase();var fa=r[z].abbr.toUpperCase();var ja=r[z].narrow.toUpperCase();if(e)switch(h){case "N":case "NN":case "NNN":if(fa===f)return r[z];break;case "NNNN":if(w===f)return r[z];break;case "NNNNN":if(ja===f)return r[z]}else if(0<=[w,fa,ja].indexOf(f))return r[z]}};$a.erasConvertYear=
|
|
function(f,h){var e=f.since<=f.until?1:-1;return void 0===h?x(f.since).year():x(f.since).year()+(h-f.offset)*e};$a.erasAbbrRegex=function(f){da(this,"_erasAbbrRegex")||ob.call(this);return f?this._erasAbbrRegex:this._erasRegex};$a.erasNameRegex=function(f){da(this,"_erasNameRegex")||ob.call(this);return f?this._erasNameRegex:this._erasRegex};$a.erasNarrowRegex=function(f){da(this,"_erasNarrowRegex")||ob.call(this);return f?this._erasNarrowRegex:this._erasRegex};$a.months=function(f,h){return f?ha(this._months)?
|
|
this._months[f.month()]:this._months[(this._months.isFormat||wd).test(h)?"format":"standalone"][f.month()]:ha(this._months)?this._months:this._months.standalone};$a.monthsShort=function(f,h){return f?ha(this._monthsShort)?this._monthsShort[f.month()]:this._monthsShort[wd.test(h)?"format":"standalone"][f.month()]:ha(this._monthsShort)?this._monthsShort:this._monthsShort.standalone};$a.monthsParse=function(f,h,e){var n;if(this._monthsParseExact){a:{f=f.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=
|
|
[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;12>n;++n){var z=r([2E3,n]);this._shortMonthsParse[n]=this.monthsShort(z,"").toLocaleLowerCase();this._longMonthsParse[n]=this.months(z,"").toLocaleLowerCase()}if(e)h="MMM"===h?vb.call(this._shortMonthsParse,f):vb.call(this._longMonthsParse,f);else if("MMM"===h){h=vb.call(this._shortMonthsParse,f);if(-1!==h)break a;h=vb.call(this._longMonthsParse,f)}else{h=vb.call(this._longMonthsParse,f);if(-1!==h)break a;h=vb.call(this._shortMonthsParse,f)}h=
|
|
-1!==h?h:null}return h}this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]);for(n=0;12>n;n++)if(z=r([2E3,n]),e&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(z,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(z,"").replace(".","")+"$","i")),e||this._monthsParse[n]||(z="^"+this.months(z,"")+"|^"+this.monthsShort(z,""),this._monthsParse[n]=new RegExp(z.replace(".",""),"i")),e&&"MMMM"===h&&
|
|
this._longMonthsParse[n].test(f)||e&&"MMM"===h&&this._shortMonthsParse[n].test(f)||!e&&this._monthsParse[n].test(f))return n};$a.monthsRegex=function(f){if(this._monthsParseExact)return da(this,"_monthsRegex")||Nb.call(this),f?this._monthsStrictRegex:this._monthsRegex;da(this,"_monthsRegex")||(this._monthsRegex=vc);return this._monthsStrictRegex&&f?this._monthsStrictRegex:this._monthsRegex};$a.monthsShortRegex=function(f){if(this._monthsParseExact)return da(this,"_monthsRegex")||Nb.call(this),f?this._monthsShortStrictRegex:
|
|
this._monthsShortRegex;da(this,"_monthsShortRegex")||(this._monthsShortRegex=vc);return this._monthsShortStrictRegex&&f?this._monthsShortStrictRegex:this._monthsShortRegex};$a.week=function(f){return bc(f,this._week.dow,this._week.doy).week};$a.firstDayOfYear=function(){return this._week.doy};$a.firstDayOfWeek=function(){return this._week.dow};$a.weekdays=function(f,h){h=ha(this._weekdays)?this._weekdays:this._weekdays[f&&!0!==f&&this._weekdays.isFormat.test(h)?"format":"standalone"];return!0===f?
|
|
Za(h,this._week.dow):f?h[f.day()]:h};$a.weekdaysMin=function(f){return!0===f?Za(this._weekdaysMin,this._week.dow):f?this._weekdaysMin[f.day()]:this._weekdaysMin};$a.weekdaysShort=function(f){return!0===f?Za(this._weekdaysShort,this._week.dow):f?this._weekdaysShort[f.day()]:this._weekdaysShort};$a.weekdaysParse=function(f,h,e){var n;if(this._weekdaysParseExact)return Hc.call(this,f,h,e);this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=
|
|
[]);for(n=0;7>n;n++){var z=r([2E3,1]).day(n);e&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(z,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(z,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(z,"").replace(".","\\.?")+"$","i"));this._weekdaysParse[n]||(z="^"+this.weekdays(z,"")+"|^"+this.weekdaysShort(z,"")+"|^"+this.weekdaysMin(z,""),this._weekdaysParse[n]=new RegExp(z.replace(".",
|
|
""),"i"));if(e&&"dddd"===h&&this._fullWeekdaysParse[n].test(f)||e&&"ddd"===h&&this._shortWeekdaysParse[n].test(f)||e&&"dd"===h&&this._minWeekdaysParse[n].test(f)||!e&&this._weekdaysParse[n].test(f))return n}};$a.weekdaysRegex=function(f){if(this._weekdaysParseExact)return da(this,"_weekdaysRegex")||Gb.call(this),f?this._weekdaysStrictRegex:this._weekdaysRegex;da(this,"_weekdaysRegex")||(this._weekdaysRegex=vc);return this._weekdaysStrictRegex&&f?this._weekdaysStrictRegex:this._weekdaysRegex};$a.weekdaysShortRegex=
|
|
function(f){if(this._weekdaysParseExact)return da(this,"_weekdaysRegex")||Gb.call(this),f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex;da(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vc);return this._weekdaysShortStrictRegex&&f?this._weekdaysShortStrictRegex:this._weekdaysShortRegex};$a.weekdaysMinRegex=function(f){if(this._weekdaysParseExact)return da(this,"_weekdaysRegex")||Gb.call(this),f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex;da(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=
|
|
vc);return this._weekdaysMinStrictRegex&&f?this._weekdaysMinStrictRegex:this._weekdaysMinRegex};$a.isPM=function(f){return"p"===(f+"").toLowerCase().charAt(0)};$a.meridiem=function(f,h,e){return 11<f?e?"pm":"PM":e?"am":"AM"};tb("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-Infinity,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(f){var h=f%10;return f+
|
|
(1===za(f%100/10)?"th":1===h?"st":2===h?"nd":3===h?"rd":"th")}});x.lang=na("moment.lang is deprecated. Use moment.locale instead.",tb);x.langData=na("moment.langData is deprecated. Use moment.localeData instead.",Wb);var Rb=Math.abs,Sf=tc("ms"),Yb=tc("s"),Tf=tc("m"),Cd=tc("h"),he=tc("d"),Se=tc("w"),Te=tc("M"),Zb=tc("Q"),Gc=tc("y"),ge=qc("milliseconds"),Dd=qc("seconds"),Ue=qc("minutes"),ie=qc("hours"),Ve=qc("days"),je=qc("months"),ke=qc("years"),Kb=Math.round,$b={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},
|
|
vd=Math.abs,Xa=rd.prototype;Xa.isValid=function(){return this._isValid};Xa.abs=function(){var f=this._data;this._milliseconds=Rb(this._milliseconds);this._days=Rb(this._days);this._months=Rb(this._months);f.milliseconds=Rb(f.milliseconds);f.seconds=Rb(f.seconds);f.minutes=Rb(f.minutes);f.hours=Rb(f.hours);f.months=Rb(f.months);f.years=Rb(f.years);return this};Xa.add=function(f,h){return we(this,f,h,1)};Xa.subtract=function(f,h){return we(this,f,h,-1)};Xa.as=function(f){if(!this.isValid())return NaN;
|
|
var h=this._milliseconds;f=Fa(f);if("month"===f||"quarter"===f||"year"===f){var e=this._days+h/864E5;e=this._months+4800*e/146097;switch(f){case "month":return e;case "quarter":return e/3;case "year":return e/12}}else switch(e=this._days+Math.round(146097*this._months/4800),f){case "week":return e/7+h/6048E5;case "day":return e+h/864E5;case "hour":return 24*e+h/36E5;case "minute":return 1440*e+h/6E4;case "second":return 86400*e+h/1E3;case "millisecond":return Math.floor(864E5*e)+h;default:throw Error("Unknown unit "+
|
|
f);}};Xa.asMilliseconds=Sf;Xa.asSeconds=Yb;Xa.asMinutes=Tf;Xa.asHours=Cd;Xa.asDays=he;Xa.asWeeks=Se;Xa.asMonths=Te;Xa.asQuarters=Zb;Xa.asYears=Gc;Xa.valueOf=function(){return this.isValid()?this._milliseconds+864E5*this._days+this._months%12*2592E6+31536E6*za(this._months/12):NaN};Xa._bubble=function(){var f=this._milliseconds,h=this._days,e=this._months,n=this._data;0<=f&&0<=h&&0<=e||0>=f&&0>=h&&0>=e||(f+=864E5*xe(146097*e/4800+h),e=h=0);n.milliseconds=f%1E3;f=Ja(f/1E3);n.seconds=f%60;f=Ja(f/60);
|
|
n.minutes=f%60;f=Ja(f/60);n.hours=f%24;h+=Ja(f/24);f=Ja(4800*h/146097);e+=f;h-=xe(146097*f/4800);f=Ja(e/12);n.days=h;n.months=e%12;n.years=f;return this};Xa.clone=function(){return ic(this)};Xa.get=function(f){f=Fa(f);return this.isValid()?this[f+"s"]():NaN};Xa.milliseconds=ge;Xa.seconds=Dd;Xa.minutes=Ue;Xa.hours=ie;Xa.days=Ve;Xa.weeks=function(){return Ja(this.days()/7)};Xa.months=je;Xa.years=ke;Xa.humanize=function(f,h){if(!this.isValid())return this.localeData().invalidDate();var e=!1,n=$b;"object"===
|
|
typeof f&&(h=f,f=!1);"boolean"===typeof f&&(e=f);"object"===typeof h&&(n=Object.assign({},$b,h),null!=h.s&&null==h.ss&&(n.ss=h.s-1));f=this.localeData();h=!e;var r=ic(this).abs(),z=Kb(r.as("s")),w=Kb(r.as("m")),fa=Kb(r.as("h")),ja=Kb(r.as("d")),aa=Kb(r.as("M")),y=Kb(r.as("w"));r=Kb(r.as("y"));z=z<=n.ss&&["s",z]||z<n.s&&["ss",z]||1>=w&&["m"]||w<n.m&&["mm",w]||1>=fa&&["h"]||fa<n.h&&["hh",fa]||1>=ja&&["d"]||ja<n.d&&["dd",ja];null!=n.w&&(z=z||1>=y&&["w"]||y<n.w&&["ww",y]);z=z||1>=aa&&["M"]||aa<n.M&&["MM",
|
|
aa]||1>=r&&["y"]||["yy",r];z[2]=h;z[3]=0<+this;z[4]=f;h=gi.apply(null,z);e&&(h=f.pastFuture(+this,h));return f.postformat(h)};Xa.toISOString=nd;Xa.toString=nd;Xa.toJSON=nd;Xa.locale=td;Xa.localeData=yb;Xa.toIsoString=na("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nd);Xa.lang=Oe;oa("X",0,0,"unix");oa("x",0,0,"valueOf");Ha("x",Be);Ha("X",/[+-]?\d+(\.\d{1,3})?/);wa("X",function(f,h,e){e._d=new Date(1E3*parseFloat(f))});wa("x",function(f,h,e){e._d=new Date(za(f))});
|
|
x.version="2.29.3";var Ke=gb;x.fn=La;x.min=function(){var f=[].slice.call(arguments,0);return ed("isBefore",f)};x.max=function(){var f=[].slice.call(arguments,0);return ed("isAfter",f)};x.now=function(){return Date.now?Date.now():+new Date};x.utc=r;x.unix=function(f){return gb(1E3*f)};x.months=function(f,h){return Vd(f,h,"months")};x.isDate=n;x.locale=tb;x.invalid=ka;x.duration=ic;x.isMoment=ma;x.weekdays=function(f,h,e){return Vc(f,h,e,"weekdays")};x.parseZone=function(){return gb.apply(null,arguments).parseZone()};
|
|
x.localeData=Wb;x.isDuration=sd;x.monthsShort=function(f,h){return Vd(f,h,"monthsShort")};x.weekdaysMin=function(f,h,e){return Vc(f,h,e,"weekdaysMin")};x.defineLocale=Jc;x.updateLocale=function(f,h){if(null!=h){var e=Ee;if(null!=kb[f]&&null!=kb[f].parentLocale)kb[f].set(ea(kb[f]._config,h));else{var n=Sb(f);null!=n&&(e=n._config);h=ea(e,h);null==n&&(h.abbr=f);h=new qa(h);h.parentLocale=kb[f];kb[f]=h}tb(f)}else null!=kb[f]&&(null!=kb[f].parentLocale?(kb[f]=kb[f].parentLocale,f===tb()&&tb(f)):null!=
|
|
kb[f]&&delete kb[f]);return kb[f]};x.locales=function(){return ji(kb)};x.weekdaysShort=function(f,h,e){return Vc(f,h,e,"weekdaysShort")};x.normalizeUnits=Fa;x.relativeTimeRounding=function(f){return void 0===f?Kb:"function"===typeof f?(Kb=f,!0):!1};x.relativeTimeThreshold=function(f,h){if(void 0===$b[f])return!1;if(void 0===h)return $b[f];$b[f]=h;"s"===f&&($b.ss=h-1);return!0};x.calendarFormat=function(f,h){f=f.diff(h,"days",!0);return-6>f?"sameElse":-1>f?"lastWeek":0>f?"lastDay":1>f?"sameDay":2>
|
|
f?"nextDay":7>f?"nextWeek":"sameElse"};x.prototype=La;x.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return x})}).call(this,e(248)(ia))},function(ia,ba,e){var ea=e(126);e.d(ba,"a",function(){return ea.a});var x=e(111);e.d(ba,"j",function(){return x.a});var ha=e(187);e.d(ba,"b",function(){return ha.a});
|
|
var ca=e(27);e.d(ba,"d",function(){return ca.a});var da=e(120);e.d(ba,"e",function(){return da.a});var aa=e(189);e.d(ba,"f",function(){return aa.a});var w=e(128);e.d(ba,"g",function(){return w.a});var y=e(190);e.d(ba,"h",function(){return y.a});var n=e(170);e.d(ba,"k",function(){return n.a});var h=e(127);e.d(ba,"c",function(){return h.a});var f=e(193);e.d(ba,"i",function(){return f.a})},function(ia,ba,e){var ea=e(0);e.n(ea);ia=function(){function e(e){Object(ea.isObject)(e)&&Object(ea.isString)(e.name)&&
|
|
(this.Ad=e.name);this.elementName=null}e.prototype.onTriggered=function(){};e.prototype.serialize=function(){return document.createElementNS("",this.elementName)};e.prototype.deserialize=function(){};Object.defineProperty(e.prototype,"name",{get:function(){return this.elementName},enumerable:!1,configurable:!0});return e}();ba.a=ia},function(ia,ba,e){(function(ea){function x(f,e,z,w,y,ja,da,x){return new Promise(function(r){if(Object(n.p)()){var fa=new h.ImageData(e,z,w),ka=Date.now();f.putImageData(fa,
|
|
y,ja,0,0,z,w);Object(aa.a)("bufferTiming","putImageData took "+(Date.now()-ka));r()}else{Object(aa.a)("Memory","fillCanvasData buffer size "+z*w*4);var la=Math.ceil(1E6/z),ca=w,pa=f.createImageData(z,Math.min(la,w)),ha=0,ma=function(){var h=Math.min(la,ca),n=w-ca,fa=h*z*4;Object(aa.a)("Memory","NextChunk "+fa);pa.data.set(e.subarray(ha,ha+fa));ha+=fa;f.putImageData(pa,y,ja+n,0,0,z,h);ca-=h;0===ca?r():(h=ea(ma),da&&(da[x]=h))};ma()}})}function ha(f,h){return f-h}function ca(f,h,e,n,aa,ja){var r={getZoom:function(){return 1},
|
|
getPageRotation:function(){return y.f.E_0},finishedLoading:function(){return!0},acquireResources:function(){return!0},resourcesLoaded:function(){return!0},getPageTransform:function(){},drawProgressive:function(){},drawComplete:function(){},onError:function(){}};Object(w.isObject)(f)?(r=Object.assign(r,f),r.zoom&&(r.getZoom=function(){return r.zoom}),r.pageRotation&&(r.getPageRotation=function(){return r.pageRotation})):r=Object.assign(r,{pageNumber:f,getZoom:function(){return h},getPageRotation:function(){return e},
|
|
drawProgressive:aa||r.drawProgressive,drawComplete:n||r.drawComplete,canvasNum:ja});return r}function da(f,h){var e=void 0!==h.height&&null!==h.height,n=void 0!==h.width&&null!==h.width;if((void 0===h.zoom||null===h.zoom)&&(e||n)){var r=h.height;if(1>r)throw Error("Height must be greater than or equal to 1.");h=h.width;if(1>h)throw Error("Width must be greater than or equal to 1.");var w=f.height;f=f.width;var aa=1;e&&n?aa=w>f?r/w:h/f:e?aa=r/w:n&&(aa=h/f);return aa}return h.getZoom()}e.d(ba,"b",function(){return ca});
|
|
e.d(ba,"c",function(){return da});e.d(ba,"d",function(){return ha});e.d(ba,"a",function(){return x});var aa=e(221),w=e(0);e.n(w);var y=e(3),n=e(34),h=window}).call(this,e(226).setImmediate)},function(ia,ba,e){function ea(h){var f=null;if("string"!==typeof h)return f;(h=h.match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/))&&h.length&&(f=h[1]);return f}var x=e(1),ha=e(32),ca=e(4),da=e(2);ia=e(35);var aa=e(14),w=e(36),y=e(6),n=e(12);e=function(h){function f(f){var e=h.call(this,f)||this;e["_xsi:type"]=
|
|
"Stamp";e.Subject=n.a.Gc("stamp");e.Icon="Draft";e.Ej=null;e.Tm=null;e.Fj=null;e.Xw=1;e.canvas=document.createElement("canvas");e.d7="bold italic "+e.FZ+"px sans-serif";e.cd(f);return e}Object(x.c)(f,h);f.prototype.draw=function(f,h){h&&this.dc(f,h);var e=this.$d();h=e.x;var n=e.y,r=e.width;e=e.height;this.oe||(this.mh(),this.di());f.translate(h+r/2,n+e/2);f.rotate(-aa.a.tb(this.Rotation));f.translate(-r/2,-e/2);this.canvas.width=this.Width;this.canvas.height=this.Height;if(this.ViewState)ha.a.p8(f,
|
|
r,e);else if(this.image){1!==this.Xw&&(f.globalAlpha=1);try{f.drawImage(this.image,0,0,r,e)}catch(pa){Object(da.j)(pa)}}else"SHAccepted"===this.Icon?ha.a.r8(f,0,0,r,e,this.FillColor):"SBRejected"===this.Icon?ha.a.bI(f,0,0,r,this.FillColor):"Dot"===this.Icon?(h=Math.min(r,e),n=h/2,ha.a.Jp(f,n,n,h/4)):"SHSignHere"===this.Icon||"SHWitness"===this.Icon||"SHInitialHere"===this.Icon?ha.a.b9(f,0,0,r,e,this):ha.a.a9(f,0,0,r,e,this)};f.prototype.$d=function(f){void 0===f&&(f=this.Sa());return aa.a.Qw(f,aa.a.tb(this.Rotation))};
|
|
f.prototype.getImageData=function(){return Object(x.b)(this,void 0,Promise,function(){return Object(x.d)(this,function(f){switch(f.label){case 0:return[4,this.zm()];case 1:return f.ea(),[2,this.vT()]}})})};f.prototype.Ao=function(f,h){void 0===h&&(h=!1);return Object(x.b)(this,void 0,Promise,function(){var e,n,r,z;return Object(x.d)(this,function(w){switch(w.label){case 0:e=f,n=Promise.resolve(),h||"image/svg+xml"!==ea(f)||(r=new Image,n=new Promise(function(f){r.onload=function(){var h=document.createElement("canvas");
|
|
h.width=r.width;h.height=r.height;h.getContext("2d").drawImage(r,0,0);e=h.toDataURL();f()}}),r.src=e),w.label=1;case 1:return w.Gg.push([1,3,,4]),[4,n];case 2:return w.ea(),[3,4];case 3:return z=w.ea(),Object(da.j)(z),[3,4];case 4:return this.iy(e),[4,this.zm()];case 5:return w.ea(),[2]}})})};f.prototype.Kia=function(f){this.Du=f};f.prototype.yM=function(f){this.wy=f};f.prototype.YT=function(){return this.wy};f.prototype.mba=function(){return this.ac("trn-original-url")};f.prototype.serialize=function(f,
|
|
e){if(this.bb)return this.bb;f=h.prototype.serialize.call(this,f,e);this.iW&&this.Icon===this.iW||f.setAttribute("icon",this.Icon);if(this.ViewState){var n=document.createElement("canvas");n.width=2*this.Width;n.height=2*this.Height;var r=n.getContext("2d");r.scale(2,2);r.translate(-this.X,-this.Y);this.draw(r,e);this.image=new Image;this.image.src=n.toDataURL();this.iy(this.image.src)}if(this.image||this.Du)n=document.createElementNS("","imagedata"),n.textContent=(this.image?this.image.src:this.Du.src).pj("%0A",
|
|
""),this.Opacity!==this.Xw&&0<this.image.width&&0<this.image.height&&(n.textContent=ha.a.d_(this.Opacity,this.image||this.Du)),f.appendChild(n);n=this.$d();n=new ca.d(n.x,n.y,n.x+n.width,n.y+n.height);n.Sp();this.Db("trn-unrotated-rect",y.a.Ut(n,e));return f};f.prototype.deserialize=function(f,e,n){h.prototype.deserialize.call(this,f,e,n);(e=f.getAttribute("icon"))?this.Icon=e:this.Subject&&(this.Icon=this.Subject);e||(this.iW=this.Icon);f=f.getElementsByTagName("imagedata");this.ac("trn-original-image")?
|
|
this.iy(f[0].Epa):0<f.length&&this.iy(f[0].textContent)};f.prototype.iy=function(f){var h=this;this.image||(this.image=new Image,this.image.crossOrigin="anonymous");this.aQ=new Promise(function(e){h.image.src||(h.image.onload=e,h.image.onerror=e,h.image.src=f);var n=new Image;n.crossOrigin="anonymous";var r=h.Opacity;n.onload=function(){h.image=n;h.Xw=r;e(void 0)};n.onerror=e;n.src=f;h.Ma()})};f.prototype.vT=function(){return this.Du?this.Du.src:this.image.src};f.prototype.rotate=function(f,h){void 0===
|
|
h&&this.dk();this.ny(this.Yn(aa.a.tb(this.Rotation)-f));this.Rotation=aa.a.kk(aa.a.yk(aa.a.tb(this.Rotation)-f))};f.prototype.Yn=function(f){void 0===f&&(f=aa.a.tb(this.Rotation));return aa.a.Kw(this.$d(),f,this.oe)};return f}(w.a);e.prototype.elementName="stamp";e.prototype.padding=20;e.prototype.FZ=30;Object(ia.a)(e.prototype,{Icon:{get:function(){return this.ri},set:function(h){this.ri=h;this.wy=ha.a.tJ(h);this.Ma();this.MaintainAspectRatio=0===h.indexOf("SH")||0===h.indexOf("SB")||ha.a.N5(h)}},
|
|
ImageData:{get:function(){Object(da.j)("ImageData getter will be deprecated in 8.0. Please use getImageData");return this.vT()},set:function(h){Object(da.j)("ImageData setter will be deprecated in 8.0. Please use setImageData");this.iy(h)}},Opacity:{get:function(){return Object.getOwnPropertyDescriptor(w.a.prototype,"Opacity").get.call(this)},set:function(h){Object.getOwnPropertyDescriptor(w.a.prototype,"Opacity").set.call(this,h);if(this.image&&1>this.Xw){var f=this;f.image.complete&&f.Ao(ha.a.d_(1,
|
|
f.image)).then(function(){f.Xw=1})}}}});ba.a=e;(window.Annotations||{}).xh=e},function(ia,ba,e){function ea(e,da){x.a.call(this,e,da)}var x=e(24),ha=e(13);ea.prototype={Oo:"Btn",Cv:null,Gi:function(e){if(x.a.prototype.Gi.call(this,e)){var da=new ha.a({mask:[ha.a.PUSH_BUTTON,ha.a.RADIO]}),aa="C";da.deserialize(e);da.get(ha.a.PUSH_BUTTON)?aa="P":da.get(ha.a.RADIO)&&(aa="R");return aa===this.Cv}return!1},Mo:function(e){var da=!!this.fieldFlags.get(ha.a.READ_ONLY);e.disabled=da}};ea.prototype=Object.assign(Object.create(x.a.prototype),
|
|
ea.prototype);ba.a=ea},function(ia,ba,e){e.d(ba,"b",function(){return ea});e.d(ba,"a",function(){return x});var ea={AndroidContentPartRetriever:"AndroidContentPartRetriever",ArrayBufferPdfPartRetriever:"ArrayBufferPdfPartRetriever",AzurePartRetriever:"AzurePartRetriever",ExternalPdfPartRetriever:"ExternalPdfPartRetriever",HttpPartRetriever:"HttpPartRetriever",IOSPartRetriever:"IOSPartRetriever",LocalPartRetriever:"LocalPartRetriever",LocalPdfPartRetriever:"LocalPdfPartRetriever",StreamingPartRetriever:"StreamingPartRetriever",
|
|
WinRTPartRetriever:"WinRTPartRetriever",WebViewerServerPartRetriever:"WebViewerServerPartRetriever",WebDBPartRetriever:"WebDBPartRetriever"},x;(function(e){e[e.NEVER_CACHE=0]="NEVER_CACHE";e[e.CACHE=1]="CACHE";e[e.NO_HINT=2]="NO_HINT"})(x||(x={}))},function(ia,ba,e){function ea(e,ha){void 0===ha&&(ha=1E6);return Math.round((e+Number.EPSILON)*ha)/ha}e.d(ba,"a",function(){return ea})},function(ia,ba,e){function ea(e){if("string"!==typeof e){for(var x="",da=0,aa=e.length,w;da<aa;)w=e.subarray(da,da+
|
|
1024),da+=1024,x+=String.fromCharCode.apply(null,w);return x}return e}function x(e){if("string"===typeof e){for(var x=new Uint8Array(e.length),da=e.length,aa=0;aa<da;aa++)x[aa]=e.charCodeAt(aa);return x}return e}e.d(ba,"b",function(){return x});e.d(ba,"a",function(){return ea})},function(ia,ba){ia=function(){function e(e){if("string"!==typeof e)e={documentElement:e};else{var x=new DOMParser;e=x.parseFromString(e,"text/xml")}this.current=e.documentElement;this.next=this.current.nextSibling;this.diff=
|
|
this.depth=0}e.prototype.zO=function(){for(;this.next&&this.next.nodeType!==Node.ELEMENT_NODE;)this.next=this.next.nextSibling};e.prototype.advance=function(){this.zO();return this.next?(this.current=this.next,this.next=this.current.nextSibling,!0):!1};e.prototype.Oa=function(){return this.current.tagName};e.prototype.Ka=function(){++this.depth;this.next=this.current.firstChild;this.zO();this.next||++this.diff};e.prototype.$a=function(){--this.depth;0<this.diff?--this.diff:this.current=this.current.parentNode;
|
|
this.current&&(this.next=this.current.nextSibling)};e.prototype.fa=function(e){return this.current.getAttribute(e)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(3),ha=e(19),ca=e(23);ba.a=function(e,aa,w,y,n,h){y=y||{x:0,y:0};w.width?(w.na=0,w.ja=0,w.oa=w.width,w.ka=w.height):(w.width=w.oa-w.na,w.height=w.ka-w.ja);var f=new ca.a;Object(ea.isUndefined)(n)&&(n=!0);n&&(n=h||Object(ha.k)(),e*=n,y.x*=n,y.y*=n);f.ab(e,0,0,e,y.x,y.y);e=new ca.a;aa===x.f.E_0?e.ab(1,0,0,1,-w.na,-w.ja):
|
|
aa===x.f.E_90?e.ab(1,0,0,1,w.ka,-w.na):aa===x.f.E_180?e.ab(1,0,0,1,w.oa,w.ka):aa===x.f.E_270&&e.ab(1,0,0,1,-w.ja,w.oa);f.concat(e);f.concat(ca.a.zo(Math.PI/2*(4-aa)));return f}},function(ia,ba,e){function ea(f){n=f}function x(){return n}function ha(f){return!f||50>f.length?!1:"demo:"===f.slice(0,5)}function ca(f){return f?Promise.resolve(f):h.zna?Promise.resolve():(""+location).split("").reverse().join("").match(/(moc\.nortfdp\.[^.]+\/\/|moc\.nortfdp\/\/)/)||h.jsworker?Promise.resolve(""):da().then(function(f){return f?
|
|
f:null})}function da(){return new Promise(function(f){function h(e){"object"===typeof e.data&&"responsel"===e.data.type&&(f(e.data.value),window.removeEventListener("message",h),clearTimeout(n))}function e(){window.parent.postMessage("requestl","*");window.addEventListener("message",h);n=setTimeout(function(){f(w);window.removeEventListener("message",h)},100)}var n;try{var w=window.parent&&window.parent.WebViewer?window.parent.WebViewer.l(window.frameElement):void 0;void 0===w?e():f(w)}catch(ja){e()}})}
|
|
function aa(f){y=f}function w(){return y}e.d(ba,"a",function(){return w});e.d(ba,"f",function(){return aa});e.d(ba,"b",function(){return ca});e.d(ba,"c",function(){return ha});e.d(ba,"d",function(){return x});e.d(ba,"e",function(){return ea});var y,n,h=window},function(ia,ba,e){function ea(f){return Object(x.b)(this,void 0,void 0,function(){var h,e,n;return Object(x.d)(this,function(r){switch(r.label){case 0:return h=new Blob([f]),[4,Object(w.c)(w.b.LocalPartRetriever,h)];case 1:return e=r.ea(),n=
|
|
new oa,[2,new Promise(function(f,h){n.loadAsync(e,function(e){e?h(e):f(n)})})]}})})}e.d(ba,"a",function(){return ea});var x=e(1),ha=e(0);e.n(ha);var ca=e(2),da=e(158);ia=e(93);var aa=e(30),w=e(31),y=e(68),n=e(131),h=e(246),f=e(81),r=e(78),z=e(124),fa=e(97),ka=e(73),ja=e(64),pa=e(34),ma=e(23),la=e(74),na=e(15),ra=e(7),sa=e(94),Da=e(6),qa=0,va=window,oa=function(oa){function ba(f){var h=oa.call(this,f)||this;h.Aj="Document/FixedDocument.fdoc";h.Sk="Document/DocProps/core.xml";h.zj="Document/Structure/DocStruct.struct";
|
|
h.d0="Struct/font.xml";h.R1="Struct/";h.Q1="Text/";h.Tb=null;h.vr=null;h.Kr=new fa.a.pz;h.id=f;h.zD=!1;h.eh=null;h.hf={};h.LK=Object(ha.bind)(h.LK,h);h.WB=null;h.li=1;h.Rf={};h.Ja=null;h.rd=Promise.resolve();h.OC={};h.Qj=new da.a(10,400);h.za=(++qa).toString(16);return h}Object(x.c)(ba,oa);ba.prototype.loadAsync=function(f,e){return Object(x.b)(this,void 0,void 0,function(){var n,r,z=this;return Object(x.d)(this,function(fa){switch(fa.label){case 0:return this.Tb=f,this.ag=[],this.sf={},this.ca=[],
|
|
this.Te={},this.Te[this.Aj]=aa.e.HF,this.Te[this.Sk]=aa.e.HF,this.Te[this.zj]=aa.e.HF,this.Tb.yo()&&(this.vo={}),n=this,[4,Object(h.b)()];case 1:return n.Yw=fa.ea(),f.addEventListener(sa.a.Events.PART_READY,this.LK),this.addEventListener(ra.a.Events.DOCUMENT_READY,function(f){1.5>z.li&&z.A3();e(f)}),(r=Object(w.d)(w.b.WebDBPartRetriever))&&f instanceof r?(this.zD=!0,this.Xs(function(){f.db=z.eh;f.Zx(e)})):f.Zx(e),[2]}})})};ba.prototype.extractXFDF=function(f){var h=this;if(!f||1!==f.length)throw Error("XOD Document does not support extracting XFDF for multiple input pages");
|
|
var e=f[0]-1;return new Promise(function(f){function n(f){var h="",e=0,n=-1;for(2<=f.length&&"{"===f.charAt(0)&&"}"===f.charAt(1)&&(f=f.substr(2));e<f.length;){var r=f.charCodeAt(e);if(128>r)0>n&&(n=e),e++;else if(0<=n&&(h+=f.substring(n,e),n=-1),191<r&&224>r){var z=f.charCodeAt(e+1);h+=String.fromCharCode((r&31)<<6|z&63);e+=2}else{z=f.charCodeAt(e+1);var w=f.charCodeAt(e+2);h+=String.fromCharCode((r&15)<<12|(z&63)<<6|w&63);e+=3}}0===n?h=f:0<=n&&(h+=f.substring(n,e));return h}if(1.5<=h.li){var r=
|
|
h.ca[e].y_;h.pb.Oh("Annot/Annots"+(r.index?r.index:"")+".xfdf",function(e){e=n(e.data);h.ca[0].wn=e;f({xfdfString:e,pages:Object(ha.range)(r.start,r.end)})})}else h.pb.Oh("Annots.xfdf",function(e){e=n(e.data);h.ca[0].wn=e;var r=Da.a.Sw(e);h.vG(r);f({xfdfString:e,parsedData:r,pages:Object(ha.range)(1,h.ca.length+1)})})})};ba.prototype.rx=function(f,h,e){var n=this,r=f-1;if(!this.pb)throw Error("Document is not initialized!");1.2===this.li&&(this.pb.BD=!0);this.pb.gJ(r,h,function(f,h){var z=n.ca[r],
|
|
w=null;h&&(w=new fa.a.r1(z,h,n.Kr));e(f,w)})};ba.prototype.qt=function(f,h){if(!this.pb)throw Error("Document is not initialized!");return this.pb.Oh(f,h)};ba.prototype.sea=function(f){var h=this;null===this.WB?this.qt(this.d0,function(e){if(e.error)throw Error("SELECT: Error getting part "+e.cb+": "+e.error);var n=new XODText.JN(h.za);n.xL(e.data);h.WB=n.wI;f(h.WB)}):f(this.WB)};ba.prototype.loadTextData=function(f,h){var n=this,r=f-1;null!==this.ca[r].text?h(this.ca[r].text):r in this.Rf?this.Rf[r].push(h):
|
|
(this.Rf[r]=[h],1.4>this.li?this.qt(this.Q1+f+".xml",function(f){if(f.error)throw Error("SELECT: Error getting part "+f.cb+": "+f.error);var h=f.data;e.e(13).then(e.bind(null,451)).then(function(f){var e=new f.default;e.initData(h);f=new na.c;f.Lx(e.getData());n.correctQuadsForPageRotation(r,f);n.ca[r].text=f;n.Rf[r].forEach(function(f){return f(e)});delete n.Rf[r]})}):this.sea(function(h){n.qt(n.R1+f+".xml",function(f){var e=new na.c,z=new ma.a;z.ab(1,0,0,1,0,0);var w=new na.b(h);n.pb.ET(r,function(h){function fa(){return h.zt().then(function(){if(!h.ph(w,
|
|
z))return fa()})}fa().then(function(){e.xL(f.data,w);n.correctQuadsForPageRotation(r,e);n.ca[r].text=e;n.Rf[r].forEach(function(f){return f(e)});delete n.Rf[r]}).catch(function(f){Object(ca.j)("Custom Canvas has encountered an error: "+f.message)})})})}))};ba.prototype.vq=function(){return 1.2>=this.li};ba.prototype.qk=function(){return this.Ps||0<this.zx};ba.prototype.loadCanvasAsync=function(f){var h=this,e=Date.now(),n=Object(ha.uniqueId)();this.hf[n]={Uh:null,paused:!1,wc:f.pageNumber-1};this.rx(f.pageNumber,
|
|
n,function(r,z){if(r)throw Error("Error loading page "+f.pageNumber+": "+r);Object(ha.isUndefined)(h.hf[n])||(h.hf[n].Uh=z,h.hf[n].paused&&z.pause(),f.finishedLoading()&&z.yK(function(){f.resourcesLoaded()&&z.q6(f.getZoom(),f.getPageRotation(),function(h){Object(ca.b)("render","Render Time "+(Date.now()-e));f.drawComplete(h,f.pageNumber)},function(e){h.drawWatermark(e,f.pageNumber);f.drawProgressive(e,h.ca[f.pageNumber-1].id)},f.canvasNum,f.getPageTransform(),f.renderRect,f.useProgress,f.pageCanvas,
|
|
f.multiplier)},void 0,f.acquireResources()))});return n};ba.prototype.UD=function(f){if(f=this.hf[f])f.paused=!0,f.Uh&&f.Uh.pause()};ba.prototype.lE=function(f){if(f=this.hf[f])f.paused=!1,f.Uh&&f.Uh.resume&&f.Uh.resume()};ba.prototype.tu=function(f){this.cancelLoadCanvas(f)};ba.prototype.cancelLoadCanvas=function(f){var h=this.hf[f];h&&(this.Fv(h.wc+1,f),h=h.Uh)&&(h.Md(),h.abort&&h.abort());this.Dn(f)};ba.prototype.Dn=function(f){delete this.hf[f]};ba.prototype.GR=function(){return"t"+Object(ha.uniqueId)()};
|
|
ba.prototype.Uda=function(f){return Object(ha.isString)(f)&&0<f.length&&"t"===f[0]};ba.prototype.loadThumbnailAsync=function(f,h){var e=this;if(!this.pb)throw Error("Document is not initialized!");var n=f-1;if(this.Ps||this.zx>n){var r=this.GR();this.pb.jq(n,r,function(f){var e=new Image,n=f.data;f=f.cb.match(/\.([a-zA-Z]+)$/)[1].toLowerCase();n=Object(z.c)(f,n);e.onload=function(){e.src.startsWith("data")||URL.revokeObjectURL(e.src);h(e);e=e.onload=null};e.src=n})}else n=this.ca[n],f=Object(y.b)({pageNumber:f,
|
|
zoom:n.width>n.height?150/n.width:150/n.height,drawComplete:function(f){f.style.backgroundColor="white";e.tu(r);h(f)},pageCanvas:!0}),r=this.loadCanvasAsync(f);return r};ba.prototype.getLayersArray=function(){return Promise.resolve([])};ba.prototype.Xs=function(f){var h=this;if(null===this.eh){if(Object(ha.isUndefined)(this.id)||Object(ha.isNull)(this.id)){this.id=va.top.location.href;for(var e=va.top.location.hash.substring(1).split("&"),n=0;n<e.length;n++){var r=e[n].split("=");if("d"===r[0]){this.id=
|
|
r[1];break}}}this.eh=new z.a(this.id);this.eh.open(f,function(f){h.eh=null;Object(ca.g)(f)})}else Object(ca.j)("Offline DB is already initialized!"),f()};ba.prototype.Cy=function(f,h){function e(f){n.Tb.sH(f)}var n=this;if(!this.pb)throw f(),Error("Document is not initialized!");if(!this.eh)throw f(),Error("Offline DB is not initialized!");var r=Object(w.d)(w.b.WebDBPartRetriever);if(r&&this.Tb instanceof r)throw f(),Error("Can't download file while in offline mode!");this.Tb.MT(function(r){n.eh.ila(n.pb,
|
|
r,!!n.Tb.decrypt,f,h,e)})};ba.prototype.jo=function(){if(!this.eh)throw Error("Offline DB is not initialized!");return this.eh.jo()};ba.prototype.Ev=function(){if(!this.eh)throw Error("Offline DB is not initialized!");this.eh.G5()};ba.prototype.Hs=function(){return this.zD};ba.prototype.Zq=function(f){if(!this.eh)throw Error("Offline DB is not initialized!");this.zD!==f&&(!(this.zD=f)||this.vr instanceof va.Ya.h1.c2||(this.vr=new va.Ya.h1.c2(this.eh,this.Tb.decrypt,this.Tb.Vv),this.vr.addEventListener(sa.a.Events.PART_READY,
|
|
this.pb.ED)),this.BZ())};ba.prototype.BZ=function(){if(null!==this.vr){var f=this.vr;this.vr=this.Tb;this.Tb=f;this.pb.zg=this.Tb}};ba.prototype.Fv=function(f,h){if(!this.pb)throw Error("Document is not initialized!");this.pb.rH(f-1,h)};ba.prototype.Eh=function(f){this.Uda(f)?this.pb.tH(f):this.cancelLoadCanvas(f)};ba.prototype.LK=function(h){if(h.error)return this.Te[h.cb]=aa.e.Ju,this.RO();var e=this.Tb.decrypt?this.Tb.NR?this.Tb.decrypt(h.data,this.Tb.Vv,h.cb):Object(n.b)(h.data,this.Tb.Vv,h.cb):
|
|
h.data;e=Object(ka.a)(e);this.Tb.yo()&&(this.vo[h.cb]={data:e,gd:h.gd},this.Tb.decrypt&&(this.vo[h.cb].T9=h.data));h.gd&&(e=this.Yw(e));switch(h.cb){case this.Aj:e=new la.a(e);e.Ka();e.advance();h=e.fa("JPGThumbs");this.sK="true"===h;h=e.fa("IncludesThumbs");this.Ps=null===h||"false"!==h;!this.Ps&&(h=e.fa("NumLeadingThumbs"))&&(h=parseInt(h,10),h=isNaN(h)?0:h,this.zx=Math.max(h,0));h=e.fa("Version");this.li=parseFloat(h);if(1.2>this.li)throw this.Te[this.Aj]=null,Error("The XOD version is out of date. Please re-convert the file with the most recent version of PDFNet or the command line converter.");
|
|
if(1.5<this.li)throw Error("The XOD file version is too new for this client. Please update the WebViewer client version.");h=1.5<=this.li;var z=void 0,w=void 0;h&&(w=e.fa("DefaultMatrix").split(","),z=new ma.a,z.ab(parseFloat(w[0]),parseFloat(w[1]),parseFloat(w[2]),parseFloat(w[3]),parseFloat(w[4]),parseFloat(w[5])),w=this.An(z));this.Te[this.Aj]=aa.e.yF;for(var fa={index:0,start:1},ja=1;e.advance();){var y=e.Oa();if("PageContent"===y){y=new f.a(parseFloat(e.fa("Width")),parseFloat(e.fa("Height")));
|
|
y.ay=["Pages/"+ja+".xaml","Annot/"+ja+".xml","Pages/_rels/"+ja+".xaml.rels"];y.y_=fa;var da=e.fa("trn:Id");da&&(y.offsetX=parseFloat(e.fa("trn:X")),y.offsetY=parseFloat(e.fa("trn:Y")),this.OC[da]=this.ca.length);this.ca.push(y);if(h){(y=e.fa("trn:Matrix"))?(da=y.split(","),y=new ma.a,y.ab(parseFloat(da[0]),parseFloat(da[1]),parseFloat(da[2]),parseFloat(da[3]),parseFloat(da[4]),parseFloat(da[5])),da=this.An(y)):(y=new ma.a,y.Ri(z),da=w);var na=ja-1,x=this.Zr(y,{w:this.ca[na].width,h:this.ca[na].height});
|
|
y.ab(4/3,0,0,-4/3,-x.x1,x.y2);this.ca[na].Pa=y;this.ca[na].rotation=da}++ja}else if("trn:AnnotRef"===y)fa.end=ja,fa={index:fa.index+1,start:ja};else throw Error("Unsupported XOD document element type: "+y);}fa.end=ja;this.Ps&&(this.zx=this.ca.length);this.maxViewportZoom=this.zn();break;case this.Sk:this.Te[this.Sk]=aa.e.yF;e=new la.a(e);e.Ka();for(this.sf={};e.advance();)h=e.Oa().split(":"),this.sf[1===h.length?h[0]:h[1]]=e.current.textContent;break;case this.zj:this.Te[this.zj]=aa.e.yF;this.ag=
|
|
[];e=new la.a(e);e.Ka();e.advance();e.Ka();e.advance();e.Ka();fa=0;for(ja=null;e.advance();){z=parseInt(e.fa("OutlineLevel"),10);w=new r.a;w.children=[];try{w.name=h.gd?Object(pa.r)(e.fa("Description")):e.fa("Description")}catch(Ka){throw Error("XOD failed to decompress. If you are trying to open an encrypted xod, please make sure you are providing a password. See https://cutt.ly/xod-decompress for more details\n");}if(fa<z)w.parent=ja;else for(w.parent=ja.parent;fa>z;)w.parent=w.parent.parent,--fa;
|
|
w.wu=e.fa("trn:Vpos");w.wu=null===w.wu?0:parseFloat(w.wu);w.Ts=e.fa("trn:Hpos");w.Ts=null===w.Ts?0:parseFloat(w.Ts);fa=e.fa("OutlineTarget").split("#");1===fa.length||0===fa[1].length?w.url=fa[0]:w.Hb=parseInt(fa[1],10);null!==w.parent?(fa=w.parent.children.length,w.index=fa,w.parent.children[fa]=w):(fa=this.ag.length,w.index=fa,this.ag[fa]=w);fa=z;ja=w}break;default:if(this.Te[this.Aj])return this.Te[this.Sk]=this.Te[this.Sk]||aa.e.PN,this.Te[this.zj]=this.Te[this.zj]||aa.e.PN,this.ZO(h)}this.RO()};
|
|
ba.prototype.getBookmarks=function(){return Promise.resolve(this.ag)};ba.prototype.Gs=function(f){return 1.2===this.li?this.ca[f-1].wn:this.ca[f-1].links};ba.prototype.getPageCount=function(){return this.ca.length};ba.prototype.Oi=function(f,h,e){h={x:h,y:e};return this.ca[f-1].Pa.inverse().ra(h)};ba.prototype.FC=function(f,h,e){return this.ca[f-1].Pa.ra({x:h,y:e})};ba.prototype.unloadResources=function(){var f="i"+this.za+"-",h="f"+this.za+"-";document.fonts&&Object.keys(ja.a.pC()).forEach(function(f){f.startsWith(h)&&
|
|
(ja.a.pC()[f].remove(),delete ja.a.pC()[f])});Object.keys(va.ci).forEach(function(h){h.startsWith(f)&&delete va.ci[h]});if(Object(ha.isEmpty)(ja.a.pC())){var e=ja.a.$ba();null!==e&&(document.head.removeChild(e),ja.a.Aka(null),ja.a.Bka(null))}this.Kr=new fa.a.pz;(e=Object(w.d)(w.b.StreamingPartRetriever))&&this.Tb instanceof e&&this.Tb.abort();this.Pz()};ba.prototype.Pz=function(){this.pb&&this.pb.Md();this.Tb&&(this.Tb.removeEventListener(sa.a.Events.PART_READY,null,{df:!0}),this.pb=new z.b(this.Tb,
|
|
this.ca,this.Kr,this.za,this.Yw),this.pb.sK=this.sK)};ba.prototype.RO=function(){this.Te[this.Aj]&&this.Te[this.Sk]&&this.Te[this.zj]&&this.ZO()};ba.prototype.ZO=function(f){var h=this;this.Pz();this.Tb.yo()&&(Object.keys(this.vo).forEach(function(f){h.pb.cache.setItem(f,h.vo[f].data,h.vo[f].gd);h.Tb.decrypt&&h.pb.Mp.setItem(f,h.vo[f].T9,h.vo[f].gd)}),delete this.vo);this.trigger(ra.a.Events.DOCUMENT_READY,this.Te[this.Aj]===aa.e.Ju);f&&this.Tb.trigger(sa.a.Events.PART_READY,f)};ba.prototype.A3=function(){var f=
|
|
new ma.a;f.ab(4/3,0,0,-4/3,0,this.ca[0].height);for(var h=this.ca.length,e=0;e<h;++e)this.ca[e].Pa=f,this.ca[e].rotation=0};ba.prototype.vG=function(f,h){for(var e=this,n=this.ca.length,r=this.ca.map(function(f,h){return{before:{Pa:f.Pa,fb:h+1},after:{pageNum:h+1,matrix:""}}}),z=0;z<n;++z)this.ca[z].Pa=null;if(f&&f.querySelector("xfdf > pages")){var w=f.querySelector("xfdf > pages"),fa=f=void 0,ja=void 0;for(z=0;z<w.childNodes.length;++z){var y=w.childNodes[z].localName;if(y&&(ja=w.childNodes[z],
|
|
"defmtx"===y&&(fa=ja.getAttribute("matrix").split(","),f=new ma.a,f.ab(parseFloat(fa[0]),parseFloat(fa[1]),parseFloat(fa[2]),parseFloat(fa[3]),parseFloat(fa[4]),parseFloat(fa[5])),fa=this.An(f)),"pgmtx"===y)){y=parseInt(ja.getAttribute("page"),10);ja=ja.getAttribute("matrix").split(",");var aa=new ma.a;aa.ab(parseFloat(ja[0]),parseFloat(ja[1]),parseFloat(ja[2]),parseFloat(ja[3]),parseFloat(ja[4]),parseFloat(ja[5]));var da=this.An(aa);ja=this.Zr(aa,{w:this.ca[y].width,h:this.ca[y].height});this.ca[y].rotation=
|
|
da;aa.ab(4/3,0,0,-4/3,-ja.x1,ja.y2);this.ca[y].Pa=aa}}for(z=0;z<n;++z)null===this.ca[z].Pa&&(w=new ma.a,ja=this.Zr(f,{w:this.ca[z].width,h:this.ca[z].height}),w.ab(4/3,0,0,-4/3,-ja.x1,ja.y2),this.ca[z].Pa=w,this.ca[z].rotation=fa)}h||(r.forEach(function(f,h){f.after.matrix=e.ca[h].Pa}),this.je({type:ra.a.Events.PAGES_DIFF,data:r}))};ba.prototype.cC=function(f){var h=this.ca[f-1].y_;return h?h.index:f};ba.prototype.getNewAppearanceDocument=function(f,h){var e=this;if(1.5>this.li)return Promise.reject("getAppearanceReferences: XOD with version less than 1.5 has no appearances");
|
|
h=this.cC(h);new ba;var n="Annot/Appearances"+(h||"")+".xod";var r=new Promise(function(f,h){va.FileReader||h("This browser does not support FileReader");e.pb.Oh(n,function(e){e.error?h(e.error):f(ea(Object(ka.b)(e.data)))})});this.Qj.mH(h,r,f);return r};ba.prototype.Go=function(){return!this.vq()};return ba}(ia.a);ba.b=oa},function(ia,ba,e){var ea=e(0);e.n(ea);e(2);ia=function(){function e(e,x,da,aa,w,y,n,h,f){void 0===w&&(w=0);void 0===y&&(y=0);void 0===h&&(h=0);this.children=e;this.name=x;this.Hb=
|
|
da;this.parent=aa;this.wu=w;this.Ts=y;this.url=n;this.index=h;this.Zea=f}e.prototype.LI=function(){return this.children};e.prototype.getName=function(){return this.name};e.prototype.ua=function(){return this.Hb};e.prototype.oca=function(){return this.url};e.prototype.getParent=function(){return this.parent};e.prototype.qca=function(){return this.wu};e.prototype.Taa=function(){return this.Ts};e.prototype.getIndex=function(){return this.index};e.prototype.isValid=function(){return!!this.url||Object(ea.isNumber)(this.Hb)};
|
|
e.prototype.iba=function(){return this.Zea};return e}();ba.a=ia},function(ia,ba,e){ia=e(339);ia=Object(ia.a)({});ba.a=ia},function(ia,ba,e){var ea=e(86),x=e(23),ha=e(50);ia=function(){function e(){this.$y=this.Xy=this.Zy=this.Wy=this.ka=this.oa=this.ja=this.na=0}e.qA=function(da,aa,w,y){var n=new ha.a;n.init(0,0);var h=new ha.a;h.init(0,0);var f=new ha.a;f.init(0,0);var r=new ha.a;r.init(0,0);for(var z=0;4>z;++z){e.XT(n,da,z);if(!n.normalize()&&w)return!1;z?2===z?f=ha.a.ej(f,n):1===z?r=ha.a.Ft(r,
|
|
n):3===z&&(r=ha.a.ej(r,n)):f=ha.a.Ft(f,n);for(var fa=Array(8),ka=0;1>ka;++ka){for(var ja=0;8>ja;++ja)fa[ja]=aa[8*ka+ja];e.XT(h,fa,z);if(!h.normalize()&&w)return!1;z?2===z?f=ha.a.ej(f,h):1===z?r=ha.a.Ft(r,h):3===z&&(r=ha.a.ej(r,h)):f=ha.a.Ft(f,h)}if(w&&Math.abs(n.Kb(h))<e.z6)return!1}f=ha.a.divide(f,2);r=ha.a.divide(r,2);if(!f.normalize()&&w||!r.normalize()&&w||w&&!e.Nea(da,aa,f,r,y,y/10))return!1;e.Vl(da,aa,1,f,r);return!0};e.XT=function(e,aa,w){var y=(w+1)%4;e.x=aa[2*y]-aa[2*w];e.y=aa[2*y+1]-aa[2*
|
|
w+1]};e.Nea=function(e,aa,w,y,n,h){var f=new ha.a;f.init(e[0],e[1]);var r=new ha.a;r.init(e[2],e[3]);var z=new ha.a;z.init(aa[0],aa[1]);var fa=new ha.a;fa.init(aa[2],aa[3]);var da=f.Kb(w),ja=r.Kb(w),x=z.Kb(w);w=fa.Kb(w);if(da>ja){var ca=da;da=ja;ja=ca}x>w&&(ca=x,x=w,w=ca);if(x-ja>n||da-w>n)return!1;f.x=e[2];f.y=e[3];r.x=e[4];r.y=e[5];z.x=aa[2];z.y=aa[3];fa.x=aa[4];fa.y=aa[5];da=f.Kb(y);ja=r.Kb(y);x=z.Kb(y);w=fa.Kb(y);da>ja&&(ca=da,da=ja,ja=ca);x>w&&(ca=x,x=w,w=ca);return!(Math.abs(da-x)>h||Math.abs(ja-
|
|
w)>h)};e.Vl=function(e,aa,w,y,n){var h=!1,f=new ha.a;f.init(1,0);var r=new ha.a;r.init(0,1);if(1E-4<=Math.abs(y.x-1)||1E-4<=Math.abs(y.y-0)&&1E-4<=Math.abs(n.x-0)||1E-4<=Math.abs(n.y-1)){h=!0;var z=new x.a;z.ab(y.x,n.x,y.y,n.y,0,0);z=z.inverse();f.x=z.m_a;f.y=z.m_b;r.x=z.m_c;r.y=z.m_d}z=ea.a.MAX;for(var fa=ea.a.MIN,da=ea.a.MAX,ja=ea.a.MIN,ca,ma,la=0,na=0,ra=0;4>ra;++ra){var sa=new ha.a;sa.init(e[2*ra],e[2*ra+1]);h?(ca=sa.Kb(f),ma=sa.Kb(r)):(ca=sa.x,ma=sa.y);ra?(z>ca&&(z=ca,la=sa.x),fa<ca&&(fa=ca),
|
|
da>ma&&(da=ma,na=sa.y),ja<ma&&(ja=ma)):(z=fa=ca,da=ja=ma,la=sa.x,na=sa.y);for(sa=0;sa<w;++sa){var ba=new ha.a;ba.init(aa[8*sa+2*ra],aa[8*sa+2*ra+1]);h?(ca=ba.Kb(f),ma=ba.Kb(r)):(ca=ba.x,ma=ba.y);z>ca&&(z=ca,la=ba.x);fa<ca&&(fa=ca);da>ma&&(da=ma,na=ba.y);ja<ma&&(ja=ma)}}aa=new ha.a;aa.init(la,na);f=aa.Kb(y);w=aa.Kb(n);f=ha.a.multiply(y,z-f);w=ha.a.multiply(n,da-w);aa.x+=f.x+w.x;aa.y+=f.y+w.y;h?(h=y.x,aa=n.x,y=y.y,n=n.y,e[0]=h*z+aa*da,e[1]=y*z+n*da,e[2]=h*fa+aa*da,e[3]=y*fa+n*da,e[4]=h*fa+aa*ja,e[5]=
|
|
y*fa+n*ja,e[6]=h*z+aa*ja,e[7]=y*z+n*ja):(e[0]=z,e[1]=da,e[2]=fa,e[3]=da,e[4]=fa,e[5]=ja,e[6]=z,e[7]=ja)};e.prototype.mG=function(){this.$y=this.Xy=this.Zy=this.Wy=this.ka=this.oa=this.ja=this.na=void 0};e.prototype.fQ=function(e,aa,w,y,n,h,f,r){this.na=e;this.ja=aa;this.oa=w;this.ka=y;this.Wy=n;this.Zy=h;this.Xy=f;this.$y=r};e.prototype.Wn=function(){return{x1:this.na,y1:this.ja,x2:this.oa,y2:this.ka,x3:this.Wy,y3:this.Zy,x4:this.Xy,y4:this.$y}};e.z6=Math.cos(3.14159265/180*2);return e}();ba.a=ia},
|
|
function(ia,ba,e){var ea=e(1);ia=function(e){function x(x,da){var aa=e.call(this,null)||this;aa.text=null;aa.Koa=!1;aa.ay=[];aa.links=[];aa.Pa=null;aa.rotation=0;aa.width=x;aa.height=da;return aa}Object(ea.c)(x,e);x.prototype.mM=function(e){this.height=e.height;this.width=e.width;this.Pa=e.matrix;this.rotation=e.rotation;this.id=e.id;this.pageNum=e.pageNum};x.prototype.eJ=function(){return"string"===typeof this.fb?parseInt(this.pageNum,10):this.pageNum};return x}(e(96).a);ba.a=ia},function(ia,ba,
|
|
e){function ea(f,h,e){var n={x:f[0].x,y:f[0].y},r={x:f[1].x,y:f[1].y},z={x:f[2].x,y:f[2].y};f={x:f[3].x,y:f[3].y};h={x:h.x,y:h.y};var fa={x:e.x,y:e.y};e=[];if(w(n,r,h,fa)){var ja=ha(n.x,n.y,r.x,r.y,h.x,h.y,fa.x,fa.y);ja&&e.push(ja)}w(r,z,h,fa)&&(ja=ha(r.x,r.y,z.x,z.y,h.x,h.y,fa.x,fa.y))&&e.push(ja);w(z,f,h,fa)&&(ja=ha(z.x,z.y,f.x,f.y,h.x,h.y,fa.x,fa.y))&&e.push(ja);w(f,n,h,fa)&&(ja=ha(f.x,f.y,n.x,n.y,h.x,h.y,fa.x,fa.y))&&e.push(ja);2===e.length&&ca(e[0].x,e[0].y,h.x,h.y)>ca(e[1].x,e[1].y,h.x,h.y)&&
|
|
(n=e[0],e[0]=e[1],e[1]=n);return e}function x(f,h,e){var n={},r={},z={},w={};var fa=f.x;var ja=f.y;var y=h.x;var aa=h.y;f.x===h.x&&f.y===h.y&&(y+=5);f=y-fa;h=aa-ja;var da=Math.sqrt(f*f+h*h);f/=da;h/=da;var x=e*f;da=e*h;fa-=x;ja-=da;y+=x;aa+=da;h=e*-h;e*=f;n.x=fa-h;n.y=ja-e;r.x=y-h;r.y=aa-e;z.x=y+h;z.y=aa+e;w.x=fa+h;w.y=ja+e;return[n,r,z,w]}function ha(f,h,e,n,r,z,w,fa){var ja=(e-f)*(fa-z)-(n-h)*(w-r);if(1E-30>Math.abs(ja))return null;r=((h-z)*(w-r)-(f-r)*(fa-z))/ja;return new ka.b(f+r*(e-f),h+r*(n-
|
|
h))}function ca(f,h,e,n){f=e-f;h=n-h;return Math.sqrt(f*f+h*h)}function da(f,h){var e=h[0],n=h[1],r=h[2];h=h[3];h=aa(r.x,r.y,h.x,h.y,e.x,e.y,f.x,f.y);return aa(e.x,e.y,n.x,n.y,r.x,r.y,f.x,f.y)||h}function aa(f,h,e,n,r,z,w,fa){var y=0>(w-e)*(n-h)-(fa-n)*(e-f);e=0>(w-r)*(z-n)-(fa-z)*(r-e);f=0>(w-f)*(h-z)-(fa-h)*(f-r);return y===e&&e===f&&f===y}function w(f,h,e,r){var z=f.x;f=f.y;var w=h.x;h=h.y;var fa=e.x;e=e.y;var aa=r.x;r=r.y;var ja=n(z,f,w,h,aa,r),da=n(z,f,w,h,fa,e),x=n(z,f,fa,e,aa,r),ka=n(w,h,fa,
|
|
e,aa,r),la=ja!==da&&x!==ka;0===ja&&0===da&&0===x&&0===ka&&(la=y(z,f,w,h,fa,e)||y(z,f,w,h,aa,r)||y(fa,e,aa,r,z,f)||y(fa,e,aa,r,w,h));return la}function y(f,h,e,n,r,z){return f<e&&f<r&&r<e||e<f&&e<r&&r<f||h<n&&h<z&&z<n||n<h&&n<z&&z<h||f===r&&h===z||e===r&&n===z?!0:!1}function n(f,h,e,n,r,z){return(z-h)*(e-f)>(n-h)*(r-f)?1:(z-h)*(e-f)===(n-h)*(r-f)?0:-1}function h(f,h,e){f=f[e];e=f.length;for(var n=[],r=h+1;r<e;++r)n.push(f[r]);for(r=e-1;r>h;--r)f.splice(r,1);return n}function f(){var f=document.querySelector("#selectionrect");
|
|
f&&(f.style.display="none")}function r(f,h,e){var n=f[0],r=f[1],w=h[0].pageNumber;h=document.querySelector("#selectionrect");h||(h=document.createElement("div"),h.id="selectionrect",h.className="ui-selectable-helper",e.Xa().appendChild(h));var y=r.x-n.x,aa=r.y-n.y;f=e.jb();var ja=Object(fa.d)(f),da=f.scrollTop||0,x=n.x-ja;n=n.y-da;var ka=r.x-ja,ca=r.y-da;r=e.ld(w);var pa=e.kd(w);n=Math.min(ca,n);x=Math.min(ka,x);ka=e.Ff().gh({x:0,y:0},w);pa=e.Ff().gh({x:r,y:pa},w);e=Math.min(ka.x,pa.x);w=Math.min(ka.y,
|
|
pa.y);r=Math.max(ka.x,pa.x);pa=Math.max(ka.y,pa.y);e-=ja;w-=da;w>n&&(aa+=w-n,n=w);e>x&&(y+=e-x,x=e);pa-=da;y=z.a.Math.clamp(Math.abs(y),0,r-ja-x);aa=z.a.Math.clamp(Math.abs(aa),0,pa-n);ja="inline";if(5>y||5>aa)ja="none";f=f.offsetParent.getBoundingClientRect();Object(fa.b)(h,{width:y,height:aa,top:n-f.top,left:x-f.left,"z-index":44,position:"absolute",border:"1px dotted black",display:ja})}e.d(ba,"b",function(){return r});e.d(ba,"a",function(){return f});e.d(ba,"f",function(){return h});e.d(ba,"d",
|
|
function(){return da});e.d(ba,"c",function(){return x});e.d(ba,"e",function(){return ea});var z=e(21),fa=e(16),ka=e(4)},function(ia,ba,e){var ea=e(1);ia=e(47);var x=e(126),ha=e(48),ca=e(4),da=e(98),aa=e(14),w=e(127),y=e(27);e=function(e){function h(f,h,n,w){f=e.call(this,f,h,n,w)||this;f.pia=[Annotations.FreeHandAnnotation,Annotations.xh,Annotations.Wk,Annotations.kr];f.lk=y.a.handleWidth;f.og=y.a.handleHeight;f.Of();return f}Object(ea.c)(h,e);h.prototype.Of=function(){var f,h=this;this.Gb=[];this.Qc()&&
|
|
!this.qa.NoResize&&(this.Gb=da.a.FI(this.Rn()),!this.qa.MaintainAspectRatio&&aa.a.DM(this.qa)&&(f=this.Gb).push.apply(f,da.a.uJ(this.Rn())));this.HE()&&this.pia.some(function(f){return h.qa instanceof f})&&!this.qa.ZC()&&this.Gb.push(da.a.lJ(this.qa,this.aa));this.qa.Measure&&"EllipseDimension"===this.qa.IT&&this.Gb.push(this.sw(this.qa))};h.prototype.Rn=function(){return x.a};h.prototype.testSelection=function(f,h,e,n){return this.isSelected()?ha.a.pl(f,h,e,this.aa.bc()):ha.a.xp(f,h,e,n,this.aa.bc())};
|
|
h.prototype.getDimensions=function(f){return new ca.d(f.X,f.Y,f.X+f.Width,f.Y+f.Height)};h.prototype.sw=function(f){f=f.measurementCaptionOptions.captionRect;return new w.a(f.x1+f.Ba()/2,f.y1+f.wa()/2,this.lk,this.og)};return h}(ia.a);ba.a=e},function(ia,ba){ia=function(){function e(){this.CO="solid";this.mO="3"}Object.defineProperty(e.prototype,"Style",{get:function(){return this.CO},set:function(e){this.CO=e;this.Ma()},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"Dashes",{get:function(){return this.mO},
|
|
set:function(e){this.mO=e;this.Ma()},enumerable:!1,configurable:!0});return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(8),da=e(4);ia=e(51);var aa=e(41),w=e(74),y=e(19),n=e(102),h=e(21),f=e(35),r=e(3),z=e(6),fa=e(12),ka=e(330),ja=e(55),pa=window.Annotations||{},ma=function(){function f(f){this.qU=!1;this.Subject="Annotation";this.MF=1;this.Rotation=this.Tu=this.Uu=this.Cz=this.Bz=0;this.oe=null;this.pO=0;this.yz=!0;this.vO=this.uO=!1;this.Dj={};this.wz=!0;this.NoRotate=
|
|
this.NoZoom=this.JF=this.oO=this.Su=this.KF=this.nO=!1;this.wO=!0;this.Tm=new ca.a(0,0,0);this.KO=void 0;this.ZF=new Date;this.cA=fa.a.HC();this.nG=!0;this.BP=this.kp=!1;this.aQ=Promise.resolve();this.Vu=void 0;this.gl=[];this.RK=this.mE=this.nh=null;this.sO=[];this.rO={};this.Zo={};this.xO=this.tO=null;this.cd(f)}f.prototype.cd=function(f){var h=this;if(f&&this.Ys){var e=Object.keys(f),n=this.Ys;e.forEach(function(e){n[e]&&(h[e]=f[e])})}};f.prototype.zC=function(){return this.elementName};f.prototype.NT=
|
|
function(){return null};f.prototype.draw=function(){};f.prototype.render=function(){};f.prototype.WE=function(){};f.prototype.ko=function(){return!1};f.prototype.hK=function(){return!1};f.prototype.isVisible=function(){return!this.Hidden&&!this.NoView&&!this.$l()};f.prototype.$l=function(){return!(Object(x.isUndefined)(this.InReplyTo)||Object(x.isNull)(this.InReplyTo))&&"group"!==this.ReplyType};f.prototype.eV=function(){return!this.Hidden&&this.Printable&&!this.$l()};f.prototype.ny=function(f){var h=
|
|
new da.d(f.x1,f.y1,f.x2,f.y2);0>h.Ba()&&(f=h.x1,h.x1=h.x2,h.x2=f);0>h.wa()&&(f=h.y1,h.y1=h.y2,h.y2=f);this.X=h.x1;this.Y=h.y1;this.Width=h.Ba();this.Height=h.wa()};f.prototype.cc=function(h){var e=this.Sa();h=new da.d(h.x1,h.y1,h.x2,h.y2);0>h.Ba()&&(h.x1=e.x1,h.x2=e.x2);0>h.wa()&&(h.y1=e.y1,h.y2=e.y2);e=h.x1;var n=h.y1,r=h.Ba();h=h.wa();Object.getOwnPropertyDescriptor(f.prototype,"X").set.call(this,e);Object.getOwnPropertyDescriptor(f.prototype,"Y").set.call(this,n);Object.getOwnPropertyDescriptor(f.prototype,
|
|
"Width").set.call(this,r);Object.getOwnPropertyDescriptor(f.prototype,"Height").set.call(this,h)};f.prototype.Sa=function(){return new da.d(this.X,this.Y,this.X+this.Width,this.Y+this.Height)};f.prototype.adjustRect=function(){};f.prototype.resize=function(f){this.cc(f)};f.prototype.move=function(f){this.resize(f)};f.prototype.mh=function(){this.oe=this.dk()};f.prototype.di=function(){var f=new da.b(this.Kc(),this.Lc());this.pO=h.a.Math.ie(this.oe,f)};f.prototype.dk=function(){return new da.b(this.Kc()+
|
|
this.Ba()/2,this.Lc()+this.wa()/2)};f.prototype.Kc=function(){return this.X};f.prototype.Gm=function(f){this.X=parseFloat(f)};f.prototype.Lc=function(){return this.Y};f.prototype.Hm=function(f){this.Y=parseFloat(f)};f.prototype.Ba=function(){return this.Width};f.prototype.ar=function(f){this.Width=parseFloat(f)};f.prototype.wa=function(){return this.Height};f.prototype.Fm=function(f){this.Height=parseFloat(f)};f.prototype.getRectPadding=function(){return 0};f.prototype.ua=function(){return this.PageNumber};
|
|
f.prototype.GT=function(){if("undefined"!==typeof this.PageNumber)return this.PageNumber-1};f.prototype.ly=function(f){this.PageNumber=parseInt(f,10)};f.prototype.HJ=function(){return this.yz};f.prototype.jka=function(f){Object(ha.d)("8.0","setRotationControlEnabled",["enableRotationControl","disableRotationControl"]);this.yz=f};f.prototype.M9=function(){this.yz=!0};f.prototype.DB=function(){this.yz=!1};f.prototype.oM=function(f){this.uO=f};f.prototype.pM=function(f){this.vO=f};f.prototype.Ma=function(f,
|
|
h,e){void 0===e&&(e=!1);this.isImporting||(e||(this.ZF=new Date),h||(this.bb=null),f||(delete this.appearances,delete this.xd));this.nG||(this.kp=!0)};f.prototype.Db=function(f,h,e){void 0===e&&(e=!1);f&&("string"!==typeof h&&(Object(ha.j)("setCustomData received a non-string value for "+f+". It will be automatically stringified."),h=JSON.stringify(h)),this.Dj[f]=h,this.Ma(!0,!1,e))};f.prototype.ac=function(f){f=this.Dj[f];return Object(x.isUndefined)(f)?"":"string"===typeof f?f:JSON.stringify(f)};
|
|
f.prototype.Ol=function(f){f=this.ac(f);return!("string"===typeof f&&0===f.length)};f.prototype.Df=function(f,h){void 0===h&&(h=!1);delete this.Dj[f];this.Ma(!0,!1,h)};f.prototype.jk=function(){return Object(x.cloneDeep)(this.nh)};f.prototype.oy=function(f){this.nh=f;this.Ma()};f.prototype.h_=function(f,h,e){var n,r,z,w;void 0===h&&(h=0);void 0===e&&(e=(this.getContents()||"").length);var fa=this.nh||{},y=(this.getContents()||"").length,aa=e?e+1:null;if(Object(x.isNumber)(h)&&!fa[h]){fa[h]=null;var ja=
|
|
Object.keys(fa).map(function(f){return parseInt(f,10)});-1<ja.indexOf(h)&&(ja=ja[ja.indexOf(h)-1],fa[h]=Object.assign({},fa[ja]))}Object(x.isNumber)(aa)&&!fa[aa]&&aa<y&&(fa[aa]=null,ja=Object.keys(fa).map(function(f){return parseInt(f,10)}),y=ja[ja.indexOf(aa)-1],fa[aa]=Object.assign({},fa[y]));y=Object.keys(fa);for(ja=0;ja<y.length;ja++){var da=parseInt(y[ja],10);if(!(Object(x.isNumber)(h)&&da<h)){if(Object(x.isNumber)(e)&&da>=aa)break;var ka=fa[da]["text-decoration"],na=f.underline,la=ka&&!Object(x.isUndefined)(f.underline)&&
|
|
!f.underline,ca=f["line-through"];ka=ka&&!Object(x.isUndefined)(f["line-through"])&&!f["line-through"];na?(na=-1<(null===(n=fa[da]["text-decoration"])||void 0===n?void 0:n.indexOf("underline")),fa[da]["text-decoration"]=na?fa[da]["text-decoration"]:((fa[da]["text-decoration"]||"")+" underline").trim()):la&&(fa[da]["text-decoration"]=fa[da]["text-decoration"].replace(/underline|word/g,"").trim());ca?(ca=-1<(null===(r=fa[da]["text-decoration"])||void 0===r?void 0:r.indexOf("line-through")),fa[da]["text-decoration"]=
|
|
ca?fa[da]["text-decoration"]:((fa[da]["text-decoration"]||"")+" line-through").trim()):ka&&(fa[da]["text-decoration"]=fa[da]["text-decoration"].replace(/line-through/g,"").trim());fa[da]["text-decoration"]||delete fa[da]["text-decoration"];"bold"===(null===(z=f["font-weight"])||void 0===z?void 0:z.toLowerCase())?fa[da]["font-weight"]="bold":Object(x.isUndefined)(f["font-weight"])||delete fa[da]["font-weight"];"italic"===(null===(w=f["font-style"])||void 0===w?void 0:w.toLowerCase())?fa[da]["font-style"]=
|
|
"italic":Object(x.isUndefined)(f["font-style"])||delete fa[da]["font-style"];f.color&&(fa[da].color=""+f.color)}}this.nh=fa;this.Ma()};f.prototype.getContents=function(){return this.nga};f.prototype.setContents=function(f){this.nga=f;this.Ma(!(this instanceof pa.gb))};f.prototype.jl=function(f){if(f.Id)for(var h=this.gl.length;h--;)if(this.gl[h].Id===f.Id)return;this.gl.push(f)};f.prototype.xB=function(f){f=this.gl.indexOf(f);-1<f&&this.gl.splice(f,1)};f.prototype.cq=function(){return this.gl.filter(function(f){return"group"!==
|
|
f.ReplyType})};f.prototype.Cw=function(){return this.gl.filter(function(f){return"group"===f.ReplyType})};f.prototype.Zba=function(){if(this.gl){var f=this.gl.filter(function(f){return f.State&&""!==f.State&&f.Hidden});return f&&(f.sort(function(f,h){return h.DateCreated-f.DateCreated}),f[0])?f[0].State:""}};f.prototype.dt=function(){return!(Object(x.isUndefined)(this.InReplyTo)||Object(x.isNull)(this.InReplyTo))&&"group"===this.ReplyType};f.prototype.ZC=function(){return this.ac(r.b).includes("FormField")};
|
|
f.prototype.Oaa=function(){return this.ac(r.b)};f.prototype.vja=function(f){this.sO=f};f.prototype.uja=function(f){this.rO=f};f.prototype.Sh=function(){return!!this.Ru};f.prototype.Zia=function(f,h){this.Ru=Object.assign({},f);this.l2=h};f.prototype.NI=function(){return this.l2};f.prototype.zm=function(){return this.aQ};f.prototype.CI=function(){return this.appearances&&this.appearances._DEFAULT};f.prototype.Uc=function(f){void 0===f&&(f=r.a.NORMAL);var h=this.CI();return h&&h[f]};f.prototype.eC=
|
|
function(f){void 0===f&&(f=r.a.NORMAL);if(this.CI())return this.Uc(f);if(this.xd){var h={id:"xx"+this.Id,appearanceString:this.xd,offset:{x:this.Kc(),y:this.Lc()}};if(f===r.a.ROLLOVER){if(!this.DJ())return;h.annotationState=f}return h}};f.prototype.UX=function(){};f.prototype.f_=function(){var f=this.CI();if(f)for(var h in f){var e=f[h];e.offset&&(e.offset.x=this.Bz,e.offset.y=this.Cz)}};f.prototype.DJ=function(){if(!this.xd)return!1;if(void 0===this.xd.iG){var f=atob(this.xd.dataString);this.xd.iG=
|
|
!1;try{var h=(new DOMParser).parseFromString(f,"text/xml").children[0];if("DICT"===h.tagName)for(f=0;f<h.children.length;f++)if("R"===h.children[f].attributes.KEY.nodeValue){this.xd.iG=!0;break}}catch(sa){}}return this.xd.iG};f.prototype.Naa=function(){var f=[];this.Invisible&&f.push("invisible");this.Hidden&&f.push("hidden");this.Printable&&f.push("print");this.NoZoom&&f.push("nozoom");this.NoRotate&&f.push("norotate");this.NoView&&f.push("noview");this.ReadOnly&&f.push("readonly");this.Locked&&
|
|
f.push("locked");this.ToggleNoView&&f.push("togglenoview");this.LockedContents&&f.push("lockedcontents");return 0<f.length?f.join(","):null};f.prototype.Bja=function(f){this.r3=f};f.prototype.Xaa=function(){Object(ha.d)("8.3","getInternal",["isInternal"]);return this.fK()};f.prototype.fK=function(){return this.r3};f.prototype.serialize=function(f,e){var r=this.Sa();this.GD&&this.GD.isEqual(r)?r=this.JD:(r.Sp(),this.JD&&(delete this.JD,delete this.GD),r=z.a.Ut(r,e));r={page:this.GT(),rect:r};var w=
|
|
z.a.Hk(this.Color);null!==w&&(r.color=w);(w=this.Naa())&&(r.flags=w);null!==this.InReplyTo&&(r.inreplyto=this.InReplyTo);null!==this.ReplyType&&(r.replyType=this.ReplyType);!this.Hca&&this.Id&&(r.name=this.Id);this.Author&&(r.title=this.Author);this.Subject&&(r.subject=this.Subject);w=parseFloat(this.Rotation);(w=h.a.jY(w))&&0!==w&&(r.rotation=Number.isInteger(w)?w:w.toFixed(3));if(w=this.DateModified){var fa=void 0;this.Eq&&(w.getTime()===this.Fx?fa=this.Eq:(delete this.Eq,delete this.Fx));fa||(fa=
|
|
z.a.Ly(w));r.date=fa}for(var y in r)f.setAttribute(y,r[y]);Object.keys(this.Dj).length&&(y=document.createElementNS("","trn-custom-data"),y.setAttribute("bytes",JSON.stringify(this.Dj)),f.appendChild(y));y=this.getContents();y===this.jW&&this.RK===this.nh?(this.nW?f.appendChild(this.nW):this.nh&&f.appendChild(z.a.tY(y,this.nh,this.mE)),this.SK&&(r=document.createElementNS("","contents"),r.textContent=this.SK,f.appendChild(r))):(delete this.jW,delete this.SK,delete this.RK,r=document.createElementNS("",
|
|
"contents"),r.textContent=y,f.appendChild(r),this.nh&&f.appendChild(z.a.tY(y,this.nh,this.mE)));if(y=this.appearances)r=new ka.a(f),Object(n.e)(r,y,e);this.xd&&(f.appendChild(document.createElement("appearance")).innerHTML=this.xd.dataString);return f};f.prototype.C6=function(f){var h=f.x;f=f.y;if(!h||!f)throw Error('Creating "apref" element requires "x" and "y" coordinates');if(this.Gj){var e=document.createElement("apref");e.setAttribute("objnum",this.Gj.objnum);e.setAttribute("gennum",this.Gj.gennum);
|
|
e.setAttribute("file-name",this.Gj.filename);e.setAttribute("transparent-background",this.Gj.transparentBackground);e.setAttribute("x",h);e.setAttribute("y",f);return e}};f.prototype.un=function(f,h){void 0===h&&(h={});return Object(ea.b)(this,void 0,Promise,function(){var e,n,r,z,w,fa,y,aa,da,x,ka;return Object(ea.d)(this,function(la){switch(la.label){case 0:if(0===h.pageNumber)throw Error("The pageNumber parameter should start from 1.");e=f;if("pdf"===f.Ml())return[3,3];if("image"!==f.Ml())return[3,
|
|
2];n=f.ba.ho;r=f.ba.getExtension();return[4,Object(ja.c)(n,{useDownloader:!1,loadAsPDF:!0,extension:r})];case 1:return e=la.ea(),[3,3];case 2:throw Error("Document parameter should be PDF type.");case 3:h.hasOwnProperty("transparentBackground")||(h.transparentBackground=!0);z=h.pageNumber||1;w=e.getFilename()||this.Id;fa=h.objnum;y=h.gennum;aa=h.transparentBackground;da=z-1;if(void 0===fa||void 0===y)ka=e.Nh(da).split("-"),fa=ka[0],y=ka[1];this.Gj={objnum:fa,gennum:y,filename:w,transparentBackground:aa};
|
|
this.Vu={PQ:e,filename:w,id:this.Id};this.Zo={};return[4,e.Is(Number(fa))];case 4:return x=la.ea(),this.xd={dataString:x.appearanceString,w:this.Width,h:this.Height},[2,this.Vu]}})})};f.prototype.eE=function(){this.Vu=void 0;this.Zo={}};f.prototype.Mh=function(){var f=this;return new Promise(function(h){return h(f.Vu)})};f.prototype.Wia=function(f,h){void 0===h&&(h=r.a.NORMAL);this.Zo||(this.Zo={});this.Zo[h]=f};f.prototype.ZS=function(f){void 0===f&&(f=r.a.NORMAL);return this.Zo?this.Zo[f]:null};
|
|
f.prototype.Gi=function(f){return(f=f.nodeName)&&this.elementName?f.toLowerCase()===this.elementName.toLowerCase():!1};f.prototype.deserialize=function(f,h){var e=f.getAttribute("page");e=parseInt(e,10);this.PageNumber=e+1;this.JD=e=f.getAttribute("rect")||"0,0,100,100";e=z.a.BB(e,h);e.normalize();this.cc(e);e=f.getAttribute("name");this.Hca=!e;this.Id=e;this.Author=f.getAttribute("title");this.Subject=f.getAttribute("subject");e=(f.getAttribute("flags")||"").split(",");this.Invisible=-1!==e.indexOf("invisible");
|
|
this.Hidden=-1!==e.indexOf("hidden");this.Printable=-1!==e.indexOf("print");this.NoZoom=-1!==e.indexOf("nozoom");this.NoRotate=-1!==e.indexOf("norotate");this.NoView=-1!==e.indexOf("noview");this.ReadOnly=-1!==e.indexOf("readonly");this.Locked=-1!==e.indexOf("locked");this.ToggleNoView=-1!==e.indexOf("togglenoview");this.LockedContents=-1!==e.indexOf("lockedcontents");e=z.a.Mi(f.getAttribute("color"));this.Color=null!==e?e:new ca.a(0,0,0,0);if(e=f.querySelector("trn-custom-data"))this.Dj=JSON.parse(e.getAttribute("bytes"));
|
|
this.Rotation=f.getAttribute("rotation")||0;(e=f.getAttribute("date"))?(this.Eq=e,e=z.a.AB(e),this.Fx=e.getTime(),this.DateModified=e):this.DateModified=null;this.InReplyTo=(e=f.getAttribute("inreplyto"))?e:null;this.ReplyType=(e=f.getAttribute("replyType"))?e:null;e="";var fa=f.getElementsByTagName("contents");0<fa.length&&(this.SK=e=fa[0].textContent);fa=f.getElementsByTagName("apref-replace");0<fa.length&&(fa=fa[0],this.Gj={objnum:fa.getAttribute("objnum"),gennum:fa.getAttribute("gennum"),filename:fa.getAttribute("file-name"),
|
|
transparentBackground:fa.getAttribute("transparent-background")});fa=f.getElementsByTagName("contents-richtext");0<fa.length&&(this.nW=fa=fa[0],fa=z.a.s7(fa),this.RK=this.nh=fa.style,this.mE=fa.wca,e||(e=fa.v6));this.jW=e;this.setContents(e);e=f.getElementsByTagName("appearance");if(1===e.length){this.xd={dataString:e[0].innerHTML,w:this.Width,h:this.Height};if(void 0!==this.appearances)for(h=0,f=Object.values(this.appearances);h<f.length;h++)for(e=0,fa=Object.values(f[h]);e<fa.length;e++)fa[e].appearanceString=
|
|
this.xd;this.DJ()&&(this.IsHoverable=!0)}else if(f=f.getElementsByTagName("apref"),0<f.length){for(e=0;e<f.length;++e)Object(n.a)(new w.a(f[e]),this,h);this.Uc(r.a.ROLLOVER)&&(this.IsHoverable=!0)}else delete this.appearances};f.prototype.Lm=function(f){var h={x:this.X,y:this.Y},e={x:h.x+this.Width,y:h.y+this.Height};h=f.ra(h);e=f.ra(e);this.ny({x1:h.x,y1:h.y,x2:e.x,y2:e.y})};f.prototype.tj=function(f,h){f=f.getAttribute(h);Object(x.isUndefined)(f)||Object(x.isNull)(f)||(this[h]=f)};f.prototype.jy=
|
|
function(f,h){f=f.getAttribute(h);Object(x.isUndefined)(f)||Object(x.isNull)(f)||(this[h]=Number(f))};f.prototype.We=function(f,h,e){var n=this[h];Object(x.isUndefined)(n)||Object(x.isNull)(n)||n===e||f.setAttribute(h,n)};f.prototype.By=function(){this.JD&&!this.GD&&(this.GD=this.Sa())};f.prototype.Uja=function(f){this.uA=f};f.prototype.rR=function(){this.uA=void 0};return f}();ma.prototype.elementName="annotation";ma.prototype.selectionModel=aa.f;Object(ia.a)(ma);Object(f.a)(ma.prototype,{X:{get:function(){return this.Bz},
|
|
set:function(f){this.Bz=parseFloat(f);this.Ma(!0);this.f_()}},Y:{get:function(){return this.Cz},set:function(f){this.Cz=parseFloat(f);this.Ma(!0);this.f_()}},Width:{get:function(){return this.Uu},set:function(f){f=parseFloat(f);y.i(this.Uu,f)||(this.Uu=f,this.Ma())}},Height:{get:function(){return this.Tu},set:function(f){f=parseFloat(f);y.i(this.Tu,f)||(this.Tu=f,this.Ma())}},NoMove:{get:function(){return this.Ol("trn-annot-no-move")?"true"===this.ac("trn-annot-no-move"):this.KF},set:function(f){Object(x.isUndefined)(f)||
|
|
Object(x.isNull)(f)||f===this.KF?this.Df("trn-annot-no-move"):this.Db("trn-annot-no-move",f.toString())}},NoResize:{get:function(){return this.Ol("trn-annot-no-resize")?"true"===this.ac("trn-annot-no-resize"):this.Su},set:function(f){Object(x.isUndefined)(f)||Object(x.isNull)(f)||f===this.Su?this.Df("trn-annot-no-resize"):this.Db("trn-annot-no-resize",f.toString())}},NoDelete:{get:function(){return this.Ol("trn-annot-no-delete")?"true"===this.ac("trn-annot-no-delete"):this.oO},set:function(f){Object(x.isUndefined)(f)||
|
|
Object(x.isNull)(f)||f===this.oO?this.Df("trn-annot-no-delete"):this.Db("trn-annot-no-delete",f.toString())}},PageNumber:{get:function(){return this.MF},set:function(f){this.MF=parseInt(f,10);this.Ma(!0,!0);this.bb&&this.bb.setAttribute("page",this.MF-1)}},DateModified:{get:function(){return this.ZF},set:function(f){this.Ma(!0);this.ZF=fa.a.iT(f)}},Id:{get:function(){return this.cA},set:function(f){this.cA=f;this.Ma(!0)}},Author:{get:function(){return this.KO},set:function(f){this.KO=f;this.Ma(!0)}},
|
|
IsAdded:{get:function(){return this.nG},set:function(f){this.nG=f}},IsModified:{get:function(){return this.kp},set:function(f){this.kp=f}},IsDeleted:{get:function(){return this.BP},set:function(f){this.BP=f}},Listable:{get:function(){return this.Ol("trn-annot-listable")?"true"===this.ac("trn-annot-listable"):this.wz},set:function(f){f===this.wz?this.Df("trn-annot-listable"):f?this.Db("trn-annot-listable",f.toString()):this.Db("trn-annot-listable","false")}},Color:{get:function(){return this.Tm},set:function(f){f instanceof
|
|
ca.a&&(this.Tm=f,this.Ma())}},MaintainAspectRatio:{get:function(){return this.Ol("trn-annot-maintain-aspect-ratio")?"true"===this.ac("trn-annot-maintain-aspect-ratio"):this.nO},set:function(f){Object(x.isUndefined)(f)||Object(x.isNull)(f)||f===this.nO?this.Df("trn-annot-maintain-aspect-ratio"):this.Db("trn-annot-maintain-aspect-ratio",f.toString())}},IsClickableOutsideRect:{get:function(){return this.Ol("trn-annot-clickable-outside-rect")?"true"===this.ac("trn-annot-clickable-outside-rect"):this.JF},
|
|
set:function(f){Object(x.isUndefined)(f)||Object(x.isNull)(f)||f===this.JF?this.Df("trn-annot-clickable-outside-rect"):this.Db("trn-annot-clickable-outside-rect",f.toString())}},Printable:{get:function(){return this.flags&&this.flags.get("NoPrint")?!this.flags.get("NoPrint"):this.wO},set:function(f){this.wO=!!f;this.flags&&this.flags.get("NoPrint")&&this.flags.set("NoPrint",!f)}},InReplyTo:{get:function(){return this.tO},set:function(f){this.tO=f;this.Ma()}},ReplyType:{get:function(){return this.xO},
|
|
set:function(f){this.xO=f;this.Ma()}}},"selectionModel Hidden Invisible ReadOnly Locked LockedContents NoRotate NoZoom NoView ToggleNoView Subject Rotation RotationControlEnabled ToolName IsHoverable IsHovering".split(" "));ba.a=ma;(function(f){f.Annotations=f.Annotations||{};return f.Annotations.Annotation=ma})(window)},function(ia,ba,e){e.d(ba,"a",function(){return ea});var ea={MAX:1.79769E308,MIN:-1.79769E308}},function(ia,ba,e){var ea=e(1),x=e(21),ha=e(4),ca=e(8);ia=e(130);var da=e(35),aa=e(36),
|
|
w=e(6),y=window.Annotations||{};e=function(e){function h(f){var h=e.call(this,f)||this;h.Ej=null;h.Tm=new ca.a(255,0,0);h.Fj=null;h.KF=!0;h.Yf=[];h.NG=null;h["_xsi:type"]="Text Markup";h.Subject=h["_xsi:type"];h.cd(f);return h}Object(ea.c)(h,e);h.prototype.DE=function(f){if(!f||"undefined"===typeof f.length||0===f.length)throw Error("Argument quads requires an array of at least one element");this.Yf=f;for(var h=Infinity,e=Infinity,n=0,w=0,y=0;y<this.Yf.length;y++)f=this.Yf[y],h=Math.min(h,f.x1,f.x2,
|
|
f.x3,f.x4),e=Math.min(e,f.y1,f.y2,f.y3,f.y4),n=Math.max(n,f.x1,f.x2,f.x3,f.x4),w=Math.max(w,f.y1,f.y2,f.y3,f.y4);this.X=h;this.Y=e;this.Width=n-h;this.Height=w-e};h.prototype.nf=function(){return this.Yf};h.prototype.Lm=function(f){y.Annotation.prototype.Lm.apply(this,arguments);var h=[];this.Yf.forEach(function(e){var n={x:e.x1,y:e.y1},r={x:e.x2,y:e.y2},z={x:e.x3,y:e.y3};e={x:e.x4,y:e.y4};n=f.ra(n);r=f.ra(r);z=f.ra(z);e=f.ra(e);h.push(new ha.c(n.x,n.y,r.x,r.y,z.x,z.y,e.x,e.y))});0<h.length&&this.DE(h)};
|
|
h.prototype.serialize=function(f,h){if(this.bb)return this.bb;f=e.prototype.serialize.call(this,f,h);for(var n=[],r=0;r<this.Quads.length;r++){var y=this.Quads[r];n.push(new ha.b(y.x4,y.y4));n.push(new ha.b(y.x3,y.y3));n.push(new ha.b(y.x1,y.y1));n.push(new ha.b(y.x2,y.y2))}0<this.Quads.length&&(h=w.a.Cm(n,h,",",","),f.setAttribute("coords",h));return f};h.prototype.deserialize=function(f,h){y.oi.prototype.deserialize.apply(this,arguments);this.Yf=[];var e=f.getAttribute("coords");e=w.a.In(e,h,",",
|
|
",");for(var n=0;n+3<e.length;n+=4){if(x.a.Math.mea(e[n],e[n+3],e[n+1],e[n+2])){var r=e[n+2];e[n+2]=e[n+3];e[n+3]=r}r=new ha.c(e[n+3].x,e[n+3].y,e[n+2].x,e[n+2].y,e[n+1].x,e[n+1].y,e[n].x,e[n].y);this.Yf.push(r)}};return h}(aa.a);e.prototype.selectionModel=ia.a;e.prototype=Object.assign(new aa.a,e.prototype);Object(da.a)(e.prototype,{Quads:{get:function(){return this.Yf},set:function(e){this.DE(e)}}});ba.a=e;(window.Annotations||{}).Xk=e},function(ia,ba){ba.a=function(){function e(){}e.DONE=0;e.pr=
|
|
1;e.To=2;e.woa=0;e.yoa=1;e.xoa=2;return e}()},function(ia,ba,e){var ea=e(1);ia=e(140);var x=e(8);e=function(e){function ca(da,aa){da=e.call(this,da)||this;da.annotation=null;da.text=null;da.annotationPrototype=aa;da.defaults={Opacity:1,StrokeColor:new x.a(255,0,0)};return da}Object(ea.c)(ca,e);ca.prototype.switchIn=function(da){e.prototype.switchIn.call(this,da)};ca.prototype.switchOut=function(da){this.annotation&&(this.aa.la.Dc(this.annotation),this.text=this.annotation=null);e.prototype.switchOut.call(this,
|
|
da)};ca.prototype.mouseLeftDown=function(da){e.prototype.mouseLeftDown.call(this,da);this.isSelecting()||this.annotation||!this.pageCoordinates||(da=this.aa.la,this.annotation=new this.annotationPrototype,this.annotation.Author=da.kg(),da=this.defaults.StrokeColor,this.annotation.StrokeColor=new x.a(da.R,da.G,da.B,da.A),this.annotation.Opacity=this.defaults.Opacity||1,this.annotation.ToolName=this.name,this.trigger(ca.Events.ANNOTATION_CREATED,[this.annotation]))};ca.prototype.textSelected=function(e,
|
|
aa,w){this.annotation&&this.pageCoordinates[0].pageNumber===e&&0<aa.length&&(this.annotation.DE(aa),this.annotation.PageNumber=e,this.text=w,!ca.AUTO_SET_TEXT||this.annotation.NG&&this.annotation.NG!==this.annotation.getContents()||(this.annotation.NG=this.text,this.annotation.setContents(this.text)),this.annotation.Db("trn-annot-preview",this.text),this.aa.la.qb(this.annotation))};ca.prototype.mouseLeftUp=function(da){e.prototype.mouseLeftUp.call(this,da);!this.isSelecting()&&this.annotation&&(da=
|
|
this.aa.la,!this.text||1>this.text.length?da.Dc(this.annotation):(da.Sd(this.annotation),this.trigger(ca.Events.ANNOTATION_ADDED,[this.annotation])),this.annotation=this.text=null)};ca.AUTO_SET_TEXT=!1;ca.Events={ANNOTATION_ADDED:"annotationAdded",ANNOTATION_CREATED:"annotationCreated"};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(45),ha=e(3),ca=e(233);ia=e(114);var da=e(4),aa=e(26);e=function(e){function w(n,h){n=e.call(this,n,ca.a)||this;n.name=h||ha.m.RECTANGLE;return n}Object(ea.c)(w,
|
|
e);w.prototype.mouseLeftDown=function(n){e.prototype.mouseLeftDown.call(this,n);this.annotation&&this.defaults.Style&&(this.annotation.Style=this.defaults.Style);this.wd&&this.Ik(this.pageCoordinates[0])};w.prototype.mouseMove=function(n){var h=this;if(this.wd&&!this.annotation)this.qs(n);else if(this.wd&&this.annotation){var f=this.pageCoordinates[0],r=this.pageCoordinates[1];this.Ik(r).then(function(){aa.a.prototype.mouseMove.call(h,n);var e=new da.d(f.x,f.y,r.x,r.y);e.normalize();h.annotation.cc(e);
|
|
h.aa.la.qb(h.annotation);h.Bn(n)})}else e.prototype.mouseMove.call(this,n)};return w}(x.a);Object(ia.a)(e);ba.a=e},function(ia,ba,e){var ea=e(72),x=e(101);ia=function(){function e(e,da){void 0===e&&(e=0);void 0===da&&(da=0);e="string"===typeof e?parseFloat(e):e;da="string"===typeof da?parseFloat(da):da;this.Pa=new x.a(3,1);this.Pa.set(0,0,e);this.Pa.set(1,0,da);this.Pa.set(2,0,1)}Object.defineProperty(e,"Origin",{get:function(){return new e},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,
|
|
"X",{get:function(){return this.Pa.get(0,0)},set:function(e){this.Pa.set(0,0,e);delete this.ZA},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"x",{get:function(){return this.X},set:function(e){this.X=e},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"Y",{get:function(){return this.Pa.get(1,0)},set:function(e){this.Pa.set(1,0,e);delete this.ZA},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"y",{get:function(){return this.Y},set:function(e){this.Y=
|
|
e},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"Length",{get:function(){this.ZA||(this.ZA=Object(ea.a)(Math.sqrt(this.X*this.X+this.Y*this.Y)));return this.ZA},enumerable:!1,configurable:!0});e.prototype.Kc=function(){return this.X};e.prototype.Lc=function(){return this.Y};e.prototype.add=function(x){return new e(Object(ea.a)(this.X+x.X),Object(ea.a)(this.Y+x.Y))};e.prototype.subtract=function(x){return new e(Object(ea.a)(this.X-x.X),Object(ea.a)(this.Y-x.Y))};e.prototype.Kb=
|
|
function(e){return Object(ea.a)(this.X*e.X+this.Y*e.Y)};e.prototype.R6=function(e){var da=this.Pa,aa=e.Pa;e=Object(ea.a)(da.get(1,0)*aa.get(2,0)-da.get(2,0)*aa.get(1,0));var w=Object(ea.a)(da.get(2,0)*aa.get(0,0)-da.get(0,0)*aa.get(2,0));da=Object(ea.a)(da.get(0,0)*aa.get(1,0)-da.get(1,0)*aa.get(0,0));return{X:e,Y:w,Z:da}};e.prototype.ie=function(e){return e.subtract(this).Length};e.prototype.angle=function(e,da){void 0===da&&(da=!1);var aa=this.Length,w=e.Length;e=this.Kb(e);aa=Math.acos(e/(aa*w));
|
|
return da?aa:180/Math.PI*aa};e.prototype.normalize=function(){var x=this.Length;return 0===x?new e:new e(Object(ea.a)(this.X/x),Object(ea.a)(this.Y/x))};e.prototype.reverse=function(){return new e(-this.X,-this.Y)};e.prototype.jga=function(){return new e(this.Y,-this.X)};e.prototype.translate=function(e,da){this.X=Object(ea.a)(this.X+e);this.Y=Object(ea.a)(this.Y+da)};e.prototype.rotate=function(x,da,aa){void 0===da&&(da=!1);void 0===aa&&(aa=e.Origin);x=da?x:Math.PI/180*x;aa=e.Origin.subtract(aa);
|
|
this.translate(aa.X,aa.Y);da=this.X*Math.sin(x)+this.Y*Math.cos(x);this.X=this.X*Math.cos(x)-this.Y*Math.sin(x);this.Y=da;this.translate(-aa.X,-aa.Y)};e.prototype.scale=function(e){this.X=Object(ea.a)(this.X*e);this.Y=Object(ea.a)(this.Y*e)};e.prototype.PZ=function(){for(var e=this,da=[],aa=0;aa<arguments.length;aa++)da[aa]=arguments[aa];var w=new x.a(3,da.length+1);w.set(0,0,this.X);w.set(1,0,this.Y);w.set(2,0,this.Pa.get(2,0));var y=1;da.forEach(function(n){for(var h=0;h<e.Pa.Rows;h++)w.set(y,h,
|
|
n.Pa.get(h,0));y++});return w};e.prototype.transform=function(e){var da=this.PZ();da=e.multiply(da);e=Object(ea.a)(da.get(0,0));da=Object(ea.a)(da.get(1,0));this.X=e;this.Y=da};e.prototype.vs=function(e){return 1E-5>Math.abs(this.X-e.X)&&1E-5>Math.abs(this.Y-e.Y)};e.prototype.Lda=function(e){var da=1===this.Length?this:this.normalize();e=1===e.Length?e:e.normalize();return da.vs(e)};e.prototype.clone=function(){return new e(this.X,this.Y)};e.prototype.kI=function(e){return this.vs(e)};e.prototype.toString=
|
|
function(){return"[Point: x="+this.x+" y="+this.y+"]"};e.prototype.toJSON=function(){return{x:this.x,y:this.y}};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(4);ia=e(129);var ha=e(14),ca=e(35);e=e(36);var da=window.Annotations||{};e=function(e){function w(w){var n=e.call(this,w)||this;n.ga=[];n.SF=new x.e;n.Eb={x:0,y:0};n.Jc={x:0,y:0};n.cd(w);return n}Object(ea.c)(w,e);w.prototype.Td=function(){};w.prototype.Bc=function(e,n){var h=this.getRectPadding(),f=new x.b(e,n);this.ga.push(f);1===
|
|
this.ga.length?(this.Eb={x:e,y:n},this.Jc={x:e,y:n},Object.getOwnPropertyDescriptor(da.Annotation.prototype,"X").set.call(this,e-h),Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Y").set.call(this,n-h)):(e>this.Jc.x&&(Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Width").set.call(this,e-this.Eb.x+2*h),this.Jc.x=e),n>this.Jc.y&&(Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Height").set.call(this,n-this.Eb.y+2*h),this.Jc.y=n),e<this.Eb.x&&(Object.getOwnPropertyDescriptor(da.Annotation.prototype,
|
|
"Width").set.call(this,this.Jc.x-e+2*h),Object.getOwnPropertyDescriptor(da.Annotation.prototype,"X").set.call(this,e-h),this.Eb.x=e),n<this.Eb.y&&(Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Height").set.call(this,this.Jc.y-n+2*h),Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Y").set.call(this,n-h),this.Eb.y=n));!this.Measure||"PolyLineDimension"!==this.IT&&"PolygonDimension"!==this.IT||this.Td()};w.prototype.Lm=function(w){e.prototype.Lm.call(this,w);for(var n=this.ga,h=0;h<
|
|
n.length;++h)n[h]=w.ra(n[h])};w.prototype.sh=function(e,n,h){this.ga&&this.ga.length>e?(this.ga[e].x=n,this.ga[e].y=h,this.adjustRect()):this.ga&&this.ga.length===e&&this.Bc(n,h);this.Ma()};w.prototype.ik=function(e){return this.ga&&this.ga.length>e?this.ga[e]:null};w.prototype.wo=function(){var e=this.ga.pop();this.adjustRect();return e};w.prototype.Ra=function(){return this.ga};w.prototype.sj=function(e){this.ga=e;this.adjustRect()};w.prototype.getRectPadding=function(){return this.StrokeThickness};
|
|
w.prototype.adjustRect=function(){if(0!==this.ga.length&&!this.ga.every(function(f){return isNaN(f.length)&&isNaN(f.x)&&isNaN(f.y)})){this.Eb={x:Number.MAX_VALUE,y:Number.MAX_VALUE};this.Jc={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};for(var e=0;e<this.ga.length;e++)if(null!==this.ga[e]){var n=this.ga[e].x,h=this.ga[e].y;n>this.Jc.x&&(this.Jc.x=n);h>this.Jc.y&&(this.Jc.y=h);n<this.Eb.x&&(this.Eb.x=n);h<this.Eb.y&&(this.Eb.y=h)}var f=this.getRectPadding();e=this.Eb.x-f;n=this.Eb.y-f;h=Math.max(0,this.Jc.x-
|
|
this.Eb.x)+2*f;f=Math.max(0,this.Jc.y-this.Eb.y)+2*f;Object.getOwnPropertyDescriptor(da.Annotation.prototype,"X").set.call(this,e);Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Y").set.call(this,n);Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Width").set.call(this,h);Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Height").set.call(this,f);this.By()}};w.prototype.rotate=function(e,n){void 0===n&&(n=this.dk());this.Rotation=ha.a.kk(ha.a.yk(ha.a.tb(this.Rotation)-e));
|
|
this.ga=ha.a.vC(this.ga,e,n);this.adjustRect()};w.prototype.$E=function(e,n){n=Object(ea.a)({x:this.X,y:this.Y},n);var h=n.x-this.X,f=n.y-this.Y;!e||1>e.length?(Object.getOwnPropertyDescriptor(da.Annotation.prototype,"X").set.apply(this,[n.x]),Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Y").set.apply(this,[n.y])):e.forEach(function(e){return e.translate(h,f)})};w.prototype.ZE=function(e,n){n=Object(ea.a)({width:this.Width,height:this.Height},n);var h=2*this.getRectPadding(),f=n.width!==
|
|
this.Width&&h!==this.Width?(n.width-h)/(this.Width-h):1;h=n.height!==this.Height&&h!==this.Height?(n.height-h)/(this.Height-h):1;if(!(.016>Math.abs(1-f)&&.016>Math.abs(1-h)))if(!e||1>e.length)Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Width").set.apply(this,[n.width]),Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Height").set.apply(this,[n.height]);else{this.SF.clear();var r=this.SF.translate(-this.X,-this.Y).scale(f,h).translate(this.X,this.Y).Ds();e.forEach(function(f){return f.transform(r)})}};
|
|
return w}(e.a);e.prototype.selectionModel=ia.a;Object(ca.a)(e.prototype,{X:{get:function(){return Object.getOwnPropertyDescriptor(da.Annotation.prototype,"X").get.call(this)},set:function(e){this.$E(this.ga,{x:e});this.adjustRect()}},Y:{get:function(){return Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Y").get.call(this)},set:function(e){this.$E(this.ga,{y:e});this.adjustRect()}},Width:{get:function(){return Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Width").get.call(this)},
|
|
set:function(e){this.ZE(this.ga,{width:e});this.adjustRect()}},Height:{get:function(){return Object.getOwnPropertyDescriptor(da.Annotation.prototype,"Height").get.call(this)},set:function(e){this.ZE(this.ga,{height:e});this.adjustRect()}}});ba.a=e;(window.Annotations||{}).Og=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(68),da=e(29);ia=e(51);var aa=e(97),w=e(19),y=e(75),n=e(23),h=e(20);e=function(){function f(f){this.ca=[];this.sf={};this.eN=f}f.prototype.Bs=function(){return this.eN};
|
|
f.prototype.Is=function(){Object(h.e)()};f.prototype.Al=function(){Object(h.e)()};f.prototype.jC=function(){Object(h.e)()};f.prototype.PB=function(){Object(h.e)()};f.prototype.Eh=function(){Object(h.e)()};f.prototype.cancelLoadCanvas=function(){Object(h.e)()};f.prototype.tu=function(){Object(h.e)()};f.prototype.Ev=function(){Object(h.e)()};f.prototype.GI=function(){Object(h.e)()};f.prototype.Gs=function(){Object(h.e)()};f.prototype.iC=function(){Object(h.e)()};f.prototype.fC=function(){Object(h.e)()};
|
|
f.prototype.Hs=function(){Object(h.e)()};f.prototype.Wb=function(){Object(h.e)()};f.prototype.mb=function(f){--f;if(!this.ca[f])return null;var h={};h.width=this.ca[f].width;h.height=this.ca[f].height;return h};f.prototype.getMetadata=function(){return Promise.resolve({title:this.sf.title,creator:this.sf.creator,subject:this.sf.subject,keywords:this.sf.keywords,created:this.sf.created,modified:this.sf.modified,description:this.sf.description,producer:this.sf.producer})};f.prototype.Go=function(){return!0};
|
|
f.prototype.GY=function(f){this.ws=f};f.prototype.je=function(f){this.ws&&this.ws(f)};f.prototype.Oi=function(f,h,e){h={x:h,y:e};return this.ca[f-1].Pa.inverse().ra(h)};f.prototype.FC=function(){Object(h.e)()};f.prototype.co=function(f,h,e){return this.ca[f-1].Pa.ra({x:h,y:e})};f.prototype.qk=function(){Object(h.e)()};f.prototype.Xs=function(){Object(h.e)()};f.prototype.jo=function(){Object(h.e)()};f.prototype.mt=function(){Object(h.e)()};f.prototype.Oy=function(){Object(h.e)()};f.prototype.yV=function(){return""};
|
|
f.prototype.SB=function(){Object(h.e)()};f.prototype.uD=function(){Object(h.e)()};f.prototype.DV=function(){return""};f.prototype.UD=function(){Object(h.e)()};f.prototype.lE=function(){Object(h.e)()};f.prototype.Zq=function(){Object(h.e)()};f.prototype.FE=function(){Object(h.e)()};f.prototype.Cy=function(){Object(h.e)()};f.prototype.Md=function(){Object(h.e)()};f.prototype.qt=function(){Object(h.e)()};f.prototype.rx=function(){Object(h.e)()};f.prototype.Dn=function(){Object(h.e)()};f.prototype.vq=
|
|
function(){return!1};f.prototype.correctQuadsForPageRotation=function(f,h){f=this.ca[f];var e=(4-f.rotation/90)%4;0!==e&&(f=Object(y.a)(1,e,f,{x:0,y:0},!1),h.T4(f))};f.prototype.dj=function(){Object(h.e)()};f.prototype.Ks=function(){return null};f.prototype.getFileData=function(){Object(h.e)()};f.prototype.Hf=function(){Object(h.e)()};f.prototype.yg=function(){Object(h.e)()};f.prototype.oh=function(){Object(h.e)()};f.prototype.AC=function(f){return"schema"===f||"locations"===f?Promise.resolve({}):
|
|
Promise.resolve([])};f.prototype.Ur=function(){return Promise.resolve()};f.prototype.Dl=function(){Object(h.e)()};f.prototype.my=function(){Object(h.e)()};f.prototype.Ie=function(){Object(h.e)()};f.prototype.Fh=function(){Object(h.e)()};f.prototype.Bm=function(){};f.prototype.print=function(){};f.prototype.Nh=function(f){return String(f)};f.prototype.hk=function(){return Object(x.range)(0,this.ca.length).map(String)};f.prototype.Gf=function(){Object(h.e)()};f.prototype.Un=function(){Object(h.e)()};
|
|
f.prototype.Bo=function(){Object(h.e)()};f.prototype.AE=function(){Object(h.e)()};f.prototype.getNewAppearanceDocument=function(){Object(h.e)()};f.prototype.zn=function(){var f=1,h=this.ca.length,e=Object(w.k)();e*=e;for(var n=0;n<h;++n){var aa=this.ca[n];f=Math.max(f,aa.width*aa.height*e)}return Math.sqrt(43E5/f)};f.prototype.An=function(f){return 0===f.m_b&&0===f.m_c?0<f.m_a?0:180:0>f.m_b?270:90};f.prototype.Zr=function(f,h){var e=this.An(f),n=h.w;h=h.h;if(90===e||270===e){var r=n;n=h;h=r}switch(e){case 0:return e=
|
|
-f.m_h,r=f.m_v,{x1:e,y1:r-h,x2:r-h,y2:r};case 90:return r=-f.m_h,e=-f.m_v,{x1:e,y1:r,x2:e+n,y2:r+h};case 180:return e=f.m_h,r=-f.m_v,{x1:e-n,y1:r,x2:e,y2:r+h};case 270:return r=f.m_h,e=f.m_v,{x1:e-n,y1:r-h,x2:e,y2:r}}return null};f.prototype.Do=function(f){this.Ja=f};f.prototype.drawWatermark=function(f,e,n,w,aa,y,da){var r=this;void 0===aa&&(aa=1);void 0===y&&(y=void 0);void 0===da&&(da=!1);if(this.Ja&&this.Ja.shouldDrawOverAnnotations===n){var z,fa=this.ca[e-1].width,ja=this.ca[e-1].height;fa*=
|
|
aa;ja*=aa;var x=f.getContext("2d");x.save();y&&x.transform.apply(x,y);x.textAlign="center";x.textBaseline="top";f=(4-w)%4;if(n&&0!==f||da){switch(f){case 1:x.translate(0,fa);break;case 2:x.translate(fa,ja);break;case 3:x.translate(ja,0)}x.rotate(90*w*Math.PI/180)}var ka=function(f){var e=f.fontSize||20;e*=aa;var n=f.fontFamily||"sans-serif",r=Object(h.c)(f.fontStyles);z=1.5*e;x.font=r+" "+e+"pt "+n;x.fillStyle=f.color||"black";x.globalAlpha=(null===f.opacity||void 0===f.opacity?100:f.opacity)/100};
|
|
if(this.Ja.diagonal){x.save();ka(this.Ja.diagonal);x.translate(fa/2,ja/2);x.rotate(-Math.atan(ja/fa));if(this.Ja.diagonal.text){var ca=Object(h.f)(this.Ja.diagonal.fontStyles);var pa=this.Ja.diagonal.text.split("\n");pa.forEach(function(f,e){Object(h.a)(x,f,0,(e-pa.length/2)*z,x.fillStyle,ca)})}x.restore()}n=function(f,e){f.forEach(function(f,n){Object(h.a)(x,f,0,n*z,x.fillStyle,e)})};w=function(f,e){f.forEach(function(n,r){Object(h.a)(x,n,0,(r-f.length)*z,x.fillStyle,e)})};da=function(f,e,n,z,w){x.save();
|
|
x.translate(n,z);ka(r.Ja[f]);r.Ja[f].text&&(n=Object(h.g)(x,r.Ja[f].text,w),f=Object(h.f)(r.Ja[f].fontStyles),e(n,f));x.restore()};f=fa/3;if(this.Ja.header)y=Object(h.f)(this.Ja.header.fontStyles),x.save(),ka(this.Ja.header),x.translate(fa/6,0),this.Ja.header.left&&n(Object(h.g)(x,this.Ja.header.left,f),y),x.translate(fa/3,0),this.Ja.header.center&&n(Object(h.g)(x,this.Ja.header.center,f),y),x.translate(fa/3,0),this.Ja.header.right&&n(Object(h.g)(x,this.Ja.header.right,f),y),x.restore();else if(this.Ja.headerLeft||
|
|
this.Ja.headerCenter||this.Ja.headerRight)this.Ja.headerLeft&&da("headerLeft",n,fa/6,0,f),this.Ja.headerCenter&&da("headerCenter",n,fa/6+fa/3,0,f),this.Ja.headerRight&&da("headerRight",n,fa/6+fa/3+fa/3,0,f);if(this.Ja.footer)y=Object(h.f)(this.Ja.footer.fontStyles),x.save(),ka(this.Ja.footer),x.translate(fa/6,ja),this.Ja.footer.left&&w(Object(h.g)(x,this.Ja.footer.left,f),y),x.translate(fa/3,0),this.Ja.footer.center&&w(Object(h.g)(x,this.Ja.footer.center,f),y),x.translate(fa/3,0),this.Ja.footer.right&&
|
|
w(Object(h.g)(x,this.Ja.footer.right,f),y),x.restore();else if(this.Ja.footerLeft||this.Ja.footerCenter||this.Ja.footerRight)this.Ja.footerLeft&&da("footerLeft",w,fa/6,ja,f),this.Ja.footerCenter&&da("footerCenter",w,fa/6+fa/3,ja,f),this.Ja.footerRight&&da("footerRight",w,fa/6+fa/3+fa/3,ja,f);this.Ja.custom&&(x.save(),this.Ja.custom(x,e,fa,ja),x.restore());x.restore()}};f.prototype.fU=function(f){f=f||1;var h=this.mb(f),e=document.createElement("canvas");e.width=h.width;e.height=h.height;var n=e.getContext("2d");
|
|
n.rect(0,0,h.width,h.height);n.fillStyle="rgba(255, 255, 255, 0.0)";n.fill();this.drawWatermark(e,f);return e};f.prototype.jN=function(f){var h=this;return new Promise(function(e){var n=h.fU(f),r=new FileReader;r.onload=function(f){e(f.target.result)};n.toBlob(function(f){r.readAsArrayBuffer(f)})})};f.prototype.W9=function(f,h){if(f.byteLength!==h.byteLength)return!1;var e=new Int8Array(f);h=new Int8Array(h);for(var n=0;n!==f.byteLength;n++)if(e[n]!==h[n])return!1;return!0};f.prototype.wJ=function(f){var h=
|
|
this;return new Promise(function(e){if(h.Ja){f||(f=Object(x.range)(1,h.getPageCount()+1));var n=f.length,r=[],z;if(h.Ja.hasOwnProperty("custom")){for(z=0;z<n;z++)r.push(h.jN(f[z]));Promise.all(r).then(function(f){var r={},z=f[0];r["default"]=z;for(var w=1;w<n;w++){var fa=f[w];h.W9(fa,z)||(r[w.toString()]=fa)}e(r)})}else{var w=f[0];z=h.mb(w);var fa=z.width,aa=z.height;r.push(h.jN(w));var y=["default"];for(z=1;z<n;z++){w=f[z];var da=h.mb(w);if(fa!==da.width||aa!==da.height)y.push(z.toString()),r.push(h.jN(w))}Promise.all(r).then(function(f){for(var h=
|
|
{},n=0;n<y.length;n++)h[y[n]]=f[n];e(h)})}}else e()})};f.prototype.ym=function(){return Promise.resolve()};f.prototype.jba=function(f){return f.id?f.id:f.objnum+"-"+f.gennum};f.prototype.qw=function(f,h){var e,n=null===(e=this.Qj)||void 0===e?void 0:e.jaa(this.cC(h));return n&&n.source===JSON.stringify(f)?Promise.resolve(n):this.getNewAppearanceDocument(f,h)};f.prototype.Gl=function(f,h){for(var e=this,r=f.length,z=[],w=this.qw(f,h),y=0;y<r;++y){var da=f[y],na=e.jba(da);da.annotationState&&(na+="_"+
|
|
da.annotationState);da.appearanceState&&(na+="-"+da.appearanceState);z.push(Promise.all([na,da.blendMode,w]).then(function(f){function r(f){if(void 0!==(null===f||void 0===f?void 0:f.OC)&&z in f.OC){var r=f.OC[z];return{value:new Promise(function(z,fa){var y=e.ca[h-1],ja=Object(ca.b)(r+1,1,0,function(){}),da=Object(x.uniqueId)(),ka={};ka[da]={Uh:null,paused:!1,wc:ja.pageNumber-1};f.rx(ja.pageNumber,da,function(f,h){f&&fa(Error("Error loading page "+ja.pageNumber+": "+f));Object(x.isUndefined)(ka[da])||
|
|
(ka[da].Uh=h,ka[da].paused&&h.pause(),ja.finishedLoading()&&h.yK(function(){z({draw:function(f,h){var e=this;return new Promise(function(r){var z=f.getTransform(),fa=new n.a,ja=Object(aa.b)(y.Pa)/1.33333;fa.ab(ja,0,0,ja,h.x,h.y);z.concat(fa);f.translate(h.x,h.y);f.scale(ja,ja);"multiply"===w&&(f.globalAlpha=.5);e.Uh.iS(f,z,r)})},Uh:h})},void 0,!0))})})}}}var z=f[0],w=f[1],fa=0;for(f=[].concat(f[2]);fa<f.length;fa++){var y=r(f[fa]);if("object"===typeof y)return y.value}if(!z.startsWith("xx"))throw Error("No matching annotation in appearance document.");
|
|
}))}return z};f.prototype.uT=function(f){var h=this;return Object(da.k)()?window.PDFNet.runWithCleanup(function(){return Object(ea.b)(h,void 0,void 0,function(){var h,e;return Object(ea.d)(this,function(n){switch(n.label){case 0:return[4,window.PDFNet.PDFDoc.createFromBuffer(new Uint8Array(f))];case 1:return h=n.ea(),[4,h.flattenAnnotations()];case 2:return n.ea(),[4,h.saveMemoryBuffer(window.PDFNet.SDFDoc.SaveOptions.e_linearized)];case 3:return e=n.ea(),[2,e.buffer]}})})}):(Object(ha.j)("getFileData with flatten: true requires the full API to be enabled. Please set the fullAPI option to true in your WebViewer constructor."),
|
|
Promise.resolve(f))};f.prototype.w4=function(f){this.ca||(this.ca=[]);this.ca.push(f)};f.prototype.Xja=function(f,h){this.ca||(this.ca=[]);this.ca[h-1]=f};f.prototype.Ll=function(f){return this.ca[f-1]};return f}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){ia=e(0);e.n(ia);var ea=e(2);ia=e(51);var x=e(131),ha=e(163),ca=function(){function e(e){this.Jq=e;this.vZ=!1;this.um=1}e.prototype.cancel=function(){};return e}();e=function(){function e(e,w,y){this.source=e;this.dB=this.vH=!1;this.bi={};this.fw=
|
|
function(){};this.decrypt=w;this.Vv=y;this.NR=w!==x.a;this.Aj="Document/FixedDocument.fdoc";this.Sk="Document/DocProps/core.xml";this.zj="Document/Structure/DocStruct.struct"}e.prototype.ot=function(){};e.prototype.uL=function(){};e.prototype.FY=function(e){this.fw=e};e.prototype.Zx=function(e){var w=this;this.ot(function(y,n,h){if(y){Object(ea.j)("Error loading document: "+y);n=Object(ha.b)(h.request);w.fw({message:y,serverResponse:n});if(e){e(y);return}throw y;}return w.request([w.Aj,w.Sk,w.zj])})};
|
|
e.prototype.yo=function(){return!1};e.prototype.request=function(aa,w){var y=this;if(!this.vH)throw Error("Document must be loaded before requesting parts");aa.forEach(function(n){y.n$(n,function(h,f,n,z){return h?(f!==y.zj&&0!==f.indexOf("Annot/Appearances")&&y.fw(h),y.trigger(e.Events.PART_READY,[{cb:f,Ki:!1,cg:!!h.aborted,error:h}])):y.trigger(e.Events.PART_READY,[{cb:f,data:n,Ki:!1,cg:!1,error:null,gd:z,aW:w}])})})};e.prototype.vE=function(e){this.jf=e};e.prototype.Eo=function(e){this.withCredentials=
|
|
e};e.prototype.sH=function(e){var w=this;e.forEach(function(e){var n=w.bi[e];n&&(n.um--,0===n.um&&(delete w.bi[e],n.cancel()))})};e.prototype.n$=function(e,w){this.bi[e]?this.bi[e].um++:(this.bi[e]=new ca(e),this.uL(e,w))};e.withCredentials=!0;e.Events={PART_READY:"partReady",DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",ERROR:"error"};return e}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){var ea=e(86);ia=function(){function e(){this.ka=this.oa=this.ja=this.na=0}e.prototype.ab=function(e,x,da,
|
|
aa){this.na=e;this.ja=x;this.oa=da;this.ka=aa};e.prototype.Wl=function(e){this.na=e.na;this.ja=e.ja;this.oa=e.oa;this.ka=e.ka};e.prototype.normalize=function(){if(this.na>this.oa){var e=this.na;this.na=this.oa;this.oa=e}this.ja>this.ka&&(e=this.ja,this.ja=this.ka,this.ka=e)};e.prototype.set=function(e,x,da,aa){this.na=e;this.ja=x;this.oa=da;this.ka=aa};e.prototype.xx=function(e){return this.oa<e.na||this.na>e.oa||this.ka<e.ja||this.ja>e.ka};e.prototype.width=function(){var e=this.oa-this.na;return 0>
|
|
e?-e:e};e.prototype.height=function(){var e=this.ka-this.ja;return 0>e?-e:e};e.prototype.Yq=function(e){for(var x=1.79769E308,da=ea.a.MIN,aa=1.79769E308,w=ea.a.MIN,y=0;4>y;++y){var n=e[2*y],h=e[2*y+1];x=Math.min(x,n);da=Math.max(da,n);aa=Math.min(aa,h);w=Math.max(w,h)}this.na=x;this.ja=aa;this.oa=da;this.ka=w};e.prototype.UC=function(e,x){if(e.na<e.oa){var da=e.na;var aa=e.oa}else da=e.oa,aa=e.na;if(e.ja<e.ka){var w=e.ja;e=e.ka}else w=e.ka,e=e.ja;if(x.na<x.oa){var y=x.na;var n=x.oa}else y=x.oa,n=
|
|
x.na;if(x.ja<x.ka){var h=x.ja;x=x.ka}else h=x.ka,x=x.ja;if(aa<y||n<da||e<h||x<w)return this.na=this.oa=this.ja=this.ka=0,!1;this.na=da<y?y:da;this.oa=aa<n?aa:n;this.ja=w<h?h:w;this.ka=e<x?e:x;return this.na===this.oa||this.ja===this.ka?(this.na=this.oa=this.ja=this.ka=0,!1):!0};e.prototype.Zca=function(){this.q3()};e.prototype.q3=function(){this.normalize();this.na-=.1;this.oa+=.1;this.ja-=.1;this.ka+=.1};e.prototype.union=function(e){e.na<this.na&&(this.na=e.na);e.ja<this.ja&&(this.ja=e.ja);e.oa>
|
|
this.oa&&(this.oa=e.oa);e.ka>this.ka&&(this.ka=e.ka)};e.prototype.contains=function(e,x){if(this.na<this.oa){if(e<this.na||e>this.oa)return!1}else if(e<this.oa||e>this.na)return!1;if(this.ja<this.ka){if(x<this.ja||x>this.ka)return!1}else if(x<this.ka||x>this.ja)return!1;return!0};return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);ia=e(194);var x=e(67),ha=e(6),ca=new ia.a;e=function(){function e(e){this.Um={};this.aG=null;Object(ea.isObject)(e)&&Object(ea.isObject)(e.actions)&&this.IA(e.actions)}
|
|
e.prototype.IA=function(e,w){var y=this;w&&(this.Um={});Object(ea.isObject)(e)&&Object.keys(e).forEach(function(n){if(e.hasOwnProperty(n))for(var h=e[n].length,f=0;f<h;++f)y.Bi(n,e[n][f])})};e.prototype.Bi=function(e,w,y){y=y?[]:this.Um[e]||[];w instanceof x.a?y.includes(w)||y.push(w):(w=ca.dda(w))&&y.push(w);this.Um[e]=y};e.prototype.Fl=function(){return this.Um};e.prototype.Tf=function(e,w){if(e=this.Um[e])for(var y=e.length,n=0;n<y;++n)e[n].onTriggered(this,w,this.aG)};e.prototype.ii=function(e){this.aG=
|
|
e};e.prototype.Yd=function(){return this.aG};e.prototype.uia=function(e,w){function y(e,n){n.forEach(function(n){var r=document.createElementNS("","Action");r.setAttribute("Trigger",e);if(n=n.serialize(w))r.appendChild(n),f=!0;h.appendChild(r)})}var n=this;var h=document.createElementNS("","OnActivation");var f=!1;Object.keys(this.Um).forEach(function(f){n.Um.hasOwnProperty(f)&&y(f,n.Um[f])});f&&e.appendChild(h)};e.prototype.tQ=function(e,w,y){e=ha.a.O$(e);for(var n=e.length,h=0;h<n;++h){var f=e[h],
|
|
r=ha.a.getAttribute(f,"Trigger")||"U";(f=ca.eda(f,w,y))&&this.Bi(r,f)}};return e}();ba.a=e},function(ia,ba,e){function ea(f,h,e){this.page=f;this.Ic=h;this.xg=e;this.xS=h.pb.zg?h.pb.zg.path:void 0;this.yq=this.paused=!1}function x(f){var h=.707106781*f.m_a+.707106781*f.m_b;f=.707106781*f.m_c+.707106781*f.m_d;return Math.sqrt(h*h+f*f)}e.d(ba,"a",function(){return h});e.d(ba,"b",function(){return x});var ha=e(0);e.n(ha);var ca=e(2),da=e(3),aa=e(136),w=e(28),y=e(64),n=window;ea.prototype={pause:function(){this.paused=
|
|
!0;this.zH()},zH:function(){this.rD=!1;aa.a.clearImmediate(this.BV)},iS:function(f,h,e,n,w){function r(){ba=!0;y&&y.zt().then(function(){if(z.abort){if(oa)return fa&&(fa=!1,n(ea)),y=z.resume=null,z.zH(),z.abort&&z.abort(),e(ea);z.abort&&((x=5<++ka)&&da&&fa&&w&&(fa=!1,n(ea)),oa=y.ph(f,h,50),!oa&&y.Rca&&n(ea),ba=!1,z.rD=!1,z.paused||z.zE())}})}var z=this,fa=void 0!==n;e=e||function(){};var y=this.Ic.Ec,x=!1,da=!1,ka=0,ea=f.canvas,qa=setTimeout(function(){da=!0;x&&fa&&w&&(fa=!1,n(ea))},3E3),ba=!1;z.abort=
|
|
function(){ba=!1;z.zH();z.BV=null;z.resume=null;y&&(y.cancel(),y=null);z.Ic.Ec=null;clearTimeout(qa);z.zE=null;Object(ha.each)(z.Ic.Jb,function(f){switch(f.type){case "png":case "jpg":f&&f.data&&!f.data.startsWith("url(data")&&(URL.revokeObjectURL(f.data),f.data=null);break;case "font":if(f&&f.data&&f.data.url&&!f.data.url.startsWith("url(data")){var h=f.data.url;if(h.startsWith("url('")){if(8>h.length){Object(ca.j)("Invalid font ObjectURL.");break}h=h.substring(5,h.length-2)}URL.revokeObjectURL(h);
|
|
f.data.url=null}}});z.abort=null};var oa=!1;z.resume=function(){!1!==ba||z.rD||z.zE();z.paused=!1};z.zE=function(){z.rD=!0;z.BV=aa.a.setImmediate(r)};z.rD=!1;z.paused||z.zE()},q6:function(f,h,e,n,y,aa,x,ca,la,na){f=f||1;h=h||da.f.E_0;y&&0<y&&(y=Math.round(y));f=Object(w.a)().setUpCanvas(this.page,f,h,aa,y,x,la,na);this.iS(f.ctx,f.t,e,n,ca)},RT:function(f){var h=[];if(f){for(var e=0;e<f.length;++e)h[e]=this.Ic.pb.vl(f[e]);return h}Object(ha.each)(this.Ic.Jb,function(f){h.push(f)});return h},yK:function(f,
|
|
h,e){function r(f){var h=aa.xg.$C(f.name);z(f);switch(f.type){case "png":case "jpg":if(n.ci[f.name]){f.data.startsWith("data")||URL.revokeObjectURL(f.data);if(h)return w(f.name);n.ci[f.name].Iv.push(function(){w(f.name)});break}var e=new Image;e.setAttribute("crossOrigin","use-credentials");e.onload=function(){e.src.startsWith("data")||URL.revokeObjectURL(e.src);for(var f=0;f<this.Iv.length;++f)this.Iv[f]();e.Iv=[];e=e.onload=e.onerror=null};e.onerror=function(){Object(ca.j)("img error "+f.name);
|
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAMSURBVBhXY6ivrwcAAv4BfhD/txkAAAAASUVORK5CYII="!==e.src&&(e.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAMSURBVBhXY6ivrwcAAv4BfhD/txkAAAAASUVORK5CYII=")};e.hres=f.hres;e.vres=f.vres;n.ci[f.name]=e;e.Iv=[];e.Iv[0]=function(){w(f.name)};e.wc=aa.Ic.Hb;e.src=f.data;break;
|
|
case "font":Object(ha.isUndefined)(aa.xS)?da.s4(f.data):da.rea(f.name,aa.xS+f.cb,function(){w(f.name)});break;default:Object(ca.j)("unknown resource type: "+f.type),w(f.name)}}function z(f){e&&aa.xg.j4(f.name)}function w(e){aa.xg.loaded(e);if(aa.yq&&1>--x)return aa.yq=!1,f(h[0])}if(this.yq)throw Error("Multiple calls to loadResource");var aa=this;h=this.RT(h);var x=h.length;this.yq=!0;var da=new y.a.h0,na=!0;Object(ha.each)(h,function(f){na=!1;aa.xg.$C(f.name)?(z(f),w(f.name)):f.data?r(f):aa.Ic.pb.Oh(f.cb,
|
|
function(h){aa.xg.$C(f.name)?(z(f),w(f.name)):r(aa.Ic.pb.vl(h.cb,h.data))})});da.Cca()&&da.zV(Object(ha.bind)(w,this));na&&(f(),this.yq=!1)},iR:function(){this.yq&&(this.yq=!1)},Md:function(f){var h=this;h.iR();f=this.RT(f);Object(ha.each)(f,function(f){if("font"!==f.type&&h.xg.release(f.name))switch(f.type){case "png":case "jpg":delete n.ci[f.name];break;case "font":f.data&&f.data.remove()}})}};var h={r1:ea,pz:function(){var f={};return{j4:function(h){h in f?f[h].c++:f[h]={c:1,l:!1}},loaded:function(h){h in
|
|
f&&(f[h].l=!0)},iK:function(h){return h in f},$C:function(h){return h in f?f[h].l:!1},release:function(h){if(!(h in f))return!1;--f[h].c;return f[h].c?!1:(delete f[h],!0)}}}}},function(ia,ba,e){var ea=e(111),x=e(44),ha=e(27),ca=e(47);ba.a=function(){function e(){}e.FI=function(e){var w,y;void 0===w&&(w=ha.a.handleWidth);void 0===y&&(y=ha.a.handleHeight);return[new e(w,y,x.a.LEFT,x.b.Xo),new e(w,y,x.a.LEFT,x.b.So),new e(w,y,x.a.RIGHT,x.b.Xo),new e(w,y,x.a.RIGHT,x.b.So)]};e.uJ=function(e){var w,y;void 0===
|
|
w&&(w=ha.a.handleWidth);void 0===y&&(y=ha.a.handleHeight);return[new e(w,y,x.a.LEFT,x.b.xF),new e(w,y,x.a.lF,x.b.Xo),new e(w,y,x.a.lF,x.b.So),new e(w,y,x.a.RIGHT,x.b.xF)]};e.lJ=function(e,w){var y,n;void 0===y&&(y=ha.a.rotationHandleWidth);void 0===n&&(n=ha.a.rotationHandleHeight);if(void 0===h)var h=ca.a.Sq;return new ea.a(y,n,h,e,w)};return e}()},function(ia,ba,e){e.d(ba,"a",function(){return fa});var ea=e(1),x=e(21),ha=e(4);ia=e(53);var ca=e(54),da=e(84),aa=e(41),w=e(3),y=e(35),n=e(14),h=e(92),
|
|
f=e(6),r=e(12),z=window.Annotations||{},fa={Ou:"rectangle",WN:"normal"};e=function(h){function e(f){var e=h.call(this,f)||this;e.Xm=0;e.ga=[];e.fv=!1;e.dv=2;e.IO=w.n.EQUAL_ARCS;e["_xsi:type"]="Polygon";e.Subject=r.a.Gc("polygon");e.Eb={x:0,y:0};e.Jc={x:0,y:0};e.cd(f);return e}Object(ea.c)(e,h);e.prototype.resize=function(f){var h,e=f.x1;f=f.y1;var n=e-this.X,r=f-this.Y;if(0!==n||0!==r){for(var w=0;w<this.ga.length;w++)this.ga[w].translate(n,r);"PolygonDimension"===this.IT&&(null===(h=this.measurementCaptionOptions)||
|
|
void 0===h?0:h.captionRect)&&this.measurementCaptionOptions.captionRect.translate(n,r);Object.getOwnPropertyDescriptor(z.Annotation.prototype,"X").set.call(this,e);Object.getOwnPropertyDescriptor(z.Annotation.prototype,"Y").set.call(this,f)}};e.prototype.adjustRect=function(){var f;this.Measure&&this.Td();"PolygonDimension"===this.IT&&(null===(f=this.measurementCaptionOptions)||void 0===f?0:f.isEnabled)&&this.xE();h.prototype.adjustRect.call(this)};e.prototype.Td=function(){var f=this.DI(),h=this.Measure.axis[0],
|
|
e=this.Measure.area;f=this.Kl(f*h.factor*h.factor*e[0].factor,e);this.setContents(f)};e.prototype.finish=function(){x.a.Math.WW(this.ga)&&this.ga.push(new ha.b(this.ga[0].x,this.ga[0].y));this.adjustRect();this.hy(0)};e.prototype.hy=function(f){this.Xm=f};e.prototype.draw=function(f,h,e,r){this.Ch=r;this.fI(f,h);"PolygonDimension"===this.IT&&this.measurementCaptionOptions.isEnabled&&(h=this.measurementCaptionOptions.captionRect.x1+this.measurementCaptionOptions.captionRect.Ba()/2,e=this.measurementCaptionOptions.captionRect.y1,
|
|
f.translate(h,e),f.rotate(-n.a.tb(this.Rotation)),f.translate(-h,-e),f.save(),this.BY(f),this.hS(f),f.restore())};e.prototype.A8=function(f,h,e,n){if(this.Xm){var r=h[0];h=r.x*e-n/2;r=r.y*e-n/2;var z=h+n,w=r+n,fa=n/2,y=n/3/2,aa=fa-y;n=n-fa+y;f.save();f.globalAlpha=1;f.scale(1/e,1/e);f.beginPath();f.lineWidth=1;f.strokeStyle="black";f.setLineDash([2*aa,2*y]);f.moveTo(h,r+aa);f.lineTo(h,r);f.lineTo(z,r);f.lineTo(z,w);f.lineTo(h,w);f.lineTo(h,r+n);f.stroke();f.closePath();f.restore()}};e.prototype.$U=
|
|
function(){if(!this.Xm||!this.Ch||!this.ga.length||3>this.ga.length)return!1;var f=this.Ch,h=this.ga[0],e=this.ga[this.ga.length-1],n=this.Xm,r=h.x*f-n/2;h=h.y*f-n/2;var z=e.x*f;f*=e.y;return r<z&&z<r+n&&h<f&&f<h+n};e.prototype.PX=function(){4>this.ga.length||this.ga.pop()};e.prototype.zl=function(f){this.Xm&&3<this.ga.length&&this.A8(f,this.ga,this.Ch,this.Xm);if("cloudy"===this.Style)r.a.aI(this,f,this.Ra());else for(var h=0;h<this.ga.length;h++){var e=this.ga[h];0===h?(f.beginPath(),f.moveTo(e.x,
|
|
e.y)):f.lineTo(e.x,e.y)}1<this.ga.length&&(f.lineJoin="round");this.Xm||f.closePath()};e.prototype.DI=function(){var f=this.Ra();return 3>f.length?0:Math.abs(f.reduce(function(h,e,n){return h+e.x*f[n===f.length-1?0:n+1].y-f[n===f.length-1?0:n+1].x*e.y},0))/2};e.prototype.Zt=function(f){this.Intent=f};e.prototype.Le=function(){return this.Intent};e.prototype.uE=function(f){this.Db("trn-behavior-type",f);if(f===fa.Ou){if(this.selectionModel===aa.i||this.selectionModel===aa.h)this.selectionModel=aa.i}else f===
|
|
fa.WN&&this.selectionModel===aa.h&&(this.selectionModel=aa.h)};e.prototype.eaa=function(){return this.ac("trn-behavior-type")};e.prototype.nK=function(){var f=this.Ra();return this.eaa()===fa.Ou&&5===this.Ra().length&&f[0].x===f[3].x&&f[0].y===f[1].y&&f[2].x===f[1].x&&f[2].y===f[3].y};e.prototype.cM=function(f){this.IO=f;f===w.n.RANDOM_ARCS?this.Db(w.g,"true"):f===w.n.EQUAL_ARCS&&this.Df(w.g)};e.prototype.HI=function(){return this.Style};e.prototype.dM=function(f){this.Style=f};e.prototype.Xp=function(){return this.dv};
|
|
e.prototype.Xq=function(f){this.dv=f};e.prototype.serialize=function(e,n){if(this.bb)return this.bb;e=h.prototype.serialize.call(this,e,n);"cloudy"===this.Style&&e.setAttribute("intensity",String(this.Xp()));var r=this.Ra();if(r&&0<r.length){var z=document.createElementNS("","vertices");z.textContent=f.a.Cm(r,n);e.appendChild(z)}"PolygonDimension"===this.IT&&this.Measure&&(e.appendChild(f.a.Tt(this.Measure)),n=f.a.sY(this.measurementCaptionOptions,n),this.Db("trn-measurement-caption-options",n));
|
|
e.removeAttribute("rotation");return e};e.prototype.deserialize=function(h,e){z.oi.prototype.deserialize.apply(this,arguments);var n=h.getElementsByTagName("vertices");0<n.length&&(this.ga=f.a.In(n[0].textContent,e));this.Xq(parseInt(h.getAttribute("intensity")||"0",10));this.Vf=h.getAttribute("IT");n=h.querySelector("measure");"PolygonDimension"===this.Vf&&n&&(this.Measure=f.a.hs(n));"true"===this.ac(w.g)?this.ArcDrawMode=w.n.RANDOM_ARCS:this.ArcDrawMode=w.n.EQUAL_ARCS;this.Uc()||this.adjustRect();
|
|
"PolygonDimension"===this.Vf&&this.Ol("trn-measurement-caption-options")&&(this.measurementCaptionOptions=f.a.WR(this.ac("trn-measurement-caption-options"),e));this.nK()?this.uE(fa.Ou):this.uE(fa.WN)};return e}(h.a);e.prototype.elementName="polygon";e.prototype.selectionModel=aa.h;Object(ia.c)(e.prototype,[new da.a,new ca.b]);Object(y.a)(e.prototype,{Intensity:{get:function(){return this.Xp()},set:function(f){this.Xq(f);this.Ma()}},Intent:{get:function(){return this.Vf},set:function(f){this.Vf=f;
|
|
this.Ma()}},ArcDrawMode:{get:function(){return this.IO},set:function(f){this.cM(f);this.Ma()}}},["Style","Dashes","Precision","Scale"]);ba.b=e;(window.Annotations||{}).pi=e},function(ia,ba){ba.a=function(){return function(e,ea){void 0===e&&(e=0);void 0===ea&&(ea=0);this.x=e;this.y=ea}}()},function(ia,ba,e){var ea=e(72),x=e(91);ia=function(){function e(e,x){void 0===e&&(e=3);void 0===x&&(x=3);this.rows=e;this.bs=x;this.mv=[];var aa=e*x,w=0,y=e===x;--x;for(var n=0;n<aa;n++){var h=n%e;this.mv.push(y&&
|
|
h===w?1:0);h===x&&w++}}Object.defineProperty(e,"Identity",{get:function(){return new e},enumerable:!1,configurable:!0});e.multiply=function(x,da){if(x.Columns!==da.Rows)throw"The columns of the left matrix ("+x.Columns+") must match the number of rows of the right matrix "+da.Rows+". Please check your matrix structures as there is a mismatch.";for(var aa=new e(x.Rows,da.Columns),w=0;w<x.Rows;w++)for(var y=0;y<da.Columns;y++){for(var n=0,h=0;h<x.Columns;h++){var f=x.get(w,h),r=da.get(h,y);n+=f*r;n=
|
|
Object(ea.a)(n)}aa.set(w,y,n)}return aa};e.N6=function(ca,da){void 0===da&&(da=x.a.Origin);var aa=new e;aa.au(-da.x,-da.y);var w=new e;w.au(da.x,da.y);return ca.reduce(function(e,n){return e.multiply(n)},w).multiply(aa)};e.G$=function(x){var da=new e;da.au(x.m_h,x.m_v);da.wM(x.m_a,x.m_d);da.xM(x.m_b,x.m_c);return da};Object.defineProperty(e.prototype,"Rows",{get:function(){return this.rows},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"Columns",{get:function(){return this.bs},
|
|
enumerable:!1,configurable:!0});e.prototype.get=function(e,x){return this.mv[this.Columns*e+x]};e.prototype.set=function(e,x,aa){this.mv[this.Columns*e+x]=aa};e.prototype.wM=function(e,x){this.PY(e);this.QY(x)};e.prototype.PY=function(e){this.set(0,0,e)};e.prototype.QY=function(e){this.set(1,1,e)};e.prototype.au=function(e,x){this.XY(e);this.YY(x)};e.prototype.XY=function(e){this.set(0,2,e)};e.prototype.YY=function(e){this.set(1,2,e)};e.prototype.xM=function(e,x){this.UY(e);this.VY(x)};e.prototype.UY=
|
|
function(e){this.set(0,1,e)};e.prototype.VY=function(e){this.set(1,0,e)};e.prototype.py=function(e,x){void 0===x&&(x=!1);x=x?e:Math.PI/180*e;e=Math.cos(x);x=Math.sin(x);this.set(0,0,e);this.set(1,0,x);this.set(0,1,-x);this.set(1,1,e)};e.prototype.multiply=function(x){return e.multiply(this,x)};e.prototype.Cla=function(){for(var e=0;e<this.Columns;e++)for(var x=e;x<this.Rows;x++)if(e!==x){var aa=this.get(e,x),w=this.get(x,e);this.set(e,x,w);this.set(x,e,aa)}};e.prototype.Mk=function(){return[this.get(0,
|
|
0),this.get(1,0),this.get(0,1),this.get(1,1),this.get(0,2),this.get(1,2)]};e.prototype.clone=function(){var x=new e(this.Rows,this.Columns);x.mv=[].concat(this.mv);return x};e.prototype.t7=function(){if(3!==this.Rows||3!==this.Columns)throw"Only 3x3 matrices are currently supported";var e=this.get(0,0),x=this.get(0,1),aa=this.get(0,2),w=this.get(1,0),y=this.get(1,1),n=this.get(1,2),h=this.get(2,0),f=this.get(2,1),r=this.get(2,2);return e*y*r+x*n*h+aa*w*f-h*y*aa-f*n*e-r*w*x};e.prototype.inverse=function(){if(this.Rows!==
|
|
this.Columns)throw"Matrix should be symmetrical to find an inverse.";for(var x=this.clone(),da=e.Identity,aa=0;aa<x.bs;aa++){var w=x.get(aa,aa);if(0===w){var y=-1;for(w=0;w<x.rows;w++)if(aa!==w&&0!==x.get(w,aa)){y=w;break}if(-1===y)return null;for(w=0;w<x.bs;w++){var n=x.get(aa,w),h=x.get(y,w),f=1;y===aa&&1!==h&&(f=1/h);var r=da.get(aa,w),z=da.get(y,w);x.set(aa,w,(n+h)*f);da.set(aa,w,(r+z)*f)}w=x.get(aa,aa)}if(1!==w)for(f=1/w,w=0;w<x.bs;w++)y=x.get(aa,w)*f,n=da.get(aa,w)*f,x.set(aa,w,y),da.set(aa,
|
|
w,n);for(w=0;w<x.rows;w++)if(aa!==w&&(f=x.get(w,aa),0!==f))for(f=1/f,h=0;h<x.bs;h++)r=x.get(aa,h),z=da.get(aa,h),y=x.get(w,h)*f,n=da.get(w,h)*f,x.set(w,h,y-r),da.set(w,h,n-z)}for(aa=0;aa<x.rows;aa++)for(f=x.get(aa,aa),w=0;w<x.bs;w++)y=da.get(aa,w)/f,da.set(aa,w,y);return da};return e}();ba.a=ia},function(ia,ba,e){function ea(f){if(f.F&&f.F.length&&"JavaScript"===f.F[0].name){if(-1<f.F[0].javascript.indexOf("AFDate_Format"))return!0}else if(f.K&&f.K.length&&"JavaScript"===f.K[0].name&&-1<f.K[0].javascript.indexOf("AFDate_KeystrokeEx"))return!0;
|
|
return!1}function x(f,h,e){var n=ha(h,"appearances"),r=f.fa("appearance-state")||"_DEFAULT",z=f.fa("annotation-state")||"Normal";h=Number(f.fa("objnum"));var w=Number(f.fa("gennum")),fa=Number(f.fa("x")),y=Number(f.fa("y"));f=f.fa("blend-mode");n=ha(n,r);z=ha(n,z);z.objnum=h;z.gennum=w;z.offset=e.ra({x:fa,y:y});z.blendMode=f}function ha(f,h){if(h in f)var e=f[h];else e={},f[h]=e;return e}function ca(f){return Object(fa.isArray)(f)?f.map(ca).join(" "):Object(fa.isNumber)(f)?f.toString():Object(fa.escape)(String(f))}
|
|
function da(f,h,e,n){e!==n&&f.writeAttributeString(h,ca(e))}function aa(f,h,e){e||(e="fields");f.writeStartElement(e);e=h.length;for(var n=0;n<e;++n){var r=f,z=h[n];r.writeStartElement("ffield");r.writeAttributeString("name",Object(fa.escape)(z));r.writeEndElement()}f.writeEndElement()}function w(f,h,e){var n=e.$x||[],r=e.Ct||{};for(e=0;e<n.length;++e){var z=n[e],w=h[z];Object(fa.isUndefined)(h)?Object(ka.j)("Required attribute: "+z+" is undefined"):f.writeAttributeString(z,ca(w))}Object.keys(r).forEach(function(e){r.hasOwnProperty(e)&&
|
|
da(f,e,h[e],r[e])})}function y(f,h,e,n){n=n||"actions";var r=Object.keys(h);if(0<r.length){f.writeStartElement(n);for(n=0;n<r.length;++n)f.writeStartElement("action"),f.writeAttributeString("trigger",Object(fa.escape)(r[n])),h[r[n]].forEach(function(h){var n=h.name;switch(n){case "JavaScript":f.writeStartElement("javascript");f.writeString(ca(h.javascript));f.writeEndElement();break;case "ResetForm":f.writeStartElement("reset-form");w(f,h,{$x:["exclude"]});h.fields&&aa(f,h.fields);f.writeEndElement();
|
|
break;case "SubmitForm":f.writeStartElement("submit-form");w(f,h,{$x:["url","format"],Ct:{method:"POST",exclude:!1}});n=h.flags.toArray();0<n.length&&f.writeAttributeString("flags",ca(n));h=h.fields;0<h.length&&aa(f,h);f.writeEndElement();break;case "GoTo":f.writeStartElement("goto");f.writeStartElement("dest");h=h.dest;w(f,h,{$x:["fit","page"],Ct:{zoom:void 0}});var r=e(h.page).inverse();n=h.top||0;var z=h.left||0,y=h.bottom||0,ja=h.right||0;z=r.ra({x:z,y:n});r=r.ra({x:ja,y:y});n=Object(fa.isUndefined)(h.top)?
|
|
null:z.y;z=Object(fa.isUndefined)(h.left)?null:z.x;ja=Object(fa.isUndefined)(h.right)?null:r.x;y=Object(fa.isUndefined)(h.bottom)?null:r.y;da(f,"top",n,null);da(f,"left",z,null);da(f,"right",ja,null);da(f,"bottom",y,null);f.writeEndElement();f.writeEndElement();break;case "URI":f.writeStartElement("uri");w(f,h,{$x:["uri"]});f.writeEndElement();break;case "Hide":f.writeStartElement("hide");w(f,h,{Ct:{hide:!0}});aa(f,h.fields);f.writeEndElement();break;case "Named":f.writeStartElement("named");f.writeAttributeString("name",
|
|
Object(fa.escape)(h.action));f.writeEndElement();break;default:Object(ka.j)("Unrecognised action name"+n)}}),f.writeEndElement();f.writeEndElement()}}function n(f,h,e,n){if(n||!h.gD())f.writeStartElement(e),da(f,"r",h.R,0),da(f,"g",h.G,0),da(f,"b",h.B,0),da(f,"a",h.A,1),f.writeEndElement()}function h(f,h,e){if(h&&(0!==h.size||""!==h.name||"Type1"!==h.type||!h.tq())){f.writeStartElement("font");w(f,h,{Ct:{type:"Type1",name:"","horizontal-scaling":null}});var r=h.size,z=e.inverse();e=z.ra({x:0,y:0});
|
|
z=z.ra({x:r,y:0});r=e.x-z.x;e=e.y-z.y;da(f,"size",Math.sqrt(r*r+e*e),0);e=h.fillColor;e.tq()||n(f,e,"fill-color",!0);h=h.strokeColor;h.tq()||n(f,h,"stroke-color",!0);f.writeEndElement()}}function f(f,h,e){f.writeStartElement("aappearance");f.writeAttributeString("name",h);Object.keys(e).forEach(function(h){f.writeStartElement(h);f.writeString(ca(e[h].data||""));f.writeEndElement()});f.writeEndElement()}function r(f,h,e){h&&Object.keys(h).forEach(function(n){var r=h[n];Object.keys(r).forEach(function(h){var z=
|
|
r[h];"objnum"in z&&(f.writeStartElement("apref"),da(f,"appearance-state",n,"_DEFAULT"),da(f,"annotation-state",h,"Normal"),f.writeAttributeString("gennum",ca(z.gennum)),f.writeAttributeString("objnum",ca(z.objnum)),h=z.offset,h=e.ra({x:h.x,y:h.y}),f.writeAttributeString("x",ca(h.x)),f.writeAttributeString("y",ca(h.y)),f.writeEndElement())})})}function z(e,z,x){e.writeStartElement("pdf-info");e.writeAttributeString("xmlns","http://www.pdftron.com/pdfinfo");e.writeAttributeString("version","2");e.writeAttributeString("import-version",
|
|
"4");var ka=z.calculationOrder;Object(fa.isArray)(ka)&&0<ka.length&&aa(e,ka,"calculation-order");y(e,z.documentActions,x,"document-actions");ka=z.pages;if(0<ka.length){e.writeStartElement("pages");for(var la=0;la<ka.length;++la){var ha=e,pa=ka[la],ma=x;ha.writeStartElement("page");ha.writeAttributeString("number",ca(pa.number));y(ha,pa.actions,ma);ha.writeEndElement()}e.writeEndElement()}la=z.fields;ha=Object.keys(la);for(ka=0;ka<ha.length;++ka){pa=e;ma=la[ha[ka]];var ea=x;pa.writeStartElement("ffield");
|
|
w(pa,ma,{Ct:{},$x:["type","name"]});var ba=ma.flags.toArray();0<ba.length&&pa.writeAttributeString("flags",ca(ba));ba=ma.maxLen;-1!==ba&&pa.writeAttributeString("max-len",ca(ba));(ba=ma.tooltipName)&&pa.writeAttributeString("tooltip-name",ca(ba));y(pa,ma.Fl(),ea);(ba=ma.defaultValue)&&pa.writeElementString("default-value",ca(ba));h(pa,ma.font,ea(1));ea=pa;if((ma=ma.options)&&0<ma.length){ea.writeStartElement("options");ba=ma.length;for(var ua=0;ua<ba;++ua){ea.writeStartElement("option");var Ca=ma[ua].displayValue,
|
|
ya=ma[ua].value;Ca===ya||Object(fa.isUndefined)(Ca)||ea.writeAttributeString("display-value",ca(Ca));ea.writeAttributeString("value",ca(ya));ea.writeEndElement()}ea.writeEndElement()}pa.writeEndElement()}z=z.widgets;for(ka=0;ka<z.length;++ka){la=e;ha=z[ka];pa=x;la.writeStartElement("widget");w(la,ha,{Ct:{appearance:"",rotation:0,quadding:"Left-justified"}});ma=ha;ma=ma.gc().widgets.indexOf(ma);ma=ca(ma);"0"!==ma&&la.writeAttributeString("index",ma);la.writeAttributeString("field",ca(ha.gc().name));
|
|
ma=ha.flags.toArray();0<ma.length&&la.writeAttributeString("flags",ca(ma));ha.DateModified&&(ma=void 0,ha.Eq&&(ha.DateModified.getTime()===ha.Fx?ma=ha.Eq:(delete ha.Eq,delete ha.Fx)),ma||(ma=ja.a.Ly(ha.DateModified)),la.writeAttributeString("modified-date",ma));ma=ha.PageNumber;la.writeAttributeString("page",ca(ma));ma=pa(ma).inverse();ea=la;ua=ha.rect;Ca=ma;ea.writeStartElement("rect");ba=Ca.ra({x:ua.x1,y:ua.y1});ua=Ca.ra({x:ua.x2,y:ua.y2});Ca={};Ca.x1=Object(fa.min)([ba.x,ua.x]);Ca.x2=Object(fa.max)([ba.x,
|
|
ua.x]);Ca.y1=Object(fa.min)([ba.y,ua.y]);Ca.y2=Object(fa.max)([ba.y,ua.y]);ea.writeAttributeString("x1",ca(Number(Number(Ca.x1).toFixed(4))));ea.writeAttributeString("x2",ca(Number(Number(Ca.x2).toFixed(4))));ea.writeAttributeString("y1",ca(Number(Number(Ca.y1).toFixed(4))));ea.writeAttributeString("y2",ca(Number(Number(Ca.y2).toFixed(4))));ea.writeEndElement();ea=la;!(ba=ha.border)||ba.color.gD()&&1===ba.width&&"Solid"===ba.style||(ea.writeStartElement("border"),da(ea,"width",ba.width,1),da(ea,"style",
|
|
ba.style,"Solid"),ba=ba.color,ba.tq()||n(ea,ba,"color",!0),ea.writeEndElement());n(la,ha.backgroundColor,"background-color");y(la,ha.Fl(),pa);r(la,ha.appearances,ma);ma=la;if(ea=ha.appearances){ba=Object.keys(ea);if(ua=0<ba.length)ua=ea[ba[0]],ua=0===Object.keys(ua).length||"Normal"in ua&&!!ua.Normal.data;if(ua){ma.writeStartElement("appearances");ua=ba.length;for(Ca=0;Ca<ua;++Ca)ya=ba[Ca],f(ma,ya,ea[ya]);ma.writeEndElement()}}ma=la;(ea=ha.Dj)&&Object.keys(ea).length&&(ma.writeStartElement("trn-custom-data"),
|
|
ma.writeAttributeString("bytes",Object(fa.escape)(JSON.stringify(ea))),ma.writeEndElement());ma=la;ea=ha;ea.Bca()&&(ma.writeStartElement("extra"),h(ma,ea.font,pa(1)),ma.writeEndElement());pa=la;ha=ha.captions;ma=ha.Rollover;ea=ha.Down;if(ha.Normal||ma||ea)pa.writeStartElement("captions"),da(pa,"Normal",ha.Normal,""),da(pa,"Rollover",ha.Rollover,""),da(pa,"Down",ha.Down,""),pa.writeEndElement();la.writeEndElement()}e.writeEndElement()}e.d(ba,"b",function(){return ha});e.d(ba,"a",function(){return x});
|
|
e.d(ba,"e",function(){return r});e.d(ba,"d",function(){return z});e.d(ba,"c",function(){return ea});var fa=e(0);e.n(fa);var ka=e(2),ja=e(6)},function(ia,ba,e){var ea=e(1);ia=e(51);var x=e(16),ha=e(28),ca=e(17),da=e(52),aa=e(0),w=e.n(aa);ca.m&&window.setTimeout(function(){Promise.all([e.e(1),e.e(2)]).then(e.t.bind(null,377,7))},5E3);aa=function(){function y(e,h,f){this.YL=e;this.qa=h;this.aa=f}y.mja=function(e){y.lj.formats=e.formats;y.lj.bounds=e.bounds;y.lj.modules=e.modules;y.lj.placeholder=e.placeholder;
|
|
y.lj.readOnly=e.readOnly;y.lj.scrollingContainer=e.scrollingContainer;y.lj.theme=e.theme;y.lj.debug=e.debug};y.Gaa=function(){return y.lj};y.prototype.initialize=function(){return Object(ea.b)(this,void 0,void 0,function(){var n,h,f;return Object(ea.d)(this,function(r){switch(r.label){case 0:return[4,Promise.all([e.e(1),e.e(2)]).then(e.t.bind(null,377,7))];case 1:return n=r.ea().default,h=this.qa.Kh(),h===da.a.Ku&&(f={modules:{keyboard:{bindings:{Boa:{key:"enter",handler:function(){},identifier:"disable-enter"}}}}},
|
|
w.a.merge(y.lj,f)),this.editor=new n(this.YL,y.lj),this.t4(),this.Nha(),[2]}})})};y.prototype.t4=function(){var e=this;this.editor.keyboard.addBinding({key:"K",shortKey:!0},function(h,f){var n=!f.format.strike;f.collapsed||f.empty?e.editor.format("strike",n):e.editor.formatText(h.index,h.length,"strike",n)})};y.prototype.Nha=function(){function e(f){var e;f instanceof FocusEvent&&"ql-clipboard"===(null===(e=f.relatedTarget)||void 0===e?void 0:e.className)||(h.trigger(r.jF),h.editor.blur())}var h=
|
|
this,f=this.editor.root,r=y.xb;f.addEventListener("focus",function(){var e;if(h.qa.rk()){var n=h.qa.Kh(),w=h.Wg();w.style.height="auto";n!==da.a.Lu&&(w.style.width="auto");if(n===da.a.Pm){var y=0;!h.qa.StrokeThickness||null!==(e=h.qa.StrokeColor)&&void 0!==e&&e.gD()||(y=h.aa.hc(h.qa.ua()),e=h.aa.Lb(h.qa.ua()),y=h.qa.ak(y)*e);e=w.parentElement.getBoundingClientRect().width;var aa=h.aa.getDocument().ad(h.qa.ua()),x=e;switch(aa){case 0:x=e-parseFloat(w.style.left)-2*y;break;case 90:x=parseFloat(w.style.top)-
|
|
2*y;break;case 180:x=parseFloat(w.style.left)-2*y;break;case 270:x=e-parseFloat(w.style.top)-2*y}w.style.maxWidth=x+"px"}n===da.a.Ku&&(f.style.whiteSpace="nowrap",f.style.overflow="hidden");h.resize()}h.trigger(r.FN)});ca.i?Object(x.a)(f,["focusout"],e):Object(x.a)(f,["blur"],e);(new MutationObserver(function(e){e.forEach(function(e){e.removedNodes.forEach(function(e){e&&e.contains&&e.contains(f)&&h.trigger(r.jF)})})})).observe(f.closest(".pageContainer"),{subtree:!0,childList:!0});this.editor.on(r.BF,
|
|
function(f,e,n){"user"===n&&h.qa.rk()&&h.resize();h.trigger(r.BF)});this.editor.on(r.zF,function(f,e){h.trigger(r.zF,[f,e])})};y.prototype.resize=function(){var e=this.Wg(),h=e.getBoundingClientRect(),f=Object(ha.a)().nq(this.qa.ua(),this.aa.Xa()).getBoundingClientRect();if(h.right>f.right){var r=f.right-h.left;e.style.width=r+"px"}h.bottom>f.bottom&&(h=f.bottom-h.top,e.style.height=h+"px")};y.prototype.zka=function(e){var h=this.Wg(),f=this.editor.root,n=this.qa.Kh();Object(x.b)(h,Object(ea.a)({position:e.position,
|
|
top:e.top,left:e.left,transformOrigin:e.transformOrigin,transform:e.transform},n===da.a.Pm?{}:{width:e.width,height:e.height}));Object(x.b)(f,{background:e.background,font:e.font,color:e.color,paddingTop:e.paddingTop,overflow:"visible",textAlign:e.textAlign});ca.i||(Object(x.b)(h,{display:"flex",alignItems:e.alignItems}),Object(x.b)(f,{display:"flex",flexDirection:"column"}),ca.j?setTimeout(function(){Object(x.b)(f,{justifyContent:e.alignItems})},0):Object(x.b)(f,{justifyContent:e.alignItems}))};
|
|
y.prototype.fy=function(){var e={},h=0;this.editor.getContents().ops.forEach(function(f){var n=f.attributes;f=f.insert;var z={};if(null===n||void 0===n?0:n.bold)z["font-weight"]="bold";if(null===n||void 0===n?0:n.italic)z["font-style"]="italic";if(null===n||void 0===n?0:n.color)z.color=n.color;if(null===n||void 0===n?0:n.underline)z["text-decoration"]="word";if(null===n||void 0===n?0:n.strike)z["text-decoration"]=z["text-decoration"]?z["text-decoration"]+" line-through":"line-through";e[h]=z;h+=f.length});
|
|
this.qa.oy(e)};y.prototype.setContents=function(){var e=this,h=this.qa.getContents()||"",f=this.qa.nh||{};this.editor.setText(h);this.editor.formatText(0,h.length,{color:this.qa.TextColor.toString()});var r=Object.keys(f).map(function(f){return parseInt(f,10)});r.forEach(function(n,w){var z={},fa=f[n],y=fa["text-decoration"];w=w===r.length-1?h.length:r[w+1];z.color=fa.color;z.bold="bold"===fa["font-weight"];z.italic="italic"===fa["font-style"];z.strike=null===y||void 0===y?void 0:y.includes("through");
|
|
z.underline=(null===y||void 0===y?void 0:y.includes("word"))||(null===y||void 0===y?void 0:y.includes("underline"));e.editor.formatText(n,w-n,z)})};y.prototype.Eia=function(){this.editor.setSelection(0,this.editor.getLength())};y.prototype.getText=function(){var e=this.editor.getText(),h=e.lastIndexOf("\n");return e.slice(0,h)};y.prototype.focus=function(){this.Wg().style.display="";this.editor.focus();this.editor.setSelection(this.editor.getLength(),1)};y.prototype.Wg=function(){return document.querySelector(this.YL)};
|
|
y.prototype.getContents=function(){return this.getText()};y.prototype.format=function(e,h){this.editor.format(e,h)};y.prototype.getFormat=function(e,h){return this.editor.getFormat(e,h)};y.prototype.setText=function(e){this.editor.setText(e)};y.prototype.insertText=function(e,h){this.editor.insertText(e,h)};y.prototype.deleteText=function(e,h){this.editor.deleteText(e,h)};y.prototype.setSelection=function(e,h){this.editor.setSelection(e,h)};y.prototype.getSelection=function(){return this.editor.getSelection()};
|
|
y.prototype.hasFocus=function(){return this.editor&&this.editor.hasFocus()};y.lj={};y.xb={FN:"focus",jF:"blur",BF:"text-change",zF:"selection-change"};return y}();Object(ia.a)(aa);ba.a=aa},function(ia,ba,e){function ea(e){this.ba=e;this.ca=[];this.fj={};this.oq=ha.f.E_0;this.Nl=1;if(e){this.Xx();this.bE();var w=this;e.addEventListener(da.a.Events.PAGES_DIFF,function(e){w.trigger(ea.Events.PAGE_DIFF,[e]);var h=e.filter(function(f){return f.after.contentChanged}).map(function(f){return f.after.pageNum});
|
|
e=e.filter(function(f){return f.after.contentChanged&&!f.after.annotationsUnchanged}).map(function(f){return f.after.pageNum});w.trigger(ea.Events.PAGE_CONTENT_CHANGED,[h,e])});e.addEventListener(da.a.Events.PAGES_UPDATED,function(e){function h(f){var h={};Object.keys(f).forEach(function(e){h[e]=f[e].fb});return h}var f=h(w.fj);w.Xx();w.bE();f=w.z5(f,h(w.fj));f.contentChanged=e.filter(function(f){return f.contentChanged}).map(function(f){return f.pageNum});f.annotationsChanged=e.filter(function(f){return f.contentChanged&&
|
|
!f.annotationsUnchanged}).map(function(f){return f.pageNum});w.trigger(ea.Events.PAGES_UPDATED,[f])});e.addEventListener(da.a.Events.PAGES_DOWNLOADED,function(e){e=e.map(function(h){return h.pageNum});w.trigger(ea.Events.PAGES_UPDATED,[{added:[],removed:[],moved:{},contentChanged:e,annotationsChanged:e}])});e.addEventListener(da.a.Events.PAGES_AUTOFILLED,function(e){w.Xx();w.bE();e={contentChanged:Array.from(e).map(function(h,f){return f+1}),removed:[],added:[],moved:{},annotationsChanged:[]};w.trigger(ea.Events.PAGES_UPDATED,
|
|
[e])});e.addEventListener(da.a.Events.CHANGE_PAGE_IDS,function(e){w.Xx();w.L5(e);w.trigger(ea.Events.PAGE_IDS_CHANGED,e)});e.addEventListener(da.a.Events.LAYERS_UPDATED,function(){w.jB();w.kB();w.AH()})}}var x=e(0);e.n(x);ia=e(51);var ha=e(3),ca=e(28),da=e(7),aa=e(2);ea.prototype={z5:function(e,y){var n={added:[],removed:[],moved:{}},h={};Object.keys(e).forEach(function(f){h[f]=h[f]||{};h[f].before=e[f]});Object.keys(y).forEach(function(f){h[f]=h[f]||{};h[f].after=y[f]});Object.keys(h).forEach(function(f){f=
|
|
h[f];f.before&&!f.after?n.removed.push(f.before):!f.before&&f.after?n.added.push(f.after):f.before&&f.after&&f.before!==f.after&&(n.moved[f.before]=f.after)});return n},Xx:function(){var e=this.ba.hk(),y={};e.forEach(function(h){y[h]=!0});var n=this.fj;Object.keys(n).forEach(function(h){h in y||delete n[h]});e.forEach(function(h){n[h]||(n[h]={rotation:null,zoom:null,Lg:null,Mg:null,vj:null,gi:null,St:null,Ue:null,fb:null,id:h})})},bE:function(){try{for(var e=this.ba.ne,y=this.ba,n=[],h=0;h<e;++h){var f=
|
|
this.fj[y.Nh(h)];f.fb=h+1;n.push(f)}this.ca=n}catch(r){Object(aa.j)(r)}},L5:function(e){for(var w=Object.keys(e),n=0,h=this.ca.length;n<h;n++){var f=this.ca[n];if(-1<w.indexOf(f.id)){var r=e[f.id];delete this.fj[f.id];f.id=r;this.fj[f.id]=f}}},nM:function(e){this.oq=e},Em:function(e){this.Nl=e;this.trigger(ea.Events.ZOOM_CHANGED,[e])},tM:function(e,y){var n=this.ca[e];if(n)n.St=y;else throw Error("Invalid page text selected "+e);},wba:function(e){var w=this.ca[e];if(w)return w.St;throw Error("Selected text requested for invalid page index: "+
|
|
e);},xba:function(e){var w=this.ca[e];if(w)return w.vj;throw Error("Selected text quads requested for invalid page index: "+e);},kB:function(){this.ca.forEach(function(e){e.St=null})},Lw:function(){return this.ca.map(function(e){return e.St}).filter(function(e){return null!==e}).join("\n")},oJ:function(){var e={};this.ca.filter(function(e){return null!==e.vj}).forEach(function(w){e[w.fb]=w.vj});return e},qf:function(e){var w=this.ca[e];if(w){var n=this.ba.ld(e+1);e=this.ba.kd(e+1);var h=Object(x.isNull)(w.rotation)?
|
|
this.oq:w.rotation;if(h===ha.f.E_90||h===ha.f.E_270){var f=n;n=e;e=f}return{width:n,height:e,rotation:h,zoom:Object(x.isNull)(w.zoom)?this.Nl:w.zoom,Lg:w.Lg,Mg:w.Mg,vj:w.vj,gi:w.gi,St:w.St,Ue:w.Ue,Mf:w.Mf,fb:w.fb,id:w.id}}return{width:0,height:0}},ve:function(){for(var e=[],y=this.ca.length,n=0;n<y;++n)e.push(this.qf(n));return e},CE:function(e,y){var n=this.ca[e];if(n)n.zoom=y;else throw Error("Invalid page number zoomed "+(e+1));},sba:function(e){var w=this.ca[e];if(w)return!Object(x.isNull)(w.zoom);
|
|
throw Error("Invalid page index get has individual zoom "+e);},my:function(e,y){var n=this.ca[e];if(n)n.rotation=y;else throw Error("Invalid page index rotated "+e);},aka:function(e,y){var n=this.ca[e];if(n)n.vj=y;else throw Error("Invalid page index set text quads "+e);},Zja:function(e,y){var n=this.ca[e];if(n)n.gi=[y];else throw Error("Invalid page index set search quads "+e);},g_:function(e,y){var n=this.ca[e];if(n)e=n.gi||[],e.push(y),n.gi=e;else throw Error("Invalid page index update search quads "+
|
|
e);},jB:function(){this.ca.forEach(function(e){e.gi=null})},bq:function(e){return void 0!==e&&null!==e?(e=this.ca[e-1])?e.gi||[]:[]:this.ca.reduce(function(e,n){return n.gi?e.concat(n.gi):e},[])},AH:function(){this.ca.forEach(function(e){e.vj=null})},tba:function(e){var w=this.ca[e];if(w)return!!w.vj||!!w.gi;throw Error("Invalid page index get has text quads "+e);},BE:function(e,y){var n=this.ca[e];if(n)n.Lg=y.Lg,n.Mg=y.Mg;else throw Error("Tried to set offsets of invalid page"+e);},Uaa:function(){var e=
|
|
{};this.ca.forEach(function(w,n){Object(x.isNull)(w.rotation)||(e[n+1]=w.rotation)});return e},V5:function(){this.ca.forEach(function(e){e.rotation=null})},NS:function(e){this.ca.forEach(function(w){Object(x.isNull)(w.rotation)||e(w)})},sM:function(e,y,n){var h=this.ca[e];if(h)h.Ue&&(y&&h.Ue===y||Object(ca.a)().$j(h.Ue)),h.Ue=y,h.Mf&&(n&&h.Mf===n||Object(ca.a)().$j(h.Mf)),h.Mf=n;else throw Error("Invalid page index set preview canvas "+e);},cJ:function(){var e=[];this.ca.forEach(function(w,n){Object(x.isNull)(w.vj)&&
|
|
Object(x.isNull)(w.gi)||e.push(n)});return e},dJ:function(){var e=[];this.ca.forEach(function(w,n){Object(x.isNull)(w.vj)||e.push(n)});return e},X5:function(e){e=this.ca[e];e.Ue&&(Object(ca.a)().$j(e.Ue),e.Ue=null);e.Mf&&(Object(ca.a)().$j(e.Mf),e.Mf=null)},Y5:function(){this.ca.forEach(function(e){e.width=0;e.height=0;e.Ue&&(Object(ca.a)().$j(e.Ue),e.Ue=null);e.Mf&&(Object(ca.a)().$j(e.Mf),e.Mf=null)})},aD:function(e){return!!this.fj[e]},ng:function(e){var w=this.fj[e];if(w)return this.qf(w.fb-1);
|
|
throw Error("Unknown page ID "+e);},ah:function(e){var w=this.ca[e];if(w)return w.id;throw Error("Page index is not loaded "+e);},se:function(){this.removeEventListener()}};Object(ia.a)(ea);ea.Events={PAGES_UPDATED:"pagesUpdated",ZOOM_CHANGED:"zoomChanged",PAGE_CONTENT_CHANGED:"pageContentChanged",PAGE_DIFF:"pageDiff",PAGE_IDS_CHANGED:"pageIdsChanged"};ba.a=ea},function(ia,ba,e){function ea(e){Object(aa.isString)(e)&&(e=e.replace(/\s+/g," "),e=e.replace(/[/.]/g,"-"));return e}function x(e,h){return!e||
|
|
null!==ha(e,h)}function ha(e,h){if(!e)return null;var f=w.c.slice(0);h&&(h=ca(h),h=ea(h));e=ea(e);h&&"d"===h.charAt(0).toLowerCase()?(-1===w.a.indexOf(h)&&w.a.unshift(h),e=y(e,w.a,!0)):(h&&f.unshift(h),e=y(e,f,!0));return e.isValid()?e:null}function ca(e){return e.replace(/(mmmm)|(mmm)|(:mm)|(mm)|(:m)|(m)|(dddd)|(ddd)|(dd)|(d)|(yyyy)|(yy)|(HH)|(H)|(hh)|(h)|(MM)|(M)|(ss)|(s)|(tt)|(t)/g,function(h){return{mmmm:"MMMM",mmm:"MMM",":mm":":mm",mm:"MM",":m":":m",m:"M",dddd:"dddd",ddd:"ddd",dd:"DD",d:"D",
|
|
yyyy:"YYYY",yy:"YY",HH:"HH",H:"H",hh:"hh",h:"h",MM:"mm",M:"m",ss:"ss",s:"s",tt:"A",t:"a"}[h]||""})}function da(e,h){var f=!1;if(w.e[h])e=ea(e);else if(h)f=!0,h=h.toLocaleUpperCase(),e=ea(e);else return null;var n=h.split(/[\/:-]./).length;h&&"d"===h.charAt(0).toLowerCase()?e=y(e,w.a,!0):h&&"m"===h.charAt(0).toLowerCase()?2===n&&h&&h.toLowerCase().endsWith("y")?(n=w.d.filter(function(f){return f.toLowerCase().includes("y")}),e=y(e,n,!0)):e=y(e,w.d,!0):e=y(e,w.c,!0);return e.isValid()?(f&&(w.e[h]=h),
|
|
e.format(w.e[h])):null}e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ha});e.d(ba,"d",function(){return ca});e.d(ba,"a",function(){return da});var aa=e(0);e.n(aa);var w=e(57),y=e(65);e.n(y)},function(ia,ba,e){function ea(e){return!(!e||!e.Measure)}var x=e(85),ha=e(5),ca=e(10);ia=e(340);var da=e.n(ia),aa=e(162);ia=e(51);var w=e(2);e=function(){function e(e){this.aw=e;this.oG=!1;this.Wc={}}e.prototype.OG=function(){this.trigger(ca.g.SCALE_UPDATED,this.Wc)};e.prototype.Rba=function(){this.cE();
|
|
return this.Wc};e.prototype.RY=function(e){var h=e.Measure.scale;h&&(this.Wc[h]?this.Wc[h].push(e):this.Wc[h]=[e])};e.prototype.cE=function(){var e=this;this.Wc={};this.SS().forEach(function(h){e.RY(h)});this.aw.la.Pb().filter(ea).forEach(function(h){e.RY(h)})};e.prototype.SS=function(){return Object.values(this.aw.Pw()).filter(ea)};e.prototype.A6=function(e){var h=this,f=e.scale;e=e.applyTo;this.cE();da()(this.Wc)&&(e=this.SS());var n=f.toString();e.forEach(function(e){ea(e)&&(h.j7(e),h.Wc[n]?h.Wc[n].push(e):
|
|
h.Wc[n]=[e],h.YE(e,f))});this.OG()};e.prototype.j7=function(e){var h=e.Measure.scale;this.Wc[h]&&(this.Wc[h]=this.Wc[h].filter(function(f){return f!==e}),this.Wc[h].length||delete this.Wc[h])};e.prototype.n7=function(e){var h=this;this.cE();if(1>=Object.keys(this.Wc).length)Object(w.j)("Cannot delete scale when there is only one scale left");else{var f=this.Wc[e.toString()];delete this.Wc[e.toString()];null===f||void 0===f?void 0:f.forEach(function(f){if(f instanceof x.a)h.aw.la.Dc(f);else{var e=
|
|
Object.keys(h.Wc);e.length?(e=new aa.a(e[0]),h.YE(f,e)):h.YE(f,null)}});this.OG()}};e.prototype.YE=function(e,h){e instanceof x.a?(this.aw.la.tE(e,{Lma:h.mJ()}),h.precision&&this.aw.la.tE(e,{j1:h.precision})):e instanceof ha.X&&(e.dc({Scale:h.mJ()}),h.precision&&e.dc({Precision:h.precision}))};e.prototype.Zha=function(e,h){return this.XX([e],h)};e.prototype.XX=function(e,h){var f=this;this.cE();e.forEach(function(e){var n=f.Wc[e.toString()];delete f.Wc[e.toString()];n.forEach(function(e){f.YE(e,h);
|
|
f.Wc[h.toString()]?f.Wc[h.toString()].push(e):f.Wc[h.toString()]=[e]})});this.OG();return this.Wc};e.prototype.q9=function(){this.oG=!0};e.prototype.u7=function(){this.oG=!1};e.prototype.LU=function(){return this.oG};return e}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(4),ha=e(12);rb();var ca=Symbol("CanvasHelper.Draw");ia=function(){function e(e){e instanceof CanvasRenderingContext2D?(this.RM=e.canvas,this.Ga=e):(this.RM=e,this.Ga=e.getContext("2d"))}e.prototype.clear=
|
|
function(){this.Ga.clearRect(0,0,this.RM.width,this.RM.height);return this};e.prototype.xs=function(e){this.Ga.save();e();this.Ga.restore()};e.prototype.ys=function(e){e()};e.prototype[ca]=function(e,w,y,n,h,f,r,z){void 0===n&&(n=[3]);var fa=!1,aa=!1;isNaN(f)||(this.Ga.globalAlpha=f);e&&0<e.A&&(this.Ga.fillStyle=e.toString(),this.Ga.fill(),fa=!0);0<w&&h&&0<h.A&&(this.Ga.lineWidth=w,this.Ga.strokeStyle=h.toString(),"dash"===y&&this.Ga.setLineDash(n),this.Ga.stroke(),aa=!0);!fa&&r&&this.Ga.fill();!aa&&
|
|
z&&this.Ga.stroke()};e.prototype.ts=function(e,w,y,n){function h(){var h;da&&(h=f.Ga).transform.apply(h,da.Mk());var n=h=!1;f.Ga.font=la+" "+na+" "+ca+ha+" "+ba;isNaN(r)||(f.Ga.globalAlpha=r);fa&&ja&&(f.Ga.strokeStyle=fa.toString(),"dash"===aa&&f.Ga.setLineDash(x),f.Ga.strokeText(e,w,y+ca),n=!0,f.Ga.clip());z&&(f.Ga.fillStyle=z.toString(),f.Ga.fillText(e,w,y+ca),h=!0);!n&&oa&&f.Ga.strokeText(e,w,y+ca);!h&&va&&f.Ga.fillText(e,w,y+ca)}var f=this;n=n||{};var r=Object(ea.isUndefined)(n.opacity)?1:n.opacity,
|
|
z=n.fillColor,fa=n.borderColor,aa=n.borderStyle,ja=n.borderWidth,x=Object(ea.isUndefined)(n.dashes)?[3]:n.dashes,da=n.transform,la=Object(ea.isUndefined)(n.fontStyle)?"normal":n.fontStyle,na=Object(ea.isUndefined)(n.fontWeight)?"normal":n.fontWeight,ca=Object(ea.isUndefined)(n.fontSize)?10:n.fontSize,ha=Object(ea.isUndefined)(n.fontSizeUnits)?"pt":n.fontSizeUnits,ba=Object(ea.isUndefined)(n.fontFamily)?"sans-serif":n.fontFamily,qa=Object(ea.isUndefined)(n.isStateful)?!0:n.isStateful,va=Object(ea.isUndefined)(n.forceFill)?
|
|
!1:n.forceFill,oa=Object(ea.isUndefined)(n.forceStroke)?!1:n.forceStroke;this.Ga.lineWidth=2*(ja||1E-6);qa?this.xs(h):this.ys(h);return this};e.prototype.Xj=function(e,w,y){function n(){var n;ja&&(n=h.Ga).transform.apply(n,ja.Mk());h.Ga.beginPath();h.Ga.moveTo(e.X,e.Y);h.Ga.lineTo(w.X,w.Y);h.Ga.closePath();h[ca](null,fa||1,z,aa,r,f,da,la)}var h=this;y=y||{};var f=Object(ea.isUndefined)(y.opacity)?1:y.opacity,r=y.color,z=y.borderStyle,fa=y.borderWidth,aa=y.dashes,ja=y.transform,x=Object(ea.isUndefined)(y.isStateful)?
|
|
!0:y.isStateful,da=Object(ea.isUndefined)(y.forceFill)?!1:y.forceFill,la=Object(ea.isUndefined)(y.forceStroke)?!1:y.forceStroke;x?this.xs(n):this.ys(n);return this};e.prototype.L8=function(e,w,y,n,h){h=h||{};return this.Xj(new x.b(e,w),new x.b(y,n),h)};e.prototype.W8=function(e,w){function y(){var w;ja&&(w=n.Ga).transform.apply(w,ja.Mk());var y=w=0;fa&&"dash"===z&&(w=y=fa/2,w=y=Math.min(e.Ba(),e.wa(),w,y));n.Ga.beginPath();n.Ga.moveTo(e.aq()+w,e.lq()+y);n.Ga.lineTo(e.fq()-w,e.lq()+y);n.Ga.lineTo(e.fq()-
|
|
w,e.Wp()-y);n.Ga.lineTo(e.aq()+w,e.Wp()-y);n.Ga.closePath();da&&n.Ga.clip();w=Math.min(fa,e.Ba(),e.wa())||1E-6;n[ca](f,da?2*w:w,z,aa,r,h,la,na)}var n=this;w=w||{};var h=Object(ea.isUndefined)(w.opacity)?1:w.opacity,f=w.fillColor,r=w.borderColor,z=w.borderStyle,fa=w.borderWidth,aa=w.dashes,ja=w.transform,x=void 0===w.isStateful?!0:w.isStateful,da=void 0===w.clipPath?!0:w.clipPath,la=Object(ea.isUndefined)(w.forceFill)?!1:w.forceFill,na=Object(ea.isUndefined)(w.forceStroke)?!1:w.forceStroke;x?this.xs(y):
|
|
this.ys(y);return this};e.prototype.Jp=function(e,w){function y(){var w;ja&&(w=n.Ga).transform.apply(w,ja.Mk());w=0;fa&&"dash"===z&&(w=fa/2,w=Math.min(e.Ba(),e.wa(),w));var y=e.KI();n.Ga.beginPath();n.Ga.ellipse(y.Kc(),y.Lc(),e.Ba()/2-w,e.wa()/2-w,0,0,2*Math.PI);n.Ga.closePath();da&&n.Ga.clip();w=Math.min(fa,e.Ba(),e.wa())||1E-6;n[ca](f,da?2*w:w,z,aa,r,h,la,na)}var n=this;w=w||{};var h=Object(ea.isUndefined)(w.opacity)?1:w.opacity,f=w.fillColor,r=w.borderColor,z=w.borderStyle,fa=w.borderWidth,aa=
|
|
w.dashes,ja=w.transform,x=void 0===w.isStateful?!0:w.isStateful,da=void 0===w.clipPath?!0:w.clipPath,la=Object(ea.isUndefined)(w.forceFill)?!1:w.forceFill,na=Object(ea.isUndefined)(w.forceStroke)?!1:w.forceStroke;x?this.xs(y):this.ys(y);return this};e.prototype.t8=function(e,w,y,n){n=n||{};return this.Jp(new x.d(e-y,w-y,e+y,w+y),n)};e.prototype.U8=function(e,w){var y=this;w=w||{};var n=Object(ea.isUndefined)(w.opacity)?1:w.opacity,h=w.fillColor,f=w.borderColor,r=w.borderStyle,z=w.borderWidth,fa=w.dashes,
|
|
aa=w.transform,ja=void 0===w.isStateful?!0:w.isStateful,x=void 0===w.closePath?!0:w.closePath,da=void 0===w.clipPath?!1:w.clipPath,la=Object(ea.isUndefined)(w.forceFill)?!1:w.forceFill,na=Object(ea.isUndefined)(w.forceStroke)?!1:w.forceStroke;if(!(2>e.length))return w=function(){var w;aa&&(w=y.Ga).transform.apply(w,aa.Mk());y.Ga.beginPath();y.Ga.moveTo(e[0].X,e[0].Y);for(w=1;w<e.length;w++){var ja=e[w];ja&&y.Ga.lineTo(ja.X,ja.Y)}x&&y.Ga.closePath();da&&y.Ga.clip();w=z||1E-6;y[ca](h,da?2*w:w,r,fa,
|
|
f,n,la,na)},ja?this.xs(w):this.ys(w),this};e.prototype.u8=function(e,w,y){var n=this;y=y||{};var h=Object(ea.isUndefined)(y.opacity)?1:y.opacity,f=y.fillColor,r=y.borderColor,z=y.borderStyle,fa=y.borderWidth,aa=y.dashes,ja=y.transform,x=void 0===y.isStateful?!0:y.isStateful,da=void 0===y.closePath?!0:y.closePath,la=void 0===y.clipPath?!1:y.clipPath,na=Object(ea.isUndefined)(y.forceFill)?!1:y.forceFill,ra=Object(ea.isUndefined)(y.forceStroke)?!1:y.forceStroke;if(!(2>w.length))return y=function(){var y;
|
|
ja&&(y=n.Ga).transform.apply(y,ja.Mk());n.Ga.beginPath();ha.a.aI(e,n.Ga,w,!da);da&&n.Ga.closePath();la&&n.Ga.clip();y=fa||1E-6;n[ca](f,la?2*y:y,z,aa,r,h,na,ra)},x?this.xs(y):this.ys(y),this};e.prototype.measureText=function(e,w){void 0===w&&(w={});var y=w.fontFamily||"sans-serif",n=w.fontSize||10,h=w.fontSizeUnits||"pt",f=w.fontStyle||"normal";w=w.fontWeight||"normal";this.Ga.save();this.Ga.font=f+" "+w+" "+n+h+" "+y;e=this.Ga.measureText(e);this.Ga.restore();return e};return e}();ba.a=ia},function(ia,
|
|
ba,e){function ea(){return Object(z.isUndefined)(ka)?Math.min(window.devicePixelRatio,2)||1:ka}function x(f){ka=f}function ha(){ka=void 0}function ca(f){pa=f}function da(){return pa}function aa(){ma=!0}function w(){ma=!1}function y(){return ma}function n(){la=!0}function h(){la=!1}function f(){return la}function r(f,h,e,n){f.save();f.strokeStyle=n.indicatorColor;n=n.indicatorSize/h;f.lineWidth=2/h;var r=e.x,z=e.y;switch(e.mode){case fa.k.POINT_ON_LINE:f.beginPath();f.arc(r,z,n/2,0,2*Math.PI);f.stroke();
|
|
break;case fa.k.LINE_MID_POINT:h=z-1/h;f.beginPath();f.moveTo(r-n/2,h+n/2);f.lineTo(r+n/2,h+n/2);f.lineTo(r,h-n/2);f.closePath();f.stroke();break;case fa.k.LINE_INTERSECTION:f.beginPath();f.moveTo(r-n/2,z-n/2);f.lineTo(r+n/2,z+n/2);f.stroke();f.moveTo(r+n/2,z-n/2);f.lineTo(r-n/2,z+n/2);f.stroke();break;case fa.k.PATH_ENDPOINT:f.strokeRect(r-n/2,z-n/2,n,n)}f.restore()}e.d(ba,"h",function(){return ea});e.d(ba,"k",function(){return x});e.d(ba,"m",function(){return ha});e.d(ba,"a",function(){return ja});
|
|
e.d(ba,"l",function(){return ca});e.d(ba,"i",function(){return da});e.d(ba,"f",function(){return aa});e.d(ba,"c",function(){return w});e.d(ba,"j",function(){return y});e.d(ba,"e",function(){return n});e.d(ba,"b",function(){return h});e.d(ba,"g",function(){return f});e.d(ba,"d",function(){return r});var z=e(0);e.n(z);var fa=e(3),ka,ja=function(){try{var f=document.createElement("canvas").getContext("2d");f.font="20px f0";return parseFloat(f.font)/20}catch(ra){return 1}}();(function(){function f(){var f=
|
|
document.createElement("canvas");f.style.width="5px";f.style.height="5px";f=f.getContext("2d");f.rect(0,0,4.5,4.5);f.clip();f.fillStyle="#FFFFFF";f.fillRect(0,0,5,5);f.clearRect(0,0,5,5);return 0!==f.getImageData(1,1,1,1).data[3]}return function(){var f=document.createElement("canvas");f.style.width="1px";f.style.height="1px";f=f.getContext("2d");f.fillStyle="#FFFFFF";f.fillRect(0,0,1,1);f.beginPath();f.rect(0,0,1,1);f.clip();f.fillStyle="#000000";f.fillRect(0,0,1,1);return 255===f.getImageData(0,
|
|
0,1,1).data[0]}()||f()})();var pa="white",ma=!1,la=!1},function(ia,ba){ba.a=function(){return function(e,ea,x,ha,ca,da){this.eY=e;this.WK=ea;this.QL=x;this.KQ=ha;this.gY=ca;this.fY=da;this.eY=e||0;this.WK=ea||0;this.QL=x;this.KQ=ha;this.gY=ca||0;this.fY=da||0}}()},function(ia,ba,e){function ea(f){var h=this;if(!f)throw Error("AnnotationHistoryManager requires DocumentViewer to initialize");this.re=[];this.dg=-1;this.Wx={};this.wj={};this.ib=f.ta();this.throttle=null;this.ib.addEventListener(n.b.ANNOTATION_CHANGED,
|
|
function(f,e,n){f=f.filter(function(f){return h.Xda(f,n.source)});h.ZG=Promise.all(f.map(function(f){return f.zm()}));h.ZG.then(function(){h.Vb=f;h.action=e;n.imported||n.isUndoRedo?x(h.Vb,h.Wx,h.action,h.ib):(h.Vb.forEach(function(f){h.wj[f.Id]&&"add"===h.wj[f.Id].action?"modify"===e?h.wj[f.Id]={qa:f,action:"add"}:"delete"===e&&delete h.wj[f.Id]:h.wj[f.Id]={qa:f,action:e,source:n.source}}),h.throttle||(h.throttle=setTimeout(function(){return $h(function(f){if(1==f.La)return h.throttle=null,Af(f,
|
|
h.lY(),2);h.trigger(ea.xb.HISTORY_CHANGED);f.La=0})},200)))})})}function x(f,h,e,n){if(n.aa.getDocument()){var r="";f.forEach(function(f){var w,fa;return $h(function(y){if(1==y.La){if("delete"===e){delete h[f.Id];y.La=0;return}return Af(y,n.Rp({annotList:[f],generateInlineAppearances:!1}),3)}w=y.wf;(fa=w.match(z))&&1<=fa.length&&(r=fa[1]);h[f.Id]=r;y.La=0})})}}function ha(f,h,e,n){var r,z;return $h(function(w){if(1==w.La)return Af(w,aa(f,e),2);r=w.wf;z={yL:r,aN:ca(f,h)};void 0!==n&&(z.Sg={},n.forEach(function(h){z.Sg[h]=
|
|
{wc:f[h].qa.PageNumber-1,action:f[h].action}}));return w.return(z)})}function ca(f,h){var e="",n=[],r=[],z=[];Object.keys(f).map(function(h){return f[h]}).forEach(function(f){"add"===f.action?n.push(f.qa):"modify"===f.action?r.push(h[f.qa.Id]):z.push(h[f.qa.Id])});e=z.length?e+y("add",z.reduce(function(f,h){return f+h})):e+"<add />";e=r.length?e+y("modify",r.reduce(function(f,h){return f+h})):e+"<modify />";n.length?(e+="<delete>",n.forEach(function(f){e+='<id page="'+(f.PageNumber-1)+'">'+f.Id+"</id>"}),
|
|
e+="</delete>"):e+="<delete />";return w(e)}function da(f){if(f.includes("<add>"))return"add";if(f.includes("<modify>"))return"modify";if(f.includes("<delete>"))return"delete"}function aa(f,h){var e,n,r,fa,aa,ja,x;return $h(function(da){switch(da.La){case 1:e="";n=[];r=[];fa=[];aa="";Object.keys(f).map(function(h){return f[h]}).forEach(function(f){"add"===f.action?n.push(f.qa):"modify"===f.action?r.push(f.qa):fa.push(f.qa)});if(!n.length){e+="<add />";da.La=2;break}return Af(da,h.Rp({annotList:n,
|
|
generateInlineAppearances:!1}),3);case 3:aa=da.wf,e=(ja=aa.match(z))&&1<=ja.length?e+y("add",ja[1]):e+"<add />";case 2:if(!r.length){e+="<modify />";da.La=4;break}return Af(da,h.Rp({annotList:r,generateInlineAppearances:!1}),5);case 5:aa=da.wf,e=(x=aa.match(z))&&1<=x.length?e+y("modify",x[1]):e+"<modify />";case 4:return fa.length?(e+="<delete>",fa.forEach(function(f){e+='<id page="'+(f.PageNumber-1)+'">'+f.Id+"</id>"}),e+="</delete>"):e+="<delete />",da.return(w(e))}})}function w(f){return'<?xml version="1.0" encoding="UTF-8" ?><xfdf xmlns="http://ns.adobe.com/xfdf/" xml:space="preserve"><fields />'+
|
|
f+"</xfdf>"}function y(f,h){var e="";"add"===f?e+="<add>"+h+"</add>":"modify"===f?e+="<modify>"+h+"</modify>":"delete"===f&&(e+="<delete>"+h+"</delete>");return e}var n=e(10);ia=e(51);var h=e(3),f=e(5),r=e(104),z=/<annots>([\s\S]*)<\/annots>/,fa=new DOMParser,ka=new XMLSerializer;ea.prototype={lY:function(){var f=this,h,e,n;return $h(function(r){if(1==r.La)return h=Object.keys(f.wj),e=new Set(h.filter(function(h){return"redactionApplied"===f.wj[h].source})),0<e.size?r=Af(r,f.NX(e),0):Object.keys(f.wj).length?
|
|
r=Af(r,ha(f.wj,f.Wx,f.ib,h),5):(r.La=0,r=void 0),r;n=r.wf;f.re=f.re.slice(0,f.dg+1);f.re.push(n);f.dg++;50<f.re.length&&(f.re=f.re.slice(1),f.dg--);f.wj={};x(f.Vb,f.Wx,f.action,f.ib);r.La=0})},k6:function(){var h=this,e,n;return $h(function(r){e=h.ib.aa.Pw();n=Object.keys(e).reduce(function(h,n){(e[n]instanceof f.u||e[n]instanceof f.v)&&h.push(e[n].complete(!0));return h},[]);0<n.length?r=Af(r,Promise.all(n),0):(r.La=0,r=void 0);return r})},GL:function(f){var h=this;f.addEventListener(r.a.Events.PAGES_UPDATED,
|
|
function(f){(f.removed&&0<f.removed.length||f.moved&&0<Object.keys(f.moved).length)&&h.Xha(f.removed,f.moved)})},undo:function(){var f=this,h,e,n,r,z;return $h(function(w){switch(w.La){case 1:return Af(w,f.k6(),2);case 2:if(!f.ZG){w.La=3;break}return Af(w,f.ZG,3);case 3:if(!f.throttle){w.La=5;break}clearTimeout(f.throttle);f.throttle=null;return Af(w,f.lY(),5);case 5:if(-1===f.dg)return w.return();h=f.re[f.dg].aN;return Af(w,f.ib.Ul(h,{Yt:!1,action:da(h),jx:!0}),7);case 7:e=w.wf;n=xc(e);for(r=n.next();!r.done;r=
|
|
n.next())z=r.value,z.mh(),z.di();f.ib.kf(e);f.dg--;f.trigger(ea.xb.HISTORY_CHANGED);w.La=0}})},redo:function(){var f=this,h,e,n,r,z;return $h(function(w){if(1==w.La){if(f.dg===f.re.length-1)return w.return();f.dg++;h=f.re[f.dg].yL;return Af(w,f.ib.Ul(h,{Yt:!1,action:da(h),jx:!0}),2)}e=w.wf;n=xc(e);for(r=n.next();!r.done;r=n.next())z=r.value,z.mh(),z.di();f.ib.kf(e);f.trigger(ea.xb.HISTORY_CHANGED);w.La=0})},clear:function(){this.re=[];this.dg=-1;this.trigger(ea.xb.HISTORY_CHANGED)},E5:function(){return-1!==
|
|
this.dg},C5:function(){return 1<this.re.length-this.dg},Xda:function(f,e){return f.ToolName!==h.m.CROP&&!f.ZC()&&!f.Sh()&&!(f instanceof Annotations.WidgetAnnotation)&&"pagesUpdated"!==e},NX:function(f){var h=this,e,n,r,z,w,fa,y,aa,ja,x,da,ka;return $h(function(la){switch(la.La){case 1:e=xc(f);for(n=e.next();!n.done;n=e.next())r=n.value,delete h.Wx[r];z=[];w={};fa=xc(h.re);y=fa.next();case 2:if(y.done){la.La=4;break}w.Rk=y.value;ja=aa=Object.keys(w.Rk.Sg).length;x=xc(f);for(n=x.next();!n.done;n=x.next())da=
|
|
n.value,da in w.Rk.Sg&&(delete w.Rk.Sg[da],ja--);if(0===ja){-1<h.dg&&h.dg--;la.La=3;break}if(ja===aa){z.push(w.Rk);la.La=3;break}w.az={};Object.keys(w.Rk.Sg).forEach(function(f){return function(e){f.az[e]={qa:h.ib.hg(e),action:f.Rk.Sg[e].action}}}(w));return Af(la,ha(w.az,h.Wx,h.ib),7);case 7:ka=la.wf,ka.Sg=w.Rk.Sg,z.push(ka);case 3:w={az:w.az,Rk:w.Rk};y=fa.next();la.La=2;break;case 4:h.re=z,h.wj={},la.La=0}})},Xha:function(f,h){var e=[],n=new Set;f=xc(f);for(var r=f.next();!r.done;r=f.next())n.add(r.value-
|
|
1);f=xc(this.re);for(r=f.next();!r.done;r=f.next()){r=r.value;for(var z in r.Sg)n.has(r.Sg[z].wc)&&e.push(z)}this.NX(e);if(0<Object.keys(h).length)for(e=0;e<this.re.length;e++){n=this.re[e];f=z=null;for(var w in n.Sg){var y=n.Sg[w].wc+1;if(h.hasOwnProperty(y)){r=h[y]-1;n.Sg[w].wc=r;z||f||(z=fa.parseFromString(n.aN,"text/xml"),f=fa.parseFromString(n.yL,"text/xml"));for(var aa=xc(z.querySelectorAll('[page="'+(y-1)+'"]')),ja=aa.next();!ja.done;ja=aa.next())ja.value.setAttribute("page",r.toString());
|
|
y=xc(f.querySelectorAll('[page="'+(y-1)+'"]'));for(ja=y.next();!ja.done;ja=y.next())ja.value.setAttribute("page",r.toString())}}z&&f&&(this.re[e].aN=ka.serializeToString(z),this.re[e].yL=ka.serializeToString(f))}this.trigger(ea.xb.HISTORY_CHANGED)}};ea.xb={HISTORY_CHANGED:"historyChanged"};Object(ia.a)(ea);ba.a=ea},function(ia,ba,e){var ea=e(1),x=e(27),ha=e(4),ca=e(3),da=e(21),aa=e(14);ia=function(e){function w(n,h,f,r,z){var w=e.call(this,void 0,void 0,n,h)||this;w.width=n;w.height=h;w.offset=f;
|
|
w.qa=r;w.aa=z;w.qa.oe||(w.qa.mh(),w.qa.di());w.Mt=0;w.Bg=w.qa.oe;return w}Object(ea.c)(w,e);w.prototype.kC=function(){return"grab"};w.prototype.getDimensions=function(e,h,f){h=this.width/f;for(var n=this.height/f,z=new ha.b(this.Bg.x+(this.qa.pO+this.offset/f),this.Bg.y),w=da.a.Math.Am(z,-aa.a.tb(e.Rotation),this.Bg),y=0,ja=0;3>ja;ja++)this.$da(w,f)||(y+=Math.PI/2,w=da.a.Math.Am(z,-aa.a.tb(e.Rotation)-y,this.Bg));e=new ha.b(w.x-h/2,w.y-n/2);return new ha.d(e.x,e.y,e.x+h,e.y+n)};w.prototype.$da=function(e,
|
|
h){var f=this.qa.ua(),n=this.width/h;h=this.height/h;e=new ha.b(e.x-n/2,e.y-h/2);n=0<e.x&&e.x<this.aa.ld(f)-n;f=0<e.y&&e.y<this.aa.kd(f)-h;return n&&f};w.prototype.move=function(e,h,f,r,z,w,y){h=new ha.b(z.x-h,z.y-f);h=(h.y-this.Bg.y)/(h.x===this.Bg.x?.005:h.x-this.Bg.x);z=(z.y-this.Bg.y)/(z.x===this.Bg.x?.005:z.x-this.Bg.x);z=Math.atan((z-h)/(1+z*h));this.Mt+=z;f=w.la.wC();w=aa.a.tb(f.snapAngleStepSizeInDegrees);y=y.shiftKey;h=f.hotkeyTogglesRotationType;r=(f=f.defaultRotationType===ca.i.FREEFORM_ROTATION)&&
|
|
(!h||h&&!y)||!f&&h&&y;var n=!1;(this.Mt>=w||this.Mt<=-w)&&(f&&h&&y||!f&&(!h||h&&!y))?(e.rotate(this.Mt>=w?w:-w,this.Bg),this.Mt=0,n=!0):r&&(e.rotate(z,this.Bg),n=!0);return n};w.prototype.draw=function(e,h,f,r){void 0===r&&(r=1);this.Bg||(this.Bg=this.qa.oe);this.dc(e,r);f=this.getDimensions(this.qa,f,r);h=f.Ba();f=new ha.b(f.x1+h/2,f.y1+f.wa()/2);w.Q8(e,f,h);w.ZH(e,f,r)};w.Q8=function(e,h,f){f/=2;e.fillStyle="rgb(255, 255, 252)";e.strokeStyle=x.a.outlineColor;e.shadowColor=x.a.shadowColor;e.shadowBlur=
|
|
x.a.shadowBlur;e.shadowOffsetY=x.a.shadowOffsetY;e.save();e.beginPath();e.arc(h.x,h.y,f,0,2*Math.PI);e.stroke();e.fill();e.restore()};w.ZH=function(e,h,f){var n=5/f,z=6/f,w=2/f;e.save();e.lineWidth=2/f;e.beginPath();e.arc(h.x,h.y,z,0,.5*Math.PI);e.stroke();e.beginPath();e.arc(h.x,h.y,z,14/24*Math.PI,.75*Math.PI);e.stroke();e.beginPath();e.arc(h.x,h.y,z,.875*Math.PI,25/24*Math.PI);e.stroke();e.beginPath();e.arc(h.x,h.y,z,28/24*Math.PI,32/24*Math.PI);e.stroke();e.beginPath();e.arc(h.x,h.y,z,1.5*Math.PI,
|
|
2*Math.PI);e.stroke();e.beginPath();e.moveTo(h.x,h.y-z);e.lineTo(h.x+n,h.y-z-w);e.stroke();e.beginPath();e.moveTo(h.x,h.y-z-1/f);e.lineTo(h.x+w,h.y-z+n);e.stroke();e.restore()};return w}(x.a);ba.a=ia},function(ia,ba,e){e.d(ba,"b",function(){return ea});e.d(ba,"a",function(){return x});var ea=Error("Out Of Memory"),x=Error("Cannot connect to server")},function(ia,ba,e){var ea=e(1),x=e(26),ha=e(21),ca=e(3);ia=e(45);var da=e(2),aa=e(156);e=e(114);ia=function(e){function w(n,h){n=e.call(this,n,aa.a)||
|
|
this;n.Bk=!1;n.Fe=!1;n.annotation=null;n.defaults.StartLineStyle="None";n.defaults.EndLineStyle="None";delete n.defaults.FillColor;n.name=h||ca.m.POLYLINE;return n}Object(ea.c)(w,e);w.prototype.mouseLeftDown=function(n){var h=this;var f=0<this.aa.ta().Ed().length;e.prototype.mouseLeftDown.call(this,n);var r=this.annotation&&0===this.annotation.Ra().length;if(this.isSelecting()||this.Ub&&r&&!this.Fe&&!this.overrideSelection)this.annotation=null;else if(f)this.annotation=null;else if(this.annotation)if(f=
|
|
n.data.pageCoordinate,!f||f.pageNumber!==this.annotation.ua())"CalloutCreateTool"===this.sg?(this.Mv(),this.aa.la.Dc(this.annotation),this.annotation=null):this.mouseDoubleClick(n);else if(null!==f.x&&null!==f.y&&(r=this.annotation.Ra(),0===r.length?this.annotation.Bc(f.x,f.y):this.Bk||(this.annotation.wo(),n.shiftKey&&(f=ha.a.Math.Ew(r[r.length-1],f)),this.annotation.Bc(f.x,f.y)),this.Bk=!0,this.annotation instanceof aa.a&&(this.annotation.th(this.defaults.StartLineStyle),this.annotation.Dm(this.defaults.EndLineStyle)),
|
|
this.wd)){n=this.annotation.Ra();var z=this.annotation;this.Ik(n[n.length-1]).then(function(){h.aa.la.qb(z)})}};w.prototype.mouseLeftUp=function(e){x.a.prototype.mouseLeftUp.call(this,e)};w.prototype.mouseMove=function(n){return Object(ea.b)(this,void 0,Promise,function(){var h,f,r,z;return Object(ea.d)(this,function(w){switch(w.label){case 0:e.prototype.mouseMove.call(this,n);x.a.prototype.mouseMove.call(this,n);this.wd&&!this.annotation&&this.qs(n);if(!this.annotation||this.isSelecting()||!n.data)return[2];
|
|
h=n.data.pageCoordinate;if(null===h||null===h.x||null===h.y||h.pageNumber!==this.annotation.ua())return[2];f=this.pageCoordinates[1];return this.wd&&this.annotation?[4,this.Ik(f)]:[3,2];case 1:w.ea(),w.label=2;case 2:return this.Bk||this.annotation.wo(),r=this.annotation.Ra(),z=r.length&&r[r.length-1].x===h.x&&r[r.length-1].y===h.y,z||(n.shiftKey&&r.length&&(h=ha.a.Math.Ew(r[r.length-1],h)),this.annotation.Bc(h.x,h.y),this.Bk=!1),Object.getOwnPropertyDescriptor(Annotations.Annotation.prototype,"X").set.call(this.annotation,
|
|
this.annotation.Eb.x),Object.getOwnPropertyDescriptor(Annotations.Annotation.prototype,"Y").set.call(this.annotation,this.annotation.Eb.y),this.aa.la.qb(this.annotation),this.Bn(n),[2]}})})};w.prototype.mouseDoubleClick=function(){this.annotation&&(this.annotation.finish(),this.finish())};w.prototype.mouseRightDown=function(e){this.annotation&&this.mouseDoubleClick(e)};w.prototype.contextMenu=function(e){e.preventDefault()};w.prototype.tap=function(e){this.annotation&&0<this.annotation.Ra().length||
|
|
x.a.prototype.tap.call(this,e)};w.prototype.Mv=function(){for(;0<this.annotation.Ra().length;)this.annotation.wo()};w.prototype.bM=function(e){Object(da.d)("8.0","setAllowCreationOverAnnotation",["enableCreationOverAnnotation","disableCreationOverAnnotation"]);this.Fe=e};w.prototype.dw=function(){this.Fe=!0};w.prototype.Zv=function(){this.Fe=!1};return w}(ia.a);Object(e.a)(ia);ba.a=ia},function(ia,ba,e){function ea(e){Object(ca.a)(e,da)}e.d(ba,"a",function(){return ea});var x=e(29),ha=e(2),ca=e(121),
|
|
da=function(){function e(){}e.prototype.EE=function(e){Object(x.k)()?this.wd=e:Object(ha.j)("setSnapMode requires the full API to be enabled. Please set the fullAPI option to true in your WebViewer constructor.")};e.prototype.hq=function(){if(Object(x.k)())return this.wd;Object(ha.j)("getSnapMode requires the full API to be enabled. Please set the fullAPI option to true in your WebViewer constructor.")};e.prototype.aea=function(e,y,n,h,f){return Math.pow(Math.abs(e-n),2)+Math.pow(Math.abs(y-h),2)<
|
|
Math.pow(this.aa.la.qJ().radiusThreshold/f,2)};e.prototype.WY=function(e,y,n){var h=this,f=e.x,r=e.y;return this.aa.KE(n,f,r,this.wd).then(function(e){var n,z,w=e.x,aa=e.y,x=e.modeName;e=e.mode;h.aea(f,r,w,aa,y)&&(null===(n=h.br)||void 0===n?void 0:n.x)!==f&&(null===(z=h.br)||void 0===z?void 0:z.y)!==r?h.br={x:w,y:aa,modeName:x,mode:e}:h.br=null;return{x:w,y:aa,modeName:x,mode:e}})};e.prototype.qs=function(e){var w=this,n=this.aa.Ns(e);e=this.aa.Lb(n.pageNumber);this.WY(n,e,n.pageNumber).then(function(){w.aa.la.Sc({pageNumber:n.pageNumber})})};
|
|
e.prototype.Ik=function(e){var w=this,n=this.aa.Lb(this.annotation.PageNumber);return this.WY(e,n,this.annotation.PageNumber).then(function(h){var f=h.x;h=h.y;w.br&&(e.x=f,e.y=h)})};return e}()},function(ia,ba,e){e(2);var ea=e(80),x=e(95),ha=e(153);ia=function(){function e(){this.Lj=[];this.Oc=this.Jd=-1;this.$c=Array(8);this.nA=null;this.Ea="";this.rb=null;this.lv=0}e.prototype.md=function(){this.Oc=this.Jd=-1};e.prototype.Fc=function(e){return this.Oc===e.Oc};e.prototype.ek=function(){return this.Lj.length};
|
|
e.prototype.Pi=function(){return this.Ea.length};e.prototype.bh=function(){return this.lv};e.prototype.jQ=function(e){this.lv=e};e.prototype.$g=function(){return null==this.nA?new e:this.nA};e.prototype.Ke=function(e,aa){for(var w=0;8>w;w++)aa[w]=this.Lj[e][w]};e.prototype.le=function(e){for(var aa=0;8>aa;aa++)e[aa]=this.$c[aa]};e.prototype.Je=function(e){var aa=new x.a;aa.Yq(this.$c);e[0]=aa.na;e[1]=aa.ja;e[2]=aa.oa;e[3]=aa.ka};e.prototype.nv=function(e){this.Oc=this.Jd=e};e.prototype.JA=function(e,
|
|
aa){var w=Object(ha.b)(this.Ea);this.Ea+=e;for(var y=Array(8),n=0;8>n;n++)y[n]=aa[n];for(n=0;n<e.length;++n)this.Lj.push(y);if(w)for(n=0;8>n;n++)this.$c[n]=y[n];else ea.a.qA(this.$c,y,!1,0)};e.prototype.Tja=function(e){this.nA=e};return e}();ba.a=ia},function(ia,ba,e){function ea(e){return new x(e)}e.d(ba,"a",function(){return ea});var x=function(){function e(e){this.JO=e;this.dA=-1;this.current=null}e.prototype.gm=function(){this.dA++;this.current=this.JO[this.dA];return this.dA<this.JO.length};
|
|
e.prototype.reset=function(){this.dA=-1;this.current=null};return e}()},function(ia,ba,e){e(32);e(12);e(85);e(231);e(386);e(143);e(212);e(36);e(387);e(171);e(407);e(92);e(408);e(172);e(409);e(99);e(156);e(410);e(232);e(233);e(69);e(157);e(234);e(87);e(411);e(412);e(413);e(414);e(415);e(416);e(417);e(418);e(145);e(419);var ea=e(25);e.d(ba,"a",function(){return ea})},function(ia,ba,e){function ea(f){return Object(n.b)(void 0,void 0,void 0,function(){var h;return Object(n.d)(this,function(n){switch(n.label){case 0:return[4,
|
|
e.e(6).then(e.bind(null,164))];case 1:return h=n.ea().default,[2,h.k7(f)]}})})}function x(f){return Object(n.b)(void 0,void 0,void 0,function(){var h;return Object(n.d)(this,function(n){switch(n.label){case 0:return[4,e.e(6).then(e.bind(null,164))];case 1:return h=n.ea().default,[2,h.Bla(f)]}})})}function ha(e){f.trigger(h.d.EDIT_BOXES_AVAILABLE,e)}function ca(e,n,w){f.trigger(h.d.TEXT_CONTENT_UPDATED,e,n,w)}function da(f){return Object(n.b)(void 0,void 0,void 0,function(){var h;return Object(n.d)(this,
|
|
function(n){switch(n.label){case 0:return[4,e.e(6).then(e.bind(null,164))];case 1:return h=n.ea().default,f.Sh()?[2,h.Daa(f.Ru)]:[2]}})})}function aa(f,h){return Object(n.b)(void 0,void 0,void 0,function(){var r;return Object(n.d)(this,function(n){switch(n.label){case 0:return[4,e.e(6).then(e.bind(null,164))];case 1:return r=n.ea().default,[2,r.Tla(f,h)]}})})}function w(f,h,w){return Object(n.b)(void 0,void 0,void 0,function(){var r;return Object(n.d)(this,function(n){switch(n.label){case 0:return[4,
|
|
e.e(6).then(e.bind(null,164))];case 1:return r=n.ea().default,[2,r.sga(f,h,w)]}})})}function y(f){return Object(n.b)(void 0,void 0,void 0,function(){var h;return Object(n.d)(this,function(n){switch(n.label){case 0:return[4,e.e(6).then(e.bind(null,164))];case 1:return h=n.ea().default,[2,h.qga(f)]}})})}e.d(ba,"a",function(){return f});e.d(ba,"d",function(){return y});e.d(ba,"e",function(){return w});e.d(ba,"i",function(){return aa});e.d(ba,"c",function(){return da});e.d(ba,"h",function(){return ca});
|
|
e.d(ba,"g",function(){return ha});e.d(ba,"f",function(){return x});e.d(ba,"b",function(){return ea});var n=e(1),h=e(10);ia=e(51);var f={};Object(ia.b)(f)},function(ia,ba,e){function ea(e,w){return w.map(function(w){w=w.style;e.save();ha(e,w);w=e.measureText("gM");w.actualBoundingBoxAscent?w=da.o?w.fontBoundingBoxAscent+w.actualBoundingBoxDescent:w.actualBoundingBoxAscent+w.actualBoundingBoxDescent:(w=e.measureText("M"),w=w.width);e.restore();return w})}function x(e,w,y){return w.reduce(function(n,
|
|
h){var f=h.text;h=h.style;e.save();ha(e,h);f=e.measureText(y?f.replace(/\s/g,""):f).width;e.restore();return n+f},0)}function ha(e,w){e.setLineDash([]);w.color&&(e.fillStyle=w.color,e.strokeStyle=w.color);"italic"===w["font-style"]&&(e.font="italic "+e.font);"bold"===w["font-weight"]&&(e.font="600 "+e.font)}function ca(e,w,y){var n=y+e.length-1,h=Object.keys(w).map(function(f){return parseInt(f,10)});if(1===h.length)return[{text:e,style:w[0]}];var f=h[h.length-1];if(y>f)return[{text:e,style:w[f]}];
|
|
var r={};for(f=1;f<h.length;f++){var z=h[f],fa=h[f-1];if(y>=fa&&n<z)return[{text:e,style:w[fa]}];z>=y&&z<=n&&(r[0]||(r[0]=w[h[f-1]]),r[z-y]=w[z])}return Object.keys(r).map(function(f){return parseInt(f,10)}).map(function(f,h,n){return{text:h===n.length-1?e.slice(f):e.slice(f,n[h+1]),style:r[f]}})}e.d(ba,"c",function(){return ca});e.d(ba,"d",function(){return ha});e.d(ba,"b",function(){return x});e.d(ba,"a",function(){return ea});var da=e(17)},function(ia,ba,e){var ea=e(1);ia=e(27);var x=e(4),ha=e(21),
|
|
ca=e(46);e=function(e){function aa(w,y,n,h,f){var r=e.call(this,w,y,n,h)||this;r.x=w;r.y=y;r.width=n;r.height=h;r.Vi=f;r.Vi=f;return r}Object(ea.c)(aa,e);aa.prototype.getDimensions=function(e,y,n){e=this.width/n;n=this.height/n;y=this.x-.5*e;var h=this.y-.5*n;return new x.d(y,h,y+e,h+n)};aa.prototype.move=function(e,y,n,h,f,r,z){h=this.Vi?e.Yp():e.Zn();var w=this.Vi?e.Zn():e.Yp();z.shiftKey?(y=ha.a.Math.Ew(w,f),h.x=y.x,h.y=y.y):(h.x+=y,h.y+=n);e.dm()&&e.ck()===ca.a.CENTER?(r=r.Ll(r.jg()),r=new x.b(r.width/
|
|
2,r.height/2),e.hi(e.dT(r))):e.caption&&e.ck()!==ca.a.CENTER&&e.hi(e.ck());e.QG&&!e.dm()&&e.hi(ca.a.CENTER);e.adjustRect();return!0};return aa}(ia.a);ba.a=e},function(ia,ba,e){function ea(e,x){Object.getOwnPropertyNames(x.prototype).forEach(function(da){Object.defineProperty(e.prototype,da,Object.getOwnPropertyDescriptor(x.prototype,da))})}function x(e,x){Object.getOwnPropertyNames(x.prototype).forEach(function(da){Object.defineProperty(e,da,Object.getOwnPropertyDescriptor(x.prototype,da))})}e.d(ba,
|
|
"a",function(){return ea});e.d(ba,"b",function(){return x})},function(ia,ba,e){(function(ea){var x=e(1),ha=e(55),ca=e(0);e.n(ca);var da=e(2),aa=e(158),w=e(93),y=e(7),n=e(81),h=e(78),f=e(28),r=e(136),z=e(34),fa=e(68),ka=e(30),ja=e(77),pa=e(29),ma=e(56),la=e(19),na=e(3),ra=e(23),sa=e(15),Da=e(94),qa=window,va={},oa=new RegExp(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-/]))?/);w=function(e){function w(f){f=e.call(this,f)||this;f.ag=[];f.sf={};f.ca=[];f.pm={};f.Ps=!1;
|
|
f.zx=0;f.pk={};f.Rf=[];f.za=null;f.Vq=!1;f.Nf=[];f.wH=!1;f.Ja=null;f.Qj=new aa.a(10,400);f.Oq={pageTransparent:!1,overprintMode:ka.d.UN};f.zK={};f.Rj=!1;f.WH=window.createPromiseCapability();f.rd=f.WH.promise;return f}Object(x.c)(w,e);w.prototype.cy=function(f,h){var e=new ra.a;e.ab.apply(e,f);f=this.Zr(e,h);e.ab(1,0,0,-1,-f.x1,f.y2);return e};w.prototype.VB=function(f,h){var e=this;if(!this.XK){if(!this.Rz){var n=Object.keys(f).reduce(function(h,e){h[Number(e)-1]=f[e].id;return h},{});this.je({type:y.a.Events.CHANGE_PAGE_IDS,
|
|
data:n});this.Rz=!0}this.eH({pageDimensions:f})}this.addEventListener(y.a.Events.DOCUMENT_COMPLETE,function(){e.WH.resolve()},{once:!0});this.maxViewportZoom=this.zn();this.pq||this.trigger(y.a.Events.DOCUMENT_COMPLETE);this.c5();h()};w.prototype.c5=function(){var f=this;f.Ia.addEventListener(f.za,function(h){f.Sx(h)})};w.prototype.xT=function(f,h){if(this.OJ)return this.OJ.promise;var e=this.OJ=window.createPromiseCapability(),n=new XMLHttpRequest;n.open("GET",f.url);n.withCredentials=h;var r=f.customHeaders;
|
|
r&&Object.keys(r).forEach(function(f){n.setRequestHeader(f,r[f])});var w=this;n.setRequestHeader("Range","bytes=1-200");n.responseType="arraybuffer";n.onreadystatechange=function(){if(this.readyState===this.DONE)if(n.response){var f=n.response.byteLength;206!==n.status&&200!==n.status?e.reject({message:"Received http error code "+n.status}):200!==f&&e.reject({message:"Byte ranges are not supported by the server.",data:new Uint8Array(n.response)});f=new Uint8Array(n.response);var h=[76,105,110,101,
|
|
97,114,105,122,101,100],r=n.getResponseHeader("Content-Range")||n.getResponseHeader("content-range");if(r){r=r.split("/")[1];var z=0;do{a:{for(var fa=f.length;z<fa;++z)if(f[z]===h[0])break a;z=-1}z+=1;if(!z)break;fa=1;for(fa;10>fa;++fa)if(f[z]===h[fa])++z;else break;if(10===fa){r=parseInt(r,10);h={size:r};w.fileSize=r;z=String.fromCharCode.apply(null,f);f=z.match(/__trnPrStart (\d+)/);r=z.match(/__trnPrSize (\d+)/);z=z.match(/__trnPrTotalBytes (\d+)/);f&&r&&z&&(h.Rx=parseInt(f[1],10),h.nL=parseInt(r[1],
|
|
10),h.wga=parseInt(z[1],10));e.resolve(h);return}}while(0!==z);e.reject({message:"The file is not linearized."})}else e.reject({message:"Could not retrieve Content-Range header."})}else e.reject({message:"No response data"})};n.onerror=function(){e.reject({message:"Network or Cross Domain Access Error."})};n.send();return e.promise};w.prototype.loadAsync=function(f,h,e){return Object(x.b)(this,void 0,void 0,function(){function n(f,h){Object(da.j)("Could not use incremental download for url "+f+". Reason: "+
|
|
h)}function r(e){ha.pq?ha.Ia.Eda(ha.za).then(function(r){r?(ha.VB(e,h),f.trigger(Da.a.Events.DOCUMENT_LOADING_PROGRESS,[1,1])):(n(ra.url,"Linearization data is invalid."),ha.unloadResources(),f.getFileData(ba))}):ha.VB(e,h)}function w(f){pa=f;ha.Ia.Yla(ha.za,f).then(function(f){f.success?r(f.pageDimensions):aa(w)})}function fa(f){ha.Ia.m$(f).then(function(f){ha.za=f.docId;r(f.pageDimensions)},function(f){"NeedsPassword"===f.type&&aa?(ha.za=f.docId,ja?w(ja):pa?w(pa):aa(w)):(ha.WH.reject(f),h(f))})}
|
|
var aa,ja,ka,la,na,ca,ha,ra,pa,ea,sa,ba,ua,va;return Object(x.d)(this,function(r){switch(r.label){case 0:return this.Tb=f,aa=e.getPassword,ja=e.foundPassword,ka=e.extension,la=e.defaultPageSize,na=e.pageSizes,ca=e.workerTransportPromise,ha=this,[4,f.getFile()];case 1:return ra=r.ea(),pa=null,ea=function(f){var h=window.location.hostname&&""!==window.location.hostname?window.location.hostname:window.location.href;return h.startsWith("file://")&&f.startsWith("file://")?!1:-1===f.indexOf(h)},sa=function(f){return"asm"===
|
|
f||"ems"===f||"wasm-threads"===f},ba=function(f){ha.ag=[];ha.sf={};ha.Ps=!1;ha.zx=0;ha.pq=!1;ha.addEventListener(y.a.Events.DOCUMENT_READY,h);var n,r;ca.then(function(h){ha.Ia=h;h="object"===typeof f&&"url"in f;ra&&Object(z.h)(ra)&&ha.Ia&&sa(ha.Ia.getWorkerType())?(n="file",r=ra):h?(n="url",r=f,ha.pq=!0):"string"===typeof f?(n="filepath",r=f):"object"===typeof f&&null!==f&&void 0!==f.byteLength?(n="array",r=f.buffer):"object"===typeof f&&"type"in f&&"id"===f.type?(n="id",r=f.id):Object(da.j)("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");
|
|
h={type:n,value:r,extension:ka,defaultPageSize:la,pageSizes:na};e.customHandlerId&&(h.customHandlerId=e.customHandlerId);fa(h)})},qa.utils.isJSWorker&&qa.jsworker?"string"===typeof ra&&oa.test(ra)?f.getFileData(ba):(ra=qa.jsworker.worker.getPlatformFormatFilePath(ra),ba(ra)):ra&&ra.url?this.xT(ra,f.withCredentials).then(function(h){4194304>=h.size?f.getFileData(ba):(ra.size=h.size,ra.withCredentials=ea(ra.url)?f.withCredentials:!0,ba(ra))},function(h){n(ra.url,h.message);try{var e=window.parent.cordova}catch(lb){e=
|
|
!1}h.data&&!e?ba(h.data):f.getFileData(ba)}):ra?(ua=ca.then(function(f){return f.WA}),va=Object(ma.g)(),Promise.race([ua,va]).then(function(h){sa(h)?ba(ra):f.getFileData(ba)})):f.getFileData(ba),[2]}})})};w.prototype.V4=function(f){var h=this,e=f.pageNumToId,n={};Object.keys(e).forEach(function(f){var r,w=e[f],z=h.ca[parseInt(f,10)-1].id;h.ca[parseInt(f,10)-1].id=w;n=Object(x.a)(Object(x.a)({},n),(r={},r[w]=h.pm[z],r))});this.pm=n};w.prototype.ZW=function(f,h){return{width:Math.round(f.width),height:Math.round(f.height),
|
|
matrix:this.cy(f.matrix,{w:f.width,h:f.height}),rotation:90*f.rotation,id:f.id,pageNum:Number(h),contentChanged:!!f.contentChanged}};w.prototype.U4=function(f){var h=this;h.XK=!0;var e=f.pageDimensions;f=Object.keys(e);var r=this.ca,w=this.pm,z=[];f.forEach(function(f){var fa=e[f];fa=h.ZW(fa,f);w[fa.id]&&z.push({before:w[fa.id],after:fa});var y=new n.a(fa.width,fa.height);w[fa.id]=y;y.mM(fa);r[Number(f)-1]=y});this.maxViewportZoom=this.zn();return z};w.prototype.eH=function(f){var h=this;h.XK=!0;
|
|
var e=f.pageDimensions;f=Object.keys(e);for(var r=this.ca,w={},z=0;z<r.length;++z){var fa=r[z];fa.text&&(w[fa.id]=fa.text)}this.ca.length=0;var y=this.pm,aa=[],ja={};f.forEach(function(f){var z=e[f],fa=!!z.contentChanged,x=z.annotationsUnchanged;z=h.ZW(z,f);x&&(z.annotationsUnchanged=!0);y[z.id]&&aa.push({before:y[z.id],after:z});y[z.id]=new n.a(z.width,z.height);x=y[z.id];x.mM(z);!fa&&(fa=w[x.id])&&(x.text=fa);r[Number(f)-1]=x;ja[z.id]=!0});this.maxViewportZoom=this.zn();Object.keys(y).forEach(function(f){f in
|
|
ja||delete y[f]});return aa};w.prototype.Sx=function(f){var h=this;switch(f.type){case "pagesUpdated":Object(da.b)("downloader","Pages Updated");(f=this.eH(f.data))&&0<f.length&&(this.je({type:y.a.Events.PAGES_DIFF,data:f}),this.je({type:y.a.Events.PAGES_UPDATED,data:f.map(function(f){return f.after})}));break;case "pagesDownloaded":Object(da.b)("downloader","Pages Downloaded");(f=this.U4(f.data))&&0<f.length&&this.je({type:y.a.Events.PAGES_DOWNLOADED,data:f.map(function(f){return f.after})});break;
|
|
case "pagesRenamed":var e=f.data;f=Object.keys(e.pageNumToId).reduce(function(f,n){var r=e.pageNumToId[n],w=h.ca.find(function(f){return f.pageNum===Number(n)}).id;f[w]=r;return f},{});this.V4(e);this.je({type:y.a.Events.CHANGE_PAGE_IDS,data:f});break;case "bookmarksUpdated":this.je({type:y.a.Events.BOOKMARKS_UPDATED,data:f.data});break;case "documentComplete":Object(da.b)("downloader","Document Download Complete");this.trigger(y.a.Events.DOCUMENT_COMPLETE);this.je({type:y.a.Events.DOCUMENT_COMPLETE,
|
|
data:f.data});break;default:Object(da.j)("Unknown event type: ",f.type)}};w.prototype.getBookmarks=function(){function f(e,n,r){var w=new h.a([],e.name,e.pageNumber,n,e.verticalOffset,e.horizontalOffset,e.url,r,e.objNum);e.children.forEach(function(h,e){h.pageNumber&&w.children.push(f(h,w,e))});return w}return this.Ia.pea(this.za).then(function(h){var e=[];h.bookmarks.forEach(function(h,n){h.pageNumber&&e.push(f(h,null,n))});return e})};w.prototype.loadTextData=function(f,h){var e=this,n=f-1;null!==
|
|
e.ca[n].text?h(e.ca[n].text):n in e.Rf?e.Rf[n].push(h):(this.ym(f).then(function(){Object(da.b)("text","Load text "+f);e.Ia.dj(e.za,n,e.jt,e.zK).then(function(f){Object(da.b)("text","Text Received "+n);var h=new sa.c;h.Lx({m_Struct:f.struct,m_Str:f.str,m_Offsets:f.offsets,m_Quads:f.quads,m_Ready:!0});e.correctQuadsForPageRotation(n,h);e.ca[n].text=h;e.Rf[n].forEach(function(f){Object(da.b)("text","Callback "+n);f(h)});delete e.Rf[n]},function(f){Object(da.j)("Text generation failed: "+(f&&f.message?
|
|
f.message:f))})}),e.Rf[n]=[h])};w.prototype.textSearch=function(f,h,e,n){return this.Ia.ou(this.za,f,h,e,n)};w.prototype.extractXFDF=function(f){var h=this;return this.Ia.nea(this.za,f).then(function(e){e.pages=f||Object(ca.range)(1,h.ca.length+1);return e})};w.prototype.getFileData=function(f,h){var e=this;if(!1===f.includeAnnotations)f.xfdfString=ka.b;else if(""===f.xfdfString)return Promise.reject("Option xfdfString is an empty string for getFileData. Please skip this option if xfdf is not available.");
|
|
"finishedWithDocument"in f||(f.finishedWithDocument=!1);"printDocument"in f||(f.printDocument=!1);"flatten"in f||(f.flatten=!1);"apdocs"in f||(f.apdocs={});"xfdfString"in f&&f.xfdfString||(f.xfdfString="<xfdf></xfdf>");f.password?"encryptionAlgorithmType"in f||(f.encryptionAlgorithmType=ka.c.nN):f.password=void 0;var n=f.apdocs;Object.keys(n).forEach(function(f){n[f]=n[f].ba.za});f.docId=this.za;if("filePath"in f)return this.rd.then(function(){return e.Ia.wia(f)});var r=this.wJ();return this.rd.then(function(){return r}).then(function(n){return Object(x.b)(e,
|
|
void 0,void 0,function(){return Object(x.d)(this,function(e){switch(e.label){case 0:return n&&(f.watermarks=n),f.xfdfString&&h?[4,this.wQ(f,h)]:[3,2];case 1:e.ea(),e.label=2;case 2:return[2,this.Ia.mY(f)]}})})},function(){return Object(x.b)(e,void 0,void 0,function(){return Object(x.d)(this,function(e){switch(e.label){case 0:return f.xfdfString&&h?[4,this.wQ(f,h)]:[3,2];case 1:e.ea(),e.label=2;case 2:return[2,this.Ia.mY(f)]}})})}).then(function(h){return f.flatten?e.uT(h.fileData):h.fileData})};w.prototype.wQ=
|
|
function(f,h){var e;void 0===f&&(f={});return Object(x.b)(this,void 0,void 0,function(){var n,r,w,z,fa,y,aa,ja,da,ka,la,na,ca=this;return Object(x.d)(this,function(ha){switch(ha.label){case 0:n=h.ta();r=n.Pb();w=new DOMParser;z=new XMLSerializer;fa=w.parseFromString(f.xfdfString,"text/xml");y=null===(e=fa.querySelector("annots"))||void 0===e?void 0:e.children;if(!y)return[2];aa=[];ja=0;for(da=r.length;ja<da;ja++)ka=r[ja],la=h.hc(ka.PageNumber),(na=!ka.xd&&ka.Mh(la))&&aa.push(na);return[4,Promise.all(aa).then(function(h){function e(e){var n=
|
|
e.getAttribute("name");if(h[n]){var w=h[n],z=w.PQ;w=w.filename;var fa=r.find(function(f){return f.Id===n}),y=ca.Oi(fa.PageNumber,fa.X,fa.Y);if(y=(fa.IsModified||!fa.bb)&&fa.C6(y)){if(fa instanceof Annotations.gb&&!Object.keys(fa.getRichTextStyle()||{}).some(function(f){return Object.keys(f).some(function(f){return"color"!==f})}))return"continue";fa=e.getElementsByTagName("apref");for(var aa=0;aa<fa.length;++aa)e.removeChild(fa[aa]);e.appendChild(y)}f.apdocs[w]=z.ba.za}}h=h.reduce(function(f,h){var e;
|
|
return h?Object(x.a)(Object(x.a)({},f),(e={},e[h.id]=h,e)):f},{});for(var n=0,w=y;n<w.length;n++)e(w[n])})];case 1:return ha.ea(),f.xfdfString=z.serializeToString(fa),[2]}})})};w.prototype.getPageCount=function(){return this.ca.length};w.prototype.yU=function(h,e,n,r,w,z,fa){var y=Object(f.a)().setUpCanvas(e.page,e.MD,e.Dt,w,r,e.mc,z,fa).canvas,aa=w?Math.round(w.x):0,ja=w?Math.round(w.y):0;Object(da.h)("Drawing: "+h);var x=new Image;x.style.width=e.wW+"px";x.style.height=e.uW+"px";var ka=h;0!==ka.indexOf("file://")&&
|
|
(ka="file://"+ka);x.onload=function(){var f=y.getContext("2d");f.setTransform(1,0,0,1,0,0);f.drawImage(x,aa,ja);n||y.classList.add("progressive");e.MB(y);n&&e.LB(y);x=null;qa.utils.isJSWorker&&(Object(da.h)("[WebViewer|JSWorker]: Deleting file: "+ka),qa.jsworker.worker.deleteGeneratedImageRenderFile(ka))};x.src=ka};w.prototype.Tda=function(f){if("Alpha"===f.name)return!0;var h=["Cyan","Magenta","Yellow","Black"].includes(f.name),e=null;if(this.wH&&h){e=!1;for(var n=new Uint8Array(f.data),r=0;r<n.length;r++)if(0!==
|
|
n[r]/255){e=!0;break}}for(r=0;r<this.Nf.length;++r)if(this.Nf[r].name===f.name)return this.Nf[r].enabled;n=Array(3);this.MZ(f.color,n);f={color:f.color,name:f.name,rgb:n,enabled:!0};this.wH&&(f.isBaseColor=h,f.isBaseColorUsedInDocument=e);this.Nf.push(f);this.je({type:"colorSeparationAdded",data:f});return!0};w.prototype.Ta=function(f,h){f=f*h+128;return(f>>8)+f>>8};w.prototype.sc=function(f,h,e){f=f*h+128;f=((f>>8)+f>>8)+e;return 255>f?f:255};w.prototype.NZ=function(f,h,e){var n=h[0],r=h[1],w=h[2];
|
|
h=h[3];var z=255-n,fa=255-r,y=255-w,aa=255-h,ja=this.Ta(this.Ta(this.Ta(z,fa),y),aa),x=ja,da=ja,ka=ja;ja=this.Ta(this.Ta(this.Ta(z,fa),y),h);x=this.sc(f[0],ja,x);da=this.sc(f[1],ja,da);ka=this.sc(f[2],ja,ka);ja=this.Ta(this.Ta(this.Ta(z,fa),w),aa);x=this.sc(f[3],ja,x);da=this.sc(f[4],ja,da);ja=this.Ta(this.Ta(this.Ta(z,fa),w),h);x=this.sc(f[5],ja,x);da=this.sc(f[6],ja,da);ja=this.Ta(this.Ta(this.Ta(z,r),y),aa);x=this.sc(f[7],ja,x);ka=this.sc(f[8],ja,ka);ja=this.Ta(this.Ta(this.Ta(z,r),y),h);x=this.sc(f[9],
|
|
ja,x);ja=this.Ta(this.Ta(this.Ta(z,r),w),aa);x=this.sc(f[10],ja,x);da=this.sc(f[11],ja,da);ka=this.sc(f[12],ja,ka);ja=this.Ta(this.Ta(this.Ta(z,r),w),h);x=this.sc(f[13],ja,x);ja=this.Ta(this.Ta(this.Ta(n,fa),y),aa);da=this.sc(f[14],ja,da);ka=this.sc(f[15],ja,ka);ja=this.Ta(this.Ta(this.Ta(n,fa),y),h);da=this.sc(f[16],ja,da);ka=this.sc(f[17],ja,ka);ja=this.Ta(this.Ta(this.Ta(n,fa),w),aa);da=this.sc(f[18],ja,da);ka=this.sc(f[19],ja,ka);ja=this.Ta(this.Ta(this.Ta(n,fa),w),h);da=this.sc(f[20],ja,da);
|
|
ja=this.Ta(this.Ta(this.Ta(n,r),y),aa);x=this.sc(f[21],ja,x);da=this.sc(f[22],ja,da);ka=this.sc(f[23],ja,ka);ja=this.Ta(this.Ta(this.Ta(n,r),y),h);ka=this.sc(f[24],ja,ka);ja=this.Ta(this.Ta(this.Ta(n,r),w),aa);e[0]=this.sc(f[25],ja,x);e[1]=this.sc(f[26],ja,da);e[2]=this.sc(f[27],ja,ka)};w.prototype.wla=function(f,h,e,n,r){this.NZ(f,h,e);3*h[0]>n&&(e[0]=Math.min(255,Math.max(0,e[0]-f[28]+parseInt(r*n,10))))};w.prototype.MZ=function(f,h){var e=f[0],n=f[1],r=f[2],z=f[3],fa=e<<24|n<<16|r<<8|z,y=va[fa];
|
|
y?(h[0]=y[0],h[1]=y[1],h[2]=y[2]):(160<=e?(n=r+z+2*n,220<=e?(e=w.n6,r=.07):200>=e&&170<=e?e>2*n?(e=w.o6,r=.1767):(e=w.p6,r=.0767):(e=w.m6,r=.0534),this.wla(e,f,h,n,r)):(e=w.l6,this.NZ(e,f,h)),va[fa]=[h[0],h[1],h[2]])};w.prototype.L1=function(f,h,e){f[0]=Math.min(this.Ta(h[0],e)+f[0],255);f[1]=Math.min(this.Ta(h[1],e)+f[1],255);f[2]=Math.min(this.Ta(h[2],e)+f[2],255);f[3]=Math.min(this.Ta(h[3],e)+f[3],255)};w.prototype.ZN=function(f,h,e,n){var r=this;return new Promise(function(w){for(var z,fa=[],
|
|
y=[],aa=new Uint8ClampedArray(h*e*4),ja=0,x=0;x<f.length;++x)"Alpha"!==f[x].name?(y.push(f[x].color),fa.push(new Uint8Array(f[x].data)),++ja):z=new Uint8Array(f[x].data);r.wD(0,h,e,Math.ceil(1E5/h),[0,0,0,0],ja,Array(3),y,fa,aa,z,n,w)})};w.prototype.wD=function(f,h,e,n,r,w,z,fa,y,aa,ja,x,da){for(var ka=Math.min(f+n,e);f<ka;++f)for(var la=f*h,na=4*la,ca=0;ca<h;++ca){r[0]=0;r[1]=0;r[2]=0;for(var ha=r[3]=0;ha<w;++ha)this.L1(r,fa[ha],y[ha][la+ca]);this.MZ(r,z);ha=na+4*ca;aa[ha]=z[0];aa[ha+1]=z[1];aa[ha+
|
|
2]=z[2];aa[ha+3]=ja[la+ca]}f<e?(f=ea(this.wD.bind(this,f,h,e,n,r,w,z,fa,y,aa,ja,x,da)),x&&(this.pk[x.id]=f)):da(aa)};w.prototype.o5=function(f,h,e,n,r){function w(){if(x.length){var h=[x.pop(),da];return ja.ZN(h,e,n,r).then(function(f){return y(f)}).then(function(){return w()})}return f}function y(f){var h=document.createElement("canvas"),r=h.getContext("2d");h.width=e;h.height=n;return Object(fa.a)(r,f,e,n,0,0).then(function(){Object(z.o)()?(na.globalCompositeOperation="multiply",na.drawImage(h,
|
|
0,0)):r.bO(na,"multiply",{x:0,y:0})})}function aa(f){f=f.name;return"Cyan"===f||"Magenta"===f||"Yellow"===f||"Black"===f}var ja=this;h=h.slice();for(var x=[],da,ka=h.length-1;0<=ka;--ka){var la=h[ka];"Alpha"===la.name?da=la:this.Tda(la)?aa(la)||(h.splice(ka,1),x.push(la)):h.splice(ka,1)}f.width=e;f.height=n;var na=f.getContext("2d");return ja.ZN(h,e,n,r).then(function(f){return Object(fa.a)(na,f,e,n,0,0)}).then(function(){return w()})};w.prototype.cB=function(h,e,n,r,w,z,y,aa,ja){function x(){w||
|
|
ka.classList.add("progressive");r.page&&da.drawWatermark(ka,r.page.eJ());r.MB(ka,r.page.id);w&&r.LB(ka,{data:h,width:e,height:n});w&&delete da.pk[r.id]}var da=this,ka=r.gI?r.gI:Object(f.a)().setUpCanvas(r.page,r.MD,r.Dt,y,z,r.mc,aa,ja).canvas;z=y&&0<y.x?Math.round(y.x):0;y=y&&0<y.y?Math.round(y.y):0;aa=ka.getContext("2d");h.length?this.o5(ka,h,e,n,w?r:null).then(x):Object(fa.a)(aa,new Uint8ClampedArray(h),e,n,z,y,da.pk,r.id).then(x)};w.prototype.updateRasterizerOptions=function(f){this.Oq=Object(x.a)(Object(x.a)({},
|
|
this.Oq),f)};w.prototype.loadCanvasAsync=function(f){var h=this,e=f.pageNumber-1,n=f.getZoom(),w=f.getPageRotation(),z=f.renderRect,fa=f.canvasNum,aa=w===na.f.E_90||w===na.f.E_270,ja=f.multiplier||Object(la.k)(),ca=f.getPageTransform();if("undefined"===typeof z){var ha=(aa?h.ca[e].height:h.ca[e].width)*n;aa=(aa?h.ca[e].width:h.ca[e].height)*n}else ha=(aa?z.y2-z.y1:z.x2-z.x1)*n,aa=(aa?z.x2-z.x1:z.y2-z.y1)*n;ha=Math.round(ha);aa=Math.round(aa);var ra=Math.floor(ha*ja),pa=Math.floor(aa*ja);if(!ra||!pa)return n=
|
|
h.Ia.Gw(),this.pk[n]=r.a.setImmediate(function(){var h=document.createElement("canvas");h.width=ra||1;h.height=pa||1;f.drawComplete(h)}),n;ja=Object(x.a)({},this.Oq);h.Vq&&(ja.overprintMode=ka.d.t1);if(qa.utils.isJSWorker&&qa.jsworker.worker.useFilePathForImageRenders()){var ea=qa.jsworker.worker.generateImageRenderFilePath(e);ea=qa.jsworker.worker.getPlatformFormatFilePath(ea);Object(da.h)("imageRenderFilePath for page "+e+' is: "'+ea+'".');ja=h.Ia.kaa(h.za,e,ra,pa,w,h.jt,ja,z,ea)}else ja=h.Ia.aT(h.za,
|
|
e,ra,pa,w,h.jt,ja,z);var ma=ja.callbackId,sa={MB:f.drawProgressive,LB:function(h,n){f.drawComplete(h,e+1,n)},wW:ha,uW:aa,MD:n,Dt:w,page:h.ca[e],mc:z,id:ma},ba=1,oa;f.useProgress&&(oa=setInterval(function(){Object(da.b)("render","Progressive request for Page "+e);if(qa.utils.isJSWorker&&qa.jsworker.worker.useFilePathForImageRenders){var n=qa.jsworker.worker.generateNextImageRenderFilePath(ea,ba++);n=qa.jsworker.worker.getPlatformFormatFilePath(n);n=h.Ia.bT(ma,n)}else n=h.Ia.bT(ma);n.then(function(n){Object(da.b)("render",
|
|
"Progressive response for Page "+e);sa.page=h.ca[e];"undefined"!==typeof n.filePath?h.yU(n.filePath,sa,!1,fa,ca,f.pageCanvas,f.multiplier):h.cB(n.pageBuf,n.pageWidth,n.pageHeight,sa,!1,fa,ca,f.pageCanvas,f.multiplier)},function(f){"type"in f&&"Queued"===f.type||(Object(da.b)("render","Get canvas progressivegeneration failed: "+f.message+" CID "+ma),clearInterval(oa))})},Object(y.b)()));ja.promise.then(function(n){clearInterval(oa);sa.page=h.ca[e];"undefined"!==typeof n.filePath?h.yU(n.filePath,sa,
|
|
!0,fa,ca,f.pageCanvas,f.multiplier):h.cB(n.pageBuf,n.pageWidth,n.pageHeight,sa,!0,fa,ca,f.pageCanvas,f.multiplier)},function(h){"Cancelled"!==h.type&&Object(da.b)("render","Canvas generation failed: "+h.message);clearInterval(oa);f.onError(h)});return ma};w.prototype.Dn=function(){};w.prototype.unloadResources=function(){this.za&&(this.Ia.qR(this.za),this.Ia.Xv(this.za),this.za=null);var f=this.Tb;f&&f.abort&&f.abort()};w.prototype.Rh=function(f,h,e){var n=this;return this.rd.then(function(){return n.Ia.Rh(n.za,
|
|
f,h||612,e||792)})};w.prototype.Hf=function(f,h,e,n){this.Rj=!0;var r=this,w=f.getPageCount();f instanceof y.a&&(f=f.ba.za);h||(h=Array.from(Array(w),function(f,h){return h+1}));e||(e=r.getPageCount()+1);if(e)for(w=e;w<=this.ca.length;w++)this.Qj.gda(w);return this.rd.then(function(){return r.Ia.Hf(r.za,f,h,e,!0,n)})};w.prototype.Vh=function(f,h){this.Rj=!0;var e=this;return this.rd.then(function(){return e.Ia.Vh(e.za,f,h)})};w.prototype.yg=function(f,h){this.Rj=!0;var e=this;f.sort(fa.d);return this.rd.then(function(){return e.Ia.yg(e.za,
|
|
f,h)})};w.prototype.Dl=function(){return this.Ia.Dl(this.za,this.jt)};w.prototype.oh=function(f,h){this.Rj=!0;var e=this;f.sort(fa.d);return this.rd.then(function(){return e.Ia.oh(e.za,f,h)})};w.prototype.Is=function(f,h,e){return this.Ia.Is(this.za,f,h,e)};w.prototype.Ie=function(f,h){if(""===h)return Promise.reject("Parameter xfdfString is an empty string for extractPages. Please skip this parameter if xfdf is not available.");var e=this,n=e.wJ(f);return this.rd.then(function(){return n}).then(function(n){return e.Ia.Ie(e.za,
|
|
f,h,n)},function(){return e.Ia.Ie(e.za,f,h)}).then(function(f){return f.fileData})};w.prototype.uD=function(f,h){var e=this;this.Rj=!0;return new Promise(function(n,r){return Object(x.b)(e,void 0,void 0,function(){var e,w,z;return Object(x.d)(this,function(fa){switch(fa.label){case 0:return fa.Gg.push([0,2,,3]),[4,Object(ha.c)(f,{useDownloader:!1,loadAsPDF:!0})];case 1:e=fa.ea();w=Array.from({length:e.getPageCount()},function(f,h){return h+1});if(null===h||void 0===h)h=this.getPageCount()+1;this.Hf(e,
|
|
w,h).then(function(){e.Md();n({filename:e.filename,pages:w})}).catch(function(f){e.Md();r(f)});return[3,3];case 2:return z=fa.ea(),r(z),[3,3];case 3:return[2]}})})})};w.prototype.Fh=function(f,h,e,n,r){this.Rj=!0;var w=this;f.sort(fa.d);return this.rd.then(function(){return w.Ia.Fh(w.za,f,h,e,n,r)})};w.prototype.Nh=function(f){return this.ca[f].id};w.prototype.hk=function(){var f=Object.keys(this.pm);0===f.length&&f.length!==this.ca.length&&(f=this.ca.map(function(f,h){f.id||Object(da.j)("Page id at index "+
|
|
h+" is undefined.");return f.id}));return f};w.prototype.Gf=function(){var f=this;if(!Object(pa.k)())throw Error("getPDFDoc called without PDFNet being loaded. Are you running a lean version of PDFNetJS?");return f.Ia.Gf(f.za).then(function(h){h=new qa.PDFNet.PDFDoc(h);h.documentCompletePromise=f.rd;return h})};w.prototype.getLayersArray=function(){if(this.jt)return Promise.resolve(this.jt);var f=this;return this.rd.then(function(){if(f.za)return f.Ia.Un(f.za)})};w.prototype.Bo=function(f){this.jt=
|
|
f;this.ca.forEach(function(f){f.text=null})};w.prototype.AE=function(f){this.Oq.overprintMode=f};w.prototype.FE=function(f){f=f.reduce(function(f,h){return f|h},0);this.zK.processingFlags=f};w.prototype.ym=function(f){if(0>=f)throw Error("1st input argument '"+f+"' in function 'requirePage' is invalid. Expected number between 1 and number of pages in the document.");return this.pq?this.Ia.ym(this.za,f):Promise.resolve()};w.prototype.loadThumbnailAsync=function(f,h,e){var n="page"===e;e=this.ca[f-
|
|
1];var r=Object(la.k)();n=n?2E3:150*r;var w=e.width>e.height?n/e.width:n/e.height;w/=r;f=Object(fa.b)({pageNumber:f,getZoom:function(){return w},getPageRotation:function(){return na.f.E_0},drawComplete:function(f){h(f)},drawProgressive:function(){},useProgress:!1,pageCanvas:!0});var z=Object(fa.c)(this.mb(f.pageNumber),f);f.getZoom=function(){return z};return this.loadCanvasAsync(f)};w.prototype.Eh=function(f){f in this.pk?(r.a.clearImmediate(this.pk[f]),delete this.pk[f]):this.Ia.Fv(f)};w.prototype.cancelLoadCanvas=
|
|
function(f){this.Eh(f)};w.prototype.qk=function(){return!1};w.prototype.Bm=function(f){this.pq&&this.za&&this.Ia.Bm(this.za,f)};w.prototype.Al=function(f,h){void 0===h&&(h={});this.Vq=f;this.wH=h.checkIfBaseColorsUsed||!1};w.prototype.jC=function(){return this.Nf};w.prototype.PB=function(f,h){for(var e=0;e<this.Nf.length;++e)if(this.Nf[e].name===f){this.Nf[e].enabled=h;break}};w.prototype.Go=function(){return!this.pq};w.prototype.cC=function(f){return f};w.prototype.getMetadata=function(){return this.Ia.getMetadata(this.za)};
|
|
w.prototype.getNewAppearanceDocument=function(f,h){h=this.cC(h);var e=this.Ia.qw(this.za,f).then(function(f){return Object(ja.a)(f.data)});this.Qj.mH(h,e,f);return e};w.prototype.DU=function(f){this.ca=f;return!0};w.n6=new Uint8Array([30,33,39,238,233,24,29,231,141,33,233,33,41,31,198,246,20,45,181,81,22,35,46,140,15,46,51,56,48]);w.o6=new Uint8Array([29,33,38,245,240,24,28,237,29,33,238,34,41,31,193,244,0,0,0,89,26,47,0,149,13,62,59,62,67]);w.p6=new Uint8Array([29,33,38,245,240,24,28,237,142,33,
|
|
238,34,41,31,193,244,24,49,175,89,26,47,54,149,13,62,59,62,38]);w.m6=new Uint8Array([31,34,39,249,242,25,29,237,142,34,238,34,41,32,189,243,26,51,172,89,28,46,56,150,13,59,60,63,31]);w.l6=new Uint8Array([35,31,32,255,242,28,26,236,140,36,237,28,36,34,173,239,15,36,166,80,19,46,49,146,2,54,54,57]);return w}(w.a);ba.a=w}).call(this,e(226).setImmediate)},function(ia,ba,e){var ea=e(1);ia=e(62);var x=e(0);e.n(x);var ha=e(343),ca=e(3),da=e(16),aa=e(176),w=e(17),y={offset:0,wc:-1,mx:0,bj:0,start:0,stop:0,
|
|
oq:0,Ob:0};e=function(e){function h(f,h,n){f=e.call(this,f,h,n)||this;f.yi=null;f.sn=null;f.Ai=null;f.zi=null;f.LP=Object(w.g)();f.state=y;f.LJ=!1;return f}Object(ea.c)(h,e);h.prototype.Oba=function(f){f=f.index;var h=this.vc.rows[f].wa()+2*this.vc.ji;return Array.isArray(h)?h[f]:h};h.prototype.g6=function(f){var h=this.Vj();this.iQ(h);this.sn=f.sn;this.Ai=f.Ai;this.zi=f.zi};h.prototype.iQ=function(f){this.yi=new ha.a({cea:f.rows.length,dea:this.Oba.bind(this),a$:f.wa()/(f.rows.length-1)})};h.prototype.wh=
|
|
function(){var f=this;if(this.Dd.createPageSections)return this.vm(!1),this.Dd.createPageSections(),Object(x.range)(0,this.aa.Wb());var h=this.Vj();this.LJ||(this.Qx={mode:this.mode,Ob:this.Ob,bd:this.bd,lf:this.lf,Kf:this.Kf});h.wa()>this.LP?(this.mode="Single",this.bd=this.Ob=this.aa.jg()-1,this.lf=this.Ob+1,this.Kf=1,h=this.Vj(),this.LJ=!0):h.wa()<this.LP&&(this.mode=this.Qx.mode,this.Ob=this.Qx.Ob,this.bd=this.Qx.bd,this.lf=this.Qx.lf,this.Kf=this.Qx.Kf,h=this.Vj(),this.LJ=!1);this.vc=h;this.yi?
|
|
(this.yi.hia(),this.yi.Eja(h.rows.length),this.yi.Ula(h.wa()/(h.rows.length-1)),this.qy({bj:h.wa(),mx:h.Ba(),Ob:this.Ob},function(){f.Pf()})):(this.sn=this.aa.Xa(),this.iQ(h),this.Ai=this.Wg(),this.zi=this.faa(),this.Ai.appendChild(this.zi),this.sn.appendChild(this.Ai),this.qy({bj:h.wa(),mx:h.Ba(),offset:0,Ob:this.Ob}));this.sn.contains(this.Ai)||this.sn.appendChild(this.Ai);this.aa.MA(this.vc.wa());return Object(x.range)(1,this.aa.Wb()+1)};h.prototype.qy=function(f,h){if(this.yi){var e=Object.assign({},
|
|
this.state),n=Object.assign({},this.state,f),r=this.aa.ia.oq;this.state=Object.assign({},this.state,f,{oq:r});f=this.aa.jb().scrollTop;if(e.bj&&n.bj&&e.bj!==n.bj){var w=e.bj;f+=(n.bj-w)/w*f}w=this.mP();w=this.yi.eU({xR:w.height,offset:f,sW:20});f=w.start;w=w.stop;var y=!1;if(e.start!==f||e.stop!==w||e.mx!==n.mx||e.bj!==n.bj||e.oq!==r||e.Ob!==n.Ob)y=!0,this.state=Object.assign({},this.state,{start:f,stop:w});y&&this.render(f,w);"function"===typeof h&&h()}};h.prototype.render=function(f,h){var e=this.state,
|
|
n=e.bj;this.g4(e.mx);e=document.createDocumentFragment();for(var r=f;r<h;r++)this.Vha(r,e);this.zi.innerHTML="";this.zi.appendChild(e);this.Ai.style.height=n+"px";this.zi.style.top=this.TT(f)+"px"};h.prototype.Vha=function(f,h){f=this.vc.rows[f];for(var e=this.vc.ji,n=Math.floor(f.wa()),r=this.vc.hm,w=0;w<r;w++){var y=f.Qb()[w],aa=Math.floor(this.vc.qaa(w)),x=y.Hb,na=this.aa.Xa().querySelector("#pageSection"+x)||document.createElement("div");na.id="pageSection"+x;na.className="pageSection";Object(da.b)(na,
|
|
{"float":"left",position:"relative",width:aa+"px",height:n+"px",margin:e+"px"});aa=this.aa.Xa().querySelector("#pageContainer"+x)||document.createElement("div");aa.id="pageContainer"+x;aa.className="pageContainer";var ca={};2===r?0===w?ca["margin-left"]="auto":1===w&&(ca["margin-right"]="auto"):(ca["margin-left"]="auto",ca["margin-right"]="auto");var ha="string"===typeof x&&0===x.indexOf("b");x=Math.floor(y.Ba());var ea=Math.floor(y.wa());ha&&(x=ea=0);ha=Math.floor(n-ea)/2;var qa={cW:{width:parseFloat(aa.style.width),
|
|
height:parseFloat(aa.style.height)},TV:{width:parseFloat(Math.floor(y.Ba())+"px"),height:parseFloat(Math.floor(y.wa())+"px")}};ca.width=x+"px";ca.height=ea+"px";ca.top=ha+"px";Object(da.b)(aa,ca);this.Ola(aa,{kfa:x,jfa:ea,page:y,ifa:qa});na.appendChild(aa);h.appendChild(na)}};h.prototype.Ola=function(f,h){var e=h.kfa,n=h.jfa,r=h.page;h=h.ifa;var w=f.getAttribute("data-view-rotation")||0,y=f.getAttribute("data-page-rotation")||0;"string"===typeof w&&(w=parseInt(w,10));"string"===typeof y&&(y=parseInt(y,
|
|
10));var x=this.aa.Ua.Ig,la=r.me(),na=r.Hj?0:this.aa.getDocument().ad(r.Hb);f.setAttribute("data-view-rotation",la);f.setAttribute("data-page-rotation",na);var ha=f.children;if(ha.length)for(var ea=ha.length-1;0<=ea;ea--){var ba=ha[ea];if(-1<ba.id.indexOf("thumb")&&0>ba.id.indexOf("hrthumb"))0!==na?f.removeChild(ba):Object(aa.b)(ba,r);else if(-1<ba.id.indexOf("pageWidgetContainer")){var qa="top left",va=this.aa.KT(r.Hb);Object(da.b)(ba,{transform:va,"transform-origin":qa,"ms-transform":va,"ms-transform-origin":qa,
|
|
"-moz-transform":va,"-moz-transform-origin":qa,"-webkit-transform-origin":qa,"-webkit-transform":va,"-o-transform":va,"-o-transform-origin":qa})}else if(-1<ba.className.indexOf("hacc canvas")||-1<ba.className.indexOf("auxiliary")||-1<ba.id.indexOf("hrthumb"))if(-1<ba.id.indexOf("hrthumb")&&!x)f.removeChild(ba);else if(la===w&&na===y)Object(aa.a)(f,r,h,ba);else{var oa=parseFloat(ba.style.width),ua=parseFloat(ba.style.height),Ca=e,ia=n;qa=[];va=parseInt(ba.getAttribute("data-page-rotation"),10);va=
|
|
la-va+na/90;var Ea=Math.abs(va),Aa="rotate("+90*va+"deg)",Fa="translateY(-"+ua+"px)",Ga="translateX(-"+oa+"px)";Ea===ca.f.e_90||Ea===ca.f.e_270?(ia/=oa,oa=Ca/ua):(ia/=ua,oa=Ca/oa);oa="scale("+ia+", "+oa+")";qa.push(Aa);qa.push(oa);if(va===-ca.f.e_90||va===ca.f.e_270)qa.push(Ga);else if(va===ca.f.e_90||va===-ca.f.e_270)qa.push(Fa);else if(va===ca.f.e_180||va===-ca.f.e_180)qa.push(Ga),qa.push(Fa);va=qa.join(" ");qa="top left";Object(da.b)(ba,{transform:va,"transform-origin":qa,"ms-transform":va,"ms-transform-origin":qa,
|
|
"-moz-transform":va,"-moz-transform-origin":qa,"-webkit-transform-origin":qa,"-webkit-transform":va,"-o-transform":va,"-o-transform-origin":qa})}else f.removeChild(ba)}};h.prototype.TT=function(f){return this.yi.Mw(f).offset};h.prototype.IC=function(f){this.state.offset===f.offset&&this.state.wc===f.wc||this.qy({offset:f.offset,wc:f.wc,Ob:this.Ob})};h.prototype.vm=function(f){f||(this.yi=null,this.state=y);e.prototype.vm.call(this,f)};h.prototype.Wg=function(){var f=document.createElement("div");
|
|
f.id="virtualListContainer";f.setAttribute("style","position: relative; overflow: hidden; width: 100%; will-change: transform;");return f};h.prototype.faa=function(){var f=document.createElement("div");f.id="virtualListBody";f.setAttribute("style","position: absolute; top: 0; left: 0; height:100%; width: 100%; overflow: visible;");return f};h.prototype.ua=function(f,h){if(!this.vc)return 0;f=this.vc.xC(f-this.vc.bd);this.$w()||(f=this.vc.xC(0));if(this.aa.dD()){var e=this.vc.hm;h=f.Qb()[e-(h+1)]}else h=
|
|
f.Qb()[h];if(!h)return 0;h=h.Hb;return Object(x.isNumber)(h)?h:0};h.prototype.mP=function(){var f={height:0};try{f=this.sn.parentNode.getBoundingClientRect()}catch(r){}return f};h.prototype.ve=function(f,h){if(this.Dd.getVisiblePages)return this.Dd.getVisiblePages(f,h);var e=this.aa.jb();if(!e||!this.yi)return[];f=this.getVisibleRegionRect(f,h);h=this.getVisibleRegionRect(0,0);e=e.scrollTop;var n=this.mP(),r=this.yi.eU({xR:n.height,offset:e,sW:1*this.Mc});n=r.stop;e=[];for(var w=r.start;w<n;w++)for(var y=
|
|
0;y<this.Mc;y++)if(r=this.ua(w,y),!(1>r)){var aa=this.eo(r,f,h);null!==aa&&e.push({wc:r,Ox:aa.UW,rect:aa.mc})}e.sort(function(f,h){return h.Ox-f.Ox});f=[];h=0;for(n=e.length;h<n;h++)f.push(e[h].wc);return f};h.prototype.LX=function(f){var h=this.aa.Xa().querySelector("#pageWidgetContainerundefined"),e=this.aa.Xa().querySelector("#thumbundefined");h&&f.removeChild(h);e&&f.removeChild(e)};h.prototype.Xa=function(){return this.zi};h.prototype.Pf=function(){var f=this.aa.Xa(),h=f.offsetLeft;if(this.vc){var e=
|
|
this.vc.ji,n=this.vc.Ji,w=f.offsetTop+e,y=this.aa.ia;this.vc.rows.forEach(function(f){var r=h+e,z=f.wa();f.Qb().forEach(function(f,h){var fa=n[h];if(!f.Hj){var aa=f.Hb;aa="string"===typeof aa?parseInt(aa,10):aa;--aa;2===n.length?0===h?y.BE(aa,{Lg:r+fa-f.Ba(),Mg:w+(z-f.wa())/2}):1===h&&y.BE(aa,{Lg:r,Mg:w+(z-f.wa())/2}):y.BE(aa,{Lg:r+(fa-f.Ba())/2,Mg:w+(z-f.wa())/2})}r+=fa+2*e});w+=z+2*e})}};h.prototype.g4=function(f){this.sn.style.width=Math.ceil(f)+"px"};return h}(ia.a);ba.a=e},function(ia,ba,e){function ea(f,
|
|
h){return x("image/"+("jpg"===f?"jpeg":f),h)}function x(f,h){if(Object(r.f)()){"string"===typeof h&&(h=Object(w.b)(h));var e=void 0;try{e=new Blob([h],{type:f})}catch(sa){window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.Ima||window.Hma,window.BlobBuilder&&(e=new window.BlobBuilder,e.append(h),e=e.getBlob(f))}if(e)return URL.createObjectURL(e)}else return"data:"+f+";base64,"+btoa(h)}e.d(ba,"d",function(){return x});e.d(ba,"c",function(){return ea});e.d(ba,"a",function(){return ma});
|
|
var ha=e(0);e.n(ha);var ca=e(2),da=e(216),aa=e(347),w=e(73),y=e(16),n=e(64),h=e(94),f=e(40),r=e(34),z=e(74),fa=e(177),ka=window,ja=function(){return function(f,h){this.Hb=f;this.Jb={};this.Ec=null;this.pb=h}}(),pa=function(){function f(f,h){this.Hb=f;this.QW=h;this.Vg={};this.wk={};this.cg=!1;for(f=0;f<h.length;f++)this.wk[h[f]]=!0}f.prototype.nda=function(){return 0===Object.keys(this.wk).length};return f}(),ma=function(){function f(f){this.name=f;this.db=null;this.PR="1";this.JB=this.cg=!1}f.prototype.open=
|
|
function(f,h){var e=this,n=window.indexedDB.open(e.name);if(Object(ha.isUndefined)(n))h("User declined to increase space");else{n.onsuccess=function(){e.db=n.result;if(e.db.Jka&&e.db.version!==e.PR){var f=e.db.Jka(e.PR);f.onsuccess=function(){e.db.objectStoreNames.contains(e.name)&&e.db.deleteObjectStore(e.name);e.db.createObjectStore(e.name,{keyPath:"partName"});f.result.oncomplete=r}}else r()};n.onupgradeneeded=function(f){e.db=f.target.result;e.db.objectStoreNames.contains(e.name)&&e.db.deleteObjectStore(e.name);
|
|
e.db.createObjectStore(e.name,{keyPath:"partName"})};n.onerror=function(){h("Error opening database for offline mode")};var r=function(){e.get("NumParts",function(n,r){if(n)e.JB=!1,f();else{var w=e.db.transaction([e.name]).objectStore(e.name).count();w.onsuccess=function(){e.JB=w.result===r;f()};w.onerror=function(){h("Error opening database for offline mode")}}})}}};f.prototype.store=function(f,h,e,n){var r=this.db.transaction([this.name],"readwrite");r.oncomplete=function(){n&&n()};r.onerror=function(){n&&
|
|
n();throw Error("Error adding "+f+" to the offline database");};r.objectStore(this.name).put({partName:f,partData:h,compressed:e})};f.prototype.ila=function(f,h,e,n,r,w){function z(w){f.Oh(w,function(f){var e=h.indexOf(f.cb);-1<e&&delete h[e];fa()||y.store(f.cb,f.data,f.gd,function(){fa()||(aa++,r(aa/ja),aa===ja&&(y.JB=!0,n()))})},!0,e)}function fa(){y.cg&&!x&&(x=!0,w(h),n());return x}var y=this;y.cg=!1;n=n||function(){};r=r||function(){};w=w||function(){};var aa=0,ja=h.length,x=!1;y.store("NumParts",
|
|
ja+1,!1,function(){for(var f=0;f<ja;f++)z(h[f])})};f.prototype.G5=function(){this.cg=!0};f.prototype.get=function(f,h){var e=this.db.transaction([this.name]).objectStore(this.name).get(f);e.onsuccess=function(){e.result?h(!1,e.result.partData,e.result.compressed):h("Part "+f+" not found in the offline database")};e.onerror=function(){h("Error getting "+f+" from offline database")}};f.prototype.jo=function(){return this.JB};return f}();ia=function(){function e(f,e,n,r,w){this.zg=f;this.BD=!1;this.cache=
|
|
new fa.a(ka.ez,f.yo());f.decrypt&&f.yo()&&(this.Mp=new fa.a(ka.ez,f.yo()));this.ca=e;this.za=r;this.nm={};this.Jy={};this.XA={};this.vB={};this.$B=[];this.Nn={};this.xg=n;this.uo={};this.Kq={};this.Yw=w;this.ED=Object(ha.bind)(this.ED,this);this.zg.addEventListener(h.a.Events.PART_READY,this.ED)}e.prototype.Oh=function(f,h,e,n){function r(f){f=Object.assign({},f);y.Mp&&n&&(f.data=y.Mp.getItem(f.cb).data);h(f)}var w=this.cache.getItem(f);if(!n&&null!==w){var z=w.gd,fa=void 0;w.gd&&!e?(fa=this.Yw(w.data),
|
|
z=!1):fa=w.data;h({cb:f,data:fa,Ki:!0,cg:!1,error:null,gd:z});return h}if(this.Mp&&n&&(w=this.Mp.getItem(f)))return h({cb:f,data:w.data,Ki:!0,cg:!1,error:null,gd:w.gd}),h;var y=this;this.Kq[f]||(this.Kq[f]=[]);this.Kq[f].push(r);this.XA[f]=!0;this.vB[f]=!e;this.zg.request([f],n);return r};e.prototype.ED=function(f){if(f.error){Object(ca.i)("Error reading part "+f.cb+": "+f.error);var h=this.Kq[f.cb];h&&h.forEach(function(h){h({cb:f.cb,error:f.error})});this.Kq[f.cb]=[]}else{var e=this;h=function(h){var n=
|
|
f.cb.match(/\.([a-zA-Z]+)$/)[1].toLowerCase();"jpg"!==n&&"png"!==n&&(h=Object(w.a)(h));f.aW||(n={key:f.cb,data:h,gd:f.gd},e.cache.setItem(n),e.Mp&&(n.data=f.data,e.Mp.setItem(n)));if(e.XA[f.cb]){var r=f.gd;f.gd&&e.vB[f.cb]&&(h=e.Yw(h),r=!1);delete e.XA[f.cb];delete e.vB[f.cb];if(n=e.Kq[f.cb])n.forEach(function(e){e({cb:f.cb,data:h,Ki:!1,cg:!1,error:null,gd:r})}),e.Kq[f.cb]=[]}};this.zg.decrypt&&!f.aW?this.zg.NR?h(this.zg.decrypt(f.data,this.zg.Vv,f.cb)):this.zg.decrypt(f.data,this.zg.Vv,f.cb,h):h(f.data)}};
|
|
e.prototype.$T=function(f){return this.sK?"Thumbs/"+(f+1)+".jpg":"Thumbs/"+(f+1)+".png"};e.prototype.jq=function(f,h,e){var n=this,r=!1,w=this.Oh(this.$T(f),function(f){r=f.Ki;n.TX(h);e(f)});r||(this.Jy[h]={Pna:w,wc:f})};e.prototype.ET=function(f,h){var e=this,n=this.ca[f].ay[0];if(f in e.Nn)h(e.Nn[f].clone());else return e.Oh(n,function(n){if(n.error)return Object(ca.g)("Failed to load part for page "+f+": "+n.error);e.M$(n.data,function(n){if(ka.lr){if(e.$B.length>=ka.lr){var r=e.$B.shift();delete e.Nn[r]}e.$B.push(f);
|
|
e.Nn[f]=n}h(n.clone())})},!0)};e.prototype.gJ=function(h,e,n){var r=this;this.nm[h]=this.nm[h]||{Kt:{}};var w=0<Object.keys(this.nm[h].Kt).length;this.nm[h].Kt[e]=null;if(w)Object(ca.j)("Duplicate request for page "+h),w=function(f,h){var e=Object.assign({},h);e.Ec=h.Ec.clone();e.Jb=Object(ha.cloneDeep)(e.Jb);n(f,e)},this.nm[h].Kt[e]=w,this.uo[h]||(this.uo[h]=[]),this.uo[h].push(w);else{var z=r.ca[h],fa=z.ay[2],aa=z.ay[1],x=z.ay[0];var da=this.BD?new pa(h,[x,aa,fa]):new pa(h,[x,fa]);this.nm[h].request=
|
|
da;var ka=da.Vg,la=!1,na=new ja(h,r),ra=function(){if(da.nda()){if(null===na.Ec)throw Error("Functions have not been generated yet");if(!da.cg&&!la){delete r.nm[h];var f=r.uo[h];f&&f.forEach(function(f){f(!1,na)});n(!1,na);la=!0;r.uo[h]=[]}}};e=function(f){if(f.error)return Object(ca.g)("Failed to load part for page "+h+": "+f.error);delete da.wk[aa];z.annot&&0!==z.wn.length||(z.wn=r.nfa(f.data).map(function(f){f.PageNumber=h+1;return f}));ra()};ka[fa]=r.Oh(fa,function(e){if(e.error)return Object(ca.g)("Failed to load part for page "+
|
|
h+": "+e.error);e=r.Ufa(e.cb,e.data);delete da.wk[fa];Object(ha.each)(e,function(f){da.wk[f.slice(1)]=!0});Object(ha.each)(e,function(e){e=e.slice(1);var n=-1!==e.indexOf(".odttf")||-1!==e.indexOf(".otf"),w=-1!==e.indexOf(".png")||-1!==e.indexOf(".jpg");Object(f.a)("flattenedResources")&&n?(delete da.wk[e],na.Jb[e]=r.vl(e)):n&&!r.xg.$C(r.vl(e).name)?(da.QW.push(e),ka[e]=r.Oh(e,function(f){if(f.error)return Object(ca.g)("Failed to load part for page "+h+": "+f.error);delete da.wk[e];na.Jb[e]=r.vl(f.cb,
|
|
f.data);ra()})):w&&Object(f.a)("flattenedResources")?(delete da.wk[e],setTimeout(function(){r.Oh(e,function(f){var e=r.vl(f.cb,f.data);f=new Image;f.src=e.data;Object(y.b)(f,{position:"absolute",zIndex:"8",height:"100%",width:"100%"});e=document.getElementById("pageContainer"+(h+1));e.insertBefore(f,e.firstChild)})},0)):(delete da.wk[e],na.Jb[e]=r.vl(e),ra())});ra()});this.BD&&(ka[aa]=r.Oh(aa,e));ka[x]=this.ET(h,function(f){na.Ec=f;delete da.wk[x];ra()})}};e.prototype.Md=function(){var f=this;this.zg.removeEventListener(h.a.Events.PART_READY,
|
|
null,{df:!0});Object.keys(this.Nn).forEach(function(h){f.Nn[h].cancel&&f.Nn[h].cancel()})};e.prototype.M$=function(f,h){if(ka.lr){var e=new aa.a(this.za);e.generate(f,function(){});h(e)}else h(new da.a(this.za,f))};e.prototype.rH=function(f,h){var e=this.nm[f];if(e){var n=e.Kt[h];n&&(n=this.uo[f].indexOf(n),-1<n&&this.uo[f].splice(n,1));delete e.Kt[h];0===Object.keys(e.Kt).length&&(this.zg.sH(e.request.QW),e.cg=!0,this.uo[f]=[],delete this.nm[f])}};e.prototype.tH=function(f){var h=this.Jy[f];h&&(this.zg.sH([this.$T(h.wc)]),
|
|
this.TX(f))};e.prototype.TX=function(f){this.Jy[f]&&delete this.Jy[f]};e.prototype.vl=function(f,h){var e=f,r=f.match(/\.([a-zA-Z]+)$/)[1].toLowerCase();switch(r){case "png":case "jpg":f="i"+this.za+"-"+f.match(/Images\/(\d+)/)[1];if(h)return h=ea(r,h),{name:f,type:r,data:h,cb:e};break;case "odttf":r=void 0;h&&(r=this.q7(f,h));f=n.a.VI(this.za,parseInt(f.substr(34,8),16));if(h){var w=new n.a.FontFace(f,r,"opentype");this.xg.iK(f)||w.insert()}r="font";break;case "otf":f=f.substr(0,f.length-4);f=n.a.VI(this.za,
|
|
parseInt(f.substr(6),10));h&&(w=new n.a.FontFace(f,null,"opentype",h),this.xg.iK(f)||w.insert());r="font";break;default:w=h}return{name:f,type:r,data:w,cb:e}};e.prototype.Ufa=function(f,h){var e=[];h=new z.a(h);for(h.Ka();h.advance();){var n=h.fa("Target");null!==n?e.push(n):Object(ca.j)("Corrupt rels part: %s",f)}0<e.length&&Object(ha.last)(e).match(/Thumbs/)&&e.pop();return e};e.prototype.nfa=function(f){var h=[];f=new z.a(f);for(f.Ka();f.advance();){for(var e=f.Oa(),n=f.fa("BBox").split(","),r=
|
|
0;4>r;++r)n[r]=parseFloat(n[r]);"Hyperlink"===e?h.push(new ka.Annotations.Pd({actions:{U:[{name:"URI",uri:f.fa("Target")}]},rect:n})):"Link"===e&&h.push(new ka.Annotations.Pd({actions:{U:[{name:"GoTo",dest:{page:f.fa("ID"),fit:"XYZ",top:f.fa("Vpos"),left:f.fa("Hpos")}}]},rect:n}))}return h};e.prototype.q7=function(f,h){f=f.split("/")[1].split(".")[0];var e=f.split("-");f=[];for(var n=16,r=0;r<e.length;++r)for(var w=e[r],z=0;z<w.length;z+=2)f[--n]=parseInt(w.slice(z,z+2),16);for(e=0;16>e;++e)n=f[e],
|
|
f[e]=String.fromCharCode(h.charCodeAt(e)^n),f[e+16]=String.fromCharCode(h.charCodeAt(e+16)^n);return h=f.join("")+h.slice(32)};return e}();ba.b=ia},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(38),ha=e(10),ca=e(62),da=e(123);ia=function(){function e(e){this.kx=!1;if(!e)throw Error("DisplayModeManager requires DocumentViewer to initialize");this.aa=e;this.ya=new da.a(this.aa,x.a.Tk)}e.prototype.Vc=function(){return this.ya};e.prototype.Y7=function(){this.ya=new ca.a(this.aa,x.a.Tk);this.kx=!0};e.prototype.Q9=
|
|
function(){this.ya=new da.a(this.aa,x.a.Tk);this.kx=!1};e.prototype.hD=function(){return this.ya instanceof da.a};e.prototype.EY=function(e){this.hD()?this.ya.vm(!0):this.ya.vm();if(null===this.aa.ba)!this.kx&&this.hD()?this.ya=e:this.kx&&(this.ya=new ca.a(this.aa,x.a.Tk)),this.aa.trigger(ha.e.DISPLAY_MODE_UPDATED);else{var w=void 0;this.hD()&&(w=this.ya);this.gQ(e);this.aa.ia.Em(this.aa.Ih());this.aa.trigger(ha.e.ZOOM_UPDATED,this.aa.bc());this.aa.nj();this.ya instanceof da.a&&this.ya.g6(w);this.ya.$w()&&
|
|
(this.wh(),this.ya.Pf());this.aa.uf(this.aa.Xd)}};e.prototype.gQ=function(e){this.ya=e;this.eO();this.aa.ia.AH();this.aa.trigger(ha.e.DISPLAY_MODE_UPDATED)};e.prototype.eO=function(){var e=this.ya.mode;if(!Object(ea.isNull)(e)){var y=this.aa.Xd-1;e===x.a.gO?(this.ya.Mc=1,this.ya.Kf=Math.ceil(this.aa.ba.ne/this.ya.Mc),this.ya.Ob=Math.ceil(y/this.ya.Mc),this.ya.bd=this.ya.Ob,this.ya.lf=this.ya.Ob+1):e===x.a.Tk?(this.ya.Mc=1,this.ya.Kf=Math.ceil(this.aa.ba.ne/this.ya.Mc),this.ya.Ob=-1,this.ya.bd=0,this.ya.lf=
|
|
this.ya.Kf):e===x.a.vF?(this.ya.Mc=2,this.ya.Ob=Math.floor(y/this.ya.Mc),this.ya.Kf=Math.ceil(this.aa.ba.ne/this.ya.Mc),this.ya.bd=this.ya.Ob,this.ya.lf=this.ya.Ob+1):e===x.a.iz?(this.ya.Mc=2,this.ya.Ob=-1,this.ya.Kf=Math.ceil(this.aa.ba.ne/this.ya.Mc),this.ya.bd=0,this.ya.lf=this.ya.Kf):e===x.a.Hu?(this.ya.Mc=2,this.ya.Ob=-1,this.ya.Kf=Math.ceil((this.aa.ba.ne+1)/this.ya.Mc),this.ya.bd=0,this.ya.lf=this.ya.Kf):e===x.a.Iu&&(this.ya.Mc=2,this.ya.Ob=Math.floor(y/this.ya.Mc),this.ya.Kf=Math.ceil(this.aa.ba.ne/
|
|
this.ya.Mc),this.ya.bd=this.ya.Ob,this.ya.lf=this.ya.Ob+1)}};e.prototype.gq=function(e,y){return this.ya.getSelectedPages(e,y)};e.prototype.ve=function(e,y){return this.ya.getVisiblePages(e,y)};e.prototype.eo=function(e,y,n){return this.ya.eo(e,y,n)};e.prototype.EC=function(e,y){return this.ya.getVisibleRegionRect(e,y)};e.prototype.gh=function(e,y){return this.ya.pageToWindow(e,y)};e.prototype.xj=function(e,y){return this.ya.windowToPage(e,y)};e.prototype.Js=function(e){return this.ya.getPageTransform(e)};
|
|
e.prototype.fJ=function(e){return this.ya.getPageOffset(e)};e.prototype.Vj=function(){return this.ya.Vj()};e.prototype.wh=function(){return this.ya.wh()};e.prototype.Jv=function(e){return this.ya.Jv(e)};e.prototype.vm=function(e){return this.ya.vm(e)};e.prototype.YB=function(e){return this.ya.YB(e)};e.prototype.Pf=function(){return this.ya.Pf()};e.prototype.IC=function(e){return this.ya.IC(e)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2);ia=e(27);var ha=e(4),ca=e(318),da=e(44),aa=e(14);
|
|
e=function(e){function w(n,h,f,r){var w=e.call(this,void 0,void 0,n,h)||this;w.width=n;w.height=h;w.nk=f;w.Qk=r;w.sia={"ew-resize":"ns-resize","ns-resize":"ew-resize","nwse-resize":"nesw-resize","nesw-resize":"nwse-resize"};w.nk=f;w.Qk=r;w.Zi=w.Qk===da.b.Xo;w.Ti=w.Qk===da.b.So;w.jK=w.Qk===da.b.xF;w.Wi=w.nk===da.a.LEFT;w.Yi=w.nk===da.a.RIGHT;w.bK=w.nk===da.a.lF;return w}Object(ea.c)(w,e);w.prototype.kC=function(e){var h="";this.Zi&&this.Wi?h="nwse-resize":this.Zi&&this.bK?h="ns-resize":this.Zi&&this.Yi?
|
|
h="nesw-resize":this.jK&&this.Wi?h="ew-resize":this.jK&&this.Yi?h="ew-resize":this.Ti&&this.Wi?h="nesw-resize":this.Ti&&this.bK?h="ns-resize":this.Ti&&this.Yi&&(h="nwse-resize");return Object(ca.a)(e)?h:this.sia[h]};w.prototype.getDimensions=function(e,h,f){var n=this.width/f,w=this.height/f,fa=this.ica(h,n,e.NoZoom?f:1);e=this.jca(h,w,e.NoZoom?f:1);return new ha.d(fa,e,fa+n,e+w)};w.prototype.ica=function(e,h,f){var n=e.x1;if(this.Wi)return n-h/2;if(this.bK)return n+(e.Ba()/f-h)/2;if(this.Yi)return n+
|
|
e.Ba()/f-h/2;Object(x.j)("Invalid Horizontal Alignment")};w.prototype.jca=function(e,h,f){var n=e.y1;if(this.Zi)return n-h/2;if(this.jK)return n+(e.wa()/f-h)/2;if(this.Ti)return n+e.wa()/f-h/2;Object(x.j)("Invalid Vertical Alignment")};w.prototype.move=function(e,h,f){if(!h&&!f)return!1;var n=e.Sa();!e.MaintainAspectRatio&&!e.uO&&aa.a.DM(e)||!this.Wi&&!this.Yi||!this.Zi&&!this.Ti||(f=this.v5(e,f,h),h=f.deltaX,f=f.deltaY);e.vO?(this.Wi?(n.x1+=h/2,n.x2-=h/2):this.Yi&&(n.x2+=h/2,n.x1-=h/2),this.Zi?(n.y1+=
|
|
f/2,n.y2-=f/2):this.Ti&&(n.y2+=f/2,n.y1-=f/2)):(this.Wi?n.x1+=h:this.Yi&&(n.x2+=h),this.Zi?n.y1+=f:this.Ti&&(n.y2+=f));e instanceof Annotations.kr&&"EllipseDimension"===e.IT&&e.Measure&&e.Td();e.resize(n);return!0};w.prototype.v5=function(e,h,f){var n=e.Ba();e=e.wa();if(n>e){if(h=e/n*(n+f)-e,this.Wi&&this.Ti||this.Yi&&this.Zi)h*=-1}else if(f=n/e*(e+h)-n,this.Wi&&this.Ti||this.Yi&&this.Zi)f*=-1;return{deltaY:h,deltaX:f}};return w}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(120);var x=e(4);e=
|
|
function(e){function ca(x,aa,w,y){var n=e.call(this,w,y,x,aa)||this;n.x=x;n.y=aa;n.width=w;n.height=y;return n}Object(ea.c)(ca,e);ca.prototype.draw=function(x,aa,w,y){aa.measurementCaptionOptions.isEnabled&&e.prototype.draw.call(this,x,aa,w,y)};ca.prototype.move=function(e,aa,w,y,n,h,f){e.xd&&e.Ma();e.appearances&&delete e.appearances;n=h.Ns(f);y=e.Sa();n=new x.d(n.x,n.y,n.x,n.y);e=e.measurementCaptionOptions.captionRect;y.contains(e)&&y.contains(n)&&(n=e.x1+aa-y.x1,h=y.x2-(e.x2+aa),f=e.y1+w-y.y1,
|
|
y=y.y2-(e.y2+w),0>aa&&0>n||0<aa&&0>h||e.translate(aa,0),0>w&&0>f||0<w&&0>y||e.translate(0,w));return!0};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(27);var x=e(4),ha=e(21);e=function(e){function da(aa,w,y,n,h){var f=e.call(this,aa,w,y,n)||this;f.x=aa;f.y=w;f.width=y;f.height=n;f.Nc=h;f.Nc=h;return f}Object(ea.c)(da,e);da.prototype.getDimensions=function(e,w,y){e=this.width/y;y=this.height/y;w=this.x-.5*e;var n=this.y-.5*y;return new x.d(w,n,w+e,n+y)};da.prototype.move=function(e,w,
|
|
y,n,h,f,r){n=e.ik(this.Nc);n=r.shiftKey?ha.a.Math.Ew(e.ik(0>this.Nc-1?1:this.Nc-1),h):{x:n.x+w,y:n.y+y};e.sh(this.Nc,n.x,n.y);return!0};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(47),ha=e(128),ca=e(27),da=e(48),aa=e(111);ia=function(e){function w(n,h,f,r){n=e.call(this,n,h,f,r)||this;n.lk=ca.a.handleWidth;n.og=ca.a.handleHeight;n.SL=ca.a.rotationHandleWidth;n.RL=ca.a.rotationHandleHeight;n.Sq=x.a.Sq;n.Of();return n}Object(ea.c)(w,e);w.prototype.Of=function(){if(this.Qc()&&!this.qa.NoResize)for(var e=
|
|
this.qa.Ra(),h=0;h<e.length;h++)this.Gb.push(new ha.a(e[h].x,e[h].y,this.lk,this.og,h));this.HE()&&this.Gb.push(new aa.a(this.SL,this.RL,this.Sq,this.qa,this.aa))};w.prototype.testSelection=function(e,h,f,r){return this.isSelected()?da.a.pl(e,h,f,this.aa.bc()):da.a.xp(e,h,f,r,this.aa.bc())};return w}(x.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(47);var x=e(4),ha=e(48),ca=e(160);e=function(e){function aa(w,y,n,h,f,r){void 0===f&&(f=!0);void 0===r&&(r=!0);y=e.call(this,w,y,n,h)||this;y.ala=f;y.$ka=
|
|
r;y.ai=w.nf();if(!y.ai)return y;y.Of();return y}Object(ea.c)(aa,e);aa.prototype.Of=function(){this.Gb=[];this.Qc()&&!this.qa.NoResize&&this.ai[0]&&(this.ala&&this.Gb.push(ca.a.aU(this.ai[0])),this.$ka&&this.Gb.push(ca.a.XS(this.ai[this.ai.length-1])))};aa.prototype.testSelection=function(e,y,n){return ha.a.SM(e,y,n)};aa.prototype.getDimensions=function(e){var w=e.X-2,n=e.Y-2;return new x.d(w,n,w+(e.Width+4),n+(e.Height+4))};return aa}(ia.a);ba.a=e},function(ia,ba,e){function ea(e,h,f,r){e=Object(da.a)(e);
|
|
x(e,h,f,r)}function x(e,h,f,r){for(var n=h.password||h.p,fa=h.type.toUpperCase(),x=aa.length,ja,da=0;da<x;da++)aa[da].done&&(ja=aa[da]);!ja&&4>x&&(ja={done:!1,worker:new Worker(y.Ya.ae()+"DecryptWorker.js"),gf:r},aa[x]=ja,ja.worker.addEventListener("message",function(f){if(f.data.error)throw h.error&&h.error(f.data.error),Error(f.data.error);ja.gf(f.data);0<w.length?(f=w[0],w.shift(),ja.done=!1,ja.gf=f.gf,ja.worker.postMessage({data:f.data,password:f.password,partName:f.Jq,type:fa})):(ja.gf=null,
|
|
ja.done=!0)}));ja?(ja.done=!1,ja.gf=r,ja.worker.postMessage({data:e,password:n,partName:f,type:fa})):w.push({data:e,password:n,Jq:f,type:fa,gf:r})}function ha(e,h,f){e=Object(da.a)(e);var n=h.password||h.p;switch(h.type.toUpperCase()){case "AES":e=Object(ca.a)(e,n,f);break;default:e=Object(ca.a)(e,n,f)}if(e.error)throw h.error&&h.error(e.error),Error(e.error);return e}e.d(ba,"b",function(){return ha});e.d(ba,"a",function(){return ea});var ca=e(236),da=e(73),aa=[],w=[],y=window},function(ia,ba,e){function ea(e){return{cursor:e.fieldFlags.get(x.a.READ_ONLY)?
|
|
"inherit":"pointer"}}e.d(ba,"b",function(){return ea});e.d(ba,"a",function(){return ha});var x=e(13),ha={CROSS:"8",TICK:"4",CIRCLE:"l",DIAMAND:"u",SQUARE:"n",STAR:"h"}},function(ia,ba,e){function ea(e){Object(x.a)(e,da)}e.d(ba,"a",function(){return ea});var x=e(121),ha=e(33),ca=e(54),da=function(){function e(){this.xl=Object(ca.a)({isEnabled:!0})}e.prototype.RE=function(e){var w=this.aa.AT();if(e&&w.LU()){var n=this.name,h=this.aa.la;h.Pb().filter(function(f){return f.ToolName===n}).forEach(function(f){return h.tE(f,
|
|
e)})}};e.prototype.mL=function(){this.annotation.DisplayFormat=ha.a.oF;var e=[ha.c.LN,ha.c.GN,ha.c.CN].includes(this.defaults.Scale[1][1]),y=[.125,.0625,.03125,.015625].includes(this.defaults.Precision);e&&y&&(this.annotation.DisplayFormat=ha.a.uF);!e&&y&&this.dc({Precision:.1})};e.prototype.gM=function(e){var w=this;Object.keys(e).forEach(function(n){"captionStyle"===n&&"object"===typeof e[n]?Object.keys(e[n]).forEach(function(h){h in w.xl[n]&&(w.xl[n][h]=e[n][h])}):n in w.xl&&(w.xl[n]=e[n])})};
|
|
e.prototype.RI=function(){return this.xl};return e}()},function(ia,ba,e){var ea=e(80),x=e(115),ha=e(50),ca=e(153);ia=function(){function e(){this.Zc=[];this.Oc=-1;this.ee=[];this.$c=Array(8);this.mA=null;this.Ea="";this.rb=null}e.prototype.md=function(){this.Oc=this.fe=-1;this.ee=[]};e.prototype.Fc=function(e){return this.Oc===e.Oc};e.prototype.fk=function(){return this.Zc.length};e.prototype.Yg=function(){return this.Zc.length?this.Zc[0]:new x.a};e.prototype.Dw=function(){return this.Zc.length?this.Zc[this.Zc.length-
|
|
1]:new x.a};e.prototype.gU=function(e){return 0>e||e>=this.fk()?new x.a:this.Zc[e]};e.prototype.Vn=function(){return null==this.mA?new e:this.mA};e.prototype.Je=function(e){e.Yq(this.$c)};e.prototype.nv=function(e){this.Oc=e};e.prototype.lC=function(){if(this.ee.length)return this.ee[0];var e=new ha.a,w=new ha.a;(new x.a).md();var y=this.Yg(),n=this.Dw(),h=Array(8),f=Array(8);y.Ke(0,h);e.x=(h[0]+h[2]+h[4]+h[6])/4;e.y=(h[1]+h[3]+h[5]+h[7])/4;n.Ke(n.ek()-1,f);w.x=(f[0]+f[2]+f[4]+f[6])/4;w.y=(f[1]+f[3]+
|
|
f[5]+f[7])/4;.01>Math.abs(e.x-w.x)&&.01>Math.abs(e.y-w.y)&&this.ee.push(0);e=Math.atan2(w.y-e.y,w.x-e.x);e*=180/3.1415926;0>e&&(e+=360);this.ee.push(e);return 0};e.prototype.LY=function(e){this.mA=e};e.prototype.CQ=function(e){0<this.Zc.length&&this.Zc[this.Zc.length-1].Tja(e);this.Zc.push(e);var w=Object(ca.b)(this.Ea),y=Array(8);e.le(y);if(w)for(w=0;8>w;w++)this.$c[w]=y[w];else this.Ea+=" ",ea.a.qA(this.$c,y,!1,0);this.Ea+=e.Ea};return e}();ba.a=ia},function(ia,ba,e){function ea(){return ha}function x(e){ha=
|
|
e}e.d(ba,"a",function(){return ca});e.d(ba,"c",function(){return x});e.d(ba,"b",function(){return ea});var ha,ca="rtl"},function(ia,ba,e){(function(e){function x(h){"function"!==typeof h&&(h=new Function(""+h));for(var e=Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];r[f]={gf:h,args:e};ka(f);return f++}function ha(f){delete r[f]}function ca(f){if(z)setTimeout(ca,0,f);else{var h=r[f];if(h){z=!0;try{var e=h.gf,n=h.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],
|
|
n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}finally{ha(f),z=!1}}}}function da(){ka=function(f){e.ZV(function(){ca(f)})}}function aa(){if(h.postMessage&&!h.importScripts){var f=!0,e=h.onmessage;h.onmessage=function(){f=!1};h.postMessage("","*");h.onmessage=e;return f}}function w(){function f(f){f.source!==h&&f.source!==h.parent||"string"!==typeof f.data||0!==f.data.indexOf(e)||ca(+f.data.slice(e.length))}var e="setImmediate$"+Math.random()+"$";h.addEventListener?h.addEventListener("message",
|
|
f,!1):h.attachEvent("onmessage",f);ka=function(f){h.postMessage(e+f,"*")}}function y(){var f=fa.documentElement;ka=function(h){var e=fa.createElement("script");e.onreadystatechange=function(){ca(h);e.onreadystatechange=null;f.removeChild(e);e=null};f.appendChild(e)}}function n(){ka=function(f){setTimeout(ca,0,f)}}var h="undefined"===typeof window?self:window,f=1,r={},z=!1,fa=h.document,ka,ja=Object.getPrototypeOf&&Object.getPrototypeOf(h);ja=ja&&ja.setTimeout?ja:h;"[object process]"==={}.toString.call(h.process)?
|
|
da():aa()?w():fa&&"onreadystatechange"in fa.createElement("script")?y():n();ja.setImmediate=x;ja.clearImmediate=ha;ba.a={setImmediate:x,clearImmediate:ha}}).call(this,e(264))},function(ia,ba,e){function ea(f,h,e,n){return ha(f,[aa,w,da],{compressedMaximum:h,isAsync:e,shouldOutputArray:n})}function x(f,h,e,n){return ha(f,[w,aa,da],{compressedMaximum:h,isAsync:e,shouldOutputArray:n})}function ha(f,h,e){var n;if(e.isAsync){var r=h[0](f,e);for(n=1;n<h.length;++n)r=ca(r,f,e,h[n]);return r}for(n=0;n<h.length;++n)try{return h[n](f,
|
|
e)}catch(ua){Object(ka.j)(ua.message)}throw Error("");}function ca(f,h,e,n){return f.catch(function(f){Object(ka.j)(f);return n(h,e)})}function da(f,e){f.endsWith(".js.mem")?f=f.slice(0,-4):f.endsWith(".mem")&&(f=f.slice(0,-4)+".js.mem");e.url=f;e.decompressFunction=h;return n(e)}function aa(f,h){h.url=y(f);h.decompressFunction=la?z:r;return n(h)}function w(h,e){var r=h.lastIndexOf("/");-1===r&&(r=0);var w=h.slice(r).replace(".",".gz.");e.url=h.slice(0,r)+w;e.decompressFunction=f;return n(e)}function y(f){var h=
|
|
f.lastIndexOf("/");-1===h&&(h=0);var e=f.slice(h).replace(".",".br.");la||(e.endsWith(".js.mem")?e=e.replace(".js.mem",".mem"):e.endsWith(".js")&&(e=e.concat(".mem")));return f.slice(0,h)+e}function n(f){function h(){var h=Date.now();var w=r?n.responseText:new Uint8Array(n.response);Object(ka.b)("worker","Result length is "+w.length);w.length<f.compressedMaximum?(w=f.decompressFunction(w,f.shouldOutputArray),Object(ka.j)("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this."),
|
|
la&&Object(ka.b)("worker","Decompressed length is "+w.length)):e&&(w=Object(pa.a)(w));la&&Object(ka.b)("worker",f.url+" Decompression took "+(Date.now()-h));return w}var e=!f.shouldOutputArray,n=new XMLHttpRequest;n.open("GET",f.url,f.isAsync);var r=e&&n.overrideMimeType;n.responseType=r?"text":"arraybuffer";r&&n.overrideMimeType("text/plain; charset=x-user-defined");n.send();if(f.isAsync)var w=new Promise(function(e,r){n.onload=function(){200===this.status||0===this.status?e(h()):r("Download Failed "+
|
|
f.url)};n.onerror=function(){r("Network error occurred "+f.url)}});else{if(200===n.status||0===n.status)return h();throw Error("Failed to load "+f.url);}return w}function h(f,h){return h?f:Object(pa.a)(f)}function f(f){ra||(la(ma.e5+"pako_inflate.min.js"),ra=!0);var h=10;if("string"===typeof f){if(f.charCodeAt(3)&8){for(;0!==f.charCodeAt(h);++h);++h}}else if(f[3]&8){for(;0!==f[h];++h);++h}f=Object(pa.b)(f);f=f.subarray(h,f.length-8);return ma.Gpa.Vl(f,{yc:-15})}function r(f,h){return Object(fa.b)(void 0,
|
|
void 0,Promise,function(){var e;return Object(fa.d)(this,function(n){switch(n.label){case 0:return na?[3,2]:[4,Object(ja.a)(self.Core.getWorkerPath()+"external/decode.min.js","Failed to download decode.min.js",window)];case 1:n.ea(),na=!0,n.label=2;case 2:return e=self.BrotliDecode(Object(pa.b)(f)),[2,h?e:Object(pa.a)(e)]}})})}function z(f,h){na||(la(ma.e5+"decode.min.js"),na=!0);f=self.xma(Object(pa.b)(f));return h?f:Object(pa.a)(f)}e.d(ba,"a",function(){return y});e.d(ba,"b",function(){return ea});
|
|
e.d(ba,"c",function(){return x});var fa=e(1),ka=e(2),ja=e(203),pa=e(73),ma="undefined"===typeof window?self:window,la=ma.importScripts,na=!1;(function(){function f(){this.Pha=[]}f.prototype.b0=function(){if(this.Pha.length){for(var f=this.Jna,h=0,e=0;e<f.length;++e)h+=f[e].length;h=new Uint8Array(h);var n=0;for(e=0;e<f.length;++e){var r=f[e];h.set(r,n);n+=r.length}return z(h,!0)}return null};return f})();var ra=!1},function(ia,ba,e){var ea=e(17),x=e(135);ba.a=function(e){var ca=e.scrollLeft||0;if(Object(x.b)()===
|
|
x.a)if(ea.j)ca=ca+e.clientWidth-e.scrollWidth;else if(ea.i||ea.k)ca=-ca;return ca}},function(ia,ba,e){var ea=e(2),x=e(40);ia=function(){function e(e,x){this.name=e;this.ul=x;this.B5=1;this.Ck=!0;this.Tj={};this.il={};this.k4={};this.pdfnetCommandChain=this.vD=null;this.pdfnetActiveCommands=new Set;this.il.console_log=[function(e){Object(ea.h)(e)}];this.il.console_error=[function(e){Object(ea.g)(e)}];this.il.workerLoaded=[function(){}];this.QV=this.AJ.bind(this);x.addEventListener("message",this.QV)}
|
|
e.prototype.on=function(e,x,aa){var w=this.il;w[e]&&Object(ea.g)('There is already an actionName called "'+e+'"');w[e]=[x,aa]};e.prototype.T5=function(){this.il={};this.ul.removeEventListener("message",this.QV)};e.prototype.reset=function(){this.T5();this.ul.reset&&this.ul.reset()};e.prototype.replace=function(e,x,aa){this.il[e]=[x,aa]};e.prototype.send=function(e,x){this.postMessage({action:e,data:x})};e.prototype.Gw=function(){return this.B5++};e.prototype.vb=function(e,x,aa){var w=this.Gw();e=
|
|
{action:e,data:x,callbackId:w,priority:aa};x=window.createPromiseCapability();this.Tj[w]=x;try{this.postMessage(e)}catch(y){x.reject(y)}return x.promise};e.prototype.sendWithPromiseReturnId=function(e,x,aa){var w=this.Gw();e={action:e,data:x,callbackId:w,priority:aa};x=window.createPromiseCapability();this.Tj[w]=x;try{this.postMessage(e)}catch(y){x.reject(y)}return{promise:x.promise,callbackId:w}};e.prototype.sE=function(e,x){if(e.message||e.Y9){e.message&&e.message.message&&(e.message=e.message.message);
|
|
var aa=e.Y9;e={type:e.type?e.type:"JavascriptError",message:e.message};aa&&Object.keys(aa).forEach(function(w){aa.hasOwnProperty(w)&&(e[w]=aa[w])})}this.postMessage({isReply:!0,callbackId:x,error:e})};e.prototype.jJ=function(){if(void 0 in this.Tj)return this.Tj[void 0];Object(ea.g)("Cannot get promise for callback undefined")};e.prototype.jR=function(e){if(e in this.Tj){var x=this.Tj[e];delete this.Tj[e];this.pdfnetActiveCommands.has(e)&&this.pdfnetActiveCommands.delete(e);x.reject({type:"Cancelled",
|
|
message:"Request has been cancelled."});this.postMessage({action:"actionCancel",data:{callbackId:e}})}else Object(ea.j)("Cannot cancel callback "+e)};e.prototype.postMessage=function(e){Object(x.a)("enableWorkerLogs")&&Object(ea.h)("PDFWorker","Sent "+JSON.stringify(e));if(this.Ck){var da=this.lca(e);this.ul.postMessage(e,da)}else this.ul.postMessage(e)};e.prototype.DT=function(e,x){var aa=this;null!==e&&"object"===typeof e&&(e instanceof Uint8Array?x.push(e.buffer):e instanceof ArrayBuffer?x.push(e):
|
|
Object.keys(e).forEach(function(w){e.hasOwnProperty(w)&&aa.DT(e[w],x)}))};e.prototype.lca=function(e){var x=[];this.DT(e,x);return 0===x.length?void 0:x};e.prototype.AJ=function(e){var da=this,aa=e.data;Object(x.a)("enableWorkerLogs")&&Object(ea.h)("PDFWorker","Received "+JSON.stringify(aa));var w=this.il,y=this.k4;e=this.Tj;var n=this.pdfnetActiveCommands;if(aa.isReply)w=aa.callbackId,w in e?(y=e[w],delete e[w],n.has(w)&&n.delete(w),"error"in aa?y.reject(aa.error):y.resolve(aa.data)):Object(ea.b)("Cannot resolve callback "+
|
|
w);else if(aa.action in w){var h=w[aa.action];aa.callbackId?Promise.resolve().then(function(){return h[0].call(h[1],aa.data)}).then(function(f){da.postMessage({isReply:!0,callbackId:aa.callbackId,data:f})},function(f){da.sE(f,aa.callbackId)}):h[0].call(h[1],aa.data)}else aa.action in y?(h=y[aa.action],aa.callbackId?h[0].call(h[1],aa).then(function(f){da.postMessage({isReply:!0,callbackId:aa.callbackId,data:f});da.vD()},function(f){da.sE(f,aa.callbackId);da.vD()}):h[0].call(h[1],aa).then(function(){da.vD()},
|
|
function(){da.vD()})):Object(ea.g)("Unknown action from worker: "+aa.action)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);ia=e(26);var ha=e(15),ca=e(2),da=e(10),aa=null,w=null;e=function(e){function n(h){h=e.call(this,h)||this;h.cursor="text";return h}Object(ea.c)(n,e);Object.defineProperty(n,"SELECTION_MODE",{get:function(){return aa||w||"structural"},set:function(h){"structural"!==h&&"rectangular"!==h?Object(ca.j)('"SELECTION_MODE" should only be set to "structural" or "rectangular"'):
|
|
aa=h},enumerable:!1,configurable:!0});n.prototype.switchIn=function(){this.aa.addEventListener(da.f.XN,Object(x.bind)(this.kR,this));this.mouseDown=!1};n.prototype.switchOut=function(h){e.prototype.switchOut.call(this,h);this.aa.removeEventListener(da.f.XN,null,{df:!0})};n.prototype.mouseLeftDown=function(h){e.prototype.mouseLeftDown.call(this,h);this.isSelecting()||(w=h.altKey?"rectangular":"structural",this.mouseDown=!0,this.aa.Nv())};n.prototype.mouseMove=function(h){e.prototype.mouseMove.call(this,
|
|
h);this.isSelecting()||!0!==this.mouseDown||(1!==h.which&&0!==h.which?this.mouseDown=!1:(h.data&&(this.pageCoordinates[1]=this.Me(h.data.mouseCoordinate)),this.pageCoordinates[1]&&this.select(this.pageCoordinates[0],this.pageCoordinates[1]),this.Bn(h)))};n.prototype.select=function(h,f){var e=this.aa;if(h&&f){if(f.pageNumber>=h.pageNumber){var n=h;h=f}else n=f;f=n.pageNumber;var w=h.pageNumber;if(null!==f&&null!==w){var y=new ha.e,aa=e.ba.mb(f);1<=w-f?y.ab(n.x,n.y,aa.width,aa.height):y.ab(n.x,n.y,
|
|
h.x,h.y);this.aa.Rt(f,y,Object(x.bind)(this.textSelected,this));for(n=f+1;n<w;n++)aa=e.ba.mb(n),y=new ha.e,y.ab(0,0,aa.width,aa.height),e.Rt(n,y,Object(x.bind)(this.textSelected,this));f!==w&&(y=new ha.e,y.ab(0,0,h.x,h.y),e.Rt(w,y,Object(x.bind)(this.textSelected,this)))}}};n.prototype.textSelected=function(){};n.prototype.mouseLeftUp=function(h){e.prototype.mouseLeftUp.call(this,h);this.isSelecting()||(this.mouseDown=!1)};return n}(ia.a);ba.a=e},function(ia,ba){ba.a=function(){return function(e,
|
|
ea,x,ha,ca,da){this.eG=e;this.Zz=ea;this.Yz=x;this.PF=ha;this.BA=ca;this.AA=da;this.eG=e;this.Zz=ea||0;this.Yz=x||0;this.PF=ha;this.BA=ca||0;this.AA=da||0}}()},function(ia,ba,e){e.d(ba,"a",function(){return ea});var ea=/[-[\]{}()*+?.,\\^$|#\s]/g;ba.b=function(){return function(e,ha){this.gV=ha&&("r"===ha||"w"===ha);this.text=(ha&&"w"===ha?e.replace(/(\*+|.|\n)/g,function(e){if("*"===e.charAt(0)){if(1===e.length)return".*?";var x=e.length/2|0;return 1===((e.length|0)&1)?"*".repeat(x).replace(ea,"\\$&")+
|
|
".*?":"*".repeat(x).replace(ea,"\\$&")}return e.replace(ea,"\\$&")}):e).pj("\n"," ")}}()},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(96),da=e(4),aa=e(8);ia=e(16);var w=e(34),y=e(85),n=e(231);e=function(h){function f(e){var r=h.call(this)||this;ca.a.call(r,e);r.qn=new aa.a(0,0,0,1);r.Iz=new aa.a(void 0);r.Jz=new n.a;r.bA=!1;r.JG=0;r.Uf=null;r.Qg=null;r.Wu=[];r.addEventListener(f.Events.CONTENT_REMOVED,function(){this.Qg=this.Uf=null;this.Wu=[];this.RF=!1});r.FA=!0;Object(x.isObject)(e)&&
|
|
(Object(x.isUndefined)(e.border)||r.Jz.set(e.border),Object(x.isUndefined)(e.backgroundColor)||(r.Iz=new aa.a(e.backgroundColor)),Object(x.isUndefined)(e.color)||(r.qn=new aa.a(e.color)),Object(x.isUndefined)(e.rect)||(r.rect=new da.d(e.rect)),Object(x.isUndefined)(e["trn-custom-data"])||(r.Dj=e["trn-custom-data"]));var w=r.Nw();Object.keys(w).forEach(function(f){var h=w[f];r.addEventListener(h.internal_name,function(){r.Tf(f,h.getEvent(r))})});return r}Object(ea.c)(f,h);f.prototype.DC=function(f){return(this.Ba()-
|
|
(this.FA?2*this.border.width:0))*f};f.prototype.CC=function(f){return(this.wa()-(this.FA?2*this.border.width:0))*f};f.prototype.mZ=function(){this.FA=!1};f.prototype.serialize=function(f,e){this.Hidden=this.hidden;return h.prototype.serialize.call(this,f,e)};f.prototype.deserialize=function(f,e,n){h.prototype.deserialize.call(this,f,e,n);this.Hidden&&(this.hidden=!0,this.Hidden=!1)};f.prototype.Nw=function(){return{}};f.prototype.nl=function(){};f.prototype.Fd=function(f){var h=this.JG,e=Object(w.e)(h,
|
|
this.Ba(),this.wa()),n=e.mS*f;e=e.nS*f;return Object.assign({left:this.X*f,top:this.Y*f,width:this.DC(f),height:this.CC(f),position:"absolute",padding:"0",margin:"0","background-color":this.Iz.toString(),"z-index":"35",display:this.bA?"none":"",transform:"translate("+n+"px,"+e+"px) rotate("+-h+"deg)","transform-origin":"top left","-webkit-transform":"translate("+n+"px,"+e+"px) rotate("+-h+"deg)","-webkit-transform-origin":"top left","-ms-transform":"translate("+n+"px,"+e+"px) rotate("+-h+"deg)","-ms-transform-origin":"top left",
|
|
"-moz-transform":"translate("+n+"px,"+e+"px) rotate("+-h+"deg)","-moz-transform-origin":"top left","-webkit-appearance":"none"},this.FA?this.Jz.UM(f):{})};f.prototype.td=function(f){if(!f)throw Error("no zoom?");return{position:"absolute","font-size":"inherit","font-family":"inherit","font-weight":"inherit","font-style":"inherit",color:"inherit",width:this.DC(f),height:this.CC(f),border:0,padding:0,margin:0,"background-color":"transparent","vertical-align":"top"}};f.prototype.uh=function(f){this.bA=
|
|
!f;this.Uf&&(this.Uf.style.display=this.bA?"none":"");this.GO&&this.Im()&&this.GO.Sc({pageNumber:this.PageNumber})};f.prototype.createInnerElement=function(){Object(ha.j)("missing inner element");return null};f.prototype.Tia=function(f){this.Wu=f};f.prototype.rC=function(){return this.Qg};f.prototype.nT=function(){return this.Uf};f.prototype.Im=function(){return!1};f.prototype.refresh=function(){};f.prototype.render=function(f,h,e,n){if(!this.Uf){var r=document.createElement("div");r.className=this.yl;
|
|
this.Uf=r}this.GO=h;var w=n?this.Uf.cloneNode(!1):this.Uf,z=this.Fd(e,h);r=JSON.stringify(z);r!==w.uK&&(this.ml(w,z),w.uK=r);this.Qg=this.Qg||this.createInnerElement(h);if(this.Qg){var fa=n?this.Qg.cloneNode(!0):this.Qg;fa!==this.Qg&&(this.refresh&&this.refresh(),fa.value=this.Qg.value,this.Qg.checked&&(fa.checked=!0));e=this.td(e);r=JSON.stringify(e);r!==fa.uK&&(this.ml(fa,e),fa.uK=r);this.RF||(this.nl(h),this.RF=!0)}f&&this.Uf.parentNode!==f&&(f.appendChild(w),w.appendChild(fa),this.Wu.forEach(function(f){f=
|
|
n?f.cloneNode(!0):f;w.appendChild(f)}))};f.prototype.WE=function(){this.Uf&&(this.Uf.parentNode.removeChild(this.Uf),this.Uf=null,this.RF=!1)};f.Events={CONTENT_REMOVED:"contentRemoved"};return f}(y.a);e.prototype.yl="";e.prototype.ml=ia.b;e.prototype=Object.assign(Object.create(y.a.prototype),e.prototype,ca.a.prototype);Object.defineProperties(e.prototype,{rect:{get:function(){return this.Sa()},set:function(h){this.cc(h)}},element:{get:function(){return this.nT()}},innerElement:{get:function(){return this.rC()}},
|
|
hidden:{get:function(){return this.bA},set:function(h){this.uh(!h)}},StrokeColor:{get:function(){return this.qn},set:function(h){this.qn=new aa.a(h)}},border:{get:function(){return this.Jz},set:function(h){this.Jz.set(h)}},backgroundColor:{get:function(){return this.Iz},set:function(h){this.Iz=new aa.a(h)}},actions:{get:function(){return this.Fl()}},rotation:{get:function(){return this.JG},set:function(h){this.JG=Number(h)}}});(window.Annotations||{}).HTMLAnnotation=e;ba.a=e},function(ia,ba,e){function ea(){return ha}
|
|
function x(e){ha=e}e.d(ba,"b",function(){return x});e.d(ba,"a",function(){return ea});var ha=null},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(4),ca=e(8);ia=e(41);var da=e(35),aa=e(3),w=e(34),y=e(87),n=e(6),h=e(12),f=window.Annotations||{},r=new ca.a(0,0,0,0),z=new ca.a(0,0,0,1),fa=new ca.a(255,0,0,1),ka=new ca.a(255,0,0,1),ja={left:"Left-justified",center:"Centered",right:"Right-justified"};e=function(e){function y(f){void 0===f&&(f={});var n=e.call(this,f)||this;n["_xsi:type"]="Redact";
|
|
n.Subject=h.a.Gc("redact");n.Opacity=1;n.IsHoverable=!0;n.IsHovering=!1;n.PageNumber=f.PageNumber||n.PageNumber;n.StrokeThickness=1.5;n.Color=f.StrokeColor||fa;n.FillColor=f.FillColor||z;n.FillDisplayColor=r;n.TextColor=f.TextColor||ka;n.FontSize=f.FontSize||"18pt";n.OverlayText=f.OverlayText||null;n.TextAlign=f.TextAlign||null;n.Font=f.Font||"Helvetica";var w=(!isNaN(f.X)||!isNaN(f.Y))&&(!isNaN(f.Width)||!isNaN(f.Height));if(Object(x.isUndefined)(f.IsText))f.Rect?n.cc(f.Rect):w&&(w=ha.d.DR(f.X||
|
|
0,f.Y||0,f.Width||0,f.Height||0),n.cc(w)),f.Quads?(n.Quads=f.Quads,n.IsText=!0):f.Rect&&(n.vM(),n.IsText=!1,n.NoMove=!1);else if(n.IsText=!!f.IsText,f.Quads)n.IsText?n.Quads=f.Quads:n.cc(f.Quads[0].RZ());else if(f.Rect||w)(w=f.Rect)?w instanceof ha.d||(w=new ha.d(f.Rect)):w=new ha.d(f.X,f.Y,f.X+f.Width,f.Y+f.Height),n.cc(w),n.IsText?n.Quads=[w.QZ()]:n.cc(w);n.cd(f);return n}Object(ea.c)(y,e);y.prototype.draw=function(f,h){var e=this;this.dc(f,h);this.Ls().forEach(function(h){var e=h.x2-h.x1,n=h.y2-
|
|
h.y1;f.save();f.beginPath();f.rect(h.x1,h.y1,e,n);f.clip();f.fill();f.stroke();f.closePath();f.restore()});if(this.IsHovering&&this.OverlayText&&this.Quads&&this.Quads.length){var n=this.Quads.map(function(f){return Object.assign({},{x:f.x4,y:f.y4,width:f.x2-f.x1,height:f.y2-f.y3})}),r=this.StrokeThickness;this.StrokeThickness=.5;n.forEach(function(n){e.ts(f,h,e.OverlayText,n)});this.StrokeThickness=r}};y.prototype.ts=function(h,e,n,r){f.gb.prototype.ts.apply(this,arguments)};y.prototype.Le=function(){};
|
|
y.prototype.ME=function(){return f.gb.prototype.ME.apply(this,arguments)};y.prototype.Ow=function(){return f.gb.prototype.Ow.apply(this,arguments)};y.prototype.gC=function(){return f.gb.prototype.gC.apply(this,arguments)};y.prototype.Bw=function(){return f.gb.prototype.Bw.apply(this,arguments)};y.prototype.$p=function(){return f.gb.prototype.$p.apply(this,arguments)};y.prototype.iq=function(){return f.gb.prototype.iq.apply(this,arguments)};y.prototype.Po=function(){return f.gb.prototype.Po.apply(this,
|
|
arguments)};y.prototype.Es=function(){return f.gb.prototype.Es.apply(this,arguments)};y.prototype.UJ=function(){return f.gb.prototype.UJ.apply(this,arguments)};y.prototype.Ls=function(){var f=this.nf();return f=0===f.length?[this.Sa()]:f.map(function(f){return{x1:f.x4,y1:f.y4,x2:f.x2,y2:f.y2}})};y.prototype.cc=function(f){e.prototype.cc.call(this,f);this.IsText||(this.vM(),this.NoMove=!1)};y.prototype.dc=function(f,e){var n=this.Fd();f.globalAlpha=Object(x.get)(n,"opacity",f.globalAlpha);f.fillStyle=
|
|
n.fillColor.toString();n.strokeColor&&(f.strokeStyle=n.strokeColor.toString());f.lineWidth=2*h.a.zv(e,n.zZ)};y.prototype.Fd=function(){return this.IsHovering?{fillColor:this.FillColor,zZ:0,strokeColor:this.FillColor,opacity:1}:{fillColor:this.FillDisplayColor,zZ:this.StrokeThickness,strokeColor:this.StrokeColor,opacity:this.Opacity}};y.prototype.vM=function(){if(!this.IsText){var f=this.Sa();this.Quads=[new ha.c(f.x1,f.y2,f.x2,f.y2,f.x2,f.y1,f.x1,f.y1)]}};y.prototype.serialize=function(){if(this.bb)return this.bb;
|
|
var h=e.prototype.serialize.apply(this,arguments);this.We(h,"overlay-text-repeat");this.OverlayText&&h.setAttribute("overlay-text",this.OverlayText);this.IsText||h.removeAttribute("coords");var r=Object(x.get)(this,"TextAlign",null);ja[r]&&ja[r]!==ja.left&&h.setAttribute("justification",ja[r]);this.FillDisplayColor&&this.FillDisplayColor.fr()?h.setAttribute("unredacted-interior-color",this.FillDisplayColor.fr()):h.removeAttribute("unredacted-interior-color");if(f.gb.prototype.pU.apply(this)){r=this.TextColor.KZ().replace("rg",
|
|
"RG");var w=this.Es();w=n.a.rY(this.Font,w);r=r+" "+w}else r=this.originalDefaultAppearance;w=document.createElementNS("","defaultappearance");w.textContent=r;h.appendChild(w);return h};y.prototype.deserialize=function(f){var h=this;e.prototype.deserialize.apply(this,arguments);this.tj(f,"overlay-text-repeat");this.tj(f,"justification");var r=n.a.Vp(f,"defaultappearance","defaultappearance");this.OverlayText=f.getAttribute("overlay-text");this.justification&&(this.TextAlign=Object.keys(ja).find(function(f){return ja[f]===
|
|
h.justification})||"left");var z=f.getAttribute("unredacted-interior-color");z?this.FillDisplayColor=n.a.Mi(z):(z=this.Uc(aa.a.ROLLOVER),Object(w.a)(z)||(this.appearances=null));r&&(r=n.a.QD(r.replace("RG","rg")),r.color&&(this.TextColor=n.a.Mi(r.color)),r.font&&(this.Font=r.font.name,this.FontSize=r.font.size));this.ac("trn-redaction-type")&&(this.type=this.ac("trn-redaction-type"));this.Quads.length?this.NoMove=this.IsText=!0:(this.NoMove=this.IsText=!1,this.vM())};return y}(y.a);e.prototype.elementName=
|
|
"redact";e.prototype.selectionModel=ia.j;e.prototype=Object.assign(new y.a,e.prototype);Object(da.a)(e.prototype,{Font:{get:function(){return this.xz},set:function(f){this.xz=f;this.Ma()}}});ba.a=e;(window.Annotations||{}).Wo=e},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(346),ha=e(112);ia=function(){function e(){this.MS=[];this.OS=[];this.qm={};this.Sy=!1;Promise.resolve();Promise.resolve();this.Hp=!1;this.NA=null}e.prototype.se=function(){this.Sy=!1;window.cancelAnimationFrame(this.NA);this.NA=
|
|
null;this.Hp=!0};e.prototype.JX=function(e,aa,w,y){Object(ea.isUndefined)(y)&&(y=!0);if(this.qm[e])throw Error("Tried to register pipeline "+e+" twice");this.qm[e]=new x.a(aa,w);y&&this.ML()};e.prototype.Fca=function(e){return!!this.qm[e]};e.prototype.Cba=function(e){if(!this.qm[e])throw Error("Tried to get non-existent pipeline "+e);return this.qm[e]};e.prototype.ML=function(){var e=this;this.Sy||this.Hp||(this.Sy=!0,this.NA=window.requestAnimationFrame(function(){try{e.NA=null;var aa=Object.keys(e.qm).map(function(n){return e.qm[n]});
|
|
aa.forEach(function(e){e.gZ()&&e.read()});aa.forEach(function(e){e.kZ()&&e.write()});var w=aa.some(function(e){return e.gZ()||e.kZ()});e.Sy=!1;w?e.ML():(e.OS.forEach(function(e){e()}),e.OS=[]);e.MS.forEach(function(e){e()});e.MS=[]}catch(n){if(n===ha.b){var y=Object.keys(e.qm);if(0<y.length){e.qm[y[0]].handlers.clearCache();return}}throw n;}finally{e.Sy=!1}}))};e.prototype.sm=function(e,aa){this.Cba(e).sm(aa);this.ML()};return e}();ba.a=ia},function(ia,ba,e){e.d(ba,"d",function(){return ea});e.d(ba,
|
|
"e",function(){return x});e.d(ba,"a",function(){return ha});e.d(ba,"b",function(){return ca});e.d(ba,"c",function(){return da});e.d(ba,"f",function(){return aa});e.d(ba,"i",function(){return w});e.d(ba,"g",function(){return y});e.d(ba,"h",function(){return n});var ea=56,x=20,ha=22,ca=36,da=30,aa=101010256,w=101075792,y=67324752,n="PK\u0003\u0004"},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(6),ha;(function(e){e.XYZ="XYZ";e.FitBH="FitBH";e.FitH="FitH";e.FitBV="FitBV";e.FitV="FitV";e.FitR="FitR";
|
|
e.Fit="Fit";e.FitB="FitB"})(ha||(ha={}));ia=function(){function e(e){this.Ir=1;this.Zu=ha.Fit;this.Ad=this.Ch=this.si=this.wi=this.$f=this.Wf=null;this.set(e)}e.prototype.set=function(e){if(Object(ea.isObject)(e)){Object(ea.isUndefined)(e.page)||(this.Ir=Number(e.page));var aa=e.fit;Object(ea.isString)(aa)&&(this.Zu=aa);switch(aa){case "XYZ":Object(ea.isUndefined)(e.left)||(this.Wf=Number(e.left));Object(ea.isUndefined)(e.top)||(this.$f=Number(e.top));Object(ea.isUndefined)(e.zoom)||(this.Ch=Number(e.zoom));
|
|
break;case "FitBH":case "FitH":Object(ea.isUndefined)(e.top)||(this.$f=Number(e.top));break;case "FitBV":case "FitV":Object(ea.isUndefined)(e.left)||(this.Wf=Number(e.left));break;case "FitR":Object(ea.isUndefined)(e.left)||(this.Wf=Number(e.left));Object(ea.isUndefined)(e.top)||(this.$f=Number(e.top));Object(ea.isUndefined)(e.right)||(this.wi=Number(e.right));Object(ea.isUndefined)(e.bottom)||(this.si=Number(e.bottom));aa=Object(ea.min)([this.Wf,this.wi]);var w=Object(ea.min)([this.$f,this.si]),
|
|
y=Object(ea.max)([this.Wf,this.wi]),n=Object(ea.max)([this.$f,this.si]);this.$f=w;this.Wf=aa;this.si=n;this.wi=y}e=e.name;Object(ea.isString)(e)&&(this.Ad=e,this.Ir=null)}};e.prototype.serialize=function(e){var aa=document.createElementNS("","Dest"),w=document.createElementNS("",this.Zu||"Named"),y=this.$f||0,n=this.Wf||0,h=this.si||0,f=this.wi||0;e=e.inverse();n=e.ra({x:n,y:y});h=e.ra({x:f,y:h});y=Object(ea.isNull)(this.$f)?null:n.y;n=Object(ea.isNull)(this.Wf)?null:n.x;f=Object(ea.isNull)(this.wi)?
|
|
null:h.x;h=Object(ea.isNull)(this.si)?null:h.y;Object(ea.isNull)(this.Ir)||w.setAttribute("Page",Object(ea.toString)(this.Ir));Object(ea.isNull)(this.Ch)||w.setAttribute("Zoom",Object(ea.toString)(this.Ch));y&&w.setAttribute("Top",Object(ea.toString)(y));n&&w.setAttribute("Left",Object(ea.toString)(n));f&&w.setAttribute("Right",Object(ea.toString)(f));h&&w.setAttribute("Bottom",Object(ea.toString)(h));switch(this.Zu){case "XYZ":Object(ea.isNull)(n)&&w.setAttribute("Left","");Object(ea.isNull)(y)&&
|
|
w.setAttribute("Top","");Object(ea.isNull)(this.Ch)&&w.setAttribute("Zoom","");break;case "FitBH":case "FitH":Object(ea.isNull)(y)&&w.setAttribute("Top","");break;case "FitBV":case "FitV":Object(ea.isNull)(n)&&w.setAttribute("Left","");break;case "FitR":Object(ea.isNull)(n)&&w.setAttribute("Left",""),Object(ea.isNull)(y)&&w.setAttribute("Top",""),Object(ea.isNull)(f)&&w.setAttribute("Right",""),Object(ea.isNull)(h)&&w.setAttribute("Bottom","")}this.Ad&&w.setAttribute("Name",this.Ad);aa.appendChild(w);
|
|
return aa};e.prototype.deserialize=function(e,aa,w,y){aa=x.a.getAttribute(e,"PageNum");var n;var h=x.a.getAttribute(e,"Hpos");var f=x.a.getAttribute(e,"Vpos");e=e.getElementsByTagName("Dest");if(!aa||0<e.length)if(e=e[0],e=x.a.tT(e)){aa=x.a.getAttribute(e,"Page");var r=x.a.$I(e);f=x.a.getAttribute(e,"Top");h=x.a.getAttribute(e,"Left");var z=x.a.getAttribute(e,"Right");var fa=x.a.getAttribute(e,"Bottom");var da=x.a.getAttribute(e,"Zoom");"Named"===x.a.$I(e)&&(n=x.a.getAttribute(e,"Name"))}n||y?y&&
|
|
(f=Object(ea.isNull)(f)?void 0:f,h=Object(ea.isNull)(h)?void 0:h,z=Object(ea.isNull)(z)?void 0:z,fa=Object(ea.isNull)(fa)?void 0:fa):(y=w.aa.hc(aa),w=y.ra({x:h||0,y:f||0}),y=y.ra({x:z||0,y:fa||0}),f=Object(ea.isNull)(f)?void 0:w.y,h=Object(ea.isNull)(h)?void 0:w.x,z=Object(ea.isNull)(z)?void 0:y.x,fa=Object(ea.isNull)(fa)?void 0:y.y);this.set({page:Object(ea.isNull)(aa)?void 0:aa,fit:Object(ea.isNull)(r)?void 0:r,top:f,left:h,right:z,bottom:fa,zoom:Object(ea.isNull)(da)?void 0:da,name:n})};e.prototype.SQ=
|
|
function(e){var aa=this.$f||0,w=this.Wf||0,y=this.Ir||1;switch(this.Zu){case "XYZ":this.Ch&&e.Bu(this.Ch);e.ks(y,w,aa);break;case "Fit":case "FitB":case "FitV":case "FitBV":e.uf(y);e.lM(e.Bj.wF);break;case "FitH":case "FitBH":e.uf(y);e.lM(e.Bj.HN);e.ks(y,0,aa);break;case "FitR":var n=!Object(ea.isUndefined)(this.wi)&&!Object(ea.isNull)(this.wi)&&!Object(ea.isUndefined)(this.Wf)&&!Object(ea.isNull)(this.Wf),h=!Object(ea.isUndefined)(this.si)&&!Object(ea.isNull)(this.si)&&!Object(ea.isUndefined)(this.$f)&&
|
|
!Object(ea.isNull)(this.$f);n=n?Math.abs(this.wi-this.Wf):null;h=h?Math.abs(this.si-this.$f):null;n=n?e.jb().clientWidth/n:Infinity;h=h?e.jb().clientHeight/h:Infinity;h=Math.min(n,h);Infinity!==h&&e.Bu(h);e.ks(y,w,aa);break;default:e.uf(y)}};Object.defineProperty(e.prototype,"page",{get:function(){return this.Ir},set:function(e){this.set({page:e})},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"fit",{get:function(){return this.Zu},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,
|
|
"top",{get:function(){return Object(ea.isNull)(this.$f)?void 0:this.$f},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"left",{get:function(){return Object(ea.isNull)(this.Wf)?void 0:this.Wf},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"bottom",{get:function(){return Object(ea.isNull)(this.si)?void 0:this.si},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"right",{get:function(){return Object(ea.isNull)(this.wi)?void 0:this.wi},enumerable:!1,
|
|
configurable:!0});Object.defineProperty(e.prototype,"zoom",{get:function(){return Object(ea.isNull)(this.Ch)?void 0:this.Ch},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"name",{get:function(){return this.Ad},enumerable:!1,configurable:!0});return e}();ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(113);var x=e(45),ha=e(3),ca=e(99);e=function(e){function aa(w,y){var n=e.call(this,w)||this;x.a.call(n,w,ca.b);n.annotation=null;n.Bk=!1;n.name=y||ha.m.POLYGON;return n}Object(ea.c)(aa,
|
|
e);aa.prototype.mouseLeftDown=function(w){e.prototype.mouseLeftDown.call(this,w);this.annotation&&this.annotation instanceof ca.b&&(this.annotation.hy(aa.SNAP_DROP_AREA_SIZE),this.annotation.$U()&&(this.annotation.PX(),this.annotation.finish(),this.finish()))};aa.prototype.finish=function(){this.annotation&&this.aa.la.qb(this.annotation);e.prototype.finish.call(this)};aa.prototype.Yl=function(){return!0};aa.SNAP_DROP_AREA_SIZE=20;return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(45),ha=e(26),
|
|
ca=e(21);ia=e(114);var da=e(42),aa=e(3),w=e(172),y=e(14),n=e(4);e=function(h){function f(f,e){f=h.call(this,f,w.a)||this;f.name=e||aa.m.LINE;f.defaults.StartLineStyle="None";f.defaults.EndLineStyle="None";f.wd=null;f.sd=da.a.HOLD_TO_DRAW;f.eA=da.a.HOLD_TO_DRAW;f.sA=0;f.p3=400;f.xu=!1;return f}Object(ea.c)(f,h);f.prototype.mouseLeftDown=function(f){var e=0<this.aa.ta().Ed().length;this.xu=!1;if(this.annotation&&this.sd===da.a.TWO_CLICKS)return f=this.finish(),this.eA===da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID&&
|
|
(this.sd=da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID),f;this.Ub&&!this.overrideSelection||e?(this.annotation=null,ha.a.prototype.mouseLeftDown.call(this,f)):(this.sd===da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID&&(this.sd=da.a.TWO_CLICKS,this.sA=(new Date).getTime()),h.prototype.mouseLeftDown.call(this,f),this.isSelecting()||(this.annotation&&(this.annotation.Start=new n.b(this.pageCoordinates[0].x,this.pageCoordinates[0].y),this.annotation.th(this.defaults.StartLineStyle),this.annotation.Dm(this.defaults.EndLineStyle)),
|
|
this.wd&&this.annotation&&!e&&this.Ik(this.annotation.Start)))};f.prototype.mouseLeftUp=function(f){var e=this,n;this.sd===da.a.HOLD_TO_DRAW?h.prototype.mouseLeftUp.call(this,f):ha.a.prototype.mouseLeftUp.call(this,f);this.sA=0;this.eA===da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID&&this.sd===da.a.HOLD_TO_DRAW&&(this.sd=da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID);null===(n=this.pZ)||void 0===n?void 0:n.then(function(f){e.aa.la.qb(f);e.pZ=null})};f.prototype.mouseMove=function(f){var h=this;ha.a.prototype.mouseMove.call(this,
|
|
f);this.wd&&!this.annotation&&this.qs(f);var e=this.annotation;if(!this.isSelecting()&&e&&"undefined"!==typeof this.pageCoordinates){var r=this.pageCoordinates[0],w=this.pageCoordinates[1];if(null!==w&&null!==r&&r.pageNumber===w.pageNumber){0!==this.sA&&this.eA===da.a.TWO_CLICKS_HOLD_TO_DRAW_HYBRID&&(new Date).getTime()-this.sA>this.p3&&(this.sd=da.a.HOLD_TO_DRAW);var aa=y.a.ST(this.pageCoordinates,this.pageCoordinates[0].pageNumber,this.documentViewer),x=aa[0].x>aa[1].x,la=aa[0].x<=aa[1].x&&this.xu||
|
|
x&&!this.xu,na=this.xu?"End":"Start";aa=this.xu?"Start":"End";la?(e[na]=e[aa],e[aa]=new n.b(r.x,r.y),e.nla()):e[aa]=new n.b(w.x,w.y);f.shiftKey&&(r=ca.a.Math.Ew(e[na],e[aa]),e[aa]=new n.b(r.x,r.y));this.wd?this.pZ=this.Ik(e[aa]).then(function(){return Object(ea.b)(h,void 0,void 0,function(){var h,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:if(!la)return[3,2];h=this.aa.Ns(f);n=this;return[4,this.aa.KE(h.pageNumber,h.x,h.y,this.wd)];case 1:n.br=r.ea(),r.label=2;case 2:return this.aP(e,
|
|
f),[2,e]}})})}):this.aP(e,f);this.xu=x}}};f.prototype.Yl=function(){return this.yw()===da.a.TWO_CLICKS};f.prototype.aP=function(f,h){f.adjustRect();this.aa.la.qb(f);this.Bn(h)};f.sF=da.a;return f}(x.a);Object(da.b)(e);Object(ia.a)(e);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(45);var x=e(26),ha=e(3),ca=e(42),da=e(171);e=function(e){function w(w,n){w=e.call(this,w,da.a)||this;w.name=n||ha.m.ELLIPSE;w.sd=ca.a.HOLD_TO_DRAW;w.FV=!1;return w}Object(ea.c)(w,e);w.prototype.mouseLeftDown=function(w){var n=
|
|
0<this.aa.ta().Ed().length,h=this.annotation;this.sd===ca.a.TWO_CLICKS?this.Ub&&!this.overrideSelection||n?(this.annotation=null,x.a.prototype.mouseLeftDown.call(this,w)):h?this.finish():e.prototype.mouseLeftDown.call(this,w):e.prototype.mouseLeftDown.call(this,w)};w.prototype.mouseLeftUp=function(w){this.sd===ca.a.HOLD_TO_DRAW?e.prototype.mouseLeftUp.call(this,w):x.a.prototype.mouseLeftUp.call(this,w)};w.prototype.mouseMove=function(w){e.prototype.mouseMove.call(this,w);var n=this.annotation;if(w.shiftKey&&
|
|
n||this.FV&&n){w=n.Width;var h=n.Height;w=Math.abs(w<h?w:h);n.Width=w;n.Height=w;w=this.pageCoordinates[0];var f=this.pageCoordinates[1];h=f.x-w.x;f=f.y-w.y;var r=Math.abs(h),z=Math.abs(f);r=r<z?r:z;0>h&&(n.X=w.x-r);0>f&&(n.Y=w.y-r);this.aa.la.qb(this.annotation);n.MaintainAspectRatio=!0}else n&&(n.MaintainAspectRatio=!1)};w.prototype.Yl=function(){return this.yw()===ca.a.TWO_CLICKS};w.sF=ca.a;return w}(ia.a);Object(ca.b)(e);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(206),ha=e(26),ca=e(3),da=e(4),
|
|
aa=e(99),w=e(45),y=e(42);ia=e(114);e=e(133);x=function(e){function h(f,h){void 0===h&&(h=ca.m.RECTANGULAR_AREA_MEASUREMENT);f=e.call(this,f,h)||this;f.sd=y.a.HOLD_TO_DRAW;return f}Object(ea.c)(h,e);h.prototype.mouseLeftDown=function(f){this.sd===y.a.TWO_CLICKS&&this.annotation&&this.annotation.nK()?this.mouseDoubleClick(f):(e.prototype.mouseLeftDown.call(this,f),this.annotation&&(this.annotation.hy(null),this.annotation.uE(aa.a.Ou)))};h.prototype.mouseMove=function(f){var h;return Object(ea.b)(this,
|
|
void 0,void 0,function(){var e,n,r,w,y,aa,x,ca,ra,ba,Da,qa;return Object(ea.d)(this,function(z){switch(z.label){case 0:ha.a.prototype.mouseMove.call(this,f);this.wd&&!this.annotation&&this.qs(f);if(!this.annotation||null===(h=this.annotation.Ra())||void 0===h||!h.length||this.isSelecting())return[2];e=this.pageCoordinates[0];n=this.pageCoordinates[1];if(null===n||null===n.x||null===n.y||n.pageNumber!==this.annotation.ua())return[2];r=this.annotation;return this.wd?[4,this.Ik(n)]:[3,2];case 1:z.ea(),
|
|
z.label=2;case 2:return w=0>n.x-e.x,y=0>n.y-e.y,aa=r.Ra(),x=aa[0],1<aa.length&&(ca=aa[0],ra=aa[1],ba=aa[2],Da=aa[3],x=w?y?ba:ra:y?Da:ca),qa=new da.d(x.x,x.y,n.x,n.y),qa.normalize(),r.sj([new da.b(qa.x1,qa.y1),new da.b(qa.x2,qa.y1),new da.b(qa.x2,qa.y2),new da.b(qa.x1,qa.y2),new da.b(qa.x1,qa.y1)]),this.aa.la.qb(r),this.Bn(f),[2]}})})};h.prototype.mouseLeftUp=function(f){this.sd===y.a.HOLD_TO_DRAW?w.a.prototype.mouseLeftUp.call(this,f):e.prototype.mouseLeftUp.call(this,f)};h.prototype.Yl=function(){return this.sd===
|
|
y.a.TWO_CLICKS};h.DrawModes=y.a;return h}(x.a);Object(y.b)(x);Object(ia.a)(x);Object(e.a)(x);ba.a=x},function(ia,ba,e){function ea(e,x,da){return da?x?e.substr(0,x)+da+e.substr(x):da+e:e}function x(e){return!e||!e.length}e.d(ba,"b",function(){return x});e.d(ba,"a",function(){return ea})},function(ia,ba){ia=function(){function e(){this._length=this.Mj=this.qe=0}e.prototype.cv=function(e,x,ha){this.qe=e;this.Mj=x;this._length=ha};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(83);var x=e(48);
|
|
e=function(e){function ca(){return null!==e&&e.apply(this,arguments)||this}Object(ea.c)(ca,e);ca.prototype.testSelection=function(e,aa,w){return x.a.pl(e,aa,w)};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(53);var x=e(54),ha=e(84),ca=e(129),da=e(49),aa=e(35),w=e(36),y=e(92),n=e(6),h=e(12),f=window.Annotations||{};e=function(e){function r(f){var n=e.call(this,f)||this;n.ga=[];n.fv=!1;n["_xsi:type"]="Polyline";n.Subject=h.a.Gc("polyline");n.Eb={x:0,y:0};n.Jc={x:0,y:0};n.cd(f);return n}
|
|
Object(ea.c)(r,e);r.prototype.resize=function(h){var e=h.x1;h=h.y1;var n=e-this.X,r=h-this.Y;if(0!==n||0!==r){for(var w=0;w<this.ga.length;w++)this.ga[w].x+=n,this.ga[w].y+=r;Object.getOwnPropertyDescriptor(f.Annotation.prototype,"X").set.call(this,e);Object.getOwnPropertyDescriptor(f.Annotation.prototype,"Y").set.call(this,h)}};r.prototype.adjustRect=function(){this.Measure&&this.Td();f.Og.prototype.adjustRect.call(this)};r.prototype.Td=function(){var f=this.Bba(),h=this.Measure.distance;f=this.Kl(f*
|
|
this.Measure.axis[0].factor*h[0].factor,h);this.setContents(f)};r.prototype.finish=function(){this.adjustRect()};r.prototype.draw=function(f,h){this.dc(f,h);1<this.ga.length&&(f.lineJoin="round",f.save(),f.beginPath(),this.rs(f),this.ps(f),this.M8(f),f.stroke(),f.closePath(),this.dI(f),f.restore())};r.prototype.M8=function(f){f.moveTo(this.ga[0].x,this.ga[0].y);for(var h=1;h<this.ga.length;h++)f.lineTo(this.ga[h].x,this.ga[h].y)};r.prototype.rs=function(f){Object(da.d)(f,this.pf(),{eD:!0,stroke:this.StrokeThickness,
|
|
line:[this.ga[0],this.ga[1]]})};r.prototype.ps=function(f){Object(da.d)(f,this.Xg(),{eD:!1,stroke:this.StrokeThickness,line:[this.ga[this.ga.length-2],this.ga[this.ga.length-1]]})};r.prototype.dI=function(f){var h=this.Xg();Object(da.f)(this.pf())&&(f.beginPath(),this.rs(f),f.fill(),f.closePath());Object(da.f)(h)&&(f.beginPath(),this.ps(f),f.fill(),f.closePath())};r.prototype.th=function(f){this.mn=f};r.prototype.pf=function(){return this.mn||da.a.NONE};r.prototype.Dm=function(f){this.yr=f};r.prototype.Xg=
|
|
function(){return this.yr||da.a.NONE};r.prototype.Bba=function(){var f=this.Ra();return 2>f.length?0:f.reduce(function(h,e,n){if(0===n)return h;n=f[n-1];return h+Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},0)};r.prototype.serialize=function(f,h){if(this.bb)return this.bb;var e=w.a.prototype.serialize.apply(this,arguments),r=this.Ra();if(r&&0<r.length){var z=document.createElementNS("","vertices");z.textContent=n.a.Cm(r,h);e.appendChild(z)}e.setAttribute("head",this.pf());e.setAttribute("tail",
|
|
this.Xg());"PolyLineDimension"===this.IT&&this.Measure&&e.appendChild(n.a.Tt(this.Measure));e.removeAttribute("rotation");return e};r.prototype.deserialize=function(f,h){w.a.prototype.deserialize.apply(this,arguments);var e=f.getElementsByTagName("vertices");0<e.length&&(this.ga=n.a.In(e[0].textContent,h));this.th(f.getAttribute("head")||da.a.NONE);this.Dm(f.getAttribute("tail")||da.a.NONE);e=f.querySelector("measure");"PolyLineDimension"===f.getAttribute("IT")&&e&&(this.Measure=n.a.hs(e));this.Uc()||
|
|
this.adjustRect()};return r}(y.a);e.prototype.elementName="polyline";e.prototype.selectionModel=ca.a;Object(aa.a)(e.prototype,{},["Style","Dashes","Precision","Scale"]);Object(ia.c)(e.prototype,[new ha.a,new x.b]);ba.a=e;(window.Annotations||{}).qr=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(3),ca=e(8);ia=e(191);var da=e(35),aa=e(36),w=e(12),y=31,n=y,h=y,f=n<h?n:h,r=.5*n,z=.5*n;e=function(e){function fa(f){var h=e.call(this,f)||this;h["_xsi:type"]="Sticky";h.Subject=w.a.Gc("stickyNote");
|
|
h.Su=!0;h.JF=!0;h.NoZoom=!0;h.NoRotate=!0;h.Fj=null;h.Ej=null;h.Tm=new ca.a(255,255,0);h.Icon="Comment";h.Az=ha.h.NONE;h.AO=ha.j.REVIEW;h.Ys.Icon="Icon";h.cd(f);return h}Object(ea.c)(fa,e);Object.defineProperty(fa,"SIZE",{get:function(){return y},set:function(e){y=f=n=h=e;r=.5*n;z=.5*n},enumerable:!1,configurable:!0});fa.prototype.Uc=function(){return null};fa.prototype.draw=function(h){h.save();if(!this.$l())switch(h.strokeStyle="rgb(0, 0, 0)",h.fillStyle=this.StrokeColor.toString(),h.globalAlpha=
|
|
0===this.Opacity?0:this.Opacity||1,h.translate(this.X,this.Y),this.Icon){case fa.kb.INSERT:this.E8(h);break;case fa.kb.CIRCLE:var e=.15*f;this.Jp(h,e,.4*(f-2-e));break;case fa.kb.NEW_PARAGRAPH:this.P8(h);break;case fa.kb.HELP:this.C8(h);break;case fa.kb.KEY:this.F8(h);break;case fa.kb.CHECK:this.q8(h);break;case fa.kb.CHECKMARK:this.s8(h);break;case fa.kb.CROSS:this.bI(h);break;case fa.kb.CROSS_HAIRS:e=.075*f;var n=.4*(f-e);this.Jp(h,e,n);this.f9(h,n);break;case fa.kb.PARAGRAPH:this.T8(h);break;case fa.kb.RIGHT_ARROW:this.Y8(h);
|
|
break;case fa.kb.RIGHT_POINTER:this.Z8(h);break;case fa.kb.STAR:this.d9(h);break;case fa.kb.UP_ARROW:this.j9(h);break;case fa.kb.UP_LEFT_ARROW:this.k9(h);break;default:h.fillStyle=this.StrokeColor.toString(),40>this.StrokeColor.R&&40>this.StrokeColor.G&&40>this.StrokeColor.B&&(h.strokeStyle="#FFFFFF"),this.v8(h)}h.restore()};fa.prototype.E8=function(h){h.beginPath();h.moveTo(6,f-6);h.lineTo(r,6);h.lineTo(n-6,f-6);h.lineTo(6,f-6);h.fill();h.stroke()};fa.prototype.Jp=function(f,h,e){f.beginPath();f.arc(r,
|
|
z,e,0,2*Math.PI,!1);f.arc(r,z,e+h,0,2*Math.PI,!0);f.fill();f.beginPath();f.arc(r,z,e+h,0,2*Math.PI,!0);f.stroke();f.beginPath();f.arc(r,z,e,0,2*Math.PI,!1);f.stroke()};fa.prototype.P8=function(h){var e=.2*f,w=.6*f-2,z=.15*f,fa=2+w+z;fa=(f-fa)/2+fa;h.font=f-2-w-z+"px Arial";h.textAlign="center";h.beginPath();h.moveTo(2+e,2+w);h.lineTo(r,2);h.lineTo(n-2-e,2+w);h.lineTo(2+e,2+w);h.fillText("NP",r,fa);h.fill();h.stroke()};fa.prototype.T8=function(f){var e=.4*n,w=r+.05*n,fa=.2*h,y=r-.25*n,aa=.025*n;f.beginPath();
|
|
f.arc(r,z,e,0,2*Math.PI,!0);f.stroke();f.closePath();f.beginPath();f.moveTo(w,fa);f.lineTo(r+.1*n,fa);f.bezierCurveTo(w,.4*h,r+.175*n,.6*h,r+aa,.8*h);f.lineTo(r-aa,.8*h);f.quadraticCurveTo(w,.7*h,r+aa,.6*h);f.bezierCurveTo(y,.55*h,y,.35*h,r,.3*h);f.quadraticCurveTo(w,.25*h,w,fa);f.fill();f.stroke()};fa.prototype.C8=function(e){function n(f){f.moveTo(r-2,aa);f.lineTo(r+2-1.25,aa);f.bezierCurveTo(r,z,r+fa,.6*h,r+fa,ja);f.arc(r,ja,fa,2*Math.PI,7/6*Math.PI,!0);f.lineTo(r-y*Math.cos(Math.PI/6),ja-y*Math.sin(Math.PI/
|
|
6));f.arc(r,ja,y,7/6*Math.PI,2*Math.PI,!1);f.bezierCurveTo(r+fa-4,.6*h-4,r-4,z-4,r-2,aa)}var w=.5*f-2,fa=.2*h,y=fa-4,aa=.625*h,ja=.4*h;e.beginPath();e.arc(r,aa+4,2,Math.PI,-Math.PI,!0);n(e);e.arc(r,z,w,Math.PI,3*Math.PI,!1);e.fill();e.beginPath();e.arc(r,aa+4,2,Math.PI,-Math.PI,!0);e.stroke();e.beginPath();n(e);e.stroke();e.beginPath();e.arc(r,z,w,Math.PI,3*Math.PI,!1);e.stroke()};fa.prototype.F8=function(f){function e(f){var e=r-2.2-2,n=r-2.2;f.ellipse(r,h/4,7.5,6.5,0,1.5*Math.PI,.6*Math.PI,!0);
|
|
f.lineTo(n,h/4+7.5);for(var w=1;7>w;w+=2)f.lineTo(e,h/4+7.5+2*w),f.lineTo(n,h/4+7.5+2*(w+1));f.lineTo(n,h-2.5);f.lineTo(r,h-.5);f.lineTo(r+2.2,h-2.5);f.lineTo(r+2.2,h/4+6.5);f.ellipse(r,h/4,7.5,6.5,0,.4*Math.PI,-.5*Math.PI,!0)}var n=.175*Math.PI,w=.825*Math.PI;f.beginPath();f.moveTo(r,4.5);f.ellipse(r,1.5,4.5,8,0,n,w);f.lineTo(r,4.5);e(f);f.fill();f.beginPath();f.moveTo(r,4.5);f.ellipse(r,1.5,4.5,8,0,n,w);f.lineTo(r,4.5);f.stroke();f.beginPath();e(f);f.stroke()};fa.prototype.q8=function(f){var e=
|
|
.6*h;f.beginPath();f.moveTo(2,e);f.lineTo(.45*n,h-2);f.quadraticCurveTo(.7*n,.5*h,n-2,.25*h);f.quadraticCurveTo(.9*n,4,n-2-4.5,3.5);f.quadraticCurveTo(.6*n,.3*h,.4*n,h-2-8.25);f.lineTo(.175*n,e-4.5525);f.quadraticCurveTo(2,.5*h,2,e);f.fill();f.stroke()};fa.prototype.s8=function(f){f.beginPath();f.moveTo(2,z);f.lineTo(8.75,z);f.lineTo(13.3025,h-2-7.5);f.lineTo(n-2-6.75,.2*h);f.lineTo(n-2,.2*h);f.lineTo(14.0525,h-2);f.closePath();f.fillStyle="#666666";f.fill()};fa.prototype.f9=function(f,h){h-=5;f.beginPath();
|
|
f.moveTo(r-1.25,z-1.25-h);f.lineTo(r+1.25,z-1.25-h);f.lineTo(r+1.25,z-1.25);f.lineTo(r+1.25+h,z-1.25);f.lineTo(r+1.25+h,z+1.25);f.lineTo(r+1.25,z+1.25);f.lineTo(r+1.25,z+1.25+h);f.lineTo(r-1.25,z+1.25+h);f.lineTo(r-1.25,z+1.25);f.lineTo(r-1.25-h,z+1.25);f.lineTo(r-1.25-h,z-1.25);f.lineTo(r-1.25,z-1.25);f.lineTo(r-1.25,z-1.25-h);f.fill();f.stroke()};fa.prototype.bI=function(h){var e=6/Math.sqrt(2),n=.4*f/Math.sqrt(2);h.beginPath();h.moveTo(r,z-e);h.lineTo(r+n,z-e-n);h.lineTo(r+n+e,z-n);h.lineTo(r+
|
|
e,z);h.lineTo(r+n+e,z+n);h.lineTo(r+n,z+e+n);h.lineTo(r,z+e);h.lineTo(r-n,z+e+n);h.lineTo(r-n-e,z+n);h.lineTo(r-e,z);h.lineTo(r-n-e,z-n);h.lineTo(r-n,z-e-n);h.lineTo(r,z-e);h.closePath();h.fill();h.stroke()};fa.prototype.Y8=function(f){function h(){f.moveTo(2+.35*e,z-2);f.lineTo(2+.35*e,z+2);f.lineTo(2+e+.225*e,z+2);f.lineTo(r,z+.4*e);f.lineTo(r+.1*e+1.521,z+.55*e);f.lineTo(r+.7*e,z);f.lineTo(r+.1*e+1.521,z-.55*e);f.lineTo(r,z-.4*e);f.lineTo(2+e+.225*e,z-2);f.lineTo(2+.35*e,z-2)}var e=(n-4)/2;f.beginPath();
|
|
h();f.arc(r,z,e,-Math.PI,Math.PI);f.fill();f.beginPath();h();f.stroke();f.beginPath();f.arc(r,z,e,-Math.PI,Math.PI);f.stroke()};fa.prototype.Z8=function(f){f.beginPath();f.moveTo(n/3.75,z);f.lineTo(2,z+12.5);f.lineTo(n-2,z);f.lineTo(2,z-12.5);f.closePath();f.fill();f.stroke()};fa.prototype.d9=function(f){var h=r,e=z,n=Math.PI/2*3,w=Math.PI/5;f.beginPath();f.moveTo(h,e-14);for(var fa=0;5>fa;fa++){var y=h+14*Math.cos(n);var aa=e+14*Math.sin(n);f.lineTo(y,aa);n+=w;y=h+7.1*Math.cos(n);aa=e+7.1*Math.sin(n);
|
|
f.lineTo(y,aa);n+=w}f.lineTo(h,e-14);f.closePath();f.fill();f.stroke()};fa.prototype.j9=function(f){var e=.625*h;f.beginPath();f.moveTo(r,h-2);f.lineTo(r+4.5,h-2);f.lineTo(r+4.5,e);f.lineTo(r+10.125,e);f.lineTo(r,2);f.lineTo(r-10.125,e);f.lineTo(r-4.5,e);f.lineTo(r-4.5,h-2);f.closePath();f.fill();f.stroke()};fa.prototype.k9=function(f){f.translate(n/2,h/2);f.rotate(-Math.PI/4);f.translate(-n/2,-h/2);var e=.75*h,w=.55*e;f.beginPath();f.moveTo(r,e-2);f.lineTo(r+6,e-2);f.lineTo(r+6,w);f.lineTo(r+12,
|
|
w);f.lineTo(r,2-(h/2*Math.sqrt(2)-h/2));f.lineTo(r-12,w);f.lineTo(r-6,w);f.lineTo(r-6,e-2);f.closePath();f.fill();f.stroke()};fa.prototype.v8=function(h){var e=.75*f,n=.48*f,r=.29*f,w=.19*f,z=f-w;h.beginPath();h.moveTo(7,2);h.lineTo(f-5-2,2);h.quadraticCurveTo(f-2,2,f-2,7);h.lineTo(f-2,e-5);h.quadraticCurveTo(f-2,e,f-5-2,e);h.lineTo(n,e);h.lineTo(r,f-2);h.lineTo(r,e);h.lineTo(7,e);h.quadraticCurveTo(2,e,2,e-5);h.lineTo(2,7);h.quadraticCurveTo(2,2,7,2);h.fill();h.moveTo(w,.25*f);h.lineTo(z,.25*f);
|
|
h.moveTo(w,.41*f);h.lineTo(z,.41*f);h.moveTo(w,.57*f);h.lineTo(.68*f,.57*f);h.stroke()};fa.prototype.getState=function(){return this.State};fa.prototype.qy=function(f){this.State=f};fa.prototype.Yba=function(){return this.StateModel};fa.prototype.xka=function(f){this.StateModel=f};fa.prototype.serialize=function(f,h){if(this.bb)return this.bb;f=e.prototype.serialize.call(this,f,h);h={};this.Icon&&(h.icon=this.Icon);Object(x.isUndefined)(this.State)||Object(x.isNull)(this.State)||this.State===ha.h.NONE||
|
|
(h.state=this.State);Object(x.isUndefined)(this.StateModel)||Object(x.isNull)(this.State)||this.State===ha.j.REVIEW||(h.statemodel=this.StateModel);for(var n in h)f.setAttribute(n,h[n]);this.We(f,"state");this.We(f,"statemodel");return f};fa.prototype.deserialize=function(f,h,n){e.prototype.deserialize.call(this,f,h,n);this.Ej=null;this.Icon=f.getAttribute("icon");this.tj(f,"state");this.tj(f,"statemodel");this.NoRotate=this.NoZoom=!0;h=f.getAttribute("state");f=f.getAttribute("statemodel");this.State=
|
|
h?h:ha.h.NONE;this.StateModel=f?f:ha.j.REVIEW;this.By()};fa.kb={INSERT:"Insert",CIRCLE:"Circle",NEW_PARAGRAPH:"NewParagraph",HELP:"Help",KEY:"Key",CHECK:"Check",CHECKMARK:"Checkmark",CROSS:"Cross",CROSS_HAIRS:"CrossHair",PARAGRAPH:"Paragraph",RIGHT_ARROW:"RightArrow",RIGHT_POINTER:"RightPointer",STAR:"Star",UP_ARROW:"UpArrow",UP_LEFT_ARROW:"UpLeftArrow",COMMENT:"Comment"};return fa}(aa.a);e.prototype.elementName="text";e.prototype.selectionModel=ia.a;e.prototype=Object.assign(new aa.a,e.prototype);
|
|
Object(da.a)(e.prototype,{Width:{get:function(){return y},set:function(){}},Height:{get:function(){return y},set:function(){}},State:{get:function(){return this.Az},set:function(f){var h=Object.keys(ha.h).filter(function(h){return ha.h[h].toLowerCase()===f.toLowerCase()}),e=Object.keys(ha.e).filter(function(h){return ha.e[h].toLowerCase()===f.toLowerCase()});h&&h.length?(this.Az=ha.h[h],this.StateModel=ha.j.REVIEW):e&&e.length?(this.Az=ha.e[e],this.StateModel=ha.j.MARKED):(this.Az=ha.h.NONE,this.StateModel=
|
|
ha.j.REVIEW);this.Ma()}},StateModel:{get:function(){return this.AO},set:function(f){var h=Object.keys(ha.j).filter(function(h){return ha.j[h].toLowerCase()===f.toLowerCase()});this.AO=h&&h.length?ha.j[h]:ha.j.REVIEW;this.Ma()}}});ba.a=e;(window.Annotations||{}).yh=e},function(ia,ba,e){var ea=e(2);ia=function(){function e(e,x){this.zea=e;this.Aea=x;this.Pea=2;this.ns={};this.os=[];this.Gp=0;this.IL=!1}e.prototype.mH=function(e,x,da){var aa=this;this.ns[e]=x;var w=this.os.indexOf(e);0<=w&&this.os.splice(w,
|
|
1);this.os.push(e);this.JL();x.then(function(e){e=e.ca.length;aa.Gp+=e;x.ne=e;x.source=JSON.stringify(da);aa.JL()}).catch(function(e){return Object(ea.j)(e)})};e.prototype.gda=function(e){delete this.ns[e]};e.prototype.OX=function(){var e=this,x=this.os.shift(),da=this.ns[x];delete this.ns[x];(x=da.ne)?this.Gp-=x:(this.IL=!0,da=da.then(function(aa){e.Gp-=aa.ca.length;e.IL=!1;e.JL()}));da.then(function(e){return e.Md()});return!!x};e.prototype.JL=function(){if(!this.IL){for(;this.os.length>this.zea;)if(!this.OX())return;
|
|
for(;this.Gp>this.Aea&&!(this.os.length<=this.Pea)&&this.OX(););}};e.prototype.jaa=function(e){return this.ns[e]};e.prototype.Md=function(){this.ns.forEach(function(e){return e.Md()})};return e}();ba.a=ia},function(ia,ba,e){function ea(e){this.za=e;this.uk=0;this.Jb=[];this.im=[0,0]}var x=e(97),ha=e(19),ca=e(34),da=window;ea.prototype={Nt:function(e,w,y){this.m_c=w;this.be=y;w=e.operators;e=e.data;var n=w.length;this.SE=Object(x.b)(y);this.pla=1/this.SE;for(var h=0;h<n;++h)y=w[h],this[y].apply(this,
|
|
e[h]);this.pD=null},save:function(){this.m_c.save()},restore:function(){this.m_c.restore()},transform:function(e,w,y,n,h,f){this.m_c.transform(e,w,y,n,h,f)},translate:function(e,w){this.m_c.translate(e,w)},Jja:function(e,w){this.m_c.lineWidth=Math.max(e,w?this.pla/w:e)},Gja:function(e){this.m_c.lineCap=e},YS:function(e){var w=e.type;if(w)switch(w){case 1:e=this.createPattern(e);break;case 2:e=this.createLinearGradient(e);break;case 3:e=this.createRadialGradient(e);break;case 4:e=this.E6(e)}return e},
|
|
yka:function(e){this.m_c.strokeStyle=this.YS(e)},tja:function(e){this.m_c.fillStyle=this.YS(e)},nia:function(e){var w=this.Mba(e);e=w.xea;w=w.wea;for(var y,n=e.length,h=0;h<n;++h)y=e[h],this[y].apply(this,w[h])},xja:function(e){this.m_c.globalAlpha=e},FR:function(e,w){for(var y=w.length,n=0;n<y;++n){var h=w[n],f=w[++n];e.addColorStop(h,f)}},I6:function(e){var w=this.m_c,y=this.be,n=e.operators,h=this.SE*e.scale,f=e.w*h,r=e.h*h;2>h*e.minwh&&(h=2/e.minwh,f=e.w*h,r=e.h*h);var z=this.m_c.createCanvas();
|
|
z.width=f;z.height=r;f=z.getContext("2d");r=e.x||e.y;var fa={};r&&(fa.x=e.x,fa.y=e.y);fa.s=1/h;f.scale(h,h);r&&f.translate(-e.x,-e.y);e.strokeAdjust&&(this.m_c.lineWidth=h*e.strokeAdjust);this.Nt(n,f,this.be);this.m_c=w;this.be=y;return{canvas:z,transform:fa}},createPattern:function(e){if(this.pD&&e===this.pD.style)var w=this.pD;else w=this.I6(e),w.style=e,w.pattern=this.m_c.createPattern(w.canvas,e.tm),this.pD=w;e=w.transform;e.x&&this.m_c.translate(e.x,e.y);this.m_c.scale(e.s,e.s);return w.pattern},
|
|
createLinearGradient:function(e){var w=this.m_c.createLinearGradient(e.x0,e.y0,e.x1,e.y1);this.FR(w,e.stops);return w},createRadialGradient:function(e){var w=this.m_c.createRadialGradient(e.x0,e.y0,0,e.x1,e.y1,e.r);this.FR(w,e.stops);return w},E6:function(e){return this.m_c.createPattern(da.ci[e.name],e.tm)},C4:function(e){this.uk+=e},Fka:function(e){this.uk=e},addColorStop:function(e,w){this.spa.addColorStop(e,w)},beginPath:function(){this.m_c.beginPath()},closePath:function(){this.m_c.closePath()},
|
|
fill:function(e){e?this.m_c.fill(e):this.m_c.fill()},stroke:function(){this.m_c.stroke()},clip:function(e){e?this.m_c.clip(e):this.m_c.clip()},moveTo:function(e,w){this.m_c.moveTo(e,w)},lineTo:function(e,w){this.m_c.lineTo(e,w)},quadraticCurveTo:function(e,w,y,n){this.m_c.quadraticCurveTo(e,w,y,n)},bezierCurveTo:function(e,w,y,n,h,f){this.m_c.bezierCurveTo(e,w,y,n,h,f)},font:function(e){var w=e;1!==ha.b&&(w=parseFloat(e),w/=ha.b,w=e.replace(/\d+/,w));this.m_c.font=w},fillText:function(e,w,y){this.m_c.fillText(e,
|
|
this.uk+w,y)},strokeText:function(e,w,y){this.m_c.strokeText(e,this.uk+w,y)},measureText:function(e){this.uk+=this.m_c.measureText(e).width},drawImage:function(e,w,y){var n=window.ci[e];w*=this.SE;this.m_c.imageSmoothingEnabled=y?!0:2>=w;n&&this.m_c.drawImage(window.ci[e],0,0)},D8:function(e,w,y){if(e=window.ci[e]){w*=this.SE;this.m_c.imageSmoothingEnabled=y?!0:2>=w;y=Math.log(1/w)*da.Ya.WG;for(var n=w=1;n<y;++n){var h=this.m_c.createCanvas();if(2>e.height||2>e.width)break;h.width=.5*e.width;h.height=
|
|
.5*e.height;h.getContext("2d").drawImage(e,0,0,h.width,h.height);e=h;w*=2}this.m_c.scale(w,w);this.m_c.drawImage(e,0,0)}},Hja:function(e){this.m_c.lineJoin=e},yja:function(e){this.m_c.globalCompositeOperation=e},A4:function(e,w,y){this.Jb.push({xea:w,wea:y,name:e})},Mba:function(e){var w=this.Jb.length-1;do{var y=this.Jb[w];if(y.name===e)return y}while(0<=--w)},Sha:function(){this.Jb.pop()},Wha:function(e,w,y,n,h){var f=this.be.ra({x:w.x1,y:w.y1}),r=f.x;f=f.y;w=this.be.ra({x:w.x2,y:w.y2});var z=w.x,
|
|
fa=w.y;w=[];var aa=this.im[0],x=this.im[1],da=aa+this.m_c.canvas.width,ha=x+this.m_c.canvas.height;r<z?(r<aa&&(r=aa),z>da&&(z=da),w[0]=Math.floor(r),w[2]=Math.ceil(z-r)):(z<aa&&(z=aa),r>da&&(r=da),w[2]=Math.ceil(r-z),w[0]=Math.floor(z));f<fa?(f<x&&(f=x),fa>ha&&(fa=ha),w[1]=Math.floor(f),w[3]=Math.ceil(fa-f)):(fa<x&&(fa=x),f>ha&&(f=ha),w[3]=Math.ceil(f-fa),w[1]=Math.floor(fa));if(this.m_c.fZ()||0<w[2]&&0<w[3])r=this.m_c,f=this.m_c.createCanvas(),f.width=w[2],f.height=w[3],z=this.im,this.im=w,fa=f.getContext("2d"),
|
|
fa.globalAlpha=r.globalAlpha,fa.translate(-w[0],-w[1]),fa.$Q(),fa.transform(this.be.m_a,this.be.m_b,this.be.m_c,this.be.m_d,this.be.m_h,this.be.m_v),fa.transform.apply(fa,Md(e.mtx)),this.Nt(e,fa,this.be),n&&(e=this.m_c.createCanvas(),e.width=w[2],e.height=w[3],fa=e.getContext("2d"),fa.beginPath(),fa.moveTo(0,0),fa.lineTo(w[2],0),fa.lineTo(w[2],w[3]),fa.lineTo(0,w[3]),fa.closePath(),fa.translate(-w[0],-w[1]),fa.transform(this.be.m_a,this.be.m_b,this.be.m_c,this.be.m_d,this.be.m_h,this.be.m_v),fa.transform.apply(fa,
|
|
Md(n.mtx)),this.Nt(n,fa,this.be),fa.globalCompositeOperation="source-in",fa.setTransform(1,0,0,1,0,0),fa.drawImage(f,0,0),f=e),this.im=z,"source-over"===y||Object(ca.o)()?(r.save(),r.globalCompositeOperation=y,void 0!==h&&(r.globalAlpha=h),r.setTransform(1,0,0,1,w[0]-this.im[0],w[1]-this.im[1]),r.drawImage(f,0,0),r.restore()):fa.bO(r,y,{x:w[0]-this.im[0],y:w[1]-this.im[1]}),this.m_c=r},sla:function(e){this.m_c.tm(e)},miterLimit:function(e){this.m_c.miterLimit=e},V6:function(){this.m_c.cgb()},W6:function(){this.m_c.cge()},
|
|
setTransform:function(e,w,y,n,h,f){this.m_c.setTransform(e,w,y,n,h,f)},scale:function(e,w){this.m_c.scale(e,w)},q$:function(e,w,y){this.m_c.xw(e+" ",this.uk+w,y)},fillRect:function(e,w,y,n){this.m_c.fillRect(e,w,y,n)},r$:function(e,w,y){this.m_c.xcw(e+" ",this.uk+w,y)},CS:function(e,w,y){this.m_c.xc(e,this.uk+w,y)},X6:function(e){this.m_c.setLineDash(e)},Q6:function(e){var w=e.trans,y=e.shift,n=e.size,h=e.clipping,f=e.id;this.m_c.save();this.m_c.translate(w[0],w[1]);this.m_c.rotate(e.rot);h&&(this.m_c.beginPath(),
|
|
this.m_c.rect(h[0],h[1],h[2],h[3]),this.m_c.clip());void 0!==e.opacity&&(this.m_c.globalAlpha=e.opacity);f&&0<f.length?this.m_c.drawImage(window.ci[f],y[0],y[1],n[0],n[1]):(this.m_c.fillStyle="#CCCCCC",this.m_c.fillRect(y[0],y[1],n[0],n[1]));this.m_c.restore()},$ea:function(e,w,y,n,h,f,r){var z=0;e||(e=String.fromCodePoint.apply(null,w));var fa=this.m_c.measureText(e).width;h/=fa;this.m_c.save();this.m_c.transform(h*n[0],h*n[1],h*n[2],h*n[3],n[4],n[5]);if(y)for(var aa=0;aa<y.length;aa+=2){fa=y[aa];
|
|
var x=y[aa+1];r&&(f=r[aa/2]);for(var da=0;da<x;da++){n=w?String.fromCodePoint.apply(null,w.slice(z,z+fa)):e.slice(z,z+fa);z+=fa;var ca=this.m_c.measureText(n).width+f/h;this.m_c.fillText(n,0,0);this.m_c.transform(1,0,0,1,ca,0)}}else this.m_c.fillText(e,0,0);this.m_c.restore()}};ea.prototype[0]=ea.prototype.save;ea.prototype[1]=ea.prototype.restore;ea.prototype[2]=ea.prototype.transform;ea.prototype[3]=ea.prototype.translate;ea.prototype[4]=ea.prototype.Jja;ea.prototype[5]=ea.prototype.Gja;ea.prototype[6]=
|
|
ea.prototype.yka;ea.prototype[7]=ea.prototype.tja;ea.prototype[8]=ea.prototype.xja;ea.prototype[9]=ea.prototype.A4;ea.prototype[10]=ea.prototype.Sha;ea.prototype[11]=ea.prototype.C4;ea.prototype[12]=ea.prototype.nia;ea.prototype[13]=ea.prototype.beginPath;ea.prototype[14]=ea.prototype.closePath;ea.prototype[15]=ea.prototype.fill;ea.prototype[16]=ea.prototype.stroke;ea.prototype[17]=ea.prototype.clip;ea.prototype[18]=ea.prototype.moveTo;ea.prototype[19]=ea.prototype.lineTo;ea.prototype[20]=ea.prototype.quadraticCurveTo;
|
|
ea.prototype[21]=ea.prototype.bezierCurveTo;ea.prototype[22]=ea.prototype.font;ea.prototype[23]=ea.prototype.fillText;ea.prototype[24]=ea.prototype.measureText;ea.prototype[25]=ea.prototype.Fka;ea.prototype[26]=ea.prototype.miterLimit;ea.prototype[27]=ea.prototype.Hja;ea.prototype[28]=ea.prototype.drawImage;ea.prototype[29]=ea.prototype.setTransform;ea.prototype[30]=ea.prototype.scale;ea.prototype[31]=ea.prototype.q$;ea.prototype[32]=ea.prototype.V6;ea.prototype[33]=ea.prototype.W6;ea.prototype[34]=
|
|
ea.prototype.yja;ea.prototype[35]=ea.prototype.sla;ea.prototype[36]=ea.prototype.Wha;ea.prototype[37]=ea.prototype.fillRect;ea.prototype[39]=ea.prototype.r$;ea.prototype[38]=ea.prototype.CS;ea.prototype[40]=ea.prototype.strokeText;ea.prototype[41]=ea.prototype.X6;ea.prototype[42]=ea.prototype.Q6;ea.prototype[43]=ea.prototype.$ea;da.Ya.xY=function(e){!0===e&&(e=1.4);da.Ya.WG=e;ea.prototype[28]=e?ea.prototype.D8:ea.prototype.drawImage};ba.a=ea},function(ia,ba,e){var ea=e(27),x=e(170);ba.a=function(){function e(){}
|
|
e.XS=function(e){var da,aa;void 0===da&&(da=ea.a.handleWidth);void 0===aa&&(aa=ea.a.handleHeight);return new x.a(e.x3,e.y1,da,aa,!0)};e.aU=function(e){var da,aa;void 0===da&&(da=ea.a.handleWidth);void 0===aa&&(aa=ea.a.handleHeight);return new x.a(e.x1,e.y3,da,aa,!1)};return e}()},function(ia,ba,e){function ea(e,h){return new Promise(function(f,n){var r,fa,y;return $h(function(z){switch(z.La){case 1:return z.Hv=2,h=h||{},Af(z,Object(w.c)(e,h),4);case 4:return r=z.wf,Af(z,r.getFileData({downloadType:"pdf"}),
|
|
5);case 5:fa=z.wf;f(fa);rg(z,0);break;case 2:y=sg(z),n(y),z.La=0}})})}function x(e,h){Object(ca.d)("8.3","office2PDFBuffer",["officeToPDFBuffer"]);return ea(e,h)}function ha(e,h){if(!y){var f={zoa:function(f,h){Object(ca.h)("EmsWorkerError: "+f+", "+h)}};y=createPromiseCapability();var n=function(h){Object(aa.g)(h,f);Object(aa.f)(h,f,e).then(function(f){("undefined"===typeof window?this:window).PDFNet.messageHandler=f;y.resolve()})};h&&"auto"!==h?n(h):Object(da.e)().then(n)}return y.promise}e.d(ba,
|
|
"a",function(){return ha});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea});var ca=e(2),da=e(56),aa=e(37),w=e(55),y},function(ia,ba,e){var ea=e(54);ia=function(){function e(e,x){if("string"===typeof e){var da=e.match(ea.c);if(da){var aa=da[2];da=[da[1].split(" "),aa.split(" ")];this.gn={value:Number(da[0][0]),unit:da[0][1]};this.tn={value:Number(da[1][0]),unit:da[1][1]}}}void 0!==e.pageScale&&(this.gn=e.pageScale,this.tn=e.worldScale);var w;2===(null===(w=e[0])||void 0===w?void 0:
|
|
w.length)&&(this.gn={value:e[0][0],unit:e[0][1]},this.tn={value:e[1][0],unit:e[1][1]});x&&(this.VP=x)}e.prototype.mJ=function(){return[[this.gn.value,this.gn.unit],[this.tn.value,this.tn.unit]]};e.prototype.toString=function(){return this.gn.value+" "+this.gn.unit+" = "+this.tn.value+" "+this.tn.unit};Object.defineProperty(e.prototype,"precision",{get:function(){return this.VP},set:function(e){this.VP=e},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"pageScale",{get:function(){return this.gn},
|
|
set:function(e){this.gn=e},enumerable:!1,configurable:!0});Object.defineProperty(e.prototype,"worldScale",{get:function(){return this.tn},set:function(e){this.tn=e},enumerable:!1,configurable:!0});return e}();ba.a=ia},function(ia,ba,e){function ea(f,h){void 0===h&&(h={});var e=Object(r.a)("wvsQueryParameters");e=x("",e);e=x(e,h);return""+f+e}function x(f,h){for(var e in h){var n=h[e];f=""===f?"?"+e+"="+n:f+("&"+e+"="+n)}return f}function ha(f){return f.getAllResponseHeaders().split(/[\r\n]+/g).reduce(function(f,
|
|
h){if(h&&h.length){h=h.split(":");var e=h.shift().toLowerCase().trim();e&&(f[e]=h[1]?h.join(":").trim():h[0]&&h[0].trim())}return f},{})}function ca(f){return{url:f.responseURL,status:f.status,statusText:f.statusText,headers:ha(f),contentLength:f.response?f.response.byteLength:0,rawResponse:f.response}}function da(f,h,e){for(var n=-1,r=0;r<e.length;r++)Object(w.isEqual)(e[r].range,h)&&Object(w.isEqual)(e[r].url,f)&&(n=r);-1===n&&Object(y.j)(h+" not found in queue");return n}function aa(f){var h=f.request,
|
|
e=f.range;return function(r,w){if(r){if(r.code===n.a.ABORTED){Object(y.b)("Request for range "+e.start+"-"+e.stop+" was aborted");return}return f.Vg.forEach(function(f){f("Error retrieving file: "+h.url+". Received return status "+r.status+".",w,h)})}return f.Vg.forEach(function(f){try{f(!1,w,h)}catch(ra){f(ra.message)}})}}e.d(ba,"d",function(){return aa});e.d(ba,"c",function(){return da});e.d(ba,"b",function(){return ca});e.d(ba,"e",function(){return ha});e.d(ba,"a",function(){return ea});var w=
|
|
e(0);e.n(w);var y=e(2),n=e(245),h=e(17),f=e(34),r=e(40),z=window,fa=Array(1024);z.QT=function(e,n,r,y){n=n||0;r=r||!1;var aa="";var x=!(Object(w.isNull)(e.responseBody)||Object(w.isUndefined)(e.responseBody));if(10===h.i&&x||!z.Uint8Array&&x){x=e.responseBody;y=Object(w.isArray)(x)?x:(new z.VBArray(x)).toArray();n=y.length;e=Array(n);for(r=0;r<n;r++)e[r]=y[r]&255;r=n/1024+1;for(n=0;n<r;n++)aa+=String.fromCharCode.apply(null,e.slice(1024*n,1024*n+1024))}else if(!z.Uint8Array||r||Object(w.isUndefined)(e.response))for(x=
|
|
e.responseText,e=fa,r=n;r<y;){for(n=0;1024>n&&r<y;++n)e[n]=x.charCodeAt(r)&255,++r;aa+=String.fromCharCode.apply(null,e.slice(0,n))}else{x=e.response;y=new z.Uint8Array(x);x=y.length;r=n;if(Object(f.q)())return y.subarray(n);for(e=fa;r<x;){n=0;for(var ja=Math.min(r+1024,x);r<ja;n++,r++)e[n]=y[r];aa+=String.fromCharCode.apply(null,1024>n?e.slice(0,n):e)}}return aa}},,function(ia,ba){ia=function(){function e(){}e.prototype.C_=function(){};e.prototype.addColorStop=function(){};return e}();ba.a=ia},function(ia,
|
|
ba,e){var ea=e(2),x=e(80),ha=e(134),ca=e(115),da=e(95),aa=e(39),w=e(116),y=e(74);ia=function(){function e(){this.zf=[];this.we=[];this.ub=[];this.Oe=!1;this.CG=null;this.Rb=""}e.prototype.clear=function(){this.Rb="";Object(aa.b)(this.we);Object(aa.b)(this.ub);this.Oe=!1};e.prototype.md=function(){this.we=[];this.ub=[];this.Oe=!1};e.prototype.T4=function(e){function f(f){for(var h=f.length,n=0;n<h;n+=8){var r=e.ra({x:f[n],y:f[n+1]}),w=e.ra({x:f[n+2],y:f[n+3]}),y=e.ra({x:f[n+4],y:f[n+5]}),aa=e.ra({x:f[n+
|
|
6],y:f[n+7]}),da=new x.a;da.fQ(r.x,r.y,w.x,w.y,y.x,y.y,aa.x,aa.y);r=da.Wn();f[n]=r.x1;f[n+1]=r.y1;f[n+2]=r.x2;f[n+3]=r.y2;f[n+4]=r.x3;f[n+5]=r.y3;f[n+6]=r.x4;f[n+7]=r.y4}}f(this.ub);this.zf.forEach(function(e){f(e.$c);e.Zc.forEach(function(e){f(e.$c);e.Lj.forEach(function(e){f(e)})})})};e.prototype.Lx=function(e){this.ub=e.m_Quads;this.we=e.m_Offsets;this.Rb=e.m_Str;this.Oe=e.m_Ready;this.zf=function(f,e,h){function n(f,e){return f.slice(e,e+8)}function r(){var r=new ca.a;r.Jd=f[aa+1];r.Oc=ba;ba++;
|
|
var w=f[aa+1];r.Ea=h.slice(w,w+f[aa+2]);r.lv=w;w=f[aa];for(var z=0;z<w;++z)r.Lj.push(n(e,8*(r.Jd+z)));ea&&(ea.nA=r);return ea=r}function w(e){var h=r(),n=f[aa],w=f[aa+3],z=f[aa+4];if(w===z){w=Math.min(e.na,e.oa);z=Math.max(e.na,e.oa);var fa=h.Lj[0];e=h.Lj[n-1];e=[fa[1],fa[3],fa[5],fa[7],e[1],e[3],e[5],e[7]];fa=Math.min.apply(null,e);e=Math.max.apply(null,e);for(var y=0;y<n;++y)for(var x=h.Lj[y],ja=Math.min(x[0],x[2],x[4]),da=0;8>da;da+=2)x[da]=x[da]===ja?w:z}else for(fa=Math.min(e.ja,e.ka),e=Math.max(e.ja,
|
|
e.ka),y=0;y<n;++y)for(x=h.Lj[y],ja=Math.min(x[1],x[3],x[5]),da=1;8>da;da+=2)x[da]=x[da]===ja?e:fa;n=h.$c;da=h.Lj[0];y=da[2]-da[0];da=da[3]-da[1];0<y?(n[0]=w,n[1]=e,n[2]=z,n[3]=e,n[4]=z,n[5]=fa,n[6]=w,n[7]=fa):0>y?(n[0]=w,n[1]=fa,n[2]=z,n[3]=fa,n[4]=z,n[5]=e,n[6]=w,n[7]=e):0<da?(n[0]=w,n[1]=fa,n[2]=w,n[3]=e,n[4]=z,n[5]=e,n[6]=z,n[7]=fa):0>da?(n[0]=z,n[1]=e,n[2]=z,n[3]=fa,n[4]=w,n[5]=fa,n[6]=w,n[7]=e):(n[0]=w,n[1]=e,n[2]=z,n[3]=e,n[4]=z,n[5]=fa,n[6]=w,n[7]=fa);aa+=5;return h}function z(){var e=r();
|
|
e.$c=n(f,aa+3);aa+=11;return e}function y(e){var h=new ha.a;h.Oc=e;var r=0<f[aa];if(r){var fa=6;e=f[aa];var y=h.$c,ja=f.slice(aa+2,aa+4),ka=f.slice(aa+4,aa+6);y[0]=ja[0];y[1]=ja[1];y[2]=ka[0];y[3]=ja[1];y[4]=ka[0];y[5]=ka[1];y[6]=ja[0];y[7]=ka[1]}else fa=10,e=-f[aa],h.$c=n(f,aa+2);r=r?w:z;y=new da.a;h.Je(y);aa+=fa;ea=null;for(fa=0;fa<e;++fa)h.Zc.push(r(y));h.Ea=h.Zc.map(function(f){return f.Ea}).join(" ");h.lv=h.Zc[0]?h.Zc[0].lv:0;x&&(x.mA=h);return x=h}var aa=0,x=null,ea=null,ba=0;return function(){var e=
|
|
[],h=f[aa];aa++;for(var n=0;n<h;++n)e.push(y(n));return e}()}(e.m_Struct,this.ub,this.Rb)};e.prototype.$z=function(e){for(var f="",h=0,n,w,y;h<e.length;)n=e.charCodeAt(h),9===n?(f+=String.fromCharCode(10),h++):128>n?(f+=String.fromCharCode(n),h++):191<n&&224>n?(w=e.charCodeAt(h+1),f+=String.fromCharCode((n&31)<<6|w&63),h+=2):(w=e.charCodeAt(h+1),y=e.charCodeAt(h+2),f+=String.fromCharCode((n&15)<<12|(w&63)<<6|y&63),h+=3);return f};e.prototype.WP=function(e,f){var h=new ca.a;e=e.split(",");e=Object(w.a)(e);
|
|
for(var n=-1;e.gm();){var fa=e.current.split(":"),y=parseInt(fa[0],10),x=0;1<fa.length&&(x=parseInt(fa[1],10));n===y&&(++y,--x);for(n=y+x;y<=n;y++){fa=f.cba(y);x=fa.D3;h.JA(x,fa.le());for(var da=0;da<x.length;++da)this.we.push(y),Object(aa.a)(this.ub,fa.le())}}return h};e.prototype.parse=function(e,f){var h=0,n=0,fa=0;do{for(var y;e.advance();)if(y=e.Oa(),"F"===y)e.Ka();else if("P"===y)e.Ka();else if("L"===y){e.Ka();y=new ha.a;y.nv(h++);0<this.zf.length&&this.zf[this.zf.length-1].LY(y);this.zf.push(y);
|
|
var x=e.current.textContent.split(" ");for(x=Object(w.a)(x);x.gm();){var da=x.current;if(0<y.fk()){this.Rb+=" ";this.we.push(-1);fa++;var ca=Array(8);y.Dw().le(ca);Object(aa.a)(this.ub,ca)}da=this.WP(da,f);da.nv(n++);da.jQ(fa);y.CQ(da);this.Rb+=da.Ea;fa+=da.ek()}this.Rb+="\n";this.we.push(-2);fa++;Object(ea.a)(0<y.fk(),"No words in line");0<y.fk()&&(ca=Array(8),y.Dw().le(ca),Object(aa.a)(this.ub,ca))}else Object(ea.h)("XML parser has encountered a symbol it can't process.");e.$a()}while(e.depth)};
|
|
e.prototype.r6=function(e,f){var h=0,n=0,fa=0;this.CG=[];for(var y=0;y<e.length;++y)for(var x=e[y],da=0;da<x.length;++da)for(var ca=x[da],la=0;la<ca.length;++la){var na=new ha.a;na.nv(h++);0<this.zf.length&&this.zf[this.zf.length-1].LY(na);this.zf.push(na);var ra=ca[la].split(" ");for(ra=Object(w.a)(ra);ra.gm();){var ba=ra.current;if(0<na.fk()){this.CG.push(this.Rb.length);this.Rb+=" ";this.we.push(-1);fa++;var Da=Array(8);na.Dw().le(Da);Object(aa.a)(this.ub,Da)}ba=this.WP(ba,f);ba.nv(n++);ba.jQ(fa);
|
|
na.CQ(ba);this.Rb+=ba.Ea;fa+=ba.ek()}this.CG.push(this.Rb.length);this.Rb+="\n";this.we.push(-2);fa++;Object(ea.a)(0<na.fk(),"No words in line");0<na.fk()&&(Da=Array(8),na.Dw().le(Da),Object(aa.a)(this.ub,Da))}this.Oe=!0};e.prototype.xL=function(e,f){try{var h=new y.a(e);Object(ea.a)("TextData"===h.Oa(),"XML parser has encountered a symbol it can't process.");"TextData"===h.Oa()&&(h.Ka(),this.parse(h,f))}catch(z){Object(ea.j)("TextSelection has encountered an error: "+z.message);return}this.Oe=!0};
|
|
e.prototype.ready=function(){return this.Oe};e.prototype.Aw=function(){return this.zf.length?this.zf[0]:new ha.a};e.prototype.getLine=function(e){return this.zf.length?this.zf[e]:new ha.a};e.prototype.getLines=function(){return this.zf};e.prototype.nf=function(){return this.ub};return e}();ba.a=ia},function(ia,ba,e){var ea=e(80),x=e(183),ha=e(116),ca=e(39),da=e(153);ia=function(){function e(){this.iA=null}e.N2=function(e,y){return e.qe<y.qe||e.qe===y.qe&&e.Mj<y.Mj||e.qe===y.qe&&e.Mj===y.Mj&&e._length<
|
|
y._length?-1:e.qe===y.qe&&e.Mj===y.Mj&&e._length===y._length?0:1};e.prototype.mG=function(){this.iA=[]};e.prototype.NF=function(e){this.iA.push(e)};e.prototype.J2=function(){Object(ca.b)(this.iA)};e.prototype.O2=function(w,y){Object(ca.b)(y);for(var n=[],h=Object(ha.a)(this.iA);h.gm();){var f=h.current;n.push(f)}n.sort(e.N2);h="";for(var r,z=[],fa=[],aa=-2147483648,ja=0;ja<n.length;++ja)if(f=n[ja],!(0>f.qe||f.qe>=w.length||0>f.Mj||0>=f._length)){if(-1!==f.qe){z=w[f.qe].text;if(null===z||!z.ready())break;
|
|
h=z.Rb;r=z.we;z=z.nf();if(!h.length||h.length!==r.length||8*h.length!==z.length)continue;aa=-2147483648;for(var ba=Object(ha.a)(r);ba.gm();){var ma=ba.current;ma>aa&&(aa=ma)}Object(ca.b)(fa);for(var la=0;la<aa+1;++la)fa.push(-1);for(la=0;la<r.length;++la)ba=r[la],0<=ba&&(fa[ba]=la)}r=Array(8);for(ba=f.Mj;ba<f.Mj+f._length&&!(ba>aa);++ba)if(ma=fa[ba],!(0>ma)){for(la=0;8>la;++la)r[la]=z[8*ma+la];var na=!1;if(1<=y.length&&(la=y[y.length-1],la.qe===f.qe)){var ra=r[0]-r[2],sa=r[1]-r[3];ea.a.qA(la.vi,r,
|
|
!0,1.33*Math.sqrt(ra*ra+sa*sa))&&(na=h.charAt(ma),Object(da.a)(la.MG,la.MG.length,na),na=!0)}na||(na=h.charAt(ma),ma=new x.a,ma.cv(f.qe,na,r),y.push(ma))}}};return e}();ba.a=ia},function(ia,ba,e){var ea=e(95);ba.a=function(){return function(){this.Ah=new ea.a;this.DG=new ea.a;this.lA=this.kA=null}}()},function(ia,ba){ba.a=function(){return function(e,ea){this.kP=e;this.EP=ea;this.kP=e;this.EP=ea}}()},function(ia,ba,e){var ea=e(1);ia=e(27);var x=e(4),ha=e(89),ca=e(3);e=function(e){function aa(w,y,
|
|
n,h,f){var r=e.call(this,w,y,n,h)||this;r.x=w;r.y=y;r.width=n;r.height=h;r.Vi=f;r.Vi=f;return r}Object(ea.c)(aa,e);aa.prototype.kC=function(e){return e%2===ca.f.E_0?"ew-resize":"ns-resize"};aa.prototype.getDimensions=function(e,y,n){e=this.width/n;n=this.height/n;return this.Vi?new x.d(this.x-.5*e,this.y,this.x+.5*e,this.y+n):new x.d(this.x-.5*e,this.y-n,this.x+.5*e,this.y)};aa.prototype.move=function(e,y,n,h,f,r){n=e.nf();y=n[0];if("undefined"===typeof y)return!1;n=n[n.length-1];r=new ha.a(r,null);
|
|
r.annotation=e;r.pageCoordinates[0]=f;h=Math.min(y.x1,y.x2,y.x3,y.x4);e=Math.max(n.x1,n.x2,n.x3,n.x4);y=Math.min(y.y1,y.y2,y.y3,y.y4);n=Math.max(n.y1,n.y2,n.y3,n.y4);this.Vi?y={x:h+1,y:y,pageNumber:f.pageNumber}:(y=f,f={x:e-1,y:n,pageNumber:f.pageNumber});if(f.y<y.y)return!1;(y.x<f.x||y.y<f.y)&&r.select(y,f);return!0};aa.prototype.draw=function(w,y,n,h){var f=new x.b(0,0),r=new x.b(0,0);this.dc(w,h);var z=y.nf();this.Vi?(z=z[z.length-1],f.x=z.x2,f.y=z.y2,r.x=z.x3,r.y=z.y3):(z=z[0],f.x=z.x1,f.y=z.y1,
|
|
r.x=z.x4,r.y=z.y4);w.beginPath();w.moveTo(f.x,f.y);w.lineTo(r.x,r.y);w.stroke();e.prototype.draw.call(this,w,y,n,h)};return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(4);ia=e(54);var ha=e(53),ca=e(84),da=e(83),aa=e(35),w=e(14),y=e(6),n=e(36),h=e(12);e=function(f){function e(e){var n=f.call(this,e)||this;n["_xsi:type"]="Ellipse";n.Subject=h.a.Gc("ellipse");var r=n.getRectPadding();n.fringe=new x.d(r,r,r,r);n.cd(e);n.Mb=void 0;return n}Object(ea.c)(e,f);e.prototype.move=function(f){var e,h=
|
|
this.Sa();this.Mb||(this.Mb=h);var n=f.x1-h.x1;h=f.y1-h.y1;this.cc(f);this.Mb.translate(n,h);"EllipseDimension"===this.IT&&(null===(e=this.measurementCaptionOptions)||void 0===e?0:e.captionRect)&&this.measurementCaptionOptions.captionRect.translate(n,h)};e.prototype.$d=function(f){void 0===f&&(f=this.Sa());if(0===this.Rotation)return f=this.Sa(),{x:f.x1,y:f.y1,width:f.x2-f.x1,height:f.y2-f.y1};var e=f.x2-f.x1,h=f.y2-f.y1,n=w.a.tb(this.Rotation);0===n%(Math.PI/4)&&(n+=.01);f=Math.cos(n);n=Math.sin(n);
|
|
var r=f/n;e/=2;h=Math.sqrt((Math.pow(h/2,2)-Math.pow(e,2)*Math.pow(r,2))/(Math.pow(n,2)-Math.pow(f,2)*Math.pow(r,2)));f=Math.sqrt((Math.pow(e,2)-Math.pow(h,2)*Math.pow(f,2))/Math.pow(n,2));this.oe||(this.mh(),this.di());e=this.oe;return{x:e.X-h,y:e.Y-f,width:2*h,height:2*f}};e.prototype.resize=function(f){var e,h=this.$d(f),n=h.x,r=h.y,w=h.width;h=h.height;0>=h||isNaN(h)||0>=w||isNaN(w)||(this.cc(f),this.Mb=new x.d(n,r,n+w,r+h),"EllipseDimension"===this.IT&&(null===(e=this.measurementCaptionOptions)||
|
|
void 0===e?0:e.isEnabled)&&(this.xE(),this.Td()))};e.prototype.draw=function(f,e){var h;this.oe||(this.mh(),this.di());this.fI(f,e);"EllipseDimension"===this.IT&&(null===(h=this.measurementCaptionOptions)||void 0===h?0:h.isEnabled)&&(f.save(),e=this.dk(),f.translate(e.X,e.Y),f.rotate(-w.a.tb(this.captionRotation)),f.translate(-e.X,-e.Y),this.BY(f),this.hS(f),f.restore())};e.prototype.Yn=function(f){void 0===f&&(f=w.a.tb(this.Rotation));if(0===this.Rotation)return this.Sa();var e=(this.Mb?this.Mb.y2-
|
|
this.Mb.y1:this.wa())/2,h=(this.Mb?this.Mb.x2-this.Mb.x1:this.Ba())/2,n=Math.cos(f),r=Math.sin(f);f=Math.sqrt(Math.pow(e,2)*Math.pow(n,2)+Math.pow(h,2)*Math.pow(r,2));e=Math.sqrt(Math.pow(e,2)*Math.pow(r,2)+Math.pow(h,2)*Math.pow(n,2));this.oe||this.mh();h=this.oe;return new x.d(h.X-e,h.Y-f,h.X+e,h.Y+f)};e.prototype.zl=function(f){var e=this.Mb?this.Mb.x1:this.X,h=this.Mb?this.Mb.y1:this.Y,n=e+this.fringe.x1,r=h+this.fringe.y1,z=(this.Mb?this.Mb.x2-this.Mb.x1:this.Ba())-this.fringe.x1-this.fringe.x2,
|
|
y=(this.Mb?this.Mb.y2-this.Mb.y1:this.wa())-this.fringe.y1-this.fringe.y2;z=Math.max(z,1);y=Math.max(y,1);var aa=Math.min(z,y);f.lineWidth>=aa&&(f.lineWidth=Math.max(aa-1,1));f.lineWidth*=2;aa=z/y;isNaN(aa)||Infinity===aa||(f.save(),f.translate(e+z/2,h+y/2),f.rotate(-w.a.tb(this.Rotation)),f.translate(-(e+z/2),-(h+y/2)),f.translate(n+(1-aa)*z/2,r),f.scale(aa,1),f.beginPath(),f.arc(.5*z,.5*y,Math.max(.5*y,0),0,2*Math.PI,!1),f.closePath(),f.restore(),f.clip())};e.prototype.getRectPadding=function(){return 0};
|
|
e.prototype.adjustRect=function(){"EllipseDimension"===this.IT&&this.Measure&&this.Td()};e.prototype.Td=function(){var f,e=this.DI(),h=this.Measure.axis[0],n=this.Measure.area;e=this.Kl(e*h.factor*h.factor*n[0].factor,n);this.setContents(e);(null===(f=this.measurementCaptionOptions)||void 0===f?0:f.isEnabled)&&this.xE()};e.prototype.DI=function(){return(this.Mb?this.Mb.y2-this.Mb.y1:this.wa())/2*((this.Mb?this.Mb.x2-this.Mb.x1:this.Ba())/2)*Math.PI};e.prototype.rotate=function(f){this.Mb||(this.Mb=
|
|
this.Sa());this.ny(this.Yn(w.a.tb(this.Rotation)-f));f=w.a.kk(w.a.yk(w.a.tb(this.Rotation)-f));var e=f-this.Rotation;this.Rotation=f;this.captionRotation=(this.captionRotation+e+360)%360};e.prototype.tR=function(){this.Mb=void 0};e.prototype.serialize=function(e,h){e=f.prototype.serialize.call(this,e,h);if(w.a.FM(this.Rotation))this.Df("trn-unrotated-rect",!0);else{var n=this.Mb?this.Mb:this.Sa();n=new x.d(n.x1,n.y1,n.x2,n.y2);n.Sp();this.Db("trn-unrotated-rect",y.a.Ut(n,h))}"EllipseDimension"===
|
|
this.IT&&(h=y.a.sY(this.measurementCaptionOptions,h),this.Db("trn-measurement-caption-options",h));return e};e.prototype.deserialize=function(e,h,n){f.prototype.deserialize.call(this,e,h,n);if(this.Ol("trn-unrotated-rect"))e=y.a.BB(this.ac("trn-unrotated-rect"),h),e.normalize(),this.Mb=e;else{e=this.$d();n=e.x;var r=e.y;this.Mb=new x.d(n,r,n+e.width,r+e.height)}"EllipseDimension"===this.IT&&this.Ol("trn-measurement-caption-options")&&(this.measurementCaptionOptions=y.a.WR(this.ac("trn-measurement-caption-options"),
|
|
h),this.eE());this.ny(this.Yn())};return e}(n.a);e.prototype.elementName="circle";e.prototype.selectionModel=da.a;Object(aa.a)(e.prototype,{},["Style","Dashes","Precision","Scale"]);Object(ha.c)(e.prototype,[new ca.a,new ia.b]);ba.a=e;(window.Annotations||{}).kr=e},function(ia,ba,e){var ea=e(1),x=e(46),ha=e(0);e.n(ha);var ca=e(4);ia=e(53);var da=e(54),aa=e(84),w=e(23),y=e(188),n=e(21),h=e(35),f=e(14),r=e(36),z=e(6),fa=e(12),ka=e(2),ja=e(49),pa=window.Annotations||{};e=function(e){function h(f){var h=
|
|
e.call(this,f)||this;h.Gv=x.a.CENTER;h.constant={FONT_SIZE:"9px",FONT_FAMILY:"sans-serif"};h.QG=!1;h.EA=!1;h["_xsi:type"]="Line";h.Subject=fa.a.Gc("line");h.yr=null;h.mn=null;h.cd(f);return h}Object(ea.c)(h,e);h.prototype.resize=function(f){var e=f.x1;f=f.y1;var h=e-this.X,n=f-this.Y;if(0!==h||0!==n)this.Start.translate(h,n),this.End.translate(h,n),Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"X").set.call(this,e),Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"Y").set.call(this,
|
|
f)};h.prototype.rotate=function(e,h){void 0===h&&(h=this.dk());this.Rotation=f.a.kk(f.a.yk(f.a.tb(this.Rotation)-e));this.Start=n.a.Math.Am(this.Start,e,h);this.End=n.a.Math.Am(this.End,e,h);this.adjustRect()};h.prototype.dk=function(){var f=this.Zn(),e=this.Yp();return new ca.b((f.x<=e.x?f:e).x+Math.abs(f.x-e.x)/2,(f.y<=e.y?f:e).y+Math.abs(f.y-e.y)/2)};h.prototype.adjustRect=function(){if(!Object(ha.isNull)(this.Start)||!Object(ha.isNull)(this.End)){"LineDimension"===this.IT&&this.Measure&&this.Td();
|
|
var f=this.getRectPadding(),e=this.nca(),h=this.gaa();h=h.map(function(f){return e.ra(f)});var n=h.map(function(f){return f.x}),r=h.map(function(f){return f.y});h=Math.min.apply(null,n);var w=Math.max.apply(null,n);n=Math.min.apply(null,r);var z=Math.max.apply(null,r);r=Math.max(h-f,0);var fa=Math.max(n-f,0);h=w-h+2*f;f=z-n+2*f;Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"X").set.call(this,r);Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"Y").set.call(this,fa);Object.getOwnPropertyDescriptor(pa.Annotation.prototype,
|
|
"Width").set.call(this,h);Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"Height").set.call(this,f);this.By()}};h.prototype.getRectPadding=function(){return this.StrokeThickness};h.prototype.wka=function(f,e){this.Start=new ca.b(f,e)};h.prototype.Zn=function(){return this.Start};h.prototype.setEndPoint=function(f,e){this.End=new ca.b(f,e)};h.prototype.Yp=function(){return this.End};h.prototype.th=function(f){this.mn=f;this.Ma()};h.prototype.pf=function(){return this.mn||ja.a.NONE};h.prototype.Dm=
|
|
function(f){this.yr=f;this.Ma()};h.prototype.Xg=function(){return this.yr||ja.a.NONE};h.prototype.nla=function(){var f=this.mn;this.mn=this.yr;this.yr=f};h.prototype.Eka=function(f){f.font=this.constant.FONT_SIZE+" "+this.constant.FONT_FAMILY;null!==this.StrokeColor&&(f.fillStyle=this.StrokeColor.toString());f.textBaseline="top";f.textAlign="center"};h.prototype.Hka=function(f){f.translate(this.Start.x,this.Start.y);f.rotate(this.bk());f.translate(0,this.Rw())};h.prototype.draw=function(f,e){this.dc(f,
|
|
e);this.Start&&this.End&&(e=this.lg(),"yes"===this.caption&&this.getContents()&&(this.sb=this.rJ(this.getContents(),e)),f.save(),this.Hka(f),f.beginPath(),this.leaderExtend&&this.G8(f),this.leaderLength&&this.H8(f),"yes"!==this.caption||this.EA||(f.save(),this.Eka(f),this.$H(f),f.restore()),this.J8(f),this.Xj(f,e),f.stroke(),f.closePath(),this.dI(f),f.restore());this.EA&&(this.EA=!1)};h.prototype.G8=function(f){var e=this.leaderExtend,h=this.lg();this.eg(f,0,0,0,-this.Fs()*e);this.eg(f,h,0,h,-this.Fs()*
|
|
e)};h.prototype.H8=function(f){this.O8(f);this.N8(f)};h.prototype.O8=function(f){var e=this.wT();this.eg(f,0,e,0,this.leaderLength)};h.prototype.N8=function(f){var e=this.lg(),h=this.wT();this.eg(f,e,h,e,this.leaderLength)};h.prototype.$H=function(f){var e=this.getContents(),h=this.lg();e&&(this.n8(f,h),this.o8(f,h,e))};h.prototype.n8=function(f,e){var h=e/2;if(this.rK())this["caption-offset-h"]&&!this.mV(e)&&(h=this.cT(e),this.sb.left>e?this.eg(f,e,0,h.x,0):0>this.sb.right&&this.eg(f,0,0,h.x,0));
|
|
else if(this["caption-offset-v"]){var n=this.JI(e);f.moveTo(e/2,0);f.lineTo(n.x,n.y);this["caption-offset-h"]&&(this.sb.right<h||this.sb.left>h)&&(h=this.cT(e),f.lineTo(h.x,h.y))}};h.prototype.o8=function(f,e,h){var n=this.sb.top;this.bB(this.sb.width,e)||!this.rK()||this["caption-offset-h"]||(n-=17);e=h.split("\n");h=this.sb.height/e.length;for(var r=0;r<e.length;r++){var w=this.sb.left+this.sb.width/2,z=this["caption-offset-v"]?n:n/2;"Top"===this["caption-style"]&&(z-=h);f.fillText(e[r],w,z);n+=
|
|
h}};h.prototype.J8=function(f){var e=this.lg(),h=this.pf(),n=this.Xg();if("yes"!==this.caption||this.bB(this.sb.width,e))this.rs(f,h),this.ps(f,n);else{var r=5*f.lineWidth+10;h!==ja.a.NONE&&(this.rs(f,Object(ja.e)(h)),h!==ja.a.OPEN_ARROW&&h!==ja.a.CLOSED_ARROW||this.eg(f,-r,0,-this.StrokeThickness,0));n!==ja.a.NONE&&(this.ps(f,Object(ja.e)(n)),n!==ja.a.OPEN_ARROW&&n!==ja.a.CLOSED_ARROW||this.eg(f,e+this.StrokeThickness,0,e+r,0))}};h.prototype.rs=function(f,e){Object(ja.c)(f,e,{eD:!0,stroke:this.StrokeThickness,
|
|
line:[this.Start,this.End],RU:Object(ja.g)(e,this.ToolName)})};h.prototype.ps=function(f,e){Object(ja.c)(f,e,{eD:!1,stroke:this.StrokeThickness,line:[this.Start,this.End],RU:Object(ja.g)(e,this.ToolName)})};h.prototype.dI=function(f){var e=this.pf(),h=this.Xg();Object(ja.f)(e)&&(f.beginPath(),this.rs(f,e),f.fill(),f.closePath());Object(ja.f)(h)&&(f.beginPath(),this.ps(f,h),f.fill(),f.closePath())};h.prototype.Xj=function(f,e){if(this.dm())this.QG=!0;else if(this.QG=!1,"yes"===this.caption&&this.mV(e)&&
|
|
!this["caption-offset-v"]&&this.ck()===x.a.CENTER&&"Top"!==this["caption-style"])this.K8(f),this.I8(f,e);else{var h=this.qD(this.pf()),n=this.qD(this.Xg()),r=Object(ja.b)(f.lineWidth);h&&n?this.eg(f,r,0,e-r,0):n?this.eg(f,0,0,e-r,0):h?this.eg(f,r,0,e,0):this.eg(f,0,0,e,0)}};h.prototype.K8=function(f){var e=this.qD(this.pf())?this.StrokeThickness:0;this.eg(f,e,0,this.sb.left-2,0)};h.prototype.I8=function(f,e){var h=this.qD(this.Xg())?this.StrokeThickness:0;this.eg(f,this.sb.right+2,0,e-h,0)};h.prototype.eg=
|
|
function(f,e,h,n,r){f.moveTo(e,h);f.lineTo(n,r)};h.prototype.Lm=function(f){e.prototype.Lm.call(this,f);this.Start=f.ra(this.Start);this.End=f.ra(this.End)};h.prototype.serialize=function(f,h){if(this.bb)return this.bb;f=e.prototype.serialize.call(this,f,h);var n=new ca.b(this.Start.x,this.Start.y),r=new ca.b(this.End.x,this.End.y);f.setAttribute("start",z.a.aM(n,h));f.setAttribute("end",z.a.aM(r,h));"None"!==this.pf()&&f.setAttribute("head",this.pf());"None"!==this.Xg()&&f.setAttribute("tail",this.Xg());
|
|
"LineDimension"===this.IT&&this.Measure&&f.appendChild(z.a.Tt(this.Measure));this.We(f,"leaderLength");this.We(f,"leaderExtend");this.We(f,"leader-offset");this.We(f,"caption");this.We(f,"caption-style");this.We(f,"caption-offset-h");this.We(f,"caption-offset-v");f.removeAttribute("rotation");return f};h.prototype.deserialize=function(f,h,n){e.prototype.deserialize.call(this,f,h,n);n=z.a.QH(f.getAttribute("start"),h);this.GA=null!==n?new ca.b(n.x,n.y):new ca.b(this.X,this.Y);h=z.a.QH(f.getAttribute("end"),
|
|
h);this.Tz=null!==h?new ca.b(h.x,h.y):new ca.b(this.X+this.Width,this.Y+this.Height);h=f.querySelector("measure");"LineDimension"===f.getAttribute("IT")&&h&&(this.Measure=z.a.hs(h));this.th(f.getAttribute("head")||"None");this.Dm(f.getAttribute("tail")||"None");this.tj(f,"caption");this.tj(f,"caption-style");this.jy(f,"caption-offset-h");this.jy(f,"caption-offset-v");this.jy(f,"leaderLength");this.jy(f,"leaderExtend");this.jy(f,"leader-offset");this.Uc()||this.adjustRect();0>this["caption-offset-h"]?
|
|
this.hi(x.a.START):this["caption-offset-h"]>this.lg()&&this.hi(x.a.END)};h.prototype.Td=function(){var f=this.lg(),e=this.Measure.distance;f=this.Kl(f*this.Measure.axis[0].factor*e[0].factor,e);e=this.ck();e!==x.a.CENTER&&this.hi(e);this.setContents(f)};h.prototype.bB=function(f,e){return f+16<=e};h.prototype.rK=function(){return 0>this.sb.top&&0<this.sb.bottom};h.prototype.mV=function(f){return 0<=this.sb.left&&this.sb.right<=f};h.prototype.qD=function(f){var e=Object.values(ja.a);return f===ja.a.OPEN_ARROW||
|
|
f===ja.a.CLOSED_ARROW||!e.includes(f)};h.prototype.nca=function(){var f=this.Rw(),e=this.bk(),h=new w.a,n=new w.a;h.ab(1,0,0,1,this.Start.x,this.Start.y);n.set(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);h.concat(n);n.set(1,0,0,1,0,f);h.concat(n);return h};h.prototype.rJ=function(f,e){var h=fa.a.measureText(f,this.constant.FONT_SIZE,this.constant.FONT_FAMILY,"normal");f=h.height;h=h.width;var n=this.eca(f);e=this.cca(h,e);return{top:n,bottom:n+f,left:e,right:e+h,width:h,height:f}};h.prototype.eca=
|
|
function(f){var e=-f/2;if(!this["caption-offset-v"])return-f;this["caption-offset-v"]&&(e-=this["caption-offset-v"]);return e};h.prototype.cca=function(f,e){f=e/2-f/2;this["caption-offset-h"]&&(f+=this["caption-offset-h"]);return f};h.prototype.JI=function(f){var e=-this["caption-offset-v"],h=f/2;f={x:h,y:void 0};f.y=0>e?this.sb.bottom:this.sb.top;this["caption-offset-h"]&&(this.sb.right<h||this.sb.left>h)&&(h=this.sb.height/2,f.y=0>e?f.y-h:f.y+h);return f};h.prototype.cT=function(f){var e={x:void 0,
|
|
y:void 0};e.y=this["caption-offset-v"]?this.JI(f).y:0;e.x=0>this["caption-offset-h"]?this.sb.right:this.sb.left;return e};h.prototype.gaa=function(){var f=this.lg(),e=[{x:0,y:0},{x:f,y:0}];if("yes"===this.caption&&(this.aV()||(this.EA=!0),this.sb=this.rJ(this.getContents(),f),e.push({x:this.sb.left,y:this.sb.top},{x:this.sb.left,y:this.sb.bottom},{x:this.sb.right,y:this.sb.top},{x:this.sb.right,y:this.sb.bottom}),this["caption-offset-v"])){var h=this.JI(f);e.push({x:h.x,y:h.y})}this.leaderExtend&&
|
|
(h=this.leaderExtend,e.push({x:0,y:h*-this.Fs()},{x:f,y:h*-this.Fs()}));(h=this.Rw())&&e.push({x:0,y:-h},{x:f,y:-h});return e};h.prototype.Rw=function(){var f=this.leaderLength,e=this["leader-offset"],h=0;f&&(h-=f);e&&(h+=e*-this.Fs());return h};h.prototype.Fs=function(){return!this.leaderLength||0<this.leaderLength?1:-1};h.prototype.bba=function(){var f=this.Rw(),e=this.bk();return{Nma:new ca.b(this.Start.x-f*Math.sin(e),this.Start.y+f*Math.cos(e)),b0:new ca.b(this.End.x-f*Math.sin(e),this.End.y+
|
|
f*Math.cos(e))}};h.prototype.naa=function(){Object(ka.d)("8.5","getCenterLeaderPoint",["getLeaderLineControlHandlePoint"]);return this.Jl(x.a.CENTER)};h.prototype.Jl=function(e){void 0===e&&(e=this.ck());var h=this.Rw(),n=this.bk(),r=new ca.b(this.Start.x-h*Math.sin(n),this.Start.y+h*Math.cos(n));h=new ca.b(this.End.x-h*Math.sin(n),this.End.y+h*Math.cos(n));var w=this.t5(),z=f.a.tb(90);return e===x.a.CENTER?new ca.b(r.x+(h.x-r.x)/2,r.y+(h.y-r.y)/2):e===x.a.END?new ca.b(h.x-w*Math.sin(n-z),h.y+w*Math.cos(n-
|
|
z)):new ca.b(r.x-w*Math.sin(n+z),r.y+w*Math.cos(n+z))};h.prototype.bk=function(){if(this.End)return Math.atan2(this.End.y-this.Start.y,this.End.x-this.Start.x)};h.prototype.lg=function(){if(this.End)return this.End.ie(this.Start)};h.prototype.Ija=function(f){if(this.End){var e=this.bk(),h=this.Zn();this.setEndPoint(h.x+f*Math.cos(e),h.y+f*Math.sin(e));this.adjustRect()}};h.prototype.hi=function(f){if(Object.values(x.a).includes(f))if(this.Gv=f,this.Gv===x.a.CENTER)this["caption-offset-h"]=0;else{f=
|
|
this.lg();var e=5*(this.dm()?4:1);f=f/2+this.sb.width/2+e;this.Gv===x.a.START?this["caption-offset-h"]=-f:this.Gv===x.a.END&&(this["caption-offset-h"]=f)}else Object(ka.j)(f+" is not a valid caption snap position. The current snap position will be maintained.")};h.prototype.ck=function(){return this.Gv};h.prototype.wT=function(){var f=0;if("yes"!==this.caption||this.bB(this.sb.width,this.lg()))f=2*this.StrokeThickness*-this.Fs();return f};h.prototype.dm=function(){return"yes"===this.caption&&!this.rK()&&
|
|
!this.bB(this.sb.width,this.lg())};h.prototype.aV=function(){return!!this.sb};h.prototype.dT=function(f){var e=this.Jl(x.a.START),h=this.Jl(x.a.END);e=f.ie(e);f=f.ie(h);return x.a[e<=f?"START":"END"]};h.prototype.t5=function(){var f=this.lg();"yes"===this.caption&&(this.sb=this.rJ(this.getContents(),f));return this.sb.width*(this.dm()?1:.65)};return h}(r.a);e.prototype.elementName="line";e.prototype.selectionModel=y.a;e.prototype=Object.assign(new e,e.prototype);Object(ia.c)(e.prototype,[new aa.a,
|
|
new da.b]);Object(h.a)(e.prototype,{Start:{get:function(){this.GA||(this.GA=new ca.b);return this.GA},set:function(f){f&&(this.GA=f instanceof ca.b?f:new ca.b(f.x,f.y),this.adjustRect())}},End:{get:function(){this.Tz||(this.Tz=new ca.b);return this.Tz},set:function(f){f&&(this.Tz=f instanceof ca.b?f:new ca.b(f.x,f.y),this.adjustRect())}},X:{get:function(){return Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"X").get.call(this)},set:function(f){f-=this.X;this.Start.translate(f,0);this.End.translate(f,
|
|
0);this.adjustRect()}},Y:{get:function(){return Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"Y").get.call(this)},set:function(f){f-=this.Y;this.Start.translate(0,f);this.End.translate(0,f);this.adjustRect()}},Width:{get:function(){return Object.getOwnPropertyDescriptor(pa.Annotation.prototype,"Width").get.call(this)},set:function(f){var e=2*this.getRectPadding();(this.End.X<this.Start.X?this.Start:this.End).translate(f-e-(this.Width-e),0);this.adjustRect()}},Height:{get:function(){return Object.getOwnPropertyDescriptor(pa.Annotation.prototype,
|
|
"Height").get.call(this)},set:function(f){var e=2*this.getRectPadding();(this.End.Y<this.Start.Y?this.Start:this.End).translate(0,f-e-(this.Height-e));this.adjustRect()}}},["Style","Dashes","Precision","Scale"]);ba.a=e;(window.Annotations||{}).Od=e},function(ia,ba,e){var ea=e(1);ia=e(26);var x=e(18),ha=e(8),ca=e(3),da=e(2),aa=e(157);e=function(e){function w(n,h){n=e.call(this,n)||this;n.Fe=!1;n.pE=!1;n.annotation=null;n.defaults={StrokeColor:new ha.a(255,255,0),Opacity:1,Icon:"Comment"};n.cursor=
|
|
"crosshair";n.name=h||ca.m.STICKY;return n}Object(ea.c)(w,e);w.prototype.switchIn=function(){Object(x.d)(this.aa,this.cursor)};w.prototype.mouseLeftUp=function(n){e.prototype.mouseLeftUp.call(this,n);var h=this.pageCoordinates[1];if(h&&(!this.Ub||this.Fe||this.overrideSelection)){var f=this.aa.la;f.he();this.annotation=new aa.a;this.annotation.Icon=this.defaults.Icon;this.annotation.X=h.x;this.annotation.Y=h.y;this.annotation.PageNumber=h.pageNumber;this.annotation.Author=f.kg();h=this.defaults.StrokeColor;
|
|
this.annotation.StrokeColor=new ha.a(h.R,h.G,h.B,h.A);this.annotation.Opacity=this.defaults.Opacity;this.annotation.ToolName=this.name;if(this.pE){var r=this.annotation;this.aa.getState().then(function(f){r.ViewState=f;r=null})}this.trigger(w.Events.ANNOTATION_CREATED,[this.annotation]);f.Sd(this.annotation);this.trigger(w.Events.ANNOTATION_ADDED,[this.annotation]);f.qb(this.annotation);this.annotation=null;n.preventDefault()}};w.prototype.Yl=function(){return!0};w.prototype.bM=function(e){Object(da.d)("8.0",
|
|
"setAllowCreationOverAnnotation",["enableCreationOverAnnotation","disableCreationOverAnnotation"]);this.Fe=e};w.prototype.dw=function(){this.Fe=!0};w.prototype.Zv=function(){this.Fe=!1};w.prototype.mka=function(e){Object(da.d)("8.0","setSaveViewState",["enableViewStateSaving","disableViewStateSaving"]);this.pE=e};w.prototype.O9=function(){this.pE=!0};w.prototype.W7=function(){this.pE=!1};w.Events={ANNOTATION_ADDED:"annotationAdded",ANNOTATION_CREATED:"annotationCreated"};return w}(ia.a);ba.a=e},function(ia,
|
|
ba,e){e.d(ba,"a",function(){return ea});var ea;(function(e){e.TEXT="text";e.OBJECT="object"})(ea||(ea={}))},function(ia,ba){ba.a={"image/bmp":"bmp","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","model/vnd.dwf":"dwf","image/vnd.dwg":"dwg","image/vnd.dxf":"dxf","image/emf":"emf","message/rfc822":"eml","application/vnd.fdf":"fdf","audio/flac":"flac","image/gif":"gif","text/html":"html","image/jp2":"jp2","image/jpeg":"jpg","audio/mpeg":"mp3",
|
|
"video/mp4":"mp4","application/vnd.ms-outlook":"msg","application/vnd.oasis.opendocument.presentation":"odp","application/vnd.oasis.opendocument.text":"odt","audio/ogg":"ogg","application/pdf":"pdf","image/png":"png","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/x-mspublisher":"pub","application/rtf":"rtf","image/svg+xml":"svg","image/tiff":"tif","text/plain":"txt","application/vnd.visio":"vsd","application/vnd.visio2013":"vsdx",
|
|
"audio/wav":"wav","image/wmf":"wmf","application/xaml+xml":"xaml","application/vnd.adobe.xfdf":"xfdf","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-xpsdocument":"xps"}},function(ia,ba,e){function ea(f,e){var h=e.zoom,n=e.rotation,r=e.width*h;e=e.height*h;h=null;n===fa.f.E_90||n===fa.f.E_270?(h="rotate("+90*n+"deg)",h=n===fa.f.E_90?" translate("+r+"px, 0) "+h:" translate(0,"+e+"px) "+h,Object(ka.b)(f,{height:r,width:e})):
|
|
(n===fa.f.E_180&&(h="translate("+r+"px,"+e+"px) scale(-1,-1)"),Object(ka.b)(f,{width:r,height:e}));null!==h?Object(ka.b)(f,{position:"absolute",transform:h,transformOrigin:"top left","ms-transform":h,"ms-transform-origin":"top left","-moz-transform":h,"-moz-transform-origin":"top left","-webkit-transform-origin":"top left","-webkit-transform":h,"-o-transform":h,"-o-transform-origin":"top left"}):Object(ka.b)(f,{transform:"","transform-origin":"","ms-transform":"","ms-transform-origin":"","-moz-transform":"",
|
|
"-moz-transform-origin":"","-webkit-transform-origin":"","-webkit-transform":"","-o-transform":"","-o-transform-origin":""})}function x(f,e,h){if(e)for(e=f-1;0<=e;--e)h(e);else for(e=0;e<f;++e)h(e)}function ha(f,e,h){var n=document.createElement("div");n.id="pageContainer"+f.Hb;2===h?0===e?n.style.marginLeft="auto":1===e&&(n.style.marginRight="auto"):(n.style.marginLeft="auto",n.style.marginRight="auto");n.style.backgroundColor=Object(pa.l)();n.className="pageContainer";return n}function ca(f,e,h){var n=
|
|
document.createElement("div");n.id="pageSection"+f.Hb;n.style.cssFloat="left";n.style.position="relative";n.className="pageSection";n.appendChild(ha(f,e,h));return n}function da(f,e,h){var n=document.createDocumentFragment(),r=f.Qb();x(r.length,h,function(f){n.appendChild(ca(r[f],f,e))});f=document.createElement("div");f.style.clear="both";n.appendChild(f);return n}function aa(f,e,h,n){var r=parseFloat(n.style.width),w=parseFloat(n.style.height),z=parseFloat(f.style.width)/r;h&&(z=h.TV.width/h.cW.width);
|
|
if((h=n.id)&&0<=h.indexOf("hrthumb")){h=e.rotation;if(h===fa.f.E_90||h===fa.f.E_270)z=parseFloat(f.style.width)/w;ea(n,e)}Object(ka.b)(n,{top:parseFloat(n.style.top)*z,left:parseFloat(n.style.left)*z,width:r*z,height:w*z})}function w(f,e,h){[e.Ue,e.Mf].forEach(function(n){n&&(aa(f,e,h,n),f.appendChild(n))})}function y(f,e,h){var n=Math.floor(e.Ba())+"px",r=Math.floor(e.wa())+"px",z={cW:{width:parseFloat(f.style.width),height:parseFloat(f.style.height)},TV:{width:parseFloat(n),height:parseFloat(r)}};
|
|
f.style.width=n;f.style.height=r;f.style.top=Math.floor(h-e.wa())/2+"px";for([].forEach.call(f.querySelectorAll("canvas"),function(f){Object(ja.a)().$j(f)});f.firstChild;)f.removeChild(f.firstChild);w(f,e,z)}function n(f,e,h,n,r,w){var z=e.Qb(),fa=f;x(z.length,r,function(f){if(!fa)throw Error("Tried to update non-existent page section");var r=fa,aa=z[f],x=e.wa();r.style.width=Math.floor(h[f])+"px";r.style.height=Math.floor(x)+"px";r.style.margin=n+"px";w||y(r.firstChild,aa,x);fa=fa.nextSibling});
|
|
return fa=fa.nextSibling}function h(f,e,h){var n=e.Qb(),r=f;x(n.length,h,function(f){if(!r)throw Error("Tried to skip non-existent page section");w(r.firstChild,n[f]);r=r.nextSibling});return r=r.nextSibling}function f(f){for(f=f.querySelector(".pageContainer");f&&f.firstChild;)f.removeChild(f.firstChild)}function r(e,h,n){var r=h.Qb().length,w=e;f(w);h=document.createRange();x(r,n,function(){if(!w)throw Error("Tried to remove non-existent page section");w=w.nextSibling;f(w)});n=w.nextSibling;h.setStartBefore(e);
|
|
h.setEndAfter(w);h.deleteContents();return n}e.d(ba,"b",function(){return ea});e.d(ba,"a",function(){return aa});var z=e(2),fa=e(3),ka=e(16),ja=e(28),pa=e(19),ma=function(){function f(f){this.sl=[];this.state=f}f.prototype.zq=function(f,e,h){this.sl.push({NK:f,args:{Gk:e,bfa:h}})};f.prototype.R4=function(f,e){var h=this,n=f.firstChild,r=[];f.style.width=Math.ceil(this.state.Ba())+"px";this.sl.forEach(function(e){switch(e.NK){case "addRow":r=r.concat(e.args.Gk.Qb());n=h.AQ(n,e.args,f);break;case "updateRow":r=
|
|
r.concat(e.args.Gk.Qb());n=h.Zla(n,e.args);break;case "updateColumns":n=h.Pla(n,e.args);break;case "skipRow":n=h.ela(n,e.args);break;case "replaceRow":r=r.concat(e.args.Gk.Qb());n=h.Yha(n,e.args,f);break;case "removeRow":n=h.SX(n,e.args);break;default:Object(z.j)("Unsupported layout change operation:",e.NK)}});if(!e&&n&&"selectionrect"!==n.id)throw Error("Nodes left after applying changes");return{ZK:r.filter(function(f){return!f.Hj}).map(function(f){return f.Hb})}};f.prototype.uba=function(){var f=
|
|
[];this.sl.forEach(function(e){switch(e.NK){case "updateRow":f=f.concat(e.args.Gk.Qb())}});return f.filter(function(f){return!f.Hj}).map(function(f){return f.Hb})};f.prototype.AQ=function(f,e,h){e=e.Gk;var r=da(e,this.state.Ji.length,this.state.Fk);n(r.firstChild,e,this.state.Ji,this.state.ji,this.state.Fk);f?h.insertBefore(r,f):h.appendChild(r);return f};f.prototype.Zla=function(f,e){return n(f,e.Gk,this.state.Ji,this.state.ji,this.state.Fk)};f.prototype.ela=function(f,e){return h(f,e.Gk,this.state.Fk)};
|
|
f.prototype.Yha=function(f,e,h){f=this.SX(f,e);return this.AQ(f,e,h)};f.prototype.SX=function(f,e){return r(f,e.bfa,this.state.Fk)};f.prototype.Pla=function(f,e){return n(f,e.Gk,this.state.Ji,this.state.ji,this.state.Fk,!0)};return f}();ba.c=function(f,e){var h=new ma(e);if(!f)return e.rows.forEach(function(f){h.zq("addRow",f,null)}),h;var n=f.rows;f=f.Ji;var r=e.Ji;var w=f.length===r.length?f.every(function(f,e){return f===r[e]}):!1;e=e.rows;e.forEach(function(f){var e=n[f.getIndex()];e?e.Rda(f)?
|
|
e.kK(f)?h.zq("updateRow",f,e):w?h.zq("skipRow",f,e):h.zq("updateColumns",f,e):h.zq("replaceRow",f,e):h.zq("addRow",f,e)});if(e.length<n.length)for(e=e.length;e<n.length;++e)h.zq("removeRow",null,n[e]);return h}},function(ia,ba){ia=function(){function e(e,x){this.cache={};this.Eea=this.Qq=e;this.Ib=[];this.H$=x}e.prototype.getItem=function(e){return this.cache[e]||null};e.prototype.setItem=function(e){var x=e.key,ha=e.data,ca=e.gd,da=e.gf;e=e.size;!e&&ha&&(e=ha.length);if(x in this.cache)this.Ib.splice(this.Ib.indexOf(x),
|
|
1),this.Ib.push(x);else if(this.H$)this.cache[x]={data:ha,gd:ca,size:e},this.Ib.push(x);else if(e<this.Eea/2){for(;this.Qq<e;){var aa=this.Ib[0];this.Qq+=this.cache[aa].size;da&&da(this.cache[aa]);delete this.cache[aa];this.Ib.shift()}this.Qq-=e;this.cache[x]={data:ha,gd:ca,size:e};this.Ib.push(x)}};e.prototype.removeItem=function(e){e in this.cache&&(this.Qq-=this.cache[e].size,URL.revokeObjectURL(this.cache[e].data),delete this.cache[e],e=this.Ib.indexOf(e),this.Ib.splice(e,1))};e.prototype.clear=
|
|
function(){try{for(var e=0,x=this.Ib.length;e<x;e++)URL.revokeObjectURL(this.cache[this.Ib[e]].data),delete this.cache[this.Ib[e]];this.Ib=[]}catch(ha){}};return e}();ba.a=ia},function(ia){var ba=function(){return this}();try{ba=ba||(new Function("return this"))()}catch(e){"object"===typeof window&&(ba=window)}ia.exports=ba},function(ia,ba,e){function ea(e,da){if(Object(ha.b)()===ha.a&&0>da)if(x.j)da=da+e.scrollWidth-e.clientWidth;else if(x.i||x.k)da=-da;return da}e.d(ba,"b",function(){return ea});
|
|
var x=e(17),ha=e(135);ba.a=function(e,x){x=ea(e,x);e.scrollLeft=x}},function(ia,ba,e){var ea=e(393);ia.exports=function(e,ha){for(var x=e.length;x--;)if(ea(e[x][0],ha))return x;return-1}},function(ia,ba){ia=function(){function e(e,x){this.D3=e;this.$c=Array(8);this.$c[0]=x[0];this.$c[1]=x[1];this.$c[2]=x[2];this.$c[3]=x[3];this.$c[4]=x[4];this.$c[5]=x[5];this.$c[6]=x[6];this.$c[7]=x[7]}e.prototype.le=function(){for(var e=Array(8),x=0;8>x;x++)e[x]=this.$c[x];return e};return e}();ba.a=ia},function(ia,
|
|
ba){ba.a=function(){return function(e){void 0===e&&(e=0);this.W=this.width=e}}()},function(ia,ba){ia=function(){function e(){this.qe=0;this.vi=this.MG=null}e.prototype.cv=function(e,x,ha){this.qe=e;this.MG=x;this.vi=Array(8);for(e=0;8>e;++e)this.vi[e]=ha[e]};return e}();ba.a=ia},function(ia,ba){ba.a=function(){return function(e,ea){this.cQ=e;this.bP=ea;this.cQ=e||0;this.bP=ea||0}}()},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(91),ha=e(186);ia=function(){function e(x,aa,w,y){void 0===x&&(x=0);void 0===
|
|
aa&&(aa=0);void 0===w&&(w=0);void 0===y&&(y=0);x instanceof e?(this.x1=x.x1,this.y1=x.y1,this.x2=x.x2,this.y2=x.y2):Object(ea.isArray)(x)?(this.x1=x[0],this.y1=x[1],this.x2=x[2],this.y2=x[3]):Object(ea.isObject)(x)?(this.x1=x.x1,this.y1=x.y1,this.x2=x.x2,this.y2=x.y2):(this.x1=x,this.y1=aa,this.x2=w,this.y2=y)}e.VC=function(e,aa){var w=e.Wp()<aa.lq(),y=e.lq()>aa.Wp(),n=e.fq()<aa.aq();return!(e.aq()>aa.fq()||n||w||y)};e.contains=function(e,aa){var w=e.lq()<=aa.lq(),y=e.Wp()>=aa.Wp(),n=e.fq()>=aa.fq();
|
|
return e.aq()<=aa.aq()&&n&&w&&y};e.DR=function(x,aa,w,y){return new e(x,aa,x+w,aa+y)};e.prototype.Kc=function(){return this.x1};e.prototype.Lc=function(){return this.y1};e.prototype.aq=function(){return this.x1};e.prototype.fq=function(){return this.x2};e.prototype.lq=function(){return this.y1};e.prototype.Wp=function(){return this.y2};e.prototype.Ba=function(){return this.x2-this.x1};e.prototype.wa=function(){return this.y2-this.y1};e.prototype.KI=function(){var e=this.Ba()/2,aa=this.wa()/2,w=this.BC();
|
|
w.translate(e,aa);return w};e.prototype.BC=function(){return new x.a(this.x1,this.y1)};e.prototype.bU=function(){return new x.a(this.x2,this.y1)};e.prototype.WS=function(){return new x.a(this.x1,this.y2)};e.prototype.II=function(){return new x.a(this.x2,this.y2)};e.prototype.translate=function(e,aa){this.x1+=e;this.y1+=aa;this.x2+=e;this.y2+=aa};e.prototype.Jh=function(e){var aa=0,w=0;if(this.Ba()<=e.Ba()){var y=e.x2-this.x2;0>y&&(aa=y);y=e.x1-this.x1;0<y&&(aa=y)}this.wa()<=e.wa()&&(y=e.y2-this.y2,
|
|
0>y&&(w=y),e=e.y1-this.y1,0<e&&(w=e));this.translate(aa,w)};e.prototype.normalize=function(){if(0>this.Ba()){var e=this.x1;this.x1=this.x2;this.x2=e}0>this.wa()&&(e=this.y1,this.y1=this.y2,this.y2=e)};e.prototype.KS=function(e,aa){this.x2=Math.min(this.x2,e-1);this.y2=Math.min(this.y2,aa-1)};e.prototype.Sp=function(){if(this.x1>this.x2){var e=this.x1;this.x1=this.x2;this.x2=e}this.y2>this.y1&&(e=this.y1,this.y1=this.y2,this.y2=e)};e.prototype.isEqual=function(e){return this.x1===e.x1&&this.y1===e.y1&&
|
|
this.x2===e.x2&&this.y2===e.y2};e.prototype.kI=function(e){return this.isEqual(e)};e.prototype.nV=function(){return 0===this.x1&&0===this.y1&&0===this.x2&&0===this.y2};e.prototype.rda=function(e){return this.x1<e.x1||this.x2>e.x2||this.y1<e.y1||this.y2>e.y2};e.prototype.VC=function(x){return e.VC(this,x)};e.prototype.contains=function(x){return e.contains(this,x)};e.prototype.transform=function(e){var aa=this.BC(),w=this.II();aa.transform(e);w.transform(e);this.x1=Math.min(aa.Kc(),w.Kc());this.y1=
|
|
Math.min(aa.Lc(),w.Lc());this.x2=Math.max(aa.Kc(),w.Kc());this.y2=Math.max(aa.Lc(),w.Lc())};e.prototype.QZ=function(){var e=this.WS(),aa=this.II(),w=this.bU(),y=this.BC();return new ha.a(e.X,e.Y,aa.X,aa.Y,w.X,w.Y,y.X,y.Y)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(185);ia=function(){function e(e,x,da,aa,w,y,n,h){this.x1=e;this.y1=x;this.x2=da;this.y2=aa;this.x3=w;this.y3=y;this.x4=n;this.y4=h}e.prototype.normalize=function(){};e.prototype.RZ=function(){return new ea.a(this.x4,this.y4,this.x2,
|
|
this.y2)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(128);var x=e(4),ha=e(21);e=function(e){function da(aa,w,y,n,h){var f=e.call(this,aa,w,y,n,h)||this;f.x=aa;f.y=w;f.width=y;f.height=n;f.Nc=h;return f}Object(ea.c)(da,e);da.prototype.move=function(aa,w,y,n,h,f,r){var z=aa.Ra().length-4,fa=z+1,da=fa+1,ja=da+1;z=aa.ik(z);var ca=aa.ik(fa),ea=aa.ik(da),la=aa.ik(ja);if(this.Nc===da){if(la.y<ea.y+y||la.x<ea.x+w)return}else if(this.Nc===ja&&(la.y+y<ea.y||la.x+w<ea.x))return;w=e.prototype.move.call(this,
|
|
aa,w,y,n,h,f,r);this.Nc===da&&(la.y<ea.y&&aa.sh(da,ea.x,la.y),la.x<ea.x&&aa.sh(da,la.x,ea.y),aa.sh(fa,ea.x,ea.y+.5*(la.y-ea.y)),w=!0);this.Nc===ja&&(la.y<ea.y&&aa.sh(da,la.x,ea.y),la.x<ea.x&&aa.sh(da,ea.x,la.y),aa.sh(fa,ca.x,ea.y+.5*(la.y-ea.y)),w=!0);f=f.hc(aa.ua());f=aa.ak(f)/2;da=ha.a.Math.MV(ea,la);ea=[new x.b(da.x,ea.y+f),new x.b(da.x,la.y-f),new x.b(ea.x+f,da.y),new x.b(la.x-f,da.y)];la=[ha.a.Math.ie(z,ea[0]),ha.a.Math.ie(z,ea[1]),ha.a.Math.ie(z,ea[2]),ha.a.Math.ie(z,ea[3])];la=la.indexOf(Math.min.apply(Math,
|
|
la));if(z.x!==ea[la].x||z.y!==ea[la].y)aa.sh(fa,ea[la].x,ea[la].y),w=!0;return w};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(47),ha=e(189),ca=e(27),da=e(120),aa=e(48),w=e(4),y=e(98);ia=function(e){function h(f,h,n,w){h=e.call(this,f,h,n,w)||this;h.lk=ca.a.handleWidth;h.og=ca.a.handleHeight;h.Ho=f.Zn();h.Kn=f.Yp();h.Of();return h}Object(ea.c)(h,e);h.prototype.Of=function(){this.Gb=[];this.Qc()&&(this.Gb=this.dba(),this.qa.leaderLength&&this.Gb.push(this.maa()),this.aa.ta().wC().isEnabled&&
|
|
this.qa.HJ()&&this.Gb.push(y.a.lJ(this.qa,this.aa)))};h.prototype.dba=function(){return[new da.a(this.Ho.x,this.Ho.y,this.og,this.og,!1),new da.a(this.Kn.x,this.Kn.y,this.og,this.og,!0)]};h.prototype.maa=function(){var f=this.qa.Jl();return new ha.a(f.x,f.y,this.lk,this.og)};h.prototype.testSelection=function(f,e,h,n){return aa.a.xp(f,e,h,n,this.aa.bc())};h.prototype.drawSelectionOutline=function(f,e,h,n){void 0===h&&(h=1);if(e.leaderLength||e.leaderExtend||e["leader-offset"])return x.a.prototype.drawSelectionOutline.apply(this,
|
|
arguments);f.lineWidth=x.a.selectionOutlineThickness/h;var r=this.x5(n),w=r.offsetX;r=r.offsetY;this.w8(f);this.z8(h,f,w,r)};h.prototype.x5=function(f){var e=Math.atan((this.Kn.y-this.Ho.y)/(this.Kn.x-this.Ho.x));f=this.qa.ak(f);return{offsetX:Math.max(.5*f,1)*Math.sin(e),offsetY:Math.max(.5*f,1)*Math.cos(e)}};h.prototype.w8=function(f){var e=this.Qc()?x.a.defaultSelectionOutlineColor:x.a.defaultNoPermissionSelectionOutlineColor;f.strokeStyle=e.toString()};h.prototype.z8=function(f,e,h,n){f=x.a.selectionOutlineDashSize/
|
|
f;e.setLineDash([f,f]);e.strokeStyle="rgb(255, 255, 255)";this.c9(e,h,n)};h.prototype.c9=function(f,e,n){h.Xj(f,new w.b(this.Ho.x+e,this.Ho.y-n),new w.b(this.Kn.x+e,this.Kn.y-n));h.Xj(f,new w.b(this.Ho.x-e,this.Ho.y+n),new w.b(this.Kn.x-e,this.Kn.y+n))};h.Xj=function(f,e,h){f.beginPath();f.moveTo(e.x,e.y);f.lineTo(h.x,h.y);f.stroke()};return h}(x.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(120);var x=e(46),ha=e(4);e=function(e){function da(aa,w,y,n){var h=e.call(this,aa,w,y,n)||this;h.x=aa;h.y=
|
|
w;h.width=y;h.height=n;h.WM=0;h.XM=0;h.ID=null;return h}Object(ea.c)(da,e);da.prototype.move=function(e,w,y){this.ID||(this.ID=e.Jl());e.leaderLength+=Math.sqrt(w*w+y*y)*Math.sin(e.bk()-Math.atan2(y,w));this.WM+=w;this.XM+=y;this.Qia(e);e.adjustRect();return!0};da.prototype.Qia=function(e){var w=e.ck(),y=new ha.b(this.ID.X+this.WM,this.ID.Y+this.XM),n=e.Jl(x.a.START),h=e.Jl(x.a.CENTER),f=e.Jl(x.a.END);h=y.ie(h);n=y.ie(n);y=y.ie(f);w===x.a.START&&h<n||w===x.a.END&&h<y?e.hi(x.a.CENTER):(w=e.lg()/3,
|
|
n<w?e.hi(x.a.START):y<w&&e.hi(x.a.END))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=function(e){function x(x,da,aa,w,y){var n=e.call(this,x,da,aa,w,y)||this;n.x=x;n.y=da;n.width=aa;n.height=w;n.Nc=y;return n}Object(ea.c)(x,e);x.prototype.move=function(x,da,aa,w,y,n,h){e.prototype.move.call(this,x,da,aa,w,y,n,h);0===this.Nc&&(da=x.ik(0),x.sh(x.Ra().length-1,da.x,da.y));return!0};return x}(e(128).a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(47);var x=e(3),ha=e(144),ca=e(4);e=function(e){function aa(w,
|
|
y,n,h){return e.call(this,w,y,n,h)||this}Object(ea.c)(aa,e);aa.prototype.testSelection=function(e,y,n,h,f,r){h=e.Kc();var w=e.Lc();f=Annotations.yh.SIZE/(e.NoZoom?f:1);if(!Object(ha.a)()||e.DateCreated>=Object(ha.a)())r===x.f.E_90?w-=f:r===x.f.E_180?(w-=f,h-=f):r===x.f.E_270&&(h-=f);e=new ca.d(h,w,h+f,w+f);return y>=e.x1&&y<=e.x2&&n>=e.y1&&n<=e.y2};aa.prototype.getDimensions=function(e){var w=Annotations.yh.SIZE;return new ca.d(e.X,e.Y,e.X+w,e.Y+w)};return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=
|
|
e(1),x=e(4);ia=function(e){function ca(x,aa,w,y){return e.call(this,x,aa,w,y)||this}Object(ea.c)(ca,e);ca.prototype.testSelection=function(e,aa,w,y,n){y=e.NoZoom?n:1;n=e.Kc();var h=e.Lc();e=new x.d(n,h,n+e.Width/y,h+e.Height/y);return aa>=e.x1&&aa<=e.x2&&w>=e.y1&&w<=e.y2};ca.prototype.getDimensions=function(e){return new x.d(e.X,e.Y,e.X+e.Width,e.Y+e.Height)};return ca}(e(47).a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(126);var x=e(44);e=function(e){function ca(x,aa,w,y){return e.call(this,x,aa,
|
|
w,y)||this}Object(ea.c)(ca,e);ca.prototype.move=function(e,aa,w){var y=!(!aa&&!w);if(!y)return!1;if(e.MaintainAspectRatio){var n=e.Width,h=e.Height;if(n>h){if(w=h/n*(n+aa)-h,this.nk===x.a.LEFT&&this.Qk===x.b.So||this.nk===x.a.RIGHT&&this.Qk===x.b.Xo)w*=-1}else if(aa=n/h*(h+w)-n,this.nk===x.a.LEFT&&this.Qk===x.b.So||this.nk===x.a.RIGHT&&this.Qk===x.b.Xo)aa*=-1}n=e.Ra();h=n[0];var f=n[1],r=n[2],z=n[3];this.nk===x.a.LEFT?(h.x=Math.min(h.x+aa,f.x),z.x=Math.min(z.x+aa,f.x)):this.nk===x.a.RIGHT&&(f.x=Math.max(f.x+
|
|
aa,h.x),r.x=Math.max(r.x+aa,h.x));this.Qk===x.b.Xo?(h.y=Math.min(h.y+w,z.y),f.y=Math.min(f.y+w,z.y)):this.Qk===x.b.So&&(z.y=Math.max(z.y+w,h.y),r.y=Math.max(r.y+w,h.y));n[n.length-1].x=n[0].x;n[n.length-1].y=n[0].y;e.adjustRect();return y};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(195),ha=e(196),ca=e(197),da=e(198),aa=e(199),w=e(200),y=e(201),n=e(202),h=e(6);ia=function(){function f(){this.ZP={GoTo:ha.a,GoToR:ca.a,URI:da.a,Named:aa.a,JavaScript:w.a,ResetForm:y.a,SubmitForm:n.a,
|
|
Hide:x.a}}f.prototype.dda=function(f){if(Object(ea.isObject)(f)){var e=this.ZP[f.name];return e?new e(f):null}};f.prototype.eda=function(f,e,n){var r=h.a.P$(f);return(r=this.ZP[r])?(r=new r,r.deserialize(f,e,n),r):null};return f}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(6);ia=function(e){function da(aa){var w=e.call(this,aa)||this;w.Fb=[];w.jG=!0;w.elementName="Hide";w.set(aa);return w}Object(ea.c)(da,e);da.prototype.set=function(e){Object(x.isObject)(e)&&(Object(x.isArray)(e.fields)&&
|
|
(this.Fb=e.fields.slice()),Object(x.isUndefined)(e.hide)||(this.jG=!!e.hide))};da.prototype.onTriggered=function(aa,w,y){e.prototype.onTriggered.call(this,aa,w,y);var n=y.ta().ue(),h=this;this.Fb.forEach(function(f){n.gc(f).uh(!h.hide)})};da.prototype.deserialize=function(aa,w){e.prototype.deserialize.call(this,aa,w);w=!0;if(Object(x.isNull)(ha.a.getAttribute(aa,"HideField")))if(0<aa.getElementsByTagName("Hide").length){aa=aa.getElementsByTagName("Hide")[0];var y=ha.a.getAttribute(aa,"Fields").split(",");
|
|
w="false"!==ha.a.getAttribute(aa,"Hide")}else y=[ha.a.getAttribute(aa,"ShowField")],w=!1;else y=[ha.a.getAttribute(aa,"HideField")];this.jG=w;this.Fb=y};da.prototype.serialize=function(aa){aa=e.prototype.serialize.call(this,aa);aa.setAttribute("Fields",this.kw.join(","));aa.setAttribute("Hide",this.hide?"true":"false");return aa};Object.defineProperty(da.prototype,"fields",{get:function(){return this.Fb},enumerable:!1,configurable:!0});Object.defineProperty(da.prototype,"hide",{get:function(){return this.jG},
|
|
enumerable:!1,configurable:!0});return da}(e(67).a);ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(67),ca=e(148);ia=function(e){function aa(w){var y=e.call(this,w)||this;y.ti=new ca.a({});Object(x.isObject)(w)&&y.ti.set(w.dest);y.elementName="GoTo";return y}Object(ea.c)(aa,e);aa.prototype.onTriggered=function(w,y,n){e.prototype.onTriggered.call(this,w,y,n);this.ti.SQ(n)};aa.prototype.serialize=function(e){var w=ha.a.prototype.serialize.call(this,e);w.appendChild(this.ti.serialize(e));
|
|
return w};aa.prototype.deserialize=function(w,y,n){e.prototype.deserialize.call(this,w,y,n);this.ti.deserialize(w,y,n)};Object.defineProperty(aa.prototype,"dest",{get:function(){return this.ti},enumerable:!1,configurable:!0});return aa}(ha.a);ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(148);ia=function(e){function da(aa){var w=e.call(this,aa)||this;w.ti=new ha.a(aa);w.elementName="GoToR";Object(x.isObject)(aa)&&(w.ti.set(aa.dest),w.Vz=aa.filename,w.FG=aa.newWindow);return w}Object(ea.c)(da,
|
|
e);da.prototype.onTriggered=function(aa,w,y){e.prototype.onTriggered.call(this,aa,w,y);this.ti.SQ(y)};da.prototype.serialize=function(aa){var w=e.prototype.serialize.call(this,aa);this.FG||w.setAttribute("NewWindow","false");var y=document.createElementNS("","File");this.Vz&&y.setAttribute("OriginalName",this.Vz);w.appendChild(y);w.appendChild(this.ti.serialize(aa));return w};da.prototype.deserialize=function(aa,w,y){e.prototype.deserialize.call(this,aa,w,y);this.ti.deserialize(aa,w,y,!0);aa=aa.getElementsByTagName("GoToR")[0];
|
|
this.FG="false"!==aa.getAttribute("NewWindow");aa=aa.getElementsByTagName("File");1===aa.length&&(this.Vz=aa[0].getAttribute("OriginalName"))};Object.defineProperty(da.prototype,"dest",{get:function(){return this.ti},enumerable:!1,configurable:!0});Object.defineProperty(da.prototype,"filename",{get:function(){return this.Vz},enumerable:!1,configurable:!0});Object.defineProperty(da.prototype,"newWindow",{get:function(){return this.FG},enumerable:!1,configurable:!0});return da}(e(67).a);ba.a=ia},function(ia,
|
|
ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(6);ia=function(e){function da(aa){var w=e.call(this,aa)||this;w.rv="";w.elementName="URI";Object(x.isObject)(aa)&&Object(x.isString)(aa.uri)&&(w.rv=aa.uri);return w}Object(ea.c)(da,e);da.prototype.onTriggered=function(aa,w,y){e.prototype.onTriggered.call(this,aa,w,y);aa=this.rv.trim();w=0===aa.indexOf("javascript:");y=0===aa.indexOf("data:");!w&&!y&&(0!==aa.indexOf("http://")&&0!==aa.indexOf("https://")&&0!==aa.indexOf("ftp://")&&0!==aa.indexOf("mailto:")&&
|
|
0!==aa.indexOf("tel:")&&-1===aa.indexOf("://")&&(aa=-1!==aa.indexOf("@")?"mailto:"+aa:"http://"+aa),aa=window.open(aa))&&(aa.opener=null)};da.prototype.deserialize=function(aa,w){e.prototype.deserialize.call(this,aa,w);w=ha.a.getAttribute(aa,"Target");Object(x.isNull)(w)&&(aa=ha.a.tT(aa),w=ha.a.getAttribute(aa,"Name"));this.rv=w};da.prototype.serialize=function(aa){aa=e.prototype.serialize.call(this,aa);aa.setAttribute("Name",this.rv);return aa};Object.defineProperty(da.prototype,"uri",{get:function(){return this.rv},
|
|
enumerable:!1,configurable:!0});return da}(e(67).a);ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2),ha=e(0);e.n(ha);ia=e(67);var ca=e(6);e=function(e){function aa(w){var y=e.call(this,w)||this;y.ur="";y.elementName="Named";Object(ha.isObject)(w)&&Object(ha.isString)(w.action)&&(y.ur=w.action);return y}Object(ea.c)(aa,e);aa.prototype.onTriggered=function(w,y,n){e.prototype.onTriggered.call(this,w,y,n);switch(this.ur){case "NextPage":n.uf(w.ua()+1);break;case "PrevPage":n.uf(w.ua()-1);break;case "FirstPage":n.uf(1);
|
|
break;case "LastPage":n.uf(n.Wb());break;case "Print":n.ta().ue().print();default:Object(x.j)("Invalid named action name: "+this.ur)}};aa.prototype.deserialize=function(w,y){e.prototype.deserialize.call(this,w,y);y=ca.a.getAttribute(w,"N");Object(ha.isNull)(y)&&0<w.getElementsByTagName("Named").length&&(y=ca.a.getAttribute(w.getElementsByTagName("Named")[0],"Name"));this.ur=y};aa.prototype.serialize=function(w){w=e.prototype.serialize.call(this,w);w.setAttribute("Name",this.ur);return w};Object.defineProperty(aa.prototype,
|
|
"action",{get:function(){return this.ur},enumerable:!1,configurable:!0});return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(6);ia=function(e){function da(aa){var w=e.call(this,aa)||this;w.hv=null;w.TF=null;w.set(aa);w.elementName="JavaScript";return w}Object(ea.c)(da,e);da.prototype.set=function(e){Object(x.isObject)(e)&&Object(x.isString)(e.javascript)&&(this.hv=e.javascript)};da.prototype.onTriggered=function(aa,w,y){e.prototype.onTriggered.call(this,aa,w,y);aa=y.getDocument().iv;
|
|
this.TF||(this.TF=aa.cs(this.hv,y));aa.Ot(this.TF,w,y)};da.prototype.deserialize=function(aa,w){e.prototype.deserialize.call(this,aa,w);w=ha.a.getAttribute(aa,"JavaScript");w||(w=aa.getElementsByTagName("JavaScript")[0].textContent);this.set({javascript:w})};da.prototype.serialize=function(aa){aa=e.prototype.serialize.call(this,aa);this.hv&&aa.appendChild(document.createTextNode(this.hv));return aa};Object.defineProperty(da.prototype,"javascript",{get:function(){return this.hv||""},enumerable:!1,
|
|
configurable:!0});return da}(e(67).a);ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2),ha=e(0);e.n(ha);ia=e(67);var ca=e(6);e=function(e){function aa(w){var y=e.call(this,w)||this;y.Ym=!1;y.Fb=null;y.elementName="ResetForm";if(Object(ha.isObject)(w)){var n=w.fields;if(Object(ha.isArray)(n))y.Fb=n.slice();else if("string"===typeof n||n instanceof String)y.Fb=[n];Object(ha.isUndefined)(w.exclude)||(y.Ym=!!w.exclude)}return y}Object(ea.c)(aa,e);aa.prototype.onTriggered=function(w,y,n){e.prototype.onTriggered.call(this,
|
|
w,y,n);var h=this,f=n.ta().ue();w=f.bu;f.bu=!1;this.Ym||Object(ha.isNull)(this.Fb)?f.Ry({Bx:function(f,e,n){h.Fb&&-1!==h.Fb.indexOf(f)||n.$X()}}):this.Fb.forEach(function(e){var h=f.gc(e);h?h.$X():Object(x.j)("Missing field during reset:",e)});f.bu=w;f.Dv(null,0)};aa.prototype.deserialize=function(w,y){e.prototype.deserialize.call(this,w,y);y=[];var n=!0;Object(ha.isNull)(ca.a.getAttribute(w,"ResetFields"))?Object(ha.isNull)(ca.a.getAttribute(w,"ResetExcludedFields"))?0<w.getElementsByTagName("ResetForm").length&&
|
|
(w=w.getElementsByTagName("ResetForm")[0],(y=ca.a.getAttribute(w,"Fields"))&&(y=y.split(",")),w=parseInt(ca.a.getAttribute(w,"Flags"),10),Object(ha.isNull)(y)||Object(ha.isUndefined)(y)?(y=[],n=!0):n=1===w?!0:!1):(y=ca.a.getAttribute(w,"ResetExcludedFields").split(","),n=!0):(y=ca.a.getAttribute(w,"ResetFields").split(","),n=!1);this.Fb=y;this.Ym=!!n};aa.prototype.serialize=function(w){w=e.prototype.serialize.call(this,w);this.Fb&&w.setAttribute("Fields",this.Fb.join(","));w.setAttribute("Flags",
|
|
this.Ym?"1":"0");return w};Object.defineProperty(aa.prototype,"fields",{get:function(){return this.Fb},enumerable:!1,configurable:!0});Object.defineProperty(aa.prototype,"exclude",{get:function(){return this.Ym},enumerable:!1,configurable:!0});return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(2),ha=e(0);e.n(ha);ia=e(67);var ca=e(13),da=e(6);e=function(e){function w(w){var n=e.call(this,w)||this;n.sv="";n.Fb=[];n.dG="xfdf";n.bv=!1;n.NP="POST";n.Ym=!1;n.elementName="SubmitForm";n.Yc=new ca.a({mask:"IncludeNoValueFields IncludeAppendSaves IncludeAnnotations CanonicalFormat WxclNonUserAnnots ExclFKey EmbedForm".split(" ")});
|
|
n.set(w);return n}Object(ea.c)(w,e);w.prototype.set=function(e){Object(ha.isObject)(e)&&(e.url&&(this.sv=String(e.url)),Object(ha.isArray)(e.fields)&&(this.Fb=e.fields.slice()),e.format&&(this.dG=e.format),e.includeEmpty&&(this.bv=!!e.includeEmpty),e.flags&&this.Yc.set(e.flags),e.method&&(this.NP=e.method),e.exclude&&(this.Ym=!!e.exclude))};w.prototype.onTriggered=function(w,n,h){e.prototype.onTriggered.call(this,w,n,h);var f=this,r=[],z=h.ta(),fa=z.ue();0<this.Fb.length?this.Fb.forEach(function(f){r.push(fa.gc(f))}):
|
|
fa.Up(function(e){Object(ha.isNull)(e.value)&&!f.bv||r.push(e)});w="";this.KC("xfdf")?w=z.Nr.I1(r):(this.KC("fdf")&&Object(x.j)("FDF Export is not supported. Defaulting to export as HTML Forms"),w=z.Nr.J1(r));z.ZQ&&!z.ZQ({url:this.sv,fdf:"xfdf"!==this.dG,empty:this.bv,fields:this.Fb})||fetch(this.sv,{method:"POST",body:w}).then(function(f){return f.ok?f.text():Promise.reject()}).then(function(f){z.AZ?z.AZ(f):Object(x.j)("SubmitForm action handler has not been set. Please call annotationManager.setSubmitFormActionCallback to setup a handler.")}).catch(function(){Object(x.j)("Failed to submit form data to server.")})};
|
|
w.prototype.deserialize=function(w,n){e.prototype.deserialize.call(this,w,n);var h=w.getElementsByTagName("SubmitForm"),f="SubmitURL",r="SubmitFields";n="SubmitFlag";0<h.length&&(w=h[0],f="URL",r="Fields",n="Flags");h=da.a.getAttribute(w,f);f=null;Object(ha.isNull)(da.a.getAttribute(w,r))||(f=da.a.getAttribute(w,r).split(","));r=0;Object(ha.isNull)(da.a.getAttribute(w,n))||(r=parseInt(da.a.getAttribute(w,n),10));w="fdf";r&4&&(w="html");r&32&&(w="xfdf");this.set({url:h,fields:f||void 0,format:w,flags:0!==
|
|
(r&2)?["IncludeNoValueFields"]:[]})};w.prototype.serialize=function(w){w=e.prototype.serialize.call(this,w);w.setAttribute("Fields",this.Fb.join(","));w.setAttribute("Flags",Object(ha.toString)((this.KC("xfdf")?32:0)|(this.KC("html")?4:0)|(this.bv?2:0)));w.setAttribute("URL",this.sv);return w};w.prototype.KC=function(e){return e.toLowerCase()===this.format.toLowerCase()};Object.defineProperty(w.prototype,"format",{get:function(){return this.dG},enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,
|
|
"url",{get:function(){return this.sv},enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,"fields",{get:function(){return this.Fb},enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,"includeEmpty",{get:function(){return this.bv},enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,"flags",{get:function(){return this.Yc},set:function(e){this.Yc.set(e)},enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,"method",{get:function(){return this.NP},
|
|
enumerable:!1,configurable:!0});Object.defineProperty(w.prototype,"exclude",{get:function(){return this.Ym},enumerable:!1,configurable:!0});return w}(ia.a);ba.a=e},function(ia,ba,e){function ea(e,ca,da){return new Promise(function(aa){if(!e)return aa();var w=da.document.createElement("script");w.type="text/javascript";w.onload=function(){aa()};w.onerror=function(){ca&&Object(x.j)(ca);aa()};w.src=e;da.document.getElementsByTagName("head")[0].appendChild(w)})}e.d(ba,"a",function(){return ea});var x=
|
|
e(2)},function(ia,ba,e){function ea(e,w){x.a.call(this,e,w);this.fieldFlags.hw([ha.a.MULTILINE,ha.a.DO_NOT_SCROLL,ha.a.PASSWORD]);this.Sz=!1;this.Rg=this.Va.maxLen}var x=e(24),ha=e(13),ca=e(12),da=window;ea.prototype={Oo:"Tx",yl:"text",nl:function(){x.a.prototype.nl.apply(this,arguments);this.IQ()},refresh:function(e){x.a.prototype.refresh.call(this);var w=this.innerElement;if(w){if(e){var y=w.selectionStart;var n=w.selectionEnd}w.value=this.value||"";e&&w.setSelectionRange(y,n);e=!!this.fieldFlags.get(ha.a.READ_ONLY);
|
|
(w.readOnly=e)||w.removeAttribute("disabled");w.tabIndex=e?-1:0}},Im:function(){return this.fV()&&this.Uc()&&!this.tw()},Fd:function(){var e=x.a.prototype.Fd.apply(this,arguments);this.Im()&&(e["background-color"]="transparent",e.color="rgba(0,0,0,0)",e["border-style"]="none",e["border-color"]=null,e["border-width"]=null,e["border-radius"]=null);var w=e["font-size"]?parseInt(e["font-size"],10):0,y=parseFloat(this.td.apply(this,arguments).height||0);y=Math.max(y-2*parseFloat(e.border||0)-2*parseFloat(e.padding||
|
|
0),0);w>y&&(e["font-size"]=y+"px");return e},td:function(e){var w=x.a.prototype.td.apply(this,arguments),y=x.a.prototype.Fd.apply(this,arguments),n=y.height?y.height:0;n=Math.max(parseFloat(n||0)-2*parseFloat(y.border||0)-2*parseFloat(y.padding||0),0);y=this.fieldFlags.get(ha.a.MULTILINE);y={"word-wrap":"break-word",resize:"none","background-color":"transparent","overflow-y":this.fieldFlags.get(ha.a.MULTILINE)?"auto":"hidden","overflow-x":"hidden","padding-top":(y?this.font.size*e*.6:0)+"px"};w.height>
|
|
n&&(y.height=n+"px");if(this.fieldFlags.get(ha.a.COMB)){var h=this.Width*e/(this.Rg?this.Rg:this.value.length);y["text-indent"]="calc(("+h+"px - 1ch) / 2)";y["letter-spacing"]="calc("+h+"px - 1ch)";y["font-family"]="Monospace";y["line-height"]=n+"px"}return Object.assign(w,y,this.Hl())},ml:function(e,w){x.a.prototype.ml.apply(this,arguments);if(this.aK()&&w["font-size"]&&e.value){var y=e.style.overflowY;e.style.overflowY="hidden";e.offsetHeight;e.style.overflowY=y}},aK:function(){return 0===this.font.size},
|
|
Gda:function(){return this.aK()&&this.font.Vm===this.font.OP},bo:function(){var e=this.innerElement;if(e)return e.value},Vaa:function(e,w){if(e!==w){for(var y=0;e.charAt(y)===w.charAt(y);)y++;for(var n=0;e.charAt(e.length-1-n)===w.charAt(w.length-1-n)&&n+y<e.length&&n+y<w.length;)n++;var h=0;if(e.length!==y+n){h=e.length-n-y;var f=""}w.length!==y+n&&(f=w.slice(y,w.length-n));return{result:f,start:y,end:y+h}}},createInnerElement:function(){function e(){setTimeout(function(){n.refresh(!0)},0)}function w(f){return n.aK()&&
|
|
(!n.Gda()||f)}function y(f,e){f.preventDefault();e.value=n.Ab();e.style.overflowY="hidden";e.offsetHeight;e.style.overflowY="auto"}var n=this,h=this.fieldFlags,f=h.get(ha.a.MULTILINE),r=h.get(ha.a.READ_ONLY),z=h.get(ha.a.PASSWORD);if(f)var fa=document.createElement("textarea");else fa=document.createElement("input"),fa.type="text";0<this.Rg&&fa.setAttribute("maxlength",this.Rg);r&&(fa.readOnly=!0,fa.tabIndex=-1);z&&(fa.type="Password");ca.a.p9(fa,function(r){var z=0,aa=0,ka=r.change,la=n.Ab()||"";
|
|
if(!r.XU){aa=n.Vaa(la,ka);if(!aa)return;r.change=aa.result;z=aa.start;aa=aa.end}ka=da.Annotations.ha.zc.xb;z=ka.va.create("Keystroke",n.gc(),{value:r.XU?"":la,change:r.change,selStart:z,selEnd:aa,willCommit:!1});n.Va.Tf("K",z);if(z.rc){z=ka.Il(z);la=null!==n.fd&&void 0!==n.fd&&z.length<n.fd.length;aa=!0;if(h.get(ha.a.DO_NOT_SCROLL))if(f)if(w(la))e();else{if(fa.scrollHeight-1>=fa.clientHeight){z=fa;la=z.value;aa=z.selectionStart;ka=z.selectionEnd;z.value="";for(var ea=z.clientHeight,ba=z.scrollHeight,
|
|
sa=!1,ia="",qa=0;la&&qa<la.length;qa++)if(ba>=ea&&(sa=!0),ia+=la[qa],z.value=ia,z.scrollHeight>ba&&sa){z.value=ia.slice(0,ia.length-1);break}else ba=z.scrollHeight;z.selectionStart=aa;z.selectionEnd=ka;z=z.value;aa=!0}}else la?(aa=!0,w(la)&&e()):w(la)?e():aa=ca.a.measureText(z||" ",fa.parentNode.style.fontSize,fa.parentNode.style.fontFamily,fa.parentNode.style.fontWeight).width<parseInt(fa.style.width,10);else w(la)&&e();0<n.Rg&&(aa=aa&&z.length<=n.Rg);aa?(n.fd=z,document.activeElement===fa?n.DY():
|
|
n.trigger(x.a.Events.COMMIT)):y(r,fa)}else y(r,fa)},!f);return fa},fV:function(){return this.fieldFlags.get(ha.a.READ_ONLY)}};ea.prototype=Object.assign(Object.create(x.a.prototype),ea.prototype);ba.a=ea},function(ia,ba,e){function ea(e,h){var f=this;ca.a.call(this,e,h);this.fieldFlags.set(da.a.RADIO);this.mZ();this.k_=!0;this.addEventListener(ea.Events.CLICK,function(){"Off"===f.Ab()?f.trigger(ea.Events.CHANGE,f.gk()):f.trigger(ea.Events.CHANGE,"Off")})}var x=e(0);e.n(x);var ha=e(24),ca=e(70),da=
|
|
e(13),aa=e(57),w=e(6),y=e(12);ea.prototype={Cv:"R",yl:"radioButton",cK:function(){return this.Ab()===this.gk()},bo:function(){return this.gk()},hr:function(e){var h=this.cK()?Object(aa.b)(this.aJ()):"";if(0===h.length&&0!==e.innerHTML.length||0!==h.length&&0===e.innerHTML.length)e.innerHTML=h},refresh:function(){ha.a.prototype.refresh.call(this);var e=this.innerElement;if(e){this.hr(e);this.ml(e,this.td(y.a.Rm));var h=!!this.fieldFlags.get(da.a.READ_ONLY),f=e.childNodes||[];if(f.length){var r=this.font.fillColor;
|
|
f[0].style.fill=h?"#ECECEC":r}this.Mo(e)}},Fd:function(){var e=ha.a.prototype.Fd.apply(this,arguments),h=this.fieldFlags.get(da.a.REQUIRED),f=Math.min(parseInt(e.height,10),parseInt(e.width,10));if(e.height!==e.width){var r=Math.abs(parseInt(e.height,10)-parseInt(e.width,10));e.margin=parseInt(e.height,10)>parseInt(e.width,10)?r/2+"px 0px 0px 0px":"0px 0px 0px "+r/2+"px";e.height=f+"px";e.width=f+"px"}h&&(e["border-radius"]=f+"px");return e},Aca:function(){var e=Object(x.get)(this,"border.width",
|
|
0),h=Object(x.get)(this,"border.color.A",0);return e&&h},td:function(){var e=!!this.fieldFlags.get(da.a.READ_ONLY),h=ca.a.prototype.td.apply(this,arguments);h.left=Math.round(h.left);h.top=Math.round(h.top);var f=this.Aca()?this.border.width:0;return Object.assign(h,{border:f+"px solid #ccc",borderRadius:"50%",margin:0,height:"100%",width:"100%",display:"flex",backgroundColor:e?"#D2D2D2":"inherits"},this.Hl())},uj:function(e){"Off"!==e&&-1!==Object.keys(this.appearances).indexOf(e)?(this.appearance=
|
|
e,ca.a.prototype.uj.call(this,e)):(this.appearance="Off",ca.a.prototype.uj.call(this,"Off"))},aJ:function(){return this.captions.Normal.toLowerCase()||"l"},createInnerElement:function(){var e=this,h=document.createElement("div");this.Mo(h);this.hr(h);h.setAttribute("tabindex",0);h.addEventListener("click",function(){h.disabled||(e.trigger(ea.Events.CLICK),e.hr(h))});return h},deserialize:function(e,h,f){var n=w.a.getAttribute(e,"N");n&&(this.appearances.Off={},this.appearances[n]={});ca.a.prototype.deserialize.call(this,
|
|
e,h,f)}};ea.prototype=Object.assign(Object.create(ca.a.prototype),ea.prototype);ea.Events={CLICK:"click",CHANGE:"change"};ba.a=ea},function(ia,ba,e){var ea=e(1);ia=e(207);var x=e(45),ha=e(149),ca=e(18),da=e(53),aa=e(54),w=e(3),y=window;e=function(e){function h(f,h){void 0===h&&(h=w.m.AREA_MEASUREMENT);h=e.call(this,f,h)||this;x.a.call(h,f,y.Annotations.pi);Object(da.b)(h.defaults,new aa.b(h));h.IT="PolygonDimension";h.Measure=Object(ca.a)(ca.b);h.xl=Object(aa.a)({isEnabled:!0});return h}Object(ea.c)(h,
|
|
e);h.prototype.mouseLeftDown=function(f){e.prototype.mouseLeftDown.call(this,f);this.annotation&&(this.annotation.Rotation=90*this.aa.Hc(this.annotation.PageNumber),this.annotation.measurementCaptionOptions=Object(aa.a)(this.xl),this.annotation.measurementCaptionOptions.captionRect=this.annotation.jT(),this.annotation.hy(ha.a.SNAP_DROP_AREA_SIZE),this.annotation.$U()&&(this.annotation.PX(),this.annotation.finish(),this.finish()))};h.prototype.finish=function(){this.annotation&&this.aa.la.qb(this.annotation);
|
|
e.prototype.finish.call(this)};h.prototype.Yl=function(){return!0};return h}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(113);var x=e(18),ha=e(53),ca=e(54),da=e(3);e=e(133);ia=function(e){function w(w,n){void 0===n&&(n=da.m.PERIMETER_MEASUREMENT);w=e.call(this,w,n)||this;w.IT="PolyLineDimension";w.Measure=Object(x.a)(x.b);Object(ha.b)(w.defaults,new ca.b(w));w.wd=null;return w}Object(ea.c)(w,e);w.prototype.mouseLeftDown=function(w){e.prototype.mouseLeftDown.call(this,w);this.annotation&&(!this.Ub||
|
|
this.overrideSelection||this.Fe)&&(this.annotation.Measure=Object(x.a)(this.Measure),this.annotation.IT=this.IT,this.mL())};return w}(ia.a);Object(e.a)(ia);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(45);var x=e(26),ha=e(4),ca=e(8),da=e(52),aa=e(3),w=window;e=function(e){function n(h,f){h=e.call(this,h,w.Annotations.gb)||this;h.pG=!0;h.initialText="Insert text here";h.defaults.StrokeThickness=0;h.defaults.TextColor=new ca.a(255,0,0);h.defaults.Font="Helvetica";h.defaults.TextAlign="left";h.defaults.TextVerticalAlign=
|
|
"top";h.defaults.FontSize="12pt";h.defaults.RichTextStyle={0:{"font-weight":"normal","font-style":"normal","text-decoration":"none"}};h.name=f||aa.m.FREETEXT;return h}Object(ea.c)(n,e);n.ry=function(e){n.prototype.Zk=e};n.prototype.u9=function(){this.pG=!0};n.prototype.y7=function(){this.pG=!1};n.prototype.MU=function(){return this.pG};n.prototype.Zk=function(){return this.initialText};n.prototype.cx=function(){var e=this.aa.ta().mC().As,f=e?document.body.contains(e.Wg()):!1;return!!e&&f};n.prototype.mouseLeftDown=
|
|
function(h){var f=0<this.aa.ta().Ed().length;e.prototype.mouseLeftDown.call(this,h);this.isSelecting()||(this.cx()||f?this.annotation=null:this.annotation&&(this.annotation.StrokeThickness=this.defaults.StrokeThickness,this.annotation.FillColor=new ca.a(200,220,250,.2),this.annotation.Zt(w.Annotations.gb.nc.FreeText),this.annotation.setContents(this.Zk()),this.annotation.Rotation=90*this.aa.Hc(this.annotation.PageNumber),h=this.defaults.TextColor,this.annotation.TextColor=new ca.a(h.R,h.G,h.B,h.A),
|
|
this.annotation.FontSize=this.defaults.FontSize,this.annotation.TextAlign=this.defaults.TextAlign,this.annotation.TextVerticalAlign=this.defaults.TextVerticalAlign,this.annotation.Font=this.defaults.Font,this.annotation.oy(this.defaults.RichTextStyle)))};n.prototype.mouseMove=function(e){x.a.prototype.mouseMove.call(this,e);if(!this.isSelecting()&&!this.cx()&&this.annotation&&"undefined"!==typeof this.pageCoordinates){var f=this.pageCoordinates[0],h=this.pageCoordinates[1];null!==h&&null!==f&&f.pageNumber===
|
|
h.pageNumber&&(f=new ha.d(f.x,f.y,h.x,h.y),f.normalize(),this.annotation.cc(f),this.annotation.ky(new ha.d(0,0,0,0)),this.aa.la.qb(this.annotation),this.Bn(e))}};n.prototype.mouseLeftUp=function(e){return Object(ea.b)(this,void 0,Promise,function(){var f,h,w,fa,y,aa,ba,ma,la,na,ra,sa,ia,qa,va;return Object(ea.d)(this,function(r){switch(r.label){case 0:x.a.prototype.mouseLeftUp.call(this,e);if(this.isSelecting())return[2];if(!this.overrideSelection&&this.Ub&&this.annotation&&(f=this.annotation.Ba(),
|
|
h=this.annotation.wa(),w=2*(this.annotation.getRectPadding()+1),f<=w||h<=w)||this.cx())return this.annotation=null,[2];if(!this.annotation)return[3,3];fa=this.annotation.Ba();y=this.annotation.wa();aa=2*(this.annotation.getRectPadding()+1);if((ba=fa<=aa||y<=aa)&&!this.aa.ta().WU())return this.annotation=null,[2];ba&&(this.annotation.ar(0),this.annotation.Fm(0),this.annotation.Rotation=90*this.aa.Hc(this.annotation.PageNumber),this.annotation.Wt(da.a.Pm),this.annotation.Ei=this.annotation.X,this.annotation.Fi=
|
|
this.annotation.Y);ma=this.defaults.FillColor;this.annotation.FillColor=new ca.a(ma.R,ma.G,ma.B,ma.A);la=this.annotation.getRectPadding();this.annotation.ky(new ha.d(la,la,la,la));this.annotation.sj([new ha.b(this.pageCoordinates[0].x,this.pageCoordinates[0].y),new ha.b(this.pageCoordinates[1].x,this.pageCoordinates[1].y)]);if(!ba)return[3,2];na=this.aa.la.mC();return[4,na.RC(this.annotation)];case 1:r.ea(),na.OL(this.annotation),ra=this.annotation.PageNumber,sa=this.aa.getDocument(),ia=sa.hc(ra),
|
|
qa=sa.mb(ra),va=sa.ad(ra),this.annotation.JS(qa,ia,va),r.label=2;case 2:this.aa.la.qb(this.annotation),this.aa.la.Sd(this.annotation,{autoFocus:this.MU()}),this.trigger(n.Events.ANNOTATION_ADDED,[this.annotation]),this.annotation=null,r.label=3;case 3:return[2]}})})};n.Events={ANNOTATION_ADDED:"annotationAdded"};return n}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(45),ca=e(26),da=e(3),aa=e(10),w=window;ia=function(e){function n(h,f){var r=e.call(this,h,w.Annotations.FreeHandAnnotation)||
|
|
this;r.Nc=0;r.qB=null;r.mouseDown=!1;n.prototype.createDelay=1500;n.prototype.simplifyPen=!1;r.createDelay=n.prototype.createDelay;r.simplifyPen=n.prototype.simplifyPen;r.pointerType=null;r.name=f||da.m.FREEHAND;r.yP();h.addEventListener(aa.e.DOCUMENT_UNLOADED,function(){r.annotation=null;r.kE()});return r}Object(ea.c)(n,e);n.prototype.yP=function(){delete this.defaults.FillColor};n.prototype.mouseLeftDown=function(h){var f=0<this.aa.ta().Ed().length;e.prototype.mouseLeftDown.call(this,h);if(!(this.isSelecting()||
|
|
!this.pageCoordinates[0]||this.Ub&&!this.overrideSelection||f)&&(this.type||(this.type=h.type),this.type===h.type)){this.mouseDown=!0;if(this.pageCoordinates[0].pageNumber===this.annotation.PageNumber){f=this.pageCoordinates[0].x;var n=this.pageCoordinates[0].y,w=!1,fa=this.annotation.Ra(this.Nc);fa&&0<fa.length&&(fa=fa[fa.length-1],fa.x===f&&fa.y===n&&(w=!0));w||this.annotation.Bc(f,n,this.Nc)}else{var y=this;this.complete(!0).then(function(){y.mouseLeftDown(h)})}clearTimeout(this.qB)}};n.prototype.complete=
|
|
function(e){var f=this;if(this.mouseDown&&!e)return Promise.resolve();if(this.annotation&&0<this.annotation.mg().length)return this.aa.la.qb(this.annotation).then(function(){f.annotation&&(f.EQ(),ha.a.prototype.mouseLeftUp.call(f,null),f.HG())});f.HG();this.annotation=null;return Promise.resolve()};n.prototype.EQ=function(){this.annotation.finish()};n.prototype.pK=function(){return!1};n.prototype.mouseRightDown=function(){this.complete()};n.prototype.switchOut=function(h){var f=this;this.complete().then(function(){e.prototype.switchOut.call(f,
|
|
h)})};n.prototype.mouseLeftUp=function(e){ca.a.prototype.mouseLeftUp.call(this,e);this.isSelecting()||(this.mouseDown=!1,this.annotation&&this.BJ())};n.prototype.BJ=function(){var e=this.aa.la,f=this.annotation.Ra(this.Nc);f&&f.length&&("pen"===this.pointerType&&this.simplifyPen&&(this.annotation.shouldSimplifyPath=!0,this.annotation.bla()),e.qb(this.annotation),this.Nc++,this.qB=setTimeout(Object(x.bind)(this.complete,this),this.createDelay));0===this.annotation.mg().length&&(this.complete(),clearTimeout(this.qB))};
|
|
n.prototype.mouseMove=function(e){ca.a.prototype.mouseMove.call(this,e);if(!this.isSelecting()&&!1!==this.mouseDown){if(this.annotation&&null!==this.pageCoordinates&&null!==this.pageCoordinates[1]){if(this.pageCoordinates[0].pageNumber!==this.pageCoordinates[1].pageNumber)return;this.annotation.Bc(this.pageCoordinates[1].x,this.pageCoordinates[1].y,this.Nc);this.aa.la.qb(this.annotation)}this.annotation&&e.touches&&1<e.touches.length&&this.complete()}};n.prototype.HG=function(){this.Nc=0;this.mouseDown=
|
|
!1;this.type=null;clearTimeout(this.qB)};n.prototype.kE=function(){this.HG();ca.a.prototype.kE.call(this)};n.prototype.contextMenu=function(e){e.preventDefault()};n.prototype.setCreateDelay=function(e){this.createDelay=e};n.prototype.getCreateDelay=function(){return this.createDelay};n.prototype.setSimplifyPen=function(e){this.simplifyPen=e};n.prototype.getSimplifyPen=function(){return this.simplifyPen};return n}(ha.a);ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(26),ha=e(3),ca=e(45);ia=e(113);e=e(114);
|
|
var da=window;ia=function(e){function w(w,n){var h=e.call(this,w,n)||this;ca.a.call(h,w,da.Annotations.Eu);h.annotation=null;h.name=n||ha.m.ARC;h.Bk=!1;h.Fe=!1;h.wd=null;return h}Object(ea.c)(w,e);w.prototype.mouseLeftDown=function(e){return Object(ea.b)(this,void 0,Promise,function(){var n,h,f,r;return Object(ea.d)(this,function(w){switch(w.label){case 0:h=0<this.aa.ta().Ed().length;ca.a.prototype.mouseLeftDown.call(this,e);f=this.annotation&&0===this.annotation.Ra().length;if(this.isSelecting()||
|
|
this.Ub&&f&&!this.Fe&&!this.overrideSelection||h)return this.annotation=null,[2];if(!this.annotation)return[3,7];n=e.data.pageCoordinate;if(!n||n.pageNumber!==this.annotation.ua())return"CalloutCreateTool"===this.sg?(this.Mv(),this.aa.la.Dc(this.annotation),this.annotation=null):this.mouseDoubleClick(e),[2];if(null===n.x||null===n.y)return[2];r=this.annotation.ga;if(0!==r.length)return[3,3];this.annotation.Bc(n.x,n.y);return this.wd?[4,this.Ik(r[0])]:[3,2];case 1:w.ea(),w.label=2;case 2:return[3,
|
|
6];case 3:if(this.Bk)return[3,6];this.annotation.wo();this.annotation.Bc(n.x,n.y);return this.wd?[4,this.Ik(r[r.length-1])]:[3,5];case 4:w.ea(),w.label=5;case 5:3<=r.length&&(this.annotation.finish(),this.finish()),w.label=6;case 6:this.Bk=!0,w.label=7;case 7:return[2]}})})};w.prototype.mouseMove=function(e){return Object(ea.b)(this,void 0,Promise,function(){var n,h,f;return Object(ea.d)(this,function(r){switch(r.label){case 0:x.a.prototype.mouseMove.call(this,e);this.wd&&!this.annotation&&this.qs(e);
|
|
if(!this.annotation||this.isSelecting()||!e.data)return[2];n=e.data.pageCoordinate;if(null===n||null===n.x||null===n.y||n.pageNumber!==this.annotation.ua())return[2];this.Bk||this.annotation.wo();h=this.annotation.Ra();f=h.length&&h[h.length-1].x===n.x&&h[h.length-1].y===n.y;f||(this.annotation.Bc(n.x,n.y),this.Bk=!1);Object.getOwnPropertyDescriptor(Annotations.Annotation.prototype,"X").set.call(this.annotation,this.annotation.Eb.x);Object.getOwnPropertyDescriptor(Annotations.Annotation.prototype,
|
|
"Y").set.call(this.annotation,this.annotation.Eb.y);return this.wd?[4,this.Ik(h[h.length-1])]:[3,2];case 1:r.ea(),r.label=2;case 2:return this.aa.la.qb(this.annotation),this.Bn(e),[2]}})})};return w}(ia.a);Object(e.a)(ia);ba.a=ia},function(ia,ba,e){function ea(e){return e instanceof ha}e.d(ba,"b",function(){return ea});var x=window,ha,ca=[];ba.a=function(){x&&x.Worker&&(ha=x.Worker,ca=ca||[],ca.EZ||(ca.EZ=function(){for(var e=ca.length-1;0<=e;e--)ca[e].terminate(),delete ca[e]}),x.Worker.tda||(x.Worker=
|
|
function(e){e=new ha(e);ca.push(e);return e},x.Worker.tda=!0));window.addEventListener("unload",function(){ca&&ca.EZ()})}},function(ia,ba,e){var ea=e(1);ia=e(143);var x=e(12),ha=e(6),ca=window.Annotations||{};e=function(e){function aa(w){var y=e.call(this,w)||this;y.wz=!1;y.NU=w?w.sq:!1;y.isDisabled=!1;return y}Object(ea.c)(aa,e);aa.prototype.createInnerElement=function(){var e=document.createElement("span");e.className="link";e.setAttribute("tabindex","0");return e};aa.prototype.enable=function(){this.isDisabled=
|
|
!1};aa.prototype.disable=function(){this.isDisabled=!0};aa.prototype.nl=function(){var w=this;e.prototype.nl.apply(this,arguments);this.innerElement.addEventListener("tap",function(){w.isDisabled||w.trigger(ca.Pd.Events.MOUSE_UP)})};aa.prototype.hK=function(){return!0};aa.prototype.sq=function(){return this.NU};aa.prototype.Nw=function(){var w=ca.ha.zc.xb;return Object.assign(e.prototype.Nw.call(this),{U:{triggers:"tap",internal_name:"mouseup",getEvent:function(){return w.Pd.create("Mouse Up")}}})};
|
|
aa.prototype.Fd=function(w,y){var n=e.prototype.Fd.call(this,w,y),h={};if(this.StrokeThickness&&this.StrokeColor){var f=this.StrokeStyle,r="border";"underline"===f&&(r="border-bottom");if("solid"!==f&&"dash"!==f&&"dashed"!==f&&"inset"!==f)f="solid";else if("dash"===f||"dashed"===f)f="dashed";y=y.aa.hc(this.ua());h[r]=x.a.zv(y,this.StrokeThickness)*w+"px "+f+" "+this.StrokeColor.fr()}this.NU&&(h["z-index"]="34");return Object.assign(n,h)};aa.prototype.serialize=function(w,y){e.prototype.serialize.call(this,
|
|
w,y);this.StrokeColor&&w.setAttribute("color",this.StrokeColor.fr());"undefined"!==typeof this.StrokeThickness&&null!==this.StrokeThickness&&w.setAttribute("width",this.StrokeThickness);this.StrokeStyle&&w.setAttribute("style",this.StrokeStyle);this.uia(w,y);return w};aa.prototype.deserialize=function(w,y,n){e.prototype.deserialize.call(this,w,y,n);var h=ha.a.Mi(w.getAttribute("color"));h?this.StrokeColor=h:this.qn=null;h=w.getAttribute("width");"undefined"!==typeof h&&null!==h&&(this.StrokeThickness=
|
|
parseFloat(h));h=w.getAttribute("style");"undefined"!==typeof h&&null!==h&&(this.StrokeStyle=h);this.tQ(w,y,n);this.By()};aa.Events={MOUSE_UP:"mouseup"};return aa}(ia.a);e.prototype.elementName="link";(window.Annotations||{}).Pd=e;ba.a=e},function(ia,ba,e){function ea(e,aa){return Object(ha.b)(void 0,void 0,void 0,function(){var w,y;return Object(ha.d)(this,function(n){switch(n.label){case 0:return[4,x(e)];case 1:w=n.ea();y=aa;switch(e){case "ASCII85Decode":y=w.decode(y);break;case "FlateDecode":try{y=
|
|
w.Vl(y);break}catch(h){ca.g(h.message);break}default:throw Error("We don't yet support the "+e+" method of file compression at this time.");}return[2,y]}})})}function x(x){return Object(ha.b)(void 0,void 0,void 0,function(){var aa,w,y;return Object(ha.d)(this,function(n){switch(n.label){case 0:aa=x;switch(aa){case "ASCII85Decode":return[3,1];case "FlateDecode":return[3,3]}return[3,5];case 1:return[4,Promise.all([e.e(1),e.e(20)]).then(e.t.bind(null,447,7))];case 2:return w=n.ea().J_,[2,new w];case 3:return[4,
|
|
e.e(21).then(e.t.bind(null,247,7))];case 4:return y=n.ea().default,[2,y];case 5:throw Error("We don't yet support decompression of "+x+" compressed files");}})})}e.d(ba,"a",function(){return ea});var ha=e(1),ca=e(2)},function(ia,ba,e){var ea=e(1),x=e(28),ha=e(4),ca=e(16),da=e(17),aa=e(10),w=e(103);ia=e(51);var y=e(52),n=e(0);e.n(n);var h=e(8),f=e(12),r=window;e=function(){function e(f){var e=this;this.ib=f;this.As=null;this.onEditBoxAnnotationChanged=function(f,h,r){f.forEach(function(f){return Object(ea.b)(e,
|
|
void 0,void 0,function(){var e,w,z,fa,y,aa,x,ja;return Object(ea.d)(this,function(da){switch(da.label){case 0:return this.SU(f)?"add"===h&&this.ib.qH(f)&&this.m_(f)&&!r.imported&&!r.isUndoRedo&&r.autoFocus?(null===(x=f.editor)||void 0===x?0:x.Wg())?[3,2]:[4,this.RC(f)]:[3,3]:[2];case 1:da.ea(),da.label=2;case 2:return this.LS(f),f.editor.Eia(),[3,4];case 3:if("modify"===h&&f.rk())switch(e=f.$n(),w=e.x,z=e.y,fa=e.width,y=e.height,Object(n.isUndefined)(f.Ei)&&(f.Ei=f.X),Object(n.isUndefined)(f.Fi)&&
|
|
(f.Fi=f.Y),f.Rotation){case 90:f.Fi=z+y;break;case 180:f.Ei=w+fa;f.Fi=z+y;break;case 270:f.Ei=w+fa}else"delete"===h&&(aa=null===(ja=f.editor)||void 0===ja?void 0:ja.Wg(),null===aa||void 0===aa?void 0:aa.parentNode.removeChild(aa),f.editor=null);da.label=4;case 4:return[2]}})})})};this.onEditBoxAnnotationDoubleClicked=function(h){return Object(ea.b)(e,void 0,void 0,function(){var e,n,r,w,z,fa,y,aa,x;return Object(ea.d)(this,function(ja){switch(ja.label){case 0:return this.ib.qH(h)&&this.SU(h)&&this.m_(h)?
|
|
(null===(aa=h.editor)||void 0===aa?0:aa.Wg())?[3,2]:[4,this.RC(h)]:[2];case 1:ja.ea(),ja.label=2;case 2:if(!h.editor)return[3,4];e=h.ua();n=h.editor.selector;r=null===n||void 0===n?void 0:n.substring(0,n.indexOf(" "));w=null===r||void 0===r?void 0:r.search(/\d/);z=null===r||void 0===r?void 0:r.length;fa=null===r||void 0===r?void 0:r.substring(w,z);if(e===parseInt(fa,10))return[3,4];y=null===(x=h.editor)||void 0===x?void 0:x.Wg();null===y||void 0===y?void 0:y.parentNode.removeChild(y);h.editor=null;
|
|
return[4,this.RC(h)];case 3:ja.ea(),ja.label=4;case 4:return this.As&&h.editor.getContents()!==h.getContents()&&(h.editor.fy(),f.rM(h,h.editor.getContents())),this.LS(h),[2]}})})};this.ib.addEventListener(aa.c.rN,this.onEditBoxAnnotationChanged);this.ib.addEventListener(aa.c.sN,this.onEditBoxAnnotationDoubleClicked)}e.prototype.disable=function(){this.ib.removeEventListener(aa.c.rN,null,{df:!0});this.ib.removeEventListener(aa.c.sN,null,{df:!0})};e.prototype.SU=function(f){return f instanceof r.Annotations.gb};
|
|
e.prototype.RC=function(f){return Object(ea.b)(this,void 0,void 0,function(){var h,r,z,fa,y,da,ha=this;return Object(ea.d)(this,function(ja){switch(ja.label){case 0:return h=document.createElement("div"),r="freetext-editor-"+f.Id,h.id=r,h.classList.add("freetext-editor"),Object(ca.a)(h,"touchstart touchmove touchend mousedown mousemove mouseup dblclick".split(" "),function(f){return f.stopPropagation()}),z=f.ua(),fa=Object(x.a)().nq(z,this.ib.aa.Xa()),fa.appendChild(h),Object(ca.g)(window.Ya.ae()+
|
|
"external/quill.css"),y="#pageWidgetContainer"+z+' [id="'+r+'"]',da=new w.a(y,f,this.ib.aa),f.editor=da,[4,da.initialize()];case 1:return ja.ea(),da.addEventListener(w.a.xb.jF,function(){if(ha.As===da){ha.As=null;f.rk()&&ha.OL(f,ha.B$);h.style.display="none";var r=f.getContents(),w=da.getContents();(r=r!==w)&&ha.ib.rM(f,w);w=f.jk();da.fy();r||Object(n.isEqual)(w,f.jk())||(f.wP=!0,ha.ib.trigger(aa.b.ANNOTATION_CHANGED,[[f],"modify",{}]));ha.ib.kf([f]);setTimeout(function(){ha.ib.Cg(f)},0)}ha.trigger(e.Events.BLUR,
|
|
[da,f])}),da.addEventListener(w.a.xb.FN,function(){da.fy();ha.trigger(e.Events.FOCUS,[da,f])}),da.addEventListener(w.a.xb.BF,function(){ha.trigger(e.Events.TEXT_CHANGED)}),da.addEventListener(w.a.xb.zF,function(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];ha.trigger(e.Events.SELECTION_CHANGED,f)}),[2]}})})};e.prototype.OL=function(f,e){f.resize(f.Sa());var h=f.editor.Wg().getBoundingClientRect(),r=f.ua(),w=this.ib.aa.Lb(r);e||(e=w);e/=w;var z=h.width/e;var fa=h.height/e;h=this.ib.aa.hc(r);
|
|
e=this.ib.aa.ld(r);r=this.ib.aa.kd(r);var aa=f.ak(h),x=90*this.ib.aa.Hc(f.PageNumber);var da=Math.max(4.1*aa,.07)+10;var ka=3.6*aa,ca=f.$d();aa=ca.x;ca=ca.y;var ea=!1;f.rk()&&(aa=f.Ei,ca=f.Fi,f.Kh()===y.a.Pm&&(ea=!0));if(90===x||270===x)fa=[fa,z],z=fa[0],fa=fa[1];switch(f.Rotation){case 90:case 270:da=[da,ka],ka=da[0],da=da[1]}z=z/w+da;w=fa/w+ka;fa=f.Width;ka=f.Height;da=f.autoSizeProperties.shrinkWidth;x=f.autoSizeProperties.expandWidth;var ba=f.autoSizeProperties.shrinkHeight,ia=f.autoSizeProperties.expandHeight;
|
|
switch(f.Rotation){case 90:case 270:if(!da&&w<ka||!x&&w>ka)w=ka;if(!ba&&z<fa||!ia&&z>fa)z=fa;break;default:if(!da&&z<fa||!x&&z>fa)z=fa;if(!ba&&w<ka||!ia&&w>ka)w=ka}Object(n.isUndefined)(f.Ei)&&(f.Ei=f.X);Object(n.isUndefined)(f.Fi)&&(f.Fi=f.Y);switch(f.Rotation){case 90:ca=Math.min(ca+ka-w,r-w);ea&&0>ca&&(w+=ca,ca=0);break;case 180:aa=Math.min(aa+fa-z,e-z);ca=ca+ka-w;ea&&0>aa&&(z=aa+z,aa=0);break;case 270:ea&&ca+w>r&&(w=r-ca);aa=Math.min(aa+fa-z,e-z);break;default:ea&&aa+z>e&&(z=e-aa)}e=new ha.d(aa,
|
|
ca,aa+z,ca+w);f.DQ(e,h);this.ib.kf([f])};e.prototype.LS=function(f){var e=this,h=f.ua(),n=Object(x.a)().nq(h,this.ib.aa.Xa());h=this.ib.aa.Lb(h);n&&(this.As=f.editor,this.B$=h,f.editor.setContents());n=this.w5(f);f.editor.zka(n);f.editor.focus();this.ib.kf([f]);f.Kh()===y.a.Pm&&this.OL(f,h);setTimeout(function(){e.ib.Hn(f)},0)};e.prototype.w5=function(e){var n=e.ua(),r=this.ib.aa.Lb(n),w=this.ib.aa.hc(n);n=f.a.zv(w,parseFloat(e.FontSize)||12)*r*.75;da.n&&(n=Math.max(12,n));var z=e.Bw();n+=z;z=2*e.ak(w)*
|
|
r;var fa=Math.ceil(1.598*parseFloat(n)),y=e.$d(),aa=y.x,x=y.y,ca=y.width;y=y.height;if(e.Le()===Annotations.gb.nc.FreeTextCallout){var ha=e.$n();y=e.ak(w)*r;90===e.Rotation||270===e.Rotation?(aa=ha.x*r+z/2-ha.height*r/2+ha.width*r/2+y,x=ha.y*r+z/2+ha.height*r/2-ha.width*r/2+y,ca=ha.height*r+z-2*y,y=ha.width*r+z-2*y):(aa=ha.x*r+z/2+y,x=ha.y*r+z/2+y,ca=ha.width*r+z-2*y,y=ha.height*r+z-2*y)}else if(w=e.Zd(),aa=(aa+w.x1)*r+z,x=(x+w.y2)*r+z,ca=(ca-(w.x1+w.x2))*r,y=(y-(w.y1+w.y2))*r,e.rk())switch(ha=e.$n(),
|
|
e.Rotation){case 90:x-=2*z;isNaN(ha.height)||isNaN(ha.width)||(w=ha.height*r,ha=ha.width*r,aa+=w/2-ha/2,x+=w/2+ha/2);break;case 180:x-=1.5*z;aa-=2*z;isNaN(ha.height)||isNaN(ha.width)||(w=ha.height*r,ha=ha.width*r,aa+=ha,x+=w-.5*z);break;case 270:aa-=1.5*z,isNaN(ha.height)||isNaN(ha.width)||(w=ha.height*r,ha=ha.width*r,aa+=ha/2+w/2-.5*z,x+=ha/2-w/2)}w=360-e.Rotation;ha=1>e.FillColor.A?new h.a(255,255,255,0):e.FillColor;switch(e.TextVerticalAlign){case "center":var ea="center";break;case "bottom":ea=
|
|
"flex-end";break;default:ea="flex-start"}return{position:"absolute",top:x+"px",left:aa+"px",transformOrigin:e.rk()?"top left":"center center",transform:"rotate("+w+"deg)",textAlign:e.TextAlign,alignItems:ea,width:ca-2*z+"px",height:y-2*z+"px",background:ha.toString(),font:n+" / "+fa+"px "+e.Font,color:""+e.TextColor.toString(),paddingTop:da.i?Math.max(1,1+1.5*(r-1))+"px":"0px"}};e.prototype.m_=function(f){f=f.ua();return null!==Object(x.a)().nq(f,this.ib.aa.Xa())};e.Events={FOCUS:"editorFocus",BLUR:"editorBlur",
|
|
TEXT_CHANGED:"editorTextChanged",SELECTION_CHANGED:"editorSelectionChanged"};return e}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){function ea(f){this.ag=[];this.hf=[];this.sf={};this.ca=[];this.pm={};this.Jca=!1;this.pk={};this.Rf={};this.lw={};this.za=null;this.Kr=new h.a.pz;this.id=f;this.yD=[];this.eN=f;this.KU=!1;this.mu=null;this.Gy={};this.options={}}var x=e(0);e.n(x);var ha=e(2),ca=e(77);ia=e(122);var da=e(81),aa=e(56),w=e(37),y=e(59),n=e(4),h=e(97),f=e(349),r=e(23),z=e(15),fa=e(7),ka=e(55),
|
|
ja=e(30),pa=e(158),ma=0,la=window.Annotations;ea.prototype=Object.create(ca.b.prototype);ea.prototype.constructor=ia.a;e={};Object.assign(ea.prototype,(e.Bs=function(){return this.eN},e.u4=function(f){var e=this;e.pb.z4(f);var h=new da.a(f.meta.width,f.meta.height);h.Pa=new r.a;h.Pa.ab(1,0,0,-1,0,f.meta.height);h.rotation=0;h.contentChanged=!0;h.pageNum=f.meta.page;var n=-1;f.meta.page<=e.ca.length&&(n=f.meta.page);0<n?(e.ca[n-1]=h,e.ca.length=n):e.ca.push(h);e.maxViewportZoom=e.zn();var w=f.fonts;
|
|
Object.keys(w).forEach(function(f){var h=w[f];if(f in e.lw)var n=e.lw[f];else n=new XODText.Vk,n.Fm(-h.ascent,h.descent),n.$Y(500),e.lw[f]=n;f=h.charX;h=f.length;for(var r=0;r<h;r+=3)n.JA(f[r],f[r+1],f[r+2])})},e.UK=function(f,e,h,r,w){var z=!1;switch(w.type){case "page":var aa=150,x=function(){if(13<f.so.length)var e=f.so.splice(0,13);else e=f.so,f.so=[];return e},da=function(){for(var h=x(),w=0;w<h.length;++w)Object(ha.b)("load","page "+h[w].meta.page+": "+h[w].meta.elapsedTime+"ms"),f.u4(h[w]);
|
|
for(w=0;w<h.length;++w){if(h[w].annotations)for(var ka=0;ka<h[w].annotations.length;++ka){var ca=h[w].annotations[ka],ea=new n.d(parseInt(ca.x1,10),parseInt(ca.y1,10),parseInt(ca.x2,10),parseInt(ca.y2,10));ea=new la.Pd({rect:ea});ea.Bi("U",new y.k({uri:ca.URI}));ea.PageNumber=h[w].meta.page;ea.IsAdded=!1;ea.StrokeThickness=0;f.yD.push(ea)}if(h[w].gotos)for(ka=0;ka<h[w].gotos.length;++ka)ca=h[w].gotos[ka],ea=new n.d(parseInt(ca.x1,10),parseInt(ca.y1,10),parseInt(ca.x2,10),parseInt(ca.y2,10)),ea=new la.Pd({rect:ea}),
|
|
ea.Bi("U",new y.d({dest:new y.b({page:ca.dstPage,left:ca.left,top:ca.top,fit:"XYZ"})})),ea.PageNumber=ca.srcPage,ea.IsAdded=!1,ea.StrokeThickness=0,f.yD.push(ea);if(ka=h[w].template_bounding_boxes)for(var ba in ka)for(ca=xc(ka[ba]),ea=ca.next();!ea.done;ea=ca.next())ea=ea.value,f.Gy.hasOwnProperty(ba)||(f.Gy[ba]=[]),f.Gy[ba].push([h[w].meta.page,new n.d(ea[0]/40,ea[1]/40,ea[2]/40,ea[3]/40)])}f.rd.then(function(e){f.je({type:"officeAnnotationsUpdated",data:e})}.bind(null,f.yD));f.yD=[];z||(z=!0,r(),
|
|
e&&e(ja.b));f.je({type:fa.a.Events.PAGES_UPDATED,data:f.ca.slice()});Object(ha.b)("load","processed "+h.length+" pages, "+f.so.length+" remaining");0<f.so.length?(f.Qs=setTimeout(da,aa),aa=30):(f.Qs=null,f.dS&&f.trigger(fa.a.Events.DOCUMENT_COMPLETE))};f.so?(f.so.push(w),f.Qs||(f.Qs=setTimeout(da,aa),aa=30)):(Object(ha.b)("load","Received first page data"),f.so=[w],da());break;case "abort":f.KU=!0;z?(h&&(h(w.message||w.data.error),h=null),Object(ha.g)(w.message||w.data.error)):r(w);break;case "error":z?
|
|
Object(ha.g)(w.message||w.data.error):r(w);break;case "documentComplete":f.mu=w.templateKeys,f.Qs?f.dS=!0:f.trigger(fa.a.Events.DOCUMENT_COMPLETE)}},e.loadAsync=function(e,h,n){var r=this;this.Tb=e;this.ca=[];r.sf={};var z=ma+=1,y=n.annotsLoadedCallback,x=null;r.rd=new Promise(function(f,e){x=function(f){e(f)};r.addEventListener(fa.a.Events.DOCUMENT_COMPLETE,function(){f()},{once:!0})});var ja=n.workerTransportPromise;e.getFileData(function(da){var ca,la,ea,ba,na;return $h(function(pa){r.addEventListener(fa.a.Events.DOCUMENT_READY,
|
|
h);ca={};la="officeDoc"+z;n.extension&&(la+="."+n.extension);ca.outputFormat="commandArray";ea=n.officeOptions||{};ea.doNotRender&&(ca.outputFormat="noPageOutput");ea.disableBrowserFontSubstitution&&(ca.forceEarlyFontSubstitution=!0);if(ba=ea.formatOptions||ea.officeToPDFOptions)Object.keys(ba).forEach(function(f){var e=f.charAt(0).toUpperCase()+f.slice(1);ba[e]=ba[f]}),ca.officeOptions=ba;r.options=JSON.parse(JSON.stringify(ca));e.file?(ca.type="file",ca.value={bytes:da.buffer,name:e.file.name}):
|
|
e.url?(ca.type="file",ca.value={bytes:da.buffer,name:e.filename||e.url}):(ca.type="array",ca.value={bytes:da.buffer,name:la});(na=ea.templateValues||n.autoFillMap)&&(ca.autoFillMap=na);if(na||ea.doTemplatePrep)ca.autoFillDelimiters={open_delim:"{{",close_delim:"}}"};r.Tp=ca.value.name||la;ca.value.name=r.Tp.toLowerCase();r.pb=new f.a(r.Kr);ja.then(function(f){function e(f){f&&r.za&&r.Ia.Xv(r.za);h(f)}r.Ia=f;r.TW=Object(aa.e)().then(function(f){return Object(w.f)(f,{},n.l)});Object(ha.b)("load","Worker Initialized");
|
|
r.Ia.Qr(function(f){return r.UK(r,y,x,e,f)});f=ca.value.name;if(208===da[0]&&207===da[1]&&17===da[2]&&224===da[3]&&161===da[4]&&177===da[5]&&26===da[6]&&225===da[7]){var z=!0;if(f.endsWith(".docx")||f.endsWith(".pptx")||f.endsWith(".xlsx"))ca.value.name=f.slice(0,-1),r.Tp=ca.value.name}else if(z=!1,f.endsWith(".doc")||f.endsWith(".ppt")||f.endsWith(".xls"))ca.value.name+="x",r.Tp=ca.value.name;if(z){var fa=Object(w.e)().kt;fa||(n.workerTransportPromise=fa,fa=Object(ka.b)(n));r.vV=new Promise(function(f,
|
|
e){fa.then(function(h){r.iea=h;h={type:"file"};h.value={bytes:da.buffer};r.iea.w6(h).then(function(e){Object(ha.b)("load","Legacy Office Document converted");r.za=e.docId;ca.value.bytes=e.value.bytes;f()}).catch(function(f){e(f)})})})}else r.vV=new Promise(function(f){f()});r.vV.then(function(){r.Ia.qx(ca).then(function(f){r.za=f.docId;Object(ha.b)("load","Document initialized")}).catch(function(f){h(f)})}).catch(function(f){h(f)})});pa.La=0})})},e.loadTextData=function(f,e){var h=this,n=f-1;this.ca[n].text?
|
|
e(this.ca[n].text):this.pb.sJ(n,function(f,w){if(!f&&"undefined"!==typeof w.text){f=new z.c;var fa=new r.a;fa.ab(1,0,0,1,0,0);var y=new z.b(h.lw),aa=w.Ec.clone(),x=!1;try{do x=aa.ph(y,fa,!0);while(!x)}catch(Ea){Object(ha.j)("Custom Canvas has encountered an error: "+Ea.message);return}f.r6(w.text,y);h.ca[n].text=f;e(f)}})},e.vq=function(){return!1},e.Xs=function(){},e.Cy=function(){},e.jo=function(){return!1},e.extractXFDF=function(){return{xfdfString:ja.b,pages:Object(x.range)(1,this.ca.length+1)}},
|
|
e.Ev=function(){},e.Hs=function(){return!1},e.Zq=function(){},e.BZ=function(){},e.Gs=function(){return[]},e.getPageCount=function(){return this.ca.length},e.mb=function(f){if(!this.ca[f-1])return null;var e={};e.width=this.ca[f-1].width;e.height=this.ca[f-1].height;return e},e.unloadResources=function(){ca.b.prototype.unloadResources.call(this);clearTimeout(this.Qs);this.pb=this.Qs=null;this.Ia&&this.za&&this.Ia.Xv(this.za)},e.Pz=function(){},e.dz=function(f){var e=new da.a(f.width,f.height);e.Pa=
|
|
new r.a;f=f.matrix;e.Pa.ab(f[0],f[1],f[2],f[3],f[4],f[5]);f=this.An(e.Pa);e.Pa=this.cy({w:e.width,h:e.height});e.rotation=f;return e},e.getBookmarks=function(){return Promise.resolve([])},e.h4=function(){var f=this,e=JSON.parse(JSON.stringify(f.options));e.outputFormat="binaryStream";f.Tp?(e.type="file",e.value={ql:null,name:f.Tp.toLowerCase()}):(e.type="array",e.value=null);var h=0,n=[];return new Promise(function(r,w){f.rd.then(function(){f.Ia.Rq(f.za);f.Ia.Qr(function(f){switch(f.type){case "page":"binaryStream"===
|
|
f.format&&f.bytes||w("Expected binaryStream data");n.push(new Uint8Array(f.bytes));h+=f.bytes.byteLength;break;case "error":case "abort":Object(ha.g)(f.message||f.data.error);w(f.message||f.data.error);break;case "documentComplete":f=new Uint8Array(h);for(var e=0,z=0;z<n.length;++z)f.set(n[z],e),e+=n[z].length,n[z]=null;r(f);break;default:w("Unable to export data")}});f.Ia.qx(e).then(function(e){f.za=e.docId})},function(f){w(f)})})},e.getFileData=function(f){var e=this,h="pdf"===f.downloadType;if(this.Ia&&
|
|
this.za&&!e.KU){var n=this.za;return h?(h=this.wJ(),Promise.all([e.TW,e.h4(),h]).then(function(h){var n=h[0],r=h[2];f.bytes=h[1].buffer;f.watermarks=r;return n.via(f).then(function(h){if(!h.fileData||0===h.fileData.byteLength)return Promise.reject("Failed to convert document to PDF");h=f.flatten?e.uT(h.fileData):h.fileData;return Promise.resolve(h)},function(f){Object(ha.g)(f);return Promise.resolve(f)})})):this.Ia.Caa(this.za).then(function(f){return f&&"array"===f.type&&n===f.docId?f.value:Promise.reject()})}return Promise.reject()},
|
|
e.qk=function(){return!1},e.HT=function(f){return this.ca[f-1].links},e.getLayersArray=function(){return Promise.resolve([])},e.AC=function(f){var e=this,h,n,r;return $h(function(w){if(1==w.La)return Af(w,e.rd,2);h=e;n=function(){return null===h.mu?null:"schema"===f?h.mu:"locations"===f?h.Gy:Object.keys(h.mu.keys)};return null===e.mu?(r=JSON.parse(JSON.stringify(h.options)),r.outputFormat="commandArray",h.Tp?(r.type="file",r.value={ql:null,name:h.Tp.toLowerCase()}):(r.type="array",r.value=null),r.autoFillDelimiters=
|
|
{open_delim:"{{",close_delim:"}}"},w.return(new Promise(function(f,e){function w(f){f&&e(f)}h.addEventListener(fa.a.Events.DOCUMENT_COMPLETE,function(){f(n())},{once:!0});h.Ia.Rq(h.za);h.Ia.Qr(function(f){return h.UK(h,null,e,w,f)});h.dS=!1;h.Ia.qx(r).then(function(f){h.za=f.docId})}))):w.return(n())})},e.getNewAppearanceDocument=function(f,e){var h=this.TW.then(function(e){return e.qw(void 0,f).then(function(f){return Object(ca.a)(f.data)})});this.Qj||(this.Qj=new pa.a(10,400));this.Qj.mH(e,h,f);
|
|
return h},e.Ur=function(f,e){var h=this;return new Promise(function(n,r){var w,z,y;return $h(function(aa){if(1==aa.La)return Af(aa,h.rd,2);w={};w.docId=h.za;w.autoFillMap=e;w.outputFormat="commandArray";null===h.mu&&(w.autoFillDelimiters={open_delim:"{{",close_delim:"}}"});z=function(e){if(e)r(e);else{e=h.ca;for(var n=e.length,w=0;w<n;++w)e[w].ii(f)}return h};y=function(){h.je({type:"pagesAutoFilled",data:h.ca.slice()});n()};h.addEventListener(fa.a.Events.DOCUMENT_COMPLETE,y,{once:!0});h.Ia.Rq(h.za);
|
|
h.Ia.Qr(function(f){return h.UK(h,null,null,z,f)});h.Gy={};h.Ia.Ur(w).then(function(){Object(ha.b)("setTemplateValues","Applying values to template keys")}).catch(function(f){z(f)});aa.La=0})})},e));ea.Events={OFFICE_ANNOTATIONS_UPDATED:"officeAnnotationsUpdated"};ba.a=ea},function(ia,ba,e){var ea=e(1);ia=e(217);var x=e(159);e=function(e){function ca(da,aa){var w=e.call(this,aa)||this;w.data=aa;w.Cd=[];w.ki=[];w.oqa=[];w.gw=new x.a(da);w.za=da;return w}Object(ea.c)(ca,e);ca.prototype.clone=function(){return new ca(this.za,
|
|
this.data)};ca.prototype.ph=function(e,aa){return this.ki.length?(this.Vy(),-1===this.Cd.indexOf(e)&&this.Cd.push(e),this.m_c=e,this.be=aa,this.gw.Nt(this.ki.shift(),e,aa),!1):this.sI=!0};ca.prototype.IH=function(e){return e};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(19),x=window;ia=function(){function e(e){this.data=e;this.Cd=[];this.ki=[]}e.prototype.init=function(e){if(this.data){var da=this;x.uca(this.data,this.za,function(aa){da.worker=aa;da.Vy();da.Wpa=[];da.gF=!1;da.data=null;e()},
|
|
function(e,w){e?da.ki.push(e):da.gF=!0;da.aoa=w;e=da.gf;da.gf=null;e&&e()})}else e()};e.prototype.cancel=function(){for(var e=0;e<this.Cd.length;e++){for(var x=0;x<this.Cd[e].Tq;x++)this.Cd[e].restore();this.Cd[e].Tq=0}this.Cd=[];this.worker&&this.worker.cancel()};e.prototype.clone=function(){return new e(this.data)};e.prototype.ph=function(e,x,aa){if(this.ki.length){-1===this.Cd.indexOf(e)&&this.Cd.push(e);aa=Date.now()+aa;do this.Vy(),Object(ea.u)(this.ki.shift(),e,x);while(this.ki.length&&aa>Date.now());
|
|
return!1}return!0};e.prototype.zt=function(){var e=this;this.worker||this.init(function(){e.Vy()});return new Promise(function(x){e.gF||e.ki.length?x():e.gf=x})};e.prototype.Vy=function(){this.gF||this.worker.wD()};e.prototype.IH=function(e){return new Function("c","t",e)};e.prototype.generate=function(e){var x=this;this.init(function(){function aa(){if(x.ki.length){x.Vy();var w=x.ki.map(function(e){return x.IH(e)});x.ki=[];e(w)}else e()}x.gF||x.ki.length?aa():x.gf=aa})};return e}();ba.a=ia},function(ia,
|
|
ba,e){function ea(){return"Ny80LzIwMjR8MzMxOTBmNGM5YQ=="}function x(){return"8.7.5"}e.d(ba,"b",function(){return x});e.d(ba,"a",function(){return ea});ia=e(9);ia.a.prototype.version="8.7.5";ia.a.prototype.build="Ny80LzIwMjR8MzMxOTBmNGM5YQ=="},function(ia,ba){function e(){var e=window.location.href,x=e?e.indexOf("#"):-1;return 0<=x?e.substring(x+1):""}ba.a=function(ea,x){var ha=typeof x,ca=e().split("&").reduce(function(e,aa){aa=aa.split("=");e[decodeURIComponent(aa[0])]=decodeURIComponent(aa[1]);
|
|
return e},{});if("boolean"===ha&&"undefined"!==typeof ca[ea]){ha=ca[ea];if("true"===ha||"1"===ha)return!0;if("false"===ha||"0"===ha)return!1}return ca[ea]||x}},function(ia,ba,e){function ea(){return $h(function(e){return e.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))})}function x(){return $h(function(e){return e.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,
|
|
11,11])))})}function ha(){return $h(function(e){return e.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])))})}e.d(ba,"a",function(){return ha});e.d(ba,"b",function(){return x});e.d(ba,"c",function(){return ea})},function(ia,ba,e){function ea(){return function(){}}e.d(ba,"a",function(){return ea});e(320)},function(ia,ba,e){function ea(e,aa,w){function y(f){h=h||Date.now();return f?(Object(x.b)("load","Try instantiateStreaming"),
|
|
fetch(Object(ha.a)(e)).then(function(f){return WebAssembly.instantiateStreaming(f,aa)}).catch(function(f){Object(x.b)("load","instantiateStreaming Failed "+e+" message "+f.message);return y(!1)})):Object(ha.b)(e,w,!0,!0).then(function(f){n=Date.now();Object(x.b)("load","Request took "+(n-h)+" ms");return WebAssembly.instantiate(f,aa)})}var n,h;return y(!!WebAssembly.instantiateStreaming).then(function(f){Object(x.b)("load","WASM compilation took "+(Date.now()-(n||h))+" ms");return f})}e.d(ba,"a",
|
|
function(){return ea});var x=e(2),ha=e(137),ca=e(203);e.d(ba,"b",function(){return ca.a})},function(ia,ba){ia=function(){function e(e,x){this.Hj=!e;this.height=this.width=0;this.Gk=null;e&&(this.width=x.width,this.height=x.height,this.rotation=x.rotation,this.Hb=x.fb,this.Wh=e,this.zoom=x.zoom,this.Ue=x.Ue,this.Mf=x.Mf)}e.AR=function(ea,x){var ha=new e(null,{});ha.Hb="b"+(ea+1);ha.width=0;ha.height=0;ha.zoom=x.zoom;ha.rotation=0;ha.Ue=null;ha.Mf=null;ha.Lca=x.width;ha.epa=x.height;return ha};e.prototype.xC=
|
|
function(){return this.Gk};e.prototype.GC=function(){return this.zoom};e.prototype.me=function(){return this.rotation};e.prototype.Ba=function(){return this.width*this.zoom};e.prototype.XI=function(){var e=this.width;this.Hj&&(e=this.Lca);return e*this.zoom};e.prototype.wa=function(){return Math.floor(this.height*this.zoom)};e.prototype.zja=function(e){this.Wh=e};e.prototype.Qda=function(e){return this.Hj&&e.Hj||this.Wh===e.Wh};e.prototype.kK=function(e){return this.Hj!==e.Hj||!this.Hj&&(this.Wh!==
|
|
e.Wh||this.Ba()!==e.Ba()||this.wa()!==e.wa()||this.GC()!==e.GC()||this.me()!==e.me())};return e}();ba.a=ia},function(ia,ba,e){function ea(e){var aa=[];e.forEach(function(e){if(0===aa.length)aa.push(e);else{var w=aa[aa.length-1];w.y1===e.y1&&w.y3===e.y3?(w.x3=e.x3,w.x2=e.x2):aa.push(e)}});return aa}function x(e,aa,w,y){var n=new Annotations.Pd({sq:!0});n.PageNumber=w;n.StrokeThickness=0;n.X=Math.min(aa.x1,aa.x3);n.Y=Math.min(aa.y1,aa.y3);n.Width=Math.abs(aa.x1-aa.x3);n.Height=Math.abs(aa.y1-aa.y3);
|
|
n.Bi("U",new ca.k({uri:y}));e.Sd(n,!0);e.cR(n)}function ha(e){return Array.from(e.matchAll(/(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi)).map(function(e){for(var w=e[0];w.endsWith(".");)w=w.substring(0,w.length-1);return{index:e.index,content:w}})}e.d(ba,"b",function(){return ea});e.d(ba,"a",function(){return x});e.d(ba,"c",function(){return ha});
|
|
var ca=e(59)},function(ia,ba,e){e.d(ba,"a",function(){return ha});var ea=e(23),x=e(95),ha=960;ia=function(){function e(){this.Ix=this.Tl=null;this.zoom=0;this.Rca=!0;this.CD=0;this.yt=this.Lk=null}e.prototype.create=function(e,x,w,y,n){this.Tl=x;this.Ix=w;this.wc=e;this.Ky=y;this.ox=n;this.yt=this.Lk;this.CD=this.zoom;this.xq=this.Lk=null;this.uq=!1};e.prototype.Gka=function(e){this.Lk=e};e.prototype.ph=function(e,aa){var w=this;if(w.uq)return!0;this.zoom=Math.sqrt(aa.m_a*aa.m_a+aa.m_c*aa.m_c);var y=
|
|
0,n=this.zoom.toFixed(5)===this.CD.toFixed(5);if(!w.Lk){e.S();e.mma=!0;e.Tea=!0;e.Uea=!0;e.Qca="high";e.PJ=!0;e.I(window.ci[this.Tl],0,0,this.Ix.width,this.Ix.height);e.r();if(this.yt)for(y=0;y<this.yt.length;y++)this.yt[y].lS(e,aa,n?"rgba(0, 0, 255, 0.5)":"rgba(255, 0, 0, 0.5)");if(y=this.Ky&&this.ox){n=new ea.a;var h=1/this.zoom;n.ab(aa.m_a*h,aa.m_b*h,aa.m_c*h,aa.m_d*h,aa.m_h,aa.m_v);n=n.inverse();aa=new x.a;aa.ab(0,0,e.canvas.width,e.canvas.height);n.WZ(aa);e=[aa.na,aa.ja,aa.oa,aa.ka];var f=w.ox;
|
|
aa=w.Ky;w.ox=null;w.Ky=null;this.xq=window.createPromiseCapability();var r=function(){w.uq||w.xq&&w.xq.resolve()};aa(w.wc,w.zoom,e,ha).then(function(e){!w.uq&&e&&f(e,w,r)})}return!y}if(this.Lk&&this.Lk.length)for(y=0;y<this.Lk.length;y++)this.Lk[y].lS(e,aa,"rgba(0, 255, 0, 0.5)");return!0};e.prototype.clone=function(){var x=new e;x.Tl=this.Tl;x.Ix=this.Ix;x.wc=this.wc;x.Ky=this.Ky;x.ox=this.ox;x.Lk=this.Lk;x.yt=this.yt;x.zoom=this.zoom;x.CD=this.CD;return x};e.prototype.zt=function(){return this.xq?
|
|
this.xq.promise:Promise.resolve()};e.prototype.cancel=function(){this.uq=!0;this.xq&&this.xq.resolve()};return e}();ba.b=ia},function(ia,ba,e){(function(ea){function x(e,x){this.cA=e;this.K2=x}var ha="undefined"!==typeof ea&&ea||"undefined"!==typeof self&&self||window,ca=Function.prototype.apply;ba.setTimeout=function(){return new x(ca.call(setTimeout,ha,arguments),clearTimeout)};ba.setInterval=function(){return new x(ca.call(setInterval,ha,arguments),clearInterval)};ba.clearTimeout=ba.clearInterval=
|
|
function(e){e&&e.close()};x.prototype.close=function(){this.K2.call(ha,this.cA)};ba.Aoa=function(e,x){clearTimeout(e.kG);e.uP=x};ba.wqa=function(e){clearTimeout(e.kG);e.uP=-1};ba.Bna=ba.active=function(e){clearTimeout(e.kG);var x=e.uP;0<=x&&(e.kG=setTimeout(function(){e.I3&&e.I3()},x))};e(384);ba.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof ea&&ea.setImmediate||this&&this.setImmediate;ba.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==
|
|
typeof ea&&ea.clearImmediate||this&&this.clearImmediate}).call(this,e(178))},function(ia,ba){ba.a={}},function(ia){ia.exports=Array.isArray},function(ia,ba,e){function ea(e){return new Promise(function(w){return Object(da.b)(void 0,void 0,void 0,function(){var n,h,f,r,z,fa,y,aa;return Object(da.d)(this,function(ja){switch(ja.label){case 0:return[4,ca(e)];case 1:return n=ja.ea(),1<n?[4,x(e)]:[3,3];case 2:h=ja.ea();f=h.split(",")[1];r=window.atob(f);z=r.length;fa=new Uint8Array(z);for(y=0;y<z;y++)fa[y]=
|
|
r.charCodeAt(y);w(fa);return[3,4];case 3:aa=new FileReader,aa.readAsArrayBuffer(e),aa.onloadend=function(){w(aa.result)},ja.label=4;case 4:return[2]}})})})}function x(e,y){return new Promise(function(n){var h=new Image,f=new FileReader;f.readAsDataURL(e);h.onload=function(){return Object(da.b)(this,void 0,void 0,function(){var r,w,fa,x,ja,ea;return Object(da.d)(this,function(z){switch(z.label){case 0:return r=h.width,w=h.height,fa=document.createElement("canvas"),x=fa.getContext("2d"),[4,ha()];case 1:return ja=
|
|
z.ea(),fa.width=r,fa.height=w,[4,ca(e)];case 2:ea=z.ea();if(!ja)switch(4<ea&&9>ea&&(fa.width=w,fa.height=r),ea){case 2:x&&x.transform(-1,0,0,1,r,0);break;case 3:x&&x.transform(-1,0,0,-1,r,w);break;case 4:x&&x.transform(1,0,0,-1,0,w);break;case 5:x&&x.transform(0,1,1,0,0,0);break;case 6:x&&x.transform(0,1,-1,0,w,0);break;case 7:x&&x.transform(0,-1,-1,0,w,r);break;case 8:x&&x.transform(0,-1,1,0,0,r)}1<ea?(x.drawImage(h,0,0),n(fa.toDataURL(y&&y.mimeType?y.mimeType:aa.JPEG,y&&y.Pca?y.Pca:.9))):n(f.result);
|
|
return[2]}})})};f.onloadend=function(){h.src=f.result}})}function ha(){return new Promise(function(e,y){var n=new Image;n.onload=function(){e(1===n.naturalWidth)};n.onerror=y;n.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z"})}
|
|
function ca(e){return new Promise(function(w){var n=new FileReader;n.onload=function(){var e=new DataView(n.result);65496!==e.getUint16(0,!1)&&w(-2);for(var f=e.byteLength,r=2;r<f;){var z=e.getUint16(r,!1);r+=2;if(65505===z){1165519206!==e.getUint32(r+=2,!1)&&w(-1);z=18761===e.getUint16(r+=6,!1);r+=e.getUint32(r+4,z);var fa=e.getUint16(r,z);r+=2;for(var y=0;y<fa;y++)274===e.getUint16(r+12*y,z)&&w(e.getUint16(r+12*y+8,z))}else if(65280!==(z&65280))break;else r+=e.getUint16(r,!1)}w(-1)};n.readAsArrayBuffer(e.slice(0,
|
|
65536))})}e.d(ba,"a",function(){return aa});e.d(ba,"c",function(){return x});e.d(ba,"b",function(){return ea});var da=e(1),aa;(function(e){e.JPEG="image/jpeg";e.PNG="image/png"})(aa||(aa={}))},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);ia=window;ia.Annotations=ia.Annotations||{};ia.Annotations.ha=ia.Annotations.ha||{};ia.Annotations.ha.zc=ia.Annotations.ha.zc||{};ia=ia.Annotations.ha.zc;ia.xb={};var ha=ia.xb,ca=function(){return function(f){this.rc=!0;Object(x.isObject)(f)&&(Object(x.isString)(f.name)&&
|
|
Object.defineProperty(this,"name",{value:f.name,enumerable:!0}),Object(x.isString)(f.type)&&Object.defineProperty(this,"type",{value:f.type,enumerable:!0}))}}();ha.Event=ca;ha.Il=function(f){if(Object(x.isNull)(f.value))return null;if(Array.isArray(f.value))return f.value;var e=String(f.value),h=f.change,n=e.slice(0,f.selStart),r=e.slice(f.selEnd);if(Object(x.isObject)(f.change)){var w=f.selStart;f=f.selEnd;w===f&&("backspace"===h.type?n=e.slice(0,w-1):"delete"===h.type&&(r=e.slice(f+1)));h=""}return n+
|
|
h+r};ia=function(f){function e(e){var h=f.call(this,e)||this,n;Object(x.isObject)(e)&&(n=e.value);Object.defineProperty(h,"value",{value:n,writable:!0,enumerable:!0});return h}Object(ea.c)(e,f);return e}(ca);ba=function(f){function e(e){var h=f.call(this,e)||this;if(Object(x.isObject)(e)){var n=e.value;var r=e.source}Object.defineProperties(h,{value:{value:n,writable:!0,enumerable:!0},source:{value:r,enumerable:!0}});return h}Object(ea.c)(e,f);return e}(ca);e=function(f){function e(e){var h=f.call(this,
|
|
e)||this,n;Object(x.isObject)(e)&&(n=e.value);Object.defineProperty(h,"value",{value:n,writable:!0,enumerable:!0});return h}Object(ea.c)(e,f);return e}(ca);var da=function(f){function e(e){var h=f.call(this,e)||this;ha.Event.call(h,e);if(Object(x.isObject)(e)){var n=e.value;var r=e.change;var w=e.changeEx;var z=e.selStart;var fa=e.selEnd;var y=e.willCommit}n="undefined"!==typeof n?n:"";r="undefined"!==typeof r||Object(x.isString)(r)?r:"";w="undefined"!==typeof w||Object(x.isString)(w)?w:"";fa="undefined"!==
|
|
typeof fa?fa:n.length;Object.defineProperties(h,{value:{value:n,writable:!0,enumerable:!0},change:{value:r,writable:!0,enumerable:!0},changeEx:{value:w,writable:!0,enumerable:!0},selStart:{value:"undefined"!==typeof z?z:0,writable:!0,enumerable:!0},selEnd:{value:fa,writable:!0,enumerable:!0},willCommit:{value:y||!1,enumerable:!0}});return h}Object(ea.c)(e,f);return e}(ca),aa=function(f){function e(e){return f.call(this,e)||this}Object(ea.c)(e,f);return e}(ca),w=function(f){function e(e){return f.call(this,
|
|
e)||this}Object(ea.c)(e,f);return e}(ca),y=function(f){function e(e){return f.call(this,e)||this}Object(ea.c)(e,f);return e}(ca),n=function(f){function e(e){return f.call(this,e)||this}Object(ea.c)(e,f);return e}(ca),h=function(f){function e(e){return f.call(this,e)||this}Object(ea.c)(e,f);return e}(ca),f=function(f){function e(e){var h=f.call(this,e)||this,n;Object(x.isObject)(e)&&(n=e.value);Object.defineProperty(h,"value",{value:n,writable:!0,enumerable:!0});return h}Object(ea.c)(e,f);return e}(ca),
|
|
r=function(f){function e(e){var h=f.call(this,e)||this;ha.Event.call(h,e);var n;Object(x.isObject)(e)&&(n=e.targetName);Object.defineProperty(h,"targetName",{value:n||"",writable:!0,enumerable:!0});return h}Object(ea.c)(e,f);return e}(ca);ca=function(f){function e(e){return f.call(this,e)||this}Object(ea.c)(e,f);return e}(ca);var z={Validate:ia,Calculate:ba,Format:e,Keystroke:da,"Mouse Enter":aa,"Mouse Leave":w,"Mouse Up":y,"Mouse Down":n,Focus:h,Blur:f,Open:r,Close:ca};ha.create=function(f,e){return z[f]?
|
|
new z[f](e):null};ha.va={create:function(f,e,h){h=Object.assign({name:f,type:"Field",value:e.Ab()},h);return(f=ha.create(f,h))?(Object.defineProperties(f,{target:{value:e,writable:!0,enumerable:!0},targetName:{value:e.name,enumerable:!0},modifier:{value:null,enumerable:!0},shift:{value:null,enumerable:!0}}),f):null}};ha.DN={create:function(f,e,h){h=Object.assign({name:f,type:"Doc",targetName:""},h);return(f=ha.create(f,h))?(Object.defineProperty(f,"target",{value:e,writable:!0,enumerable:!0}),f):
|
|
null}};ha.nz={create:function(f,e,h){h=Object.assign({name:f,type:"Page"},h);return(f=ha.create(f,h))?(Object.defineProperty(f,"target",{value:e,writable:!0,enumerable:!0}),f):null}};ha.Pd={create:function(f,e){return ha.create(f,e)}}},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(8),ca=e(6),da=window.Annotations||{};ia=function(){function e(e){this.Yu=new ha.a(void 0);this.np=this.ip=this.Mr=0;this.mp=null;this.set(e)}e.prototype.set=function(e){if(e instanceof da.wN)this.Yu=new ha.a(e.Yu),
|
|
this.Mr=e.Mr,this.ip=e.ip,this.np=e.np,this.mp=e.mp;else if(Object(ea.isArray)(e))3===e.length||4===e.length?(Object(ea.isUndefined)(e[0])||(this.ip=Number(e[0])),Object(ea.isUndefined)(e[1])||(this.np=Number(e[1])),Object(ea.isUndefined)(e[2])||(this.Mr=Number(e[2])),4===e.length&&Object(ea.isArray)(e[3])&&Object(x.j)("dashed borders are currently unsupported")):Object(x.j)("Invalid border specification ",e," should be 3 or 4 elements long");else if(Object(ea.isObject)(e)){Object(ea.isArray)(e.border)&&
|
|
this.set(e.border);Object(ea.isUndefined)(e.color)||(this.Yu=new ha.a(e.color));Object(ea.isUndefined)(e.width)||(this.Mr=Number(e.width));if(!Object(ea.isUndefined)(e.cornerRadius))this.np=this.ip=Number(e.cornerRadius);else if(Object(ea.isArray)(e.cornerRadius)){var w=e.cornerRadius;this.ip=w[0]||0;this.np=w[1]||0}Object(ea.isString)(e.style)&&(this.mp=e.style)}};e.prototype.serialize=function(e){this.C2&&e.setAttribute("width",this.C2);this.mp&&e.setAttribute("style",this.mp);var w=this.color;
|
|
e.setAttribute("BC",[w.R/255,w.G/255,w.B/255].map(ca.a.toFixed).join(","))};e.prototype.deserialize=function(e){var w={};ca.a.getAttribute(e,"width")?w.width=parseInt(ca.a.getAttribute(e,"width"),10):w.width=1;ca.a.getAttribute(e,"style")&&(w.style=ca.a.getAttribute(e,"style"),"beveled"===w.style&&(w.style="bevelled"));ca.a.getAttribute(e,"BC")&&(w.color=ca.a.getAttribute(e,"BC").split(",").map(Number));this.set(w)};e.prototype.UM=function(e){e*=this.Mr;var w=this.ip.toFixed(6)+"px "+this.np.toFixed(6)+
|
|
"px",n={};switch(this.mp){case "Inset":n["border-style"]="inset";break;case "Dashed":n["border-style"]="dashed";break;case "Beveled":n["border-style"]="outset";break;case "Underline":n["border-style"]="solid";n["border-top"]="0";n["border-left"]="0";n["border-right"]="0";break;default:n["border-style"]="solid"}n["border-color"]=this.Yu.toString();n["border-width"]=e;n["border-top-left-radius"]=w;n["border-top-right-radius"]=w;n["border-bottom-left-radius"]=w;n["border-bottom-right-radius"]=w;return n};
|
|
return e}();da.wN=ia;Object.defineProperties(ia.prototype,{color:{get:function(){return this.Yu},set:function(e){this.set({color:e})}},width:{get:function(){return this.Mr},set:function(e){this.set({width:e})}},style:{get:function(){return this.mp},set:function(e){this.set({style:e})}},cornerRadius:{get:function(){return[this.ip,this.np]},set:function(e){this.set({cornerRadius:e})}}});ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2);ia=e(85);var ha=window.Annotations||{};e=function(e){function da(x){var w=
|
|
e.call(this,x)||this;w.gA=!1;w.Id=null;w.Printable=!0;w.NoZoom=!0;w.NoRotate=!0;w.DateModified=null;w.cd(x);return w}Object(ea.c)(da,e);da.prototype.cV=function(){return this.gA};da.prototype.Wja=function(e){Object(x.d)("8.0","setOpen",["open","close"]);this.gA=e};da.prototype.open=function(){this.gA=!0};da.prototype.close=function(){this.gA=!1};da.prototype.serialize=function(e){e=ha.Annotation.prototype.serialize.apply(this,arguments);this.cV()&&e.setAttribute("open","yes");return e};da.prototype.deserialize=
|
|
function(e){this.Printable=!1;ha.Annotation.prototype.deserialize.apply(this,arguments);var w=e.getAttribute("open");w&&"yes"===w?this.open():this.close()};return da}(ia.a);e.prototype.elementName="popup";e.prototype=Object.assign(new ia.a,e.prototype);ba.a=e;(window.Annotations||{}).Nu=e},function(ia,ba,e){var ea=e(1),x=e(4);ia=e(53);var ha=e(84),ca=e(35),da=e(14),aa=e(6),w=e(36),y=e(12);e=function(e){function h(f){var h=e.call(this,f)||this;h["_xsi:type"]="Rectangle";h.Subject=y.a.Gc("rectangle");
|
|
var n=h.getRectPadding();h.fringe=new x.d(n,n,n,n);h.dv=2;h.cd(f);return h}Object(ea.c)(h,e);h.prototype.resize=function(f){var e=this.$d(f);0>=e.width||0>=e.height||this.cc(f)};h.prototype.draw=function(f,e){this.oe||(this.mh(),this.di());this.fI(f,e)};h.prototype.Yn=function(f){void 0===f&&(f=da.a.tb(this.Rotation));return da.a.Kw(this.$d(),f,this.oe)};h.prototype.zl=function(f){var e=this.$d(),h=e.x,n=e.y,w=e.width,aa=e.height;e=new x.d(h,n,h+w,n+aa);e.x1+=this.fringe.x1;e.y1+=this.fringe.y1;e.x2-=
|
|
this.fringe.x2;e.y2-=this.fringe.y2;f.translate(h+w/2,n+aa/2);f.rotate(-da.a.tb(this.Rotation));f.translate(-h-w/2,-n-aa/2);"cloudy"===this.Style?(e=[new x.b(e.x1,e.y1),new x.b(e.x2,e.y1),new x.b(e.x2,e.y2),new x.b(e.x1,e.y2),new x.b(e.x1,e.y1)],y.a.aI(this,f,e),f.closePath(),f.lineJoin="round"):(h=1<=this.Ba()&&1<=this.wa(),n=new x.b(e.x1,e.y1),w=new x.b(e.x2,e.y1),aa=new x.b(e.x1,e.y2),e=new x.b(e.x2,e.y2),f.lineWidth*=h?2:.5,f.beginPath(),f.moveTo(n.X,n.Y),f.lineTo(w.X,w.Y),f.lineTo(e.X,e.Y),f.lineTo(aa.X,
|
|
aa.Y),f.closePath(),h&&f.clip())};h.prototype.getRectPadding=function(){return 0};h.prototype.rotate=function(f){this.ny(this.Yn(da.a.tb(this.Rotation)-f));this.Rotation=da.a.kk(da.a.yk(da.a.tb(this.Rotation)-f))};h.prototype.$d=function(f){void 0===f&&(f=this.Sa());return da.a.Qw(f,da.a.tb(this.Rotation))};h.prototype.HI=function(){return this.Style};h.prototype.dM=function(f){this.Style=f};h.prototype.Xp=function(){return this.dv};h.prototype.Xq=function(f){this.dv=f};h.prototype.serialize=function(f,
|
|
h){if(this.bb)return this.bb;f=e.prototype.serialize.call(this,f,h);"cloudy"===this.Style&&f.setAttribute("intensity",String(this.Xp()));if(da.a.FM(this.Rotation))this.Df("trn-unrotated-rect",!0);else{var n=this.$d();n=new x.d(n.x,n.y,n.x+n.width,n.y+n.height);n.Sp();this.Db("trn-unrotated-rect",aa.a.Ut(n,h))}return f};h.prototype.deserialize=function(f,h,n){e.prototype.deserialize.call(this,f,h,n);this.Xq(Number(f.getAttribute("intensity")))};return h}(w.a);e.prototype.elementName="square";e.prototype=
|
|
Object.assign(new w.a,e.prototype);Object(ia.b)(e.prototype,new ha.a);Object(ca.a)(e.prototype,{Intensity:{get:function(){return this.Xp()},set:function(e){this.Xq(e);this.Ma()}}});ba.a=e;(window.Annotations||{}).Wk=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(8),ca=e(213);ia=e(192);var da=e(2),aa=e(35),w=e(36),y=e(12),n,h=(n={},n.Graph={width:31,height:31},n.Paperclip={width:14,height:34},n.PushPin={width:26,height:32},n.Tag={width:32,height:28},n.Outlook={width:10,height:24},n);n=function(f){function n(e){var n=
|
|
f.call(this,e)||this;n.padding=0;n["_xsi:type"]="fileattachment";n.Subject=y.a.Gc("fileattachment");n.ri="Paperclip";n.Fj=null;n.Su=!0;n.NoZoom=!0;n.NoRotate=!0;var r=h[n.ri],w=r.height;n.Width=r.width;n.Height=w;n.StrokeColor=new ha.a("#000000");n.Uz=null;n.ql=null;n.mimeType=null;n.filename=null;n.encoding=null;n.filter="FlateDecode";n.ql=null;n.cd(e);return n}Object(ea.c)(n,f);n.prototype.Uc=function(){return null};n.prototype.draw=function(f){f.globalAlpha=0===this.Opacity?0:this.Opacity||1;f.translate(this.X,
|
|
this.Y);switch(this.Icon){case "Paperclip":this.jS(f);break;case "Outlook":this.jS(f);break;case "Graph":this.B8(f);break;case "Tag":this.g9(f);break;default:this.V8(f)}};n.prototype.V8=function(f){var e=this.Width,h=e/10,n=e/12,r=e-h,w=2*n;f.fillStyle=this.Color;f.lineWidth=0;f.beginPath();f.moveTo(h+h,w);f.lineTo(r-h,w);f.lineTo(r-h,w+.8*n);e/=2;var z=1*h,y=w+2*n;f.lineTo(e+z,y);var x=3*n;f.lineTo(e+z,y+x);var aa=y+x;f.lineTo(r-.5*h,aa+1.5*h);f.lineTo(r-.5*h,aa+2*h);f.lineTo(h+.5*h,aa+2*h);f.lineTo(h+
|
|
.5*h,aa+1.5*h);f.lineTo(e-z,y+x);f.lineTo(e-z,y);f.lineTo(h+h,w+.8*n);f.closePath();f.fill();r=aa+2*h;h*=.5;f.beginPath();f.fillStyle="grey";f.moveTo(e+h,r);f.lineTo(e,r+4*n);f.lineTo(e-h,r);f.closePath();f.fill();f.stroke()};n.prototype.B8=function(f){var e=this.Width,h=this.Height,n=e/10,r=h/10,w=h-r,z=1.4*n,y=z/2,x=this.Color;f.strokeRect(0,h,e,-h);e=3*r;h=5*r;var aa=7*r,da=n+z+y,ca=da+z+y;y=ca+z+y;f.fillStyle=x;f.fillRect(n,w,z,-(7*r));f.fillRect(da,w,z,-e);f.fillRect(ca,w,z,-h);f.fillRect(y,
|
|
w,z,-aa)};n.prototype.jS=function(f){var e=this.Width,h=this.Height,n=e/6,r=h/8,w=n/2;h-=r;e-=2*n;var z=1*Math.PI;f.strokeStyle=this.StrokeColor.fr();f.beginPath();f.moveTo(w+1.5*n,r+3*r);f.lineTo(w+1.5*n,r+4.5*r);f.arc(e/2+w+.5*n,h-1.5*r,n,z,0,!0);f.lineTo(e/2+4*w,r+r);f.arc(e/2+w,r+r,1.5*n,0,z,!0);f.lineTo(e/2-2*w,h-r);f.arc(e/2+w+.5*n,h-r,2*n,z,0,!0);f.lineTo(e+2*w,h-2*r);f.stroke()};n.prototype.g9=function(f){var e=this.Width,h=this.Height,n=e/10,r=h/10;e-=n;var w=h-r;f.fillStyle=this.Color;f.lineJoin=
|
|
"round";f.lineWidth=1;f.beginPath();f.moveTo(n,h/2);f.lineTo(n+2*n,r);f.lineTo(e,r);f.lineTo(e,w);f.lineTo(n+2*n,w);f.lineTo(n,h/2);f.closePath();f.stroke();f.fill();h=n+2*n;f.beginPath();f.moveTo(h+n,3*r);f.lineTo(e-n,3*r);f.moveTo(h,5*r);f.lineTo(e-n,5*r);f.moveTo(h+n,7*r);f.lineTo(e-n,7*r);f.stroke()};n.prototype.rT=function(){return{mimeType:this.mimeType,filename:this.filename,fileName:this.filename}};n.prototype.UI=function(){return this.filename};n.prototype.kM=function(f){this.filename=f};
|
|
n.prototype.Pja=function(f){this.mimeType=f};n.prototype.getFileData=function(){return Object(ea.b)(this,void 0,Promise,function(){var f,e,h,n,r;return Object(ea.d)(this,function(w){switch(w.label){case 0:f=this.Uz;e=this.filter;h=null;if("raw"!==this.mode)return[2,new Blob([h],{type:"text/plain"})];if(!e)return da.j("No compression method was defined for the "+this.filename+" file attachment"),[2];n=e.split(",").map(function(f){return f.trim()});if(1<n.length)return da.j("Multi-pass fileattachment compression is not supported at this time"),
|
|
[2];r=f.match(/[a-fA-F0-9]{2}/g).map(function(f){return parseInt(f,16)});h=new Uint8Array(r);return[4,Object(ca.a)(n[0],h)];case 1:return h=w.ea(),[2,new Blob([h],{type:this.mimeType})]}})})};n.prototype.IY=function(f,h,n){return Object(ea.b)(this,void 0,Promise,function(){var r,w,z,fa;return Object(ea.d)(this,function(y){switch(y.label){case 0:return[4,e.e(21).then(e.t.bind(null,247,7))];case 1:r=y.ea();w=[];z=r.Wv(f);this.ql=f.byteLength;for(fa=0;fa<z.length;fa++)w.push(z[fa].toString(16).padStart(2,
|
|
"0").toUpperCase());this.Uz=w.join("");this.kM(n);this.Pja(h);this.encoding="hex";this.filter="FlateDecode";this.mode="raw";return[2]}})})};n.prototype.serialize=function(e,h){e=f.prototype.serialize.call(this,e,h);e.setAttribute("icon",this.Icon);h=this.Uz;var n=document.createElementNS("","data");e.setAttribute("mimetype",this.mimeType);e.setAttribute("file",this.UI());h&&(this.mode&&n.setAttributeNS("","mode",this.mode),this.filter&&n.setAttributeNS("","filter",this.filter),this.encoding&&n.setAttributeNS("",
|
|
"encoding",this.encoding),this.ql&&n.setAttributeNS("","length",this.ql.toString()),n.textContent=h,e.appendChild(n));return e};n.prototype.deserialize=function(f){w.a.prototype.deserialize.apply(this,arguments);var e=f.getAttribute("icon")||"PushPin";this.Icon=e;h[e].width=this.Width;h[e].height=this.Height;e=f.getElementsByTagName("data")[0];Object(x.isUndefined)(e)||(this.Uz=e.textContent,this.mimeType=f.getAttribute("mimetype"),this.filename=f.getAttribute("file"),this.encoding=e.getAttribute("encoding"),
|
|
this.mode=e.getAttribute("MODE")||e.getAttribute("mode")||null,this.filter=e.getAttribute("filter")||"FlateDecode",this.ql=Number(e.getAttribute("length")))};return n}(w.a);n.prototype.elementName="fileattachment";n.prototype.selectionModel=ia.a;n.prototype=Object.assign(new w.a,n.prototype);Object(aa.a)(n.prototype,{Icon:{get:function(){return this.ri},set:function(f){this.ri=f;this.Width=h[this.ri].width;this.Height=h[this.ri].height;this.Ma()}}});ba.a=n;(window.Annotations||{}).Mu=n},function(ia,
|
|
ba,e){var ea=e(1),x=e(2);ia=e(122);var ha=e(81),ca=e(28),da=e(3),aa=e(352),w=e(22),y=e(7),n=e(19),h=!1;e=function(f){function e(){var e=null!==f&&f.apply(this,arguments)||this;e.tg=!0;e.Y3={};e.tG={};e.p_=window.createPromiseCapability();e.TP=[];e.hG=!1;return e}Object(ea.c)(e,f);e.prototype.loadAsync=function(e,n,r){return Object(ea.b)(this,void 0,void 0,function(){var w,z,fa,y,da,ka,ca,ha,ba,va,oa,ua,ia,ya,Ea,Aa,Fa=this;return Object(ea.d)(this,function(ja){switch(ja.label){case 0:w=!1;z=function(){w||
|
|
(w=!0,Fa.Yh=n())};fa=function(f){w||(w=!0,Fa.Yh=n(f));var e=Fa.tg;setTimeout(function(){Fa.p_.resolve();var f=Fa.Yh.Yd();e&&f&&f.getDocument()&&(f.Ua.Cp(),f.Ye())},0);Fa.tg=!1;h=Fa.w3=!0};h||(this.Ia={Fv:function(){},addEventListener:function(){},qR:function(){},aT:function(){return{Ona:"",promise:Promise.resolve({})}},Un:function(){return[]},Xv:function(){}});h&&(this.tg=!1);f.prototype.loadAsync.call(this,e,fa,r);if(!e.url)return[3,9];this.Be=new aa.a(e.url,e.jf);return[4,this.Be.init()];case 1:return ja.ea(),
|
|
[4,e.getFile()];case 2:y=ja.ea(),da=void 0,y&&"string"===typeof y?da={url:y}:y&&"string"!==typeof y&&y.url&&(da=y),ja.label=3;case 3:return ja.Gg.push([3,7,,8]),da?[4,this.xT(da,e.withCredentials)]:[3,5];case 4:return ka=ja.ea(),ka.Rx&&ka.size===ka.wga&&(this.Rx=ka.Rx,this.nL=ka.nL),[3,6];case 5:this.tg=!1,ja.label=6;case 6:return[3,8];case 7:return ca=ja.ea(),Object(x.j)(ca),this.tg=!1,[3,8];case 8:return[3,10];case 9:this.tg=!1,ja.label=10;case 10:if(!this.Rx)return[3,15];ha=void 0;ja.label=11;
|
|
case 11:return ja.Gg.push([11,13,,14]),[4,this.Be.Ofa(e.url,this.Rx,this.nL)];case 12:return ha=ja.ea(),this.TP=Object.keys(ha.thumbs).map(function(f){return parseInt(f,10)-1}),[3,14];case 13:return ba=ja.ea(),Object(x.j)(ba),this.tg=!1,[2];case 14:this.VG(ha.pages);va={};oa=ha.thumbs;ua=0;for(ia=this.ca.length;ua<ia;ua++)ya=ua+1,Ea=oa[ya],Aa=void 0,Aa=Ea&&Ea.page_objnum?Ea.page_objnum+"-0":ua,va[ya]=this.ca[ua],va[ya].id=Aa;this.aA=!0;this.eH({pageDimensions:va});this.Be.pga(this.pm);z();return[3,
|
|
16];case 15:this.tg=!1,ja.label=16;case 16:return[2]}})})};e.prototype.loadCanvasAsync=function(e){var h=e.pageNumber-1,r=this.ca[h];if(r){var w=e.getZoom(),z=e.getPageRotation(),y=e.renderRect,x=e.getPageTransform(),aa=e.canvasNum,ca=e.multiplier||Object(n.k)(),ha="undefined"===typeof y,ea=z===da.f.voa||z===da.f.uoa;if(ha){var ba=(ea?this.ca[h].height:this.ca[h].width)*w;ea=(ea?this.ca[h].width:this.ca[h].height)*w}else ba=(ea?y.y2-y.y1:y.x2-y.x1)*w,ea=(ea?y.x2-y.x1:y.y2-y.y1)*w;ba=Math.round(ba);
|
|
ea=Math.round(ea);var va=Math.floor(ba*ca),oa=Math.floor(ea*ca),ua=!1,ia=!0;this.Be&&this.Be.MC(r)&&(ua=!0,ia=null===this.za||this.Be.D5(r,Math.max(va,oa))&&ha);this.hG&&(ua=!1);r=e.isInternalRender||"thumbnail"===e.source;return ua&&ia&&r&&!this.Vq?(ba=Math.round(ba),ea=Math.round(ea),e.YU&&(w=ca),this.NO({MB:e.drawProgressive,LB:function(f,n){e.YU&&f.classList.add("embedded-thumb");e.drawComplete(f,h+1,n)},wW:ba,uW:ea,MD:w,Dt:z,page:this.ca[h],mc:y},!0,aa,x,e.pageCanvas,ca),w="ppid-"+h,this.tG[w]=
|
|
!0,w):this.He(f.prototype.loadCanvasAsync,[e])}};e.prototype.extractXFDF=function(){return this.He(f.prototype.extractXFDF,arguments)};e.prototype.getLayersArray=function(){return this.He(f.prototype.getLayersArray,arguments)};e.prototype.getBookmarks=function(){return this.He(f.prototype.getBookmarks,arguments)};e.prototype.loadTextData=function(){return this.He(f.prototype.loadTextData,arguments)};e.prototype.textSearch=function(){return this.He(f.prototype.textSearch,arguments)};e.prototype.getFileData=
|
|
function(){return this.He(f.prototype.getFileData,arguments)};e.prototype.Rh=function(){return this.He(f.prototype.Rh,arguments)};e.prototype.oh=function(){return this.He(f.prototype.oh,arguments)};e.prototype.Bm=function(){return this.He(f.prototype.Bm,arguments)};e.prototype.Vh=function(){return this.He(f.prototype.Vh,arguments)};e.prototype.yg=function(){return this.He(f.prototype.yg,arguments)};e.prototype.Fh=function(){return this.He(f.prototype.Fh,arguments)};e.prototype.Hf=function(){return this.He(f.prototype.Hf,
|
|
arguments)};e.prototype.Gf=function(){return this.He(f.prototype.Gf,arguments)};e.prototype.ym=function(){return this.He(f.prototype.ym,arguments)};e.prototype.Go=function(){return this.aA?!0:f.prototype.Go.call(this)};e.prototype.unloadResources=function(){this.Y3={};this.Be&&this.Be.clear();if(!this.tg)return f.prototype.unloadResources.call(this)};e.prototype.JC=function(){return this.tg||this.aA};e.prototype.qk=function(){return this.tg?this.aA:f.prototype.qk.call(this)};e.prototype.nC=function(){return this.TP};
|
|
e.prototype.loadThumbnailAsync=function(e,h,n){var r=this.ca[e-1];if(!this.hG&&this.Be&&this.Be.MC(r)){var w=this.Be.jq(r.id,{width:r.width,height:r.height,rotation:r.rotation},function(f,e){if(f)Object(x.g)(f.toString());else{var n=new Image;n.onload=function(){n.classList.add("embedded-thumb");h(n);n=n.onload=null};n.src=e}});this.tG[w]=!0}else"embedded"!==n&&(w=f.prototype.loadThumbnailAsync.call(this,e,h,n));return w};e.prototype.NO=function(f,e,h,n,r,w){var z=this,fa=f.gI?f.gI:Object(ca.a)().setUpCanvas(f.page,
|
|
f.MD,f.Dt,n,h,f.mc,r,w).canvas,aa=fa.getContext("2d"),ja=f.page.pageNum;this.Be.jq(f.page.id,{width:f.page.width,height:f.page.height,rotation:f.page.rotation},function(h,r){if(h)Object(x.g)(h.toString());else{var w=new Image;w.onload=function(){n?1===f.Dt||3===f.Dt?aa.drawImage(w,0,0,n.height,n.width):aa.drawImage(w,0,0,n.width,n.height):aa.drawImage(w,0,0,f.page.width,f.page.height);f.page&&z.drawWatermark(fa,f.page.eJ());if(z.ca[ja-1])var h=z.ca[ja-1].id;f.MB(fa,h);e&&f.LB(fa);e&&delete z.pk[f.id];
|
|
w=w.onload=null;z.je({type:y.a.Events.EMBEDDED_THUMBNAIL_COMPLETE,data:ja})};w.src=r}})};e.prototype.cB=function(e,h,n,r,w,y,x,aa,da){if(this.tg&&this.Be&&this.Be.MC(r.page))return this.NO(r,w,y,x,aa,da);if(!this.tg)return this.Rz&&(r.page=this.ca[r.page.eJ()-1]),this.He(f.prototype.cB,[e,h,n,r,w,y,x,aa,da])};e.prototype.Eh=function(e){this.tG[e]?this.Be.tH(e):f.prototype.Eh.call(this,e)};e.prototype.dz=function(f){var e=new ha.a(f.w,f.h),h=f.mtx;e.matrix=new w.a;e.matrix.ab(h[0],h[1],h[2],h[3],h[4],
|
|
h[5]);var n=this.An(e.matrix);e.matrix=this.cy(h,{w:f.w,h:f.h});e.rotation=n/90;return e};e.prototype.VG=function(f){if(0!==f.length)for(var e=0,h=f.length;e<h;++e)for(var n=f[e],r=Math.min(this.ca.length,n.i-1),w=n.i+n.n-2;w>=r;--w)this.ca[w]=this.dz(n)};e.prototype.cy=function(e,h){return this.tg&&!Array.isArray(e)||e instanceof w.a?e:f.prototype.cy.call(this,e,h)};e.prototype.He=function(f,e){var h=this;return this.w3?f.apply(this,e):this.p_.promise.then(function(){var n=f.apply(h,e);if(n&&n.then)return n})};
|
|
e.prototype.VB=function(e,h){if(this.aA&&!this.Rz){for(var n=Object.keys(e),r={},w=0,z=n.length;w<z;w++)e.hasOwnProperty(n[w])&&(r[parseInt(n[w],10)-1]=e[n[w]].id);this.XK=!1;this.je({type:"changePageIds",data:r});this.Rz=!0}return f.prototype.VB.call(this,e,h)};e.prototype.Zw=function(f){var e=this;f.forEach(function(f){e.Be&&e.Be.MC(f)&&e.Be.Tha(f)});document.querySelectorAll(".pageContainer .embedded-thumb").forEach(function(f){f.parentNode.removeChild(f)})};e.prototype.updateRasterizerOptions=
|
|
function(e){this.hG=!0;f.prototype.updateRasterizerOptions.call(this,e)};return e}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(237);ba.a=function(e,ha,ca){for(var x=[],aa=0;16>aa;++aa){x[aa]=aa;aa<ha.length&&(x[aa]|=ha.charCodeAt(aa));var w=ca.length+aa-16;0<=w&&(x[aa]|=ca.charCodeAt(w))}ha=[];for(ca=0;16>ca;++ca)ha.push(e.charCodeAt(ca));e=e.slice(16);x=ea.a.vn.hla(x,ha);x.update(ea.a.ir.createBuffer(e));return x.finish()?x.output.data:{error:"Bad password or file corrupt"}}},function(ia,ba,e){ia=e(321);
|
|
ba.a=ia.a},function(ia){var ba;(function(){function e(ea,x,ha,ca,da){for(var aa=ca,w,y=x+1;y<ha;y++){var n=ea[y];var h=ea[x],f=ea[ha],r=h.x;h=h.y;var z=f.x-r,fa=f.y-h;if(0!==z||0!==fa){var ka=((n.x-r)*z+(n.y-h)*fa)/(z*z+fa*fa);1<ka?(r=f.x,h=f.y):0<ka&&(r+=z*ka,h+=fa*ka)}z=n.x-r;fa=n.y-h;n=z*z+fa*fa;n>aa&&(w=y,aa=n)}aa>ca&&(1<w-x&&e(ea,x,w,ca,da),da.push(ea[w]),1<ha-w&&e(ea,w,ha,ca,da))}!(ba=function(ea,x,ha){if(2>=ea.length)return ea;x=void 0!==x?x*x:1;if(ha)var ca=ea;else{ha=ea[0];for(var da=[ha],
|
|
aa=1,w=ea.length;aa<w;aa++){ca=ea[aa];var y=ca.x-ha.x,n=ca.y-ha.y;y*y+n*n>x&&(da.push(ca),ha=ca)}ha!==ca&&da.push(ca);ca=da}ea=ca.length-1;ha=[ca[0]];e(ca,0,ea,x,ha);ha.push(ca[ea]);return ha},void 0!==ba&&(ia.exports=ba))})()},function(ia,ba,e){var ea=e(28);ia=function(){function e(e){this.rotation=e.rotation;this.zoom=e.zoom;this.width=e.width;this.height=e.height;this.Nf=this.canvas=null;this.Ek=this.iH=this.oj=!1;this.hZ=!0;this.ze=this.qq=this.pu=this.request=null}e.prototype.Fw=function(e){return(this.canvas||
|
|
e?1:0)*this.width*this.height*this.zoom*this.zoom*(window.devicePixelRatio?window.devicePixelRatio*window.devicePixelRatio:1)*4};e.prototype.isValid=function(){return!!this.canvas||!Object(ea.a)().useCache};e.prototype.update=function(e){if(this.rotation!==e.rotation||this.zoom!==e.zoom)this.Nf=this.canvas=null,this.hZ=!0;this.rotation=e.rotation;this.zoom=e.zoom;this.width=e.width;this.height=e.height;this.fb=e.fb};return e}();ba.a=ia},function(ia,ba,e){function ea(e){return function(aa){e.forEach(function(e){var w=
|
|
e.type,n=e.check,h=e.methods;Object.keys(h).forEach(function(f){var e=aa.prototype[f],z=w.message,y=w.severity;aa.prototype[f]=function(){for(var r=[],w=0;w<arguments.length;w++)r[w]=arguments[w];var fa=n(this);w=!fa&&y===ca.Ju;if(!fa)switch(fa=z(h[f]),y){case ca.Ju:throw Error(fa);default:Object(ha.j)(fa)}if(!w)return e.call.apply(e,Object(x.e)([this],r))}})});return aa}}var x=e(1),ha=e(2),ca;(function(e){e.ERROR="error";e.WARN="warn"})(ca||(ca={}));ea.U1={V_:{message:function(e){return e+" was called before the 'documentLoaded' event"},
|
|
severity:ca.Ju},Dma:{message:function(e){return e+" requires the full API to be enabled. Please set the fullAPI option to true in your WebViewer constructor."},severity:ca.Pma}};ba.a=ea},function(ia,ba){!function(e,ea){"object"==typeof ba&&"undefined"!=typeof ia?ea(ba):"function"==typeof define&&define.amd?define(["exports"],ea):ea((e=e||self).i4={})}(this,function(e){function ea(f,e,h){this.start=e;this.end=h;null!==f.vy&&(this.source=f.vy)}function x(f,e){for(var h=65536,n=0;n<e.length;n+=2){if(f<
|
|
(h+=e[n]))return!1;if(f<=(h+=e[n+1]))return!0}}function ha(f,e){return 65>f?36===f:91>f||(97>f?95===f:123>f||(65535>=f?170<=f&&Ga.test(String.fromCharCode(f)):!1!==e&&x(f,Ia)))}function ca(f,e){return 48>f?36===f:58>f||!(65>f)&&(91>f||(97>f?95===f:123>f||(65535>=f?170<=f&&Ba.test(String.fromCharCode(f)):!1!==e&&(x(f,Ia)||x(f,Ja)))))}function da(f,e){void 0===e&&(e={});this.label=f;this.ug=e.ug;this.Bd=!!e.Bd;this.Fg=!!e.Fg;this.fx=!!e.fx;this.YC=!!e.YC;this.prefix=!!e.prefix;this.kL=!!e.kL;this.up=
|
|
e.up||null;this.Hg=null}function aa(f,e){return new da(f,{Bd:!0,up:e})}function w(f,e){return void 0===e&&(e={}),e.ug=f,Ka[f]=new da(f,e)}function y(f,e){return 10===f||13===f||!e&&(8232===f||8233===f)}function n(f){return new RegExp("^(?:"+f.replace(/ /g,"|")+")$")}function h(f,e){this.line=f;this.column=e}function f(f,e){for(var n=1,r=0;;){Na.lastIndex=r;var w=Na.exec(f);if(!(w&&w.index<e))return new h(n,e-r);++n;r=w.index+w[0].length}}function r(f){var e,h,n,r={};for(e in Oa)r[e]=(f&&wa.call(f,
|
|
e)?f:Oa)[e];return"latest"===r.pa?r.pa=1E8:null==r.pa?(!Ta&&"object"==typeof console&&console.warn&&(Ta=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),r.pa=11):2015<=r.pa&&(r.pa-=2009),null==r.vv&&(r.vv=5>r.pa),Qa(r.Cx)&&(h=r.Cx,r.Cx=function(f){return h.push(f)}),Qa(r.jm)&&(r.jm=(n=r.jm,function(f,e,h,w,z,y){e={type:f?"Block":"Line",value:e,start:h,end:w};r.Ne&&(e.loc=new ea(this,z,y));r.Nq&&(e.range=[h,w]);n.push(e)})),
|
|
r}function z(f,e,h){this.options=f=r(f);this.vy=f.vy;this.sV=n(Aa[6<=f.pa?6:"module"===f.eu?"5module":5]);var w="";!0!==f.vv&&(w=ya[6<=f.pa?6:5===f.pa?5:3],"module"===f.eu&&(w+=" await"));this.eia=n(w);w=(w?w+" ":"")+ya.strict;this.fia=n(w);this.gia=n(w+" "+ya.kla);this.input=String(e);this.Li=!1;h?(this.da=h,this.wq=this.input.lastIndexOf("\n",h-1)+1,this.gs=this.input.slice(0,this.wq).split(Ha).length):(this.da=this.wq=0,this.gs=1);this.type=ta.Op;this.value=null;this.start=this.end=this.da;this.Ld=
|
|
this.jI=this.Fp();this.vK=this.tV=null;this.aj=this.Jf=this.da;this.context=this.ada();this.mf=!0;this.strict=(this.io="module"===f.eu)||this.yZ(this.da);this.lL=-1;this.ed=this.Pc=this.Ud=0;this.labels=[];this.Ny={};0===this.da&&f.J4&&"#!"===this.input.slice(0,2)&&this.JE(2);this.fi=[];this.Cl(1);this.vX=null}function fa(){this.ty=this.Ok=this.hj=this.Hq=this.IB=-1}function ka(f){this.flags=f;this.fF=[];this.mo=[];this.functions=[]}function ja(f,e,h){this.type="";this.start=e;this.end=0;f.options.Ne&&
|
|
(this.loc=new ea(f,h));f.options.XR&&(this.vy=f.options.XR);f.options.Nq&&(this.range=[e,0])}function ba(f,e,h,n){return f.type=e,f.end=h,this.options.Ne&&(f.loc.end=n),this.options.Nq&&(f.range[1]=h),f}function ma(f){f=Ub[f]={h5:n(Hc[f]+" Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"),
|
|
xk:{k0:n("Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu"),
|
|
cO:n(Gb[f])}};f.xk.M1=f.xk.cO;f.xk.Loa=f.xk.k0;f.xk.Xpa=f.xk.cO;f.xk.Ypa=f.xk.M1}function la(f){this.hL=f;this.fma="gim"+(6<=f.options.pa?"uy":"")+(9<=f.options.pa?"s":"");this.bN=Ub[12<=f.options.pa?12:f.options.pa];this.flags=this.source="";this.start=0;this.Fy=this.Xe=!1;this.Na=this.da=0;this.Hd="";this.mD=!1;this.tD=this.yx=0;this.Tw=[];this.jH=[]}function na(f){return 65535>=f?String.fromCharCode(f):(f-=65536,String.fromCharCode(55296+(f>>10),56320+(1023&f)))}function ra(f){return 36===f||40<=
|
|
f&&43>=f||46===f||63===f||91<=f&&94>=f||123<=f&&125>=f}function sa(f){return 65<=f&&90>=f||97<=f&&122>=f||95===f}function ia(f){return 48<=f&&57>=f}function qa(f){return 48<=f&&57>=f||65<=f&&70>=f||97<=f&&102>=f}function va(f){return 65<=f&&70>=f?f-65+10:97<=f&&102>=f?f-97+10:f-48}function oa(f){this.type=f.type;this.value=f.value;this.start=f.start;this.end=f.end;f.options.Ne&&(this.loc=new ea(f,f.Ld,f.jI));f.options.Nq&&(this.range=[f.start,f.end])}function ua(f){return"function"!=typeof BigInt?
|
|
null:BigInt(f.replace(/_/g,""))}function Ca(f){return 65535>=f?String.fromCharCode(f):(f-=65536,String.fromCharCode(55296+(f>>10),56320+(1023&f)))}var ya={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",
|
|
kla:"eval arguments"},Ea="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Aa={5:Ea,"5module":Ea+" export import",6:Ea+" const class extends export import super"},Fa=/^in(stanceof)?$/,Ga=/[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]/,
|
|
Ba=/[\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08c7\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\u9ffc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7ca\ua7f5-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\u200c\u200d\u00b7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08d3-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf\u1ac0\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1df9\u1dfb-\u1dff\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f]/,
|
|
Ia=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,
|
|
47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,
|
|
2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],Ja=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,
|
|
3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239],za={Bd:!0},xa={Fg:!0},Ka={},ta={wt:new da("num",xa),uX:new da("regexp",
|
|
xa),string:new da("string",xa),name:new da("name",xa),Op:new da("eof"),vp:new da("[",{Bd:!0,Fg:!0}),Bv:new da("]"),Ug:new da("{",{Bd:!0,Fg:!0}),bg:new da("}"),xe:new da("(",{Bd:!0,Fg:!0}),Se:new da(")"),Wd:new da(",",za),Dg:new da(";",za),En:new da(":",za),Kb:new da("."),gX:new da("?",za),hX:new da("?."),Vr:new da("=>",za),template:new da("template"),XJ:new da("invalidTemplate"),cw:new da("...",za),tp:new da("`",xa),XH:new da("${",{Bd:!0,Fg:!0}),eq:new da("=",{Bd:!0,YC:!0}),assign:new da("_=",{Bd:!0,
|
|
YC:!0}),SJ:new da("++/--",{prefix:!0,kL:!0,Fg:!0}),prefix:new da("!/~",{Bd:!0,prefix:!0,Fg:!0}),DK:aa("||",1),sD:aa("&&",2),m5:aa("|",3),n5:aa("^",4),l5:aa("&",5),X9:aa("==/!=/===/!==",6),Oha:aa("</>/<=/>=",7),k5:aa("<</>>/>>>",8),lga:new da("+/-",{Bd:!0,up:9,prefix:!0,Fg:!0}),Qea:aa("%",10),vh:aa("*",10),oZ:aa("/",10),tZ:new da("**",{Bd:!0}),BH:aa("??",1),D2:w("break"),PO:w("case",za),I2:w("catch"),R2:w("continue"),T2:w("debugger"),XO:w("default",za),V2:w("do",{fx:!0,Bd:!0}),cG:w("else",za),a3:w("finally"),
|
|
lP:w("for",{fx:!0}),Ar:w("function",xa),vP:w("if"),IG:w("return",za),lQ:w("switch"),X3:w("throw",za),d4:w("try"),HA:w("var"),UF:w("const"),SG:w("while",{fx:!0}),rQ:w("with"),F3:w("new",{Bd:!0,Fg:!0}),W3:w("this",xa),U3:w("super",xa),Lz:w("class",xa),Y2:w("extends",za),X2:w("export"),av:w("import",xa),QP:w("null",xa),qQ:w("true",xa),Z2:w("false",xa),Zm:w("in",{Bd:!0,up:7}),vna:w("instanceof",{Bd:!0,up:7}),Ana:w("typeof",{Bd:!0,prefix:!0,Fg:!0}),Dna:w("void",{Bd:!0,prefix:!0,Fg:!0}),rna:w("delete",
|
|
{Bd:!0,prefix:!0,Fg:!0})},Ha=/\r\n?|\n|\u2028|\u2029/,Na=new RegExp(Ha.source,"g"),Ra=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Ma=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;za=Object.prototype;var wa=za.hasOwnProperty,Pa=za.toString,Qa=Array.isArray||function(f){return"[object Array]"===Pa.call(f)},Oa={pa:null,eu:"script",eW:null,gW:null,vv:null,L4:!(h.prototype.offset=function(f){return new h(this.line,this.column+f)}),K4:!1,GQ:!1,J4:!1,Ne:!1,Cx:null,jm:null,Nq:!1,Dga:null,vy:null,XR:null,uga:!1},Ta=
|
|
!1;Ea={PC:{configurable:!0},RJ:{configurable:!0},Ws:{configurable:!0},JQ:{configurable:!0},HQ:{configurable:!0},ZM:{configurable:!0},zU:{configurable:!0}};z.prototype.parse=function(){var f=this.options.Dga||this.startNode();return this.vx(),this.$fa(f)};Ea.PC.get=function(){return 0<(2&this.MH().flags)};Ea.RJ.get=function(){return 0<(8&this.MH().flags)};Ea.Ws.get=function(){return 0<(4&this.MH().flags)};Ea.JQ.get=function(){return 0<(64&this.LH().flags)};Ea.HQ.get=function(){return 0<(128&this.LH().flags)};
|
|
Ea.ZM.get=function(){return this.XZ(this.rB())};Ea.zU.get=function(){return 0<(2&this.LH().flags)};z.extend=function(){for(var f=[],e=arguments.length;e--;)f[e]=arguments[e];e=this;for(var h=0;h<f.length;h++)e=f[h](e);return e};z.parse=function(f,e){return(new this(e,f)).parse()};z.BW=function(f,e,h){e=new this(h,f,e);return e.vx(),e.ih()};z.TZ=function(f,e){return new this(e,f)};Object.defineProperties(z.prototype,Ea);za=z.prototype;var Nb=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;za.yZ=function(f){for(;;){Ma.lastIndex=
|
|
f;f+=Ma.exec(this.input)[0].length;var e=Nb.exec(this.input.slice(f));if(!e)return!1;if("use strict"===(e[1]||e[2])){Ma.lastIndex=f+e[0].length;f=Ma.exec(this.input);e=f.index+f[0].length;var h=this.input.charAt(e);return";"===h||"}"===h||Ha.test(f[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(h)||"!"===h&&"="===this.input.charAt(e+1))}f+=e[0].length;Ma.lastIndex=f;f+=Ma.exec(this.input)[0].length;";"===this.input[f]&&f++}};za.ma=function(f){return this.type===f&&(this.next(),!0)};za.Zl=function(f){return this.type===
|
|
ta.name&&this.value===f&&!this.Li};za.Lp=function(f){return!!this.Zl(f)&&(this.next(),!0)};za.lI=function(f){this.Lp(f)||this.ob()};za.Uj=function(){return this.type===ta.Op||this.type===ta.bg||Ha.test(this.input.slice(this.Jf,this.start))};za.WJ=function(){if(this.Uj())return this.options.eW&&this.options.eW(this.Jf,this.vK),!0};za.qj=function(){this.ma(ta.Dg)||this.WJ()||this.ob()};za.Rr=function(f,e){if(this.type===f)return this.options.gW&&this.options.gW(this.aj,this.tV),e||this.next(),!0};za.$b=
|
|
function(f){this.ma(f)||this.ob()};za.ob=function(f){this.sa(null!=f?f:this.start,"Unexpected token")};za.Lv=function(f,e){f&&(-1<f.Ok&&this.Za(f.Ok,"Comma is not permitted after the rest element"),-1<(f=e?f.hj:f.Hq)&&this.Za(f,"Parenthesized pattern"))};za.Cn=function(f,e){if(!f)return!1;var h=f.ty;f=f.IB;if(!e)return 0<=h||0<=f;0<=h&&this.sa(h,"Shorthand property assignments are valid only in destructuring patterns");0<=f&&this.Za(f,"Redefinition of __proto__ property")};za.gB=function(){this.ed&&
|
|
(!this.Pc||this.ed<this.Pc)&&this.sa(this.ed,"Yield expression cannot be a default value");this.Pc&&this.sa(this.Pc,"Await expression cannot be a default value")};za.iV=function(f){return"ParenthesizedExpression"===f.type?this.iV(f.expression):"Identifier"===f.type||"MemberExpression"===f.type};xa=z.prototype;xa.$fa=function(f){var e={};for(f.body||(f.body=[]);this.type!==ta.Op;){var h=this.Zh(null,!0,e);f.body.push(h)}if(this.io)for(e=0,h=Object.keys(this.Ny);e<h.length;e+=1){var n=h[e];this.Za(this.Ny[n].start,
|
|
"Export '"+n+"' is not defined")}return this.sQ(f.body),this.next(),f.eu=this.options.eu,this.Ca(f,"Program")};var sc={kind:"loop"},bb={kind:"switch"};xa.gK=function(f){if(6>this.options.pa||!this.Zl("let"))return!1;Ma.lastIndex=this.da;var e=Ma.exec(this.input),h=this.da+e[0].length;e=this.input.charCodeAt(h);if(91===e)return!0;if(f)return!1;if(123===e)return!0;if(ha(e,!0)){for(f=h+1;ca(this.input.charCodeAt(f),!0);)++f;h=this.input.slice(h,f);if(!Fa.test(h))return!0}return!1};xa.$J=function(){if(8>
|
|
this.options.pa||!this.Zl("async"))return!1;Ma.lastIndex=this.da;var f=Ma.exec(this.input);f=this.da+f[0].length;return!(Ha.test(this.input.slice(this.da,f))||"function"!==this.input.slice(f,f+8)||f+8!==this.input.length&&ca(this.input.charAt(f+8)))};xa.Zh=function(f,e,h){var n,r=this.type,w=this.startNode();switch(this.gK(f)&&(r=ta.HA,n="let"),r){case ta.D2:case ta.R2:return this.pfa(w,r.ug);case ta.T2:return this.ufa(w);case ta.V2:return this.wfa(w);case ta.lP:return this.Efa(w);case ta.Ar:return f&&
|
|
(this.strict||"if"!==f&&"label"!==f)&&6<=this.options.pa&&this.ob(),this.HW(w,!1,!f);case ta.Lz:return f&&this.ob(),this.aL(w,!0);case ta.vP:return this.Hfa(w);case ta.IG:return this.Vfa(w);case ta.lQ:return this.Yfa(w);case ta.X3:return this.Zfa(w);case ta.d4:return this.aga(w);case ta.UF:case ta.HA:return n=n||this.value,f&&"var"!==n&&this.ob(),this.cga(w,n);case ta.SG:return this.dga(w);case ta.rQ:return this.ega(w);case ta.Ug:return this.Kx(!0,w);case ta.Dg:return this.yfa(w);case ta.X2:case ta.av:if(10<
|
|
this.options.pa&&r===ta.av){Ma.lastIndex=this.da;n=Ma.exec(this.input);var z=this.da+n[0].length;n=this.input.charCodeAt(z);if(40===n||46===n)return this.DW(w,this.ih())}return this.options.K4||(e||this.sa(this.start,"'import' and 'export' may only appear at the top level"),this.io||this.sa(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===ta.av?this.Ifa(w):this.zfa(w,h);default:if(this.$J())return f&&this.ob(),this.next(),this.HW(w,!0,!f);z=this.value;n=this.ih();
|
|
return r===ta.name&&"Identifier"===n.type&&this.ma(ta.En)?this.Lfa(w,z,n,f):this.DW(w,n)}};xa.pfa=function(f,e){var h="break"===e;this.next();this.ma(ta.Dg)||this.WJ()?f.label=null:this.type!==ta.name?this.ob():(f.label=this.Kd(),this.qj());for(var n=0;n<this.labels.length;++n){var r=this.labels[n];if(null==f.label||r.name===f.label.name){if(null!=r.kind&&(h||"loop"===r.kind))break;if(f.label&&h)break}}return n===this.labels.length&&this.sa(f.start,"Unsyntactic "+e),this.Ca(f,h?"BreakStatement":"ContinueStatement")};
|
|
xa.ufa=function(f){return this.next(),this.qj(),this.Ca(f,"DebuggerStatement")};xa.wfa=function(f){return this.next(),this.labels.push(sc),f.body=this.Zh("do"),this.labels.pop(),this.$b(ta.SG),f.test=this.Et(),6<=this.options.pa?this.ma(ta.Dg):this.qj(),this.Ca(f,"DoWhileStatement")};xa.Efa=function(f){this.next();var e=9<=this.options.pa&&(this.Ws||!this.PC&&this.options.GQ)&&this.Lp("await")?this.aj:-1;if(this.labels.push(sc),this.Cl(0),this.$b(ta.xe),this.type===ta.Dg)return-1<e&&this.ob(e),this.eL(f,
|
|
null);var h=this.gK();if(this.type===ta.HA||this.type===ta.UF||h){var n=this.startNode();h=h?"let":this.value;return(this.next(),this.PW(n,!0,h),this.Ca(n,"VariableDeclaration"),(this.type===ta.Zm||6<=this.options.pa&&this.Zl("of"))&&1===n.declarations.length)?(9<=this.options.pa&&(this.type===ta.Zm?-1<e&&this.ob(e):f.VQ=-1<e),this.GW(f,n)):(-1<e&&this.ob(e),this.eL(f,n))}h=new fa;n=this.ih(!0,h);return this.type===ta.Zm||6<=this.options.pa&&this.Zl("of")?(9<=this.options.pa&&(this.type===ta.Zm?-1<
|
|
e&&this.ob(e):f.VQ=-1<e),this.Jo(n,!1,h),this.yp(n),this.GW(f,n)):(this.Cn(h,!0),-1<e&&this.ob(e),this.eL(f,n))};xa.HW=function(f,e,h){return this.next(),this.RD(f,Tb|(h?0:bc),!1,e)};xa.Hfa=function(f){return this.next(),f.test=this.Et(),f.consequent=this.Zh("if"),f.alternate=this.ma(ta.cG)?this.Zh("if"):null,this.Ca(f,"IfStatement")};xa.Vfa=function(f){return this.PC||this.options.L4||this.sa(this.start,"'return' outside of function"),this.next(),this.ma(ta.Dg)||this.WJ()?f.argument=null:(f.argument=
|
|
this.ih(),this.qj()),this.Ca(f,"ReturnStatement")};xa.Yfa=function(f){var e;this.next();f.discriminant=this.Et();f.cases=[];this.$b(ta.Ug);this.labels.push(bb);this.Cl(0);for(var h,n=!1;this.type!==ta.bg;)this.type===ta.PO||this.type===ta.XO?(h=this.type===ta.PO,e&&this.Ca(e,"SwitchCase"),f.cases.push(e=this.startNode()),e.consequent=[],this.next(),h?e.test=this.ih():(n&&this.Za(this.aj,"Multiple default clauses"),n=!0,e.test=null),this.$b(ta.En)):(e||this.ob(),e.consequent.push(this.Zh(null)));return this.zs(),
|
|
e&&this.Ca(e,"SwitchCase"),this.next(),this.labels.pop(),this.Ca(f,"SwitchStatement")};xa.Zfa=function(f){return this.next(),Ha.test(this.input.slice(this.Jf,this.start))&&this.sa(this.Jf,"Illegal newline after throw"),f.argument=this.ih(),this.qj(),this.Ca(f,"ThrowStatement")};var lb=[];xa.aga=function(f){var e,h;return this.next(),f.block=this.Kx(),f.handler=null,this.type===ta.I2&&(e=this.startNode(),this.next(),this.ma(ta.xe)?(e.param=this.PD(),h="Identifier"===e.param.type,this.Cl(h?32:0),this.yp(e.param,
|
|
h?4:2),this.$b(ta.Se)):(10>this.options.pa&&this.ob(),e.param=null,this.Cl(0)),e.body=this.Kx(!1),this.zs(),f.handler=this.Ca(e,"CatchClause")),f.finalizer=this.ma(ta.a3)?this.Kx():null,f.handler||f.finalizer||this.sa(f.start,"Missing catch or finally clause"),this.Ca(f,"TryStatement")};xa.cga=function(f,e){return this.next(),this.PW(f,!1,e),this.qj(),this.Ca(f,"VariableDeclaration")};xa.dga=function(f){return this.next(),f.test=this.Et(),this.labels.push(sc),f.body=this.Zh("while"),this.labels.pop(),
|
|
this.Ca(f,"WhileStatement")};xa.ega=function(f){return this.strict&&this.sa(this.start,"'with' in strict mode"),this.next(),f.object=this.Et(),f.body=this.Zh("with"),this.Ca(f,"WithStatement")};xa.yfa=function(f){return this.next(),this.Ca(f,"EmptyStatement")};xa.Lfa=function(f,e,h,n){for(var r=0,w=this.labels;r<w.length;r+=1)w[r].name===e&&this.sa(h.start,"Label '"+e+"' is already declared");r=this.type.fx?"loop":this.type===ta.lQ?"switch":null;for(w=this.labels.length-1;0<=w;w--){var z=this.labels[w];
|
|
if(z.wZ!==f.start)break;z.wZ=this.start;z.kind=r}return this.labels.push({name:e,kind:r,wZ:this.start}),f.body=this.Zh(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),f.label=h,this.Ca(f,"LabeledStatement")};xa.DW=function(f,e){return f.expression=e,this.qj(),this.Ca(f,"ExpressionStatement")};xa.Kx=function(f,e,h){void 0===f&&(f=!0);void 0===e&&(e=this.startNode());e.body=[];this.$b(ta.Ug);for(f&&this.Cl(0);this.type!==ta.bg;){var n=this.Zh(null);e.body.push(n)}return h&&(this.strict=
|
|
!1),this.next(),f&&this.zs(),this.Ca(e,"BlockStatement")};xa.eL=function(f,e){return f.init=e,this.$b(ta.Dg),f.test=this.type===ta.Dg?null:this.ih(),this.$b(ta.Dg),f.update=this.type===ta.Se?null:this.ih(),this.$b(ta.Se),f.body=this.Zh("for"),this.zs(),this.labels.pop(),this.Ca(f,"ForStatement")};xa.GW=function(f,e){var h=this.type===ta.Zm;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!h||8>this.options.pa||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&
|
|
this.sa(e.start,(h?"for-in":"for-of")+" loop variable declaration may not have an initializer"),f.left=e,f.right=h?this.ih():this.ye(),this.$b(ta.Se),f.body=this.Zh("for"),this.zs(),this.labels.pop(),this.Ca(f,h?"ForInStatement":"ForOfStatement")};xa.PW=function(f,e,h){f.declarations=[];for(f.kind=h;;){var n=this.startNode();if(this.bga(n,h),this.ma(ta.eq)?n.init=this.ye(e):"const"!==h||this.type===ta.Zm||6<=this.options.pa&&this.Zl("of")?"Identifier"===n.id.type||e&&(this.type===ta.Zm||this.Zl("of"))?
|
|
n.init=null:this.sa(this.Jf,"Complex binding patterns require an initialization value"):this.ob(),f.declarations.push(this.Ca(n,"VariableDeclarator")),!this.ma(ta.Wd))break}};xa.bga=function(f,e){f.id=this.PD();this.yp(f.id,"var"===e?1:2,!1)};var Tb=1,bc=2;xa.RD=function(f,e,h,n){this.VJ(f);(9<=this.options.pa||6<=this.options.pa&&!n)&&(this.type===ta.vh&&e&bc&&this.ob(),f.generator=this.ma(ta.vh));8<=this.options.pa&&(f.async=!!n);e&Tb&&(f.id=4&e&&this.type!==ta.name?null:this.Kd(),!f.id||e&bc||
|
|
this.Hi(f.id,this.strict||f.generator||f.async?this.ZM?1:2:3));var r=this.ed,w=this.Pc;n=this.Ud;return this.ed=0,this.Pc=0,this.Ud=0,this.Cl(2|(f.async?4:0)|(f.generator?8:0)),e&Tb||(f.id=this.type===ta.name?this.Kd():null),this.Gfa(f),this.fL(f,h,!1),this.ed=r,this.Pc=w,this.Ud=n,this.Ca(f,e&Tb?"FunctionDeclaration":"FunctionExpression")};xa.Gfa=function(f){this.$b(ta.xe);f.params=this.$K(ta.Se,!1,8<=this.options.pa);this.gB()};xa.aL=function(f,e){this.next();var h=this.strict;this.strict=!0;this.rfa(f,
|
|
e);this.tfa(f);var n=this.startNode(),r=!1;n.body=[];for(this.$b(ta.Ug);this.type!==ta.bg;){var w=this.qfa(null!==f.superClass);w&&(n.body.push(w),"MethodDefinition"===w.type&&"constructor"===w.kind&&(r&&this.sa(w.start,"Duplicate constructor in the same class"),r=!0))}return this.strict=h,this.next(),f.body=this.Ca(n,"ClassBody"),this.Ca(f,e?"ClassDeclaration":"ClassExpression")};xa.qfa=function(f){function e(f,e){void 0===e&&(e=!1);var r=h.start,w=h.Ld;return!!h.Lp(f)&&(!(h.type===ta.xe||e&&h.Uj())||
|
|
(n.key&&h.ob(),n.computed=!1,n.key=h.Ae(r,w),n.key.name=f,h.Ca(n.key,"Identifier"),!1))}var h=this;if(this.ma(ta.Dg))return null;var n=this.startNode();n.kind="method";n.LE=e("static");var r=this.ma(ta.vh),w=!1;r||(8<=this.options.pa&&e("async",!0)?(w=!0,r=9<=this.options.pa&&this.ma(ta.vh)):e("get")?n.kind="get":e("set")&&(n.kind="set"));n.key||this.TD(n);var z=n.key;e=!1;return n.computed||n.LE||!("Identifier"===z.type&&"constructor"===z.name||"Literal"===z.type&&"constructor"===z.value)?n.LE&&
|
|
"Identifier"===z.type&&"prototype"===z.name&&this.sa(z.start,"Classes may not have a static property named prototype"):("method"!==n.kind&&this.sa(z.start,"Constructor can't have get/set modifier"),r&&this.sa(z.start,"Constructor can't be a generator"),w&&this.sa(z.start,"Constructor can't be an async method"),n.kind="constructor",e=f),this.sfa(n,r,w,e),"get"===n.kind&&0!==n.value.params.length&&this.Za(n.value.start,"getter should have no params"),"set"===n.kind&&1!==n.value.params.length&&this.Za(n.value.start,
|
|
"setter should have exactly one param"),"set"===n.kind&&"RestElement"===n.value.params[0].type&&this.Za(n.value.params[0].start,"Setter cannot use rest params"),n};xa.sfa=function(f,e,h,n){f.value=this.gL(e,h,n);this.Ca(f,"MethodDefinition")};xa.rfa=function(f,e){this.type===ta.name?(f.id=this.Kd(),e&&this.Hi(f.id,2,!1)):(!0===e&&this.ob(),f.id=null)};xa.tfa=function(f){f.superClass=this.ma(ta.Y2)?this.AW():null};xa.zfa=function(f,e){if(this.next(),this.ma(ta.vh))return 11<=this.options.pa&&(this.Lp("as")?
|
|
(f.exported=this.Kd(!0),this.Kv(e,f.exported.name,this.aj)):f.exported=null),this.lI("from"),this.type!==ta.string&&this.ob(),f.source=this.Iq(),this.qj(),this.Ca(f,"ExportAllDeclaration");var h,n;if(this.ma(ta.XO))return this.Kv(e,"default",this.aj),this.type===ta.Ar||(n=this.$J())?(h=this.startNode(),this.next(),n&&this.next(),f.declaration=this.RD(h,4|Tb,!1,n)):this.type===ta.Lz?(n=this.startNode(),f.declaration=this.aL(n,"nullableID")):(f.declaration=this.ye(),this.qj()),this.Ca(f,"ExportDefaultDeclaration");
|
|
if(this.Wka())f.declaration=this.Zh(null),"VariableDeclaration"===f.declaration.type?this.S5(e,f.declaration.declarations):this.Kv(e,f.declaration.id.name,f.declaration.id.start),f.specifiers=[],f.source=null;else{if(f.declaration=null,f.specifiers=this.Afa(e),this.Lp("from"))this.type!==ta.string&&this.ob(),f.source=this.Iq();else{e=0;for(h=f.specifiers;e<h.length;e+=1)n=h[e],this.fB(n.local),this.P5(n.local);f.source=null}this.qj()}return this.Ca(f,"ExportNamedDeclaration")};xa.Kv=function(f,e,
|
|
h){f&&(wa.call(f,e)&&this.Za(h,"Duplicate export '"+e+"'"),f[e]=!0)};xa.zp=function(f,e){var h=e.type;if("Identifier"===h)this.Kv(f,e.name,e.start);else if("ObjectPattern"===h)for(h=0,e=e.properties;h<e.length;h+=1)this.zp(f,e[h]);else if("ArrayPattern"===h)for(h=0,e=e.elements;h<e.length;h+=1){var n=e[h];n&&this.zp(f,n)}else"Property"===h?this.zp(f,e.value):"AssignmentPattern"===h?this.zp(f,e.left):"RestElement"===h?this.zp(f,e.argument):"ParenthesizedExpression"===h&&this.zp(f,e.expression)};xa.S5=
|
|
function(f,e){if(f)for(var h=0;h<e.length;h+=1)this.zp(f,e[h].id)};xa.Wka=function(){return"var"===this.type.ug||"const"===this.type.ug||"class"===this.type.ug||"function"===this.type.ug||this.gK()||this.$J()};xa.Afa=function(f){var e=[],h=!0;for(this.$b(ta.Ug);!this.ma(ta.bg);){if(h)h=!1;else if(this.$b(ta.Wd),this.Rr(ta.bg))break;var n=this.startNode();n.local=this.Kd(!0);n.exported=this.Lp("as")?this.Kd(!0):n.local;this.Kv(f,n.exported.name,n.exported.start);e.push(this.Ca(n,"ExportSpecifier"))}return e};
|
|
xa.Ifa=function(f){return this.next(),this.type===ta.string?(f.specifiers=lb,f.source=this.Iq()):(f.specifiers=this.Kfa(),this.lI("from"),f.source=this.type===ta.string?this.Iq():this.ob()),this.qj(),this.Ca(f,"ImportDeclaration")};xa.Kfa=function(){var f=[],e=!0;if(this.type===ta.name){var h=this.startNode();if(h.local=this.Kd(),this.Hi(h.local,2),f.push(this.Ca(h,"ImportDefaultSpecifier")),!this.ma(ta.Wd))return f}if(this.type===ta.vh)return h=this.startNode(),this.next(),this.lI("as"),h.local=
|
|
this.Kd(),this.Hi(h.local,2),f.push(this.Ca(h,"ImportNamespaceSpecifier")),f;for(this.$b(ta.Ug);!this.ma(ta.bg);){if(e)e=!1;else if(this.$b(ta.Wd),this.Rr(ta.bg))break;h=this.startNode();h.imported=this.Kd(!0);this.Lp("as")?h.local=this.Kd():(this.fB(h.imported),h.local=h.imported);this.Hi(h.local,2);f.push(this.Ca(h,"ImportSpecifier"))}return f};xa.sQ=function(f){for(var e=0;e<f.length&&this.pda(f[e]);++e)f[e].qoa=f[e].expression.raw.slice(1,-1)};xa.pda=function(f){return"ExpressionStatement"===
|
|
f.type&&"Literal"===f.expression.type&&"string"==typeof f.expression.value&&('"'===this.input[f.start]||"'"===this.input[f.start])};za=z.prototype;za.Jo=function(f,e,h){if(6<=this.options.pa&&f)switch(f.type){case "Identifier":this.Ws&&"await"===f.name&&this.sa(f.start,"Cannot use 'await' as identifier inside an async function");break;case "ObjectPattern":case "ArrayPattern":case "AssignmentPattern":case "RestElement":break;case "ObjectExpression":f.type="ObjectPattern";h&&this.Lv(h,!0);h=0;for(var n=
|
|
f.properties;h<n.length;h+=1){var r=n[h];this.Jo(r,e);"RestElement"!==r.type||"ArrayPattern"!==r.argument.type&&"ObjectPattern"!==r.argument.type||this.sa(r.argument.start,"Unexpected token")}break;case "Property":"init"!==f.kind&&this.sa(f.key.start,"Object pattern can't contain getter or setter");this.Jo(f.value,e);break;case "ArrayExpression":f.type="ArrayPattern";h&&this.Lv(h,!0);this.LZ(f.elements,e);break;case "SpreadElement":f.type="RestElement";this.Jo(f.argument,e);"AssignmentPattern"===
|
|
f.argument.type&&this.sa(f.argument.start,"Rest elements cannot have a default value");break;case "AssignmentExpression":"="!==f.operator&&this.sa(f.left.end,"Only '=' operator can be used for specifying default value.");f.type="AssignmentPattern";delete f.operator;this.Jo(f.left,e);break;case "ParenthesizedExpression":this.Jo(f.expression,e,h);break;case "ChainExpression":this.Za(f.start,"Optional chaining cannot appear in left-hand side");break;case "MemberExpression":if(!e)break;default:this.sa(f.start,
|
|
"Assigning to rvalue")}else h&&this.Lv(h,!0);return f};za.LZ=function(f,e){for(var h,n=f.length,r=0;r<n;r++){var w=f[r];w&&this.Jo(w,e)}return n&&(h=f[n-1],6===this.options.pa&&e&&h&&"RestElement"===h.type&&"Identifier"!==h.argument.type&&this.ob(h.argument.start)),f};za.Wfa=function(f){var e=this.startNode();return this.next(),e.argument=this.ye(!1,f),this.Ca(e,"SpreadElement")};za.LW=function(){var f=this.startNode();return this.next(),6===this.options.pa&&this.type!==ta.name&&this.ob(),f.argument=
|
|
this.PD(),this.Ca(f,"RestElement")};za.PD=function(){if(6<=this.options.pa)switch(this.type){case ta.vp:var f=this.startNode();return this.next(),f.elements=this.$K(ta.Bv,!0,!0),this.Ca(f,"ArrayPattern");case ta.Ug:return this.JW(!0)}return this.Kd()};za.$K=function(f,e,h){for(var n=[],r=!0;!this.ma(f);)if(r?r=!1:this.$b(ta.Wd),e&&this.type===ta.Wd)n.push(null);else{if(h&&this.Rr(f))break;if(this.type===ta.cw){var w=this.LW();n.push(w);this.type===ta.Wd&&this.sa(this.start,"Comma is not permitted after the rest element");
|
|
this.$b(f);break}w=this.SD(this.start,this.Ld);n.push(w)}return n};za.Ipa=function(f){return f};za.SD=function(f,e,h){if(h=h||this.PD(),6>this.options.pa||!this.ma(ta.eq))return h;e=this.Ae(f,e);return e.left=h,e.right=this.ye(),this.Ca(e,"AssignmentPattern")};za.Hi=function(f,e,h){void 0===e&&(e=0);var n=0!==e;switch(f.type){case "Identifier":this.strict&&this.gia.test(f.name)&&this.Za(f.start,(n?"Binding ":"Assigning to ")+f.name+" in strict mode");n&&(2===e&&"let"===f.name&&this.Za(f.start,"let is disallowed as a lexically bound name"),
|
|
h&&(wa.call(h,f.name)&&this.Za(f.start,"Argument name clash"),h[f.name]=!0),5!==e&&this.a7(f.name,e,f.start));break;case "ChainExpression":this.Za(f.start,"Optional chaining cannot appear in left-hand side");break;case "MemberExpression":n&&this.Za(f.start,"Binding member expression");break;case "ParenthesizedExpression":return n&&this.Za(f.start,"Binding parenthesized expression"),this.Hi(f.expression,e,h);default:this.sa(f.start,(n?"Binding":"Assigning to")+" rvalue")}};za.yp=function(f,e,h){switch(void 0===
|
|
e&&(e=0),f.type){case "ObjectPattern":var n=0;for(f=f.properties;n<f.length;n+=1)this.eB(f[n],e,h);break;case "ArrayPattern":n=0;for(f=f.elements;n<f.length;n+=1){var r=f[n];r&&this.eB(r,e,h)}break;default:this.Hi(f,e,h)}};za.eB=function(f,e,h){switch(void 0===e&&(e=0),f.type){case "Property":this.eB(f.value,e,h);break;case "AssignmentPattern":this.yp(f.left,e,h);break;case "RestElement":this.yp(f.argument,e,h);break;default:this.yp(f,e,h)}};Ea=z.prototype;Ea.Q5=function(f,e,h){if(!(9<=this.options.pa&&
|
|
"SpreadElement"===f.type||6<=this.options.pa&&(f.computed||f.method||f.shorthand))){var n=f.key;switch(n.type){case "Identifier":var r=n.name;break;case "Literal":r=String(n.value);break;default:return}f=f.kind;6<=this.options.pa?"__proto__"===r&&"init"===f&&(e.qL&&(h?0>h.IB&&(h.IB=n.start):this.Za(n.start,"Redefinition of __proto__ property")),e.qL=!0):((h=e[r="$"+r])?("init"===f?this.strict&&h.init||h.get||h.set:h.init||h[f])&&this.Za(n.start,"Redefinition of property"):h=e[r]={init:!1,get:!1,set:!1},
|
|
h[f]=!0)}};Ea.ih=function(f,e){var h=this.start,n=this.Ld,r=this.ye(f,e);if(this.type!==ta.Wd)return r;h=this.Ae(h,n);for(h.expressions=[r];this.ma(ta.Wd);)h.expressions.push(this.ye(f,e));return this.Ca(h,"SequenceExpression")};Ea.ye=function(f,e,h){if(this.Zl("yield")){if(this.RJ)return this.fga(f);this.mf=!1}var n=!1,r=-1,w=-1;e?(r=e.hj,w=e.Ok,e.hj=e.Ok=-1):(e=new fa,n=!0);var z=this.start,y=this.Ld;this.type!==ta.xe&&this.type!==ta.name||(this.lL=this.start);var x=this.Mfa(f,e);return(h&&(x=h.call(this,
|
|
x,z,y)),this.type.YC)?(y=this.Ae(z,y),y.operator=this.value,this.type===ta.eq&&(x=this.Jo(x,!1,e)),n||(e.hj=e.Ok=e.IB=-1),e.ty>=x.start&&(e.ty=-1),this.type===ta.eq?this.yp(x):this.Hi(x),y.left=x,this.next(),y.right=this.ye(f),this.Ca(y,"AssignmentExpression")):(n&&this.Cn(e,!0),-1<r&&(e.hj=r),-1<w&&(e.Ok=w),x)};Ea.Mfa=function(f,e){var h=this.start,n=this.Ld,r=this.Cfa(f,e);return this.Cn(e)?r:this.ma(ta.gX)?(n=this.Ae(h,n),n.test=r,n.consequent=this.ye(),this.$b(ta.En),n.alternate=this.ye(f),this.Ca(n,
|
|
"ConditionalExpression")):r};Ea.Cfa=function(f,e){var h=this.start,n=this.Ld,r=this.Mx(e,!1);return this.Cn(e)||r.start===h&&"ArrowFunctionExpression"===r.type?r:this.cL(r,h,n,-1,f)};Ea.cL=function(f,e,h,n,r){var w=this.type.up;if(null==w||r&&this.type===ta.Zm||!(n<w))return f;var z=this.type===ta.DK||this.type===ta.sD,y=this.type===ta.BH;y&&(w=ta.sD.up);var fa=this.value;this.next();var x=this.start,aa=this.Ld;w=this.cL(this.Mx(null,!1),x,aa,w,r);fa=this.dR(e,h,f,w,fa,z||y);return(z&&this.type===
|
|
ta.BH||y&&(this.type===ta.DK||this.type===ta.sD))&&this.Za(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.cL(fa,e,h,n,r)};Ea.dR=function(f,e,h,n,r,w){e=this.Ae(f,e);return e.left=h,e.operator=r,e.right=n,this.Ca(e,w?"LogicalExpression":"BinaryExpression")};Ea.Mx=function(f,e){var h=this.start,n=this.Ld;if(this.Zl("await")&&(this.Ws||!this.PC&&this.options.GQ)){var r=this.ofa();e=!0}else if(this.type.prefix){r=this.startNode();var w=this.type===
|
|
ta.SJ;r.operator=this.value;r.prefix=!0;this.next();r.argument=this.Mx(null,!0);this.Cn(f,!0);w?this.Hi(r.argument):this.strict&&"delete"===r.operator&&"Identifier"===r.argument.type?this.Za(r.start,"Deleting local variable in strict mode"):e=!0;r=this.Ca(r,w?"UpdateExpression":"UnaryExpression")}else{if(r=this.AW(f),this.Cn(f))return r;for(;this.type.kL&&!this.Uj();)f=this.Ae(h,n),f.operator=this.value,f.prefix=!1,f.argument=r,this.Hi(r),this.next(),r=this.Ca(f,"UpdateExpression")}return!e&&this.ma(ta.tZ)?
|
|
this.dR(h,n,r,this.Mx(null,!1),"**",!1):r};Ea.AW=function(f){var e=this.start,h=this.Ld,n=this.Iq(f);if("ArrowFunctionExpression"===n.type&&")"!==this.input.slice(this.aj,this.Jf))return n;h=this.MW(n,e,h);return f&&"MemberExpression"===h.type&&(f.hj>=h.start&&(f.hj=-1),f.Hq>=h.start&&(f.Hq=-1)),h};Ea.MW=function(f,e,h,n){for(var r=8<=this.options.pa&&"Identifier"===f.type&&"async"===f.name&&this.Jf===f.end&&!this.Uj()&&5==f.end-f.start&&this.lL===f.start,w=!1;;){var z,y=this.Xfa(f,e,h,n,r,w);if(y.optional&&
|
|
(w=!0),y===f||"ArrowFunctionExpression"===y.type)return w&&((z=this.Ae(e,h)).expression=y,y=this.Ca(z,"ChainExpression")),y;f=y}};Ea.Xfa=function(f,e,h,n,r,w){var z=11<=this.options.pa,y=z&&this.ma(ta.hX);n&&y&&this.sa(this.aj,"Optional chaining cannot appear in the callee of new expressions");var x=this.ma(ta.vp);if(x||y&&this.type!==ta.xe&&this.type!==ta.tp||this.ma(ta.Kb))w=this.Ae(e,h),w.object=f,w.property=x?this.ih():this.Kd("never"!==this.options.vv),w.computed=!!x,x&&this.$b(ta.Bv),z&&(w.optional=
|
|
y),f=this.Ca(w,"MemberExpression");else if(!n&&this.ma(ta.xe)){var aa=new fa,ja=this.ed;x=this.Pc;w=this.Ud;this.Ud=this.Pc=this.ed=0;n=this.bL(ta.Se,8<=this.options.pa,!1,aa);if(r&&!y&&!this.Uj()&&this.ma(ta.Vr))return this.Lv(aa,!1),this.gB(),0<this.Ud&&this.sa(this.Ud,"Cannot use 'await' as identifier inside an async function"),this.ed=ja,this.Pc=x,this.Ud=w,this.OD(this.Ae(e,h),n,!0);this.Cn(aa,!0);this.ed=ja||this.ed;this.Pc=x||this.Pc;this.Ud=w||this.Ud;w=this.Ae(e,h);w.callee=f;w.arguments=
|
|
n;z&&(w.optional=y);f=this.Ca(w,"CallExpression")}else this.type===ta.tp&&((y||w)&&this.sa(this.start,"Optional chaining cannot appear in the tag of tagged template expressions"),(h=this.Ae(e,h)).tag=f,h.quasi=this.NW({fD:!0}),f=this.Ca(h,"TaggedTemplateExpression"));return f};Ea.Iq=function(f){this.type===ta.oZ&&this.nX();var e=this.lL===this.start;switch(this.type){case ta.U3:return this.JQ||this.sa(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==ta.xe||
|
|
this.HQ||this.sa(r.start,"super() call outside constructor of a subclass"),this.type!==ta.Kb&&this.type!==ta.vp&&this.type!==ta.xe&&this.ob(),this.Ca(r,"Super");case ta.W3:return r=this.startNode(),this.next(),this.Ca(r,"ThisExpression");case ta.name:f=this.start;var h=this.Ld,n=this.Li;r=this.Kd(!1);if(8<=this.options.pa&&!n&&"async"===r.name&&!this.Uj()&&this.ma(ta.Ar))return this.RD(this.Ae(f,h),0,!1,!0);if(e&&!this.Uj()){if(this.ma(ta.Vr))return this.OD(this.Ae(f,h),[r],!1);if(8<=this.options.pa&&
|
|
"async"===r.name&&this.type===ta.name&&!n)return r=this.Kd(!1),!this.Uj()&&this.ma(ta.Vr)||this.ob(),this.OD(this.Ae(f,h),[r],!0)}return r;case ta.uX:var r;e=this.value;return(r=this.IW(e.value)).regex={pattern:e.pattern,flags:e.flags},r;case ta.wt:case ta.string:return this.IW(this.value);case ta.QP:case ta.qQ:case ta.Z2:return(r=this.startNode()).value=this.type===ta.QP?null:this.type===ta.qQ,r.raw=this.type.ug,this.next(),this.Ca(r,"Literal");case ta.xe:return r=this.start,e=this.Qfa(e),f&&(0>
|
|
f.hj&&!this.iV(e)&&(f.hj=r),0>f.Hq&&(f.Hq=r)),e;case ta.vp:return r=this.startNode(),this.next(),r.elements=this.bL(ta.Bv,!0,!0,f),this.Ca(r,"ArrayExpression");case ta.Ug:return this.JW(!1,f);case ta.Ar:return r=this.startNode(),this.next(),this.RD(r,0);case ta.Lz:return this.aL(this.startNode(),!1);case ta.F3:return this.Nfa();case ta.tp:return this.NW();case ta.av:return 11<=this.options.pa?this.Bfa():this.ob();default:this.ob()}};Ea.Bfa=function(){var f=this.startNode();this.Li&&this.Za(this.start,
|
|
"Escape sequence in keyword import");var e=this.Kd(!0);switch(this.type){case ta.xe:return this.xfa(f);case ta.Kb:return f.meta=e,this.Jfa(f);default:this.ob()}};Ea.xfa=function(f){var e;return this.next(),f.source=this.ye(),this.ma(ta.Se)||(e=this.start,this.ma(ta.Wd)&&this.ma(ta.Se)?this.Za(e,"Trailing comma is not allowed in import()"):this.ob(e)),this.Ca(f,"ImportExpression")};Ea.Jfa=function(f){this.next();var e=this.Li;return f.property=this.Kd(!0),"meta"!==f.property.name&&this.Za(f.property.start,
|
|
"The only valid meta property for import is 'import.meta'"),e&&this.Za(f.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.eu&&this.Za(f.start,"Cannot use 'import.meta' outside a module"),this.Ca(f,"MetaProperty")};Ea.IW=function(f){var e=this.startNode();return e.value=f,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.Ca(e,"Literal")};Ea.Et=function(){this.$b(ta.xe);
|
|
var f=this.ih();return this.$b(ta.Se),f};Ea.Qfa=function(f){var e,h=this.start,n=this.Ld,r=8<=this.options.pa;if(6<=this.options.pa){this.next();var w=this.start,z=this.Ld,y=[],x=!0,aa=!1,ja=new fa,da=this.ed,ka=this.Pc;for(this.Pc=this.ed=0;this.type!==ta.Se;){if(x?x=!1:this.$b(ta.Wd),r&&this.Rr(ta.Se,!0)){aa=!0;break}if(this.type===ta.cw){var ca=this.start;y.push(this.KW(this.LW()));this.type===ta.Wd&&this.sa(this.start,"Comma is not permitted after the rest element");break}y.push(this.ye(!1,ja,
|
|
this.KW))}r=this.start;x=this.Ld;if(this.$b(ta.Se),f&&!this.Uj()&&this.ma(ta.Vr))return this.Lv(ja,!1),this.gB(),this.ed=da,this.Pc=ka,this.Rfa(h,n,y);y.length&&!aa||this.ob(this.aj);ca&&this.ob(ca);this.Cn(ja,!0);this.ed=da||this.ed;this.Pc=ka||this.Pc;1<y.length?((e=this.Ae(w,z)).expressions=y,this.w$(e,r,x)):e=y[0]}else e=this.Et();return this.options.uga?(n=this.Ae(h,n),n.expression=e,this.Ca(n,"ParenthesizedExpression")):e};Ea.KW=function(f){return f};Ea.Rfa=function(f,e,h){return this.OD(this.Ae(f,
|
|
e),h)};var Fb=[];Ea.Nfa=function(){this.Li&&this.Za(this.start,"Escape sequence in keyword new");var f=this.startNode(),e=this.Kd(!0);if(6<=this.options.pa&&this.ma(ta.Kb)){f.meta=e;var h=this.Li;return f.property=this.Kd(!0),"target"!==f.property.name&&this.Za(f.property.start,"The only valid meta property for new is 'new.target'"),h&&this.Za(f.start,"'new.target' must not contain escaped characters"),this.zU||this.Za(f.start,"'new.target' can only be used in functions"),this.Ca(f,"MetaProperty")}var n=
|
|
this.start;e=this.Ld;h=this.type===ta.av;return f.callee=this.MW(this.Iq(),n,e,!0),h&&"ImportExpression"===f.callee.type&&this.sa(n,"Cannot use new with import()"),this.ma(ta.xe)?f.arguments=this.bL(ta.Se,8<=this.options.pa,!1):f.arguments=Fb,this.Ca(f,"NewExpression")};Ea.OW=function(f){var e=f.fD;f=this.startNode();return this.type===ta.XJ?(e||this.Za(this.start,"Bad escape sequence in untagged template literal"),f.value={raw:this.value,y6:null}):f.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,
|
|
"\n"),y6:this.value},this.next(),f.tail=this.type===ta.tp,this.Ca(f,"TemplateElement")};Ea.NW=function(f){void 0===f&&(f={});f=f.fD;void 0===f&&(f=!1);var e=this.startNode();this.next();e.expressions=[];var h=this.OW({fD:f});for(e.quasis=[h];!h.tail;)this.type===ta.Op&&this.sa(this.da,"Unterminated template literal"),this.$b(ta.XH),e.expressions.push(this.ih()),this.$b(ta.bg),e.quasis.push(h=this.OW({fD:f}));return this.next(),this.Ca(e,"TemplateLiteral")};Ea.lda=function(f){return!f.computed&&"Identifier"===
|
|
f.key.type&&"async"===f.key.name&&(this.type===ta.name||this.type===ta.wt||this.type===ta.string||this.type===ta.vp||this.type.ug||9<=this.options.pa&&this.type===ta.vh)&&!Ha.test(this.input.slice(this.Jf,this.start))};Ea.JW=function(f,e){var h=this.startNode(),n=!0,r={};h.properties=[];for(this.next();!this.ma(ta.bg);){if(n)n=!1;else if(this.$b(ta.Wd),5<=this.options.pa&&this.Rr(ta.bg))break;var w=this.Sfa(f,e);f||this.Q5(w,r,e);h.properties.push(w)}return this.Ca(h,f?"ObjectPattern":"ObjectExpression")};
|
|
Ea.Sfa=function(f,e){var h,n,r,w,z=this.startNode();if(9<=this.options.pa&&this.ma(ta.cw))return f?(z.argument=this.Kd(!1),this.type===ta.Wd&&this.sa(this.start,"Comma is not permitted after the rest element"),this.Ca(z,"RestElement")):(this.type===ta.xe&&e&&(0>e.hj&&(e.hj=this.start),0>e.Hq&&(e.Hq=this.start)),z.argument=this.ye(!1,e),this.type===ta.Wd&&e&&0>e.Ok&&(e.Ok=this.start),this.Ca(z,"SpreadElement"));6<=this.options.pa&&(z.method=!1,z.shorthand=!1,(f||e)&&(r=this.start,w=this.Ld),f||(h=
|
|
this.ma(ta.vh)));var y=this.Li;return this.TD(z),!f&&!y&&8<=this.options.pa&&!h&&this.lda(z)?(n=!0,h=9<=this.options.pa&&this.ma(ta.vh),this.TD(z)):n=!1,this.Tfa(z,f,h,n,r,w,e,y),this.Ca(z,"Property")};Ea.Tfa=function(f,e,h,n,r,w,z,y){(h||n)&&this.type===ta.En&&this.ob();this.ma(ta.En)?(f.value=e?this.SD(this.start,this.Ld):this.ye(!1,z),f.kind="init"):6<=this.options.pa&&this.type===ta.xe?(e&&this.ob(),f.kind="init",f.method=!0,f.value=this.gL(h,n)):e||y||!(5<=this.options.pa)||f.computed||"Identifier"!==
|
|
f.key.type||"get"!==f.key.name&&"set"!==f.key.name||this.type===ta.Wd||this.type===ta.bg||this.type===ta.eq?6<=this.options.pa&&!f.computed&&"Identifier"===f.key.type?((h||n)&&this.ob(),this.fB(f.key),"await"!==f.key.name||this.Ud||(this.Ud=r),f.kind="init",e?f.value=this.SD(r,w,this.EH(f.key)):this.type===ta.eq&&z?(0>z.ty&&(z.ty=this.start),f.value=this.SD(r,w,this.EH(f.key))):f.value=this.EH(f.key),f.shorthand=!0):this.ob():((h||n)&&this.ob(),f.kind=f.key.name,this.TD(f),f.value=this.gL(!1),n="get"===
|
|
f.kind?0:1,f.value.params.length!==n?(n=f.value.start,"get"===f.kind?this.Za(n,"getter should have no params"):this.Za(n,"setter should have exactly one param")):"set"===f.kind&&"RestElement"===f.value.params[0].type&&this.Za(f.value.params[0].start,"Setter cannot use rest params"))};Ea.TD=function(f){if(6<=this.options.pa){if(this.ma(ta.vp)){f.computed=!0;f.key=this.ye();this.$b(ta.Bv);return}f.computed=!1}f.key=this.type===ta.wt||this.type===ta.string?this.Iq():this.Kd("never"!==this.options.vv)};
|
|
Ea.VJ=function(f){f.id=null;6<=this.options.pa&&(f.generator=f.expression=!1);8<=this.options.pa&&(f.async=!1)};Ea.gL=function(f,e,h){var n=this.startNode(),r=this.ed,w=this.Pc,z=this.Ud;return this.VJ(n),6<=this.options.pa&&(n.generator=f),8<=this.options.pa&&(n.async=!!e),this.ed=0,this.Pc=0,this.Ud=0,this.Cl(66|(e?4:0)|(n.generator?8:0)|(h?128:0)),this.$b(ta.xe),n.params=this.$K(ta.Se,!1,8<=this.options.pa),this.gB(),this.fL(n,!1,!0),this.ed=r,this.Pc=w,this.Ud=z,this.Ca(n,"FunctionExpression")};
|
|
Ea.OD=function(f,e,h){var n=this.ed,r=this.Pc,w=this.Ud;return this.Cl((h?4:0)|18),this.VJ(f),8<=this.options.pa&&(f.async=!!h),this.ed=0,this.Pc=0,this.Ud=0,f.params=this.LZ(e,!0),this.fL(f,!0,!1),this.ed=n,this.Pc=r,this.Ud=w,this.Ca(f,"ArrowFunctionExpression")};Ea.fL=function(f,e,h){var n=e&&this.type!==ta.Ug,r=this.strict,w=!1;n?(f.body=this.ye(),f.expression=!0,this.nR(f,!1)):(n=7<=this.options.pa&&!this.jV(f.params),r&&!n||(w=this.yZ(this.end))&&n&&this.Za(f.start,"Illegal 'use strict' directive in function with non-simple parameter list"),
|
|
n=this.labels,this.labels=[],w&&(this.strict=!0),this.nR(f,!r&&!w&&!e&&!h&&this.jV(f.params)),this.strict&&f.id&&this.Hi(f.id,5),f.body=this.Kx(!1,void 0,w&&!r),f.expression=!1,this.sQ(f.body.body),this.labels=n);this.zs()};Ea.jV=function(f){for(var e=0;e<f.length;e+=1)if("Identifier"!==f[e].type)return!1;return!0};Ea.nR=function(f,e){var h={},n=0;for(f=f.params;n<f.length;n+=1)this.eB(f[n],1,e?null:h)};Ea.bL=function(f,e,h,n){for(var r=[],w=!0;!this.ma(f);){if(w)w=!1;else if(this.$b(ta.Wd),e&&this.Rr(f))break;
|
|
var z=void 0;h&&this.type===ta.Wd?z=null:this.type===ta.cw?(z=this.Wfa(n),n&&this.type===ta.Wd&&0>n.Ok&&(n.Ok=this.start)):z=this.ye(!1,n);r.push(z)}return r};Ea.fB=function(f){var e=f.start,h=f.end;f=f.name;this.RJ&&"yield"===f&&this.Za(e,"Cannot use 'yield' as identifier inside a generator");this.Ws&&"await"===f&&this.Za(e,"Cannot use 'await' as identifier inside an async function");this.sV.test(f)&&this.sa(e,"Unexpected keyword '"+f+"'");6>this.options.pa&&-1!==this.input.slice(e,h).indexOf("\\")||
|
|
(this.strict?this.fia:this.eia).test(f)&&(this.Ws||"await"!==f||this.Za(e,"Cannot use keyword 'await' outside an async function"),this.Za(e,"The keyword '"+f+"' is reserved"))};Ea.Kd=function(f){var e=this.startNode();return this.type===ta.name?e.name=this.value:this.type.ug?(e.name=this.type.ug,"class"!==e.name&&"function"!==e.name||this.Jf===this.aj+1&&46===this.input.charCodeAt(this.aj)||this.context.pop()):this.ob(),this.next(!!f),this.Ca(e,"Identifier"),f||(this.fB(e),"await"!==e.name||this.Ud||
|
|
(this.Ud=e.start)),e};Ea.fga=function(f){this.ed||(this.ed=this.start);var e=this.startNode();return this.next(),this.type===ta.Dg||this.Uj()||this.type!==ta.vh&&!this.type.Fg?(e.delegate=!1,e.argument=null):(e.delegate=this.ma(ta.vh),e.argument=this.ye(f)),this.Ca(e,"YieldExpression")};Ea.ofa=function(){this.Pc||(this.Pc=this.start);var f=this.startNode();return this.next(),f.argument=this.Mx(null,!0),this.Ca(f,"AwaitExpression")};za=z.prototype;za.sa=function(e,h){var n=f(this.input,e);h+=" ("+
|
|
n.line+":"+n.column+")";h=new SyntaxError(h);throw h.da=e,h.loc=n,h.Upa=this.da,h;};za.Za=za.sa;za.Fp=function(){if(this.options.Ne)return new h(this.gs,this.da-this.wq)};xa=z.prototype;xa.Cl=function(f){this.fi.push(new ka(f))};xa.zs=function(){this.fi.pop()};xa.XZ=function(f){return 2&f.flags||!this.io&&1&f.flags};xa.a7=function(f,e,h){var n=!1;if(2===e)e=this.rB(),n=-1<e.mo.indexOf(f)||-1<e.functions.indexOf(f)||-1<e.fF.indexOf(f),e.mo.push(f),this.io&&1&e.flags&&delete this.Ny[f];else if(4===
|
|
e)this.rB().mo.push(f);else if(3===e)e=this.rB(),n=this.ZM?-1<e.mo.indexOf(f):-1<e.mo.indexOf(f)||-1<e.fF.indexOf(f),e.functions.push(f);else for(e=this.fi.length-1;0<=e;--e){var r=this.fi[e];if(-1<r.mo.indexOf(f)&&!(32&r.flags&&r.mo[0]===f)||!this.XZ(r)&&-1<r.functions.indexOf(f)){n=!0;break}if(r.fF.push(f),this.io&&1&r.flags&&delete this.Ny[f],3&r.flags)break}n&&this.Za(h,"Identifier '"+f+"' has already been declared")};xa.P5=function(f){-1===this.fi[0].mo.indexOf(f.name)&&-1===this.fi[0].fF.indexOf(f.name)&&
|
|
(this.Ny[f.name]=f)};xa.rB=function(){return this.fi[this.fi.length-1]};xa.MH=function(){for(var f=this.fi.length-1;;f--){var e=this.fi[f];if(3&e.flags)return e}};xa.LH=function(){for(var f=this.fi.length-1;;f--){var e=this.fi[f];if(3&e.flags&&!(16&e.flags))return e}};za=z.prototype;za.startNode=function(){return new ja(this,this.start,this.Ld)};za.Ae=function(f,e){return new ja(this,f,e)};za.Ca=function(f,e){return ba.call(this,f,e,this.Jf,this.vK)};za.w$=function(f,e,h){ba.call(this,f,"SequenceExpression",
|
|
e,h)};Ea=function(f,e,h,n,r){this.SZ=f;this.VU=!!e;this.vga=!!h;this.rW=n;this.generator=!!r};var Za={Yr:new Ea("{",!(za.EH=function(f){var e,h=new ja(this,f.start,this.Ld);for(e in f)h[e]=f[e];return h})),WQ:new Ea("{",!0),d5:new Ea("${",!1),tW:new Ea("(",!1),hfa:new Ea("(",!0),fX:new Ea("`",!0,!0,function(f){return f.Ela()}),zS:new Ea("function",!1),pI:new Ea("function",!0),k$:new Ea("function",!0,!1,null,!0),l$:new Ea("function",!1,!1,null,!0)};za=z.prototype;za.ada=function(){return[Za.Yr]};za.p5=
|
|
function(f){var e=this.fs();return e===Za.pI||e===Za.zS||(f!==ta.En||e!==Za.Yr&&e!==Za.WQ?f===ta.IG||f===ta.name&&this.mf?Ha.test(this.input.slice(this.Jf,this.start)):f===ta.cG||f===ta.Dg||f===ta.Op||f===ta.Se||f===ta.Vr||(f===ta.Ug?e===Za.Yr:f!==ta.HA&&f!==ta.UF&&f!==ta.name&&!this.mf):!e.VU)};za.Vca=function(){for(var f=this.context.length-1;1<=f;f--){var e=this.context[f];if("function"===e.SZ)return e.generator}return!1};za.Hg=function(f){var e,h=this.type;h.ug&&f===ta.Kb?this.mf=!1:(e=h.Hg)?
|
|
e.call(this,f):this.mf=h.Bd};ta.Se.Hg=ta.bg.Hg=function(){var f;1!==this.context.length?((f=this.context.pop())===Za.Yr&&"function"===this.fs().SZ&&(f=this.context.pop()),this.mf=!f.VU):this.mf=!0};ta.Ug.Hg=function(f){this.context.push(this.p5(f)?Za.Yr:Za.WQ);this.mf=!0};ta.XH.Hg=function(){this.context.push(Za.d5);this.mf=!0};ta.xe.Hg=function(f){f=f===ta.vP||f===ta.lP||f===ta.rQ||f===ta.SG;this.context.push(f?Za.tW:Za.hfa);this.mf=!0};ta.SJ.Hg=function(){};ta.Ar.Hg=ta.Lz.Hg=function(f){!f.Bd||
|
|
f===ta.cG||f===ta.Dg&&this.fs()!==Za.tW||f===ta.IG&&Ha.test(this.input.slice(this.Jf,this.start))||(f===ta.En||f===ta.Ug)&&this.fs()===Za.Yr?this.context.push(Za.zS):this.context.push(Za.pI);this.mf=!1};ta.tp.Hg=function(){this.fs()===Za.fX?this.context.pop():this.context.push(Za.fX);this.mf=!1};ta.vh.Hg=function(f){f===ta.Ar&&(f=this.context.length-1,this.context[f]===Za.pI?this.context[f]=Za.k$:this.context[f]=Za.l$);this.mf=!0};ta.name.Hg=function(f){var e=!1;6<=this.options.pa&&f!==ta.Kb&&("of"===
|
|
this.value&&!this.mf||"yield"===this.value&&this.Vca())&&(e=!0);this.mf=e};xa="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS";
|
|
za=xa+" Extended_Pictographic";var Hc={9:xa,10:za,11:za,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"};
|
|
za="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb";
|
|
xa=za+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";var Gb={9:za,10:xa,11:xa+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},
|
|
Ub={};ma(9);ma(10);ma(11);ma(12);za=z.prototype;la.prototype.reset=function(f,e,h){var n=-1!==h.indexOf("u");this.start=0|f;this.source=e+"";this.flags=h;this.Xe=n&&6<=this.hL.options.pa;this.Fy=n&&9<=this.hL.options.pa};la.prototype.sa=function(f){this.hL.Za(this.start,"Invalid regular expression: /"+this.source+"/: "+f)};la.prototype.at=function(f,e){void 0===e&&(e=!1);var h=this.source,n=h.length;if(n<=f)return-1;var r=h.charCodeAt(f);if(!e&&!this.Xe||55295>=r||57344<=r||n<=f+1)return r;f=h.charCodeAt(f+
|
|
1);return 56320<=f&&57343>=f?(r<<10)+f-56613888:r};la.prototype.XV=function(f,e){void 0===e&&(e=!1);var h=this.source,n=h.length;if(n<=f)return n;var r,w=h.charCodeAt(f);return!e&&!this.Xe||55295>=w||57344<=w||n<=f+1||56320>(r=h.charCodeAt(f+1))||57343<r?f+1:f+2};la.prototype.current=function(f){return void 0===f&&(f=!1),this.at(this.da,f)};la.prototype.Fa=function(f){return void 0===f&&(f=!1),this.at(this.XV(this.da,f),f)};la.prototype.advance=function(f){void 0===f&&(f=!1);this.da=this.XV(this.da,
|
|
f)};la.prototype.ma=function(f){var e;return void 0===e&&(e=!1),this.current(e)===f&&(this.advance(e),!0)};za.hma=function(f){for(var e=f.fma,h=f.flags,n=0;n<h.length;n++){var r=h.charAt(n);-1===e.indexOf(r)&&this.sa(f.start,"Invalid regular expression flag");-1<h.indexOf(r,n+1)&&this.sa(f.start,"Duplicate regular expression flag")}};za.ima=function(f){this.IX(f);!f.Fy&&9<=this.options.pa&&0<f.Tw.length&&(f.Fy=!0,this.IX(f))};za.IX=function(f){f.da=0;f.Na=0;f.Hd="";f.mD=!1;f.yx=0;f.tD=0;f.Tw.length=
|
|
0;f.jH.length=0;this.dE(f);f.da!==f.source.length&&(f.ma(41)&&f.sa("Unmatched ')'"),(f.ma(93)||f.ma(125))&&f.sa("Lone quantifier brackets"));f.tD>f.yx&&f.sa("Invalid escape");for(var e=0,h=f.jH;e<h.length;e+=1)-1===f.Tw.indexOf(h[e])&&f.sa("Invalid named capture referenced")};za.dE=function(f){for(this.wX(f);f.ma(124);)this.wX(f);this.EL(f,!0)&&f.sa("Nothing to repeat");f.ma(123)&&f.sa("Lone quantifier brackets")};za.wX=function(f){for(;f.da<f.source.length&&this.Eha(f););};za.Eha=function(f){return this.fha(f)?
|
|
(f.mD&&this.EL(f)&&f.Xe&&f.sa("Invalid quantifier"),!0):!(f.Xe?!this.gha(f):!this.pha(f))&&(this.EL(f),!0)};za.fha=function(f){var e=f.da;if(f.mD=!1,f.ma(94)||f.ma(36))return!0;if(f.ma(92)){if(f.ma(66)||f.ma(98))return!0;f.da=e}if(f.ma(40)&&f.ma(63)){var h=!1;if(9<=this.options.pa&&(h=f.ma(60)),f.ma(61)||f.ma(33))return this.dE(f),f.ma(41)||f.sa("Unterminated group"),f.mD=!h,!0}return f.da=e,!1};za.EL=function(f,e){return void 0===e&&(e=!1),!!this.zha(f,e)&&(f.ma(63),!0)};za.zha=function(f,e){return f.ma(42)||
|
|
f.ma(43)||f.ma(63)||this.xX(f,e)};za.xX=function(f,e){var h=f.da;if(f.ma(123)){var n,r=-1;if(this.DX(f)&&(n=f.Na,f.ma(44)&&this.DX(f)&&(r=f.Na),f.ma(125)))return-1!==r&&r<n&&!e&&f.sa("numbers out of order in {} quantifier"),!0;f.Xe&&!e&&f.sa("Incomplete quantifier");f.da=h}return!1};za.gha=function(f){return this.yha(f)||f.ma(46)||this.FX(f)||this.zX(f)||this.GX(f)||this.yX(f)};za.FX=function(f){var e=f.da;if(f.ma(92)){if(this.hha(f))return!0;f.da=e}return!1};za.GX=function(f){var e=f.da;if(f.ma(40)){if(f.ma(63)&&
|
|
f.ma(58)){if(this.dE(f),f.ma(41))return!0;f.sa("Unterminated group")}f.da=e}return!1};za.yX=function(f){if(f.ma(40)){if(9<=this.options.pa?this.Iha(f):63===f.current()&&f.sa("Invalid group"),this.dE(f),f.ma(41))return f.yx+=1,!0;f.sa("Unterminated group")}return!1};za.pha=function(f){return f.ma(46)||this.FX(f)||this.zX(f)||this.GX(f)||this.yX(f)||this.uha(f)||this.qha(f)};za.uha=function(f){return this.xX(f,!0)&&f.sa("Nothing to repeat"),!1};za.Dha=function(f){var e=f.current();return!!ra(e)&&(f.Na=
|
|
e,f.advance(),!0)};za.yha=function(f){for(var e,h=f.da;-1!==(e=f.current())&&!ra(e);)f.advance();return f.da!==h};za.qha=function(f){var e=f.current();return!(-1===e||36===e||40<=e&&43>=e||46===e||63===e||91===e||94===e||124===e)&&(f.advance(),!0)};za.Iha=function(f){f.ma(63)&&(this.EX(f)?(-1!==f.Tw.indexOf(f.Hd)&&f.sa("Duplicate capture group name"),f.Tw.push(f.Hd)):f.sa("Invalid group"))};za.EX=function(f){if(f.Hd="",f.ma(60)){if(this.Aha(f)&&f.ma(62))return!0;f.sa("Invalid capture group name")}return!1};
|
|
za.Aha=function(f){if(f.Hd="",this.Cha(f)){for(f.Hd+=na(f.Na);this.Bha(f);)f.Hd+=na(f.Na);return!0}return!1};za.Cha=function(f){var e=f.da,h=11<=this.options.pa,n=f.current(h);return f.advance(h),92===n&&this.FL(f,h)&&(n=f.Na),ha(h=n,!0)||36===h||95===h?(f.Na=n,!0):(f.da=e,!1)};za.Bha=function(f){var e=f.da,h=11<=this.options.pa,n=f.current(h);return f.advance(h),92===n&&this.FL(f,h)&&(n=f.Na),ca(h=n,!0)||36===h||95===h||8204===h||8205===h?(f.Na=n,!0):(f.da=e,!1)};za.hha=function(f){return!!(this.iha(f)||
|
|
this.AX(f)||this.BX(f)||f.Fy&&this.vha(f))||(f.Xe&&(99===f.current()&&f.sa("Invalid unicode escape"),f.sa("Invalid escape")),!1)};za.iha=function(f){var e=f.da;if(this.oha(f)){var h=f.Na;if(f.Xe)return h>f.tD&&(f.tD=h),!0;if(h<=f.yx)return!0;f.da=e}return!1};za.vha=function(f){if(f.ma(107)){if(this.EX(f))return f.jH.push(f.Hd),!0;f.sa("Invalid named reference")}return!1};za.BX=function(f){return this.mha(f)||this.jha(f)||this.Hha(f)||this.sha(f)||this.FL(f,!1)||!f.Xe&&this.wha(f)||this.tha(f)};za.jha=
|
|
function(f){var e=f.da;if(f.ma(99)){if(this.nha(f))return!0;f.da=e}return!1};za.Hha=function(f){return 48===f.current()&&!ia(f.Fa())&&(f.Na=0,f.advance(),!0)};za.mha=function(f){var e=f.current();return 116===e?(f.Na=9,f.advance(),!0):110===e?(f.Na=10,f.advance(),!0):118===e?(f.Na=11,f.advance(),!0):102===e?(f.Na=12,f.advance(),!0):114===e&&(f.Na=13,f.advance(),!0)};za.nha=function(f){var e=f.current();return!!(65<=e&&90>=e||97<=e&&122>=e)&&(f.Na=e%32,f.advance(),!0)};za.FL=function(f,e){void 0===
|
|
e&&(e=!1);var h=f.da;e=e||f.Xe;if(f.ma(117)){if(this.CL(f,4)){var n=f.Na;if(e&&55296<=n&&56319>=n){h=f.da;if(f.ma(92)&&f.ma(117)&&this.CL(f,4)&&(e=f.Na,56320<=e&&57343>=e))return f.Na=1024*(n-55296)+(e-56320)+65536,!0;f.da=h;f.Na=n}return!0}if(e&&f.ma(123)&&this.rha(f)&&f.ma(125)&&0<=(n=f.Na)&&1114111>=n)return!0;e&&f.sa("Invalid unicode escape");f.da=h}return!1};za.tha=function(f){if(f.Xe)return!!this.Dha(f)||!!f.ma(47)&&(f.Na=47,!0);var e=f.current();return!(99===e||f.Fy&&107===e)&&(f.Na=e,f.advance(),
|
|
!0)};za.oha=function(f){f.Na=0;var e=f.current();if(49<=e&&57>=e){for(;f.Na=10*f.Na+(e-48),f.advance(),48<=(e=f.current())&&57>=e;);return!0}return!1};za.AX=function(f){var e=f.current();if(100===e||68===e||115===e||83===e||119===e||87===e)return f.Na=-1,f.advance(),!0;if(f.Xe&&9<=this.options.pa&&(80===e||112===e)){if(f.Na=-1,f.advance(),f.ma(123)&&this.Gha(f)&&f.ma(125))return!0;f.sa("Invalid property name")}return!1};za.Gha=function(f){var e=f.da;if(this.Fha(f)&&f.ma(61)){var h=f.Hd;if(this.HX(f))return this.Jha(f,
|
|
h,f.Hd),!0}return(f.da=e,this.xha(f))?(e=f.Hd,this.Kha(f,e),!0):!1};za.Jha=function(f,e,h){wa.call(f.bN.xk,e)||f.sa("Invalid property name");f.bN.xk[e].test(h)||f.sa("Invalid property value")};za.Kha=function(f,e){f.bN.h5.test(e)||f.sa("Invalid property name")};za.Fha=function(f){var e;for(f.Hd="";sa(e=f.current());)f.Hd+=na(e),f.advance();return""!==f.Hd};za.HX=function(f){var e,h;for(f.Hd="";sa(h=e=f.current())||ia(h);)f.Hd+=na(e),f.advance();return""!==f.Hd};za.xha=function(f){return this.HX(f)};
|
|
za.zX=function(f){if(f.ma(91)){if(f.ma(94),this.eha(f),f.ma(93))return!0;f.sa("Unterminated character class")}return!1};za.eha=function(f){for(;this.CX(f);){var e,h=f.Na;f.ma(45)&&this.CX(f)&&(e=f.Na,!f.Xe||-1!==h&&-1!==e||f.sa("Invalid character class"),-1!==h&&-1!==e&&e<h&&f.sa("Range out of order in character class"))}};za.CX=function(f){var e,h=f.da;if(f.ma(92)){if(this.lha(f))return!0;f.Xe&&(99!==(e=f.current())&&!(48<=e&&55>=e)||f.sa("Invalid class escape"),f.sa("Invalid escape"));f.da=h}h=
|
|
f.current();return 93!==h&&(f.Na=h,f.advance(),!0)};za.lha=function(f){var e=f.da;if(f.ma(98))return f.Na=8,!0;if(f.Xe&&f.ma(45))return f.Na=45,!0;if(!f.Xe&&f.ma(99)){if(this.kha(f))return!0;f.da=e}return this.AX(f)||this.BX(f)};za.kha=function(f){var e=f.current();return!(!ia(e)&&95!==e)&&(f.Na=e%32,f.advance(),!0)};za.sha=function(f){var e=f.da;if(f.ma(120)){if(this.CL(f,2))return!0;f.Xe&&f.sa("Invalid escape");f.da=e}return!1};za.DX=function(f){var e,h=f.da;for(f.Na=0;ia(e=f.current());)f.Na=10*
|
|
f.Na+(e-48),f.advance();return f.da!==h};za.rha=function(f){var e,h=f.da;for(f.Na=0;qa(e=f.current());)f.Na=16*f.Na+va(e),f.advance();return f.da!==h};za.wha=function(f){if(this.DL(f)){var e,h=f.Na;return this.DL(f)?(e=f.Na,3>=h&&this.DL(f)?f.Na=64*h+8*e+f.Na:f.Na=8*h+e):f.Na=h,!0}return!1};za.DL=function(f){var e=f.current();return 48<=e&&55>=e?(f.Na=e-48,f.advance(),!0):(f.Na=0,!1)};za.CL=function(f,e){for(var h=f.da,n=f.Na=0;n<e;++n){var r=f.current();if(!qa(r))return f.da=h,!1;f.Na=16*f.Na+va(r);
|
|
f.advance()}return!0};za=z.prototype;rb();rb();Mb();za.next=function(f){!f&&this.type.ug&&this.Li&&this.Za(this.start,"Escape sequence in keyword "+this.type.ug);this.options.Cx&&this.options.Cx(new oa(this));this.Jf=this.end;this.aj=this.start;this.vK=this.jI;this.tV=this.Ld;this.vx()};za.gca=function(){return this.next(),new oa(this)};"undefined"!=typeof Symbol&&(za[Symbol.iterator]=function(){var f=this;return{next:function(){var e=f.gca();return{done:e.type===ta.Op,value:e}}}});za.fs=function(){return this.context[this.context.length-
|
|
1]};za.vx=function(){var f=this.fs();return f&&f.vga||this.LM(),this.start=this.da,this.options.Ne&&(this.Ld=this.Fp()),this.da>=this.input.length?this.Tc(ta.Op):f.rW?f.rW(this):void this.Pga(this.nw())};za.Pga=function(f){return ha(f,6<=this.options.pa)||92===f?this.Zga():this.hca(f)};za.nw=function(){var f=this.input.charCodeAt(this.da);return 55295>=f||57344<=f?f:(f<<10)+this.input.charCodeAt(this.da+1)-56613888};za.dla=function(){var f,e=this.options.jm&&this.Fp(),h=this.da,n=this.input.indexOf("*/",
|
|
this.da+=2);if(-1===n&&this.sa(this.da-2,"Unterminated comment"),this.da=n+2,this.options.Ne)for(Na.lastIndex=h;(f=Na.exec(this.input))&&f.index<this.da;)++this.gs,this.wq=f.index+f[0].length;this.options.jm&&this.options.jm(!0,this.input.slice(h+2,n),h,this.da,e,this.Fp())};za.JE=function(f){for(var e=this.da,h=this.options.jm&&this.Fp(),n=this.input.charCodeAt(this.da+=f);this.da<this.input.length&&!y(n);)n=this.input.charCodeAt(++this.da);this.options.jm&&this.options.jm(!1,this.input.slice(e+
|
|
f,this.da),e,this.da,h,this.Fp())};za.LM=function(){a:for(;this.da<this.input.length;){var f=this.input.charCodeAt(this.da);switch(f){case 32:case 160:++this.da;break;case 13:10===this.input.charCodeAt(this.da+1)&&++this.da;case 10:case 8232:case 8233:++this.da;this.options.Ne&&(++this.gs,this.wq=this.da);break;case 47:switch(this.input.charCodeAt(this.da+1)){case 42:this.dla();break;case 47:this.JE(2);break;default:break a}break;default:if(!(8<f&&14>f||5760<=f&&Ra.test(String.fromCharCode(f))))break a;
|
|
++this.da}}};za.Tc=function(f,e){this.end=this.da;this.options.Ne&&(this.jI=this.Fp());var h=this.type;this.type=f;this.value=e;this.Hg(h)};za.Rga=function(){var f=this.input.charCodeAt(this.da+1);if(48<=f&&57>=f)return this.lX(!0);var e=this.input.charCodeAt(this.da+2);return 6<=this.options.pa&&46===f&&46===e?(this.da+=3,this.Tc(ta.cw)):(++this.da,this.Tc(ta.Kb))};za.Yga=function(){var f=this.input.charCodeAt(this.da+1);return this.mf?(++this.da,this.nX()):61===f?this.jd(ta.assign,2):this.jd(ta.oZ,
|
|
1)};za.Uga=function(f){var e=this.input.charCodeAt(this.da+1),h=1,n=42===f?ta.vh:ta.Qea;return 7<=this.options.pa&&42===f&&42===e&&(++h,n=ta.tZ,e=this.input.charCodeAt(this.da+2)),61===e?this.jd(ta.assign,h+1):this.jd(n,h)};za.Vga=function(f){var e=this.input.charCodeAt(this.da+1);return e!==f?61===e?this.jd(ta.assign,2):this.jd(124===f?ta.m5:ta.l5,1):12<=this.options.pa&&61===this.input.charCodeAt(this.da+2)?this.jd(ta.assign,3):this.jd(124===f?ta.DK:ta.sD,2)};za.Qga=function(){return 61===this.input.charCodeAt(this.da+
|
|
1)?this.jd(ta.assign,2):this.jd(ta.n5,1)};za.Wga=function(f){var e=this.input.charCodeAt(this.da+1);return e===f?45!==e||this.io||62!==this.input.charCodeAt(this.da+2)||0!==this.Jf&&!Ha.test(this.input.slice(this.Jf,this.da))?this.jd(ta.SJ,2):(this.JE(3),this.LM(),this.vx()):61===e?this.jd(ta.assign,2):this.jd(ta.lga,1)};za.Tga=function(f){var e=this.input.charCodeAt(this.da+1),h=1;return e===f?(h=62===f&&62===this.input.charCodeAt(this.da+2)?3:2,61===this.input.charCodeAt(this.da+h)?this.jd(ta.assign,
|
|
h+1):this.jd(ta.k5,h)):33!==e||60!==f||this.io||45!==this.input.charCodeAt(this.da+2)||45!==this.input.charCodeAt(this.da+3)?(61===e&&(h=2),this.jd(ta.Oha,h)):(this.JE(4),this.LM(),this.vx())};za.Sga=function(f){var e=this.input.charCodeAt(this.da+1);return 61===e?this.jd(ta.X9,61===this.input.charCodeAt(this.da+2)?3:2):61===f&&62===e&&6<=this.options.pa?(this.da+=2,this.Tc(ta.Vr)):this.jd(61===f?ta.eq:ta.prefix,1)};za.Xga=function(){var f=this.options.pa;if(11<=f){var e=this.input.charCodeAt(this.da+
|
|
1);if(46===e){var h=this.input.charCodeAt(this.da+2);if(48>h||57<h)return this.jd(ta.hX,2)}if(63===e)return 12<=f&&61===this.input.charCodeAt(this.da+2)?this.jd(ta.assign,3):this.jd(ta.BH,2)}return this.jd(ta.gX,1)};za.hca=function(f){switch(f){case 46:return this.Rga();case 40:return++this.da,this.Tc(ta.xe);case 41:return++this.da,this.Tc(ta.Se);case 59:return++this.da,this.Tc(ta.Dg);case 44:return++this.da,this.Tc(ta.Wd);case 91:return++this.da,this.Tc(ta.vp);case 93:return++this.da,this.Tc(ta.Bv);
|
|
case 123:return++this.da,this.Tc(ta.Ug);case 125:return++this.da,this.Tc(ta.bg);case 58:return++this.da,this.Tc(ta.En);case 96:if(6>this.options.pa)break;return++this.da,this.Tc(ta.tp);case 48:f=this.input.charCodeAt(this.da+1);if(120===f||88===f)return this.vL(16);if(6<=this.options.pa){if(111===f||79===f)return this.vL(8);if(98===f||66===f)return this.vL(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.lX(!1);case 34:case 39:return this.Nga(f);case 47:return this.Yga();
|
|
case 37:case 42:return this.Uga(f);case 124:case 38:return this.Vga(f);case 94:return this.Qga();case 43:case 45:return this.Wga(f);case 60:case 62:return this.Tga(f);case 61:case 33:return this.Sga(f);case 63:return this.Xga();case 126:return this.jd(ta.prefix,1)}this.sa(this.da,"Unexpected character '"+Ca(f)+"'")};za.jd=function(f,e){var h=this.input.slice(this.da,this.da+e);return this.da+=e,this.Tc(f,h)};za.nX=function(){for(var f,e,h=this.da;;){this.da>=this.input.length&&this.sa(h,"Unterminated regular expression");
|
|
var n=this.input.charAt(this.da);if(Ha.test(n)&&this.sa(h,"Unterminated regular expression"),f)f=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;f="\\"===n}++this.da}f=this.input.slice(h,this.da);++this.da;n=this.da;e=this.pX();this.Li&&this.ob(n);n=this.vX||(this.vX=new la(this));n.reset(h,f,e);this.hma(n);this.ima(n);h=null;try{h=new RegExp(f,e)}catch(Jc){}return this.Tc(ta.uX,{pattern:f,flags:e,value:h})};za.Ux=function(f,e,h){var n=12<=this.options.pa&&void 0===e,r=h&&
|
|
48===this.input.charCodeAt(this.da);h=this.da;for(var w=0,z=0,y=0,fa=null==e?1/0:e;y<fa;++y,++this.da){var x=this.input.charCodeAt(this.da),aa;if(n&&95===x)r&&this.Za(this.da,"Numeric separator is not allowed in legacy octal numeric literals"),95===z&&this.Za(this.da,"Numeric separator must be exactly one underscore"),0===y&&this.Za(this.da,"Numeric separator is not allowed at the first of digits"),z=x;else{if(f<=(aa=97<=x?x-97+10:65<=x?x-65+10:48<=x&&57>=x?x-48:1/0))break;z=x;w=w*f+aa}}return n&&
|
|
95===z&&this.Za(this.da-1,"Numeric separator is not allowed at the last of digits"),this.da===h||null!=e&&this.da-h!==e?null:w};za.vL=function(f){var e=this.da;this.da+=2;var h=this.Ux(f);return null==h&&this.sa(this.start+2,"Expected number in radix "+f),11<=this.options.pa&&110===this.input.charCodeAt(this.da)?(h=ua(this.input.slice(e,this.da)),++this.da):ha(this.nw())&&this.sa(this.da,"Identifier directly after number"),this.Tc(ta.wt,h)};za.lX=function(f){var e=this.da;f||null!==this.Ux(10,void 0,
|
|
!0)||this.sa(e,"Invalid number");var h=2<=this.da-e&&48===this.input.charCodeAt(e);h&&this.strict&&this.sa(e,"Invalid number");var n=this.input.charCodeAt(this.da);if(!h&&!f&&11<=this.options.pa&&110===n)return f=ua(this.input.slice(e,this.da)),++this.da,ha(this.nw())&&this.sa(this.da,"Identifier directly after number"),this.Tc(ta.wt,f);h&&/[89]/.test(this.input.slice(e,this.da))&&(h=!1);46!==n||h||(++this.da,this.Ux(10),n=this.input.charCodeAt(this.da));69!==n&&101!==n||h||(43!==(n=this.input.charCodeAt(++this.da))&&
|
|
45!==n||++this.da,null===this.Ux(10)&&this.sa(e,"Invalid number"));ha(this.nw())&&this.sa(this.da,"Identifier directly after number");e=this.input.slice(e,this.da);e=h?parseInt(e,8):parseFloat(e.replace(/_/g,""));return this.Tc(ta.wt,e)};za.jX=function(){var f,e;return 123===this.input.charCodeAt(this.da)?(6>this.options.pa&&this.ob(),f=++this.da,e=this.sL(this.input.indexOf("}",this.da)-this.da),++this.da,1114111<e&&this.rq(f,"Code point out of bounds")):e=this.sL(4),e};za.Nga=function(f){for(var e=
|
|
"",h=++this.da;;){this.da>=this.input.length&&this.sa(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.da);if(n===f)break;92===n?(e+=this.input.slice(h,this.da),e+=this.kX(!1),h=this.da):(y(n,10<=this.options.pa)&&this.sa(this.start,"Unterminated string constant"),++this.da)}return e+=this.input.slice(h,this.da++),this.Tc(ta.string,e)};var Ic={};za.Ela=function(){this.AU=!0;try{this.Oga()}catch(Vb){if(Vb!==Ic)throw Vb;this.Lga()}this.AU=!1};za.rq=function(f,e){if(this.AU&&
|
|
9<=this.options.pa)throw Ic;this.sa(f,e)};za.Oga=function(){for(var f="",e=this.da;;){this.da>=this.input.length&&this.sa(this.start,"Unterminated template");var h=this.input.charCodeAt(this.da);if(96===h||36===h&&123===this.input.charCodeAt(this.da+1)){this.da!==this.start||this.type!==ta.template&&this.type!==ta.XJ?(f+=this.input.slice(e,this.da),this.Tc(ta.template,f)):36===h?(this.da+=2,this.Tc(ta.XH)):(++this.da,this.Tc(ta.tp));break}if(92===h)f+=this.input.slice(e,this.da),f+=this.kX(!0),e=
|
|
this.da;else if(y(h)){switch(f+=this.input.slice(e,this.da),++this.da,h){case 13:10===this.input.charCodeAt(this.da)&&++this.da;case 10:f+="\n";break;default:f+=String.fromCharCode(h)}this.options.Ne&&(++this.gs,this.wq=this.da);e=this.da}else++this.da}};za.Lga=function(){for(;this.da<this.input.length;this.da++)switch(this.input[this.da]){case "\\":++this.da;break;case "$":if("{"!==this.input[this.da+1])break;case "`":this.Tc(ta.XJ,this.input.slice(this.start,this.da));return}this.sa(this.start,
|
|
"Unterminated template")};za.kX=function(f){var e=this.input.charCodeAt(++this.da);switch(++this.da,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.sL(2));case 117:return Ca(this.jX());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.da)&&++this.da;case 10:return this.options.Ne&&(this.wq=this.da,++this.gs),"";case 56:case 57:if(this.strict&&this.rq(this.da-1,"Invalid escape sequence"),f){var h=
|
|
this.da-1;return this.rq(h,"Invalid escape sequence in template string"),null}default:if(48<=e&&55>=e){var n=this.input.substr(this.da-1,3).match(/^[0-7]+/)[0];h=parseInt(n,8);return 255<h&&(n=n.slice(0,-1),h=parseInt(n,8)),this.da+=n.length-1,e=this.input.charCodeAt(this.da),"0"===n&&56!==e&&57!==e||!this.strict&&!f||this.rq(this.da-1-n.length,f?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(h)}return y(e)?"":String.fromCharCode(e)}};za.sL=function(f){var e=
|
|
this.da;f=this.Ux(16,f);return null===f&&this.rq(e,"Bad character escape sequence"),f};za.pX=function(){for(var f="",e=!(this.Li=!1),h=this.da,n=6<=this.options.pa;this.da<this.input.length;){var r=this.nw();if(ca(r,n))this.da+=65535>=r?1:2;else{if(92!==r)break;this.Li=!0;f+=this.input.slice(h,this.da);h=this.da;117!==this.input.charCodeAt(++this.da)&&this.rq(this.da,"Expecting Unicode escape sequence \\uXXXX");++this.da;r=this.jX();(e?ha:ca)(r,n)||this.rq(h,"Invalid Unicode escape");f+=Ca(r);h=this.da}e=
|
|
!1}return f+this.input.slice(h,this.da)};za.Zga=function(){var f=this.pX(),e=ta.name;return this.sV.test(f)&&(e=Ka[f]),this.Tc(e,f)};z.i4={g1:z,version:"8.0.4",e7:Oa,i1:h,N1:ea,eba:f,Node:ja,X1:da,Ala:ta,gea:Ka,V1:Ea,zla:Za,zda:ca,Ada:ha,W1:oa,Ida:y,jea:Ha,kea:Na,Xea:Ra};e.Node=ja;e.g1=z;e.i1=h;e.N1=ea;e.V1=Ea;e.W1=oa;e.X1=da;e.e7=Oa;e.eba=f;e.zda=ca;e.Ada=ha;e.Ida=y;e.gea=Ka;e.jea=Ha;e.kea=Na;e.Xea=Ra;e.parse=function(f,e){return z.parse(f,e)};e.BW=function(f,e,h){return z.BW(f,e,h)};e.zla=Za;e.Ala=
|
|
ta;e.TZ=function(f,e){return z.TZ(f,e)};e.version="8.0.4"})},function(ia,ba){ia=function(){function e(e,x){this.Jb={};this.er=this.Tl=this.text=this.Ec=null;this.Hb=e;this.pb=x}e.prototype.clone=function(){var ea=new e(this.Hb,this.pb);ea.Jb=JSON.parse(JSON.stringify(this.Jb));ea.Ec=this.Ec.clone();ea.er=this.er;return ea};return e}();ba.a=ia},function(ia,ba){ba.a=function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);
|
|
Element.prototype.closest||(Element.prototype.closest=function(e){var ea=this;do{if(ea.matches(e))return ea;ea=ea.parentElement||ea.parentNode}while(null!==ea&&1===ea.nodeType);return null})}},function(ia,ba,e){var ea=e(2),x=e(219);ba.a=function(e,ca){Object(ea.d)("8.3","getHashParam",["getHashParameter"]);return Object(x.a)(e,ca)}},function(ia,ba,e){e.d(ba,"a",function(){return ea});e.d(ba,"b",function(){return x});var ea;(function(e){e[e.NOT_STARTED=0]="NOT_STARTED";e[e.STARTED=1]="STARTED";e[e.SUCCESS=
|
|
2]="SUCCESS";e[e.ERROR=3]="ERROR";e[e.ABORTED=4]="ABORTED"})(ea||(ea={}));var x;(function(e){e[e.DONE=4]="DONE";e[e.HEADERS_RECEIVED=2]="HEADERS_RECEIVED";e[e.LOADING=3]="LOADING";e[e.OPENED=1]="OPENED";e[e.UNSENT=0]="UNSENT"})(x||(x={}))},function(ia,ba,e){function ea(){return Object(x.b)(void 0,void 0,void 0,function(){var da;return Object(x.d)(this,function(x){switch(x.label){case 0:return[4,e.e(21).then(e.t.bind(null,247,7))];case 1:return da=x.ea(),[2,function(e){var w=da.Vl(e,{yc:-15});return"string"===
|
|
typeof e?Object(ca.a)(w):w}]}})})}e.d(ba,"b",function(){return ea});var x=e(1),ha=e(147),ca=e(73);ia=function(){function e(e){if(e){if(e.length!==ha.a)throw Error("Data is wrong size for zip header!");this.ew=e=this.Jga(e);if(e.cu!==ha.f)throw Error("Invalid XOD file, signature is wrong!");this.bea=4294967295===e.CB;this.Ln={};this.names=[]}}e.prototype.lT=function(){return{start:this.ew.CB,stop:this.ew.CB+this.ew.YR}};e.prototype.zw=function(e){var w=this.Ln[e],y=w.offset+ha.c+w.Bq+w.jw;return{start:y,
|
|
stop:y+w.lH,Jq:e}};e.prototype.oC=function(e){e=this.zw(e);var w=Math.floor(e.start/102400),y=e.stop-e.start;return Math.min(y,102400*(w+1)-e.start)>y/2?w:w+1};e.prototype.uea=function(e){if(e&&(this.ew=e=this.$ga(e),e.cu!==ha.i))throw Error("Invalid XOD file, signature is wrong!");};e.prototype.Kaa=function(e){var w=this.oC(e),y=this.names.indexOf(e);e=[];var n;for(n=y-1;0<=n&&this.oC(this.names[n])===w;--n);var h=n+1;var f=this.zw(this.names[h]).start;for(n=y+1;n<this.names.length&&this.oC(this.names[n])===
|
|
w;++n);w=n-1;y=this.zw(this.names[w]).stop;for(n=h;n<=w;++n)h=this.zw(this.names[n]),h.start-=f,h.stop-=f,e.push(h);return{start:f,stop:y,Nq:e}};e.prototype.zR=function(e){return!!this.Ln[e]};e.prototype.PU=function(e){return 0!==this.Ln[e].CH};e.prototype.iX=function(e){for(var w=10,y=ha.b,n=this.ew.UZ,h=0;h<n;h++){var f=this.Kga(e,w);w+=y;var r=e.substr(w,f.Bq);w+=f.Bq+f.jw+f.vR+10;this.Ln[r]=f;this.names[this.names.length]=r}};e.prototype.$D=function(e,w,y){for(var n="",h=0;h<w;h++){var f=e.charCodeAt(h+
|
|
y).toString(16);n=1===f.length?"0"+f+n:f+n}return parseInt(n,16)};e.prototype.Kga=function(e,w){var y=this.$D;return{CH:y(e,2,w),lH:y(e,4,w+10),Fla:y(e,4,w+14),Bq:y(e,2,w+18),jw:y(e,2,w+20),vR:y(e,2,w+22),offset:y(e,4,w+32)}};e.prototype.$ga=function(e){var w=this.$D;return{cu:w(e,4,0),cpa:w(e,8,4),zqa:w(e,2,12),Aqa:w(e,2,14),a8:w(e,4,16),K5:w(e,4,20),Yea:w(e,8,24),UZ:w(e,8,32),YR:w(e,8,40),CB:w(e,8,48)}};e.prototype.Jga=function(e){var w=this.$D;return{cu:w(e,4,0),a8:w(e,2,4),K5:w(e,2,6),Yea:w(e,
|
|
2,8),UZ:w(e,2,10),YR:w(e,4,12),CB:w(e,4,16),vR:w(e,2,20)}};e.prototype.Mga=function(e){var w=this.$D;return{cu:w(e,4,0),yqa:w(e,2,4),flags:w(e,2,6),CH:w(e,2,8),xpa:w(e,2,10),wpa:w(e,2,12),Una:w(e,4,14),lH:w(e,4,18),Fla:w(e,4,22),Bq:w(e,2,26),jw:w(e,2,28)}};return e}();ba.a=ia},,function(ia){ia.exports=function(ba){ba.nma||(ba.loa=function(){},ba.Npa=[],ba.children||(ba.children=[]),Object.defineProperty(ba,"loaded",{enumerable:!0,get:function(){return ba.l}}),Object.defineProperty(ba,"id",{enumerable:!0,
|
|
get:function(){return ba.i}}),ba.nma=1);return ba}},function(ia,ba,e){var ea=e(2),x=e(23),ha=e(181),ca=e(182),da=e(165);e(95);var aa=e(39),w=function(){function e(e,f){this.P2=new y(e,f)}e.prototype.getContext=function(){return this.P2};return e}(),y=function(){function e(e,f){this.dn=[];this.Mz={};var h=new x.a;h.set(1,0,0,1,0,0);this.dn.push(h);this.$u=e;this._offset=f||0;this.oA=this.Gr=0;this.canvas={width:0,height:0};this.font=null;this.lineWidth=0;this.fillStyle=this.strokeStyle=this.lineCap=
|
|
null;this.miterLimit=this.globalAlpha=0;this.lineJoin=null;this.xr=!1;this.w=0;this.f=this.s=this.c=null;this.i=this.a=0;this.j=null}e.prototype.cba=function(e){return this.Mz[e]};e.prototype.Br=function(e){if(this.$u[e])return this.$u[e];e=e.split(" ")[1];Object(ea.a)(!!this.$u[e],"Font "+e+" file not found");return this.$u[e]};e.prototype.nQ=function(e,f){var h=new x.a,n=e.EG;e=e.HP;h.set(e/n,0,0,e/n,0,0);h.WZ(f)};e.prototype.save=function(){var e=new x.a;e.Ri(Object(aa.d)(this.dn));this.dn.push(e)};
|
|
e.prototype.restore=function(){this.dn.pop()};e.prototype.transform=function(e,f,n,w,y,da){var h=new x.a;h.set(e,f,n,w,y,da);Object(aa.d)(this.dn).concat(h)};e.prototype.rotate=function(e){var f=new x.a,h=Math.cos(e);e=Math.sin(e);f.set(h,e,-e,h,0,0);Object(aa.d)(this.dn).concat(f)};e.prototype.translate=function(e,f){this.Gr=e;this.oA=f};e.prototype.setLineDash=function(){};e.prototype.fillRect=function(){};e.prototype.fillText=function(e,f,n){var h=this.Br(this.font);this.Xz(e,f,n,h)};e.prototype.Xz=
|
|
function(e,f,n,w){if(!this.xr){this.translate(f,n);f=0;for(n=e.length;f<n;){var h=e.charCodeAt(f),r=f;55296<=h&&55551>=h?(h=String.fromCodePoint((h-55296<<10)+(e.charCodeAt(f+1)-56320)+65536),f+=2):(h=String.fromCodePoint(h),f++);r=this.oD&&r in this.oD?this.oD[r]:h;h=w.EI(h);this.nQ(w,h);var z=h.ja;h.ja=h.ka;h.ka=z;h.na+=this.Gr;h.oa+=this.Gr;h.ja+=this.oA;h.ka+=this.oA;this.Gr+=h.width();z=Array(8);z[0]=h.na;z[1]=h.ja;z[2]=h.oa;z[3]=h.ja;z[4]=h.oa;z[5]=h.ka;z[6]=h.na;z[7]=h.ka;Object(aa.d)(this.dn).YM(z);
|
|
this.Mz[this._offset]=new ha.a(r,z);this._offset++}this.oD=null}};e.prototype.measureText=function(e){var f=this.Br(this.font);return this.MP(e,f)};e.prototype.MP=function(e,f){var h=0;if(!this.xr)for(var n=0,w=e.length;n<w;){var y=e.charCodeAt(n);55296<=y&&55551>=y?(y=f.EI(String.fromCodePoint((y-55296<<10)+(e.charCodeAt(n+1)-56320)+65536)),n+=2):(y=f.EI(String.fromCodePoint(y)),n++);this.nQ(f,y);h+=y.width()}return new ca.a(h)};e.prototype.strokeRect=function(){};e.prototype.createLinearGradient=
|
|
function(){return new da.a};e.prototype.createRadialGradient=function(){return new da.a};e.prototype.createPattern=function(){};e.prototype.addColorStop=function(){};e.prototype.beginPath=function(){};e.prototype.closePath=function(){};e.prototype.fill=function(){};e.prototype.stroke=function(){};e.prototype.clip=function(){};e.prototype.moveTo=function(){};e.prototype.lineTo=function(){};e.prototype.quadraticCurveTo=function(){};e.prototype.bezierCurveTo=function(){};e.prototype.rect=function(){};
|
|
e.prototype.drawImage=function(e){e instanceof w&&(e=e.getContext(),Object.assign(this.Mz,e.Mz),this._offset=e._offset)};e.prototype.setTransform=function(){};e.prototype.strokeText=function(){};e.prototype.getImageData=function(){return new XODText.ImageData};e.prototype.putImageData=function(){};e.prototype.scale=function(){};e.prototype.$Q=function(){var e=new x.a;e.set(1,0,0,1,0,0);this.dn=[e];this.oA=this.Gr=0};e.prototype.fZ=function(){return!0};e.prototype.S=function(){this.save()};e.prototype.r=
|
|
function(){this.restore()};e.prototype.t=function(e,f,n,w,y,x){this.transform(e,f,n,w,y,x)};e.prototype.ro=function(e){this.rotate(e)};e.prototype.T=function(e,f){this.translate(e,f)};e.prototype.L=function(){return this.createLinearGradient()};e.prototype.R=function(){return this.createRadialGradient()};e.prototype.P=function(){this.createPattern()};e.prototype.A=function(){};e.prototype.b=function(){this.beginPath()};e.prototype.z=function(){this.closePath()};e.prototype.F=function(){this.fill()};
|
|
e.prototype.X=function(){this.stroke()};e.prototype.cr=function(){this.strokeRect()};e.prototype.C=function(){this.clip()};e.prototype.M=function(){this.moveTo()};e.prototype.l=function(){this.lineTo()};e.prototype.q=function(){this.quadraticCurveTo()};e.prototype.B=function(){this.bezierCurveTo()};e.prototype.x=function(e,f,n){var h=this.Br(this.font);this.Xz(e,f,n,h)};e.prototype.m=function(e){var f=this.Br(this.font);return this.MP(e,f)};e.prototype.I=function(){this.drawImage()};e.prototype.Z=
|
|
function(){this.setTransform()};e.prototype.d=function(){return this.getImageData()};e.prototype.D=function(){this.putImageData()};e.prototype.e=function(){this.scale()};e.prototype.tm=function(e){this.oD=e};e.prototype.CS=function(e,f,n){var h=this.Br(this.font);this.Xz(e,f,n,h)};e.prototype.xc=function(e,f,n){var h=this.Br(this.font);this.Xz(e,f,n,h)};e.prototype.cgb=function(){Object(ea.a)(!this.xr,"Custom Glyphs begin offset is incorrect");this.xr=!0};e.prototype.cge=function(){Object(ea.a)(this.xr,
|
|
"Custom Glyphs end offset is incorrect");this.xr=!1};e.prototype.xw=function(e,f,n){1<e.length&&(e=e.substr(0,e.length-1));this.x(e,f,n)};e.prototype.xcw=function(){};e.prototype.createCanvas=function(){return new w(this.$u,this._offset)};Object.defineProperty(e.prototype,"n",{get:function(){return this.font},set:function(e){this.font=e},enumerable:!1,configurable:!0});return e}();ba.a=y},function(ia,ba,e){var ea=e(1);ia=["jpg","jpeg","png","jfif","gif"];e=["webp","avif","apng","bmp"];var x=Object(ea.e)(["pdf"],
|
|
ia,e),ha="docx xlsx pptx md doc xls ppt".split(" "),ca=["tiff","tif"],da=Object(ea.e)(["xod"],x,ha);ea=Object(ea.e)(da,ca,"doc xls csv ppt htm html utl xhtml bmp tif jp2 txt rtf odf odt odg odp ods xlsb xlt dcm dwg dgn rvt rfa dxf dwf gif xltm xltx vsd vsdx xlt msg eml wmf emf".split(" "));ba.a={M_:ia,AN:e,zN:x,yN:ha,mF:ca,xN:da,aO:ea}},function(ia,ba,e){var ea=e(80),x=e(2),ha=e(167),ca=e(88),da=e(61),aa=e(154),w=e(109),y=e(184),n=e(141),h=e(142),f=e(116),r=e(39);ia=function(){function e(){this.pd=
|
|
this._m=null;this.yA={};this.Jj=0;this.ec=this.jv=this.xG=this.af=-1;this.GP=this.lp=this.zG=this.Er=!1;this.ui=[];this.pe=[];this.Kj=[];this.Ac=this.yb="";this.Af=[];this.cl=[];this.kv=[];this.FP=[];this.wb={};this.wb[" "]=null;this.wb["\t"]=null;this.wb["\n"]=null;this.wb["."]=null;this.wb[","]=null;this.wb["?"]=null;this.wb[":"]=null;this.wb[";"]=null;this.wb['"']=null;this.wb["'"]=null;this.wb["<"]=null;this.wb[">"]=null;this.wb["`"]=null;this.wb["~"]=null;this.wb["!"]=null;this.wb["@"]=null;
|
|
this.wb["#"]=null;this.wb.$=null;this.wb["%"]=null;this.wb["^"]=null;this.wb["&"]=null;this.wb["("]=null;this.wb[")"]=null;this.wb["["]=null;this.wb["]"]=null;this.wb["{"]=null;this.wb["}"]=null;this.wb["|"]=null;this.wb._=null;this.wb["\\"]=null;this.wb["-"]=null;this.wb["="]=null;this.wb["+"]=null;this.wb["/"]=null;this.wb["*"]=null}e.Sj=function(f,e){for(var h=0,n=f.length-1,r=Math.floor((h+n)/2);f[r]!==e&&h<n;)e<f[r]?n=r-1:e>f[r]&&(h=r+1),r=Math.floor((h+n)/2);return f[r]===e};e.prototype.f5=
|
|
function(f,e,h,n,w){this.zG=!1;this.Ij=f.Qb();if(!(0>this.Ij.length||0>e.length||0<=n&&n>w)&&(this.Jj=h,this.hQ(e))){f=n;e=this.Ij.length;if(0>f)if(0>w)f=0,w=e-1;else return;else if(w<f)return;Object(x.a)(0<=f&&f<=w);f>=e||w>=e||(this.xG=f,this.jv=w,this.tc()?this.af=this.jv:this.af=this.xG,++this.jv,this.Ac=this.yb="",Object(r.b)(this.cl),Object(r.b)(this.kv),Object(r.b)(this.ui),Object(r.b)(this.pe),this.zG=!0,this.ec=-1,this.Er=!1)}};e.prototype.ph=function(f){var e=-1,h=-1,n=-1,z="",y="",fa=new ha.a;
|
|
fa.mG();fa.J2();if(!this.zG||0>=this.Fr.text.length)return new w.a(ca.a.DONE,n,z,y,e,h);var aa="",da=-1,ba=-1;for((new ha.a).mG();;){if(this.af===this.jv)return new w.a(ca.a.DONE,n,z,y,e,h);var qa=!0;if(!this.yb.length||this.ec===this.yb.length){if(!this.tc()){if(this.ec===this.yb.length){if(this.dV()&&!this.Er)return this.Er=!0,n=this.af,new w.a(ca.a.pr,n,z,y,e,h);++this.af}if(this.af===this.jv)return new w.a(ca.a.DONE,n,z,y,e,h)}else if(this.ec===this.yb.length){if(this.dV()&&!this.Er)return this.Er=
|
|
!0,n=this.af,new w.a(ca.a.pr,n,z,y,e,h);if(this.af===this.xG)return new w.a(ca.a.DONE,n,z,y,e,h);--this.af}(qa=this.VF(this.af))?this.tc()?(this.ec=this.yb.length,--this.ec):this.ec=0:this.ec=0}this.Er=!1;qa&&(Object(x.a)(this.ec!==this.yb.length),h=this.d3(fa),aa=h.eG,da=h.Zz,ba=h.Yz,y=h.PF,e=h.BA,h=h.AA);if(qa&&da!==this.yb.length){Object(x.a)(0<aa.length);z=aa;n=this.af;this.tc()?(this.ec=da)?--this.ec:this.ec=this.yb.length:this.ec=ba;if(this.dx())for(Object(r.b)(f),aa=[],fa.O2(this.Ij,aa),fa=
|
|
0;fa<aa.length;++fa)da=new ea.a,ba=aa[fa],da.na=ba.vi[0],da.ja=ba.vi[1],da.oa=ba.vi[2],da.ka=ba.vi[3],da.Wy=ba.vi[4],da.Zy=ba.vi[5],da.Xy=ba.vi[6],da.$y=ba.vi[7],f.push(da);return new w.a(ca.a.To,n,z,y,e,h)}this.ec=this.yb.length}};e.prototype.hQ=function(f){if(0>=f.length)return!1;for(var e="",n=f.length,w=!1,z=0;z<n;++z){var y=this.tA(f.charAt(z));" "===y?w||(e+=y,w=!0):(w=!1,e+=y)}this.C3=e;Object(r.b)(this.Kj);f="";if(this.bD())f=e;else{for(z=0;z<e.length;++z)y=e.charAt(z),"\n"!==y&&(this.jp(y)?
|
|
this.Kj.push(f.length-1):f+=y);this.ct()||(f=f.toLowerCase())}this.Fr=this.bD()?new h.b(f,"r"):this.Zda()?new h.b(f,"w"):new h.b(f,"");z=this.lp;this.Fr.text.length?this.lp=!1:(this.Fr.text=e,Object(r.b)(this.Kj),this.lp=!0);this.lp!==z&&0<this.yb.length&&!this.VF(this.af)&&(this.ec=this.yb.length);return!0};e.prototype.Sja=function(f){var e=this.dx(),h=this.ct(),n=this.tc();this.Jj=f;var r=this.dx();f=this.ct();var w=this.tc(),z=!1;h!==f&&this.hQ(this.C3);if(!(0>=this.yb.length)){e!==r&&r&&!z&&(Object(x.a)(0<=
|
|
this.ec&&this.ec<=this.yb.length),this.VF(this.af),z=!0);if(h!==f&&!z){Object(x.a)(this.Af.length===this.yb.length);Object(x.a)(this.Af.length<=this.Ac.length);e=this.yb.length;h="";for(r=0;r<e;++r)Object(x.a)(0<=this.Af[r]&&this.Af[r]<this.Ac.length),h+=this.tA(this.Ac.charAt(this.Af[r]));this.yb=h;f||(this.yb=this.yb.toLowerCase())}if(n!==w)if(Object(x.a)(0<=this.ec&&this.ec<=this.yb.length),this.ec!==this.yb.length)if(w)for(r=0;2>r;++r)this.ec&&--this.ec;else for(r=0;2>r;++r)this.ec!==this.yb.length&&
|
|
++this.ec;else w?(this.ec=this.yb.length,--this.ec):this.ec=0}};e.prototype.dx=function(){return 0<(this.Jj&da.a.jz)};e.prototype.ida=function(){return 0<(this.Jj&da.a.cz)};e.prototype.ct=function(){return 0<(this.Jj&da.a.Gu)};e.prototype.Zda=function(){return 0<(this.Jj&da.a.Qu)};e.prototype.bD=function(){return 0<(this.Jj&da.a.oz)};e.prototype.Yda=function(){return 0<(this.Jj&da.a.sz)};e.prototype.tc=function(){return 0<(this.Jj&da.a.rr)};e.prototype.dV=function(){return 0<(this.Jj&da.a.mz)};e.prototype.d3=
|
|
function(f){var e=this.k2(),h=e.Zz,n=e.Yz,w=e.BA,z=e.AA;if(h===this.yb.length)return e;var y=this.U2(h,n,n-h);var fa=y.cQ;var da=y.bP;for(var ca="",ha=fa;ha<da;++ha)ca+=this.Ac.charAt(ha);y=ca;ca="";if(this.ida()){var ea=fa,ba=da;w=this.Ac.length;var ua=z=0,ia=ha=!1,ya=!1;if(ea)for(--ea;ea;){var Ea=this.Ac.charAt(ea);ha&&this.al(Ea)&&ua++;ha||!ya||this.al(Ea)||(ha=ia=!0);if(30<=z||0<ua){ea++;break}if(this.cl.length>ea&&-2===this.cl[ea]){var Aa=this.Ac.charAt(ea+1);if("A"<=Aa&&"Z">=Aa){++ea;ia=!0;
|
|
break}}--ea;z++;ya=ya||this.al(Ea)||"\n"===Ea}ia||(ea=fa);ha=ba;for(ua=0;ba!==w;){this.al(this.Ac.charAt(ba))&&(ha=ba-1,ua++);if(10<=ua||70<=z){ba===w-1||this.al(this.Ac.charAt(ba+1))||(ba=ha);break}ba++}ba===w&&--ba;for(ha=ea;ha<=ba;++ha)w=this.Ac.charAt(ha),ca="\n"===w?ca+" ":ca+w;w=fa-ea;z=da-ea}e.PF=ca;if(this.dx()){Object(x.a)(this.Ac.length===this.cl.length);Object(x.a)(da>=fa);ca=da-fa;ua=[];for(ha=fa;ha<da;++ha)Object(r.c)(ua,ua.length,this.cl[ha]);for(fa=0;fa<ca&&0>ua[fa];)++fa;for(ha=da=
|
|
fa;fa<ca;)if(ea=ua[fa],fa===ca-1)ia=this.af,ea=ua[ha],ba=ua[fa],0>ba&&(ba=ua[da]),Object(x.a)(0<=ia&&0<=ea&&ba>=ea),ya=new aa.a,ya.cv(ia,ea,ba-ea+1),f.NF(ya),++fa;else if(-1===ea)Object(x.a)(0<=ua[da]),++fa;else if(-2===ea){Object(x.a)(0<=ua[da]);ia=this.af;ea=ua[ha];ba=ua[da];Object(x.a)(0<=ia&&0<=ea&&ba>=ea);ya=new aa.a;ya.cv(ia,ea,ba-ea+1);f.NF(ya);for(++fa;fa<ca&&0>ua[fa];)++fa;ha=da=fa}else 0<=ea&&(Object(x.a)(0<=ua[da]),da===fa||this.Q2(ua,da,fa)?(da=fa,++fa):(ia=this.af,ea=ua[ha],ba=ua[da],
|
|
Object(x.a)(0<=ia&&0<=ea&&ba>=ea),ya=new aa.a,ya.cv(ia,ea,ba-ea+1),f.NF(ya),ha=da=fa))}e.eG=y;e.Zz=h;e.Yz=n;e.BA=w;e.AA=z;return e};e.prototype.fP=function(f){return f.replace(h.a,"\\$&")};e.prototype.Kz=function(f,e){try{return new RegExp(f,e)}catch(ja){if(-1<f.indexOf("(?<=")||-1<f.indexOf("(?<!"))ja.message="Invalid regular expression: Positive (?<=) and Negative (?<!) "+("Lookbehinds are not supported in this browser. "+ja.message+".");Object(x.j)(ja);throw ja;}};e.prototype.R3=function(f,e,h){var n=
|
|
this.yA[f.text],r="g";this.ct()||(r+="i");n&&n.Dk.flags===r?this.pd=n:(this.pd=f.gV?{Dk:this.Kz(f.text,r),matches:null}:{Dk:this.Kz(this.fP(f.text),r),matches:null},this.yA[f.text]=this.pd);this.pd.Dk.lastIndex=h;this._m=this.pd.Dk.exec(e);return null!=this._m?{start:this.pd.Dk.lastIndex-this._m[0].length,length:this._m[0].length}:{start:-1,length:0}};e.prototype.S3=function(f,e,h){this.pd=null;var n=this.yA[f.text],r="g";this.ct()||(r+="i");n&&n.Dk.flags===r?this.pd=n:(this.pd=f.gV?{Dk:this.Kz(f.text,
|
|
r),matches:[],XL:null}:{Dk:this.Kz(this.fP(f.text),r),matches:[],XL:null},this.yA[f.text]=this.pd);if(this.pd.XL!==e){for(this.pd.matches=[];null!==(this._m=this.pd.Dk.exec(e));)this.pd.matches.push({start:this._m.index,end:this.pd.Dk.lastIndex});this.pd.XL=e}if(0<this.pd.matches.length)for(f=this.pd.matches.length-1;0<=f;f--)if(this.pd.matches[f].end<h)return{start:this.pd.matches[f].start,length:this.pd.matches[f].end-this.pd.matches[f].start};return{start:-1,length:0}};e.prototype.k2=function(){var h;
|
|
var r=this.ec;for(var w=this.yb.length,z;;){var y=!1;Object(x.a)(0<this.Fr.text.length);if(this.tc()){if(r===w){z=h=w;break}h=this.S3(this.Fr,this.yb,r)}else h=this.R3(this.Fr,this.yb,r);z=h.start;if(0>z){z=h=w;break}h=h.start+h.length;this.tc()?(r=z,0!==r?--r:r=w):r=h;if(!this.lp)if(0<this.Kj.length)if(this.ui.length||this.pe.length){for(var aa=this.pe.length,da=this.ui.length,ca=z-0,ha=Object(f.a)(this.Kj);ha.gm();){var ea=ha.current;ea=ca+ea;if(!e.Sj(this.ui,ea)&&!e.Sj(this.pe,ea)){y=!0;break}}if(y)continue;
|
|
ha=z-0;for(var ba=h-0-1,va=ea=this.wG(this.pe,ha);va!==aa;++va){var oa=this.pe[va];if(oa>=ha&&oa<ba&&(ea=oa-ca,!e.Sj(this.Kj,ea))){y=!0;break}if(oa>=ba)break}if(y)continue;for(va=ea=this.wG(this.ui,ha);va!==da;++va){oa=this.ui[va];if(oa>=ha&&oa<ba&&(ea=oa-ca,!e.Sj(this.Kj,ea))){y=!0;break}if(oa>=ba)break}if(y)continue}else continue;else if(this.pe.length)for(ha=z-0,ba=h-0-1,aa=this.pe.length,va=ea=this.wG(this.pe,ha);va!==aa&&(oa=this.pe[va],oa>=ha&&oa<ba||!(oa>=ba));++va);if(this.Yda()){if(0!==z&&
|
|
(oa=z-0-1,!(e.Sj(this.ui,oa)||e.Sj(this.pe,oa)||this.al(this.yb.charAt(z))||this.al(this.yb.charAt(z-1)))))continue;if(h!==w&&(oa=h-0-1,!(e.Sj(this.ui,oa)||e.Sj(this.pe,oa)||this.al(this.yb.charAt(h-1))||this.al(this.yb.charAt(h)))))continue}break}return new n.a("",z,h,"",-1,-1)};e.prototype.al=function(f){return this.wb[f]?!0:this.hA(f)||this.u3(f)};e.prototype.wG=function(f,e){f=f.indexOf(e);0>f&&(f=~f);return f};e.prototype.tA=function(f){f=f.charCodeAt(0);if(39===f||8217===f)f=39;else if(34===
|
|
f||8220===f||8221===f)f=34;return String.fromCharCode(f)};e.prototype.jp=function(f){var e=f.charCodeAt(0);return"-"===f||8208===e||8209===e||65293===e||173===e};e.prototype.t3=function(f){var e=f.charCodeAt(0);return","===f||65292===e||65294===e};e.prototype.u3=function(f){var e=f.charCodeAt(0);return 32<e&&48>e||57<e&&65>e||90<e&&97>e||122<e&&127>e||this.t3(f)||this.jp(f)||173===e||1642<=e&&(1645>=e||8210<=e&&8231>=e||8240<=e&&8269>=e||8592<=e&&9215>=e||12441<=e&&12444>=e||65281<=e&&65291>=e||65295===
|
|
e||65306<=e&&65312>=e||65344===e||65371<=e&&65374>=e)?!0:!1};e.prototype.hA=function(f){f=f.charCodeAt(0);return 32===f||1<=f&&31>=f||160===f||8192<=f&&(8207>=f||8232<=f&&8239>=f||8298<=f&&8303>=f)?!0:!1};e.prototype.VF=function(f){function e(f,e){return f-e}if(0>f||f>=this.Ij.length)return!1;this.Ac=this.yb="";Object(r.b)(this.Af);Object(r.b)(this.ui);Object(r.b)(this.pe);var h=this.dx(),n=[],w=[];if(h){var z=this.Ij[f].text;if(null===z||!z.ready())return!1;f=z.Rb;n=z.we;w=z.nf();Object(r.b)(this.cl);
|
|
this.GP&&Object(r.b)(this.FP)}else{z=this.Ij[f].text;if(null===z||!z.ready())return!1;f=z.Rb}if(0>=f.length)return!1;z="";for(var y=f.length,fa=-1,aa=/^[.,:!?]/,da=0;da<y;++da){var ca=f.charAt(da),ha=-1;h&&(ha=n[da]);if("\n"===ca){ca=da-1;for(var ea=f.charAt(ca);0<=ca&&" "===f.charAt(ca);)--ca,ea=f.charAt(ca);if(!(0>ca||this.jp(f.charAt(ca)))){for(ca=da+1;ca<y&&" "===f.charAt(ca);)++ca;ca>=y||this.jp(f.charAt(ca))&&0<ca&&!ea.match(aa)||(z+=" ",this.Af.push(this.Ac.length),this.Ac+=" ",h&&(fa=fa<ha?
|
|
ha:fa,this.OF(ha,w,8*da)))}}else" "===ca?da<y-1&&("\n"===f.charAt(da+1)||" "===f.charAt(da+1))||(z+=ca,this.Af.push(this.Ac.length),this.Ac+=ca,h&&(fa=fa<ha?ha:fa,this.OF(ha,w,8*da))):(this.jp(ca)?this.lp||this.bD()?(z+=this.tA(ca),this.Af.push(this.Ac.length)):(ea=z.length-1,da<y-1&&"\n"===f.charAt(da+1)?this.ui.push(ea):this.pe.length&&ea===this.pe[this.pe.length-1]||this.pe.push(ea)):(z+=this.tA(ca),this.Af.push(this.Ac.length)),this.Ac+=ca,h&&(fa=fa<ha?ha:fa,this.OF(ha,w,8*da)))}Object(x.a)(z.length===
|
|
this.Af.length);this.yb=z;if(h){y=this.cl.length;Object(r.b)(this.kv);for(da=0;da<fa+1;++da)this.kv.push(!0);for(da=0;da<y;++da)ha=this.cl[da],0<=ha&&(this.kv[ha]=!1)}this.ct()||this.bD()||(this.yb=this.yb.toLowerCase());this.ui.sort(e);this.pe.sort(e);this.Kj.sort(e);return!0};e.prototype.OF=function(f,e,h){this.cl.push(f);if(this.GP)for(f=h;f<h+8;++f)this.FP.push(e[f])};e.prototype.U2=function(f,h,n){if(f){var r=this.Af[f-1];++r}else r=0;if(h<this.Af.length)var w=this.Af[h];else w=this.Af[h-1],
|
|
w===this.Ac.length-1&&++w;Object(x.a)(r>=f&&w>=h&&w>=r);if(!this.lp){if(!e.Sj(this.Kj,n-1))for(;0<w&&this.jp(this.Ac.charAt(w-1));)--w;f=this.Ac.length;if(!e.Sj(this.Kj,-1))for(;r<f-1&&this.jp(this.Ac.charAt(r));)++r;w<r&&(Object(x.a)(!1),w=r)}return new y.a(r,w)};e.prototype.Q2=function(f,e,h){Object(x.a)(0<=e&&e<=h&&e<f.length&&h<f.length);e=f[e];f=f[h];if(e===f||e+1===f)return!0;for(h=!0;0<=e&&e<f-1;)if(!this.kv[++e]){h=!1;break}return h};return e}();ba.a=ia},function(ia,ba,e){function ea(e){return{ambientStr:"",
|
|
resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:e,resultCode:ca.a.pr,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:e}}var x=e(1),ha=e(61),ca=e(88),da=e(80),aa=e(56),w=e(10),y=e(30);ia=function(){function e(){var e=this;this.At=function(){};this.tc=!1;this.sB=this.Gh=0;this.UL=50;this.$s=this.Zs=this.ic=null;Object(aa.e)().then(function(f){e.Wda="wasm-threads"===f})}e.prototype.J5=function(){this.sB++};e.prototype.jZ=function(e){return e!==this.sB};e.prototype.dY=
|
|
function(e,f){var h=this;e.forEach(function(e){var n,r,w;if(!h.jZ(f)){h.oia=!0;for(h.ba.Yd().ia.tM(e.page_num-1,e.out_str);!h.tc&&h.Gh<e.page_num||h.tc&&h.Gh>e.page_num;)h.At(ea(h.Gh)),h.tc?h.Gh--:h.Gh++;var z=h.ba.Qb()[e.page_num-1].Pa,y=[];(null===(n=e.highlights)||void 0===n?0:n.length)&&e.highlights.forEach(function(f){f.quads.forEach(function(f){z.YM(f);var e=new da.a;e.na=f[0];e.oa=f[2];e.Wy=f[4];e.Xy=f[6];e.ja=f[1];e.ka=f[3];e.Zy=f[5];e.$y=f[7];y.push(e)})});var x=h.ba.Yd().GZ(h.dy);n=x?null===
|
|
(r=e.out_str)||void 0===r?void 0:r.split("").reverse().join(""):e.out_str;r=x?null===(w=e.ambient_str)||void 0===w?void 0:w.replace(e.out_str,n):e.ambient_str;e={ambientStr:r||"",resultStr:n||"",resultStrStart:e.ambient_str?e.first_idx_within_ambient_str:-1,resultStrEnd:e.ambient_str?e.first_idx_within_ambient_str+e.out_str.length:-1,pageNum:e.page_num,resultCode:ca.a.To,quads:y,ambient_str:r||"",result_str:n,result_str_start:e.ambient_str?e.ambient_str.indexOf(e.out_str):-1,result_str_end:e.ambient_str?
|
|
e.ambient_str.indexOf(e.out_str)+e.out_str.length:-1,page_num:e.page_num};h.At(e)}})};e.prototype.y$=function(e,f,n){for(;!this.tc&&e<=n||this.tc&&e>=f;)this.At(ea(e)),this.tc?e--:e++;this.At({ambientStr:"",resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:0,resultCode:ca.a.DONE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:0})};e.prototype.Aia=function(e,f,n){1!==f&&this.Zs||(this.Zs=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!1}));if(!this.ic||this.ic.page_num<
|
|
f)this.ic=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!1});else{var h=this.ic.page_num;h===this.Zs.page_num&&(this.Zs=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!1}));f=e.filter(function(f){return f.page_num===h});if(f.length){var r=this.ic.index+1;this.ic.qh&&(r=f.length-this.ic.index);r===f.length?(f=e.filter(function(f){return f.page_num>h}),this.ic=h!==n&&f.length?Object(x.a)(Object(x.a)({index:0},f[0]),{qh:!1}):this.Zs):this.ic=Object(x.a)(Object(x.a)({index:r},f[r]),{qh:!1})}else this.ic=Object(x.a)(Object(x.a)({index:0},
|
|
e[0]),{qh:!1})}};e.prototype.Sda=function(e,f,n){n!==this.ba.Wb()&&this.$s||(this.$s=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!0}));if(!this.ic||this.ic.page_num>n)this.ic=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!0});else{var h=this.ic.page_num;h===this.$s.page_num&&(this.$s=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!0}));n=e.filter(function(f){return f.page_num===h});if(n.length){var r=this.ic.index+1;this.ic.qh||(r=n.length-this.ic.index);r===n.length?(n=e.filter(function(f){return f.page_num<
|
|
h}),this.ic=h!==f&&n.length?Object(x.a)(Object(x.a)({index:0},n[0]),{qh:!0}):this.$s):this.ic=Object(x.a)(Object(x.a)({index:r},n[r]),{qh:!0})}else this.ic=Object(x.a)(Object(x.a)({index:0},e[0]),{qh:!0})}};e.prototype.$aa=function(e,f,n){this.tc?this.Sda(e,f,n):this.Aia(e,f,n)};e.prototype.WL=function(e,f,n){var h=this;if(e>f)return this.y$(this.Gh,this.Qt,this.Pt),Promise.resolve(!0);var r=this.tc?Math.max(e,f-this.UL):e,y=this.tc?f:Math.min(e+this.UL,f);return this.ba.ou(this.dy,this.Cia,r,y).then(function(z){function x(){return h.iL&&
|
|
!h.Wda?new Promise(function(f){h.ba.Yd().addEventListener(w.e.FINISHED_RENDERING,function(){h.iL=!1;f(x())},{once:!0})}):h.tc?h.WL(e,r-1,n):h.WL(y+1,f,n)}if(h.jZ(n))return Promise.resolve(!1);if(!h.wda&&0<z.length)return h.$aa(z,e,f),h.dY([h.ic],n),Promise.resolve(!0);h.dY(z,n);0===z.length&&h.x$({Dia:r,Bia:y});return x()})};e.prototype.x$=function(e){var f=e.Dia;for(e=e.Bia;!this.tc&&this.Gh<e||this.tc&&this.Gh>f;)this.At(ea(this.Gh)),this.tc?this.Gh--:this.Gh++};e.prototype.x6=function(e){var f=
|
|
0;f=e&ha.a.Qu|e&ha.a.oz?f|1:f;f=e&ha.a.Gu?f|2:f;f=e&ha.a.sz?f|4:f;f=e&ha.a.rr?f|8:f;f=e&ha.a.mz?f|16:f;f=e&ha.a.jz?f|32:f;f=e&ha.a.cz?f|64:f;return f=this.ba.ba.zK.processingFlags===y.g.EN?f|256:f};e.prototype.oka=function(e){this.UL=e};e.prototype.i_=function(e,f,n,w){var h=this.ic.page_num;switch(!0){case w&&this.tc:this.Qt=e||1;this.Pt=1===h?n.Wb():h;break;case w&&!this.tc:this.Qt=h===n.Wb()?1:h;this.Pt=f||n.Wb();break;case !w:this.Qt=1,this.$s=this.Zs=this.ic=null,this.Pt=n.Wb()}};e.prototype.search=
|
|
function(e,f,n,z,y,x,aa){var h=this;this.sB++;this.oia=!1;this.ba&&this.ba!==e||(e.Yd().addEventListener(w.e.BEGIN_RENDERING,function(){h.iL=!0}),e.Yd().addEventListener(w.e.FINISHED_RENDERING,function(){h.iL=!1}));this.ba=e;this.At=x;this.tc=!!(n&ha.a.rr);this.wda=aa;this.dy=f;n&ha.a.Qu&&(this.dy=f.replace(/[.+?^${}()|[\]\\]/g,"\\$&").pj("**","[TEMPEscape]").pj("*","[A-z]*").pj("[TEMPEscape]","\\*"));this.dy=this.dy.pj("\n","");this.Cia=this.x6(n);!aa&&this.ic?n&ha.a.Gu?this.i_(z,y,e,f===this.ic.out_str):
|
|
this.i_(z,y,e,f.toLocaleLowerCase()===this.ic.out_str.toLocaleLowerCase()):(this.Qt=z||1,this.Pt=e.Wb());this.Gh=this.tc?this.Pt:this.Qt;return this.WL(this.Qt,this.Pt,this.sB)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(2),x=e(86),ha=e(80),ca=e(23),da=e(168),aa=e(100),w=e(169),y=e(15),n=e(39);ia=function(){function e(f){this.Ea="";this.jA=-1;this.rb=[];this.Yb="";this.Ij=f.Qb();this.Zc=new y.c;this.Zc.md();this.Rd=[];this.BG=[];this.AG=[];this.ee=0;this.yG=!1}e.prototype.nf=function(){for(var f=
|
|
this.rb.length/8,e=[],h=0;h<f;++h){var n=new ha.a,w=8*h;n.fQ(this.rb[w],this.rb[w+1],this.rb[w+2],this.rb[w+3],this.rb[w+4],this.rb[w+5],this.rb[w+6],this.rb[w+7]);e.push(n)}return e};e.prototype.hA=function(f){f=f.charCodeAt(0);return 32===f||1<=f&&31>=f||160===f||8192<=f&&(8207>=f||8232<=f&&8239>=f||8298<=f&&8303>=f)?!0:!1};e.prototype.dQ=function(f,e){--f;Object(n.b)(this.rb);this.Yb="";e.normalize();for(var h=[],r="",w,x=f-1;x<f+2;x++)this.Jr(x)&&(h.push({qg:x,Lo:this.Ea}),r+=this.Ea);if(0!==
|
|
h.length&&0!==r.length&&this.Jr(f)){x=new y.e;var aa=Array(8),da,ca=new y.a;ca.md();var ha=new y.f;ha.md();var ea=[],ba=!1;for(da=this.Zc.Aw();!da.Fc(ca);da=da.Vn())if(da.Je(x),x.normalize(),!e.xx(x)){var ia=[null,null],qa=[null,null],va=-1;var oa=-1;for(w=da.Yg();!w.Fc(ha);w=w.$g())if(w.le(aa),x.Yq(aa),!e.xx(x)){oa=w.Pi();var ua=w.bh();-1===va&&(va=ua);var Ca=ea.length;if(0<oa&&0<Ca){ba&&("\n"!==ea[0]&&(this.hA(ea[Ca-1])?ea[Ca-1]="\n":ea.push("\n")),ba=!1);for(Ca=0;Ca<ea.length;++Ca)this.Yb+=ea[Ca];
|
|
Object(n.b)(ea)}for(Ca=0;Ca<=oa;++Ca)ua+Ca<this.Ea.length&&(Ca<oa?this.Yb+=this.Ea.charAt(ua+Ca):ea.push(this.Ea.charAt(ua+Ca)));if(0<oa){Ca=x.oa-x.na;var ya=x.ka-x.ja;this.Nj(aa,Math.sqrt(Ca*Ca+ya*ya)/oa*3)}oa=ua+oa}ba=!0;ia[0]=va;for(w=va=0;w<h.length;w++)if(h[w].qg===f){va+=ia[0];break}else h[w].qg<f&&(va+=h[w].Lo.length);qa[0]=r.substring(Math.max(0,va-100),va);if(-1!==oa){ia[1]=oa;for(w=va=0;w<h.length;w++)if(h[w].qg===f){va+=oa;break}else h[w].qg<f&&(va+=h[w].Lo.length);qa[1]=r.substr(va+1,
|
|
100)}null!==ia[0]&&null!==ia[1]&&this.AG.push(ia);null!==qa[0]&&null!==qa[1]&&this.BG.push(qa)}}};e.prototype.M2=function(){var f,e=new y.a;e.md();var h=Array(8),n=Array(8),w=[0,0,0,0];for(f=this.Zc.Aw();!f.Fc(e);f=f.Vn()){var x=new y.d,aa=new y.d,da=new y.f;da.md();var ca=f.Yg(),ha=new y.f;ha.md();for(var ea=f.Yg();!ea.Fc(da);ea=ea.$g())ha=ea;ca.Ke(0,h);x.x=(h[0]+h[2]+h[4]+h[6])/4;x.y=(h[1]+h[3]+h[5]+h[7])/4;ha.Ke(ha.ek()-1,n);aa.x=(n[0]+n[2]+n[4]+n[6])/4;aa.y=(n[1]+n[3]+n[5]+n[7])/4;da=y.d.ie(x,
|
|
aa);x=Math.floor(2*Math.atan2(aa.y-x.y,aa.x-x.x)/Math.PI+.5);0>x&&(x+=4);w[x]+=da}f=0;e=w[0];for(h=1;4>h;h++)w[h]>e&&(f=h,e=w[h]);this.ee=90*f;this.yG=2>Math.abs(this.ee)||2>Math.abs(this.ee-180)};e.prototype.Gia=function(f,e){Object(n.b)(this.rb);this.Yb="";e.normalize();var h=[],r="",w;for(w=f-1;w<f+2;w++)this.Jr(w)&&(h.push({qg:w,Lo:this.Ea}),r+=this.Ea);if(0!==h.length&&0!==r.length&&this.Jr(f)){var x=new y.e,aa=Array(8),da,ca,ha=new y.a;ha.md();var ea,ba=new y.f;ba.md();var ia=[],qa=!1;for(ca=
|
|
this.Zc.Aw();!ca.Fc(ha);ca=ca.Vn())if(ca.Je(x),x.normalize(),!e.xx(x)){var va=[null,null],oa=[null,null],ua=-1,Ca=!0;for(ea=ca.Yg();!ea.Fc(ba);ea=ea.$g())if(ea.le(aa),x.Yq(aa),!e.xx(x)){var ya=ea.Pi();var Ea=ea.bh(),Aa=ia.length;if(0<ya&&0<Aa){qa&&("\n"!==ia[0]&&(this.hA(ia[Aa-1])?ia[Aa-1]="\n":ia.push("\n")),qa=!1);for(w=0;w<ia.length;++w)this.Yb+=ia[w];Object(n.b)(ia)}Aa=0;var Fa=Array(8),Ga=Array(8),Ba=!1,Ia=!1;for(da=0;da<ya;++da){var Ja=Ea+da;if(Ja<this.Ea.length){w=Array(8);var za=new y.e;ea.Ke(da,
|
|
w);za.Yq(w);if(e.xx(za))0===Aa?Ba=!0:Ia=!0;else{ua=Ja;Aa++;if(1===Aa){if(Ca){va[0]=Ja;for(w=Ca=0;w<h.length;w++)if(h[w].qg===f){Ca+=Ja;break}else h[w].qg<f&&(Ca+=h[w].Lo.length);oa[0]=r.substring(Math.max(0,Ca-100),Ca);Ca=!1}Ba&&ea.Ke(da,Fa)}ea.Ke(da,Ga);da<ya?this.Yb+=this.Ea.charAt(Ja):ia.push(this.Ea.charAt(Ja))}}}"\n"!==ia[ya]&&ia.push(" ");0<Aa&&(Ba&&this.cp(aa,Fa,!0),Ia&&this.cp(aa,Ga,!1),x.Yq(aa),ya=x.oa-x.na,Ea=x.ka-x.ja,this.Nj(aa,Math.sqrt(ya*ya+Ea*Ea)/Aa*3))}qa=!0;if(-1!==ua){va[1]=ua;
|
|
for(w=ea=0;w<h.length;w++)if(h[w].qg===f){ea+=ua;break}else h[w].qg<f&&(ea+=h[w].Lo.length);oa[1]=r.substr(ea+1,100)}null!==va[0]&&null!==va[1]&&this.AG.push(va);null!==oa[0]&&null!==oa[1]&&this.BG.push(oa)}}};e.prototype.Fia=function(f,e){Object(n.b)(this.rb);this.Yb="";for(var h=[],r="",w=f-1;w<f+2;w++)this.Jr(w)&&(h.push({qg:w,Lo:this.Ea}),r+=this.Ea);if(0!==h.length&&0!==r.length&&this.Jr(f)){var aa;w=Array(8);var da=Array(8),ca=new y.e,ha=new y.a,ba=new y.a;ha.md();ba.md();var ra=this.yG,sa=
|
|
this.yG,ia=new y.a;ia.md();var qa=new y.f;qa.md();var va=new y.d;va.init(e.na,e.ja);var oa=new y.d;oa.init(e.oa,e.ka);va=this.c3(va,oa,ha,ba);ha=va.kP;ba=va.EP;if(!ha.Fc(ia)&&!ba.Fc(ia)){var ua=new y.f;va=new y.f;ua.md();va.md();var Ca=aa=x.a.MAX;for(var ya=ha.Yg();!ya.Fc(qa);ya=ya.$g()){ya.Je(w);if(ra){var Ea=e.na;oa=e.ja}else oa=w[0],w[0]=w[1],w[1]=oa,oa=w[2],w[2]=w[3],w[3]=oa,Ea=e.ja,oa=e.na;var Aa=(w[3]+w[1])/2;if(w[2]<=Ea){var Fa=w[2]-Ea;Aa-=oa;Aa=Fa*Fa+Aa*Aa}else w[0]>=Ea?(Fa=w[0]-Ea,Aa-=oa,
|
|
Aa=Fa*Fa+Aa*Aa):(Aa-=oa,Aa*=Aa);Aa<aa&&(aa=Aa,ua=ya)}for(ya=ba.Yg();!ya.Fc(qa);ya=ya.$g())ya.Je(w),sa?(Ea=e.oa,oa=e.ka):(oa=w[0],w[0]=w[1],w[1]=oa,oa=w[2],w[2]=w[3],w[3]=oa,Ea=e.ka,oa=e.oa),Aa=(w[3]+w[1])/2,w[2]<=Ea?(Fa=w[2]-Ea,Aa-=oa,Aa=Fa*Fa+Aa*Aa):w[0]>=Ea?(Fa=w[0]-Ea,Aa-=oa,Aa=Fa*Fa+Aa*Aa):(Aa-=oa,Aa*=Aa),Aa<Ca&&(Ca=Aa,va=ya);if(!ua.Fc(qa)&&!va.Fc(qa)){oa=ya=0;Ca=aa=x.a.MAX;var Ga=ua.ek();for(Ea=0;Ea<Ga;++Ea)ua.Ke(Ea,w),Fa=(w[0]+w[2]+w[4]+w[6])/4,Aa=(w[1]+w[3]+w[5]+w[7])/4,Fa-=e.na,Aa-=e.ja,Aa=
|
|
Fa*Fa+Aa*Aa,Aa<aa&&(aa=Aa,ya=Ea);Ga=va.ek();for(Ea=0;Ea<Ga;++Ea)va.Ke(Ea,w),Fa=(w[0]+w[2]+w[4]+w[6])/4,Aa=(w[1]+w[3]+w[5]+w[7])/4,Fa-=e.oa,Aa-=e.ka,Aa=Fa*Fa+Aa*Aa,Aa<Ca&&(Ca=Aa,oa=Ea);aa=ya+ua.bh();Ca=oa+va.bh();Ca<aa&&(Ea=aa,aa=Ca,Ca=Ea);this.AG.push([aa,Ca]);Aa=[null,null];for(Ea=Fa=0;Ea<h.length;Ea++)if(h[Ea].qg===f){Fa+=aa;break}else h[Ea].qg<f&&(Fa+=h[Ea].Lo.length);Aa[0]=r.substring(Math.max(0,Fa-100),Fa);for(Ea=aa=0;Ea<h.length;Ea++)if(h[Ea].qg===f){aa+=Ca;break}else h[Ea].qg<f&&(aa+=h[Ea].Lo.length);
|
|
Aa[1]=r.substr(aa+1,100);null!==Aa[0]&&null!==Aa[1]&&this.BG.push(Aa);r=ha.Oc;Ca=ba.Oc;f=ua.Oc;h=va.Oc;if(r===Ca){f>h&&(r=ua,ua=va,va=r,r=ya,ya=oa,oa=r);ha.Je(ca);if(f===h&&ya===oa&&(r=new y.e,!r.UC(ca,e)))return;f===h?(oa<ya&&(r=ya,ya=oa,oa=r),r=oa):r=ua.Pi();ua.Ke(ya,w);Object(ea.a)(ra===sa);sa=ua.bh();Object(ea.a)(ya<=r);for(ra=ya;ra<=r;++ra)sa+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(sa+ra));0<=r&&(ua.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/(r+1)*3,this.cp(da,w,
|
|
!0),f===h&&(e=Array(8),va.Ke(oa,e),this.cp(da,e,!1)),this.Nj(da,ra));for(ya=ua=ua.$g();!ya.Fc(qa)&&ya.Oc<va.Oc;ya=ya.$g()){r=ya.Pi();e=ya.bh();for(ra=0;ra<=r;++ra)e+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(e+ra));0<r&&(ya.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.Nj(da,ra))}va.Ke(oa,w);r=va.Pi();if(f!==h){qa=va.bh();Object(ea.a)(oa<=r);for(ra=0;ra<=oa;++ra)qa+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(qa+ra));0<r&&(va.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=
|
|
Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.cp(da,w,!1),this.Nj(da,ra))}}else{r>Ca&&(ra=ha,ha=ba,ba=ra,r=ua,ua=va,va=r,r=ya,ya=oa,oa=r);ha.Je(ca);r=new y.e;r.UC(ca,e)||(ua=ha.Yg(),ya=0);ua.Ke(ya,w);r=ua.Pi();sa=ua.bh();Object(ea.a)(ya<=r);for(ra=ya;ra<=r;++ra)sa+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(sa+ra));0<r&&(ua.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.cp(da,w,!0),this.Nj(da,ra));for(ya=ua=ua.$g();!ya.Fc(qa);ya=ya.$g()){r=ya.Pi();ua=ya.bh();for(ra=0;ra<=r;++ra)ua+
|
|
ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(ua+ra));0<r&&(ya.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.Nj(da,ra))}for(ha=ha.Vn();!ha.Fc(ba)&&!ha.Fc(ia);ha=ha.Vn())if(this.KG(ha.lC()))for(ha.Je(ca),ya=ha.Yg();!ya.Fc(qa);ya=ya.$g()){r=ya.Pi();ua=ya.bh();for(ra=0;ra<=r;++ra)ua+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(ua+ra));0<r&&(ya.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.Nj(da,ra))}ba.Je(ca);r=new y.e;r.UC(ca,e)||(va=ba.gU(ba.fk()-
|
|
1),oa=va.ek()-1);for(ya=ba.Yg();!ya.Fc(qa)&&!ya.Fc(va);ya=ya.$g()){r=ya.Pi();e=ya.bh();for(ra=0;ra<=r;++ra)e+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(e+ra));0<r&&(ya.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.Nj(da,ra))}va.Ke(oa,w);r=va.Pi();sa=va.bh();Object(ea.a)(oa<=r);for(ra=0;ra<=oa;++ra)sa+ra<this.Ea.length&&(this.Yb+=this.Ea.charAt(sa+ra));0<r&&(va.le(da),ra=da[0]-da[2],sa=da[1]-da[3],ra=Math.sqrt(ra*ra+sa*sa),ra=ra/r*3,this.cp(da,w,!1),this.Nj(da,ra))}}}}};
|
|
e.prototype.Jr=function(f){if(0>f||f>=this.Ij.length)return!1;if(0>=this.jA||this.jA!==f){var e=this.Ij[f].text;if(null==e||!e.ready())return!1;this.Zc=e;this.Ea=this.Zc.Rb;this.M2();this.L2();this.jA=f}return!0};e.prototype.Nj=function(f,e){var h=this.rb.length/8;if(h){var n=Array(8);h=8*(h-1);for(r=0;8>r;++r)n[r]=this.rb[h+r];if(ha.a.qA(n,f,!0,e))for(r=0;8>r;++r)this.rb[h+r]=n[r];else for(r=0;8>r;++r)this.rb.push(f[r])}else for(var r=0;8>r;++r)this.rb.push(f[r])};e.prototype.cp=function(f,e,h){var n=
|
|
new y.d;n.init(f[0],f[1]);var r=new y.d;r.init(f[2],f[3]);var w=y.d.ej(r,n);w.normalize()&&(h?(r=new y.d,r.init(e[0],e[1]),e=y.d.ej(r,n).Kb(w),w=y.d.multiply(w,e),f[0]+=w.x,f[1]+=w.y,f[6]+=w.x,f[7]+=w.y):(n=new y.d,n.init(e[2],e[3]),e=y.d.ej(n,r).Kb(w),w=y.d.multiply(w,e),f[2]+=w.x,f[3]+=w.y,f[4]+=w.x,f[5]+=w.y))};e.prototype.rP=function(f){var e=ca.a.zo(0),h=ca.a.zo(1.570796325),n=ca.a.zo(3.14159265),w=ca.a.zo(3.14159265*1.5);switch(parseInt(f/90+.1,10)){case 0:return e;case 1:return h;case 2:return n;
|
|
case 3:return w;case 4:return e;default:return e}};e.prototype.KG=function(){return!0};e.prototype.oQ=function(f,e){e=this.rP(e);var h=new aa.a(f.na,f.ja);h=e.ra(h);f.na=h.x;f.ja=h.y;h=new aa.a(f.oa,f.ka);h=e.ra(h);f.oa=h.x;f.ka=h.y;f.normalize()};e.prototype.L2=function(){Object(n.b)(this.Rd);var f,e=new y.a;e.md();var h=new y.e,w=new da.a,x=!1;for(f=this.Zc.Aw();!f.Fc(e);f=f.Vn())if(this.KG(f.lC())){f.Je(h);h.normalize();var aa=new y.e;aa.Wl(h);this.oQ(h,this.ee);x?(this.Rd.push(w),w=new da.a,w.DG.Wl(aa),
|
|
w.Ah.Wl(h),w.kA=f,w.lA=f):(w.DG.Wl(aa),w.Ah.Wl(h),w.kA=f,w.lA=f,x=!0)}x&&this.Rd.push(w)};e.prototype.hP=function(f,e){for(var h=x.a.MAX,n=new y.e,r=f.kA,w=f.kA;;w=w.Vn()){if(!this.KG(w.lC()))if(w.Fc(f.lA))break;else continue;w.Je(n);this.oQ(n,this.ee);var aa=(n.ja+n.ka)/2;Math.abs(aa-e.y)<h&&(r=w,h=Math.abs(aa-e.y));if(w.Fc(f.lA))break}return r};e.prototype.gz=function(f,e,h){var n=y.d.ej(e,f),r=y.d.ej(h,f),w=r.Kb(n);if(0>=w)return r.Kb(r);r=n.Kb(n);if(r<=w)return h=y.d.ej(h,e),h.Kb(h);f=y.d.Ft(f,
|
|
y.d.multiply(n,w/r));h=y.d.ej(h,f);return h.Kb(h)};e.prototype.fz=function(f,e){var h=this.gz(new y.d(e.na,e.ja),new y.d(e.oa,e.ja),f),n=this.gz(new y.d(e.oa,e.ja),new y.d(e.oa,e.ka),f),r=this.gz(new y.d(e.oa,e.ka),new y.d(e.na,e.ka),f);f=this.gz(new y.d(e.na,e.ka),new y.d(e.na,e.ja),f);return Math.min(h,n,r,f)};e.prototype.c3=function(f,e,h,n){var r=-1,z=-1,x=!1,fa=!1,da=this.rP(this.ee),ca=new y.d,ha=new y.d;ca.QC(f);ha.QC(e);f=new aa.a(ca.x,ca.y);f=da.ra(f);ca.x=f.x;ca.y=f.y;f=new aa.a(ha.x,ha.y);
|
|
f=da.ra(f);ha.x=f.x;ha.y=f.y;e=0;for(var ba=this.Rd.length;e<ba;++e)da=this.Rd[e],0>r&&da.Ah.contains(ca.x,ca.y)&&(r=e,fa=!0),0>z&&da.Ah.contains(ha.x,ha.y)&&(z=e,x=!0);if(!fa||!x){da=[];for(f=0;f<this.Rd.length;++f)da.push(0);f=Math.max(r,z);var ia=new y.e;ia.ab(ca.x,ca.y,ha.x,ha.y);ia.Zca();0<=f&&ia.union(this.Rd[f].Ah);var qa=new y.e;e=0;for(ba=this.Rd.length;e<ba;++e){var va=new y.e;va.Wl(this.Rd[e].Ah);qa.UC(va,ia)&&(da[e]=1)}ba=da.indexOf(1);for(ia=e=da.indexOf(1);-1!==e;){ia=e;e++;if(e>=da.length)break;
|
|
e=da.indexOf(1,e)}if(0>ba)return new w.a(h,n);da=e=!1;qa=Math.max.apply(Math,this.Rd.map(function(f){return f.DG.ka}));va=this.Ij[this.jA];void 0!==va.oa&&void 0!==va.ka&&(e=Math.round(ha.x)>=Math.round(va.oa)&&Math.round(ha.y)>=Math.round(va.ka),da=0===ca.x&&0===ca.y,ha.y>qa&&(e=!0));if(0>f)r=ba,z=ia,fa=new y.e,fa.Wl(this.Rd[r].Ah),x=(ca.x-fa.na)*(ca.x-fa.oa),x=0<x?Math.min(Math.abs(ca.x-fa.na),Math.abs(ca.x-fa.oa)):0,f=(ca.y-fa.ja)*(ca.y-fa.ka),f=0<f?Math.min(Math.abs(ca.y-fa.ja),Math.abs(ca.y-
|
|
fa.ka)):0,x=x*x+f*f,f=Math.min(Math.abs(ha.x-fa.na),Math.abs(ha.x-fa.oa)),ba=(ha.y-fa.ja)*(ha.y-fa.ka),ba=0<ba?Math.min(Math.abs(ha.y-fa.ja),Math.abs(ha.y-fa.ka)):0,fa=f*f+ba*ba,e?z=this.Rd.length-1:!da&&x>fa&&(fa=r,r=z,z=fa);else{va=new y.e;va.Wl(this.Rd[f].Ah);qa=new y.d;fa?qa.QC(ha):qa.QC(ca);Object(ea.a)(!(fa&&x)&&!(!fa&&!x));Object(ea.a)(!va.contains(qa.x,qa.y));var oa=va=void 0;f-ba>Math.max(ia-f,0)?(va=Math.min(f,ba),oa=ia):(va=Math.max(f,ia),oa=ba);e&&!x?(z=this.Rd.length,va=z-1):va!==f&&
|
|
(x=Array(3),e=Array(3),x[0]=this.fz(qa,this.Rd[oa].Ah),x[1]=this.fz(qa,this.Rd[va].Ah),x[2]=this.fz(qa,this.Rd[f].Ah),x[3]=va?this.fz(qa,this.Rd[va-1].Ah):x[1],e[0]=oa,e[1]=va,e[2]=f,f=1,x[0]<x[1]&&(f=0),x[2]<x[f]&&(f=2),1!==f&&x[3]<x[f]&&(f=1),va=e[f]);fa?z=va:r=va}r=da?0:r}0<=r&&0<=z&&(h=this.hP(this.Rd[r],ca),n=this.hP(this.Rd[z],ha));return new w.a(h,n)};return e}();ba.a=ia},function(){},function(ia,ba,e){var ea=e(101),x=e(91);ia=function(){function e(e){void 0===e&&(e=[]);this.Ib=e||[]}Object.defineProperty(e.prototype,
|
|
"length",{get:function(){return this.Ib.length},enumerable:!1,configurable:!0});e.prototype.caa=function(e){return this.Ib[this.Ib.length-1-e]};e.prototype.zY=function(e,x){this.Ib[this.Ib.length-1-e]=x;return this};e.prototype.insertAt=function(e,x){this.Ib.splice(this.Ib.length-1-e,0,x);return this};e.prototype.push=function(e){this.Ib.unshift(e);return this};e.prototype.pop=function(){this.Ib.shift();return this};e.prototype.translate=function(e,x){void 0===e&&(e=0);void 0===x&&(x=0);var aa=new ea.a;
|
|
aa.au(e,x);this.push(aa);return this};e.prototype.Pk=function(e,da,aa,w){e=new x.a(e,da);aa=(new x.a(aa,w)).subtract(e);w=new ea.a;w.au(aa.X,aa.Y);this.push(w);return this};e.prototype.scale=function(e,x){if(null===e||void 0===e)e=1;if(null===x||void 0===x)x=e;var aa=new ea.a;aa.wM(e,x);this.push(aa);return this};e.prototype.cla=function(e,x){var aa=new ea.a;aa.xM(e,x);this.push(aa);return this};e.prototype.rotate=function(e,x){void 0===x&&(x=!1);var aa=new ea.a;aa.py(e,x);this.push(aa);return this};
|
|
e.prototype.Ds=function(){return this.Ib.reduce(function(e,x){return e.multiply(x)},ea.a.Identity)};e.prototype.clear=function(){delete this.Ib;this.Ib=[];return this};return e}();ba.a=ia},function(ia,ba,e){function ea(e,x){return-1<(" "+e.className+" ").indexOf(" "+x+" ")}function x(e,x){return 1E-6>Math.abs(e-x)}function ha(e,x,w){x.e6=void 0;w.e6=void 0;(0,eval)("str")}function ca(e,x,w){function y(){for(;e();)if(100<Date.now()-n&&!w){n=Date.now();setTimeout(y,0);return}x()}var n=Date.now();y()}
|
|
e.d(ba,"c",function(){return ea});e.d(ba,"b",function(){return x});e.d(ba,"d",function(){return ha});e.d(ba,"a",function(){return ca});ia=e(0);e.n(ia);e(2)},function(ia,ba,e){function ea(){return Object(x.b)(void 0,void 0,void 0,function(){return Object(x.d)(this,function(){Object(ha.g)(window.Ya.ae()+"external/pikaday.css");Object(ha.g)(window.Ya.ae()+"external/pikaday.override.css");return[2,e.e(19).then(e.t.bind(null,435,7))]})})}e.d(ba,"a",function(){return ea});var x=e(1),ha=e(16)},function(ia,
|
|
ba){ba.a=function(e,ea,x,ha){ea.forEach(function(ca){null===e||void 0===e?void 0:e.addEventListener(ca,x,ha)})}},function(ia,ba){function e(e){return e.replace(ea,function(e,x){return x.toUpperCase()})}var ea=/-([a-z])/g,x=/^[a-z]/,ha=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;ba.a=function(ca,da){for(var aa in da){var w=da[aa];aa=e(aa);var y=ca.style,n=aa;if("number"===typeof w){var h=aa;w=x.test(h)&&ha.test(h[0].toUpperCase()+
|
|
h.slice(1))?w+"px":""+w}y[n]=w}}},function(ia,ba){ba.a=function(e){e=e.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}}},function(ia,ba){var e={button:!0,checkbox:!0,color:!0,file:!0,hidden:!0,image:!0,radio:!0,range:!0,reset:!0,submit:!0};ba.a=function(ea){var x=!1;ea instanceof HTMLInputElement&&(x=!e[ea.type]);var ha="textarea"===ea.tagName.toLowerCase();return x||ha||ea.isContentEditable}},function(ia,ba){function e(e){return[].some.call(document.getElementsByTagName("link"),
|
|
function(x){return x.id===e})}ba.a=function(ea){if(!e(ea)){var x=document.createElement("link");x.rel="stylesheet";x.type="text/css";x.href=ea;x.id=ea;document.getElementsByTagName("head")[0].appendChild(x)}}},function(ia,ba,e){function ea(e){return"string"===typeof e&&!/^https?:\/\//i.test(e)&&x.exec(e)}e.d(ba,"a",function(){return ea});var x=/^(?:[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}|localhost)\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)(?=\/)/},function(ia){function ba(){throw Error("setTimeout has not been defined");
|
|
}function e(){throw Error("clearTimeout has not been defined");}function ea(f){if(w===setTimeout)return setTimeout(f,0);if((w===ba||!w)&&setTimeout)return w=setTimeout,setTimeout(f,0);try{return w(f,0)}catch(fa){try{return w.call(null,f,0)}catch(ka){return w.call(this,f,0)}}}function x(f){if(y===clearTimeout)return clearTimeout(f);if((y===e||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(f);try{return y(f)}catch(fa){try{return y.call(null,f)}catch(ka){return y.call(this,f)}}}function ha(){h&&
|
|
f&&(h=!1,f.length?n=f.concat(n):r=-1,n.length&&ca())}function ca(){if(!h){var e=ea(ha);h=!0;for(var w=n.length;w;){f=n;for(n=[];++r<w;)f&&f[r].ph();r=-1;w=n.length}f=null;h=!1;x(e)}}function da(f,e){this.I$=f;this.hH=e}function aa(){}ia=ia.exports={};try{var w="function"===typeof setTimeout?setTimeout:ba}catch(z){w=ba}try{var y="function"===typeof clearTimeout?clearTimeout:e}catch(z){y=e}var n=[],h=!1,f,r=-1;ia.ZV=function(f){var e=Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-
|
|
1]=arguments[r];n.push(new da(f,e));1!==n.length||h||ea(ca)};da.prototype.ph=function(){this.I$.apply(null,this.hH)};ia.title="browser";ia.Lna=!0;ia.Coa={};ia.Ina=[];ia.version="";ia.Bqa={};ia.on=aa;ia.addListener=aa;ia.once=aa;ia.off=aa;ia.removeListener=aa;ia.removeAllListeners=aa;ia.emit=aa;ia.Spa=aa;ia.Tpa=aa;ia.listeners=function(){return[]};ia.binding=function(){throw Error("process.binding is not supported");};ia.doa=function(){return"/"};ia.Qna=function(){throw Error("process.chdir is not supported");
|
|
};ia.vqa=function(){return 0}},function(ia,ba,e){var ea=e(1);ia=e(47);var x=e(27),ha=e(48),ca=e(187);e=function(e){function aa(w,y,n,h){n=e.call(this,w,y,n,h)||this;if(!y)return n;y=w.Ra();for(h=0;h<y.length;h++)if(h!==y.length-3){var f=y[h],r=f.x;f=f.y;w.NoResize||(r=new ca.a(r,f,x.a.handleWidth,x.a.handleHeight,h),n.Gb.push(r))}return n}Object(ea.c)(aa,e);aa.prototype.testSelection=function(e,y,n,h){if(this.DP)return ha.a.pl(e,y,n,this.aa.bc());var f=e.Ra().slice(-2),r=f[0];f=f[1];return y<r.x||
|
|
y>f.x||n<r.y||n>f.y?ha.a.xp(e,y,n,h,this.aa.bc()):!0};return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(83);var x=e(47),ha=e(48),ca=e(98),da=e(14);e=function(e){function w(w,n,h,f){w=e.call(this,w,n,h,f)||this;w.Of();return w}Object(ea.c)(w,e);w.prototype.Of=function(){var e;this.Gb=[];this.Qc()&&!this.qa.NoResize&&(this.Gb=ca.a.FI(this.Rn()),!this.qa.MaintainAspectRatio&&da.a.DM(this.qa)&&(e=this.Gb).push.apply(e,ca.a.uJ(this.Rn())));this.HE()&&this.Gb.push(ca.a.lJ(this.qa,this.aa))};w.prototype.getDimensions=
|
|
function(e){return x.a.prototype.getDimensions.apply(this,[e])};w.prototype.testSelection=function(e,n,h){return ha.a.pl(e,n,h,this.aa.bc())};return w}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(47);var x=e(4);e=function(e){function ca(x){var aa=e.call(this,x,!1,!1,null)||this;aa.annot=x;return aa}Object(ea.c)(ca,e);ca.prototype.testSelection=function(){return!1};ca.prototype.getDimensions=function(){return new x.d(0,0,0,0)};ca.prototype.draw=function(){};ca.prototype.drawSelectionOutline=function(){};
|
|
return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(190),ha=e(127),ca=e(27),da=e(48),aa=e(47),w=e(111);ia=function(e){function n(h,f,n,w){f=e.call(this,h,f,n,w)||this;f.lk=ca.a.handleWidth;f.og=ca.a.handleHeight;f.SL=ca.a.rotationHandleWidth;f.RL=ca.a.rotationHandleHeight;f.Sq=aa.a.Sq;f.Of(h);return f}Object(ea.c)(n,e);n.prototype.sw=function(e){e=e.measurementCaptionOptions.captionRect;return new ha.a(e.x1+e.Ba()/2,e.y1+e.wa()/2,this.lk,this.og)};n.prototype.Of=function(e){if(this.Qc()&&!this.qa.NoResize){for(var f=
|
|
e.Ra(),h=0;h<f.length-1;h++)this.Gb.push(new x.a(f[h].x,f[h].y,this.lk,this.og,h));e.Measure&&"PolygonDimension"===e.IT&&this.Gb.push(this.sw(this.qa))}this.HE()&&this.Gb.push(new w.a(this.SL,this.RL,this.Sq,this.qa,this.aa))};n.prototype.testSelection=function(e,f,n,w){return this.isSelected()?da.a.FU(e,f,n,w,this.aa.bc()):da.a.xp(e,f,n,w,this.aa.bc())};return n}(aa.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(83);var x=e(193),ha=e(127);e=function(e){function da(x,w,y,n){w=e.call(this,x,w,y,n)||
|
|
this;w.qa=x;return w}Object(ea.c)(da,e);da.prototype.Rn=function(){return x.a};da.prototype.Of=function(){e.prototype.Of.call(this);this.qa.Measure&&"PolygonDimension"===this.qa.IT&&this.Gb.push(this.sw(this.qa))};da.prototype.sw=function(e){e=e.measurementCaptionOptions.captionRect;return new ha.a(e.x1+e.Ba()/2,e.y1+e.wa()/2,this.lk,this.og)};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(48);ia=e(47);var ha=e(126),ca=e(27),da=e(4),aa=e(98),w=e(160);e=function(e){function n(h,f,n,w){f=
|
|
e.call(this,h,f,n,w)||this;f.lk=ca.a.handleWidth;f.og=ca.a.handleHeight;f.lV=!!h.IsText;if(f.lV&&(f.ai=h.nf(),!f.ai))return f;f.Of();return f}Object(ea.c)(n,e);n.prototype.Of=function(){var e;this.Gb=[];this.Qc()&&!this.qa.NoResize&&(this.lV?!this.qa.NoResize&&this.ai[0]&&(this.Gb.push(w.a.aU(this.ai[0])),this.Gb.push(w.a.XS(this.ai[this.ai.length-1]))):(this.Gb=aa.a.FI(this.Rn()),this.qa.MaintainAspectRatio||(e=this.Gb).push.apply(e,aa.a.uJ(this.Rn()))))};n.prototype.testSelection=function(e,f,n){return e.IsText?
|
|
x.a.SM(e,f,n):x.a.pl(e,f,n,this.aa.bc())};n.prototype.getDimensions=function(e){var f=e.IsText?2:0,h=e.X-f,n=e.Y-f;return new da.d(h,n,h+(e.Width+2*f),n+(e.Height+2*f))};n.prototype.Rn=function(){return ha.a};return n}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=function(e){function x(x,da,aa,w){return e.call(this,x,da,aa,w)||this}Object(ea.c)(x,e);return x}(e(41).c);ba.a=ia},function(ia){ia.exports=function(ba,e){return function(ea){return ba(e(ea))}}},function(ia){var ba=Object.prototype.toString;
|
|
ia.exports=function(e){return ba.call(e)}},function(ia){ia.exports=function(){return!1}},function(ia){ia.exports=function(){return!1}},function(ia,ba,e){function ea(f,e){this.mB=f.flags.get(ca.a.COMMIT_ON_SEL_CHANGE);ha.a.call(this,f,e)}var x=e(0);e.n(x);var ha=e(24),ca=e(13),da=e(16),aa=e(17),w=e(132),y=e(6),n=e(12),h=window;ea.FORCE_SELECT=!1;ea.prototype={mB:!1,Oo:"Ch",yl:"choice",nl:function(){ha.a.prototype.nl.apply(this,arguments);this.IQ();this.T3()},Gi:function(f){if(ha.a.prototype.Gi.call(this,
|
|
f)){var e=new ca.a({mask:[ca.a.COMBO]});e.deserialize(f);if(e.get(ca.a.COMBO))return!0}return!1},deserialize:function(f,e,h){ha.a.prototype.deserialize.call(this,f,e,h);y.a.getAttribute(f,"Opt")&&(f=y.a.getAttribute(f,"Opt"),this.Va.options=f.split(",").map(function(f){return{value:f,displayValue:f}}),this.gc().Si(this.Ab()),this.Si(this.gc().Ab()))},Fd:function(){var f=Object.assign(ha.a.prototype.Fd.apply(this,arguments),{"overflow-y":"visible","overflow-x":"hide"}),e=f.height?f.height:0;(f["font-size"]?
|
|
parseInt(f["font-size"],10):0)>e&&(f["font-size"]=e+"px");return f},td:function(f){return Object.assign(ha.a.prototype.td.apply(this,arguments),Object.assign({},{resize:"none","min-height":"",height:this.CC(f),width:this.DC(f)},Object(w.b)(this)),this.Hl())},refresh:function(){var f=this;ha.a.prototype.refresh.apply(this,arguments);var e=this.innerElement;if(e&&e!==document.activeElement){var h=this.UO(!0);e.innerHTML=h.innerHTML;e.value=this.Ab();this.element&&(h=xc(this.element.children),h.next(),
|
|
(h=Tc(h))&&h.forEach(function(e){f.element.removeChild(e)}),(h=this.Wu)&&h.forEach(function(e){f.element.appendChild(e)}),this.Mo(e))}},bo:function(){var f=this.innerElement;if(f)var e=f.value;return e},Mo:function(f){f.disabled=!!this.fieldFlags.get(ca.a.READ_ONLY)},createInnerElement:function(){return this.UO(!1)},UO:function(f){function e(){w(50,ma.length,!0);la.removeEventListener("mousedown",e);la.removeEventListener("touchend",e)}function w(f,e,h){h=void 0===h?!1:h;for(var n=document.createDocumentFragment();f<
|
|
e;++f){var r=ma[f],w=Object(x.isUndefined)(r.displayValue)?r.value:r.displayValue,z=document.createElement("OPTION");z.text=w;z.value=r.value;n.appendChild(z)}if(h){if(ba===ha)var aa=y.innerElement;else(h=y.Wu)&&0<h.length&&(aa=h[0]);aa&&aa.childElementCount<e&&aa.appendChild(n)}else ba.appendChild(n)}var y=this,ha,ja=aa.o&&(aa.m&&12.1>=aa.r||!aa.m&&12>=aa.r);if(!this.fieldFlags.get(ca.a.EDIT)||ja||9===aa.i||ea.FORCE_SELECT)var ba=ha=document.createElement("select");else ha=document.createElement("input"),
|
|
ha.setAttribute("list",this.fieldName+"_list"),ha.addEventListener("focusin",function(f){y.fieldFlags.get(ca.a.READ_ONLY)||(f.stopImmediatePropagation(),ha.value="")}),ba=document.createElement("datalist"),ba.id=this.fieldName+"_list",this.Tia([ba]);ja=this.td(n.a.Rm);this.ml(ha,ja);this.Mo(ha);var ma=this.options,la=f?this.innerElement:ha;f=ma.findIndex(function(f){return f.value===y.Ab()});50<ma.length&&50>f?(w(0,50),Object(da.a)(la,["mousedown","touchend"],e)):w(0,ma.length);ha.addEventListener("change",
|
|
function(){var f=y.bo(),e=y.options.find(function(e){return e.value===f});e=e&&e.displayValue;Object(x.isUndefined)(e)&&(e=f);e=h.Annotations.ha.zc.xb.va.create("Keystroke",y.Va,{value:f,change:e,changeEx:f,willCommit:!1,selStart:-1,selEnd:-1});y.Va.Tf("K",e);y.trigger(ea.Events.CHANGE,f)});return ha},T3:function(){this.Qg.addEventListener("mousedown",function(f){f.stopPropagation()},{passive:!1})}};ea.prototype=Object.assign(Object.create(ha.a.prototype),ea.prototype);ea.Events={CHANGE:"change"};
|
|
Object.defineProperties(ea.prototype,{options:{get:function(){return this.Va.options}}});ba.a=ea},function(ia,ba,e){function ea(e,y){ca.a.call(this,e,y)}var x=e(0);e.n(x);var ha=e(13),ca=e(24),da=e(132),aa=e(6);ea.prototype={Oo:"Ch",yl:"list",refresh:function(){ca.a.prototype.refresh.apply(this,arguments);var e=this.innerElement;if(e){var y=this.Ab(),n=this.createInnerElement();e.innerHTML=n.innerHTML;e.disabled=n.disabled;e.multiple=n.multiple;if(e.multiple)for(e=e.options,n=0;n<e.length;n++){var h=
|
|
e[n];-1!==y.indexOf(h.value)?h.setAttribute("selected","selected"):h.removeAttribute("selected")}else e.value=y}},Gi:function(e){if(ca.a.prototype.Gi.call(this,e)){var w=new ha.a({mask:ha.a.COMBO});w.deserialize(e);if(!w.get(ha.a.COMBO))return!0}return!1},deserialize:function(e,y,n){ca.a.prototype.deserialize.call(this,e,y,n);aa.a.getAttribute(e,"Opt")&&(e=aa.a.getAttribute(e,"Opt"),this.Va.options=e.split(",").map(function(e){return{value:e,displayValue:e}}),this.gc().Si(this.Ab()),this.Si(this.gc().Ab()))},
|
|
Fd:function(){return Object.assign(ca.a.prototype.Fd.apply(this,arguments),{"overflow-y":"auto","overflow-x":"hidden"})},bo:function(){var e=this.innerElement;if(e){if(e.multiple){for(var y=e.options,n=[],h=0;h<e.length;h++){var f=y[h];f.selected&&n.push(f.value||f.text)}return n}return e.value}return null},td:function(){return Object.assign(ca.a.prototype.td.apply(this,arguments),Object.assign({},{"overflow-y":"scroll","overflow-x":"hidden"},Object(da.b)(this)),this.Hl())},createInnerElement:function(){var e=
|
|
this,y=document.createElement("select");y.name=this.fieldName.replace(/\.|\s/g,"_");y.setAttribute("size",this.options.length);this.options.forEach(function(e){var h=Object(x.isUndefined)(e.displayValue)?e.value:e.displayValue,f=document.createElement("option");f.value=e.value;f.innerHTML=h;y.appendChild(f)});this.fieldFlags.get(ha.a.READ_ONLY)&&(y.disabled=!0);this.fieldFlags.get(ha.a.MULTI_SELECT)&&(y.multiple=!0);y.addEventListener("change",function(){var n=e.bo();e.trigger(ea.Events.CHANGE,n)});
|
|
return y},mU:function(){}};ea.prototype=Object.assign(Object.create(ca.a.prototype),ea.prototype);ea.Events={CHANGE:"change"};Object.defineProperties(ea.prototype,{options:{get:function(){return this.Va.options}}});ba.a=ea},function(ia,ba,e){function ea(e,f){da.a.call(this,e,f);this.Dr=void 0;this.$m=this.Gz=null}var x=e(0);e.n(x);var ha=e(2),ca=e(4),da=e(24),aa=e(16),w=e(10),y=e(13),n=window;ea.prototype={Oo:"Sig",yl:"signature",deserialize:function(e,f,n){da.a.prototype.deserialize.call(this,e,
|
|
f,n);e=e.getElementsByTagName("imagedata");0<e.length&&(this.appearances._DEFAULT={Normal:e[0].textContent})},e_:function(){this.$m&&(this.fieldFlags.get(y.a.READ_ONLY)?(this.$m.style.background="darkgrey",this.$m.style.color="lightgrey"):(this.$m.style.background=this.v2,this.$m.style.color=this.w2))},refresh:function(){da.a.prototype.refresh.call(this);this.e_()},Im:function(){return this.Uc()&&!this.tw()},Fd:function(){var e=da.a.prototype.Fd.apply(this,arguments);this.Im()&&(e["background-color"]=
|
|
"transparent",e["border-style"]="none",e["border-color"]=null,e["border-width"]=null,e["border-radius"]=null);return e},td:function(){var e=da.a.prototype.td.apply(this,arguments);e=Object.assign(e,{width:e.width,height:e.height},this.Hl());this.Uc()&&!this.Hl()&&(e["background-color"]="transparent");return e},createInnerElement:function(e){var f=document.createElement("div");this.Aja(f,e);return f},Aja:function(e,f){var h=this;this.hV().then(function(n){if(!n){var r=f.aa.ao("AnnotationCreateSignature");
|
|
n=h.createSignHereElement(r);h.w2=n.style.color;h.v2=n.style.background;r=h.K6(n,r,f);h.$m=n;h.e_();e.appendChild(r);h.ig()?n.style.display="none":h.O5(f,n);h.Lha(f,n)}else if(Object(x.isNil)(h.Uc().objnum)&&Object(x.isNil)(h.Uc().gennum)||!h.Im())n=h.IR(),e.appendChild(n)})},IR:function(){var e=new Image;e.src=this.YI();e.style.width="100%";e.style.height="100%";return e},UX:function(){if(0===this.cda.children.length){var e=this.IR();this.cda.appendChild(e)}},YI:function(){var e=this.appearances[this.appearance],
|
|
f="";e&&(e=e.Normal)&&e.data&&(f=e.data);return f},hV:function(){var e=this;return new Promise(function(f){if(void 0!==e.Dr)f(e.Dr);else{var h=new Image;""!==e.YI()?(h.src=e.YI(),h.onload=function(){e.Dr=!e.Cda(h);f(e.Dr)}):(e.Dr=!1,f(e.Dr))}})},Cda:function(e){var f=document.createElement("canvas"),h=f.getContext("2d"),n=5;if(15>e.height||15>e.width)n=0;f.width=e.width-2*n;f.height=e.height-2*n;h.drawImage(e,n,n,f.width,f.height,0,0,f.width,f.height);e=!0;f=h.getImageData(0,0,f.width,f.height).data;
|
|
for(h=0;h<f.length;h+=4)if(n=255===f[h]&&255===f[h+1]&&255===f[h+2],0!==f[h+3]&&!n){e=!1;break}return e},O5:function(e,f){var h=this;e.Pb().forEach(function(e){h.ZJ(e)&&(h.Vt(e),f.style.display="none")})},Lha:function(e,f){var h=this;e.addEventListener(w.b.ANNOTATION_CHANGED,function(n,r,w){w.imported&&"add"===r&&n.forEach(function(e){h.ZJ(e)&&(h.Vt(e),f.style.display="none")});"modify"===r&&n.forEach(function(f){f===h&&h.aY(e)});"delete"===r&&(1===n.length&&n[0]===h.ig()||n.includes(h.ig())?(h.Vt(null),
|
|
f.style.display="block"):n.includes(h)&&h.ig()&&e.Dc(h.ig()))})},yca:function(e,f,n){this.ig()&&n.Dc(this.ig());e.style.display="none";this.Vt(f);this.aY(n)},aY:function(e){if(this.ig()){var f=this.ig(),h=this.bJ(),n=Math.min(h.wa()/f.Height,h.Ba()/f.Width),w=0===this.rotation||180===this.rotation?h.wa()/2-f.Height*n/2:h.Ba()/2-f.Width*n/2;h=90===this.rotation?new ca.d(h.x1+w,h.y2-f.Height*n,h.x1+f.Width*n+w,h.y2):180===this.rotation?new ca.d(h.x2-f.Width*n,h.y2-f.Height*n-w,h.x2,h.y2-w):270===this.rotation?
|
|
new ca.d(h.x2-f.Width*n-w,h.y1,h.x2-w,h.y1+f.Height*n):new ca.d(h.x1,h.y1+w,h.x1+f.Width*n,h.y1+f.Height*n+w);f.resize(h);e.qb(f)}},L6:function(e){var f=document.createElement("div");Object(aa.b)(f,{position:"absolute",maxHeight:"100%",maxWidth:"100%",left:"0px",top:"0px",padding:"3px",background:"darkblue",color:"white"});f.innerHTML=e.Zk();return f},K6:function(e,f,n){var h=this,r=document.createElement("div");Object(aa.b)(r,{height:"100%",width:"100%"});r.addEventListener("click",function(r){h.ig()||
|
|
h.fieldFlags.get(y.a.READ_ONLY)||n.mK()||(f.removeEventListener("signatureReady.sigWidget",null,{df:!0}).addEventListener("signatureReady.sigWidget",function(r){var w=n.aa.Hc(r.PageNumber);f.iY(r,f.location,90*-w+h.rotation);h.Jda(r)&&h.yca(e,r,n)},{once:!0}),f.mouseLeftDown(r),f.mouseLeftUp(r,h))});r.appendChild(e);return r},Jda:function(e){var f=this.bJ();e=e.Sa();return!(f.x1>e.x2||e.x1>f.x2||f.y1>e.y2||e.y1>f.y2)},ZJ:function(e){var f=e instanceof n.Annotations.FreeHandAnnotation||e instanceof
|
|
n.Annotations.xh;if(this.ig()||!f||this.ua()!==e.ua())return!1;f=this.bJ();var h=e.Sa();if(90===this.rotation){var w="x1";var y="y2"}else 180===this.rotation?(w="x2",y="y2"):(w=270===this.rotation?"x2":"x1",y="y1");e=Math.max(e.getRectPadding(),.1);return Math.abs(h[w]-f[w])<=e&&Math.abs(h[y]-f[y])<=e},ig:function(){return this.Gz},Vt:function(e){this.$m&&(this.$m.style.display=e?"none":"block");this.Gz=e},bJ:function(){var e=new ca.d(this.Sa());if(90===this.rotation||270===this.rotation)e.x2=e.x1+
|
|
this.Height,e.y2=e.y1+this.Width;return e}};ea.prototype=Object.assign(Object.create(da.a.prototype),ea.prototype);Object.defineProperties(ea.prototype,{annot:{get:function(){Object(ha.j)("Using the annot property is deprecated since WebViewer 8.4. Please use getAssociatedSignatureAnnotation instead.");return this.Gz},set:function(e){Object(ha.j)("Using the annot property is deprecated since WebViewer 8.4. Please use setAssociatedSignatureAnnotation instead.");this.Gz=e}}});ba.a=ea},function(ia,ba,
|
|
e){function ea(e,y){x.a.call(this,e,y);this.fieldFlags.set(da.a.PUSH_BUTTON);this.fieldFlags.get("Hidden")&&this.uh(!1)}var x=e(70),ha=e(24),ca=e(132),da=e(13),aa=e(6);ea.prototype={Cv:"P",yl:"pButton",Fd:function(){var e=ha.a.prototype.Fd.apply(this,arguments);this.Im()&&(e["background-color"]="transparent",e["border-style"]="none",e["border-color"]=null,e["border-width"]=null,e["border-radius"]=null);return e},Im:function(){return this.Uc()&&!this.tw()},td:function(){var e=Object.assign(x.a.prototype.td.apply(this,
|
|
arguments),Object.assign({},{"background-color":"transparent","text-align":"center"},Object(ca.b)(this)),this.Hl());this.Uc()&&!this.Hl()&&(e.color="transparent");return e},deserialize:function(e,y,n){x.a.prototype.deserialize.call(this,e,y,n);(e=aa.a.getAttribute(e,"ButtonLabel"))&&(this.captions.Normal=e)},bo:function(){return null},createInnerElement:function(e){var w=document.createElement("button");w.setAttribute("tabindex",0);this.captions.Normal&&w.appendChild(document.createTextNode(this.captions.Normal));
|
|
this.Mo(w);this.ib=e;return w},refresh:function(){ha.a.prototype.refresh.apply(this,arguments);var e=this.innerElement;e&&(e.innerText=this.captions.Normal)}};ea.prototype=Object.assign(Object.create(x.a.prototype),ea.prototype);ba.a=ea},function(ia,ba,e){function ea(e,n){ha.a.call(this,e,n);this.mZ();this.k_=!0}var x=e(24),ha=e(70),ca=e(57),da=e(13),aa=e(6),w=e(12);ea.prototype={Cv:"C",yl:"checkBox",cK:function(){return this.Ab()===this.gk()},hr:function(e){var n=this.cK()?Object(ca.b)(this.aJ(),
|
|
!0):"";if(0===n.length&&0!==e.innerHTML.length||0!==n.length&&0===e.innerHTML.length)e.innerHTML=n},refresh:function(){x.a.prototype.refresh.call(this);var e=this.innerElement;if(e){this.hr(e);this.ml(e,this.td(w.a.Rm));var n=!!this.fieldFlags.get(da.a.READ_ONLY),h=e.childNodes||[];if(h.length){var f=this.font.fillColor;h[0].style.fill=n?"#ECECEC":f}this.Mo(e)}},uj:function(e){e===this.gk()?(this.appearance=e,ha.a.prototype.uj.call(this,e)):(this.appearance="Off",ha.a.prototype.uj.call(this,"Off"))},
|
|
td:function(){var e=!!this.fieldFlags.get(da.a.READ_ONLY),n=ha.a.prototype.td.apply(this,arguments);n.left=Math.round(n.left);n.top=Math.round(n.top);return Object.assign(n,{border:"ridge thin",margin:0,height:"100%",width:"100%",display:"flex",backgroundColor:e?"#D2D2D2":"inherits"},this.Hl())},bo:function(){var e=this.innerElement;if(e)return e.checked?this.gk():"Off"},aJ:function(){return this.captions.Normal.toLowerCase()||"4"},createInnerElement:function(){function e(){h.disabled||(n.hr(h),"Off"===
|
|
n.Ab()?n.trigger(x.a.Events.CHANGE,n.gk()):n.trigger(x.a.Events.CHANGE,"Off"))}var n=this,h=document.createElement("div");this.Mo(h);this.hr(h);h.setAttribute("tabindex",0);h.addEventListener("click",function(){e()});h.addEventListener("keydown",function(f){"Space"===f.code&&e()});return h},deserialize:function(e,n,h){var f=aa.a.getAttribute(e,"N");f&&(this.appearances.Off={},this.appearances[f]={});ha.a.prototype.deserialize.call(this,e,n,h)}};ea.prototype=Object.assign(Object.create(ha.a.prototype),
|
|
ea.prototype);Object.defineProperties(ea.prototype,{buttonName:{set:function(e){this.E2=e},get:function(){return this.E2}}});ba.a=ea},function(ia,ba,e){function ea(f){f=f.toLocaleLowerCase();return-1<f.indexOf("h:mm tt")||-1<f.indexOf("hh:mm")}function x(){n.locale(z.Gn.local,{months:Object.values(z.Gn.i18n.months),monthsShort:Object.values(z.Gn.i18n.monthsShort),ypa:!0,weekdays:Object.values(z.Gn.i18n.weekdays),weekdaysShort:Object.values(z.Gn.i18n.weekdaysShort),Cqa:!0})}function ha(f,e,h){f=Object(w.a)(f,
|
|
e);return(h=n(f,h))?h.toDate():null}var ca=e(1),da=e(24);ia=e(204);var aa=e(57),w=e(105),y=e(19),n=e(65);e.n(n);var h=e(13),f=new RegExp(/["'](.*?)["']/),r={setDefaultDate:!0,keyboardInput:!1},z=function(e){function w(h,n){h=e.call(this,h,n)||this;h.Oo="Tx";h.yl="date";n="";try{var r=h.gc().Fl();r.F?n=r.F[0].javascript:r.K&&(n=r.K[0].javascript)}catch(na){throw na;}r=null;try{var w=n.match(f);w&&(r=w[1])}catch(na){throw na;}h.SW=r||"m/d/yy";return h}Object(ca.c)(w,e);w.prototype.createInnerElement=
|
|
function(){var f=this,z=e.prototype.createInnerElement.call(this);z.onchange=function(e){""===e.target.value&&(f.Sb(""),f.trigger(da.a.Events.COMMIT))};(function(){return Object(ca.b)(f,void 0,void 0,function(){var f,e,fa,ja,ba,ka,qa,pa,oa=this;return Object(ca.d)(this,function(ca){switch(ca.label){case 0:return x(),f=this.fieldFlags,e=f.get(h.a.READ_ONLY),fa=this.SW,(ja=aa.e[fa])||(ja=fa.toLocaleUpperCase()),this.Ab()&&(ba=ha(this.Ab(),fa,ja)),e||(z.setAttribute("placeholder",fa),z.title=this.o$),
|
|
e&&(z.setAttribute("disabled","disabled"),z.title=""),[4,Object(y.r)()];case 1:return ka=ca.ea(),qa=Object.assign({},r,w.Gn),pa=function(){oa.Ak.adjustPosition()},this.Ak=new ka.default({field:z,format:ja,defaultDate:ba,showTodayButton:!0,onOpen:function(){var f=ha(oa.value,fa,ja);oa.Ak.setDate(f,!0);oa.f4();window.addEventListener("resize",pa)},onClose:function(){window.removeEventListener("resize",pa)},onSelect:function(f){if(0===f.getHours()&&0===f.getMinutes()){var e=new Date;f.setHours(e.getHours());
|
|
f.setMinutes(e.getMinutes())}ea(fa)&&(f.setHours(oa.o2||f.getHours()),f.setMinutes(oa.p2||f.getMinutes()));oa.Sb(n(f).format(ja));oa.trigger(da.a.Events.COMMIT)},toString:function(f,e){return n(f).format(e)},parse:function(f,e){f=n(f,e);if(f.isValid())return ea(fa)&&(oa.o2=f.hour(),oa.p2=f.minutes()),f.toDate()}}),this.Ak.setMoment(n()),this.Ak.config(qa),[2]}})})})();return z};w.prototype.refresh=function(){e.prototype.refresh.call(this);var f=this.innerElement;f&&(this.fieldFlags.get(h.a.READ_ONLY)?
|
|
(f.setAttribute("disabled","disabled"),f.setAttribute("placeholder",""),f.title=""):(f.removeAttribute("disabled"),f.setAttribute("placeholder",this.SW),f.title=this.o$))};w.prototype.yaa=function(){return this.Ak};w.prototype.dha=function(){var f=Object.assign({},r,w.Gn);this.Ak.config(f);this.Ak.isVisible()&&(this.Ak.hide(),this.Ak.show());x()};w.prototype.f4=function(){var f=this.innerElement;f&&(f.readOnly=!!this.fieldFlags.get(h.a.READ_ONLY),f.readOnly&&this.Ak.hide())};w.Gn={firstDay:1,isRTL:!1,
|
|
i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:"January February March April May June July August September October November December".split(" "),monthsShort:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" "),today:"Today",invalidDateTime:"Invalid Date/Time: Input should match format"},local:"en"};return w}(ia.a);ba.a=z},function(ia,ba,
|
|
e){var ea=e(0);e.n(ea);var x=e(2),ha=e(24),ca=e(205),da=e(19),aa=e(22),w=e(334),y=e(102),n=e(74),h=e(10),f=e(6),r=e(12);(function(e){function z(f){if(!f)throw Error("XfdfManager requires AnnotationManager to initialize");this.Cc=f}function ba(f,e){this.mN=f;this.QB=e||function(){return!0}}function ja(e,h){e.writeStartElement("value");e.writeString(f.a.escape(h));e.writeEndElement()}var pa=e.Annotations;String.prototype.trim||function(){var f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=
|
|
function(){return this.replace(f,"")}}();ba.prototype.Bx=function(e,h,n){var r=this.mN;r.writeStartElement("field");r.writeAttributeString("name",f.a.escape(h));e=n.value;Object(ea.isNull)(e)||(Array.isArray(e)?0===e.length?(r.writeStartElement("value"),r.writeEndElement()):e.forEach(function(f){ja(r,f)}):ja(r,e));r.writeEndElement()};ba.prototype.DD=function(e,h,n){e=f.a.escape(h);h=this.mN;n.value&&(h.writeStartElement("field"),h.writeAttributeString("name",e),ja(h,n.value),h.writeEndElement());
|
|
h.writeStartElement("field");h.writeAttributeString("name",e)};ba.prototype.MK=function(){this.mN.writeEndElement()};z.prototype={g5:function(e){return e&&0<e.getElementsByTagName("annots").length?(f.a.oT(e,"link"),f.a.oT(e,"widget"),e.getElementsByTagName("annots")[0].childNodes):[]},qT:function(f){return f?f.querySelector("xfdf > fields"):null},oba:function(f){return f&&(f=f.getElementsByTagName("pdf-info"),0<f.length)?f[0]:null},v4:function(f,e,h){var r=this;Object(w.a)(new n.a(f),function(f){return r.Cc.aa.hc(f)},
|
|
function(f){var h=r.Cc,n=h.Zj,w=h.aa;if(w.getDocument()){n.AY(f.calculationOrder);var z=f.fields;Object.keys(z).forEach(function(f){var e=z[f],h=n.Hw(e.name),r=e.widgets.reduce(function(f,e){return e instanceof ca.a?"Off"!==e.appearance&&e.appearance||f:f},null);h=h.Ab();r&&r!==h&&(h=r);e.Eg(h,!0);n.uv(z[f],!0)});h.Ci(f.widgets,{imported:!0});h.Ci(f.custom,{imported:!0});w=w.getDocument();w.IA(f.documentActions);h=f.pages;w=w.Qb();for(var y=0;y<h.length;++y){var aa=h[y],fa=Number(aa.number);0<fa&&
|
|
fa<w.length+1?w[fa-1].IA(aa.actions):Object(x.j)("Invalid page number on PDFInfo page:",fa)}e(f)}},h)},v0:function(f,e,h){function r(){var n=w.oba(f);n?w.v4(n,function(f){w.vQ(z,function(h){h.kl=h.kl.concat(f.widgets);h.kl=h.kl.concat(f.custom);e(h)},h)}):w.vQ(z,function(){e.apply(this,arguments)},h)}var w=this,z=this.g5(f),y=this.qT(f);y?this.yQ(new n.a(y),r,!1):r()},Ul:function(f,e){var h={};e=e||{Yt:!0};if(f){var r=this.qT(f);r&&this.yQ(new n.a(r),function(){},!0);r=f.getElementsByTagName("add");
|
|
var w=f.getElementsByTagName("modify");f=f.getElementsByTagName("delete");0<r.length&&(h.LA=this.tN(r[0].childNodes,e));0<f.length&&(h.Yv=this.Y_(f[0],e));0<w.length&&(h.FK=this.D0(w[0].childNodes,Object.assign({},e,{Hda:!0})))}return h},Y_:function(f,e){var h=[];f=f.getElementsByTagName("id");for(var n=0;n<f.length;++n){var r=this.Cc.hg(f[n].textContent);r&&(h.push(r),this.Cc.Dc(r,{imported:e.Yt,isUndoRedo:e.jx}))}return h},D0:function(f,e){return this.tN(f,e)},tN:function(f,e){var h=[];this.uQ(f,
|
|
h,0,f.length,e);return h},Sd:function(f,e,h,n){n=void 0===n?{}:n;var w=this.Cc,z=null,y=!1,aa=(w.Pj[f]||[]).reduce(function(f,h){return f?f:h.prototype.Gi(e)?h:null},null);if(!aa)return Object(x.j)("Unsupported annotation type.",f),{annot:z,BM:y};var fa=e.getAttribute("page");fa=parseInt(fa,10);var da=fa+1,ja=e.getAttribute("name");if(n.HU){var ca=this.Cc.dC(ja,da)[0];h=this.Cc.dC(ja,da,h)[0];if(ca||h)Object(x.j)("Duplicate annotation ID '"+ja+"' detected while loading data. The last annotation with this ID will be renamed."),
|
|
h=r.a.HC(),e.setAttribute("name",h)}else(z=this.Cc.dC(ja,da)[0])&&z.uA&&z.rR(),!z&&n.Hda&&(z=this.Cc.dC(ja)[0])&&z.Uja(z.PageNumber);if(!z){if("widget"===f){z=e.getAttribute("title");var ha=w.Zj.Hw(z)}z=new aa(ha);"ink"===f&&"Arc"===e.getAttribute("subject")&&(z=new w.Pj.arc[0](ha));y=!0}try{var ea;fa<w.aa.Wb()&&(ea=w.aa.hc(da));if(ea)z.isImporting=!0,z.bb=e,z.deserialize(e,ea,w),z.isImporting=!1;else return w.wB[fa]||(w.wB[fa]=[]),w.wB[fa].push({data:e,annot:z}),{annot:null,BM:!1};z.Bja(n.HU);y||
|
|
w.Kla(z);var ba="add"===n.action||"modify"===n.action&&z.IsAdded,ka="modify"===n.action&&!ba;z.IsAdded=ba;z.IsModified=ka}catch(Ia){Object(x.j)("Error parsing annotation",Ia),y=!1,z=null}return{annot:z,BM:y}},uQ:function(e,n,r,w,z){var y=[],x=[];for(z=z||{};r<w;++r)if(e[r].nodeType===Node.ELEMENT_NODE){var aa=e[r],fa=f.a.$I(e[r]),da=e[r].getElementsByTagName("trn-custom-data");if(da&&0<da.length&&(da=JSON.parse(da[0].getAttribute("bytes")))&&this.Cc.Pj[da["trn-annot-type"]]){fa=da["trn-annot-type"];
|
|
aa=document.createElement(fa);for(da=0;da<e[r].attributes.length;da++)aa.setAttribute(e[r].attributes[da].name,e[r].attributes[da].value);for(da=0;da<e[r].childNodes.length;da++)aa.appendChild(e[r].childNodes[da].cloneNode(!0))}fa=this.Sd(fa,aa,n,z);if(aa=fa.annot)n.push(aa),fa.BM?y.push(aa):x.push(aa)}0<y.length&&(y.forEach(function(f){f.isImporting=!0}),this.Cc.Ci(y,z.Yt,z.jx),y.forEach(function(f){f.IsAdded=!!z.jx;f.IsModified=!1;f.isImporting=!1}));0<x.length&&this.Cc.trigger(h.b.ANNOTATION_CHANGED,
|
|
[x,"modify",{imported:z.Yt,isUndoRedo:z.jx}])},yQ:function(f,e,h){function n(e){var h=f.fa("name");if(!h)return Object(x.j)("Invalid field name part:",h,f.current),null;e=e?e+"."+h:h;h={name:e};var r=[h],w=null;for(f.Ka();f.advance();){var z=f.Oa();switch(z){case "value":Object(ea.isNull)(w)?w=f.current.textContent:(Object(ea.isArray)(w)||(w=[w]),w.push(f.current.textContent));break;case "field":(z=n(e))&&0<z.length&&(r=r.concat(z));break;default:Object(x.j)("unknown field child node: ",z)}}f.$a();
|
|
Object(ea.isNull)(w)||(h.value=w);return r}var r=this.Cc.Zj;f.Ka();f.advance()?Object(da.a)(function(){"field"===f.Oa()&&n("").forEach(function(f){r.uv(f,!0)});var e=f.advance();e||f.$a();return e},e,h):e()},vQ:function(f,e,h){function n(){h.uq()?e({kl:[]}):(r.uQ(f,x,w,Math.min(w+y,f.length),h),w>z&&(z+=1E3,r.Cc.aa.Ff().ve().forEach(function(f){r.Cc.Sc(f)})),setTimeout(function(){w+=y;w<f.length?n():e({kl:x})},h.batchDelay))}var r=this,w=0,z=1E3,y=2*h.batchSize,x=[];n()},qz:function(f,e,h){if(this.Cc.aa.getDocument()&&
|
|
!f.Sh()){var n=this.Cc.aa.hc(f.ua()).inverse(),r=document.createElementNS("",f.zC()),w=f.IsModified;r=f.serialize(r,n);f.IsModified=w;h&&(f=this.Cc.SI(f.Author),r.setAttribute("title",f));f=new XMLSerializer;r&&(r=f.serializeToString(r),r=r.replace(/<([a-zA-Z0-9]+) (?:xml)ns="http:\/\/ns.adobe.com\/xfdf\/"(.*?)>/,"<$1$2>"),e.writeString(r))}},G1:function(f){var e=this.Cc,h=e.ue(),n=e.aa,r=n.getDocument(),w=[];h.Ry({Bx:function(f,e,h){void 0!==h.type&&w.push(h)},DD:function(f,e,h){void 0!==h.type&&
|
|
w.push(h)}});var z=r.Qb().map(function(f,e){return{number:e+1,actions:f.Fl()}}).filter(function(f){return 0<Object.keys(f.actions).length});Object(y.d)(f,{calculationOrder:h.$S(),widgets:e.Pb().filter(function(f){return f.ko()}),fields:w,documentActions:r.Fl(),pages:z},function(f){return 1>f?(Object(x.j)("Invalid page number:",f),f=new aa.a,f.Ri(1),f):n.hc(f)})},K1:function(f){f=f||{};var h=new e.XMLWriter("UTF-8","1.0");h.formatting="none";var n=f.useDisplayAuthor||!1;if(f.annotList){var r=f.fields||
|
|
!1;var w=f.widgets||!1;var z=f.links||!1}else r=!1!==f.fields,w=!1!==f.widgets,z=!1!==f.links;h.writeStartDocument();h.writeStartElement("xfdf");h.writeAttributeString("xmlns","http://ns.adobe.com/xfdf/");h.writeAttributeString("xml:space","preserve");w&&this.G1(h);r&&this.D1(h);h.writeStartElement("annots");r=this.Cc;r=f.annotList||r.Pb();for(w=0;w<r.length;++w){var y=r[w];y instanceof pa.Pd?z&&!y.sq()&&this.qz(y,h,n):y instanceof ha.a||this.qz(y,h,n)}h.writeEndElement();h.writeEndElement();f.annotList||
|
|
this.H1(h);return h.flush()},H1:function(f){var e=this.Cc;f.writeStartElement("pages");var h=e.aa.getDocument();if(h){if(h=h.Qb()){var n=e.aa.hc(1);f.writeStartElement("defmtx");f.writeAttributeString("matrix",n.m_a+","+n.m_b+","+n.m_c+","+n.m_d+","+n.m_h+","+n.m_v);f.writeEndElement();for(var r=1;r<h.length;++r){var w=e.aa.hc(r+1);if(!w.vs(n)){f.writeStartElement("pgmtx");var z="";z+=w.m_a+","+w.m_b+","+w.m_c+","+w.m_d+","+w.m_h+","+w.m_v;f.writeAttributeString("matrix",z);f.writeAttributeString("page",
|
|
r.toString());f.writeEndElement()}}}f.writeEndElement()}},B1:function(f){f.writeStartElement("add");for(var e=this.Cc.Pb(),h=0;h<e.length;++h){var n=e[h];!n.IsAdded||n instanceof pa.Pd&&n.sq()||(this.qz(n,f),n.IsAdded=!1)}f.writeEndElement()},F1:function(f){f.writeStartElement("modify");for(var e=this.Cc,h=e.Pb(),n=0;n<h.length;++n){var r=h[n];!r.IsModified||r instanceof pa.Pd&&r.sq()||!e.Qc(r)||(this.qz(r,f),r.IsModified=!1)}f.writeEndElement()},C1:function(f){f.writeStartElement("delete");for(var e=
|
|
this.Cc,h=this.m0(),n=0;n<h.length;++n)f.writeStartElement("id"),f.writeAttributeString("page",h[n].wc),f.writeString(h[n].id),f.writeEndElement();e.PH.length=0;f.writeEndElement()},D1:function(f){f.writeStartElement("fields");this.Cc.Zj.Ry(new ba(f));f.writeEndElement()},E1:function(f){f.writeStartElement("fields");var e=[];this.Cc.Zj.Ry(new ba(f,function(f){e.push(f);return f.IsModified}));e.forEach(function(f){f.IsModified=!1});f.writeEndElement()},I1:function(f){var h=new e.XMLWriter("UTF-8",
|
|
"1.0");h.writeStartDocument();h.writeStartElement("xfdf");h.writeAttributeString("xmlns","http://ns.adobe.com/xfdf/");h.writeAttributeString("xml:space","preserve");h.writeStartElement("fields");var n=new e.Annotations.ha.xf;f.forEach(function(f){n.uv(f)});n.Ry(new ba(h));h.writeEndElement();h.writeEndElement();f=h.flush();return f=f.replace(/\t/g,"")},J1:function(f){for(var e=[],h=0;h<f.length;++h){var n=f[h];Object(ea.isUndefined)(n.name)||e.push(n.name+"="+encodeURIComponent(n.value))}return e.join("&")},
|
|
U$:function(){var f=new e.XMLWriter("UTF-8","1.0");f.writeStartDocument();f.writeStartElement("xfdf");f.writeAttributeString("xmlns","http://ns.adobe.com/xfdf/");f.writeAttributeString("xml:space","preserve");this.E1(f);this.B1(f);this.F1(f);this.C1(f);f.writeEndElement();f=f.flush();return f=f.replace(/\t/g,"")},m0:function(){return this.Cc.PH.filter(function(f){return!(f instanceof pa.Pd&&f.sq())}).map(function(f){return{id:f.Id,wc:f.GT()}})}};e.Ya.f2=z;var ma={toXmlDate:function(){Object(x.d)("8.2",
|
|
"XfdfUtils.toXmlDate",["XFDFUtils.toXMLDate"]);return f.a.Ly.apply(f.a,arguments)}};"serializePoint deserializePoint serializePointArray deserializePointArray serializeRect deserializeRect serializeFringeRect deserializeFringeRect serializeMeasure deserializeMeasure parseDefaultAppearance".split(" ").forEach(function(e){ma[e]=function(){Object(x.d)("8.2","XfdfUtils."+e,["XFDFUtils."+e]);return f.a[e].apply(null,arguments)}});e.Annotations.g2=ma})(window)},function(ia,ba,e){var ea=e(1),x=e(26),ha=
|
|
e(82),ca=e(21),da=e(18),aa=e(3);ia=function(e){function w(n,h){n=e.call(this,n)||this;n.qo=null;n.sg="AnnotationEditTool";n.name=h||aa.m.EDIT;return n}Object(ea.c)(w,e);w.prototype.switchIn=function(){Object(da.d)(this.aa,"default");this.aa.$q("auto")};w.prototype.switchOut=function(n){e.prototype.switchOut.call(this,n);this.aa.$q("none")};w.prototype.mouseLeftDown=function(n){e.prototype.mouseLeftDown.call(this,n);if(!this.isSelecting()){this.mouseDown=!0;this.state=x.a.oc.NONE;n=this.aa.la;var h=
|
|
this.Me(this.lc);h&&(this.Fn=h.pageNumber,n.he(),this.state=x.a.oc.kz)}};w.prototype.mouseMove=function(n){e.prototype.mouseMove.call(this,n);if(this.state===x.a.oc.kz&&(n=this.pageCoordinates[1])&&this.Fn===n.pageNumber){var h=n.x,f=n.y;n=0>h-this.nn?h:this.nn;var r=0>f-this.pn?f:this.pn;h=Math.abs(h-this.nn);f=Math.abs(f-this.pn);Object(ha.b)([this.Qe,this.lc],this.pageCoordinates,this.aa);this.qo=ca.a.HV(n,r,h,f)}};w.prototype.mouseLeftUp=function(n){var h=this;if(this.state!==x.a.oc.kz)x.a.prototype.mouseLeftUp.call(this,
|
|
n);else{this.mouseDown=!1;var f=function(){h.qo=null;h.state=x.a.oc.NONE;Object(ha.a)()};if(!this.qo||!this.aa.$o){f();return}this.qo.na===this.qo.oa&&this.qo.ja===this.qo.ka?e.prototype.mouseLeftUp.call(this,n):(n=this.f3(this.Fn,this.qo),this.aa.ta().ey(n));f()}if(f=this.pageCoordinates[1])n=this.aa.la,this.c_(n,f),this.b_(n)};w.prototype.f3=function(e,h){for(var f,n=[],w=this.aa.ta().Pb().filter(function(f){return f.ua()===e&&f.isVisible()}),y=0;y<w.length;y++){f=w[y];var x=1;!0===f.NoZoom&&(x=
|
|
this.aa.Lb(f.ua()));ca.a.cha(h,ca.a.HV(f.X,f.Y,f.Ba()/x,f.wa()/x))&&n.push(f)}return n};return w}(x.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(150);var x=e(3);e=function(e){function ca(da,aa){void 0===aa&&(aa=x.m.ARROW);da=e.call(this,da,aa)||this;da.IT="LineArrow";da.defaults.StartLineStyle="None";da.defaults.EndLineStyle="OpenArrow";return da}Object(ea.c)(ca,e);ca.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.th(this.defaults.StartLineStyle),
|
|
this.annotation.Dm(this.defaults.EndLineStyle),this.annotation.IT=this.IT)};return ca}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(45);ia=e(113);var ha=e(43),ca=e(8),da=e(4),aa=e(3),w=e(21),y=e(52),n=e(2),h=window;e=function(f){function e(e,n){void 0===n&&(n=aa.m.CALLOUT);n=f.call(this,e,n)||this;n.OB=!1;n.lineCount=2;n.initialText="Insert text here";x.a.call(n,e,h.Annotations.gb,h.Annotations.gb.nc.FreeTextCallout);n.defaults.TextColor=new ca.a(255,0,0);n.defaults.FontSize="12pt";n.defaults.Font=
|
|
"Helvetica";n.defaults.TextAlign="left";n.defaults.Width=150;n.defaults.Height=30;n.sg="CalloutCreateTool";return n}Object(ea.c)(e,f);e.ry=function(f){e.prototype.Zk=f};e.prototype.Zk=function(){return this.initialText};e.prototype.nja=function(f){Object(n.d)("8.0","setEnableAutoSized",["enableAutoSizedTextBox","disableAutoSizedTextBox"]);this.OB=f};e.prototype.w9=function(){this.OB=!0};e.prototype.A7=function(){this.OB=!1};e.prototype.cx=function(){var f=this.aa.ta().mC().As,e=f?document.body.contains(f.Wg()):
|
|
!1;return!!f&&e};e.prototype.mouseLeftDown=function(e){if(this.cx())this.annotation=null;else{if(!this.annotation&&(f.prototype.mouseLeftDown.call(this,e),this.annotation&&this.annotation.sj(this.annotation.Ra().slice(0,1)),1!==this.lineCount||!this.annotation))return;this.annotation.CalloutLineCount=this.lineCount;this.annotation.setContents(this.Zk());this.annotation.Wt(this.OB?y.a.Lu:y.a.NONE);this.annotation.Rotation=90*this.aa.Hc(this.annotation.PageNumber);this.annotation.TextAlign=this.defaults.TextAlign;
|
|
this.annotation.Font=this.defaults.Font;var h=this.defaults.TextColor;this.annotation.TextColor=new ca.a(h.R,h.G,h.B,h.A);this.annotation.FontSize=this.defaults.FontSize;this.annotation.Ra().length===this.lineCount+1+2?(this.finish(),e.preventDefault()):f.prototype.mouseLeftDown.call(this,e)}};e.prototype.mouseMove=function(e){f.prototype.mouseMove.call(this,e);if(this.annotation&&!this.isSelecting()){var h=this.pageCoordinates[1];null!==h&&null!==h.x&&null!==h.y&&h.pageNumber===this.annotation.ua()&&
|
|
(e=this.annotation.Ra(),e.length>this.annotation.CalloutLineCount&&(this.annotation.sj(e.slice(0,this.annotation.CalloutLineCount)),this.annotation.Bc(h.x,h.y),h=e[e.length-1],this.annotation.rk()&&(this.annotation.Ei=h.x,this.annotation.Fi=h.y),this.annotation.Kh()===y.a.Lu?(h=this.VS(this.defaults.Width,.005),e=e[e.length-1],this.annotation.Ei=e.x,this.annotation.Fi=e.y):h=this.VS(this.defaults.Width,this.defaults.Height),this.annotation.Bc(h.x1,h.y1),this.annotation.Bc(h.x2,h.y2),this.aa.la.qb(this.annotation)))}};
|
|
e.prototype.mouseDoubleClick=function(f){this.annotation||ha.a.prototype.mouseDoubleClick.call(this,f)};e.prototype.mouseRightDown=function(){null!==this.annotation&&(this.Mv(),this.aa.la.Dc(this.annotation),this.annotation=null)};e.prototype.contextMenu=function(f){f.preventDefault()};e.prototype.VS=function(f,e){var h=this.annotation.PageNumber;var n=90*this.aa.Hc(h);if(90===n||270===n)e=[e,f],f=e[0],e=e[1];n=this.annotation.Ra()[this.annotation.CalloutLineCount];f=[new da.d(n.x+.001,n.y-e/2,n.x+
|
|
f+.001,n.y+e/2),new da.d(n.x-f-.001,n.y-e/2,n.x-.001,n.y+e/2),new da.d(n.x-f/2,n.y-e-.001,n.x+f/2,n.y-.001),new da.d(n.x-f/2,n.y+.001,n.x+f/2,n.y+e+.001)];n=this.aa.getDocument();e=n.ad(h);h=n.mb(h);var r=h.width,z=h.height;if(90===e||270===e)h=[z,r],r=h[0],z=h[1];f.forEach(function(f){return f.Jh(new da.d(0,0,r,z))});var y=[];h=this.annotation.Ra();for(e=0;e<h.length-1;e++)y.push({start:h[e],end:h[e+1]});return f.find(function(f){return y.every(function(e){return!w.a.Math.lea(e.start,e.end,f)})})||
|
|
f[0]};e.prototype.Yl=function(){return!0};return e}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(3),ha=e(173);ia=function(e){function da(aa,w){void 0===w&&(w=x.m.COUNT_MEASUREMENT);var y=e.call(this,aa,w)||this;y.defaults.Icon="Check";y.addEventListener(ha.a.Events.ANNOTATION_CREATED,function(){y.annotation.Db("trn-is-count","true")});return y}Object(ea.c)(da,e);return da}(ha.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(26),ca=e(3),da=e(10),aa;(function(e){e.SINGLE_PAGE="SINGLE_PAGE";
|
|
e.ALL_PAGES="ALL_PAGES";e.MULTI_PAGE="MULTI_PAGE"})(aa||(aa={}));e=function(e){function w(n,h){void 0===h&&(h=ca.m.CROP);var f=e.call(this,n,h)||this;f.defaults.StrokeColor=new x.a(0,165,228);f.defaults.StrokeThickness=1;f.defaults.Opacity=.9;f.Ui=!1;f.Nb=null;f.wl=aa.SINGLE_PAGE;f.Di=[];f.$i=null;n.addEventListener(da.e.DOCUMENT_UNLOADED,function(){f.reset()});return f}Object(ea.c)(w,e);w.prototype.bja=function(e){var h;if(!e||!Object.values(aa).some(function(f){return f===e}))throw Error("You must set the crop mode to one of "+
|
|
Object.values(aa).join(", ")+" ");this.wl!==e&&(e===aa.SINGLE_PAGE?this.Ui?this.P6():this.Bp():e===aa.MULTI_PAGE?0<(null===(h=this.Iw())||void 0===h?void 0:h.length)?this.Ui&&this.GK(this.Iw()):this.Nb?this.$t([this.Nb.ua()]):this.$t([]):e===aa.ALL_PAGES&&this.Ui&&(1<this.OI().length&&this.Bp(),this.DZ()),this.wl=e)};w.prototype.P6=function(){var e=this.Nb;this.Bp();var h=this.aa.ta();h.Dc(this.Nb,{source:"CropCreateTool"});this.Ui=!0;(this.$i=this.Nb=this.DH(e,this.aa.jg()))&&h.pg(this.Nb)&&this.$i&&
|
|
h.Cg(this.$i)};w.prototype.uaa=function(){return this.wl};w.prototype.Iw=function(){return this.YK};w.prototype.$t=function(e){this.YK=e};w.prototype.OI=function(){return Object(ea.e)([this.Nb],this.wl===aa.ALL_PAGES||this.wl===aa.MULTI_PAGE?this.Di:[])};w.prototype.Bp=function(){var e=this.aa.la;this.Di.forEach(function(h){h&&e.Dc(h,{source:"CropCreateTool"})});this.Di=[];this.$i=null};w.prototype.reset=function(){this.Nb&&(this.aa.ta().Dc(this.Nb),this.Nb=null,this.Ui=!1,0<this.Di.length&&this.Bp(),
|
|
this.$t([]))};w.prototype.switchIn=function(n){var h=this;e.prototype.switchIn.call(this,n);var f=this.aa.ta();f.addEventListener(da.c.E_,function(f){if(f&&h.wl===aa.ALL_PAGES||h.wl===aa.MULTI_PAGE)h.$i=f[0]});f.addEventListener(da.c.qN,function(e,n,y){var r=e.find(function(f){return h.Nb===f||h.Di.includes(f)});r&&("delete"===n?"CropCreateTool"!==y.source&&(h.Nb&&(f.Dc(h.Nb),h.Nb=null,h.trigger(w.Events.CROP_CANCELLED)),h.Ui=!1,h.Bp()):"modify"===n&&Object(ea.e)([h.Nb],h.Di).forEach(function(e){if(e!==
|
|
r||e===h.Nb){var n=h.aa.getDocument(),w=n.mb(e.ua()),z=r.Sa(),y=0===n.ad(e.ua())%180?w.width:w.height;n=0===n.ad(e.ua())%180?w.height:w.width;z.KS(y+1,n+1);e.cc(z);e.Gm(Math.max(0,e.Kc()));e.Hm(Math.max(0,e.Lc()));e.Fm(Math.max(0,e.wa()));e.ar(Math.max(0,e.Ba()));f.qb(e)}}))})};w.prototype.DZ=function(){for(var e=this.aa.getDocument().Wb(),h=this.Nb,f=0;f<e;f++)if(f!==h.ua()-1){var r=this.DH(h,f+1);this.Di.includes(r)||this.Di.push(r)}};w.prototype.GK=function(e){var h=this.Nb,f=this.aa.ta();this.Bp();
|
|
for(var n=0;n<e.length;n++){var w=this.DH(h,e[n]);this.Di.push(w)}f.Dc(h,{source:"CropCreateTool"});(this.$i=this.Nb=this.Di.shift())&&f.pg(this.Nb)&&this.$i&&f.Cg(this.$i)};w.prototype.switchOut=function(n){e.prototype.switchOut.call(this,n);n=this.aa.ta();this.reset();n.removeEventListener(da.c.qN,null,{df:!0})};w.prototype.Oia=function(e){e.FillColor=new x.a(255,255,255);e.Opacity=.1};w.prototype.RQ=function(e){var h=this.aa.getDocument(),f=e.ua(),n=h.mb(f),w=h.ad(f);this.Oia(e);var y=e.draw;e.draw=
|
|
function(f){var h=e.Sa(),r=90===w||270===w;f.save();f.beginPath();r?(f.rect(0,0,n.height,h.y1),f.rect(0,h.y1,h.x1,n.width),f.rect(0,h.y2,n.height,n.width),f.rect(h.x2,0,n.height,n.width)):(f.rect(0,0,n.width,h.y1),f.rect(0,h.y1,h.x1,n.height),f.rect(0,h.y2,n.width,n.height),f.rect(h.x2,0,n.width,n.height));f.clip();f.fillStyle="rgba(0, 0, 0, 0.3)";r?f.fillRect(0,0,n.height,n.width):f.fillRect(0,0,n.width,n.height);f.restore();y.apply(e,arguments)}};w.prototype.mouseLeftUp=function(n){var h=this.aa.ta();
|
|
this.Ui?ha.a.prototype.mouseLeftUp.call(this,n):(this.Nb=this.annotation,e.prototype.mouseLeftUp.call(this,n),this.Nb&&h.pg(this.Nb)&&(this.Ui=!0,this.$i=n=this.Nb,n.Printable=!1,this.RQ(n),this.wl===aa.ALL_PAGES&&0===this.Di.length&&this.DZ(),this.wl===aa.MULTI_PAGE&&(this.Iw()?(this.YK.includes(n.ua())||this.$t(Object(ea.e)([n.ua()],this.YK)),this.GK(this.Iw())):this.$t([n.ua()])),this.OI().forEach(function(f){h.pg(f)||(h.Sd(f),h.qb(f))})));this.Nb&&h.pg(this.Nb)&&this.$i&&h.Cg(this.$i)};w.prototype.mouseLeftDown=
|
|
function(n){this.aa.ta().$R();this.Ui?ha.a.prototype.mouseLeftDown.call(this,n):(e.prototype.mouseLeftDown.call(this,n),this.annotation&&this.annotation.DB())};w.prototype.Q4=function(e){var h=this,f=this.aa.getDocument(),n=e.ua(),z=this.hT(e),y=this.eT(e),x=this.fT(e),aa=this.gT(e);return f.Fh([n],z,y,x,aa).then(function(){h.trigger(w.Events.CROP_APPLIED,[{Hb:n,top:z,bottom:y,left:x,right:aa}])})};w.prototype.S4=function(){var e=this,h=this.OI();return Promise.all(h.map(this.Q4.bind(this))).then(function(){e.aa.ta().Dc(e.Nb,
|
|
{source:"CropCreateTool"});e.Bp();e.Nb=null;e.Ui=!1})};w.prototype.DH=function(e,h){if(e&&h){var f=this.aa.getDocument(),n=f.mb(e.ua()),w=this.aa.ta();e=w.Qn(e);e.DB();var y=e.Sa(),x=0===f.ad(h)%180?n.width:n.height;f=0===f.ad(h)%180?n.height:n.width;y.KS(x+1,f+1);e.cc(y);e.Gm(Math.max(0,e.Kc()));e.Hm(Math.max(0,e.Lc()));e.Fm(Math.max(0,e.wa()));e.ar(Math.max(0,e.Ba()));e.ly(h);e.ToolName=ca.m.CROP;this.RQ(e);w.Sd(e);w.qb(e);return e}};w.prototype.nE=function(e,h){var f=this.aa.getDocument(),n=e.ua(),
|
|
w=f.ad(n);e=e.Sa();switch(w){case 90:switch(h){case "top":return Math.max(0,e.x1);case "bottom":return f.mb(n).height-Math.max(0,e.x2);case "left":return f.mb(n).width-Math.max(0,e.y2);case "right":return Math.max(0,e.y1)}break;case 180:switch(h){case "top":return f.mb(n).height-Math.max(0,e.y2);case "bottom":return Math.max(0,e.y1);case "left":return f.mb(n).width-Math.max(0,e.x2);case "right":return Math.max(0,e.x1)}break;case 270:switch(h){case "top":return f.mb(n).height-Math.max(0,e.x2);case "bottom":return Math.max(0,
|
|
e.x1);case "left":return Math.max(0,e.y1);case "right":return f.mb(n).width-Math.max(0,e.y2)}break;default:switch(h){case "top":return Math.max(0,e.y1);case "bottom":return f.mb(n).height-Math.max(0,e.y2);case "left":return Math.max(0,e.x1);case "right":return f.mb(n).width-Math.max(0,e.x2)}}};w.prototype.uC=function(e,h,f){var n=this.aa.getDocument(),w=e.ua(),y=n.ad(w);w=n.mb(w);n=w.height;w=w.width;e=e.Sa();switch(y){case 90:switch(h){case "top":e.x1=Math.max(0,f);break;case "bottom":e.x2=n-Math.max(0,
|
|
f);break;case "left":e.y2=w-Math.max(0,f);break;case "right":e.y1=Math.max(0,f)}break;case 180:switch(h){case "top":e.y2=n-Math.max(0,f);break;case "bottom":e.y1=Math.max(0,f);break;case "left":e.x2=w-Math.max(0,f);break;case "right":e.x1=Math.max(0,f)}break;case 270:switch(h){case "top":e.x2=n-Math.max(0,f);break;case "bottom":e.x1=Math.max(0,f);break;case "left":e.y1=Math.max(0,f);break;case "right":e.y2=w-Math.max(0,f)}break;default:switch(h){case "top":e.y1=Math.max(0,f);break;case "bottom":e.y2=
|
|
n-Math.max(0,f);break;case "left":e.x1=Math.max(0,f);break;case "right":e.x2=w-Math.max(0,f)}}return e};w.prototype.hT=function(e){return this.nE(e,"top")};w.prototype.eT=function(e){return this.nE(e,"bottom")};w.prototype.fT=function(e){return this.nE(e,"left")};w.prototype.gT=function(e){return this.nE(e,"right")};w.prototype.dja=function(e,h){e.cc(this.uC(e,"top",h))};w.prototype.$ia=function(e,h){e.cc(this.uC(e,"bottom",h))};w.prototype.aja=function(e,h){e.cc(this.uC(e,"left",h))};w.prototype.cja=
|
|
function(e,h){e.cc(this.uC(e,"right",h))};w.prototype.Zaa=function(){return this.Ui};w.S_=aa;w.Events={CROP_APPLIED:"cropApplied",CROP_CANCELLED:"cropCancelled"};return w}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(208);var x=e(3),ha=e(65);e.n(ha);e=function(e){function da(aa,w){aa=e.call(this,aa,w)||this;aa.Zk=function(){return ha().format(this.Qz)};aa.Qz="YYYY-MM-DD";aa.name=w||x.m.DATE_FREETEXT;return aa}Object(ea.c)(da,e);da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,
|
|
x);this.annotation&&this.annotation.wE(this.Qz)};da.prototype.wE=function(e){this.Qz=e};da.prototype.QI=function(){return this.Qz};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(150),ha=e(18),ca=e(26),da=e(53),aa=e(54),w=e(3),y=e(42),n=e(2),h=e(91),f=e(10);ia=e(133);var r=e(46),z=e(66),fa=e(14);e=function(e){function x(f,h){void 0===h&&(h=w.m.DISTANCE_MEASUREMENT);f=e.call(this,f,h)||this;f.Measure=Object(ha.a)(ha.b);Object(da.b)(f.defaults,new aa.b(f));f.defaults.StartLineStyle="OpenArrow";
|
|
f.defaults.EndLineStyle="OpenArrow";f.IT="LineDimension";f.isDrawingLeaderLine=!1;f.nZ=!1;f.vg={enabled:!0,UA:!0,length:10};return f}Object(ea.c)(x,e);x.prototype.qja=function(f){Object(n.d)("8.0","setEnableLeaderLines",["enableLeaderLines","disableLeaderLines"]);this.vg.enabled=f};x.prototype.H9=function(){Object(n.d)("8.5","enableLeaderLines",["setLeaderLineDefaultOptions"]);this.vg.enabled=!0};x.prototype.N7=function(){Object(n.d)("8.5","enableLeaderLines",["setLeaderLineDefaultOptions"]);this.vg.enabled=
|
|
!1};x.prototype.G9=function(){Object(n.j)("enableImperialMarks is deprecated since version 8.4. You could directly use imperialMarks for ft-in or in.");this.dc({Precision:.125});this.nZ=!0;this.aa.trigger(f.e.TOOL_UPDATED,[this])};x.prototype.M7=function(){Object(n.j)("disableImperialMarks is deprecated since version 8.4. You could directly use imperialMarks for ft-in or in.");this.dc({Precision:.1});this.nZ=!1;this.aa.trigger(f.e.TOOL_UPDATED,[this])};x.prototype.mouseLeftDown=function(f){this.isDrawingLeaderLine&&
|
|
this.sd===y.a.HOLD_TO_DRAW?(this.finish(),this.isDrawingLeaderLine=!1):this.sd===y.a.TWO_CLICKS&&this.vg.enabled&&this.vg.UA&&this.annotation?(this.gS(),this.annotation.dm()&&this.NM(),e.prototype.mouseLeftDown.call(this,f),this.finish(),this.OA=null):(e.prototype.mouseLeftDown.call(this,f),this.annotation&&(this.annotation.caption="yes",this.annotation["caption-style"]="Top",this.annotation.IT=this.IT,this.annotation.Measure=Object(ha.a)(this.Measure),this.annotation.th(this.defaults.StartLineStyle),
|
|
this.annotation.Dm(this.defaults.EndLineStyle),this.mL()))};x.prototype.mouseMove=function(f){ca.a.prototype.mouseMove.call(this,f);!this.wd||this.annotation||this.qd instanceof z.f||this.qs(f);var h=this.pageCoordinates[1];!this.isSelecting()&&this.annotation&&null!==h&&h.pageNumber===this.annotation.PageNumber&&(this.isDrawingLeaderLine&&this.sd===y.a.HOLD_TO_DRAW?(f=this.annotation.End,this.annotation.leaderLength=Math.sqrt(Math.pow(h.x-f.x,2)+Math.pow(h.y-f.y,2))*Math.sin(this.annotation.bk()-
|
|
Math.atan2(h.y-f.y,h.x-f.x)),this.annotation.adjustRect(),this.aa.la.qb(this.annotation)):(this.Yia(),e.prototype.mouseMove.call(this,f)))};x.prototype.mouseLeftUp=function(f){ca.a.prototype.mouseLeftUp.call(this,f);this.annotation&&(this.vg.enabled&&this.sd===y.a.HOLD_TO_DRAW?this.pK(this.annotation)?(this.aa.ta().Dc(this.annotation),this.annotation=null):(this.vg.UA?(this.annotation.dm()&&this.NM(),this.gS(),this.finish()):this.isDrawingLeaderLine=!0,e.prototype.mouseLeftUp.call(this,f)):e.prototype.mouseLeftUp.call(this,
|
|
f))};x.prototype.aba=function(){return{enabled:this.vg.enabled,autoCreate:this.vg.UA,length:this.vg.length}};x.prototype.Fja=function(f){"enabled"in f&&(this.vg.enabled=f.enabled);"autoCreate"in f&&(this.vg.UA=f.autoCreate);"length"in f&&(this.vg.length=f.length)};x.prototype.gS=function(){var f=this.aa.Ll(this.pageCoordinates[0].pageNumber).width,e=this.vg.length,h=fa.a.ST([this.annotation.Start,this.annotation.End],this.pageCoordinates[0].pageNumber,this.documentViewer),n=h[0],r=h[1];h=n.X<r.X;
|
|
var w=n.Y<r.Y,z=n.Y<=e||r.Y<=e,y=n.X<=e||r.X<=e;f=n.X>=f-e||r.X>=f-e;this.annotation.leaderLength=z&&h||y&&!w||f&&w||!(f||z||y||h)?-e:e;this.annotation.adjustRect();this.aa.la.qb(this.annotation)};x.prototype.rba=function(){var f=this.aa.Ll(this.pageCoordinates[0].pageNumber);return new h.a(f.width/2,f.height/2)};x.prototype.Yia=function(){if(this.annotation.aV()){var f=this.annotation.dm()&&this.annotation.ck()===r.a.CENTER,e=!this.annotation.dm()&&this.annotation.ck()!==r.a.CENTER;f?this.NM():e&&
|
|
this.annotation.hi(r.a.CENTER)}};x.prototype.NM=function(){var f=this.annotation.dT(this.rba());this.annotation.hi(f)};return x}(x.a);Object(ia.a)(e);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(3),ha=e(53),ca=e(54),da=e(18);ia=e(151);e=e(133);ia=function(e){function w(w,n){void 0===n&&(n=x.m.ELLIPSE_MEASUREMENT);w=e.call(this,w,n)||this;w.Measure=Object(da.a)(da.b);w.xl=Object(ca.a)({isEnabled:!0});Object(ha.b)(w.defaults,new ca.b(w));w.IT="EllipseDimension";return w}Object(ea.c)(w,e);w.prototype.mouseLeftDown=
|
|
function(w){this.Measure.scale?(e.prototype.mouseLeftDown.call(this,w),this.annotation&&(this.annotation.Measure=Object(da.a)(this.Measure),this.annotation.IT=this.IT,this.annotation.measurementCaptionOptions=Object(ca.a)(this.xl),this.annotation.captionRotation=90*this.aa.Hc(this.annotation.PageNumber),this.mL())):this.tqa()};w.prototype.mouseMove=function(w){e.prototype.mouseMove.call(this,w);this.annotation&&this.annotation.Td()};return w}(ia.a);Object(e.a)(ia);ba.a=ia},function(ia,ba,e){var ea=
|
|
e(1),x=e(3);ia=e(209);var ha=e(12);e=function(e){function da(aa,w){void 0===w&&(w=x.m.FREEHAND_HIGHLIGHT);aa=e.call(this,aa,w)||this;aa.Xr=30;aa.BlendMode="multiply";aa["_xsi:type"]="Free Hand Highlight";aa.Subject=ha.a.Gc("freehandHighlight");return aa}Object(ea.c)(da,e);da.prototype.yP=function(){this.defaults={Opacity:.5,StrokeThickness:20}};da.prototype.EQ=function(){this.annotation.Subject=this.Subject;this.annotation.finish()};da.prototype.Uia=function(e){this.Xr=e};da.prototype.daa=function(){return this.Xr};
|
|
da.prototype.BJ=function(){var x=this,w=this.annotation.Ra(this.Nc),y=!0,n=!0;if(w&&0<w.length){var h=w[0];w.forEach(function(f){if(f.y>h.y+x.Xr||f.y<h.y-x.Xr)y=!1;if(f.x>h.x+x.Xr||f.x<h.x-x.Xr)n=!1});var f=w.reduce(function(f,e){return f+e.y},0)/w.length,r=w.reduce(function(f,e){return f+e.x},0)/w.length;y?w.forEach(function(e){e.y=f}):n&&w.forEach(function(f){f.x=r})}e.prototype.BJ.call(this)};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(43),ha=e(18);ia=e(45);var ca=e(8),da=e(4),aa=
|
|
e(26),w=e(82),y=e(3),n=e(10),h=e(156),f=e(99),r=e(172),z=e(157),fa=e(24),ka=window.Annotations;e=function(e){function ja(f,h){f=e.call(this,f,ka.FreeHandAnnotation)||this;f.name=h||y.m.ERASER;f.defaults={StrokeColor:new ca.a(205,205,205),StrokeThickness:20,Opacity:.25};f.XC=!1;f.UE=[];f.overrideSelection=!0;return f}Object(ea.c)(ja,e);ja.prototype.mouseLeftDown=function(f){this.XC=!0;e.prototype.mouseLeftDown.call(this,f);this.annotation&&this.annotation.Bc(this.pageCoordinates[1].x,this.pageCoordinates[1].y);
|
|
Object(ha.d)(this.aa,"crosshair");this.zz=[]};ja.prototype.complete=function(){var f=this;if(this.annotation&&0<this.annotation.mg().length){var e=this.UE.map(function(e){return f.aa.ta().hg(e)}),h=new Map,r=this.defaults.StrokeThickness/2;this.annotation.mg().forEach(function(n){for(var w=1,z=n.length;w<z;w++)for(var y=n[w-1],x=n[w],aa=0;aa<e.length;aa++){var fa=e[aa];f.eP(fa.mg(),y,x,r);fa.mg()&&0===fa.mg().length?(f.aa.la.Dc(fa),h.delete(fa.Id)):(fa.Ma(),h.set(fa.Id,fa))}});this.aa.la.Dc(this.annotation);
|
|
h.size&&this.aa.la.trigger(n.b.ANNOTATION_CHANGED,[Array.from(h.values()),"modify",{}])}this.XC=!1;this.UE=[];this.zz=this.Vb=this.annotation=null};ja.prototype.mouseRightDown=function(){this.complete()};ja.prototype.switchIn=function(){x.a.ENABLE_ANNOTATION_HOVER_CURSORS=!1;x.a.ENABLE_AUTO_SWITCH=!1;Object(ha.d)(this.aa,"crosshair")};ja.prototype.switchOut=function(f){x.a.ENABLE_ANNOTATION_HOVER_CURSORS=!0;x.a.ENABLE_AUTO_SWITCH=!0;this.complete();e.prototype.switchOut.call(this,f)};ja.prototype.mouseLeftUp=
|
|
function(){this.XC=!1;this.annotation&&(this.annotation.Bc(this.pageCoordinates[1].x,this.pageCoordinates[1].y),this.complete())};ja.prototype.mouseMove=function(e){aa.a.prototype.mouseMove.call(this,e);if(this.annotation&&null!==this.pageCoordinates&&null!==this.pageCoordinates[1]){if(this.pageCoordinates[0].pageNumber!==this.pageCoordinates[1].pageNumber)return;this.annotation.Bc(this.pageCoordinates[1].x,this.pageCoordinates[1].y);this.aa.la.qb(this.annotation)}if(this.XC&&this.annotation){e=this.annotation.Ra();
|
|
var n=e.length;if(1<n){var y=this.k3(this.annotation.ua()),x=e[n-2],fa=e[n-1],ca=this.defaults.StrokeThickness/3,ha=[],ea=0;e=y.length;n=function(){var e=y[ea];if(ba.zz&&ba.zz.some(function(f){return f===e})||!ba.aa.ta().Qc(e))return"continue";var n=[];if(e instanceof h.a||e instanceof f.b){var aa=e.Ra().map(function(f){return f});n.push(aa)}else if(e instanceof r.a)n.push([e.Zn(),e.Yp()]);else if(e instanceof ka.FreeHandAnnotation)n=e.mg().map(function(f){return f.slice()});else{if(e instanceof z.a){aa=
|
|
ba.aa.bc();var la=z.a.SIZE;aa=new da.d(e.X,e.Y,e.X+la/aa,e.Y+la/aa)}else aa=e.Sa();n.push([new da.b(aa.x1,aa.y1),new da.b(aa.x2,aa.y1),new da.b(aa.x2,aa.y2),new da.b(aa.x1,aa.y2),new da.b(aa.x1,aa.y1)])}aa=!1;aa=e.FillColor&&0!==e.FillColor.A?Object(w.d)(fa,n[0]):ba.eP(n.concat(),x,fa,ca);n=!(e instanceof ka.FreeHandAnnotation);la=-1===ba.UE.indexOf(e.Id);if(aa&&(n||la)){var qa=!1;ba.trigger(ja.Events.ERASING_ANNOTATION,{annotation:e,skipAnnotation:function(){qa=!0}});if(qa)return ba.zz.push(e),"continue";
|
|
n?(ba.aa.ta().Dc(e),ha.push(ea)):la&&ba.UE.push(e.Id)}};for(var ba=this;ea<e;ea++)n();0<ha.length&&ha.forEach(function(f){y.splice(f,1)})}}};ja.prototype.k3=function(f){this.Vb||(this.Vb=this.aa.ta().Pb().filter(function(e){return e.ua()===f&&!(e instanceof fa.a)}));return this.Vb};ja.prototype.eP=function(f,e,h,n){var r=!1;if(!f||!Array.isArray(f))return r;for(var z=f.length-1;0<=z;--z){var y=Object(w.c)(e,h,n),x=f[z],aa=x.length;if(!x||!Array.isArray(x))break;if(!x.length)break;if(1===aa&&Object(w.d)({x:x[0].x,
|
|
y:x[0].y},y))f.splice(z,1),r=!0;else for(aa=x.length-1;0<aa;--aa){var fa=x[aa-1],da=x[aa],ja=Object(w.d)(fa,y),ca=Object(w.d)(da,y);!ja&&ca?(fa=Object(w.e)(y,da,fa),x.pop(),x.push(fa[0]),r=!0):ja&&ca?(x.pop(),r=!0):ja&&!ca?(fa=Object(w.e)(y,fa,da),aa===x.length-1?x.pop():(r=Object(w.f)(f,aa-1,z),r.unshift(fa[0]),f.push(r),1===x.length&&f.splice(z,1),r=!0)):ja||ca||(fa=Object(w.e)(y,fa,da))&&2===fa.length&&(r=Object(w.f)(f,aa-1,z),x.push(fa[0]),r.unshift(fa[1]),f.push(r),r=!0)}}return r};ja.Events=
|
|
{ERASING_ANNOTATION:"erasingAnnotation"};return ja}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(43),ha=e(18),ca=e(82),da=e(16),aa=e(3);ia=function(e){function w(n,h){n=e.call(this,n)||this;n.rA=Number.MIN_VALUE;n.pA=Number.MAX_VALUE;n.name=h||aa.m.MARQUEE;n.an=!0;return n}Object(ea.c)(w,e);w.Mka=function(e){w.prototype.nP=e};w.Nja=function(e){w.prototype.pA=e};w.Qja=function(e){w.prototype.rA=e};w.prototype.switchIn=function(){x.a.ENABLE_ANNOTATION_HOVER_CURSORS=!1;x.a.ENABLE_AUTO_SWITCH=!1;Object(ha.d)(this.aa,
|
|
"zoom-in");this.aa.$q("auto")};w.prototype.switchOut=function(){x.a.prototype.switchOut.call(this);x.a.ENABLE_ANNOTATION_HOVER_CURSORS=!0;x.a.ENABLE_AUTO_SWITCH=!0;this.aa.$q("none")};w.prototype.keyDown=function(e){if(e.metaKey||e.ctrlKey)this.an=!1,Object(ha.d)(this.aa,"zoom-out")};w.prototype.rV=function(){this.an=!0;Object(ha.d)(this.aa,"zoom-in")};w.prototype.mouseLeftDown=function(n){e.prototype.mouseLeftDown.call(this,n);n=this.aa.bc();!this.pageCoordinates[0]||!this.an&&n<=this.rA||this.an&&
|
|
n>=this.pA||(this.lK=!0,this.an?Object(ha.d)(this.aa,"zoom-in"):Object(ha.d)(this.aa,"zoom-out"))};w.prototype.mouseMove=function(n){e.prototype.mouseMove.call(this,n);n=this.pageCoordinates;this.lK&&this.an&&n[0].pageNumber===n[1].pageNumber&&(this.U9=this.pageCoordinates[1],Object(ca.b)([this.Qe,this.lc],n,this.aa))};w.prototype.mouseLeftUp=function(n){e.prototype.mouseLeftUp.call(this,n);if(this.lK){this.lK=!1;var h=Math.abs(this.lc.x-this.Qe.x),f=Math.abs(this.lc.y-this.Qe.y);n=this.aa.bc();15>
|
|
h&&15>f?(h=this.nP(n),this.an||(h-=2*(h-n)),h=Math.max(this.rA,Math.min(this.pA,h)),this.aa.B_(h,0,0)):this.an&&(h=n*this.n3(h,f),h=Math.max(this.rA,Math.min(this.pA,h)),this.aa.Bu(h),n=this.l3([this.pageCoordinates[0],this.U9]),h=Object(da.c)(this.aa.jb()),this.aa.scrollTo(n.x-h.left,n.y-h.top));Object(ca.a)()}};w.prototype.nP=function(e){var h={"0.075":[Number.MIN_VALUE,.8],"0.25":[.8,1.5],1:[1.5,3.5],2:[3.5,8],4:[8,32],8:[32,64],16:[64,Number.MAX_VALUE]},f=Object.keys(h),n;for(n=0;n<f.length;n++){var w=
|
|
h[f[n]];if(e>=w[0]&&e<=w[1]){var y=f[n];break}}return e+parseFloat(y)};w.prototype.n3=function(e,h){var f=this.aa.jb().getBoundingClientRect();return Math.min(f.width/e,f.height/h)};w.prototype.l3=function(e){var h=e[1].pageNumber,f=this.aa.Hc(h),n;0===f?n={x:Math.min(e[0].x,e[1].x),y:Math.min(e[0].y,e[1].y)}:1===f?n={x:Math.min(e[0].x,e[1].x),y:Math.max(e[0].y,e[1].y)}:2===f?n={x:Math.max(e[0].x,e[1].x),y:Math.max(e[0].y,e[1].y)}:3===f&&(n={x:Math.max(e[0].x,e[1].x),y:Math.min(e[0].y,e[1].y)});return this.aa.Ff().Vc().gh(n,
|
|
h)};return w}(x.a);ba.a=ia},function(ia,ba,e){function ea(){return"url("+Object(ca.c)()+"dragginghand.cur), url("+Object(ca.c)()+"dragginghand.png), pointer"}function x(){return"url("+Object(ca.c)()+"hand.cur), url("+Object(ca.c)()+"hand.png), pointer"}var ha=e(1),ca=e(18);ia=e(26);var da=e(3),aa=e(16),w=e(2),y;(function(e){e.PINCH="pinch";e.TOUCH_PAN="touchPan";e.MOUSE_PAN="mousePan";e.MULTI_TOUCH="multiTouch"})(y||(y={}));e=function(e){function h(f,h){f=e.call(this,f)||this;f.previouslyUsedTool=
|
|
null;f.previousStylusTool=null;f.Re=null;f.LG={x:0,y:0};f.gv=!1;f.cursor=x();f.sg="PanTool";f.name=h||da.m.PAN;return f}Object(ha.c)(h,e);h.prototype.switchIn=function(){this.gv=!1;this.cursor=x();Object(ca.d)(this.aa,this.cursor)};h.prototype.mouseLeftDown=function(f){e.prototype.mouseLeftDown.call(this,f);this.isSelecting()||(this.LG=this.Zg(f),this.Re={LD:f.touches,VZ:0},this.Re.type=f.touches?1===f.touches.length?y.TOUCH_PAN:y.MULTI_TOUCH:y.MOUSE_PAN,this.gv=!0,this.cursor=ea(),Object(ca.d)(this.aa,
|
|
this.cursor))};h.prototype.mouseLeftUp=function(f){this.previousStylusTool&&!this.previouslyUsedTool&&(this.previouslyUsedTool=this.previousStylusTool,this.previousStylusTool=null,Object(w.j)("previousStylusTool is deprecated, please use previouslyUsedTool instead."));this.previouslyUsedTool&&(this.previouslyUsedTool.annotation=null,this.previouslyUsedTool.pageCoordinates=[],this.aa.Co(this.previouslyUsedTool),this.previouslyUsedTool=null);e.prototype.mouseLeftUp.call(this,f);this.isSelecting()||
|
|
(this.cursor=x(),Object(ca.d)(this.aa,this.cursor),this.gv=!1)};h.prototype.mouseMove=function(f){e.prototype.mouseMove.call(this,f);if(!this.isSelecting()&&this.Re&&(this.Re.VZ++,!(this.Re.type===y.MULTI_TOUCH&&7>this.Re.VZ))){if(this.Re.type===y.MULTI_TOUCH){var h=f.touches[0],n=f.touches[1],w=h.clientY-this.Re.LD[0].clientY,x=n.clientY-this.Re.LD[1].clientY;h=h.clientX-this.Re.LD[0].clientX;n=n.clientX-this.Re.LD[1].clientX;this.Re.type=w&&x&&0<w/x||h&&n&&0<h/n?y.TOUCH_PAN:y.PINCH}w=y.PINCH===
|
|
this.Re.type;this.gv&&!w&&(w=this.aa.jb(),x=this.Zg(f),f=this.LG.x-x.x,x=this.LG.y-x.y,this.aa.scrollTo(Object(aa.d)(w)+f,(w.scrollTop||0)+x),Object(ca.d)(this.aa,ea()))}};h.prototype.mouseLeave=function(){this.gv=!1;Object(ca.d)(this.aa,this.cursor)};h.prototype.Kda=function(){return this.Re?[y.TOUCH_PAN,y.MOUSE_PAN].includes(this.Re.type):!1};h.prototype.Mda=function(){return this.Re?this.Re.type===y.PINCH:!1};return h}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);ia=e(26);var ha=e(3),
|
|
ca=e(118),da=e(174),aa=e(212),w=e(10).f.IF+".editTool",y;e=function(e){function h(f,h){f=e.call(this,f)||this;f.sg="ContentEditTool";f.name=h||ha.m.CONTENT_EDIT;f.defaults={};f.nD=[];return f}Object(ea.c)(h,e);h.prototype.switchIn=function(){return Object(ea.b)(this,void 0,Promise,function(){var f,e=this;return Object(ea.d)(this,function(h){switch(h.label){case 0:return y=Object(ca.d)(this.aa),[4,y];case 1:return h.ea(),f=this.aa.ta(),f.addEventListener("annotationChanged.editTool",function(f,h,n){"modify"===
|
|
h?f.forEach(function(f){if(f.Sh()){var h=f.Ru,n=h.id;h=h.pagenum;var r=f.X,w=f.Y,z=f.Width,y=f.Height,x=e.aa.getDocument(),aa=x.Oi(h,r,w),fa=aa.x;aa=aa.y;r=x.Oi(h,r+z,w+y);Object(ca.f)({id:n,pageNumber:h,position:{top:aa,left:fa,bottom:r.y,right:r.x},isText:f.NI()===da.a.TEXT})}}):"delete"===h&&"pagesUpdated"!==n.source&&"contentEditTool"!==n.source&&f.forEach(function(f){if(f.Sh()){var e=f.Ru;Object(ca.b)({id:e.id,pageNumber:e.pagenum,isText:f.NI()===da.a.TEXT})}})}),this.aa.addEventListener(w,Object(x.debounce)(function(f){f=
|
|
f.map(function(f){return f+1});e.pS(f)},500)),this.pS(this.aa.Ff().ve()),this.aa.addEventListener("documentUnloaded.editTool",function(){e.nD=[];e.aa.Co(e.aa.ao(ha.m.EDIT))}),[2]}})})};h.prototype.switchOut=function(){var f=this.aa.ta(),e=f.Pb();e.filter(function(f){return f instanceof aa.a}).forEach(function(f){return f.enable()});e=e.filter(function(f){return f.Sh()});f.Wj(e,{force:!0,source:"contentEditTool"});this.nD=[];f.removeEventListener("annotationChanged.editTool",null,{df:!0});this.aa.removeEventListener("documentUnloaded.editTool",
|
|
null,{df:!0});this.aa.removeEventListener(w,null,{df:!0})};h.prototype.pS=function(f){var e=this,h=this.aa.ta(),n=h.Pb();n.filter(function(f){return f instanceof aa.a}).forEach(function(f){return f.disable()});n=n.filter(function(e){return e.Sh()?!f.includes(e.PageNumber):!1});h.Wj(n,{force:!0,source:"contentEditTool"});var w=[];f.forEach(function(f){if(0===h.Pb().filter(function(e){return e.Sh()&&e.PageNumber===f}).length){var n=!e.nD.find(function(e){return f===e});w.push(f);Object(ca.e)(e.aa.getDocument(),
|
|
f,n)}});0<w.length&&(this.nD=w)};return h}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(45);var x=e(43);(function(e){function ca(x,aa){return e.call(this,x,aa)||this}Object(ea.c)(ca,e);ca.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.Bc(this.pageCoordinates[0].x,this.pageCoordinates[0].y),this.annotation.Author=this.aa.la.Sv)};ca.prototype.mouseLeftUp=function(x){this.annotation&&this.annotation.finish();e.prototype.mouseLeftUp.call(this,
|
|
x)};ca.prototype.mouseMove=function(e){x.a.prototype.mouseMove.call(this,e);this.annotation&&null!==this.pageCoordinates&&null!==this.pageCoordinates[1]&&this.pageCoordinates[0].pageNumber===this.pageCoordinates[1].pageNumber&&(this.annotation.Bc(this.pageCoordinates[1].x,this.pageCoordinates[1].y),this.aa.la.qb(this.annotation))};return ca})(ia.a)},function(ia,ba,e){var ea=e(1),x=e(2);ia=e(149);var ha=e(3),ca=e(99);e=function(e){function aa(w,y){void 0===y&&(y=ha.m.POLYGON_CLOUD);w=e.call(this,w,
|
|
y)||this;w.gH=ha.n.EQUAL_ARCS;return w}Object(ea.c)(aa,e);aa.prototype.mouseLeftDown=function(w){e.prototype.mouseLeftDown.call(this,w);this.annotation&&this.annotation instanceof ca.b&&(this.annotation.Style="cloudy",this.annotation.Intent="PolygonCloud",this.annotation.ArcDrawMode=this.gH)};aa.prototype.cM=function(e){Object.values(ha.n).includes(e)?this.gH=e:Object(x.g)("Invalid arc draw mode for cloud annotation")};aa.prototype.baa=function(){return this.gH};aa.I_=ha.n;return aa}(ia.a);ba.a=e},
|
|
function(ia,ba,e){var ea=e(1);ia=e(152);var x=e(3),ha=e(99),ca=e(42);e=function(e){function aa(w,y){void 0===y&&(y=x.m.CLOUDY_RECTANGULAR_AREA_MEASUREMENT);w=e.call(this,w,y)||this;w.sd=ca.a.HOLD_TO_DRAW;return w}Object(ea.c)(aa,e);aa.prototype.mouseLeftDown=function(w){e.prototype.mouseLeftDown.call(this,w);this.annotation&&(this.annotation.Style="cloudy",this.annotation.hy(null),this.annotation.uE(ha.a.Ou))};return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(0);e.n(ia);var x=e(89),ha=e(45),
|
|
ca=e(8),da=e(3),aa=e(2),w=window;e=function(e){function n(h,f){h=e.call(this,h,w.Annotations.Wo)||this;h.sg="RedactCreateTool";h.name=f||da.m.REDACTION;h.VA=!0;h.defaults={StrokeColor:new ca.a(255,0,0),FillColor:new ca.a(0,0,0,1),TextColor:new ca.a(255,0,0,1),StrokeThickness:1.5,Opacity:1,FontSize:"18pt",OverlayText:""};return h}Object(ea.c)(n,e);n.prototype.sja=function(e){Object(aa.d)("8.0","setEnableTextAutoSize",["enableAutoSizedText","disableAutoSizedText"]);this.VA=e};n.prototype.v9=function(){this.VA=
|
|
!0};n.prototype.z7=function(){this.VA=!1};n.prototype.mouseMove=function(h){this.cursor.includes("text")?e.prototype.mouseMove.call(this,h):ha.a.prototype.mouseMove.call(this,h)};n.prototype.mouseLeftDown=function(h){this.cursor.includes("text")?(e.prototype.mouseLeftDown.call(this,h),this.annotation&&(this.annotation.IsText=!0)):(ha.a.prototype.mouseLeftDown.call(this,h),this.annotation&&(this.annotation.IsText=!1,this.annotation.NoMove=!1));this.annotation&&this.defaults&&(this.defaults.TextColor&&
|
|
(h=this.defaults.TextColor,this.annotation.TextColor=new ca.a(h.R,h.G,h.B,h.A)),this.defaults.Font&&(this.annotation.Font=this.defaults.Font),this.defaults.FontSize&&(this.annotation.FontSize=this.defaults.FontSize),this.defaults.TextAlign&&(this.annotation.TextAlign=this.defaults.TextAlign),this.defaults.OverlayText&&(this.annotation.OverlayText=this.defaults.OverlayText),null!==this.defaults.StrokeColor&&(h=this.defaults.StrokeColor,this.annotation.StrokeColor=new ca.a(h.R,h.G,h.B,h.A)),null!==
|
|
this.defaults.StrokeThickness&&(this.annotation.StrokeThickness=this.defaults.StrokeThickness),null!==this.defaults.FillColor&&(h=this.defaults.FillColor,this.annotation.FillColor=new ca.a(h.R,h.G,h.B,h.A)))};n.prototype.mouseLeftUp=function(h){if(this.annotation&&this.annotation.IsText){if(this.VA){var f=this.annotation.Quads;(f=(f=f&&f.length?f.map(function(f){return f.y1-f.y3}):null)?f.sort(function(f,e){return f-e})[0]:null)&&(this.annotation.FontSize=Math.min(.75*Math.floor(f),parseFloat(this.annotation.FontSize))+
|
|
"pt")}e.prototype.mouseLeftUp.call(this,h)}else ha.a.prototype.mouseLeftUp.call(this,h)};return n}(x.a);e.prototype=Object(ia.extend)(new ha.a,new e);ba.a=e},function(ia,ba,e){function ea(f){f.MaintainAspectRatio=!0;if("SBRejected"===f.Icon)f.Width=23,f.Height=23;else if("SHAccepted"===f.Icon)f.Width=23,f.Height=20;else if(0===f.Icon.indexOf("SH"))f.Width=100,f.Height=30;else{var e=f.YT();z=z||document.createElement("canvas");var h=z.getContext("2d");h.font="bold 40px sans-serif";e=h.measureText(e).width;
|
|
f.Width=e;f.Height=49}}var x=e(1),ha=e(43),ca=e(18),da=e(4),aa=e(16),w=e(32),y=e(3),n=e(65);e.n(n);var h=e(8),f=e(69),r=e(12),z=document.createElement("canvas");ia=function(e){function fa(f,h){f=e.call(this,f)||this;f.Bh={};f.fp=[];f.qa=null;f.defaults={Opacity:1};f.cursor="crosshair";f.name=h||y.m.RUBBER_STAMP;f.ov=Object.keys(w.a.$M);return f}Object(x.c)(fa,e);fa.prototype.E$=function(f){return n(new Date).format(f)};fa.prototype.switchIn=function(){ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!1;Object(ca.d)(this.aa,
|
|
this.cursor)};fa.prototype.switchOut=function(f){e.prototype.switchOut.call(this,f);ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!0;this.Vw()};fa.prototype.cF=function(f){this.sP=f.Icon;this.v3=!0;this.lja(f);this.qa=this.JR()};fa.prototype.lja=function(f){var e=this.aa.ta(),n=this.sP&&w.a.tJ(this.sP);this.Bh.Icon=f.Icon;this.Bh.Opacity=f.Opacity||this.defaults.Opacity;this.Bh.Author=e.kg();this.Bh.MaintainAspectRatio=!0;this.Bh.Subject=n||r.a.Gc("stamp");this.Bh.X=0;this.Bh.Y=0;this.Bh.FillColor=f.FillColor||
|
|
new h.a(0,0,0,1);this.Bh.Width=f.Width||23;this.Bh.Height=f.Height||23};fa.prototype.JR=function(){var e=this,h=new f.a;Object.keys(this.Bh).forEach(function(f){h[f]=e.Bh[f]});return h};fa.prototype.mouseLeftUp=function(f){f.preventDefault();e.prototype.mouseLeftUp.call(this,f);if(f=this.pageCoordinates[1])this.location=f,this.BQ()};fa.prototype.zaa=function(){return Object.keys(w.a.$M)};fa.prototype.Xba=function(){return this.ov.concat()};fa.prototype.vka=function(f){this.ov=f;this.trigger(fa.Events.STAMPS_UPDATED,
|
|
this.ov)};fa.prototype.waa=function(){return this.fp.concat()};fa.prototype.ija=function(f){this.fp=f.map(function(f){f.id=f.hasOwnProperty("id")?f.id:r.a.HC();return f});this.trigger(fa.Events.STAMPS_UPDATED,this.fp)};fa.prototype.lka=function(e,h){return Object(x.b)(this,void 0,Promise,function(){var n;return Object(x.d)(this,function(r){switch(r.label){case 0:if(!(e instanceof f.a))return[3,2];n=this;return[4,this.Dz(e,h)];case 1:n.qa=r.ea(),r.label=2;case 2:return[2]}})})};fa.prototype.Dz=function(e,
|
|
h){return Object(x.b)(this,void 0,Promise,function(){var n,z,y,aa,fa,da,ja;return Object(x.d)(this,function(x){switch(x.label){case 0:n=new f.a;z=this.aa.ta();y=w.a.tJ(e.Icon);n.Author=z.kg();n.Opacity=this.defaults.Opacity;n.Subject=y||r.a.Gc("stamp");n.ToolName=this.name;n.Icon=e.Icon;n.X=0;n.Y=0;n.yM(h);if(!e.LF)return[3,2];aa=document.createElement("canvas");fa={canvas:aa,title:e.t2||e.wy,color:e.Sm.color||e.FillColor,subtitle:e.s2,width:300,height:100,font:e.Sm.font,bold:e.Sm.bold,italic:e.Sm.italic,
|
|
underline:e.Sm.underline,strikeout:e.Sm.strikeout,textColor:e.Sm.textColor};da=this.cI(fa);n.Width=da/2;n.FillColor=e.FillColor;n.Height=fa.height/2;return[4,n.Ao(aa.toDataURL())];case 1:return x.ea(),n.LF=!0,n.customStampTemplateId=e.m2,n.Db("trn-custom-stamp",JSON.stringify(e.Sm)),[3,3];case 2:e.image?(n.image=e.image,n.Width=e.image.width,n.Height=e.image.height,(ja=e.ac("trn-original-url"))&&n.Db("trn-original-url",ja)):ea(n),x.label=3;case 3:return[2,n]}})})};fa.prototype.gja=function(f){if("function"!==
|
|
typeof f)throw Error("setCustomDrawFunction needs to be invoked with a function that takes a single parameter, assumed to be typed as an instance of CanvasRenderingContext2D");if(2<f.length)throw Error("The number of named arguments for the callback function given to setCustomDrawFunction does not match what is expected. Please pass a callback function that only takes at most two parameters, the first a required instance of CanvasRenderingContext2D, and the second an optional instance of Annotations.Annotation where thecallback function can opt to process specific annotations");
|
|
this.yS=f};fa.prototype.BQ=function(){return Object(x.b)(this,void 0,Promise,function(){var f,e,h,n,r,w,y,aa,da,ca,ha;return Object(x.d)(this,function(x){switch(x.label){case 0:if(this.TU())return[2];z=z||document.createElement("canvas");z.width=Math.ceil(3.125*this.qa.Ba());z.height=Math.ceil(3.125*this.qa.wa());f=z.getContext("2d");f.scale(3.125,3.125);e=this.aa.hc(1);this.qa.draw(f,e);h=new Image;if(!this.yS)return[3,2];this.yS(f,this.qa);n=z.toDataURL();return[4,this.qa.Ao(n)];case 1:return x.ea(),
|
|
h.src=n,[3,3];case 2:h.src=z.toDataURL(),x.label=3;case 3:return this.qa.Kia(h),r=this.aa.ta(),w=this.location.pageNumber,y=this.aa.Hc(w),this.qa.rotate(-(90*y*Math.PI/180)),aa=this.location.x,da=this.location.y,ca=this.qa.Ba(),ha=this.qa.wa(),this.qa.PageNumber=w,this.qa.Gm(aa-ca/2),this.qa.Hm(da-ha/2),this.qa.Author=r.kg(),r.Sd(this.qa),r.qb(this.qa),this.qa.mh(),this.qa.di(),this.trigger(fa.Events.ANNOTATION_ADDED,[this.qa]),this.qa=this.v3?this.JR():null,this.location=null,[2]}})})};fa.prototype.zA=
|
|
function(f,e){e=this.aa.getDocument().mb(e.pageNumber);var h=f.Sa();h.Jh(new da.d(0,0,e.width,e.height));f.resize(h)};fa.prototype.Jw=function(f,e){if(!f||!f.Width||!f.Height)throw Error("getPreview is called without passing an annotation or the annotation passed to it has width or height 0");if(!e.canvasHeight||!e.canvasWidth)throw Error("getPreview is called without addition canvas parameters");e.text&&f.yM(e.text);var h=e.canvasHeight-f.wa(),n=h/2;f.Gm(n);f.Hm(n);h=e.canvasWidth-h;n=f.Ba();f.ar(n<
|
|
h?n:h);h=this.aa.getDocument();if(h){var r=h.hc(1);this.zA(f,{pageNumber:1,x:0,y:0})}if(f.LF)return f.getImageData();z=z||document.createElement("canvas");z.width=Math.ceil(3.125*e.canvasWidth);z.height=Math.ceil(3.125*e.canvasHeight);e=z.getContext("2d");f.image?w.a.z$(e,z.width,z.height,f.image):(e.scale(3.125,3.125),f.draw(e,r));return Promise.resolve(z.toDataURL())};fa.prototype.HM=function(){return Object(x.b)(this,void 0,Promise,function(){var f,e,h;return Object(x.d)(this,function(n){switch(n.label){case 0:return this.kh||
|
|
(this.kh=this.WF()),f=this.qa.Sa(),e=this.kh.querySelector("img"),[4,this.Jw(this.qa,{canvasWidth:f.Ba(),canvasHeight:f.wa()})];case 1:return e.src=n.ea(),h=this.aa.bc(),Object(aa.b)(this.kh,{display:"block",width:f.Ba()*h,height:f.wa()*h}),[2]}})})};fa.prototype.WF=function(){var f=document.createElement("div");f.id="rubberstamp-preview";Object(aa.b)(f,{position:"absolute",border:"1px solid #00A4E4","z-index":85,"pointer-events":"none"});document.body.appendChild(f);var e=document.createElement("img");
|
|
Object(aa.b)(e,{width:"100%",height:"100%"});f.appendChild(e);e=this.aa.Xa();e.addEventListener("mousemove",this.Q3.bind(this,f));e.addEventListener("mouseleave",this.P3.bind(this,f));return f};fa.prototype.Q3=function(f,e){var h=f.getBoundingClientRect();Object(aa.b)(f,{left:e.clientX-h.width/2,top:e.clientY-h.height/2})};fa.prototype.P3=function(f){Object(aa.b)(f,{left:-9999,top:-9999})};fa.prototype.Vw=function(){if(this.kh){this.kh.style.display="none";var f=document.getElementById("rubberstamp-preview");
|
|
f.parentNode.removeChild(f);this.kh=null}};fa.prototype.TU=function(){return!(this.qa instanceof f.a)};fa.prototype.Wba=function(){return Object(x.b)(this,void 0,Promise,function(){var e,h,n,r,z,y=this;return Object(x.d)(this,function(){e=[];h=function(h){var r=n.ov[h];w.a.$M[r]?e.push(new Promise(function(e){var h=new f.a;h.Icon=r;h.Opacity=1;h.Rotation=0;ea(h);e(h)})):"string"===typeof r&&e.push(new Promise(function(e,h){var n=new Image;n.crossOrigin="anonymous";n.onload=function(){return Object(x.b)(y,
|
|
void 0,void 0,function(){var h;return Object(x.d)(this,function(z){switch(z.label){case 0:return h=new f.a,h.Width=n.width,h.Height=n.height,[4,h.Ao(w.a.xaa(n))];case 1:return z.ea(),r.startsWith("data:")||h.Db("trn-original-url",r),e(h),[2]}})})};n.onerror=function(){h(Error('Image "'+r+'" cannot be loaded'))};n.src=r}))};n=this;r=0;for(z=this.ov.length;r<z;r++)h(r,z);return[2,Promise.all(e)]})})};fa.prototype.n4=function(f){f={title:f.title,subtitle:f.subtitle,color:f.color,id:f.hasOwnProperty("id")?
|
|
f.id:r.a.HC(),font:f.font||"Arial",bold:f.bold||!1,italic:f.italic||!1,underline:f.underline||!1,strikeout:f.strikeout||!1,textColor:f.textColor||new h.a(fa.TEXT_COLORS[0])};this.fp.push(f);this.trigger(fa.Events.STAMPS_UPDATED,this.fp)};fa.prototype.CR=function(e){return Object(x.b)(this,void 0,Promise,function(){var n,r,w,z,y;return Object(x.d)(this,function(x){switch(x.label){case 0:return n=document.createElement("canvas"),r=e.color||new h.a(fa.FILL_COLORS[0]),w={color:r,canvas:n,title:e.title,
|
|
subtitle:e.subtitle||"",width:300,height:100,font:e.font||"Arial",bold:e.bold||!1,italic:e.italic||!1,underline:e.underline||!1,strikeout:e.strikeout||!1,textColor:e.textColor||new h.a(fa.TEXT_COLORS[0])},z=this.cI(w),y=new f.a,y.Width=z/2,y.Height=w.height/2,[4,y.Ao(n.toDataURL())];case 1:return x.ea(),y.FillColor=r,y.t2=e.title,y.s2=e.subtitle,y.nna=e.color,y.m2=e.id,y.LF=!0,y.Sm=e,[2,y]}})})};fa.prototype.cI=function(f){var e=this.aa.ta(),n=f.canvas,r=f.title;e=f.subtitle?this.E$(f.subtitle.replace("$currentUser",
|
|
e.SI(e.kg()))):"";var z=f.color||new h.a(fa.FILL_COLORS[0]),y=f.textColor||new h.a(fa.TEXT_COLORS[0]),x=f.width,aa=f.height,da=f.font||"Arial",ja=f.bold?"bold":"",ca=f.italic?"italic":"",ha=f.underline||!1,ea=f.strikeout||!1,ba=f.canvasParent?f.canvasParent.offsetWidth-30:520;f=n.getContext("2d");var ka="string"===typeof e&&0<e.length,ia=w.a.gR({ctx:f,title:r,fontSize:2*(ka?.3:.5)*aa,yR:ba});ba=w.a.gR({ctx:f,title:e,fontSize:.35*aa,yR:ba});x=Math.max(ia.fu,ba.fu,2*x);n.width=x;n.height=2*aa;n.style.width=
|
|
x/2+"px";n.style.height=aa+"px";f.clearRect(0,0,n.width,n.height);w.a.x8({ctx:f,fu:x,color:z,OM:aa});w.a.y8({ctx:f,fontSize:ia.fontSize,TE:y,color:z,fu:x,OM:aa,title:r,font:da,bold:ja,italic:ca,underline:ha,lla:ea,Gca:ka});ka&&(f.fillStyle=y.toString(),f.font=[.35*aa+"px",da].join(" "),f.fillText(e,x/2,1.5*aa));return x/2};fa.prototype.vaa=function(){return Object(x.b)(this,void 0,Promise,function(){var f,e,h,n,r,w=this;return Object(x.d)(this,function(){f=[];e=function(e){var n=h.fp[e];f.push(new Promise(function(f){var e=
|
|
w.CR(n);f(e)}))};h=this;n=0;for(r=this.fp.length;n<r;n++)e(n,r);return[2,Promise.all(f)]})})};fa.Events={ANNOTATION_ADDED:"annotationAdded",STAMPS_UPDATED:"stampsUpdated"};fa.FILL_COLORS=["#4F9964","#2A85D0","#D65656"];fa.TEXT_COLORS=["#FFFFFF","#000000"];fa.TIMESTAMP_CHOICHES=[{id:"1",value:"DD/MM/YYYY, h:mm a"},{id:"2",value:"[By $currentUser at] h:mm a, MMMM D, YYYY"},{id:"3",value:"[By $currentUser on] MMMM Do, YYYY"},{id:"4",value:"MMMM D, YYYY, h:mm a"},{id:"5",value:"other"}];return fa}(ha.a);
|
|
ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);ia=e(43);var ha=e(18),ca=e(4),da=e(16),aa=e(8),w=e(3),y=e(69),n=e(12),h=window.Annotations.FreeHandAnnotation;e=function(f){function e(e,h){var n=f.call(this,e)||this;n.du=[];n.location=null;n.annot=null;n.bw=!1;n.Nc=0;n.ctx=null;n.kh=null;n.SR=200;n.name=h||w.m.SIGNATURE;n.defaults={StrokeColor:new aa.a(0,0,0),StrokeThickness:1,Opacity:1};n.ACCEPTED_FILE_SIZE=null;document.addEventListener("mouseup",function(){n.iP()});return n}Object(ea.c)(e,
|
|
f);e.ry=function(f){e.prototype.Zk=f};e.prototype.switchIn=function(){Object(ha.d)(this.aa,"crosshair")};e.prototype.switchOut=function(){this.Vw()};e.prototype.pP=function(f){var e=f.target.getBoundingClientRect();if(f&&f.touches){f=0===f.touches.length?f.changedTouches[0]:f.touches[0];var h=f.clientX;f=f.clientY}else h=f.clientX,f=f.clientY;return{x:h-e.left,y:f-e.top}};e.prototype.SO=function(){this.ctx.setTransform(1,0,0,1,0,0);this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height)};
|
|
e.prototype.c6=function(){this.SO();this.annot=null;this.bw=!1};e.prototype.iP=function(){this.bw&&this.Nc++;this.bw=!1};e.prototype.Zk=function(){return"Sign Here"};e.prototype.kia=function(){return Object(ea.b)(this,void 0,Promise,function(){var f,e,h,n,r,w,y,x;return Object(ea.d)(this,function(z){switch(z.label){case 0:if(!this.ctx)return[2];f=this.ctx.canvas;e=f.getBoundingClientRect();h=e.width;n=e.height;r=h/f.width;w=n/f.height;f.width=h;f.height=n;if(y=this.annot)x=this.annot.getRectPadding(),
|
|
this.annot.resize(new ca.d(y.n0()*r-x,y.q0()*w-x,y.p0()*r+x,y.l0()*w+x));return[4,this.eK()];case 1:return z.ea()||this.bG(),[2]}})})};e.prototype.bG=function(){this.SO();this.ctx.save();var f=this.aa.hc(1),e=this.annot.StrokeThickness;this.annot.StrokeThickness*=3;this.annot.draw(this.ctx,f);this.annot.StrokeThickness=e;this.ctx.restore()};e.prototype.Oz=function(f,e){void 0===e&&(e=void 0);var n=new h;this.Dz(n);n.StrokeColor=e?e.StrokeColor:this.defaults.StrokeColor;n.StrokeThickness=e?e.StrokeThickness:
|
|
this.defaults.StrokeThickness;f=Object(x.cloneDeep)(f);for(e=0;e<f.length;++e){for(var r=0;r<f[e].length;++r)f[e][r]=new ca.b(f[e][r].x,f[e][r].y);n.sj(f[e],e)}return n};e.prototype.XF=function(f){return Object(ea.b)(this,void 0,Promise,function(){var e;return Object(ea.d)(this,function(h){switch(h.label){case 0:return e=new y.a,this.Dz(e),[4,e.Ao(f)];case 1:return h.ea(),[2,e]}})})};e.prototype.Dz=function(f){f.Author=this.aa.ta().kg();f.Opacity=this.defaults.Opacity;f.Subject=n.a.Gc("signature");
|
|
f.ToolName=this.name;f.MaintainAspectRatio=!0};e.prototype.nY=function(f){Array.isArray(f)||(f=[f]);this.du=this.du.concat(f);this.trigger(e.Events.SIGNATURE_SAVED,[f])};e.prototype.Pba=function(){return this.du};e.prototype.m7=function(f){var h=this.du[f];this.du.splice(f,1);this.trigger(e.Events.SIGNATURE_DELETED,[h,f])};e.prototype.Uca=function(f){return Object(ea.b)(this,void 0,Promise,function(){var e,h=this;return Object(ea.d)(this,function(n){switch(n.label){case 0:return Array.isArray(f)||
|
|
(f=[f]),[4,Promise.all(f.map(function(f){return Object(ea.b)(h,void 0,void 0,function(){var e,h,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:if("string"!==typeof f)return[3,2];h=f;return[4,this.XF(h)];case 1:e=r.ea(),r.label=2;case 2:return Array.isArray(f)&&(n=f,e=this.Oz(n)),[2,e]}})})}))];case 1:return e=n.ea(),this.nY(e),[2]}})})};e.prototype.e$=function(){var f=this,e=this.du.map(function(e){return Object(ea.b)(f,void 0,void 0,function(){var f;return Object(ea.d)(this,function(n){switch(n.label){case 0:return e instanceof
|
|
h&&(f=e.mg()),e instanceof y.a?[4,e.getImageData()]:[3,2];case 1:f=n.ea(),n.label=2;case 2:return[2,f]}})})});return Promise.all(e)};e.prototype.ska=function(f,n){void 0===n&&(n=0);return Object(ea.b)(this,void 0,Promise,function(){var r,w,z,x,aa;return Object(ea.d)(this,function(fa){switch(fa.label){case 0:r=this.ACCEPTED_FILE_SIZE;w="number"===typeof r&&0<r&&0<n;if(!(w&&n>r))return[3,1];this.trigger(e.Events.FILE_REJECTED,[{reason:"size",maxSize:this.ACCEPTED_FILE_SIZE,size:n}]);return[3,7];case 1:return f instanceof
|
|
h&&(this.annot=this.Oz(f.mg(),f)),Array.isArray(f)&&(this.annot=this.Oz(f)),f instanceof y.a?[4,f.getImageData()]:[3,4];case 2:return z=fa.ea(),x=this,[4,this.XF(z)];case 3:x.annot=fa.ea(),fa.label=4;case 4:if("string"!==typeof f||!f)return[3,6];aa=this;return[4,this.XF(f)];case 5:aa.annot=fa.ea(),fa.label=6;case 6:f||(this.annot=null),fa.label=7;case 7:return[2]}})})};e.prototype.W5=function(){this.location=null};e.prototype.Eca=function(){return!!this.location};e.prototype.Jw=function(f){return Object(ea.b)(this,
|
|
void 0,Promise,function(){var e,h,n,r,w,z,x,aa;return Object(ea.d)(this,function(fa){switch(fa.label){case 0:return f instanceof y.a?[4,f.zm()]:[3,2];case 1:fa.ea(),e=f.image,h=e.width,n=e.height,f.Width=h,f.Height=n,fa.label=2;case 2:if(!f||!f.Width||!f.Height)return[2,Promise.reject("getPreview is called without passing an annotation or the annotation passed to it has width or height 0")];r=this.aa.hc(1);w={pageNumber:1,x:0,y:0};this.zA(f,w);z=f.Sa();x=document.createElement("canvas");x.width=z.Ba();
|
|
x.height=z.wa();aa=x.getContext("2d");f.draw(aa,r);return[2,x.toDataURL()]}})})};e.prototype.HM=function(){return Object(ea.b)(this,void 0,Promise,function(){var f,e,h,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:return this.kh||(this.kh=this.WF()),f=this.annot,e=this.kh.querySelector("img"),[4,this.Jw(f)];case 1:return e.src=r.ea(),h=this.aa.bc(),n=f.Sa(),Object(da.b)(this.kh,{display:"block",width:n.Ba()*h,height:n.wa()*h}),[2]}})})};e.prototype.WF=function(){var f=document.createElement("div");
|
|
f.id="signature-preview";Object(da.b)(f,{position:"absolute",border:"1px solid #00A4E4","z-index":85,"pointer-events":"none"});document.body.appendChild(f);var e=document.createElement("img");Object(da.b)(e,{width:"100%",height:"100%"});f.appendChild(e);e=this.aa.Xa();e.addEventListener("mousemove",function(e){var h=f.getBoundingClientRect();Object(da.b)(f,{left:e.clientX-h.width/2,top:e.clientY-h.height/2})});e.addEventListener("mouseleave",function(){Object(da.b)(f,{left:-9999,top:-9999})});return f};
|
|
e.prototype.Vw=function(){this.kh&&(this.kh.style.display="none")};e.prototype.B4=function(){return Object(ea.b)(this,void 0,Promise,function(){var f,h,n,r,w,x,aa;return Object(ea.d)(this,function(z){switch(z.label){case 0:return[4,this.eK()];case 1:return z.ea()||!this.annot?[2]:this.annot instanceof y.a?[4,this.annot.zm()]:[3,3];case 2:z.ea(),f=this.annot.image,h=f.width,n=f.height,this.annot.Width=h,this.annot.Height=n,z.label=3;case 3:return r=this.aa.ta(),w=this.location.pageNumber,this.annot.PageNumber=
|
|
w,x=this.aa.Hc(w),aa=r.Qn(this.annot),this.iY(aa,this.location,90*x),this.zA(aa,this.location),this.trigger(e.Events.SIGNATURE_READY,[aa]),r.Sd(aa),r.qb(aa),this.trigger(e.Events.ANNOTATION_ADDED,[this.annot]),this.location=this.annot=null,[2]}})})};e.prototype.iY=function(f,e,n){f instanceof h&&f.rotate(-n*Math.PI/180,e);f instanceof y.a&&(f.Rotation=(f.Rotation||0)+n,n=Math.abs(n),90!==n&&270!==n||f.cc(new ca.d(e.x-f.Height/2,e.y-f.Width/2,e.x+f.Height/2,e.y+f.Width/2)))};e.prototype.zA=function(f,
|
|
e){var h=this.SR/2,n=f.Width,r=f.Height;if(n>r){var w=e.x-h;var z=e.y-r/n*h;var y=e.x+h;n=e.y+r/n*h}else w=e.x-n/r*h,z=e.y-h,y=e.x+n/r*h,n=e.y+h;0>w&&(w=0,y=2*h);h=this.aa.getDocument();r=e.pageNumber;e=h.ad(r);r=h.mb(r);h=r.width;r=r.height;if(90===e||270===e)e=[h,r],r=e[0],h=e[1];w=new ca.d(w,z,y,n);w.Jh(new ca.d(0,0,h,r));f.resize(w)};e.prototype.eK=function(){return Object(ea.b)(this,void 0,Promise,function(){var f;return Object(ea.d)(this,function(e){switch(e.label){case 0:return f=!0,this.annot instanceof
|
|
h&&(f=0===this.annot.mg().length),this.annot instanceof y.a?[4,this.annot.getImageData()]:[3,2];case 1:f=!e.ea(),e.label=2;case 2:return[2,f]}})})};e.prototype.tka=function(f){var e=this;f.style.touchAction="none";this.ctx=f.getContext("2d");Object(da.a)(f,["mousedown","touchstart"],function(f){if(1===f.which||0===f.which)e.annot||(e.annot=e.Oz([]),e.Nc=0),e.annot instanceof h&&(f=e.pP(f),e.annot.Bc(f.x,f.y,e.Nc),e.bG(),e.bw=!0)});f.addEventListener("touchmove",function(f){f.cancelable&&f.preventDefault()});
|
|
Object(da.a)(f,["mousemove","touchmove"],Object(x.throttle)(function(f){e.bw&&e.annot instanceof h&&(f=e.pP(f),e.annot.Bc(f.x,f.y,e.Nc),e.bG())},20));Object(da.a)(f,["mouseup","touchend"],function(){e.iP()})};e.prototype.mouseLeftDown=function(e){e.preventDefault();f.prototype.mouseLeftDown.call(this,e);this.aa.la.he()};e.prototype.mouseLeftUp=function(h,n){h.preventDefault();f.prototype.mouseLeftUp.call(this,h);if(h=this.pageCoordinates[1])this.location=h,this.trigger(e.Events.LOCATION_SELECTED,
|
|
[h,n])};e.prototype.kja=function(f){this.SR=f.maximumDimensionSize};e.Events={LOCATION_SELECTED:"locationSelected",SIGNATURE_READY:"signatureReady",ANNOTATION_ADDED:"annotationAdded",SIGNATURE_DELETED:"signatureDeleted",SIGNATURE_SAVED:"signatureSaved",FILE_REJECTED:"fileRejected"};return e}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(2),ha=e(43),ca=e(18),da=e(4),aa=e(3),w=e(229),y=e(69);ia=function(e){function h(f,h){f=e.call(this,f)||this;f.annotation=null;f.defaults={Opacity:1};f.cursor="crosshair";
|
|
f.name=h||aa.m.STAMP;f.ACCEPTED_FILE_SIZE=null;return f}Object(ea.c)(h,e);h.prototype.switchIn=function(){ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!1;Object(ca.d)(this.aa,this.cursor)};h.prototype.switchOut=function(f){e.prototype.switchOut.call(this,f);ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!0};h.prototype.mouseLeftDown=function(f){var n=this;if(!this.annotation){e.prototype.mouseLeftDown.call(this,f);var z=this.aa.ta();z.he();var aa=this.pageCoordinates[0];if(aa){var ca=this.Me(this.lc).pageNumber;(f=
|
|
document.querySelector(".stamp-create-tool-file-uploader"))&&f.parentNode.removeChild(f);var ja=document.createElement("input");ja.classList.add("stamp-create-tool-file-uploader");ja.setAttribute("type","file");ja.setAttribute("accept",h.ACCEPTED_IMAGE_TYPES);ja.style.display="none";ja.onchange=function(){if(ja.files&&ja.files[0]){var f=ja.files[0];if("image/png"!==f.type&&"image/jpeg"!==f.type)Object(x.j)("Invalid file type. Please choose a png/jpg/jpeg file.");else{var e=f.size,r=n.ACCEPTED_FILE_SIZE;
|
|
"number"===typeof r&&0<r&&0<e&&e>r?n.trigger(h.Events.FILE_REJECTED,[{reason:"size",maxSize:n.ACCEPTED_FILE_SIZE,size:e}]):(e=new FileReader,e.onload=function(){return Object(ea.b)(n,void 0,void 0,function(){var e,n,r,x=this;return Object(ea.d)(this,function(fa){switch(fa.label){case 0:return this.annotation=new y.a,this.annotation.PageNumber=aa.pageNumber,this.annotation.Author=z.kg(),[4,Object(w.c)(f,{mimeType:w.a.JPEG})];case 1:return e=fa.ea(),[4,this.annotation.Ao(e)];case 2:return fa.ea(),n=
|
|
this.aa.Hc(this.annotation.PageNumber),this.annotation.Rotation=90*n,r=new Image,r.onload=function(){var f=r.width,e=r.height;if(1===n||3===n){var w=f;f=e;e=w}var y=f/e;w=x.aa.ld(ca);var fa=x.aa.kd(ca);f=Math.min(f,w);e=Math.min(e,fa);f/e!==y&&(e*y<f?f=e*y:e=f/y);x.annotation.Width=f;x.annotation.Height=e;x.annotation.X=aa.x-x.annotation.Width/2;x.annotation.Y=aa.y-x.annotation.Height/2;f=x.annotation.Sa();f.Jh(new da.d(0,0,w,fa));x.annotation.resize(f);x.annotation.ToolName=x.name;x.annotation.Opacity=
|
|
x.defaults.Opacity;x.trigger(h.Events.ANNOTATION_CREATED,[x.annotation]);z.Sd(x.annotation);x.trigger(h.Events.ANNOTATION_ADDED,[x.annotation]);z.Sc(x.annotation.PageNumber);x.annotation=null},r.src=e,[2]}})})},e.readAsDataURL(f),document.body.removeChild(ja))}}};document.body.insertBefore(ja,document.body.firstChild);ja.click()}}};h.ACCEPTED_IMAGE_TYPES=".jpg,.jpeg,.png";h.Events={ANNOTATION_ADDED:"annotationAdded",ANNOTATION_CREATED:"annotationCreated",FILE_REJECTED:"fileRejected"};return h}(ha.a);
|
|
ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(89);var x=e(8),ha=e(3),ca=window;e=function(e){function aa(w,y){w=e.call(this,w,ca.Annotations.DF)||this;w.defaults.StrokeColor=new x.a(255,255,0);w.name=y||ha.m.HIGHLIGHT;return w}Object(ea.c)(aa,e);return aa}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(140),ha=e(18),ca=e(3),da=e(130),aa=e(10);ia=function(e){function w(n,h){n=e.call(this,n)||this;n.Zf={};n.wr=null;n.kQ=null;n.dP=null;n.sg="TextSelectTool";n.name=h||ca.m.TEXT_SELECT;return n}Object(ea.c)(w,
|
|
e);w.prototype.select=function(n,h){var f=this,r=this.aa.ia.dJ();this.aa.sR();this.Zf={};e.prototype.select.call(this,n,h);var w=this.aa.ia.dJ();r.forEach(function(e){-1===w.indexOf(e)&&f.aa.la.Sc(e+1)})};w.prototype.mouseLeftDown=function(e){this.wr=null;var h=this.Me(this.Zg(e));if(h){var f=h.pageNumber,n=this.h3(f),w=this;n.nf=function(){return w.Zf[f]};var y=!1,aa=!1,ca=this.gG();0<ca.length&&(f===ca[0]&&(y=!0),f===ca[ca.length-1]&&(aa=!0));if(h=(new da.a(n,!0,!1,this.aa,y,aa)).Hy(n,this.aa.Lb(f),
|
|
h.x,h.y))this.wr=h,this.wr.Vi?this.kQ=this.m3():this.dP=this.i3()}this.wr||(x.a.prototype.mouseLeftDown.apply(this,arguments),this.Zf={});this.mouseDown=!0};w.prototype.mouseMove=function(n){if(this.mouseDown&&this.wr){n.preventDefault();var h=this.Me(this.Zg(n));h&&(this.wr.Vi?n=this.kQ:(n=h,h=this.dP),this.Zf={},this.select(n,h))}else e.prototype.mouseMove.call(this,n)};w.prototype.mouseLeftUp=function(n){e.prototype.mouseLeftUp.call(this,n);0<Object.keys(this.Zf).length?(Object(ha.d)(this.aa,"default"),
|
|
this.pQ()):0===this.aa.ta().Ed().length&&Object(ha.d)(this.aa,this.cursor)};w.prototype.textSelected=function(e,h,f){this.aa.ZD(e,h,f);0<h.length&&(Object(ha.d)(this.aa,"default"),this.Zf[e]=h);this.mouseDown||this.pQ()};w.prototype.mouseDoubleClick=function(e){var h=this.aa.ta();this.Ub=h.Pn(e);if(this.LC())h.trigger(aa.b.ANNOTATION_DOUBLE_CLICKED,this.Ub);else if(e=this.pageCoordinates[0]){var f=this;this.aa.pY(e.pageNumber,e,function(e,h,n){f.textSelected(e,h,n)})}};w.prototype.Nv=function(){this.Zf=
|
|
{}};w.prototype.pQ=function(){var e=this.qP();e.quad&&this.trigger(w.Events.SELECTION_COMPLETE,[e,this.Zf])};w.prototype.gG=function(){return Object.keys(this.Zf).map(function(e){return parseInt(e,10)}).sort(function(e,h){return e-h})};w.prototype.qP=function(){var e=this.gG()[0],h=this.Zf[e];return{quad:h?h[0]:null,pageNumber:e}};w.prototype.m3=function(){var e=this.qP(),h=e.quad;return{x:h.x1,y:(h.y1+h.y3)/2,pageNumber:e.pageNumber}};w.prototype.i3=function(){var e=this.gG();e=e[e.length-1];var h=
|
|
this.Zf[e];h=h[h.length-1];return{x:h.x3,y:(h.y1+h.y3)/2,pageNumber:e}};w.prototype.h3=function(e){var h=Infinity,f=Infinity,n=0,w=0;if(e=this.Zf[e])for(var y=0;y<e.length;++y){var x=e[y];h=Math.min(h,x.x1,x.x2,x.x3,x.x4);f=Math.min(f,x.y1,x.y2,x.y3,x.y4);n=Math.max(n,x.x1,x.x2,x.x3,x.x4);w=Math.max(w,x.y1,x.y2,x.y3,x.y4)}return{X:h,Y:f,Width:n-h,Height:w-f}};w.Events={SELECTION_COMPLETE:"selectionComplete"};return w}(x.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(89);var x=e(3),ha=window;e=function(e){function da(aa,
|
|
w){aa=e.call(this,aa,ha.Annotations.EF)||this;aa.name=w||x.m.SQUIGGLY;return aa}Object(ea.c)(da,e);return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(89);var x=e(3),ha=window;e=function(e){function da(aa,w){aa=e.call(this,aa,ha.Annotations.FF)||this;aa.name=w||x.m.STRIKEOUT;return aa}Object(ea.c)(da,e);da.prototype.mouseLeftUp=function(x){e.prototype.mouseLeftUp.call(this,x);if(!this.isSelecting()){x=this.annotation;var w=this.aa.la;x&&w.pg(x)&&w.qb(x)}};return da}(ia.a);ba.a=e},function(ia,
|
|
ba,e){var ea=e(1);ia=e(89);var x=e(3),ha=window;e=function(e){function da(aa,w){aa=e.call(this,aa,ha.Annotations.GF)||this;aa.name=w||x.m.UNDERLINE;return aa}Object(ea.c)(da,e);return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(43),ca=e(18),da=e(4),aa=e(3),w=e(8),y=e(234);ia=function(e){function h(f,h){f=e.call(this,f)||this;f.annotation=null;f.defaults={Opacity:1,StrokeColor:new w.a("#000000")};f.cursor="crosshair";f.name=h||aa.m.FILEATTACHMENT;f.ACCEPTED_FILE_TYPES=null;
|
|
f.ACCEPTED_FILE_SIZE=null;return f}Object(ea.c)(h,e);h.prototype.switchIn=function(){ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!1;Object(ca.d)(this.aa,this.cursor)};h.prototype.switchOut=function(f){e.prototype.switchOut.call(this,f);ha.a.ENABLE_ANNOTATION_HOVER_CURSORS=!0};h.prototype.mouseLeftDown=function(f){var n=this;if(!this.annotation){e.prototype.mouseLeftDown.call(this,f);var w=this.aa.ta();w.he();var aa=this.pageCoordinates[0];if(aa){var ca=this.Me(this.lc).pageNumber;(f=document.querySelector(".file-attachment-create-tool-file-input"))&&
|
|
f.parentNode.removeChild(f);var ja=document.createElement("input");ja.setAttribute("type","file");ja.classList.add("file-attachment-create-tool-file-input");ja.style.display="none";this.ACCEPTED_FILE_TYPES&&ja.setAttribute("accept",this.ACCEPTED_FILE_TYPES);ja.onchange=function(){if(ja.files&&ja.files[0]){var f=Number(n.ACCEPTED_FILE_SIZE);Object(x.isNumber)(f)&&0<f&&ja.files[0].size>f?n.trigger(h.Events.FILE_REJECTED,[{reason:"size",maxSize:n.ACCEPTED_FILE_SIZE,size:ja.files[0].size}]):(f=new FileReader,
|
|
f.onload=function(f){return Object(ea.b)(n,void 0,void 0,function(){var e,n,r,z,x;return Object(ea.d)(this,function(fa){switch(fa.label){case 0:return e=f.target.result,n=ja.files[0],this.annotation=new y.a,this.annotation.X=aa.x,this.annotation.Y=aa.y,this.annotation.PageNumber=aa.pageNumber,this.annotation.Author=w.kg(),[4,this.annotation.IY(e,n.type,n.name)];case 1:return fa.ea(),r=this.aa.ld(ca),z=this.aa.kd(ca),x=this.annotation.Sa(),x.Jh(new da.d(0,0,r,z)),this.annotation.resize(x),this.annotation.ToolName=
|
|
this.name,this.annotation.StrokeColor=this.defaults.StrokeColor,this.annotation.Opacity=this.defaults.Opacity,this.trigger(h.Events.ANNOTATION_CREATED,[this.annotation]),w.Sd(this.annotation),this.trigger(h.Events.ANNOTATION_ADDED,[this.annotation]),w.qb(this.annotation),this.annotation=null,[2]}})})},f.readAsArrayBuffer(ja.files[0]));document.body.removeChild(ja)}};document.body.insertBefore(ja,document.body.firstChild);ja.click()}}};h.Events={FILE_REJECTED:"fileRejected",ANNOTATION_CREATED:"annotationCreated",
|
|
ANNOTATION_ADDED:"annotationAdded"};return h}(ha.a);ba.a=ia},function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.TEXT_FORM_FIELD);aa=e.call(this,aa,w)||this;aa.defaults.FillColor=new x.a(211,211,211,.5);aa.defaults.StrokeColor=new x.a(0,0,0,1);aa.defaults.FontSize="12pt";aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,
|
|
x);!x.name.includes("FormFieldCreateTool")&&this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.FontSize=this.defaults.FontSize,this.annotation.TextColor=this.defaults.TextColor,this.annotation.Db(ha.b,ha.d.TEXT),this.zb.gy(this.annotation,ha.d.TEXT))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.SIG_FORM_FIELD);aa=e.call(this,
|
|
aa,w)||this;aa.defaults.FillColor=new x.a(211,211,211,.5);aa.defaults.StrokeColor=new x.a(0,165,228);aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,x);!x.name.includes("FormFieldCreateTool")&&this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.Db(ha.b,
|
|
ha.d.SIGNATURE),this.zb.gy(this.annotation,ha.d.SIGNATURE))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.CHECK_BOX_FIELD);aa=e.call(this,aa,w)||this;aa.defaults.FillColor=new x.a(211,211,211,.5);aa.defaults.StrokeColor=new x.a(0,0,0,1);aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,
|
|
x);!x.name.includes("FormFieldCreateTool")&&this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.Db(ha.b,ha.d.CHECK),this.zb.gy(this.annotation,ha.d.CHECK))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(151);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.RADIO_FORM_FIELD);aa=e.call(this,aa,w)||this;aa.defaults.FillColor=new x.a(211,211,211,.5);aa.defaults.StrokeColor=new x.a(0,
|
|
0,0,1);aa.FV=!0;aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,x);!x.name.includes("FormFieldCreateTool")&&this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.Db(ha.b,ha.d.RADIO),this.zb.gy(this.annotation,"Radio Button"))};return da}(ia.a);ba.a=e},
|
|
function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.LIST_BOX_FIELD);aa=e.call(this,aa,w)||this;aa.defaults.FillColor=new x.a(211,211,211,.5);aa.defaults.StrokeColor=new x.a(0,165,228);aa.defaults.FontSize="12pt";aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,x);!x.name.includes("FormFieldCreateTool")&&
|
|
this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.FontSize=this.defaults.FontSize,this.annotation.TextColor=this.defaults.TextColor,this.annotation.Db(ha.b,ha.d.LIST),this.zb.gy(this.annotation,ha.d.LIST))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(90);var x=e(8),ha=e(3);e=function(e){function da(aa,w){void 0===w&&(w=ha.m.COMBO_BOX_FIELD);aa=e.call(this,aa,w)||this;aa.defaults.FillColor=new x.a(211,
|
|
211,211,.5);aa.defaults.StrokeColor=new x.a(0,165,228);aa.defaults.FontSize="12pt";aa.zb=aa.aa.la.Tn();return aa}Object(ea.c)(da,e);da.prototype.switchIn=function(x){e.prototype.switchIn.call(this,x);this.zb.If()||this.zb.hu()};da.prototype.switchOut=function(x){e.prototype.switchOut.call(this,x);!x.name.includes("FormFieldCreateTool")&&this.zb.If()&&this.zb.Yj()};da.prototype.mouseLeftDown=function(x){e.prototype.mouseLeftDown.call(this,x);this.annotation&&(this.annotation.FontSize=this.defaults.FontSize,
|
|
this.annotation.TextColor=this.defaults.TextColor,this.annotation.Db(ha.b,ha.d.COMBO),this.zb.gy(this.annotation,ha.d.COMBO))};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(210);var x=e(18),ha=e(53),ca=e(54),da=e(3);e=function(e){function w(w,n){void 0===n&&(n=da.m.ARC_MEASUREMENT);w=e.call(this,w,n)||this;w.Measure=Object(x.a)(x.b);Object(ha.b)(w.defaults,new ca.b(w));w.IT="ArcDimension";return w}Object(ea.c)(w,e);w.prototype.mouseLeftDown=function(w){return Object(ea.b)(this,void 0,
|
|
Promise,function(){return Object(ea.d)(this,function(n){switch(n.label){case 0:return[4,e.prototype.mouseLeftDown.call(this,w)];case 1:n.ea();if(!this.annotation||this.Ub&&!this.overrideSelection&&!this.Fe)return[2];this.annotation.Measure=Object(x.a)(this.Measure);this.annotation.IT=this.IT;return[2]}})})};return w}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(1);ia=e(26);var x=e(18),ha=e(8),ca=e(4),da=e(3),aa=e(69),w=e(155),y=e(32);e=function(e){function h(f,h){f=e.call(this,f)||this;f.Fe=!1;f.annotation=
|
|
null;f.defaults={StrokeColor:new ha.a(228,66,52),Opacity:1};f.cursor="crosshair";f.name=h||da.m.CHANGEVIEW;return f}Object(ea.c)(h,e);h.prototype.switchIn=function(){Object(x.d)(this.aa,this.cursor)};h.prototype.mouseLeftUp=function(f){return Object(ea.b)(this,void 0,Promise,function(){var n,z,x,da,ja,ba,ia,la,na,ra;return Object(ea.d)(this,function(r){switch(r.label){case 0:e.prototype.mouseLeftUp.call(this,f);n=this.pageCoordinates[1];if(!n||this.Ub&&!this.Fe&&!this.overrideSelection)return[2];
|
|
z=this.aa.la;z.he();x=n.pageNumber;da=this.aa.ld(x);ja=this.aa.kd(x);ba=this.documentViewer.getZoomLevel();ia=1;ia=6>ba?1/ba:1/6;this.annotation=new aa.a;this.annotation.PageNumber=x;this.annotation.Author=z.kg();this.annotation.Width=y.a.RR.width*ia;this.annotation.Height=y.a.RR.height*ia;this.annotation.X=n.x-this.annotation.Width/2;this.annotation.Y=n.y-this.annotation.Height/2;this.annotation.MaintainAspectRatio=!0;la=this.annotation.Sa();la.Jh(new ca.d(0,0,da,ja));this.annotation.resize(la);
|
|
na=this.defaults.StrokeColor;this.annotation.StrokeColor=new ha.a(na.R,na.G,na.B,na.A);this.annotation.Opacity=this.defaults.Opacity;this.annotation.ToolName=this.name;this.annotation.selectionModel=w.a;this.trigger(h.Events.ANNOTATION_CREATED,[this.annotation]);return[4,this.aa.getState()];case 1:return ra=r.ea(),this.annotation.ViewState=ra,z.Sd(this.annotation),this.trigger(h.Events.ANNOTATION_ADDED,[this.annotation]),z.qb(this.annotation),this.annotation=null,f.preventDefault(),[2]}})})};h.prototype.Yl=
|
|
function(){return!0};h.prototype.dw=function(){this.Fe=!0};h.prototype.Zv=function(){this.Fe=!1};h.Events={ANNOTATION_ADDED:"annotationAdded",ANNOTATION_CREATED:"annotationCreated"};return h}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(10),ca=e(25),da=e(3),aa=e(13);(function(e){var w=e.Annotations||{};e.Annotations=w;w.ha=w.ha||{};w.ha.getUsableInputWidth=function(e){return e};w.ha.xf=function(e){this.la=e;this.init()};w.ha.xf.prototype={init:function(){this.Fb={};this.wp=
|
|
[];this.qG=!1;this.bu=this.jP=!0;this.oL=this.XG=null},AY:function(e){this.wp=e},Jaa:function(){var e=[],h=[];for(this.Up(function(f){h.push(f)});0<h.length;){var f=h.pop();f.children.forEach(function(f){return h.push(f)});e.push(f)}return e},$S:function(){return this.wp},gc:function(e){if(!e)return null;e=e.split(".");var h=this.Fb[e[0]];if(h)for(var f=1;f<e.length&&(h=h.hC(e[f]),h);++f);return h?h:null},Vla:function(e,h){if(!e||!h)return null;var f=e.name;h=h.toString();""!==h&&(this.Qha(f),e.qM(h),
|
|
this.uv(e));return e},uv:function(e,h){h?(h=this.Hw(e.name),h.set(e),e=h,e.widgets.forEach(function(f){f.HY(e)}),e.removeEventListener(w.ha.va.Events.CHANGE,null,{df:!0})):(h=e.name.split("."),1===h.length?this.Fb[e.name]=e:(h=h.slice(0,-1).join("."),this.Hw(h).xQ(new w.ha.va(e.name,e))));e.set({fieldManager:this});this.la&&e.ii(this.la.aa);e.addEventListener(w.ha.va.Events.CHANGE,Object(ea.bind)(this.qI,this));return e},Dv:function(e,h){if(!this.qG&&this.bu){this.qG=!0;var f=this.wp;if(!h||this.jP)h=
|
|
0,this.jP=!1;for(;h<f.length;++h){var n=f[h],z=this.gc(n);z?z.trigger(w.ha.va.Events.CALCULATE,[e]):Object(x.j)("Non-existent field referenced in calculation order",n,z)}this.qG=!1}},qI:function(e){var h=this;e.widgets&&e.widgets.forEach(function(f){f instanceof ca.TextWidgetAnnotation&&f.fV()&&f.Uc()&&!f.tw()&&(f.Fz=null,f.refresh(),h.la.Sc(f.PageNumber))});this.Dv(e,0);this.la.trigger(ha.b.FIELD_CHANGED,[e,e.value])},Hw:function(n){if(!n)return null;n=n.split(".");var h=this.Fb[n[0]];h||(h=new e.Annotations.ha.va(n[0],
|
|
{fieldManager:this}),h.addEventListener(w.ha.va.Events.CHANGE,Object(ea.bind)(this.qI,this)),this.Fb[n[0]]=h);for(var f=1;f<n.length;++f){var r=n[f],z=h.hC(r);z?h=z:(z=new e.Annotations.ha.va(h.name+"."+r,{fieldManager:this}),h.xQ(z),h=z,h.addEventListener(w.ha.va.Events.CHANGE,Object(ea.bind)(this.qI,this)))}this.la&&h.ii(this.la.aa);return h},Ry:function(e){this.Up(function(h){h.gN(e)})},flatten:function(e){var h=this;return e.reduce(function(f,e){return[].concat(Md(f),[e],Md(h.flatten(e.children)))},
|
|
[])},Z4:function(){var e=this,h=Object.keys(this.Fb).map(function(f){return e.Fb[f]});h=this.flatten(h).filter(function(f){return f.flags.get(aa.a.REQUIRED)});return 0===h.length?!0:0===h.filter(function(f){return f.Zp()===da.d.SIGNATURE?(f=f.widgets[0])&&!f.ig():["",null,void 0,"Off"].includes(f.Ab())}).length},Up:function(e){var h=this;Object.keys(this.Fb).forEach(function(f){e(h.Fb[f])})},se:function(){this.Up(function(e){e.removeEventListener()});this.init()},alert:function(e){this.XG?this.XG(e):
|
|
window.alert(e)},print:function(){this.oL?this.oL():Object(x.j)("Embedded javascript need to use/call setPrintHandler")},Qha:function(e){var h=e.split("."),f=this.Fb[h[0]];if(1===h.length)delete this.Fb[h[0]];else{for(var n=[f],w=1;w<h.length;++w){var x=f.hC(h[w]);if(x){if(x.name===e){h=f;h.zd=h.zd.filter(function(f){return f.name!==e});break}f=x;n.unshift(f)}}h={};for(f=0;f<n.length;h={Cu:h.Cu},f++)if(h.Cu=n[f],0===h.Cu.zd.length)(w=n[f+1])?w.zd=w.zd.filter(function(f){return function(e){return e.name!==
|
|
f.Cu.name}}(h)):delete this.Fb[h.Cu.name];else break}},Mia:function(e){this.XG=e},dka:function(e){this.oL=e}}})(window)},function(ia,ba,e){function ea(e){return e===x.f.E_0||e===x.f.E_180}e.d(ba,"a",function(){return ea});var x=e(3)},function(ia,ba,e){var ea=e(163);ba.a=function(e){return e?new Promise(function(x,ca){try{var da=new XMLHttpRequest;da.onreadystatechange=function(){if(da.readyState===XMLHttpRequest.HEADERS_RECEIVED||da.readyState===XMLHttpRequest.DONE)return 200>da.status||300<=da.status?
|
|
ca():x(Object(ea.e)(da))};da.timeout=1E3;da.onerror=function(){return ca()};da.ontimeout=function(){return ca()};da.open("HEAD",e);da.send()}catch(aa){return ca(aa.message)}}):Promise.reject("No input provided")}},function(ia,ba){ba.a=function(e){var ea={};decodeURIComponent(e.slice(1)).split("&").forEach(function(e){e=e.split("=",2);ea[e[0]]=e[1]});return ea}},function(ia,ba,e){function ea(f,e,h,n){var r=null;aa||ca();if(f.constructor==String&&(16==f.length||24==f.length||32==f.length))f=da.ir.createBuffer(f);
|
|
else if(f.constructor==Array&&(16==f.length||24==f.length||32==f.length)){var w=f;f=da.ir.createBuffer();for(var z=0;z<w.length;++z)f.dX(w[z])}if(f.constructor!=Array&&(w=f,f=[],z=w.length(),16==z||24==z||32==z)){z>>>=2;for(var y=0;y<z;++y)f.push(w.getInt32())}if(f.constructor==Array&&(4==f.length||6==f.length||8==f.length)){var fa=ha(f,n),ea,ba,ka,qa,ia,oa;r={output:null,update:function(f){oa||ea.Gga(f);for(f=n&&!oa?32:16;ea.length()>=f;){if(n)for(var e=0;4>e;++e)ka[e]=ea.getInt32();else for(e=0;4>
|
|
e;++e)ka[e]=ia[e]^ea.getInt32();x(fa,ka,qa,n);if(n){for(e=0;4>e;++e)ba.eX(ia[e]^qa[e]);ia=ka.slice(0)}else{for(e=0;4>e;++e)ba.eX(qa[e]);ia=qa}}},finish:function(f){var e=!0;if(!n)if(f)e=f(16,ea,n);else{var h=16==ea.length()?16:16-ea.length();ea.s$(h,h)}e&&(oa=!0,r.update());n&&(e=0===ea.length())&&(f?e=f(16,ba,n):(f=ba.length(),f=ba.at(f-1),16<f?e=!1:ba.truncate(f)));return e},start:function(f,e){f=f||ia.slice(0);if(f.constructor==String&&16==f.length)f=da.ir.createBuffer(f);else if(f.constructor==
|
|
Array&&16==f.length){var h=f;f=da.ir.createBuffer();for(var n=0;16>n;++n)f.dX(h[n])}f.constructor!=Array&&(h=f,f=Array(4),f[0]=h.getInt32(),f[1]=h.getInt32(),f[2]=h.getInt32(),f[3]=h.getInt32());ea=da.ir.createBuffer();ba=e||da.ir.createBuffer();ia=f.slice(0);ka=Array(4);qa=Array(4);oa=!1;r.output=ba}};null!==e&&r.start(e,h)}return r}function x(e,n,x,aa){var r=e.length/4-1;if(aa){var z=f[0];var fa=f[1];var da=f[2];var ca=f[3];var ha=y}else z=h[0],fa=h[1],da=h[2],ca=h[3],ha=w;var ea=n[0]^e[0];var ba=
|
|
n[aa?3:1]^e[1];var ka=n[2]^e[2];n=n[aa?1:3]^e[3];for(var ia=3,oa=1;oa<r;++oa){var ua=z[ea>>>24]^fa[ba>>>16&255]^da[ka>>>8&255]^ca[n&255]^e[++ia];var Ca=z[ba>>>24]^fa[ka>>>16&255]^da[n>>>8&255]^ca[ea&255]^e[++ia];var ya=z[ka>>>24]^fa[n>>>16&255]^da[ea>>>8&255]^ca[ba&255]^e[++ia];n=z[n>>>24]^fa[ea>>>16&255]^da[ba>>>8&255]^ca[ka&255]^e[++ia];ea=ua;ba=Ca;ka=ya}x[0]=ha[ea>>>24]<<24^ha[ba>>>16&255]<<16^ha[ka>>>8&255]<<8^ha[n&255]^e[++ia];x[aa?3:1]=ha[ba>>>24]<<24^ha[ka>>>16&255]<<16^ha[n>>>8&255]<<8^ha[ea&
|
|
255]^e[++ia];x[2]=ha[ka>>>24]<<24^ha[n>>>16&255]<<16^ha[ea>>>8&255]<<8^ha[ba&255]^e[++ia];x[aa?1:3]=ha[n>>>24]<<24^ha[ea>>>16&255]<<16^ha[ba>>>8&255]<<8^ha[ka&255]^e[++ia]}function ha(e,h){e=e.slice(0);for(var r,z=1,x=e.length,y=4*(x+6+1),aa=x;aa<y;++aa)r=e[aa-1],0===aa%x?(r=w[r>>>16&255]<<24^w[r>>>8&255]<<16^w[r&255]<<8^w[r>>>24]^n[z]<<24,z++):6<x&&4===aa%x&&(r=w[r>>>24]<<24^w[r>>>16&255]<<16^w[r>>>8&255]<<8^w[r&255]),e[aa]=e[aa-x]^r;if(h){r=f[0];z=f[1];x=f[2];aa=f[3];var da=e.slice(0);y=e.length;
|
|
for(var ca=0,ha=y-4;ca<y;ca+=4,ha-=4)if(0===ca||ca===y-4)da[ca]=e[ha],da[ca+1]=e[ha+3],da[ca+2]=e[ha+2],da[ca+3]=e[ha+1];else for(var ea=0;4>ea;++ea)h=e[ha+ea],da[ca+(3&-ea)]=r[w[h>>>24]]^z[w[h>>>16&255]]^x[w[h>>>8&255]]^aa[w[h&255]];e=da}return e}function ca(){aa=!0;n=[0,1,2,4,8,16,32,64,128,27,54];for(var e=Array(256),z=0;128>z;++z)e[z]=z<<1,e[z+128]=z+128<<1^283;w=Array(256);y=Array(256);h=Array(4);f=Array(4);for(z=0;4>z;++z)h[z]=Array(256),f[z]=Array(256);for(var x=z=0,da,ca,ha,ea,ba,na=0;256>
|
|
na;++na){ea=x^x<<1^x<<2^x<<3^x<<4;ea=ea>>8^ea&255^99;w[z]=ea;y[ea]=z;ba=e[ea];da=e[z];ca=e[da];ha=e[ca];ba^=ba<<24^ea<<16^ea<<8^ea;ca=(da^ca^ha)<<24^(z^ha)<<16^(z^ca^ha)<<8^z^da^ha;for(var ia=0;4>ia;++ia)h[ia][z]=ba,f[ia][ea]=ca,ba=ba<<24|ba>>>8,ca=ca<<24|ca>>>8;0===z?z=x=1:(z=da^e[e[e[da^ha]]],x^=e[e[x]])}}ia=e(322);"undefined"!==typeof window&&((window.D$=window.D$||{}).vn={});var da={vn:{}};da.ir=ia.a;var aa=!1,w,y,n,h,f;da.vn.nqa=function(f,e,h){return ea(f,e,h,!1)};da.vn.Wna=function(f){return ea(f,
|
|
null,null,!1)};da.vn.hla=function(f,e){return ea(f,e,void 0,!0)};da.vn.Vna=function(f){return ea(f,null,null,!0)};da.vn.tna=function(f,e){aa||ca();return ha(f,e)};da.vn.Cna=x;ba.a=da},function(ia,ba){function e(e,f,n){var h=null;"undefined"===typeof n&&(n=["web","flash"]);var r=!1,w=null,x;for(x in n){var y=n[x];try{if("flash"===y||"both"===y){if(null===f[0])throw{message:"Flash local storage not available."};h=e.apply(this,f);r="flash"===y}if("web"===y||"both"===y)f[0]=localStorage,h=e.apply(this,
|
|
f),r=!0}catch(ma){w=ma}if(r)break}if(!r)throw w;return h}function ea(e,f){aa(e,f,null)}function x(e,f,n){var h=da(e,f);if(null!==h&&n in h){delete h[n];n=!0;for(var r in tmp){n=!1;break}n&&(h=null);aa(e,f,h)}}function ha(e,f,n){e=da(e,f);null!==e&&(e=n in e?e[n]:null);return e}function ca(e,f,n,w){var h=da(e,f);null===h&&(h={});h[n]=w;aa(e,f,h)}function da(e,f){if(!e)throw{message:"WebStorage not available."};f=e.getItem(f);if(e.init)if(null===f.oE){if(f.error)throw f.error;f=null}else f=f.oE;null!==
|
|
f&&(f=JSON.parse(w.OH(f)));return f}function aa(e,f,n){if(!e)throw{message:"WebStorage not available."};null===n?e=e.removeItem(f):(n=w.iI(JSON.stringify(n)),e=e.setItem(f,n));if("undefined"!==typeof e&&!0!==e.oE)throw e.error;}var w={Nd:function(e){this.data=e||"";this.read=0}};w.Nd.prototype.length=function(){return this.data.length-this.read};w.Nd.prototype.isEmpty=function(){return 0===this.data.length-this.read};w.Nd.prototype.dX=function(e){this.data+=String.fromCharCode(e)};w.Nd.prototype.s$=
|
|
function(e,f){e=String.fromCharCode(e);for(var h=this.data;0<f;)f&1&&(h+=e),f>>>=1,0<f&&(e+=e);this.data=h};w.Nd.prototype.eX=function(e){this.data+=String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};w.Nd.prototype.Gga=function(e){this.data+=e.haa()};w.Nd.prototype.getInt16=function(){var e=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);this.read+=2;return e};w.Nd.prototype.getInt32=function(){var e=this.data.charCodeAt(this.read)<<
|
|
24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);this.read+=4;return e};w.Nd.prototype.haa=function(){if(e){var e=Math.min(this.length(),e);var f=this.data.slice(this.read,this.read+e);this.read+=e}else 0===e?f="":(f=0===this.read?this.data:this.data.slice(this.read),this.clear());return f};w.Nd.prototype.ql=function(e){return"undefined"===typeof e?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};w.Nd.prototype.at=function(e){return this.data.charCodeAt(this.read+
|
|
e)};w.Nd.prototype.zY=function(e,f){this.data=this.data.substr(0,this.read+e)+String.fromCharCode(f)+this.data.substr(this.read+e+1)};w.Nd.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};w.Nd.prototype.copy=function(){var e=w.createBuffer(this.data);e.read=this.read;return e};w.Nd.prototype.compact=function(){0<this.read&&(this.data=this.data.slice(this.read),this.read=0)};w.Nd.prototype.clear=function(){this.data="";this.read=0};w.Nd.prototype.truncate=function(e){e=Math.max(0,
|
|
this.length()-e);this.data=this.data.substr(this.read,e);this.read=0};w.Nd.prototype.yla=function(){for(var e="",f=this.read;f<this.data.length;++f){var n=this.data.charCodeAt(f);16>n&&(e+="0");e+=n.toString(16)}return e};w.Nd.prototype.toString=function(){return w.b7(this.ql())};w.createBuffer=function(e,f){void 0!==e&&"utf8"===(f||"raw")&&(e=w.R9(e));return new w.Nd(e)};w.Foa=function(e,f){for(var h="";0<f;)f&1&&(h+=e),f>>>=1,0<f&&(e+=e);return h};w.Dqa=function(e,f,n){for(var h="",r,w="",x=0,y=
|
|
0;0<n;--n,++x)r=e.charCodeAt(x)^f.charCodeAt(x),10<=y&&(h+=w,w="",y=0),w+=String.fromCharCode(r),++y;return h+w};w.dpa=function(e){var f="",h=0;e.length&1&&(h=1,f+=String.fromCharCode(parseInt(e[0],16)));for(;h<e.length;h+=2)f+=String.fromCharCode(parseInt(e.substr(h,2),16));return f};w.Nna=function(e){return w.createBuffer(e).yla()};w.lpa=function(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var y=[62,-1,-1,-1,63,
|
|
52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];w.iI=function(e){for(var f="",h,n,w,x=0;x<e.length;)h=e.charCodeAt(x++),n=e.charCodeAt(x++),w=e.charCodeAt(x++),f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h>>2),f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((h&3)<<4|n>>
|
|
4),isNaN(n)?f+="==":(f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((n&15)<<2|w>>6),f+=isNaN(w)?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(w&63));return""+f};w.OH=function(e){e=e.replace(/[^A-Za-z0-9\+\/=]/g,"");for(var f="",h,n,w,x,aa=0;aa<e.length;)h=y[e.charCodeAt(aa++)-43],n=y[e.charCodeAt(aa++)-43],w=y[e.charCodeAt(aa++)-43],x=y[e.charCodeAt(aa++)-43],f+=String.fromCharCode(h<<2|n>>4),64!==w&&(f+=String.fromCharCode((n&15)<<4|
|
|
w>>2),64!==x&&(f+=String.fromCharCode((w&3)<<6|x)));return f};w.R9=function(e){return unescape(encodeURIComponent(e))};w.b7=function(e){return decodeURIComponent(escape(e))};w.Wv=function(e,f,n){f=w.OH(e.Wv(w.iI(f)).oE);n&&(e=2,f.charCodeAt(1)&32&&(e=6),f=f.substring(e,f.length-4));return f};w.Vl=function(e,f){e=e.Vl(w.iI(f)).oE;return null===e?null:w.OH(e)};w.setItem=function(h,f,n,w,x){e(ca,arguments,x)};w.getItem=function(h,f,n,w){return e(ha,arguments,w)};w.removeItem=function(h,f,n,w){e(x,arguments,
|
|
w)};w.Rna=function(h,f,n){e(ea,arguments,n)};w.Kpa=function(e){var f=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;f.lastIndex=0;f=f.exec(e);if(e=null===f?null:{full:e,scheme:f[1],host:f[2],port:f[3],path:f[4]})e.ow=e.host,e.port?80!==e.port&&"http"===e.scheme?e.ow+=":"+e.port:443!==e.port&&"https"===e.scheme&&(e.ow+=":"+e.port):"http"===e.scheme?e.port=80:"https"===e.scheme&&(e.port=443),e.full=e.scheme+"://"+e.ow;return e};var n=null;w.Eba=function(e){function f(f){var e={};f=f.split("&");for(var h=
|
|
0;h<f.length;h++){var n=f[h].indexOf("=");if(0<n){var r=f[h].substring(0,n);n=f[h].substring(n+1)}else r=f[h],n=null;r in e||(e[r]=[]);null!==n&&e[r].push(unescape(n))}return e}"undefined"===typeof e?(null===n&&(n="undefined"===typeof window?{}:f(window.location.search.substring(1))),e=n):e=f(e);return e};w.Ffa=function(e){var f=e,h="",n=e.indexOf("?");0<n&&(f=e.substring(0,n),h=e.substring(n+1));e=f.split("/");0<e.length&&""==e[0]&&e.shift();n=""==h?{}:w.Eba(h);return{iga:f,Hga:h,path:e,query:n}};
|
|
w.upa=function(e){var f=w.Ffa(e),h={path:f.iga,query:f.Hga,Ra:function(e){return"undefined"===typeof e?f.path:f.path[e]},getQuery:function(e,h){"undefined"===typeof e?e=f.query:(e=f.query[e])&&"undefined"!==typeof h&&(e=e[h]);return e},Xoa:function(f,e){return(f=h.getQuery(f))?f[f.length-1]:e}};return h};w.tpa=function(e,f,n){e=jQuery.isArray(e)?e.join("/"):e;f=jQuery.param(f||{});n=n||"";return e+(0<f.length?"?"+f:"")+(0<n.length?"#"+n:"")};w.sj=function(e,f,n){if("object"===typeof e&&null!==e)for(var h=
|
|
0,r=f.length;h<r;){var w=f[h++];if(h==r)e[w]=n;else{var x=w in e;if(!x||x&&"object"!==typeof e[w]||x&&null===e[w])e[w]={};e=e[w]}}};w.Ra=function(e,f,n){for(var h=0,r=f.length,w=!0;w&&h<r&&"object"===typeof e&&null!==e;){var x=f[h++];(w=x in e)&&(e=e[x])}return w?e:n};w.koa=function(e,f){if("object"===typeof e&&null!==e)for(var h=0,n=f.length;h<n;){var w=f[h++];if(h==n)delete e[w];else{if(!(w in e)||"object"!==typeof e[w]||null===e[w])break;e=e[w]}}};w.isEmpty=function(e){for(var f in e)if(e.hasOwnProperty(f))return!1;
|
|
return!0};w.format=function(e){var f=/%./g,h,n,w=0,x=[];for(n=0;h=f.exec(e);)switch(n=e.substring(n,f.lastIndex-2),0<n.length&&x.push(n),n=f.lastIndex,h=h[0][1],h){case "s":case "o":w<arguments.length?x.push(arguments[w++ +1]):x.push("<?>");break;case "%":x.push("%");break;default:x.push("<%"+h+"?>")}x.push(e.substring(n));return x.join("")};w.mw=function(e,f,n,w){var h=isNaN(f=Math.abs(f))?2:f;f=void 0===n?",":n;w=void 0===w?".":w;n=0>e?"-":"";var r=""+parseInt(e=Math.abs(+e||0).toFixed(h),10),x=
|
|
3<r.length?r.length%3:0;return n+(x?r.substr(0,x)+w:"")+r.substr(x).replace(/(\d{3})(?=\d)/g,"$1"+w)+(h?f+Math.abs(e-r).toFixed(h).slice(2):"")};w.Ioa=function(e){return e=1073741824<=e?w.mw(e/1073741824,2,".","")+" GiB":1048576<=e?w.mw(e/1048576,2,".","")+" MiB":1024<=e?w.mw(e/1024,0)+" KiB":w.mw(e,0)+" bytes"};ba.a=w},function(ia,ba,e){function ea(e,da,aa){aa.Module.instantiateWasm=function(w,x){return Object(ha.a)(e+"Wasm.wasm",w,da["Wasm.wasm"]).then(function(e){x(e.instance,e.module)})};Object(x.b)(e+
|
|
"Wasm.js",da["Wasm.js"],!0,!1).then(function(e){e=new Blob([e],{type:"application/javascript"});aa.Module.mainScriptUrlOrBlob=e;Object(ha.b)(URL.createObjectURL(e),"failed to load threaded wasm",aa)})}e.d(ba,"a",function(){return ea});var x=e(137),ha=e(222);e(17);(function(){function e(e){var x=this;this.promise=e.then(function(e){x.response=e;x.status=200})}e.prototype.addEventListener=function(e,x){this.promise.then(x)};return e})()},function(ia,ba,e){var ea=e(2),x=e(60),ha=e(325);ia=function(){function e(e,
|
|
aa,w){var y=this;this.fj=[];this.Qp={};window.createPromiseCapability();this.Uy=new Promise(function(n,h){if("undefined"!==typeof Worker)try{if(y.Pe)n();else{var f=new ha.a("main",e);f.Ck=aa;y.Pe=f;f.on("test",function(e){if(e.ready){var r=e&&e.supportTypedArray;e&&e.info&&Object(ea.b)("load","Office worker info: "+e.info);r?(e.supportTransfers||(f.Ck=!1),n()):h(new x.a("Typed arrays are not supported. Can't start a worker.","error.WorkerInitError"))}else h("License Key Error: "+e.license)});var r=
|
|
{array:new Uint8Array([255])};try{w&&(r=Object.assign({},r,w)),f.send("test",r)}catch(z){f.Ck=!1,r.array[0]=0,f.send("test",r)}}return}catch(z){h(new x.a("The worker has been disabled. This may be the result of using an unsupported browser.","error.SupportError"))}h(new x.a("Can't start a worker","error.WorkerInitError"))})}e.prototype.Ur=function(e){return this.Pe.vb("autoFillDocument",e,this.rg)};e.prototype.qx=function(e){return this.Pe.vb("loadDocument",e,this.rg)};e.prototype.Qr=function(e){this.Pe.Qr(e)};
|
|
e.prototype.UG=function(e,x){this.Pe.UG(e,x)};e.prototype.Rq=function(e){this.Pe.Rq(e)};e.prototype.Xv=function(e){this.Pe.Rq(e);return this.Pe.vb("unloadDocument",{docId:e},this.Ce)};e.prototype.Fv=function(e){this.Pe.jR(e)};e.prototype.Caa=function(e){return this.Pe.vb("getDocBuffer",{docId:e},this.rg)};e.prototype.Xt=function(e){this.Pe.send("setCustomFontURL",{fontURL:e})};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2);ia=function(e){function ca(x,aa){x=e.call(this,x,aa)||this;x.Hh=
|
|
{};x.Yx={};x.kj=[];return x}Object(ea.c)(ca,e);ca.prototype.Qr=function(e){this.kj.push(e)};ca.prototype.UG=function(e,x){e in this.Hh?this.Hh[e].push(x):this.Hh[e]=[x];e in this.Yx&&delete this.Yx[e]};ca.prototype.Rq=function(e){e in this.Hh&&delete this.Hh[e];this.Yx[e]=e;this.kj=[]};ca.prototype.AJ=function(e){var aa=this,w=e.data,y=this.il;e=this.Tj;if("object"===typeof w){if("type"in w&&0<this.kj.length&&("onloaddocument"===w.type||"onautofill"===w.type)){var n=this.kj.slice();this.kj=[];for(this.Rq(w.data.docId);0<
|
|
n.length;)this.UG(w.data.docId,n.shift())}if("callbackId"in w){var h=w.callbackId;h in e?(y=e[h],delete e[h],"type"in w&&("error"===w.type||"abort"===w.type)?y.reject(w):y.resolve(w.data)):Object(x.b)("Cannot resolve callback "+h)}else if(w.action in y){var f=y[w.action];w.callbackId?Promise.resolve().then(function(){return f[0].call(f[1],w.data)}).then(function(f){aa.postMessage({isReply:!0,callbackId:w.callbackId,data:f})},function(f){aa.sE(f)}):f[0].call(f[1],w.data)}else if(w.type)if("page"===
|
|
w.type)e=w.meta.docId,this.Hh[e]?this.Hh[e].forEach(function(f){f(w)}):0<this.kj.length&&!(e in this.Yx)?this.kj.forEach(function(f){f(w)}):Object(x.c)("load","No doc listeners for this docId: "+JSON.stringify(w));else if("documentComplete"===w.type||"error"===w.type)e=w.docId,this.Hh[e]?this.Hh[e].forEach(function(f){f(w)}):0<this.kj.length&&!(e in this.Yx)?this.kj.forEach(function(f){f(w)}):Object(x.c)("load","No doc listeners for this docId: "+JSON.stringify(w));else{if("abort"===w.type)for(h in aa.Hh)Object.prototype.hasOwnProperty.call(aa.Hh,
|
|
h)&&aa.Hh[h].forEach(function(f){f(w)}),0<this.kj.length&&this.kj.forEach(function(f){f(w)})}else Object(x.g)("Unknown action from worker: "+w.action)}};return ca}(e(139).a);ba.a=ia},function(ia,ba,e){var ea=e(2),x=e(60),ha=e(327);ia=function(){function e(e,aa,w){var y=this;this.fj=[];this.Qp={};window.createPromiseCapability();this.Uy=new Promise(function(n,h){if("undefined"!==typeof Worker)try{if(y.Pe)n();else{var f=new ha.a("main",e);f.Ck=aa;y.Pe=f;f.on("test",function(e){var r=e&&e.supportTypedArray;
|
|
e&&e.info&&Object(ea.b)("load","LegacyOfficeOffice worker info: "+e.info);r?(e.supportTransfers||(f.Ck=!1),n()):h(new x.a("Typed arrays are not supported. Can't start a worker.","error.WorkerInitError"))});var r={array:new Uint8Array([255])};try{w&&(r=Object.assign({},r,w)),f.send("test",r)}catch(z){f.Ck=!1,r.array[0]=0,f.send("test",r)}}return}catch(z){h(new x.a("The worker has been disabled. This may be the result of using an unsupported browser.","error.SupportError"))}h(new x.a("Can't start a worker",
|
|
"error.WorkerInitError"))})}e.prototype.w6=function(e){return this.Pe.vb("convertDocument",e,this.rg)};return e}();ba.a=ia},function(ia,ba,e){var ea=e(1),x=e(2);ia=function(e){function ca(x,aa){return e.call(this,x,aa)||this}Object(ea.c)(ca,e);ca.prototype.AJ=function(e){var aa=this,w=e.data,y=this.il;e=this.Tj;if("object"===typeof w&&null!==w)if("callbackId"in w)if(y=w.callbackId,y in e){var n=e[y];delete e[y];"type"in w&&"error"===w.type?n.reject(w):n.resolve(w.data)}else Object(x.b)("Cannot resolve callback "+
|
|
y);else if(w.action in y){var h=y[w.action];w.callbackId?Promise.resolve().then(function(){return h[0].call(h[1],w.data)}).then(function(f){aa.postMessage({isReply:!0,callbackId:w.callbackId,data:f})},function(f){aa.sE(f)}):h[0].call(h[1],w.data)}else Object(x.g)("Unknown action from worker: "+w.action)};return ca}(e(139).a);ba.a=ia},function(ia,ba,e){function ea(e,da,aa){return new Promise(function(w){fetch(window.Ya.ae()+"assets/mime-types/test."+e).then(function(y){var n;404===y.status?n="Your server does not have a MIME type set for extension "+
|
|
e+". Please see http://r.pdftron.com/mimetypes for more information.":"xod"!==da&&(ha.l.yN.includes(da)?n="Failed to find Office worker files. This project is not set up to work with Office files.":ha.l.zN.includes(da)&&(n="Failed to find PDF worker files. This project is not set up to work with PDF files."));n=n||aa;Object(x.g)(n);w(n)})})}var x=e(2),ha=e(3);ba.a=function(e,x){return new Promise(function(aa){"string"===typeof e&&e.startsWith("Error retrieving file:")&&e.includes(".xod")?ea("xod",
|
|
x,e).then(aa):"The worker has encountered an error"===e?(ea("mem",x,e).then(aa),ea("wasm",x,e).then(aa)):"Couldn't fetch resource file."===e?ea("res",x,e).then(aa):aa(e)})}},function(ia,ba,e){function ea(e,ha){if("string"!==typeof e||!ha)return e;ha=ha.substr(0,ha.lastIndexOf("/"));return/^(\/|%2F|[a-z0-9-]+:)/i.test(e)?e:ha+"/"+e}e.d(ba,"a",function(){return ea})},function(ia,ba){ia=function(){function e(e){this.NB=[e]}e.prototype.writeStartElement=function(e){e=document.createElementNS("",e);this.NB.push(e)};
|
|
e.prototype.writeAttributeString=function(e,x){this.top().setAttribute(e,x)};e.prototype.writeEndElement=function(){var e=this.NB.pop();this.top().appendChild(e)};e.prototype.writeString=function(e){this.top().innerHTML=e};e.prototype.top=function(){return this.NB[this.NB.length-1]};return e}();window.Rma=ia;ba.a=ia},function(ia,ba,e){var ea=e(388);ia.exports=function(e,ha){return ea(e,ha)}},function(ia,ba,e){function ea(e,aa,w){aa=aa||1;for(var y,n,h,f,r=0;r<e[0].length;r++){var z=e[0][r];if(!r||
|
|
z[0]<y)y=z[0];if(!r||z[1]<n)n=z[1];if(!r||z[0]>h)h=z[0];if(!r||z[1]>f)f=z[1]}z=h-y;var fa=f-n,da=Math.min(z,fa),ja=da/2;if(0===da)return e=[y,n],e.ie=0,e;r=new ca(void 0,x);for(var ea=y;ea<h;ea+=da)for(var ba=n;ba<f;ba+=da)r.push(new ha(ea+ja,ba+ja,ja,e));f=h=ja=0;da=e[0];ea=0;ba=da.length;for(var la=ba-1;ea<ba;la=ea++){var na=da[ea];la=da[la];var ia=na[0]*la[1]-la[0]*na[1];h+=(na[0]+la[0])*ia;f+=(na[1]+la[1])*ia;ja+=3*ia}h=0===ja?new ha(da[0][0],da[0][1],0,e):new ha(h/ja,f/ja,0,e);y=new ha(y+z/2,
|
|
n+fa/2,0,e);y.d>h.d&&(h=y);for(y=r.length;r.length;)n=r.pop(),n.d>h.d&&(h=n,w&&console.log("found best %d after %d probes",Math.round(1E4*n.d)/1E4,y)),n.max-h.d<=aa||(ja=n.h/2,r.push(new ha(n.x-ja,n.y-ja,ja,e)),r.push(new ha(n.x+ja,n.y-ja,ja,e)),r.push(new ha(n.x-ja,n.y+ja,ja,e)),r.push(new ha(n.x+ja,n.y+ja,ja,e)),y+=4);w&&(console.log("num probes: "+y),console.log("best distance: "+h.d));e=[h.x,h.y];e.ie=h.d;return e}function x(e,x){return x.max-e.max}function ha(e,x,w,y){this.x=e;this.y=x;this.h=
|
|
w;w=!1;for(var n=Infinity,h=0;h<y.length;h++)for(var f=y[h],r=0,z=f.length,aa=z-1;r<z;aa=r++){var da=f[r];aa=f[aa];da[1]>x!==aa[1]>x&&e<(aa[0]-da[0])*(x-da[1])/(aa[1]-da[1])+da[0]&&(w=!w);var ca=da[0];da=da[1];var ha=aa[0]-ca,ea=aa[1]-da;if(0!==ha||0!==ea){var ba=((e-ca)*ha+(x-da)*ea)/(ha*ha+ea*ea);1<ba?(ca=aa[0],da=aa[1]):0<ba&&(ca+=ha*ba,da+=ea*ba)}ha=e-ca;ea=x-da;n=Math.min(n,ha*ha+ea*ea)}this.d=0===n?0:(w?1:-1)*Math.sqrt(n);this.max=this.d+this.h*Math.SQRT2}var ca=e(406);ca.default&&(ca=ca.default);
|
|
ia.exports=ea;ia.exports.default=ea},function(ia,ba,e){function ea(e){return e.match(/[a-fA-F0-9]{2}/g).map(function(e){return parseInt(e,16)})}e.d(ba,"a",function(){return ea})},function(ia,ba,e){function ea(da,aa,w,y){return Object(x.b)(this,void 0,void 0,function(){var n,h,f,r;return Object(x.d)(this,function(x){switch(x.label){case 0:n={calculationOrder:[],widgets:[],fields:{},pages:[],documentActions:{},custom:[]};h=da.Oa();if("pdf-info"!==h)return Object(ca.j)("pdf-info missing. found: "+h),
|
|
w(n),[2];f=da.fa("version");return"1"!==f?[3,2]:[4,e.e(12).then(e.bind(null,448))];case 1:return r=x.ea().parse,r(da,aa,w,y),[3,3];case 2:"2"===f?Object(ha.a)(da,aa,w,y):(Object(ca.j)("PDFInfo version is incorrect: "+f),w(n)),x.label=3;case 3:return[2]}})})}e.d(ba,"a",function(){return ea});var x=e(1),ha=e(335),ca=e(2)},function(ia,ba,e){function ea(f,e){var n=f.fa("name"),r={type:f.fa("type"),maxLen:f.fa("max-len")||-1,tooltipName:f.fa("tooltip-name")},w=f.fa("flags");Object(ka.isString)(w)&&(r.flags=
|
|
w.split(" "));for(f.Ka();f.advance();)switch(w=f.Oa(),w){case "actions":r.actions=y(f,["C","F","K","V"],function(){return e});break;case "default-value":r.defaultValue=ca(f);break;case "font":r.font=h(f,e);break;case "options":r.options=z(f);break;default:Object(na.j)("unknown field child: "+w)}f.$a();return new qa.Annotations.ha.va(n,r)}function x(f,e){switch(f.type){case "Tx":try{if(Object(ra.c)(f.actions))return new la.a.DatePickerWidgetAnnotation(f,e)}catch(ua){Object(na.j)(ua)}return new la.a.TextWidgetAnnotation(f,
|
|
e);case "Ch":return f.flags.get(sa.WidgetFlags.COMBO)?new la.a.ChoiceWidgetAnnotation(f,e):new la.a.ListWidgetAnnotation(f,e);case "Btn":return f.flags.get(sa.WidgetFlags.PUSH_BUTTON)?new la.a.PushButtonWidgetAnnotation(f,e):f.flags.get(sa.WidgetFlags.RADIO)?new la.a.RadioButtonWidgetAnnotation(f,e):new la.a.CheckButtonWidgetAnnotation(f,e);case "Sig":return new la.a.SignatureWidgetAnnotation(f,e);default:Object(na.j)("Unrecognised field type: "+f.type)}return null}function ha(e,r,w,z){var aa=[],
|
|
ca=[],ha={};e.Ka();var ba=[],la={},ka=[];Object(ja.a)(function(){if(e.advance()){var w=e.Oa();switch(w){case "calculation-order":ba="calculation-order"===e.Oa()?da(e):[];break;case "document-actions":la=y(e,["Init","Open"],r);break;case "pages":w=[];for(e.Ka();e.advance();){var z=e.Oa();switch(z){case "page":w.push(fa(e,r));break;default:Object(na.j)("unrecognised page child: "+z)}}e.$a();ka=w;break;case "ffield":z=ea(e,r(1));ha[z.name]=z;break;case "widget":w={border:{style:"Solid",width:1},backgroundColor:[],
|
|
fieldName:e.fa("field"),page:e.fa("page"),index:e.fa("index")||0,rotation:e.fa("rotation")||0,quadding:e.fa("quadding")||"Left-justified",flags:[],isImporting:!0};(z=e.fa("appearance"))&&(w.appearance=z);(z=e.fa("flags"))&&(w.flags=z.split(" "));if(z=e.fa("modified-date"))w.originalDateModifiedText=z,w.dateModified=Da.a.AB(z),w.originalDateModifiedTime=w.dateModified.getTime();for(e.Ka();e.advance();)switch(z=e.Oa(),z){case "rect":var ja=e,qa=r(Number(w.page));z=qa.ra({x:ja.fa("x1")||0,y:ja.fa("y1")||
|
|
0});ja=qa.ra({x:ja.fa("x2")||0,y:ja.fa("y2")||0});z=new ma.d(z.x,z.y,ja.x,ja.y);z.normalize();w.rect={x1:z.x1,y1:z.y1,x2:z.x2,y2:z.y2};break;case "border":z=e;ja={style:z.fa("style")||"Solid",width:z.fa("width")||1,color:[0,0,0]};for(z.Ka();z.advance();)switch(qa=z.Oa(),qa){case "color":ja.color=n(z);break;default:Object(na.j)("unrecognised border child: "+qa)}z.$a();w.border=ja;break;case "background-color":w.backgroundColor=n(e);break;case "actions":w.actions=y(e,"E X D U Fo Bl PO PC PV PI".split(" "),
|
|
r);break;case "AP":w.appearanceString=e.current.textContent;break;case "appearances":z=e;ja=Object(ra.b)(w,"appearances");for(z.Ka();z.advance();)if(qa=z.Oa(),"aappearance"===qa){qa=z.fa("name");var oa=Object(ra.b)(ja,qa);qa=z;for(qa.Ka();qa.advance();){var ua=qa.Oa();switch(ua){case "Normal":Object(ra.b)(oa,"Normal").data=qa.current.textContent;break;default:Object(na.j)("unexpected appearance state: ",ua)}}qa.$a()}else Object(na.j)("unexpected appearances child: "+qa);z.$a();break;case "apref":Object(ra.a)(e,
|
|
w,r(Number(w.page)));break;case "extra":z=e;ja=r;qa={};for(z.Ka();z.advance();)switch(oa=z.Oa(),oa){case "font":qa.font=h(z,ja(1));break;default:Object(na.j)("unrecognised extra child: "+oa)}z.$a();z=qa;z.font&&(w.font=z.font);break;case "captions":ja=e;z={};(qa=ja.fa("Normal"))&&(z.Normal=qa);(qa=ja.fa("Rollover"))&&(z.Rollover=qa);(ja=ja.fa("Down"))&&(z.Down=ja);w.captions=z;break;case "trn-custom-data":w["trn-custom-data"]=JSON.parse(e.fa("bytes"));break;default:Object(na.j)("unrecognised widget child: "+
|
|
z)}e.$a();(z=ha[w.fieldName])?(w=x(z,w),aa.push(w)):Object(na.j)("ignoring widget with no corresponding field data: "+w.fieldName);break;case "custom":ca.push(f(e,r));break;default:Object(na.j)("Unknown element encountered in PDFInfo: "+w)}return!0}return!1},function(){e.$a();w({calculationOrder:ba,widgets:aa,fields:ha,documentActions:la,pages:ka,custom:ca})},z)}function ca(f){f.Ka();f.advance();var e=f.current.textContent;f.$a();return e}function da(f){var e=[];for(f.Ka();f.advance();){var h=f.Oa();
|
|
"ffield"===h?e.push(String(f.fa("name"))):Object(na.j)("unrecognised field list element: "+h)}f.$a();return e}function aa(f,e){return e?"false"!==f:"true"===f}function w(f,e){var h=f.Oa();switch(h){case "javascript":return{name:"JavaScript",javascript:f.current.textContent};case "uri":return{name:"URI",uri:f.fa("uri")};case "goto":h=null;f.Ka();if(f.advance()){var n=f.fa("fit");h={page:f.fa("page"),fit:n};if("0"===h.page)Object(na.j)("null page encountered in dest");else switch(e=e(Number(h.page)),
|
|
n){case "Fit":case "FitB":break;case "FitH":case "FitBH":h.top=e.ra({x:0,y:f.fa("top")||0}).y;break;case "FitV":case "FitBV":h.left=e.ra({x:f.fa("left")||0,y:0}).x;break;case "FitR":n=e.ra({x:f.fa("left")||0,y:f.fa("top")||0});e=e.ra({x:f.fa("right")||0,y:f.fa("bottom")||0});e=new ma.d(n.x,n.y,e.x,e.y);h.top=e.ja;h.left=e.na;h.bottom=e.ka;h.right=e.oa;break;case "XYZ":n=e.ra({x:f.fa("left")||0,y:f.fa("top")||0});h.top=n.y;h.left=n.x;h.zoom=f.fa("zoom")||0;break;default:Object(na.j)("unknown dest fit: "+
|
|
n)}h={name:"GoTo",dest:h}}else Object(na.j)("missing dest in GoTo action");f.$a();return h;case "submit-form":h={name:"SubmitForm",url:f.fa("url"),format:f.fa("format"),method:f.fa("method")||"POST",exclude:aa(f.fa("exclude"),!1)};e=f.fa("flags");h.flags=e?e.split(" "):[];for(f.Ka();f.advance();)switch(e=f.Oa(),e){case "fields":h.fields=da(f);break;default:Object(na.j)("unrecognised submit-form child: "+e)}f.$a();return h;case "reset-form":h={name:"ResetForm",exclude:aa(f.fa("exclude"),!1)};for(f.Ka();f.advance();)switch(e=
|
|
f.Oa(),e){case "fields":h.fields=da(f);break;default:Object(na.j)("unrecognised reset-form child: "+e)}f.$a();return h;case "hide":h={name:"Hide",hide:aa(f.fa("hide"),!0)};for(f.Ka();f.advance();)switch(e=f.Oa(),e){case "fields":h.fields=da(f);break;default:Object(na.j)("unrecognised hide child: "+e)}f.$a();return h;case "named":return{name:"Named",action:f.fa("name")};default:Object(na.j)("Encountered unexpected action type: "+h)}return null}function y(f,e,h){var n={};for(f.Ka();f.advance();){var r=
|
|
f.Oa();switch(r){case "action":r=f.fa("trigger");if(e?-1!==e.indexOf(r):1){n[r]=[];for(f.Ka();f.advance();){var x=w(f,h);Object(ka.isNull)(x)||n[r].push(x)}f.$a()}else Object(na.j)("encountered unexpected trigger on field: "+r);break;default:Object(na.j)("encountered unknown action child: "+r)}}f.$a();return n}function n(f){return new pa.a(f.fa("r")||0,f.fa("g")||0,f.fa("b")||0,f.fa("a")||1)}function h(f,e){var h=f.fa("name"),r=f.fa("type")||"Type1",w=f.fa("size"),x=e.ra({x:0,y:0});w=e.ra({x:Number(w),
|
|
y:0});e=x.x-w.x;x=x.y-w.y;h={name:h,type:r,size:Math.sqrt(e*e+x*x)||0,strokeColor:[0,0,0],fillColor:[0,0,0]};(r=f.fa("horizontal-scaling"))&&(h["horizontal-scaling"]=parseFloat(r));for(f.Ka();f.advance();)switch(r=f.Oa(),r){case "stroke-color":h.strokeColor=n(f);break;case "fill-color":h.fillColor=n(f);break;default:Object(na.j)("unrecognised font child: "+r)}f.$a();return h}function f(f,e){var h=f.fa("page");e=e(1+Number(h));h={page:h,rect:Da.a.BB(f.fa("rect"),e)};for(f.Ka();f.advance();){var n=
|
|
f.Oa();switch(n){case "apref":Object(ra.a)(f,h,e);break;default:Object(na.j)("unrecognised custom tag: "+n)}}f.$a();return new qa.Annotations.MN(h)}function r(f){return{value:f.fa("value"),displayValue:f.fa("display-value")||void 0}}function z(f){var e=[];for(f.Ka();f.advance();){var h=f.Oa();switch(h){case "option":e.push(r(f));break;default:Object(na.j)("unrecognised options child: "+h)}}f.$a();return e}function fa(f,e){var h={number:f.fa("number")};for(f.Ka();f.advance();){var n=f.Oa();switch(n){case "actions":h.actions=
|
|
y(f,["O","C"],e);break;case "viewport":break;default:Object(na.j)("unrecognised page child: "+n)}}f.$a();return h}e.d(ba,"a",function(){return ha});var ka=e(0);e.n(ka);var ja=e(19),pa=e(8),ma=e(4),la=e(117),na=e(2),ra=e(102),sa=e(25),Da=e(6),qa=window},function(ia,ba,e){var ea=e(10);ba.a=function(){return function(e,ha){this.ib=e;this.aa=ha;this.ib=e;this.aa=ha;this.aa.addEventListener(ea.f.C0,function(x){x=e.Pn(x);var da=e.Pb().filter(function(e){return e.IsHovering});da.forEach(function(e){e.IsHovering=
|
|
!1});x&&x.Listable&&x.IsHoverable&&(x.IsHovering=!0,da.push(x));e.kf(da)})}}()},function(ia,ba,e){var ea=e(34),x=e(10);ba.a=function(){return function(e,ca){this.ib=e;this.aa=ca;this.aa.addEventListener(x.e.PAGE_COMPLETE,function(x){Object(ea.g)("multiply")&&e.Pb().some(function(e){return e.PageNumber===x&&e.BlendMode})&&e.Sc(x)})}}()},function(ia,ba){ia=function(){function e(e){this.ib=e;this.Uq=[]}e.prototype.Cg=function(e){this.PA(e)||this.Uq.push(e)};e.prototype.Hn=function(e){this.Uq=this.Uq.filter(function(x){return x!==
|
|
e})};e.prototype.zB=function(e){var x=this;e.forEach(function(e){return x.Hn(e)})};e.prototype.he=function(){this.Uq=[]};e.prototype.PA=function(e){for(var x=0;x<this.Uq.length;x++)if(e===this.Uq[x])return!0;return!1};e.prototype.Ed=function(){return this.Uq.slice()};return e}();ba.a=ia},function(ia,ba,e){function ea(e){function ca(e){for(var n=[],h=0;h<arguments.length;++h)n[h-0]=arguments[h];da.call.apply(da,[this].concat(Md(n)));return new Proxy(this,{get:function(f,e){w&&console.log(e+" called");
|
|
if(aa[e])throw Error(e+": "+aa[e]);return void 0!==f[e]?f[e]:x}})}e=void 0===e?{}:e;var da=void 0===e.t6?function(){}:e.t6,aa=void 0===e.Z9?{}:e.Z9,w=void 0===e.log?!1:e.log;ca.prototype=Object.assign({},{on:x,addEventListener:x},void 0===e.qL?{}:e.qL);return ca.prototype.constructor=ca}function x(){}e.d(ba,"a",function(){return ea})},function(ia,ba,e){var ea=e(422),x=e(273),ha=e(423),ca=e(228),da=e(424),aa=e(274),w=e(429),y=e(275),n=Object.prototype.hasOwnProperty;ia.exports=function(e){if(null==
|
|
e)return!0;if(da(e)&&(ca(e)||"string"==typeof e||"function"==typeof e.splice||aa(e)||y(e)||ha(e)))return!e.length;var f=x(e);if("[object Map]"==f||"[object Set]"==f)return!e.size;if(w(e))return!ea(e).length;for(var h in e)if(n.call(e,h))return!1;return!0}},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(342),ha=e(223),ca=function(){function e(e){this.rows=e.rows;this.hm=e.hm;this.ji=e.ji;this.bd=e.bd;this.xt=e.xt;this.Ji=e.Ji;this.ca=e.ca;this.Fk=e.Fk;e=this.rows;this.width=this.Ji.reduce(function(e,
|
|
x){return e+x},2*this.ji*this.hm);this.height=e.reduce(function(e,x){return e+x.wa()},this.rows.length*this.ji*2)}e.prototype.Qb=function(){return this.ca};e.prototype.Ba=function(){return this.width};e.prototype.wa=function(){return this.height};e.prototype.xC=function(e){return this.rows[e]};e.prototype.qaa=function(e){return this.Ji[e]};return e}();ba.a=function(e){var aa=e.jma,w=e.ji,y={width:0,height:0},n={width:0,height:0};aa&&0<aa.length&&(y={width:aa[0].width,height:aa[0].height,zoom:aa[0].zoom},
|
|
n={width:aa[aa.length-1].width,height:aa[aa.length-1].height,zoom:aa[aa.length-1].zoom});var h=e.fla||0,f=[],r;for(r=0;r<h;++r)f.push(ha.a.AR(r,y));f=f.concat(aa.map(function(f){return new ha.a(f.id,f)}));var z=e.hm;z>f.length&&(z=f.length);aa=e.bd||0;y=Math.ceil(f.length/e.hm);Object(ea.isUndefined)(e.xt)||(y=e.xt<y?e.xt:y);var fa=Array(z);h=f.reduce(function(e,h,r){if(0===e.length){var w=[];e.push(w)}else w=e[e.length-1];w.length===z&&(w=[],e.push(w));w.push(h);if(r===f.length-1&&(h=z-w.length,
|
|
0<h))for(var x=0;x<h;++x)w.push(ha.a.AR(r+x+1,n));return e},[]).slice(aa,aa+y).map(function(f,e){f=new x.a(e,f);f.Qb().forEach(function(f,e){fa[e]=fa[e]?f.XI()>fa[e]?f.XI():fa[e]:f.XI()});return f});return new ca({rows:h,ji:w,hm:z,bd:aa,xt:y,Ji:fa,ca:f,Fk:e.Fk})}},function(ia,ba){ia=function(){function e(e,x){this.ca=x;this.index=e;this.height=x.reduce(function(e,x){return x.wa()>e?x.wa():e},0);this.width=x.reduce(function(e,x){return e+x.Ba()},0)}e.prototype.Qb=function(){return this.ca};e.prototype.wa=
|
|
function(){return this.height};e.prototype.Ba=function(){return this.width};e.prototype.getIndex=function(){return this.index};e.prototype.kK=function(e){var x=e.Qb();return this.ca.length!==e.Qb().length||this.ca.some(function(e,ca){return e.kK(x[ca])})};e.prototype.Rda=function(e){var x=e.Qb();return this.ca.length===e.Qb().length&&this.ca.every(function(e,ca){return e.Qda(x[ca])})};return e}();ba.a=ia},function(ia,ba){ia=function(){function e(e){var x=e.cea,ha=e.a$;this.z3=e.dea;this.bn=x;this.gP=
|
|
ha;this.uG={};this.bl=-1}e.prototype.Eja=function(e){this.bn=e};e.prototype.Mw=function(e){if(0>e||e>=this.bn)throw Error("Requested index "+e+" is outside of range 0.."+this.bn);if(e>this.bl){var x=this.pJ();x=x.offset+x.size;for(var ha=this.bl+1;ha<=e;ha++){var ca=this.z3({index:ha});if(null==ca||isNaN(ca))throw Error("Invalid size returned for index "+ha+" of value "+ca);this.uG[ha]={offset:x,size:ca};x+=ca}this.bl=e}return this.uG[e]};e.prototype.pJ=function(){return 0<=this.bl?this.uG[this.bl]:
|
|
{offset:0,size:0}};e.prototype.Ula=function(e){this.gP=e};e.prototype.kca=function(){var e=this.pJ();return e.offset+e.size+(this.bn-this.bl-1)*this.gP};e.prototype.eU=function(e){var x=e.offset,ha=e.sW;if(0===this.kca())return{};e=x+e.xR;var ca=this.b3(x),da=ca;x=this.Mw(ca);for(x=x.offset+x.size;x<e&&da<this.bn-1;)da++,x+=this.Mw(da).size;ha&&(ca=Math.max(0,ca-ha),da=Math.min(da+ha,this.bn));return{start:ca,stop:da}};e.prototype.hia=function(){this.bl=Math.min(this.bl,-1)};e.prototype.LO=function(e){var x=
|
|
e.low,ha=e.high;e=e.offset;for(var ca,da;x<=ha;){ca=x+Math.floor((ha-x)/2);da=this.Mw(ca).offset;if(da===e)return ca;da<e?x=ca+1:da>e&&(ha=ca-1)}if(0<x)return x-1};e.prototype.W2=function(e){var x=e.index;e=e.offset;for(var ha=1;x<this.bn&&this.Mw(x).offset<e;)x+=ha,ha*=2;return this.LO({high:Math.min(x,this.bn-1),low:Math.floor(x/2),offset:e})};e.prototype.b3=function(e){if(isNaN(e))throw Error("Invalid offset "+e+" specified");e=Math.max(0,e);var x=Math.max(0,this.bl);return this.pJ().offset>=e?
|
|
this.LO({high:x,low:0,offset:e}):this.W2({index:x,offset:e})};return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(28),ca=e(345),da=e(239),aa=e(19),w=e(3),y=e(34),n=e(40),h=e(7),f=e(10),r=e(112);ia=function(){function e(f){this.l_=!0;this.bx=this.hE=this.iZ=this.Ig=!1;this.Ze=[];this.Qd={};this.Wm={};this.ef=.5;this.aa=f;this.ba=null;this.fE=Promise.resolve();this.cD=!1;this.xo=null;this.paused=!1;this.CK=null}e.prototype.init=function(){this.Cp();this.ba=this.aa.getDocument()};
|
|
e.prototype.se=function(){this.bx=!0;this.Ay();return this.fE};e.prototype.Cp=function(){this.Ay();Object.keys(this.Qd).forEach(this.WC.bind(this))};e.prototype.Z5=function(){Object.keys(this.Qd).forEach(this.JU.bind(this))};e.prototype.Jv=function(f){function e(e){Object.keys(e).forEach(function(n){if(-1<h.indexOf(n)){var r=f[n],w=e[n];w.Wh&&(w.Wh=r);delete e[n];e[r]=w}})}var h=Object.keys(f);e(this.Qd);e(this.Wm)};e.prototype.rka=function(){this.iZ=!0};e.prototype.IU=function(f){Object(x.b)("RenderingManager",
|
|
"invalidateCachedPage "+f);var e=this.Qd[f];e&&(e.canvas&&(Object(ha.a)().$j(e.canvas),e.canvas=null),e.ze&&(e.ze.Md(),e.ze=null),e.Nf=null);this.ju(f)};e.prototype.JU=function(f){if(f=this.Qd[f])f.oj=!1};e.prototype.WC=function(f){this.IU(f);this.JU(f)};e.prototype.$A=function(f){var e=this.aa,h=e.jg()-1;f=e.ia.ng(f).fb-1;e=e.Wb();h=f-h;0>h&&(h-=.5);return e-Math.abs(h)};e.prototype.kJ=function(f){return this.Wm[f]||null};e.prototype.zQ=function(f,e){var h=this;if(this.ke(f).Ek)return Object(x.b)("RenderingManager",
|
|
"addRenderRequest Already Rendering "+f),this.kJ(f);Object(x.b)("RenderingManager","addRenderRequest Start New "+f);var n=new ca.a(this,f);this.ju(f);e=h.iZ&&e?e.then(function(){if(!h.hE)return h.VX(f,function(){})}):this.VX(f,function(){});n.render(e);return this.Wm[f]=n};e.prototype.iaa=function(){var f=this;return Object.keys(this.Qd).reduce(function(e,h){return e+f.ke(h).Fw()},0)};e.prototype.E4=function(f,e){for(var h=this.ke(e),r=this,w=Object.keys(this.Qd).sort(function(f,e){return r.$A(f)-
|
|
r.$A(e)}),z=this.iaa(),y=h.Fw(f)+z,aa=Object(n.a)("CANVAS_CACHE_SIZE"),fa=0;y>aa&&fa<w.length;)y-=this.ke(w[fa]).Fw(),++fa;if(y<aa){for(e=0;e<fa;++e)this.IU(w[e]);h.canvas=f}else Object(x.j)("Could not fit "+e+" with size "+h.Fw(f)+" into cache of size "+z+" with max size "+aa)};e.prototype.ke=function(f){if(this.aa.ia.aD(f)){this.Qd[f]=this.Qd[f]||new da.a(this.aa.ia.ng(f));var e=this.aa.ia.ng(f);this.Qd[f].update(e);return this.Qd[f]}return this.Qd[f]?this.Qd[f]:new da.a({})};e.prototype.wma=function(f){this.WC(f)};
|
|
e.prototype.gx=function(f){return!!this.ke(f).canvas};e.prototype.pause=function(){this.paused=!0};e.prototype.resume=function(){this.paused=!1;var f=this.Qd;Object.keys(f).forEach(function(e){e=f[e];e.ze&&(e.ze.paused=!1,e.ze.resume&&e.ze.resume())})};e.prototype.uu=function(f){this.Ze=f||this.aa.xa.ve().map(function(f){return f-1})};e.prototype.Y4=function(f){var e=this;return f.some(function(f){return-1===e.Ze.indexOf(f)})||e.Ze.some(function(e){return-1===f.indexOf(e)})};e.prototype.Lba=function(){var f=
|
|
this;return Object.keys(this.Qd).map(function(e){return{id:e,page:f.Qd[e]}}).filter(function(f){return f.page.oj}).map(function(e){return f.aa.ia.ng(e.id).fb-1})};e.prototype.eS=function(f){var e=this.aa.ia.ah(f-1),h=this.ke(e);if(this.Ig){e=h.mc;if(h.Ek||!h.oj||!e)return!0;h=this.aa.xa;var n=this.ef/2;return(f=h.eo(f,h.EC(n,n)))&&!Object(y.b)(e,f.mc)}return!h.Ek&&!h.oj};e.prototype.kU=function(f){for(var e=[],h=[],n=f.length,r=0;r<n;++r){var w=f[r];this.eS(w+1)?h.push(w):e.push(w)}return{xW:e,ZK:h}};
|
|
e.prototype.GJ=function(){var f=this;return f.bx?[]:f.aa.xa.ve(f.ef,f.ef).some(function(e){return f.eS(e)})};e.prototype.R5=function(){!this.xo&&this.GJ()&&(Object(x.b)("RenderingManager","checkRenderView passed"),this.TR())};e.prototype.uZ=function(){var f=this,e=this.aa.xa.ve(this.ef,this.ef).map(function(f){return f-1});Object(x.b)("RenderingManager","delayedRenderView stop renders except "+e);this.Ay(e);this.cD||(this.fE=this.fE.then(function(){return f.WX()}).catch(function(e){f.fE=Promise.resolve();
|
|
Object(x.g)(e)}))};e.prototype.TR=function(){var f=this;this.aa.xa.Vc().$w()?this.xo||(this.xo=setTimeout(function(){f.xo=null;f.uZ()},80)):(this.uZ(),this.xo&&clearInterval(this.xo))};e.prototype.kga=function(e){var h=this;return Promise.resolve().then(function(){var n=h.aa.ia.ng(e).fb,r=h.ke(e);if(!r.canvas)throw Error("Tried to place uncached page from cache "+e);r.oj=!0;h.aa.TA(r.canvas,n);h.Jn(n,r);h.aa.trigger(f.e.PAGE_COMPLETE,[n,r.canvas])})};e.prototype.jq=function(f){var e=this;return new Promise(function(h){var n=
|
|
e.ke(f),r=e.aa.ia.ng(f).fb;n.pu||e.aa.Ica(r)?h():n.pu=e.ba.AK(r,function(h){e.ke(f).pu=null;var n=-1!==e.Ze.indexOf(r-1);e.aa.QQ(h,r,n,!1)},e.ba.JC()?"embedded":null)})};e.prototype.Saa=function(f){var e=this;return new Promise(function(h){var n=e.ke(f),r=e.aa.ia.ng(f).fb;if(n.qq||e.aa.Dca(r))h();else{var x=Object(aa.k)(),z=n.width,y=n.height,fa=z>y?2E3/z:2E3/y;fa/=x;n.qq=e.ba.nt({pageNumber:r,getZoom:function(){return fa},getPageRotation:function(){return w.f.E_0},drawComplete:function(f){e.ba.Dn(n.qq);
|
|
n.qq=null;var w=-1!==e.Ze.indexOf(r-1);e.aa.QQ(f,r,w,!0);h()},useProgress:!1,isInternalRender:!0,YU:!0})}})};e.prototype.WX=function(){var e=this;return this.bx?Promise.resolve():Promise.resolve().then(function(){var h=e.aa.xa.ve(e.ef,e.ef).map(function(f){return f-1});Object(y.n)(h,e.ba?e.ba.nC():[]);var n=e.kU(h);e.Ay(h);e.RX(n.xW);e.cD=!0;e.aa.trigger(f.e.BEGIN_RENDERING);var r=Promise.resolve();!e.ba.qk()&&Object(ha.a)().useCache||h.forEach(function(f){f=e.aa.ia.ah(f);e.jq(f)});e.hE=!1;return Promise.all(n.ZK.map(function(f){f=
|
|
e.aa.ia.ah(f);return e.gx(f)&&!e.Ig?e.kga(f):r=e.zQ(f,r).jJ()}))}).then(function(){e.hE=!1;e.cD=!1;var h=e.GJ();e.aa.trigger(f.e.FINISHED_RENDERING,h);if(!e.bx)return new Promise(function(f,h){window.requestAnimationFrame(function(){try{var n=void 0;if(e.GJ())return Object(x.b)("RenderingManager","still has pages to render"),n=e.WX(),f(n);e.Nda()&&(Object(x.b)("RenderingManager","Begin Prerendering"),e.oga());f()}catch(la){h(la)}})})}).catch(function(f){e.cD=!1;if(f===r.b)e.Cp();else throw Object(x.g)(f),
|
|
f;})};e.prototype.Nda=function(){var f=Object(n.a)("maxPagesBefore"),e=Object(n.a)("maxPagesAhead");return Object(ha.a)().useCache&&(0!==f||0!==e)};e.prototype.y5=function(f,e){var h=this;if(h.aa.getDocument())return f>e?[]:Object(ea.range)(f,e).map(function(f){return h.aa.ia.ah(f)}).sort(function(f,e){return h.$A(e)-h.$A(f)})};e.prototype.fR=function(){if(this.aa.getDocument()){var f=Object(ea.min)(this.Ze),e=Object(ea.max)(this.Ze);f=Math.max(f-Object(n.a)("maxPagesBefore")+1,0);e=Math.min(e+Object(n.a)("maxPagesAhead"),
|
|
this.aa.Wb());e=this.y5(f,e);if(this.Ig)return[e[0]];f=[];for(var h=e.length,r=0,w=0;w<h;++w){var x=this.ke(e[w]);r+=x.Fw(!0);if(r<Object(n.a)("CANVAS_CACHE_SIZE"))f.push(e[w]);else break}return f}};e.prototype.A5=function(){var f=this;return f.bx?[]:f.fR().filter(function(e){return!f.ke(e).isValid()})};e.prototype.oga=function(){var f=this;Promise.resolve().then(function(){return f.Ig?Promise.all(f.Ze.map(function(e){e=f.aa.ia.ah(e);return f.Saa(e)})):Promise.all(f.A5().map(function(e){return f.zQ(e).jJ()})).catch(function(f){Object(x.g)("error pre-rendering - "+
|
|
f);throw f;})})};e.prototype.VX=function(f,e){e=e||function(){};var h=this;return new Promise(function(n){h.Uha(f,function(f){!f||f.type&&"cancelled"!==f.type||Object(x.j)(f);n()},e)})};e.prototype.RX=function(f){var e=this,h=this.fR();f||(f=e.aa.xa.ve(e.ef,e.ef).map(function(f){return f-1}),f=e.kU(f).xW);f&&f.length&&(f=f.map(function(f){return e.aa.ia.ah(f)}),h=h.concat(f));Object.keys(this.Qd).forEach(function(f){var n=e.ke(f);if(e.aa.ia.aD(f)){var r=e.aa.ia.ng(f).fb;Object(ha.a)().useCache?-1===
|
|
h.indexOf(f)&&(e.a_(f),n.oj&&(e.aa.Rha(r),n.oj=!1)):(r=-1!==e.Ze.indexOf(r-1),!n.oj&&!n.iH||r||(n.iH=!1,n.oj=!1,e.a_(f)))}})};e.prototype.Uha=function(e,n,r){var w=this,z=this.ke(e),y;n=n||function(){};r=r||function(){};if(z.Ek)Object(x.j)("renderPage: Another request for page ID",e),n("renderPage: Another request for page ID "+e);else{var aa=w.aa.ia.ng(e);Object(x.b)("render","Render Page "+aa.fb);var fa=aa.zoom,da=aa.rotation;if(w.ba!==w.aa.getDocument())n("Document changed");else{var ca=!0,ja=
|
|
!1,ba=!1,ka=w.aa.xa.Js(aa.fb);if(w.Ig||ka&&ka.viewportRender){ka=w.aa.xa;var ua=ka.eo(aa.fb,ka.EC(w.ef,w.ef));if(null===ua){n("Page "+aa.fb+" no longer visible");return}ua&&ua.mc&&(ba=!0,ka=ua.mc,ua.mc.rect=[ka.na,ka.ja,ka.oa,ka.ka],z.afa=z.mc,z.mc=ua.mc)}this.CK=window.setTimeout(function(){var f=w.aa.Xa().querySelector("#pageContainer"+aa.fb);f&&f.classList.add("loading")},300);var ia=function(f,e){try{var h=w.aa.ia.ng(f)}catch(Fa){Object(x.c)(Fa),h=w.aa.ia.ng(e)}return h};ka={pageNumber:this.aa.ia.ng(e).fb,
|
|
getZoom:function(){var f=w.aa.getDocument().Nh(z.fb-1);return ia(e,f).zoom},getPageRotation:function(){var f=w.aa.getDocument().Nh(z.fb-1);return ia(e,f).rotation},finishedLoading:function(f,h){if(w.ba!==w.aa.getDocument())return n(Error("Document changed")),!1;if(f)return Object(x.j)("Error loading page "+e),n(Error("Error loading page "+e)),!1;ca=!z.ze;z.ze=h;w.paused&&z.ze.pause();return!0},acquireResources:function(){return ca},resourcesLoaded:function(){if(w.ba!==w.aa.getDocument())return n(Error("Document changed")),
|
|
!1;if(!1===z.Ek)return!1;var f=w.aa.getDocument().Nh(z.fb-1);f=ia(e,f);fa===f.zoom&&da===f.rotation||w.Jn(f.fb,z);return!0},drawComplete:function(h,r,fa){w.ba!==w.aa.getDocument()||Object(ea.isNull)(h)?n(Error("Document or zoom changed while rendering")):(aa=ia(e,y),z.Ek=!1,z.oj=!!ja,z.Nf=fa,z.mc=ua?ua.mc:null,ja&&w.aa.trigger(f.e.PAGE_COMPLETE,[r,h]),Object(ha.a)().useCache&&!w.Ig&&w.aa.ia.aD(aa.id)&&w.E4(h,aa.id),w.ba.Dn(z.request),clearTimeout(w.CK),(fa=w.aa.Xa().querySelector("#pageContainer"+
|
|
aa.fb))&&fa.classList.remove("loading"),r=-1!==w.Ze.indexOf(r-1),w.ba.vq()&&r&&w.Jn(aa.fb,z),Object(x.b)("render","Completed Page "+aa.fb),ba&&h.setAttribute("data-partial-render","true"),r=w.ba.ad(z.fb)/90+z.rotation,h.setAttribute("data-page-rotation",r),n())},drawProgressive:function(h,z){if(w.ba!==w.aa.getDocument())n(Error("Document changed"));else{y=e;z&&(e=z);var aa=ia(e,y);z=aa.fb-1;fa===aa.zoom?(Object(ea.isUndefined)(ua)||(h.style.top=ua.VE.y+"px",h.style.left=ua.VE.x+"px"),ja=!!w.aa.TA(h,
|
|
aa.fb)):Object(x.c)("zoom changed while rendering page "+z);(aa=w.aa.Xa().querySelector("#pageContainer"+aa.fb))&&aa.classList.remove("loading");w.aa.trigger(f.f.a1,[z,h]);r(z)}},getPageTransform:function(){return w.aa.xa.Js(aa.fb)},onError:function(f){n(f)},useProgress:!w.Ig&&Object(h.b)(),renderRect:Object(ea.isUndefined)(ua)?void 0:ua.mc,isInternalRender:!0};z.request=-1;z.Ek=!0;z.request=w.ba.nt(ka);w.Jn(aa.fb,z)}}};e.prototype.Jn=function(f,e){var h=Date.now();this.aa.Jn(f);e.iH=!0;Object(x.b)("render",
|
|
"Auxiliary Render Took "+(Date.now()-h))};e.prototype.u6=function(){for(var f=[],e=0;e<this.aa.Wb();++e){var h=this.aa.ia.ah(e);f.push(h)}this.$Z(f);this.Ay()};e.prototype.$Z=function(f){var e=this;Object.keys(this.Qd).forEach(function(h){if(-1===f.indexOf(h)){var n=e.Wm[h];n&&(n.cancel(),n.ZZ(),delete e.Wm[h]);delete e.Qd[h]}else e.Qd[h].oj=!1})};e.prototype.dN=function(f){this.ba&&((this.Ig=this.l_&&f>this.ba.fba())&&1<Object(aa.k)()?this.ef=0:this.ef=.5)};e.prototype.Ay=function(f){var e=this;
|
|
Object(x.b)("RenderingManager","stopCurrentRenders and keep "+f);var h={};if("undefined"!==typeof f&&(f.forEach(function(f){h[e.aa.ia.ah(f)]=!0}),this.Ig&&1===f.length&&void 0!==f[0])){var n=f[0];f=this.aa.ia.ah(n);if(f=this.ke(f).mc){var r=this.aa.Ff(),w=this.ef/2;if(n=r.eo(n+1,r.EC(w,w)))n=Object(y.d)(n.mc,f),.7>(n.oa-n.na)*(n.ka-n.ja)/((f.oa-f.na)*(f.ka-f.ja))&&(h={})}}var z={};Object.keys(this.Wm).forEach(function(f){f in h&&Object(ha.a)().useCache?z[f]=e.Wm[f]:e.ju(f)});this.Wm=z;this.hE=!0;
|
|
clearTimeout(this.xo);this.xo=null};e.prototype.ju=function(f){var e=this.kJ(f);clearTimeout(this.CK);if(e)if(this.aa.ia.aD(f)){var h=this.aa.ia.ng(f);if(this.ke(f).Ek){f=h.fb;if(f=this.aa.Xa().querySelector("#pageContainer"+f)){var n=f.querySelector(".progressive");n&&f.removeChild(n)}Object(x.b)("RenderingManager","Cancelled page "+h.fb)}e.cancel();Object(x.b)("RenderingManager","Clearing "+h.fb)}else e.cancel()};e.prototype.a_=function(f){(f=this.kJ(f))&&f.ZZ()};e.prototype.sy=function(f){this.l_=
|
|
!!f;this.dN(this.aa.bc())};e.prototype.OY=function(){};return e}();ba.a=ia},function(ia,ba,e){var ea=e(112);ia=function(){function e(e,x){this.Ua=e;this.Wh=x;this.pL=window.createPromiseCapability()}e.prototype.cancel=function(){var e=this.Ua.ke(this.Wh);try{if(e.Ek){e.ze&&(e.ze.iR(),e.ze.abort&&e.ze.abort());if(e.request)try{this.Ua.ba.cancelLoadCanvas(e.request),e.mc=e.afa}finally{e.request=null,e.ze=null}if(e.pu)try{this.Ua.ba.Eh(e.pu)}finally{e.pu=null}if(e.qq)try{this.Ua.ba.cancelLoadCanvas(e.qq)}finally{e.qq=
|
|
null}}}finally{e.Ek=!1,e.hZ=!0,this.pL.resolve("canceled")}};e.prototype.ZZ=function(){this.cancel();var e=this.Ua.ke(this.Wh);e.ze&&(e.ze.Md(void 0,this.Ua.aa.ia.ng(this.Wh).fb-1),e.ze=null)};e.prototype.render=function(e){var x=this;e.then(function(){x.pL.resolve("complete")}).catch(function(e){if(e===ea.b)x.Ua.Cp();else throw e;})};e.prototype.jJ=function(){return this.pL.promise};return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);ia=function(){function e(e,x){this.handlers=e;this.state=
|
|
Object(ea.isUndefined)(x)?null:x;this.sl=[];this.tL=!0}e.prototype.sm=function(e){this.sl.push(e)};e.prototype.kZ=function(){return 0<this.sl.length};e.prototype.gZ=function(){return this.tL||0<this.sl.length};e.prototype.read=function(){this.state=this.handlers.read(this.state);this.tL=!1};e.prototype.write=function(){var e=this.sl;this.handlers.consolidateChanges&&(e=this.handlers.consolidateChanges(e));this.sl=[];this.state=this.handlers.write(this.state,e);this.tL=!0};return e}();ba.a=ia},function(ia,
|
|
ba,e){var ea=e(1);ia=e(348);var x=e(159),ha=e(216);e=function(e){function da(aa){var w=e.call(this)||this;w.index=0;w.data={functions:[],Vg:[],done:!1};w.Cd=[];w.Dpa=[];w.gw=new x.a(aa);w.za=aa;return w}Object(ea.c)(da,e);da.prototype.ER=function(e){return new ha.a(this.za,e)};da.prototype.clone=function(){var e=new da(this.za);e.data=this.data;e.index=0;return e};da.prototype.ph=function(e,w){var x=this.data.functions[this.index];this.index++;-1===this.Cd.indexOf(e)&&this.Cd.push(e);return x?(this.gw.Nt(x,
|
|
e,w),!1):!0};return da}(ia.a);ba.a=e},function(ia,ba,e){var ea=e(217),x=e(136);ia=function(){function e(){this.index=0;this.data={functions:[],Vg:[],done:!1};this.Cd=[]}e.prototype.clone=function(){var x=new e;x.data=this.data;x.index=0;return x};e.prototype.cancel=function(){for(var e=0;e<this.Cd.length;e++){for(var x=0;x<this.Cd[e].Tq;x++)this.Cd[e].restore();this.Cd[e].Tq=0}this.Cd=[];this.aC&&this.aC.cancel()};e.prototype.ER=function(e){return new ea.a(e)};e.prototype.generate=function(e,da){function aa(){w.aC.generate(function(e){e?
|
|
(w.data.functions=w.data.functions.concat(e),x.a.setImmediate(aa)):(w.data.done=!0,w.aC=null,da());e=w.data.Vg.length;if(0<e){for(var n=0;n<e;++n)w.data.Vg[n]();w.data.Vg=[]}})}this.data.done=!1;var w=this;this.aC=this.ER(e);w.data.functions=[];aa();this.index=0};e.prototype.zt=function(){var e=this;return new Promise(function(x){e.data.done||e.index<e.data.functions.length?x():e.data.Vg.push(x)})};e.prototype.ph=function(e,x,aa){-1===this.Cd.indexOf(e)&&this.Cd.push(e);if(this.index<this.data.functions.length){aa=
|
|
Date.now()+aa;var w=this.data.functions[this.index];do++this.index,w(e,x),w=this.data.functions[this.index];while(w&&aa>Date.now());return!1}return!0};return e}();ba.a=ia},function(ia,ba,e){var ea=e(0);e.n(ea);ia=e(51);var x=e(159),ha=e(64),ca=e(124),da=function(){return function(e,n){this.Hb=e;this.Jb={};this.Ec=null;this.pb=n}}(),aa=function(){function e(){}e.prototype.xI=function(e){var h=this;this.functions=[];e.forEach(function(f){h.functions.push(new Function("c","t",f))});this.index=0};e.prototype.ph=
|
|
function(e,h,f){var n=this.functions[this.index];f&&this.index++;return n?(n(e,h),!1):!0};e.prototype.clone=function(){var n=new e;n.functions=this.functions;n.index=0;return n};e.prototype.zt=function(){return Promise.resolve()};e.prototype.cancel=function(){};return e}(),w=function(){function e(e){this.index=0;this.data={functions:e,Vg:[],done:!1};this.gw=new x.a(0)}e.prototype.xI=function(e){var h=this;this.functions=[];e.forEach(function(f){h.functions.push(new Function("c","t",f))});this.index=
|
|
0};e.prototype.ph=function(e,h,f){var n=this.data.functions[this.index];f&&this.index++;return n?(this.gw.Nt(n,e,h),!1):!0};e.prototype.clone=function(){var n=new e(this.data.functions);n.index=0;return n};e.prototype.zt=function(){return Promise.resolve()};e.prototype.cancel=function(){};return e}();e=function(){function e(e){this.BD=!1;this.Ic=[];this.Jy={};this.XA={};this.vB={};this.$B=[];this.Nn={};this.Jb={};this.xg=e}e.prototype.sJ=function(e,h){e+=1;if(e in this.Ic){e=this.Ic[e];var f=Object.assign({},
|
|
e);if(!e.Ec){var n=null;e.lo?(n=new aa,n.xI(e.lo)):e.Pv&&(n=new w(e.Pv));e.Ec=n}f.Ec=e.Ec.clone();h(null,f)}else h(Error("The page "+e+" does not exist yet."))};e.prototype.gJ=function(e,h,f){var n=this;e+=1;if(e in this.Ic){e=this.Ic[e];var x=Object.assign({},e);e.Ec||(h=null,e.lo?(h=new aa,h.xI(e.lo)):e.Pv&&(h=new w(e.Pv)),e.Ec=h);x.Ec=e.Ec.clone();x.Jb=Object(ea.cloneDeep)(x.Jb);Object.keys(x.Jb).forEach(function(f){var e=x.Jb[f];if("jpg"===e.type)x.Jb[f].data=Object(ca.d)(e.data.type,e.data.data);
|
|
else{if(ha.a.C$){var h=Object(ca.d)(e.data.type,e.data.data);h=new ha.a.FontFace(e.name,"","sfnt",h)}else{h="";for(var r=new Uint8Array(e.data.data),w=r.byteLength,z=0;z<w;z++)h+=String.fromCharCode(r[z]);h=new ha.a.FontFace(e.name,h,"sfnt",void 0)}n.xg.iK(e.name)||h.insert();x.Jb[f].data=h}});f(null,x)}else f(Error("The page "+e+" does not exist yet."))};e.prototype.z4=function(e){var h=this,f=e.meta.page,n=new da(f,this),w=e.img,x=e.text_structure,y={},aa={};Object.keys(w).forEach(function(f){w[f]&&
|
|
w[f].data?(aa={data:w[f],type:"jpg",name:f},y[f]=aa,h.Jb[f]=aa):y[f]=h.Jb[f]});var ca=e.embeddedFonts;Object.keys(ca).forEach(function(f){var e=ca[f];e&&e.data?(aa={data:e,type:"font",name:f},y[f]=aa,h.Jb[f]=aa):y[f]=h.Jb[f]});n.lo=e.js;if(e.arguments){var ha=e.arguments;e=e.commands;n.Pv=[];for(var ea=0;ea<e.length;ea++)n.Pv.push({operators:e[ea],data:ha[ea]})}n.Jb=y;n.text=x;this.Ic[f]=n};e.prototype.rH=function(){};return e}();Object(ia.a)(e);ba.a=e},function(ia,ba,e){function ea(){return null}
|
|
var x=e(1);ba.a=function(e,ca){var da=ca.efa,aa=void 0===da?ea:da,w=ca.getState;return function(e){function n(){for(var h=[],f=0;f<arguments.length;f++)h[f]=arguments[f];h=e.apply(this,h)||this;h.r2=new Map;h.BO=aa;h.q2=w;return h}Object(x.c)(n,e);n.prototype.getState=function(){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(){return[2,this.q2(this)]})})};n.prototype.cY=function(e){"symbol"===typeof e?(e=this.r2.get(e))&&this.BO(this,e):this.BO(this,e)};return n}(e)}},
|
|
function(ia,ba,e){function ea(f){f=null==f?ma:f;this.output="";null!=f.output?(this.output=f.output,this.write=this.writeToStream):this.output="";this.generator=null!=f.generator?f.generator:pa;this.expressionsPrecedence=null!=f.expressionsPrecedence?f.expressionsPrecedence:h;this.indent=null!=f.indent?f.indent:" ";this.lineEnd=null!=f.lineEnd?f.lineEnd:"\n";this.indentLevel=null!=f.startingIndentLevel?f.startingIndentLevel:0;this.writeComments=f.comments?f.comments:!1;null!=f.sourceMap&&(this.write=
|
|
null==f.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=f.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:f.sourceMap.file||f.sourceMap._file})}function x(f,e){var h=f.generator;f.write("(");if(null!=e&&0<e.length){h[e[0].type](e[0],f);for(var n=e.length,r=1;r<n;r++){var w=e[r];f.write(", ");h[w.type](w,f)}}f.write(")")}function ha(f,e,h,r){var w=f.expressionsPrecedence[e.type];if(17===
|
|
w)return!0;f=f.expressionsPrecedence[h.type];return w!==f?!r&&15===w&&14===f&&"**"===h.operator||w<f:13!==w&&14!==w?!1:"**"===e.operator&&"**"===h.operator?!r:r?n[e.operator]<=n[h.operator]:n[e.operator]<n[h.operator]}function ca(f,e,h,n){var r=f.generator;if(ha(f,e,h,n))f.write("("),r[e.type](e,f),f.write(")");else r[e.type](e,f)}function da(f,e,h,n){for(var r=e.length,w=0;w<r;w++){var x=e[w];f.write(h);"L"===x.type[0]?f.write("// "+x.value.trim()+"\n",x):f.write(""+n)}}function aa(f,e){var h=f.generator,
|
|
n=e.declarations;f.write(e.kind+" ");e=n.length;if(0<e){h.VariableDeclarator(n[0],f);for(var r=1;r<e;r++)f.write(", "),h.VariableDeclarator(n[r],f)}}function w(f,e){e=new ea(e);e.generator[f.type](f,e);return e.output}e.d(ba,"a",function(){return w});var y=JSON.stringify;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");
|
|
var n={"||":3,"&&":4,"|":5,"??":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},h={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,
|
|
UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1},f,r,z,fa,ka,ja,pa={Program:function(f,e){var h=e.indent.repeat(e.indentLevel),n=e.lineEnd,r=e.writeComments;r&&null!=f.comments&&da(e,f.comments,h,n);for(var w=f.body,x=w.length,z=0;z<x;z++){var y=w[z];r&&null!=y.comments&&da(e,y.comments,h,n);e.write(h);this[y.type](y,e);e.write(n)}r&&null!=f.trailingComments&&da(e,f.trailingComments,
|
|
h,n)},BlockStatement:ja=function(f,e){var h=e.indent.repeat(e.indentLevel++),n=e.lineEnd,r=e.writeComments,w=h+e.indent;e.write("{");var x=f.body;if(null!=x&&0<x.length){e.write(n);r&&null!=f.comments&&da(e,f.comments,w,n);for(var z=x.length,y=0;y<z;y++){var aa=x[y];r&&null!=aa.comments&&da(e,aa.comments,w,n);e.write(w);this[aa.type](aa,e);e.write(n)}e.write(h)}else r&&null!=f.comments&&(e.write(n),da(e,f.comments,w,n),e.write(h));r&&null!=f.trailingComments&&da(e,f.trailingComments,w,n);e.write("}");
|
|
e.indentLevel--},ClassBody:ja,StaticBlock:function(f,e){e.write("static ");this.BlockStatement(f,e)},EmptyStatement:function(f,e){e.write(";")},ExpressionStatement:function(f,e){var h=e.expressionsPrecedence[f.expression.type];if(17===h||3===h&&"O"===f.expression.left.type[0])e.write("("),this[f.expression.type](f.expression,e),e.write(")");else this[f.expression.type](f.expression,e);e.write(";")},IfStatement:function(f,e){e.write("if (");this[f.test.type](f.test,e);e.write(") ");this[f.consequent.type](f.consequent,
|
|
e);null!=f.alternate&&(e.write(" else "),this[f.alternate.type](f.alternate,e))},LabeledStatement:function(f,e){this[f.label.type](f.label,e);e.write(": ");this[f.body.type](f.body,e)},BreakStatement:function(f,e){e.write("break");null!=f.label&&(e.write(" "),this[f.label.type](f.label,e));e.write(";")},ContinueStatement:function(f,e){e.write("continue");null!=f.label&&(e.write(" "),this[f.label.type](f.label,e));e.write(";")},WithStatement:function(f,e){e.write("with (");this[f.object.type](f.object,
|
|
e);e.write(") ");this[f.body.type](f.body,e)},SwitchStatement:function(f,e){var h=e.indent.repeat(e.indentLevel++),n=e.lineEnd,r=e.writeComments;e.indentLevel++;var w=h+e.indent,x=w+e.indent;e.write("switch (");this[f.discriminant.type](f.discriminant,e);e.write(") {"+n);f=f.cases;for(var z=f.length,y=0;y<z;y++){var aa=f[y];r&&null!=aa.comments&&da(e,aa.comments,w,n);aa.test?(e.write(w+"case "),this[aa.test.type](aa.test,e),e.write(":"+n)):e.write(w+"default:"+n);aa=aa.consequent;for(var fa=aa.length,
|
|
ca=0;ca<fa;ca++){var ja=aa[ca];r&&null!=ja.comments&&da(e,ja.comments,x,n);e.write(x);this[ja.type](ja,e);e.write(n)}}e.indentLevel-=2;e.write(h+"}")},ReturnStatement:function(f,e){e.write("return");f.argument&&(e.write(" "),this[f.argument.type](f.argument,e));e.write(";")},ThrowStatement:function(f,e){e.write("throw ");this[f.argument.type](f.argument,e);e.write(";")},TryStatement:function(f,e){e.write("try ");this[f.block.type](f.block,e);if(f.handler){var h=f.handler;null==h.param?e.write(" catch "):
|
|
(e.write(" catch ("),this[h.param.type](h.param,e),e.write(") "));this[h.body.type](h.body,e)}f.finalizer&&(e.write(" finally "),this[f.finalizer.type](f.finalizer,e))},WhileStatement:function(f,e){e.write("while (");this[f.test.type](f.test,e);e.write(") ");this[f.body.type](f.body,e)},DoWhileStatement:function(f,e){e.write("do ");this[f.body.type](f.body,e);e.write(" while (");this[f.test.type](f.test,e);e.write(");")},ForStatement:function(f,e){e.write("for (");if(null!=f.init){var h=f.init;if("V"===
|
|
h.type[0])aa(e,h);else this[h.type](h,e)}e.write("; ");if(f.test)this[f.test.type](f.test,e);e.write("; ");if(f.update)this[f.update.type](f.update,e);e.write(") ");this[f.body.type](f.body,e)},ForInStatement:f=function(f,e){e.write("for "+(f.VQ?"await ":"")+"(");var h=f.left;if("V"===h.type[0])aa(e,h);else this[h.type](h,e);e.write("I"===f.type[3]?" in ":" of ");this[f.right.type](f.right,e);e.write(") ");this[f.body.type](f.body,e)},ForOfStatement:f,DebuggerStatement:function(f,e){e.write("debugger;",
|
|
f)},FunctionDeclaration:r=function(f,e){e.write((f.async?"async ":"")+(f.generator?"function* ":"function ")+(f.id?f.id.name:""),f);x(e,f.params);e.write(" ");this[f.body.type](f.body,e)},FunctionExpression:r,VariableDeclaration:function(f,e){aa(e,f);e.write(";")},VariableDeclarator:function(f,e){this[f.id.type](f.id,e);null!=f.init&&(e.write(" = "),this[f.init.type](f.init,e))},ClassDeclaration:function(f,e){e.write("class "+(f.id?f.id.name+" ":""),f);if(f.superClass){e.write("extends ");var h=f.superClass,
|
|
n=h.type,r=e.expressionsPrecedence[n];if("C"===n[0]&&"l"===n[1]&&"E"===n[5]||!(17===r||r<e.expressionsPrecedence.ClassExpression))this[h.type](h,e);else e.write("("),this[f.superClass.type](h,e),e.write(")");e.write(" ")}this.ClassBody(f.body,e)},ImportDeclaration:function(f,e){e.write("import ");var h=f.specifiers,n=h.length,r=0;if(0<n){for(;r<n;){0<r&&e.write(", ");var w=h[r],x=w.type[6];if("D"===x)e.write(w.local.name,w),r++;else if("N"===x)e.write("* as "+w.local.name,w),r++;else break}if(r<n){for(e.write("{");;)if(w=
|
|
h[r],x=w.imported.name,e.write(x,w),x!==w.local.name&&e.write(" as "+w.local.name),++r<n)e.write(", ");else break;e.write("}")}e.write(" from ")}this.Literal(f.source,e);e.write(";")},ImportExpression:function(f,e){e.write("import(");this[f.source.type](f.source,e);e.write(")")},ExportDefaultDeclaration:function(f,e){e.write("export default ");this[f.declaration.type](f.declaration,e);null!=e.expressionsPrecedence[f.declaration.type]&&"F"!==f.declaration.type[0]&&e.write(";")},ExportNamedDeclaration:function(f,
|
|
e){e.write("export ");if(f.declaration)this[f.declaration.type](f.declaration,e);else{e.write("{");var h=f.specifiers,n=h.length;if(0<n)for(var r=0;;){var w=h[r],x=w.local.name;e.write(x,w);x!==w.exported.name&&e.write(" as "+w.exported.name);if(++r<n)e.write(", ");else break}e.write("}");f.source&&(e.write(" from "),this.Literal(f.source,e));e.write(";")}},ExportAllDeclaration:function(f,e){null!=f.exported?e.write("export * as "+f.exported.name+" from "):e.write("export * from ");this.Literal(f.source,
|
|
e);e.write(";")},MethodDefinition:function(f,e){f.LE&&e.write("static ");var h=f.kind[0];"g"!==h&&"s"!==h||e.write(f.kind+" ");f.value.async&&e.write("async ");f.value.generator&&e.write("*");if(f.computed)e.write("["),this[f.key.type](f.key,e),e.write("]");else this[f.key.type](f.key,e);x(e,f.value.params);e.write(" ");this[f.value.body.type](f.value.body,e)},ClassExpression:function(f,e){this.ClassDeclaration(f,e)},ArrowFunctionExpression:function(f,e){e.write(f.async?"async ":"",f);var h=f.params;
|
|
null!=h&&(1===h.length&&"I"===h[0].type[0]?e.write(h[0].name,h[0]):x(e,f.params));e.write(" => ");if("O"===f.body.type[0])e.write("("),this.ObjectExpression(f.body,e),e.write(")");else this[f.body.type](f.body,e)},ThisExpression:function(f,e){e.write("this",f)},Super:function(f,e){e.write("super",f)},RestElement:z=function(f,e){e.write("...");this[f.argument.type](f.argument,e)},SpreadElement:z,YieldExpression:function(f,e){e.write(f.delegate?"yield*":"yield");f.argument&&(e.write(" "),this[f.argument.type](f.argument,
|
|
e))},AwaitExpression:function(f,e){e.write("await ",f);ca(e,f.argument,f)},TemplateLiteral:function(f,e){var h=f.quasis;f=f.expressions;e.write("`");for(var n=f.length,r=0;r<n;r++){var w=f[r],x=h[r];e.write(x.value.raw,x);e.write("${");this[w.type](w,e);e.write("}")}h=h[h.length-1];e.write(h.value.raw,h);e.write("`")},TemplateElement:function(f,e){e.write(f.value.raw,f)},TaggedTemplateExpression:function(f,e){ca(e,f.tag,f);this[f.quasi.type](f.quasi,e)},ArrayExpression:ka=function(f,e){e.write("[");
|
|
if(0<f.elements.length){f=f.elements;for(var h=f.length,n=0;;){var r=f[n];if(null!=r)this[r.type](r,e);if(++n<h)e.write(", ");else{null==r&&e.write(", ");break}}}e.write("]")},ArrayPattern:ka,ObjectExpression:function(f,e){var h=e.indent.repeat(e.indentLevel++),n=e.lineEnd,r=e.writeComments,w=h+e.indent;e.write("{");if(0<f.properties.length){e.write(n);r&&null!=f.comments&&da(e,f.comments,w,n);for(var x=","+n,z=f.properties,y=z.length,aa=0;;){var fa=z[aa];r&&null!=fa.comments&&da(e,fa.comments,w,
|
|
n);e.write(w);this[fa.type](fa,e);if(++aa<y)e.write(x);else break}e.write(n);r&&null!=f.trailingComments&&da(e,f.trailingComments,w,n);e.write(h+"}")}else r?null!=f.comments?(e.write(n),da(e,f.comments,w,n),null!=f.trailingComments&&da(e,f.trailingComments,w,n),e.write(h+"}")):null!=f.trailingComments?(e.write(n),da(e,f.trailingComments,w,n),e.write(h+"}")):e.write("}"):e.write("}");e.indentLevel--},Property:function(f,e){if(f.method||"i"!==f.kind[0])this.MethodDefinition(f,e);else{if(!f.shorthand){if(f.computed)e.write("["),
|
|
this[f.key.type](f.key,e),e.write("]");else this[f.key.type](f.key,e);e.write(": ")}this[f.value.type](f.value,e)}},PropertyDefinition:function(f,e){f.LE&&e.write("static ");this[f.key.type](f.key,e);null!=f.value&&(e.write(" = "),this[f.value.type](f.value,e))},ObjectPattern:function(f,e){e.write("{");if(0<f.properties.length){f=f.properties;for(var h=f.length,n=0;;)if(this[f[n].type](f[n],e),++n<h)e.write(", ");else break}e.write("}")},SequenceExpression:function(f,e){x(e,f.expressions)},UnaryExpression:function(f,
|
|
e){if(f.prefix){var h=f.operator,n=f.argument,r=f.argument.type;e.write(h);(f=ha(e,n,f))||!(1<h.length)&&("U"!==r[0]||"n"!==r[1]&&"p"!==r[1]||!n.prefix||n.operator[0]!==h||"+"!==h&&"-"!==h)||e.write(" ");if(f)e.write(1<h.length?" (":"("),this[r](n,e),e.write(")");else this[r](n,e)}else this[f.argument.type](f.argument,e),e.write(f.operator)},UpdateExpression:function(f,e){f.prefix?(e.write(f.operator),this[f.argument.type](f.argument,e)):(this[f.argument.type](f.argument,e),e.write(f.operator))},
|
|
AssignmentExpression:function(f,e){this[f.left.type](f.left,e);e.write(" "+f.operator+" ");this[f.right.type](f.right,e)},AssignmentPattern:function(f,e){this[f.left.type](f.left,e);e.write(" = ");this[f.right.type](f.right,e)},BinaryExpression:fa=function(f,e){var h="in"===f.operator;h&&e.write("(");ca(e,f.left,f,!1);e.write(" "+f.operator+" ");ca(e,f.right,f,!0);h&&e.write(")")},LogicalExpression:fa,ConditionalExpression:function(f,e){var h=f.test,n=e.expressionsPrecedence[h.type];if(17===n||n<=
|
|
e.expressionsPrecedence.ConditionalExpression)e.write("("),this[h.type](h,e),e.write(")");else this[h.type](h,e);e.write(" ? ");this[f.consequent.type](f.consequent,e);e.write(" : ");this[f.alternate.type](f.alternate,e)},NewExpression:function(f,e){e.write("new ");var h=e.expressionsPrecedence[f.callee.type];if(!(h=17===h||h<e.expressionsPrecedence.CallExpression))a:{for(h=f.callee;null!=h;){var n=h.type;if("C"===n[0]&&"a"===n[1]){h=!0;break a}if("M"===n[0]&&"e"===n[1]&&"m"===n[2])h=h.object;else{h=
|
|
!1;break a}}h=void 0}if(h)e.write("("),this[f.callee.type](f.callee,e),e.write(")");else this[f.callee.type](f.callee,e);x(e,f.arguments)},CallExpression:function(f,e){var h=e.expressionsPrecedence[f.callee.type];if(17===h||h<e.expressionsPrecedence.CallExpression)e.write("("),this[f.callee.type](f.callee,e),e.write(")");else this[f.callee.type](f.callee,e);f.optional&&e.write("?.");x(e,f.arguments)},ChainExpression:function(f,e){this[f.expression.type](f.expression,e)},MemberExpression:function(f,
|
|
e){var h=e.expressionsPrecedence[f.object.type];if(17===h||h<e.expressionsPrecedence.MemberExpression)e.write("("),this[f.object.type](f.object,e),e.write(")");else this[f.object.type](f.object,e);f.computed?(f.optional&&e.write("?."),e.write("["),this[f.property.type](f.property,e),e.write("]")):(f.optional?e.write("?."):e.write("."),this[f.property.type](f.property,e))},MetaProperty:function(f,e){e.write(f.meta.name+"."+f.property.name,f)},Identifier:function(f,e){e.write(f.name,f)},PrivateIdentifier:function(f,
|
|
e){e.write("#"+f.name,f)},Literal:function(f,e){null!=f.raw?e.write(f.raw,f):null!=f.regex?this.RegExpLiteral(f,e):null!=f.bigint?e.write(f.bigint+"n",f):e.write(y(f.value),f)},RegExpLiteral:function(f,e){var h=f.regex;e.write("/"+h.pattern+"/"+h.flags,f)}},ma={};ea.prototype.write=function(f){this.output+=f};ea.prototype.writeToStream=function(f){this.output.write(f)};ea.prototype.writeAndMap=function(f,e){this.output+=f;this.map(f,e)};ea.prototype.writeToStreamAndMap=function(f,e){this.output.write(f);
|
|
this.map(f,e)};ea.prototype.map=function(f,e){if(null!=e){var h=e.type;if("L"===h[0]&&"n"===h[2]){this.column=0;this.line++;return}if(null!=e.loc){var n=this.mapping;n.original=e.loc.start;n.name=e.name;this.sourceMap.addMapping(n)}if("T"===h[0]&&"E"===h[8]||"L"===h[0]&&"i"===h[1]&&"string"===typeof e.value){e=f.length;h=this.column;n=this.line;for(var r=0;r<e;r++)"\n"===f[r]?(h=0,n++):h++;this.column=h;this.line=n;return}}e=f.length;h=this.lineEnd;0<e&&(0<this.lineEndSize&&(1===h.length?f[e-1]===
|
|
h:f.endsWith(h))?(this.line+=this.lineEndSize,this.column=0):this.column+=e)};ea.prototype.toString=function(){return this.output}},function(ia,ba,e){var ea=e(1),x=e(31),ha=e(177),ca=e(124),da=e(2),aa=window;ia=function(){function e(e,n){this.lG={};this.cache=new ha.a(aa.ez,!1);this.jn={};this.pv={};this.source=e;this.O3=n}e.prototype.init=function(){return Object(ea.b)(this,void 0,void 0,function(){var e,n;return Object(ea.d)(this,function(h){switch(h.label){case 0:return e={customHeaders:this.O3,
|
|
cacheHint:x.a.NO_HINT},n=this,[4,Object(x.c)(x.b.HttpPartRetriever,this.source,e)];case 1:return n.YP=h.ea(),[2]}})})};e.prototype.MC=function(e){var n=this.jn[e.id],h=3<e.rotation?e.rotation/90:e.rotation;return n&&n.width===e.width&&n.height===e.height&&n.rotation===h};e.prototype.tH=function(e){this.pv[e]&&(this.pv[e].NJ(),this.$P(e))};e.prototype.clear=function(){this.cache.clear()};e.prototype.Ofa=function(e,n,h){return Object(ea.b)(this,void 0,Promise,function(){var f,r,w,x,y,aa=this;return Object(ea.d)(this,
|
|
function(z){switch(z.label){case 0:return f={start:n,stop:n+h},[4,new Promise(function(h,n){return aa.YP.oo(e,f,function(f,e){if(f)return n(f);h(e)})})];case 1:r=z.ea();w=String.fromCharCode.apply(null,new Uint8Array(r));try{x=JSON.parse(w)}catch(ma){throw Error("Optimization is not currently supported for encrypted PDF files.");}y=x.thumbs;Object.keys(y).forEach(function(f){if(y.hasOwnProperty(f)){var e=y[f];aa.jn[e.page_objnum?e.page_objnum+"-0":parseInt(f,10)-1]={start:e.start,stop:e.start+e.size}}});
|
|
return[2,x]}})})};e.prototype.jq=function(e,n,h){var f=this,r=!1,w=this.TO(e,n.width,n.height,n.rotation);n=this.B3(this.source,this.jn[e],w,e,function(e){var n=e.error,x=e.data;r=e.Ki;f.$P(w);h(n,x)});r||(this.pv[w]={u_:n.u_,NJ:n.NJ,wc:e});return w};e.prototype.Tha=function(e){var n=e.id;e=this.TO(n,e.width,e.height,e.rotation);this.jn[n]&&(delete this.jn[n],this.cache.removeItem(e))};e.prototype.pga=function(e){var n=20;void 0===n&&(n=20);var h=Object.keys(this.jn);n=h.length<=n?h.length:n;for(var f=
|
|
0;f<n;f++){var r=e[h[f]];if(r){var w=Object.assign({},this.jn[r.id],{width:r.width,height:r.height,rotation:3<r.rotation?r.rotation/90:r.rotation});this.jn[r.id]=w;this.jq(h[f],w,function(){})}else Object(da.i)("Page with id "+h[f]+" is not found.")}};e.prototype.D5=function(e,n){return(e=this.lG[e.id])?n<Math.max(e.h,e.w):!0};e.prototype.TO=function(e,n,h,f){return e+"_"+n+"_"+h+"_"+(3<f?f/90:f)};e.prototype.j3=function(e,n){if(!this.lG[e]){var h=new Image,f=this;h.onload=function(){f.lG[e]={w:h.width,
|
|
h:h.height}};h.src=n}};e.prototype.B3=function(e,n,h,f,r){var w=this,x=this.cache.getItem(h);if(x)r({data:x.data,Ki:!0,error:null});else{var y=function(f,e){r({error:f,data:e,Ki:!1})};e=this.YP.oo(e,n,function(e,r){if(e)y(e);else{var x=w.cache.getItem(h);x?r=x.data:(r=Object(ca.c)("jpg",r),w.j3(f,r),w.cache.setItem({key:h,data:r,size:n.stop-n.start,gf:function(f){URL.revokeObjectURL(f.gd)}}));y(e,r);return y}});return{u_:y,NJ:e}}};e.prototype.$P=function(e){this.pv[e]&&delete this.pv[e]};return e}();
|
|
ba.a=ia},function(ia,ba,e){function ea(){return Object(x.b)(void 0,void 0,void 0,function(){return Object(x.d)(this,function(){return[2]})})}e.d(ba,"a",function(){return ea});var x=e(1)},function(ia,ba,e){var ea=e(7),x=e(77),ha=e(355),ca=e(215),da=e(357),aa=e(235);ba.a=function(){ea.a.It("xod",x.b);ea.a.It("webviewerServer",ha.a);ea.a.It("office",ca.a);ea.a.It("image",da.a);ea.a.It("pdf",aa.a)}},function(ia,ba,e){function ea(f,e,h){var n=e.split(".").slice(-2,-1)[0].split("_");return{GH:h,url:e,Km:f,
|
|
gE:(5<n.length?parseInt(n[5],10):1)/parseInt(n[0],10),x_:parseInt(n[1],10),A_:parseInt(n[2],10),w_:parseInt(n[3],10),z_:parseInt(n[4],10),getName:function(){return Object(ma.d)("tile_"+e.substring(e.lastIndexOf("/")+1),h)},lS:function(f){var e=this.gE*this.Km*this.w_,h=this.gE*this.Km*this.z_,n=this.gE*this.x_,r=this.gE*this.A_,w=this.getName();f.mma=!0;f.Tea=!0;f.Uea=!0;f.Qca="high";f.PJ=!0;window.ci[w]&&f.I(window.ci[w],0,0,this.x_,this.A_,e,h,n,r)}}}var x=e(1),ha=e(0);e.n(ha);var ca=e(2),da=e(31),
|
|
aa=e(77),w=e(122),y=e(78),n=e(81),h=e(56),f=e(37),r=e(97),z=e(17),fa=e(23),ka=e(166),ja=e(7),pa=e(9),ma=e(20),la=e(242),na=e(356),ra=e(225),sa=e(68),Da=e(40),qa=e(6),va=e(10),oa=e(30),ua=window,Ca=0,ya={Ja:!0},Ea={Oq:!0},Aa={hf:!0,unloadResources:!0,Eh:!0,Ks:!0,vw:!0,getFileData:!0,extractXFDF:!0,Go:!0,Gl:!0,ws:!0,sk:!0,Gf:!0,Hf:!0,Vh:!0,yg:!0,Rh:!0,oh:!0,Ie:!0,Fh:!0,getLayersArray:!0,Bo:!0,Dl:!0,getNewAppearanceDocument:!0,getBookmarks:!0};ia=function(e){function ba(f){var h=e.call(this,f)||this;
|
|
h.ag=[];h.hf={};h.sf={};h.pm={};h.Jca=!1;h.pk={};h.Rf={};h.lw={};h.za=null;h.Ic=[];h.qu={};h.Jm={};h.ca=[];h.page=[];h.Oq={};h.Zb=null;h.Fq={};h.Qy=window.createPromiseCapability();h.Jx=window.createPromiseCapability();h.Yh=null;h.Gt=[];h.Uv=null;h.PE=!0;h.QE=!0;h.hea=0;h.vla=1;h.RA=null;h.cH=new Map;h.SA=[];h.Ey=!1;h.HB=!1;h.KL=[];h.EB=!1;h.uR=window.createPromiseCapability();h.Tr=null;h.bH=new Map;h.oU=[];h.nU=!1;h.OE=!1;h.oH=[];h.bX=new Set;h.Vq=!1;h.CP=!1;h.B2=[];h.xg=new r.a.pz;h.Kr=h.xg;h.id=
|
|
f;h.Ht=h.ca;h.GH=Ca++;return h.pb=h}Object(x.c)(ba,e);ba.prototype.Kca=function(f){return f.hU().then(function(f){return Promise.resolve(!!f.url)})};ba.prototype.O6=function(f){return f.cia()};ba.prototype.Eh=function(f){2===this.Jm[f]?(delete this.Jm[f],this.Ii.Eh(f)):this.Zb.I5(f)};ba.prototype.updateRasterizerOptions=function(f){this.Oq=f};ba.prototype.loadThumbnailAsync=function(f,e){--f;if(!this.ca||this.ca.length<f)throw Error("Document is not initialized!");var h=this,n=h,r=null,w=h.Nh(f);
|
|
h.qu[w]?r=Promise.resolve(h.qu[w]):this.Ii||(r=h.Zb.jE(w,f));if(r){var x=h.GR();n.Jm[x]=1;var z=r,y=new Image;h.qu[w]=z;y.onload=function(){URL.revokeObjectURL(z.url);n.Jm[x]&&(e(y),delete n.Jm[x]);y=y.onload=null};y.src=z.url}else{h=this.Ii;r=h.ca[f];f=Object(sa.b)({pageNumber:f+1,zoom:r.width>r.height?450/r.width:450/r.height,drawComplete:function(f){f.style.backgroundColor="white";n.Jm[x]&&(h.tu(x),e(f),delete n.Jm[x])},pageCanvas:!0});var aa=Object(sa.c)(h.mb(f.pageNumber),f);f.getZoom=function(){return aa};
|
|
x=h.loadCanvasAsync(f);n.Jm[x]=2}return x};ba.prototype.GM=function(){if(!0===this.EB)return!1;var f=z.k&&79>z.d;return this.QE&&(z.i||f||!this.PE||z.n)};ba.prototype.F5=function(){return!z.n||this.EB};ba.prototype.sk=function(){return!this.EB};ba.prototype.Al=function(f){this.Vq=f};ba.prototype.CZ=function(f){return Object(x.b)(this,void 0,void 0,function(){var e,h,n,r,z,y,fa,da,ha,ja,ba,ea,ka,qa=this;return Object(x.d)(this,function(oa){switch(oa.label){case 0:if(null===f)return Object(ca.b)("load",
|
|
"Not switching backends because the server gave us nothing to use"),[2,!1];e=this.GM();Object(ca.b)("load","Switching backend XOD: "+e);h=e?aa.b.prototype:w.a.prototype;n=function(f){return function(){return qa.Ii[f].apply(qa.Ii,arguments)}};r=function(f){return function(e){qa.Ii[f]=e}};z=function(f){return function(){return qa.Ii[f]}};this.Ey=e;this.Ht=this.ca.slice();if(this.Yh&&this.Ey&&(y=this.Yh.Yd(),fa=y.ta().Pb()))for(this.Gt=[],da=0;da<fa.length;++da)this.Gt.push(fa[da]);ha=function(e){ya[e]&&
|
|
(f[e]=qa[e]);Ea[e]&&(f[e]=Object(x.a)(Object(x.a)({},qa[e]),f[e]));Aa[e]||("function"===typeof f[e]?(Object(ca.b)("load","Redirected function name "+e),qa[e]=n(e)):(Object(ca.b)("load","Redirected property name "+e),Object.defineProperty(qa,e,{get:z(e),set:r(e)})))};this.Ii=f;for(ja in f)(f.hasOwnProperty(ja)||h.hasOwnProperty(ja))&&ha(ja);this.aF();f.FD||(f.FD=f.Sx);ba=function(e){"documentComplete"===e.type&&(qa.OE=!0);if("pagesUpdated"===e.type){var h=e.data.pageDimensions,n=Object.keys(h);if(!qa.CP){for(var r=
|
|
{},w=[],x=0,z=n.length;x<z;x++){var y=n[x],aa=h[y].id;r[parseInt(y,10)-1]=aa;w.push(aa)}qa.je({type:"changePageIds",data:r});qa.B2=w;qa.CP=!0;qa.mla(r)}n.forEach(function(f){var e=parseInt(f,10)-1;f=h[f];f.id||(f.id=""+e);qa.KL[e]=0;if(!qa.OE&&qa.Ht[e]){e=qa.Ht[e];var n=e.Pa;f.rotation=e.rotation/90;f.width=e.width;f.height=e.height;f.matrix=[n.m_a,n.m_b,n.m_c,n.m_d,n.m_h,n.m_v]}})}f.FD(e)};f.Ja=this.Ja;f.Sx=ba;f.ws=this.ws;try{localStorage.setItem("isCached",!0)}catch(Nb){Object(ca.b)("load","Couldn't add the loaded marker to localStorage")}this.uR.resolve(f);
|
|
return[4,this.Jx.promise];case 1:return ea=oa.ea(),ka=ea.Yd(),ka.trigger(va.e.CLIENT_SIDE_DOCUMENT_LOADED),[2,!0]}})})};ba.prototype.Yka=function(f){if(this.GM())return this.Kca(f)};ba.prototype.iC=function(){return Object(Da.a)("wvsQueryParameters").bcid};ba.prototype.fC=function(){return Object(Da.a)("wvsQueryParameters").auth};ba.prototype.BR=function(e,n,r){return Object(x.b)(this,void 0,void 0,function(){var z,y,fa,ca,ha,ja=this;return Object(x.d)(this,function(){z=function(f,e){return new Promise(function(h,
|
|
n){e.DU&&e.DU(ja.ca);e.loadAsync(f,function(f){f?n(f):h(e);return ja.Yh},r)})};y=n.Ph();if(this.GM())return window.Ya.xY(!0),fa=function(f){return Object(x.b)(ja,void 0,void 0,function(){var h,n;return Object(x.d)(this,function(r){switch(r.label){case 0:return f.flat||!f.url?[2,Promise.resolve(null)]:[4,Object(da.c)(da.b.HttpPartRetriever,f.url)];case 1:return h=r.ea(),h.Eo(y),n=new aa.b(e),[2,z(h,n)]}})})},r.rU?[2,fa(r.rU)]:[2,this.O6(n).then(fa)];if(!this.F5())return[2,Promise.resolve(null)];ha=
|
|
r.workerHandlers?r.workerHandlers:{};ca=r.backendType?Object(f.f)(r.backendType,ha,r.l):Object(h.e)().then(function(e){return Object(f.f)(e,ha,r.l)});return[2,Promise.all([n.YX(),ca]).then(function(f){return Object(x.b)(ja,void 0,void 0,function(){var h,n,aa,fa,ha=this;return Object(x.d)(this,function(x){switch(x.label){case 0:return h=f[0],this.Ia=f[1],n=2E3>this.ca.length,[4,Object(da.c)(da.b.ExternalPdfPartRetriever,h.url,{useDownloader:n,withCredentials:y})];case 1:return aa=x.ea(),fa=new w.a(e),
|
|
this.Vq&&fa.Al(this.Vq),fa.FD=fa.Sx,fa.Sx=function(f){"documentComplete"===f.type&&(ha.OE=!0);fa.FD(f)},fa.GY(this.ws),r.workerTransportPromise=ca,r.extension="pdf",[2,z(aa,fa)]}})})})]})})};ba.prototype.VG=function(f){if(0!==f.length){for(var e=0;e<f.length;++e)for(var h=f[e],n=Math.min(this.ca.length,h.i-1),r=h.i+h.n-2;r>=n;--r){var w=this.dz(h);this.ca[r]=w;w=r;this.ca[r].pageNum=r+1;this.ca[r].id=w;this.pm[w]=this.ca[r]}this.maxViewportZoom=this.zn();this.je({type:"pagesUpdated",data:this.ca.slice()})}};
|
|
ba.prototype.m4=function(f){function e(f){var h=[];f.children.forEach(function(f){h.push(e(f))});return new y.a(h,f.name,f.pageNumber,f.parent,f.verticalOffset,f.horizontalOffset,f.url,f.index,f.objNum)}for(var h=0;h<f.length;++h)this.ag.push(e(f[h]))};ba.prototype.aaa=function(f){if(this.cH.has(f.key))return this.cH.get(f.key);var e=this.Zb.$$(f);this.cH.set(f.key,e);return e};ba.prototype.pw=function(f){var e=this;return this.Zb.Ap()?this.Zb.BI().then(function(h){for(var n=0;n<h.length;n++)if(h[n].range.includes(f))return h[n].promise.then(function(f){f.range.forEach(function(h){e.oU[h-
|
|
1]=!!f.ll});return f})},function(f){Object(ca.b)("load","Error loading annots xfdf from server: "+f);return{jr:Object(ma.b)(e.ca&&0<e.ca.length?e.ca[0].height:792)}}):this.RA?this.RA:this.RA=this.Zb.BI().then(function(f){e.nU=!!f.ll;return f},function(f){Object(ca.b)("load","Error loading annots xfdf from server: "+f);return{jr:Object(ma.b)(e.ca&&0<e.ca.length?e.ca[0].height:792)}})};ba.prototype.loadAsync=function(f,e,h){return Object(x.b)(this,void 0,void 0,function(){var n,r,w,z,y,aa,fa,da=this;
|
|
return Object(x.d)(this,function(ha){switch(ha.label){case 0:this.Zb=this.Tb=f,n=h.getPassword,r=null,w=this,z=function(y){return Object(x.b)(da,void 0,void 0,function(){var aa,fa;return Object(x.d)(this,function(x){switch(x.label){case 0:r=y,x.label=1;case 1:return x.Gg.push([1,3,,4]),[4,w.Zb.$ha(y)];case 2:return aa=x.ea(),null!=aa.pages&&(h.foundPassword=r,w.FS(aa,f,e,h)),[3,4];case 3:fa=x.ea();if("password not ok"===fa)n(z);else throw fa;return[3,4];case 4:return[2]}})})},this.ca=[],this.EB=h.forceClientSideInit,
|
|
this.pb=this,Object(ca.b)("load","Request Document"),this.Zb.Kja(function(){da.hda()}),ha.label=1;case 1:return ha.Gg.push([1,5,,6]),[4,this.Zb.raa()];case 2:return y=ha.ea(),y.rastOpts&&this.Oy(y.rastOpts),this.PE&=y.hasPDF,this.QE&=y.hasXOD,"tileScale"in y&&(this.vla=y.tileScale),[4,this.Zb.$la()];case 3:return ha.ea(),[4,this.Zb.Zx(h.extension)];case 4:return aa=ha.ea(),this.FS(aa,f,e,h),[3,6];case 5:return fa=ha.ea(),"password not ok"===fa?r?z(r):n(z):e(fa),[3,6];case 6:return[2]}})})};ba.prototype.FS=
|
|
function(f,e,h,n){Object(x.b)(this,void 0,void 0,function(){var r,w,z,y,aa,fa,da,ha,ba,ea,ka,qa,oa=this;return Object(x.d)(this,function(x){switch(x.label){case 0:return Object(ca.b)("load","Document response received."),f&&("pages"in f&&this.VG(f.pages),"bookmarks"in f&&(this.ag=[],this.m4(f.bookmarks))),this.pw(),[4,this.Yka(e)];case 1:r=x.ea();Object(ca.b)("load","Should we use client side rendering? "+r);if(!r)return[3,3];"object"===typeof r&&(n.rU=r);return[4,this.BR(this.id,e,n)];case 2:return w=
|
|
x.ea(),this.CZ(w),this.aF(),this.Yh=h(),this.Jx.resolve(this.Yh),[3,7];case 3:this.aF();this.Yh=h();this.Jx.resolve(this.Yh);if(!this.PE&&!this.QE)return[3,7];Object(ca.b)("load","Load client side document");this.Qy.resolve(!0);this.rd=new Promise(function(f){oa.addEventListener(ja.a.Events.DOCUMENT_COMPLETE,function(){f()},{once:!0})});return[4,this.Qy.promise];case 4:return x.ea(),[4,this.BR(this.id,e,n)];case 5:return w=x.ea(),z=Math.round(this.ca[0].height),this.CZ(w)?[4,this.Jx.promise]:[3,7];
|
|
case 6:y=x.ea();if(aa=y.Yd()){fa=this.ca.length;for(da=0;da<fa;da++)this.ca[da].ii(aa);ha=!1;ba=Math.round(this.ca[0].height);ea=(ba|0)===(z|0);ka=z/ba;qa=aa.ia.ve();if(fa!==qa.length){try{aa.ia.ba&&(aa.ia.Xx(),aa.ia.bE())}catch(bb){Object(ca.i)(bb)}Object(ca.g)("Page length mismatch - Server/Client: "+fa+"/"+qa.length+". There may have been an issue reading page info from the file. Please check your document for any signs of corruption.");return[2]}for(da=0;da<qa.length;da++)!ea&&aa.ia.sba(qa[da].fb-
|
|
1)&&(ha=!0,aa.ia.CE(qa[da].fb-1,qa[da].zoom*ka),aa.rw(qa[da].fb));aa.Ua.Cp();ea||aa.ia.Em(aa.ia.Nl*ka);ha||ea||(aa.nj(),aa.xa.wh());this.OE=!0;aa.trigger(pa.a.yf.uN)}x.label=7;case 7:return[2]}})})};ba.prototype.loadTextData=function(f,e){--f;f in this.Ic&&this.Ic[f].text?e(this.Ic[f].text):this.sJ(f,e)};ba.prototype.Lh=function(f,e){if(this.sk())throw Error('Client side document is not instantiated. Please pass the "forceClientSideInit: true" option into the WebViewer constructor or loadAsync.');
|
|
return this.uR.promise.then(function(h){return f(h).apply(h,e)})};ba.prototype.Gf=function(){return this.Lh(function(f){return f.Gf},arguments).catch(function(f){throw f;})};ba.prototype.Hf=function(){return this.Lh(function(f){return f.Hf},arguments)};ba.prototype.Vh=function(){return this.Lh(function(f){return f.Vh},arguments)};ba.prototype.yg=function(){return this.Lh(function(f){return f.yg},arguments)};ba.prototype.Rh=function(){return this.Lh(function(f){return f.Rh},arguments)};ba.prototype.oh=
|
|
function(){return this.Lh(function(f){return f.oh},arguments)};ba.prototype.Ie=function(){return this.Lh(function(f){return f.Ie},arguments)};ba.prototype.Fh=function(){return this.Lh(function(f){return f.Fh},arguments)};ba.prototype.getLayersArray=function(){return this.Lh(function(f){return f.getLayersArray},arguments)};ba.prototype.Bo=function(){return this.Lh(function(f){return f.Bo},arguments)};ba.prototype.Dl=function(){return this.Lh(function(f){return f.Dl},arguments)};ba.prototype.vl=function(f){return f};
|
|
ba.prototype.gJ=function(f,e,h){var n=this;if(f in this.ca){this.hea=f;this.Ic[f]=this.Ic[f]||new la.a(f,this);var r=this.Ic[f],w=null,x=null;r.Ec?w=Promise.resolve(r):(Object(ca.b)("load","webviewerServer(pgi: "+f+") request image"),w=void 0,w=0!==f?this.Qy.promise.then(function(){return n.Zb.jE(e,f)}):this.Zb.jE(e,f),w=w.then(function(e){r.er=new na.a(f,n.ca[f].width,n.ca[f].height,ra.a);n.ca[f].Tl=Object(ma.d)(e.name,n.GH);r.Ec=new ra.b;r.Jb[n.ca[f].Tl]={data:e.url,type:"jpg",name:n.ca[f].Tl};
|
|
return r},function(e){x=e;Object(ca.b)("load","webviewerServer(pgi "+f+") error requesting image: "+e);r.Jb.img_error={data:"",type:"jpg",name:"img_error"};r.Ec=new ra.b;r.Ec.create(f,"img_error",n.ca[f],null,null);return r}));var z=function(f,h,w,x){var z=r.er.fca(w,h);return z&&0===z.missing?Promise.resolve(z):n.Zb?n.Zb.bia(e,f,h,w,x).then(function(f){for(var e=f.tiles,h=0;h<e.length;h++)e[h]=ea(f.size,e[h],n.GH);return Promise.resolve(f)}):Promise.resolve(null)};w.then(function(r){Object(ca.b)("load",
|
|
"webviewerServer(pg "+f+") has image URL");var w=null,y=n.KL[f];n.KL[f]=y?y+1:1;r.Ec.create(f,n.ca[f].Tl,n.ca[f],z,function(f,h,x){if(e in n.hf&&!r.Ec.uq){var z=f.tiles,y=n.hf[e].Uh,aa=!("missing"in f),fa=[],da=0;for(;da<z.length;da++){var ha=z[da];var ja=ha.getName();w.Jb[ja]||(ha={data:ha.url,type:"jpg",name:ja},fa.push(ha),w.Jb[ja]=ha)}aa&&r.er.D4(z,f.z);r.Jb=JSON.parse(JSON.stringify(w.Jb));h.Gka(z);r.Ec=h.clone();y.yK(function(){n.Qy.resolve();x()},fa,!0);aa&&Object(ca.b)("load","Server took "+
|
|
f.runTime+"ms to generate "+z.length+" tiles")}});w=r.clone();n.Fq[e]=w.Ec;Object(ca.b)("load","webviewerServer(pg "+f+") calling resource load callback");h(x,w)},function(f){Object(ca.j)("Error creating resources for page: "+f);h(f)})}else h(Error("The page "+(f+1)+" does not exist."))};ba.prototype.sJ=function(f,e){var h=this;if(f in this.ca){this.Ic[f]=this.Ic[f]||new la.a(f,this);var n=this.Ic[f],r=null;r=n.text?Promise.resolve(n):h.Zb.aia(f).then(function(e){var r=new ka.a;r.Lx({m_Struct:e.struct,
|
|
m_Str:e.str,m_Offsets:e.offsets,m_Quads:e.quads,m_Ready:!0});h.ca[f].text=r;h.correctQuadsForPageRotation(f,r);n.text=r;return n},function(e){Object(ca.j)("Error retrieving text for page: "+e);e=new ka.a;e.Lx({m_Struct:[],m_Str:"",m_Offsets:[],m_Quads:[],m_Ready:!0});h.ca[f].text=e;n.text=e;return n});r.then(function(f){e(f.text)})}else e(Error("The page "+(f+1)+" does not exist."))};ba.prototype.rH=function(f,e){e in this.Fq&&(this.Qy.resolve(),this.Fq[e].cancel(),delete this.Fq[e])};ba.prototype.hda=
|
|
function(){this.Ic&&Object(ha.each)(this.Ic,function(f){f.er&&f.er.d6()})};ba.prototype.vq=function(){return!1};ba.prototype.jo=function(){return!1};ba.prototype.textSearch=function(f,e,h,n){return this.Ia.ou(this.za,f,e,h,n)};ba.prototype.extractXFDF=function(f){var e=this;return this.aF().then(function(){return e.pw(f[0]).then(function(f){return e.Zb.Ap()?{external:!0,xfdfString:f.jr,pages:f.range}:{external:!0,xfdfString:f.jr,pages:Object(ha.range)(1,e.ca.length+1)}})})};ba.prototype.j_=function(){var f=
|
|
this,e=this.Yh&&this.Yh.Yd();e&&this.Ey&&e.bq().forEach(function(e){var h=e.pageNum-1,n=new fa.a;n.Ri(f.ca[h].Pa);h=f.Ht[h].Pa.inverse();n.concat(h);e.quads=e.quads.map(function(f){var e=n.ra({x:f.x1,y:f.y1}),h=n.ra({x:f.x2,y:f.y2}),r=n.ra({x:f.x3,y:f.y3});f=n.ra({x:f.x4,y:f.y4});return{x1:e.x,y1:e.y,x2:h.x,y2:h.y,x3:r.x,y3:r.y,x4:f.x,y4:f.y}})})};ba.prototype.aF=function(){var f=this;if(this.Zb.Ap())return this.j_(),this.Zb.BI().then(function(e){for(var h=0;h<e.length;h++)e[h].promise.then(function(e){e=
|
|
e.jr;if(f.Ey&&!f.HB){e=qa.a.Sw(e);f.vG(e,!0);var h=[];f.Gt.forEach(function(e){var n=e.IsModified,r=e.ua()-1;if(!h[r]){var w=f.Ht[r].Pa;h[r]=new fa.a;h[r].Ri(f.ca[r].Pa);h[r].concat(w.inverse())}w=e.isImporting;e.isImporting=!0;e.Lm(h[r]);e.isImporting=w;e.IsModified=n});f.Gt=[];f.HB=!0}})});var e=this.pw();this.j_();return e.then(function(e){e=e.jr;if(f.Ey&&!f.HB){e=qa.a.Sw(e);f.vG(e,!0);var h=[];f.Gt.forEach(function(e){var n=e.IsModified,r=e.ua()-1;if(!h[r]){var w=f.Ht[r].Pa;h[r]=new fa.a;h[r].Ri(f.ca[r].Pa);
|
|
h[r].concat(w.inverse())}w=e.isImporting;e.isImporting=!0;e.Lm(h[r]);e.isImporting=w;e.IsModified=n});f.Gt=[];f.HB=!0}})};ba.prototype.mla=function(f){for(var e=Object.keys(f),h=0,n=e.length;h<n;h++){var r=e[h],w=f[r],x=this.qu[r];delete this.qu[r];this.qu[w]=x}};ba.prototype.US=function(f){return f.id||f.objnum+"-"+f.gennum};ba.prototype.UB=function(f){for(var e=[],h=0;h<f.length;h++){var n=f[h];n.appearanceString&&(this.bX.has(this.US(n))||e.push(n))}return e};ba.prototype.qw=function(f,e){return Object(x.b)(this,
|
|
void 0,void 0,function(){var h;return Object(x.d)(this,function(){h=this.UB(f);return!this.Zb.Ap()&&0<this.oH.length&&0===h.length?[2,Promise.resolve(this.oH)]:[2,this.getNewAppearanceDocument(h,e)]})})};ba.prototype.aX=function(f,e){var h=this,n=this,r={key:"",body:[]},w=0;for(f=this.UB(f);w<f.length;w++){var z=f[w],y=this.US(z);0<r.body.length&&r.body.at(-1).id===y||(r.key=r.key.concat(y+";"),r.body.push({id:y,aH:z.appearanceString}),this.bX.add(y))}return(w=this.bH.get(e))&&w.key===r.key?w.promise:
|
|
this.aaa(r).then(function(f){var w=h.bH.get(e);if(w&&w.key===r.key)return w.promise;w={key:r.key,promise:null};h.bH.set(e,w);w.promise=new Promise(function(e,h){return Object(x.b)(this,void 0,void 0,function(){var r,w;return Object(x.d)(this,function(x){switch(x.label){case 0:return r=new aa.b,[4,Object(da.c)(da.b.HttpPartRetriever,f.url)];case 1:return w=x.ea(),w.Eo(n.Zb.Ph()),[4,r.loadAsync(w,function(f){f?h(f):e(r)})];case 2:return x.ea(),[2]}})})});return w.promise})};ba.prototype.oaa=function(f,
|
|
e){return Object(x.b)(this,void 0,void 0,function(){var h=this;return Object(x.d)(this,function(n){switch(n.label){case 0:return f&&0<f.length?[4,this.aX(f,e)]:[3,2];case 1:n.ea(),n.label=2;case 2:return this.SA[e]?[2,this.SA[e]]:[2,this.pw(e).then(function(f){h.SA[e]=new Promise(function(e,n){return Object(x.b)(h,void 0,void 0,function(){var h,r;return Object(x.d)(this,function(w){switch(w.label){case 0:if(!f.ll||null==f.ll)return e(),[2];h=new aa.b;return[4,Object(da.c)(da.b.HttpPartRetriever,f.ll)];
|
|
case 1:return r=w.ea(),r.Eo(this.Zb.Ph()),[4,h.loadAsync(r,function(f){f?n(f):e(h)})];case 2:return w.ea(),[2]}})})});return h.SA[e]})]}})})};ba.prototype.Uba=function(f,e){return Object(x.b)(this,void 0,void 0,function(){var h,n=this;return Object(x.d)(this,function(){h=[];f&&0<f.length&&h.push(this.aX(f,e));this.Tr?h.push(this.Tr):h.push(this.pw(e).then(function(f){if(n.Tr)return n.Tr;n.Tr=new Promise(function(e,h){return Object(x.b)(n,void 0,void 0,function(){var n,r,w=this;return Object(x.d)(this,
|
|
function(x){switch(x.label){case 0:if(!f.ll||null==f.ll)return e(),[2];n=new aa.b;return[4,Object(da.c)(da.b.HttpPartRetriever,f.ll)];case 1:return r=x.ea(),r.Eo(this.Zb.Ph()),[4,n.loadAsync(r,function(f){f?h(f):(w.oH.push(n),e(n))})];case 2:return x.ea(),[2]}})})});return n.Tr}));return[2,Promise.all(h)]})})};ba.prototype.getNewAppearanceDocument=function(f,e){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(){return this.Zb.Ap()?[2,this.oaa(f,e)]:[2,this.Uba(f,e)]})})};
|
|
ba.prototype.Hs=function(){return!1};ba.prototype.Gs=function(){return[]};ba.prototype.getPageCount=function(){return this.ca.length};ba.prototype.mb=function(f){var e={};e.width=this.ca[f-1].width;e.height=this.ca[f-1].height;return e};ba.prototype.Dn=function(f){f in this.hf&&this.hf[f]&&delete this.hf[f];f in this.Fq&&delete this.Fq[f]};ba.prototype.unloadResources=function(){var f=this;Object.keys(ua.ci).forEach(function(f){(f.startsWith("tile_t")||f.startsWith("pageimg"))&&delete ua.ci[f]});
|
|
aa.b.prototype.unloadResources.call(this);return f.Zb&&f.Zb.h6().then(function(){f.Ic=[];f.Jm={};f.Fq={};f.pb=null;f.Ii&&f.Ii.unloadResources()})};ba.prototype.Pz=function(){};ba.prototype.dz=function(f){var e=new n.a(f.w,f.h),h=f.mtx;e.Pa=new fa.a;e.Pa.ab(h[0],h[1],h[2],h[3],h[4],h[5]);var r=this.An(e.Pa);e.Pa=this.Gla(h,{w:f.w,h:f.h});e.rotation=r;return e};ba.prototype.Gla=function(f,e){var h=new fa.a;h.ab(f[0],f[1],f[2],f[3],f[4],f[5]);f=this.Zr(h,e);h.ab(1,0,0,-1,-f.x1,f.y2);return h};ba.prototype.getBookmarks=
|
|
function(){return Promise.resolve(this.ag)};ba.prototype.getFileData=function(f){if(!this.sk())return this.Lh(function(f){return f.getFileData},arguments);if(this.Uv)return this.Uv.promise;var e=this.Uv=createPromiseCapability(),h=this,n={};!1===f.includeAnnotations&&(f.xfdfString=oa.b);if(f.xfdfString)n.annots=f.xfdfString;else return Promise.reject("Option xfdfString is an empty string for getFileData. Please skip this option if xfdf is not available.");this.TI(n).then(function(f){var n=new XMLHttpRequest;
|
|
n.open("GET",f.url,!0);n.withCredentials=!0;n.responseType="arraybuffer";n.setRequestHeader("X-Requested-With","XMLHttpRequest");n.onreadystatechange=function(){if(4===n.readyState){h.Uv=null;try{200===n.status?e.resolve(n.response):e.reject("Unable to download PDF data: "+n.status)}catch(ta){e.reject("Unable to download PDF data: "+ta)}}};n.send()},function(f){e.reject("Unable to download PDF data: "+f)});return e.promise};ba.prototype.Ks=function(){return this.TI({print:!0})};ba.prototype.vw=function(f){if(!this.sk())return null;
|
|
f=f||{};var e=this;return this.TI(f).then(function(h){var n=e.sT({downloadName:f.downloadName||f.filename,url:h.url});h.url=n;return Promise.resolve(h)})};ba.prototype.sT=function(f){var e=f.downloadName||f.filename,h=f.url.lastIndexOf(".pdf");e=e?"&dlname="+encodeURIComponent(e):"";return f.url.substring(0,0<h?h:f.url.length)+"?attach=pdf"+e};ba.prototype.Gl=function(f,e){if(this.Zb.Ap()){if(this.oU[e-1]||0<this.UB(f).length)return aa.b.prototype.Gl.call(this,f,e)}else if(this.nU||0<this.UB(f).length)return aa.b.prototype.Gl.call(this,
|
|
f,e);Object(ca.j)("WebViewer Server could not find annotation appearances on page "+e+".");return[]};ba.prototype.TI=function(f){var e=this;return this.Jx.promise.then(function(h){var n=h.Yd();return(n?n.vJ():Promise.resolve(e.Ja)).then(function(h){var r=createPromiseCapability(),w=createPromiseCapability();h?e.fU().toBlob(function(f){r.resolve(f)}):r.resolve(null);h=n?n.ta():null;h=f.annots||(h?h.Rp():null);f.annots=null;w.resolve(h);return Promise.all([w.promise,r.promise]).then(function(h){var n=
|
|
JSON.parse(JSON.stringify(f||{}));n.annots=h[0];n.watermark=h[1];return e.Zb.BT(n)})})})};ba.prototype.Dy=function(f,e){var h=this;f=ua.Annotations.$N.Tba(f,e);return h.Zb.BT(f).then(function(f){var e=h.sT(f);f.url=e;return f})};ba.prototype.qk=function(){return!1};ba.prototype.HT=function(f){return this.ca[f-1].links};return ba}(aa.b);ba.a=ia},function(ia,ba){ia=function(){function e(e,x,ha,ca){this.w=x;this.h=ha;this.wc=e;this.Km=ca;this.Au={}}e.prototype.d6=function(){this.Au={}};e.prototype.D4=
|
|
function(e,x){var ha=Math.ceil(this.w*x/this.Km)|0;this.Au[x]=this.Au[x]||[];x=this.Au[x];for(var ca=0;ca<e.length;ca++)x[e[ca].z_*ha+e[ca].w_]=e[ca]};e.prototype.fca=function(e,x){var ha=Math.max(Math.min(30,Math.round(3*x)|0),1),ca=ha/x;x=Math.ceil(this.w*ha/this.Km)|0;if(!(ha in this.Au))return null;var da=[],aa={tiles:da,p:this.wc,z:ha,missing:0},w=Math.floor(e[0]*ca/this.Km)|0,y=Math.ceil(e[2]*ca/this.Km)|0,n=Math.ceil(e[3]*ca/this.Km)|0;ha=this.Au[ha];for(ca=Math.floor(e[1]*ca/this.Km)|0;ca<
|
|
n;ca++)for(e=w;e<y;e++)ha[ca*x+e]?da.push(ha[ca*x+e]):aa.missing+=1;return aa};return e}();ba.a=ia},function(ia,ba,e){function ea(e,f){return new Promise(function(h,n){e.onload=function(){h({width:e.width,height:e.height})};e.onerror=function(){n(Error("Failed to load image"))};e.src=f})}var x=e(1);ia=e(93);var ha=e(23),ca=e(81),da=e(3),aa=e(68),w=e(19),y=e(55),n=e(7);e=function(e){function f(f){var h=e.call(this,f)||this;h.ag=[];h.ca=[];h.ho="";h.Jk=!1;h.zW=function(f){h.rd=Promise.resolve();h.je({type:n.a.Events.PAGES_UPDATED,
|
|
data:f})};return h}Object(x.c)(f,e);f.prototype.dr=function(){return Object(x.b)(this,void 0,void 0,function(){var f;return Object(x.d)(this,function(e){switch(e.label){case 0:if(this.Jk)return[3,2];this.Jk=!0;return[4,this.ZI()];case 1:f=e.ea(),this.ca=f.ba.ca,this.je({type:"changePageIds",data:{0:this.Gd.hk()[0]}}),e.label=2;case 2:return[2]}})})};f.prototype.Hf=function(f,e,h,n){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(r){switch(r.label){case 0:return[4,
|
|
this.dr()];case 1:return r.ea(),[2,this.Gd.Hf(f,e,h,n)]}})})};f.prototype.Ie=function(f,e){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(h){switch(h.label){case 0:return[4,this.dr()];case 1:return h.ea(),[2,this.Gd.Ie(f,e)]}})})};f.prototype.Vh=function(f,e){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(h){switch(h.label){case 0:return[4,this.dr()];case 1:return h.ea(),[2,this.Gd.Vh(f,e)]}})})};f.prototype.yg=function(f,e){return Object(x.b)(this,
|
|
void 0,void 0,function(){return Object(x.d)(this,function(h){switch(h.label){case 0:return[4,this.dr()];case 1:return h.ea(),[2,this.Gd.yg(f,e)]}})})};f.prototype.oh=function(f,e){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(h){switch(h.label){case 0:return[4,this.dr()];case 1:return h.ea(),[2,this.Gd.oh(f,e)]}})})};f.prototype.Rh=function(f,e,h){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(n){switch(n.label){case 0:return[4,
|
|
this.dr()];case 1:return n.ea(),[2,this.Gd.Rh(f,e,h)]}})})};f.prototype.Nh=function(f){return this.Jk?this.Gd.Nh(f):e.prototype.Nh.call(this,f)};f.prototype.hk=function(){return this.Jk?this.Gd.hk():e.prototype.hk.call(this)};f.prototype.getBookmarks=function(){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(){return this.Jk?[2,this.Gd.GI()]:[2,this.ag]})})};f.prototype.extractXFDF=function(f){return this.Jk?this.Gd.Ie(f):""};f.prototype.loadThumbnailAsync=function(f,
|
|
e){var h=this.ca[f-1],n=Object(w.k)(),r=150*n,x=h.width>h.height?r/h.width:r/h.height;x/=n;f=Object(aa.b)({pageNumber:f,getZoom:function(){return x},getPageRotation:function(){return da.f.E_0},drawComplete:function(f){e(f)},drawProgressive:function(){}});return this.loadCanvasAsync(f)};f.prototype.loadTextData=function(f,e){this.Jk?this.Gd.loadTextData(f,e):e("")};f.prototype.ZI=function(){return Object(x.b)(this,void 0,Promise,function(){var f,e,h,w,aa,ca;return Object(x.d)(this,function(r){switch(r.label){case 0:if(this.Gd)return[3,
|
|
5];f=da.l.AN.includes(this.iw);if(!f)return[3,2];e=document.createElement("canvas");e.width=this.pW;e.height=this.lW;h=e.getContext("2d");h.drawImage(this.Us,0,0,this.pW,this.lW);w=e.toDataURL("image/png");aa=this;return[4,Object(y.c)(w,{loadAsPDF:!0,extension:"png"})];case 1:return aa.Gd=r.ea(),[3,4];case 2:return ca=this,[4,Object(y.c)(this.ho,{loadAsPDF:!0,extension:this.iw})];case 3:ca.Gd=r.ea(),r.label=4;case 4:this.Gd.addEventListener(n.a.Events.PAGES_UPDATED,this.zW),r.label=5;case 5:return[2,
|
|
this.Gd]}})})};f.prototype.Gf=function(){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(f){switch(f.label){case 0:return[4,this.ZI()];case 1:return[2,f.ea().Gf()]}})})};f.prototype.getFileData=function(f){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(e){switch(e.label){case 0:return[4,this.ZI()];case 1:return[2,e.ea().getFileData(f)]}})})};f.prototype.getPageCount=function(){return this.Jk?this.Gd.Wb():this.ca.length};f.prototype.getLayersArray=
|
|
function(){return Object(x.b)(this,void 0,void 0,function(){return Object(x.d)(this,function(){return this.Jk?[2,this.Gd.Un()]:[2,[]]})})};f.prototype.getExtension=function(){return this.iw};f.prototype.loadAsync=function(f,e,h){var n=f.src;return Object(x.b)(this,void 0,void 0,function(){var f,r,w,z,y,aa,fa,da,ba;return Object(x.d)(this,function(x){switch(x.label){case 0:if("object"!==typeof n)return[3,1];this.ho=URL.createObjectURL(n);return[3,5];case 1:return h.customHeaders?[4,fetch(n,{headers:h.customHeaders})]:
|
|
[3,4];case 2:return f=x.ea(),[4,f.blob()];case 3:return r=x.ea(),this.ho=URL.createObjectURL(r),[3,5];case 4:this.ho=n,x.label=5;case 5:this.Us=new Image,this.iw=h.extension,x.label=6;case 6:return x.Gg.push([6,8,,9]),[4,ea(this.Us,this.ho)];case 7:return ba=x.ea(),w=ba.width,z=ba.height,this.pW=w,this.lW=z,[3,9];case 8:return y=x.ea(),e(y),[2];case 9:return aa=h.pageSizes,0<(null===aa||void 0===aa?void 0:aa.length)?(w=aa[0].width,z=aa[0].height):(fa=w/z,fa>612/792?(w=612,z=w/fa):(z=792,w=z*fa)),
|
|
da=new ca.a(w,z),da.Pa=new ha.a,da.Pa.ab(1,0,0,-1,0,z),da.rotation=0,this.ca.push(da),this.maxViewportZoom=this.zn(),e(),[2]}})})};f.prototype.loadCanvasAsync=function(f){return Object(x.b)(this,void 0,void 0,function(){var e,h,n,r,w,y,aa,ca,ha,ba,ea,qa;return Object(x.d)(this,function(x){switch(x.label){case 0:return e=f.drawComplete,h=f.drawProgressive,n=f.pageNumber,r=f.getPageRotation,w=f.getZoom,y=f.isInternalRender,(aa=f.print)?[4,this.dr()]:[3,2];case 1:x.ea(),x.label=2;case 2:if(this.Jk)return[2,
|
|
this.Gd.nt(f)];ca=this.Us;y||(ca=new Image,ca.src=this.ho);ha=this.ca[n-1];ba=ha.width;ea=ha.height;ca.style.width=ba*w()+"px";ca.style.height=ea*w()+"px";h(ca);qa=r();qa===da.f.E_0?(ca.style.transform=null,ca.style.transformOrigin=null,ca.style.left=null,ca.style.top=null):qa===da.f.E_90?(ca.style.transform="rotate(90deg)",ca.style.transformOrigin="0 0",ca.style.left=ea*w()+"px",ca.style.top=null):qa===da.f.E_180?(ca.style.transform="rotate(180deg)",ca.style.transformOrigin="0 0",ca.style.left=ba*
|
|
w()+"px",ca.style.top=ea*w()+"px"):qa===da.f.E_270&&(ca.style.transform="rotate(270deg)",ca.style.transformOrigin="0 0",ca.style.left=null,ca.style.top=ba*w()+"px");e(ca,n);return[2,"1"]}})})};f.prototype.unloadResources=function(){var f,e;URL.revokeObjectURL(this.ho);this.Us&&(this.Us.src="",this.Us.remove());null===(f=this.Gd)||void 0===f?void 0:f.removeEventListener(n.a.Events.PAGES_UPDATED,this.zW);null===(e=this.Gd)||void 0===e?void 0:e.Md()};return f}(ia.a);ba.a=e},function(ia,ba,e){var ea=
|
|
e(359),x=e(360),ha=e(361),ca=e(362),da=e(363),aa=e(243),w=e(364),y=e(365),n=e(366),h=e(367),f=e(368),r=e(369);ba.a=function(e){void 0===e&&(e=!1);e||(Object(ea.a)(),Object(x.a)(),Object(ha.a)(),Object(aa.a)(),Object(y.a)(),Object(n.a)(),Object(h.a)());Object(ca.a)();Object(aa.a)();Object(da.a)(e?self:window);Object(w.a)();Object(f.a)();Object(r.a)()}},function(ia,ba){ba.a=function(){"FileReader"in window&&!FileReader.prototype.readAsBinaryString&&(FileReader.prototype.readAsBinaryString=function(e){var ba=
|
|
"",x=this;x.content="";var ha=new FileReader;ha.onload=function(){for(var e=new Uint8Array(ha.result),da=e.byteLength,aa=0;aa<da;aa++)ba+=String.fromCharCode(e[aa]);x.content=ba;if(x.onload)x.onload();if(x.onloadend)x.onloadend()};ha.readAsArrayBuffer(e)})}},function(ia,ba){ba.a=function(){if(!String.fromCodePoint){var e=function(){try{var e={},x=Object.defineProperty;var aa=x(e,e,e)&&x}catch(w){}return aa}(),ba=String.fromCharCode,x=Math.floor,ha=function(){var e=[],da=-1,aa=arguments.length;if(!aa)return"";
|
|
for(var w="";++da<aa;){var y=Number(arguments[da]);if(!isFinite(y)||0>y||1114111<y||x(y)!==y)throw RangeError("Invalid code point: "+y);if(65535>=y)e.push(y);else{y-=65536;var n=(y>>10)+55296;y=y%1024+56320;e.push(n,y)}if(da+1===aa||16384<e.length)w+=ba.apply(void 0,e),e.length=0}return w};e?e(String,"fromCodePoint",{value:ha,configurable:!0,writable:!0}):String.fromCodePoint=ha}}},function(ia,ba){ba.a=function(){window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,
|
|
ba){ba=ba||window;for(var x=0;x<this.length;x++)e.call(ba,this[x],x,this)})}},function(ia,ba){ba.a=function(){String.prototype.startsWith||(String.prototype.startsWith=function(e,ba){return this.substr(!ba||0>ba?0:+ba,e.length)===e});String.prototype.endsWith||(String.prototype.endsWith=function(e,ba){if(void 0===ba||ba>this.length)ba=this.length;return this.substring(ba-e.length,ba)===e});String.prototype.pj=function(e,ba){ba=ba||"";return this.split(e).join(ba)};String.prototype.matchAll||(String.prototype.matchAll=
|
|
function(e){for(var ba=[],x;null!==(x=e.exec(this));)ba.push(x);return ba})}},function(ia,ba){ba.a=function(e){e.Uint8ClampedArray||(e.Uint8ClampedArray=e.Uint8Array);Array.prototype.fill||Object.defineProperty(Array.prototype,"fill",{value:function(e,x,ha){if(null==this)throw new TypeError("this is null or not defined");var ca=Object(this),da=ca.length>>>0;x>>=0;x=0>x?Math.max(da+x,0):Math.min(x,da);ha=void 0===ha?da:ha>>0;for(da=0>ha?Math.max(da+ha,0):Math.min(ha,da);x<da;)ca[x]=e,x++;return ca}})}},
|
|
function(ia,ba){ba.a=function(){"undefined"===typeof Object.defineProperties&&(Object.defineProperty=function(e,ba,x){x.get&&e.__defineGetter__(ba,x.get);x.set&&e.__defineSetter__(ba,x.set)},Object.defineProperties=function(e,ba){Object.keys(ba).forEach(function(x){ba.hasOwnProperty(x)&&Object.defineProperty(e,x,ba[x])})})}},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(23);ba.a=function(){function e(f,e,h){function n(f,e){var h=e<<1;return 128>e?f*(h+(f*(255-h)>>8))>>8:f*(511-h)+Math.sqrt(f<<
|
|
8)*(h-255)>>8}function r(f,e){return 128>f?f*e>>7:255-((255-e)*(255-f)>>7)}function w(f,e){return 255===e&&0===f?255:Math.min(255,(f<<8)/(255-e))}function x(f,e){return 255===e&&0===f?0:255-Math.min(255,(255-f<<8)/e)}function y(f,e,h){return{r:.299*f+.587*e+.114*h,te:-.1687*f-.3313*e+.5*h,ge:.5*f-.4187*e-.0813*h}}function aa(f,e,h){return{r:f+1.402*h,te:f-.3441*e-.7141*h,ge:f+1.772*e}}function fa(f,e,h){f=y(f,e,h);return{h:Math.atan2(f.te,f.ge),s:Math.sqrt(f.te*f.te+f.ge*f.ge),Py:f.r}}function da(f,
|
|
e,h){return aa(h,e*Math.sin(f),e*Math.cos(f))}var ca={};for(ha in z)z.hasOwnProperty(ha)&&(ca[ha]=h&&h[ha]||z[ha]);"auto"===ca.width&&(ca.width=this.canvas.width);"auto"===ca.height&&(ca.height=this.canvas.height);ca.width=Math.min(ca.width,this.canvas.width-ca.qZ,f.canvas.width-ca.x);ca.height=Math.min(ca.height,this.canvas.height-ca.rZ,f.canvas.height-ca.y);var ha=this.getImageData(ca.qZ,ca.rZ,ca.width,ca.height);h=f.getImageData(ca.x,ca.y,ca.width,ca.height);ha=ha.data;for(var ba=h.data,ja,ea,
|
|
ka=ba.length,ia,Fa,Ga,Ba,Ia,Ja,za,xa,Ka,ta,Ha,Na,Ra,Ma,wa=0;wa<ka;wa+=4)if(ja=ha[wa+3]/255,ea=ba[wa+3]/255,za=ja+ea-ja*ea,ba[wa+3]=255*za,0!==ja)if(0===ea)ba[wa]=ha[wa],ba[wa+1]=ha[wa+1],ba[wa+2]=ha[wa+2];else{xa=ba[wa];Ka=ba[wa+1];ta=ba[wa+2];Ha=ha[wa];Na=ha[wa+1];Ra=ha[wa+2];ia=Ha/255*ja;Ba=xa/255*ea;Fa=Na/255*ja;Ia=Ka/255*ea;Ga=Ra/255*ja;Ja=ta/255*ea;Ma=255/za;za=ea*ja;var Pa=ea-za,Qa=ja-za,Oa=void 0,Ta=void 0;Oa=void 0;switch(e){case "normal":case "src-over":ba[wa]=(ia+Ba-Ba*ja)*Ma;ba[wa+1]=(Fa+
|
|
Ia-Ia*ja)*Ma;ba[wa+2]=(Ga+Ja-Ja*ja)*Ma;break;case "screen":ba[wa]=(ia+Ba-ia*Ba)*Ma;ba[wa+1]=(Fa+Ia-Fa*Ia)*Ma;ba[wa+2]=(Ga+Ja-Ga*Ja)*Ma;break;case "multiply":ba[wa]=(ia*Ba+ia*(1-ea)+Ba*(1-ja))*Ma;ba[wa+1]=(Fa*Ia+Fa*(1-ea)+Ia*(1-ja))*Ma;ba[wa+2]=(Ga*Ja+Ga*(1-ea)+Ja*(1-ja))*Ma;break;case "difference":ba[wa]=(ia+Ba-2*Math.min(ia*ea,Ba*ja))*Ma;ba[wa+1]=(Fa+Ia-2*Math.min(Fa*ea,Ia*ja))*Ma;ba[wa+2]=(Ga+Ja-2*Math.min(Ga*ea,Ja*ja))*Ma;break;case "src-in":za=ja*ea;Ma=255/za;ba[wa]=ia*ea*Ma;ba[wa+1]=Fa*ea*Ma;
|
|
ba[wa+2]=Ga*ea*Ma;ba[wa+3]=255*za;break;case "plus":case "add":ba[wa]=Math.min(ia+Ba,1)*Ma;ba[wa+1]=Math.min(Fa+Ia,1)*Ma;ba[wa+2]=Math.min(Ga+Ja,1)*Ma;break;case "overlay":ba[wa]=za*r(xa,Ha)+Pa*xa+Qa*Ha;ba[wa+1]=za*r(Ka,Na)+Pa*Ka+Qa*Na;ba[wa+2]=za*r(ta,Ra)+Pa*ta+Qa*Ra;break;case "hard-light":ba[wa]=za*r(Ha,xa)+Pa*xa+Qa*Ha;ba[wa+1]=za*r(Na,Ka)+Pa*Ka+Qa*Na;ba[wa+2]=za*r(Ra,ta)+Pa*ta+Qa*Ra;break;case "color-dodge":case "dodge":ba[wa]=za*w(xa,Ha)+Pa*xa+Qa*Ha;ba[wa+1]=za*w(Ka,Na)+Pa*Ka+Qa*Na;ba[wa+2]=
|
|
za*w(ta,Ra)+Pa*ta+Qa*Ra;break;case "color-burn":case "burn":ba[wa]=za*x(xa,Ha)+Pa*xa+Qa*Ha;ba[wa+1]=za*x(Ka,Na)+Pa*Ka+Qa*Na;ba[wa+2]=za*x(ta,Ra)+Pa*ta+Qa*Ra;break;case "darken":case "darker":ba[wa]=za*(xa<Ha?xa:Ha)+Pa*xa+Qa*Ha;ba[wa+1]=za*(Ka<Na?Ka:Na)+Pa*Ka+Qa*Na;ba[wa+2]=za*(ta<Ra?ta:Ra)+Pa*ta+Qa*Ra;break;case "lighten":case "lighter":ba[wa]=(ia<Ba?Ba:ia)*Ma;ba[wa+1]=(Fa<Ia?Ia:Fa)*Ma;ba[wa+2]=(Ga<Ja?Ja:Ga)*Ma;break;case "exclusion":ba[wa]=(Ba+ia-2*Ba*ia)*Ma;ba[wa+1]=(Ia+Fa-2*Ia*Fa)*Ma;ba[wa+2]=
|
|
(Ja+Ga-2*Ja*Ga)*Ma;break;case "soft-light":ba[wa]=za*n(xa,Ha)+Pa*xa+Qa*Ha;ba[wa+1]=za*n(Ka,Na)+Pa*Ka+Qa*Na;ba[wa+2]=za*n(ta,Ra)+Pa*ta+Qa*Ra;break;case "luminosity":Oa=y(xa,Ka,ta);Ta=y(Ha,Na,Ra);Oa=aa(Ta.r,Oa.te,Oa.ge);ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;case "color":Oa=y(xa,Ka,ta);Ta=y(Ha,Na,Ra);Oa=aa(Oa.r,Ta.te,Ta.ge);ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;case "hue":Oa=fa(xa,Ka,ta);Ta=
|
|
fa(Ha,Na,Ra);Oa=da(Ta.h,Oa.s,Oa.Py);ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;case "saturation":Oa=fa(xa,Ka,ta);Ta=fa(Ha,Na,Ra);Oa=da(Oa.h,Ta.s,Oa.Py);ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;case "lighter-color":Oa=0<2.623*(xa-Ha)+5.15*(Ka-Na)+ta-Ra?{r:xa,te:Ka,ge:ta}:{r:Ha,te:Na,ge:Ra};ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;case "darker-color":Oa=
|
|
0>2.623*(xa-Ha)+5.15*(Ka-Na)+ta-Ra?{r:xa,te:Ka,ge:ta}:{r:Ha,te:Na,ge:Ra};ba[wa]=za*Oa.r+Pa*xa+Qa*Ha;ba[wa+1]=za*Oa.te+Pa*Ka+Qa*Na;ba[wa+2]=za*Oa.ge+Pa*ta+Qa*Ra;break;default:ja=wa/4%this.canvas.width,ea=Math.floor(wa/4/this.canvas.width),ja=4>ja%8&&4>ea%8||3<ja%8&&3<ea%8,ba[wa]=ba[wa+3]=255,ba[wa+1]=ja?255:0,ba[wa+2]=ja?0:255}}f.putImageData(h,ca.x,ca.y)}!HTMLCanvasElement.prototype.toBlob&&HTMLCanvasElement.prototype.msToBlob&&(HTMLCanvasElement.prototype.toBlob=function(f){f(HTMLCanvasElement.prototype.msToBlob.call(this))});
|
|
var da=CanvasRenderingContext2D.prototype,aa=CanvasRenderingContext2D.prototype.transform,w=CanvasRenderingContext2D.prototype.translate,y=CanvasRenderingContext2D.prototype.scale,n=CanvasRenderingContext2D.prototype.rotate,h=CanvasRenderingContext2D.prototype.setTransform,f=CanvasRenderingContext2D.prototype.save,r=CanvasRenderingContext2D.prototype.restore;Object(ea.extend)(da,{mq:function(){var f=this.canvas.tx;f&&f.length||(f=this.canvas.tx=[new ha.a(1,0,0,1,0,0)]);return f[f.length-1]},getTransform:function(){var f=
|
|
new ha.a;f.Ri(this.mq());f.a=f.m_a;f.b=f.m_b;f.c=f.m_c;f.d=f.m_d;f.e=f.m_h;f.f=f.m_v;return f},eja:function(f){this.canvas.tx[this.canvas.tx.length-1]=f},transform:function(f,e,h,n,r,w){this.mq().concat(new ha.a(f,e,h,n,r,w));return aa.apply(this,arguments)},translate:function(f,e){this.mq().concat(new ha.a(1,0,0,1,f,e));return w.apply(this,arguments)},scale:function(f,e){this.mq().concat(new ha.a(f,0,0,e,0,0));return y.apply(this,arguments)},rotate:function(f){this.mq().concat(new ha.a.zo(-1*f));
|
|
return n.apply(this,arguments)},setTransform:function(f,e,n,r,w,x){this.mq();this.eja(new ha.a(f,e,n,r,w,x));return h.apply(this,arguments)},save:function(){var e=this.mq(),h=new ha.a;h.Ri(e);this.canvas.tx.push(h);return f.apply(this,arguments)},restore:function(){var f=this.canvas.tx;f&&f.length&&f.pop();return r.apply(this,arguments)},$Q:function(){},fZ:function(){return!1}});Object.defineProperties(da,{w:{set:function(f){this.lineWidth=f}},c:{set:function(f){this.lineCap=f}},s:{set:function(f){this.strokeStyle=
|
|
f}},f:{set:function(f){this.fillStyle=f}},a:{set:function(f){this.globalAlpha=f}},n:{set:function(f){this.font=f}},i:{set:function(f){this.miterLimit=f}},j:{set:function(f){this.lineJoin=f}},g:{set:function(f){this.globalCompositeOperation=f}}});Object(ea.extend)(da,{S:function(){"undefined"===typeof this.Tq&&(this.Tq=0);this.Tq++;this.save()},r:function(){this.Tq--;this.restore()},t:da.transform,T:da.translate,ro:da.rotate,L:da.createLinearGradient,R:da.createRadialGradient,P:da.createPattern,b:da.beginPath,
|
|
z:da.closePath,F:da.fill,X:da.stroke,C:da.clip,M:da.moveTo,m:da.measureText,l:da.lineTo,q:da.quadraticCurveTo,B:da.bezierCurveTo,x:da.fillText,fillTextCustom:function(){},xc:function(){},tm:function(){},cgb:function(){},cge:function(){},xw:function(f,e,h){this.fillText(f,e,h)},xcw:function(){},I:function(f){"undefined"!==typeof f&&this.drawImage.apply(this,arguments)},Z:da.setTransform,d:da.getImageData,D:da.putImageData,e:da.scale,cr:function(f,e,h,n){this.beginPath();this.rect(f,e,h,n);this.clip()},
|
|
createCanvas:function(){return document.createElement("canvas")}});da="undefined"===typeof window.CanvasGradient?document.createElement("canvas").getContext("2d").createLinearGradient(0,0,0,0).__proto__:CanvasGradient.prototype;Object(ea.extend)(da,{C_:da.addColorStop});var z={x:0,y:0,qZ:0,rZ:0,width:"auto",height:"auto"};(function(f){if(!f||"function"!==typeof f.getImageData)return Object(x.g)("context blender called without a valid context prototype");Object.defineProperty(f,"bO",{value:e});for(var h=
|
|
e.pqa="normal src-over screen multiply difference src-in plus add overlay hardlight colordodge dodge colorburn burn darken darker lighten lighter exclusion softlight luminosity color hue saturation lightercolor darkercolor".split(" "),n=e.supports={},r=h.length;r--;)n[h[r]]=!0;e.Ena={"src-over":"normal",Ft:"add",soa:"colordodge",Mna:"colorburn",eoa:"darken",rpa:"lighten"};return f})(CanvasRenderingContext2D&&CanvasRenderingContext2D.prototype)}},function(ia,ba){ba.a=function(){Object.defineProperty(TextMetrics.prototype,
|
|
"W",{get:function(){return this.width}})}},function(ia,ba){ba.a=function(){var e="bubbles touches targetTouches changedTouches ctrlKey metaKey shiftKey".split(" "),ba="bubbles clientX clientY screenX screenY pageX pageY ctrlKey metaKey shiftKey".split(" ");(new (function(){function x(){}x.prototype.init=function(){this.gu=null;this.ix=!1;this.mga();document.addEventListener("mousedown",this.fW.bind(this));document.addEventListener("mouseup",this.zk.bind(this));document.addEventListener("touchstart",
|
|
this.fW.bind(this),{passive:!1});document.addEventListener("touchend",this.zk.bind(this));document.addEventListener("touchcancel",this.cfa.bind(this))};x.prototype.fW=function(e){this.bW(e);!e.touches&&1!==e.which||this.ix||(this.gu=e,this.ix=!0)};x.prototype.zk=function(e){this.bW(e);if(this.ix){var x=Math.max(e.pageX-this.gu.pageX,e.pageY-this.gu.pageY);400>e.timeStamp-this.gu.timeStamp&&10>x&&(!this.gu.touches||1===this.gu.touches.length)&&(x=this.M6(e),e.target.dispatchEvent(x));this.ix=!1}};
|
|
x.prototype.cfa=function(e){e.preventDefault();this.ix=!1};x.prototype.mga=function(){try{new MouseEvent("test")}catch(ca){var e=function(e,x){x=x||{bubbles:!1,cancelable:!1};var w=document.createEvent("MouseEvent");w.initMouseEvent(e,x.bubbles,x.cancelable,window,0,x.screenX||0,x.screenY||0,x.clientX||0,x.clientY||0,x.ctrlKey||!1,x.altKey||!1,x.shiftKey||!1,x.metaKey||!1,x.button||0,x.relatedTarget||null);return w};e.prototype=Object.create(Event.prototype);window.MouseEvent=e}};x.prototype.M6=function(x){var ca=
|
|
{};if(x.touches){e.forEach(function(e){ca[e]=x[e]});var da=new TouchEvent("tap",ca)}else ba.forEach(function(e){ca[e]=x[e]}),da=new MouseEvent("tap",ca);da.preventDefault=function(){x.preventDefault()};return da};x.prototype.bW=function(e){if(e.touches)try{var x=e.changedTouches[0];e.pageX=x.pageX;e.pageY=x.pageY}catch(da){}};return x}())).init()}},function(ia,ba){ba.a=function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(e,ba){void 0===e&&(e=0);void 0===ba&&(ba=this.byteLength);
|
|
e=Math.floor(e);ba=Math.floor(ba);0>e&&(e+=this.byteLength);0>ba&&(ba+=this.byteLength);e=Math.min(Math.max(0,e),this.byteLength);ba=Math.min(Math.max(0,ba),this.byteLength);if(0>=ba-e)return new ArrayBuffer(0);var x=new ArrayBuffer(ba-e),ha=new Uint8Array(x);e=new Uint8Array(this,e,ba-e);ha.set(e);return x})}},function(ia,ba,e){var ea=e(17);ba.a=function(){ea.i&&function(e){Selection.prototype.removeAllRanges=function(){0<this.rangeCount&&0<this.getRangeAt(0).getClientRects().length&&e.apply(this)}}(Selection.prototype.removeAllRanges)}},
|
|
function(ia,ba,e){var ea=e(1),x=e(19),ha=e(65);e.n(ha);ba.a=function(e){return Object(ea.b)(void 0,void 0,void 0,function(){var da,aa,w;return Object(ea.d)(this,function(y){switch(y.label){case 0:return da=e.field,aa=e.container,[4,Object(x.r)()];case 1:return w=y.ea(),[2,new w.default({field:da,firstDay:1,onSelect:function(n){e.onClick(ha(n).format(e.format))},bound:!1,container:aa})]}})})}},function(ia,ba,e){var ea=e(1);ba.a=function(){return Object(ea.b)(void 0,void 0,void 0,function(){var x;return Object(ea.d)(this,
|
|
function(ba){switch(ba.label){case 0:return[4,e.e(23).then(e.bind(null,452))];case 1:return x=ba.ea().default,[2,new x]}})})}},function(ia,ba,e){function ea(e){var ca=e.PDFNet,da=e.Actions,aa=e.Annotations,w=e.Math,y=e.Tools;e=["Core","CoreControl"];ca&&(x.PDFNet&&(x.PDFNet=ca),e.forEach(function(e){x[e]&&x[e].PDFNet&&(x[e].PDFNet=ca)}));da&&(x.Actions&&(x.Actions=da),e.forEach(function(e){x[e]&&x[e].Actions&&(x[e].Actions=da)}));aa&&(x.Annotations&&(x.Annotations=aa),e.forEach(function(e){x[e]&&
|
|
x[e].Annotations&&(x[e].Annotations=aa)}));w&&(x.Math&&(x.Math=w),e.forEach(function(e){x[e]&&x[e].Math&&(x[e].Math=w)}));y&&(x.Tools&&(x.Tools=y),e.forEach(function(e){x[e]&&x[e].Tools&&(x[e].Tools=y)}))}e.d(ba,"a",function(){return ea});var x=window},function(ia,ba,e){function ea(e,ba){e.prototype.mW||(e.prototype.mW=e.prototype.onTriggered);var x=e.prototype.mW;e.prototype.onTriggered=function(e,aa,w){ba?ba.call(this,e,aa,w,{action:this,originalOnTriggered:x.bind(this)}):x.apply(this,arguments)}}
|
|
e.d(ba,"a",function(){return ea})},function(ia,ba,e){var ea=e(14);ba.a={rotate:function(e){var x=this.getRotatedAnnotationBoundingBoxRect(ea.a.tb(this.Rotation)-e);this.X=x.x1;this.Y=x.y1;this.Width=x.x2-x.x1;this.Height=x.y2-x.y1;this.Rotation=ea.a.kk(ea.a.yk(ea.a.tb(this.Rotation)-e))},getUnrotatedDimensions:function(e){void 0===e&&(e=this.Sa());return ea.a.Qw(e,ea.a.tb(this.Rotation))},getRotatedAnnotationBoundingBoxRect:function(e){void 0===e&&(e=ea.a.tb(this.Rotation));return ea.a.Kw(this.getUnrotatedDimensions(),
|
|
e,this.oe)},serialize:function(e,ba){this.Db("trn-rotation",this.Rotation);return Annotations.Qm.prototype.serialize.apply(this,arguments)},deserialize:function(e){Annotations.Qm.prototype.deserialize.apply(this,arguments);this.Rotation=this.ac("trn-rotation")}}},function(ia,ba,e){var ea=e(14);ba.a={rotate:function(e){this.setPath(ea.a.vC(this.getPath(),e,this.oe));this.Rotation=ea.a.kk(ea.a.yk(ea.a.tb(this.Rotation)-e));this.adjustRect()},adjustRect:function(){var e=this.getPath()[0].x,ba=this.getPath()[0].y,
|
|
ca=this.getPath()[0].x,da=this.getPath()[0].y;this.getPath().forEach(function(x){x.x<e&&(e=x.x);x.x>ca&&(ca=x.x);x.y<ba&&(ba=x.y);x.y>da&&(da=x.y)});this.X=e;this.Y=ba;this.Width=ca-e;this.Height=da-ba},serialize:function(e,ba){this.Db("trn-path",JSON.stringify(this.getPath()));this.Db("trn-rotation",this.Rotation);return Annotations.Qm.prototype.serialize.apply(this,arguments)},deserialize:function(e){Annotations.Qm.prototype.deserialize.apply(this,arguments);this.setPath(JSON.parse(this.ac("trn-path")));
|
|
this.Rotation=this.ac("trn-rotation")}}},function(ia,ba,e){function ea(f){ca(f,{vE:"setCustomHeaders",Eo:"setWithCredentials",FY:"setErrorCallback"})}function x(f){ca(f,{on:"on",off:"off",hW:"one",trigger:"trigger",addEventListener:"addEventListener",removeEventListener:"removeEventListener"})}function ha(f,e){Object.keys(e).forEach(function(h){f[e[h]]=f[h]})}function ca(f,e){Object.keys(e).forEach(function(h){f.prototype[e[h]]=f.prototype[h]})}e.d(ba,"a",function(){return x});e.d(ba,"b",function(){return ea});
|
|
var da=e(2),aa=e(31),w=e(71),y=e(33),n=e(11),h=e(110),f=e(28),r=e(131),z=e(62),fa=e(123),ka=e(38),ja=e(125),pa=e(93),ma=e(81),la=e(7),na=e(370),ra=e(78),sa=e(9),Da=e(371),qa=e(32),va=e(14),oa=e(30),ua=e(4),Ca=e(372),ya=e(8),Ea=e(35),Aa=e(107),Fa=e(34),Ga=e(373),Ba=e(219),Ia=e(244),Ja=e(22),za=e(76),xa=e(5),Ka=e(25),ta=e(66),Ha=e(41),Na=e(48),Ra=e(132),Ma=e(6),wa=e(106),Pa=e(162),Qa=e(37),Oa=e(59),Ta=e(58),Nb=e(118),sc=e(10),bb=e(29),lb=e(56),Tb=e(161),bc=e(218),Fb=e(146),Za=e(18),Hc=e(55),Gb=e(3),
|
|
Ub=e(108),Ic=e(46),Vb=e(49),cd=e(138),Sb=e(17),tb=e(75),Jc=e(15),Wb=e(103),dd=e(214),xb=e(79),pd=e(374),Pd=e(375),zc=e(175),Wc=e(174),Ac=e(63),qd=e(12);(function(e){e.Core=function(){};e.Core.PDFNet||(e.Core.PDFNet=function(){},e.Core.PDFNet.hasFullAPI=!1,e.Core.PDFNet.hasFullApi=!1,window.Proxy&&(e.Core.PDFNet=new window.Proxy(e.Core.PDFNet,{get:function(f,e){if(e in f)return f[e];if(!Object(bb.k)())throw Error('Full version of PDFNetJS has not been loaded. Please pass the "fullAPI: true" option in your WebViewer constructor to use the PDFNet APIs.');
|
|
}})));e.Core.mimeTypeToExtension=zc.a;e.Core.getPageMatrix=tb.a;e.Core.disableLogs=da.e;e.Core.enableWorkerLogs=da.f;e.Core.getCanvasManager=f.a;e.Core.setWorkerPath=e.Ya.Kka;e.Core.getWorkerPath=e.Ya.ae;e.Core.setPDFWorkerPath=bb.p;e.Core.getPDFWorkerPath=bb.g;e.Core.setPDFResourcePath=bb.o;e.Core.getPDFResourcePath=bb.f;e.Core.createDatePicker=na.a;e.Core.setPDFAsmPath=bb.n;e.Core.getPDFAsmPath=bb.e;e.Core.createDocument=Hc.c;e.Core.setBasePath=Hc.e;e.Core.setLocalWorkerPath=bb.m;e.Core.getLocalWorkerPath=
|
|
bb.d;e.Core.setOfficeWorkerPath=Ta.s;e.Core.getOfficeWorkerPath=Ta.g;e.Core.setOfficeResourcePath=Ta.r;e.Core.getOfficeResourcePath=Ta.f;e.Core.setResourcesPath=Za.e;e.Core.getResourcesPath=Za.c;e.Core.setExternalPath=bb.l;e.Core.getExternalPath=bb.c;e.Core.setOfficeAsmPath=Ta.q;e.Core.getOfficeAsmPath=Ta.e;e.Core.setLegacyOfficeWorkerPath=Ta.p;e.Core.getLegacyOfficeWorkerPath=Ta.d;e.Core.setLegacyOfficeResourcePath=Ta.o;e.Core.getLegacyOfficeResourcePath=Ta.c;e.Core.setLegacyOfficeAsmPath=Ta.n;e.Core.getLegacyOfficeAsmPath=
|
|
Ta.b;e.Core.setAdvancedImageScaling=e.Ya.xY;e.Core.getAllowedFileExtensions=e.Ya.S$;e.Core.setAllowedFileExtensions=e.Ya.Nia;e.Core.setProgressiveTime=e.Ya.eka;e.Core.preloadPDFWorker=Qa.g;e.Core.initPDFWorkerTransports=Qa.f;e.Core.forceBackendType=lb.c;e.Core.getDefaultBackendType=lb.e;e.Core.getDefaultPdfBackendType=lb.e;e.Core.getCurrentPDFBackendType=lb.d;e.Core.getCurrentOfficeBackendType=Ta.a;e.Core.enableOptimizedWorkers=lb.b;e.Core.disableOptimizedWorkers=lb.a;e.Core.resetWorker=Qa.i;e.Core.resetOfficeWorker=
|
|
Ta.m;e.Core.resetLegacyOfficeWorker=Ta.l;e.Core.isDemoMode=za.d;e.Core.setEmscriptenHeapSize=Qa.k;e.Core.setCustomFontURL=Qa.j;e.Core.disableEmbeddedJavaScript=e.Ya.F7;e.Core.enableFullPDF=bb.b;e.Core.disableFullPDF=bb.a;e.Core.isFullPDFEnabled=bb.k;e.Core.preloadOfficeWorker=Ta.k;e.Core.initOfficeWorkerTransports=Ta.i;e.Core.preloadLegacyOfficeWorker=Ta.j;e.Core.initLegacyOfficeWorkerTransports=Ta.h;e.Core.setWorkerTransportPromise=Qa.l;e.Core.syncNamespaces=Ca.a;e.Core.getVersion=bc.b;e.Core.getBuild=
|
|
bc.a;e.Core.BackendTypes={};e.Core.BackendTypes.ASM=Ac.b.G_;e.Core.BackendTypes.WASM=Ac.b.a2;e.Core.BackendTypes.JS_WORKER=Ac.b.w0;e.Core.BackendTypes.THREADED_WASM=Ac.b.S1;e.Core.Search=function(){};e.Core.Search.Mode=function(){};e.Core.Search.Mode.CASE_SENSITIVE=Ja.f.Gu;e.Core.Search.Mode.WHOLE_WORD=Ja.f.sz;e.Core.Search.Mode.SEARCH_UP=Ja.f.rr;e.Core.Search.Mode.PAGE_STOP=Ja.f.mz;e.Core.Search.Mode.HIGHLIGHT=Ja.f.jz;e.Core.Search.Mode.AMBIENT_STRING=Ja.f.cz;e.Core.Search.Mode.WILD_CARD=Ja.f.Qu;
|
|
e.Core.Search.Mode.REGEX=Ja.f.oz;e.Core.Search.ResultCode=Ja.e;e.Core.Search.ResultCode.DONE=Ja.e.DONE;e.Core.Search.ResultCode.PAGE=Ja.e.pr;e.Core.Search.ResultCode.FOUND=Ja.e.To;e.Core.getWebViewerServerAnnotationManager=Da.a;e.Core.ContentEdit=Nb.a;e.Core.ContentEdit.Types=Wc.a;e.Core.ContentEdit.Events=sc.d;e.Core.ContentEdit.preloadWorker=Nb.d;e.Core.ContentEdit.updateDocumentContent=Nb.i;e.Core.ContentEdit.getDocumentContent=Nb.c;ha(e.Core.ContentEdit,{on:"on",off:"off",hW:"one",trigger:"trigger",
|
|
addEventListener:"addEventListener",removeEventListener:"removeEventListener"});e.Core.Encryption={};e.Core.Encryption.decrypt=r.a;e.Core.Encryption.decryptSynchronous=r.b;e.Core.Bookmark=ra.a;e.Core.Bookmark.prototype.getName=ra.a.prototype.getName;e.Core.Bookmark.prototype.getVerticalPosition=ra.a.prototype.qca;e.Core.Bookmark.prototype.getHorizontalPosition=ra.a.prototype.Taa;e.Core.Bookmark.prototype.getPageNumber=ra.a.prototype.ua;e.Core.Bookmark.prototype.getURL=ra.a.prototype.oca;e.Core.Bookmark.prototype.getParent=
|
|
ra.a.prototype.getParent;e.Core.Bookmark.prototype.getChildren=ra.a.prototype.LI;e.Core.Bookmark.prototype.getIndex=ra.a.prototype.getIndex;e.Core.Bookmark.prototype.isValid=ra.a.prototype.isValid;e.Core.Bookmark.prototype.getObjNum=ra.a.prototype.iba;e.Core.BaseDocument=pa.a;x(e.Core.BaseDocument);e.Core.BaseDocument.prototype.calculateBoundingBox=pa.a.prototype.Zr;e.Core.BaseDocument.prototype.calculateMaxViewportZoom=pa.a.prototype.zn;e.Core.BaseDocument.prototype.addPage=pa.a.prototype.w4;e.Core.BaseDocument.prototype.getPage=
|
|
pa.a.prototype.Ll;e.Core.BaseDocument.prototype.setPage=pa.a.prototype.Xja;e.Core.BaseDocument.prototype.forwardEvent=pa.a.prototype.je;e.Core.PageInfo=ma.a;e.Core.PageInfo.prototype.setFromPageData=ma.a.prototype.mM;e.Core.Document=la.a;e.Core.Document.registerDocumentType=la.a.It;e.Core.Document.unregisterDocumentType=la.a.Ila;e.Core.Document.prototype.getType=la.a.prototype.Ml;e.Core.Document.prototype.getFileSize=la.a.prototype.Laa;x(e.Core.Document);e.Core.Document.prototype.getTemplateKeys=
|
|
la.a.prototype.AC;e.Core.Document.prototype.applyTemplateValues=la.a.prototype.Ur;e.Core.Document.prototype.isWebViewerServerDocument=la.a.prototype.sk;e.Core.Document.prototype.getMetadata=la.a.prototype.getMetadata;e.Core.Document.prototype.getBookmarks=la.a.prototype.GI;e.Core.Document.prototype.getDestinations=la.a.prototype.Baa;e.Core.Document.prototype.getLayers=la.a.prototype.Voa;e.Core.Document.prototype.getLinks=la.a.prototype.Gs;e.Core.Document.prototype.loadThumbnailAsync=la.a.prototype.DV;
|
|
e.Core.Document.prototype.loadThumbnail=la.a.prototype.AK;e.Core.Document.prototype.includesThumbnails=la.a.prototype.qk;e.Core.Document.prototype.loadPageText=la.a.prototype.AV;e.Core.Document.prototype.refreshTextData=la.a.prototype.BL;e.Core.Document.prototype.getTextPosition=la.a.prototype.ZT;e.Core.Document.prototype.getTextByPageAndRect=la.a.prototype.bca;e.Core.Document.prototype.extractXFDF=la.a.prototype.SB;e.Core.Document.prototype.loadCanvasAsync=la.a.prototype.yV;e.Core.Document.prototype.loadCanvas=
|
|
la.a.prototype.nt;e.Core.Document.prototype.updateRasterizerOptions=la.a.prototype.Oy;e.Core.Document.prototype.pauseLoadCanvas=la.a.prototype.UD;e.Core.Document.prototype.resumeLoadCanvas=la.a.prototype.lE;e.Core.Document.prototype.cancelLoadCanvas=la.a.prototype.H5;e.Core.Document.prototype.cancelLoadThumbnail=la.a.prototype.Eh;e.Core.Document.prototype.unloadCanvasResources=la.a.prototype.tu;e.Core.Document.prototype.getPageInfo=la.a.prototype.mb;e.Core.Document.prototype.getPageMatrix=la.a.prototype.hc;
|
|
e.Core.Document.prototype.getPageCount=la.a.prototype.Wb;e.Core.Document.prototype.getPageRotation=la.a.prototype.ad;e.Core.Document.prototype.getPDFCoordinates=la.a.prototype.Oi;e.Core.Document.prototype.getXODCoordinates=la.a.prototype.FC;e.Core.Document.prototype.getViewerCoordinates=la.a.prototype.co;e.Core.Document.prototype.loadAsync=la.a.prototype.mt;e.Core.Document.prototype.unloadResources=la.a.prototype.Md;e.Core.Document.prototype.initOfflineDB=la.a.prototype.Xs;e.Core.Document.prototype.storeOffline=
|
|
la.a.prototype.Cy;e.Core.Document.prototype.isDownloaded=la.a.prototype.jo;e.Core.Document.prototype.getOfflineModeEnabled=la.a.prototype.Hs;e.Core.Document.prototype.setOfflineModeEnabled=la.a.prototype.Zq;e.Core.Document.prototype.enableOfflineMode=la.a.prototype.J9;e.Core.Document.prototype.disableOfflineMode=la.a.prototype.Q7;e.Core.Document.prototype.cancelOfflineModeDownload=la.a.prototype.Ev;e.Core.Document.prototype.getPrintablePDF=la.a.prototype.Ks;e.Core.Document.prototype.getFilename=la.a.prototype.UI;
|
|
e.Core.Document.prototype.getDownloadLink=la.a.prototype.vw;e.Core.Document.prototype.submitRedactions=la.a.prototype.Dy;e.Core.Document.prototype.getFileData=la.a.prototype.getFileData;e.Core.Document.prototype.insertPages=la.a.prototype.Hf;e.Core.Document.prototype.getPDFDoc=la.a.prototype.Gf;e.Core.Document.prototype.getLayersArray=la.a.prototype.Un;e.Core.Document.prototype.setLayersArray=la.a.prototype.Bo;e.Core.Document.prototype.setOverprintPreviewMode=la.a.prototype.AE;e.Core.Document.prototype.extractPDFNetLayersContext=
|
|
la.a.prototype.Dl;e.Core.Document.prototype.insertBlankPages=la.a.prototype.Rh;e.Core.Document.prototype.removePages=la.a.prototype.yg;e.Core.Document.prototype.movePages=la.a.prototype.Vh;e.Core.Document.prototype.rotatePages=la.a.prototype.oh;e.Core.Document.prototype.extractPages=la.a.prototype.Ie;e.Core.Document.prototype.mergeDocument=la.a.prototype.uD;e.Core.Document.prototype.cropPages=la.a.prototype.Fh;e.Core.Document.prototype.print=la.a.prototype.print;e.Core.Document.prototype.documentCompletePromise=
|
|
la.a.prototype.rd;e.Core.Document.prototype.getDocumentCompletePromise=la.a.prototype.mT;e.Core.Document.prototype.setWatermark=la.a.prototype.Do;e.Core.Document.prototype.requirePage=la.a.prototype.ym;e.Core.Document.prototype.getOfficeResources=la.a.prototype.Woa;e.Core.Document.prototype.enableColorSeparations=la.a.prototype.Al;e.Core.Document.prototype.disableColorSeparations=la.a.prototype.D7;e.Core.Document.prototype.getColorSeparations=la.a.prototype.jC;e.Core.Document.prototype.enableSeparation=
|
|
la.a.prototype.PB;e.Core.Document.prototype.isLinearized=la.a.prototype.Fda;e.Core.Document.prototype.getPages=la.a.prototype.Qb;e.Core.Document.prototype.getDocumentId=la.a.prototype.Bs;e.Core.Document.prototype.getClientId=la.a.prototype.iC;e.Core.Document.prototype.getAuthId=la.a.prototype.fC;e.Core.Document.prototype.setTextExtractorProcessingFlags=la.a.prototype.FE;e.Core.Document.prototype.arePagesAltered=la.a.prototype.Rj;e.Core.PageRotation=Gb.f;e.Core.FontStyles=Gb.c;e.Core.SupportedFileFormats=
|
|
Gb.l;e.Core.SupportedFileFormats.CLIENT=Gb.l.xN;e.Core.SupportedFileFormats.SERVER=Gb.l.aO;e.Core.OverprintPreviewMode=oa.d;e.Core.OverprintPreviewMode.OFF=oa.d.L0;e.Core.OverprintPreviewMode.ON=oa.d.N0;e.Core.OverprintPreviewMode.PDFX_ON=oa.d.UN;e.Core.ColorPostProcessMode=oa.a;e.Core.ColorPostProcessMode.NONE=oa.a.NONE;e.Core.ColorPostProcessMode.INVERT=oa.a.INVERT;e.Core.ColorPostProcessMode.GRADIENT_MAP=oa.a.j0;e.Core.ColorPostProcessMode.NIGHT_MODE=oa.a.E0;e.Core.SaveOptions=oa.f;e.Core.SaveOptions.INCREMENTAL=
|
|
oa.f.s0;e.Core.SaveOptions.REMOVE_UNUSED=oa.f.n1;e.Core.SaveOptions.HEX_STRINGS=oa.f.r0;e.Core.SaveOptions.OMIT_XREF=oa.f.M0;e.Core.SaveOptions.LINEARIZED=oa.f.A0;e.Core.SaveOptions.COMPATIBILITY=oa.f.O_;e.Core.EncryptionAlgorithmType=oa.c;e.Core.EncryptionAlgorithmType.RC4_40=oa.c.l1;e.Core.EncryptionAlgorithmType.RC4_128=oa.c.k1;e.Core.EncryptionAlgorithmType.AES_128=oa.c.D_;e.Core.EncryptionAlgorithmType.AES_256=oa.c.nN;e.Core.TextExtractorProcessingFlags=oa.g;e.Core.TextExtractorProcessingFlags.NO_LIGATURE_EXP=
|
|
oa.g.J0;e.Core.TextExtractorProcessingFlags.NO_DUP_REMOVE=oa.g.H0;e.Core.TextExtractorProcessingFlags.PUNCT_BREAK=oa.g.f1;e.Core.TextExtractorProcessingFlags.REMOVE_HIDDEN_TEXT=oa.g.m1;e.Core.TextExtractorProcessingFlags.NO_INVISIBLE_TEXT=oa.g.I0;e.Core.TextExtractorProcessingFlags.NO_WATERMARKS=oa.g.K0;e.Core.TextExtractorProcessingFlags.EXTRACT_USING_ZORDER=oa.g.EN;e.Core.DocumentViewer=sa.a;x(e.Core.DocumentViewer);e.Core.DocumentViewer.prototype.loadAsync=sa.a.prototype.mt;e.Core.DocumentViewer.prototype.loadDocument=
|
|
sa.a.prototype.qx;e.Core.DocumentViewer.prototype.dispose=sa.a.prototype.se;e.Core.DocumentViewer.prototype.FitMode=function(){};e.Core.DocumentViewer.prototype.FitMode.FitWidth=sa.a.prototype.Bj.HN;e.Core.DocumentViewer.prototype.FitMode.FitPage=sa.a.prototype.Bj.wF;e.Core.DocumentViewer.prototype.FitMode.Zoom=sa.a.prototype.Bj.Zoom;e.Core.DocumentViewer.prototype.displayLastPage=sa.a.prototype.f8;e.Core.DocumentViewer.prototype.displayFirstPage=sa.a.prototype.e8;e.Core.DocumentViewer.prototype.setCurrentPage=
|
|
sa.a.prototype.uf;e.Core.DocumentViewer.prototype.getCurrentPage=sa.a.prototype.jg;e.Core.DocumentViewer.prototype.setRightToLeftPages=sa.a.prototype.ika;e.Core.DocumentViewer.prototype.enableRightToLeftPageRendering=sa.a.prototype.L9;e.Core.DocumentViewer.prototype.disableRightToLeftPageRendering=sa.a.prototype.S7;e.Core.DocumentViewer.prototype.enableArrowKeyNavigation=sa.a.prototype.t9;e.Core.DocumentViewer.prototype.disableArrowKeyNavigation=sa.a.prototype.x7;e.Core.DocumentViewer.prototype.isArrowKeyNavigationEnabled=
|
|
sa.a.prototype.kda;e.Core.DocumentViewer.prototype.getRightToLeftPages=sa.a.prototype.Nba;e.Core.DocumentViewer.prototype.isRightToLeftPageRenderingEnabled=sa.a.prototype.dD;e.Core.DocumentViewer.prototype.getZoom=sa.a.prototype.GC;e.Core.DocumentViewer.prototype.getZoomLevel=sa.a.prototype.bc;e.Core.DocumentViewer.prototype.getPageCount=sa.a.prototype.Wb;e.Core.DocumentViewer.prototype.setFitMode=sa.a.prototype.lM;e.Core.DocumentViewer.prototype.getFitMode=sa.a.prototype.Maa;e.Core.DocumentViewer.prototype.zoomTo=
|
|
sa.a.prototype.Bu;e.Core.DocumentViewer.prototype.zoomToMouse=sa.a.prototype.B_;e.Core.DocumentViewer.prototype.getPDFCoordinatesFromMouseEvent=sa.a.prototype.nba;e.Core.DocumentViewer.prototype.getViewerCoordinatesFromMouseEvent=sa.a.prototype.Ns;e.Core.DocumentViewer.prototype.setToolMode=sa.a.prototype.Co;e.Core.DocumentViewer.prototype.getToolMode=sa.a.prototype.kq;e.Core.DocumentViewer.prototype.getToolModeMap=sa.a.prototype.Pw;e.Core.DocumentViewer.prototype.getTool=sa.a.prototype.ao;e.Core.DocumentViewer.prototype.setEnableStylusMode=
|
|
sa.a.prototype.rja;e.Core.DocumentViewer.prototype.enableStylusMode=sa.a.prototype.uS;e.Core.DocumentViewer.prototype.disableStylusMode=sa.a.prototype.U7;e.Core.DocumentViewer.prototype.isStylusModeEnabled=sa.a.prototype.kV;e.Core.DocumentViewer.prototype.rotateClockwise=sa.a.prototype.qia;e.Core.DocumentViewer.prototype.rotateCounterClockwise=sa.a.prototype.ria;e.Core.DocumentViewer.prototype.textSearchInit=sa.a.prototype.TM;e.Core.DocumentViewer.prototype.isInViewportRenderMode=sa.a.prototype.Dda;
|
|
e.Core.DocumentViewer.prototype.SearchMode=function(){};e.Core.DocumentViewer.prototype.SearchMode.e_case_sensitive=Ja.f.Gu;e.Core.DocumentViewer.prototype.SearchMode.e_whole_word=Ja.f.sz;e.Core.DocumentViewer.prototype.SearchMode.e_search_up=Ja.f.rr;e.Core.DocumentViewer.prototype.SearchMode.e_page_stop=Ja.f.mz;e.Core.DocumentViewer.prototype.SearchMode.e_highlight=Ja.f.jz;e.Core.DocumentViewer.prototype.SearchMode.e_ambient_string=Ja.f.cz;e.Core.DocumentViewer.prototype.SearchMode.e_wild_card=Ja.f.Qu;
|
|
e.Core.DocumentViewer.prototype.SearchMode.e_regex=Ja.f.oz;e.Core.DocumentViewer.prototype.displayBookmark=sa.a.prototype.d8;e.Core.DocumentViewer.prototype.displayPageLocation=sa.a.prototype.ks;e.Core.DocumentViewer.prototype.getDocument=sa.a.prototype.getDocument;e.Core.DocumentViewer.prototype.getSelectedText=sa.a.prototype.Lw;e.Core.DocumentViewer.prototype.getSelectedTextQuads=sa.a.prototype.oJ;e.Core.DocumentViewer.prototype.setTextHighlightColor=sa.a.prototype.Dka;e.Core.DocumentViewer.prototype.setSearchHighlightColors=
|
|
sa.a.prototype.pka;e.Core.DocumentViewer.prototype.displaySearchResult=sa.a.prototype.TH;e.Core.DocumentViewer.prototype.displayAdditionalSearchResult=sa.a.prototype.b8;e.Core.DocumentViewer.prototype.displayAdditionalSearchResults=sa.a.prototype.c8;e.Core.DocumentViewer.prototype.setActiveSearchResult=sa.a.prototype.Lia;e.Core.DocumentViewer.prototype.getActiveSearchResult=sa.a.prototype.Q$;e.Core.DocumentViewer.prototype.clearSearchResults=sa.a.prototype.a6;e.Core.DocumentViewer.prototype.getPageSearchResults=
|
|
sa.a.prototype.bq;e.Core.DocumentViewer.prototype.setSearchPageBatchSize=sa.a.prototype.qka;e.Core.DocumentViewer.prototype.getColorSeparationsAtPoint=sa.a.prototype.paa;e.Core.DocumentViewer.prototype.scrollViewUpdated=sa.a.prototype.zia;e.Core.DocumentViewer.prototype.closeDocument=sa.a.prototype.lB;e.Core.DocumentViewer.prototype.setOptions=sa.a.prototype.rj;e.Core.DocumentViewer.prototype.enableAnnotations=sa.a.prototype.s9;e.Core.DocumentViewer.prototype.disableAnnotations=sa.a.prototype.w7;
|
|
e.Core.DocumentViewer.prototype.recalculateLayout=sa.a.prototype.qX;e.Core.DocumentViewer.prototype.refreshAll=sa.a.prototype.Pq;e.Core.DocumentViewer.prototype.refreshPage=sa.a.prototype.AL;e.Core.DocumentViewer.prototype.getAnnotationsLoadedPromise=sa.a.prototype.AI;e.Core.DocumentViewer.prototype.getRenderingPipeline=sa.a.prototype.OT;e.Core.DocumentViewer.prototype.setWatermark=sa.a.prototype.Do;e.Core.DocumentViewer.prototype.getWatermark=sa.a.prototype.vJ;e.Core.DocumentViewer.prototype.getViewerElement=
|
|
sa.a.prototype.Xa;e.Core.DocumentViewer.prototype.setViewerElement=sa.a.prototype.aZ;e.Core.DocumentViewer.prototype.getScrollViewElement=sa.a.prototype.jb;e.Core.DocumentViewer.prototype.setScrollViewElement=sa.a.prototype.TY;e.Core.DocumentViewer.prototype.isAutomaticLinkingEnabled=sa.a.prototype.OU;e.Core.DocumentViewer.prototype.setEnableAutomaticLinking=sa.a.prototype.oja;e.Core.DocumentViewer.prototype.enableAutomaticLinking=sa.a.prototype.y9;e.Core.DocumentViewer.prototype.disableAutomaticLinking=
|
|
sa.a.prototype.C7;e.Core.DocumentViewer.prototype.enableReadOnlyMode=sa.a.prototype.hI;e.Core.DocumentViewer.prototype.disableReadOnlyMode=sa.a.prototype.SH;e.Core.DocumentViewer.prototype.enableGrayscaleMode=sa.a.prototype.E9;e.Core.DocumentViewer.prototype.disableGrayscaleMode=sa.a.prototype.K7;e.Core.DocumentViewer.prototype.isGrayscaleModeEnabled=sa.a.prototype.yda;e.Core.DocumentViewer.prototype.enableGrayscaleAnnotationsMode=sa.a.prototype.tS;e.Core.DocumentViewer.prototype.disableGrayscaleAnnotationsMode=
|
|
sa.a.prototype.aS;e.Core.DocumentViewer.prototype.isGrayscaleAnnotationsModeEnabled=sa.a.prototype.xda;e.Core.DocumentViewer.prototype.enableGrayscaleAnnotations=sa.a.prototype.D9;e.Core.DocumentViewer.prototype.disableGrayscaleAnnotations=sa.a.prototype.J7;e.Core.RenderingPipeline={};e.Core.RenderingPipeline.PipelineManager=Fb.a;e.Core.RenderingPipeline.PipelineManager.prototype.registerHandlers=Fb.a.prototype.JX;e.Core.RenderingPipeline.PipelineManager.prototype.pushChange=Fb.a.prototype.sm;e.Core.RenderingPipeline.PipelineManager.prototype.hasPipeline=
|
|
Fb.a.prototype.Fca;e.Core.SetCachingLevel=e.Ya.dO;e.Core.SetPreRenderLevel=e.Ya.fO;e.Core.DocumentViewer.prototype.getMargin=sa.a.prototype.sC;e.Core.DocumentViewer.prototype.setMargin=sa.a.prototype.Mja;e.Core.DocumentViewer.prototype.updateView=sa.a.prototype.Ye;e.Core.DocumentViewer.prototype.updateVisiblePages=sa.a.prototype.uu;e.Core.DocumentViewer.prototype.stopPageRender=sa.a.prototype.ju;e.Core.DocumentViewer.prototype.drawSelection=sa.a.prototype.eI;e.Core.DocumentViewer.prototype.clearSelection=
|
|
sa.a.prototype.Nv;e.Core.DocumentViewer.prototype.removeContent=sa.a.prototype.nj;e.Core.DocumentViewer.prototype.select=sa.a.prototype.select;e.Core.DocumentViewer.prototype.getPageHeight=sa.a.prototype.kd;e.Core.DocumentViewer.prototype.getPageWidth=sa.a.prototype.ld;e.Core.DocumentViewer.prototype.setPageZoom=sa.a.prototype.CE;e.Core.DocumentViewer.prototype.getPageZoom=sa.a.prototype.Lb;e.Core.DocumentViewer.prototype.getRotation=sa.a.prototype.me;e.Core.DocumentViewer.prototype.setRotation=sa.a.prototype.py;
|
|
e.Core.DocumentViewer.prototype.getCompleteRotation=sa.a.prototype.Hc;e.Core.DocumentViewer.prototype.getPageRotations=sa.a.prototype.vba;e.Core.DocumentViewer.prototype.setPageRotations=sa.a.prototype.Yja;e.Core.DocumentViewer.prototype.getAnnotationManager=sa.a.prototype.ta;e.Core.DocumentViewer.prototype.getMeasurementManager=sa.a.prototype.AT;e.Core.DocumentViewer.prototype.getAnnotationHistoryManager=sa.a.prototype.Y$;e.Core.DocumentViewer.prototype.setAnnotationImportOptions=sa.a.prototype.Ria;
|
|
e.Core.DocumentViewer.prototype.setInternalAnnotationsTransform=sa.a.prototype.Cja;e.Core.DocumentViewer.prototype.setPagesUpdatedInternalAnnotationsTransform=sa.a.prototype.uM;e.Core.DocumentViewer.prototype.setDocumentXFDFRetriever=sa.a.prototype.hM;e.Core.DocumentViewer.prototype.setLoadAnnotationsFromVisiblePages=sa.a.prototype.Lja;e.Core.DocumentViewer.prototype.enableLoadingAnnotationsFromVisiblePages=sa.a.prototype.I9;e.Core.DocumentViewer.prototype.disableLoadingAnnotationsFromVisiblePages=
|
|
sa.a.prototype.O7;e.Core.DocumentViewer.prototype.setPageVisibilityCallback=sa.a.prototype.bka;e.Core.DocumentViewer.prototype.getDisplayModeManager=sa.a.prototype.Ff;e.Core.DocumentViewer.prototype.snapToNearest=sa.a.prototype.KE;e.Core.DocumentViewer.prototype.setViewportRenderMode=sa.a.prototype.sy;e.Core.DocumentViewer.prototype.enableViewportRenderMode=sa.a.prototype.P9;e.Core.DocumentViewer.prototype.disableViewportRenderMode=sa.a.prototype.X7;e.Core.DocumentViewer.prototype.getViewportRegionRect=
|
|
sa.a.prototype.rca;e.Core.DocumentViewer.prototype.getExactViewportRegionRect=sa.a.prototype.Haa;e.Core.DocumentViewer.prototype.setRenderBatchSize=sa.a.prototype.OY;e.Core.DocumentViewer.prototype.setDefaultPageColor=sa.a.prototype.jja;e.Core.DisplayMode=z.a;e.Core.DisplayMode.prototype.setParameters=z.a.prototype.setParameters;e.Core.DisplayMode.prototype.isContinuous=z.a.prototype.$w;e.Core.DisplayMode.prototype.IsScrollable=z.a.prototype.Vo;e.Core.DisplayMode.prototype.windowToPage=z.a.prototype.xj;
|
|
e.Core.DisplayMode.prototype.windowToPageNoRotate=z.a.prototype.oma;e.Core.DisplayMode.prototype.pageToWindow=z.a.prototype.gh;e.Core.DisplayMode.prototype.pageToWindowNoRotate=z.a.prototype.VK;e.Core.DisplayMode.prototype.getSelectedPages=z.a.prototype.gq;e.Core.DisplayMode.prototype.getVisiblePages=z.a.prototype.ve;e.Core.DisplayMode.prototype.getPageTransform=z.a.prototype.Js;e.Core.DisplayMode.prototype.getPageOffset=z.a.prototype.fJ;e.Core.DisplayMode.prototype.createPageSections=z.a.prototype.Xna;
|
|
e.Core.DisplayMode.prototype.setCustomFunctions=z.a.prototype.hja;e.Core.DisplayMode.prototype.getMode=z.a.prototype.gba;e.Core.VirtualDisplayMode=fa.a;e.Core.DisplayModes=ka.a;e.Core.DisplayModes.Single=ka.a.gO;e.Core.DisplayModes.Continuous=ka.a.Tk;e.Core.DisplayModes.Facing=ka.a.vF;e.Core.DisplayModes.FacingContinuous=ka.a.iz;e.Core.DisplayModes.Cover=ka.a.Hu;e.Core.DisplayModes.CoverFacing=ka.a.Iu;e.Core.DisplayModes.Custom=ka.a.Uk;e.Core.DisplayModeManager=ja.a;e.Core.DisplayModeManager.prototype.setDisplayMode=
|
|
ja.a.prototype.EY;e.Core.DisplayModeManager.prototype.getDisplayMode=ja.a.prototype.Vc;e.Core.DisplayModeManager.prototype.disableVirtualDisplayMode=ja.a.prototype.Y7;e.Core.DisplayModeManager.prototype.enableVirtualDisplayMode=ja.a.prototype.Q9;e.Core.DisplayModeManager.prototype.isVirtualDisplayEnabled=ja.a.prototype.hD;e.Core.AnnotationManager=n.a;x(e.Core.AnnotationManager);e.Core.AnnotationManager.prototype.addAnnotation=n.a.prototype.Sd;e.Core.AnnotationManager.prototype.addAnnotations=n.a.prototype.Ci;
|
|
e.Core.AnnotationManager.prototype.deleteAnnotation=n.a.prototype.Dc;e.Core.AnnotationManager.prototype.deleteAnnotations=n.a.prototype.Wj;e.Core.AnnotationManager.prototype.applyRedactions=n.a.prototype.fH;e.Core.AnnotationManager.prototype.isApplyRedactionEnabled=n.a.prototype.YJ;e.Core.AnnotationManager.prototype.isCreateRedactionEnabled=n.a.prototype.oda;e.Core.AnnotationManager.prototype.isAnnotationRedactable=n.a.prototype.jda;e.Core.AnnotationManager.prototype.enableRedaction=n.a.prototype.K9;
|
|
e.Core.AnnotationManager.prototype.disableRedaction=n.a.prototype.R7;e.Core.AnnotationManager.prototype.selectAnnotation=n.a.prototype.Cg;e.Core.AnnotationManager.prototype.selectAnnotations=n.a.prototype.ey;e.Core.AnnotationManager.prototype.deselectAnnotation=n.a.prototype.Hn;e.Core.AnnotationManager.prototype.deselectAnnotations=n.a.prototype.zB;e.Core.AnnotationManager.prototype.deselectAllAnnotations=n.a.prototype.he;e.Core.AnnotationManager.prototype.isAnnotationSelected=n.a.prototype.Xl;e.Core.AnnotationManager.prototype.getSelectedAnnotations=
|
|
n.a.prototype.Ed;e.Core.AnnotationManager.prototype.updateCopiedAnnotations=n.a.prototype.Qla;e.Core.AnnotationManager.prototype.pasteCopiedAnnotations=n.a.prototype.hga;e.Core.AnnotationManager.prototype.getAnnotationCopy=n.a.prototype.Qn;e.Core.AnnotationManager.prototype.drawAnnotations=n.a.prototype.Sc;e.Core.AnnotationManager.prototype.redrawAnnotation=n.a.prototype.qb;e.Core.AnnotationManager.prototype.drawAnnotationsFromList=n.a.prototype.kf;e.Core.AnnotationManager.prototype.updateAnnotation=
|
|
n.a.prototype.XE;e.Core.AnnotationManager.prototype.jumpToAnnotation=n.a.prototype.fea;e.Core.AnnotationManager.prototype.hasAnnotation=n.a.prototype.pg;e.Core.AnnotationManager.prototype.getAnnotationsList=n.a.prototype.Pb;e.Core.AnnotationManager.prototype.setNoteContents=n.a.prototype.rM;e.Core.AnnotationManager.prototype.setAnnotationRichTextStyle=n.a.prototype.fy;e.Core.AnnotationManager.prototype.updateAnnotationRichTextStyle=n.a.prototype.Lla;e.Core.AnnotationManager.prototype.getCurrentUser=
|
|
n.a.prototype.kg;e.Core.AnnotationManager.prototype.setCurrentUser=n.a.prototype.eM;e.Core.AnnotationManager.prototype.getIsAdminUser=n.a.prototype.Yaa;e.Core.AnnotationManager.prototype.isUserAdmin=n.a.prototype.Vda;e.Core.AnnotationManager.prototype.setIsAdminUser=n.a.prototype.Dja;e.Core.AnnotationManager.prototype.promoteUserToAdmin=n.a.prototype.Fga;e.Core.AnnotationManager.prototype.demoteUserFromAdmin=n.a.prototype.p7;e.Core.AnnotationManager.prototype.setReadOnly=n.a.prototype.fka;e.Core.AnnotationManager.prototype.enableReadOnlyMode=
|
|
n.a.prototype.hI;e.Core.AnnotationManager.prototype.disableReadOnlyMode=n.a.prototype.SH;e.Core.AnnotationManager.prototype.getReadOnly=n.a.prototype.Gba;e.Core.AnnotationManager.prototype.isReadOnlyModeEnabled=n.a.prototype.mK;e.Core.AnnotationManager.prototype.setFreeformRotationEnabled=n.a.prototype.wja;e.Core.AnnotationManager.prototype.enableFreeformRotation=n.a.prototype.C9;e.Core.AnnotationManager.prototype.disableFreeformRotation=n.a.prototype.I7;e.Core.AnnotationManager.prototype.isFreeformRotationEnabled=
|
|
n.a.prototype.uda;e.Core.AnnotationManager.RotationTypes=Gb.i;e.Core.AnnotationManager.prototype.setRotationOptions=n.a.prototype.kka;e.Core.AnnotationManager.prototype.getRotationOptions=n.a.prototype.wC;e.Core.AnnotationManager.prototype.canModify=n.a.prototype.Qc;e.Core.AnnotationManager.prototype.setCustomAppearanceHandler=n.a.prototype.fja;e.Core.AnnotationManager.prototype.getCopiedAnnotations=n.a.prototype.taa;e.Core.AnnotationManager.prototype.canModifyContents=n.a.prototype.qH;e.Core.AnnotationManager.prototype.setPermissionCheckCallback=
|
|
n.a.prototype.cka;e.Core.AnnotationManager.prototype.setSubmitFormActionCallback=n.a.prototype.Cka;e.Core.AnnotationManager.prototype.setBeforeSubmitFormActionCallback=n.a.prototype.Via;e.Core.AnnotationManager.prototype.exportAnnotCommand=n.a.prototype.d$;e.Core.AnnotationManager.prototype.exportAnnotationCommand=n.a.prototype.mI;e.Core.AnnotationManager.prototype.importAnnotCommand=n.a.prototype.Sca;e.Core.AnnotationManager.prototype.importAnnotationCommand=n.a.prototype.Ul;e.Core.AnnotationManager.prototype.exportAnnotations=
|
|
n.a.prototype.Rp;e.Core.AnnotationManager.prototype.importAnnotations=n.a.prototype.QJ;e.Core.AnnotationManager.prototype.useFreeTextEditing=n.a.prototype.dma;e.Core.AnnotationManager.prototype.isFreeTextEditingEnabled=n.a.prototype.WU;e.Core.AnnotationManager.prototype.disableFreeTextEditing=n.a.prototype.H7;e.Core.AnnotationManager.prototype.disableStampVectorAppearance=n.a.prototype.T7;e.Core.AnnotationManager.prototype.registerAnnotationType=n.a.prototype.Mha;e.Core.AnnotationManager.prototype.deregisterAnnotationType=
|
|
n.a.prototype.r7;e.Core.AnnotationManager.prototype.getRegisteredAnnotationTypes=n.a.prototype.Kba;e.Core.AnnotationManager.prototype.getAnnotationFromPopup=n.a.prototype.X$;e.Core.AnnotationManager.prototype.getAnnotationByMouseEvent=n.a.prototype.Pn;e.Core.AnnotationManager.prototype.getAnnotationsByMouseEvent=n.a.prototype.zI;e.Core.AnnotationManager.prototype.getAnnotationById=n.a.prototype.hg;e.Core.AnnotationManager.prototype.getRootAnnotation=n.a.prototype.Xn;e.Core.AnnotationManager.prototype.createAnnotationReply=
|
|
n.a.prototype.B6;e.Core.AnnotationManager.prototype.hideAnnotation=n.a.prototype.Mca;e.Core.AnnotationManager.prototype.hideAnnotations=n.a.prototype.vU;e.Core.AnnotationManager.prototype.showAnnotation=n.a.prototype.Zka;e.Core.AnnotationManager.prototype.showAnnotations=n.a.prototype.lZ;e.Core.AnnotationManager.prototype.setRedrawThrottle=n.a.prototype.gka;e.Core.AnnotationManager.prototype.setRedrawThrottleRate=n.a.prototype.hka;e.Core.AnnotationManager.prototype.getFieldManager=n.a.prototype.ue;
|
|
e.Core.AnnotationManager.prototype.getEditBoxManager=n.a.prototype.mC;e.Core.AnnotationManager.prototype.setAnnotationStyles=n.a.prototype.tE;e.Core.AnnotationManager.prototype.setAnnotationDisplayAuthorMap=n.a.prototype.yY;e.Core.AnnotationManager.prototype.getDisplayAuthor=n.a.prototype.SI;e.Core.AnnotationManager.prototype.setAnnotationCanvasTransform=n.a.prototype.Pia;e.Core.AnnotationManager.prototype.groupAnnotations=n.a.prototype.yJ;e.Core.AnnotationManager.prototype.ungroupAnnotations=n.a.prototype.YZ;
|
|
e.Core.AnnotationManager.prototype.getNumberOfGroups=n.a.prototype.hba;e.Core.AnnotationManager.prototype.getGroupAnnotations=n.a.prototype.qC;e.Core.AnnotationManager.prototype.updateAnnotationState=n.a.prototype.Mla;e.Core.AnnotationManager.prototype.setOldStickyNoteRenderingDate=n.a.prototype.Vja;e.Core.AnnotationManager.prototype.bringToFront=n.a.prototype.q5;e.Core.AnnotationManager.prototype.bringToBack=n.a.prototype.cR;e.Core.AnnotationManager.prototype.getFormFieldCreationManager=n.a.prototype.Tn;
|
|
e.Core.AnnotationManager.prototype.enableDraggingAcrossPages=n.a.prototype.A9;e.Core.AnnotationManager.prototype.disableDraggingAcrossPages=n.a.prototype.$R;e.Core.AnnotationManager.prototype.isDraggingAcrossPagesEnabled=n.a.prototype.QU;e.Core.AnnotationManager.prototype.setSnapDefaultOptions=n.a.prototype.uka;e.Core.AnnotationManager.prototype.getSnapDefaultOptions=n.a.prototype.qJ;e.Core.AnnotationHistoryManager=h.a;e.Core.AnnotationHistoryManager.prototype.undo=h.a.prototype.undo;e.Core.AnnotationHistoryManager.prototype.redo=
|
|
h.a.prototype.redo;e.Core.AnnotationHistoryManager.prototype.clear=h.a.prototype.clear;e.Core.AnnotationHistoryManager.prototype.canUndo=h.a.prototype.E5;e.Core.AnnotationHistoryManager.prototype.canRedo=h.a.prototype.C5;e.Core.AnnotationHistoryManager.Events=h.a.xb;x(e.Core.AnnotationHistoryManager);e.Core.EditBoxManager=dd.a;x(e.Core.EditBoxManager);e.Core.FormFieldCreationManager=xb.a;x(e.Core.FormFieldCreationManager);e.Core.MeasurementManager=wa.a;x(e.Core.MeasurementManager);e.Core.MeasurementManager.prototype.enableAnnotationAndToolStyleSyncing=
|
|
wa.a.prototype.q9;e.Core.MeasurementManager.prototype.disableAnnotationAndToolStyleSyncing=wa.a.prototype.u7;e.Core.MeasurementManager.prototype.isAnnotationAndToolStyleSyncingEnabled=wa.a.prototype.LU;e.Core.MeasurementManager.prototype.getScales=wa.a.prototype.Rba;e.Core.MeasurementManager.prototype.createAndApplyScale=wa.a.prototype.A6;e.Core.MeasurementManager.prototype.replaceScale=wa.a.prototype.Zha;e.Core.MeasurementManager.prototype.replaceScales=wa.a.prototype.XX;e.Core.MeasurementManager.prototype.deleteScale=
|
|
wa.a.prototype.n7;e.Core.Scale=Pa.a;e.Core.Scale.prototype.getScaleRatioAsArray=Pa.a.prototype.mJ;e.Core.Scale.prototype.toString=Pa.a.prototype.toString;e.Core.FormFieldCreationManager.prototype.startFormFieldCreationMode=xb.a.prototype.hu;e.Core.FormFieldCreationManager.prototype.endFormFieldCreationMode=xb.a.prototype.Yj;e.Core.FormFieldCreationManager.prototype.isInFormFieldCreationMode=xb.a.prototype.If;e.Core.FormFieldCreationManager.prototype.applyFormFields=xb.a.prototype.Hna;e.Core.FormFieldCreationManager.prototype.setFieldName=
|
|
xb.a.prototype.cqa;e.Core.FormFieldCreationManager.prototype.setFieldValue=xb.a.prototype.eqa;e.Core.FormFieldCreationManager.prototype.setFieldFlag=xb.a.prototype.bqa;e.Core.FormFieldCreationManager.prototype.getFieldFlag=xb.a.prototype.Poa;e.Core.FormFieldCreationManager.prototype.setFieldOptions=xb.a.prototype.dqa;e.Core.FormFieldCreationManager.prototype.getFieldName=xb.a.prototype.Roa;e.Core.FormFieldCreationManager.prototype.getFieldValue=xb.a.prototype.Toa;e.Core.FormFieldCreationManager.prototype.getRadioButtonGroups=
|
|
xb.a.prototype.Yoa;e.Core.FormFieldCreationManager.prototype.getFieldOptions=xb.a.prototype.Soa;e.Core.FormFieldCreationManager.prototype.getFieldLabels=xb.a.prototype.Qoa;e.Core.Actions=Oa.a;e.Core.Actions.GoTo=Oa.d;e.Core.Actions.GoTo.Dest=Oa.b;e.Core.Actions.GoToR=Oa.e;e.Core.Actions.URI=Oa.k;e.Core.Actions.Named=Oa.h;e.Core.Actions.JavaScript=Oa.g;e.Core.Actions.ResetForm=Oa.i;e.Core.Actions.SubmitForm=Oa.j;e.Core.Actions.Hide=Oa.f;e.Core.Actions.Dispatcher=Oa.c;e.Core.Actions.setCustomOnTriggeredHandler=
|
|
Ga.a;e.Core.Annotations=e.Annotations;e.Core.Annotations.LineEndType=Vb.a;e.Core.Annotations.Color=ya.a;e.Core.Annotations.Color.prototype.toHexString=ya.a.prototype.fr;e.Core.Annotations.Forms=e.Annotations.ha;e.Core.Annotations.Forms.FieldManager=e.Annotations.ha.xf;e.Core.Annotations.Forms.FieldManager.prototype.getField=e.Annotations.ha.xf.prototype.gc;e.Core.Annotations.Forms.FieldManager.prototype.getFields=e.Annotations.ha.xf.prototype.Jaa;e.Core.Annotations.Forms.FieldManager.prototype.addField=
|
|
e.Annotations.ha.xf.prototype.uv;e.Core.Annotations.Forms.FieldManager.prototype.updateFieldName=e.Annotations.ha.xf.prototype.Vla;e.Core.Annotations.Forms.FieldManager.prototype.forEachField=e.Annotations.ha.xf.prototype.Up;e.Core.Annotations.Forms.FieldManager.prototype.setAlertHandler=e.Annotations.ha.xf.prototype.Mia;e.Core.Annotations.Forms.FieldManager.prototype.setPrintHandler=e.Annotations.ha.xf.prototype.dka;e.Core.Annotations.Forms.FieldManager.prototype.getOrCreateField=e.Annotations.ha.xf.prototype.Hw;
|
|
e.Core.Annotations.Forms.FieldManager.prototype.getCalculationOrder=e.Annotations.ha.xf.prototype.$S;e.Core.Annotations.Forms.FieldManager.prototype.setCalculationOrder=e.Annotations.ha.xf.prototype.AY;e.Core.Annotations.Forms.FieldManager.prototype.areRequiredFieldsFilled=e.Annotations.ha.xf.prototype.Z4;e.Core.Annotations.Forms.Field=e.Annotations.ha.va;e.Core.Annotations.Forms.Field.prototype.getValue=e.Annotations.ha.va.prototype.Ab;e.Core.Annotations.Forms.Field.prototype.setValue=e.Annotations.ha.va.prototype.Sb;
|
|
e.Core.Annotations.Forms.Field.prototype.setVisible=e.Annotations.ha.va.prototype.uh;e.Core.Annotations.Forms.Field.prototype.show=e.Annotations.ha.va.prototype.show;e.Core.Annotations.Forms.Field.prototype.hide=e.Annotations.ha.va.prototype.hide;e.Core.Annotations.Forms.Field.prototype.getActions=e.Annotations.ha.va.prototype.Fl;e.Core.Annotations.Forms.Field.prototype.isTerminal=e.Annotations.ha.va.prototype.qK;e.Core.Annotations.Forms.Field.prototype.getFieldType=e.Annotations.ha.va.prototype.Zp;
|
|
e.Core.Annotations.Forms.Field.prototype.refreshAppearances=e.Annotations.ha.va.prototype.wg;x(e.Core.Annotations.Forms.Field);e.Core.Annotations.Forms.EmbeddedJS=e.Annotations.ha.tF;e.Core.Annotations.Forms.EmbeddedJS.update=e.Annotations.ha.tF.update;e.Core.Annotations.Forms.EmbeddedJS.getFinalKeypressValue=e.Annotations.ha.tF.Il;e.Core.Annotations.HTMLAnnotation=e.Annotations.HTMLAnnotation;e.Core.Annotations.HTMLAnnotation.prototype.addAction=e.Annotations.HTMLAnnotation.prototype.Bi;e.Core.Annotations.HTMLAnnotation.prototype.getActions=
|
|
e.Annotations.HTMLAnnotation.prototype.Fl;e.Core.Annotations.HTMLAnnotation.prototype.triggerAction=e.Annotations.HTMLAnnotation.prototype.Tf;e.Core.Annotations.HTMLAnnotation.prototype.getInnerElement=e.Annotations.HTMLAnnotation.prototype.rC;e.Core.Annotations.HTMLAnnotation.prototype.getElement=e.Annotations.HTMLAnnotation.prototype.nT;e.Core.Annotations.WidgetAnnotation=Ka.WidgetAnnotation;e.Core.Annotations.WidgetAnnotation.prototype.setValue=Ka.WidgetAnnotation.prototype.Sb;e.Core.Annotations.WidgetAnnotation.prototype.getValue=
|
|
Ka.WidgetAnnotation.prototype.Ab;e.Core.Annotations.WidgetAnnotation.prototype.addAction=Ka.WidgetAnnotation.prototype.Bi;e.Core.Annotations.WidgetAnnotation.prototype.getField=Ka.WidgetAnnotation.prototype.gc;e.Core.Annotations.WidgetAnnotation.prototype.setField=Ka.WidgetAnnotation.prototype.HY;x(e.Core.Annotations.WidgetAnnotation);e.Core.Annotations.DatePickerWidgetAnnotation=Ka.DatePickerWidgetAnnotation;e.Core.Annotations.DatePickerWidgetAnnotation.prototype.getDatePicker=Ka.DatePickerWidgetAnnotation.prototype.yaa;
|
|
e.Core.Annotations.DatePickerWidgetAnnotation.prototype.refreshDatePicker=Ka.DatePickerWidgetAnnotation.prototype.dha;e.Core.Annotations.DatePickerWidgetAnnotation.datePickerOptions=Ka.DatePickerWidgetAnnotation.Gn;e.Core.Annotations.TextWidgetAnnotation=Ka.TextWidgetAnnotation;e.Core.Annotations.ChoiceWidgetAnnotation=Ka.ChoiceWidgetAnnotation;e.Core.Annotations.ListWidgetAnnotation=Ka.ListWidgetAnnotation;e.Core.Annotations.ButtonWidgetAnnotation=Ka.ButtonWidgetAnnotation;e.Core.Annotations.ButtonWidgetAnnotation.WidgetButtonCaptions=
|
|
Ra.a;e.Core.Annotations.PushButtonWidgetAnnotation=Ka.PushButtonWidgetAnnotation;e.Core.Annotations.CheckButtonWidgetAnnotation=Ka.CheckButtonWidgetAnnotation;e.Core.Annotations.RadioButtonWidgetAnnotation=Ka.RadioButtonWidgetAnnotation;e.Core.Annotations.SignatureWidgetAnnotation=Ka.SignatureWidgetAnnotation;e.Core.Annotations.SignatureWidgetAnnotation.prototype.createSignHereElement=Ka.SignatureWidgetAnnotation.prototype.L6;e.Core.Annotations.SignatureWidgetAnnotation.prototype.isSignedDigitally=
|
|
Ka.SignatureWidgetAnnotation.prototype.hV;e.Core.Annotations.SignatureWidgetAnnotation.prototype.isSignedInitially=Ka.SignatureWidgetAnnotation.prototype.npa;e.Core.Annotations.SignatureWidgetAnnotation.prototype.getAssociatedSignatureAnnotation=Ka.SignatureWidgetAnnotation.prototype.ig;e.Core.Annotations.SignatureWidgetAnnotation.prototype.setAssociatedSignatureAnnotation=Ka.SignatureWidgetAnnotation.prototype.Vt;e.Core.Annotations.WidgetFlags=Ka.WidgetFlags;e.Core.Annotations.WidgetFlags.prototype.get=
|
|
Ka.WidgetFlags.prototype.get;e.Core.Annotations.WidgetFlags.prototype.set=Ka.WidgetFlags.prototype.set;e.Core.Annotations.Annotation=e.Annotations.Annotation;x(e.Core.Annotations.Annotation);e.Core.Annotations.Annotation.prototype.getPageNumber=e.Annotations.Annotation.prototype.ua;e.Core.Annotations.Annotation.prototype.setPageNumber=e.Annotations.Annotation.prototype.ly;e.Core.Annotations.Annotation.prototype.getX=e.Annotations.Annotation.prototype.Kc;e.Core.Annotations.Annotation.prototype.setX=
|
|
e.Annotations.Annotation.prototype.Gm;e.Core.Annotations.Annotation.prototype.getY=e.Annotations.Annotation.prototype.Lc;e.Core.Annotations.Annotation.prototype.setY=e.Annotations.Annotation.prototype.Hm;e.Core.Annotations.Annotation.prototype.addCustomAppearance=e.Annotations.Annotation.prototype.un;e.Core.Annotations.Annotation.prototype.removeCustomAppearance=e.Annotations.Annotation.prototype.eE;e.Core.Annotations.Annotation.prototype.getWidth=e.Annotations.Annotation.prototype.Ba;e.Core.Annotations.Annotation.prototype.setWidth=
|
|
e.Annotations.Annotation.prototype.ar;e.Core.Annotations.Annotation.prototype.getHeight=e.Annotations.Annotation.prototype.wa;e.Core.Annotations.Annotation.prototype.setHeight=e.Annotations.Annotation.prototype.Fm;e.Core.Annotations.Annotation.prototype.setRichTextStyle=e.Annotations.Annotation.prototype.oy;e.Core.Annotations.Annotation.prototype.getRichTextStyle=e.Annotations.Annotation.prototype.jk;e.Core.Annotations.Annotation.prototype.updateRichTextStyle=e.Annotations.Annotation.prototype.h_;
|
|
e.Core.Annotations.Annotation.prototype.setCustomData=e.Annotations.Annotation.prototype.Db;e.Core.Annotations.Annotation.prototype.getCustomData=e.Annotations.Annotation.prototype.ac;e.Core.Annotations.Annotation.prototype.deleteCustomData=e.Annotations.Annotation.prototype.Df;e.Core.Annotations.Annotation.prototype.draw=e.Annotations.Annotation.prototype.draw;e.Core.Annotations.Annotation.prototype.serialize=e.Annotations.Annotation.prototype.serialize;e.Core.Annotations.Annotation.prototype.deserialize=
|
|
e.Annotations.Annotation.prototype.deserialize;e.Core.Annotations.Annotation.prototype.setRect=e.Annotations.Annotation.prototype.cc;e.Core.Annotations.Annotation.prototype.getRect=e.Annotations.Annotation.prototype.Sa;e.Core.Annotations.Annotation.prototype.getRectPadding=e.Annotations.Annotation.prototype.getRectPadding;e.Core.Annotations.Annotation.prototype.adjustRect=e.Annotations.Annotation.prototype.adjustRect;e.Core.Annotations.Annotation.prototype.setContents=e.Annotations.Annotation.prototype.setContents;
|
|
e.Core.Annotations.Annotation.prototype.addReply=e.Annotations.Annotation.prototype.jl;e.Core.Annotations.Annotation.prototype.getContents=e.Annotations.Annotation.prototype.getContents;e.Core.Annotations.Annotation.prototype.isReply=e.Annotations.Annotation.prototype.$l;e.Core.Annotations.Annotation.prototype.isGrouped=e.Annotations.Annotation.prototype.dt;e.Core.Annotations.Annotation.prototype.isFormFieldPlaceholder=e.Annotations.Annotation.prototype.ZC;e.Core.Annotations.Annotation.prototype.getFormFieldPlaceHolderType=
|
|
e.Annotations.Annotation.prototype.Oaa;e.Core.Annotations.Annotation.prototype.isContentEditPlaceholder=e.Annotations.Annotation.prototype.Sh;e.Core.Annotations.Annotation.prototype.getContentEditType=e.Annotations.Annotation.prototype.NI;e.Core.Annotations.Annotation.prototype.getGroupedChildren=e.Annotations.Annotation.prototype.Cw;e.Core.Annotations.Annotation.prototype.getReplies=e.Annotations.Annotation.prototype.cq;e.Core.Annotations.Annotation.prototype.isWidget=e.Annotations.Annotation.prototype.ko;
|
|
e.Core.Annotations.Annotation.prototype.isVisible=e.Annotations.Annotation.prototype.isVisible;e.Core.Annotations.Annotation.prototype.isPrintVisible=e.Annotations.Annotation.prototype.eV;e.Core.Annotations.Annotation.prototype.getInternal=e.Annotations.Annotation.prototype.Xaa;e.Core.Annotations.Annotation.prototype.isInternal=e.Annotations.Annotation.prototype.fK;e.Core.Annotations.Annotation.prototype.resourcesLoaded=e.Annotations.Annotation.prototype.zm;e.Core.Annotations.Annotation.prototype.setModified=
|
|
e.Annotations.Annotation.prototype.Ma;e.Core.Annotations.Annotation.prototype.setRotationControlEnabled=e.Annotations.Annotation.prototype.jka;e.Core.Annotations.Annotation.prototype.enableRotationControl=e.Annotations.Annotation.prototype.M9;e.Core.Annotations.Annotation.prototype.disableRotationControl=e.Annotations.Annotation.prototype.DB;e.Core.Annotations.Annotation.prototype.hasRotationControlEnabled=e.Annotations.Annotation.prototype.HJ;e.Core.Annotations.Annotation.prototype.selectionModel=
|
|
e.Annotations.Annotation.prototype.selectionModel;e.Core.Annotations.Annotation.prototype.elementName=e.Annotations.Annotation.prototype.elementName;e.Core.Annotations.Annotation.prototype.getStatus=e.Annotations.Annotation.prototype.Zba;e.Core.Annotations.Point=ua.b;e.Core.Annotations.Quad=ua.c;e.Core.Annotations.Border=e.Annotations.wN;e.Core.Annotations.Font=e.Annotations.Vk;e.Core.Annotations.Rect=ua.d;e.Core.Annotations.Rect.prototype.getWidth=ua.d.prototype.Ba;e.Core.Annotations.Rect.prototype.getHeight=
|
|
ua.d.prototype.wa;e.Core.Annotations.Rect.prototype.translate=ua.d.prototype.translate;e.Core.Annotations.Rect.prototype.fitTo=ua.d.prototype.Jh;e.Core.Annotations.Rect.prototype.normalize=ua.d.prototype.normalize;e.Core.Annotations.Rect.prototype.exportNormalize=ua.d.prototype.Sp;e.Core.Math={};e.Core.Math.Matrix=ua.a;e.Core.Math.Matrix.multiply=ua.a.multiply;e.Core.Math.Matrix.createTransformWithRespectTo=ua.a.N6;e.Core.Math.Matrix.fromMatrix2D=ua.a.G$;e.Core.Math.Matrix.prototype.get=ua.a.prototype.get;
|
|
e.Core.Math.Matrix.prototype.set=ua.a.prototype.set;e.Core.Math.Matrix.prototype.setScale=ua.a.prototype.wM;e.Core.Math.Matrix.prototype.setScaleX=ua.a.prototype.PY;e.Core.Math.Matrix.prototype.setScaleY=ua.a.prototype.QY;e.Core.Math.Matrix.prototype.setTranslate=ua.a.prototype.au;e.Core.Math.Matrix.prototype.setTranslateX=ua.a.prototype.XY;e.Core.Math.Matrix.prototype.setTranslateY=ua.a.prototype.YY;e.Core.Math.Matrix.prototype.setSkew=ua.a.prototype.xM;e.Core.Math.Matrix.prototype.setSkewX=ua.a.prototype.UY;
|
|
e.Core.Math.Matrix.prototype.setSkewY=ua.a.prototype.VY;e.Core.Math.Matrix.prototype.setRotation=ua.a.prototype.py;e.Core.Math.Matrix.prototype.multiply=ua.a.prototype.multiply;e.Core.Math.Matrix.prototype.transpose=ua.a.prototype.Cla;e.Core.Math.Matrix.prototype.toTransform=ua.a.prototype.Mk;e.Core.Math.Matrix.prototype.clone=ua.a.prototype.clone;e.Core.Math.Matrix.prototype.determinant=ua.a.prototype.t7;e.Core.Math.Matrix.prototype.inverse=ua.a.prototype.inverse;e.Core.Math.Point=ua.b;e.Core.Math.Point.prototype.getX=
|
|
ua.b.prototype.Kc;e.Core.Math.Point.prototype.getY=ua.b.prototype.Lc;e.Core.Math.Point.prototype.add=ua.b.prototype.add;e.Core.Math.Point.prototype.subtract=ua.b.prototype.subtract;e.Core.Math.Point.prototype.dot=ua.b.prototype.Kb;e.Core.Math.Point.prototype.cross=ua.b.prototype.R6;e.Core.Math.Point.prototype.distance=ua.b.prototype.ie;e.Core.Math.Point.prototype.angle=ua.b.prototype.angle;e.Core.Math.Point.prototype.normalize=ua.b.prototype.normalize;e.Core.Math.Point.prototype.reverse=ua.b.prototype.reverse;
|
|
e.Core.Math.Point.prototype.perpendicular=ua.b.prototype.jga;e.Core.Math.Point.prototype.translate=ua.b.prototype.translate;e.Core.Math.Point.prototype.rotate=ua.b.prototype.rotate;e.Core.Math.Point.prototype.scale=ua.b.prototype.scale;e.Core.Math.Point.prototype.toMatrix=ua.b.prototype.PZ;e.Core.Math.Point.prototype.transform=ua.b.prototype.transform;e.Core.Math.Point.prototype.equals=ua.b.prototype.vs;e.Core.Math.Point.prototype.isParallelTo=ua.b.prototype.Lda;e.Core.Math.Point.prototype.clone=
|
|
ua.b.prototype.clone;e.Core.Math.Point.prototype.equalTo=ua.b.prototype.kI;e.Core.Math.Quad=ua.c;e.Core.Math.Quad.prototype.toRect=ua.c.prototype.RZ;e.Core.Math.Rect=ua.d;e.Core.Math.Rect.intersects=ua.d.VC;e.Core.Math.Rect.contains=ua.d.contains;e.Core.Math.Rect.createFromDimensions=ua.d.DR;e.Core.Math.Rect.prototype.getX=ua.d.prototype.Kc;e.Core.Math.Rect.prototype.getY=ua.d.prototype.Lc;e.Core.Math.Rect.prototype.getLeft=ua.d.prototype.aq;e.Core.Math.Rect.prototype.getRight=ua.d.prototype.fq;e.Core.Math.Rect.prototype.getTop=
|
|
ua.d.prototype.lq;e.Core.Math.Rect.prototype.getBottom=ua.d.prototype.Wp;e.Core.Math.Rect.prototype.getWidth=ua.d.prototype.Ba;e.Core.Math.Rect.prototype.getHeight=ua.d.prototype.wa;e.Core.Math.Rect.prototype.getCenter=ua.d.prototype.KI;e.Core.Math.Rect.prototype.getTopLeft=ua.d.prototype.BC;e.Core.Math.Rect.prototype.getTopRight=ua.d.prototype.bU;e.Core.Math.Rect.prototype.getBottomLeft=ua.d.prototype.WS;e.Core.Math.Rect.prototype.getBottomRight=ua.d.prototype.II;e.Core.Math.Rect.prototype.translate=
|
|
ua.d.prototype.translate;e.Core.Math.Rect.prototype.fitTo=ua.d.prototype.Jh;e.Core.Math.Rect.prototype.equalTo=ua.d.prototype.kI;e.Core.Math.Rect.prototype.normalize=ua.d.prototype.normalize;e.Core.Math.Rect.prototype.exportNormalize=ua.d.prototype.Sp;e.Core.Math.Rect.prototype.intersects=ua.d.prototype.VC;e.Core.Math.Rect.prototype.contains=ua.d.prototype.contains;e.Core.Math.Rect.prototype.transform=ua.d.prototype.transform;e.Core.Math.Rect.prototype.toQuad=ua.d.prototype.QZ;e.Core.Math.TransformationBuilder=
|
|
ua.e;e.Core.Math.TransformationBuilder.prototype.getAt=ua.e.prototype.caa;e.Core.Math.TransformationBuilder.prototype.setAt=ua.e.prototype.zY;e.Core.Math.TransformationBuilder.prototype.push=ua.e.prototype.push;e.Core.Math.TransformationBuilder.prototype.translate=ua.e.prototype.translate;e.Core.Math.TransformationBuilder.prototype.translateTo=ua.e.prototype.Pk;e.Core.Math.TransformationBuilder.prototype.scale=ua.e.prototype.scale;e.Core.Math.TransformationBuilder.prototype.skew=ua.e.prototype.cla;
|
|
e.Core.Math.TransformationBuilder.prototype.rotate=ua.e.prototype.rotate;e.Core.Math.TransformationBuilder.prototype.getFinalTransform=ua.e.prototype.Ds;e.Core.Math.TransformationBuilder.prototype.clear=ua.e.prototype.clear;e.Core.Annotations.Link=e.Annotations.Pd;e.Core.Annotations.Link.prototype.isAutomaticLink=e.Annotations.Pd.prototype.sq;e.Core.Annotations.Model3DAnnotation=e.Annotations.Cj;e.Core.Annotations.Model3DAnnotation.prototype.set3DData=e.Annotations.Cj.prototype.wY;e.Core.Annotations.Model3DAnnotation.prototype.get3DData=
|
|
e.Annotations.Cj.prototype.RS;e.Core.Annotations.Model3DAnnotation.prototype.getInteractive=e.Annotations.Cj.prototype.Waa;e.Core.Annotations.Model3DAnnotation.prototype.setInteractive=e.Annotations.Cj.prototype.JY;e.Core.Annotations.Model3DAnnotation.prototype.enableCameraControls=e.Annotations.Cj.prototype.sS;e.Core.Annotations.Model3DAnnotation.prototype.disableCameraControls=e.Annotations.Cj.prototype.ZR;e.Core.Annotations.PopupAnnotation=e.Annotations.Nu;e.Core.Annotations.PopupAnnotation.prototype.isOpen=
|
|
e.Annotations.Nu.prototype.cV;e.Core.Annotations.PopupAnnotation.prototype.setOpen=e.Annotations.Nu.prototype.Wja;e.Core.Annotations.PopupAnnotation.prototype.open=e.Annotations.Nu.prototype.open;e.Core.Annotations.PopupAnnotation.prototype.close=e.Annotations.Nu.prototype.close;e.Core.Annotations.MarkupAnnotation=e.Annotations.oi;e.Core.Annotations.MarkupAnnotation.prototype.setStyles=e.Annotations.oi.prototype.dc;e.Core.Annotations.MarkupAnnotation.prototype.selectionModel=e.Annotations.oi.prototype.selectionModel;
|
|
e.Core.Annotations.MarkupAnnotation.prototype.getPopup=e.Annotations.oi.prototype.NT;e.Core.Annotations.MarkupAnnotation.prototype.setPopup=e.Annotations.oi.prototype.MY;e.Core.Annotations.IPathAnnotation=e.Annotations.Og;e.Core.Annotations.IPathAnnotation.prototype.addPathPoint=e.Annotations.Og.prototype.Bc;e.Core.Annotations.IPathAnnotation.prototype.setPathPoint=e.Annotations.Og.prototype.sh;e.Core.Annotations.IPathAnnotation.prototype.getPathPoint=e.Annotations.Og.prototype.ik;e.Core.Annotations.IPathAnnotation.prototype.popPath=
|
|
e.Annotations.Og.prototype.wo;e.Core.Annotations.IPathAnnotation.prototype.getPath=e.Annotations.Og.prototype.Ra;e.Core.Annotations.IPathAnnotation.prototype.rotate=e.Annotations.Og.prototype.rotate;e.Core.Annotations.LineAnnotation=e.Annotations.Od;e.Core.Annotations.LineAnnotation.CaptionSnapPositions=Ic.a;e.Core.Annotations.LineAnnotation.prototype.setStartPoint=e.Annotations.Od.prototype.wka;e.Core.Annotations.LineAnnotation.prototype.getStartPoint=e.Annotations.Od.prototype.Zn;e.Core.Annotations.LineAnnotation.prototype.setEndPoint=
|
|
e.Annotations.Od.prototype.setEndPoint;e.Core.Annotations.LineAnnotation.prototype.getEndPoint=e.Annotations.Od.prototype.Yp;e.Core.Annotations.LineAnnotation.prototype.setStartStyle=e.Annotations.Od.prototype.th;e.Core.Annotations.LineAnnotation.prototype.getStartStyle=e.Annotations.Od.prototype.pf;e.Core.Annotations.LineAnnotation.prototype.setEndStyle=e.Annotations.Od.prototype.Dm;e.Core.Annotations.LineAnnotation.prototype.getEndStyle=e.Annotations.Od.prototype.Xg;e.Core.Annotations.LineAnnotation.prototype.getLeaderPoints=
|
|
e.Annotations.Od.prototype.bba;e.Core.Annotations.LineAnnotation.prototype.getCenterLeaderPoint=e.Annotations.Od.prototype.naa;e.Core.Annotations.LineAnnotation.prototype.getLeaderLineControlHandlePoint=e.Annotations.Od.prototype.Jl;e.Core.Annotations.LineAnnotation.prototype.getAngle=e.Annotations.Od.prototype.bk;e.Core.Annotations.LineAnnotation.prototype.getLineLength=e.Annotations.Od.prototype.lg;e.Core.Annotations.LineAnnotation.prototype.setLineLength=e.Annotations.Od.prototype.Ija;e.Core.Annotations.LineAnnotation.prototype.setCaptionSnapPosition=
|
|
e.Annotations.Od.prototype.hi;e.Core.Annotations.LineAnnotation.prototype.getCaptionSnapPosition=e.Annotations.Od.prototype.ck;e.Core.Annotations.LineAnnotation.prototype.rotate=e.Annotations.Od.prototype.rotate;e.Core.Annotations.LineAnnotation.prototype.adjustContents=e.Annotations.Od.prototype.Td;e.Core.Annotations.RectangleAnnotation=e.Annotations.Wk;e.Core.Annotations.RectangleAnnotation.Intent=e.Annotations.Wk.nc;e.Core.Annotations.RectangleAnnotation.prototype.getBorderStyle=e.Annotations.Wk.prototype.HI;
|
|
e.Core.Annotations.RectangleAnnotation.prototype.setBorderStyle=e.Annotations.Wk.prototype.dM;e.Core.Annotations.RectangleAnnotation.prototype.getCloudIntensity=e.Annotations.Wk.prototype.Xp;e.Core.Annotations.RectangleAnnotation.prototype.setCloudIntensity=e.Annotations.Wk.prototype.Xq;e.Core.Annotations.EllipseAnnotation=e.Annotations.kr;e.Core.Annotations.EllipseAnnotation.prototype.setMeasurementCaptionOptions=e.Annotations.kr.prototype.KY;e.Core.Annotations.EllipseAnnotation.prototype.getMeasurementCaptionOptions=
|
|
e.Annotations.kr.prototype.zT;e.Core.Annotations.FreeHandAnnotation=e.Annotations.FreeHandAnnotation;e.Core.Annotations.FreeHandAnnotation.prototype.addPathPoint=e.Annotations.FreeHandAnnotation.prototype.Bc;e.Core.Annotations.FreeHandAnnotation.prototype.setPathPoint=e.Annotations.FreeHandAnnotation.prototype.sh;e.Core.Annotations.FreeHandAnnotation.prototype.getPathPoint=e.Annotations.FreeHandAnnotation.prototype.ik;e.Core.Annotations.FreeHandAnnotation.prototype.popPath=e.Annotations.FreeHandAnnotation.prototype.wo;
|
|
e.Core.Annotations.FreeHandAnnotation.prototype.getPath=e.Annotations.FreeHandAnnotation.prototype.Ra;e.Core.Annotations.FreeHandAnnotation.prototype.setPath=e.Annotations.FreeHandAnnotation.prototype.sj;e.Core.Annotations.FreeHandAnnotation.prototype.getPaths=e.Annotations.FreeHandAnnotation.prototype.mg;e.Core.Annotations.FreeHandAnnotation.prototype.emptyPaths=e.Annotations.FreeHandAnnotation.prototype.o9;e.Core.Annotations.FreeHandAnnotation.prototype.shouldSimplifyPath=e.Annotations.FreeHandAnnotation.prototype.shouldSimplifyPath;
|
|
e.Core.Annotations.FreeHandAnnotation.prototype.rotate=e.Annotations.FreeHandAnnotation.prototype.rotate;e.Core.Annotations.TextMarkupAnnotation=e.Annotations.Xk;e.Core.Annotations.TextMarkupAnnotation.prototype.setQuads=e.Annotations.Xk.prototype.DE;e.Core.Annotations.TextMarkupAnnotation.prototype.getQuads=e.Annotations.Xk.prototype.nf;e.Core.Annotations.TextHighlightAnnotation=e.Annotations.DF;e.Core.Annotations.TextUnderlineAnnotation=e.Annotations.GF;e.Core.Annotations.TextStrikeoutAnnotation=
|
|
e.Annotations.FF;e.Core.Annotations.TextSquigglyAnnotation=e.Annotations.EF;e.Core.Annotations.CaretAnnotation=e.Annotations.BN;e.Core.Annotations.StickyAnnotation=e.Annotations.yh;e.Core.Annotations.StickyAnnotation.IconNames=e.Annotations.yh.kb;e.Core.Annotations.StickyAnnotation.prototype.getState=e.Annotations.yh.prototype.getState;e.Core.Annotations.StickyAnnotation.prototype.setState=e.Annotations.yh.prototype.qy;e.Core.Annotations.StickyAnnotation.prototype.getStateModel=e.Annotations.yh.prototype.Yba;
|
|
e.Core.Annotations.StickyAnnotation.prototype.setStateModel=e.Annotations.yh.prototype.xka;e.Core.Annotations.StampAnnotation=e.Annotations.xh;e.Core.Annotations.StampAnnotation.prototype.getImageData=e.Annotations.xh.prototype.getImageData;e.Core.Annotations.StampAnnotation.prototype.setImageData=e.Annotations.xh.prototype.Ao;e.Core.Annotations.StampAnnotation.prototype.getOriginalURL=e.Annotations.xh.prototype.mba;e.Core.Annotations.StampAnnotation.prototype.getStampText=e.Annotations.xh.prototype.YT;
|
|
e.Core.Annotations.StampAnnotation.prototype.setStampText=e.Annotations.xh.prototype.yM;e.Core.Annotations.StampAnnotation.IconNames=qa.a.kb;e.Core.Annotations.StampAnnotation.IconNames.APPROVED=qa.a.kb.F_;e.Core.Annotations.StampAnnotation.IconNames.AS_IS=qa.a.kb.H_;e.Core.Annotations.StampAnnotation.IconNames.COMPLETED=qa.a.kb.P_;e.Core.Annotations.StampAnnotation.IconNames.CONFIDENTIAL=qa.a.kb.Q_;e.Core.Annotations.StampAnnotation.IconNames.DEPARTMENTAL=qa.a.kb.T_;e.Core.Annotations.StampAnnotation.IconNames.DRAFT=
|
|
qa.a.kb.X_;e.Core.Annotations.StampAnnotation.IconNames.EXPERIMENTAL=qa.a.kb.$_;e.Core.Annotations.StampAnnotation.IconNames.EXPIRED=qa.a.kb.a0;e.Core.Annotations.StampAnnotation.IconNames.FINAL=qa.a.kb.c0;e.Core.Annotations.StampAnnotation.IconNames.FOR_COMMENT=qa.a.kb.e0;e.Core.Annotations.StampAnnotation.IconNames.FOR_PUBLIC_RELEASE=qa.a.kb.f0;e.Core.Annotations.StampAnnotation.IconNames.INFORMATION_ONLY=qa.a.kb.t0;e.Core.Annotations.StampAnnotation.IconNames.NOT_APPROVED=qa.a.kb.F0;e.Core.Annotations.StampAnnotation.IconNames.NOT_FOR_PUBLIC_RELEASE=
|
|
qa.a.kb.G0;e.Core.Annotations.StampAnnotation.IconNames.PRELIMINARY_RESULTS=qa.a.kb.c1;e.Core.Annotations.StampAnnotation.IconNames.SB_REJECTED=qa.a.kb.s1;e.Core.Annotations.StampAnnotation.IconNames.SH_ACCEPTED=qa.a.kb.u1;e.Core.Annotations.StampAnnotation.IconNames.SH_INITIAL_HERE=qa.a.kb.v1;e.Core.Annotations.StampAnnotation.IconNames.SH_SIGN_HERE=qa.a.kb.w1;e.Core.Annotations.StampAnnotation.IconNames.SH_WITNESS=qa.a.kb.z1;e.Core.Annotations.StampAnnotation.IconNames.SOLD=qa.a.kb.A1;e.Core.Annotations.StampAnnotation.IconNames.TOP_SECRET=
|
|
qa.a.kb.T1;e.Core.Annotations.StampAnnotation.IconNames.VOID=qa.a.kb.Z1;e.Core.Annotations.RedactionAnnotation=e.Annotations.Wo;e.Core.Annotations.RedactionAnnotation.prototype.setRect=e.Annotations.Wo.prototype.cc;e.Core.Annotations.PolylineAnnotation=e.Annotations.qr;e.Core.Annotations.PolylineAnnotation.prototype.setStartStyle=e.Annotations.qr.prototype.th;e.Core.Annotations.PolylineAnnotation.prototype.getStartStyle=e.Annotations.qr.prototype.pf;e.Core.Annotations.PolylineAnnotation.prototype.setEndStyle=
|
|
e.Annotations.qr.prototype.Dm;e.Core.Annotations.PolylineAnnotation.prototype.getEndStyle=e.Annotations.qr.prototype.Xg;e.Core.Annotations.ArcAnnotation=e.Annotations.Eu;e.Core.Annotations.PolygonAnnotation=e.Annotations.pi;e.Core.Annotations.PolygonAnnotation.prototype.isRectangularPolygon=e.Annotations.pi.prototype.nK;e.Core.Annotations.PolygonAnnotation.prototype.getBorderStyle=e.Annotations.pi.prototype.HI;e.Core.Annotations.PolygonAnnotation.prototype.setBorderStyle=e.Annotations.pi.prototype.dM;
|
|
e.Core.Annotations.PolygonAnnotation.prototype.getCloudIntensity=e.Annotations.pi.prototype.Xp;e.Core.Annotations.PolygonAnnotation.prototype.setCloudIntensity=e.Annotations.pi.prototype.Xq;e.Core.Annotations.PolygonAnnotation.prototype.setMeasurementCaptionOptions=e.Annotations.pi.prototype.KY;e.Core.Annotations.PolygonAnnotation.prototype.getMeasurementCaptionOptions=e.Annotations.pi.prototype.zT;e.Core.Annotations.FreeTextAnnotation=e.Annotations.gb;e.Core.Annotations.FreeTextAnnotation.prototype.getPadding=
|
|
e.Annotations.gb.prototype.Zd;e.Core.Annotations.FreeTextAnnotation.prototype.setPadding=e.Annotations.gb.prototype.ky;e.Core.Annotations.FreeTextAnnotation.prototype.getIntent=e.Annotations.gb.prototype.Le;e.Core.Annotations.FreeTextAnnotation.prototype.setIntent=e.Annotations.gb.prototype.Zt;e.Core.Annotations.FreeTextAnnotation.prototype.addPathPoint=e.Annotations.gb.prototype.Bc;e.Core.Annotations.FreeTextAnnotation.prototype.setStartStyle=e.Annotations.gb.prototype.th;e.Core.Annotations.FreeTextAnnotation.prototype.getStartStyle=
|
|
e.Annotations.gb.prototype.pf;e.Core.Annotations.FreeTextAnnotation.prototype.isAutoSized=e.Annotations.gb.prototype.rk;e.Core.Annotations.FreeTextAnnotation.prototype.setAutoSizeType=e.Annotations.gb.prototype.Wt;e.Core.Annotations.FreeTextAnnotation.prototype.getAutoSizeType=e.Annotations.gb.prototype.Kh;e.Core.Annotations.FreeTextAnnotation.prototype.getEditor=e.Annotations.gb.prototype.Faa;e.Core.Annotations.FreeTextAnnotation.prototype.fitText=e.Annotations.gb.prototype.JS;e.Core.Annotations.FreeTextAnnotation.prototype.setDateFormat=
|
|
e.Annotations.gb.prototype.wE;e.Core.Annotations.FreeTextAnnotation.prototype.getDateFormat=e.Annotations.gb.prototype.QI;e.Core.Annotations.FreeTextAnnotation.prototype.disableEnterKeypress=e.Annotations.gb.prototype.G7;e.Core.Annotations.FreeTextAnnotation.prototype.enableEnterKeypress=e.Annotations.gb.prototype.B9;e.Core.Annotations.FreeTextAnnotation.AutoSizeTypes=e.Annotations.gb.K_;e.Core.Annotations.FreeTextAnnotation.Intent=e.Annotations.gb.nc;e.Core.Annotations.FreeTextAnnotation.RichTextEditor=
|
|
Wb.a;e.Core.Annotations.FreeTextAnnotation.RichTextEditor.setEditorOptions=Wb.a.mja;e.Core.Annotations.FreeTextAnnotation.RichTextEditor.getEditorOptions=Wb.a.Gaa;e.Core.Annotations.FileAttachmentAnnotation=e.Annotations.Mu;e.Core.Annotations.FileAttachmentAnnotation.prototype.getFileData=e.Annotations.Mu.prototype.getFileData;e.Core.Annotations.FileAttachmentAnnotation.prototype.setFileData=e.Annotations.Mu.prototype.IY;e.Core.Annotations.FileAttachmentAnnotation.prototype.getFileMetadata=e.Annotations.Mu.prototype.rT;
|
|
e.Core.Annotations.CustomAnnotation=e.Annotations.Qm;e.Core.Annotations.CustomAnnotation.createFromClass=e.Annotations.Qm.D6;e.Core.Annotations.SoundAnnotation=e.Annotations.rz;e.Core.Annotations.SoundAnnotation.prototype.hasAudioData=e.Annotations.rz.prototype.zca;e.Core.Annotations.SoundAnnotation.prototype.prepareAudioBlob=e.Annotations.rz.prototype.rga;e.Core.Annotations.RotationUtils=function(){};e.Core.Annotations.RotationUtils.getRotatedBoundingBoxRectFromRectangularAnnotations=va.a.Kw;e.Core.Annotations.RotationUtils.getUnrotatedDimensionsFromRectangularAnnotations=
|
|
va.a.Qw;e.Core.Annotations.RotationUtils.getRotatedPointsArray=va.a.vC;e.Core.Annotations.RotationUtils.getRotationAngleInRadiansByDegrees=va.a.tb;e.Core.Annotations.RotationUtils.getRotationAngleInDegreesByRadians=va.a.kk;e.Core.Annotations.RotationUtils.normalizeAngle=va.a.yk;e.Core.Annotations.RotationUtils.RectangularCustomAnnotationRotationMixin=pd.a;e.Core.Annotations.RotationUtils.PathCustomAnnotationRotationMixin=Pd.a;e.Core.Annotations.ControlHandle=ta.d;e.Core.Annotations.ControlHandle.prototype.testSelection=
|
|
ta.d.prototype.testSelection;e.Core.Annotations.BoxControlHandle=ta.a;e.Core.Annotations.CalloutControlHandle=ta.b;e.Core.Annotations.LineControlHandle=ta.e;e.Core.Annotations.LineLeaderControlHandle=ta.f;e.Core.Annotations.PathControlHandle=ta.g;e.Core.Annotations.PolygonControlHandle=ta.h;e.Core.Annotations.TextControlHandle=ta.k;e.Core.Annotations.RotationControlHandle=ta.j;e.Core.Annotations.CaptionControlHandle=ta.c;e.Core.Annotations.SelectionModel=Ha.k;e.Core.Annotations.SelectionModel.prototype.testSelection=
|
|
Ha.k.prototype.testSelection;e.Core.Annotations.SelectionModel.prototype.testControlHandles=Ha.k.prototype.Hy;e.Core.Annotations.SelectionModel.prototype.getControlHandles=Ha.k.prototype.saa;e.Core.Annotations.SelectionModel.prototype.canModify=Ha.k.prototype.Qc;e.Core.Annotations.SelectionModel.prototype.draw=Ha.k.prototype.draw;e.Core.Annotations.SelectionModel.prototype.isSelected=Ha.k.prototype.isSelected;e.Core.Annotations.SelectionModel.setCustomHandlers=Ea.k;e.Core.Annotations.BoxSelectionModel=
|
|
Ha.a;e.Core.Annotations.CalloutSelectionModel=Ha.b;e.Core.Annotations.FreeTextSelectionModel=Ha.d;e.Core.Annotations.LineSelectionModel=Ha.e;e.Core.Annotations.PathSelectionModel=Ha.g;e.Core.Annotations.PolygonSelectionModel=Ha.h;e.Core.Annotations.RedactionSelectionModel=Ha.j;e.Core.Annotations.StickySelectionModel=Ha.m;e.Core.Annotations.TextSelectionModel=Ha.n;e.Core.Annotations.FileAttachmentSelectionModel=Ha.c;e.Core.Annotations.SoundSelectionModel=Ha.l;e.Core.Annotations.XfdfUtils=e.Annotations.g2;
|
|
e.Core.Annotations.XFDFUtils=Ma.a;e.Core.Annotations.XFDFUtils.serializePoint=Ma.a.aM;e.Core.Annotations.XFDFUtils.deserializePoint=Ma.a.QH;e.Core.Annotations.XFDFUtils.serializePointArray=Ma.a.Cm;e.Core.Annotations.XFDFUtils.deserializePointArray=Ma.a.In;e.Core.Annotations.XFDFUtils.serializeRect=Ma.a.Ut;e.Core.Annotations.XFDFUtils.deserializeRect=Ma.a.BB;e.Core.Annotations.XFDFUtils.serializeFringeRect=Ma.a.$L;e.Core.Annotations.XFDFUtils.deserializeFringeRect=Ma.a.VR;e.Core.Annotations.XFDFUtils.serializeMeasure=
|
|
Ma.a.Tt;e.Core.Annotations.XFDFUtils.deserializeMeasure=Ma.a.hs;e.Core.Annotations.XFDFUtils.toXMLDate=Ma.a.Ly;e.Core.Annotations.XFDFUtils.parseDefaultAppearance=Ma.a.QD;e.Core.Annotations.SelectionAlgorithm=Na.a;e.Core.Annotations.SelectionAlgorithm.boundingRectTest=Na.a.pl;e.Core.Annotations.SelectionAlgorithm.canvasVisibilityTest=Na.a.xp;e.Core.Annotations.SelectionAlgorithm.textQuadTest=Na.a.SM;e.Core.Annotations.SelectionAlgorithm.insidePolygonTest=Na.a.FU;e.Core.Annotations.Utilities=qd.a;
|
|
e.Core.Annotations.Utilities.setAnnotationSubjectHandler=qd.a.Sia;e.Core.Annotations.CanvasHelper=Aa.a;e.Core.Annotations.CanvasHelper.prototype.clear=Aa.a.prototype.clear;e.Core.Annotations.CanvasHelper.prototype.drawText=Aa.a.prototype.ts;e.Core.Annotations.CanvasHelper.prototype.drawLine=Aa.a.prototype.Xj;e.Core.Annotations.CanvasHelper.prototype.drawLineXY=Aa.a.prototype.L8;e.Core.Annotations.CanvasHelper.prototype.drawRectangle=Aa.a.prototype.W8;e.Core.Annotations.CanvasHelper.prototype.drawCircle=
|
|
Aa.a.prototype.Jp;e.Core.Annotations.CanvasHelper.prototype.drawCircleXY=Aa.a.prototype.t8;e.Core.Annotations.CanvasHelper.prototype.drawPolygon=Aa.a.prototype.U8;e.Core.Annotations.CanvasHelper.prototype.drawClouds=Aa.a.prototype.u8;e.Core.Annotations.CanvasHelper.prototype.measureText=Aa.a.prototype.measureText;e.Core.Annotations.setCustomSerializeHandler=Ea.j;e.Core.Annotations.setCustomDeserializeHandler=Ea.h;e.Core.Annotations.setCustomControlHandleDrawHandler=Ea.e;e.Core.Annotations.setCustomCreateInnerElementHandler=
|
|
Ea.f;e.Core.Annotations.restoreSerialize=Ea.d;e.Core.Annotations.restoreDeserialize=Ea.b;e.Core.Annotations.setCustomDrawHandler=Ea.i;e.Core.Annotations.setCustomCreateSignHereElementHandler=Ea.g;e.Core.Annotations.restoreDraw=Ea.c;e.Core.Tools={};e.Core.Tools.ToolNames=Gb.m;e.Core.Tools.Tool=xa.X;e.Core.Tools.Tool.enableTextSelection=xa.X.N9;e.Core.Tools.Tool.disableTextSelection=xa.X.V7;e.Core.Tools.Tool.enableAutoSwitch=xa.X.x9;e.Core.Tools.Tool.disableAutoSwitch=xa.X.B7;e.Core.Tools.Tool.enableAnnotationHoverCursors=
|
|
xa.X.r9;e.Core.Tools.Tool.disableAnnotationHoverCursors=xa.X.v7;e.Core.Tools.Tool.allowAnnotationsOutsidePage=xa.X.I4;e.Core.Tools.Tool.disallowAnnotationsOutsidePage=xa.X.Z7;e.Core.Tools.Tool.prototype.getDocumentViewer=xa.X.prototype.Yd;e.Core.Tools.Tool.prototype.getMouseLocation=xa.X.prototype.Zg;e.Core.Tools.Tool.prototype.setStyles=xa.X.prototype.dc;e.Core.Tools.Tool.prototype.setName=xa.X.prototype.qM;x(e.Core.Tools.Tool);e.Core.Tools.AnnotationSelectTool=xa.b;e.Core.Tools.AnnotationSelectTool.prototype.setEnableImmediateActionOnAnnotationSelection=
|
|
xa.b.prototype.pja;e.Core.Tools.AnnotationSelectTool.prototype.enableImmediateActionOnAnnotationSelection=xa.b.prototype.F9;e.Core.Tools.AnnotationSelectTool.prototype.disableImmediateActionOnAnnotationSelection=xa.b.prototype.L7;e.Core.Tools.AnnotationSelectTool.setMinimumAnnotationSizeWhenResizing=xa.b.Rja;e.Core.Tools.AnnotationSelectTool.setMaximumAnnotationSizeWhenResizing=xa.b.Oja;e.Core.Tools.AnnotationSelectTool.enableDragScroll=xa.b.z9;e.Core.Tools.AnnotationSelectTool.disableDragScroll=
|
|
xa.b.E7;e.Core.Tools.TextTool=xa.V;e.Core.Tools.GenericAnnotationCreateTool=xa.x;e.Core.Tools.PanTool=xa.B;e.Core.Tools.PanTool.prototype.isPanning=xa.B.prototype.Kda;e.Core.Tools.PanTool.prototype.isPinching=xa.B.prototype.Mda;e.Core.Tools.TextSelectTool=xa.S;e.Core.Tools.AnnotationEditTool=xa.a;e.Core.Tools.LineCreateTool=xa.y;e.Core.Tools.LineCreateTool.prototype.setDrawMode=xa.y.prototype.jM;e.Core.Tools.LineCreateTool.prototype.getDrawMode=xa.y.prototype.yw;e.Core.Tools.LineCreateTool.DrawModes=
|
|
xa.y.sF;e.Core.Tools.LineCreateTool.prototype.setSnapMode=xa.y.prototype.EE;e.Core.Tools.LineCreateTool.prototype.getSnapMode=xa.y.prototype.hq;e.Core.Tools.ArrowCreateTool=xa.f;e.Core.Tools.CountMeasurementCreateTool=xa.m;e.Core.Tools.DistanceMeasurementCreateTool=xa.p;e.Core.Tools.DistanceMeasurementCreateTool.prototype.setEnableLeaderLines=xa.p.prototype.qja;e.Core.Tools.DistanceMeasurementCreateTool.prototype.enableLeaderLines=xa.p.prototype.H9;e.Core.Tools.DistanceMeasurementCreateTool.prototype.disableLeaderLines=
|
|
xa.p.prototype.N7;e.Core.Tools.DistanceMeasurementCreateTool.prototype.enableImperialMarks=xa.p.prototype.G9;e.Core.Tools.DistanceMeasurementCreateTool.prototype.disableImperialMarks=xa.p.prototype.M7;e.Core.Tools.DistanceMeasurementCreateTool.prototype.getLeaderLineDefaultOptions=xa.p.prototype.aba;e.Core.Tools.DistanceMeasurementCreateTool.prototype.setLeaderLineDefaultOptions=xa.p.prototype.Fja;e.Core.Tools.PerimeterMeasurementCreateTool=xa.C;e.Core.Tools.ArcMeasurementCreateTool=xa.d;e.Core.Tools.AreaMeasurementCreateTool=
|
|
xa.e;e.Core.Tools.AreaMeasurementCreateTool.prototype.setDefaultMeasurementCaptionOptions=xa.e.prototype.gM;e.Core.Tools.AreaMeasurementCreateTool.prototype.getDefaultMeasurementCaptionOptions=xa.e.prototype.RI;e.Core.Tools.EllipseMeasurementCreateTool=xa.r;e.Core.Tools.EllipseMeasurementCreateTool.prototype.setDefaultMeasurementCaptionOptions=xa.r.prototype.gM;e.Core.Tools.EllipseMeasurementCreateTool.prototype.getDefaultMeasurementCaptionOptions=xa.r.prototype.RI;e.Core.Tools.RectangularAreaMeasurementCreateTool=
|
|
xa.I;e.Core.Tools.RectangularAreaMeasurementCreateTool.prototype.setDefaultMeasurementCaptionOptions=xa.I.prototype.gM;e.Core.Tools.RectangularAreaMeasurementCreateTool.prototype.getDefaultMeasurementCaptionOptions=xa.I.prototype.RI;e.Core.Tools.RectangularAreaMeasurementCreateTool.prototype.setDrawMode=xa.I.prototype.jM;e.Core.Tools.RectangularAreaMeasurementCreateTool.prototype.getDrawMode=xa.I.prototype.yw;e.Core.Tools.CloudyRectangularAreaMeasurementCreateTool=xa.j;e.Core.Tools.RectangleCreateTool=
|
|
xa.H;e.Core.Tools.RedactionCreateTool=xa.J;e.Core.Tools.RectangleCreateTool.prototype.setSnapMode=xa.H.prototype.EE;e.Core.Tools.RedactionCreateTool.prototype.getSnapMode=xa.H.prototype.hq;e.Core.Tools.RedactionCreateTool.setEnableTextAutoSize=xa.J.sja;e.Core.Tools.RedactionCreateTool.enableAutoSizedText=xa.J.v9;e.Core.Tools.RedactionCreateTool.disableAutoSizedText=xa.J.z7;e.Core.Tools.EllipseCreateTool=xa.q;e.Core.Tools.EllipseCreateTool.prototype.setDrawMode=xa.q.prototype.jM;e.Core.Tools.EllipseCreateTool.prototype.getDrawMode=
|
|
xa.q.prototype.yw;e.Core.Tools.EllipseCreateTool.DrawModes=xa.q.sF;e.Core.Tools.FreeHandCreateTool=xa.u;e.Core.Tools.FreeHandCreateTool.getCreateDelay=xa.u.Ooa;e.Core.Tools.FreeHandCreateTool.setCreateDelay=xa.u.aqa;e.Core.Tools.FreeHandCreateTool.getSimplifyPen=xa.u.Zoa;e.Core.Tools.FreeHandCreateTool.setSimplifyPen=xa.u.hqa;e.Core.Tools.ChangeViewCreateTool=xa.h;e.Core.Tools.FreeHandHighlightCreateTool=xa.v;e.Core.Tools.FreeHandHighlightCreateTool.prototype.setAutoSmoothingRange=xa.v.prototype.Uia;
|
|
e.Core.Tools.FreeHandHighlightCreateTool.prototype.getAutoSmoothingRange=xa.v.prototype.daa;e.Core.Tools.EraserTool=xa.s;e.Core.Tools.CropCreateTool=xa.n;e.Core.Tools.CropCreateTool.prototype.applyCrop=xa.n.prototype.S4;e.Core.Tools.CropCreateTool.prototype.reset=xa.n.prototype.reset;e.Core.Tools.CropCreateTool.prototype.setCropMode=xa.n.prototype.bja;e.Core.Tools.CropCreateTool.prototype.getCropMode=xa.n.prototype.uaa;e.Core.Tools.CropCreateTool.prototype.getCropTop=xa.n.prototype.hT;e.Core.Tools.CropCreateTool.prototype.getCropBottom=
|
|
xa.n.prototype.eT;e.Core.Tools.CropCreateTool.prototype.getCropLeft=xa.n.prototype.fT;e.Core.Tools.CropCreateTool.prototype.getCropRight=xa.n.prototype.gT;e.Core.Tools.CropCreateTool.prototype.setCropTop=xa.n.prototype.dja;e.Core.Tools.CropCreateTool.prototype.setCropBottom=xa.n.prototype.$ia;e.Core.Tools.CropCreateTool.prototype.setCropLeft=xa.n.prototype.aja;e.Core.Tools.CropCreateTool.prototype.setCropRight=xa.n.prototype.cja;e.Core.Tools.CropCreateTool.prototype.getIsCropping=xa.n.prototype.Zaa;
|
|
e.Core.Tools.CropCreateTool.prototype.getPagesToCrop=xa.n.prototype.Iw;e.Core.Tools.CropCreateTool.prototype.setPagesToCrop=xa.n.prototype.$t;e.Core.Tools.CropCreateTool.prototype.multiSelectAnnotations=xa.n.prototype.GK;e.Core.Tools.CropCreateTool.CropModes=xa.n.S_;e.Core.Tools.MarqueeZoomTool=xa.A;e.Core.Tools.MarqueeZoomTool.setZoomHandler=xa.A.Mka;e.Core.Tools.MarqueeZoomTool.setMaxZoomLevel=xa.A.Nja;e.Core.Tools.MarqueeZoomTool.setMinZoomLevel=xa.A.Qja;e.Core.Tools.SignatureCreateTool=xa.L;e.Core.Tools.SignatureCreateTool.setTextHandler=
|
|
xa.L.ry;e.Core.Tools.SignatureCreateTool.prototype.setSignatureCanvas=xa.L.prototype.tka;e.Core.Tools.SignatureCreateTool.prototype.setDefaultSignatureOptions=xa.L.prototype.kja;e.Core.Tools.SignatureCreateTool.prototype.clearSignatureCanvas=xa.L.prototype.c6;e.Core.Tools.SignatureCreateTool.prototype.saveSignatures=xa.L.prototype.nY;e.Core.Tools.SignatureCreateTool.prototype.deleteSavedSignature=xa.L.prototype.m7;e.Core.Tools.SignatureCreateTool.prototype.getSavedSignatures=xa.L.prototype.Pba;e.Core.Tools.SignatureCreateTool.prototype.importSignatures=
|
|
xa.L.prototype.Uca;e.Core.Tools.SignatureCreateTool.prototype.exportSignatures=xa.L.prototype.e$;e.Core.Tools.SignatureCreateTool.prototype.setSignature=xa.L.prototype.ska;e.Core.Tools.SignatureCreateTool.prototype.hasLocation=xa.L.prototype.Eca;e.Core.Tools.SignatureCreateTool.prototype.clearLocation=xa.L.prototype.W5;e.Core.Tools.SignatureCreateTool.prototype.addSignature=xa.L.prototype.B4;e.Core.Tools.SignatureCreateTool.prototype.isEmptySignature=xa.L.prototype.eK;e.Core.Tools.SignatureCreateTool.prototype.getPreview=
|
|
xa.L.prototype.Jw;e.Core.Tools.SignatureCreateTool.prototype.showPreview=xa.L.prototype.HM;e.Core.Tools.SignatureCreateTool.prototype.hidePreview=xa.L.prototype.Vw;e.Core.Tools.SignatureCreateTool.prototype.resizeCanvas=xa.L.prototype.kia;e.Core.Tools.RubberStampCreateTool=xa.K;e.Core.Tools.RubberStampCreateTool.prototype.getPreview=xa.K.prototype.Jw;e.Core.Tools.RubberStampCreateTool.prototype.showPreview=xa.K.prototype.HM;e.Core.Tools.RubberStampCreateTool.prototype.hidePreview=xa.K.prototype.Vw;
|
|
e.Core.Tools.RubberStampCreateTool.prototype.addStamp=xa.K.prototype.BQ;e.Core.Tools.RubberStampCreateTool.prototype.setRubberStamp=xa.K.prototype.lka;e.Core.Tools.RubberStampCreateTool.prototype.getDefaultStamps=xa.K.prototype.zaa;e.Core.Tools.RubberStampCreateTool.prototype.isEmptyStamp=xa.K.prototype.TU;e.Core.Tools.RubberStampCreateTool.prototype.drawCustomStamp=xa.K.prototype.cI;e.Core.Tools.RubberStampCreateTool.prototype.addCustomStamp=xa.K.prototype.n4;e.Core.Tools.RubberStampCreateTool.prototype.getStandardStampAnnotations=
|
|
xa.K.prototype.Wba;e.Core.Tools.RubberStampCreateTool.prototype.getCustomStampAnnotations=xa.K.prototype.vaa;e.Core.Tools.RubberStampCreateTool.prototype.getStandardStamps=xa.K.prototype.Xba;e.Core.Tools.RubberStampCreateTool.prototype.setStandardStamps=xa.K.prototype.vka;e.Core.Tools.RubberStampCreateTool.prototype.getCustomStamps=xa.K.prototype.waa;e.Core.Tools.RubberStampCreateTool.prototype.setCustomStamps=xa.K.prototype.ija;e.Core.Tools.RubberStampCreateTool.prototype.createCustomStampAnnotation=
|
|
xa.K.prototype.CR;e.Core.Tools.RubberStampCreateTool.prototype.setCustomDrawFunction=xa.K.prototype.gja;e.Core.Tools.RubberStampCreateTool.prototype.useStamp=xa.K.prototype.cF;e.Core.Tools.StickyCreateTool=xa.O;e.Core.Tools.StickyCreateTool.prototype.setAllowCreationOverAnnotation=xa.O.prototype.bM;e.Core.Tools.StickyCreateTool.prototype.enableCreationOverAnnotation=xa.O.prototype.dw;e.Core.Tools.StickyCreateTool.prototype.disableCreationOverAnnotation=xa.O.prototype.Zv;e.Core.Tools.StickyCreateTool.prototype.setSaveViewState=
|
|
xa.O.prototype.mka;e.Core.Tools.StickyCreateTool.prototype.enableViewStateSaving=xa.O.prototype.O9;e.Core.Tools.StickyCreateTool.prototype.disableViewStateSaving=xa.O.prototype.W7;e.Core.Tools.TextAnnotationCreateTool=xa.P;e.Core.Tools.TextHighlightCreateTool=xa.R;e.Core.Tools.TextUnderlineCreateTool=xa.W;e.Core.Tools.TextStrikeoutCreateTool=xa.U;e.Core.Tools.TextSquigglyCreateTool=xa.T;e.Core.Tools.PolylineCreateTool=xa.F;e.Core.Tools.PolylineCreateTool.prototype.setAllowCreationOverAnnotation=xa.F.prototype.bM;
|
|
e.Core.Tools.PolylineCreateTool.prototype.enableCreationOverAnnotation=xa.F.prototype.dw;e.Core.Tools.PolylineCreateTool.prototype.disableCreationOverAnnotation=xa.F.prototype.Zv;e.Core.Tools.PolylineCreateTool.prototype.setSnapMode=xa.C.prototype.EE;e.Core.Tools.PolylineCreateTool.prototype.getSnapMode=xa.C.prototype.hq;e.Core.Tools.ArcCreateTool=xa.c;e.Core.Tools.ArcCreateTool.prototype.enableCreationOverAnnotation=xa.c.prototype.dw;e.Core.Tools.ArcCreateTool.prototype.disableCreationOverAnnotation=
|
|
xa.c.prototype.Zv;e.Core.Tools.ArcCreateTool.prototype.setSnapMode=xa.c.prototype.EE;e.Core.Tools.ArcCreateTool.prototype.getSnapMode=xa.c.prototype.hq;e.Core.Tools.PolygonCreateTool=xa.E;e.Core.Tools.PolygonCloudCreateTool=xa.D;e.Core.Tools.PolygonCloudCreateTool.ArcDrawModes=xa.D.I_;e.Core.Tools.PolygonCloudCreateTool.prototype.setArcDrawMode=xa.D.prototype.cM;e.Core.Tools.PolygonCloudCreateTool.prototype.getArcDrawMode=xa.D.prototype.baa;e.Core.Tools.CalloutCreateTool=xa.g;e.Core.Tools.CalloutCreateTool.prototype.setEnableAutoSized=
|
|
xa.g.prototype.nja;e.Core.Tools.CalloutCreateTool.prototype.enableAutoSizedTextBox=xa.g.prototype.w9;e.Core.Tools.CalloutCreateTool.prototype.disableAutoSizedTextBox=xa.g.prototype.A7;e.Core.Tools.CalloutCreateTool.setTextHandler=xa.g.ry;e.Core.Tools.FreeTextCreateTool=xa.w;e.Core.Tools.FreeTextCreateTool.setTextHandler=xa.w.ry;e.Core.Tools.FreeTextCreateTool.prototype.enableAutoFocusOnCreate=xa.w.prototype.u9;e.Core.Tools.FreeTextCreateTool.prototype.disableAutoFocusOnCreate=xa.w.prototype.y7;e.Core.Tools.FreeTextCreateTool.prototype.isAutoFocusingOnCreate=
|
|
xa.w.prototype.MU;e.Core.Tools.StampCreateTool=xa.N;e.Core.Tools.DateFreeTextCreateTool=xa.o;e.Core.Tools.DateFreeTextCreateTool.prototype.setDateFormat=xa.o.prototype.wE;e.Core.Tools.DateFreeTextCreateTool.prototype.getDateFormat=xa.o.prototype.QI;e.Core.Tools.FileAttachmentCreateTool=xa.t;e.Core.Tools.TextFormFieldCreateTool=xa.Q;e.Core.Tools.ContentEditTool=xa.l;e.Core.Tools.SignatureFormFieldCreateTool=xa.M;e.Core.Tools.CheckBoxFormFieldCreateTool=xa.i;e.Core.Tools.RadioButtonFormFieldCreateTool=
|
|
xa.G;e.Core.Tools.ListBoxFormFieldCreateTool=xa.z;e.Core.Tools.ComboBoxFormFieldCreateTool=xa.k;e.Core.Tools.SnapModes=Gb.k;e.Core.isBlendModeSupported=Fa.g;e.Core.getCanvasMultiplier=Ub.h;e.Core.setCanvasMultiplier=Ub.k;e.Core.unsetCanvasMultiplier=Ub.m;e.Core.setIsWindowsApp=Sb.t;e.Core.setAsWindowsApp=Sb.s;e.Core.unsetAsWindowsApp=Sb.u;e.Core.getScrollLeft=cd.a;e.Core.getHashParameter=Ba.a;e.Core.getHashParam=Ia.a;e.Core.normalizeRect=Fa.l;e.Core.Annotations.Annotation.MeasurementDisplayFormats=
|
|
y.a;e.Core.Annotations.Annotation.MeasurementDisplayFormats.FRACTION=y.a.uF;e.Core.Annotations.Annotation.MeasurementDisplayFormats.DECIMAL=y.a.oF;e.Core.Annotations.Annotation.MeasurementDisplayFormats.ROUND=y.a.YN;e.Core.Annotations.Annotation.MeasurementDisplayFormats.TRUNCATE=y.a.hO;e.Core.Annotations.Annotation.MeasurementSystems=y.b;e.Core.Annotations.Annotation.MeasurementSystems.METRIC=y.b.nr;e.Core.Annotations.Annotation.MeasurementSystems.IMPERIAL=y.b.Uo;e.Core.Annotations.Annotation.MeasurementSystems.TYPOGRAPHIC=
|
|
y.b.sr;e.Core.Annotations.Annotation.MeasurementUnits=y.c;e.Core.Annotations.Annotation.MeasurementUnits.MM=y.c.MM;e.Core.Annotations.Annotation.MeasurementUnits.CM=y.c.N_;e.Core.Annotations.Annotation.MeasurementUnits.M=y.c.M;e.Core.Annotations.Annotation.MeasurementUnits.KM=y.c.z0;e.Core.Annotations.Annotation.MeasurementUnits.IN=y.c.LN;e.Core.Annotations.Annotation.MeasurementUnits.FT=y.c.g0;e.Core.Annotations.Annotation.MeasurementUnits.YD=y.c.h2;e.Core.Annotations.Annotation.MeasurementUnits.MI=
|
|
y.c.B0;e.Core.Annotations.Annotation.MeasurementUnits.PT=y.c.e1;e.Core.Annotations.Annotation.MeasurementUnits.PRIME_FT=y.c.d1;e.Core.Annotations.Annotation.MeasurementUnits.DOUBLE_PRIME_IN=y.c.CN;e.Core.Annotations.Annotation.MeasurementUnits.FT_IN=y.c.GN;e.Core.PartRetrievers={};e.Core.PartRetrievers.getPartRetriever=aa.c;e.Core.PartRetrievers.getPartRetrieverConstructor=aa.d;e.Core.PartRetrievers.CacheHinting=w.a;e.Core.PartRetrievers.Types=w.b;e.Core.PartRetrievers.TYPES=w.b;e.Core.PDFNet.Convert=
|
|
{};e.Core.PDFNet.initialize=Tb.a;e.Core.PDFNet.Convert.office2PDFBuffer=Tb.b;e.Core.office2PDFBuffer=Tb.b;e.Core.officeToPDFBuffer=Tb.c;e.Core.XODText=e.iO;e.Core.XODText.Quad=Ja.d;e.Core.XODText.Quad.prototype.getPoints=Ja.d.prototype.Wn;e.Core.XODText.Matrix2D=Ja.a;e.Core.XODText.Matrix2D.prototype.initCoordinates=Ja.a.prototype.ab;e.Core.XODText.Matrix2D.prototype.mult=Ja.a.prototype.ra;e.Core.XODText.SelectionInfo=Jc.c;e.Core.XODText.SelectionInfo.prototype.parseFromOld=Jc.c.prototype.Lx;e.CoreControls=
|
|
e.Core;e.Actions=e.Core.Actions;e.Annotations=e.Core.Annotations;e.Tools=e.Core.Tools;e.PDFNet=e.Core.PDFNet;e.utils={};e.utils.isBlendModeSupported=Fa.g;e.utils.normalizeRect=Fa.l;e.utils.getCanvasMultiplier=Ub.h;e.utils.setCanvasMultiplier=Ub.k;e.utils.unsetCanvasMultiplier=Ub.m;e.utils.setIsWindowsApp=Sb.t;e.utils.setAsWindowsApp=Sb.s;e.utils.unsetAsWindowsApp=Sb.u;e.utils.getScrollLeft=cd.a;e.utils.getHashParam=Ia.a;e.XODText=e.Core.XODText})(window)},,function(ia,ba,e){e(379);ia.exports=e(433)},
|
|
function(ia,ba,e){e.r(ba);e(380);e(381);e(382);ia=e(383);e.n(ia);ia=e(385);e.n(ia);e(227);e(139);e(117);e(161);e(420);e(74);e(421);e(64);e(97);e(282);e(110);e(9);e(218);e(317);e(430);e(230);e(431);ia=e(211);e(131);e(432);ba=e(353);var ea=e(354),x=e(358);e(376);Object(x.a)();Object(ia.a)();Object(ba.a)();Object(ea.a)()},function(ia,ba,e){var ea=e(64),x=e(2),ha=e(15),ca=e(74);(function(){var e=window.iO||{};window.iO=e;e.Vk=function(){this.QO={};this.EG=1E3;this.HP=200};e.Vk.prototype={IP:0,JP:0,EG:0,
|
|
HP:0,EI:function(e){var w=new ha.e,y=this.QO[e];"undefined"!==typeof y?w.Wl(y):Object(x.j)("Character "+e+" does not have bounding box.");return w},JA:function(e,w,x){var n=new ha.e;n.set(w,this.IP,x,this.JP);this.QO[e]=n},Fm:function(e,w){this.IP=e;this.JP=w},$Y:function(e){this.EG=e}};e.JN=function(e){this.wI={};this.Oe=!1;this.za=e};Object.assign(e.JN.prototype,{Oe:!1,mpa:function(){return this.Oe},Uoa:function(){return this.wI},xL:function(e){try{var w=new ca.a(e);Object(x.a)("FontInfo"===w.Oa(),
|
|
"Root element is incorrect.");"FontInfo"===w.Oa()&&(w.Ka(),this.wA(w))}catch(y){Object(x.j)("Font Parser has encountered an error: "+y.message);return}this.Oe=!0},$z:function(e){var w="",x=0;for(2<=e.length&&"{"===e.charAt(0)&&"}"===e.charAt(1)&&(e=e.substr(2));x<e.length;){var n=e.charCodeAt(x);if(128>n)w+=String.fromCharCode(n),x++;else if(191<n&&224>n){var h=e.charCodeAt(x+1);w+=String.fromCharCode((n&31)<<6|h&63);x+=2}else{h=e.charCodeAt(x+1);var f=e.charCodeAt(x+2);w+=String.fromCharCode((n&
|
|
15)<<12|(h&63)<<6|f&63);x+=3}}return w},M3:function(e){e=e.fa("name");Object(x.a)(42===e.length,"Font file name is incorrect.");Object(x.a)(null!=e,"Font file name is incorrect.");return ea.a.VI(this.za,parseInt("0x"+e.substr(28,8)))},L3:function(e,w){Object(x.a)(null!=w,"Font bbox file is corrupted.");e=e.fa("height");Object(x.a)(null!=e,"Height attribute is missing.");e=e.split(":");w.Fm(parseFloat(e[0]),parseFloat(e[1]))},N3:function(e,w){e=e.fa("units_per_em");null!=e&&w.$Y(parseInt(e))},K3:function(e,
|
|
w){Object(x.a)(null!=w,"Font bbox file is corrupted.");var y=e.fa("bbox");Object(x.a)(null!=y,"Character width is missing.");var n=y.split(":");y=parseFloat(n[0]);n=parseFloat(n[1]);e=this.$z(e.current.textContent);Object(x.a)(0<e.length,"Char value is empty.");w.JA(e,y,n)},wA:function(aa){do{for(var w=null;aa.advance();){var y=aa.Oa();"Font"===y?(w=new e.Vk,y=this.M3(aa),this.L3(aa,w),this.N3(aa,w),this.wI[y]=w,aa.Ka()):"c"===y?this.K3(aa,w):Object(x.j)("Font XML parser has encountered a tag it can't process.")}aa.$a()}while(aa.depth)}})})()},
|
|
function(ia,ba,e){var ea=e(29),x=e(34);(function(ba){function ca(e){this.done=!1;this.worker=new Worker(Object(ea.d)()+"Worker.js");var n=null,h=null,f=this;this.index=e;this.worker.addEventListener("message",function(e){switch(e.data.command){case "done":f.done=!0;h=null;break;case "nextChunk":n=e.data.resources;h=e.data.dataString;break;default:throw Error("Unknown message command "+e.data.command+" from worker");}f.done?(f.iB(null,[]),f.finish()):n&&h&&(f.iB(h,n),h=n=null)},!1);this.pma()}var da=
|
|
[],aa=[],w="../core/";e.p=w;ca.prototype={setData:function(e,n,h){this.iB=n;this.done=!1;this.worker.postMessage({command:"data",dataString:e,docId:h})},cancel:function(){this.worker.postMessage({command:"cancel"})},pma:function(){this.worker.postMessage({command:"options",imageScaling:ba.Ya.WG,specialBlendSupported:Object(x.o)(),continueWithoutPrompt:0<ba.lr})},wD:function(){this.worker.postMessage({command:"nextChunk"})},finish:function(){this.done=!0;if(aa.length){var e=aa[0];aa.shift();this.setData(e.data,
|
|
e.iB,e.za);e.bda(this)}}};ba.uca=function(e,n,h,f){for(var r=da.length,w,x=0;x<r;++x)da[x].done&&(w=da[x]);w||4>r&&(w=da[r]=new ca(r));w?(w.setData(e,f,n),h(w)):aa.push({bda:h,data:e,za:n,iB:f})};ba.Ya=ba.Ya||{};ba.Ya.WG=!1;ba.Ya.ae=function(){return w};ba.Ya.Kka=function(x){x.lastIndexOf("/")!==x.length-1&&(x+="/");w=x;e.p=w}})(window)},function(ia,ba,e){var ea=e(139),x=e(2),ha=e(211),ca=e(60);(function(e){e.d2=function(){function aa(w,y,n){var h=this;this.fj=[];this.Qp={};this.us={};createPromiseCapability();
|
|
this.Uy=new Promise(function(f,r){if("undefined"!==typeof Worker)try{var z=new ea.a("main",w);z.Ck=y;h.Pe=z;z.on("test",function(e){e&&e.supportTypedArray?(e.supportTransfers||(z.Ck=!1),h.Ska(z),f()):r(new ca.a("Typed arrays are not supported. Can't start a worker.","error.WorkerInitError"))});var aa={array:new Uint8Array([255])};try{aa.options=n?n:{},aa.options.chunkMax=e.W_,z.send("test",aa)}catch(ka){Object(x.h)("Cannot use postMessage transfers"),z.Ck=!1,aa.array[0]=0,z.send("test",aa)}return}catch(ka){r(new ca.a("The worker has been disabled. This may be the result of an unsupported browser.",
|
|
"error.SupportError"))}r(new ca.a("Can't start a worker","error.WorkerInitError"))})}aa.prototype={Jt:0,IZ:1,Ce:2,rg:3,Ska:function(e){this.messageHandler=e;e.on("event",this.kY,this)},kY:function(e){var w=e.docId;if(this.Qp[w])this.Qp[w](e);else w in this.us?this.us[w].push(e):this.us[w]=[e]},addEventListener:function(e,y){if(null!==e)if(this.Qp[e])Object(x.g)("Event listener already set for "+e);else if(this.Qp[e]=y,e in this.us){y=this.us[e];for(var n=0;n<y.length;++n)this.kY(y[n]);delete this.us[e]}},
|
|
qR:function(e){delete this.Qp[e]},reset:function(){this.messageHandler&&this.messageHandler.reset()},m$:function(e){(0>e.customHandlerId||4294967295<e.customHandlerId)&&Object(x.g)("Custom security handler id needs to be an integer in [0, 0xFFFFFFFF]");return this.messageHandler.vb("NewDoc",e,this.rg)},CV:function(w,x){w={array:w,workerPath:e.Ya.ae()};x&&(w.l=x);return this.messageHandler.vb("LoadRes",w,this.rg)},tea:function(e,x){e={path:e};x&&(e.l=x);return this.messageHandler.vb("LoadResFromPath",
|
|
e,this.rg)},aT:function(e,x,n,h,f,r,z,aa){return"undefined"===typeof aa?this.messageHandler.sendWithPromiseReturnId("GetCanvas",{docId:e,pageIndex:x,width:n,height:h,rotation:f,layers:r,renderOptions:z},this.Jt):this.messageHandler.sendWithPromiseReturnId("GetCanvasPartial",{docId:e,pageIndex:x,width:n,height:h,rotation:f,layers:r,bbox:[aa.x1,aa.y1,aa.x2,aa.y2],renderOptions:z},this.Jt)},kaa:function(e,x,n,h,f,r,z,aa,da){return"undefined"===typeof aa?this.messageHandler.sendWithPromiseReturnId("GetCanvas",
|
|
{docId:e,pageIndex:x,width:n,height:h,rotation:f,layers:r,filePath:da,renderOptions:z},this.Jt):this.messageHandler.sendWithPromiseReturnId("GetCanvasPartial",{docId:e,pageIndex:x,width:n,height:h,rotation:f,layers:r,bbox:[aa.x1,aa.y1,aa.x2,aa.y2],filePath:da,renderOptions:z},this.Jt)},bT:function(e,x){return"undefined"!==typeof x?this.messageHandler.vb("GetCanvasProgressive",{callbackId:e,filePath:x},this.Jt):this.messageHandler.vb("GetCanvasProgressive",{callbackId:e},this.Jt)},dj:function(e,x,
|
|
n,h){return this.messageHandler.vb("LoadText",{docId:e,pageIndex:x,layers:n,options:h},this.IZ)},pea:function(e){return this.messageHandler.vb("LoadBookmarks",{docId:e},this.rg)},ou:function(e,x,n,h,f){e={docId:e};var r={mode:void 0,start_page:void 0,end_page:void 0};x&&(e.pattern=x);n&&(r.mode=n);h&&(r.start_page=h);f&&(r.end_page=f);e.options=r;return this.Pe.vb("TextSearch",e,this.rg)},nea:function(e,x){e={docId:e};x&&(e.pages=x);return this.messageHandler.vb("LoadAnnotations",e,this.rg)},mY:function(e){return this.messageHandler.vb("SaveDoc",
|
|
e,this.Ce)},via:function(e){return this.messageHandler.vb("SaveDocFromFixedElements",e,this.Ce)},wia:function(e){return this.messageHandler.vb("SaveDocAs",e,this.Ce)},Yla:function(e,x){return this.messageHandler.vb("UpdatePassword",{docId:e,password:x},this.rg)},Rh:function(e,x,n,h){return this.messageHandler.vb("InsertBlankPages",{docId:e,width:n,height:h,pageArray:x},this.Ce)},Hf:function(e,x,n,h,f,r){return this.messageHandler.vb("InsertPages",{docId:e,doc:x,pageArray:n,destPos:h,insertBookmarks:f,
|
|
skipUpdateEvent:r},this.Ce)},Vh:function(e,x,n){return this.messageHandler.vb("MovePages",{docId:e,pageArray:x,destPos:n},this.Ce)},yg:function(e,x,n){return this.messageHandler.vb("RemovePages",{docId:e,pageArray:x,skipUpdateEvent:n},this.Ce)},oh:function(e,x,n){return this.messageHandler.vb("RotatePages",{docId:e,pageArray:x,rotation:n},this.Ce)},Gf:function(e){return this.messageHandler.vb("GetPDFDoc",{docId:e},this.Ce)},Ie:function(e,x,n,h){return this.messageHandler.vb("ExtractPages",{docId:e,
|
|
pageArray:x,xfdfString:n,watermarks:h},this.Ce)},Fh:function(e,x,n,h,f,r){return this.messageHandler.vb("CropPages",{docId:e,pageArray:x,topMargin:n,botMargin:h,leftMargin:f,rightMargin:r},this.Ce)},Bm:function(e,x){return this.messageHandler.vb("DownloaderHint",{docId:e,hint:x},this.Ce)},Eda:function(e){return this.messageHandler.vb("IsLinearized",{docId:e},this.Ce)},Un:function(e){return this.messageHandler.vb("GetLayers",{docId:e},this.Ce)},Dl:function(e,x){return this.messageHandler.vb("ExtractPDFNetLayersContext",
|
|
{docId:e,layers:x},this.Ce)},Is:function(e,x,n,h){e={docId:e,objnum:x};n&&(e.annotationState=n);h&&(e.appearanceState=h);return this.Pe.vb("ConvertPageToAnnotAppearance",e,this.Ce)},Gw:function(){return this.messageHandler.Gw()},Xv:function(e){return this.messageHandler.vb("DeleteDocument",{docId:e},this.Ce)},Xt:function(e){return this.messageHandler.vb("SetCustomFontURL",{fontURL:e},this.rg)},getWorkerType:function(){if(this.messageHandler.ul&&"function"===typeof this.messageHandler.ul.getWorkerType)return this.messageHandler.ul.getWorkerType();
|
|
if(Object(ha.b)(this.messageHandler.ul))return"ems"},ym:function(e,x){return this.messageHandler.vb("RequirePage",{docId:e,pageNum:x},this.rg)},sendWithPromise:function(e,x,n){return this.messageHandler.vb(e,x,n)},Fv:function(e){this.messageHandler.jR(e)},getMetadata:function(e){return this.messageHandler.vb("GetMetadata",{docId:e},this.rg)},qw:function(e,x){var n=[],h=[],f="";x=xc(x);for(var r=x.next();!r.done;r=x.next()){var w=r.value;w.appearanceString?((r=w.id)||(r=w.objnum+"-"+w.gennum),w=w.appearanceString,
|
|
r!==f&&(h.push({dataString:w.dataString,h:w.h,w:w.w,id:r}),f=r)):n.push(w)}n={references:n,strings:h};e&&(n.docId=e);return this.messageHandler.vb("GetAnnotationAppearances",n,this.IZ)},P7:function(e){return this.messageHandler.send("disableLogs",{disabled:void 0===e?!0:e})}};return aa}()})(window)},function(ia,ba,e){(function(e,x){var ha;(function(e){function da(){}function aa(){for(var f=0;f<va.length;f++)va[f][0](va[f][1]);va=[];oa=!1}function w(f,e){va.push([f,e]);oa||(oa=!0,qa(aa,0))}function y(e,
|
|
h){function n(e){f(h,e)}function r(f){z(h,f)}try{e(n,r)}catch(Aa){r(Aa)}}function n(e){var n=e.owner,r=n.state_;n=n.data_;var w=e[r];e=e.then;if("function"===typeof w){r=sa;try{n=w(n)}catch(Aa){z(e,Aa)}}h(e,n)||(r===sa&&f(e,n),r===Da&&z(e,n))}function h(e,h){var n;try{if(e===h)throw new TypeError("A promises callback cannot return that same promise.");if(h&&("function"===typeof h||"object"===typeof h)){var w=h.then;if("function"===typeof w)return w.call(h,function(w){n||(n=!0,h!==w?f(e,w):r(e,w))},
|
|
function(f){n||(n=!0,z(e,f))}),!0}}catch(Aa){return n||z(e,Aa),!0}return!1}function f(f,e){f!==e&&h(f,e)||r(f,e)}function r(f,e){f.state_===na&&(f.state_=ra,f.data_=e,w(ca,f))}function z(f,e){f.state_===na&&(f.state_=ra,f.data_=e,w(ja,f))}function fa(f){var e=f.then_;f.then_=void 0;for(f=0;f<e.length;f++)n(e[f])}function ca(f){f.state_=sa;fa(f)}function ja(f){f.state_=Da;fa(f)}function ea(f){if("function"!==typeof f)throw new TypeError("Promise constructor takes a function argument");if(!1===this instanceof
|
|
ea)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[];y(f,this)}e.createPromiseCapability=function(){var f={},e=new ea(function(e,h){f.resolve=e;f.reject=h});f.promise=e;return f};var ma=e.Promise,la=ma&&"resolve"in ma&&"reject"in ma&&"all"in ma&&"race"in ma&&function(){var f;new ma(function(e){f=e});return"function"===typeof f}();ba?(ba.Promise=la?ma:ea,ba.Polyfill=ea):!(ha=la?ma:ea,void 0!==ha&&
|
|
(ia.exports=ha));var na="pending",ra="sealed",sa="fulfilled",Da="rejected",qa="undefined"!==typeof x?x:setTimeout,va=[],oa;ea.prototype={constructor:ea,state_:na,then_:null,data_:void 0,then:function(f,e){f={owner:this,then:new this.constructor(da),fulfilled:f,rejected:e};this.state_===sa||this.state_===Da?w(n,f):this.then_.push(f);return f.then},"catch":function(f){return this.then(null,f)}};ea.all=function(f){if("[object Array]"!==Object.prototype.toString.call(f))throw new TypeError("You must pass an array to Promise.all().");
|
|
return new this(function(e,h){function n(f){w++;return function(h){r[f]=h;--w||e(r)}}for(var r=[],w=0,x=0,z;x<f.length;x++)(z=f[x])&&"function"===typeof z.then?z.then(n(x),h):r[x]=z;w||e(r)})};ea.race=function(f){if("[object Array]"!==Object.prototype.toString.call(f))throw new TypeError("You must pass an array to Promise.race().");return new this(function(e,h){for(var n=0,r;n<f.length;n++)(r=f[n])&&"function"===typeof r.then?r.then(e,h):e(r)})};ea.resolve=function(f){return f&&"object"===typeof f&&
|
|
f.constructor===this?f:new this(function(e){e(f)})};ea.reject=function(f){return new this(function(e,h){h(f)})};la||(e.Promise=ea)})("undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:this)}).call(this,e(178),e(226).setImmediate)},function(ia,ba,e){(function(e,x){(function(e,ba){function da(f){delete fa[f]}function aa(f){if(ca)setTimeout(aa,0,f);else{var e=fa[f];if(e){ca=!0;try{var h=e.gf,n=e.args;switch(n.length){case 0:h();break;case 1:h(n[0]);break;case 2:h(n[0],
|
|
n[1]);break;case 3:h(n[0],n[1],n[2]);break;default:h.apply(ba,n)}}finally{da(f),ca=!1}}}}function w(){ha=function(f){x.ZV(function(){aa(f)})}}function y(){if(e.postMessage&&!e.importScripts){var f=!0,h=e.onmessage;e.onmessage=function(){f=!1};e.postMessage("","*");e.onmessage=h;return f}}function n(){function f(f){f.source===e&&"string"===typeof f.data&&0===f.data.indexOf(h)&&aa(+f.data.slice(h.length))}var h="setImmediate$"+Math.random()+"$";e.addEventListener?e.addEventListener("message",f,!1):
|
|
e.attachEvent("onmessage",f);ha=function(f){e.postMessage(h+f,"*")}}function h(){var f=new MessageChannel;f.port1.onmessage=function(f){aa(f.data)};ha=function(e){f.port2.postMessage(e)}}function f(){var f=ja.documentElement;ha=function(e){var h=ja.createElement("script");h.onreadystatechange=function(){aa(e);h.onreadystatechange=null;f.removeChild(h);h=null};f.appendChild(h)}}function r(){ha=function(f){setTimeout(aa,0,f)}}if(!e.setImmediate){var z=1,fa={},ca=!1,ja=e.document,ha,ea=Object.getPrototypeOf&&
|
|
Object.getPrototypeOf(e);ea=ea&&ea.setTimeout?ea:e;"[object process]"==={}.toString.call(e.process)?w():y()?n():e.MessageChannel?h():ja&&"onreadystatechange"in ja.createElement("script")?f():r();ea.setImmediate=function(f){"function"!==typeof f&&(f=new Function(""+f));for(var e=Array(arguments.length-1),h=0;h<e.length;h++)e[h]=arguments[h+1];fa[z]={gf:f,args:e};ha(z);return z++};ea.clearImmediate=da}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,e(178),e(264))},function(){function ia(ba,
|
|
e){ba&&(this.encoding=ba);e&&(this.version=e)}(function(){function ba(e){for(var x=e.c.length;x--;)"object"==typeof e.c[x]&&ba(e.c[x]);e.n=e.a=e.c=null}function e(ba,x,ha,ca){var da=x+"<"+ba.n,aa=ba.c.length,w,y=0;for(w in ba.a)da+=" "+w+'="'+ba.a[w]+'"';ca.push(da+(aa?">":" />"));if(aa){do if(da=ba.c[y++],"string"==typeof da){if(1==aa)return ca.push(ca.pop()+da+"</"+ba.n+">");ca.push(x+ha+da)}else"object"==typeof da&&e(da,x+ha,ha,ca);while(y<aa);ca.push(x+"</"+ba.n+">")}}window.XMLWriter=ia;ia.prototype=
|
|
{encoding:"ISO-8859-1",version:"1.0",formatting:"indented",indentChar:"\t",indentation:1,newLine:"\n",writeStartDocument:function(e){this.close();this.stack=[];this.standalone=e},writeEndDocument:function(){this.active=this.root;this.stack=[]},writeDocType:function(e){this.doctype=e},writeStartElement:function(e,x){x&&(e=x+":"+e);x=this.active;e={n:e,a:{},c:[]};x?(x.c.push(e),this.stack.push(x)):this.root=e;this.active=e},writeEndElement:function(){this.active=this.stack.pop()||this.root},writeAttributeString:function(e,
|
|
x){this.active&&(this.active.a[e]=x)},writeString:function(e){this.active&&this.active.c.push(e)},writeElementString:function(e,x,ba){this.writeStartElement(e,ba);this.writeString(x);this.writeEndElement()},writeCDATA:function(e){this.writeString("<![CDATA["+e+"]]\x3e")},writeComment:function(e){this.writeString("\x3c!-- "+e+" --\x3e")},flush:function(){var ba="",x=this.indentation,ha="indented"==this.formatting.toLowerCase(),ca='<?xml version="'+this.version+'" encoding="'+this.encoding+'"';this.stack&&
|
|
this.stack[0]&&this.writeEndDocument();void 0!==this.standalone&&(ca+=' standalone="'+!!this.standalone+'"');ca=[ca+" ?>"];this.doctype&&this.root&&ca.push("<!DOCTYPE "+this.root.n+" "+this.doctype+">");if(ha)for(;x--;)ba+=this.indentChar;this.root&&e(this.root,"",ba,ca);return ca.join(ha?this.newLine:"")},close:function(){this.root&&ba(this.root);this.active=this.root=this.stack=null},getDocument:function(){return(new DOMParser).parseFromString(this.flush(),"text/xml")}}})()},function(ia,ba,e){var ea=
|
|
e(0);e.n(ea);var x=e(8),ha=e(6),ca=e(12);(function(e){e=e.Annotations||{};e.Vk=function(e){this.ep=this.Ad="";this.ln=0;this.Wz=new x.a([0,0,0]);this.qn=new x.a([0,0,0]);this.Lr="Type1";this.Vm=0;this["horizontal-scaling"]=null;this.OP=4;this.KP=12;this.set(e)};e.Vk.prototype={set:function(e){Object(ea.isObject)(e)?(e.name&&(this.Ad=String(e.name),this.ep=ha.a.dL(this.Ad),this.YF=ha.a.FW(this.Ad),this.VO=ha.a.EW(this.Ad)),e.size&&(this.ln=Number(e.size)),e.fillColor&&(this.Wz=new x.a(e.fillColor)),
|
|
e.strokeColor&&(this.qn=new x.a(e.strokeColor)),e.type&&(this.Lr=e.type),Object(ea.isUndefined)(e["horizontal-scaling"])||(this["horizontal-scaling"]=e["horizontal-scaling"])):Object(ea.isString)(e)&&(this.Ad=e,this.ep=ha.a.dL(this.Ad),this.YF=ha.a.FW(this.Ad),this.VO=ha.a.EW(this.Ad))},A$:function(e,w,x){if(0===this.ln){var n=w.CC(1);if(0===e.replace(/\s/g,"").length)return this.Vm=Math.min(n/2,this.KP);var h=20;x?(h=n*ca.a.Rm,w.element?(w=w.element.cloneNode(!0),w.style.zIndex=-99,n=document.getElementsByTagName("body")[0],
|
|
n.appendChild(w),h=ca.a.IS(e,w.children[0],h)/ca.a.Rm,n.removeChild(w)):h/=2):(w=.95*w.DC(1),n*=.95,e=ca.a.measureText(e,h,this.ep?this.ep:void 0,this.YF),h*=Math.min(w/e.width,n/e.height));return this.Vm=Math.max(this.OP,Math.min(h,this.KP))}},deserialize:function(e,w){if(ha.a.getAttribute(e,"FontName")){var x=ha.a.getAttribute(e,"FontName");this.Ad=x;this.ep=ha.a.dL(x)}ha.a.getAttribute(e,"FontSize")&&(x=parseFloat(ha.a.getAttribute(e,"FontSize")),e=w.ra({x:0,y:0}),x=w.ra({x:x,y:0}),w=e.x-x.x,e=
|
|
e.y-x.y,this.ln=Math.sqrt(w*w+e*e))},tq:function(){return this.Wz.tq()&&this.qn.tq()},UM:function(e){var w={};""!==this.ep&&(w["font-family"]=this.ep,w["font-weight"]=this.YF,w["font-style"]=this.VO);w["font-size"]=0===this.ln&&0!==this.Vm?String(this.Vm*e)+"px":String(this.ln*e)+"px";w.color=this.Wz.toString();3>parseFloat(w["font-size"])&&(w["font-size"]="3px");return w}};Object.defineProperties(e.Vk.prototype,{name:{get:function(){return this.Ad},set:function(e){this.set({name:e})}},size:{get:function(){return this.ln},
|
|
set:function(e){this.set({size:e})}},type:{get:function(){return this.Lr}},strokeColor:{get:function(){return this.qn},set:function(e){this.set({strokeColor:e})}},fillColor:{get:function(){return this.Wz},set:function(e){this.set({fillColor:e})}},calculatedSize:{get:function(){return 0===this.ln?this.Vm:this.ln}}})})(window)},function(ia,ba,e){var ea=e(1),x=e(4),ha=e(34);ia=e(83);ba=e(36);var ca=e(12);e=function(e){function aa(w){var x=e.call(this,w)||this;x["_xsi:type"]="Caret";x.Subject=ca.a.Gc("caret");
|
|
x.StrokeThickness=0;x.Ej=null;x.cd(w);return x}Object(ea.c)(aa,e);aa.prototype.draw=function(e,y){this.dc(e,y);var n=this.Width;y=this.Height;var h=Number(this.Rotation);if(90===h||270===h)h=n,n=y,y=h;e.translate(this.X,this.Y);e.rotate(-this.Rotation*Math.PI/180);h=Object(ha.e)((360-this.Rotation)%360,this.Width,this.Height);e.translate(-h.mS,-h.nS);e.translate(-this.X,-this.Y);e.beginPath();e.fillStyle=this.StrokeColor.toString();n=new x.d(this.X,this.Y,this.X+n,this.Y+y);h=(n.x1+n.x2)/2;y=n.y1+
|
|
3*y/4;e.moveTo(h,n.y1);e.quadraticCurveTo(h,y,n.x1,n.y2);e.lineTo(n.x2,n.y2);e.quadraticCurveTo(h,y,h,n.y1);e.closePath();e.fill();e.stroke()};aa.prototype.deserialize=function(w,x,n){e.prototype.deserialize.call(this,w,x,n);x=Number(this.Rotation);if(90===x||270===x)x=this.Width,this.Width=this.Height,this.Height=x;this.StrokeThickness=0;this.tj(w,"symbol")};aa.prototype.serialize=function(w,x){if(this.bb)return this.bb;var n=Number(this.Rotation);if(90===n||270===n){var h=this.Width;this.Width=
|
|
this.Height;this.Height=h}e.prototype.serialize.call(this,w,x);if(90===n||270===n)h=this.Width,this.Width=this.Height,this.Height=h;this.We(w,"symbol");w.removeAttribute("width");return w};return aa}(ba.a);e.prototype.elementName="caret";e.prototype.selectionModel=ia.a;e.prototype=Object.assign(new ba.a,e.prototype);(window.Annotations||{}).BN=e},function(ia,ba,e){function ea(e,da,aa,w,y){return e===da?!0:null==e||null==da||!ha(e)&&!ha(da)?e!==e&&da!==da:x(e,da,aa,w,ea,y)}var x=e(389),ha=e(405);ia.exports=
|
|
ea},function(ia,ba,e){var ea=e(390),x=e(397),ha=e(402),ca=e(403),da=e(273),aa=e(228),w=e(274),y=e(275),n=Object.prototype.hasOwnProperty;ia.exports=function(e,f,r,z,fa,ba){var h=aa(e),ka=aa(f),ia=h?"[object Array]":da(e),la=ka?"[object Array]":da(f);ia="[object Arguments]"==ia?"[object Object]":ia;la="[object Arguments]"==la?"[object Object]":la;var na="[object Object]"==ia;ka="[object Object]"==la;if((la=ia==la)&&w(e)){if(!w(f))return!1;h=!0;na=!1}if(la&&!na)return ba||(ba=new ea),h||y(e)?x(e,f,
|
|
r,z,fa,ba):ha(e,f,ia,r,z,fa,ba);if(!(r&1)&&(h=na&&n.call(e,"__wrapped__"),ia=ka&&n.call(f,"__wrapped__"),h||ia))return e=h?e.value():e,f=ia?f.value():f,ba||(ba=new ea),fa(e,f,r,z,ba);if(!la)return!1;ba||(ba=new ea);return ca(e,f,r,z,fa,ba)}},function(ia,ba,e){function ea(e){var x=-1,w=null==e?0:e.length;for(this.clear();++x<w;){var y=e[x];this.set(y[0],y[1])}}ba=e(391);var x=e(392),ha=e(394),ca=e(395);e=e(396);ea.prototype.clear=ba;ea.prototype["delete"]=x;ea.prototype.get=ha;ea.prototype.has=ca;
|
|
ea.prototype.set=e;ia.exports=ea},function(ia){ia.exports=function(){this.__data__=[];this.size=0}},function(ia,ba,e){var ea=e(180),x=Array.prototype.splice;ia.exports=function(e){var ba=this.__data__;e=ea(ba,e);if(0>e)return!1;e==ba.length-1?ba.pop():x.call(ba,e,1);--this.size;return!0}},function(ia){ia.exports=function(ba,e){return ba===e||ba!==ba&&e!==e}},function(ia,ba,e){var ea=e(180);ia.exports=function(e){var x=this.__data__;e=ea(x,e);return 0>e?void 0:x[e][1]}},function(ia,ba,e){var ea=e(180);
|
|
ia.exports=function(e){return-1<ea(this.__data__,e)}},function(ia,ba,e){var ea=e(180);ia.exports=function(e,ba){var x=this.__data__,da=ea(x,e);0>da?(++this.size,x.push([e,ba])):x[da][1]=ba;return this}},function(ia,ba,e){var ea=e(398),x=e(399),ha=e(400);ia.exports=function(e,da,aa,w,y,n){var h=aa&1,f=e.length,r=da.length;if(f!=r&&!(h&&r>f))return!1;r=n.get(e);var z=n.get(da);if(r&&z)return r==da&&z==e;r=-1;z=!0;var fa=aa&2?new ea:void 0;n.set(e,da);for(n.set(da,e);++r<f;){var ba=e[r],ca=da[r];if(w)var ia=
|
|
h?w(ca,ba,r,da,e,n):w(ba,ca,r,e,da,n);if(void 0!==ia){if(ia)continue;z=!1;break}if(fa){if(!x(da,function(e,f){if(!ha(fa,f)&&(ba===e||y(ba,e,aa,w,n)))return fa.push(f)})){z=!1;break}}else if(ba!==ca&&!y(ba,ca,aa,w,n)){z=!1;break}}n["delete"](e);n["delete"](da);return z}},function(ia,ba,e){var ea=e(228);ia.exports=function(){if(!arguments.length)return[];var e=arguments[0];return ea(e)?e:[e]}},function(ia){ia.exports=function(ba,e){for(var ea=-1,x=null==ba?0:ba.length;++ea<x;)if(e(ba[ea],ea,ba))return!0;
|
|
return!1}},function(ia,ba,e){var ea=e(401);ia.exports=function(e,ba){return!(null==e||!e.length)&&-1<ea(e,ba,0)}},function(ia){ia.exports=function(ba,e,ea){--ea;for(var x=ba.length;++ea<x;)if(ba[ea]===e)return ea;return-1}},function(ia){ia.exports=function(ba,e){return ba===e||ba!==ba&&e!==e}},function(ia,ba,e){var ea=e(404),x=Object.prototype.hasOwnProperty;ia.exports=function(e,ba,da,aa,w,y){var n=da&1,h=ea(e),f=h.length,r=ea(ba).length;if(f!=r&&!n)return!1;for(r=f;r--;){var z=h[r];if(!(n?z in ba:
|
|
x.call(ba,z)))return!1}var fa=y.get(e);z=y.get(ba);if(fa&&z)return fa==ba&&z==e;fa=!0;y.set(e,ba);y.set(ba,e);for(var ca=n;++r<f;){z=h[r];var ja=e[z],ha=ba[z];if(aa)var ia=n?aa(ha,ja,z,ba,e,y):aa(ja,ha,z,e,ba,y);if(void 0===ia?ja!==ha&&!w(ja,ha,da,aa,y):!ia){fa=!1;break}ca||(ca="constructor"==z)}fa&&!ca&&(da=e.constructor,aa=ba.constructor,da!=aa&&"constructor"in e&&"constructor"in ba&&!("function"==typeof da&&da instanceof da&&"function"==typeof aa&&aa instanceof aa)&&(fa=!1));y["delete"](e);y["delete"](ba);
|
|
return fa}},function(ia,ba,e){ba=e(272)(Object.keys,Object);ia.exports=ba},function(ia){ia.exports=function(ba){return null!=ba&&"object"==typeof ba}},function(ia,ba,e){function ea(e,ba){e=void 0===e?[]:e;ba=void 0===ba?x:ba;this.data=e;this.length=this.data.length;this.compare=ba;if(0<this.length)for(e=(this.length>>1)-1;0<=e;e--)this.$O(e)}function x(e,x){return e<x?-1:e>x?1:0}e.r(ba);e.d(ba,"default",function(){return ea});ea.prototype.push=function(e){this.data.push(e);this.length++;this.e4(this.length-
|
|
1)};ea.prototype.pop=function(){if(0!==this.length){var e=this.data[0],x=this.data.pop();this.length--;0<this.length&&(this.data[0]=x,this.$O(0));return e}};ea.prototype.peek=function(){return this.data[0]};ea.prototype.e4=function(e){for(var x=this.data,da=this.compare,aa=x[e];0<e;){var w=e-1>>1,y=x[w];if(0<=da(aa,y))break;x[e]=y;e=w}x[e]=aa};ea.prototype.$O=function(e){for(var x=this.data,da=this.compare,aa=this.length>>1,w=x[e];e<aa;){var y=(e<<1)+1,n=x[y],h=y+1;h<this.length&&0>da(x[h],n)&&(y=
|
|
h,n=x[h]);if(0<=da(n,w))break;x[e]=n;e=y}x[e]=w}},function(ia,ba,e){var ea=e(1);ia=e(238);var x=e.n(ia),ha=e(2),ca=e(4);ia=e(53);ba=e(84);var da=e(83),aa=e(14),w=e(35),y=e(36),n=e(6),h=e(12),f=e(3),r=window.Annotations||{};e=function(e){function w(f){var n=e.call(this,f)||this;n.Wa=[];n.SF=new ca.e;n.LeftMost=Infinity;n.RightMost=0;n.TopMost=Infinity;n.BottomMost=0;n.Eb={x:0,y:0};n.Jc={x:0,y:0};n.fv=!1;n["_xsi:type"]="Free Hand";n.Subject=h.a.Gc("freehand");n.Ej=null;n.Vf=null;n.u2=1;n.n2=1;n.cd(f);
|
|
return n}Object(ea.c)(w,e);w.prototype.Bc=function(e,f,h){"undefined"===typeof h&&(h=0);if(h===this.Wa.length)this.Wa.push([]);else if(h>this.Wa.length){Object(ha.j)("FreeHandAnnotation addPathPoint: pathIndex out of bounds.");return}this.LeftMost=Math.min(this.LeftMost,e);this.RightMost=Math.max(this.RightMost,e);this.TopMost=Math.min(this.TopMost,f);this.BottomMost=Math.max(this.BottomMost,f);var n=this.getRectPadding();this.Bz=this.LeftMost-n;this.Cz=this.TopMost-n;this.Uu=this.RightMost-this.LeftMost+
|
|
2*n;this.Tu=this.BottomMost-this.TopMost+2*n;this.Wa[h].push(new ca.b(e,f))};w.prototype.sh=function(e,f,h,n){"undefined"===typeof n&&(n=0);if(this.Wa.length>n){var r=this.Wa[n];r.length>e?(r[e].x=f,r[e].y=h,this.adjustRect()):r.length===e&&this.Bc(f,h,n)}else this.Wa.length===n?this.Bc(f,h,n):Object(ha.j)("FreeHandAnnotation setPathPoint: pathIndex out of bounds.")};w.prototype.ik=function(e,f){"undefined"===typeof f&&(f=0);return this.Wa&&this.Wa.length>f&&this.Wa[f].length>e?this.Wa[f][e]:null};
|
|
w.prototype.wo=function(e){"undefined"===typeof e&&(e=0);var f=null;this.Wa.length>e&&(f=this.Wa[e].pop(),this.adjustRect());return f};w.prototype.Ra=function(e){"undefined"===typeof e&&(e=0);return this.Wa.length>e?this.Wa[e]:null};w.prototype.sj=function(e,f){"undefined"===typeof f&&(f=0);this.Wa.length<f?Object(ha.j)("FreeHandAnnotation setPath: pathIndex out of bounds."):this.Wa.length>f?this.Wa[f]=e:this.Wa.length===f&&this.Wa.push(e);this.adjustRect()};w.prototype.o9=function(){this.Wa=[]};
|
|
w.prototype.finish=function(){this.fv||(this.Ma(),this.fv=!0)};w.prototype.resize=function(e){var f=e.x1,h=e.y1,n=e.Ba(),w=e.wa();e=h-this.Y;if(!(0===f-this.X&&0===e&&n===this.Width&&w===this.Height||1>n||1>w)){var x=e=1;"undefined"!==typeof n&&"undefined"!==typeof w&&(e=w/this.Height,x=n/this.Width,Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Width").set.call(this,n),Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Height").set.call(this,w));this.LeftMost=Infinity;this.RightMost=
|
|
0;this.TopMost=Infinity;for(n=this.BottomMost=0;n<this.Wa.length;n++)for(w=0;w<this.Wa[n].length;w++)this.Wa[n][w].x=(this.Wa[n][w].x-this.X)*x+f,this.Wa[n][w].y=(this.Wa[n][w].y-this.Y)*e+h,this.LeftMost=Math.min(this.Wa[n][w].x,this.LeftMost),this.RightMost=Math.max(this.Wa[n][w].x,this.RightMost),this.TopMost=Math.min(this.Wa[n][w].y,this.TopMost),this.BottomMost=Math.max(this.Wa[n][w].y,this.BottomMost);Object.getOwnPropertyDescriptor(r.Annotation.prototype,"X").set.call(this,f);Object.getOwnPropertyDescriptor(r.Annotation.prototype,
|
|
"Y").set.call(this,h)}};w.prototype.rotate=function(e,f){void 0===f&&(f=this.dk());this.Rotation=aa.a.kk(aa.a.yk(aa.a.tb(this.Rotation)-e));this.Wa.forEach(function(h,n,r){r[n]=aa.a.vC(h,e,f)});this.adjustRect()};w.prototype.draw=function(e,f){this.dc(e,f);this.Vf===r.FreeHandAnnotation.nc.InkHighlight&&e.globalAlpha>r.FreeHandAnnotation.opacityCap&&(e.globalAlpha=r.FreeHandAnnotation.opacityCap);e.beginPath();f=this.mg();for(var h=0;h<f.length;h++)this.zl(e,f[h]);e.lineCap="round";e.lineJoin="round";
|
|
e.stroke()};w.prototype.Uc=function(h){void 0===h&&(h=f.a.NORMAL);(h=e.prototype.Uc.call(this,h))&&this.Vf===r.FreeHandAnnotation.nc.InkHighlight&&null===h.blendMode&&(h.blendMode="multiply");return h};w.prototype.mg=function(){return this.Wa};w.prototype.bla=function(){if(this.shouldSimplifyPath)for(var e=0;e<this.Wa.length;e++){var f=x()(this.Ra(e),.75,void 0);this.sj(f,e)}};w.prototype.zl=function(e,f){var h="undefined"===typeof f?0:f.length;if(3<=h){e.moveTo(f[0].x,f[0].y);for(h=1;h<f.length-
|
|
2;h++)e.quadraticCurveTo(f[h].x,f[h].y,(f[h].x+f[h+1].x)/2,(f[h].y+f[h+1].y)/2);h+1<f.length&&e.quadraticCurveTo(f[h].x,f[h].y,f[h+1].x,f[h+1].y)}else 2===h?(e.moveTo(f[0].x,f[0].y),e.lineTo(f[1].x,f[1].y)):1===h&&(e.moveTo(f[0].x,f[0].y),e.arc(f[0].x,f[0].y,.5,0,2*Math.PI))};w.prototype.l0=function(){return this.BottomMost};w.prototype.q0=function(){return this.TopMost};w.prototype.n0=function(){return this.LeftMost};w.prototype.p0=function(){return this.RightMost};w.prototype.adjustRect=function(){if(0!==
|
|
this.Wa.length){this.Eb={x:Number.MAX_VALUE,y:Number.MAX_VALUE};this.Jc={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};var e,f;for(e=0;e<this.Wa.length;e++)for(f=0;f<this.Wa[e].length;f++)if(null!==this.Wa[e][f]){var h=this.Wa[e][f].x,n=this.Wa[e][f].y;h>this.Jc.x&&(this.Jc.x=h);n>this.Jc.y&&(this.Jc.y=n);h<this.Eb.x&&(this.Eb.x=h);n<this.Eb.y&&(this.Eb.y=n)}n=this.getRectPadding();e=this.Eb.x-n;f=this.Eb.y-n;h=Math.max(0,this.Jc.x-this.Eb.x)+2*n;n=Math.max(0,this.Jc.y-this.Eb.y)+2*n;Object.getOwnPropertyDescriptor(r.Annotation.prototype,
|
|
"X").set.call(this,e);Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Y").set.call(this,f);Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Width").set.call(this,h);Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Height").set.call(this,n);this.By()}};w.prototype.getRectPadding=function(){return this.StrokeThickness};w.prototype.serialize=function(e,f){if(this.bb)return this.bb;for(var h=r.oi.prototype.serialize.apply(this,arguments),w=document.createElementNS("","inklist"),
|
|
x=this.mg(),z=0;z<x.length;z++)if(!(1>x[z].length)){var y=n.a.Cm(x[z],f),aa=document.createElementNS("","gesture");aa.textContent=y;w.appendChild(aa)}h.appendChild(w);this.Vf&&(h.setAttribute("IT",this.Vf),this.Vf===r.FreeHandAnnotation.nc.InkHighlight&&0!==this.Opacity&&this.Opacity>r.FreeHandAnnotation.opacityCap&&h.setAttribute("opacity",r.FreeHandAnnotation.opacityCap));h.removeAttribute("rotation");return h};w.prototype.deserialize=function(e,f){r.oi.prototype.deserialize.apply(this,arguments);
|
|
var h=this;h.Wa=[];e.querySelectorAll("inklist gesture").forEach(function(e){e=n.a.In(e.textContent,f);e=h.shouldSimplifyPath?x()(e,.5):e;h.Wa.push(e)});this.Uc()||this.adjustRect();this.Vf=e.getAttribute("IT");this.Ej=null};w.opacityCap=.7;w.nc={InkHighlight:"InkHighlight"};return w}(y.a);e.prototype.elementName="ink";e.prototype.shouldSimplifyPath=!1;e.prototype.selectionModel=da.a;e.prototype=Object.assign(new y.a,e.prototype);Object(ia.b)(e.prototype,new ba.a);Object(w.a)(e.prototype,{Intent:{get:function(){return this.Vf},
|
|
set:function(e){this.Vf=e;this.Ma()}},X:{get:function(){return Object.getOwnPropertyDescriptor(r.Annotation.prototype,"X").get.call(this)},set:function(e){var f=this.Wa.reduce(function(e,f){return Object(ea.e)(e,f)},[]);r.Og.prototype.$E.call(this,f,{x:e});this.adjustRect()}},Y:{get:function(){return Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Y").get.call(this)},set:function(e){var f=this.Wa.reduce(function(e,f){return Object(ea.e)(e,f)},[]);r.Og.prototype.$E.call(this,f,{y:e});this.adjustRect()}},
|
|
Width:{get:function(){return Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Width").get.call(this)},set:function(e){var f=this.Wa.reduce(function(e,f){return Object(ea.e)(e,f)},[]);r.Og.prototype.ZE.call(this,f,{width:e});this.adjustRect()}},Height:{get:function(){return Object.getOwnPropertyDescriptor(r.Annotation.prototype,"Height").get.call(this)},set:function(e){var f=this.Wa.reduce(function(e,f){return Object(ea.e)(e,f)},[]);r.Og.prototype.ZE.call(this,f,{height:e});this.adjustRect()}}},
|
|
["shouldSimplifyPath"]);(window.Annotations||{}).FreeHandAnnotation=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(4),ca=e(8);ia=e(53);ba=e(84);var da=e(41),aa=e(119),w=e(55),y=e(19),n=e(21),h=e(103),f=e(52),r=e(57),z=e(35),fa=e(14),ka=e(92),ja=e(6),pa=e(2),ma=e(12),la=e(36);e=function(e){function z(f,h){var n=e.call(this,h)||this;n.ga=[];n.Eb={x:0,y:0};n.Jc={x:0,y:0};n.J3=null;n.zh=null;n["_xsi:type"]="FreeText";n.StrokeThickness=1;n.Zt(f);n.iD="left";n.EO=new ca.a(255,0,0);n.xz="Helvetica";
|
|
n.qO="12pt";n.DO="left";n.FO="top";n.yO=0;n.tr=null;n.Yk=2;n.Ei=void 0;n.Fi=void 0;n.autoSizeProperties={shrinkWidth:!0,shrinkHeight:!0,expandWidth:!0,expandHeight:!0};if(f!==z.nc.FreeTextCallout)n.Subject=ma.a.Gc("freetext"),n.ga.push(new ha.b(0,0)),n.ga.push(new ha.b(1,1));else for(n.Subject=ma.a.Gc("callout"),f=0;5>f;f++)n.ga.push(new ha.b(f,f));n.adjustRect();n.cd(h);return n}Object(ea.c)(z,e);z.prototype.Le=function(){return this.intent};z.prototype.Zt=function(e){this.intent=e||z.nc.FreeText;
|
|
e!==z.nc.FreeTextCallout?this.selectionModel=da.d:(this.th("OpenArrow"),this.selectionModel=da.b)};z.prototype.th=function(e){this.mn=e};z.prototype.pf=function(){return this.mn};z.prototype.JS=function(e,h,n){var w=this,x=this.getContents();if(x){if(90===n||270===n){n=e.height;var z=e.width}else n=e.width,z=e.height;var y=document.createElement("canvas");y.width=n;y.height=z;var fa=y.getContext("2d");e=this.gC(e,h);var da=e.XB;e=e.vI;this.dc(fa,h);fa.font=da+e+" "+this.Font;e=this.$n();var ba=e.x;
|
|
y=e.y;var ca=e.width,ja=e.height,ea=this.Ow(h);if(this.Kh()===f.a.Lu){var qa=0===this.Rotation||180===this.Rotation?ca:ja;qa-=Math.ceil(2*ea);e=this.Po(fa,x,qa)}else{e=x.split("\n");var ia=0;qa=e.map(function(e){if(!w.jk())return fa.measureText(e).width;e=aa.c(e,w.jk(),ia).reduce(function(e,f){var h=f.text;f=f.style;fa.save();aa.d(fa,f);h=fa.measureText(h).width+.1;fa.restore();return e+h},0);ia+=x.length;return e});qa=Math.max.apply(Math,qa)}qa+=Math.ceil(2*ea);var ka=function(e){var f=w.$p(da).WD*
|
|
e.length;Object(r.g)(e[0])&&(f+=da/4.5);return f+2*ea};switch(this.Rotation){case 0:var la=ba;la+qa>n&&(qa=n-la,e=this.Po(fa,x,qa-2*ea));e=ka(e);la=new ha.d(la,y,la+qa,y+e);break;case 90:la=ba;y+=ja;0>y-qa&&(qa=y,e=this.Po(fa,x,qa-2*ea));e=ka(e);la=new ha.d(la,y-qa,la+e,y);break;case 180:la=ba+ca;y+=ja;0>la-qa&&(qa=la,e=this.Po(fa,x,qa-2*ea));e=ka(e);la=new ha.d(la-qa,y-e,la,y);break;case 270:la=ba+ca,y+qa>z&&(qa=z-y,e=this.Po(fa,x,qa-2*ea)),e=ka(e),la=new ha.d(la-e,y,la,y+qa)}la.Jh(new ha.d(0,0,
|
|
n,z));this.DQ(la,h)}};z.prototype.Bc=function(e,f){5>this.ga.length&&ka.a.prototype.Bc.call(this,e,f)};z.prototype.adjustRect=function(){ka.a.prototype.adjustRect.apply(this,arguments);this.tr=null};z.prototype.resize=function(e){if(this.Le()===z.nc.FreeTextCallout){var f=e.y1-this.Y,h=e.Ba()/this.Width,n=e.wa()/this.Height;if(0!==e.x1-this.X||0!==f||1!==h||1!==n){var r=this;this.ga.forEach(function(f){f.x=(f.x-r.X)*h+e.x1;f.y=(f.y-r.Y)*n+e.y1});this.adjustRect()}}else{f=this.$d(e);var w=this.Zd();
|
|
0>=f.width-(w.x1+w.x2)||0>=f.height-(w.y1+w.y2)||(this.ga[0]=new ha.b(e.x1+w.x1,e.y1+w.y2),this.ga[1]=new ha.b(e.x2-w.x2,e.y2-w.y1),this.rk()&&(this.Ei=this.ga[0].X,this.Fi=this.ga[0].Y),this.cc(e))}};z.prototype.getRectPadding=function(){return this.Le()===z.nc.FreeTextCallout?this.StrokeThickness/2:0};z.prototype.ky=function(e){this.tr=e};z.prototype.Zd=function(){if(null===this.tr)if(this.Le()===z.nc.FreeTextCallout){var e=this.ga.slice(-2),f=e[0];e=e[1];this.tr=new ha.d(f.x-this.X,this.Y+this.Height-
|
|
e.y,this.X+this.Width-e.x,f.y-this.Y)}else this.tr=new ha.d(0,0,0,0);return this.tr};z.prototype.Bw=function(){return this.FontSize.slice(-2)||"px"};z.prototype.Es=function(){var e=parseFloat(this.FontSize),f=this.Bw(e);0===e&&this.lO&&z.EXPORT_CALCULATED_FONT_SIZE&&(e=this.lO,f="px");"px"===f&&(e*=.75);return e};z.prototype.iq=function(e,f,h,n){e=e.substring(f,h);if(!this.nh)return n.measureText(e).width;f=aa.c(e,this.nh,f);n.save();f=f.reduce(function(e,f){var h=f.text;aa.d(n,f.style);return e+
|
|
n.measureText(h).width},0);n.restore();return f};z.prototype.Po=function(e,f,h){var n=[],r=[];f&&(r=f.split("\n"));var w=e.measureText(".").width||1;w=2*Math.ceil(h/w);for(var x=0,z=0;z<r.length;z++){var y=r[z].split(" ");y=y.map(function(e){return e+" "});for(var aa="",fa=void 0,da=void 0,ba=0;ba<y.length;ba++){fa=y[ba].trim();da=this.iq(f,x,x+fa.length,e);if(da>h){for(var ca=1,ha=w,ja=void 0;ca<=ha;)if(ja=Math.floor((ha+ca)/2),da=this.iq(f,x,x+ja,e),da<h)ca=ja+1;else if(da>h)ha=ja-1;else break;
|
|
fa=fa.slice(0,Math.max(1,ha))}y[ba].trim()!==fa&&(y.splice(ba+1,0,y[ba].substr(fa.length)),y[ba]=fa);fa=""+aa+y[ba].trim();da=this.iq(f,x-aa.length,x+y[ba].trim().length,e);da>h&&0<ba?(n.push(aa),aa=y[ba]):aa=""+aa+y[ba];x+=y[ba].length}n.push(aa)}return n};z.prototype.UJ=function(){this.zh=document.createElement("textarea");this.zh.className="freetext";this.zh.style.visibility="hidden";this.zh.style.position="absolute";this.zh.style.top="-9001px";document.getElementsByTagName("body")[0].appendChild(this.zh)};
|
|
z.prototype.$p=function(e){return{WD:1.598*e,T6:1+5/e}};z.prototype.Ow=function(e){return 2*this.ak(e)};z.prototype.$d=function(e){void 0===e&&(e=this.Sa());return fa.a.Qw(e,fa.a.tb(this.Rotation))};z.prototype.draw=function(e,f){var h;this.dc(e,f);if(this.Le()===z.nc.FreeTextCallout&&this.Yk){this.ZH(e,f);var n=this.ga.length===this.Yk+3}else n=2===this.ga.length;if(n){e.save();this.h9(e);n=this.getContents();var r=!(null===(h=this.editor)||void 0===h||!h.hasFocus());!n||r&&"for-worker"!==e.canvas.className||
|
|
this.ts(e,f,n);e.restore()}};z.prototype.ZH=function(e,f){e.lineJoin="miter";f=this.ak(f);0===f&&(f=e.lineWidth=1);for(var h=Math.min(this.Yk+1,this.ga.length),n=0;n<h;n++){var r=this.ga[n];0===n?(e.beginPath(),e.moveTo(r.x,r.y)):e.lineTo(r.x,r.y)}1<this.ga.length&&ma.a.m8(e,this.ga[0],this.ga[1],f)};z.prototype.h9=function(e){if(this.Le()===z.nc.FreeTextCallout){var f=this.$n(),h=f.x,n=f.y,r=f.width;f=f.height;e.save();0<this.StrokeThickness&&(e.beginPath(),e.lineWidth*=2,e.rect(h,n,r,f),e.clip(),
|
|
e.stroke());e.beginPath();e.rect(h+e.lineWidth/2,n+e.lineWidth/2,r-e.lineWidth,f-e.lineWidth);e.closePath();e.fill()}else{f=this.$d();h=f.x;n=f.y;r=f.width;f=f.height;var w=this.Zd();h+=w.x1;n+=w.y2;r-=w.x1+w.x2;f-=w.y1+w.y2;w=this.dk();e.translate(w.X,w.Y);e.rotate(-fa.a.tb(this.Rotation));e.translate(-w.X,-w.Y);e.save();e.beginPath();e.moveTo(h+e.lineWidth/2,n+e.lineWidth/2);e.lineTo(h+r-e.lineWidth/2,n+e.lineWidth/2);e.lineTo(h+r-e.lineWidth/2,n+f-e.lineWidth/2);e.lineTo(h+e.lineWidth/2,n+f-e.lineWidth/
|
|
2);e.closePath();e.fill();0<this.StrokeThickness&&(e.beginPath(),e.lineWidth*=2,e.rect(h,n,r,f),e.clip(),e.stroke())}e.restore()};z.prototype.ts=function(e,f,h,n){var w=this;void 0===n&&(n=this.$n());var x=n.x,y=n.y,aa=n.width,fa=n.height;if(this.Le()===z.nc.FreeText){var da=this.$d();y=da.x;var ba=da.y;da=da.width;var ca=this.Zd();x=y+ca.x1;y=ba+ca.y2;aa=da-(ca.x1+ca.x2)}e.save();n=this.ME(e,f,h,n);var ha=n.lines,ja=n.pad,ea=n.XB,qa=n.maxHeight;n=n.maxWidth;var ia=x+ja,ka=y+ja;"center"===this.TextVerticalAlign?
|
|
ka=y+fa/2-this.$p(ea).WD*ha.length/2:"bottom"===this.TextVerticalAlign&&(ka=y+fa-ja-this.$p(ea).WD*ha.length);var la=ka,ra=0;0<this.StrokeThickness&&(e.beginPath(),e.rect(ia,ka,n,qa),e.clip());Object(r.g)(ha[0])&&(ka+=ea/4.5);ha.forEach(function(n,r){if(!(ka-la>=qa)){if("center"===w.TextAlign){var z=w.iq(h,ra,ra+n.trimEnd().length,e);ia=w.jk()?x+(aa-z)/2:x+aa/2}else"right"===w.TextAlign&&(ia=x+aa-ja);w.jk()||"justify"===w.TextAlign?(w.X8(e,n,ia,ka,ra,f,ha.length-1===r),ra+=n.length):e.fillText(n,
|
|
ia,ka);ka+="0pt"!==w.FontSize?w.$p(ea).WD:ea}});e.restore()};z.prototype.X8=function(e,f,h,n,r,w,x){var z=this;r=aa.c(f,this.jk()||{0:{}},r);var y=aa.a(e,r),fa="justify"===this.TextAlign&&!x,da=0;if(fa){x=aa.b(e,r,!0);var ba=0;ba=this.$n().width;w=this.Ow(w);f=(f.trimEnd().match(/\s/g)||[]).length;da=(ba-x-2*w)/f}"right"===this.TextAlign&&(r=r.reverse(),r[0].text=r[0].text.trim());var ca=h;r.forEach(function(f,r){var w=f.text;f=f.style;e.save();e.textAlign="right"===z.TextAlign?"right":"left";e.lineWidth=
|
|
parseFloat(z.FontSize)/12;aa.d(e,f);if(fa)for(var x=w.split(" "),ba=0;ba<x.length;ba++){var ha=x[ba],ja=ba+1===x.length;e.fillText(ha,ca,n);ca+=aa.b(e,[{text:ha,style:f}]);ja||(ca+=da)}else e.fillText(w,h,n);if(f=f["text-decoration"]){if(f.includes("underline")||f.includes("word"))x=Math.max.apply(Math,y),z.Xj(e,w,h,n+x);f.includes("line-through")&&z.Xj(e,w,h,n+y[r]/2)}fa?h=ca:(r=e.measureText(w).width,h="right"===z.TextAlign?h-r:h+r);e.restore()})};z.prototype.Xj=function(e,f,h,n){f=e.measureText(f).width;
|
|
e.beginPath();var r=e.textAlign;"center"===r?(r=h-f/2,h+=f/2):"right"===r?r=h-f:(r=h,h+=f);e.moveTo(r,n);e.lineTo(h,n);e.stroke()};z.prototype.gC=function(e,f){var h=this,n=e.width;e=e.height;f=ma.a.zv(f,parseFloat(this.FontSize));var r=this.Bw();"pt"===r&&(f*=.75);0===f&&(this.zh||this.UJ(),this.zh.style.width=n+"px",this.zh.style.height=e+"px",this.zh.style.fontFamily=this.Font,n=this.getContents(),n=n.replace(/\s+$/g,""),this.zh.value=n,f=ma.a.IS(n,this.zh,e,function(e){return h.$p(e).T6}),r="px",
|
|
this.lO=f);return{XB:f,vI:r}};z.prototype.$n=function(){var e=this.ga.slice(-2),f=e[0];e=e[1];return{x:f.x,y:f.y,width:e.x-f.x,height:e.y-f.y}};z.prototype.aca=function(e){var f=this.ga.slice(-2),h=f[0];f=f[1];var r=n.a.Math.MV(h,f);e=this.ak(e)/2;return[new ha.b(r.x,h.y+e),new ha.b(r.x,f.y-e),new ha.b(h.x+e,r.y),new ha.b(f.x-e,r.y)]};z.prototype.DQ=function(e,f){var h=z.nc,r=this.Le();if(r===h.FreeText)this.resize(e);else if(r===h.FreeTextCallout){h=this.Ra();r=h.length;h[r-2]=new ha.b(e.x1,e.y1);
|
|
h[r-1]=new ha.b(e.x2,e.y2);e=h[r-3];var w=h[r-4];f=this.aca(f);h=f.map(function(e){return n.a.Math.ie(w,e)});f=f[h.indexOf(Math.min.apply(Math,h))];e.x=f.x;e.y=f.y;this.adjustRect()}};z.prototype.pU=function(){return this.originalTextAlignCalculated!==this.TextAlign||this.originalTextVerticalAlignCalculated!==this.TextVerticalAlign||this.originalTextColorCalculated!==ja.a.Hk(this.TextColor)||this.originalStrokeColorCalculated!==ja.a.Hk(this.StrokeColor)||this.originalFontSizeCalculated!==this.FontSize||
|
|
this.originalFontCalculated!==this.Font};z.prototype.serialize=function(e,f){if(this.bb)return this.bb;var h=this.$n(),n=this.getContents();this.Lka(document.createElement("canvas").getContext("2d"),f.inverse(),n,h);h=la.a.prototype.serialize.apply(this,arguments);var r=this.Ra();n={};var w=ja.a.Hk(this.FillColor);null!==w?n.color=w:h.removeAttribute("color");h.removeAttribute("interior-color");w=this.Es();var x=this.Zd();if(this.OK&&this.OK.isEqual(x))var y=this.QK;else this.QK&&(delete this.QK,
|
|
delete this.OK),x.nV()||(y=ja.a.$L(x,f));y&&h.setAttribute("fringe",y);this.pU()?(y=this.StrokeColor.KZ(),x=ja.a.rY(this.Font,w),x=y+" "+x,y=ja.a.Jia(this)):(x=this.originalDefaultAppearance,y=this.originalDefaultStyle);var aa=document.createElementNS("","defaultappearance");aa.textContent=x;h.appendChild(aa);x=document.createElementNS("","defaultstyle");x.textContent=y;h.appendChild(x);this.iD&&"left"!==this.iD&&(n.justification=this.iD);y=ja.a.Hk(this.TextColor);null!==y&&h.setAttribute("TextColor",
|
|
y);h.setAttribute("FontSize",w);w=this.Le();w===z.nc.FreeTextCallout&&(this.Yk&&(r=r.slice(0,-2),r=ja.a.Cm(r,f,",",","),n.callout=r),n.head=this.pf(),h.setAttribute("IT",w));for(var da in n)e.setAttribute(da,n[da]);fa.a.FM(this.Rotation)?this.Df("trn-unrotated-rect",!0):(da=this.$d(),da=new ha.d(da.x,da.y,da.x+da.width,da.y+da.height),da.Sp(),this.Db("trn-unrotated-rect",ja.a.Ut(da,f),!0));return h};z.prototype.deserialize=function(e,f){this.TextColor=new ca.a(0,0,0);la.a.prototype.deserialize.apply(this,
|
|
arguments);null!==ja.a.Mi(e.getAttribute("color"))?this.FillColor=this.StrokeColor:this.FillColor=new ca.a(0,0,0,0);var h=ja.a.Vp(e,"defaultappearance","defaultappearance"),n=ja.a.Vp(e,"defaultstyle","defaultstyle"),r=ja.a.QD(h);r.color&&(this.StrokeColor=ja.a.Mi(r.color));r.font&&(this.Font=r.font.name,this.FontSize=r.font.size);r=ja.a.vfa(n);r.font&&(this.Font=r.font.name,this.FontSize=r.font.size);r.textAlign&&(this.TextAlign=r.textAlign);r.JZ&&(this.TextVerticalAlign=r.JZ);r.color&&(this.TextColor=
|
|
ja.a.Mi(r.color));var w=this.mE;w&&(w["font-family"]&&(this.Font=w["font-family"]),w["font-size"]&&(this.FontSize=w["font-size"]),w["text-align"]&&(this.TextAlign=w["text-align"]),w.color&&(this.TextColor=ja.a.Mi(w.color)));this.originalStrokeColorCalculated=ja.a.Hk(this.StrokeColor);this.originalTextAlignCalculated=this.TextAlign;this.originalTextVerticalAlignCalculated=this.TextVerticalAlign;this.originalTextColorCalculated=r.color?r.color:ja.a.Hk(this.TextColor);this.originalFontSizeCalculated=
|
|
this.FontSize;this.originalFontCalculated=this.Font;this.originalDefaultStyle=e;this.originalDefaultAppearance=h;this.originalDefaultStyle=n;this.fringe?this.ky(this.fringe):this.ky(new ha.d(0,0,0,0));if((h=e.getAttribute("IT")||e.getAttribute("it"))&&h===z.nc.FreeTextCallout){this.Zt(z.nc.FreeTextCallout);this.th(e.getAttribute("head")||"OpenArrow");if(n=e.getAttribute("callout"))for(h=ja.a.In(n,f),3>h.length&&(n=ja.a.In(n,f,",",","),4>n.length&&(h=n,this.Yk=h.length-1)),n=this.Ra(),r=0;r<h.length;r++)n[r]=
|
|
new ha.b(parseFloat(h[r].x),parseFloat(h[r].y));else this.Yk=0;this.Ra().length<this.Yk+3&&(this.ga[this.ga.length]=new ha.b(this.X+this.Zd().x1,this.Y+this.Zd().y2),this.ga[this.ga.length]=new ha.b(this.X+this.Width-this.Zd().x2,this.Y+this.Height-this.Zd().y1));this.H4()}else this.Zt(z.nc.FreeText),this.ga[0]=new ha.b(this.X+this.Zd().x1,this.Y+this.Zd().y2),this.ga[1]=new ha.b(this.X+this.Width-this.Zd().x2,this.Y+this.Height-this.Zd().y1);if(h=e.getAttribute("justification"))this.iD=h;e.querySelector("span")&&
|
|
(this.TextAlign=(h=(e.querySelector("span").getAttribute("style")||"").match(/text-align:[\s]*(\w*)/))?h[1]:this.TextAlign);h=ja.a.Mi(e.getAttribute("TextColor"));null!==h&&(this.TextColor=h);h=e.getAttribute("FontSize");Object(x.isUndefined)(h)||Object(x.isNull)(h)||(this.FontSize=h+"pt");(h=e.getAttribute("rotation"))&&(this.Rotation=parseInt(h,10));this.Uc()||this.adjustRect();this.OK=this.Zd()};z.prototype.rk=function(){var e=this.Kh();return e&&e!==f.a.NONE};z.prototype.Wt=function(e){e&&e!==
|
|
f.a.NONE?this.Db("trn-auto-size-type",e):this.Df("trn-auto-size-type")};z.prototype.wE=function(e){e?this.Db("pdftron_freetext_date",e):this.Df("pdftron_freetext_date")};z.prototype.QI=function(){return this.ac("pdftron_freetext_date")};z.prototype.Kh=function(){var e=this.ac("trn-auto-size-type");return e?e:f.a.NONE};z.prototype.ME=function(e,f,h,n){var r=n.x,w=n.y,x=n.width;n=n.height;if(this.Le()===z.nc.FreeText){n=this.$d();r=n.x;w=n.y;x=n.width;n=n.height;var y=this.Zd();r+=y.x1;w+=y.y2;x-=y.x1+
|
|
y.x2;n-=y.y1+y.y2}e.textBaseline="top";e.fillStyle=this.TextColor.toString();e.strokeStyle=this.TextColor.toString();var aa=e.lineWidth;this.Le()===z.nc.FreeTextCallout&&0!==this.Rotation&&(y=new ha.b(r,w),e.translate(y.X,y.Y),e.rotate(-fa.a.tb(this.Rotation)),e.translate(-y.X,-y.Y),90===this.Rotation?e.translate(-n,0):180===this.Rotation?e.translate(-x,-n):270===this.Rotation&&e.translate(0,-x));e.beginPath();var da=Math.max(x-2*aa,0),ba=Math.max(n-2*aa,0);this.Le()!==z.nc.FreeTextCallout||90!==
|
|
this.Rotation&&270!==this.Rotation||(y=da,da=ba,ba=y);e.rect(r+aa,w+aa,da,ba);e.clip();e.textAlign=this.TextAlign;r=this.Ow(f);w=x-2*r;x=Math.round(n-2*r);this.Le()!==z.nc.FreeTextCallout||90!==this.Rotation&&270!==this.Rotation||(y=w,w=x,x=y);n=this.gC({x:void 0,y:void 0,width:w,height:x},f);f=n.XB;n=n.vI;e.font=f+n+" "+this.Font;return{lines:this.Po(e,h,w),pad:r,maxWidth:w,maxHeight:x,XB:f,vI:n}};z.prototype.Lka=function(e,f,h,n){(e=this.ME(e,f,h,n).lines)&&0<e.length&&(this.isImporting=!0,this.Db("trn-wrapped-text-lines",
|
|
JSON.stringify(e)),this.isImporting=!1)};z.prototype.Faa=function(){return this.editor};z.prototype.Mh=function(f){var h=this;if(window.utils.isPdfjs)return Object(pa.j)("Custom appearances are unavailable in PDFJS Express."),e.prototype.Mh.call(this,f);var n=document.createElement("canvas"),r=this.Width,x=this.Height,z=Math.max(2,Object(y.k)());n.width=r*z;n.height=x*z;n.style.width=r+"px";n.style.height=x+"px";n.className="for-worker";r=n.getContext("2d");r.scale(z,z);r.translate(-this.X,-this.Y);
|
|
this.draw(r,f);return new Promise(function(e,f){n.toBlob(function(n){return Object(ea.b)(h,void 0,void 0,function(){var h,r;return Object(ea.d)(this,function(x){switch(x.label){case 0:return n?[4,Object(w.c)(n,{useDownloader:!1,extension:"png",loadAsPDF:!0})]:[2,e(void 0)];case 1:h=x.ea();try{return r=this.un(h,{pageNumber:1}),[2,e(r)]}catch(Ba){return[2,f(Ba)]}}})})})})};z.prototype.G7=function(){return Object(ea.b)(this,void 0,void 0,function(){var e,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:e=
|
|
this.Kh();this.Wt(f.a.Ku);if(!this.editor||e===f.a.Ku)return[3,2];n=new h.a(this.editor.YL,this);return[4,n.initialize()];case 1:r.ea(),this.editor=n,r.label=2;case 2:return[2]}})})};z.prototype.B9=function(){return Object(ea.b)(this,void 0,Promise,function(){var e,h,n,r;return Object(ea.d)(this,function(){e=this.Kh();this.Wt(f.a.Pm);if(this.editor&&e!==f.a.Pm)for(h=this.editor.editor.keyboard.bindings[13],n=0;n<h.length;n++)if(r=h[n],"disable-enter"===r.identifier){h.splice(n,1);break}return[2]})})};
|
|
z.prototype.rotate=function(e){this.cc(this.Yn(fa.a.tb(this.Rotation)-e));e=fa.a.kk(fa.a.yk(fa.a.tb(this.Rotation)-e));this.Kh()!==f.a.NONE&&0!==e%90&&this.Wt(f.a.NONE);this.Rotation=e};z.prototype.Yn=function(e){void 0===e&&(e=fa.a.tb(this.Rotation));return fa.a.Kw(this.$d(),e,this.oe)};z.prototype.H4=function(){var e=this.ga.slice(-2);e[0].X=this.X+this.Zd().x1;e[1].X=this.X-this.Zd().x2+this.Width;e[0].Y=this.Y+this.Zd().y2;e[1].Y=this.Y-this.Zd().y1+this.Height};z.EXPORT_CALCULATED_FONT_SIZE=
|
|
!0;z.K_={NONE:f.a.NONE,AUTO:f.a.Pm,FIXED_WIDTH:f.a.Lu,FIXED_HEIGHT:f.a.Ku};z.nc={FreeText:"FreeText",FreeTextCallout:"FreeTextCallout",FreeTextTypeWriter:"FreeTextTypeWriter"};return z}(ka.a);e.prototype.elementName="freetext";e.prototype.selectionModel=da.d;e.prototype=Object.assign(new ka.a,e.prototype);Object(ia.b)(e.prototype,new ba.a);Object(z.a)(e.prototype,{CalloutLineCount:{get:function(){return this.Yk},set:function(e){this.Yk=e;this.Ma()}},TextColor:{get:function(){return this.EO},set:function(e){this.EO=
|
|
Object(ca.b)(this,e);this.Ma();if(!this.isImporting&&this.jk()){var f=Object(ea.a)({},this.jk());Object.values(f).forEach(function(f){f&&(f.color=e.fr())});this.oy(f)}}},FontSize:{get:function(){return this.qO},set:function(e){this.qO=e;this.Ma()}},Font:{get:function(){return this.xz},set:function(e){this.xz=e;this.Ma()}},TextAlign:{get:function(){return this.DO},set:function(e){this.DO=e;this.Ma()}},TextVerticalAlign:{get:function(){return this.FO},set:function(e){this.FO=e;this.Ma()}},Rotation:{get:function(){return this.yO},
|
|
set:function(e){this.yO=e;this.Ma()}}},["autoSizeProperties"]);(window.Annotations||{}).gb=e},function(ia,ba,e){var ea=e(1);ia=e(155);var x=e(17),ha=e(143),ca=e(12),da=!1;e=function(e){function w(w){w=e.call(this,w)||this;w.Listable=!0;w.Subject=ca.a.Gc("3D");w.ev=!0;w.kH="";return w}Object(ea.c)(w,e);w.prototype.createInnerElement=function(){var e=document.createElement("div");e.id="Model3DAnnot_"+this.Id;e.innerHTML='\n <model-viewer\n src="'+this.kH+'"\n style="width: 100%; height: 100%;"\n data-js-focus-visible\n >\n </model-viewer>';
|
|
if(!da){da=!0;var n=document.createElement("script"),h="model-viewer-1.3.0.min.js";x.i?(h=document.createElement("script"),h.src=window.Ya.ae()+"external/webcomponents-bundle.js",e.appendChild(h),h="model-viewer-legacy-1.3.0.min.js",n.setAttribute("nomodule","")):n.setAttribute("type","module");n.src=window.Ya.ae()+"external/"+h;e.appendChild(n)}return e};w.prototype.wY=function(e){this.kH=e};w.prototype.RS=function(){return this.kH};w.prototype.Waa=function(){return this.ev};w.prototype.JY=function(e){this.ev=
|
|
e};w.prototype.sS=function(){if(this.ev){this.NoMove=!0;var e=this.rC();e&&e.querySelector("model-viewer")&&e.querySelector("model-viewer").setAttribute("camera-controls","")}};w.prototype.ZR=function(){if(this.ev){this.NoMove=!1;var e=this.rC();e&&e.querySelector("model-viewer")&&e.querySelector("model-viewer").removeAttribute("camera-controls")}};w.prototype.deserialize=function(e,n,h){ha.a.prototype.deserialize.call(this,e,n,h);n=e.getElementsByTagName("data3D");0<n.length&&this.wY(n[0].textContent);
|
|
this.JY(e.getAttribute("interactive"))};w.prototype.serialize=function(e,n){ha.a.prototype.serialize.call(this,e,n);n=document.createElementNS("","data3D");n.textContent=this.RS();n.setAttribute("type","glb");e.appendChild(n);e.setAttribute("interactive",this.ev);return e};return w}(ha.a);e.prototype.elementName="model3D";e.prototype.selectionModel=ia.a;(window.Annotations||{}).Cj=e},function(ia,ba,e){function ea(e,f){return 0===e.y-f.y?(e.x-f.x)/1E-9*-1:(e.x-f.x)/(e.y-f.y)*-1}function x(e){return 0>
|
|
e?2*Math.PI-Math.abs(e):e}function ha(e){return!(0<(e[1].x-e[0].x)*(e[2].y-e[0].y)-(e[1].y-e[0].y)*(e[2].x-e[0].x))}function ca(e,f){return Math.atan2(e.y-f.y,e.x-f.x)}function da(e,f,n){return new h.b(e.x+n*Math.cos(f),e.y+n*Math.sin(f))}var aa=e(1);ia=e(53);ba=e(54);var w=e(84),y=e(129),n=e(35),h=e(4),f=e(6),r=e(92),z=window.Annotations||{};e=function(e){function n(f){var h=e.call(this,f)||this;h.On=[];h.Av=0;h.mj=0;h.PM=.1;h.EU=6;h.Oj=0;h.Sr=0;h.lu=0;h.Rc={x:0,y:0};h.Wq={};h.Wa=[];h.fv=!1;h["_xsi:type"]=
|
|
"ArcDimension";h.Subject="Arc";h.Ej=null;h.Vf=null;h.Eb={x:0,y:0};h.Jc={x:0,y:0};h.On=[];h.Av=0;h.mj=0;h.PM=.1;h.EU=6;h.Oj=0;h.Sr=0;h.lu=0;h.Rc={x:0,y:0};h.Wq={};h.u2=1;h.n2=1;h.cd(f);return h}Object(aa.c)(n,e);n.prototype.resize=function(e){var f=e.x1;e=e.y1;var h=f-this.X,n=e-this.Y;if(0!==h||0!==n){for(var r=0;r<this.ga.length;r++)this.ga[r].x+=h,this.ga[r].y+=n;Object.getOwnPropertyDescriptor(z.Annotation.prototype,"X").set.call(this,f);Object.getOwnPropertyDescriptor(z.Annotation.prototype,"Y").set.call(this,
|
|
e)}};n.prototype.adjustRect=function(){this.Measure&&this.Td();z.Og.prototype.adjustRect.call(this)};n.prototype.Td=function(){var e=this.Measure.axis[0],f=this.Measure.distance,h=this.mj*e.factor*f[0].factor;e=["Length: "+this.Kl(this.Av*e.factor*f[0].factor,f),"Radius: "+this.Kl(h,f),"Central Angle: "+(180/Math.PI*this.lu).toFixed(2)+"\u00b0"];this.setContents(e.join("\n"))};n.prototype.sh=function(e,f,h){this.ga[e].x=f;this.ga[e].y=h;this.adjustRect();this.Ma()};n.prototype.draw=function(e,f,h){this.dc(e,
|
|
f);3===this.ga.length?(this.l8(e),this.Measure&&this.$H(e,h),this.J$(),this.K$()):2===this.ga.length&&this.e9(e,h);this.Measure&&this.Td()};n.prototype.K$=function(){var e=this.Sa();this.Rc.x<e.x1?e.x1=this.Rc.x:this.Rc.x>e.x2?e.x2=this.Rc.x:this.Rc.y<e.y1?e.y1=this.Rc.y:this.Rc.y>e.y2&&(e.y2=this.Rc.y);this.On.forEach(function(f){f[0]<e.x1?e.x1=f[0]:f[0]>e.x2&&(e.x2=f[0]);f[1]<e.y1?e.y1=f[1]:f[1]>e.y2&&(e.y2=f[1])});this.cc(e)};n.prototype.$H=function(e,f){null!==this.StrokeColor&&(e.fillStyle=this.StrokeColor.toString());
|
|
var h=this.Measure.distance;h=this.Kl(this.mj*this.Measure.axis[0].factor*h[0].factor,h);var n=(this.ga[0].x+this.Rc.x)/2,r=(this.ga[0].y+this.Rc.y)/2,w=this.Oj;0>w&&(w=2*Math.PI+this.Oj);var x=0;0<f&&(x=Math.abs((f-360)*Math.PI/180));e.translate(n,r);w<Math.PI/2+x||w>Math.PI/2+x+Math.PI?e.rotate(this.Oj+Math.PI+Math.PI):e.rotate(this.Oj+Math.PI);e.translate(-n,-r+10+this.StrokeThickness/2);e.fillText(h,n-h.length,r)};n.prototype.l8=function(e){var f=this.ga,n=ea(f[0],f[1]),r=ea(f[1],f[2]);var w=
|
|
[(f[0].x+f[1].x)/2,(f[0].y+f[1].y)/2];w=-1*(n*w[0]-w[1]);f=[(f[1].x+f[2].x)/2,(f[1].y+f[2].y)/2];r=(-1*(r*f[0]-f[1])-w)/(n-r);this.Rc=new h.b(r,r*n+w);this.mj=this.ga[0].ie(this.Rc);this.Oj=ca(this.ga[0],this.Rc);this.Sr=ca(this.ga[2],this.Rc);this.u5();this.Av=this.mj*this.lu;e.lineJoin="round";e.lineCap="round";this.Measure&&(e.beginPath(),e.setLineDash([5,5]),e.moveTo(this.ga[2].x,this.ga[2].y),e.lineTo(this.Rc.x,this.Rc.y),e.lineTo(this.ga[0].x,this.ga[0].y),e.stroke());e.beginPath();e.setLineDash([]);
|
|
e.arc(this.Rc.x,this.Rc.y,this.mj,this.Oj,this.Sr,ha(this.ga));e.stroke();this.Measure&&(e.beginPath(),e.setLineDash([]),e.arc(this.Rc.x,this.Rc.y,this.mj/this.EU,this.Oj,this.Sr,ha(this.ga)),e.stroke())};n.prototype.u5=function(){var e=x(this.Oj),f=x(this.Sr);e=e>f?2*Math.PI-e+f:e-f;e=Math.abs(e);ha(this.ga)&&(e=2*Math.PI-e);this.lu=e};n.prototype.finish=function(){this.adjustRect()};n.prototype.e9=function(e,f){e.beginPath();e.moveTo(this.ga[0].x,this.ga[0].y);0===f?e.quadraticCurveTo((this.ga[0].x+
|
|
this.ga[1].x)/2,this.ga[1].y,this.ga[1].x,this.ga[1].y):e.quadraticCurveTo(this.ga[1].x,(this.ga[0].y+this.ga[1].y)/2,this.ga[1].x,this.ga[1].y);e.stroke()};n.prototype.Fba=function(){var e=this.Measure.distance;return this.Kl(this.mj*this.Measure.axis[0].factor*e[0].factor,e)};n.prototype.getLength=function(){var e=this.Measure.distance;return this.Kl(this.Av*this.Measure.axis[0].factor*e[0].factor,e)};n.prototype.J$=function(){var e=x(this.Oj),f=x(this.Sr);this.On=[];if(ha(this.ga))for(f>e&&(f-=
|
|
2*Math.PI);e>=f;e-=this.PM){var h=da(this.Rc,e,this.mj);this.On.push([h.x,h.y])}else for(f<e&&(f+=2*Math.PI);e<=f;e+=this.PM)h=da(this.Rc,e,this.mj),this.On.push([h.x,h.y])};n.prototype.bC=function(){return Object.getPrototypeOf(this).constructor};n.prototype.sj=function(e){var f=[],n;for(n in e)f.push(new h.b(e[n][0],e[n][1]));this.ga=f;this.adjustRect();this.Ma()};n.prototype.Aba=function(){var e=[],f;for(f in this.ga)e.push([this.ga[f].x,this.ga[f].y]);return e};n.prototype.serialize=function(e,
|
|
n){var r=z.oi.prototype.serialize.apply(this,arguments),w=this.Ra(),x=document.createElementNS("","inklist"),y=[];for(aa in this.On)y.push(new h.b(this.On[aa][0],this.On[aa][1]));y.push(w[2]);var aa=document.createElementNS("","gesture");aa.textContent=f.a.Cm(y,n);x.appendChild(aa);x.appendChild(this.uY([w[0],this.Rc],n),n);x.appendChild(this.uY([this.Rc,w[2]],n),n);r.appendChild(x);w&&0<w.length&&(x=document.createElementNS("","vertices"),x.textContent=f.a.Cm(w,n),r.appendChild(x));this.Measure&&
|
|
r.appendChild(f.a.Tt(this.Measure));return r};n.prototype.uY=function(e,h){var n=document.createElementNS("","gesture");n.textContent=f.a.Cm(e,h);return n};n.prototype.deserialize=function(e,h){var n=e.querySelector("apref");null!==n&&e.removeChild(n);r.a.prototype.deserialize.apply(this,arguments);this.ga=f.a.In(e.querySelector("vertices").textContent,h);n=e.querySelector("measure");"ArcDimension"===e.getAttribute("IT")&&n&&(this.Measure=f.a.hs(n));this.Ma();this.adjustRect()};return n}(r.a);e.prototype.elementName=
|
|
"ink";e.prototype.shouldSimplifyPath=!1;e.prototype.selectionModel=y.a;e.prototype=Object.assign(new r.a,e.prototype);Object(ia.c)(e.prototype,[new w.a,new ba.b]);Object(n.a)(e.prototype,{Radius:{get:function(){return this.Fba()}},Length:{get:function(){return this.getLength()}},Angle:{get:function(){return 180*this.lu/Math.PI}},Path:{get:function(){return this.Aba()},set:function(e){this.sj(e)}},Properties:{get:function(){return{radius:this.mj,sweepAngle:this.lu,length:this.Av}}},Type:{get:function(){return this["_xsi:type"]}}},
|
|
["Style","Dashes","Precision","Scale"]);(window.Annotations||{}).Eu=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(8),ca=e(34);ia=e(87);var da=e(12);e=function(e){function w(w){var n=e.call(this,w)||this;n.Tm=new ha.a(255,255,0);n["_xsi:type"]="Highlight";n.Subject=da.a.Gc("highlight");n.Opacity=1;n.BlendMode="multiply";n.cd(w);return n}Object(ea.c)(w,e);w.prototype.Uc=function(){return null};w.prototype.draw=function(e,n){this.dc(e,n);Object(ca.g)("multiply")&&this.BlendMode||!(Object(x.isUndefined)(this.Opacity)||
|
|
Object(x.isNull)(this.Opacity)||this.Opacity>w.opacityCap)||(e.globalAlpha=w.opacityCap);e.fillStyle=this.StrokeColor.toString();e.beginPath();for(var h=0;h<this.Quads.length;h++)n=this.Quads[h],e.moveTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3),e.lineTo(n.x4,n.y4);e.fill()};w.opacityCap=.3;return w}(ia.a);e.prototype.elementName="highlight";e.prototype=Object.assign(new ia.a,e.prototype);(window.Annotations||{}).DF=e},function(ia,ba,e){var ea=e(1);ia=e(87);var x=e(6),ha=e(12);e=function(e){function da(x){var w=
|
|
e.call(this,x)||this;w["_xsi:type"]="Redact";w.Subject=ha.a.Gc("redact");w.Opacity=1;w.cd(x);return w}Object(ea.c)(da,e);da.prototype.draw=function(){};da.prototype.serialize=function(){var x=e.prototype.serialize.apply(this,arguments);this.We(x,"overlay-text");this.We(x,"overlay-text-repeat");this.We(x,"justification");this.We(x,"defaultappearance");return x};da.prototype.deserialize=function(aa){e.prototype.deserialize.apply(this,arguments);this.tj(aa,"overlay-text");this.tj(aa,"overlay-text-repeat");
|
|
this.tj(aa,"justification");this.defaultappearance=x.a.Vp(aa,"defaultappearance","defaultappearance")};return da}(ia.a);e.prototype.elementName="redact";(window.Annotations||{}).Oma=e},function(ia,ba,e){var ea=e(1);ia=e(87);var x=e(12);e=function(e){function ba(da){var aa=e.call(this,da)||this;aa["_xsi:type"]="Squiggly";aa.Subject=x.a.Gc("squiggly");aa.cd(da);return aa}Object(ea.c)(ba,e);ba.prototype.draw=function(e,x){this.dc(e,x);for(x=0;x<this.Yf.length;x++){var w=this.Yf[x];var y=Math.sqrt((w.x1-
|
|
w.x2)*(w.x1-w.x2)+(w.y1-w.y2)*(w.y1-w.y2));var n=5/3,h=y/10;e.save();e.translate(w.x1,w.y1-1.25);e.rotate(Math.atan2(w.y2-w.y1,w.x2-w.x1));w=Math.abs(w.y1-w.y4);e.beginPath();e.rect(0,-w,y,w+1.25+1);e.clip();e.beginPath();for(var f=0;f<2*h;f+=2){var r=5*f;var z=5*f+n/2;var aa=n;var da=5*(f+1)-n/2;var ba=n;y=5*(f+1);w=0;e.moveTo(r,0);e.bezierCurveTo(z,aa,da,ba,y,w);z=5*(f+1)+n/2;aa=-n;da=5*(f+2)-n/2;ba=-n;y=5*(f+2);w=0;e.bezierCurveTo(z,aa,da,ba,y,w)}e.stroke();e.restore()}};return ba}(ia.a);e.prototype.elementName=
|
|
"squiggly";(window.Annotations||{}).EF=e},function(ia,ba,e){var ea=e(1);ia=e(87);var x=e(12);e=function(e){function ba(da){var aa=e.call(this,da)||this;aa["_xsi:type"]="Strikeout";aa.Subject=x.a.Gc("strikeout");aa.cd(da);return aa}Object(ea.c)(ba,e);ba.prototype.draw=function(e,x){this.dc(e,x);0===this.StrokeThickness&&(e.lineWidth=1);for(x=0;x<this.Yf.length;x++){var w=this.Yf[x];var y=(w.x1+w.x4)/2,n=(w.y1+w.y4)/2,h=(w.x2+w.x3)/2;w=(w.y2+w.y3)/2;e.beginPath();e.moveTo(y,n);e.lineTo(h,w);e.stroke()}};
|
|
return ba}(ia.a);e.prototype.elementName="strikeout";(window.Annotations||{}).FF=e},function(ia,ba,e){var ea=e(1);ia=e(87);var x=e(12);e=function(e){function ba(da){var aa=e.call(this,da)||this;aa["_xsi:type"]="Underline";aa.Subject=x.a.Gc("underline");aa.cd(da);return aa}Object(ea.c)(ba,e);ba.prototype.draw=function(e,x){this.dc(e,x);for(var w=0;w<this.Yf.length;w++)x=this.Yf[w],e.beginPath(),e.moveTo(x.x1,x.y1),e.lineTo(x.x2,x.y2),e.closePath(),e.stroke()};return ba}(ia.a);e.prototype.elementName=
|
|
"underline";(window.Annotations||{}).GF=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(4);ia=e(85);var ca=e(12);e=function(e){function aa(w){var y=e.call(this)||this;y["_xsi:type"]="Custom";y.Subject=ca.a.Gc("custom");y.Opacity=1;if(Object(x.isObject)(w)&&(Object(x.isUndefined)(w.page)||(y.PageNumber=parseInt(w.page,10)+1),Object(x.isUndefined)(w.appearances)||(y.appearances=w.appearances),!Object(x.isUndefined)(w.rect))){var n=new ha.d(w.rect.x1,w.rect.y1,w.rect.x2,w.rect.y2);0>n.Ba()&&
|
|
(w=n.x1,n.x1=n.x2,n.x2=w);0>n.wa()&&(w=n.y1,n.y1=n.y2,n.y2=w);y.X=n.x1;y.Y=n.y1;y.Uu=n.Ba();y.Tu=n.wa()}return y}Object(ea.c)(aa,e);aa.prototype.draw=function(){};aa.prototype.serialize=function(w,x){return this.bb?this.bb:e.prototype.serialize.call(this,w,x)};aa.prototype.deserialize=function(w,x,n){e.prototype.deserialize.call(this,w,x,n)};return aa}(ia.a);e.prototype.elementName="custom";e.prototype=Object.assign(new ia.a,e.prototype);(window.Annotations||{}).MN=e},function(ia,ba,e){var ea=e(1),
|
|
x=e(4),ha=e(2);ia=e(36);var ca=2,da=window.Annotations||{};ia=function(e){function w(w,n){var h=e.call(this,n)||this;w||Object(ha.j)("Custom annotation was initialized without a proper fixed type. Please provide a type via the super constructor.");h.Lr=h["_xsi:type"]=h.Subject=h.elementName=w;h.Wq={};h.cd(n);return h}Object(ea.c)(w,e);w.D6=function(e,n){var h=function(f){function h(h){var r=f.call(this,e,h)||this;n.apply(r,[h]);r.setContents("");return r}Object(ea.c)(h,f);h.prototype.serialize=function(e){e=
|
|
da.Qm.prototype.serialize.apply(this,arguments);e=n.prototype.serialize.apply(this,arguments);for(var f=0;f<e.childElementCount;f++)for(var h=Object(ea.e)(e.getElementsByTagName(e.childNodes[f].tagName));1<h.length;){var r=h.pop();r.parentElement&&r.parentElement===e&&e.removeChild(r)}return e};h.prototype.deserialize=function(){da.Qm.prototype.deserialize.apply(this,arguments);n.prototype.deserialize.apply(this,arguments)};return h}(w);h.prototype.elementName=e;h.prototype.draw=n.prototype.draw;
|
|
h.prototype=Object.assign(new n,w.prototype,h.prototype);return h};Object.defineProperty(w,"QualityScale",{get:function(){return ca},set:function(e){ca=e||1},enumerable:!1,configurable:!0});Object.defineProperty(w,"SerializationType",{get:function(){this.ZL||(this.ZL="stamp");return this.ZL},set:function(e){this.ZL=e||"stamp"},enumerable:!1,configurable:!0});Object.defineProperty(w,"OutputImagePadding",{get:function(){return this.xU||0},set:function(e){this.xU=e||0},enumerable:!1,configurable:!0});
|
|
Object.defineProperty(w.prototype,"SerializedData",{get:function(){this.Wq||(this.Wq={});return this.Wq},enumerable:!1,configurable:!0});w.prototype.bC=function(){return this.constructor};w.prototype.zC=function(){return"custom"===this.bC().SerializationType?this.elementName:"stamp"};w.prototype.Gi=function(w){var n=w.getElementsByTagName("trn-custom-data");return n&&0<n.length&&(n=JSON.parse(n[0].getAttribute("bytes")))&&n["trn-annot-type"]?!0:e.prototype.Gi.call(this,w)};w.prototype.N$=function(e){var n=
|
|
new x.e,h=ca,f=this.X+this.Width/2,r=this.Y+this.Height/2,w=document.createElement("canvas"),y=this.bC().xU||0;w.width=(this.Width+y)*h;w.height=(this.Height+y)*h;y=w.getContext("2d");y.PJ=!1;n=n.Pk(f,r,0,0).scale(h,h).Pk(0,0,w.width/2,w.height/2).Ds().Mk();y.setTransform(n[0],n[1],n[2],n[3],n[4],n[5]);n=this.Opacity;this.Opacity=1;this.draw(y,e);this.Opacity=n;return w.toDataURL()};w.prototype.draw=function(){};w.prototype.serialize=function(w,n){var h=this.zC();if(this.bb&&this.bb.localName===h)return this.bb;
|
|
this.bb&&this.bb.localName!==h&&(this.bb=null);this.Dj["trn-annot-type"]=this.Lr;this.Dj["trn-annot-data"]=JSON.stringify(this.Wq);w=e.prototype.serialize.call(this,w,n);if("custom"!==this.bC().SerializationType){n=this.N$(n);if(!n)return w;h=document.createElementNS("","imagedata");h.textContent=n.pj("%0A","");w.appendChild(h)}return w};w.prototype.deserialize=function(w,n,h){var f=this.zC();if(this.bb&&this.bb.localName!==f){f=document.createElement(f);for(var r=0;r<this.bb.attributes.length;r++)f.setAttribute(this.bb.attributes[r].name,
|
|
this.bb.attributes[r].value);for(r=0;r<this.bb.childNodes.length;r++)f.appendChild(this.bb.childNodes[r].cloneNode(!0));this.bb=f}e.prototype.deserialize.call(this,w,n,h);try{var x=JSON.parse(this.ac("trn-annot-data"))}catch(fa){x=this.ac("trn-annot-data")}this.Wq=x};w.SerializationTypes={STAMP:"stamp",CUSTOM:"custom"};return w}(ia.a);ia.prototype.elementName="trn-custom-annot";ia.prototype=Object.assign(new da.oi,ia.prototype);(window.Annotations||{}).Qm=ia},function(ia,ba,e){var ea=e(1),x=e(36),
|
|
ha=e(8);ia=e(41);var ca=e(2),da=e(213),aa=e(333),w=e(6);ba=e(35);var y=e(12),n,h=(n={},n.SoundWave={width:31,height:31},n);e=function(e){function f(f){f=e.call(this,f)||this;f.audio={blob:null,aR:null,lR:null,ds:null,encoding:null,filter:"FlateDecode",sampleRate:null,size:null};f.Icon="SoundWave";f["_xsi:type"]="Sound";f.Subject=y.a.Gc("sound");f.Width=h[f.Icon].width;f.Height=h[f.Icon].height;f.NoZoom=!0;f.NoRotate=!0;f.Fj=null;f.Su=!0;return f}Object(ea.c)(f,e);f.prototype.Uc=function(){return null};
|
|
f.prototype.serialize=function(f,h){if(this.bb)return this.bb;f=e.prototype.serialize.call(this,f,h);f.setAttribute("color",w.a.Hk(this.FillColor));f.setAttribute("icon",this.Icon);f.setAttribute("bits",""+this.audio.aR);f.setAttribute("channels",""+this.audio.lR);f.setAttribute("encoding",this.audio.encoding);f.setAttribute("rate",""+this.audio.sampleRate);h=document.createElementNS("","data");h.setAttributeNS("","mode","raw");h.setAttributeNS("","encoding","hex");h.setAttributeNS("","length",""+
|
|
this.audio.size);h.setAttributeNS("","filter",this.audio.filter);h.textContent=this.audio.ds;f.appendChild(h);return f};f.prototype.deserialize=function(e){x.a.prototype.deserialize.apply(this,arguments);var f=e.getAttribute("icon")||"SoundWave";this.Icon=f;this.FillColor=this.StrokeColor;this.StrokeColor=new ha.a(0,0,0,1);h[f].width=this.Width;h[f].height=this.Height;(f=e.getElementsByTagName("contents")[0])&&this.setContents(f.textContent);(f=e.getElementsByTagName("data")[0])?this.audio={blob:null,
|
|
aR:Number(e.getAttribute("bits")),lR:Number(e.getAttribute("channels")),encoding:e.getAttribute("encoding"),sampleRate:Number(e.getAttribute("rate")),filter:f.getAttribute("filter")?f.getAttribute("filter"):"FlateDecode",size:Number(f.getAttribute("length")),ds:f.textContent}:ca.j("Sound annotation failed to deserialize. No data found in data element.")};f.prototype.draw=function(e){e.strokeStyle=this.StrokeColor.toString();e.fillStyle=this.FillColor.toString();e.globalAlpha=0===this.Opacity?0:this.Opacity||
|
|
1;e.translate(this.X,this.Y);switch(this.Icon){case "SoundWave":this.kS(e);break;default:this.kS(e)}};f.prototype.kS=function(e){var f=this.Width,h=.05*f;f/=4;var n=this.Height/3,r=n+n/2;e.beginPath();e.rect(0+h,n,f,n);var w=f+h;e.moveTo(w,n);e.lineTo(w+f,n-n/2);e.lineTo(w+f,n+1.5*n);e.lineTo(w,n+n);e.fill();w=2.5*f+h;var x=w+.5*f;e.moveTo(w,n);e.quadraticCurveTo(x,r,w,2*n);w=2.8*f+h;x=w+.75*f;e.moveTo(w,.75*n);e.quadraticCurveTo(x,r,w,2.25*n);w=3.1*f+h;x=w+f;e.moveTo(w,.5*n);e.quadraticCurveTo(x,
|
|
r,w,2.5*n);e.stroke()};f.prototype.zca=function(){return null!==this.audio.ds&&void 0!==this.audio.ds};f.prototype.rga=function(){return Object(ea.b)(this,void 0,Promise,function(){var e,f,h;return Object(ea.d)(this,function(n){switch(n.label){case 0:if(!this.audio.ds)return[2,null];n.label=1;case 1:return n.Gg.push([1,3,,4]),e=new Uint8Array(Object(aa.a)(this.audio.ds)),[4,Object(da.a)(this.audio.filter,e)];case 2:return f=n.ea(),this.audio.blob=new Blob([f]),[3,4];case 3:throw h=n.ea(),ca.g(h),
|
|
"Failed to prepare audio data for playback. Decoding data failed.";case 4:return[2]}})})};return f}(x.a);e.prototype.elementName="sound";e.prototype.selectionModel=ia.l;e.prototype=Object.assign(new x.a,e.prototype);Object(ba.a)(e.prototype,{Icon:{get:function(){return this.ri},set:function(e){this.ri=e;this.Width=h[this.ri].width;this.Height=h[this.ri].height;this.Ma()}}});(window.Annotations||{}).rz=e},function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(4),da=e(145),aa=window,w=aa.Annotations||
|
|
{},y={TS:function(e,h){var f=h.ta();h=h.getDocument();var n=[];if(!e||h&&h.sk())n=f.Pb().filter(function(e){return e instanceof da.a});else if(Object(x.isArray)(e))n=e.filter(function(e){return e instanceof da.a});else if(e instanceof da.a)n=[e];else{Object(ha.j)("The selected annotation can`t be redacted");return}0===n.length&&Object(ha.j)("No redaction annotations selected");return n},Tba:function(e,h){var f=h.ta(),n=f.Pb().filter(function(e){return!(e instanceof da.a)});return{redactions:y.Iba(e,
|
|
h),annots:f.Rp({annotList:n})}},Iba:function(e,h){var f=h.ta(),n=[];y.TS(e,h).forEach(function(e){1===e.Ls().length?n.push(e):e.Ls().forEach(function(f){var h=Object.assign(new da.a,e);h.Quads=[new ca.c(f.x1,f.y2,f.x2,f.y2,f.x2,f.y1,f.x1,f.y1)];n.push(h)})});return f.Rp({annotList:n})},fH:function(e,h){return Object(ea.b)(this,void 0,Promise,function(){var f,n,w,x;return Object(ea.d)(this,function(r){switch(r.label){case 0:f=h.ta();n=h.getDocument();if(!f.YJ())return Object(ha.j)("Applying Redactions is not enabled. Please ensure the following criteria have been met:\n1. instance.Core.annotationManager.enableRedaction() has been called\n2. The Full API has been enabled\n3. You are redacting a PDF document. If not, please pass the loadAsPDF: true option to the WebViewer constructor"),
|
|
[2,Promise.reject("Applying Redactions is not enabled. Please ensure the following criteria have been met:\n1. instance.Core.annotationManager.enableRedaction() has been called\n2. The Full API has been enabled\n3. You are redacting a PDF document. If not, please pass the loadAsPDF: true option to the WebViewer constructor")];if(n.sk())return[2,n.Dy(e,h)];w=y.TS(e,h);return[4,aa.PDFNet.initialize()];case 1:return r.ea(),[4,n.Gf()];case 2:return x=r.ea(),[4,y.dia(x,w)];case 3:return r.ea(),[2,aa.PDFNet.runWithCleanup(function(){return Object(ea.b)(this,
|
|
void 0,void 0,function(){var e,n=this;return Object(ea.d)(this,function(r){switch(r.label){case 0:return e=y.W$(w),[4,Promise.all(Array.from(e.entries()).map(function(e){var r=e[0],w=e[1];return Object(ea.b)(n,void 0,void 0,function(){var e,n,z;return Object(ea.d)(this,function(da){switch(da.label){case 0:return aa.PDFNet.startDeallocateStack(),x.lock(),[4,y.Hba(r)];case 1:return e=da.ea(),[4,Promise.all(w.map(function(e){return y.V$(e,h)}))];case 2:return n=da.ea(),z=n.reduce(function(e,f){return Object(ea.e)(e,
|
|
f)},[]),[4,aa.PDFNet.Redactor.redact(x,z,e,!0,!1)];case 3:return da.ea(),f.Wj(w,{force:!0,source:"redactionApplied"}),w.forEach(function(e){e.Ls().forEach(function(h){y.l7(h,f,e)});f.Dc(e,{force:!0,source:"redactionApplied"});h.AL(e.ua())}),h.Ye(),h.getDocument().BL(),aa.PDFNet.endDeallocateStack(),[2]}})})}))];case 1:return r.ea(),[2,w.map(function(e){return Object.assign({},{Hb:e.ua(),rect:e.Ls()})})]}})})})]}})})},W$:function(e){function h(e,f){return!e&&!f||e&&f&&e.toString()===f.toString()}var f=
|
|
new Map;e.forEach(function(e){var n=Array.from(f.keys()).find(function(f){return h(f.fillColor,e.FillColor)&&(!f.TK&&!e.OverlayText||f.TK&&e.OverlayText&&f.TK===e.OverlayText&&f.fontSize===e.FontSize&&f.font===e.Font&&h(f.TE,e.TextColor)&&f.textAlign===Object(x.get)(e,"TextAlign","left"))});n?f.get(n).push(e):f.set({fontSize:e.FontSize,TE:e.TextColor,font:e.Font,textAlign:Object(x.get)(e,"TextAlign","left"),TK:e.OverlayText,fillColor:e.FillColor},[e])});return f},dia:function(e,h){var f=[];h.forEach(function(e){e=
|
|
e.ua();-1===f.indexOf(e)&&f.push(e)});return Promise.all(f.map(function(f){return e.requirePage(f)}))},Hba:function(e){return Object(ea.b)(this,void 0,Promise,function(){var h,f,n,w,x,y,da;return Object(ea.d)(this,function(r){switch(r.label){case 0:return h=e.fillColor,f=e.TE,n=10,[4,aa.PDFNet.ColorPt.init(h.R/255,h.G/255,h.B/255,h.A)];case 1:return w=r.ea(),[4,aa.PDFNet.ColorPt.init(f.R/255,f.G/255,f.B/255,f.A)];case 2:x=r.ea();y={};da=e.fontSize?parseInt(e.fontSize,10):n;y.positive_overlay_color=
|
|
w;y.redacted_content_color=w;y.text_color=x;y.min_font_size=da;y.max_font_size=da;y.border=!1;switch(e.textAlign){case "right":y.horiz_text_alignment=1;break;case "center":y.horiz_text_alignment=0;break;default:y.horiz_text_alignment=-1}return[2,y]}})})},V$:function(e,h){var f=[],n=e.Ls(),w=h.ba,x=e.ua(),y=e.OverlayText||"";n.forEach(function(e){var h=w.Oi(x,e.x1,e.y1);e=w.Oi(x,e.x2,e.y2);h=aa.PDFNet.Rect.init(h.x,h.y,e.x,e.y).then(function(e){return aa.PDFNet.Redactor.redactionCreate(x,e,!1,y).then(function(e){return e})});
|
|
f.push(h)});return Promise.all(f).then(function(e){return e})},l7:function(e,h,f){var n=h.Pb();f=f.ua();for(var x=n.length-1;0<=x;x--){var y=n[x],aa=y.X,da=y.Y;da=e.y1>y.Y+y.Height||e.y2<da;aa=e.x1>y.X+y.Width||e.x2<aa;var ba=f!==y.PageNumber;y instanceof w.Wo||ba||da||aa||h.Dc(y,{force:!0,source:"redactionApplied"})}}};(window.Annotations||{}).$N=y},function(){(function(ia){ia.yj={cn:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(ba){for(var e="",ea,x,ha,ca,da,
|
|
aa,w=0;w<ba.length;)ea=ba.charCodeAt(w++),x=ba.charCodeAt(w++),ha=ba.charCodeAt(w++),ca=ea>>2,ea=(ea&3)<<4|x>>4,da=(x&15)<<2|ha>>6,aa=ha&63,isNaN(x)?da=aa=64:isNaN(ha)&&(aa=64),e=e+ia.yj.cn.charAt(ca)+ia.yj.cn.charAt(ea)+ia.yj.cn.charAt(da)+ia.yj.cn.charAt(aa);return e},decode:function(ba){var e="",ea=0;for(ba=ba.replace(/[^A-Za-z0-9\+\/=]/g,"");ea<ba.length;){var x=ia.yj.cn.indexOf(ba.charAt(ea++));var ha=ia.yj.cn.indexOf(ba.charAt(ea++));var ca=ia.yj.cn.indexOf(ba.charAt(ea++));var da=ia.yj.cn.indexOf(ba.charAt(ea++));
|
|
x=x<<2|ha>>4;ha=(ha&15)<<4|ca>>2;var aa=(ca&3)<<6|da;e+=String.fromCharCode(x);64!==ca&&(e+=String.fromCharCode(ha));64!==da&&(e+=String.fromCharCode(aa))}return e}};"undefined"===typeof window.btoa&&(window.btoa=ia.yj.encode);"undefined"===typeof window.atob&&(window.atob=ia.yj.decode)})(window)},function(){(function(){function ia(ba){this.depth=this.index=0;this.Qf=ba;this.location={start:0,jD:1,kD:1,end:!!ba.length,empty:!0};this.Ne=[this.location];this.TJ=!1;"?"===this.Qf.charAt(1)&&this.CT();
|
|
this.location.empty=!1}ia.prototype.advance=function(){this.xn=null;this.CT();var ba=this.location.start;++ba;this.location.empty=!1;if("/"!==this.Qf.charAt(ba))return this.location.empty="/"===this.Qf.charAt(this.Qf.indexOf(">",ba)-1),!0;this.location.end=!0;return!1};ia.prototype.xV=function(){var ba=this.location.start+1,e=this.Qf.indexOf(">",ba);this.location.empty&&--e;ba=this.Qf.substring(ba,e);this.xn={};e=ba.indexOf(" ");if(-1!==e){this.rS=ba.substring(0,e);ba=ba.slice(e);ba=ba.split('"');
|
|
e=ba.length-1;for(var ea=0;ea<e;++ea){var x=ba[ea],ha=ba[++ea];this.xn[x.substring(1,x.length-1)]=ha}}else this.rS=ba};ia.prototype.CT=function(){if(this.TJ)this.TJ=!1,this.location.start=this.Qf.indexOf("<",this.location.start+1);else{var ba=this.location.jD;if(!this.location.empty)for(var e=this.location.kD;0<e;)ba=this.Qf.indexOf("<",ba),"/"===this.Qf.charAt(++ba)?--e:(ba=this.Qf.indexOf(">",ba),"/"!==this.Qf.charAt(ba-1)&&++e);this.location.start=this.Qf.indexOf("<",ba)}this.location.jD=this.location.start+
|
|
1;this.location.kD=1};ia.prototype.mark=function(){this.Qf.mark&&this.Qf.mark(this.location.start)};ia.prototype.Oa=function(){null!==this.xn&&"undefined"!==typeof this.xn||this.xV();return this.rS};ia.prototype.Ka=function(){++this.depth;this.location={start:this.location.start};this.Ne[this.Ne.length]=this.location;this.TJ=!0};ia.prototype.$a=function(){--this.depth;this.xn=null;var ba=this.location.jD,e=this.location.kD,ea=this.location.empty,x=this.location.end;this.Ne.pop();this.location=this.Ne[this.Ne.length-
|
|
1];this.location.jD=ba;this.location.kD=x?0:ea?e:e+1};ia.prototype.fa=function(ba){null!==this.xn&&"undefined"!==typeof this.xn||this.xV();return this.Hla(this.xn[ba])};ia.prototype.Hla=function(ba){if(ba)return ba.replace(/&[^;]*;/g,function(e){switch(e.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===e.charAt(2)?String.fromCharCode(parseInt(e.substring(3,e.length-1),16)):String.fromCharCode(parseInt(e.substring(2,e.length-1),10))}return e})};
|
|
return ia})()},function(ia,ba,e){ba=e(272)(Object.keys,Object);ia.exports=ba},function(ia){ia.exports=function(){return!1}},function(ia,ba,e){var ea=e(425),x=e(428);ia.exports=function(e){return null!=e&&x(e.length)&&!ea(e)}},function(ia,ba,e){var ea=e(426),x=e(427);ia.exports=function(e){if(!x(e))return!1;e=ea(e);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(ia){var ba=Object.prototype.toString;ia.exports=function(e){return ba.call(e)}},
|
|
function(ia){ia.exports=function(ba){var e=typeof ba;return null!=ba&&("object"==e||"function"==e)}},function(ia){ia.exports=function(ba){return"number"==typeof ba&&-1<ba&&0==ba%1&&9007199254740991>=ba}},function(ia){ia.exports=function(){return!1}},function(ia,ba,e){var ea=e(0);e.n(ea);var x=e(2),ha=e(96),ca=e(13),da=e(51),aa=e(3),w=e(6);(function(e){e.Annotations||(e.Annotations={});var n=e.Annotations;n.ha=n.ha||{};n.ha.va=function(e,f){if(f instanceof n.ha.va)return f;ha.a.call(this,f);this.Ad=
|
|
e;this.zd=[];this.cf=[];this.kp=!1;this.Zj=null;this.zr=new n.Vk;this.Yc=new ca.a({mask:[ca.a.READ_ONLY,ca.a.REQUIRED,ca.a.NO_EXPORT]});this.Rg=-1;this.od||(this.od=new n.ha.va.Xc(this,f));this.initialize(f);this.addEventListener(n.ha.va.Events.CALCULATE,Object(ea.bind)(this.Dv,this));this.addEventListener(n.ha.va.Events.COMMIT,Object(ea.bind)(this.commit,this))};n.ha.va.Events={CALCULATE:"calculate",COMMIT:"commit",CHANGE:"change"};n.ha.va.prototype={initialize:function(e){Object(ea.isObject)(e)&&
|
|
(e.type&&this.ZY(e.type),Object(ea.isArray)(e.children)&&(this.zd=[].concat(Md(this.zd),Md(e.children)).filter(function(e){return e})),e.widgets&&(this.cf=[].concat(Md(this.cf),Md(e.widgets)).filter(function(e){return e})),e.fieldManager&&(this.Zj=e.fieldManager),e.font&&this.zr.set(e.font),Object(ea.isUndefined)(e.maxLen)||(this.Rg=Number(e.maxLen)),e.tooltipName&&(this.mQ=e.tooltipName),this.od.set(e))},set:function(e){this.initialize(e);Object(ea.isObject)(e)&&Object(ea.isObject)(e.actions)&&this.IA(e.actions,
|
|
!0)},Mn:function(e){this.cf.forEach(e)},ZY:function(e){"Tx"===e?this.od=new n.ha.va.CF(this,this.od):"Ch"===e?this.od=new n.ha.va.nF(this,this.od):"Btn"===e?this.od=new n.ha.va.kF(this,this.od):"Sig"===e?this.od=new n.ha.va.AF(this,this.od):Object(x.j)("Unrecognised field type: "+e);this.Lr=e},uh:function(e){Object(x.d)("8.0","setVisible",["show","hide"]);this.cf.forEach(function(f){f.uh(e)});this.zd.forEach(function(f){return f.uh(e)})},show:function(){this.cf.forEach(function(e){e.uh(!0)});this.zd.forEach(function(e){return e.show()})},
|
|
hide:function(){this.cf.forEach(function(e){e.uh(!1)});this.zd.forEach(function(e){return e.hide()})},LI:function(){return this.zd},qK:function(){return 0===this.zd.length},G4:function(e,f){-1===this.cf.indexOf(e)&&(Object(ea.isUndefined)(f)?this.cf.push(e):this.cf[f]=e)},Si:function(e){this.od.Si(e)},Sb:function(e,f){this.od.Sb(e,f)},Ab:function(){return this.od.Ab()},qM:function(e){this.Ad=e},Cs:function(){return this.od.Cs()},rj:function(e){this.od.rj(e)},KA:function(e,f){this.od.KA(e,f)},Ni:function(){return this.od.Ni()},
|
|
yE:function(e){this.od.yE(e)},uw:function(){return this.od.uw()},iJ:function(){var e=this.Ad.split(".");return e[e.length-1]},yba:function(){var e,f=this.Ad.split(".");1<f.length&&(e=f.slice(0,f.length-1).join("."));return e},gN:function(e,f){var h=this.iJ();(f=(f?f+".":"")+h)||(f="");if(this.qK()){if(e.Bx){var n=!0;e.QB&&(e.QB(this)||(n=!1));n&&e.Bx(f,h,this)}}else{if(e.QB){var w=[];this.zd.forEach(function(f){e.QB(f)&&w.push(f)})}else w=this.zd;0<w.length&&(e.DD&&e.DD(f,h,this),w.forEach(function(h){h.gN(e,
|
|
f)}),e.MK&&e.MK(f,h,this))}},hC:function(e){for(var f=this.zd,h=f.length,n=0;n<h;++n){var w=f[n];if(w.iJ()===e)return w}if(e.match(/^\d+$/))return this.cf[parseInt(e,10)]},removeChild:function(e){e=this.zd.indexOf(e);-1!==e&&this.zd.splice(e,1)},xQ:function(e){var f=this.hC(e.iJ());f&&this.removeChild(f);this.zd.push(e)},$X:function(){this.Sb(this.uw())},Dv:function(h){h=new e.Annotations.ha.zc.xb.va.create("Calculate",this,{value:this.value,source:h,rc:!0});var f=this.Ab();this.Tf("C",h);var n=this.maxLen;
|
|
this.Rg=-1;var w=h.value;h.rc&&w!==f&&this.Sb(w);this.Rg=n},wg:function(){this.Mn(function(e){e.refresh()})},commit:function(h,f){h=e.Annotations.ha.zc.xb.va.create("Keystroke",this,{value:h,change:"",willCommit:!0,selStart:-1,selEnd:-1});this.Tf("K",h);h.rc&&(h=e.Annotations.ha.zc.xb.Il(h),h=new e.Annotations.ha.zc.xb.va.create("Validate",this,{value:h}),this.Tf("V",h),h.rc&&this.Sb(h.value,f))},Eg:function(e,f){this.od.Eg(e,f)},Zp:function(){return this.od.Zp()}};Object(da.a)(n.ha.va);Object.defineProperties(n.ha.va.prototype,
|
|
{name:{get:function(){return this.Ad}},tooltipName:{get:function(){return this.mQ},set:function(e){this.mQ=e}},value:{get:function(){return this.Ab()},set:function(e){this.Sb(e)}},widgets:{get:function(){return this.cf}},children:{get:function(){return this.zd}},options:{get:function(){return this.Ni()},set:function(e){this.rj(e)}},exportValue:{get:function(){return this.Cs()}},actions:{get:function(){return this.Fl()}},defaultValue:{get:function(){return this.uw()},set:function(e){this.yE(e)}},flags:{get:function(){return this.od.Yc}},
|
|
IsModified:{set:function(e){e!==this.kp&&this.zd.forEach(function(f){f.IsModified=e});this.kp=e},get:function(){return this.kp||this.zd.reduce(function(e,f){return e||f.IsModified},!1)}},font:{get:function(){return this.zr}},maxLen:{get:function(){return this.Rg},set:function(e){this.Rg=Number(e);0<this.Rg&&this.Sb(this.Ab())}},type:{get:function(){return this.Lr}}});Object.assign(n.ha.va.prototype,ha.a.prototype);n.ha.va.Xc=function(e,f){f=f||{};this.Va=e;this.fd=this.$F="";this.Yc=new ca.a({mask:[ca.a.READ_ONLY,
|
|
ca.a.REQUIRED,ca.a.NO_EXPORT],onUpdate:f.onUpdate})};n.ha.va.Xc.prototype={Sb:function(e,f){var h=this.Va,x=typeof e;"number"===x?e=w.a.toFixed(e,6):e&&!Array.isArray(e)&&"string"!==x&&(e=e.toString());x=!Object(ea.isEqual)(this.fd,e);this.Eg(e);x&&(e=this.fd,this.zM(e,f),h.IsModified=!0,h.trigger(n.ha.va.Events.CHANGE,[h]))},zM:function(e){this.Va.Mn(function(f){f.Sb(e)})},Eg:function(e){this.fd=e},Si:function(e){this.Eg(e)},set:function(e){Object(ea.isObject)(e)&&(Object(ea.isNull)(e.value)||Object(ea.isUndefined)(e.value)||
|
|
(this.fd=e.value),Object(ea.isNull)(e.defaultValue)||Object(ea.isUndefined)(e.defaultValue)||(this.$F=e.defaultValue),e.flags&&(Object(ea.isArray)(e.flags)?this.Yc.set(e.flags,!0):Object(ea.isObject)(e.flags)&&this.Yc.set(e.flags.toArray(),!0)))},Ab:function(){return this.fd},uw:function(){return this.$F},yE:function(e){this.$F=e},KA:function(){},Ni:function(){return null},rj:function(){},Cs:function(){return this.fd}};Object.defineProperties(n.ha.va.Xc.prototype,{value:{get:function(){return this.Ab()},
|
|
set:function(e){this.Sb(e)}},defaultValue:{get:function(){return this.uw()},set:function(e){this.yE(e)}}});n.ha.va.CF=function(e,f){if(f instanceof n.ha.va.CF)return f;n.ha.va.Xc.call(this,e,f);this.Yc.hw([ca.a.MULTILINE,ca.a.PASSWORD,ca.a.FILE_SELECT,ca.a.DO_NOT_SPELL_CHECK,ca.a.DO_NOT_SCROLL,ca.a.COMB,ca.a.RICH_TEXT]);this.set(f)};n.ha.va.CF.prototype=Object.assign(Object.create(n.ha.va.Xc.prototype),{Eg:function(e,f){var h=this.Va.maxLen;0<h&&!Object(ea.isNull)(e)&&!Object(ea.isUndefined)(e)&&
|
|
(e=String(e),e.length>h&&!f&&(e=e.slice(0,h)));n.ha.va.Xc.prototype.Eg.call(this,e)},Sb:function(e,f){var h=new n.ha.zc.xb.va.create("Validate",this.Va,{value:e});this.Va.Tf("V",h);n.ha.va.Xc.prototype.Sb.apply(this,[e,f])},Zp:function(){return aa.d.TEXT}});n.ha.va.nF=function(e,f){var h=this;if(f instanceof n.ha.va.nF)return f;var w=Object.assign({},f,{onUpdate:function(){h.Va.Mn(function(e){Object(ea.isUndefined)(e.mB)||(e.mB=h.Yc.get(ca.a.COMMIT_ON_SEL_CHANGE))});h.Va.wg()}});n.ha.va.Xc.call(this,
|
|
e,w);this.Yc.hw([ca.a.COMBO,ca.a.EDIT,ca.a.SORT,ca.a.MULTI_SELECT,ca.a.DO_NOT_SPELL_CHECK,ca.a.COMMIT_ON_SEL_CHANGE]);this.Xf=[];this.set(f)};n.ha.va.nF.prototype=Object.assign(Object.create(n.ha.va.Xc.prototype),{set:function(e){Object(ea.isObject)(e)&&e.options&&this.rj(e.options);n.ha.va.Xc.prototype.set.call(this,e)},Sb:function(e){var f=!Object(ea.isEqual)(this.fd,e),h=this.Va;n.ha.va.Xc.prototype.Sb.apply(this,arguments);f&&(e=this.fd,h.Mn(function(f){return f.trigger("change",e)}))},kba:function(e){for(var f=
|
|
0;f<this.Xf.length;++f){var h=this.Xf[f];if(h.value===e)return h}return null},Eg:function(e){e=Object(ea.isNull)(e)||"string"!==typeof e?e:e.replace(/\n/g," ");this.Yc.get(ca.a.EDIT)||Array.isArray(e)||!Object(ea.isNull)(this.kba(e))?n.ha.va.Xc.prototype.Eg.call(this,e):n.ha.va.Xc.prototype.Eg.call(this,null)},Ni:function(){return this.Xf},KA:function(e,f){for(var h=this.Xf,n=0;n<h.length;++n)if(h[n].value===h.value)return;this.Xf.splice(f,0,e);this.Yc.get(ca.a.COMBO)||this.Sb(e.value);this.Va.Mn.call(this.Va,
|
|
function(e){e.refresh&&e.refresh()})},rj:function(e){this.Xf=e.map(function(e){var f=e.value;e=e.displayValue;return{value:f,displayValue:Object(ea.isUndefined)(e)?f:e}});this.Va.Mn.call(this.Va,function(e){e.refresh&&e.refresh()})},Zp:function(){return this.Yc.get(ca.a.COMBO)?aa.d.COMBO:aa.d.LIST}});n.ha.va.kF=function(e,f){var h=this;if(f instanceof n.ha.va.kF)return f;var w=Object.assign({},f,{onUpdate:function(){h.Va.wg()}});n.ha.va.Xc.call(this,e,w);this.Yc.hw([ca.a.NO_TOGGLE_TO_OFF,ca.a.RADIO,
|
|
ca.a.PUSH_BUTTON,ca.a.RADIOS_IN_UNISON]);this.Xf=null;this.set(f);""===this.fd&&(this.fd="Off")};n.ha.va.kF.prototype=Object.assign(Object.create(n.ha.va.Xc.prototype),{set:function(e){n.ha.va.Xc.prototype.set.call(this,e);Object(ea.isObject)(e)&&e.options&&this.rj(e.options)},Ni:function(){return this.Xf},Si:function(e){(""===this.fd||"Off"!==e||this.Va.widgets.every(function(e){return!e.appearance}))&&n.ha.va.Xc.prototype.Si.call(this,e)},Eg:function(e){"Off"!==e?""===e?n.ha.va.Xc.prototype.Eg.call(this,
|
|
"Off"):n.ha.va.Xc.prototype.Eg.call(this,e):this.Yc.get(ca.a.NO_TOGGLE_TO_OFF)&&this.Yc.get(ca.a.RADIO)||n.ha.va.Xc.prototype.Eg.call(this,e)},Cs:function(){if(this.Xf){var e=this.Xf[Number(this.Ab())];return e&&e.value}return n.ha.va.Xc.prototype.Cs.call(this)},rj:function(e){this.Xf=e.slice()},zM:function(e,f){n.ha.va.Xc.prototype.zM.call(this,e,f)},Zp:function(){return this.Yc.get(ca.a.RADIO)?aa.d.RADIO:aa.d.CHECK}});n.ha.va.AF=function(e,f){var h=this;if(f instanceof n.ha.va.AF)return f;var w=
|
|
Object.assign({},f,{onUpdate:function(){h.Va.wg()}});n.ha.va.Xc.call(this,e,w);this.set(f)};n.ha.va.AF.prototype=Object.assign(Object.create(n.ha.va.Xc.prototype),{Zp:function(){return aa.d.SIGNATURE}})})(window)},function(ia,ba,e){var ea=e(0);e.n(ea);ia=e(241);var x=e.n(ia),ha=e(351),ca=e(2),da=e(59),aa=e(105),w=e(57),y=e(65);e.n(y);var n=e(25),h=new RegExp(/^(0?\d|1[0-2]):[0-5]\d?:?[0-5]?\d ?([AaPp][Mm])/);(function(e){function f(){}function z(e){this.stringValue=e}function fa(e,f,h){f=f||",";h=
|
|
h||".";var n=e.split(h),r=n[0];"-"===e.charAt(0)&&(r=r.substr(1));for(var w=[];3<r.length;)w.push(r.substr(r.length-3)),r=r.substr(0,r.length-3);0<r.length&&w.push(r);r=w.reverse().join(f);"-"===e.charAt(0)&&(r="-"+r);n[0]=r;return n.join(h)}function ba(e,f,h){var n="\\.,";0===h?n="\\.":2===h&&(n=",");if(0===f)return/^-?\d*$/.test(e);if(Object(ea.isUndefined)(f))return f=new RegExp("^-?\\d*(["+n+"]\\d*)?$"),f.test(e);f=new RegExp("^-?\\d*(["+n+"]\\d{0,"+f.toString()+"})?$");return f.test(e)}function ja(e){for(var f=
|
|
[],h=[],n=-1;-1!==(n=e.indexOf(".",n+1));)f.push(n);for(n=-1;-1!==(n=e.indexOf(",",n+1));)h.push(n);if(f.length&&h.length){if(f[f.length-1]<h[0])return!0}else if(h.length)for(e=e.length-4,f=h.length-1;0<=f;--f)if(h[f]!==e)return!0;return!1}function ia(e){return 65<=e&&90>=e||97<=e&&122>=e}function ma(e,f){switch(f){case 57:return 48<=e&&57>=e;case 65:return ia(e);case 79:return ia(e)||48<=e&&57>=e;case 88:return!0;default:return e===f}}function la(e){var f=typeof e;e=Object(ea.isNull)(e)||"object"!==
|
|
f&&"string"!==f?e:String(e).replace(",",ja(e)?".":"");f=parseFloat(e);return ba(e)&&!Object(ea.isNaN)(f)?f:f="Off"===e||Object(ea.isUndefined)(e)||Object(ea.isNull)(e)||""===e?0:1}function na(e,f){e=String(e);if(e.length<f){f-=e.length;for(var h=0;h<f;++h)e="0"+e}return e}function ra(e,f){if((1===f||3===f)&&h.exec(e))return e.replace(/am/ig," am").replace(/pm/ig," pm").replace(/\s\s+/g," ");var n=String(e).split(":");if(3<f||0>f||!e)return null;var r=e=0,w=0;n[0]&&(e=Number(n[0]));n[1]&&(r=Number(n[1]));
|
|
n[2]&&(w=Number(n[2]));if(23<e||59<r||59<w||Object(ea.isNaN)(e)||Object(ea.isNaN)(r)||Object(ea.isNaN)(w))return null;n=1===f||3===f;if(n){var x=12<=e&&24>e?"PM":"AM";e%=12;0===e&&(e=12)}else e=na(e,2);r=na(r,2);w=na(w,2);f=e+":"+r+(2>f?"":":"+w);n&&(f+=" "+x);return f}function sa(e,f){for(var h=0,n="",r=0;r<f.length&&h<e.length;++r){var w=f.charAt(r);switch(w){case "9":n+=e.charAt(h);h++;break;default:n+=w}}return n}function Da(e,f){this.V3=f;this.sI=!1;this.eea=e;e.gla()}function qa(e){return function(){Object(ca.h)("stub: "+
|
|
e+" called with",arguments)}}function va(e){var f=null;if(Object(ea.isArray)(e))switch(e[0]){case "T":f=[];break;case "G":f=e.slice(1,2);break;case "RGB":f=e.slice(1,4);break;case "CMYK":f=e.slice(1,5)}return f}function oa(e,f,h){e.widgets.forEach(function(e){e[f]=h})}function ua(e){this.RP={};this.tP=e}function Ca(){var e=this;this.PP={Doc:new ua(function(){return"id"}),Field:new ua(function(e){return e.name})};this.Hz=0;this.QF=[];this.G3={Doc:function(e){return Fa.QN(e)},Color:function(e){return Fa.lz(e)},
|
|
Field:function(e){e.ko&&e.ko()&&(e=e.gc());return new Fa.mr(e)},Event:function(f){var h={target:e.Cq({Field:"Field",Page:"Doc",Doc:"Doc"}[f.type],f.target)};Object.defineProperties(h,{value:{get:function(){return Fa.utils.toString(f.value)},set:function(e){f.value=e},enumerable:!0}});Object.keys(f).forEach(function(e){f.hasOwnProperty(e)&&"target"!==e&&"value"!==e&&function(e){Object.defineProperty(h,e,{set:function(h){f[e]=h},get:function(){return f[e]},enumerable:!0})}(e)});return h}}}function ya(){Ca.call(this);
|
|
this.o3=this.Qaa();e.mna=this.o3;Object.keys(Ba).forEach(function(f){Ba.hasOwnProperty(f)&&(f in e||(e[f]=Ba[f]))})}function Ea(){var e=this;Ca.call(this);if(Ja){this.$k=document.createElement("iframe");this.$k.style.height="0px";this.$k.style.width="0px";this.$k.style.borderWidth="0px";document.body.appendChild(this.$k);this.op=this.$k.contentWindow;var h=this.op.document;h.open();h.write("<!DOCTYPE html>");h.write("<script>var event = {};\x3c/script>");h.write("<script>window.__add_action = function(__script){ return function(){eval(__script); } }\x3c/script>");
|
|
h.close();this.op.__assign=function(f,h){e.op[f]=h;e.kn[f]=h};this.gp=!1;this.iU="";this.kn={};Object.keys(Ba).forEach(function(f){Ba.hasOwnProperty(f)&&(e.kn[f]=Ba[f])});f(this.kn)}}var Aa;e.Annotations=e.Annotations||{};e.Annotations.ha=e.Annotations.ha||{};e.Annotations.ha.zc=e.Annotations.ha.zc||{};var Fa=e.Annotations.ha.zc;Fa.utils={isNumber:ba,jqa:fa,Jpa:la,Fpa:na,Hoa:aa.a,opa:aa.b,Joa:ra,mw:sa,toString:function(e){return Object(ea.isString)(e)?e:Object(ea.isNumber)(e)?String(e):""},rqa:function(e){var f=
|
|
e;ba(e)&&""!==e&&(f=la(e));return f},xga:function(e,f){f=y(f);e=Object(aa.d)(e);return f.format(e)},yga:function(e){var f=Array.prototype.slice.call(arguments,1),h=0;return e.replace(/%(,\d+)?([+ 0#]+)?(\d+)?(\.\d+)?([dfsx]+)/g,function(e,n,r,w,x,z){e=0;w=".";var y=",";if(n)switch(n.slice(1)){case "0":y=",";w=".";break;case "1":y="";w=".";break;case "2":y=".";w=",";break;case "3":y="",w=","}if(r)for(n=r.length-2,r=1;r<n;++r);x&&(e=x.slice(1));x=f[h];h++;n=String(x);switch(z){case "f":n=Number(x).toFixed(e).replace(".",
|
|
w);n=fa(n,y,w);break;case "d":n=Number(x).toFixed();break;case "x":n=Number(x).toString(16)}return n})},zga:function(e,f){for(var h="",n=0,r="",w=e.length,x=0;x<w;++x){var z=f,y=e[x],aa="";switch(y){case "?":aa="upper"===r?aa+z.charAt(n).toUpperCase():"lower"===r?aa+z.charAt(n).toLowerCase():aa+z.charAt(n);n++;break;case "X":for(;n<z.length;){y=z.charCodeAt(n);if(ia(y)||48<=y&&57>=y){aa="upper"===r?aa+z.charAt(n).toUpperCase():"lower"===r?aa+z.charAt(n).toLowerCase():aa+z.charAt(n);n++;break}n++}break;
|
|
case "A":for(;n<z.length;){if(ia(z.charCodeAt(n))){aa="upper"===r?aa+z.charAt(n).toUpperCase():"lower"===r?aa+z.charAt(n).toLowerCase():aa+z.charAt(n);n++;break}n++}break;case "9":for(;n<z.length;){if(ba(z.charAt(n))){aa+=z.charAt(n);n++;break}n++}break;case "*":aa="lower"===r?z.slice(n).toLowerCase():"upper"===r?z.slice(n).toUpperCase():z.slice(n);n=z.length-1;break;case "\\":break;case ">":r="upper";break;case "<":r="lower";break;case "=":r="";break;default:aa=y}h+=aa}return h},oN:function(f,h){h=
|
|
h||f;var n=e.Annotations.ha.zc.xb.Il(Aa);if(f&&n){var r=n.length,w=f.length;if(Aa.willCommit&&r!==w&&0!==w)Ga.ta().ue().alert("The value entered does not match the format of the field [ "+h+" ]"),Aa.rc=!1;else if(r&&w)if(r<=w)for(w=0;w<r;++w){if(!ma(n.charCodeAt(w),f.charCodeAt(w))){Aa.rc=!1;Ga.ta().ue().alert("The value entered does not match the format of the field [ "+h+" ]");break}}else Ga.ta().ue().alert("The value entered does not match the format of the field [ "+h+" ]"),Aa.rc=!1}},bz:function(e){var f=
|
|
String(Aa.value);if(f&&Aa.willCommit&&!Object(aa.b)(f,e)){Aa.rc=!1;f=Aa.target.field.widgets;var h="Invalid Date/Time: Input should match format "+e;try{f.length&&f[0]instanceof Annotations.DatePickerWidgetAnnotation&&(h=Annotations.DatePickerWidgetAnnotation.datePickerOptions.i18n.invalidDateTime+" "+e)}catch(ta){}Ga.ta().ue().alert(h)}}};Object.getOwnPropertyNames(String.prototype).forEach(function(e){z.prototype[e]=function(){return this.stringValue[e].apply(this.stringValue,arguments)}});z.prototype.valueOf=
|
|
function(){this.GU||(this.GU=la(this.stringValue));return this.GU};Da.prototype={terminate:function(){this.sI||(this.sI=!0,this.V3(),this.eea.u$())}};var Ga=Aa=null;var Ba={AFNumber_Format:function(e,f,h,n,r,w){h=(h=Ga.ta().ue().gc(Aa.target.name))?h.Ab():null;ba(h)&&null!==h&&""!==h&&(h=la(h),Object(ea.isNaN)(h)||(h=h.toFixed(e),0===f?h=fa(h):2===f&&(h=fa(h),e=h.indexOf("."),h=h.split(",").join("."),0<=e&&(h=h.substr(0,e)+","+h.substr(e+1))),"-"===h.charAt(0)&&w?(h=h.substring(1,h.length),h="-"+
|
|
r+h):h=w?r+h:h+r,Aa.value=h,Aa.rc=!0))},AFPercent_Format:function(e,f){var h=Aa.value;ba(h)&&(h=la(h),h=(100*h).toFixed(e),f&&(h=fa(h)),Aa.value=h+"%",Aa.rc=!0)},AFDate_KeystrokeEx:Fa.utils.bz,AFDate_Keystroke:function(e){e<w.f.length&&Fa.utils.bz(w.f[e])},AFDate_FormatEx:function(e){e=Object(aa.a)(String(Aa.value),e);Object(ea.isNull)(e)||(Aa.value=e,Aa.rc=!0)},AFDate_Format:function(e){var f=String(Aa.value);e<w.f.length&&(e=Object(aa.a)(f,w.f[e]),Object(ea.isNull)(e)||(Aa.value=e,Aa.rc=!0))},AFRange_Validate:function(e,
|
|
f,h,n){if(""!==Aa.value){var r=Number(Aa.value);r=(!e||r>=f)&&(!h||r<=n);if(!r){var w="Invalid value: must be";e&&(w+=" greater than or equal to "+f);e&&h&&(w+=" and");h&&(w+=" less than or equal to "+n);Ga.ta().ue().alert(w+".")}Aa.rc=r}},AFTime_Format:function(e){Aa.value=ra(Aa.value,e);Aa.rc=!0},AFTime_FormatEx:function(e){e=Object(aa.a)(String(Aa.value),e);Object(ea.isNull)(e)||(Aa.value=e,Aa.rc=!0)},AFTime_Keystroke:function(e){switch(e){case 0:e="HH:MM";break;case 1:e="h:MM tt";break;case 2:e=
|
|
"HH:MM:ss";break;case 3:e="h:MM:ss tt"}Fa.utils.bz(e)},AFTime_KeyStrokeEx:Fa.utils.bz,AFMakeNumber:function(e){return Number(e)},AFSimple_Calculate:function(e,f){if(e={PRD:function(e,f){return e*f},SUM:function(e,f){return e+f},MIN:function(e,f){return f<e?f:e},MAX:function(e,f){return f>e?f:e}}[e])if("string"===typeof f&&(f=f.split(",")),0!==f.length){for(var h=[],n=f.map(function(e){return Ga.ta().ue().gc(e)});0<n.length;)f=n.pop(),f.qK()||f.Ab()?h.push(f):f.LI().forEach(function(e){n.push(e)});
|
|
Aa.value=h.map(function(e){return la((new Fa.mr(e)).value)}).reduce(e);Aa.rc=!0}},AFNumber_Keystroke:function(f,h){Aa.rc=ba(e.Annotations.ha.zc.xb.Il(Aa),void 0,h)},AFPercent_Keystroke:function(f){Aa.rc=ba(e.Annotations.ha.zc.xb.Il(Aa),f+2)},AFMergeChange:function(f){return e.Annotations.ha.zc.xb.Il(f)},AFParseDateEx:aa.c,AFSpecial_Format:function(e){if(0===arguments.length)Aa.rc=!1;else{var f=Aa.value;switch(e){case 0:var h="99999";break;case 1:h="99999-9999";break;case 2:h=10<=f.length?"(999) 999-9999":
|
|
"999-9999";break;case 3:h="999-99-9999"}Aa.value=f.match(/^\d+$/)?sa(f,h):f;Aa.rc=!0}},AFSpecial_Keystroke:function(e){var f="";switch(e){case 0:f="99999";var h="Zipcode";break;case 1:f="999999999";h="Zipcode + 4";break;case 2:f="9999999999";h="Phone";break;case 3:f="999999999",h="Social Security Number"}Fa.utils.oN(f,h)},AFSpecial_KeystrokeEx:Fa.utils.oN,util:{printd:Fa.utils.xga,printf:Fa.utils.yga,printx:Fa.utils.zga,scand:function(e,f){f=f.trim();return Object(aa.c)(f,e).toDate()}},app:{beep:qa("app.beep"),
|
|
alert:function(e){if(Object(ea.isObject)(e)){var f=e.nType||0;e=e.cMsg;if(0===f)return Ga.ta().ue().alert(e),1;e=window.confirm(e);return 1===f?e?1:2:e?4:3}Ga.ta().ue().alert(e);return 1},response:qa("app.response"),setInterval:function(e,f){var h=Ga.getDocument().iv;e=h.cs(e,Ga);var n=Aa,r=Ga,w=window.setInterval(function(){h.Ot(e,n,r)},f);return new Da(h,function(){window.clearInterval(w)})},clearInterval:function(e){e.terminate()},setTimeOut:function(e,f){var h=Ga.getDocument().iv,n;e=h.cs(e,Ga);
|
|
var r=Aa,w=Ga,x=window.setTimeout(function(){h.Ot(e,r,w);n.terminate()},f);return n=new Da(h,function(){window.clearTimeout(x)})},clearTimeOut:function(e){e.terminate()},launchURL:function(e,f){(void 0===f?0:f)?window.open(e):window.location=e}},console:{clear:function(){console.clear()},println:function(e){Object(ca.h)(e)}},alert:function(e){Ga.ta().ue().alert(e)},print:function(){Ga.ta().ue().print()},ADBE:null,color:{transparent:["T"],black:["G",0],white:["G",1],red:["RGB",1,0,0],green:["RGB",
|
|
0,1,0],blue:["RGB",0,0,1],cyan:["CMYK",1,0,0,0],magenta:["CMYK",0,1,0,0],yellow:["CMYK",0,0,1,0],dkGray:["G",.25],gray:["G",.5],ltGray:["G",.75]},border:{s:"solid",ge:"beveled",d:"dashed",i:"inset",uqa:"underline"},style:{ch:"check",Tna:"cross",poa:"diamond",ci:"circle",lqa:"start",kqa:"square"},display:{visible:0,hidden:1,noPrint:2,noView:3}};Fa.mr=function(e){this.field=e};Fa.mr.prototype={insertItemAt:function(e,f,h){Object(ea.isUndefined)(f)&&(f=e);Object(ea.isUndefined)(h)&&(h=0);Object(ea.isArray)(e)&&
|
|
(e=e[0]);Object(ea.isArray)(f)&&(f=f[0]);f={displayValue:e,value:f};var r=this.field.Ni();h=-1===h?r.length-h:h;this.field.KA(f,h);"Ch"!==this.field.type||this.field.flags.get(n.WidgetFlags.COMBO)||this.field.Sb(e)},setAction:function(e,f){var h={MouseUp:"U",MouseDown:"D",MouseEnter:"E",MouseExit:"X",OnFocus:"Fo",OnBlur:"Bl",Keystroke:"K",Validate:"V",Calculate:"C",Format:"F"};this.field.widgets.forEach(function(n){var r=new da.g({javascript:f});n.Bi(h[e],r,!0)})},getItemAt:function(e,f){f=Object(ea.isUndefined)(f)?
|
|
!0:!!f;var h=this.field.Ni();e=-1===e?h[h.length-1]:h[e];return f?e.value:e.displayValue},deleteItemAt:function(e){var f=this.field.Ni();if(Object(ea.isUndefined)(e)){var h=this.field.Ab();f.forEach(function(f,n){f.value===h&&(e=n)});Object(ea.isUndefined)(e)||(f.splice(e,1),0===e?this.field.Sb(f[f.length-1].value):this.field.Sb(f[e-1].value))}else f.splice(e,1)},clearItems:function(){this.field.rj([]);this.field.Sb(null);this.field.wg()},setItems:function(e){for(var f=[],h=e.length,n=0;n<h;++n){var r=
|
|
e[n];Object(ea.isString)(r)?f.push({value:r}):Object(ea.isArray)(r)?f.push({displayValue:r[0],value:r[1]?r[1]:r[0]}):Object(ea.isObject)(r)&&f.push({value:r.toString()})}this.field.rj(f);this.field.Sb(f[0].value||null);this.field.wg()},setFocus:function(){var e;if(e="widgets"in this.field?this.field.widgets[0]:this.field)this.field.Yd().ks(e.PageNumber,e.X,e.Y,!0),e.innerElement.focus()},isBoxChecked:function(e){return(e=this.field.widgets[e])?e.appearance===e.gk()?1:0:0},checkThisBox:function(e,
|
|
f){Object(ea.isUndefined)(f)&&(f=!0);if(e=this.field.widgets[e])f?this.field.Sb(e.gk()):this.field.Ab()===e.gk()&&this.field.Sb("Off"),this.field.wg()},buttonGetCaption:function(){var e=this.field.widgets.find(function(e){return e.captions&&e.captions.Normal});if(e)return e.captions.Normal},buttonSetCaption:function(e){this.field.widgets.forEach(function(f){f.captions.Normal=String(e);delete f.appearances._DEFAULT;f.refresh()})},getArray:function(){var e=[],f=this.field.Yd().la.Zj;this.field.gN({MK:function(){},
|
|
DD:function(){},Bx:function(h){e.push(new Fa.mr(f.gc(h)))}},this.field.yba());return e}};Object.defineProperties(Fa.mr.prototype,{name:{get:function(){return this.field.name},enumerable:!0},doc:{get:function(){return Fa.QN(this.field.Yd())},enumerable:!0},value:{get:function(){var e=this.field.Cs();return"number"===typeof e?e:ba(e)&&""!==e?"0"===e?0:ja(e)?new z(e):la(e):e||""},set:function(e){"Btn"===this.field.type&&this.field.options&&(e=this.field.options.findIndex(function(f){return f.value===
|
|
e}));this.field.Sb(e)},enumerable:!0},valueAsString:{get:function(){var e=this.field.Ab();return e?e.toString():""}},defaultValue:{get:function(){return this.field.defaultValue},set:function(e){this.field.defaultValue=e},enumerable:!0},fillColor:{set:function(e){oa(this.field,"backgroundColor",va(e));this.field.wg()},get:function(){return Fa.lz(this.field.widgets[0].backgroundColor)},enumerable:!0},borderStyle:{set:function(e){this.field.Mn(function(f){f.border.style=e.charAt(0).toUpperCase()+e.slice(1)});
|
|
this.field.wg()},get:function(){if(this.field.cf&&this.field.cf[0]&&this.field.cf[0].border&&this.field.cf[0].border.style)return this.field.cf[0].border.style.toLowerCase()},enumerable:!0},textColor:{set:function(e){var f=va(e);this.field.font.fillColor=f;this.field.Mn(function(e){e.font.fillColor=f});this.field.wg()},get:function(){return Fa.lz(this.field.font.fillColor)},enumerable:!0},bgColor:{set:function(e){oa(this.field,"backgroundColor",va(e));this.field.wg()},get:function(){return Fa.lz(this.field.widgets[0].backgroundColor)},
|
|
enumerable:!0},numItems:{get:function(){return(this.field.Ni()||[]).length},enumerable:!0},charLimit:{set:function(e){e=Number(e);Object(ea.isNaN)(e)||(this.field.maxLen=e)},get:function(){return this.field.maxLen},enumerable:!0},hidden:{set:function(e){e?this.field.hide():this.field.show()},get:function(){return this.field.widgets[0].hidden},enumerable:!0},display:{set:function(e){function f(e){h.field.widgets.forEach(function(f){f.Kma=e})}var h=this;e===Ba.display.visible?(this.field.show(),f(!0)):
|
|
e===Ba.display.hidden?(this.field.hide(),f(!1)):e===Ba.display.noPrint?(this.field.show(),f(!1)):e===Ba.display.noView?(this.field.hide(),f(!0)):Object(ca.j)("Unknown display value: "+e+". Valid inputs include "+JSON.stringify(Ba.display))},get:function(){return this.field.widgets[0].hidden},enumerable:!0},readonly:{set:function(e){this.field.flags.set(n.WidgetFlags.READ_ONLY,e);this.field.wg()},get:function(){return this.field.flags.get(n.WidgetFlags.READ_ONLY)},enumerable:!0},required:{set:function(e){this.field.flags.set(n.WidgetFlags.REQUIRED,
|
|
e);this.field.wg()},get:function(){return this.field.flags.get(n.WidgetFlags.REQUIRED)},enumerable:!0},userName:{set:function(e){this.field.tooltipName=e;this.field.wg()},get:function(){return this.field.tooltipName},enumerable:!0},type:{get:function(){switch(this.field.type){case "Tx":return"text";case "Btn":return this.field.flags.get(n.WidgetFlags.PUSH_BUTTON)?"button":this.field.flags.get(n.WidgetFlags.RADIO)?"radiobutton":"checkbox";case "Ch":return this.field.flags.get(n.WidgetFlags.COMBO)?
|
|
"combobox":"listbox";case "Sig":return"signature"}return null},enumerable:!0},currentValueIndices:{get:function(){for(var e=this.field.Ni(),f=this.field.value,h=0;h<e.length;++h)if(e[h].value===f)return h;return-1},set:function(e){(e=this.field.Ni()[e].value)&&this.field.Sb(e)},enumerable:!0},commitOnSelChange:{get:function(){return this.field.flags.get(n.WidgetFlags.COMMIT_ON_SEL_CHANGE)},set:function(e){this.field.flags.set(n.WidgetFlags.COMMIT_ON_SEL_CHANGE,e)},enumerable:!0}});ua.prototype={get:function(e){e=
|
|
this.tP(e);e=this.RP[e];return Object(ea.isUndefined)(e)?null:e},set:function(e){this.RP[this.tP(e)]=e}};Fa.lz=function(e){return e?0!==e.A?["RGB",e.R/255,e.G/255,e.B/255]:["T"]:["T"]};Fa.QN=function(e){var f=e.ta().ue(),h={getField:function(e){return(e=Object(ea.isArray)(e)?f.gc(e[0]):f.gc(e))?new Fa.mr(e):null},submitForm:function(f,h,n,r){Object(ea.isUndefined)(h)&&(h=!0);(new da.j({url:f,format:h?"fdf":"xfdf",includeEmpty:!!n,fields:r||[]})).onTriggered(null,null,e)},resetForm:function(f){(new da.i({fields:f})).onTriggered(null,
|
|
null,e)},calculateNow:function(){f.Dv(null)},getNthFieldName:function(e){var h,n=0;f.Up(function(f){n===e&&(h=f.name);++n});return h}};Object.defineProperties(h,{documentFileName:{get:function(){return e.getDocument().filename},enumerable:!0},calculate:{set:function(e){f.bu=!!e},get:function(){return f.bu},enumerable:!0},numPages:{get:function(){return e.Wb()},enumerable:!0},pageNum:{get:function(){return e.jg()-1},set:function(f){e.uf(f+1)},enumerable:!0},numFields:{get:function(){var e=0;f.Up(function(){++e});
|
|
return e},enumerable:!0}});return h};Ca.prototype={cs:function(){},Ot:function(){},se:function(){this.QF.forEach(function(e){e()})},cN:function(e){return e},lN:function(e){return e},hF:function(e){return e},s_:function(e){return e},t_:function(e){return e},r_:function(e){return e},q_:function(e){return e},zu:function(e){var f=null;if(Object(ea.isArray)(e))f=this.q_(e);else if(Object(ea.isNull)(e))f=null;else switch(typeof e){case "object":f=this.lN(e);break;case "function":f=this.hF(e);break;case "number":f=
|
|
this.s_(e);break;case "string":f=this.t_(e);break;case "boolean":f=this.r_(e);break;case "undefined":f=void 0;break;default:Object(ca.j)("unrecognised type: "+typeof e)}return f},wrap:function(e,f){var h=this.PP[e];if(h){var n=h.get(f);if(!Object(ea.isNull)(n))return n}e=this.Cq(e,f);e=this.zu(e);h&&h.set(e);return e},Cq:function(e,f){var h=this.PP[e];if(h){var n=h.get(f);if(!Object(ea.isNull)(n))return n}if(n=this.G3[e])return e=n(f),h&&h.set(e),e;Object(ca.j)(e+" is not a valid normalizable embedded JS type",
|
|
f);return{}},gla:function(){this.Hz+=1},u$:function(){--this.Hz;if(0===this.Hz){var e=this.QF;this.QF=[];e.forEach(function(e){e()})}},Qaa:function(){return this.lN(Object.assign({},Ba))}};Fa.Fma=Ba;var Ia=eval;ya.prototype=Object.assign(Object.create(Ca.prototype),{qp:function(f){f=this.Cq("Doc",f);for(var h=Object.keys(f),n=0;n<h.length;++n){var r=h[n];Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(f,r))}},cs:function(e){return function(f){Aa=f;Ia("with(_PDFTRON_JS_API){"+e+"\n}");Aa=
|
|
null}},Ot:function(f,h,n){e.event=h;this.gp||(this.qp(n),this.gp=!0);var r=Ga;Ga=n;try{f(this.wrap("Event",h),this.wrap("Doc",n))}catch(Ha){Object(ca.j)("Embedded JS error encountered: "+Ha+" "+f.lo)}Ga=r}});(function(){Ca.call(this);this.fl=continuum.Yna();this.gp=!1;for(var e=Object.keys(Ba),f=0;f<e.length;++f)this.fl.global.VN(e[f],this.zu(Ba[e[f]]))}).prototype=Object.assign(Object.create(Ca.prototype),{cs:function(e){return continuum.Zna(e)},qp:function(e){e=this.Cq("Doc",e);for(var f=Object.keys(e),
|
|
h=0;h<f.length;++h)this.fl.global.VN(f[h],this.zu(e[f[h]]))},Ot:function(e,f,h){this.gp||(this.qp(h),this.gp=!0);f=this.Cq("Event",f);h=this.zu(f);this.fl.global.VN("event",h);Aa=f;this.fl.evaluate(e);Aa=null},cN:function(e){var f=this;if(Object(ea.isObject)(e)){if(e.hH)return e.hH.map(function(e){return f.cN(e)});Object(ca.j)("object argument: ",e)}return e},hF:function(e){var f=this;return continuum.IH(function(){var h=Array.prototype.map.call(arguments,function(e){return f.cN(e)});return f.zu(e.apply(null,
|
|
Md(h)))})},s_:function(e){return this.fl.evaluate(JSON.stringify(e))},t_:function(e){return this.fl.evaluate(JSON.stringify(e))},r_:function(e){return this.fl.evaluate(JSON.stringify(e))},q_:function(e){var f=this.fl.evaluate("new Array()");Object(ca.j)("array:",f);return e},lN:function(e){for(var f=this.fl.evaluate("Object.create(null)"),h=Object.keys(e),n=h.length,r=0;r<n;++r){var w=h[r],x=Object.getOwnPropertyDescriptor(e,w),z={Enumerable:x.enumerable,Writeable:x.writeable};Object(ea.isUndefined)(x.value)||
|
|
(z.Value=this.zu(x.value));Object(ea.isUndefined)(x.set)||(z.Set=this.hF(x.set));Object(ea.isUndefined)(x.get)||(z.Get=this.hF(x.get));f.Bma(w,z)}return f}});var Ja=!0;e.Ya.F7=function(){Ja=!1};e.Annotations.ha.tF={update:function(e){f=e},Il:e.Annotations.ha.zc.xb.Il};Ea.prototype=Object.assign(Object.create(Ca.prototype),{Qka:function(e,f){e=e.reduce(function(e,f){return e+"var "+f+"=undefined;"},"");this.iU=e=f.reduce(function(e,f){return e+"var "+f+"=this."+f+";"},e)},cs:function(e,f){if(Ja)try{this.qp(f);
|
|
var h={pa:6},n=x.a.parse(e,h);f=function(e,f,r,w){e=x.a.parse("__assign('"+e+"', "+(f?"this."+e:e)+")",h);n.body.splice(r?0:w+1,0,e.body[0])};for(var r={},w=0;w<n.body.length;r={Om:r.Om},++w){var z=n.body[w],y=r.Om=void 0,aa=void 0;if("FunctionDeclaration"===z.type)r.Om=z.id.name,aa=!0;else if("VariableDeclaration"===z.type)z.declarations.forEach(function(e){return function(f){e.Om=f.id.name}}(r));else if("ExpressionStatement"===z.type&&"AssignmentExpression"===z.expression.type){var da=z.expression.left;
|
|
"Indentifier"===da.type?r.Om=da.name:da.object&&"ThisExpression"===da.object.type&&(r.Om=da.property.name,y=!0)}r.Om&&(f(r.Om,y,aa,w),w++)}var fa=this.iU+"\n"+Object(ha.a)(n),ba=this.op.__add_action(fa);ba.lo=e;return ba}catch(Ta){Object(ca.j)("Failed to compile embedded JS script")}},qp:function(e){var f=this;if(!this.gp&&Ja){this.gp=!0;var h=Object.getOwnPropertyNames(this.op);"event Array Object Number Boolean String Function Date Math __assign parseInt parseFloat isNaN isFinite".split(" ").forEach(function(e){e=
|
|
h.indexOf(e);-1<e&&h.splice(e,1)});var n=this.Cq("Doc",e);Object.keys(n).forEach(function(e){Object.defineProperty(f.kn,e,Object.getOwnPropertyDescriptor(n,e))});var r=[];Object.keys(this.kn).forEach(function(e){try{Object.defineProperty(f.op,e,Object.getOwnPropertyDescriptor(f.kn,e))}catch(Ra){r.push(e)}e=h.indexOf(e);-1<e&&h.splice(e,1)});this.Qka(h,r)}},se:function(){Ca.prototype.se.call(this);this.$k&&this.$k.parentNode&&this.$k.parentNode.removeChild(this.$k)},Ot:function(e,f,h){if(!e)Object(ca.j)("Script could not be executed");
|
|
else if(Ja){this.qp(h);var n=Ga;Ga=h;f=this.Cq("Event",f);this.kn.event=f;this.op.event=f;h=Aa;Aa=f;try{e.call(this.kn)}catch(Ha){Object(ca.j)("Embedded JS error encountered, "+f.name+" event on "+(f.qqa||f.type),Ha),f=e.lo,e=e.lo.split("\n"),5<e.length&&(f=e.slice(0,5).join("\n")+"\n..."),Object(ca.j)(f)}Aa=h;Ga=n}}});Fa.zma=ya;Fa.F6=function(){return new Ea}})(window)},function(ia,ba,e){e(235)},function(ia,ba,e){function ea(e){"string"!==typeof e&&(e=String(e));if(/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||
|
|
""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function x(e){"string"!==typeof e&&(e=String(e));return e}function ha(e){var f={next:function(){var f=e.shift();return{done:void 0===f,value:f}}};pa.oV&&(rb(),Mb(),f[Symbol.iterator]=function(){return f});return f}function ca(e){this.map={};e instanceof ca?e.forEach(function(e,f){this.append(f,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(f){this.append(f,
|
|
e[f])},this)}function da(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function aa(e){return new Promise(function(f,h){e.onload=function(){f(e.result)};e.onerror=function(){h(e.error)}})}function w(e){var f=new FileReader,h=aa(f);f.readAsArrayBuffer(e);return h}function y(e){e=new Uint8Array(e);for(var f=Array(e.length),h=0;h<e.length;h++)f[h]=String.fromCharCode(e[h]);return f.join("")}function n(e){if(e.slice)return e.slice(0);var f=new Uint8Array(e.byteLength);
|
|
f.set(new Uint8Array(e));return f.buffer}function h(){this.bodyUsed=!1;this.xP=function(e){this.bodyUsed=this.bodyUsed;(this.bp=e)?"string"===typeof e?this.Xu=e:pa.blob&&Blob.prototype.isPrototypeOf(e)?this.ap=e:pa.formData&&FormData.prototype.isPrototypeOf(e)?this.MO=e:pa.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this.Xu=e.toString():pa.arrayBuffer&&pa.blob&&e&&DataView.prototype.isPrototypeOf(e)?(this.Pg=n(e.buffer),this.bp=new Blob([this.Pg])):pa.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||
|
|
la(e))?this.Pg=n(e):this.Xu=e=Object.prototype.toString.call(e):this.Xu="";this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this.ap&&this.ap.type?this.headers.set("content-type",this.ap.type):pa.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))};pa.blob&&(this.blob=function(){var e=da(this);if(e)return e;if(this.ap)return Promise.resolve(this.ap);
|
|
if(this.Pg)return Promise.resolve(new Blob([this.Pg]));if(this.MO)throw Error("could not read FormData body as blob");return Promise.resolve(new Blob([this.Xu]))},this.arrayBuffer=function(){if(this.Pg){var e=da(this);return e?e:ArrayBuffer.isView(this.Pg)?Promise.resolve(this.Pg.buffer.slice(this.Pg.byteOffset,this.Pg.byteOffset+this.Pg.byteLength)):Promise.resolve(this.Pg)}return this.blob().then(w)});this.text=function(){var e=da(this);if(e)return e;if(this.ap){e=this.ap;var f=new FileReader,h=
|
|
aa(f);f.readAsText(e);return h}if(this.Pg)return Promise.resolve(y(this.Pg));if(this.MO)throw Error("could not read FormData body as text");return Promise.resolve(this.Xu)};pa.formData&&(this.formData=function(){return this.text().then(r)});this.json=function(){return this.text().then(JSON.parse)};return this}function f(e,h){if(!(this instanceof f))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');h=h||{};var n=h.body;if(e instanceof
|
|
f){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url;this.credentials=e.credentials;h.headers||(this.headers=new ca(e.headers));this.method=e.method;this.mode=e.mode;this.signal=e.signal;n||null==e.bp||(n=e.bp,e.bodyUsed=!0)}else this.url=String(e);this.credentials=h.credentials||this.credentials||"same-origin";if(h.headers||!this.headers)this.headers=new ca(h.headers);e=h.method||this.method||"GET";var r=e.toUpperCase();this.method=-1<na.indexOf(r)?r:e;this.mode=h.mode||this.mode||
|
|
null;this.signal=h.signal||this.signal;this.referrer=null;if(("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this.xP(n);if("GET"===this.method||"HEAD"===this.method)if("no-store"===h.cache||"no-cache"===h.cache)h=/([?&])_=[^&]*/,h.test(this.url)?this.url=this.url.replace(h,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}function r(e){var f=new FormData;e.trim().split("&").forEach(function(e){if(e){var h=
|
|
e.split("=");e=h.shift().replace(/\+/g," ");h=h.join("=").replace(/\+/g," ");f.append(decodeURIComponent(e),decodeURIComponent(h))}});return f}function z(e){var f=new ca;e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var h=e.split(":");if(e=h.shift().trim())h=h.join(":").trim(),f.append(e,h)});return f}function fa(e,f){if(!(this instanceof fa))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
f||(f={});this.type="default";this.status=void 0===f.status?200:f.status;this.ok=200<=this.status&&300>this.status;this.statusText=void 0===f.statusText?"":""+f.statusText;this.headers=new ca(f.headers);this.url=f.url||"";this.xP(e)}function ka(e,h){return new Promise(function(n,r){function w(){aa.abort()}var y=new f(e,h);if(y.signal&&y.signal.aborted)return r(new sa("Aborted","AbortError"));var aa=new XMLHttpRequest;aa.onload=function(){var e={status:aa.status,statusText:aa.statusText,headers:z(aa.getAllResponseHeaders()||
|
|
"")};e.url="responseURL"in aa?aa.responseURL:e.headers.get("X-Request-URL");var f="response"in aa?aa.response:aa.responseText;setTimeout(function(){n(new fa(f,e))},0)};aa.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)};aa.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)};aa.onabort=function(){setTimeout(function(){r(new sa("Aborted","AbortError"))},0)};aa.open(y.method,function(e){try{return""===e&&ja.location.href?
|
|
ja.location.href:e}catch(Aa){return e}}(y.url),!0);"include"===y.credentials?aa.withCredentials=!0:"omit"===y.credentials&&(aa.withCredentials=!1);"responseType"in aa&&(pa.blob?aa.responseType="blob":pa.arrayBuffer&&y.headers.get("Content-Type")&&-1!==y.headers.get("Content-Type").indexOf("application/octet-stream")&&(aa.responseType="arraybuffer"));!h||"object"!==typeof h.headers||h.headers instanceof ca?y.headers.forEach(function(e,f){aa.setRequestHeader(f,e)}):Object.getOwnPropertyNames(h.headers).forEach(function(e){aa.setRequestHeader(e,
|
|
x(h.headers[e]))});y.signal&&(y.signal.addEventListener("abort",w),aa.onreadystatechange=function(){4===aa.readyState&&y.signal.removeEventListener("abort",w)});aa.send("undefined"===typeof y.bp?null:y.bp)})}e.r(ba);e.d(ba,"Headers",function(){return ca});e.d(ba,"Request",function(){return f});e.d(ba,"Response",function(){return fa});e.d(ba,"DOMException",function(){return sa});e.d(ba,"fetch",function(){return ka});var ja="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof self&&self||
|
|
"undefined"!==typeof ja&&ja;rb();var pa={searchParams:"URLSearchParams"in ja,oV:"Symbol"in ja&&"iterator"in Symbol,blob:"FileReader"in ja&&"Blob"in ja&&!0,formData:"FormData"in ja,arrayBuffer:"ArrayBuffer"in ja};if(pa.arrayBuffer)var ma="[object Int8Array];[object Uint8Array];[object Uint8ClampedArray];[object Int16Array];[object Uint16Array];[object Int32Array];[object Uint32Array];[object Float32Array];[object Float64Array]".split(";"),la=ArrayBuffer.isView||function(e){return e&&-1<ma.indexOf(Object.prototype.toString.call(e))};
|
|
ca.prototype.append=function(e,f){e=ea(e);f=x(f);var h=this.map[e];this.map[e]=h?h+", "+f:f};ca.prototype["delete"]=function(e){delete this.map[ea(e)]};ca.prototype.get=function(e){e=ea(e);return this.has(e)?this.map[e]:null};ca.prototype.has=function(e){return this.map.hasOwnProperty(ea(e))};ca.prototype.set=function(e,f){this.map[ea(e)]=x(f)};ca.prototype.forEach=function(e,f){for(var h in this.map)this.map.hasOwnProperty(h)&&e.call(f,this.map[h],h,this)};ca.prototype.keys=function(){var e=[];this.forEach(function(f,
|
|
h){e.push(h)});return ha(e)};ca.prototype.values=function(){var e=[];this.forEach(function(f){e.push(f)});return ha(e)};ca.prototype.entries=function(){var e=[];this.forEach(function(f,h){e.push([h,f])});return ha(e)};pa.oV&&(rb(),Mb(),ca.prototype[Symbol.iterator]=ca.prototype.entries);var na="DELETE GET HEAD OPTIONS POST PUT".split(" ");f.prototype.clone=function(){return new f(this,{body:this.bp})};h.call(f.prototype);h.call(fa.prototype);fa.prototype.clone=function(){return new fa(this.bp,{status:this.status,
|
|
statusText:this.statusText,headers:new ca(this.headers),url:this.url})};fa.error=function(){var e=new fa(null,{status:0,statusText:""});e.type="error";return e};var ra=[301,302,303,307,308];fa.redirect=function(e,f){if(-1===ra.indexOf(f))throw new RangeError("Invalid status code");return new fa(null,{status:f,headers:{location:e}})};var sa=ja.DOMException;try{new sa}catch(Da){sa=function(e,f){this.message=e;this.name=f;this.stack=Error(e).stack},sa.prototype=Object.create(Error.prototype),sa.prototype.constructor=
|
|
sa}ka.XW=!0;ja.fetch||(ja.fetch=ka,ja.Headers=ca,ja.Request=f,ja.Response=fa)}]);}).call(this || window)
|