多单位版国产化地质资料管理系统
zhai
2025-12-13 fc0cc9fff4b4cbdc7cbb52b4a96c947530fcbba0
1
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=37)}([function(e,t,n){var o=n(16)("wks"),i=n(18),r=n(1).Symbol,a="function"==typeof r;(e.exports=function(e){return o[e]||(o[e]=a&&r[e]||(a?r:i)("Symbol."+e))}).store=o},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(6);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var o=n(10),i=n(27);e.exports=n(7)?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(1),i=n(4),r=n(11),a=n(18)("src"),s=n(42),c=(""+s).split("toString");n(2).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(r(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(r(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===o?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(26)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){e.exports={}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(3),i=n(40),r=n(41),a=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(o(e),t=r(t,!0),o(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(1),i=n(2),r=n(4),a=n(5),s=n(13),c=function(e,t,n){var u,l,d,f,h=e&c.F,p=e&c.G,v=e&c.S,m=e&c.P,g=e&c.B,y=p?o:v?o[t]||(o[t]={}):(o[t]||{}).prototype,b=p?i:i[t]||(i[t]={}),w=b.prototype||(b.prototype={});for(u in p&&(n=t),n)d=((l=!h&&y&&void 0!==y[u])?y:n)[u],f=g&&l?s(d,o):m&&"function"==typeof d?s(Function.call,d):d,y&&a(y,u,d,e&c.U),b[u]!=d&&r(b,u,f),m&&w[u]!=d&&(w[u]=d)};o.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var o=n(14);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,i){return e.call(t,n,o,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var o=n(9),i=n(0)("toStringTag"),r="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:r?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(2),i=n(1),r=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(17)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){var o=n(6),i=n(1).document,r=o(i)&&o(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var o=n(49),i=n(21);e.exports=function(e){return o(i(e))}},function(e,t,n){var o=n(16)("keys"),i=n(18);e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){var o=n(10).f,i=n(11),r=n(0)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,r)&&o(e,r,{configurable:!0,value:t})}},function(e,t,n){"use strict";var o=n(14);function i(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)}e.exports.f=function(e){return new i(e)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(17),i=n(12),r=n(5),a=n(4),s=n(8),c=n(45),u=n(24),l=n(52),d=n(0)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,v,m,g){c(n,t,p);var y,b,w,P=function(e){if(!f&&e in M)return M[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",x="values"==v,_=!1,M=e.prototype,T=M[d]||M["@@iterator"]||v&&M[v],S=T||P(v),A=v?x?P("entries"):S:void 0,L="Array"==t&&M.entries||T;if(L&&(w=l(L.call(new e)))!==Object.prototype&&w.next&&(u(w,C,!0),o||"function"==typeof w[d]||a(w,d,h)),x&&T&&"values"!==T.name&&(_=!0,S=function(){return T.call(this)}),o&&!g||!f&&!_&&M[d]||a(M,d,S),s[t]=S,s[C]=h,v)if(y={values:x?S:P("values"),keys:m?S:P("keys"),entries:A},g)for(b in y)b in M||r(M,b,y[b]);else i(i.P+i.F*(f||_),t,y);return y}},function(e,t,n){var o=n(48),i=n(31);e.exports=Object.keys||function(e){return o(e,i)}},function(e,t,n){var o=n(20),i=Math.min;e.exports=function(e){return e>0?i(o(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(1).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(3),i=n(14),r=n(0)("species");e.exports=function(e,t){var n,a=o(e).constructor;return void 0===a||null==(n=o(a)[r])?t:i(n)}},function(e,t,n){var o,i,r,a=n(13),s=n(64),c=n(32),u=n(19),l=n(1),d=l.process,f=l.setImmediate,h=l.clearImmediate,p=l.MessageChannel,v=l.Dispatch,m=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&h||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},o(m),m},h=function(e){delete g[e]},"process"==n(9)(d)?o=function(e){d.nextTick(a(y,e,1))}:v&&v.now?o=function(e){v.now(a(y,e,1))}:p?(r=(i=new p).port2,i.port1.onmessage=b,o=a(r.postMessage,r,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(o=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):o="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:f,clear:h}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var o=n(3),i=n(6),r=n(25);e.exports=function(e,t){if(o(e),i(t)&&t.constructor===e)return t;var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){n(38),e.exports=n(72)},function(e,t,n){n(39),n(43),n(54),n(58),n(70),n(71),e.exports=n(2).Promise},function(e,t,n){"use strict";var o=n(15),i={};i[n(0)("toStringTag")]="z",i+""!="[object z]"&&n(5)(Object.prototype,"toString",(function(){return"[object "+o(this)+"]"}),!0)},function(e,t,n){e.exports=!n(7)&&!n(26)((function(){return 7!=Object.defineProperty(n(19)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(6);e.exports=function(e,t){if(!o(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!o(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!o(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports=n(16)("native-function-to-string",Function.toString)},function(e,t,n){"use strict";var o=n(44)(!0);n(28)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){var o=n(20),i=n(21);e.exports=function(e){return function(t,n){var r,a,s=String(i(t)),c=o(n),u=s.length;return c<0||c>=u?e?"":void 0:(r=s.charCodeAt(c))<55296||r>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):r:e?s.slice(c,c+2):a-56320+(r-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(46),i=n(27),r=n(24),a={};n(4)(a,n(0)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=o(a,{next:i(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var o=n(3),i=n(47),r=n(31),a=n(23)("IE_PROTO"),s=function(){},c=function(){var e,t=n(19)("iframe"),o=r.length;for(t.style.display="none",n(32).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c.prototype[r[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},function(e,t,n){var o=n(10),i=n(3),r=n(29);e.exports=n(7)?Object.defineProperties:function(e,t){i(e);for(var n,a=r(t),s=a.length,c=0;s>c;)o.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var o=n(11),i=n(22),r=n(50)(!1),a=n(23)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&o(s,n)&&u.push(n);for(;t.length>c;)o(s,n=t[c++])&&(~r(u,n)||u.push(n));return u}},function(e,t,n){var o=n(9);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(22),i=n(30),r=n(51);e.exports=function(e){return function(t,n,a){var s,c=o(t),u=i(c.length),l=r(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var o=n(20),i=Math.max,r=Math.min;e.exports=function(e,t){return(e=o(e))<0?i(e+t,0):r(e,t)}},function(e,t,n){var o=n(11),i=n(53),r=n(23)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),o(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(21);e.exports=function(e){return Object(o(e))}},function(e,t,n){for(var o=n(55),i=n(29),r=n(5),a=n(1),s=n(4),c=n(8),u=n(0),l=u("iterator"),d=u("toStringTag"),f=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),v=0;v<p.length;v++){var m,g=p[v],y=h[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,f),w[d]||s(w,d,g),c[g]=f,y))for(m in o)w[m]||r(w,m,o[m],!0)}},function(e,t,n){"use strict";var o=n(56),i=n(57),r=n(8),a=n(22);e.exports=n(28)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),r.Arguments=r.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var o=n(0)("unscopables"),i=Array.prototype;null==i[o]&&n(4)(i,o,{}),e.exports=function(e){i[o][e]=!0}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var o,i,r,a,s=n(17),c=n(1),u=n(13),l=n(15),d=n(12),f=n(6),h=n(14),p=n(59),v=n(60),m=n(33),g=n(34).set,y=n(65)(),b=n(25),w=n(35),P=n(66),C=n(36),x=c.TypeError,_=c.process,M=_&&_.versions,T=M&&M.v8||"",S=c.Promise,A="process"==l(_),L=function(){},W=i=b.f,F=!!function(){try{var e=S.resolve(1),t=(e.constructor={})[n(0)("species")]=function(e){e(L,L)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==T.indexOf("6.6")&&-1===P.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},k=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var o=e._v,i=1==e._s,r=0,a=function(t){var n,r,a,s=i?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(i||(2==e._h&&V(e),e._h=1),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),a=!0)),n===t.promise?u(x("Promise-chain cycle")):(r=I(n))?r.call(n,c,u):c(n)):u(o)}catch(e){l&&!a&&l.exit(),u(e)}};n.length>r;)a(n[r++]);e._c=[],e._n=!1,t&&!e._h&&O(e)}))}},O=function(e){g.call(c,(function(){var t,n,o,i=e._v,r=R(e);if(r&&(t=w((function(){A?_.emit("unhandledRejection",i,e):(n=c.onunhandledrejection)?n({promise:e,reason:i}):(o=c.console)&&o.error&&o.error("Unhandled promise rejection",i)})),e._h=A||R(e)?2:1),e._a=void 0,r&&t.e)throw t.v}))},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},V=function(e){g.call(c,(function(){var t;A?_.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})}))},E=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),k(t,!0))},U=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw x("Promise can't be resolved itself");(t=I(e))?y((function(){var o={_w:n,_d:!1};try{t.call(e,u(U,o,1),u(E,o,1))}catch(e){E.call(o,e)}})):(n._v=e,n._s=1,k(n,!1))}catch(e){E.call({_w:n,_d:!1},e)}}};F||(S=function(e){p(this,S,"Promise","_h"),h(e),o.call(this);try{e(u(U,this,1),u(E,this,1))}catch(e){E.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(67)(S.prototype,{then:function(e,t){var n=W(m(this,S));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new o;this.promise=e,this.resolve=u(U,e,1),this.reject=u(E,e,1)},b.f=W=function(e){return e===S||e===a?new r(e):i(e)}),d(d.G+d.W+d.F*!F,{Promise:S}),n(24)(S,"Promise"),n(68)("Promise"),a=n(2).Promise,d(d.S+d.F*!F,"Promise",{reject:function(e){var t=W(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!F),"Promise",{resolve:function(e){return C(s&&this===a?S:this,e)}}),d(d.S+d.F*!(F&&n(69)((function(e){S.all(e).catch(L)}))),"Promise",{all:function(e){var t=this,n=W(t),o=n.resolve,i=n.reject,r=w((function(){var n=[],r=0,a=1;v(e,!1,(function(e){var s=r++,c=!1;n.push(void 0),a++,t.resolve(e).then((function(e){c||(c=!0,n[s]=e,--a||o(n))}),i)})),--a||o(n)}));return r.e&&i(r.v),n.promise},race:function(e){var t=this,n=W(t),o=n.reject,i=w((function(){v(e,!1,(function(e){t.resolve(e).then(n.resolve,o)}))}));return i.e&&o(i.v),n.promise}})},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(13),i=n(61),r=n(62),a=n(3),s=n(30),c=n(63),u={},l={};(t=e.exports=function(e,t,n,d,f){var h,p,v,m,g=f?function(){return e}:c(e),y=o(n,d,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(r(g)){for(h=s(e.length);h>b;b++)if((m=t?y(a(p=e[b])[0],p[1]):y(e[b]))===u||m===l)return m}else for(v=g.call(e);!(p=v.next()).done;)if((m=i(v,y,p.value,t))===u||m===l)return m}).BREAK=u,t.RETURN=l},function(e,t,n){var o=n(3);e.exports=function(e,t,n,i){try{return i?t(o(n)[0],n[1]):t(n)}catch(t){var r=e.return;throw void 0!==r&&o(r.call(e)),t}}},function(e,t,n){var o=n(8),i=n(0)("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||r[i]===e)}},function(e,t,n){var o=n(15),i=n(0)("iterator"),r=n(8);e.exports=n(2).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||r[o(e)]}},function(e,t){e.exports=function(e,t,n){var o=void 0===n;switch(t.length){case 0:return o?e():e.call(n);case 1:return o?e(t[0]):e.call(n,t[0]);case 2:return o?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var o=n(1),i=n(34).set,r=o.MutationObserver||o.WebKitMutationObserver,a=o.process,s=o.Promise,c="process"==n(9)(a);e.exports=function(){var e,t,n,u=function(){var o,i;for(c&&(o=a.domain)&&o.exit();e;){i=e.fn,e=e.next;try{i()}catch(o){throw e?n():t=void 0,o}}t=void 0,o&&o.enter()};if(c)n=function(){a.nextTick(u)};else if(!r||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(u)}}else n=function(){i.call(o,u)};else{var d=!0,f=document.createTextNode("");new r(u).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(o){var i={fn:o,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){var o=n(1).navigator;e.exports=o&&o.userAgent||""},function(e,t,n){var o=n(5);e.exports=function(e,t,n){for(var i in t)o(e,i,t[i],n);return e}},function(e,t,n){"use strict";var o=n(1),i=n(10),r=n(7),a=n(0)("species");e.exports=function(e){var t=o[e];r&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var o=n(0)("iterator"),i=!1;try{var r=[7][o]();r.return=function(){i=!0},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var r=[7],a=r[o]();a.next=function(){return{done:n=!0}},r[o]=function(){return a},e(r)}catch(e){}return n}},function(e,t,n){"use strict";var o=n(12),i=n(2),r=n(1),a=n(33),s=n(36);o(o.P+o.R,"Promise",{finally:function(e){var t=a(this,i.Promise||r.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var o=n(12),i=n(25),r=n(35);o(o.S,"Promise",{try:function(e){var t=i.f(this),n=r(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){"use strict";n.r(t);var o={},i=0;"undefined"==typeof console&&(window.console={log:function(){},warn:function(){},error:function(){}});var r=function(){for(var e=1;e<arguments.length;e++)for(var t=Object.keys(arguments[e]),n=0;n<t.length;n++)arguments[0][t[n]]=arguments[e][t[n]];return arguments[0]},a=function(e,t){var n;try{n=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(o){(n=document.createEvent("Event")).initEvent(e,!0,!0),n.detail=t}return n};window.PDFNet&&!o.skipPDFNetWebViewerWarning&&console.warn("PDFNet.js and WebViewer.js have been included in the same context. See https://www.pdftron.com/kb_same_context for an explanation of why this could be an error in your application.");var s=[];o.WebViewer=function(e,t){this._validateOptions(e),"legacy"===e.ui&&(e.html5Path="ui-legacy/ReaderControl.html",e.html5MobilePath="ui-legacy/MobileReaderControl.html",void 0===e.mobileRedirect&&(e.mobileRedirect=!0)),e.fullAPI&&e.pdftronServer&&(e.forceClientSideInit||console.warn("The fullAPI and pdftronServer options have both been set so the forceClientSideInit option is now enabled. This means that WebViewer will switch to client side rendering and processing to allow use of the full API."),e.forceClientSideInit=!0),this.options=r({},o.WebViewer.Options,e);var n=this.options.path.length-1;n>0&&"/"!==this.options.path[n]&&(this.options.path+="/"),this.options.html5Path=this.options.path+this.options.html5Path,this.options.html5MobilePath=this.options.path+this.options.html5MobilePath,t||console.error("ViewerElement is not defined. This may be caused by calling the WebViewer constructor before the DOM is loaded, or an invalid selector. Please see http://r.pdftron.com/guides/quick-start for an example."),this.element=t,this.element.style.overflow="hidden";var i=this;this.messageHandler=function(t){if("requestl"===t.data&&t.source.postMessage({type:"responsel",value:e.l||e.licenseKey},"*"),"requestConfig"===t.data.type&&t.data.id===i.id){var n=e.config?i._correctRelativePath(e.config):"";t.source.postMessage({type:"responseConfig",value:n},"*")}},window.addEventListener("message",this.messageHandler,!1),this.options.autoCreate&&this.create()};var c={licenseKey:void 0,enableAzureWorkaround:!1,isAdminUser:!1,isReadOnly:!1};o.WebViewer.prototype={version:"5.1.0",create:function(){if(this.options.initialDoc){var e=this._correctRelativePath(this.options.initialDoc);e=encodeURIComponent(e),this.options.initialDoc=e,this._create()}else this._create()},_create:function(){this.id=++i,void 0===this._trigger&&(this._trigger=function(e,t){var n=a(e,t);this.element.dispatchEvent(n)});var e=this.options.type.replace(" ","").split(",");e.length<1&&(e[0]="html5"),this._createViewer(e)},_validateOptions:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];i in r({},c,o.WebViewer.Options)||console.warn("".concat(i," is not a valid option name. See http://r.pdftron.com/api/options_anchor for all available options."))}!e.enableRedaction||e.fullAPI||e.pdftronServer||console.warn("FullAPI or WebViewer Server is needed to apply redactions")},_notSupportedMobile:function(){var e=document.createElement("div");e.id="webviewer-browser-unsupported",e.textContent="PDF document viewing is not supported by this browser.",this.element.appendChild(e)},_createViewer:function(e){var t,n=this;if(n.selectedType=null,this.isMobileDevice()){if(this.options.documentType&&"xod"!==this.options.documentType&&!this._testWebAssembly())return void this._notSupportedMobile();if(e=Array("html5Mobile"),n.selectedType="html5Mobile",this.options.mobileRedirect)return t=this.options.html5MobilePath+this._getHTML5OptionsURL(),void(window.location=t)}for(var o=!1,i=!1,r=0;r<e.length;r++){if("html5mobile"===e[r].toLowerCase()){if(this.options.documentType&&"xod"!==this.options.documentType&&!this._testWebAssembly())continue;if(o=!0,n._testHTML5()){if(this.options.mobileRedirect)return n.selectedType="html5Mobile",t=this.options.html5MobilePath+this._getHTML5OptionsURL(),void(window.location=t);if(this.options.xdomainProxyUrl||n.isSameOrigin(decodeURIComponent(n.options.initialDoc))||n._testCORS()){n.selectedType="html5Mobile";break}i=!0}}if("html5"===e[r].toLowerCase()&&(o=!0,n._testHTML5())){var a=n.isSameOrigin(decodeURIComponent(n.options.initialDoc));if(this.options.xdomainProxyUrl||a||n._testCORS()){n.selectedType="html5";break}i=!0}}if("html5"===n.selectedType)n._createHTML5();else if("html5Mobile"===n.selectedType)n._createHTML5Mobile();else{var s;if(i?s="This browser does not support cross origin requests. Please configure xdomain to support CORS.":o&&(s="Please use an HTML5 compatible browser."),s){var c=document.createElement("div");c.id="webviewer-browser-unsupported",c.textContent=s,n.element.appendChild(c)}}},_viewerLoaded:function(e){var t=this;this._trigger("ready");try{var n=e.contentWindow;if(void 0!==this.options.encryption){var o=decodeURIComponent(this.options.initialDoc),i={decrypt:n.CoreControls.Encryption.decrypt,decryptOptions:this.options.encryption,documentId:this.options.documentId};this.loadDocument(o,i)}null===this.instance.docViewer.getDocument()?n.addEventListener("documentLoaded",(function(e){t._trigger(e.type)})):this._trigger("documentLoaded"),["displayModeChanged","layoutModeChanged","zoomChanged","pageChanged","fitModeChanged","toolModeChanged","rotationChanged","finishedSavingPDF"].forEach((function(e){n.addEventListener(e,(function(e){t._trigger(e.type,e.detail)}))}))}catch(e){console.warn("Viewer is on a different domain, the promise from WebViewer function is rejected and API functions will not work because of cross domain permissions. See http://r.pdftron.com/kb_cross_origin for more information.")}},_isPDFExtension:function(e){var t=!1;if(e){[".pdf",".png",".jpg","jpeg"].forEach((function(n){e===n&&(t=!0)}))}return t},_isOfficeExtension:function(e){var t=!1;if(e){[".docx",".doc",".pptx"].forEach((function(n){e===n&&(t=!0)}))}return t},_getHTML5OptionsURL:function(){"html5"===this.selectedType?this.options.html5Options&&r(this.options,this.options.html5Options):"html5Mobile"===this.selectedType&&this.options.html5MobileOptions&&r(this.options,this.options.html5MobileOptions);var e,t,n,o=this.options,i="";if(o.initialDoc&&(i+="#d=".concat(o.initialDoc)),void 0===o.backendType&&(o.backendType=o.pdfBackend),o.documentType&&"xod"===o.documentType&&(e=o.documentType),o.preloadWorker&&"xod"===o.preloadWorker&&(e=o.preloadWorker),o.extension&&(e=o.extension),e&&(i+="&extension=".concat(e)),o.documentType&&"xod"!==o.documentType&&(t=o.documentType),o.preloadWorker&&"xod"!==o.preloadWorker&&(t=o.preloadWorker),t&&(i+="&preloadWorker=".concat(t)),o.backendType&&(i+="&pdf=".concat(o.backendType,"&office=").concat(o.backendType)),o.filename&&(i+="&filename=".concat(o.filename)),o.streaming&&(i+="&streaming=".concat(o.streaming)),o.externalPath){var a=this._correctRelativePath(o.externalPath);a=encodeURIComponent(a),i+="&p=".concat(a)}if(o.encryption&&(i+="&auto_load=false"),o.enableAnnotations&&(i+="&a=1"),o.disabledElements&&"legacy"!==o.ui){var s=encodeURIComponent(o.disabledElements.join(","));i+="&disabledElements=".concat(s)}if(o.serverUrl){var c=this._correctRelativePath(o.serverUrl);c=encodeURIComponent(c),i+="&server_url=".concat(c)}if(o.serverUrlHeaders&&(i+="&serverUrlHeaders=".concat(JSON.stringify(o.serverUrlHeaders))),o.documentId&&(i+="&did=".concat(o.documentId)),o.css){var u=this._correctRelativePath(o.css);u=encodeURIComponent(u),i+="&css=".concat(u)}if("legacy"===o.ui&&o.config){var l=this._correctRelativePath(o.config);l=encodeURIComponent(l),i+="&config=".concat(l)}(o.disableI18n&&"legacy"!==o.ui&&(i+="&disableI18n=1"),o.enableOfflineMode&&(i+="&offline=1"),o.startOffline&&(i+="&startOffline=1"),(o.enableReadOnlyMode||o.isReadOnly)&&(i+="&readonly=1"),o.hideAnnotationPanel&&(i+="&hideAnnotationPanel=1"),void 0!==o.annotationUser&&(i+="&user=".concat(o.annotationUser)),void 0===o.annotationAdmin&&void 0===o.isAdminUser||(i+="&admin=".concat(o.annotationAdmin||o.isAdminUser?1:0)),void 0!==o.custom&&(i+="&custom=".concat(encodeURIComponent(o.custom))),void 0===o.showLocalFilePicker&&void 0===o.enableFilePicker||(i+="&filepicker=".concat(o.showLocalFilePicker||o.enableFilePicker?1:0)),"legacy"===o.ui&&void 0!==o.preloadPDFWorker&&(i+="&preloadWorker=".concat(o.preloadPDFWorker?1:0)),void 0!==o.fullAPI&&(i+="&pdfnet=".concat(o.fullAPI?1:0)),void 0!==o.enableRedaction&&(i+="&enableRedaction=".concat(o.enableRedaction?1:0)),void 0!==o.enableMeasurement&&(i+="&enableMeasurement=".concat(o.enableMeasurement?1:0)),void 0!==o.showToolbarControl&&(i+="&toolbar=".concat(o.showToolbarControl?"true":"false")),void 0!==o.showPageHistoryButtons&&(i+="&pageHistory=".concat(o.showPageHistoryButtons?1:0)),void 0!==o.xdomainProxyUrl)&&(n="string"==typeof o.xdomainProxyUrl?{url:o.xdomainProxyUrl}:o.xdomainProxyUrl,i+="&xdomain_urls=".concat(encodeURIComponent(JSON.stringify(n))));return(o.azureWorkaround||o.enableAzureWorkaround)&&(i+="&azureWorkaround=1"),o.useDownloader||(i+="&useDownloader=0"),o.disableWebsockets&&(i+="&disableWebsockets=1"),o.subzero&&(i+="&subzero=1"),o.forceClientSideInit&&(i+="&forceClientSideInit=1"),void 0!==o.workerTransportPromise&&(i+="&useSharedWorker=".concat(o.workerTransportPromise?"true":"false")),void 0!==o.pdftronServer&&o.pdftronServer&&(i+="&pdftronServer=".concat(encodeURIComponent(o.pdftronServer))),void 0!==o.accessibleMode&&(i+="&accessibleMode=".concat(o.accessibleMode?1:0)),(i+="&id=".concat(this.id)).length>0&&"&"===i[0]&&(i="#".concat(i.slice(1))),i},addInstanceData:function(e){s.push({iframe:e,l:this.options.l||this.options.licenseKey,workerTransportPromise:this.options.workerTransportPromise})},_createHTML5:function(){var e=this,t=this.options.html5Path+this._getHTML5OptionsURL(),n=document.createElement("iframe");this.addInstanceData(n),n.id=this.id,n.src=t,n.title="webviewer",n.frameBorder=0,n.width="100%",n.height="100%",n.setAttribute("allowfullscreen",!0),n.setAttribute("webkitallowfullscreen",!0),n.setAttribute("mozallowfullscreen",!0),this.iframe=n,this.options.backgroundColor&&n.setAttribute("data-bgcolor",this.options.backgroundColor),this.options.assetPath&&n.setAttribute("data-assetpath",encodeURIComponent(this.options.assetPath)),this.loadListener=function(){var t=e.iframe;try{e.instance=t.contentWindow.readerControl,void 0===e.instance?t.contentWindow.addEventListener("viewerLoaded",(function(){e.instance=t.contentWindow.readerControl,e._viewerLoaded(t)})):e._viewerLoaded(t)}catch(n){e._viewerLoaded(t)}},n.addEventListener("load",this.loadListener),this.element.appendChild(n)},_createHTML5Mobile:function(){var e=this,t=this.options.html5MobilePath+this._getHTML5OptionsURL(),n=document.createElement("iframe");this.addInstanceData(n),n.id=this.id,n.src=t,n.frameborder=0,this.options.assetPath&&n.setAttribute("data-assetpath",encodeURIComponent(this.options.assetPath)),n.style.width="100%",n.style.height="100%",this.iframe=n,this.loadListener=function(){var t=e.iframe;try{e.instance=t.contentWindow.readerControl,void 0===e.instance?t.contentWindow.addEventListener("viewerLoaded",(function(){e.instance=t.contentWindow.readerControl,e._viewerLoaded(t)})):e._viewerLoaded(t)}catch(n){e._viewerLoaded(t)}},n.addEventListener("load",this.loadListener),this.element.appendChild(n)},dispose:function(){var e=this;s=s.filter((function(t){return t.iframe!==e.iframe})),this.instance.closeDocument(),window.removeEventListener("message",this.messageHandler),this.iframe.removeEventListener("load",this.loadListener),this.iframe=null},getInstance:function(){return this.instance||console.error("The viewer instance is not defined yet. Try calling getInstance() in the ready event listener, or check http://r.pdftron.com/guides/ui/apis for a detailed example."),this.instance},getSideWindowVisibility:function(){return this.getInstance().getShowSideWindow()},setSideWindowVisibility:function(e){this.getInstance().setShowSideWindow(e)},getShowSideWindow:function(){return this.getSideWindowVisibility()},setShowSideWindow:function(e){this.setSideWindowVisibility(e)},getToolbarVisibility:function(){console.warn("Unsupported method getToolbarVisibility")},setToolbarVisibility:function(e){this.getInstance().setToolbarVisibility(e)},getCurrentPageNumber:function(){return this.getInstance().getCurrentPageNumber()},setCurrentPageNumber:function(e){this.getInstance().setCurrentPageNumber(e)},getPageCount:function(){return this.getInstance().getPageCount()},getZoomLevel:function(){return this.getInstance().getZoomLevel()},setZoomLevel:function(e){this.getInstance().setZoomLevel(e)},rotateClockwise:function(){this.getInstance().rotateClockwise()},rotateCounterClockwise:function(){this.getInstance().rotateCounterClockwise()},getLayoutMode:function(){var e,t=this.getInstance().getLayoutMode(),n=this.iframe.contentWindow.CoreControls.DisplayModes;return t===n.Single?e=o.WebViewer.LayoutMode.Single:t===n.Continuous?e=o.WebViewer.LayoutMode.Continuous:t===n.Facing?e=o.WebViewer.LayoutMode.Facing:t===n.FacingContinuous?e=o.WebViewer.LayoutMode.FacingContinuous:t===n.Cover?e=o.WebViewer.LayoutMode.FacingCoverContinuous:t===n.CoverFacing&&(e=o.WebViewer.LayoutMode.FacingCover),e},setLayoutMode:function(e){var t=this.iframe.contentWindow.CoreControls.DisplayModes,n=t.Continuous;e===o.WebViewer.LayoutMode.Single?n=t.Single:e===o.WebViewer.LayoutMode.Continuous?n=t.Continuous:e===o.WebViewer.LayoutMode.Facing?n=t.Facing:e===o.WebViewer.LayoutMode.FacingContinuous?n=t.FacingContinuous:e===o.WebViewer.LayoutMode.FacingCover?n=t.CoverFacing:e===o.WebViewer.LayoutMode.FacingCoverContinuous&&(n=t.Cover),this.getInstance().setLayoutMode(n)},getToolMode:function(){return this.getInstance().getToolMode()},setToolMode:function(e){this.getInstance().setToolMode(e)},fitWidth:function(){var e=this.getInstance().docViewer;e.setFitMode(e.FitMode.FitWidth)},fitHeight:function(){},fitPage:function(){var e=this.getInstance().docViewer;e.setFitMode(e.FitMode.FitPage)},getFitMode:function(){var e=this.getInstance().getFitMode(),t=this.getInstance().docViewer.FitMode;switch(e){case t.FitWidth:return o.WebViewer.FitMode.FitWidth;case t.FitHeight:return o.WebViewer.FitMode.FitHeight;case t.FitPage:return o.WebViewer.FitMode.FitPage;case t.Zoom:return o.WebViewer.FitMode.Zoom;default:console.warn("Unsupported fit mode")}},setFitMode:function(e){e===o.WebViewer.FitMode.FitWidth?this.fitWidth():e===o.WebViewer.FitMode.FitHeight?this.fitHeight():e===o.WebViewer.FitMode.FitPage?this.fitPage():e===o.WebViewer.FitMode.Zoom?this.zoom():console.warn("Unsupported fit mode: ".concat(e))},zoom:function(){var e=this.getInstance().docViewer;e.setFitMode(e.FitMode.Zoom)},goToFirstPage:function(){this.getInstance().goToFirstPage()},goToLastPage:function(){this.getInstance().goToLastPage()},goToNextPage:function(){this.getInstance().goToNextPage()},goToPrevPage:function(){this.getInstance().goToPrevPage()},loadDocument:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={streaming:this.options.streaming},o=r({},n,t);void 0!==o.documentId&&(this.getInstance().docId=o.documentId),this.getInstance().loadDocument(this._correctRelativePath(e),o)},searchText:function(e,t){var n=0,o=t;if("string"==typeof o&&(o=t.split(",")),void 0!==o)for(var i=0;i<o.length;i++)"CaseSensitive"===o[i]?n+=1:"WholeWord"===o[i]?n+=2:"SearchUp"===o[i]?n+=4:"PageStop"===o[i]?n+=8:"ProvideQuads"===o[i]?n+=16:"AmbientString"===o[i]&&(n+=32);void 0===t?this.getInstance().searchText(e):this.getInstance().searchText(e,n)},setAnnotationUser:function(e){this.getInstance().setAnnotationUser(e)},setAdminUser:function(e){this.getInstance().setAdminUser(e)},setReadOnly:function(e){this.getInstance().setReadOnly(e)},downloadXodDocument:function(){if("xod"===this.documentType){var e=decodeURIComponent(this.options.initialDoc);window.open(e)}else console.warn("Unsupported method for this document type")},startPrintJob:function(e){"html5"===this.selectedType?this.getInstance().startPrintJob(e):console.warn("Unsupported method startPrintJob")},endPrintJob:function(){"html5"===this.selectedType?this.getInstance().endPrintJob():console.warn("Unsupported method endPrintJob")},getViewerType:function(){return this.selectedType},_correctRelativePath:function(e){if("string"!=typeof e)return e;var t=window.location.pathname.substr(0,window.location.pathname.lastIndexOf("/"));return/^(\/|%2F|[a-z0-9-]+:)/i.test(e)?e:"".concat(t,"/").concat(e)},_testHTML5:function(){try{var e=document.createElement("canvas");return e&&e.getContext("2d")}catch(e){return!1}},_testWebAssembly:function(){return!(!window.WebAssembly||!window.WebAssembly.validate)},_supports:function(e){if(e===this.selectedType)return!0;for(var t=1;t<arguments.length;t++)if(arguments[t]===this.selectedType)return!0;return!1},_testCORS:function(){return"XMLHttpRequest"in window&&"withCredentials"in new XMLHttpRequest},isIE:function(){var e=navigator.userAgent.toLowerCase(),t=/(msie) ([\w.]+)/.exec(e)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(e);return t?parseInt(t[2],10):t},isMobileDevice:function(){return!this.isIE()&&(0===this.scrollbarWidth()&&navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Touch/i)||navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/Silk/i))},scrollbarWidth:function(){var e=document.createElement("div");e.style.cssText="width:100px;height:100px;overflow:scroll !important;position:absolute;top:-9999px",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},isSameOrigin:function(e){var t=window.location,n=document.createElement("a");n.href=e,""===n.host&&(n.href=n.href);var o=window.location.port,i=n.port;return"http:"===n.protocol?(i=i||"80",o=o||"80"):"https:"===n.protocol&&(i=i||"443",o=o||"443"),n.hostname===t.hostname&&n.protocol===t.protocol&&i===o},runInIframe:function(e){var t=this.element.querySelector("iframe").contentWindow,n=this,o=function o(){n.element.removeEventListener("ready",o),e(t,n.getInstance(),t.$)};this.getInstance()?setTimeout(o,0):this.element.addEventListener("ready",o)}},o.WebViewer.Options={initialDoc:void 0,annotationAdmin:void 0,isAdminUser:void 0,annotationUser:void 0,assetPath:void 0,autoCreate:!0,azureWorkaround:!1,enableAzureWorkaround:!1,backgroundColor:void 0,backendType:void 0,css:void 0,config:void 0,custom:void 0,documentId:void 0,documentType:void 0,preloadWorker:void 0,extension:void 0,enableAnnotations:!0,filename:void 0,disableI18n:!1,disabledElements:void 0,disableWebsockets:!1,enableOfflineMode:!1,enableReadOnlyMode:!1,isReadOnly:!1,enableRedaction:!1,enableMeasurement:!1,encryption:void 0,externalPath:void 0,hideAnnotationPanel:!1,html5MobileOptions:{},html5MobilePath:"./ui/index.html",html5Options:{},html5Path:"./ui/index.html",l:void 0,licenseKey:void 0,mobileRedirect:!1,path:"",pdfBackend:void 0,pdftronServer:void 0,fullAPI:!1,preloadPDFWorker:!0,serverUrl:void 0,serverUrlHeaders:void 0,showLocalFilePicker:!1,enableFilePicker:!1,showPageHistoryButtons:!0,showToolbarControl:void 0,startOffline:!1,streaming:!1,subzero:!0,type:"html5,html5Mobile",useDownloader:!0,workerTransportPromise:void 0,xdomainProxyUrl:void 0,ui:void 0,forceClientSideInit:!1,accessibleMode:void 0},o.WebViewer.LayoutMode={Continuous:"Continuous",FacingCoverContinuous:"CoverContinuous",Facing:"Facing",FacingContinuous:"FacingContinuous",FacingCover:"FacingCover",Single:"SinglePage"},o.WebViewer.ToolMode={AnnotationCreateArrow:"AnnotationCreateArrow",AnnotationCreateCallout:"AnnotationCreateCallout",AnnotationCreateEllipse:"AnnotationCreateEllipse",AnnotationCreateFreeHand:"AnnotationCreateFreeHand",AnnotationCreateFreeText:"AnnotationCreateFreeText",AnnotationCreateLine:"AnnotationCreateLine",AnnotationCreatePolygon:"AnnotationCreatePolygon",AnnotationCreatePolygonCloud:"AnnotationCreatePolygonCloud",AnnotationCreatePolyline:"AnnotationCreatePolyline",AnnotationCreateRectangle:"AnnotationCreateRectangle",AnnotationCreateSignature:"AnnotationCreateSignature",AnnotationCreateStamp:"AnnotationCreateStamp",AnnotationCreateSticky:"AnnotationCreateSticky",AnnotationCreateTextHighlight:"AnnotationCreateTextHighlight",AnnotationCreateTextSquiggly:"AnnotationCreateTextSquiggly",AnnotationCreateTextStrikeout:"AnnotationCreateTextStrikeout",AnnotationCreateTextUnderline:"AnnotationCreateTextUnderline",AnnotationEdit:"AnnotationEdit"},o.WebViewer.FitMode={FitHeight:"FitHeight",FitPage:"FitPage",FitWidth:"FitWidth",Zoom:"Zoom"},o.WebViewer.SearchMode={CaseSensitive:1,WholeWord:2,SearchUp:4,PageStop:8,ProvideQuads:16,AmbientString:32},o.WebViewer.User=function(e,t,n){this.username=e,this.isAdmin=void 0!==t&&t,this.isReadOnly=void 0!==n&&n};var u=function(e,t){return new Promise((function(n,i){e.l=e.l||e.licenseKey,e.azureWorkaround=e.azureWorkaround||e.enableAzureWorkaround,e.annotationAdmin=e.annotationAdmin||e.isAdminUser,e.enableReadOnlyMode=e.enableReadOnlyMode||e.isReadOnly,e.showLocalFilePicker=e.showLocalFilePicker||e.enableFilePicker;var a=new o.WebViewer(e,t);t.addEventListener("ready",(function e(){t.removeEventListener("ready",e);try{var o=t.querySelector("iframe").contentWindow,s=o.Tools;if(void 0===s)return i("Viewer isn't instantiated correctly. It could be caused by the 'path' option in the WebViewer constructor not being defined correctly. The 'path' option should be relative to the HTML file you're loading the script on and the lib folder needs to be publicly accessible.");var c=a.getInstance();n(r({},c,{dispose:a.dispose.bind(a),Tools:s,Annotations:o.Annotations,CoreControls:o.CoreControls,PartRetrievers:o.CoreControls.PartRetrievers,Actions:o.Actions,PDFNet:o.PDFNet,annotManager:c.docViewer.getAnnotationManager(),docViewer:c.docViewer,iframeWindow:o}))}catch(e){i("Viewer is on a different domain, the promise from WebViewer function is rejected and API functions will not work because of cross domain permissions. See https://www.pdftron.com/kb_cross_origin for more information.")}}))}))},l=function(e){return s.filter((function(t){return t.iframe===e}))[0]};u.l=function(e){var t=l(e);return t&&t.l},u.workerTransportPromise=function(e){var t=l(e);return t&&t.workerTransportPromise},window.PDFTron=o,window.WebViewer=u,t.default=u}])}));