(function(){/*

 Lodash <https://lodash.com/>
 Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 Released under MIT license <https://lodash.com/license>
 Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
**************************************************************************** The buffer module from node.js, for the browser.

 @author   Feross Aboukhadijeh <http://feross.org>
 @license  MIT
 The buffer module from node.js, for the browser.

 @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 @license  MIT
 https://mths.be/punycode v1.4.1 by @mathias */
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(array){var index=0;return function(){return index<array.length?{done:!1,value:array[index++]}:{done:!0}}};$jscomp.arrayIterator=function(array){return{next:$jscomp.arrayIteratorImpl(array)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;
$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(target,property,descriptor){if(target==Array.prototype||target==Object.prototype)return target;target[property]=descriptor.value;return target};
$jscomp.getGlobal=function(passedInThis){passedInThis=["object"==typeof globalThis&&globalThis,passedInThis,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var i=0;i<passedInThis.length;++i){var maybeGlobal=passedInThis[i];if(maybeGlobal&&maybeGlobal.Math==Math)return maybeGlobal}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");
$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(target,property){var obfuscatedName=$jscomp.propertyToPolyfillSymbol[property];if(null==obfuscatedName)return target[property];obfuscatedName=target[obfuscatedName];return void 0!==obfuscatedName?obfuscatedName:target[property]};
$jscomp.polyfill=function(target,polyfill,fromLang,toLang){polyfill&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(target,polyfill,fromLang,toLang):$jscomp.polyfillUnisolated(target,polyfill,fromLang,toLang))};
$jscomp.polyfillUnisolated=function(target,polyfill,fromLang,toLang){fromLang=$jscomp.global;target=target.split(".");for(toLang=0;toLang<target.length-1;toLang++){var key=target[toLang];if(!(key in fromLang))return;fromLang=fromLang[key]}target=target[target.length-1];toLang=fromLang[target];polyfill=polyfill(toLang);polyfill!=toLang&&null!=polyfill&&$jscomp.defineProperty(fromLang,target,{configurable:!0,writable:!0,value:polyfill})};
$jscomp.polyfillIsolated=function(target,polyfill,fromLang,toLang){var split=target.split(".");target=1===split.length;toLang=split[0];toLang=!target&&toLang in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var i=0;i<split.length-1;i++){var key=split[i];if(!(key in toLang))return;toLang=toLang[key]}split=split[split.length-1];fromLang=$jscomp.IS_SYMBOL_NATIVE&&"es6"===fromLang?toLang[split]:null;polyfill=polyfill(fromLang);null!=polyfill&&(target?$jscomp.defineProperty($jscomp.polyfills,
split,{configurable:!0,writable:!0,value:polyfill}):polyfill!==fromLang&&(void 0===$jscomp.propertyToPolyfillSymbol[split]&&(fromLang=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[split]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(split):$jscomp.POLYFILL_PREFIX+fromLang+"$"+split),$jscomp.defineProperty(toLang,$jscomp.propertyToPolyfillSymbol[split],{configurable:!0,writable:!0,value:polyfill})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(orig){if(orig)return orig;var SymbolClass=function(id,opt_description){this.$jscomp$symbol$id_=id;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:opt_description})};SymbolClass.prototype.toString=function(){return this.$jscomp$symbol$id_};var SYMBOL_PREFIX="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",counter=0,symbolPolyfill=function(opt_description){if(this instanceof symbolPolyfill)throw new TypeError("Symbol is not a constructor");
return new SymbolClass(SYMBOL_PREFIX+(opt_description||"")+"_"+counter++,opt_description)};return symbolPolyfill},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(orig){if(orig)return orig;orig=Symbol("Symbol.iterator");for(var arrayLikes="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),i=0;i<arrayLikes.length;i++){var ArrayLikeCtor=$jscomp.global[arrayLikes[i]];"function"===typeof ArrayLikeCtor&&"function"!=typeof ArrayLikeCtor.prototype[orig]&&$jscomp.defineProperty(ArrayLikeCtor.prototype,orig,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return orig},
"es6","es3");$jscomp.polyfill("Symbol.asyncIterator",function(orig){return orig?orig:Symbol("Symbol.asyncIterator")},"es9","es3");$jscomp.iteratorPrototype=function(next){next={next:next};next[Symbol.iterator]=function(){return this};return next};$jscomp.underscoreProtoCanBeSet=function(){var x={a:!0},y={};try{return y.__proto__=x,y.a}catch(e){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(target,proto){target.__proto__=proto;if(target.__proto__!==proto)throw new TypeError(target+" is not extensible");return target}:null;$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};
$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(result){if(!(result instanceof Object))throw new TypeError("Iterator result "+result+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(value){this.yieldResult=value};
$jscomp.generator.Context.prototype.throw_=function(e){this.abruptCompletion_={exception:e,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(value){this.abruptCompletion_={return:value};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(nextAddress){this.abruptCompletion_={jumpTo:nextAddress};this.nextAddress=this.finallyAddress_};
$jscomp.generator.Context.prototype.yield=function(value,resumeAddress){this.nextAddress=resumeAddress;return{value:value}};$jscomp.generator.Context.prototype.yieldAll=function(iterable,resumeAddress){iterable=$jscomp.makeIterator(iterable);var result=iterable.next();$jscomp.generator.ensureIteratorResultIsObject_(result);if(result.done)this.yieldResult=result.value,this.nextAddress=resumeAddress;else return this.yieldAllIterator_=iterable,this.yield(result.value,resumeAddress)};
$jscomp.generator.Context.prototype.jumpTo=function(nextAddress){this.nextAddress=nextAddress};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(catchAddress,finallyAddress){this.catchAddress_=catchAddress;void 0!=finallyAddress&&(this.finallyAddress_=finallyAddress)};$jscomp.generator.Context.prototype.setFinallyBlock=function(finallyAddress){this.catchAddress_=0;this.finallyAddress_=finallyAddress||0};
$jscomp.generator.Context.prototype.leaveTryBlock=function(nextAddress,catchAddress){this.nextAddress=nextAddress;this.catchAddress_=catchAddress||0};$jscomp.generator.Context.prototype.enterCatchBlock=function(nextCatchBlockAddress){this.catchAddress_=nextCatchBlockAddress||0;nextCatchBlockAddress=this.abruptCompletion_.exception;this.abruptCompletion_=null;return nextCatchBlockAddress};
$jscomp.generator.Context.prototype.enterFinallyBlock=function(nextCatchAddress,nextFinallyAddress,finallyDepth){finallyDepth?this.finallyContexts_[finallyDepth]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=nextCatchAddress||0;this.finallyAddress_=nextFinallyAddress||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(nextAddress,finallyDepth){finallyDepth=this.finallyContexts_.splice(finallyDepth||0)[0];if(finallyDepth=this.abruptCompletion_=this.abruptCompletion_||finallyDepth){if(finallyDepth.isException)return this.jumpToErrorHandler_();void 0!=finallyDepth.jumpTo&&this.finallyAddress_<finallyDepth.jumpTo?(this.nextAddress=finallyDepth.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=nextAddress};
$jscomp.generator.Context.prototype.forIn=function(object){return new $jscomp.generator.Context.PropertyIterator(object)};$jscomp.generator.Context.PropertyIterator=function(object){this.object_=object;this.properties_=[];for(var property in object)this.properties_.push(property);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var property=this.properties_.pop();if(property in this.object_)return property}return null};
$jscomp.generator.Engine_=function(program){this.context_=new $jscomp.generator.Context;this.program_=program};$jscomp.generator.Engine_.prototype.next_=function(value){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,value,this.context_.next_);this.context_.next_(value);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(value){this.context_.start_();var yieldAllIterator=this.context_.yieldAllIterator_;if(yieldAllIterator)return this.yieldAllStep_("return"in yieldAllIterator?yieldAllIterator["return"]:function(v){return{value:v,done:!0}},value,this.context_.return);this.context_.return(value);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(exception){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],exception,this.context_.next_);this.context_.throw_(exception);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(action,value,nextAction){try{var result=action.call(this.context_.yieldAllIterator_,value);$jscomp.generator.ensureIteratorResultIsObject_(result);if(!result.done)return this.context_.stop_(),result;var resultValue=result.value}catch(e){return this.context_.yieldAllIterator_=null,this.context_.throw_(e),this.nextStep_()}this.context_.yieldAllIterator_=null;nextAction.call(this.context_,resultValue);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var yieldValue=this.program_(this.context_);if(yieldValue)return this.context_.stop_(),{value:yieldValue.value,done:!1}}catch(e){this.context_.yieldResult=void 0,this.context_.throw_(e)}this.context_.stop_();if(this.context_.abruptCompletion_){yieldValue=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(yieldValue.isException)throw yieldValue.exception;return{value:yieldValue.return,
done:!0}}return{value:void 0,done:!0}};$jscomp.generator.Generator_=function(engine){this.next=function(opt_value){return engine.next_(opt_value)};this.throw=function(exception){return engine.throw_(exception)};this.return=function(value){return engine.return_(value)};this[Symbol.iterator]=function(){return this}};
$jscomp.generator.createGenerator=function(generator,program){program=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program));$jscomp.setPrototypeOf&&generator.prototype&&$jscomp.setPrototypeOf(program,generator.prototype);return program};
$jscomp.asyncExecutePromiseGenerator=function(generator){function passValueToGenerator(value){return generator.next(value)}function passErrorToGenerator(error){return generator.throw(error)}return new Promise(function(resolve,reject){function handleGeneratorRecord(genRec){genRec.done?resolve(genRec.value):Promise.resolve(genRec.value).then(passValueToGenerator,passErrorToGenerator).then(handleGeneratorRecord,reject)}handleGeneratorRecord(generator.next())})};
$jscomp.asyncExecutePromiseGeneratorFunction=function(generatorFunction){return $jscomp.asyncExecutePromiseGenerator(generatorFunction())};$jscomp.asyncExecutePromiseGeneratorProgram=function(program){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(program)))};
$jscomp.polyfill("Promise",function(NativePromise){function AsyncExecutor(){this.batch_=null}function resolvingPromise(opt_value){return opt_value instanceof PolyfillPromise?opt_value:new PolyfillPromise(function(resolve,reject){resolve(opt_value)})}if(NativePromise&&(!($jscomp.FORCE_POLYFILL_PROMISE||$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&"undefined"===typeof $jscomp.global.PromiseRejectionEvent)||!$jscomp.global.Promise||-1===$jscomp.global.Promise.toString().indexOf("[native code]")))return NativePromise;
AsyncExecutor.prototype.asyncExecute=function(f){if(null==this.batch_){this.batch_=[];var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})}this.batch_.push(f)};var nativeSetTimeout=$jscomp.global.setTimeout;AsyncExecutor.prototype.asyncExecuteFunction=function(f){nativeSetTimeout(f,0)};AsyncExecutor.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var executingBatch=this.batch_;this.batch_=[];for(var i=0;i<executingBatch.length;++i){var f=executingBatch[i];
executingBatch[i]=null;try{f()}catch(error){this.asyncThrow_(error)}}}this.batch_=null};AsyncExecutor.prototype.asyncThrow_=function(exception){this.asyncExecuteFunction(function(){throw exception;})};var PolyfillPromise=function(executor){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_=
function(){function firstCallWins(method){return function(x){alreadyCalled||(alreadyCalled=!0,method.call(thisPromise,x))}}var thisPromise=this,alreadyCalled=!1;return{resolve:firstCallWins(this.resolveTo_),reject:firstCallWins(this.reject_)}};PolyfillPromise.prototype.resolveTo_=function(value){if(value===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(value instanceof PolyfillPromise)this.settleSameAsPromise_(value);else{a:switch(typeof value){case "object":var JSCompiler_inline_result=
null!=value;break a;case "function":JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=!1}JSCompiler_inline_result?this.resolveToNonPromiseObj_(value):this.fulfill_(value)}};PolyfillPromise.prototype.resolveToNonPromiseObj_=function(obj){var thenMethod=void 0;try{thenMethod=obj.then}catch(error){this.reject_(error);return}"function"==typeof thenMethod?this.settleSameAsThenable_(thenMethod,obj):this.fulfill_(obj)};PolyfillPromise.prototype.reject_=function(reason){this.settle_(2,
reason)};PolyfillPromise.prototype.fulfill_=function(value){this.settle_(1,value)};PolyfillPromise.prototype.settle_=function(settledState,valueOrReason){if(0!=this.state_)throw Error("Cannot settle("+settledState+", "+valueOrReason+"): Promise already settled in state"+this.state_);this.state_=settledState;this.result_=valueOrReason;2===this.state_&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.scheduleUnhandledRejectionCheck_=function(){var self=
this;nativeSetTimeout(function(){if(self.notifyUnhandledRejection_()){var nativeConsole=$jscomp.global.console;"undefined"!==typeof nativeConsole&&nativeConsole.error(self.result_)}},1)};PolyfillPromise.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var NativeCustomEvent=$jscomp.global.CustomEvent,NativeEvent=$jscomp.global.Event,nativeDispatchEvent=$jscomp.global.dispatchEvent;if("undefined"===typeof nativeDispatchEvent)return!0;"function"===typeof NativeCustomEvent?
NativeCustomEvent=new NativeCustomEvent("unhandledrejection",{cancelable:!0}):"function"===typeof NativeEvent?NativeCustomEvent=new NativeEvent("unhandledrejection",{cancelable:!0}):(NativeCustomEvent=$jscomp.global.document.createEvent("CustomEvent"),NativeCustomEvent.initCustomEvent("unhandledrejection",!1,!0,NativeCustomEvent));NativeCustomEvent.promise=this;NativeCustomEvent.reason=this.result_;return nativeDispatchEvent(NativeCustomEvent)};PolyfillPromise.prototype.executeOnSettledCallbacks_=
function(){if(null!=this.onSettledCallbacks_){for(var i=0;i<this.onSettledCallbacks_.length;++i)asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var asyncExecutor=new AsyncExecutor;PolyfillPromise.prototype.settleSameAsPromise_=function(promise){var methods=this.createResolveAndReject_();promise.callWhenSettled_(methods.resolve,methods.reject)};PolyfillPromise.prototype.settleSameAsThenable_=function(thenMethod,thenable){var methods=this.createResolveAndReject_();
try{thenMethod.call(thenable,methods.resolve,methods.reject)}catch(error){methods.reject(error)}};PolyfillPromise.prototype.then=function(onFulfilled,onRejected){function createCallback(paramF,defaultF){return"function"==typeof paramF?function(x){try{resolveChild(paramF(x))}catch(error){rejectChild(error)}}:defaultF}var resolveChild,rejectChild,childPromise=new PolyfillPromise(function(resolve,reject){resolveChild=resolve;rejectChild=reject});this.callWhenSettled_(createCallback(onFulfilled,resolveChild),
createCallback(onRejected,rejectChild));return childPromise};PolyfillPromise.prototype.catch=function(onRejected){return this.then(void 0,onRejected)};PolyfillPromise.prototype.callWhenSettled_=function(onFulfilled,onRejected){function callback(){switch(thisPromise.state_){case 1:onFulfilled(thisPromise.result_);break;case 2:onRejected(thisPromise.result_);break;default:throw Error("Unexpected state: "+thisPromise.state_);}}var thisPromise=this;null==this.onSettledCallbacks_?asyncExecutor.asyncExecute(callback):
this.onSettledCallbacks_.push(callback);this.isRejectionHandled_=!0};PolyfillPromise.resolve=resolvingPromise;PolyfillPromise.reject=function(opt_reason){return new PolyfillPromise(function(resolve,reject){reject(opt_reason)})};PolyfillPromise.race=function(thenablesOrValues){return new PolyfillPromise(function(resolve,reject){for(var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();!iterRec.done;iterRec=iterator.next())resolvingPromise(iterRec.value).callWhenSettled_(resolve,
reject)})};PolyfillPromise.all=function(thenablesOrValues){var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();return iterRec.done?resolvingPromise([]):new PolyfillPromise(function(resolveAll,rejectAll){function onFulfilled(i){return function(ithResult){resultsArray[i]=ithResult;unresolvedCount--;0==unresolvedCount&&resolveAll(resultsArray)}}var resultsArray=[],unresolvedCount=0;do resultsArray.push(void 0),unresolvedCount++,resolvingPromise(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length-
1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");$jscomp.iteratorFromArray=function(array,transform){array instanceof String&&(array+="");var i=0,done=!1,iter={next:function(){if(!done&&i<array.length){var index=i++;return{value:transform(index,array[index]),done:!1}}done=!0;return{done:!0,value:void 0}}};iter[Symbol.iterator]=function(){return iter};return iter};
$jscomp.polyfill("Array.prototype.keys",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i){return i})}},"es6","es3");$jscomp.findInternal=function(array,callback,thisArg){array instanceof String&&(array=String(array));for(var len=array.length,i=0;i<len;i++){var value=array[i];if(callback.call(thisArg,value,i,array))return{i:i,v:value}}return{i:-1,v:void 0}};
$jscomp.polyfill("Array.prototype.find",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).v}},"es6","es3");$jscomp.polyfill("Object.setPrototypeOf",function(orig){return orig||$jscomp.setPrototypeOf},"es6","es5");$jscomp.owns=function(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)};
$jscomp.assign=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(target,var_args){for(var i=1;i<arguments.length;i++){var source=arguments[i];if(source)for(var key in source)$jscomp.owns(source,key)&&(target[key]=source[key])}return target};$jscomp.polyfill("Object.assign",function(orig){return orig||$jscomp.assign},"es6","es3");$jscomp.polyfill("Number.EPSILON",function(orig){return Math.pow(2,-52)},"es6","es3");
$jscomp.polyfill("Array.prototype.fill",function(orig){return orig?orig:function(value,opt_start,opt_end){var length=this.length||0;0>opt_start&&(opt_start=Math.max(0,length+opt_start));if(null==opt_end||opt_end>length)opt_end=length;opt_end=Number(opt_end);0>opt_end&&(opt_end=Math.max(0,length+opt_end));for(opt_start=Number(opt_start||0);opt_start<opt_end;opt_start++)this[opt_start]=value;return this}},"es6","es3");$jscomp.typedArrayFill=function(orig){return orig?orig:Array.prototype.fill};
$jscomp.polyfill("Int8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Int32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");
$jscomp.polyfill("Uint32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float32Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.polyfill("Float64Array.prototype.fill",$jscomp.typedArrayFill,"es6","es5");$jscomp.checkEs6ConformanceViaProxy=function(){try{var proxied={},proxy=Object.create(new $jscomp.global.Proxy(proxied,{get:function(target,key,receiver){return target==proxied&&"q"==key&&receiver==proxy}}));return!0===proxy.q}catch(err){return!1}};
$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();
$jscomp.polyfill("WeakMap",function(NativeWeakMap){function isConformant(){if(!NativeWeakMap||!Object.seal)return!1;try{var x=Object.seal({}),y=Object.seal({}),map=new NativeWeakMap([[x,2],[y,3]]);if(2!=map.get(x)||3!=map.get(y))return!1;map.delete(x);map.set(y,4);return!map.has(x)&&4==map.get(y)}catch(err){return!1}}function WeakMapMembership(){}function isValidKey(key){var type=typeof key;return"object"===type&&null!==key||"function"===type}function insert(target){if(!$jscomp.owns(target,prop)){var obj=
new WeakMapMembership;$jscomp.defineProperty(target,prop,{value:obj})}}function patch(name){if(!$jscomp.ISOLATE_POLYFILLS){var prev=Object[name];prev&&(Object[name]=function(target){if(target instanceof WeakMapMembership)return target;Object.isExtensible(target)&&insert(target);return prev(target)})}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(NativeWeakMap&&$jscomp.ES6_CONFORMANCE)return NativeWeakMap}else if(isConformant())return NativeWeakMap;var prop="$jscomp_hidden_"+Math.random();patch("freeze");
patch("preventExtensions");patch("seal");var index=0,PolyfillWeakMap=function(opt_iterable){this.id_=(index+=Math.random()+1).toString();if(opt_iterable){opt_iterable=$jscomp.makeIterator(opt_iterable);for(var entry;!(entry=opt_iterable.next()).done;)entry=entry.value,this.set(entry[0],entry[1])}};PolyfillWeakMap.prototype.set=function(key,value){if(!isValidKey(key))throw Error("Invalid WeakMap key");insert(key);if(!$jscomp.owns(key,prop))throw Error("WeakMap key fail: "+key);key[prop][this.id_]=
value;return this};PolyfillWeakMap.prototype.get=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)?key[prop][this.id_]:void 0};PolyfillWeakMap.prototype.has=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)&&$jscomp.owns(key[prop],this.id_)};PolyfillWeakMap.prototype.delete=function(key){return isValidKey(key)&&$jscomp.owns(key,prop)&&$jscomp.owns(key[prop],this.id_)?delete key[prop][this.id_]:!1};return PolyfillWeakMap},"es6","es3");$jscomp.MapEntry=function(){};
$jscomp.polyfill("Array.from",function(orig){return orig?orig:function(arrayLike,opt_mapFn,opt_thisArg){opt_mapFn=null!=opt_mapFn?opt_mapFn:function(x){return x};var result=[],iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&arrayLike[Symbol.iterator];if("function"==typeof iteratorFunction){arrayLike=iteratorFunction.call(arrayLike);for(var k=0;!(iteratorFunction=arrayLike.next()).done;)result.push(opt_mapFn.call(opt_thisArg,iteratorFunction.value,k++))}else for(iteratorFunction=arrayLike.length,
k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3");$jscomp.polyfill("Math.imul",function(orig){return orig?orig:function(a,b){a=Number(a);b=Number(b);var al=a&65535,bl=b&65535;return al*bl+((a>>>16&65535)*bl+al*(b>>>16&65535)<<16>>>0)|0}},"es6","es3");$jscomp.polyfill("Number.isFinite",function(orig){return orig?orig:function(x){return"number"!==typeof x?!1:!isNaN(x)&&Infinity!==x&&-Infinity!==x}},"es6","es3");
$jscomp.polyfill("Number.isInteger",function(orig){return orig?orig:function(x){return Number.isFinite(x)?x===Math.floor(x):!1}},"es6","es3");$jscomp.checkStringArgs=function(thisArg,arg,func){if(null==thisArg)throw new TypeError("The 'this' value for String.prototype."+func+" must not be null or undefined");if(arg instanceof RegExp)throw new TypeError("First argument to String.prototype."+func+" must not be a regular expression");return thisArg+""};
$jscomp.polyfill("String.prototype.startsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"startsWith");searchString+="";var strLen=string.length,searchLen=searchString.length;opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=0;j<searchLen&&opt_position<strLen;)if(string[opt_position++]!=searchString[j++])return!1;return j>=searchLen}},"es6","es3");
$jscomp.polyfill("Object.is",function(orig){return orig?orig:function(left,right){return left===right?0!==left||1/left===1/right:left!==left&&right!==right}},"es6","es3");
$jscomp.polyfill("Array.prototype.includes",function(orig){return orig?orig:function(searchElement,opt_fromIndex){var array=this;array instanceof String&&(array=String(array));var len=array.length;opt_fromIndex=opt_fromIndex||0;for(0>opt_fromIndex&&(opt_fromIndex=Math.max(opt_fromIndex+len,0));opt_fromIndex<len;opt_fromIndex++){var element=array[opt_fromIndex];if(element===searchElement||Object.is(element,searchElement))return!0}return!1}},"es7","es3");
$jscomp.polyfill("String.prototype.includes",function(orig){return orig?orig:function(searchString,opt_position){return-1!==$jscomp.checkStringArgs(this,searchString,"includes").indexOf(searchString,opt_position||0)}},"es6","es3");
$jscomp.polyfill("String.prototype.repeat",function(orig){return orig?orig:function(copies){var string=$jscomp.checkStringArgs(this,null,"repeat");if(0>copies||1342177279<copies)throw new RangeError("Invalid count value");copies|=0;for(var result="";copies;)if(copies&1&&(result+=string),copies>>>=1)string+=string;return result}},"es6","es3");
$jscomp.polyfill("String.prototype.replaceAll",function(orig){return orig?orig:function(searchValue,replacement){if(searchValue instanceof RegExp&&!searchValue.global)throw new TypeError("String.prototype.replaceAll called with a non-global RegExp argument.");return searchValue instanceof RegExp?this.replace(searchValue,replacement):this.replace(new RegExp(String(searchValue).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),replacement)}},"es_2021","es3");
$jscomp.polyfill("Math.log2",function(orig){return orig?orig:function(x){return Math.log(x)/Math.LN2}},"es6","es3");$jscomp.polyfill("Object.getOwnPropertySymbols",function(orig){return orig?orig:function(){return[]}},"es6","es5");
$jscomp.polyfill("String.prototype.endsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"endsWith");searchString+="";void 0===opt_position&&(opt_position=string.length);opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=searchString.length;0<j&&0<opt_position;)if(string[--opt_position]!=searchString[--j])return!1;return 0>=j}},"es6","es3");
$jscomp.polyfill("Array.prototype.entries",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(i,v){return[i,v]})}},"es6","es3");$jscomp.polyfill("Array.prototype.values",function(orig){return orig?orig:function(){return $jscomp.iteratorFromArray(this,function(k,v){return v})}},"es8","es3");$jscomp.polyfill("Number.isNaN",function(orig){return orig?orig:function(x){return"number"===typeof x&&isNaN(x)}},"es6","es3");
$jscomp.polyfill("Array.prototype.findIndex",function(orig){return orig?orig:function(callback,opt_thisArg){return $jscomp.findInternal(this,callback,opt_thisArg).i}},"es6","es3");
$jscomp.polyfill("String.fromCodePoint",function(orig){return orig?orig:function(var_args){for(var result="",i=0;i<arguments.length;i++){var code=Number(arguments[i]);if(0>code||1114111<code||code!==Math.floor(code))throw new RangeError("invalid_code_point "+code);65535>=code?result+=String.fromCharCode(code):(code-=65536,result+=String.fromCharCode(code>>>10&1023|55296),result+=String.fromCharCode(code&1023|56320))}return result}},"es6","es3");
$jscomp.polyfill("Object.values",function(orig){return orig?orig:function(obj){var result=[],key;for(key in obj)$jscomp.owns(obj,key)&&result.push(obj[key]);return result}},"es8","es3");$jscomp.polyfill("globalThis",function(orig){return orig||$jscomp.global},"es_2020","es3");
$jscomp.polyfill("WeakSet",function(NativeWeakSet){function isConformant(){if(!NativeWeakSet||!Object.seal)return!1;try{var x=Object.seal({}),y=Object.seal({}),set=new NativeWeakSet([x]);if(!set.has(x)||set.has(y))return!1;set.delete(x);set.add(y);return!set.has(x)&&set.has(y)}catch(err){return!1}}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(NativeWeakSet&&$jscomp.ES6_CONFORMANCE)return NativeWeakSet}else if(isConformant())return NativeWeakSet;var PolyfillWeakSet=function(opt_iterable){this.map_=
new WeakMap;if(opt_iterable){opt_iterable=$jscomp.makeIterator(opt_iterable);for(var entry;!(entry=opt_iterable.next()).done;)this.add(entry.value)}};PolyfillWeakSet.prototype.add=function(elem){this.map_.set(elem,!0);return this};PolyfillWeakSet.prototype.has=function(elem){return this.map_.has(elem)};PolyfillWeakSet.prototype.delete=function(elem){return this.map_.delete(elem)};return PolyfillWeakSet},"es6","es3");
$jscomp.stringPadding=function(padString,padLength){padString=void 0!==padString?String(padString):" ";return 0<padLength&&padString?padString.repeat(Math.ceil(padLength/padString.length)).substring(0,padLength):""};$jscomp.polyfill("String.prototype.padEnd",function(orig){return orig?orig:function(targetLength,opt_padString){var string=$jscomp.checkStringArgs(this,null,"padStart");return string+$jscomp.stringPadding(opt_padString,targetLength-string.length)}},"es8","es3");
$jscomp.polyfill("Reflect",function(orig){return orig?orig:{}},"es6","es3");$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(prototype){var ctor=function(){};ctor.prototype=prototype;return new ctor};
$jscomp.getConstructImplementation=function(){function reflectConstructWorks(){function Base(){}new Base;Reflect.construct(Base,[],function(){});return new Base instanceof Base}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(reflectConstructWorks())return Reflect.construct;var brokenConstruct=Reflect.construct;return function(target,argList,opt_newTarget){target=brokenConstruct(target,argList);opt_newTarget&&Reflect.setPrototypeOf(target,opt_newTarget.prototype);
return target}}return function(target,argList,opt_newTarget){void 0===opt_newTarget&&(opt_newTarget=target);opt_newTarget=$jscomp.objectCreate(opt_newTarget.prototype||Object.prototype);return Function.prototype.apply.call(target,opt_newTarget,argList)||opt_newTarget}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.polyfill("Reflect.construct",function(orig){return $jscomp.construct},"es6","es3");
$jscomp.polyfill("Reflect.ownKeys",function(orig){return orig?orig:function(target){var keys=[],names=Object.getOwnPropertyNames(target);target=Object.getOwnPropertySymbols(target);for(var i=0;i<names.length;i++)("jscomp_symbol_"==names[i].substring(0,14)?target:keys).push(names[i]);return keys.concat(target)}},"es6","es5");
$jscomp.polyfill("Object.getOwnPropertyDescriptors",function(orig){return orig?orig:function(obj){for(var result={},keys=Reflect.ownKeys(obj),i=0;i<keys.length;i++)result[keys[i]]=Object.getOwnPropertyDescriptor(obj,keys[i]);return result}},"es8","es5");
$jscomp.polyfill("Array.prototype.copyWithin",function(orig){function toInteger(arg){arg=Number(arg);return Infinity===arg||-Infinity===arg?arg:arg|0}return orig?orig:function(target,start,opt_end){var len=this.length;target=toInteger(target);start=toInteger(start);opt_end=void 0===opt_end?len:toInteger(opt_end);target=0>target?Math.max(len+target,0):Math.min(target,len);start=0>start?Math.max(len+start,0):Math.min(start,len);opt_end=0>opt_end?Math.max(len+opt_end,0):Math.min(opt_end,len);if(target<
start)for(;start<opt_end;)start in this?this[target++]=this[start++]:(delete this[target++],start++);else for(opt_end=Math.min(opt_end,len+start-target),target+=opt_end-start;opt_end>start;)--opt_end in this?this[--target]=this[opt_end]:delete this[--target];return this}},"es6","es3");$jscomp.typedArrayCopyWithin=function(orig){return orig?orig:Array.prototype.copyWithin};$jscomp.polyfill("Int8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");
$jscomp.polyfill("Uint8Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint8ClampedArray.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Uint16Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Int32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");
$jscomp.polyfill("Uint32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float32Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Float64Array.prototype.copyWithin",$jscomp.typedArrayCopyWithin,"es6","es5");$jscomp.polyfill("Array.of",function(orig){return orig?orig:function(var_args){return Array.from(arguments)}},"es6","es3");
$jscomp.polyfill("Math.log1p",function(orig){return orig?orig:function(x){x=Number(x);if(.25>x&&-.25<x){for(var y=x,d=1,z=x,zPrev=0,s=1;zPrev!=z;)y*=x,s*=-1,z=(zPrev=z)+s*y/++d;return z}return Math.log(1+x)}},"es6","es3");$jscomp.polyfill("Math.acosh",function(orig){return orig?orig:function(x){x=Number(x);return Math.log(x+Math.sqrt(x*x-1))}},"es6","es3");
$jscomp.polyfill("Math.asinh",function(orig){return orig?orig:function(x){x=Number(x);if(0===x)return x;var y=Math.log(Math.abs(x)+Math.sqrt(x*x+1));return 0>x?-y:y}},"es6","es3");$jscomp.polyfill("Math.atanh",function(orig){if(orig)return orig;var log1p=Math.log1p;return function(x){x=Number(x);return(log1p(x)-log1p(-x))/2}},"es6","es3");$jscomp.polyfill("Math.sign",function(orig){return orig?orig:function(x){x=Number(x);return 0===x||isNaN(x)?x:0<x?1:-1}},"es6","es3");
$jscomp.polyfill("Math.expm1",function(orig){return orig?orig:function(x){x=Number(x);if(.25>x&&-.25<x){for(var y=x,d=1,z=x,zPrev=0;zPrev!=z;)y*=x/++d,z=(zPrev=z)+y;return z}return Math.exp(x)-1}},"es6","es3");$jscomp.polyfill("Math.fround",function(orig){if(orig)return orig;if($jscomp.SIMPLE_FROUND_POLYFILL||"function"!==typeof Float32Array)return function(arg){return arg};var arr=new Float32Array(1);return function(arg){arr[0]=arg;return arr[0]}},"es6","es3");
$jscomp.polyfill("Math.sinh",function(orig){if(orig)return orig;var exp=Math.exp;return function(x){x=Number(x);return 0===x?x:(exp(x)-exp(-x))/2}},"es6","es3");
$jscomp.polyfill("Reflect.defineProperty",function(orig){return orig?orig:function(target,propertyKey,attributes){try{Object.defineProperty(target,propertyKey,attributes);var desc=Object.getOwnPropertyDescriptor(target,propertyKey);return desc?desc.configurable===(attributes.configurable||!1)&&desc.enumerable===(attributes.enumerable||!1)&&("value"in desc?desc.value===attributes.value&&desc.writable===(attributes.writable||!1):desc.get===attributes.get&&desc.set===attributes.set):!1}catch(err){return!1}}},
"es6","es5");$jscomp.polyfill("Math.clz32",function(orig){return orig?orig:function(x){x=Number(x)>>>0;if(0===x)return 32;var result=0;0===(x&4294901760)&&(x<<=16,result+=16);0===(x&4278190080)&&(x<<=8,result+=8);0===(x&4026531840)&&(x<<=4,result+=4);0===(x&3221225472)&&(x<<=2,result+=2);0===(x&2147483648)&&result++;return result}},"es6","es3");
(function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}self.webpackChunk=function(chunkIds,moreModules){for(var moduleId in moreModules)modules[moduleId]=moreModules[moduleId];for(;chunkIds.length;)installedChunks[chunkIds.pop()]=1};var installedModules=
{},installedChunks={0:1};__webpack_require__.e=function(chunkId){var promises=[];promises.push(Promise.resolve().then(function(){installedChunks[chunkId]||importScripts(__webpack_require__.p+""+({1:"pikaday",2:"vendors.pikaday"}[chunkId]||chunkId)+".chunk.js")}));return Promise.all(promises)};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,
get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});
if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="/core/pdfjs/";
return __webpack_require__(__webpack_require__.s=110)})([function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return log});__webpack_require__.d(__webpack_exports__,"f",function(){return warn});__webpack_require__.d(__webpack_exports__,"d",function(){return error});__webpack_require__.d(__webpack_exports__,"a",function(){return assert});__webpack_require__.d(__webpack_exports__,"b",function(){return debugLog});__webpack_require__.d(__webpack_exports__,
"c",function(){return deprecatedWarn});var _state_globalState__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(26),warn=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.warn(type+": "+msg):console.warn(type))},deprecatedWarn=function(versionNumber,calledFunction,otherFunctions,future){void 0===future&&(future=!1);var lastFunction=otherFunctions.pop();otherFunctions=otherFunctions.length?otherFunctions.join(", ")+" and "+lastFunction:lastFunction;
future?warn("'"+calledFunction+"' will be deprecated in version "+versionNumber+". Please use "+otherFunctions+" instead."):warn("'"+calledFunction+"' is deprecated since version "+versionNumber+". Please use "+otherFunctions+" instead.")},log=function(type,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||(msg?console.log(type+": "+msg):console.log(type))},error=function(msg){if(!Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs"))throw console.error(msg),
Error(msg);},assert=function(equal,msg){Object(_state_globalState__WEBPACK_IMPORTED_MODULE_0__.a)("disableLogs")||equal||msg&&log(msg)},debugLog=function(type,msg){}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(56);__webpack_require__(57);__webpack_require__(46);__webpack_require__(84);var _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(85);__webpack_require__.d(__webpack_exports__,"b",function(){return _SelectionInfo__WEBPACK_IMPORTED_MODULE_4__.a});
var _Line__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(29);__webpack_require__.d(__webpack_exports__,"a",function(){return _Line__WEBPACK_IMPORTED_MODULE_5__.a});var _Word__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(23);__webpack_require__.d(__webpack_exports__,"e",function(){return _Word__WEBPACK_IMPORTED_MODULE_6__.a});var _SelectionRect__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(20);__webpack_require__.d(__webpack_exports__,"d",function(){return _SelectionRect__WEBPACK_IMPORTED_MODULE_7__.a});
var _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5);__webpack_require__.d(__webpack_exports__,"c",function(){return _SelectionPoint__WEBPACK_IMPORTED_MODULE_8__.a})},function(module$jscomp$0,exports,__webpack_require__){(function(global,module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,
args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=null==array?0:
array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,value){return!(null==
array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=array.length;++index<
length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=iteratee(accumulator,
array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}function baseFindKey(collection,predicate,eachFunc){var result;eachFunc(collection,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length;for(fromIndex+=fromRight?
1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;for(var length=array.length;++fromIndex<length;)if(array[fromIndex]===value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<length;)if(comparator(array[fromIndex],
value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,eachFunc){eachFunc(collection$jscomp$0,
function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:result+current)}return result}function baseTimes(n,
iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}function cacheHas(cache,key){return cache.has(key)}
function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value]});
return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||"__lodash_placeholder__"===value)array[index]="__lodash_placeholder__",result[resIndex++]=index}return result}function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value});return result}function setToPairs(set){var index=
-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=result}else string=asciiSize(string);return string}function stringToArray(string){return reHasUnicode.test(string)?string.match(reUnicode)||[]:string.split("")}function trimmedEndIndex(string){for(var index=string.length;index--&&reWhitespace.test(string.charAt(index)););
return index}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),reEscape=/<%-([\s\S]+?)%>/g,
reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,reSplitDetails=/,? & /,
reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reApos=RegExp("['\u2019]","g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",
"g"),reUnicode=RegExp("\\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"),reUnicodeWord=RegExp("[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"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps="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(" "),templateCounter=
-1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0;typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=
typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var cloneableTags={};cloneableTags["[object Arguments]"]=cloneableTags["[object Array]"]=cloneableTags["[object ArrayBuffer]"]=cloneableTags["[object DataView]"]=
cloneableTags["[object Boolean]"]=cloneableTags["[object Date]"]=cloneableTags["[object Float32Array]"]=cloneableTags["[object Float64Array]"]=cloneableTags["[object Int8Array]"]=cloneableTags["[object Int16Array]"]=cloneableTags["[object Int32Array]"]=cloneableTags["[object Map]"]=cloneableTags["[object Number]"]=cloneableTags["[object Object]"]=cloneableTags["[object RegExp]"]=cloneableTags["[object Set]"]=cloneableTags["[object String]"]=cloneableTags["[object Symbol]"]=cloneableTags["[object Uint8Array]"]=
cloneableTags["[object Uint8ClampedArray]"]=cloneableTags["[object Uint16Array]"]=cloneableTags["[object Uint32Array]"]=!0;cloneableTags["[object Error]"]=cloneableTags["[object Function]"]=cloneableTags["[object WeakMap]"]=!1;var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,
root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types?types:freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsArrayBuffer=nodeUtil&&
nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,asciiSize=baseProperty("length"),deburrLetter=basePropertyOf({"\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"}),escapeHtmlChar=basePropertyOf({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),unescapeHtmlChar=basePropertyOf({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),_=function runInContext(context){function lodash(value){if(isObjectLike(value)&&!isArray(value)&&
!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined}function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=
4294967295;this.__views__=[]}function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],
entry[1])}}function SetCache(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}function Stack(entries){this.size=(this.__data__=new ListCache(entries)).size}function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value);isArg=(isArr=isArr||isArg||isBuff||isType)?baseTimes(value.length,String):[];
var length=isArg.length,key;for(key in value)!inherited&&!hasOwnProperty.call(value,key)||isArr&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||isArg.push(key);return isArg}function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length))}function arrayShuffle(array){return shuffleSelf(copyArray(array))}
function assignMergeValue(object,key,value){(undefined===value||eq(object[key],value))&&(undefined!==value||key in object)||baseAssignValue(object,key,value)}function assignValue(object,key,value){var objValue=object[key];hasOwnProperty.call(object,key)&&eq(objValue,value)&&(undefined!==value||key in object)||baseAssignValue(object,key,value)}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function baseAggregator(collection$jscomp$0,
setter,iteratee,accumulator){baseEach(collection$jscomp$0,function(value,key,collection){setter(accumulator,value,iteratee(value),collection)});return accumulator}function baseAssign(object,source){return object&&copyObject(source,keys(source),object)}function baseAssignIn(object,source){return object&&copyObject(source,keysIn(source),object)}function baseAssignValue(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value:value,writable:!0}):
object[key]=value}function baseAt(object,paths){for(var index=-1,length=paths.length,result=Array(length),skip=null==object;++index<length;)result[index]=skip?undefined:get(object,paths[index]);return result}function baseClamp(number,lower,upper){number===number&&(undefined!==upper&&(number=number<=upper?number:upper),undefined!==lower&&(number=number>=lower?number:lower));return number}function baseClone(value,bitmask,customizer,key$jscomp$0,object,stack){var result,isDeep=bitmask&1,isFlat=bitmask&
2,isFull=bitmask&4;customizer&&(result=object?customizer(value,key$jscomp$0,object,stack):customizer(value));if(undefined!==result)return result;if(!isObject(value))return value;if(key$jscomp$0=isArray(value)){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc="[object Function]"==tag||"[object GeneratorFunction]"==tag;if(isBuffer(value))return cloneBuffer(value,isDeep);if("[object Object]"==tag||"[object Arguments]"==tag||isFunc&&!object){if(result=
isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);if(object=stack.get(value))return object;stack.set(value,result);isSet(value)?value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))}):isMap(value)&&value.forEach(function(subValue,
key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack))});isFlat=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=key$jscomp$0?undefined:isFlat(value);arrayEach(props||value,function(subValue,key){props&&(key=subValue,subValue=value[key]);assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack))});return result}function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props)}}function baseConformsTo(object,
source,props){var length=props.length;if(null==object)return!length;for(object=Object(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(undefined===value&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if("function"!=typeof func)throw new TypeError("Expected a function");return setTimeout(function(){func.apply(undefined,args)},wait)}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,
isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee)));comparator?(includes=arrayIncludesWith,isCommon=!1):200<=values.length&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));a:for(;++index<length;){var value=array[index],computed=null==iteratee?value:iteratee(value);value=comparator||0!==value?value:0;if(isCommon&&computed===computed){for(var valuesIndex=valuesLength;valuesIndex--;)if(values[valuesIndex]===
computed)continue a;result.push(value)}else includes(values,computed,comparator)||result.push(value)}return result}function baseEvery(collection$jscomp$0,predicate){var result=!0;baseEach(collection$jscomp$0,function(value,index,collection){return result=!!predicate(value,index,collection)});return result}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee(value);if(null!=current&&(undefined===computed?current===
current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function baseFilter(collection$jscomp$0,predicate){var result=[];baseEach(collection$jscomp$0,function(value,index,collection){predicate(value,index,collection)&&result.push(value)});return result}function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);for(result||(result=[]);++index<length;){var value=array[index];0<depth&&
predicate(value)?1<depth?baseFlatten(value,depth-1,predicate,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key])})}function baseGet(object,path){path=castPath(path,object);for(var index=
0,length=path.length;null!=object&&index<length;)object=object[toKey(path[index++])];return index&&index==length?object:undefined}function baseGetAllKeys(object,keysFunc,symbolsFunc){keysFunc=keysFunc(object);return isArray(object)?keysFunc:arrayPush(keysFunc,symbolsFunc(object))}function baseGetTag(value){if(null==value)return undefined===value?"[object Undefined]":"[object Null]";if(symToStringTag&&symToStringTag in Object(value)){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];
try{value[symToStringTag]=undefined;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]);value=result}else value=nativeObjectToString.call(value);return value}function baseGt(value,other){return value>other}function baseHas(object,key){return null!=object&&hasOwnProperty.call(object,key)}function baseHasIn(object,key){return null!=object&&key in Object(object)}function baseIntersection(arrays,iteratee,comparator){for(var includes=
comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=Infinity,result=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee&&(array=arrayMap(array,baseUnary(iteratee)));maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee||120<=length&&120<=array.length)?new SetCache(othIndex&&array):undefined}array=arrays[0];var index=-1,seen=caches[0];a:for(;++index<length&&result.length<
maxLength;){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||0!==value?value:0;if(seen?!seen.has(computed):!includes(result,computed,comparator)){for(othIndex=othLength;--othIndex;){var cache=caches[othIndex];if(cache?!cache.has(computed):!includes(arrays[othIndex],computed,comparator))continue a}seen&&seen.push(computed);result.push(value)}}return result}function baseInverter(object$jscomp$0,setter,iteratee,accumulator){baseForOwn(object$jscomp$0,function(value,key,
object){setter(accumulator,iteratee(value),key,object)});return accumulator}function baseInvoke(object,path,args){path=castPath(path,object);object=2>path.length?object:baseGet(object,baseSlice(path,0,-1));path=null==object?object:object[toKey(last(path))];return null==path?undefined:apply(path,object,args)}function baseIsArguments(value){return isObjectLike(value)&&"[object Arguments]"==baseGetTag(value)}function baseIsArrayBuffer(value){return isObjectLike(value)&&"[object ArrayBuffer]"==baseGetTag(value)}
function baseIsDate(value){return isObjectLike(value)&&"[object Date]"==baseGetTag(value)}function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other)return!0;if(null==value||null==other||!isObjectLike(value)&&!isObjectLike(other))return value!==value&&other!==other;a:{var objIsArr=isArray(value),othIsArr=isArray(other),objTag=objIsArr?"[object Array]":getTag(value),othTag=othIsArr?"[object Array]":getTag(other);objTag="[object Arguments]"==objTag?"[object Object]":objTag;othTag="[object Arguments]"==
othTag?"[object Object]":othTag;var objIsObj="[object Object]"==objTag;othIsArr="[object Object]"==othTag;if((othTag=objTag==othTag)&&isBuffer(value)){if(!isBuffer(other)){other=!1;break a}objIsArr=!0;objIsObj=!1}if(othTag&&!objIsObj)stack||(stack=new Stack),other=objIsArr||isTypedArray(value)?equalArrays(value,other,bitmask,customizer,baseIsEqual,stack):equalByTag(value,other,objTag,bitmask,customizer,baseIsEqual,stack);else{if(!(bitmask&1)&&(objIsArr=objIsObj&&hasOwnProperty.call(value,"__wrapped__"),
objTag=othIsArr&&hasOwnProperty.call(other,"__wrapped__"),objIsArr||objTag)){value=objIsArr?value.value():value;other=objTag?other.value():other;stack||(stack=new Stack);other=baseIsEqual(value,other,bitmask,customizer,stack);break a}if(othTag)b:if(stack||(stack=new Stack),objIsArr=bitmask&1,objTag=getAllKeys(value),othIsArr=objTag.length,othTag=getAllKeys(other).length,othIsArr==othTag||objIsArr){for(othTag=othIsArr;othTag--;){var key=objTag[othTag];if(!(objIsArr?key in other:hasOwnProperty.call(other,
key))){other=!1;break b}}objIsObj=stack.get(value);key=stack.get(other);if(objIsObj&&key)other=objIsObj==other&&key==value;else{objIsObj=!0;stack.set(value,other);stack.set(other,value);for(var skipCtor=objIsArr;++othTag<othIsArr;){key=objTag[othTag];var objValue=value[key],othValue=other[key];if(customizer)var compared=objIsArr?customizer(othValue,objValue,key,other,value,stack):customizer(objValue,othValue,key,value,other,stack);if(undefined===compared?objValue!==othValue&&!baseIsEqual(objValue,
othValue,bitmask,customizer,stack):!compared){objIsObj=!1;break}skipCtor||(skipCtor="constructor"==key)}objIsObj&&!skipCtor&&(bitmask=value.constructor,customizer=other.constructor,bitmask!=customizer&&"constructor"in value&&"constructor"in other&&!("function"==typeof bitmask&&bitmask instanceof bitmask&&"function"==typeof customizer&&customizer instanceof customizer)&&(objIsObj=!1));stack["delete"](value);stack["delete"](other);other=objIsObj}}else other=!1;else other=!1}}return other}function baseIsMap(value){return isObjectLike(value)&&
"[object Map]"==getTag(value)}function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(undefined===objValue&&!(key in object))return!1}else{data=
new Stack;if(customizer)var result=customizer(objValue,srcValue,key,object,source,data);if(undefined===result?!baseIsEqual(srcValue,objValue,3,customizer,data):!result)return!1}}return!0}function baseIsNative(value){return!isObject(value)||maskSrcKey&&maskSrcKey in value?!1:(isFunction(value)?reIsNative:reIsHostCtor).test(toSource(value))}function baseIsRegExp(value){return isObjectLike(value)&&"[object RegExp]"==baseGetTag(value)}function baseIsSet(value){return isObjectLike(value)&&"[object Set]"==
getTag(value)}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseIteratee(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[],key;for(key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=
key&&result.push(key);return result}function baseLt(value,other){return value<other}function baseMap(collection$jscomp$0,iteratee){var index=-1,result=isArrayLike(collection$jscomp$0)?Array(collection$jscomp$0.length):[];baseEach(collection$jscomp$0,function(value,key,collection){result[++index]=iteratee(value,key,collection)});return result}function baseMatches(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):
function(object){return object===source||baseIsMatch(object,source,matchData)}}function baseMatchesProperty(path,srcValue){return isKey(path)&&srcValue===srcValue&&!isObject(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return undefined===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,3)}}function baseMerge(object,source,srcIndex,customizer,stack){object!==source&&baseFor(source,function(srcValue$jscomp$0,key){stack||
(stack=new Stack);if(isObject(srcValue$jscomp$0)){srcValue$jscomp$0=stack;var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=srcValue$jscomp$0.get(srcValue);if(stacked)assignMergeValue(object,key,stacked);else{stacked=customizer?customizer(objValue,srcValue,key+"",object,source,srcValue$jscomp$0):undefined;var isCommon=undefined===stacked;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);stacked=srcValue;if(isArr||
isBuff||isTyped)isArray(objValue)?stacked=objValue:isArrayLikeObject(objValue)?stacked=copyArray(objValue):isBuff?(isCommon=!1,stacked=cloneBuffer(srcValue,!0)):isTyped?(isCommon=!1,stacked=cloneTypedArray(srcValue,!0)):stacked=[];else if(isPlainObject(srcValue)||isArguments(srcValue))if(stacked=objValue,isArguments(objValue))stacked=toPlainObject(objValue);else{if(!isObject(objValue)||isFunction(objValue))stacked=initCloneObject(srcValue)}else isCommon=!1}isCommon&&(srcValue$jscomp$0.set(srcValue,
stacked),baseMerge(stacked,srcValue,srcIndex,customizer,srcValue$jscomp$0),srcValue$jscomp$0["delete"](srcValue));assignMergeValue(object,key,stacked)}}else objValue=customizer?customizer(safeGet(object,key),srcValue$jscomp$0,key+"",object,source,stack):undefined,undefined===objValue&&(objValue=srcValue$jscomp$0),assignMergeValue(object,key,objValue)},keysIn)}function baseNth(array,n){var length=array.length;if(length)return n+=0>n?length:0,isIndex(n,length)?array[n]:undefined}function baseOrderBy(collection$jscomp$0,
iteratees,orders){iteratees=iteratees.length?arrayMap(iteratees,function(iteratee){return isArray(iteratee)?function(value){return baseGet(value,1===iteratee.length?iteratee[0]:iteratee)}:iteratee}):[identity];var index$jscomp$0=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));collection$jscomp$0=baseMap(collection$jscomp$0,function(value,key,collection){return{criteria:arrayMap(iteratees,function(iteratee){return iteratee(value)}),index:++index$jscomp$0,value:value}});return baseSortBy(collection$jscomp$0,
function(object,other){a:{for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index<length;){var result=compareAscending(objCriteria[index],othCriteria[index]);if(result){if(index>=ordersLength){object=result;break a}object=result*("desc"==orders[index]?-1:1);break a}}object=object.index-other.index}return object})}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path)})}
function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result={};++index<length;){var path=paths[index],value=baseGet(object,path);predicate(value,path)&&baseSet(result,castPath(path,object),value)}return result}function basePropertyDeep(path){return function(object){return baseGet(object,path)}}function basePullAll(array,values,iteratee,comparator){var indexOf=comparator?baseIndexOfWith:baseIndexOf,index=-1,length=values.length,seen=array;array===values&&(values=copyArray(values));
for(iteratee&&(seen=arrayMap(array,baseUnary(iteratee)));++index<length;){var fromIndex=0,value=values[index];for(value=iteratee?iteratee(value):value;-1<(fromIndex=indexOf(seen,value,fromIndex,comparator));)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1)}return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,
index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRepeat(string,n){var result="";if(!string||1>n||9007199254740991<n)return result;do n%2&&(result+=string),(n=nativeFloor(n/2))&&(string+=string);while(n);return result}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values$jscomp$0(collection))}function baseSampleSize(collection,
n){collection=values$jscomp$0(collection);return shuffleSelf(collection,baseClamp(n,0,collection.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;path=castPath(path,object);for(var index=-1,length=path.length,lastIndex=length-1,nested=object;null!=nested&&++index<length;){var key=toKey(path[index]),newValue=value;if("__proto__"===key||"constructor"===key||"prototype"===key)break;if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,
key,nested):undefined;undefined===newValue&&(newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{})}assignValue(nested,key,newValue);nested=nested[key]}return object}function baseShuffle(collection){return shuffleSelf(values$jscomp$0(collection))}function baseSlice(array,start,end){var index=-1,length=array.length;0>start&&(start=-start>length?0:length+start);end=end>length?length:end;0>end&&(end+=length);length=start>end?0:end-start>>>0;start>>>=0;for(end=Array(length);++index<length;)end[index]=
array[index+start];return end}function baseSome(collection$jscomp$0,predicate){var result;baseEach(collection$jscomp$0,function(value,index,collection){result=predicate(value,index,collection);return!result});return!!result}function baseSortedIndex(array,value,retHighest){var low=0,high=null==array?low:array.length;if("number"==typeof value&&value===value&&2147483647>=high){for(;low<high;){var mid=low+high>>>1,computed=array[mid];null!==computed&&!isSymbol(computed)&&(retHighest?computed<=value:computed<
value)?low=mid+1:high=mid}return high}return baseSortedIndexBy(array,value,identity,retHighest)}function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=null==array?0:array.length;if(0===high)return 0;value=iteratee(value);for(var valIsNaN=value!==value,valIsNull=null===value,valIsSymbol=isSymbol(value),valIsUndefined=undefined===value;low<high;){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=undefined!==computed,othIsNull=null===computed,othIsReflexive=
computed===computed,othIsSymbol=isSymbol(computed);(valIsNaN?retHighest||othIsReflexive:valIsUndefined?othIsReflexive&&(retHighest||othIsDefined):valIsNull?othIsReflexive&&othIsDefined&&(retHighest||!othIsNull):valIsSymbol?othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol):othIsNull||othIsSymbol?0:retHighest?computed<=value:computed<value)?low=mid+1:high=mid}return nativeMin(high,4294967294)}function baseSortedUniq(array,iteratee){for(var index=-1,length=array.length,resIndex=0,
result=[];++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;if(!index||!eq(computed,seen)){var seen=computed;result[resIndex++]=0===value?0:value}}return result}function baseToNumber(value){return"number"==typeof value?value:isSymbol(value)?NAN:+value}function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==
result&&1/value==-INFINITY?"-0":result}function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=!0,result=[],seen=result;if(comparator)isCommon=!1,includes=arrayIncludesWith;else if(200<=length){if(includes=iteratee?null:createSet(array))return setToArray(includes);isCommon=!1;includes=cacheHas;seen=new SetCache}else seen=iteratee?[]:result;a:for(;++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||
0!==value?value:0;if(isCommon&&computed===computed){for(var seenIndex=seen.length;seenIndex--;)if(seen[seenIndex]===computed)continue a;iteratee&&seen.push(computed);result.push(value)}else includes(seen,computed,comparator)||(seen!==result&&seen.push(computed),result.push(value))}return result}function baseUnset(object,path){path=castPath(path,object);object=2>path.length?object:baseGet(object,baseSlice(path,0,-1));return null==object||delete object[toKey(last(path))]}function baseWhile(array,predicate,
isDrop,fromRight){for(var length=array.length,index=fromRight?length:-1;(fromRight?index--:++index<length)&&predicate(array[index],index,array););return isDrop?baseSlice(array,fromRight?0:index,fromRight?index+1:length):baseSlice(array,fromRight?index+1:0,fromRight?length:index)}function baseWrapperValue(value,actions){value instanceof LazyWrapper&&(value=value.value());return arrayReduce(actions,function(result,action){return action.func.apply(action.thisArg,arrayPush([result],action.args))},value)}
function baseXor(arrays,iteratee,comparator){var length=arrays.length;if(2>length)return length?baseUniq(arrays[0]):[];for(var index=-1,result=Array(length);++index<length;)for(var array=arrays[index],othIndex=-1;++othIndex<length;)othIndex!=index&&(result[index]=baseDifference(result[index]||array,arrays[othIndex],iteratee,comparator));return baseUniq(baseFlatten(result,1),iteratee,comparator)}function baseZipObject(props,values,assignFunc){for(var index=-1,length=props.length,valsLength=values.length,
result={};++index<length;)assignFunc(result,props[index],index<valsLength?values[index]:undefined);return result}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[]}function castFunction(value){return"function"==typeof value?value:identity}function castPath(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}function castSlice(array,start,end){var length=array.length;end=undefined===end?length:end;return!start&&end>=length?array:
baseSlice(array,start,end)}function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();isDeep=buffer.length;isDeep=allocUnsafe?allocUnsafe(isDeep):new buffer.constructor(isDeep);buffer.copy(isDeep);return isDeep}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);(new Uint8Array(result)).set(new Uint8Array(arrayBuffer));return result}function cloneTypedArray(typedArray,isDeep){isDeep=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;
return new typedArray.constructor(isDeep,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=undefined!==value,valIsNull=null===value,valIsReflexive=value===value,valIsSymbol=isSymbol(value),othIsDefined=undefined!==other,othIsNull=null===other,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&
othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive)return-1}return 0}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-
holdersLength,0),result=Array(leftLength+rangeLength);for(isCurried=!isCurried;++leftIndex<leftLength;)result[leftIndex]=partials[leftIndex];for(;++argsIndex<holdersLength;)if(isCurried||argsIndex<argsLength)result[holders[argsIndex]]=args[argsIndex];for(;rangeLength--;)result[leftIndex++]=args[argsIndex++];return result}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,
rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(rangeLength+rightLength);for(isCurried=!isCurried;++argsIndex<rangeLength;)result[argsIndex]=args[argsIndex];for(rangeLength=argsIndex;++rightIndex<rightLength;)result[rangeLength+rightIndex]=partials[rightIndex];for(;++holdersIndex<holdersLength;)if(isCurried||argsIndex<argsLength)result[rangeLength+holders[holdersIndex]]=args[argsIndex++];return result}function copyArray(source,array){var index=-1,length=source.length;for(array||(array=
Array(length));++index<length;)array[index]=source[index];return array}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;undefined===newValue&&(newValue=source[key]);isNew?baseAssignValue(object,key,newValue):assignValue(object,key,newValue)}return object}function copySymbols(source,object){return copyObject(source,
getSymbols(source),object)}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}function createAggregator(setter,initializer){return function(collection,iteratee){var func=isArray(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee,2),accumulator)}}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=1<length?
sources[length-1]:undefined,guard=2<length?sources[2]:undefined;customizer=3<assigner.length&&"function"==typeof customizer?(length--,customizer):undefined;guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?undefined:customizer,length=1);for(object=Object(object);++index<length;)(guard=sources[index])&&assigner(object,guard,index,customizer);return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;
if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&!1!==iteratee(iterable[index],index,iterable););return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object);keysFunc=keysFunc(object);for(var length=keysFunc.length;length--;){var key=keysFunc[fromRight?length:++index];if(!1===iteratee(iterable[key],
key,iterable))break}return object}}function createBind(func,bitmask,thisArg){function wrapper(){return(this&&this!==root&&this instanceof wrapper?Ctor:func).apply(isBind?thisArg:this,arguments)}var isBind=bitmask&1,Ctor=createCtor(func);return wrapper}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=reHasUnicode.test(string)?stringToArray(string):undefined,chr=strSymbols?strSymbols[0]:string.charAt(0);string=strSymbols?castSlice(strSymbols,1).join(""):
string.slice(1);return chr[methodName]()+string}}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"")}}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor;case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],
args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6])}var thisBinding=baseCreate(Ctor.prototype);args=Ctor.apply(thisBinding,args);return isObject(args)?args:thisBinding}}function createCurry(func,bitmask,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);index--;)args[index]=arguments[index];index=3>length&&
args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);length-=index.length;return length<arity?createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined,args,index,undefined,undefined,arity-length):apply(this&&this!==root&&this instanceof wrapper?Ctor:func,this,args)}var Ctor=createCtor(func);return wrapper}function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=
getIteratee(predicate,3);collection=keys(collection);predicate=function(key){return iteratee(iterable[key],key,iterable)}}predicate=findIndexFunc(collection,predicate,fromIndex);return-1<predicate?iterable[iteratee?collection[predicate]:predicate]:undefined}}function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index$jscomp$0=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index$jscomp$0--;){var func=funcs[index$jscomp$0];if("function"!=typeof func)throw new TypeError("Expected a function");
if(prereq&&!wrapper&&"wrapper"==getFuncName(func))var wrapper=new LodashWrapper([],!0)}for(index$jscomp$0=wrapper?index$jscomp$0:length;++index$jscomp$0<length;){func=funcs[index$jscomp$0];prereq=getFuncName(func);var data="wrapper"==prereq?getData(func):undefined;wrapper=data&&isLaziable(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?wrapper[getFuncName(data[0])].apply(wrapper,data[3]):1==func.length&&isLaziable(func)?wrapper[prereq]():wrapper.thru(func)}return function(){var args=arguments,
value=args[0];if(wrapper&&1==args.length&&isArray(value))return wrapper.plant(value).value();var index=0;for(args=length?funcs[index].apply(this,args):value;++index<length;)args=funcs[index].call(this,args);return args}})}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length;index--;)args[index]=arguments[index];if(isCurried){var placeholder=getHolder(wrapper),holdersCount;
index=args.length;for(holdersCount=0;index--;)args[index]===placeholder&&++holdersCount}partials&&(args=composeArgs(args,partials,holders,isCurried));partialsRight&&(args=composeArgsRight(args,partialsRight,holdersRight,isCurried));length-=holdersCount;if(isCurried&&length<arity)return placeholder=replaceHolders(args,placeholder),createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,placeholder,argPos,ary,arity-length);placeholder=isBind?thisArg:this;index=isBindKey?placeholder[func]:
func;length=args.length;if(argPos){holdersCount=args.length;for(var length$jscomp$0=nativeMin(argPos.length,holdersCount),oldArray=copyArray(args);length$jscomp$0--;){var index$jscomp$0=argPos[length$jscomp$0];args[length$jscomp$0]=isIndex(index$jscomp$0,holdersCount)?oldArray[index$jscomp$0]:undefined}}else isFlip&&1<length&&args.reverse();isAry&&ary<length&&(args.length=ary);this&&this!==root&&this instanceof wrapper&&(index=Ctor||createCtor(index));return index.apply(placeholder,args)}var isAry=
bitmask&128,isBind=bitmask&1,isBindKey=bitmask&2,isCurried=bitmask&24,isFlip=bitmask&512,Ctor=isBindKey?undefined:createCtor(func);return wrapper}function createInverter(setter,toIteratee){return function(object,iteratee){return baseInverter(object,setter,toIteratee(iteratee),{})}}function createMathOperation(operator,defaultValue){return function(value,other){var result;if(undefined===value&&undefined===other)return defaultValue;undefined!==value&&(result=value);if(undefined!==other){if(undefined===
result)return other;"string"==typeof value||"string"==typeof other?(value=baseToString(value),other=baseToString(other)):(value=baseToNumber(value),other=baseToNumber(other));result=operator(value,other)}return result}}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap(iteratees,baseUnary(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee){return apply(iteratee,thisArg,args)})})})}function createPadding(length,
chars){chars=undefined===chars?" ":baseToString(chars);var charsLength=chars.length;if(2>charsLength)return charsLength?baseRepeat(chars,length):chars;charsLength=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return reHasUnicode.test(chars)?castSlice(stringToArray(charsLength),0,length).join(""):charsLength.slice(0,length)}function createPartial(func,bitmask,thisArg,partials){function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=
Array(leftLength+argsLength),fn=this&&this!==root&&this instanceof wrapper?Ctor:func;++leftIndex<leftLength;)args[leftIndex]=partials[leftIndex];for(;argsLength--;)args[leftIndex++]=arguments[++argsIndex];return apply(fn,isBind?thisArg:this,args)}var isBind=bitmask&1,Ctor=createCtor(func);return wrapper}function createRange(fromRight){return function(start,end,step){step&&"number"!=typeof step&&isIterateeCall(start,end,step)&&(end=step=undefined);start=toFinite(start);undefined===end?(end=start,start=
0):end=toFinite(end);step=undefined===step?start<end?1:-1:toFinite(step);var index=-1;end=nativeMax(nativeCeil((end-start)/(step||1)),0);for(var result=Array(end);end--;)result[fromRight?end:++index]=start,start+=step;return result}}function createRelationalOperation(operator){return function(value,other){if("string"!=typeof value||"string"!=typeof other)value=toNumber(value),other=toNumber(other);return operator(value,other)}}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,
holders,argPos,ary,arity){var isCurry=bitmask&8,newHolders=isCurry?holders:undefined;holders=isCurry?undefined:holders;var newPartials=isCurry?partials:undefined;partials=isCurry?undefined:partials;bitmask|=isCurry?32:64;bitmask&=~(isCurry?64:32);bitmask&4||(bitmask&=-4);thisArg=[func,bitmask,thisArg,newPartials,newHolders,partials,holders,argPos,ary,arity];wrapFunc=wrapFunc.apply(undefined,thisArg);isLaziable(func)&&setData(wrapFunc,thisArg);wrapFunc.placeholder=placeholder;return setWrapToString(wrapFunc,
func,bitmask)}function createRound(methodName){var func=Math[methodName];return function(number,precision){number=toNumber(number);return(precision=null==precision?0:nativeMin(toInteger(precision),292))&&nativeIsFinite(number)?(number=(toString(number)+"e").split("e"),number=func(number[0]+"e"+(+number[1]+precision)),number=(toString(number)+"e").split("e"),+(number[0]+"e"+(+number[1]-precision))):func(number)}}function createToPairs(keysFunc){return function(object){var tag=getTag(object);return"[object Map]"==
tag?mapToArray(object):"[object Set]"==tag?setToPairs(object):baseToPairs(object,keysFunc(object))}}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&2;if(!isBindKey&&"function"!=typeof func)throw new TypeError("Expected a function");var length=partials?partials.length:0;length||(bitmask&=-97,partials=holders=undefined);ary=undefined===ary?ary:nativeMax(toInteger(ary),0);arity=undefined===arity?arity:toInteger(arity);length-=holders?holders.length:0;
if(bitmask&64){var partialsRight=partials,holdersRight=holders;partials=holders=undefined}var data=isBindKey?undefined:getData(func);argPos=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data&&(thisArg=argPos[1],func=data[1],bitmask=thisArg|func,partials=128==func&&8==thisArg||128==func&&256==thisArg&&argPos[7].length<=data[8]||384==func&&data[7].length<=data[8]&&8==thisArg,131>bitmask||partials)){func&1&&(argPos[2]=data[2],bitmask|=thisArg&1?0:4);if(thisArg=
data[3])partials=argPos[3],argPos[3]=partials?composeArgs(partials,thisArg,data[4]):thisArg,argPos[4]=partials?replaceHolders(argPos[3],"__lodash_placeholder__"):data[4];if(thisArg=data[5])partials=argPos[5],argPos[5]=partials?composeArgsRight(partials,thisArg,data[6]):thisArg,argPos[6]=partials?replaceHolders(argPos[5],"__lodash_placeholder__"):data[6];(thisArg=data[7])&&(argPos[7]=thisArg);func&128&&(argPos[8]=null==argPos[8]?data[8]:nativeMin(argPos[8],data[8]));null==argPos[9]&&(argPos[9]=data[9]);
argPos[0]=data[0];argPos[1]=bitmask}func=argPos[0];bitmask=argPos[1];thisArg=argPos[2];partials=argPos[3];holders=argPos[4];arity=argPos[9]=undefined===argPos[9]?isBindKey?0:func.length:nativeMax(argPos[9]-length,0);!arity&&bitmask&24&&(bitmask&=-25);isBindKey=bitmask&&1!=bitmask?8==bitmask||16==bitmask?createCurry(func,bitmask,arity):32!=bitmask&&33!=bitmask||holders.length?createHybrid.apply(undefined,argPos):createPartial(func,bitmask,thisArg,partials):createBind(func,bitmask,thisArg);return setWrapToString((data?
baseSetData:setData)(isBindKey,argPos),func,bitmask)}function customDefaultsAssignIn(objValue,srcValue,key,object){return undefined===objValue||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)?srcValue:objValue}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){isObject(objValue)&&isObject(srcValue)&&(stack.set(srcValue,objValue),baseMerge(objValue,srcValue,undefined,customDefaultsMerge,stack),stack["delete"](srcValue));return objValue}function customOmitClone(value){return isPlainObject(value)?
undefined:value}function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&1,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;othLength=stack.get(array);var othStacked=stack.get(other);if(othLength&&othStacked)return othLength==other&&othStacked==array;othLength=-1;othStacked=!0;var seen=bitmask&2?new SetCache:undefined;stack.set(array,other);for(stack.set(other,array);++othLength<arrLength;){var arrValue=
array[othLength],othValue=other[othLength];if(customizer)var compared=isPartial?customizer(othValue,arrValue,othLength,other,array,stack):customizer(arrValue,othValue,othLength,array,other,stack);if(undefined!==compared){if(compared)continue;othStacked=!1;break}if(seen){if(!arraySome(other,function(othValue,othIndex){if(!seen.has(othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)})){othStacked=!1;break}}else if(arrValue!==othValue&&!equalFunc(arrValue,
othValue,bitmask,customizer,stack)){othStacked=!1;break}}stack["delete"](array);stack["delete"](other);return othStacked}function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case "[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)break;object=object.buffer;other=other.buffer;case "[object ArrayBuffer]":if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other)))break;return!0;case "[object Boolean]":case "[object Date]":case "[object Number]":return eq(+object,
+other);case "[object Error]":return object.name==other.name&&object.message==other.message;case "[object RegExp]":case "[object String]":return object==other+"";case "[object Map]":var convert=mapToArray;case "[object Set]":convert||(convert=setToArray);if(object.size!=other.size&&!(bitmask&1))break;if(tag=stack.get(object))return tag==other;bitmask|=2;stack.set(object,other);other=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return other;
case "[object Symbol]":if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}function flatRest(func){return setToString(overRest(func,undefined,flatten),func+"")}function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn)}function getFuncName(func){for(var result=func.name+"",array=realNames[result],length=hasOwnProperty.call(realNames,result)?array.length:0;length--;){var data=
array[length],otherFunc=data.func;if(null==otherFunc||otherFunc==func)return data.name}return result}function getHolder(func){return(hasOwnProperty.call(lodash,"placeholder")?lodash:func).placeholder}function getIteratee(){var result=lodash.iteratee||iteratee$jscomp$0;result=result===iteratee$jscomp$0?baseIteratee:result;return arguments.length?result(arguments[0],arguments[1]):result}function getMapData(map,key){map=map.__data__;var type=typeof key;return("string"==type||"number"==type||"symbol"==
type||"boolean"==type?"__proto__"!==key:null===key)?map["string"==typeof key?"string":"hash"]:map.map}function getMatchData(object){for(var result=keys(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,value===value&&!isObject(value)]}return result}function getNative(object,key){object=null==object?undefined:object[key];return baseIsNative(object)?object:undefined}function hasPath(object,path,hasFunc){path=castPath(path,object);for(var index=
-1,length=path.length,result=!1;++index<length;){var key=toKey(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}if(result||++index!=length)return result;length=null==object?0:object.length;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object))}function initCloneArray(array){var length=array.length,result=new array.constructor(length);length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,
result.input=array.input);return result}function initCloneObject(object){return"function"!=typeof object.constructor||isPrototype(object)?{}:baseCreate(getPrototype(object))}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case "[object ArrayBuffer]":return cloneArrayBuffer(object);case "[object Boolean]":case "[object Date]":return new Ctor(+object);case "[object DataView]":return tag=isDeep?cloneArrayBuffer(object.buffer):object.buffer,new object.constructor(tag,
object.byteOffset,object.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 cloneTypedArray(object,isDeep);case "[object Map]":return new Ctor;case "[object Number]":case "[object String]":return new Ctor(object);case "[object RegExp]":return tag=new object.constructor(object.source,
reFlags.exec(object)),tag.lastIndex=object.lastIndex,tag;case "[object Set]":return new Ctor;case "[object Symbol]":return symbolValueOf?Object(symbolValueOf.call(object)):{}}}function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}function isIndex(value,length){var type=typeof value;length=null==length?9007199254740991:length;return!!length&&("number"==type||"symbol"!=type&&reIsUint.test(value))&&-1<value&&0==value%1&&value<length}
function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;return("number"==type?isArrayLike(object)&&isIndex(index,object.length):"string"==type&&index in object)?eq(object[index],value):!1}function isKey(value,object){if(isArray(value))return!1;var type=typeof value;return"number"==type||"symbol"==type||"boolean"==type||null==value||isSymbol(value)?!0:reIsPlainProp.test(value)||!reIsDeepProp.test(value)||null!=object&&value in Object(object)}function isLaziable(func){var funcName=
getFuncName(func),other=lodash[funcName];if("function"!=typeof other||!(funcName in LazyWrapper.prototype))return!1;if(func===other)return!0;funcName=getData(other);return!!funcName&&func===funcName[0]}function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}function matchesStrictComparable(key,srcValue){return function(object){return null==object?!1:object[key]===srcValue&&(undefined!==srcValue||key in Object(object))}}function overRest(func,
start,transform){start=nativeMax(undefined===start?func.length-1:start,0);return function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];index=-1;for(length=Array(start+1);++index<start;)length[index]=args[index];length[start]=transform(array);return apply(func,this,length)}}function safeGet(object,key){if(("constructor"!==key||"function"!==typeof object[key])&&"__proto__"!=key)return object[key]}function setWrapToString(wrapper,
reference,bitmask){var source=reference+"";reference=setToString;var JSCompiler_temp_const=updateWrapDetails;var JSCompiler_inline_result=(JSCompiler_inline_result=source.match(reWrapDetails))?JSCompiler_inline_result[1].split(reSplitDetails):[];bitmask=JSCompiler_temp_const(JSCompiler_inline_result,bitmask);if(JSCompiler_temp_const=bitmask.length)JSCompiler_inline_result=JSCompiler_temp_const-1,bitmask[JSCompiler_inline_result]=(1<JSCompiler_temp_const?"& ":"")+bitmask[JSCompiler_inline_result],
bitmask=bitmask.join(2<JSCompiler_temp_const?", ":" "),source=source.replace(reWrapComment,"{\n/* [wrapped with "+bitmask+"] */\n");return reference(wrapper,source)}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=16-(stamp-lastCalled);lastCalled=stamp;if(0<remaining){if(800<=++count)return arguments[0]}else count=0;return func.apply(undefined,arguments)}}function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;for(size=
undefined===size?length:size;++index<size;){length=baseRandom(index,lastIndex);var value=array[length];array[length]=array[index];array[index]=value}array.length=size;return array}function toKey(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}return func+""}return""}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value=
"_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)});return details.sort()}function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper)return wrapper.clone();var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result}function findIndex(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;
fromIndex=null==fromIndex?0:toInteger(fromIndex);0>fromIndex&&(fromIndex=nativeMax(length+fromIndex,0));return baseFindIndex(array,getIteratee(predicate,3),fromIndex)}function findLastIndex(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length-1;undefined!==fromIndex&&(index=toInteger(fromIndex),index=0>fromIndex?nativeMax(length+index,0):nativeMin(index,length-1));return baseFindIndex(array,getIteratee(predicate,3),index,!0)}function flatten(array){return(null==
array?0:array.length)?baseFlatten(array,1):[]}function head(array){return array&&array.length?array[0]:undefined}function last(array){var length=null==array?0:array.length;return length?array[length-1]:undefined}function pullAll(array,values){return array&&array.length&&values&&values.length?basePullAll(array,values):array}function reverse(array){return null==array?array:nativeReverse.call(array)}function unzip(array){if(!array||!array.length)return[];var length=0;array=arrayFilter(array,function(group){if(isArrayLikeObject(group))return length=
nativeMax(group.length,length),!0});return baseTimes(length,function(index){return arrayMap(array,baseProperty(index))})}function unzipWith(array,iteratee){if(!array||!array.length)return[];array=unzip(array);return null==iteratee?array:arrayMap(array,function(group){return apply(iteratee,undefined,group)})}function chain(value){value=lodash(value);value.__chain__=!0;return value}function thru(value,interceptor){return interceptor(value)}function wrapperToIterator(){return this}function forEach(collection,
iteratee){return(isArray(collection)?arrayEach:baseEach)(collection,getIteratee(iteratee,3))}function forEachRight(collection,iteratee){return(isArray(collection)?arrayEachRight:baseEachRight)(collection,getIteratee(iteratee,3))}function map$jscomp$0(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,getIteratee(iteratee,3))}function ary(func,n,guard){n=guard?undefined:n;n=func&&null==n?func.length:n;return createWrap(func,128,undefined,undefined,undefined,undefined,n)}function before(n,
func){var result;if("function"!=typeof func)throw new TypeError("Expected a function");n=toInteger(n);return function(){0<--n&&(result=func.apply(this,arguments));1>=n&&(func=undefined);return result}}function curry(func,arity,guard){arity=guard?undefined:arity;func=createWrap(func,8,undefined,undefined,undefined,undefined,undefined,arity);func.placeholder=curry.placeholder;return func}function curryRight(func,arity,guard){arity=guard?undefined:arity;func=createWrap(func,16,undefined,undefined,undefined,
undefined,undefined,arity);func.placeholder=curryRight.placeholder;return func}function debounce(func,wait,options){function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;return result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;time-=lastInvokeTime;return undefined===lastCallTime||timeSinceLastCall>=wait||0>timeSinceLastCall||maxing&&time>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);
var JSCompiler_temp_const=setTimeout;var JSCompiler_inline_result=time-lastInvokeTime;time=wait-(time-lastCallTime);JSCompiler_inline_result=maxing?nativeMin(time,maxWait-JSCompiler_inline_result):time;timerId=JSCompiler_temp_const(timerExpired,JSCompiler_inline_result)}function trailingEdge(time){timerId=undefined;if(trailing&&lastArgs)return invokeFunc(time);lastArgs=lastThis=undefined;return result}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;
lastCallTime=time;if(isInvoking){if(undefined===timerId)return lastInvokeTime=time=lastCallTime,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result;if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}undefined===timerId&&(timerId=setTimeout(timerExpired,wait));return result}var lastArgs,lastThis,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");
wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;var maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing}debounced.cancel=function(){undefined!==timerId&&clearTimeout(timerId);lastInvokeTime=0;lastArgs=lastCallTime=lastThis=timerId=undefined};debounced.flush=function(){return undefined===timerId?result:trailingEdge(now())};return debounced}function memoize(func,resolver){if("function"!=
typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);args=func.apply(this,args);memoized.cache=cache.set(key,args)||cache;return args};memoized.cache=new (memoize.Cache||MapCache);return memoized}function negate(predicate){if("function"!=typeof predicate)throw new TypeError("Expected a function");return function(){var args=
arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}function eq(value,other){return value===other||value!==value&&other!==other}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}
function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return"[object Error]"==tag||"[object DOMException]"==tag||"string"==typeof value.message&&"string"==typeof value.name&&!isPlainObject(value)}function isFunction(value){if(!isObject(value))return!1;value=baseGetTag(value);return"[object Function]"==value||"[object GeneratorFunction]"==value||"[object AsyncFunction]"==value||"[object Proxy]"==value}function isInteger(value){return"number"==typeof value&&value==toInteger(value)}
function isLength(value){return"number"==typeof value&&-1<value&&0==value%1&&9007199254740991>=value}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isObjectLike(value){return null!=value&&"object"==typeof value}function isNumber(value){return"number"==typeof value||isObjectLike(value)&&"[object Number]"==baseGetTag(value)}function isPlainObject(value){if(!isObjectLike(value)||"[object Object]"!=baseGetTag(value))return!1;value=getPrototype(value);
if(null===value)return!0;value=hasOwnProperty.call(value,"constructor")&&value.constructor;return"function"==typeof value&&value instanceof value&&funcToString.call(value)==objectCtorString}function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&"[object String]"==baseGetTag(value)}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?
stringToArray(value):copyArray(value);if(symIterator&&value[symIterator]){value=value[symIterator]();for(var data,result=[];!(data=value.next()).done;)result.push(data.value);return result}data=getTag(value);return("[object Map]"==data?mapToArray:"[object Set]"==data?setToArray:values$jscomp$0)(value)}function toFinite(value){if(!value)return 0===value?value:0;value=toNumber(value);return value===INFINITY||value===-INFINITY?1.7976931348623157E308*(0>value?-1:1):value===value?value:0}function toInteger(value){value=
toFinite(value);var remainder=value%1;return value===value?remainder?value-remainder:value:0}function toLength(value){return value?baseClamp(toInteger(value),0,4294967295):0}function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NAN;isObject(value)&&(value="function"==typeof value.valueOf?value.valueOf():value,value=isObject(value)?value+"":value);if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||
reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toString(value){return null==value?"":baseToString(value)}function get(object,path,defaultValue){object=null==object?undefined:baseGet(object,path);return undefined===object?defaultValue:object}function hasIn(object,path){return null!=object&&hasPath(object,path,baseHasIn)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):
baseKeys(object)}function keysIn(object){if(isArrayLike(object))object=arrayLikeKeys(object,!0);else if(isObject(object)){var isProto=isPrototype(object),result=[];for(key in object)("constructor"!=key||!isProto&&hasOwnProperty.call(object,key))&&result.push(key);object=result}else{var key=[];if(null!=object)for(isProto in Object(object))key.push(isProto);object=key}return object}function pickBy(object,predicate){if(null==object)return{};var props=arrayMap(getAllKeysIn(object),function(prop){return[prop]});
predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0])})}function values$jscomp$0(object){return null==object?[]:baseValues(object,keys(object))}function capitalize(string){return upperFirst(toString(string).toLowerCase())}function deburr(string){return(string=toString(string))&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}function words(string,pattern,guard){string=toString(string);pattern=guard?undefined:pattern;return undefined===
pattern?reHasUnicodeWord.test(string)?string.match(reUnicodeWord)||[]:string.match(reAsciiWord)||[]:string.match(pattern)||[]}function constant(value){return function(){return value}}function identity(value){return value}function iteratee$jscomp$0(func){return baseIteratee("function"==typeof func?func:baseClone(func,1))}function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);null!=options||isObject(source)&&(methodNames.length||!props.length)||(options=
source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;isFunc&&(object.prototype[methodName]=function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__);(result.__actions__=copyArray(this.__actions__)).push({func:func,args:arguments,thisArg:object});result.__chain__=
chainAll;return result}return func.apply(object,arrayPush([this.value()],arguments))})});return object}function noop(){}function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function stubArray(){return[]}function stubFalse(){return!1}context=null==context?root:_.defaults(root.Object(),context,_.pick(root,contextProps));var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,
String=context.String,TypeError=context.TypeError,arrayProto=Array.prototype,objectProto=Object.prototype,coreJsData=context["__core-js_shared__"],funcToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}(),nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object),oldDash=root._,reIsNative=RegExp("^"+
funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,
symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined,defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=
Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse,DataView=getNative(context,"DataView"),Map=getNative(context,"Map"),Promise=getNative(context,"Promise"),Set=getNative(context,"Set"),WeakMap=getNative(context,"WeakMap"),nativeCreate=getNative(Object,"create"),metaMap=WeakMap&&
new WeakMap,realNames={},dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined,symbolToString=symbolProto?symbolProto.toString:undefined,baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=
proto;proto=new object;object.prototype=undefined;return proto}}();lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}};lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;Hash.prototype.clear=function(){this.__data__=
nativeCreate?nativeCreate(null):{};this.size=0};Hash.prototype["delete"]=function(key){key=this.has(key)&&delete this.__data__[key];this.size-=key?1:0;return key};Hash.prototype.get=function(key){var data=this.__data__;return nativeCreate?(key=data[key],"__lodash_hash_undefined__"===key?undefined:key):hasOwnProperty.call(data,key)?data[key]:undefined};Hash.prototype.has=function(key){var data=this.__data__;return nativeCreate?undefined!==data[key]:hasOwnProperty.call(data,key)};Hash.prototype.set=
function(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&undefined===value?"__lodash_hash_undefined__":value;return this};ListCache.prototype.clear=function(){this.__data__=[];this.size=0};ListCache.prototype["delete"]=function(key){var data=this.__data__;key=assocIndexOf(data,key);if(0>key)return!1;key==data.length-1?data.pop():splice.call(data,key,1);--this.size;return!0};ListCache.prototype.get=function(key){var data=this.__data__;key=assocIndexOf(data,key);
return 0>key?undefined:data[key][1]};ListCache.prototype.has=function(key){return-1<assocIndexOf(this.__data__,key)};ListCache.prototype.set=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);0>index?(++this.size,data.push([key,value])):data[index][1]=value;return this};MapCache.prototype.clear=function(){this.size=0;this.__data__={hash:new Hash,map:new (Map||ListCache),string:new Hash}};MapCache.prototype["delete"]=function(key){key=getMapData(this,key)["delete"](key);this.size-=
key?1:0;return key};MapCache.prototype.get=function(key){return getMapData(this,key).get(key)};MapCache.prototype.has=function(key){return getMapData(this,key).has(key)};MapCache.prototype.set=function(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this};SetCache.prototype.add=SetCache.prototype.push=function(value){this.__data__.set(value,"__lodash_hash_undefined__");return this};SetCache.prototype.has=function(value){return this.__data__.has(value)};
Stack.prototype.clear=function(){this.__data__=new ListCache;this.size=0};Stack.prototype["delete"]=function(key){var data=this.__data__;key=data["delete"](key);this.size=data.size;return key};Stack.prototype.get=function(key){return this.__data__.get(key)};Stack.prototype.has=function(key){return this.__data__.has(key)};Stack.prototype.set=function(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||199>pairs.length)return pairs.push([key,value]),this.size=
++data.size,this;data=this.__data__=new MapCache(pairs)}data.set(key,value);this.size=data.size;return this};var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0),baseFor=createBaseFor(),baseForRight=createBaseFor(!0),baseSetData=metaMap?function(func,data){metaMap.set(func,data);return func}:identity,baseSetToString=defineProperty?function(func,string){return defineProperty(func,"toString",{configurable:!0,enumerable:!1,value:constant(string),writable:!0})}:identity,
clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id)},createSet=Set&&1/setToArray(new Set([,-0]))[1]==INFINITY?function(values){return new Set(values)}:noop,getData=metaMap?function(func){return metaMap.get(func)}:noop,getSymbols=nativeGetSymbols?function(object){if(null==object)return[];object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)})}:stubArray,getSymbolsIn=nativeGetSymbols?function(object){for(var result=
[];object;)arrayPush(result,getSymbols(object)),object=getPrototype(object);return result}:stubArray,getTag=baseGetTag;if(DataView&&"[object DataView]"!=getTag(new DataView(new ArrayBuffer(1)))||Map&&"[object Map]"!=getTag(new Map)||Promise&&"[object Promise]"!=getTag(Promise.resolve())||Set&&"[object Set]"!=getTag(new Set)||WeakMap&&"[object WeakMap]"!=getTag(new WeakMap))getTag=function(value){var result=baseGetTag(value);if(value=(value="[object Object]"==result?value.constructor:undefined)?toSource(value):
"")switch(value){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result};var isMaskable=coreJsData?isFunction:stubFalse,setData=shortOut(baseSetData),setTimeout=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait)},setToString=shortOut(baseSetToString),stringToPath=function(func){func=memoize(func,function(key){500===
cache.size&&cache.clear();return key});var cache=func.cache;return func}(function(string){var result=[];46===string.charCodeAt(0)&&result.push("");string.replace(rePropName,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)});return result}),difference=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0)):[]}),differenceBy=baseRest(function(array,values){var iteratee=
last(values);isArrayLikeObject(iteratee)&&(iteratee=undefined);return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),getIteratee(iteratee,2)):[]}),differenceWith=baseRest(function(array,values){var comparator=last(values);isArrayLikeObject(comparator)&&(comparator=undefined);return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),undefined,comparator):[]}),intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,
castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[]}),intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);iteratee===last(mapped)?iteratee=undefined:mapped.pop();return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[]}),intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);(comparator="function"==typeof comparator?
comparator:undefined)&&mapped.pop();return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined,comparator):[]}),pull=baseRest(pullAll),pullAt=flatRest(function(array,indexes){var length=null==array?0:array.length,result=baseAt(array,indexes);basePullAt(array,arrayMap(indexes,function(index){return isIndex(index,length)?+index:index}).sort(compareAscending));return result}),union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0))}),unionBy=baseRest(function(arrays){var iteratee=
last(arrays);isArrayLikeObject(iteratee)&&(iteratee=undefined);return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),getIteratee(iteratee,2))}),unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator="function"==typeof comparator?comparator:undefined;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),undefined,comparator)}),without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[]}),xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,
isArrayLikeObject))}),xorBy=baseRest(function(arrays){var iteratee=last(arrays);isArrayLikeObject(iteratee)&&(iteratee=undefined);return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2))}),xorWith=baseRest(function(arrays){var comparator=last(arrays);comparator="function"==typeof comparator?comparator:undefined;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined,comparator)}),zip=baseRest(unzip),zipWith=baseRest(function(arrays){var length=arrays.length;length=1<length?
arrays[length-1]:undefined;length="function"==typeof length?(arrays.pop(),length):undefined;return unzipWith(arrays,length)}),wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,paths)};if(1<length||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start))return this.thru(interceptor);value=value.slice(start,+start+(length?1:0));value.__actions__.push({func:thru,args:[interceptor],
thisArg:undefined});return(new LodashWrapper(value,this.__chain__)).thru(function(array){length&&!array.length&&array.push(undefined);return array})}),countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:baseAssignValue(result,key,1)}),find=createFind(findIndex),findLast=createFind(findLastIndex),groupBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):baseAssignValue(result,key,[value])}),invokeMap=baseRest(function(collection,
path,args){var index=-1,isFunc="function"==typeof path,result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)});return result}),keyBy=createAggregator(function(result,value,key){baseAssignValue(result,key,value)}),partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]}),sortBy=baseRest(function(collection,iteratees){if(null==collection)return[];
var length=iteratees.length;1<length&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:2<length&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]);return baseOrderBy(collection,baseFlatten(iteratees,1),[])}),now=ctxNow||function(){return root.Date.now()},bind=baseRest(function(func,thisArg,partials){var bitmask=1;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=32}return createWrap(func,bitmask,thisArg,partials,holders)}),
bindKey=baseRest(function(object,key,partials){var bitmask=3;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=32}return createWrap(key,bitmask,object,partials,holders)}),defer=baseRest(function(func,args){return baseDelay(func,1,args)}),delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)});memoize.Cache=MapCache;var overArgs=baseRest(function(func,transforms){transforms=1==transforms.length&&isArray(transforms[0])?arrayMap(transforms[0],
baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index<length;)args[index]=transforms[index].call(this,args[index]);return apply(func,this,args)})}),partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,32,undefined,partials,holders)}),partialRight=baseRest(function(func,
partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,64,undefined,partials,holders)}),rearg=flatRest(function(func,indexes){return createWrap(func,256,undefined,undefined,undefined,indexes)}),gt=createRelationalOperation(baseGt),gte=createRelationalOperation(function(value,other){return value>=other}),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&
!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer,isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,lt=createRelationalOperation(baseLt),lte=createRelationalOperation(function(value,
other){return value<=other}),assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source))copyObject(source,keys(source),object);else for(var key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,source[key])}),assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object)}),assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)}),assignWith=createAssigner(function(object,
source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)}),at=flatRest(baseAt),defaults=baseRest(function(object,sources){object=Object(object);var index=-1,length=sources.length,guard=2<length?sources[2]:undefined;for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index<length;){guard=sources[index];for(var props=keysIn(guard),propsIndex=-1,propsLength=props.length;++propsIndex<propsLength;){var key=props[propsIndex],value=object[key];if(undefined===value||
eq(value,objectProto[key])&&!hasOwnProperty.call(object,key))object[key]=guard[key]}}return object}),defaultsDeep=baseRest(function(args){args.push(undefined,customDefaultsMerge);return apply(mergeWith,undefined,args)}),invert=createInverter(function(result,value,key){null!=value&&"function"!=typeof value.toString&&(value=nativeObjectToString.call(value));result[value]=key},constant(identity)),invertBy=createInverter(function(result,value,key){null!=value&&"function"!=typeof value.toString&&(value=
nativeObjectToString.call(value));hasOwnProperty.call(result,value)?result[value].push(key):result[value]=[key]},getIteratee),invoke=baseRest(baseInvoke),merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex)}),mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer)}),omit=flatRest(function(object,paths){var result={};if(null==object)return result;var isDeep=!1;paths=arrayMap(paths,function(path){path=castPath(path,
object);isDeep||(isDeep=1<path.length);return path});copyObject(object,getAllKeysIn(object),result);isDeep&&(result=baseClone(result,7,customOmitClone));for(var length=paths.length;length--;)baseUnset(result,paths[length]);return result}),pick=flatRest(function(object,paths){return null==object?{}:basePick(object,paths)}),toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn),camelCase=createCompounder(function(result,word,index){word=word.toLowerCase();return result+(index?capitalize(word):
word)}),kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()}),lowerCase=createCompounder(function(result,word,index){return result+(index?" ":"")+word.toLowerCase()}),lowerFirst=createCaseFirst("toLowerCase"),snakeCase=createCompounder(function(result,word,index){return result+(index?"_":"")+word.toLowerCase()}),startCase=createCompounder(function(result,word,index){return result+(index?" ":"")+upperFirst(word)}),upperCase=createCompounder(function(result,
word,index){return result+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase"),attempt=baseRest(function(func,args){try{return apply(func,undefined,args)}catch(e){return isError(e)?e:new Error(e)}}),bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=toKey(key);baseAssignValue(object,key,bind(object[key],object))});return object}),flow=createFlow(),flowRight=createFlow(!0),method=baseRest(function(path,args){return function(object){return baseInvoke(object,
path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}}),over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome),range=createRange(),rangeRight=createRange(!0),add=createMathOperation(function(augend,addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor"),multiply=createMathOperation(function(multiplier,
multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);lodash.after=function(n,func){if("function"!=typeof func)throw new TypeError("Expected a function");n=toInteger(n);return function(){if(1>--n)return func.apply(this,arguments)}};lodash.ary=ary;lodash.assign=assign;lodash.assignIn=assignIn;lodash.assignInWith=assignInWith;lodash.assignWith=assignWith;lodash.at=at;lodash.before=before;lodash.bind=
bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.castArray=function(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]};lodash.chain=chain;lodash.chunk=function(array,size,guard){size=(guard?isIterateeCall(array,size,guard):undefined===size)?1:nativeMax(toInteger(size),0);guard=null==array?0:array.length;if(!guard||1>size)return[];for(var index=0,resIndex=0,result=Array(nativeCeil(guard/size));index<guard;)result[resIndex++]=baseSlice(array,index,index+=
size);return result};lodash.compact=function(array){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];value&&(result[resIndex++]=value)}return result};lodash.concat=function(){var length=arguments.length;if(!length)return[];for(var args=Array(length-1),array=arguments[0];length--;)args[length-1]=arguments[length];return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1))};lodash.cond=function(pairs){var length=null==
pairs?0:pairs.length,toIteratee=getIteratee();pairs=length?arrayMap(pairs,function(pair){if("function"!=typeof pair[1])throw new TypeError("Expected a function");return[toIteratee(pair[0]),pair[1]]}):[];return baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];if(apply(pair[0],this,args))return apply(pair[1],this,args)}})};lodash.conforms=function(source){return baseConforms(baseClone(source,1))};lodash.constant=constant;lodash.countBy=countBy;lodash.create=function(prototype,
properties){prototype=baseCreate(prototype);return null==properties?prototype:baseAssign(prototype,properties)};lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defaultsDeep=defaultsDeep;lodash.defer=defer;lodash.delay=delay;lodash.difference=difference;lodash.differenceBy=differenceBy;lodash.differenceWith=differenceWith;lodash.drop=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);
return baseSlice(array,0>n?0:n,length)};lodash.dropRight=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);n=length-n;return baseSlice(array,0,0>n?0:n)};lodash.dropRightWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0,!0):[]};lodash.dropWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0):[]};lodash.fill=function(array,value,
start,end){var length=null==array?0:array.length;if(!length)return[];start&&"number"!=typeof start&&isIterateeCall(array,value,start)&&(start=0,end=length);length=array.length;start=toInteger(start);0>start&&(start=-start>length?0:length+start);end=undefined===end||end>length?length:toInteger(end);0>end&&(end+=length);for(end=start>end?0:toLength(end);start<end;)array[start++]=value;return array};lodash.filter=function(collection,predicate){return(isArray(collection)?arrayFilter:baseFilter)(collection,
getIteratee(predicate,3))};lodash.flatMap=function(collection,iteratee){return baseFlatten(map$jscomp$0(collection,iteratee),1)};lodash.flatMapDeep=function(collection,iteratee){return baseFlatten(map$jscomp$0(collection,iteratee),INFINITY)};lodash.flatMapDepth=function(collection,iteratee,depth){depth=undefined===depth?1:toInteger(depth);return baseFlatten(map$jscomp$0(collection,iteratee),depth)};lodash.flatten=flatten;lodash.flattenDeep=function(array){return(null==array?0:array.length)?baseFlatten(array,
INFINITY):[]};lodash.flattenDepth=function(array,depth){if(null==array||!array.length)return[];depth=undefined===depth?1:toInteger(depth);return baseFlatten(array,depth)};lodash.flip=function(func){return createWrap(func,512)};lodash.flow=flow;lodash.flowRight=flowRight;lodash.fromPairs=function(pairs){for(var index=-1,length=null==pairs?0:pairs.length,result={};++index<length;){var pair=pairs[index];result[pair[0]]=pair[1]}return result};lodash.functions=function(object){return null==object?[]:baseFunctions(object,
keys(object))};lodash.functionsIn=function(object){return null==object?[]:baseFunctions(object,keysIn(object))};lodash.groupBy=groupBy;lodash.initial=function(array){return(null==array?0:array.length)?baseSlice(array,0,-1):[]};lodash.intersection=intersection;lodash.intersectionBy=intersectionBy;lodash.intersectionWith=intersectionWith;lodash.invert=invert;lodash.invertBy=invertBy;lodash.invokeMap=invokeMap;lodash.iteratee=iteratee$jscomp$0;lodash.keyBy=keyBy;lodash.keys=keys;lodash.keysIn=keysIn;
lodash.map=map$jscomp$0;lodash.mapKeys=function(object$jscomp$0,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object$jscomp$0,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value)});return result};lodash.mapValues=function(object$jscomp$0,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object$jscomp$0,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))});return result};lodash.matches=function(source){return baseMatches(baseClone(source,
1))};lodash.matchesProperty=function(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,1))};lodash.memoize=memoize;lodash.merge=merge;lodash.mergeWith=mergeWith;lodash.method=method;lodash.methodOf=methodOf;lodash.mixin=mixin;lodash.negate=negate;lodash.nthArg=function(n){n=toInteger(n);return baseRest(function(args){return baseNth(args,n)})};lodash.omit=omit;lodash.omitBy=function(object,predicate){return pickBy(object,negate(getIteratee(predicate)))};lodash.once=function(func){return before(2,
func)};lodash.orderBy=function(collection,iteratees,orders,guard){if(null==collection)return[];isArray(iteratees)||(iteratees=null==iteratees?[]:[iteratees]);orders=guard?undefined:orders;isArray(orders)||(orders=null==orders?[]:[orders]);return baseOrderBy(collection,iteratees,orders)};lodash.over=over;lodash.overArgs=overArgs;lodash.overEvery=overEvery;lodash.overSome=overSome;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pickBy=pickBy;
lodash.property=property;lodash.propertyOf=function(object){return function(path){return null==object?undefined:baseGet(object,path)}};lodash.pull=pull;lodash.pullAll=pullAll;lodash.pullAllBy=function(array,values,iteratee){return array&&array.length&&values&&values.length?basePullAll(array,values,getIteratee(iteratee,2)):array};lodash.pullAllWith=function(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined,comparator):array};lodash.pullAt=
pullAt;lodash.range=range;lodash.rangeRight=rangeRight;lodash.rearg=rearg;lodash.reject=function(collection,predicate){return(isArray(collection)?arrayFilter:baseFilter)(collection,negate(getIteratee(predicate,3)))};lodash.remove=function(array,predicate){var result=[];if(!array||!array.length)return result;var index=-1,indexes=[],length=array.length;for(predicate=getIteratee(predicate,3);++index<length;){var value=array[index];predicate(value,index,array)&&(result.push(value),indexes.push(index))}basePullAt(array,
indexes);return result};lodash.rest=function(func,start){if("function"!=typeof func)throw new TypeError("Expected a function");start=undefined===start?start:toInteger(start);return baseRest(func,start)};lodash.reverse=reverse;lodash.sampleSize=function(collection,n,guard){n=(guard?isIterateeCall(collection,n,guard):undefined===n)?1:toInteger(n);return(isArray(collection)?arraySampleSize:baseSampleSize)(collection,n)};lodash.set=function(object,path,value){return null==object?object:baseSet(object,
path,value)};lodash.setWith=function(object,path,value,customizer){customizer="function"==typeof customizer?customizer:undefined;return null==object?object:baseSet(object,path,value,customizer)};lodash.shuffle=function(collection){return(isArray(collection)?arrayShuffle:baseShuffle)(collection)};lodash.slice=function(array,start,end){var length=null==array?0:array.length;if(!length)return[];end&&"number"!=typeof end&&isIterateeCall(array,start,end)?(start=0,end=length):(start=null==start?0:toInteger(start),
end=undefined===end?length:toInteger(end));return baseSlice(array,start,end)};lodash.sortBy=sortBy;lodash.sortedUniq=function(array){return array&&array.length?baseSortedUniq(array):[]};lodash.sortedUniqBy=function(array,iteratee){return array&&array.length?baseSortedUniq(array,getIteratee(iteratee,2)):[]};lodash.split=function(string,separator,limit){limit&&"number"!=typeof limit&&isIterateeCall(string,separator,limit)&&(separator=limit=undefined);limit=undefined===limit?4294967295:limit>>>0;return limit?
(string=toString(string))&&("string"==typeof separator||null!=separator&&!isRegExp(separator))&&(separator=baseToString(separator),!separator&&reHasUnicode.test(string))?castSlice(stringToArray(string),0,limit):string.split(separator,limit):[]};lodash.spread=function(func,start){if("function"!=typeof func)throw new TypeError("Expected a function");start=null==start?0:nativeMax(toInteger(start),0);return baseRest(function(args){var array=args[start];args=castSlice(args,0,start);array&&arrayPush(args,
array);return apply(func,this,args)})};lodash.tail=function(array){var length=null==array?0:array.length;return length?baseSlice(array,1,length):[]};lodash.take=function(array,n,guard){if(!array||!array.length)return[];n=guard||undefined===n?1:toInteger(n);return baseSlice(array,0,0>n?0:n)};lodash.takeRight=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);n=length-n;return baseSlice(array,0>n?0:n,length)};lodash.takeRightWhile=
function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]};lodash.takeWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]};lodash.tap=function(value,interceptor){interceptor(value);return value};lodash.throttle=function(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");isObject(options)&&(leading="leading"in options?!!options.leading:leading,
trailing="trailing"in options?!!options.trailing:trailing);return debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})};lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=toPairs;lodash.toPairsIn=toPairsIn;lodash.toPath=function(value){return isArray(value)?arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))};lodash.toPlainObject=toPlainObject;lodash.transform=function(object$jscomp$0,iteratee,accumulator){var isArr=isArray(object$jscomp$0),isArrLike=
isArr||isBuffer(object$jscomp$0)||isTypedArray(object$jscomp$0);iteratee=getIteratee(iteratee,4);if(null==accumulator){var Ctor=object$jscomp$0&&object$jscomp$0.constructor;accumulator=isArrLike?isArr?new Ctor:[]:isObject(object$jscomp$0)?isFunction(Ctor)?baseCreate(getPrototype(object$jscomp$0)):{}:{}}(isArrLike?arrayEach:baseForOwn)(object$jscomp$0,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator};lodash.unary=function(func){return ary(func,1)};lodash.union=
union;lodash.unionBy=unionBy;lodash.unionWith=unionWith;lodash.uniq=function(array){return array&&array.length?baseUniq(array):[]};lodash.uniqBy=function(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[]};lodash.uniqWith=function(array,comparator){comparator="function"==typeof comparator?comparator:undefined;return array&&array.length?baseUniq(array,undefined,comparator):[]};lodash.unset=function(object,path){return null==object?!0:baseUnset(object,path)};lodash.unzip=
unzip;lodash.unzipWith=unzipWith;lodash.update=function(object,path,updater){null!=object&&(updater=castFunction(updater),object=baseSet(object,path,updater(baseGet(object,path)),void 0));return object};lodash.updateWith=function(object,path,updater,customizer){customizer="function"==typeof customizer?customizer:undefined;null!=object&&(updater=castFunction(updater),object=baseSet(object,path,updater(baseGet(object,path)),customizer));return object};lodash.values=values$jscomp$0;lodash.valuesIn=function(object){return null==
object?[]:baseValues(object,keysIn(object))};lodash.without=without;lodash.words=words;lodash.wrap=function(value,wrapper){return partial(castFunction(wrapper),value)};lodash.xor=xor;lodash.xorBy=xorBy;lodash.xorWith=xorWith;lodash.zip=zip;lodash.zipObject=function(props,values){return baseZipObject(props||[],values||[],assignValue)};lodash.zipObjectDeep=function(props,values){return baseZipObject(props||[],values||[],baseSet)};lodash.zipWith=zipWith;lodash.entries=toPairs;lodash.entriesIn=toPairsIn;
lodash.extend=assignIn;lodash.extendWith=assignInWith;mixin(lodash,lodash);lodash.add=add;lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.ceil=ceil;lodash.clamp=function(number,lower,upper){undefined===upper&&(upper=lower,lower=undefined);undefined!==upper&&(upper=toNumber(upper),upper=upper===upper?upper:0);undefined!==lower&&(lower=toNumber(lower),lower=lower===lower?lower:0);return baseClamp(toNumber(number),lower,upper)};lodash.clone=function(value){return baseClone(value,
4)};lodash.cloneDeep=function(value){return baseClone(value,5)};lodash.cloneDeepWith=function(value,customizer){customizer="function"==typeof customizer?customizer:undefined;return baseClone(value,5,customizer)};lodash.cloneWith=function(value,customizer){customizer="function"==typeof customizer?customizer:undefined;return baseClone(value,4,customizer)};lodash.conformsTo=function(object,source){return null==source||baseConformsTo(object,source,keys(source))};lodash.deburr=deburr;lodash.defaultTo=
function(value,defaultValue){return null==value||value!==value?defaultValue:value};lodash.divide=divide;lodash.endsWith=function(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;length=position=undefined===position?length:baseClamp(toInteger(position),0,length);position-=target.length;return 0<=position&&string.slice(position,length)==target};lodash.eq=eq;lodash.escape=function(string){return(string=toString(string))&&reHasUnescapedHtml.test(string)?
string.replace(reUnescapedHtml,escapeHtmlChar):string};lodash.escapeRegExp=function(string){return(string=toString(string))&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string};lodash.every=function(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined);return func(collection,getIteratee(predicate,3))};lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=function(object,predicate){return baseFindKey(object,
getIteratee(predicate,3),baseForOwn)};lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=function(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)};lodash.floor=floor;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=function(object,iteratee){return null==object?object:baseFor(object,getIteratee(iteratee,3),keysIn)};lodash.forInRight=function(object,iteratee){return null==object?object:baseForRight(object,getIteratee(iteratee,
3),keysIn)};lodash.forOwn=function(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3))};lodash.forOwnRight=function(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3))};lodash.get=get;lodash.gt=gt;lodash.gte=gte;lodash.has=function(object,path){return null!=object&&hasPath(object,path,baseHas)};lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=function(collection,value,fromIndex,guard){collection=isArrayLike(collection)?
collection:values$jscomp$0(collection);fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;guard=collection.length;0>fromIndex&&(fromIndex=nativeMax(guard+fromIndex,0));return isString(collection)?fromIndex<=guard&&-1<collection.indexOf(value,fromIndex):!!guard&&-1<baseIndexOf(collection,value,fromIndex)};lodash.indexOf=function(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;fromIndex=null==fromIndex?0:toInteger(fromIndex);0>fromIndex&&(fromIndex=nativeMax(length+
fromIndex,0));return baseIndexOf(array,value,fromIndex)};lodash.inRange=function(number,start,end){start=toFinite(start);undefined===end?(end=start,start=0):end=toFinite(end);number=toNumber(number);return number>=nativeMin(start,end)&&number<nativeMax(start,end)};lodash.invoke=invoke;lodash.isArguments=isArguments;lodash.isArray=isArray;lodash.isArrayBuffer=isArrayBuffer;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=function(value){return!0===value||!1===
value||isObjectLike(value)&&"[object Boolean]"==baseGetTag(value)};lodash.isBuffer=isBuffer;lodash.isDate=isDate;lodash.isElement=function(value){return isObjectLike(value)&&1===value.nodeType&&!isPlainObject(value)};lodash.isEmpty=function(value){if(null==value)return!0;if(isArrayLike(value)&&(isArray(value)||"string"==typeof value||"function"==typeof value.splice||isBuffer(value)||isTypedArray(value)||isArguments(value)))return!value.length;var tag=getTag(value);if("[object Map]"==tag||"[object Set]"==
tag)return!value.size;if(isPrototype(value))return!baseKeys(value).length;for(var key in value)if(hasOwnProperty.call(value,key))return!1;return!0};lodash.isEqual=function(value,other){return baseIsEqual(value,other)};lodash.isEqualWith=function(value,other,customizer){var result=(customizer="function"==typeof customizer?customizer:undefined)?customizer(value,other):undefined;return undefined===result?baseIsEqual(value,other,undefined,customizer):!!result};lodash.isError=isError;lodash.isFinite=function(value){return"number"==
typeof value&&nativeIsFinite(value)};lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=isMap;lodash.isMatch=function(object,source){return object===source||baseIsMatch(object,source,getMatchData(source))};lodash.isMatchWith=function(object,source,customizer){customizer="function"==typeof customizer?customizer:undefined;return baseIsMatch(object,source,getMatchData(source),customizer)};lodash.isNaN=function(value){return isNumber(value)&&value!=+value};lodash.isNative=
function(value){if(isMaskable(value))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(value)};lodash.isNil=function(value){return null==value};lodash.isNull=function(value){return null===value};lodash.isNumber=isNumber;lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isSafeInteger=function(value){return isInteger(value)&&-9007199254740991<=value&&9007199254740991>=value};
lodash.isSet=isSet;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=isTypedArray;lodash.isUndefined=function(value){return undefined===value};lodash.isWeakMap=function(value){return isObjectLike(value)&&"[object WeakMap]"==getTag(value)};lodash.isWeakSet=function(value){return isObjectLike(value)&&"[object WeakSet]"==baseGetTag(value)};lodash.join=function(array,separator){return null==array?"":nativeJoin.call(array,separator)};lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=
function(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length;undefined!==fromIndex&&(index=toInteger(fromIndex),index=0>index?nativeMax(length+index,0):nativeMin(index,length-1));if(value===value)a:{for(fromIndex=index+1;fromIndex--;)if(array[fromIndex]===value){array=fromIndex;break a}array=fromIndex}else array=baseFindIndex(array,baseIsNaN,index,!0);return array};lodash.lowerCase=lowerCase;lodash.lowerFirst=lowerFirst;lodash.lt=lt;lodash.lte=lte;lodash.max=
function(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined};lodash.maxBy=function(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined};lodash.mean=function(array){return baseMean(array,identity)};lodash.meanBy=function(array,iteratee){return baseMean(array,getIteratee(iteratee,2))};lodash.min=function(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined};lodash.minBy=function(array,iteratee){return array&&
array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined};lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=function(){return{}};lodash.stubString=function(){return""};lodash.stubTrue=function(){return!0};lodash.multiply=multiply;lodash.nth=function(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined};lodash.noConflict=function(){root._===this&&(root._=oldDash);return this};lodash.noop=noop;lodash.now=now;lodash.pad=function(string,length,
chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;if(!length||strLength>=length)return string;length=(length-strLength)/2;return createPadding(nativeFloor(length),chars)+string+createPadding(nativeCeil(length),chars)};lodash.padEnd=function(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLength<length?string+createPadding(length-strLength,chars):string};lodash.padStart=function(string,
length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLength<length?createPadding(length-strLength,chars)+string:string};lodash.parseInt=function(string,radix,guard){guard||null==radix?radix=0:radix&&(radix=+radix);return nativeParseInt(toString(string).replace(reTrimStart,""),radix||0)};lodash.random=function(lower,upper,floating){floating&&"boolean"!=typeof floating&&isIterateeCall(lower,upper,floating)&&(upper=floating=undefined);
undefined===floating&&("boolean"==typeof upper?(floating=upper,upper=undefined):"boolean"==typeof lower&&(floating=lower,lower=undefined));undefined===lower&&undefined===upper?(lower=0,upper=1):(lower=toFinite(lower),undefined===upper?(upper=lower,lower=0):upper=toFinite(upper));if(lower>upper){var temp=lower;lower=upper;upper=temp}return floating||lower%1||upper%1?(floating=nativeRandom(),nativeMin(lower+floating*(upper-lower+freeParseFloat("1e-"+((floating+"").length-1))),upper)):baseRandom(lower,
upper)};lodash.reduce=function(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=3>arguments.length;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach)};lodash.reduceRight=function(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=3>arguments.length;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight)};lodash.repeat=function(string,n,guard){n=(guard?
isIterateeCall(string,n,guard):undefined===n)?1:toInteger(n);return baseRepeat(toString(string),n)};lodash.replace=function(){var args=arguments,string=toString(args[0]);return 3>args.length?string:string.replace(args[1],args[2])};lodash.result=function(object,path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;length||(length=1,object=undefined);for(;++index<length;){var value=null==object?undefined:object[toKey(path[index])];undefined===value&&(index=length,value=defaultValue);
object=isFunction(value)?value.call(object):value}return object};lodash.round=round;lodash.runInContext=runInContext;lodash.sample=function(collection){return(isArray(collection)?arraySample:baseSample)(collection)};lodash.size=function(collection){if(null==collection)return 0;if(isArrayLike(collection))return isString(collection)?stringSize(collection):collection.length;var tag=getTag(collection);return"[object Map]"==tag||"[object Set]"==tag?collection.size:baseKeys(collection).length};lodash.snakeCase=
snakeCase;lodash.some=function(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined);return func(collection,getIteratee(predicate,3))};lodash.sortedIndex=function(array,value){return baseSortedIndex(array,value)};lodash.sortedIndexBy=function(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2))};lodash.sortedIndexOf=function(array,value){var length=null==array?0:array.length;
if(length){var index=baseSortedIndex(array,value);if(index<length&&eq(array[index],value))return index}return-1};lodash.sortedLastIndex=function(array,value){return baseSortedIndex(array,value,!0)};lodash.sortedLastIndexBy=function(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2),!0)};lodash.sortedLastIndexOf=function(array,value){if(null==array?0:array.length){var index=baseSortedIndex(array,value,!0)-1;if(eq(array[index],value))return index}return-1};lodash.startCase=
startCase;lodash.startsWith=function(string,target,position){string=toString(string);position=null==position?0:baseClamp(toInteger(position),0,string.length);target=baseToString(target);return string.slice(position,position+target.length)==target};lodash.subtract=subtract;lodash.sum=function(array){return array&&array.length?baseSum(array,identity):0};lodash.sumBy=function(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0};lodash.template=function(string,options,
guard){var settings=lodash.templateSettings;guard&&isIterateeCall(string,options,guard)&&(options=undefined);string=toString(string);options=assignInWith({},options,settings,customDefaultsAssignIn);guard=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn);var importsKeys=keys(guard),importsValues=baseValues(guard,importsKeys),isEscaping,isEvaluating,index=0;guard=options.interpolate||reNoMatch;var source="__p += '";guard=RegExp((options.escape||reNoMatch).source+"|"+guard.source+
"|"+(guard===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(guard,function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar);
escapeValue&&(isEscaping=!0,source+="' +\n__e("+escapeValue+") +\n'");evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '");interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'");index=offset+match.length;return match});source+="';\n";options=hasOwnProperty.call(options,"variable")&&options.variable;if(!options)source="with (obj) {\n"+source+"\n}\n";else if(reForbiddenIdentifierChars.test(options))throw new Error("Invalid `variable` option passed into `_.template`");
source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(options||"obj")+") {\n"+(options?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";options=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,
importsValues)});options.source=source;if(isError(options))throw options;return options};lodash.times=function(n,iteratee){n=toInteger(n);if(1>n||9007199254740991<n)return[];var index=4294967295,length=nativeMin(n,4294967295);iteratee=getIteratee(iteratee);n-=4294967295;for(length=baseTimes(length,iteratee);++index<n;)iteratee(index);return length};lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=function(value){return toString(value).toLowerCase()};lodash.toNumber=
toNumber;lodash.toSafeInteger=function(value){return value?baseClamp(toInteger(value),-9007199254740991,9007199254740991):0===value?value:0};lodash.toString=toString;lodash.toUpper=function(value){return toString(value).toUpperCase()};lodash.trim=function(string,chars,guard){if((string=toString(string))&&(guard||undefined===chars))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;string=stringToArray(string);guard=stringToArray(chars);chars=charsStartIndex(string,guard);
guard=charsEndIndex(string,guard)+1;return castSlice(string,chars,guard).join("")};lodash.trimEnd=function(string,chars,guard){if((string=toString(string))&&(guard||undefined===chars))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;string=stringToArray(string);chars=charsEndIndex(string,stringToArray(chars))+1;return castSlice(string,0,chars).join("")};lodash.trimStart=function(string,chars,guard){if((string=toString(string))&&(guard||undefined===
chars))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;string=stringToArray(string);chars=charsStartIndex(string,stringToArray(chars));return castSlice(string,chars).join("")};lodash.truncate=function(string,options){var length=30,omission="...";if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length;omission="omission"in options?baseToString(options.omission):omission}string=
toString(string);options=string.length;if(reHasUnicode.test(string)){var strSymbols=stringToArray(string);options=strSymbols.length}if(length>=options)return string;options=length-stringSize(omission);if(1>options)return omission;length=strSymbols?castSlice(strSymbols,0,options).join(""):string.slice(0,options);if(undefined===separator)return length+omission;strSymbols&&(options+=length.length-options);if(isRegExp(separator)){if(string.slice(options).search(separator)){strSymbols=length;separator.global||
(separator=RegExp(separator.source,toString(reFlags.exec(separator))+"g"));for(separator.lastIndex=0;string=separator.exec(strSymbols);)var newEnd=string.index;length=length.slice(0,undefined===newEnd?options:newEnd)}}else string.indexOf(baseToString(separator),options)!=options&&(separator=length.lastIndexOf(separator),-1<separator&&(length=length.slice(0,separator)));return length+omission};lodash.unescape=function(string){return(string=toString(string))&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,
unescapeHtmlChar):string};lodash.uniqueId=function(prefix){var id=++idCounter;return toString(prefix)+id};lodash.upperCase=upperCase;lodash.upperFirst=upperFirst;lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source={};baseForOwn(lodash,function(func,methodName){hasOwnProperty.call(lodash.prototype,methodName)||(source[methodName]=func)});return source}(),{chain:!1});lodash.VERSION="4.17.21";arrayEach("bind bindKey curry curryRight partial partialRight".split(" "),
function(methodName){lodash[methodName].placeholder=lodash});arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=undefined===n?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):this.clone();result.__filtered__?result.__takeCount__=nativeMin(n,result.__takeCount__):result.__views__.push({size:nativeMin(n,4294967295),type:methodName+(0>result.__dir__?"Right":"")});return result};LazyWrapper.prototype[methodName+"Right"]=
function(n){return this.reverse()[methodName](n).reverse()}});arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=1==type||3==type;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();result.__iteratees__.push({iteratee:getIteratee(iteratee,3),type:type});result.__filtered__=result.__filtered__||isFilter;return result}});arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=
function(){return this[takeName](1).value()[0]}});arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}});LazyWrapper.prototype.compact=function(){return this.filter(identity)};LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)};
LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return"function"==typeof path?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))};LazyWrapper.prototype.slice=function(start,end){start=toInteger(start);var result=this;if(result.__filtered__&&(0<start||0>end))return new LazyWrapper(result);0>start?result=result.takeRight(-start):start&&(result=result.drop(start));
undefined!==end&&(end=toInteger(end),result=0>end?result.dropRight(-end):result.take(end-start));return result};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()};LazyWrapper.prototype.toArray=function(){return this.take(4294967295)};baseForOwn(LazyWrapper.prototype,function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+
("last"==methodName?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);lodashFunc&&(lodash.prototype[methodName]=function(){var value$jscomp$0=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value$jscomp$0 instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value$jscomp$0),interceptor=function(value){value=lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?value[0]:value};useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&
(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length;iteratee=retUnwrapped&&!chainAll;isLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy)return value$jscomp$0=isLazy?value$jscomp$0:new LazyWrapper(this),value$jscomp$0=func.apply(value$jscomp$0,args),value$jscomp$0.__actions__.push({func:thru,args:[interceptor],thisArg:undefined}),new LodashWrapper(value$jscomp$0,chainAll);if(iteratee&&isLazy)return func.apply(this,args);value$jscomp$0=this.thru(interceptor);return iteratee?
isTaker?value$jscomp$0.value()[0]:value$jscomp$0.value():value$jscomp$0})});arrayEach("pop push shift sort splice unshift".split(" "),function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=arguments;if(retUnwrapped&&!this.__chain__){var value$jscomp$0=this.value();return func.apply(isArray(value$jscomp$0)?value$jscomp$0:[],args)}return this[chainName](function(value){return func.apply(isArray(value)?
value:[],args)})}});baseForOwn(LazyWrapper.prototype,function(func,methodName){if(func=lodash[methodName]){var key=func.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]);realNames[key].push({name:methodName,func:func})}});realNames[createHybrid(undefined,2).name]=[{name:"wrapper",func:undefined}];LazyWrapper.prototype.clone=function(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;
result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result};LazyWrapper.prototype.reverse=function(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=!0}else result=this.clone(),result.__dir__*=-1;return result};LazyWrapper.prototype.value=function(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=0>dir,arrLength=isArr?array.length:0;
var JSCompiler_object_inline_start_1578=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1578+=size;break;case "dropRight":end-=size;break;case "take":end=nativeMin(end,JSCompiler_object_inline_start_1578+size);break;case "takeRight":JSCompiler_object_inline_start_1578=nativeMax(JSCompiler_object_inline_start_1578,end-size)}}transforms=end;end=
transforms-JSCompiler_object_inline_start_1578;JSCompiler_object_inline_start_1578=isRight?transforms:JSCompiler_object_inline_start_1578-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1578+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1578];++isRight<index;){var data$jscomp$0=
transforms[isRight];size=data$jscomp$0.iteratee;data$jscomp$0=data$jscomp$0.type;size=size(arrLength);if(2==data$jscomp$0)arrLength=size;else if(!size)if(1==data$jscomp$0)continue a;else break a}isArr[length++]=arrLength}return isArr};lodash.prototype.at=wrapperAt;lodash.prototype.chain=function(){return chain(this)};lodash.prototype.commit=function(){return new LodashWrapper(this.value(),this.__chain__)};lodash.prototype.next=function(){undefined===this.__values__&&(this.__values__=toArray(this.value()));
var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{done:done,value:value}};lodash.prototype.plant=function(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;result?previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}previous.__wrapped__=value;return result};lodash.prototype.reverse=function(){var value=this.__wrapped__;
return value instanceof LazyWrapper?(this.__actions__.length&&(value=new LazyWrapper(this)),value=value.reverse(),value.__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(value,this.__chain__)):this.thru(reverse)};lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=function(){return baseWrapperValue(this.__wrapped__,this.__actions__)};lodash.prototype.first=lodash.prototype.head;symIterator&&(lodash.prototype[symIterator]=wrapperToIterator);return lodash}();
root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(15),__webpack_require__(47)(module$jscomp$0))},function(module,__webpack_exports__,__webpack_require__){function __awaiter(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new (P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}
function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})}function __generator(thisArg,body){function verb(n){return function(v){return step([n,v])}}function step(op){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,y&&(t=op[0]&2?y["return"]:op[0]?y["throw"]||((t=y["return"])&&t.call(y),
0):y.next)&&!(t=t.call(y,op[1])).done)return t;if(y=0,t)op=[op[0]&2,t.value];switch(op[0]){case 0:case 1:t=op;break;case 4:return _.label++,{value:op[1],done:!1};case 5:_.label++;y=op[1];op=[0];continue;case 7:op=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=0<t.length&&t[t.length-1])&&(6===op[0]||2===op[0])){_=0;continue}if(3===op[0]&&(!t||op[1]>t[0]&&op[1]<t[3]))_.label=op[1];else if(6===op[0]&&_.label<t[1])_.label=t[1],t=op;else if(t&&_.label<t[2])_.label=t[2],_.ops.push(op);else{t[2]&&
_.ops.pop();_.trys.pop();continue}}op=body.call(thisArg,_)}catch(e){op=[6,e],y=0}finally{f=t=0}if(op[0]&5)throw op[1];return{value:op[0]?op[1]:void 0,done:!0}}var _={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},f,y,t,g;return g={next:verb(0),"throw":verb(1),"return":verb(2)},"function"===typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g}function __spreadArrays(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;s=Array(s);var k=0;for(i=0;i<
il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)s[k]=a[j];return s}__webpack_require__.d(__webpack_exports__,"a",function(){return __assign});__webpack_require__.d(__webpack_exports__,"b",function(){return __awaiter});__webpack_require__.d(__webpack_exports__,"c",function(){return __generator});__webpack_require__.d(__webpack_exports__,"d",function(){return __spreadArrays});var __assign=function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];
for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p])}return t};return __assign.apply(this,arguments)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"d",function(){return peekArray});__webpack_require__.d(__webpack_exports__,"a",function(){return addRangeToArray});__webpack_require__.d(__webpack_exports__,"b",function(){return clearArray});__webpack_require__.d(__webpack_exports__,"c",function(){return insertIntoArray});__webpack_require__(3);
var peekArray=function(arr){return arr.length?arr[arr.length-1]:null},addRangeToArray=function(arr,itemsToAdd){arr.push.apply(arr,itemsToAdd)},clearArray=function(arr){arr.length=0},insertIntoArray=function(arr,index,item){arr.splice(index,0,item)}},function(module,__webpack_exports__,__webpack_require__){module=function(){function SelectionPoint(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=x;this.y=y}SelectionPoint.equal=function(p1,p2){return p1.x===p2.x&&p1.y===p2.y};SelectionPoint.notEqual=
function(p1,p2){return p1!==p2};SelectionPoint.divide=function(p,f){var pt=new SelectionPoint;f&&(pt.x=p.x/f,pt.y=p.y/f);return pt};SelectionPoint.multiply=function(p,f){var pt=new SelectionPoint;pt.init(p.x*f,p.y*f);return pt};SelectionPoint.minus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x-p2.x,p1.y-p2.y);return pt};SelectionPoint.plus=function(p1,p2){var pt=new SelectionPoint;pt.init(p1.x+p2.x,p1.y+p2.y);return pt};SelectionPoint.distance=function(p1,p2){var w=p1.x-p2.x;p1=p1.y-p2.y;
return Math.sqrt(w*w+p1*p1)};SelectionPoint.prototype.init=function(px,py){this.x=px;this.y=py};SelectionPoint.prototype.initPoint=function(pt){this.x=pt.x;this.y=pt.y};SelectionPoint.prototype.add=function(p){this.x+=p.x;this.y+=p.y};SelectionPoint.prototype.sub=function(p){this.x-=p.x;this.y-=p.y};SelectionPoint.prototype.mul=function(f){this.x*=f;this.y*=f};SelectionPoint.prototype.div=function(f){f&&(this.x/=f,this.y/=f)};SelectionPoint.prototype.normalize=function(){var len=Math.sqrt(this.x*
this.x+this.y*this.y);return len?(this.x/=len,this.y/=len,!0):!1};SelectionPoint.prototype.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)};SelectionPoint.prototype.sqrLength=function(){return this.x*this.x+this.y*this.y};SelectionPoint.prototype.dot=function(p){return this.x*p.x+this.y*p.y};SelectionPoint.prototype.proj=function(dir){var dot=this.x*dir.x+this.y*dir.y;this.x=dot*dir.x;this.y=dot*dir.y};return SelectionPoint}();__webpack_exports__.a=module},function(module,__webpack_exports__,
__webpack_require__){__webpack_require__(18);var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);__webpack_require__.d(__webpack_exports__,"a",function(){return _Point__WEBPACK_IMPORTED_MODULE_1__.a});var _Rect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52);__webpack_require__.d(__webpack_exports__,"b",function(){return _Rect__WEBPACK_IMPORTED_MODULE_2__.a});__webpack_require__(53);__webpack_require__(80)},function(module,__webpack_exports__,__webpack_require__){module=function(){function SearchMode(){this.e_case_sensitive=
1;this.e_whole_word=2;this.e_search_up=4;this.e_page_stop=8;this.e_highlight=16;this.e_ambient_string=32;this.e_regex=64;this.e_wild_card=128}SearchMode.CASE_SENSITIVE=1;SearchMode.WHOLE_WORD=2;SearchMode.SEARCH_UP=4;SearchMode.PAGE_STOP=8;SearchMode.HIGHLIGHT=16;SearchMode.AMBIENT_STRING=32;SearchMode.REGEX=64;SearchMode.WILD_CARD=128;return SearchMode}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"b",function(){return PageRotation});
__webpack_require__.d(__webpack_exports__,"a",function(){return AnnotationAppearanceStates});__webpack_require__.d(__webpack_exports__,"c",function(){return SnapModes});__webpack_require__.d(__webpack_exports__,"d",function(){return arcDrawModes});__webpack_require__(87);var PageRotation;(function(PageRotation){PageRotation[PageRotation.E_0=0]="E_0";PageRotation[PageRotation.E_90=1]="E_90";PageRotation[PageRotation.E_180=2]="E_180";PageRotation[PageRotation.E_270=3]="E_270";PageRotation[PageRotation.e_0=
0]="e_0";PageRotation[PageRotation.e_90=1]="e_90";PageRotation[PageRotation.e_180=2]="e_180";PageRotation[PageRotation.e_270=3]="e_270"})(PageRotation||(PageRotation={}));var REVIEWSTATES;(function(REVIEWSTATES){REVIEWSTATES.ACCEPTED="Accepted";REVIEWSTATES.REJECTED="Rejected";REVIEWSTATES.CANCELLED="Cancelled";REVIEWSTATES.COMPLETED="Completed";REVIEWSTATES.NONE="None"})(REVIEWSTATES||(REVIEWSTATES={}));var MARKEDSTATES;(function(MARKEDSTATES){MARKEDSTATES.MARKED="Marked";MARKEDSTATES.UNMARKED="Unmarked"})(MARKEDSTATES||
(MARKEDSTATES={}));var STATEMODEL;(function(STATEMODEL){STATEMODEL.MARKED="Marked";STATEMODEL.REVIEW="Review"})(STATEMODEL||(STATEMODEL={}));var AnnotationAppearanceStates;(function(AnnotationAppearanceStates){AnnotationAppearanceStates.NORMAL="Normal";AnnotationAppearanceStates.ROLLOVER="Rollover"})(AnnotationAppearanceStates||(AnnotationAppearanceStates={}));var FontStyles;(function(FontStyles){FontStyles.BOLD="BOLD";FontStyles.ITALIC="ITALIC";FontStyles.UNDERLINE="UNDERLINE"})(FontStyles||(FontStyles=
{}));var SnapModes={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},arcDrawModes={RANDOM_ARCS:"randomArcs",EQUAL_ARCS:"equalArcs"}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return correctPrecision});var correctPrecision=function(input,precision){void 0===precision&&(precision=1E6);return Math.round((input+
Number.EPSILON)*precision)/precision}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"e",function(){return ie});__webpack_require__.d(__webpack_exports__,"g",function(){return isEdge});__webpack_require__.d(__webpack_exports__,"c",function(){return edgeVersion});__webpack_require__.d(__webpack_exports__,"h",function(){return isFirefox});__webpack_require__.d(__webpack_exports__,"d",function(){return firefoxVersion});__webpack_require__.d(__webpack_exports__,
"f",function(){return isChrome});__webpack_require__.d(__webpack_exports__,"a",function(){return chromeVersion});__webpack_require__.d(__webpack_exports__,"i",function(){return isMobileDevice});__webpack_require__.d(__webpack_exports__,"b",function(){return disableFormCharacterProcessing});__webpack_require__(0);var exports="undefined"===typeof window?self:window,ie=function(){var ua=navigator.userAgent.toLowerCase();return(ua=/(msie) ([\w.]+)/.exec(ua)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(ua))?
parseInt(ua[2],10):ua}(),isChrome=function(){var opera=exports.navigator.userAgent.match(/OPR/),maxthon=exports.navigator.userAgent.match(/Maxthon/),edge=exports.navigator.userAgent.match(/Edge/);return exports.navigator.userAgent.match(/Chrome\/(.*?) /)&&!opera&&!maxthon&&!edge}(),chromeVersion=function(){if(!isChrome)return null;var match=exports.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return match?parseInt(match[1],10):match}(),isEdge=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&
exports.navigator.userAgent.match(/Chrome\/(.*?) /),edgeVersion=function(){if(!isEdge)return null;var match=exports.navigator.userAgent.match(/Edg\/([0-9]+)\./);return match?parseInt(match[1],10):match}();module=/iPad|iPhone|iPod/.test(exports.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;(function(){var match=exports.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return match?parseFloat(match[1]):match})();/^((?!chrome|android).)*safari/i.test(exports.navigator.userAgent)||
/^((?!chrome|android).)*$/.test(exports.navigator.userAgent);var isFirefox=exports.navigator.userAgent.match(/Firefox/),firefoxVersion=function(){if(!isFirefox)return null;var match=exports.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return match?parseInt(match[1],10):match}(),isMobileDevice=!(ie||!/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent)&&!module);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);var disableFormCharacterProcessing=-1<exports.navigator.userAgent.indexOf("Android");
/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(exports.navigator.userAgent);exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)&&parseInt(exports.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],10);-1<exports.navigator.userAgent.indexOf("Edge/16")||exports.navigator.userAgent.indexOf("MSAppHost")},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return Analytics});var tslib__WEBPACK_IMPORTED_MODULE_0__=
__webpack_require__(3),uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var r=16*Math.random()|0;return("x"==c?r:r&3|8).toString(16)})},Analytics=function(){function Analytics(queueTimer){var _this=this;this.eventStore=[];this.QUEUE_TIMER=queueTimer||5E3;this.key="";this.isSuppressed=!1;this.sessionId=uuidv4();this.intervalID=setInterval(function(){_this.sendRequest()},this.QUEUE_TIMER)}Analytics.prototype.suppress=function(){this.isSuppressed=!0};Analytics.prototype.sendRequest=
function(){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.b)(this,void 0,void 0,function(){var eventBuffer,response;return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(this,function(_a){switch(_a.label){case 0:if(!(0<this.eventStore.length))return[3,2];eventBuffer=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.d)(this.eventStore);this.eventStore=[];return[4,this.postEvents(eventBuffer)];case 1:response=_a.sent(),200!==response.status&&(this.eventStore=this.eventStore.concat(eventBuffer)),_a.label=2;
case 2:return[2]}})})};Analytics.prototype.postEvents=function(events){return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.b)(this,void 0,void 0,function(){var response;return Object(tslib__WEBPACK_IMPORTED_MODULE_0__.c)(this,function(_a){switch(_a.label){case 0:return _a.trys.push([0,2,,3]),[4,fetch("https://pi.pdfjs.express/events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({licenseKey:this.key,sessionId:this.sessionId,
events:events},this.viewOnly&&{productVersion:0}))})];case 1:return response=_a.sent(),[2,response];case 2:return _a.sent(),[2,{status:400}];case 3:return[2]}})})};Analytics.prototype.startSession=function(key,viewOnly){void 0===viewOnly&&(viewOnly=!1);this.isSuppressed||(this.key=key,this.viewOnly=viewOnly,key=window.sessionStorage,(viewOnly=key.getItem("pdfjs-session"))?this.sessionId=viewOnly:key.setItem("pdfjs-session",this.sessionId))};Analytics.prototype.pushEvent=function(event){this.isSuppressed||
this.eventStore.push(event)};Analytics.prototype.cancelRequests=function(){clearInterval(this.intervalID)};Analytics.Actions={annotationCreated:function(annotType){return{action:"create",type:"annotation",data:{subType:annotType}}},stampAnnotationCreated:function(){return{action:"create",type:"annotation",data:{subType:"Stamp"}}},expressLoaded:function(version){return{action:"load",type:"viewer",data:{subType:version}}},documentLoaded:function(_a){var _b,pageCount=_a.pageCount,successfulLoad=_a.successfulLoad;
_a=_a.fileName;return{action:"load",type:"document",data:{subType:_a?null===(_b=_a.match(/\.[0-9a-z]+$/i))||void 0===_b?void 0:_b[0]:null,pageCount:pageCount,value:successfulLoad?1:0}}},formFieldFilled:function(fieldType){return{action:"fill",type:"field",data:{subType:fieldType}}},searchQuery:function(searchLocation,amountOfResults){return{action:"search",type:"searchQuery",data:{subType:searchLocation,value:amountOfResults}}}};return Analytics}();__webpack_exports__.b=new Analytics},function(module,
__webpack_exports__,__webpack_require__){var _selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(14),_Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(13),_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5);module=function(){function Quad(){this.y4=this.x4=this.y3=this.x3=this.y2=this.x2=this.y1=this.x1=0}Quad._merge=function(des_q,src_q,src_qn,check,tra_thresh){if(check&&1!==src_qn)return!1;if(!src_qn)return!0;var d1=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;
d1.init(0,0);var d2=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;d2.init(0,0);var avg_x=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avg_x.init(0,0);var avg_y=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avg_y.init(0,0);for(var i=0;4>i;++i){Quad.getSideVec(d1,des_q,i);if(!d1.normalize()&&check)return!1;i?2===i?avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_x,d1):1===i?avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_y,
d1):3===i&&(avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_y,d1)):avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_x,d1);for(var _src_q=Array(8),j=0;j<src_qn;++j){for(var k=0;8>k;++k)_src_q[k]=src_q[8*j+k];Quad.getSideVec(d2,_src_q,i);if(!d2.normalize()&&check)return!1;i?2===i?avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_x,d2):1===i?avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_y,
d2):3===i&&(avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.minus(avg_y,d2)):avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.plus(avg_x,d2)}if(check&&Math.abs(d1.dot(d2))<Quad.cos_thresh)return!1}avg_x=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.divide(avg_x,1+src_qn);avg_y=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.divide(avg_y,1+src_qn);if(!avg_x.normalize()&&check||!avg_y.normalize()&&check||check&&!Quad.mergeable(des_q,src_q,
avg_x,avg_y,tra_thresh,tra_thresh/10))return!1;Quad.inflate(des_q,src_q,src_qn,avg_x,avg_y);return!0};Quad.getSideVec=function(vec,quad,start_v){var end_v=(start_v+1)%4;vec.x=quad[2*end_v]-quad[2*start_v];vec.y=quad[2*end_v+1]-quad[2*start_v+1]};Quad.mergeable=function(quad1,quad2,x_proj,y_proj,x_thresh,y_thresh){var p1=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;p1.init(quad1[0],quad1[1]);var p2=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;p2.init(quad1[2],
quad1[3]);var q1=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;q1.init(quad2[0],quad2[1]);var q2=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;q2.init(quad2[2],quad2[3]);var a=p1.dot(x_proj),b=p2.dot(x_proj),c=q1.dot(x_proj);x_proj=q2.dot(x_proj);if(a>b){var temp=a;a=b;b=temp}c>x_proj&&(temp=c,c=x_proj,x_proj=temp);if(c-b>x_thresh||a-x_proj>x_thresh)return!1;p1.x=quad1[2];p1.y=quad1[3];p2.x=quad1[4];p2.y=quad1[5];q1.x=quad2[2];q1.y=quad2[3];q2.x=quad2[4];q2.y=
quad2[5];a=p1.dot(y_proj);b=p2.dot(y_proj);c=q1.dot(y_proj);x_proj=q2.dot(y_proj);a>b&&(temp=a,a=b,b=temp);c>x_proj&&(temp=c,c=x_proj,x_proj=temp);return!(Math.abs(a-c)>y_thresh||Math.abs(b-x_proj)>y_thresh)};Quad.inflate=function(quad,sqs,sqn,avx,avy){var sheared=!1,avx_=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avx_.init(1,0);var avy_=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;avy_.init(0,1);if(1E-4<=Math.abs(avx.x-1)||1E-4<=Math.abs(avx.y-0)&&1E-4<=
Math.abs(avy.x-0)||1E-4<=Math.abs(avy.y-1)){sheared=!0;var M=new _Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;M.initCoordinates(avx.x,avy.x,avx.y,avy.y,0,0);M=M.inverse();avx_.x=M.m_a;avx_.y=M.m_b;avy_.x=M.m_c;avy_.y=M.m_d}M=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__.a.MAX;for(var max_x=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,min_y=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__.a.MAX,max_y=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,this_x,this_y,
o_min_x=0,o_min_y=0,i=0;4>i;++i){var v=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;v.init(quad[2*i],quad[2*i+1]);sheared?(this_x=v.dot(avx_),this_y=v.dot(avy_)):(this_x=v.x,this_y=v.y);i?(M>this_x&&(M=this_x,o_min_x=v.x),max_x<this_x&&(max_x=this_x),min_y>this_y&&(min_y=this_y,o_min_y=v.y),max_y<this_y&&(max_y=this_y)):(M=max_x=this_x,min_y=max_y=this_y,o_min_x=v.x,o_min_y=v.y);for(v=0;v<sqn;++v){var vv=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;vv.init(sqs[8*
v+2*i],sqs[8*v+2*i+1]);sheared?(this_x=vv.dot(avx_),this_y=vv.dot(avy_)):(this_x=vv.x,this_y=vv.y);M>this_x&&(M=this_x,o_min_x=vv.x);max_x<this_x&&(max_x=this_x);min_y>this_y&&(min_y=this_y,o_min_y=vv.y);max_y<this_y&&(max_y=this_y)}}sqs=new _selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;sqs.init(o_min_x,o_min_y);avx_=sqs.dot(avx);sqn=sqs.dot(avy);avx_=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.multiply(avx,M-avx_);sqn=_selectionInfo_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a.multiply(avy,
min_y-sqn);sqs.x+=avx_.x+sqn.x;sqs.y+=avx_.y+sqn.y;sheared?(sheared=avx.x,sqs=avy.x,avx=avx.y,avy=avy.y,quad[0]=sheared*M+sqs*min_y,quad[1]=avx*M+avy*min_y,quad[2]=sheared*max_x+sqs*min_y,quad[3]=avx*max_x+avy*min_y,quad[4]=sheared*max_x+sqs*max_y,quad[5]=avx*max_x+avy*max_y,quad[6]=sheared*M+sqs*max_y,quad[7]=avx*M+avy*max_y):(quad[0]=M,quad[1]=min_y,quad[2]=max_x,quad[3]=min_y,quad[4]=max_x,quad[5]=max_y,quad[6]=M,quad[7]=max_y)};Quad.prototype._init=function(_x1,_y1,_x2,_y2,_x3,_y3,_x4,_y4){this.x1=
_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2;this.x3=_x3;this.y3=_y3;this.x4=_x4;this.y4=_y4};Quad.prototype._setCoordinates=function(_x1,_y1,_x2,_y2,_x3,_y3,_x4,_y4){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2;this.x3=_x3;this.y3=_y3;this.x4=_x4;this.y4=_y4};Quad.prototype._setQuad=function(quad){8===quad.length&&(this.x1=quad[0],this.y1=quad[1],this.x2=quad[2],this.y2=quad[3],this.x3=quad[4],this.y3=quad[5],this.x4=quad[6],this.y4=quad[7])};Quad.prototype.getPoints=function(){return{x1:this.x1,y1:this.y1,
x2:this.x2,y2:this.y2,x3:this.x3,y3:this.y3,x4:this.x4,y4:this.y4}};Quad.prototype.getNormalizedPoints=function(){var quad=this.getPoints(),minX=Math.min(quad.x1,quad.x2,quad.x3,quad.x4),maxX=Math.max(quad.x1,quad.x2,quad.x3,quad.x4),minY=Math.min(quad.y1,quad.y2,quad.y3,quad.y4),maxY=Math.max(quad.y1,quad.y2,quad.y3,quad.y4);quad.x1=minX;quad.x2=maxX;quad.x3=maxX;quad.x4=minX;quad.y1=minY;quad.y2=minY;quad.y3=maxY;quad.y4=maxY;return quad};Quad.cos_thresh=Math.cos(3.14159265/180*2);return Quad}();
__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _Point2D__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(19);module=function(){function Matrix2D(m_a,m_b,m_c,m_d,m_h,m_v){void 0===m_a&&(m_a=0);void 0===m_b&&(m_b=0);void 0===m_c&&(m_c=0);void 0===m_d&&(m_d=0);void 0===m_h&&(m_h=0);void 0===m_v&&(m_v=0);this.m_a=m_a;this.m_b=m_b;this.m_c=m_c;this.m_d=m_d;this.m_h=m_h;this.m_v=m_v;"undefined"!==typeof m_a&&(this.m_a=m_a,"undefined"!==typeof m_b&&(this.m_b=m_b,
"undefined"!==typeof m_c&&(this.m_c=m_c,"undefined"!==typeof m_d&&(this.m_d=m_d,"undefined"!==typeof m_h&&(this.m_h=m_h,"undefined"!==typeof m_v&&(this.m_v=m_v))))))}Matrix2D.rotationMatrix=function(angle){var c=Math.cos(angle);angle=Math.sin(angle);1E-7>Math.abs(angle)&&(angle=0);1E-7>Math.abs(c)&&(c=0);var tmpMatrix2D=new Matrix2D;tmpMatrix2D.initCoordinates(c,-angle,angle,c,0,0);return tmpMatrix2D};Matrix2D.prototype.initMatrix=function(m){this.m_a=m.m_a;this.m_b=m.m_b;this.m_c=m.m_c;this.m_d=
m.m_d;this.m_h=m.m_h;this.m_v=m.m_v};Matrix2D.prototype.initCoordinates=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=d;this.m_h=h;this.m_v=v};Matrix2D.prototype.set=function(a,b,c,d,h,v){this.m_a=a;this.m_b=b;this.m_c=c;this.m_d=d;this.m_h=h;this.m_v=v};Matrix2D.prototype.inverse=function(){var inv=new Matrix2D,f1=this.m_a*this.m_d-this.m_b*this.m_c;if(!f1)return inv;inv.m_a=this.m_d/f1;inv.m_c=-this.m_c/f1;inv.m_h=(this.m_c*this.m_v-this.m_h*this.m_d)/f1;inv.m_b=-this.m_b/f1;inv.m_d=
this.m_a/f1;inv.m_v=-(this.m_a*this.m_v-this.m_h*this.m_b)/f1;return inv};Matrix2D.prototype.mult=function(point){var in_x=point.x;point.x=point.x*this.m_a+point.y*this.m_c+this.m_h;point.y=in_x*this.m_b+point.y*this.m_d+this.m_v;return point};Matrix2D.prototype.concat=function(other){var a1=this.m_a,b1=this.m_b,c1=this.m_c,d1=this.m_d;this.m_a=other.m_a*a1+other.m_b*c1;this.m_b=other.m_a*b1+other.m_b*d1;this.m_c=other.m_c*a1+other.m_d*c1;this.m_d=other.m_c*b1+other.m_d*d1;this.m_h=other.m_h*a1+other.m_v*
c1+this.m_h;this.m_v=other.m_h*b1+other.m_v*d1+this.m_v;return this};Matrix2D.prototype.equals=function(other){return this.m_a===other.m_a&&this.m_b===other.m_b&&this.m_c===other.m_c&&this.m_d===other.m_d&&this.m_h===other.m_h&&this.m_v===other.m_v};Matrix2D.prototype.transformQuad=function(quad){var point1=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[0],quad[1]),point2=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[2],quad[3]),point3=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[4],quad[5]),
point4=new _Point2D__WEBPACK_IMPORTED_MODULE_0__.a(quad[6],quad[7]);point1=this.mult(point1);point2=this.mult(point2);point3=this.mult(point3);point4=this.mult(point4);quad[0]=point1.x;quad[1]=point1.y;quad[2]=point2.x;quad[3]=point2.y;quad[4]=point3.x;quad[5]=point3.y;quad[6]=point4.x;quad[7]=point4.y};Matrix2D.prototype.transformBbox=function(rect){var quad=Array(8);quad[0]=rect.x1;quad[1]=rect.y1;quad[2]=rect.x2;quad[3]=rect.y1;quad[4]=rect.x2;quad[5]=rect.y2;quad[6]=rect.x1;quad[7]=rect.y2;this.transformQuad(quad);
rect.setFromQuad(quad)};return Matrix2D}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return doubleData});var doubleData={MAX:1.79769E308,MIN:-1.79769E308}},function(module,exports){exports=function(){return this}();try{exports=exports||(new Function("return this"))()}catch(e){"object"===typeof window&&(exports=window)}module.exports=exports},function(module,__webpack_exports__,__webpack_require__){module=
function(){function ResultCode(){}ResultCode.DONE=0;ResultCode.PAGE=1;ResultCode.FOUND=2;ResultCode.e_done=0;ResultCode.e_page=1;ResultCode.e_found=2;return ResultCode}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_Matrix__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(18);module=function(){function Point(x,y){void 0===x&&(x=0);void 0===y&&(y=0);x="string"===typeof x?parseFloat(x):x;y="string"===
typeof y?parseFloat(y):y;this.matrix=new _Matrix__WEBPACK_IMPORTED_MODULE_1__.a(3,1);this.matrix.set(0,0,x);this.matrix.set(1,0,y);this.matrix.set(2,0,1)}Object.defineProperty(Point,"Origin",{get:function(){return new Point},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"X",{get:function(){return this.matrix.get(0,0)},set:function(val){this.matrix.set(0,0,val);delete this.cachedLength},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"x",{get:function(){return this.X},
set:function(val){this.X=val},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"Y",{get:function(){return this.matrix.get(1,0)},set:function(val){this.matrix.set(1,0,val);delete this.cachedLength},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"y",{get:function(){return this.Y},set:function(val){this.Y=val},enumerable:!1,configurable:!0});Object.defineProperty(Point.prototype,"Length",{get:function(){this.cachedLength||(this.cachedLength=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(Math.sqrt(this.X*
this.X+this.Y*this.Y)));return this.cachedLength},enumerable:!1,configurable:!0});Point.prototype.getX=function(){return this.X};Point.prototype.getY=function(){return this.Y};Point.prototype.add=function(vec){return new Point(Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X+vec.X),Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y+vec.Y))};Point.prototype.subtract=function(vec){return new Point(Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X-vec.X),Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y-
vec.Y))};Point.prototype.dot=function(vec){return Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X*vec.X+this.Y*vec.Y)};Point.prototype.cross=function(vec){var a=this.matrix,b=vec.matrix;vec=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(a.get(1,0)*b.get(2,0)-a.get(2,0)*b.get(1,0));var y=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(a.get(2,0)*b.get(0,0)-a.get(0,0)*b.get(2,0));a=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(a.get(0,0)*b.get(1,0)-a.get(1,0)*b.get(0,0));return{X:vec,
Y:y,Z:a}};Point.prototype.distance=function(vec){return vec.subtract(this).Length};Point.prototype.angle=function(vec,inRadians){void 0===inRadians&&(inRadians=!1);var a=this.Length,b=vec.Length;vec=this.dot(vec);a=Math.acos(vec/(a*b));return inRadians?a:180/Math.PI*a};Point.prototype.normalize=function(){var length=this.Length;return 0===length?new Point:new Point(Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X/length),Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y/length))};Point.prototype.reverse=
function(){return new Point(-this.X,-this.Y)};Point.prototype.perpendicular=function(){return new Point(this.Y,-this.X)};Point.prototype.translate=function(x,y){this.X=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X+x);this.Y=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y+y)};Point.prototype.rotate=function(angle,inRadians,withRespectTo){void 0===inRadians&&(inRadians=!1);void 0===withRespectTo&&(withRespectTo=Point.Origin);angle=inRadians?angle:Math.PI/180*angle;withRespectTo=
Point.Origin.subtract(withRespectTo);this.translate(withRespectTo.X,withRespectTo.Y);inRadians=this.X*Math.sin(angle)+this.Y*Math.cos(angle);this.X=this.X*Math.cos(angle)-this.Y*Math.sin(angle);this.Y=inRadians;this.translate(-withRespectTo.X,-withRespectTo.Y)};Point.prototype.scale=function(s){this.X=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.X*s);this.Y=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(this.Y*s)};Point.prototype.toMatrix=function(){for(var _this=this,vecs=[],_i=0;_i<
arguments.length;_i++)vecs[_i]=arguments[_i];var result=new _Matrix__WEBPACK_IMPORTED_MODULE_1__.a(3,vecs.length+1);result.set(0,0,this.X);result.set(1,0,this.Y);result.set(2,0,this.matrix.get(2,0));var col=1;vecs.forEach(function(v){for(var row=0;row<_this.matrix.Rows;row++)result.set(col,row,v.matrix.get(row,0));col++});return result};Point.prototype.transform=function(transform){var pMat=this.toMatrix();pMat=transform.multiply(pMat);transform=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(pMat.get(0,
0));pMat=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(pMat.get(1,0));this.X=transform;this.Y=pMat};Point.prototype.equals=function(vec){return 1E-5>Math.abs(this.X-vec.X)&&1E-5>Math.abs(this.Y-vec.Y)};Point.prototype.isParallelTo=function(vec){var aNorm=1===this.Length?this:this.normalize();vec=1===vec.Length?vec:vec.normalize();return aNorm.equals(vec)};Point.prototype.clone=function(){return new Point(this.X,this.Y)};Point.prototype.equalTo=function(vec){return this.equals(vec)};Point.prototype.toString=
function(){return"[Point: x="+this.x+" y="+this.y+"]"};Point.prototype.toJSON=function(){return{x:this.x,y:this.y}};return Point}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var _MathUtils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(9),_Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17);module=function(){function Matrix(rows,columns){void 0===rows&&(rows=3);void 0===columns&&(columns=3);this.rows=rows;this.columns=columns;this._mat=[];var count=
rows*columns,row=0,isSymmetrical=rows===columns;--columns;for(var i=0;i<count;i++){var col=i%rows;this._mat.push(isSymmetrical&&col===row?1:0);col===columns&&row++}}Object.defineProperty(Matrix,"Identity",{get:function(){return new Matrix},enumerable:!1,configurable:!0});Matrix.multiply=function(left,right){if(left.Columns!==right.Rows)throw"The columns of the left matrix ("+left.Columns+") must match the number of rows of the right matrix "+right.Rows+". Please check your matrix structures as there is a mismatch.";
for(var result=new Matrix(left.Rows,right.Columns),i=0;i<left.Rows;i++)for(var j=0;j<right.Columns;j++){for(var value=0,k=0;k<left.Columns;k++){var leftVal=left.get(i,k),rightVal=right.get(k,j);value+=leftVal*rightVal;value=Object(_MathUtils__WEBPACK_IMPORTED_MODULE_0__.a)(value)}result.set(i,j,value)}return result};Matrix.createTransformWithRespectTo=function(transforms,origin){void 0===origin&&(origin=_Point__WEBPACK_IMPORTED_MODULE_1__.a.Origin);var toOrigin=new Matrix;toOrigin.setTranslate(-origin.x,
-origin.y);var toPosition=new Matrix;toPosition.setTranslate(origin.x,origin.y);return transforms.reduce(function(prev,t){return prev.multiply(t)},toPosition).multiply(toOrigin)};Matrix.fromMatrix2D=function(mat2d){var mat=new Matrix;mat.setTranslate(mat2d.m_h,mat2d.m_v);mat.setScale(mat2d.m_a,mat2d.m_d);mat.setSkew(mat2d.m_b,mat2d.m_c);return mat};Object.defineProperty(Matrix.prototype,"Rows",{get:function(){return this.rows},enumerable:!1,configurable:!0});Object.defineProperty(Matrix.prototype,
"Columns",{get:function(){return this.columns},enumerable:!1,configurable:!0});Matrix.prototype.get=function(row,column){return this._mat[this.Columns*row+column]};Matrix.prototype.set=function(row,column,val){this._mat[this.Columns*row+column]=val};Matrix.prototype.setScale=function(sx,sy){this.setScaleX(sx);this.setScaleY(sy)};Matrix.prototype.setScaleX=function(sx){this.set(0,0,sx)};Matrix.prototype.setScaleY=function(sy){this.set(1,1,sy)};Matrix.prototype.setTranslate=function(tx,ty){this.setTranslateX(tx);
this.setTranslateY(ty)};Matrix.prototype.setTranslateX=function(tx){this.set(0,2,tx)};Matrix.prototype.setTranslateY=function(ty){this.set(1,2,ty)};Matrix.prototype.setSkew=function(sx,sy){this.setSkewX(sx);this.setSkewY(sy)};Matrix.prototype.setSkewX=function(sx){this.set(0,1,sx)};Matrix.prototype.setSkewY=function(sy){this.set(1,0,sy)};Matrix.prototype.setRotation=function(angle,inRadians){void 0===inRadians&&(inRadians=!1);inRadians=inRadians?angle:Math.PI/180*angle;angle=Math.cos(inRadians);inRadians=
Math.sin(inRadians);this.set(0,0,angle);this.set(1,0,inRadians);this.set(0,1,-inRadians);this.set(1,1,angle)};Matrix.prototype.multiply=function(rightMatrix){return Matrix.multiply(this,rightMatrix)};Matrix.prototype.transpose=function(){for(var i=0;i<this.Columns;i++)for(var j=i;j<this.Rows;j++)if(i!==j){var a=this.get(i,j),b=this.get(j,i);this.set(i,j,b);this.set(j,i,a)}};Matrix.prototype.toTransform=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)]};Matrix.prototype.clone=function(){var clone=new Matrix(this.Rows,this.Columns);clone._mat=[].concat(this._mat);return clone};Matrix.prototype.determinant=function(){if(3!==this.Rows||3!==this.Columns)throw"Only 3x3 matrices are currently supported";var x11=this.get(0,0),x12=this.get(0,1),x13=this.get(0,2),x21=this.get(1,0),x22=this.get(1,1),x23=this.get(1,2),x31=this.get(2,0),x32=this.get(2,1),x33=this.get(2,2);return x11*x22*x33+x12*x23*x31+x13*x21*x32-x31*x22*x13-x32*x23*x11-x33*x21*x12};Matrix.prototype.inverse=
function(){if(this.Rows!==this.Columns)throw"Matrix should be symmetrical to find an inverse.";for(var reference=this.clone(),inverse=Matrix.Identity,i=0;i<reference.columns;i++){var refValue=reference.get(i,i);if(0===refValue){var modIndex=-1;for(refValue=0;refValue<reference.rows;refValue++)if(i!==refValue&&0!==reference.get(refValue,i)){modIndex=refValue;break}if(-1===modIndex)return null;for(refValue=0;refValue<reference.columns;refValue++){var refTargetRowVal=reference.get(i,refValue),refModRowVal=
reference.get(modIndex,refValue),factor=1;modIndex===i&&1!==refModRowVal&&(factor=1/refModRowVal);var invTargetRowVal=inverse.get(i,refValue),invModRowVal=inverse.get(modIndex,refValue);reference.set(i,refValue,(refTargetRowVal+refModRowVal)*factor);inverse.set(i,refValue,(invTargetRowVal+invModRowVal)*factor)}refValue=reference.get(i,i)}if(1!==refValue)for(factor=1/refValue,refValue=0;refValue<reference.columns;refValue++)modIndex=reference.get(i,refValue)*factor,refTargetRowVal=inverse.get(i,refValue)*
factor,reference.set(i,refValue,modIndex),inverse.set(i,refValue,refTargetRowVal);for(refValue=0;refValue<reference.rows;refValue++)if(i!==refValue&&(factor=reference.get(refValue,i),0!==factor))for(factor=1/factor,refModRowVal=0;refModRowVal<reference.columns;refModRowVal++)invTargetRowVal=reference.get(i,refModRowVal),invModRowVal=inverse.get(i,refModRowVal),modIndex=reference.get(refValue,refModRowVal)*factor,refTargetRowVal=inverse.get(refValue,refModRowVal)*factor,reference.set(refValue,refModRowVal,
modIndex-invTargetRowVal),inverse.set(refValue,refModRowVal,refTargetRowVal-invModRowVal)}for(i=0;i<reference.rows;i++)for(factor=reference.get(i,i),refValue=0;refValue<reference.columns;refValue++)modIndex=inverse.get(i,refValue)/factor,inverse.set(i,refValue,modIndex);return inverse};return Matrix}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(x,y){void 0===x&&(x=0);void 0===y&&(y=0);this.x=x;this.y=y}}();__webpack_exports__.a=
module},function(module,__webpack_exports__,__webpack_require__){var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(14);module=function(){function SelectionRect(){this.y2=this.x2=this.y1=this.x1=0}SelectionRect.prototype.initCoordinates=function(_x1,_y1,_x2,_y2){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2};SelectionRect.prototype.initRect=function(rect){this.x1=rect.x1;this.y1=rect.y1;this.x2=rect.x2;this.y2=rect.y2};SelectionRect.prototype.normalize=function(){if(this.x1>this.x2){var temp=
this.x1;this.x1=this.x2;this.x2=temp}this.y1>this.y2&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};SelectionRect.prototype.set=function(_x1,_y1,_x2,_y2){this.x1=_x1;this.y1=_y1;this.x2=_x2;this.y2=_y2};SelectionRect.prototype.notIntersect=function(r){return this.x2<r.x1||this.x1>r.x2||this.y2<r.y1||this.y1>r.y2};SelectionRect.prototype.width=function(){var r=this.x2-this.x1;return 0>r?-r:r};SelectionRect.prototype.height=function(){var r=this.y2-this.y1;return 0>r?-r:r};SelectionRect.prototype.setFromQuad=
function(q){for(var min_x=1.79769E308,max_x=_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,min_y=1.79769E308,max_y=_constants__WEBPACK_IMPORTED_MODULE_0__.a.MIN,i=0;4>i;++i){var x=q[2*i],y=q[2*i+1];min_x=Math.min(min_x,x);max_x=Math.max(max_x,x);min_y=Math.min(min_y,y);max_y=Math.max(max_y,y)}this.x1=min_x;this.y1=min_y;this.x2=max_x;this.y2=max_y};SelectionRect.prototype.intersectRect=function(rect1,rect2){if(rect1.x1<rect1.x2){var r1x1=rect1.x1;var r1x2=rect1.x2}else r1x1=rect1.x2,r1x2=rect1.x1;
if(rect1.y1<rect1.y2){var r1y1=rect1.y1;rect1=rect1.y2}else r1y1=rect1.y2,rect1=rect1.y1;if(rect2.x1<rect2.x2){var r2x1=rect2.x1;var r2x2=rect2.x2}else r2x1=rect2.x2,r2x2=rect2.x1;if(rect2.y1<rect2.y2){var r2y1=rect2.y1;rect2=rect2.y2}else r2y1=rect2.y2,rect2=rect2.y1;if(r1x2<r2x1||r2x2<r1x1||rect1<r2y1||rect2<r1y1)return this.x1=this.x2=this.y1=this.y2=0,!1;this.x1=r1x1<r2x1?r2x1:r1x1;this.x2=r1x2<r2x2?r1x2:r2x2;this.y1=r1y1<r2y1?r2y1:r1y1;this.y2=rect1<rect2?rect1:rect2;return this.x1===this.x2||
this.y1===this.y2?(this.x1=this.x2=this.y1=this.y2=0,!1):!0};SelectionRect.prototype.inflateSquare=function(amount){this._inflate(amount,amount)};SelectionRect.prototype._inflate=function(x,y){this.normalize();this.x1-=x;this.x2+=x;this.y1-=y;this.y2+=y};SelectionRect.prototype.union=function(rect1){rect1.x1<this.x1&&(this.x1=rect1.x1);rect1.y1<this.y1&&(this.y1=rect1.y1);rect1.x2>this.x2&&(this.x2=rect1.x2);rect1.y2>this.y2&&(this.y2=rect1.y2)};SelectionRect.prototype.contains=function(x,y){if(this.x1<
this.x2){if(x<this.x1||x>this.x2)return!1}else if(x<this.x2||x>this.x1)return!1;if(this.y1<this.y2){if(y<this.y1||y>this.y2)return!1}else if(y<this.y2||y>this.y1)return!1;return!0};return SelectionRect}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(resultCode,page_num,result_str,ambient_str,result_str_start,result_str_end){this.resultCode=resultCode;this.page_num=page_num;this.result_str=result_str;this.ambient_str=ambient_str;
this.result_str_start=result_str_start;this.result_str_end=result_str_end;this.resultCode=resultCode||0;this.page_num=page_num||0;this.result_str=result_str;this.ambient_str=ambient_str;this.result_str_start=result_str_start||0;this.result_str_end=result_str_end||0}}();__webpack_exports__.a=module},function(module,exports){function defaultSetTimout(){throw Error("setTimeout has not been defined");}function defaultClearTimeout(){throw Error("clearTimeout has not been defined");}function runTimeout(fun){if(cachedSetTimeout===
setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e$2){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=
clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e$3){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){currentQueue=queue;for(queue=[];++queueIndex<
len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1;len=queue.length}currentQueue=null;draining=!1;runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun;this.array=array}function noop(){}module=module.exports={};try{var cachedSetTimeout="function"===typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{var cachedClearTimeout="function"===typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e$1){cachedClearTimeout=defaultClearTimeout}var queue=
[],draining=!1,currentQueue,queueIndex=-1;module.nextTick=function(fun){var args=Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args));1!==queue.length||draining||runTimeout(drainQueue)};Item.prototype.run=function(){this.fun.apply(null,this.array)};module.title="browser";module.browser=!0;module.env={};module.argv=[];module.version="";module.versions={};module.on=noop;module.addListener=noop;module.once=noop;module.off=
noop;module.removeListener=noop;module.removeAllListeners=noop;module.emit=noop;module.prependListener=noop;module.prependOnceListener=noop;module.listeners=function(name){return[]};module.binding=function(name){throw Error("process.binding is not supported");};module.cwd=function(){return"/"};module.chdir=function(dir){throw Error("process.chdir is not supported");};module.umask=function(){return 0}},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=
__webpack_require__(0),_textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_SelectionRect__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(20),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(37);module=function(){function Word(){this._m_glyph_quads=[];this._m_CurNum=this.m_Pos=-1;this._m_quad=Array(8);this._m_next_word=null;this._m_Str="";this._m_Quads=null;this._m_Str_pos=0}Word.prototype.initDefault=function(){this._m_CurNum=this.m_Pos=-1};Word.prototype.initWord=
function(w){this.m_Pos=w.m_Pos;this._m_CurNum=w._m_CurNum;this._m_Str=w._m_Str;this._m_Quads=w._m_Quads;this._m_next_word=w._m_next_word};Word.prototype.equal=function(word){return this._m_CurNum===word._m_CurNum};Word.prototype.getNumGlyphs=function(){return this._m_glyph_quads.length};Word.prototype.getStringLen=function(){return this._m_Str.length};Word.prototype.getStringPos=function(){return this._m_Str_pos};Word.prototype._setStringPos=function(pos){this._m_Str_pos=pos};Word.prototype.getNextWord=
function(){return null==this._m_next_word?new Word:this._m_next_word};Word.prototype.getGlyphQuadInWordQuadFormat=function(glyph_idx,quad){if(this._m_glyph_quads&&this._m_glyph_quads[glyph_idx]){var x1=this._m_glyph_quads[glyph_idx][0],x2=this._m_glyph_quads[glyph_idx][2],y1=this._m_glyph_quads[glyph_idx][1];glyph_idx=this._m_glyph_quads[glyph_idx][5];y1<glyph_idx?(quad[1]=glyph_idx,quad[3]=glyph_idx,quad[5]=y1,quad[7]=y1):(quad[1]=y1,quad[3]=y1,quad[5]=glyph_idx,quad[7]=glyph_idx);quad[0]=x1;quad[2]=
x2;quad[4]=x2;quad[6]=x1}else Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("default","getGlyphQuadInWordQuadFormat: No glyph with index "+glyph_idx+" found.")};Word.prototype.getGlyphQuad=function(glyph_idx,quad){for(var i=0;8>i;i++)quad[i]=this._m_glyph_quads[glyph_idx][i]};Word.prototype.getQuad=function(quad){for(var i=0;8>i;i++)quad[i]=this._m_quad[i]};Word.prototype.getBBox=function(bbox){var rect=new _SelectionRect__WEBPACK_IMPORTED_MODULE_2__.a;rect.setFromQuad(this._m_quad);bbox[0]=rect.x1;
bbox[1]=rect.y1;bbox[2]=rect.x2;bbox[3]=rect.y2};Word.prototype.getCurrentNum=function(){return this._m_CurNum};Word.prototype._setCurrentNum=function(word_id){this._m_CurNum=this.m_Pos=word_id};Word.prototype.addChar=function(ch,ch_quad){var first_char=Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_Str);this._m_Str+=ch;for(var quad=Array(8),i=0;8>i;i++)quad[i]=ch_quad[i];for(i=0;i<ch.length;++i)this._m_glyph_quads.push(quad);if(first_char)for(i=0;8>i;i++)this._m_quad[i]=quad[i];
else _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__.a._merge(this._m_quad,quad,1,!1,0)};Word.prototype.setNextWord=function(next_word){this._m_next_word=next_word};Word.prototype.getString=function(){return this._m_Str};return Word}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getEnumerator});var ArrayEnumerator=function(){function ArrayEnumerator(array){this._array=array;this._index=-1;this.current=
null}ArrayEnumerator.prototype.moveNext=function(){this._index++;this.current=this._array[this._index];return this._index<this._array.length};ArrayEnumerator.prototype.reset=function(){this._index=-1;this.current=null};return ArrayEnumerator}(),getEnumerator=function(array){return new ArrayEnumerator(array)}},function(module,exports,__webpack_require__){(function(global){function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};
return 42===arr.foo()&&"function"===typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function createBuffer(that,length){if((Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823)<length)throw new RangeError("Invalid typed array length");Buffer.TYPED_ARRAY_SUPPORT?(that=new Uint8Array(length),that.__proto__=Buffer.prototype):(null===that&&(that=new Buffer(length)),that.length=length);return that}function Buffer(arg,encodingOrOffset,length){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof
Buffer))return new Buffer(arg,encodingOrOffset,length);if("number"===typeof arg){if("string"===typeof encodingOrOffset)throw Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,arg)}return from(this,arg,encodingOrOffset,length)}function from(that,value,encodingOrOffset,length){if("number"===typeof value)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&value instanceof ArrayBuffer){value.byteLength;if(0>
encodingOrOffset||value.byteLength<encodingOrOffset)throw new RangeError("'offset' is out of bounds");if(value.byteLength<encodingOrOffset+(length||0))throw new RangeError("'length' is out of bounds");value=void 0===encodingOrOffset&&void 0===length?new Uint8Array(value):void 0===length?new Uint8Array(value,encodingOrOffset):new Uint8Array(value,encodingOrOffset,length);Buffer.TYPED_ARRAY_SUPPORT?(that=value,that.__proto__=Buffer.prototype):that=fromArrayLike(that,value);return that}if("string"===
typeof value){length=that;that=encodingOrOffset;if("string"!==typeof that||""===that)that="utf8";if(!Buffer.isEncoding(that))throw new TypeError('"encoding" must be a valid string encoding');encodingOrOffset=byteLength(value,that)|0;length=createBuffer(length,encodingOrOffset);value=length.write(value,that);value!==encodingOrOffset&&(length=length.slice(0,value));return length}return fromObject(that,value)}function assertSize(size){if("number"!==typeof size)throw new TypeError('"size" argument must be a number');
if(0>size)throw new RangeError('"size" argument must not be negative');}function allocUnsafe(that,size){assertSize(size);that=createBuffer(that,0>size?0:checked(size)|0);if(!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;i<size;++i)that[i]=0;return that}function fromArrayLike(that,array){var length=0>array.length?0:checked(array.length)|0;that=createBuffer(that,length);for(var i=0;i<length;i+=1)that[i]=array[i]&255;return that}function fromObject(that,obj){if(Buffer.isBuffer(obj)){var len=checked(obj.length)|
0;that=createBuffer(that,len);if(0===that.length)return that;obj.copy(that,0,0,len);return that}if(obj){if("undefined"!==typeof ArrayBuffer&&obj.buffer instanceof ArrayBuffer||"length"in obj)return(len="number"!==typeof obj.length)||(len=obj.length,len=len!==len),len?createBuffer(that,0):fromArrayLike(that,obj);if("Buffer"===obj.type&&isArray(obj.data))return fromArrayLike(that,obj.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function checked(length){if(length>=
(Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return length|0}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;"string"!==typeof string&&(string=
""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case "ascii":case "latin1":case "binary":return len;case "utf8":case "utf-8":case void 0:return utf8ToBytes(string).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*len;case "hex":return len>>>1;case "base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase();loweredCase=!0}}function slowToString(encoding,
start,end){var loweredCase=!1;if(void 0===start||0>start)start=0;if(start>this.length)return"";if(void 0===end||end>this.length)end=this.length;if(0>=end)return"";end>>>=0;start>>>=0;if(end<=start)return"";for(encoding||(encoding="utf8");;)switch(encoding){case "hex":encoding=start;start=end;end=this.length;if(!encoding||0>encoding)encoding=0;if(!start||0>start||start>end)start=end;loweredCase="";for(end=encoding;end<start;++end)encoding=loweredCase,loweredCase=this[end],loweredCase=16>loweredCase?
"0"+loweredCase.toString(16):loweredCase.toString(16),loweredCase=encoding+loweredCase;return loweredCase;case "utf8":case "utf-8":return utf8Slice(this,start,end);case "ascii":encoding="";for(end=Math.min(this.length,end);start<end;++start)encoding+=String.fromCharCode(this[start]&127);return encoding;case "latin1":case "binary":encoding="";for(end=Math.min(this.length,end);start<end;++start)encoding+=String.fromCharCode(this[start]);return encoding;case "base64":return start=0===start&&end===this.length?
base64.fromByteArray(this):base64.fromByteArray(this.slice(start,end)),start;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":start=this.slice(start,end);end="";for(encoding=0;encoding<start.length;encoding+=2)end+=String.fromCharCode(start[encoding]+256*start[encoding+1]);return end;default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase();loweredCase=!0}}function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i}function bidirectionalIndexOf(buffer,
val,byteOffset,encoding,dir){if(0===buffer.length)return-1;"string"===typeof byteOffset?(encoding=byteOffset,byteOffset=0):2147483647<byteOffset?byteOffset=2147483647:-2147483648>byteOffset&&(byteOffset=-2147483648);byteOffset=+byteOffset;isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1);0>byteOffset&&(byteOffset=buffer.length+byteOffset);if(byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(0>byteOffset)if(dir)byteOffset=0;else return-1;"string"===typeof val&&(val=
Buffer.from(val,encoding));if(Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if("number"===typeof val)return val&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer");}function arrayIndexOf(arr,
val,byteOffset,encoding,dir){function read(buf,i){return 1===indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=String(encoding).toLowerCase(),"ucs2"===encoding||"ucs-2"===encoding||"utf16le"===encoding||"utf-16le"===encoding)){if(2>arr.length||2>val.length)return-1;indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2}if(dir)for(encoding=-1;byteOffset<arrLength;byteOffset++)if(read(arr,byteOffset)===read(val,-1===
encoding?0:byteOffset-encoding)){if(-1===encoding&&(encoding=byteOffset),byteOffset-encoding+1===valLength)return encoding*indexSize}else-1!==encoding&&(byteOffset-=byteOffset-encoding),encoding=-1;else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength);0<=byteOffset;byteOffset--){arrLength=!0;for(encoding=0;encoding<valLength;encoding++)if(read(arr,byteOffset+encoding)!==read(val,encoding)){arrLength=!1;break}if(arrLength)return byteOffset}return-1}function utf8Slice(buf,start,
end){end=Math.min(buf.length,end);for(var res=[];start<end;){var firstByte=buf[start],codePoint=null,bytesPerSequence=239<firstByte?4:223<firstByte?3:191<firstByte?2:1;if(start+bytesPerSequence<=end)switch(bytesPerSequence){case 1:128>firstByte&&(codePoint=firstByte);break;case 2:var secondByte=buf[start+1];128===(secondByte&192)&&(firstByte=(firstByte&31)<<6|secondByte&63,127<firstByte&&(codePoint=firstByte));break;case 3:secondByte=buf[start+1];var thirdByte=buf[start+2];128===(secondByte&192)&&
128===(thirdByte&192)&&(firstByte=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63,2047<firstByte&&(55296>firstByte||57343<firstByte)&&(codePoint=firstByte));break;case 4:secondByte=buf[start+1];thirdByte=buf[start+2];var fourthByte=buf[start+3];128===(secondByte&192)&&128===(thirdByte&192)&&128===(fourthByte&192)&&(firstByte=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63,65535<firstByte&&1114112>firstByte&&(codePoint=firstByte))}null===codePoint?(codePoint=65533,bytesPerSequence=
1):65535<codePoint&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|codePoint&1023);res.push(codePoint);start+=bytesPerSequence}buf=res.length;if(buf<=MAX_ARGUMENTS_LENGTH)res=String.fromCharCode.apply(String,res);else{end="";for(start=0;start<buf;)end+=String.fromCharCode.apply(String,res.slice(start,start+=MAX_ARGUMENTS_LENGTH));res=end}return res}function checkOffset(offset,ext,length){if(0!==offset%1||0>offset)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length");
}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range");}function objectWriteUInt16(buf,value,offset,littleEndian){0>value&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);i<j;++i)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?
i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){0>value&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);i<j;++i)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(0>offset)throw new RangeError("Index out of range");}function writeFloat(buf,value,offset,littleEndian,noAssert){noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886E38,
-3.4028234663852886E38);ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157E308,-1.7976931348623157E308);ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8}function utf8ToBytes(string,units){units=units||Infinity;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){codePoint=string.charCodeAt(i);if(55295<codePoint&&57344>
codePoint){if(!leadSurrogate){if(56319<codePoint){-1<(units-=3)&&bytes.push(239,191,189);continue}else if(i+1===length){-1<(units-=3)&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(56320>codePoint){-1<(units-=3)&&bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&-1<(units-=3)&&bytes.push(239,191,189);leadSurrogate=null;if(128>codePoint){if(0>--units)break;bytes.push(codePoint)}else if(2048>
codePoint){if(0>(units-=2))break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(65536>codePoint){if(0>(units-=3))break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(1114112>codePoint){if(0>(units-=4))break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else throw Error("Invalid code point");}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(str.charCodeAt(i)&255);return byteArray}
function base64ToBytes(str){var JSCompiler_temp_const=base64,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.toByteArray;str=(str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")).replace(INVALID_BASE64_RE,"");if(2>str.length)str="";else for(;0!==str.length%4;)str+="=";return JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,str)}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}var base64=__webpack_require__(113),
ieee754=__webpack_require__(114),isArray=__webpack_require__(66);exports.Buffer=Buffer;exports.SlowBuffer=function(length){+length!=length&&(length=0);return Buffer.alloc(+length)};exports.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport();exports.kMaxLength=Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823;Buffer.poolSize=8192;Buffer._augment=function(arr){arr.__proto__=Buffer.prototype;return arr};Buffer.from=function(value,
encodingOrOffset,length){return from(null,value,encodingOrOffset,length)};Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0}));Buffer.alloc=function(size,fill,encoding){assertSize(size);size=0>=size?createBuffer(null,size):void 0!==fill?"string"===typeof encoding?createBuffer(null,size).fill(fill,
encoding):createBuffer(null,size).fill(fill):createBuffer(null,size);return size};Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)};Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)};Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)};Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i];
y=b[i];break}return x<y?-1:y<x?1:0};Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(0===list.length)return Buffer.alloc(0);var i;if(void 0===length)for(i=length=0;i<list.length;++i)length+=
list[i].length;length=Buffer.allocUnsafe(length);var pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!Buffer.isBuffer(buf))throw new TypeError('"list" argument must be an Array of Buffers');buf.copy(length,pos);pos+=buf.length}return length};Buffer.byteLength=byteLength;Buffer.prototype._isBuffer=!0;Buffer.prototype.swap16=function(){var len=this.length;if(0!==len%2)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this};Buffer.prototype.swap32=
function(){var len=this.length;if(0!==len%4)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this};Buffer.prototype.swap64=function(){var len=this.length;if(0!==len%8)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this};Buffer.prototype.toString=function(){var length=this.length|0;return 0===length?
"":0===arguments.length?utf8Slice(this,0,length):slowToString.apply(this,arguments)};Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:0===Buffer.compare(this,b)};Buffer.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;0<this.length&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... "));return"<Buffer "+str+">"};Buffer.prototype.compare=function(target,start,end,thisStart,
thisEnd){if(!Buffer.isBuffer(target))throw new TypeError("Argument must be a Buffer");void 0===start&&(start=0);void 0===end&&(end=target?target.length:0);void 0===thisStart&&(thisStart=0);void 0===thisEnd&&(thisEnd=this.length);if(0>start||end>target.length||0>thisStart||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;
var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y);thisStart=this.slice(thisStart,thisEnd);target=target.slice(start,end);for(start=0;start<len;++start)if(thisStart[start]!==target[start]){x=thisStart[start];y=target[start];break}return x<y?-1:y<x?1:0};Buffer.prototype.includes=function(val,byteOffset,encoding){return-1!==this.indexOf(val,byteOffset,encoding)};Buffer.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)};Buffer.prototype.lastIndexOf=
function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)};Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"===typeof offset)encoding=offset,length=this.length,offset=0;else if(isFinite(offset))offset|=0,isFinite(length)?(length|=0,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
var remaining=this.length-offset;if(void 0===length||length>remaining)length=remaining;if(0<string.length&&(0>length||0>offset)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(remaining=!1;;)switch(encoding){case "hex":a:{offset=Number(offset)||0;encoding=this.length-offset;length?(length=Number(length),length>encoding&&(length=encoding)):length=encoding;encoding=string.length;if(0!==encoding%2)throw new TypeError("Invalid hex string");
length>encoding/2&&(length=encoding/2);for(encoding=0;encoding<length;++encoding){remaining=parseInt(string.substr(2*encoding,2),16);if(isNaN(remaining)){string=encoding;break a}this[offset+encoding]=remaining}string=encoding}return string;case "utf8":case "utf-8":return blitBuffer(utf8ToBytes(string,this.length-offset),this,offset,length);case "ascii":return blitBuffer(asciiToBytes(string),this,offset,length);case "latin1":case "binary":return blitBuffer(asciiToBytes(string),this,offset,length);
case "base64":return blitBuffer(base64ToBytes(string),this,offset,length);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":encoding=string;remaining=this.length-offset;for(var byteArray=[],i=0;i<encoding.length&&!(0>(remaining-=2));++i){var lo=encoding.charCodeAt(i);string=lo>>8;lo%=256;byteArray.push(lo);byteArray.push(string)}return blitBuffer(byteArray,this,offset,length);default:if(remaining)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase();remaining=
!0}};Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start;end=void 0===end?len:~~end;0>start?(start+=len,0>start&&(start=0)):start>len&&(start=len);0>end?(end+=len,0>end&&(end=0)):end>len&&(end=len);end<start&&(end=start);if(Buffer.TYPED_ARRAY_SUPPORT)end=this.subarray(start,end),end.__proto__=Buffer.prototype;else{len=end-start;end=new Buffer(len,
void 0);for(var i=0;i<len;++i)end[i]=this[i+start]}return end};Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset|=0;byteLength|=0;noAssert||checkOffset(offset,byteLength,this.length);noAssert=this[offset];for(var mul=1,i=0;++i<byteLength&&(mul*=256);)noAssert+=this[offset+i]*mul;return noAssert};Buffer.prototype.readUIntBE=function(offset,byteLength,noAssert){offset|=0;byteLength|=0;noAssert||checkOffset(offset,byteLength,this.length);noAssert=this[offset+--byteLength];for(var mul=
1;0<byteLength&&(mul*=256);)noAssert+=this[offset+--byteLength]*mul;return noAssert};Buffer.prototype.readUInt8=function(offset,noAssert){noAssert||checkOffset(offset,1,this.length);return this[offset]};Buffer.prototype.readUInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8};Buffer.prototype.readUInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1]};Buffer.prototype.readUInt32LE=
function(offset,noAssert){noAssert||checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+16777216*this[offset+3]};Buffer.prototype.readUInt32BE=function(offset,noAssert){noAssert||checkOffset(offset,4,this.length);return 16777216*this[offset]+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function(offset,byteLength,noAssert){offset|=0;byteLength|=0;noAssert||checkOffset(offset,byteLength,this.length);noAssert=this[offset];for(var mul=
1,i=0;++i<byteLength&&(mul*=256);)noAssert+=this[offset+i]*mul;noAssert>=128*mul&&(noAssert-=Math.pow(2,8*byteLength));return noAssert};Buffer.prototype.readIntBE=function(offset,byteLength,noAssert){offset|=0;byteLength|=0;noAssert||checkOffset(offset,byteLength,this.length);noAssert=byteLength;for(var mul=1,val=this[offset+--noAssert];0<noAssert&&(mul*=256);)val+=this[offset+--noAssert]*mul;val>=128*mul&&(val-=Math.pow(2,8*byteLength));return val};Buffer.prototype.readInt8=function(offset,noAssert){noAssert||
checkOffset(offset,1,this.length);return this[offset]&128?-1*(255-this[offset]+1):this[offset]};Buffer.prototype.readInt16LE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);offset=this[offset]|this[offset+1]<<8;return offset&32768?offset|4294901760:offset};Buffer.prototype.readInt16BE=function(offset,noAssert){noAssert||checkOffset(offset,2,this.length);offset=this[offset+1]|this[offset]<<8;return offset&32768?offset|4294901760:offset};Buffer.prototype.readInt32LE=function(offset,
noAssert){noAssert||checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24};Buffer.prototype.readInt32BE=function(offset,noAssert){noAssert||checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3]};Buffer.prototype.readFloatLE=function(offset,noAssert){noAssert||checkOffset(offset,4,this.length);return ieee754.read(this,offset,!0,23,4)};Buffer.prototype.readFloatBE=function(offset,noAssert){noAssert||
checkOffset(offset,4,this.length);return ieee754.read(this,offset,!1,23,4)};Buffer.prototype.readDoubleLE=function(offset,noAssert){noAssert||checkOffset(offset,8,this.length);return ieee754.read(this,offset,!0,52,8)};Buffer.prototype.readDoubleBE=function(offset,noAssert){noAssert||checkOffset(offset,8,this.length);return ieee754.read(this,offset,!1,52,8)};Buffer.prototype.writeUIntLE=function(value,offset,byteLength,noAssert){value=+value;offset|=0;byteLength|=0;noAssert||checkInt(this,value,offset,
byteLength,Math.pow(2,8*byteLength)-1,0);noAssert=1;var i=0;for(this[offset]=value&255;++i<byteLength&&(noAssert*=256);)this[offset+i]=value/noAssert&255;return offset+byteLength};Buffer.prototype.writeUIntBE=function(value,offset,byteLength,noAssert){value=+value;offset|=0;byteLength|=0;noAssert||checkInt(this,value,offset,byteLength,Math.pow(2,8*byteLength)-1,0);noAssert=byteLength-1;var mul=1;for(this[offset+noAssert]=value&255;0<=--noAssert&&(mul*=256);)this[offset+noAssert]=value/mul&255;return offset+
byteLength};Buffer.prototype.writeUInt8=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,1,255,0);Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value));this[offset]=value&255;return offset+1};Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,2,65535,0);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value&255,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0);return offset+2};
Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,2,65535,0);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=value&255):objectWriteUInt16(this,value,offset,!1);return offset+2};Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,4,4294967295,0);Buffer.TYPED_ARRAY_SUPPORT?(this[offset+3]=value>>>24,this[offset+2]=value>>>16,this[offset+1]=
value>>>8,this[offset]=value&255):objectWriteUInt32(this,value,offset,!0);return offset+4};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,4,4294967295,0);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255):objectWriteUInt32(this,value,offset,!1);return offset+4};Buffer.prototype.writeIntLE=function(value,offset,byteLength,noAssert){value=+value;offset|=
0;noAssert||(noAssert=Math.pow(2,8*byteLength-1),checkInt(this,value,offset,byteLength,noAssert-1,-noAssert));noAssert=0;var mul=1,sub=0;for(this[offset]=value&255;++noAssert<byteLength&&(mul*=256);)0>value&&0===sub&&0!==this[offset+noAssert-1]&&(sub=1),this[offset+noAssert]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeIntBE=function(value,offset,byteLength,noAssert){value=+value;offset|=0;noAssert||(noAssert=Math.pow(2,8*byteLength-1),checkInt(this,value,offset,byteLength,
noAssert-1,-noAssert));noAssert=byteLength-1;var mul=1,sub=0;for(this[offset+noAssert]=value&255;0<=--noAssert&&(mul*=256);)0>value&&0===sub&&0!==this[offset+noAssert+1]&&(sub=1),this[offset+noAssert]=(value/mul>>0)-sub&255;return offset+byteLength};Buffer.prototype.writeInt8=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,1,127,-128);Buffer.TYPED_ARRAY_SUPPORT||(value=Math.floor(value));0>value&&(value=255+value+1);this[offset]=value&255;return offset+
1};Buffer.prototype.writeInt16LE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,2,32767,-32768);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value&255,this[offset+1]=value>>>8):objectWriteUInt16(this,value,offset,!0);return offset+2};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,2,32767,-32768);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>8,this[offset+1]=value&255):objectWriteUInt16(this,
value,offset,!1);return offset+2};Buffer.prototype.writeInt32LE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,4,2147483647,-2147483648);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value&255,this[offset+1]=value>>>8,this[offset+2]=value>>>16,this[offset+3]=value>>>24):objectWriteUInt32(this,value,offset,!0);return offset+4};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){value=+value;offset|=0;noAssert||checkInt(this,value,offset,4,2147483647,
-2147483648);0>value&&(value=4294967295+value+1);Buffer.TYPED_ARRAY_SUPPORT?(this[offset]=value>>>24,this[offset+1]=value>>>16,this[offset+2]=value>>>8,this[offset+3]=value&255):objectWriteUInt32(this,value,offset,!1);return offset+4};Buffer.prototype.writeFloatLE=function(value,offset,noAssert){return writeFloat(this,value,offset,!0,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){return writeFloat(this,value,offset,!1,noAssert)};Buffer.prototype.writeDoubleLE=function(value,
offset,noAssert){return writeDouble(this,value,offset,!0,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){return writeDouble(this,value,offset,!1,noAssert)};Buffer.prototype.copy=function(target,targetStart,start,end){start||(start=0);end||0===end||(end=this.length);targetStart>=target.length&&(targetStart=target.length);targetStart||(targetStart=0);0<end&&end<start&&(end=start);if(end===start||0===target.length||0===this.length)return 0;if(0>targetStart)throw new RangeError("targetStart out of bounds");
if(0>start||start>=this.length)throw new RangeError("sourceStart out of bounds");if(0>end)throw new RangeError("sourceEnd out of bounds");end>this.length&&(end=this.length);target.length-targetStart<end-start&&(end=target.length-targetStart+start);var len=end-start;if(this===target&&start<targetStart&&targetStart<end)for(end=len-1;0<=end;--end)target[end+targetStart]=this[end+start];else if(1E3>len||!Buffer.TYPED_ARRAY_SUPPORT)for(end=0;end<len;++end)target[end+targetStart]=this[end+start];else Uint8Array.prototype.set.call(target,
this.subarray(start,start+len),targetStart);return len};Buffer.prototype.fill=function(val,start,end,encoding){if("string"===typeof val){"string"===typeof start?(encoding=start,start=0,end=this.length):"string"===typeof end&&(encoding=end,end=this.length);if(1===val.length){var code=val.charCodeAt(0);256>code&&(val=code)}if(void 0!==encoding&&"string"!==typeof encoding)throw new TypeError("encoding must be a string");if("string"===typeof encoding&&!Buffer.isEncoding(encoding))throw new TypeError("Unknown encoding: "+
encoding);}else"number"===typeof val&&(val&=255);if(0>start||this.length<start||this.length<end)throw new RangeError("Out of range index");if(end<=start)return this;start>>>=0;end=void 0===end?this.length:end>>>0;val||(val=0);if("number"===typeof val)for(encoding=start;encoding<end;++encoding)this[encoding]=val;else for(val=Buffer.isBuffer(val)?val:utf8ToBytes((new Buffer(val,encoding)).toString()),code=val.length,encoding=0;encoding<end-start;++encoding)this[encoding+start]=val[encoding%code];return this};
var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g}).call(this,__webpack_require__(15))},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getState});__webpack_require__.d(__webpack_exports__,"b",function(){return setState});var subscriptions={},globalState={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},getState=function(key){return globalState[key]},
setState=function(key,value){var _a;globalState[key]=value;null===(_a=subscriptions[key])||void 0===_a?void 0:_a.forEach(function(func){func(value)})}},function(module,__webpack_exports__,__webpack_require__){function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function CCW(p1,p2,p3){return(p3.y-p1.y)*(p2.x-p1.x)>(p2.y-p1.y)*(p3.x-p1.x)}function onSegment(pt1,pt2,pt3){return[pt1,pt2,pt3].some(function(pt){return!(pt instanceof
_Math__WEBPACK_IMPORTED_MODULE_2__.a)})?null:pt2.x<=Math.max(pt1.x,pt3.x)&&pt2.x>=Math.min(pt1.x,pt3.x)&&pt2.y<=Math.max(pt1.y,pt3.y)&&pt2.y>=Math.min(pt1.y,pt3.y)}function getOrientation(pt1,pt2,pt3){if([pt1,pt2,pt3].some(function(pt){return!(pt instanceof _Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;pt1=(pt2.y-pt1.y)*(pt3.x-pt2.x)-(pt2.x-pt1.x)*(pt3.y-pt2.y);return 0===pt1?"colinear":0<pt1?"clockwise":"counterClockwise"}function intersect(p1,q1,p2,q2){if([p1,q2,p2,q2].some(function(pt){return!(pt instanceof
_Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;var o1=getOrientation(p1,q1,p2),o2=getOrientation(p1,q1,q2),o3=getOrientation(p2,q2,p1),o4=getOrientation(p2,q2,q1);return o1!==o2&&o3!==o4||"colinear"===o1&&onSegment(p1,p2,q1)||"colinear"===o2&&onSegment(p1,q2,q1)||"colinear"===o3&&onSegment(p2,p1,q2)||"colinear"===o4&&onSegment(p2,q1,q2)?!0:!1}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_util_textSelection__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(36),_Math__WEBPACK_IMPORTED_MODULE_2__=
__webpack_require__(6);__webpack_exports__.a={roundAngleIfCloseToMultipleOf90:function(angle){return.5>=angle&&359.5<=angle?0:90.5>=angle&&89.5<=angle?90:180.5>=angle&&179.5<=angle?180:270.5>=angle&&269.5<=angle?270:angle},makeRect:function(x,y,width,height){return null===x||null===y||null===width||null===height?null:{x1:x,y1:y,x2:x+width,y2:y+height}},pointHitTest:function(point,rect){if(!rect||!point)return!1;"undefined"!==typeof rect.x1&&"undefined"!==typeof rect.y1&&"undefined"!==typeof rect.x2&&
"undefined"!==typeof rect.y2||Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("rect points are undefined");var xInRect=point.x>=rect.x1&&point.x<=rect.x2;point=point.y>=rect.y1&&point.y<=rect.y2;return xInRect&&point},rectIntersect:function(rect1,rect2){return rect1&&rect2?rect1.x1<=rect2.x2&&rect1.x2>=rect2.x1&&rect1.y1<=rect2.y2&&rect1.y2>=rect2.y1?!0:!1:!1},pdfToXodCoordinates:function(x1,y1,x2,y2,pageMatrix){x1=new _util_textSelection__WEBPACK_IMPORTED_MODULE_1__.b(x1,y1);x2=new _util_textSelection__WEBPACK_IMPORTED_MODULE_1__.b(x2,
y2);y2=pageMatrix.mult(x1);pageMatrix=pageMatrix.mult(x2);return{x:Math.min(y2.x,pageMatrix.x),y:Math.min(y2.y,pageMatrix.y),w:Math.abs(y2.x-pageMatrix.x),h:Math.abs(y2.y-pageMatrix.y)}},Math:{createPseudoRandomNumberGenerator:function(seedString){return function(a){return function(){var t=a+=1831565813;t=Math.imul(t^t>>>15,t|1);t^=t+Math.imul(t^t>>>7,t|61);return((t^t>>>14)>>>0)/4294967296}}(function(seedString){var h;var i=0;for(h=1779033703^seedString.length;i<seedString.length;i++)h=Math.imul(h^
seedString.charCodeAt(i),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}}(seedString)())},linesIntersect:function(p1,p2,p3,p4){return CCW(p1,p3,p4)!==CCW(p2,p3,p4)&&CCW(p1,p2,p3)!==CCW(p1,p2,p4)},getAngle:function(p1,p2){var normalizedAngle=Math.atan(Math.abs(p1.y-p2.y)/Math.abs(p1.x-p2.x));p2.x<p1.x&&p2.y>p1.y?normalizedAngle=Math.PI-normalizedAngle:p2.x<=p1.x&&p2.y<p1.y?(normalizedAngle=Math.PI-normalizedAngle,
normalizedAngle*=-1):p2.x>=p1.x&&p2.y<p1.y&&(normalizedAngle*=-1);0===normalizedAngle&&p1.x>p2.x&&(normalizedAngle=Math.PI);return normalizedAngle},rotatePoint:function(p,angle,origin){origin=origin||{x:0,y:0};var xNorm=p.x-origin.x;p=p.y-origin.y;return new _Math__WEBPACK_IMPORTED_MODULE_2__.a(Math.cos(angle)*xNorm-Math.sin(angle)*p+origin.x,Math.sin(angle)*xNorm+Math.cos(angle)*p+origin.y)},clamp:function(value,bottom,top){top=void 0!==top?top:Infinity;bottom=void 0!==bottom?bottom:-Infinity;return Math.max(Math.min(value,
top),bottom)},getAngleFromCoordinates:function(x,y){return Math.atan2(y,x)},getPolyWrapDirection:function(polyPath){if(!(3>polyPath.length)){for(var A=polyPath[0],accum=0,i=1;i<polyPath.length;i++){var B=polyPath[i];accum+=(B.x-A.x)*(B.y+A.y);A=B}return 0<=accum?1:-1}},clonePolyPath:function(polyPath){for(var retPath=[],i=0;i<polyPath.length;i++)retPath.push({x:polyPath[i].x,y:polyPath[i].y});return retPath},polyPathIsOpen:function(polyPath){if(1>polyPath.length)return!1;var lastEdgeYLength=Math.abs(polyPath[polyPath.length-
1].y-polyPath[0].y);return 1.2358E-4<Math.abs(polyPath[polyPath.length-1].x-polyPath[0].x)||1.2358E-4<lastEdgeYLength?!0:!1},rotationMatrix:function(angle){var c=Math.cos(angle);angle=Math.sin(angle);return{m_a:c,m_b:-angle,m_c:angle,m_d:c,m_h:0,m_v:0}},translate:function(matrix,x,y){matrix.m_h+=x;matrix.m_v+=y;return matrix},mult:function(matrix,x,y){return{x:x*matrix.m_a+y*matrix.m_c+matrix.m_h,y:x*matrix.m_b+y*matrix.m_d+matrix.m_v}},arcToCurves:function(startX,startY,outPoints,outOperations,xr,
yr,rx,isLargeArc,sweep,endX,endY){0>xr&&(xr=-xr);0>yr&&(yr=-yr);var dx2=(startX-endX)/2,dy2=(startY-endY)/2,cosA=Math.cos(rx),sinA=Math.sin(rx),x1=cosA*dx2+sinA*dy2;dx2=-sinA*dx2+cosA*dy2;dy2=xr*xr;var pry=yr*yr,px1=x1*x1,py1=dx2*dx2,radiiCheck=px1/dy2+py1/pry;1<radiiCheck&&(xr*=Math.sqrt(radiiCheck),yr*=Math.sqrt(radiiCheck),dy2=xr*xr,pry=yr*yr);if(radiiCheck=dy2*py1+pry*px1){dy2=(dy2*pry-dy2*py1-pry*px1)/radiiCheck;isLargeArc=(isLargeArc===sweep?-1:1)*Math.sqrt(0>dy2?0:dy2);pry=xr*dx2/yr*isLargeArc;
px1=isLargeArc*-(yr*x1/xr);isLargeArc=(startX+endX)/2+(cosA*pry-sinA*px1);cosA=(startY+endY)/2+(sinA*pry+cosA*px1);sinA=(x1-pry)/xr;dy2=(dx2-px1)/yr;pry=(-x1-pry)/xr;dx2=(-dx2-px1)/yr;px1=Math.sqrt(sinA*sinA+dy2*dy2);x1=(0>dy2?-1:1)*Math.acos(sinA/px1);px1=Math.sqrt((sinA*sinA+dy2*dy2)*(pry*pry+dx2*dx2));dy2=(0>sinA*dx2-dy2*pry?-1:1)*Math.acos(Math.max(Math.min((sinA*pry+dy2*dx2)/px1,1),-1));!sweep&&0<dy2?dy2-=2*Math.PI:sweep&&0>dy2&&(dy2+=2*Math.PI);dx2=[];sinA=!1;if(1E-9>Math.abs(dy2))sweep=4,sinA=
!0,dx2[0]=xr*Math.cos(x1),dx2[1]=yr*Math.sin(x1),dx2[2]=xr*Math.cos(x1+dy2),dx2[3]=yr*Math.sin(x1+dy2);else{pry=0;sweep=2;py1=!1;do{0>dy2?(radiiCheck=pry,px1=.5*-Math.PI,pry-=.5*Math.PI,pry<=dy2+.01&&(px1=dy2-radiiCheck,py1=!0)):(radiiCheck=pry,px1=.5*Math.PI,pry+=.5*Math.PI,pry>=dy2-.01&&(px1=dy2-radiiCheck,py1=!0));var x0=Math.cos(px1/2),y0=Math.sin(px1/2),tx=4*(1-x0)/3,ty=y0-tx*x0/y0;radiiCheck=[];var py=[];radiiCheck[0]=x0;py[0]=-y0;radiiCheck[1]=x0+tx;py[1]=-ty;radiiCheck[2]=x0+tx;py[2]=ty;radiiCheck[3]=
x0;py[3]=y0;x0=Math.sin(x1+px1/2);y0=Math.cos(x1+px1/2);for(tx=0;4>tx;tx++)dx2[sweep-2+2*tx]=xr*(radiiCheck[tx]*y0-py[tx]*x0),dx2[sweep-1+2*tx]=yr*(radiiCheck[tx]*x0+py[tx]*y0);sweep+=6;x1+=px1}while(!py1&&26>sweep)}xr=this.rotationMatrix(-rx);this.translate(xr,isLargeArc,cosA);for(yr=2;yr<sweep-2;yr+=2)rx=void 0===dx2[yr]?this.mult(xr,0,0):this.mult(xr,dx2[yr],dx2[yr+1]),dx2[yr]=rx.x,dx2[yr+1]=rx.y;dx2[0]=startX;dx2[1]=startY;2<sweep&&(dx2[sweep-2]=endX,dx2[sweep-1]=endY);if(sinA)outOperations.push("l"),
outOperations.push("l"),outPoints.push(dx2[0]),outPoints.push(dx2[1]),outPoints.push(dx2[2]),outPoints.push(dx2[3]);else for(outOperations.push("l"),outPoints.push(dx2[0]),outPoints.push(dx2[1]),startX=2;startX<sweep;startX+=6)outOperations.push("c"),outPoints.push(dx2[startX]),outPoints.push(dx2[startX+1]),outPoints.push(dx2[startX+2]),outPoints.push(dx2[startX+3]),outPoints.push(dx2[startX+4]),outPoints.push(dx2[startX+5])}},crossProduct:function(vec1,vec2){return vec1.x*vec2.y-vec1.y*vec2.x},normalizeDegree:function(rad){return 1E4*
(rad+2*Math.PI)%2*Math.PI*1E4/1E4},getLockedEndPoint:function(pt1,pt2){var angle=180*Math.atan2(pt2.y-pt1.y,pt2.x-pt1.x)/Math.PI;pt2=Math.sqrt(Math.pow(pt2.x-pt1.x,2)+Math.pow(pt2.y-pt1.y,2));return pt2=-157.5>angle?{x:pt1.x-pt2,y:pt1.y}:-112.5>angle?{x:pt1.x-pt2*Math.sin(Math.PI/4),y:pt1.y-pt2*Math.sin(Math.PI/4)}:-67.5>angle?{x:pt1.x,y:pt1.y-pt2}:-22.5>angle?{x:pt1.x+pt2*Math.sin(Math.PI/4),y:pt1.y-pt2*Math.sin(Math.PI/4)}:22.5>angle?{x:pt1.x+pt2,y:pt1.y}:67.5>angle?{x:pt1.x+pt2*Math.sin(Math.PI/
4),y:pt1.y+pt2*Math.sin(Math.PI/4)}:112.5>angle?{x:pt1.x,y:pt1.y+pt2}:157.5>angle?{x:pt1.x-pt2*Math.sin(Math.PI/4),y:pt1.y+pt2*Math.sin(Math.PI/4)}:{x:pt1.x-pt2,y:pt1.y}},perpendicularPoint:function(x1,y1,x2,y2,controlLength){var p4=[],p3=[];var slope=-1/((y2-y1)/(x2-x1));p3[0]=(x1+x2)/2;p3[1]=(y1+y2)/2;x1=-slope*p3[0]+p3[1];p4[0]=p3[0]+controlLength;p4[1]=slope*(p3[0]+controlLength)+x1;return p4},midpoint:function(pt1,pt2){return[pt1,pt2].some(function(pt){return!(pt instanceof _Math__WEBPACK_IMPORTED_MODULE_2__.a)})?
null:new _Math__WEBPACK_IMPORTED_MODULE_2__.a((pt1.x+pt2.x)/2,(pt1.y+pt2.y)/2)},distance:function(pt1,pt2){if([pt1,pt2].some(function(pt){return!(pt instanceof _Math__WEBPACK_IMPORTED_MODULE_2__.a)}))return null;var dx=pt1.x-pt2.x;pt1=pt1.y-pt2.y;return Math.sqrt(dx*dx+pt1*pt1)},onSegment:onSegment,getOrientation:getOrientation,intersect:intersect,lineRectIntersect:function(p1,q1,rect){var x1=rect.x1,y1=rect.y1,x2=rect.x2;rect=rect.y2;return[[new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,y1),new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,
y1)],[new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,y1),new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,rect)],[new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x1,rect),new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,rect)],[new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,y1),new _Math__WEBPACK_IMPORTED_MODULE_2__.a(x2,rect)]].some(function(line){var JSCompiler_temp_const=intersect.apply,JSCompiler_temp_const$jscomp$0=[p1,q1],JSCompiler_temp_const$jscomp$1=JSCompiler_temp_const$jscomp$0.concat;var JSCompiler_temp=Array.isArray(line)?
_arrayLikeToArray(line):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=line[Symbol.iterator]||null!=line["@@iterator"]?Array.from(line):void 0);if(!JSCompiler_temp)a:{if(line){if("string"===typeof line){JSCompiler_temp=_arrayLikeToArray(line,void 0);break a}JSCompiler_temp=Object.prototype.toString.call(line).slice(8,-1);"Object"===JSCompiler_temp&&line.constructor&&(JSCompiler_temp=line.constructor.name);if("Map"===JSCompiler_temp||"Set"===JSCompiler_temp){JSCompiler_temp=
Array.from(line);break a}if("Arguments"===JSCompiler_temp||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(JSCompiler_temp)){JSCompiler_temp=_arrayLikeToArray(line,void 0);break a}}JSCompiler_temp=void 0}if(!(line=JSCompiler_temp))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return JSCompiler_temp_const.call(intersect,void 0,JSCompiler_temp_const$jscomp$1.call(JSCompiler_temp_const$jscomp$0,
line))})}}}},function(module,exports){module.exports="function"===typeof Object.create?function(ctor,superCtor){superCtor&&(ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}}))}:function(ctor,superCtor){if(superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}}},function(module,__webpack_exports__,__webpack_require__){var _textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__=
__webpack_require__(12),_Word__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(23),_SelectionPoint__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(37);module=function(){function Line(){this._m_Words=[];this._m_CurNum=-1;this._m_Direction=[];this._m_quad=Array(8);this._m_next_line=null;this._m_Str="";this._m_Quads=null}Line.prototype.initDefault=function(){this._m_CurNum=this._m_Pos=-1;this._m_Direction=[]};Line.prototype.initLine=
function(line){this._m_CurNum=line._m_CurNum;this._m_Direction=line._m_Direction;this._m_Str=line._m_Str;this._m_Quads=line._m_Quads};Line.prototype.equal=function(line){return this._m_CurNum===line.getCurrentNum()};Line.prototype.getNumWords=function(){return this._m_Words.length};Line.prototype.getFirstWord=function(){return this._m_Words.length?this._m_Words[0]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};Line.prototype.getLastWord=function(){return this._m_Words.length?this._m_Words[this._m_Words.length-
1]:new _Word__WEBPACK_IMPORTED_MODULE_1__.a};Line.prototype.getWord=function(word_idx){return 0>word_idx||word_idx>=this.getNumWords()?new _Word__WEBPACK_IMPORTED_MODULE_1__.a:this._m_Words[word_idx]};Line.prototype.getNextLine=function(){return null==this._m_next_line?new Line:this._m_next_line};Line.prototype.getBBox=function(bbox){bbox.setFromQuad(this._m_quad)};Line.prototype.getCurrentNum=function(){return this._m_CurNum};Line.prototype._setCurrentNum=function(curNum){this._m_CurNum=curNum};
Line.prototype.getDirection=function(){if(this._m_Direction.length)return this._m_Direction[0];var g1=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a,g2=new _SelectionPoint__WEBPACK_IMPORTED_MODULE_2__.a;(new _Word__WEBPACK_IMPORTED_MODULE_1__.a).initDefault();var w1=this.getFirstWord(),w2=this.getLastWord(),q1=Array(8),q2=Array(8);w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=
(q2[1]+q2[3]+q2[5]+q2[7])/4;.01>Math.abs(g1.x-g2.x)&&.01>Math.abs(g1.y-g2.y)&&this._m_Direction.push(0);g1=Math.atan2(g2.y-g1.y,g2.x-g1.x);g1*=180/3.1415926;0>g1&&(g1+=360);this._m_Direction.push(g1);return 0};Line.prototype.setNextLine=function(line){this._m_next_line=line};Line.prototype.addWord=function(word){0<this._m_Words.length&&this._m_Words[this._m_Words.length-1].setNextWord(word);this._m_Words.push(word);var first_word=Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_Str),
quad=Array(8);word.getQuad(quad);if(first_word)for(first_word=0;8>first_word;first_word++)this._m_quad[first_word]=quad[first_word];else this._m_Str+=" ",_textSelection_Quad__WEBPACK_IMPORTED_MODULE_0__.a._merge(this._m_quad,quad,1,!1,0);this._m_Str+=word.getString()};return Line}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
var logger__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(0),_Core_Math__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(6),_Color__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(64),_util_textSelection__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(36),defaultAppearanceCommands=["Tf","rg"],_pad=function(str){return 2>str.length?"0"+str:str},getAttribute=function(element,attr){return element.getAttribute(attr)||element.getAttribute(attr.toLowerCase())},getLocalName=function(element){return element.localName||
element.baseName||element.nodeName},getFirstChildElement=function(data){data=Object(lodash__WEBPACK_IMPORTED_MODULE_1__.filter)(data.childNodes,function(element){return 1===element.nodeType});return 0<data.length?data[0]:null},serializeRect=function(rect,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";var pt1=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x1,rect.y1);rect=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(rect.x2,rect.y2);pageMatrix.mult(pt1);
pageMatrix.mult(rect);pageMatrix=Number.isInteger(pt1.x)?pt1.x:pt1.x.toFixed(3);pt1=Number.isInteger(pt1.y)?pt1.y:pt1.y.toFixed(3);var point2X=Number.isInteger(rect.x)?rect.x:rect.x.toFixed(3);rect=Number.isInteger(rect.y)?rect.y:rect.y.toFixed(3);return""+pageMatrix+separator+pt1+separator+point2X+separator+rect},deserializeRect=function(rectString,pageMatrix,separator){if("undefined"===typeof separator||null===separator)separator=",";if("undefined"===typeof rectString||null===rectString)rectString=
"0,0,0,0";separator=rectString.split(separator);rectString=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[0],separator[1]);separator=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(separator[2],separator[3]);pageMatrix&&(pageMatrix.mult(rectString),pageMatrix.mult(separator));return new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.b(rectString.x,rectString.y,separator.x,separator.y)},serializeColor=function(color){if("undefined"===typeof color||null===color||!(color instanceof _Color__WEBPACK_IMPORTED_MODULE_4__.a)||
0===color.A)return null;var r=color.R.toString(16).toUpperCase();2>r.length&&(r="0"+r);var g=color.G.toString(16).toUpperCase();2>g.length&&(g="0"+g);color=color.B.toString(16).toUpperCase();2>color.length&&(color="0"+color);return"#"+r+g+color},getCSSColor=function(r,g,b){r="#"+_pad(r.toString(16));r+=_pad(g.toString(16));return r+=_pad(b.toString(16))},getStyleFontName=function(fontName){return 1<fontName.split(" ").length?"'"+fontName+"'":fontName},parseFontName=function(name){function checkFontName(startsWith,
replace){var fName=name;0===fName.indexOf(startsWith)&&(fName=replace);return fName}name=checkFontName("Arial","Arial");name=checkFontName("Courier","Courier");name=checkFontName("Helv","Helvetica");return name=checkFontName("Times","Times New Roman")},setPropertyOnObject=function(object,property,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||(object[property]=value)},setNumberPropertyOnObject=function(object,property,
value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||(object[property]=Number(value))},setPropertyOnElement=function(element,attribute,value){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(value)||Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(value)||element.setAttribute(attribute,value)},serializeNumberFormat=function(numberFormatDictionary){var numberFormat=document.createElementNS("","numberformat");setPropertyOnElement(numberFormat,
"factor",numberFormatDictionary.factor);setPropertyOnElement(numberFormat,"unit",numberFormatDictionary.unit);setPropertyOnElement(numberFormat,"decimal-symbol",numberFormatDictionary.decimalSymbol);setPropertyOnElement(numberFormat,"thousands-symbol",numberFormatDictionary.thousandsSymbol);setPropertyOnElement(numberFormat,"display",numberFormatDictionary.display);setPropertyOnElement(numberFormat,"precision",numberFormatDictionary.precision);setPropertyOnElement(numberFormat,"unit-prefix",numberFormatDictionary.unitPrefix);
setPropertyOnElement(numberFormat,"unit-suffix",numberFormatDictionary.unitSuffix);setPropertyOnElement(numberFormat,"unit-position",numberFormatDictionary.unitPosition);return numberFormat},deserializeNumberFormat=function(numberFormatDictionary){var numberFormat={};setNumberPropertyOnObject(numberFormat,"factor",numberFormatDictionary.getAttribute("factor"));setPropertyOnObject(numberFormat,"unit",numberFormatDictionary.getAttribute("unit"));setPropertyOnObject(numberFormat,"decimalSymbol",numberFormatDictionary.getAttribute("decimal-symbol")||
".");setPropertyOnObject(numberFormat,"thousandsSymbol",numberFormatDictionary.getAttribute("thousands-symbol")||",");setPropertyOnObject(numberFormat,"display",numberFormatDictionary.getAttribute("display")||"D");setNumberPropertyOnObject(numberFormat,"precision",numberFormatDictionary.getAttribute("precision")||100);setPropertyOnObject(numberFormat,"unitPrefix",numberFormatDictionary.getAttribute("unit-prefix")||"");setPropertyOnObject(numberFormat,"unitSuffix",numberFormatDictionary.getAttribute("unit-suffix")||
"");setPropertyOnObject(numberFormat,"unitPosition",numberFormatDictionary.getAttribute("unit-position")||"S");return numberFormat};__webpack_exports__.a={getXFDFElements:function(xfdfData){if("string"!==typeof xfdfData)return xfdfData;var parser=new DOMParser;xfdfData=xfdfData.replace(' xmlns="http://www.w3.org/1999/xhtml"',"");parser=parser.parseFromString(xfdfData,"text/xml");0<parser.getElementsByTagName("parsererror").length&&Object(logger__WEBPACK_IMPORTED_MODULE_2__.f)(parser.getElementsByTagName("parsererror")[0].textContent);
return parser},toXMLDate:function(date){var dateStr="D:"+date.getFullYear().toString();dateStr+=_pad((date.getMonth()+1).toString());dateStr+=_pad(date.getDate().toString());dateStr+=_pad(date.getHours().toString());dateStr+=_pad(date.getMinutes().toString());dateStr+=_pad(date.getSeconds().toString());var offset=date.getTimezoneOffset();0===offset?dateStr+="Z00'00'":(0>offset?(dateStr+="+",offset*=-1):dateStr+="-",date=parseInt(offset/60,10),offset%=60,dateStr+=_pad(date.toString())+"'",dateStr+=
_pad(offset.toString())+"'");return dateStr},toDateString:function(date){return date.getFullYear().toString()+"-"+_pad((date.getMonth()+1).toString())+"-"+_pad(date.getDate().toString())+" "+_pad(date.getHours().toString())+":"+_pad(date.getMinutes().toString())+":"+_pad(date.getSeconds().toString())},escape:function(val){val&&(val=Object(lodash__WEBPACK_IMPORTED_MODULE_1__.escape)(val),val=val.replace(/(?:\r\n|\r|\n)/g,"&#xA;"));return val},toFixed:function(val,numDecimals){Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(numDecimals)&&
(numDecimals=2);return parseFloat(val.toFixed(numDecimals)).toString()},getAttribute:getAttribute,getLocalName:getLocalName,getElements:function(data,elementName){var elementList=[];data=data.getElementsByTagName(elementName);if(0===data.length)return elementList;for(var i=0;i<data.length;++i){var elementStr=data[i].outerHTML||data[i].xml;if(Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isUndefined)(elementStr)||0!==elementStr.indexOf("<"+elementName+" "))elementStr=(new XMLSerializer).serializeToString(data[i]);
0>elementStr.indexOf("</"+elementName+">")&&"/"!==elementStr.charAt(elementStr.length-2)&&(elementStr=elementStr.slice(0,elementStr.length-1)+"/"+elementStr.slice(elementStr.length-1));elementList.push(elementStr)}return elementList},hasActions:function(annotData){return getAttribute(annotData,"ActionType")?!0:0<annotData.getElementsByTagName("OnActivation").length},getActionElements:function(annotData){return getAttribute(annotData,"ActionType")?[annotData]:annotData.getElementsByTagName("Action")},
getActionType:function(actionData){if(!actionData)return null;var actionType=getAttribute(actionData,"ActionType");return actionType?actionType:(actionData=getFirstChildElement(actionData))?getLocalName(actionData):null},getFirstChildElement:getFirstChildElement,getAttributeOrChild:function(element,attribName,childName){attribName=getAttribute(element,attribName);Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(attribName)&&(element=element.getElementsByTagName(childName),attribName=0<element.length?
element[0].textContent:null);return attribName},attributeToXODCoordinates:function(x,y,pageMatrix){pageMatrix=pageMatrix.mult({x:Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(x)?0:parseFloat(x),y:Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(y)?0:parseFloat(y)});return{x:Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(x)?null:pageMatrix.x,y:Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(y)?null:pageMatrix.y}},deserializeXODPointsArray:function(pointsString,pageMatrix,callback){pointsString=
pointsString.split(";");for(var pointArray=[],j=0;j<pointsString.length;++j){var pts=pointsString[j].split(","),pt0=parseFloat(pts[0]);pts=parseFloat(pts[1]);pt0=new _util_textSelection__WEBPACK_IMPORTED_MODULE_5__.b(pt0,pts);pt0=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(pt0.x,pt0.y);pageMatrix.mult(pt0);"function"===typeof callback&&callback(pt0);pointArray.push(pt0)}return pointArray},serializePoint:function(point,pageMatrix,coordinateSeparator){if("undefined"===typeof coordinateSeparator||
null===coordinateSeparator)coordinateSeparator=",";if(!(point instanceof _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a))return null;point=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(point.x,point.y);pageMatrix&&pageMatrix.mult(point);return point.x+coordinateSeparator+point.y},deserializePoint:function(pointText,pageMatrix,coordinateSeparator){if("undefined"===typeof coordinateSeparator||null===coordinateSeparator)coordinateSeparator=",";if("string"!==typeof pointText)return null;pointText=pointText.split(coordinateSeparator);
coordinateSeparator=null;2===pointText.length?(coordinateSeparator=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(parseFloat(pointText[0]),parseFloat(pointText[1])),pageMatrix&&pageMatrix.mult(coordinateSeparator)):Object(logger__WEBPACK_IMPORTED_MODULE_2__.f)("Invalid serialized string format.");return coordinateSeparator},serializePointArray:function(pointArray,pageMatrix,coordinateSeparator,pointSeparator){if("undefined"===typeof pointSeparator||null===pointSeparator)pointSeparator=";";if("undefined"===
typeof coordinateSeparator||null===coordinateSeparator)coordinateSeparator=",";for(var string="",i=0;i<pointArray.length;i++){var pt=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(pointArray[i].x,pointArray[i].y);pageMatrix&&pageMatrix.mult(pt);string+=pt.x+coordinateSeparator;string+=pt.y+pointSeparator}return string.substring(0,string.length-1)},deserializePointArray:function(pointArrayText,pageMatrix,coordinateSeparator,pointSeparator){var ptArray=[];if("undefined"===typeof pointSeparator||null===
pointSeparator)pointSeparator=";";if("undefined"===typeof coordinateSeparator||null===coordinateSeparator)coordinateSeparator=",";if(!pointArrayText)return ptArray;pointArrayText=pointArrayText.split(pointSeparator);if(pointSeparator===coordinateSeparator)for(pointSeparator=0;pointSeparator+1<pointArrayText.length;pointSeparator+=2){var newPoint=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(pointArrayText[pointSeparator],pointArrayText[pointSeparator+1]);pageMatrix&&pageMatrix.mult(newPoint);ptArray.push(newPoint)}else for(pointSeparator=
0;pointSeparator<pointArrayText.length;++pointSeparator)pointArrayText[pointSeparator]&&(newPoint=pointArrayText[pointSeparator].split(coordinateSeparator),newPoint[0]&&newPoint[1]&&(newPoint=new _Core_Math__WEBPACK_IMPORTED_MODULE_3__.a(newPoint[0],newPoint[1]),pageMatrix&&pageMatrix.mult(newPoint),ptArray.push(newPoint)));return ptArray},serializeRect:serializeRect,deserializeRect:deserializeRect,serializeFringeRect:function(rect,pageMatrix,separator){var fringeMatrix=new _util_textSelection__WEBPACK_IMPORTED_MODULE_5__.a;
fringeMatrix.initMatrix(pageMatrix);fringeMatrix.m_d*=-1;fringeMatrix.m_h=0;fringeMatrix.m_v=0;return serializeRect(rect,fringeMatrix,separator)},deserializeFringeRect:function(rectString,pageMatrix,separator){var fringeMatrix=new _util_textSelection__WEBPACK_IMPORTED_MODULE_5__.a;fringeMatrix.initMatrix(pageMatrix);fringeMatrix.m_d*=-1;fringeMatrix.m_h=0;fringeMatrix.m_v=0;return deserializeRect(rectString,fringeMatrix,separator)},serializeColor:serializeColor,deserializeColor:function(colorText){if(!(new RegExp(/^#[0-9a-f]{6}$/i)).test(colorText))return null;
var r=parseInt(colorText.substr(1,2),16),g=parseInt(colorText.substr(3,2),16);colorText=parseInt(colorText.substr(5,2),16);return new _Color__WEBPACK_IMPORTED_MODULE_4__.a(r,g,colorText)},deserializeDate:function(dateStr){if(dateStr){var year=parseInt(dateStr.substring(2,6),10),month=parseInt(dateStr.substring(6,8),10)-1,day=parseInt(dateStr.substring(8,10),10),hour=parseInt(dateStr.substring(10,12),10),minute=parseInt(dateStr.substring(12,14),10),second=parseInt(dateStr.substring(14,16),10);year=
new Date(Date.UTC(year,month,day,hour,minute,second,0));dateStr=dateStr.substring(16);7===dateStr.length&&(month=dateStr.substring(0,1),"Z"!==month&&(month="-"===month?1:-1,day=parseInt(dateStr.substring(1,3),10),dateStr=parseInt(dateStr.substring(4,6),10),year.setUTCHours(year.getUTCHours()+month*day),year.setUTCMinutes(year.getUTCMinutes()+month*dateStr)));return year}},getCSSColor:getCSSColor,serializeFont:function(fontName,fontSize){return"/"+fontName.replace(/ /g,"")+" "+fontSize+" Tf"},getStyleFontName:getStyleFontName,
serializeDefaultStyle:function(annotation){var fontSize=annotation.getFontSizePt();return"font: "+getStyleFontName(annotation.Font)+" "+fontSize+"pt; text-align: "+(annotation.TextAlign+"; text-vertical-align: ")+(annotation.TextVerticalAlign+"; color: ")+serializeColor(annotation.TextColor)},serializeContentsStyle:function(annotation){var fontSize=annotation.getFontSizePt();return"font-family: "+annotation.Font+"; font-size: "+(fontSize+"pt; text-align: ")+(annotation.TextAlign+"; color: ")+serializeColor(annotation.TextColor)},
parseDefaultAppearance:function(da){var appearance={str:da};if(!Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(da))for(da=da.split(" ");0<da.length;){var currCommand=da.pop();if(-1!==defaultAppearanceCommands.indexOf(currCommand))switch(currCommand){case "Tf":currCommand=da.pop();var name=da.pop().slice(1);appearance.font={size:currCommand+"pt",name:parseFontName(name),rawName:name};break;case "rg":currCommand=da.pop();name=da.pop();var valR=da.pop();appearance.color=getCSSColor(Math.floor(255*
valR),Math.floor(255*name),Math.floor(255*currCommand))}}return appearance},cssColorToRGB:function(color){if(4===color.length)return{r:parseInt(color.charAt(1),16)/16,g:parseInt(color.charAt(2),16)/16,b:parseInt(color.charAt(3),16)/16};if(7===color.length)return{r:parseInt(color.slice(1,3),16)/255,g:parseInt(color.slice(3,5),16)/255,b:parseInt(color.slice(5,7),16)/255}},parseDefaultStyle:function(ds){var style={};Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isNull)(ds)||ds.split(";").forEach(function(attribute){attribute=
attribute.split(":");if(!(2>attribute.length)){var prop=attribute[0].trim();attribute=attribute[1].trim();switch(prop){case "text-align":style.textAlign=attribute;break;case "text-vertical-align":style.textVerticalAlign=attribute;break;case "color":if(attribute.startsWith("rgb")){var match=/rgb\((\d{1,3}), (\d{1,3}), (\d{1,3})\)/.exec(attribute);null!==match&&(attribute=parseInt(match[1],10),prop=parseInt(match[2],10),match=parseInt(match[3],10),style.color=getCSSColor(attribute,prop,match))}else style.color=
attribute;break;case "font":prop=attribute.split(" ");match=prop[0];var _a=prop[1];/\d/.test(match)&&/pt/.test(match)&&(_a=[_a,match],match=_a[0],_a=_a[1]);match.includes('"')&&(match=match.replace(/['"]+/g,""));"'"===attribute[0]&&(match=attribute.slice(1,attribute.lastIndexOf("'")),_a=prop[prop.length-1]);style.font={name:parseFontName(match),size:_a}}}});return style},parseFontName:parseFontName,parseFontWeight:function(name){return 0<name.indexOf("Bold")?"bold":"normal"},parseFontStyle:function(name){return 0<
name.indexOf("Italic")||0<name.indexOf("Oblique")?"italic":"normal"},setPropertyOnObject:setPropertyOnObject,setNumberPropertyOnObject:setNumberPropertyOnObject,setPropertyOnElement:setPropertyOnElement,serializeMeasure:function(measureDictionary){var measure=document.createElementNS("","measure");setPropertyOnElement(measure,"scale",measureDictionary.scale);var axis=document.createElementNS("","axis");measureDictionary.axis.forEach(function(numberFormat){axis.appendChild(serializeNumberFormat(numberFormat))});
var distance=document.createElementNS("","distance");measureDictionary.distance.forEach(function(numberFormat){distance.appendChild(serializeNumberFormat(numberFormat))});var area=document.createElementNS("","area");measureDictionary.area.forEach(function(numberFormat){area.appendChild(serializeNumberFormat(numberFormat))});measure.appendChild(axis);measure.appendChild(distance);measure.appendChild(area);return measure},deserializeMeasure:function(measureDictionary){var i,measure={};setPropertyOnObject(measure,
"scale",measureDictionary.getAttribute("scale"));measure.axis=[];var numberFormatArray=measureDictionary.querySelector("axis").querySelectorAll("numberformat");for(i=0;i<numberFormatArray.length;i++)measure.axis.push(deserializeNumberFormat(numberFormatArray[i]));measure.distance=[];numberFormatArray=measureDictionary.querySelector("distance").querySelectorAll("numberformat");for(i=0;i<numberFormatArray.length;i++)measure.distance.push(deserializeNumberFormat(numberFormatArray[i]));measure.area=[];
numberFormatArray=measureDictionary.querySelector("area").querySelectorAll("numberformat");for(i=0;i<numberFormatArray.length;i++)measure.area.push(deserializeNumberFormat(numberFormatArray[i]));return measure},serializeNumberFormat:serializeNumberFormat,deserializeNumberFormat:deserializeNumberFormat,serializeRichText:function(contents,style$jscomp$0,globalStyle){var serializeStyle=function(style){var styleStr="";style&&(styleStr=Object.keys(style).map(function(styleName){return styleName+":"+style[styleName]}).join(";"));
return styleStr},rcElement=document.createElementNS("","contents-richtext"),body=document.createElementNS("","body");(globalStyle=serializeStyle(globalStyle))&&body.setAttribute("style",globalStyle);var rootElement=document.createElementNS("","p"),textStyleLocations=Object.keys(style$jscomp$0).map(function(location){return parseInt(location,10)});textStyleLocations.forEach(function(location,i){var cssStyle=style$jscomp$0[location];location=contents.slice(location,i===textStyleLocations.length-1?contents.length:
textStyleLocations[i+1]);i=document.createElementNS("","span");cssStyle=serializeStyle(cssStyle);i.textContent=location;cssStyle&&i.setAttribute("style",cssStyle);rootElement.appendChild(i)});body.appendChild(rootElement);rcElement.appendChild(body);return rcElement},deserializeRichText:function(rcElement){var parseStyle=function(styleStr){var result={};if(!styleStr)return result;styleStr.split(";").forEach(function(style){style=style.split(":");result[style[0]]=style[1]});return result},extractNodes=
function(rootEle){var result=[];if(!rootEle)return result;rootEle.childNodes.forEach(function(node){node.nodeType===Node.TEXT_NODE||1===node.childNodes.length&&node.childNodes[0].nodeType===Node.TEXT_NODE?result.push(node):result=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.d)(result,extractNodes(node))});return result},body=rcElement.querySelector("body");rcElement=rcElement.textContent;var style$jscomp$0=null,globalStyle=null;if(body){var location_1=0;globalStyle=parseStyle(body.getAttribute("style"));
style$jscomp$0={};style$jscomp$0[location_1]=globalStyle;body=extractNodes(body);body.length&&body.forEach(function(node){style$jscomp$0[location_1]=node.getAttribute?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},globalStyle),parseStyle(node.getAttribute("style"))):Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({},globalStyle);location_1+=node.textContent.length})}return{style:style$jscomp$0,globalStyle:globalStyle,contents:rcElement}},prepareLinksForInsertion:function(xfdfString,
pageNumber){var _a,xfdfDoc=(new DOMParser).parseFromString(xfdfString,"text/xml"),annotElements=null===(_a=xfdfDoc.querySelector("annots"))||void 0===_a?void 0:_a.children;if(!annotElements)return xfdfString;for(xfdfString=annotElements.length-1;0<=xfdfString;xfdfString--)_a=annotElements[xfdfString],"link"!==_a.tagName.toLowerCase()?_a.remove():_a.setAttribute("page",""+(pageNumber-1));return(new XMLSerializer).serializeToString(xfdfDoc)},serializeMeasurementCaptionOptions:function(measurementCaptionOptions,
pageMatrix){pageMatrix=serializeRect(measurementCaptionOptions.captionRect,pageMatrix);measurementCaptionOptions=JSON.parse(JSON.stringify(measurementCaptionOptions));measurementCaptionOptions.captionRect=pageMatrix;return JSON.stringify(measurementCaptionOptions)},deserializeMeasurementCaptionOptions:function(optionString,pageMatrix){optionString=JSON.parse(optionString);pageMatrix=deserializeRect(optionString.captionRect,pageMatrix);optionString.captionRect=pageMatrix;return optionString}}},function(module,
__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return ASM});__webpack_require__.d(__webpack_exports__,"d",function(){return WASM});__webpack_require__.d(__webpack_exports__,"b",function(){return JS_WORKER});__webpack_require__.d(__webpack_exports__,"c",function(){return THREADED_WASM});var ASM="asm",WASM="ems",JS_WORKER="jsworker",THREADED_WASM="wasm-threads"},function(module,exports,__webpack_require__){function Duplex(options){if(!(this instanceof
Duplex))return new Duplex(options);Readable.call(this,options);Writable.call(this,options);options&&!1===options.readable&&(this.readable=!1);options&&!1===options.writable&&(this.writable=!1);this.allowHalfOpen=!0;options&&!1===options.allowHalfOpen&&(this.allowHalfOpen=!1);this.once("end",onend)}function onend(){this.allowHalfOpen||this._writableState.ended||pna.nextTick(onEndNT,this)}function onEndNT(self){self.end()}var pna=__webpack_require__(48);exports=Object.keys||function(obj){var keys=[],
key;for(key in obj)keys.push(key);return keys};module.exports=Duplex;module=Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);var Readable=__webpack_require__(67),Writable=__webpack_require__(61);module.inherits(Duplex,Readable);__webpack_require__=exports(Writable.prototype);for(module=0;module<__webpack_require__.length;module++)exports=__webpack_require__[module],Duplex.prototype[exports]||(Duplex.prototype[exports]=Writable.prototype[exports]);Object.defineProperty(Duplex.prototype,
"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Duplex.prototype,"destroyed",{get:function(){return void 0===this._readableState||void 0===this._writableState?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(value){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=value,this._writableState.destroyed=value)}});Duplex.prototype._destroy=function(err,cb){this.push(null);
this.end();pna.nextTick(cb,err)}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"AnnotationManagerEvents",function(){return AnnotationManagerEvents});__webpack_require__.d(__webpack_exports__,"AnnotationManagerPrivateEvents",function(){return AnnotationManagerPrivateEvents});__webpack_require__.d(__webpack_exports__,"DocumentViewerEvents",function(){return DocumentViewerEvents});__webpack_require__.d(__webpack_exports__,
"DocumentViewerPrivateEvents",function(){return DocumentViewerPrivateEvents});__webpack_require__.d(__webpack_exports__,"ContentEditEvents",function(){return ContentEditEvents});__webpack_require__.d(__webpack_exports__,"MeasurementManagerEvents",function(){return MeasurementManagerEvents});__webpack_require__.d(__webpack_exports__,"AnnotationChangedActions",function(){return AnnotationChangedActions});var AnnotationManagerEvents={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"},AnnotationManagerPrivateEvents={ANNOTATION_CHANGED_EDITBOX:"annotationChanged.editbox",ANNOTATION_DOUBLE_CLICKED_EDITBOX:"annotationDoubleClicked.editbox",
ANNOTATION_SELECTED_CROP_TOOL:"annotationSelected.cropTool",ANNOTATION_CHANGED_CROP_TOOL:"annotationChanged.cropTool"},DocumentViewerEvents={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"},DocumentViewerPrivateEvents={ANNOTATIONS_LOADED_INTERNAL:"annotationsLoaded.internal",DOCUMENT_READY_ANNOTS_LOADED:"documentReady.annotsLoaded",PAUSE:"PAUSE",RESUME:"RESUME",END_OF_DOCUMENT_RESULT:"endOfDocumentResult",
CONTENT_REMOVED_ANNOT_MANAGER:"contentRemoved.annotManager",MOUSE_MOVE_HOVER:"mouseMove.hover",BACKEND_SWITCH:"backendSwitch",PAGE_PROGRESSIVE_UPDATE:"pageProgressiveUpdate",ROTATION_UPDATED_TEXT_TOOL:"rotationUpdated.textTool",VISIBLE_PAGES_CHANGED:"visiblePagesChanged",DOCUMENT_READY:"documentReady",BOOKMARKS_UPDATED:"bookmarksUpdated",CONTENT_REMOVED:"contentRemoved"},ContentEditEvents={TEXT_CONTENT_UPDATED:"textContentUpdated",EDIT_BOXES_AVAILABLE:"editBoxesAvailable"},MeasurementManagerEvents=
{SCALE_UPDATED:"scaleUpdated"},AnnotationChangedActions={ADD:"add",DELETE:"delete",MODIFY:"modify"}},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_found_str,_found_start_itr,_found_end_itr,_ambient,_result_str_start,_result_str_end){this._found_str=_found_str;this._found_start_itr=_found_start_itr;this._found_end_itr=_found_end_itr;this._ambient=_ambient;this._result_str_start=_result_str_start;this._result_str_end=_result_str_end;this._found_str=_found_str;
this._found_start_itr=_found_start_itr||0;this._found_end_itr=_found_end_itr||0;this._ambient=_ambient;this._result_str_start=_result_str_start||0;this._result_str_end=_result_str_end||0}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return XODText_TextSearchLowlevelReEscape});var XODText_TextSearchLowlevelReEscape=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");module=function(){return function(text,options){this.isRegex=
options&&("r"===options||"w"===options);this.text=(options&&"w"===options?text.replace(/(\*+|.|\n)/g,function(found){if("*"===found.charAt(0)){if(1===found.length)return".*?";var num_asterisks=found.length/2|0;return 1===((found.length|0)&1)?"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")+".*?":"*".repeat(num_asterisks).replace(XODText_TextSearchLowlevelReEscape,"\\$&")}return found.replace(XODText_TextSearchLowlevelReEscape,"\\$&")}):text).replaceAll("\n"," ")}}();__webpack_exports__.b=
module},function(module,__webpack_exports__,__webpack_require__){var _Matrix2D__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(13);__webpack_require__.d(__webpack_exports__,"a",function(){return _Matrix2D__WEBPACK_IMPORTED_MODULE_0__.a});var _Point2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(19);__webpack_require__.d(__webpack_exports__,"b",function(){return _Point2D__WEBPACK_IMPORTED_MODULE_1__.a});__webpack_require__(12);__webpack_require__(43);__webpack_require__(38);__webpack_require__(54);
__webpack_require__(44);__webpack_require__(7);__webpack_require__(16);__webpack_require__(81);__webpack_require__(82);__webpack_require__(83);__webpack_require__(21);__webpack_require__(45);__webpack_require__(55);__webpack_require__(34);__webpack_require__(35);module=__webpack_require__(86);__webpack_require__.n(module)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"b",function(){return isNullOrEmpty});__webpack_require__.d(__webpack_exports__,
"a",function(){return insertString});var isNullOrEmpty=function(s){return!s||!s.length},insertString=function(s,index,value){if(!value)return s;if(!index)return value+s;var s1=s.substr(0,index);s=s.substr(index);return s1+value+s}},function(module,__webpack_exports__,__webpack_require__){module=function(){function Highlight(){this._length=this._position=this._page_num=0}Highlight.prototype._initDefault=function(){this._length=this._position=this._page_num=0};Highlight.prototype._initMembers=function(pg,
off,len){this._page_num=pg;this._position=off;this._length=len};Highlight.prototype._initHighlight=function(hl){this._page_num=hl._page_num;this._position=hl._position;this._length=hl._length};return Highlight}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return RTL});__webpack_require__.d(__webpack_exports__,"b",function(){return getScrollViewDirection});var RTL="rtl",getScrollViewDirection=function(){}},
function(module,__webpack_exports__,__webpack_require__){function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(30),_Enum;module=function(options){this._set={};this._mask=null;this._unsupported=0;Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(options)&&
(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(options.mask)&&this.extendMask(options.mask),options.onUpdate&&(this._onUpdate=options.onUpdate))};module.READ_ONLY="ReadOnly";module.REQUIRED="Required";module.NO_EXPORT="NoExport";module.MULTILINE="Multiline";module.PASSWORD="Password";module.COMB="Comb";module.NO_TOGGLE_TO_OFF="NoToggleToOff";module.RADIO="Radio";module.PUSH_BUTTON="PushButton";module.COMBO="Combo";module.EDIT="Edit";module.DO_NOT_SCROLL="DoNotScroll";module.RADIOS_IN_UNISON=
"RadiosInUnison";module.FILE_SELECT="FileSelect";module.DO_NOT_SPELL_CHECK="DoNotSpellCheck";module.RICH_TEXT="RichText";module.SORT="Sort";module.MULTI_SELECT="MultiSelect";module.COMMIT_ON_SEL_CHANGE="CommitOnSelChange";module.prototype={Enum:(_Enum={},_defineProperty(_Enum,module.READ_ONLY,1),_defineProperty(_Enum,module.REQUIRED,2),_defineProperty(_Enum,module.NO_EXPORT,4),_defineProperty(_Enum,module.MULTILINE,4096),_defineProperty(_Enum,module.PASSWORD,8192),_defineProperty(_Enum,module.NO_TOGGLE_TO_OFF,
16384),_defineProperty(_Enum,module.RADIO,32768),_defineProperty(_Enum,module.PUSH_BUTTON,65536),_defineProperty(_Enum,module.COMBO,131072),_defineProperty(_Enum,module.EDIT,262144),_defineProperty(_Enum,module.DO_NOT_SCROLL,8388608),_defineProperty(_Enum,module.RADIOS_IN_UNISON,33554432),_Enum),clear:function(){this._set={};this._onUpdate&&this._onUpdate()},extendMask:function(mask){Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isNull)(this._mask)&&(this._mask={});for(var length=mask.length,i=0;i<length;++i){var name=
mask[i];this._mask[name]=this.Enum[name]||0}},decipherBitField:function(flags){var result=[],Enum=this._mask||this.Enum;Object.keys(Enum).forEach(function(name){0!==(flags&Enum[name])&&(flags&=~Enum[name],result.push(name))});return{result:result,unsupported:flags}},get:function(flag){return!!this._set[flag]},toBitfield:function(){var _this=this,result=0;Object.keys(this._set).forEach(function(flag){_this._set.hasOwnProperty(flag)&&!0===_this._set[flag]&&(result|=_this.Enum[flag])});return result|
this._unsupported},toArray:function(){var me=this;return Object.keys(this._set).filter(function(k){return me._set[k]})},deserialize:function(element){element=_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.getAttribute(element,"Ff");this.set(parseInt(element,10))},serialize:function(element){element.setAttribute("Ff",String(this.toBitfield()))},set:function(options,shouldSet){if(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(options)){shouldSet=options.length;for(var i=0;i<shouldSet;++i)this.set(options[i])}else Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isNumber)(options)?
(options=this.decipherBitField(options),this._unsupported|=options.unsupported,this.set(options.result)):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(options)&&(i=!0,Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(shouldSet)||(i=!!shouldSet),this._mask?Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(this._mask[options])?this._unsupported|=this.Enum[options]||0:this._set[options]=i:this._set[options]=i,this._onUpdate&&this._onUpdate())}};__webpack_exports__.a=module},function(module,
exports,__webpack_require__){exports=module.exports=__webpack_require__(67);exports.Stream=exports;exports.Readable=exports;exports.Writable=__webpack_require__(61);exports.Duplex=__webpack_require__(32);exports.Transform=__webpack_require__(72);exports.PassThrough=__webpack_require__(122)},function(module,exports,__webpack_require__){exports.isArray=function(arg){return Array.isArray?Array.isArray(arg):"[object Array]"===Object.prototype.toString.call(arg)};exports.isBoolean=function(arg){return"boolean"===
typeof arg};exports.isNull=function(arg){return null===arg};exports.isNullOrUndefined=function(arg){return null==arg};exports.isNumber=function(arg){return"number"===typeof arg};exports.isString=function(arg){return"string"===typeof arg};exports.isSymbol=function(arg){return"symbol"===typeof arg};exports.isUndefined=function(arg){return void 0===arg};exports.isRegExp=function(re){return"[object RegExp]"===Object.prototype.toString.call(re)};exports.isObject=function(arg){return"object"===typeof arg&&
null!==arg};exports.isDate=function(d){return"[object Date]"===Object.prototype.toString.call(d)};exports.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)||e instanceof Error};exports.isFunction=function(arg){return"function"===typeof arg};exports.isPrimitive=function(arg){return null===arg||"boolean"===typeof arg||"number"===typeof arg||"string"===typeof arg||"symbol"===typeof arg||"undefined"===typeof arg};exports.isBuffer=__webpack_require__(25).Buffer.isBuffer},function(module,
__webpack_exports__,__webpack_require__){var _Quad__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12),_HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(54),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(24),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(37);module=function(){function Highlights(){this._m_HighlightSet=null}Highlights._compare=function(p1,p2){return p1._page_num<
p2._page_num||p1._page_num===p2._page_num&&p1._position<p2._position||p1._page_num===p2._page_num&&p1._position===p2._position&&p1._length<p2._length?-1:p1._page_num===p2._page_num&&p1._position===p2._position&&p1._length===p2._length?0:1};Highlights.prototype._init=function(){this._m_HighlightSet=[]};Highlights.prototype._initAdd=function(hlts){this._addSet(hlts)};Highlights.prototype._add=function(hlt){this._m_HighlightSet.push(hlt)};Highlights.prototype._addSet=function(hlts){for(hlts=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(hlts._m_HighlightSet);hlts.moveNext();)this._m_HighlightSet.push(hlts.current)};
Highlights.prototype._getSize=function(){return this._m_HighlightSet.length};Highlights.prototype._clear=function(){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(this._m_HighlightSet)};Highlights.prototype._computeDocInfo=function(pages,infos){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(infos);for(var hlt_list=[],$enum1=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(this._m_HighlightSet);$enum1.moveNext();){var hlt=$enum1.current;hlt_list.push(hlt)}hlt_list.sort(Highlights._compare);
$enum1="";for(var offsets,quads=[],map_off_to_id=[],max_off=-2147483648,i=0;i<hlt_list.length;++i)if(hlt=hlt_list[i],!(0>hlt._page_num||hlt._page_num>=pages.length||0>hlt._position||0>=hlt._length)){if(-1!==hlt._page_num){quads=pages[hlt._page_num].text;if(null===quads||!quads.ready())return!1;$enum1=quads.getStr();offsets=quads.getOffsets();quads=quads.getQuads();if(!$enum1.length||$enum1.length!==offsets.length||8*$enum1.length!==quads.length)continue;max_off=-2147483648;for(var $enum2=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_2__.a)(offsets);$enum2.moveNext();){var o=
$enum2.current;o>max_off&&(max_off=o)}Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_3__.b)(map_off_to_id);for(var j=0;j<max_off+1;++j)map_off_to_id.push(-1);for(j=0;j<offsets.length;++j)$enum2=offsets[j],0<=$enum2&&(map_off_to_id[$enum2]=j)}offsets=Array(8);for($enum2=hlt._position;$enum2<hlt._position+hlt._length&&!($enum2>max_off);++$enum2)if(o=map_off_to_id[$enum2],!(0>o)){for(j=0;8>j;++j)offsets[j]=quads[8*o+j];var merged=!1;if(1<=infos.length&&(j=infos[infos.length-1],j._page_num===hlt._page_num)){var x=
offsets[0]-offsets[2],y=offsets[1]-offsets[3];_Quad__WEBPACK_IMPORTED_MODULE_0__.a._merge(j._quad,offsets,1,!0,1.33*Math.sqrt(x*x+y*y))&&(merged=$enum1.charAt(o),Object(_helpers_stringHelper__WEBPACK_IMPORTED_MODULE_4__.a)(j._str,j._str.length,merged),merged=!0)}merged||(merged=$enum1.charAt(o),o=new _HighlightDocInfo__WEBPACK_IMPORTED_MODULE_1__.a,o._initMembers(hlt._page_num,merged,offsets),infos.push(o))}}return 0<infos.length};return Highlights}();__webpack_exports__.a=module},function(module,
__webpack_exports__,__webpack_require__){var _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(20);module=function(){return function(){this._m_transformed_bbox=new _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__.a;this._m_bbox=new _selectionInfo_SelectionRect__WEBPACK_IMPORTED_MODULE_0__.a;this._m_last_line=this._m_first_line=null}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_first_line,
_last_line){this._first_line=_first_line;this._last_line=_last_line;this._first_line=_first_line;this._last_line=_last_line}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function nsIDOMCanvasGradient(){}nsIDOMCanvasGradient.prototype.A=function(stop,color){};nsIDOMCanvasGradient.prototype.addColorStop=function(stop,color){};return nsIDOMCanvasGradient}();__webpack_exports__.a=module},function(module$jscomp$0,exports){module$jscomp$0.exports=
function(module){module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1);return module}},function(module,exports,__webpack_require__){(function(process){function nextTick(fn,arg1,arg2,arg3){if("function"!==typeof fn)throw new TypeError('"callback" argument must be a function');
var len=arguments.length;switch(len){case 0:case 1:return process.nextTick(fn);case 2:return process.nextTick(function(){fn.call(null,arg1)});case 3:return process.nextTick(function(){fn.call(null,arg1,arg2)});case 4:return process.nextTick(function(){fn.call(null,arg1,arg2,arg3)});default:var args=Array(len-1);for(len=0;len<args.length;)args[len++]=arguments[len];return process.nextTick(function(){fn.apply(null,args)})}}"undefined"===typeof process||!process.version||0===process.version.indexOf("v0.")||
0===process.version.indexOf("v1.")&&0!==process.version.indexOf("v1.8.")?module.exports={nextTick:nextTick}:module.exports=process}).call(this,__webpack_require__(22))},function(module,exports,__webpack_require__){function copyProps(src,dst){for(var key in src)dst[key]=src[key]}function SafeBuffer(arg,encodingOrOffset,length){return Buffer(arg,encodingOrOffset,length)}var buffer=__webpack_require__(25),Buffer=buffer.Buffer;Buffer.from&&Buffer.alloc&&Buffer.allocUnsafe&&Buffer.allocUnsafeSlow?module.exports=
buffer:(copyProps(buffer,exports),exports.Buffer=SafeBuffer);copyProps(Buffer,SafeBuffer);SafeBuffer.from=function(arg,encodingOrOffset,length){if("number"===typeof arg)throw new TypeError("Argument must not be a number");return Buffer(arg,encodingOrOffset,length)};SafeBuffer.alloc=function(size,fill,encoding){if("number"!==typeof size)throw new TypeError("Argument must be a number");size=Buffer(size);void 0!==fill?"string"===typeof encoding?size.fill(fill,encoding):size.fill(fill):size.fill(0);return size};
SafeBuffer.allocUnsafe=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return Buffer(size)};SafeBuffer.allocUnsafeSlow=function(size){if("number"!==typeof size)throw new TypeError("Argument must be a number");return buffer.SlowBuffer(size)}},function(module,exports,__webpack_require__){module="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;exports.assign=function(obj){for(var sources=Array.prototype.slice.call(arguments,
1);sources.length;){var source=sources.shift();if(source){if("object"!==typeof source)throw new TypeError(source+"must be non-object");for(var p in source)Object.prototype.hasOwnProperty.call(source,p)&&(obj[p]=source[p])}}return obj};exports.shrinkBuf=function(buf,size){if(buf.length===size)return buf;if(buf.subarray)return buf.subarray(0,size);buf.length=size;return buf};var fnTyped={arraySet:function(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray)dest.set(src.subarray(src_offs,
src_offs+len),dest_offs);else for(var i=0;i<len;i++)dest[dest_offs+i]=src[src_offs+i]},flattenChunks:function(chunks){var l,len;var i=len=0;for(l=chunks.length;i<l;i++)len+=chunks[i].length;var result=new Uint8Array(len);i=len=0;for(l=chunks.length;i<l;i++){var chunk=chunks[i];result.set(chunk,len);len+=chunk.length}return result}},fnUntyped={arraySet:function(dest,src,src_offs,len,dest_offs){for(var i=0;i<len;i++)dest[dest_offs+i]=src[src_offs+i]},flattenChunks:function(chunks){return[].concat.apply([],
chunks)}};exports.setTyped=function(on){on?(exports.Buf8=Uint8Array,exports.Buf16=Uint16Array,exports.Buf32=Int32Array,exports.assign(exports,fnTyped)):(exports.Buf8=Array,exports.Buf16=Array,exports.Buf32=Array,exports.assign(exports,fnUntyped))};exports.setTyped(module)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(10);__webpack_require__(39)},function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
var _Point__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(17),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53);module=function(){function Rect(x1,y1,x2,y2){void 0===x1&&(x1=0);void 0===y1&&(y1=0);void 0===x2&&(x2=0);void 0===y2&&(y2=0);x1 instanceof Rect?(this.x1=x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(x1)?(this.x1=x1[0],this.y1=x1[1],this.x2=x1[2],this.y2=x1[3]):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isObject)(x1)?(this.x1=
x1.x1,this.y1=x1.y1,this.x2=x1.x2,this.y2=x1.y2):(this.x1=x1,this.y1=y1,this.x2=x2,this.y2=y2)}Rect.intersects=function(rect1,rect2){var bottomTop=rect1.getBottom()<rect2.getTop(),topBottom=rect1.getTop()>rect2.getBottom(),leftRight=rect1.getLeft()>rect2.getRight();rect1=rect1.getRight()<rect2.getLeft();return!(leftRight||rect1||bottomTop||topBottom)};Rect.contains=function(rect,container){var bottomTop=rect.getTop()<=container.getTop(),topBottom=rect.getBottom()>=container.getBottom(),leftRight=
rect.getLeft()<=container.getLeft();rect=rect.getRight()>=container.getRight();return leftRight&&rect&&bottomTop&&topBottom};Rect.createFromDimensions=function(x,y,width,height){return new Rect(x,y,x+width,y+height)};Rect.prototype.getX=function(){return this.x1};Rect.prototype.getY=function(){return this.y1};Rect.prototype.getLeft=function(){return this.x1};Rect.prototype.getRight=function(){return this.x2};Rect.prototype.getTop=function(){return this.y1};Rect.prototype.getBottom=function(){return this.y2};
Rect.prototype.getWidth=function(){return this.x2-this.x1};Rect.prototype.getHeight=function(){return this.y2-this.y1};Rect.prototype.getCenter=function(){var halfWidth=this.getWidth()/2,halfHeight=this.getHeight()/2,center=this.getTopLeft();center.translate(halfWidth,halfHeight);return center};Rect.prototype.getTopLeft=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y1)};Rect.prototype.getTopRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y1)};
Rect.prototype.getBottomLeft=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x1,this.y2)};Rect.prototype.getBottomRight=function(){return new _Point__WEBPACK_IMPORTED_MODULE_1__.a(this.x2,this.y2)};Rect.prototype.translate=function(x,y){this.x1+=x;this.y1+=y;this.x2+=x;this.y2+=y};Rect.prototype.fitTo=function(boundaryRect){var tx=0,ty=0;if(this.getWidth()<=boundaryRect.getWidth()){var dx2=boundaryRect.x2-this.x2;0>dx2&&(tx=dx2);dx2=boundaryRect.x1-this.x1;0<dx2&&(tx=dx2)}this.getHeight()<=
boundaryRect.getHeight()&&(dx2=boundaryRect.y2-this.y2,0>dx2&&(ty=dx2),boundaryRect=boundaryRect.y1-this.y1,0<boundaryRect&&(ty=boundaryRect));this.translate(tx,ty)};Rect.prototype.normalize=function(){if(0>this.getWidth()){var temp=this.x1;this.x1=this.x2;this.x2=temp}0>this.getHeight()&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};Rect.prototype.fitToBoundary=function(boundaryWidth,boundaryHeight){this.x2=Math.min(this.x2,boundaryWidth-1);this.y2=Math.min(this.y2,boundaryHeight-1)};Rect.prototype.exportNormalize=
function(){if(this.x1>this.x2){var temp=this.x1;this.x1=this.x2;this.x2=temp}this.y2>this.y1&&(temp=this.y1,this.y1=this.y2,this.y2=temp)};Rect.prototype.isEqual=function(otherRect){return this.x1===otherRect.x1&&this.y1===otherRect.y1&&this.x2===otherRect.x2&&this.y2===otherRect.y2};Rect.prototype.equalTo=function(otherRect){return this.isEqual(otherRect)};Rect.prototype.isZeroRect=function(){return 0===this.x1&&0===this.y1&&0===this.x2&&0===this.y2};Rect.prototype.isExceeding=function(otherRect){return this.x1<
otherRect.x1||this.x2>otherRect.x2||this.y1<otherRect.y1||this.y2>otherRect.y2};Rect.prototype.intersects=function(otherRect){return Rect.intersects(this,otherRect)};Rect.prototype.contains=function(otherRect){return Rect.contains(this,otherRect)};Rect.prototype.transform=function(transform){var topLeft=this.getTopLeft(),bottomRight=this.getBottomRight();topLeft.transform(transform);bottomRight.transform(transform);this.x1=Math.min(topLeft.getX(),bottomRight.getX());this.y1=Math.min(topLeft.getY(),
bottomRight.getY());this.x2=Math.max(topLeft.getX(),bottomRight.getX());this.y2=Math.max(topLeft.getY(),bottomRight.getY())};Rect.prototype.toQuad=function(){var bottomLeft=this.getBottomLeft(),bottomRight=this.getBottomRight(),topRight=this.getTopRight(),topLeft=this.getTopLeft();return new _Quad__WEBPACK_IMPORTED_MODULE_2__.a(bottomLeft.X,bottomLeft.Y,bottomRight.X,bottomRight.Y,topRight.X,topRight.Y,topLeft.X,topLeft.Y)};return Rect}();__webpack_exports__.a=module},function(module,__webpack_exports__,
__webpack_require__){var _Rect__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(52);module=function(){function Quad(x1,y1,x2,y2,x3,y3,x4,y4){this.x1=x1;this.y1=y1;this.x2=x2;this.y2=y2;this.x3=x3;this.y3=y3;this.x4=x4;this.y4=y4}Quad.prototype.normalize=function(){};Quad.prototype.getArrayQuad=function(){var tmp=[];tmp.push(this.x1);tmp.push(this.y1);tmp.push(this.x2);tmp.push(this.y2);tmp.push(this.x3);tmp.push(this.y3);tmp.push(this.x4);tmp.push(this.y4);return tmp};Quad.prototype.toRect=function(){return new _Rect__WEBPACK_IMPORTED_MODULE_0__.a(this.x4,
this.y4,this.x2,this.y2)};return Quad}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function HighlightDocInfo(){this._page_num=0;this._quad=this._str=null}HighlightDocInfo.prototype._initDefault=function(){this._page_num=0;this._str="";this._quad=Array(8)};HighlightDocInfo.prototype._initMembers=function(pn,s,q){this._page_num=pn;this._str=s;this._quad=Array(8);for(pn=0;8>pn;++pn)this._quad[pn]=q[pn]};HighlightDocInfo.prototype._initHDI=
function(hdi){this._page_num=hdi._page_num;this._str=hdi._str;this._quad=Array(8);for(var i=0;8>i;++i)this._quad[i]=hdi._quad[i]};return HighlightDocInfo}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(_s,_e){this._s=_s;this._e=_e;this._s=_s||0;this._e=_e||0}}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){function Letter(ch,quad){this._m_ch=ch;this._m_quad=Array(8);
this._m_quad[0]=quad[0];this._m_quad[1]=quad[1];this._m_quad[2]=quad[2];this._m_quad[3]=quad[3];this._m_quad[4]=quad[4];this._m_quad[5]=quad[5];this._m_quad[6]=quad[6];this._m_quad[7]=quad[7]}Letter.prototype.getQuad=function(){for(var quad=Array(8),i=0;8>i;i++)quad[i]=this._m_quad[i];return quad};Letter.prototype.getChar=function(){return this._m_ch};return Letter}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){module=function(){return function(val){void 0===
val&&(val=0);this.W=this.width=val}}();__webpack_exports__.a=module},function(module$jscomp$2,exports$jscomp$1,__webpack_require__){(function(Buffer,global$jscomp$0,process$jscomp$0,module$jscomp$1){function _typeof2(obj$jscomp$0){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof2(obj$jscomp$0)}
var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(root,factory){"object"===_typeof2(exports$jscomp$1)&&"object"===_typeof2(module$jscomp$1)?module$jscomp$1.exports=factory():!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=factory,__WEBPACK_AMD_DEFINE_RESULT__="function"===typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports$jscomp$1,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,void 0!==
__WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$1.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this,function(){return function(modules){function __w_pdfjs_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__w_pdfjs_require__);module.l=!0;return module.exports}var installedModules={};__w_pdfjs_require__.m=modules;__w_pdfjs_require__.c=installedModules;
__w_pdfjs_require__.d=function(exports,name,getter){__w_pdfjs_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})};__w_pdfjs_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__w_pdfjs_require__.t=function(value,mode){mode&1&&(value=__w_pdfjs_require__(value));if(mode&8||mode&4&&"object"===_typeof2(value)&&value&&
value.__esModule)return value;var ns=Object.create(null);__w_pdfjs_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__w_pdfjs_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__w_pdfjs_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__w_pdfjs_require__.d(getter,"a",getter);return getter};
__w_pdfjs_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__w_pdfjs_require__.p="";return __w_pdfjs_require__(__w_pdfjs_require__.s=0)}([function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(1);var pdfjsDisplayAPI=__w_pdfjs_require__(184),pdfjsDisplayTextLayer=__w_pdfjs_require__(199),pdfjsDisplayAnnotationLayer=__w_pdfjs_require__(200),pdfjsDisplayDisplayUtils=__w_pdfjs_require__(188),pdfjsDisplaySVG=__w_pdfjs_require__(201),pdfjsDisplayWorkerOptions=
__w_pdfjs_require__(193),pdfjsDisplayAPICompatibility=__w_pdfjs_require__(190);if(__w_pdfjs_require__(48).isNodeJS){var PDFNodeStream=__w_pdfjs_require__(202).PDFNodeStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return new PDFNodeStream(params)})}else{var PDFNetworkStream=__w_pdfjs_require__(205).PDFNetworkStream;if(pdfjsDisplayDisplayUtils.isFetchSupported())var PDFFetchStream=__w_pdfjs_require__(206).PDFFetchStream;pdfjsDisplayAPI.setPDFNetworkStreamFactory(function(params){return PDFFetchStream&&
pdfjsDisplayDisplayUtils.isValidFetchUrl(params.url)?new PDFFetchStream(params):new PDFNetworkStream(params)})}exports.build=pdfjsDisplayAPI.build;exports.version=pdfjsDisplayAPI.version;exports.getDocument=pdfjsDisplayAPI.getDocument;exports.LoopbackPort=pdfjsDisplayAPI.LoopbackPort;exports.PDFDataRangeTransport=pdfjsDisplayAPI.PDFDataRangeTransport;exports.PDFWorker=pdfjsDisplayAPI.PDFWorker;exports.renderTextLayer=pdfjsDisplayTextLayer.renderTextLayer;exports.AnnotationLayer=pdfjsDisplayAnnotationLayer.AnnotationLayer;
exports.createPromiseCapability=module.createPromiseCapability;exports.PasswordResponses=module.PasswordResponses;exports.InvalidPDFException=module.InvalidPDFException;exports.MissingPDFException=module.MissingPDFException;exports.SVGGraphics=pdfjsDisplaySVG.SVGGraphics;exports.NativeImageDecoding=module.NativeImageDecoding;exports.CMapCompressionType=module.CMapCompressionType;exports.PermissionFlag=module.PermissionFlag;exports.UnexpectedResponseException=module.UnexpectedResponseException;exports.OPS=
module.OPS;exports.VerbosityLevel=module.VerbosityLevel;exports.UNSUPPORTED_FEATURES=module.UNSUPPORTED_FEATURES;exports.createValidAbsoluteUrl=module.createValidAbsoluteUrl;exports.createObjectURL=module.createObjectURL;exports.removeNullCharacters=module.removeNullCharacters;exports.shadow=module.shadow;exports.Util=module.Util;exports.RenderingCancelledException=pdfjsDisplayDisplayUtils.RenderingCancelledException;exports.getFilenameFromUrl=pdfjsDisplayDisplayUtils.getFilenameFromUrl;exports.LinkTarget=
pdfjsDisplayDisplayUtils.LinkTarget;exports.addLinkAttributes=pdfjsDisplayDisplayUtils.addLinkAttributes;exports.loadScript=pdfjsDisplayDisplayUtils.loadScript;exports.PDFDateString=pdfjsDisplayDisplayUtils.PDFDateString;exports.GlobalWorkerOptions=pdfjsDisplayWorkerOptions.GlobalWorkerOptions;exports.apiCompatibilityParams=pdfjsDisplayAPICompatibility.apiCompatibilityParams},function(module,exports,__w_pdfjs_require__){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=
props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:
function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
return self}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&
_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function warn(msg){verbosity>=VerbosityLevel.WARNINGS&&console.log("Warning: ".concat(msg))}function unreachable(msg){throw Error(msg);}function assert(cond,msg){cond||unreachable(msg)}function stringToBytes(str){assert("string"===typeof str,"Invalid argument for stringToBytes");for(var length=
str.length,bytes=new Uint8Array(length),i=0;i<length;++i)bytes[i]=str.charCodeAt(i)&255;return bytes}function arrayByteLength(arr){if(void 0!==arr.length)return arr.length;assert(void 0!==arr.byteLength);return arr.byteLength}Object.defineProperty(exports,"__esModule",{value:!0});exports.arrayByteLength=arrayByteLength;exports.arraysToBytes=function(arr){var length=arr.length;if(1===length&&arr[0]instanceof Uint8Array)return arr[0];for(var resultLength=0,i=0;i<length;i++)resultLength+=arrayByteLength(arr[i]);
i=0;resultLength=new Uint8Array(resultLength);for(var _i=0;_i<length;_i++){var item=arr[_i];item instanceof Uint8Array||(item="string"===typeof item?stringToBytes(item):new Uint8Array(item));var itemLength=item.byteLength;resultLength.set(item,i);i+=itemLength}return resultLength};exports.assert=assert;exports.bytesToString=function(bytes){assert(null!==bytes&&"object"===_typeof(bytes)&&void 0!==bytes.length,"Invalid argument for bytesToString");var length=bytes.length;if(8192>length)return String.fromCharCode.apply(null,
bytes);for(var strBuf=[],i=0;i<length;i+=8192){var chunk=bytes.subarray(i,Math.min(i+8192,length));strBuf.push(String.fromCharCode.apply(null,chunk))}return strBuf.join("")};exports.createPromiseCapability=function(){var capability=Object.create(null),isSettled=!1;Object.defineProperty(capability,"settled",{get:function(){return isSettled}});capability.promise=new Promise(function(resolve,reject){capability.resolve=function(data){isSettled=!0;resolve(data)};capability.reject=function(reason){isSettled=
!0;reject(reason)}});return capability};exports.getVerbosityLevel=function(){return verbosity};exports.info=function(msg){verbosity>=VerbosityLevel.INFOS&&console.log("Info: ".concat(msg))};exports.isArrayBuffer=function(v){return"object"===_typeof(v)&&null!==v&&void 0!==v.byteLength};exports.isArrayEqual=function(arr1,arr2){return arr1.length!==arr2.length?!1:arr1.every(function(element,index){return element===arr2[index]})};exports.isBool=function(v){return"boolean"===typeof v};exports.isEmptyObj=
function(obj){for(var key in obj)return!1;return!0};exports.isNum=function(v){return"number"===typeof v};exports.isString=function(v){return"string"===typeof v};exports.isSpace=function(ch){return 32===ch||9===ch||13===ch||10===ch};exports.isSameOrigin=function(baseUrl,otherUrl){try{var base=new URL(baseUrl);if(!base.origin||"null"===base.origin)return!1}catch(e){return!1}baseUrl=new URL(otherUrl,base);return base.origin===baseUrl.origin};exports.createValidAbsoluteUrl=function(url,baseUrl){if(!url)return null;
try{var absoluteUrl=baseUrl?new URL(url,baseUrl):new URL(url);a:if(absoluteUrl)switch(absoluteUrl.protocol){case "http:":case "https:":case "ftp:":case "mailto:":case "tel:":var JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=!1}else JSCompiler_inline_result=!1;if(JSCompiler_inline_result)return absoluteUrl}catch(ex){}return null};exports.isLittleEndian=function(){var buffer8=new Uint8Array(4);buffer8[0]=1;return 1===(new Uint32Array(buffer8.buffer,0,1))[0]};exports.isEvalSupported=
function(){try{return new Function(""),!0}catch(e){return!1}};exports.log2=function(x){return 0>=x?0:Math.ceil(Math.log2(x))};exports.readInt8=function(data,start){return data[start]<<24>>24};exports.readUint16=function(data,offset){return data[offset]<<8|data[offset+1]};exports.readUint32=function(data,offset){return(data[offset]<<24|data[offset+1]<<16|data[offset+2]<<8|data[offset+3])>>>0};exports.removeNullCharacters=function(str){return"string"!==typeof str?(warn("The argument for removeNullCharacters must be a string."),
str):str.replace(NullCharactersRegExp,"")};exports.setVerbosityLevel=function(level){Number.isInteger(level)&&(verbosity=level)};exports.shadow=function(obj,prop,value){Object.defineProperty(obj,prop,{value:value,enumerable:!0,configurable:!0,writable:!1});return value};exports.string32=function(value){return String.fromCharCode(value>>24&255,value>>16&255,value>>8&255,value&255)};exports.stringToBytes=stringToBytes;exports.stringToPDFString=function(str){var length=str.length,strBuf=[];if("\u00fe"===
str[0]&&"\u00ff"===str[1])for(var i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i)<<8|str.charCodeAt(i+1)));else if("\u00ff"===str[0]&&"\u00fe"===str[1])for(i=2;i<length;i+=2)strBuf.push(String.fromCharCode(str.charCodeAt(i+1)<<8|str.charCodeAt(i)));else for(i=0;i<length;++i){var code=PDFStringTranslateTable[str.charCodeAt(i)];strBuf.push(code?String.fromCharCode(code):str.charAt(i))}return strBuf.join("")};exports.stringToUTF8String=function(str){return decodeURIComponent(escape(str))};
exports.utf8StringToString=function(str){return unescape(encodeURIComponent(str))};exports.warn=warn;exports.unreachable=unreachable;exports.createObjectURL=exports.FormatError=exports.Util=exports.UnknownErrorException=exports.UnexpectedResponseException=exports.TextRenderingMode=exports.StreamType=exports.PermissionFlag=exports.PasswordResponses=exports.PasswordException=exports.NativeImageDecoding=exports.MissingPDFException=exports.InvalidPDFException=exports.AbortException=exports.CMapCompressionType=
exports.ImageKind=exports.FontType=exports.AnnotationType=exports.AnnotationStateModelType=exports.AnnotationReviewState=exports.AnnotationReplyType=exports.AnnotationMarkedState=exports.AnnotationFlag=exports.AnnotationFieldFlag=exports.AnnotationBorderStyleType=exports.UNSUPPORTED_FEATURES=exports.VerbosityLevel=exports.OPS=exports.IDENTITY_MATRIX=exports.FONT_IDENTITY_MATRIX=exports.BaseException=void 0;__w_pdfjs_require__(2);exports.IDENTITY_MATRIX=[1,0,0,1,0,0];exports.FONT_IDENTITY_MATRIX=[.001,
0,0,.001,0,0];exports.NativeImageDecoding={NONE:"none",DECODE:"decode",DISPLAY:"display"};exports.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};exports.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};exports.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};
exports.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};exports.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};exports.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};exports.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",
CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};exports.AnnotationReplyType={GROUP:"Group",REPLY:"R"};exports.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};exports.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,
COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};exports.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};exports.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};exports.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",
TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};var VerbosityLevel={ERRORS:0,WARNINGS:1,INFOS:5};exports.VerbosityLevel=VerbosityLevel;exports.CMapCompressionType={NONE:0,BINARY:1,STREAM:2};exports.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,
closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,
setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,
paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};exports.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",smask:"smask",shadingPattern:"shadingPattern",font:"font"};exports.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var verbosity=VerbosityLevel.WARNINGS;module=function(){function BaseException(message){this.constructor===
BaseException&&unreachable("Cannot initialize BaseException.");this.message=message;this.name=this.constructor.name}BaseException.prototype=Error();return BaseException.constructor=BaseException}();exports.BaseException=module;__w_pdfjs_require__=function(_BaseException){function PasswordException(msg,code){_classCallCheck(this,PasswordException);msg=_possibleConstructorReturn(this,_getPrototypeOf(PasswordException).call(this,msg));msg.code=code;return msg}_inherits(PasswordException,_BaseException);
return PasswordException}(module);exports.PasswordException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException2){function UnknownErrorException(msg,details){_classCallCheck(this,UnknownErrorException);msg=_possibleConstructorReturn(this,_getPrototypeOf(UnknownErrorException).call(this,msg));msg.details=details;return msg}_inherits(UnknownErrorException,_BaseException2);return UnknownErrorException}(module);exports.UnknownErrorException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException3){function InvalidPDFException(){_classCallCheck(this,
InvalidPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(InvalidPDFException).apply(this,arguments))}_inherits(InvalidPDFException,_BaseException3);return InvalidPDFException}(module);exports.InvalidPDFException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException4){function MissingPDFException(){_classCallCheck(this,MissingPDFException);return _possibleConstructorReturn(this,_getPrototypeOf(MissingPDFException).apply(this,arguments))}_inherits(MissingPDFException,_BaseException4);
return MissingPDFException}(module);exports.MissingPDFException=__w_pdfjs_require__;__w_pdfjs_require__=function(_BaseException5){function UnexpectedResponseException(msg,status){_classCallCheck(this,UnexpectedResponseException);msg=_possibleConstructorReturn(this,_getPrototypeOf(UnexpectedResponseException).call(this,msg));msg.status=status;return msg}_inherits(UnexpectedResponseException,_BaseException5);return UnexpectedResponseException}(module);exports.UnexpectedResponseException=__w_pdfjs_require__;
__w_pdfjs_require__=function(_BaseException6){function FormatError(){_classCallCheck(this,FormatError);return _possibleConstructorReturn(this,_getPrototypeOf(FormatError).apply(this,arguments))}_inherits(FormatError,_BaseException6);return FormatError}(module);exports.FormatError=__w_pdfjs_require__;module=function(_BaseException7){function AbortException(){_classCallCheck(this,AbortException);return _possibleConstructorReturn(this,_getPrototypeOf(AbortException).apply(this,arguments))}_inherits(AbortException,
_BaseException7);return AbortException}(module);exports.AbortException=module;var NullCharactersRegExp=/\x00/g,rgbBuf=["rgb(",0,",",0,",",0,")"];module=function(){function Util(){_classCallCheck(this,Util)}_createClass(Util,null,[{key:"makeCssRgb",value:function(r,g,b){rgbBuf[1]=r;rgbBuf[3]=g;rgbBuf[5]=b;return rgbBuf.join("")}},{key:"transform",value:function(m1,m2){return[m1[0]*m2[0]+m1[2]*m2[1],m1[1]*m2[0]+m1[3]*m2[1],m1[0]*m2[2]+m1[2]*m2[3],m1[1]*m2[2]+m1[3]*m2[3],m1[0]*m2[4]+m1[2]*m2[5]+m1[4],
m1[1]*m2[4]+m1[3]*m2[5]+m1[5]]}},{key:"applyTransform",value:function(p,m){return[p[0]*m[0]+p[1]*m[2]+m[4],p[0]*m[1]+p[1]*m[3]+m[5]]}},{key:"applyInverseTransform",value:function(p,m){var d=m[0]*m[3]-m[1]*m[2];return[(p[0]*m[3]-p[1]*m[2]+m[2]*m[5]-m[4]*m[3])/d,(-p[0]*m[1]+p[1]*m[0]+m[4]*m[1]-m[5]*m[0])/d]}},{key:"getAxialAlignedBoundingBox",value:function(r,m){var p1=Util.applyTransform(r,m),p2=Util.applyTransform(r.slice(2,4),m),p3=Util.applyTransform([r[0],r[3]],m);r=Util.applyTransform([r[2],r[1]],
m);return[Math.min(p1[0],p2[0],p3[0],r[0]),Math.min(p1[1],p2[1],p3[1],r[1]),Math.max(p1[0],p2[0],p3[0],r[0]),Math.max(p1[1],p2[1],p3[1],r[1])]}},{key:"inverseTransform",value:function(m){var d=m[0]*m[3]-m[1]*m[2];return[m[3]/d,-m[1]/d,-m[2]/d,m[0]/d,(m[2]*m[5]-m[4]*m[3])/d,(m[4]*m[1]-m[5]*m[0])/d]}},{key:"apply3dTransform",value:function(m,v){return[m[0]*v[0]+m[1]*v[1]+m[2]*v[2],m[3]*v[0]+m[4]*v[1]+m[5]*v[2],m[6]*v[0]+m[7]*v[1]+m[8]*v[2]]}},{key:"singularValueDecompose2dScale",value:function(m){var transpose=
[m[0],m[2],m[1],m[3]],a=m[0]*transpose[0]+m[1]*transpose[2],d=m[2]*transpose[1]+m[3]*transpose[3],first=(a+d)/2;m=Math.sqrt((a+d)*(a+d)-4*(a*d-(m[2]*transpose[0]+m[3]*transpose[2])*(m[0]*transpose[1]+m[1]*transpose[3])))/2;return[Math.sqrt(first+m||1),Math.sqrt(first-m||1)]}},{key:"normalizeRect",value:function(rect){var r=rect.slice(0);rect[0]>rect[2]&&(r[0]=rect[2],r[2]=rect[0]);rect[1]>rect[3]&&(r[1]=rect[3],r[3]=rect[1]);return r}},{key:"intersect",value:function(rect1,rect2){function compare(a,
b){return a-b}var orderedX=[rect1[0],rect1[2],rect2[0],rect2[2]].sort(compare),orderedY=[rect1[1],rect1[3],rect2[1],rect2[3]].sort(compare),result=[];rect1=Util.normalizeRect(rect1);rect2=Util.normalizeRect(rect2);if(orderedX[0]===rect1[0]&&orderedX[1]===rect2[0]||orderedX[0]===rect2[0]&&orderedX[1]===rect1[0])result[0]=orderedX[1],result[2]=orderedX[2];else return null;if(orderedY[0]===rect1[1]&&orderedY[1]===rect2[1]||orderedY[0]===rect2[1]&&orderedY[1]===rect1[1])result[1]=orderedY[1],result[3]=
orderedY[2];else return null;return result}}]);return Util}();exports.Util=module;var PDFStringTranslateTable=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,
376,381,305,322,339,353,382,0,8364];module=function(){return function(data,contentType){if(!(2<arguments.length&&void 0!==arguments[2]&&arguments[2])&&URL.createObjectURL){var blob=new Blob([data],{type:contentType});return URL.createObjectURL(blob)}blob="data:".concat(contentType,";base64,");for(var i=0,ii=data.length;i<ii;i+=3){var b1=data[i]&255,b2=data[i+1]&255,b3=data[i+2]&255;blob+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[b1>>2]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[(b1&
3)<<4|b2>>4]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+1<ii?(b2&15)<<2|b3>>6:64]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="[i+2<ii?b3&63:64]}return blob}}();exports.createObjectURL=module},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&
obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}if("undefined"===typeof globalThis||!globalThis._pdfjsCompatibilityChecked){if("undefined"===typeof globalThis||globalThis.Math!==Math)globalThis=__w_pdfjs_require__(3);globalThis._pdfjsCompatibilityChecked=!0;var isNodeJS=__w_pdfjs_require__(48).isNodeJS,hasDOM="object"===("undefined"===typeof window?"undefined":_typeof(window))&&"object"===("undefined"===typeof document?"undefined":_typeof(document)),isIE=/Trident/.test("undefined"!==
typeof navigator&&navigator.userAgent||"");(function(){!globalThis.btoa&&isNodeJS&&(globalThis.btoa=function(chars){return Buffer.from(chars,"binary").toString("base64")})})();(function(){!globalThis.atob&&isNodeJS&&(globalThis.atob=function(input){return Buffer.from(input,"base64").toString("binary")})})();(function(){hasDOM&&"undefined"===typeof Element.prototype.remove&&(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)})})();(function(){if(hasDOM&&!isNodeJS){var div=
document.createElement("div");div.classList.add("testOne","testTwo");if(!0!==div.classList.contains("testOne")||!0!==div.classList.contains("testTwo")){var OriginalDOMTokenListAdd=DOMTokenList.prototype.add,OriginalDOMTokenListRemove=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){for(var _len=arguments.length,tokens=Array(_len),_key=0;_key<_len;_key++)tokens[_key]=arguments[_key];for(_len=0;_len<tokens.length;_len++)OriginalDOMTokenListAdd.call(this,tokens[_len])};DOMTokenList.prototype.remove=
function(){for(var _len2=arguments.length,tokens=Array(_len2),_key2=0;_key2<_len2;_key2++)tokens[_key2]=arguments[_key2];for(_len2=0;_len2<tokens.length;_len2++)OriginalDOMTokenListRemove.call(this,tokens[_len2])}}}})();(function(){hasDOM&&!isNodeJS&&!1!==document.createElement("div").classList.toggle("test",0)&&(DOMTokenList.prototype.toggle=function(token){var force=1<arguments.length?!!arguments[1]:!this.contains(token);return this[force?"add":"remove"](token),force})})();(function(){if(hasDOM&&
isIE){var OriginalPushState=window.history.pushState,OriginalReplaceState=window.history.replaceState;window.history.pushState=function(state,title,url){OriginalPushState.apply(this,void 0===url?[state,title]:[state,title,url])};window.history.replaceState=function(state,title,url){OriginalReplaceState.apply(this,void 0===url?[state,title]:[state,title,url])}}})();String.prototype.startsWith||__w_pdfjs_require__(49);String.prototype.endsWith||__w_pdfjs_require__(60);String.prototype.includes||__w_pdfjs_require__(62);
Array.prototype.includes||__w_pdfjs_require__(64);Array.from||__w_pdfjs_require__(71);Object.assign||__w_pdfjs_require__(93);Math.log2||(Math.log2=__w_pdfjs_require__(96));Number.isNaN||(Number.isNaN=__w_pdfjs_require__(98));Number.isInteger||(Number.isInteger=__w_pdfjs_require__(100));globalThis.Promise&&globalThis.Promise.prototype&&globalThis.Promise.prototype["finally"]||(globalThis.Promise=__w_pdfjs_require__(103));globalThis.URL=__w_pdfjs_require__(127);(function(){var isReadableStreamSupported=
!1;if("undefined"!==typeof ReadableStream)try{new ReadableStream({start:function(controller){controller.close()}}),isReadableStreamSupported=!0}catch(e){}isReadableStreamSupported||(globalThis.ReadableStream=__w_pdfjs_require__(134).ReadableStream)})();globalThis.WeakMap||(globalThis.WeakMap=__w_pdfjs_require__(135));globalThis.WeakSet||(globalThis.WeakSet=__w_pdfjs_require__(145));String.prototype.codePointAt||__w_pdfjs_require__(147);String.fromCodePoint||(String.fromCodePoint=__w_pdfjs_require__(149));
globalThis.Symbol||__w_pdfjs_require__(151);String.prototype.padStart||__w_pdfjs_require__(174);String.prototype.padEnd||__w_pdfjs_require__(179);Object.values||(Object.values=__w_pdfjs_require__(181))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(4);module.exports=__w_pdfjs_require__(6)},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(6);module({global:!0},{globalThis:__w_pdfjs_require__})},function(module,exports,
__w_pdfjs_require__){var global=__w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,createNonEnumerableProperty=__w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24),setGlobal=__w_pdfjs_require__(25),copyConstructorProperties=__w_pdfjs_require__(35),isForced=__w_pdfjs_require__(47);module.exports=function(options,source){var TARGET=options.target,GLOBAL=options.global,STATIC=options.stat,FORCED,target,key;if(target=GLOBAL?global:STATIC?global[TARGET]||setGlobal(TARGET,{}):
(global[TARGET]||{}).prototype)for(key in source){var sourceProperty=source[key];var targetProperty=options.noTargetGet?(FORCED=getOwnPropertyDescriptor(target,key))&&FORCED.value:target[key];FORCED=isForced(GLOBAL?key:TARGET+(STATIC?".":"#")+key,options.forced);if(!FORCED&&void 0!==targetProperty){if(_typeof2(sourceProperty)===_typeof2(targetProperty))continue;copyConstructorProperties(sourceProperty,targetProperty)}(options.sham||targetProperty&&targetProperty.sham)&&createNonEnumerableProperty(sourceProperty,
"sham",!0);redefine(target,key,sourceProperty,options)}}},function(module,exports){exports=function(it){return it&&it.Math==Math&&it};module.exports=exports("object"==("undefined"===typeof globalThis?"undefined":_typeof2(globalThis))&&globalThis)||exports("object"==("undefined"===typeof window?"undefined":_typeof2(window))&&window)||exports("object"==("undefined"===typeof self?"undefined":_typeof2(self))&&self)||exports("object"==("undefined"===typeof global$jscomp$0?"undefined":_typeof2(global$jscomp$0))&&
global$jscomp$0)||Function("return this")()},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var propertyIsEnumerableModule=__w_pdfjs_require__(10),createPropertyDescriptor=__w_pdfjs_require__(11),toIndexedObject=__w_pdfjs_require__(12),toPrimitive=__w_pdfjs_require__(16),has=__w_pdfjs_require__(18),IE8_DOM_DEFINE=__w_pdfjs_require__(19),nativeGetOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;exports.f=module?nativeGetOwnPropertyDescriptor:function(O,P){O=toIndexedObject(O);
P=toPrimitive(P,!0);if(IE8_DOM_DEFINE)try{return nativeGetOwnPropertyDescriptor(O,P)}catch(error){}if(has(O,P))return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O,P),O[P])}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!exports(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(error){return!0}}},function(module,exports,__w_pdfjs_require__){module=
{}.propertyIsEnumerable;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;__w_pdfjs_require__=getOwnPropertyDescriptor&&!module.call({1:2},1);exports.f=__w_pdfjs_require__?function(V){V=getOwnPropertyDescriptor(this,V);return!!V&&V.enumerable}:module},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(bitmap&1),configurable:!(bitmap&2),writable:!(bitmap&4),value:value}}},function(module,exports,__w_pdfjs_require__){var IndexedObject=__w_pdfjs_require__(13),
requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(it){return IndexedObject(requireObjectCoercible(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var classof=__w_pdfjs_require__(14),split="".split;module.exports=exports(function(){return!Object("z").propertyIsEnumerable(0)})?function(it){return"String"==classof(it)?split.call(it,""):Object(it)}:Object},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,
-1)}},function(module,exports){module.exports=function(it){if(void 0==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(input,PREFERRED_STRING){if(!isObject(input))return input;var fn,val;if(PREFERRED_STRING&&"function"==typeof(fn=input.toString)&&!isObject(val=fn.call(input))||"function"==typeof(fn=input.valueOf)&&!isObject(val=fn.call(input))||!PREFERRED_STRING&&"function"==typeof(fn=
input.toString)&&!isObject(val=fn.call(input)))return val;throw TypeError("Can't convert object to primitive value");}},function(module,exports){module.exports=function(it){return"object"===_typeof2(it)?null!==it:"function"===typeof it}},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var fails=__w_pdfjs_require__(9),createElement=__w_pdfjs_require__(20);
module.exports=!exports&&!fails(function(){return 7!=Object.defineProperty(createElement("div"),"a",{get:function(){return 7}}).a})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(17);var document=exports.document,EXISTS=__w_pdfjs_require__(document)&&__w_pdfjs_require__(document.createElement);module.exports=function(it){return EXISTS?document.createElement(it):{}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);
var definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=__w_pdfjs_require__(11);module.exports=exports?function(object,key,value){return definePropertyModule.f(object,key,createPropertyDescriptor(1,value))}:function(object,key,value){object[key]=value;return object}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(8);var IE8_DOM_DEFINE=__w_pdfjs_require__(19),anObject=__w_pdfjs_require__(23),toPrimitive=__w_pdfjs_require__(16),nativeDefineProperty=Object.defineProperty;
exports.f=module?nativeDefineProperty:function(O,P,Attributes){anObject(O);P=toPrimitive(P,!0);anObject(Attributes);if(IE8_DOM_DEFINE)try{return nativeDefineProperty(O,P,Attributes)}catch(error){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported");"value"in Attributes&&(O[P]=Attributes.value);return O}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it))throw TypeError(String(it)+" is not an object");
return it}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21),has=__w_pdfjs_require__(18),setGlobal=__w_pdfjs_require__(25),inspectSource=__w_pdfjs_require__(26);exports=__w_pdfjs_require__(28);var getInternalState=exports.get,enforceInternalState=exports.enforce,TEMPLATE=String(String).split("String");(module.exports=function(O,key,value,options){var unsafe=options?!!options.unsafe:!1,simple=options?!!options.enumerable:
!1;options=options?!!options.noTargetGet:!1;"function"==typeof value&&("string"!=typeof key||has(value,"name")||createNonEnumerableProperty(value,"name",key),enforceInternalState(value).source=TEMPLATE.join("string"==typeof key?key:""));O===global?simple?O[key]=value:setGlobal(key,value):(unsafe?!options&&O[key]&&(simple=!0):delete O[key],simple?O[key]=value:createNonEnumerableProperty(O,key,value))})(Function.prototype,"toString",function(){return"function"==typeof this&&getInternalState(this).source||
inspectSource(this)})},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),createNonEnumerableProperty=__w_pdfjs_require__(21);module.exports=function(key,value){try{createNonEnumerableProperty(global,key,value)}catch(error){global[key]=value}return value}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(27);var functionToString=Function.toString;"function"!=typeof exports.inspectSource&&(exports.inspectSource=function(it){return functionToString.call(it)});
module.exports=exports.inspectSource},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(25);__w_pdfjs_require__=exports["__core-js_shared__"]||__w_pdfjs_require__("__core-js_shared__",{});module.exports=__w_pdfjs_require__},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(29);var global=__w_pdfjs_require__(6),isObject=__w_pdfjs_require__(17),createNonEnumerableProperty=__w_pdfjs_require__(21),objectHas=__w_pdfjs_require__(18),
sharedKey=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(34);global=global.WeakMap;if(exports){var store=new global,wmget=store.get,wmhas=store.has,wmset=store.set;var set=function(it,metadata){wmset.call(store,it,metadata);return metadata};var get=function(it){return wmget.call(store,it)||{}};var has=function(it){return wmhas.call(store,it)}}else{var STATE=sharedKey("state");__w_pdfjs_require__[STATE]=!0;set=function(it,metadata){createNonEnumerableProperty(it,STATE,metadata);return metadata};
get=function(it){return objectHas(it,STATE)?it[STATE]:{}};has=function(it){return objectHas(it,STATE)}}module.exports={set:set,get:get,has:has,enforce:function(it){return has(it)?get(it):set(it,{})},getterFor:function(TYPE){return function(it){var state;if(!isObject(it)||(state=get(it)).type!==TYPE)throw TypeError("Incompatible receiver, "+TYPE+" required");return state}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(26);exports=
exports.WeakMap;module.exports="function"===typeof exports&&/native code/.test(__w_pdfjs_require__(exports))},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(31);var uid=__w_pdfjs_require__(33),keys=exports("keys");module.exports=function(key){return keys[key]||(keys[key]=uid(key))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(32);var store=__w_pdfjs_require__(27);(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?
value:{})})("versions",[]).push({version:"3.6.1",mode:exports?"pure":"global",copyright:"\u00a9 2019 Denis Pushkarev (zloirock.ru)"})},function(module,exports){module.exports=!1},function(module,exports){var id=0,postfix=Math.random();module.exports=function(key){return"Symbol("+String(void 0===key?"":key)+")_"+(++id+postfix).toString(36)}},function(module,exports){module.exports={}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),ownKeys=__w_pdfjs_require__(36),getOwnPropertyDescriptorModule=
__w_pdfjs_require__(7),definePropertyModule=__w_pdfjs_require__(22);module.exports=function(target,source){for(var keys=ownKeys(source),defineProperty=definePropertyModule.f,getOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,i=0;i<keys.length;i++){var key=keys[i];has(target,key)||defineProperty(target,key,getOwnPropertyDescriptor(source,key))}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);var getOwnPropertyNamesModule=__w_pdfjs_require__(39),getOwnPropertySymbolsModule=
__w_pdfjs_require__(46),anObject=__w_pdfjs_require__(23);module.exports=exports("Reflect","ownKeys")||function(it){var keys=getOwnPropertyNamesModule.f(anObject(it)),getOwnPropertySymbols=getOwnPropertySymbolsModule.f;return getOwnPropertySymbols?keys.concat(getOwnPropertySymbols(it)):keys}},function(module,exports,__w_pdfjs_require__){var path=__w_pdfjs_require__(38),global=__w_pdfjs_require__(6),aFunction=function(variable){return"function"==typeof variable?variable:void 0};module.exports=function(namespace,
method){return 2>arguments.length?aFunction(path[namespace])||aFunction(global[namespace]):path[namespace]&&path[namespace][method]||global[namespace]&&global[namespace][method]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports},function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),hiddenKeys=__w_pdfjs_require__(45).concat("length","prototype");exports.f=Object.getOwnPropertyNames||function(O){return internalObjectKeys(O,
hiddenKeys)}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toIndexedObject=__w_pdfjs_require__(12),indexOf=__w_pdfjs_require__(41).indexOf,hiddenKeys=__w_pdfjs_require__(34);module.exports=function(object,names){object=toIndexedObject(object);var i=0,result=[],key;for(key in object)!has(hiddenKeys,key)&&has(object,key)&&result.push(key);for(;names.length>i;)has(object,key=names[i++])&&(~indexOf(result,key)||result.push(key));return result}},function(module,exports,
__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12),toLength=__w_pdfjs_require__(42),toAbsoluteIndex=__w_pdfjs_require__(44);exports=function(IS_INCLUDES){return function($this,el,fromIndex){$this=toIndexedObject($this);var length=toLength($this.length);fromIndex=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el)for(;length>fromIndex;){if(el=$this[fromIndex++],el!=el)return!0}else for(;length>fromIndex;fromIndex++)if((IS_INCLUDES||fromIndex in $this)&&$this[fromIndex]===el)return IS_INCLUDES||
fromIndex||0;return!IS_INCLUDES&&-1}};module.exports={includes:exports(!0),indexOf:exports(!1)}},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),min=Math.min;module.exports=function(argument){return 0<argument?min(toInteger(argument),9007199254740991):0}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(argument){return isNaN(argument=+argument)?0:(0<argument?floor:ceil)(argument)}},function(module,exports,__w_pdfjs_require__){var toInteger=
__w_pdfjs_require__(43),max=Math.max,min=Math.min;module.exports=function(index,length){index=toInteger(index);return 0>index?max(index+length,0):min(index,length)}},function(module,exports){module.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},function(module,exports){exports.f=Object.getOwnPropertySymbols},function(module,exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(9),replacement=/#|\.prototype\./;exports=function(feature,
detection){feature=data[normalize(feature)];return feature==POLYFILL?!0:feature==NATIVE?!1:"function"==typeof detection?fails(detection):!!detection};var normalize=exports.normalize=function(string){return String(string).replace(replacement,".").toLowerCase()},data=exports.data={},NATIVE=exports.NATIVE="N",POLYFILL=exports.POLYFILL="P";module.exports=exports},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?
function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}Object.defineProperty(exports,"__esModule",{value:!0});exports.isNodeJS=void 0;module="object"===("undefined"===typeof process$jscomp$0?"undefined":_typeof(process$jscomp$0))&&"[object process]"===process$jscomp$0+""&&!process$jscomp$0.versions.nw&&!process$jscomp$0.versions.electron;exports.isNodeJS=module},
function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(50);exports=__w_pdfjs_require__(57);module.exports=exports("String","startsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=__w_pdfjs_require__(32);var nativeStartsWith="".startsWith,
min=Math.min;exports=exports("startsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"startsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&!exports},{startsWith:function(searchString){var that=String(requireObjectCoercible(this));notARegExp(searchString);var index=toLength(min(1<arguments.length?arguments[1]:void 0,that.length)),search=String(searchString);
return nativeStartsWith?nativeStartsWith.call(that,search,index):that.slice(index,index+search.length)===search}})},function(module,exports,__w_pdfjs_require__){var isRegExp=__w_pdfjs_require__(52);module.exports=function(it){if(isRegExp(it))throw TypeError("The method doesn't accept regular expressions");return it}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),classof=__w_pdfjs_require__(14),MATCH=__w_pdfjs_require__(53)("match");module.exports=function(it){var isRegExp;
return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==classof(it))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);var shared=__w_pdfjs_require__(31),has=__w_pdfjs_require__(18),uid=__w_pdfjs_require__(33),NATIVE_SYMBOL=__w_pdfjs_require__(54);__w_pdfjs_require__=__w_pdfjs_require__(55);var WellKnownSymbolsStore=shared("wks"),_Symbol=exports.Symbol,createWellKnownSymbol=__w_pdfjs_require__?_Symbol:_Symbol&&_Symbol.withoutSetter||uid;module.exports=
function(name){has(WellKnownSymbolsStore,name)||(NATIVE_SYMBOL&&has(_Symbol,name)?WellKnownSymbolsStore[name]=_Symbol[name]:WellKnownSymbolsStore[name]=createWellKnownSymbol("Symbol."+name));return WellKnownSymbolsStore[name]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!!Object.getOwnPropertySymbols&&!exports(function(){return!String(Symbol())})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(54);module.exports=exports&&!Symbol.sham&&
"symbol"==_typeof2(Symbol.iterator)},function(module,exports,__w_pdfjs_require__){var MATCH=__w_pdfjs_require__(53)("match");module.exports=function(METHOD_NAME){var regexp=/./;try{"/./"[METHOD_NAME](regexp)}catch(e){try{return regexp[MATCH]=!1,"/./"[METHOD_NAME](regexp)}catch(f){}}return!1}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),bind=__w_pdfjs_require__(58),call=Function.call;module.exports=function(CONSTRUCTOR,METHOD,length){return bind(call,global[CONSTRUCTOR].prototype[METHOD],
length)}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59);module.exports=function(fn,that,length){aFunction(fn);if(void 0===that)return fn;switch(length){case 0:return function(){return fn.call(that)};case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports){module.exports=function(it){if("function"!=
typeof it)throw TypeError(String(it)+" is not a function");return it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(61);exports=__w_pdfjs_require__(57);module.exports=exports("String","endsWith")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,toLength=__w_pdfjs_require__(42),notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=__w_pdfjs_require__(15);exports=__w_pdfjs_require__(56);__w_pdfjs_require__=
__w_pdfjs_require__(32);var nativeEndsWith="".endsWith,min=Math.min;exports=exports("endsWith");__w_pdfjs_require__=!__w_pdfjs_require__&&!exports&&!!function(){var descriptor=getOwnPropertyDescriptor(String.prototype,"endsWith");return descriptor&&!descriptor.writable}();module({target:"String",proto:!0,forced:!__w_pdfjs_require__&&!exports},{endsWith:function(searchString){var that=String(requireObjectCoercible(this));notARegExp(searchString);var endPosition=1<arguments.length?arguments[1]:void 0,
len=toLength(that.length);endPosition=void 0===endPosition?len:min(toLength(endPosition),len);len=String(searchString);return nativeEndsWith?nativeEndsWith.call(that,len,endPosition):that.slice(endPosition-len.length,endPosition)===len}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(63);exports=__w_pdfjs_require__(57);module.exports=exports("String","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var notARegExp=__w_pdfjs_require__(51),requireObjectCoercible=
__w_pdfjs_require__(15);__w_pdfjs_require__=__w_pdfjs_require__(56);module({target:"String",proto:!0,forced:!__w_pdfjs_require__("includes")},{includes:function(searchString){return!!~String(requireObjectCoercible(this)).indexOf(notARegExp(searchString),1<arguments.length?arguments[1]:void 0)}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(65);exports=__w_pdfjs_require__(57);module.exports=exports("Array","includes")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);
var $includes=__w_pdfjs_require__(41).includes;__w_pdfjs_require__=__w_pdfjs_require__(66);module({target:"Array",proto:!0},{includes:function(el){return $includes(this,el,1<arguments.length?arguments[1]:void 0)}});__w_pdfjs_require__("includes")},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);var create=__w_pdfjs_require__(67);__w_pdfjs_require__=__w_pdfjs_require__(22);var UNSCOPABLES=exports("unscopables"),ArrayPrototype=Array.prototype;void 0==ArrayPrototype[UNSCOPABLES]&&
__w_pdfjs_require__.f(ArrayPrototype,UNSCOPABLES,{configurable:!0,value:create(null)});module.exports=function(key){ArrayPrototype[UNSCOPABLES][key]=!0}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),defineProperties=__w_pdfjs_require__(68),enumBugKeys=__w_pdfjs_require__(45);exports=__w_pdfjs_require__(34);var html=__w_pdfjs_require__(70),documentCreateElement=__w_pdfjs_require__(20),IE_PROTO=__w_pdfjs_require__(30)("IE_PROTO"),EmptyConstructor=function(){},activeXDocument,
_NullProtoObject=function(){try{activeXDocument=document.domain&&new ActiveXObject("htmlfile")}catch(error){}if(activeXDocument){var JSCompiler_temp=activeXDocument;JSCompiler_temp.write("<script>\x3c/script>");JSCompiler_temp.close();JSCompiler_temp=JSCompiler_temp.parentWindow.Object}else JSCompiler_temp=documentCreateElement("iframe"),JSCompiler_temp.style.display="none",html.appendChild(JSCompiler_temp),JSCompiler_temp.src="javascript:",JSCompiler_temp=JSCompiler_temp.contentWindow.document,JSCompiler_temp.open(),
JSCompiler_temp.write("<script>document.F=Object\x3c/script>"),JSCompiler_temp.close(),JSCompiler_temp=JSCompiler_temp.F;_NullProtoObject=JSCompiler_temp;for(JSCompiler_temp=enumBugKeys.length;JSCompiler_temp--;)delete _NullProtoObject.prototype[enumBugKeys[JSCompiler_temp]];return _NullProtoObject()};exports[IE_PROTO]=!0;module.exports=Object.create||function(O,Properties){if(null!==O){EmptyConstructor.prototype=anObject(O);var result=new EmptyConstructor;EmptyConstructor.prototype=null;result[IE_PROTO]=
O}else result=_NullProtoObject();return void 0===Properties?result:defineProperties(result,Properties)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(8);var definePropertyModule=__w_pdfjs_require__(22),anObject=__w_pdfjs_require__(23),objectKeys=__w_pdfjs_require__(69);module.exports=exports?Object.defineProperties:function(O,Properties){anObject(O);for(var keys=objectKeys(Properties),length=keys.length,index=0,key;length>index;)definePropertyModule.f(O,key=keys[index++],
Properties[key]);return O}},function(module,exports,__w_pdfjs_require__){var internalObjectKeys=__w_pdfjs_require__(40),enumBugKeys=__w_pdfjs_require__(45);module.exports=Object.keys||function(O){return internalObjectKeys(O,enumBugKeys)}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);module.exports=exports("document","documentElement")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);__w_pdfjs_require__(84);exports=__w_pdfjs_require__(38);module.exports=
exports.Array.from},function(module,exports,__w_pdfjs_require__){var charAt=__w_pdfjs_require__(73).charAt;module=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=module.set,getInternalState=module.getterFor("String Iterator");__w_pdfjs_require__(String,"String",function(iterated){setInternalState(this,{type:"String Iterator",string:String(iterated),index:0})},function(){var state=getInternalState(this),string=state.string,index=state.index;if(index>=string.length)return{value:void 0,
done:!0};string=charAt(string,index);state.index+=string.length;return{value:string,done:!1}})},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),requireObjectCoercible=__w_pdfjs_require__(15);exports=function(CONVERT_TO_STRING){return function($this,pos){$this=String(requireObjectCoercible($this));pos=toInteger(pos);var size=$this.length,second;if(0>pos||pos>=size)return CONVERT_TO_STRING?"":void 0;var first=$this.charCodeAt(pos);return 55296>first||56319<first||
pos+1===size||56320>(second=$this.charCodeAt(pos+1))||57343<second?CONVERT_TO_STRING?$this.charAt(pos):first:CONVERT_TO_STRING?$this.slice(pos,pos+2):(first-55296<<10)+(second-56320)+65536}};module.exports={codeAt:exports(!1),charAt:exports(!0)}},function(module,exports,__w_pdfjs_require__){var $=__w_pdfjs_require__(5),createIteratorConstructor=__w_pdfjs_require__(75),getPrototypeOf=__w_pdfjs_require__(77),setPrototypeOf=__w_pdfjs_require__(82),setToStringTag=__w_pdfjs_require__(80),createNonEnumerableProperty=
__w_pdfjs_require__(21),redefine=__w_pdfjs_require__(24);exports=__w_pdfjs_require__(53);var IS_PURE=__w_pdfjs_require__(32),Iterators=__w_pdfjs_require__(81);__w_pdfjs_require__=__w_pdfjs_require__(76);var IteratorPrototype=__w_pdfjs_require__.IteratorPrototype,BUGGY_SAFARI_ITERATORS=__w_pdfjs_require__.BUGGY_SAFARI_ITERATORS,ITERATOR=exports("iterator"),returnThis=function(){return this};module.exports=function(Iterable,NAME,IteratorConstructor,next,DEFAULT,IS_SET,FORCED){createIteratorConstructor(IteratorConstructor,
NAME,next);next=function(KIND){if(KIND===DEFAULT&&defaultIterator)return defaultIterator;if(!BUGGY_SAFARI_ITERATORS&&KIND in IterablePrototype)return IterablePrototype[KIND];switch(KIND){case "keys":return function(){return new IteratorConstructor(this,KIND)};case "values":return function(){return new IteratorConstructor(this,KIND)};case "entries":return function(){return new IteratorConstructor(this,KIND)}}return function(){return new IteratorConstructor(this)}};var TO_STRING_TAG=NAME+" Iterator",
INCORRECT_VALUES_NAME=!1,IterablePrototype=Iterable.prototype,nativeIterator=IterablePrototype[ITERATOR]||IterablePrototype["@@iterator"]||DEFAULT&&IterablePrototype[DEFAULT],defaultIterator=!BUGGY_SAFARI_ITERATORS&&nativeIterator||next(DEFAULT),anyNativeIterator="Array"==NAME?IterablePrototype.entries||nativeIterator:nativeIterator,KEY;anyNativeIterator&&(Iterable=getPrototypeOf(anyNativeIterator.call(new Iterable)),IteratorPrototype!==Object.prototype&&Iterable.next&&(IS_PURE||getPrototypeOf(Iterable)===
IteratorPrototype||(setPrototypeOf?setPrototypeOf(Iterable,IteratorPrototype):"function"!=typeof Iterable[ITERATOR]&&createNonEnumerableProperty(Iterable,ITERATOR,returnThis)),setToStringTag(Iterable,TO_STRING_TAG,!0,!0),IS_PURE&&(Iterators[TO_STRING_TAG]=returnThis)));"values"==DEFAULT&&nativeIterator&&"values"!==nativeIterator.name&&(INCORRECT_VALUES_NAME=!0,defaultIterator=function(){return nativeIterator.call(this)});IS_PURE&&!FORCED||IterablePrototype[ITERATOR]===defaultIterator||createNonEnumerableProperty(IterablePrototype,
ITERATOR,defaultIterator);Iterators[NAME]=defaultIterator;if(DEFAULT){var methods={values:next("values"),keys:IS_SET?defaultIterator:next("keys"),entries:next("entries")};if(FORCED)for(KEY in methods)!BUGGY_SAFARI_ITERATORS&&!INCORRECT_VALUES_NAME&&KEY in IterablePrototype||redefine(IterablePrototype,KEY,methods[KEY]);else $({target:NAME,proto:!0,forced:BUGGY_SAFARI_ITERATORS||INCORRECT_VALUES_NAME},methods)}return methods}},function(module,exports,__w_pdfjs_require__){var IteratorPrototype=__w_pdfjs_require__(76).IteratorPrototype,
create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),setToStringTag=__w_pdfjs_require__(80),Iterators=__w_pdfjs_require__(81),returnThis=function(){return this};module.exports=function(IteratorConstructor,NAME,next){NAME+=" Iterator";IteratorConstructor.prototype=create(IteratorPrototype,{next:createPropertyDescriptor(1,next)});setToStringTag(IteratorConstructor,NAME,!1,!0);Iterators[NAME]=returnThis;return IteratorConstructor}},function(module,exports,__w_pdfjs_require__){var getPrototypeOf=
__w_pdfjs_require__(77);exports=__w_pdfjs_require__(21);var has=__w_pdfjs_require__(18),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=__w_pdfjs_require__(32);wellKnownSymbol=wellKnownSymbol("iterator");var BUGGY_SAFARI_ITERATORS=!1,returnThis=function(){return this},IteratorPrototype;if([].keys){var arrayIterator=[].keys();"next"in arrayIterator?(getPrototypeOf=getPrototypeOf(getPrototypeOf(arrayIterator)),getPrototypeOf!==Object.prototype&&(IteratorPrototype=getPrototypeOf)):BUGGY_SAFARI_ITERATORS=
!0}void 0==IteratorPrototype&&(IteratorPrototype={});__w_pdfjs_require__||has(IteratorPrototype,wellKnownSymbol)||exports(IteratorPrototype,wellKnownSymbol,returnThis);module.exports={IteratorPrototype:IteratorPrototype,BUGGY_SAFARI_ITERATORS:BUGGY_SAFARI_ITERATORS}},function(module,exports,__w_pdfjs_require__){var has=__w_pdfjs_require__(18),toObject=__w_pdfjs_require__(78);exports=__w_pdfjs_require__(30);__w_pdfjs_require__=__w_pdfjs_require__(79);var IE_PROTO=exports("IE_PROTO"),ObjectPrototype=
Object.prototype;module.exports=__w_pdfjs_require__?Object.getPrototypeOf:function(O){O=toObject(O);return has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectPrototype:null}},function(module,exports,__w_pdfjs_require__){var requireObjectCoercible=__w_pdfjs_require__(15);module.exports=function(argument){return Object(requireObjectCoercible(argument))}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);
module.exports=!exports(function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype})},function(module,exports,__w_pdfjs_require__){var defineProperty=__w_pdfjs_require__(22).f,has=__w_pdfjs_require__(18),TO_STRING_TAG=__w_pdfjs_require__(53)("toStringTag");module.exports=function(it,TAG,STATIC){it&&!has(it=STATIC?it:it.prototype,TO_STRING_TAG)&&defineProperty(it,TO_STRING_TAG,{configurable:!0,value:TAG})}},function(module,exports){module.exports={}},function(module,
exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),aPossiblePrototype=__w_pdfjs_require__(83);module.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var CORRECT_SETTER=!1,test={};try{var setter=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set;setter.call(test,[]);CORRECT_SETTER=test instanceof Array}catch(error){}return function(O,proto){anObject(O);aPossiblePrototype(proto);CORRECT_SETTER?setter.call(O,proto):O.__proto__=proto;return O}}():void 0)},function(module,
exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17);module.exports=function(it){if(!isObject(it)&&null!==it)throw TypeError("Can't set "+String(it)+" as a prototype");return it}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);exports=__w_pdfjs_require__(85);__w_pdfjs_require__=!__w_pdfjs_require__(92)(function(iterable){Array.from(iterable)});module({target:"Array",stat:!0,forced:__w_pdfjs_require__},{from:exports})},function(module,exports,__w_pdfjs_require__){var bind=
__w_pdfjs_require__(58),toObject=__w_pdfjs_require__(78),callWithSafeIterationClosing=__w_pdfjs_require__(86),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),createProperty=__w_pdfjs_require__(88),getIteratorMethod=__w_pdfjs_require__(89);module.exports=function(arrayLike){var O=toObject(arrayLike),C="function"==typeof this?this:Array,argumentsLength=arguments.length,mapfn=1<argumentsLength?arguments[1]:void 0,mapping=void 0!==mapfn,index=0,iteratorMethod=getIteratorMethod(O);
mapping&&(mapfn=bind(mapfn,2<argumentsLength?arguments[2]:void 0,2));if(void 0==iteratorMethod||C==Array&&isArrayIteratorMethod(iteratorMethod))for(argumentsLength=toLength(O.length),C=new C(argumentsLength);argumentsLength>index;index++)createProperty(C,index,mapping?mapfn(O[index],index):O[index]);else for(O=iteratorMethod.call(O),argumentsLength=O.next,C=new C;!(iteratorMethod=argumentsLength.call(O)).done;index++)createProperty(C,index,mapping?callWithSafeIterationClosing(O,mapfn,[iteratorMethod.value,
index],!0):iteratorMethod.value);C.length=index;return C}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23);module.exports=function(iterator,fn,value,ENTRIES){try{return ENTRIES?fn(anObject(value)[0],value[1]):fn(value)}catch(error){throw fn=iterator["return"],void 0!==fn&&anObject(fn.call(iterator)),error;}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(53);var Iterators=__w_pdfjs_require__(81),ITERATOR=exports("iterator"),ArrayPrototype=
Array.prototype;module.exports=function(it){return void 0!==it&&(Iterators.Array===it||ArrayPrototype[ITERATOR]===it)}},function(module,exports,__w_pdfjs_require__){var toPrimitive=__w_pdfjs_require__(16),definePropertyModule=__w_pdfjs_require__(22),createPropertyDescriptor=__w_pdfjs_require__(11);module.exports=function(object,key,value){key=toPrimitive(key);key in object?definePropertyModule.f(object,key,createPropertyDescriptor(0,value)):object[key]=value}},function(module,exports,__w_pdfjs_require__){var classof=
__w_pdfjs_require__(90),Iterators=__w_pdfjs_require__(81),ITERATOR=__w_pdfjs_require__(53)("iterator");module.exports=function(it){if(void 0!=it)return it[ITERATOR]||it["@@iterator"]||Iterators[classof(it)]}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(91);var classofRaw=__w_pdfjs_require__(14),TO_STRING_TAG=__w_pdfjs_require__(53)("toStringTag"),CORRECT_ARGUMENTS="Arguments"==classofRaw(function(){return arguments}());module.exports=exports?classofRaw:function(it$jscomp$0){var result;
if(void 0===it$jscomp$0)var tag="Undefined";else{if(null===it$jscomp$0)var JSCompiler_temp="Null";else{a:{var it=it$jscomp$0=Object(it$jscomp$0);try{JSCompiler_temp=it[TO_STRING_TAG];break a}catch(error){}JSCompiler_temp=void 0}JSCompiler_temp="string"==typeof(tag=JSCompiler_temp)?tag:CORRECT_ARGUMENTS?classofRaw(it$jscomp$0):"Object"==(result=classofRaw(it$jscomp$0))&&"function"==typeof it$jscomp$0.callee?"Arguments":result}tag=JSCompiler_temp}return tag}},function(module,exports,__w_pdfjs_require__){exports=
__w_pdfjs_require__(53)("toStringTag");__w_pdfjs_require__={};__w_pdfjs_require__[exports]="z";module.exports="[object z]"===String(__w_pdfjs_require__)},function(module,exports,__w_pdfjs_require__){var ITERATOR=__w_pdfjs_require__(53)("iterator"),SAFE_CLOSING=!1;try{var called=0;exports={next:function(){return{done:!!called++}},"return":function(){SAFE_CLOSING=!0}};exports[ITERATOR]=function(){return this};Array.from(exports,function(){throw 2;})}catch(error){}module.exports=function(exec,SKIP_CLOSING){if(!SKIP_CLOSING&&
!SAFE_CLOSING)return!1;var ITERATION_SUPPORT=!1;try{SKIP_CLOSING={},SKIP_CLOSING[ITERATOR]=function(){return{next:function(){return{done:ITERATION_SUPPORT=!0}}}},exec(SKIP_CLOSING)}catch(error$4){}return ITERATION_SUPPORT}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(94);exports=__w_pdfjs_require__(38);module.exports=exports.Object.assign},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(95);module({target:"Object",
stat:!0,forced:Object.assign!==__w_pdfjs_require__},{assign:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(9);var objectKeys=__w_pdfjs_require__(69),getOwnPropertySymbolsModule=__w_pdfjs_require__(46),propertyIsEnumerableModule=__w_pdfjs_require__(10),toObject=__w_pdfjs_require__(78),IndexedObject=__w_pdfjs_require__(13),nativeAssign=Object.assign,defineProperty=Object.defineProperty;module.exports=!nativeAssign||
exports(function(){if(DESCRIPTORS&&1!==nativeAssign({b:1},nativeAssign(defineProperty({},"a",{enumerable:!0,get:function(){defineProperty(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var A={},B={},symbol=Symbol();A[symbol]=7;"abcdefghijklmnopqrst".split("").forEach(function(chr){B[chr]=chr});return 7!=nativeAssign({},A)[symbol]||"abcdefghijklmnopqrst"!=objectKeys(nativeAssign({},B)).join("")})?function(target,source){for(var T=toObject(target),argumentsLength=arguments.length,index=1,getOwnPropertySymbols=
getOwnPropertySymbolsModule.f,propertyIsEnumerable=propertyIsEnumerableModule.f;argumentsLength>index;)for(var S=IndexedObject(arguments[index++]),keys=getOwnPropertySymbols?objectKeys(S).concat(getOwnPropertySymbols(S)):objectKeys(S),length=keys.length,j=0,key;length>j;)if(key=keys[j++],!DESCRIPTORS||propertyIsEnumerable.call(S,key))T[key]=S[key];return T}:nativeAssign},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(97);exports=__w_pdfjs_require__(38);module.exports=exports.Math.log2},
function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var log=Math.log,LN2=Math.LN2;module({target:"Math",stat:!0},{log2:function(x){return log(x)/LN2}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(99);exports=__w_pdfjs_require__(38);module.exports=exports.Number.isNaN},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"Number",stat:!0},{isNaN:function(number){return number!=number}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(101);
exports=__w_pdfjs_require__(38);module.exports=exports.Number.isInteger},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);__w_pdfjs_require__=__w_pdfjs_require__(102);module({target:"Number",stat:!0},{isInteger:__w_pdfjs_require__})},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),floor=Math.floor;module.exports=function(it){return!isObject(it)&&isFinite(it)&&floor(it)===it}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(104);
__w_pdfjs_require__(72);__w_pdfjs_require__(106);__w_pdfjs_require__(109);__w_pdfjs_require__(125);__w_pdfjs_require__(126);exports=__w_pdfjs_require__(38);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(91);exports=__w_pdfjs_require__(24);__w_pdfjs_require__=__w_pdfjs_require__(105);module||exports(Object.prototype,"toString",__w_pdfjs_require__,{unsafe:!0})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(91);var classof=
__w_pdfjs_require__(90);module.exports=exports?{}.toString:function(){return"[object "+classof(this)+"]"}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(107);var ArrayIteratorMethods=__w_pdfjs_require__(108),createNonEnumerableProperty=__w_pdfjs_require__(21),wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=wellKnownSymbol("iterator");wellKnownSymbol=wellKnownSymbol("toStringTag");var ArrayValues=ArrayIteratorMethods.values,COLLECTION_NAME;
for(COLLECTION_NAME in exports){var Collection=module[COLLECTION_NAME];if(Collection=Collection&&Collection.prototype){if(Collection[__w_pdfjs_require__]!==ArrayValues)try{createNonEnumerableProperty(Collection,__w_pdfjs_require__,ArrayValues)}catch(error){Collection[__w_pdfjs_require__]=ArrayValues}Collection[wellKnownSymbol]||createNonEnumerableProperty(Collection,wellKnownSymbol,COLLECTION_NAME);if(exports[COLLECTION_NAME])for(var METHOD_NAME in ArrayIteratorMethods)if(Collection[METHOD_NAME]!==
ArrayIteratorMethods[METHOD_NAME])try{createNonEnumerableProperty(Collection,METHOD_NAME,ArrayIteratorMethods[METHOD_NAME])}catch(error$5){Collection[METHOD_NAME]=ArrayIteratorMethods[METHOD_NAME]}}}},function(module,exports){module.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,
NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(module,exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12);exports=__w_pdfjs_require__(66);var Iterators=__w_pdfjs_require__(81),InternalStateModule=__w_pdfjs_require__(28);__w_pdfjs_require__=__w_pdfjs_require__(74);var setInternalState=
InternalStateModule.set,getInternalState=InternalStateModule.getterFor("Array Iterator");module.exports=__w_pdfjs_require__(Array,"Array",function(iterated,kind){setInternalState(this,{type:"Array Iterator",target:toIndexedObject(iterated),index:0,kind:kind})},function(){var state=getInternalState(this),target=state.target,kind=state.kind,index=state.index++;return!target||index>=target.length?(state.target=void 0,{value:void 0,done:!0}):"keys"==kind?{value:index,done:!1}:"values"==kind?{value:target[index],
done:!1}:{value:[index,target[index]],done:!1}},"values");Iterators.Arguments=Iterators.Array;exports("keys");exports("values");exports("entries")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var IS_PURE=__w_pdfjs_require__(32),global=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(37);var NativePromise=__w_pdfjs_require__(110),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),setSpecies=__w_pdfjs_require__(112),
isObject=__w_pdfjs_require__(17),aFunction=__w_pdfjs_require__(59),anInstance=__w_pdfjs_require__(113),classof=__w_pdfjs_require__(14),inspectSource=__w_pdfjs_require__(26),iterate=__w_pdfjs_require__(114),checkCorrectnessOfIteration=__w_pdfjs_require__(92),speciesConstructor=__w_pdfjs_require__(115),task=__w_pdfjs_require__(116).set,microtask=__w_pdfjs_require__(119),promiseResolve=__w_pdfjs_require__(120),hostReportErrors=__w_pdfjs_require__(122),newPromiseCapabilityModule=__w_pdfjs_require__(121),
perform=__w_pdfjs_require__(123),InternalStateModule=__w_pdfjs_require__(28),isForced=__w_pdfjs_require__(47),wellKnownSymbol=__w_pdfjs_require__(53),V8_VERSION=__w_pdfjs_require__(124),SPECIES=wellKnownSymbol("species"),getInternalState=InternalStateModule.get,setInternalState=InternalStateModule.set,getInternalPromiseState=InternalStateModule.getterFor("Promise"),PromiseConstructor=NativePromise,TypeError=global.TypeError,document=global.document,process=global.process,$fetch=exports("fetch"),newPromiseCapability=
newPromiseCapabilityModule.f,newGenericPromiseCapability=newPromiseCapability,IS_NODE="process"==classof(process),DISPATCH_EVENT=!!(document&&document.createEvent&&global.dispatchEvent);checkCorrectnessOfIteration=(__w_pdfjs_require__=isForced("Promise",function(){if(inspectSource(PromiseConstructor)===String(PromiseConstructor)&&(66===V8_VERSION||!IS_NODE&&"function"!=typeof PromiseRejectionEvent)||IS_PURE&&!PromiseConstructor.prototype["finally"])return!0;if(51<=V8_VERSION&&/native code/.test(PromiseConstructor))return!1;
var promise=PromiseConstructor.resolve(1),FakePromise=function(exec){exec(function(){},function(){})};(promise.constructor={})[SPECIES]=FakePromise;return!(promise.then(function(){})instanceof FakePromise)}))||!checkCorrectnessOfIteration(function(iterable){PromiseConstructor.all(iterable)["catch"](function(){})});var isThenable=function(it){var then;return isObject(it)&&"function"==typeof(then=it.then)?then:!1},notify=function(promise,state,isReject){if(!state.notified){state.notified=!0;var chain=
state.reactions;microtask(function(){for(var value=state.value,ok=1==state.state,index=0;chain.length>index;){var reaction=chain[index++],handler=ok?reaction.ok:reaction.fail,resolve=reaction.resolve,reject=reaction.reject,domain=reaction.domain,then;try{if(handler){ok||(2===state.rejection&&onHandleUnhandled(promise,state),state.rejection=1);if(!0===handler)var result=value;else if(domain&&domain.enter(),result=handler(value),domain){domain.exit();var exited=!0}result===reaction.promise?reject(TypeError("Promise-chain cycle")):
(then=isThenable(result))?then.call(result,resolve,reject):resolve(result)}else reject(value)}catch(error){domain&&!exited&&domain.exit(),reject(error)}}state.reactions=[];state.notified=!1;isReject&&!state.rejection&&onUnhandled(promise,state)})}},dispatchEvent=function(name,promise,reason){var handler;if(DISPATCH_EVENT){var event=document.createEvent("Event");event.promise=promise;event.reason=reason;event.initEvent(name,!1,!0);global.dispatchEvent(event)}else event={promise:promise,reason:reason};
(handler=global["on"+name])?handler(event):"unhandledrejection"===name&&hostReportErrors("Unhandled promise rejection",reason)},onUnhandled=function(promise,state){task.call(global,function(){var value=state.value;if(1!==state.rejection&&!state.parent){var result=perform(function(){IS_NODE?process.emit("unhandledRejection",value,promise):dispatchEvent("unhandledrejection",promise,value)});state.rejection=IS_NODE||1!==state.rejection&&!state.parent?2:1;if(result.error)throw result.value;}})},onHandleUnhandled=
function(promise,state){task.call(global,function(){IS_NODE?process.emit("rejectionHandled",promise):dispatchEvent("rejectionhandled",promise,state.value)})},bind=function(fn,promise,state,unwrap){return function(value){fn(promise,state,value,unwrap)}},internalReject=function(promise,state,value,unwrap){state.done||(state.done=!0,unwrap&&(state=unwrap),state.value=value,state.state=2,notify(promise,state,!0))},internalResolve=function internalResolve(promise,state,value,unwrap){if(!state.done){state.done=
!0;unwrap&&(state=unwrap);try{if(promise===value)throw TypeError("Promise can't be resolved itself");var then=isThenable(value);then?microtask(function(){var wrapper={done:!1};try{then.call(value,bind(internalResolve,promise,wrapper,state),bind(internalReject,promise,wrapper,state))}catch(error){internalReject(promise,wrapper,error,state)}}):(state.value=value,state.state=1,notify(promise,state,!1))}catch(error){internalReject(promise,{done:!1},error,state)}}};if(__w_pdfjs_require__){PromiseConstructor=
function(executor){anInstance(this,PromiseConstructor,"Promise");aFunction(executor);Internal.call(this);var state=getInternalState(this);try{executor(bind(internalResolve,this,state),bind(internalReject,this,state))}catch(error){internalReject(this,state,error)}};var Internal=function(executor){setInternalState(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})};Internal.prototype=redefineAll(PromiseConstructor.prototype,{then:function(onFulfilled,
onRejected){var state=getInternalPromiseState(this),reaction=newPromiseCapability(speciesConstructor(this,PromiseConstructor));reaction.ok="function"==typeof onFulfilled?onFulfilled:!0;reaction.fail="function"==typeof onRejected&&onRejected;reaction.domain=IS_NODE?process.domain:void 0;state.parent=!0;state.reactions.push(reaction);0!=state.state&&notify(this,state,!1);return reaction.promise},"catch":function(onRejected){return this.then(void 0,onRejected)}});var OwnPromiseCapability=function(){var promise=
new Internal,state=getInternalState(promise);this.promise=promise;this.resolve=bind(internalResolve,promise,state);this.reject=bind(internalReject,promise,state)};newPromiseCapabilityModule.f=newPromiseCapability=function(C){return C===PromiseConstructor||C===PromiseWrapper?new OwnPromiseCapability(C):newGenericPromiseCapability(C)};if(!IS_PURE&&"function"==typeof NativePromise){var nativeThen=NativePromise.prototype.then;redefine(NativePromise.prototype,"then",function(onFulfilled,onRejected){var that=
this;return(new PromiseConstructor(function(resolve,reject){nativeThen.call(that,resolve,reject)})).then(onFulfilled,onRejected)},{unsafe:!0});"function"==typeof $fetch&&module({global:!0,enumerable:!0,forced:!0},{fetch:function(input){return promiseResolve(PromiseConstructor,$fetch.apply(global,arguments))}})}}module({global:!0,wrap:!0,forced:__w_pdfjs_require__},{Promise:PromiseConstructor});setToStringTag(PromiseConstructor,"Promise",!1,!0);setSpecies("Promise");var PromiseWrapper=exports("Promise");
module({target:"Promise",stat:!0,forced:__w_pdfjs_require__},{reject:function(r){var capability=newPromiseCapability(this);capability.reject.call(void 0,r);return capability.promise}});module({target:"Promise",stat:!0,forced:IS_PURE||__w_pdfjs_require__},{resolve:function(x){return promiseResolve(IS_PURE&&this===PromiseWrapper?PromiseConstructor:this,x)}});module({target:"Promise",stat:!0,forced:checkCorrectnessOfIteration},{all:function(iterable){var C=this,capability=newPromiseCapability(C),resolve=
capability.resolve,reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=!1;values.push(void 0);remaining++;$promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]=value,--remaining||resolve(values))},reject)});--remaining||resolve(values)});result.error&&reject(result.value);return capability.promise},race:function(iterable){var C=
this,capability=newPromiseCapability(C),reject=capability.reject,result=perform(function(){var $promiseResolve=aFunction(C.resolve);iterate(iterable,function(promise){$promiseResolve.call(C,promise).then(capability.resolve,reject)})});result.error&&reject(result.value);return capability.promise}})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);module.exports=exports.Promise},function(module,exports,__w_pdfjs_require__){var redefine=__w_pdfjs_require__(24);module.exports=
function(target,src,options){for(var key in src)redefine(target,key,src[key],options);return target}},function(module,exports,__w_pdfjs_require__){var getBuiltIn=__w_pdfjs_require__(37),definePropertyModule=__w_pdfjs_require__(22);exports=__w_pdfjs_require__(53);var DESCRIPTORS=__w_pdfjs_require__(8),SPECIES=exports("species");module.exports=function(CONSTRUCTOR_NAME){CONSTRUCTOR_NAME=getBuiltIn(CONSTRUCTOR_NAME);var defineProperty=definePropertyModule.f;DESCRIPTORS&&CONSTRUCTOR_NAME&&!CONSTRUCTOR_NAME[SPECIES]&&
defineProperty(CONSTRUCTOR_NAME,SPECIES,{configurable:!0,get:function(){return this}})}},function(module,exports){module.exports=function(it,Constructor,name){if(!(it instanceof Constructor))throw TypeError("Incorrect "+(name?name+" ":"")+"invocation");return it}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isArrayIteratorMethod=__w_pdfjs_require__(87),toLength=__w_pdfjs_require__(42),bind=__w_pdfjs_require__(58),getIteratorMethod=__w_pdfjs_require__(89),callWithSafeIterationClosing=
__w_pdfjs_require__(86),Result=function(stopped,result){this.stopped=stopped;this.result=result};(module.exports=function(iterable,fn,that,AS_ENTRIES,IS_ITERATOR){fn=bind(fn,that,AS_ENTRIES?2:1);var length,step;if(!IS_ITERATOR){IS_ITERATOR=getIteratorMethod(iterable);if("function"!=typeof IS_ITERATOR)throw TypeError("Target is not iterable");if(isArrayIteratorMethod(IS_ITERATOR)){that=0;for(length=toLength(iterable.length);length>that;that++)if((IS_ITERATOR=AS_ENTRIES?fn(anObject(step=iterable[that])[0],
step[1]):fn(iterable[that]))&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}iterable=IS_ITERATOR.call(iterable)}for(that=iterable.next;!(step=that.call(iterable)).done;)if(IS_ITERATOR=callWithSafeIterationClosing(iterable,fn,step.value,AS_ENTRIES),"object"==_typeof2(IS_ITERATOR)&&IS_ITERATOR&&IS_ITERATOR instanceof Result)return IS_ITERATOR;return new Result(!1)}).stop=function(result){return new Result(!0,result)}},function(module,exports,__w_pdfjs_require__){var anObject=
__w_pdfjs_require__(23),aFunction=__w_pdfjs_require__(59),SPECIES=__w_pdfjs_require__(53)("species");module.exports=function(O,defaultConstructor){O=anObject(O).constructor;var S;return void 0===O||void 0==(S=anObject(O)[SPECIES])?defaultConstructor:aFunction(S)}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),fails=__w_pdfjs_require__(9),classof=__w_pdfjs_require__(14);exports=__w_pdfjs_require__(58);var html=__w_pdfjs_require__(70),createElement=__w_pdfjs_require__(20),
IS_IOS=__w_pdfjs_require__(117),location=global.location;__w_pdfjs_require__=global.setImmediate;var clear=global.clearImmediate,process=global.process,MessageChannel=global.MessageChannel,Dispatch=global.Dispatch,counter=0,queue={},run=function(id){if(queue.hasOwnProperty(id)){var fn=queue[id];delete queue[id];fn()}},runner=function(id){return function(){run(id)}},listener=function(event){run(event.data)},post=function(id){global.postMessage(id+"",location.protocol+"//"+location.host)};if(!__w_pdfjs_require__||
!clear)if(__w_pdfjs_require__=function(fn){for(var args=[],i=1;arguments.length>i;)args.push(arguments[i++]);queue[++counter]=function(){("function"==typeof fn?fn:Function(fn)).apply(void 0,args)};defer(counter);return counter},clear=function(id){delete queue[id]},"process"==classof(process))var defer=function(id){process.nextTick(runner(id))};else Dispatch&&Dispatch.now?defer=function(id){Dispatch.now(runner(id))}:MessageChannel&&!IS_IOS?(fails=new MessageChannel,classof=fails.port2,fails.port1.onmessage=
listener,defer=exports(classof.postMessage,classof,1)):!global.addEventListener||"function"!=typeof postMessage||global.importScripts||fails(post)?defer="onreadystatechange"in createElement("script")?function(id){html.appendChild(createElement("script")).onreadystatechange=function(){html.removeChild(this);run(id)}}:function(id){setTimeout(runner(id),0)}:(defer=post,global.addEventListener("message",listener,!1));module.exports={set:__w_pdfjs_require__,clear:clear}},function(module,exports,__w_pdfjs_require__){exports=
__w_pdfjs_require__(118);module.exports=/(iphone|ipod|ipad).*applewebkit/i.test(exports)},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(37);module.exports=exports("navigator","userAgent")||""},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6),getOwnPropertyDescriptor=__w_pdfjs_require__(7).f,classof=__w_pdfjs_require__(14),macrotask=__w_pdfjs_require__(116).set;__w_pdfjs_require__=__w_pdfjs_require__(117);exports=global.MutationObserver||global.WebKitMutationObserver;
var process=global.process,Promise=global.Promise,IS_NODE="process"==classof(process);getOwnPropertyDescriptor=(getOwnPropertyDescriptor=getOwnPropertyDescriptor(global,"queueMicrotask"))&&getOwnPropertyDescriptor.value;var head,last;if(!getOwnPropertyDescriptor){var flush=function(){var parent;for(IS_NODE&&(parent=process.domain)&&parent.exit();head;){var fn=head.fn;head=head.next;try{fn()}catch(error){throw head?notify():last=void 0,error;}}last=void 0;parent&&parent.enter()};if(IS_NODE)var notify=
function(){process.nextTick(flush)};else if(exports&&!__w_pdfjs_require__){var toggle=!0;var node=document.createTextNode("");(new exports(flush)).observe(node,{characterData:!0});notify=function(){node.data=toggle=!toggle}}else if(Promise&&Promise.resolve){var promise=Promise.resolve(void 0);var then=promise.then;notify=function(){then.call(promise,flush)}}else notify=function(){macrotask.call(global,flush)}}module.exports=getOwnPropertyDescriptor||function(fn){fn={fn:fn,next:void 0};last&&(last.next=
fn);head||(head=fn,notify());last=fn}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),newPromiseCapability=__w_pdfjs_require__(121);module.exports=function(C,x){anObject(C);if(isObject(x)&&x.constructor===C)return x;C=newPromiseCapability.f(C);var resolve=C.resolve;resolve(x);return C.promise}},function(module,exports,__w_pdfjs_require__){var aFunction=__w_pdfjs_require__(59),PromiseCapability=function(C){var resolve,reject;this.promise=
new C(function($$resolve,$$reject){if(void 0!==resolve||void 0!==reject)throw TypeError("Bad Promise constructor");resolve=$$resolve;reject=$$reject});this.resolve=aFunction(resolve);this.reject=aFunction(reject)};module.exports.f=function(C){return new PromiseCapability(C)}},function(module,exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6);module.exports=function(a,b){var console=global.console;console&&console.error&&(1===arguments.length?console.error(a):console.error(a,b))}},function(module,
exports){module.exports=function(exec){try{return{error:!1,value:exec()}}catch(error){return{error:!0,value:error}}}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(6);__w_pdfjs_require__=__w_pdfjs_require__(118);exports=(exports=(exports=exports.process)&&exports.versions)&&exports.v8;if(exports){exports=exports.split(".");var version=exports[0]+exports[1]}else __w_pdfjs_require__&&(exports=__w_pdfjs_require__.match(/Edge\/(\d+)/),(!exports||74<=exports[1])&&(exports=__w_pdfjs_require__.match(/Chrome\/(\d+)/))&&
(version=exports[1]));module.exports=version&&+version},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var aFunction=__w_pdfjs_require__(59),newPromiseCapabilityModule=__w_pdfjs_require__(121),perform=__w_pdfjs_require__(123),iterate=__w_pdfjs_require__(114);module({target:"Promise",stat:!0},{allSettled:function(iterable){var C=this,capability=newPromiseCapabilityModule.f(C),resolve=capability.resolve,reject=capability.reject,result=perform(function(){var promiseResolve=
aFunction(C.resolve),values=[],counter=0,remaining=1;iterate(iterable,function(promise){var index=counter++,alreadyCalled=!1;values.push(void 0);remaining++;promiseResolve.call(C,promise).then(function(value){alreadyCalled||(alreadyCalled=!0,values[index]={status:"fulfilled",value:value},--remaining||resolve(values))},function(e){alreadyCalled||(alreadyCalled=!0,values[index]={status:"rejected",reason:e},--remaining||resolve(values))})});--remaining||resolve(values)});result.error&&reject(result.value);
return capability.promise}})},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);exports=__w_pdfjs_require__(32);var NativePromise=__w_pdfjs_require__(110),fails=__w_pdfjs_require__(9),getBuiltIn=__w_pdfjs_require__(37),speciesConstructor=__w_pdfjs_require__(115),promiseResolve=__w_pdfjs_require__(120);__w_pdfjs_require__=__w_pdfjs_require__(24);fails=!!NativePromise&&fails(function(){NativePromise.prototype["finally"].call({then:function(){}},function(){})});module({target:"Promise",
proto:!0,real:!0,forced:fails},{"finally":function(onFinally){var C=speciesConstructor(this,getBuiltIn("Promise")),isFunction="function"==typeof onFinally;return this.then(isFunction?function(x){return promiseResolve(C,onFinally()).then(function(){return x})}:onFinally,isFunction?function(e){return promiseResolve(C,onFinally()).then(function(){throw e;})}:onFinally)}});exports||"function"!=typeof NativePromise||NativePromise.prototype["finally"]||__w_pdfjs_require__(NativePromise.prototype,"finally",
getBuiltIn("Promise").prototype["finally"])},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(128);__w_pdfjs_require__(133);__w_pdfjs_require__(131);exports=__w_pdfjs_require__(38);module.exports=exports.URL},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(72);module=__w_pdfjs_require__(5);var DESCRIPTORS=__w_pdfjs_require__(8);exports=__w_pdfjs_require__(129);var global=__w_pdfjs_require__(6),defineProperties=__w_pdfjs_require__(68),redefine=__w_pdfjs_require__(24),
anInstance=__w_pdfjs_require__(113),has=__w_pdfjs_require__(18),assign=__w_pdfjs_require__(95),arrayFrom=__w_pdfjs_require__(85),codeAt=__w_pdfjs_require__(73).codeAt,toASCII=__w_pdfjs_require__(130),setToStringTag=__w_pdfjs_require__(80),URLSearchParamsModule=__w_pdfjs_require__(131);__w_pdfjs_require__=__w_pdfjs_require__(28);var NativeURL=global.URL,URLSearchParams=URLSearchParamsModule.URLSearchParams,getInternalSearchParamsState=URLSearchParamsModule.getState,setInternalState=__w_pdfjs_require__.set,
getInternalURLState=__w_pdfjs_require__.getterFor("URL"),floor=Math.floor,pow=Math.pow,ALPHA=/[A-Za-z]/,ALPHANUMERIC=/[\d+\-.A-Za-z]/,DIGIT=/\d/,HEX_START=/^(0x|0X)/,OCT=/^[0-7]+$/,DEC=/^\d+$/,HEX=/^[\dA-Fa-f]+$/,FORBIDDEN_HOST_CODE_POINT=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,TAB_AND_NEW_LINE=/[\u0009\u000A\u000D]/g,parseHost=function(url,
input){var index;if("["==input.charAt(0)){if("]"!=input.charAt(input.length-1))return"Invalid host";var result=parseIPv6(input.slice(1,-1));if(!result)return"Invalid host"}else if(isSpecial(url)){input=toASCII(input);if(FORBIDDEN_HOST_CODE_POINT.test(input))return"Invalid host";result=parseIPv4(input);if(null===result)return"Invalid host"}else{if(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT.test(input))return"Invalid host";result="";input=arrayFrom(input);for(index=0;index<input.length;index++)result+=
percentEncode(input[index],C0ControlPercentEncodeSet)}url.host=result},parseIPv4=function(input){var parts=input.split("."),index;parts.length&&""==parts[parts.length-1]&&parts.pop();var partsLength=parts.length;if(4<partsLength)return input;var numbers=[];for(index=0;index<partsLength;index++){var part=parts[index];if(""==part)return input;var radix=10;1<part.length&&"0"==part.charAt(0)&&(radix=HEX_START.test(part)?16:8,part=part.slice(8==radix?1:2));if(""===part)part=0;else{if(!(10==radix?DEC:8==
radix?OCT:HEX).test(part))return input;part=parseInt(part,radix)}numbers.push(part)}for(index=0;index<partsLength;index++)if(part=numbers[index],index==partsLength-1){if(part>=pow(256,5-partsLength))return null}else if(255<part)return null;input=numbers.pop();for(index=0;index<numbers.length;index++)input+=numbers[index]*pow(256,3-index);return input},parseIPv6=function(input){var address=[0,0,0,0,0,0,0,0],pieceIndex=0,compress=null,pointer=0,value,length;var swaps=function(){return input.charAt(pointer)};
if(":"==swaps()){if(":"!=input.charAt(1))return;pointer+=2;pieceIndex++;compress=pieceIndex}for(;swaps();){if(8==pieceIndex)return;if(":"==swaps()){if(null!==compress)return;pointer++;pieceIndex++;compress=pieceIndex}else{for(value=length=0;4>length&&HEX.test(swaps());)value=16*value+parseInt(swaps(),16),pointer++,length++;if("."==swaps()){if(0==length)return;pointer-=length;if(6<pieceIndex)return;for(value=0;swaps();){length=null;if(0<value)if("."==swaps()&&4>value)pointer++;else return;if(!DIGIT.test(swaps()))return;
for(;DIGIT.test(swaps());){var number=parseInt(swaps(),10);if(null===length)length=number;else{if(0==length)return;length=10*length+number}if(255<length)return;pointer++}address[pieceIndex]=256*address[pieceIndex]+length;value++;2!=value&&4!=value||pieceIndex++}if(4!=value)return;break}else if(":"==swaps()){if(pointer++,!swaps())return}else if(swaps())return;address[pieceIndex++]=value}}if(null!==compress)for(swaps=pieceIndex-compress,pieceIndex=7;0!=pieceIndex&&0<swaps;)value=address[pieceIndex],
address[pieceIndex--]=address[compress+swaps-1],address[compress+--swaps]=value;else if(8!=pieceIndex)return;return address},serializeHost=function(host){var index,ignore0;if("number"==typeof host){var result=[];for(index=0;4>index;index++)result.unshift(host%256),host=floor(host/256);return result.join(".")}if("object"==_typeof2(host)){result="";index=null;var compress=1;for(var currStart=null,currLength=0,index$jscomp$0=0;8>index$jscomp$0;index$jscomp$0++)0!==host[index$jscomp$0]?(currLength>compress&&
(index=currStart,compress=currLength),currStart=null,currLength=0):(null===currStart&&(currStart=index$jscomp$0),++currLength);currLength>compress&&(index=currStart);compress=index;for(index=0;8>index;index++)ignore0&&0===host[index]||(ignore0&&(ignore0=!1),compress===index?(result+=index?":":"::",ignore0=!0):(result+=host[index].toString(16),7>index&&(result+=":")));return"["+result+"]"}return host},C0ControlPercentEncodeSet={},fragmentPercentEncodeSet=assign({},C0ControlPercentEncodeSet,{" ":1,
'"':1,"<":1,">":1,"`":1}),pathPercentEncodeSet=assign({},fragmentPercentEncodeSet,{"#":1,"?":1,"{":1,"}":1}),userinfoPercentEncodeSet=assign({},pathPercentEncodeSet,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(_char2,set){var code=codeAt(_char2,0);return 32<code&&127>code&&!has(set,_char2)?_char2:encodeURIComponent(_char2)},specialSchemes={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(url){return has(specialSchemes,url.scheme)},cannotHaveUsernamePasswordPort=
function(url){return!url.host||url.cannotBeABaseURL||"file"==url.scheme},isWindowsDriveLetter=function(string,normalized){var second;return 2==string.length&&ALPHA.test(string.charAt(0))&&(":"==(second=string.charAt(1))||!normalized&&"|"==second)},startsWithWindowsDriveLetter=function(string){var third;return 1<string.length&&isWindowsDriveLetter(string.slice(0,2))&&(2==string.length||"/"===(third=string.charAt(2))||"\\"===third||"?"===third||"#"===third)},shortenURLsPath=function(url){var path=url.path,
pathSize=path.length;!pathSize||"file"==url.scheme&&1==pathSize&&isWindowsDriveLetter(path[0],!0)||path.pop()},SCHEME_START={},SCHEME={},NO_SCHEME={},SPECIAL_RELATIVE_OR_AUTHORITY={},PATH_OR_AUTHORITY={},RELATIVE={},RELATIVE_SLASH={},SPECIAL_AUTHORITY_SLASHES={},SPECIAL_AUTHORITY_IGNORE_SLASHES={},AUTHORITY={},HOST={},HOSTNAME={},PORT={},FILE={},FILE_SLASH={},FILE_HOST={},PATH_START={},PATH={},CANNOT_BE_A_BASE_URL_PATH={},QUERY={},FRAGMENT={},parseURL=function(url,input,stateOverride,base){var state=
stateOverride||SCHEME_START,pointer=0,buffer="",seenAt=!1,seenBracket=!1,seenPasswordToken=!1;stateOverride||(url.scheme="",url.username="",url.password="",url.host=null,url.port=null,url.path=[],url.query=null,url.fragment=null,url.cannotBeABaseURL=!1,input=input.replace(LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE,""));input=input.replace(TAB_AND_NEW_LINE,"");for(input=arrayFrom(input);pointer<=input.length;){var _char3=input[pointer];switch(state){case SCHEME_START:if(_char3&&ALPHA.test(_char3))buffer+=
_char3.toLowerCase(),state=SCHEME;else{if(stateOverride)return"Invalid scheme";state=NO_SCHEME;continue}break;case SCHEME:if(_char3&&(ALPHANUMERIC.test(_char3)||"+"==_char3||"-"==_char3||"."==_char3))buffer+=_char3.toLowerCase();else if(":"==_char3){if(stateOverride&&(isSpecial(url)!=has(specialSchemes,buffer)||"file"==buffer&&(""!=url.username||""!=url.password||null!==url.port)||"file"==url.scheme&&!url.host))return;url.scheme=buffer;if(stateOverride){isSpecial(url)&&specialSchemes[url.scheme]==
url.port&&(url.port=null);return}buffer="";"file"==url.scheme?state=FILE:isSpecial(url)&&base&&base.scheme==url.scheme?state=SPECIAL_RELATIVE_OR_AUTHORITY:isSpecial(url)?state=SPECIAL_AUTHORITY_SLASHES:"/"==input[pointer+1]?(state=PATH_OR_AUTHORITY,pointer++):(url.cannotBeABaseURL=!0,url.path.push(""),state=CANNOT_BE_A_BASE_URL_PATH)}else{if(stateOverride)return"Invalid scheme";buffer="";state=NO_SCHEME;pointer=0;continue}break;case NO_SCHEME:if(!base||base.cannotBeABaseURL&&"#"!=_char3)return"Invalid scheme";
if(base.cannotBeABaseURL&&"#"==_char3){url.scheme=base.scheme;url.path=base.path.slice();url.query=base.query;url.fragment="";url.cannotBeABaseURL=!0;state=FRAGMENT;break}state="file"==base.scheme?FILE:RELATIVE;continue;case SPECIAL_RELATIVE_OR_AUTHORITY:if("/"==_char3&&"/"==input[pointer+1])state=SPECIAL_AUTHORITY_IGNORE_SLASHES,pointer++;else{state=RELATIVE;continue}break;case PATH_OR_AUTHORITY:if("/"==_char3){state=AUTHORITY;break}else{state=PATH;continue}case RELATIVE:url.scheme=base.scheme;if(void 0==
_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query=base.query;else if("/"==_char3||"\\"==_char3&&isSpecial(url))state=RELATIVE_SLASH;else if("?"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.username=base.username,url.password=base.password,url.host=base.host,url.port=base.port,url.path=
base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;url.path=base.path.slice();url.path.pop();state=PATH;continue}break;case RELATIVE_SLASH:if(!isSpecial(url)||"/"!=_char3&&"\\"!=_char3)if("/"==_char3)state=AUTHORITY;else{url.username=base.username;url.password=base.password;url.host=base.host;url.port=base.port;state=PATH;continue}else state=SPECIAL_AUTHORITY_IGNORE_SLASHES;break;case SPECIAL_AUTHORITY_SLASHES:state=
SPECIAL_AUTHORITY_IGNORE_SLASHES;if("/"!=_char3||"/"!=buffer.charAt(pointer+1))continue;pointer++;break;case SPECIAL_AUTHORITY_IGNORE_SLASHES:if("/"!=_char3&&"\\"!=_char3){state=AUTHORITY;continue}break;case AUTHORITY:if("@"==_char3){seenAt&&(buffer="%40"+buffer);seenAt=!0;buffer=arrayFrom(buffer);for(_char3=0;_char3<buffer.length;_char3++){var codePoint=buffer[_char3];":"!=codePoint||seenPasswordToken?(codePoint=percentEncode(codePoint,userinfoPercentEncodeSet),seenPasswordToken?url.password+=codePoint:
url.username+=codePoint):seenPasswordToken=!0}buffer=""}else if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(seenAt&&""==buffer)return"Invalid authority";pointer-=arrayFrom(buffer).length+1;buffer="";state=HOST}else buffer+=_char3;break;case HOST:case HOSTNAME:if(stateOverride&&"file"==url.scheme){state=FILE_HOST;continue}else if(":"!=_char3||seenBracket)if(void 0==_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)){if(isSpecial(url)&&
""==buffer)return"Invalid host";if(stateOverride&&""==buffer&&(""!=url.username||""!=url.password||null!==url.port))return;if(state=parseHost(url,buffer))return state;buffer="";state=PATH_START;if(stateOverride)return;continue}else"["==_char3?seenBracket=!0:"]"==_char3&&(seenBracket=!1),buffer+=_char3;else{if(""==buffer)return"Invalid host";if(state=parseHost(url,buffer))return state;buffer="";state=PORT;if(stateOverride==HOSTNAME)return}break;case PORT:if(DIGIT.test(_char3))buffer+=_char3;else if(void 0==
_char3||"/"==_char3||"?"==_char3||"#"==_char3||"\\"==_char3&&isSpecial(url)||stateOverride){if(""!=buffer){state=parseInt(buffer,10);if(65535<state)return"Invalid port";url.port=isSpecial(url)&&state===specialSchemes[url.scheme]?null:state;buffer=""}if(stateOverride)return;state=PATH_START;continue}else return"Invalid port";break;case FILE:url.scheme="file";if("/"==_char3||"\\"==_char3)state=FILE_SLASH;else if(base&&"file"==base.scheme)if(void 0==_char3)url.host=base.host,url.path=base.path.slice(),
url.query=base.query;else if("?"==_char3)url.host=base.host,url.path=base.path.slice(),url.query="",state=QUERY;else if("#"==_char3)url.host=base.host,url.path=base.path.slice(),url.query=base.query,url.fragment="",state=FRAGMENT;else{startsWithWindowsDriveLetter(input.slice(pointer).join(""))||(url.host=base.host,url.path=base.path.slice(),shortenURLsPath(url));state=PATH;continue}else{state=PATH;continue}break;case FILE_SLASH:if("/"==_char3||"\\"==_char3){state=FILE_HOST;break}base&&"file"==base.scheme&&
!startsWithWindowsDriveLetter(input.slice(pointer).join(""))&&(isWindowsDriveLetter(base.path[0],!0)?url.path.push(base.path[0]):url.host=base.host);state=PATH;continue;case FILE_HOST:if(void 0==_char3||"/"==_char3||"\\"==_char3||"?"==_char3||"#"==_char3){if(!stateOverride&&isWindowsDriveLetter(buffer))state=PATH;else{if(""==buffer){if(url.host="",stateOverride)return}else{if(state=parseHost(url,buffer))return state;"localhost"==url.host&&(url.host="");if(stateOverride)return;buffer=""}state=PATH_START}continue}else buffer+=
_char3;break;case PATH_START:if(isSpecial(url)){if(state=PATH,"/"!=_char3&&"\\"!=_char3)continue}else if(!stateOverride&&"?"==_char3)url.query="",state=QUERY;else if(!stateOverride&&"#"==_char3)url.fragment="",state=FRAGMENT;else if(void 0!=_char3&&(state=PATH,"/"!=_char3))continue;break;case PATH:if(void 0==_char3||"/"==_char3||"\\"==_char3&&isSpecial(url)||!stateOverride&&("?"==_char3||"#"==_char3)){codePoint=buffer;codePoint=codePoint.toLowerCase();".."===codePoint||"%2e."===codePoint||".%2e"===
codePoint||"%2e%2e"===codePoint?(shortenURLsPath(url),"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push("")):"."===buffer||"%2e"===buffer.toLowerCase()?"/"==_char3||"\\"==_char3&&isSpecial(url)||url.path.push(""):("file"==url.scheme&&!url.path.length&&isWindowsDriveLetter(buffer)&&(url.host&&(url.host=""),buffer=buffer.charAt(0)+":"),url.path.push(buffer));buffer="";if("file"==url.scheme&&(void 0==_char3||"?"==_char3||"#"==_char3))for(;1<url.path.length&&""===url.path[0];)url.path.shift();
"?"==_char3?(url.query="",state=QUERY):"#"==_char3&&(url.fragment="",state=FRAGMENT)}else buffer+=percentEncode(_char3,pathPercentEncodeSet);break;case CANNOT_BE_A_BASE_URL_PATH:"?"==_char3?(url.query="",state=QUERY):"#"==_char3?(url.fragment="",state=FRAGMENT):void 0!=_char3&&(url.path[0]+=percentEncode(_char3,C0ControlPercentEncodeSet));break;case QUERY:stateOverride||"#"!=_char3?void 0!=_char3&&("'"==_char3&&isSpecial(url)?url.query+="%27":url.query="#"==_char3?url.query+"%23":url.query+percentEncode(_char3,
C0ControlPercentEncodeSet)):(url.fragment="",state=FRAGMENT);break;case FRAGMENT:void 0!=_char3&&(url.fragment+=percentEncode(_char3,fragmentPercentEncodeSet))}pointer++}},URLConstructor=function(url){var that=anInstance(this,URLConstructor,"URL"),base=1<arguments.length?arguments[1]:void 0,urlString=String(url),state=setInternalState(that,{type:"URL"}),failure;if(void 0!==base)if(base instanceof URLConstructor)var baseState=getInternalURLState(base);else if(failure=parseURL(baseState={},String(base)))throw TypeError(failure);
if(failure=parseURL(state,urlString,null,baseState))throw TypeError(failure);var searchParams=state.searchParams=new URLSearchParams;base=getInternalSearchParamsState(searchParams);base.updateSearchParams(state.query);base.updateURL=function(){state.query=String(searchParams)||null};DESCRIPTORS||(that.href=serializeURL.call(that),that.origin=getOrigin.call(that),that.protocol=getProtocol.call(that),that.username=getUsername.call(that),that.password=getPassword.call(that),that.host=getHost.call(that),
that.hostname=getHostname.call(that),that.port=getPort.call(that),that.pathname=getPathname.call(that),that.search=getSearch.call(that),that.searchParams=getSearchParams.call(that),that.hash=getHash.call(that))};__w_pdfjs_require__=URLConstructor.prototype;var serializeURL=function(){var url=getInternalURLState(this),scheme=url.scheme,username=url.username,password=url.password,host=url.host,port=url.port,path=url.path,query=url.query,fragment=url.fragment,output=scheme+":";if(null!==host){output+=
"//";if(""!=url.username||""!=url.password)output+=username+(password?":"+password:"")+"@";output+=serializeHost(host);null!==port&&(output+=":"+port)}else"file"==scheme&&(output+="//");output+=url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):"";null!==query&&(output+="?"+query);null!==fragment&&(output+="#"+fragment);return output},getOrigin=function(){var url=getInternalURLState(this),scheme=url.scheme,port=url.port;if("blob"==scheme)try{return(new URL(scheme.path[0])).origin}catch(error){return"null"}return"file"!=
scheme&&isSpecial(url)?scheme+"://"+serializeHost(url.host)+(null!==port?":"+port:""):"null"},getProtocol=function(){return getInternalURLState(this).scheme+":"},getUsername=function(){return getInternalURLState(this).username},getPassword=function(){return getInternalURLState(this).password},getHost=function(){var url=getInternalURLState(this),host=url.host;url=url.port;return null===host?"":null===url?serializeHost(host):serializeHost(host)+":"+url},getHostname=function(){var host=getInternalURLState(this).host;
return null===host?"":serializeHost(host)},getPort=function(){var port=getInternalURLState(this).port;return null===port?"":String(port)},getPathname=function(){var url=getInternalURLState(this),path=url.path;return url.cannotBeABaseURL?path[0]:path.length?"/"+path.join("/"):""},getSearch=function(){var query=getInternalURLState(this).query;return query?"?"+query:""},getSearchParams=function(){return getInternalURLState(this).searchParams},getHash=function(){var fragment=getInternalURLState(this).fragment;
return fragment?"#"+fragment:""};global=function(getter,setter){return{get:getter,set:setter,configurable:!0,enumerable:!0}};DESCRIPTORS&&defineProperties(__w_pdfjs_require__,{href:global(serializeURL,function(href){var url=getInternalURLState(this);if(href=parseURL(url,String(href)))throw TypeError(href);getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),origin:global(getOrigin),protocol:global(getProtocol,function(protocol){var url=getInternalURLState(this);parseURL(url,
String(protocol)+":",SCHEME_START)}),username:global(getUsername,function(username){var url=getInternalURLState(this);username=arrayFrom(String(username));if(!cannotHaveUsernamePasswordPort(url)){url.username="";for(var i=0;i<username.length;i++)url.username+=percentEncode(username[i],userinfoPercentEncodeSet)}}),password:global(getPassword,function(password){var url=getInternalURLState(this);password=arrayFrom(String(password));if(!cannotHaveUsernamePasswordPort(url)){url.password="";for(var i=0;i<
password.length;i++)url.password+=percentEncode(password[i],userinfoPercentEncodeSet)}}),host:global(getHost,function(host){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(host),HOST)}),hostname:global(getHostname,function(hostname){var url=getInternalURLState(this);url.cannotBeABaseURL||parseURL(url,String(hostname),HOSTNAME)}),port:global(getPort,function(port){var url=getInternalURLState(this);cannotHaveUsernamePasswordPort(url)||(port=String(port),""==port?url.port=
null:parseURL(url,port,PORT))}),pathname:global(getPathname,function(pathname){var url=getInternalURLState(this);url.cannotBeABaseURL||(url.path=[],parseURL(url,pathname+"",PATH_START))}),search:global(getSearch,function(search){var url=getInternalURLState(this);search=String(search);""==search?url.query=null:("?"==search.charAt(0)&&(search=search.slice(1)),url.query="",parseURL(url,search,QUERY));getInternalSearchParamsState(url.searchParams).updateSearchParams(url.query)}),searchParams:global(getSearchParams),
hash:global(getHash,function(hash){var url=getInternalURLState(this);hash=String(hash);""==hash?url.fragment=null:("#"==hash.charAt(0)&&(hash=hash.slice(1)),url.fragment="",parseURL(url,hash,FRAGMENT))})});redefine(__w_pdfjs_require__,"toJSON",function(){return serializeURL.call(this)},{enumerable:!0});redefine(__w_pdfjs_require__,"toString",function(){return serializeURL.call(this)},{enumerable:!0});if(NativeURL){var nativeCreateObjectURL=NativeURL.createObjectURL,nativeRevokeObjectURL=NativeURL.revokeObjectURL;
nativeCreateObjectURL&&redefine(URLConstructor,"createObjectURL",function(blob){return nativeCreateObjectURL.apply(NativeURL,arguments)});nativeRevokeObjectURL&&redefine(URLConstructor,"revokeObjectURL",function(url){return nativeRevokeObjectURL.apply(NativeURL,arguments)})}setToStringTag(URLConstructor,"URL");module({global:!0,forced:!exports,sham:!DESCRIPTORS},{URL:URLConstructor})},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);var wellKnownSymbol=__w_pdfjs_require__(53),
IS_PURE=__w_pdfjs_require__(32),ITERATOR=wellKnownSymbol("iterator");module.exports=!exports(function(){var url=new URL("b?a=1&b=2&c=3","http://a"),searchParams=url.searchParams,result="";url.pathname="c%20d";searchParams.forEach(function(value,key){searchParams["delete"]("b");result+=key+value});return IS_PURE&&!url.toJSON||!searchParams.sort||"http://a/c%20d?a=1&c=3"!==url.href||"3"!==searchParams.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!searchParams[ITERATOR]||"a"!==(new URL("https://a@b")).username||
"b"!==(new URLSearchParams(new URLSearchParams("a=b"))).get("a")||"xn--e1aybc"!==(new URL("http://\u0442\u0435\u0441\u0442")).host||"#%D0%B1"!==(new URL("http://a#\u0431")).hash||"a1c3"!==result||"x"!==(new URL("http://x",void 0)).host})},function(module,exports,__w_pdfjs_require__){var regexNonASCII=/[^\0-\u007E]/,regexSeparators=/[.\u3002\uFF0E\uFF61]/g,floor=Math.floor,stringFromCharCode=String.fromCharCode;module.exports=function(input$jscomp$0){var encoded=[];input$jscomp$0=input$jscomp$0.toLowerCase().replace(regexSeparators,
".").split(".");var i;for(i=0;i<input$jscomp$0.length;i++){var label=input$jscomp$0[i];var JSCompiler_temp_const=encoded,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.push;if(regexNonASCII.test(label)){var input=label;label=[];var i$jscomp$0=input;input=[];for(var counter=0,length=i$jscomp$0.length;counter<length;){var value=i$jscomp$0.charCodeAt(counter++);if(55296<=value&&56319>=value&&counter<length){var extra=i$jscomp$0.charCodeAt(counter++);56320==(extra&64512)?input.push(((value&1023)<<
10)+(extra&1023)+65536):(input.push(value),counter--)}else input.push(value)}counter=input.length;length=128;var delta=0,bias=72;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){var currentValue=input[i$jscomp$0];128>currentValue&&label.push(stringFromCharCode(currentValue))}for((extra=value=label.length)&&label.push("-");extra<counter;){var m=2147483647;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++)currentValue=input[i$jscomp$0],currentValue>=length&&currentValue<m&&(m=currentValue);
var handledCPCountPlusOne=extra+1;if(m-length>floor((2147483647-delta)/handledCPCountPlusOne))throw RangeError("Overflow: input needs wider integers to process");delta+=(m-length)*handledCPCountPlusOne;length=m;for(i$jscomp$0=0;i$jscomp$0<input.length;i$jscomp$0++){currentValue=input[i$jscomp$0];if(currentValue<length&&2147483647<++delta)throw RangeError("Overflow: input needs wider integers to process");if(currentValue==length){var q=delta;for(currentValue=36;;currentValue+=36){m=currentValue<=bias?
1:currentValue>=bias+26?26:currentValue-bias;if(q<m)break;q-=m;var baseMinusT=36-m,JSCompiler_temp_const$jscomp$1=label;m+=q%baseMinusT;JSCompiler_temp_const$jscomp$1.push.call(JSCompiler_temp_const$jscomp$1,stringFromCharCode(m+22+75*(26>m)));q=floor(q/baseMinusT)}label.push(stringFromCharCode(q+22+75*(26>q)));bias=handledCPCountPlusOne;currentValue=0;delta=extra==value?floor(delta/700):delta>>1;for(delta+=floor(delta/bias);455<delta;currentValue+=36)delta=floor(delta/35);bias=floor(currentValue+
36*delta/(delta+38));delta=0;++extra}}++delta;++length}label="xn--"+label.join("")}JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,label)}return encoded.join(".")}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(108);exports=__w_pdfjs_require__(5);var getBuiltIn=__w_pdfjs_require__(37),USE_NATIVE_URL=__w_pdfjs_require__(129),redefine=__w_pdfjs_require__(24),redefineAll=__w_pdfjs_require__(111),setToStringTag=__w_pdfjs_require__(80),createIteratorConstructor=__w_pdfjs_require__(75),
InternalStateModule=__w_pdfjs_require__(28),anInstance=__w_pdfjs_require__(113),hasOwn=__w_pdfjs_require__(18),bind=__w_pdfjs_require__(58),classof=__w_pdfjs_require__(90),anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),create=__w_pdfjs_require__(67),createPropertyDescriptor=__w_pdfjs_require__(11),getIterator=__w_pdfjs_require__(132),getIteratorMethod=__w_pdfjs_require__(89);__w_pdfjs_require__=__w_pdfjs_require__(53);var $fetch=getBuiltIn("fetch"),Headers=getBuiltIn("Headers");
__w_pdfjs_require__=__w_pdfjs_require__("iterator");var setInternalState=InternalStateModule.set,getInternalParamsState=InternalStateModule.getterFor("URLSearchParams"),getInternalIteratorState=InternalStateModule.getterFor("URLSearchParamsIterator"),plus=/\+/g,sequences=Array(4),percentDecode=function(sequence){try{return decodeURIComponent(sequence)}catch(error){return sequence}},deserialize=function(it){var result=it.replace(plus," ");it=4;try{return decodeURIComponent(result)}catch(error){for(;it;){var JSCompiler_temp_const=
result.replace;var JSCompiler_inline_result=it--;JSCompiler_inline_result=sequences[JSCompiler_inline_result-1]||(sequences[JSCompiler_inline_result-1]=RegExp("((?:%[\\da-f]{2}){"+JSCompiler_inline_result+"})","gi"));result=JSCompiler_temp_const.call(result,JSCompiler_inline_result,percentDecode)}return result}},find=/[!'()~]|%20/g,replace={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(match){return replace[match]},parseSearchParams=function(result,query){if(query){query=
query.split("&");for(var index=0,attribute;index<query.length;)attribute=query[index++],attribute.length&&(attribute=attribute.split("="),result.push({key:deserialize(attribute.shift()),value:deserialize(attribute.join("="))}))}},updateSearchParams=function(query){this.entries.length=0;parseSearchParams(this.entries,query)},validateArgumentsLength=function(passed,required){if(passed<required)throw TypeError("Not enough arguments");},URLSearchParamsIterator=createIteratorConstructor(function(params,
kind){setInternalState(this,{type:"URLSearchParamsIterator",iterator:getIterator(getInternalParamsState(params).entries),kind:kind})},"Iterator",function(){var state=getInternalIteratorState(this),kind=state.kind;state=state.iterator.next();var entry=state.value;state.done||(state.value="keys"===kind?entry.key:"values"===kind?entry.value:[entry.key,entry.value]);return state}),URLSearchParamsConstructor=function(){anInstance(this,URLSearchParamsConstructor,"URLSearchParams");var init=0<arguments.length?
arguments[0]:void 0,entries=[],step,first,second;setInternalState(this,{type:"URLSearchParams",entries:entries,updateURL:function(){},updateSearchParams:updateSearchParams});if(void 0!==init)if(isObject(init)){var iteratorMethod=getIteratorMethod(init);if("function"===typeof iteratorMethod)for(init=iteratorMethod.call(init),iteratorMethod=init.next;!(step=iteratorMethod.call(init)).done;){step=getIterator(anObject(step.value));var entryNext=step.next;if((first=entryNext.call(step)).done||(second=
entryNext.call(step)).done||!entryNext.call(step).done)throw TypeError("Expected sequence with length 2");entries.push({key:first.value+"",value:second.value+""})}else for(step in init)hasOwn(init,step)&&entries.push({key:step,value:init[step]+""})}else parseSearchParams(entries,"string"===typeof init?"?"===init.charAt(0)?init.slice(1):init:init+"")};createIteratorConstructor=URLSearchParamsConstructor.prototype;redefineAll(createIteratorConstructor,{append:function(name,value){validateArgumentsLength(arguments.length,
2);var state=getInternalParamsState(this);state.entries.push({key:name+"",value:value+""});state.updateURL()},"delete":function(name){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,key=name+"",index=0;index<entries.length;)entries[index].key===key?entries.splice(index,1):index++;state.updateURL()},get:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<
entries.length;index++)if(entries[index].key===key)return entries[index].value;return null},getAll:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",result=[],index=0;index<entries.length;index++)entries[index].key===key&&result.push(entries[index].value);return result},has:function(name){validateArgumentsLength(arguments.length,1);for(var entries=getInternalParamsState(this).entries,key=name+"",index=0;index<entries.length;)if(entries[index++].key===
key)return!0;return!1},set:function(name,value){validateArgumentsLength(arguments.length,1);for(var state=getInternalParamsState(this),entries=state.entries,found=!1,key=name+"",val=value+"",index=0,entry;index<entries.length;index++)entry=entries[index],entry.key===key&&(found?entries.splice(index--,1):(found=!0,entry.value=val));found||entries.push({key:key,value:val});state.updateURL()},sort:function(){var state=getInternalParamsState(this),entries=state.entries,slice=entries.slice(),entriesIndex,
sliceIndex;for(sliceIndex=entries.length=0;sliceIndex<slice.length;sliceIndex++){var entry=slice[sliceIndex];for(entriesIndex=0;entriesIndex<sliceIndex;entriesIndex++)if(entries[entriesIndex].key>entry.key){entries.splice(entriesIndex,0,entry);break}entriesIndex===sliceIndex&&entries.push(entry)}state.updateURL()},forEach:function(callback){for(var entries=getInternalParamsState(this).entries,boundFunction=bind(callback,1<arguments.length?arguments[1]:void 0,3),index=0,entry;index<entries.length;)entry=
entries[index++],boundFunction(entry.value,entry.key,this)},keys:function(){return new URLSearchParamsIterator(this,"keys")},values:function(){return new URLSearchParamsIterator(this,"values")},entries:function(){return new URLSearchParamsIterator(this,"entries")}},{enumerable:!0});redefine(createIteratorConstructor,__w_pdfjs_require__,createIteratorConstructor.entries);redefine(createIteratorConstructor,"toString",function(){for(var entries=getInternalParamsState(this).entries,result=[],index=0,
entry;index<entries.length;)entry=entries[index++],result.push(encodeURIComponent(entry.key).replace(find,replacer)+"="+encodeURIComponent(entry.value).replace(find,replacer));return result.join("&")},{enumerable:!0});setToStringTag(URLSearchParamsConstructor,"URLSearchParams");exports({global:!0,forced:!USE_NATIVE_URL},{URLSearchParams:URLSearchParamsConstructor});USE_NATIVE_URL||"function"!=typeof $fetch||"function"!=typeof Headers||exports({global:!0,enumerable:!0,forced:!0},{fetch:function(input){var args=
[input];if(1<arguments.length){var init=arguments[1];if(isObject(init)){var body=init.body;if("URLSearchParams"===classof(body)){var headers=init.headers?new Headers(init.headers):new Headers;headers.has("content-type")||headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8");init=create(init,{body:createPropertyDescriptor(0,String(body)),headers:createPropertyDescriptor(0,headers)})}}args.push(init)}return $fetch.apply(this,args)}});module.exports={URLSearchParams:URLSearchParamsConstructor,
getState:getInternalParamsState}},function(module,exports,__w_pdfjs_require__){var anObject=__w_pdfjs_require__(23),getIteratorMethod=__w_pdfjs_require__(89);module.exports=function(it){var iteratorMethod=getIteratorMethod(it);if("function"!=typeof iteratorMethod)throw TypeError(String(it)+" is not iterable");return anObject(iteratorMethod.call(it))}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(5)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},
function(__webpack_module__,__webpack_exports__,__w_pdfjs_require__){function noop(){}function typeIsObject(x){return"object"===_typeof2(x)&&null!==x||"function"===typeof x}function IsFiniteNonNegativeNumber(v){return!1===("number"!==typeof v||NumberIsNaN(v)||0>v?!1:!0)||Infinity===v?!1:!0}function Call(F,V,args){if("function"!==typeof F)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(F,V,args)}function CreateAlgorithmFromUnderlyingMethod(underlyingObject,methodName,
algoArgCount,extraArgs){var method=underlyingObject[methodName];if(void 0!==method){if("function"!==typeof method)throw new TypeError(method+" is not a method");switch(algoArgCount){case 0:return function(){return PromiseCall(method,underlyingObject,extraArgs)};case 1:return function(arg){arg=[arg].concat(extraArgs);return PromiseCall(method,underlyingObject,arg)}}}return function(){return originalPromiseResolve(void 0)}}function InvokeOrNoop(O,P,args){P=O[P];if(void 0!==P)return Call(P,O,args)}function PromiseCall(F,
V,args){try{return originalPromiseResolve(Call(F,V,args))}catch(value){return originalPromiseReject(value)}}function ValidateAndNormalizeHighWaterMark(highWaterMark){highWaterMark=Number(highWaterMark);if(NumberIsNaN(highWaterMark)||0>highWaterMark)throw new RangeError("highWaterMark property of a queuing strategy must be non-negative and non-NaN");return highWaterMark}function MakeSizeAlgorithmFromSizeFunction(size){if(void 0===size)return function(){return 1};if("function"!==typeof size)throw new TypeError("size property of a queuing strategy must be a function");
return function(chunk){return size(chunk)}}function newPromise(executor){return new originalPromise(executor)}function PerformPromiseThen(promise,onFulfilled,onRejected){return originalPromiseThen.call(promise,onFulfilled,onRejected)}function uponPromise(promise,onFulfilled,onRejected){PerformPromiseThen(PerformPromiseThen(promise,onFulfilled,onRejected),void 0,rethrowAssertionErrorRejection)}function uponFulfillment(promise,onFulfilled){uponPromise(promise,onFulfilled)}function uponRejection(promise,
onRejected){uponPromise(promise,void 0,onRejected)}function transformPromiseWith(promise,fulfillmentHandler,rejectionHandler){return PerformPromiseThen(promise,fulfillmentHandler,rejectionHandler)}function setPromiseIsHandledToTrue(promise){PerformPromiseThen(promise,void 0,rethrowAssertionErrorRejection)}function ReadableStreamCreateReadResult(value,done,forAuthorCode){var prototype=null;!0===forAuthorCode&&(prototype=Object.prototype);forAuthorCode=Object.create(prototype);forAuthorCode.value=value;
forAuthorCode.done=done;return forAuthorCode}function ReadableStreamReaderGenericInitialize(reader,stream){reader._forAuthorCode=!0;reader._ownerReadableStream=stream;stream._reader=reader;"readable"===stream._state?defaultReaderClosedPromiseInitialize(reader):"closed"===stream._state?(defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseResolve(reader)):(stream=stream._storedError,defaultReaderClosedPromiseInitialize(reader),defaultReaderClosedPromiseReject(reader,stream))}function ReadableStreamReaderGenericRelease(reader){if("readable"===
reader._ownerReadableStream._state)defaultReaderClosedPromiseReject(reader,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"));else{var reason=new TypeError("Reader was released and can no longer be used to monitor the stream's closedness");defaultReaderClosedPromiseInitialize(reader);defaultReaderClosedPromiseReject(reader,reason)}reader._ownerReadableStream._reader=void 0;reader._ownerReadableStream=void 0}function readerLockException(name){return new TypeError("Cannot "+
name+" a stream using a released reader")}function defaultReaderClosedPromiseInitialize(reader){reader._closedPromise=newPromise(function(resolve,reject){reader._closedPromise_resolve=resolve;reader._closedPromise_reject=reject})}function defaultReaderClosedPromiseReject(reader,reason){setPromiseIsHandledToTrue(reader._closedPromise);reader._closedPromise_reject(reason);reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function defaultReaderClosedPromiseResolve(reader){reader._closedPromise_resolve(void 0);
reader._closedPromise_resolve=void 0;reader._closedPromise_reject=void 0}function AcquireReadableStreamDefaultReader(stream,forAuthorCode){void 0===forAuthorCode&&(forAuthorCode=!1);stream=new ReadableStreamDefaultReader$jscomp$0(stream);stream._forAuthorCode=forAuthorCode;return stream}function ReadableStreamAddReadRequest(stream){return newPromise(function(resolve,reject){stream._reader._readRequests.push({_resolve:resolve,_reject:reject})})}function ReadableStreamFulfillReadRequest(stream,chunk,
done){stream=stream._reader;stream._readRequests.shift()._resolve(ReadableStreamCreateReadResult(chunk,done,stream._forAuthorCode))}function ReadableStreamHasDefaultReader(stream){stream=stream._reader;return void 0!==stream&&IsReadableStreamDefaultReader(stream)?!0:!1}function IsReadableStreamDefaultReader(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_readRequests")?!0:!1}function ReadableStreamDefaultReaderRead(reader){var stream=reader._ownerReadableStream;stream._disturbed=
!0;return"closed"===stream._state?originalPromiseResolve(ReadableStreamCreateReadResult(void 0,!0,reader._forAuthorCode)):"errored"===stream._state?originalPromiseReject(stream._storedError):stream._readableStreamController[PullSteps]()}function defaultReaderBrandCheckException(name){return new TypeError("ReadableStreamDefaultReader.prototype."+name+" can only be used on a ReadableStreamDefaultReader")}function IsReadableStreamAsyncIterator(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,
"_asyncIteratorReader")?!0:!1}function streamAsyncIteratorBrandCheckException(name){return new TypeError("ReadableStreamAsyncIterator."+name+" can only be used on a ReadableSteamAsyncIterator")}function DequeueValue(container){var pair=container._queue.shift();container._queueTotalSize-=pair.size;0>container._queueTotalSize&&(container._queueTotalSize=0);return pair.value}function EnqueueValueWithSize(container,value,size){size=Number(size);if(!IsFiniteNonNegativeNumber(size))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");
container._queue.push({value:value,size:size});container._queueTotalSize+=size}function ResetQueue(container){container._queue=new SimpleQueue;container._queueTotalSize=0}function CreateWritableStream(startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){void 0===highWaterMark&&(highWaterMark=1);void 0===sizeAlgorithm&&(sizeAlgorithm=function(){return 1});var stream=Object.create(WritableStream$jscomp$0.prototype);InitializeWritableStream(stream);var controller=
Object.create(WritableStreamDefaultController$jscomp$0.prototype);SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm);return stream}function InitializeWritableStream(stream){stream._state="writable";stream._storedError=void 0;stream._writer=void 0;stream._writableStreamController=void 0;stream._writeRequests=new SimpleQueue;stream._inFlightWriteRequest=void 0;stream._closeRequest=void 0;stream._inFlightCloseRequest=
void 0;stream._pendingAbortRequest=void 0;stream._backpressure=!1}function IsWritableStream(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_writableStreamController")?!0:!1}function IsWritableStreamLocked(stream){return void 0===stream._writer?!1:!0}function WritableStreamAbort(stream,reason){var state=stream._state;if("closed"===state||"errored"===state)return originalPromiseResolve(void 0);if(void 0!==stream._pendingAbortRequest)return stream._pendingAbortRequest._promise;var wasAlreadyErroring=
!1;"erroring"===state&&(wasAlreadyErroring=!0,reason=void 0);state=newPromise(function(resolve,reject){stream._pendingAbortRequest={_promise:void 0,_resolve:resolve,_reject:reject,_reason:reason,_wasAlreadyErroring:wasAlreadyErroring}});stream._pendingAbortRequest._promise=state;!1===wasAlreadyErroring&&WritableStreamStartErroring(stream,reason);return state}function WritableStreamAddWriteRequest(stream){return newPromise(function(resolve,reject){stream._writeRequests.push({_resolve:resolve,_reject:reject})})}
function WritableStreamDealWithRejection(stream,error){"writable"===stream._state?WritableStreamStartErroring(stream,error):WritableStreamFinishErroring(stream)}function WritableStreamStartErroring(stream,reason){var controller=stream._writableStreamController;stream._state="erroring";stream._storedError=reason;var writer=stream._writer;void 0!==writer&&("pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer),defaultWriterReadyPromiseReject(writer,reason));reason=void 0===
stream._inFlightWriteRequest&&void 0===stream._inFlightCloseRequest?!1:!0;!1===reason&&!0===controller._started&&WritableStreamFinishErroring(stream)}function WritableStreamFinishErroring(stream){stream._state="errored";stream._writableStreamController[ErrorSteps]();var storedError=stream._storedError;stream._writeRequests.forEach(function(writeRequest){writeRequest._reject(storedError)});stream._writeRequests=new SimpleQueue;if(void 0===stream._pendingAbortRequest)WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);
else{var abortRequest=stream._pendingAbortRequest;stream._pendingAbortRequest=void 0;if(!0===abortRequest._wasAlreadyErroring)abortRequest._reject(storedError),WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream);else{var promise=stream._writableStreamController[AbortSteps](abortRequest._reason);uponPromise(promise,function(){abortRequest._resolve();WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)},function(reason){abortRequest._reject(reason);WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream)})}}}
function WritableStreamCloseQueuedOrInFlight(stream){return void 0===stream._closeRequest&&void 0===stream._inFlightCloseRequest?!1:!0}function WritableStreamMarkCloseRequestInFlight(stream){stream._inFlightCloseRequest=stream._closeRequest;stream._closeRequest=void 0}function WritableStreamRejectCloseAndClosedPromiseIfNeeded(stream){void 0!==stream._closeRequest&&(stream._closeRequest._reject(stream._storedError),stream._closeRequest=void 0);var writer=stream._writer;void 0!==writer&&defaultWriterClosedPromiseReject(writer,
stream._storedError)}function WritableStreamUpdateBackpressure(stream,backpressure){var writer=stream._writer;void 0!==writer&&backpressure!==stream._backpressure&&(!0===backpressure?defaultWriterReadyPromiseInitialize(writer):defaultWriterReadyPromiseResolve(writer));stream._backpressure=backpressure}function IsWritableStreamDefaultWriter(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_ownerWritableStream")?!0:!1}function WritableStreamDefaultWriterClose(writer){var stream=writer._ownerWritableStream,
state=stream._state;if("closed"===state||"errored"===state)return originalPromiseReject(new TypeError("The stream (in "+state+" state) is not in the writable state and cannot be closed"));var promise=newPromise(function(resolve,reject){stream._closeRequest={_resolve:resolve,_reject:reject}});!0===stream._backpressure&&"writable"===state&&defaultWriterReadyPromiseResolve(writer);WritableStreamDefaultControllerClose(stream._writableStreamController);return promise}function WritableStreamDefaultWriterRelease(writer){var stream=
writer._ownerWritableStream,releasedError=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");"pending"!==writer._readyPromiseState&&defaultWriterReadyPromiseInitialize(writer);defaultWriterReadyPromiseReject(writer,releasedError);"pending"!==writer._closedPromiseState&&defaultWriterClosedPromiseInitialize(writer);defaultWriterClosedPromiseReject(writer,releasedError);stream._writer=void 0;writer._ownerWritableStream=void 0}function WritableStreamDefaultWriterWrite(writer,
chunk){var stream=writer._ownerWritableStream,controller=stream._writableStreamController;try{var chunkSize=controller._strategySizeAlgorithm(chunk)}catch(chunkSizeE){WritableStreamDefaultControllerErrorIfNeeded(controller,chunkSizeE),chunkSize=1}if(stream!==writer._ownerWritableStream)return originalPromiseReject(defaultWriterLockException("write to"));writer=stream._state;if("errored"===writer)return originalPromiseReject(stream._storedError);if(!0===WritableStreamCloseQueuedOrInFlight(stream)||
"closed"===writer)return originalPromiseReject(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===writer)return originalPromiseReject(stream._storedError);stream=WritableStreamAddWriteRequest(stream);a:{chunk={chunk:chunk};try{EnqueueValueWithSize(controller,chunk,chunkSize)}catch(enqueueE){WritableStreamDefaultControllerErrorIfNeeded(controller,enqueueE);break a}chunkSize=controller._controlledWritableStream;!1===WritableStreamCloseQueuedOrInFlight(chunkSize)&&
"writable"===chunkSize._state&&WritableStreamUpdateBackpressure(chunkSize,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}return stream}function SetUpWritableStreamDefaultController(stream,controller,startAlgorithm,writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm){controller._controlledWritableStream=stream;stream._writableStreamController=controller;controller._queue=void 0;controller._queueTotalSize=void 0;
ResetQueue(controller);controller._started=!1;controller._strategySizeAlgorithm=sizeAlgorithm;controller._strategyHWM=highWaterMark;controller._writeAlgorithm=writeAlgorithm;controller._closeAlgorithm=closeAlgorithm;controller._abortAlgorithm=abortAlgorithm;WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);startAlgorithm=startAlgorithm();startAlgorithm=originalPromiseResolve(startAlgorithm);uponPromise(startAlgorithm,function(){controller._started=!0;WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},
function(r){controller._started=!0;WritableStreamDealWithRejection(stream,r)})}function SetUpWritableStreamDefaultControllerFromUnderlyingSink(stream,underlyingSink,highWaterMark,sizeAlgorithm){var controller=Object.create(WritableStreamDefaultController$jscomp$0.prototype),writeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"write",1,[controller]),closeAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,"close",0,[]),abortAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSink,
"abort",1,[]);SetUpWritableStreamDefaultController(stream,controller,function(){return InvokeOrNoop(underlyingSink,"start",[controller])},writeAlgorithm,closeAlgorithm,abortAlgorithm,highWaterMark,sizeAlgorithm)}function WritableStreamDefaultControllerClearAlgorithms(controller){controller._writeAlgorithm=void 0;controller._closeAlgorithm=void 0;controller._abortAlgorithm=void 0;controller._strategySizeAlgorithm=void 0}function WritableStreamDefaultControllerClose(controller){EnqueueValueWithSize(controller,
"close",0);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)}function WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller){var stream=controller._controlledWritableStream;!1!==controller._started&&void 0===stream._inFlightWriteRequest&&("erroring"===stream._state?WritableStreamFinishErroring(stream):0!==controller._queue.length&&(stream=controller._queue.peek().value,"close"===stream?WritableStreamDefaultControllerProcessClose(controller):WritableStreamDefaultControllerProcessWrite(controller,
stream.chunk)))}function WritableStreamDefaultControllerErrorIfNeeded(controller,error){if("writable"===controller._controlledWritableStream._state){var stream=controller._controlledWritableStream;WritableStreamDefaultControllerClearAlgorithms(controller);WritableStreamStartErroring(stream,error)}}function WritableStreamDefaultControllerProcessClose(controller){var stream=controller._controlledWritableStream;WritableStreamMarkCloseRequestInFlight(stream);DequeueValue(controller);var sinkClosePromise=
controller._closeAlgorithm();WritableStreamDefaultControllerClearAlgorithms(controller);uponPromise(sinkClosePromise,function(){stream._inFlightCloseRequest._resolve(void 0);stream._inFlightCloseRequest=void 0;"erroring"===stream._state&&(stream._storedError=void 0,void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._resolve(),stream._pendingAbortRequest=void 0));stream._state="closed";var writer=stream._writer;void 0!==writer&&defaultWriterClosedPromiseResolve(writer)},function(reason){stream._inFlightCloseRequest._reject(reason);
stream._inFlightCloseRequest=void 0;void 0!==stream._pendingAbortRequest&&(stream._pendingAbortRequest._reject(reason),stream._pendingAbortRequest=void 0);WritableStreamDealWithRejection(stream,reason)})}function WritableStreamDefaultControllerProcessWrite(controller,chunk){var stream=controller._controlledWritableStream;stream._inFlightWriteRequest=stream._writeRequests.shift();chunk=controller._writeAlgorithm(chunk);uponPromise(chunk,function(){stream._inFlightWriteRequest._resolve(void 0);stream._inFlightWriteRequest=
void 0;var state=stream._state;DequeueValue(controller);!1===WritableStreamCloseQueuedOrInFlight(stream)&&"writable"===state&&WritableStreamUpdateBackpressure(stream,0>=controller._strategyHWM-controller._queueTotalSize);WritableStreamDefaultControllerAdvanceQueueIfNeeded(controller)},function(reason){"writable"===stream._state&&WritableStreamDefaultControllerClearAlgorithms(controller);stream._inFlightWriteRequest._reject(reason);stream._inFlightWriteRequest=void 0;WritableStreamDealWithRejection(stream,
reason)})}function streamBrandCheckException(name){return new TypeError("WritableStream.prototype."+name+" can only be used on a WritableStream")}function defaultWriterBrandCheckException(name){return new TypeError("WritableStreamDefaultWriter.prototype."+name+" can only be used on a WritableStreamDefaultWriter")}function defaultWriterLockException(name){return new TypeError("Cannot "+name+" a stream using a released writer")}function defaultWriterClosedPromiseInitialize(writer){writer._closedPromise=
newPromise(function(resolve,reject){writer._closedPromise_resolve=resolve;writer._closedPromise_reject=reject;writer._closedPromiseState="pending"})}function defaultWriterClosedPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._closedPromise);writer._closedPromise_reject(reason);writer._closedPromise_resolve=void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState="rejected"}function defaultWriterClosedPromiseResolve(writer){writer._closedPromise_resolve(void 0);writer._closedPromise_resolve=
void 0;writer._closedPromise_reject=void 0;writer._closedPromiseState="resolved"}function defaultWriterReadyPromiseInitialize(writer){writer._readyPromise=newPromise(function(resolve,reject){writer._readyPromise_resolve=resolve;writer._readyPromise_reject=reject});writer._readyPromiseState="pending"}function defaultWriterReadyPromiseReject(writer,reason){setPromiseIsHandledToTrue(writer._readyPromise);writer._readyPromise_reject(reason);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=
void 0;writer._readyPromiseState="rejected"}function defaultWriterReadyPromiseResolve(writer){writer._readyPromise_resolve(void 0);writer._readyPromise_resolve=void 0;writer._readyPromise_reject=void 0;writer._readyPromiseState="fulfilled"}function isAbortSignal(value){if("object"!==_typeof2(value)||null===value)return!1;try{return"boolean"===typeof value.aborted}catch(_a$6){return!1}}function createDOMExceptionPolyfill(){var ctor=function(message,name){this.message=message||"";this.name=name||"Error";
Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};ctor.prototype=Object.create(Error.prototype);Object.defineProperty(ctor.prototype,"constructor",{value:ctor,writable:!0,configurable:!0});return ctor}function ReadableStreamPipeTo(source,dest,preventClose,preventAbort,preventCancel,signal){var reader=AcquireReadableStreamDefaultReader(source),writer=new WritableStreamDefaultWriter$jscomp$0(dest),shuttingDown=!1,currentWrite=originalPromiseResolve(void 0);return newPromise(function(resolve,
reject){function pipeStep(){return!0===shuttingDown?originalPromiseResolve(!0):PerformPromiseThen(writer._readyPromise,function(){return PerformPromiseThen(ReadableStreamDefaultReaderRead(reader),function(_a){if(!0===_a.done)return!0;currentWrite=PerformPromiseThen(WritableStreamDefaultWriterWrite(writer,_a.value),void 0,noop);return!1})})}function waitForWritesToFinish(){var oldCurrentWrite=currentWrite;return PerformPromiseThen(currentWrite,function(){return oldCurrentWrite!==currentWrite?waitForWritesToFinish():
void 0})}function isOrBecomesErrored(stream,promise,action){"errored"===stream._state?action(stream._storedError):uponRejection(promise,action)}function shutdownWithAction(action,originalIsError,originalError){function doTheRest(){uponPromise(action(),function(){return finalize(originalIsError,originalError)},function(newError){return finalize(!0,newError)})}!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),
doTheRest):doTheRest())}function shutdown(isError,error){!0!==shuttingDown&&(shuttingDown=!0,"writable"===dest._state&&!1===WritableStreamCloseQueuedOrInFlight(dest)?uponFulfillment(waitForWritesToFinish(),function(){return finalize(isError,error)}):finalize(isError,error))}function finalize(isError,error){WritableStreamDefaultWriterRelease(writer);ReadableStreamReaderGenericRelease(reader);void 0!==signal&&signal.removeEventListener("abort",abortAlgorithm);isError?reject(error):resolve(void 0)}if(void 0!==
signal){var abortAlgorithm=function(){var error=new DOMException$1("Aborted","AbortError"),actions=[];!1===preventAbort&&actions.push(function(){return"writable"===dest._state?WritableStreamAbort(dest,error):originalPromiseResolve(void 0)});!1===preventCancel&&actions.push(function(){return"readable"===source._state?ReadableStreamCancel(source,error):originalPromiseResolve(void 0)});shutdownWithAction(function(){return Promise.all(actions.map(function(action){return action()}))},!0,error)};if(!0===
signal.aborted){abortAlgorithm();return}signal.addEventListener("abort",abortAlgorithm)}isOrBecomesErrored(source,reader._closedPromise,function(storedError){!1===preventAbort?shutdownWithAction(function(){return WritableStreamAbort(dest,storedError)},!0,storedError):shutdown(!0,storedError)});isOrBecomesErrored(dest,writer._closedPromise,function(storedError){!1===preventCancel?shutdownWithAction(function(){return ReadableStreamCancel(source,storedError)},!0,storedError):shutdown(!0,storedError)});
(function(stream,promise,action){"closed"===stream._state?action():uponPromise(promise,action)})(source,reader._closedPromise,function(){!1===preventClose?shutdownWithAction(function(){var JSCompiler_inline_result=writer._ownerWritableStream;var state=JSCompiler_inline_result._state;JSCompiler_inline_result=!0===WritableStreamCloseQueuedOrInFlight(JSCompiler_inline_result)||"closed"===state?originalPromiseResolve(void 0):"errored"===state?originalPromiseReject(JSCompiler_inline_result._storedError):
WritableStreamDefaultWriterClose(writer);return JSCompiler_inline_result}):shutdown()});if(!0===WritableStreamCloseQueuedOrInFlight(dest)||"closed"===dest._state){var destClosed_1=new TypeError("the destination writable stream closed before all data could be piped to it");!1===preventCancel?shutdownWithAction(function(){return ReadableStreamCancel(source,destClosed_1)},!0,destClosed_1):shutdown(!0,destClosed_1)}setPromiseIsHandledToTrue(function(){return newPromise(function(resolveLoop,rejectLoop){function next(done){done?
resolveLoop():PerformPromiseThen(pipeStep(),next,rejectLoop)}next(!1)})}())})}function IsReadableStreamDefaultController(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_controlledReadableStream")?!0:!1}function ReadableStreamDefaultControllerCallPullIfNeeded(controller){if(!1!==ReadableStreamDefaultControllerShouldCallPull(controller))if(!0===controller._pulling)controller._pullAgain=!0;else{controller._pulling=!0;var pullPromise=controller._pullAlgorithm();uponPromise(pullPromise,
function(){controller._pulling=!1;!0===controller._pullAgain&&(controller._pullAgain=!1,ReadableStreamDefaultControllerCallPullIfNeeded(controller))},function(e){ReadableStreamDefaultControllerError(controller,e)})}}function ReadableStreamDefaultControllerShouldCallPull(controller){var stream=controller._controlledReadableStream;return!1===ReadableStreamDefaultControllerCanCloseOrEnqueue(controller)||!1===controller._started?!1:!0===IsReadableStreamLocked(stream)&&0<stream._reader._readRequests.length||
0<ReadableStreamDefaultControllerGetDesiredSize(controller)?!0:!1}function ReadableStreamDefaultControllerClearAlgorithms(controller){controller._pullAlgorithm=void 0;controller._cancelAlgorithm=void 0;controller._strategySizeAlgorithm=void 0}function ReadableStreamDefaultControllerClose(controller){var stream=controller._controlledReadableStream;controller._closeRequested=!0;0===controller._queue.length&&(ReadableStreamDefaultControllerClearAlgorithms(controller),ReadableStreamClose(stream))}function ReadableStreamDefaultControllerEnqueue(controller,
chunk){var stream=controller._controlledReadableStream;if(!0===IsReadableStreamLocked(stream)&&0<stream._reader._readRequests.length)ReadableStreamFulfillReadRequest(stream,chunk,!1);else{stream=void 0;try{stream=controller._strategySizeAlgorithm(chunk)}catch(chunkSizeE){throw ReadableStreamDefaultControllerError(controller,chunkSizeE),chunkSizeE;}try{EnqueueValueWithSize(controller,chunk,stream)}catch(enqueueE){throw ReadableStreamDefaultControllerError(controller,enqueueE),enqueueE;}}ReadableStreamDefaultControllerCallPullIfNeeded(controller)}
function ReadableStreamDefaultControllerError(controller,e){var stream=controller._controlledReadableStream;"readable"===stream._state&&(ResetQueue(controller),ReadableStreamDefaultControllerClearAlgorithms(controller),ReadableStreamError(stream,e))}function ReadableStreamDefaultControllerGetDesiredSize(controller){var state=controller._controlledReadableStream._state;return"errored"===state?null:"closed"===state?0:controller._strategyHWM-controller._queueTotalSize}function ReadableStreamDefaultControllerCanCloseOrEnqueue(controller){var state=
controller._controlledReadableStream._state;return!1===controller._closeRequested&&"readable"===state?!0:!1}function SetUpReadableStreamDefaultController(stream,controller,startAlgorithm,pullAlgorithm,cancelAlgorithm,highWaterMark,sizeAlgorithm){controller._controlledReadableStream=stream;controller._queue=void 0;controller._queueTotalSize=void 0;ResetQueue(controller);controller._started=!1;controller._closeRequested=!1;controller._pullAgain=!1;controller._pulling=!1;controller._strategySizeAlgorithm=
sizeAlgorithm;controller._strategyHWM=highWaterMark;controller._pullAlgorithm=pullAlgorithm;controller._cancelAlgorithm=cancelAlgorithm;stream._readableStreamController=controller;stream=startAlgorithm();uponPromise(originalPromiseResolve(stream),function(){controller._started=!0;ReadableStreamDefaultControllerCallPullIfNeeded(controller)},function(r){ReadableStreamDefaultControllerError(controller,r)})}function SetUpReadableStreamDefaultControllerFromUnderlyingSource(stream,underlyingSource,highWaterMark,
sizeAlgorithm){var controller=Object.create(ReadableStreamDefaultController$jscomp$0.prototype),pullAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSource,"pull",0,[controller]),cancelAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingSource,"cancel",1,[]);SetUpReadableStreamDefaultController(stream,controller,function(){return InvokeOrNoop(underlyingSource,"start",[controller])},pullAlgorithm,cancelAlgorithm,highWaterMark,sizeAlgorithm)}function defaultControllerBrandCheckException(name){return new TypeError("ReadableStreamDefaultController.prototype."+
name+" can only be used on a ReadableStreamDefaultController")}function ReadableStreamTee(stream,cloneForBranch2){function pullAlgorithm(){if(!0===reading)return originalPromiseResolve(void 0);reading=!0;var readPromise=transformPromiseWith(ReadableStreamDefaultReaderRead(reader),function(result){reading=!1;!0===result.done?(!1===canceled1&&ReadableStreamDefaultControllerClose(branch1._readableStreamController),!1===canceled2&&ReadableStreamDefaultControllerClose(branch2._readableStreamController)):
(result=result.value,!1===canceled1&&ReadableStreamDefaultControllerEnqueue(branch1._readableStreamController,result),!1===canceled2&&ReadableStreamDefaultControllerEnqueue(branch2._readableStreamController,result))});setPromiseIsHandledToTrue(readPromise);return originalPromiseResolve(void 0)}function startAlgorithm(){}var reader=AcquireReadableStreamDefaultReader(stream),reading=!1,canceled1=!1,canceled2=!1,reason1,reason2,resolveCancelPromise,cancelPromise=newPromise(function(resolve){resolveCancelPromise=
resolve});var branch1=CreateReadableStream(startAlgorithm,pullAlgorithm,function(reason){canceled1=!0;reason1=reason;!0===canceled2&&(reason=[reason1,reason2].slice(),reason=ReadableStreamCancel(stream,reason),resolveCancelPromise(reason));return cancelPromise});var branch2=CreateReadableStream(startAlgorithm,pullAlgorithm,function(reason){canceled2=!0;reason2=reason;!0===canceled1&&(reason=[reason1,reason2].slice(),reason=ReadableStreamCancel(stream,reason),resolveCancelPromise(reason));return cancelPromise});
uponRejection(reader._closedPromise,function(r){ReadableStreamDefaultControllerError(branch1._readableStreamController,r);ReadableStreamDefaultControllerError(branch2._readableStreamController,r)});return[branch1,branch2]}function IsReadableByteStreamController(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_controlledReadableByteStream")?!0:!1}function IsReadableStreamBYOBRequest(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_associatedReadableByteStreamController")?
!0:!1}function ReadableByteStreamControllerCallPullIfNeeded(controller){if(!1!==ReadableByteStreamControllerShouldCallPull(controller))if(!0===controller._pulling)controller._pullAgain=!0;else{controller._pulling=!0;var pullPromise=controller._pullAlgorithm();uponPromise(pullPromise,function(){controller._pulling=!1;!0===controller._pullAgain&&(controller._pullAgain=!1,ReadableByteStreamControllerCallPullIfNeeded(controller))},function(e){ReadableByteStreamControllerError(controller,e)})}}function ReadableByteStreamControllerCommitPullIntoDescriptor(stream,
pullIntoDescriptor){var done=!1;"closed"===stream._state&&(done=!0);var filledView=new pullIntoDescriptor.ctor(pullIntoDescriptor.buffer,pullIntoDescriptor.byteOffset,pullIntoDescriptor.bytesFilled/pullIntoDescriptor.elementSize);"default"===pullIntoDescriptor.readerType?ReadableStreamFulfillReadRequest(stream,filledView,done):(pullIntoDescriptor=done,stream=stream._reader,stream._readIntoRequests.shift()._resolve(ReadableStreamCreateReadResult(filledView,pullIntoDescriptor,stream._forAuthorCode)))}
function ReadableByteStreamControllerEnqueueChunkToQueue(controller,buffer,byteOffset,byteLength){controller._queue.push({buffer:buffer,byteOffset:byteOffset,byteLength:byteLength});controller._queueTotalSize+=byteLength}function ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,pullIntoDescriptor){var elementSize=pullIntoDescriptor.elementSize,maxBytesToCopy=Math.min(controller._queueTotalSize,pullIntoDescriptor.byteLength-pullIntoDescriptor.bytesFilled),maxBytesFilled=pullIntoDescriptor.bytesFilled+
maxBytesToCopy,maxAlignedBytes=maxBytesFilled-maxBytesFilled%elementSize;maxBytesFilled=!1;maxAlignedBytes>pullIntoDescriptor.bytesFilled-pullIntoDescriptor.bytesFilled%elementSize&&(maxBytesToCopy=maxAlignedBytes-pullIntoDescriptor.bytesFilled,maxBytesFilled=!0);for(elementSize=controller._queue;0<maxBytesToCopy;){var headOfQueue=elementSize.peek();maxAlignedBytes=Math.min(maxBytesToCopy,headOfQueue.byteLength);var destOffset=pullIntoDescriptor.byteOffset+pullIntoDescriptor.bytesFilled,src=headOfQueue.buffer,
srcOffset=headOfQueue.byteOffset,n=maxAlignedBytes;(new Uint8Array(pullIntoDescriptor.buffer)).set(new Uint8Array(src,srcOffset,n),destOffset);headOfQueue.byteLength===maxAlignedBytes?elementSize.shift():(headOfQueue.byteOffset+=maxAlignedBytes,headOfQueue.byteLength-=maxAlignedBytes);controller._queueTotalSize-=maxAlignedBytes;headOfQueue=maxAlignedBytes;destOffset=pullIntoDescriptor;ReadableByteStreamControllerInvalidateBYOBRequest(controller);destOffset.bytesFilled+=headOfQueue;maxBytesToCopy-=
maxAlignedBytes}return maxBytesFilled}function ReadableByteStreamControllerHandleQueueDrain(controller){0===controller._queueTotalSize&&!0===controller._closeRequested?(ReadableByteStreamControllerClearAlgorithms(controller),ReadableStreamClose(controller._controlledReadableByteStream)):ReadableByteStreamControllerCallPullIfNeeded(controller)}function ReadableByteStreamControllerInvalidateBYOBRequest(controller){void 0!==controller._byobRequest&&(controller._byobRequest._associatedReadableByteStreamController=
void 0,controller._byobRequest._view=void 0,controller._byobRequest=void 0)}function ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller){for(;0<controller._pendingPullIntos.length&&0!==controller._queueTotalSize;){var pullIntoDescriptor=controller._pendingPullIntos.peek();!0===ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,pullIntoDescriptor)&&(ReadableByteStreamControllerShiftPendingPullInto(controller),ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream,
pullIntoDescriptor))}}function ReadableByteStreamControllerPullInto(controller,view){var stream=controller._controlledReadableByteStream,elementSize=1;view.constructor!==DataView&&(elementSize=view.constructor.BYTES_PER_ELEMENT);var ctor=view.constructor;view={buffer:view.buffer,byteOffset:view.byteOffset,byteLength:view.byteLength,bytesFilled:0,elementSize:elementSize,ctor:ctor,readerType:"byob"};if(0<controller._pendingPullIntos.length)return controller._pendingPullIntos.push(view),ReadableStreamAddReadIntoRequest(stream);
if("closed"===stream._state)return controller=new ctor(view.buffer,view.byteOffset,0),originalPromiseResolve(ReadableStreamCreateReadResult(controller,!0,stream._reader._forAuthorCode));if(0<controller._queueTotalSize){if(!0===ReadableByteStreamControllerFillPullIntoDescriptorFromQueue(controller,view))return ctor=new view.ctor(view.buffer,view.byteOffset,view.bytesFilled/view.elementSize),ReadableByteStreamControllerHandleQueueDrain(controller),originalPromiseResolve(ReadableStreamCreateReadResult(ctor,
!1,stream._reader._forAuthorCode));if(!0===controller._closeRequested)return stream=new TypeError("Insufficient bytes to fill elements in the given buffer"),ReadableByteStreamControllerError(controller,stream),originalPromiseReject(stream)}controller._pendingPullIntos.push(view);stream=ReadableStreamAddReadIntoRequest(stream);ReadableByteStreamControllerCallPullIfNeeded(controller);return stream}function ReadableByteStreamControllerRespondInternal(controller,bytesWritten){var firstDescriptor=controller._pendingPullIntos.peek();
if("closed"===controller._controlledReadableByteStream._state){if(0!==bytesWritten)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");firstDescriptor.buffer=firstDescriptor.buffer;firstDescriptor=controller._controlledReadableByteStream;if(!0===ReadableStreamHasBYOBReader(firstDescriptor))for(;0<firstDescriptor._reader._readIntoRequests.length;)bytesWritten=ReadableByteStreamControllerShiftPendingPullInto(controller),ReadableByteStreamControllerCommitPullIntoDescriptor(firstDescriptor,
bytesWritten)}else{if(firstDescriptor.bytesFilled+bytesWritten>firstDescriptor.byteLength)throw new RangeError("bytesWritten out of range");ReadableByteStreamControllerInvalidateBYOBRequest(controller);firstDescriptor.bytesFilled+=bytesWritten;if(!(firstDescriptor.bytesFilled<firstDescriptor.elementSize)){ReadableByteStreamControllerShiftPendingPullInto(controller);bytesWritten=firstDescriptor.bytesFilled%firstDescriptor.elementSize;if(0<bytesWritten){var end=firstDescriptor.byteOffset+firstDescriptor.bytesFilled;
end=firstDescriptor.buffer.slice(end-bytesWritten,end);ReadableByteStreamControllerEnqueueChunkToQueue(controller,end,0,end.byteLength)}firstDescriptor.buffer=firstDescriptor.buffer;firstDescriptor.bytesFilled-=bytesWritten;ReadableByteStreamControllerCommitPullIntoDescriptor(controller._controlledReadableByteStream,firstDescriptor);ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(controller)}}ReadableByteStreamControllerCallPullIfNeeded(controller)}function ReadableByteStreamControllerShiftPendingPullInto(controller){var descriptor=
controller._pendingPullIntos.shift();ReadableByteStreamControllerInvalidateBYOBRequest(controller);return descriptor}function ReadableByteStreamControllerShouldCallPull(controller){var stream=controller._controlledReadableByteStream;return"readable"!==stream._state||!0===controller._closeRequested||!1===controller._started?!1:!0===ReadableStreamHasDefaultReader(stream)&&0<stream._reader._readRequests.length||!0===ReadableStreamHasBYOBReader(stream)&&0<stream._reader._readIntoRequests.length||0<ReadableByteStreamControllerGetDesiredSize(controller)?
!0:!1}function ReadableByteStreamControllerClearAlgorithms(controller){controller._pullAlgorithm=void 0;controller._cancelAlgorithm=void 0}function ReadableByteStreamControllerError(controller,e){var stream=controller._controlledReadableByteStream;"readable"===stream._state&&(ReadableByteStreamControllerInvalidateBYOBRequest(controller),controller._pendingPullIntos=new SimpleQueue,ResetQueue(controller),ReadableByteStreamControllerClearAlgorithms(controller),ReadableStreamError(stream,e))}function ReadableByteStreamControllerGetDesiredSize(controller){var state=
controller._controlledReadableByteStream._state;return"errored"===state?null:"closed"===state?0:controller._strategyHWM-controller._queueTotalSize}function SetUpReadableByteStreamController(stream,controller,startAlgorithm,pullAlgorithm,cancelAlgorithm,highWaterMark,autoAllocateChunkSize){controller._controlledReadableByteStream=stream;controller._pullAgain=!1;controller._pulling=!1;controller._byobRequest=void 0;controller._queue=controller._queueTotalSize=void 0;ResetQueue(controller);controller._closeRequested=
!1;controller._started=!1;controller._strategyHWM=ValidateAndNormalizeHighWaterMark(highWaterMark);controller._pullAlgorithm=pullAlgorithm;controller._cancelAlgorithm=cancelAlgorithm;controller._autoAllocateChunkSize=autoAllocateChunkSize;controller._pendingPullIntos=new SimpleQueue;stream._readableStreamController=controller;stream=startAlgorithm();uponPromise(originalPromiseResolve(stream),function(){controller._started=!0;ReadableByteStreamControllerCallPullIfNeeded(controller)},function(r){ReadableByteStreamControllerError(controller,
r)})}function SetUpReadableByteStreamControllerFromUnderlyingSource(stream,underlyingByteSource,highWaterMark){var controller=Object.create(ReadableByteStreamController$jscomp$0.prototype),pullAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingByteSource,"pull",0,[controller]),cancelAlgorithm=CreateAlgorithmFromUnderlyingMethod(underlyingByteSource,"cancel",1,[]),autoAllocateChunkSize=underlyingByteSource.autoAllocateChunkSize;if(void 0!==autoAllocateChunkSize&&(autoAllocateChunkSize=Number(autoAllocateChunkSize),
!1===NumberIsInteger(autoAllocateChunkSize)||0>=autoAllocateChunkSize))throw new RangeError("autoAllocateChunkSize must be a positive integer");SetUpReadableByteStreamController(stream,controller,function(){return InvokeOrNoop(underlyingByteSource,"start",[controller])},pullAlgorithm,cancelAlgorithm,highWaterMark,autoAllocateChunkSize)}function byobRequestBrandCheckException(name){return new TypeError("ReadableStreamBYOBRequest.prototype."+name+" can only be used on a ReadableStreamBYOBRequest")}
function byteStreamControllerBrandCheckException(name){return new TypeError("ReadableByteStreamController.prototype."+name+" can only be used on a ReadableByteStreamController")}function ReadableStreamAddReadIntoRequest(stream){return newPromise(function(resolve,reject){stream._reader._readIntoRequests.push({_resolve:resolve,_reject:reject})})}function ReadableStreamHasBYOBReader(stream){stream=stream._reader;return void 0!==stream&&IsReadableStreamBYOBReader(stream)?!0:!1}function IsReadableStreamBYOBReader(x){return typeIsObject(x)&&
Object.prototype.hasOwnProperty.call(x,"_readIntoRequests")?!0:!1}function byobReaderBrandCheckException(name){return new TypeError("ReadableStreamBYOBReader.prototype."+name+" can only be used on a ReadableStreamBYOBReader")}function CreateReadableStream(startAlgorithm,pullAlgorithm,cancelAlgorithm,highWaterMark,sizeAlgorithm){void 0===highWaterMark&&(highWaterMark=1);void 0===sizeAlgorithm&&(sizeAlgorithm=function(){return 1});var stream=Object.create(ReadableStream$jscomp$0.prototype);InitializeReadableStream(stream);
var controller=Object.create(ReadableStreamDefaultController$jscomp$0.prototype);SetUpReadableStreamDefaultController(stream,controller,startAlgorithm,pullAlgorithm,cancelAlgorithm,highWaterMark,sizeAlgorithm);return stream}function InitializeReadableStream(stream){stream._state="readable";stream._reader=void 0;stream._storedError=void 0;stream._disturbed=!1}function IsReadableStream(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_readableStreamController")?!0:!1}function IsReadableStreamLocked(stream){return void 0===
stream._reader?!1:!0}function ReadableStreamCancel(stream,reason){stream._disturbed=!0;if("closed"===stream._state)return originalPromiseResolve(void 0);if("errored"===stream._state)return originalPromiseReject(stream._storedError);ReadableStreamClose(stream);stream=stream._readableStreamController[CancelSteps](reason);return PerformPromiseThen(stream,noop,void 0)}function ReadableStreamClose(stream){stream._state="closed";var reader=stream._reader;void 0!==reader&&(IsReadableStreamDefaultReader(reader)&&
(reader._readRequests.forEach(function(readRequest){readRequest._resolve(ReadableStreamCreateReadResult(void 0,!0,reader._forAuthorCode))}),reader._readRequests=new SimpleQueue),defaultReaderClosedPromiseResolve(reader))}function ReadableStreamError(stream,e){stream._state="errored";stream._storedError=e;stream=stream._reader;void 0!==stream&&(IsReadableStreamDefaultReader(stream)?(stream._readRequests.forEach(function(readRequest){readRequest._reject(e)}),stream._readRequests=new SimpleQueue):(stream._readIntoRequests.forEach(function(readIntoRequest){readIntoRequest._reject(e)}),
stream._readIntoRequests=new SimpleQueue),defaultReaderClosedPromiseReject(stream,e))}function streamBrandCheckException$1(name){return new TypeError("ReadableStream.prototype."+name+" can only be used on a ReadableStream")}function InitializeTransformStream(stream,startPromise,writableHighWaterMark,writableSizeAlgorithm,readableHighWaterMark,readableSizeAlgorithm){function startAlgorithm(){return startPromise}stream._writable=CreateWritableStream(startAlgorithm,function(chunk){return TransformStreamDefaultSinkWriteAlgorithm(stream,
chunk)},function(){return TransformStreamDefaultSinkCloseAlgorithm(stream)},function(reason){TransformStreamError(stream,reason);return originalPromiseResolve(void 0)},writableHighWaterMark,writableSizeAlgorithm);stream._readable=CreateReadableStream(startAlgorithm,function(){TransformStreamSetBackpressure(stream,!1);return stream._backpressureChangePromise},function(reason){TransformStreamErrorWritableAndUnblockWrite(stream,reason);return originalPromiseResolve(void 0)},readableHighWaterMark,readableSizeAlgorithm);
stream._backpressure=void 0;stream._backpressureChangePromise=void 0;stream._backpressureChangePromise_resolve=void 0;TransformStreamSetBackpressure(stream,!0);stream._transformStreamController=void 0}function IsTransformStream(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_transformStreamController")?!0:!1}function TransformStreamError(stream,e){ReadableStreamDefaultControllerError(stream._readable._readableStreamController,e);TransformStreamErrorWritableAndUnblockWrite(stream,
e)}function TransformStreamErrorWritableAndUnblockWrite(stream,e){TransformStreamDefaultControllerClearAlgorithms(stream._transformStreamController);WritableStreamDefaultControllerErrorIfNeeded(stream._writable._writableStreamController,e);!0===stream._backpressure&&TransformStreamSetBackpressure(stream,!1)}function TransformStreamSetBackpressure(stream,backpressure){void 0!==stream._backpressureChangePromise&&stream._backpressureChangePromise_resolve();stream._backpressureChangePromise=newPromise(function(resolve){stream._backpressureChangePromise_resolve=
resolve});stream._backpressure=backpressure}function IsTransformStreamDefaultController(x){return typeIsObject(x)&&Object.prototype.hasOwnProperty.call(x,"_controlledTransformStream")?!0:!1}function SetUpTransformStreamDefaultController(stream,controller,transformAlgorithm,flushAlgorithm){controller._controlledTransformStream=stream;stream._transformStreamController=controller;controller._transformAlgorithm=transformAlgorithm;controller._flushAlgorithm=flushAlgorithm}function SetUpTransformStreamDefaultControllerFromTransformer(stream,
transformer){var controller=Object.create(TransformStreamDefaultController$jscomp$0.prototype),transformAlgorithm=function(chunk){try{return TransformStreamDefaultControllerEnqueue(controller,chunk),originalPromiseResolve(void 0)}catch(transformResultE){return originalPromiseReject(transformResultE)}},transformMethod=transformer.transform;if(void 0!==transformMethod){if("function"!==typeof transformMethod)throw new TypeError("transform is not a method");transformAlgorithm=function(chunk){return PromiseCall(transformMethod,
transformer,[chunk,controller])}}var flushAlgorithm=CreateAlgorithmFromUnderlyingMethod(transformer,"flush",0,[controller]);SetUpTransformStreamDefaultController(stream,controller,transformAlgorithm,flushAlgorithm)}function TransformStreamDefaultControllerClearAlgorithms(controller){controller._transformAlgorithm=void 0;controller._flushAlgorithm=void 0}function TransformStreamDefaultControllerEnqueue(controller,chunk){controller=controller._controlledTransformStream;var readableController=controller._readable._readableStreamController;
if(!1===ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController))throw new TypeError("Readable side is not in a state that permits enqueue");try{ReadableStreamDefaultControllerEnqueue(readableController,chunk)}catch(e){throw TransformStreamErrorWritableAndUnblockWrite(controller,e),controller._readable._storedError;}chunk=!0===ReadableStreamDefaultControllerShouldCallPull(readableController)?!1:!0;chunk!==controller._backpressure&&TransformStreamSetBackpressure(controller,!0)}function TransformStreamDefaultControllerPerformTransform(controller,
chunk){chunk=controller._transformAlgorithm(chunk);return transformPromiseWith(chunk,void 0,function(r){TransformStreamError(controller._controlledTransformStream,r);throw r;})}function TransformStreamDefaultSinkWriteAlgorithm(stream,chunk){var controller=stream._transformStreamController;return!0===stream._backpressure?transformPromiseWith(stream._backpressureChangePromise,function(){var writable=stream._writable;if("erroring"===writable._state)throw writable._storedError;return TransformStreamDefaultControllerPerformTransform(controller,
chunk)}):TransformStreamDefaultControllerPerformTransform(controller,chunk)}function TransformStreamDefaultSinkCloseAlgorithm(stream){var readable=stream._readable,controller=stream._transformStreamController,flushPromise=controller._flushAlgorithm();TransformStreamDefaultControllerClearAlgorithms(controller);return transformPromiseWith(flushPromise,function(){if("errored"===readable._state)throw readable._storedError;var readableController=readable._readableStreamController;!0===ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController)&&
ReadableStreamDefaultControllerClose(readableController)},function(r){TransformStreamError(stream,r);throw readable._storedError;})}function defaultControllerBrandCheckException$1(name){return new TypeError("TransformStreamDefaultController.prototype."+name+" can only be used on a TransformStreamDefaultController")}function streamBrandCheckException$2(name){return new TypeError("TransformStream.prototype."+name+" can only be used on a TransformStream")}__w_pdfjs_require__.r(__webpack_exports__);__w_pdfjs_require__.d(__webpack_exports__,
"ByteLengthQueuingStrategy",function(){return ByteLengthQueuingStrategy$jscomp$0});__w_pdfjs_require__.d(__webpack_exports__,"CountQueuingStrategy",function(){return CountQueuingStrategy$jscomp$0});__w_pdfjs_require__.d(__webpack_exports__,"ReadableStream",function(){return ReadableStream$jscomp$0});__w_pdfjs_require__.d(__webpack_exports__,"TransformStream",function(){return TransformStream$jscomp$0});__w_pdfjs_require__.d(__webpack_exports__,"WritableStream",function(){return WritableStream$jscomp$0});
var SymbolPolyfill="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?Symbol:function(description){return"Symbol("+description+")"},NumberIsNaN=Number.isNaN||function(x){return x!==x},rethrowAssertionErrorRejection=noop,originalPromise=Promise,originalPromiseThen=Promise.prototype.then,originalPromiseResolve=Promise.resolve.bind(originalPromise),originalPromiseReject=Promise.reject.bind(originalPromise),SimpleQueue=function(){function SimpleQueue(){this._back=this._front={_elements:[],
_next:void 0};this._size=this._cursor=0}Object.defineProperty(SimpleQueue.prototype,"length",{get:function(){return this._size},enumerable:!0,configurable:!0});SimpleQueue.prototype.push=function(element){var oldBack=this._back,newBack=oldBack;16383===oldBack._elements.length&&(newBack={_elements:[],_next:void 0});oldBack._elements.push(element);newBack!==oldBack&&(this._back=newBack,oldBack._next=newBack);++this._size};SimpleQueue.prototype.shift=function(){var oldFront=this._front,newFront=oldFront,
oldCursor=this._cursor,newCursor=oldCursor+1,elements=oldFront._elements,element=elements[oldCursor];16384===newCursor&&(newFront=oldFront._next,newCursor=0);--this._size;this._cursor=newCursor;oldFront!==newFront&&(this._front=newFront);elements[oldCursor]=void 0;return element};SimpleQueue.prototype.forEach=function(callback){for(var i=this._cursor,node=this._front,elements=node._elements;!(i===elements.length&&void 0===node._next||i===elements.length&&(node=node._next,elements=node._elements,i=
0,0===elements.length));)callback(elements[i]),++i};SimpleQueue.prototype.peek=function(){return this._front._elements[this._cursor]};return SimpleQueue}(),CancelSteps=SymbolPolyfill("[[CancelSteps]]"),PullSteps=SymbolPolyfill("[[PullSteps]]"),ReadableStreamDefaultReader$jscomp$0=function(){function ReadableStreamDefaultReader(stream){if(!1===IsReadableStream(stream))throw new TypeError("ReadableStreamDefaultReader can only be constructed with a ReadableStream instance");if(!0===IsReadableStreamLocked(stream))throw new TypeError("This stream has already been locked for exclusive reading by another reader");
ReadableStreamReaderGenericInitialize(this,stream);this._readRequests=new SimpleQueue}Object.defineProperty(ReadableStreamDefaultReader.prototype,"closed",{get:function(){return IsReadableStreamDefaultReader(this)?this._closedPromise:originalPromiseReject(defaultReaderBrandCheckException("closed"))},enumerable:!0,configurable:!0});ReadableStreamDefaultReader.prototype.cancel=function(reason){return IsReadableStreamDefaultReader(this)?void 0===this._ownerReadableStream?originalPromiseReject(readerLockException("cancel")):
ReadableStreamCancel(this._ownerReadableStream,reason):originalPromiseReject(defaultReaderBrandCheckException("cancel"))};ReadableStreamDefaultReader.prototype.read=function(){return IsReadableStreamDefaultReader(this)?void 0===this._ownerReadableStream?originalPromiseReject(readerLockException("read from")):ReadableStreamDefaultReaderRead(this):originalPromiseReject(defaultReaderBrandCheckException("read"))};ReadableStreamDefaultReader.prototype.releaseLock=function(){if(!IsReadableStreamDefaultReader(this))throw defaultReaderBrandCheckException("releaseLock");
if(void 0!==this._ownerReadableStream){if(0<this._readRequests.length)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");ReadableStreamReaderGenericRelease(this)}};return ReadableStreamDefaultReader}(),_a$jscomp$0;if("symbol"===_typeof2(SymbolPolyfill.asyncIterator)){var AsyncIteratorPrototype=(_a$jscomp$0={},_a$jscomp$0[SymbolPolyfill.asyncIterator]=function(){return this},_a$jscomp$0);Object.defineProperty(AsyncIteratorPrototype,SymbolPolyfill.asyncIterator,
{enumerable:!1})}var ReadableStreamAsyncIteratorPrototype={next:function(){if(!1===IsReadableStreamAsyncIterator(this))return originalPromiseReject(streamAsyncIteratorBrandCheckException("next"));var reader=this._asyncIteratorReader;return void 0===reader._ownerReadableStream?originalPromiseReject(readerLockException("iterate")):transformPromiseWith(ReadableStreamDefaultReaderRead(reader),function(result){var done=result.done;done&&ReadableStreamReaderGenericRelease(reader);return ReadableStreamCreateReadResult(result.value,
done,!0)})},"return":function(value){if(!1===IsReadableStreamAsyncIterator(this))return originalPromiseReject(streamAsyncIteratorBrandCheckException("next"));var reader=this._asyncIteratorReader;if(void 0===reader._ownerReadableStream)return originalPromiseReject(readerLockException("finish iterating"));if(0<reader._readRequests.length)return originalPromiseReject(new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled"));if(!1===this._preventCancel){var result=
ReadableStreamCancel(reader._ownerReadableStream,value);ReadableStreamReaderGenericRelease(reader);return transformPromiseWith(result,function(){return ReadableStreamCreateReadResult(value,!0,!0)})}ReadableStreamReaderGenericRelease(reader);return originalPromiseResolve(ReadableStreamCreateReadResult(value,!0,!0))}};void 0!==AsyncIteratorPrototype&&Object.setPrototypeOf(ReadableStreamAsyncIteratorPrototype,AsyncIteratorPrototype);Object.defineProperty(ReadableStreamAsyncIteratorPrototype,"next",{enumerable:!1});
Object.defineProperty(ReadableStreamAsyncIteratorPrototype,"return",{enumerable:!1});var AbortSteps=SymbolPolyfill("[[AbortSteps]]"),ErrorSteps=SymbolPolyfill("[[ErrorSteps]]"),WritableStream$jscomp$0=function(){function WritableStream(underlyingSink,strategy){void 0===underlyingSink&&(underlyingSink={});void 0===strategy&&(strategy={});InitializeWritableStream(this);var size=strategy.size;strategy=strategy.highWaterMark;if(void 0!==underlyingSink.type)throw new RangeError("Invalid type is specified");
size=MakeSizeAlgorithmFromSizeFunction(size);void 0===strategy&&(strategy=1);strategy=ValidateAndNormalizeHighWaterMark(strategy);SetUpWritableStreamDefaultControllerFromUnderlyingSink(this,underlyingSink,strategy,size)}Object.defineProperty(WritableStream.prototype,"locked",{get:function(){if(!1===IsWritableStream(this))throw streamBrandCheckException("locked");return IsWritableStreamLocked(this)},enumerable:!0,configurable:!0});WritableStream.prototype.abort=function(reason){return!1===IsWritableStream(this)?
originalPromiseReject(streamBrandCheckException("abort")):!0===IsWritableStreamLocked(this)?originalPromiseReject(new TypeError("Cannot abort a stream that already has a writer")):WritableStreamAbort(this,reason)};WritableStream.prototype.getWriter=function(){if(!1===IsWritableStream(this))throw streamBrandCheckException("getWriter");return new WritableStreamDefaultWriter$jscomp$0(this)};return WritableStream}(),WritableStreamDefaultWriter$jscomp$0=function(){function WritableStreamDefaultWriter(stream){if(!1===
IsWritableStream(stream))throw new TypeError("WritableStreamDefaultWriter can only be constructed with a WritableStream instance");if(!0===IsWritableStreamLocked(stream))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=stream;stream._writer=this;var state=stream._state;"writable"===state?(!1===WritableStreamCloseQueuedOrInFlight(stream)&&!0===stream._backpressure?defaultWriterReadyPromiseInitialize(this):(defaultWriterReadyPromiseInitialize(this),
defaultWriterReadyPromiseResolve(this)),defaultWriterClosedPromiseInitialize(this)):"erroring"===state?(stream=stream._storedError,defaultWriterReadyPromiseInitialize(this),defaultWriterReadyPromiseReject(this,stream),defaultWriterClosedPromiseInitialize(this)):"closed"===state?(defaultWriterReadyPromiseInitialize(this),defaultWriterReadyPromiseResolve(this),defaultWriterClosedPromiseInitialize(this),defaultWriterClosedPromiseResolve(this)):(stream=stream._storedError,defaultWriterReadyPromiseInitialize(this),
defaultWriterReadyPromiseReject(this,stream),defaultWriterClosedPromiseInitialize(this),defaultWriterClosedPromiseReject(this,stream))}Object.defineProperty(WritableStreamDefaultWriter.prototype,"closed",{get:function(){return!1===IsWritableStreamDefaultWriter(this)?originalPromiseReject(defaultWriterBrandCheckException("closed")):this._closedPromise},enumerable:!0,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"desiredSize",{get:function(){if(!1===IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("desiredSize");
if(void 0===this._ownerWritableStream)throw defaultWriterLockException("desiredSize");var stream=this._ownerWritableStream,state=stream._state;"errored"===state||"erroring"===state?stream=null:"closed"===state?stream=0:(stream=stream._writableStreamController,stream=stream._strategyHWM-stream._queueTotalSize);return stream},enumerable:!0,configurable:!0});Object.defineProperty(WritableStreamDefaultWriter.prototype,"ready",{get:function(){return!1===IsWritableStreamDefaultWriter(this)?originalPromiseReject(defaultWriterBrandCheckException("ready")):
this._readyPromise},enumerable:!0,configurable:!0});WritableStreamDefaultWriter.prototype.abort=function(reason){return!1===IsWritableStreamDefaultWriter(this)?originalPromiseReject(defaultWriterBrandCheckException("abort")):void 0===this._ownerWritableStream?originalPromiseReject(defaultWriterLockException("abort")):WritableStreamAbort(this._ownerWritableStream,reason)};WritableStreamDefaultWriter.prototype.close=function(){if(!1===IsWritableStreamDefaultWriter(this))return originalPromiseReject(defaultWriterBrandCheckException("close"));
var stream=this._ownerWritableStream;return void 0===stream?originalPromiseReject(defaultWriterLockException("close")):!0===WritableStreamCloseQueuedOrInFlight(stream)?originalPromiseReject(new TypeError("cannot close an already-closing stream")):WritableStreamDefaultWriterClose(this)};WritableStreamDefaultWriter.prototype.releaseLock=function(){if(!1===IsWritableStreamDefaultWriter(this))throw defaultWriterBrandCheckException("releaseLock");void 0!==this._ownerWritableStream&&WritableStreamDefaultWriterRelease(this)};
WritableStreamDefaultWriter.prototype.write=function(chunk){return!1===IsWritableStreamDefaultWriter(this)?originalPromiseReject(defaultWriterBrandCheckException("write")):void 0===this._ownerWritableStream?originalPromiseReject(defaultWriterLockException("write to")):WritableStreamDefaultWriterWrite(this,chunk)};return WritableStreamDefaultWriter}(),WritableStreamDefaultController$jscomp$0=function(){function WritableStreamDefaultController(){throw new TypeError("WritableStreamDefaultController cannot be constructed explicitly");
}WritableStreamDefaultController.prototype.error=function(e){var JSCompiler_inline_result=typeIsObject(this)?Object.prototype.hasOwnProperty.call(this,"_controlledWritableStream")?!0:!1:!1;if(!1===JSCompiler_inline_result)throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&(JSCompiler_inline_result=this._controlledWritableStream,WritableStreamDefaultControllerClearAlgorithms(this),
WritableStreamStartErroring(JSCompiler_inline_result,e))};WritableStreamDefaultController.prototype[AbortSteps]=function(reason){reason=this._abortAlgorithm(reason);WritableStreamDefaultControllerClearAlgorithms(this);return reason};WritableStreamDefaultController.prototype[ErrorSteps]=function(){ResetQueue(this)};return WritableStreamDefaultController}(),NativeDOMException="undefined"!==typeof DOMException?DOMException:void 0,DOMException$1=function(ctor){if("function"!==typeof ctor&&"object"!==
_typeof2(ctor))return!1;try{return new ctor,!0}catch(_a$7){return!1}}(NativeDOMException)?NativeDOMException:createDOMExceptionPolyfill(),ReadableStreamDefaultController$jscomp$0=function(){function ReadableStreamDefaultController(){throw new TypeError;}Object.defineProperty(ReadableStreamDefaultController.prototype,"desiredSize",{get:function(){if(!1===IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this)},
enumerable:!0,configurable:!0});ReadableStreamDefaultController.prototype.close=function(){if(!1===IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("close");if(!1===ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits close");ReadableStreamDefaultControllerClose(this)};ReadableStreamDefaultController.prototype.enqueue=function(chunk){if(!1===IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("enqueue");
if(!1===ReadableStreamDefaultControllerCanCloseOrEnqueue(this))throw new TypeError("The stream is not in a state that permits enqueue");return ReadableStreamDefaultControllerEnqueue(this,chunk)};ReadableStreamDefaultController.prototype.error=function(e){if(!1===IsReadableStreamDefaultController(this))throw defaultControllerBrandCheckException("error");ReadableStreamDefaultControllerError(this,e)};ReadableStreamDefaultController.prototype[CancelSteps]=function(reason){ResetQueue(this);reason=this._cancelAlgorithm(reason);
ReadableStreamDefaultControllerClearAlgorithms(this);return reason};ReadableStreamDefaultController.prototype[PullSteps]=function(){var stream=this._controlledReadableStream;if(0<this._queue.length){var chunk=DequeueValue(this);!0===this._closeRequested&&0===this._queue.length?(ReadableStreamDefaultControllerClearAlgorithms(this),ReadableStreamClose(stream)):ReadableStreamDefaultControllerCallPullIfNeeded(this);return originalPromiseResolve(ReadableStreamCreateReadResult(chunk,!1,stream._reader._forAuthorCode))}stream=
ReadableStreamAddReadRequest(stream);ReadableStreamDefaultControllerCallPullIfNeeded(this);return stream};return ReadableStreamDefaultController}(),NumberIsInteger=Number.isInteger||function(value){return"number"===typeof value&&isFinite(value)&&Math.floor(value)===value},ReadableStreamBYOBRequest$jscomp$0=function(){function ReadableStreamBYOBRequest(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly");}Object.defineProperty(ReadableStreamBYOBRequest.prototype,"view",{get:function(){if(!1===
IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("view");return this._view},enumerable:!0,configurable:!0});ReadableStreamBYOBRequest.prototype.respond=function(bytesWritten){if(!1===IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");var controller=this._associatedReadableByteStreamController;bytesWritten=Number(bytesWritten);if(!1===
IsFiniteNonNegativeNumber(bytesWritten))throw new RangeError("bytesWritten must be a finite");ReadableByteStreamControllerRespondInternal(controller,bytesWritten)};ReadableStreamBYOBRequest.prototype.respondWithNewView=function(view){if(!1===IsReadableStreamBYOBRequest(this))throw byobRequestBrandCheckException("respond");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(view))throw new TypeError("You can only respond with array buffer views");
var controller=this._associatedReadableByteStreamController,firstDescriptor=controller._pendingPullIntos.peek();if(firstDescriptor.byteOffset+firstDescriptor.bytesFilled!==view.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(firstDescriptor.byteLength!==view.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");firstDescriptor.buffer=view.buffer;ReadableByteStreamControllerRespondInternal(controller,view.byteLength)};
return ReadableStreamBYOBRequest}(),ReadableByteStreamController$jscomp$0=function(){function ReadableByteStreamController(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly");}Object.defineProperty(ReadableByteStreamController.prototype,"byobRequest",{get:function(){if(!1===IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("byobRequest");if(void 0===this._byobRequest&&0<this._pendingPullIntos.length){var firstDescriptor=this._pendingPullIntos.peek();
firstDescriptor=new Uint8Array(firstDescriptor.buffer,firstDescriptor.byteOffset+firstDescriptor.bytesFilled,firstDescriptor.byteLength-firstDescriptor.bytesFilled);var byobRequest=Object.create(ReadableStreamBYOBRequest$jscomp$0.prototype);byobRequest._associatedReadableByteStreamController=this;byobRequest._view=firstDescriptor;this._byobRequest=byobRequest}return this._byobRequest},enumerable:!0,configurable:!0});Object.defineProperty(ReadableByteStreamController.prototype,"desiredSize",{get:function(){if(!1===
IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("desiredSize");return ReadableByteStreamControllerGetDesiredSize(this)},enumerable:!0,configurable:!0});ReadableByteStreamController.prototype.close=function(){if(!1===IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("close");if(!0===this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var state=this._controlledReadableByteStream._state;
if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be closed");state=this._controlledReadableByteStream;if(0<this._queueTotalSize)this._closeRequested=!0;else{if(0<this._pendingPullIntos.length&&0<this._pendingPullIntos.peek().bytesFilled)throw state=new TypeError("Insufficient bytes to fill elements in the given buffer"),ReadableByteStreamControllerError(this,state),state;ReadableByteStreamControllerClearAlgorithms(this);ReadableStreamClose(state)}};
ReadableByteStreamController.prototype.enqueue=function(chunk){if(!1===IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("enqueue");if(!0===this._closeRequested)throw new TypeError("stream is closed or draining");var state=this._controlledReadableByteStream._state;if("readable"!==state)throw new TypeError("The stream (in "+state+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(chunk))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");
state=this._controlledReadableByteStream;var byteOffset=chunk.byteOffset,byteLength=chunk.byteLength;chunk=chunk.buffer;!0===ReadableStreamHasDefaultReader(state)?0===state._reader._readRequests.length?ReadableByteStreamControllerEnqueueChunkToQueue(this,chunk,byteOffset,byteLength):(chunk=new Uint8Array(chunk,byteOffset,byteLength),ReadableStreamFulfillReadRequest(state,chunk,!1)):!0===ReadableStreamHasBYOBReader(state)?(ReadableByteStreamControllerEnqueueChunkToQueue(this,chunk,byteOffset,byteLength),
ReadableByteStreamControllerProcessPullIntoDescriptorsUsingQueue(this)):ReadableByteStreamControllerEnqueueChunkToQueue(this,chunk,byteOffset,byteLength);ReadableByteStreamControllerCallPullIfNeeded(this)};ReadableByteStreamController.prototype.error=function(e){if(!1===IsReadableByteStreamController(this))throw byteStreamControllerBrandCheckException("error");ReadableByteStreamControllerError(this,e)};ReadableByteStreamController.prototype[CancelSteps]=function(reason){0<this._pendingPullIntos.length&&
(this._pendingPullIntos.peek().bytesFilled=0);ResetQueue(this);reason=this._cancelAlgorithm(reason);ReadableByteStreamControllerClearAlgorithms(this);return reason};ReadableByteStreamController.prototype[PullSteps]=function(){var stream=this._controlledReadableByteStream;if(0<this._queueTotalSize){var entry=this._queue.shift();this._queueTotalSize-=entry.byteLength;ReadableByteStreamControllerHandleQueueDrain(this);var view=void 0;try{view=new Uint8Array(entry.buffer,entry.byteOffset,entry.byteLength)}catch(viewE){return originalPromiseReject(viewE)}return originalPromiseResolve(ReadableStreamCreateReadResult(view,
!1,stream._reader._forAuthorCode))}entry=this._autoAllocateChunkSize;if(void 0!==entry){view=void 0;try{view=new ArrayBuffer(entry)}catch(bufferE){return originalPromiseReject(bufferE)}this._pendingPullIntos.push({buffer:view,byteOffset:0,byteLength:entry,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"})}stream=ReadableStreamAddReadRequest(stream);ReadableByteStreamControllerCallPullIfNeeded(this);return stream};return ReadableByteStreamController}(),ReadableStreamBYOBReader$jscomp$0=
function(){function ReadableStreamBYOBReader(stream){if(!IsReadableStream(stream))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(!1===IsReadableByteStreamController(stream._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(IsReadableStreamLocked(stream))throw new TypeError("This stream has already been locked for exclusive reading by another reader");
ReadableStreamReaderGenericInitialize(this,stream);this._readIntoRequests=new SimpleQueue}Object.defineProperty(ReadableStreamBYOBReader.prototype,"closed",{get:function(){return IsReadableStreamBYOBReader(this)?this._closedPromise:originalPromiseReject(byobReaderBrandCheckException("closed"))},enumerable:!0,configurable:!0});ReadableStreamBYOBReader.prototype.cancel=function(reason){return IsReadableStreamBYOBReader(this)?void 0===this._ownerReadableStream?originalPromiseReject(readerLockException("cancel")):
ReadableStreamCancel(this._ownerReadableStream,reason):originalPromiseReject(byobReaderBrandCheckException("cancel"))};ReadableStreamBYOBReader.prototype.read=function(view){if(!IsReadableStreamBYOBReader(this))return originalPromiseReject(byobReaderBrandCheckException("read"));if(void 0===this._ownerReadableStream)return originalPromiseReject(readerLockException("read from"));if(!ArrayBuffer.isView(view))return originalPromiseReject(new TypeError("view must be an array buffer view"));if(0===view.byteLength)return originalPromiseReject(new TypeError("view must have non-zero byteLength"));
var stream=this._ownerReadableStream;stream._disturbed=!0;view="errored"===stream._state?originalPromiseReject(stream._storedError):ReadableByteStreamControllerPullInto(stream._readableStreamController,view);return view};ReadableStreamBYOBReader.prototype.releaseLock=function(){if(!IsReadableStreamBYOBReader(this))throw byobReaderBrandCheckException("releaseLock");if(void 0!==this._ownerReadableStream){if(0<this._readIntoRequests.length)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");
ReadableStreamReaderGenericRelease(this)}};return ReadableStreamBYOBReader}(),ReadableStream$jscomp$0=function(){function ReadableStream(underlyingSource,strategy){void 0===underlyingSource&&(underlyingSource={});void 0===strategy&&(strategy={});InitializeReadableStream(this);var size=strategy.size;strategy=strategy.highWaterMark;var type=underlyingSource.type;if("bytes"===String(type)){if(void 0!==size)throw new RangeError("The strategy for a byte stream cannot have a size function");void 0===strategy&&
(strategy=0);strategy=ValidateAndNormalizeHighWaterMark(strategy);SetUpReadableByteStreamControllerFromUnderlyingSource(this,underlyingSource,strategy)}else if(void 0===type)size=MakeSizeAlgorithmFromSizeFunction(size),void 0===strategy&&(strategy=1),strategy=ValidateAndNormalizeHighWaterMark(strategy),SetUpReadableStreamDefaultControllerFromUnderlyingSource(this,underlyingSource,strategy,size);else throw new RangeError("Invalid type is specified");}Object.defineProperty(ReadableStream.prototype,
"locked",{get:function(){if(!1===IsReadableStream(this))throw streamBrandCheckException$1("locked");return IsReadableStreamLocked(this)},enumerable:!0,configurable:!0});ReadableStream.prototype.cancel=function(reason){return!1===IsReadableStream(this)?originalPromiseReject(streamBrandCheckException$1("cancel")):!0===IsReadableStreamLocked(this)?originalPromiseReject(new TypeError("Cannot cancel a stream that already has a reader")):ReadableStreamCancel(this,reason)};ReadableStream.prototype.getReader=
function(_a){_a=(void 0===_a?{}:_a).mode;if(!1===IsReadableStream(this))throw streamBrandCheckException$1("getReader");if(void 0===_a)return AcquireReadableStreamDefaultReader(this,!0);_a=String(_a);if("byob"===_a){_a=!0;void 0===_a&&(_a=!1);var reader=new ReadableStreamBYOBReader$jscomp$0(this);reader._forAuthorCode=_a;return reader}throw new RangeError("Invalid mode is specified");};ReadableStream.prototype.pipeThrough=function(_a,_b){var writable=_a.writable;_a=_a.readable;var _c=void 0===_b?{}:
_b;_b=_c.preventClose;var preventAbort=_c.preventAbort,preventCancel=_c.preventCancel;_c=_c.signal;if(!1===IsReadableStream(this))throw streamBrandCheckException$1("pipeThrough");if(!1===IsWritableStream(writable))throw new TypeError("writable argument to pipeThrough must be a WritableStream");if(!1===IsReadableStream(_a))throw new TypeError("readable argument to pipeThrough must be a ReadableStream");_b=!!_b;preventAbort=!!preventAbort;preventCancel=!!preventCancel;if(void 0!==_c&&!isAbortSignal(_c))throw new TypeError("ReadableStream.prototype.pipeThrough's signal option must be an AbortSignal");
if(!0===IsReadableStreamLocked(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(!0===IsWritableStreamLocked(writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");writable=ReadableStreamPipeTo(this,writable,_b,preventAbort,preventCancel,_c);setPromiseIsHandledToTrue(writable);return _a};ReadableStream.prototype.pipeTo=function(dest,_a){var _b=void 0===_a?{}:_a;_a=_b.preventClose;
var preventAbort=_b.preventAbort,preventCancel=_b.preventCancel;_b=_b.signal;if(!1===IsReadableStream(this))return originalPromiseReject(streamBrandCheckException$1("pipeTo"));if(!1===IsWritableStream(dest))return originalPromiseReject(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));_a=!!_a;preventAbort=!!preventAbort;preventCancel=!!preventCancel;return void 0===_b||isAbortSignal(_b)?!0===IsReadableStreamLocked(this)?originalPromiseReject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):
!0===IsWritableStreamLocked(dest)?originalPromiseReject(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ReadableStreamPipeTo(this,dest,_a,preventAbort,preventCancel,_b):originalPromiseReject(new TypeError("ReadableStream.prototype.pipeTo's signal option must be an AbortSignal"))};ReadableStream.prototype.tee=function(){if(!1===IsReadableStream(this))throw streamBrandCheckException$1("tee");return ReadableStreamTee(this).slice()};ReadableStream.prototype.getIterator=
function(_a){_a=(void 0===_a?{}:_a).preventCancel;_a=void 0===_a?!1:_a;if(!1===IsReadableStream(this))throw streamBrandCheckException$1("getIterator");void 0===_a&&(_a=!1);var reader=AcquireReadableStreamDefaultReader(this),iterator=Object.create(ReadableStreamAsyncIteratorPrototype);iterator._asyncIteratorReader=reader;iterator._preventCancel=!!_a;return iterator};return ReadableStream}();"symbol"===_typeof2(SymbolPolyfill.asyncIterator)&&Object.defineProperty(ReadableStream$jscomp$0.prototype,SymbolPolyfill.asyncIterator,
{value:ReadableStream$jscomp$0.prototype.getIterator,enumerable:!1,writable:!0,configurable:!0});var ByteLengthQueuingStrategy$jscomp$0=function(){function ByteLengthQueuingStrategy(_a){this.highWaterMark=_a.highWaterMark}ByteLengthQueuingStrategy.prototype.size=function(chunk){return chunk.byteLength};return ByteLengthQueuingStrategy}(),CountQueuingStrategy$jscomp$0=function(){function CountQueuingStrategy(_a){this.highWaterMark=_a.highWaterMark}CountQueuingStrategy.prototype.size=function(){return 1};
return CountQueuingStrategy}(),TransformStream$jscomp$0=function(){function TransformStream(transformer,writableStrategy,readableStrategy){void 0===transformer&&(transformer={});void 0===writableStrategy&&(writableStrategy={});void 0===readableStrategy&&(readableStrategy={});var writableSizeFunction=writableStrategy.size;writableStrategy=writableStrategy.highWaterMark;var readableSizeFunction=readableStrategy.size;readableStrategy=readableStrategy.highWaterMark;if(void 0!==transformer.writableType)throw new RangeError("Invalid writable type specified");
writableSizeFunction=MakeSizeAlgorithmFromSizeFunction(writableSizeFunction);void 0===writableStrategy&&(writableStrategy=1);writableStrategy=ValidateAndNormalizeHighWaterMark(writableStrategy);if(void 0!==transformer.readableType)throw new RangeError("Invalid readable type specified");readableSizeFunction=MakeSizeAlgorithmFromSizeFunction(readableSizeFunction);void 0===readableStrategy&&(readableStrategy=0);readableStrategy=ValidateAndNormalizeHighWaterMark(readableStrategy);var startPromise_resolve,
startPromise=newPromise(function(resolve){startPromise_resolve=resolve});InitializeTransformStream(this,startPromise,writableStrategy,writableSizeFunction,readableStrategy,readableSizeFunction);SetUpTransformStreamDefaultControllerFromTransformer(this,transformer);transformer=InvokeOrNoop(transformer,"start",[this._transformStreamController]);startPromise_resolve(transformer)}Object.defineProperty(TransformStream.prototype,"readable",{get:function(){if(!1===IsTransformStream(this))throw streamBrandCheckException$2("readable");
return this._readable},enumerable:!0,configurable:!0});Object.defineProperty(TransformStream.prototype,"writable",{get:function(){if(!1===IsTransformStream(this))throw streamBrandCheckException$2("writable");return this._writable},enumerable:!0,configurable:!0});return TransformStream}(),TransformStreamDefaultController$jscomp$0=function(){function TransformStreamDefaultController(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly");}Object.defineProperty(TransformStreamDefaultController.prototype,
"desiredSize",{get:function(){if(!1===IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("desiredSize");return ReadableStreamDefaultControllerGetDesiredSize(this._controlledTransformStream._readable._readableStreamController)},enumerable:!0,configurable:!0});TransformStreamDefaultController.prototype.enqueue=function(chunk){if(!1===IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("enqueue");TransformStreamDefaultControllerEnqueue(this,
chunk)};TransformStreamDefaultController.prototype.error=function(reason){if(!1===IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("error");TransformStreamError(this._controlledTransformStream,reason)};TransformStreamDefaultController.prototype.terminate=function(){if(!1===IsTransformStreamDefaultController(this))throw defaultControllerBrandCheckException$1("terminate");var stream=this._controlledTransformStream,readableController=stream._readable._readableStreamController;
!0===ReadableStreamDefaultControllerCanCloseOrEnqueue(readableController)&&ReadableStreamDefaultControllerClose(readableController);readableController=new TypeError("TransformStream terminated");TransformStreamErrorWritableAndUnblockWrite(stream,readableController)};return TransformStreamDefaultController}()},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(104);__w_pdfjs_require__(136);__w_pdfjs_require__(106);exports=__w_pdfjs_require__(38);module.exports=exports.WeakMap},function(module,
exports,__w_pdfjs_require__){var global=__w_pdfjs_require__(6);exports=__w_pdfjs_require__(111);var InternalMetadataModule=__w_pdfjs_require__(137),collection=__w_pdfjs_require__(139),collectionWeak=__w_pdfjs_require__(141),isObject=__w_pdfjs_require__(17),enforceIternalState=__w_pdfjs_require__(28).enforce;__w_pdfjs_require__=__w_pdfjs_require__(29);global=!global.ActiveXObject&&"ActiveXObject"in global;var isExtensible=Object.isExtensible,wrapper=function(init){return function(){return init(this,
arguments.length?arguments[0]:void 0)}};module=module.exports=collection("WeakMap",wrapper,collectionWeak);if(__w_pdfjs_require__&&global){var InternalWeakMap=collectionWeak.getConstructor(wrapper,"WeakMap",!0);InternalMetadataModule.REQUIRED=!0;module=module.prototype;var nativeDelete=module["delete"],nativeHas=module.has,nativeGet=module.get,nativeSet=module.set;exports(module,{"delete":function(key){if(isObject(key)&&!isExtensible(key)){var state=enforceIternalState(this);state.frozen||(state.frozen=
new InternalWeakMap);return nativeDelete.call(this,key)||state.frozen["delete"](key)}return nativeDelete.call(this,key)},has:function(key){if(isObject(key)&&!isExtensible(key)){var state=enforceIternalState(this);state.frozen||(state.frozen=new InternalWeakMap);return nativeHas.call(this,key)||state.frozen.has(key)}return nativeHas.call(this,key)},get:function(key){if(isObject(key)&&!isExtensible(key)){var state=enforceIternalState(this);state.frozen||(state.frozen=new InternalWeakMap);return nativeHas.call(this,
key)?nativeGet.call(this,key):state.frozen.get(key)}return nativeGet.call(this,key)},set:function(key,value){if(isObject(key)&&!isExtensible(key)){var state=enforceIternalState(this);state.frozen||(state.frozen=new InternalWeakMap);nativeHas.call(this,key)?nativeSet.call(this,key,value):state.frozen.set(key,value)}else nativeSet.call(this,key,value);return this}})}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(34);var isObject=__w_pdfjs_require__(17),has=__w_pdfjs_require__(18),
defineProperty=__w_pdfjs_require__(22).f,uid=__w_pdfjs_require__(33),FREEZING=__w_pdfjs_require__(138),METADATA=uid("meta"),id=0,isExtensible=Object.isExtensible||function(){return!0},setMetadata=function(it){defineProperty(it,METADATA,{value:{objectID:"O"+ ++id,weakData:{}}})},meta=module.exports={REQUIRED:!1,fastKey:function(it,create){if(!isObject(it))return"symbol"==_typeof2(it)?it:("string"==typeof it?"S":"P")+it;if(!has(it,METADATA)){if(!isExtensible(it))return"F";if(!create)return"E";setMetadata(it)}return it[METADATA].objectID},
getWeakData:function(it,create){if(!has(it,METADATA)){if(!isExtensible(it))return!0;if(!create)return!1;setMetadata(it)}return it[METADATA].weakData},onFreeze:function(it){FREEZING&&meta.REQUIRED&&isExtensible(it)&&!has(it,METADATA)&&setMetadata(it);return it}};exports[METADATA]=!0},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(9);module.exports=!exports(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(module,exports,__w_pdfjs_require__){var $=
__w_pdfjs_require__(5),global=__w_pdfjs_require__(6),isForced=__w_pdfjs_require__(47),redefine=__w_pdfjs_require__(24),InternalMetadataModule=__w_pdfjs_require__(137),iterate=__w_pdfjs_require__(114),anInstance=__w_pdfjs_require__(113),isObject=__w_pdfjs_require__(17),fails=__w_pdfjs_require__(9),checkCorrectnessOfIteration=__w_pdfjs_require__(92),setToStringTag=__w_pdfjs_require__(80),inheritIfRequired=__w_pdfjs_require__(140);module.exports=function(CONSTRUCTOR_NAME,wrapper,common){var IS_MAP=-1!==
CONSTRUCTOR_NAME.indexOf("Map"),IS_WEAK=-1!==CONSTRUCTOR_NAME.indexOf("Weak"),ADDER=IS_MAP?"set":"add",NativeConstructor=global[CONSTRUCTOR_NAME],NativePrototype=NativeConstructor&&NativeConstructor.prototype,Constructor=NativeConstructor,exported={},fixMethod=function(KEY){var nativeMethod=NativePrototype[KEY];redefine(NativePrototype,KEY,"add"==KEY?function(value){nativeMethod.call(this,0===value?0:value);return this}:"delete"==KEY?function(key){return IS_WEAK&&!isObject(key)?!1:nativeMethod.call(this,
0===key?0:key)}:"get"==KEY?function(key){return IS_WEAK&&!isObject(key)?void 0:nativeMethod.call(this,0===key?0:key)}:"has"==KEY?function(key){return IS_WEAK&&!isObject(key)?!1:nativeMethod.call(this,0===key?0:key)}:function(key,value){nativeMethod.call(this,0===key?0:key,value);return this})};if(isForced(CONSTRUCTOR_NAME,"function"!=typeof NativeConstructor||!(IS_WEAK||NativePrototype.forEach&&!fails(function(){(new NativeConstructor).entries().next()}))))Constructor=common.getConstructor(wrapper,
CONSTRUCTOR_NAME,IS_MAP,ADDER),InternalMetadataModule.REQUIRED=!0;else if(isForced(CONSTRUCTOR_NAME,!0)){var instance=new Constructor,HASNT_CHAINING=instance[ADDER](IS_WEAK?{}:-0,1)!=instance,THROWS_ON_PRIMITIVES=fails(function(){instance.has(1)}),ACCEPT_ITERABLES=checkCorrectnessOfIteration(function(iterable){new NativeConstructor(iterable)}),BUGGY_ZERO=!IS_WEAK&&fails(function(){for(var $instance=new NativeConstructor,index=5;index--;)$instance[ADDER](index,index);return!$instance.has(-0)});ACCEPT_ITERABLES||
(Constructor=wrapper(function(dummy,iterable){anInstance(dummy,Constructor,CONSTRUCTOR_NAME);dummy=inheritIfRequired(new NativeConstructor,dummy,Constructor);void 0!=iterable&&iterate(iterable,dummy[ADDER],dummy,IS_MAP);return dummy}),Constructor.prototype=NativePrototype,NativePrototype.constructor=Constructor);if(THROWS_ON_PRIMITIVES||BUGGY_ZERO)fixMethod("delete"),fixMethod("has"),IS_MAP&&fixMethod("get");(BUGGY_ZERO||HASNT_CHAINING)&&fixMethod(ADDER);IS_WEAK&&NativePrototype.clear&&delete NativePrototype.clear}exported[CONSTRUCTOR_NAME]=
Constructor;$({global:!0,forced:Constructor!=NativeConstructor},exported);setToStringTag(Constructor,CONSTRUCTOR_NAME);IS_WEAK||common.setStrong(Constructor,CONSTRUCTOR_NAME,IS_MAP);return Constructor}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),setPrototypeOf=__w_pdfjs_require__(82);module.exports=function($this,dummy,Wrapper){var NewTarget,NewTargetPrototype;setPrototypeOf&&"function"==typeof(NewTarget=dummy.constructor)&&NewTarget!==Wrapper&&isObject(NewTargetPrototype=
NewTarget.prototype)&&NewTargetPrototype!==Wrapper.prototype&&setPrototypeOf($this,NewTargetPrototype);return $this}},function(module,exports,__w_pdfjs_require__){var redefineAll=__w_pdfjs_require__(111),getWeakData=__w_pdfjs_require__(137).getWeakData,anObject=__w_pdfjs_require__(23),isObject=__w_pdfjs_require__(17),anInstance=__w_pdfjs_require__(113),iterate=__w_pdfjs_require__(114);exports=__w_pdfjs_require__(142);var $has=__w_pdfjs_require__(18);__w_pdfjs_require__=__w_pdfjs_require__(28);var setInternalState=
__w_pdfjs_require__.set,internalStateGetterFor=__w_pdfjs_require__.getterFor,find=exports.find,findIndex=exports.findIndex,id=0,uncaughtFrozenStore=function(store){return store.frozen||(store.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(store,key){return find(store.entries,function(it){return it[0]===key})};UncaughtFrozenStore.prototype={get:function(key){if(key=findUncaughtFrozen(this,key))return key[1]},has:function(key){return!!findUncaughtFrozen(this,
key)},set:function(key,value){var entry=findUncaughtFrozen(this,key);entry?entry[1]=value:this.entries.push([key,value])},"delete":function(key){var index=findIndex(this.entries,function(it){return it[0]===key});~index&&this.entries.splice(index,1);return!!~index}};module.exports={getConstructor:function(wrapper,CONSTRUCTOR_NAME,IS_MAP,ADDER){var C=wrapper(function(that,iterable){anInstance(that,C,CONSTRUCTOR_NAME);setInternalState(that,{type:CONSTRUCTOR_NAME,id:id++,frozen:void 0});void 0!=iterable&&
iterate(iterable,that[ADDER],that,IS_MAP)}),getInternalState=internalStateGetterFor(CONSTRUCTOR_NAME),define=function(that,key,value){var state=getInternalState(that),data=getWeakData(anObject(key),!0);!0===data?uncaughtFrozenStore(state).set(key,value):data[state.id]=value;return that};redefineAll(C.prototype,{"delete":function(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state)["delete"](key):data&&$has(data,state.id)&&
delete data[state.id]},has:function(key){var state=getInternalState(this);if(!isObject(key))return!1;var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).has(key):data&&$has(data,state.id)}});redefineAll(C.prototype,IS_MAP?{get:function(key){var state=getInternalState(this);if(isObject(key)){var data=getWeakData(key);return!0===data?uncaughtFrozenStore(state).get(key):data?data[state.id]:void 0}},set:function(key,value){return define(this,key,value)}}:{add:function(value){return define(this,
value,!0)}});return C}}},function(module,exports,__w_pdfjs_require__){var bind=__w_pdfjs_require__(58),IndexedObject=__w_pdfjs_require__(13),toObject=__w_pdfjs_require__(78),toLength=__w_pdfjs_require__(42),arraySpeciesCreate=__w_pdfjs_require__(143),push=[].push;exports=function(TYPE){var IS_MAP=1==TYPE,IS_FILTER=2==TYPE,IS_SOME=3==TYPE,IS_EVERY=4==TYPE,IS_FIND_INDEX=6==TYPE,NO_HOLES=5==TYPE||IS_FIND_INDEX;return function($this,callbackfn,that,specificCreate){var O=toObject($this),self=IndexedObject(O);
callbackfn=bind(callbackfn,that,3);that=toLength(self.length);var index=0;specificCreate=specificCreate||arraySpeciesCreate;$this=IS_MAP?specificCreate($this,that):IS_FILTER?specificCreate($this,0):void 0;for(var result;that>index;index++)if(NO_HOLES||index in self)if(specificCreate=self[index],result=callbackfn(specificCreate,index,O),TYPE)if(IS_MAP)$this[index]=result;else if(result)switch(TYPE){case 3:return!0;case 5:return specificCreate;case 6:return index;case 2:push.call($this,specificCreate)}else if(IS_EVERY)return!1;
return IS_FIND_INDEX?-1:IS_SOME||IS_EVERY?IS_EVERY:$this}};module.exports={forEach:exports(0),map:exports(1),filter:exports(2),some:exports(3),every:exports(4),find:exports(5),findIndex:exports(6)}},function(module,exports,__w_pdfjs_require__){var isObject=__w_pdfjs_require__(17),isArray=__w_pdfjs_require__(144),SPECIES=__w_pdfjs_require__(53)("species");module.exports=function(originalArray,length){if(isArray(originalArray)){var C=originalArray.constructor;"function"!=typeof C||C!==Array&&!isArray(C.prototype)?
isObject(C)&&(C=C[SPECIES],null===C&&(C=void 0)):C=void 0}return new (void 0===C?Array:C)(0===length?0:length)}},function(module,exports,__w_pdfjs_require__){var classof=__w_pdfjs_require__(14);module.exports=Array.isArray||function(arg){return"Array"==classof(arg)}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(104);__w_pdfjs_require__(146);__w_pdfjs_require__(106);exports=__w_pdfjs_require__(38);module.exports=exports.WeakSet},function(module,exports,__w_pdfjs_require__){module=
__w_pdfjs_require__(139);__w_pdfjs_require__=__w_pdfjs_require__(141);module("WeakSet",function(init){return function(){return init(this,arguments.length?arguments[0]:void 0)}},__w_pdfjs_require__)},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(148);exports=__w_pdfjs_require__(57);module.exports=exports("String","codePointAt")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var codeAt=__w_pdfjs_require__(73).codeAt;module({target:"String",proto:!0},{codePointAt:function(pos){return codeAt(this,
pos)}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(150);exports=__w_pdfjs_require__(38);module.exports=exports.String.fromCodePoint},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var toAbsoluteIndex=__w_pdfjs_require__(44),fromCharCode=String.fromCharCode;__w_pdfjs_require__=String.fromCodePoint;module({target:"String",stat:!0,forced:!!__w_pdfjs_require__&&1!=__w_pdfjs_require__.length},{fromCodePoint:function(x){for(var elements=[],length=arguments.length,
i=0,code;length>i;){code=+arguments[i++];if(toAbsoluteIndex(code,1114111)!==code)throw RangeError(code+" is not a valid code point");elements.push(65536>code?fromCharCode(code):fromCharCode(((code-=65536)>>10)+55296,code%1024+56320))}return elements.join("")}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(152);__w_pdfjs_require__(104);__w_pdfjs_require__(154);__w_pdfjs_require__(158);__w_pdfjs_require__(159);__w_pdfjs_require__(160);__w_pdfjs_require__(161);__w_pdfjs_require__(162);
__w_pdfjs_require__(163);__w_pdfjs_require__(164);__w_pdfjs_require__(165);__w_pdfjs_require__(166);__w_pdfjs_require__(167);__w_pdfjs_require__(168);__w_pdfjs_require__(169);__w_pdfjs_require__(170);__w_pdfjs_require__(171);__w_pdfjs_require__(172);__w_pdfjs_require__(173);exports=__w_pdfjs_require__(38);module.exports=exports.Symbol},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var fails=__w_pdfjs_require__(9),isArray=__w_pdfjs_require__(144),isObject=__w_pdfjs_require__(17),
toObject=__w_pdfjs_require__(78),toLength=__w_pdfjs_require__(42),createProperty=__w_pdfjs_require__(88),arraySpeciesCreate=__w_pdfjs_require__(143);exports=__w_pdfjs_require__(153);var wellKnownSymbol=__w_pdfjs_require__(53);__w_pdfjs_require__=__w_pdfjs_require__(124);var IS_CONCAT_SPREADABLE=wellKnownSymbol("isConcatSpreadable");__w_pdfjs_require__=51<=__w_pdfjs_require__||!fails(function(){var array=[];array[IS_CONCAT_SPREADABLE]=!1;return array.concat()[0]!==array});exports=exports("concat");
module({target:"Array",proto:!0,forced:!__w_pdfjs_require__||!exports},{concat:function(arg){var O=toObject(this),A=arraySpeciesCreate(O,0),n=0,length;var i=-1;for(length=arguments.length;i<length;i++){var E=-1===i?O:arguments[i];var k=E;if(isObject(k)){var len=k[IS_CONCAT_SPREADABLE];k=void 0!==len?!!len:isArray(k)}else k=!1;if(k){len=toLength(E.length);if(9007199254740991<n+len)throw TypeError("Maximum allowed index exceeded");for(k=0;k<len;k++,n++)k in E&&createProperty(A,n,E[k])}else{if(9007199254740991<=
n)throw TypeError("Maximum allowed index exceeded");createProperty(A,n++,E)}}A.length=n;return A}})},function(module,exports,__w_pdfjs_require__){var fails=__w_pdfjs_require__(9);exports=__w_pdfjs_require__(53);var V8_VERSION=__w_pdfjs_require__(124),SPECIES=exports("species");module.exports=function(METHOD_NAME){return 51<=V8_VERSION||!fails(function(){var array=[];(array.constructor={})[SPECIES]=function(){return{foo:1}};return 1!==array[METHOD_NAME](Boolean).foo})}},function(module,exports,__w_pdfjs_require__){module=
__w_pdfjs_require__(5);var global=__w_pdfjs_require__(6),getBuiltIn=__w_pdfjs_require__(37),IS_PURE=__w_pdfjs_require__(32),DESCRIPTORS=__w_pdfjs_require__(8),NATIVE_SYMBOL=__w_pdfjs_require__(54),USE_SYMBOL_AS_UID=__w_pdfjs_require__(55),fails=__w_pdfjs_require__(9),has=__w_pdfjs_require__(18),isArray=__w_pdfjs_require__(144),isObject=__w_pdfjs_require__(17),anObject=__w_pdfjs_require__(23),toObject=__w_pdfjs_require__(78),toIndexedObject=__w_pdfjs_require__(12),toPrimitive=__w_pdfjs_require__(16),
createPropertyDescriptor=__w_pdfjs_require__(11),nativeObjectCreate=__w_pdfjs_require__(67),objectKeys=__w_pdfjs_require__(69),getOwnPropertyNamesModule=__w_pdfjs_require__(39),getOwnPropertyNamesExternal=__w_pdfjs_require__(155),getOwnPropertySymbolsModule=__w_pdfjs_require__(46),getOwnPropertyDescriptorModule=__w_pdfjs_require__(7),definePropertyModule=__w_pdfjs_require__(22),propertyIsEnumerableModule=__w_pdfjs_require__(10);exports=__w_pdfjs_require__(21);var redefine=__w_pdfjs_require__(24),
shared=__w_pdfjs_require__(31),sharedKey=__w_pdfjs_require__(30),hiddenKeys=__w_pdfjs_require__(34),uid=__w_pdfjs_require__(33),wellKnownSymbol=__w_pdfjs_require__(53),wrappedWellKnownSymbolModule=__w_pdfjs_require__(156),defineWellKnownSymbol=__w_pdfjs_require__(157),setToStringTag=__w_pdfjs_require__(80),InternalStateModule=__w_pdfjs_require__(28),$forEach=__w_pdfjs_require__(142).forEach,HIDDEN=sharedKey("hidden");__w_pdfjs_require__=wellKnownSymbol("toPrimitive");var setInternalState=InternalStateModule.set,
getInternalState=InternalStateModule.getterFor("Symbol"),ObjectPrototype=Object.prototype,$Symbol=global.Symbol,$stringify=getBuiltIn("JSON","stringify"),nativeGetOwnPropertyDescriptor=getOwnPropertyDescriptorModule.f,nativeDefineProperty=definePropertyModule.f,nativeGetOwnPropertyNames=getOwnPropertyNamesExternal.f,nativePropertyIsEnumerable=propertyIsEnumerableModule.f,AllSymbols=shared("symbols"),ObjectPrototypeSymbols=shared("op-symbols"),StringToSymbolRegistry=shared("string-to-symbol-registry"),
SymbolToStringRegistry=shared("symbol-to-string-registry");getBuiltIn=shared("wks");global=global.QObject;var USE_SETTER=!global||!global.prototype||!global.prototype.findChild,setSymbolDescriptor=DESCRIPTORS&&fails(function(){return 7!=nativeObjectCreate(nativeDefineProperty({},"a",{get:function(){return nativeDefineProperty(this,"a",{value:7}).a}})).a})?function(O,P,Attributes){var ObjectPrototypeDescriptor=nativeGetOwnPropertyDescriptor(ObjectPrototype,P);ObjectPrototypeDescriptor&&delete ObjectPrototype[P];
nativeDefineProperty(O,P,Attributes);ObjectPrototypeDescriptor&&O!==ObjectPrototype&&nativeDefineProperty(ObjectPrototype,P,ObjectPrototypeDescriptor)}:nativeDefineProperty,wrap=function(tag,description){var symbol=AllSymbols[tag]=nativeObjectCreate($Symbol.prototype);setInternalState(symbol,{type:"Symbol",tag:tag,description:description});DESCRIPTORS||(symbol.description=description);return symbol},isSymbol=USE_SYMBOL_AS_UID?function(it){return"symbol"==_typeof2(it)}:function(it){return Object(it)instanceof
$Symbol},$defineProperty=function(O,P,Attributes){O===ObjectPrototype&&$defineProperty(ObjectPrototypeSymbols,P,Attributes);anObject(O);P=toPrimitive(P,!0);anObject(Attributes);return has(AllSymbols,P)?(Attributes.enumerable?(has(O,HIDDEN)&&O[HIDDEN][P]&&(O[HIDDEN][P]=!1),Attributes=nativeObjectCreate(Attributes,{enumerable:createPropertyDescriptor(0,!1)})):(has(O,HIDDEN)||nativeDefineProperty(O,HIDDEN,createPropertyDescriptor(1,{})),O[HIDDEN][P]=!0),setSymbolDescriptor(O,P,Attributes)):nativeDefineProperty(O,
P,Attributes)},$defineProperties=function(O,Properties){anObject(O);var properties=toIndexedObject(Properties);Properties=objectKeys(properties).concat($getOwnPropertySymbols(properties));$forEach(Properties,function(key){DESCRIPTORS&&!$propertyIsEnumerable.call(properties,key)||$defineProperty(O,key,properties[key])});return O},$propertyIsEnumerable=function(V){V=toPrimitive(V,!0);var enumerable=nativePropertyIsEnumerable.call(this,V);return this===ObjectPrototype&&has(AllSymbols,V)&&!has(ObjectPrototypeSymbols,
V)?!1:enumerable||!has(this,V)||!has(AllSymbols,V)||has(this,HIDDEN)&&this[HIDDEN][V]?enumerable:!0};USE_SYMBOL_AS_UID=function(O,P){O=toIndexedObject(O);P=toPrimitive(P,!0);if(O!==ObjectPrototype||!has(AllSymbols,P)||has(ObjectPrototypeSymbols,P)){var descriptor=nativeGetOwnPropertyDescriptor(O,P);!descriptor||!has(AllSymbols,P)||has(O,HIDDEN)&&O[HIDDEN][P]||(descriptor.enumerable=!0);return descriptor}};global=function(O){O=nativeGetOwnPropertyNames(toIndexedObject(O));var result=[];$forEach(O,
function(key){has(AllSymbols,key)||has(hiddenKeys,key)||result.push(key)});return result};var $getOwnPropertySymbols=function(O){var IS_OBJECT_PROTOTYPE=O===ObjectPrototype;O=nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE?ObjectPrototypeSymbols:toIndexedObject(O));var result=[];$forEach(O,function(key){!has(AllSymbols,key)||IS_OBJECT_PROTOTYPE&&!has(ObjectPrototype,key)||result.push(AllSymbols[key])});return result};NATIVE_SYMBOL||($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor");
var description=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tag=uid(description),setter$jscomp$0=function setter(value){this===ObjectPrototype&&setter.call(ObjectPrototypeSymbols,value);has(this,HIDDEN)&&has(this[HIDDEN],tag)&&(this[HIDDEN][tag]=!1);setSymbolDescriptor(this,tag,createPropertyDescriptor(1,value))};DESCRIPTORS&&USE_SETTER&&setSymbolDescriptor(ObjectPrototype,tag,{configurable:!0,set:setter$jscomp$0});return wrap(tag,description)},redefine($Symbol.prototype,"toString",
function(){return getInternalState(this).tag}),redefine($Symbol,"withoutSetter",function(description){return wrap(uid(description),description)}),propertyIsEnumerableModule.f=$propertyIsEnumerable,definePropertyModule.f=$defineProperty,getOwnPropertyDescriptorModule.f=USE_SYMBOL_AS_UID,getOwnPropertyNamesModule.f=getOwnPropertyNamesExternal.f=global,getOwnPropertySymbolsModule.f=$getOwnPropertySymbols,wrappedWellKnownSymbolModule.f=function(name){return wrap(wellKnownSymbol(name),name)},DESCRIPTORS&&
(nativeDefineProperty($Symbol.prototype,"description",{configurable:!0,get:function(){return getInternalState(this).description}}),IS_PURE||redefine(ObjectPrototype,"propertyIsEnumerable",$propertyIsEnumerable,{unsafe:!0})));module({global:!0,wrap:!0,forced:!NATIVE_SYMBOL,sham:!NATIVE_SYMBOL},{Symbol:$Symbol});$forEach(objectKeys(getBuiltIn),function(name){defineWellKnownSymbol(name)});module({target:"Symbol",stat:!0,forced:!NATIVE_SYMBOL},{"for":function(key){key=String(key);if(has(StringToSymbolRegistry,
key))return StringToSymbolRegistry[key];var symbol=$Symbol(key);StringToSymbolRegistry[key]=symbol;SymbolToStringRegistry[symbol]=key;return symbol},keyFor:function(sym){if(!isSymbol(sym))throw TypeError(sym+" is not a symbol");if(has(SymbolToStringRegistry,sym))return SymbolToStringRegistry[sym]},useSetter:function(){USE_SETTER=!0},useSimple:function(){USE_SETTER=!1}});module({target:"Object",stat:!0,forced:!NATIVE_SYMBOL,sham:!DESCRIPTORS},{create:function(O,Properties){return void 0===Properties?
nativeObjectCreate(O):$defineProperties(nativeObjectCreate(O),Properties)},defineProperty:$defineProperty,defineProperties:$defineProperties,getOwnPropertyDescriptor:USE_SYMBOL_AS_UID});module({target:"Object",stat:!0,forced:!NATIVE_SYMBOL},{getOwnPropertyNames:global,getOwnPropertySymbols:$getOwnPropertySymbols});module({target:"Object",stat:!0,forced:fails(function(){getOwnPropertySymbolsModule.f(1)})},{getOwnPropertySymbols:function(it){return getOwnPropertySymbolsModule.f(toObject(it))}});$stringify&&
(IS_PURE=!NATIVE_SYMBOL||fails(function(){var symbol=$Symbol();return"[null]"!=$stringify([symbol])||"{}"!=$stringify({a:symbol})||"{}"!=$stringify(Object(symbol))}),module({target:"JSON",stat:!0,forced:IS_PURE},{stringify:function(it,replacer,space){for(var args=[it],index=1,$replacer;arguments.length>index;)args.push(arguments[index++]);$replacer=replacer;if((isObject(replacer)||void 0!==it)&&!isSymbol(it))return isArray(replacer)||(replacer=function(key,value){"function"==typeof $replacer&&(value=
$replacer.call(this,key,value));if(!isSymbol(value))return value}),args[1]=replacer,$stringify.apply(null,args)}}));$Symbol.prototype[__w_pdfjs_require__]||exports($Symbol.prototype,__w_pdfjs_require__,$Symbol.prototype.valueOf);setToStringTag($Symbol,"Symbol");hiddenKeys[HIDDEN]=!0},function(module,exports,__w_pdfjs_require__){var toIndexedObject=__w_pdfjs_require__(12),nativeGetOwnPropertyNames=__w_pdfjs_require__(39).f,toString={}.toString,windowNames="object"==("undefined"===typeof window?"undefined":
_typeof2(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];module.exports.f=function(it){if(windowNames&&"[object Window]"==toString.call(it))try{var JSCompiler_temp=nativeGetOwnPropertyNames(it)}catch(error){JSCompiler_temp=windowNames.slice()}else JSCompiler_temp=nativeGetOwnPropertyNames(toIndexedObject(it));return JSCompiler_temp}},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(53);exports.f=module},function(module,exports,__w_pdfjs_require__){var path=
__w_pdfjs_require__(38),has=__w_pdfjs_require__(18),wrappedWellKnownSymbolModule=__w_pdfjs_require__(156),defineProperty=__w_pdfjs_require__(22).f;module.exports=function(NAME){var _Symbol3=path.Symbol||(path.Symbol={});has(_Symbol3,NAME)||defineProperty(_Symbol3,NAME,{value:wrappedWellKnownSymbolModule.f(NAME)})}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("asyncIterator")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var DESCRIPTORS=__w_pdfjs_require__(8),
global=__w_pdfjs_require__(6),has=__w_pdfjs_require__(18),isObject=__w_pdfjs_require__(17);exports=__w_pdfjs_require__(22).f;__w_pdfjs_require__=__w_pdfjs_require__(35);var NativeSymbol=global.Symbol;if(DESCRIPTORS&&"function"==typeof NativeSymbol&&!("description"in NativeSymbol.prototype&&void 0===NativeSymbol().description)){var EmptyStringDescriptionStore={},SymbolWrapper=function(){var description=1>arguments.length||void 0===arguments[0]?void 0:String(arguments[0]),result=this instanceof SymbolWrapper?
new NativeSymbol(description):void 0===description?NativeSymbol():NativeSymbol(description);""===description&&(EmptyStringDescriptionStore[result]=!0);return result};__w_pdfjs_require__(SymbolWrapper,NativeSymbol);__w_pdfjs_require__=SymbolWrapper.prototype=NativeSymbol.prototype;__w_pdfjs_require__.constructor=SymbolWrapper;var symbolToString=__w_pdfjs_require__.toString,_native="Symbol(test)"==String(NativeSymbol("test")),regexp=/^Symbol\((.*)\)[^)]+$/;exports(__w_pdfjs_require__,"description",
{configurable:!0,get:function(){var symbol=isObject(this)?this.valueOf():this,string=symbolToString.call(symbol);if(has(EmptyStringDescriptionStore,symbol))return"";symbol=_native?string.slice(7,-1):string.replace(regexp,"$1");return""===symbol?void 0:symbol}});module({global:!0,forced:!0},{Symbol:SymbolWrapper})}},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("hasInstance")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("isConcatSpreadable")},function(module,
exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("iterator")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("match")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("matchAll")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("replace")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("search")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("species")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("split")},
function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("toPrimitive")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("toStringTag")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(157)("unscopables")},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(80)(Math,"Math",!0)},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(6);__w_pdfjs_require__(80)(module.JSON,"JSON",!0)},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(175);
exports=__w_pdfjs_require__(57);module.exports=exports("String","padStart")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var $padStart=__w_pdfjs_require__(176).start;__w_pdfjs_require__=__w_pdfjs_require__(178);module({target:"String",proto:!0,forced:__w_pdfjs_require__},{padStart:function(maxLength){return $padStart(this,maxLength,1<arguments.length?arguments[1]:void 0)}})},function(module,exports,__w_pdfjs_require__){var toLength=__w_pdfjs_require__(42),repeat=__w_pdfjs_require__(177),
requireObjectCoercible=__w_pdfjs_require__(15),ceil=Math.ceil;exports=function(IS_END){return function($this,maxLength,fillString){$this=String(requireObjectCoercible($this));var stringLength=$this.length;fillString=void 0===fillString?" ":String(fillString);maxLength=toLength(maxLength);if(maxLength<=stringLength||""==fillString)return $this;maxLength-=stringLength;stringLength=repeat.call(fillString,ceil(maxLength/fillString.length));stringLength.length>maxLength&&(stringLength=stringLength.slice(0,
maxLength));return IS_END?$this+stringLength:stringLength+$this}};module.exports={start:exports(!1),end:exports(!0)}},function(module,exports,__w_pdfjs_require__){var toInteger=__w_pdfjs_require__(43),requireObjectCoercible=__w_pdfjs_require__(15);module.exports="".repeat||function(count){var str=String(requireObjectCoercible(this)),result="";count=toInteger(count);if(0>count||Infinity==count)throw RangeError("Wrong number of repetitions");for(;0<count;(count>>>=1)&&(str+=str))count&1&&(result+=str);
return result}},function(module,exports,__w_pdfjs_require__){exports=__w_pdfjs_require__(118);module.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(exports)},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(180);exports=__w_pdfjs_require__(57);module.exports=exports("String","padEnd")},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var $padEnd=__w_pdfjs_require__(176).end;__w_pdfjs_require__=__w_pdfjs_require__(178);module({target:"String",
proto:!0,forced:__w_pdfjs_require__},{padEnd:function(maxLength){return $padEnd(this,maxLength,1<arguments.length?arguments[1]:void 0)}})},function(module,exports,__w_pdfjs_require__){__w_pdfjs_require__(182);exports=__w_pdfjs_require__(38);module.exports=exports.Object.values},function(module,exports,__w_pdfjs_require__){module=__w_pdfjs_require__(5);var $values=__w_pdfjs_require__(183).values;module({target:"Object",stat:!0},{values:function(O){return $values(O)}})},function(module,exports,__w_pdfjs_require__){var DESCRIPTORS=
__w_pdfjs_require__(8),objectKeys=__w_pdfjs_require__(69),toIndexedObject=__w_pdfjs_require__(12),propertyIsEnumerable=__w_pdfjs_require__(10).f;exports=function(TO_ENTRIES){return function(it){it=toIndexedObject(it);for(var keys=objectKeys(it),length=keys.length,i=0,result=[],key;length>i;)key=keys[i++],DESCRIPTORS&&!propertyIsEnumerable.call(it,key)||result.push(TO_ENTRIES?[key,it[key]]:it[key]);return result}};module.exports={entries:exports(!0),values:exports(!1)}},function(module,exports,__w_pdfjs_require__){function _slicedToArray(arr,
i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){JSCompiler_temp=[];var _n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(JSCompiler_temp.push(_s.value),!i||JSCompiler_temp.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"])_i["return"]()}finally{if(_d)throw _e;}}}else JSCompiler_temp=void 0;if(!(arr=JSCompiler_temp))throw new TypeError("Invalid attempt to destructure non-iterable instance");
return arr}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,
"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,
protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _fetchDocument(worker,source,pdfDataRangeTransport,
docId){if(worker.destroyed)return Promise.reject(Error("Worker was destroyed"));pdfDataRangeTransport&&(source.length=pdfDataRangeTransport.length,source.initialData=pdfDataRangeTransport.initialData,source.progressiveDone=pdfDataRangeTransport.progressiveDone);return worker.messageHandler.sendWithPromise("GetDocRequest",{docId:docId,apiVersion:"2.4.283",source:{data:source.data,url:source.url,password:source.password,disableAutoFetch:source.disableAutoFetch,rangeChunkSize:source.rangeChunkSize,length:source.length},
maxImageSize:source.maxImageSize,disableFontFace:source.disableFontFace,disableCreateObjectURL:source.disableCreateObjectURL,postMessageTransfers:worker.postMessageTransfers,docBaseUrl:source.docBaseUrl,nativeImageDecoderSupport:source.nativeImageDecoderSupport,ignoreErrors:source.ignoreErrors,isEvalSupported:source.isEvalSupported,disableFlattenedAnnotations:source.disableFlattenedAnnotations,renderFormFields:source.renderFormFields}).then(function(workerId){if(worker.destroyed)throw Error("Worker was destroyed");
return workerId})}Object.defineProperty(exports,"__esModule",{value:!0});exports.getDocument=function(src){var task=new PDFDocumentLoadingTask;if("string"===typeof src)src={url:src};else if((0,_util.isArrayBuffer)(src))src={data:src};else if(src instanceof PDFDataRangeTransport)src={range:src};else{if("object"!==_typeof(src))throw Error("Invalid parameter in getDocument, need either Uint8Array, string or a parameter object");if(!src.url&&!src.data&&!src.range)throw Error("Invalid parameter object: need either .data, .range or .url");
}var params=Object.create(null),rangeTransport=null,worker=null;for(key in src)if("url"===key&&"undefined"!==typeof window)params[key]=(new URL(src[key],window.location)).href;else if("range"===key)rangeTransport=src[key];else if("worker"===key)worker=src[key];else if("data"!==key||src[key]instanceof Uint8Array)params[key]=src[key];else{var pdfBytes=src[key];if("string"===typeof pdfBytes)params[key]=(0,_util.stringToBytes)(pdfBytes);else if("object"!==_typeof(pdfBytes)||null===pdfBytes||isNaN(pdfBytes.length))if((0,_util.isArrayBuffer)(pdfBytes))params[key]=
new Uint8Array(pdfBytes);else throw Error("Invalid PDF binary data: either typed array, string or array-like object is expected in the data property.");else params[key]=new Uint8Array(pdfBytes)}params.rangeChunkSize=params.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE;params.CMapReaderFactory=params.CMapReaderFactory||_display_utils.DOMCMapReaderFactory;params.ignoreErrors=!0!==params.stopAtErrors;params.pdfBug=!0===params.pdfBug;var key=Object.values(_util.NativeImageDecoding);void 0!==params.nativeImageDecoderSupport&&
key.includes(params.nativeImageDecoderSupport)||(params.nativeImageDecoderSupport=_api_compatibility.apiCompatibilityParams.nativeImageDecoderSupport||_util.NativeImageDecoding.DECODE);Number.isInteger(params.maxImageSize)||(params.maxImageSize=-1);"boolean"!==typeof params.isEvalSupported&&(params.isEvalSupported=!0);"boolean"!==typeof params.disableFontFace&&(params.disableFontFace=_api_compatibility.apiCompatibilityParams.disableFontFace||!1);"boolean"!==typeof params.disableRange&&(params.disableRange=
!1);"boolean"!==typeof params.disableStream&&(params.disableStream=!1);"boolean"!==typeof params.disableAutoFetch&&(params.disableAutoFetch=!1);"boolean"!==typeof params.disableCreateObjectURL&&(params.disableCreateObjectURL=_api_compatibility.apiCompatibilityParams.disableCreateObjectURL||!1);(0,_util.setVerbosityLevel)(params.verbosity);worker||(key={verbosity:params.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort},worker=key.port?PDFWorker.fromPort(key):new PDFWorker(key),task._worker=
worker);var docId=task.docId;worker.promise.then(function(){if(task.destroyed)throw Error("Loading aborted");return _fetchDocument(worker,params,rangeTransport,docId).then(function(workerId){if(task.destroyed)throw Error("Loading aborted");var networkStream;rangeTransport?networkStream=new _transport_stream.PDFDataTransportStream({length:params.length,initialData:params.initialData,progressiveDone:params.progressiveDone,disableRange:params.disableRange,disableStream:params.disableStream},rangeTransport):
params.data||(networkStream=createPDFNetworkStream({url:params.url,length:params.length,httpHeaders:params.httpHeaders,withCredentials:params.withCredentials,rangeChunkSize:params.rangeChunkSize,disableRange:params.disableRange,disableStream:params.disableStream}));workerId=new _message_handler.MessageHandler(docId,workerId,worker.port);workerId.postMessageTransfers=worker.postMessageTransfers;networkStream=new WorkerTransport(workerId,task,networkStream,params);task._transport=networkStream;workerId.send("Ready",
null)})})["catch"](task._capability.reject);return task};exports.setPDFNetworkStreamFactory=function(pdfNetworkStreamFactory){createPDFNetworkStream=pdfNetworkStreamFactory};exports.build=exports.version=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFWorker=exports.PDFDataRangeTransport=exports.LoopbackPort=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(188),_font_loader=
__w_pdfjs_require__(189),_api_compatibility=__w_pdfjs_require__(190),_canvas=__w_pdfjs_require__(191),_worker_options=__w_pdfjs_require__(193),_is_node=__w_pdfjs_require__(48),_message_handler=__w_pdfjs_require__(194),_metadata=__w_pdfjs_require__(195),_transport_stream=__w_pdfjs_require__(197),_webgl=__w_pdfjs_require__(198),DEFAULT_RANGE_CHUNK_SIZE=65536,createPDFNetworkStream,PDFDocumentLoadingTask=function(){var nextDocumentId=0;return function(){function PDFDocumentLoadingTask(){_classCallCheck(this,
PDFDocumentLoadingTask);this._capability=(0,_util.createPromiseCapability)();this._worker=this._transport=null;this.docId="d"+nextDocumentId++;this.destroyed=!1;this.onUnsupportedFeature=this.onProgress=this.onPassword=null}_createClass(PDFDocumentLoadingTask,[{key:"destroy",value:function(){var _this=this;this.destroyed=!0;return(this._transport?this._transport.destroy():Promise.resolve()).then(function(){_this._transport=null;_this._worker&&(_this._worker.destroy(),_this._worker=null)})}},{key:"then",
value:function(onFulfilled,onRejected){throw Error("Removed API method: PDFDocumentLoadingTask.then, use the `promise` getter instead.");}},{key:"promise",get:function(){return this._capability.promise}}]);return PDFDocumentLoadingTask}()}(),PDFDataRangeTransport=function(){function PDFDataRangeTransport(length,initialData){var progressiveDone=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;_classCallCheck(this,PDFDataRangeTransport);this.length=length;this.initialData=initialData;this.progressiveDone=
progressiveDone;this._rangeListeners=[];this._progressListeners=[];this._progressiveReadListeners=[];this._progressiveDoneListeners=[];this._readyCapability=(0,_util.createPromiseCapability)()}_createClass(PDFDataRangeTransport,[{key:"addRangeListener",value:function(listener){this._rangeListeners.push(listener)}},{key:"addProgressListener",value:function(listener){this._progressListeners.push(listener)}},{key:"addProgressiveReadListener",value:function(listener){this._progressiveReadListeners.push(listener)}},
{key:"addProgressiveDoneListener",value:function(listener){this._progressiveDoneListeners.push(listener)}},{key:"onDataRange",value:function(begin,chunk){var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=this._rangeListeners[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var listener=_step.value;listener(begin,chunk)}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&
null!=_iterator["return"])_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError;}}}},{key:"onDataProgress",value:function(loaded,total){var _this2=this;this._readyCapability.promise.then(function(){var _iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _iterator2=_this2._progressListeners[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0){var listener=_step2.value;listener(loaded,
total)}}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&null!=_iterator2["return"])_iterator2["return"]()}finally{if(_didIteratorError2)throw _iteratorError2;}}})}},{key:"onDataProgressiveRead",value:function(chunk){var _this3=this;this._readyCapability.promise.then(function(){var _iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0;try{for(var _iterator3=_this3._progressiveReadListeners[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=
(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var listener=_step3.value;listener(chunk)}}catch(err){_didIteratorError3=!0,_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&null!=_iterator3["return"])_iterator3["return"]()}finally{if(_didIteratorError3)throw _iteratorError3;}}})}},{key:"onDataProgressiveDone",value:function(){var _this4=this;this._readyCapability.promise.then(function(){var _iteratorNormalCompletion4=!0,_didIteratorError4=!1,_iteratorError4=void 0;try{for(var _iterator4=
_this4._progressiveDoneListeners[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=!0){var listener=_step4.value;listener()}}catch(err){_didIteratorError4=!0,_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&null!=_iterator4["return"])_iterator4["return"]()}finally{if(_didIteratorError4)throw _iteratorError4;}}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(begin,
end){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]);return PDFDataRangeTransport}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function PDFDocumentProxy(pdfInfo,transport){_classCallCheck(this,PDFDocumentProxy);this._pdfInfo=pdfInfo;this._transport=transport}_createClass(PDFDocumentProxy,[{key:"getPage",value:function(pageNumber){return this._transport.getPage(pageNumber)}},{key:"getPageIndex",
value:function(ref){return this._transport.getPageIndex(ref)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(id){return this._transport.getDestination(id)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},
{key:"getOpenActionDestination",value:function(){return this._transport.getOpenActionDestination()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getData",
value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"getStats",value:function(){return this._transport.getStats()}},{key:"cleanup",value:function(){this._transport.startCleanup()}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprint",get:function(){return this._pdfInfo.fingerprint}},{key:"loadingParams",
get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}}]);return PDFDocumentProxy}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function PDFPageProxy(pageIndex,pageInfo,transport){var pdfBug=3<arguments.length&&void 0!==arguments[3]?arguments[3]:!1;_classCallCheck(this,PDFPageProxy);this.pageIndex=pageIndex;this._pageInfo=pageInfo;this._transport=transport;this._stats=pdfBug?new _display_utils.StatTimer:
null;this._pdfBug=pdfBug;this.commonObjs=transport.commonObjs;this.objs=new PDFObjects;this.pendingCleanup=this.cleanupAfterRender=!1;this.intentStates=Object.create(null);this.destroyed=!1}_createClass(PDFPageProxy,[{key:"getViewport",value:function(){var _ref=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},scale=_ref.scale,_ref$rotation=_ref.rotation;_ref$rotation=void 0===_ref$rotation?this.rotate:_ref$rotation;var _ref$offsetX=_ref.offsetX,_ref$offsetY=_ref.offsetY;_ref=_ref.dontFlip;
if(1<arguments.length||"number"===typeof arguments[0])throw Error("PDFPageProxy.getViewport is called with obsolete arguments.");return new _display_utils.PageViewport({viewBox:this.view,scale:scale,rotation:_ref$rotation,offsetX:void 0===_ref$offsetX?0:_ref$offsetX,offsetY:void 0===_ref$offsetY?0:_ref$offsetY,dontFlip:void 0===_ref?!1:_ref})}},{key:"getAnnotations",value:function(){var _ref2$intent=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).intent;_ref2$intent=void 0===_ref2$intent?
null:_ref2$intent;this.annotationsPromise&&this.annotationsIntent===_ref2$intent||(this.annotationsPromise=this._transport.getAnnotations(this.pageIndex,_ref2$intent),this.annotationsIntent=_ref2$intent);return this.annotationsPromise}},{key:"render",value:function(_ref3){var _this5=this,canvasContext=_ref3.canvasContext,viewport=_ref3.viewport,_ref3$intent=_ref3.intent;_ref3$intent=void 0===_ref3$intent?"display":_ref3$intent;var _ref3$enableWebGL=_ref3.enableWebGL;_ref3$enableWebGL=void 0===_ref3$enableWebGL?
!1:_ref3$enableWebGL;var _ref3$renderInteracti=_ref3.renderInteractiveForms;_ref3$renderInteracti=void 0===_ref3$renderInteracti?!1:_ref3$renderInteracti;var _ref3$transform=_ref3.transform;_ref3$transform=void 0===_ref3$transform?null:_ref3$transform;var _ref3$imageLayer=_ref3.imageLayer;_ref3$imageLayer=void 0===_ref3$imageLayer?null:_ref3$imageLayer;var _ref3$canvasFactory=_ref3.canvasFactory;_ref3$canvasFactory=void 0===_ref3$canvasFactory?null:_ref3$canvasFactory;_ref3=_ref3.background;_ref3=
void 0===_ref3?null:_ref3;this._stats&&this._stats.time("Overall");var renderingIntent="print"===_ref3$intent?"print":"display";this.pendingCleanup=!1;this.intentStates[renderingIntent]||(this.intentStates[renderingIntent]=Object.create(null));var intentState=this.intentStates[renderingIntent];intentState.streamReaderCancelTimeout&&(clearTimeout(intentState.streamReaderCancelTimeout),intentState.streamReaderCancelTimeout=null);_ref3$intent=_ref3$canvasFactory||new _display_utils.DOMCanvasFactory;
_ref3$enableWebGL=new _webgl.WebGLContext({enable:_ref3$enableWebGL});intentState.displayReadyCapability||(intentState.displayReadyCapability=(0,_util.createPromiseCapability)(),intentState.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList({pageIndex:this.pageNumber-1,intent:renderingIntent,renderInteractiveForms:!0===_ref3$renderInteracti}));var complete=function(error){var i=intentState.renderTasks.indexOf(internalRenderTask);
0<=i&&intentState.renderTasks.splice(i,1);if(_this5.cleanupAfterRender||"print"===renderingIntent)_this5.pendingCleanup=!0;_this5._tryCleanup();error?(internalRenderTask.capability.reject(error),_this5._abortOperatorList({intentState:intentState,reason:error})):internalRenderTask.capability.resolve();_this5._stats&&(_this5._stats.timeEnd("Rendering"),_this5._stats.timeEnd("Overall"))},internalRenderTask=new InternalRenderTask({callback:complete,params:{canvasContext:canvasContext,viewport:viewport,
transform:_ref3$transform,imageLayer:_ref3$imageLayer,background:_ref3},objs:this.objs,commonObjs:this.commonObjs,operatorList:intentState.operatorList,pageNumber:this.pageNumber,canvasFactory:_ref3$intent,webGLContext:_ref3$enableWebGL,useRequestAnimationFrame:"print"!==renderingIntent,pdfBug:this._pdfBug});intentState.renderTasks||(intentState.renderTasks=[]);intentState.renderTasks.push(internalRenderTask);canvasContext=internalRenderTask.task;intentState.displayReadyCapability.promise.then(function(transparency){_this5.pendingCleanup?
complete():(_this5._stats&&_this5._stats.time("Rendering"),internalRenderTask.initializeGraphics(transparency),internalRenderTask.operatorListChanged())})["catch"](complete);return canvasContext}},{key:"getOperatorList",value:function(){function operatorListChanged(){if(intentState.operatorList.lastChunk){intentState.opListReadCapability.resolve(intentState.operatorList);var i=intentState.renderTasks.indexOf(opListTask);0<=i&&intentState.renderTasks.splice(i,1)}}this.intentStates.oplist||(this.intentStates.oplist=
Object.create(null));var intentState=this.intentStates.oplist;if(!intentState.opListReadCapability){var opListTask={};opListTask.operatorListChanged=operatorListChanged;intentState.opListReadCapability=(0,_util.createPromiseCapability)();intentState.renderTasks=[];intentState.renderTasks.push(opListTask);intentState.operatorList={fnArray:[],argsArray:[],lastChunk:!1};this._stats&&this._stats.time("Page Request");this._pumpOperatorList({pageIndex:this.pageIndex,intent:"oplist"})}return intentState.opListReadCapability.promise}},
{key:"streamTextContent",value:function(){var _ref4=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},_ref4$normalizeWhites=_ref4.normalizeWhitespace;_ref4=_ref4.disableCombineTextItems;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this.pageNumber-1,normalizeWhitespace:!0===(void 0===_ref4$normalizeWhites?!1:_ref4$normalizeWhites),combineTextItems:!0!==(void 0===_ref4?!1:_ref4)},{highWaterMark:100,size:function(textContent){return textContent.items.length}})}},
{key:"getTextContent",value:function(){var readableStream=this.streamTextContent(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{});return new Promise(function(resolve,reject){function pump(){reader.read().then(function(_ref5){var value=_ref5.value;if(_ref5.done)resolve(textContent);else{Object.assign(textContent.styles,value.styles);var JSCompiler_temp_const=(_ref5=textContent.items).push,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.apply;value=value.items;if(Array.isArray(value)){var JSCompiler_temp=
0;for(var arr2=Array(value.length);JSCompiler_temp<value.length;JSCompiler_temp++)arr2[JSCompiler_temp]=value[JSCompiler_temp];JSCompiler_temp=arr2}else JSCompiler_temp=void 0;JSCompiler_temp||(JSCompiler_temp=Symbol.iterator in Object(value)||"[object Arguments]"===Object.prototype.toString.call(value)?Array.from(value):void 0);if(!(value=JSCompiler_temp))throw new TypeError("Invalid attempt to spread non-iterable instance");JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,_ref5,value);
pump()}},reject)}var reader=readableStream.getReader(),textContent={items:[],styles:Object.create(null)};pump()})}},{key:"_destroy",value:function(){var _this6=this;this.destroyed=!0;this._transport.pageCache[this.pageIndex]=null;var waitOn=[];Object.keys(this.intentStates).forEach(function(intent){var intentState=_this6.intentStates[intent];_this6._abortOperatorList({intentState:intentState,reason:Error("Page was destroyed."),force:!0});"oplist"!==intent&&intentState.renderTasks.forEach(function(renderTask){var renderCompleted=
renderTask.capability.promise["catch"](function(){});waitOn.push(renderCompleted);renderTask.cancel()})});this.objs.clear();this.annotationsPromise=null;this.pendingCleanup=!1;return Promise.all(waitOn)}},{key:"cleanup",value:function(){var resetStats=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!1;this.pendingCleanup=!0;this._tryCleanup(resetStats)}},{key:"_tryCleanup",value:function(){var _this7=this,resetStats=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!1;this.pendingCleanup&&
!Object.keys(this.intentStates).some(function(intent){intent=_this7.intentStates[intent];return 0!==intent.renderTasks.length||!intent.operatorList.lastChunk})&&(Object.keys(this.intentStates).forEach(function(intent){delete _this7.intentStates[intent]}),this.objs.clear(),this.annotationsPromise=null,resetStats&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1)}},{key:"_startRenderPage",value:function(transparency,intent){if(intent=this.intentStates[intent])this._stats&&
this._stats.timeEnd("Page Request"),intent.displayReadyCapability&&intent.displayReadyCapability.resolve(transparency)}},{key:"_renderPageChunk",value:function(operatorListChunk,intentState){for(var i=0,ii=operatorListChunk.length;i<ii;i++)intentState.operatorList.fnArray.push(operatorListChunk.fnArray[i]),intentState.operatorList.argsArray.push(operatorListChunk.argsArray[i]);intentState.operatorList.lastChunk=operatorListChunk.lastChunk;for(i=0;i<intentState.renderTasks.length;i++)intentState.renderTasks[i].operatorListChanged();
operatorListChunk.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(args){var _this8=this;(0,_util.assert)(args.intent,'PDFPageProxy._pumpOperatorList: Expected "intent" argument.');var reader=this._transport.messageHandler.sendWithStream("GetOperatorList",args).getReader(),intentState=this.intentStates[args.intent];intentState.streamReader=reader;(function pump(){reader.read().then(function(_ref6){var value=_ref6.value;_ref6.done?intentState.streamReader=null:_this8._transport.destroyed||
(_this8._renderPageChunk(value,intentState),pump())},function(reason){intentState.streamReader=null;if(!_this8._transport.destroyed){if(intentState.operatorList){intentState.operatorList.lastChunk=!0;for(var i=0;i<intentState.renderTasks.length;i++)intentState.renderTasks[i].operatorListChanged();_this8._tryCleanup()}if(intentState.displayReadyCapability)intentState.displayReadyCapability.reject(reason);else if(intentState.opListReadCapability)intentState.opListReadCapability.reject(reason);else throw reason;
}})})()}},{key:"_abortOperatorList",value:function(_ref7){var _this9=this,intentState=_ref7.intentState,reason=_ref7.reason;_ref7=_ref7.force;_ref7=void 0===_ref7?!1:_ref7;(0,_util.assert)(reason instanceof Error||"object"===_typeof(reason)&&null!==reason,'PDFPageProxy._abortOperatorList: Expected "reason" argument.');if(intentState.streamReader){if(!_ref7){if(0!==intentState.renderTasks.length)return;if(reason instanceof _display_utils.RenderingCancelledException){intentState.streamReaderCancelTimeout=
setTimeout(function(){_this9._abortOperatorList({intentState:intentState,reason:reason,force:!0});intentState.streamReaderCancelTimeout=null},100);return}}intentState.streamReader.cancel(new _util.AbortException(reason&&reason.message));intentState.streamReader=null;this._transport.destroyed||(Object.keys(this.intentStates).some(function(intent){return _this9.intentStates[intent]===intentState?(delete _this9.intentStates[intent],!0):!1}),this.cleanup())}}},{key:"pageNumber",get:function(){return this.pageIndex+
1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"stats",get:function(){return this._stats}}]);return PDFPageProxy}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function LoopbackPort(){var defer=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!0;_classCallCheck(this,LoopbackPort);
this._listeners=[];this._defer=defer;this._deferred=Promise.resolve(void 0)}_createClass(LoopbackPort,[{key:"postMessage",value:function(obj,transfers){function cloneValue(value){if("object"!==_typeof(value)||null===value)return value;if(cloned.has(value))return cloned.get(value);var buffer;if((buffer=value.buffer)&&(0,_util.isArrayBuffer)(buffer)){var transferable=transfers&&transfers.includes(buffer);buffer=value===buffer?value:transferable?new value.constructor(buffer,value.byteOffset,value.byteLength):
new value.constructor(value);cloned.set(value,buffer);return buffer}buffer=Array.isArray(value)?[]:{};cloned.set(value,buffer);for(transferable in value){for(var desc,p=value;!(desc=Object.getOwnPropertyDescriptor(p,transferable));)p=Object.getPrototypeOf(p);if("undefined"!==typeof desc.value)if("function"===typeof desc.value){if(value.hasOwnProperty&&value.hasOwnProperty(transferable))throw Error("LoopbackPort.postMessage - cannot clone: ".concat(value[transferable]));}else buffer[transferable]=
cloneValue(desc.value)}return buffer}var _this10=this;if(this._defer){var cloned=new WeakMap,e={data:cloneValue(obj)};this._deferred.then(function(){_this10._listeners.forEach(function(listener){listener.call(_this10,e)})})}else this._listeners.forEach(function(listener){listener.call(_this10,{data:obj})})}},{key:"addEventListener",value:function(name,listener){this._listeners.push(listener)}},{key:"removeEventListener",value:function(name,listener){name=this._listeners.indexOf(listener);this._listeners.splice(name,
1)}},{key:"terminate",value:function(){this._listeners.length=0}}]);return LoopbackPort}();exports.LoopbackPort=LoopbackPort;var PDFWorker=function(){function _getWorkerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if("undefined"!==typeof fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),fallbackWorkerSrc;throw Error('No "GlobalWorkerOptions.workerSrc" specified.');
}function getMainThreadWorkerMessageHandler(){try{var mainWorkerMessageHandler=globalThis.pdfjsWorker&&globalThis.pdfjsWorker.WorkerMessageHandler}catch(ex){}return mainWorkerMessageHandler||null}function setupFakeWorkerGlobal(){if(fakeWorkerCapability)return fakeWorkerCapability.promise;fakeWorkerCapability=(0,_util.createPromiseCapability)();(function(){var _ref8=_asyncToGenerator(_regenerator["default"].mark(function _callee(){var mainWorkerMessageHandler,worker;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=
_context.next){case 0:mainWorkerMessageHandler=getMainThreadWorkerMessageHandler();if(!mainWorkerMessageHandler){_context.next=3;break}return _context.abrupt("return",mainWorkerMessageHandler);case 3:if(!_is_node.isNodeJS){_context.next=6;break}worker=eval("require")(_getWorkerSrc());return _context.abrupt("return",worker.WorkerMessageHandler);case 6:return _context.next=8,(0,_display_utils.loadScript)(_getWorkerSrc());case 8:return _context.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);
case 9:case "end":return _context.stop()}},_callee)}));return function(){return _ref8.apply(this,arguments)}})()().then(fakeWorkerCapability.resolve,fakeWorkerCapability.reject);return fakeWorkerCapability.promise}var pdfWorkerPorts=new WeakMap,isWorkerDisabled=!1,nextFakeWorkerId=0,fakeWorkerCapability;if(_is_node.isNodeJS){isWorkerDisabled=!0;var fallbackWorkerSrc="./pdf.worker.js"}else if("object"===("undefined"===typeof document?"undefined":_typeof(document))&&"currentScript"in document){var pdfjsFilePath=
document.currentScript&&document.currentScript.src;pdfjsFilePath&&(fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}return function(){function PDFWorker(){var _ref9=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},_ref9$name=_ref9.name;_ref9$name=void 0===_ref9$name?null:_ref9$name;var _ref9$port=_ref9.port;_ref9$port=void 0===_ref9$port?null:_ref9$port;_ref9=_ref9.verbosity;_ref9=void 0===_ref9?(0,_util.getVerbosityLevel)():_ref9;_classCallCheck(this,PDFWorker);
if(_ref9$port&&pdfWorkerPorts.has(_ref9$port))throw Error("Cannot use more than one PDFWorker per port");this.name=_ref9$name;this.destroyed=!1;this.postMessageTransfers=!0;this.verbosity=_ref9;this._readyCapability=(0,_util.createPromiseCapability)();this._messageHandler=this._webWorker=this._port=null;_ref9$port?(pdfWorkerPorts.set(_ref9$port,this),this._initializeFromPort(_ref9$port)):this._initialize()}_createClass(PDFWorker,[{key:"_initializeFromPort",value:function(port){this._port=port;this._messageHandler=
new _message_handler.MessageHandler("main","worker",port);this._messageHandler.on("ready",function(){});this._readyCapability.resolve()}},{key:"_initialize",value:function(){var _this11=this;if("undefined"!==typeof Worker&&!isWorkerDisabled&&!getMainThreadWorkerMessageHandler()){var workerSrc=_getWorkerSrc();try{(0,_util.isSameOrigin)(window.location.href,workerSrc)||(workerSrc=URL.createObjectURL(new Blob(["importScripts('"+(new URL(workerSrc,window.location)).href+"');"])));var worker=new Worker(workerSrc),
messageHandler=new _message_handler.MessageHandler("main","worker",worker),terminateEarly=function(){worker.removeEventListener("error",onWorkerError);messageHandler.destroy();worker.terminate();_this11.destroyed?_this11._readyCapability.reject(Error("Worker was destroyed")):_this11._setupFakeWorker()},onWorkerError=function(){_this11._webWorker||terminateEarly()};worker.addEventListener("error",onWorkerError);messageHandler.on("test",function(data){worker.removeEventListener("error",onWorkerError);
_this11.destroyed?terminateEarly():data?(_this11._messageHandler=messageHandler,_this11._port=worker,_this11._webWorker=worker,data.supportTransfers||(_this11.postMessageTransfers=!1),_this11._readyCapability.resolve(),messageHandler.send("configure",{verbosity:_this11.verbosity})):(_this11._setupFakeWorker(),messageHandler.destroy(),worker.terminate())});messageHandler.on("ready",function(data){worker.removeEventListener("error",onWorkerError);if(_this11.destroyed)terminateEarly();else try{sendTest()}catch(e){_this11._setupFakeWorker()}});
var sendTest=function(){var testObj=new Uint8Array([_this11.postMessageTransfers?255:0]);try{messageHandler.send("test",testObj,[testObj.buffer])}catch(ex){(0,_util.warn)("Cannot use postMessage transfers."),testObj[0]=0,messageHandler.send("test",testObj)}};sendTest();return}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var _this12=this;isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),isWorkerDisabled=!0);
setupFakeWorkerGlobal().then(function(WorkerMessageHandler){if(_this12.destroyed)_this12._readyCapability.reject(Error("Worker was destroyed"));else{var port=new LoopbackPort;_this12._port=port;var id="fake"+nextFakeWorkerId++,workerHandler=new _message_handler.MessageHandler(id+"_worker",id,port);WorkerMessageHandler.setup(workerHandler,port);WorkerMessageHandler=new _message_handler.MessageHandler(id,id+"_worker",port);_this12._messageHandler=WorkerMessageHandler;_this12._readyCapability.resolve()}})["catch"](function(reason){_this12._readyCapability.reject(Error('Setting up fake worker failed: "'.concat(reason.message,
'".')))})}},{key:"destroy",value:function(){this.destroyed=!0;this._webWorker&&(this._webWorker.terminate(),this._webWorker=null);pdfWorkerPorts["delete"](this._port);this._port=null;this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}},{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}}],[{key:"fromPort",value:function(params){if(!params||
!params.port)throw Error("PDFWorker.fromPort - invalid method signature.");return pdfWorkerPorts.has(params.port)?pdfWorkerPorts.get(params.port):new PDFWorker(params)}},{key:"getWorkerSrc",value:function(){return _getWorkerSrc()}}]);return PDFWorker}()}();exports.PDFWorker=PDFWorker;var WorkerTransport=function(){function WorkerTransport(messageHandler,loadingTask,networkStream,params){_classCallCheck(this,WorkerTransport);this.messageHandler=messageHandler;this.loadingTask=loadingTask;this.commonObjs=
new PDFObjects;this.fontLoader=new _font_loader.FontLoader({docId:loadingTask.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this)});this._params=params;this.CMapReaderFactory=new params.CMapReaderFactory({baseUrl:params.cMapUrl,isCompressed:params.cMapPacked});this.destroyed=!1;this._passwordCapability=this.destroyCapability=null;this._networkStream=networkStream;this._lastProgress=this._fullReader=null;this.pageCache=[];this.pagePromises=[];this.downloadInfoCapability=(0,_util.createPromiseCapability)();
this.setupMessageHandler()}_createClass(WorkerTransport,[{key:"destroy",value:function(){var _this13=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0;this.destroyCapability=(0,_util.createPromiseCapability)();this._passwordCapability&&this._passwordCapability.reject(Error("Worker was destroyed during onPassword callback"));var waitOn=[];this.pageCache.forEach(function(page){page&&waitOn.push(page._destroy())});this.pageCache.length=0;this.pagePromises.length=
0;var terminated=this.messageHandler.sendWithPromise("Terminate",null);waitOn.push(terminated);Promise.all(waitOn).then(function(){_this13.fontLoader.clear();_this13._networkStream&&_this13._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated."));_this13.messageHandler&&(_this13.messageHandler.destroy(),_this13.messageHandler=null);_this13.destroyCapability.resolve()},this.destroyCapability.reject);return this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var _this14=
this,messageHandler=this.messageHandler,loadingTask=this.loadingTask;messageHandler.on("GetReader",function(data,sink){(0,_util.assert)(_this14._networkStream);_this14._fullReader=_this14._networkStream.getFullReader();_this14._fullReader.onProgress=function(evt){_this14._lastProgress={loaded:evt.loaded,total:evt.total}};sink.onPull=function(){_this14._fullReader.read().then(function(_ref10){var value=_ref10.value;_ref10.done?sink.close():((0,_util.assert)((0,_util.isArrayBuffer)(value)),sink.enqueue(new Uint8Array(value),
1,[value]))})["catch"](function(reason){sink.error(reason)})};sink.onCancel=function(reason){_this14._fullReader.cancel(reason)}});messageHandler.on("ReaderHeadersReady",function(data){var headersCapability=(0,_util.createPromiseCapability)(),fullReader=_this14._fullReader;fullReader.headersReady.then(function(){if(!fullReader.isStreamingSupported||!fullReader.isRangeSupported){if(_this14._lastProgress&&loadingTask.onProgress)loadingTask.onProgress(_this14._lastProgress);fullReader.onProgress=function(evt){if(loadingTask.onProgress)loadingTask.onProgress({loaded:evt.loaded,
total:evt.total})}}headersCapability.resolve({isStreamingSupported:fullReader.isStreamingSupported,isRangeSupported:fullReader.isRangeSupported,contentLength:fullReader.contentLength})},headersCapability.reject);return headersCapability.promise});messageHandler.on("GetRangeReader",function(data,sink){(0,_util.assert)(_this14._networkStream);var rangeReader=_this14._networkStream.getRangeReader(data.begin,data.end);rangeReader?(sink.onPull=function(){rangeReader.read().then(function(_ref11){var value=
_ref11.value;_ref11.done?sink.close():((0,_util.assert)((0,_util.isArrayBuffer)(value)),sink.enqueue(new Uint8Array(value),1,[value]))})["catch"](function(reason){sink.error(reason)})},sink.onCancel=function(reason){rangeReader.cancel(reason)}):sink.close()});messageHandler.on("GetDoc",function(_ref12){_ref12=_ref12.pdfInfo;_this14._numPages=_ref12.numPages;loadingTask._capability.resolve(new PDFDocumentProxy(_ref12,_this14))});messageHandler.on("DocException",function(ex){switch(ex.name){case "PasswordException":var reason=
new _util.PasswordException(ex.message,ex.code);break;case "InvalidPDFException":reason=new _util.InvalidPDFException(ex.message);break;case "MissingPDFException":reason=new _util.MissingPDFException(ex.message);break;case "UnexpectedResponseException":reason=new _util.UnexpectedResponseException(ex.message,ex.status);break;case "UnknownErrorException":reason=new _util.UnknownErrorException(ex.message,ex.details)}loadingTask._capability.reject(reason)});messageHandler.on("PasswordRequest",function(exception){_this14._passwordCapability=
(0,_util.createPromiseCapability)();if(loadingTask.onPassword){var updatePassword=function(password){_this14._passwordCapability.resolve({password:password})};try{loadingTask.onPassword(updatePassword,exception.code)}catch(ex){_this14._passwordCapability.reject(ex)}}else _this14._passwordCapability.reject(new _util.PasswordException(exception.message,exception.code));return _this14._passwordCapability.promise});messageHandler.on("DataLoaded",function(data){if(loadingTask.onProgress)loadingTask.onProgress({loaded:data.length,
total:data.length});_this14.downloadInfoCapability.resolve(data)});messageHandler.on("StartRenderPage",function(data){_this14.destroyed||_this14.pageCache[data.pageIndex]._startRenderPage(data.transparency,data.intent)});messageHandler.on("commonobj",function(data){if(!_this14.destroyed){data=_slicedToArray(data,3);var id=data[0],type=data[1];data=data[2];if(!_this14.commonObjs.has(id))switch(type){case "Font":type=_this14._params;if("error"in data){data=data.error;(0,_util.warn)("Error during font loading: ".concat(data));
_this14.commonObjs.resolve(id,data);break}var fontRegistry=null;type.pdfBug&&globalThis.FontInspector&&globalThis.FontInspector.enabled&&(fontRegistry={registerFont:function(font,url){globalThis.FontInspector.fontAdded(font,url)}});var font$jscomp$0=new _font_loader.FontFaceObject(data,{isEvalSupported:type.isEvalSupported,disableFontFace:type.disableFontFace,ignoreErrors:type.ignoreErrors,onUnsupportedFeature:_this14._onUnsupportedFeature.bind(_this14),fontRegistry:fontRegistry});_this14.fontLoader.bind(font$jscomp$0).then(function(){_this14.commonObjs.resolve(id,
font$jscomp$0)},function(reason){messageHandler.sendWithPromise("FontFallback",{id:id})["finally"](function(){_this14.commonObjs.resolve(id,font$jscomp$0)})});break;case "FontPath":case "FontType3Res":_this14.commonObjs.resolve(id,data);break;default:throw Error("Got unknown common object type ".concat(type));}}});messageHandler.on("obj",function(data){if(!_this14.destroyed){data=_slicedToArray(data,4);var id=data[0],type=data[2],imageData=data[3],pageProxy=_this14.pageCache[data[1]];if(!pageProxy.objs.has(id))switch(type){case "JpegStream":return(new Promise(function(resolve,
reject){var img=new Image;img.onload=function(){resolve(img)};img.onerror=function(){reject(Error("Error during JPEG image loading"));(0,_display_utils.releaseImageResources)(img)};img.src=imageData})).then(function(img){pageProxy.objs.resolve(id,img)});case "Image":pageProxy.objs.resolve(id,imageData);imageData&&"data"in imageData&&8E6<imageData.data.length&&(pageProxy.cleanupAfterRender=!0);break;default:throw Error("Got unknown object type ".concat(type));}}});messageHandler.on("DocProgress",function(data){if(!_this14.destroyed&&
loadingTask.onProgress)loadingTask.onProgress({loaded:data.loaded,total:data.total})});messageHandler.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this));messageHandler.on("JpegDecode",function(data){if(_this14.destroyed)return Promise.reject(Error("Worker was destroyed"));if("undefined"===typeof document)return Promise.reject(Error('"document" is not defined.'));data=_slicedToArray(data,2);var imageUrl=data[0],components=data[1];return 3!==components&&1!==components?Promise.reject(Error("Only 3 components or 1 component can be returned")):
new Promise(function(resolve,reject){var img=new Image;img.onload=function(){var width=img.width,height=img.height,size=width*height,rgbaLength=4*size;size=new Uint8ClampedArray(size*components);var tmpCanvas=document.createElement("canvas");tmpCanvas.width=width;tmpCanvas.height=height;var tmpCtx=tmpCanvas.getContext("2d");tmpCtx.drawImage(img,0,0);tmpCtx=tmpCtx.getImageData(0,0,width,height).data;if(3===components)for(var i=0,j=0;i<rgbaLength;i+=4,j+=3)size[j]=tmpCtx[i],size[j+1]=tmpCtx[i+1],size[j+
2]=tmpCtx[i+2];else if(1===components)for(j=i=0;i<rgbaLength;i+=4,j++)size[j]=tmpCtx[i];resolve({data:size,width:width,height:height});(0,_display_utils.releaseImageResources)(img);tmpCanvas.width=0;tmpCanvas.height=0};img.onerror=function(){reject(Error("JpegDecode failed to load image"));(0,_display_utils.releaseImageResources)(img)};img.src=imageUrl})});messageHandler.on("FetchBuiltInCMap",function(data,sink){if(_this14.destroyed)sink.error(Error("Worker was destroyed"));else{var fetched=!1;sink.onPull=
function(){fetched?sink.close():(fetched=!0,_this14.CMapReaderFactory.fetch(data).then(function(builtInCMap){sink.enqueue(builtInCMap,1,[builtInCMap.cMapData.buffer])})["catch"](function(reason){sink.error(reason)}))}}})}},{key:"_onUnsupportedFeature",value:function(_ref13){_ref13=_ref13.featureId;if(!this.destroyed&&this.loadingTask.onUnsupportedFeature)this.loadingTask.onUnsupportedFeature(_ref13)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",
value:function(pageNumber){var _this15=this;if(!Number.isInteger(pageNumber)||0>=pageNumber||pageNumber>this._numPages)return Promise.reject(Error("Invalid page request"));var pageIndex=pageNumber-1;if(pageIndex in this.pagePromises)return this.pagePromises[pageIndex];pageNumber=this.messageHandler.sendWithPromise("GetPage",{pageIndex:pageIndex}).then(function(pageInfo){if(_this15.destroyed)throw Error("Transport destroyed");pageInfo=new PDFPageProxy(pageIndex,pageInfo,_this15,_this15._params.pdfBug);
return _this15.pageCache[pageIndex]=pageInfo});return this.pagePromises[pageIndex]=pageNumber}},{key:"getPageIndex",value:function(ref){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:ref})["catch"](function(reason){return Promise.reject(Error(reason))})}},{key:"getAnnotations",value:function(pageIndex,intent){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:pageIndex,intent:intent})}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",
null)}},{key:"getDestination",value:function(id){return"string"!==typeof id?Promise.reject(Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:id})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},
{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}},{key:"getOpenActionDestination",value:function(){return this.messageHandler.sendWithPromise("GetOpenActionDestination",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",
null)}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var _this16=this;return this.messageHandler.sendWithPromise("GetMetadata",null).then(function(results){return{info:results[0],metadata:results[1]?new _metadata.Metadata(results[1]):null,contentDispositionFilename:_this16._fullReader?_this16._fullReader.filename:null}})}},{key:"getStats",value:function(){return this.messageHandler.sendWithPromise("GetStats",
null)}},{key:"startCleanup",value:function(){var _this17=this;this.messageHandler.sendWithPromise("Cleanup",null).then(function(){for(var i=0,ii=_this17.pageCache.length;i<ii;i++){var page=_this17.pageCache[i];page&&page.cleanup()}_this17.commonObjs.clear();_this17.fontLoader.clear()})}},{key:"loadingParams",get:function(){var params=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:params.disableAutoFetch,disableCreateObjectURL:params.disableCreateObjectURL,disableFontFace:params.disableFontFace,
nativeImageDecoderSupport:params.nativeImageDecoderSupport})}}]);return WorkerTransport}(),PDFObjects=function(){function PDFObjects(){_classCallCheck(this,PDFObjects);this._objs=Object.create(null)}_createClass(PDFObjects,[{key:"_ensureObj",value:function(objId){return this._objs[objId]?this._objs[objId]:this._objs[objId]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(objId){var callback=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;
if(callback)return this._ensureObj(objId).capability.promise.then(callback),null;callback=this._objs[objId];if(!callback||!callback.resolved)throw Error("Requesting object that isn't resolved yet ".concat(objId,"."));return callback.data}},{key:"has",value:function(objId){return(objId=this._objs[objId])?objId.resolved:!1}},{key:"resolve",value:function(objId,data){objId=this._ensureObj(objId);objId.resolved=!0;objId.data=data;objId.capability.resolve(data)}},{key:"clear",value:function(){for(var objId in this._objs){var data=
this._objs[objId].data;"undefined"!==typeof Image&&data instanceof Image&&(0,_display_utils.releaseImageResources)(data)}this._objs=Object.create(null)}}]);return PDFObjects}(),RenderTask=function(){function RenderTask(internalRenderTask){_classCallCheck(this,RenderTask);this._internalRenderTask=internalRenderTask;this.onContinue=null}_createClass(RenderTask,[{key:"cancel",value:function(){this._internalRenderTask.cancel()}},{key:"then",value:function(onFulfilled,onRejected){throw Error("Removed API method: RenderTask.then, use the `promise` getter instead.");
}},{key:"promise",get:function(){return this._internalRenderTask.capability.promise}}]);return RenderTask}(),InternalRenderTask=function(){var canvasInRendering=new WeakSet;return function(){function InternalRenderTask(_ref14){var callback=_ref14.callback,params=_ref14.params,objs=_ref14.objs,commonObjs=_ref14.commonObjs,operatorList=_ref14.operatorList,pageNumber=_ref14.pageNumber,canvasFactory=_ref14.canvasFactory,webGLContext=_ref14.webGLContext,_ref14$useRequestAnim=_ref14.useRequestAnimationFrame;
_ref14$useRequestAnim=void 0===_ref14$useRequestAnim?!1:_ref14$useRequestAnim;_ref14=_ref14.pdfBug;_ref14=void 0===_ref14?!1:_ref14;_classCallCheck(this,InternalRenderTask);this.callback=callback;this.params=params;this.objs=objs;this.commonObjs=commonObjs;this.operatorListIdx=null;this.operatorList=operatorList;this.pageNumber=pageNumber;this.canvasFactory=canvasFactory;this.webGLContext=webGLContext;this._pdfBug=_ref14;this.running=!1;this.graphicsReadyCallback=null;this.graphicsReady=!1;this._useRequestAnimationFrame=
!0===_ref14$useRequestAnim&&"undefined"!==typeof window;this.cancelled=!1;this.capability=(0,_util.createPromiseCapability)();this.task=new RenderTask(this);this._continueBound=this._continue.bind(this);this._scheduleNextBound=this._scheduleNext.bind(this);this._nextBound=this._next.bind(this);this._canvas=params.canvasContext.canvas}_createClass(InternalRenderTask,[{key:"initializeGraphics",value:function(){var transparency=0<arguments.length&&void 0!==arguments[0]?arguments[0]:!1;if(!this.cancelled){if(this._canvas){if(canvasInRendering.has(this._canvas))throw Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");
canvasInRendering.add(this._canvas)}this._pdfBug&&globalThis.StepperManager&&globalThis.StepperManager.enabled&&(this.stepper=globalThis.StepperManager.create(this.pageNumber-1),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var _this$params=this.params,viewport=_this$params.viewport,transform=_this$params.transform,background=_this$params.background;this.gfx=new _canvas.CanvasGraphics(_this$params.canvasContext,this.commonObjs,this.objs,this.canvasFactory,
this.webGLContext,_this$params.imageLayer);this.gfx.beginDrawing({transform:transform,viewport:viewport,transparency:transparency,background:background});this.operatorListIdx=0;this.graphicsReady=!0;this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var error=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;this.running=!1;this.cancelled=!0;this.gfx&&this.gfx.endDrawing();if(this._canvas)canvasInRendering["delete"](this._canvas);this.callback(error||
new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this.pageNumber),"canvas"))}},{key:"operatorListChanged",value:function(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}},{key:"_continue",value:function(){this.running=!0;if(!this.cancelled)if(this.task.onContinue)this.task.onContinue(this._scheduleNextBound);else this._scheduleNext()}},
{key:"_scheduleNext",value:function(){var _this18=this;if(this._useRequestAnimationFrame)window.requestAnimationFrame(function(){_this18._nextBound()["catch"](_this18.cancel.bind(_this18))});else Promise.resolve().then(this._nextBound)["catch"](this.cancel.bind(this))}},{key:"_next",value:function(){var _next2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(!this.cancelled){_context2.next=
2;break}return _context2.abrupt("return");case 2:if(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk)){this.gfx.endDrawing();if(this._canvas)canvasInRendering["delete"](this._canvas);this.callback()}case 4:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _next2.apply(this,arguments)}}()}]);return InternalRenderTask}()}();
exports.version="2.4.283";exports.build="6d90343d0"},function(module,exports,__w_pdfjs_require__){module.exports=__w_pdfjs_require__(186)},function(module$jscomp$0,exports$jscomp$0,__w_pdfjs_require__){(function(module){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}
module=function(exports){function wrap(innerFn,outerFn,self,tryLocsList){outerFn=Object.create((outerFn&&outerFn.prototype instanceof Generator?outerFn:Generator).prototype);tryLocsList=new Context(tryLocsList||[]);outerFn._invoke=makeInvokeMethod(innerFn,self,tryLocsList);return outerFn}function tryCatch(fn,obj,arg){try{return{type:"normal",arg:fn.call(obj,arg)}}catch(err){return{type:"throw",arg:err}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(prototype){["next",
"throw","return"].forEach(function(method){prototype[method]=function(arg){return this._invoke(method,arg)}})}function AsyncIterator(generator){function invoke(method,arg,resolve,reject){method=tryCatch(generator[method],generator,arg);if("throw"===method.type)reject(method.arg);else{var result=method.arg;return(method=result.value)&&"object"===_typeof(method)&&hasOwn.call(method,"__await")?Promise.resolve(method.__await).then(function(value){invoke("next",value,resolve,reject)},function(err){invoke("throw",
err,resolve,reject)}):Promise.resolve(method).then(function(unwrapped){result.value=unwrapped;resolve(result)},function(error){return invoke("throw",error,resolve,reject)})}}var previousPromise;this._invoke=function(method,arg){function callInvokeWithMethodAndArg(){return new Promise(function(resolve,reject){invoke(method,arg,resolve,reject)})}return previousPromise=previousPromise?previousPromise.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function makeInvokeMethod(innerFn,
self,context){var state=GenStateSuspendedStart;return function(method,arg){if(state===GenStateExecuting)throw Error("Generator is already running");if(state===GenStateCompleted){if("throw"===method)throw arg;return doneResult()}context.method=method;for(context.arg=arg;;){if(method=context.delegate)if(method=maybeInvokeDelegate(method,context)){if(method===ContinueSentinel)continue;return method}if("next"===context.method)context.sent=context._sent=context.arg;else if("throw"===context.method){if(state===
GenStateSuspendedStart)throw state=GenStateCompleted,context.arg;context.dispatchException(context.arg)}else"return"===context.method&&context.abrupt("return",context.arg);state=GenStateExecuting;method=tryCatch(innerFn,self,context);if("normal"===method.type){state=context.done?GenStateCompleted:GenStateSuspendedYield;if(method.arg===ContinueSentinel)continue;return{value:method.arg,done:context.done}}"throw"===method.type&&(state=GenStateCompleted,context.method="throw",context.arg=method.arg)}}}
function maybeInvokeDelegate(delegate,context){var method=delegate.iterator[context.method];if(undefined===method){context.delegate=null;if("throw"===context.method){if(delegate.iterator["return"]&&(context.method="return",context.arg=undefined,maybeInvokeDelegate(delegate,context),"throw"===context.method))return ContinueSentinel;context.method="throw";context.arg=new TypeError("The iterator does not provide a 'throw' method")}return ContinueSentinel}method=tryCatch(method,delegate.iterator,context.arg);
if("throw"===method.type)return context.method="throw",context.arg=method.arg,context.delegate=null,ContinueSentinel;method=method.arg;if(!method)return context.method="throw",context.arg=new TypeError("iterator result is not an object"),context.delegate=null,ContinueSentinel;if(method.done)context[delegate.resultName]=method.value,context.next=delegate.nextLoc,"return"!==context.method&&(context.method="next",context.arg=undefined);else return method;context.delegate=null;return ContinueSentinel}
function pushTryEntry(locs){var entry={tryLoc:locs[0]};1 in locs&&(entry.catchLoc=locs[1]);2 in locs&&(entry.finallyLoc=locs[2],entry.afterLoc=locs[3]);this.tryEntries.push(entry)}function resetTryEntry(entry){var record=entry.completion||{};record.type="normal";delete record.arg;entry.completion=record}function Context(tryLocsList){this.tryEntries=[{tryLoc:"root"}];tryLocsList.forEach(pushTryEntry,this);this.reset(!0)}function values(iterable){if(iterable){var iteratorMethod=iterable[iteratorSymbol];
if(iteratorMethod)return iteratorMethod.call(iterable);if("function"===typeof iterable.next)return iterable;if(!isNaN(iterable.length)){var i=-1;iteratorMethod=function next(){for(;++i<iterable.length;)if(hasOwn.call(iterable,i))return next.value=iterable[i],next.done=!1,next;next.value=undefined;next.done=!0;return next};return iteratorMethod.next=iteratorMethod}}return{next:doneResult}}function doneResult(){return{value:undefined,done:!0}}var Op=Object.prototype,hasOwn=Op.hasOwnProperty,undefined,
$Symbol="function"===typeof Symbol?Symbol:{},iteratorSymbol=$Symbol.iterator||"@@iterator",asyncIteratorSymbol=$Symbol.asyncIterator||"@@asyncIterator",toStringTagSymbol=$Symbol.toStringTag||"@@toStringTag";exports.wrap=wrap;var GenStateSuspendedStart="suspendedStart",GenStateSuspendedYield="suspendedYield",GenStateExecuting="executing",GenStateCompleted="completed",ContinueSentinel={};$Symbol={};$Symbol[iteratorSymbol]=function(){return this};var getProto=Object.getPrototypeOf;(getProto=getProto&&
getProto(getProto(values([]))))&&getProto!==Op&&hasOwn.call(getProto,iteratorSymbol)&&($Symbol=getProto);var Gp=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create($Symbol);GeneratorFunction.prototype=Gp.constructor=GeneratorFunctionPrototype;GeneratorFunctionPrototype.constructor=GeneratorFunction;GeneratorFunctionPrototype[toStringTagSymbol]=GeneratorFunction.displayName="GeneratorFunction";exports.isGeneratorFunction=function(genFun){return(genFun="function"===typeof genFun&&
genFun.constructor)?genFun===GeneratorFunction||"GeneratorFunction"===(genFun.displayName||genFun.name):!1};exports.mark=function(genFun){Object.setPrototypeOf?Object.setPrototypeOf(genFun,GeneratorFunctionPrototype):(genFun.__proto__=GeneratorFunctionPrototype,toStringTagSymbol in genFun||(genFun[toStringTagSymbol]="GeneratorFunction"));genFun.prototype=Object.create(Gp);return genFun};exports.awrap=function(arg){return{__await:arg}};defineIteratorMethods(AsyncIterator.prototype);AsyncIterator.prototype[asyncIteratorSymbol]=
function(){return this};exports.AsyncIterator=AsyncIterator;exports.async=function(innerFn,outerFn,self,tryLocsList){var iter=new AsyncIterator(wrap(innerFn,outerFn,self,tryLocsList));return exports.isGeneratorFunction(outerFn)?iter:iter.next().then(function(result){return result.done?result.value:iter.next()})};defineIteratorMethods(Gp);Gp[toStringTagSymbol]="Generator";Gp[iteratorSymbol]=function(){return this};Gp.toString=function(){return"[object Generator]"};exports.keys=function(object){var keys=
[],key$jscomp$0;for(key$jscomp$0 in object)keys.push(key$jscomp$0);keys.reverse();return function next(){for(;keys.length;){var key=keys.pop();if(key in object)return next.value=key,next.done=!1,next}next.done=!0;return next}};exports.values=values;Context.prototype={constructor:Context,reset:function(skipTempReset){this.next=this.prev=0;this.sent=this._sent=undefined;this.done=!1;this.delegate=null;this.method="next";this.arg=undefined;this.tryEntries.forEach(resetTryEntry);if(!skipTempReset)for(var name in this)"t"===
name.charAt(0)&&hasOwn.call(this,name)&&!isNaN(+name.slice(1))&&(this[name]=undefined)},stop:function(){this.done=!0;var rootRecord=this.tryEntries[0].completion;if("throw"===rootRecord.type)throw rootRecord.arg;return this.rval},dispatchException:function(exception){function handle(loc,caught){record.type="throw";record.arg=exception;context.next=loc;caught&&(context.method="next",context.arg=undefined);return!!caught}if(this.done)throw exception;for(var context=this,i=this.tryEntries.length-1;0<=
i;--i){var entry=this.tryEntries[i],record=entry.completion;if("root"===entry.tryLoc)return handle("end");if(entry.tryLoc<=this.prev){var hasCatch=hasOwn.call(entry,"catchLoc"),hasFinally=hasOwn.call(entry,"finallyLoc");if(hasCatch&&hasFinally){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0);if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else if(hasCatch){if(this.prev<entry.catchLoc)return handle(entry.catchLoc,!0)}else if(hasFinally){if(this.prev<entry.finallyLoc)return handle(entry.finallyLoc)}else throw Error("try statement without catch or finally");
}}},abrupt:function(type,arg){for(var i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i];if(entry.tryLoc<=this.prev&&hasOwn.call(entry,"finallyLoc")&&this.prev<entry.finallyLoc){var finallyEntry=entry;break}}finallyEntry&&("break"===type||"continue"===type)&&finallyEntry.tryLoc<=arg&&arg<=finallyEntry.finallyLoc&&(finallyEntry=null);i=finallyEntry?finallyEntry.completion:{};i.type=type;i.arg=arg;return finallyEntry?(this.method="next",this.next=finallyEntry.finallyLoc,ContinueSentinel):
this.complete(i)},complete:function(record,afterLoc){if("throw"===record.type)throw record.arg;"break"===record.type||"continue"===record.type?this.next=record.arg:"return"===record.type?(this.rval=this.arg=record.arg,this.method="return",this.next="end"):"normal"===record.type&&afterLoc&&(this.next=afterLoc);return ContinueSentinel},finish:function(finallyLoc){for(var i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i];if(entry.finallyLoc===finallyLoc)return this.complete(entry.completion,
entry.afterLoc),resetTryEntry(entry),ContinueSentinel}},"catch":function(tryLoc){for(var i=this.tryEntries.length-1;0<=i;--i){var entry=this.tryEntries[i];if(entry.tryLoc===tryLoc){tryLoc=entry.completion;if("throw"===tryLoc.type){var thrown=tryLoc.arg;resetTryEntry(entry)}return thrown}}throw Error("illegal catch attempt");},delegateYield:function(iterable,resultName,nextLoc){this.delegate={iterator:values(iterable),resultName:resultName,nextLoc:nextLoc};"next"===this.method&&(this.arg=undefined);
return ContinueSentinel}};return exports}("object"===_typeof(module)?module.exports:{});try{regeneratorRuntime=module}catch(accidentalStrictMode){Function("r","regeneratorRuntime = r")(module)}}).call(this,__w_pdfjs_require__(187)(module$jscomp$0))},function(module$jscomp$0,exports,__w_pdfjs_require__){module$jscomp$0.exports=function(module){module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,
get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1);return module}},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=
Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,
p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,
resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&
(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function isFetchSupported(){return"undefined"!==typeof fetch&&"undefined"!==typeof Response&&"body"in Response.prototype&&"undefined"!==typeof ReadableStream}function isValidFetchUrl(url,baseUrl){try{var protocol=(baseUrl?
new URL(url,baseUrl):new URL(url)).protocol;return"http:"===protocol||"https:"===protocol}catch(ex){return!1}}Object.defineProperty(exports,"__esModule",{value:!0});exports.addLinkAttributes=function(link){var _ref7=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},url=_ref7.url,target=_ref7.target,rel=_ref7.rel;_ref7=_ref7.enabled;_ref7=void 0===_ref7?!0:_ref7;(0,_util.assert)(url&&"string"===typeof url,'addLinkAttributes: A valid "url" parameter must provided.');url=(0,_util.removeNullCharacters)(url);
_ref7?link.href=link.title=url:(link.href="",link.title="Disabled: ".concat(url),link.onclick=function(){return!1});url="";switch(target){case LinkTarget.SELF:url="_self";break;case LinkTarget.BLANK:url="_blank";break;case LinkTarget.PARENT:url="_parent";break;case LinkTarget.TOP:url="_top"}link.target=url;link.rel="string"===typeof rel?rel:DEFAULT_LINK_REL};exports.getFilenameFromUrl=function(url){var anchor=url.indexOf("#"),query=url.indexOf("?");anchor=Math.min(0<anchor?anchor:url.length,0<query?
query:url.length);return url.substring(url.lastIndexOf("/",anchor)+1,anchor)};exports.isFetchSupported=isFetchSupported;exports.isValidFetchUrl=isValidFetchUrl;exports.loadScript=function(src){return new Promise(function(resolve,reject){var script=document.createElement("script");script.src=src;script.onload=resolve;script.onerror=function(){reject(Error("Cannot load script at: ".concat(script.src)))};(document.head||document.documentElement).appendChild(script)})};exports.deprecated=function(details){console.log("Deprecated API usage: "+
details)};exports.releaseImageResources=function(img){(0,_util.assert)(img instanceof Image,"Invalid `img` parameter.");var url=img.src;"string"===typeof url&&url.startsWith("blob:")&&URL.revokeObjectURL&&URL.revokeObjectURL(url);img.removeAttribute("src")};exports.PDFDateString=exports.StatTimer=exports.DOMSVGFactory=exports.DOMCMapReaderFactory=exports.DOMCanvasFactory=exports.DEFAULT_LINK_REL=exports.LinkTarget=exports.RenderingCancelledException=exports.PageViewport=void 0;var _regenerator=function(obj){return obj&&
obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),DEFAULT_LINK_REL="noopener noreferrer nofollow";exports.DEFAULT_LINK_REL=DEFAULT_LINK_REL;module=function(){function DOMCanvasFactory(){_classCallCheck(this,DOMCanvasFactory)}_createClass(DOMCanvasFactory,[{key:"create",value:function(width,height){if(0>=width||0>=height)throw Error("Invalid canvas size");var canvas=document.createElement("canvas"),context=canvas.getContext("2d");canvas.width=width;canvas.height=
height;return{canvas:canvas,context:context}}},{key:"reset",value:function(canvasAndContext,width,height){if(!canvasAndContext.canvas)throw Error("Canvas is not specified");if(0>=width||0>=height)throw Error("Invalid canvas size");canvasAndContext.canvas.width=width;canvasAndContext.canvas.height=height}},{key:"destroy",value:function(canvasAndContext){if(!canvasAndContext.canvas)throw Error("Canvas is not specified");canvasAndContext.canvas.width=0;canvasAndContext.canvas.height=0;canvasAndContext.canvas=
null;canvasAndContext.context=null}}]);return DOMCanvasFactory}();exports.DOMCanvasFactory=module;module=function(){function DOMCMapReaderFactory(_ref){var _ref$baseUrl=_ref.baseUrl;_ref$baseUrl=void 0===_ref$baseUrl?null:_ref$baseUrl;_ref=_ref.isCompressed;_ref=void 0===_ref?!1:_ref;_classCallCheck(this,DOMCMapReaderFactory);this.baseUrl=_ref$baseUrl;this.isCompressed=_ref}_createClass(DOMCMapReaderFactory,[{key:"fetch",value:function(_fetch){function fetch(_x){return _fetch.apply(this,arguments)}
fetch.toString=function(){return _fetch.toString()};return fetch}(function(){var _ref3=_asyncToGenerator(_regenerator["default"].mark(function _callee2(_ref2){var _this=this,name,url,compressionType;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:name=_ref2.name;if(this.baseUrl){_context2.next=3;break}throw Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(name){_context2.next=
5;break}throw Error("CMap name must be specified.");case 5:url=this.baseUrl+name+(this.isCompressed?".bcmap":"");compressionType=this.isCompressed?_util.CMapCompressionType.BINARY:_util.CMapCompressionType.NONE;if(!isFetchSupported()||!isValidFetchUrl(url,document.baseURI)){_context2.next=9;break}return _context2.abrupt("return",fetch(url).then(function(){var _ref4=_asyncToGenerator(_regenerator["default"].mark(function _callee(response){var cMapData;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=
_context.next){case 0:if(response.ok){_context.next=2;break}throw Error(response.statusText);case 2:if(!_this.isCompressed){_context.next=10;break}_context.t0=Uint8Array;_context.next=6;return response.arrayBuffer();case 6:_context.t1=_context.sent;cMapData=new _context.t0(_context.t1);_context.next=15;break;case 10:return _context.t2=_util.stringToBytes,_context.next=13,response.text();case 13:_context.t3=_context.sent,cMapData=(0,_context.t2)(_context.t3);case 15:return _context.abrupt("return",
{cMapData:cMapData,compressionType:compressionType});case 16:case "end":return _context.stop()}},_callee)}));return function(_x3){return _ref4.apply(this,arguments)}}())["catch"](function(reason){throw Error("Unable to load ".concat(_this.isCompressed?"binary ":"")+"CMap at: ".concat(url));}));case 9:return _context2.abrupt("return",(new Promise(function(resolve,reject){var request=new XMLHttpRequest;request.open("GET",url,!0);_this.isCompressed&&(request.responseType="arraybuffer");request.onreadystatechange=
function(){if(request.readyState===XMLHttpRequest.DONE){if(200===request.status||0===request.status){var cMapData;_this.isCompressed&&request.response?cMapData=new Uint8Array(request.response):!_this.isCompressed&&request.responseText&&(cMapData=(0,_util.stringToBytes)(request.responseText));if(cMapData){resolve({cMapData:cMapData,compressionType:compressionType});return}}reject(Error(request.statusText))}};request.send(null)}))["catch"](function(reason){throw Error("Unable to load ".concat(_this.isCompressed?
"binary ":"")+"CMap at: ".concat(url));}));case 10:case "end":return _context2.stop()}},_callee2,this)}));return function(_x2){return _ref3.apply(this,arguments)}}())}]);return DOMCMapReaderFactory}();exports.DOMCMapReaderFactory=module;module=function(){function DOMSVGFactory(){_classCallCheck(this,DOMSVGFactory)}_createClass(DOMSVGFactory,[{key:"create",value:function(width,height){(0,_util.assert)(0<width&&0<height,"Invalid SVG dimensions");var svg=document.createElementNS("http://www.w3.org/2000/svg",
"svg:svg");svg.setAttribute("version","1.1");svg.setAttribute("width",width+"px");svg.setAttribute("height",height+"px");svg.setAttribute("preserveAspectRatio","none");svg.setAttribute("viewBox","0 0 "+width+" "+height);return svg}},{key:"createElement",value:function(type){(0,_util.assert)("string"===typeof type,"Invalid SVG element type");return document.createElementNS("http://www.w3.org/2000/svg",type)}}]);return DOMSVGFactory}();exports.DOMSVGFactory=module;module=function(){function PageViewport(_ref5){var viewBox=
_ref5.viewBox,scale=_ref5.scale,rotation=_ref5.rotation,_ref5$offsetX=_ref5.offsetX,offsetX=void 0===_ref5$offsetX?0:_ref5$offsetX;_ref5$offsetX=_ref5.offsetY;var offsetY=void 0===_ref5$offsetX?0:_ref5$offsetX;_ref5=_ref5.dontFlip;var dontFlip=void 0===_ref5?!1:_ref5;_classCallCheck(this,PageViewport);this.viewBox=viewBox;this.scale=scale;this.rotation=rotation;this.offsetX=offsetX;this.offsetY=offsetY;_ref5=(viewBox[2]+viewBox[0])/2;_ref5$offsetX=(viewBox[3]+viewBox[1])/2;var rotateB;rotation%=360;
switch(0>rotation?rotation+360:rotation){case 180:rotation=-1;var rotateC=rotateB=0;var rotateD=1;break;case 90:rotation=0;rotateC=rotateB=1;rotateD=0;break;case 270:rotation=0;rotateC=rotateB=-1;rotateD=0;break;default:rotation=1,rotateC=rotateB=0,rotateD=-1}dontFlip&&(rotateC=-rotateC,rotateD=-rotateD);0===rotation?(offsetX=Math.abs(_ref5$offsetX-viewBox[1])*scale+offsetX,offsetY=Math.abs(_ref5-viewBox[0])*scale+offsetY,dontFlip=Math.abs(viewBox[3]-viewBox[1])*scale,viewBox=Math.abs(viewBox[2]-
viewBox[0])*scale):(offsetX=Math.abs(_ref5-viewBox[0])*scale+offsetX,offsetY=Math.abs(_ref5$offsetX-viewBox[1])*scale+offsetY,dontFlip=Math.abs(viewBox[2]-viewBox[0])*scale,viewBox=Math.abs(viewBox[3]-viewBox[1])*scale);this.transform=[rotation*scale,rotateB*scale,rotateC*scale,rotateD*scale,offsetX-rotation*scale*_ref5-rotateC*scale*_ref5$offsetX,offsetY-rotateB*scale*_ref5-rotateD*scale*_ref5$offsetX];this.width=dontFlip;this.height=viewBox}_createClass(PageViewport,[{key:"clone",value:function(){var _ref6=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},_ref6$scale=_ref6.scale;_ref6$scale=void 0===_ref6$scale?this.scale:_ref6$scale;var _ref6$rotation=_ref6.rotation;_ref6$rotation=void 0===_ref6$rotation?this.rotation:_ref6$rotation;var _ref6$offsetX=_ref6.offsetX;_ref6$offsetX=void 0===_ref6$offsetX?this.offsetX:_ref6$offsetX;var _ref6$offsetY=_ref6.offsetY;_ref6$offsetY=void 0===_ref6$offsetY?this.offsetY:_ref6$offsetY;_ref6=_ref6.dontFlip;_ref6=void 0===_ref6?!1:_ref6;return new PageViewport({viewBox:this.viewBox.slice(),
scale:_ref6$scale,rotation:_ref6$rotation,offsetX:_ref6$offsetX,offsetY:_ref6$offsetY,dontFlip:_ref6})}},{key:"convertToViewportPoint",value:function(x,y){return _util.Util.applyTransform([x,y],this.transform)}},{key:"convertToViewportRectangle",value:function(rect){var topLeft=_util.Util.applyTransform([rect[0],rect[1]],this.transform);rect=_util.Util.applyTransform([rect[2],rect[3]],this.transform);return[topLeft[0],topLeft[1],rect[0],rect[1]]}},{key:"convertToPdfPoint",value:function(x,y){return _util.Util.applyInverseTransform([x,
y],this.transform)}}]);return PageViewport}();exports.PageViewport=module;module=function(_BaseException){function RenderingCancelledException(msg,type){_classCallCheck(this,RenderingCancelledException);msg=_getPrototypeOf(RenderingCancelledException).call(this,msg);if(!msg||"object"!==_typeof(msg)&&"function"!==typeof msg){if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");msg=this}msg.type=type;return msg}_inherits(RenderingCancelledException,
_BaseException);return RenderingCancelledException}(_util.BaseException);exports.RenderingCancelledException=module;var LinkTarget={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};exports.LinkTarget=LinkTarget;module=function(){function StatTimer(){_classCallCheck(this,StatTimer);this.started=Object.create(null);this.times=[]}_createClass(StatTimer,[{key:"time",value:function(name){name in this.started&&(0,_util.warn)("Timer is already running for ".concat(name));this.started[name]=Date.now()}},{key:"timeEnd",
value:function(name){name in this.started||(0,_util.warn)("Timer has not been started for ".concat(name));this.times.push({name:name,start:this.started[name],end:Date.now()});delete this.started[name]}},{key:"toString",value:function(){var outBuf=[],longest=0,_iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=this.times[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var name=_step.value.name;
name.length>longest&&(longest=name.length)}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&null!=_iterator["return"])_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError;}}_iteratorNormalCompletion=!0;_didIteratorError=!1;_iteratorError=void 0;try{for(var _iterator2=this.times[Symbol.iterator](),_step2;!(_iteratorNormalCompletion=(_step2=_iterator2.next()).done);_iteratorNormalCompletion=!0){var _time=_step2.value,duration=_time.end-
_time.start;outBuf.push("".concat(_time.name.padEnd(longest)," ").concat(duration,"ms\n"))}}catch(err$8){_didIteratorError=!0,_iteratorError=err$8}finally{try{if(!_iteratorNormalCompletion&&null!=_iterator2["return"])_iterator2["return"]()}finally{if(_didIteratorError)throw _iteratorError;}}return outBuf.join("")}}]);return StatTimer}();exports.StatTimer=module;var pdfDateStringRegex;module=function(){function PDFDateString(){_classCallCheck(this,PDFDateString)}_createClass(PDFDateString,null,[{key:"toDateObject",
value:function(input){if(!input||!(0,_util.isString)(input))return null;pdfDateStringRegex||(pdfDateStringRegex=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var matches=pdfDateStringRegex.exec(input);if(!matches)return null;input=parseInt(matches[1],10);var month=parseInt(matches[2],10);month=1<=month&&12>=month?month-1:0;var day=parseInt(matches[3],10);day=1<=day&&31>=day?day:1;var hour=parseInt(matches[4],10);hour=0<=hour&&23>=hour?hour:0;var minute=
parseInt(matches[5],10);minute=0<=minute&&59>=minute?minute:0;var second=parseInt(matches[6],10);second=0<=second&&59>=second?second:0;var universalTimeRelation=matches[7]||"Z",offsetHour=parseInt(matches[8],10);offsetHour=0<=offsetHour&&23>=offsetHour?offsetHour:0;matches=parseInt(matches[9],10)||0;matches=0<=matches&&59>=matches?matches:0;"-"===universalTimeRelation?(hour+=offsetHour,minute+=matches):"+"===universalTimeRelation&&(hour-=offsetHour,minute-=matches);return new Date(Date.UTC(input,
month,day,hour,minute,second))}}]);return PDFDateString}();exports.PDFDateString=module},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?
Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=
Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,
_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=
!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.FontLoader=exports.FontFaceObject=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1);module=
function(){function BaseFontLoader(_ref){var docId=_ref.docId;_ref=_ref.onUnsupportedFeature;_classCallCheck(this,BaseFontLoader);this.constructor===BaseFontLoader&&(0,_util.unreachable)("Cannot initialize BaseFontLoader.");this.docId=docId;this._onUnsupportedFeature=_ref;this.nativeFontFaces=[];this.styleElement=null}_createClass(BaseFontLoader,[{key:"addNativeFontFace",value:function(nativeFontFace){this.nativeFontFaces.push(nativeFontFace);document.fonts.add(nativeFontFace)}},{key:"insertRule",
value:function(rule){var styleElement=this.styleElement;styleElement||(styleElement=this.styleElement=document.createElement("style"),styleElement.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),document.documentElement.getElementsByTagName("head")[0].appendChild(styleElement));styleElement=styleElement.sheet;styleElement.insertRule(rule,styleElement.cssRules.length)}},{key:"clear",value:function(){this.nativeFontFaces.forEach(function(nativeFontFace){document.fonts["delete"](nativeFontFace)});this.nativeFontFaces.length=
0;this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var _bind=_asyncToGenerator(_regenerator["default"].mark(function _callee(font){var _this=this,nativeFontFace,rule;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!font.attached&&!font.missingFile){_context.next=2;break}return _context.abrupt("return",void 0);case 2:font.attached=!0;if(!this.isFontLoadingAPISupported){_context.next=19;
break}nativeFontFace=font.createNativeFontFace();if(!nativeFontFace){_context.next=18;break}this.addNativeFontFace(nativeFontFace);_context.prev=7;_context.next=10;return nativeFontFace.loaded;case 10:_context.next=18;break;case 12:throw _context.prev=12,_context.t0=_context["catch"](7),this._onUnsupportedFeature({featureId:_util.UNSUPPORTED_FEATURES.font}),(0,_util.warn)("Failed to load font '".concat(nativeFontFace.family,"': '").concat(_context.t0,"'.")),font.disableFontFace=!0,_context.t0;case 18:return _context.abrupt("return",
void 0);case 19:rule=font.createFontFaceRule();if(!rule){_context.next=25;break}this.insertRule(rule);if(!this.isSyncFontLoadingSupported){_context.next=24;break}return _context.abrupt("return",void 0);case 24:return _context.abrupt("return",new Promise(function(resolve){resolve=_this._queueLoadingCallback(resolve);_this._prepareFontLoadEvent([rule],[font],resolve)}));case 25:return _context.abrupt("return",void 0);case 26:case "end":return _context.stop()}},_callee,this,[[7,12]])}));return function(_x){return _bind.apply(this,
arguments)}}()},{key:"_queueLoadingCallback",value:function(callback){(0,_util.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"_prepareFontLoadEvent",value:function(rules,fontsToLoad,request){(0,_util.unreachable)("Abstract method `_prepareFontLoadEvent`.")}},{key:"isFontLoadingAPISupported",get:function(){(0,_util.unreachable)("Abstract method `isFontLoadingAPISupported`.")}},{key:"isSyncFontLoadingSupported",get:function(){(0,_util.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},
{key:"_loadTestFont",get:function(){(0,_util.unreachable)("Abstract method `_loadTestFont`.")}}]);return BaseFontLoader}();var FontLoader;exports.FontLoader=FontLoader;exports.FontLoader=FontLoader=function(_BaseFontLoader){function GenericFontLoader(docId){_classCallCheck(this,GenericFontLoader);docId=_getPrototypeOf(GenericFontLoader).call(this,docId);if(!docId||"object"!==_typeof(docId)&&"function"!==typeof docId){if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
docId=this}docId.loadingContext={requests:[],nextRequestId:0};docId.loadTestFontId=0;return docId}_inherits(GenericFontLoader,_BaseFontLoader);_createClass(GenericFontLoader,[{key:"_queueLoadingCallback",value:function(callback){var context=this.loadingContext,request={id:"pdfjs-font-loading-".concat(context.nextRequestId++),done:!1,complete:function(){(0,_util.assert)(!request.done,"completeRequest() cannot be called twice.");for(request.done=!0;0<context.requests.length&&context.requests[0].done;){var otherRequest=
context.requests.shift();setTimeout(otherRequest.callback,0)}},callback:callback};context.requests.push(request);return request}},{key:"_prepareFontLoadEvent",value:function(rules,fonts,request){function int32(data,offset){return data.charCodeAt(offset)<<24|data.charCodeAt(offset+1)<<16|data.charCodeAt(offset+2)<<8|data.charCodeAt(offset+3)&255}function spliceString(s,offset,remove,insert){var chunk1=s.substring(0,offset);s=s.substring(offset+remove);return chunk1+insert+s}function isFontReady(name,
callback){called++;30<called?((0,_util.warn)("Load test font never loaded."),callback()):(ctx.font="30px "+name,ctx.fillText(".",0,20),0<ctx.getImageData(0,0,1,1).data[3]?callback():setTimeout(isFontReady.bind(null,name,callback)))}var ii;rules=document.createElement("canvas");rules.width=1;rules.height=1;var ctx=rules.getContext("2d"),called=0;rules="lt".concat(Date.now()).concat(this.loadTestFontId++);var data$jscomp$0=this._loadTestFont;data$jscomp$0=spliceString(data$jscomp$0,976,rules.length,
rules);var checksum=int32(data$jscomp$0,16);var i=0;for(ii=rules.length-3;i<ii;i+=4)checksum=checksum-1482184792+int32(rules,i)|0;i<rules.length&&(checksum=checksum-1482184792+int32(rules+"XXX",i)|0);data$jscomp$0=spliceString(data$jscomp$0,16,4,(0,_util.string32)(checksum));i="url(data:font/opentype;base64,".concat(btoa(data$jscomp$0),");");i='@font-face {font-family:"'.concat(rules,'";src:').concat(i,"}");this.insertRule(i);data$jscomp$0=[];i=0;for(ii=fonts.length;i<ii;i++)data$jscomp$0.push(fonts[i].loadedName);
data$jscomp$0.push(rules);var div=document.createElement("div");div.setAttribute("style","visibility: hidden;width: 10px; height: 10px;position: absolute; top: 0px; left: 0px;");i=0;for(ii=data$jscomp$0.length;i<ii;++i)fonts=document.createElement("span"),fonts.textContent="Hi",fonts.style.fontFamily=data$jscomp$0[i],div.appendChild(fonts);document.body.appendChild(div);isFontReady(rules,function(){document.body.removeChild(div);request.complete()})}},{key:"isFontLoadingAPISupported",get:function(){var supported=
"undefined"!==typeof document&&!!document.fonts;if(supported&&"undefined"!==typeof navigator){var m=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);m&&63>m[1]&&(supported=!1)}return(0,_util.shadow)(this,"isFontLoadingAPISupported",supported)}},{key:"isSyncFontLoadingSupported",get:function(){var supported=!1;if("undefined"===typeof navigator)supported=!0;else{var m=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);m&&14<=m[1]&&(supported=!0)}return(0,_util.shadow)(this,"isSyncFontLoadingSupported",
supported)}},{key:"_loadTestFont",get:function(){return(0,_util.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}}]);
return GenericFontLoader}(module);var IsEvalSupportedCached={get value(){return(0,_util.shadow)(this,"value",(0,_util.isEvalSupported)())}};FontLoader=function(){function FontFaceObject(translatedData,_ref2){var _ref2$isEvalSupported=_ref2.isEvalSupported;_ref2$isEvalSupported=void 0===_ref2$isEvalSupported?!0:_ref2$isEvalSupported;var _ref2$disableFontFace=_ref2.disableFontFace;_ref2$disableFontFace=void 0===_ref2$disableFontFace?!1:_ref2$disableFontFace;var _ref2$ignoreErrors=_ref2.ignoreErrors;
_ref2$ignoreErrors=void 0===_ref2$ignoreErrors?!1:_ref2$ignoreErrors;var _ref2$onUnsupportedFe=_ref2.onUnsupportedFeature;_ref2$onUnsupportedFe=void 0===_ref2$onUnsupportedFe?null:_ref2$onUnsupportedFe;_ref2=_ref2.fontRegistry;_ref2=void 0===_ref2?null:_ref2;_classCallCheck(this,FontFaceObject);this.compiledGlyphs=Object.create(null);for(var i in translatedData)this[i]=translatedData[i];this.isEvalSupported=!1!==_ref2$isEvalSupported;this.disableFontFace=!0===_ref2$disableFontFace;this.ignoreErrors=
!0===_ref2$ignoreErrors;this._onUnsupportedFeature=_ref2$onUnsupportedFe;this.fontRegistry=_ref2}_createClass(FontFaceObject,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var nativeFontFace=new FontFace(this.loadedName,this.data,{});this.fontRegistry&&this.fontRegistry.registerFont(this);return nativeFontFace}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var data=(0,_util.bytesToString)(new Uint8Array(this.data));
data="url(data:".concat(this.mimetype,";base64,").concat(btoa(data),");");var rule='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(data,"}");this.fontRegistry&&this.fontRegistry.registerFont(this,data);return rule}},{key:"getPathGenerator",value:function(objs,character){if(void 0!==this.compiledGlyphs[character])return this.compiledGlyphs[character];try{var cmds=objs.get(this.loadedName+"_path_"+character)}catch(ex){if(!this.ignoreErrors)throw ex;this._onUnsupportedFeature&&this._onUnsupportedFeature({featureId:_util.UNSUPPORTED_FEATURES.font});
(0,_util.warn)('getPathGenerator - ignoring character: "'.concat(ex,'".'));return this.compiledGlyphs[character]=function(c,size){}}if(this.isEvalSupported&&IsEvalSupportedCached.value){for(var js="",i=0,ii=cmds.length;i<ii;i++){var current=cmds[i];objs=void 0!==current.args?current.args.join(","):"";js+="c."+current.cmd+"("+objs+");\n"}return this.compiledGlyphs[character]=new Function("c","size",js)}return this.compiledGlyphs[character]=function(c,size){for(var _i=0,_ii=cmds.length;_i<_ii;_i++)current=
cmds[_i],"scale"===current.cmd&&(current.args=[size,-size]),c[current.cmd].apply(c,current.args)}}}]);return FontFaceObject}();exports.FontFaceObject=FontLoader},function(module,exports,__w_pdfjs_require__){module=Object.create(null);__w_pdfjs_require__=__w_pdfjs_require__(48).isNodeJS;var userAgent="undefined"!==typeof navigator&&navigator.userAgent||"",isIE=/Trident/.test(userAgent);userAgent=/CriOS/.test(userAgent);if(isIE||userAgent)module.disableCreateObjectURL=!0;__w_pdfjs_require__&&(module.disableFontFace=
!0,module.nativeImageDecoderSupport="none");exports.apiCompatibilityParams=Object.freeze(module)},function(module,exports,__w_pdfjs_require__){function addContextCurrentTransform(ctx){ctx.mozCurrentTransform||(ctx._originalSave=ctx.save,ctx._originalRestore=ctx.restore,ctx._originalRotate=ctx.rotate,ctx._originalScale=ctx.scale,ctx._originalTranslate=ctx.translate,ctx._originalTransform=ctx.transform,ctx._originalSetTransform=ctx.setTransform,ctx._transformMatrix=ctx._transformMatrix||[1,0,0,1,0,
0],ctx._transformStack=[],Object.defineProperty(ctx,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(ctx,"mozCurrentTransformInverse",{get:function(){var m=this._transformMatrix,a=m[0],b=m[1],c=m[2],d=m[3],e=m[4];m=m[5];var ad_bc=a*d-b*c,bc_ad=b*c-a*d;return[d/ad_bc,b/bc_ad,c/bc_ad,a/ad_bc,(d*e-c*m)/bc_ad,(b*e-a*m)/ad_bc]}}),ctx.save=function(){var old=this._transformMatrix;this._transformStack.push(old);this._transformMatrix=old.slice(0,6);this._originalSave()},
ctx.restore=function(){var prev=this._transformStack.pop();prev&&(this._transformMatrix=prev,this._originalRestore())},ctx.translate=function(x,y){var m=this._transformMatrix;m[4]=m[0]*x+m[2]*y+m[4];m[5]=m[1]*x+m[3]*y+m[5];this._originalTranslate(x,y)},ctx.scale=function(x,y){var m=this._transformMatrix;m[0]*=x;m[1]*=x;m[2]*=y;m[3]*=y;this._originalScale(x,y)},ctx.transform=function(a,b,c,d,e,f){var m=this._transformMatrix;this._transformMatrix=[m[0]*a+m[2]*b,m[1]*a+m[3]*b,m[0]*c+m[2]*d,m[1]*c+m[3]*
d,m[0]*e+m[2]*f+m[4],m[1]*e+m[3]*f+m[5]];ctx._originalTransform(a,b,c,d,e,f)},ctx.setTransform=function(a,b,c,d,e,f){this._transformMatrix=[a,b,c,d,e,f];ctx._originalSetTransform(a,b,c,d,e,f)},ctx.rotate=function(angle){var cosValue=Math.cos(angle),sinValue=Math.sin(angle),m=this._transformMatrix;this._transformMatrix=[m[0]*cosValue+m[2]*sinValue,m[1]*cosValue+m[3]*sinValue,m[0]*-sinValue+m[2]*cosValue,m[1]*-sinValue+m[3]*cosValue,m[4],m[5]];this._originalRotate(angle)})}function compileType3Glyph(imgData){var width=
imgData.width,height=imgData.height,j$jscomp$0,width1=width+1,points=new Uint8Array(width1*(height+1)),POINT_TYPES=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),lineSize=width+7&-8,data0=imgData.data,data=new Uint8Array(lineSize*height),pos=0;imgData=0;for(j$jscomp$0=data0.length;imgData<j$jscomp$0;imgData++){var j0=128;for(var elem=data0[imgData];0<j0;)data[pos++]=elem&j0?0:255,j0>>=1}pos=data0=0;0!==data[pos]&&(points[0]=1,++data0);for(j$jscomp$0=1;j$jscomp$0<width;j$jscomp$0++)data[pos]!==
data[pos+1]&&(points[j$jscomp$0]=data[pos]?2:1,++data0),pos++;0!==data[pos]&&(points[j$jscomp$0]=2,++data0);for(imgData=1;imgData<height;imgData++){pos=imgData*lineSize;j0=imgData*width1;data[pos-lineSize]!==data[pos]&&(points[j0]=data[pos]?1:8,++data0);elem=(data[pos]?4:0)+(data[pos-lineSize]?8:0);for(j$jscomp$0=1;j$jscomp$0<width;j$jscomp$0++)elem=(elem>>2)+(data[pos+1]?4:0)+(data[pos-lineSize+1]?8:0),POINT_TYPES[elem]&&(points[j0+j$jscomp$0]=POINT_TYPES[elem],++data0),pos++;data[pos-lineSize]!==
data[pos]&&(points[j0+j$jscomp$0]=data[pos]?2:4,++data0);if(1E3<data0)return null}pos=lineSize*(height-1);j0=imgData*width1;0!==data[pos]&&(points[j0]=8,++data0);for(j$jscomp$0=1;j$jscomp$0<width;j$jscomp$0++)data[pos]!==data[pos+1]&&(points[j0+j$jscomp$0]=data[pos]?4:8,++data0),pos++;0!==data[pos]&&(points[j0+j$jscomp$0]=4,++data0);if(1E3<data0)return null;POINT_TYPES=new Int32Array([0,width1,-1,0,-width1,0,0,0,1]);var outlines=[];for(imgData=0;data0&&imgData<=height;imgData++){lineSize=imgData*
width1;for(data=lineSize+width;lineSize<data&&!points[lineSize];)lineSize++;if(lineSize!==data){data=[lineSize%width1,imgData];pos=points[lineSize];j$jscomp$0=lineSize;do{j0=POINT_TYPES[pos];do lineSize+=j0;while(!points[lineSize]);j0=points[lineSize];5!==j0&&10!==j0?(pos=j0,points[lineSize]=0):(pos=j0&51*pos>>4,points[lineSize]&=pos>>2|pos<<2);data.push(lineSize%width1);data.push(lineSize/width1|0);points[lineSize]||--data0}while(j$jscomp$0!==lineSize);outlines.push(data);--imgData}}return function(c){c.save();
c.scale(1/width,-1/height);c.translate(0,-height);c.beginPath();for(var i=0,ii=outlines.length;i<ii;i++){var o=outlines[i];c.moveTo(o[0],o[1]);for(var j=2,jj=o.length;j<jj;j+=2)c.lineTo(o[j],o[j+1])}c.fill();c.beginPath();c.restore()}}Object.defineProperty(exports,"__esModule",{value:!0});exports.CanvasGraphics=void 0;var _util=__w_pdfjs_require__(1),_pattern_helper=__w_pdfjs_require__(192),IsLittleEndianCached={get value(){return(0,_util.shadow)(IsLittleEndianCached,"value",(0,_util.isLittleEndian)())}},
CachedCanvases=function(){function CachedCanvases(canvasFactory){this.canvasFactory=canvasFactory;this.cache=Object.create(null)}CachedCanvases.prototype={getCanvas:function(id,width,height,trackTransform){if(void 0!==this.cache[id]){var canvasEntry=this.cache[id];this.canvasFactory.reset(canvasEntry,width,height);canvasEntry.context.setTransform(1,0,0,1,0,0)}else canvasEntry=this.canvasFactory.create(width,height),this.cache[id]=canvasEntry;trackTransform&&addContextCurrentTransform(canvasEntry.context);
return canvasEntry},clear:function(){for(var id in this.cache)this.canvasFactory.destroy(this.cache[id]),delete this.cache[id]}};return CachedCanvases}(),CanvasExtraState=function(){function CanvasExtraState(){this.alphaIsShape=!1;this.fontSize=0;this.fontSizeScale=1;this.textMatrix=_util.IDENTITY_MATRIX;this.textMatrixScale=1;this.fontMatrix=_util.FONT_IDENTITY_MATRIX;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=this.leading=0;this.textHScale=1;this.textRenderingMode=_util.TextRenderingMode.FILL;
this.textRise=0;this.strokeColor=this.fillColor="#000000";this.patternFill=!1;this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.resumeSMaskCtx=this.activeSMask=null}CanvasExtraState.prototype={clone:function(){return Object.create(this)},setCurrentPoint:function(x,y){this.x=x;this.y=y}};return CanvasExtraState}();module=function(){function CanvasGraphics(canvasCtx,commonObjs,objs,canvasFactory,webGLContext,imageLayer){this.ctx=canvasCtx;this.current=new CanvasExtraState;this.stateStack=[];this.pendingClip=
null;this.pendingEOFill=!1;this.xobjs=this.res=null;this.commonObjs=commonObjs;this.objs=objs;this.canvasFactory=canvasFactory;this.webGLContext=webGLContext;this.imageLayer=imageLayer;this.groupStack=[];this.baseTransform=this.processingType3=null;this.baseTransformStack=[];this.groupLevel=0;this.smaskStack=[];this.smaskCounter=0;this.tempSMask=null;this.cachedCanvases=new CachedCanvases(this.canvasFactory);canvasCtx&&addContextCurrentTransform(canvasCtx);this._cachedGetSinglePixelWidth=null}function putBinaryImageData(ctx,
imgData){if("undefined"!==typeof ImageData&&imgData instanceof ImageData)ctx.putImageData(imgData,0,0);else{var height=imgData.height,width=imgData.width,partialChunkHeight=height%16;height=(height-partialChunkHeight)/16;var totalChunks=0===partialChunkHeight?height:height+1,chunkImgData=ctx.createImageData(width,16),srcPos=0,src=imgData.data,dest=chunkImgData.data,i,j;if(imgData.kind===_util.ImageKind.GRAYSCALE_1BPP){var srcLength=src.byteLength;dest=new Uint32Array(dest.buffer,0,dest.byteLength>>
2);var dest32DataLength=dest.length,fullSrcDiff=width+7>>3,black=IsLittleEndianCached.value?4278190080:255;for(i=0;i<totalChunks;i++){var thisChunkHeight=i<height?16:partialChunkHeight;for(j=imgData=0;j<thisChunkHeight;j++){var srcDiff=srcLength-srcPos,k=0;srcDiff=srcDiff>fullSrcDiff?width:8*srcDiff-7;for(var kEndUnrolled=srcDiff&-8,mask=0,srcByte=0;k<kEndUnrolled;k+=8)srcByte=src[srcPos++],dest[imgData++]=srcByte&128?4294967295:black,dest[imgData++]=srcByte&64?4294967295:black,dest[imgData++]=srcByte&
32?4294967295:black,dest[imgData++]=srcByte&16?4294967295:black,dest[imgData++]=srcByte&8?4294967295:black,dest[imgData++]=srcByte&4?4294967295:black,dest[imgData++]=srcByte&2?4294967295:black,dest[imgData++]=srcByte&1?4294967295:black;for(;k<srcDiff;k++)0===mask&&(srcByte=src[srcPos++],mask=128),dest[imgData++]=srcByte&mask?4294967295:black,mask>>=1}for(;imgData<dest32DataLength;)dest[imgData++]=0;ctx.putImageData(chunkImgData,0,16*i)}}else if(imgData.kind===_util.ImageKind.RGBA_32BPP){j=0;thisChunkHeight=
64*width;for(i=0;i<height;i++)dest.set(src.subarray(srcPos,srcPos+thisChunkHeight)),srcPos+=thisChunkHeight,ctx.putImageData(chunkImgData,0,j),j+=16;i<totalChunks&&(dest.set(src.subarray(srcPos,srcPos+width*partialChunkHeight*4)),ctx.putImageData(chunkImgData,0,j))}else if(imgData.kind===_util.ImageKind.RGB_24BPP)for(thisChunkHeight=16*width,i=0;i<totalChunks;i++){i>=height&&(thisChunkHeight=partialChunkHeight,thisChunkHeight*=width);imgData=0;for(j=thisChunkHeight;j--;)dest[imgData++]=src[srcPos++],
dest[imgData++]=src[srcPos++],dest[imgData++]=src[srcPos++],dest[imgData++]=255;ctx.putImageData(chunkImgData,0,16*i)}else throw Error("bad image kind: ".concat(imgData.kind));}}function putBinaryImageMask(ctx,imgData){var height=imgData.height,width=imgData.width,partialChunkHeight=height%16;height=(height-partialChunkHeight)/16;var totalChunks=0===partialChunkHeight?height:height+1,chunkImgData=ctx.createImageData(width,16),srcPos=0;imgData=imgData.data;for(var dest=chunkImgData.data,i=0;i<totalChunks;i++){for(var thisChunkHeight=
i<height?16:partialChunkHeight,destPos=3,j=0;j<thisChunkHeight;j++)for(var mask=0,k=0;k<width;k++){if(!mask){var elem=imgData[srcPos++];mask=128}dest[destPos]=elem&mask?0:255;destPos+=4;mask>>=1}ctx.putImageData(chunkImgData,0,16*i)}}function copyCtxState(sourceCtx,destCtx){for(var properties="strokeStyle fillStyle fillRule globalAlpha lineWidth lineCap lineJoin miterLimit globalCompositeOperation font".split(" "),i=0,ii=properties.length;i<ii;i++){var property=properties[i];void 0!==sourceCtx[property]&&
(destCtx[property]=sourceCtx[property])}void 0!==sourceCtx.setLineDash&&(destCtx.setLineDash(sourceCtx.getLineDash()),destCtx.lineDashOffset=sourceCtx.lineDashOffset)}function resetCtxToDefault(ctx){ctx.strokeStyle="#000000";ctx.fillStyle="#000000";ctx.fillRule="nonzero";ctx.globalAlpha=1;ctx.lineWidth=1;ctx.lineCap="butt";ctx.lineJoin="miter";ctx.miterLimit=10;ctx.globalCompositeOperation="source-over";ctx.font="10px sans-serif";void 0!==ctx.setLineDash&&(ctx.setLineDash([]),ctx.lineDashOffset=0)}
function composeSMaskAlpha(maskData,layerData,transferMap){for(var length=maskData.length,scale=1/255,i=3;i<length;i+=4)layerData[i]=layerData[i]*(transferMap?transferMap[maskData[i]]:maskData[i])*scale|0}function composeSMaskLuminosity(maskData,layerData,transferMap){for(var length=maskData.length,i=3;i<length;i+=4){var y=77*maskData[i-3]+152*maskData[i-2]+28*maskData[i-1];layerData[i]=transferMap?layerData[i]*transferMap[y>>8]>>8:layerData[i]*y>>16}}function composeSMask(ctx,smask,layerCtx,webGLContext){var mask=
smask.canvas,maskCtx=smask.context;ctx.setTransform(smask.scaleX,0,0,smask.scaleY,smask.offsetX,smask.offsetY);var backdrop=smask.backdrop||null;if(!smask.transferMap&&webGLContext.isEnabled)layerCtx=webGLContext.composeSMask({layer:layerCtx.canvas,mask:mask,properties:{subtype:smask.subtype,backdrop:backdrop}}),ctx.setTransform(1,0,0,1,0,0),ctx.drawImage(layerCtx,smask.offsetX,smask.offsetY);else{webGLContext=mask.width;var height=mask.height,transferMap=smask.transferMap,hasBackdrop=!!backdrop,
r0=hasBackdrop?backdrop[0]:0,g0=hasBackdrop?backdrop[1]:0;backdrop=hasBackdrop?backdrop[2]:0;smask="Luminosity"===smask.subtype?composeSMaskLuminosity:composeSMaskAlpha;for(var chunkSize=Math.min(height,Math.ceil(1048576/webGLContext)),row=0;row<height;row+=chunkSize){var chunkHeight=Math.min(chunkSize,height-row),maskData=maskCtx.getImageData(0,row,webGLContext,chunkHeight);chunkHeight=layerCtx.getImageData(0,row,webGLContext,chunkHeight);if(hasBackdrop)for(var bytes=maskData.data,r0$jscomp$0=r0,
g0$jscomp$0=g0,b0=backdrop,length=bytes.length,i=3;i<length;i+=4){var alpha=bytes[i];if(0===alpha)bytes[i-3]=r0$jscomp$0,bytes[i-2]=g0$jscomp$0,bytes[i-1]=b0;else if(255>alpha){var alpha_=255-alpha;bytes[i-3]=bytes[i-3]*alpha+r0$jscomp$0*alpha_>>8;bytes[i-2]=bytes[i-2]*alpha+g0$jscomp$0*alpha_>>8;bytes[i-1]=bytes[i-1]*alpha+b0*alpha_>>8}}smask(maskData.data,chunkHeight.data,transferMap);maskCtx.putImageData(chunkHeight,0,row)}ctx.drawImage(mask,0,0)}}var LINE_CAP_STYLES=["butt","round","square"],
LINE_JOIN_STYLES=["miter","round","bevel"],NORMAL_CLIP={},EO_CLIP={};CanvasGraphics.prototype={beginDrawing:function(_ref){var transform=_ref.transform,viewport=_ref.viewport,_ref$transparency=_ref.transparency;_ref$transparency=void 0===_ref$transparency?!1:_ref$transparency;_ref=_ref.background;_ref=void 0===_ref?null:_ref;var width=this.ctx.canvas.width,height=this.ctx.canvas.height;this.ctx.save();this.ctx.fillStyle=_ref||"rgb(255, 255, 255)";this.ctx.fillRect(0,0,width,height);this.ctx.restore();
_ref$transparency&&(_ref$transparency=this.cachedCanvases.getCanvas("transparent",width,height,!0),this.compositeCtx=this.ctx,this.transparentCanvas=_ref$transparency.canvas,this.ctx=_ref$transparency.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform));this.ctx.save();resetCtxToDefault(this.ctx);transform&&this.ctx.transform.apply(this.ctx,transform);this.ctx.transform.apply(this.ctx,viewport.transform);this.baseTransform=this.ctx.mozCurrentTransform.slice();
this.imageLayer&&this.imageLayer.beginLayout()},executeOperatorList:function(operatorList,executionStartIdx,continueCallback,stepper){var argsArray=operatorList.argsArray;operatorList=operatorList.fnArray;executionStartIdx=executionStartIdx||0;var argsArrayLen=argsArray.length;if(argsArrayLen===executionStartIdx)return executionStartIdx;for(var chunkOperations=10<argsArrayLen-executionStartIdx&&"function"===typeof continueCallback,endTime=chunkOperations?Date.now()+15:0,steps=0,commonObjs=this.commonObjs,
objs=this.objs,fnId;;){if(void 0!==stepper&&executionStartIdx===stepper.nextBreakPoint)return stepper.breakIt(executionStartIdx,continueCallback),executionStartIdx;fnId=operatorList[executionStartIdx];if(fnId!==_util.OPS.dependency)this[fnId].apply(this,argsArray[executionStartIdx]);else{fnId=!0;var _didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=argsArray[executionStartIdx][Symbol.iterator](),_step;!(fnId=(_step=_iterator.next()).done);fnId=!0){var depObjId=_step.value,objsPool=
depObjId.startsWith("g_")?commonObjs:objs;if(!objsPool.has(depObjId))return objsPool.get(depObjId,continueCallback),executionStartIdx}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{if(!fnId&&null!=_iterator["return"])_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError;}}}executionStartIdx++;if(executionStartIdx===argsArrayLen)return executionStartIdx;if(chunkOperations&&10<++steps){if(Date.now()>endTime)return continueCallback(),executionStartIdx;steps=0}}},endDrawing:function(){null!==
this.current.activeSMask&&this.endSMaskGroup();this.ctx.restore();this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null);this.cachedCanvases.clear();this.webGLContext.clear();this.imageLayer&&this.imageLayer.endLayout()},setLineWidth:function(width){this.current.lineWidth=width;this.ctx.lineWidth=width},setLineCap:function(style){this.ctx.lineCap=LINE_CAP_STYLES[style]},
setLineJoin:function(style){this.ctx.lineJoin=LINE_JOIN_STYLES[style]},setMiterLimit:function(limit){this.ctx.miterLimit=limit},setDash:function(dashArray,dashPhase){var ctx=this.ctx;void 0!==ctx.setLineDash&&(ctx.setLineDash(dashArray),ctx.lineDashOffset=dashPhase)},setRenderingIntent:function(intent){},setFlatness:function(flatness){},setGState:function(states){for(var i=0,ii=states.length;i<ii;i++){var state=states[i],value=state[1];switch(state[0]){case "LW":this.setLineWidth(value);break;case "LC":this.setLineCap(value);
break;case "LJ":this.setLineJoin(value);break;case "ML":this.setMiterLimit(value);break;case "D":this.setDash(value[0],value[1]);break;case "RI":this.setRenderingIntent(value);break;case "FL":this.setFlatness(value);break;case "Font":this.setFont(value[0],value[1]);break;case "CA":this.current.strokeAlpha=state[1];break;case "ca":this.current.fillAlpha=state[1];this.ctx.globalAlpha=state[1];break;case "BM":this.ctx.globalCompositeOperation=value;break;case "SMask":this.current.activeSMask&&(0<this.stateStack.length&&
this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask?this.suspendSMaskGroup():this.endSMaskGroup()),this.current.activeSMask=value?this.tempSMask:null,this.current.activeSMask&&this.beginSMaskGroup(),this.tempSMask=null}}},beginSMaskGroup:function(){var activeSMask=this.current.activeSMask,scratchCanvas=this.cachedCanvases.getCanvas("smaskGroupAt"+this.groupLevel,activeSMask.canvas.width,activeSMask.canvas.height,!0),currentCtx=this.ctx,currentTransform=currentCtx.mozCurrentTransform;
this.ctx.save();scratchCanvas=scratchCanvas.context;scratchCanvas.scale(1/activeSMask.scaleX,1/activeSMask.scaleY);scratchCanvas.translate(-activeSMask.offsetX,-activeSMask.offsetY);scratchCanvas.transform.apply(scratchCanvas,currentTransform);activeSMask.startTransformInverse=scratchCanvas.mozCurrentTransformInverse;copyCtxState(currentCtx,scratchCanvas);this.ctx=scratchCanvas;this.setGState([["BM","source-over"],["ca",1],["CA",1]]);this.groupStack.push(currentCtx);this.groupLevel++},suspendSMaskGroup:function(){var groupCtx=
this.ctx;this.groupLevel--;this.ctx=this.groupStack.pop();composeSMask(this.ctx,this.current.activeSMask,groupCtx,this.webGLContext);this.ctx.restore();this.ctx.save();copyCtxState(groupCtx,this.ctx);this.current.resumeSMaskCtx=groupCtx;var deltaTransform=_util.Util.transform(this.current.activeSMask.startTransformInverse,groupCtx.mozCurrentTransform);this.ctx.transform.apply(this.ctx,deltaTransform);groupCtx.save();groupCtx.setTransform(1,0,0,1,0,0);groupCtx.clearRect(0,0,groupCtx.canvas.width,groupCtx.canvas.height);
groupCtx.restore()},resumeSMaskGroup:function(){var currentCtx=this.ctx;this.ctx=this.current.resumeSMaskCtx;this.groupStack.push(currentCtx);this.groupLevel++},endSMaskGroup:function(){var groupCtx=this.ctx;this.groupLevel--;this.ctx=this.groupStack.pop();composeSMask(this.ctx,this.current.activeSMask,groupCtx,this.webGLContext);this.ctx.restore();copyCtxState(groupCtx,this.ctx);groupCtx=_util.Util.transform(this.current.activeSMask.startTransformInverse,groupCtx.mozCurrentTransform);this.ctx.transform.apply(this.ctx,
groupCtx)},save:function(){this.ctx.save();var old=this.current;this.stateStack.push(old);this.current=old.clone();this.current.resumeSMaskCtx=null},restore:function(){this.current.resumeSMaskCtx&&this.resumeSMaskGroup();null===this.current.activeSMask||0!==this.stateStack.length&&this.stateStack[this.stateStack.length-1].activeSMask===this.current.activeSMask||this.endSMaskGroup();0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.ctx.restore(),this._cachedGetSinglePixelWidth=this.pendingClip=
null)},transform:function(a,b,c,d,e,f){this.ctx.transform(a,b,c,d,e,f);this._cachedGetSinglePixelWidth=null},constructPath:function(ops,args){for(var ctx=this.ctx,current=this.current,x=current.x,y=current.y,i=0,j=0,ii=ops.length;i<ii;i++)switch(ops[i]|0){case _util.OPS.rectangle:x=args[j++];y=args[j++];var width=args[j++],height=args[j++];0===width&&(width=this.getSinglePixelWidth());0===height&&(height=this.getSinglePixelWidth());width=x+width;height=y+height;this.ctx.moveTo(x,y);this.ctx.lineTo(width,
y);this.ctx.lineTo(width,height);this.ctx.lineTo(x,height);this.ctx.lineTo(x,y);this.ctx.closePath();break;case _util.OPS.moveTo:x=args[j++];y=args[j++];ctx.moveTo(x,y);break;case _util.OPS.lineTo:x=args[j++];y=args[j++];ctx.lineTo(x,y);break;case _util.OPS.curveTo:x=args[j+4];y=args[j+5];ctx.bezierCurveTo(args[j],args[j+1],args[j+2],args[j+3],x,y);j+=6;break;case _util.OPS.curveTo2:ctx.bezierCurveTo(x,y,args[j],args[j+1],args[j+2],args[j+3]);x=args[j+2];y=args[j+3];j+=4;break;case _util.OPS.curveTo3:x=
args[j+2];y=args[j+3];ctx.bezierCurveTo(args[j],args[j+1],x,y,x,y);j+=4;break;case _util.OPS.closePath:ctx.closePath()}current.setCurrentPoint(x,y)},closePath:function(){this.ctx.closePath()},stroke:function(consumePath){consumePath="undefined"!==typeof consumePath?consumePath:!0;var ctx=this.ctx,strokeColor=this.current.strokeColor;ctx.globalAlpha=this.current.strokeAlpha;if(strokeColor&&strokeColor.hasOwnProperty("type")&&"Pattern"===strokeColor.type){ctx.save();var scale=_util.Util.singularValueDecompose2dScale(ctx.mozCurrentTransform)[0];
ctx.strokeStyle=strokeColor.getPattern(ctx,this);ctx.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth*scale);ctx.stroke();ctx.restore()}else ctx.lineWidth=Math.max(.65*this.getSinglePixelWidth(),this.current.lineWidth),ctx.stroke();consumePath&&this.consumePath();ctx.globalAlpha=this.current.fillAlpha},closeStroke:function(){this.closePath();this.stroke()},fill:function(consumePath){consumePath="undefined"!==typeof consumePath?consumePath:!0;var ctx=this.ctx,fillColor=this.current.fillColor,
needRestore=!1;this.current.patternFill&&(ctx.save(),this.baseTransform&&ctx.setTransform.apply(ctx,this.baseTransform),ctx.fillStyle=fillColor.getPattern(ctx,this),needRestore=!0);this.pendingEOFill?(ctx.fill("evenodd"),this.pendingEOFill=!1):ctx.fill();needRestore&&ctx.restore();consumePath&&this.consumePath()},eoFill:function(){this.pendingEOFill=!0;this.fill()},fillStroke:function(){this.fill(!1);this.stroke(!1);this.consumePath()},eoFillStroke:function(){this.pendingEOFill=!0;this.fillStroke()},
closeFillStroke:function(){this.closePath();this.fillStroke()},closeEOFillStroke:function(){this.pendingEOFill=!0;this.closePath();this.fillStroke()},endPath:function(){this.consumePath()},clip:function(){this.pendingClip=NORMAL_CLIP},eoClip:function(){this.pendingClip=EO_CLIP},beginText:function(){this.current.textMatrix=_util.IDENTITY_MATRIX;this.current.textMatrixScale=1;this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},endText:function(){var paths=this.pendingTextPaths,
ctx=this.ctx;if(void 0===paths)ctx.beginPath();else{ctx.save();ctx.beginPath();for(var i=0;i<paths.length;i++){var path=paths[i];ctx.setTransform.apply(ctx,path.transform);ctx.translate(path.x,path.y);path.addToPath(ctx,path.fontSize)}ctx.restore();ctx.clip();ctx.beginPath();delete this.pendingTextPaths}},setCharSpacing:function(spacing){this.current.charSpacing=spacing},setWordSpacing:function(spacing){this.current.wordSpacing=spacing},setHScale:function(scale){this.current.textHScale=scale/100},
setLeading:function(leading){this.current.leading=-leading},setFont:function(fontRefName,size){var fontObj=this.commonObjs.get(fontRefName),current=this.current;if(!fontObj)throw Error("Can't find font for ".concat(fontRefName));current.fontMatrix=fontObj.fontMatrix?fontObj.fontMatrix:_util.FONT_IDENTITY_MATRIX;0!==current.fontMatrix[0]&&0!==current.fontMatrix[3]||(0,_util.warn)("Invalid font matrix for font "+fontRefName);0>size?(size=-size,current.fontDirection=-1):current.fontDirection=1;this.current.font=
fontObj;this.current.fontSize=size;if(!fontObj.isType3Font){fontRefName=fontObj.black?"900":fontObj.bold?"bold":"normal";current=fontObj.italic?"italic":"normal";fontObj='"'.concat(fontObj.loadedName||"sans-serif",'", ').concat(fontObj.fallbackName);var browserFontSize=16>size?16:100<size?100:size;this.current.fontSizeScale=size/browserFontSize;this.ctx.font="".concat(current," ").concat(fontRefName," ").concat(browserFontSize,"px ").concat(fontObj)}},setTextRenderingMode:function(mode){this.current.textRenderingMode=
mode},setTextRise:function(rise){this.current.textRise=rise},moveText:function(x,y){this.current.x=this.current.lineX+=x;this.current.y=this.current.lineY+=y},setLeadingMoveText:function(x,y){this.setLeading(-y);this.moveText(x,y)},setTextMatrix:function(a,b,c,d,e,f){this.current.textMatrix=[a,b,c,d,e,f];this.current.textMatrixScale=Math.sqrt(a*a+b*b);this.current.x=this.current.lineX=0;this.current.y=this.current.lineY=0},nextLine:function(){this.moveText(0,this.current.leading)},paintChar:function(character,
x,y,patternTransform){var ctx=this.ctx,current=this.current,font=current.font,textRenderingMode=current.textRenderingMode,fontSize=current.fontSize/current.fontSizeScale,fillStrokeMode=textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK;textRenderingMode=!!(textRenderingMode&_util.TextRenderingMode.ADD_TO_PATH_FLAG);current=current.patternFill&&font.data;if(font.disableFontFace||textRenderingMode||current)var addToPath=font.getPathGenerator(this.commonObjs,character);font.disableFontFace||
current?(ctx.save(),ctx.translate(x,y),ctx.beginPath(),addToPath(ctx,fontSize),patternTransform&&ctx.setTransform.apply(ctx,patternTransform),fillStrokeMode!==_util.TextRenderingMode.FILL&&fillStrokeMode!==_util.TextRenderingMode.FILL_STROKE||ctx.fill(),fillStrokeMode!==_util.TextRenderingMode.STROKE&&fillStrokeMode!==_util.TextRenderingMode.FILL_STROKE||ctx.stroke(),ctx.restore()):(fillStrokeMode!==_util.TextRenderingMode.FILL&&fillStrokeMode!==_util.TextRenderingMode.FILL_STROKE||ctx.fillText(character,
x,y),fillStrokeMode!==_util.TextRenderingMode.STROKE&&fillStrokeMode!==_util.TextRenderingMode.FILL_STROKE||ctx.strokeText(character,x,y));textRenderingMode&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:ctx.mozCurrentTransform,x:x,y:y,fontSize:fontSize,addToPath:addToPath})},get isFontSubpixelAAEnabled(){var ctx=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10).context;ctx.scale(1.5,1);ctx.fillText("I",0,10);ctx=ctx.getImageData(0,0,10,10).data;for(var enabled=
!1,i=3;i<ctx.length;i+=4)if(0<ctx[i]&&255>ctx[i]){enabled=!0;break}return(0,_util.shadow)(this,"isFontSubpixelAAEnabled",enabled)},showText:function(glyphs){var current=this.current,font=current.font;if(font.isType3Font)return this.showType3Text(glyphs);var fontSize=current.fontSize;if(0!==fontSize){var ctx=this.ctx,fontSizeScale=current.fontSizeScale,charSpacing=current.charSpacing,wordSpacing=current.wordSpacing,fontDirection=current.fontDirection,textHScale=current.textHScale*fontDirection,glyphsLength=
glyphs.length,vertical=font.vertical,spacingDir=vertical?1:-1,defaultVMetrics=font.defaultVMetrics,widthAdvanceScale=fontSize*current.fontMatrix[0],simpleFillText=current.textRenderingMode===_util.TextRenderingMode.FILL&&!font.disableFontFace&&!current.patternFill;ctx.save();if(current.patternFill){ctx.save();var pattern=current.fillColor.getPattern(ctx,this);var patternTransform=ctx.mozCurrentTransform;ctx.restore();ctx.fillStyle=pattern}ctx.transform.apply(ctx,current.textMatrix);ctx.translate(current.x,
current.y+current.textRise);0<fontDirection?ctx.scale(textHScale,-1):ctx.scale(textHScale,1);pattern=current.lineWidth;var scale=current.textMatrixScale;if(0===scale||0===pattern){if(scale=current.textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK,scale===_util.TextRenderingMode.STROKE||scale===_util.TextRenderingMode.FILL_STROKE)this._cachedGetSinglePixelWidth=null,pattern=.65*this.getSinglePixelWidth()}else pattern/=scale;1!==fontSizeScale&&(ctx.scale(fontSizeScale,fontSizeScale),pattern/=
fontSizeScale);ctx.lineWidth=pattern;for(scale=pattern=0;scale<glyphsLength;++scale){var glyph=glyphs[scale];if((0,_util.isNum)(glyph))pattern+=spacingDir*glyph*fontSize/1E3;else{var restoreNeeded=!1,spacing=(glyph.isSpace?wordSpacing:0)+charSpacing,character=glyph.fontChar,accent=glyph.accent,width=glyph.width;if(vertical){var scaledX=glyph.vmetric||defaultVMetrics;var vx=glyph.vmetric?scaledX[1]:.5*width;vx=-vx*widthAdvanceScale;var scaledY=scaledX[2]*widthAdvanceScale;width=scaledX?-scaledX[0]:
width;scaledX=vx/fontSizeScale;scaledY=(pattern+scaledY)/fontSizeScale}else scaledX=pattern/fontSizeScale,scaledY=0;font.remeasure&&0<width&&(vx=1E3*ctx.measureText(character).width/fontSize*fontSizeScale,width<vx&&this.isFontSubpixelAAEnabled?(vx=width/vx,restoreNeeded=!0,ctx.save(),ctx.scale(vx,1),scaledX/=vx):width!==vx&&(scaledX+=(width-vx)/2E3*fontSize/fontSizeScale));if(glyph.isInFont||font.missingFile)simpleFillText&&!accent?ctx.fillText(character,scaledX,scaledY):(this.paintChar(character,
scaledX,scaledY,patternTransform),accent&&(glyph=scaledX+accent.offset.x/fontSizeScale,character=scaledY-accent.offset.y/fontSizeScale,this.paintChar(accent.fontChar,glyph,character,patternTransform)));pattern+=width*widthAdvanceScale+spacing*fontDirection;restoreNeeded&&ctx.restore()}}vertical?current.y-=pattern*textHScale:current.x+=pattern*textHScale;ctx.restore()}},showType3Text:function(glyphs){var ctx=this.ctx,current=this.current,font=current.font,fontSize=current.fontSize,fontDirection=current.fontDirection,
spacingDir=font.vertical?1:-1,charSpacing=current.charSpacing,wordSpacing=current.wordSpacing,textHScale=current.textHScale*fontDirection,fontMatrix=current.fontMatrix||_util.FONT_IDENTITY_MATRIX,glyphsLength=glyphs.length;if(current.textRenderingMode!==_util.TextRenderingMode.INVISIBLE&&0!==fontSize){this._cachedGetSinglePixelWidth=null;ctx.save();ctx.transform.apply(ctx,current.textMatrix);ctx.translate(current.x,current.y);ctx.scale(textHScale,fontDirection);for(fontDirection=0;fontDirection<glyphsLength;++fontDirection){var glyph=
glyphs[fontDirection];if((0,_util.isNum)(glyph))glyph=spacingDir*glyph*fontSize/1E3,this.ctx.translate(glyph,0),current.x+=glyph*textHScale;else{var spacing=(glyph.isSpace?wordSpacing:0)+charSpacing,operatorList=font.charProcOperatorList[glyph.operatorListId];operatorList?(this.processingType3=glyph,this.save(),ctx.scale(fontSize,fontSize),ctx.transform.apply(ctx,fontMatrix),this.executeOperatorList(operatorList),this.restore(),glyph=_util.Util.applyTransform([glyph.width,0],fontMatrix)[0]*fontSize+
spacing,ctx.translate(glyph,0),current.x+=glyph*textHScale):(0,_util.warn)('Type3 character "'.concat(glyph.operatorListId,'" is not available.'))}}ctx.restore();this.processingType3=null}},setCharWidth:function(xWidth,yWidth){},setCharWidthAndBounds:function(xWidth,yWidth,llx,lly,urx,ury){this.ctx.rect(llx,lly,urx-llx,ury-lly);this.clip();this.endPath()},getColorN_Pattern:function(IR){var _this=this;if("TilingPattern"===IR[0]){var color=IR[1],baseTransform=this.baseTransform||this.ctx.mozCurrentTransform.slice();
IR=new _pattern_helper.TilingPattern(IR,color,this.ctx,{createCanvasGraphics:function(ctx){return new CanvasGraphics(ctx,_this.commonObjs,_this.objs,_this.canvasFactory,_this.webGLContext)}},baseTransform)}else IR=(0,_pattern_helper.getShadingPatternFromIR)(IR);return IR},setStrokeColorN:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)},setFillColorN:function(){this.current.fillColor=this.getColorN_Pattern(arguments);this.current.patternFill=!0},setStrokeRGBColor:function(r,g,
b){r=_util.Util.makeCssRgb(r,g,b);this.ctx.strokeStyle=r;this.current.strokeColor=r},setFillRGBColor:function(r,g,b){r=_util.Util.makeCssRgb(r,g,b);this.ctx.fillStyle=r;this.current.fillColor=r;this.current.patternFill=!1},shadingFill:function(patternIR){var ctx=this.ctx;this.save();patternIR=(0,_pattern_helper.getShadingPatternFromIR)(patternIR);ctx.fillStyle=patternIR.getPattern(ctx,this,!0);var inv=ctx.mozCurrentTransformInverse;if(inv){ctx=ctx.canvas;var width=ctx.width,height=ctx.height;ctx=
_util.Util.applyTransform([0,0],inv);patternIR=_util.Util.applyTransform([0,height],inv);var ul=_util.Util.applyTransform([width,0],inv);inv=_util.Util.applyTransform([width,height],inv);width=Math.min(ctx[0],patternIR[0],ul[0],inv[0]);height=Math.min(ctx[1],patternIR[1],ul[1],inv[1]);this.ctx.fillRect(width,height,Math.max(ctx[0],patternIR[0],ul[0],inv[0])-width,Math.max(ctx[1],patternIR[1],ul[1],inv[1])-height)}else this.ctx.fillRect(-1E10,-1E10,2E10,2E10);this.restore()},beginInlineImage:function(){(0,_util.unreachable)("Should not call beginInlineImage")},
beginImageData:function(){(0,_util.unreachable)("Should not call beginImageData")},paintFormXObjectBegin:function(matrix,bbox){this.save();this.baseTransformStack.push(this.baseTransform);Array.isArray(matrix)&&6===matrix.length&&this.transform.apply(this,matrix);this.baseTransform=this.ctx.mozCurrentTransform;bbox&&(this.ctx.rect(bbox[0],bbox[1],bbox[2]-bbox[0],bbox[3]-bbox[1]),this.clip(),this.endPath())},paintFormXObjectEnd:function(){this.restore();this.baseTransform=this.baseTransformStack.pop()},
beginGroup:function(group){this.save();var currentCtx=this.ctx;group.isolated||(0,_util.info)("TODO: Support non-isolated groups.");group.knockout&&(0,_util.warn)("Knockout groups not supported.");var currentTransform=currentCtx.mozCurrentTransform;group.matrix&&currentCtx.transform.apply(currentCtx,group.matrix);if(!group.bbox)throw Error("Bounding box is required.");var bounds=_util.Util.getAxialAlignedBoundingBox(group.bbox,currentCtx.mozCurrentTransform);bounds=_util.Util.intersect(bounds,[0,
0,currentCtx.canvas.width,currentCtx.canvas.height])||[0,0,0,0];var offsetX=Math.floor(bounds[0]),offsetY=Math.floor(bounds[1]),drawnWidth=Math.max(Math.ceil(bounds[2])-offsetX,1),drawnHeight=Math.max(Math.ceil(bounds[3])-offsetY,1),scaleY=bounds=1;4096<drawnWidth&&(bounds=drawnWidth/4096,drawnWidth=4096);4096<drawnHeight&&(scaleY=drawnHeight/4096,drawnHeight=4096);var cacheId="groupAt"+this.groupLevel;group.smask&&(cacheId+="_smask_"+this.smaskCounter++%2);drawnWidth=this.cachedCanvases.getCanvas(cacheId,
drawnWidth,drawnHeight,!0);drawnHeight=drawnWidth.context;drawnHeight.scale(1/bounds,1/scaleY);drawnHeight.translate(-offsetX,-offsetY);drawnHeight.transform.apply(drawnHeight,currentTransform);group.smask?this.smaskStack.push({canvas:drawnWidth.canvas,context:drawnHeight,offsetX:offsetX,offsetY:offsetY,scaleX:bounds,scaleY:scaleY,subtype:group.smask.subtype,backdrop:group.smask.backdrop,transferMap:group.smask.transferMap||null,startTransformInverse:null}):(currentCtx.setTransform(1,0,0,1,0,0),currentCtx.translate(offsetX,
offsetY),currentCtx.scale(bounds,scaleY));copyCtxState(currentCtx,drawnHeight);this.ctx=drawnHeight;this.setGState([["BM","source-over"],["ca",1],["CA",1]]);this.groupStack.push(currentCtx);this.groupLevel++;this.current.activeSMask=null},endGroup:function(group){this.groupLevel--;var groupCtx=this.ctx;this.ctx=this.groupStack.pop();void 0!==this.ctx.imageSmoothingEnabled?this.ctx.imageSmoothingEnabled=!1:this.ctx.mozImageSmoothingEnabled=!1;group.smask?this.tempSMask=this.smaskStack.pop():this.ctx.drawImage(groupCtx.canvas,
0,0);this.restore()},beginAnnotations:function(){this.save();this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)},endAnnotations:function(){this.restore()},beginAnnotation:function(rect,transform,matrix){this.save();resetCtxToDefault(this.ctx);this.current=new CanvasExtraState;Array.isArray(rect)&&4===rect.length&&(this.ctx.rect(rect[0],rect[1],rect[2]-rect[0],rect[3]-rect[1]),this.clip(),this.endPath());this.transform.apply(this,transform);this.transform.apply(this,matrix)},
endAnnotation:function(){this.restore()},paintJpegXObject:function(objId,w,h){var domImage=this.processingType3?this.commonObjs.get(objId):this.objs.get(objId);if(domImage){this.save();var ctx=this.ctx;ctx.scale(1/w,-1/h);ctx.drawImage(domImage,0,0,domImage.width,domImage.height,0,-h,w,h);this.imageLayer&&(domImage=ctx.mozCurrentTransformInverse,ctx=this.getCanvasPosition(0,0),this.imageLayer.appendImage({objId:objId,left:ctx[0],top:ctx[1],width:w/domImage[0],height:h/domImage[3]}));this.restore()}else(0,_util.warn)("Dependent image isn't ready yet")},
paintImageMaskXObject:function(img){var ctx=this.ctx,width=img.width,height=img.height,fillColor=this.current.fillColor,isPatternFill=this.current.patternFill,glyph=this.processingType3;glyph&&void 0===glyph.compiled&&(glyph.compiled=1E3>=width&&1E3>=height?compileType3Glyph({data:img.data,width:width,height:height}):null);glyph&&glyph.compiled?glyph.compiled(ctx):(ctx=this.cachedCanvases.getCanvas("maskCanvas",width,height),glyph=ctx.context,glyph.save(),putBinaryImageMask(glyph,img),glyph.globalCompositeOperation=
"source-in",glyph.fillStyle=isPatternFill?fillColor.getPattern(glyph,this):fillColor,glyph.fillRect(0,0,width,height),glyph.restore(),this.paintInlineImageXObject(ctx.canvas))},paintImageMaskXObjectRepeat:function(imgData,scaleX,scaleY,positions){var width=imgData.width,height=imgData.height,fillColor=this.current.fillColor,isPatternFill=this.current.patternFill,maskCanvas=this.cachedCanvases.getCanvas("maskCanvas",width,height),maskCtx=maskCanvas.context;maskCtx.save();putBinaryImageMask(maskCtx,
imgData);maskCtx.globalCompositeOperation="source-in";maskCtx.fillStyle=isPatternFill?fillColor.getPattern(maskCtx,this):fillColor;maskCtx.fillRect(0,0,width,height);maskCtx.restore();imgData=this.ctx;fillColor=0;for(isPatternFill=positions.length;fillColor<isPatternFill;fillColor+=2)imgData.save(),imgData.transform(scaleX,0,0,scaleY,positions[fillColor],positions[fillColor+1]),imgData.scale(1,-1),imgData.drawImage(maskCanvas.canvas,0,0,width,height,0,-1,1,1),imgData.restore()},paintImageMaskXObjectGroup:function(images){for(var ctx=
this.ctx,fillColor=this.current.fillColor,isPatternFill=this.current.patternFill,i=0,ii=images.length;i<ii;i++){var image=images[i],width=image.width,height=image.height,maskCanvas=this.cachedCanvases.getCanvas("maskCanvas",width,height),maskCtx=maskCanvas.context;maskCtx.save();putBinaryImageMask(maskCtx,image);maskCtx.globalCompositeOperation="source-in";maskCtx.fillStyle=isPatternFill?fillColor.getPattern(maskCtx,this):fillColor;maskCtx.fillRect(0,0,width,height);maskCtx.restore();ctx.save();ctx.transform.apply(ctx,
image.transform);ctx.scale(1,-1);ctx.drawImage(maskCanvas.canvas,0,0,width,height,0,-1,1,1);ctx.restore()}},paintImageXObject:function(objId){(objId=this.processingType3?this.commonObjs.get(objId):this.objs.get(objId))?this.paintInlineImageXObject(objId):(0,_util.warn)("Dependent image isn't ready yet")},paintImageXObjectRepeat:function(objId,scaleX,scaleY,positions){if(objId=this.processingType3?this.commonObjs.get(objId):this.objs.get(objId)){for(var width=objId.width,height=objId.height,map=[],
i=0,ii=positions.length;i<ii;i+=2)map.push({transform:[scaleX,0,0,scaleY,positions[i],positions[i+1]],x:0,y:0,w:width,h:height});this.paintInlineImageXObjectGroup(objId,map)}else(0,_util.warn)("Dependent image isn't ready yet")},paintInlineImageXObject:function(imgData){var width=imgData.width,height=imgData.height,ctx=this.ctx;this.save();ctx.scale(1/width,-1/height);var currentTransform=ctx.mozCurrentTransformInverse,a=currentTransform[0],b=currentTransform[1];a=Math.max(Math.sqrt(a*a+b*b),1);b=
currentTransform[2];var d=currentTransform[3];b=Math.max(Math.sqrt(b*b+d*d),1);if("function"===typeof HTMLElement&&imgData instanceof HTMLElement||!imgData.data)d=imgData;else{var tmpCanvas=this.cachedCanvases.getCanvas("inlineImage",width,height);var tmpCtx=tmpCanvas.context;putBinaryImageData(tmpCtx,imgData);d=tmpCanvas.canvas}for(var paintWidth=width,paintHeight=height,tmpCanvasId="prescale1";2<a&&1<paintWidth||2<b&&1<paintHeight;){var newWidth=paintWidth,newHeight=paintHeight;2<a&&1<paintWidth&&
(newWidth=Math.ceil(paintWidth/2),a/=paintWidth/newWidth);2<b&&1<paintHeight&&(newHeight=Math.ceil(paintHeight/2),b/=paintHeight/newHeight);tmpCanvas=this.cachedCanvases.getCanvas(tmpCanvasId,newWidth,newHeight);tmpCtx=tmpCanvas.context;tmpCtx.clearRect(0,0,newWidth,newHeight);tmpCtx.drawImage(d,0,0,paintWidth,paintHeight,0,0,newWidth,newHeight);d=tmpCanvas.canvas;paintWidth=newWidth;paintHeight=newHeight;tmpCanvasId="prescale1"===tmpCanvasId?"prescale2":"prescale1"}ctx.drawImage(d,0,0,paintWidth,
paintHeight,0,-height,width,height);this.imageLayer&&(ctx=this.getCanvasPosition(0,-height),this.imageLayer.appendImage({imgData:imgData,left:ctx[0],top:ctx[1],width:width/currentTransform[0],height:height/currentTransform[3]}));this.restore()},paintInlineImageXObjectGroup:function(imgData,map){var ctx=this.ctx,w=imgData.width,h=imgData.height,tmpCanvas=this.cachedCanvases.getCanvas("inlineImage",w,h);putBinaryImageData(tmpCanvas.context,imgData);for(var i=0,ii=map.length;i<ii;i++){var entry=map[i];
ctx.save();ctx.transform.apply(ctx,entry.transform);ctx.scale(1,-1);ctx.drawImage(tmpCanvas.canvas,entry.x,entry.y,entry.w,entry.h,0,-1,1,1);this.imageLayer&&(entry=this.getCanvasPosition(entry.x,entry.y),this.imageLayer.appendImage({imgData:imgData,left:entry[0],top:entry[1],width:w,height:h}));ctx.restore()}},paintSolidColorImageMask:function(){this.ctx.fillRect(0,0,1,1)},paintXObject:function(){(0,_util.warn)("Unsupported 'paintXObject' command.")},markPoint:function(tag){},markPointProps:function(tag,
properties){},beginMarkedContent:function(tag){},beginMarkedContentProps:function(tag,properties){},endMarkedContent:function(){},beginCompat:function(){},endCompat:function(){},consumePath:function(){var ctx=this.ctx;this.pendingClip&&(this.pendingClip===EO_CLIP?ctx.clip("evenodd"):ctx.clip(),this.pendingClip=null);ctx.beginPath()},getSinglePixelWidth:function(scale){null===this._cachedGetSinglePixelWidth&&(scale=this.ctx.mozCurrentTransformInverse,this._cachedGetSinglePixelWidth=Math.sqrt(Math.max(scale[0]*
scale[0]+scale[1]*scale[1],scale[2]*scale[2]+scale[3]*scale[3])));return this._cachedGetSinglePixelWidth},getCanvasPosition:function(x,y){var transform=this.ctx.mozCurrentTransform;return[transform[0]*x+transform[2]*y+transform[4],transform[1]*x+transform[3]*y+transform[5]]}};for(var op in _util.OPS)CanvasGraphics.prototype[_util.OPS[op]]=CanvasGraphics.prototype[op];return CanvasGraphics}();exports.CanvasGraphics=module},function(module,exports,__w_pdfjs_require__){function applyBoundingBox(ctx,
bbox){if(bbox&&"undefined"!==typeof Path2D){var width=bbox[2]-bbox[0],height=bbox[3]-bbox[1],region=new Path2D;region.rect(bbox[0],bbox[1],width,height);ctx.clip(region)}}Object.defineProperty(exports,"__esModule",{value:!0});exports.getShadingPatternFromIR=function(raw){var shadingIR=ShadingIRs[raw[0]];if(!shadingIR)throw Error("Unknown IR type: ".concat(raw[0]));return shadingIR.fromIR(raw)};exports.TilingPattern=void 0;var _util=__w_pdfjs_require__(1),ShadingIRs={RadialAxial:{fromIR:function(raw){var type=
raw[1],bbox=raw[2],colorStops=raw[3],p0=raw[4],p1=raw[5],r0=raw[6],r1=raw[7];return{type:"Pattern",getPattern:function(ctx){applyBoundingBox(ctx,bbox);var grad;"axial"===type?grad=ctx.createLinearGradient(p0[0],p0[1],p1[0],p1[1]):"radial"===type&&(grad=ctx.createRadialGradient(p0[0],p0[1],r0,p1[0],p1[1],r1));ctx=0;for(var ii=colorStops.length;ctx<ii;++ctx){var c=colorStops[ctx];grad.addColorStop(c[0],c[1])}return grad}}}}},createMeshCanvas=function(){function drawTriangle(data,context,p1,p2,p3,c1,
c2,c3){var coords=context.coords,colors=context.colors,bytes=data.data;data=4*data.width;if(coords[p1+1]>coords[p2+1]){var tmp=p1;p1=p2;p2=tmp;tmp=c1;c1=c2;c2=tmp}coords[p2+1]>coords[p3+1]&&(tmp=p2,p2=p3,p3=tmp,tmp=c2,c2=c3,c3=tmp);coords[p1+1]>coords[p2+1]&&(tmp=p1,p1=p2,p2=tmp,tmp=c1,c1=c2,c2=tmp);tmp=(coords[p1]+context.offsetX)*context.scaleX;p1=(coords[p1+1]+context.offsetY)*context.scaleY;var x2=(coords[p2]+context.offsetX)*context.scaleX;p2=(coords[p2+1]+context.offsetY)*context.scaleY;var x3=
(coords[p3]+context.offsetX)*context.scaleX;context=(coords[p3+1]+context.offsetY)*context.scaleY;if(!(p1>=context)){p3=colors[c1];coords=colors[c1+1];c1=colors[c1+2];var c2r=colors[c2],c2g=colors[c2+1];c2=colors[c2+2];var c3r=colors[c3],c3g=colors[c3+1];c3=colors[c3+2];colors=Math.round(context);for(var xa,car,cag,cab,xb,cbr,cbg,cbb,k,y=Math.round(p1);y<=colors;y++){y<p2?(k=y<p1?0:p1===p2?1:(p1-y)/(p1-p2),xa=tmp-(tmp-x2)*k,car=p3-(p3-c2r)*k,cag=coords-(coords-c2g)*k,cab=c1-(c1-c2)*k):(k=y>context?
1:p2===context?0:(p2-y)/(p2-context),xa=x2-(x2-x3)*k,car=c2r-(c2r-c3r)*k,cag=c2g-(c2g-c3g)*k,cab=c2-(c2-c3)*k);k=y<p1?0:y>context?1:(p1-y)/(p1-context);xb=tmp-(tmp-x3)*k;cbr=p3-(p3-c3r)*k;cbg=coords-(coords-c3g)*k;cbb=c1-(c1-c3)*k;k=Math.round(Math.min(xa,xb));for(var x2_=Math.round(Math.max(xa,xb)),j=data*y+4*k,x=k;x<=x2_;x++)k=(xa-x)/(xa-xb),k=0>k?0:1<k?1:k,bytes[j++]=car-(car-cbr)*k|0,bytes[j++]=cag-(cag-cbg)*k|0,bytes[j++]=cab-(cab-cbb)*k|0,bytes[j++]=255}}}return function(bounds,combinesScale,
coords,colors,figures,backgroundColor,cachedCanvases,webGLContext){var offsetX=Math.floor(bounds[0]),offsetY=Math.floor(bounds[1]),boundsWidth=Math.ceil(bounds[2])-offsetX;bounds=Math.ceil(bounds[3])-offsetY;var width=Math.min(Math.ceil(Math.abs(boundsWidth*combinesScale[0]*1.1)),3E3);combinesScale=Math.min(Math.ceil(Math.abs(bounds*combinesScale[1]*1.1)),3E3);boundsWidth/=width;bounds/=combinesScale;coords={coords:coords,colors:colors,offsetX:-offsetX,offsetY:-offsetY,scaleX:1/boundsWidth,scaleY:1/
bounds};colors=width+4;var paddedHeight=combinesScale+4;if(webGLContext.isEnabled)figures=webGLContext.drawFigures({width:width,height:combinesScale,backgroundColor:backgroundColor,figures:figures,context:coords}),cachedCanvases=cachedCanvases.getCanvas("mesh",colors,paddedHeight,!1),cachedCanvases.context.drawImage(figures,2,2);else{cachedCanvases=cachedCanvases.getCanvas("mesh",colors,paddedHeight,!1);webGLContext=cachedCanvases.context;combinesScale=webGLContext.createImageData(width,combinesScale);
if(backgroundColor)for(paddedHeight=combinesScale.data,width=0,colors=paddedHeight.length;width<colors;width+=4)paddedHeight[width]=backgroundColor[0],paddedHeight[width+1]=backgroundColor[1],paddedHeight[width+2]=backgroundColor[2],paddedHeight[width+3]=255;for(width=0;width<figures.length;width++){backgroundColor=combinesScale;var i=figures[width];colors=coords;paddedHeight=i.coords;var cs=i.colors;switch(i.type){case "lattice":var ii=i.verticesPerRow;var rows=Math.floor(paddedHeight.length/ii)-
1,cols=ii-1;for(i=0;i<rows;i++)for(var q=i*ii,j=0;j<cols;j++,q++)drawTriangle(backgroundColor,colors,paddedHeight[q],paddedHeight[q+1],paddedHeight[q+ii],cs[q],cs[q+1],cs[q+ii]),drawTriangle(backgroundColor,colors,paddedHeight[q+ii+1],paddedHeight[q+1],paddedHeight[q+ii],cs[q+ii+1],cs[q+1],cs[q+ii]);break;case "triangles":i=0;for(ii=paddedHeight.length;i<ii;i+=3)drawTriangle(backgroundColor,colors,paddedHeight[i],paddedHeight[i+1],paddedHeight[i+2],cs[i],cs[i+1],cs[i+2]);break;default:throw Error("illegal figure");
}}webGLContext.putImageData(combinesScale,2,2)}figures=cachedCanvases.canvas;return{canvas:figures,offsetX:offsetX-2*boundsWidth,offsetY:offsetY-2*bounds,scaleX:boundsWidth,scaleY:bounds}}}();ShadingIRs.Mesh={fromIR:function(raw){var coords=raw[2],colors=raw[3],figures=raw[4],bounds=raw[5],matrix=raw[6],bbox=raw[7],background=raw[8];return{type:"Pattern",getPattern:function(ctx,owner,shadingFill){applyBoundingBox(ctx,bbox);if(shadingFill)var scale=_util.Util.singularValueDecompose2dScale(ctx.mozCurrentTransform);
else if(scale=_util.Util.singularValueDecompose2dScale(owner.baseTransform),matrix){var matrixScale=_util.Util.singularValueDecompose2dScale(matrix);scale=[scale[0]*matrixScale[0],scale[1]*matrixScale[1]]}scale=createMeshCanvas(bounds,scale,coords,colors,figures,shadingFill?null:background,owner.cachedCanvases,owner.webGLContext);shadingFill||(ctx.setTransform.apply(ctx,owner.baseTransform),matrix&&ctx.transform.apply(ctx,matrix));ctx.translate(scale.offsetX,scale.offsetY);ctx.scale(scale.scaleX,
scale.scaleY);return ctx.createPattern(scale.canvas,"no-repeat")}}}};ShadingIRs.Dummy={fromIR:function(){return{type:"Pattern",getPattern:function(){return"hotpink"}}}};module=function(){function TilingPattern(IR,color,ctx,canvasGraphicsFactory,baseTransform){this.operatorList=IR[2];this.matrix=IR[3]||[1,0,0,1,0,0];this.bbox=IR[4];this.xstep=IR[5];this.ystep=IR[6];this.paintType=IR[7];this.tilingType=IR[8];this.color=color;this.canvasGraphicsFactory=canvasGraphicsFactory;this.baseTransform=baseTransform;
this.type="Pattern";this.ctx=ctx}TilingPattern.prototype={createPatternCanvas:function(owner){var operatorList=this.operatorList,bbox=this.bbox,xstep=this.xstep,ystep=this.ystep,paintType=this.paintType,color=this.color,canvasGraphicsFactory=this.canvasGraphicsFactory;(0,_util.info)("TilingType: "+this.tilingType);var x0=bbox[0],y0=bbox[1],x1=bbox[2],y1=bbox[3],matrixScale=_util.Util.singularValueDecompose2dScale(this.matrix),curMatrixScale=_util.Util.singularValueDecompose2dScale(this.baseTransform);
matrixScale=[matrixScale[0]*curMatrixScale[0],matrixScale[1]*curMatrixScale[1]];xstep=this.getSizeAndScale(xstep,this.ctx.canvas.width,matrixScale[0]);ystep=this.getSizeAndScale(ystep,this.ctx.canvas.height,matrixScale[1]);matrixScale=owner.cachedCanvases.getCanvas("pattern",xstep.size,ystep.size,!0);canvasGraphicsFactory=canvasGraphicsFactory.createCanvasGraphics(matrixScale.context);canvasGraphicsFactory.groupLevel=owner.groupLevel;this.setFillAndStrokeStyleToContext(canvasGraphicsFactory,paintType,
color);canvasGraphicsFactory.transform(xstep.scale,0,0,ystep.scale,0,0);canvasGraphicsFactory.transform(1,0,0,1,-x0,-y0);this.clipBbox(canvasGraphicsFactory,bbox,x0,y0,x1,y1);canvasGraphicsFactory.executeOperatorList(operatorList);this.ctx.transform(1,0,0,1,x0,y0);this.ctx.scale(1/xstep.scale,1/ystep.scale);return matrixScale.canvas},getSizeAndScale:function(step,realOutputSize,scale){step=Math.abs(step);realOutputSize=Math.max(3E3,realOutputSize);var size=Math.ceil(step*scale);size>=realOutputSize?
size=realOutputSize:scale=size/step;return{scale:scale,size:size}},clipBbox:function(graphics,bbox,x0,y0,x1,y1){Array.isArray(bbox)&&4===bbox.length&&(graphics.ctx.rect(x0,y0,x1-x0,y1-y0),graphics.clip(),graphics.endPath())},setFillAndStrokeStyleToContext:function(graphics,paintType,color){var context=graphics.ctx;graphics=graphics.current;switch(paintType){case 1:paintType=this.ctx;context.fillStyle=paintType.fillStyle;context.strokeStyle=paintType.strokeStyle;graphics.fillColor=paintType.fillStyle;
graphics.strokeColor=paintType.strokeStyle;break;case 2:paintType=_util.Util.makeCssRgb(color[0],color[1],color[2]);context.fillStyle=paintType;context.strokeStyle=paintType;graphics.fillColor=paintType;graphics.strokeColor=paintType;break;default:throw new _util.FormatError("Unsupported paint type: ".concat(paintType));}},getPattern:function(ctx,owner){ctx=this.ctx;ctx.setTransform.apply(ctx,this.baseTransform);ctx.transform.apply(ctx,this.matrix);owner=this.createPatternCanvas(owner);return ctx.createPattern(owner,
"repeat")}};return TilingPattern}();exports.TilingPattern=module},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0});exports.GlobalWorkerOptions=void 0;module=Object.create(null);exports.GlobalWorkerOptions=module;module.workerPort=void 0===module.workerPort?null:module.workerPort;module.workerSrc=void 0===module.workerSrc?"":module.workerSrc},function(module,exports,__w_pdfjs_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,
arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _defineProperties(target,
props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&
"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function wrapReason(reason){if("object"!==_typeof(reason)||null===reason)return reason;switch(reason.name){case "AbortException":return new _util.AbortException(reason.message);case "MissingPDFException":return new _util.MissingPDFException(reason.message);case "UnexpectedResponseException":return new _util.UnexpectedResponseException(reason.message,
reason.status);case "UnknownErrorException":return new _util.UnknownErrorException(reason.message,reason.details);default:return new _util.UnknownErrorException(reason.message,reason.toString())}}Object.defineProperty(exports,"__esModule",{value:!0});exports.MessageHandler=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1);module=function(){function MessageHandler(sourceName,targetName,comObj){var _this=this;
if(!(this instanceof MessageHandler))throw new TypeError("Cannot call a class as a function");this.sourceName=sourceName;this.targetName=targetName;this.comObj=comObj;this.streamId=this.callbackId=1;this.postMessageTransfers=!0;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=function(event){var data=event.data;if(data.targetName===_this.sourceName)if(data.stream)_this._processStreamMessage(data);
else if(data.callback){event=data.callbackId;var capability=_this.callbackCapabilities[event];if(!capability)throw Error("Cannot resolve callback ".concat(event));delete _this.callbackCapabilities[event];if(1===data.callback)capability.resolve(data.data);else if(2===data.callback)capability.reject(wrapReason(data.reason));else throw Error("Unexpected callback case");}else{var action=_this.actionHandler[data.action];if(!action)throw Error("Unknown action from worker: ".concat(data.action));if(data.callbackId){var _sourceName=
_this.sourceName,_targetName=data.sourceName;(new Promise(function(resolve){resolve(action(data.data))})).then(function(result){comObj.postMessage({sourceName:_sourceName,targetName:_targetName,callback:1,callbackId:data.callbackId,data:result})},function(reason){comObj.postMessage({sourceName:_sourceName,targetName:_targetName,callback:2,callbackId:data.callbackId,reason:wrapReason(reason)})})}else data.streamId?_this._createStreamSink(data):action(data.data)}};comObj.addEventListener("message",
this._onComObjOnMessage)}_createClass(MessageHandler,[{key:"on",value:function(actionName,handler){var ah=this.actionHandler;if(ah[actionName])throw Error('There is already an actionName called "'.concat(actionName,'"'));ah[actionName]=handler}},{key:"send",value:function(actionName,data,transfers){this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:actionName,data:data},transfers)}},{key:"sendWithPromise",value:function(actionName,data,transfers){var callbackId=this.callbackId++,
capability=(0,_util.createPromiseCapability)();this.callbackCapabilities[callbackId]=capability;try{this._postMessage({sourceName:this.sourceName,targetName:this.targetName,action:actionName,callbackId:callbackId,data:data},transfers)}catch(ex){capability.reject(ex)}return capability.promise}},{key:"sendWithStream",value:function(actionName,data,queueingStrategy,transfers){var _this2=this,streamId=this.streamId++,sourceName=this.sourceName,targetName=this.targetName,comObj=this.comObj;return new ReadableStream({start:function(controller){var startCapability=
(0,_util.createPromiseCapability)();_this2.streamControllers[streamId]={controller:controller,startCall:startCapability,pullCall:null,cancelCall:null,isClosed:!1};_this2._postMessage({sourceName:sourceName,targetName:targetName,action:actionName,streamId:streamId,data:data,desiredSize:controller.desiredSize},transfers);return startCapability.promise},pull:function(controller){var pullCapability=(0,_util.createPromiseCapability)();_this2.streamControllers[streamId].pullCall=pullCapability;comObj.postMessage({sourceName:sourceName,
targetName:targetName,stream:6,streamId:streamId,desiredSize:controller.desiredSize});return pullCapability.promise},cancel:function(reason){(0,_util.assert)(reason instanceof Error,"cancel must have a valid reason");var cancelCapability=(0,_util.createPromiseCapability)();_this2.streamControllers[streamId].cancelCall=cancelCapability;_this2.streamControllers[streamId].isClosed=!0;comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:1,streamId:streamId,reason:wrapReason(reason)});
return cancelCapability.promise}},queueingStrategy)}},{key:"_createStreamSink",value:function(data){var self=this,action=this.actionHandler[data.action],streamId=data.streamId,sourceName=this.sourceName,targetName=data.sourceName,comObj=this.comObj,streamSink={enqueue:function(chunk){var transfers=2<arguments.length?arguments[2]:void 0;if(!this.isCancelled){var lastDesiredSize=this.desiredSize;this.desiredSize-=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;0<lastDesiredSize&&0>=this.desiredSize&&
(this.sinkCapability=(0,_util.createPromiseCapability)(),this.ready=this.sinkCapability.promise);self._postMessage({sourceName:sourceName,targetName:targetName,stream:4,streamId:streamId,chunk:chunk},transfers)}},close:function(){this.isCancelled||(this.isCancelled=!0,comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:3,streamId:streamId}),delete self.streamSinks[streamId])},error:function(reason){(0,_util.assert)(reason instanceof Error,"error must have a valid reason");this.isCancelled||
(this.isCancelled=!0,comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:5,streamId:streamId,reason:wrapReason(reason)}))},sinkCapability:(0,_util.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:data.desiredSize,ready:null};streamSink.sinkCapability.resolve();streamSink.ready=streamSink.sinkCapability.promise;this.streamSinks[streamId]=streamSink;(new Promise(function(resolve){resolve(action(data.data,streamSink))})).then(function(){comObj.postMessage({sourceName:sourceName,
targetName:targetName,stream:8,streamId:streamId,success:!0})},function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:8,streamId:streamId,reason:wrapReason(reason)})})}},{key:"_processStreamMessage",value:function(data){var streamId=data.streamId,sourceName=this.sourceName,targetName=data.sourceName,comObj=this.comObj;switch(data.stream){case 8:data.success?this.streamControllers[streamId].startCall.resolve():this.streamControllers[streamId].startCall.reject(wrapReason(data.reason));
break;case 7:data.success?this.streamControllers[streamId].pullCall.resolve():this.streamControllers[streamId].pullCall.reject(wrapReason(data.reason));break;case 6:if(!this.streamSinks[streamId]){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:7,streamId:streamId,success:!0});break}0>=this.streamSinks[streamId].desiredSize&&0<data.desiredSize&&this.streamSinks[streamId].sinkCapability.resolve();this.streamSinks[streamId].desiredSize=data.desiredSize;var onPull=this.streamSinks[data.streamId].onPull;
(new Promise(function(resolve){resolve(onPull&&onPull())})).then(function(){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:7,streamId:streamId,success:!0})},function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:7,streamId:streamId,reason:wrapReason(reason)})});break;case 4:(0,_util.assert)(this.streamControllers[streamId],"enqueue should have stream controller");if(this.streamControllers[streamId].isClosed)break;this.streamControllers[streamId].controller.enqueue(data.chunk);
break;case 3:(0,_util.assert)(this.streamControllers[streamId],"close should have stream controller");if(this.streamControllers[streamId].isClosed)break;this.streamControllers[streamId].isClosed=!0;this.streamControllers[streamId].controller.close();this._deleteStreamController(streamId);break;case 5:(0,_util.assert)(this.streamControllers[streamId],"error should have stream controller");this.streamControllers[streamId].controller.error(wrapReason(data.reason));this._deleteStreamController(streamId);
break;case 2:data.success?this.streamControllers[streamId].cancelCall.resolve():this.streamControllers[streamId].cancelCall.reject(wrapReason(data.reason));this._deleteStreamController(streamId);break;case 1:if(!this.streamSinks[streamId])break;var onCancel=this.streamSinks[data.streamId].onCancel;(new Promise(function(resolve){resolve(onCancel&&onCancel(wrapReason(data.reason)))})).then(function(){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:2,streamId:streamId,success:!0})},
function(reason){comObj.postMessage({sourceName:sourceName,targetName:targetName,stream:2,streamId:streamId,reason:wrapReason(reason)})});this.streamSinks[streamId].sinkCapability.reject(wrapReason(data.reason));this.streamSinks[streamId].isCancelled=!0;delete this.streamSinks[streamId];break;default:throw Error("Unexpected stream case");}}},{key:"_deleteStreamController",value:function(){var _deleteStreamController2=_asyncToGenerator(_regenerator["default"].mark(function _callee(streamId){return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=
_context.next){case 0:return _context.next=2,Promise.all([this.streamControllers[streamId].startCall,this.streamControllers[streamId].pullCall,this.streamControllers[streamId].cancelCall].map(function(capability){return capability&&capability.promise["catch"](function(){})}));case 2:delete this.streamControllers[streamId];case 3:case "end":return _context.stop()}},_callee,this)}));return function(_x){return _deleteStreamController2.apply(this,arguments)}}()},{key:"_postMessage",value:function(message,
transfers){transfers&&this.postMessageTransfers?this.comObj.postMessage(message,transfers):this.comObj.postMessage(message)}},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]);return MessageHandler}();exports.MessageHandler=module},function(module,exports,__w_pdfjs_require__){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;
"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.Metadata=void 0;var _util=__w_pdfjs_require__(1),_xml_parser=__w_pdfjs_require__(196);module=function(){function Metadata(data){if(!(this instanceof
Metadata))throw new TypeError("Cannot call a class as a function");(0,_util.assert)("string"===typeof data,"Metadata: input is not a string");data=this._repair(data);data=(new _xml_parser.SimpleXMLParser).parseFromString(data);this._metadata=Object.create(null);data&&this._parse(data)}_createClass(Metadata,[{key:"_repair",value:function(data){return data.replace(/^([^<]+)/,"").replace(/>\\376\\377([^<]+)/g,function(all,codes){all=codes.replace(/\\([0-3])([0-7])([0-7])/g,function(code,d1,d2,d3){return String.fromCharCode(64*
d1+8*d2+1*d3)}).replace(/&(amp|apos|gt|lt|quot);/g,function(str,name){switch(name){case "amp":return"&";case "apos":return"'";case "gt":return">";case "lt":return"<";case "quot":return'"'}throw Error("_repair: ".concat(name," isn't defined."));});codes="";for(var i=0,ii=all.length;i<ii;i+=2){var code$jscomp$0=256*all.charCodeAt(i)+all.charCodeAt(i+1);codes=32<=code$jscomp$0&&127>code$jscomp$0&&60!==code$jscomp$0&&62!==code$jscomp$0&&38!==code$jscomp$0?codes+String.fromCharCode(code$jscomp$0):codes+
("&#x"+(65536+code$jscomp$0).toString(16).substring(1)+";")}return">"+codes})}},{key:"_parse",value:function(xmlDocument){xmlDocument=xmlDocument.documentElement;if("rdf:rdf"!==xmlDocument.nodeName.toLowerCase())for(xmlDocument=xmlDocument.firstChild;xmlDocument&&"rdf:rdf"!==xmlDocument.nodeName.toLowerCase();)xmlDocument=xmlDocument.nextSibling;var nodeName=xmlDocument?xmlDocument.nodeName.toLowerCase():null;if(xmlDocument&&"rdf:rdf"===nodeName&&xmlDocument.hasChildNodes()){xmlDocument=xmlDocument.childNodes;
nodeName=0;for(var ii=xmlDocument.length;nodeName<ii;nodeName++){var desc=xmlDocument[nodeName];if("rdf:description"===desc.nodeName.toLowerCase())for(var j=0,jj=desc.childNodes.length;j<jj;j++)if("#text"!==desc.childNodes[j].nodeName.toLowerCase()){var entry=desc.childNodes[j],name=entry.nodeName.toLowerCase();this._metadata[name]=entry.textContent.trim()}}}}},{key:"get",value:function(name){name=this._metadata[name];return"undefined"!==typeof name?name:null}},{key:"getAll",value:function(){return this._metadata}},
{key:"has",value:function(name){return"undefined"!==typeof this._metadata[name]}}]);return Metadata}();exports.Metadata=module},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _get(target$jscomp$0,property$jscomp$0,
receiver$jscomp$0){_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(target,property,receiver){for(;!Object.prototype.hasOwnProperty.call(target,property)&&(target=_getPrototypeOf(target),null!==target););if(target)return property=Object.getOwnPropertyDescriptor(target,property),property.get?property.get.call(receiver):property.value};return _get(target$jscomp$0,property$jscomp$0,receiver$jscomp$0||target$jscomp$0)}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?
Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=
Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,
descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function isWhitespace(s,index){s=s[index];return" "===s||"\n"===s||"\r"===s||"\t"===s}Object.defineProperty(exports,"__esModule",{value:!0});exports.SimpleXMLParser=void 0;module=function(){function XMLParserBase(){_classCallCheck(this,XMLParserBase)}_createClass(XMLParserBase,[{key:"_resolveEntities",
value:function(s){var _this=this;return s.replace(/&([^;]+);/g,function(all,entity){if("#x"===entity.substring(0,2))return String.fromCharCode(parseInt(entity.substring(2),16));if("#"===entity.substring(0,1))return String.fromCharCode(parseInt(entity.substring(1),10));switch(entity){case "lt":return"<";case "gt":return">";case "amp":return"&";case "quot":return'"'}return _this.onResolveEntity(entity)})}},{key:"_parseContent",value:function(s,start){function skipWs(){for(;pos<s.length&&isWhitespace(s,
pos);)++pos}for(var pos=start,name,attributes=[];pos<s.length&&!isWhitespace(s,pos)&&">"!==s[pos]&&"/"!==s[pos];)++pos;name=s.substring(start,pos);for(skipWs();pos<s.length&&">"!==s[pos]&&"/"!==s[pos]&&"?"!==s[pos];){skipWs();for(var attrName="",attrValue="";pos<s.length&&!isWhitespace(s,pos)&&"="!==s[pos];)attrName+=s[pos],++pos;skipWs();if("="!==s[pos])return null;++pos;skipWs();attrValue=s[pos];if('"'!==attrValue&&"'"!==attrValue)return null;var attrEndIndex=s.indexOf(attrValue,++pos);if(0>attrEndIndex)return null;
attrValue=s.substring(pos,attrEndIndex);attributes.push({name:attrName,value:this._resolveEntities(attrValue)});pos=attrEndIndex+1;skipWs()}return{name:name,attributes:attributes,parsed:pos-start}}},{key:"_parseProcessingInstruction",value:function(s,start){for(var pos=start,name;pos<s.length&&!isWhitespace(s,pos)&&">"!==s[pos]&&"/"!==s[pos];)++pos;for(name=s.substring(start,pos);pos<s.length&&isWhitespace(s,pos);)++pos;for(var attrStart=pos;pos<s.length&&("?"!==s[pos]||">"!==s[pos+1]);)++pos;s=s.substring(attrStart,
pos);return{name:name,value:s,parsed:pos-start}}},{key:"parseXml",value:function(s){for(var i=0;i<s.length;){var j=i;if("<"===s[i])switch(++j,s[j]){case "/":++j;i=s.indexOf(">",j);if(0>i){this.onError(-9);return}this.onEndElement(s.substring(j,i));j=i+1;break;case "?":++j;i=this._parseProcessingInstruction(s,j);if("?>"!==s.substring(j+i.parsed,j+i.parsed+2)){this.onError(-3);return}this.onPi(i.name,i.value);j+=i.parsed+2;break;case "!":if("--"===s.substring(j+1,j+3)){i=s.indexOf("--\x3e",j+3);if(0>
i){this.onError(-5);return}this.onComment(s.substring(j+3,i));j=i+3}else if("[CDATA["===s.substring(j+1,j+8)){i=s.indexOf("]]\x3e",j+8);if(0>i){this.onError(-2);return}this.onCdata(s.substring(j+8,i));j=i+3}else if("DOCTYPE"===s.substring(j+1,j+8)){var q2=s.indexOf("[",j+8),complexDoctype=!1;i=s.indexOf(">",j+8);if(0>i){this.onError(-4);return}if(0<q2&&i>q2){i=s.indexOf("]>",j+8);if(0>i){this.onError(-4);return}complexDoctype=!0}j=s.substring(j+8,i+(complexDoctype?1:0));this.onDoctype(j);j=i+(complexDoctype?
2:1)}else{this.onError(-6);return}break;default:i=this._parseContent(s,j);if(null===i){this.onError(-6);return}complexDoctype=!1;if("/>"===s.substring(j+i.parsed,j+i.parsed+2))complexDoctype=!0;else if(">"!==s.substring(j+i.parsed,j+i.parsed+1)){this.onError(-9);return}this.onBeginElement(i.name,i.attributes,complexDoctype);j+=i.parsed+(complexDoctype?2:1)}else{for(;j<s.length&&"<"!==s[j];)j++;i=s.substring(i,j);this.onText(this._resolveEntities(i))}i=j}}},{key:"onResolveEntity",value:function(name){return"&".concat(name,
";")}},{key:"onPi",value:function(name,value){}},{key:"onComment",value:function(text){}},{key:"onCdata",value:function(text){}},{key:"onDoctype",value:function(doctypeContent){}},{key:"onText",value:function(text){}},{key:"onBeginElement",value:function(name,attributes,isEmpty){}},{key:"onEndElement",value:function(name){}},{key:"onError",value:function(code){}}]);return XMLParserBase}();var SimpleDOMNode=function(){function SimpleDOMNode(nodeName,nodeValue){_classCallCheck(this,SimpleDOMNode);this.nodeName=
nodeName;this.nodeValue=nodeValue;Object.defineProperty(this,"parentNode",{value:null,writable:!0})}_createClass(SimpleDOMNode,[{key:"hasChildNodes",value:function(){return this.childNodes&&0<this.childNodes.length}},{key:"firstChild",get:function(){return this.childNodes&&this.childNodes[0]}},{key:"nextSibling",get:function(){var childNodes=this.parentNode.childNodes;if(childNodes){var index=childNodes.indexOf(this);if(-1!==index)return childNodes[index+1]}}},{key:"textContent",get:function(){return this.childNodes?
this.childNodes.map(function(child){return child.textContent}).join(""):this.nodeValue||""}}]);return SimpleDOMNode}();module=function(_XMLParserBase){function SimpleXMLParser(){_classCallCheck(this,SimpleXMLParser);var _this2=_getPrototypeOf(SimpleXMLParser).call(this);if(!_this2||"object"!==_typeof(_this2)&&"function"!==typeof _this2){if(void 0===this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");_this2=this}_this2._currentFragment=null;_this2._stack=null;
_this2._errorCode=0;return _this2}_inherits(SimpleXMLParser,_XMLParserBase);_createClass(SimpleXMLParser,[{key:"parseFromString",value:function(data){this._currentFragment=[];this._stack=[];this._errorCode=0;this.parseXml(data);if(0===this._errorCode){data=this._currentFragment;var JSCompiler_temp=Array.isArray(data)?data:void 0;if(!JSCompiler_temp)if(Symbol.iterator in Object(data)||"[object Arguments]"===Object.prototype.toString.call(data)){JSCompiler_temp=[];var _n=!0,_d=!1,_e=void 0;try{var JSCompiler_temp$jscomp$0=
data[Symbol.iterator]();for(var _s;!(_n=(_s=JSCompiler_temp$jscomp$0.next()).done)&&(JSCompiler_temp.push(_s.value),1!==JSCompiler_temp.length);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=JSCompiler_temp$jscomp$0["return"])JSCompiler_temp$jscomp$0["return"]()}finally{if(_d)throw _e;}}}else JSCompiler_temp=void 0;if(!(JSCompiler_temp$jscomp$0=JSCompiler_temp))throw new TypeError("Invalid attempt to destructure non-iterable instance");if(JSCompiler_temp$jscomp$0=JSCompiler_temp$jscomp$0[0])return{documentElement:JSCompiler_temp$jscomp$0}}}},
{key:"onResolveEntity",value:function(name){switch(name){case "apos":return"'"}return _get(_getPrototypeOf(SimpleXMLParser.prototype),"onResolveEntity",this).call(this,name)}},{key:"onText",value:function(text){a:{var JSCompiler_inline_result=0;for(var ii=text.length;JSCompiler_inline_result<ii;JSCompiler_inline_result++)if(!isWhitespace(text,JSCompiler_inline_result)){JSCompiler_inline_result=!1;break a}JSCompiler_inline_result=!0}JSCompiler_inline_result||(text=new SimpleDOMNode("#text",text),this._currentFragment.push(text))}},
{key:"onCdata",value:function(text){text=new SimpleDOMNode("#text",text);this._currentFragment.push(text)}},{key:"onBeginElement",value:function(name,attributes,isEmpty){name=new SimpleDOMNode(name);name.childNodes=[];this._currentFragment.push(name);isEmpty||(this._stack.push(this._currentFragment),this._currentFragment=name.childNodes)}},{key:"onEndElement",value:function(name){this._currentFragment=this._stack.pop()||[];if(name=this._currentFragment[this._currentFragment.length-1])for(var i=0,
ii=name.childNodes.length;i<ii;i++)name.childNodes[i].parentNode=name}},{key:"onError",value:function(code){this._errorCode=code}}]);return SimpleXMLParser}(module);exports.SimpleXMLParser=module},function(module,exports,__w_pdfjs_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=
this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=
props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.PDFDataTransportStream=void 0;var _regenerator=function(obj){return obj&&
obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1);module=function(){function PDFDataTransportStream(params,pdfDataRangeTransport){var _this=this;_classCallCheck(this,PDFDataTransportStream);(0,_util.assert)(pdfDataRangeTransport);this._queuedChunks=[];this._progressiveDone=params.progressiveDone||!1;var initialData=params.initialData;initialData&&0<initialData.length&&(initialData=(new Uint8Array(initialData)).buffer,this._queuedChunks.push(initialData));this._pdfDataRangeTransport=
pdfDataRangeTransport;this._isStreamingSupported=!params.disableStream;this._isRangeSupported=!params.disableRange;this._contentLength=params.length;this._fullRequestReader=null;this._rangeReaders=[];this._pdfDataRangeTransport.addRangeListener(function(begin,chunk){_this._onReceiveData({begin:begin,chunk:chunk})});this._pdfDataRangeTransport.addProgressListener(function(loaded,total){_this._onProgress({loaded:loaded,total:total})});this._pdfDataRangeTransport.addProgressiveReadListener(function(chunk){_this._onReceiveData({chunk:chunk})});
this._pdfDataRangeTransport.addProgressiveDoneListener(function(){_this._onProgressiveDone()});this._pdfDataRangeTransport.transportReady()}_createClass(PDFDataTransportStream,[{key:"_onReceiveData",value:function(args){var buffer=(new Uint8Array(args.chunk)).buffer;if(void 0===args.begin)this._fullRequestReader?this._fullRequestReader._enqueue(buffer):this._queuedChunks.push(buffer);else{var found=this._rangeReaders.some(function(rangeReader){if(rangeReader._begin!==args.begin)return!1;rangeReader._enqueue(buffer);
return!0});(0,_util.assert)(found)}}},{key:"_onProgress",value:function(evt){if(void 0===evt.total){var firstReader=this._rangeReaders[0];if(firstReader&&firstReader.onProgress)firstReader.onProgress({loaded:evt.loaded})}else if((firstReader=this._fullRequestReader)&&firstReader.onProgress)firstReader.onProgress({loaded:evt.loaded,total:evt.total})}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone();this._progressiveDone=!0}},{key:"_removeRangeReader",
value:function(reader){reader=this._rangeReaders.indexOf(reader);0<=reader&&this._rangeReaders.splice(reader,1)}},{key:"getFullReader",value:function(){(0,_util.assert)(!this._fullRequestReader);var queuedChunks=this._queuedChunks;this._queuedChunks=null;return new PDFDataTransportStreamReader(this,queuedChunks,this._progressiveDone)}},{key:"getRangeReader",value:function(begin,end){if(end<=this._progressiveDataLength)return null;var reader=new PDFDataTransportStreamRangeReader(this,begin,end);this._pdfDataRangeTransport.requestDataRange(begin,
end);this._rangeReaders.push(reader);return reader}},{key:"cancelAllRequests",value:function(reason){this._fullRequestReader&&this._fullRequestReader.cancel(reason);this._rangeReaders.slice(0).forEach(function(rangeReader){rangeReader.cancel(reason)});this._pdfDataRangeTransport.abort()}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]);return PDFDataTransportStream}();exports.PDFDataTransportStream=module;var PDFDataTransportStreamReader=
function(){function PDFDataTransportStreamReader(stream,queuedChunks){var progressiveDone=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;_classCallCheck(this,PDFDataTransportStreamReader);this._stream=stream;this._done=progressiveDone||!1;this._filename=null;this._queuedChunks=queuedChunks||[];this._loaded=0;progressiveDone=!0;var _didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=this._queuedChunks[Symbol.iterator](),_step;!(progressiveDone=(_step=_iterator.next()).done);progressiveDone=
!0)this._loaded+=_step.value.byteLength}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{if(!progressiveDone&&null!=_iterator["return"])_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError;}}this._requests=[];this._headersReady=Promise.resolve();stream._fullRequestReader=this;this.onProgress=null}_createClass(PDFDataTransportStreamReader,[{key:"_enqueue",value:function(chunk){this._done||(0<this._requests.length?this._requests.shift().resolve({value:chunk,done:!1}):
this._queuedChunks.push(chunk),this._loaded+=chunk.byteLength)}},{key:"read",value:function(){var _read=_asyncToGenerator(_regenerator["default"].mark(function _callee(){var chunk,requestCapability;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!(0<this._queuedChunks.length)){_context.next=3;break}chunk=this._queuedChunks.shift();return _context.abrupt("return",{value:chunk,done:!1});case 3:if(!this._done){_context.next=5;break}return _context.abrupt("return",
{value:void 0,done:!0});case 5:return requestCapability=(0,_util.createPromiseCapability)(),this._requests.push(requestCapability),_context.abrupt("return",requestCapability.promise);case 8:case "end":return _context.stop()}},_callee,this)}));return function(){return _read.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._done=!0;this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})});this._requests=[]}},{key:"progressiveDone",value:function(){this._done||
(this._done=!0)}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}}]);return PDFDataTransportStreamReader}(),PDFDataTransportStreamRangeReader=function(){function PDFDataTransportStreamRangeReader(stream,
begin,end){_classCallCheck(this,PDFDataTransportStreamRangeReader);this._stream=stream;this._begin=begin;this._end=end;this._queuedChunk=null;this._requests=[];this._done=!1;this.onProgress=null}_createClass(PDFDataTransportStreamRangeReader,[{key:"_enqueue",value:function(chunk){this._done||(0===this._requests.length?this._queuedChunk=chunk:(this._requests.shift().resolve({value:chunk,done:!1}),this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})}),
this._requests=[]),this._done=!0,this._stream._removeRangeReader(this))}},{key:"read",value:function(){var _read2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){var chunk,requestCapability;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(!this._queuedChunk){_context2.next=4;break}chunk=this._queuedChunk;this._queuedChunk=null;return _context2.abrupt("return",{value:chunk,done:!1});case 4:if(!this._done){_context2.next=
6;break}return _context2.abrupt("return",{value:void 0,done:!0});case 6:return requestCapability=(0,_util.createPromiseCapability)(),this._requests.push(requestCapability),_context2.abrupt("return",requestCapability.promise);case 9:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._done=!0;this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})});this._requests=
[];this._stream._removeRangeReader(this)}},{key:"isStreamingSupported",get:function(){return!1}}]);return PDFDataTransportStreamRangeReader}()},function(module,exports,__w_pdfjs_require__){function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,
staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.WebGLContext=void 0;var _util=__w_pdfjs_require__(1);module=function(){function WebGLContext(_ref){_ref=_ref.enable;_ref=void 0===_ref?!1:_ref;if(!(this instanceof WebGLContext))throw new TypeError("Cannot call a class as a function");this._enabled=!0===_ref}_createClass(WebGLContext,[{key:"composeSMask",
value:function(_ref2){return WebGLUtils.composeSMask(_ref2.layer,_ref2.mask,_ref2.properties)}},{key:"drawFigures",value:function(_ref3){return WebGLUtils.drawFigures(_ref3.width,_ref3.height,_ref3.backgroundColor,_ref3.figures,_ref3.context)}},{key:"clear",value:function(){WebGLUtils.cleanup()}},{key:"isEnabled",get:function(){var enabled=this._enabled;enabled&&(enabled=WebGLUtils.tryInitGL());return(0,_util.shadow)(this,"isEnabled",enabled)}}]);return WebGLContext}();exports.WebGLContext=module;
var WebGLUtils=function(){function loadShader(gl,code,shaderType){shaderType=gl.createShader(shaderType);gl.shaderSource(shaderType,code);gl.compileShader(shaderType);if(!gl.getShaderParameter(shaderType,gl.COMPILE_STATUS))throw gl=gl.getShaderInfoLog(shaderType),Error("Error during shader compilation: "+gl);return shaderType}function createProgram(gl,shaders){for(var program=gl.createProgram(),i=0,ii=shaders.length;i<ii;++i)gl.attachShader(program,shaders[i]);gl.linkProgram(program);if(!gl.getProgramParameter(program,
gl.LINK_STATUS))throw gl=gl.getProgramInfoLog(program),Error("Error during program linking: "+gl);return program}function createTexture(gl,image,textureId){gl.activeTexture(textureId);textureId=gl.createTexture();gl.bindTexture(gl.TEXTURE_2D,textureId);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_S,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_WRAP_T,gl.CLAMP_TO_EDGE);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MIN_FILTER,gl.NEAREST);gl.texParameteri(gl.TEXTURE_2D,gl.TEXTURE_MAG_FILTER,
gl.NEAREST);gl.texImage2D(gl.TEXTURE_2D,0,gl.RGBA,gl.RGBA,gl.UNSIGNED_BYTE,image);return textureId}function generateGL(){currentGL||(currentCanvas=document.createElement("canvas"),currentGL=currentCanvas.getContext("webgl",{premultipliedalpha:!1}))}var currentGL,currentCanvas,smaskCache=null,figuresCache=null;return{tryInitGL:function(){try{return generateGL(),!!currentGL}catch(ex){}return!1},composeSMask:function(layer,mask,properties){var width=layer.width,height=layer.height;if(!smaskCache){generateGL();
var canvas=currentCanvas;currentCanvas=null;var gl=currentGL;currentGL=null;var vertexShader=loadShader(gl,"  attribute vec2 a_position;                                      attribute vec2 a_texCoord;                                                                                                      uniform vec2 u_resolution;                                                                                                      varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec2 clipSpace = (a_position / u_resolution) * 2.0 - 1.0;       gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_texCoord = a_texCoord;                                      }                                                             ",
gl.VERTEX_SHADER),fragmentShader=loadShader(gl,"  precision mediump float;                                                                                                        uniform vec4 u_backdrop;                                        uniform int u_subtype;                                          uniform sampler2D u_image;                                      uniform sampler2D u_mask;                                                                                                       varying vec2 v_texCoord;                                                                                                        void main() {                                                     vec4 imageColor = texture2D(u_image, v_texCoord);               vec4 maskColor = texture2D(u_mask, v_texCoord);                 if (u_backdrop.a > 0.0) {                                         maskColor.rgb = maskColor.rgb * maskColor.a +                                   u_backdrop.rgb * (1.0 - maskColor.a);         }                                                               float lum;                                                      if (u_subtype == 0) {                                             lum = maskColor.a;                                            } else {                                                          lum = maskColor.r * 0.3 + maskColor.g * 0.59 +                        maskColor.b * 0.11;                                     }                                                               imageColor.a *= lum;                                            imageColor.rgb *= imageColor.a;                                 gl_FragColor = imageColor;                                    }                                                             ",
gl.FRAGMENT_SHADER),program=createProgram(gl,[vertexShader,fragmentShader]);gl.useProgram(program);vertexShader={};vertexShader.gl=gl;vertexShader.canvas=canvas;vertexShader.resolutionLocation=gl.getUniformLocation(program,"u_resolution");vertexShader.positionLocation=gl.getAttribLocation(program,"a_position");vertexShader.backdropLocation=gl.getUniformLocation(program,"u_backdrop");vertexShader.subtypeLocation=gl.getUniformLocation(program,"u_subtype");canvas=gl.getAttribLocation(program,"a_texCoord");
fragmentShader=gl.getUniformLocation(program,"u_image");program=gl.getUniformLocation(program,"u_mask");var texCoordBuffer=gl.createBuffer();gl.bindBuffer(gl.ARRAY_BUFFER,texCoordBuffer);gl.bufferData(gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),gl.STATIC_DRAW);gl.enableVertexAttribArray(canvas);gl.vertexAttribPointer(canvas,2,gl.FLOAT,!1,0,0);gl.uniform1i(fragmentShader,0);gl.uniform1i(program,1);smaskCache=vertexShader}gl=smaskCache;vertexShader=gl.canvas;canvas=gl.gl;vertexShader.width=
width;vertexShader.height=height;canvas.viewport(0,0,canvas.drawingBufferWidth,canvas.drawingBufferHeight);canvas.uniform2f(gl.resolutionLocation,width,height);properties.backdrop?canvas.uniform4f(gl.resolutionLocation,properties.backdrop[0],properties.backdrop[1],properties.backdrop[2],1):canvas.uniform4f(gl.resolutionLocation,0,0,0,0);canvas.uniform1i(gl.subtypeLocation,"Luminosity"===properties.subtype?1:0);layer=createTexture(canvas,layer,canvas.TEXTURE0);mask=createTexture(canvas,mask,canvas.TEXTURE1);
properties=canvas.createBuffer();canvas.bindBuffer(canvas.ARRAY_BUFFER,properties);canvas.bufferData(canvas.ARRAY_BUFFER,new Float32Array([0,0,width,0,0,height,0,height,width,0,width,height]),canvas.STATIC_DRAW);canvas.enableVertexAttribArray(gl.positionLocation);canvas.vertexAttribPointer(gl.positionLocation,2,canvas.FLOAT,!1,0,0);canvas.clearColor(0,0,0,0);canvas.enable(canvas.BLEND);canvas.blendFunc(canvas.ONE,canvas.ONE_MINUS_SRC_ALPHA);canvas.clear(canvas.COLOR_BUFFER_BIT);canvas.drawArrays(canvas.TRIANGLES,
0,6);canvas.flush();canvas.deleteTexture(layer);canvas.deleteTexture(mask);canvas.deleteBuffer(properties);return vertexShader},drawFigures:function(width,height,backgroundColor,figures,context){if(!figuresCache){generateGL();var canvas=currentCanvas;currentCanvas=null;var gl=currentGL;currentGL=null;var vertexShader=loadShader(gl,"  attribute vec2 a_position;                                      attribute vec3 a_color;                                                                                                         uniform vec2 u_resolution;                                      uniform vec2 u_scale;                                           uniform vec2 u_offset;                                                                                                          varying vec4 v_color;                                                                                                           void main() {                                                     vec2 position = (a_position + u_offset) * u_scale;              vec2 clipSpace = (position / u_resolution) * 2.0 - 1.0;         gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);                                                                              v_color = vec4(a_color / 255.0, 1.0);                         }                                                             ",
gl.VERTEX_SHADER),fragmentShader=loadShader(gl,"  precision mediump float;                                                                                                        varying vec4 v_color;                                                                                                           void main() {                                                     gl_FragColor = v_color;                                       }                                                             ",gl.FRAGMENT_SHADER);
vertexShader=createProgram(gl,[vertexShader,fragmentShader]);gl.useProgram(vertexShader);fragmentShader={};fragmentShader.gl=gl;fragmentShader.canvas=canvas;fragmentShader.resolutionLocation=gl.getUniformLocation(vertexShader,"u_resolution");fragmentShader.scaleLocation=gl.getUniformLocation(vertexShader,"u_scale");fragmentShader.offsetLocation=gl.getUniformLocation(vertexShader,"u_offset");fragmentShader.positionLocation=gl.getAttribLocation(vertexShader,"a_position");fragmentShader.colorLocation=
gl.getAttribLocation(vertexShader,"a_color");figuresCache=fragmentShader}canvas=figuresCache;gl=canvas.canvas;vertexShader=canvas.gl;gl.width=width;gl.height=height;vertexShader.viewport(0,0,vertexShader.drawingBufferWidth,vertexShader.drawingBufferHeight);vertexShader.uniform2f(canvas.resolutionLocation,width,height);width=0;var ii;var i=0;for(ii=figures.length;i<ii;i++)switch(figures[i].type){case "lattice":var rows=figures[i].coords.length/figures[i].verticesPerRow|0;width+=(rows-1)*(figures[i].verticesPerRow-
1)*6;break;case "triangles":width+=figures[i].coords.length}fragmentShader=new Float32Array(2*width);height=new Uint8Array(3*width);var coordsMap=context.coords,colorsMap=context.colors,pIndex=0,cIndex=0;i=0;for(ii=figures.length;i<ii;i++){rows=figures[i];var ps=rows.coords,cs=rows.colors;switch(rows.type){case "lattice":var cols=rows.verticesPerRow;rows=ps.length/cols|0;for(var row=1;row<rows;row++)for(var offset=row*cols+1,col=1;col<cols;col++,offset++)fragmentShader[pIndex]=coordsMap[ps[offset-
cols-1]],fragmentShader[pIndex+1]=coordsMap[ps[offset-cols-1]+1],fragmentShader[pIndex+2]=coordsMap[ps[offset-cols]],fragmentShader[pIndex+3]=coordsMap[ps[offset-cols]+1],fragmentShader[pIndex+4]=coordsMap[ps[offset-1]],fragmentShader[pIndex+5]=coordsMap[ps[offset-1]+1],height[cIndex]=colorsMap[cs[offset-cols-1]],height[cIndex+1]=colorsMap[cs[offset-cols-1]+1],height[cIndex+2]=colorsMap[cs[offset-cols-1]+2],height[cIndex+3]=colorsMap[cs[offset-cols]],height[cIndex+4]=colorsMap[cs[offset-cols]+1],
height[cIndex+5]=colorsMap[cs[offset-cols]+2],height[cIndex+6]=colorsMap[cs[offset-1]],height[cIndex+7]=colorsMap[cs[offset-1]+1],height[cIndex+8]=colorsMap[cs[offset-1]+2],fragmentShader[pIndex+6]=fragmentShader[pIndex+2],fragmentShader[pIndex+7]=fragmentShader[pIndex+3],fragmentShader[pIndex+8]=fragmentShader[pIndex+4],fragmentShader[pIndex+9]=fragmentShader[pIndex+5],fragmentShader[pIndex+10]=coordsMap[ps[offset]],fragmentShader[pIndex+11]=coordsMap[ps[offset]+1],height[cIndex+9]=height[cIndex+
3],height[cIndex+10]=height[cIndex+4],height[cIndex+11]=height[cIndex+5],height[cIndex+12]=height[cIndex+6],height[cIndex+13]=height[cIndex+7],height[cIndex+14]=height[cIndex+8],height[cIndex+15]=colorsMap[cs[offset]],height[cIndex+16]=colorsMap[cs[offset]+1],height[cIndex+17]=colorsMap[cs[offset]+2],pIndex+=12,cIndex+=18;break;case "triangles":for(rows=0,cols=ps.length;rows<cols;rows++)fragmentShader[pIndex]=coordsMap[ps[rows]],fragmentShader[pIndex+1]=coordsMap[ps[rows]+1],height[cIndex]=colorsMap[cs[rows]],
height[cIndex+1]=colorsMap[cs[rows]+1],height[cIndex+2]=colorsMap[cs[rows]+2],pIndex+=2,cIndex+=3}}backgroundColor?vertexShader.clearColor(backgroundColor[0]/255,backgroundColor[1]/255,backgroundColor[2]/255,1):vertexShader.clearColor(0,0,0,0);vertexShader.clear(vertexShader.COLOR_BUFFER_BIT);backgroundColor=vertexShader.createBuffer();vertexShader.bindBuffer(vertexShader.ARRAY_BUFFER,backgroundColor);vertexShader.bufferData(vertexShader.ARRAY_BUFFER,fragmentShader,vertexShader.STATIC_DRAW);vertexShader.enableVertexAttribArray(canvas.positionLocation);
vertexShader.vertexAttribPointer(canvas.positionLocation,2,vertexShader.FLOAT,!1,0,0);figures=vertexShader.createBuffer();vertexShader.bindBuffer(vertexShader.ARRAY_BUFFER,figures);vertexShader.bufferData(vertexShader.ARRAY_BUFFER,height,vertexShader.STATIC_DRAW);vertexShader.enableVertexAttribArray(canvas.colorLocation);vertexShader.vertexAttribPointer(canvas.colorLocation,3,vertexShader.UNSIGNED_BYTE,!1,0,0);vertexShader.uniform2f(canvas.scaleLocation,context.scaleX,context.scaleY);vertexShader.uniform2f(canvas.offsetLocation,
context.offsetX,context.offsetY);vertexShader.drawArrays(vertexShader.TRIANGLES,0,width);vertexShader.flush();vertexShader.deleteBuffer(backgroundColor);vertexShader.deleteBuffer(figures);return gl},cleanup:function(){smaskCache&&smaskCache.canvas&&(smaskCache.canvas.width=0,smaskCache.canvas.height=0);figuresCache&&figuresCache.canvas&&(figuresCache.canvas.width=0,figuresCache.canvas.height=0);figuresCache=smaskCache=null}}}()},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,
"__esModule",{value:!0});exports.renderTextLayer=void 0;var _util=__w_pdfjs_require__(1);module=function(){function render(task){if(!task._canceled){var textDivs=task._textDivs,capability=task._capability,textDivsLength=textDivs.length;if(!(1E5<textDivsLength||task._textContentStream))for(var i=0;i<textDivsLength;i++)task._layoutText(textDivs[i]);task._renderingDone=!0;capability.resolve()}}function expand(task){var bounds=task._bounds,viewport=task._viewport;viewport=expandBounds(viewport.width,
viewport.height,bounds);for(var i$jscomp$0=0;i$jscomp$0<viewport.length;i$jscomp$0++){var div=bounds[i$jscomp$0].div,divProperties=task._textDivProperties.get(div);if(0===divProperties.angle)divProperties.paddingLeft=bounds[i$jscomp$0].left-viewport[i$jscomp$0].left,divProperties.paddingTop=bounds[i$jscomp$0].top-viewport[i$jscomp$0].top,divProperties.paddingRight=viewport[i$jscomp$0].right-bounds[i$jscomp$0].right,divProperties.paddingBottom=viewport[i$jscomp$0].bottom-bounds[i$jscomp$0].bottom;
else{var e=viewport[i$jscomp$0],b=bounds[i$jscomp$0],m=b.m,c=m[0],s=m[1];b=[[0,0],[0,b.size[1]],[b.size[0],0],b.size];var ts=new Float64Array(64);b.forEach(function(p,i){p=_util.Util.applyTransform(p,m);ts[i+0]=c&&(e.left-p[0])/c;ts[i+4]=s&&(e.top-p[1])/s;ts[i+8]=c&&(e.right-p[0])/c;ts[i+12]=s&&(e.bottom-p[1])/s;ts[i+16]=s&&(e.left-p[0])/-s;ts[i+20]=c&&(e.top-p[1])/c;ts[i+24]=s&&(e.right-p[0])/-s;ts[i+28]=c&&(e.bottom-p[1])/c;ts[i+32]=c&&(e.left-p[0])/-c;ts[i+36]=s&&(e.top-p[1])/-s;ts[i+40]=c&&(e.right-
p[0])/-c;ts[i+44]=s&&(e.bottom-p[1])/-s;ts[i+48]=s&&(e.left-p[0])/s;ts[i+52]=c&&(e.top-p[1])/-c;ts[i+56]=s&&(e.right-p[0])/s;ts[i+60]=c&&(e.bottom-p[1])/-c});b=function(ts,offset,count){for(var result=0,i=0;i<count;i++){var t=ts[offset++];0<t&&(result=result?Math.min(t,result):t)}return result};var boxScale=1+Math.min(Math.abs(c),Math.abs(s));divProperties.paddingLeft=b(ts,32,16)/boxScale;divProperties.paddingTop=b(ts,48,16)/boxScale;divProperties.paddingRight=b(ts,0,16)/boxScale;divProperties.paddingBottom=
b(ts,16,16)/boxScale}task._textDivProperties.set(div,divProperties)}}function expandBounds(width,height,boxes){var bounds=boxes.map(function(box,i){return{x1:box.left,y1:box.top,x2:box.right,y2:box.bottom,index:i,x1New:void 0,x2New:void 0}});expandBoundsLTR(width,bounds);var expanded=Array(boxes.length);bounds.forEach(function(b){expanded[b.index]={left:b.x1New,top:0,right:b.x2New,bottom:0}});boxes.map(function(box,i){var e=expanded[i],b=bounds[i];b.x1=box.top;b.y1=width-e.right;b.x2=box.bottom;b.y2=
width-e.left;b.index=i;b.x1New=void 0;b.x2New=void 0});expandBoundsLTR(height,bounds);bounds.forEach(function(b){var i=b.index;expanded[i].top=b.x1New;expanded[i].bottom=b.x2New});return expanded}function expandBoundsLTR(width,bounds){bounds.sort(function(a,b){return a.x1-b.x1||a.index-b.index});var horizon=[{start:-Infinity,end:Infinity,boundary:{x1:-Infinity,y1:-Infinity,x2:0,y2:Infinity,index:-1,x1New:0,x2New:0}}];bounds.forEach(function(boundary){for(var i=0;i<horizon.length&&horizon[i].end<=
boundary.y1;)i++;for(var j=horizon.length-1;0<=j&&horizon[j].start>=boundary.y2;)j--;var q,maxXNew=-Infinity;for(q=i;q<=j;q++){var horizonPart=horizon[q];var affectedBoundary=horizonPart.boundary;var xNew=affectedBoundary.x2>boundary.x1?affectedBoundary.index>boundary.index?affectedBoundary.x1New:boundary.x1:void 0===affectedBoundary.x2New?(affectedBoundary.x2+boundary.x1)/2:affectedBoundary.x2New;xNew>maxXNew&&(maxXNew=xNew)}boundary.x1New=maxXNew;for(q=i;q<=j;q++)horizonPart=horizon[q],affectedBoundary=
horizonPart.boundary,void 0===affectedBoundary.x2New?affectedBoundary.x2>boundary.x1?affectedBoundary.index>boundary.index&&(affectedBoundary.x2New=affectedBoundary.x2):affectedBoundary.x2New=maxXNew:affectedBoundary.x2New>maxXNew&&(affectedBoundary.x2New=Math.max(maxXNew,affectedBoundary.x2));xNew=[];var lastBoundary=null;for(q=i;q<=j;q++)horizonPart=horizon[q],affectedBoundary=horizonPart.boundary,affectedBoundary=affectedBoundary.x2>boundary.x2?affectedBoundary:boundary,lastBoundary===affectedBoundary?
xNew[xNew.length-1].end=horizonPart.end:(xNew.push({start:horizonPart.start,end:horizonPart.end,boundary:affectedBoundary}),lastBoundary=affectedBoundary);horizon[i].start<boundary.y1&&(xNew[0].start=boundary.y1,xNew.unshift({start:horizon[i].start,end:boundary.y1,boundary:horizon[i].boundary}));boundary.y2<horizon[j].end&&(xNew[xNew.length-1].end=boundary.y2,xNew.push({start:boundary.y2,end:horizon[j].end,boundary:horizon[j].boundary}));for(q=i;q<=j;q++)if(horizonPart=horizon[q],affectedBoundary=
horizonPart.boundary,void 0===affectedBoundary.x2New){horizonPart=!1;for(boundary=i-1;!horizonPart&&0<=boundary&&horizon[boundary].start>=affectedBoundary.y1;boundary--)horizonPart=horizon[boundary].boundary===affectedBoundary;for(boundary=j+1;!horizonPart&&boundary<horizon.length&&horizon[boundary].end<=affectedBoundary.y2;boundary++)horizonPart=horizon[boundary].boundary===affectedBoundary;for(boundary=0;!horizonPart&&boundary<xNew.length;boundary++)horizonPart=xNew[boundary].boundary===affectedBoundary;
horizonPart||(affectedBoundary.x2New=maxXNew)}Array.prototype.splice.apply(horizon,[i,j-i+1].concat(xNew))});horizon.forEach(function(horizonPart){horizonPart=horizonPart.boundary;void 0===horizonPart.x2New&&(horizonPart.x2New=Math.max(width,horizonPart.x2))})}function TextLayerRenderTask(_ref){var _this=this,textContentStream=_ref.textContentStream,container=_ref.container,viewport=_ref.viewport,textDivs=_ref.textDivs,textContentItemsStr=_ref.textContentItemsStr,enhanceTextSelection=_ref.enhanceTextSelection;
this._textContent=_ref.textContent;this._textContentStream=textContentStream;this._container=container;this._viewport=viewport;this._textDivs=textDivs||[];this._textContentItemsStr=textContentItemsStr||[];this._enhanceTextSelection=!!enhanceTextSelection;this._fontInspectorEnabled=!(!globalThis.FontInspector||!globalThis.FontInspector.enabled);this._layoutTextCtx=this._layoutTextLastFontFamily=this._layoutTextLastFontSize=this._reader=null;this._textDivProperties=new WeakMap;this._canceled=this._renderingDone=
!1;this._capability=(0,_util.createPromiseCapability)();this._renderTimer=null;this._bounds=[];this._capability.promise["finally"](function(){_this._layoutTextCtx&&(_this._layoutTextCtx.canvas.width=0,_this._layoutTextCtx.canvas.height=0,_this._layoutTextCtx=null)})["catch"](function(){})}var NonWhitespaceRegexp=/\S/;TextLayerRenderTask.prototype={get promise(){return this._capability.promise},cancel:function(){this._canceled=!0;this._reader&&(this._reader.cancel(new _util.AbortException("TextLayer task cancelled.")),
this._reader=null);null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null);this._capability.reject(Error("TextLayer task cancelled."))},_processItems:function(items,styleCache){for(var i=0,len=items.length;i<len;i++){this._textContentItemsStr.push(items[i].str);var m=void 0,geom=items[i];var left=styleCache;var textDiv=document.createElement("span"),textDivProperties={angle:0,canvasWidth:0,isWhitespace:!1,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,
paddingTop:0,scale:1};this._textDivs.push(textDiv);if(NonWhitespaceRegexp.test(geom.str)){var top=_util.Util.transform(this._viewport.transform,geom.transform);var b=Math.atan2(top[1],top[0]);var style=left[geom.fontName];style.vertical&&(b+=Math.PI/2);var fontHeight=Math.sqrt(top[2]*top[2]+top[3]*top[3]),fontAscent=fontHeight;style.ascent?fontAscent*=style.ascent:style.descent&&(fontAscent*=1+style.descent);0===b?(left=top[4],top=top[5]-fontAscent):(left=top[4]+fontAscent*Math.sin(b),top=top[5]-
fontAscent*Math.cos(b));textDiv.style.left="".concat(left,"px");textDiv.style.top="".concat(top,"px");textDiv.style.fontSize="".concat(fontHeight,"px");textDiv.style.fontFamily=style.fontFamily;textDiv.textContent=geom.str;this._fontInspectorEnabled&&(textDiv.dataset.fontName=geom.fontName);0!==b&&(textDivProperties.angle=180/Math.PI*b);1<geom.str.length&&(textDivProperties.canvasWidth=style.vertical?geom.height*this._viewport.scale:geom.width*this._viewport.scale);this._textDivProperties.set(textDiv,
textDivProperties);this._textContentStream&&this._layoutText(textDiv);this._enhanceTextSelection&&(textDivProperties=1,fontAscent=0,0!==b&&(textDivProperties=Math.cos(b),fontAscent=Math.sin(b)),geom=(style.vertical?geom.height:geom.width)*this._viewport.scale,0!==b?(m=[textDivProperties,fontAscent,-fontAscent,textDivProperties,left,top],b=_util.Util.getAxialAlignedBoundingBox([0,0,geom,fontHeight],m)):b=[left,top,left+geom,top+fontHeight],this._bounds.push({left:b[0],top:b[1],right:b[2],bottom:b[3],
div:textDiv,size:[geom,fontHeight],m:m}))}else textDivProperties.isWhitespace=!0,this._textDivProperties.set(textDiv,textDivProperties)}},_layoutText:function(textDiv){var textDivProperties=this._textDivProperties.get(textDiv);if(!textDivProperties.isWhitespace){var transform="";if(0!==textDivProperties.canvasWidth){var _textDiv$style=textDiv.style,fontSize=_textDiv$style.fontSize;_textDiv$style=_textDiv$style.fontFamily;if(fontSize!==this._layoutTextLastFontSize||_textDiv$style!==this._layoutTextLastFontFamily)this._layoutTextCtx.font=
"".concat(fontSize," ").concat(_textDiv$style),this._layoutTextLastFontSize=fontSize,this._layoutTextLastFontFamily=_textDiv$style;fontSize=this._layoutTextCtx.measureText(textDiv.textContent).width;0<fontSize&&(textDivProperties.scale=textDivProperties.canvasWidth/fontSize,transform="scaleX(".concat(textDivProperties.scale,")"))}0!==textDivProperties.angle&&(transform="rotate(".concat(textDivProperties.angle,"deg) ").concat(transform));0<transform.length&&(this._enhanceTextSelection&&(textDivProperties.originalTransform=
transform),textDiv.style.transform=transform);this._textDivProperties.set(textDiv,textDivProperties);this._container.appendChild(textDiv)}},_render:function(timeout){var _this2=this,capability=(0,_util.createPromiseCapability)(),styleCache=Object.create(null),canvas=document.createElement("canvas");canvas.mozOpaque=!0;this._layoutTextCtx=canvas.getContext("2d",{alpha:!1});if(this._textContent)this._processItems(this._textContent.items,this._textContent.styles),capability.resolve();else if(this._textContentStream)this._reader=
this._textContentStream.getReader(),function pump(){_this2._reader.read().then(function(_ref2){var value=_ref2.value;_ref2.done?capability.resolve():(Object.assign(styleCache,value.styles),_this2._processItems(value.items,styleCache),pump())},capability.reject)}();else throw Error('Neither "textContent" nor "textContentStream" parameters specified.');capability.promise.then(function(){styleCache=null;timeout?_this2._renderTimer=setTimeout(function(){render(_this2);_this2._renderTimer=null},timeout):
render(_this2)},this._capability.reject)},expandTextDivs:function(expandDivs){if(this._enhanceTextSelection&&this._renderingDone){null!==this._bounds&&(expand(this),this._bounds=null);for(var transformBuf=[],paddingBuf=[],i=0,ii=this._textDivs.length;i<ii;i++){var div=this._textDivs[i],divProps=this._textDivProperties.get(div);divProps.isWhitespace||(expandDivs?(transformBuf.length=0,paddingBuf.length=0,divProps.originalTransform&&transformBuf.push(divProps.originalTransform),0<divProps.paddingTop?
(paddingBuf.push("".concat(divProps.paddingTop,"px")),transformBuf.push("translateY(".concat(-divProps.paddingTop,"px)"))):paddingBuf.push(0),0<divProps.paddingRight?paddingBuf.push("".concat(divProps.paddingRight/divProps.scale,"px")):paddingBuf.push(0),0<divProps.paddingBottom?paddingBuf.push("".concat(divProps.paddingBottom,"px")):paddingBuf.push(0),0<divProps.paddingLeft?(paddingBuf.push("".concat(divProps.paddingLeft/divProps.scale,"px")),transformBuf.push("translateX(".concat(-divProps.paddingLeft/
divProps.scale,"px)"))):paddingBuf.push(0),divProps=paddingBuf.join(" "),"0 0 0 0"!==divProps&&(div.style.padding=divProps),transformBuf.length&&(div.style.transform=transformBuf.join(" "))):(div.style.padding=null,div.style.transform=divProps.originalTransform))}}}};return function(renderParameters){var task=new TextLayerRenderTask({textContent:renderParameters.textContent,textContentStream:renderParameters.textContentStream,container:renderParameters.container,viewport:renderParameters.viewport,
textDivs:renderParameters.textDivs,textContentItemsStr:renderParameters.textContentItemsStr,enhanceTextSelection:renderParameters.enhanceTextSelection});task._render(renderParameters.timeout);return task}}();exports.renderTextLayer=module},function(module,exports,__w_pdfjs_require__){function _get(target$jscomp$0,property$jscomp$0,receiver$jscomp$0){_get="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(target,property,receiver){for(;!Object.prototype.hasOwnProperty.call(target,property)&&
(target=_getPrototypeOf(target),null!==target););if(target)return property=Object.getOwnPropertyDescriptor(target,property),property.get?property.get.call(receiver):property.value};return _get(target$jscomp$0,property$jscomp$0,receiver$jscomp$0||target$jscomp$0)}function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?
"symbol":_typeof2(obj)};return _typeof(obj$jscomp$0)}function _possibleConstructorReturn(self,call){return!call||"object"!==_typeof(call)&&"function"!==typeof call?_assertThisInitialized(self):call}function _assertThisInitialized(self){if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};
return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};
return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,
staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.AnnotationLayer=void 0;var _display_utils=__w_pdfjs_require__(188),_util=__w_pdfjs_require__(1),AnnotationElementFactory=function(){function AnnotationElementFactory(){_classCallCheck(this,AnnotationElementFactory)}_createClass(AnnotationElementFactory,null,[{key:"create",value:function(parameters){switch(parameters.data.annotationType){case _util.AnnotationType.LINK:return new LinkAnnotationElement(parameters);
case _util.AnnotationType.TEXT:return new TextAnnotationElement(parameters);case _util.AnnotationType.WIDGET:switch(parameters.data.fieldType){case "Tx":return new TextWidgetAnnotationElement(parameters);case "Btn":return parameters.data.radioButton?new RadioButtonWidgetAnnotationElement(parameters):parameters.data.checkBox?new CheckboxWidgetAnnotationElement(parameters):new PushButtonWidgetAnnotationElement(parameters);case "Ch":return new ChoiceWidgetAnnotationElement(parameters)}return new WidgetAnnotationElement(parameters);
case _util.AnnotationType.POPUP:return new PopupAnnotationElement(parameters);case _util.AnnotationType.FREETEXT:return new FreeTextAnnotationElement(parameters);case _util.AnnotationType.LINE:return new LineAnnotationElement(parameters);case _util.AnnotationType.SQUARE:return new SquareAnnotationElement(parameters);case _util.AnnotationType.CIRCLE:return new CircleAnnotationElement(parameters);case _util.AnnotationType.POLYLINE:return new PolylineAnnotationElement(parameters);case _util.AnnotationType.CARET:return new CaretAnnotationElement(parameters);
case _util.AnnotationType.INK:return new InkAnnotationElement(parameters);case _util.AnnotationType.POLYGON:return new PolygonAnnotationElement(parameters);case _util.AnnotationType.HIGHLIGHT:return new HighlightAnnotationElement(parameters);case _util.AnnotationType.UNDERLINE:return new UnderlineAnnotationElement(parameters);case _util.AnnotationType.SQUIGGLY:return new SquigglyAnnotationElement(parameters);case _util.AnnotationType.STRIKEOUT:return new StrikeOutAnnotationElement(parameters);case _util.AnnotationType.STAMP:return new StampAnnotationElement(parameters);
case _util.AnnotationType.FILEATTACHMENT:return new FileAttachmentAnnotationElement(parameters);default:return new AnnotationElement$jscomp$0(parameters)}}}]);return AnnotationElementFactory}(),AnnotationElement$jscomp$0=function(){function AnnotationElement(parameters){var isRenderable=1<arguments.length&&void 0!==arguments[1]?arguments[1]:!1,ignoreBorder=2<arguments.length&&void 0!==arguments[2]?arguments[2]:!1;_classCallCheck(this,AnnotationElement);this.isRenderable=isRenderable;this.data=parameters.data;
this.layer=parameters.layer;this.page=parameters.page;this.viewport=parameters.viewport;this.linkService=parameters.linkService;this.downloadManager=parameters.downloadManager;this.imageResourcesPath=parameters.imageResourcesPath;this.renderInteractiveForms=parameters.renderInteractiveForms;this.svgFactory=parameters.svgFactory;isRenderable&&(this.container=this._createContainer(ignoreBorder))}_createClass(AnnotationElement,[{key:"_createContainer",value:function(){var ignoreBorder=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:!1,data=this.data,page=this.page,viewport=this.viewport,container=document.createElement("section"),width=data.rect[2]-data.rect[0],height=data.rect[3]-data.rect[1];container.setAttribute("data-annotation-id",data.id);page=_util.Util.normalizeRect([data.rect[0],page.view[3]-data.rect[1]+page.view[1],data.rect[2],page.view[3]-data.rect[3]+page.view[1]]);container.style.transform="matrix(".concat(viewport.transform.join(","),")");container.style.transformOrigin="-".concat(page[0],
"px -").concat(page[1],"px");if(!ignoreBorder&&0<data.borderStyle.width){container.style.borderWidth="".concat(data.borderStyle.width,"px");data.borderStyle.style!==_util.AnnotationBorderStyleType.UNDERLINE&&(width-=2*data.borderStyle.width,height-=2*data.borderStyle.width);ignoreBorder=data.borderStyle.horizontalCornerRadius;viewport=data.borderStyle.verticalCornerRadius;if(0<ignoreBorder||0<viewport)ignoreBorder="".concat(ignoreBorder,"px / ").concat(viewport,"px"),container.style.borderRadius=
ignoreBorder;switch(data.borderStyle.style){case _util.AnnotationBorderStyleType.SOLID:container.style.borderStyle="solid";break;case _util.AnnotationBorderStyleType.DASHED:container.style.borderStyle="dashed";break;case _util.AnnotationBorderStyleType.BEVELED:(0,_util.warn)("Unimplemented border style: beveled");break;case _util.AnnotationBorderStyleType.INSET:(0,_util.warn)("Unimplemented border style: inset");break;case _util.AnnotationBorderStyleType.UNDERLINE:container.style.borderBottomStyle=
"solid"}data.color?container.style.borderColor=_util.Util.makeCssRgb(data.color[0]|0,data.color[1]|0,data.color[2]|0):container.style.borderWidth=0}container.style.left="".concat(page[0],"px");container.style.top="".concat(page[1],"px");container.style.width="".concat(width,"px");container.style.height="".concat(height,"px");return container}},{key:"_createPopup",value:function(container,trigger,data){trigger||(trigger=document.createElement("div"),trigger.style.height=container.style.height,trigger.style.width=
container.style.width,container.appendChild(trigger));trigger=(new PopupElement({container:container,trigger:trigger,color:data.color,title:data.title,modificationDate:data.modificationDate,contents:data.contents,hideWrapper:!0})).render();trigger.style.left=container.style.width;container.appendChild(trigger)}},{key:"render",value:function(){(0,_util.unreachable)("Abstract method `AnnotationElement.render` called")}}]);return AnnotationElement}(),LinkAnnotationElement=function(_AnnotationElement){function LinkAnnotationElement(parameters){_classCallCheck(this,
LinkAnnotationElement);var isRenderable=!!(parameters.data.url||parameters.data.dest||parameters.data.action);return _possibleConstructorReturn(this,_getPrototypeOf(LinkAnnotationElement).call(this,parameters,isRenderable))}_inherits(LinkAnnotationElement,_AnnotationElement);_createClass(LinkAnnotationElement,[{key:"render",value:function(){this.container.className="linkAnnotation";var data=this.data,linkService=this.linkService,link=document.createElement("a");data.url?(0,_display_utils.addLinkAttributes)(link,
{url:data.url,target:data.newWindow?_display_utils.LinkTarget.BLANK:linkService.externalLinkTarget,rel:linkService.externalLinkRel,enabled:linkService.externalLinkEnabled}):data.action?this._bindNamedAction(link,data.action):this._bindLink(link,data.dest);this.container.appendChild(link);return this.container}},{key:"_bindLink",value:function(link,destination){var _this=this;link.href=this.linkService.getDestinationHash(destination);link.onclick=function(){destination&&_this.linkService.navigateTo(destination);
return!1};destination&&(link.className="internalLink")}},{key:"_bindNamedAction",value:function(link,action){var _this2=this;link.href=this.linkService.getAnchorUrl("");link.onclick=function(){_this2.linkService.executeNamedAction(action);return!1};link.className="internalLink"}}]);return LinkAnnotationElement}(AnnotationElement$jscomp$0),TextAnnotationElement=function(_AnnotationElement2){function TextAnnotationElement(parameters){_classCallCheck(this,TextAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||
parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(TextAnnotationElement).call(this,parameters,isRenderable))}_inherits(TextAnnotationElement,_AnnotationElement2);_createClass(TextAnnotationElement,[{key:"render",value:function(){this.container.className="textAnnotation";var image=document.createElement("img");image.style.height=this.container.style.height;image.style.width=this.container.style.width;image.src=this.imageResourcesPath+"annotation-"+
this.data.name.toLowerCase()+".svg";image.alt="[{{type}} Annotation]";image.dataset.l10nId="text_annotation_type";image.dataset.l10nArgs=JSON.stringify({type:this.data.name});this.data.hasPopup||this._createPopup(this.container,image,this.data);this.container.appendChild(image);return this.container}}]);return TextAnnotationElement}(AnnotationElement$jscomp$0),WidgetAnnotationElement=function(_AnnotationElement3){function WidgetAnnotationElement(){_classCallCheck(this,WidgetAnnotationElement);return _possibleConstructorReturn(this,
_getPrototypeOf(WidgetAnnotationElement).apply(this,arguments))}_inherits(WidgetAnnotationElement,_AnnotationElement3);_createClass(WidgetAnnotationElement,[{key:"render",value:function(){return this.container}}]);return WidgetAnnotationElement}(AnnotationElement$jscomp$0),TextWidgetAnnotationElement=function(_WidgetAnnotationElem){function TextWidgetAnnotationElement(parameters){_classCallCheck(this,TextWidgetAnnotationElement);var isRenderable=parameters.renderInteractiveForms||!parameters.data.hasAppearance&&
!!parameters.data.fieldValue;return _possibleConstructorReturn(this,_getPrototypeOf(TextWidgetAnnotationElement).call(this,parameters,isRenderable))}_inherits(TextWidgetAnnotationElement,_WidgetAnnotationElem);_createClass(TextWidgetAnnotationElement,[{key:"render",value:function(){var TEXT_ALIGNMENT=["left","center","right"];this.container.className="textWidgetAnnotation";if(this.renderInteractiveForms){if(this.data.multiLine){var element=document.createElement("textarea");element.textContent=this.data.fieldValue}else element=
document.createElement("input"),element.type="text",element.setAttribute("value",this.data.fieldValue);element.disabled=this.data.readOnly;null!==this.data.maxLen&&(element.maxLength=this.data.maxLen);if(this.data.comb){var combWidth=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;element.classList.add("comb");element.style.letterSpacing="calc(".concat(combWidth,"px - 1ch)")}}else element=document.createElement("div"),element.textContent=this.data.fieldValue,element.style.verticalAlign="middle",
element.style.display="table-cell",combWidth=null,this.data.fontRefName&&this.page.commonObjs.has(this.data.fontRefName)&&(combWidth=this.page.commonObjs.get(this.data.fontRefName)),this._setTextStyle(element,combWidth);null!==this.data.textAlignment&&(element.style.textAlign=TEXT_ALIGNMENT[this.data.textAlignment]);this.container.appendChild(element);return this.container}},{key:"_setTextStyle",value:function(element,font){element=element.style;element.fontSize="".concat(this.data.fontSize,"px");
element.direction=0>this.data.fontDirection?"rtl":"ltr";if(font){element.fontWeight=font.black?font.bold?"900":"bold":font.bold?"bold":"normal";element.fontStyle=font.italic?"italic":"normal";var fontFamily=font.loadedName?'"'.concat(font.loadedName,'", '):"";element.fontFamily=fontFamily+(font.fallbackName||"Helvetica, sans-serif")}}}]);return TextWidgetAnnotationElement}(WidgetAnnotationElement),CheckboxWidgetAnnotationElement=function(_WidgetAnnotationElem2){function CheckboxWidgetAnnotationElement(parameters){_classCallCheck(this,
CheckboxWidgetAnnotationElement);return _possibleConstructorReturn(this,_getPrototypeOf(CheckboxWidgetAnnotationElement).call(this,parameters,parameters.renderInteractiveForms))}_inherits(CheckboxWidgetAnnotationElement,_WidgetAnnotationElem2);_createClass(CheckboxWidgetAnnotationElement,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation checkBox";var element=document.createElement("input");element.disabled=this.data.readOnly;element.type="checkbox";this.data.fieldValue&&
"Off"!==this.data.fieldValue&&element.setAttribute("checked",!0);this.container.appendChild(element);return this.container}}]);return CheckboxWidgetAnnotationElement}(WidgetAnnotationElement),RadioButtonWidgetAnnotationElement=function(_WidgetAnnotationElem3){function RadioButtonWidgetAnnotationElement(parameters){_classCallCheck(this,RadioButtonWidgetAnnotationElement);return _possibleConstructorReturn(this,_getPrototypeOf(RadioButtonWidgetAnnotationElement).call(this,parameters,parameters.renderInteractiveForms))}
_inherits(RadioButtonWidgetAnnotationElement,_WidgetAnnotationElem3);_createClass(RadioButtonWidgetAnnotationElement,[{key:"render",value:function(){this.container.className="buttonWidgetAnnotation radioButton";var element=document.createElement("input");element.disabled=this.data.readOnly;element.type="radio";element.name=this.data.fieldName;this.data.fieldValue===this.data.buttonValue&&element.setAttribute("checked",!0);this.container.appendChild(element);return this.container}}]);return RadioButtonWidgetAnnotationElement}(WidgetAnnotationElement),
PushButtonWidgetAnnotationElement=function(_LinkAnnotationElemen){function PushButtonWidgetAnnotationElement(){_classCallCheck(this,PushButtonWidgetAnnotationElement);return _possibleConstructorReturn(this,_getPrototypeOf(PushButtonWidgetAnnotationElement).apply(this,arguments))}_inherits(PushButtonWidgetAnnotationElement,_LinkAnnotationElemen);_createClass(PushButtonWidgetAnnotationElement,[{key:"render",value:function(){var container=_get(_getPrototypeOf(PushButtonWidgetAnnotationElement.prototype),
"render",this).call(this);container.className="buttonWidgetAnnotation pushButton";return container}}]);return PushButtonWidgetAnnotationElement}(LinkAnnotationElement),ChoiceWidgetAnnotationElement=function(_WidgetAnnotationElem4){function ChoiceWidgetAnnotationElement(parameters){_classCallCheck(this,ChoiceWidgetAnnotationElement);return _possibleConstructorReturn(this,_getPrototypeOf(ChoiceWidgetAnnotationElement).call(this,parameters,parameters.renderInteractiveForms))}_inherits(ChoiceWidgetAnnotationElement,
_WidgetAnnotationElem4);_createClass(ChoiceWidgetAnnotationElement,[{key:"render",value:function(){this.container.className="choiceWidgetAnnotation";var selectElement=document.createElement("select");selectElement.disabled=this.data.readOnly;this.data.combo||(selectElement.size=this.data.options.length,this.data.multiSelect&&(selectElement.multiple=!0));var _iteratorNormalCompletion=!0,_didIteratorError=!1,_iteratorError=void 0;try{for(var _iterator=this.data.options[Symbol.iterator](),_step;!(_iteratorNormalCompletion=
(_step=_iterator.next()).done);_iteratorNormalCompletion=!0){var option=_step.value,optionElement=document.createElement("option");optionElement.textContent=option.displayValue;optionElement.value=option.exportValue;this.data.fieldValue.includes(option.displayValue)&&optionElement.setAttribute("selected",!0);selectElement.appendChild(optionElement)}}catch(err){_didIteratorError=!0,_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&null!=_iterator["return"])_iterator["return"]()}finally{if(_didIteratorError)throw _iteratorError;
}}this.container.appendChild(selectElement);return this.container}}]);return ChoiceWidgetAnnotationElement}(WidgetAnnotationElement),PopupAnnotationElement=function(_AnnotationElement4){function PopupAnnotationElement(parameters){_classCallCheck(this,PopupAnnotationElement);var isRenderable=!(!parameters.data.title&&!parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(PopupAnnotationElement).call(this,parameters,isRenderable))}_inherits(PopupAnnotationElement,_AnnotationElement4);
_createClass(PopupAnnotationElement,[{key:"render",value:function(){this.container.className="popupAnnotation";if("Line Square Circle PolyLine Polygon Ink".split(" ").includes(this.data.parentType))return this.container;var selector='[data-annotation-id="'.concat(this.data.parentId,'"]');selector=this.layer.querySelector(selector);if(!selector)return this.container;var popup=new PopupElement({container:this.container,trigger:selector,color:this.data.color,title:this.data.title,modificationDate:this.data.modificationDate,
contents:this.data.contents}),parentLeft=parseFloat(selector.style.left),parentWidth=parseFloat(selector.style.width);this.container.style.transformOrigin="-".concat(parentLeft+parentWidth,"px -").concat(selector.style.top);this.container.style.left="".concat(parentLeft+parentWidth,"px");this.container.appendChild(popup.render());return this.container}}]);return PopupAnnotationElement}(AnnotationElement$jscomp$0),PopupElement=function(){function PopupElement(parameters){_classCallCheck(this,PopupElement);
this.container=parameters.container;this.trigger=parameters.trigger;this.color=parameters.color;this.title=parameters.title;this.modificationDate=parameters.modificationDate;this.contents=parameters.contents;this.hideWrapper=parameters.hideWrapper||!1;this.pinned=!1}_createClass(PopupElement,[{key:"render",value:function(){var wrapper=document.createElement("div");wrapper.className="popupWrapper";this.hideElement=this.hideWrapper?wrapper:this.container;this.hideElement.setAttribute("hidden",!0);var popup=
document.createElement("div");popup.className="popup";var color=this.color;color&&(popup.style.backgroundColor=_util.Util.makeCssRgb(.7*(255-color[0])+color[0]|0,.7*(255-color[1])+color[1]|0,.7*(255-color[2])+color[2]|0));color=document.createElement("h1");color.textContent=this.title;popup.appendChild(color);if(color=_display_utils.PDFDateString.toDateObject(this.modificationDate)){var modificationDate=document.createElement("span");modificationDate.textContent="{{date}}, {{time}}";modificationDate.dataset.l10nId=
"annotation_date_string";modificationDate.dataset.l10nArgs=JSON.stringify({date:color.toLocaleDateString(),time:color.toLocaleTimeString()});popup.appendChild(modificationDate)}color=this._formatContents(this.contents);popup.appendChild(color);this.trigger.addEventListener("click",this._toggle.bind(this));this.trigger.addEventListener("mouseover",this._show.bind(this,!1));this.trigger.addEventListener("mouseout",this._hide.bind(this,!1));popup.addEventListener("click",this._hide.bind(this,!0));wrapper.appendChild(popup);
return wrapper}},{key:"_formatContents",value:function(contents){var p=document.createElement("p");contents=contents.split(/(?:\r\n?|\n)/);for(var i=0,ii=contents.length;i<ii;++i)p.appendChild(document.createTextNode(contents[i])),i<ii-1&&p.appendChild(document.createElement("br"));return p}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){0<arguments.length&&void 0!==arguments[0]&&arguments[0]&&(this.pinned=!0);this.hideElement.hasAttribute("hidden")&&
(this.hideElement.removeAttribute("hidden"),this.container.style.zIndex+=1)}},{key:"_hide",value:function(){if(0<arguments.length&&void 0!==arguments[0]?arguments[0]:1)this.pinned=!1;this.hideElement.hasAttribute("hidden")||this.pinned||(this.hideElement.setAttribute("hidden",!0),--this.container.style.zIndex)}}]);return PopupElement}(),FreeTextAnnotationElement=function(_AnnotationElement5){function FreeTextAnnotationElement(parameters){_classCallCheck(this,FreeTextAnnotationElement);var isRenderable=
!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(FreeTextAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(FreeTextAnnotationElement,_AnnotationElement5);_createClass(FreeTextAnnotationElement,[{key:"render",value:function(){this.container.className="freeTextAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return FreeTextAnnotationElement}(AnnotationElement$jscomp$0),
LineAnnotationElement=function(_AnnotationElement6){function LineAnnotationElement(parameters){_classCallCheck(this,LineAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(LineAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(LineAnnotationElement,_AnnotationElement6);_createClass(LineAnnotationElement,[{key:"render",value:function(){this.container.className="lineAnnotation";
var data=this.data,svg=this.svgFactory.create(data.rect[2]-data.rect[0],data.rect[3]-data.rect[1]),line=this.svgFactory.createElement("svg:line");line.setAttribute("x1",data.rect[2]-data.lineCoordinates[0]);line.setAttribute("y1",data.rect[3]-data.lineCoordinates[1]);line.setAttribute("x2",data.rect[2]-data.lineCoordinates[2]);line.setAttribute("y2",data.rect[3]-data.lineCoordinates[3]);line.setAttribute("stroke-width",data.borderStyle.width||1);line.setAttribute("stroke","transparent");svg.appendChild(line);
this.container.append(svg);this._createPopup(this.container,line,data);return this.container}}]);return LineAnnotationElement}(AnnotationElement$jscomp$0),SquareAnnotationElement=function(_AnnotationElement7){function SquareAnnotationElement(parameters){_classCallCheck(this,SquareAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(SquareAnnotationElement).call(this,parameters,isRenderable,
!0))}_inherits(SquareAnnotationElement,_AnnotationElement7);_createClass(SquareAnnotationElement,[{key:"render",value:function(){this.container.className="squareAnnotation";var data=this.data,width=data.rect[2]-data.rect[0],height=data.rect[3]-data.rect[1],svg=this.svgFactory.create(width,height),borderWidth=data.borderStyle.width,square=this.svgFactory.createElement("svg:rect");square.setAttribute("x",borderWidth/2);square.setAttribute("y",borderWidth/2);square.setAttribute("width",width-borderWidth);
square.setAttribute("height",height-borderWidth);square.setAttribute("stroke-width",borderWidth||1);square.setAttribute("stroke","transparent");square.setAttribute("fill","none");svg.appendChild(square);this.container.append(svg);this._createPopup(this.container,square,data);return this.container}}]);return SquareAnnotationElement}(AnnotationElement$jscomp$0),CircleAnnotationElement=function(_AnnotationElement8){function CircleAnnotationElement(parameters){_classCallCheck(this,CircleAnnotationElement);
var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(CircleAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(CircleAnnotationElement,_AnnotationElement8);_createClass(CircleAnnotationElement,[{key:"render",value:function(){this.container.className="circleAnnotation";var data=this.data,width=data.rect[2]-data.rect[0],height=data.rect[3]-data.rect[1],svg=this.svgFactory.create(width,height),
borderWidth=data.borderStyle.width,circle=this.svgFactory.createElement("svg:ellipse");circle.setAttribute("cx",width/2);circle.setAttribute("cy",height/2);circle.setAttribute("rx",width/2-borderWidth/2);circle.setAttribute("ry",height/2-borderWidth/2);circle.setAttribute("stroke-width",borderWidth||1);circle.setAttribute("stroke","transparent");circle.setAttribute("fill","none");svg.appendChild(circle);this.container.append(svg);this._createPopup(this.container,circle,data);return this.container}}]);
return CircleAnnotationElement}(AnnotationElement$jscomp$0),PolylineAnnotationElement=function(_AnnotationElement9){function PolylineAnnotationElement(parameters){_classCallCheck(this,PolylineAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);parameters=_possibleConstructorReturn(this,_getPrototypeOf(PolylineAnnotationElement).call(this,parameters,isRenderable,!0));parameters.containerClassName="polylineAnnotation";parameters.svgElementName=
"svg:polyline";return parameters}_inherits(PolylineAnnotationElement,_AnnotationElement9);_createClass(PolylineAnnotationElement,[{key:"render",value:function(){this.container.className=this.containerClassName;var data=this.data,svg=this.svgFactory.create(data.rect[2]-data.rect[0],data.rect[3]-data.rect[1]),points=[],_iteratorNormalCompletion2=!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _iterator2=data.vertices[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=
!0){var coordinate=_step2.value;points.push(coordinate.x-data.rect[0]+","+(data.rect[3]-coordinate.y))}}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&null!=_iterator2["return"])_iterator2["return"]()}finally{if(_didIteratorError2)throw _iteratorError2;}}points=points.join(" ");_iteratorNormalCompletion2=this.svgFactory.createElement(this.svgElementName);_iteratorNormalCompletion2.setAttribute("points",points);_iteratorNormalCompletion2.setAttribute("stroke-width",
data.borderStyle.width||1);_iteratorNormalCompletion2.setAttribute("stroke","transparent");_iteratorNormalCompletion2.setAttribute("fill","none");svg.appendChild(_iteratorNormalCompletion2);this.container.append(svg);this._createPopup(this.container,_iteratorNormalCompletion2,data);return this.container}}]);return PolylineAnnotationElement}(AnnotationElement$jscomp$0),PolygonAnnotationElement=function(_PolylineAnnotationEl){function PolygonAnnotationElement(parameters){_classCallCheck(this,PolygonAnnotationElement);
parameters=_possibleConstructorReturn(this,_getPrototypeOf(PolygonAnnotationElement).call(this,parameters));parameters.containerClassName="polygonAnnotation";parameters.svgElementName="svg:polygon";return parameters}_inherits(PolygonAnnotationElement,_PolylineAnnotationEl);return PolygonAnnotationElement}(PolylineAnnotationElement),CaretAnnotationElement=function(_AnnotationElement10){function CaretAnnotationElement(parameters){_classCallCheck(this,CaretAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||
parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(CaretAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(CaretAnnotationElement,_AnnotationElement10);_createClass(CaretAnnotationElement,[{key:"render",value:function(){this.container.className="caretAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return CaretAnnotationElement}(AnnotationElement$jscomp$0),InkAnnotationElement=
function(_AnnotationElement11){function InkAnnotationElement(parameters){_classCallCheck(this,InkAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);parameters=_possibleConstructorReturn(this,_getPrototypeOf(InkAnnotationElement).call(this,parameters,isRenderable,!0));parameters.containerClassName="inkAnnotation";parameters.svgElementName="svg:polyline";return parameters}_inherits(InkAnnotationElement,_AnnotationElement11);_createClass(InkAnnotationElement,
[{key:"render",value:function(){this.container.className=this.containerClassName;var data=this.data,svg=this.svgFactory.create(data.rect[2]-data.rect[0],data.rect[3]-data.rect[1]),_iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0;try{for(var _iterator3=data.inkLists[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var inkList=_step3.value,points=[],_iteratorNormalCompletion4=!0,_didIteratorError4=!1,_iteratorError4=
void 0;try{for(var _iterator4=inkList[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=!0){var coordinate=_step4.value,y=data.rect[3]-coordinate.y;points.push("".concat(coordinate.x-data.rect[0],",").concat(y))}}catch(err){_didIteratorError4=!0,_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&null!=_iterator4["return"])_iterator4["return"]()}finally{if(_didIteratorError4)throw _iteratorError4;}}points=points.join(" ");
var polyline=this.svgFactory.createElement(this.svgElementName);polyline.setAttribute("points",points);polyline.setAttribute("stroke-width",data.borderStyle.width||1);polyline.setAttribute("stroke","transparent");polyline.setAttribute("fill","none");this._createPopup(this.container,polyline,data);svg.appendChild(polyline)}}catch(err$9){_didIteratorError3=!0,_iteratorError3=err$9}finally{try{if(!_iteratorNormalCompletion3&&null!=_iterator3["return"])_iterator3["return"]()}finally{if(_didIteratorError3)throw _iteratorError3;
}}this.container.append(svg);return this.container}}]);return InkAnnotationElement}(AnnotationElement$jscomp$0),HighlightAnnotationElement=function(_AnnotationElement12){function HighlightAnnotationElement(parameters){_classCallCheck(this,HighlightAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(HighlightAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(HighlightAnnotationElement,
_AnnotationElement12);_createClass(HighlightAnnotationElement,[{key:"render",value:function(){this.container.className="highlightAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return HighlightAnnotationElement}(AnnotationElement$jscomp$0),UnderlineAnnotationElement=function(_AnnotationElement13){function UnderlineAnnotationElement(parameters){_classCallCheck(this,UnderlineAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||
parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(UnderlineAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(UnderlineAnnotationElement,_AnnotationElement13);_createClass(UnderlineAnnotationElement,[{key:"render",value:function(){this.container.className="underlineAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return UnderlineAnnotationElement}(AnnotationElement$jscomp$0),SquigglyAnnotationElement=
function(_AnnotationElement14){function SquigglyAnnotationElement(parameters){_classCallCheck(this,SquigglyAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(SquigglyAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(SquigglyAnnotationElement,_AnnotationElement14);_createClass(SquigglyAnnotationElement,[{key:"render",value:function(){this.container.className="squigglyAnnotation";
this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return SquigglyAnnotationElement}(AnnotationElement$jscomp$0),StrikeOutAnnotationElement=function(_AnnotationElement15){function StrikeOutAnnotationElement(parameters){_classCallCheck(this,StrikeOutAnnotationElement);var isRenderable=!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(StrikeOutAnnotationElement).call(this,parameters,
isRenderable,!0))}_inherits(StrikeOutAnnotationElement,_AnnotationElement15);_createClass(StrikeOutAnnotationElement,[{key:"render",value:function(){this.container.className="strikeoutAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return StrikeOutAnnotationElement}(AnnotationElement$jscomp$0),StampAnnotationElement=function(_AnnotationElement16){function StampAnnotationElement(parameters){_classCallCheck(this,StampAnnotationElement);var isRenderable=
!!(parameters.data.hasPopup||parameters.data.title||parameters.data.contents);return _possibleConstructorReturn(this,_getPrototypeOf(StampAnnotationElement).call(this,parameters,isRenderable,!0))}_inherits(StampAnnotationElement,_AnnotationElement16);_createClass(StampAnnotationElement,[{key:"render",value:function(){this.container.className="stampAnnotation";this.data.hasPopup||this._createPopup(this.container,null,this.data);return this.container}}]);return StampAnnotationElement}(AnnotationElement$jscomp$0),
FileAttachmentAnnotationElement=function(_AnnotationElement17){function FileAttachmentAnnotationElement(parameters){_classCallCheck(this,FileAttachmentAnnotationElement);parameters=_possibleConstructorReturn(this,_getPrototypeOf(FileAttachmentAnnotationElement).call(this,parameters,!0));var _this6$data$file=parameters.data.file,filename=_this6$data$file.filename;_this6$data$file=_this6$data$file.content;parameters.filename=(0,_display_utils.getFilenameFromUrl)(filename);parameters.content=_this6$data$file;
parameters.linkService.eventBus&&parameters.linkService.eventBus.dispatch("fileattachmentannotation",{source:_assertThisInitialized(parameters),id:(0,_util.stringToPDFString)(filename),filename:filename,content:_this6$data$file});return parameters}_inherits(FileAttachmentAnnotationElement,_AnnotationElement17);_createClass(FileAttachmentAnnotationElement,[{key:"render",value:function(){this.container.className="fileAttachmentAnnotation";var trigger=document.createElement("div");trigger.style.height=
this.container.style.height;trigger.style.width=this.container.style.width;trigger.addEventListener("dblclick",this._download.bind(this));this.data.hasPopup||!this.data.title&&!this.data.contents||this._createPopup(this.container,trigger,this.data);this.container.appendChild(trigger);return this.container}},{key:"_download",value:function(){this.downloadManager?this.downloadManager.downloadData(this.content,this.filename,""):(0,_util.warn)("Download cannot be started due to unavailable download manager")}}]);
return FileAttachmentAnnotationElement}(AnnotationElement$jscomp$0);module=function(){function AnnotationLayer(){_classCallCheck(this,AnnotationLayer)}_createClass(AnnotationLayer,null,[{key:"render",value:function(parameters){var _iteratorNormalCompletion5=!0,_didIteratorError5=!1,_iteratorError5=void 0;try{for(var _iterator5=parameters.annotations[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=!0){var data=_step5.value;if(data){var element=
AnnotationElementFactory.create({data:data,layer:parameters.div,page:parameters.page,viewport:parameters.viewport,linkService:parameters.linkService,downloadManager:parameters.downloadManager,imageResourcesPath:parameters.imageResourcesPath||"",renderInteractiveForms:parameters.renderInteractiveForms||!1,svgFactory:new _display_utils.DOMSVGFactory});element.isRenderable&&parameters.div.appendChild(element.render())}}}catch(err){_didIteratorError5=!0,_iteratorError5=err}finally{try{if(!_iteratorNormalCompletion5&&
null!=_iterator5["return"])_iterator5["return"]()}finally{if(_didIteratorError5)throw _iteratorError5;}}}},{key:"update",value:function(parameters){var _iteratorNormalCompletion6=!0,_didIteratorError6=!1,_iteratorError6=void 0;try{for(var _iterator6=parameters.annotations[Symbol.iterator](),_step6;!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=!0){var element=parameters.div.querySelector('[data-annotation-id="'.concat(_step6.value.id,'"]'));element&&(element.style.transform=
"matrix(".concat(parameters.viewport.transform.join(","),")"))}}catch(err){_didIteratorError6=!0,_iteratorError6=err}finally{try{if(!_iteratorNormalCompletion6&&null!=_iterator6["return"])_iterator6["return"]()}finally{if(_didIteratorError6)throw _iteratorError6;}}parameters.div.removeAttribute("hidden")}}]);return AnnotationLayer}();exports.AnnotationLayer=module},function(module,exports,__w_pdfjs_require__){function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(Symbol.iterator in
Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){JSCompiler_temp=[];var _n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(JSCompiler_temp.push(_s.value),!i||JSCompiler_temp.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"])_i["return"]()}finally{if(_d)throw _e;}}}else JSCompiler_temp=void 0;if(!(arr=JSCompiler_temp))throw new TypeError("Invalid attempt to destructure non-iterable instance");return arr}
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,
protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.SVGGraphics=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(188),_is_node=__w_pdfjs_require__(48);exports.SVGGraphics=function(){throw Error("Not implemented: SVGGraphics");};var pf=function(value){if(Number.isInteger(value))return value.toString();value=value.toFixed(10);var i=value.length-1;if("0"!==value[i])return value;
do i--;while("0"===value[i]);return value.substring(0,"."===value[i]?i:i+1)},pm=function(m){if(0===m[4]&&0===m[5]){if(0===m[1]&&0===m[2])return 1===m[0]&&1===m[3]?"":"scale(".concat(pf(m[0])," ").concat(pf(m[3]),")");if(m[0]===m[3]&&m[1]===-m[2])return"rotate(".concat(pf(180*Math.acos(m[0])/Math.PI),")")}else if(1===m[0]&&0===m[1]&&0===m[2]&&1===m[3])return"translate(".concat(pf(m[4])," ").concat(pf(m[5]),")");return"matrix(".concat(pf(m[0])," ").concat(pf(m[1])," ").concat(pf(m[2])," ").concat(pf(m[3]),
" ").concat(pf(m[4])," ")+"".concat(pf(m[5]),")")},LINE_CAP_STYLES=["butt","round","square"],LINE_JOIN_STYLES=["miter","round","bevel"],convertImgDataToPng=function(){function writePngChunk(type,body,data,offset){var p=offset,len=body.length;data[p]=len>>24&255;data[p+1]=len>>16&255;data[p+2]=len>>8&255;data[p+3]=len&255;p+=4;data[p]=type.charCodeAt(0)&255;data[p+1]=type.charCodeAt(1)&255;data[p+2]=type.charCodeAt(2)&255;data[p+3]=type.charCodeAt(3)&255;p+=4;data.set(body,p);p+=body.length;type=-1;
for(offset+=4;offset<p;offset++)type=type>>>8^crcTable[(type^data[offset])&255];offset=type^-1;data[p]=offset>>24&255;data[p+1]=offset>>16&255;data[p+2]=offset>>8&255;data[p+3]=offset&255}for(var PNG_HEADER=new Uint8Array([137,80,78,71,13,10,26,10]),crcTable=new Int32Array(256),i=0;256>i;i++){for(var c=i,h=0;8>h;h++)c=c&1?3988292384^c>>1&2147483647:c>>1&2147483647;crcTable[i]=c}return function(imgData,forceDataSchema,isMask){var kind=void 0===imgData.kind?_util.ImageKind.GRAYSCALE_1BPP:imgData.kind,
width=imgData.width,height=imgData.height,bytes=imgData.data;switch(kind){case _util.ImageKind.GRAYSCALE_1BPP:var colorType=0;var bitDepth=1;var lineSize=width+7>>3;break;case _util.ImageKind.RGB_24BPP:colorType=2;bitDepth=8;lineSize=3*width;break;case _util.ImageKind.RGBA_32BPP:colorType=6;bitDepth=8;lineSize=4*width;break;default:throw Error("invalid format");}imgData=new Uint8Array((1+lineSize)*height);for(var offsetLiterals=0,offsetBytes=0,y=0;y<height;++y)imgData[offsetLiterals++]=0,imgData.set(bytes.subarray(offsetBytes,
offsetBytes+lineSize),offsetLiterals),offsetBytes+=lineSize,offsetLiterals+=lineSize;if(kind===_util.ImageKind.GRAYSCALE_1BPP&&isMask)for(isMask=offsetLiterals=0;isMask<height;isMask++)for(offsetLiterals++,kind=0;kind<lineSize;kind++)imgData[offsetLiterals++]^=255;width=new Uint8Array([width>>24&255,width>>16&255,width>>8&255,width&255,height>>24&255,height>>16&255,height>>8&255,height&255,bitDepth,colorType,0,0,0]);a:{if(_is_node.isNodeJS)try{var input=8<=parseInt(process$jscomp$0.versions.node)?
imgData:new Buffer(imgData);var output=__webpack_require__(115).deflateSync(input,{level:9});var idat=output instanceof Uint8Array?output:new Uint8Array(output);break a}catch(e){(0,_util.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}output=imgData.length;idat=new Uint8Array(2+output+5*Math.ceil(output/65535)+4);input=0;idat[input++]=120;idat[input++]=156;for(height=0;65535<output;)idat[input++]=0,idat[input++]=255,idat[input++]=255,idat[input++]=0,idat[input++]=0,idat.set(imgData.subarray(height,
height+65535),input),input+=65535,height+=65535,output-=65535;idat[input++]=1;idat[input++]=output&255;idat[input++]=output>>8&255;idat[input++]=~output&255;idat[input++]=(~output&65535)>>8&255;idat.set(imgData.subarray(height),input);input+=imgData.length-height;output=1;for(bitDepth=height=0;bitDepth<imgData.length;++bitDepth)output=(output+(imgData[bitDepth]&255))%65521,height=(height+output)%65521;imgData=height<<16|output;idat[input++]=imgData>>24&255;idat[input++]=imgData>>16&255;idat[input++]=
imgData>>8&255;idat[input++]=imgData&255}imgData=new Uint8Array(PNG_HEADER.length+36+width.length+idat.length);input=0;imgData.set(PNG_HEADER,input);input+=PNG_HEADER.length;writePngChunk("IHDR",width,imgData,input);input+=12+width.length;writePngChunk("IDATA",idat,imgData,input);input+=12+idat.length;writePngChunk("IEND",new Uint8Array(0),imgData,input);return(0,_util.createObjectURL)(imgData,"image/png",forceDataSchema)}}(),SVGExtraState=function(){function SVGExtraState(){_classCallCheck(this,
SVGExtraState);this.fontSizeScale=1;this.fontWeight="normal";this.fontSize=0;this.textMatrix=_util.IDENTITY_MATRIX;this.fontMatrix=_util.FONT_IDENTITY_MATRIX;this.leading=0;this.textRenderingMode=_util.TextRenderingMode.FILL;this.textMatrixScale=1;this.wordSpacing=this.charSpacing=this.lineY=this.lineX=this.y=this.x=0;this.textHScale=1;this.textRise=0;this.strokeColor=this.fillColor="#000000";this.lineWidth=this.strokeAlpha=this.fillAlpha=1;this.lineCap=this.lineJoin="";this.miterLimit=0;this.dashArray=
[];this.dashPhase=0;this.dependencies=[];this.clipGroup=this.activeClipUrl=null;this.maskId=""}_createClass(SVGExtraState,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(x,y){this.x=x;this.y=y}}]);return SVGExtraState}(),clipCount=0,maskCount=0,shadingCount=0;exports.SVGGraphics=function(){function SVGGraphics(commonObjs,objs,forceDataSchema){_classCallCheck(this,SVGGraphics);this.svgFactory=new _display_utils.DOMSVGFactory;this.current=new SVGExtraState;
this.transformMatrix=_util.IDENTITY_MATRIX;this.transformStack=[];this.extraStack=[];this.commonObjs=commonObjs;this.objs=objs;this.pendingClip=null;this.embedFonts=this.pendingEOFill=!1;this.embeddedFonts=Object.create(null);this.cssStyle=null;this.forceDataSchema=!!forceDataSchema;this._operatorIdMapping=[];for(var op in _util.OPS)this._operatorIdMapping[_util.OPS[op]]=op}_createClass(SVGGraphics,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var old=this.current;this.extraStack.push(old);
this.current=old.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop();this.current=this.extraStack.pop();this.tgrp=this.pendingClip=null}},{key:"group",value:function(items){this.save();this.executeOpTree(items);this.restore()}},{key:"loadDependencies",value:function(operatorList){var _this=this,fnArray=operatorList.fnArray;operatorList=operatorList.argsArray;for(var i=0,ii=fnArray.length;i<ii;i++)if(fnArray[i]===_util.OPS.dependency){var _iteratorNormalCompletion2=
!0,_didIteratorError2=!1,_iteratorError2=void 0;try{for(var _loop=function(){var obj=_step2.value,objsPool=obj.startsWith("g_")?_this.commonObjs:_this.objs,promise=new Promise(function(resolve){objsPool.get(obj,resolve)});_this.current.dependencies.push(promise)},_iterator2=operatorList[i][Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=!0)_loop()}catch(err){_didIteratorError2=!0,_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&
null!=_iterator2["return"])_iterator2["return"]()}finally{if(_didIteratorError2)throw _iteratorError2;}}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(a,b,c,d,e,f){this.transformMatrix=_util.Util.transform(this.transformMatrix,[a,b,c,d,e,f]);this.tgrp=null}},{key:"getSVG",value:function(operatorList,viewport){var _this2=this;this.viewport=viewport;var svgElement=this._initialize(viewport);return this.loadDependencies(operatorList).then(function(){_this2.transformMatrix=
_util.IDENTITY_MATRIX;_this2.executeOpTree(_this2.convertOpList(operatorList));return svgElement})}},{key:"convertOpList",value:function(operatorList){var operatorIdMapping=this._operatorIdMapping,argsArray=operatorList.argsArray,fnArray=operatorList.fnArray;operatorList=[];for(var i=0,ii=fnArray.length;i<ii;i++){var fnId=fnArray[i];operatorList.push({fnId:fnId,fn:operatorIdMapping[fnId],args:argsArray[i]})}operatorIdMapping=[];argsArray=[];fnArray=!0;i=!1;ii=void 0;try{for(var _iterator=operatorList[Symbol.iterator](),
_step;!(fnArray=(_step=_iterator.next()).done);fnArray=!0){var opListElement=_step.value;"save"===opListElement.fn?(operatorIdMapping.push({fnId:92,fn:"group",items:[]}),argsArray.push(operatorIdMapping),operatorIdMapping=operatorIdMapping[operatorIdMapping.length-1].items):"restore"===opListElement.fn?operatorIdMapping=argsArray.pop():operatorIdMapping.push(opListElement)}}catch(err){i=!0,ii=err}finally{try{if(!fnArray&&null!=_iterator["return"])_iterator["return"]()}finally{if(i)throw ii;}}return operatorIdMapping}},
{key:"executeOpTree",value:function(opTree){var _iteratorNormalCompletion3=!0,_didIteratorError3=!1,_iteratorError3=void 0;try{for(var _iterator3=opTree[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=!0){var opTreeElement=_step3.value,fn=opTreeElement.fn,args=opTreeElement.args;switch(opTreeElement.fnId|0){case _util.OPS.beginText:this.beginText();break;case _util.OPS.dependency:break;case _util.OPS.setLeading:this.setLeading(args);
break;case _util.OPS.setLeadingMoveText:this.setLeadingMoveText(args[0],args[1]);break;case _util.OPS.setFont:this.setFont(args);break;case _util.OPS.showText:this.showText(args[0]);break;case _util.OPS.showSpacedText:this.showText(args[0]);break;case _util.OPS.endText:this.endText();break;case _util.OPS.moveText:this.moveText(args[0],args[1]);break;case _util.OPS.setCharSpacing:this.setCharSpacing(args[0]);break;case _util.OPS.setWordSpacing:this.setWordSpacing(args[0]);break;case _util.OPS.setHScale:this.setHScale(args[0]);
break;case _util.OPS.setTextMatrix:this.setTextMatrix(args[0],args[1],args[2],args[3],args[4],args[5]);break;case _util.OPS.setTextRise:this.setTextRise(args[0]);break;case _util.OPS.setTextRenderingMode:this.setTextRenderingMode(args[0]);break;case _util.OPS.setLineWidth:this.setLineWidth(args[0]);break;case _util.OPS.setLineJoin:this.setLineJoin(args[0]);break;case _util.OPS.setLineCap:this.setLineCap(args[0]);break;case _util.OPS.setMiterLimit:this.setMiterLimit(args[0]);break;case _util.OPS.setFillRGBColor:this.setFillRGBColor(args[0],
args[1],args[2]);break;case _util.OPS.setStrokeRGBColor:this.setStrokeRGBColor(args[0],args[1],args[2]);break;case _util.OPS.setStrokeColorN:this.setStrokeColorN(args);break;case _util.OPS.setFillColorN:this.setFillColorN(args);break;case _util.OPS.shadingFill:this.shadingFill(args[0]);break;case _util.OPS.setDash:this.setDash(args[0],args[1]);break;case _util.OPS.setRenderingIntent:this.setRenderingIntent(args[0]);break;case _util.OPS.setFlatness:this.setFlatness(args[0]);break;case _util.OPS.setGState:this.setGState(args[0]);
break;case _util.OPS.fill:this.fill();break;case _util.OPS.eoFill:this.eoFill();break;case _util.OPS.stroke:this.stroke();break;case _util.OPS.fillStroke:this.fillStroke();break;case _util.OPS.eoFillStroke:this.eoFillStroke();break;case _util.OPS.clip:this.clip("nonzero");break;case _util.OPS.eoClip:this.clip("evenodd");break;case _util.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case _util.OPS.paintJpegXObject:this.paintJpegXObject(args[0],args[1],args[2]);break;case _util.OPS.paintImageXObject:this.paintImageXObject(args[0]);
break;case _util.OPS.paintInlineImageXObject:this.paintInlineImageXObject(args[0]);break;case _util.OPS.paintImageMaskXObject:this.paintImageMaskXObject(args[0]);break;case _util.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(args[0],args[1]);break;case _util.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case _util.OPS.closePath:this.closePath();break;case _util.OPS.closeStroke:this.closeStroke();break;case _util.OPS.closeFillStroke:this.closeFillStroke();break;case _util.OPS.closeEOFillStroke:this.closeEOFillStroke();
break;case _util.OPS.nextLine:this.nextLine();break;case _util.OPS.transform:this.transform(args[0],args[1],args[2],args[3],args[4],args[5]);break;case _util.OPS.constructPath:this.constructPath(args[0],args[1]);break;case _util.OPS.endPath:this.endPath();break;case 92:this.group(opTreeElement.items);break;default:(0,_util.warn)("Unimplemented operator ".concat(fn))}}}catch(err){_didIteratorError3=!0,_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&null!=_iterator3["return"])_iterator3["return"]()}finally{if(_didIteratorError3)throw _iteratorError3;
}}}},{key:"setWordSpacing",value:function(wordSpacing){this.current.wordSpacing=wordSpacing}},{key:"setCharSpacing",value:function(charSpacing){this.current.charSpacing=charSpacing}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(a,b,c,d,e,f){var current=this.current;current.textMatrix=current.lineMatrix=[a,b,c,d,e,f];current.textMatrixScale=Math.sqrt(a*a+b*b);current.x=current.lineX=0;current.y=current.lineY=0;current.xcoords=[];current.tspan=
this.svgFactory.createElement("svg:tspan");current.tspan.setAttributeNS(null,"font-family",current.fontFamily);current.tspan.setAttributeNS(null,"font-size","".concat(pf(current.fontSize),"px"));current.tspan.setAttributeNS(null,"y",pf(-current.y));current.txtElement=this.svgFactory.createElement("svg:text");current.txtElement.appendChild(current.tspan)}},{key:"beginText",value:function(){var current=this.current;current.x=current.lineX=0;current.y=current.lineY=0;current.textMatrix=_util.IDENTITY_MATRIX;
current.lineMatrix=_util.IDENTITY_MATRIX;current.textMatrixScale=1;current.tspan=this.svgFactory.createElement("svg:tspan");current.txtElement=this.svgFactory.createElement("svg:text");current.txtgrp=this.svgFactory.createElement("svg:g");current.xcoords=[]}},{key:"moveText",value:function(x,y){var current=this.current;current.x=current.lineX+=x;current.y=current.lineY+=y;current.xcoords=[];current.tspan=this.svgFactory.createElement("svg:tspan");current.tspan.setAttributeNS(null,"font-family",current.fontFamily);
current.tspan.setAttributeNS(null,"font-size","".concat(pf(current.fontSize),"px"));current.tspan.setAttributeNS(null,"y",pf(-current.y))}},{key:"showText",value:function(glyphs){var current=this.current,font=current.font,fontSize=current.fontSize;if(0!==fontSize){var charSpacing=current.charSpacing,wordSpacing=current.wordSpacing,fontDirection=current.fontDirection,textHScale=current.textHScale*fontDirection,vertical=font.vertical,widthAdvanceScale=fontSize*current.fontMatrix[0],x=0,_iteratorNormalCompletion4=
!0,_didIteratorError4=!1,_iteratorError4=void 0;try{for(var _iterator4=glyphs[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=!0){var glyph=_step4.value;if(null===glyph)x+=fontDirection*wordSpacing;else if((0,_util.isNum)(glyph))x+=-glyph*fontSize*.001;else{var character=glyph.fontChar,charWidth=glyph.width*widthAdvanceScale+((glyph.isSpace?wordSpacing:0)+charSpacing)*fontDirection;if(glyph.isInFont||font.missingFile)current.xcoords.push(current.x+
x*textHScale),current.tspan.textContent+=character;x+=charWidth}}}catch(err){_didIteratorError4=!0,_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&null!=_iterator4["return"])_iterator4["return"]()}finally{if(_didIteratorError4)throw _iteratorError4;}}vertical?current.y-=x*textHScale:current.x+=x*textHScale;current.tspan.setAttributeNS(null,"x",current.xcoords.map(pf).join(" "));current.tspan.setAttributeNS(null,"y",pf(-current.y));current.tspan.setAttributeNS(null,"font-family",current.fontFamily);
current.tspan.setAttributeNS(null,"font-size","".concat(pf(current.fontSize),"px"));"normal"!==current.fontStyle&&current.tspan.setAttributeNS(null,"font-style",current.fontStyle);"normal"!==current.fontWeight&&current.tspan.setAttributeNS(null,"font-weight",current.fontWeight);glyphs=current.textRenderingMode&_util.TextRenderingMode.FILL_STROKE_MASK;glyphs===_util.TextRenderingMode.FILL||glyphs===_util.TextRenderingMode.FILL_STROKE?("#000000"!==current.fillColor&&current.tspan.setAttributeNS(null,
"fill",current.fillColor),1>current.fillAlpha&&current.tspan.setAttributeNS(null,"fill-opacity",current.fillAlpha)):current.textRenderingMode===_util.TextRenderingMode.ADD_TO_PATH?current.tspan.setAttributeNS(null,"fill","transparent"):current.tspan.setAttributeNS(null,"fill","none");glyphs!==_util.TextRenderingMode.STROKE&&glyphs!==_util.TextRenderingMode.FILL_STROKE||this._setStrokeAttributes(current.tspan,1/(current.textMatrixScale||1));glyphs=current.textMatrix;0!==current.textRise&&(glyphs=glyphs.slice(),
glyphs[5]+=current.textRise);current.txtElement.setAttributeNS(null,"transform","".concat(pm(glyphs)," scale(1, -1)"));current.txtElement.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve");current.txtElement.appendChild(current.tspan);current.txtgrp.appendChild(current.txtElement);this._ensureTransformGroup().appendChild(current.txtElement)}}},{key:"setLeadingMoveText",value:function(x,y){this.setLeading(-y);this.moveText(x,y)}},{key:"addFontStyle",value:function(fontObj){this.cssStyle||
(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var url=(0,_util.createObjectURL)(fontObj.data,fontObj.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(fontObj.loadedName,'";')+" src: url(".concat(url,"); }\n")}},{key:"setFont",value:function(details){var current=this.current,fontObj=this.commonObjs.get(details[0]);details=details[1];current.font=fontObj;
this.embedFonts&&fontObj.data&&!this.embeddedFonts[fontObj.loadedName]&&(this.addFontStyle(fontObj),this.embeddedFonts[fontObj.loadedName]=fontObj);current.fontMatrix=fontObj.fontMatrix?fontObj.fontMatrix:_util.FONT_IDENTITY_MATRIX;var bold=fontObj.black?fontObj.bold?"bolder":"bold":fontObj.bold?"bold":"normal",italic=fontObj.italic?"italic":"normal";0>details?(details=-details,current.fontDirection=-1):current.fontDirection=1;current.fontSize=details;current.fontFamily=fontObj.loadedName;current.fontWeight=
bold;current.fontStyle=italic;current.tspan=this.svgFactory.createElement("svg:tspan");current.tspan.setAttributeNS(null,"y",pf(-current.y));current.xcoords=[]}},{key:"endText",value:function(){var current=this.current;current.textRenderingMode&_util.TextRenderingMode.ADD_TO_PATH_FLAG&&current.txtElement&&current.txtElement.hasChildNodes()&&(current.element=current.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(width){0<width&&(this.current.lineWidth=width)}},
{key:"setLineCap",value:function(style){this.current.lineCap=LINE_CAP_STYLES[style]}},{key:"setLineJoin",value:function(style){this.current.lineJoin=LINE_JOIN_STYLES[style]}},{key:"setMiterLimit",value:function(limit){this.current.miterLimit=limit}},{key:"setStrokeAlpha",value:function(strokeAlpha){this.current.strokeAlpha=strokeAlpha}},{key:"setStrokeRGBColor",value:function(r,g,b){this.current.strokeColor=_util.Util.makeCssRgb(r,g,b)}},{key:"setFillAlpha",value:function(fillAlpha){this.current.fillAlpha=
fillAlpha}},{key:"setFillRGBColor",value:function(r,g,b){this.current.fillColor=_util.Util.makeCssRgb(r,g,b);this.current.tspan=this.svgFactory.createElement("svg:tspan");this.current.xcoords=[]}},{key:"setStrokeColorN",value:function(args){this.current.strokeColor=this._makeColorN_Pattern(args)}},{key:"setFillColorN",value:function(args){this.current.fillColor=this._makeColorN_Pattern(args)}},{key:"shadingFill",value:function(args){var width=this.viewport.width,height=this.viewport.height,inv=_util.Util.inverseTransform(this.transformMatrix),
bl=_util.Util.applyTransform([0,0],inv),br=_util.Util.applyTransform([0,height],inv),ul=_util.Util.applyTransform([width,0],inv),ur=_util.Util.applyTransform([width,height],inv);width=Math.min(bl[0],br[0],ul[0],ur[0]);height=Math.min(bl[1],br[1],ul[1],ur[1]);inv=Math.max(bl[0],br[0],ul[0],ur[0]);bl=Math.max(bl[1],br[1],ul[1],ur[1]);br=this.svgFactory.createElement("svg:rect");br.setAttributeNS(null,"x",width);br.setAttributeNS(null,"y",height);br.setAttributeNS(null,"width",inv-width);br.setAttributeNS(null,
"height",bl-height);br.setAttributeNS(null,"fill",this._makeShadingPattern(args));this._ensureTransformGroup().appendChild(br)}},{key:"_makeColorN_Pattern",value:function(args){return"TilingPattern"===args[0]?this._makeTilingPattern(args):this._makeShadingPattern(args)}},{key:"_makeTilingPattern",value:function(args){var color=args[1],operatorList=args[2],matrix=args[3]||_util.IDENTITY_MATRIX,_args$=_slicedToArray(args[4],4),x0=_args$[0],y0=_args$[1],x1=_args$[2],y1=_args$[3],xstep=args[5],ystep=
args[6];_args$=args[7];args="shading".concat(shadingCount++);x0=_util.Util.applyTransform([x0,y0],matrix);y0=_slicedToArray(x0,2);x0=y0[0];y0=y0[1];x1=_util.Util.applyTransform([x1,y1],matrix);x1=_slicedToArray(x1,2);var tx1=x1[0],ty1=x1[1];x1=_util.Util.singularValueDecompose2dScale(matrix);x1=_slicedToArray(x1,2);xstep*=x1[0];x1=ystep*x1[1];ystep=this.svgFactory.createElement("svg:pattern");ystep.setAttributeNS(null,"id",args);ystep.setAttributeNS(null,"patternUnits","userSpaceOnUse");ystep.setAttributeNS(null,
"width",xstep);ystep.setAttributeNS(null,"height",x1);ystep.setAttributeNS(null,"x","".concat(x0));ystep.setAttributeNS(null,"y","".concat(y0));xstep=this.svg;x1=this.transformMatrix;y1=this.current.fillColor;var strokeColor=this.current.strokeColor;this.svg=x0=this.svgFactory.create(tx1-x0,ty1-y0);this.transformMatrix=matrix;if(2===_args$){matrix=_util.Util.makeCssRgb;_args$=matrix.apply;y0=_util.Util;if(Array.isArray(color)){tx1=0;for(ty1=Array(color.length);tx1<color.length;tx1++)ty1[tx1]=color[tx1];
tx1=ty1}else tx1=void 0;tx1||(tx1=Symbol.iterator in Object(color)||"[object Arguments]"===Object.prototype.toString.call(color)?Array.from(color):void 0);if(!(color=tx1))throw new TypeError("Invalid attempt to spread non-iterable instance");color=_args$.call(matrix,y0,color);this.current.fillColor=color;this.current.strokeColor=color}this.executeOpTree(this.convertOpList(operatorList));this.svg=xstep;this.transformMatrix=x1;this.current.fillColor=y1;this.current.strokeColor=strokeColor;ystep.appendChild(x0.childNodes[0]);
this.defs.appendChild(ystep);return"url(#".concat(args,")")}},{key:"_makeShadingPattern",value:function(args){switch(args[0]){case "RadialAxial":var shadingId="shading".concat(shadingCount++),colorStops=args[2];switch(args[1]){case "axial":var point0=args[3],point1=args[4];args=this.svgFactory.createElement("svg:linearGradient");args.setAttributeNS(null,"id",shadingId);args.setAttributeNS(null,"gradientUnits","userSpaceOnUse");args.setAttributeNS(null,"x1",point0[0]);args.setAttributeNS(null,"y1",
point0[1]);args.setAttributeNS(null,"x2",point1[0]);args.setAttributeNS(null,"y2",point1[1]);break;case "radial":point0=args[3];point1=args[4];var focalRadius=args[5],circleRadius=args[6];args=this.svgFactory.createElement("svg:radialGradient");args.setAttributeNS(null,"id",shadingId);args.setAttributeNS(null,"gradientUnits","userSpaceOnUse");args.setAttributeNS(null,"cx",point1[0]);args.setAttributeNS(null,"cy",point1[1]);args.setAttributeNS(null,"r",circleRadius);args.setAttributeNS(null,"fx",point0[0]);
args.setAttributeNS(null,"fy",point0[1]);args.setAttributeNS(null,"fr",focalRadius);break;default:throw Error("Unknown RadialAxial type: ".concat(args[1]));}point0=!0;point1=!1;focalRadius=void 0;try{for(var _iterator5=colorStops[Symbol.iterator](),_step5;!(point0=(_step5=_iterator5.next()).done);point0=!0){var colorStop=_step5.value,stop=this.svgFactory.createElement("svg:stop");stop.setAttributeNS(null,"offset",colorStop[0]);stop.setAttributeNS(null,"stop-color",colorStop[1]);args.appendChild(stop)}}catch(err){point1=
!0,focalRadius=err}finally{try{if(!point0&&null!=_iterator5["return"])_iterator5["return"]()}finally{if(point1)throw focalRadius;}}this.defs.appendChild(args);return"url(#".concat(shadingId,")");case "Mesh":return(0,_util.warn)("Unimplemented pattern Mesh"),null;case "Dummy":return"hotpink";default:throw Error("Unknown IR type: ".concat(args[0]));}}},{key:"setDash",value:function(dashArray,dashPhase){this.current.dashArray=dashArray;this.current.dashPhase=dashPhase}},{key:"constructPath",value:function(ops,
args){var current=this.current,x=current.x,y=current.y,d=[],j=0,_iteratorNormalCompletion6=!0,_didIteratorError6=!1,_iteratorError6=void 0;try{for(var _iterator6=ops[Symbol.iterator](),_step6;!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=!0)switch(_step6.value|0){case _util.OPS.rectangle:x=args[j++];y=args[j++];var width=args[j++],height=args[j++],xw=x+width,yh=y+height;d.push("M",pf(x),pf(y),"L",pf(xw),pf(y),"L",pf(xw),pf(yh),"L",pf(x),pf(yh),"Z");break;
case _util.OPS.moveTo:x=args[j++];y=args[j++];d.push("M",pf(x),pf(y));break;case _util.OPS.lineTo:x=args[j++];y=args[j++];d.push("L",pf(x),pf(y));break;case _util.OPS.curveTo:x=args[j+4];y=args[j+5];d.push("C",pf(args[j]),pf(args[j+1]),pf(args[j+2]),pf(args[j+3]),pf(x),pf(y));j+=6;break;case _util.OPS.curveTo2:x=args[j+2];y=args[j+3];d.push("C",pf(x),pf(y),pf(args[j]),pf(args[j+1]),pf(args[j+2]),pf(args[j+3]));j+=4;break;case _util.OPS.curveTo3:x=args[j+2];y=args[j+3];d.push("C",pf(args[j]),pf(args[j+
1]),pf(x),pf(y),pf(x),pf(y));j+=4;break;case _util.OPS.closePath:d.push("Z")}}catch(err){_didIteratorError6=!0,_iteratorError6=err}finally{try{if(!_iteratorNormalCompletion6&&null!=_iterator6["return"])_iterator6["return"]()}finally{if(_didIteratorError6)throw _iteratorError6;}}d=d.join(" ");current.path&&0<ops.length&&ops[0]!==_util.OPS.rectangle&&ops[0]!==_util.OPS.moveTo?d=current.path.getAttributeNS(null,"d")+d:(current.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(current.path));
current.path.setAttributeNS(null,"d",d);current.path.setAttributeNS(null,"fill","none");current.element=current.path;current.setCurrentPoint(x,y)}},{key:"endPath",value:function(){var current=this.current;current.path=null;if(this.pendingClip)if(current.element){var clipId="clippath".concat(clipCount++),clipPath=this.svgFactory.createElement("svg:clipPath");clipPath.setAttributeNS(null,"id",clipId);clipPath.setAttributeNS(null,"transform",pm(this.transformMatrix));var clipElement=current.element.cloneNode(!0);
"evenodd"===this.pendingClip?clipElement.setAttributeNS(null,"clip-rule","evenodd"):clipElement.setAttributeNS(null,"clip-rule","nonzero");this.pendingClip=null;clipPath.appendChild(clipElement);this.defs.appendChild(clipPath);current.activeClipUrl&&(current.clipGroup=null,this.extraStack.forEach(function(prev){prev.clipGroup=null}),clipPath.setAttributeNS(null,"clip-path",current.activeClipUrl));current.activeClipUrl="url(#".concat(clipId,")");this.tgrp=null}else this.pendingClip=null}},{key:"clip",
value:function(type){this.pendingClip=type}},{key:"closePath",value:function(){var current=this.current;if(current.path){var d="".concat(current.path.getAttributeNS(null,"d"),"Z");current.path.setAttributeNS(null,"d",d)}}},{key:"setLeading",value:function(leading){this.current.leading=-leading}},{key:"setTextRise",value:function(textRise){this.current.textRise=textRise}},{key:"setTextRenderingMode",value:function(textRenderingMode){this.current.textRenderingMode=textRenderingMode}},{key:"setHScale",
value:function(scale){this.current.textHScale=scale/100}},{key:"setRenderingIntent",value:function(intent){}},{key:"setFlatness",value:function(flatness){}},{key:"setGState",value:function(states){var _iteratorNormalCompletion7=!0,_didIteratorError7=!1,_iteratorError7=void 0;try{for(var _iterator7=states[Symbol.iterator](),_step7;!(_iteratorNormalCompletion7=(_step7=_iterator7.next()).done);_iteratorNormalCompletion7=!0){var _step7$value=_slicedToArray(_step7.value,2),key=_step7$value[0],value=_step7$value[1];
switch(key){case "LW":this.setLineWidth(value);break;case "LC":this.setLineCap(value);break;case "LJ":this.setLineJoin(value);break;case "ML":this.setMiterLimit(value);break;case "D":this.setDash(value[0],value[1]);break;case "RI":this.setRenderingIntent(value);break;case "FL":this.setFlatness(value);break;case "Font":this.setFont(value);break;case "CA":this.setStrokeAlpha(value);break;case "ca":this.setFillAlpha(value);break;default:(0,_util.warn)("Unimplemented graphic state operator ".concat(key))}}}catch(err){_didIteratorError7=
!0,_iteratorError7=err}finally{try{if(!_iteratorNormalCompletion7&&null!=_iterator7["return"])_iterator7["return"]()}finally{if(_didIteratorError7)throw _iteratorError7;}}}},{key:"fill",value:function(){var current=this.current;current.element&&(current.element.setAttributeNS(null,"fill",current.fillColor),current.element.setAttributeNS(null,"fill-opacity",current.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var current=this.current;current.element&&(this._setStrokeAttributes(current.element),
current.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(element){var lineWidthScale=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,current=this.current,dashArray=current.dashArray;1!==lineWidthScale&&0<dashArray.length&&(dashArray=dashArray.map(function(value){return lineWidthScale*value}));element.setAttributeNS(null,"stroke",current.strokeColor);element.setAttributeNS(null,"stroke-opacity",current.strokeAlpha);element.setAttributeNS(null,
"stroke-miterlimit",pf(current.miterLimit));element.setAttributeNS(null,"stroke-linecap",current.lineCap);element.setAttributeNS(null,"stroke-linejoin",current.lineJoin);element.setAttributeNS(null,"stroke-width",pf(lineWidthScale*current.lineWidth)+"px");element.setAttributeNS(null,"stroke-dasharray",dashArray.map(pf).join(" "));element.setAttributeNS(null,"stroke-dashoffset",pf(lineWidthScale*current.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,
"fill-rule","evenodd");this.fill()}},{key:"fillStroke",value:function(){this.stroke();this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd");this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath();this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath();this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath();this.eoFillStroke()}},{key:"paintSolidColorImageMask",
value:function(){var rect=this.svgFactory.createElement("svg:rect");rect.setAttributeNS(null,"x","0");rect.setAttributeNS(null,"y","0");rect.setAttributeNS(null,"width","1px");rect.setAttributeNS(null,"height","1px");rect.setAttributeNS(null,"fill",this.current.fillColor);this._ensureTransformGroup().appendChild(rect)}},{key:"paintJpegXObject",value:function(objId,w,h){objId=this.objs.get(objId);var imgEl=this.svgFactory.createElement("svg:image");imgEl.setAttributeNS("http://www.w3.org/1999/xlink",
"xlink:href",objId.src);imgEl.setAttributeNS(null,"width",pf(w));imgEl.setAttributeNS(null,"height",pf(h));imgEl.setAttributeNS(null,"x","0");imgEl.setAttributeNS(null,"y",pf(-h));imgEl.setAttributeNS(null,"transform","scale(".concat(pf(1/w)," ").concat(pf(-1/h),")"));this._ensureTransformGroup().appendChild(imgEl)}},{key:"paintImageXObject",value:function(objId){var imgData=this.objs.get(objId);imgData?this.paintInlineImageXObject(imgData):(0,_util.warn)("Dependent image with object ID ".concat(objId,
" is not ready yet"))}},{key:"paintInlineImageXObject",value:function(imgData,mask){var width=imgData.width,height=imgData.height;imgData=convertImgDataToPng(imgData,this.forceDataSchema,!!mask);var cliprect=this.svgFactory.createElement("svg:rect");cliprect.setAttributeNS(null,"x","0");cliprect.setAttributeNS(null,"y","0");cliprect.setAttributeNS(null,"width",pf(width));cliprect.setAttributeNS(null,"height",pf(height));this.current.element=cliprect;this.clip("nonzero");cliprect=this.svgFactory.createElement("svg:image");
cliprect.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",imgData);cliprect.setAttributeNS(null,"x","0");cliprect.setAttributeNS(null,"y",pf(-height));cliprect.setAttributeNS(null,"width",pf(width)+"px");cliprect.setAttributeNS(null,"height",pf(height)+"px");cliprect.setAttributeNS(null,"transform","scale(".concat(pf(1/width)," ").concat(pf(-1/height),")"));mask?mask.appendChild(cliprect):this._ensureTransformGroup().appendChild(cliprect)}},{key:"paintImageMaskXObject",value:function(imgData){var current=
this.current,width=imgData.width,height=imgData.height,fillColor=current.fillColor;current.maskId="mask".concat(maskCount++);var mask=this.svgFactory.createElement("svg:mask");mask.setAttributeNS(null,"id",current.maskId);var rect=this.svgFactory.createElement("svg:rect");rect.setAttributeNS(null,"x","0");rect.setAttributeNS(null,"y","0");rect.setAttributeNS(null,"width",pf(width));rect.setAttributeNS(null,"height",pf(height));rect.setAttributeNS(null,"fill",fillColor);rect.setAttributeNS(null,"mask",
"url(#".concat(current.maskId,")"));this.defs.appendChild(mask);this._ensureTransformGroup().appendChild(rect);this.paintInlineImageXObject(imgData,mask)}},{key:"paintFormXObjectBegin",value:function(matrix,bbox){Array.isArray(matrix)&&6===matrix.length&&this.transform(matrix[0],matrix[1],matrix[2],matrix[3],matrix[4],matrix[5]);if(bbox){matrix=bbox[2]-bbox[0];var height=bbox[3]-bbox[1],cliprect=this.svgFactory.createElement("svg:rect");cliprect.setAttributeNS(null,"x",bbox[0]);cliprect.setAttributeNS(null,
"y",bbox[1]);cliprect.setAttributeNS(null,"width",pf(matrix));cliprect.setAttributeNS(null,"height",pf(height));this.current.element=cliprect;this.clip("nonzero");this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(viewport){var svg=this.svgFactory.create(viewport.width,viewport.height),definitions=this.svgFactory.createElement("svg:defs");svg.appendChild(definitions);this.defs=definitions;definitions=this.svgFactory.createElement("svg:g");definitions.setAttributeNS(null,
"transform",pm(viewport.transform));svg.appendChild(definitions);this.svg=definitions;return svg}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var clipGroup=this.svgFactory.createElement("svg:g");clipGroup.setAttributeNS(null,"clip-path",this.current.activeClipUrl);this.svg.appendChild(clipGroup);this.current.clipGroup=clipGroup}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,
"transform",pm(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp));return this.tgrp}}]);return SVGGraphics}()},function(module,exports,__w_pdfjs_require__){function _typeof(obj$jscomp$0){_typeof="function"===typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(obj){return _typeof2(obj)}:function(obj){return obj&&"function"===typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":_typeof2(obj)};
return _typeof(obj$jscomp$0)}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}function _inherits(subClass,superClass){if("function"!==
typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,configurable:!0}});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,
_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,
protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function createRequestOptions(url,headers){return{protocol:url.protocol,auth:url.auth,host:url.hostname,port:url.port,path:url.path,method:"GET",headers:headers}}Object.defineProperty(exports,"__esModule",{value:!0});exports.PDFNodeStream=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),_network_utils=__w_pdfjs_require__(203),
fs=__webpack_require__(139),http=__webpack_require__(77),https=__webpack_require__(149),url$jscomp$0=__webpack_require__(62),fileUriRegex=/^file:\/\/\/[a-zA-Z]:\//;module=function(){function PDFNodeStream(source){_classCallCheck(this,PDFNodeStream);this.source=source;var JSCompiler_inline_result=source.url;var parsedUrl=url$jscomp$0.parse(JSCompiler_inline_result);"file:"===parsedUrl.protocol||parsedUrl.host?JSCompiler_inline_result=parsedUrl:/^[a-z]:[/\\]/i.test(JSCompiler_inline_result)?JSCompiler_inline_result=
url$jscomp$0.parse("file:///".concat(JSCompiler_inline_result)):(parsedUrl.host||(parsedUrl.protocol="file:"),JSCompiler_inline_result=parsedUrl);this.url=JSCompiler_inline_result;this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol;this.isFsUrl="file:"===this.url.protocol;this.httpHeaders=this.isHttp&&source.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFNodeStream,[{key:"getFullReader",value:function(){(0,_util.assert)(!this._fullRequestReader);
return this._fullRequestReader=this.isFsUrl?new PDFNodeStreamFsFullReader(this):new PDFNodeStreamFullReader(this)}},{key:"getRangeReader",value:function(start,end){if(end<=this._progressiveDataLength)return null;start=this.isFsUrl?new PDFNodeStreamFsRangeReader(this,start,end):new PDFNodeStreamRangeReader(this,start,end);this._rangeRequestReaders.push(start);return start}},{key:"cancelAllRequests",value:function(reason){this._fullRequestReader&&this._fullRequestReader.cancel(reason);this._rangeRequestReaders.slice(0).forEach(function(reader){reader.cancel(reason)})}},
{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]);return PDFNodeStream}();exports.PDFNodeStream=module;exports=function(){function BaseFullReader(stream){_classCallCheck(this,BaseFullReader);this._url=stream.url;this._done=!1;this.onProgress=this._storedError=null;stream=stream.source;this._contentLength=stream.length;this._loaded=0;this._filename=null;this._disableRange=stream.disableRange||!1;this._rangeChunkSize=stream.rangeChunkSize;
this._rangeChunkSize||this._disableRange||(this._disableRange=!0);this._isStreamingSupported=!stream.disableStream;this._isRangeSupported=!stream.disableRange;this._readableStream=null;this._readCapability=(0,_util.createPromiseCapability)();this._headersCapability=(0,_util.createPromiseCapability)()}_createClass(BaseFullReader,[{key:"read",value:function(){var _read=_asyncToGenerator(_regenerator["default"].mark(function _callee(){var chunk,buffer;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=
_context.next){case 0:return _context.next=2,this._readCapability.promise;case 2:if(!this._done){_context.next=4;break}return _context.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){_context.next=6;break}throw this._storedError;case 6:chunk=this._readableStream.read();if(null!==chunk){_context.next=10;break}this._readCapability=(0,_util.createPromiseCapability)();return _context.abrupt("return",this.read());case 10:this._loaded+=chunk.length;if(this.onProgress)this.onProgress({loaded:this._loaded,
total:this._contentLength});buffer=(new Uint8Array(chunk)).buffer;return _context.abrupt("return",{value:buffer,done:!1});case 14:case "end":return _context.stop()}},_callee,this)}));return function(){return _read.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._readableStream?this._readableStream.destroy(reason):this._error(reason)}},{key:"_error",value:function(reason){this._storedError=reason;this._readCapability.resolve()}},{key:"_setReadableStream",value:function(readableStream){var _this=
this;this._readableStream=readableStream;readableStream.on("readable",function(){_this._readCapability.resolve()});readableStream.on("end",function(){readableStream.destroy();_this._done=!0;_this._readCapability.resolve()});readableStream.on("error",function(reason){_this._error(reason)});!this._isStreamingSupported&&this._isRangeSupported&&this._error(new _util.AbortException("streaming is disabled"));this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"headersReady",get:function(){return this._headersCapability.promise}},
{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return BaseFullReader}();module=function(){function BaseRangeReader(stream){_classCallCheck(this,BaseRangeReader);this._url=stream.url;this._done=!1;this.onProgress=this._storedError=null;this._loaded=0;this._readableStream=null;
this._readCapability=(0,_util.createPromiseCapability)();this._isStreamingSupported=!stream.source.disableStream}_createClass(BaseRangeReader,[{key:"read",value:function(){var _read2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){var chunk,buffer;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,this._readCapability.promise;case 2:if(!this._done){_context2.next=4;break}return _context2.abrupt("return",
{value:void 0,done:!0});case 4:if(!this._storedError){_context2.next=6;break}throw this._storedError;case 6:chunk=this._readableStream.read();if(null!==chunk){_context2.next=10;break}this._readCapability=(0,_util.createPromiseCapability)();return _context2.abrupt("return",this.read());case 10:this._loaded+=chunk.length;if(this.onProgress)this.onProgress({loaded:this._loaded});buffer=(new Uint8Array(chunk)).buffer;return _context2.abrupt("return",{value:buffer,done:!1});case 14:case "end":return _context2.stop()}},
_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._readableStream?this._readableStream.destroy(reason):this._error(reason)}},{key:"_error",value:function(reason){this._storedError=reason;this._readCapability.resolve()}},{key:"_setReadableStream",value:function(readableStream){var _this2=this;this._readableStream=readableStream;readableStream.on("readable",function(){_this2._readCapability.resolve()});readableStream.on("end",function(){readableStream.destroy();
_this2._done=!0;_this2._readCapability.resolve()});readableStream.on("error",function(reason){_this2._error(reason)});this._storedError&&this._readableStream.destroy(this._storedError)}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return BaseRangeReader}();var PDFNodeStreamFullReader=function(_BaseFullReader){function PDFNodeStreamFullReader(stream){_classCallCheck(this,PDFNodeStreamFullReader);var _this3=_possibleConstructorReturn(this,_getPrototypeOf(PDFNodeStreamFullReader).call(this,
stream));var handleResponse=function(response){if(404===response.statusCode)response=new _util.MissingPDFException('Missing PDF "'.concat(_this3._url,'".')),_this3._storedError=response,_this3._headersCapability.reject(response);else{_this3._headersCapability.resolve();_this3._setReadableStream(response);response=function(name){return _this3._readableStream.headers[name.toLowerCase()]};var _validateRangeRequest=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:response,isHttp:stream.isHttp,
rangeChunkSize:_this3._rangeChunkSize,disableRange:_this3._disableRange}),suggestedLength=_validateRangeRequest.suggestedLength;_this3._isRangeSupported=_validateRangeRequest.allowRangeRequests;_this3._contentLength=suggestedLength||_this3._contentLength;_this3._filename=(0,_network_utils.extractFilenameFromHeader)(response)}};_this3._request=null;_this3._request="http:"===_this3._url.protocol?http.request(createRequestOptions(_this3._url,stream.httpHeaders),handleResponse):https.request(createRequestOptions(_this3._url,
stream.httpHeaders),handleResponse);_this3._request.on("error",function(reason){_this3._storedError=reason;_this3._headersCapability.reject(reason)});_this3._request.end();return _this3}_inherits(PDFNodeStreamFullReader,_BaseFullReader);return PDFNodeStreamFullReader}(exports),PDFNodeStreamRangeReader=function(_BaseRangeReader){function PDFNodeStreamRangeReader(stream,start,end){_classCallCheck(this,PDFNodeStreamRangeReader);var _this4=_possibleConstructorReturn(this,_getPrototypeOf(PDFNodeStreamRangeReader).call(this,
stream));_this4._httpHeaders={};for(var property in stream.httpHeaders){var value=stream.httpHeaders[property];"undefined"!==typeof value&&(_this4._httpHeaders[property]=value)}_this4._httpHeaders.Range="bytes=".concat(start,"-").concat(end-1);stream=function(response){404===response.statusCode?(response=new _util.MissingPDFException('Missing PDF "'.concat(_this4._url,'".')),_this4._storedError=response):_this4._setReadableStream(response)};_this4._request=null;_this4._request="http:"===_this4._url.protocol?
http.request(createRequestOptions(_this4._url,_this4._httpHeaders),stream):https.request(createRequestOptions(_this4._url,_this4._httpHeaders),stream);_this4._request.on("error",function(reason){_this4._storedError=reason});_this4._request.end();return _this4}_inherits(PDFNodeStreamRangeReader,_BaseRangeReader);return PDFNodeStreamRangeReader}(module),PDFNodeStreamFsFullReader=function(_BaseFullReader2){function PDFNodeStreamFsFullReader(stream){_classCallCheck(this,PDFNodeStreamFsFullReader);var _this5=
_possibleConstructorReturn(this,_getPrototypeOf(PDFNodeStreamFsFullReader).call(this,stream));var path=decodeURIComponent(_this5._url.path);fileUriRegex.test(_this5._url.href)&&(path=path.replace(/^\//,""));fs.lstat(path,function(error,stat){error?("ENOENT"===error.code&&(error=new _util.MissingPDFException('Missing PDF "'.concat(path,'".'))),_this5._storedError=error,_this5._headersCapability.reject(error)):(_this5._contentLength=stat.size,_this5._setReadableStream(fs.createReadStream(path)),_this5._headersCapability.resolve())});
return _this5}_inherits(PDFNodeStreamFsFullReader,_BaseFullReader2);return PDFNodeStreamFsFullReader}(exports),PDFNodeStreamFsRangeReader=function(_BaseRangeReader2){function PDFNodeStreamFsRangeReader(stream,start,end){_classCallCheck(this,PDFNodeStreamFsRangeReader);stream=_possibleConstructorReturn(this,_getPrototypeOf(PDFNodeStreamFsRangeReader).call(this,stream));var path=decodeURIComponent(stream._url.path);fileUriRegex.test(stream._url.href)&&(path=path.replace(/^\//,""));stream._setReadableStream(fs.createReadStream(path,
{start:start,end:end-1}));return stream}_inherits(PDFNodeStreamFsRangeReader,_BaseRangeReader2);return PDFNodeStreamFsRangeReader}(module)},function(module,exports,__w_pdfjs_require__){Object.defineProperty(exports,"__esModule",{value:!0});exports.createResponseStatusError=function(status,url){return 404===status||0===status&&/^file:/.test(url)?new _util.MissingPDFException('Missing PDF "'+url+'".'):new _util.UnexpectedResponseException("Unexpected server response ("+status+') while retrieving PDF "'+
url+'".',status)};exports.extractFilenameFromHeader=function(getResponseHeader){if(getResponseHeader=getResponseHeader("Content-Disposition")){getResponseHeader=(0,_content_disposition.getFilenameFromContentDispositionHeader)(getResponseHeader);if(getResponseHeader.includes("%"))try{getResponseHeader=decodeURIComponent(getResponseHeader)}catch(ex){}if(/\.pdf$/i.test(getResponseHeader))return getResponseHeader}return null};exports.validateRangeRequestCapabilities=function(_ref){var getResponseHeader=
_ref.getResponseHeader,isHttp=_ref.isHttp,rangeChunkSize=_ref.rangeChunkSize;_ref=_ref.disableRange;(0,_util.assert)(0<rangeChunkSize,"Range chunk size must be larger than zero");var returnValues={allowRangeRequests:!1,suggestedLength:void 0},length=parseInt(getResponseHeader("Content-Length"),10);if(!Number.isInteger(length))return returnValues;returnValues.suggestedLength=length;if(length<=2*rangeChunkSize||_ref||!isHttp||"bytes"!==getResponseHeader("Accept-Ranges")||"identity"!==(getResponseHeader("Content-Encoding")||
"identity"))return returnValues;returnValues.allowRangeRequests=!0;return returnValues};exports.validateResponseStatus=function(status){return 200===status||206===status};var _util=__w_pdfjs_require__(1),_content_disposition=__w_pdfjs_require__(204)},function(module,exports,__w_pdfjs_require__){function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(Symbol.iterator in Object(arr)||"[object Arguments]"===Object.prototype.toString.call(arr)){JSCompiler_temp=
[];var _n=!0,_d=!1,_e=void 0;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done)&&(JSCompiler_temp.push(_s.value),!i||JSCompiler_temp.length!==i);_n=!0);}catch(err){_d=!0,_e=err}finally{try{if(!_n&&null!=_i["return"])_i["return"]()}finally{if(_d)throw _e;}}}else JSCompiler_temp=void 0;if(!(arr=JSCompiler_temp))throw new TypeError("Invalid attempt to destructure non-iterable instance");return arr}Object.defineProperty(exports,"__esModule",{value:!0});exports.getFilenameFromContentDispositionHeader=
function(contentDisposition$jscomp$0){function toParamRegExp(attributePattern,flags){return new RegExp("(?:^|;)\\s*"+attributePattern+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',flags)}function textdecode(encoding,value){if(encoding){if(!/^[\x00-\xFF]+$/.test(value))return value;try{var decoder=new TextDecoder(encoding,{fatal:!0}),bytes=Array.from(value,function(ch){return ch.charCodeAt(0)&255});value=decoder.decode(new Uint8Array(bytes));needsEncodingFixup=!1}catch(e){if(/^utf-?8$/i.test(encoding))try{value=
decodeURIComponent(escape(value)),needsEncodingFixup=!1}catch(err){}}}return value}function fixupEncoding(value){needsEncodingFixup&&/[\x80-\xff]/.test(value)&&(value=textdecode("utf-8",value),needsEncodingFixup&&(value=textdecode("iso-8859-1",value)));return value}function rfc2616unquote(value){if(value.startsWith('"')){value=value.slice(1).split('\\"');for(var i=0;i<value.length;++i){var quotindex=value[i].indexOf('"');-1!==quotindex&&(value[i]=value[i].slice(0,quotindex),value.length=i+1);value[i]=
value[i].replace(/\\(.)/g,"$1")}value=value.join('"')}return value}function rfc5987decode(extvalue){var encodingend=extvalue.indexOf("'");if(-1===encodingend)return extvalue;var encoding=extvalue.slice(0,encodingend);extvalue=extvalue.slice(encodingend+1).replace(/^[^']*'/,"");return textdecode(encoding,extvalue)}function rfc2047decode(value){return!value.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(value)?value:value.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(_$jscomp$0,charset,
encoding,text){if("q"===encoding||"Q"===encoding)return text=text.replace(/_/g," "),text=text.replace(/=([0-9a-fA-F]{2})/g,function(_,hex){return String.fromCharCode(parseInt(hex,16))}),textdecode(charset,text);try{text=atob(text)}catch(e){}return textdecode(charset,text)})}var needsEncodingFixup=!0,tmp=toParamRegExp("filename\\*","i").exec(contentDisposition$jscomp$0);return tmp?(tmp=tmp[1],contentDisposition$jscomp$0=rfc2616unquote(tmp),contentDisposition$jscomp$0=unescape(contentDisposition$jscomp$0),
contentDisposition$jscomp$0=rfc5987decode(contentDisposition$jscomp$0),contentDisposition$jscomp$0=rfc2047decode(contentDisposition$jscomp$0),fixupEncoding(contentDisposition$jscomp$0)):(tmp=function(contentDisposition){for(var matches=[],match,iter=toParamRegExp("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(match=iter.exec(contentDisposition));){var _match2=_slicedToArray(match,4);match=_match2[1];var quot=_match2[2];_match2=_match2[3];match=parseInt(match,10);if(match in matches){if(0===match)break}else matches[match]=
[quot,_match2]}contentDisposition=[];for(iter=0;iter<matches.length&&iter in matches;++iter)quot=_slicedToArray(matches[iter],2),match=quot[0],quot=quot[1],quot=rfc2616unquote(quot),match&&(quot=unescape(quot),0===iter&&(quot=rfc5987decode(quot))),contentDisposition.push(quot);return contentDisposition.join("")}(contentDisposition$jscomp$0))?(contentDisposition$jscomp$0=rfc2047decode(tmp),fixupEncoding(contentDisposition$jscomp$0)):(tmp=toParamRegExp("filename","i").exec(contentDisposition$jscomp$0))?
(tmp=tmp[1],contentDisposition$jscomp$0=rfc2616unquote(tmp),contentDisposition$jscomp$0=rfc2047decode(contentDisposition$jscomp$0),fixupEncoding(contentDisposition$jscomp$0)):""}},function(module,exports,__w_pdfjs_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,
args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=
props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}Object.defineProperty(exports,"__esModule",{value:!0});exports.PDFNetworkStream=void 0;var _regenerator=function(obj){return obj&&
obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),_network_utils=__w_pdfjs_require__(203),NetworkManager=function(){function NetworkManager(url,args){_classCallCheck(this,NetworkManager);this.url=url;args=args||{};this.httpHeaders=(this.isHttp=/^https?:/i.test(url))&&args.httpHeaders||{};this.withCredentials=args.withCredentials||!1;this.getXhr=args.getXhr||function(){return new XMLHttpRequest};this.currXhrId=0;this.pendingRequests=Object.create(null)}_createClass(NetworkManager,
[{key:"requestRange",value:function(begin,end,listeners){begin={begin:begin,end:end};for(var prop in listeners)begin[prop]=listeners[prop];return this.request(begin)}},{key:"requestFull",value:function(listeners){return this.request(listeners)}},{key:"request",value:function(args){var xhr=this.getXhr(),xhrId=this.currXhrId++,pendingRequest=this.pendingRequests[xhrId]={xhr:xhr};xhr.open("GET",this.url);xhr.withCredentials=this.withCredentials;for(var property in this.httpHeaders){var value=this.httpHeaders[property];
"undefined"!==typeof value&&xhr.setRequestHeader(property,value)}this.isHttp&&"begin"in args&&"end"in args?(xhr.setRequestHeader("Range","bytes=".concat(args.begin,"-").concat(args.end-1)),pendingRequest.expectedStatus=206):pendingRequest.expectedStatus=200;xhr.responseType="arraybuffer";args.onError&&(xhr.onerror=function(evt){args.onError(xhr.status)});xhr.onreadystatechange=this.onStateChange.bind(this,xhrId);xhr.onprogress=this.onProgress.bind(this,xhrId);pendingRequest.onHeadersReceived=args.onHeadersReceived;
pendingRequest.onDone=args.onDone;pendingRequest.onError=args.onError;pendingRequest.onProgress=args.onProgress;xhr.send(null);return xhrId}},{key:"onProgress",value:function(xhrId,evt){if((xhrId=this.pendingRequests[xhrId])&&xhrId.onProgress)xhrId.onProgress(evt)}},{key:"onStateChange",value:function(xhrId,evt){if(evt=this.pendingRequests[xhrId]){var xhr=evt.xhr;2<=xhr.readyState&&evt.onHeadersReceived&&(evt.onHeadersReceived(),delete evt.onHeadersReceived);if(4===xhr.readyState&&xhrId in this.pendingRequests)if(delete this.pendingRequests[xhrId],
0===xhr.status&&this.isHttp){if(evt.onError)evt.onError(xhr.status)}else{var xhrStatus=xhr.status||200;if(200===xhrStatus&&206===evt.expectedStatus||xhrStatus===evt.expectedStatus)if(xhrId=xhr.response,xhrId="string"!==typeof xhrId?xhrId:(0,_util.stringToBytes)(xhrId).buffer,206===xhrStatus)xhr=xhr.getResponseHeader("Content-Range"),xhr=/bytes (\d+)-(\d+)\/(\d+)/.exec(xhr),evt.onDone({begin:parseInt(xhr[1],10),chunk:xhrId});else if(xhrId)evt.onDone({begin:0,chunk:xhrId});else{if(evt.onError)evt.onError(xhr.status)}else if(evt.onError)evt.onError(xhr.status)}}}},
{key:"hasPendingRequests",value:function(){for(var xhrId in this.pendingRequests)return!0;return!1}},{key:"getRequestXhr",value:function(xhrId){return this.pendingRequests[xhrId].xhr}},{key:"isPendingRequest",value:function(xhrId){return xhrId in this.pendingRequests}},{key:"abortAllRequests",value:function(){for(var xhrId in this.pendingRequests)this.abortRequest(xhrId|0)}},{key:"abortRequest",value:function(xhrId){var xhr=this.pendingRequests[xhrId].xhr;delete this.pendingRequests[xhrId];xhr.abort()}}]);
return NetworkManager}();module=function(){function PDFNetworkStream(source){_classCallCheck(this,PDFNetworkStream);this._source=source;this._manager=new NetworkManager(source.url,{httpHeaders:source.httpHeaders,withCredentials:source.withCredentials});this._rangeChunkSize=source.rangeChunkSize;this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFNetworkStream,[{key:"_onRangeRequestReaderClosed",value:function(reader){reader=this._rangeRequestReaders.indexOf(reader);0<=reader&&
this._rangeRequestReaders.splice(reader,1)}},{key:"getFullReader",value:function(){(0,_util.assert)(!this._fullRequestReader);return this._fullRequestReader=new PDFNetworkStreamFullRequestReader(this._manager,this._source)}},{key:"getRangeReader",value:function(begin,end){begin=new PDFNetworkStreamRangeRequestReader(this._manager,begin,end);begin.onClosed=this._onRangeRequestReaderClosed.bind(this);this._rangeRequestReaders.push(begin);return begin}},{key:"cancelAllRequests",value:function(reason){this._fullRequestReader&&
this._fullRequestReader.cancel(reason);this._rangeRequestReaders.slice(0).forEach(function(reader){reader.cancel(reason)})}}]);return PDFNetworkStream}();exports.PDFNetworkStream=module;var PDFNetworkStreamFullRequestReader=function(){function PDFNetworkStreamFullRequestReader(manager,source){_classCallCheck(this,PDFNetworkStreamFullRequestReader);this._manager=manager;var args={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};
this._url=source.url;this._fullRequestId=manager.requestFull(args);this._headersReceivedCapability=(0,_util.createPromiseCapability)();this._disableRange=source.disableRange||!1;this._contentLength=source.length;this._rangeChunkSize=source.rangeChunkSize;this._rangeChunkSize||this._disableRange||(this._disableRange=!0);this._isRangeSupported=this._isStreamingSupported=!1;this._cachedChunks=[];this._requests=[];this._done=!1;this._storedError=void 0;this.onProgress=this._filename=null}_createClass(PDFNetworkStreamFullRequestReader,
[{key:"_onHeadersReceived",value:function(){var fullRequestXhrId=this._fullRequestId,fullRequestXhr=this._manager.getRequestXhr(fullRequestXhrId),getResponseHeader=function(name){return fullRequestXhr.getResponseHeader(name)},_validateRangeRequest=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),suggestedLength=_validateRangeRequest.suggestedLength;_validateRangeRequest.allowRangeRequests&&
(this._isRangeSupported=!0);this._contentLength=suggestedLength||this._contentLength;this._filename=(0,_network_utils.extractFilenameFromHeader)(getResponseHeader);this._isRangeSupported&&this._manager.abortRequest(fullRequestXhrId);this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(args){args&&(0<this._requests.length?this._requests.shift().resolve({value:args.chunk,done:!1}):this._cachedChunks.push(args.chunk));this._done=!0;0<this._cachedChunks.length||(this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,
done:!0})}),this._requests=[])}},{key:"_onError",value:function(status){var exception=(0,_network_utils.createResponseStatusError)(status,this._url);this._storedError=exception;this._headersReceivedCapability.reject(exception);this._requests.forEach(function(requestCapability){requestCapability.reject(exception)});this._requests=[];this._cachedChunks=[]}},{key:"_onProgress",value:function(data){if(this.onProgress)this.onProgress({loaded:data.loaded,total:data.lengthComputable?data.total:this._contentLength})}},
{key:"read",value:function(){var _read=_asyncToGenerator(_regenerator["default"].mark(function _callee(){var chunk,requestCapability;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:if(!this._storedError){_context.next=2;break}throw this._storedError;case 2:if(!(0<this._cachedChunks.length)){_context.next=5;break}chunk=this._cachedChunks.shift();return _context.abrupt("return",{value:chunk,done:!1});case 5:if(!this._done){_context.next=7;break}return _context.abrupt("return",
{value:void 0,done:!0});case 7:return requestCapability=(0,_util.createPromiseCapability)(),this._requests.push(requestCapability),_context.abrupt("return",requestCapability.promise);case 10:case "end":return _context.stop()}},_callee,this)}));return function(){return _read.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._done=!0;this._headersReceivedCapability.reject(reason);this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})});
this._requests=[];this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId);this._fullRequestReader=null}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}}]);
return PDFNetworkStreamFullRequestReader}(),PDFNetworkStreamRangeRequestReader=function(){function PDFNetworkStreamRangeRequestReader(manager,begin,end){_classCallCheck(this,PDFNetworkStreamRangeRequestReader);this._manager=manager;var args={onDone:this._onDone.bind(this),onProgress:this._onProgress.bind(this)};this._requestId=manager.requestRange(begin,end,args);this._requests=[];this._queuedChunk=null;this._done=!1;this.onClosed=this.onProgress=null}_createClass(PDFNetworkStreamRangeRequestReader,
[{key:"_close",value:function(){if(this.onClosed)this.onClosed(this)}},{key:"_onDone",value:function(data){data=data.chunk;0<this._requests.length?this._requests.shift().resolve({value:data,done:!1}):this._queuedChunk=data;this._done=!0;this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})});this._requests=[];this._close()}},{key:"_onProgress",value:function(evt){if(!this.isStreamingSupported&&this.onProgress)this.onProgress({loaded:evt.loaded})}},{key:"read",
value:function(){var _read2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){var chunk,requestCapability;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:if(null===this._queuedChunk){_context2.next=4;break}chunk=this._queuedChunk;this._queuedChunk=null;return _context2.abrupt("return",{value:chunk,done:!1});case 4:if(!this._done){_context2.next=6;break}return _context2.abrupt("return",{value:void 0,done:!0});case 6:return requestCapability=
(0,_util.createPromiseCapability)(),this._requests.push(requestCapability),_context2.abrupt("return",requestCapability.promise);case 9:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._done=!0;this._requests.forEach(function(requestCapability){requestCapability.resolve({value:void 0,done:!0})});this._requests=[];this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId);
this._close()}},{key:"isStreamingSupported",get:function(){return!1}}]);return PDFNetworkStreamRangeRequestReader}()},function(module,exports,__w_pdfjs_require__){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,
resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&
(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);return Constructor}function createFetchOptions(headers,withCredentials,abortController){return{method:"GET",headers:headers,signal:abortController&&abortController.signal,mode:"cors",credentials:withCredentials?"include":"same-origin",redirect:"follow"}}
function createHeaders(httpHeaders){var headers=new Headers,property;for(property in httpHeaders){var value=httpHeaders[property];"undefined"!==typeof value&&headers.append(property,value)}return headers}Object.defineProperty(exports,"__esModule",{value:!0});exports.PDFFetchStream=void 0;var _regenerator=function(obj){return obj&&obj.__esModule?obj:{"default":obj}}(__w_pdfjs_require__(185)),_util=__w_pdfjs_require__(1),_network_utils=__w_pdfjs_require__(203);module=function(){function PDFFetchStream(source){_classCallCheck(this,
PDFFetchStream);this.source=source;this.httpHeaders=(this.isHttp=/^https?:/i.test(source.url))&&source.httpHeaders||{};this._fullRequestReader=null;this._rangeRequestReaders=[]}_createClass(PDFFetchStream,[{key:"getFullReader",value:function(){(0,_util.assert)(!this._fullRequestReader);return this._fullRequestReader=new PDFFetchStreamReader(this)}},{key:"getRangeReader",value:function(begin,end){if(end<=this._progressiveDataLength)return null;begin=new PDFFetchStreamRangeReader(this,begin,end);this._rangeRequestReaders.push(begin);
return begin}},{key:"cancelAllRequests",value:function(reason){this._fullRequestReader&&this._fullRequestReader.cancel(reason);this._rangeRequestReaders.slice(0).forEach(function(reader){reader.cancel(reason)})}},{key:"_progressiveDataLength",get:function(){return this._fullRequestReader?this._fullRequestReader._loaded:0}}]);return PDFFetchStream}();exports.PDFFetchStream=module;var PDFFetchStreamReader=function(){function PDFFetchStreamReader(stream){var _this=this;_classCallCheck(this,PDFFetchStreamReader);
this._stream=stream;this._reader=null;this._loaded=0;this._filename=null;stream=stream.source;this._withCredentials=stream.withCredentials||!1;this._contentLength=stream.length;this._headersCapability=(0,_util.createPromiseCapability)();this._disableRange=stream.disableRange||!1;this._rangeChunkSize=stream.rangeChunkSize;this._rangeChunkSize||this._disableRange||(this._disableRange=!0);"undefined"!==typeof AbortController&&(this._abortController=new AbortController);this._isStreamingSupported=!stream.disableStream;
this._isRangeSupported=!stream.disableRange;this._headers=createHeaders(this._stream.httpHeaders);var url=stream.url;fetch(url,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(function(response){if(!(0,_network_utils.validateResponseStatus)(response.status))throw(0,_network_utils.createResponseStatusError)(response.status,url);_this._reader=response.body.getReader();_this._headersCapability.resolve();var getResponseHeader=function(name){return response.headers.get(name)},
_validateRangeRequest=(0,_network_utils.validateRangeRequestCapabilities)({getResponseHeader:getResponseHeader,isHttp:_this._stream.isHttp,rangeChunkSize:_this._rangeChunkSize,disableRange:_this._disableRange}),suggestedLength=_validateRangeRequest.suggestedLength;_this._isRangeSupported=_validateRangeRequest.allowRangeRequests;_this._contentLength=suggestedLength||_this._contentLength;_this._filename=(0,_network_utils.extractFilenameFromHeader)(getResponseHeader);!_this._isStreamingSupported&&_this._isRangeSupported&&
_this.cancel(new _util.AbortException("Streaming is disabled."))})["catch"](this._headersCapability.reject);this.onProgress=null}_createClass(PDFFetchStreamReader,[{key:"read",value:function(){var _read=_asyncToGenerator(_regenerator["default"].mark(function _callee(){var _ref,value,done,buffer;return _regenerator["default"].wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.next=2,this._headersCapability.promise;case 2:return _context.next=4,this._reader.read();
case 4:_ref=_context.sent;value=_ref.value;done=_ref.done;if(!done){_context.next=9;break}return _context.abrupt("return",{value:value,done:done});case 9:this._loaded+=value.byteLength;if(this.onProgress)this.onProgress({loaded:this._loaded,total:this._contentLength});buffer=(new Uint8Array(value)).buffer;return _context.abrupt("return",{value:buffer,done:!1});case 13:case "end":return _context.stop()}},_callee,this)}));return function(){return _read.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._reader&&
this._reader.cancel(reason);this._abortController&&this._abortController.abort()}},{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return PDFFetchStreamReader}(),PDFFetchStreamRangeReader=function(){function PDFFetchStreamRangeReader(stream,
begin,end){var _this2=this;_classCallCheck(this,PDFFetchStreamRangeReader);this._stream=stream;this._reader=null;this._loaded=0;stream=stream.source;this._withCredentials=stream.withCredentials||!1;this._readCapability=(0,_util.createPromiseCapability)();this._isStreamingSupported=!stream.disableStream;"undefined"!==typeof AbortController&&(this._abortController=new AbortController);this._headers=createHeaders(this._stream.httpHeaders);this._headers.append("Range","bytes=".concat(begin,"-").concat(end-
1));var url=stream.url;fetch(url,createFetchOptions(this._headers,this._withCredentials,this._abortController)).then(function(response){if(!(0,_network_utils.validateResponseStatus)(response.status))throw(0,_network_utils.createResponseStatusError)(response.status,url);_this2._readCapability.resolve();_this2._reader=response.body.getReader()});this.onProgress=null}_createClass(PDFFetchStreamRangeReader,[{key:"read",value:function(){var _read2=_asyncToGenerator(_regenerator["default"].mark(function _callee2(){var _ref2,
value,done,buffer;return _regenerator["default"].wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return _context2.next=2,this._readCapability.promise;case 2:return _context2.next=4,this._reader.read();case 4:_ref2=_context2.sent;value=_ref2.value;done=_ref2.done;if(!done){_context2.next=9;break}return _context2.abrupt("return",{value:value,done:done});case 9:this._loaded+=value.byteLength;if(this.onProgress)this.onProgress({loaded:this._loaded});buffer=(new Uint8Array(value)).buffer;
return _context2.abrupt("return",{value:buffer,done:!1});case 13:case "end":return _context2.stop()}},_callee2,this)}));return function(){return _read2.apply(this,arguments)}}()},{key:"cancel",value:function(reason){this._reader&&this._reader.cancel(reason);this._abortController&&this._abortController.abort()}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}}]);return PDFFetchStreamRangeReader}()}])})}).call(this,__webpack_require__(25).Buffer,__webpack_require__(15),
__webpack_require__(22),__webpack_require__(47)(module$jscomp$2))},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return bulkMemory});__webpack_require__.d(__webpack_exports__,"b",function(){return exceptions});__webpack_require__.d(__webpack_exports__,"c",function(){return simd});var bulkMemory=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context){return $jscomp$generator$context.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])))})},exceptions=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context){return $jscomp$generator$context.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])))})},simd=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function($jscomp$generator$context){return $jscomp$generator$context.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(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return debugLog});__webpack_require__(106);var debugLog=function(type,message){return function(){}}},function(module,exports,__webpack_require__){(function(process,setImmediate,global){function CorkedRequest(state){var _this=this;this.entry=this.next=null;this.finish=function(){var entry=_this.entry;
for(_this.entry=null;entry;){var cb=entry.callback;state.pendingcb--;cb(void 0);entry=entry.next}state.corkedRequestsFree?state.corkedRequestsFree.next=_this:state.corkedRequestsFree=_this}}function nop(){}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(32);options=options||{};var isDuplex=stream instanceof Duplex;this.objectMode=!!options.objectMode;isDuplex&&(this.objectMode=this.objectMode||!!options.writableObjectMode);var hwm=options.highWaterMark,writableHwm=options.writableHighWaterMark,
defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:isDuplex&&(writableHwm||0===writableHwm)?writableHwm:defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1;this.decodeStrings=!1!==options.decodeStrings;this.defaultEncoding=options.defaultEncoding||"utf8";this.length=0;this.writing=!1;this.corked=0;this.sync=!0;this.bufferProcessing=!1;this.onwrite=function(er){var state=stream._writableState,
sync=state.sync,cb=state.writecb;state.writing=!1;state.writecb=null;state.length-=state.writelen;state.writelen=0;er?(--state.pendingcb,sync?(pna.nextTick(cb,er),pna.nextTick(finishMaybe,stream,state),stream._writableState.errorEmitted=!0,stream.emit("error",er)):(cb(er),stream._writableState.errorEmitted=!0,stream.emit("error",er),finishMaybe(stream,state))):((er=needFinish(state))||state.corked||state.bufferProcessing||!state.bufferedRequest||clearBuffer(stream,state),sync?asyncWrite(afterWrite,
stream,state,er,cb):afterWrite(stream,state,er,cb))};this.writecb=null;this.writelen=0;this.lastBufferedRequest=this.bufferedRequest=null;this.pendingcb=0;this.errorEmitted=this.prefinished=!1;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}function Writable(options){Duplex=Duplex||__webpack_require__(32);if(!(realHasInstance.call(Writable,this)||this instanceof Duplex))return new Writable(options);this._writableState=new WritableState(options,this);this.writable=!0;options&&
("function"===typeof options.write&&(this._write=options.write),"function"===typeof options.writev&&(this._writev=options.writev),"function"===typeof options.destroy&&(this._destroy=options.destroy),"function"===typeof options.final&&(this._final=options.final));Stream.call(this)}function doWrite(stream,state,writev,len,chunk,encoding,cb){state.writelen=len;state.writecb=cb;state.writing=!0;state.sync=!0;writev?stream._writev(chunk,state.onwrite):stream._write(chunk,encoding,state.onwrite);state.sync=
!1}function afterWrite(stream,state,finished,cb){!finished&&0===state.length&&state.needDrain&&(state.needDrain=!1,stream.emit("drain"));state.pendingcb--;cb();finishMaybe(stream,state)}function clearBuffer(stream,state){state.bufferProcessing=!0;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){var buffer=Array(state.bufferedRequestCount),holder=state.corkedRequestsFree;holder.entry=entry;for(var count=0,allBuffers=!0;entry;)buffer[count]=entry,entry.isBuf||(allBuffers=!1),entry=
entry.next,count+=1;buffer.allBuffers=allBuffers;doWrite(stream,state,!0,state.length,buffer,"",holder.finish);state.pendingcb++;state.lastBufferedRequest=null;holder.next?(state.corkedRequestsFree=holder.next,holder.next=null):state.corkedRequestsFree=new CorkedRequest(state);state.bufferedRequestCount=0}else{for(;entry&&(buffer=entry.chunk,doWrite(stream,state,!1,state.objectMode?1:buffer.length,buffer,entry.encoding,entry.callback),entry=entry.next,state.bufferedRequestCount--,!state.writing););
null===entry&&(state.lastBufferedRequest=null)}state.bufferedRequest=entry;state.bufferProcessing=!1}function needFinish(state){return state.ending&&0===state.length&&null===state.bufferedRequest&&!state.finished&&!state.writing}function callFinal(stream,state){stream._final(function(err){state.pendingcb--;err&&stream.emit("error",err);state.prefinished=!0;stream.emit("prefinish");finishMaybe(stream,state)})}function finishMaybe(stream,state){var need=needFinish(state);need&&(state.prefinished||state.finalCalled||
("function"===typeof stream._final?(state.pendingcb++,state.finalCalled=!0,pna.nextTick(callFinal,stream,state)):(state.prefinished=!0,stream.emit("prefinish"))),0===state.pendingcb&&(state.finished=!0,stream.emit("finish")));return need}var pna=__webpack_require__(48);module.exports=Writable;var asyncWrite=!process.browser&&-1<["v0.10","v0.9."].indexOf(process.version.slice(0,5))?setImmediate:pna.nextTick,Duplex;Writable.WritableState=WritableState;process=Object.create(__webpack_require__(42));
process.inherits=__webpack_require__(28);var internalUtil={deprecate:__webpack_require__(121)},Stream=__webpack_require__(68),Buffer=__webpack_require__(49).Buffer,OurUint8Array=global.Uint8Array||function(){};global=__webpack_require__(69);process.inherits(Writable,Stream);WritableState.prototype.getBuffer=function(){for(var current=this.bufferedRequest,out=[];current;)out.push(current),current=current.next;return out};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:internalUtil.deprecate(function(){return this.getBuffer()},
"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}})();if("function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]){var realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(object){return realHasInstance.call(this,object)?!0:this!==Writable?!1:object&&object._writableState instanceof WritableState}})}else realHasInstance=function(object){return object instanceof
this};Writable.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))};Writable.prototype.write=function(chunk,encoding,cb$jscomp$0){var state=this._writableState,ret=!1,JSCompiler_temp;if(JSCompiler_temp=!state.objectMode)JSCompiler_temp=chunk,JSCompiler_temp=Buffer.isBuffer(JSCompiler_temp)||JSCompiler_temp instanceof OurUint8Array;JSCompiler_temp&&!Buffer.isBuffer(chunk)&&(chunk=Buffer.from(chunk));"function"===typeof encoding&&(cb$jscomp$0=encoding,encoding=null);JSCompiler_temp?
encoding="buffer":encoding||(encoding=state.defaultEncoding);"function"!==typeof cb$jscomp$0&&(cb$jscomp$0=nop);if(state.ended)state=cb$jscomp$0,cb$jscomp$0=Error("write after end"),this.emit("error",cb$jscomp$0),pna.nextTick(state,cb$jscomp$0);else{var JSCompiler_temp$jscomp$0;if(!(JSCompiler_temp$jscomp$0=JSCompiler_temp)){JSCompiler_temp$jscomp$0=chunk;var cb=cb$jscomp$0,valid=!0,er=!1;null===JSCompiler_temp$jscomp$0?er=new TypeError("May not write null values to stream"):"string"===typeof JSCompiler_temp$jscomp$0||
void 0===JSCompiler_temp$jscomp$0||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));er&&(this.emit("error",er),pna.nextTick(cb,er),valid=!1);JSCompiler_temp$jscomp$0=valid}JSCompiler_temp$jscomp$0&&(state.pendingcb++,ret=JSCompiler_temp,ret||(JSCompiler_temp=chunk,state.objectMode||!1===state.decodeStrings||"string"!==typeof JSCompiler_temp||(JSCompiler_temp=Buffer.from(JSCompiler_temp,encoding)),chunk!==JSCompiler_temp&&(ret=!0,encoding="buffer",chunk=JSCompiler_temp)),JSCompiler_temp$jscomp$0=
state.objectMode?1:chunk.length,state.length+=JSCompiler_temp$jscomp$0,JSCompiler_temp=state.length<state.highWaterMark,JSCompiler_temp||(state.needDrain=!0),state.writing||state.corked?(JSCompiler_temp$jscomp$0=state.lastBufferedRequest,state.lastBufferedRequest={chunk:chunk,encoding:encoding,isBuf:ret,callback:cb$jscomp$0,next:null},JSCompiler_temp$jscomp$0?JSCompiler_temp$jscomp$0.next=state.lastBufferedRequest:state.bufferedRequest=state.lastBufferedRequest,state.bufferedRequestCount+=1):doWrite(this,
state,!1,JSCompiler_temp$jscomp$0,chunk,encoding,cb$jscomp$0),ret=JSCompiler_temp)}return ret};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var state=this._writableState;state.corked&&(state.corked--,state.writing||state.corked||state.finished||state.bufferProcessing||!state.bufferedRequest||clearBuffer(this,state))};Writable.prototype.setDefaultEncoding=function(encoding){"string"===typeof encoding&&(encoding=encoding.toLowerCase());if(!(-1<
"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((encoding+"").toLowerCase())))throw new TypeError("Unknown encoding: "+encoding);this._writableState.defaultEncoding=encoding;return this};Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Writable.prototype._write=function(chunk,encoding,cb){cb(Error("_write() is not implemented"))};Writable.prototype._writev=null;Writable.prototype.end=
function(chunk,encoding,cb){var state=this._writableState;"function"===typeof chunk?(cb=chunk,encoding=chunk=null):"function"===typeof encoding&&(cb=encoding,encoding=null);null!==chunk&&void 0!==chunk&&this.write(chunk,encoding);state.corked&&(state.corked=1,this.uncork());if(!state.ending&&!state.finished){chunk=cb;state.ending=!0;finishMaybe(this,state);if(chunk)if(state.finished)pna.nextTick(chunk);else this.once("finish",chunk);state.ended=!0;this.writable=!1}};Object.defineProperty(Writable.prototype,
"destroyed",{get:function(){return void 0===this._writableState?!1:this._writableState.destroyed},set:function(value){this._writableState&&(this._writableState.destroyed=value)}});Writable.prototype.destroy=global.destroy;Writable.prototype._undestroy=global.undestroy;Writable.prototype._destroy=function(err,cb){this.end();cb(err)}}).call(this,__webpack_require__(22),__webpack_require__(70).setImmediate,__webpack_require__(15))},function(module,exports,__webpack_require__){function Url(){this.href=
this.path=this.pathname=this.query=this.search=this.hash=this.hostname=this.port=this.host=this.auth=this.slashes=this.protocol=null}function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url;u.parse(url,parseQueryString,slashesDenoteHost);return u}var punycode=__webpack_require__(144),util=__webpack_require__(145);exports.parse=urlParse;exports.resolve=function(source,relative){return urlParse(source,!1,!0).resolve(relative)};
exports.resolveObject=function(source,relative){return source?urlParse(source,!1,!0).resolveObject(relative):relative};exports.format=function(obj){util.isString(obj)&&(obj=urlParse(obj));return obj instanceof Url?obj.format():Url.prototype.format.call(obj)};exports.Url=Url;var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/;module="{}|\\^`".split("").concat('<>"` \r\n\t'.split(""));var autoEscape=["'"].concat(module),nonHostChars=
["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=__webpack_require__(146);Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url))throw new TypeError("Parameter 'url' must be a string, not "+
typeof url);var queryIndex=url.indexOf("?");queryIndex=-1!==queryIndex&&queryIndex<url.indexOf("#")?"?":"#";url=url.split(queryIndex);url[0]=url[0].replace(/\\/g,"/");url=url.join(queryIndex);queryIndex=url.trim();if(!slashesDenoteHost&&1===url.split("#").length&&(url=simplePathPattern.exec(queryIndex)))return this.href=this.path=queryIndex,this.pathname=url[1],url[2]?(this.search=url[2],this.query=parseQueryString?querystring.parse(this.search.substr(1)):this.search.substr(1)):parseQueryString&&
(this.search="",this.query={}),this;if(url=protocolPattern.exec(queryIndex)){url=url[0];var lowerProto=url.toLowerCase();this.protocol=lowerProto;queryIndex=queryIndex.substr(url.length)}if(slashesDenoteHost||url||queryIndex.match(/^\/\/[^@\/]+@[^@\/]+/)){var slashes="//"===queryIndex.substr(0,2);!slashes||url&&hostlessProtocol[url]||(queryIndex=queryIndex.substr(2),this.slashes=!0)}if(!hostlessProtocol[url]&&(slashes||url&&!slashedProtocol[url])){slashes=-1;for(slashesDenoteHost=0;slashesDenoteHost<
hostEndingChars.length;slashesDenoteHost++)url=queryIndex.indexOf(hostEndingChars[slashesDenoteHost]),-1!==url&&(-1===slashes||url<slashes)&&(slashes=url);slashes=-1===slashes?queryIndex.lastIndexOf("@"):queryIndex.lastIndexOf("@",slashes);-1!==slashes&&(slashesDenoteHost=queryIndex.slice(0,slashes),queryIndex=queryIndex.slice(slashes+1),this.auth=decodeURIComponent(slashesDenoteHost));slashes=-1;for(slashesDenoteHost=0;slashesDenoteHost<nonHostChars.length;slashesDenoteHost++)url=queryIndex.indexOf(nonHostChars[slashesDenoteHost]),
-1!==url&&(-1===slashes||url<slashes)&&(slashes=url);-1===slashes&&(slashes=queryIndex.length);this.host=queryIndex.slice(0,slashes);queryIndex=queryIndex.slice(slashes);this.parseHost();this.hostname=this.hostname||"";slashes="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!slashes){var hostparts=this.hostname.split(/\./);slashesDenoteHost=0;for(url=hostparts.length;slashesDenoteHost<url;slashesDenoteHost++){var part=hostparts[slashesDenoteHost];if(part&&!part.match(hostnamePartPattern)){for(var newpart=
"",j=0,k=part.length;j<k;j++)newpart=127<part.charCodeAt(j)?newpart+"x":newpart+part[j];if(!newpart.match(hostnamePartPattern)){url=hostparts.slice(0,slashesDenoteHost);slashesDenoteHost=hostparts.slice(slashesDenoteHost+1);if(part=part.match(hostnamePartStart))url.push(part[1]),slashesDenoteHost.unshift(part[2]);slashesDenoteHost.length&&(queryIndex="/"+slashesDenoteHost.join(".")+queryIndex);this.hostname=url.join(".");break}}}}this.hostname=255<this.hostname.length?"":this.hostname.toLowerCase();
slashes||(this.hostname=punycode.toASCII(this.hostname));slashesDenoteHost=this.port?":"+this.port:"";this.host=(this.hostname||"")+slashesDenoteHost;this.href+=this.host;slashes&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==queryIndex[0]&&(queryIndex="/"+queryIndex))}if(!unsafeProtocol[lowerProto])for(slashesDenoteHost=0,url=autoEscape.length;slashesDenoteHost<url;slashesDenoteHost++)slashes=autoEscape[slashesDenoteHost],-1!==queryIndex.indexOf(slashes)&&(part=encodeURIComponent(slashes),
part===slashes&&(part=escape(slashes)),queryIndex=queryIndex.split(slashes).join(part));slashesDenoteHost=queryIndex.indexOf("#");-1!==slashesDenoteHost&&(this.hash=queryIndex.substr(slashesDenoteHost),queryIndex=queryIndex.slice(0,slashesDenoteHost));slashesDenoteHost=queryIndex.indexOf("?");-1!==slashesDenoteHost?(this.search=queryIndex.substr(slashesDenoteHost),this.query=queryIndex.substr(slashesDenoteHost+1),parseQueryString&&(this.query=querystring.parse(this.query)),queryIndex=queryIndex.slice(0,
slashesDenoteHost)):parseQueryString&&(this.search="",this.query={});queryIndex&&(this.pathname=queryIndex);slashedProtocol[lowerProto]&&this.hostname&&!this.pathname&&(this.pathname="/");if(this.pathname||this.search)slashesDenoteHost=this.pathname||"",this.path=slashesDenoteHost+(this.search||"");this.href=this.format();return this};Url.prototype.format=function(){var auth=this.auth||"";auth&&(auth=encodeURIComponent(auth),auth=auth.replace(/%3A/i,":"),auth+="@");var protocol=this.protocol||"",
pathname=this.pathname||"",hash=this.hash||"",host=!1,query="";this.host?host=auth+this.host:this.hostname&&(host=auth+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(host+=":"+this.port));this.query&&util.isObject(this.query)&&Object.keys(this.query).length&&(query=querystring.stringify(this.query));auth=this.search||query&&"?"+query||"";protocol&&":"!==protocol.substr(-1)&&(protocol+=":");this.slashes||(!protocol||slashedProtocol[protocol])&&!1!==host?(host="//"+
(host||""),pathname&&"/"!==pathname.charAt(0)&&(pathname="/"+pathname)):host||(host="");hash&&"#"!==hash.charAt(0)&&(hash="#"+hash);auth&&"?"!==auth.charAt(0)&&(auth="?"+auth);pathname=pathname.replace(/[?#]/g,function(match){return encodeURIComponent(match)});auth=auth.replace("#","%23");return protocol+host+pathname+auth+hash};Url.prototype.resolve=function(relative){return this.resolveObject(urlParse(relative,!1,!0)).format()};Url.prototype.resolveObject=function(relative){if(util.isString(relative)){var rel=
new Url;rel.parse(relative,!1,!0);relative=rel}rel=new Url;for(var tkeys=Object.keys(this),tk=0;tk<tkeys.length;tk++){var tkey=tkeys[tk];rel[tkey]=this[tkey]}rel.hash=relative.hash;if(""===relative.href)return rel.href=rel.format(),rel;if(relative.slashes&&!relative.protocol){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],"protocol"!==tkey&&(rel[tkey]=relative[tkey]);slashedProtocol[rel.protocol]&&rel.hostname&&!rel.pathname&&(rel.path=rel.pathname="/");rel.href=rel.format();
return rel}if(relative.protocol&&relative.protocol!==rel.protocol){if(!slashedProtocol[relative.protocol]){tkeys=Object.keys(relative);for(tk=0;tk<tkeys.length;tk++)tkey=tkeys[tk],rel[tkey]=relative[tkey];rel.href=rel.format();return rel}rel.protocol=relative.protocol;if(relative.host||hostlessProtocol[relative.protocol])rel.pathname=relative.pathname;else{for(var relPath=(relative.pathname||"").split("/");relPath.length&&!(relative.host=relPath.shift()););relative.host||(relative.host="");relative.hostname||
(relative.hostname="");""!==relPath[0]&&relPath.unshift("");2>relPath.length&&relPath.unshift("");rel.pathname=relPath.join("/")}rel.search=relative.search;rel.query=relative.query;rel.host=relative.host||"";rel.auth=relative.auth;rel.hostname=relative.hostname||relative.host;rel.port=relative.port;if(rel.pathname||rel.search)rel.path=(rel.pathname||"")+(rel.search||"");rel.slashes=rel.slashes||relative.slashes;rel.href=rel.format();return rel}tkeys=rel.pathname&&"/"===rel.pathname.charAt(0);var isRelAbs=
relative.host||relative.pathname&&"/"===relative.pathname.charAt(0),removeAllDots=tkeys=isRelAbs||tkeys||rel.host&&relative.pathname;tk=rel.pathname&&rel.pathname.split("/")||[];relPath=relative.pathname&&relative.pathname.split("/")||[];if(tkey=rel.protocol&&!slashedProtocol[rel.protocol])rel.hostname="",rel.port=null,rel.host&&(""===tk[0]?tk[0]=rel.host:tk.unshift(rel.host)),rel.host="",relative.protocol&&(relative.hostname=null,relative.port=null,relative.host&&(""===relPath[0]?relPath[0]=relative.host:
relPath.unshift(relative.host)),relative.host=null),tkeys=tkeys&&(""===relPath[0]||""===tk[0]);if(isRelAbs)rel.host=relative.host||""===relative.host?relative.host:rel.host,rel.hostname=relative.hostname||""===relative.hostname?relative.hostname:rel.hostname,rel.search=relative.search,rel.query=relative.query,tk=relPath;else if(relPath.length)tk||(tk=[]),tk.pop(),tk=tk.concat(relPath),rel.search=relative.search,rel.query=relative.query;else if(!util.isNullOrUndefined(relative.search))return tkey&&
(rel.hostname=rel.host=tk.shift(),tkey=rel.host&&0<rel.host.indexOf("@")?rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift()),rel.search=relative.search,rel.query=relative.query,util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:"")),rel.href=rel.format(),rel;if(!tk.length)return rel.pathname=null,rel.path=rel.search?"/"+rel.search:null,rel.href=rel.format(),rel;isRelAbs=tk.slice(-1)[0];relPath=(rel.host||
relative.host||1<tk.length)&&("."===isRelAbs||".."===isRelAbs)||""===isRelAbs;for(var up=0,i=tk.length;0<=i;i--)isRelAbs=tk[i],"."===isRelAbs?tk.splice(i,1):".."===isRelAbs?(tk.splice(i,1),up++):up&&(tk.splice(i,1),up--);if(!tkeys&&!removeAllDots)for(;up--;up)tk.unshift("..");!tkeys||""===tk[0]||tk[0]&&"/"===tk[0].charAt(0)||tk.unshift("");relPath&&"/"!==tk.join("/").substr(-1)&&tk.push("");removeAllDots=""===tk[0]||tk[0]&&"/"===tk[0].charAt(0);tkey&&(rel.hostname=rel.host=removeAllDots?"":tk.length?
tk.shift():"",tkey=rel.host&&0<rel.host.indexOf("@")?rel.host.split("@"):!1)&&(rel.auth=tkey.shift(),rel.host=rel.hostname=tkey.shift());(tkeys=tkeys||rel.host&&tk.length)&&!removeAllDots&&tk.unshift("");tk.length?rel.pathname=tk.join("/"):(rel.pathname=null,rel.path=null);util.isNull(rel.pathname)&&util.isNull(rel.search)||(rel.path=(rel.pathname?rel.pathname:"")+(rel.search?rel.search:""));rel.auth=relative.auth||rel.auth;rel.slashes=rel.slashes||relative.slashes;rel.href=rel.format();return rel};
Url.prototype.parseHost=function(){var host=this.host,port=portPattern.exec(host);port&&(port=port[0],":"!==port&&(this.port=port.substr(1)),host=host.substr(0,host.length-port.length));host&&(this.hostname=host)}},function(module,__webpack_exports__,__webpack_require__){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===
Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,
staticProps);Object.defineProperty(Constructor,"prototype",{writable:!1});return Constructor}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _inherits(subClass,superClass){if("function"!==typeof superClass&&null!==superClass)throw new TypeError("Super expression must either be null or a function");subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:!0,
configurable:!0}});Object.defineProperty(subClass,"prototype",{writable:!1});superClass&&_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o$jscomp$0,p$jscomp$0){_setPrototypeOf=Object.setPrototypeOf||function(o,p){o.__proto__=p;return o};return _setPrototypeOf(o$jscomp$0,p$jscomp$0)}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function(){var Super=_getPrototypeOf(Derived);if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;
Super=Reflect.construct(Super,arguments,NewTarget)}else Super=Super.apply(this,arguments);return _possibleConstructorReturn(this,Super)}}function _possibleConstructorReturn(self,call){if(call&&("object"===_typeof(call)||"function"===typeof call))return call;if(void 0!==call)throw new TypeError("Derived constructors may only return object or undefined");if(void 0===self)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return self}function _isNativeReflectConstruct(){if("undefined"===
typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(o$jscomp$0){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o$jscomp$0)}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),exports=window,Annotations=exports.Annotations||
{},Actions=exports.Actions||{},LinkAnnotationElement$jscomp$0=function(_Link){function LinkAnnotationElement(options){_classCallCheck(this,LinkAnnotationElement);var _this=_super.call(this,options.data);var data=options.data,points=data.rect,point1=new exports.Core.Math.Point(points[0],points[1]);points=new exports.Core.Math.Point(points[2],points[3]);options.pageMatrix.mult(point1);options.pageMatrix.mult(points);_this.setX(point1.x);_this.setY(points.y);_this.setWidth(points.x-point1.x);_this.setHeight(point1.y-
points.y);_this.setPageNumber(options.pageNum);if(data.url)_this.addAction("U",new Actions.URI({uri:data.url?data.url:"https://pdfjs.express"}));else if(data.dest){points=data.dest;"string"===typeof points&&(points=options.destinations[points]);point1=options.parseDest(options.pageNum,points);if(!point1)return _possibleConstructorReturn(_this);options=options.parsePageNumber(points[0]);_this.addAction("U",new Actions.GoTo({dest:{bottom:point1.y,fit:point1.fit,left:point1.x,name:void 0,page:options,
right:point1.x+point1.width,top:point1.y-point1.height,zoom:void 0}}))}else data.action&&_this.addAction("U",new Actions.Named({action:data.action}));switch(data.borderStyle.style){case 1:var strokeStyle="solid";break;case 2:strokeStyle="dashed";break;case 3:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: beveled");break;case 4:Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("Unimplemented border style: inset");break;case 5:strokeStyle="underline"}_this.StrokeStyle=strokeStyle;
_this.StrokeThickness=data.borderStyle.width;_this.Hidden=!1;_this.StrokeColor=new Annotations.Color(data.color[0],data.color[1],data.color[2]);return _this}_inherits(LinkAnnotationElement,_Link);var _super=_createSuper(LinkAnnotationElement);return _createClass(LinkAnnotationElement)}(Annotations.Link||{});module=function(){function AnnotationElementFactory(){_classCallCheck(this,AnnotationElementFactory)}_createClass(AnnotationElementFactory,null,[{key:"create",value:function(parameters){switch(parameters.data.annotationType){case 2:return new LinkAnnotationElement$jscomp$0(parameters);
default:return new AnnotationElement(parameters)}}}]);return AnnotationElementFactory}();__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(30);module=function(){function Color(r,g,b,a){this.A=this.B=this.G=this.R=0;r instanceof Color?(this.R=r.R,this.G=r.G,this.B=r.B,this.A=r.A):
Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isArray)(r)?1===r.length?(this.B=this.G=this.R=r=Math.round(255*(r[0]||0)),this.A=1):3===r.length?(this.R=Math.round(255*(r[0]||0)),this.G=Math.round(255*(r[1]||0)),this.B=Math.round(255*(r[2]||0)),this.A=1):4===r.length&&(g=r[1]||0,b=r[2]||0,a=r[3]||0,this.R=Math.round(255*(1-(r[0]||0))*(1-a)),this.G=Math.round(255*(1-g)*(1-a)),this.B=Math.round(255*(1-b)*(1-a)),this.A=1):Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(r)&&"#"===r[0]?(r=_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.deserializeColor(r),
this.R=r.R,this.G=r.G,this.B=r.B,this.A=1):(Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)||(this.R=Number(r)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)||(this.G=Number(g)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||(this.B=Number(b)),Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(a)?Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(r)&&Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(g)&&Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(b)||
(this.A=1):this.A=Number(a))}Color.prototype.toString=function(){var str=this.R+","+this.G+","+this.B;return"undefined"===typeof this.A?"rgb("+str+")":"rgba("+str+","+this.A+")"};Color.prototype.toHexString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.serializeColor(this)};Color.prototype.toAppearanceString=function(){return _XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.R/255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.G/255,3)+" "+_XFDFUtils__WEBPACK_IMPORTED_MODULE_1__.a.toFixed(this.B/
255,3)+" rg"};Color.prototype.isBlack=function(){return 0===this.R&&0===this.G&&0===this.B&&1===this.A};Color.prototype.isTransparent=function(){return 0===this.A};Color.prototype.darkerColor=function(percent){if("number"===typeof percent&&0>percent&&100<percent)throw Error('Invalid "percent" value. Must be 0-100.');var n=255*percent/100;percent=this.R-n;var g=this.G-n;n=this.B-n;return new Color(0<percent?percent:0,0<g?g:0,0<n?n:0)};return Color}();__webpack_exports__.a=module},function(module,__webpack_exports__,
__webpack_require__){__webpack_require__(91);__webpack_require__(92);__webpack_require__(93);__webpack_require__(94);__webpack_require__(95);__webpack_require__(51);var _loadCSS__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(96);__webpack_require__.d(__webpack_exports__,"a",function(){return _loadCSS__WEBPACK_IMPORTED_MODULE_6__.a})},function(module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},function(module,exports,
__webpack_require__){(function(global,process){function prependListener(emitter,event,fn){if("function"===typeof emitter.prependListener)return emitter.prependListener(event,fn);if(emitter._events&&emitter._events[event])isArray(emitter._events[event])?emitter._events[event].unshift(fn):emitter._events[event]=[fn,emitter._events[event]];else emitter.on(event,fn)}function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(32);options=options||{};stream=stream instanceof Duplex;this.objectMode=
!!options.objectMode;stream&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,readableHwm=options.readableHighWaterMark,defaultHwm=this.objectMode?16:16384;this.highWaterMark=hwm||0===hwm?hwm:stream&&(readableHwm||0===readableHwm)?readableHwm:defaultHwm;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new BufferList;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.reading=this.endEmitted=this.ended=!1;this.sync=!0;this.destroyed=
this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1;this.defaultEncoding=options.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=!1;this.encoding=this.decoder=null;options.encoding&&(StringDecoder||(StringDecoder=__webpack_require__(71).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){Duplex=Duplex||__webpack_require__(32);if(!(this instanceof Readable))return new Readable(options);
this._readableState=new ReadableState(options,this);this.readable=!0;options&&("function"===typeof options.read&&(this._read=options.read),"function"===typeof options.destroy&&(this._destroy=options.destroy));Stream.call(this)}function readableAddChunk(stream,chunk,encoding,addToFront,skipChunkCheck){var state=stream._readableState;if(null===chunk)state.reading=!1,state.ended||(state.decoder&&(chunk=state.decoder.end())&&chunk.length&&(state.buffer.push(chunk),state.length+=state.objectMode?1:chunk.length),
state.ended=!0,emitReadable(stream));else{if(!skipChunkCheck){skipChunkCheck=chunk;var er;Buffer.isBuffer(skipChunkCheck)||skipChunkCheck instanceof OurUint8Array||"string"===typeof skipChunkCheck||void 0===skipChunkCheck||state.objectMode||(er=new TypeError("Invalid non-string/buffer chunk"));var er$jscomp$0=er}er$jscomp$0?stream.emit("error",er$jscomp$0):state.objectMode||chunk&&0<chunk.length?("string"===typeof chunk||state.objectMode||Object.getPrototypeOf(chunk)===Buffer.prototype||(chunk=Buffer.from(chunk)),
addToFront?state.endEmitted?stream.emit("error",Error("stream.unshift() after end event")):addChunk(stream,state,chunk,!0):state.ended?stream.emit("error",Error("stream.push() after EOF")):(state.reading=!1,state.decoder&&!encoding?(chunk=state.decoder.write(chunk),state.objectMode||0!==chunk.length?addChunk(stream,state,chunk,!1):state.readingMore||(state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))):addChunk(stream,state,chunk,!1))):addToFront||(state.reading=!1)}return!state.ended&&
(state.needReadable||state.length<state.highWaterMark||0===state.length)}function addChunk(stream,state,chunk,addToFront){state.flowing&&0===state.length&&!state.sync?(stream.emit("data",chunk),stream.read(0)):(state.length+=state.objectMode?1:chunk.length,addToFront?state.buffer.unshift(chunk):state.buffer.push(chunk),state.needReadable&&emitReadable(stream));state.readingMore||(state.readingMore=!0,pna.nextTick(maybeReadMore_,stream,state))}function howMuchToRead(n$jscomp$0,state){if(0>=n$jscomp$0||
0===state.length&&state.ended)return 0;if(state.objectMode)return 1;if(n$jscomp$0!==n$jscomp$0)return state.flowing&&state.length?state.buffer.head.data.length:state.length;if(n$jscomp$0>state.highWaterMark){var n=n$jscomp$0;8388608<=n?n=8388608:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++);state.highWaterMark=n}return n$jscomp$0<=state.length?n$jscomp$0:state.ended?state.length:(state.needReadable=!0,0)}function emitReadable(stream){var state=stream._readableState;state.needReadable=!1;
state.emittedReadable||(debug("emitReadable",state.flowing),state.emittedReadable=!0,state.sync?pna.nextTick(emitReadable_,stream):emitReadable_(stream))}function emitReadable_(stream){debug("emit readable");stream.emit("readable");flow(stream)}function maybeReadMore_(stream,state){for(var len=state.length;!state.reading&&!state.flowing&&!state.ended&&state.length<state.highWaterMark&&(debug("maybeReadMore read 0"),stream.read(0),len!==state.length);)len=state.length;state.readingMore=!1}function pipeOnDrain(src){return function(){var state=
src._readableState;debug("pipeOnDrain",state.awaitDrain);state.awaitDrain&&state.awaitDrain--;0===state.awaitDrain&&src.listeners("data").length&&(state.flowing=!0,flow(src))}}function nReadingNextTick(self){debug("readable nexttick read 0");self.read(0)}function resume_(stream,state){state.reading||(debug("resume read 0"),stream.read(0));state.resumeScheduled=!1;state.awaitDrain=0;stream.emit("resume");flow(stream);state.flowing&&!state.reading&&stream.read(0)}function flow(stream){var state=stream._readableState;
for(debug("flow",state.flowing);state.flowing&&null!==stream.read(););}function fromList(n,state){if(0===state.length)return null;if(state.objectMode)var ret=state.buffer.shift();else if(!n||n>=state.length)ret=state.decoder?state.buffer.join(""):1===state.buffer.length?state.buffer.head.data:state.buffer.concat(state.length),state.buffer.clear();else{ret=state.buffer;state=state.decoder;if(n<ret.head.data.length)state=ret.head.data.slice(0,n),ret.head.data=ret.head.data.slice(n);else{if(n===ret.head.data.length)ret=
ret.shift();else if(state){state=ret.head;var c=1,ret$jscomp$0=state.data;for(n-=ret$jscomp$0.length;state=state.next;){var str=state.data,nb=n>str.length?str.length:n;ret$jscomp$0=nb===str.length?ret$jscomp$0+str:ret$jscomp$0+str.slice(0,n);n-=nb;if(0===n){nb===str.length?(++c,ret.head=state.next?state.next:ret.tail=null):(ret.head=state,state.data=str.slice(nb));break}++c}ret.length-=c;ret=ret$jscomp$0}else{state=Buffer.allocUnsafe(n);c=ret.head;ret$jscomp$0=1;c.data.copy(state);for(n-=c.data.length;c=
c.next;){str=c.data;nb=n>str.length?str.length:n;str.copy(state,state.length-n,0,nb);n-=nb;if(0===n){nb===str.length?(++ret$jscomp$0,ret.head=c.next?c.next:ret.tail=null):(ret.head=c,c.data=str.slice(nb));break}++ret$jscomp$0}ret.length-=ret$jscomp$0;ret=state}state=ret}ret=state}return ret}function endReadable(stream){var state=stream._readableState;if(0<state.length)throw Error('"endReadable()" called on non-empty stream');state.endEmitted||(state.ended=!0,pna.nextTick(endReadableNT,state,stream))}
function endReadableNT(state,stream){state.endEmitted||0!==state.length||(state.endEmitted=!0,stream.readable=!1,stream.emit("end"))}function indexOf(xs,x){for(var i=0,l=xs.length;i<l;i++)if(xs[i]===x)return i;return-1}var pna=__webpack_require__(48);module.exports=Readable;var isArray=__webpack_require__(66),Duplex;Readable.ReadableState=ReadableState;__webpack_require__(33);var Stream=__webpack_require__(68),Buffer=__webpack_require__(49).Buffer,OurUint8Array=global.Uint8Array||function(){};global=
Object.create(__webpack_require__(42));global.inherits=__webpack_require__(28);var debugUtil=__webpack_require__(117),debug=void 0;debug=debugUtil&&debugUtil.debuglog?debugUtil.debuglog("stream"):function(){};var BufferList=__webpack_require__(118);debugUtil=__webpack_require__(69);var StringDecoder;global.inherits(Readable,Stream);var kProxyEvents=["error","close","destroy","pause","resume"];Object.defineProperty(Readable.prototype,"destroyed",{get:function(){return void 0===this._readableState?
!1:this._readableState.destroyed},set:function(value){this._readableState&&(this._readableState.destroyed=value)}});Readable.prototype.destroy=debugUtil.destroy;Readable.prototype._undestroy=debugUtil.undestroy;Readable.prototype._destroy=function(err,cb){this.push(null);cb(err)};Readable.prototype.push=function(chunk,encoding){var state=this._readableState;if(state.objectMode)var skipChunkCheck=!0;else"string"===typeof chunk&&(encoding=encoding||state.defaultEncoding,encoding!==state.encoding&&(chunk=
Buffer.from(chunk,encoding),encoding=""),skipChunkCheck=!0);return readableAddChunk(this,chunk,encoding,!1,skipChunkCheck)};Readable.prototype.unshift=function(chunk){return readableAddChunk(this,chunk,null,!0,!1)};Readable.prototype.isPaused=function(){return!1===this._readableState.flowing};Readable.prototype.setEncoding=function(enc){StringDecoder||(StringDecoder=__webpack_require__(71).StringDecoder);this._readableState.decoder=new StringDecoder(enc);this._readableState.encoding=enc;return this};
Readable.prototype.read=function(n){debug("read",n);n=parseInt(n,10);var state=this._readableState,nOrig=n;0!==n&&(state.emittedReadable=!1);if(0===n&&state.needReadable&&(state.length>=state.highWaterMark||state.ended))return debug("read: emitReadable",state.length,state.ended),0===state.length&&state.ended?endReadable(this):emitReadable(this),null;n=howMuchToRead(n,state);if(0===n&&state.ended)return 0===state.length&&endReadable(this),null;var doRead=state.needReadable;debug("need readable",doRead);
if(0===state.length||state.length-n<state.highWaterMark)doRead=!0,debug("length less than watermark",doRead);state.ended||state.reading?debug("reading or ended",!1):doRead&&(debug("do read"),state.reading=!0,state.sync=!0,0===state.length&&(state.needReadable=!0),this._read(state.highWaterMark),state.sync=!1,state.reading||(n=howMuchToRead(nOrig,state)));doRead=0<n?fromList(n,state):null;null===doRead?(state.needReadable=!0,n=0):state.length-=n;0===state.length&&(state.ended||(state.needReadable=
!0),nOrig!==n&&state.ended&&endReadable(this));null!==doRead&&this.emit("data",doRead);return doRead};Readable.prototype._read=function(n){this.emit("error",Error("_read() is not implemented"))};Readable.prototype.pipe=function(dest,pipeOpts){function onunpipe(readable,unpipeInfo){debug("onunpipe");readable===src&&unpipeInfo&&!1===unpipeInfo.hasUnpiped&&(unpipeInfo.hasUnpiped=!0,debug("cleanup"),dest.removeListener("close",onclose),dest.removeListener("finish",onfinish),dest.removeListener("drain",
ondrain),dest.removeListener("error",onerror),dest.removeListener("unpipe",onunpipe),src.removeListener("end",onend),src.removeListener("end",unpipe),src.removeListener("data",ondata),cleanedUp=!0,!state.awaitDrain||dest._writableState&&!dest._writableState.needDrain||ondrain())}function onend(){debug("onend");dest.end()}function ondata(chunk){debug("ondata");increasedAwaitDrain=!1;!1!==dest.write(chunk)||increasedAwaitDrain||((1===state.pipesCount&&state.pipes===dest||1<state.pipesCount&&-1!==indexOf(state.pipes,
dest))&&!cleanedUp&&(debug("false write response, pause",src._readableState.awaitDrain),src._readableState.awaitDrain++,increasedAwaitDrain=!0),src.pause())}function onerror(er){debug("onerror",er);unpipe();dest.removeListener("error",onerror);0===dest.listeners("error").length&&dest.emit("error",er)}function onclose(){dest.removeListener("finish",onfinish);unpipe()}function onfinish(){debug("onfinish");dest.removeListener("close",onclose);unpipe()}function unpipe(){debug("unpipe");src.unpipe(dest)}
var src=this,state=this._readableState;switch(state.pipesCount){case 0:state.pipes=dest;break;case 1:state.pipes=[state.pipes,dest];break;default:state.pipes.push(dest)}state.pipesCount+=1;debug("pipe count=%d opts=%j",state.pipesCount,pipeOpts);pipeOpts=pipeOpts&&!1===pipeOpts.end||dest===process.stdout||dest===process.stderr?unpipe:onend;if(state.endEmitted)pna.nextTick(pipeOpts);else src.once("end",pipeOpts);dest.on("unpipe",onunpipe);var ondrain=pipeOnDrain(src);dest.on("drain",ondrain);var cleanedUp=
!1,increasedAwaitDrain=!1;src.on("data",ondata);prependListener(dest,"error",onerror);dest.once("close",onclose);dest.once("finish",onfinish);dest.emit("pipe",src);state.flowing||(debug("pipe resume"),src.resume());return dest};Readable.prototype.unpipe=function(dest){var state=this._readableState,unpipeInfo={hasUnpiped:!1};if(0===state.pipesCount)return this;if(1===state.pipesCount){if(dest&&dest!==state.pipes)return this;dest||(dest=state.pipes);state.pipes=null;state.pipesCount=0;state.flowing=
!1;dest&&dest.emit("unpipe",this,unpipeInfo);return this}if(!dest){dest=state.pipes;var len=state.pipesCount;state.pipes=null;state.pipesCount=0;state.flowing=!1;for(state=0;state<len;state++)dest[state].emit("unpipe",this,unpipeInfo);return this}len=indexOf(state.pipes,dest);if(-1===len)return this;state.pipes.splice(len,1);--state.pipesCount;1===state.pipesCount&&(state.pipes=state.pipes[0]);dest.emit("unpipe",this,unpipeInfo);return this};Readable.prototype.on=function(ev,fn){fn=Stream.prototype.on.call(this,
ev,fn);"data"===ev?!1!==this._readableState.flowing&&this.resume():"readable"===ev&&(ev=this._readableState,ev.endEmitted||ev.readableListening||(ev.readableListening=ev.needReadable=!0,ev.emittedReadable=!1,ev.reading?ev.length&&emitReadable(this):pna.nextTick(nReadingNextTick,this)));return fn};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.resume=function(){var state=this._readableState;state.flowing||(debug("resume"),state.flowing=!0,state.resumeScheduled||(state.resumeScheduled=
!0,pna.nextTick(resume_,this,state)));return this};Readable.prototype.pause=function(){debug("call pause flowing=%j",this._readableState.flowing);!1!==this._readableState.flowing&&(debug("pause"),this._readableState.flowing=!1,this.emit("pause"));return this};Readable.prototype.wrap=function(stream){var _this=this,state=this._readableState,paused=!1;stream.on("end",function(){debug("wrapped end");if(state.decoder&&!state.ended){var chunk=state.decoder.end();chunk&&chunk.length&&_this.push(chunk)}_this.push(null)});
stream.on("data",function(chunk){debug("wrapped data");state.decoder&&(chunk=state.decoder.write(chunk));state.objectMode&&(null===chunk||void 0===chunk)||!(state.objectMode||chunk&&chunk.length)||_this.push(chunk)||(paused=!0,stream.pause())});for(var i in stream)void 0===this[i]&&"function"===typeof stream[i]&&(this[i]=function(method){return function(){return stream[method].apply(stream,arguments)}}(i));for(i=0;i<kProxyEvents.length;i++)stream.on(kProxyEvents[i],this.emit.bind(this,kProxyEvents[i]));
this._read=function(n){debug("wrapped _read",n);paused&&(paused=!1,stream.resume())};return this};Object.defineProperty(Readable.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Readable._fromList=fromList}).call(this,__webpack_require__(15),__webpack_require__(22))},function(module,exports,__webpack_require__){module.exports=__webpack_require__(33).EventEmitter},function(module,exports,__webpack_require__){function emitErrorNT(self,err){self.emit("error",
err)}var pna=__webpack_require__(48);module.exports={destroy:function(err$jscomp$0,cb){var _this=this,writableDestroyed=this._writableState&&this._writableState.destroyed;if(this._readableState&&this._readableState.destroyed||writableDestroyed)return cb?cb(err$jscomp$0):!err$jscomp$0||this._writableState&&this._writableState.errorEmitted||pna.nextTick(emitErrorNT,this,err$jscomp$0),this;this._readableState&&(this._readableState.destroyed=!0);this._writableState&&(this._writableState.destroyed=!0);
this._destroy(err$jscomp$0||null,function(err){!cb&&err?(pna.nextTick(emitErrorNT,_this,err),_this._writableState&&(_this._writableState.errorEmitted=!0)):cb&&cb(err)});return this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=
!1)}}},function(module,exports,__webpack_require__){(function(global){function Timeout(id,clearFn){this._id=id;this._clearFn=clearFn}var scope="undefined"!==typeof global&&global||"undefined"!==typeof self&&self||window,apply=Function.prototype.apply;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,scope,arguments),clearTimeout)};exports.setInterval=function(){return new Timeout(apply.call(setInterval,scope,arguments),clearInterval)};exports.clearTimeout=exports.clearInterval=
function(timeout){timeout&&timeout.close()};Timeout.prototype.unref=Timeout.prototype.ref=function(){};Timeout.prototype.close=function(){this._clearFn.call(scope,this._id)};exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId);item._idleTimeout=msecs};exports.unenroll=function(item){clearTimeout(item._idleTimeoutId);item._idleTimeout=-1};exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;0<=msecs&&(item._idleTimeoutId=
setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))};__webpack_require__(120);exports.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof global&&global.setImmediate||this&&this.setImmediate;exports.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof global&&global.clearImmediate||this&&this.clearImmediate}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){function _normalizeEncoding(enc){if(!enc)return"utf8";
for(var retried;;)switch(enc){case "utf8":case "utf-8":return"utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le";case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return enc;default:if(retried)return;enc=(""+enc).toLowerCase();retried=!0}}function StringDecoder(encoding){var nenc=_normalizeEncoding(encoding);if("string"!==typeof nenc&&(Buffer.isEncoding===isEncoding||!isEncoding(encoding)))throw Error("Unknown encoding: "+encoding);this.encoding=
nenc||encoding;switch(this.encoding){case "utf16le":this.text=utf16Text;this.end=utf16End;encoding=4;break;case "utf8":this.fillLast=utf8FillLast;encoding=4;break;case "base64":this.text=base64Text;this.end=base64End;encoding=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastTotal=this.lastNeed=0;this.lastChar=Buffer.allocUnsafe(encoding)}function utf8CheckByte(byte){return 127>=byte?0:6===byte>>5?2:14===byte>>4?3:30===byte>>3?4:2===byte>>6?-1:-2}function utf8CheckIncomplete(self,
buf,i){var j=buf.length-1;if(j<i)return 0;var nb=utf8CheckByte(buf[j]);if(0<=nb)return 0<nb&&(self.lastNeed=nb-1),nb;if(--j<i||-2===nb)return 0;nb=utf8CheckByte(buf[j]);if(0<=nb)return 0<nb&&(self.lastNeed=nb-2),nb;if(--j<i||-2===nb)return 0;nb=utf8CheckByte(buf[j]);return 0<=nb?(0<nb&&(2===nb?nb=0:self.lastNeed=nb-3),nb):0}function utf8FillLast(buf){var p=this.lastTotal-this.lastNeed;a:if(128!==(buf[0]&192)){this.lastNeed=0;var r="\ufffd"}else{if(1<this.lastNeed&&1<buf.length){if(128!==(buf[1]&192)){this.lastNeed=
1;r="\ufffd";break a}if(2<this.lastNeed&&2<buf.length&&128!==(buf[2]&192)){this.lastNeed=2;r="\ufffd";break a}}r=void 0}if(void 0!==r)return r;if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,p,0,buf.length);this.lastNeed-=buf.length}function utf16Text(buf,i){if(0===(buf.length-i)%2){if(i=buf.toString("utf16le",i)){var c=i.charCodeAt(i.length-1);if(55296<=c&&56319>=c)return this.lastNeed=2,this.lastTotal=
4,this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1],i.slice(0,-1)}return i}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=buf[buf.length-1];return buf.toString("utf16le",i,buf.length-1)}function utf16End(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):buf}function base64Text(buf,i){var n=(buf.length-i)%3;if(0===n)return buf.toString("base64",i);this.lastNeed=3-n;this.lastTotal=3;1===n?this.lastChar[0]=
buf[buf.length-1]:(this.lastChar[0]=buf[buf.length-2],this.lastChar[1]=buf[buf.length-1]);return buf.toString("base64",i,buf.length-n)}function base64End(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+this.lastChar.toString("base64",0,3-this.lastNeed):buf}function simpleWrite(buf){return buf.toString(this.encoding)}function simpleEnd(buf){return buf&&buf.length?this.write(buf):""}var Buffer=__webpack_require__(49).Buffer,isEncoding=Buffer.isEncoding||function(encoding){encoding=
""+encoding;switch(encoding&&encoding.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;default:return!1}};exports.StringDecoder=StringDecoder;StringDecoder.prototype.write=function(buf){if(0===buf.length)return"";if(this.lastNeed){var r=this.fillLast(buf);if(void 0===r)return"";var i=this.lastNeed;this.lastNeed=0}else i=0;return i<buf.length?r?r+this.text(buf,i):this.text(buf,i):
r||""};StringDecoder.prototype.end=function(buf){buf=buf&&buf.length?this.write(buf):"";return this.lastNeed?buf+"\ufffd":buf};StringDecoder.prototype.text=function(buf,i){var total=utf8CheckIncomplete(this,buf,i);if(!this.lastNeed)return buf.toString("utf8",i);this.lastTotal=total;total=buf.length-(total-this.lastNeed);buf.copy(this.lastChar,0,total);return buf.toString("utf8",i,total)};StringDecoder.prototype.fillLast=function(buf){if(this.lastNeed<=buf.length)return buf.copy(this.lastChar,this.lastTotal-
this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);buf.copy(this.lastChar,this.lastTotal-this.lastNeed,0,buf.length);this.lastNeed-=buf.length}},function(module,exports,__webpack_require__){function afterTransform(er,data){var ts=this._transformState;ts.transforming=!1;var cb=ts.writecb;if(!cb)return this.emit("error",Error("write callback called multiple times"));ts.writechunk=null;ts.writecb=null;null!=data&&this.push(data);cb(er);er=this._readableState;er.reading=
!1;(er.needReadable||er.length<er.highWaterMark)&&this._read(er.highWaterMark)}function Transform(options){if(!(this instanceof Transform))return new Transform(options);Duplex.call(this,options);this._transformState={afterTransform:afterTransform.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null};this._readableState.needReadable=!0;this._readableState.sync=!1;options&&("function"===typeof options.transform&&(this._transform=options.transform),"function"===
typeof options.flush&&(this._flush=options.flush));this.on("prefinish",prefinish)}function prefinish(){var _this=this;"function"===typeof this._flush?this._flush(function(er,data){done(_this,er,data)}):done(this,null,null)}function done(stream,er,data){if(er)return stream.emit("error",er);null!=data&&stream.push(data);if(stream._writableState.length)throw Error("Calling transform done when ws.length != 0");if(stream._transformState.transforming)throw Error("Calling transform done when still transforming");
return stream.push(null)}module.exports=Transform;var Duplex=__webpack_require__(32);module=Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);module.inherits(Transform,Duplex);Transform.prototype.push=function(chunk,encoding){this._transformState.needTransform=!1;return Duplex.prototype.push.call(this,chunk,encoding)};Transform.prototype._transform=function(chunk,encoding,cb){throw Error("_transform() is not implemented");};Transform.prototype._write=function(chunk,encoding,
cb){var ts=this._transformState;ts.writecb=cb;ts.writechunk=chunk;ts.writeencoding=encoding;ts.transforming||(chunk=this._readableState,(ts.needTransform||chunk.needReadable||chunk.length<chunk.highWaterMark)&&this._read(chunk.highWaterMark))};Transform.prototype._read=function(n){n=this._transformState;null!==n.writechunk&&n.writecb&&!n.transforming?(n.transforming=!0,this._transform(n.writechunk,n.writeencoding,n.afterTransform)):n.needTransform=!0};Transform.prototype._destroy=function(err,cb){var _this2=
this;Duplex.prototype._destroy.call(this,err,function(err2){cb(err2);_this2.emit("close")})}},function(module,exports,__webpack_require__){(function(global){function compare(a,b){if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i];y=b[i];break}return x<y?-1:y<x?1:0}function isBuffer(b){return global.Buffer&&"function"===typeof global.Buffer.isBuffer?global.Buffer.isBuffer(b):!(null==b||!b._isBuffer)}function isView(arrbuf){return isBuffer(arrbuf)||
"function"!==typeof global.ArrayBuffer?!1:"function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(arrbuf):arrbuf?arrbuf instanceof DataView||arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer?!0:!1:!1}function getName(func){if(util.isFunction(func))return functionsHaveNames?func.name:(func=func.toString().match(regex))&&func[1]}function truncate(s,n){return"string"===typeof s?s.length<n?s:s.slice(0,n):s}function inspect(something){if(functionsHaveNames||!util.isFunction(something))return util.inspect(something);
something=getName(something);return"[Function"+(something?": "+something:"")+"]"}function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction});}function ok(value,message){value||fail(value,!0,message,"==",assert.ok)}function _deepEqual(actual,expected,strict,memos){if(actual===expected)return!0;if(isBuffer(actual)&&isBuffer(expected))return 0===compare(actual,
expected);if(util.isDate(actual)&&util.isDate(expected))return actual.getTime()===expected.getTime();if(util.isRegExp(actual)&&util.isRegExp(expected))return actual.source===expected.source&&actual.global===expected.global&&actual.multiline===expected.multiline&&actual.lastIndex===expected.lastIndex&&actual.ignoreCase===expected.ignoreCase;if(null!==actual&&"object"===typeof actual||null!==expected&&"object"===typeof expected){if(!isView(actual)||!isView(expected)||Object.prototype.toString.call(actual)!==
Object.prototype.toString.call(expected)||actual instanceof Float32Array||actual instanceof Float64Array){if(isBuffer(actual)!==isBuffer(expected))return!1;memos=memos||{actual:[],expected:[]};var actualIndex=memos.actual.indexOf(actual);if(-1!==actualIndex&&actualIndex===memos.expected.indexOf(expected))return!0;memos.actual.push(actual);memos.expected.push(expected);return objEquiv(actual,expected,strict,memos)}return 0===compare(new Uint8Array(actual.buffer),new Uint8Array(expected.buffer))}return strict?
actual===expected:actual==expected}function isArguments(object){return"[object Arguments]"==Object.prototype.toString.call(object)}function objEquiv(a,b,strict,actualVisitedObjects){if(null===a||void 0===a||null===b||void 0===b)return!1;if(util.isPrimitive(a)||util.isPrimitive(b))return a===b;if(strict&&Object.getPrototypeOf(a)!==Object.getPrototypeOf(b))return!1;var aIsArgs=isArguments(a),bIsArgs=isArguments(b);if(aIsArgs&&!bIsArgs||!aIsArgs&&bIsArgs)return!1;if(aIsArgs)return a=pSlice.call(a),b=
pSlice.call(b),_deepEqual(a,b,strict);aIsArgs=objectKeys(a);var kb=objectKeys(b);if(aIsArgs.length!==kb.length)return!1;aIsArgs.sort();kb.sort();for(bIsArgs=aIsArgs.length-1;0<=bIsArgs;bIsArgs--)if(aIsArgs[bIsArgs]!==kb[bIsArgs])return!1;for(bIsArgs=aIsArgs.length-1;0<=bIsArgs;bIsArgs--)if(kb=aIsArgs[bIsArgs],!_deepEqual(a[kb],b[kb],strict,actualVisitedObjects))return!1;return!0}function notDeepStrictEqual(actual,expected,message){_deepEqual(actual,expected,!0)&&fail(actual,expected,message,"notDeepStrictEqual",
notDeepStrictEqual)}function expectedException(actual,expected){if(!actual||!expected)return!1;if("[object RegExp]"==Object.prototype.toString.call(expected))return expected.test(actual);try{if(actual instanceof expected)return!0}catch(e){}return Error.isPrototypeOf(expected)?!1:!0===expected.call({},actual)}function _throws(shouldThrow,block,expected,message){if("function"!==typeof block)throw new TypeError('"block" argument must be a function');"string"===typeof expected&&(message=expected,expected=
null);try{block()}catch(e){var error=e}block=error;message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:".");shouldThrow&&!block&&fail(block,expected,"Missing expected exception"+message);error="string"===typeof message;var isUnwantedException=!shouldThrow&&util.isError(block),isUnexpectedException=!shouldThrow&&block&&!expected;(isUnwantedException&&error&&expectedException(block,expected)||isUnexpectedException)&&fail(block,expected,"Got unwanted exception"+message);
if(shouldThrow&&block&&expected&&!expectedException(block,expected)||!shouldThrow&&block)throw block;}function strict(value,message){value||fail(value,!0,message,"==",strict)}var objectAssign=__webpack_require__(128),util=__webpack_require__(74),hasOwn=Object.prototype.hasOwnProperty,pSlice=Array.prototype.slice,functionsHaveNames=function(){return"foo"===function(){}.name}(),assert=module.exports=ok,regex=/\s*function\s+([^\(\s]*)\s*/;assert.AssertionError=function(options){this.name="AssertionError";
this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;options.message?(this.message=options.message,this.generatedMessage=!1):(this.message=truncate(inspect(this.actual),128)+" "+this.operator+" "+truncate(inspect(this.expected),128),this.generatedMessage=!0);var stackStartFunction=options.stackStartFunction||fail;Error.captureStackTrace?Error.captureStackTrace(this,stackStartFunction):(options=Error(),options.stack&&(options=options.stack,stackStartFunction=getName(stackStartFunction),
stackStartFunction=options.indexOf("\n"+stackStartFunction),0<=stackStartFunction&&(stackStartFunction=options.indexOf("\n",stackStartFunction+1),options=options.substring(stackStartFunction+1)),this.stack=options))};util.inherits(assert.AssertionError,Error);assert.fail=fail;assert.ok=ok;assert.equal=function(actual,expected,message){actual!=expected&&fail(actual,expected,message,"==",assert.equal)};assert.notEqual=function(actual,expected,message){actual==expected&&fail(actual,expected,message,
"!=",assert.notEqual)};assert.deepEqual=function(actual,expected,message){_deepEqual(actual,expected,!1)||fail(actual,expected,message,"deepEqual",assert.deepEqual)};assert.deepStrictEqual=function(actual,expected,message){_deepEqual(actual,expected,!0)||fail(actual,expected,message,"deepStrictEqual",assert.deepStrictEqual)};assert.notDeepEqual=function(actual,expected,message){_deepEqual(actual,expected,!1)&&fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)};assert.notDeepStrictEqual=
notDeepStrictEqual;assert.strictEqual=function(actual,expected,message){actual!==expected&&fail(actual,expected,message,"===",assert.strictEqual)};assert.notStrictEqual=function(actual,expected,message){actual===expected&&fail(actual,expected,message,"!==",assert.notStrictEqual)};assert.throws=function(block,error,message){_throws(!0,block,error,message)};assert.doesNotThrow=function(block,error,message){_throws(!1,block,error,message)};assert.ifError=function(err){if(err)throw err;};assert.strict=
objectAssign(strict,assert,{equal:assert.strictEqual,deepEqual:assert.deepStrictEqual,notEqual:assert.notStrictEqual,notDeepEqual:assert.notDeepStrictEqual});assert.strict.strict=assert.strict;var objectKeys=Object.keys||function(obj){var keys=[],key;for(key in obj)hasOwn.call(obj,key)&&keys.push(key);return keys}}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){(function(process){function inspect(obj,opts){var ctx={seen:[],stylize:stylizeNoColor};3<=arguments.length&&
(ctx.depth=arguments[2]);4<=arguments.length&&(ctx.colors=arguments[3]);isBoolean(opts)?ctx.showHidden=opts:opts&&exports._extend(ctx,opts);isUndefined(ctx.showHidden)&&(ctx.showHidden=!1);isUndefined(ctx.depth)&&(ctx.depth=2);isUndefined(ctx.colors)&&(ctx.colors=!1);isUndefined(ctx.customInspect)&&(ctx.customInspect=!0);ctx.colors&&(ctx.stylize=stylizeWithColor);return formatValue(ctx,obj,ctx.depth)}function stylizeWithColor(str,styleType){return(styleType=inspect.styles[styleType])?"\u001b["+inspect.colors[styleType][0]+
"m"+str+"\u001b["+inspect.colors[styleType][1]+"m":str}function stylizeNoColor(str,styleType){return str}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=!0});return hash}function formatValue(ctx,value,recurseTimes){if(ctx.customInspect&&value&&isFunction(value.inspect)&&value.inspect!==exports.inspect&&(!value.constructor||value.constructor.prototype!==value)){var ret=value.inspect(recurseTimes,ctx);isString(ret)||(ret=formatValue(ctx,ret,recurseTimes));return ret}if(ret=
formatPrimitive(ctx,value))return ret;var keys=Object.keys(value),visibleKeys=arrayToHash(keys);ctx.showHidden&&(keys=Object.getOwnPropertyNames(value));if(isError(value)&&(0<=keys.indexOf("message")||0<=keys.indexOf("description")))return formatError(value);if(0===keys.length){if(isFunction(value))return ctx.stylize("[Function"+(value.name?": "+value.name:"")+"]","special");if(isRegExp(value))return ctx.stylize(RegExp.prototype.toString.call(value),"regexp");if(isDate(value))return ctx.stylize(Date.prototype.toString.call(value),
"date");if(isError(value))return formatError(value)}ret="";var array=!1,braces=["{","}"];isArray(value)&&(array=!0,braces=["[","]"]);isFunction(value)&&(ret=" [Function"+(value.name?": "+value.name:"")+"]");isRegExp(value)&&(ret=" "+RegExp.prototype.toString.call(value));isDate(value)&&(ret=" "+Date.prototype.toUTCString.call(value));isError(value)&&(ret=" "+formatError(value));if(0===keys.length&&(!array||0==value.length))return braces[0]+ret+braces[1];if(0>recurseTimes)return isRegExp(value)?ctx.stylize(RegExp.prototype.toString.call(value),
"regexp"):ctx.stylize("[Object]","special");ctx.seen.push(value);keys=array?formatArray(ctx,value,recurseTimes,visibleKeys,keys):keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array)});ctx.seen.pop();return reduceToSingleString(keys,ret,braces)}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize("undefined","undefined");if(isString(value))return value="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+
"'",ctx.stylize(value,"string");if(isNumber(value))return ctx.stylize(""+value,"number");if(isBoolean(value))return ctx.stylize(""+value,"boolean");if(null===value)return ctx.stylize("null","null")}function formatError(value){return"["+Error.prototype.toString.call(value)+"]"}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){for(var output=[],i=0,l=value.length;i<l;++i)Object.prototype.hasOwnProperty.call(value,String(i))?output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,String(i),
!0)):output.push("");keys.forEach(function(key){key.match(/^\d+$/)||output.push(formatProperty(ctx,value,recurseTimes,visibleKeys,key,!0))});return output}function formatProperty(ctx,value,recurseTimes,visibleKeys,key,array){var name,str;value=Object.getOwnPropertyDescriptor(value,key)||{value:value[key]};value.get?str=value.set?ctx.stylize("[Getter/Setter]","special"):ctx.stylize("[Getter]","special"):value.set&&(str=ctx.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(visibleKeys,
key)||(name="["+key+"]");str||(0>ctx.seen.indexOf(value.value)?(str=null===recurseTimes?formatValue(ctx,value.value,null):formatValue(ctx,value.value,recurseTimes-1),-1<str.indexOf("\n")&&(str=array?str.split("\n").map(function(line){return"  "+line}).join("\n").substr(2):"\n"+str.split("\n").map(function(line){return"   "+line}).join("\n"))):str=ctx.stylize("[Circular]","special"));if(isUndefined(name)){if(array&&key.match(/^\d+$/))return str;name=JSON.stringify(""+key);name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?
(name=name.substr(1,name.length-2),name=ctx.stylize(name,"name")):(name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),name=ctx.stylize(name,"string"))}return name+": "+str}function reduceToSingleString(output,base,braces){var numLinesEst=0;return 60<output.reduce(function(prev,cur){numLinesEst++;0<=cur.indexOf("\n")&&numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,"").length+1},0)?braces[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+braces[1]:braces[0]+base+
" "+output.join(", ")+" "+braces[1]}function isArray(ar){return Array.isArray(ar)}function isBoolean(arg){return"boolean"===typeof arg}function isNumber(arg){return"number"===typeof arg}function isString(arg){return"string"===typeof arg}function isUndefined(arg){return void 0===arg}function isRegExp(re){return isObject(re)&&"[object RegExp]"===Object.prototype.toString.call(re)}function isObject(arg){return"object"===typeof arg&&null!==arg}function isDate(d){return isObject(d)&&"[object Date]"===
Object.prototype.toString.call(d)}function isError(e){return isObject(e)&&("[object Error]"===Object.prototype.toString.call(e)||e instanceof Error)}function isFunction(arg){return"function"===typeof arg}function pad(n){return 10>n?"0"+n.toString(10):n.toString(10)}function callbackifyOnRejected(reason,cb){if(!reason){var newReason=Error("Promise was rejected with a falsy value");newReason.reason=reason;reason=newReason}return cb(reason)}var getOwnPropertyDescriptors=Object.getOwnPropertyDescriptors||
function(obj){for(var keys=Object.keys(obj),descriptors={},i=0;i<keys.length;i++)descriptors[keys[i]]=Object.getOwnPropertyDescriptor(obj,keys[i]);return descriptors},formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){for(var objects=[],i=0;i<arguments.length;i++)objects.push(inspect(arguments[i]));return objects.join(" ")}i=1;var args=arguments,len=args.length;objects=String(f).replace(formatRegExp,function(x){if("%%"===x)return"%";if(i>=len)return x;switch(x){case "%s":return String(args[i++]);
case "%d":return Number(args[i++]);case "%j":try{return JSON.stringify(args[i++])}catch(_){return"[Circular]"}default:return x}});for(var x$jscomp$0=args[i];i<len;x$jscomp$0=args[++i])objects=null!==x$jscomp$0&&isObject(x$jscomp$0)?objects+(" "+inspect(x$jscomp$0)):objects+(" "+x$jscomp$0);return objects};exports.deprecate=function(fn,msg){if("undefined"!==typeof process&&!0===process.noDeprecation)return fn;if("undefined"===typeof process)return function(){return exports.deprecate(fn,msg).apply(this,
arguments)};var warned=!1;return function(){if(!warned){if(process.throwDeprecation)throw Error(msg);process.traceDeprecation?console.trace(msg):console.error(msg);warned=!0}return fn.apply(this,arguments)}};var debugs={},debugEnviron;exports.debuglog=function(set){isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||"");set=set.toUpperCase();if(!debugs[set])if((new RegExp("\\b"+set+"\\b","i")).test(debugEnviron)){var pid=process.pid;debugs[set]=function(){var msg=exports.format.apply(exports,
arguments);console.error("%s %d: %s",set,pid,msg)}}else debugs[set]=function(){};return debugs[set]};exports.inspect=inspect;inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};exports.isArray=isArray;exports.isBoolean=
isBoolean;exports.isNull=function(arg){return null===arg};exports.isNullOrUndefined=function(arg){return null==arg};exports.isNumber=isNumber;exports.isString=isString;exports.isSymbol=function(arg){return"symbol"===typeof arg};exports.isUndefined=isUndefined;exports.isRegExp=isRegExp;exports.isObject=isObject;exports.isDate=isDate;exports.isError=isError;exports.isFunction=isFunction;exports.isPrimitive=function(arg){return null===arg||"boolean"===typeof arg||"number"===typeof arg||"string"===typeof arg||
"symbol"===typeof arg||"undefined"===typeof arg};exports.isBuffer=__webpack_require__(129);var months="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");exports.log=function(){var JSCompiler_temp_const=console,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.log;var JSCompiler_inline_result=new Date;var time=[pad(JSCompiler_inline_result.getHours()),pad(JSCompiler_inline_result.getMinutes()),pad(JSCompiler_inline_result.getSeconds())].join(":");JSCompiler_inline_result=[JSCompiler_inline_result.getDate(),
months[JSCompiler_inline_result.getMonth()],time].join(" ");JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,"%s - %s",JSCompiler_inline_result,exports.format.apply(exports,arguments))};exports.inherits=__webpack_require__(130);exports._extend=function(origin,add){if(!add||!isObject(add))return origin;for(var keys=Object.keys(add),i=keys.length;i--;)origin[keys[i]]=add[keys[i]];return origin};var kCustomPromisifiedSymbol="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;
exports.promisify=function(original){function fn(){for(var promiseResolve,promiseReject,promise=new Promise(function(resolve,reject){promiseResolve=resolve;promiseReject=reject}),args=[],i=0;i<arguments.length;i++)args.push(arguments[i]);args.push(function(err,value){err?promiseReject(err):promiseResolve(value)});try{original.apply(this,args)}catch(err){promiseReject(err)}return promise}if("function"!==typeof original)throw new TypeError('The "original" argument must be of type Function');if(kCustomPromisifiedSymbol&&
original[kCustomPromisifiedSymbol]){fn=original[kCustomPromisifiedSymbol];if("function"!==typeof fn)throw new TypeError('The "util.promisify.custom" argument must be of type Function');Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:!1,writable:!1,configurable:!0});return fn}Object.setPrototypeOf(fn,Object.getPrototypeOf(original));kCustomPromisifiedSymbol&&Object.defineProperty(fn,kCustomPromisifiedSymbol,{value:fn,enumerable:!1,writable:!1,configurable:!0});return Object.defineProperties(fn,
getOwnPropertyDescriptors(original))};exports.promisify.custom=kCustomPromisifiedSymbol;exports.callbackify=function(original){function callbackified(){for(var args=[],i=0;i<arguments.length;i++)args.push(arguments[i]);var maybeCb=args.pop();if("function"!==typeof maybeCb)throw new TypeError("The last argument must be of type Function");var self=this,cb=function(){return maybeCb.apply(self,arguments)};original.apply(this,args).then(function(ret){process.nextTick(cb,null,ret)},function(rej){process.nextTick(callbackifyOnRejected,
rej,cb)})}if("function"!==typeof original)throw new TypeError('The "original" argument must be of type Function');Object.setPrototypeOf(callbackified,Object.getPrototypeOf(original));Object.defineProperties(callbackified,getOwnPropertyDescriptors(original));return callbackified}}).call(this,__webpack_require__(22))},function(module,exports,__webpack_require__){module.exports=function(adler,buf,len,pos){var s1=adler&65535|0;adler=adler>>>16&65535|0;for(var n;0!==len;){n=2E3<len?2E3:len;len-=n;do s1=
s1+buf[pos++]|0,adler=adler+s1|0;while(--n);s1%=65521;adler%=65521}return s1|adler<<16|0}},function(module,exports,__webpack_require__){var crcTable=function(){for(var c,table=[],n=0;256>n;n++){c=n;for(var k=0;8>k;k++)c=c&1?3988292384^c>>>1:c>>>1;table[n]=c}return table}();module.exports=function(crc,buf,len,pos){len=pos+len;for(crc^=-1;pos<len;pos++)crc=crc>>>8^crcTable[(crc^buf[pos])&255];return crc^-1}},function(module,exports,__webpack_require__){(function(global){var ClientRequest=__webpack_require__(140),
response=__webpack_require__(79),extend=__webpack_require__(142),statusCodes=__webpack_require__(143),url=__webpack_require__(62);exports.request=function(opts,cb){opts="string"===typeof opts?url.parse(opts):extend(opts);var defaultProtocol=-1===global.location.protocol.search(/^https?:$/)?"http:":"";defaultProtocol=opts.protocol||defaultProtocol;var host=opts.hostname||opts.host,port=opts.port,path=opts.path||"/";host&&-1!==host.indexOf(":")&&(host="["+host+"]");opts.url=(host?defaultProtocol+"//"+
host:"")+(port?":"+port:"")+path;opts.method=(opts.method||"GET").toUpperCase();opts.headers=opts.headers||{};opts=new ClientRequest(opts);if(cb)opts.on("response",cb);return opts};exports.get=function(opts,cb){opts=exports.request(opts,cb);opts.end();return opts};exports.ClientRequest=ClientRequest;exports.IncomingMessage=response.IncomingMessage;exports.Agent=function(){};exports.Agent.defaultMaxSockets=4;exports.globalAgent=new exports.Agent;exports.STATUS_CODES=statusCodes;exports.METHODS="CHECKOUT CONNECT COPY DELETE GET HEAD LOCK M-SEARCH MERGE MKACTIVITY MKCOL MOVE NOTIFY OPTIONS PATCH POST PROPFIND PROPPATCH PURGE PUT REPORT SEARCH SUBSCRIBE TRACE UNLOCK UNSUBSCRIBE".split(" ")}).call(this,
__webpack_require__(15))},function(module,exports,__webpack_require__){(function(global){function getXHR(){if(void 0!==xhr$jscomp$0)return xhr$jscomp$0;if(global.XMLHttpRequest){xhr$jscomp$0=new global.XMLHttpRequest;try{xhr$jscomp$0.open("GET",global.XDomainRequest?"/":"https://example.com")}catch(e$12){xhr$jscomp$0=null}}else xhr$jscomp$0=null;return xhr$jscomp$0}function checkTypeSupport(type){var xhr=getXHR();if(!xhr)return!1;try{return xhr.responseType=type,xhr.responseType===type}catch(e$13){}return!1}
function isFunction(value){return"function"===typeof value}exports.fetch=isFunction(global.fetch)&&isFunction(global.ReadableStream);exports.writableStream=isFunction(global.WritableStream);exports.abortController=isFunction(global.AbortController);exports.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),exports.blobConstructor=!0}catch(e){}var haveArrayBuffer="undefined"!==typeof global.ArrayBuffer,haveSlice=haveArrayBuffer&&isFunction(global.ArrayBuffer.prototype.slice);exports.arraybuffer=
exports.fetch||haveArrayBuffer&&checkTypeSupport("arraybuffer");exports.msstream=!exports.fetch&&haveSlice&&checkTypeSupport("ms-stream");exports.mozchunkedarraybuffer=!exports.fetch&&haveArrayBuffer&&checkTypeSupport("moz-chunked-arraybuffer");exports.overrideMimeType=exports.fetch||(getXHR()?isFunction(getXHR().overrideMimeType):!1);exports.vbArray=isFunction(global.VBArray);var xhr$jscomp$0=null}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){(function(process,
Buffer,global){var capability=__webpack_require__(78),inherits=__webpack_require__(28),stream=__webpack_require__(41),rStates=exports.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},IncomingMessage=exports.IncomingMessage=function(xhr,response,mode,fetchTimer){var self=this;stream.Readable.call(self);self._mode=mode;self.headers={};self.rawHeaders=[];self.trailers={};self.rawTrailers=[];self.on("end",function(){process.nextTick(function(){self.emit("close")})});if("fetch"===mode){var read=
function(){reader.read().then(function(result){self._destroyed||(result.done?(global.clearTimeout(fetchTimer),self.push(null)):(self.push(new Buffer(result.value)),read()))}).catch(function(err){global.clearTimeout(fetchTimer);self._destroyed||self.emit("error",err)})};self._fetchResponse=response;self.url=response.url;self.statusCode=response.status;self.statusMessage=response.statusText;response.headers.forEach(function(header,key){self.headers[key.toLowerCase()]=header;self.rawHeaders.push(key,
header)});if(capability.writableStream){xhr=new WritableStream({write:function(chunk){return new Promise(function(resolve,reject){self._destroyed?reject():self.push(new Buffer(chunk))?resolve():self._resumeFetch=resolve})},close:function(){global.clearTimeout(fetchTimer);self._destroyed||self.push(null)},abort:function(err){self._destroyed||self.emit("error",err)}});try{response.body.pipeTo(xhr).catch(function(err){global.clearTimeout(fetchTimer);self._destroyed||self.emit("error",err)});return}catch(e){}}var reader=
response.body.getReader();read()}else if(self._xhr=xhr,self._pos=0,self.url=xhr.responseURL,self.statusCode=xhr.status,self.statusMessage=xhr.statusText,xhr.getAllResponseHeaders().split(/\r?\n/).forEach(function(header){if(header=header.match(/^([^:]+):\s*(.*)/)){var key=header[1].toLowerCase();"set-cookie"===key?(void 0===self.headers[key]&&(self.headers[key]=[]),self.headers[key].push(header[2])):self.headers[key]=void 0!==self.headers[key]?self.headers[key]+(", "+header[2]):header[2];self.rawHeaders.push(header[1],
header[2])}}),self._charset="x-user-defined",!capability.overrideMimeType){if(response=self.rawHeaders["mime-type"])if(response=response.match(/;\s*charset=([^;])(;|$)/))self._charset=response[1].toLowerCase();self._charset||(self._charset="utf-8")}};inherits(IncomingMessage,stream.Readable);IncomingMessage.prototype._read=function(){var resolve=this._resumeFetch;resolve&&(this._resumeFetch=null,resolve())};IncomingMessage.prototype._onXHRProgress=function(){var self=this,xhr=self._xhr,response=null;
switch(self._mode){case "text:vbarray":if(xhr.readyState!==rStates.DONE)break;try{response=(new global.VBArray(xhr.responseBody)).toArray()}catch(e){}if(null!==response){self.push(new Buffer(response));break}case "text":try{response=xhr.responseText}catch(e$14){self._mode="text:vbarray";break}if(response.length>self._pos){xhr=response.substr(self._pos);if("x-user-defined"===self._charset){for(var buffer=new Buffer(xhr.length),i=0;i<xhr.length;i++)buffer[i]=xhr.charCodeAt(i)&255;self.push(buffer)}else self.push(xhr,
self._charset);self._pos=response.length}break;case "arraybuffer":if(xhr.readyState!==rStates.DONE||!xhr.response)break;response=xhr.response;self.push(new Buffer(new Uint8Array(response)));break;case "moz-chunked-arraybuffer":response=xhr.response;if(xhr.readyState!==rStates.LOADING||!response)break;self.push(new Buffer(new Uint8Array(response)));break;case "ms-stream":if(response=xhr.response,xhr.readyState===rStates.LOADING){var reader=new global.MSStreamReader;reader.onprogress=function(){reader.result.byteLength>
self._pos&&(self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos)))),self._pos=reader.result.byteLength)};reader.onload=function(){self.push(null)};reader.readAsArrayBuffer(response)}}self._xhr.readyState===rStates.DONE&&"ms-stream"!==self._mode&&self.push(null)}}).call(this,__webpack_require__(22),__webpack_require__(25).Buffer,__webpack_require__(15))},function(module,__webpack_exports__,__webpack_require__){var _Matrix__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(18),_Point__WEBPACK_IMPORTED_MODULE_1__=
__webpack_require__(17);(function(){function TransformationBuilder(initial){void 0===initial&&(initial=[]);this.queue=initial||[]}Object.defineProperty(TransformationBuilder.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0});TransformationBuilder.prototype.getAt=function(index){return this.queue[this.queue.length-1-index]};TransformationBuilder.prototype.setAt=function(index,transform){this.queue[this.queue.length-1-index]=transform;return this};TransformationBuilder.prototype.insertAt=
function(index,transform){this.queue.splice(this.queue.length-1-index,0,transform);return this};TransformationBuilder.prototype.removeAt=function(index){this.queue.splice(this.queue.length-1-index,1);return this};TransformationBuilder.prototype.push=function(transform){this.queue.unshift(transform);return this};TransformationBuilder.prototype.pop=function(){this.queue.shift();return this};TransformationBuilder.prototype.translate=function(x,y){void 0===x&&(x=0);void 0===y&&(y=0);var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;
transform.setTranslate(x,y);this.push(transform);return this};TransformationBuilder.prototype.translateTo=function(sx,sy,dx,dy){sx=new _Point__WEBPACK_IMPORTED_MODULE_1__.a(sx,sy);dx=(new _Point__WEBPACK_IMPORTED_MODULE_1__.a(dx,dy)).subtract(sx);dy=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;dy.setTranslate(dx.X,dx.Y);this.push(dy);return this};TransformationBuilder.prototype.scale=function(x,y){if(null===x||void 0===x)x=1;if(null===y||void 0===y)y=x;var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;
transform.setScale(x,y);this.push(transform);return this};TransformationBuilder.prototype.skew=function(x,y){var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setSkew(x,y);this.push(transform);return this};TransformationBuilder.prototype.rotate=function(angle,inRadians){void 0===inRadians&&(inRadians=!1);var transform=new _Matrix__WEBPACK_IMPORTED_MODULE_0__.a;transform.setRotation(angle,inRadians);this.push(transform);return this};TransformationBuilder.prototype.getFinalTransform=
function(){return this.queue.reduce(function(prev,t){return prev.multiply(t)},_Matrix__WEBPACK_IMPORTED_MODULE_0__.a.Identity)};TransformationBuilder.prototype.clear=function(){delete this.queue;this.queue=[];return this};return TransformationBuilder})()},function(module,__webpack_exports__,__webpack_require__){var _Quad__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(12),logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_Highlights__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(43),_ResultCode__WEBPACK_IMPORTED_MODULE_3__=
__webpack_require__(16),_SearchMode__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7),_Highlight__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(38),_ResultRun__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(21),_ResultDetermineOriRange__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(55),_ResultFindTexts__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(34),_SearchPattern__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(35),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(24),
_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4);(function(){function TextSearchLowLevel(){this._reg=this._m=null;this._regExs={};this._m_SearchMode=0;this._m_PageBufCurItr=this._m_EndPageItr=this._m_BgnPageItr=this._m_CurPageItr=-1;this._m_SaveContentQuads=this._m_HyphenSrcOnly=this._m_Ready=this._m_ReturnedPage=!1;this._m_BufEOLByHyphenPos=[];this._m_BufRegByHyphenPos=[];this._m_SrcHyphenPos=[];this._m_Contents_PDF=this._m_Contents_Src="";this._m_Src_PDF_Map=[];this._m_ContentOffsets=
[];this._m_OffsetMissing=[];this._m_ContentQuads=[];this._m_BreakSymbols={};this._m_BreakSymbols[" "]=null;this._m_BreakSymbols["\t"]=null;this._m_BreakSymbols["\n"]=null;this._m_BreakSymbols["."]=null;this._m_BreakSymbols[","]=null;this._m_BreakSymbols["?"]=null;this._m_BreakSymbols[":"]=null;this._m_BreakSymbols[";"]=null;this._m_BreakSymbols['"']=null;this._m_BreakSymbols["'"]=null;this._m_BreakSymbols["<"]=null;this._m_BreakSymbols[">"]=null;this._m_BreakSymbols["`"]=null;this._m_BreakSymbols["~"]=
null;this._m_BreakSymbols["!"]=null;this._m_BreakSymbols["@"]=null;this._m_BreakSymbols["#"]=null;this._m_BreakSymbols.$=null;this._m_BreakSymbols["%"]=null;this._m_BreakSymbols["^"]=null;this._m_BreakSymbols["&"]=null;this._m_BreakSymbols["("]=null;this._m_BreakSymbols[")"]=null;this._m_BreakSymbols["["]=null;this._m_BreakSymbols["]"]=null;this._m_BreakSymbols["{"]=null;this._m_BreakSymbols["}"]=null;this._m_BreakSymbols["|"]=null;this._m_BreakSymbols._=null;this._m_BreakSymbols["\\"]=null;this._m_BreakSymbols["-"]=
null;this._m_BreakSymbols["="]=null;this._m_BreakSymbols["+"]=null;this._m_BreakSymbols["/"]=null;this._m_BreakSymbols["*"]=null}TextSearchLowLevel.binarySearch=function(ol,v){for(var s=0,e=ol.length-1,m=Math.floor((s+e)/2);ol[m]!==v&&s<e;)v<ol[m]?e=m-1:v>ol[m]&&(s=m+1),m=Math.floor((s+e)/2);return ol[m]===v};TextSearchLowLevel.prototype.begin=function(doc,pattern,mode,start_page,end_page){this._m_Ready=!1;this._m_Pages=doc.getPages();if(0>this._m_Pages.length||0>pattern.length||0<=start_page&&start_page>
end_page)return!1;this._m_SearchMode=mode;if(!this._setPattern(pattern))return!1;doc=start_page;pattern=this._m_Pages.length;if(0>doc)if(0>end_page)doc=0,end_page=pattern-1;else return!1;else if(end_page<doc)return!1;Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=doc&&doc<=end_page);if(doc>=pattern||end_page>=pattern)return!1;this._m_BgnPageItr=doc;this._m_EndPageItr=end_page;this.isSearchUpOn()?this._m_CurPageItr=this._m_EndPageItr:this._m_CurPageItr=this._m_BgnPageItr;++this._m_EndPageItr;this._m_Contents_PDF=
this._m_Contents_Src="";Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_ContentOffsets);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_OffsetMissing);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_BufEOLByHyphenPos);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_BufRegByHyphenPos);this._m_Ready=!0;this._m_PageBufCurItr=-1;this._m_ReturnedPage=!1;return!0};TextSearchLowLevel.prototype.run=function(quads){var result_str_start=
-1,result_str_end=-1,page_num=-1,result_str="",ambient_str="",highlights=new _Highlights__WEBPACK_IMPORTED_MODULE_2__.a;highlights._init();highlights._clear();if(!this._m_Ready||0>=this._m_SearchPattern.text.length)return new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.DONE,page_num,result_str,ambient_str,result_str_start,result_str_end);var found_str="",found_start_itr=-1,found_end_itr=-1;for((new _Highlights__WEBPACK_IMPORTED_MODULE_2__.a)._init();;){if(this._m_CurPageItr===
this._m_EndPageItr)return new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.DONE,page_num,result_str,ambient_str,result_str_start,result_str_end);var page_ok=!0;if(!this._m_Contents_Src.length||this._m_PageBufCurItr===this._m_Contents_Src.length){if(!this.isSearchUpOn()){if(this._m_PageBufCurItr===this._m_Contents_Src.length){if(this.isPageReturnOn()&&!this._m_ReturnedPage)return this._m_ReturnedPage=!0,page_num=this._m_CurPageItr,new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.PAGE,
page_num,result_str,ambient_str,result_str_start,result_str_end);++this._m_CurPageItr}if(this._m_CurPageItr===this._m_EndPageItr)return new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.DONE,page_num,result_str,ambient_str,result_str_start,result_str_end)}else if(this._m_PageBufCurItr===this._m_Contents_Src.length){if(this.isPageReturnOn()&&!this._m_ReturnedPage)return this._m_ReturnedPage=!0,page_num=this._m_CurPageItr,new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.PAGE,
page_num,result_str,ambient_str,result_str_start,result_str_end);if(this._m_CurPageItr===this._m_BgnPageItr)return new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.DONE,page_num,result_str,ambient_str,result_str_start,result_str_end);--this._m_CurPageItr}(page_ok=this._constructPageBuf(this._m_CurPageItr))?this.isSearchUpOn()?(this._m_PageBufCurItr=this._m_Contents_Src.length,--this._m_PageBufCurItr):this._m_PageBufCurItr=0:this._m_PageBufCurItr=0}this._m_ReturnedPage=
!1;page_ok&&(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(this._m_PageBufCurItr!==this._m_Contents_Src.length),result_str_end=this._findTexts(highlights),found_str=result_str_end._found_str,found_start_itr=result_str_end._found_start_itr,found_end_itr=result_str_end._found_end_itr,ambient_str=result_str_end._ambient,result_str_start=result_str_end._result_str_start,result_str_end=result_str_end._result_str_end);if(page_ok&&found_start_itr!==this._m_Contents_Src.length){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<
found_str.length);result_str=found_str;page_num=this._m_CurPageItr;this.isSearchUpOn()?(this._m_PageBufCurItr=found_start_itr)?--this._m_PageBufCurItr:this._m_PageBufCurItr=this._m_Contents_Src.length:this._m_PageBufCurItr=found_end_itr;if(this.isHighlightOn())for(Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(quads),found_str=[],highlights._computeDocInfo(this._m_Pages,found_str),highlights=0;highlights<found_str.length;++highlights)found_start_itr=new _Quad__WEBPACK_IMPORTED_MODULE_0__.a,
found_end_itr=found_str[highlights],found_start_itr.x1=found_end_itr._quad[0],found_start_itr.y1=found_end_itr._quad[1],found_start_itr.x2=found_end_itr._quad[2],found_start_itr.y2=found_end_itr._quad[3],found_start_itr.x3=found_end_itr._quad[4],found_start_itr.y3=found_end_itr._quad[5],found_start_itr.x4=found_end_itr._quad[6],found_start_itr.y4=found_end_itr._quad[7],quads.push(found_start_itr);return new _ResultRun__WEBPACK_IMPORTED_MODULE_6__.a(_ResultCode__WEBPACK_IMPORTED_MODULE_3__.a.FOUND,
page_num,result_str,ambient_str,result_str_start,result_str_end)}this._m_PageBufCurItr=this._m_Contents_Src.length}};TextSearchLowLevel.prototype._setPattern=function(pattern){if(0>=pattern.length)return!1;for(var temp_exp="",sz=pattern.length,prev_is_space=!1,i=0;i<sz;++i){var u=this._normalizeUnicode(pattern.charAt(i));" "===u?prev_is_space||(temp_exp+=u,prev_is_space=!0):(prev_is_space=!1,temp_exp+=u)}this._m_PatternBackup=temp_exp;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_SrcHyphenPos);
pattern="";if(this.isRegexSearchOn())pattern=temp_exp;else{for(i=0;i<temp_exp.length;++i)u=temp_exp.charAt(i),"\n"!==u&&(this._isHyphen(u)?this._m_SrcHyphenPos.push(pattern.length-1):pattern+=u);this.isCaseSensitiveOn()||(pattern=pattern.toLowerCase())}this.isRegexSearchOn()?this._m_SearchPattern=new _SearchPattern__WEBPACK_IMPORTED_MODULE_9__.b(pattern,"r"):this.isWildCardSearchOn()?this._m_SearchPattern=new _SearchPattern__WEBPACK_IMPORTED_MODULE_9__.b(pattern,"w"):this._m_SearchPattern=new _SearchPattern__WEBPACK_IMPORTED_MODULE_9__.b(pattern,
"");i=this._m_HyphenSrcOnly;this._m_SearchPattern.text.length?this._m_HyphenSrcOnly=!1:(this._m_SearchPattern.text=temp_exp,Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_SrcHyphenPos),this._m_HyphenSrcOnly=!0);this._m_HyphenSrcOnly!==i&&0<this._m_Contents_Src.length&&!this._constructPageBuf(this._m_CurPageItr)&&(this._m_PageBufCurItr=this._m_Contents_Src.length);return!0};TextSearchLowLevel.prototype._getMode=function(){return this._m_SearchMode};TextSearchLowLevel.prototype.setMode=
function(mode){var highlight_on_before=this.isHighlightOn(),case_sensitive_on_before=this.isCaseSensitiveOn(),search_up_before=this.isSearchUpOn();this._m_SearchMode=mode;var highlight_on_after=this.isHighlightOn();mode=this.isCaseSensitiveOn();var search_up_after=this.isSearchUpOn(),donot_make_buf_again=!1;case_sensitive_on_before!==mode&&this._setPattern(this._m_PatternBackup);if(!(0>=this._m_Contents_Src.length)){highlight_on_before!==highlight_on_after&&highlight_on_after&&!donot_make_buf_again&&
(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=this._m_PageBufCurItr&&this._m_PageBufCurItr<=this._m_Contents_Src.length),this._constructPageBuf(this._m_CurPageItr),donot_make_buf_again=!0);if(case_sensitive_on_before!==mode&&!donot_make_buf_again){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(this._m_Src_PDF_Map.length===this._m_Contents_Src.length);Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(this._m_Src_PDF_Map.length<=this._m_Contents_PDF.length);highlight_on_before=this._m_Contents_Src.length;
case_sensitive_on_before="";for(highlight_on_after=0;highlight_on_after<highlight_on_before;++highlight_on_after)Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=this._m_Src_PDF_Map[highlight_on_after]&&this._m_Src_PDF_Map[highlight_on_after]<this._m_Contents_PDF.length),case_sensitive_on_before+=this._normalizeUnicode(this._m_Contents_PDF.charAt(this._m_Src_PDF_Map[highlight_on_after]));this._m_Contents_Src=case_sensitive_on_before;mode||(this._m_Contents_Src=this._m_Contents_Src.toLowerCase())}if(search_up_before!==
search_up_after)if(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=this._m_PageBufCurItr&&this._m_PageBufCurItr<=this._m_Contents_Src.length),this._m_PageBufCurItr!==this._m_Contents_Src.length)if(search_up_after)for(highlight_on_after=0;2>highlight_on_after;++highlight_on_after)this._m_PageBufCurItr&&--this._m_PageBufCurItr;else for(highlight_on_after=0;2>highlight_on_after;++highlight_on_after)this._m_PageBufCurItr!==this._m_Contents_Src.length&&++this._m_PageBufCurItr;else search_up_after?(this._m_PageBufCurItr=
this._m_Contents_Src.length,--this._m_PageBufCurItr):this._m_PageBufCurItr=0}};TextSearchLowLevel.prototype._getCurrentPage=function(){return this._m_Ready?this._m_CurPageItr:-1};TextSearchLowLevel.prototype.isHighlightOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.HIGHLIGHT)};TextSearchLowLevel.prototype.isAmbStringOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.AMBIENT_STRING)};TextSearchLowLevel.prototype.isCaseSensitiveOn=
function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.CASE_SENSITIVE)};TextSearchLowLevel.prototype.isWildCardSearchOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.WILD_CARD)};TextSearchLowLevel.prototype.isRegexSearchOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.REGEX)};TextSearchLowLevel.prototype.isWholeWordOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.WHOLE_WORD)};
TextSearchLowLevel.prototype.isSearchUpOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.SEARCH_UP)};TextSearchLowLevel.prototype.isPageReturnOn=function(){return 0<(this._m_SearchMode&_SearchMode__WEBPACK_IMPORTED_MODULE_4__.a.PAGE_STOP)};TextSearchLowLevel.prototype._findTexts=function(in_out_highlights){var result=this._FindTexts(),found_start_itr=result._found_start_itr,found_end_itr=result._found_end_itr,result_str_start=result._result_str_start,result_str_end=
result._result_str_end;if(found_start_itr===this._m_Contents_Src.length)return result;var found_str=this._determineOriRange(0,0,found_start_itr,found_end_itr,found_end_itr-found_start_itr);var _s=found_str._s;var _e=found_str._e;for(var temp_str="",i=_s;i<_e;++i)temp_str+=this._m_Contents_PDF.charAt(i);found_str=temp_str;temp_str="";if(this.isAmbStringOn()){var start=_s,end=_e;result_str_start=this._m_Contents_PDF.length;var word_count=result_str_end=0,has_meaningful=i=!1,passed_first_break=!1;if(start)for(--start;start;){var tc=
this._m_Contents_PDF.charAt(start);i&&this._isBreakSymbol(tc)&&word_count++;i||!passed_first_break||this._isBreakSymbol(tc)||(i=has_meaningful=!0);if(30<=result_str_end||0<word_count){start++;break}if(this._m_ContentOffsets.length>start&&-2===this._m_ContentOffsets[start]){var u=this._m_Contents_PDF.charAt(start+1);if("A"<=u&&"Z">=u){++start;has_meaningful=!0;break}}--start;result_str_end++;passed_first_break=passed_first_break||this._isBreakSymbol(tc)||"\n"===tc}has_meaningful||(start=_s);i=end;
for(word_count=0;end!==result_str_start;){this._isBreakSymbol(this._m_Contents_PDF.charAt(end))&&(i=end-1,word_count++);if(10<=word_count||70<=result_str_end){end===result_str_start-1||this._isBreakSymbol(this._m_Contents_PDF.charAt(end+1))||(end=i);break}end++}end===result_str_start&&--end;for(i=start;i<=end;++i)result_str_start=this._m_Contents_PDF.charAt(i),temp_str="\n"===result_str_start?temp_str+" ":temp_str+result_str_start;result_str_start=_s-start;result_str_end=_e-start}result._ambient=
temp_str;if(this.isHighlightOn()){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(this._m_Contents_PDF.length===this._m_ContentOffsets.length);Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(_e>=_s);temp_str=_e-_s;word_count=[];for(i=_s;i<_e;++i)Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.c)(word_count,word_count.length,this._m_ContentOffsets[i]);for(_s=0;_s<temp_str&&0>word_count[_s];)++_s;for(i=_e=_s;_s<temp_str;)if(start=word_count[_s],_s===temp_str-1)has_meaningful=this._m_CurPageItr,
start=word_count[i],end=word_count[_s],0>end&&(end=word_count[_e]),Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=has_meaningful&&0<=start&&end>=start),passed_first_break=new _Highlight__WEBPACK_IMPORTED_MODULE_5__.a,passed_first_break._initMembers(has_meaningful,start,end-start+1),in_out_highlights._add(passed_first_break),++_s;else if(-1===start)Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=word_count[_e]),++_s;else if(-2===start){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=word_count[_e]);
has_meaningful=this._m_CurPageItr;start=word_count[i];end=word_count[_e];Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=has_meaningful&&0<=start&&end>=start);passed_first_break=new _Highlight__WEBPACK_IMPORTED_MODULE_5__.a;passed_first_break._initMembers(has_meaningful,start,end-start+1);in_out_highlights._add(passed_first_break);for(++_s;_s<temp_str&&0>word_count[_s];)++_s;i=_e=_s}else 0<=start&&(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=word_count[_e]),_e===_s||this._continousInPDF(word_count,
_e,_s)?(_e=_s,++_s):(has_meaningful=this._m_CurPageItr,start=word_count[i],end=word_count[_e],Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=has_meaningful&&0<=start&&end>=start),passed_first_break=new _Highlight__WEBPACK_IMPORTED_MODULE_5__.a,passed_first_break._initMembers(has_meaningful,start,end-start+1),in_out_highlights._add(passed_first_break),i=_e=_s))}result._found_str=found_str;result._found_start_itr=found_start_itr;result._found_end_itr=found_end_itr;result._result_str_start=result_str_start;
result._result_str_end=result_str_end;return result};TextSearchLowLevel.prototype._escape=function(str){return str.replace(_SearchPattern__WEBPACK_IMPORTED_MODULE_9__.a,"\\$&")};TextSearchLowLevel.prototype._buildRegExp=function(text,regexFlag){try{return new RegExp(text,regexFlag)}catch(error){if(-1<text.indexOf("(?<=")||-1<text.indexOf("(?<!"))error.message="Invalid regular expression: Positive (?<=) and Negative (?<!) Lookbehinds are not supported in this browser. "+(error.message+".");Object(logger__WEBPACK_IMPORTED_MODULE_1__.f)(error);
throw error;}};TextSearchLowLevel.prototype._reIndexOf=function(pattern,stringToSearch,startAt){var searchReg=this._regExs[pattern.text],regexFlag="g";this.isCaseSensitiveOn()||(regexFlag+="i");searchReg&&searchReg.re.flags===regexFlag?this._reg=searchReg:(this._reg=pattern.isRegex?{re:this._buildRegExp(pattern.text,regexFlag),matches:null}:{re:this._buildRegExp(this._escape(pattern.text),regexFlag),matches:null},this._regExs[pattern.text]=this._reg);this._reg.re.lastIndex=startAt;this._m=this._reg.re.exec(stringToSearch);
return null!=this._m?{start:this._reg.re.lastIndex-this._m[0].length,length:this._m[0].length}:{start:-1,length:0}};TextSearchLowLevel.prototype._reReverseIndexOf=function(pattern,stringToSearch,startAt){this._reg=null;var searchReg=this._regExs[pattern.text],regexFlag="g";this.isCaseSensitiveOn()||(regexFlag+="i");searchReg&&searchReg.re.flags===regexFlag?this._reg=searchReg:(this._reg=pattern.isRegex?{re:this._buildRegExp(pattern.text,regexFlag),matches:[],searched:null}:{re:this._buildRegExp(this._escape(pattern.text),
regexFlag),matches:[],searched:null},this._regExs[pattern.text]=this._reg);if(this._reg.searched!==stringToSearch){for(this._reg.matches=[];null!==(this._m=this._reg.re.exec(stringToSearch));)this._reg.matches.push({start:this._m.index,end:this._reg.re.lastIndex});this._reg.searched=stringToSearch}if(0<this._reg.matches.length)for(pattern=this._reg.matches.length-1;0<=pattern;pattern--)if(this._reg.matches[pattern].end<startAt)return{start:this._reg.matches[pattern].start,length:this._reg.matches[pattern].end-
this._reg.matches[pattern].start};return{start:-1,length:0}};TextSearchLowLevel.prototype._FindTexts=function(){var found_end_itr;var cur_buf_itr=this._m_PageBufCurItr;for(var end_buf_itr=this._m_Contents_Src.length,found_start_itr;;){var search_again_flag=!1;Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<this._m_SearchPattern.text.length);if(this.isSearchUpOn()){if(cur_buf_itr===end_buf_itr){found_start_itr=found_end_itr=end_buf_itr;break}found_end_itr=this._reReverseIndexOf(this._m_SearchPattern,
this._m_Contents_Src,cur_buf_itr)}else found_end_itr=this._reIndexOf(this._m_SearchPattern,this._m_Contents_Src,cur_buf_itr);found_start_itr=found_end_itr.start;if(0>found_start_itr){found_start_itr=found_end_itr=end_buf_itr;break}found_end_itr=found_end_itr.start+found_end_itr.length;this.isSearchUpOn()?(cur_buf_itr=found_start_itr,0!==cur_buf_itr?--cur_buf_itr:cur_buf_itr=end_buf_itr):cur_buf_itr=found_end_itr;if(!this._m_HyphenSrcOnly)if(0<this._m_SrcHyphenPos.length)if(this._m_BufEOLByHyphenPos.length||
this._m_BufRegByHyphenPos.length){for(var buf_reg_hyphen_end=this._m_BufRegByHyphenPos.length,buf_eol_hyphen_end=this._m_BufEOLByHyphenPos.length,this_start_pos=found_start_itr-0,$enum1=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_10__.a)(this._m_SrcHyphenPos);$enum1.moveNext();){var src_pos=$enum1.current;src_pos=this_start_pos+src_pos;if(!TextSearchLowLevel.binarySearch(this._m_BufEOLByHyphenPos,src_pos)&&!TextSearchLowLevel.binarySearch(this._m_BufRegByHyphenPos,src_pos)){search_again_flag=
!0;break}}if(search_again_flag)continue;$enum1=found_start_itr-0;for(var range_end=found_end_itr-0-1,itr=src_pos=this._lowerBound(this._m_BufRegByHyphenPos,$enum1);itr!==buf_reg_hyphen_end;++itr){var pos=this._m_BufRegByHyphenPos[itr];if(pos>=$enum1&&pos<range_end&&(src_pos=pos-this_start_pos,!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,src_pos))){search_again_flag=!0;break}if(pos>=range_end)break}if(search_again_flag)continue;for(itr=src_pos=this._lowerBound(this._m_BufEOLByHyphenPos,$enum1);itr!==
buf_eol_hyphen_end;++itr){pos=this._m_BufEOLByHyphenPos[itr];if(pos>=$enum1&&pos<range_end&&(src_pos=pos-this_start_pos,!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,src_pos))){search_again_flag=!0;break}if(pos>=range_end)break}if(search_again_flag)continue}else continue;else if(this._m_BufRegByHyphenPos.length)for($enum1=found_start_itr-0,range_end=found_end_itr-0-1,buf_reg_hyphen_end=this._m_BufRegByHyphenPos.length,itr=src_pos=this._lowerBound(this._m_BufRegByHyphenPos,$enum1);itr!==buf_reg_hyphen_end&&
(pos=this._m_BufRegByHyphenPos[itr],pos>=$enum1&&pos<range_end||!(pos>=range_end));++itr);if(this.isWholeWordOn()){if(0!==found_start_itr&&(pos=found_start_itr-0-1,!(TextSearchLowLevel.binarySearch(this._m_BufEOLByHyphenPos,pos)||TextSearchLowLevel.binarySearch(this._m_BufRegByHyphenPos,pos)||this._isBreakSymbol(this._m_Contents_Src.charAt(found_start_itr))||this._isBreakSymbol(this._m_Contents_Src.charAt(found_start_itr-1)))))continue;if(found_end_itr!==end_buf_itr&&(pos=found_end_itr-0-1,!(TextSearchLowLevel.binarySearch(this._m_BufEOLByHyphenPos,
pos)||TextSearchLowLevel.binarySearch(this._m_BufRegByHyphenPos,pos)||this._isBreakSymbol(this._m_Contents_Src.charAt(found_end_itr-1))||this._isBreakSymbol(this._m_Contents_Src.charAt(found_end_itr)))))continue}break}return new _ResultFindTexts__WEBPACK_IMPORTED_MODULE_8__.a("",found_start_itr,found_end_itr,"",-1,-1)};TextSearchLowLevel.prototype._isBreakSymbol=function(c){return this._m_BreakSymbols[c]?!0:this._isWhitespace(c)||this._isPunctuation(c)};TextSearchLowLevel.prototype._lowerBound=function(int_list,
val){var pos=int_list.indexOf(val);TextSearchLowLevel.binarySearch(int_list,val);0>pos&&(pos=~pos);return pos};TextSearchLowLevel.prototype._normalizeUnicode=function(s){s=s.charCodeAt(0);if(39===s||8217===s)s=39;else if(34===s||8220===s||8221===s)s=34;return String.fromCharCode(s)};TextSearchLowLevel.prototype._isHyphen=function(s){var u=s.charCodeAt(0);return"-"===s||8208===u||8209===u||65293===u||173===u};TextSearchLowLevel.prototype._isComma=function(s){var u=s.charCodeAt(0);return","===s||65292===
u||65294===u};TextSearchLowLevel.prototype._isPunctuation=function(s){var u=s.charCodeAt(0);return 32<u&&48>u||57<u&&65>u||90<u&&97>u||122<u&&127>u||this._isComma(s)||this._isHyphen(s)||173===u||1642<=u&&(1645>=u||8210<=u&&8231>=u||8240<=u&&8269>=u||8592<=u&&9215>=u||12441<=u&&12444>=u||65281<=u&&65291>=u||65295===u||65306<=u&&65312>=u||65344===u||65371<=u&&65374>=u)?!0:!1};TextSearchLowLevel.prototype._isWhitespace=function(s){s=s.charCodeAt(0);return 32===s||1<=s&&31>=s||160===s||8192<=s&&(8207>=
s||8232<=s&&8239>=s||8298<=s&&8303>=s)?!0:!1};TextSearchLowLevel.prototype._constructPageBuf=function(page_itr){if(0>page_itr||page_itr>=this._m_Pages.length)return!1;this._m_Contents_PDF=this._m_Contents_Src="";Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_Src_PDF_Map);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_BufEOLByHyphenPos);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_BufRegByHyphenPos);var highlight_on=this.isHighlightOn(),
temp_offsets=[],quads=[];if(highlight_on){var spi=this._m_Pages[page_itr].text;if(null===spi||!spi.ready())return!1;page_itr=spi.getStr();temp_offsets=spi.getOffsets();quads=spi.getQuads();Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_ContentOffsets);this._m_SaveContentQuads&&Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_ContentQuads)}else{spi=this._m_Pages[page_itr].text;if(null===spi||!spi.ready())return!1;page_itr=spi.getStr()}if(0>=page_itr.length)return!1;
spi="";for(var sz=page_itr.length,max_off=-1,punctuationRegex=/^[.,:!?]/,i=0;i<sz;++i){var c=page_itr.charAt(i),off=-1;highlight_on&&(off=temp_offsets[i]);if("\n"===c){c=i-1;for(var prevChar=page_itr.charAt(c);0<=c&&" "===page_itr.charAt(c);)--c,prevChar=page_itr.charAt(c);if(!(0>c||this._isHyphen(page_itr.charAt(c)))){for(c=i+1;c<sz&&" "===page_itr.charAt(c);)++c;c>=sz||this._isHyphen(page_itr.charAt(c))&&0<c&&!prevChar.match(punctuationRegex)||(spi+=" ",this._m_Src_PDF_Map.push(this._m_Contents_PDF.length),
this._m_Contents_PDF+=" ",highlight_on&&(max_off=max_off<off?off:max_off,this._addHighlightInfo(off,quads,8*i)))}}else" "===c?i<sz-1&&("\n"===page_itr.charAt(i+1)||" "===page_itr.charAt(i+1))||(spi+=c,this._m_Src_PDF_Map.push(this._m_Contents_PDF.length),this._m_Contents_PDF+=c,highlight_on&&(max_off=max_off<off?off:max_off,this._addHighlightInfo(off,quads,8*i))):(this._isHyphen(c)?this._m_HyphenSrcOnly||this.isRegexSearchOn()?(spi+=this._normalizeUnicode(c),this._m_Src_PDF_Map.push(this._m_Contents_PDF.length)):
(prevChar=spi.length-1,i<sz-1&&"\n"===page_itr.charAt(i+1)?this._m_BufEOLByHyphenPos.push(prevChar):this._m_BufRegByHyphenPos.length&&prevChar===this._m_BufRegByHyphenPos[this._m_BufRegByHyphenPos.length-1]||this._m_BufRegByHyphenPos.push(prevChar)):(spi+=this._normalizeUnicode(c),this._m_Src_PDF_Map.push(this._m_Contents_PDF.length)),this._m_Contents_PDF+=c,highlight_on&&(max_off=max_off<off?off:max_off,this._addHighlightInfo(off,quads,8*i)))}Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(spi.length===
this._m_Src_PDF_Map.length);this._m_Contents_Src=spi;if(highlight_on){sz=this._m_ContentOffsets.length;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_11__.b)(this._m_OffsetMissing);for(i=0;i<max_off+1;++i)this._m_OffsetMissing.push(!0);for(i=0;i<sz;++i)off=this._m_ContentOffsets[i],0<=off&&(this._m_OffsetMissing[off]=!1)}this.isCaseSensitiveOn()||this.isRegexSearchOn()||(this._m_Contents_Src=this._m_Contents_Src.toLowerCase());highlight_on=function(a,b){return a-b};this._m_BufEOLByHyphenPos.sort(highlight_on);
this._m_BufRegByHyphenPos.sort(highlight_on);this._m_SrcHyphenPos.sort(highlight_on);return!0};TextSearchLowLevel.prototype._addHighlightInfo=function(off,quads,start){this._m_ContentOffsets.push(off);if(this._m_SaveContentQuads)for(off=start;off<start+8;++off)this._m_ContentQuads.push(quads[off])};TextSearchLowLevel.prototype._determineOriRange=function(_s,_e,s,e,match_size){s?(_s=this._m_Src_PDF_Map[s-1],++_s):_s=0;e<this._m_Src_PDF_Map.length?_e=this._m_Src_PDF_Map[e]:(_e=this._m_Src_PDF_Map[e-
1],_e===this._m_Contents_PDF.length-1&&++_e);Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(_s>=s&&_e>=e&&_e>=_s);if(!this._m_HyphenSrcOnly){if(!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,match_size-1))for(;0<_e&&this._isHyphen(this._m_Contents_PDF.charAt(_e-1));)--_e;s=this._m_Contents_PDF.length;if(!TextSearchLowLevel.binarySearch(this._m_SrcHyphenPos,-1))for(;_s<s-1&&this._isHyphen(this._m_Contents_PDF.charAt(_s));)++_s;_e<_s&&(Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(!1),_e=_s)}return new _ResultDetermineOriRange__WEBPACK_IMPORTED_MODULE_7__.a(_s,
_e)};TextSearchLowLevel.prototype._continousInPDF=function(offset,start,end){Object(logger__WEBPACK_IMPORTED_MODULE_1__.a)(0<=start&&start<=end&&start<offset.length&&end<offset.length);start=offset[start];offset=offset[end];if(start===offset||start+1===offset)return!0;for(end=!0;0<=start&&start<offset-1;)if(!this._m_OffsetMissing[++start]){end=!1;break}return end};return TextSearchLowLevel})()},function(module,__webpack_exports__,__webpack_require__){function createPageEndEvent(pageNumber){return{ambientStr:"",
resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:pageNumber,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.PAGE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:pageNumber}}var tslib__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3),_SearchMode__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7),_ResultCode__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(16),_Quad__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12),_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__=
__webpack_require__(102),_constants_events__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(33);(function(){function PDFTextSearch(){var _this=this;this.onSearchCallback=function(){};this.isSearchUpOn=!1;this.currentSearchID=this.currentPage=0;this.searchBatchSize=50;this.initialSearchResultForSearchUp=this.initialSearchResultForSearchDown=this.lastSearch=null;Object(_namespaces_Core_Workers_BackendType__WEBPACK_IMPORTED_MODULE_4__.a)().then(function(type){_this.isUsingThreadedWorkers="wasm-threads"===
type})}PDFTextSearch.prototype.cancelSearch=function(){this.currentSearchID++};PDFTextSearch.prototype.shouldStopSearching=function(searchID){return searchID!==this.currentSearchID};PDFTextSearch.prototype.resultCallBack=function(results,searchID){var _this=this;results.forEach(function(result){var _a,_b,_c;if(!_this.shouldStopSearching(searchID)){_this.resultFound=!0;for(_this.doc.getDocumentViewer().viewerPageManager.setPageSelectedText(result.page_num-1,result.out_str);!_this.isSearchUpOn&&_this.currentPage<
result.page_num||_this.isSearchUpOn&&_this.currentPage>result.page_num;)_this.onSearchCallback(createPageEndEvent(_this.currentPage)),_this.isSearchUpOn?_this.currentPage--:_this.currentPage++;var pageMatrix=_this.doc.getPages()[result.page_num-1].matrix,quads=[];(null===(_a=result.highlights)||void 0===_a?0:_a.length)&&result.highlights.forEach(function(highlight){highlight.quads.forEach(function(q){pageMatrix.transformQuad(q);var quad=new _Quad__WEBPACK_IMPORTED_MODULE_3__.a;quad.x1=q[0];quad.x2=
q[2];quad.x3=q[4];quad.x4=q[6];quad.y1=q[1];quad.y2=q[3];quad.y3=q[5];quad.y4=q[7];quads.push(quad)})});var isRTL=_this.doc.getDocumentViewer().testForRightToLeft(_this.searchPattern);_a=isRTL?null===(_b=result.out_str)||void 0===_b?void 0:_b.split("").reverse().join(""):result.out_str;_b=isRTL?null===(_c=result.ambient_str)||void 0===_c?void 0:_c.replace(result.out_str,_a):result.ambient_str;result={ambientStr:_b||"",resultStr:_a||"",resultStrStart:result.ambient_str?result.first_idx_within_ambient_str:
-1,resultStrEnd:result.ambient_str?result.first_idx_within_ambient_str+result.out_str.length:-1,pageNum:result.page_num,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.FOUND,quads:quads,ambient_str:_b||"",result_str:_a,result_str_start:result.ambient_str?result.ambient_str.indexOf(result.out_str):-1,result_str_end:result.ambient_str?result.ambient_str.indexOf(result.out_str)+result.out_str.length:-1,page_num:result.page_num};_this.onSearchCallback(result)}})};PDFTextSearch.prototype.fireRemainingEvents=
function(lastPageNumber,startPage,endPage){for(;!this.isSearchUpOn&&lastPageNumber<=endPage||this.isSearchUpOn&&lastPageNumber>=startPage;)this.onSearchCallback(createPageEndEvent(lastPageNumber)),this.isSearchUpOn?lastPageNumber--:lastPageNumber++;this.onSearchCallback({ambientStr:"",resultStr:"",resultStrStart:-1,resultStrEnd:-1,pageNum:0,resultCode:_ResultCode__WEBPACK_IMPORTED_MODULE_2__.a.DONE,quads:[],ambient_str:"",result_str:"",result_str_start:-1,result_str_end:-1,page_num:0})};PDFTextSearch.prototype.searchDown=
function(results,start,end){1!==start&&this.initialSearchResultForSearchDown||(this.initialSearchResultForSearchDown=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1}));if(!this.lastSearch||this.lastSearch.page_num<start)this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1});else{var currentPage=this.lastSearch.page_num;currentPage===this.initialSearchResultForSearchDown.page_num&&
(this.initialSearchResultForSearchDown=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1}));start=results.filter(function(rs){return rs.page_num===currentPage});if(start.length){var nextIndex=this.lastSearch.index+1;this.lastSearch.searchUp&&(nextIndex=start.length-this.lastSearch.index);nextIndex===start.length?(start=results.filter(function(result){return result.page_num>currentPage}),this.lastSearch=currentPage!==end&&start.length?
Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},start[0]),{searchUp:!1}):this.initialSearchResultForSearchDown):this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:nextIndex},start[nextIndex]),{searchUp:!1})}else this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!1})}};PDFTextSearch.prototype.isSearchUp=
function(results,start,end){end!==this.doc.getPageCount()&&this.initialSearchResultForSearchUp||(this.initialSearchResultForSearchUp=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0}));if(!this.lastSearch||this.lastSearch.page_num>end)this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0});else{var currentPage=this.lastSearch.page_num;currentPage===
this.initialSearchResultForSearchUp.page_num&&(this.initialSearchResultForSearchUp=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0}));end=results.filter(function(rs){return rs.page_num===currentPage});if(end.length){var nextIndex=this.lastSearch.index+1;this.lastSearch.searchUp||(nextIndex=end.length-this.lastSearch.index);nextIndex===end.length?(end=results.filter(function(result){return result.page_num<currentPage}),this.lastSearch=
currentPage!==start&&end.length?Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},end[0]),{searchUp:!0}):this.initialSearchResultForSearchUp):this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:nextIndex},end[nextIndex]),{searchUp:!0})}else this.lastSearch=Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)(Object(tslib__WEBPACK_IMPORTED_MODULE_0__.a)({index:0},results[0]),{searchUp:!0})}};PDFTextSearch.prototype.getLatestSearch=
function(results,start,end){this.isSearchUpOn?this.isSearchUp(results,start,end):this.searchDown(results,start,end)};PDFTextSearch.prototype.searchTillDone=function(start,end,searchID){var _this=this;if(start>end)return this.fireRemainingEvents(this.currentPage,this.searchStartPage,this.searchEndPage),Promise.resolve(!0);var searchStart=this.isSearchUpOn?Math.max(start,end-this.searchBatchSize):start,searchEnd=this.isSearchUpOn?end:Math.min(start+this.searchBatchSize,end);return this.doc.textSearch(this.searchPattern,
this.searchMode,searchStart,searchEnd).then(function(results){if(_this.shouldStopSearching(searchID))return Promise.resolve(!1);if(!_this.isFullSearch&&0<results.length)return _this.getLatestSearch(results,start,end),_this.resultCallBack([_this.lastSearch],searchID),Promise.resolve(!0);_this.resultCallBack(results,searchID);var searchNextBatch=function(){return _this.pauseSearch&&!_this.isUsingThreadedWorkers?new Promise(function(resolve){_this.doc.getDocumentViewer().addEventListener(_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,
function(){_this.pauseSearch=!1;resolve(searchNextBatch())},{once:!0})}):_this.isSearchUpOn?_this.searchTillDone(start,searchStart-1,searchID):_this.searchTillDone(searchEnd+1,end,searchID)};return searchNextBatch()})};PDFTextSearch.prototype.convertMode=function(mode){var newMode=0;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD|mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.REGEX?newMode|1:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?newMode|
2:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WHOLE_WORD?newMode|4:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP?newMode|8:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.PAGE_STOP?newMode|16:newMode;newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.HIGHLIGHT?newMode|32:newMode;return newMode=mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.AMBIENT_STRING?newMode|64:newMode};PDFTextSearch.prototype.setSearchBatchSize=function(searchBatchSize){this.searchBatchSize=
searchBatchSize};PDFTextSearch.prototype.updateSearchPageInfo=function(startPage,endPage,doc,isMatching){var currentPage=this.lastSearch.page_num;switch(!0){case isMatching&&this.isSearchUpOn:this.searchStartPage=startPage||1;this.searchEndPage=1===currentPage?doc.getPageCount():currentPage;break;case isMatching&&!this.isSearchUpOn:this.searchStartPage=currentPage===doc.getPageCount()?1:currentPage;this.searchEndPage=endPage||doc.getPageCount();break;case !isMatching:this.searchStartPage=1,this.initialSearchResultForSearchUp=
this.initialSearchResultForSearchDown=this.lastSearch=null,this.searchEndPage=doc.getPageCount()}};PDFTextSearch.prototype.search=function(doc,pattern,mode,start_page,end_page,onSearchCallback,isFullSearch){var _this=this;this.currentSearchID++;this.resultFound=!1;this.doc&&this.doc!==doc||(doc.getDocumentViewer().addEventListener(_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.BEGIN_RENDERING,function(){_this.pauseSearch=!0}),doc.getDocumentViewer().addEventListener(_constants_events__WEBPACK_IMPORTED_MODULE_5__.DocumentViewerEvents.FINISHED_RENDERING,
function(){_this.pauseSearch=!1}));this.doc=doc;this.onSearchCallback=onSearchCallback;this.isSearchUpOn=!!(mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.SEARCH_UP);this.isFullSearch=isFullSearch;this.searchPattern=pattern;mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.WILD_CARD&&(this.searchPattern=pattern.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replaceAll("**","[TEMPEscape]").replaceAll("*","[A-z]*").replaceAll("[TEMPEscape]","\\*"));this.searchPattern=this.searchPattern.replaceAll("\n","");this.searchMode=
this.convertMode(mode);!isFullSearch&&this.lastSearch?mode&_SearchMode__WEBPACK_IMPORTED_MODULE_1__.a.CASE_SENSITIVE?this.updateSearchPageInfo(start_page,end_page,doc,pattern===this.lastSearch.out_str):this.updateSearchPageInfo(start_page,end_page,doc,pattern.toLocaleLowerCase()===this.lastSearch.out_str.toLocaleLowerCase()):(this.searchStartPage=start_page||1,this.searchEndPage=doc.getPageCount());this.currentPage=this.isSearchUpOn?this.searchEndPage:this.searchStartPage;return this.searchTillDone(this.searchStartPage,
this.searchEndPage,this.currentSearchID)};return PDFTextSearch})()},function(module,__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(14),_Quad__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12),_Matrix2D__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(13),_TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(44),_Point2D__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(19),
_ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(45),_selectionInfo__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(1),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(4);(function(){function TextLocator(doc){this._m_Str="";this._m_PrePage=-1;this._m_Quads=[];this._m_Texts="";this._m_Pages=doc.getPages();this._m_Words=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.b;this._m_Words.initDefault();this._m_Blocks=[];this._m_Surrtxts=[];this._m_Selidxs=
[];this._m_Direction=0;this._m_Horizontal=!1}TextLocator.prototype.getQuads=function(){for(var sz=this._m_Quads.length/8,quads=[],i=0;i<sz;++i){var q=new _Quad__WEBPACK_IMPORTED_MODULE_2__.a,pos=8*i;q._setCoordinates(this._m_Quads[pos],this._m_Quads[pos+1],this._m_Quads[pos+2],this._m_Quads[pos+3],this._m_Quads[pos+4],this._m_Quads[pos+5],this._m_Quads[pos+6],this._m_Quads[pos+7]);quads.push(q)}return quads};TextLocator.prototype.getTexts=function(){return this._m_Texts};TextLocator.prototype._isWhitespace=
function(s){s=s.charCodeAt(0);return 32===s||1<=s&&31>=s||160===s||8192<=s&&(8207>=s||8232<=s&&8239>=s||8298<=s&&8303>=s)?!0:!1};TextLocator.prototype._selectByRect=function(page_number,sel_rect){--page_number;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";sel_rect.normalize();for(var page_texts=[],all_pages_str="",i,i_1=page_number-1;i_1<page_number+2;i_1++)this._performMiscPageSetup(i_1)&&(page_texts.push({idx:i_1,txt:this._m_Str}),all_pages_str+=this._m_Str);
if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_number))return!1;i_1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;var quad=Array(8),line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var to_append=[],new_line_start=!1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(i_1),i_1.normalize(),!sel_rect.notIntersect(i_1)){var tmp_selidxs=
[null,null],tmp_surrtxts=[null,null],first_selected_glyph_index=-1;var num_chars=-1;for(i=line.getFirstWord();!i.equal(wend);i=i.getNextWord())if(i.getQuad(quad),i_1.setFromQuad(quad),!sel_rect.notIntersect(i_1)){num_chars=i.getStringLen();var str_id=i.getStringPos();-1===first_selected_glyph_index&&(first_selected_glyph_index=str_id);var k=to_append.length;if(0<num_chars&&0<k){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[k-1])?to_append[k-1]="\n":to_append.push("\n")),new_line_start=
!1);for(k=0;k<to_append.length;++k)this._m_Texts+=to_append[k];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}for(k=0;k<=num_chars;++k)str_id+k<this._m_Str.length&&(k<num_chars?this._m_Texts+=this._m_Str.charAt(str_id+k):to_append.push(this._m_Str.charAt(str_id+k)));if(0<num_chars){k=i_1.x2-i_1.x1;var y=i_1.y2-i_1.y1;this._storeQuad(quad,Math.sqrt(k*k+y*y)/num_chars*3)}num_chars=str_id+num_chars}new_line_start=!0;tmp_selidxs[0]=first_selected_glyph_index;for(i=first_selected_glyph_index=
0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=tmp_selidxs[0];break}else page_texts[i].idx<page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_glyph_index-100),first_selected_glyph_index);if(-1!==num_chars){tmp_selidxs[1]=num_chars;for(i=first_selected_glyph_index=0;i<page_texts.length;i++)if(page_texts[i].idx===page_number){first_selected_glyph_index+=num_chars;break}else page_texts[i].idx<
page_number&&(first_selected_glyph_index+=page_texts[i].txt.length);tmp_surrtxts[1]=all_pages_str.substr(first_selected_glyph_index+1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<this._m_Quads.length};TextLocator.prototype._cmptTextDirection=function(){var line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var q1=Array(8),q2=Array(8),histogram=
[0,0,0,0];for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine()){var g1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,g2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var w1=line.getFirstWord(),w2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;w2.initDefault();for(var word=line.getFirstWord();!word.equal(wend);word=word.getNextWord())w2=word;w1.getGlyphQuad(0,q1);g1.x=(q1[0]+q1[2]+q1[4]+
q1[6])/4;g1.y=(q1[1]+q1[3]+q1[5]+q1[7])/4;w2.getGlyphQuad(w2.getNumGlyphs()-1,q2);g2.x=(q2[0]+q2[2]+q2[4]+q2[6])/4;g2.y=(q2[1]+q2[3]+q2[5]+q2[7])/4;wend=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.distance(g1,g2);g1=Math.floor(2*Math.atan2(g2.y-g1.y,g2.x-g1.x)/Math.PI+.5);0>g1&&(g1+=4);histogram[g1]+=wend}line=0;lend=histogram[0];for(q1=1;4>q1;q1++)histogram[q1]>lend&&(line=q1,lend=histogram[q1]);this._m_Direction=90*line;this._m_Horizontal=2>Math.abs(this._m_Direction)||2>Math.abs(this._m_Direction-
180)};TextLocator.prototype.selectGlyphsByRect=function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";sel_rect.normalize();var page_texts=[],all_pages_str="",i;for(i=page_idx-1;i<page_idx+2;i++)this._performMiscPageSetup(i)&&(page_texts.push({idx:i,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,
quad=Array(8),k,line,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var word,wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var to_append=[],new_line_start=!1;for(line=this._m_Words.getFirstLine();!line.equal(lend);line=line.getNextLine())if(line.getBBox(bbox),bbox.normalize(),!sel_rect.notIntersect(bbox)){var tmp_selidxs=[null,null],tmp_surrtxts=[null,null],last_selected_glyph_index=-1,first_selected_word_on_line=!0;for(word=line.getFirstWord();!word.equal(wend);word=
word.getNextWord())if(word.getQuad(quad),bbox.setFromQuad(quad),!sel_rect.notIntersect(bbox)){var num_chars=word.getStringLen();var str_id=word.getStringPos(),sz=to_append.length;if(0<num_chars&&0<sz){new_line_start&&("\n"!==to_append[0]&&(this._isWhitespace(to_append[sz-1])?to_append[sz-1]="\n":to_append.push("\n")),new_line_start=!1);for(i=0;i<to_append.length;++i)this._m_Texts+=to_append[i];Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(to_append)}sz=0;var front_chop=Array(8),back_chop=
Array(8),front_chop_flag=!1,back_chop_flag=!1;for(k=0;k<num_chars;++k){var current_glyph_idx_in_pg_txt=str_id+k;if(current_glyph_idx_in_pg_txt<this._m_Str.length){i=Array(8);var ch_bbox=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;word.getGlyphQuad(k,i);ch_bbox.setFromQuad(i);if(sel_rect.notIntersect(ch_bbox))0===sz?front_chop_flag=!0:back_chop_flag=!0;else{last_selected_glyph_index=current_glyph_idx_in_pg_txt;sz++;if(1===sz){if(first_selected_word_on_line){tmp_selidxs[0]=current_glyph_idx_in_pg_txt;
for(i=first_selected_word_on_line=0;i<page_texts.length;i++)if(page_texts[i].idx===page_idx){first_selected_word_on_line+=current_glyph_idx_in_pg_txt;break}else page_texts[i].idx<page_idx&&(first_selected_word_on_line+=page_texts[i].txt.length);tmp_surrtxts[0]=all_pages_str.substring(Math.max(0,first_selected_word_on_line-100),first_selected_word_on_line);first_selected_word_on_line=!1}front_chop_flag&&word.getGlyphQuad(k,front_chop)}word.getGlyphQuad(k,back_chop);k<num_chars?this._m_Texts+=this._m_Str.charAt(current_glyph_idx_in_pg_txt):
to_append.push(this._m_Str.charAt(current_glyph_idx_in_pg_txt))}}}"\n"!==to_append[num_chars]&&to_append.push(" ");0<sz&&(front_chop_flag&&this._chopQuad(quad,front_chop,!0),back_chop_flag&&this._chopQuad(quad,back_chop,!1),bbox.setFromQuad(quad),num_chars=bbox.x2-bbox.x1,str_id=bbox.y2-bbox.y1,this._storeQuad(quad,Math.sqrt(num_chars*num_chars+str_id*str_id)/sz*3))}new_line_start=!0;if(-1!==last_selected_glyph_index){tmp_selidxs[1]=last_selected_glyph_index;for(i=word=0;i<page_texts.length;i++)if(page_texts[i].idx===
page_idx){word+=last_selected_glyph_index;break}else page_texts[i].idx<page_idx&&(word+=page_texts[i].txt.length);tmp_surrtxts[1]=all_pages_str.substr(word+1,100)}null!==tmp_selidxs[0]&&null!==tmp_selidxs[1]&&this._m_Selidxs.push(tmp_selidxs);null!==tmp_surrtxts[0]&&null!==tmp_surrtxts[1]&&this._m_Surrtxts.push(tmp_surrtxts)}return 0<this._m_Quads.length};TextLocator.prototype.getRectangularSelectionFromSurroundingTexts=function(input_page_idx,surrounding_text_pairs,text_to_match){for(var quads=[],
output_page_idx=-1,found_text="",i=0;i<surrounding_text_pairs.length;i++){var result=this.getStructuralSelectionFromSurroundingTexts(input_page_idx,surrounding_text_pairs[i][0],surrounding_text_pairs[i][1]);if(result.status)-1!==output_page_idx||void 0===result.pgidx||null===result.pgidx||isNaN(result.pgidx)||(output_page_idx=result.pgidx),result.pgidx===output_page_idx&&Array.prototype.push.apply(quads,result.value),found_text+=this._m_Texts;else break}-1===output_page_idx&&(output_page_idx=0);return 0===
quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads,pgidx:output_page_idx}};TextLocator.prototype.getStructuralSelectionFromSurroundingTexts=function(page_idx,pre_text,post_text,text_to_match){if(20>=pre_text.length||20>=post_text.length)return{status:!1};var page_texts=[],all_pages_str="",chunk_relative_whitespace_indices=[],remove_whitespace=!0,last_iterated_page_text_end_index=0,i,j;for(i=page_idx-1;i<page_idx+2;i++)if(this._performMiscPageSetup(i))if(page_texts.push({idx:i,
txt:this._m_Str}),all_pages_str+=this._m_Str,null!==this._m_Pages[i].text._m_Whitespace_Indices){for(j=0;j<this._m_Pages[i].text._m_Whitespace_Indices.length;j++)chunk_relative_whitespace_indices.push(this._m_Pages[i].text._m_Whitespace_Indices[j]+last_iterated_page_text_end_index);last_iterated_page_text_end_index+=this._m_Str.length}else remove_whitespace=!1;if(0===page_texts.length||0===all_pages_str.length)return{status:!1};last_iterated_page_text_end_index=[];i=0;remove_whitespace?(page_idx=
all_pages_str.replace(/( |\n)/gm,""),pre_text=pre_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str;for(;!(0===page_idx.length||page_idx.length<pre_text.length||(j=page_idx.indexOf(pre_text),0>j));)last_iterated_page_text_end_index.push(i+j+pre_text.length),page_idx=page_idx.substr(j+1),i+=j+1;if(0===last_iterated_page_text_end_index.length)return{status:!1};pre_text=[];i=last_iterated_page_text_end_index[0]+1;remove_whitespace?(page_idx=all_pages_str.replace(/( |\n)/gm,"").substring(last_iterated_page_text_end_index[0]+
1),post_text=post_text.replace(/( |\n)/gm,"")):page_idx=all_pages_str.substring(last_iterated_page_text_end_index[0]+1);for(;!(0===page_idx.length||page_idx.length<post_text.length||(j=page_idx.indexOf(post_text),0>j));)pre_text.push(i+j),page_idx=page_idx.substr(j+1),i+=j+1;if(0===pre_text.length)return{status:!1};post_text=[];for(i=0;i<last_iterated_page_text_end_index.length;i++)for(page_idx=0;page_idx<pre_text.length;page_idx++)if(last_iterated_page_text_end_index[i]+1<=pre_text[page_idx]&&(j=
[],j.push(last_iterated_page_text_end_index[i]),j.push(pre_text[page_idx]),post_text.push(j)),1<post_text.length)return{status:!1};if(1!==post_text.length)return{status:!1};if(remove_whitespace){for(i=0;i<chunk_relative_whitespace_indices.length&&!(post_text[0][0]<chunk_relative_whitespace_indices[i]);i++)post_text[0][0]++;for(i=0;i<chunk_relative_whitespace_indices.length&&!(post_text[0][1]<chunk_relative_whitespace_indices[i]);i++)post_text[0][1]++}remove_whitespace=[0,0];chunk_relative_whitespace_indices=
-1;for(i=last_iterated_page_text_end_index=0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][0]>=last_iterated_page_text_end_index&&post_text[0][0]<last_iterated_page_text_end_index+pre_text.length){chunk_relative_whitespace_indices=page_texts[i].idx;remove_whitespace[0]=post_text[0][0]-last_iterated_page_text_end_index;break}last_iterated_page_text_end_index+=pre_text.length}if(-1===chunk_relative_whitespace_indices)return{status:!1};page_idx=-1;for(i=last_iterated_page_text_end_index=
0;i<page_texts.length;i++){pre_text=page_texts[i].txt;if(post_text[0][1]>=last_iterated_page_text_end_index&&post_text[0][1]<last_iterated_page_text_end_index+pre_text.length){page_idx=page_texts[i].idx;remove_whitespace[1]=post_text[0][1]-last_iterated_page_text_end_index;break}last_iterated_page_text_end_index+=pre_text.length}if(-1===page_idx)return{status:!1};if(chunk_relative_whitespace_indices===page_idx){all_pages_str=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,
remove_whitespace[0],remove_whitespace[1]-1);if(all_pages_str.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};all_pages_str.pgidx=chunk_relative_whitespace_indices;return all_pages_str}return{status:!1}}for(i=0;i<page_texts.length&&page_texts[i].idx!==chunk_relative_whitespace_indices;i++);page_texts=this.getStructuralSelectionFromTextIndices(chunk_relative_whitespace_indices,remove_whitespace[0],page_texts[i].txt.length-1);this._m_Texts=
all_pages_str.substring(post_text[0][0],post_text[0][1]);if(page_texts.status){if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};page_texts.pgidx=chunk_relative_whitespace_indices;return page_texts}return{status:!1}};TextLocator.prototype.getRectangularSelectionFromTextIndices=function(page_idx,index_pairs,text_to_match){for(var quads=[],found_text="",i=0;i<index_pairs.length;i++){var i1=Number(index_pairs[i][0]),i2=Number(index_pairs[i][1]);
if(isNaN(i1)||isNaN(i2))return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("getRectangularSelectionFromTextIndices: could not parse index-based selectors as numbers."),{status:!1};i1=this.getStructuralSelectionFromTextIndices(page_idx,i1,i2);if(i1.status)Array.prototype.push.apply(quads,i1.value),found_text+=this._m_Texts;else return{status:!1}}return 0===quads.length||found_text.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,"")?{status:!1}:{status:!0,value:quads}};TextLocator.prototype.getStructuralSelectionFromTextIndices=
function(page_idx,start_index,end_index,text_to_match){if(!this._performMiscPageSetup(page_idx))return{status:!1};var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();page_idx=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;page_idx.initDefault();this._m_Texts=this._m_Str.substring(start_index,Math.min(end_index+1,this._m_Str.length));if(text_to_match&&this._m_Texts.replace(/( |\n)/gm,"")!==text_to_match.replace(/( |\n)/gm,""))return{status:!1};text_to_match=0;for(var first_line_in_block,
last_line_in_block;;){if(text_to_match>=this._m_Blocks.length)return{status:!1};first_line_in_block=this._m_Blocks[text_to_match]._m_first_line;last_line_in_block=this._m_Blocks[text_to_match]._m_last_line;if(last_line_in_block.getLastWord().getStringPos()+last_line_in_block.getLastWord().getNumGlyphs()>=start_index&&first_line_in_block.getFirstWord().getStringPos()<=start_index)break;text_to_match++}for(var start_block=this._m_Blocks[text_to_match],start_line=start_block._m_first_line;;){if(start_line.equal(page_idx))return{status:!1};
if(this._sameDirection(start_line.getDirection())){if(start_line.getLastWord().getStringPos()+start_line.getLastWord().getNumGlyphs()>=start_index&&start_line.getFirstWord().getStringPos()<=start_index)break;if(start_line.equal(start_block._m_last_line)||start_line.equal(page_idx))return{status:!1};start_line=start_line.getNextLine()}}for(var start_word=start_line.getFirstWord();;){if(start_word.equal(wend))return{status:!1};if(start_word.getStringPos()+start_word.getNumGlyphs()>=start_index&&start_word.getStringPos()<=
start_index)break;start_word=start_word.getNextWord()}for(var end_block_idx=0;;){if(end_block_idx>=this._m_Blocks.length)return{status:!1};first_line_in_block=this._m_Blocks[end_block_idx]._m_first_line;last_line_in_block=this._m_Blocks[end_block_idx]._m_last_line;if(last_line_in_block.getLastWord().getStringPos()+last_line_in_block.getLastWord().getNumGlyphs()>=end_index&&first_line_in_block.getFirstWord().getStringPos()<=end_index)break;end_block_idx++}for(var end_line=this._m_Blocks[end_block_idx]._m_first_line;;){if(end_line.equal(page_idx))return{status:!1};
if(this._sameDirection(end_line.getDirection())){if(end_line.getLastWord().getStringPos()+end_line.getLastWord().getNumGlyphs()>=end_index&&end_line.getFirstWord().getStringPos()<=end_index)break;if(end_line.equal(start_block._m_last_line))return{status:!1};end_line=end_line.getNextLine()}}for(start_block=end_line.getFirstWord();;){if(start_block.equal(wend))return{status:!1};if(start_block.getStringPos()+start_block.getNumGlyphs()>=end_index&&start_block.getStringPos()<=end_index)break;start_block=
start_block.getNextWord()}wend=[];for(var rect=Array(4),blocknum=text_to_match;blocknum<=end_block_idx;blocknum++)if(first_line_in_block=this._m_Blocks[blocknum]._m_first_line,last_line_in_block=this._m_Blocks[blocknum]._m_last_line,blocknum===text_to_match&&blocknum!==end_block_idx)for(first_line_in_block=start_line;!first_line_in_block.equal(page_idx);first_line_in_block=first_line_in_block.getNextLine()){if(this._sameDirection(first_line_in_block.getDirection())){var temp_quad=Array(8);first_line_in_block.equal(start_line)?
start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad):(first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]);first_line_in_block.getLastWord().getBBox(rect);temp_quad[2]=rect[2];temp_quad[3]=rect[3];temp_quad[4]=rect[2];temp_quad[5]=rect[1];wend.push(temp_quad);if(first_line_in_block.equal(last_line_in_block))break}}else if(blocknum!==text_to_match&&
blocknum===end_block_idx)for(;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(end_line)?start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad):(first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=
rect[1]),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else if(blocknum===text_to_match&&blocknum===end_block_idx)for(first_line_in_block=start_line;;first_line_in_block=first_line_in_block.getNextLine()){if(first_line_in_block.equal(page_idx))return{status:!1};if(this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.equal(start_line)&&
!first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad),first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]):!first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),start_block.getNumGlyphs()-1),temp_quad),
first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]):first_line_in_block.equal(start_line)&&first_line_in_block.equal(end_line)?(start_word.getGlyphQuadInWordQuadFormat(Math.min(start_index-start_word.getStringPos(),start_word.getNumGlyphs()-1),temp_quad),rect[0]=temp_quad[6],rect[1]=temp_quad[7],rect[2]=temp_quad[2],rect[3]=temp_quad[3],start_block.getGlyphQuadInWordQuadFormat(Math.min(end_index-start_block.getStringPos(),
start_block.getNumGlyphs()-1),temp_quad),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1]):(first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1]),wend.push(temp_quad),first_line_in_block.equal(end_line)))break}else for(;!(first_line_in_block.equal(page_idx)||
this._sameDirection(first_line_in_block.getDirection())&&(temp_quad=Array(8),first_line_in_block.getFirstWord().getBBox(rect),temp_quad[0]=rect[0],temp_quad[1]=rect[3],temp_quad[6]=rect[0],temp_quad[7]=rect[1],first_line_in_block.getLastWord().getBBox(rect),temp_quad[2]=rect[2],temp_quad[3]=rect[3],temp_quad[4]=rect[2],temp_quad[5]=rect[1],wend.push(temp_quad),first_line_in_block.equal(last_line_in_block)));first_line_in_block=first_line_in_block.getNextLine());return{status:!0,value:wend}};TextLocator.prototype.selectByStruct=
function(page_idx,sel_rect){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Quads);this._m_Texts="";for(var page_texts=[],all_pages_str="",i_3=page_idx-1;i_3<page_idx+2;i_3++)this._performMiscPageSetup(i_3)&&(page_texts.push({idx:i_3,txt:this._m_Str}),all_pages_str+=this._m_Str);if(0===page_texts.length||0===all_pages_str.length||!this._performMiscPageSetup(page_idx))return!1;var min_dist1;i_3=Array(8);var qq=Array(8),b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,min_line_dist1=
new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a,min_line_dist2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;min_line_dist1.initDefault();min_line_dist2.initDefault();var is_horiz_line1=this._m_Horizontal,is_horiz_line2=this._m_Horizontal,lend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;lend.initDefault();var wend=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;wend.initDefault();var tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;tmpPoint1.init(sel_rect.x1,sel_rect.y1);
var sel_pt1_y=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;sel_pt1_y.init(sel_rect.x2,sel_rect.y2);tmpPoint1=this._findStructuralBounds(tmpPoint1,sel_pt1_y,min_line_dist1,min_line_dist2);min_line_dist1=tmpPoint1._first_line;min_line_dist2=tmpPoint1._last_line;if(min_line_dist1.equal(lend)||min_line_dist2.equal(lend))return!1;var min_w1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;tmpPoint1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.e;min_w1.initDefault();tmpPoint1.initDefault();var min_dist2=
min_dist1=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){word.getBBox(i_3);if(is_horiz_line1){var sel_pt1_x=sel_rect.x1;sel_pt1_y=sel_rect.y1}else sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=i_3[2],i_3[2]=i_3[3],i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y1,sel_pt1_y=sel_rect.x1;var d=(i_3[3]+i_3[1])/2;if(i_3[2]<=sel_pt1_x){var xd=i_3[2]-sel_pt1_x;d-=sel_pt1_y;d=xd*xd+d*d}else i_3[0]>=sel_pt1_x?
(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d);d<min_dist1&&(min_dist1=d,min_w1=word)}for(word=min_line_dist2.getFirstWord();!word.equal(wend);word=word.getNextWord())word.getBBox(i_3),is_horiz_line2?(sel_pt1_x=sel_rect.x2,sel_pt1_y=sel_rect.y2):(sel_pt1_y=i_3[0],i_3[0]=i_3[1],i_3[1]=sel_pt1_y,sel_pt1_y=i_3[2],i_3[2]=i_3[3],i_3[3]=sel_pt1_y,sel_pt1_x=sel_rect.y2,sel_pt1_y=sel_rect.x2),d=(i_3[3]+i_3[1])/2,i_3[2]<=sel_pt1_x?(xd=i_3[2]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):i_3[0]>=
sel_pt1_x?(xd=i_3[0]-sel_pt1_x,d-=sel_pt1_y,d=xd*xd+d*d):(d-=sel_pt1_y,d*=d),d<min_dist2&&(min_dist2=d,tmpPoint1=word);if(min_w1.equal(wend)||tmpPoint1.equal(wend))return!1;sel_pt1_y=word=0;min_dist2=min_dist1=_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;var gnum=min_w1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<gnum;++sel_pt1_x)min_w1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/4,xd-=sel_rect.x1,d-=sel_rect.y1,d=xd*xd+d*d,d<min_dist1&&
(min_dist1=d,word=sel_pt1_x);gnum=tmpPoint1.getNumGlyphs();for(sel_pt1_x=0;sel_pt1_x<gnum;++sel_pt1_x)tmpPoint1.getGlyphQuad(sel_pt1_x,i_3),xd=(i_3[0]+i_3[2]+i_3[4]+i_3[6])/4,d=(i_3[1]+i_3[3]+i_3[5]+i_3[7])/4,xd-=sel_rect.x2,d-=sel_rect.y2,d=xd*xd+d*d,d<min_dist2&&(min_dist2=d,sel_pt1_y=sel_pt1_x);min_dist1=word+min_w1.getStringPos();min_dist2=sel_pt1_y+tmpPoint1.getStringPos();min_dist2<min_dist1&&(sel_pt1_x=min_dist1,min_dist1=min_dist2,min_dist2=sel_pt1_x);this._m_Selidxs.push([min_dist1,min_dist2]);
d=[null,null];for(sel_pt1_x=xd=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===page_idx){xd+=min_dist1;break}else page_texts[sel_pt1_x].idx<page_idx&&(xd+=page_texts[sel_pt1_x].txt.length);d[0]=all_pages_str.substring(Math.max(0,xd-100),xd);for(sel_pt1_x=min_dist1=0;sel_pt1_x<page_texts.length;sel_pt1_x++)if(page_texts[sel_pt1_x].idx===page_idx){min_dist1+=min_dist2;break}else page_texts[sel_pt1_x].idx<page_idx&&(min_dist1+=page_texts[sel_pt1_x].txt.length);d[1]=all_pages_str.substr(min_dist1+
1,100);null!==d[0]&&null!==d[1]&&this._m_Surrtxts.push(d);all_pages_str=min_line_dist1.getCurrentNum();min_dist2=min_line_dist2.getCurrentNum();page_idx=min_w1.getCurrentNum();page_texts=tmpPoint1.getCurrentNum();if(all_pages_str===min_dist2){page_idx>page_texts&&(all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);if(page_idx===page_texts&&word===sel_pt1_y&&(all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,
!all_pages_str.intersectRect(b,sel_rect)))return!1;page_idx===page_texts?(sel_pt1_y<word&&(all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str),all_pages_str=sel_pt1_y):all_pages_str=min_w1.getStringLen();min_w1.getGlyphQuad(word,i_3);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(is_horiz_line1===is_horiz_line2);is_horiz_line2=min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+
is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<=all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/(all_pages_str+1)*3,this._chopQuad(qq,i_3,!0),page_idx===page_texts&&(sel_rect=Array(8),tmpPoint1.getGlyphQuad(sel_pt1_y,sel_rect),this._chopQuad(qq,sel_rect,!1)),this._storeQuad(qq,is_horiz_line1));
for(word=min_w1=min_w1.getNextWord();!word.equal(wend)&&word.getCurrentNum()<tmpPoint1.getCurrentNum();word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+
is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();if(page_idx!==page_texts){wend=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=sel_pt1_y;++is_horiz_line1)wend+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(wend+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),
is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}}else{all_pages_str>min_dist2&&(is_horiz_line1=min_line_dist1,min_line_dist1=min_line_dist2,min_line_dist2=is_horiz_line1,all_pages_str=min_w1,min_w1=tmpPoint1,tmpPoint1=all_pages_str,all_pages_str=word,word=sel_pt1_y,sel_pt1_y=all_pages_str);min_line_dist1.getBBox(b);
all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(min_w1=min_line_dist1.getFirstWord(),word=0);min_w1.getGlyphQuad(word,i_3);all_pages_str=min_w1.getStringLen();is_horiz_line2=min_w1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(word<=all_pages_str);for(is_horiz_line1=word;is_horiz_line1<=all_pages_str;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));
0<all_pages_str&&(min_w1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!0),this._storeQuad(qq,is_horiz_line1));for(word=min_w1=min_w1.getNextWord();!word.equal(wend);word=word.getNextWord()){all_pages_str=word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+
is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}for(min_line_dist1=min_line_dist1.getNextLine();!min_line_dist1.equal(min_line_dist2)&&!min_line_dist1.equal(lend);min_line_dist1=min_line_dist1.getNextLine())if(this._sameDirection(min_line_dist1.getDirection()))for(min_line_dist1.getBBox(b),
word=min_line_dist1.getFirstWord();!word.equal(wend);word=word.getNextWord()){all_pages_str=word.getStringLen();min_w1=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)min_w1+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(min_w1+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/
all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}min_line_dist2.getBBox(b);all_pages_str=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;all_pages_str.intersectRect(b,sel_rect)||(tmpPoint1=min_line_dist2.getWord(min_line_dist2.getNumWords()-1),sel_pt1_y=tmpPoint1.getNumGlyphs()-1);for(word=min_line_dist2.getFirstWord();!word.equal(wend)&&!word.equal(tmpPoint1);word=word.getNextWord()){all_pages_str=word.getStringLen();sel_rect=word.getStringPos();for(is_horiz_line1=0;is_horiz_line1<=all_pages_str;++is_horiz_line1)sel_rect+
is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(sel_rect+is_horiz_line1));0<all_pages_str&&(word.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._storeQuad(qq,is_horiz_line1))}tmpPoint1.getGlyphQuad(sel_pt1_y,i_3);all_pages_str=tmpPoint1.getStringLen();is_horiz_line2=tmpPoint1.getStringPos();Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(sel_pt1_y<=
all_pages_str);for(is_horiz_line1=0;is_horiz_line1<=sel_pt1_y;++is_horiz_line1)is_horiz_line2+is_horiz_line1<this._m_Str.length&&(this._m_Texts+=this._m_Str.charAt(is_horiz_line2+is_horiz_line1));0<all_pages_str&&(tmpPoint1.getQuad(qq),is_horiz_line1=qq[0]-qq[2],is_horiz_line2=qq[1]-qq[3],is_horiz_line1=Math.sqrt(is_horiz_line1*is_horiz_line1+is_horiz_line2*is_horiz_line2),is_horiz_line1=is_horiz_line1/all_pages_str*3,this._chopQuad(qq,i_3,!1),this._storeQuad(qq,is_horiz_line1))}return 0<this._m_Quads.length};
TextLocator.prototype._performMiscPageSetup=function(page_idx){if(0>page_idx||page_idx>=this._m_Pages.length)return!1;if(0>=this._m_PrePage||this._m_PrePage!==page_idx){var spi=this._m_Pages[page_idx].text;if(null==spi||!spi.ready())return!1;this._m_Words=spi;this._m_Str=this._m_Words.getStr();this._cmptTextDirection();this._cmptBlocks();this._m_PrePage=page_idx}return!0};TextLocator.prototype._storeQuad=function(quad,tra_thresh){var sz=this._m_Quads.length/8;if(sz){var des_q=Array(8);sz=8*(sz-1);
for(i=0;8>i;++i)des_q[i]=this._m_Quads[sz+i];if(_Quad__WEBPACK_IMPORTED_MODULE_2__.a._merge(des_q,quad,1,!0,tra_thresh))for(i=0;8>i;++i)this._m_Quads[sz+i]=des_q[i];else for(i=0;8>i;++i)this._m_Quads.push(quad[i])}else for(var i=0;8>i;++i)this._m_Quads.push(quad[i])};TextLocator.prototype._chopQuad=function(word_quad_to_be_chopped,quad_of_first_or_last_glyph_in_word,is_glyph_first_glyph_in_word){var bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;bottom_left_of_word.init(word_quad_to_be_chopped[0],
word_quad_to_be_chopped[1]);var bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;bottom_right_of_word.init(word_quad_to_be_chopped[2],word_quad_to_be_chopped[3]);var distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,bottom_left_of_word);distance_between_word_start_and_end.normalize()&&(is_glyph_first_glyph_in_word?(bottom_right_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_right_of_word.init(quad_of_first_or_last_glyph_in_word[0],
quad_of_first_or_last_glyph_in_word[1]),quad_of_first_or_last_glyph_in_word=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_right_of_word,bottom_left_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[0]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[1]+=distance_between_word_start_and_end.y,
word_quad_to_be_chopped[6]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[7]+=distance_between_word_start_and_end.y):(bottom_left_of_word=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,bottom_left_of_word.init(quad_of_first_or_last_glyph_in_word[2],quad_of_first_or_last_glyph_in_word[3]),quad_of_first_or_last_glyph_in_word=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(bottom_left_of_word,bottom_right_of_word).dot(distance_between_word_start_and_end),distance_between_word_start_and_end=
_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(distance_between_word_start_and_end,quad_of_first_or_last_glyph_in_word),word_quad_to_be_chopped[2]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[3]+=distance_between_word_start_and_end.y,word_quad_to_be_chopped[4]+=distance_between_word_start_and_end.x,word_quad_to_be_chopped[5]+=distance_between_word_start_and_end.y))};TextLocator.prototype._getTextRotationMatrix=function(angle){var m0=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(0),
m90=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(1.570796325),m180=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265),m270=_Matrix2D__WEBPACK_IMPORTED_MODULE_3__.a.rotationMatrix(3.14159265*1.5);switch(parseInt(angle/90+.1,10)){case 0:return m0;case 1:return m90;case 2:return m180;case 3:return m270;case 4:return m0;default:return m0}};TextLocator.prototype._sameDirection=function(){return!0};TextLocator.prototype._transformToNormalFlow=function(box,angle){angle=this._getTextRotationMatrix(angle);
var tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x1,box.y1);tmpPoint2D=angle.mult(tmpPoint2D);box.x1=tmpPoint2D.x;box.y1=tmpPoint2D.y;tmpPoint2D=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(box.x2,box.y2);tmpPoint2D=angle.mult(tmpPoint2D);box.x2=tmpPoint2D.x;box.y2=tmpPoint2D.y;box.normalize()};TextLocator.prototype._cmptBlocks=function(){Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_8__.b)(this._m_Blocks);var line,end=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.a;end.initDefault();
var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,current_block=new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,block_initialized=!1;for(line=this._m_Words.getFirstLine();!line.equal(end);line=line.getNextLine())if(this._sameDirection(line.getDirection())){line.getBBox(b);b.normalize();var orig_box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;orig_box.initRect(b);this._transformToNormalFlow(b,this._m_Direction);block_initialized?(this._m_Blocks.push(current_block),current_block=
new _TextSelectionBlock__WEBPACK_IMPORTED_MODULE_4__.a,current_block._m_bbox.initRect(orig_box),current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line):(current_block._m_bbox.initRect(orig_box),current_block._m_transformed_bbox.initRect(b),current_block._m_first_line=line,current_block._m_last_line=line,block_initialized=!0)}block_initialized&&this._m_Blocks.push(current_block)};TextLocator.prototype._findLineByPoint=function(block,pt,out_line){out_line=
_selectionInfo_constants__WEBPACK_IMPORTED_MODULE_1__.a.MAX;for(var b=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,best_line=block._m_first_line,line=block._m_first_line;;line=line.getNextLine()){if(!this._sameDirection(line.getDirection()))if(line.equal(block._m_last_line))break;else continue;line.getBBox(b);this._transformToNormalFlow(b,this._m_Direction);var ycenter=(b.y1+b.y2)/2;Math.abs(ycenter-pt.y)<out_line&&(best_line=line,out_line=Math.abs(ycenter-pt.y));if(line.equal(block._m_last_line))break}return out_line=
best_line};TextLocator.prototype.Dist2LineSegmentSquared=function(x1,x2,p){var v=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(x2,x1),w=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x1),c1=w.dot(v);if(0>=c1)return w.dot(w);w=v.dot(v);if(w<=c1)return p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,x2),p.dot(p);x1=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.plus(x1,_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.multiply(v,c1/w));p=_selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c.minus(p,
x1);return p.dot(p)};TextLocator.prototype.Dist2BBox=function(pt,bbox){var d1=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),pt),d2=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y1),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,bbox.y2),pt),d3=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x2,
bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y2),pt);pt=this.Dist2LineSegmentSquared(new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y2),new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c(bbox.x1,bbox.y1),pt);return Math.min(d1,d2,d3,pt)};TextLocator.prototype._findStructuralBounds=function(pt1,pt2,first_line,last_line){var start_block_matched=-1,end_block_matched=-1,end_block_precise=!1,start_block_precise=!1,rmx=this._getTextRotationMatrix(this._m_Direction),
p1=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c,p2=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;p1.initPoint(pt1);p2.initPoint(pt2);pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p1.x,p1.y);pt1=rmx.mult(pt1);p1.x=pt1.x;p1.y=pt1.y;pt1=new _Point2D__WEBPACK_IMPORTED_MODULE_5__.a(p2.x,p2.y);pt1=rmx.mult(pt1);p2.x=pt1.x;p2.y=pt1.y;pt2=0;for(var sz=this._m_Blocks.length;pt2<sz;++pt2)rmx=this._m_Blocks[pt2],0>start_block_matched&&rmx._m_transformed_bbox.contains(p1.x,p1.y)&&(start_block_matched=
pt2,start_block_precise=!0),0>end_block_matched&&rmx._m_transformed_bbox.contains(p2.x,p2.y)&&(end_block_matched=pt2,end_block_precise=!0);if(!start_block_precise||!end_block_precise){rmx=[];for(pt1=0;pt1<this._m_Blocks.length;++pt1)rmx.push(0);pt1=Math.max(start_block_matched,end_block_matched);var sel=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;sel.initCoordinates(p1.x,p1.y,p2.x,p2.y);sel.inflateSquare(.1);0<=pt1&&sel.union(this._m_Blocks[pt1]._m_transformed_bbox);var rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;
pt2=0;for(sz=this._m_Blocks.length;pt2<sz;++pt2){var box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt2]._m_transformed_bbox);rtmp.intersectRect(box,sel)&&(rmx[pt2]=1)}sz=rmx.indexOf(1);for(sel=pt2=rmx.indexOf(1);-1!==pt2;){sel=pt2;pt2++;if(pt2>=rmx.length)break;pt2=rmx.indexOf(1,pt2)}if(0>sz)return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,last_line);rmx=pt2=!1;rtmp=Math.max.apply(Math,this._m_Blocks.map(function(b){return b._m_bbox.y2}));
box=this._m_Pages[this._m_PrePage];void 0!==box.x2&&void 0!==box.y2&&(pt2=Math.round(p2.x)>=Math.round(box.x2)&&Math.round(p2.y)>=Math.round(box.y2),rmx=0===p1.x&&0===p1.y,p2.y>rtmp&&(pt2=!0));if(0>pt1)start_block_matched=sz,end_block_matched=sel,start_block_precise=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d,start_block_precise.initRect(this._m_Blocks[start_block_matched]._m_transformed_bbox),end_block_precise=(p1.x-start_block_precise.x1)*(p1.x-start_block_precise.x2),end_block_precise=0<
end_block_precise?Math.min(Math.abs(p1.x-start_block_precise.x1),Math.abs(p1.x-start_block_precise.x2)):0,pt1=(p1.y-start_block_precise.y1)*(p1.y-start_block_precise.y2),pt1=0<pt1?Math.min(Math.abs(p1.y-start_block_precise.y1),Math.abs(p1.y-start_block_precise.y2)):0,end_block_precise=end_block_precise*end_block_precise+pt1*pt1,pt1=Math.min(Math.abs(p2.x-start_block_precise.x1),Math.abs(p2.x-start_block_precise.x2)),sz=(p2.y-start_block_precise.y1)*(p2.y-start_block_precise.y2),sz=0<sz?Math.min(Math.abs(p2.y-
start_block_precise.y1),Math.abs(p2.y-start_block_precise.y2)):0,start_block_precise=pt1*pt1+sz*sz,pt2?end_block_matched=this._m_Blocks.length-1:!rmx&&end_block_precise>start_block_precise&&(start_block_precise=start_block_matched,start_block_matched=end_block_matched,end_block_matched=start_block_precise);else{box=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.d;box.initRect(this._m_Blocks[pt1]._m_transformed_bbox);rtmp=new _selectionInfo__WEBPACK_IMPORTED_MODULE_7__.c;start_block_precise?rtmp.initPoint(p2):
rtmp.initPoint(p1);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!(start_block_precise&&end_block_precise)&&!(!start_block_precise&&!end_block_precise));Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!box.contains(rtmp.x,rtmp.y));var other=box=void 0;pt1-sz>Math.max(sel-pt1,0)?(box=Math.min(pt1,sz),other=sel):(box=Math.max(pt1,sel),other=sz);pt2&&!end_block_precise?(end_block_matched=this._m_Blocks.length,box=end_block_matched-1):box!==pt1&&(end_block_precise=Array(3),pt2=Array(3),end_block_precise[0]=
this.Dist2BBox(rtmp,this._m_Blocks[other]._m_transformed_bbox),end_block_precise[1]=this.Dist2BBox(rtmp,this._m_Blocks[box]._m_transformed_bbox),end_block_precise[2]=this.Dist2BBox(rtmp,this._m_Blocks[pt1]._m_transformed_bbox),end_block_precise[3]=box?this.Dist2BBox(rtmp,this._m_Blocks[box-1]._m_transformed_bbox):end_block_precise[1],pt2[0]=other,pt2[1]=box,pt2[2]=pt1,pt1=1,end_block_precise[0]<end_block_precise[1]&&(pt1=0),end_block_precise[2]<end_block_precise[pt1]&&(pt1=2),1!==pt1&&end_block_precise[3]<
end_block_precise[pt1]&&(pt1=1),box=pt2[pt1]);start_block_precise?end_block_matched=box:start_block_matched=box}start_block_matched=rmx?0:start_block_matched}0<=start_block_matched&&0<=end_block_matched&&(first_line=this._findLineByPoint(this._m_Blocks[start_block_matched],p1,first_line),last_line=this._findLineByPoint(this._m_Blocks[end_block_matched],p2,last_line));return new _ResultFindStructuralBounds__WEBPACK_IMPORTED_MODULE_6__.a(first_line,last_line)};return TextLocator})()},function(module,
__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(13),_Letter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(56),_nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(57),_nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(46),_SelectionRect__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(20),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__=
__webpack_require__(4),SelectionCanvas=function(){function SelectionCanvas(container,offset){this._context=new SelectionContext(container,offset)}SelectionCanvas.prototype.getContext=function(){return this._context};return SelectionCanvas}(),SelectionContext=function(){function SelectionContext(container,offset){this._m_mtx=[];this._container={};var identity_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;identity_mtx.set(1,0,0,1,0,0);this._m_mtx.push(identity_mtx);this._font_container=
container;this._offset=offset||0;this._m_y=this._m_x=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._custom_glyph_mode=!1;this.w=0;this.f=this.s=this.c=null;this.i=this.a=0;this.j=null}SelectionContext.prototype.getLetter=function(id){return this._container[id]};SelectionContext.prototype._getTsWidth=function(bbox,text_mtx){var new_bbox=new _SelectionRect__WEBPACK_IMPORTED_MODULE_5__.a;
new_bbox.initRect(bbox);text_mtx.transformBbox(new_bbox);return new_bbox.width()};SelectionContext.prototype._getCurrentFont=function(font){if(this._font_container[font])return this._font_container[font];font=font.split(" ")[1];Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!!this._font_container[font],"Font "+font+" file not found");return this._font_container[font]};SelectionContext.prototype._transformBboxToTextSpace=function(this_font,bbox){var font_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,
units_per_em=this_font.getUnitsPerEm();this_font=this_font.getFontSize();font_mtx.set(this_font/units_per_em,0,0,this_font/units_per_em,0,0);font_mtx.transformBbox(bbox)};SelectionContext.prototype.save=function(){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.initMatrix(Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx));this._m_mtx.push(mtx)};SelectionContext.prototype.restore=function(){this._m_mtx.pop()};SelectionContext.prototype.transform=function(m11,
m12,m21,m22,dx,dy){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;mtx.set(m11,m12,m21,m22,dx,dy);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};SelectionContext.prototype.rotate=function(radians){var mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a,c=Math.cos(radians);radians=Math.sin(radians);mtx.set(c,radians,-radians,c,0,0);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).concat(mtx)};SelectionContext.prototype.translate=
function(x,y){this._m_x=x;this._m_y=y};SelectionContext.prototype.setLineDash=function(segments){};SelectionContext.prototype.fillRect=function(x,y,width,height){};SelectionContext.prototype.fillText=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype._fillTextImpl=function(text,x,y,font){if(!this._custom_glyph_mode){this.translate(x,y);x=0;for(y=text.length;x<y;){var first_utf16_codeunit=text.charCodeAt(x),initialIndex=
x;if(55296<=first_utf16_codeunit&&55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(x+1);first_utf16_codeunit=String.fromCodePoint((first_utf16_codeunit-55296<<10)+(second_utf16_codeunit-56320)+65536);x+=2}else first_utf16_codeunit=String.fromCodePoint(first_utf16_codeunit),x++;initialIndex=this.lastMapping&&initialIndex in this.lastMapping?this.lastMapping[initialIndex]:first_utf16_codeunit;first_utf16_codeunit=font.getBbox(first_utf16_codeunit);this._transformBboxToTextSpace(font,
first_utf16_codeunit);second_utf16_codeunit=first_utf16_codeunit.y1;first_utf16_codeunit.y1=first_utf16_codeunit.y2;first_utf16_codeunit.y2=second_utf16_codeunit;first_utf16_codeunit.x1+=this._m_x;first_utf16_codeunit.x2+=this._m_x;first_utf16_codeunit.y1+=this._m_y;first_utf16_codeunit.y2+=this._m_y;this._m_x+=first_utf16_codeunit.width();second_utf16_codeunit=Array(8);second_utf16_codeunit[0]=first_utf16_codeunit.x1;second_utf16_codeunit[1]=first_utf16_codeunit.y1;second_utf16_codeunit[2]=first_utf16_codeunit.x2;
second_utf16_codeunit[3]=first_utf16_codeunit.y1;second_utf16_codeunit[4]=first_utf16_codeunit.x2;second_utf16_codeunit[5]=first_utf16_codeunit.y2;second_utf16_codeunit[6]=first_utf16_codeunit.x1;second_utf16_codeunit[7]=first_utf16_codeunit.y2;Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_6__.d)(this._m_mtx).transformQuad(second_utf16_codeunit);this._container[this._offset]=new _Letter__WEBPACK_IMPORTED_MODULE_2__.a(initialIndex,second_utf16_codeunit);this._offset++}this.lastMapping=null}};
SelectionContext.prototype.measureText=function(text){var this_font=this._getCurrentFont(this.font);return this._measureTextImpl(text,this_font)};SelectionContext.prototype._measureTextImpl=function(text,font){var total_width=0;if(!this._custom_glyph_mode)for(var i=0,len=text.length;i<len;){var first_utf16_codeunit=text.charCodeAt(i);if(55296<=first_utf16_codeunit&&55551>=first_utf16_codeunit){var second_utf16_codeunit=text.charCodeAt(i+1);first_utf16_codeunit=font.getBbox(String.fromCodePoint((first_utf16_codeunit-
55296<<10)+(second_utf16_codeunit-56320)+65536));i+=2}else first_utf16_codeunit=font.getBbox(String.fromCodePoint(first_utf16_codeunit)),i++;this._transformBboxToTextSpace(font,first_utf16_codeunit);total_width+=first_utf16_codeunit.width()}return new _nsIDOMTextMetrics__WEBPACK_IMPORTED_MODULE_3__.a(total_width)};SelectionContext.prototype.strokeRect=function(){};SelectionContext.prototype.createLinearGradient=function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createRadialGradient=
function(){return new _nsIDOMCanvasGradient__WEBPACK_IMPORTED_MODULE_4__.a};SelectionContext.prototype.createPattern=function(){};SelectionContext.prototype.addColorStop=function(){};SelectionContext.prototype.beginPath=function(){};SelectionContext.prototype.closePath=function(){};SelectionContext.prototype.fill=function(){};SelectionContext.prototype.stroke=function(){};SelectionContext.prototype.clip=function(){};SelectionContext.prototype.moveTo=function(){};SelectionContext.prototype.lineTo=
function(){};SelectionContext.prototype.quadraticCurveTo=function(){};SelectionContext.prototype.bezierCurveTo=function(){};SelectionContext.prototype.rect=function(){};SelectionContext.prototype.drawImage=function(image){image instanceof SelectionCanvas&&(image=image.getContext(),Object.assign(this._container,image._container),this._offset=image._offset)};SelectionContext.prototype.setTransform=function(){};SelectionContext.prototype.strokeText=function(){};SelectionContext.prototype.getImageData=
function(){return new XODText.ImageData};SelectionContext.prototype.putImageData=function(){};SelectionContext.prototype.scale=function(){};SelectionContext.prototype.beginTransparencyGroup=function(){var identity_mtx=new _textSelection_Matrix2D__WEBPACK_IMPORTED_MODULE_1__.a;identity_mtx.set(1,0,0,1,0,0);this._m_mtx=[identity_mtx];this._m_y=this._m_x=0};SelectionContext.prototype.shouldProcessIfClipped=function(){return!0};SelectionContext.prototype.S=function(){this.save()};SelectionContext.prototype.r=
function(){this.restore()};SelectionContext.prototype.t=function(m11,m12,m21,m22,dx,dy){this.transform(m11,m12,m21,m22,dx,dy)};SelectionContext.prototype.ro=function(radians){this.rotate(radians)};SelectionContext.prototype.T=function(x,y){this.translate(x,y)};SelectionContext.prototype.L=function(x0,y0,x1,y1){return this.createLinearGradient()};SelectionContext.prototype.R=function(x0,y0,r0,x1,y1,r1){return this.createRadialGradient()};SelectionContext.prototype.P=function(image,repetition){this.createPattern()};
SelectionContext.prototype.A=function(){};SelectionContext.prototype.b=function(){this.beginPath()};SelectionContext.prototype.z=function(){this.closePath()};SelectionContext.prototype.F=function(){this.fill()};SelectionContext.prototype.X=function(){this.stroke()};SelectionContext.prototype.cr=function(){this.strokeRect()};SelectionContext.prototype.C=function(){this.clip()};SelectionContext.prototype.M=function(x,y){this.moveTo()};SelectionContext.prototype.l=function(x,y){this.lineTo()};SelectionContext.prototype.q=
function(cpx,cpy,x,y){this.quadraticCurveTo()};SelectionContext.prototype.B=function(cp1x,cp1y,cp2x,cp2y,x,y){this.bezierCurveTo()};SelectionContext.prototype.x=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.m=function(text){var this_font=this._getCurrentFont(this.font);return this._measureTextImpl(text,this_font)};SelectionContext.prototype.I=function(image,dx,dy){this.drawImage()};SelectionContext.prototype.Z=function(m11,
m12,m21,m22,dx,dy){this.setTransform()};SelectionContext.prototype.d=function(x,y,width,height){return this.getImageData()};SelectionContext.prototype.D=function(imagedata,dx,dy){this.putImageData()};SelectionContext.prototype.e=function(x,y){this.scale()};SelectionContext.prototype.tm=function(mapping){this.lastMapping=mapping};SelectionContext.prototype.fillTextCustom=function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.xc=
function(text,x,y){var this_font=this._getCurrentFont(this.font);this._fillTextImpl(text,x,y,this_font)};SelectionContext.prototype.cgb=function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(!this._custom_glyph_mode,"Custom Glyphs begin offset is incorrect");this._custom_glyph_mode=!0};SelectionContext.prototype.cge=function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(this._custom_glyph_mode,"Custom Glyphs end offset is incorrect");this._custom_glyph_mode=!1};SelectionContext.prototype.xw=function(text,
x,y){1<text.length&&(text=text.substr(0,text.length-1));this.x(text,x,y)};SelectionContext.prototype.xcw=function(text,x,y){1<text.length&&(text=text.substr(0,text.length-1));this.xc(text,x,y)};SelectionContext.prototype.createCanvas=function(){return new SelectionCanvas(this._font_container,this._offset)};Object.defineProperty(SelectionContext.prototype,"n",{get:function(){return this.font},set:function(val){this.font=val},enumerable:!1,configurable:!0});return SelectionContext}()},function(module,
__webpack_exports__,__webpack_require__){var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),_Line__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(29),_Word__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(23),_SelectionRect__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(20),_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(24),
_namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(104);module=function(){function SelectionInfo(){this._m_Lines=[];this.m_Offsets=[];this.m_Quads=[];this.m_Ready=!1;this._m_Whitespace_Indices=null;this.m_Str=""}SelectionInfo.prototype.clear=function(){this.m_Str="";Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Offsets);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.b)(this.m_Quads);this.m_Ready=!1};SelectionInfo.prototype.initDefault=function(){this.m_Offsets=
[];this.m_Quads=[];this.m_Ready=!1};SelectionInfo.prototype.applyMatrix=function(matrix){function correctionFunction(quads){for(var length=quads.length,i=0;i<length;i+=8){var pt1=matrix.mult({x:quads[i],y:quads[i+1]}),pt2=matrix.mult({x:quads[i+2],y:quads[i+3]}),pt3=matrix.mult({x:quads[i+4],y:quads[i+5]}),pt4=matrix.mult({x:quads[i+6],y:quads[i+7]}),quad=new _textSelection_Quad__WEBPACK_IMPORTED_MODULE_1__.a;quad._setCoordinates(pt1.x,pt1.y,pt2.x,pt2.y,pt3.x,pt3.y,pt4.x,pt4.y);pt1=quad.getPoints();
quads[i]=pt1.x1;quads[i+1]=pt1.y1;quads[i+2]=pt1.x2;quads[i+3]=pt1.y2;quads[i+4]=pt1.x3;quads[i+5]=pt1.y3;quads[i+6]=pt1.x4;quads[i+7]=pt1.y4}}correctionFunction(this.m_Quads);this._m_Lines.forEach(function(line){correctionFunction(line._m_quad);line._m_Words.forEach(function(word){correctionFunction(word._m_quad);word._m_glyph_quads.forEach(function(gQuad){correctionFunction(gQuad)})})})};SelectionInfo.prototype.parseFromOld=function(oldSelInfo){this.m_Quads=oldSelInfo.m_Quads;this.m_Offsets=oldSelInfo.m_Offsets;
this.m_Str=oldSelInfo.m_Str;this.m_Ready=oldSelInfo.m_Ready;this._m_Lines=function(struct,quads,str){function parseQuad(arr,offset){return arr.slice(offset,offset+8)}function getGenericWord(){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word.m_Pos=struct[pos+1];word._m_CurNum=wordNum;wordNum++;var strPos=struct[pos+1];word._m_Str=str.slice(strPos,strPos+struct[pos+2]);word._m_Str_pos=strPos;strPos=struct[pos];for(var i=0;i<strPos;++i)word._m_glyph_quads.push(parseQuad(quads,8*(word.m_Pos+i)));
prevWord&&(prevWord._m_next_word=word);return prevWord=word}function parseSimpleWord(lineBoundingBox){var word=getGenericWord(),numGlyphs=struct[pos],x_left=struct[pos+3],x_right=struct[pos+4];if(x_left===x_right){x_left=Math.min(lineBoundingBox.x1,lineBoundingBox.x2);x_right=Math.max(lineBoundingBox.x1,lineBoundingBox.x2);var top=word._m_glyph_quads[0];lineBoundingBox=word._m_glyph_quads[numGlyphs-1];lineBoundingBox=[top[1],top[3],top[5],top[7],lineBoundingBox[1],lineBoundingBox[3],lineBoundingBox[5],
lineBoundingBox[7]];top=Math.min.apply(null,lineBoundingBox);lineBoundingBox=Math.max.apply(null,lineBoundingBox);for(var i=0;i<numGlyphs;++i)for(var glyphQuad_1=word._m_glyph_quads[i],minX=Math.min(glyphQuad_1[0],glyphQuad_1[2],glyphQuad_1[4]),j=0;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?x_left:x_right}else for(top=Math.min(lineBoundingBox.y1,lineBoundingBox.y2),lineBoundingBox=Math.max(lineBoundingBox.y1,lineBoundingBox.y2),i=0;i<numGlyphs;++i)for(glyphQuad_1=word._m_glyph_quads[i],minX=Math.min(glyphQuad_1[1],
glyphQuad_1[3],glyphQuad_1[5]),j=1;8>j;j+=2)glyphQuad_1[j]=glyphQuad_1[j]===minX?lineBoundingBox:top;numGlyphs=word._m_quad;j=word._m_glyph_quads[0];i=j[2]-j[0];j=j[3]-j[1];0<i?(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top):0>i?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_right,numGlyphs[5]=lineBoundingBox,numGlyphs[6]=x_left,
numGlyphs[7]=lineBoundingBox):0<j?(numGlyphs[0]=x_left,numGlyphs[1]=top,numGlyphs[2]=x_left,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=x_right,numGlyphs[5]=lineBoundingBox,numGlyphs[6]=x_right,numGlyphs[7]=top):0>j?(numGlyphs[0]=x_right,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=top,numGlyphs[4]=x_left,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=lineBoundingBox):(numGlyphs[0]=x_left,numGlyphs[1]=lineBoundingBox,numGlyphs[2]=x_right,numGlyphs[3]=lineBoundingBox,numGlyphs[4]=
x_right,numGlyphs[5]=top,numGlyphs[6]=x_left,numGlyphs[7]=top);pos+=5;return word}function parseUnsimpleWord(){var word=getGenericWord();word._m_quad=parseQuad(struct,pos+3);pos+=11;return word}function parseLine(lineNum){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._m_CurNum=lineNum;var simple=0<struct[pos];if(simple){var wordsOffset=6;lineNum=struct[pos];var quad=line._m_quad,pt1=struct.slice(pos+2,pos+4),pt2=struct.slice(pos+4,pos+6);quad[0]=pt1[0];quad[1]=pt1[1];quad[2]=pt2[0];quad[3]=
pt1[1];quad[4]=pt2[0];quad[5]=pt2[1];quad[6]=pt1[0];quad[7]=pt2[1]}else wordsOffset=10,lineNum=-struct[pos],line._m_quad=parseQuad(struct,pos+2);simple=simple?parseSimpleWord:parseUnsimpleWord;quad=new _SelectionRect__WEBPACK_IMPORTED_MODULE_4__.a;line.getBBox(quad);pos+=wordsOffset;prevWord=null;for(wordsOffset=0;wordsOffset<lineNum;++wordsOffset)line._m_Words.push(simple(quad));line._m_Str=line._m_Words.map(function(word){return word._m_Str}).join(" ");line._m_Str_pos=line._m_Words[0]?line._m_Words[0]._m_Str_pos:
0;prevLine&&(prevLine._m_next_line=line);return prevLine=line}var pos=0,prevLine=null,prevWord=null,wordNum=0;return function(){var lines=[],numLines=struct[pos];pos++;for(var i=0;i<numLines;++i)lines.push(parseLine(i));return lines}()}(oldSelInfo.m_Struct,this.m_Quads,this.m_Str)};SelectionInfo.prototype._getUnicodeString=function(bytes){for(var result="",i=0,c,c2,c3;i<bytes.length;)c=bytes.charCodeAt(i),9===c?(result+=String.fromCharCode(10),i++):128>c?(result+=String.fromCharCode(c),i++):191<c&&
224>c?(c2=bytes.charCodeAt(i+1),result+=String.fromCharCode((c&31)<<6|c2&63),i+=2):(c2=bytes.charCodeAt(i+1),c3=bytes.charCodeAt(i+2),result+=String.fromCharCode((c&15)<<12|(c2&63)<<6|c3&63),i+=3);return result};SelectionInfo.prototype._processWord=function(word_mapping,context){var word=new _Word__WEBPACK_IMPORTED_MODULE_3__.a;word_mapping=word_mapping.split(",");word_mapping=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(word_mapping);for(var last_index=-1;word_mapping.moveNext();){var word_map=
word_mapping.current.split(":"),word_offset=parseInt(word_map[0],10),word_length=0;1<word_map.length&&(word_length=parseInt(word_map[1],10));last_index===word_offset&&(++word_offset,--word_length);for(last_index=word_offset+word_length;word_offset<=last_index;word_offset++){word_map=context.getLetter(word_offset);word_length=word_map.getChar();word.addChar(word_length,word_map.getQuad());for(var i=0;i<word_length.length;++i)this.m_Offsets.push(word_offset),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,
word_map.getQuad())}}return word};SelectionInfo.prototype.parse=function(parser,context){var line_id=0,word_id=0,str_pos=0;do{for(var elem_name;parser.advance();)if(elem_name=parser.getElementName(),"F"===elem_name)parser.increaseDepth();else if("P"===elem_name)parser.increaseDepth();else if("L"===elem_name){parser.increaseDepth();elem_name=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;elem_name._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(elem_name);
this._m_Lines.push(elem_name);var words=parser.getCharData().split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=words.current;if(0<elem_name.getNumWords()){this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);elem_name.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);
word_map._setStringPos(str_pos);elem_name.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<elem_name.getNumWords(),"No words in line");0<elem_name.getNumWords()&&(last_quad=Array(8),elem_name.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}else Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("XML parser has encountered a symbol it can't process.");
parser.decreaseDepth()}while(parser.getDepth())};SelectionInfo.prototype.constructFromFlowArray=function(flowArray,context){var line_id=0,word_id=0,str_pos=0;this._m_Whitespace_Indices=[];for(var i=0;i<flowArray.length;++i)for(var paraArray=flowArray[i],j=0;j<paraArray.length;++j)for(var lineArray=paraArray[j],k=0;k<lineArray.length;++k){var line=new _Line__WEBPACK_IMPORTED_MODULE_2__.a;line._setCurrentNum(line_id++);0<this._m_Lines.length&&this._m_Lines[this._m_Lines.length-1].setNextLine(line);
this._m_Lines.push(line);var words=lineArray[k].split(" ");for(words=Object(_ArrayEnumerator__WEBPACK_IMPORTED_MODULE_6__.a)(words);words.moveNext();){var word_map=words.current;if(0<line.getNumWords()){this._m_Whitespace_Indices.push(this.m_Str.length);this.m_Str+=" ";this.m_Offsets.push(-1);str_pos++;var last_quad=Array(8);line.getLastWord().getQuad(last_quad);Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad)}word_map=this._processWord(word_map,context);word_map._setCurrentNum(word_id++);
word_map._setStringPos(str_pos);line.addWord(word_map);this.m_Str+=word_map.getString();str_pos+=word_map.getNumGlyphs()}this._m_Whitespace_Indices.push(this.m_Str.length);this.m_Str+="\n";this.m_Offsets.push(-2);str_pos++;Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)(0<line.getNumWords(),"No words in line");0<line.getNumWords()&&(last_quad=Array(8),line.getLastWord().getQuad(last_quad),Object(_helpers_arrayHelper__WEBPACK_IMPORTED_MODULE_5__.a)(this.m_Quads,last_quad))}this.m_Ready=!0};SelectionInfo.prototype.reconstruct=
function(contents,context){try{var parser=new _namespaces_XMLParser_XMLParser__WEBPACK_IMPORTED_MODULE_7__.a(contents);Object(logger__WEBPACK_IMPORTED_MODULE_0__.a)("TextData"===parser.getElementName(),"XML parser has encountered a symbol it can't process.");"TextData"===parser.getElementName()&&(parser.increaseDepth(),this.parse(parser,context))}catch(ex){Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("TextSelection has encountered an error: "+ex.message);return}this.m_Ready=!0};SelectionInfo.prototype.ready=
function(){return this.m_Ready};SelectionInfo.prototype.getNumLines=function(){return this._m_Lines.length};SelectionInfo.prototype.getFirstLine=function(){return this._m_Lines.length?this._m_Lines[0]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLine=function(idx){return this._m_Lines.length?this._m_Lines[idx]:new _Line__WEBPACK_IMPORTED_MODULE_2__.a};SelectionInfo.prototype.getLines=function(){return this._m_Lines};SelectionInfo.prototype.getStr=function(){return this.m_Str};
SelectionInfo.prototype.getOffsets=function(){return this.m_Offsets};SelectionInfo.prototype.getQuads=function(){return this.m_Quads};return SelectionInfo}();__webpack_exports__.a=module},function(module,exports){},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(3);__webpack_exports__=Object(module.d)(["pdf"],["jpg","jpeg","png","jfif","gif"],["webp","avif","apng","bmp"]);__webpack_exports__=Object(module.d)(["xod"],__webpack_exports__,"docx xlsx pptx md doc xls ppt".split(" "));
Object(module.d)(__webpack_exports__,["tiff","tif"],"doc xls csv ppt htm html utl xhtml bmp tif jp2 txt rtf odf odt odg odp ods xlsb xlt dwg dgn rvt rfa dxf dwf gif xltm xltx vsd vsdx xlt msg eml wmf emf".split(" "))},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(0)},function(module,__webpack_exports__,__webpack_require__){module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(8);(function(){try{var ctx=
document.createElement("canvas").getContext("2d");ctx.font="20px f0";return parseFloat(ctx.font)/20}catch(error){return 1}})();(function(){function nonIntegerValueIssue(){var canvas=document.createElement("canvas");canvas.style.width="5px";canvas.style.height="5px";canvas=canvas.getContext("2d");canvas.rect(0,0,4.5,4.5);canvas.clip();canvas.fillStyle="#FFFFFF";canvas.fillRect(0,0,5,5);canvas.clearRect(0,0,5,5);return 0!==canvas.getImageData(1,1,1,1).data[3]}return function(){var canvas=document.createElement("canvas");
canvas.style.width="1px";canvas.style.height="1px";canvas=canvas.getContext("2d");canvas.fillStyle="#FFFFFF";canvas.fillRect(0,0,1,1);canvas.beginPath();canvas.rect(0,0,1,1);canvas.clip();canvas.fillStyle="#000000";canvas.fillRect(0,0,1,1);return 255===canvas.getImageData(0,0,1,1).data[0]}()||nonIntegerValueIssue()})()},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(3);__webpack_require__(65)},function(module,__webpack_exports__,__webpack_require__){},function(module,
__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(10);__webpack_require__(39)},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=function(path){if(!styleExists(path)){var link=document.createElement("link");link.rel="stylesheet";link.type="text/css";link.href=path;link.id=path;document.getElementsByTagName("head")[0].appendChild(link)}};
var styleExists=function(path){var links=document.getElementsByTagName("link");return[].some.call(links,function(link){return link.id===path})}},function(module,__webpack_exports__,__webpack_require__){},function(module$jscomp$0,exports,__webpack_require__){(function(global,module){var __WEBPACK_AMD_DEFINE_RESULT__;(function(){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);
case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}function arrayAggregator(array,setter,iteratee,accumulator){for(var index=-1,length=null==array?0:array.length;++index<length;){var value=array[index];setter(accumulator,value,iteratee(value),array)}return accumulator}function arrayEach(array,iteratee){for(var index=-1,length=null==array?0:array.length;++index<length&&!1!==iteratee(array[index],index,array););return array}function arrayEachRight(array,iteratee){for(var length=
null==array?0:array.length;length--&&!1!==iteratee(array[length],length,array););return array}function arrayEvery(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(!predicate(array[index],index,array))return!1;return!0}function arrayFilter(array,predicate){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];predicate(value,index,array)&&(result[resIndex++]=value)}return result}function arrayIncludes(array,
value){return!(null==array||!array.length)&&-1<baseIndexOf(array,value,0)}function arrayIncludesWith(array,value,comparator){for(var index=-1,length=null==array?0:array.length;++index<length;)if(comparator(value,array[index]))return!0;return!1}function arrayMap(array,iteratee){for(var index=-1,length=null==array?0:array.length,result=Array(length);++index<length;)result[index]=iteratee(array[index],index,array);return result}function arrayPush(array,values){for(var index=-1,length=values.length,offset=
array.length;++index<length;)array[offset+index]=values[index];return array}function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[++index]);++index<length;)accumulator=iteratee(accumulator,array[index],index,array);return accumulator}function arrayReduceRight(array,iteratee,accumulator,initAccum){var length=null==array?0:array.length;for(initAccum&&length&&(accumulator=array[--length]);length--;)accumulator=
iteratee(accumulator,array[length],length,array);return accumulator}function arraySome(array,predicate){for(var index=-1,length=null==array?0:array.length;++index<length;)if(predicate(array[index],index,array))return!0;return!1}function baseFindKey(collection$jscomp$0,predicate,eachFunc){var result;eachFunc(collection$jscomp$0,function(value,key,collection){if(predicate(value,key,collection))return result=key,!1});return result}function baseFindIndex(array,predicate,fromIndex,fromRight){var length=
array.length;for(fromIndex+=fromRight?1:-1;fromRight?fromIndex--:++fromIndex<length;)if(predicate(array[fromIndex],fromIndex,array))return fromIndex;return-1}function baseIndexOf(array,value,fromIndex){if(value===value)a:{--fromIndex;for(var length=array.length;++fromIndex<length;)if(array[fromIndex]===value){array=fromIndex;break a}array=-1}else array=baseFindIndex(array,baseIsNaN,fromIndex);return array}function baseIndexOfWith(array,value,fromIndex,comparator){--fromIndex;for(var length=array.length;++fromIndex<
length;)if(comparator(array[fromIndex],value))return fromIndex;return-1}function baseIsNaN(value){return value!==value}function baseMean(array,iteratee){var length=null==array?0:array.length;return length?baseSum(array,iteratee)/length:NAN}function baseProperty(key){return function(object){return null==object?undefined:object[key]}}function basePropertyOf(object){return function(key){return null==object?undefined:object[key]}}function baseReduce(collection$jscomp$0,iteratee,accumulator,initAccum,
eachFunc){eachFunc(collection$jscomp$0,function(value,index,collection){accumulator=initAccum?(initAccum=!1,value):iteratee(accumulator,value,index,collection)});return accumulator}function baseSortBy(array,comparer){var length=array.length;for(array.sort(comparer);length--;)array[length]=array[length].value;return array}function baseSum(array,iteratee){for(var result,index=-1,length=array.length;++index<length;){var current=iteratee(array[index]);undefined!==current&&(result=undefined===result?current:
result+current)}return result}function baseTimes(n,iteratee){for(var index=-1,result=Array(n);++index<n;)result[index]=iteratee(index);return result}function baseToPairs(object,props){return arrayMap(props,function(key){return[key,object[key]]})}function baseTrim(string){return string?string.slice(0,trimmedEndIndex(string)+1).replace(reTrimStart,""):string}function baseUnary(func){return function(value){return func(value)}}function baseValues(object,props){return arrayMap(props,function(key){return object[key]})}
function cacheHas(cache,key){return cache.has(key)}function charsStartIndex(strSymbols,chrSymbols){for(var index=-1,length=strSymbols.length;++index<length&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function charsEndIndex(strSymbols,chrSymbols){for(var index=strSymbols.length;index--&&-1<baseIndexOf(chrSymbols,strSymbols[index],0););return index}function escapeStringChar(chr){return"\\"+stringEscapes[chr]}function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,
key){result[++index]=[key,value]});return result}function overArg(func,transform){return function(arg){return func(transform(arg))}}function replaceHolders(array,placeholder){for(var index=-1,length=array.length,resIndex=0,result=[];++index<length;){var value=array[index];if(value===placeholder||"__lodash_placeholder__"===value)array[index]="__lodash_placeholder__",result[resIndex++]=index}return result}function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=
value});return result}function setToPairs(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=[value,value]});return result}function stringSize(string){if(reHasUnicode.test(string)){for(var result=reUnicode.lastIndex=0;reUnicode.test(string);)++result;string=result}else string=asciiSize(string);return string}function stringToArray(string){return reHasUnicode.test(string)?string.match(reUnicode)||[]:string.split("")}function trimmedEndIndex(string){for(var index=string.length;index--&&
reWhitespace.test(string.charAt(index)););return index}var undefined,INFINITY=1/0,NAN=0/0,wrapFlags=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],reEmptyStringLeading=/\b__p \+= '';/g,reEmptyStringMiddle=/\b(__p \+=) '' \+/g,reEmptyStringTrailing=/(__e\(.*?\)|\b__t\)) \+\n'';/g,reEscapedHtml=/&(?:amp|lt|gt|quot|#39);/g,reUnescapedHtml=/[&<>"']/g,reHasEscapedHtml=RegExp(reEscapedHtml.source),reHasUnescapedHtml=RegExp(reUnescapedHtml.source),
reEscape=/<%-([\s\S]+?)%>/g,reEvaluate=/<%([\s\S]+?)%>/g,reInterpolate=/<%=([\s\S]+?)%>/g,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source),reTrimStart=/^\s+/,reWhitespace=/\s/,reWrapComment=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,reWrapDetails=/\{\n\/\* \[wrapped with (.+)\] \*/,
reSplitDetails=/,? & /,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,reForbiddenIdentifierChars=/[()=,{}\[\]\/\s]/,reEscapeChar=/\\(\\)?/g,reEsTemplate=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,reFlags=/\w*$/,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsHostCtor=/^\[object .+?Constructor\]$/,reIsOctal=/^0o[0-7]+$/i,reIsUint=/^(?:0|[1-9]\d*)$/,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,reNoMatch=/($^)/,reUnescapedString=/['\n\r\u2028\u2029\\]/g,reApos=RegExp("['\u2019]",
"g"),reComboMark=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),reUnicode=RegExp("\\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"),reUnicodeWord=RegExp("[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"),reHasUnicode=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,contextProps="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(" "),templateCounter=
-1,typedArrayTags={};typedArrayTags["[object Float32Array]"]=typedArrayTags["[object Float64Array]"]=typedArrayTags["[object Int8Array]"]=typedArrayTags["[object Int16Array]"]=typedArrayTags["[object Int32Array]"]=typedArrayTags["[object Uint8Array]"]=typedArrayTags["[object Uint8ClampedArray]"]=typedArrayTags["[object Uint16Array]"]=typedArrayTags["[object Uint32Array]"]=!0;typedArrayTags["[object Arguments]"]=typedArrayTags["[object Array]"]=typedArrayTags["[object ArrayBuffer]"]=typedArrayTags["[object Boolean]"]=
typedArrayTags["[object DataView]"]=typedArrayTags["[object Date]"]=typedArrayTags["[object Error]"]=typedArrayTags["[object Function]"]=typedArrayTags["[object Map]"]=typedArrayTags["[object Number]"]=typedArrayTags["[object Object]"]=typedArrayTags["[object RegExp]"]=typedArrayTags["[object Set]"]=typedArrayTags["[object String]"]=typedArrayTags["[object WeakMap]"]=!1;var cloneableTags={};cloneableTags["[object Arguments]"]=cloneableTags["[object Array]"]=cloneableTags["[object ArrayBuffer]"]=cloneableTags["[object DataView]"]=
cloneableTags["[object Boolean]"]=cloneableTags["[object Date]"]=cloneableTags["[object Float32Array]"]=cloneableTags["[object Float64Array]"]=cloneableTags["[object Int8Array]"]=cloneableTags["[object Int16Array]"]=cloneableTags["[object Int32Array]"]=cloneableTags["[object Map]"]=cloneableTags["[object Number]"]=cloneableTags["[object Object]"]=cloneableTags["[object RegExp]"]=cloneableTags["[object Set]"]=cloneableTags["[object String]"]=cloneableTags["[object Symbol]"]=cloneableTags["[object Uint8Array]"]=
cloneableTags["[object Uint8ClampedArray]"]=cloneableTags["[object Uint16Array]"]=cloneableTags["[object Uint32Array]"]=!0;cloneableTags["[object Error]"]=cloneableTags["[object Function]"]=cloneableTags["[object WeakMap]"]=!1;var stringEscapes={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},freeParseFloat=parseFloat,freeParseInt=parseInt,freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,
root=freeGlobal||freeSelf||Function("return this")(),freeExports=exports&&!exports.nodeType&&exports,freeModule=freeExports&&"object"==typeof module&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,freeProcess=moduleExports&&freeGlobal.process,nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;return types?types:freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}(),nodeIsArrayBuffer=nodeUtil&&
nodeUtil.isArrayBuffer,nodeIsDate=nodeUtil&&nodeUtil.isDate,nodeIsMap=nodeUtil&&nodeUtil.isMap,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,nodeIsSet=nodeUtil&&nodeUtil.isSet,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,asciiSize=baseProperty("length"),deburrLetter=basePropertyOf({"\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"}),escapeHtmlChar=basePropertyOf({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),unescapeHtmlChar=basePropertyOf({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),_=function runInContext(context){function lodash(value){if(isObjectLike(value)&&!isArray(value)&&
!(value instanceof LazyWrapper)){if(value instanceof LodashWrapper)return value;if(hasOwnProperty.call(value,"__wrapped__"))return wrapperClone(value)}return new LodashWrapper(value)}function baseLodash(){}function LodashWrapper(value,chainAll){this.__wrapped__=value;this.__actions__=[];this.__chain__=!!chainAll;this.__index__=0;this.__values__=undefined}function LazyWrapper(value){this.__wrapped__=value;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=
4294967295;this.__views__=[]}function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],
entry[1])}}function SetCache(values){var index=-1,length=null==values?0:values.length;for(this.__data__=new MapCache;++index<length;)this.add(values[index])}function Stack(entries){this.size=(this.__data__=new ListCache(entries)).size}function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value);isArg=(isArr=isArr||isArg||isBuff||isType)?baseTimes(value.length,String):[];
var length=isArg.length,key;for(key in value)!inherited&&!hasOwnProperty.call(value,key)||isArr&&("length"==key||isBuff&&("offset"==key||"parent"==key)||isType&&("buffer"==key||"byteLength"==key||"byteOffset"==key)||isIndex(key,length))||isArg.push(key);return isArg}function arraySample(array){var length=array.length;return length?array[baseRandom(0,length-1)]:undefined}function arraySampleSize(array,n){return shuffleSelf(copyArray(array),baseClamp(n,0,array.length))}function arrayShuffle(array){return shuffleSelf(copyArray(array))}
function assignMergeValue(object,key,value){(undefined===value||eq(object[key],value))&&(undefined!==value||key in object)||baseAssignValue(object,key,value)}function assignValue(object,key,value){var objValue=object[key];hasOwnProperty.call(object,key)&&eq(objValue,value)&&(undefined!==value||key in object)||baseAssignValue(object,key,value)}function assocIndexOf(array,key){for(var length=array.length;length--;)if(eq(array[length][0],key))return length;return-1}function baseAggregator(collection$jscomp$0,
setter,iteratee,accumulator){baseEach(collection$jscomp$0,function(value,key,collection){setter(accumulator,value,iteratee(value),collection)});return accumulator}function baseAssign(object,source){return object&&copyObject(source,keys(source),object)}function baseAssignIn(object,source){return object&&copyObject(source,keysIn(source),object)}function baseAssignValue(object,key,value){"__proto__"==key&&defineProperty?defineProperty(object,key,{configurable:!0,enumerable:!0,value:value,writable:!0}):
object[key]=value}function baseAt(object,paths){for(var index=-1,length=paths.length,result=Array(length),skip=null==object;++index<length;)result[index]=skip?undefined:get(object,paths[index]);return result}function baseClamp(number,lower,upper){number===number&&(undefined!==upper&&(number=number<=upper?number:upper),undefined!==lower&&(number=number>=lower?number:lower));return number}function baseClone(value,bitmask,customizer,key$jscomp$0,object,stack){var result,isDeep=bitmask&1,isFlat=bitmask&
2,isFull=bitmask&4;customizer&&(result=object?customizer(value,key$jscomp$0,object,stack):customizer(value));if(undefined!==result)return result;if(!isObject(value))return value;if(key$jscomp$0=isArray(value)){if(result=initCloneArray(value),!isDeep)return copyArray(value,result)}else{var tag=getTag(value),isFunc="[object Function]"==tag||"[object GeneratorFunction]"==tag;if(isBuffer(value))return cloneBuffer(value,isDeep);if("[object Object]"==tag||"[object Arguments]"==tag||isFunc&&!object){if(result=
isFlat||isFunc?{}:initCloneObject(value),!isDeep)return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value))}else{if(!cloneableTags[tag])return object?value:{};result=initCloneByTag(value,tag,isDeep)}}stack||(stack=new Stack);if(object=stack.get(value))return object;stack.set(value,result);isSet(value)?value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack))}):isMap(value)&&value.forEach(function(subValue,
key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack))});isFlat=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=key$jscomp$0?undefined:isFlat(value);arrayEach(props||value,function(subValue,key){props&&(key=subValue,subValue=value[key]);assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack))});return result}function baseConforms(source){var props=keys(source);return function(object){return baseConformsTo(object,source,props)}}function baseConformsTo(object,
source,props){var length=props.length;if(null==object)return!length;for(object=Object(object);length--;){var key=props[length],predicate=source[key],value=object[key];if(undefined===value&&!(key in object)||!predicate(value))return!1}return!0}function baseDelay(func,wait,args){if("function"!=typeof func)throw new TypeError("Expected a function");return setTimeout(function(){func.apply(undefined,args)},wait)}function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,
isCommon=!0,length=array.length,result=[],valuesLength=values.length;if(!length)return result;iteratee&&(values=arrayMap(values,baseUnary(iteratee)));comparator?(includes=arrayIncludesWith,isCommon=!1):200<=values.length&&(includes=cacheHas,isCommon=!1,values=new SetCache(values));a:for(;++index<length;){var value=array[index],computed=null==iteratee?value:iteratee(value);value=comparator||0!==value?value:0;if(isCommon&&computed===computed){for(var valuesIndex=valuesLength;valuesIndex--;)if(values[valuesIndex]===
computed)continue a;result.push(value)}else includes(values,computed,comparator)||result.push(value)}return result}function baseEvery(collection$jscomp$0,predicate){var result=!0;baseEach(collection$jscomp$0,function(value,index,collection){return result=!!predicate(value,index,collection)});return result}function baseExtremum(array,iteratee,comparator){for(var index=-1,length=array.length;++index<length;){var value=array[index],current=iteratee(value);if(null!=current&&(undefined===computed?current===
current&&!isSymbol(current):comparator(current,computed)))var computed=current,result=value}return result}function baseFilter(collection$jscomp$0,predicate){var result=[];baseEach(collection$jscomp$0,function(value,index,collection){predicate(value,index,collection)&&result.push(value)});return result}function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);for(result||(result=[]);++index<length;){var value=array[index];0<depth&&
predicate(value)?1<depth?baseFlatten(value,depth-1,predicate,isStrict,result):arrayPush(result,value):isStrict||(result[result.length]=value)}return result}function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}function baseForOwnRight(object,iteratee){return object&&baseForRight(object,iteratee,keys)}function baseFunctions(object,props){return arrayFilter(props,function(key){return isFunction(object[key])})}function baseGet(object,path){path=castPath(path,object);for(var index=
0,length=path.length;null!=object&&index<length;)object=object[toKey(path[index++])];return index&&index==length?object:undefined}function baseGetAllKeys(object,keysFunc,symbolsFunc){keysFunc=keysFunc(object);return isArray(object)?keysFunc:arrayPush(keysFunc,symbolsFunc(object))}function baseGetTag(value){if(null==value)return undefined===value?"[object Undefined]":"[object Null]";if(symToStringTag&&symToStringTag in Object(value)){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];
try{value[symToStringTag]=undefined;var unmasked=!0}catch(e){}var result=nativeObjectToString.call(value);unmasked&&(isOwn?value[symToStringTag]=tag:delete value[symToStringTag]);value=result}else value=nativeObjectToString.call(value);return value}function baseGt(value,other){return value>other}function baseHas(object,key){return null!=object&&hasOwnProperty.call(object,key)}function baseHasIn(object,key){return null!=object&&key in Object(object)}function baseIntersection(arrays,iteratee,comparator){for(var includes=
comparator?arrayIncludesWith:arrayIncludes,length=arrays[0].length,othLength=arrays.length,othIndex=othLength,caches=Array(othLength),maxLength=Infinity,result=[];othIndex--;){var array=arrays[othIndex];othIndex&&iteratee&&(array=arrayMap(array,baseUnary(iteratee)));maxLength=nativeMin(array.length,maxLength);caches[othIndex]=!comparator&&(iteratee||120<=length&&120<=array.length)?new SetCache(othIndex&&array):undefined}array=arrays[0];var index=-1,seen=caches[0];a:for(;++index<length&&result.length<
maxLength;){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||0!==value?value:0;if(seen?!seen.has(computed):!includes(result,computed,comparator)){for(othIndex=othLength;--othIndex;){var cache=caches[othIndex];if(cache?!cache.has(computed):!includes(arrays[othIndex],computed,comparator))continue a}seen&&seen.push(computed);result.push(value)}}return result}function baseInverter(object$jscomp$0,setter,iteratee,accumulator){baseForOwn(object$jscomp$0,function(value,key,
object){setter(accumulator,iteratee(value),key,object)});return accumulator}function baseInvoke(object,path,args){path=castPath(path,object);object=2>path.length?object:baseGet(object,baseSlice(path,0,-1));path=null==object?object:object[toKey(last(path))];return null==path?undefined:apply(path,object,args)}function baseIsArguments(value){return isObjectLike(value)&&"[object Arguments]"==baseGetTag(value)}function baseIsArrayBuffer(value){return isObjectLike(value)&&"[object ArrayBuffer]"==baseGetTag(value)}
function baseIsDate(value){return isObjectLike(value)&&"[object Date]"==baseGetTag(value)}function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other)return!0;if(null==value||null==other||!isObjectLike(value)&&!isObjectLike(other))return value!==value&&other!==other;a:{var objIsArr=isArray(value),othIsArr=isArray(other),objTag=objIsArr?"[object Array]":getTag(value),othTag=othIsArr?"[object Array]":getTag(other);objTag="[object Arguments]"==objTag?"[object Object]":objTag;othTag="[object Arguments]"==
othTag?"[object Object]":othTag;var objIsObj="[object Object]"==objTag;othIsArr="[object Object]"==othTag;if((othTag=objTag==othTag)&&isBuffer(value)){if(!isBuffer(other)){other=!1;break a}objIsArr=!0;objIsObj=!1}if(othTag&&!objIsObj)stack||(stack=new Stack),other=objIsArr||isTypedArray(value)?equalArrays(value,other,bitmask,customizer,baseIsEqual,stack):equalByTag(value,other,objTag,bitmask,customizer,baseIsEqual,stack);else{if(!(bitmask&1)&&(objIsArr=objIsObj&&hasOwnProperty.call(value,"__wrapped__"),
objTag=othIsArr&&hasOwnProperty.call(other,"__wrapped__"),objIsArr||objTag)){value=objIsArr?value.value():value;other=objTag?other.value():other;stack||(stack=new Stack);other=baseIsEqual(value,other,bitmask,customizer,stack);break a}if(othTag)b:if(stack||(stack=new Stack),objIsArr=bitmask&1,objTag=getAllKeys(value),othIsArr=objTag.length,othTag=getAllKeys(other).length,othIsArr==othTag||objIsArr){for(othTag=othIsArr;othTag--;){var key=objTag[othTag];if(!(objIsArr?key in other:hasOwnProperty.call(other,
key))){other=!1;break b}}objIsObj=stack.get(value);key=stack.get(other);if(objIsObj&&key)other=objIsObj==other&&key==value;else{objIsObj=!0;stack.set(value,other);stack.set(other,value);for(var skipCtor=objIsArr;++othTag<othIsArr;){key=objTag[othTag];var objValue=value[key],othValue=other[key];if(customizer)var compared=objIsArr?customizer(othValue,objValue,key,other,value,stack):customizer(objValue,othValue,key,value,other,stack);if(undefined===compared?objValue!==othValue&&!baseIsEqual(objValue,
othValue,bitmask,customizer,stack):!compared){objIsObj=!1;break}skipCtor||(skipCtor="constructor"==key)}objIsObj&&!skipCtor&&(bitmask=value.constructor,customizer=other.constructor,bitmask!=customizer&&"constructor"in value&&"constructor"in other&&!("function"==typeof bitmask&&bitmask instanceof bitmask&&"function"==typeof customizer&&customizer instanceof customizer)&&(objIsObj=!1));stack["delete"](value);stack["delete"](other);other=objIsObj}}else other=!1;else other=!1}}return other}function baseIsMap(value){return isObjectLike(value)&&
"[object Map]"==getTag(value)}function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(null==object)return!length;for(object=Object(object);index--;){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object))return!1}for(;++index<length;){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(undefined===objValue&&!(key in object))return!1}else{data=
new Stack;if(customizer)var result=customizer(objValue,srcValue,key,object,source,data);if(undefined===result?!baseIsEqual(srcValue,objValue,3,customizer,data):!result)return!1}}return!0}function baseIsNative(value){return!isObject(value)||maskSrcKey&&maskSrcKey in value?!1:(isFunction(value)?reIsNative:reIsHostCtor).test(toSource(value))}function baseIsRegExp(value){return isObjectLike(value)&&"[object RegExp]"==baseGetTag(value)}function baseIsSet(value){return isObjectLike(value)&&"[object Set]"==
getTag(value)}function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}function baseIteratee(value){return"function"==typeof value?value:null==value?identity:"object"==typeof value?isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value):property(value)}function baseKeys(object){if(!isPrototype(object))return nativeKeys(object);var result=[],key;for(key in Object(object))hasOwnProperty.call(object,key)&&"constructor"!=
key&&result.push(key);return result}function baseLt(value,other){return value<other}function baseMap(collection$jscomp$0,iteratee){var index=-1,result=isArrayLike(collection$jscomp$0)?Array(collection$jscomp$0.length):[];baseEach(collection$jscomp$0,function(value,key,collection){result[++index]=iteratee(value,key,collection)});return result}function baseMatches(source){var matchData=getMatchData(source);return 1==matchData.length&&matchData[0][2]?matchesStrictComparable(matchData[0][0],matchData[0][1]):
function(object){return object===source||baseIsMatch(object,source,matchData)}}function baseMatchesProperty(path,srcValue){return isKey(path)&&srcValue===srcValue&&!isObject(srcValue)?matchesStrictComparable(toKey(path),srcValue):function(object){var objValue=get(object,path);return undefined===objValue&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,3)}}function baseMerge(object,source,srcIndex,customizer,stack){object!==source&&baseFor(source,function(srcValue$jscomp$0,key){stack||
(stack=new Stack);if(isObject(srcValue$jscomp$0)){srcValue$jscomp$0=stack;var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=srcValue$jscomp$0.get(srcValue);if(stacked)assignMergeValue(object,key,stacked);else{stacked=customizer?customizer(objValue,srcValue,key+"",object,source,srcValue$jscomp$0):undefined;var isCommon=undefined===stacked;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);stacked=srcValue;if(isArr||
isBuff||isTyped)isArray(objValue)?stacked=objValue:isArrayLikeObject(objValue)?stacked=copyArray(objValue):isBuff?(isCommon=!1,stacked=cloneBuffer(srcValue,!0)):isTyped?(isCommon=!1,stacked=cloneTypedArray(srcValue,!0)):stacked=[];else if(isPlainObject(srcValue)||isArguments(srcValue))if(stacked=objValue,isArguments(objValue))stacked=toPlainObject(objValue);else{if(!isObject(objValue)||isFunction(objValue))stacked=initCloneObject(srcValue)}else isCommon=!1}isCommon&&(srcValue$jscomp$0.set(srcValue,
stacked),baseMerge(stacked,srcValue,srcIndex,customizer,srcValue$jscomp$0),srcValue$jscomp$0["delete"](srcValue));assignMergeValue(object,key,stacked)}}else objValue=customizer?customizer(safeGet(object,key),srcValue$jscomp$0,key+"",object,source,stack):undefined,undefined===objValue&&(objValue=srcValue$jscomp$0),assignMergeValue(object,key,objValue)},keysIn)}function baseNth(array,n){var length=array.length;if(length)return n+=0>n?length:0,isIndex(n,length)?array[n]:undefined}function baseOrderBy(collection$jscomp$0,
iteratees,orders){iteratees=iteratees.length?arrayMap(iteratees,function(iteratee){return isArray(iteratee)?function(value){return baseGet(value,1===iteratee.length?iteratee[0]:iteratee)}:iteratee}):[identity];var index$jscomp$0=-1;iteratees=arrayMap(iteratees,baseUnary(getIteratee()));collection$jscomp$0=baseMap(collection$jscomp$0,function(value,key,collection){return{criteria:arrayMap(iteratees,function(iteratee){return iteratee(value)}),index:++index$jscomp$0,value:value}});return baseSortBy(collection$jscomp$0,
function(object,other){a:{for(var index=-1,objCriteria=object.criteria,othCriteria=other.criteria,length=objCriteria.length,ordersLength=orders.length;++index<length;){var result=compareAscending(objCriteria[index],othCriteria[index]);if(result){if(index>=ordersLength){object=result;break a}object=result*("desc"==orders[index]?-1:1);break a}}object=object.index-other.index}return object})}function basePick(object,paths){return basePickBy(object,paths,function(value,path){return hasIn(object,path)})}
function basePickBy(object,paths,predicate){for(var index=-1,length=paths.length,result={};++index<length;){var path=paths[index],value=baseGet(object,path);predicate(value,path)&&baseSet(result,castPath(path,object),value)}return result}function basePropertyDeep(path){return function(object){return baseGet(object,path)}}function basePullAll(array,values,iteratee,comparator){var indexOf=comparator?baseIndexOfWith:baseIndexOf,index=-1,length=values.length,seen=array;array===values&&(values=copyArray(values));
for(iteratee&&(seen=arrayMap(array,baseUnary(iteratee)));++index<length;){var fromIndex=0,value=values[index];for(value=iteratee?iteratee(value):value;-1<(fromIndex=indexOf(seen,value,fromIndex,comparator));)seen!==array&&splice.call(seen,fromIndex,1),splice.call(array,fromIndex,1)}return array}function basePullAt(array,indexes){for(var length=array?indexes.length:0,lastIndex=length-1;length--;){var index=indexes[length];if(length==lastIndex||index!==previous){var previous=index;isIndex(index)?splice.call(array,
index,1):baseUnset(array,index)}}return array}function baseRandom(lower,upper){return lower+nativeFloor(nativeRandom()*(upper-lower+1))}function baseRepeat(string,n){var result="";if(!string||1>n||9007199254740991<n)return result;do n%2&&(result+=string),(n=nativeFloor(n/2))&&(string+=string);while(n);return result}function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}function baseSample(collection){return arraySample(values$jscomp$0(collection))}function baseSampleSize(collection,
n){collection=values$jscomp$0(collection);return shuffleSelf(collection,baseClamp(n,0,collection.length))}function baseSet(object,path,value,customizer){if(!isObject(object))return object;path=castPath(path,object);for(var index=-1,length=path.length,lastIndex=length-1,nested=object;null!=nested&&++index<length;){var key=toKey(path[index]),newValue=value;if("__proto__"===key||"constructor"===key||"prototype"===key)break;if(index!=lastIndex){var objValue=nested[key];newValue=customizer?customizer(objValue,
key,nested):undefined;undefined===newValue&&(newValue=isObject(objValue)?objValue:isIndex(path[index+1])?[]:{})}assignValue(nested,key,newValue);nested=nested[key]}return object}function baseShuffle(collection){return shuffleSelf(values$jscomp$0(collection))}function baseSlice(array,start,end){var index=-1,length=array.length;0>start&&(start=-start>length?0:length+start);end=end>length?length:end;0>end&&(end+=length);length=start>end?0:end-start>>>0;start>>>=0;for(end=Array(length);++index<length;)end[index]=
array[index+start];return end}function baseSome(collection$jscomp$0,predicate){var result;baseEach(collection$jscomp$0,function(value,index,collection){result=predicate(value,index,collection);return!result});return!!result}function baseSortedIndex(array,value,retHighest){var low=0,high=null==array?low:array.length;if("number"==typeof value&&value===value&&2147483647>=high){for(;low<high;){var mid=low+high>>>1,computed=array[mid];null!==computed&&!isSymbol(computed)&&(retHighest?computed<=value:computed<
value)?low=mid+1:high=mid}return high}return baseSortedIndexBy(array,value,identity,retHighest)}function baseSortedIndexBy(array,value,iteratee,retHighest){var low=0,high=null==array?0:array.length;if(0===high)return 0;value=iteratee(value);for(var valIsNaN=value!==value,valIsNull=null===value,valIsSymbol=isSymbol(value),valIsUndefined=undefined===value;low<high;){var mid=nativeFloor((low+high)/2),computed=iteratee(array[mid]),othIsDefined=undefined!==computed,othIsNull=null===computed,othIsReflexive=
computed===computed,othIsSymbol=isSymbol(computed);(valIsNaN?retHighest||othIsReflexive:valIsUndefined?othIsReflexive&&(retHighest||othIsDefined):valIsNull?othIsReflexive&&othIsDefined&&(retHighest||!othIsNull):valIsSymbol?othIsReflexive&&othIsDefined&&!othIsNull&&(retHighest||!othIsSymbol):othIsNull||othIsSymbol?0:retHighest?computed<=value:computed<value)?low=mid+1:high=mid}return nativeMin(high,4294967294)}function baseSortedUniq(array,iteratee){for(var index=-1,length=array.length,resIndex=0,
result=[];++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;if(!index||!eq(computed,seen)){var seen=computed;result[resIndex++]=0===value?0:value}}return result}function baseToNumber(value){return"number"==typeof value?value:isSymbol(value)?NAN:+value}function baseToString(value){if("string"==typeof value)return value;if(isArray(value))return arrayMap(value,baseToString)+"";if(isSymbol(value))return symbolToString?symbolToString.call(value):"";var result=value+"";return"0"==
result&&1/value==-INFINITY?"-0":result}function baseUniq(array,iteratee,comparator){var index=-1,includes=arrayIncludes,length=array.length,isCommon=!0,result=[],seen=result;if(comparator)isCommon=!1,includes=arrayIncludesWith;else if(200<=length){if(includes=iteratee?null:createSet(array))return setToArray(includes);isCommon=!1;includes=cacheHas;seen=new SetCache}else seen=iteratee?[]:result;a:for(;++index<length;){var value=array[index],computed=iteratee?iteratee(value):value;value=comparator||
0!==value?value:0;if(isCommon&&computed===computed){for(var seenIndex=seen.length;seenIndex--;)if(seen[seenIndex]===computed)continue a;iteratee&&seen.push(computed);result.push(value)}else includes(seen,computed,comparator)||(seen!==result&&seen.push(computed),result.push(value))}return result}function baseUnset(object,path){path=castPath(path,object);object=2>path.length?object:baseGet(object,baseSlice(path,0,-1));return null==object||delete object[toKey(last(path))]}function baseWhile(array,predicate,
isDrop,fromRight){for(var length=array.length,index=fromRight?length:-1;(fromRight?index--:++index<length)&&predicate(array[index],index,array););return isDrop?baseSlice(array,fromRight?0:index,fromRight?index+1:length):baseSlice(array,fromRight?index+1:0,fromRight?length:index)}function baseWrapperValue(value,actions){value instanceof LazyWrapper&&(value=value.value());return arrayReduce(actions,function(result,action){return action.func.apply(action.thisArg,arrayPush([result],action.args))},value)}
function baseXor(arrays,iteratee,comparator){var length=arrays.length;if(2>length)return length?baseUniq(arrays[0]):[];for(var index=-1,result=Array(length);++index<length;)for(var array=arrays[index],othIndex=-1;++othIndex<length;)othIndex!=index&&(result[index]=baseDifference(result[index]||array,arrays[othIndex],iteratee,comparator));return baseUniq(baseFlatten(result,1),iteratee,comparator)}function baseZipObject(props,values,assignFunc){for(var index=-1,length=props.length,valsLength=values.length,
result={};++index<length;)assignFunc(result,props[index],index<valsLength?values[index]:undefined);return result}function castArrayLikeObject(value){return isArrayLikeObject(value)?value:[]}function castFunction(value){return"function"==typeof value?value:identity}function castPath(value,object){return isArray(value)?value:isKey(value,object)?[value]:stringToPath(toString(value))}function castSlice(array,start,end){var length=array.length;end=undefined===end?length:end;return!start&&end>=length?array:
baseSlice(array,start,end)}function cloneBuffer(buffer,isDeep){if(isDeep)return buffer.slice();isDeep=buffer.length;isDeep=allocUnsafe?allocUnsafe(isDeep):new buffer.constructor(isDeep);buffer.copy(isDeep);return isDeep}function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);(new Uint8Array(result)).set(new Uint8Array(arrayBuffer));return result}function cloneTypedArray(typedArray,isDeep){isDeep=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;
return new typedArray.constructor(isDeep,typedArray.byteOffset,typedArray.length)}function compareAscending(value,other){if(value!==other){var valIsDefined=undefined!==value,valIsNull=null===value,valIsReflexive=value===value,valIsSymbol=isSymbol(value),othIsDefined=undefined!==other,othIsNull=null===other,othIsReflexive=other===other,othIsSymbol=isSymbol(other);if(!othIsNull&&!othIsSymbol&&!valIsSymbol&&value>other||valIsSymbol&&othIsDefined&&othIsReflexive&&!othIsNull&&!othIsSymbol||valIsNull&&
othIsDefined&&othIsReflexive||!valIsDefined&&othIsReflexive||!valIsReflexive)return 1;if(!valIsNull&&!valIsSymbol&&!othIsSymbol&&value<other||othIsSymbol&&valIsDefined&&valIsReflexive&&!valIsNull&&!valIsSymbol||othIsNull&&valIsDefined&&valIsReflexive||!othIsDefined&&valIsReflexive||!othIsReflexive)return-1}return 0}function composeArgs(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersLength=holders.length,leftIndex=-1,leftLength=partials.length,rangeLength=nativeMax(argsLength-
holdersLength,0),result=Array(leftLength+rangeLength);for(isCurried=!isCurried;++leftIndex<leftLength;)result[leftIndex]=partials[leftIndex];for(;++argsIndex<holdersLength;)if(isCurried||argsIndex<argsLength)result[holders[argsIndex]]=args[argsIndex];for(;rangeLength--;)result[leftIndex++]=args[argsIndex++];return result}function composeArgsRight(args,partials,holders,isCurried){var argsIndex=-1,argsLength=args.length,holdersIndex=-1,holdersLength=holders.length,rightIndex=-1,rightLength=partials.length,
rangeLength=nativeMax(argsLength-holdersLength,0),result=Array(rangeLength+rightLength);for(isCurried=!isCurried;++argsIndex<rangeLength;)result[argsIndex]=args[argsIndex];for(rangeLength=argsIndex;++rightIndex<rightLength;)result[rangeLength+rightIndex]=partials[rightIndex];for(;++holdersIndex<holdersLength;)if(isCurried||argsIndex<argsLength)result[rangeLength+holders[holdersIndex]]=args[argsIndex++];return result}function copyArray(source,array){var index=-1,length=source.length;for(array||(array=
Array(length));++index<length;)array[index]=source[index];return array}function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});for(var index=-1,length=props.length;++index<length;){var key=props[index],newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;undefined===newValue&&(newValue=source[key]);isNew?baseAssignValue(object,key,newValue):assignValue(object,key,newValue)}return object}function copySymbols(source,object){return copyObject(source,
getSymbols(source),object)}function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object)}function createAggregator(setter,initializer){return function(collection,iteratee){var func=isArray(collection)?arrayAggregator:baseAggregator,accumulator=initializer?initializer():{};return func(collection,setter,getIteratee(iteratee,2),accumulator)}}function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=1<length?
sources[length-1]:undefined,guard=2<length?sources[2]:undefined;customizer=3<assigner.length&&"function"==typeof customizer?(length--,customizer):undefined;guard&&isIterateeCall(sources[0],sources[1],guard)&&(customizer=3>length?undefined:customizer,length=1);for(object=Object(object);++index<length;)(guard=sources[index])&&assigner(object,guard,index,customizer);return object})}function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(null==collection)return collection;
if(!isArrayLike(collection))return eachFunc(collection,iteratee);for(var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);(fromRight?index--:++index<length)&&!1!==iteratee(iterable[index],index,iterable););return collection}}function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object);keysFunc=keysFunc(object);for(var length=keysFunc.length;length--;){var key=keysFunc[fromRight?length:++index];if(!1===iteratee(iterable[key],
key,iterable))break}return object}}function createBind(func,bitmask,thisArg){function wrapper(){return(this&&this!==root&&this instanceof wrapper?Ctor:func).apply(isBind?thisArg:this,arguments)}var isBind=bitmask&1,Ctor=createCtor(func);return wrapper}function createCaseFirst(methodName){return function(string){string=toString(string);var strSymbols=reHasUnicode.test(string)?stringToArray(string):undefined,chr=strSymbols?strSymbols[0]:string.charAt(0);string=strSymbols?castSlice(strSymbols,1).join(""):
string.slice(1);return chr[methodName]()+string}}function createCompounder(callback){return function(string){return arrayReduce(words(deburr(string).replace(reApos,"")),callback,"")}}function createCtor(Ctor){return function(){var args=arguments;switch(args.length){case 0:return new Ctor;case 1:return new Ctor(args[0]);case 2:return new Ctor(args[0],args[1]);case 3:return new Ctor(args[0],args[1],args[2]);case 4:return new Ctor(args[0],args[1],args[2],args[3]);case 5:return new Ctor(args[0],args[1],
args[2],args[3],args[4]);case 6:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5]);case 7:return new Ctor(args[0],args[1],args[2],args[3],args[4],args[5],args[6])}var thisBinding=baseCreate(Ctor.prototype);args=Ctor.apply(thisBinding,args);return isObject(args)?args:thisBinding}}function createCurry(func,bitmask,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length,placeholder=getHolder(wrapper);index--;)args[index]=arguments[index];index=3>length&&
args[0]!==placeholder&&args[length-1]!==placeholder?[]:replaceHolders(args,placeholder);length-=index.length;return length<arity?createRecurry(func,bitmask,createHybrid,wrapper.placeholder,undefined,args,index,undefined,undefined,arity-length):apply(this&&this!==root&&this instanceof wrapper?Ctor:func,this,args)}var Ctor=createCtor(func);return wrapper}function createFind(findIndexFunc){return function(collection,predicate,fromIndex){var iterable=Object(collection);if(!isArrayLike(collection)){var iteratee=
getIteratee(predicate,3);collection=keys(collection);predicate=function(key){return iteratee(iterable[key],key,iterable)}}predicate=findIndexFunc(collection,predicate,fromIndex);return-1<predicate?iterable[iteratee?collection[predicate]:predicate]:undefined}}function createFlow(fromRight){return flatRest(function(funcs){var length=funcs.length,index$jscomp$0=length,prereq=LodashWrapper.prototype.thru;for(fromRight&&funcs.reverse();index$jscomp$0--;){var func=funcs[index$jscomp$0];if("function"!=typeof func)throw new TypeError("Expected a function");
if(prereq&&!wrapper&&"wrapper"==getFuncName(func))var wrapper=new LodashWrapper([],!0)}for(index$jscomp$0=wrapper?index$jscomp$0:length;++index$jscomp$0<length;){func=funcs[index$jscomp$0];prereq=getFuncName(func);var data="wrapper"==prereq?getData(func):undefined;wrapper=data&&isLaziable(data[0])&&424==data[1]&&!data[4].length&&1==data[9]?wrapper[getFuncName(data[0])].apply(wrapper,data[3]):1==func.length&&isLaziable(func)?wrapper[prereq]():wrapper.thru(func)}return function(){var args=arguments,
value=args[0];if(wrapper&&1==args.length&&isArray(value))return wrapper.plant(value).value();var index=0;for(args=length?funcs[index].apply(this,args):value;++index<length;)args=funcs[index].call(this,args);return args}})}function createHybrid(func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity){function wrapper(){for(var length=arguments.length,args=Array(length),index=length;index--;)args[index]=arguments[index];if(isCurried){var placeholder=getHolder(wrapper),holdersCount;
index=args.length;for(holdersCount=0;index--;)args[index]===placeholder&&++holdersCount}partials&&(args=composeArgs(args,partials,holders,isCurried));partialsRight&&(args=composeArgsRight(args,partialsRight,holdersRight,isCurried));length-=holdersCount;if(isCurried&&length<arity)return placeholder=replaceHolders(args,placeholder),createRecurry(func,bitmask,createHybrid,wrapper.placeholder,thisArg,args,placeholder,argPos,ary,arity-length);placeholder=isBind?thisArg:this;index=isBindKey?placeholder[func]:
func;length=args.length;if(argPos){holdersCount=args.length;for(var length$jscomp$0=nativeMin(argPos.length,holdersCount),oldArray=copyArray(args);length$jscomp$0--;){var index$jscomp$0=argPos[length$jscomp$0];args[length$jscomp$0]=isIndex(index$jscomp$0,holdersCount)?oldArray[index$jscomp$0]:undefined}}else isFlip&&1<length&&args.reverse();isAry&&ary<length&&(args.length=ary);this&&this!==root&&this instanceof wrapper&&(index=Ctor||createCtor(index));return index.apply(placeholder,args)}var isAry=
bitmask&128,isBind=bitmask&1,isBindKey=bitmask&2,isCurried=bitmask&24,isFlip=bitmask&512,Ctor=isBindKey?undefined:createCtor(func);return wrapper}function createInverter(setter,toIteratee){return function(object,iteratee){return baseInverter(object,setter,toIteratee(iteratee),{})}}function createMathOperation(operator,defaultValue){return function(value,other){var result;if(undefined===value&&undefined===other)return defaultValue;undefined!==value&&(result=value);if(undefined!==other){if(undefined===
result)return other;"string"==typeof value||"string"==typeof other?(value=baseToString(value),other=baseToString(other)):(value=baseToNumber(value),other=baseToNumber(other));result=operator(value,other)}return result}}function createOver(arrayFunc){return flatRest(function(iteratees){iteratees=arrayMap(iteratees,baseUnary(getIteratee()));return baseRest(function(args){var thisArg=this;return arrayFunc(iteratees,function(iteratee){return apply(iteratee,thisArg,args)})})})}function createPadding(length,
chars){chars=undefined===chars?" ":baseToString(chars);var charsLength=chars.length;if(2>charsLength)return charsLength?baseRepeat(chars,length):chars;charsLength=baseRepeat(chars,nativeCeil(length/stringSize(chars)));return reHasUnicode.test(chars)?castSlice(stringToArray(charsLength),0,length).join(""):charsLength.slice(0,length)}function createPartial(func,bitmask,thisArg,partials){function wrapper(){for(var argsIndex=-1,argsLength=arguments.length,leftIndex=-1,leftLength=partials.length,args=
Array(leftLength+argsLength),fn=this&&this!==root&&this instanceof wrapper?Ctor:func;++leftIndex<leftLength;)args[leftIndex]=partials[leftIndex];for(;argsLength--;)args[leftIndex++]=arguments[++argsIndex];return apply(fn,isBind?thisArg:this,args)}var isBind=bitmask&1,Ctor=createCtor(func);return wrapper}function createRange(fromRight){return function(start,end,step){step&&"number"!=typeof step&&isIterateeCall(start,end,step)&&(end=step=undefined);start=toFinite(start);undefined===end?(end=start,start=
0):end=toFinite(end);step=undefined===step?start<end?1:-1:toFinite(step);var index=-1;end=nativeMax(nativeCeil((end-start)/(step||1)),0);for(var result=Array(end);end--;)result[fromRight?end:++index]=start,start+=step;return result}}function createRelationalOperation(operator){return function(value,other){if("string"!=typeof value||"string"!=typeof other)value=toNumber(value),other=toNumber(other);return operator(value,other)}}function createRecurry(func,bitmask,wrapFunc,placeholder,thisArg,partials,
holders,argPos,ary,arity){var isCurry=bitmask&8,newHolders=isCurry?holders:undefined;holders=isCurry?undefined:holders;var newPartials=isCurry?partials:undefined;partials=isCurry?undefined:partials;bitmask|=isCurry?32:64;bitmask&=~(isCurry?64:32);bitmask&4||(bitmask&=-4);thisArg=[func,bitmask,thisArg,newPartials,newHolders,partials,holders,argPos,ary,arity];wrapFunc=wrapFunc.apply(undefined,thisArg);isLaziable(func)&&setData(wrapFunc,thisArg);wrapFunc.placeholder=placeholder;return setWrapToString(wrapFunc,
func,bitmask)}function createRound(methodName){var func=Math[methodName];return function(number,precision){number=toNumber(number);return(precision=null==precision?0:nativeMin(toInteger(precision),292))&&nativeIsFinite(number)?(number=(toString(number)+"e").split("e"),number=func(number[0]+"e"+(+number[1]+precision)),number=(toString(number)+"e").split("e"),+(number[0]+"e"+(+number[1]-precision))):func(number)}}function createToPairs(keysFunc){return function(object){var tag=getTag(object);return"[object Map]"==
tag?mapToArray(object):"[object Set]"==tag?setToPairs(object):baseToPairs(object,keysFunc(object))}}function createWrap(func,bitmask,thisArg,partials,holders,argPos,ary,arity){var isBindKey=bitmask&2;if(!isBindKey&&"function"!=typeof func)throw new TypeError("Expected a function");var length=partials?partials.length:0;length||(bitmask&=-97,partials=holders=undefined);ary=undefined===ary?ary:nativeMax(toInteger(ary),0);arity=undefined===arity?arity:toInteger(arity);length-=holders?holders.length:0;
if(bitmask&64){var partialsRight=partials,holdersRight=holders;partials=holders=undefined}var data=isBindKey?undefined:getData(func);argPos=[func,bitmask,thisArg,partials,holders,partialsRight,holdersRight,argPos,ary,arity];if(data&&(thisArg=argPos[1],func=data[1],bitmask=thisArg|func,partials=128==func&&8==thisArg||128==func&&256==thisArg&&argPos[7].length<=data[8]||384==func&&data[7].length<=data[8]&&8==thisArg,131>bitmask||partials)){func&1&&(argPos[2]=data[2],bitmask|=thisArg&1?0:4);if(thisArg=
data[3])partials=argPos[3],argPos[3]=partials?composeArgs(partials,thisArg,data[4]):thisArg,argPos[4]=partials?replaceHolders(argPos[3],"__lodash_placeholder__"):data[4];if(thisArg=data[5])partials=argPos[5],argPos[5]=partials?composeArgsRight(partials,thisArg,data[6]):thisArg,argPos[6]=partials?replaceHolders(argPos[5],"__lodash_placeholder__"):data[6];(thisArg=data[7])&&(argPos[7]=thisArg);func&128&&(argPos[8]=null==argPos[8]?data[8]:nativeMin(argPos[8],data[8]));null==argPos[9]&&(argPos[9]=data[9]);
argPos[0]=data[0];argPos[1]=bitmask}func=argPos[0];bitmask=argPos[1];thisArg=argPos[2];partials=argPos[3];holders=argPos[4];arity=argPos[9]=undefined===argPos[9]?isBindKey?0:func.length:nativeMax(argPos[9]-length,0);!arity&&bitmask&24&&(bitmask&=-25);isBindKey=bitmask&&1!=bitmask?8==bitmask||16==bitmask?createCurry(func,bitmask,arity):32!=bitmask&&33!=bitmask||holders.length?createHybrid.apply(undefined,argPos):createPartial(func,bitmask,thisArg,partials):createBind(func,bitmask,thisArg);return setWrapToString((data?
baseSetData:setData)(isBindKey,argPos),func,bitmask)}function customDefaultsAssignIn(objValue,srcValue,key,object){return undefined===objValue||eq(objValue,objectProto[key])&&!hasOwnProperty.call(object,key)?srcValue:objValue}function customDefaultsMerge(objValue,srcValue,key,object,source,stack){isObject(objValue)&&isObject(srcValue)&&(stack.set(srcValue,objValue),baseMerge(objValue,srcValue,undefined,customDefaultsMerge,stack),stack["delete"](srcValue));return objValue}function customOmitClone(value){return isPlainObject(value)?
undefined:value}function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&1,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength))return!1;othLength=stack.get(array);var othStacked=stack.get(other);if(othLength&&othStacked)return othLength==other&&othStacked==array;othLength=-1;othStacked=!0;var seen=bitmask&2?new SetCache:undefined;stack.set(array,other);for(stack.set(other,array);++othLength<arrLength;){var arrValue=
array[othLength],othValue$jscomp$0=other[othLength];if(customizer)var compared=isPartial?customizer(othValue$jscomp$0,arrValue,othLength,other,array,stack):customizer(arrValue,othValue$jscomp$0,othLength,array,other,stack);if(undefined!==compared){if(compared)continue;othStacked=!1;break}if(seen){if(!arraySome(other,function(othValue,othIndex){if(!seen.has(othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack)))return seen.push(othIndex)})){othStacked=!1;break}}else if(arrValue!==
othValue$jscomp$0&&!equalFunc(arrValue,othValue$jscomp$0,bitmask,customizer,stack)){othStacked=!1;break}}stack["delete"](array);stack["delete"](other);return othStacked}function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case "[object DataView]":if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset)break;object=object.buffer;other=other.buffer;case "[object ArrayBuffer]":if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),
new Uint8Array(other)))break;return!0;case "[object Boolean]":case "[object Date]":case "[object Number]":return eq(+object,+other);case "[object Error]":return object.name==other.name&&object.message==other.message;case "[object RegExp]":case "[object String]":return object==other+"";case "[object Map]":var convert=mapToArray;case "[object Set]":convert||(convert=setToArray);if(object.size!=other.size&&!(bitmask&1))break;if(tag=stack.get(object))return tag==other;bitmask|=2;stack.set(object,other);
other=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return other;case "[object Symbol]":if(symbolValueOf)return symbolValueOf.call(object)==symbolValueOf.call(other)}return!1}function flatRest(func){return setToString(overRest(func,undefined,flatten),func+"")}function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn)}function getFuncName(func){for(var result=
func.name+"",array=realNames[result],length=hasOwnProperty.call(realNames,result)?array.length:0;length--;){var data=array[length],otherFunc=data.func;if(null==otherFunc||otherFunc==func)return data.name}return result}function getHolder(func){return(hasOwnProperty.call(lodash,"placeholder")?lodash:func).placeholder}function getIteratee(){var result=lodash.iteratee||iteratee$jscomp$0;result=result===iteratee$jscomp$0?baseIteratee:result;return arguments.length?result(arguments[0],arguments[1]):result}
function getMapData(map,key){map=map.__data__;var type=typeof key;return("string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==key:null===key)?map["string"==typeof key?"string":"hash"]:map.map}function getMatchData(object){for(var result=keys(object),length=result.length;length--;){var key=result[length],value=object[key];result[length]=[key,value,value===value&&!isObject(value)]}return result}function getNative(object,key){object=null==object?undefined:object[key];return baseIsNative(object)?
object:undefined}function hasPath(object,path,hasFunc){path=castPath(path,object);for(var index=-1,length=path.length,result=!1;++index<length;){var key=toKey(path[index]);if(!(result=null!=object&&hasFunc(object,key)))break;object=object[key]}if(result||++index!=length)return result;length=null==object?0:object.length;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object))}function initCloneArray(array){var length=array.length,result=new array.constructor(length);
length&&"string"==typeof array[0]&&hasOwnProperty.call(array,"index")&&(result.index=array.index,result.input=array.input);return result}function initCloneObject(object){return"function"!=typeof object.constructor||isPrototype(object)?{}:baseCreate(getPrototype(object))}function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case "[object ArrayBuffer]":return cloneArrayBuffer(object);case "[object Boolean]":case "[object Date]":return new Ctor(+object);case "[object DataView]":return tag=
isDeep?cloneArrayBuffer(object.buffer):object.buffer,new object.constructor(tag,object.byteOffset,object.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 cloneTypedArray(object,isDeep);case "[object Map]":return new Ctor;case "[object Number]":case "[object String]":return new Ctor(object);
case "[object RegExp]":return tag=new object.constructor(object.source,reFlags.exec(object)),tag.lastIndex=object.lastIndex,tag;case "[object Set]":return new Ctor;case "[object Symbol]":return symbolValueOf?Object(symbolValueOf.call(object)):{}}}function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}function isIndex(value,length){var type=typeof value;length=null==length?9007199254740991:length;return!!length&&("number"==type||
"symbol"!=type&&reIsUint.test(value))&&-1<value&&0==value%1&&value<length}function isIterateeCall(value,index,object){if(!isObject(object))return!1;var type=typeof index;return("number"==type?isArrayLike(object)&&isIndex(index,object.length):"string"==type&&index in object)?eq(object[index],value):!1}function isKey(value,object){if(isArray(value))return!1;var type=typeof value;return"number"==type||"symbol"==type||"boolean"==type||null==value||isSymbol(value)?!0:reIsPlainProp.test(value)||!reIsDeepProp.test(value)||
null!=object&&value in Object(object)}function isLaziable(func){var funcName=getFuncName(func),other=lodash[funcName];if("function"!=typeof other||!(funcName in LazyWrapper.prototype))return!1;if(func===other)return!0;funcName=getData(other);return!!funcName&&func===funcName[0]}function isPrototype(value){var Ctor=value&&value.constructor;return value===("function"==typeof Ctor&&Ctor.prototype||objectProto)}function matchesStrictComparable(key,srcValue){return function(object){return null==object?
!1:object[key]===srcValue&&(undefined!==srcValue||key in Object(object))}}function overRest(func,start,transform){start=nativeMax(undefined===start?func.length-1:start,0);return function(){for(var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);++index<length;)array[index]=args[start+index];index=-1;for(length=Array(start+1);++index<start;)length[index]=args[index];length[start]=transform(array);return apply(func,this,length)}}function safeGet(object,key){if(("constructor"!==
key||"function"!==typeof object[key])&&"__proto__"!=key)return object[key]}function setWrapToString(wrapper,reference,bitmask){var source=reference+"";reference=setToString;var JSCompiler_temp_const=updateWrapDetails;var JSCompiler_inline_result=(JSCompiler_inline_result=source.match(reWrapDetails))?JSCompiler_inline_result[1].split(reSplitDetails):[];bitmask=JSCompiler_temp_const(JSCompiler_inline_result,bitmask);if(JSCompiler_temp_const=bitmask.length)JSCompiler_inline_result=JSCompiler_temp_const-
1,bitmask[JSCompiler_inline_result]=(1<JSCompiler_temp_const?"& ":"")+bitmask[JSCompiler_inline_result],bitmask=bitmask.join(2<JSCompiler_temp_const?", ":" "),source=source.replace(reWrapComment,"{\n/* [wrapped with "+bitmask+"] */\n");return reference(wrapper,source)}function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=16-(stamp-lastCalled);lastCalled=stamp;if(0<remaining){if(800<=++count)return arguments[0]}else count=0;return func.apply(undefined,arguments)}}
function shuffleSelf(array,size){var index=-1,length=array.length,lastIndex=length-1;for(size=undefined===size?length:size;++index<size;){length=baseRandom(index,lastIndex);var value=array[length];array[length]=array[index];array[index]=value}array.length=size;return array}function toKey(value){if("string"==typeof value||isSymbol(value))return value;var result=value+"";return"0"==result&&1/value==-INFINITY?"-0":result}function toSource(func){if(null!=func){try{return funcToString.call(func)}catch(e){}return func+
""}return""}function updateWrapDetails(details,bitmask){arrayEach(wrapFlags,function(pair){var value="_."+pair[0];bitmask&pair[1]&&!arrayIncludes(details,value)&&details.push(value)});return details.sort()}function wrapperClone(wrapper){if(wrapper instanceof LazyWrapper)return wrapper.clone();var result=new LodashWrapper(wrapper.__wrapped__,wrapper.__chain__);result.__actions__=copyArray(wrapper.__actions__);result.__index__=wrapper.__index__;result.__values__=wrapper.__values__;return result}function findIndex(array,
predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;fromIndex=null==fromIndex?0:toInteger(fromIndex);0>fromIndex&&(fromIndex=nativeMax(length+fromIndex,0));return baseFindIndex(array,getIteratee(predicate,3),fromIndex)}function findLastIndex(array,predicate,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length-1;undefined!==fromIndex&&(index=toInteger(fromIndex),index=0>fromIndex?nativeMax(length+index,0):nativeMin(index,length-1));return baseFindIndex(array,
getIteratee(predicate,3),index,!0)}function flatten(array){return(null==array?0:array.length)?baseFlatten(array,1):[]}function head(array){return array&&array.length?array[0]:undefined}function last(array){var length=null==array?0:array.length;return length?array[length-1]:undefined}function pullAll(array,values){return array&&array.length&&values&&values.length?basePullAll(array,values):array}function reverse(array){return null==array?array:nativeReverse.call(array)}function unzip(array){if(!array||
!array.length)return[];var length=0;array=arrayFilter(array,function(group){if(isArrayLikeObject(group))return length=nativeMax(group.length,length),!0});return baseTimes(length,function(index){return arrayMap(array,baseProperty(index))})}function unzipWith(array,iteratee){if(!array||!array.length)return[];array=unzip(array);return null==iteratee?array:arrayMap(array,function(group){return apply(iteratee,undefined,group)})}function chain$jscomp$0(value){value=lodash(value);value.__chain__=!0;return value}
function thru(value,interceptor){return interceptor(value)}function wrapperToIterator(){return this}function forEach(collection,iteratee){return(isArray(collection)?arrayEach:baseEach)(collection,getIteratee(iteratee,3))}function forEachRight(collection,iteratee){return(isArray(collection)?arrayEachRight:baseEachRight)(collection,getIteratee(iteratee,3))}function map$jscomp$0(collection,iteratee){return(isArray(collection)?arrayMap:baseMap)(collection,getIteratee(iteratee,3))}function ary$jscomp$0(func,
n,guard){n=guard?undefined:n;n=func&&null==n?func.length:n;return createWrap(func,128,undefined,undefined,undefined,undefined,n)}function before(n,func){var result;if("function"!=typeof func)throw new TypeError("Expected a function");n=toInteger(n);return function(){0<--n&&(result=func.apply(this,arguments));1>=n&&(func=undefined);return result}}function curry(func,arity,guard){arity=guard?undefined:arity;func=createWrap(func,8,undefined,undefined,undefined,undefined,undefined,arity);func.placeholder=
curry.placeholder;return func}function curryRight(func,arity,guard){arity=guard?undefined:arity;func=createWrap(func,16,undefined,undefined,undefined,undefined,undefined,arity);func.placeholder=curryRight.placeholder;return func}function debounce(func,wait,options){function invokeFunc(time){var args=lastArgs,thisArg=lastThis;lastArgs=lastThis=undefined;lastInvokeTime=time;return result=func.apply(thisArg,args)}function shouldInvoke(time){var timeSinceLastCall=time-lastCallTime;time-=lastInvokeTime;
return undefined===lastCallTime||timeSinceLastCall>=wait||0>timeSinceLastCall||maxing&&time>=maxWait}function timerExpired(){var time=now();if(shouldInvoke(time))return trailingEdge(time);var JSCompiler_temp_const=setTimeout;var JSCompiler_inline_result=time-lastInvokeTime;time=wait-(time-lastCallTime);JSCompiler_inline_result=maxing?nativeMin(time,maxWait-JSCompiler_inline_result):time;timerId=JSCompiler_temp_const(timerExpired,JSCompiler_inline_result)}function trailingEdge(time){timerId=undefined;
if(trailing&&lastArgs)return invokeFunc(time);lastArgs=lastThis=undefined;return result}function debounced(){var time=now(),isInvoking=shouldInvoke(time);lastArgs=arguments;lastThis=this;lastCallTime=time;if(isInvoking){if(undefined===timerId)return lastInvokeTime=time=lastCallTime,timerId=setTimeout(timerExpired,wait),leading?invokeFunc(time):result;if(maxing)return clearTimeout(timerId),timerId=setTimeout(timerExpired,wait),invokeFunc(lastCallTime)}undefined===timerId&&(timerId=setTimeout(timerExpired,
wait));return result}var lastArgs,lastThis,result,timerId,lastCallTime,lastInvokeTime=0,leading=!1,maxing=!1,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");wait=toNumber(wait)||0;if(isObject(options)){leading=!!options.leading;var maxWait=(maxing="maxWait"in options)?nativeMax(toNumber(options.maxWait)||0,wait):maxWait;trailing="trailing"in options?!!options.trailing:trailing}debounced.cancel=function(){undefined!==timerId&&clearTimeout(timerId);lastInvokeTime=0;
lastArgs=lastCallTime=lastThis=timerId=undefined};debounced.flush=function(){return undefined===timerId?result:trailingEdge(now())};return debounced}function memoize(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);args=func.apply(this,args);memoized.cache=cache.set(key,
args)||cache;return args};memoized.cache=new (memoize.Cache||MapCache);return memoized}function negate(predicate){if("function"!=typeof predicate)throw new TypeError("Expected a function");return function(){var args=arguments;switch(args.length){case 0:return!predicate.call(this);case 1:return!predicate.call(this,args[0]);case 2:return!predicate.call(this,args[0],args[1]);case 3:return!predicate.call(this,args[0],args[1],args[2])}return!predicate.apply(this,args)}}function eq(value,other){return value===
other||value!==value&&other!==other}function isArrayLike(value){return null!=value&&isLength(value.length)&&!isFunction(value)}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isError(value){if(!isObjectLike(value))return!1;var tag=baseGetTag(value);return"[object Error]"==tag||"[object DOMException]"==tag||"string"==typeof value.message&&"string"==typeof value.name&&!isPlainObject(value)}function isFunction(value){if(!isObject(value))return!1;value=baseGetTag(value);
return"[object Function]"==value||"[object GeneratorFunction]"==value||"[object AsyncFunction]"==value||"[object Proxy]"==value}function isInteger(value){return"number"==typeof value&&value==toInteger(value)}function isLength(value){return"number"==typeof value&&-1<value&&0==value%1&&9007199254740991>=value}function isObject(value){var type=typeof value;return null!=value&&("object"==type||"function"==type)}function isObjectLike(value){return null!=value&&"object"==typeof value}function isNumber(value){return"number"==
typeof value||isObjectLike(value)&&"[object Number]"==baseGetTag(value)}function isPlainObject(value){if(!isObjectLike(value)||"[object Object]"!=baseGetTag(value))return!1;value=getPrototype(value);if(null===value)return!0;value=hasOwnProperty.call(value,"constructor")&&value.constructor;return"function"==typeof value&&value instanceof value&&funcToString.call(value)==objectCtorString}function isString(value){return"string"==typeof value||!isArray(value)&&isObjectLike(value)&&"[object String]"==
baseGetTag(value)}function isSymbol(value){return"symbol"==typeof value||isObjectLike(value)&&"[object Symbol]"==baseGetTag(value)}function toArray(value){if(!value)return[];if(isArrayLike(value))return isString(value)?stringToArray(value):copyArray(value);if(symIterator&&value[symIterator]){value=value[symIterator]();for(var data,result=[];!(data=value.next()).done;)result.push(data.value);return result}data=getTag(value);return("[object Map]"==data?mapToArray:"[object Set]"==data?setToArray:values$jscomp$0)(value)}
function toFinite(value){if(!value)return 0===value?value:0;value=toNumber(value);return value===INFINITY||value===-INFINITY?1.7976931348623157E308*(0>value?-1:1):value===value?value:0}function toInteger(value){value=toFinite(value);var remainder=value%1;return value===value?remainder?value-remainder:value:0}function toLength(value){return value?baseClamp(toInteger(value),0,4294967295):0}function toNumber(value){if("number"==typeof value)return value;if(isSymbol(value))return NAN;isObject(value)&&
(value="function"==typeof value.valueOf?value.valueOf():value,value=isObject(value)?value+"":value);if("string"!=typeof value)return 0===value?value:+value;value=baseTrim(value);var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value}function toPlainObject(value){return copyObject(value,keysIn(value))}function toString(value){return null==value?"":baseToString(value)}function get(object,path,defaultValue){object=
null==object?undefined:baseGet(object,path);return undefined===object?defaultValue:object}function hasIn(object,path){return null!=object&&hasPath(object,path,baseHasIn)}function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}function keysIn(object){if(isArrayLike(object))object=arrayLikeKeys(object,!0);else if(isObject(object)){var isProto=isPrototype(object),result=[];for(key in object)("constructor"!=key||!isProto&&hasOwnProperty.call(object,key))&&result.push(key);
object=result}else{var key=[];if(null!=object)for(isProto in Object(object))key.push(isProto);object=key}return object}function pickBy(object,predicate){if(null==object)return{};var props=arrayMap(getAllKeysIn(object),function(prop){return[prop]});predicate=getIteratee(predicate);return basePickBy(object,props,function(value,path){return predicate(value,path[0])})}function values$jscomp$0(object){return null==object?[]:baseValues(object,keys(object))}function capitalize(string){return upperFirst(toString(string).toLowerCase())}
function deburr(string){return(string=toString(string))&&string.replace(reLatin,deburrLetter).replace(reComboMark,"")}function words(string,pattern,guard){string=toString(string);pattern=guard?undefined:pattern;return undefined===pattern?reHasUnicodeWord.test(string)?string.match(reUnicodeWord)||[]:string.match(reAsciiWord)||[]:string.match(pattern)||[]}function constant(value){return function(){return value}}function identity(value){return value}function iteratee$jscomp$0(func){return baseIteratee("function"==
typeof func?func:baseClone(func,1))}function mixin(object,source,options){var props=keys(source),methodNames=baseFunctions(source,props);null!=options||isObject(source)&&(methodNames.length||!props.length)||(options=source,source=object,object=this,methodNames=baseFunctions(source,keys(source)));var chain=!(isObject(options)&&"chain"in options)||!!options.chain,isFunc=isFunction(object);arrayEach(methodNames,function(methodName){var func=source[methodName];object[methodName]=func;isFunc&&(object.prototype[methodName]=
function(){var chainAll=this.__chain__;if(chain||chainAll){var result=object(this.__wrapped__);(result.__actions__=copyArray(this.__actions__)).push({func:func,args:arguments,thisArg:object});result.__chain__=chainAll;return result}return func.apply(object,arrayPush([this.value()],arguments))})});return object}function noop(){}function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}function stubArray(){return[]}function stubFalse(){return!1}context=null==context?
root:_.defaults(root.Object(),context,_.pick(root,contextProps));var Array=context.Array,Date=context.Date,Error=context.Error,Function=context.Function,Math=context.Math,Object=context.Object,RegExp=context.RegExp,String=context.String,TypeError=context.TypeError,arrayProto=Array.prototype,objectProto=Object.prototype,coreJsData=context["__core-js_shared__"],funcToString=Function.prototype.toString,hasOwnProperty=objectProto.hasOwnProperty,idCounter=0,maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&
coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}(),nativeObjectToString=objectProto.toString,objectCtorString=funcToString.call(Object),oldDash=root._,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Buffer=moduleExports?context.Buffer:undefined,Symbol=context.Symbol,Uint8Array=context.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=
overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined,symIterator=Symbol?Symbol.iterator:undefined,symToStringTag=Symbol?Symbol.toStringTag:undefined,defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}(),ctxClearTimeout=context.clearTimeout!==root.clearTimeout&&context.clearTimeout,ctxNow=
Date&&Date.now!==root.Date.now&&Date.now,ctxSetTimeout=context.setTimeout!==root.setTimeout&&context.setTimeout,nativeCeil=Math.ceil,nativeFloor=Math.floor,nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeIsFinite=context.isFinite,nativeJoin=arrayProto.join,nativeKeys=overArg(Object.keys,Object),nativeMax=Math.max,nativeMin=Math.min,nativeNow=Date.now,nativeParseInt=context.parseInt,nativeRandom=Math.random,nativeReverse=arrayProto.reverse,DataView=
getNative(context,"DataView"),Map=getNative(context,"Map"),Promise=getNative(context,"Promise"),Set=getNative(context,"Set"),WeakMap=getNative(context,"WeakMap"),nativeCreate=getNative(Object,"create"),metaMap=WeakMap&&new WeakMap,realNames={},dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap),symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:
undefined,symbolToString=symbolProto?symbolProto.toString:undefined,baseCreate=function(){function object(){}return function(proto){if(!isObject(proto))return{};if(objectCreate)return objectCreate(proto);object.prototype=proto;proto=new object;object.prototype=undefined;return proto}}();lodash.templateSettings={escape:reEscape,evaluate:reEvaluate,interpolate:reInterpolate,variable:"",imports:{_:lodash}};lodash.prototype=baseLodash.prototype;lodash.prototype.constructor=lodash;LodashWrapper.prototype=
baseCreate(baseLodash.prototype);LodashWrapper.prototype.constructor=LodashWrapper;LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.constructor=LazyWrapper;Hash.prototype.clear=function(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0};Hash.prototype["delete"]=function(key){key=this.has(key)&&delete this.__data__[key];this.size-=key?1:0;return key};Hash.prototype.get=function(key){var data=this.__data__;return nativeCreate?(key=data[key],"__lodash_hash_undefined__"===
key?undefined:key):hasOwnProperty.call(data,key)?data[key]:undefined};Hash.prototype.has=function(key){var data=this.__data__;return nativeCreate?undefined!==data[key]:hasOwnProperty.call(data,key)};Hash.prototype.set=function(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&undefined===value?"__lodash_hash_undefined__":value;return this};ListCache.prototype.clear=function(){this.__data__=[];this.size=0};ListCache.prototype["delete"]=function(key){var data=this.__data__;
key=assocIndexOf(data,key);if(0>key)return!1;key==data.length-1?data.pop():splice.call(data,key,1);--this.size;return!0};ListCache.prototype.get=function(key){var data=this.__data__;key=assocIndexOf(data,key);return 0>key?undefined:data[key][1]};ListCache.prototype.has=function(key){return-1<assocIndexOf(this.__data__,key)};ListCache.prototype.set=function(key,value){var data=this.__data__,index=assocIndexOf(data,key);0>index?(++this.size,data.push([key,value])):data[index][1]=value;return this};
MapCache.prototype.clear=function(){this.size=0;this.__data__={hash:new Hash,map:new (Map||ListCache),string:new Hash}};MapCache.prototype["delete"]=function(key){key=getMapData(this,key)["delete"](key);this.size-=key?1:0;return key};MapCache.prototype.get=function(key){return getMapData(this,key).get(key)};MapCache.prototype.has=function(key){return getMapData(this,key).has(key)};MapCache.prototype.set=function(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=
data.size==size?0:1;return this};SetCache.prototype.add=SetCache.prototype.push=function(value){this.__data__.set(value,"__lodash_hash_undefined__");return this};SetCache.prototype.has=function(value){return this.__data__.has(value)};Stack.prototype.clear=function(){this.__data__=new ListCache;this.size=0};Stack.prototype["delete"]=function(key){var data=this.__data__;key=data["delete"](key);this.size=data.size;return key};Stack.prototype.get=function(key){return this.__data__.get(key)};Stack.prototype.has=
function(key){return this.__data__.has(key)};Stack.prototype.set=function(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||199>pairs.length)return pairs.push([key,value]),this.size=++data.size,this;data=this.__data__=new MapCache(pairs)}data.set(key,value);this.size=data.size;return this};var baseEach=createBaseEach(baseForOwn),baseEachRight=createBaseEach(baseForOwnRight,!0),baseFor=createBaseFor(),baseForRight=createBaseFor(!0),baseSetData=metaMap?
function(func,data){metaMap.set(func,data);return func}:identity,baseSetToString=defineProperty?function(func,string){return defineProperty(func,"toString",{configurable:!0,enumerable:!1,value:constant(string),writable:!0})}:identity,clearTimeout=ctxClearTimeout||function(id){return root.clearTimeout(id)},createSet=Set&&1/setToArray(new Set([,-0]))[1]==INFINITY?function(values){return new Set(values)}:noop,getData=metaMap?function(func){return metaMap.get(func)}:noop,getSymbols=nativeGetSymbols?function(object){if(null==
object)return[];object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol)})}:stubArray,getSymbolsIn=nativeGetSymbols?function(object){for(var result=[];object;)arrayPush(result,getSymbols(object)),object=getPrototype(object);return result}:stubArray,getTag=baseGetTag;if(DataView&&"[object DataView]"!=getTag(new DataView(new ArrayBuffer(1)))||Map&&"[object Map]"!=getTag(new Map)||Promise&&"[object Promise]"!=getTag(Promise.resolve())||
Set&&"[object Set]"!=getTag(new Set)||WeakMap&&"[object WeakMap]"!=getTag(new WeakMap))getTag=function(value){var result=baseGetTag(value);if(value=(value="[object Object]"==result?value.constructor:undefined)?toSource(value):"")switch(value){case dataViewCtorString:return"[object DataView]";case mapCtorString:return"[object Map]";case promiseCtorString:return"[object Promise]";case setCtorString:return"[object Set]";case weakMapCtorString:return"[object WeakMap]"}return result};var isMaskable=coreJsData?
isFunction:stubFalse,setData=shortOut(baseSetData),setTimeout=ctxSetTimeout||function(func,wait){return root.setTimeout(func,wait)},setToString=shortOut(baseSetToString),stringToPath=function(func){func=memoize(func,function(key){500===cache.size&&cache.clear();return key});var cache=func.cache;return func}(function(string){var result=[];46===string.charCodeAt(0)&&result.push("");string.replace(rePropName,function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):
number||match)});return result}),difference=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0)):[]}),differenceBy=baseRest(function(array,values){var iteratee=last(values);isArrayLikeObject(iteratee)&&(iteratee=undefined);return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),getIteratee(iteratee,2)):[]}),differenceWith=baseRest(function(array,values){var comparator=last(values);isArrayLikeObject(comparator)&&
(comparator=undefined);return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,!0),undefined,comparator):[]}),intersection=baseRest(function(arrays){var mapped=arrayMap(arrays,castArrayLikeObject);return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped):[]}),intersectionBy=baseRest(function(arrays){var iteratee=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);iteratee===last(mapped)?iteratee=undefined:mapped.pop();return mapped.length&&mapped[0]===
arrays[0]?baseIntersection(mapped,getIteratee(iteratee,2)):[]}),intersectionWith=baseRest(function(arrays){var comparator=last(arrays),mapped=arrayMap(arrays,castArrayLikeObject);(comparator="function"==typeof comparator?comparator:undefined)&&mapped.pop();return mapped.length&&mapped[0]===arrays[0]?baseIntersection(mapped,undefined,comparator):[]}),pull=baseRest(pullAll),pullAt=flatRest(function(array,indexes){var length=null==array?0:array.length,result=baseAt(array,indexes);basePullAt(array,arrayMap(indexes,
function(index){return isIndex(index,length)?+index:index}).sort(compareAscending));return result}),union=baseRest(function(arrays){return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0))}),unionBy=baseRest(function(arrays){var iteratee=last(arrays);isArrayLikeObject(iteratee)&&(iteratee=undefined);return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),getIteratee(iteratee,2))}),unionWith=baseRest(function(arrays){var comparator=last(arrays);comparator="function"==typeof comparator?comparator:
undefined;return baseUniq(baseFlatten(arrays,1,isArrayLikeObject,!0),undefined,comparator)}),without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[]}),xor=baseRest(function(arrays){return baseXor(arrayFilter(arrays,isArrayLikeObject))}),xorBy=baseRest(function(arrays){var iteratee=last(arrays);isArrayLikeObject(iteratee)&&(iteratee=undefined);return baseXor(arrayFilter(arrays,isArrayLikeObject),getIteratee(iteratee,2))}),xorWith=baseRest(function(arrays){var comparator=
last(arrays);comparator="function"==typeof comparator?comparator:undefined;return baseXor(arrayFilter(arrays,isArrayLikeObject),undefined,comparator)}),zip=baseRest(unzip),zipWith=baseRest(function(arrays){var length=arrays.length;length=1<length?arrays[length-1]:undefined;length="function"==typeof length?(arrays.pop(),length):undefined;return unzipWith(arrays,length)}),wrapperAt=flatRest(function(paths){var length=paths.length,start=length?paths[0]:0,value=this.__wrapped__,interceptor=function(object){return baseAt(object,
paths)};if(1<length||this.__actions__.length||!(value instanceof LazyWrapper)||!isIndex(start))return this.thru(interceptor);value=value.slice(start,+start+(length?1:0));value.__actions__.push({func:thru,args:[interceptor],thisArg:undefined});return(new LodashWrapper(value,this.__chain__)).thru(function(array){length&&!array.length&&array.push(undefined);return array})}),countBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?++result[key]:baseAssignValue(result,key,1)}),
find=createFind(findIndex),findLast=createFind(findLastIndex),groupBy=createAggregator(function(result,value,key){hasOwnProperty.call(result,key)?result[key].push(value):baseAssignValue(result,key,[value])}),invokeMap=baseRest(function(collection,path,args){var index=-1,isFunc="function"==typeof path,result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,function(value){result[++index]=isFunc?apply(path,value,args):baseInvoke(value,path,args)});return result}),keyBy=createAggregator(function(result,
value,key){baseAssignValue(result,key,value)}),partition=createAggregator(function(result,value,key){result[key?0:1].push(value)},function(){return[[],[]]}),sortBy=baseRest(function(collection,iteratees){if(null==collection)return[];var length=iteratees.length;1<length&&isIterateeCall(collection,iteratees[0],iteratees[1])?iteratees=[]:2<length&&isIterateeCall(iteratees[0],iteratees[1],iteratees[2])&&(iteratees=[iteratees[0]]);return baseOrderBy(collection,baseFlatten(iteratees,1),[])}),now=ctxNow||
function(){return root.Date.now()},bind=baseRest(function(func,thisArg,partials){var bitmask=1;if(partials.length){var holders=replaceHolders(partials,getHolder(bind));bitmask|=32}return createWrap(func,bitmask,thisArg,partials,holders)}),bindKey=baseRest(function(object,key,partials){var bitmask=3;if(partials.length){var holders=replaceHolders(partials,getHolder(bindKey));bitmask|=32}return createWrap(key,bitmask,object,partials,holders)}),defer=baseRest(function(func,args){return baseDelay(func,
1,args)}),delay=baseRest(function(func,wait,args){return baseDelay(func,toNumber(wait)||0,args)});memoize.Cache=MapCache;var overArgs=baseRest(function(func,transforms){transforms=1==transforms.length&&isArray(transforms[0])?arrayMap(transforms[0],baseUnary(getIteratee())):arrayMap(baseFlatten(transforms,1),baseUnary(getIteratee()));var funcsLength=transforms.length;return baseRest(function(args){for(var index=-1,length=nativeMin(args.length,funcsLength);++index<length;)args[index]=transforms[index].call(this,
args[index]);return apply(func,this,args)})}),partial=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partial));return createWrap(func,32,undefined,partials,holders)}),partialRight=baseRest(function(func,partials){var holders=replaceHolders(partials,getHolder(partialRight));return createWrap(func,64,undefined,partials,holders)}),rearg=flatRest(function(func,indexes){return createWrap(func,256,undefined,undefined,undefined,indexes)}),gt=createRelationalOperation(baseGt),
gte=createRelationalOperation(function(value,other){return value>=other}),isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")},isArray=Array.isArray,isArrayBuffer=nodeIsArrayBuffer?baseUnary(nodeIsArrayBuffer):baseIsArrayBuffer,isBuffer=nativeIsBuffer||stubFalse,isDate=nodeIsDate?baseUnary(nodeIsDate):baseIsDate,isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,
isRegExp=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp,isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,lt=createRelationalOperation(baseLt),lte=createRelationalOperation(function(value,other){return value<=other}),assign=createAssigner(function(object,source){if(isPrototype(source)||isArrayLike(source))copyObject(source,keys(source),object);else for(var key in source)hasOwnProperty.call(source,key)&&assignValue(object,key,
source[key])}),assignIn=createAssigner(function(object,source){copyObject(source,keysIn(source),object)}),assignInWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keysIn(source),object,customizer)}),assignWith=createAssigner(function(object,source,srcIndex,customizer){copyObject(source,keys(source),object,customizer)}),at=flatRest(baseAt),defaults=baseRest(function(object,sources){object=Object(object);var index=-1,length=sources.length,guard=2<length?sources[2]:undefined;
for(guard&&isIterateeCall(sources[0],sources[1],guard)&&(length=1);++index<length;){guard=sources[index];for(var props=keysIn(guard),propsIndex=-1,propsLength=props.length;++propsIndex<propsLength;){var key=props[propsIndex],value=object[key];if(undefined===value||eq(value,objectProto[key])&&!hasOwnProperty.call(object,key))object[key]=guard[key]}}return object}),defaultsDeep=baseRest(function(args){args.push(undefined,customDefaultsMerge);return apply(mergeWith,undefined,args)}),invert=createInverter(function(result,
value,key){null!=value&&"function"!=typeof value.toString&&(value=nativeObjectToString.call(value));result[value]=key},constant(identity)),invertBy=createInverter(function(result,value,key){null!=value&&"function"!=typeof value.toString&&(value=nativeObjectToString.call(value));hasOwnProperty.call(result,value)?result[value].push(key):result[value]=[key]},getIteratee),invoke=baseRest(baseInvoke),merge=createAssigner(function(object,source,srcIndex){baseMerge(object,source,srcIndex)}),mergeWith=createAssigner(function(object,
source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer)}),omit=flatRest(function(object,paths){var result={};if(null==object)return result;var isDeep=!1;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=1<path.length);return path});copyObject(object,getAllKeysIn(object),result);isDeep&&(result=baseClone(result,7,customOmitClone));for(var length=paths.length;length--;)baseUnset(result,paths[length]);return result}),pick=flatRest(function(object,paths){return null==
object?{}:basePick(object,paths)}),toPairs=createToPairs(keys),toPairsIn=createToPairs(keysIn),camelCase=createCompounder(function(result,word,index){word=word.toLowerCase();return result+(index?capitalize(word):word)}),kebabCase=createCompounder(function(result,word,index){return result+(index?"-":"")+word.toLowerCase()}),lowerCase=createCompounder(function(result,word,index){return result+(index?" ":"")+word.toLowerCase()}),lowerFirst=createCaseFirst("toLowerCase"),snakeCase=createCompounder(function(result,
word,index){return result+(index?"_":"")+word.toLowerCase()}),startCase=createCompounder(function(result,word,index){return result+(index?" ":"")+upperFirst(word)}),upperCase=createCompounder(function(result,word,index){return result+(index?" ":"")+word.toUpperCase()}),upperFirst=createCaseFirst("toUpperCase"),attempt=baseRest(function(func,args){try{return apply(func,undefined,args)}catch(e){return isError(e)?e:new Error(e)}}),bindAll=flatRest(function(object,methodNames){arrayEach(methodNames,function(key){key=
toKey(key);baseAssignValue(object,key,bind(object[key],object))});return object}),flow=createFlow(),flowRight=createFlow(!0),method=baseRest(function(path,args){return function(object){return baseInvoke(object,path,args)}}),methodOf=baseRest(function(object,args){return function(path){return baseInvoke(object,path,args)}}),over=createOver(arrayMap),overEvery=createOver(arrayEvery),overSome=createOver(arraySome),range=createRange(),rangeRight=createRange(!0),add=createMathOperation(function(augend,
addend){return augend+addend},0),ceil=createRound("ceil"),divide=createMathOperation(function(dividend,divisor){return dividend/divisor},1),floor=createRound("floor"),multiply=createMathOperation(function(multiplier,multiplicand){return multiplier*multiplicand},1),round=createRound("round"),subtract=createMathOperation(function(minuend,subtrahend){return minuend-subtrahend},0);lodash.after=function(n,func){if("function"!=typeof func)throw new TypeError("Expected a function");n=toInteger(n);return function(){if(1>
--n)return func.apply(this,arguments)}};lodash.ary=ary$jscomp$0;lodash.assign=assign;lodash.assignIn=assignIn;lodash.assignInWith=assignInWith;lodash.assignWith=assignWith;lodash.at=at;lodash.before=before;lodash.bind=bind;lodash.bindAll=bindAll;lodash.bindKey=bindKey;lodash.castArray=function(){if(!arguments.length)return[];var value=arguments[0];return isArray(value)?value:[value]};lodash.chain=chain$jscomp$0;lodash.chunk=function(array,size,guard){size=(guard?isIterateeCall(array,size,guard):undefined===
size)?1:nativeMax(toInteger(size),0);guard=null==array?0:array.length;if(!guard||1>size)return[];for(var index=0,resIndex=0,result=Array(nativeCeil(guard/size));index<guard;)result[resIndex++]=baseSlice(array,index,index+=size);return result};lodash.compact=function(array){for(var index=-1,length=null==array?0:array.length,resIndex=0,result=[];++index<length;){var value=array[index];value&&(result[resIndex++]=value)}return result};lodash.concat=function(){var length=arguments.length;if(!length)return[];
for(var args=Array(length-1),array=arguments[0];length--;)args[length-1]=arguments[length];return arrayPush(isArray(array)?copyArray(array):[array],baseFlatten(args,1))};lodash.cond=function(pairs){var length=null==pairs?0:pairs.length,toIteratee=getIteratee();pairs=length?arrayMap(pairs,function(pair){if("function"!=typeof pair[1])throw new TypeError("Expected a function");return[toIteratee(pair[0]),pair[1]]}):[];return baseRest(function(args){for(var index=-1;++index<length;){var pair=pairs[index];
if(apply(pair[0],this,args))return apply(pair[1],this,args)}})};lodash.conforms=function(source){return baseConforms(baseClone(source,1))};lodash.constant=constant;lodash.countBy=countBy;lodash.create=function(prototype,properties){prototype=baseCreate(prototype);return null==properties?prototype:baseAssign(prototype,properties)};lodash.curry=curry;lodash.curryRight=curryRight;lodash.debounce=debounce;lodash.defaults=defaults;lodash.defaultsDeep=defaultsDeep;lodash.defer=defer;lodash.delay=delay;
lodash.difference=difference;lodash.differenceBy=differenceBy;lodash.differenceWith=differenceWith;lodash.drop=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);return baseSlice(array,0>n?0:n,length)};lodash.dropRight=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);n=length-n;return baseSlice(array,0,0>n?0:n)};lodash.dropRightWhile=function(array,predicate){return array&&
array.length?baseWhile(array,getIteratee(predicate,3),!0,!0):[]};lodash.dropWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!0):[]};lodash.fill=function(array,value,start,end){var length=null==array?0:array.length;if(!length)return[];start&&"number"!=typeof start&&isIterateeCall(array,value,start)&&(start=0,end=length);length=array.length;start=toInteger(start);0>start&&(start=-start>length?0:length+start);end=undefined===end||end>length?length:
toInteger(end);0>end&&(end+=length);for(end=start>end?0:toLength(end);start<end;)array[start++]=value;return array};lodash.filter=function(collection,predicate){return(isArray(collection)?arrayFilter:baseFilter)(collection,getIteratee(predicate,3))};lodash.flatMap=function(collection,iteratee){return baseFlatten(map$jscomp$0(collection,iteratee),1)};lodash.flatMapDeep=function(collection,iteratee){return baseFlatten(map$jscomp$0(collection,iteratee),INFINITY)};lodash.flatMapDepth=function(collection,
iteratee,depth){depth=undefined===depth?1:toInteger(depth);return baseFlatten(map$jscomp$0(collection,iteratee),depth)};lodash.flatten=flatten;lodash.flattenDeep=function(array){return(null==array?0:array.length)?baseFlatten(array,INFINITY):[]};lodash.flattenDepth=function(array,depth){if(null==array||!array.length)return[];depth=undefined===depth?1:toInteger(depth);return baseFlatten(array,depth)};lodash.flip=function(func){return createWrap(func,512)};lodash.flow=flow;lodash.flowRight=flowRight;
lodash.fromPairs=function(pairs){for(var index=-1,length=null==pairs?0:pairs.length,result={};++index<length;){var pair=pairs[index];result[pair[0]]=pair[1]}return result};lodash.functions=function(object){return null==object?[]:baseFunctions(object,keys(object))};lodash.functionsIn=function(object){return null==object?[]:baseFunctions(object,keysIn(object))};lodash.groupBy=groupBy;lodash.initial=function(array){return(null==array?0:array.length)?baseSlice(array,0,-1):[]};lodash.intersection=intersection;
lodash.intersectionBy=intersectionBy;lodash.intersectionWith=intersectionWith;lodash.invert=invert;lodash.invertBy=invertBy;lodash.invokeMap=invokeMap;lodash.iteratee=iteratee$jscomp$0;lodash.keyBy=keyBy;lodash.keys=keys;lodash.keysIn=keysIn;lodash.map=map$jscomp$0;lodash.mapKeys=function(object$jscomp$0,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object$jscomp$0,function(value,key,object){baseAssignValue(result,iteratee(value,key,object),value)});return result};lodash.mapValues=
function(object$jscomp$0,iteratee){var result={};iteratee=getIteratee(iteratee,3);baseForOwn(object$jscomp$0,function(value,key,object){baseAssignValue(result,key,iteratee(value,key,object))});return result};lodash.matches=function(source){return baseMatches(baseClone(source,1))};lodash.matchesProperty=function(path,srcValue){return baseMatchesProperty(path,baseClone(srcValue,1))};lodash.memoize=memoize;lodash.merge=merge;lodash.mergeWith=mergeWith;lodash.method=method;lodash.methodOf=methodOf;lodash.mixin=
mixin;lodash.negate=negate;lodash.nthArg=function(n){n=toInteger(n);return baseRest(function(args){return baseNth(args,n)})};lodash.omit=omit;lodash.omitBy=function(object,predicate){return pickBy(object,negate(getIteratee(predicate)))};lodash.once=function(func){return before(2,func)};lodash.orderBy=function(collection,iteratees,orders,guard){if(null==collection)return[];isArray(iteratees)||(iteratees=null==iteratees?[]:[iteratees]);orders=guard?undefined:orders;isArray(orders)||(orders=null==orders?
[]:[orders]);return baseOrderBy(collection,iteratees,orders)};lodash.over=over;lodash.overArgs=overArgs;lodash.overEvery=overEvery;lodash.overSome=overSome;lodash.partial=partial;lodash.partialRight=partialRight;lodash.partition=partition;lodash.pick=pick;lodash.pickBy=pickBy;lodash.property=property;lodash.propertyOf=function(object){return function(path){return null==object?undefined:baseGet(object,path)}};lodash.pull=pull;lodash.pullAll=pullAll;lodash.pullAllBy=function(array,values,iteratee){return array&&
array.length&&values&&values.length?basePullAll(array,values,getIteratee(iteratee,2)):array};lodash.pullAllWith=function(array,values,comparator){return array&&array.length&&values&&values.length?basePullAll(array,values,undefined,comparator):array};lodash.pullAt=pullAt;lodash.range=range;lodash.rangeRight=rangeRight;lodash.rearg=rearg;lodash.reject=function(collection,predicate){return(isArray(collection)?arrayFilter:baseFilter)(collection,negate(getIteratee(predicate,3)))};lodash.remove=function(array,
predicate){var result=[];if(!array||!array.length)return result;var index=-1,indexes=[],length=array.length;for(predicate=getIteratee(predicate,3);++index<length;){var value=array[index];predicate(value,index,array)&&(result.push(value),indexes.push(index))}basePullAt(array,indexes);return result};lodash.rest=function(func,start){if("function"!=typeof func)throw new TypeError("Expected a function");start=undefined===start?start:toInteger(start);return baseRest(func,start)};lodash.reverse=reverse;
lodash.sampleSize=function(collection,n,guard){n=(guard?isIterateeCall(collection,n,guard):undefined===n)?1:toInteger(n);return(isArray(collection)?arraySampleSize:baseSampleSize)(collection,n)};lodash.set=function(object,path,value){return null==object?object:baseSet(object,path,value)};lodash.setWith=function(object,path,value,customizer){customizer="function"==typeof customizer?customizer:undefined;return null==object?object:baseSet(object,path,value,customizer)};lodash.shuffle=function(collection){return(isArray(collection)?
arrayShuffle:baseShuffle)(collection)};lodash.slice=function(array,start,end){var length=null==array?0:array.length;if(!length)return[];end&&"number"!=typeof end&&isIterateeCall(array,start,end)?(start=0,end=length):(start=null==start?0:toInteger(start),end=undefined===end?length:toInteger(end));return baseSlice(array,start,end)};lodash.sortBy=sortBy;lodash.sortedUniq=function(array){return array&&array.length?baseSortedUniq(array):[]};lodash.sortedUniqBy=function(array,iteratee){return array&&array.length?
baseSortedUniq(array,getIteratee(iteratee,2)):[]};lodash.split=function(string,separator,limit){limit&&"number"!=typeof limit&&isIterateeCall(string,separator,limit)&&(separator=limit=undefined);limit=undefined===limit?4294967295:limit>>>0;return limit?(string=toString(string))&&("string"==typeof separator||null!=separator&&!isRegExp(separator))&&(separator=baseToString(separator),!separator&&reHasUnicode.test(string))?castSlice(stringToArray(string),0,limit):string.split(separator,limit):[]};lodash.spread=
function(func,start){if("function"!=typeof func)throw new TypeError("Expected a function");start=null==start?0:nativeMax(toInteger(start),0);return baseRest(function(args){var array=args[start];args=castSlice(args,0,start);array&&arrayPush(args,array);return apply(func,this,args)})};lodash.tail=function(array){var length=null==array?0:array.length;return length?baseSlice(array,1,length):[]};lodash.take=function(array,n,guard){if(!array||!array.length)return[];n=guard||undefined===n?1:toInteger(n);
return baseSlice(array,0,0>n?0:n)};lodash.takeRight=function(array,n,guard){var length=null==array?0:array.length;if(!length)return[];n=guard||undefined===n?1:toInteger(n);n=length-n;return baseSlice(array,0>n?0:n,length)};lodash.takeRightWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3),!1,!0):[]};lodash.takeWhile=function(array,predicate){return array&&array.length?baseWhile(array,getIteratee(predicate,3)):[]};lodash.tap=function(value,interceptor){interceptor(value);
return value};lodash.throttle=function(func,wait,options){var leading=!0,trailing=!0;if("function"!=typeof func)throw new TypeError("Expected a function");isObject(options)&&(leading="leading"in options?!!options.leading:leading,trailing="trailing"in options?!!options.trailing:trailing);return debounce(func,wait,{leading:leading,maxWait:wait,trailing:trailing})};lodash.thru=thru;lodash.toArray=toArray;lodash.toPairs=toPairs;lodash.toPairsIn=toPairsIn;lodash.toPath=function(value){return isArray(value)?
arrayMap(value,toKey):isSymbol(value)?[value]:copyArray(stringToPath(toString(value)))};lodash.toPlainObject=toPlainObject;lodash.transform=function(object$jscomp$0,iteratee,accumulator){var isArr=isArray(object$jscomp$0),isArrLike=isArr||isBuffer(object$jscomp$0)||isTypedArray(object$jscomp$0);iteratee=getIteratee(iteratee,4);if(null==accumulator){var Ctor=object$jscomp$0&&object$jscomp$0.constructor;accumulator=isArrLike?isArr?new Ctor:[]:isObject(object$jscomp$0)?isFunction(Ctor)?baseCreate(getPrototype(object$jscomp$0)):
{}:{}}(isArrLike?arrayEach:baseForOwn)(object$jscomp$0,function(value,index,object){return iteratee(accumulator,value,index,object)});return accumulator};lodash.unary=function(func){return ary$jscomp$0(func,1)};lodash.union=union;lodash.unionBy=unionBy;lodash.unionWith=unionWith;lodash.uniq=function(array){return array&&array.length?baseUniq(array):[]};lodash.uniqBy=function(array,iteratee){return array&&array.length?baseUniq(array,getIteratee(iteratee,2)):[]};lodash.uniqWith=function(array,comparator){comparator=
"function"==typeof comparator?comparator:undefined;return array&&array.length?baseUniq(array,undefined,comparator):[]};lodash.unset=function(object,path){return null==object?!0:baseUnset(object,path)};lodash.unzip=unzip;lodash.unzipWith=unzipWith;lodash.update=function(object,path,updater){null!=object&&(updater=castFunction(updater),object=baseSet(object,path,updater(baseGet(object,path)),void 0));return object};lodash.updateWith=function(object,path,updater,customizer){customizer="function"==typeof customizer?
customizer:undefined;null!=object&&(updater=castFunction(updater),object=baseSet(object,path,updater(baseGet(object,path)),customizer));return object};lodash.values=values$jscomp$0;lodash.valuesIn=function(object){return null==object?[]:baseValues(object,keysIn(object))};lodash.without=without;lodash.words=words;lodash.wrap=function(value,wrapper){return partial(castFunction(wrapper),value)};lodash.xor=xor;lodash.xorBy=xorBy;lodash.xorWith=xorWith;lodash.zip=zip;lodash.zipObject=function(props,values){return baseZipObject(props||
[],values||[],assignValue)};lodash.zipObjectDeep=function(props,values){return baseZipObject(props||[],values||[],baseSet)};lodash.zipWith=zipWith;lodash.entries=toPairs;lodash.entriesIn=toPairsIn;lodash.extend=assignIn;lodash.extendWith=assignInWith;mixin(lodash,lodash);lodash.add=add;lodash.attempt=attempt;lodash.camelCase=camelCase;lodash.capitalize=capitalize;lodash.ceil=ceil;lodash.clamp=function(number,lower,upper){undefined===upper&&(upper=lower,lower=undefined);undefined!==upper&&(upper=toNumber(upper),
upper=upper===upper?upper:0);undefined!==lower&&(lower=toNumber(lower),lower=lower===lower?lower:0);return baseClamp(toNumber(number),lower,upper)};lodash.clone=function(value){return baseClone(value,4)};lodash.cloneDeep=function(value){return baseClone(value,5)};lodash.cloneDeepWith=function(value,customizer){customizer="function"==typeof customizer?customizer:undefined;return baseClone(value,5,customizer)};lodash.cloneWith=function(value,customizer){customizer="function"==typeof customizer?customizer:
undefined;return baseClone(value,4,customizer)};lodash.conformsTo=function(object,source){return null==source||baseConformsTo(object,source,keys(source))};lodash.deburr=deburr;lodash.defaultTo=function(value,defaultValue){return null==value||value!==value?defaultValue:value};lodash.divide=divide;lodash.endsWith=function(string,target,position){string=toString(string);target=baseToString(target);var length=string.length;length=position=undefined===position?length:baseClamp(toInteger(position),0,length);
position-=target.length;return 0<=position&&string.slice(position,length)==target};lodash.eq=eq;lodash.escape=function(string){return(string=toString(string))&&reHasUnescapedHtml.test(string)?string.replace(reUnescapedHtml,escapeHtmlChar):string};lodash.escapeRegExp=function(string){return(string=toString(string))&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,"\\$&"):string};lodash.every=function(collection,predicate,guard){var func=isArray(collection)?arrayEvery:baseEvery;guard&&isIterateeCall(collection,
predicate,guard)&&(predicate=undefined);return func(collection,getIteratee(predicate,3))};lodash.find=find;lodash.findIndex=findIndex;lodash.findKey=function(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwn)};lodash.findLast=findLast;lodash.findLastIndex=findLastIndex;lodash.findLastKey=function(object,predicate){return baseFindKey(object,getIteratee(predicate,3),baseForOwnRight)};lodash.floor=floor;lodash.forEach=forEach;lodash.forEachRight=forEachRight;lodash.forIn=
function(object,iteratee){return null==object?object:baseFor(object,getIteratee(iteratee,3),keysIn)};lodash.forInRight=function(object,iteratee){return null==object?object:baseForRight(object,getIteratee(iteratee,3),keysIn)};lodash.forOwn=function(object,iteratee){return object&&baseForOwn(object,getIteratee(iteratee,3))};lodash.forOwnRight=function(object,iteratee){return object&&baseForOwnRight(object,getIteratee(iteratee,3))};lodash.get=get;lodash.gt=gt;lodash.gte=gte;lodash.has=function(object,
path){return null!=object&&hasPath(object,path,baseHas)};lodash.hasIn=hasIn;lodash.head=head;lodash.identity=identity;lodash.includes=function(collection,value,fromIndex,guard){collection=isArrayLike(collection)?collection:values$jscomp$0(collection);fromIndex=fromIndex&&!guard?toInteger(fromIndex):0;guard=collection.length;0>fromIndex&&(fromIndex=nativeMax(guard+fromIndex,0));return isString(collection)?fromIndex<=guard&&-1<collection.indexOf(value,fromIndex):!!guard&&-1<baseIndexOf(collection,value,
fromIndex)};lodash.indexOf=function(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;fromIndex=null==fromIndex?0:toInteger(fromIndex);0>fromIndex&&(fromIndex=nativeMax(length+fromIndex,0));return baseIndexOf(array,value,fromIndex)};lodash.inRange=function(number,start,end){start=toFinite(start);undefined===end?(end=start,start=0):end=toFinite(end);number=toNumber(number);return number>=nativeMin(start,end)&&number<nativeMax(start,end)};lodash.invoke=invoke;lodash.isArguments=
isArguments;lodash.isArray=isArray;lodash.isArrayBuffer=isArrayBuffer;lodash.isArrayLike=isArrayLike;lodash.isArrayLikeObject=isArrayLikeObject;lodash.isBoolean=function(value){return!0===value||!1===value||isObjectLike(value)&&"[object Boolean]"==baseGetTag(value)};lodash.isBuffer=isBuffer;lodash.isDate=isDate;lodash.isElement=function(value){return isObjectLike(value)&&1===value.nodeType&&!isPlainObject(value)};lodash.isEmpty=function(value){if(null==value)return!0;if(isArrayLike(value)&&(isArray(value)||
"string"==typeof value||"function"==typeof value.splice||isBuffer(value)||isTypedArray(value)||isArguments(value)))return!value.length;var tag=getTag(value);if("[object Map]"==tag||"[object Set]"==tag)return!value.size;if(isPrototype(value))return!baseKeys(value).length;for(var key in value)if(hasOwnProperty.call(value,key))return!1;return!0};lodash.isEqual=function(value,other){return baseIsEqual(value,other)};lodash.isEqualWith=function(value,other,customizer){var result=(customizer="function"==
typeof customizer?customizer:undefined)?customizer(value,other):undefined;return undefined===result?baseIsEqual(value,other,undefined,customizer):!!result};lodash.isError=isError;lodash.isFinite=function(value){return"number"==typeof value&&nativeIsFinite(value)};lodash.isFunction=isFunction;lodash.isInteger=isInteger;lodash.isLength=isLength;lodash.isMap=isMap;lodash.isMatch=function(object,source){return object===source||baseIsMatch(object,source,getMatchData(source))};lodash.isMatchWith=function(object,
source,customizer){customizer="function"==typeof customizer?customizer:undefined;return baseIsMatch(object,source,getMatchData(source),customizer)};lodash.isNaN=function(value){return isNumber(value)&&value!=+value};lodash.isNative=function(value){if(isMaskable(value))throw new Error("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return baseIsNative(value)};lodash.isNil=function(value){return null==value};lodash.isNull=function(value){return null===value};lodash.isNumber=isNumber;
lodash.isObject=isObject;lodash.isObjectLike=isObjectLike;lodash.isPlainObject=isPlainObject;lodash.isRegExp=isRegExp;lodash.isSafeInteger=function(value){return isInteger(value)&&-9007199254740991<=value&&9007199254740991>=value};lodash.isSet=isSet;lodash.isString=isString;lodash.isSymbol=isSymbol;lodash.isTypedArray=isTypedArray;lodash.isUndefined=function(value){return undefined===value};lodash.isWeakMap=function(value){return isObjectLike(value)&&"[object WeakMap]"==getTag(value)};lodash.isWeakSet=
function(value){return isObjectLike(value)&&"[object WeakSet]"==baseGetTag(value)};lodash.join=function(array,separator){return null==array?"":nativeJoin.call(array,separator)};lodash.kebabCase=kebabCase;lodash.last=last;lodash.lastIndexOf=function(array,value,fromIndex){var length=null==array?0:array.length;if(!length)return-1;var index=length;undefined!==fromIndex&&(index=toInteger(fromIndex),index=0>index?nativeMax(length+index,0):nativeMin(index,length-1));if(value===value)a:{for(fromIndex=index+
1;fromIndex--;)if(array[fromIndex]===value){array=fromIndex;break a}array=fromIndex}else array=baseFindIndex(array,baseIsNaN,index,!0);return array};lodash.lowerCase=lowerCase;lodash.lowerFirst=lowerFirst;lodash.lt=lt;lodash.lte=lte;lodash.max=function(array){return array&&array.length?baseExtremum(array,identity,baseGt):undefined};lodash.maxBy=function(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseGt):undefined};lodash.mean=function(array){return baseMean(array,
identity)};lodash.meanBy=function(array,iteratee){return baseMean(array,getIteratee(iteratee,2))};lodash.min=function(array){return array&&array.length?baseExtremum(array,identity,baseLt):undefined};lodash.minBy=function(array,iteratee){return array&&array.length?baseExtremum(array,getIteratee(iteratee,2),baseLt):undefined};lodash.stubArray=stubArray;lodash.stubFalse=stubFalse;lodash.stubObject=function(){return{}};lodash.stubString=function(){return""};lodash.stubTrue=function(){return!0};lodash.multiply=
multiply;lodash.nth=function(array,n){return array&&array.length?baseNth(array,toInteger(n)):undefined};lodash.noConflict=function(){root._===this&&(root._=oldDash);return this};lodash.noop=noop;lodash.now=now;lodash.pad=function(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;if(!length||strLength>=length)return string;length=(length-strLength)/2;return createPadding(nativeFloor(length),chars)+string+createPadding(nativeCeil(length),chars)};
lodash.padEnd=function(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLength<length?string+createPadding(length-strLength,chars):string};lodash.padStart=function(string,length,chars){string=toString(string);var strLength=(length=toInteger(length))?stringSize(string):0;return length&&strLength<length?createPadding(length-strLength,chars)+string:string};lodash.parseInt=function(string,radix,guard){guard||null==radix?radix=
0:radix&&(radix=+radix);return nativeParseInt(toString(string).replace(reTrimStart,""),radix||0)};lodash.random=function(lower,upper,floating){floating&&"boolean"!=typeof floating&&isIterateeCall(lower,upper,floating)&&(upper=floating=undefined);undefined===floating&&("boolean"==typeof upper?(floating=upper,upper=undefined):"boolean"==typeof lower&&(floating=lower,lower=undefined));undefined===lower&&undefined===upper?(lower=0,upper=1):(lower=toFinite(lower),undefined===upper?(upper=lower,lower=0):
upper=toFinite(upper));if(lower>upper){var temp=lower;lower=upper;upper=temp}return floating||lower%1||upper%1?(floating=nativeRandom(),nativeMin(lower+floating*(upper-lower+freeParseFloat("1e-"+((floating+"").length-1))),upper)):baseRandom(lower,upper)};lodash.reduce=function(collection,iteratee,accumulator){var func=isArray(collection)?arrayReduce:baseReduce,initAccum=3>arguments.length;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEach)};lodash.reduceRight=function(collection,
iteratee,accumulator){var func=isArray(collection)?arrayReduceRight:baseReduce,initAccum=3>arguments.length;return func(collection,getIteratee(iteratee,4),accumulator,initAccum,baseEachRight)};lodash.repeat=function(string,n,guard){n=(guard?isIterateeCall(string,n,guard):undefined===n)?1:toInteger(n);return baseRepeat(toString(string),n)};lodash.replace=function(){var args=arguments,string=toString(args[0]);return 3>args.length?string:string.replace(args[1],args[2])};lodash.result=function(object,
path,defaultValue){path=castPath(path,object);var index=-1,length=path.length;length||(length=1,object=undefined);for(;++index<length;){var value=null==object?undefined:object[toKey(path[index])];undefined===value&&(index=length,value=defaultValue);object=isFunction(value)?value.call(object):value}return object};lodash.round=round;lodash.runInContext=runInContext;lodash.sample=function(collection){return(isArray(collection)?arraySample:baseSample)(collection)};lodash.size=function(collection){if(null==
collection)return 0;if(isArrayLike(collection))return isString(collection)?stringSize(collection):collection.length;var tag=getTag(collection);return"[object Map]"==tag||"[object Set]"==tag?collection.size:baseKeys(collection).length};lodash.snakeCase=snakeCase;lodash.some=function(collection,predicate,guard){var func=isArray(collection)?arraySome:baseSome;guard&&isIterateeCall(collection,predicate,guard)&&(predicate=undefined);return func(collection,getIteratee(predicate,3))};lodash.sortedIndex=
function(array,value){return baseSortedIndex(array,value)};lodash.sortedIndexBy=function(array,value,iteratee){return baseSortedIndexBy(array,value,getIteratee(iteratee,2))};lodash.sortedIndexOf=function(array,value){var length=null==array?0:array.length;if(length){var index=baseSortedIndex(array,value);if(index<length&&eq(array[index],value))return index}return-1};lodash.sortedLastIndex=function(array,value){return baseSortedIndex(array,value,!0)};lodash.sortedLastIndexBy=function(array,value,iteratee){return baseSortedIndexBy(array,
value,getIteratee(iteratee,2),!0)};lodash.sortedLastIndexOf=function(array,value){if(null==array?0:array.length){var index=baseSortedIndex(array,value,!0)-1;if(eq(array[index],value))return index}return-1};lodash.startCase=startCase;lodash.startsWith=function(string,target,position){string=toString(string);position=null==position?0:baseClamp(toInteger(position),0,string.length);target=baseToString(target);return string.slice(position,position+target.length)==target};lodash.subtract=subtract;lodash.sum=
function(array){return array&&array.length?baseSum(array,identity):0};lodash.sumBy=function(array,iteratee){return array&&array.length?baseSum(array,getIteratee(iteratee,2)):0};lodash.template=function(string,options,guard){var settings=lodash.templateSettings;guard&&isIterateeCall(string,options,guard)&&(options=undefined);string=toString(string);options=assignInWith({},options,settings,customDefaultsAssignIn);guard=assignInWith({},options.imports,settings.imports,customDefaultsAssignIn);var importsKeys=
keys(guard),importsValues=baseValues(guard,importsKeys),isEscaping,isEvaluating,index=0;guard=options.interpolate||reNoMatch;var source="__p += '";guard=RegExp((options.escape||reNoMatch).source+"|"+guard.source+"|"+(guard===reInterpolate?reEsTemplate:reNoMatch).source+"|"+(options.evaluate||reNoMatch).source+"|$","g");var sourceURL="//# sourceURL="+(hasOwnProperty.call(options,"sourceURL")?(options.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++templateCounter+"]")+"\n";string.replace(guard,
function(match,escapeValue,interpolateValue,esTemplateValue,evaluateValue,offset){interpolateValue||(interpolateValue=esTemplateValue);source+=string.slice(index,offset).replace(reUnescapedString,escapeStringChar);escapeValue&&(isEscaping=!0,source+="' +\n__e("+escapeValue+") +\n'");evaluateValue&&(isEvaluating=!0,source+="';\n"+evaluateValue+";\n__p += '");interpolateValue&&(source+="' +\n((__t = ("+interpolateValue+")) == null ? '' : __t) +\n'");index=offset+match.length;return match});source+=
"';\n";options=hasOwnProperty.call(options,"variable")&&options.variable;if(!options)source="with (obj) {\n"+source+"\n}\n";else if(reForbiddenIdentifierChars.test(options))throw new Error("Invalid `variable` option passed into `_.template`");source=(isEvaluating?source.replace(reEmptyStringLeading,""):source).replace(reEmptyStringMiddle,"$1").replace(reEmptyStringTrailing,"$1;");source="function("+(options||"obj")+") {\n"+(options?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(isEscaping?", __e = _.escape":
"")+(isEvaluating?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+source+"return __p\n}";options=attempt(function(){return Function(importsKeys,sourceURL+"return "+source).apply(undefined,importsValues)});options.source=source;if(isError(options))throw options;return options};lodash.times=function(n,iteratee){n=toInteger(n);if(1>n||9007199254740991<n)return[];var index=4294967295,length=nativeMin(n,4294967295);iteratee=getIteratee(iteratee);n-=4294967295;
for(length=baseTimes(length,iteratee);++index<n;)iteratee(index);return length};lodash.toFinite=toFinite;lodash.toInteger=toInteger;lodash.toLength=toLength;lodash.toLower=function(value){return toString(value).toLowerCase()};lodash.toNumber=toNumber;lodash.toSafeInteger=function(value){return value?baseClamp(toInteger(value),-9007199254740991,9007199254740991):0===value?value:0};lodash.toString=toString;lodash.toUpper=function(value){return toString(value).toUpperCase()};lodash.trim=function(string,
chars,guard){if((string=toString(string))&&(guard||undefined===chars))return baseTrim(string);if(!string||!(chars=baseToString(chars)))return string;string=stringToArray(string);guard=stringToArray(chars);chars=charsStartIndex(string,guard);guard=charsEndIndex(string,guard)+1;return castSlice(string,chars,guard).join("")};lodash.trimEnd=function(string,chars,guard){if((string=toString(string))&&(guard||undefined===chars))return string.slice(0,trimmedEndIndex(string)+1);if(!string||!(chars=baseToString(chars)))return string;
string=stringToArray(string);chars=charsEndIndex(string,stringToArray(chars))+1;return castSlice(string,0,chars).join("")};lodash.trimStart=function(string,chars,guard){if((string=toString(string))&&(guard||undefined===chars))return string.replace(reTrimStart,"");if(!string||!(chars=baseToString(chars)))return string;string=stringToArray(string);chars=charsStartIndex(string,stringToArray(chars));return castSlice(string,chars).join("")};lodash.truncate=function(string,options){var length=30,omission=
"...";if(isObject(options)){var separator="separator"in options?options.separator:separator;length="length"in options?toInteger(options.length):length;omission="omission"in options?baseToString(options.omission):omission}string=toString(string);options=string.length;if(reHasUnicode.test(string)){var strSymbols=stringToArray(string);options=strSymbols.length}if(length>=options)return string;options=length-stringSize(omission);if(1>options)return omission;length=strSymbols?castSlice(strSymbols,0,options).join(""):
string.slice(0,options);if(undefined===separator)return length+omission;strSymbols&&(options+=length.length-options);if(isRegExp(separator)){if(string.slice(options).search(separator)){strSymbols=length;separator.global||(separator=RegExp(separator.source,toString(reFlags.exec(separator))+"g"));for(separator.lastIndex=0;string=separator.exec(strSymbols);)var newEnd=string.index;length=length.slice(0,undefined===newEnd?options:newEnd)}}else string.indexOf(baseToString(separator),options)!=options&&
(separator=length.lastIndexOf(separator),-1<separator&&(length=length.slice(0,separator)));return length+omission};lodash.unescape=function(string){return(string=toString(string))&&reHasEscapedHtml.test(string)?string.replace(reEscapedHtml,unescapeHtmlChar):string};lodash.uniqueId=function(prefix){var id=++idCounter;return toString(prefix)+id};lodash.upperCase=upperCase;lodash.upperFirst=upperFirst;lodash.each=forEach;lodash.eachRight=forEachRight;lodash.first=head;mixin(lodash,function(){var source=
{};baseForOwn(lodash,function(func,methodName){hasOwnProperty.call(lodash.prototype,methodName)||(source[methodName]=func)});return source}(),{chain:!1});lodash.VERSION="4.17.21";arrayEach("bind bindKey curry curryRight partial partialRight".split(" "),function(methodName){lodash[methodName].placeholder=lodash});arrayEach(["drop","take"],function(methodName,index){LazyWrapper.prototype[methodName]=function(n){n=undefined===n?1:nativeMax(toInteger(n),0);var result=this.__filtered__&&!index?new LazyWrapper(this):
this.clone();result.__filtered__?result.__takeCount__=nativeMin(n,result.__takeCount__):result.__views__.push({size:nativeMin(n,4294967295),type:methodName+(0>result.__dir__?"Right":"")});return result};LazyWrapper.prototype[methodName+"Right"]=function(n){return this.reverse()[methodName](n).reverse()}});arrayEach(["filter","map","takeWhile"],function(methodName,index){var type=index+1,isFilter=1==type||3==type;LazyWrapper.prototype[methodName]=function(iteratee){var result=this.clone();result.__iteratees__.push({iteratee:getIteratee(iteratee,
3),type:type});result.__filtered__=result.__filtered__||isFilter;return result}});arrayEach(["head","last"],function(methodName,index){var takeName="take"+(index?"Right":"");LazyWrapper.prototype[methodName]=function(){return this[takeName](1).value()[0]}});arrayEach(["initial","tail"],function(methodName,index){var dropName="drop"+(index?"":"Right");LazyWrapper.prototype[methodName]=function(){return this.__filtered__?new LazyWrapper(this):this[dropName](1)}});LazyWrapper.prototype.compact=function(){return this.filter(identity)};
LazyWrapper.prototype.find=function(predicate){return this.filter(predicate).head()};LazyWrapper.prototype.findLast=function(predicate){return this.reverse().find(predicate)};LazyWrapper.prototype.invokeMap=baseRest(function(path,args){return"function"==typeof path?new LazyWrapper(this):this.map(function(value){return baseInvoke(value,path,args)})});LazyWrapper.prototype.reject=function(predicate){return this.filter(negate(getIteratee(predicate)))};LazyWrapper.prototype.slice=function(start,end){start=
toInteger(start);var result=this;if(result.__filtered__&&(0<start||0>end))return new LazyWrapper(result);0>start?result=result.takeRight(-start):start&&(result=result.drop(start));undefined!==end&&(end=toInteger(end),result=0>end?result.dropRight(-end):result.take(end-start));return result};LazyWrapper.prototype.takeRightWhile=function(predicate){return this.reverse().takeWhile(predicate).reverse()};LazyWrapper.prototype.toArray=function(){return this.take(4294967295)};baseForOwn(LazyWrapper.prototype,
function(func,methodName){var checkIteratee=/^(?:filter|find|map|reject)|While$/.test(methodName),isTaker=/^(?:head|last)$/.test(methodName),lodashFunc=lodash[isTaker?"take"+("last"==methodName?"Right":""):methodName],retUnwrapped=isTaker||/^find/.test(methodName);lodashFunc&&(lodash.prototype[methodName]=function(){var value$jscomp$0=this.__wrapped__,args=isTaker?[1]:arguments,isLazy=value$jscomp$0 instanceof LazyWrapper,iteratee=args[0],useLazy=isLazy||isArray(value$jscomp$0),interceptor=function(value){value=
lodashFunc.apply(lodash,arrayPush([value],args));return isTaker&&chainAll?value[0]:value};useLazy&&checkIteratee&&"function"==typeof iteratee&&1!=iteratee.length&&(isLazy=useLazy=!1);var chainAll=this.__chain__,isHybrid=!!this.__actions__.length;iteratee=retUnwrapped&&!chainAll;isLazy=isLazy&&!isHybrid;if(!retUnwrapped&&useLazy)return value$jscomp$0=isLazy?value$jscomp$0:new LazyWrapper(this),value$jscomp$0=func.apply(value$jscomp$0,args),value$jscomp$0.__actions__.push({func:thru,args:[interceptor],
thisArg:undefined}),new LodashWrapper(value$jscomp$0,chainAll);if(iteratee&&isLazy)return func.apply(this,args);value$jscomp$0=this.thru(interceptor);return iteratee?isTaker?value$jscomp$0.value()[0]:value$jscomp$0.value():value$jscomp$0})});arrayEach("pop push shift sort splice unshift".split(" "),function(methodName){var func=arrayProto[methodName],chainName=/^(?:push|sort|unshift)$/.test(methodName)?"tap":"thru",retUnwrapped=/^(?:pop|shift)$/.test(methodName);lodash.prototype[methodName]=function(){var args=
arguments;if(retUnwrapped&&!this.__chain__){var value$jscomp$0=this.value();return func.apply(isArray(value$jscomp$0)?value$jscomp$0:[],args)}return this[chainName](function(value){return func.apply(isArray(value)?value:[],args)})}});baseForOwn(LazyWrapper.prototype,function(func,methodName){if(func=lodash[methodName]){var key=func.name+"";hasOwnProperty.call(realNames,key)||(realNames[key]=[]);realNames[key].push({name:methodName,func:func})}});realNames[createHybrid(undefined,2).name]=[{name:"wrapper",
func:undefined}];LazyWrapper.prototype.clone=function(){var result=new LazyWrapper(this.__wrapped__);result.__actions__=copyArray(this.__actions__);result.__dir__=this.__dir__;result.__filtered__=this.__filtered__;result.__iteratees__=copyArray(this.__iteratees__);result.__takeCount__=this.__takeCount__;result.__views__=copyArray(this.__views__);return result};LazyWrapper.prototype.reverse=function(){if(this.__filtered__){var result=new LazyWrapper(this);result.__dir__=-1;result.__filtered__=!0}else result=
this.clone(),result.__dir__*=-1;return result};LazyWrapper.prototype.value=function(){var array=this.__wrapped__.value(),dir=this.__dir__,isArr=isArray(array),isRight=0>dir,arrLength=isArr?array.length:0;var JSCompiler_object_inline_start_1821=0;for(var end=arrLength,transforms=this.__views__,index=-1,length=transforms.length;++index<length;){var data=transforms[index],size=data.size;switch(data.type){case "drop":JSCompiler_object_inline_start_1821+=size;break;case "dropRight":end-=size;break;case "take":end=
nativeMin(end,JSCompiler_object_inline_start_1821+size);break;case "takeRight":JSCompiler_object_inline_start_1821=nativeMax(JSCompiler_object_inline_start_1821,end-size)}}transforms=end;end=transforms-JSCompiler_object_inline_start_1821;JSCompiler_object_inline_start_1821=isRight?transforms:JSCompiler_object_inline_start_1821-1;transforms=this.__iteratees__;index=transforms.length;length=0;data=nativeMin(end,this.__takeCount__);if(!isArr||!isRight&&arrLength==end&&data==end)return baseWrapperValue(array,
this.__actions__);isArr=[];a:for(;end--&&length<data;){JSCompiler_object_inline_start_1821+=dir;isRight=-1;for(arrLength=array[JSCompiler_object_inline_start_1821];++isRight<index;){var data$jscomp$0=transforms[isRight];size=data$jscomp$0.iteratee;data$jscomp$0=data$jscomp$0.type;size=size(arrLength);if(2==data$jscomp$0)arrLength=size;else if(!size)if(1==data$jscomp$0)continue a;else break a}isArr[length++]=arrLength}return isArr};lodash.prototype.at=wrapperAt;lodash.prototype.chain=function(){return chain$jscomp$0(this)};
lodash.prototype.commit=function(){return new LodashWrapper(this.value(),this.__chain__)};lodash.prototype.next=function(){undefined===this.__values__&&(this.__values__=toArray(this.value()));var done=this.__index__>=this.__values__.length,value=done?undefined:this.__values__[this.__index__++];return{done:done,value:value}};lodash.prototype.plant=function(value){for(var result,parent=this;parent instanceof baseLodash;){var clone=wrapperClone(parent);clone.__index__=0;clone.__values__=undefined;result?
previous.__wrapped__=clone:result=clone;var previous=clone;parent=parent.__wrapped__}previous.__wrapped__=value;return result};lodash.prototype.reverse=function(){var value=this.__wrapped__;return value instanceof LazyWrapper?(this.__actions__.length&&(value=new LazyWrapper(this)),value=value.reverse(),value.__actions__.push({func:thru,args:[reverse],thisArg:undefined}),new LodashWrapper(value,this.__chain__)):this.thru(reverse)};lodash.prototype.toJSON=lodash.prototype.valueOf=lodash.prototype.value=
function(){return baseWrapperValue(this.__wrapped__,this.__actions__)};lodash.prototype.first=lodash.prototype.head;symIterator&&(lodash.prototype[symIterator]=wrapperToIterator);return lodash}();root._=_;!(__WEBPACK_AMD_DEFINE_RESULT__=_,undefined!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this)}).call(this,__webpack_require__(15),__webpack_require__(47)(module$jscomp$0))},function(module$jscomp$0,exports$jscomp$0,__webpack_require__){function asyncGeneratorStep(gen,
resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);
_next(void 0)})}}function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}var __WEBPACK_AMD_DEFINE_RESULT__;parcelRequire=function(e$jscomp$0,r$jscomp$1,t$jscomp$0,n$jscomp$0){function f(t,n){function p(e){return f(p.resolve(e))}if(!r$jscomp$1[t]){if(!e$jscomp$0[t]){var i=
"function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if("string"==typeof t)return __webpack_require__(151)(t);n=Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n;}p.resolve=function(r){return e$jscomp$0[t][1][r]||r};p.cache={};n=r$jscomp$1[t]=new f.Module(t);e$jscomp$0[t][0].call(n.exports,p,n,n.exports,this)}return r$jscomp$1[t].exports}var i$jscomp$0,o="function"==typeof parcelRequire&&parcelRequire;f.isParcelRequire=!0;f.Module=function(e){this.id=
e;this.bundle=f;this.exports={}};f.modules=e$jscomp$0;f.cache=r$jscomp$1;f.parent=o;f.register=function(r$jscomp$0,t){e$jscomp$0[r$jscomp$0]=[function(e,r){r.exports=t},{}]};for(n$jscomp$0=0;n$jscomp$0<t$jscomp$0.length;n$jscomp$0++)try{f(t$jscomp$0[n$jscomp$0])}catch(e$16){i$jscomp$0||(i$jscomp$0=e$16)}t$jscomp$0.length&&(t$jscomp$0=f(t$jscomp$0[t$jscomp$0.length-1]),"object"==_typeof(exports$jscomp$0)&&"undefined"!=typeof module$jscomp$0?module$jscomp$0.exports=t$jscomp$0:!(__WEBPACK_AMD_DEFINE_RESULT__=
t$jscomp$0,void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module$jscomp$0.exports=__WEBPACK_AMD_DEFINE_RESULT__)));if(parcelRequire=f,i$jscomp$0)throw i$jscomp$0;return f}({b9XL:[function(require,module,exports){function o$jscomp$0(t){return(o$jscomp$0="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(o){return _typeof(o)}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":_typeof(o)})(t)}function t$jscomp$0(n){return"function"==typeof Symbol&&
"symbol"===o$jscomp$0(Symbol.iterator)?module.exports=t$jscomp$0=function(_t){return o$jscomp$0(_t)}:module.exports=t$jscomp$0=function(_t2){return _t2&&"function"==typeof Symbol&&_t2.constructor===Symbol&&_t2!==Symbol.prototype?"symbol":o$jscomp$0(_t2)},t$jscomp$0(n)}module.exports=t$jscomp$0},{}],agGE:[function(require,module,exports){function n$jscomp$0(n,t,o,r,e,i,u){try{var c=n[i](u),v=c.value}catch(a){return void o(a)}c.done?t(v):Promise.resolve(v).then(r,e)}module.exports=function(t$jscomp$0){return function(){var o=
this,r=arguments;return new Promise(function(e,i){function c(t){n$jscomp$0(u,e,i,c,v,"next",t)}function v(t){n$jscomp$0(u,e,i,c,v,"throw",t)}var u=t$jscomp$0.apply(o,r);c(void 0)})}}},{}],IxO8:[function(require,module,exports){module.exports=function(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}},{}],XfJI:[function(require,module,exports){module.exports=function(r){if(Array.isArray(r)){for(var e=0,n=Array(r.length);e<r.length;e++)n[e]=
r[e];return n}}},{}],OMTj:[function(require,module,exports){module.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},{}],"wF/n":[function(require,module,exports){module.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}},{}],Fhqp:[function(require,module,exports){var r=require("./arrayWithoutHoles"),e=require("./iterableToArray"),a=require("./nonIterableSpread");module.exports=
function(o){return r(o)||e(o)||a()}},{"./arrayWithoutHoles":"XfJI","./iterableToArray":"OMTj","./nonIterableSpread":"wF/n"}],"5qf4":[function(require,module,exports){require=module.exports="undefined"!=typeof window&&Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=require)},{}],ss9A:[function(require,module,exports){require=module.exports={version:"2.6.12"};"number"==typeof __e&&(__e=require)},{}],M7z6:[function(require,module,
exports){module.exports=function(o){return"object"==_typeof(o)?null!==o:"function"==typeof o}},{}],eT53:[function(require,module,exports){var r=require("./_is-object");module.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},{"./_is-object":"M7z6"}],"5BXi":[function(require,module,exports){module.exports=function(r){try{return!!r()}catch(t){return!0}}},{}],P9Ib:[function(require,module,exports){module.exports=!require("./_fails")(function(){return 7!=Object.defineProperty({},
"a",{get:function(){return 7}}).a})},{"./_fails":"5BXi"}],"/vZ6":[function(require,module,exports){exports=require("./_is-object");var r=require("./_global").document,t=exports(r)&&exports(r.createElement);module.exports=function(e){return t?r.createElement(e):{}}},{"./_is-object":"M7z6","./_global":"5qf4"}],"/o6G":[function(require,module,exports){module.exports=!require("./_descriptors")&&!require("./_fails")(function(){return 7!=Object.defineProperty(require("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},
{"./_descriptors":"P9Ib","./_fails":"5BXi","./_dom-create":"/vZ6"}],"9y37":[function(require,module,exports){var t=require("./_is-object");module.exports=function(r,e){if(!t(r))return r;var o,n;if(e&&"function"==typeof(o=r.toString)&&!t(n=o.call(r))||"function"==typeof(o=r.valueOf)&&!t(n=o.call(r))||!e&&"function"==typeof(o=r.toString)&&!t(n=o.call(r)))return n;throw TypeError("Can't convert object to primitive value");}},{"./_is-object":"M7z6"}],nw8e:[function(require,module,exports){var e=require("./_an-object"),
r=require("./_ie8-dom-define"),t=require("./_to-primitive"),i=Object.defineProperty;exports.f=require("./_descriptors")?Object.defineProperty:function(o,n,u){if(e(o),n=t(n,!0),e(u),r)try{return i(o,n,u)}catch(c){}if("get"in u||"set"in u)throw TypeError("Accessors not supported!");return"value"in u&&(o[n]=u.value),o}},{"./_an-object":"eT53","./_ie8-dom-define":"/o6G","./_to-primitive":"9y37","./_descriptors":"P9Ib"}],uJ6d:[function(require,module,exports){module.exports=function(e,r){return{enumerable:!(1&
e),configurable:!(2&e),writable:!(4&e),value:r}}},{}],"0NXb":[function(require,module,exports){var r$jscomp$0=require("./_object-dp"),e$jscomp$0=require("./_property-desc");module.exports=require("./_descriptors")?function(t,u,o){return r$jscomp$0.f(t,u,e$jscomp$0(1,o))}:function(r,e,t){return r[e]=t,r}},{"./_object-dp":"nw8e","./_property-desc":"uJ6d","./_descriptors":"P9Ib"}],"2uHg":[function(require,module,exports){var r={}.hasOwnProperty;module.exports=function(e,n){return r.call(e,n)}},{}],U49f:[function(require,
module,exports){var o=0,t=Math.random();module.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++o+t).toString(36))}},{}],H21C:[function(require,module,exports){module.exports=!1},{}],"6zGc":[function(require,module,exports){exports=require("./_core");var e$jscomp$0=require("./_global"),i=e$jscomp$0["__core-js_shared__"]||(e$jscomp$0["__core-js_shared__"]={});(module.exports=function(r,e){return i[r]||(i[r]=void 0!==e?e:{})})("versions",[]).push({version:exports.version,mode:require("./_library")?
"pure":"global",copyright:"\u00a9 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":"ss9A","./_global":"5qf4","./_library":"H21C"}],d5RU:[function(require,module,exports){module.exports=require("./_shared")("native-function-to-string",Function.toString)},{"./_shared":"6zGc"}],PHot:[function(require,module,exports){var e$jscomp$0=require("./_global"),r=require("./_hide"),t=require("./_has"),i=require("./_uid")("src"),n$jscomp$0=require("./_function-to-string"),u=(""+n$jscomp$0).split("toString");require("./_core").inspectSource=
function(e){return n$jscomp$0.call(e)};(module.exports=function(n,o,c,l){var s="function"==typeof c;s&&(t(c,"name")||r(c,"name",o));n[o]!==c&&(s&&(t(c,i)||r(c,i,n[o]?""+n[o]:u.join(String(o)))),n===e$jscomp$0?n[o]=c:l?n[o]?n[o]=c:r(n,o,c):(delete n[o],r(n,o,c)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||n$jscomp$0.call(this)})},{"./_global":"5qf4","./_hide":"0NXb","./_has":"2uHg","./_uid":"U49f","./_function-to-string":"d5RU","./_core":"ss9A"}],"6kYj":[function(require,
module,exports){module.exports=function(o){if("function"!=typeof o)throw TypeError(o+" is not a function!");return o}},{}],E3Kh:[function(require,module,exports){var r$jscomp$0=require("./_a-function");module.exports=function(n,t,u$jscomp$0){if(r$jscomp$0(n),void 0===t)return n;switch(u$jscomp$0){case 1:return function(r){return n.call(t,r)};case 2:return function(r,u){return n.call(t,r,u)};case 3:return function(r,u,e){return n.call(t,r,u,e)}}return function(){return n.apply(t,arguments)}}},{"./_a-function":"6kYj"}],
izCb:[function(require,module,exports){var e=require("./_global"),r=require("./_core"),o=require("./_hide"),i=require("./_redefine"),u=require("./_ctx");require=function t(c,f,l){var q,p=c&t.F;var _=c&t.G;var F=c&t.S,x=c&t.P,y=c&t.B;F=_?e:F?e[f]||(e[f]={}):(e[f]||{}).prototype;var G=_?r:r[f]||(r[f]={}),P=G.prototype||(G.prototype={});for(q in _&&(l=f),l)f=((_=!p&&F&&void 0!==F[q])?F:l)[q],_=y&&_?u(f,e):x&&"function"==typeof f?u(Function.call,f):f,F&&i(F,q,f,c&t.U),G[q]!=f&&o(G,q,_),x&&P[q]!=f&&(P[q]=
f)};e.core=r;require.F=1;require.G=2;require.S=4;require.P=8;require.B=16;require.W=32;require.U=64;require.R=128;module.exports=require},{"./_global":"5qf4","./_core":"ss9A","./_hide":"0NXb","./_redefine":"PHot","./_ctx":"E3Kh"}],"+Bjj":[function(require,module,exports){module.exports=function(o){if(null==o)throw TypeError("Can't call method on  "+o);return o}},{}],rfVX:[function(require,module,exports){var e=require("./_defined");module.exports=function(r){return Object(e(r))}},{"./_defined":"+Bjj"}],
yjVO:[function(require,module,exports){var o=Math.ceil,r=Math.floor;module.exports=function(t){return isNaN(t=+t)?0:(0<t?r:o)(t)}},{}],vfEH:[function(require,module,exports){var e=require("./_to-integer"),r=Math.max,t=Math.min;module.exports=function(n,a){return 0>(n=e(n))?r(n+a,0):t(n,a)}},{"./_to-integer":"yjVO"}],dJBs:[function(require,module,exports){var e=require("./_to-integer"),r=Math.min;module.exports=function(t){return 0<t?r(e(t),9007199254740991):0}},{"./_to-integer":"yjVO"}],Oppn:[function(require,
module,exports){var e=require("./_to-object"),t=require("./_to-absolute-index"),i=require("./_to-length");module.exports=[].copyWithin||function(r,o){var n=e(this),u=i(n.length),h=t(r,u),l=t(o,u),d=2<arguments.length?arguments[2]:void 0;u=Math.min((void 0===d?u:t(d,u))-l,u-h);d=1;for(l<h&&h<l+u&&(d=-1,l+=u-1,h+=u-1);0<u--;)l in n?n[h]=n[l]:delete n[h],h+=d,l+=d;return n}},{"./_to-object":"rfVX","./_to-absolute-index":"vfEH","./_to-length":"dJBs"}],"44AI":[function(require,module,exports){var e=require("./_shared")("wks"),
r=require("./_uid"),o=require("./_global").Symbol,u="function"==typeof o;(module.exports=function(i){return e[i]||(e[i]=u&&o[i]||(u?o:r)("Symbol."+i))}).store=e},{"./_shared":"6zGc","./_uid":"U49f","./_global":"5qf4"}],"Z7e/":[function(require,module,exports){var e=require("./_wks")("unscopables"),r=Array.prototype;null==r[e]&&require("./_hide")(r,e,{});module.exports=function(o){r[e][o]=!0}},{"./_wks":"44AI","./_hide":"0NXb"}],tWTB:[function(require,module,exports){module=require("./_export");module(module.P,
"Array",{copyWithin:require("./_array-copy-within")});require("./_add-to-unscopables")("copyWithin")},{"./_export":"izCb","./_array-copy-within":"Oppn","./_add-to-unscopables":"Z7e/"}],hphS:[function(require,module,exports){var e=require("./_to-object"),t=require("./_to-absolute-index"),r=require("./_to-length");module.exports=function(o){var i=e(this),u=r(i.length),n=arguments.length,d=t(1<n?arguments[1]:void 0,u);n=2<n?arguments[2]:void 0;for(u=void 0===n?u:t(n,u);u>d;)i[d++]=o;return i}},{"./_to-object":"rfVX",
"./_to-absolute-index":"vfEH","./_to-length":"dJBs"}],hUQ6:[function(require,module,exports){module=require("./_export");module(module.P,"Array",{fill:require("./_array-fill")});require("./_add-to-unscopables")("fill")},{"./_export":"izCb","./_array-fill":"hphS","./_add-to-unscopables":"Z7e/"}],Z5df:[function(require,module,exports){var r={}.toString;module.exports=function(t){return r.call(t).slice(8,-1)}},{}],nGau:[function(require,module,exports){var e=require("./_cof");module.exports=Object("z").propertyIsEnumerable(0)?
Object:function(r){return"String"==e(r)?r.split(""):Object(r)}},{"./_cof":"Z5df"}],JTrm:[function(require,module,exports){var r=require("./_cof");module.exports=Array.isArray||function(e){return"Array"==r(e)}},{"./_cof":"Z5df"}],NNbH:[function(require,module,exports){var r=require("./_is-object"),e=require("./_is-array"),o=require("./_wks")("species");module.exports=function(i){var t;return e(i)&&("function"!=typeof(t=i.constructor)||t!==Array&&!e(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=
void 0)),void 0===t?Array:t}},{"./_is-object":"M7z6","./_is-array":"JTrm","./_wks":"44AI"}],igas:[function(require,module,exports){var r=require("./_array-species-constructor");module.exports=function(e,n){return new (r(e))(n)}},{"./_array-species-constructor":"NNbH"}],AuPh:[function(require,module,exports){var e=require("./_ctx"),r=require("./_iobject"),t=require("./_to-object"),i=require("./_to-length"),u$jscomp$0=require("./_array-species-create");module.exports=function(n,c$jscomp$0){var s=1==
n,a=2==n,o=3==n,f=4==n,l=6==n,q=5==n||l,_=c$jscomp$0||u$jscomp$0;return function(u,c,h){var v,p,b=t(u),d=r(b);c=e(c,h,3);h=i(d.length);var x=0;for(u=s?_(u,h):a?_(u,0):void 0;h>x;x++)if((q||x in d)&&(p=c(v=d[x],x,b),n))if(s)u[x]=p;else if(p)switch(n){case 3:return!0;case 5:return v;case 6:return x;case 2:u.push(v)}else if(f)return!1;return l?-1:o||f?f:u}}},{"./_ctx":"E3Kh","./_iobject":"nGau","./_to-object":"rfVX","./_to-length":"dJBs","./_array-species-create":"igas"}],Qppk:[function(require,module,
exports){module=require("./_export");var e=require("./_array-methods")(5),n=!0;"find"in[]&&Array(1).find(function(){n=!1});module(module.P+module.F*n,"Array",{find:function(r){return e(this,r,1<arguments.length?arguments[1]:void 0)}});require("./_add-to-unscopables")("find")},{"./_export":"izCb","./_array-methods":"AuPh","./_add-to-unscopables":"Z7e/"}],"7sVm":[function(require,module,exports){module=require("./_export");var e=require("./_array-methods")(6),i=!0;"findIndex"in[]&&Array(1).findIndex(function(){i=
!1});module(module.P+module.F*i,"Array",{findIndex:function(r){return e(this,r,1<arguments.length?arguments[1]:void 0)}});require("./_add-to-unscopables")("findIndex")},{"./_export":"izCb","./_array-methods":"AuPh","./_add-to-unscopables":"Z7e/"}],"RnO+":[function(require,module,exports){var r=require("./_an-object");module.exports=function(t,e,o,a){try{return a?e(r(o)[0],o[1]):e(o)}catch(n){throw e=t["return"],void 0!==e&&r(e.call(t)),n;}}},{"./_an-object":"eT53"}],JO4d:[function(require,module,
exports){module.exports={}},{}],"0B0p":[function(require,module,exports){var r=require("./_iterators"),e=require("./_wks")("iterator"),t=Array.prototype;module.exports=function(o){return void 0!==o&&(r.Array===o||t[e]===o)}},{"./_iterators":"JO4d","./_wks":"44AI"}],JCwR:[function(require,module,exports){var e=require("./_object-dp"),r=require("./_property-desc");module.exports=function(t,i,o){i in t?e.f(t,i,r(0,o)):t[i]=o}},{"./_object-dp":"nw8e","./_property-desc":"uJ6d"}],GM7B:[function(require,
module,exports){var e$jscomp$0=require("./_cof"),t=require("./_wks")("toStringTag"),n="Arguments"==e$jscomp$0(function(){return arguments}());module.exports=function(u){var i;if(void 0===u)var c="Undefined";else{if(null===u)var JSCompiler_temp="Null";else{a:{var e=u=Object(u);try{JSCompiler_temp=e[t];break a}catch(n$17){}JSCompiler_temp=void 0}JSCompiler_temp="string"==typeof(c=JSCompiler_temp)?c:n?e$jscomp$0(u):"Object"==(i=e$jscomp$0(u))&&"function"==typeof u.callee?"Arguments":i}c=JSCompiler_temp}return c}},
{"./_cof":"Z5df","./_wks":"44AI"}],"ia+4":[function(require,module,exports){var r=require("./_classof"),e=require("./_wks")("iterator"),t=require("./_iterators");module.exports=require("./_core").getIteratorMethod=function(o){if(null!=o)return o[e]||o["@@iterator"]||t[r(o)]}},{"./_classof":"GM7B","./_wks":"44AI","./_iterators":"JO4d","./_core":"ss9A"}],md62:[function(require,module,exports){var r=require("./_wks")("iterator"),t=!1;try{var n$jscomp$0=[7][r]();n$jscomp$0["return"]=function(){t=!0};
Array.from(n$jscomp$0,function(){throw 2;})}catch(e){}module.exports=function(n,u){if(!u&&!t)return!1;var o=!1;try{u=[7];var a=u[r]();a.next=function(){return{done:o=!0}};u[r]=function(){return a};n(u)}catch(e$18){}return o}},{"./_wks":"44AI"}],RRcs:[function(require,module,exports){var e$jscomp$0=require("./_ctx");module=require("./_export");var t=require("./_to-object"),i=require("./_iter-call"),o=require("./_is-array-iter"),u=require("./_to-length"),n=require("./_create-property"),a=require("./core.get-iterator-method");
module(module.S+module.F*!require("./_iter-detect")(function(e){Array.from(e)}),"Array",{from:function(r){var q=t(r);var c="function"==typeof this?this:Array;var l=arguments.length;var y=1<l?arguments[1]:void 0,d=void 0!==y,s=0,g=a(q);if(d&&(y=e$jscomp$0(y,2<l?arguments[2]:void 0,2)),null==g||c==Array&&o(g))for(c=new c(l=u(q.length));l>s;s++)n(c,s,d?y(q[s],s):q[s]);else for(q=g.call(q),c=new c;!(l=q.next()).done;s++)n(c,s,d?i(q,y,[l.value,s],!0):l.value);return c.length=s,c}})},{"./_ctx":"E3Kh","./_export":"izCb",
"./_to-object":"rfVX","./_iter-call":"RnO+","./_is-array-iter":"0B0p","./_to-length":"dJBs","./_create-property":"JCwR","./core.get-iterator-method":"ia+4","./_iter-detect":"md62"}],g6sb:[function(require,module,exports){var e=require("./_iobject"),r=require("./_defined");module.exports=function(i){return e(r(i))}},{"./_iobject":"nGau","./_defined":"+Bjj"}],"4Ca7":[function(require,module,exports){var e=require("./_to-iobject"),r=require("./_to-length"),t=require("./_to-absolute-index");module.exports=
function(n){return function(i,o,u){var f;i=e(i);var a=r(i.length);u=t(u,a);if(n&&o!=o)for(;a>u;){if((f=i[u++])!=f)return!0}else for(;a>u;u++)if((n||u in i)&&i[u]===o)return n||u||0;return!n&&-1}}},{"./_to-iobject":"g6sb","./_to-length":"dJBs","./_to-absolute-index":"vfEH"}],TLss:[function(require,module,exports){module=require("./_export");var e=require("./_array-includes")(!0);module(module.P,"Array",{includes:function(r){return e(this,r,1<arguments.length?arguments[1]:void 0)}});require("./_add-to-unscopables")("includes")},
{"./_export":"izCb","./_array-includes":"4Ca7","./_add-to-unscopables":"Z7e/"}],x8b3:[function(require,module,exports){module.exports=function(e,n){return{value:n,done:!!e}}},{}],NaGB:[function(require,module,exports){var e=require("./_shared")("keys"),r=require("./_uid");module.exports=function(u){return e[u]||(e[u]=r(u))}},{"./_shared":"6zGc","./_uid":"U49f"}],vL0Z:[function(require,module,exports){var r=require("./_has"),e=require("./_to-iobject"),u=require("./_array-includes")(!1),i=require("./_shared-key")("IE_PROTO");
module.exports=function(o,a){var n;o=e(o);var t=0,h=[];for(n in o)n!=i&&r(o,n)&&h.push(n);for(;a.length>t;)r(o,n=a[t++])&&(~u(h,n)||h.push(n));return h}},{"./_has":"2uHg","./_to-iobject":"g6sb","./_array-includes":"4Ca7","./_shared-key":"NaGB"}],"9bbv":[function(require,module,exports){module.exports="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ")},{}],U9a7:[function(require,module,exports){var e=require("./_object-keys-internal"),r=require("./_enum-bug-keys");
module.exports=Object.keys||function(u){return e(u,r)}},{"./_object-keys-internal":"vL0Z","./_enum-bug-keys":"9bbv"}],MiMz:[function(require,module,exports){var e=require("./_object-dp"),r=require("./_an-object"),t=require("./_object-keys");module.exports=require("./_descriptors")?Object.defineProperties:function(o,i){r(o);for(var u,c=t(i),n=c.length,s=0;n>s;)e.f(o,u=c[s++],i[u]);return o}},{"./_object-dp":"nw8e","./_an-object":"eT53","./_object-keys":"U9a7","./_descriptors":"P9Ib"}],"xj/b":[function(require,
module,exports){require=require("./_global").document;module.exports=require&&require.documentElement},{"./_global":"5qf4"}],sYaK:[function(require,module,exports){var e$jscomp$0=require("./_an-object"),r=require("./_object-dps"),t$jscomp$0=require("./_enum-bug-keys"),n$jscomp$0=require("./_shared-key")("IE_PROTO"),o=function(){},_u=function(){var e=require("./_dom-create")("iframe");var n=t$jscomp$0.length;e.style.display="none";require("./_html").appendChild(e);e.src="javascript:";(e=e.contentWindow.document).open();
e.write("<script>document.F=Object\x3c/script>");e.close();for(_u=e.F;n--;)delete _u.prototype[t$jscomp$0[n]];return _u()};module.exports=Object.create||function(t,c){var a;return null!==t?(o.prototype=e$jscomp$0(t),a=new o,o.prototype=null,a[n$jscomp$0]=t):a=_u(),void 0===c?a:r(a,c)}},{"./_an-object":"eT53","./_object-dps":"MiMz","./_enum-bug-keys":"9bbv","./_shared-key":"NaGB","./_dom-create":"/vZ6","./_html":"xj/b"}],rq3q:[function(require,module,exports){var e=require("./_object-dp").f,r=require("./_has"),
o=require("./_wks")("toStringTag");module.exports=function(t,u,i){t&&!r(t=i?t:t.prototype,o)&&e(t,o,{configurable:!0,value:u})}},{"./_object-dp":"nw8e","./_has":"2uHg","./_wks":"44AI"}],ebgP:[function(require,module,exports){var e=require("./_object-create"),r=require("./_property-desc"),t=require("./_set-to-string-tag"),i={};require("./_hide")(i,require("./_wks")("iterator"),function(){return this});module.exports=function(o,u,s){o.prototype=e(i,{next:r(1,s)});t(o,u+" Iterator")}},{"./_object-create":"sYaK",
"./_property-desc":"uJ6d","./_set-to-string-tag":"rq3q","./_hide":"0NXb","./_wks":"44AI"}],"8q6y":[function(require,module,exports){var t=require("./_has"),e=require("./_to-object"),o=require("./_shared-key")("IE_PROTO"),r=Object.prototype;module.exports=Object.getPrototypeOf||function(c){return c=e(c),t(c,o)?c[o]:"function"==typeof c.constructor&&c instanceof c.constructor?c.constructor.prototype:c instanceof Object?r:null}},{"./_has":"2uHg","./_to-object":"rfVX","./_shared-key":"NaGB"}],mH0U:[function(require,
module,exports){var e$jscomp$0=require("./_library"),r=require("./_export"),t=require("./_redefine"),i=require("./_hide"),n=require("./_iterators"),u=require("./_iter-create"),o=require("./_set-to-string-tag"),s=require("./_object-gpo"),a=require("./_wks")("iterator"),c=!([].keys&&"next"in[].keys()),y=function(){return this};module.exports=function(_,p,h,k,v,w,d){u(h,p,k);var x,b,g;k=function(e){return!c&&e in I?I[e]:function(){return new h(this,e)}};var m=p+" Iterator",A="values"==v,F=!1,I=_.prototype,
O=I[a]||I["@@iterator"]||v&&I[v],P=O||k(v),z=v?A?k("entries"):P:void 0,B="Array"==p&&I.entries||O;if(B&&(g=s(B.call(new _)))!==Object.prototype&&g.next&&(o(g,m,!0),e$jscomp$0||"function"==typeof g[a]||i(g,a,y)),A&&O&&"values"!==O.name&&(F=!0,P=function(){return O.call(this)}),e$jscomp$0&&!d||!c&&!F&&I[a]||i(I,a,P),n[p]=P,n[m]=y,v)if(x={values:A?P:k("values"),keys:w?P:k("keys"),entries:z},d)for(b in x)b in I||t(I,b,x[b]);else r(r.P+r.F*(c||F),p,x);return x}},{"./_library":"H21C","./_export":"izCb",
"./_redefine":"PHot","./_hide":"0NXb","./_iterators":"JO4d","./_iter-create":"ebgP","./_set-to-string-tag":"rq3q","./_object-gpo":"8q6y","./_wks":"44AI"}],"6w+v":[function(require,module,exports){exports=require("./_add-to-unscopables");var r$jscomp$0=require("./_iter-step"),t$jscomp$0=require("./_iterators"),i$jscomp$0=require("./_to-iobject");module.exports=require("./_iter-define")(Array,"Array",function(e,r){this._t=i$jscomp$0(e);this._i=0;this._k=r},function(){var e=this._t,t=this._k,i=this._i++;
return!e||i>=e.length?(this._t=void 0,r$jscomp$0(1)):r$jscomp$0(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])},"values");t$jscomp$0.Arguments=t$jscomp$0.Array;exports("keys");exports("values");exports("entries")},{"./_add-to-unscopables":"Z7e/","./_iter-step":"x8b3","./_iterators":"JO4d","./_to-iobject":"g6sb","./_iter-define":"mH0U"}],RB6b:[function(require,module,exports){module=require("./_export");var e=require("./_create-property");module(module.S+module.F*require("./_fails")(function(){function r(){}
return!(Array.of.call(r)instanceof r)}),"Array",{of:function(){for(var r=0,t=arguments.length,n=new ("function"==typeof this?this:Array)(t);t>r;)e(n,r,arguments[r++]);return n.length=t,n}})},{"./_export":"izCb","./_create-property":"JCwR","./_fails":"5BXi"}],"5h4d":[function(require,module,exports){var e=require("./_global"),r=require("./_object-dp"),i=require("./_descriptors"),t=require("./_wks")("species");module.exports=function(u){u=e[u];i&&u&&!u[t]&&r.f(u,t,{configurable:!0,get:function(){return this}})}},
{"./_global":"5qf4","./_object-dp":"nw8e","./_descriptors":"P9Ib","./_wks":"44AI"}],smn3:[function(require,module,exports){require("./_set-species")("Array")},{"./_set-species":"5h4d"}],"8pVj":[function(require,module,exports){var r=require("./_an-object"),e=require("./_to-primitive");module.exports=function(i){if("string"!==i&&"number"!==i&&"default"!==i)throw TypeError("Incorrect hint");return e(r(this),"number"!=i)}},{"./_an-object":"eT53","./_to-primitive":"9y37"}],jQnQ:[function(require,module,
exports){module=require("./_wks")("toPrimitive");exports=Date.prototype;module in exports||require("./_hide")(exports,module,require("./_date-to-primitive"))},{"./_wks":"44AI","./_hide":"0NXb","./_date-to-primitive":"8pVj"}],a7bX:[function(require,module,exports){var t=require("./_is-object"),e=require("./_object-gpo");module=require("./_wks")("hasInstance");exports=Function.prototype;module in exports||require("./_object-dp").f(exports,module,{value:function(r){if("function"!=typeof this||!t(r))return!1;
if(!t(this.prototype))return r instanceof this;for(;r=e(r);)if(this.prototype===r)return!0;return!1}})},{"./_is-object":"M7z6","./_object-gpo":"8q6y","./_wks":"44AI","./_object-dp":"nw8e"}],N3yi:[function(require,module,exports){module=require("./_object-dp").f;exports=Function.prototype;var e=/^\s*function ([^ (]*)/;"name"in exports||require("./_descriptors")&&module(exports,"name",{configurable:!0,get:function(){try{return(""+this).match(e)[1]}catch(r$19){return""}}})},{"./_object-dp":"nw8e","./_descriptors":"P9Ib"}],
J0Tl:[function(require,module,exports){var r=require("./_redefine");module.exports=function(e,n,i){for(var o in n)r(e,o,n[o],i);return e}},{"./_redefine":"PHot"}],yJTF:[function(require,module,exports){module.exports=function(o,n,r,i){if(!(o instanceof n)||void 0!==i&&i in o)throw TypeError(r+": incorrect invocation!");return o}},{}],Abke:[function(require,module,exports){var e=require("./_ctx"),r=require("./_iter-call"),t=require("./_is-array-iter"),i=require("./_an-object"),o=require("./_to-length"),
n=require("./core.get-iterator-method"),u={},a={};require=module.exports=function(f,l,c,q,_){var s,g;_=_?function(){return f}:n(f);c=e(c,q,l?2:1);q=0;if("function"!=typeof _)throw TypeError(f+" is not iterable!");if(t(_))for(_=o(f.length);_>q;q++){if((g=l?c(i(s=f[q])[0],s[1]):c(f[q]))===u||g===a)return g}else for(_=_.call(f);!(s=_.next()).done;)if((g=r(_,c,s.value,l))===u||g===a)return g};require.BREAK=u;require.RETURN=a},{"./_ctx":"E3Kh","./_iter-call":"RnO+","./_is-array-iter":"0B0p","./_an-object":"eT53",
"./_to-length":"dJBs","./core.get-iterator-method":"ia+4"}],AoVy:[function(require,module,exports){var e=require("./_uid")("meta"),r$jscomp$0=require("./_is-object"),t=require("./_has"),n$jscomp$0=require("./_object-dp").f,i$jscomp$0=0,u=Object.isExtensible||function(){return!0},f=!require("./_fails")(function(){return u(Object.preventExtensions({}))}),o=function(r){n$jscomp$0(r,e,{value:{i:"O"+ ++i$jscomp$0,w:{}}})},a=module.exports={KEY:e,NEED:!1,fastKey:function(n,i){if(!r$jscomp$0(n))return"symbol"==
_typeof(n)?n:("string"==typeof n?"S":"P")+n;if(!t(n,e)){if(!u(n))return"F";if(!i)return"E";o(n)}return n[e].i},getWeak:function(r,n){if(!t(r,e)){if(!u(r))return!0;if(!n)return!1;o(r)}return r[e].w},onFreeze:function(r){return f&&a.NEED&&u(r)&&!t(r,e)&&o(r),r}}},{"./_uid":"U49f","./_is-object":"M7z6","./_has":"2uHg","./_object-dp":"nw8e","./_fails":"5BXi"}],"1FW4":[function(require,module,exports){var r=require("./_is-object");module.exports=function(e,i){if(!r(e)||e._t!==i)throw TypeError("Incompatible receiver, "+
i+" required!");return e}},{"./_is-object":"M7z6"}],"8aIi":[function(require,module,exports){var e$jscomp$1=require("./_object-dp").f,r$jscomp$1=require("./_object-create"),t$jscomp$1=require("./_redefine-all"),i$jscomp$0=require("./_ctx"),n$jscomp$0=require("./_an-instance"),_$jscomp$0=require("./_for-of"),o$jscomp$0=require("./_iter-define"),u$jscomp$0=require("./_iter-step"),f$jscomp$0=require("./_set-species"),s=require("./_descriptors"),l$jscomp$0=require("./_meta").fastKey,c=require("./_validate-collection"),
v=s?"_s":"size",a=function(e,r){var i=l$jscomp$0(r);if("F"!==i)return e._i[i];for(e=e._f;e;e=e.n)if(e.k==r)return e};module.exports={getConstructor:function(o,u,f,l){var h=o(function(e,t){n$jscomp$0(e,h,u,"_i");e._t=u;e._i=r$jscomp$1(null);e._f=void 0;e._l=void 0;e[v]=0;null!=t&&_$jscomp$0(t,f,e[l],e)});return t$jscomp$1(h.prototype,{clear:function(){for(var e=c(this,u),r=e._i,t=e._f;t;t=t.n)t.r=!0,t.p&&(t.p=t.p.n=void 0),delete r[t.i];e._f=e._l=void 0;e[v]=0},"delete":function(e){var r=c(this,u);
if(e=a(r,e)){var i=e.n,n=e.p;delete r._i[e.i];e.r=!0;n&&(n.n=i);i&&(i.p=n);r._f==e&&(r._f=i);r._l==e&&(r._l=n);r[v]--}return!!e},forEach:function(e){c(this,u);for(var r,t=i$jscomp$0(e,1<arguments.length?arguments[1]:void 0,3);r=r?r.n:this._f;)for(t(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!a(c(this,u),e)}}),s&&e$jscomp$1(h.prototype,"size",{get:function(){return c(this,u)[v]}}),h},def:function(e,r,t){var i,n,_=a(e,r);return _?_.v=t:(e._l=_={i:n=l$jscomp$0(r,!0),k:r,v:t,p:i=e._l,n:void 0,
r:!1},e._f||(e._f=_),i&&(i.n=_),e[v]++,"F"!==n&&(e._i[n]=_)),e},getEntry:a,setStrong:function(e$jscomp$0,r$jscomp$0,t$jscomp$0){o$jscomp$0(e$jscomp$0,r$jscomp$0,function(e,t){this._t=c(e,r$jscomp$0);this._k=t;this._l=void 0},function(){for(var e=this._k,r=this._l;r&&r.r;)r=r.p;return this._t&&(this._l=r=r?r.n:this._t._f)?u$jscomp$0(0,"keys"==e?r.k:"values"==e?r.v:[r.k,r.v]):(this._t=void 0,u$jscomp$0(1))},t$jscomp$0?"entries":"values",!t$jscomp$0,!0);f$jscomp$0(r$jscomp$0)}}},{"./_object-dp":"nw8e",
"./_object-create":"sYaK","./_redefine-all":"J0Tl","./_ctx":"E3Kh","./_an-instance":"yJTF","./_for-of":"Abke","./_iter-define":"mH0U","./_iter-step":"x8b3","./_set-species":"5h4d","./_descriptors":"P9Ib","./_meta":"AoVy","./_validate-collection":"1FW4"}],vjRp:[function(require,module,exports){exports.f={}.propertyIsEnumerable},{}],uIjZ:[function(require,module,exports){var e=require("./_object-pie"),r=require("./_property-desc"),i=require("./_to-iobject"),t=require("./_to-primitive"),o=require("./_has"),
c=require("./_ie8-dom-define"),u=Object.getOwnPropertyDescriptor;exports.f=require("./_descriptors")?u:function(p,q){if(p=i(p),q=t(q,!0),c)try{return u(p,q)}catch(_){}if(o(p,q))return r(!e.f.call(p,q),p[q])}},{"./_object-pie":"vjRp","./_property-desc":"uJ6d","./_to-iobject":"g6sb","./_to-primitive":"9y37","./_has":"2uHg","./_ie8-dom-define":"/o6G","./_descriptors":"P9Ib"}],vn3S:[function(require,module,exports){var t$jscomp$1=require("./_is-object"),e$jscomp$0=require("./_an-object"),r=function(_r,
o){if(e$jscomp$0(_r),!t$jscomp$1(o)&&null!==o)throw TypeError(o+": can't set as prototype!");};module.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t$jscomp$0,e,o){try{(o=require("./_ctx")(Function.call,require("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t$jscomp$0,[]),e=!(t$jscomp$0 instanceof Array)}catch(c){e=!0}return function(t,c){return r(t,c),e?t.__proto__=c:o(t,c),t}}({},!1):void 0),check:r}},{"./_is-object":"M7z6","./_an-object":"eT53","./_ctx":"E3Kh","./_object-gopd":"uIjZ"}],
ogxf:[function(require,module,exports){var t=require("./_is-object"),o=require("./_set-proto").set;module.exports=function(r,e,p){var u;e=e.constructor;return e!==p&&"function"==typeof e&&(u=e.prototype)!==p.prototype&&t(u)&&o&&o(r,u),r}},{"./_is-object":"M7z6","./_set-proto":"vn3S"}],hWYB:[function(require,module,exports){var e$jscomp$1=require("./_global"),r$jscomp$0=require("./_export"),t$jscomp$0=require("./_redefine"),n=require("./_redefine-all"),i=require("./_meta"),u=require("./_for-of"),o=
require("./_an-instance"),c=require("./_is-object"),a=require("./_fails"),s=require("./_iter-detect"),l=require("./_set-to-string-tag"),f=require("./_inherit-if-required");module.exports=function(d,h,q,_,p,g){var v=e$jscomp$1[d],w=v,y=p?"set":"add",x=w&&w.prototype,E={},b=function(e$jscomp$0){var r=x[e$jscomp$0];t$jscomp$0(x,e$jscomp$0,"delete"==e$jscomp$0?function(e){return!(g&&!c(e))&&r.call(this,0===e?0:e)}:"has"==e$jscomp$0?function(e){return!(g&&!c(e))&&r.call(this,0===e?0:e)}:"get"==e$jscomp$0?
function(e){return g&&!c(e)?void 0:r.call(this,0===e?0:e)}:"add"==e$jscomp$0?function(e){return r.call(this,0===e?0:e),this}:function(e,t){return r.call(this,0===e?0:e,t),this})};if("function"==typeof w&&(g||x.forEach&&!a(function(){(new w).entries().next()}))){var m=new w;q=m[y](g?{}:-0,1)!=m;var C=a(function(){m.has(1)}),D=s(function(e){new w(e)}),F=!g&&a(function(){for(var e=new w,r=5;r--;)e[y](r,r);return!e.has(-0)});D||((w=h(function(e,r){o(e,w,d);e=f(new v,e,w);return null!=r&&u(r,p,e[y],e),
e})).prototype=x,x.constructor=w);(C||F)&&(b("delete"),b("has"),p&&b("get"));(F||q)&&b(y);g&&x.clear&&delete x.clear}else w=_.getConstructor(h,d,p,y),n(w.prototype,q),i.NEED=!0;return l(w,d),E[d]=w,r$jscomp$0(r$jscomp$0.G+r$jscomp$0.W+r$jscomp$0.F*(w!=v),E),g||_.setStrong(w,d,p),w}},{"./_global":"5qf4","./_export":"izCb","./_redefine":"PHot","./_redefine-all":"J0Tl","./_meta":"AoVy","./_for-of":"Abke","./_an-instance":"yJTF","./_is-object":"M7z6","./_fails":"5BXi","./_iter-detect":"md62","./_set-to-string-tag":"rq3q",
"./_inherit-if-required":"ogxf"}],ioKM:[function(require,module,exports){var t$jscomp$0=require("./_collection-strong"),e=require("./_validate-collection");module.exports=require("./_collection")("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{get:function(n){return(n=t$jscomp$0.getEntry(e(this,"Map"),n))&&n.v},set:function(n,i){return t$jscomp$0.def(e(this,"Map"),0===n?0:n,i)}},t$jscomp$0,!0)},{"./_collection-strong":"8aIi","./_validate-collection":"1FW4",
"./_collection":"hWYB"}],ggmj:[function(require,module,exports){module.exports=Math.log1p||function(e){return-1E-8<(e=+e)&&1E-8>e?e-e*e/2:Math.log(1+e)}},{}],"py3/":[function(require,module,exports){module=require("./_export");var r=require("./_math-log1p"),t=Math.sqrt;require=Math.acosh;module(module.S+module.F*!(require&&710==Math.floor(require(Number.MAX_VALUE))&&require(1/0)==1/0),"Math",{acosh:function(a){return 1>(a=+a)?NaN:9.490626562425156E7<a?Math.log(a)+Math.LN2:r(a-1+t(a-1)*t(a+1))}})},
{"./_export":"izCb","./_math-log1p":"ggmj"}],ob11:[function(require,module,exports){function i(t){return isFinite(t=+t)&&0!=t?0>t?-i(-t):Math.log(t+Math.sqrt(t*t+1)):t}require=require("./_export");module=Math.asinh;require(require.S+require.F*!(module&&0<1/module(0)),"Math",{asinh:i})},{"./_export":"izCb"}],iUik:[function(require,module,exports){require=require("./_export");module=Math.atanh;require(require.S+require.F*!(module&&0>1/module(-0)),"Math",{atanh:function(a){return 0==(a=+a)?a:Math.log((1+
a)/(1-a))/2}})},{"./_export":"izCb"}],qtVy:[function(require,module,exports){module.exports=Math.sign||function(n){return 0==(n=+n)||n!=n?n:0>n?-1:1}},{}],YRuK:[function(require,module,exports){module=require("./_export");var t=require("./_math-sign");module(module.S,"Math",{cbrt:function(r){return t(r=+r)*Math.pow(Math.abs(r),1/3)}})},{"./_export":"izCb","./_math-sign":"qtVy"}],R2Qc:[function(require,module,exports){require=require("./_export");require(require.S,"Math",{clz32:function(r){return(r>>>=
0)?31-Math.floor(Math.log(r+.5)*Math.LOG2E):32}})},{"./_export":"izCb"}],nEse:[function(require,module,exports){require=require("./_export");var e=Math.exp;require(require.S,"Math",{cosh:function(r){return(e(r=+r)+e(-r))/2}})},{"./_export":"izCb"}],"A+f6":[function(require,module,exports){require=Math.expm1;module.exports=!require||22025.465794806718<require(10)||22025.465794806718>require(10)||-2E-17!=require(-2E-17)?function(e){return 0==(e=+e)?e:-1E-6<e&&1E-6>e?e+e*e/2:Math.exp(e)-1}:require},
{}],AmoX:[function(require,module,exports){module=require("./_export");require=require("./_math-expm1");module(module.S+module.F*(require!=Math.expm1),"Math",{expm1:require})},{"./_export":"izCb","./_math-expm1":"A+f6"}],z6h7:[function(require,module,exports){var r=require("./_math-sign");require=Math.pow;var n=require(2,-52),a=require(2,-23),u=require(2,127)*(2-a),e=require(2,-126);module.exports=Math.fround||function(t){var h,i,f=Math.abs(t);t=r(t);return f<e?t*(f/e/a+1/n-1/n)*e*a:(i=(h=(1+a/n)*
f)-(h-f))>u||i!=i?1/0*t:t*i}},{"./_math-sign":"qtVy"}],vmlq:[function(require,module,exports){module=require("./_export");module(module.S,"Math",{fround:require("./_math-fround")})},{"./_export":"izCb","./_math-fround":"z6h7"}],kLut:[function(require,module,exports){require=require("./_export");var t=Math.abs;require(require.S,"Math",{hypot:function(r,a){for(var e,h,n=0,o=0,u=arguments.length,M=0;o<u;)M<(e=t(arguments[o++]))?(n=n*(h=M/e)*h+1,M=e):n+=0<e?(h=e/M)*h:e;return M===1/0?1/0:M*Math.sqrt(n)}})},
{"./_export":"izCb"}],A8J8:[function(require,module,exports){module=require("./_export");var e$jscomp$0=Math.imul;module(module.S+module.F*require("./_fails")(function(){return-5!=e$jscomp$0(4294967295,5)||2!=e$jscomp$0.length}),"Math",{imul:function(r,e){r=+r;e=+e;var i=65535&r,n=65535&e;return 0|i*n+((65535&r>>>16)*n+i*(65535&e>>>16)<<16>>>0)}})},{"./_export":"izCb","./_fails":"5BXi"}],qtpC:[function(require,module,exports){module=require("./_export");module(module.S,"Math",{log1p:require("./_math-log1p")})},
{"./_export":"izCb","./_math-log1p":"ggmj"}],VUW8:[function(require,module,exports){require=require("./_export");require(require.S,"Math",{log10:function(r){return Math.log(r)*Math.LOG10E}})},{"./_export":"izCb"}],"1Jo9":[function(require,module,exports){require=require("./_export");require(require.S,"Math",{log2:function(r){return Math.log(r)/Math.LN2}})},{"./_export":"izCb"}],mZl9:[function(require,module,exports){module=require("./_export");module(module.S,"Math",{sign:require("./_math-sign")})},
{"./_export":"izCb","./_math-sign":"qtVy"}],m0zb:[function(require,module,exports){module=require("./_export");var r=require("./_math-expm1"),t=Math.exp;module(module.S+module.F*require("./_fails")(function(){return-2E-17!=!Math.sinh(-2E-17)}),"Math",{sinh:function(e){return 1>Math.abs(e=+e)?(r(e)-r(-e))/2:(t(e-1)-t(-e-1))*(Math.E/2)}})},{"./_export":"izCb","./_math-expm1":"A+f6","./_fails":"5BXi"}],Fnqw:[function(require,module,exports){module=require("./_export");var e=require("./_math-expm1"),
t=Math.exp;module(module.S,"Math",{tanh:function(r){var a=e(r=+r),h=e(-r);return a==1/0?1:h==1/0?-1:(a-h)/(t(r)+t(-r))}})},{"./_export":"izCb","./_math-expm1":"A+f6"}],tiOR:[function(require,module,exports){require=require("./_export");require(require.S,"Math",{trunc:function(r){return(0<r?Math.floor:Math.ceil)(r)}})},{"./_export":"izCb"}],Vzm0:[function(require,module,exports){var e=require("./_object-keys-internal"),r=require("./_enum-bug-keys").concat("length","prototype");exports.f=Object.getOwnPropertyNames||
function(t){return e(t,r)}},{"./_object-keys-internal":"vL0Z","./_enum-bug-keys":"9bbv"}],ECro:[function(require,module,exports){module.exports="\t\n\v\f\r \u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},{}],y5m2:[function(require,module,exports){var r$jscomp$0=require("./_export"),e$jscomp$0=require("./_defined"),i$jscomp$0=require("./_fails"),n=require("./_string-ws");require="["+n+"]";var o$jscomp$0=RegExp("^"+require+require+
"*"),p$jscomp$0=RegExp(require+require+"*$");require=function(e,t,o){var p={},a=i$jscomp$0(function(){return!!n[e]()||"\u200b\u0085"!="\u200b\u0085"[e]()});t=p[e]=a?t(c):n[e];o&&(p[o]=t);r$jscomp$0(r$jscomp$0.P+r$jscomp$0.F*a,"String",p)};var c=require.trim=function(r,i){return r=String(e$jscomp$0(r)),1&i&&(r=r.replace(o$jscomp$0,"")),2&i&&(r=r.replace(p$jscomp$0,"")),r};module.exports=require},{"./_export":"izCb","./_defined":"+Bjj","./_fails":"5BXi","./_string-ws":"ECro"}],kRGG:[function(require,
module,exports){module=require("./_global");exports=require("./_has");var t$jscomp$0=require("./_cof"),i=require("./_inherit-if-required"),a$jscomp$0=require("./_to-primitive"),n=require("./_fails"),o=require("./_object-gopn").f,u$jscomp$0=require("./_object-gopd").f,s=require("./_object-dp").f,c=require("./_string-trim").trim,_2=module.Number,I=_2,N=_2.prototype,p="Number"==t$jscomp$0(require("./_object-create")(N)),l="trim"in String.prototype,q=function(e){var r=a$jscomp$0(e,!1);if("string"==typeof r&&
2<r.length){var t;e=(r=l?r.trim():c(r,3)).charCodeAt(0);if(43===e||45===e){if(88===(t=r.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(r.charCodeAt(1)){case 66:case 98:t=2;e=49;break;case 79:case 111:t=8;e=55;break;default:return+r}var u;r=r.slice(2);for(var f=0,_=r.length;f<_;f++)if(48>(u=r.charCodeAt(f))||u>e)return NaN;return parseInt(r,t)}}return+r};if(!_2(" 0o1")||!_2("0b1")||_2("+0x1")){_2=function(e){var r=1>arguments.length?0:e,a=this;return a instanceof _2&&(p?n(function(){N.valueOf.call(a)}):
"Number"!=t$jscomp$0(a))?i(new I(q(r)),a,_2):q(r)};var g;o=require("./_descriptors")?o(I):"MAX_VALUE MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY EPSILON isFinite isInteger isNaN isSafeInteger MAX_SAFE_INTEGER MIN_SAFE_INTEGER parseFloat parseInt isInteger".split(" ");for(var E=0;o.length>E;E++)exports(I,g=o[E])&&!exports(_2,g)&&s(_2,g,u$jscomp$0(I,g));_2.prototype=N;N.constructor=_2;require("./_redefine")(module,"Number",_2)}},{"./_global":"5qf4","./_has":"2uHg","./_cof":"Z5df","./_inherit-if-required":"ogxf",
"./_to-primitive":"9y37","./_fails":"5BXi","./_object-gopn":"Vzm0","./_object-gopd":"uIjZ","./_object-dp":"nw8e","./_string-trim":"y5m2","./_object-create":"sYaK","./_descriptors":"P9Ib","./_redefine":"PHot"}],DzYy:[function(require,module,exports){require=require("./_export");require(require.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":"izCb"}],FuY7:[function(require,module,exports){module=require("./_export");var r=require("./_global").isFinite;module(module.S,"Number",{isFinite:function(e){return"number"==
typeof e&&r(e)}})},{"./_export":"izCb","./_global":"5qf4"}],T4z7:[function(require,module,exports){var e=require("./_is-object"),r=Math.floor;module.exports=function(i){return!e(i)&&isFinite(i)&&r(i)===i}},{"./_is-object":"M7z6"}],pwRL:[function(require,module,exports){module=require("./_export");module(module.S,"Number",{isInteger:require("./_is-integer")})},{"./_export":"izCb","./_is-integer":"T4z7"}],SsgJ:[function(require,module,exports){require=require("./_export");require(require.S,"Number",
{isNaN:function(r){return r!=r}})},{"./_export":"izCb"}],"5qVI":[function(require,module,exports){module=require("./_export");var r=require("./_is-integer"),i=Math.abs;module(module.S,"Number",{isSafeInteger:function(e){return r(e)&&9007199254740991>=i(e)}})},{"./_export":"izCb","./_is-integer":"T4z7"}],"4shx":[function(require,module,exports){require=require("./_export");require(require.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":"izCb"}],"+ifB":[function(require,module,exports){require=
require("./_export");require(require.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":"izCb"}],"0NfQ":[function(require,module,exports){var r=require("./_global").parseFloat,e=require("./_string-trim").trim;module.exports=1/r(require("./_string-ws")+"-0")!=-1/0?function(t){t=e(String(t),3);var a=r(t);return 0===a&&"-"==t.charAt(0)?-0:a}:r},{"./_global":"5qf4","./_string-trim":"y5m2","./_string-ws":"ECro"}],yjyf:[function(require,module,exports){module=require("./_export");require=require("./_parse-float");
module(module.S+module.F*(Number.parseFloat!=require),"Number",{parseFloat:require})},{"./_export":"izCb","./_parse-float":"0NfQ"}],"8pmY":[function(require,module,exports){var r=require("./_global").parseInt,e=require("./_string-trim").trim;require=require("./_string-ws");var i=/^[-+]?0[xX]/;module.exports=8!==r(require+"08")||22!==r(require+"0x16")?function(t,n){t=e(String(t),3);return r(t,n>>>0||(i.test(t)?16:10))}:r},{"./_global":"5qf4","./_string-trim":"y5m2","./_string-ws":"ECro"}],Guno:[function(require,
module,exports){module=require("./_export");require=require("./_parse-int");module(module.S+module.F*(Number.parseInt!=require),"Number",{parseInt:require})},{"./_export":"izCb","./_parse-int":"8pmY"}],EWMd:[function(require,module,exports){exports.f=Object.getOwnPropertySymbols},{}],e3Bp:[function(require,module,exports){var e$jscomp$1=require("./_descriptors"),r$jscomp$0=require("./_object-keys"),t$jscomp$0=require("./_object-gops"),o=require("./_object-pie"),i=require("./_to-object"),c=require("./_iobject"),
n$jscomp$0=Object.assign;module.exports=!n$jscomp$0||require("./_fails")(function(){var e$jscomp$0={},r={},t=Symbol();return e$jscomp$0[t]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),7!=n$jscomp$0({},e$jscomp$0)[t]||"abcdefghijklmnopqrst"!=Object.keys(n$jscomp$0({},r)).join("")})?function(n,u){for(var s=i(n),a=arguments.length,f=1,b=t$jscomp$0.f,j=o.f;a>f;)for(var l,q=c(arguments[f++]),_=b?r$jscomp$0(q).concat(b(q)):r$jscomp$0(q),p=_.length,g=0;p>g;)l=_[g++],e$jscomp$1&&!j.call(q,
l)||(s[l]=q[l]);return s}:n$jscomp$0},{"./_descriptors":"P9Ib","./_object-keys":"U9a7","./_object-gops":"EWMd","./_object-pie":"vjRp","./_to-object":"rfVX","./_iobject":"nGau","./_fails":"5BXi"}],"K3/J":[function(require,module,exports){module=require("./_export");module(module.S+module.F,"Object",{assign:require("./_object-assign")})},{"./_export":"izCb","./_object-assign":"e3Bp"}],mhol:[function(require,module,exports){module.exports=require("./_library")||!require("./_fails")(function(){var e=
Math.random();__defineSetter__.call(null,e,function(){});delete require("./_global")[e]})},{"./_library":"H21C","./_fails":"5BXi","./_global":"5qf4"}],guoQ:[function(require,module,exports){module=require("./_export");var r=require("./_to-object"),t=require("./_a-function"),i=require("./_object-dp");require("./_descriptors")&&module(module.P+require("./_object-forced-pam"),"Object",{__defineGetter__:function(e,u){i.f(r(this),e,{get:t(u),enumerable:!0,configurable:!0})}})},{"./_export":"izCb","./_to-object":"rfVX",
"./_a-function":"6kYj","./_object-dp":"nw8e","./_descriptors":"P9Ib","./_object-forced-pam":"mhol"}],HMp9:[function(require,module,exports){module=require("./_export");var r=require("./_to-object"),t=require("./_a-function"),i=require("./_object-dp");require("./_descriptors")&&module(module.P+require("./_object-forced-pam"),"Object",{__defineSetter__:function(e,u){i.f(r(this),e,{set:t(u),enumerable:!0,configurable:!0})}})},{"./_export":"izCb","./_to-object":"rfVX","./_a-function":"6kYj","./_object-dp":"nw8e",
"./_descriptors":"P9Ib","./_object-forced-pam":"mhol"}],ljQU:[function(require,module,exports){var e=require("./_descriptors"),r=require("./_object-keys"),t=require("./_to-iobject"),o=require("./_object-pie").f;module.exports=function(u){return function(i){for(var n=t(i),s=r(n),f=s.length,l=0,p=[];f>l;)i=s[l++],e&&!o.call(n,i)||p.push(u?[i,n[i]]:n[i]);return p}}},{"./_descriptors":"P9Ib","./_object-keys":"U9a7","./_to-iobject":"g6sb","./_object-pie":"vjRp"}],gxEP:[function(require,module,exports){module=
require("./_export");var e=require("./_object-to-array")(!0);module(module.S,"Object",{entries:function(r){return e(r)}})},{"./_export":"izCb","./_object-to-array":"ljQU"}],s7uf:[function(require,module,exports){var e=require("./_export"),r=require("./_core"),t=require("./_fails");module.exports=function(c,i){var o=(r.Object||{})[c]||Object[c],u={};u[c]=i(o);e(e.S+e.F*t(function(){o(1)}),"Object",u)}},{"./_export":"izCb","./_core":"ss9A","./_fails":"5BXi"}],EO7q:[function(require,module,exports){var e=
require("./_is-object"),r=require("./_meta").onFreeze;require("./_object-sap")("freeze",function(n){return function(t){return n&&e(t)?n(r(t)):t}})},{"./_is-object":"M7z6","./_meta":"AoVy","./_object-sap":"s7uf"}],nIty:[function(require,module,exports){var r=require("./_to-iobject"),e=require("./_object-gopd").f;require("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,o){return e(r(t),o)}})},{"./_to-iobject":"g6sb","./_object-gopd":"uIjZ","./_object-sap":"s7uf"}],kABk:[function(require,
module,exports){var e=require("./_object-gopn"),r=require("./_object-gops"),o=require("./_an-object");require=require("./_global").Reflect;module.exports=require&&require.ownKeys||function(t){var c=e.f(o(t)),n=r.f;return n?c.concat(n(t)):c}},{"./_object-gopn":"Vzm0","./_object-gops":"EWMd","./_an-object":"eT53","./_global":"5qf4"}],BQD8:[function(require,module,exports){module=require("./_export");var r=require("./_own-keys"),t=require("./_to-iobject"),o=require("./_object-gopd"),i=require("./_create-property");
module(module.S,"Object",{getOwnPropertyDescriptors:function(e){var u,c;e=t(e);for(var p=o.f,q=r(e),_={},a=0;q.length>a;)void 0!==(c=p(e,u=q[a++]))&&i(_,u,c);return _}})},{"./_export":"izCb","./_own-keys":"kABk","./_to-iobject":"g6sb","./_object-gopd":"uIjZ","./_create-property":"JCwR"}],dvol:[function(require,module,exports){var e=require("./_to-iobject"),t=require("./_object-gopn").f,o={}.toString,r="object"==("undefined"===typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?
Object.getOwnPropertyNames(window):[];module.exports.f=function(c){if(r&&"[object Window]"==o.call(c))try{var JSCompiler_temp=t(c)}catch(o$20){JSCompiler_temp=r.slice()}else JSCompiler_temp=t(e(c));return JSCompiler_temp}},{"./_to-iobject":"g6sb","./_object-gopn":"Vzm0"}],"i23/":[function(require,module,exports){require("./_object-sap")("getOwnPropertyNames",function(){return require("./_object-gopn-ext").f})},{"./_object-sap":"s7uf","./_object-gopn-ext":"dvol"}],ud3u:[function(require,module,exports){var e=
require("./_to-object"),r=require("./_object-gpo");require("./_object-sap")("getPrototypeOf",function(){return function(t){return r(e(t))}})},{"./_to-object":"rfVX","./_object-gpo":"8q6y","./_object-sap":"s7uf"}],HB2g:[function(require,module,exports){module=require("./_export");var r=require("./_to-object"),t=require("./_to-primitive"),i=require("./_object-gpo"),o=require("./_object-gopd").f;require("./_descriptors")&&module(module.P+require("./_object-forced-pam"),"Object",{__lookupGetter__:function(e){var _=
r(this),c=t(e,!0);do if(e=o(_,c))return e.get;while(_=i(_))}})},{"./_export":"izCb","./_to-object":"rfVX","./_to-primitive":"9y37","./_object-gpo":"8q6y","./_object-gopd":"uIjZ","./_descriptors":"P9Ib","./_object-forced-pam":"mhol"}],QF5J:[function(require,module,exports){module=require("./_export");var r=require("./_to-object"),t=require("./_to-primitive"),i=require("./_object-gpo"),o=require("./_object-gopd").f;require("./_descriptors")&&module(module.P+require("./_object-forced-pam"),"Object",
{__lookupSetter__:function(e){var _=r(this),c=t(e,!0);do if(e=o(_,c))return e.set;while(_=i(_))}})},{"./_export":"izCb","./_to-object":"rfVX","./_to-primitive":"9y37","./_object-gpo":"8q6y","./_object-gopd":"uIjZ","./_descriptors":"P9Ib","./_object-forced-pam":"mhol"}],"3llM":[function(require,module,exports){var e=require("./_is-object"),r=require("./_meta").onFreeze;require("./_object-sap")("preventExtensions",function(n){return function(t){return n&&e(t)?n(r(t)):t}})},{"./_is-object":"M7z6","./_meta":"AoVy",
"./_object-sap":"s7uf"}],zutv:[function(require,module,exports){module.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},{}],MlqR:[function(require,module,exports){module=require("./_export");module(module.S,"Object",{is:require("./_same-value")})},{"./_export":"izCb","./_same-value":"zutv"}],Z1rp:[function(require,module,exports){var r=require("./_is-object");require("./_object-sap")("isFrozen",function(e){return function(n){return!r(n)||!!e&&e(n)}})},{"./_is-object":"M7z6",
"./_object-sap":"s7uf"}],Fckj:[function(require,module,exports){var e=require("./_is-object");require("./_object-sap")("isSealed",function(r){return function(i){return!e(i)||!!r&&r(i)}})},{"./_is-object":"M7z6","./_object-sap":"s7uf"}],"1EYb":[function(require,module,exports){var e=require("./_is-object");require("./_object-sap")("isExtensible",function(r){return function(i){return!!e(i)&&(!r||r(i))}})},{"./_is-object":"M7z6","./_object-sap":"s7uf"}],m9aB:[function(require,module,exports){var e=require("./_to-object"),
r=require("./_object-keys");require("./_object-sap")("keys",function(){return function(t){return r(e(t))}})},{"./_to-object":"rfVX","./_object-keys":"U9a7","./_object-sap":"s7uf"}],"+4GY":[function(require,module,exports){var e=require("./_is-object"),r=require("./_meta").onFreeze;require("./_object-sap")("seal",function(n){return function(t){return n&&e(t)?n(r(t)):t}})},{"./_is-object":"M7z6","./_meta":"AoVy","./_object-sap":"s7uf"}],Ltmz:[function(require,module,exports){module=require("./_export");
var e=require("./_object-to-array")(!1);module(module.S,"Object",{values:function(r){return e(r)}})},{"./_export":"izCb","./_object-to-array":"ljQU"}],"Ex+G":[function(require,module,exports){var r=require("./_an-object"),e=require("./_a-function"),u=require("./_wks")("species");module.exports=function(n,o){var i;n=r(n).constructor;return void 0===n||null==(i=r(n)[u])?o:e(i)}},{"./_an-object":"eT53","./_a-function":"6kYj","./_wks":"44AI"}],xcbV:[function(require,module,exports){module.exports=function(e,
r,l){var a=void 0===l;switch(r.length){case 0:return a?e():e.call(l);case 1:return a?e(r[0]):e.call(l,r[0]);case 2:return a?e(r[0],r[1]):e.call(l,r[0],r[1]);case 3:return a?e(r[0],r[1],r[2]):e.call(l,r[0],r[1],r[2]);case 4:return a?e(r[0],r[1],r[2],r[3]):e.call(l,r[0],r[1],r[2],r[3])}return e.apply(l,r)}},{}],KY9y:[function(require,module,exports){var e$jscomp$0,t$jscomp$0,n$jscomp$0,i$jscomp$0=require("./_ctx"),o=require("./_invoke"),r=require("./_html"),s=require("./_dom-create"),a=require("./_global"),
c=a.process;exports=a.setImmediate;var p=a.clearImmediate,f=a.MessageChannel,l=a.Dispatch,d=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e];t()}},v=function(e){g.call(e.data)};exports&&p||(exports=function(t){for(var n=[],i=1;arguments.length>i;)n.push(arguments[i++]);return m[++d]=function(){o("function"==typeof t?t:Function(t),n)},e$jscomp$0(d),d},p=function(e){delete m[e]},"process"==require("./_cof")(c)?e$jscomp$0=function(_e2){c.nextTick(i$jscomp$0(g,_e2,1))}:l&&
l.now?e$jscomp$0=function(_e3){l.now(i$jscomp$0(g,_e3,1))}:f?(n$jscomp$0=(t$jscomp$0=new f).port2,t$jscomp$0.port1.onmessage=v,e$jscomp$0=i$jscomp$0(n$jscomp$0.postMessage,n$jscomp$0,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(e$jscomp$0=function(_e4){a.postMessage(_e4+"","*")},a.addEventListener("message",v,!1)):e$jscomp$0="onreadystatechange"in s("script")?function(e){r.appendChild(s("script")).onreadystatechange=function(){r.removeChild(this);g.call(e)}}:function(e){setTimeout(i$jscomp$0(g,
e,1),0)});module.exports={set:exports,clear:p}},{"./_ctx":"E3Kh","./_invoke":"xcbV","./_html":"xj/b","./_dom-create":"/vZ6","./_global":"5qf4","./_cof":"Z5df"}],sFAp:[function(require,module,exports){var e$jscomp$0=require("./_global"),t$jscomp$0=require("./_task").set,r=e$jscomp$0.MutationObserver||e$jscomp$0.WebKitMutationObserver,n=e$jscomp$0.process,o=e$jscomp$0.Promise,a="process"==require("./_cof")(n);module.exports=function(){var i,c,v=function(){var e;for(a&&(e=n.domain)&&e.exit();i;){var t=
i.fn;i=i.next;try{t()}catch(r$21){throw i?s():c=void 0,r$21;}}c=void 0;e&&e.enter()};if(a)var s=function(){n.nextTick(v)};else if(!r||e$jscomp$0.navigator&&e$jscomp$0.navigator.standalone)if(o&&o.resolve){var u=o.resolve(void 0);s=function(){u.then(v)}}else s=function(){t$jscomp$0.call(e$jscomp$0,v)};else{var f=!0,l=document.createTextNode("");(new r(v)).observe(l,{characterData:!0});s=function(){l.data=f=!f}}return function(e){e={fn:e,next:void 0};c&&(c.next=e);i||(i=e,s());c=e}}},{"./_global":"5qf4",
"./_task":"KY9y","./_cof":"Z5df"}],L7XN:[function(require,module,exports){function e$jscomp$1(e$jscomp$0){var o,t;this.promise=new e$jscomp$0(function(r,e){if(void 0!==o||void 0!==t)throw TypeError("Bad Promise constructor");o=r;t=e});this.resolve=r$jscomp$0(o);this.reject=r$jscomp$0(t)}var r$jscomp$0=require("./_a-function");module.exports.f=function(r){return new e$jscomp$1(r)}},{"./_a-function":"6kYj"}],tyG8:[function(require,module,exports){module.exports=function(e){try{return{e:!1,v:e()}}catch(r){return{e:!0,
v:r}}}},{}],O5uh:[function(require,module,exports){require=require("./_global").navigator;module.exports=require&&require.userAgent||""},{"./_global":"5qf4"}],cNG8:[function(require,module,exports){var r=require("./_an-object"),e=require("./_is-object"),i=require("./_new-promise-capability");module.exports=function(o,t){if(r(o),e(t)&&t.constructor===o)return t;o=i.f(o);return(0,o.resolve)(t),o.promise}},{"./_an-object":"eT53","./_is-object":"M7z6","./_new-promise-capability":"L7XN"}],Pjta:[function(require,
module,exports){var e$jscomp$2,r$jscomp$1,t$jscomp$1,n$jscomp$0=require("./_library"),o$jscomp$1=require("./_global"),c$jscomp$0=require("./_ctx"),s$jscomp$0=require("./_classof");module=require("./_export");var a$jscomp$0=require("./_is-object"),_$jscomp$0=require("./_a-function"),h=require("./_an-instance"),f=require("./_for-of"),l=require("./_species-constructor"),v=require("./_task").set,d=require("./_microtask")();exports=require("./_new-promise-capability");var m=require("./_perform"),q=require("./_user-agent"),
y=require("./_promise-resolve"),w=o$jscomp$1.TypeError,g=o$jscomp$1.process,x=g&&g.versions,b=x&&x.v8||"",_k=o$jscomp$1.Promise,P="process"==s$jscomp$0(g),F=function(){},S=r$jscomp$1=exports.f;s$jscomp$0=!!function(){try{var e$jscomp$0=_k.resolve(1),r=(e$jscomp$0.constructor={})[require("./_wks")("species")]=function(e){e(F,F)};return(P||"function"==typeof PromiseRejectionEvent)&&e$jscomp$0.then(F)instanceof r&&0!==b.indexOf("6.6")&&-1===q.indexOf("Chrome/66")}catch(t$22){}}();var O=function(e){var r;
return!(!a$jscomp$0(e)||"function"!=typeof(r=e.then))&&r},R=function(e,r$jscomp$0){if(!e._n){e._n=!0;var t$jscomp$0=e._c;d(function(){for(var i=e._v,n=1==e._s,o=0;t$jscomp$0.length>o;){var c=void 0,o$jscomp$0=void 0,t=void 0,r=t$jscomp$0[o++],s=n?r.ok:r.fail,u=r.resolve,a=r.reject,_=r.domain;try{s?(n||(2==e._h&&H(e),e._h=1),!0===s?t=i:(_&&_.enter(),t=s(i),_&&(_.exit(),c=!0)),t===r.promise?a(w("Promise-chain cycle")):(o$jscomp$0=O(t))?o$jscomp$0.call(t,u,a):u(t)):a(i)}catch(h$23){_&&!c&&_.exit(),a(h$23)}}e._c=
[];e._n=!1;r$jscomp$0&&!e._h&&C(e)})}},C=function(e){v.call(o$jscomp$1,function(){var r,t,i,n=e._v,c=1!==e._h&&0===(e._a||e._c).length;if(c&&(r=m(function(){P?g.emit("unhandledRejection",n,e):(t=o$jscomp$1.onunhandledrejection)?t({promise:e,reason:n}):(i=o$jscomp$1.console)&&i.error&&i.error("Unhandled promise rejection",n)}),e._h=P||1!==e._h&&0===(e._a||e._c).length?2:1),e._a=void 0,c&&r.e)throw r.v;})},H=function(e){v.call(o$jscomp$1,function(){var r;P?g.emit("rejectionHandled",e):(r=o$jscomp$1.onrejectionhandled)&&
r({promise:e,reason:e._v})})},T=function(e){var r=this;r._d||(r._d=!0,(r=r._w||r)._v=e,r._s=2,r._a||(r._a=r._c.slice()),R(r,!0))},U=function U(e){var r,t=this;if(!t._d){t._d=!0;t=t._w||t;try{if(t===e)throw w("Promise can't be resolved itself");(r=O(e))?d(function(){var i={_w:t,_d:!1};try{r.call(e,c$jscomp$0(U,i,1),c$jscomp$0(T,i,1))}catch(n$24){T.call(i,n$24)}}):(t._v=e,t._s=1,R(t,!1))}catch(i$25){T.call({_w:t,_d:!1},i$25)}}};s$jscomp$0||(_k=function(r){h(this,_k,"Promise","_h");_$jscomp$0(r);e$jscomp$2.call(this);
try{r(c$jscomp$0(U,this,1),c$jscomp$0(T,this,1))}catch(t$26){T.call(this,t$26)}},(e$jscomp$2=function(_e5){this._c=[];this._a=void 0;this._s=0;this._d=!1;this._v=void 0;this._h=0;this._n=!1}).prototype=require("./_redefine-all")(_k.prototype,{then:function(e,r){var t=S(l(this,_k));return t.ok="function"!=typeof e||e,t.fail="function"==typeof r&&r,t.domain=P?g.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&R(this,!1),t.promise},"catch":function(e){return this.then(void 0,e)}}),t$jscomp$1=
function(){var r=new e$jscomp$2;this.promise=r;this.resolve=c$jscomp$0(U,r,1);this.reject=c$jscomp$0(T,r,1)},exports.f=S=function(e){return e===_k||e===i$jscomp$0?new t$jscomp$1(e):r$jscomp$1(e)});module(module.G+module.W+module.F*!s$jscomp$0,{Promise:_k});require("./_set-to-string-tag")(_k,"Promise");require("./_set-species")("Promise");var i$jscomp$0=require("./_core").Promise;module(module.S+module.F*!s$jscomp$0,"Promise",{reject:function(e){var r=S(this);return(0,r.reject)(e),r.promise}});module(module.S+
module.F*(n$jscomp$0||!s$jscomp$0),"Promise",{resolve:function(e){return y(n$jscomp$0&&this===i$jscomp$0?_k:this,e)}});module(module.S+module.F*!(s$jscomp$0&&require("./_iter-detect")(function(e){_k.all(e)["catch"](F)})),"Promise",{all:function(e$jscomp$1){var r=this,t$jscomp$0=S(r),i=t$jscomp$0.resolve,n=t$jscomp$0.reject,o$jscomp$0=m(function(){var t=[],o=0,c=1;f(e$jscomp$1,!1,function(e$jscomp$0){var s=o++,u=!1;t.push(void 0);c++;r.resolve(e$jscomp$0).then(function(e){u||(u=!0,t[s]=e,--c||i(t))},
n)});--c||i(t)});return o$jscomp$0.e&&n(o$jscomp$0.v),t$jscomp$0.promise},race:function(e$jscomp$0){var r=this,t=S(r),i=t.reject,n=m(function(){f(e$jscomp$0,!1,function(e){r.resolve(e).then(t.resolve,i)})});return n.e&&i(n.v),t.promise}})},{"./_library":"H21C","./_global":"5qf4","./_ctx":"E3Kh","./_classof":"GM7B","./_export":"izCb","./_is-object":"M7z6","./_a-function":"6kYj","./_an-instance":"yJTF","./_for-of":"Abke","./_species-constructor":"Ex+G","./_task":"KY9y","./_microtask":"sFAp","./_new-promise-capability":"L7XN",
"./_perform":"tyG8","./_user-agent":"O5uh","./_promise-resolve":"cNG8","./_wks":"44AI","./_redefine-all":"J0Tl","./_set-to-string-tag":"rq3q","./_set-species":"5h4d","./_core":"ss9A","./_iter-detect":"md62"}],l1j0:[function(require,module,exports){module=require("./_export");var e$jscomp$0=require("./_core"),t=require("./_global"),n=require("./_species-constructor"),i=require("./_promise-resolve");module(module.P+module.R,"Promise",{"finally":function(r){var o=n(this,e$jscomp$0.Promise||t.Promise),
u="function"==typeof r;return this.then(u?function(e){return i(o,r()).then(function(){return e})}:r,u?function(e){return i(o,r()).then(function(){throw e;})}:r)}})},{"./_export":"izCb","./_core":"ss9A","./_global":"5qf4","./_species-constructor":"Ex+G","./_promise-resolve":"cNG8"}],F0Xu:[function(require,module,exports){module=require("./_export");var r=require("./_a-function"),n=require("./_an-object"),i=(require("./_global").Reflect||{}).apply,u=Function.apply;module(module.S+module.F*!require("./_fails")(function(){i(function(){})}),
"Reflect",{apply:function(e,a,l){e=r(e);l=n(l);return i?i(e,a,l):u.call(e,a,l)}})},{"./_export":"izCb","./_a-function":"6kYj","./_an-object":"eT53","./_global":"5qf4","./_fails":"5BXi"}],h83E:[function(require,module,exports){var n$jscomp$0=require("./_a-function"),t$jscomp$0=require("./_is-object"),r=require("./_invoke"),e$jscomp$0=[].slice,i$jscomp$0={};module.exports=Function.bind||function(i){var u=n$jscomp$0(this),c=e$jscomp$0.call(arguments,1),a$jscomp$0=function a(){var n=c.concat(e$jscomp$0.call(arguments));
if(this instanceof a){var t=n.length;if(!(t in i$jscomp$0)){for(var e=[],o=0;o<t;o++)e[o]="a["+o+"]";i$jscomp$0[t]=Function("F,a","return new F("+e.join(",")+")")}n=i$jscomp$0[t](u,n)}else n=r(u,n,i);return n};return t$jscomp$0(u.prototype)&&(a$jscomp$0.prototype=u.prototype),a$jscomp$0}},{"./_a-function":"6kYj","./_is-object":"M7z6","./_invoke":"xcbV"}],"4JlF":[function(require,module,exports){module=require("./_export");var r=require("./_object-create"),n=require("./_a-function"),t=require("./_an-object"),
u=require("./_is-object");exports=require("./_fails");var i=require("./_bind"),o=(require("./_global").Reflect||{}).construct,a=exports(function(){function e(){}return!(o(function(){},[],e)instanceof e)}),l=!exports(function(){o(function(){})});module(module.S+module.F*(a||l),"Reflect",{construct:function(e,c){n(e);t(c);var f=3>arguments.length?e:n(arguments[2]);if(l&&!a)return o(e,c,f);if(e==f){switch(c.length){case 0:return new e;case 1:return new e(c[0]);case 2:return new e(c[0],c[1]);case 3:return new e(c[0],
c[1],c[2]);case 4:return new e(c[0],c[1],c[2],c[3])}f=[null];return f.push.apply(f,c),new (i.apply(e,f))}f=f.prototype;f=r(u(f)?f:Object.prototype);var _=Function.apply.call(e,f,c);return u(_)?_:f}})},{"./_export":"izCb","./_object-create":"sYaK","./_a-function":"6kYj","./_an-object":"eT53","./_is-object":"M7z6","./_fails":"5BXi","./_bind":"h83E","./_global":"5qf4"}],S841:[function(require,module,exports){var e=require("./_object-dp");module=require("./_export");var t=require("./_an-object"),i=require("./_to-primitive");
module(module.S+module.F*require("./_fails")(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(r,u,f){t(r);u=i(u,!0);t(f);try{return e.f(r,u,f),!0}catch(n){return!1}}})},{"./_object-dp":"nw8e","./_export":"izCb","./_an-object":"eT53","./_to-primitive":"9y37","./_fails":"5BXi"}],JRlJ:[function(require,module,exports){module=require("./_export");var r=require("./_object-gopd").f,t=require("./_an-object");module(module.S,"Reflect",{deleteProperty:function(e,
o){var u=r(t(e),o);return!(u&&!u.configurable)&&delete e[o]}})},{"./_export":"izCb","./_object-gopd":"uIjZ","./_an-object":"eT53"}],kv8Z:[function(require,module,exports){function a(i,c){var v,g,l=3>arguments.length?i:arguments[2];return u(i)===l?i[c]:(v=e.f(i,c))?t(v,"value")?v.value:void 0!==v.get?v.get.call(l):void 0:o(g=r(i))?a(g,c,l):void 0}var e=require("./_object-gopd"),r=require("./_object-gpo"),t=require("./_has");module=require("./_export");var o=require("./_is-object"),u=require("./_an-object");
module(module.S,"Reflect",{get:a})},{"./_object-gopd":"uIjZ","./_object-gpo":"8q6y","./_has":"2uHg","./_export":"izCb","./_is-object":"M7z6","./_an-object":"eT53"}],zj1X:[function(require,module,exports){var e=require("./_object-gopd");module=require("./_export");var t=require("./_an-object");module(module.S,"Reflect",{getOwnPropertyDescriptor:function(r,o){return e.f(t(r),o)}})},{"./_object-gopd":"uIjZ","./_export":"izCb","./_an-object":"eT53"}],d0aC:[function(require,module,exports){module=require("./_export");
var r=require("./_object-gpo"),t=require("./_an-object");module(module.S,"Reflect",{getPrototypeOf:function(e){return r(t(e))}})},{"./_export":"izCb","./_object-gpo":"8q6y","./_an-object":"eT53"}],OWTq:[function(require,module,exports){require=require("./_export");require(require.S,"Reflect",{has:function(e,r){return r in e}})},{"./_export":"izCb"}],deHu:[function(require,module,exports){module=require("./_export");var r=require("./_an-object"),t=Object.isExtensible;module(module.S,"Reflect",{isExtensible:function(e){return r(e),
!t||t(e)}})},{"./_export":"izCb","./_an-object":"eT53"}],e6SV:[function(require,module,exports){module=require("./_export");module(module.S,"Reflect",{ownKeys:require("./_own-keys")})},{"./_export":"izCb","./_own-keys":"kABk"}],BmyK:[function(require,module,exports){module=require("./_export");var r=require("./_an-object"),t=Object.preventExtensions;module(module.S,"Reflect",{preventExtensions:function(e){r(e);try{return t&&t(e),!0}catch(n){return!1}}})},{"./_export":"izCb","./_an-object":"eT53"}],
K46i:[function(require,module,exports){function c(u,l,n){var _=4>arguments.length?u:arguments[3];var q=r.f(o(u),l);if(!q){if(a(q=t(u)))return c(q,l,n,_);q=f(0)}if(i(q,"value")){if(!1===q.writable||!a(_))return!1;if(q=r.f(_,l)){if(q.get||q.set||!1===q.writable)return!1;q.value=n;e.f(_,l,q)}else e.f(_,l,f(0,n));return!0}return void 0!==q.set&&(q.set.call(_,n),!0)}var e=require("./_object-dp"),r=require("./_object-gopd"),t=require("./_object-gpo"),i=require("./_has");module=require("./_export");var f=
require("./_property-desc"),o=require("./_an-object"),a=require("./_is-object");module(module.S,"Reflect",{set:c})},{"./_object-dp":"nw8e","./_object-gopd":"uIjZ","./_object-gpo":"8q6y","./_has":"2uHg","./_export":"izCb","./_property-desc":"uJ6d","./_an-object":"eT53","./_is-object":"M7z6"}],L5z5:[function(require,module,exports){module=require("./_export");var r=require("./_set-proto");r&&module(module.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(c){return!1}}})},
{"./_export":"izCb","./_set-proto":"vn3S"}],"6WEV":[function(require,module,exports){var e=require("./_is-object"),r=require("./_cof"),i=require("./_wks")("match");module.exports=function(o){var u;return e(o)&&(void 0!==(u=o[i])?!!u:"RegExp"==r(o))}},{"./_is-object":"M7z6","./_cof":"Z5df","./_wks":"44AI"}],hgks:[function(require,module,exports){var e=require("./_an-object");module.exports=function(){var i=e(this),r="";return i.global&&(r+="g"),i.ignoreCase&&(r+="i"),i.multiline&&(r+="m"),i.unicode&&
(r+="u"),i.sticky&&(r+="y"),r}},{"./_an-object":"eT53"}],"+05B":[function(require,module,exports){module=require("./_global");var r$jscomp$0=require("./_inherit-if-required"),i$jscomp$0=require("./_object-dp").f,t$jscomp$0=require("./_object-gopn").f,n=require("./_is-regexp"),o=require("./_flags"),_u2=module.RegExp,c=_u2,s=_u2.prototype,f$jscomp$0=/a/g,a$jscomp$0=/a/g,g=new _u2(f$jscomp$0)!==f$jscomp$0;if(require("./_descriptors")&&(!g||require("./_fails")(function(){return a$jscomp$0[require("./_wks")("match")]=
!1,_u2(f$jscomp$0)!=f$jscomp$0||_u2(a$jscomp$0)==a$jscomp$0||"/a/i"!=_u2(f$jscomp$0,"i")}))){_u2=function(e,i){var t=this instanceof _u2,f=n(e),a=void 0===i;return!t&&f&&e.constructor===_u2&&a?e:r$jscomp$0(g?new c(f&&!a?e.source:e,i):c((f=e instanceof _u2)?e.source:e,f&&a?o.call(e):i),t?this:s,_u2)};exports=function(e){e in _u2||i$jscomp$0(_u2,e,{configurable:!0,get:function(){return c[e]},set:function(r){c[e]=r}})};t$jscomp$0=t$jscomp$0(c);for(var _=0;t$jscomp$0.length>_;)exports(t$jscomp$0[_++]);
s.constructor=_u2;_u2.prototype=s;require("./_redefine")(module,"RegExp",_u2)}require("./_set-species")("RegExp")},{"./_global":"5qf4","./_inherit-if-required":"ogxf","./_object-dp":"nw8e","./_object-gopn":"Vzm0","./_is-regexp":"6WEV","./_flags":"hgks","./_descriptors":"P9Ib","./_fails":"5BXi","./_wks":"44AI","./_redefine":"PHot","./_set-species":"5h4d"}],pDhD:[function(require,module,exports){require("./_descriptors")&&"g"!=/./g.flags&&require("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,
get:require("./_flags")})},{"./_descriptors":"P9Ib","./_object-dp":"nw8e","./_flags":"hgks"}],x5yM:[function(require,module,exports){var e=require("./_to-integer"),r=require("./_defined");module.exports=function(t){return function(n,i){var o,u;n=String(r(n));i=e(i);var a=n.length;return 0>i||i>=a?t?"":void 0:55296>(o=n.charCodeAt(i))||56319<o||i+1===a||56320>(u=n.charCodeAt(i+1))||57343<u?t?n.charAt(i):o:t?n.slice(i,i+2):u-56320+(o-55296<<10)+65536}}},{"./_to-integer":"yjVO","./_defined":"+Bjj"}],
"/t3a":[function(require,module,exports){var r=require("./_string-at")(!0);module.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},{"./_string-at":"x5yM"}],sNFG:[function(require,module,exports){var e=require("./_classof"),r=RegExp.prototype.exec;module.exports=function(t,o){var c=t.exec;if("function"==typeof c){t=c.call(t,o);if("object"!=_typeof(t))throw new TypeError("RegExp exec method returned something other than an Object or null");return t}if("RegExp"!==e(t))throw new TypeError("RegExp#exec called on incompatible receiver");
return r.call(t,o)}},{"./_classof":"GM7B"}],ZcPD:[function(require,module,exports){var e$jscomp$0=require("./_flags"),l=RegExp.prototype.exec,t$jscomp$0=String.prototype.replace;require=l;var n=function(){var e=/a/,t=/b*/g;return l.call(e,"a"),l.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),o=void 0!==/()??/.exec("")[1];(n||o)&&(require=function(_r2){var c,i,g,u;return o&&(i=new RegExp("^"+this.source+"$(?!\\s)",e$jscomp$0.call(this))),n&&(c=this.lastIndex),g=l.call(this,_r2),n&&g&&(this.lastIndex=
this.global?g.index+g[0].length:c),o&&g&&1<g.length&&t$jscomp$0.call(g[0],i,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(g[u]=void 0)}),g});module.exports=require},{"./_flags":"hgks"}],S07n:[function(require,module,exports){module=require("./_regexp-exec");require("./_export")({target:"RegExp",proto:!0,forced:module!==/./.exec},{exec:module})},{"./_regexp-exec":"ZcPD","./_export":"izCb"}],LmBS:[function(require,module,exports){require("./es6.regexp.exec");var e$jscomp$1=require("./_redefine"),
r$jscomp$0=require("./_hide"),n$jscomp$0=require("./_fails"),t$jscomp$0=require("./_defined"),u$jscomp$0=require("./_wks"),i=require("./_regexp-exec"),c=u$jscomp$0("species"),o=!n$jscomp$0(function(){var e$jscomp$0=/./;return e$jscomp$0.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e$jscomp$0,"$<a>")}),a=function(){var e=/(?:)/,r=e.exec;e.exec=function(){return r.apply(this,arguments)};e="ab".split(e);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();module.exports=function(l,
f,p){var s=u$jscomp$0(l),v=!n$jscomp$0(function(){var e={};return e[s]=function(){return 7},7!=""[l](e)}),x=v?!n$jscomp$0(function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===l&&(r.constructor={},r.constructor[c]=function(){return r}),r[s](""),!e}):void 0;if(!v||!x||"replace"===l&&!o||"split"===l&&!a){var d=/./[s];p=p(t$jscomp$0,s,""[l],function(e,r,n,t,u){return r.exec===i?v&&!u?{done:!0,value:d.call(r,n,t)}:{done:!0,value:e.call(n,r,t)}:{done:!1}});var _=p[1];e$jscomp$1(String.prototype,
l,p[0]);r$jscomp$0(RegExp.prototype,s,2==f?function(e,r){return _.call(e,this,r)}:function(e){return _.call(e,this)})}}},{"./es6.regexp.exec":"S07n","./_redefine":"PHot","./_hide":"0NXb","./_fails":"5BXi","./_defined":"+Bjj","./_wks":"44AI","./_regexp-exec":"ZcPD"}],RTfC:[function(require,module,exports){var r$jscomp$0=require("./_an-object"),e$jscomp$0=require("./_to-length"),n$jscomp$0=require("./_advance-string-index"),t=require("./_regexp-exec-abstract");require("./_fix-re-wks")("match",1,function(i$jscomp$0,
a$jscomp$0,u,l){return[function(r){var e=i$jscomp$0(this),n=null==r?void 0:r[a$jscomp$0];return void 0!==n?n.call(r,e):(new RegExp(r))[a$jscomp$0](String(e))},function(i){var a=l(u,i,this);if(a.done)return a.value;i=r$jscomp$0(i);a=String(this);if(!i.global)return t(i,a);var s=i.unicode;i.lastIndex=0;for(var v,d=[],g=0;null!==(v=t(i,a));)v=String(v[0]),d[g]=v,""===v&&(i.lastIndex=n$jscomp$0(a,e$jscomp$0(i.lastIndex),s)),g++;return 0===g?null:d}]})},{"./_an-object":"eT53","./_to-length":"dJBs","./_advance-string-index":"/t3a",
"./_regexp-exec-abstract":"sNFG","./_fix-re-wks":"LmBS"}],KGao:[function(require,module,exports,JSCompiler_OptimizeArgumentsArray_p0){var e$jscomp$0=require("./_an-object"),t$jscomp$0=require("./_to-object"),n$jscomp$0=require("./_to-length"),i$jscomp$0=require("./_to-integer"),a$jscomp$0=require("./_advance-string-index"),u$jscomp$1=require("./_regexp-exec-abstract"),c$jscomp$0=Math.max,l$jscomp$0=Math.min,o$jscomp$0=Math.floor,v$jscomp$0=/\$([$&`']|\d\d?|<[^>]*>)/g,s$jscomp$0=/\$([$&`']|\d\d?)/g;
require("./_fix-re-wks")("replace",2,function(r$jscomp$1,d,f,h){function p(r,e,n,i,a,u$jscomp$0){var c=n+r.length,l=i.length,g=s$jscomp$0;return void 0!==a&&(a=t$jscomp$0(a),g=v$jscomp$0),f.call(u$jscomp$0,g,function(t,u){switch(u.charAt(0)){case "$":return"$";case "&":return r;case "`":return e.slice(0,n);case "'":return e.slice(c);case "<":t=a[u.slice(1,-1)];break;default:var s=+u;if(0===s)return t;if(s>l)return s=o$jscomp$0(s/10),0===s?t:s<=l?void 0===i[s-1]?u.charAt(1):i[s-1]+u.charAt(1):t;t=
i[s-1]}return void 0===t?"":t})}return[function(e,t){var n=r$jscomp$1(this),i=null==e?void 0:e[d];return void 0!==i?i.call(e,n,t):f.call(String(n),e,t)},function(r$jscomp$0,t){var o=h(f,r$jscomp$0,this,t);if(o.done)return o.value;var v=e$jscomp$0(r$jscomp$0);r$jscomp$0=String(this);(o="function"==typeof t)||(t=String(t));var x=v.global;if(x){var b=v.unicode;v.lastIndex=0}for(var q=[];;){var S=u$jscomp$1(v,r$jscomp$0);if(null===S)break;if(q.push(S),!x)break;""===String(S[0])&&(v.lastIndex=a$jscomp$0(r$jscomp$0,
n$jscomp$0(v.lastIndex),b))}b="";for(x=v=0;x<q.length;x++){S=q[x];for(var m=String(S[0]),A=c$jscomp$0(l$jscomp$0(i$jscomp$0(S.index),r$jscomp$0.length),0),I=[],M=1;M<S.length;M++){var JSCompiler_temp_const=I,r=S[M];JSCompiler_temp_const.push.call(JSCompiler_temp_const,void 0===r?r:String(r))}S=S.groups;o?(I=[m].concat(I,A,r$jscomp$0),void 0!==S&&I.push(S),S=String(t.apply(void 0,I))):S=p(m,r$jscomp$0,A,I,S,t);A>=v&&(b+=r$jscomp$0.slice(v,A)+S,v=A+m.length)}return b+r$jscomp$0.slice(v)}]})},{"./_an-object":"eT53",
"./_to-object":"rfVX","./_to-length":"dJBs","./_to-integer":"yjVO","./_advance-string-index":"/t3a","./_regexp-exec-abstract":"sNFG","./_fix-re-wks":"LmBS"}],"a/o/":[function(require,module,exports){var e$jscomp$0=require("./_is-regexp"),r$jscomp$0=require("./_an-object"),i$jscomp$0=require("./_species-constructor"),n$jscomp$0=require("./_advance-string-index"),t$jscomp$0=require("./_to-length"),u$jscomp$0=require("./_regexp-exec-abstract"),l$jscomp$0=require("./_regexp-exec");module=require("./_fails");
var c$jscomp$0=Math.min,a$jscomp$0=[].push,f$jscomp$0=!module(function(){RegExp(4294967295,"y")});require("./_fix-re-wks")("split",2,function(s$jscomp$0,v,p,x){var q;return q="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(r,i){var n=String(this);if(void 0===r&&0===i)return[];if(!e$jscomp$0(r))return p.call(n,r,i);var t,u,s,c=[],f=0;i=void 0===i?4294967295:
i>>>0;for(r=new RegExp(r.source,(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(r.sticky?"y":"")+"g");(t=l$jscomp$0.call(r,n))&&!((u=r.lastIndex)>f&&(c.push(n.slice(f,t.index)),1<t.length&&t.index<n.length&&a$jscomp$0.apply(c,t.slice(1)),s=t[0].length,f=u,c.length>=i));)r.lastIndex===t.index&&r.lastIndex++;return f===n.length?!s&&r.test("")||c.push(""):c.push(n.slice(f)),c.length>i?c.slice(0,i):c}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:p.call(this,e,r)}:
p,[function(e,r){var i=s$jscomp$0(this),n=null==e?void 0:e[v];return void 0!==n?n.call(e,i,r):q.call(String(i),e,r)},function(e,l){var s=x(q,e,this,l,q!==p);if(s.done)return s.value;var a=r$jscomp$0(e);e=String(this);var g=i$jscomp$0(a,RegExp);s=a.unicode;a=new g(f$jscomp$0?a:"^(?:"+a.source+")",(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(f$jscomp$0?"y":"g"));l=void 0===l?4294967295:l>>>0;if(0===l)return[];if(0===e.length)return null===u$jscomp$0(a,e)?[e]:[];var m=0,y=0;for(g=[];y<
e.length;){a.lastIndex=f$jscomp$0?y:0;var E,I=u$jscomp$0(a,f$jscomp$0?e:e.slice(y));if(null===I||(E=c$jscomp$0(t$jscomp$0(a.lastIndex+(f$jscomp$0?0:y)),e.length))===m)y=n$jscomp$0(e,y,s);else{if(g.push(e.slice(m,y)),g.length===l)return g;for(m=1;m<=I.length-1;m++)if(g.push(I[m]),g.length===l)return g;y=m=E}}return g.push(e.slice(m)),g}]})},{"./_is-regexp":"6WEV","./_an-object":"eT53","./_species-constructor":"Ex+G","./_advance-string-index":"/t3a","./_to-length":"dJBs","./_regexp-exec-abstract":"sNFG",
"./_regexp-exec":"ZcPD","./_fails":"5BXi","./_fix-re-wks":"LmBS"}],zOab:[function(require,module,exports){var e$jscomp$0=require("./_an-object"),r$jscomp$0=require("./_same-value"),n$jscomp$0=require("./_regexp-exec-abstract");require("./_fix-re-wks")("search",1,function(t$jscomp$0,i$jscomp$0,a,u){return[function(e){var r=t$jscomp$0(this),n=null==e?void 0:e[i$jscomp$0];return void 0!==n?n.call(e,r):(new RegExp(e))[i$jscomp$0](String(r))},function(t){var i=u(a,t,this);if(i.done)return i.value;t=e$jscomp$0(t);
var l=String(this);i=t.lastIndex;r$jscomp$0(i,0)||(t.lastIndex=0);l=n$jscomp$0(t,l);return r$jscomp$0(t.lastIndex,i)||(t.lastIndex=i),null===l?-1:l.index}]})},{"./_an-object":"eT53","./_same-value":"zutv","./_regexp-exec-abstract":"sNFG","./_fix-re-wks":"LmBS"}],iflU:[function(require,module,exports){require("./es6.regexp.flags");var e$jscomp$0=require("./_an-object"),r=require("./_flags"),i=require("./_descriptors"),t=/./.toString;module=function(e){require("./_redefine")(RegExp.prototype,"toString",
e,!0)};require("./_fails")(function(){return"/a/b"!=t.call({source:"a",flags:"b"})})?module(function(){var n=e$jscomp$0(this);return"/".concat(n.source,"/","flags"in n?n.flags:!i&&n instanceof RegExp?r.call(n):void 0)}):"toString"!=t.name&&module(function(){return t.call(this)})},{"./es6.regexp.flags":"pDhD","./_an-object":"eT53","./_flags":"hgks","./_descriptors":"P9Ib","./_redefine":"PHot","./_fails":"5BXi"}],coyu:[function(require,module,exports){var e$jscomp$0=require("./_collection-strong"),
t=require("./_validate-collection");module.exports=require("./_collection")("Set",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(i){return e$jscomp$0.def(t(this,"Set"),i=0===i?0:i,i)}},e$jscomp$0)},{"./_collection-strong":"8aIi","./_validate-collection":"1FW4","./_collection":"hWYB"}],AuE7:[function(require,module,exports){exports.f=require("./_wks")},{"./_wks":"44AI"}],r4vV:[function(require,module,exports){var r=require("./_global"),e=require("./_core"),
o=require("./_library"),i=require("./_wks-ext"),l=require("./_object-dp").f;module.exports=function(u){var a=e.Symbol||(e.Symbol=o?{}:r.Symbol||{});"_"==u.charAt(0)||u in a||l(a,u,{value:i.f(u)})}},{"./_global":"5qf4","./_core":"ss9A","./_library":"H21C","./_wks-ext":"AuE7","./_object-dp":"nw8e"}],"0jjw":[function(require,module,exports){var e=require("./_object-keys"),r=require("./_object-gops"),o=require("./_object-pie");module.exports=function(t){var u=e(t),i=r.f;if(i){var c;i=i(t);for(var a=o.f,
l=0;i.length>l;)a.call(t,c=i[l++])&&u.push(c)}return u}},{"./_object-keys":"U9a7","./_object-gops":"EWMd","./_object-pie":"vjRp"}],uVn9:[function(require,module,exports){module=require("./_global");var r$jscomp$0=require("./_has"),t$jscomp$0=require("./_descriptors");exports=require("./_export");var n$jscomp$0=require("./_redefine"),o$jscomp$0=require("./_meta").KEY,u$jscomp$0=require("./_fails"),s=require("./_shared"),f=require("./_set-to-string-tag"),c=require("./_uid"),a=require("./_wks"),l=require("./_wks-ext"),
p=require("./_wks-define"),b=require("./_enum-keys"),y=require("./_is-array"),h=require("./_an-object"),_=require("./_is-object"),q=require("./_to-object"),g=require("./_to-iobject"),m=require("./_to-primitive"),v=require("./_property-desc"),d=require("./_object-create"),S=require("./_object-gopn-ext"),j=require("./_object-gopd"),O=require("./_object-gops"),w=require("./_object-dp"),k=require("./_object-keys"),P=j.f,F=w.f,E=S.f,_N=module.Symbol,J=module.JSON,x=J&&J.stringify,T=a("_hidden"),C=a("toPrimitive"),
M={}.propertyIsEnumerable,D=s("symbol-registry"),G=s("symbols"),K=s("op-symbols"),Q=Object.prototype;s="function"==typeof _N&&!!O.f;var Y=module.QObject,z=!Y||!Y.prototype||!Y.prototype.findChild,A=t$jscomp$0&&u$jscomp$0(function(){return 7!=d(F({},"a",{get:function(){return F(this,"a",{value:7}).a}})).a})?function(e,r,t){var i=P(Q,r);i&&delete Q[r];F(e,r,t);i&&e!==Q&&F(Q,r,i)}:F,B=function(e){var r=G[e]=d(_N.prototype);return r._k=e,r},H=s&&"symbol"==_typeof(_N.iterator)?function(e){return"symbol"==
_typeof(e)}:function(e){return e instanceof _N},L=function L(e,t,i){return e===Q&&L(K,t,i),h(e),t=m(t,!0),h(i),r$jscomp$0(G,t)?(i.enumerable?(r$jscomp$0(e,T)&&e[T][t]&&(e[T][t]=!1),i=d(i,{enumerable:v(0,!1)})):(r$jscomp$0(e,T)||F(e,T,v(1,{})),e[T][t]=!0),A(e,t,i)):F(e,t,i)},R=function(e,r){h(e);for(var t,i=b(r=g(r)),n=0,o=i.length;o>n;)L(e,t=i[n++],r[t]);return e},V=function(e){var t=M.call(this,e=m(e,!0));return!(this===Q&&r$jscomp$0(G,e)&&!r$jscomp$0(K,e))&&(!(t||!r$jscomp$0(this,e)||!r$jscomp$0(G,
e)||r$jscomp$0(this,T)&&this[T][e])||t)};Y=function(e,t){if(e=g(e),t=m(t,!0),e!==Q||!r$jscomp$0(G,t)||r$jscomp$0(K,t)){var i=P(e,t);return!i||!r$jscomp$0(G,t)||r$jscomp$0(e,T)&&e[T][t]||(i.enumerable=!0),i}};var Z=function(e){var t;e=E(g(e));for(var n=[],u=0;e.length>u;)r$jscomp$0(G,t=e[u++])||t==T||t==o$jscomp$0||n.push(t);return n},$=function(e){var t,i=e===Q;e=E(i?K:g(e));for(var o=[],u=0;e.length>u;)!r$jscomp$0(G,t=e[u++])||i&&!r$jscomp$0(Q,t)||o.push(G[t]);return o};s||(n$jscomp$0((_N=function(){if(this instanceof
_N)throw TypeError("Symbol is not a constructor!");var e=c(0<arguments.length?arguments[0]:void 0),i$jscomp$0=function i(t){this===Q&&i.call(K,t);r$jscomp$0(this,T)&&r$jscomp$0(this[T],e)&&(this[T][e]=!1);A(this,e,v(1,t))};return t$jscomp$0&&z&&A(Q,e,{configurable:!0,set:i$jscomp$0}),B(e)}).prototype,"toString",function(){return this._k}),j.f=Y,w.f=L,require("./_object-gopn").f=S.f=Z,require("./_object-pie").f=V,O.f=$,t$jscomp$0&&!require("./_library")&&n$jscomp$0(Q,"propertyIsEnumerable",V,!0),l.f=
function(e){return B(a(e))});exports(exports.G+exports.W+exports.F*!s,{Symbol:_N});n$jscomp$0="hasInstance isConcatSpreadable iterator match replace search species split toPrimitive toStringTag unscopables".split(" ");for(l=0;n$jscomp$0.length>l;)a(n$jscomp$0[l++]);k=k(a.store);for(n$jscomp$0=0;k.length>n$jscomp$0;)p(k[n$jscomp$0++]);exports(exports.S+exports.F*!s,"Symbol",{"for":function(e){return r$jscomp$0(D,e+="")?D[e]:D[e]=_N(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");
for(var r in D)if(D[r]===e)return r},useSetter:function(){z=!0},useSimple:function(){z=!1}});exports(exports.S+exports.F*!s,"Object",{create:function(e,r){return void 0===r?d(e):R(d(e),r)},defineProperty:L,defineProperties:R,getOwnPropertyDescriptor:Y,getOwnPropertyNames:Z,getOwnPropertySymbols:$});p=u$jscomp$0(function(){O.f(1)});exports(exports.S+exports.F*p,"Object",{getOwnPropertySymbols:function(e){return O.f(q(e))}});J&&exports(exports.S+exports.F*(!s||u$jscomp$0(function(){var e=_N();return"[null]"!=
x([e])||"{}"!=x({a:e})||"{}"!=x(Object(e))})),"JSON",{stringify:function(e$jscomp$0){for(var r,t,i=[e$jscomp$0],n=1;arguments.length>n;)i.push(arguments[n++]);if(t=r=i[1],(_(r)||void 0!==e$jscomp$0)&&!H(e$jscomp$0))return y(r)||(r=function(e,_r3){if("function"==typeof t&&(_r3=t.call(this,e,_r3)),!H(_r3))return _r3}),i[1]=r,x.apply(J,i)}});_N.prototype[C]||require("./_hide")(_N.prototype,C,_N.prototype.valueOf);f(_N,"Symbol");f(Math,"Math",!0);f(module.JSON,"JSON",!0)},{"./_global":"5qf4","./_has":"2uHg",
"./_descriptors":"P9Ib","./_export":"izCb","./_redefine":"PHot","./_meta":"AoVy","./_fails":"5BXi","./_shared":"6zGc","./_set-to-string-tag":"rq3q","./_uid":"U49f","./_wks":"44AI","./_wks-ext":"AuE7","./_wks-define":"r4vV","./_enum-keys":"0jjw","./_is-array":"JTrm","./_an-object":"eT53","./_is-object":"M7z6","./_to-object":"rfVX","./_to-iobject":"g6sb","./_to-primitive":"9y37","./_property-desc":"uJ6d","./_object-create":"sYaK","./_object-gopn-ext":"dvol","./_object-gopd":"uIjZ","./_object-gops":"EWMd",
"./_object-dp":"nw8e","./_object-keys":"U9a7","./_object-gopn":"Vzm0","./_object-pie":"vjRp","./_library":"H21C","./_hide":"0NXb"}],DlMC:[function(require,module,exports){require("./_wks-define")("asyncIterator")},{"./_wks-define":"r4vV"}],NE20:[function(require,module,exports){var r$jscomp$0=require("./_export"),e$jscomp$0=require("./_fails"),t$jscomp$0=require("./_defined"),n$jscomp$0=/"/g,i=function(r,e,_i,u){r=String(t$jscomp$0(r));var a="<"+e;return""!==_i&&(a+=" "+_i+'="'+String(u).replace(n$jscomp$0,
"&quot;")+'"'),a+">"+r+"</"+e+">"};module.exports=function(t,n){var u={};u[t]=n(i);r$jscomp$0(r$jscomp$0.P+r$jscomp$0.F*e$jscomp$0(function(){var r=""[t]('"');return r!==r.toLowerCase()||3<r.split('"').length}),"String",u)}},{"./_export":"izCb","./_fails":"5BXi","./_defined":"+Bjj"}],"63US":[function(require,module,exports){require("./_string-html")("anchor",function(n){return function(r){return n(this,"a","name",r)}})},{"./_string-html":"NE20"}],c1D0:[function(require,module,exports){require("./_string-html")("big",
function(t){return function(){return t(this,"big","","")}})},{"./_string-html":"NE20"}],Ee86:[function(require,module,exports){require("./_string-html")("blink",function(n){return function(){return n(this,"blink","","")}})},{"./_string-html":"NE20"}],ry39:[function(require,module,exports){require("./_string-html")("bold",function(t){return function(){return t(this,"b","","")}})},{"./_string-html":"NE20"}],zR9y:[function(require,module,exports){module=require("./_export");var t=require("./_string-at")(!1);
module(module.P,"String",{codePointAt:function(r){return t(this,r)}})},{"./_export":"izCb","./_string-at":"x5yM"}],GbTB:[function(require,module,exports){var e=require("./_is-regexp"),r=require("./_defined");module.exports=function(i,t,n){if(e(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(i))}},{"./_is-regexp":"6WEV","./_defined":"+Bjj"}],"Ah+n":[function(require,module,exports){var r=require("./_wks")("match");module.exports=function(t){var c=/./;try{"/./"[t](c)}catch(e){try{return c[r]=
!1,!"/./"[t](c)}catch(a){}}return!0}},{"./_wks":"44AI"}],zRn7:[function(require,module,exports){module=require("./_export");var t=require("./_to-length"),i=require("./_string-context"),n="".endsWith;module(module.P+module.F*require("./_fails-is-regexp")("endsWith"),"String",{endsWith:function(e){var s=i(this,e,"endsWith"),g=1<arguments.length?arguments[1]:void 0,h=t(s.length);g=void 0===g?h:Math.min(t(g),h);h=String(e);return n?n.call(s,h,g):s.slice(g-h.length,g)===h}})},{"./_export":"izCb","./_to-length":"dJBs",
"./_string-context":"GbTB","./_fails-is-regexp":"Ah+n"}],AHLq:[function(require,module,exports){require("./_string-html")("fixed",function(t){return function(){return t(this,"tt","","")}})},{"./_string-html":"NE20"}],H7V0:[function(require,module,exports){require("./_string-html")("fontcolor",function(t){return function(r){return t(this,"font","color",r)}})},{"./_string-html":"NE20"}],Dx83:[function(require,module,exports){require("./_string-html")("fontsize",function(t){return function(n){return t(this,
"font","size",n)}})},{"./_string-html":"NE20"}],xSM3:[function(require,module,exports){module=require("./_export");var o=require("./_to-absolute-index"),e=String.fromCharCode;require=String.fromCodePoint;module(module.S+module.F*(!!require&&1!=require.length),"String",{fromCodePoint:function(r){for(var n,t=[],i=arguments.length,a=0;i>a;){if(n=+arguments[a++],o(n,1114111)!==n)throw RangeError(n+" is not a valid code point");t.push(65536>n?e(n):e(55296+((n-=65536)>>10),n%1024+56320))}return t.join("")}})},
{"./_export":"izCb","./_to-absolute-index":"vfEH"}],fH7p:[function(require,module,exports){module=require("./_export");var i=require("./_string-context");module(module.P+module.F*require("./_fails-is-regexp")("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,1<arguments.length?arguments[1]:void 0)}})},{"./_export":"izCb","./_string-context":"GbTB","./_fails-is-regexp":"Ah+n"}],fRhg:[function(require,module,exports){require("./_string-html")("italics",function(t){return function(){return t(this,
"i","","")}})},{"./_string-html":"NE20"}],tbKg:[function(require,module,exports){var i$jscomp$0=require("./_string-at")(!0);require("./_iter-define")(String,"String",function(i){this._t=String(i);this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i$jscomp$0(e,n),this._i+=t.length,{value:t,done:!1})})},{"./_string-at":"x5yM","./_iter-define":"mH0U"}],"1Aaz":[function(require,module,exports){require("./_string-html")("link",function(r){return function(t){return r(this,
"a","href",t)}})},{"./_string-html":"NE20"}],UH4U:[function(require,module,exports){var r=require("./_to-integer"),e=require("./_defined");module.exports=function(t){var i=String(e(this)),n="";t=r(t);if(0>t||t==1/0)throw RangeError("Count can't be negative");for(;0<t;(t>>>=1)&&(i+=i))1&t&&(n+=i);return n}},{"./_to-integer":"yjVO","./_defined":"+Bjj"}],"+lQn":[function(require,module,exports){var e=require("./_to-length"),r=require("./_string-repeat"),t=require("./_defined");module.exports=function(i,
n,l,g){i=String(t(i));var a=i.length;l=void 0===l?" ":String(l);n=e(n);if(n<=a||""==l)return i;n-=a;a=r.call(l,Math.ceil(n/l.length));return a.length>n&&(a=a.slice(0,n)),g?a+i:i+a}},{"./_to-length":"dJBs","./_string-repeat":"UH4U","./_defined":"+Bjj"}],"9SWN":[function(require,module,exports){module=require("./_export");var e=require("./_string-pad");require=require("./_user-agent");require=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(require);module(module.P+module.F*require,"String",
{padStart:function(r){return e(this,r,1<arguments.length?arguments[1]:void 0,!0)}})},{"./_export":"izCb","./_string-pad":"+lQn","./_user-agent":"O5uh"}],n20m:[function(require,module,exports){module=require("./_export");var e=require("./_string-pad");require=require("./_user-agent");require=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(require);module(module.P+module.F*require,"String",{padEnd:function(r){return e(this,r,1<arguments.length?arguments[1]:void 0,!1)}})},{"./_export":"izCb",
"./_string-pad":"+lQn","./_user-agent":"O5uh"}],"t2/9":[function(require,module,exports){module=require("./_export");var e=require("./_to-iobject"),t=require("./_to-length");module(module.S,"String",{raw:function(r){for(var n=e(r.raw),i=t(n.length),o=arguments.length,u=[],g=0;i>g;)u.push(String(n[g++])),g<o&&u.push(String(arguments[g]));return u.join("")}})},{"./_export":"izCb","./_to-iobject":"g6sb","./_to-length":"dJBs"}],C85R:[function(require,module,exports){module=require("./_export");module(module.P,
"String",{repeat:require("./_string-repeat")})},{"./_export":"izCb","./_string-repeat":"UH4U"}],qBr3:[function(require,module,exports){require("./_string-html")("small",function(t){return function(){return t(this,"small","","")}})},{"./_string-html":"NE20"}],w2SA:[function(require,module,exports){module=require("./_export");var r=require("./_to-length"),e=require("./_string-context"),n="".startsWith;module(module.P+module.F*require("./_fails-is-regexp")("startsWith"),"String",{startsWith:function(t){var s=
e(this,t,"startsWith"),g=r(Math.min(1<arguments.length?arguments[1]:void 0,s.length)),h=String(t);return n?n.call(s,h,g):s.slice(g,g+h.length)===h}})},{"./_export":"izCb","./_to-length":"dJBs","./_string-context":"GbTB","./_fails-is-regexp":"Ah+n"}],eNyu:[function(require,module,exports){require("./_string-html")("strike",function(t){return function(){return t(this,"strike","","")}})},{"./_string-html":"NE20"}],BVLK:[function(require,module,exports){require("./_string-html")("sub",function(t){return function(){return t(this,
"sub","","")}})},{"./_string-html":"NE20"}],kMsL:[function(require,module,exports){require("./_string-html")("sup",function(t){return function(){return t(this,"sup","","")}})},{"./_string-html":"NE20"}],fero:[function(require,module,exports){var r;exports=require("./_global");var t=require("./_hide"),e=require("./_uid");require=e("typed_array");e=e("view");for(var A=!(!exports.ArrayBuffer||!exports.DataView),o=A,p=0,n="Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" ");9>
p;)(r=exports[n[p++]])?(t(r.prototype,require,!0),t(r.prototype,e,!0)):o=!1;module.exports={ABV:A,CONSTR:o,TYPED:require,VIEW:e}},{"./_global":"5qf4","./_hide":"0NXb","./_uid":"U49f"}],"16zj":[function(require,module,exports){var r=require("./_to-integer"),e=require("./_to-length");module.exports=function(t){if(void 0===t)return 0;t=r(t);var o=e(t);if(t!==o)throw RangeError("Wrong length!");return o}},{"./_to-integer":"yjVO","./_to-length":"dJBs"}],Ujpk:[function(require,module,exports){function O(t,
n,r){var e,i,o,u=Array(r);r=8*r-n-1;var s=(1<<r)-1,c=s>>1,a=23===n?F(2,-24)-F(2,-77):0,h=0,l=0>t||0===t&&0>1/t?1:0;for((t=A(t))!=t||t===N?(i=t!=t?1:0,e=s):(e=W(V(t)/j),1>t*(o=F(2,-e))&&(e--,o*=2),2<=(t+=1<=e+c?a/o:a*F(2,1-c))*o&&(e++,o/=2),e+c>=s?(i=0,e=s):1<=e+c?(i=(t*o-1)*F(2,n),e+=c):(i=t*F(2,c-1)*F(2,n),e=0));8<=n;u[h++]=255&i,i/=256,n-=8);e=e<<n|i;for(r+=n;0<r;u[h++]=255&e,e/=256,r-=8);return u[--h]|=128*l,u}function R(t,n,r){var i=8*r-n-1,o=(1<<i)-1,u=o>>1;i-=7;var s=r-1,c=t[s--],a=127&c;for(c>>=
7;0<i;a=256*a+t[s],s--,i-=8);r=a&(1<<-i)-1;a>>=-i;for(i+=n;0<i;r=256*r+t[s],s--,i-=8);if(0===a)a=1-u;else{if(a===o)return r?NaN:c?-N:N;r+=F(2,n);a-=u}return(c?-1:1)*r*F(2,a-n)}function k(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function z(t){return[255&t]}function C(t){return[255&t,t>>8&255]}function G(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function H(t){return O(t,52,8)}function J(t){return O(t,23,4)}function K(t,n,r){l$jscomp$0(t.prototype,n,{get:function(){return this[r]}})}function P(t,
n,r,e){r=a$jscomp$0(+r);if(r+n>t[D])throw U("Wrong index!");r+=t[M];t=t[m]._b.slice(r,r+n);return e?t:t.reverse()}function Q(t,n,r,e,i,o){var u=a$jscomp$0(+r);if(u+n>t[D])throw U("Wrong index!");r=t[m]._b;t=u+t[M];e=e(+i);for(i=0;i<n;i++)r[t+i]=e[o?i:n-i-1]}var t$jscomp$0=require("./_global"),n$jscomp$0=require("./_descriptors"),r$jscomp$0=require("./_library");module=require("./_typed");var i$jscomp$0=require("./_hide"),o$jscomp$0=require("./_redefine-all"),u$jscomp$0=require("./_fails"),f=require("./_an-instance"),
s$jscomp$0=require("./_to-integer"),c$jscomp$0=require("./_to-length"),a$jscomp$0=require("./_to-index"),h$jscomp$0=require("./_object-gopn").f,l$jscomp$0=require("./_object-dp").f,g=require("./_array-fill");require=require("./_set-to-string-tag");var _y2=t$jscomp$0.ArrayBuffer,_p=t$jscomp$0.DataView,d=t$jscomp$0.Math,U=t$jscomp$0.RangeError,N=t$jscomp$0.Infinity,x=_y2,A=d.abs,F=d.pow,W=d.floor,V=d.log,j=d.LN2,m=n$jscomp$0?"_b":"buffer",D=n$jscomp$0?"_l":"byteLength",M=n$jscomp$0?"_o":"byteOffset";
if(module.ABV){if(!u$jscomp$0(function(){_y2(1)})||!u$jscomp$0(function(){new _y2(-1)})||u$jscomp$0(function(){return new _y2,new _y2(1.5),new _y2(NaN),"ArrayBuffer"!=_y2.name})){var S;t$jscomp$0=(_y2=function(t){return f(this,_y2),new x(a$jscomp$0(t))}).prototype=x.prototype;h$jscomp$0=h$jscomp$0(x);for(n$jscomp$0=0;h$jscomp$0.length>n$jscomp$0;)(S=h$jscomp$0[n$jscomp$0++])in _y2||i$jscomp$0(_y2,S,x[S]);r$jscomp$0||(t$jscomp$0.constructor=_y2)}S=new _p(new _y2(2));var $=_p.prototype.setInt8;S.setInt8(0,
2147483648);S.setInt8(1,2147483649);!S.getInt8(0)&&S.getInt8(1)||o$jscomp$0(_p.prototype,{setInt8:function(t,n){$.call(this,t,n<<24>>24)},setUint8:function(t,n){$.call(this,t,n<<24>>24)}},!0)}else _y2=function(t){f(this,_y2,"ArrayBuffer");t=a$jscomp$0(t);this._b=g.call(Array(t),0);this[D]=t},_p=function(t,n,r){f(this,_p,"DataView");f(t,_y2,"DataView");var e=t[D];n=s$jscomp$0(n);if(0>n||n>e)throw U("Wrong offset!");if(n+(r=void 0===r?e-n:c$jscomp$0(r))>e)throw U("Wrong length!");this[m]=t;this[M]=
n;this[D]=r},n$jscomp$0&&(K(_y2,"byteLength","_l"),K(_p,"buffer","_b"),K(_p,"byteLength","_l"),K(_p,"byteOffset","_o")),o$jscomp$0(_p.prototype,{getInt8:function(t){return P(this,1,t)[0]<<24>>24},getUint8:function(t){return P(this,1,t)[0]},getInt16:function(t,JSCompiler_OptimizeArgumentsArray_p1){t=P(this,2,t,JSCompiler_OptimizeArgumentsArray_p1);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t,JSCompiler_OptimizeArgumentsArray_p2){t=P(this,2,t,JSCompiler_OptimizeArgumentsArray_p2);return t[1]<<
8|t[0]},getInt32:function(t,JSCompiler_OptimizeArgumentsArray_p3){return k(P(this,4,t,JSCompiler_OptimizeArgumentsArray_p3))},getUint32:function(t,JSCompiler_OptimizeArgumentsArray_p4){return k(P(this,4,t,JSCompiler_OptimizeArgumentsArray_p4))>>>0},getFloat32:function(t,JSCompiler_OptimizeArgumentsArray_p5){return R(P(this,4,t,JSCompiler_OptimizeArgumentsArray_p5),23,4)},getFloat64:function(t,JSCompiler_OptimizeArgumentsArray_p6){return R(P(this,8,t,JSCompiler_OptimizeArgumentsArray_p6),52,8)},setInt8:function(t,
n){Q(this,1,t,z,n)},setUint8:function(t,n){Q(this,1,t,z,n)},setInt16:function(t,n,JSCompiler_OptimizeArgumentsArray_p7){Q(this,2,t,C,n,JSCompiler_OptimizeArgumentsArray_p7)},setUint16:function(t,n,JSCompiler_OptimizeArgumentsArray_p8){Q(this,2,t,C,n,JSCompiler_OptimizeArgumentsArray_p8)},setInt32:function(t,n,JSCompiler_OptimizeArgumentsArray_p9){Q(this,4,t,G,n,JSCompiler_OptimizeArgumentsArray_p9)},setUint32:function(t,n,JSCompiler_OptimizeArgumentsArray_p10){Q(this,4,t,G,n,JSCompiler_OptimizeArgumentsArray_p10)},
setFloat32:function(t,n,JSCompiler_OptimizeArgumentsArray_p11){Q(this,4,t,J,n,JSCompiler_OptimizeArgumentsArray_p11)},setFloat64:function(t,n,JSCompiler_OptimizeArgumentsArray_p12){Q(this,8,t,H,n,JSCompiler_OptimizeArgumentsArray_p12)}});require(_y2,"ArrayBuffer");require(_p,"DataView");i$jscomp$0(_p.prototype,module.VIEW,!0);exports.ArrayBuffer=_y2;exports.DataView=_p},{"./_global":"5qf4","./_descriptors":"P9Ib","./_library":"H21C","./_typed":"fero","./_hide":"0NXb","./_redefine-all":"J0Tl","./_fails":"5BXi",
"./_an-instance":"yJTF","./_to-integer":"yjVO","./_to-length":"dJBs","./_to-index":"16zj","./_object-gopn":"Vzm0","./_object-dp":"nw8e","./_array-fill":"hphS","./_set-to-string-tag":"rq3q"}],"4NJ0":[function(require,module,exports){module=require("./_export");exports=require("./_typed");var i$jscomp$0=require("./_typed-buffer"),t=require("./_an-object"),u=require("./_to-absolute-index"),n=require("./_to-length"),s=require("./_is-object"),o=require("./_global").ArrayBuffer,f=require("./_species-constructor"),
c=i$jscomp$0.ArrayBuffer,a=i$jscomp$0.DataView,q=exports.ABV&&o.isView,_=c.prototype.slice,l$jscomp$0=exports.VIEW;module(module.G+module.W+module.F*(o!==c),{ArrayBuffer:c});module(module.S+module.F*!exports.CONSTR,"ArrayBuffer",{isView:function(e){return q&&q(e)||s(e)&&l$jscomp$0 in e}});module(module.P+module.U+module.F*require("./_fails")(function(){return!(new c(2)).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,r){if(void 0!==_&&void 0===r)return _.call(t(this),e);var i=t(this).byteLength;
e=u(e,i);r=u(void 0===r?i:r,i);i=new (f(this,c))(n(r-e));for(var l=new a(this),y=new a(i),b=0;e<r;)y.setUint8(b++,l.getUint8(e++));return i}});require("./_set-species")("ArrayBuffer")},{"./_export":"izCb","./_typed":"fero","./_typed-buffer":"Ujpk","./_an-object":"eT53","./_to-absolute-index":"vfEH","./_to-length":"dJBs","./_is-object":"M7z6","./_global":"5qf4","./_species-constructor":"Ex+G","./_fails":"5BXi","./_set-species":"5h4d"}],"4fd0":[function(require,module,exports,JSCompiler_OptimizeArgumentsArray_p14){var e$jscomp$1=
JSCompiler_OptimizeArgumentsArray_p14;if(require("./_descriptors")){var r$jscomp$0=require("./_library"),t$jscomp$0=(e$jscomp$1=require("./_global"),require("./_fails")),n$jscomp$0=require("./_export"),i$jscomp$0=require("./_typed"),o$jscomp$0=require("./_typed-buffer"),u$jscomp$0=require("./_ctx"),c$jscomp$0=require("./_an-instance"),f$jscomp$0=require("./_property-desc"),a=require("./_hide");exports=require("./_redefine-all");var s$jscomp$0=require("./_to-integer"),h=require("./_to-length"),d=require("./_to-index"),
g$jscomp$1=require("./_to-absolute-index"),_$jscomp$1=require("./_to-primitive"),v$jscomp$0=require("./_has"),p=require("./_classof"),y=require("./_is-object"),q$jscomp$0=require("./_to-object"),w$jscomp$0=require("./_is-array-iter"),b=require("./_object-create"),S=require("./_object-gpo"),E=require("./_object-gopn").f,m=require("./core.get-iterator-method"),x=require("./_uid"),L$jscomp$0=require("./_wks"),P$jscomp$0=require("./_array-methods"),j=require("./_array-includes"),T=require("./_species-constructor"),
F$jscomp$0=require("./es6.array.iterator"),O=require("./_iterators"),A=require("./_iter-detect"),R=require("./_set-species"),B=require("./_array-fill"),I=require("./_array-copy-within");JSCompiler_OptimizeArgumentsArray_p14=require("./_object-dp");require=require("./_object-gopd");var N=JSCompiler_OptimizeArgumentsArray_p14.f,Y=require.f,k=e$jscomp$1.RangeError,D=e$jscomp$1.TypeError,V=e$jscomp$1.Uint8Array,H=Array.prototype,J=o$jscomp$0.ArrayBuffer,K=o$jscomp$0.DataView,Q=P$jscomp$0(0),X=P$jscomp$0(2),
Z=P$jscomp$0(3),$=P$jscomp$0(4),ee=P$jscomp$0(5),re=P$jscomp$0(6),te=j(!0),ne=j(!1),ie=F$jscomp$0.values,oe=F$jscomp$0.keys,ue=F$jscomp$0.entries,ce=H.lastIndexOf,fe=H.reduce,ae=H.reduceRight,le=H.join,se=H.sort,he=H.slice,de=H.toString,ge=H.toLocaleString,_e=L$jscomp$0("iterator"),ve=L$jscomp$0("toStringTag"),pe=x("typed_constructor"),ye=x("def_constructor");o$jscomp$0=i$jscomp$0.CONSTR;var we=i$jscomp$0.TYPED,be=i$jscomp$0.VIEW,Ee=P$jscomp$0(1,function(e,r){return je(T(e,e[ye]),r)}),me=t$jscomp$0(function(){return 1===
(new V((new Uint16Array([1])).buffer))[0]}),xe=!!V&&!!V.prototype.set&&t$jscomp$0(function(){(new V(1)).set({})}),Le=function(e,r){e=s$jscomp$0(e);if(0>e||e%r)throw k("Wrong offset!");return e},Pe=function(e){if(y(e)&&we in e)return e;throw D(e+" is not a typed array!");},je=function(e,r){if(!(y(e)&&pe in e))throw D("It is not a typed array constructor!");return new e(r)},Te=function(e,r){return Fe(T(e,e[ye]),r)},Fe=function(e,r){var t=0,n=r.length;for(e=je(e,n);n>t;)e[t]=r[t++];return e};P$jscomp$0=
function(e,r,t){N(e,r,{get:function(){return this._d[t]}})};var Ae=function(e){var i;var n=q$jscomp$0(e);var t=arguments.length;var l=1<t?arguments[1]:void 0,s=void 0!==l;var r=m(n);if(null!=r&&!w$jscomp$0(r)){var c=r.call(n);n=[];for(r=0;!(i=c.next()).done;r++)n.push(i.value)}s&&2<t&&(l=u$jscomp$0(l,arguments[2],2));r=0;t=h(n.length);for(i=je(this,t);t>r;r++)i[r]=s?l(n[r],r):n[r];return i},Re=function(){for(var e=0,r=arguments.length,t=je(this,r);r>e;)t[e]=arguments[e++];return t},Be=!!V&&t$jscomp$0(function(){ge.call(new V(1))}),
Ie=function(){return ge.apply(Be?he.call(Pe(this)):Pe(this),arguments)},Me={copyWithin:function(e,r){return I.call(Pe(this),e,r,2<arguments.length?arguments[2]:void 0)},every:function(e){return $(Pe(this),e,1<arguments.length?arguments[1]:void 0)},fill:function(e){return B.apply(Pe(this),arguments)},filter:function(e){return Te(this,X(Pe(this),e,1<arguments.length?arguments[1]:void 0))},find:function(e){return ee(Pe(this),e,1<arguments.length?arguments[1]:void 0)},findIndex:function(e){return re(Pe(this),
e,1<arguments.length?arguments[1]:void 0)},forEach:function(e){Q(Pe(this),e,1<arguments.length?arguments[1]:void 0)},indexOf:function(e){return ne(Pe(this),e,1<arguments.length?arguments[1]:void 0)},includes:function(e){return te(Pe(this),e,1<arguments.length?arguments[1]:void 0)},join:function(e){return le.apply(Pe(this),arguments)},lastIndexOf:function(e){return ce.apply(Pe(this),arguments)},map:function(e){return Ee(Pe(this),e,1<arguments.length?arguments[1]:void 0)},reduce:function(e){return fe.apply(Pe(this),
arguments)},reduceRight:function(e){return ae.apply(Pe(this),arguments)},reverse:function(){for(var e,r=Pe(this).length,t=Math.floor(r/2),n=0;n<t;)e=this[n],this[n++]=this[--r],this[r]=e;return this},some:function(e){return Z(Pe(this),e,1<arguments.length?arguments[1]:void 0)},sort:function(e){return se.call(Pe(this),e)},subarray:function(e,r){var t=Pe(this),n=t.length;e=g$jscomp$1(e,n);return new (T(t,t[ye]))(t.buffer,t.byteOffset+e*t.BYTES_PER_ELEMENT,h((void 0===r?n:g$jscomp$1(r,n))-e))}},We=function(e,
r){return Te(this,he.call(Pe(this),e,r))},Ne=function(e,JSCompiler_OptimizeArgumentsArray_p13){Pe(this);JSCompiler_OptimizeArgumentsArray_p13=Le(JSCompiler_OptimizeArgumentsArray_p13,1);var t=this.length;e=q$jscomp$0(e);var i=h(e.length),o=0;if(i+JSCompiler_OptimizeArgumentsArray_p13>t)throw k("Wrong length!");for(;o<i;)this[JSCompiler_OptimizeArgumentsArray_p13+o]=e[o++]},Ye={entries:function(){return ue.call(Pe(this))},keys:function(){return oe.call(Pe(this))},values:function(){return ie.call(Pe(this))}},
ke=function(e,r){return y(e)&&e[we]&&"symbol"!=_typeof(r)&&r in e&&String(+r)==String(r)};x=function(e,r){return ke(e,r=_$jscomp$1(r,!0))?f$jscomp$0(2,e[r]):Y(e,r)};L$jscomp$0=function(e,r,t){return!(ke(e,r=_$jscomp$1(r,!0))&&y(t)&&v$jscomp$0(t,"value"))||v$jscomp$0(t,"get")||v$jscomp$0(t,"set")||t.configurable||v$jscomp$0(t,"writable")&&!t.writable||v$jscomp$0(t,"enumerable")&&!t.enumerable?N(e,r,t):(e[r]=t.value,e)};o$jscomp$0||(require.f=x,JSCompiler_OptimizeArgumentsArray_p14.f=L$jscomp$0);n$jscomp$0(n$jscomp$0.S+
n$jscomp$0.F*!o$jscomp$0,"Object",{getOwnPropertyDescriptor:x,defineProperty:L$jscomp$0});t$jscomp$0(function(){de.call({})})&&(de=ge=function(){return le.call(this)});var Ce=exports({},Me);exports(Ce,Ye);a(Ce,_e,Ye.values);exports(Ce,{slice:We,set:Ne,constructor:function(){},toString:de,toLocaleString:Ie});P$jscomp$0(Ce,"buffer","b");P$jscomp$0(Ce,"byteOffset","o");P$jscomp$0(Ce,"byteLength","l");P$jscomp$0(Ce,"length","e");N(Ce,ve,{get:function(){return this[we]}});module.exports=function(o,u,f,
l){var s=o+((l=!!l)?"Clamped":"")+"Array",g$jscomp$0="get"+o,_$jscomp$0="set"+o,v=e$jscomp$1[s],q=v||{},w=v&&S(v);o={};var L=v&&v.prototype,P=function(e$jscomp$0,r){N(e$jscomp$0,r,{get:function(){var t=this._d;return t.v[g$jscomp$0](r*u+t.o,me)},set:function(e){var n=this._d;l&&(e=0>(e=Math.round(e))?0:255<e?255:255&e);n.v[_$jscomp$0](r*u+n.o,e,me)},enumerable:!0})};v&&i$jscomp$0.ABV?t$jscomp$0(function(){v(1)})&&t$jscomp$0(function(){new v(-1)})&&A(function(e){new v;new v(null);new v(1.5);new v(e)},
!0)||(v=f(function(e,r,t,n){var i;return c$jscomp$0(e,v,s),y(r)?r instanceof J||"ArrayBuffer"==(i=p(r))||"SharedArrayBuffer"==i?void 0!==n?new q(r,Le(t,u),n):void 0!==t?new q(r,Le(t,u)):new q(r):we in r?Fe(v,r):Ae.call(v,r):new q(d(r))}),Q(w!==Function.prototype?E(q).concat(E(w)):E(q),function(e){e in v||a(v,e,q[e])}),v.prototype=L,r$jscomp$0||(L.constructor=v)):(v=f(function(e,r,t,n){c$jscomp$0(e,v,s,"_d");var i,g=0,_=0;if(y(r)){if(!(r instanceof J||"ArrayBuffer"==(i=p(r))||"SharedArrayBuffer"==
i))return we in r?Fe(v,r):Ae.call(v,r);i=r;_=Le(t,u);r=r.byteLength;if(void 0===n){if(r%u)throw k("Wrong length!");if(0>(n=r-_))throw k("Wrong length!");}else if((n=h(n)*u)+_>r)throw k("Wrong length!");r=n/u}else r=d(r),i=new J(n=r*u);for(a(e,"_d",{b:i,o:_,l:n,e:r,v:new K(i)});g<r;)P(e,g++)}),L=v.prototype=b(Ce),a(L,"constructor",v));f=L[_e];w=!!f&&("values"==f.name||null==f.name);var F=Ye.values;a(v,pe,!0);a(L,we,s);a(L,be,!0);a(L,ye,v);(l?(new v(1))[ve]==s:ve in L)||N(L,ve,{get:function(){return s}});
o[s]=v;n$jscomp$0(n$jscomp$0.G+n$jscomp$0.W+n$jscomp$0.F*(v!=q),o);n$jscomp$0(n$jscomp$0.S,s,{BYTES_PER_ELEMENT:u});n$jscomp$0(n$jscomp$0.S+n$jscomp$0.F*t$jscomp$0(function(){q.of.call(v,1)}),s,{from:Ae,of:Re});"BYTES_PER_ELEMENT"in L||a(L,"BYTES_PER_ELEMENT",u);n$jscomp$0(n$jscomp$0.P,s,Me);R(s);n$jscomp$0(n$jscomp$0.P+n$jscomp$0.F*xe,s,{set:Ne});n$jscomp$0(n$jscomp$0.P+n$jscomp$0.F*!w,s,Ye);r$jscomp$0||L.toString==de||(L.toString=de);n$jscomp$0(n$jscomp$0.P+n$jscomp$0.F*t$jscomp$0(function(){(new v(1)).slice()}),
s,{slice:We});n$jscomp$0(n$jscomp$0.P+n$jscomp$0.F*(t$jscomp$0(function(){return[1,2].toLocaleString()!=(new v([1,2])).toLocaleString()})||!t$jscomp$0(function(){L.toLocaleString.call([1,2])})),s,{toLocaleString:Ie});O[s]=w?f:F;r$jscomp$0||w||a(L,_e,F)}}else module.exports=function(){}},{"./_descriptors":"P9Ib","./_library":"H21C","./_global":"5qf4","./_fails":"5BXi","./_export":"izCb","./_typed":"fero","./_typed-buffer":"Ujpk","./_ctx":"E3Kh","./_an-instance":"yJTF","./_property-desc":"uJ6d","./_hide":"0NXb",
"./_redefine-all":"J0Tl","./_to-integer":"yjVO","./_to-length":"dJBs","./_to-index":"16zj","./_to-absolute-index":"vfEH","./_to-primitive":"9y37","./_has":"2uHg","./_classof":"GM7B","./_is-object":"M7z6","./_to-object":"rfVX","./_is-array-iter":"0B0p","./_object-create":"sYaK","./_object-gpo":"8q6y","./_object-gopn":"Vzm0","./core.get-iterator-method":"ia+4","./_uid":"U49f","./_wks":"44AI","./_array-methods":"AuPh","./_array-includes":"4Ca7","./_species-constructor":"Ex+G","./es6.array.iterator":"6w+v",
"./_iterators":"JO4d","./_iter-detect":"md62","./_set-species":"5h4d","./_array-fill":"hphS","./_array-copy-within":"Oppn","./_object-dp":"nw8e","./_object-gopd":"uIjZ"}],"wqM+":[function(require,module,exports){require("./_typed-array")("Int8",1,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],QTtY:[function(require,module,exports){require("./_typed-array")("Uint8",1,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],Kqgs:[function(require,
module,exports){require("./_typed-array")("Uint8",1,function(r){return function(n,t,e){return r(this,n,t,e)}},!0)},{"./_typed-array":"4fd0"}],fEGw:[function(require,module,exports){require("./_typed-array")("Int16",2,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],xyd6:[function(require,module,exports){require("./_typed-array")("Uint16",2,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],hIko:[function(require,module,exports){require("./_typed-array")("Int32",
4,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],tNPN:[function(require,module,exports){require("./_typed-array")("Uint32",4,function(r){return function(n,t,e){return r(this,n,t,e)}})},{"./_typed-array":"4fd0"}],"/wis":[function(require,module,exports){require("./_typed-array")("Float32",4,function(r){return function(t,n,e){return r(this,t,n,e)}})},{"./_typed-array":"4fd0"}],"9mbT":[function(require,module,exports){require("./_typed-array")("Float64",8,function(r){return function(t,
n,e){return r(this,t,n,e)}})},{"./_typed-array":"4fd0"}],BNoi:[function(require,module,exports){var e$jscomp$1=require("./_redefine-all"),t$jscomp$1=require("./_meta").getWeak,r$jscomp$1=require("./_an-object"),i$jscomp$0=require("./_is-object"),n$jscomp$0=require("./_an-instance"),u$jscomp$0=require("./_for-of");exports=require("./_array-methods");var s=require("./_has"),a=require("./_validate-collection"),c$jscomp$0=exports(5),f$jscomp$0=exports(6),_=0,h=function(e){return e._l||(e._l=new l$jscomp$0)},
l$jscomp$0=function(){this.a=[]},d=function(e$jscomp$0,t){return c$jscomp$0(e$jscomp$0.a,function(e){return e[0]===t})};l$jscomp$0.prototype={get:function(e){if(e=d(this,e))return e[1]},has:function(e){return!!d(this,e)},set:function(e,t){var r=d(this,e);r?r[1]=t:this.a.push([e,t])},"delete":function(e){var t$jscomp$0=f$jscomp$0(this.a,function(t){return t[0]===e});return~t$jscomp$0&&this.a.splice(t$jscomp$0,1),!!~t$jscomp$0}};module.exports={getConstructor:function(r$jscomp$0,o,c,f){var l=r$jscomp$0(function(e,
t){n$jscomp$0(e,l,o,"_i");e._t=o;e._i=_++;e._l=void 0;null!=t&&u$jscomp$0(t,c,e[f],e)});return e$jscomp$1(l.prototype,{"delete":function(e){if(!i$jscomp$0(e))return!1;var r=t$jscomp$1(e);return!0===r?h(a(this,o))["delete"](e):r&&s(r,this._i)&&delete r[this._i]},has:function(e){if(!i$jscomp$0(e))return!1;var r=t$jscomp$1(e);return!0===r?h(a(this,o)).has(e):r&&s(r,this._i)}}),l},def:function(e,i,n){var u=t$jscomp$1(r$jscomp$1(i),!0);return!0===u?h(e).set(i,n):u[e._i]=n,e},ufstore:h}},{"./_redefine-all":"J0Tl",
"./_meta":"AoVy","./_an-object":"eT53","./_is-object":"M7z6","./_an-instance":"yJTF","./_for-of":"Abke","./_array-methods":"AuPh","./_has":"2uHg","./_validate-collection":"1FW4"}],D6DP:[function(require,module,exports){var e$jscomp$0,t$jscomp$0=require("./_global");exports=require("./_array-methods")(0);var i$jscomp$0=require("./_redefine"),n$jscomp$0=require("./_meta"),o=require("./_object-assign"),u=require("./_collection-weak"),c=require("./_is-object"),s=require("./_validate-collection"),a=require("./_validate-collection");
t$jscomp$0=!t$jscomp$0.ActiveXObject&&"ActiveXObject"in t$jscomp$0;var _=n$jscomp$0.getWeak,h=Object.isExtensible,q=u.ufstore,v=function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},d={get:function(e){if(c(e)){var t=_(e);return!0===t?q(s(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(s(this,"WeakMap"),e,t)}},g=module.exports=require("./_collection")("WeakMap",v,d,u,!0,!0);a&&t$jscomp$0&&(o((e$jscomp$0=u.getConstructor(v,"WeakMap")).prototype,
d),n$jscomp$0.NEED=!0,exports(["delete","has","get","set"],function(t){var r$jscomp$0=g.prototype,n=r$jscomp$0[t];i$jscomp$0(r$jscomp$0,t,function(r,i){return c(r)&&!h(r)?(this._f||(this._f=new e$jscomp$0),r=this._f[t](r,i),"set"==t?this:r):n.call(this,r,i)})}))},{"./_global":"5qf4","./_array-methods":"AuPh","./_redefine":"PHot","./_meta":"AoVy","./_object-assign":"e3Bp","./_collection-weak":"BNoi","./_is-object":"M7z6","./_validate-collection":"1FW4","./_collection":"hWYB"}],bRUR:[function(require,
module,exports){var e$jscomp$0=require("./_collection-weak"),t=require("./_validate-collection");require("./_collection")("WeakSet",function(e){return function(){return e(this,0<arguments.length?arguments[0]:void 0)}},{add:function(r){return e$jscomp$0.def(t(this,"WeakSet"),r,!0)}},e$jscomp$0,!1,!0)},{"./_collection-weak":"BNoi","./_validate-collection":"1FW4","./_collection":"hWYB"}],emcv:[function(require,module,exports){function u(s,a,n,c,f,l,q,_){var d,h,v=0;for(q=!!q&&t(q,_,3);v<c;){if(v in n){if(d=
q?q(n[v],v,a):n[v],h=!1,e(d)&&(h=void 0!==(h=d[o])?!!h:r(d)),h&&0<l)f=u(s,a,d,i(d.length),f,l-1)-1;else{if(9007199254740991<=f)throw TypeError();s[f]=d}f++}v++}return f}var r=require("./_is-array"),e=require("./_is-object"),i=require("./_to-length"),t=require("./_ctx"),o=require("./_wks")("isConcatSpreadable");module.exports=u},{"./_is-array":"JTrm","./_is-object":"M7z6","./_to-length":"dJBs","./_ctx":"E3Kh","./_wks":"44AI"}],I8vV:[function(require,module,exports){module=require("./_export");var e=
require("./_flatten-into-array"),t=require("./_to-object"),a=require("./_to-length"),i=require("./_a-function"),u=require("./_array-species-create");module(module.P,"Array",{flatMap:function(r,JSCompiler_OptimizeArgumentsArray_p15){var n,o,c=t(this);return i(r),n=a(c.length),o=u(c,0),e(o,c,c,n,0,1,r,JSCompiler_OptimizeArgumentsArray_p15),o}});require("./_add-to-unscopables")("flatMap")},{"./_export":"izCb","./_flatten-into-array":"emcv","./_to-object":"rfVX","./_to-length":"dJBs","./_a-function":"6kYj",
"./_array-species-create":"igas","./_add-to-unscopables":"Z7e/"}],OTsy:[function(require,module,exports){module=require("./_global");exports=require("./_export");require=require("./_user-agent");var r=[].slice;require=/MSIE .\./.test(require);var i$jscomp$0=function(e){return function(t,n){var u=2<arguments.length,i=!!u&&r.call(arguments,2);return e(u?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};exports(exports.G+exports.B+exports.F*require,{setTimeout:i$jscomp$0(module.setTimeout),
setInterval:i$jscomp$0(module.setInterval)})},{"./_global":"5qf4","./_export":"izCb","./_user-agent":"O5uh"}],"5hZL":[function(require,module,exports){module=require("./_export");require=require("./_task");module(module.G+module.B,{setImmediate:require.set,clearImmediate:require.clear})},{"./_export":"izCb","./_task":"KY9y"}],v6Aj:[function(require,module,exports){module=require("./es6.array.iterator");var t=require("./_object-keys");exports=require("./_redefine");var r=require("./_global"),s=require("./_hide"),
L=require("./_iterators"),a=require("./_wks");require=a("iterator");a=a("toStringTag");var S=L.Array,n={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};t=t(n);for(var T=0;T<t.length;T++){var c,g=t[T],M=n[g],y=r[g];if((y=y&&y.prototype)&&(y[require]||s(y,require,S),y[a]||s(y,a,g),L[g]=S,M))for(c in module)y[c]||exports(y,c,module[c],!0)}},{"./es6.array.iterator":"6w+v","./_object-keys":"U9a7","./_redefine":"PHot","./_global":"5qf4","./_hide":"0NXb","./_iterators":"JO4d","./_wks":"44AI"}],QVnC:[function(require,module,exports){require=
function(t$jscomp$1){function u$jscomp$0(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}function h$jscomp$0(t$jscomp$0,r$jscomp$0,e$jscomp$0,n$jscomp$0){r$jscomp$0=Object.create((r$jscomp$0&&r$jscomp$0.prototype instanceof g?r$jscomp$0:g).prototype);n$jscomp$0=new G(n$jscomp$0||[]);return r$jscomp$0._invoke=function(t,r,e){var n=l;return function(o,i){if(n===p)throw Error("Generator is already running");if(n===y){if("throw"===o)throw i;return T()}e.method=
o;for(e.arg=i;;){if(o=e.delegate)if(o=j(o,e)){if(o===v)continue;return o}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===l)throw n=y,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=p;o=f(t,r,e);if("normal"===o.type){if(n=e.done?y:s,o.arg===v)continue;return{value:o.arg,done:e.done}}"throw"===o.type&&(n=y,e.method="throw",e.arg=o.arg)}}}(t$jscomp$0,e$jscomp$0,n$jscomp$0),r$jscomp$0}function f(t,r,e){try{return{type:"normal",arg:t.call(r,
e)}}catch(F$27){return{type:"throw",arg:F$27}}}function g(){}function d(){}function m(){}function E(t$jscomp$0){["next","throw","return"].forEach(function(r){u$jscomp$0(t$jscomp$0,r,function(t){return this._invoke(r,t)})})}function _(t$jscomp$0,r){var e$jscomp$1;this._invoke=function(o$jscomp$0,i$jscomp$0){function a$jscomp$1(){return new r(function(e$jscomp$0,a$jscomp$0){!function e(o,i,a,c){o=f(t$jscomp$0[o],t$jscomp$0,i);if("throw"!==o.type){var h=o.arg;return(o=h.value)&&"object"==_typeof(o)&&
n$jscomp$1.call(o,"__await")?r.resolve(o.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(o).then(function(t){h.value=t;a(h)},function(t){return e("throw",t,a,c)})}c(o.arg)}(o$jscomp$0,i$jscomp$0,e$jscomp$0,a$jscomp$0)})}return e$jscomp$1=e$jscomp$1?e$jscomp$1.then(a$jscomp$1,a$jscomp$1):a$jscomp$1()}}function j(t,e){var n=t.iterator[e.method];if(n===r$jscomp$1){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=r$jscomp$1,j(t,
e),"throw"===e.method))return v;e.method="throw";e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}n=f(n,t.iterator,e.arg);return"throw"===n.type?(e.method="throw",e.arg=n.arg,e.delegate=null,v):(n=n.arg)?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r$jscomp$1),e.delegate=null,v):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=
t[1]);2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]);this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function G(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(O,this);this.reset(!0)}function N(t){if(t){var e$jscomp$0=t[i$jscomp$1];if(e$jscomp$0)return e$jscomp$0.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1;e$jscomp$0=function e(){for(;++o<t.length;)if(n$jscomp$1.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=
r$jscomp$1,e.done=!0,e};return e$jscomp$0.next=e$jscomp$0}}return{next:T}}function T(){return{value:r$jscomp$1,done:!0}}var r$jscomp$1,e$jscomp$2=Object.prototype,n$jscomp$1=e$jscomp$2.hasOwnProperty,o$jscomp$1="function"==typeof Symbol?Symbol:{},i$jscomp$1=o$jscomp$1.iterator||"@@iterator",a$jscomp$2=o$jscomp$1.asyncIterator||"@@asyncIterator",c$jscomp$0=o$jscomp$1.toStringTag||"@@toStringTag";try{u$jscomp$0({},"")}catch(F){u$jscomp$0=function(t,r,e){return t[r]=e}}t$jscomp$1.wrap=h$jscomp$0;var l=
"suspendedStart",s="suspendedYield",p="executing",y="completed",v={};o$jscomp$1={};u$jscomp$0(o$jscomp$1,i$jscomp$1,function(){return this});var L=Object.getPrototypeOf;(L=L&&L(L(N([]))))&&L!==e$jscomp$2&&n$jscomp$1.call(L,i$jscomp$1)&&(o$jscomp$1=L);var b=m.prototype=g.prototype=Object.create(o$jscomp$1);return d.prototype=m,u$jscomp$0(b,"constructor",m),u$jscomp$0(m,"constructor",d),d.displayName=u$jscomp$0(m,c$jscomp$0,"GeneratorFunction"),t$jscomp$1.isGeneratorFunction=function(t){t="function"==
typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},t$jscomp$1.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u$jscomp$0(t,c$jscomp$0,"GeneratorFunction")),t.prototype=Object.create(b),t},t$jscomp$1.awrap=function(t){return{__await:t}},E(_.prototype),u$jscomp$0(_.prototype,a$jscomp$2,function(){return this}),t$jscomp$1.AsyncIterator=_,t$jscomp$1.async=function(r,e,n,o,i){void 0===i&&(i=Promise);var a=new _(h$jscomp$0(r,
e,n,o),i);return t$jscomp$1.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})},E(b),u$jscomp$0(b,c$jscomp$0,"Generator"),u$jscomp$0(b,i$jscomp$1,function(){return this}),u$jscomp$0(b,"toString",function(){return"[object Generator]"}),t$jscomp$1.keys=function(t){var r=[],e$jscomp$0;for(e$jscomp$0 in t)r.push(e$jscomp$0);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t$jscomp$1.values=N,G.prototype=
{constructor:G,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r$jscomp$1,this.done=!1,this.delegate=null,this.method="next",this.arg=r$jscomp$1,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n$jscomp$1.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r$jscomp$1)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function o$jscomp$0(n,o){return c.type="throw",c.arg=t,e.next=
n,o&&(e.method="next",e.arg=r$jscomp$1),!!o}if(this.done)throw t;for(var e=this,i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o$jscomp$0("end");if(a.tryLoc<=this.prev){var u=n$jscomp$1.call(a,"catchLoc"),h=n$jscomp$1.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o$jscomp$0(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o$jscomp$0(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o$jscomp$0(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");
if(this.prev<a.finallyLoc)return o$jscomp$0(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n$jscomp$1.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);e=i?i.completion:{};return e.type=t,e.arg=r,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(e)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===
t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),v},finish:function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),v}},"catch":function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var e=this.tryEntries[r];if(e.tryLoc===t){t=e.completion;if("throw"===t.type){var o=t.arg;k(e)}return o}}throw Error("illegal catch attempt");
},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r$jscomp$1),v}},t$jscomp$1}("object"==_typeof(module)?module.exports:{});try{regeneratorRuntime=require}catch(e){"object"==("undefined"===typeof globalThis?"undefined":_typeof(globalThis))?globalThis.regeneratorRuntime=require:Function("r","regeneratorRuntime = r")(require)}},{}],"N3q+":[function(require,module,exports,JSCompiler_OptimizeArgumentsArray_p16){!function(t$jscomp$1){function w(t$jscomp$0,
r$jscomp$0,e$jscomp$0,n$jscomp$0){r$jscomp$0=Object.create((r$jscomp$0&&r$jscomp$0.prototype instanceof x?r$jscomp$0:x).prototype);n$jscomp$0=new N(n$jscomp$0||[]);return r$jscomp$0._invoke=function(t,r,e){var n=f;return function(o,i){if(n===l)throw Error("Generator is already running");if(n===p){if("throw"===o)throw i;return F()}e.method=o;for(e.arg=i;;){if(o=e.delegate)if(o=O(o,e)){if(o===y)continue;return o}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(n===f)throw n=
p,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n=l;o=L(t,r,e);if("normal"===o.type){if(n=e.done?p:s,o.arg===y)continue;return{value:o.arg,done:e.done}}"throw"===o.type&&(n=p,e.method="throw",e.arg=o.arg)}}}(t$jscomp$0,e$jscomp$0,n$jscomp$0),r$jscomp$0}function L(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(n$28){return{type:"throw",arg:n$28}}}function x(){}function E(){}function b(){}function _(t$jscomp$0){["next","throw","return"].forEach(function(r){t$jscomp$0[r]=
function(t){return this._invoke(r,t)}})}function j(t$jscomp$0){var r$jscomp$1;this._invoke=function(e$jscomp$0,o$jscomp$0){function i$jscomp$1(){return new Promise(function(r$jscomp$0,i$jscomp$0){!function r(e,o,i,a){e=L(t$jscomp$0[e],t$jscomp$0,o);if("throw"!==e.type){var u=e.arg;return(e=u.value)&&"object"==_typeof(e)&&n$jscomp$1.call(e,"__await")?Promise.resolve(e.__await).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(e).then(function(t){u.value=t;i(u)},function(t){return r("throw",
t,i,a)})}a(e.arg)}(e$jscomp$0,o$jscomp$0,r$jscomp$0,i$jscomp$0)})}return r$jscomp$1=r$jscomp$1?r$jscomp$1.then(i$jscomp$1,i$jscomp$1):i$jscomp$1()}}function O(t,e){var n=t.iterator[e.method];if(n===r$jscomp$2){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=r$jscomp$2,O(t,e),"throw"===e.method))return y;e.method="throw";e.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}n=L(n,t.iterator,e.arg);return"throw"===n.type?(e.method="throw",
e.arg=n.arg,e.delegate=null,y):(n=n.arg)?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r$jscomp$2),e.delegate=null,y):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,y)}function k(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]);2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]);this.tryEntries.push(r)}function G(t){var r=t.completion||{};r.type="normal";delete r.arg;t.completion=r}function N(t){this.tryEntries=[{tryLoc:"root"}];
t.forEach(k,this);this.reset(!0)}function P(t){if(t){var e$jscomp$0=t[i$jscomp$2];if(e$jscomp$0)return e$jscomp$0.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1;e$jscomp$0=function e(){for(;++o<t.length;)if(n$jscomp$1.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=r$jscomp$2,e.done=!0,e};return e$jscomp$0.next=e$jscomp$0}}return{next:F}}function F(){return{value:r$jscomp$2,done:!0}}var r$jscomp$2,e$jscomp$1=Object.prototype,n$jscomp$1=e$jscomp$1.hasOwnProperty,
o$jscomp$1="function"==typeof Symbol?Symbol:{},i$jscomp$2=o$jscomp$1.iterator||"@@iterator",a$jscomp$0=o$jscomp$1.asyncIterator||"@@asyncIterator",c$jscomp$0=o$jscomp$1.toStringTag||"@@toStringTag";o$jscomp$1="object"==_typeof(module);var h$jscomp$0=t$jscomp$1.regeneratorRuntime;if(h$jscomp$0)o$jscomp$1&&(module.exports=h$jscomp$0);else{(h$jscomp$0=t$jscomp$1.regeneratorRuntime=o$jscomp$1?module.exports:{}).wrap=w;var f="suspendedStart",s="suspendedYield",l="executing",p="completed",y={};t$jscomp$1=
{};t$jscomp$1[i$jscomp$2]=function(){return this};(o$jscomp$1=(o$jscomp$1=Object.getPrototypeOf)&&o$jscomp$1(o$jscomp$1(P([]))))&&o$jscomp$1!==e$jscomp$1&&n$jscomp$1.call(o$jscomp$1,i$jscomp$2)&&(t$jscomp$1=o$jscomp$1);var m=b.prototype=x.prototype=Object.create(t$jscomp$1);E.prototype=m.constructor=b;b.constructor=E;b[c$jscomp$0]=E.displayName="GeneratorFunction";h$jscomp$0.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||
t.name))};h$jscomp$0.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c$jscomp$0 in t||(t[c$jscomp$0]="GeneratorFunction")),t.prototype=Object.create(m),t};h$jscomp$0.awrap=function(t){return{__await:t}};_(j.prototype);j.prototype[a$jscomp$0]=function(){return this};h$jscomp$0.AsyncIterator=j;h$jscomp$0.async=function(t$jscomp$0,r,e,n){var o=new j(w(t$jscomp$0,r,e,n));return h$jscomp$0.isGeneratorFunction(r)?o:o.next().then(function(t){return t.done?t.value:
o.next()})};_(m);m[c$jscomp$0]="Generator";m[i$jscomp$2]=function(){return this};m.toString=function(){return"[object Generator]"};h$jscomp$0.keys=function(t){var r=[],e$jscomp$0;for(e$jscomp$0 in t)r.push(e$jscomp$0);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}};h$jscomp$0.values=P;N.prototype={constructor:N,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=r$jscomp$2,this.done=!1,this.delegate=null,this.method=
"next",this.arg=r$jscomp$2,this.tryEntries.forEach(G),!t)for(var e in this)"t"===e.charAt(0)&&n$jscomp$1.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=r$jscomp$2)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function o$jscomp$0(n,o){return c.type="throw",c.arg=t,e.next=n,o&&(e.method="next",e.arg=r$jscomp$2),!!o}if(this.done)throw t;for(var e=this,i=this.tryEntries.length-1;0<=i;--i){var a=this.tryEntries[i],
c=a.completion;if("root"===a.tryLoc)return o$jscomp$0("end");if(a.tryLoc<=this.prev){var u=n$jscomp$1.call(a,"catchLoc"),h=n$jscomp$1.call(a,"finallyLoc");if(u&&h){if(this.prev<a.catchLoc)return o$jscomp$0(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o$jscomp$0(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o$jscomp$0(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o$jscomp$0(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=
this.tryEntries.length-1;0<=e;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n$jscomp$1.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);e=i?i.completion:{};return e.type=t,e.arg=r,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(e)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method=
"return",this.next="end"):"normal"===t.type&&r&&(this.next=r),y},finish:function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),G(e),y}},"catch":function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var e=this.tryEntries[r];if(e.tryLoc===t){t=e.completion;if("throw"===t.type){var o=t.arg;G(e)}return o}}throw Error("illegal catch attempt");},delegateYield:function(t,e,n){return this.delegate={iterator:P(t),
resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r$jscomp$2),y}}}}(function(){return this||"object"==("undefined"===typeof self?"undefined":_typeof(self))&&self}()||Function("return this")())},{}],Vdat:[function(require,module,exports){exports=function(){return this||"object"==("undefined"===typeof self?"undefined":_typeof(self))&&self}()||Function("return this")();var r=exports.regeneratorRuntime&&0<=Object.getOwnPropertyNames(exports).indexOf("regeneratorRuntime"),t=r&&exports.regeneratorRuntime;
if(exports.regeneratorRuntime=void 0,module.exports=require("./runtime"),r)exports.regeneratorRuntime=t;else try{delete exports.regeneratorRuntime}catch(n){exports.regeneratorRuntime=void 0}},{"./runtime":"N3q+"}],PMvg:[function(require,module,exports){module.exports=require("regenerator-runtime")},{"regenerator-runtime":"Vdat"}],Z6v7:[function(require,module,exports){function x(t,e,n){t=t[n+-4>>>2]>>>1;n>>>=1;if(1024>=t)return String.fromCharCode.apply(String,e.subarray(n,n+t));var a=[];do{var _t3=
e[n+1024-1];_t3=55296<=_t3&&56320>_t3?1023:1024;a.push(String.fromCharCode.apply(String,e.subarray(n,n+=_t3)));t-=_t3}while(1024<t);return a.join("")+String.fromCharCode.apply(String,e.subarray(n,n+t))}function E$jscomp$0(t$jscomp$0){function e(t,r){if(!t)return"<yet unknown>";t=t.buffer;return x(new Uint32Array(t),new Uint16Array(t),r)}var r$jscomp$0={},n=t$jscomp$0.env=t$jscomp$0.env||{};return n.abort=n.abort||function(t,o,i,a){var c=r$jscomp$0.memory||n.memory;throw Error("abort: "+e(c,t)+" at "+
e(c,o)+":"+i+":"+a);},n.trace=n.trace||function(t,o){console.log("trace: "+e(r$jscomp$0.memory||n.memory,t)+(o?" ":"")+Array.prototype.slice.call(arguments,2,2+o).join(", "))},t$jscomp$0.Math=t$jscomp$0.Math||Math,t$jscomp$0.Date=t$jscomp$0.Date||Date,r$jscomp$0}function P$jscomp$0(o$jscomp$0,c$jscomp$0){function z(){_!==g.buffer&&(_=g.buffer,U=new Int8Array(_),I=new Uint8Array(_),E=new Int16Array(_),P=new Uint16Array(_),C=new Int32Array(_),M=new Uint32Array(_),S&&(F=new BigInt64Array(_),k=new BigUint64Array(_)),
B=new Float32Array(_),D=new Float64Array(_))}function N(t){if((t>>>=0)>=M[h>>>2])throw Error("invalid id: "+t);return M[(h+4>>>2)+2*t]}function V(t){if((t>>>=0)>=M[h>>>2])throw Error("invalid id: "+t);return M[(h+4>>>2)+2*t+1]}function G(t,r,e){if(e)switch(t){case 2:return B;case 3:return D}else switch(t){case 0:return r?U:I;case 1:return r?E:P;case 2:return r?C:M;case 3:return r?F:k}throw Error("unsupported align: "+t);}function H(e){z();var n=M[e+-8>>>2],o=N(n);if(!(o&1))throw Error("not an array: "+
n);n=31-Math.clz32(o/32&31);var u=M[e+4>>>2];e=o&2?M[e+12>>>2]:M[u+-4>>>2]>>>n;return G(n,o&1024,o&2048).slice(u>>>=n,u+e)}c$jscomp$0=c$jscomp$0.exports||c$jscomp$0;var g=c$jscomp$0.memory,p$jscomp$0=c$jscomp$0.table,b=c$jscomp$0.__alloc,w=c$jscomp$0.__retain,h=c$jscomp$0.__rtti_base||-1,_,U,I,E,P,C,M,B,D,F,k;return z(),o$jscomp$0.__allocString=function(t){var r=t.length,e=b(r<<1,1);z();for(var _n=0,_o=e>>>1;_n<r;++_n)P[_o+_n]=t.charCodeAt(_n);return e},o$jscomp$0.__getString=function(r){if(z(),1!==
M[r+-8>>>2])throw Error("not a string: "+r);return x(M,P,r)},o$jscomp$0.__allocArray=function(t,r){var n=N(t);if(!(n&3))throw Error("not an array: "+t+" @ "+n);var o=31-Math.clz32(n/32&31),c=r.length,u=b(c<<o,0);t=b(n&2?16:12,t);z();M[t+0>>>2]=w(u);M[t+4>>>2]=u;M[t+8>>>2]=c<<o;n&2&&(M[t+12>>>2]=c);for(var p=G(o,n&1024,n&2048),_e6=0;_e6<c;++_e6)p[(u>>o)+_e6]=r[_e6];if(n&8192)for(n=0;n<c;++n)w(r[n]);return t},o$jscomp$0.__getArrayView=H,o$jscomp$0.__getArray=function(t){return Array.from(H(t))},o$jscomp$0.__instanceof=
function(r,e){r=M[r+-8>>>2];if(r<=M[h>>>2]){do if(r==e)return!0;while(r=V(r))}return!1},o$jscomp$0.memory=o$jscomp$0.memory||g,o$jscomp$0.table=o$jscomp$0.table||p$jscomp$0,W(c$jscomp$0,Object.defineProperties(o$jscomp$0,{I8:{get:function(){return z(),U}},U8:{get:function(){return z(),I}},I16:{get:function(){return z(),E}},U16:{get:function(){return z(),P}},I32:{get:function(){return z(),C}},U32:{get:function(){return z(),M}},I64:{get:function(){return z(),F}},U64:{get:function(){return z(),k}},F32:{get:function(){return z(),
B}},F64:{get:function(){return z(),D}}}))}function C$jscomp$0(t,r){var e=function(){return r(arguments.length),t.apply(void 0,arguments)};return e.original=t,e}function M$jscomp$0(t,r){return P$jscomp$0(E$jscomp$0(r||(r={})),new WebAssembly.Instance(t,r))}function _F(){_F=_asyncToGenerator(regeneratorRuntime.mark(function _callee(t,r){return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:return _context.t0=P$jscomp$0,_context.t1=E$jscomp$0(r||(r={})),
_context.next=4,WebAssembly.instantiateStreaming(t,r);case 4:return _context.t2=_context.sent.instance,_context.abrupt("return",(0,_context.t0)(_context.t1,_context.t2));case 6:case "end":return _context.stop()}},_callee)}));return _F.apply(this,arguments)}function W(t$jscomp$0,r$jscomp$1){function o(t,r){return Object.prototype.hasOwnProperty.call(t,r)}var e=r$jscomp$1?Object.create(r$jscomp$1):{},n=t$jscomp$0.__setargc||function(){};r$jscomp$1=function(_i2){if(!o(t$jscomp$0,_i2))return"continue";
for(var r$jscomp$0=t$jscomp$0[_i2],a=_i2.split("."),c=e;1<a.length;){var _t4=a.shift();o(c,_t4)||(c[_t4]={});c=c[_t4]}a=a[0];_t4=a.indexOf("#");if(-1===_t4&&(_t4=a.indexOf("_")),0<=_t4){var _e8=a.substring(0,_t4),_a=c[_e8];if(void 0===_a||!_a.prototype){var _t5=function _t5(){for(var _t5$prototype,_len=arguments.length,r=Array(_len),_key=0;_key<_len;_key++)r[_key]=arguments[_key];return _t5.wrap((_t5$prototype=_t5.prototype).constructor.apply(_t5$prototype,[0].concat(r)))};_t5.prototype={valueOf:function(){return this[U$jscomp$0]}};
_t5.wrap=function(r){var JSCompiler_temp_const=Object,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.create,JSCompiler_temp_const$jscomp$1=_t5.prototype,obj={},key=U$jscomp$0;r={value:r,writable:!1};key in obj?Object.defineProperty(obj,key,{value:r,enumerable:!0,configurable:!0,writable:!0}):obj[key]=r;return JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,JSCompiler_temp_const$jscomp$1,obj)};_a&&Object.getOwnPropertyNames(_a).forEach(function(r){return Object.defineProperty(_t5,r,
Object.getOwnPropertyDescriptor(_a,r))});c[_e8]=_t5}if(a=a.substring(_t4+1),c=c[_e8].prototype,/^(get|set):/.test(a)){if(!o(c,a=a.substring(4))){var _r5=t$jscomp$0[_i2.replace("set:","get:").replace("set_","get_")],_e9=t$jscomp$0[_i2.replace("get:","set:").replace("get_","set_")];Object.defineProperty(c,a,{get:function(){return _r5(this[U$jscomp$0])},set:function(t){_e9(this[U$jscomp$0],t)},enumerable:!0})}}else"constructor"===a?c[a]=C$jscomp$0(r$jscomp$0,n):Object.defineProperty(c,a,{value:function(){for(var _len2=
arguments.length,t=Array(_len2),_key2=0;_key2<_len2;_key2++)t[_key2]=arguments[_key2];return n(t.length),r$jscomp$0.apply(void 0,[this[U$jscomp$0]].concat(t))}})}else/^(get|set):/.test(a)?o(c,a=a.substring(4))||Object.defineProperty(c,a,{get:t$jscomp$0[_i2.replace("set:","get:").replace("set_","get_")],set:t$jscomp$0[_i2.replace("get:","set:").replace("get_","set_")],enumerable:!0}):c[a]="function"==typeof r$jscomp$0?C$jscomp$0(r$jscomp$0,n):r$jscomp$0};for(var _i2$jscomp$0 in t$jscomp$0)r$jscomp$1(_i2$jscomp$0);
return e}var S="undefined"!=typeof BigUint64Array,U$jscomp$0=Symbol();exports.instantiate=M$jscomp$0;exports.instantiateASM=function(t,r){return P$jscomp$0(E$jscomp$0(r||{}),t)};exports.instantiateBuffer=function(t,r){return M$jscomp$0(new WebAssembly.Module(t),r)};exports.instantiateStreaming=function(_x,_x2){return _F.apply(this,arguments)};exports.demangle=W},{}],ctdA:[function(require,module,exports){!function(){try{new window.ImageData(new Uint8ClampedArray([0,0,0,0]),1,1)}catch(t$jscomp$0){window.ImageData=
function(){var t,e=Array.prototype.slice.call(arguments);if(2>e.length)throw new TypeError("\n          Failed to construct 'ImageData': 2 arguments required, but only ".concat(e.length," present.\n        "));if(2<e.length){if(!((t=e.shift())instanceof Uint8ClampedArray))throw new TypeError("\n            Failed to construct 'ImageData': parameter 1 is not of type 'Uint8ClampedArray'\n          ");if(t.length!==4*e[0]*e[1])throw Error("\n            Failed to construct 'ImageData': The input data byte length is not a multiple of (4 * width * height)\n          ");
}var a=e[0];e=e[1];a=document.createElement("canvas").getContext("2d").createImageData(a,e);return t&&a.data.set(t),a}}}()},{}],xoC2:[function(require,module,exports){function u$jscomp$0(e){return e&&e.__esModule?e:{"default":e}}var e$jscomp$3=u$jscomp$0(require("@babel/runtime/helpers/typeof")),r$jscomp$1=u$jscomp$0(require("@babel/runtime/helpers/asyncToGenerator")),s$jscomp$2=u$jscomp$0(require("@babel/runtime/helpers/defineProperty")),o$jscomp$0=u$jscomp$0(require("@babel/runtime/helpers/toConsumableArray"));
require("core-js/modules/es6.array.copy-within");require("core-js/modules/es6.array.fill");require("core-js/modules/es6.array.find");require("core-js/modules/es6.array.find-index");require("core-js/modules/es6.array.from");require("core-js/modules/es7.array.includes");require("core-js/modules/es6.array.iterator");require("core-js/modules/es6.array.of");require("core-js/modules/es6.array.species");require("core-js/modules/es6.date.to-primitive");require("core-js/modules/es6.function.has-instance");
require("core-js/modules/es6.function.name");require("core-js/modules/es6.map");require("core-js/modules/es6.math.acosh");require("core-js/modules/es6.math.asinh");require("core-js/modules/es6.math.atanh");require("core-js/modules/es6.math.cbrt");require("core-js/modules/es6.math.clz32");require("core-js/modules/es6.math.cosh");require("core-js/modules/es6.math.expm1");require("core-js/modules/es6.math.fround");require("core-js/modules/es6.math.hypot");require("core-js/modules/es6.math.imul");require("core-js/modules/es6.math.log1p");
require("core-js/modules/es6.math.log10");require("core-js/modules/es6.math.log2");require("core-js/modules/es6.math.sign");require("core-js/modules/es6.math.sinh");require("core-js/modules/es6.math.tanh");require("core-js/modules/es6.math.trunc");require("core-js/modules/es6.number.constructor");require("core-js/modules/es6.number.epsilon");require("core-js/modules/es6.number.is-finite");require("core-js/modules/es6.number.is-integer");require("core-js/modules/es6.number.is-nan");require("core-js/modules/es6.number.is-safe-integer");
require("core-js/modules/es6.number.max-safe-integer");require("core-js/modules/es6.number.min-safe-integer");require("core-js/modules/es6.number.parse-float");require("core-js/modules/es6.number.parse-int");require("core-js/modules/es6.object.assign");require("core-js/modules/es7.object.define-getter");require("core-js/modules/es7.object.define-setter");require("core-js/modules/es7.object.entries");require("core-js/modules/es6.object.freeze");require("core-js/modules/es6.object.get-own-property-descriptor");
require("core-js/modules/es7.object.get-own-property-descriptors");require("core-js/modules/es6.object.get-own-property-names");require("core-js/modules/es6.object.get-prototype-of");require("core-js/modules/es7.object.lookup-getter");require("core-js/modules/es7.object.lookup-setter");require("core-js/modules/es6.object.prevent-extensions");require("core-js/modules/es6.object.is");require("core-js/modules/es6.object.is-frozen");require("core-js/modules/es6.object.is-sealed");require("core-js/modules/es6.object.is-extensible");
require("core-js/modules/es6.object.keys");require("core-js/modules/es6.object.seal");require("core-js/modules/es7.object.values");require("core-js/modules/es6.promise");require("core-js/modules/es7.promise.finally");require("core-js/modules/es6.reflect.apply");require("core-js/modules/es6.reflect.construct");require("core-js/modules/es6.reflect.define-property");require("core-js/modules/es6.reflect.delete-property");require("core-js/modules/es6.reflect.get");require("core-js/modules/es6.reflect.get-own-property-descriptor");
require("core-js/modules/es6.reflect.get-prototype-of");require("core-js/modules/es6.reflect.has");require("core-js/modules/es6.reflect.is-extensible");require("core-js/modules/es6.reflect.own-keys");require("core-js/modules/es6.reflect.prevent-extensions");require("core-js/modules/es6.reflect.set");require("core-js/modules/es6.reflect.set-prototype-of");require("core-js/modules/es6.regexp.constructor");require("core-js/modules/es6.regexp.flags");require("core-js/modules/es6.regexp.match");require("core-js/modules/es6.regexp.replace");
require("core-js/modules/es6.regexp.split");require("core-js/modules/es6.regexp.search");require("core-js/modules/es6.regexp.to-string");require("core-js/modules/es6.set");require("core-js/modules/es6.symbol");require("core-js/modules/es7.symbol.async-iterator");require("core-js/modules/es6.string.anchor");require("core-js/modules/es6.string.big");require("core-js/modules/es6.string.blink");require("core-js/modules/es6.string.bold");require("core-js/modules/es6.string.code-point-at");require("core-js/modules/es6.string.ends-with");
require("core-js/modules/es6.string.fixed");require("core-js/modules/es6.string.fontcolor");require("core-js/modules/es6.string.fontsize");require("core-js/modules/es6.string.from-code-point");require("core-js/modules/es6.string.includes");require("core-js/modules/es6.string.italics");require("core-js/modules/es6.string.iterator");require("core-js/modules/es6.string.link");require("core-js/modules/es7.string.pad-start");require("core-js/modules/es7.string.pad-end");require("core-js/modules/es6.string.raw");
require("core-js/modules/es6.string.repeat");require("core-js/modules/es6.string.small");require("core-js/modules/es6.string.starts-with");require("core-js/modules/es6.string.strike");require("core-js/modules/es6.string.sub");require("core-js/modules/es6.string.sup");require("core-js/modules/es6.typed.array-buffer");require("core-js/modules/es6.typed.int8-array");require("core-js/modules/es6.typed.uint8-array");require("core-js/modules/es6.typed.uint8-clamped-array");require("core-js/modules/es6.typed.int16-array");
require("core-js/modules/es6.typed.uint16-array");require("core-js/modules/es6.typed.int32-array");require("core-js/modules/es6.typed.uint32-array");require("core-js/modules/es6.typed.float32-array");require("core-js/modules/es6.typed.float64-array");require("core-js/modules/es6.weak-map");require("core-js/modules/es6.weak-set");require("core-js/modules/es7.array.flat-map");require("core-js/modules/web.timers");require("core-js/modules/web.immediate");require("core-js/modules/web.dom.iterable");require("regenerator-runtime/runtime");
var t$jscomp$0=u$jscomp$0(require("@babel/runtime/regenerator")),n$jscomp$1=require("assemblyscript/lib/loader");require("./polyfill");var i$jscomp$0,l=null,d=null,m=null,j={},p$jscomp$0=[],q$jscomp$0=[],f$jscomp$0=function(e$jscomp$0){return(0,s$jscomp$2["default"])({},e$jscomp$0?"index.view-only":"index",{"p.log":function(e){console.log("".concat(atob("UERGSlMuZXhwcmVzczog")).concat(j.getString(e)))},"p.logB":function(e){console.log(e)},"p.logi":function(e){console.log(e)},"p.r":function(e,r){var s,
t=new Uint8ClampedArray(l.slice(0,e*r*4));e=new ImageData(t,e,r);(s=window).rC.apply(s,[e].concat((0,o$jscomp$0["default"])(p$jscomp$0)))},"p.dC":function(){var e;(e=window).dC.apply(e,(0,o$jscomp$0["default"])(q$jscomp$0))},"p.e":function(e){throw Error("".concat(atob("UERGSlMuZXhwcmVzczog")).concat(j.getString(e)));}})},g$jscomp$0=function(e$jscomp$0,r,s){return new Promise(function(o,t){var u=new XMLHttpRequest;u.open("GET",e$jscomp$0+"?key=".concat(r).concat(s?"&r=1":""),!0);u.onreadystatechange=
function(){if(4===u.readyState){if(200!==u.status)return t();try{var e=JSON.parse(u.responseText);return e.key?o(e):t()}catch(r$29){return t()}}};u.onerror=function(){return t()};u.send()})},y=function(){var e$jscomp$1=(0,r$jscomp$1["default"])(t$jscomp$0["default"].mark(function e$jscomp$0(r,s){return t$jscomp$0["default"].wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,g$jscomp$0("https://auth.pdfjs.express",r,s);case 3:return e.abrupt("return",e.sent);case 6:return e.prev=
6,e.t0=e["catch"](0),e.prev=8,e.next=11,g$jscomp$0("https://mwmnianj8f.execute-api.us-east-1.amazonaws.com/production",r,s);case 11:return e.abrupt("return",e.sent);case 14:return e.prev=14,e.t1=e["catch"](8),e.abrupt("return",{key:""});case 17:case "end":return e.stop()}},e$jscomp$0,null,[[0,6],[8,14]])}));return function(r,s){return e$jscomp$1.apply(this,arguments)}}(),b=function(e){for(var r,s=arguments.length,o=Array(1<s?s-1:0),t=1;t<s;t++)o[t-1]=arguments[t];return(r=d)[e].apply(r,o)},h={r:function(e){for(var r$jscomp$0=
arguments.length,s=Array(1<r$jscomp$0?r$jscomp$0-1:0),o=1;o<r$jscomp$0;o++)s[o-1]=arguments[o];r$jscomp$0=function(){p$jscomp$0=[e].concat(s);var r=e.getContext("2d").getImageData(0,0,e.width,e.height).data;l.set(r);b("r",i$jscomp$0,e.width,e.height)};window.requestAnimationFrame?window.requestAnimationFrame(r$jscomp$0):setTimeout(r$jscomp$0,0)},dC:function(){for(var e=arguments.length,r=Array(e),s=0;s<e;s++)r[s]=arguments[s];q$jscomp$0=r;b("dC")}},v$jscomp$0=function(){var e$jscomp$2=(0,r$jscomp$1["default"])(t$jscomp$0["default"].mark(function e$jscomp$1(r,
s$jscomp$0){var o,u,i;return t$jscomp$0["default"].wrap(function(e$jscomp$0){for(;;)switch(e$jscomp$0.prev=e$jscomp$0.next){case 0:return o=s$jscomp$0?".view-only":"",e$jscomp$0.prev=1,u=f$jscomp$0(s$jscomp$0),window.abort=function(){},window.now=Date.now,window.asmMod={},i=s$jscomp$0?"index.view-only":"index",Object.keys(u[i]).forEach(function(e){window[e.replace(".","_")]=u[i][e]}),e$jscomp$0.next=10,new Promise(function(e){var s=document.createElement("script");s.onload=e;s.src="".concat(r,"pdfjsexpress").concat(o,
".asm.js");window.document.body.appendChild(s)});case 10:return module=window.asmMod,e$jscomp$0.abrupt("return",n$jscomp$1.instantiateASM(module,u));case 14:throw e$jscomp$0.prev=14,e$jscomp$0.t0=e$jscomp$0["catch"](1),Error(atob("cGRmanNleHByZXNzIGNvdWxkIG5vdCBiZSBsb2FkZWQu"));case 17:case "end":return e$jscomp$0.stop()}},e$jscomp$1,null,[[1,14]])}));return function(r,s){return e$jscomp$2.apply(this,arguments)}}(),x$jscomp$0=function(){var s$jscomp$0=(0,r$jscomp$1["default"])(t$jscomp$0["default"].mark(function r$jscomp$0(s,
o){var u,i;return t$jscomp$0["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if("object"!==("undefined"==typeof WebAssembly?"undefined":(0,e$jscomp$3["default"])(WebAssembly))){r.next=11;break}return r.prev=1,u=o?".view-only":"",r.next=5,n$jscomp$1.instantiateStreaming(fetch("".concat(s,"pdfjsexpress").concat(u,".wasm")),f$jscomp$0(o));case 5:return i=r.sent,r.abrupt("return",i);case 9:r.prev=9,r.t0=r["catch"](1);case 11:return r.abrupt("return",v$jscomp$0(s,o));case 12:case "end":return r.stop()}},
r$jscomp$0,null,[[1,9]])}));return function(e,r){return s$jscomp$0.apply(this,arguments)}}();module.exports=function(e$jscomp$0){var s$jscomp$1=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"/",o=2<arguments.length?arguments[2]:void 0;return new Promise(function(u,n$jscomp$0){return d?u(h):(e$jscomp$0||(e$jscomp$0=""),o&&""===e$jscomp$0.trim()?n$jscomp$0(atob("QSBsaWNlbnNlIGtleSBpcyByZXF1aXJlZCB0byB1c2UgdGhlIHZpZXcgb25seSBidWlsZCBvZiBQREYuanMgRXhwcmVzcy4gR2V0IHlvdXIgZnJlZSBsaWNlbnNlIGtleSBhdCBodHRwczovL3BkZmpzLmV4cHJlc3MvcHJvZmlsZSAoYWNjb3VudCByZXF1aXJlZCk=")):
(s$jscomp$1.endsWith("/")||(s$jscomp$1+="/"),void x$jscomp$0(s$jscomp$1,o).then(function(){var s$jscomp$0=(0,r$jscomp$1["default"])(t$jscomp$0["default"].mark(function r$jscomp$0(s){var n,c,p,q,f,g,w,v,x,k;return t$jscomp$0["default"].wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(m=s,j={getString:s.__getString,makeString:s.__allocString,alloc:s.__alloc,allocArray:s.__allocArray,release:s.__release,retain:s.__retain,getArray:s.__getArray},n=j.makeString(e$jscomp$0),d=new s.I(n),c=!1,!b("nv")){r.next=
25;break}if(""!==e$jscomp$0){r.next=11;break}r.t0={};r.next=14;break;case 11:return r.next=13,y(e$jscomp$0,o);case 13:r.t0=r.sent;case 14:p=r.t0;q=p.key;f=void 0===q?"":q;g=p.licensedTo;w=void 0===g?"":g;v=j.makeString(f);x=j.makeString(w);b("vs",v);b("lTk",x);r.next=27;break;case 25:k=b("vo"),c=!!k;case 27:i$jscomp$0=b("createBuffer",2E8),l=new Uint8ClampedArray(m.memory.buffer,i$jscomp$0,2E8),u({"interface":h,io:c});case 30:case "end":return r.stop()}},r$jscomp$0)}));return function(e){return s$jscomp$0.apply(this,
arguments)}}())["catch"](function(e){n$jscomp$0(e)})))})}},{"@babel/runtime/helpers/typeof":"b9XL","@babel/runtime/helpers/asyncToGenerator":"agGE","@babel/runtime/helpers/defineProperty":"IxO8","@babel/runtime/helpers/toConsumableArray":"Fhqp","core-js/modules/es6.array.copy-within":"tWTB","core-js/modules/es6.array.fill":"hUQ6","core-js/modules/es6.array.find":"Qppk","core-js/modules/es6.array.find-index":"7sVm","core-js/modules/es6.array.from":"RRcs","core-js/modules/es7.array.includes":"TLss",
"core-js/modules/es6.array.iterator":"6w+v","core-js/modules/es6.array.of":"RB6b","core-js/modules/es6.array.species":"smn3","core-js/modules/es6.date.to-primitive":"jQnQ","core-js/modules/es6.function.has-instance":"a7bX","core-js/modules/es6.function.name":"N3yi","core-js/modules/es6.map":"ioKM","core-js/modules/es6.math.acosh":"py3/","core-js/modules/es6.math.asinh":"ob11","core-js/modules/es6.math.atanh":"iUik","core-js/modules/es6.math.cbrt":"YRuK","core-js/modules/es6.math.clz32":"R2Qc","core-js/modules/es6.math.cosh":"nEse",
"core-js/modules/es6.math.expm1":"AmoX","core-js/modules/es6.math.fround":"vmlq","core-js/modules/es6.math.hypot":"kLut","core-js/modules/es6.math.imul":"A8J8","core-js/modules/es6.math.log1p":"qtpC","core-js/modules/es6.math.log10":"VUW8","core-js/modules/es6.math.log2":"1Jo9","core-js/modules/es6.math.sign":"mZl9","core-js/modules/es6.math.sinh":"m0zb","core-js/modules/es6.math.tanh":"Fnqw","core-js/modules/es6.math.trunc":"tiOR","core-js/modules/es6.number.constructor":"kRGG","core-js/modules/es6.number.epsilon":"DzYy",
"core-js/modules/es6.number.is-finite":"FuY7","core-js/modules/es6.number.is-integer":"pwRL","core-js/modules/es6.number.is-nan":"SsgJ","core-js/modules/es6.number.is-safe-integer":"5qVI","core-js/modules/es6.number.max-safe-integer":"4shx","core-js/modules/es6.number.min-safe-integer":"+ifB","core-js/modules/es6.number.parse-float":"yjyf","core-js/modules/es6.number.parse-int":"Guno","core-js/modules/es6.object.assign":"K3/J","core-js/modules/es7.object.define-getter":"guoQ","core-js/modules/es7.object.define-setter":"HMp9",
"core-js/modules/es7.object.entries":"gxEP","core-js/modules/es6.object.freeze":"EO7q","core-js/modules/es6.object.get-own-property-descriptor":"nIty","core-js/modules/es7.object.get-own-property-descriptors":"BQD8","core-js/modules/es6.object.get-own-property-names":"i23/","core-js/modules/es6.object.get-prototype-of":"ud3u","core-js/modules/es7.object.lookup-getter":"HB2g","core-js/modules/es7.object.lookup-setter":"QF5J","core-js/modules/es6.object.prevent-extensions":"3llM","core-js/modules/es6.object.is":"MlqR",
"core-js/modules/es6.object.is-frozen":"Z1rp","core-js/modules/es6.object.is-sealed":"Fckj","core-js/modules/es6.object.is-extensible":"1EYb","core-js/modules/es6.object.keys":"m9aB","core-js/modules/es6.object.seal":"+4GY","core-js/modules/es7.object.values":"Ltmz","core-js/modules/es6.promise":"Pjta","core-js/modules/es7.promise.finally":"l1j0","core-js/modules/es6.reflect.apply":"F0Xu","core-js/modules/es6.reflect.construct":"4JlF","core-js/modules/es6.reflect.define-property":"S841","core-js/modules/es6.reflect.delete-property":"JRlJ",
"core-js/modules/es6.reflect.get":"kv8Z","core-js/modules/es6.reflect.get-own-property-descriptor":"zj1X","core-js/modules/es6.reflect.get-prototype-of":"d0aC","core-js/modules/es6.reflect.has":"OWTq","core-js/modules/es6.reflect.is-extensible":"deHu","core-js/modules/es6.reflect.own-keys":"e6SV","core-js/modules/es6.reflect.prevent-extensions":"BmyK","core-js/modules/es6.reflect.set":"K46i","core-js/modules/es6.reflect.set-prototype-of":"L5z5","core-js/modules/es6.regexp.constructor":"+05B","core-js/modules/es6.regexp.flags":"pDhD",
"core-js/modules/es6.regexp.match":"RTfC","core-js/modules/es6.regexp.replace":"KGao","core-js/modules/es6.regexp.split":"a/o/","core-js/modules/es6.regexp.search":"zOab","core-js/modules/es6.regexp.to-string":"iflU","core-js/modules/es6.set":"coyu","core-js/modules/es6.symbol":"uVn9","core-js/modules/es7.symbol.async-iterator":"DlMC","core-js/modules/es6.string.anchor":"63US","core-js/modules/es6.string.big":"c1D0","core-js/modules/es6.string.blink":"Ee86","core-js/modules/es6.string.bold":"ry39",
"core-js/modules/es6.string.code-point-at":"zR9y","core-js/modules/es6.string.ends-with":"zRn7","core-js/modules/es6.string.fixed":"AHLq","core-js/modules/es6.string.fontcolor":"H7V0","core-js/modules/es6.string.fontsize":"Dx83","core-js/modules/es6.string.from-code-point":"xSM3","core-js/modules/es6.string.includes":"fH7p","core-js/modules/es6.string.italics":"fRhg","core-js/modules/es6.string.iterator":"tbKg","core-js/modules/es6.string.link":"1Aaz","core-js/modules/es7.string.pad-start":"9SWN",
"core-js/modules/es7.string.pad-end":"n20m","core-js/modules/es6.string.raw":"t2/9","core-js/modules/es6.string.repeat":"C85R","core-js/modules/es6.string.small":"qBr3","core-js/modules/es6.string.starts-with":"w2SA","core-js/modules/es6.string.strike":"eNyu","core-js/modules/es6.string.sub":"BVLK","core-js/modules/es6.string.sup":"kMsL","core-js/modules/es6.typed.array-buffer":"4NJ0","core-js/modules/es6.typed.int8-array":"wqM+","core-js/modules/es6.typed.uint8-array":"QTtY","core-js/modules/es6.typed.uint8-clamped-array":"Kqgs",
"core-js/modules/es6.typed.int16-array":"fEGw","core-js/modules/es6.typed.uint16-array":"xyd6","core-js/modules/es6.typed.int32-array":"hIko","core-js/modules/es6.typed.uint32-array":"tNPN","core-js/modules/es6.typed.float32-array":"/wis","core-js/modules/es6.typed.float64-array":"9mbT","core-js/modules/es6.weak-map":"D6DP","core-js/modules/es6.weak-set":"bRUR","core-js/modules/es7.array.flat-map":"I8vV","core-js/modules/web.timers":"OTsy","core-js/modules/web.immediate":"5hZL","core-js/modules/web.dom.iterable":"v6Aj",
"regenerator-runtime/runtime":"QVnC","@babel/runtime/regenerator":"PMvg","assemblyscript/lib/loader":"Z6v7","./polyfill":"ctdA"}]},{},["xoC2"],null)},function(module,__webpack_exports__,__webpack_require__){function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(JSCompiler_temp=null==arr?null:"undefined"!==typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"],null==JSCompiler_temp)JSCompiler_temp=void 0;else{var _arr=[],_n=!0,_d=!1,_s;try{for(JSCompiler_temp=
JSCompiler_temp.call(arr);!(_n=(_s=JSCompiler_temp.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0;var _e=err}finally{try{if(!_n&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(_d)throw _e;}}JSCompiler_temp=_arr}if(!(_s=JSCompiler_temp))a:{if(arr){if("string"===typeof arr){_s=_arrayLikeToArray(arr,i);break a}_s=Object.prototype.toString.call(arr).slice(8,-1);"Object"===_s&&arr.constructor&&(_s=arr.constructor.name);if("Map"===_s||"Set"===_s){_s=
Array.from(arr);break a}if("Arguments"===_s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_s)){_s=_arrayLikeToArray(arr,i);break a}}_s=void 0}if(!(arr=_s))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}var logger__WEBPACK_IMPORTED_MODULE_0__=
__webpack_require__(0),exports=window;module=exports.Core;var PageRotation=module.PageRotation;module=module.getCanvasMultiplier;var MULTIPLIER=module(),PageInfo=exports.Core.PageInfo;module=function(options){PageInfo.call(this,options.defaultViewport.width,options.defaultViewport.height);var defaultViewport=options.defaultViewport;this.id=options.id;this.renderingId="page".concat(this.id);this.pdfPage=null;this.setFromPageData({width:options.defaultViewport.width,height:options.defaultViewport.height,
matrix:options.matrix,rotation:defaultViewport.rotation,id:this.renderingId,pageNum:this.id});this.text=null;this.rotation=defaultViewport.rotation;this._rotation=0;this.matrix=options.matrix;this.scale=options.scale||1;this.viewport=defaultViewport;this.pdfPageRotate=defaultViewport.rotation;this.enableWebGL=options.enableWebGL||!1;this.renderInteractiveForms=options.renderInteractiveForms||!1};module.prototype=Object.create(PageInfo.prototype);Object.assign(module.prototype,{setPdfPage:function(pdfPage){this.pdfPage=
pdfPage;this.pdfPageRotate=pdfPage.rotate;this.viewport=pdfPage.getViewport({scale:this.scale*MULTIPLIER,rotation:(this._rotation+this.pdfPageRotate)%4*90});this.stats=pdfPage.stats},destroy:function(){this.pdfPage&&this.pdfPage.cleanup()},getTransform:function(_ref){var rotation=_ref.rotation,viewPortWidth=this.viewport.viewBox[2],viewPortHeight=this.viewport.viewBox[3],zoom=this.viewport.scale,_renderRect$rect=_slicedToArray(_ref.renderRect.rect,4);_ref=_renderRect$rect[0];var y1=_renderRect$rect[1],
x2=_renderRect$rect[2];_renderRect$rect=_renderRect$rect[3];var transform=[1,0,0,1];rotation===PageRotation.E_0?(transform.push(-Math.abs(_ref*zoom)),transform.push(-Math.abs(y1*zoom))):rotation===PageRotation.E_90?(transform.push(-Math.abs((viewPortHeight-_renderRect$rect)*zoom)),transform.push(-Math.abs(_ref*zoom))):rotation===PageRotation.E_180?(transform.push(-Math.abs((viewPortWidth-x2)*zoom)),transform.push(-Math.abs((viewPortHeight-_renderRect$rect)*zoom))):rotation===PageRotation.E_270&&(transform.push(-Math.abs(y1*
zoom)),transform.push(-Math.abs((viewPortWidth-x2)*zoom)));return transform},paintOnCanvas:function(_ref2){var multiplier=_ref2.multiplier,canvasNum=_ref2.canvasNum,options=_ref2.options,scale=options.getZoom();_ref2=options.getPageRotation();var renderRect=options.renderRect,pageTranslation=options.getPageTransform(),pageCanvas=options.pageCanvas;this.scale=scale||this.scale;"undefined"!==typeof _ref2&&(this._rotation=_ref2%4*90);this.viewport=this.viewport.clone({scale:this.scale*multiplier,rotation:(this._rotation+
this.pdfPageRotate)%360});var renderCapability=createPromiseCapability();options={promise:renderCapability.promise,onRenderContinue:function(cont){cont()},cancel:function(){renderTask.cancel()}};var canvas=exports.Core.getCanvasManager().setUpCanvas(this,scale,_ref2,pageTranslation,canvasNum,renderRect,pageCanvas).canvas;canvas.setAttribute("hidden","hidden");var isCanvasHidden=!0,showCanvas=function(){isCanvasHidden&&(canvas.removeAttribute("hidden"),isCanvasHidden=!1)};canvasNum=canvas.getContext("2d",
{alpha:!1});pageCanvas=_ref2===PageRotation.E_90||_ref2===PageRotation.E_270;if("undefined"===typeof renderRect)pageTranslation=(pageCanvas?this.height:this.width)*scale,scale*=pageCanvas?this.width:this.height;else{pageTranslation=_slicedToArray(renderRect.rect,4);var x1=pageTranslation[0],y1=pageTranslation[1],x2=pageTranslation[2],y2=pageTranslation[3];pageTranslation=(pageCanvas?y2-y1:x2-x1)*scale;scale*=pageCanvas?x2-x1:y2-y1}pageTranslation=Math.round(pageTranslation);scale=Math.round(scale);
scale=Math.floor(scale*multiplier);canvas.width=Math.floor(pageTranslation*multiplier)||1;canvas.height=scale||1;multiplier={canvasContext:canvasNum,viewport:this.viewport,enableWebGL:this.enableWebGL,renderInteractiveForms:this.renderInteractiveForms};renderRect&&(_ref2=this.getTransform({rotation:_ref2,renderRect:renderRect}),multiplier.transform=_ref2);var renderTask=this.pdfPage.render(multiplier);renderTask.promise.then(function(){showCanvas();renderCapability.resolve(canvas)},function(error){showCanvas();
renderCapability.reject(error);Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)(canvas)});return options}});__webpack_exports__.a=module},function(module,__webpack_exports__,__webpack_require__){function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function");}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=
!0;"value"in descriptor&&(descriptor.writable=!0);Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){protoProps&&_defineProperties(Constructor.prototype,protoProps);staticProps&&_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:!1});return Constructor}var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),getCanvasMultiplier=window.Core.getCanvasMultiplier;module=function(){function Line(opts){_classCallCheck(this,
Line);var item=opts.item,text=item.str,transform=item.transform,x=transform[4],y=transform[5],width=item.width;transform=transform[0];y=opts.pageMatrix.mult({x:x,y:y});x=this.parseNum(y.x);y=this.parseNum(y.y);this._topOffset=.15;this._bottomOffset=.25;item=[item.transform[0],item.transform[1],item.transform[2],item.transform[3],x,y];var rightX=this.parseNum(x+width),top=this.parseNum(y-transform);this.leftX=x;this.rightX=rightX;this.top=top;this.bottom=y;this.text=text;this._width=width;this._height=
transform;this._font=opts.font;this.quads=[];this._textMatrix=item.concat();this._textLineMatrix=item.concat()}_createClass(Line,[{key:"parse",value:function(){var _this=this,isThereSpace=!1;/\s/.test(this.text)&&(isThereSpace=!0);var spaceIndexes=[],fontMatrix=this._font.fontMatrix?this._font.fontMatrix:[.001],unicodeCache={},glyphs=this.text.split("").map(function(_char,index){_char=new Glyph({"char":_char,cMap:_this._font.cMap,widths:_this._font.widths,toUnicode:_this._font.toUnicode,fontMatrix:fontMatrix,
lineHeight:_this._height,font:_this._font,getIndexFromCharacter:function(_char2){if(_this._font.toUnicode&&_this._font.toUnicode._map){var cachedResult=unicodeCache[_char2];if(null!==cachedResult&&void 0!==cachedResult)return cachedResult;cachedResult=_this._font.toUnicode._map.indexOf(_char2);return unicodeCache[_char2]=cachedResult}return null}});isThereSpace?!_char.isSpace||null!=_char.width&&0!==_char.width?!_char.isSpace&&"number"===typeof _char.unicode&&isNaN(_char.charLength)?_char.setCharLength(0):
_char.isSpace||_char.unicode||!isNaN(_char.charLength)||_char.setCharLength(_this._width/_this.text.length):(_char.setCharLength(0),spaceIndexes.push(index)):isThereSpace||_char.isSpace||"number"!==typeof _char.unicode||0!==_char.charLength||_char.setCharLength(_this._width/_this.text.length);_this._textMatrix[4]=_char.charLength+0*_this._textMatrix[2]+_this._textMatrix[4];return _char});if(isThereSpace){var calculatedWidth=(this.leftX+this._width-this._textMatrix[4])/(this.text.split(" ").length-
1);if(-Infinity===calculatedWidth||Infinity===calculatedWidth||isNaN(calculatedWidth))calculatedWidth=0;for(var i=0,len=spaceIndexes.length;i<len;i++)glyphs[spaceIndexes[i]].setLengthIfZero(calculatedWidth)}var transform=this._textLineMatrix.concat();calculatedWidth=glyphs.map(function(glyph){var leftX=transform[4],rightX=leftX+glyph.charLength,top=_this.top+(_this.bottom-_this.top)*_this._topOffset,bottom=_this.bottom+(_this.bottom-_this.top)*_this._bottomOffset;transform[4]=glyph.charLength+0*transform[2]+
transform[4];return[leftX,bottom,rightX,bottom,rightX,top,leftX,top]});this.glyphs=glyphs;this.quads=calculatedWidth}},{key:"getQuads",value:function(){return this.quads}},{key:"parseNum",value:function(num){return parseFloat(num.toFixed(4))}},{key:"addNewline",value:function(){this.text.endsWith("\n")||(this.text+="\n")}},{key:"_drawRect",value:function(ctx,scale){if(ctx){var mul=getCanvasMultiplier();scale*=mul;ctx.rect(this.leftX*scale,this.top*scale,this._width*scale,(this.bottom-this.top)*scale);
ctx.stroke()}}},{key:"toString",value:function(){Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)('"'.concat(this.text,'"'));Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("glyphs",this.glyphs);Object(logger__WEBPACK_IMPORTED_MODULE_0__.e)("-----------------------------")}}]);return Line}();var Glyph=function(){function Glyph(opts){var _this2=this;_classCallCheck(this,Glyph);var cMap=opts.cMap,fontMatrix=opts.fontMatrix,lineHeight=opts.lineHeight,widths=opts.widths,toUnicode=opts.toUnicode,getIndexOfCharacter=
opts.getIndexFromCharacter;this["char"]=opts["char"];cMap?toUnicode._map&&toUnicode._map.includes(this["char"])?this.unicode=toUnicode._map.findIndex(function(_char3){return _char3===_this2["char"]}):this.unicode=this["char"].charCodeAt(0):this.unicode=this["char"].charCodeAt(0);this["char"]===String.fromCharCode(10)?(this.width=0,this.unicode=this["char"].charCodeAt(0),this.charLength=0):32===this["char"].charCodeAt(0)?this.width=widths[this.unicode]:(this.width=widths[this.unicode],null==this.width&&
toUnicode._map&&toUnicode._map.includes(this["char"])?(this.unicode=toUnicode._map.findIndex(function(_char4){return _char4===_this2["char"]}),this.width=widths[this.unicode],null==this.width&&(this.width=widths[getIndexOfCharacter(this["char"])]||opts.font.defaultWidth)):null==this.width&&(this.width=opts.font.defaultWidth));if(!this.isSpace||null!=this.width&&0!==this.width)opts=0,opts=this.width*fontMatrix[0],this.charLength=lineHeight*opts}_createClass(Glyph,[{key:"isSpace",get:function(){return 32===
this["char"].charCodeAt(0)}},{key:"setCharLength",value:function(charLength){this.charLength=charLength}},{key:"setLengthIfZero",value:function(charLength){this.charLength&&0!==this.charLength||(this.charLength=charLength)}}]);return Glyph}();__webpack_exports__.a=module},function(module$jscomp$0,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getDefaultBackendType});var logger__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0),_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__=
__webpack_require__(103),_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(10),_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(31);__webpack_require__(59);var exports="undefined"===typeof window?self:window,defaultBackendPromise,wasmThreadSupported=function(){if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.h){if(84>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.d)return!1}else if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.g){if(87>
_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.c)return!1}else if(!_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f||_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.i||exports.navigator.userAgent.match(/WOW64/))return!1;if(!1===self.crossOriginIsolated)return Object(logger__WEBPACK_IMPORTED_MODULE_0__.f)("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
exports&&"WebAssembly"in exports&&"Atomics"in exports))return!1;try{if("object"===typeof WebAssembly&&"function"===typeof WebAssembly.instantiate){var module=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(module instanceof WebAssembly.Module&&new WebAssembly.Instance(module)instanceof WebAssembly.Instance)return(new WebAssembly.Memory({initial:1,maximum:1,shared:!0})).buffer instanceof exports.SharedArrayBuffer}}catch(_a){}return!1},getDefaultBackendType=function(){defaultBackendPromise||
(defaultBackendPromise=new Promise(function(resolve){if(exports.utils.isJSWorker&&exports.jsworker)resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.b);else if(exports.utils.isPdfjs)resolve(void 0);else if(wasmThreadSupported())if(_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.f&&86>_util_helpers_browserHelper__WEBPACK_IMPORTED_MODULE_2__.a)try{var testWorkerPath=Object(_PDFWorkerInfo__WEBPACK_IMPORTED_MODULE_1__.a)()+"simple_wasm/MemGrow.js",script_1=self.document.createElement("script");
self.Module={onRuntimeInitialized:function(){self.Module._GrowMemory()?resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.c):resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.d);var runningWorkers=self.Module.PThread.runningWorkers;runningWorkers.length&&runningWorkers[0].terminate();script_1.parentNode.removeChild(script_1)}};script_1.type="text/javascript";script_1.src=testWorkerPath;self.document.getElementsByTagName("head")[0].appendChild(script_1)}catch(_a){resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.d)}else resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.c);
else resolve(_webviewer_src_backendTypes__WEBPACK_IMPORTED_MODULE_3__.d)}));return defaultBackendPromise}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return getPDFResourcePath});__webpack_require__(0);module="undefined"===typeof window?self:window;module.Core=module.Core||{};var Core=module.Core,getPDFResourcePath=function(){return"".concat(Core.getWorkerPath(),"pdf/")}},function(module,__webpack_exports__,__webpack_require__){module=
function(){function XMLParser(xmlstring){if("string"!==typeof xmlstring)xmlstring={documentElement:xmlstring};else{var parser=new DOMParser;xmlstring=parser.parseFromString(xmlstring,"text/xml")}this.current=xmlstring.documentElement;this.next=this.current.nextSibling;this.diff=this.depth=0}XMLParser.prototype.__setnext=function(){for(;this.next&&this.next.nodeType!==Node.ELEMENT_NODE;)this.next=this.next.nextSibling};XMLParser.prototype.advance=function(){this.__setnext();return this.next?(this.current=
this.next,this.next=this.current.nextSibling,!0):!1};XMLParser.prototype.getDepth=function(){return this.depth};XMLParser.prototype.getElementName=function(){return this.current.tagName};XMLParser.prototype.increaseDepth=function(){++this.depth;this.next=this.current.firstChild;this.__setnext();this.next||++this.diff};XMLParser.prototype.decreaseDepth=function(){--this.depth;0<this.diff?--this.diff:this.current=this.current.parentNode;this.current&&(this.next=this.current.nextSibling)};XMLParser.prototype.isEmptyElement=
function(){return!this.current.hasChildNodes()};XMLParser.prototype.findAttribute=function(attr){return this.current.getAttribute(attr)};XMLParser.prototype.findNamespaceAttribute=function(namespace,name){return this.current.getAttributeNS(namespace,name)};XMLParser.prototype.getCharData=function(){return this.current.textContent};XMLParser.prototype.getElementAttributes=function(){return this.current.attributes};return XMLParser}();__webpack_exports__.a=module},function(module,__webpack_exports__,
__webpack_require__){(function(setImmediate){function getLoadCanvasOptions(pageNumber,zoom,pageRotation,drawComplete,drawProgressive,canvasNum){var options={getZoom:function(){return 1},getPageRotation:function(){return _util_constants__WEBPACK_IMPORTED_MODULE_2__.b.E_0},finishedLoading:function(){return!0},acquireResources:function(){return!0},resourcesLoaded:function(){return!0},getPageTransform:function(){},drawProgressive:function(){},drawComplete:function(){},onError:function(){}};Object(lodash__WEBPACK_IMPORTED_MODULE_1__.isObject)(pageNumber)?
(options=Object.assign(options,pageNumber),options.zoom&&(options.getZoom=function(){return options.zoom}),options.pageRotation&&(options.getPageRotation=function(){return options.pageRotation})):options=Object.assign(options,{pageNumber:pageNumber,getZoom:function(){return zoom},getPageRotation:function(){return pageRotation},drawProgressive:drawProgressive||options.drawProgressive,drawComplete:drawComplete||options.drawComplete,canvasNum:canvasNum});return options}__webpack_require__.d(__webpack_exports__,
"a",function(){return getLoadCanvasOptions});__webpack_require__(60);var lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);var _util_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8);__webpack_require__(107)}).call(this,__webpack_require__(70).setImmediate)},function(module,__webpack_exports__,__webpack_require__){__webpack_exports__.a=function(src){var params={};decodeURIComponent(src.slice(1)).split("&").forEach(function(val){val=
val.split("=",2);params[val[0]]=val[1]});return params}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,"a",function(){return supportsImageDataConstructor});__webpack_require__(3);__webpack_require__(8);module=__webpack_require__(2);__webpack_require__.n(module);__webpack_require__(108);var supportsImageDataConstructor=function(){try{return new ImageData(1,1),!0}catch(e){return!1}}},function(module,__webpack_exports__,__webpack_require__){function _toConsumableArray(arr){var JSCompiler_temp=
Array.isArray(arr)?_arrayLikeToArray(arr):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=arr[Symbol.iterator]||null!=arr["@@iterator"]?Array.from(arr):void 0);if(!JSCompiler_temp)a:{if(arr){if("string"===typeof arr){JSCompiler_temp=_arrayLikeToArray(arr,void 0);break a}JSCompiler_temp=Object.prototype.toString.call(arr).slice(8,-1);"Object"===JSCompiler_temp&&arr.constructor&&(JSCompiler_temp=arr.constructor.name);if("Map"===JSCompiler_temp||"Set"===JSCompiler_temp){JSCompiler_temp=
Array.from(arr);break a}if("Arguments"===JSCompiler_temp||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(JSCompiler_temp)){JSCompiler_temp=_arrayLikeToArray(arr,void 0);break a}}JSCompiler_temp=void 0}if(!(arr=JSCompiler_temp))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<
len;i++)arr2[i]=arr[i];return arr2}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);var _Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(27),_util_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(109),_util_constants__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8);if(!(module=!Object.defineProperty)){try{Object.defineProperty({},"x",{});var JSCompiler_inline_result=!0}catch(e){JSCompiler_inline_result=
!1}module=!JSCompiler_inline_result}module&&(Object.defineProperty=function(o,prop,desc){if(o!==Object(o))throw new TypeError("Object.defineProperty called on non-object");Object.prototype.__defineGetter__&&"get"in desc&&Object.prototype.__defineGetter__.call(o,prop,desc.get);Object.prototype.__defineSetter__&&"set"in desc&&Object.prototype.__defineSetter__.call(o,prop,desc.set);"value"in desc&&(o[prop]=desc.value);return o});"function"!==typeof Object.defineProperties&&(Object.defineProperties=function(o,
properties){if(o!==Object(o))throw new TypeError("Object.defineProperties called on non-object");Object.keys(properties).forEach(function(name){Object.prototype.hasOwnProperty.call(properties,name)&&Object.defineProperty(o,name,properties[name])});return o});var textWidthCanvas,annotTypeSubjectMap={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"},annotationSubjectHandler=function(type){return annotTypeSubjectMap[type]||"Unknown"},tempCanvas=document.createElement("canvas"),tempCtx=tempCanvas.getContext("2d"),Utilities={LAST_ZOOM:1,getAnnotationSubject:function(type){return annotationSubjectHandler(type)},setAnnotationSubjectHandler:function(func){annotationSubjectHandler=
func},determineRequiredPages:function(pageIndex,numPages){var pagesToLoad=[];numPages=Math.min(pageIndex+1,numPages-1);for(pageIndex=Math.max(0,pageIndex-1);pageIndex<=numPages;++pageIndex)pagesToLoad.push(pageIndex);return pagesToLoad.map(function(index){return index+1})},customUnescapeXMLString:function(str){return null===str?"":0<str.length?str.replace(/&[^;]*;/g,function(match){switch(match.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===
match.charAt(2)?String.fromCharCode(parseInt(match.substring(3,match.length-1),16)):String.fromCharCode(parseInt(match.substring(2,match.length-1),10))}return match}):""},getDateFromInput:function(value){return!value||value instanceof Date?value:new Date(value)},guidGenerator:function(){var S4=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return"".concat(S4()+S4(),"-").concat(S4(),"-").concat(S4(),"-").concat(S4(),"-").concat(S4()).concat(S4()).concat(S4())},measureText:function(txt,
fontSize,fontName,fontWeight){if(!txt||0===txt.length)return{width:0,height:0};var tag=document.getElementById("text-width-tester");"number"===typeof fontSize&&(fontSize+="px");txt=txt.replaceAll("\n","<br>&nbsp;").replaceAll(" ","&nbsp;");var heightOffset=_toConsumableArray(txt).some(function(_char){return 127<_char.charCodeAt(0)})?2:0;if(tag)tag.style.fontFamily=fontName,tag.style.fontSize=fontSize,tag.style.fontWeight=fontWeight,tag.innerHTML=txt;else{var style="display:none;";Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isString)(fontName)&&
(style+="font-family:".concat(fontName,";"));Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(fontSize)||(style+="font-size:".concat(fontSize,";"));Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(fontWeight)||(style+="font-weight:".concat(fontWeight,";"));tag=document.createElement("span");tag.id="text-width-tester";tag.cssText=style;tag.innerHTML=txt;document.getElementsByTagName("body")[0].appendChild(tag)}tag.style.display="";txt=tag.getBoundingClientRect();heightOffset={width:Math.floor(txt.width),
height:Math.floor(txt.height)+heightOffset};tag.style.display="none";return heightOffset},getTextWidth:function(text,font){var context=(textWidthCanvas||(textWidthCanvas=document.createElement("canvas"))).getContext("2d");context.font=font;return context.measureText(text).width},fitMultilineTextToBox:function(text,textBox,height,getLineHeight){if(textBox){textBox.style.fontSize="".concat(height,"px");text=0;for(var i;text<=height;)i=Math.floor((text+height)/2),textBox.style.overflow="hidden",textBox.offsetHeight,
textBox.style.fontSize="".concat(i,"px"),getLineHeight&&(textBox.style.lineHeight=getLineHeight(i)),textBox.style.overflow="auto",textBox.scrollHeight>Math.ceil(textBox.offsetHeight)?height=i-1:text=i+1;textBox.scrollHeight>Math.ceil(textBox.offsetHeight)&&(textBox.style.fontSize="".concat(parseFloat(textBox.style.fontSize)-1,"px"));return parseFloat(textBox.style.fontSize)}return height/2},emulateInputEvent:function(element,callback){_util_helpers__WEBPACK_IMPORTED_MODULE_2__.a?element.addEventListener("change",
function(e){callback({change:e.target.value,isFullChange:!0})}):(element.addEventListener("input",function(e){e.change=e.target.value;callback(e)}),"TEXTAREA"!==element.nodeName&&element.addEventListener("keydown",function(e){"Enter"===e.key&&e.target.blur&&"function"===typeof e.target.blur&&e.target.blur()}))},drawArrowHead:function(ctx,arrowEndStartPoint,endPoint,lineThickness){ctx.save();ctx.translate(arrowEndStartPoint.x,arrowEndStartPoint.y);arrowEndStartPoint=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getAngle(arrowEndStartPoint,
endPoint);ctx.rotate(arrowEndStartPoint);ctx.moveTo(0,0);arrowEndStartPoint=5*lineThickness+2;lineThickness=Math.cos(.2*Math.PI)*arrowEndStartPoint;arrowEndStartPoint*=Math.sin(.2*Math.PI);ctx.moveTo(lineThickness,-arrowEndStartPoint);ctx.lineTo(0,0);ctx.lineTo(lineThickness,arrowEndStartPoint);ctx.stroke();ctx.restore()},applyMatrixToScalar:function(matrix,scalar){var pt1=matrix.mult({x:0,y:0});scalar=matrix.mult({x:Number(scalar),y:0});matrix=pt1.x-scalar.x;pt1=pt1.y-scalar.y;return Math.sqrt(matrix*
matrix+pt1*pt1)},drawCloud:function(annot,ctx,path,isCreating){var isInCreatePhase=Object(lodash__WEBPACK_IMPORTED_MODULE_0__.isUndefined)(isCreating)?0<annot._dropAreaSize:isCreating;ctx.beginPath();isCreating=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.clonePolyPath(path);!isInCreatePhase&&_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.polyPathIsOpen(path)&&(isCreating[isCreating.length]={x:isCreating[0].x,y:isCreating[0].y});if(!(!isInCreatePhase&&2>=isCreating.length||isInCreatePhase&&
1>=isCreating.length)){var intensity=annot.Intensity;intensity&&"number"===typeof intensity||(intensity=2);var prettyMuchZero=1/8092,sweepDirection=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getPolyWrapDirection(isCreating);path=1!==Math.round(sweepDirection);var edgeAngle=0,maxCloudSize=6.5*intensity,firstPos=isCreating[0],lastCloudSize=maxCloudSize,firstCloudSize=maxCloudSize,firstEdge={x:isCreating[1].x-isCreating[0].x,y:isCreating[1].y-isCreating[0].y},lastEdge={x:isCreating[0].x-
isCreating[isCreating.length-2].x,y:isCreating[0].y-isCreating[isCreating.length-2].y};intensity=!0;for(var hasFirstPoint=!1,firstEdgeCloudSize=0,firstEdgeDirection,startX,startY,i=0;i<isCreating.length-1;++i){var pos=isCreating[i],nextPos=isCreating[i+1],edge={x:nextPos.x-pos.x,y:nextPos.y-pos.y},length=Math.sqrt(edge.x*edge.x+edge.y*edge.y);if(!(length<=prettyMuchZero)){nextPos={x:edge.x/length,y:edge.y/length};var numClouds=Math.max(Math.floor(length/maxCloudSize),1),cloudSize=length/numClouds;
edgeAngle=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.getAngleFromCoordinates(nextPos.x,nextPos.y);if(!isInCreatePhase&&0===i&&3>=isCreating.length){var firstEdgeLength=Math.sqrt(firstEdge.x*firstEdge.x+firstEdge.y*firstEdge.y);if(firstEdgeLength<maxCloudSize){ctx.arc(isCreating[0].x,isCreating[0].y,firstEdgeLength,0,2*Math.PI);return}if(firstEdgeLength<2*cloudSize){firstEdgeDirection=firstEdgeLength/2;ctx.arc(isCreating[0].x,isCreating[0].y,firstEdgeDirection,0,2*Math.PI);ctx.moveTo(isCreating[1].x+
firstEdgeDirection,isCreating[1].y);ctx.arc(isCreating[1].x,isCreating[1].y,firstEdgeDirection,0,2*Math.PI);ctx.moveTo(isCreating[0].x+firstEdgeDirection,isCreating[0].y);return}ctx.arc(isCreating[0].x,isCreating[0].y,cloudSize/2,0,2*Math.PI);ctx.moveTo(isCreating[1].x+cloudSize/2,isCreating[1].y);ctx.arc(isCreating[1].x,isCreating[1].y,cloudSize/2,0,2*Math.PI);ctx.moveTo(isCreating[0].x+cloudSize/2,isCreating[0].y)}isInCreatePhase&&0===i&&(firstEdgeLength=.25*(lastCloudSize+cloudSize),Utilities.arcTo(isCreating[0].x-
nextPos.x*cloudSize*.5,isCreating[0].y-nextPos.y*cloudSize*.5,ctx,firstEdgeLength,firstEdgeLength,edgeAngle,!1,path,isCreating[0].x+nextPos.x*cloudSize*.5,isCreating[0].y+nextPos.y*cloudSize*.5));0===i&&(firstEdgeCloudSize=cloudSize,firstEdgeDirection={x:nextPos.x,y:nextPos.y});pos.x-=nextPos.x*cloudSize*.5;pos.y-=nextPos.y*cloudSize*.5;firstEdgeLength=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.crossProduct(lastEdge,edge);var c=0;hasFirstPoint||(++c,firstCloudSize=cloudSize,intensity=
0>firstEdgeLength*sweepDirection,pos.x+=nextPos.x*cloudSize,pos.y+=nextPos.y*cloudSize,firstPos=pos,ctx.moveTo(firstPos.x,firstPos.y),startX=firstPos.x,startY=firstPos.y,hasFirstPoint=!0);if(!annot.ArcDrawMode||annot.ArcDrawMode===_util_constants__WEBPACK_IMPORTED_MODULE_3__.d.EQUAL_ARCS){for(lastCloudSize=.25*(lastCloudSize+cloudSize);c<numClouds;++c)pos.x+=nextPos.x*cloudSize,pos.y+=nextPos.y*cloudSize,startY=Utilities.arcTo(startX,startY,ctx,lastCloudSize,lastCloudSize,edgeAngle,0===c&&0>firstEdgeLength*
sweepDirection,path,pos.x,pos.y),startX=startY.startX,startY=startY.startY;lastEdge=edge;lastCloudSize=cloudSize}else if(annot.ArcDrawMode===_util_constants__WEBPACK_IMPORTED_MODULE_3__.d.RANDOM_ARCS)for(edge=length-lastCloudSize,numClouds=_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.createPseudoRandomNumberGenerator(annot.Id);0<edge;)cloudSize=Math.max(20*numClouds(),1),pos.x+=2*nextPos.x*cloudSize,pos.y+=2*nextPos.y*cloudSize,startY=Utilities.arcTo(startX,startY,ctx,cloudSize,cloudSize,
edgeAngle,!1,path,pos.x,pos.y),startX=startY.startX,startY=startY.startY,edge-=2*cloudSize}}hasFirstPoint||(ctx.moveTo(firstPos.x,firstPos.y),startX=firstPos.x,startY=firstPos.y);firstEdgeDirection&&!isInCreatePhase&&(annot=.25*(firstCloudSize+lastCloudSize),Utilities.arcTo(startX,startY,ctx,annot,annot,edgeAngle,intensity,path,isCreating[isCreating.length-1].x+.5*firstEdgeCloudSize*firstEdgeDirection.x,isCreating[isCreating.length-1].y+.5*firstEdgeCloudSize*firstEdgeDirection.y))}},arcTo:function(startX,
startY,ctx,xr,yr,rx,isLargeArc,sweep,endX,endY){var outPoints=[],outOperations=[];_Core_AnnotationMath__WEBPACK_IMPORTED_MODULE_1__.a.Math.arcToCurves(startX,startY,outPoints,outOperations,xr,yr,rx,isLargeArc,sweep,endX,endY);for(yr=xr=0;yr<outOperations.length;++yr)"c"===outOperations[yr]?(ctx.bezierCurveTo(outPoints[xr],outPoints[xr+1],outPoints[xr+2],outPoints[xr+3],outPoints[xr+4],outPoints[xr+5]),startX=outPoints[xr+4],startY=outPoints[xr+5],xr+=6):(ctx.lineTo(outPoints[xr],outPoints[xr+1]),
startX=outPoints[xr],startY=outPoints[xr+1],xr+=2);return{startX:startX,startY:startY}},BlendMode:{padding:1,getPageCanvas:function(annot,options,documentViewer){if(options.overridePageCanvas)return options.overridePageCanvas;annot=annot.PageNumber;options=(documentViewer=documentViewer.getViewerElement())&&documentViewer.querySelector(".canvas".concat(annot));documentViewer&&!options&&(options=documentViewer.querySelector("#hrthumb".concat(annot)))&&(options.isHrThumb=!0);return options},getUnrotatedPageCanvas:function(pageCanvas,
options){options=options.completeRotation;if(options===_util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_0)return pageCanvas;var unrotatedWidth=0===options%2?pageCanvas.width:pageCanvas.height,unrotatedHeight=0===options%2?pageCanvas.height:pageCanvas.width;if(!pageCanvas.isHrThumb){tempCanvas.width=unrotatedWidth;tempCanvas.height=unrotatedHeight;switch(options){case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_90:tempCtx.rotate(-Math.PI/2);tempCtx.translate(-tempCanvas.height,0);break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_180:tempCtx.rotate(Math.PI);
tempCtx.translate(-tempCanvas.width,-tempCanvas.height);break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_270:tempCtx.rotate(Math.PI/2),tempCtx.translate(0,-tempCanvas.width)}options!==_util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_0&&(tempCtx.drawImage(pageCanvas,0,0),pageCanvas=tempCanvas)}return pageCanvas},getSourceCanvasDimension:function(pageCanvas,location,options){var pageInfo=options.pageInfo,zoom=options.zoom||1,completeRotation=options.completeRotation,docPageRotation=options.documentRotation;
options=location.X;var yPoint=location.Y,width=location.Width||1;location=location.Height||1;var topOffset=parseFloat(pageCanvas.style.top)||pageCanvas.topOffset||0,leftOffset=parseFloat(pageCanvas.style.left)||pageCanvas.leftOffset||0,pageCanvasWidth=pageCanvas.style.width?parseFloat(pageCanvas.style.width):pageCanvas.width,scalingFactor=pageCanvas.width/pageCanvasWidth;"IMG"===pageCanvas.nodeName&&(scalingFactor=pageCanvas.naturalWidth/pageInfo.width);zoom*=scalingFactor;pageCanvasWidth=this.padding*
zoom;var topPadding=this.padding*zoom,pageWidth=pageInfo.width,pageHeight=pageInfo.height;0!==docPageRotation%2&&(pageHeight=pageInfo.width,pageWidth=pageInfo.height);if(!pageCanvas.isHrThumb)switch(pageInfo=0===completeRotation%2?pageCanvas.width:pageCanvas.height,pageCanvas=0===completeRotation%2?pageCanvas.height:pageCanvas.width,leftOffset*=scalingFactor,topOffset*=scalingFactor,pageWidth*=zoom,pageHeight*=zoom,completeRotation){case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_90:completeRotation=
topOffset;topOffset=pageHeight-pageCanvas-leftOffset;leftOffset=completeRotation;break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_180:leftOffset=pageWidth-pageInfo-leftOffset;topOffset=pageHeight-pageCanvas-topOffset;break;case _util_constants__WEBPACK_IMPORTED_MODULE_3__.b.E_270:completeRotation=leftOffset,leftOffset=pageWidth-pageInfo-topOffset,topOffset=completeRotation}return{X:options*zoom-leftOffset-pageCanvasWidth,Y:yPoint*zoom-topOffset-topPadding,Width:width*zoom+2*pageCanvasWidth,
Height:location*zoom+2*topPadding}},getDestinationCanvasDimension:function(annotDimensions){return{X:annotDimensions.X-this.padding,Y:annotDimensions.Y-this.padding,Width:(annotDimensions.Width||1)+2*this.padding,Height:(annotDimensions.Height||1)+2*this.padding}},drawPageCanvas:function(ctx,options,pageCanvas,annot){var unrotatedCanvas=this.getUnrotatedPageCanvas(pageCanvas,options);ctx.globalCompositeOperation="destination-over";var locationsToDraw=[],self=this;annot.Quads?annot.Quads.forEach(function(quad){var minX=
Math.min(quad.x1,quad.x2,quad.x3,quad.x4),minY=Math.min(quad.y1,quad.y2,quad.y3,quad.y4);locationsToDraw.push({X:minX,Y:minY,Width:Math.max(quad.x1,quad.x2,quad.x3,quad.x4)-minX,Height:Math.max(quad.y1,quad.y2,quad.y3,quad.y4)-minY})}):locationsToDraw.push(annot);locationsToDraw.forEach(function(location){var sourceDimension=self.getSourceCanvasDimension(pageCanvas,location,options);location=self.getDestinationCanvasDimension(location);ctx.imageSmoothingEnabled=!1;ctx.drawImage(unrotatedCanvas,sourceDimension.X,
sourceDimension.Y,sourceDimension.Width,sourceDimension.Height,location.X,location.Y,location.Width,location.Height)})},drawWithBlendMode:function(annot,ctx,pageMatrix,options,documentViewer){var pageCanvas=this.getPageCanvas(annot,options,documentViewer);if(pageCanvas){if(pageCanvas.style.transform)return;ctx.save();this.drawPageCanvas(ctx,options,pageCanvas,annot,documentViewer);ctx.restore()}ctx.globalCompositeOperation=annot.BlendMode;annot.draw(ctx,pageMatrix,options)},isBlendModeSupported:function(blendMode){if(!blendMode)return!1;
var currentBlendMode=tempCtx.globalCompositeOperation;tempCtx.globalCompositeOperation=blendMode;blendMode=tempCtx.globalCompositeOperation===blendMode;tempCtx.globalCompositeOperation=currentBlendMode;return blendMode}}};(function(exports){exports.Annotations=exports.Annotations||{};exports=exports.Annotations;exports.Utilities=Utilities;return exports.Utilities})(window);__webpack_exports__.a=Utilities},function(module,__webpack_exports__,__webpack_require__){__webpack_require__(88);var _browserHelper__WEBPACK_IMPORTED_MODULE_1__=
__webpack_require__(10);__webpack_require__.d(__webpack_exports__,"a",function(){return _browserHelper__WEBPACK_IMPORTED_MODULE_1__.b});__webpack_require__(89);__webpack_require__(90);__webpack_require__(97)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(111)},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);__webpack_require__(112)},function(module,__webpack_exports__,__webpack_require__){function _toConsumableArray(arr){var JSCompiler_temp=
Array.isArray(arr)?_arrayLikeToArray(arr):void 0;JSCompiler_temp||(JSCompiler_temp="undefined"!==typeof Symbol&&null!=arr[Symbol.iterator]||null!=arr["@@iterator"]?Array.from(arr):void 0);if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr)))throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _slicedToArray(arr,i){var JSCompiler_temp=Array.isArray(arr)?arr:void 0;if(!JSCompiler_temp)if(JSCompiler_temp=
null==arr?null:"undefined"!==typeof Symbol&&arr[Symbol.iterator]||arr["@@iterator"],null==JSCompiler_temp)JSCompiler_temp=void 0;else{var _arr=[],_n=!0,_d=!1,_s;try{for(JSCompiler_temp=JSCompiler_temp.call(arr);!(_n=(_s=JSCompiler_temp.next()).done)&&(_arr.push(_s.value),!i||_arr.length!==i);_n=!0);}catch(err){_d=!0;var _e=err}finally{try{if(!_n&&null!=JSCompiler_temp["return"])JSCompiler_temp["return"]()}finally{if(_d)throw _e;}}JSCompiler_temp=_arr}if(!(arr=JSCompiler_temp||_unsupportedIterableToArray(arr,
i)))throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");return arr}function _unsupportedIterableToArray(o,minLen){if(o){if("string"===typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);"Object"===n&&o.constructor&&(n=o.constructor.name);if("Map"===n||"Set"===n)return Array.from(o);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,
minLen)}}function _arrayLikeToArray(arr,len){if(null==len||len>arr.length)len=arr.length;for(var i=0,arr2=Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}));keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=
1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach(function(key){_defineProperty(target,key,source[key])}):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))})}return target}function _defineProperty(obj,key,value){key in obj?Object.defineProperty(obj,key,{value:value,
enumerable:!0,configurable:!0,writable:!0}):obj[key]=value;return obj}function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg),value=info.value}catch(error){reject(error);
return}info.done?resolve(value):Promise.resolve(value).then(_next,_throw)}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value)}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err)}var gen=fn.apply(self,args);_next(void 0)})}}var lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(98);__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
var logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0),_pdf__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58);__webpack_require__.n(_pdf__WEBPACK_IMPORTED_MODULE_2__);__webpack_require__(150);module=__webpack_require__(99);var _auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(module),_PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(100),_PDFJSTextParser__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(101),_PDFJSAnnotations__WEBPACK_IMPORTED_MODULE_7__=
__webpack_require__(63),_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(40),_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(105),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(11),exports=window;exports.utils=exports.Core.utils||{};exports.utils.isPdfjs=!0;var Annotations=exports.Core.Annotations||{},Actions=exports.Core.Actions||{},isIE11=-1<navigator.userAgent.indexOf("Trident/7.0");
module=exports.Core;var PageRotation=module.PageRotation,Bookmark=module.Bookmark,BaseDocument=module.BaseDocument;__webpack_require__=module.Document;var getHashParameter=module.getHashParameter,getCanvasMultiplier=module.getCanvasMultiplier,interfaceInstance,resolveInterface,loadingInstance=!1,awaitInterface=new Promise(function(resolve){resolveInterface=resolve}),isAnnotationTracking=!1,changeEvents={annotationChanged:"annotationChanged",fieldChanged:"fieldChanged"},id$jscomp$0=1,loadCanvasMap=
{},trackAnnotationEvents=function(){var am=window.documentViewer.getAnnotationManager();isAnnotationTracking||(isAnnotationTracking=!0,am.addEventListener(changeEvents.annotationChanged,function(annots,action){var info=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};try{var imported=info.imported;"add"!==action||imported||annots.forEach(function(annot){switch(!0){case "Polygon"===annot.Subject&&"PolygonCloud"===annot.Intent:var _annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated("PolygonCloud");
break;case annot instanceof window.Annotations.StampAnnotation:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.stampAnnotationCreated();break;case !!annot.IT:var customData=annot.getCustomData("trn-behavior-type");customData=null!==(_annot$ToolName=annot.ToolName)&&void 0!==_annot$ToolName&&_annot$ToolName.includes("Cloudy")?"Could":customData;_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;var JSCompiler_temp_const=_annot$ToolName.annotationCreated,
JSCompiler_temp_const$jscomp$0="".concat;if(customData){var JSCompiler_temp="".concat;customData=customData.charAt(0).toUpperCase()+customData.slice(1);JSCompiler_temp=JSCompiler_temp.call("",customData)}else JSCompiler_temp="";_annot$ToolName=JSCompiler_temp_const.call(_annot$ToolName,JSCompiler_temp_const$jscomp$0.call("",JSCompiler_temp).concat(annot.IT));break;case "Note"===annot.Subject||"Sticky Note"===annot.Subject:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions;JSCompiler_temp_const=
_annot$ToolName.annotationCreated;JSCompiler_temp_const$jscomp$0=annot.Icon;JSCompiler_temp=annot.popupComment;customData=annot.getCustomData("trn-is-count");_annot$ToolName=JSCompiler_temp_const.call(_annot$ToolName,"Comment"===JSCompiler_temp_const$jscomp$0?JSCompiler_temp?"Comment Reply":"Sticky Note Create":customData?"Count Measurement":"Sticky Note");break;default:_annot$ToolName=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.annotationCreated(annot.Subject)}annot.getCustomData("trn-form-field-type")||
_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_annot$ToolName)})}catch(e){}}),am.addEventListener(changeEvents.fieldChanged,function(field){try{var fieldChanged=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.formFieldFilled(field.type);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(fieldChanged)}catch(e){}}),window.instance.addSearchListener(function(searchValue,options,results){try{var searchEvent=_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.searchQuery("DocumentSearch",
results.length);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(searchEvent)}catch(e){}}))},worker;module=function(){BaseDocument.apply(this,arguments);this.bookmarks=[];this.pagesById={};this.textCallbacksLookup={};this.docId=null;this.scale=1;this._pagesRefCache=Object.create(null);this.destinations=null;this._cancelled=!1;this.disableStreaming=window._disableStreaming;var workerPath=exports.Core.getWorkerPath();this.cMapUrl="".concat(workerPath,"pdfjs/cmaps/");this.cMapPacked=!0;loadingInstance||
(loadingInstance=!0,_pdf__WEBPACK_IMPORTED_MODULE_2__.GlobalWorkerOptions.workerSrc="".concat(workerPath,"pdfjs/pdf.worker.js"),worker=new _pdf__WEBPACK_IMPORTED_MODULE_2__.PDFWorker("express-worker"),function(){var _ref=_asyncToGenerator(regeneratorRuntime.mark(function _callee(){var l,wvRef,lFunc;return regeneratorRuntime.wrap(function(_context){for(;;)switch(_context.prev=_context.next){case 0:l="";_context.prev=1;lFunc=(wvRef=window.parent.WebViewer)?wvRef.l:null;l=lFunc(window.frameElement)||
"";_context.next=12;break;case 7:return _context.prev=7,_context.t0=_context["catch"](1),_context.next=11,new Promise(function(resolve){window.parent.postMessage("requestl","*");window.addEventListener("message",function onLicenseReceived(e){"object"===_typeof(e.data)&&"responsel"===e.data.type&&(resolve(e.data.value),window.removeEventListener("message",onLicenseReceived))})});case 11:l=_context.sent;case 12:return _context.abrupt("return",l);case 13:case "end":return _context.stop()}},_callee,null,
[[1,7]])}));return function(){return _ref.apply(this,arguments)}}()().then(function(license){_auth_interface_min__WEBPACK_IMPORTED_MODULE_4___default()(license,"".concat(workerPath,"pdfjs"),!1).then(function(r){interfaceInstance=r["interface"];r.io?_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.suppress():(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.startSession(license,!1),_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.expressLoaded(window.Core.DocumentViewer.prototype.version)));
resolveInterface()})["catch"](function(e){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(e);throw Error("PDF.js Express could not be loaded");})}))};module.prototype=Object.create(BaseDocument.prototype);module.prototype.constructor=module;__webpack_require__.registerDocumentType("pdf",module);__webpack_require__.unregisterDocumentType("webviewerServer");__webpack_require__.unregisterDocumentType("xod");__webpack_require__.unregisterDocumentType("office");var fieldManager;Object.assign(module.prototype,
{getNewAppearanceDocument:function(){return Promise.reject("")},loadAsync:function(){var _loadAsync=_asyncToGenerator(regeneratorRuntime.mark(function _callee2(partRetriever,onDocumentLoaded,options){var me,annotationManager,getUserPassword,file,fetchDocument;return regeneratorRuntime.wrap(function(_context2){for(;;)switch(_context2.prev=_context2.next){case 0:return fetchDocument=function(params){var _partRetriever$getCus;params.cMapUrl=me.cMapUrl;params.cMapPacked=me.cMapPacked;params.disableFlattenedAnnotations=
getHashParameter("disableFlattenedAnnotations",!1);params.worker=worker;params.disableRange=!1;params.disableStream=me.disableStreaming;params.disableAutoFetch=me.disableStreaming;params.renderFormFields=!1;params.httpHeaders=(null===partRetriever||void 0===partRetriever?void 0:null===(_partRetriever$getCus=partRetriever.getCustomHeaders)||void 0===_partRetriever$getCus?void 0:_partRetriever$getCus.call(partRetriever))||{};params=_pdf__WEBPACK_IMPORTED_MODULE_2__.getDocument(params);params.onPassword=
function(updateCallback){getUserPassword(updateCallback)};var pageCount;params.promise.then(function(pdf){me.pdfDocument=pdf;me.docId=pdf.fingerprint;pageCount=pdf.numPages;me.pdfDocument.getDestinations().then(function(destinations){me.destinations=destinations});var pagesCapability=createPromiseCapability();pagesCapability.promise.then(function(){me.maxViewportZoom=me.calculateMaxViewportZoom();awaitInterface.then(function(){interfaceInstance.dC(onDocumentLoaded,me)})});for(var getPagesLeft=pageCount,
_loop=function(pageNum){pdf.getPage(pageNum).then(function(pdfPage){var viewport=pdfPage.getViewport({scale:me.scale});viewport=new _PDFJSPageView__WEBPACK_IMPORTED_MODULE_5__.a({id:pageNum,matrix:me.sanitisePageMatrix(viewport.transform,{w:viewport.width,h:viewport.height}),scale:me.scale,defaultViewport:viewport.clone()});viewport.setPdfPage(pdfPage);me.setPage(viewport,pageNum);me.pagesById[pageNum-1]=viewport;me._cachePageRef(pageNum,pdfPage.ref);0===--getPagesLeft&&pagesCapability.resolve()},
function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err);0===--getPagesLeft&&pagesCapability.resolve()})},pageNum=1;pageNum<=pageCount;pageNum++)_loop(pageNum);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,successfulLoad:!0,fileName:file.url}));trackAnnotationEvents()})["catch"](function(err){onDocumentLoaded(err);if(CustomEvent&&!isIE11)var event=new CustomEvent("loaderror",{detail:err,
bubbles:!0,cancelable:!0});else event=document.createEvent("Event"),event.initEvent("loaderror",!0,!0),event.detail=err;window.dispatchEvent(event);_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.b.pushEvent(_PDFJSAnalytics__WEBPACK_IMPORTED_MODULE_10__.a.Actions.documentLoaded({pageCount:pageCount,successfulLoad:!1,fileName:null===file||void 0===file?void 0:file.url}))})},me=this,fieldManager=(annotationManager=options.annotationManager)?annotationManager.getFieldManager():null,getUserPassword=options.getPassword,
_context2.next=7,partRetriever.getFile();case 7:(file=_context2.sent)&&file.url?fetchDocument({url:file.url}):partRetriever.getFileData(function(source){fetchDocument({data:source})});case 9:case "end":return _context2.stop()}},_callee2,this)}));return function(_x,_x2,_x3){return _loadAsync.apply(this,arguments)}}(),loadCanvasAsync:function(options){var me=this,id=id$jscomp$0++;loadCanvasMap[id]={isCancelled:!1};var pageIdx=options.pageNumber-1,multiplier=options.multiplier||getCanvasMultiplier(),
pageView=me.pagesById[pageIdx],canvasNum=options.canvasNum,renderRect$jscomp$0=options.renderRect;renderRect$jscomp$0&&(options.renderRect.rect=[renderRect$jscomp$0.x1,renderRect$jscomp$0.y1,renderRect$jscomp$0.x2,renderRect$jscomp$0.y2]);pageView.paintOnCanvas({multiplier:multiplier,canvasNum:canvasNum,options:options}).promise.then(function(result){awaitInterface.then(function(){var drawComplete=options.drawComplete;options.drawComplete=function(){delete loadCanvasMap[id];var renderRect=options.renderRect,
transform=[1,0,0,1,0,0],rotation=pageView._rotation/90;renderRect&&(transform=pageView.getTransform({rotation:rotation,renderRect:renderRect}));me.drawWatermark(result,pageIdx+1,void 0,rotation,pageView.viewport.scale,transform,!0);result.getContext("2d").scale(multiplier,multiplier);drawComplete(result,pageIdx+1)};interfaceInstance.r(result,options,pageIdx,options.drawComplete,function(){var shouldCancel=me._cancelled||loadCanvasMap[id].isCancelled;delete loadCanvasMap[id];return shouldCancel})})},
function(err){Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err)});return id},cancelLoadCanvas:function(id){loadCanvasMap[id]&&(loadCanvasMap[id].isCancelled=!0)},getBookmarks:function(){var me=this;return me.pdfDocument.getOutline().then(function(outlines){return outlines?outlines.map(function(outline,index){return me._parseOutline(outline,void 0,me.destinations,index)}):[]})},unloadResources:function(){this._cancelled=!0},loadThumbnailAsync:function(pageNumber,onLoadThumbnail,name){var highResThumbnail=
"page"===name;name=this.pagesById[pageNumber-1];var multiplier=getCanvasMultiplier();highResThumbnail=highResThumbnail?2E3:150*multiplier;var zoomVal=name.width>name.height?highResThumbnail/name.width:highResThumbnail/name.height;zoomVal/=multiplier;pageNumber=Object(_core_src_namespaces_Core_Document_documentUtils__WEBPACK_IMPORTED_MODULE_9__.a)({pageNumber:pageNumber,getZoom:function(){return zoomVal},getPageRotation:function(){return PageRotation.E_0},drawComplete:function(canvas){onLoadThumbnail(canvas)},
drawProgressive:function(){},getPageTransform:function(){},useProgress:!1,pageCanvas:!0});return this.loadCanvasAsync(pageNumber)},getPageCount:function(){return this.pdfDocument.numPages},shouldRequestAnnotations:function(){return!0},getFileData:function(){return this.pdfDocument.getData()},sanitisePageMatrix:function(matrix,currentPage){var tmtx=new exports.Core.XODText.Matrix2D;tmtx.initCoordinates.apply(tmtx,matrix);matrix=this.calculateBoundingBox(tmtx,currentPage);tmtx.initCoordinates(1,0,0,
-1,-matrix.x1,matrix.y2);return tmtx},loadTextData:function(pageNumber,onComplete){var me=this,pageIndex=pageNumber-1,page=me.getPage(pageNumber);if(page&&null!==page.text)onComplete(page.text);else if(pageIndex in me.textCallbacksLookup)me.textCallbacksLookup[pageIndex].push(onComplete);else{Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text","Load text ".concat(pageNumber));me.textCallbacksLookup[pageIndex]=[onComplete];var pdfPageCache=null;me.pdfDocument.getPage(pageNumber).then(function(pdfPage){pdfPageCache=
pdfPage;return pdfPage.getOperatorList().then(function(){return pdfPage.getTextContent({normalizeWhitespace:!0,combineTextItems:!0})})}).then(function(textContent){textContent&&0===textContent.items.length?(me.textCallbacksLookup[pageIndex].forEach(function(completeCB){Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text","Callback ".concat(pageIndex));completeCB(new exports.Core.XODText.SelectionInfo)}),delete me.textCallbacksLookup[pageIndex]):me._parseFontData(pdfPageCache.commonObjs._objs,function(err,
fonts){if(err)Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err);else{err=me._parseTextData(pageIndex,textContent,fonts);Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("loadTextData for page ".concat(pageNumber));var selInfo=new exports.Core.XODText.SelectionInfo;selInfo.parseFromOld({m_Struct:err.struct,m_Str:err.str,m_Offsets:err.offsets,m_Quads:err.quads,m_Ready:!0});me.getPage(pageNumber).text=selInfo;me.textCallbacksLookup[pageIndex].forEach(function(completeCB){Object(logger__WEBPACK_IMPORTED_MODULE_1__.b)("text",
"Callback ".concat(pageIndex));completeCB(selInfo)});delete me.textCallbacksLookup[pageIndex]}})})}},getDestinations:function(){var _getDestinations=_asyncToGenerator(regeneratorRuntime.mark(function _callee3(){return regeneratorRuntime.wrap(function(_context3){for(;;)switch(_context3.prev=_context3.next){case 0:return _context3.abrupt("return",this.pdfDocument.getDestinations());case 1:case "end":return _context3.stop()}},_callee3,this)}));return function(){return _getDestinations.apply(this,arguments)}}(),
extractXFDFForPage:function(pageNumber){var _this=this,pageView=this.pagesById[pageNumber-1];return pageView.pdfPage.getAnnotations().then(function(data){var parseDest=_this._getXYDest.bind(_this),parsePageNumber=_this._getNumberFromRef.bind(_this);return{annots:data.map(function(item){var getFont=function(){var font=(Annotations.XFDFUtils.parseDefaultAppearance(item.defaultAppearance)||{}).font;return new Annotations.Font({name:font&&font.name,size:font&&font.size&&parseInt(font.size,10)})};try{switch(item.subtype){case "Link":return item.url||
(item.url=item.unsafeUrl),_PDFJSAnnotations__WEBPACK_IMPORTED_MODULE_7__.a.create({data:item,pageMatrix:pageView.matrix,pageNum:pageNumber,parseDest:parseDest,parsePageNumber:parsePageNumber,destinations:_this.destinations});case "Widget":var rect=item.rect,fieldName=item.fieldName,fieldValue=item.fieldValue,fieldType=item.fieldType,textAlignment=item.textAlignment,multiLine=item.multiLine,isRequired=item.isRequired,blockRender=item.blockRender,comb=item.comb,maxLen=item.maxLen,flags=[];item.readOnly&&
flags.push(_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__.a.READ_ONLY);multiLine&&flags.push(_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__.a.MULTILINE);isRequired&&flags.push(_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__.a.REQUIRED);comb&&flags.push(_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__.a.COMB);var hasFlags=0<flags.length;if("Sig"===fieldType){var WVFont=
getFont();if(blockRender)return null;var field$jscomp$0=fieldManager.getOrCreateField(fieldName);field$jscomp$0.set(_objectSpread({font:WVFont,type:fieldType},hasFlags&&{flags:flags}));var widget=new Annotations.SignatureWidgetAnnotation(field$jscomp$0,{appearance:"_DEFAULT",appearances:{_DEFAULT:{Normal:{data:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyEAAABFCAYAAABdY+kiAAAACXBIWXMAAB7CAAAewgFu0HU+AAAA7UlEQVR4nO3BgQAAAADDoPlTX+EAVQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwGWAGAAGtvyc4AAAAAElFTkSuQmCC"}}}})}else if("Tx"===
fieldType){var _field=fieldManager.getOrCreateField(fieldName),_WVFont=getFont();_field.set(_objectSpread(_objectSpread({font:_WVFont,type:"Tx"},hasFlags&&{flags:flags}),{},{value:fieldValue,defaultValue:fieldValue,maxLen:maxLen}));widget=new Annotations.TextWidgetAnnotation(_field);1===textAlignment?widget.quadding="Centered":2===textAlignment&&(widget.quadding="Right-justified")}else if("Ch"===fieldType){var combo=item.combo,options=item.options,_fieldValue=item.fieldValue,_WVFont2=getFont(),createChoiceWidget=
function(){var wvOptions=options.map(function(_ref2){return{value:_ref2.exportValue,displayValue:_ref2.displayValue}}),field=fieldManager.getOrCreateField(fieldName);field.set(_objectSpread({font:_WVFont2,type:"Ch",options:wvOptions,value:_fieldValue[0],defaultValue:_fieldValue[0]},hasFlags&&{flags:flags}));return new Annotations.ChoiceWidgetAnnotation(field,{border:{color:new Annotations.Color(255,0,0),width:2}})},createListWidget=function(){var wvOptions=options.map(function(_ref3){return{value:_ref3.exportValue,
displayValue:_ref3.displayValue}}),field=fieldManager.getOrCreateField(fieldName);field.set(_objectSpread({font:_WVFont2,type:"Ch",options:wvOptions,value:_fieldValue[0],defaultValue:_fieldValue[0]},hasFlags&&{flags:flags}));return new Annotations.ListWidgetAnnotation(field,{border:{color:new Annotations.Color(255,0,0),width:2}})};widget=combo?createChoiceWidget():createListWidget()}else if("Btn"===fieldType){createChoiceWidget=item.checkBox;createListWidget=item.radioButton;var pushButton=item.pushButton,
_fieldValue2=item.fieldValue,_fieldName=item.fieldName,_WVFont3=getFont();combo=function(){var _uniqueId=Object(lodash__WEBPACK_IMPORTED_MODULE_0__.uniqueId)("id_"),field=fieldManager.getOrCreateField(_fieldName),widgetAP=item.widgetAP,buttonValue=item.buttonValue;field.set({type:"Btn",value:_fieldValue2});return new Annotations.RadioButtonWidgetAnnotation(field,{backgroundColor:new Annotations.Color(255,153,153),appearances:_defineProperty({Off:{}},buttonValue||widgetAP||_uniqueId,{})})};getFont=
function(){var field=fieldManager.getOrCreateField(_fieldName);field.set(_objectSpread({type:"Btn",value:_fieldValue2},hasFlags&&{flags:flags}));return new Annotations.CheckButtonWidgetAnnotation(field,{backgroundColor:new Annotations.Color(204,255,204),quadding:"Centered",appearances:_defineProperty({Off:{}},item.widgetAP||"On",{})})};if(!0===createListWidget)widget=combo();else if(!0===createChoiceWidget)widget="On"===_fieldValue2||"Yes"===_fieldValue2||void 0===_fieldValue2||"Off"===_fieldValue2||
"No"===_fieldValue2?getFont():combo();else if(!0===pushButton){var _field2=fieldManager.getOrCreateField(_fieldName);_field2.set({font:_WVFont3,type:"Btn",flags:[_core_src_namespaces_Annotations_Widgets_WidgetFlags__WEBPACK_IMPORTED_MODULE_8__.a.PUSH_BUTTON]});widget=new Annotations.PushButtonWidgetAnnotation(_field2,{backgroundColor:new Annotations.Color(255,255,255,0),captions:{Normal:""},fieldName:_fieldName,quadding:"Left-justified"})}else return null}else return null;var action$jscomp$0=item.action,
url=item.url,dest=item.dest;action$jscomp$0&&widget.addAction("U",new Actions.Named({action:action$jscomp$0}));url&&widget.addAction("U",new Actions.URI({uri:url}));if(dest){"string"===typeof dest&&(dest=_this.destinations[dest]||dest);var parsedDest=parseDest(pageNumber,dest),destPageNum=parsePageNumber(dest[0]);if(!parsedDest)return null;widget.addAction("U",new Actions.GoTo({dest:{bottom:parsedDest.y,fit:parsedDest.fit,left:parsedDest.x,name:void 0,page:destPageNum,right:parsedDest.x+parsedDest.width,
top:parsedDest.y-parsedDest.height,zoom:void 0}}))}var extraActions=item.extraActions;if(extraActions){var hide=extraActions.hide,reset=extraActions.reset,javascript=extraActions.javascript;if(hide){var H=hide.H,T=hide.T;var fields=Array.isArray(T)?T:[T];widget.addAction("U",new Actions.Hide({hide:H,fields:fields}))}reset&&widget.addAction("U",new Actions.ResetForm({fields:reset.Fields,exclude:0<reset.Flags}));javascript&&widget.addAction("U",new Actions.JavaScript({javascript:javascript.js,name:"JavaScript"}))}var additionalActions=
item.additionalActions;additionalActions&&[additionalActions.K,additionalActions.F,additionalActions.V,additionalActions.C].filter(function(action){return void 0!==action}).forEach(function(action){var js=action.js,actionType=action.actionType;"C"===actionType&&fieldManager.setCalculationOrder(action.calculationOrder);widget.addAction(actionType,new Actions.JavaScript({javascript:js,name:"JavaScript"}))});var _rect=_slicedToArray(rect,4),x2=_rect[2],y2=_rect[3],point1=new exports.Core.Math.Point(_rect[0],
_rect[1]),point2=new exports.Core.Math.Point(x2,y2);pageView.matrix.mult(point1);pageView.matrix.mult(point2);widget.PageNumber=pageNumber;widget.X=point1.x;widget.Y=point2.y;widget.Width=point2.x-point1.x;widget.Height=point1.y-point2.y;widget.IsModified=!1;widget.Hidden=item.hidden;return widget;default:return null}}catch(err){return Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)(err),null}}).filter(function(annot){return null!==annot})}})},extractXFDF:function(){var _extractXFDF=_asyncToGenerator(regeneratorRuntime.mark(function _callee4(pages){var allAnnots,
i,pageNumber,_yield$this$extractXF,_yield$this$extractXF2,annots;return regeneratorRuntime.wrap(function(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:allAnnots=[],i=0;case 2:if(!(i<pages.length)){_context4.next=13;break}pageNumber=pages[i];_context4.next=6;return this.extractXFDFForPage(pageNumber);case 6:_yield$this$extractXF=_context4.sent,_yield$this$extractXF2=_yield$this$extractXF.annots,annots=void 0===_yield$this$extractXF2?[]:_yield$this$extractXF2,allAnnots.push.apply(allAnnots,
_toConsumableArray(annots));case 10:i++;_context4.next=2;break;case 13:return _context4.abrupt("return",{pages:pages,annots:allAnnots});case 14:case "end":return _context4.stop()}},_callee4,this)}));return function(_x4){return _extractXFDF.apply(this,arguments)}}(),getLayersArray:function(){return Promise.resolve([])},_parseOutline:function(outline,parent,destinations,index){var me=this,children=outline.items.map(function(item,i){return me._parseOutline(item,outline.parent,destinations,"".concat(index,
"|").concat(i))}),destination=null;Array.isArray(outline.dest)?destination=outline.dest:"string"===typeof outline.dest&&(destination=destinations[outline.dest]);return this._createBookmark(outline,parent,children,destination,index)},_createBookmark:function(outline,parent,children,destination,index){var pageNumber,name=outline.title;if(destination&&(pageNumber=this._getNumberFromRef(destination[0]))){destination=this._getXYDest(pageNumber,destination);var verticalOffset=destination.verticalOffset;
var horizontalOffset=destination.x}return new Bookmark(children,name,pageNumber,parent,verticalOffset,horizontalOffset,outline.url,index)},_buildAnnotation:function(data,pageNum,pageMatrix){var me=this;return data.filter(function(item){return"Link"===item.subtype}).map(function(link){link={data:link,pageMatrix:pageMatrix,pageNum:pageNum,parseDest:me._getXYDest.bind(me),parsePageNumber:me._getNumberFromRef.bind(me),destinations:me.destinations};return _PDFJSAnnotations__WEBPACK_IMPORTED_MODULE_7__.a.create(link)})},
_parseTextData:function(pageIndex,textContent,fonts){var page=this.pagesById[pageIndex];pageIndex=[];for(var xodStr="",lines=[],itemsIndex=0,i=0,len=textContent.items.length;i<len;i++){var fontProvider=fonts[textContent.items[i].fontName];if(fontProvider){fontProvider=new _PDFJSTextParser__WEBPACK_IMPORTED_MODULE_6__.a({item:textContent.items[i],pageMatrix:page.matrix,font:fontProvider});if(0<lines.length&&0<itemsIndex){var prevLine=lines[itemsIndex-1],proximity=fontProvider.leftX-prevLine.rightX,
diffBottom=Math.abs(prevLine.bottom-fontProvider.bottom);if(2>=Math.abs(prevLine.top-fontProvider.top)&&2>=diffBottom&&10>proximity){lines.push(fontProvider);itemsIndex++;continue}else prevLine.addNewline()}lines.push(fontProvider);itemsIndex++}}textContent=0;for(fonts=lines.length;textContent<fonts;textContent++)lines[textContent].parse(),pageIndex.push(lines[textContent].getQuads()),xodStr+=lines[textContent].text;pageIndex=pageIndex.reduce(function(acc,val){return acc.concat(val)},[]);lines=this._parseStruct(xodStr,
pageIndex);textContent=this._parseTextOffsets(xodStr);var finalQuads=[];pageIndex.forEach(function(quad){finalQuads.push.apply(finalQuads,_toConsumableArray(quad))});return{offsets:textContent,quads:finalQuads,str:xodStr,struct:lines}},_parseStruct:function(str,quads){for(var ar=str.split(""),start=-1,end=-1,struct=[],lineStruct=[],i=0,len=ar.length;i<len;i++){ar[i].match(/\S/)?(-1===start&&(start=i),void 0!==ar[i+1]&&ar[i+1].match(/\S/)||(end=i+1)):(-1!==start&&(start=-1),ar[i+1]&&ar[i+1].match(/\S/)&&
(end=-1));if(0<=start&&0<=end){var word=str.slice(start,end),wordQ=quads.slice(start,end);lineStruct=lineStruct.concat([[word.length,i-(word.length-1),word.length,wordQ[0][0],wordQ[wordQ.length-1][2]]])}"\n"!==ar[i]&&len-1!==i||!lineStruct.length||(word=lineStruct[lineStruct.length-1],word=quads.slice(lineStruct[0][1],word[1]+word[0]),wordQ=word[0],lineStruct=[lineStruct.length,0,wordQ[0],wordQ[7],word[word.length-1][2],wordQ[1]].concat(lineStruct.reduce(function(acc,val){return acc.concat(val)},
[])),struct=struct.concat([lineStruct]),lineStruct=[])}return[struct.length].concat(struct.reduce(function(acc,val){return acc.concat(val)},[]))},_parseFontData:function(_objs,callback){var arr=Object.keys(_objs).map(function(key){return _objs[key].capability.promise});Promise.all(arr).then(function(values){for(var fonts={},i=0,len=values.length;i<len;i++)fonts[values[i].loadedName]=values[i];callback(null,fonts)})["catch"](callback)},_parseTextOffsets:function(xodStr){for(var offsets=[],i=0,len=
xodStr.length;i<len;i++){var check1="\n"===xodStr.charAt(i)?-2:i;offsets[i]=" "===xodStr.charAt(i)?-1:check1}return offsets},_getXYDest:function(pageNumber,destArray){if(this.pdfDocument&&destArray){var pageView=Number.isInteger(pageNumber)&&this.pagesById[pageNumber-1];if(pageView){var x=0,y=0,width=pageNumber=0,height=0,changeOrientation=0!==pageView.rotation%180,pageWidth=(changeOrientation?pageView.height:pageView.width)/pageView.scale;changeOrientation=(changeOrientation?pageView.width:pageView.height)/
pageView.scale;switch(destArray[1].name){case "XYZ":x=destArray[2];y=destArray[3];pageNumber=changeOrientation-y;x=null!==x?x:0;y=null!==y?y:changeOrientation;break;case "Fit":case "FitB":break;case "FitH":case "FitBH":y=destArray[2];pageNumber=changeOrientation-y;break;case "FitV":case "FitBV":x=destArray[2];width=pageWidth;height=changeOrientation;break;case "FitR":x=destArray[2];y=destArray[3];pageNumber=changeOrientation-y;width=destArray[4]-x;height=destArray[5]-y;break;default:return}pageView=
pageView.matrix.mult({x:x,y:y});return{x:pageView.x,y:pageView.y,verticalOffset:pageNumber,fit:destArray[1].name,width:width,height:height}}Object(logger__WEBPACK_IMPORTED_MODULE_1__.d)("".concat(pageNumber," is not a valid pageNumber parameter."))}},_cachePageRef:function(pageNum,pageRef){pageRef&&(pageRef="".concat(pageRef.num," ").concat(pageRef.gen," R"),this._pagesRefCache[pageRef]=pageNum)},_getNumberFromRef:function(pageRef){if(!pageRef)return null;pageRef="".concat(pageRef.num," ").concat(pageRef.gen,
" R");return this._pagesRefCache&&this._pagesRefCache[pageRef]||null}})},function(module,exports,__webpack_require__){function getLens(b64){var len=b64.length;if(0<len%4)throw Error("Invalid string. Length must be a multiple of 4");b64=b64.indexOf("=");-1===b64&&(b64=len);return[b64,b64===len?0:4-b64%4]}exports.byteLength=function(b64){b64=getLens(b64);var placeHoldersLen=b64[1];return 3*(b64[0]+placeHoldersLen)/4-placeHoldersLen};exports.toByteArray=function(b64){var lens=getLens(b64);var tmp=lens[0];
lens=lens[1];var arr=new Arr(3*(tmp+lens)/4-lens),curByte=0,len=0<lens?tmp-4:tmp,i;for(i=0;i<len;i+=4)tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)],arr[curByte++]=tmp>>16&255,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255;2===lens&&(tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4,arr[curByte++]=tmp&255);1===lens&&(tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|
revLookup[b64.charCodeAt(i+2)]>>2,arr[curByte++]=tmp>>8&255,arr[curByte++]=tmp&255);return arr};exports.fromByteArray=function(uint8$jscomp$0){for(var len=uint8$jscomp$0.length,extraBytes=len%3,parts=[],i=0,len2=len-extraBytes;i<len2;i+=16383){for(var JSCompiler_temp_const=parts,JSCompiler_temp_const$jscomp$0=JSCompiler_temp_const.push,JSCompiler_inline_result,uint8=uint8$jscomp$0,end=i+16383>len2?len2:i+16383,output=[],i$jscomp$0=i;i$jscomp$0<end;i$jscomp$0+=3)JSCompiler_inline_result=(uint8[i$jscomp$0]<<
16&16711680)+(uint8[i$jscomp$0+1]<<8&65280)+(uint8[i$jscomp$0+2]&255),output.push(lookup[JSCompiler_inline_result>>18&63]+lookup[JSCompiler_inline_result>>12&63]+lookup[JSCompiler_inline_result>>6&63]+lookup[JSCompiler_inline_result&63]);JSCompiler_inline_result=output.join("");JSCompiler_temp_const$jscomp$0.call(JSCompiler_temp_const,JSCompiler_inline_result)}1===extraBytes?(uint8$jscomp$0=uint8$jscomp$0[len-1],parts.push(lookup[uint8$jscomp$0>>2]+lookup[uint8$jscomp$0<<4&63]+"==")):2===extraBytes&&
(uint8$jscomp$0=(uint8$jscomp$0[len-2]<<8)+uint8$jscomp$0[len-1],parts.push(lookup[uint8$jscomp$0>>10]+lookup[uint8$jscomp$0>>4&63]+lookup[uint8$jscomp$0<<2&63]+"="));return parts.join("")};var lookup=[],revLookup=[],Arr="undefined"!==typeof Uint8Array?Uint8Array:Array;for(module=0;64>module;++module)lookup[module]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[module],revLookup["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(module)]=module;revLookup[45]=
62;revLookup[95]=63},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var m=8*nBytes-mLen-1;var eMax=(1<<m)-1,eBias=eMax>>1,nBits=-7;nBytes=isLE?nBytes-1:0;var d=isLE?-1:1,s=buffer[offset+nBytes];nBytes+=d;isLE=s&(1<<-nBits)-1;s>>=-nBits;for(nBits+=m;0<nBits;isLE=256*isLE+buffer[offset+nBytes],nBytes+=d,nBits-=8);m=isLE&(1<<-nBits)-1;isLE>>=-nBits;for(nBits+=mLen;0<nBits;m=256*m+buffer[offset+nBytes],nBytes+=d,nBits-=8);if(0===isLE)isLE=1-eBias;else{if(isLE===eMax)return m?
NaN:Infinity*(s?-1:1);m+=Math.pow(2,mLen);isLE-=eBias}return(s?-1:1)*m*Math.pow(2,isLE-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var c,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0;nBytes=isLE?0:nBytes-1;var d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;value=Math.abs(value);isNaN(value)||Infinity===value?(value=isNaN(value)?1:0,isLE=eMax):(isLE=Math.floor(Math.log(value)/Math.LN2),1>value*(c=Math.pow(2,-isLE))&&(isLE--,
c*=2),value=1<=isLE+eBias?value+rt/c:value+rt*Math.pow(2,1-eBias),2<=value*c&&(isLE++,c/=2),isLE+eBias>=eMax?(value=0,isLE=eMax):1<=isLE+eBias?(value=(value*c-1)*Math.pow(2,mLen),isLE+=eBias):(value=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),isLE=0));for(;8<=mLen;buffer[offset+nBytes]=value&255,nBytes+=d,value/=256,mLen-=8);isLE=isLE<<mLen|value;for(eLen+=mLen;0<eLen;buffer[offset+nBytes]=isLE&255,nBytes+=d,isLE/=256,eLen-=8);buffer[offset+nBytes-d]|=128*s}},function(module,exports,__webpack_require__){(function(process){function zlibBuffer(engine,
buffer,callback){function flow(){for(var chunk;null!==(chunk=engine.read());)buffers.push(chunk),nread+=chunk.length;engine.once("readable",flow)}function onEnd(){var buf,err=null;nread>=kMaxLength?err=new RangeError(kRangeErrorMessage):buf=Buffer.concat(buffers,nread);buffers=[];engine.close();callback(err,buf)}var buffers=[],nread=0;engine.on("error",function(err){engine.removeListener("end",onEnd);engine.removeListener("readable",flow);callback(err)});engine.on("end",onEnd);engine.end(buffer);
flow()}function zlibBufferSync(engine,buffer){"string"===typeof buffer&&(buffer=Buffer.from(buffer));if(!Buffer.isBuffer(buffer))throw new TypeError("Not a string or buffer");return engine._processChunk(buffer,engine._finishFlushFlag)}function Deflate(opts){if(!(this instanceof Deflate))return new Deflate(opts);Zlib.call(this,opts,binding.DEFLATE)}function Inflate(opts){if(!(this instanceof Inflate))return new Inflate(opts);Zlib.call(this,opts,binding.INFLATE)}function Gzip(opts){if(!(this instanceof
Gzip))return new Gzip(opts);Zlib.call(this,opts,binding.GZIP)}function Gunzip(opts){if(!(this instanceof Gunzip))return new Gunzip(opts);Zlib.call(this,opts,binding.GUNZIP)}function DeflateRaw(opts){if(!(this instanceof DeflateRaw))return new DeflateRaw(opts);Zlib.call(this,opts,binding.DEFLATERAW)}function InflateRaw(opts){if(!(this instanceof InflateRaw))return new InflateRaw(opts);Zlib.call(this,opts,binding.INFLATERAW)}function Unzip(opts){if(!(this instanceof Unzip))return new Unzip(opts);Zlib.call(this,
opts,binding.UNZIP)}function isValidFlushFlag(flag){return flag===binding.Z_NO_FLUSH||flag===binding.Z_PARTIAL_FLUSH||flag===binding.Z_SYNC_FLUSH||flag===binding.Z_FULL_FLUSH||flag===binding.Z_FINISH||flag===binding.Z_BLOCK}function Zlib(opts,mode){var _this=this;this._opts=opts=opts||{};this._chunkSize=opts.chunkSize||exports.Z_DEFAULT_CHUNK;Transform.call(this,opts);if(opts.flush&&!isValidFlushFlag(opts.flush))throw Error("Invalid flush flag: "+opts.flush);if(opts.finishFlush&&!isValidFlushFlag(opts.finishFlush))throw Error("Invalid flush flag: "+
opts.finishFlush);this._flushFlag=opts.flush||binding.Z_NO_FLUSH;this._finishFlushFlag="undefined"!==typeof opts.finishFlush?opts.finishFlush:binding.Z_FINISH;if(opts.chunkSize&&(opts.chunkSize<exports.Z_MIN_CHUNK||opts.chunkSize>exports.Z_MAX_CHUNK))throw Error("Invalid chunk size: "+opts.chunkSize);if(opts.windowBits&&(opts.windowBits<exports.Z_MIN_WINDOWBITS||opts.windowBits>exports.Z_MAX_WINDOWBITS))throw Error("Invalid windowBits: "+opts.windowBits);if(opts.level&&(opts.level<exports.Z_MIN_LEVEL||
opts.level>exports.Z_MAX_LEVEL))throw Error("Invalid compression level: "+opts.level);if(opts.memLevel&&(opts.memLevel<exports.Z_MIN_MEMLEVEL||opts.memLevel>exports.Z_MAX_MEMLEVEL))throw Error("Invalid memLevel: "+opts.memLevel);if(opts.strategy&&opts.strategy!=exports.Z_FILTERED&&opts.strategy!=exports.Z_HUFFMAN_ONLY&&opts.strategy!=exports.Z_RLE&&opts.strategy!=exports.Z_FIXED&&opts.strategy!=exports.Z_DEFAULT_STRATEGY)throw Error("Invalid strategy: "+opts.strategy);if(opts.dictionary&&!Buffer.isBuffer(opts.dictionary))throw Error("Invalid dictionary: it should be a Buffer instance");
this._handle=new binding.Zlib(mode);var self=this;this._hadError=!1;this._handle.onerror=function(message,errno){_close(self);self._hadError=!0;message=Error(message);message.errno=errno;message.code=exports.codes[errno];self.emit("error",message)};mode=exports.Z_DEFAULT_COMPRESSION;"number"===typeof opts.level&&(mode=opts.level);var strategy=exports.Z_DEFAULT_STRATEGY;"number"===typeof opts.strategy&&(strategy=opts.strategy);this._handle.init(opts.windowBits||exports.Z_DEFAULT_WINDOWBITS,mode,opts.memLevel||
exports.Z_DEFAULT_MEMLEVEL,strategy,opts.dictionary);this._buffer=Buffer.allocUnsafe(this._chunkSize);this._offset=0;this._level=mode;this._strategy=strategy;this.once("end",this.close);Object.defineProperty(this,"_closed",{get:function(){return!_this._handle},configurable:!0,enumerable:!0})}function _close(engine,callback){callback&&process.nextTick(callback);engine._handle&&(engine._handle.close(),engine._handle=null)}function emitCloseNT(self){self.emit("close")}var Buffer=__webpack_require__(25).Buffer,
Transform=__webpack_require__(116).Transform,binding=__webpack_require__(127),util=__webpack_require__(74),assert=__webpack_require__(73).ok,kMaxLength=__webpack_require__(25).kMaxLength,kRangeErrorMessage="Cannot create final Buffer. It would be larger than 0x"+kMaxLength.toString(16)+" bytes";binding.Z_MIN_WINDOWBITS=8;binding.Z_MAX_WINDOWBITS=15;binding.Z_DEFAULT_WINDOWBITS=15;binding.Z_MIN_CHUNK=64;binding.Z_MAX_CHUNK=Infinity;binding.Z_DEFAULT_CHUNK=16384;binding.Z_MIN_MEMLEVEL=1;binding.Z_MAX_MEMLEVEL=
9;binding.Z_DEFAULT_MEMLEVEL=8;binding.Z_MIN_LEVEL=-1;binding.Z_MAX_LEVEL=9;binding.Z_DEFAULT_LEVEL=binding.Z_DEFAULT_COMPRESSION;for(var bkeys=Object.keys(binding),bk=0;bk<bkeys.length;bk++){var bkey=bkeys[bk];bkey.match(/^Z/)&&Object.defineProperty(exports,bkey,{enumerable:!0,value:binding[bkey],writable:!1})}bkeys={Z_OK:binding.Z_OK,Z_STREAM_END:binding.Z_STREAM_END,Z_NEED_DICT:binding.Z_NEED_DICT,Z_ERRNO:binding.Z_ERRNO,Z_STREAM_ERROR:binding.Z_STREAM_ERROR,Z_DATA_ERROR:binding.Z_DATA_ERROR,Z_MEM_ERROR:binding.Z_MEM_ERROR,
Z_BUF_ERROR:binding.Z_BUF_ERROR,Z_VERSION_ERROR:binding.Z_VERSION_ERROR};bk=Object.keys(bkeys);for(bkey=0;bkey<bk.length;bkey++){var ckey=bk[bkey];bkeys[bkeys[ckey]]=ckey}Object.defineProperty(exports,"codes",{enumerable:!0,value:Object.freeze(bkeys),writable:!1});exports.Deflate=Deflate;exports.Inflate=Inflate;exports.Gzip=Gzip;exports.Gunzip=Gunzip;exports.DeflateRaw=DeflateRaw;exports.InflateRaw=InflateRaw;exports.Unzip=Unzip;exports.createDeflate=function(o){return new Deflate(o)};exports.createInflate=
function(o){return new Inflate(o)};exports.createDeflateRaw=function(o){return new DeflateRaw(o)};exports.createInflateRaw=function(o){return new InflateRaw(o)};exports.createGzip=function(o){return new Gzip(o)};exports.createGunzip=function(o){return new Gunzip(o)};exports.createUnzip=function(o){return new Unzip(o)};exports.deflate=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Deflate(opts),buffer,callback)};exports.deflateSync=function(buffer,
opts){return zlibBufferSync(new Deflate(opts),buffer)};exports.gzip=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Gzip(opts),buffer,callback)};exports.gzipSync=function(buffer,opts){return zlibBufferSync(new Gzip(opts),buffer)};exports.deflateRaw=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new DeflateRaw(opts),buffer,callback)};exports.deflateRawSync=function(buffer,opts){return zlibBufferSync(new DeflateRaw(opts),
buffer)};exports.unzip=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Unzip(opts),buffer,callback)};exports.unzipSync=function(buffer,opts){return zlibBufferSync(new Unzip(opts),buffer)};exports.inflate=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Inflate(opts),buffer,callback)};exports.inflateSync=function(buffer,opts){return zlibBufferSync(new Inflate(opts),buffer)};exports.gunzip=function(buffer,
opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new Gunzip(opts),buffer,callback)};exports.gunzipSync=function(buffer,opts){return zlibBufferSync(new Gunzip(opts),buffer)};exports.inflateRaw=function(buffer,opts,callback){"function"===typeof opts&&(callback=opts,opts={});return zlibBuffer(new InflateRaw(opts),buffer,callback)};exports.inflateRawSync=function(buffer,opts){return zlibBufferSync(new InflateRaw(opts),buffer)};util.inherits(Zlib,Transform);Zlib.prototype.params=
function(level,strategy,callback){if(level<exports.Z_MIN_LEVEL||level>exports.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+level);if(strategy!=exports.Z_FILTERED&&strategy!=exports.Z_HUFFMAN_ONLY&&strategy!=exports.Z_RLE&&strategy!=exports.Z_FIXED&&strategy!=exports.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+strategy);if(this._level!==level||this._strategy!==strategy){var self=this;this.flush(binding.Z_SYNC_FLUSH,function(){assert(self._handle,"zlib binding closed");
self._handle.params(level,strategy);self._hadError||(self._level=level,self._strategy=strategy,callback&&callback())})}else process.nextTick(callback)};Zlib.prototype.reset=function(){assert(this._handle,"zlib binding closed");return this._handle.reset()};Zlib.prototype._flush=function(callback){this._transform(Buffer.alloc(0),"",callback)};Zlib.prototype.flush=function(kind,callback){var _this2=this,ws=this._writableState;if("function"===typeof kind||void 0===kind&&!callback)callback=kind,kind=binding.Z_FULL_FLUSH;
if(ws.ended)callback&&process.nextTick(callback);else if(ws.ending){if(callback)this.once("end",callback)}else if(ws.needDrain){if(callback)this.once("drain",function(){return _this2.flush(kind,callback)})}else this._flushFlag=kind,this.write(Buffer.alloc(0),"",callback)};Zlib.prototype.close=function(callback){_close(this,callback);process.nextTick(emitCloseNT,this)};Zlib.prototype._transform=function(chunk,encoding,cb){encoding=this._writableState;var flushFlag=(encoding.ending||encoding.ended)&&
(!chunk||encoding.length===chunk.length);if(null!==chunk&&!Buffer.isBuffer(chunk))return cb(Error("invalid input"));if(!this._handle)return cb(Error("zlib binding closed"));flushFlag?flushFlag=this._finishFlushFlag:(flushFlag=this._flushFlag,chunk.length>=encoding.length&&(this._flushFlag=this._opts.flush||binding.Z_NO_FLUSH));this._processChunk(chunk,flushFlag,cb)};Zlib.prototype._processChunk=function(chunk,flushFlag,cb){function callback(availInAfter,availOutAfter){this&&(this.callback=this.buffer=
null);if(!self._hadError){var have=availOutBefore-availOutAfter;assert(0<=have,"have should not go down");if(0<have){var out=self._buffer.slice(self._offset,self._offset+have);self._offset+=have;async?self.push(out):(buffers.push(out),nread+=out.length)}if(0===availOutAfter||self._offset>=self._chunkSize)availOutBefore=self._chunkSize,self._offset=0,self._buffer=Buffer.allocUnsafe(self._chunkSize);if(0===availOutAfter){inOff+=availInBefore-availInAfter;availInBefore=availInAfter;if(!async)return!0;
availInAfter=self._handle.write(flushFlag,chunk,inOff,availInBefore,self._buffer,self._offset,self._chunkSize);availInAfter.callback=callback;availInAfter.buffer=chunk}else{if(!async)return!1;cb()}}}var availInBefore=chunk&&chunk.length,availOutBefore=this._chunkSize-this._offset,inOff=0,self=this,async="function"===typeof cb;if(!async){var buffers=[],nread=0,error;this.on("error",function(er){error=er});assert(this._handle,"zlib binding closed");do var res=this._handle.writeSync(flushFlag,chunk,
inOff,availInBefore,this._buffer,this._offset,availOutBefore);while(!this._hadError&&callback(res[0],res[1]));if(this._hadError)throw error;if(nread>=kMaxLength)throw _close(this),new RangeError(kRangeErrorMessage);res=Buffer.concat(buffers,nread);_close(this);return res}assert(this._handle,"zlib binding closed");res=this._handle.write(flushFlag,chunk,inOff,availInBefore,this._buffer,this._offset,availOutBefore);res.buffer=chunk;res.callback=callback};util.inherits(Deflate,Zlib);util.inherits(Inflate,
Zlib);util.inherits(Gzip,Zlib);util.inherits(Gunzip,Zlib);util.inherits(DeflateRaw,Zlib);util.inherits(InflateRaw,Zlib);util.inherits(Unzip,Zlib)}).call(this,__webpack_require__(22))},function(module,exports,__webpack_require__){function Stream(){EE.call(this)}module.exports=Stream;var EE=__webpack_require__(33).EventEmitter;__webpack_require__(28)(Stream,EE);Stream.Readable=__webpack_require__(41);Stream.Writable=__webpack_require__(123);Stream.Duplex=__webpack_require__(124);Stream.Transform=__webpack_require__(125);
Stream.PassThrough=__webpack_require__(126);Stream.Stream=Stream;Stream.prototype.pipe=function(dest,options){function ondata(chunk){dest.writable&&!1===dest.write(chunk)&&source.pause&&source.pause()}function ondrain(){source.readable&&source.resume&&source.resume()}function onend(){didOnEnd||(didOnEnd=!0,dest.end())}function onclose(){didOnEnd||(didOnEnd=!0,"function"===typeof dest.destroy&&dest.destroy())}function onerror(er){cleanup();if(0===EE.listenerCount(this,"error"))throw er;}function cleanup(){source.removeListener("data",
ondata);dest.removeListener("drain",ondrain);source.removeListener("end",onend);source.removeListener("close",onclose);source.removeListener("error",onerror);dest.removeListener("error",onerror);source.removeListener("end",cleanup);source.removeListener("close",cleanup);dest.removeListener("close",cleanup)}var source=this;source.on("data",ondata);dest.on("drain",ondrain);dest._isStdio||options&&!1===options.end||(source.on("end",onend),source.on("close",onclose));var didOnEnd=!1;source.on("error",
onerror);dest.on("error",onerror);source.on("end",cleanup);source.on("close",cleanup);dest.on("close",cleanup);dest.emit("pipe",source);return dest}},function(module,exports){},function(module,exports,__webpack_require__){var Buffer=__webpack_require__(49).Buffer,util=__webpack_require__(119);module.exports=function(){function BufferList(){if(!(this instanceof BufferList))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null;this.length=0}BufferList.prototype.push=function(v){v=
{data:v,next:null};0<this.length?this.tail.next=v:this.head=v;this.tail=v;++this.length};BufferList.prototype.unshift=function(v){v={data:v,next:this.head};0===this.length&&(this.tail=v);this.head=v;++this.length};BufferList.prototype.shift=function(){if(0!==this.length){var ret=this.head.data;this.head=1===this.length?this.tail=null:this.head.next;--this.length;return ret}};BufferList.prototype.clear=function(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function(s){if(0===
this.length)return"";for(var p=this.head,ret=""+p.data;p=p.next;)ret+=s+p.data;return ret};BufferList.prototype.concat=function(n){if(0===this.length)return Buffer.alloc(0);if(1===this.length)return this.head.data;n=Buffer.allocUnsafe(n>>>0);for(var p=this.head,i=0;p;)p.data.copy(n,i),i+=p.data.length,p=p.next;return n};return BufferList}();util&&util.inspect&&util.inspect.custom&&(module.exports.prototype[util.inspect.custom]=function(){var obj=util.inspect({length:this.length});return this.constructor.name+
" "+obj})},function(module,exports){},function(module,exports,__webpack_require__){(function(global$jscomp$0,process){(function(global,undefined){function clearImmediate(handle){delete tasksByHandle[handle]}function runIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{var task=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{var callback=task.callback,args=task.args;switch(args.length){case 0:callback();break;case 1:callback(args[0]);break;case 2:callback(args[0],
args[1]);break;case 3:callback(args[0],args[1],args[2]);break;default:callback.apply(undefined,args)}}finally{clearImmediate(handle),currentlyRunningATask=!1}}}}function installNextTickImplementation(){registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}}function canUsePostMessage(){if(global.postMessage&&!global.importScripts){var postMessageIsAsynchronous=!0,oldOnMessage=global.onmessage;global.onmessage=function(){postMessageIsAsynchronous=!1};global.postMessage("",
"*");global.onmessage=oldOnMessage;return postMessageIsAsynchronous}}function installPostMessageImplementation(){var messagePrefix="setImmediate$"+Math.random()+"$",onGlobalMessage=function(event){event.source===global&&"string"===typeof event.data&&0===event.data.indexOf(messagePrefix)&&runIfPresent(+event.data.slice(messagePrefix.length))};global.addEventListener?global.addEventListener("message",onGlobalMessage,!1):global.attachEvent("onmessage",onGlobalMessage);registerImmediate=function(handle){global.postMessage(messagePrefix+
handle,"*")}}function installMessageChannelImplementation(){var channel=new MessageChannel;channel.port1.onmessage=function(event){runIfPresent(event.data)};registerImmediate=function(handle){channel.port2.postMessage(handle)}}function installReadyStateChangeImplementation(){var html=doc.documentElement;registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle);script.onreadystatechange=null;html.removeChild(script);script=null};
html.appendChild(script)}}function installSetTimeoutImplementation(){registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}}if(!global.setImmediate){var nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,registerImmediate,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global);attachTo=attachTo&&attachTo.setTimeout?attachTo:global;"[object process]"==={}.toString.call(global.process)?installNextTickImplementation():canUsePostMessage()?installPostMessageImplementation():
global.MessageChannel?installMessageChannelImplementation():doc&&"onreadystatechange"in doc.createElement("script")?installReadyStateChangeImplementation():installSetTimeoutImplementation();attachTo.setImmediate=function(callback){"function"!==typeof callback&&(callback=new Function(""+callback));for(var args=Array(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];tasksByHandle[nextHandle]={callback:callback,args:args};registerImmediate(nextHandle);return nextHandle++};attachTo.clearImmediate=
clearImmediate}})("undefined"===typeof self?"undefined"===typeof global$jscomp$0?this:global$jscomp$0:self)}).call(this,__webpack_require__(15),__webpack_require__(22))},function(module,exports,__webpack_require__){(function(global){function config(name){try{if(!global.localStorage)return!1}catch(_){return!1}name=global.localStorage[name];return null==name?!1:"true"===String(name).toLowerCase()}module.exports=function(fn,msg){if(config("noDeprecation"))return fn;var warned=!1;return function(){if(!warned){if(config("throwDeprecation"))throw Error(msg);
config("traceDeprecation")?console.trace(msg):console.warn(msg);warned=!0}return fn.apply(this,arguments)}}}).call(this,__webpack_require__(15))},function(module,exports,__webpack_require__){function PassThrough(options){if(!(this instanceof PassThrough))return new PassThrough(options);Transform.call(this,options)}module.exports=PassThrough;var Transform=__webpack_require__(72);module=Object.create(__webpack_require__(42));module.inherits=__webpack_require__(28);module.inherits(PassThrough,Transform);
PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(61)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(32)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(41).Transform},function(module,exports,__webpack_require__){module.exports=__webpack_require__(41).PassThrough},function(module,exports,__webpack_require__){(function(Buffer,
process){function Zlib(mode){if("number"!==typeof mode||mode<exports.DEFLATE||mode>exports.UNZIP)throw new TypeError("Bad argument");this.dictionary=null;this.flush=this.err=0;this.init_done=!1;this.memLevel=this.level=0;this.mode=mode;this.windowBits=this.strategy=0;this.pending_close=this.write_in_progress=!1;this.gzip_id_bytes_read=0}var assert=__webpack_require__(73),Zstream=__webpack_require__(131),zlib_deflate=__webpack_require__(132),zlib_inflate=__webpack_require__(135),constants=__webpack_require__(138),
key;for(key in constants)exports[key]=constants[key];exports.NONE=0;exports.DEFLATE=1;exports.INFLATE=2;exports.GZIP=3;exports.GUNZIP=4;exports.DEFLATERAW=5;exports.INFLATERAW=6;exports.UNZIP=7;Zlib.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,assert(this.init_done,"close before init"),assert(this.mode<=exports.UNZIP),this.mode===exports.DEFLATE||this.mode===exports.GZIP||this.mode===exports.DEFLATERAW?zlib_deflate.deflateEnd(this.strm):(this.mode===
exports.INFLATE||this.mode===exports.GUNZIP||this.mode===exports.INFLATERAW||this.mode===exports.UNZIP)&&zlib_inflate.inflateEnd(this.strm),this.mode=exports.NONE,this.dictionary=null)};Zlib.prototype.write=function(flush,input,in_off,in_len,out,out_off,out_len){return this._write(!0,flush,input,in_off,in_len,out,out_off,out_len)};Zlib.prototype.writeSync=function(flush,input,in_off,in_len,out,out_off,out_len){return this._write(!1,flush,input,in_off,in_len,out,out_off,out_len)};Zlib.prototype._write=
function(async,flush,input,in_off,in_len,out,out_off,out_len){assert.equal(arguments.length,8);assert(this.init_done,"write before init");assert(this.mode!==exports.NONE,"already finalized");assert.equal(!1,this.write_in_progress,"write already in progress");assert.equal(!1,this.pending_close,"close is pending");this.write_in_progress=!0;assert.equal(!1,void 0===flush,"must provide flush value");this.write_in_progress=!0;if(flush!==exports.Z_NO_FLUSH&&flush!==exports.Z_PARTIAL_FLUSH&&flush!==exports.Z_SYNC_FLUSH&&
flush!==exports.Z_FULL_FLUSH&&flush!==exports.Z_FINISH&&flush!==exports.Z_BLOCK)throw Error("Invalid flush value");null==input&&(input=Buffer.alloc(0),in_off=in_len=0);this.strm.avail_in=in_len;this.strm.input=input;this.strm.next_in=in_off;this.strm.avail_out=out_len;this.strm.output=out;this.strm.next_out=out_off;this.flush=flush;if(async){var self=this;process.nextTick(function(){self._process();self._after()});return this}this._process();if(this._checkError())return this._afterSync()};Zlib.prototype._afterSync=
function(){var avail_out=this.strm.avail_out,avail_in=this.strm.avail_in;this.write_in_progress=!1;return[avail_in,avail_out]};Zlib.prototype._process=function(){var next_expected_header_byte=null;switch(this.mode){case exports.DEFLATE:case exports.GZIP:case exports.DEFLATERAW:this.err=zlib_deflate.deflate(this.strm,this.flush);break;case exports.UNZIP:switch(0<this.strm.avail_in&&(next_expected_header_byte=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===next_expected_header_byte)break;
if(31===this.strm.input[next_expected_header_byte]){if(this.gzip_id_bytes_read=1,next_expected_header_byte++,1===this.strm.avail_in)break}else{this.mode=exports.INFLATE;break}case 1:if(null===next_expected_header_byte)break;139===this.strm.input[next_expected_header_byte]?(this.gzip_id_bytes_read=2,this.mode=exports.GUNZIP):this.mode=exports.INFLATE;break;default:throw Error("invalid number of gzip magic number bytes read");}case exports.INFLATE:case exports.GUNZIP:case exports.INFLATERAW:this.err=
zlib_inflate.inflate(this.strm,this.flush);this.err===exports.Z_NEED_DICT&&this.dictionary&&(this.err=zlib_inflate.inflateSetDictionary(this.strm,this.dictionary),this.err===exports.Z_OK?this.err=zlib_inflate.inflate(this.strm,this.flush):this.err===exports.Z_DATA_ERROR&&(this.err=exports.Z_NEED_DICT));for(;0<this.strm.avail_in&&this.mode===exports.GUNZIP&&this.err===exports.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=zlib_inflate.inflate(this.strm,this.flush);break;default:throw Error("Unknown mode "+
this.mode);}};Zlib.prototype._checkError=function(){switch(this.err){case exports.Z_OK:case exports.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===exports.Z_FINISH)return this._error("unexpected end of file"),!1;break;case exports.Z_STREAM_END:break;case exports.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0};Zlib.prototype._after=function(){if(this._checkError()){var avail_out=
this.strm.avail_out,avail_in=this.strm.avail_in;this.write_in_progress=!1;this.callback(avail_in,avail_out);this.pending_close&&this.close()}};Zlib.prototype._error=function(message){this.strm.msg&&(message=this.strm.msg);this.onerror(message,this.err);this.write_in_progress=!1;this.pending_close&&this.close()};Zlib.prototype.init=function(windowBits,level,memLevel,strategy,dictionary){assert(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])");assert(8<=
windowBits&&15>=windowBits,"invalid windowBits");assert(-1<=level&&9>=level,"invalid compression level");assert(1<=memLevel&&9>=memLevel,"invalid memlevel");assert(strategy===exports.Z_FILTERED||strategy===exports.Z_HUFFMAN_ONLY||strategy===exports.Z_RLE||strategy===exports.Z_FIXED||strategy===exports.Z_DEFAULT_STRATEGY,"invalid strategy");this._init(level,windowBits,memLevel,strategy,dictionary);this._setDictionary()};Zlib.prototype.params=function(){throw Error("deflateParams Not supported");};
Zlib.prototype.reset=function(){this._reset();this._setDictionary()};Zlib.prototype._init=function(level,windowBits,memLevel,strategy,dictionary){this.level=level;this.windowBits=windowBits;this.memLevel=memLevel;this.strategy=strategy;this.flush=exports.Z_NO_FLUSH;this.err=exports.Z_OK;if(this.mode===exports.GZIP||this.mode===exports.GUNZIP)this.windowBits+=16;this.mode===exports.UNZIP&&(this.windowBits+=32);if(this.mode===exports.DEFLATERAW||this.mode===exports.INFLATERAW)this.windowBits*=-1;this.strm=
new Zstream;switch(this.mode){case exports.DEFLATE:case exports.GZIP:case exports.DEFLATERAW:this.err=zlib_deflate.deflateInit2(this.strm,this.level,exports.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case exports.INFLATE:case exports.GUNZIP:case exports.INFLATERAW:case exports.UNZIP:this.err=zlib_inflate.inflateInit2(this.strm,this.windowBits);break;default:throw Error("Unknown mode "+this.mode);}this.err!==exports.Z_OK&&this._error("Init error");this.dictionary=dictionary;this.write_in_progress=
!1;this.init_done=!0};Zlib.prototype._setDictionary=function(){if(null!=this.dictionary){this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:this.err=zlib_deflate.deflateSetDictionary(this.strm,this.dictionary)}this.err!==exports.Z_OK&&this._error("Failed to set dictionary")}};Zlib.prototype._reset=function(){this.err=exports.Z_OK;switch(this.mode){case exports.DEFLATE:case exports.DEFLATERAW:case exports.GZIP:this.err=zlib_deflate.deflateReset(this.strm);break;case exports.INFLATE:case exports.INFLATERAW:case exports.GUNZIP:this.err=
zlib_inflate.inflateReset(this.strm)}this.err!==exports.Z_OK&&this._error("Failed to reset stream")};exports.Zlib=Zlib}).call(this,__webpack_require__(25).Buffer,__webpack_require__(22))},function(module,exports,__webpack_require__){var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;module.exports=function(){try{if(!Object.assign)return!1;var test1=new String("abc");test1[5]="de";if("5"===Object.getOwnPropertyNames(test1)[0])return!1;
var test2={};for(test1=0;10>test1;test1++)test2["_"+String.fromCharCode(test1)]=test1;if("0123456789"!==Object.getOwnPropertyNames(test2).map(function(n){return test2[n]}).join(""))return!1;var test3={};"abcdefghijklmnopqrst".split("").forEach(function(letter){test3[letter]=letter});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},test3)).join("")?!1:!0}catch(err){return!1}}()?Object.assign:function(target,source){if(null===target||void 0===target)throw new TypeError("Object.assign cannot be called with null or undefined");
var to=Object(target);for(var symbols,s=1;s<arguments.length;s++){var from=Object(arguments[s]);for(var key in from)hasOwnProperty.call(from,key)&&(to[key]=from[key]);if(getOwnPropertySymbols){symbols=getOwnPropertySymbols(from);for(var i=0;i<symbols.length;i++)propIsEnumerable.call(from,symbols[i])&&(to[symbols[i]]=from[symbols[i]])}}return to}},function(module,exports){module.exports=function(arg){return arg&&"object"===typeof arg&&"function"===typeof arg.copy&&"function"===typeof arg.fill&&"function"===
typeof arg.readUInt8}},function(module,exports){module.exports="function"===typeof Object.create?function(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype;ctor.prototype=new TempCtor;ctor.prototype.constructor=ctor}},function(module,exports,__webpack_require__){module.exports=function(){this.input=
null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},function(module,exports,__webpack_require__){function err(strm,errorCode){strm.msg=msg[errorCode];return errorCode}function zero(buf){for(var len=buf.length;0<=--len;)buf[len]=0}function flush_pending(strm){var s=strm.state,len=s.pending;len>strm.avail_out&&(len=strm.avail_out);0!==len&&(utils.arraySet(strm.output,s.pending_buf,
s.pending_out,len,strm.next_out),strm.next_out+=len,s.pending_out+=len,strm.total_out+=len,strm.avail_out-=len,s.pending-=len,0===s.pending&&(s.pending_out=0))}function flush_block_only(s,last){trees._tr_flush_block(s,0<=s.block_start?s.block_start:-1,s.strstart-s.block_start,last);s.block_start=s.strstart;flush_pending(s.strm)}function put_byte(s,b){s.pending_buf[s.pending++]=b}function putShortMSB(s,b){s.pending_buf[s.pending++]=b>>>8&255;s.pending_buf[s.pending++]=b&255}function longest_match(s,
cur_match){var chain_length=s.max_chain_length,scan=s.strstart,best_len=s.prev_length,nice_match=s.nice_match,limit=s.strstart>s.w_size-262?s.strstart-(s.w_size-262):0,_win=s.window,wmask=s.w_mask,prev=s.prev,strend=s.strstart+258,scan_end1=_win[scan+best_len-1],scan_end=_win[scan+best_len];s.prev_length>=s.good_match&&(chain_length>>=2);nice_match>s.lookahead&&(nice_match=s.lookahead);do{var match=cur_match;if(_win[match+best_len]===scan_end&&_win[match+best_len-1]===scan_end1&&_win[match]===_win[scan]&&
_win[++match]===_win[scan+1]){scan+=2;for(match++;_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&_win[++scan]===_win[++match]&&scan<strend;);match=258-(strend-scan);scan=strend-258;if(match>best_len){s.match_start=cur_match;best_len=match;if(match>=nice_match)break;scan_end1=_win[scan+best_len-1];scan_end=_win[scan+best_len]}}}while((cur_match=
prev[cur_match&wmask])>limit&&0!==--chain_length);return best_len<=s.lookahead?best_len:s.lookahead}function fill_window(s){var _w_size=s.w_size,n;do{var more=s.window_size-s.lookahead-s.strstart;if(s.strstart>=_w_size+(_w_size-262)){utils.arraySet(s.window,s.window,_w_size,_w_size,0);s.match_start-=_w_size;s.strstart-=_w_size;s.block_start-=_w_size;var p=n=s.hash_size;do{var m=s.head[--p];s.head[p]=m>=_w_size?m-_w_size:0}while(--n);p=n=_w_size;do m=s.prev[--p],s.prev[p]=m>=_w_size?m-_w_size:0;while(--n);
more+=_w_size}if(0===s.strm.avail_in)break;p=s.strm;n=s.window;m=s.strstart+s.lookahead;var len=p.avail_in;len>more&&(len=more);0===len?n=0:(p.avail_in-=len,utils.arraySet(n,p.input,p.next_in,len,m),1===p.state.wrap?p.adler=adler32(p.adler,n,len,m):2===p.state.wrap&&(p.adler=crc32(p.adler,n,len,m)),p.next_in+=len,p.total_in+=len,n=len);s.lookahead+=n;if(3<=s.lookahead+s.insert)for(more=s.strstart-s.insert,s.ins_h=s.window[more],s.ins_h=(s.ins_h<<s.hash_shift^s.window[more+1])&s.hash_mask;s.insert&&
!(s.ins_h=(s.ins_h<<s.hash_shift^s.window[more+3-1])&s.hash_mask,s.prev[more&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=more,more++,s.insert--,3>s.lookahead+s.insert););}while(262>s.lookahead&&0!==s.strm.avail_in)}function deflate_fast(s,flush){for(var hash_head;;){if(262>s.lookahead){fill_window(s);if(262>s.lookahead&&0===flush)return 1;if(0===s.lookahead)break}hash_head=0;3<=s.lookahead&&(s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+3-1])&s.hash_mask,hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],
s.head[s.ins_h]=s.strstart);0!==hash_head&&s.strstart-hash_head<=s.w_size-262&&(s.match_length=longest_match(s,hash_head));if(3<=s.match_length)if(hash_head=trees._tr_tally(s,s.strstart-s.match_start,s.match_length-3),s.lookahead-=s.match_length,s.match_length<=s.max_lazy_match&&3<=s.lookahead){s.match_length--;do s.strstart++,s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+3-1])&s.hash_mask,s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart;while(0!==--s.match_length);s.strstart++}else s.strstart+=
s.match_length,s.match_length=0,s.ins_h=s.window[s.strstart],s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+1])&s.hash_mask;else hash_head=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++;if(hash_head&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}s.insert=2>s.strstart?s.strstart:2;return 4===flush?(flush_block_only(s,!0),0===s.strm.avail_out?3:4):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?1:2}function deflate_slow(s,flush){for(var hash_head,max_insert;;){if(262>
s.lookahead){fill_window(s);if(262>s.lookahead&&0===flush)return 1;if(0===s.lookahead)break}hash_head=0;3<=s.lookahead&&(s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+3-1])&s.hash_mask,hash_head=s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart);s.prev_length=s.match_length;s.prev_match=s.match_start;s.match_length=2;0!==hash_head&&s.prev_length<s.max_lazy_match&&s.strstart-hash_head<=s.w_size-262&&(s.match_length=longest_match(s,hash_head),5>=s.match_length&&(1===s.strategy||
3===s.match_length&&4096<s.strstart-s.match_start)&&(s.match_length=2));if(3<=s.prev_length&&s.match_length<=s.prev_length){max_insert=s.strstart+s.lookahead-3;hash_head=trees._tr_tally(s,s.strstart-1-s.prev_match,s.prev_length-3);s.lookahead-=s.prev_length-1;s.prev_length-=2;do++s.strstart<=max_insert&&(s.ins_h=(s.ins_h<<s.hash_shift^s.window[s.strstart+3-1])&s.hash_mask,s.prev[s.strstart&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=s.strstart);while(0!==--s.prev_length);s.match_available=0;s.match_length=
2;s.strstart++;if(hash_head&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}else if(s.match_available){if((hash_head=trees._tr_tally(s,0,s.window[s.strstart-1]))&&flush_block_only(s,!1),s.strstart++,s.lookahead--,0===s.strm.avail_out)return 1}else s.match_available=1,s.strstart++,s.lookahead--}s.match_available&&(trees._tr_tally(s,0,s.window[s.strstart-1]),s.match_available=0);s.insert=2>s.strstart?s.strstart:2;return 4===flush?(flush_block_only(s,!0),0===s.strm.avail_out?3:4):s.last_lit&&
(flush_block_only(s,!1),0===s.strm.avail_out)?1:2}function deflate_rle(s,flush){for(var bflush,scan,strend,_win=s.window;;){if(258>=s.lookahead){fill_window(s);if(258>=s.lookahead&&0===flush)return 1;if(0===s.lookahead)break}s.match_length=0;if(3<=s.lookahead&&0<s.strstart&&(scan=s.strstart-1,bflush=_win[scan],bflush===_win[++scan]&&bflush===_win[++scan]&&bflush===_win[++scan])){for(strend=s.strstart+258;bflush===_win[++scan]&&bflush===_win[++scan]&&bflush===_win[++scan]&&bflush===_win[++scan]&&bflush===
_win[++scan]&&bflush===_win[++scan]&&bflush===_win[++scan]&&bflush===_win[++scan]&&scan<strend;);s.match_length=258-(strend-scan);s.match_length>s.lookahead&&(s.match_length=s.lookahead)}3<=s.match_length?(bflush=trees._tr_tally(s,1,s.match_length-3),s.lookahead-=s.match_length,s.strstart+=s.match_length,s.match_length=0):(bflush=trees._tr_tally(s,0,s.window[s.strstart]),s.lookahead--,s.strstart++);if(bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}s.insert=0;return 4===flush?(flush_block_only(s,
!0),0===s.strm.avail_out?3:4):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?1:2}function deflate_huff(s,flush){for(var bflush;;){if(0===s.lookahead&&(fill_window(s),0===s.lookahead)){if(0===flush)return 1;break}s.match_length=0;bflush=trees._tr_tally(s,0,s.window[s.strstart]);s.lookahead--;s.strstart++;if(bflush&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}s.insert=0;return 4===flush?(flush_block_only(s,!0),0===s.strm.avail_out?3:4):s.last_lit&&(flush_block_only(s,!1),0===s.strm.avail_out)?
1:2}function Config(good_length,max_lazy,nice_length,max_chain,func){this.good_length=good_length;this.max_lazy=max_lazy;this.nice_length=nice_length;this.max_chain=max_chain;this.func=func}function DeflateState(){this.strm=null;this.status=0;this.pending_buf=null;this.wrap=this.pending=this.pending_out=this.pending_buf_size=0;this.gzhead=null;this.gzindex=0;this.method=8;this.last_flush=-1;this.w_mask=this.w_bits=this.w_size=0;this.window=null;this.window_size=0;this.head=this.prev=null;this.nice_match=
this.good_match=this.strategy=this.level=this.max_lazy_match=this.max_chain_length=this.prev_length=this.lookahead=this.match_start=this.strstart=this.match_available=this.prev_match=this.match_length=this.block_start=this.hash_shift=this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new utils.Buf16(1146);this.dyn_dtree=new utils.Buf16(122);this.bl_tree=new utils.Buf16(78);zero(this.dyn_ltree);zero(this.dyn_dtree);zero(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;
this.bl_count=new utils.Buf16(16);this.heap=new utils.Buf16(573);zero(this.heap);this.heap_max=this.heap_len=0;this.depth=new utils.Buf16(573);zero(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit=this.lit_bufsize=this.l_buf=0}function deflateResetKeep(strm){if(!strm||!strm.state)return err(strm,-2);strm.total_in=strm.total_out=0;strm.data_type=2;var s=strm.state;s.pending=0;s.pending_out=0;0>s.wrap&&(s.wrap=-s.wrap);s.status=s.wrap?
42:113;strm.adler=2===s.wrap?0:1;s.last_flush=0;trees._tr_init(s);return 0}function deflateReset(strm){var ret=deflateResetKeep(strm);0===ret&&(strm=strm.state,strm.window_size=2*strm.w_size,zero(strm.head),strm.max_lazy_match=configuration_table[strm.level].max_lazy,strm.good_match=configuration_table[strm.level].good_length,strm.nice_match=configuration_table[strm.level].nice_length,strm.max_chain_length=configuration_table[strm.level].max_chain,strm.strstart=0,strm.block_start=0,strm.lookahead=
0,strm.insert=0,strm.match_length=strm.prev_length=2,strm.match_available=0,strm.ins_h=0);return ret}function deflateInit2(strm,level,method,windowBits,memLevel,strategy){if(!strm)return-2;var wrap=1;-1===level&&(level=6);0>windowBits?(wrap=0,windowBits=-windowBits):15<windowBits&&(wrap=2,windowBits-=16);if(1>memLevel||9<memLevel||8!==method||8>windowBits||15<windowBits||0>level||9<level||0>strategy||4<strategy)return err(strm,-2);8===windowBits&&(windowBits=9);var s=new DeflateState;strm.state=s;
s.strm=strm;s.wrap=wrap;s.gzhead=null;s.w_bits=windowBits;s.w_size=1<<s.w_bits;s.w_mask=s.w_size-1;s.hash_bits=memLevel+7;s.hash_size=1<<s.hash_bits;s.hash_mask=s.hash_size-1;s.hash_shift=~~((s.hash_bits+3-1)/3);s.window=new utils.Buf8(2*s.w_size);s.head=new utils.Buf16(s.hash_size);s.prev=new utils.Buf16(s.w_size);s.lit_bufsize=1<<memLevel+6;s.pending_buf_size=4*s.lit_bufsize;s.pending_buf=new utils.Buf8(s.pending_buf_size);s.d_buf=1*s.lit_bufsize;s.l_buf=3*s.lit_bufsize;s.level=level;s.strategy=
strategy;s.method=method;return deflateReset(strm)}var utils=__webpack_require__(50),trees=__webpack_require__(133),adler32=__webpack_require__(75),crc32=__webpack_require__(76),msg=__webpack_require__(134);var configuration_table=[new Config(0,0,0,0,function(s,flush){var max_block_size=65535;for(max_block_size>s.pending_buf_size-5&&(max_block_size=s.pending_buf_size-5);;){if(1>=s.lookahead){fill_window(s);if(0===s.lookahead&&0===flush)return 1;if(0===s.lookahead)break}s.strstart+=s.lookahead;s.lookahead=
0;var max_start=s.block_start+max_block_size;if(0===s.strstart||s.strstart>=max_start)if(s.lookahead=s.strstart-max_start,s.strstart=max_start,flush_block_only(s,!1),0===s.strm.avail_out)return 1;if(s.strstart-s.block_start>=s.w_size-262&&(flush_block_only(s,!1),0===s.strm.avail_out))return 1}s.insert=0;if(4===flush)return flush_block_only(s,!0),0===s.strm.avail_out?3:4;s.strstart>s.block_start&&flush_block_only(s,!1);return 1}),new Config(4,4,8,4,deflate_fast),new Config(4,5,16,8,deflate_fast),new Config(4,
6,32,32,deflate_fast),new Config(4,4,16,16,deflate_slow),new Config(8,16,32,32,deflate_slow),new Config(8,16,128,128,deflate_slow),new Config(8,32,128,256,deflate_slow),new Config(32,128,258,1024,deflate_slow),new Config(32,258,258,4096,deflate_slow)];exports.deflateInit=function(strm,level){return deflateInit2(strm,level,8,15,8,0)};exports.deflateInit2=deflateInit2;exports.deflateReset=deflateReset;exports.deflateResetKeep=deflateResetKeep;exports.deflateSetHeader=function(strm,head){if(!strm||!strm.state||
2!==strm.state.wrap)return-2;strm.state.gzhead=head;return 0};exports.deflate=function(strm,flush){if(!strm||!strm.state||5<flush||0>flush)return strm?err(strm,-2):-2;var s=strm.state;if(!strm.output||!strm.input&&0!==strm.avail_in||666===s.status&&4!==flush)return err(strm,0===strm.avail_out?-5:-2);s.strm=strm;var old_flush=s.last_flush;s.last_flush=flush;if(42===s.status)if(2===s.wrap)strm.adler=0,put_byte(s,31),put_byte(s,139),put_byte(s,8),s.gzhead?(put_byte(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?
2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),put_byte(s,s.gzhead.time&255),put_byte(s,s.gzhead.time>>8&255),put_byte(s,s.gzhead.time>>16&255),put_byte(s,s.gzhead.time>>24&255),put_byte(s,9===s.level?2:2<=s.strategy||2>s.level?4:0),put_byte(s,s.gzhead.os&255),s.gzhead.extra&&s.gzhead.extra.length&&(put_byte(s,s.gzhead.extra.length&255),put_byte(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=69):
(put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,0),put_byte(s,9===s.level?2:2<=s.strategy||2>s.level?4:0),put_byte(s,3),s.status=113);else{var beg=8+(s.w_bits-8<<4)<<8;beg|=(2<=s.strategy||2>s.level?0:6>s.level?1:6===s.level?2:3)<<6;0!==s.strstart&&(beg|=32);s.status=113;putShortMSB(s,beg+(31-beg%31));0!==s.strstart&&(putShortMSB(s,strm.adler>>>16),putShortMSB(s,strm.adler&65535));strm.adler=1}if(69===s.status)if(s.gzhead.extra){for(beg=s.pending;s.gzindex<(s.gzhead.extra.length&
65535)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending!==s.pending_buf_size));)put_byte(s,s.gzhead.extra[s.gzindex]&255),s.gzindex++;s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg));s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=73)}else s.status=73;if(73===s.status)if(s.gzhead.name){beg=s.pending;do{if(s.pending===s.pending_buf_size&&
(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){var val=1;break}val=s.gzindex<s.gzhead.name.length?s.gzhead.name.charCodeAt(s.gzindex++)&255:0;put_byte(s,val)}while(0!==val);s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg));0===val&&(s.gzindex=0,s.status=91)}else s.status=91;if(91===s.status)if(s.gzhead.comment){beg=s.pending;do{if(s.pending===
s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg)),flush_pending(strm),beg=s.pending,s.pending===s.pending_buf_size)){val=1;break}val=s.gzindex<s.gzhead.comment.length?s.gzhead.comment.charCodeAt(s.gzindex++)&255:0;put_byte(s,val)}while(0!==val);s.gzhead.hcrc&&s.pending>beg&&(strm.adler=crc32(strm.adler,s.pending_buf,s.pending-beg,beg));0===val&&(s.status=103)}else s.status=103;103===s.status&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&
flush_pending(strm),s.pending+2<=s.pending_buf_size&&(put_byte(s,strm.adler&255),put_byte(s,strm.adler>>8&255),strm.adler=0,s.status=113)):s.status=113);if(0!==s.pending){if(flush_pending(strm),0===strm.avail_out)return s.last_flush=-1,0}else if(0===strm.avail_in&&(flush<<1)-(4<flush?9:0)<=(old_flush<<1)-(4<old_flush?9:0)&&4!==flush)return err(strm,-5);if(666===s.status&&0!==strm.avail_in)return err(strm,-5);if(0!==strm.avail_in||0!==s.lookahead||0!==flush&&666!==s.status){old_flush=2===s.strategy?
deflate_huff(s,flush):3===s.strategy?deflate_rle(s,flush):configuration_table[s.level].func(s,flush);if(3===old_flush||4===old_flush)s.status=666;if(1===old_flush||3===old_flush)return 0===strm.avail_out&&(s.last_flush=-1),0;if(2===old_flush&&(1===flush?trees._tr_align(s):5!==flush&&(trees._tr_stored_block(s,0,0,!1),3===flush&&(zero(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),flush_pending(strm),0===strm.avail_out))return s.last_flush=-1,0}if(4!==flush)return 0;if(0>=s.wrap)return 1;
2===s.wrap?(put_byte(s,strm.adler&255),put_byte(s,strm.adler>>8&255),put_byte(s,strm.adler>>16&255),put_byte(s,strm.adler>>24&255),put_byte(s,strm.total_in&255),put_byte(s,strm.total_in>>8&255),put_byte(s,strm.total_in>>16&255),put_byte(s,strm.total_in>>24&255)):(putShortMSB(s,strm.adler>>>16),putShortMSB(s,strm.adler&65535));flush_pending(strm);0<s.wrap&&(s.wrap=-s.wrap);return 0!==s.pending?0:1};exports.deflateEnd=function(strm){if(!strm||!strm.state)return-2;var status=strm.state.status;if(42!==
status&&69!==status&&73!==status&&91!==status&&103!==status&&113!==status&&666!==status)return err(strm,-2);strm.state=null;return 113===status?err(strm,-3):0};exports.deflateSetDictionary=function(strm,dictionary){var dictLength=dictionary.length;if(!strm||!strm.state)return-2;var s=strm.state;var wrap=s.wrap;if(2===wrap||1===wrap&&42!==s.status||s.lookahead)return-2;1===wrap&&(strm.adler=adler32(strm.adler,dictionary,dictLength,0));s.wrap=0;if(dictLength>=s.w_size){0===wrap&&(zero(s.head),s.strstart=
0,s.block_start=0,s.insert=0);var avail=new utils.Buf8(s.w_size);utils.arraySet(avail,dictionary,dictLength-s.w_size,s.w_size,0);dictionary=avail;dictLength=s.w_size}avail=strm.avail_in;var next=strm.next_in;var input=strm.input;strm.avail_in=dictLength;strm.next_in=0;strm.input=dictionary;for(fill_window(s);3<=s.lookahead;){dictionary=s.strstart;dictLength=s.lookahead-2;do s.ins_h=(s.ins_h<<s.hash_shift^s.window[dictionary+3-1])&s.hash_mask,s.prev[dictionary&s.w_mask]=s.head[s.ins_h],s.head[s.ins_h]=
dictionary,dictionary++;while(--dictLength);s.strstart=dictionary;s.lookahead=2;fill_window(s)}s.strstart+=s.lookahead;s.block_start=s.strstart;s.insert=s.lookahead;s.lookahead=0;s.match_length=s.prev_length=2;s.match_available=0;strm.next_in=next;strm.input=input;strm.avail_in=avail;s.wrap=wrap;return 0};exports.deflateInfo="pako deflate (from Nodeca project)"},function(module,exports,__webpack_require__){function zero(buf){for(var len=buf.length;0<=--len;)buf[len]=0}function StaticTreeDesc(static_tree,
extra_bits,extra_base,elems,max_length){this.static_tree=static_tree;this.extra_bits=extra_bits;this.extra_base=extra_base;this.elems=elems;this.max_length=max_length;this.has_stree=static_tree&&static_tree.length}function TreeDesc(dyn_tree,stat_desc){this.dyn_tree=dyn_tree;this.max_code=0;this.stat_desc=stat_desc}function put_short(s,w){s.pending_buf[s.pending++]=w&255;s.pending_buf[s.pending++]=w>>>8&255}function send_bits(s,value,length){s.bi_valid>16-length?(s.bi_buf|=value<<s.bi_valid&65535,
put_short(s,s.bi_buf),s.bi_buf=value>>16-s.bi_valid,s.bi_valid+=length-16):(s.bi_buf|=value<<s.bi_valid&65535,s.bi_valid+=length)}function send_code(s,c,tree){send_bits(s,tree[2*c],tree[2*c+1])}function bi_reverse(code,len){var res=0;do res|=code&1,code>>>=1,res<<=1;while(0<--len);return res>>>1}function gen_codes(tree,max_code,bl_count){var next_code=Array(16),code=0,bits;for(bits=1;15>=bits;bits++)next_code[bits]=code=code+bl_count[bits-1]<<1;for(bl_count=0;bl_count<=max_code;bl_count++)code=tree[2*
bl_count+1],0!==code&&(tree[2*bl_count]=bi_reverse(next_code[code]++,code))}function init_block(s){var n;for(n=0;286>n;n++)s.dyn_ltree[2*n]=0;for(n=0;30>n;n++)s.dyn_dtree[2*n]=0;for(n=0;19>n;n++)s.bl_tree[2*n]=0;s.dyn_ltree[512]=1;s.opt_len=s.static_len=0;s.last_lit=s.matches=0}function bi_windup(s){8<s.bi_valid?put_short(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf);s.bi_buf=0;s.bi_valid=0}function smaller(tree,n,m,depth){var _n2=2*n,_m2=2*m;return tree[_n2]<tree[_m2]||tree[_n2]===
tree[_m2]&&depth[n]<=depth[m]}function pqdownheap(s,tree,k){for(var v=s.heap[k],j=k<<1;j<=s.heap_len;){j<s.heap_len&&smaller(tree,s.heap[j+1],s.heap[j],s.depth)&&j++;if(smaller(tree,v,s.heap[j],s.depth))break;s.heap[k]=s.heap[j];k=j;j<<=1}s.heap[k]=v}function compress_block(s,ltree,dtree){var lx=0;if(0!==s.last_lit){do{var dist=s.pending_buf[s.d_buf+2*lx]<<8|s.pending_buf[s.d_buf+2*lx+1];var lc=s.pending_buf[s.l_buf+lx];lx++;if(0===dist)send_code(s,lc,ltree);else{var code=_length_code[lc];send_code(s,
code+256+1,ltree);var extra=extra_lbits[code];0!==extra&&(lc-=base_length[code],send_bits(s,lc,extra));dist--;code=256>dist?_dist_code[dist]:_dist_code[256+(dist>>>7)];send_code(s,code,dtree);extra=extra_dbits[code];0!==extra&&(dist-=base_dist[code],send_bits(s,dist,extra))}}while(lx<s.last_lit)}send_code(s,256,ltree)}function build_tree(s,desc){var tree=desc.dyn_tree,stree=desc.stat_desc.static_tree,has_stree=desc.stat_desc.has_stree,elems=desc.stat_desc.elems,n,max_code=-1;s.heap_len=0;s.heap_max=
573;for(n=0;n<elems;n++)0!==tree[2*n]?(s.heap[++s.heap_len]=max_code=n,s.depth[n]=0):tree[2*n+1]=0;for(;2>s.heap_len;){var node=s.heap[++s.heap_len]=2>max_code?++max_code:0;tree[2*node]=1;s.depth[node]=0;s.opt_len--;has_stree&&(s.static_len-=stree[2*node+1])}desc.max_code=max_code;for(n=s.heap_len>>1;1<=n;n--)pqdownheap(s,tree,n);node=elems;do n=s.heap[1],s.heap[1]=s.heap[s.heap_len--],pqdownheap(s,tree,1),stree=s.heap[1],s.heap[--s.heap_max]=n,s.heap[--s.heap_max]=stree,tree[2*node]=tree[2*n]+tree[2*
stree],s.depth[node]=(s.depth[n]>=s.depth[stree]?s.depth[n]:s.depth[stree])+1,tree[2*n+1]=tree[2*stree+1]=node,s.heap[1]=node++,pqdownheap(s,tree,1);while(2<=s.heap_len);s.heap[--s.heap_max]=s.heap[1];n=desc.dyn_tree;node=desc.max_code;stree=desc.stat_desc.static_tree;has_stree=desc.stat_desc.has_stree;elems=desc.stat_desc.extra_bits;var base=desc.stat_desc.extra_base,max_length=desc.stat_desc.max_length,bits,overflow=0;for(bits=0;15>=bits;bits++)s.bl_count[bits]=0;n[2*s.heap[s.heap_max]+1]=0;for(desc=
s.heap_max+1;573>desc;desc++){var n$jscomp$0=s.heap[desc];bits=n[2*n[2*n$jscomp$0+1]+1]+1;bits>max_length&&(bits=max_length,overflow++);n[2*n$jscomp$0+1]=bits;if(!(n$jscomp$0>node)){s.bl_count[bits]++;var xbits=0;n$jscomp$0>=base&&(xbits=elems[n$jscomp$0-base]);var f=n[2*n$jscomp$0];s.opt_len+=f*(bits+xbits);has_stree&&(s.static_len+=f*(stree[2*n$jscomp$0+1]+xbits))}}if(0!==overflow){do{for(bits=max_length-1;0===s.bl_count[bits];)bits--;s.bl_count[bits]--;s.bl_count[bits+1]+=2;s.bl_count[max_length]--;
overflow-=2}while(0<overflow);for(bits=max_length;0!==bits;bits--)for(n$jscomp$0=s.bl_count[bits];0!==n$jscomp$0;)stree=s.heap[--desc],stree>node||(n[2*stree+1]!==bits&&(s.opt_len+=(bits-n[2*stree+1])*n[2*stree],n[2*stree+1]=bits),n$jscomp$0--)}gen_codes(tree,max_code,s.bl_count)}function scan_tree(s,tree,max_code){var n,prevlen=-1,nextlen=tree[1],count=0,max_count=7,min_count=4;0===nextlen&&(max_count=138,min_count=3);tree[2*(max_code+1)+1]=65535;for(n=0;n<=max_code;n++){var curlen=nextlen;nextlen=
tree[2*(n+1)+1];++count<max_count&&curlen===nextlen||(count<min_count?s.bl_tree[2*curlen]+=count:0!==curlen?(curlen!==prevlen&&s.bl_tree[2*curlen]++,s.bl_tree[32]++):10>=count?s.bl_tree[34]++:s.bl_tree[36]++,count=0,prevlen=curlen,0===nextlen?(max_count=138,min_count=3):curlen===nextlen?(max_count=6,min_count=3):(max_count=7,min_count=4))}}function send_tree(s,tree,max_code){var n,prevlen=-1,nextlen=tree[1],count=0,max_count=7,min_count=4;0===nextlen&&(max_count=138,min_count=3);for(n=0;n<=max_code;n++){var curlen=
nextlen;nextlen=tree[2*(n+1)+1];if(!(++count<max_count&&curlen===nextlen)){if(count<min_count){do send_code(s,curlen,s.bl_tree);while(0!==--count)}else 0!==curlen?(curlen!==prevlen&&(send_code(s,curlen,s.bl_tree),count--),send_code(s,16,s.bl_tree),send_bits(s,count-3,2)):10>=count?(send_code(s,17,s.bl_tree),send_bits(s,count-3,3)):(send_code(s,18,s.bl_tree),send_bits(s,count-11,7));count=0;prevlen=curlen;0===nextlen?(max_count=138,min_count=3):curlen===nextlen?(max_count=6,min_count=3):(max_count=
7,min_count=4)}}}function detect_data_type(s){var black_mask=4093624447,n;for(n=0;31>=n;n++,black_mask>>>=1)if(black_mask&1&&0!==s.dyn_ltree[2*n])return 0;if(0!==s.dyn_ltree[18]||0!==s.dyn_ltree[20]||0!==s.dyn_ltree[26])return 1;for(n=32;256>n;n++)if(0!==s.dyn_ltree[2*n])return 1;return 0}function _tr_stored_block(s,buf,stored_len,last){send_bits(s,last?1:0,3);bi_windup(s);put_short(s,stored_len);put_short(s,~stored_len);utils.arraySet(s.pending_buf,s.window,buf,stored_len,s.pending);s.pending+=stored_len}
var utils=__webpack_require__(50),extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],static_ltree=Array(576);zero(static_ltree);var static_dtree=Array(60);zero(static_dtree);var _dist_code=Array(512);zero(_dist_code);var _length_code=Array(256);zero(_length_code);var base_length=Array(29);
zero(base_length);var base_dist=Array(30);zero(base_dist);var static_l_desc,static_d_desc,static_bl_desc,static_init_done=!1;exports._tr_init=function(s){if(!static_init_done){var n,length,code,bl_count=Array(16);for(code=length=0;28>code;code++)for(base_length[code]=length,n=0;n<1<<extra_lbits[code];n++)_length_code[length++]=code;_length_code[length-1]=code;for(code=length=0;16>code;code++)for(base_dist[code]=length,n=0;n<1<<extra_dbits[code];n++)_dist_code[length++]=code;for(length>>=7;30>code;code++)for(base_dist[code]=
length<<7,n=0;n<1<<extra_dbits[code]-7;n++)_dist_code[256+length++]=code;for(n=0;15>=n;n++)bl_count[n]=0;for(n=0;143>=n;)static_ltree[2*n+1]=8,n++,bl_count[8]++;for(;255>=n;)static_ltree[2*n+1]=9,n++,bl_count[9]++;for(;279>=n;)static_ltree[2*n+1]=7,n++,bl_count[7]++;for(;287>=n;)static_ltree[2*n+1]=8,n++,bl_count[8]++;gen_codes(static_ltree,287,bl_count);for(n=0;30>n;n++)static_dtree[2*n+1]=5,static_dtree[2*n]=bi_reverse(n,5);static_l_desc=new StaticTreeDesc(static_ltree,extra_lbits,257,286,15);static_d_desc=
new StaticTreeDesc(static_dtree,extra_dbits,0,30,15);static_bl_desc=new StaticTreeDesc([],extra_blbits,0,19,7);static_init_done=!0}s.l_desc=new TreeDesc(s.dyn_ltree,static_l_desc);s.d_desc=new TreeDesc(s.dyn_dtree,static_d_desc);s.bl_desc=new TreeDesc(s.bl_tree,static_bl_desc);s.bi_buf=0;s.bi_valid=0;init_block(s)};exports._tr_stored_block=_tr_stored_block;exports._tr_flush_block=function(s,buf,stored_len,last){var max_blindex=0;if(0<s.level){2===s.strm.data_type&&(s.strm.data_type=detect_data_type(s));
build_tree(s,s.l_desc);build_tree(s,s.d_desc);scan_tree(s,s.dyn_ltree,s.l_desc.max_code);scan_tree(s,s.dyn_dtree,s.d_desc.max_code);build_tree(s,s.bl_desc);for(max_blindex=18;3<=max_blindex&&0===s.bl_tree[2*bl_order[max_blindex]+1];max_blindex--);s.opt_len+=3*(max_blindex+1)+14;var opt_lenb=s.opt_len+3+7>>>3;var static_lenb=s.static_len+3+7>>>3;static_lenb<=opt_lenb&&(opt_lenb=static_lenb)}else opt_lenb=static_lenb=stored_len+5;if(stored_len+4<=opt_lenb&&-1!==buf)_tr_stored_block(s,buf,stored_len,
last);else if(4===s.strategy||static_lenb===opt_lenb)send_bits(s,2+(last?1:0),3),compress_block(s,static_ltree,static_dtree);else{send_bits(s,4+(last?1:0),3);buf=s.l_desc.max_code+1;stored_len=s.d_desc.max_code+1;max_blindex+=1;send_bits(s,buf-257,5);send_bits(s,stored_len-1,5);send_bits(s,max_blindex-4,4);for(opt_lenb=0;opt_lenb<max_blindex;opt_lenb++)send_bits(s,s.bl_tree[2*bl_order[opt_lenb]+1],3);send_tree(s,s.dyn_ltree,buf-1);send_tree(s,s.dyn_dtree,stored_len-1);compress_block(s,s.dyn_ltree,
s.dyn_dtree)}init_block(s);last&&bi_windup(s)};exports._tr_tally=function(s,dist,lc){s.pending_buf[s.d_buf+2*s.last_lit]=dist>>>8&255;s.pending_buf[s.d_buf+2*s.last_lit+1]=dist&255;s.pending_buf[s.l_buf+s.last_lit]=lc&255;s.last_lit++;0===dist?s.dyn_ltree[2*lc]++:(s.matches++,dist--,s.dyn_ltree[2*(_length_code[lc]+256+1)]++,s.dyn_dtree[2*(256>dist?_dist_code[dist]:_dist_code[256+(dist>>>7)])]++);return s.last_lit===s.lit_bufsize-1};exports._tr_align=function(s){send_bits(s,2,3);send_code(s,256,static_ltree);
16===s.bi_valid?(put_short(s,s.bi_buf),s.bi_buf=0,s.bi_valid=0):8<=s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf&255,s.bi_buf>>=8,s.bi_valid-=8)}},function(module,exports,__webpack_require__){module.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(module,exports,__webpack_require__){function zswap32(q){return(q>>>24&255)+(q>>>8&65280)+((q&65280)<<8)+((q&
255)<<24)}function InflateState(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new utils.Buf16(320);this.work=new utils.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=
0}function inflateResetKeep(strm){if(!strm||!strm.state)return-2;var state=strm.state;strm.total_in=strm.total_out=state.total=0;strm.msg="";state.wrap&&(strm.adler=state.wrap&1);state.mode=1;state.last=0;state.havedict=0;state.dmax=32768;state.head=null;state.hold=0;state.bits=0;state.lencode=state.lendyn=new utils.Buf32(852);state.distcode=state.distdyn=new utils.Buf32(592);state.sane=1;state.back=-1;return 0}function inflateReset(strm){if(!strm||!strm.state)return-2;var state=strm.state;state.wsize=
0;state.whave=0;state.wnext=0;return inflateResetKeep(strm)}function inflateReset2(strm,windowBits){if(!strm||!strm.state)return-2;var state=strm.state;if(0>windowBits){var wrap=0;windowBits=-windowBits}else wrap=(windowBits>>4)+1,48>windowBits&&(windowBits&=15);if(windowBits&&(8>windowBits||15<windowBits))return-2;null!==state.window&&state.wbits!==windowBits&&(state.window=null);state.wrap=wrap;state.wbits=windowBits;return inflateReset(strm)}function inflateInit2(strm,windowBits){if(!strm)return-2;
var state=new InflateState;strm.state=state;state.window=null;windowBits=inflateReset2(strm,windowBits);0!==windowBits&&(strm.state=null);return windowBits}function updatewindow(strm,src,end,copy){var state=strm.state;null===state.window&&(state.wsize=1<<state.wbits,state.wnext=0,state.whave=0,state.window=new utils.Buf8(state.wsize));copy>=state.wsize?(utils.arraySet(state.window,src,end-state.wsize,state.wsize,0),state.wnext=0,state.whave=state.wsize):(strm=state.wsize-state.wnext,strm>copy&&(strm=
copy),utils.arraySet(state.window,src,end-copy,strm,state.wnext),(copy-=strm)?(utils.arraySet(state.window,src,end-copy,copy,0),state.wnext=copy,state.whave=state.wsize):(state.wnext+=strm,state.wnext===state.wsize&&(state.wnext=0),state.whave<state.wsize&&(state.whave+=strm)));return 0}var utils=__webpack_require__(50),adler32=__webpack_require__(75),crc32=__webpack_require__(76),inflate_fast=__webpack_require__(136),inflate_table=__webpack_require__(137),virgin=!0,lenfix,distfix;exports.inflateReset=
inflateReset;exports.inflateReset2=inflateReset2;exports.inflateResetKeep=inflateResetKeep;exports.inflateInit=function(strm){return inflateInit2(strm,15)};exports.inflateInit2=inflateInit2;exports.inflate=function(strm,flush){var last_val,hbuf=new utils.Buf8(4),order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!strm||!strm.state||!strm.output||!strm.input&&0!==strm.avail_in)return-2;var state=strm.state;12===state.mode&&(state.mode=13);var put=strm.next_out;var output=strm.output;var left=
strm.avail_out;var next=strm.next_in;var input=strm.input;var have=strm.avail_in;var hold=state.hold;var bits=state.bits;var _in=have;var _out=left;var ret=0;a:for(;;)switch(state.mode){case 1:if(0===state.wrap){state.mode=13;break}for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(state.wrap&2&&35615===hold){state.check=0;hbuf[0]=hold&255;hbuf[1]=hold>>>8&255;state.check=crc32(state.check,hbuf,2,0);bits=hold=0;state.mode=2;break}state.flags=0;state.head&&(state.head.done=
!1);if(!(state.wrap&1)||(((hold&255)<<8)+(hold>>8))%31){strm.msg="incorrect header check";state.mode=30;break}if(8!==(hold&15)){strm.msg="unknown compression method";state.mode=30;break}hold>>>=4;bits-=4;var from=(hold&15)+8;if(0===state.wbits)state.wbits=from;else if(from>state.wbits){strm.msg="invalid window size";state.mode=30;break}state.dmax=1<<from;strm.adler=state.check=1;state.mode=hold&512?10:12;bits=hold=0;break;case 2:for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;
bits+=8}state.flags=hold;if(8!==(state.flags&255)){strm.msg="unknown compression method";state.mode=30;break}if(state.flags&57344){strm.msg="unknown header flags set";state.mode=30;break}state.head&&(state.head.text=hold>>8&1);state.flags&512&&(hbuf[0]=hold&255,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0));bits=hold=0;state.mode=3;case 3:for(;32>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.head&&(state.head.time=hold);state.flags&512&&(hbuf[0]=hold&255,
hbuf[1]=hold>>>8&255,hbuf[2]=hold>>>16&255,hbuf[3]=hold>>>24&255,state.check=crc32(state.check,hbuf,4,0));bits=hold=0;state.mode=4;case 4:for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.head&&(state.head.xflags=hold&255,state.head.os=hold>>8);state.flags&512&&(hbuf[0]=hold&255,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0));bits=hold=0;state.mode=5;case 5:if(state.flags&1024){for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=
8}state.length=hold;state.head&&(state.head.extra_len=hold);state.flags&512&&(hbuf[0]=hold&255,hbuf[1]=hold>>>8&255,state.check=crc32(state.check,hbuf,2,0));bits=hold=0}else state.head&&(state.head.extra=null);state.mode=6;case 6:if(state.flags&1024){var copy=state.length;copy>have&&(copy=have);copy&&(state.head&&(from=state.head.extra_len-state.length,state.head.extra||(state.head.extra=Array(state.head.extra_len)),utils.arraySet(state.head.extra,input,next,copy,from)),state.flags&512&&(state.check=
crc32(state.check,input,copy,next)),have-=copy,next+=copy,state.length-=copy);if(state.length)break a}state.length=0;state.mode=7;case 7:if(state.flags&2048){if(0===have)break a;copy=0;do from=input[next+copy++],state.head&&from&&65536>state.length&&(state.head.name+=String.fromCharCode(from));while(from&&copy<have);state.flags&512&&(state.check=crc32(state.check,input,copy,next));have-=copy;next+=copy;if(from)break a}else state.head&&(state.head.name=null);state.length=0;state.mode=8;case 8:if(state.flags&
4096){if(0===have)break a;copy=0;do from=input[next+copy++],state.head&&from&&65536>state.length&&(state.head.comment+=String.fromCharCode(from));while(from&&copy<have);state.flags&512&&(state.check=crc32(state.check,input,copy,next));have-=copy;next+=copy;if(from)break a}else state.head&&(state.head.comment=null);state.mode=9;case 9:if(state.flags&512){for(;16>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(hold!==(state.check&65535)){strm.msg="header crc mismatch";state.mode=
30;break}bits=hold=0}state.head&&(state.head.hcrc=state.flags>>9&1,state.head.done=!0);strm.adler=state.check=0;state.mode=12;break;case 10:for(;32>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}strm.adler=state.check=zswap32(hold);bits=hold=0;state.mode=11;case 11:if(0===state.havedict)return strm.next_out=put,strm.avail_out=left,strm.next_in=next,strm.avail_in=have,state.hold=hold,state.bits=bits,2;strm.adler=state.check=1;state.mode=12;case 12:if(5===flush||6===flush)break a;
case 13:if(state.last){hold>>>=bits&7;bits-=bits&7;state.mode=27;break}for(;3>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.last=hold&1;hold>>>=1;--bits;switch(hold&3){case 0:state.mode=14;break;case 1:from=state;if(virgin){lenfix=new utils.Buf32(512);distfix=new utils.Buf32(32);for(copy=0;144>copy;)from.lens[copy++]=8;for(;256>copy;)from.lens[copy++]=9;for(;280>copy;)from.lens[copy++]=7;for(;288>copy;)from.lens[copy++]=8;inflate_table(1,from.lens,0,288,lenfix,0,from.work,
{bits:9});for(copy=0;32>copy;)from.lens[copy++]=5;inflate_table(2,from.lens,0,32,distfix,0,from.work,{bits:5});virgin=!1}from.lencode=lenfix;from.lenbits=9;from.distcode=distfix;from.distbits=5;state.mode=20;if(6===flush){hold>>>=2;bits-=2;break a}break;case 2:state.mode=17;break;case 3:strm.msg="invalid block type",state.mode=30}hold>>>=2;bits-=2;break;case 14:hold>>>=bits&7;for(bits-=bits&7;32>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if((hold&65535)!==(hold>>>16^65535)){strm.msg=
"invalid stored block lengths";state.mode=30;break}state.length=hold&65535;bits=hold=0;state.mode=15;if(6===flush)break a;case 15:state.mode=16;case 16:if(copy=state.length){copy>have&&(copy=have);copy>left&&(copy=left);if(0===copy)break a;utils.arraySet(output,input,next,copy,put);have-=copy;next+=copy;left-=copy;put+=copy;state.length-=copy;break}state.mode=12;break;case 17:for(;14>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.nlen=(hold&31)+257;hold>>>=5;bits-=5;state.ndist=
(hold&31)+1;hold>>>=5;bits-=5;state.ncode=(hold&15)+4;hold>>>=4;bits-=4;if(286<state.nlen||30<state.ndist){strm.msg="too many length or distance symbols";state.mode=30;break}state.have=0;state.mode=18;case 18:for(;state.have<state.ncode;){for(;3>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.lens[order[state.have++]]=hold&7;hold>>>=3;bits-=3}for(;19>state.have;)state.lens[order[state.have++]]=0;state.lencode=state.lendyn;state.lenbits=7;copy={bits:state.lenbits};ret=inflate_table(0,
state.lens,0,19,state.lencode,0,state.work,copy);state.lenbits=copy.bits;if(ret){strm.msg="invalid code lengths set";state.mode=30;break}state.have=0;state.mode=19;case 19:for(;state.have<state.nlen+state.ndist;){for(;;){var here=state.lencode[hold&(1<<state.lenbits)-1];copy=here>>>24;here&=65535;if(copy<=bits)break;if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(16>here)hold>>>=copy,bits-=copy,state.lens[state.have++]=here;else{if(16===here){for(from=copy+2;bits<from;){if(0===have)break a;
have--;hold+=input[next++]<<bits;bits+=8}hold>>>=copy;bits-=copy;if(0===state.have){strm.msg="invalid bit length repeat";state.mode=30;break}from=state.lens[state.have-1];copy=3+(hold&3);hold>>>=2;bits-=2}else if(17===here){for(from=copy+3;bits<from;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}hold>>>=copy;bits-=copy;from=0;copy=3+(hold&7);hold>>>=3;bits-=3}else{for(from=copy+7;bits<from;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}hold>>>=copy;bits-=copy;from=
0;copy=11+(hold&127);hold>>>=7;bits-=7}if(state.have+copy>state.nlen+state.ndist){strm.msg="invalid bit length repeat";state.mode=30;break}for(;copy--;)state.lens[state.have++]=from}}if(30===state.mode)break;if(0===state.lens[256]){strm.msg="invalid code -- missing end-of-block";state.mode=30;break}state.lenbits=9;copy={bits:state.lenbits};ret=inflate_table(1,state.lens,0,state.nlen,state.lencode,0,state.work,copy);state.lenbits=copy.bits;if(ret){strm.msg="invalid literal/lengths set";state.mode=
30;break}state.distbits=6;state.distcode=state.distdyn;copy={bits:state.distbits};ret=inflate_table(2,state.lens,state.nlen,state.ndist,state.distcode,0,state.work,copy);state.distbits=copy.bits;if(ret){strm.msg="invalid distances set";state.mode=30;break}state.mode=20;if(6===flush)break a;case 20:state.mode=21;case 21:if(6<=have&&258<=left){strm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;inflate_fast(strm,_out);put=strm.next_out;output=strm.output;
left=strm.avail_out;next=strm.next_in;input=strm.input;have=strm.avail_in;hold=state.hold;bits=state.bits;12===state.mode&&(state.back=-1);break}for(state.back=0;;){here=state.lencode[hold&(1<<state.lenbits)-1];copy=here>>>24;from=here>>>16&255;here&=65535;if(copy<=bits)break;if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(from&&0===(from&240)){var from_source=copy;var last_op=from;for(last_val=here;;){here=state.lencode[last_val+((hold&(1<<from_source+last_op)-1)>>from_source)];copy=
here>>>24;from=here>>>16&255;here&=65535;if(from_source+copy<=bits)break;if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}hold>>>=from_source;bits-=from_source;state.back+=from_source}hold>>>=copy;bits-=copy;state.back+=copy;state.length=here;if(0===from){state.mode=26;break}if(from&32){state.back=-1;state.mode=12;break}if(from&64){strm.msg="invalid literal/length code";state.mode=30;break}state.extra=from&15;state.mode=22;case 22:if(state.extra){for(from=state.extra;bits<from;){if(0===
have)break a;have--;hold+=input[next++]<<bits;bits+=8}state.length+=hold&(1<<state.extra)-1;hold>>>=state.extra;bits-=state.extra;state.back+=state.extra}state.was=state.length;state.mode=23;case 23:for(;;){here=state.distcode[hold&(1<<state.distbits)-1];copy=here>>>24;from=here>>>16&255;here&=65535;if(copy<=bits)break;if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(0===(from&240)){from_source=copy;last_op=from;for(last_val=here;;){here=state.distcode[last_val+((hold&(1<<from_source+
last_op)-1)>>from_source)];copy=here>>>24;from=here>>>16&255;here&=65535;if(from_source+copy<=bits)break;if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}hold>>>=from_source;bits-=from_source;state.back+=from_source}hold>>>=copy;bits-=copy;state.back+=copy;if(from&64){strm.msg="invalid distance code";state.mode=30;break}state.offset=here;state.extra=from&15;state.mode=24;case 24:if(state.extra){for(from=state.extra;bits<from;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=
8}state.offset+=hold&(1<<state.extra)-1;hold>>>=state.extra;bits-=state.extra;state.back+=state.extra}if(state.offset>state.dmax){strm.msg="invalid distance too far back";state.mode=30;break}state.mode=25;case 25:if(0===left)break a;copy=_out-left;if(state.offset>copy){copy=state.offset-copy;if(copy>state.whave&&state.sane){strm.msg="invalid distance too far back";state.mode=30;break}copy>state.wnext?(copy-=state.wnext,from=state.wsize-copy):from=state.wnext-copy;copy>state.length&&(copy=state.length);
from_source=state.window}else from_source=output,from=put-state.offset,copy=state.length;copy>left&&(copy=left);left-=copy;state.length-=copy;do output[put++]=from_source[from++];while(--copy);0===state.length&&(state.mode=21);break;case 26:if(0===left)break a;output[put++]=state.length;left--;state.mode=21;break;case 27:if(state.wrap){for(;32>bits;){if(0===have)break a;have--;hold|=input[next++]<<bits;bits+=8}_out-=left;strm.total_out+=_out;state.total+=_out;_out&&(strm.adler=state.check=state.flags?
crc32(state.check,output,_out,put-_out):adler32(state.check,output,_out,put-_out));_out=left;if((state.flags?hold:zswap32(hold))!==state.check){strm.msg="incorrect data check";state.mode=30;break}bits=hold=0}state.mode=28;case 28:if(state.wrap&&state.flags){for(;32>bits;){if(0===have)break a;have--;hold+=input[next++]<<bits;bits+=8}if(hold!==(state.total&4294967295)){strm.msg="incorrect length check";state.mode=30;break}bits=hold=0}state.mode=29;case 29:ret=1;break a;case 30:ret=-3;break a;case 31:return-4;
default:return-2}strm.next_out=put;strm.avail_out=left;strm.next_in=next;strm.avail_in=have;state.hold=hold;state.bits=bits;if((state.wsize||_out!==strm.avail_out&&30>state.mode&&(27>state.mode||4!==flush))&&updatewindow(strm,strm.output,strm.next_out,_out-strm.avail_out))return state.mode=31,-4;_in-=strm.avail_in;_out-=strm.avail_out;strm.total_in+=_in;strm.total_out+=_out;state.total+=_out;state.wrap&&_out&&(strm.adler=state.check=state.flags?crc32(state.check,output,_out,strm.next_out-_out):adler32(state.check,
output,_out,strm.next_out-_out));strm.data_type=state.bits+(state.last?64:0)+(12===state.mode?128:0)+(20===state.mode||15===state.mode?256:0);(0===_in&&0===_out||4===flush)&&0===ret&&(ret=-5);return ret};exports.inflateEnd=function(strm){if(!strm||!strm.state)return-2;var state=strm.state;state.window&&(state.window=null);strm.state=null;return 0};exports.inflateGetHeader=function(strm,head){if(!strm||!strm.state)return-2;strm=strm.state;if(0===(strm.wrap&2))return-2;strm.head=head;head.done=!1;return 0};
exports.inflateSetDictionary=function(strm,dictionary){var dictLength=dictionary.length;if(!strm||!strm.state)return-2;var state=strm.state;if(0!==state.wrap&&11!==state.mode)return-2;if(11===state.mode){var dictid=adler32(1,dictionary,dictLength,0);if(dictid!==state.check)return-3}if(updatewindow(strm,dictionary,dictLength,dictLength))return state.mode=31,-4;state.havedict=1;return 0};exports.inflateInfo="pako inflate (from Nodeca project)"},function(module,exports,__webpack_require__){module.exports=
function(strm,start){var state=strm.state;var _in=strm.next_in;var input=strm.input;var last=_in+(strm.avail_in-5);var _out=strm.next_out;var output=strm.output;start=_out-(start-strm.avail_out);var end=_out+(strm.avail_out-257);var dmax=state.dmax;var wsize=state.wsize;var whave=state.whave;var wnext=state.wnext;var s_window=state.window;var hold=state.hold;var bits=state.bits;var lcode=state.lencode;var dcode=state.distcode;var lmask=(1<<state.lenbits)-1;var dmask=(1<<state.distbits)-1;a:do{15>
bits&&(hold+=input[_in++]<<bits,bits+=8,hold+=input[_in++]<<bits,bits+=8);var here=lcode[hold&lmask];b:for(;;){var op=here>>>24;hold>>>=op;bits-=op;op=here>>>16&255;if(0===op)output[_out++]=here&65535;else if(op&16){var len=here&65535;if(op&=15)bits<op&&(hold+=input[_in++]<<bits,bits+=8),len+=hold&(1<<op)-1,hold>>>=op,bits-=op;15>bits&&(hold+=input[_in++]<<bits,bits+=8,hold+=input[_in++]<<bits,bits+=8);here=dcode[hold&dmask];c:for(;;){op=here>>>24;hold>>>=op;bits-=op;op=here>>>16&255;if(op&16){here&=
65535;op&=15;bits<op&&(hold+=input[_in++]<<bits,bits+=8,bits<op&&(hold+=input[_in++]<<bits,bits+=8));here+=hold&(1<<op)-1;if(here>dmax){strm.msg="invalid distance too far back";state.mode=30;break a}hold>>>=op;bits-=op;op=_out-start;if(here>op){op=here-op;if(op>whave&&state.sane){strm.msg="invalid distance too far back";state.mode=30;break a}var from=0;var from_source=s_window;if(0===wnext){if(from+=wsize-op,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=
output}}else if(wnext<op){if(from+=wsize+wnext-op,op-=wnext,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=0;if(wnext<len){op=wnext;len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=output}}}else if(from+=wnext-op,op<len){len-=op;do output[_out++]=s_window[from++];while(--op);from=_out-here;from_source=output}for(;2<len;)output[_out++]=from_source[from++],output[_out++]=from_source[from++],output[_out++]=from_source[from++],len-=3;len&&(output[_out++]=
from_source[from++],1<len&&(output[_out++]=from_source[from++]))}else{from=_out-here;do output[_out++]=output[from++],output[_out++]=output[from++],output[_out++]=output[from++],len-=3;while(2<len);len&&(output[_out++]=output[from++],1<len&&(output[_out++]=output[from++]))}}else if(0===(op&64)){here=dcode[(here&65535)+(hold&(1<<op)-1)];continue c}else{strm.msg="invalid distance code";state.mode=30;break a}break}}else if(0===(op&64)){here=lcode[(here&65535)+(hold&(1<<op)-1)];continue b}else{op&32?
state.mode=12:(strm.msg="invalid literal/length code",state.mode=30);break a}break}}while(_in<last&&_out<end);len=bits>>3;_in-=len;bits-=len<<3;strm.next_in=_in;strm.next_out=_out;strm.avail_in=_in<last?5+(last-_in):5-(_in-last);strm.avail_out=_out<end?257+(end-_out):257-(_out-end);state.hold=hold&(1<<bits)-1;state.bits=bits}},function(module,exports,__webpack_require__){var utils=__webpack_require__(50),lbase=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,
0,0],lext=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],dbase=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],dext=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];module.exports=function(type,lens,lens_index,codes,table,table_index,work,opts){var bits=opts.bits,len,sym,max,left,huff,fill,base_index=0,count=new utils.Buf16(16);var drop=
new utils.Buf16(16);var extra,extra_index=0;for(len=0;15>=len;len++)count[len]=0;for(sym=0;sym<codes;sym++)count[lens[lens_index+sym]]++;var root=bits;for(max=15;1<=max&&0===count[max];max--);root>max&&(root=max);if(0===max)return table[table_index++]=20971520,table[table_index++]=20971520,opts.bits=1,0;for(bits=1;bits<max&&0===count[bits];bits++);root<bits&&(root=bits);for(len=left=1;15>=len;len++)if(left<<=1,left-=count[len],0>left)return-1;if(0<left&&(0===type||1!==max))return-1;drop[1]=0;for(len=
1;15>len;len++)drop[len+1]=drop[len]+count[len];for(sym=0;sym<codes;sym++)0!==lens[lens_index+sym]&&(work[drop[lens[lens_index+sym]]++]=sym);if(0===type){var base=extra=work;var end=19}else 1===type?(base=lbase,base_index-=257,extra=lext,extra_index-=257,end=256):(base=dbase,extra=dext,end=-1);sym=huff=0;len=bits;var next=table_index;codes=root;drop=0;var low=-1;var used=1<<root;var mask=used-1;if(1===type&&852<used||2===type&&592<used)return 1;for(;;){var here_bits=len-drop;if(work[sym]<end){var here_op=
0;var here_val=work[sym]}else work[sym]>end?(here_op=extra[extra_index+work[sym]],here_val=base[base_index+work[sym]]):(here_op=96,here_val=0);left=1<<len-drop;bits=fill=1<<codes;do fill-=left,table[next+(huff>>drop)+fill]=here_bits<<24|here_op<<16|here_val|0;while(0!==fill);for(left=1<<len-1;huff&left;)left>>=1;0!==left?(huff&=left-1,huff+=left):huff=0;sym++;if(0===--count[len]){if(len===max)break;len=lens[lens_index+work[sym]]}if(len>root&&(huff&mask)!==low){0===drop&&(drop=root);next+=bits;codes=
len-drop;for(left=1<<codes;codes+drop<max;){left-=count[codes+drop];if(0>=left)break;codes++;left<<=1}used+=1<<codes;if(1===type&&852<used||2===type&&592<used)return 1;low=huff&mask;table[low]=root<<24|codes<<16|next-table_index|0}}0!==huff&&(table[next+huff]=len-drop<<24|4194304);opts.bits=root;return 0}},function(module,exports,__webpack_require__){module.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,
Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(module,exports){},function(module,exports,__webpack_require__){(function(Buffer,global,process){var capability=__webpack_require__(78),inherits=__webpack_require__(28),response$jscomp$0=__webpack_require__(79),stream=__webpack_require__(41),toArrayBuffer=
__webpack_require__(141),IncomingMessage=response$jscomp$0.IncomingMessage,rStates=response$jscomp$0.readyStates;response$jscomp$0=module.exports=function(opts){var self=this;stream.Writable.call(self);self._opts=opts;self._body=[];self._headers={};opts.auth&&self.setHeader("Authorization","Basic "+(new Buffer(opts.auth)).toString("base64"));Object.keys(opts.headers).forEach(function(name){self.setHeader(name,opts.headers[name])});var useFetch=!0;if("disable-fetch"===opts.mode||"requestTimeout"in
opts&&!capability.abortController){useFetch=!1;var preferBinary=!0}else if("prefer-streaming"===opts.mode)preferBinary=!1;else if("allow-wrong-content-type"===opts.mode)preferBinary=!capability.overrideMimeType;else{if(opts.mode&&"default"!==opts.mode&&"prefer-fast"!==opts.mode)throw Error("Invalid value for opts.mode");preferBinary=!0}self._mode=capability.fetch&&useFetch?"fetch":capability.mozchunkedarraybuffer?"moz-chunked-arraybuffer":capability.msstream?"ms-stream":capability.arraybuffer&&preferBinary?
"arraybuffer":capability.vbArray&&preferBinary?"text:vbarray":"text";self._fetchTimer=null;self.on("finish",function(){self._onFinish()})};inherits(response$jscomp$0,stream.Writable);response$jscomp$0.prototype.setHeader=function(name,value){var lowerName=name.toLowerCase();-1===unsafeHeaders.indexOf(lowerName)&&(this._headers[lowerName]={name:name,value:value})};response$jscomp$0.prototype.getHeader=function(name){return(name=this._headers[name.toLowerCase()])?name.value:null};response$jscomp$0.prototype.removeHeader=
function(name){delete this._headers[name.toLowerCase()]};response$jscomp$0.prototype._onFinish=function(){var self=this;if(!self._destroyed){var opts=self._opts,headersObj=self._headers,body=null;"GET"!==opts.method&&"HEAD"!==opts.method&&(body=capability.arraybuffer?toArrayBuffer(Buffer.concat(self._body)):capability.blobConstructor?new global.Blob(self._body.map(function(buffer){return toArrayBuffer(buffer)}),{type:(headersObj["content-type"]||{}).value||""}):Buffer.concat(self._body).toString());
var headersList=[];Object.keys(headersObj).forEach(function(keyName){var name=headersObj[keyName].name;keyName=headersObj[keyName].value;Array.isArray(keyName)?keyName.forEach(function(v){headersList.push([name,v])}):headersList.push([name,keyName])});if("fetch"===self._mode){var signal=null;if(capability.abortController){var controller=new AbortController;signal=controller.signal;self._fetchAbortController=controller;"requestTimeout"in opts&&0!==opts.requestTimeout&&(self._fetchTimer=global.setTimeout(function(){self.emit("requestTimeout");
self._fetchAbortController&&self._fetchAbortController.abort()},opts.requestTimeout))}global.fetch(self._opts.url,{method:self._opts.method,headers:headersList,body:body||void 0,mode:"cors",credentials:opts.withCredentials?"include":"same-origin",signal:signal}).then(function(response){self._fetchResponse=response;self._connect()},function(reason){global.clearTimeout(self._fetchTimer);self._destroyed||self.emit("error",reason)})}else{var xhr=self._xhr=new global.XMLHttpRequest;try{xhr.open(self._opts.method,
self._opts.url,!0)}catch(err){process.nextTick(function(){self.emit("error",err)});return}"responseType"in xhr&&(xhr.responseType=self._mode.split(":")[0]);"withCredentials"in xhr&&(xhr.withCredentials=!!opts.withCredentials);"text"===self._mode&&"overrideMimeType"in xhr&&xhr.overrideMimeType("text/plain; charset=x-user-defined");"requestTimeout"in opts&&(xhr.timeout=opts.requestTimeout,xhr.ontimeout=function(){self.emit("requestTimeout")});headersList.forEach(function(header){xhr.setRequestHeader(header[0],
header[1])});self._response=null;xhr.onreadystatechange=function(){switch(xhr.readyState){case rStates.LOADING:case rStates.DONE:self._onXHRProgress()}};"moz-chunked-arraybuffer"===self._mode&&(xhr.onprogress=function(){self._onXHRProgress()});xhr.onerror=function(){self._destroyed||self.emit("error",Error("XHR error"))};try{xhr.send(body)}catch(err$30){process.nextTick(function(){self.emit("error",err$30)})}}}};response$jscomp$0.prototype._onXHRProgress=function(){try{var status=this._xhr.status;
var JSCompiler_inline_result=null!==status&&0!==status}catch(e){JSCompiler_inline_result=!1}JSCompiler_inline_result&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())};response$jscomp$0.prototype._connect=function(){var self=this;self._destroyed||(self._response=new IncomingMessage(self._xhr,self._fetchResponse,self._mode,self._fetchTimer),self._response.on("error",function(err){self.emit("error",err)}),self.emit("response",self._response))};response$jscomp$0.prototype._write=
function(chunk,encoding,cb){this._body.push(chunk);cb()};response$jscomp$0.prototype.abort=response$jscomp$0.prototype.destroy=function(){this._destroyed=!0;global.clearTimeout(this._fetchTimer);this._response&&(this._response._destroyed=!0);this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()};response$jscomp$0.prototype.end=function(data,encoding,cb){"function"===typeof data&&(cb=data,data=void 0);stream.Writable.prototype.end.call(this,data,encoding,cb)};response$jscomp$0.prototype.flushHeaders=
function(){};response$jscomp$0.prototype.setTimeout=function(){};response$jscomp$0.prototype.setNoDelay=function(){};response$jscomp$0.prototype.setSocketKeepAlive=function(){};var unsafeHeaders="accept-charset accept-encoding access-control-request-headers access-control-request-method connection content-length cookie cookie2 date dnt expect host keep-alive origin referer te trailer transfer-encoding upgrade via".split(" ")}).call(this,__webpack_require__(25).Buffer,__webpack_require__(15),__webpack_require__(22))},
function(module,exports,__webpack_require__){var Buffer=__webpack_require__(25).Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"===typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;i<len;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw Error("Argument must be a Buffer");
}},function(module,exports){module.exports=function(){for(var target={},i=0;i<arguments.length;i++){var source=arguments[i],key;for(key in source)hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target};var hasOwnProperty=Object.prototype.hasOwnProperty},function(module,exports){module.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",
207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",
414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",
505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(module$jscomp$0,exports,__webpack_require__){(function(module,global){var __WEBPACK_AMD_DEFINE_RESULT__;(function(root){function error(type){throw new RangeError(errors[type]);}function map(array,fn){for(var length=array.length,result=[];length--;)result[length]=fn(array[length]);return result}
function mapDomain(string,fn){var parts=string.split("@"),result="";1<parts.length&&(result=parts[0]+"@",string=parts[1]);string=string.replace(regexSeparators,".");string=string.split(".");fn=map(string,fn).join(".");return result+fn}function ucs2decode(string){for(var output=[],counter=0,length=string.length,value,extra;counter<length;)value=string.charCodeAt(counter++),55296<=value&&56319>=value&&counter<length?(extra=string.charCodeAt(counter++),56320==(extra&64512)?output.push(((value&1023)<<
10)+(extra&1023)+65536):(output.push(value),counter--)):output.push(value);return output}function ucs2encode(array){return map(array,function(value){var output="";65535<value&&(value-=65536,output+=stringFromCharCode(value>>>10&1023|55296),value=56320|value&1023);return output+=stringFromCharCode(value)}).join("")}function adapt(delta,numPoints,firstTime){var k=0;delta=firstTime?floor(delta/700):delta>>1;for(delta+=floor(delta/numPoints);455<delta;k+=36)delta=floor(delta/35);return floor(k+36*delta/
(delta+38))}function decode(input){var output=[],inputLength=input.length,i=0,n=128,bias=72,j,k;var basic=input.lastIndexOf("-");0>basic&&(basic=0);for(j=0;j<basic;++j)128<=input.charCodeAt(j)&&error("not-basic"),output.push(input.charCodeAt(j));for(basic=0<basic?basic+1:0;basic<inputLength;){j=i;var out=1;for(k=36;;k+=36){basic>=inputLength&&error("invalid-input");var digit=input.charCodeAt(basic++);digit=10>digit-48?digit-22:26>digit-65?digit-65:26>digit-97?digit-97:36;(36<=digit||digit>floor((2147483647-
i)/out))&&error("overflow");i+=digit*out;var t=k<=bias?1:k>=bias+26?26:k-bias;if(digit<t)break;digit=36-t;out>floor(2147483647/digit)&&error("overflow");out*=digit}out=output.length+1;bias=adapt(i-j,out,0==j);floor(i/out)>2147483647-n&&error("overflow");n+=floor(i/out);i%=out;output.splice(i++,0,n)}return ucs2encode(output)}function encode(input){var handledCPCount,basicLength,j,output=[];input=ucs2decode(input);var inputLength=input.length;var n=128;var delta=0;var bias=72;for(j=0;j<inputLength;++j){var t=
input[j];128>t&&output.push(stringFromCharCode(t))}for((handledCPCount=basicLength=output.length)&&output.push("-");handledCPCount<inputLength;){var m=2147483647;for(j=0;j<inputLength;++j)t=input[j],t>=n&&t<m&&(m=t);var handledCPCountPlusOne=handledCPCount+1;m-n>floor((2147483647-delta)/handledCPCountPlusOne)&&error("overflow");delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;j<inputLength;++j)if(t=input[j],t<n&&2147483647<++delta&&error("overflow"),t==n){var q=delta;for(m=36;;m+=36){t=m<=bias?1:m>=
bias+26?26:m-bias;if(q<t)break;var qMinusT=q-t;q=36-t;var JSCompiler_temp_const=output;t+=qMinusT%q;JSCompiler_temp_const.push.call(JSCompiler_temp_const,stringFromCharCode(t+22+75*(26>t)-0));q=floor(qMinusT/q)}output.push(stringFromCharCode(q+22+75*(26>q)-0));bias=adapt(delta,handledCPCountPlusOne,handledCPCount==basicLength);delta=0;++handledCPCount}++delta;++n}return output.join("")}var regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process",
"not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},floor=Math.floor,stringFromCharCode=String.fromCharCode;!(__WEBPACK_AMD_DEFINE_RESULT__={version:"1.4.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode:decode,encode:encode,toASCII:function(input){return mapDomain(input,function(string){return regexNonASCII.test(string)?"xn--"+encode(string):string})},toUnicode:function(input){return mapDomain(input,function(string){return regexPunycode.test(string)?decode(string.slice(4).toLowerCase()):
string})}},void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))})(this)}).call(this,__webpack_require__(47)(module$jscomp$0),__webpack_require__(15))},function(module,exports,__webpack_require__){module.exports={isString:function(arg){return"string"===typeof arg},isObject:function(arg){return"object"===typeof arg&&null!==arg},isNull:function(arg){return null===arg},isNullOrUndefined:function(arg){return null==arg}}},function(module,exports,__webpack_require__){exports.decode=
exports.parse=__webpack_require__(147);exports.encode=exports.stringify=__webpack_require__(148)},function(module,exports,__webpack_require__){module.exports=function(qs,sep,eq,options){eq=eq||"=";var obj={};if("string"!==typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep||"&");sep=1E3;options&&"number"===typeof options.maxKeys&&(sep=options.maxKeys);options=qs.length;0<sep&&options>sep&&(options=sep);for(sep=0;sep<options;++sep){var x=qs[sep].replace(regexp,"%20"),idx=x.indexOf(eq);
if(0<=idx){var kstr=x.substr(0,idx);x=x.substr(idx+1)}else kstr=x,x="";kstr=decodeURIComponent(kstr);x=decodeURIComponent(x);Object.prototype.hasOwnProperty.call(obj,kstr)?isArray(obj[kstr])?obj[kstr].push(x):obj[kstr]=[obj[kstr],x]:obj[kstr]=x}return obj};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)}},function(module,exports,__webpack_require__){function map(xs,f){if(xs.map)return xs.map(f);for(var res=[],i=0;i<xs.length;i++)res.push(f(xs[i],
i));return res}var stringifyPrimitive=function(v){switch(typeof v){case "string":return v;case "boolean":return v?"true":"false";case "number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){sep=sep||"&";eq=eq||"=";null===obj&&(obj=void 0);return"object"===typeof obj?map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return isArray(obj[k])?map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+
encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""};var isArray=Array.isArray||function(xs){return"[object Array]"===Object.prototype.toString.call(xs)},objectKeys=Object.keys||function(obj){var res=[],key;for(key in obj)Object.prototype.hasOwnProperty.call(obj,key)&&res.push(key);return res}},function(module,exports,__webpack_require__){function validateParams(params){"string"===typeof params&&
(params=url.parse(params));params.protocol||(params.protocol="https:");if("https:"!==params.protocol)throw Error('Protocol "'+params.protocol+'" not supported. Expected "https:"');return params}var http=__webpack_require__(77),url=__webpack_require__(62);module=module.exports;for(var key in http)http.hasOwnProperty(key)&&(module[key]=http[key]);module.request=function(params,cb){params=validateParams(params);return http.request.call(this,params,cb)};module.get=function(params,cb){params=validateParams(params);
return http.get.call(this,params,cb)}},function(module$jscomp$0,__webpack_exports__,__webpack_require__){(function(module){module.rC=function(imgData,canvas,options,pageIdx,drawComplete,isCancelled){isCancelled&&isCancelled()||(canvas.getContext("2d").putImageData(imgData,0,0),options.drawProgressive(canvas),options.drawComplete(canvas,pageIdx+1))};module.dC=function(onDocumentLoaded,me){onDocumentLoaded();me.trigger("documentComplete")}})(window)},function(module,exports){function webpackEmptyContext(req){req=
Error("Cannot find module '"+req+"'");req.code="MODULE_NOT_FOUND";throw req;}webpackEmptyContext.keys=function(){return[]};webpackEmptyContext.resolve=webpackEmptyContext;module.exports=webpackEmptyContext;webpackEmptyContext.id=151}]);}).call(this || window)
