­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ !function(t,e,n,r,i){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},A="function"==typeof o[r]&&o[r],s=A.cache||{},a="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(e,n){if(!s[e]){if(!t[e]){var i="function"==typeof o[r]&&o[r];if(!n&&i)return i(e,!0);if(A)return A(e,!0);if(a&&"string"==typeof e)return a(e);var c=Error("Cannot find module '"+e+"'");throw c.code="MODULE_NOT_FOUND",c}h.resolve=function(n){var r=t[e][1][n];return null!=r?r:n},h.cache={};var u=s[e]=new l.Module(e);t[e][0].call(u.exports,h,u,u.exports,this)}return s[e].exports;function h(t){var e=h.resolve(t);return!1===e?{}:l(e)}}l.isParcelRequire=!0,l.Module=function(t){this.id=t,this.bundle=l,this.exports={}},l.modules=t,l.cache=s,l.parent=A,l.register=function(e,n){t[e]=[function(t,e){e.exports=n},{}]},Object.defineProperty(l,"root",{get:function(){return o[r]}}),o[r]=l;for(var c=0;c0}},{key:"bindings",get:function(){return Array.from(this.unorderedBindings).sort(function(t,e){var n=t.index,r=e.index;return nr?1:0})}}]),t}(),m=function(){function t(e){(0,o._)(this,t),this.application=e,this.eventListenerMaps=new Map,this.started=!1}return(0,A._)(t,[{key:"start",value:function(){this.started||(this.started=!0,this.eventListeners.forEach(function(t){return t.connect()}))}},{key:"stop",value:function(){this.started&&(this.started=!1,this.eventListeners.forEach(function(t){return t.disconnect()}))}},{key:"eventListeners",get:function(){return Array.from(this.eventListenerMaps.values()).reduce(function(t,e){return t.concat(Array.from(e.values()))},[])}},{key:"bindingConnected",value:function(t){this.fetchEventListenerForBinding(t).bindingConnected(t)}},{key:"bindingDisconnected",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.fetchEventListenerForBinding(t).bindingDisconnected(t),e&&this.clearEventListenersForBinding(t)}},{key:"handleError",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.application.handleError(t,"Error ".concat(e),n)}},{key:"clearEventListenersForBinding",value:function(t){var e=this.fetchEventListenerForBinding(t);e.hasBindings()||(e.disconnect(),this.removeMappedEventListenerFor(t))}},{key:"removeMappedEventListenerFor",value:function(t){var e=t.eventTarget,n=t.eventName,r=t.eventOptions,i=this.fetchEventListenerMapForEventTarget(e),o=this.cacheKey(n,r);i.delete(o),0==i.size&&this.eventListenerMaps.delete(e)}},{key:"fetchEventListenerForBinding",value:function(t){var e=t.eventTarget,n=t.eventName,r=t.eventOptions;return this.fetchEventListener(e,n,r)}},{key:"fetchEventListener",value:function(t,e,n){var r=this.fetchEventListenerMapForEventTarget(t),i=this.cacheKey(e,n),o=r.get(i);return o||(o=this.createEventListener(t,e,n),r.set(i,o)),o}},{key:"createEventListener",value:function(t,e,n){var r=new g(t,e,n);return this.started&&r.connect(),r}},{key:"fetchEventListenerMapForEventTarget",value:function(t){var e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e}},{key:"cacheKey",value:function(t,e){var n=[t];return Object.keys(e).sort().forEach(function(t){n.push("".concat(e[t]?"":"!").concat(t))}),n.join(":")}}]),t}(),v={stop:function(t){var e=t.event;return t.value&&e.stopPropagation(),!0},prevent:function(t){var e=t.event;return t.value&&e.preventDefault(),!0},self:function(t){var e=t.event,n=t.value,r=t.element;return!n||r===e.target}},y=/^(?:(?:([^.]+?)\+)?(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function w(t){return t.replace(/(?:[_-])([a-z0-9])/g,function(t,e){return e.toUpperCase()})}function b(t){return w(t.replace(/--/g,"-").replace(/__/g,"_"))}function _(t){return t.charAt(0).toUpperCase()+t.slice(1)}function B(t){return t.replace(/([A-Z])/g,function(t,e){return"-".concat(e.toLowerCase())})}function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var C=["meta","ctrl","alt","shift"],k=function(){function t(e,n,r,i){(0,o._)(this,t),this.element=e,this.index=n,this.eventTarget=r.eventTarget||e,this.eventName=r.eventName||function(t){var e=t.tagName.toLowerCase();if(e in F)return F[e](t)}(e)||E("missing event name"),this.eventOptions=r.eventOptions||{},this.identifier=r.identifier||E("missing identifier"),this.methodName=r.methodName||E("missing method name"),this.keyFilter=r.keyFilter||"",this.schema=i}return(0,A._)(t,[{key:"toString",value:function(){var t=this.keyFilter?".".concat(this.keyFilter):"",e=this.eventTargetName?"@".concat(this.eventTargetName):"";return"".concat(this.eventName).concat(t).concat(e,"->").concat(this.identifier,"#").concat(this.methodName)}},{key:"shouldIgnoreKeyboardEvent",value:function(t){if(!this.keyFilter)return!1;var e=this.keyFilter.split("+");if(this.keyFilterDissatisfied(t,e))return!0;var n=e.filter(function(t){return!C.includes(t)})[0];return!!n&&(x(this.keyMappings,n)||E("contains unknown key filter: ".concat(this.keyFilter)),this.keyMappings[n].toLowerCase()!==t.key.toLowerCase())}},{key:"shouldIgnoreMouseEvent",value:function(t){if(!this.keyFilter)return!1;var e=[this.keyFilter];return!!this.keyFilterDissatisfied(t,e)}},{key:"params",get:function(){var t={},e=RegExp("^data-".concat(this.identifier,"-(.+)-param$"),"i"),n=!0,r=!1,i=void 0;try{for(var o,A=Array.from(this.element.attributes)[Symbol.iterator]();!(n=(o=A.next()).done);n=!0){var s=o.value,a=s.name,l=s.value,c=a.match(e),u=c&&c[1];u&&(t[w(u)]=function(t){try{return JSON.parse(t)}catch(e){return t}}(l))}}catch(t){r=!0,i=t}finally{try{n||null==A.return||A.return()}finally{if(r)throw i}}return t}},{key:"eventTargetName",get:function(){var t;return(t=this.eventTarget)==window?"window":t==document?"document":void 0}},{key:"keyMappings",get:function(){return this.schema.keyMappings}},{key:"keyFilterDissatisfied",value:function(t,e){var n=(0,u._)(C.map(function(t){return e.includes(t)}),4),r=n[0],i=n[1],o=n[2],A=n[3];return t.metaKey!==r||t.ctrlKey!==i||t.altKey!==o||t.shiftKey!==A}}],[{key:"forToken",value:function(t,e){var n,r,i,o;return new this(t.element,t.index,(r=(n=t.content.trim().match(y)||[])[2],(i=n[3])&&!["keydown","keyup","keypress"].includes(r)&&(r+=".".concat(i),i=""),{eventTarget:"window"==(o=n[4])?window:"document"==o?document:void 0,eventName:r,eventOptions:n[7]?n[7].split(":").reduce(function(t,e){return Object.assign(t,(0,s._)({},e.replace(/^!/,""),!/^!/.test(e)))},{}):{},identifier:n[5],methodName:n[6],keyFilter:n[1]||i}),e)}}]),t}(),F={a:function(){return"click"},button:function(){return"click"},form:function(){return"submit"},details:function(){return"toggle"},input:function(t){return"submit"==t.getAttribute("type")?"click":"input"},select:function(){return"change"},textarea:function(){return"input"}};function E(t){throw Error(t)}var Q=function(){function t(e,n){(0,o._)(this,t),this.context=e,this.action=n}return(0,A._)(t,[{key:"index",get:function(){return this.action.index}},{key:"eventTarget",get:function(){return this.action.eventTarget}},{key:"eventOptions",get:function(){return this.action.eventOptions}},{key:"identifier",get:function(){return this.context.identifier}},{key:"handleEvent",value:function(t){var e=this.prepareActionEvent(t);this.willBeInvokedByEvent(t)&&this.applyEventModifiers(e)&&this.invokeWithEvent(e)}},{key:"eventName",get:function(){return this.action.eventName}},{key:"method",get:function(){var t=this.controller[this.methodName];if("function"==typeof t)return t;throw Error('Action "'.concat(this.action,'" references undefined method "').concat(this.methodName,'"'))}},{key:"applyEventModifiers",value:function(t){var e=this.action.element,n=this.context.application.actionDescriptorFilters,r=this.context.controller,i=!0,o=!0,A=!1,s=void 0;try{for(var a,l=Object.entries(this.eventOptions)[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=(0,u._)(a.value,2),h=c[0],d=c[1];if(h in n){var f=n[h];i=i&&f({name:h,value:d,event:t,element:e,controller:r})}}}catch(t){A=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(A)throw s}}return i}},{key:"prepareActionEvent",value:function(t){return Object.assign(t,{params:this.action.params})}},{key:"invokeWithEvent",value:function(t){var e=t.target,n=t.currentTarget;try{this.method.call(this.controller,t),this.context.logDebugActivity(this.methodName,{event:t,target:e,currentTarget:n,action:this.methodName})}catch(e){var r=this.identifier,i=this.controller,o=this.element,A=this.index;this.context.handleError(e,'invoking action "'.concat(this.action,'"'),{identifier:r,controller:i,element:o,index:A,event:t})}}},{key:"willBeInvokedByEvent",value:function(t){var e=t.target;return!(t instanceof KeyboardEvent&&this.action.shouldIgnoreKeyboardEvent(t)||t instanceof MouseEvent&&this.action.shouldIgnoreMouseEvent(t))&&(this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element)))}},{key:"controller",get:function(){return this.context.controller}},{key:"methodName",get:function(){return this.action.methodName}},{key:"element",get:function(){return this.scope.element}},{key:"scope",get:function(){return this.context.scope}}]),t}(),S=function(){function t(e,n){var r=this;(0,o._)(this,t),this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=n,this.elements=new Set,this.mutationObserver=new MutationObserver(function(t){return r.processMutations(t)})}return(0,A._)(t,[{key:"start",value:function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}},{key:"pause",value:function(t){this.started&&(this.mutationObserver.disconnect(),this.started=!1),t(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}},{key:"stop",value:function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}},{key:"refresh",value:function(){if(this.started){var t=new Set(this.matchElementsInTree()),e=!0,n=!1,r=void 0;try{for(var i,o=Array.from(this.elements)[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var A=i.value;t.has(A)||this.removeElement(A)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}var s=!0,a=!1,l=void 0;try{for(var c,u=Array.from(t)[Symbol.iterator]();!(s=(c=u.next()).done);s=!0){var h=c.value;this.addElement(h)}}catch(t){a=!0,l=t}finally{try{s||null==u.return||u.return()}finally{if(a)throw l}}}}},{key:"processMutations",value:function(t){var e=!0,n=!1,r=void 0;if(this.started)try{for(var i,o=t[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var A=i.value;this.processMutation(A)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"processMutation",value:function(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))}},{key:"processAttributeChange",value:function(t,e){this.elements.has(t)?this.delegate.elementAttributeChanged&&this.matchElement(t)?this.delegate.elementAttributeChanged(t,e):this.removeElement(t):this.matchElement(t)&&this.addElement(t)}},{key:"processRemovedNodes",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=Array.from(t)[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var A=i.value,s=this.elementFromNode(A);s&&this.processTree(s,this.removeElement)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"processAddedNodes",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=Array.from(t)[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var A=i.value,s=this.elementFromNode(A);s&&this.elementIsActive(s)&&this.processTree(s,this.addElement)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"matchElement",value:function(t){return this.delegate.matchElement(t)}},{key:"matchElementsInTree",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;return this.delegate.matchElementsInTree(t)}},{key:"processTree",value:function(t,e){var n=!0,r=!1,i=void 0;try{for(var o,A=this.matchElementsInTree(t)[Symbol.iterator]();!(n=(o=A.next()).done);n=!0){var s=o.value;e.call(this,s)}}catch(t){r=!0,i=t}finally{try{n||null==A.return||A.return()}finally{if(r)throw i}}}},{key:"elementFromNode",value:function(t){if(t.nodeType==Node.ELEMENT_NODE)return t}},{key:"elementIsActive",value:function(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)}},{key:"addElement",value:function(t){!this.elements.has(t)&&this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}},{key:"removeElement",value:function(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}}]),t}(),L=function(){function t(e,n,r){(0,o._)(this,t),this.attributeName=n,this.delegate=r,this.elementObserver=new S(e,this)}return(0,A._)(t,[{key:"element",get:function(){return this.elementObserver.element}},{key:"selector",get:function(){return"[".concat(this.attributeName,"]")}},{key:"start",value:function(){this.elementObserver.start()}},{key:"pause",value:function(t){this.elementObserver.pause(t)}},{key:"stop",value:function(){this.elementObserver.stop()}},{key:"refresh",value:function(){this.elementObserver.refresh()}},{key:"started",get:function(){return this.elementObserver.started}},{key:"matchElement",value:function(t){return t.hasAttribute(this.attributeName)}},{key:"matchElementsInTree",value:function(t){var e=this.matchElement(t)?[t]:[],n=Array.from(t.querySelectorAll(this.selector));return e.concat(n)}},{key:"elementMatched",value:function(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)}},{key:"elementUnmatched",value:function(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)}},{key:"elementAttributeChanged",value:function(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)}}]),t}();function U(t,e,n){j(t,e).add(n)}function I(t,e,n){j(t,e).delete(n),M(t,e)}function j(t,e){var n=t.get(e);return n||(n=new Set,t.set(e,n)),n}function M(t,e){var n=t.get(e);null!=n&&0==n.size&&t.delete(e)}var D=function(){function t(){(0,o._)(this,t),this.valuesByKey=new Map}return(0,A._)(t,[{key:"keys",get:function(){return Array.from(this.valuesByKey.keys())}},{key:"values",get:function(){return Array.from(this.valuesByKey.values()).reduce(function(t,e){return t.concat(Array.from(e))},[])}},{key:"size",get:function(){return Array.from(this.valuesByKey.values()).reduce(function(t,e){return t+e.size},0)}},{key:"add",value:function(t,e){U(this.valuesByKey,t,e)}},{key:"delete",value:function(t,e){I(this.valuesByKey,t,e)}},{key:"has",value:function(t,e){var n=this.valuesByKey.get(t);return null!=n&&n.has(e)}},{key:"hasKey",value:function(t){return this.valuesByKey.has(t)}},{key:"hasValue",value:function(t){return Array.from(this.valuesByKey.values()).some(function(e){return e.has(t)})}},{key:"getValuesForKey",value:function(t){var e=this.valuesByKey.get(t);return e?Array.from(e):[]}},{key:"getKeysForValue",value:function(t){return Array.from(this.valuesByKey).filter(function(e){var n=(0,u._)(e,2);return(n[0],n[1]).has(t)}).map(function(t){var e=(0,u._)(t,2),n=e[0];return e[1],n})}}]),t}(),T=function(t){(0,c._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),(t=e.call(this)).keysByValue=new Map,t}return(0,A._)(n,[{key:"values",get:function(){return Array.from(this.keysByValue.keys())}},{key:"add",value:function(t,e){(0,a._)((0,l._)(n.prototype),"add",this).call(this,t,e),U(this.keysByValue,e,t)}},{key:"delete",value:function(t,e){(0,a._)((0,l._)(n.prototype),"delete",this).call(this,t,e),I(this.keysByValue,e,t)}},{key:"hasValue",value:function(t){return this.keysByValue.has(t)}},{key:"getKeysForValue",value:function(t){var e=this.keysByValue.get(t);return e?Array.from(e):[]}}]),n}(D),N=function(){function t(e,n,r,i){(0,o._)(this,t),this._selector=n,this.details=i,this.elementObserver=new S(e,this),this.delegate=r,this.matchesByElement=new D}return(0,A._)(t,[{key:"started",get:function(){return this.elementObserver.started}},{key:"selector",get:function(){return this._selector},set:function(t){this._selector=t,this.refresh()}},{key:"start",value:function(){this.elementObserver.start()}},{key:"pause",value:function(t){this.elementObserver.pause(t)}},{key:"stop",value:function(){this.elementObserver.stop()}},{key:"refresh",value:function(){this.elementObserver.refresh()}},{key:"element",get:function(){return this.elementObserver.element}},{key:"matchElement",value:function(t){var e=this.selector;if(!e)return!1;var n=t.matches(e);return this.delegate.selectorMatchElement?n&&this.delegate.selectorMatchElement(t,this.details):n}},{key:"matchElementsInTree",value:function(t){var e=this,n=this.selector;if(!n)return[];var r=this.matchElement(t)?[t]:[],i=Array.from(t.querySelectorAll(n)).filter(function(t){return e.matchElement(t)});return r.concat(i)}},{key:"elementMatched",value:function(t){var e=this.selector;e&&this.selectorMatched(t,e)}},{key:"elementUnmatched",value:function(t){var e=this.matchesByElement.getKeysForValue(t),n=!0,r=!1,i=void 0;try{for(var o,A=e[Symbol.iterator]();!(n=(o=A.next()).done);n=!0){var s=o.value;this.selectorUnmatched(t,s)}}catch(t){r=!0,i=t}finally{try{n||null==A.return||A.return()}finally{if(r)throw i}}}},{key:"elementAttributeChanged",value:function(t,e){var n=this.selector;if(n){var r=this.matchElement(t),i=this.matchesByElement.has(n,t);r&&!i?this.selectorMatched(t,n):!r&&i&&this.selectorUnmatched(t,n)}}},{key:"selectorMatched",value:function(t,e){this.delegate.selectorMatched(t,e,this.details),this.matchesByElement.add(e,t)}},{key:"selectorUnmatched",value:function(t,e){this.delegate.selectorUnmatched(t,e,this.details),this.matchesByElement.delete(e,t)}}]),t}(),P=function(){function t(e,n){var r=this;(0,o._)(this,t),this.element=e,this.delegate=n,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver(function(t){return r.processMutations(t)})}return(0,A._)(t,[{key:"start",value:function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}},{key:"stop",value:function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}},{key:"refresh",value:function(){var t=!0,e=!1,n=void 0;if(this.started)try{for(var r,i=this.knownAttributeNames[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;this.refreshAttribute(o,null)}}catch(t){e=!0,n=t}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}}},{key:"processMutations",value:function(t){var e=!0,n=!1,r=void 0;if(this.started)try{for(var i,o=t[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var A=i.value;this.processMutation(A)}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}},{key:"processMutation",value:function(t){var e=t.attributeName;e&&this.refreshAttribute(e,t.oldValue)}},{key:"refreshAttribute",value:function(t,e){var n=this.delegate.getStringMapKeyForAttribute(t);if(null!=n){this.stringMap.has(t)||this.stringMapKeyAdded(n,t);var r=this.element.getAttribute(t);if(this.stringMap.get(t)!=r&&this.stringMapValueChanged(r,n,e),null==r){var i=this.stringMap.get(t);this.stringMap.delete(t),i&&this.stringMapKeyRemoved(n,t,i)}else this.stringMap.set(t,r)}}},{key:"stringMapKeyAdded",value:function(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)}},{key:"stringMapValueChanged",value:function(t,e,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e,n)}},{key:"stringMapKeyRemoved",value:function(t,e,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e,n)}},{key:"knownAttributeNames",get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}},{key:"currentAttributeNames",get:function(){return Array.from(this.element.attributes).map(function(t){return t.name})}},{key:"recordedAttributeNames",get:function(){return Array.from(this.stringMap.keys())}}]),t}(),O=function(){function t(e,n,r){(0,o._)(this,t),this.attributeObserver=new L(e,n,this),this.delegate=r,this.tokensByElement=new D}return(0,A._)(t,[{key:"started",get:function(){return this.attributeObserver.started}},{key:"start",value:function(){this.attributeObserver.start()}},{key:"pause",value:function(t){this.attributeObserver.pause(t)}},{key:"stop",value:function(){this.attributeObserver.stop()}},{key:"refresh",value:function(){this.attributeObserver.refresh()}},{key:"element",get:function(){return this.attributeObserver.element}},{key:"attributeName",get:function(){return this.attributeObserver.attributeName}},{key:"elementMatchedAttribute",value:function(t){this.tokensMatched(this.readTokensForElement(t))}},{key:"elementAttributeValueChanged",value:function(t){var e=(0,u._)(this.refreshTokensForElement(t),2),n=e[0],r=e[1];this.tokensUnmatched(n),this.tokensMatched(r)}},{key:"elementUnmatchedAttribute",value:function(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))}},{key:"tokensMatched",value:function(t){var e=this;t.forEach(function(t){return e.tokenMatched(t)})}},{key:"tokensUnmatched",value:function(t){var e=this;t.forEach(function(t){return e.tokenUnmatched(t)})}},{key:"tokenMatched",value:function(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)}},{key:"tokenUnmatched",value:function(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)}},{key:"refreshTokensForElement",value:function(t){var e=this.tokensByElement.getValuesForKey(t),n=this.readTokensForElement(t),r=Array.from({length:Math.max(e.length,n.length)},function(t,r){return[e[r],n[r]]}).findIndex(function(t){var e,n,r=(0,u._)(t,2);return e=r[0],n=r[1],!e||!n||e.index!=n.index||e.content!=n.content});return -1==r?[[],[]]:[e.slice(r),n.slice(r)]}},{key:"readTokensForElement",value:function(t){var e=this.attributeName;return(t.getAttribute(e)||"").trim().split(/\s+/).filter(function(t){return t.length}).map(function(n,r){return{element:t,attributeName:e,content:n,index:r}})}}]),t}(),H=function(){function t(e,n,r){(0,o._)(this,t),this.tokenListObserver=new O(e,n,this),this.delegate=r,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return(0,A._)(t,[{key:"started",get:function(){return this.tokenListObserver.started}},{key:"start",value:function(){this.tokenListObserver.start()}},{key:"stop",value:function(){this.tokenListObserver.stop()}},{key:"refresh",value:function(){this.tokenListObserver.refresh()}},{key:"element",get:function(){return this.tokenListObserver.element}},{key:"attributeName",get:function(){return this.tokenListObserver.attributeName}},{key:"tokenMatched",value:function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).set(t,n),this.delegate.elementMatchedValue(e,n))}},{key:"tokenUnmatched",value:function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,n))}},{key:"fetchParseResultForToken",value:function(t){var e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e}},{key:"fetchValuesByTokenForElement",value:function(t){var e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e}},{key:"parseToken",value:function(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(t){return{error:t}}}}]),t}(),R=function(){function t(e,n){(0,o._)(this,t),this.context=e,this.delegate=n,this.bindingsByAction=new Map}return(0,A._)(t,[{key:"start",value:function(){this.valueListObserver||(this.valueListObserver=new H(this.element,this.actionAttribute,this),this.valueListObserver.start())}},{key:"stop",value:function(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}},{key:"element",get:function(){return this.context.element}},{key:"identifier",get:function(){return this.context.identifier}},{key:"actionAttribute",get:function(){return this.schema.actionAttribute}},{key:"schema",get:function(){return this.context.schema}},{key:"bindings",get:function(){return Array.from(this.bindingsByAction.values())}},{key:"connectAction",value:function(t){var e=new Q(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)}},{key:"disconnectAction",value:function(t){var e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))}},{key:"disconnectAllActions",value:function(){var t=this;this.bindings.forEach(function(e){return t.delegate.bindingDisconnected(e,!0)}),this.bindingsByAction.clear()}},{key:"parseValueForToken",value:function(t){var e=k.forToken(t,this.schema);if(e.identifier==this.identifier)return e}},{key:"elementMatchedValue",value:function(t,e){this.connectAction(e)}},{key:"elementUnmatchedValue",value:function(t,e){this.disconnectAction(e)}}]),t}(),K=function(){function t(e,n){(0,o._)(this,t),this.context=e,this.receiver=n,this.stringMapObserver=new P(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}return(0,A._)(t,[{key:"start",value:function(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}},{key:"stop",value:function(){this.stringMapObserver.stop()}},{key:"element",get:function(){return this.context.element}},{key:"controller",get:function(){return this.context.controller}},{key:"getStringMapKeyForAttribute",value:function(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name}},{key:"stringMapKeyAdded",value:function(t,e){var n=this.valueDescriptorMap[e];this.hasValue(t)||this.invokeChangedCallback(t,n.writer(this.receiver[t]),n.writer(n.defaultValue))}},{key:"stringMapValueChanged",value:function(t,e,n){var r=this.valueDescriptorNameMap[e];null!==t&&(null===n&&(n=r.writer(r.defaultValue)),this.invokeChangedCallback(e,t,n))}},{key:"stringMapKeyRemoved",value:function(t,e,n){var r=this.valueDescriptorNameMap[t];this.hasValue(t)?this.invokeChangedCallback(t,r.writer(this.receiver[t]),n):this.invokeChangedCallback(t,r.writer(r.defaultValue),n)}},{key:"invokeChangedCallbacksForDefaultValues",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this.valueDescriptors[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value,A=o.key,s=o.name,a=o.defaultValue,l=o.writer;void 0==a||this.controller.data.has(A)||this.invokeChangedCallback(s,l(a),void 0)}}catch(t){e=!0,n=t}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}}},{key:"invokeChangedCallback",value:function(t,e,n){var r=this.receiver["".concat(t,"Changed")];if("function"==typeof r){var i=this.valueDescriptorNameMap[t];try{var o=i.reader(e),A=n;n&&(A=i.reader(n)),r.call(this.receiver,o,A)}catch(t){throw t instanceof TypeError&&(t.message='Stimulus Value "'.concat(this.context.identifier,".").concat(i.name,'" - ').concat(t.message)),t}}}},{key:"valueDescriptors",get:function(){var t=this.valueDescriptorMap;return Object.keys(t).map(function(e){return t[e]})}},{key:"valueDescriptorNameMap",get:function(){var t=this,e={};return Object.keys(this.valueDescriptorMap).forEach(function(n){var r=t.valueDescriptorMap[n];e[r.name]=r}),e}},{key:"hasValue",value:function(t){var e=this.valueDescriptorNameMap[t],n="has".concat(_(e.name));return this.receiver[n]}}]),t}(),V=function(){function t(e,n){(0,o._)(this,t),this.context=e,this.delegate=n,this.targetsByName=new D}return(0,A._)(t,[{key:"start",value:function(){this.tokenListObserver||(this.tokenListObserver=new O(this.element,this.attributeName,this),this.tokenListObserver.start())}},{key:"stop",value:function(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}},{key:"tokenMatched",value:function(t){var e=t.element,n=t.content;this.scope.containsElement(e)&&this.connectTarget(e,n)}},{key:"tokenUnmatched",value:function(t){var e=t.element,n=t.content;this.disconnectTarget(e,n)}},{key:"connectTarget",value:function(t,e){var n,r=this;this.targetsByName.has(e,t)||(this.targetsByName.add(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause(function(){return r.delegate.targetConnected(t,e)}))}},{key:"disconnectTarget",value:function(t,e){var n,r=this;this.targetsByName.has(e,t)&&(this.targetsByName.delete(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause(function(){return r.delegate.targetDisconnected(t,e)}))}},{key:"disconnectAllTargets",value:function(){var t=!0,e=!1,n=void 0,r=!0,i=!1,o=void 0;try{for(var A,s=this.targetsByName.keys[Symbol.iterator]();!(r=(A=s.next()).done);r=!0){var a=A.value;try{for(var l,c=this.targetsByName.getValuesForKey(a)[Symbol.iterator]();!(t=(l=c.next()).done);t=!0){var u=l.value;this.disconnectTarget(u,a)}}catch(t){e=!0,n=t}finally{try{t||null==c.return||c.return()}finally{if(e)throw n}}}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}},{key:"attributeName",get:function(){return"data-".concat(this.context.identifier,"-target")}},{key:"element",get:function(){return this.context.element}},{key:"scope",get:function(){return this.context.scope}}]),t}();function z(t,e){return Array.from(G(t).reduce(function(t,n){var r;return(Array.isArray(r=n[e])?r:[]).forEach(function(e){return t.add(e)}),t},new Set))}function G(t){for(var e=[];t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}var q=function(){function t(e,n){(0,o._)(this,t),this.started=!1,this.context=e,this.delegate=n,this.outletsByName=new D,this.outletElementsByName=new D,this.selectorObserverMap=new Map,this.attributeObserverMap=new Map}return(0,A._)(t,[{key:"start",value:function(){var t=this;this.started||(this.outletDefinitions.forEach(function(e){t.setupSelectorObserverForOutlet(e),t.setupAttributeObserverForOutlet(e)}),this.started=!0,this.dependentContexts.forEach(function(t){return t.refresh()}))}},{key:"refresh",value:function(){this.selectorObserverMap.forEach(function(t){return t.refresh()}),this.attributeObserverMap.forEach(function(t){return t.refresh()})}},{key:"stop",value:function(){this.started&&(this.started=!1,this.disconnectAllOutlets(),this.stopSelectorObservers(),this.stopAttributeObservers())}},{key:"stopSelectorObservers",value:function(){this.selectorObserverMap.size>0&&(this.selectorObserverMap.forEach(function(t){return t.stop()}),this.selectorObserverMap.clear())}},{key:"stopAttributeObservers",value:function(){this.attributeObserverMap.size>0&&(this.attributeObserverMap.forEach(function(t){return t.stop()}),this.attributeObserverMap.clear())}},{key:"selectorMatched",value:function(t,e,n){var r=n.outletName,i=this.getOutlet(t,r);i&&this.connectOutlet(i,t,r)}},{key:"selectorUnmatched",value:function(t,e,n){var r=n.outletName,i=this.getOutletFromMap(t,r);i&&this.disconnectOutlet(i,t,r)}},{key:"selectorMatchElement",value:function(t,e){var n=e.outletName,r=this.selector(n),i=this.hasOutlet(t,n),o=t.matches("[".concat(this.schema.controllerAttribute,"~=").concat(n,"]"));return!!r&&i&&o&&t.matches(r)}},{key:"elementMatchedAttribute",value:function(t,e){var n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}},{key:"elementAttributeValueChanged",value:function(t,e){var n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}},{key:"elementUnmatchedAttribute",value:function(t,e){var n=this.getOutletNameFromOutletAttributeName(e);n&&this.updateSelectorObserverForOutlet(n)}},{key:"connectOutlet",value:function(t,e,n){var r,i=this;this.outletElementsByName.has(n,e)||(this.outletsByName.add(n,t),this.outletElementsByName.add(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(function(){return i.delegate.outletConnected(t,e,n)}))}},{key:"disconnectOutlet",value:function(t,e,n){var r,i=this;this.outletElementsByName.has(n,e)&&(this.outletsByName.delete(n,t),this.outletElementsByName.delete(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause(function(){return i.delegate.outletDisconnected(t,e,n)}))}},{key:"disconnectAllOutlets",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this.outletElementsByName.keys[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value,A=!0,s=!1,a=void 0,l=!0,c=!1,u=void 0;try{for(var h,d=this.outletElementsByName.getValuesForKey(o)[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var f=h.value;try{for(var p,g=this.outletsByName.getValuesForKey(o)[Symbol.iterator]();!(A=(p=g.next()).done);A=!0){var m=p.value;this.disconnectOutlet(m,f,o)}}catch(t){s=!0,a=t}finally{try{A||null==g.return||g.return()}finally{if(s)throw a}}}}catch(t){c=!0,u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}}}catch(t){e=!0,n=t}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}}},{key:"updateSelectorObserverForOutlet",value:function(t){var e=this.selectorObserverMap.get(t);e&&(e.selector=this.selector(t))}},{key:"setupSelectorObserverForOutlet",value:function(t){var e=this.selector(t),n=new N(document.body,e,this,{outletName:t});this.selectorObserverMap.set(t,n),n.start()}},{key:"setupAttributeObserverForOutlet",value:function(t){var e=this.attributeNameForOutletName(t),n=new L(this.scope.element,e,this);this.attributeObserverMap.set(t,n),n.start()}},{key:"selector",value:function(t){return this.scope.outlets.getSelectorForOutletName(t)}},{key:"attributeNameForOutletName",value:function(t){return this.scope.schema.outletAttributeForScope(this.identifier,t)}},{key:"getOutletNameFromOutletAttributeName",value:function(t){var e=this;return this.outletDefinitions.find(function(n){return e.attributeNameForOutletName(n)===t})}},{key:"outletDependencies",get:function(){var t=new D;return this.router.modules.forEach(function(e){z(e.definition.controllerConstructor,"outlets").forEach(function(n){return t.add(n,e.identifier)})}),t}},{key:"outletDefinitions",get:function(){return this.outletDependencies.getKeysForValue(this.identifier)}},{key:"dependentControllerIdentifiers",get:function(){return this.outletDependencies.getValuesForKey(this.identifier)}},{key:"dependentContexts",get:function(){var t=this.dependentControllerIdentifiers;return this.router.contexts.filter(function(e){return t.includes(e.identifier)})}},{key:"hasOutlet",value:function(t,e){return!!this.getOutlet(t,e)||!!this.getOutletFromMap(t,e)}},{key:"getOutlet",value:function(t,e){return this.application.getControllerForElementAndIdentifier(t,e)}},{key:"getOutletFromMap",value:function(t,e){return this.outletsByName.getValuesForKey(e).find(function(e){return e.element===t})}},{key:"scope",get:function(){return this.context.scope}},{key:"schema",get:function(){return this.context.schema}},{key:"identifier",get:function(){return this.context.identifier}},{key:"application",get:function(){return this.context.application}},{key:"router",get:function(){return this.application.router}}]),t}(),W=function(){function t(e,n){var r=this;(0,o._)(this,t),this.logDebugActivity=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object.assign({identifier:r.identifier,controller:r.controller,element:r.element},e),r.application.logDebugActivity(r.identifier,t,e)},this.module=e,this.scope=n,this.controller=new e.controllerConstructor(this),this.bindingObserver=new R(this,this.dispatcher),this.valueObserver=new K(this,this.controller),this.targetObserver=new V(this,this),this.outletObserver=new q(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(t){this.handleError(t,"initializing controller")}}return(0,A._)(t,[{key:"connect",value:function(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(t){this.handleError(t,"connecting controller")}}},{key:"refresh",value:function(){this.outletObserver.refresh()}},{key:"disconnect",value:function(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(t){this.handleError(t,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}},{key:"application",get:function(){return this.module.application}},{key:"identifier",get:function(){return this.module.identifier}},{key:"schema",get:function(){return this.application.schema}},{key:"dispatcher",get:function(){return this.application.dispatcher}},{key:"element",get:function(){return this.scope.element}},{key:"parentElement",get:function(){return this.element.parentElement}},{key:"handleError",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({identifier:this.identifier,controller:this.controller,element:this.element},n),this.application.handleError(t,"Error ".concat(e),n)}},{key:"targetConnected",value:function(t,e){this.invokeControllerMethod("".concat(e,"TargetConnected"),t)}},{key:"targetDisconnected",value:function(t,e){this.invokeControllerMethod("".concat(e,"TargetDisconnected"),t)}},{key:"outletConnected",value:function(t,e,n){this.invokeControllerMethod("".concat(b(n),"OutletConnected"),t,e)}},{key:"outletDisconnected",value:function(t,e,n){this.invokeControllerMethod("".concat(b(n),"OutletDisconnected"),t,e)}},{key:"invokeControllerMethod",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:document.documentElement,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ts,r=this;(0,o._)(this,t),this.logger=console,this.debug=!1,this.logDebugActivity=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.debug&&r.logFormattedMessage(t,e,n)},this.element=e,this.schema=n,this.dispatcher=new m(this),this.router=new tA(this),this.actionDescriptorFilters=Object.assign({},v)}return(0,A._)(t,[{key:"start",value:function(){var t=this;return(0,i._)(function(){return(0,p._)(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function(){return t()}):t()})];case 1:return e.sent(),t.logDebugActivity("application","starting"),t.dispatcher.start(),t.router.start(),t.logDebugActivity("application","start"),[2]}})})()}},{key:"stop",value:function(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}},{key:"register",value:function(t,e){this.load({identifier:t,controllerConstructor:e})}},{key:"registerActionOption",value:function(t,e){this.actionDescriptorFilters[t]=e}},{key:"load",value:function(t){for(var e=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({application:this},n),this.logger.groupCollapsed("".concat(t," #").concat(e)),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}],[{key:"start",value:function(t,e){var n=new this(t,e);return n.start(),n}}]),t}();function tc(t,e,n){return t.application.getControllerForElementAndIdentifier(e,n)}function tu(t,e,n){var r=tc(t,e,n);return r||((t.application.router.proposeToConnectScopeForElementAndIdentifier(e,n),r=tc(t,e,n))?r:void 0)}function th(t,e){var n,r,i,o,A,s=(0,u._)(t,2);return r=(n={controller:e,token:s[0],typeDefinition:s[1]}).token,i=n.typeDefinition,o="".concat(B(r),"-value"),{type:A=function(t){var e=t.controller,n=t.token,r=t.typeDefinition,i=function(t){var e=t.controller,n=t.token,r=t.typeObject,i=null!=r.type,o=null!=r.default,A=td(r.type),s=tf(t.typeObject.default);if(i&&!o)return A;if(!i&&o)return s;if(A!==s){var a=e?"".concat(e,".").concat(n):n;throw Error('The specified default value for the Stimulus Value "'.concat(a,'" must match the defined type "').concat(A,'". The provided default value of "').concat(r.default,'" is of type "').concat(s,'".'))}if(i&&o)return A}({controller:e,token:n,typeObject:r}),o=tf(r),A=td(r),s=i||o||A;if(s)return s;var a=e?"".concat(e,".").concat(r):n;throw Error('Unknown value type "'.concat(a,'" for "').concat(n,'" value'))}(n),key:o,name:w(o),get defaultValue(){return function(t){var e=td(t);if(e)return tp[e];var n=x(t,"default"),r=x(t,"type");if(n)return t.default;if(r){var i=td(t.type);if(i)return tp[i]}return t}(i)},get hasCustomDefaultValue(){return void 0!==tf(i)},reader:tg[A],writer:tm[A]||tm.default}}function td(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function tf(t){switch(void 0===t?"undefined":(0,d._)(t)){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(t)?"array":"[object Object]"===Object.prototype.toString.call(t)?"object":void 0}var tp={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},tg={array:function(t){var e=JSON.parse(t);if(!Array.isArray(e))throw TypeError('expected value of type "array" but instead got value "'.concat(t,'" of type "').concat(tf(e),'"'));return e},boolean:function(t){return!("0"==t||"false"==String(t).toLowerCase())},number:function(t){return Number(t.replace(/_/g,""))},object:function(t){var e=JSON.parse(t);if(null===e||"object"!=typeof e||Array.isArray(e))throw TypeError('expected value of type "object" but instead got value "'.concat(t,'" of type "').concat(tf(e),'"'));return e},string:function(t){return t}},tm={default:function(t){return"".concat(t)},array:tv,object:tv};function tv(t){return JSON.stringify(t)}var ty=function(){function t(e){(0,o._)(this,t),this.context=e}return(0,A._)(t,[{key:"application",get:function(){return this.context.application}},{key:"scope",get:function(){return this.context.scope}},{key:"element",get:function(){return this.scope.element}},{key:"identifier",get:function(){return this.scope.identifier}},{key:"targets",get:function(){return this.scope.targets}},{key:"outlets",get:function(){return this.scope.outlets}},{key:"classes",get:function(){return this.scope.classes}},{key:"data",get:function(){return this.scope.data}},{key:"initialize",value:function(){}},{key:"connect",value:function(){}},{key:"disconnect",value:function(){}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.target,r=void 0===n?this.element:n,i=e.detail,o=e.prefix,A=void 0===o?this.identifier:o,s=e.bubbles,a=e.cancelable,l=new CustomEvent(A?"".concat(A,":").concat(t):t,{detail:void 0===i?{}:i,bubbles:void 0===s||s,cancelable:void 0===a||a});return r.dispatchEvent(l),l}}],[{key:"shouldLoad",get:function(){return!0}},{key:"afterLoad",value:function(t,e){}}]),t}();ty.blessings=[function(t){return z(t,"classes").reduce(function(t,e){var n;return Object.assign(t,(n={},(0,s._)(n,"".concat(e,"Class"),{get:function(){var t=this.classes;if(t.has(e))return t.get(e);var n=t.getAttributeName(e);throw Error('Missing attribute "'.concat(n,'"'))}}),(0,s._)(n,"".concat(e,"Classes"),{get:function(){return this.classes.getAll(e)}}),(0,s._)(n,"has".concat(_(e),"Class"),{get:function(){return this.classes.has(e)}}),n))},{})},function(t){return z(t,"targets").reduce(function(t,e){var n;return Object.assign(t,(n={},(0,s._)(n,"".concat(e,"Target"),{get:function(){var t=this.targets.find(e);if(t)return t;throw Error('Missing target element "'.concat(e,'" for "').concat(this.identifier,'" controller'))}}),(0,s._)(n,"".concat(e,"Targets"),{get:function(){return this.targets.findAll(e)}}),(0,s._)(n,"has".concat(_(e),"Target"),{get:function(){return this.targets.has(e)}}),n))},{})},function(t){var e,n=(e="values",G(t).reduce(function(t,n){var r;return t.push.apply(t,(0,h._)((r=n[e])?Object.keys(r).map(function(t){return[t,r[t]]}):[])),t},[]));return n.reduce(function(t,e){var n,r,i,o,A,a;return Object.assign(t,(i=(r=th(e,void 0)).key,o=r.name,A=r.reader,a=r.writer,n={},(0,s._)(n,o,{get:function(){var t=this.data.get(i);return null!==t?A(t):r.defaultValue},set:function(t){void 0===t?this.data.delete(i):this.data.set(i,a(t))}}),(0,s._)(n,"has".concat(_(o)),{get:function(){return this.data.has(i)||r.hasCustomDefaultValue}}),n))},{valueDescriptorMap:{get:function(){var t=this;return n.reduce(function(e,n){var r=th(n,t.identifier),i=t.data.getAttributeNameForKey(r.key);return Object.assign(e,(0,s._)({},i,r))},{})}}})},function(t){return z(t,"outlets").reduce(function(t,e){var n,r;return Object.assign(t,(r=b(e),n={},(0,s._)(n,"".concat(r,"Outlet"),{get:function(){var t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t){var r=tu(this,t,e);if(r)return r;throw Error('The provided outlet element is missing an outlet controller "'.concat(e,'" instance for host controller "').concat(this.identifier,'"'))}throw Error('Missing outlet element "'.concat(e,'" for host controller "').concat(this.identifier,'". Stimulus couldn\'t find a matching outlet element using selector "').concat(n,'".'))}}),(0,s._)(n,"".concat(r,"Outlets"),{get:function(){var t=this,n=this.outlets.findAll(e);return n.length>0?n.map(function(n){var r=tu(t,n,e);if(r)return r;console.warn('The provided outlet element is missing an outlet controller "'.concat(e,'" instance for host controller "').concat(t.identifier,'"'),n)}).filter(function(t){return t}):[]}}),(0,s._)(n,"".concat(r,"OutletElement"),{get:function(){var t=this.outlets.find(e),n=this.outlets.getSelectorForOutletName(e);if(t)return t;throw Error('Missing outlet element "'.concat(e,'" for host controller "').concat(this.identifier,'". Stimulus couldn\'t find a matching outlet element using selector "').concat(n,'".'))}}),(0,s._)(n,"".concat(r,"OutletElements"),{get:function(){return this.outlets.findAll(e)}}),(0,s._)(n,"has".concat(_(r),"Outlet"),{get:function(){return this.outlets.has(e)}}),n))},{})}],ty.targets=[],ty.outlets=[],ty.values={}},{"@swc/helpers/_/_async_to_generator":"6Tpxj","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_get":"6FgjI","@swc/helpers/_/_get_prototype_of":"4Pl3E","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_sliced_to_array":"hefcy","@swc/helpers/_/_to_consumable_array":"4oNkS","@swc/helpers/_/_type_of":"2bRX5","@swc/helpers/_/_create_super":"a37Ru","@swc/helpers/_/_ts_generator":"lwj56","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"6Tpxj":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e,n,r,i,o,A){try{var s=t[o](A),a=s.value}catch(t){n(t);return}s.done?e(a):Promise.resolve(a).then(r,i)}function o(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var A=t.apply(e,n);function s(t){i(A,r,o,s,a,"next",t)}function a(t){i(A,r,o,s,a,"throw",t)}s(void 0)})}}r.defineInteropFlag(n),r.export(n,"_async_to_generator",function(){return o}),r.export(n,"_",function(){return o})},{"@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],kPSB8:[function(t,e,n){n.interopDefault=function(t){return t&&t.__esModule?t:{default:t}},n.defineInteropFlag=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.exportAll=function(t,e){return Object.keys(t).forEach(function(n){"default"===n||"__esModule"===n||Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})}),e},n.export=function(t,e,n){Object.defineProperty(t,e,{enumerable:!0,get:n})}},{}],"2HOGN":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}r.defineInteropFlag(n),r.export(n,"_class_call_check",function(){return i}),r.export(n,"_",function(){return i})},{"@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"8oe8p":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");function i(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);ne.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);ie.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function l(t,e,n,r){var i,o=arguments.length,A=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)A=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(A=(o<3?i(A):o>3?i(e,n,A):i(e,n))||A);return o>3&&A&&Object.defineProperty(e,n,A),A}function c(t,e){return function(n,r){e(n,r,t)}}function u(t,e,n,r,i,o){function A(t){if(void 0!==t&&"function"!=typeof t)throw TypeError("Function expected");return t}for(var s,a=r.kind,l="getter"===a?"get":"setter"===a?"set":"value",c=!e&&t?r.static?t:t.prototype:null,u=e||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h=!1,d=n.length-1;d>=0;d--){var f={};for(var p in r)f[p]="access"===p?{}:r[p];for(var p in r.access)f.access[p]=r.access[p];f.addInitializer=function(t){if(h)throw TypeError("Cannot add initializers after decoration has completed");o.push(A(t||null))};var g=(0,n[d])("accessor"===a?{get:u.get,set:u.set}:u[l],f);if("accessor"===a){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw TypeError("Object expected");(s=A(g.get))&&(u.get=s),(s=A(g.set))&&(u.set=s),(s=A(g.init))&&i.unshift(s)}else(s=A(g))&&("field"===a?i.unshift(s):u[l]=s)}c&&Object.defineProperty(c,r.name,u),h=!0}function h(t,e,n){for(var r=arguments.length>2,i=0;i0&&i[i.length-1])&&(6===s[0]||2===s[0])){A=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),A=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)A.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return A}function _(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{var n;(n=i[t](e)).value instanceof C?Promise.resolve(n.value.v).then(a,l):c(o[0][2],n)}catch(t){c(o[0][3],t)}}function a(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function F(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:C(t[r](e)),done:!1}:i?i(e):e}:i}}function E(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=w(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,i){!function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,i,(e=t[n](e)).done,e.value)})}}}function Q(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function L(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&v(e,t,n);return S(e,t),e}function U(t){return t&&t.__esModule?t:{default:t}}function I(t,e,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function j(t,e,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function M(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function D(t,e,n){if(null!=e){var r;if("object"!=typeof e&&"function"!=typeof e)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var T="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function N(t){function e(e){t.error=t.hasError?new T(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}return function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(t){return e(t),n()})}catch(t){e(t)}}if(t.hasError)throw t.error}()}n.default={__extends:A,__assign:s,__rest:a,__decorate:l,__param:c,__metadata:p,__awaiter:g,__generator:m,__createBinding:v,__exportStar:y,__values:w,__read:b,__spread:_,__spreadArrays:B,__spreadArray:x,__await:C,__asyncGenerator:k,__asyncDelegator:F,__asyncValues:E,__makeTemplateObject:Q,__importStar:L,__importDefault:U,__classPrivateFieldGet:I,__classPrivateFieldSet:j,__classPrivateFieldIn:M,__addDisposableResource:D,__disposeResources:N}},{"@swc/helpers/_/_type_of":"2bRX5","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],Tlrpp:[function(t,e,n){function r(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&this.registerTriggers.apply(this,i(o)),this.onClick=this.onClick.bind(this),this.onKeydown=this.onKeydown.bind(this)}return t=[{key:"registerTriggers",value:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:null;(this.activeElement=document.activeElement,this.modal.setAttribute("aria-hidden","false"),this.modal.classList.add(this.config.openClass),this.scrollBehaviour("disable"),this.addEventListeners(),this.config.awaitOpenAnimation)?this.modal.addEventListener("animationend",function e(){t.modal.removeEventListener("animationend",e,!1),t.setFocusToFirstNode()},!1):this.setFocusToFirstNode(),this.config.onShow(this.modal,this.activeElement,e)}},{key:"closeModal",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.modal;if(this.modal.setAttribute("aria-hidden","true"),this.removeEventListeners(),this.scrollBehaviour("enable"),this.activeElement&&this.activeElement.focus&&this.activeElement.focus(),this.config.onClose(this.modal,this.activeElement,t),this.config.awaitCloseAnimation){var n=this.config.openClass;this.modal.addEventListener("animationend",function t(){e.classList.remove(n),e.removeEventListener("animationend",t,!1)},!1)}else e.classList.remove(this.config.openClass)}},{key:"closeModalById",value:function(t){this.modal=document.getElementById(t),this.modal&&this.closeModal()}},{key:"scrollBehaviour",value:function(t){if(this.config.disableScroll){var e=document.querySelector("body");switch(t){case"enable":Object.assign(e.style,{overflow:""});break;case"disable":Object.assign(e.style,{overflow:"hidden"})}}}},{key:"addEventListeners",value:function(){this.modal.addEventListener("touchstart",this.onClick),this.modal.addEventListener("click",this.onClick),document.addEventListener("keydown",this.onKeydown)}},{key:"removeEventListeners",value:function(){this.modal.removeEventListener("touchstart",this.onClick),this.modal.removeEventListener("click",this.onClick),document.removeEventListener("keydown",this.onKeydown)}},{key:"onClick",value:function(t){(t.target.hasAttribute(this.config.closeTrigger)||t.target.parentNode.hasAttribute(this.config.closeTrigger))&&(t.preventDefault(),t.stopPropagation(),this.closeModal(t))}},{key:"onKeydown",value:function(t){27===t.keyCode&&this.closeModal(t),9===t.keyCode&&this.retainFocus(t)}},{key:"getFocusableNodes",value:function(){return Array.apply(void 0,i(this.modal.querySelectorAll(A)))}},{key:"setFocusToFirstNode",value:function(){var t=this;if(!this.config.disableFocus){var e=this.getFocusableNodes();if(0!==e.length){var n=e.filter(function(e){return!e.hasAttribute(t.config.closeTrigger)});n.length>0&&n[0].focus(),0===n.length&&e[0].focus()}}}},{key:"retainFocus",value:function(t){var e=this.getFocusableNodes();if(0!==e.length){if(e=e.filter(function(t){return null!==t.offsetParent}),this.modal.contains(document.activeElement)){var n=e.indexOf(document.activeElement);t.shiftKey&&0===n&&(e[e.length-1].focus(),t.preventDefault()),!t.shiftKey&&e.length>0&&n===e.length-1&&(e[0].focus(),t.preventDefault())}else e[0].focus()}}}],r(n.prototype,t),e&&r(n,e),n}(),a=null,l=function(t){if(!document.getElementById(t))return console.warn("MicroModal: ❗Seems like you have missed %c'".concat(t,"'"),"background-color: #f8f9fa;color: #50596c;font-weight: bold;","ID somewhere in your code. Refer example below to resolve it."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!1},c=function(t,e){if(t.length<=0&&(console.warn("MicroModal: ❗Please specify at least one %c'micromodal-trigger'","background-color: #f8f9fa;color: #50596c;font-weight: bold;","data attribute."),console.warn("%cExample:","background-color: #f8f9fa;color: #50596c;font-weight: bold;",'')),!e)return!0;for(var n in e)l(n);return!0},{init:function(t){var e,n,r=Object.assign({},{openTrigger:"data-micromodal-trigger"},t),o=i(document.querySelectorAll("[".concat(r.openTrigger,"]"))),A=(e=r.openTrigger,n=[],o.forEach(function(t){var r=t.attributes[e].value;void 0===n[r]&&(n[r]=[]),n[r].push(t)}),n);if(!0!==r.debugMode||!1!==c(o,A))for(var l in A){var u=A[l];r.targetModal=l,r.triggers=i(u),a=new s(r)}},show:function(t,e){var n=e||{};n.targetModal=t,!0===n.debugMode&&!1===l(t)||(a&&a.removeEventListeners(),(a=new s(n)).showModal())},close:function(t){t?a.closeModalById(t):a.closeModal()}});"undefined"!=typeof window&&(window.MicroModal=u),n.default=u},{"@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],afw1Q:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return u});var i=t("@swc/helpers/_/_class_call_check"),o=t("@swc/helpers/_/_create_class"),A=t("@swc/helpers/_/_define_property"),s=t("@swc/helpers/_/_inherits"),a=t("@swc/helpers/_/_object_spread"),l=t("@swc/helpers/_/_object_spread_props"),c=t("@swc/helpers/_/_create_super"),u=function(t){(0,s._)(n,t);var e=(0,c._)(n);function n(){return(0,i._)(this,n),e.apply(this,arguments)}return(0,o._)(n,[{key:"submit",value:function(t){var e=this;t.preventDefault();var n=(0,l._)((0,a._)({},iawpActions.create_campaign),{path:this.formTarget.elements.path.value,utm_source:this.formTarget.elements.utm_source.value,utm_medium:this.formTarget.elements.utm_medium.value,utm_campaign:this.formTarget.elements.utm_campaign.value,utm_term:this.formTarget.elements.utm_term.value,utm_content:this.formTarget.elements.utm_content.value});this.submitButtonTarget.setAttribute("disabled","disabled"),this.submitButtonTarget.classList.add("sending"),jQuery.post(ajaxurl,n,function(t){e.submitButtonTarget.removeAttribute("disabled"),e.submitButtonTarget.classList.remove("sending"),e.element.outerHTML=t.data.html})}},{key:"reuse",value:function(t){var e=this;try{this.newCampaignTarget.remove()}catch(t){}var n=JSON.parse(t.target.dataset.result);Object.keys(this.formTarget.elements).forEach(function(t){e.formTarget.elements[t].classList.remove("error"),e.formTarget.elements[t].parentElement.querySelectorAll("p.error").forEach(function(t){t.remove()})}),Object.keys(n).forEach(function(t){e.formTarget.elements[t]&&(e.formTarget.elements[t].value=n[t])}),this.formTarget.parentElement.scrollIntoView({behavior:"smooth"})}},{key:"delete",value:function(t){t.preventDefault();var e=(0,l._)((0,a._)({},iawpActions.delete_campaign),{campaign_url_id:t.target.dataset.campaignUrlId});t.target.setAttribute("disabled","disabled"),t.target.classList.add("sending"),jQuery.post(ajaxurl,e,function(e){t.target.removeAttribute("disabled"),t.target.classList.add("sent"),t.target.classList.remove("sending"),setTimeout(function(){t.target.closest(".campaign").classList.add("removing")},500),setTimeout(function(){t.target.closest(".campaign").remove()},1e3)})}}]),n}(t("@hotwired/stimulus").Controller);(0,A._)(u,"targets",["form","submitButton","newCampaign"])},{"@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_object_spread":"kexvf","@swc/helpers/_/_object_spread_props":"c7x3p","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],kexvf:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"_object_spread",function(){return o}),r.export(n,"_",function(){return o});var i=t("./_define_property.js");function o(t){for(var e=1;e1&&this.chart.data.datasets.pop(),this.hasSecondaryMetric()){var n=this.secondaryChartMetricIdValue,r=this.secondaryChartMetricNameValue,i=this.dataValue[n],o=this.hasSharedAxis(this.primaryChartMetricIdValue,n)?"y":"defaultRight";this.chart.data.datasets.push(this.makeDataset(n,r,i,o,"rgba(246,157,10)"));var A=i.every(function(t){return 0===t});this.chart.options.scales.defaultRight.suggestedMax=A?10:null,this.chart.options.scales.defaultRight.beginAtZero="bounce_rate"!==n}this.chart.update()}},{key:"makeDataset",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],A=(0,m.default)(i);return{id:t,label:e,data:n,borderColor:A.string(),backgroundColor:A.alpha(.1).string(),pointBackgroundColor:A.string(),tension:.4,yAxisID:r,fill:!0,order:o?1:0}}},{key:"shouldUseDarkMode",value:function(){return(0,v.isDarkMode)()&&!this.disableDarkModeValue}},{key:"createChart",value:function(){var t=this;p.Chart.defaults.font.family='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';var e={type:"line",data:{labels:this.labelsValue,datasets:[this.makeDataset(this.primaryChartMetricIdValue,this.primaryChartMetricNameValue,this.dataValue[this.primaryChartMetricIdValue],"y","rgba(108,70,174)",!0)].filter(function(t){return null!==t})},options:{locale:this.getLocale(),maintainAspectRatio:!this.isPreviewValue,aspectRatio:3,onResize:function(t,e){e.width,document.documentElement.clientWidth<=782&&3===t.options.aspectRatio?(t.options.aspectRatio=1.5,t.update()):document.documentElement.clientWidth>782&&1.5===t.options.aspectRatio&&(t.options.aspectRatio=3,t.update())},interaction:{intersect:!1,mode:"index"},scales:{y:{grid:{color:this.shouldUseDarkMode()?"#676173":"#DEDAE6",borderColor:"#DEDAE6",tickColor:"#DEDAE6",display:!0,drawOnChartArea:!0,borderDash:[2,4]},beginAtZero:!0,suggestedMax:null,ticks:{color:this.shouldUseDarkMode()?"#ffffff":"#6D6A73",font:{size:14,weight:400},precision:0,callback:function(e,n,r){return t.formatValueForMetric(t.primaryChartMetricIdValue,e)}}},defaultRight:{position:"right",display:"auto",grid:{color:this.shouldUseDarkMode()?"#9a95a6":"#DEDAE6",borderColor:"#DEDAE6",tickColor:"#DEDAE6",display:!0,drawOnChartArea:!1,borderDash:[2,4]},beginAtZero:!0,suggestedMax:null,ticks:{color:this.shouldUseDarkMode()?"#ffffff":"#6D6A73",font:{size:14,weight:400},precision:0,callback:function(e,n,r){return t.hasSecondaryMetric()?t.formatValueForMetric(t.secondaryChartMetricIdValue,e):e}}},x:{grid:{borderColor:"#DEDAE6",tickColor:"#DEDAE6",display:!0,drawOnChartArea:!1},ticks:{color:this.shouldUseDarkMode()?"#ffffff":"#6D6A73",autoSkip:!0,autoSkipPadding:16,maxRotation:0,font:{size:14,weight:400},callback:this.tickText}}},plugins:{mode:String,legend:{display:!1},corsair:{dash:[2,4],color:"#777",width:1},tooltip:{itemSort:function(t,e){return t.datasetIndexs||co){t.corsair={x:l,y:c,draw:!1},t.draw();return}t.corsair={x:l,y:c,draw:!0},t.draw()}},afterDatasetsDraw:function(t,e,n){if(!n.disabled){var r=t.ctx,i=t.chartArea,o=i.top,A=i.bottom;i.left,i.right;var s=t.corsair,a=s.x;s.y,s.draw&&(a=t.tooltip.caretX,r.lineWidth=n.width||0,r.setLineDash(n.dash||[]),r.strokeStyle=n.color||"black",r.save(),r.beginPath(),r.moveTo(a,A),r.lineTo(a,o),r.stroke(),r.restore(),r.setLineDash([]))}}}},{}],"1stGI":[function(t,e,n){/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"defaults",function(){return v.d}),r.export(n,"Animation",function(){return _}),r.export(n,"Animations",function(){return x}),r.export(n,"ArcElement",function(){return er}),r.export(n,"BarController",function(){return H}),r.export(n,"BarElement",function(){return ey}),r.export(n,"BasePlatform",function(){return tC}),r.export(n,"BasicPlatform",function(){return tk}),r.export(n,"BubbleController",function(){return R}),r.export(n,"CategoryScale",function(){return e$}),r.export(n,"Chart",function(){return t7}),r.export(n,"DatasetController",function(){return M}),r.export(n,"Decimation",function(){return eB}),r.export(n,"DomPlatform",function(){return tO}),r.export(n,"DoughnutController",function(){return K}),r.export(n,"Element",function(){return W}),r.export(n,"Filler",function(){return ej}),r.export(n,"Interaction",function(){return tf}),r.export(n,"Legend",function(){return eT}),r.export(n,"LineController",function(){return V}),r.export(n,"LineElement",function(){return eu}),r.export(n,"LinearScale",function(){return e2}),r.export(n,"LogarithmicScale",function(){return e4}),r.export(n,"PieController",function(){return G}),r.export(n,"PointElement",function(){return ed}),r.export(n,"PolarAreaController",function(){return z}),r.export(n,"RadarController",function(){return q}),r.export(n,"RadialLinearScale",function(){return e7}),r.export(n,"Scale",function(){return tn}),r.export(n,"ScatterController",function(){return to}),r.export(n,"SubTitle",function(){return eH}),r.export(n,"Ticks",function(){return X}),r.export(n,"TimeScale",function(){return nA}),r.export(n,"TimeSeriesScale",function(){return na}),r.export(n,"Title",function(){return eP}),r.export(n,"Tooltip",function(){return eJ}),r.export(n,"_adapters",function(){return tl}),r.export(n,"_detectPlatform",function(){return tH}),r.export(n,"animator",function(){return y}),r.export(n,"controllers",function(){return tA}),r.export(n,"elements",function(){return ew}),r.export(n,"layouts",function(){return tx}),r.export(n,"plugins",function(){return eZ}),r.export(n,"registerables",function(){return nc}),r.export(n,"registry",function(){return ti}),r.export(n,"scales",function(){return nl});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_get"),l=t("@swc/helpers/_/_get_prototype_of"),c=t("@swc/helpers/_/_inherits"),u=t("@swc/helpers/_/_object_spread"),h=t("@swc/helpers/_/_object_spread_props"),d=t("@swc/helpers/_/_sliced_to_array"),f=t("@swc/helpers/_/_to_consumable_array"),p=t("@swc/helpers/_/_type_of"),g=t("@swc/helpers/_/_wrap_native_super"),m=t("@swc/helpers/_/_create_super"),v=t("./chunks/helpers.segment.mjs"),y=new(function(){function t(){(0,o._)(this,t),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return(0,A._)(t,[{key:"_notify",value:function(t,e,n,r){var i=e.listeners[r],o=e.duration;i.forEach(function(r){return r({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})})}},{key:"_refresh",value:function(){var t=this;this._request||(this._running=!0,this._request=(0,v.r).call(window,function(){t._update(),t._request=null,t._running&&t._refresh()}))}},{key:"_update",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach(function(r,i){if(r.running&&r.items.length){for(var o,A=r.items,s=A.length-1,a=!1;s>=0;--s)(o=A[s])._active?(o._total>r.duration&&(r.duration=o._total),o.tick(e),a=!0):(A[s]=A[A.length-1],A.pop());a&&(i.draw(),t._notify(i,r,e,"progress")),A.length||(r.running=!1,t._notify(i,r,e,"complete"),r.initial=!1),n+=A.length}}),this._lastDate=e,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(t){var e=this._charts,n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}},{key:"listen",value:function(t,e,n){this._getAnims(t).listeners[e].push(n)}},{key:"add",value:function(t,e){var n;e&&e.length&&(n=this._getAnims(t).items).push.apply(n,(0,f._)(e))}},{key:"has",value:function(t){return this._getAnims(t).items.length>0}},{key:"start",value:function(t){var e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(function(t,e){return Math.max(t,e._duration)},0),this._refresh())}},{key:"running",value:function(t){if(!this._running)return!1;var e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}},{key:"stop",value:function(t){var e=this._charts.get(t);if(e&&e.items.length){for(var n=e.items,r=n.length-1;r>=0;--r)n[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}}},{key:"remove",value:function(t){return this._charts.delete(t)}}]),t}()),w="transparent",b={boolean:function(t,e,n){return n>.5?e:t},color:function(t,e,n){var r=(0,v.c)(t||w),i=r.valid&&(0,v.c)(e||w);return i&&i.valid?i.mix(r,n).hexString():e},number:function(t,e,n){return t+(e-t)*n}},_=function(){function t(e,n,r,i){(0,o._)(this,t);var A=n[r];i=(0,v.a)([e.to,i,A,e.from]);var s=(0,v.a)([e.from,A,i]);this._active=!0,this._fn=e.fn||b[e.type||(void 0===s?"undefined":(0,p._)(s))],this._easing=v.e[e.easing]||v.e.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}return(0,A._)(t,[{key:"active",value:function(){return this._active}},{key:"update",value:function(t,e,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,o=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=(0,v.a)([t.to,e,r,t.from]),this._from=(0,v.a)([t.from,r,e])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(t){var e,n=t-this._start,r=this._duration,i=this._prop,o=this._from,A=this._loop,s=this._to;if(this._active=o!==s&&(A||n1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[i]=this._fn(o,s,e)}},{key:"wait",value:function(){var t=this._promises||(this._promises=[]);return new Promise(function(e,n){t.push({res:e,rej:n})})}},{key:"_notify",value:function(t){for(var e=t?"res":"rej",n=this._promises||[],r=0;r=0;--s){var s,a=o[s];if("$"!==a.charAt(0)){if("options"===a){r.push.apply(r,(0,f._)(this._animateOptions(t,e)));continue}var l=e[a],c=i[a],u=n.get(a);if(c){if(u&&c.active()){c.update(u,l,A);continue}c.cancel()}if(!u||!u.duration){t[a]=l;continue}i[a]=c=new _(u,t,a,l),r.push(c)}}return r}},{key:"update",value:function(t,e){if(0===this._properties.size){Object.assign(t,e);return}var n=this._createAnimations(t,e);if(n.length)return y.add(this._chart,n),!0}}]),t}();function C(t,e){var n=t&&t.options||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function k(t,e){var n,r,i=[],o=t._getSortedDatasetMetas(e);for(n=0,r=o.length;n3&&void 0!==arguments[3]?arguments[3]:{},a=t.keys,l="single"===s.mode;if(null!==e){for(r=0,i=a.length;r0||!n&&c<0)return l.index}}catch(t){o=!0,A=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw A}}return null}function S(t,e){for(var n,r=t.chart,i=t._cachedMeta,o=r._stacks||(r._stacks={}),A=i.iScale,s=i.vScale,a=i.index,l=A.axis,c=s.axis,u="".concat(A.id,".").concat(s.id,".").concat(i.stack||i.type),h=e.length,d=0;d0&&o._parsed[t-1];if(!1===this._parsing)o._parsed=A,o._sorted=!0,i=A;else{for(n=0,i=(0,v.b)(A[t])?this.parseArrayData(o,A,t,e):(0,v.i)(A[t])?this.parseObjectData(o,A,t,e):this.parsePrimitiveData(o,A,t,e);ne||m=0;--A)if(!y()){this.updateRangeFromParsed(f,t,s,d);break}}return f}},{key:"getAllParsedValues",value:function(t){var e,n,r,i=this._cachedMeta._parsed,o=[];for(e=0,n=i.length;e=0&&t1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,o=this._cachedDataOpts,A=t+"-"+n,s=o[A],a=this.enableOptionSharing&&(0,v.j)(r);if(s)return j(s,a);var l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=l.getOptionScopes(this.getDataset(),c),h=Object.keys(v.d.elements[t]),d=l.resolveNamedOptions(u,h,function(){return e.getContext(r,i)},i?["".concat(t,"Hover"),"hover",t,""]:[t,""]);return d.$shared&&(d.$shared=a,o[A]=Object.freeze(j(d,a))),d}},{key:"_resolveAnimations",value:function(t,e,n){var r,i=this.chart,o=this._cachedDataOpts,A="animation-".concat(e),s=o[A];if(s)return s;if(!1!==i.options.animation){var a=this.chart.config,l=a.datasetAnimationScopeKeys(this._type,e),c=a.getOptionScopes(this.getDataset(),l);r=a.createResolver(c,this.getContext(t,n,e))}var u=new x(i,r&&r.animations);return r&&r._cacheable&&(o[A]=Object.freeze(u)),u}},{key:"getSharedOptions",value:function(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}},{key:"includeOptions",value:function(t,e){return!e||I(t)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(t,e){var n=this.resolveDataElementOptions(t,e),r=this._sharedOptions,i=this.getSharedOptions(n),o=this.includeOptions(e,i)||i!==r;return this.updateSharedOptions(i,e,n),{sharedOptions:i,includeOptions:o}}},{key:"updateElement",value:function(t,e,n,r){I(r)?Object.assign(t,n):this._resolveAnimations(e,r).update(t,n)}},{key:"updateSharedOptions",value:function(t,e,n){t&&!I(e)&&this._resolveAnimations(void 0,e).update(t,n)}},{key:"_setStyle",value:function(t,e,n,r){t.active=r;var i=this.getStyle(e,r);this._resolveAnimations(e,n,r).update(t,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!1)}},{key:"setHoverStyle",value:function(t,e,n){this._setStyle(t,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}},{key:"_resyncElements",value:function(t){var e=this._data,n=this._cachedMeta.data,r=!0,i=!1,o=void 0;try{for(var A,s=this._syncList[Symbol.iterator]();!(r=(A=s.next()).done);r=!0){var a=(0,d._)(A.value,3),l=a[0],c=a[1],u=a[2];this[l](c,u)}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}this._syncList=[];var h=n.length,f=e.length,p=Math.min(f,h);p&&this.parse(0,p),f>h?this._insertElements(h,f-h,t):f2)||void 0===arguments[2]||arguments[2],i=this._cachedMeta,o=i.data,A=t+e,s=function(t){for(t.length+=e,n=t.length-1;n>=A;n--)t[n]=t[n-e]};for(s(o),n=t;nMath.abs(s)&&(a=s,l=A),e[n.axis]=l,e._custom={barStart:a,barEnd:l,start:i,end:o,min:A,max:s}}else e[n.axis]=n.parse(t,r);return e}function T(t,e,n,r){var i,o,A,s,a=t.iScale,l=t.vScale,c=a.getLabels(),u=a===l,h=[];for(i=n,o=n+r;it.x,o="left",A="right"):(i=t.base=l?1:-1))*a,d===l&&(m-=n/2);var y,w=i.getPixelForDecimal(0),b=i.getPixelForDecimal(1),_=Math.min(w,b);e=(m=Math.max(Math.min(m,Math.max(w,b)),_))+n}if(m===i.getPixelForValue(l)){var B=(0,v.s)(n)*i.getLineWidthForValue(l)/2;m+=B,n-=B}return{size:n,base:m,head:e,center:e+n/2}}},{key:"_calculateBarIndexPixels",value:function(t,e){var n,r,i=e.scale,o=this.options,A=o.skipNull,s=(0,v.v)(o.maxBarThickness,1/0);if(e.grouped){var a,l,c,u,h,d,f,p,g,m=A?this._getStackCount(t):e.stackCount,y="flex"===o.barThickness?(l=(a=e.pixels)[t],c=t>0?a[t-1]:null,u=t=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=e.xScale,r=e.yScale,i=this.getParsed(t),o=n.getLabelForValue(i.x),A=r.getLabelForValue(i.y),s=i._custom;return{label:e.label,value:"("+o+", "+A+(s?", "+s:"")+")"}}},{key:"update",value:function(t){var e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}},{key:"updateElements",value:function(t,e,n,r){for(var i="reset"===r,o=this._cachedMeta,A=o.iScale,s=o.vScale,a=this._getSharedOptions(e,r),l=a.sharedOptions,c=a.includeOptions,u=A.axis,h=s.axis,d=e;d0&&!isNaN(t)?v.T*(Math.abs(t)/e):0}},{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=(0,v.o)(e._parsed[t],n.options.locale);return{label:r[t]||"",value:i}}},{key:"getMaxBorderWidth",value:function(t){var e,n,r,i,o,A=0,s=this.chart;if(!t){for(e=0,n=s.data.datasets.length;e0&&this.getParsed(e-1),_=e;_0&&Math.abs(x[d]-b[d])>y,m&&(C.parsed=x,C.raw=l.data[_]),h&&(C.options=u||this.resolveDataElementOptions(_,B.active?"active":r)),w||this.updateElement(B,_,C,r),b=x}}},{key:"getMaxOverflow",value:function(){var t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,r=t.data||[];return r.length?Math.max(n,r[0].size(this.resolveDataElementOptions(0)),r[r.length-1].size(this.resolveDataElementOptions(r.length-1)))/2:n}},{key:"draw",value:function(){var t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),(0,a._)((0,l._)(n.prototype),"draw",this).call(this)}}]),n}(M);V.id="line",V.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},V.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var z=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t,r){var i;return(0,o._)(this,n),(i=e.call(this,t,r)).innerRadius=void 0,i.outerRadius=void 0,i}return(0,A._)(n,[{key:"getLabelAndValue",value:function(t){var e=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=(0,v.o)(e._parsed[t].r,n.options.locale);return{label:r[t]||"",value:i}}},{key:"parseObjectData",value:function(t,e,n,r){return(0,v.y).bind(this)(t,e,n,r)}},{key:"update",value:function(t){var e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}},{key:"getMinMax",value:function(){var t=this,e=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach(function(e,r){var i=t.getParsed(r).r;!isNaN(i)&&t.chart.getDataVisibility(r)&&(in.max&&(n.max=i))}),n}},{key:"_updateRadius",value:function(){var t=this.chart,e=t.chartArea,n=t.options,r=Math.max(Math.min(e.right-e.left,e.bottom-e.top)/2,0),i=Math.max(n.cutoutPercentage?r/100*n.cutoutPercentage:1,0),o=(r-i)/t.getVisibleDatasetCount();this.outerRadius=r-o*this.index,this.innerRadius=this.outerRadius-o}},{key:"updateElements",value:function(t,e,n,r){var i,o="reset"===r,A=this.chart,s=A.options.animation,a=this._cachedMeta.rScale,l=a.xCenter,c=a.yCenter,u=a.getIndexAngle(0)-.5*v.P,h=u,d=360/this.countVisibleElements();for(i=0;i1){var A,s=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(s<1e-4||s>1e15)&&(r="scientific"),Math.abs(A=n.length>3?n[2].value-n[1].value:n[1].value-n[0].value)>=1&&t!==Math.floor(t)&&(A=t-Math.floor(t)),o=A}var a=Math.max(Math.min(-1*Math.floor((0,v.z)(Math.abs(o))),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),(0,v.o)(t,i,l)},logarithmic:function(t,e,n){if(0===t)return"0";var r=t/Math.pow(10,Math.floor((0,v.z)(t)));return 1===r||2===r||5===r?Y.numeric.call(this,t,e,n):""}},X={formatters:Y};function J(t,e,n,r,i){var o,A,s,a=(0,v.v)(r,0),l=Math.min((0,v.v)(i,t.length),t.length),c=0;for(n=Math.ceil(n),i&&(n=(o=i-r)/Math.floor(o/n)),s=a;s<0;)s=Math.round(a+ ++c*n);for(A=Math.max(a,0);Ai?i:r,i=o&&r>i?r:i,{min:(0,v.B)(r,(0,v.B)(i,r)),max:(0,v.B)(i,(0,v.B)(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){(0,v.C)(this.options.beforeUpdate,[this])}},{key:"update",value:function(t,e,n){var r=this.options,i=r.beginAtZero,o=r.grace,A=r.ticks,s=A.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,v.D)(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var a=sr)return function(t,e,n,r){var i,o=0,A=n[0];for(i=0,r=Math.ceil(r);ii)return a}return Math.max(i,1)}(i,e,r);if(o>0){var c,u,h,d,f=o>1?Math.round((s-A)/(o-1)):null;for(J(e,a,l,(0,v.k)(f)?0:A-f,A),h=0,d=o-1;h=s||o<=1||!this.isHorizontal()){this.labelRotation=A;return}var l=this._getLabelSizes(),c=l.widest.width,u=l.highest.height,h=(0,v.E)(this.chart.width-c,0,this.maxWidth);c+6>(t=r.offset?this.maxWidth/o:h/(o-1))&&(t=h/(o-(r.offset?.5:1)),e=this.maxHeight-tt(r.grid)-i.padding-te(r.title,this.chart.options.font),n=Math.sqrt(c*c+u*u),a=Math.max(A,Math.min(s,a=(0,v.F)(Math.min(Math.asin((0,v.E)((l.highest.height+6)/t,-1,1)),Math.asin((0,v.E)(e/n,-1,1))-Math.asin((0,v.E)(u/n,-1,1))))))),this.labelRotation=a}},{key:"afterCalculateLabelRotation",value:function(){(0,v.C)(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){(0,v.C)(this.options.beforeFit,[this])}},{key:"fit",value:function(){var t={width:0,height:0},e=this.chart,n=this.options,r=n.ticks,i=n.title,o=n.grid,A=this._isVisible(),s=this.isHorizontal();if(A){var a=te(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=tt(o)+a):(t.height=this.maxHeight,t.width=tt(o)+a),r.display&&this.ticks.length){var l=this._getLabelSizes(),c=l.first,u=l.last,h=l.widest,d=l.highest,f=2*r.padding,p=(0,v.t)(this.labelRotation),g=Math.cos(p),m=Math.sin(p);if(s){var y=r.mirror?0:m*h.width+g*d.height;t.height=Math.min(this.maxHeight,t.height+y+f)}else{var w=r.mirror?0:g*h.width+m*d.height;t.width=Math.min(this.maxWidth,t.width+w+f)}this._calculatePadding(c,u,m,g)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(t,e,n,r){var i=this.options,o=i.ticks,A=o.align,s=o.padding,a=i.position,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){var u=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),d=0,f=0;l?c?(d=r*t.width,f=n*e.height):(d=n*t.height,f=r*e.width):"start"===A?f=e.width:"end"===A?d=t.width:"inner"!==A&&(d=t.width/2,f=e.width/2),this.paddingLeft=Math.max((d-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-h+s)*this.width/(this.width-h),0)}else{var p=e.height/2,g=t.height/2;"start"===A?(p=0,g=t.height):"end"===A&&(p=e.height,g=0),this.paddingTop=p+s,this.paddingBottom=g+s}}},{key:"_handleMargins",value:function(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}},{key:"afterFit",value:function(){(0,v.C)(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var t=this.options,e=t.axis,n=t.position;return"top"===n||"bottom"===n||"x"===e}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(t){var e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;ee){for(n=0;ne.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getPixelForDecimal",value:function(t){this._reversePixels&&(t=1-t);var e=this._startPixel+t*this._length;return(0,v.I)(this._alignToPixels?(0,v.J)(this.chart,e,0):e)}},{key:"getDecimalForPixel",value:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var t=this.min,e=this.max;return t<0&&e<0?e:t>0&&e>0?t:0}},{key:"getContext",value:function(t){var e,n=this.ticks||[];if(t>=0&&tA*r?A/n:s/r:s*r0}},{key:"_computeGridLineItems",value:function(t){var e,n,r,i,o,A,s,a,l,c,u,h,d=this.axis,f=this.chart,p=this.options,g=p.grid,m=p.position,y=g.offset,w=this.isHorizontal(),b=this.ticks.length+(y?1:0),_=tt(g),B=[],x=g.setContext(this.getContext()),C=x.drawBorder?x.borderWidth:0,k=C/2,F=function(t){return(0,v.J)(f,t,C)};if("top"===m)e=F(this.bottom),A=this.bottom-_,a=e-k,c=F(t.top)+k,h=t.bottom;else if("bottom"===m)e=F(this.top),c=t.top,h=F(t.bottom)-k,A=e+k,a=this.top+_;else if("left"===m)e=F(this.right),o=this.right-_,s=e-k,l=F(t.left)+k,u=t.right;else if("right"===m)e=F(this.left),l=t.left,u=F(t.right)-k,o=e+k,s=this.left+_;else if("x"===d){if("center"===m)e=F((t.top+t.bottom)/2+.5);else if((0,v.i)(m)){var E=Object.keys(m)[0],Q=m[E];e=F(this.chart.scales[E].getPixelForValue(Q))}c=t.top,h=t.bottom,a=(A=e+k)+_}else if("y"===d){if("center"===m)e=F((t.left+t.right)/2);else if((0,v.i)(m)){var S=Object.keys(m)[0],L=m[S];e=F(this.chart.scales[S].getPixelForValue(L))}s=(o=e-k)-_,l=t.left,u=t.right}var U=(0,v.v)(p.ticks.maxTicksLimit,b),I=Math.max(1,Math.ceil(b/U));for(n=0;ns+1e-6)))return a}(this,n,y))&&(i=(0,v.J)(f,r,M),w?o=s=l=u=i:A=a=c=h=i,B.push({tx1:o,ty1:A,tx2:s,ty2:a,x1:l,y1:c,x2:u,y2:h,width:M,color:D,borderDash:T,borderDashOffset:N,tickWidth:P,tickColor:O,tickBorderDash:H,tickBorderDashOffset:R}))}return this._ticksLength=b,this._borderValue=e,B}},{key:"_computeLabelItems",value:function(t){var e,n,r,i,o,A,s,a,l,c,u,h=this.axis,d=this.options,f=d.position,p=d.ticks,g=this.isHorizontal(),m=this.ticks,y=p.align,w=p.crossAlign,b=p.padding,_=p.mirror,B=tt(d.grid),x=B+b,C=_?-b:x,k=-(0,v.t)(this.labelRotation),F=[],E="middle";if("top"===f)o=this.bottom-C,A=this._getXAxisLabelAlignment();else if("bottom"===f)o=this.top+C,A=this._getXAxisLabelAlignment();else if("left"===f){var Q=this._getYAxisLabelAlignment(B);A=Q.textAlign,i=Q.x}else if("right"===f){var S=this._getYAxisLabelAlignment(B);A=S.textAlign,i=S.x}else if("x"===h){if("center"===f)o=(t.top+t.bottom)/2+x;else if((0,v.i)(f)){var L=Object.keys(f)[0],U=f[L];o=this.chart.scales[L].getPixelForValue(U)+x}A=this._getXAxisLabelAlignment()}else if("y"===h){if("center"===f)i=(t.left+t.right)/2-x;else if((0,v.i)(f)){var I=Object.keys(f)[0],j=f[I];i=this.chart.scales[I].getPixelForValue(j)}A=this._getYAxisLabelAlignment(B).textAlign}"y"===h&&("start"===y?E="top":"end"===y&&(E="bottom"));var M=this._getLabelSizes();for(e=0,n=m.length;e=0?e.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(t){var e,n,r=this.options.grid,i=this.ctx,o=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),A=function(t,e,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(r.display)for(e=0,n=o.length;e0&&this.getParsed(e-1),_=e;_0&&Math.abs(x[d]-b[d])>y,m&&(C.parsed=x,C.raw=l.data[_]),h&&(C.options=u||this.resolveDataElementOptions(_,B.active?"active":r)),w||this.updateElement(B,_,C,r),b=x}this.updateSharedOptions(u,r,c)}},{key:"getMaxOverflow",value:function(){var t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){for(var n=0,r=e.length-1;r>=0;--r)n=Math.max(n,e[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}var i=t.dataset,o=i.options&&i.options.borderWidth||0;return e.length?Math.max(o,e[0].size(this.resolveDataElementOptions(0)),e[e.length-1].size(this.resolveDataElementOptions(e.length-1)))/2:o}}]),n}(M);to.id="scatter",to.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},to.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(t){return"("+t.label+", "+t.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var tA=Object.freeze({__proto__:null,BarController:H,BubbleController:R,DoughnutController:K,LineController:V,PolarAreaController:z,PieController:G,RadarController:q,ScatterController:to});function ts(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}var ta=function(){function t(e){(0,o._)(this,t),this.options=e||{}}return(0,A._)(t,[{key:"init",value:function(t){}},{key:"formats",value:function(){return ts()}},{key:"parse",value:function(t,e){return ts()}},{key:"format",value:function(t,e){return ts()}},{key:"add",value:function(t,e,n){return ts()}},{key:"diff",value:function(t,e,n){return ts()}},{key:"startOf",value:function(t,e,n){return ts()}},{key:"endOf",value:function(t,e){return ts()}}]),t}();ta.override=function(t){Object.assign(ta.prototype,t)};var tl={_date:ta};function tc(t,e,n,r,i){for(var o=t.getSortedVisibleDatasetMetas(),A=n[e],s=0,a=o.length;s0){var a=s[0].datasetIndex,l=t.getDatasetMeta(a).data;s=[];for(var c=0;c3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},o=tZ(this._resolverCache,t,r),A=o.resolver,s=o.subPrefixes,a=A;if(function(t,e){var n=(0,v.ab)(t),r=n.isScriptable,i=n.isIndexable,o=!0,A=!1,s=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=a.value,u=r(c),h=i(c),d=(h||u)&&t[c];if(u&&((0,v.a8)(d)||t$(d))||h&&(0,v.b)(d))return!0}}catch(t){A=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(A)throw s}}return!1}(A,e)){i.$shared=!1,n=(0,v.a8)(n)?n():n;var l=this.createResolver(t,n,s);a=(0,v.a9)(A,n,l)}var c=!0,u=!1,h=void 0;try{for(var d,f=e[Symbol.iterator]();!(c=(d=f.next()).done);c=!0){var p=d.value;i[p]=a[p]}}catch(t){u=!0,h=t}finally{try{c||null==f.return||f.return()}finally{if(u)throw h}}return i}},{key:"createResolver",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=tZ(this._resolverCache,t,n).resolver;return(0,v.i)(e)?(0,v.a9)(i,e,void 0,r):i}}]),t}();function tZ(t,e,n){var r=t.get(e);r||(r=new Map,t.set(e,r));var i=n.join(),o=r.get(i);return o||(o={resolver:(0,v.aa)(e,n),subPrefixes:n.filter(function(t){return!t.toLowerCase().includes("hover")})},r.set(i,o)),o}var t$=function(t){return(0,v.i)(t)&&Object.getOwnPropertyNames(t).reduce(function(e,n){return e||(0,v.a8)(t[n])},!1)},t0=["top","bottom","left","right","chartArea"];function t1(t,e){return"top"===t||"bottom"===t||-1===t0.indexOf(t)&&"x"===e}function t2(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}function t5(t){var e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),(0,v.C)(n&&n.onComplete,[t],e)}function t4(t){var e=t.chart,n=e.options.animation;(0,v.C)(n&&n.onProgress,[t],e)}function t3(t){return(0,v.a6)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}var t6={},t8=function(t){var e=t3(t);return Object.values(t6).filter(function(t){return t.canvas===e}).pop()},t7=function(){function t(e,n){var r=this;(0,o._)(this,t);var i=this.config=new tJ(n),A=t3(e),s=t8(A);if(s)throw Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");var a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||tH(A)),this.platform.updateConfig(i);var l=this.platform.acquireContext(A,a.aspectRatio),c=l&&l.canvas,u=c&&c.height,h=c&&c.width;if(this.id=(0,v.ad)(),this.ctx=l,this.canvas=c,this.width=h,this.height=u,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new tR,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,v.ae)(function(t){return r.update(t)},a.resizeDelay||0),this._dataChanges=[],t6[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}y.listen(this,"complete",t5),y.listen(this,"progress",t4),this._initialize(),this.attached&&this.update()}return(0,A._)(t,[{key:"aspectRatio",get:function(){var t=this.options,e=t.aspectRatio,n=t.maintainAspectRatio,r=this.width,i=this.height,o=this._aspectRatio;return(0,v.k)(e)?n&&o?o:i?r/i:null:e}},{key:"data",get:function(){return this.config.data},set:function(t){this.config.data=t}},{key:"options",get:function(){return this._options},set:function(t){this.config.options=t}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,v.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return(0,v.ag)(this.canvas,this.ctx),this}},{key:"stop",value:function(){return y.stop(this),this}},{key:"resize",value:function(t,e){y.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}},{key:"_resize",value:function(t,e){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(r,t,e,i),A=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,(0,v.af)(this,A,!0)&&(this.notifyPlugins("resize",{size:o}),(0,v.C)(n.onResize,[this,o],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){var t=this.options.scales||{};(0,v.Q)(t,function(t,e){t.id=e})}},{key:"buildOrUpdateScales",value:function(){var t=this,e=this.options,n=e.scales,r=this.scales,i=Object.keys(r).reduce(function(t,e){return t[e]=!1,t},{}),o=[];n&&(o=o.concat(Object.keys(n).map(function(t){var e=n[t],r=tV(t,e),i="r"===r,o="x"===r;return{options:e,dposition:i?"chartArea":o?"bottom":"left",dtype:i?"radialLinear":o?"category":"linear"}}))),(0,v.Q)(o,function(n){var o=n.options,A=o.id,s=tV(A,o),a=(0,v.v)(o.type,n.dtype);(void 0===o.position||t1(o.position,s)!==t1(n.dposition))&&(o.position=n.dposition),i[A]=!0;var l=null;A in r&&r[A].type===a?l=r[A]:r[(l=new(ti.getScale(a))({id:A,type:a,ctx:t.ctx,chart:t})).id]=l,l.init(o,e)}),(0,v.Q)(i,function(t,e){t||delete r[e]}),(0,v.Q)(r,function(e){tx.configure(t,e,e.options),tx.addBox(t,e)})}},{key:"_updateMetasets",value:function(){var t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(function(t,e){return t.index-e.index}),n>e){for(var r=e;rn.length&&delete this._stacks,e.forEach(function(e,r){0===n.filter(function(t){return t===e._dataset}).length&&t._destroyDatasetMeta(r)})}},{key:"buildOrUpdateControllers",value:function(){var t,e,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=r.length;t=e){var u=t[l];delete t[l],(n>0||c>e)&&(t[c+n]=u)}}}catch(t){o=!0,A=t}finally{try{i||null==a.return||a.return()}finally{if(o)throw A}}}(t,l,u)}}catch(t){r=!0,i=t}finally{try{n||null==A.return||A.return()}finally{if(r)throw i}}}},{key:"_getUniformDataChanges",value:function(){var t=this._dataChanges;if(t&&t.length){this._dataChanges=[];for(var e=this.data.datasets.length,n=function(e){return new Set(t.filter(function(t){return t[0]===e}).map(function(t,e){return e+","+t.splice(1).join(",")}))},r=n(0),i=1;i=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(t){var e=this.ctx,n=t._clip,r=!n.disabled,i=this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&(0,v.L)(e,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),t.controller.draw(),r&&(0,v.N)(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}},{key:"isPointInArea",value:function(t){return(0,v.$)(t,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(t,e,n,r){var i=tf.modes[e];return"function"==typeof i?i(this,t,n,r):[]}},{key:"getDatasetMeta",value:function(t){var e=this.data.datasets[t],n=this._metasets,r=n.filter(function(t){return t&&t._dataset===e}).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=(0,v.h)(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(t){var e=this.data.datasets[t];if(!e)return!1;var n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}},{key:"setDatasetVisibility",value:function(t,e){this.getDatasetMeta(t).hidden=!e}},{key:"toggleDataVisibility",value:function(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}},{key:"getDataVisibility",value:function(t){return!this._hiddenIndices[t]}},{key:"_updateVisibility",value:function(t,e,n){var r=n?"show":"hide",i=this.getDatasetMeta(t),o=i.controller._resolveAnimations(void 0,r);(0,v.j)(e)?(i.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(i,{visible:n}),this.update(function(e){return e.datasetIndex===t?r:void 0}))}},{key:"hide",value:function(t,e){this._updateVisibility(t,e,!1)}},{key:"show",value:function(t,e){this._updateVisibility(t,e,!0)}},{key:"_destroyDatasetMeta",value:function(t){var e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}},{key:"_stop",value:function(){var t,e;for(this.stop(),y.remove(this),t=0,e=this.data.datasets.length;ti?(l=i/a,t.arc(o,A,a,n+l,r-l,!0)):t.arc(o,A,i,n+v.H,r-v.H),t.closePath(),t.clip()}function ee(t,e,n,r){return{x:n+t*Math.cos(e),y:r+t*Math.sin(e)}}function en(t,e,n,r,i,o){var A,s,a,l,c,u,h=e.x,d=e.y,f=e.startAngle,p=e.pixelMargin,g=e.innerRadius,m=Math.max(e.outerRadius+r+n-p,0),y=g>0?g+r+n+p:0,w=0,b=i-f;if(r){var _=m>0?m-r:0,B=((g>0?g-r:0)+_)/2;w=(b-(0!==B?b*B/(B+r):b))/2}var x=Math.max(.001,b*m-n/v.P)/m,C=(b-x)/2,k=f+C+w,F=i-C-w,E=(A=F-k,s=e.options.borderRadius,a=(0,v.al)(s,["outerStart","outerEnd","innerStart","innerEnd"]),c=Math.min(l=(m-y)/2,A*y/2),{outerStart:(u=function(t){var e=(m-Math.min(l,t))*A/2;return(0,v.E)(t,0,Math.min(l,e))})(a.outerStart),outerEnd:u(a.outerEnd),innerStart:(0,v.E)(a.innerStart,0,c),innerEnd:(0,v.E)(a.innerEnd,0,c)}),Q=E.outerStart,S=E.outerEnd,L=E.innerStart,U=E.innerEnd,I=m-Q,j=m-S,M=k+Q/I,D=F-S/j,T=y+L,N=y+U,P=k+L/T,O=F-U/N;if(t.beginPath(),o){if(t.arc(h,d,m,M,D),S>0){var H=ee(j,D,h,d);t.arc(H.x,H.y,S,D,F+v.H)}var R=ee(N,F,h,d);if(t.lineTo(R.x,R.y),U>0){var K=ee(N,O,h,d);t.arc(K.x,K.y,U,F+v.H,O+Math.PI)}if(t.arc(h,d,y,F-U/y,k+L/y,!0),L>0){var V=ee(T,P,h,d);t.arc(V.x,V.y,L,P+Math.PI,k-v.H)}var z=ee(I,k,h,d);if(t.lineTo(z.x,z.y),Q>0){var G=ee(I,M,h,d);t.arc(G.x,G.y,Q,k-v.H,M)}}else{t.moveTo(h,d);var q=Math.cos(M)*m+h,W=Math.sin(M)*m+d;t.lineTo(q,W);var Y=Math.cos(D)*m+h,X=Math.sin(D)*m+d;t.lineTo(Y,X)}t.closePath()}Object.defineProperties(t7,{defaults:{enumerable:!0,value:v.d},instances:{enumerable:!0,value:t6},overrides:{enumerable:!0,value:v.U},registry:{enumerable:!0,value:ti},version:{enumerable:!0,value:"3.9.1"},getChart:{enumerable:!0,value:t8},register:{enumerable:!0,value:function(){for(var t=arguments.length,e=Array(t),n=0;n=v.T||(0,v.p)(o,a,l),p=(0,v.ak)(A,c+d,u+d);return f&&p}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),n=e.x,r=e.y,i=e.startAngle,o=e.endAngle,A=e.innerRadius,s=e.outerRadius,a=this.options,l=a.offset,c=a.spacing,u=(i+o)/2,h=(A+s+c+l)/2;return{x:n+Math.cos(u)*h,y:r+Math.sin(u)*h}}},{key:"tooltipPosition",value:function(t){return this.getCenterPoint(t)}},{key:"draw",value:function(t){var e=this.options,n=this.circumference,r=(e.offset||0)/2,i=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>v.T?Math.floor(n/v.T):0,0!==n&&!(this.innerRadius<0)&&!(this.outerRadius<0)){t.save();var A,s,a,l,c,u=0;if(r){u=r/2;var h=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(h)*u,Math.sin(h)*u),this.circumference>=v.P&&(u=r)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;var d=function(t,e,n,r,i){var o=e.fullCircles,A=e.startAngle,s=e.circumference,a=e.endAngle;if(o){en(t,e,n,r,A+v.T,i);for(var l=0;l2&&void 0!==arguments[2]?arguments[2]:e;t.lineCap=(0,v.v)(n.borderCapStyle,e.borderCapStyle),t.setLineDash((0,v.v)(n.borderDash,e.borderDash)),t.lineDashOffset=(0,v.v)(n.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,v.v)(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,v.v)(n.borderWidth,e.borderWidth),t.strokeStyle=(0,v.v)(n.borderColor,e.borderColor)}function eo(t,e,n){t.lineTo(n.x,n.y)}function eA(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.length,i=n.start,o=void 0===i?0:i,A=n.end,s=void 0===A?r-1:A,a=e.start,l=e.end,c=Math.max(o,a),u=Math.min(s,l);return{count:r,start:c,loop:e.loop,ilen:ul&&s>l)?r+u-c:u-c}}function es(t,e,n,r){var i,o,A,s=e.points,a=e.options,l=eA(s,n,r),c=l.count,u=l.start,h=l.loop,d=l.ilen,f=a.stepped?v.as:a.tension||"monotone"===a.cubicInterpolationMode?v.at:eo,p=r||{},g=p.move,m=void 0===g||g,y=p.reverse;for(i=0;i<=d;++i)(o=s[(u+(y?d-i:i))%c]).skip||(m?(t.moveTo(o.x,o.y),m=!1):f(t,A,o,y,a.stepped),A=o);return h&&f(t,A,o=s[(u+(y?d:0))%c],y,a.stepped),!!h}function ea(t,e,n,r){var i,o,A,s,a,l,c=e.points,u=eA(c,n,r),h=u.count,d=u.start,f=u.ilen,p=r||{},g=p.move,m=p.reverse,v=0,y=0,w=function(t){return(d+(m?f-t:t))%h},b=function(){s!==a&&(t.lineTo(v,a),t.lineTo(v,s),t.lineTo(v,l))};for((void 0===g||g)&&(o=c[w(0)],t.moveTo(o.x,o.y)),i=0;i<=f;++i)if(!(o=c[w(i)]).skip){var _=o.x,B=o.y,x=0|_;x===A?(Ba&&(a=B),v=(y*v+_)/++y):(b(),t.lineTo(_,B),A=x,y=0,s=a=B),l=B}b()}function el(t){var e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?es:ea}er.id="arc",er.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},er.defaultRoutes={backgroundColor:"backgroundColor"};var ec="function"==typeof Path2D,eu=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,t&&Object.assign((0,i._)(r),t),r}return(0,A._)(n,[{key:"updateControlPoints",value:function(t,e){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;(0,v.am)(this._points,n,t,r,e),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=(0,v.an)(this,this.options.segment))}},{key:"first",value:function(){var t=this.segments,e=this.points;return t.length&&e[t[0].start]}},{key:"last",value:function(){var t=this.segments,e=this.points,n=t.length;return n&&e[t[n-1].end]}},{key:"interpolate",value:function(t,e){var n,r,i=this.options,o=t[e],A=this.points,s=(0,v.ao)(this,{property:e,start:o,end:o});if(s.length){var a=[],l=i.stepped?v.ap:i.tension||"monotone"===i.cubicInterpolationMode?v.aq:v.ar;for(n=0,r=s.length;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.x!==n.x?-e:0,i=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-r,A=(t.y+t.h!==n.y+n.h?e:0)-i;return{x:t.x+r,y:t.y+i,w:t.w+o,h:t.h+A,radius:t.radius}}ed.id="point",ed.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ed.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ey=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,t&&Object.assign((0,i._)(r),t),r}return(0,A._)(n,[{key:"draw",value:function(t){var e,n,r,i,o,A,s,a,l,c,u,h,d,f,p,g,m,y,w,b=this.inflateAmount,_=this.options,B=_.borderColor,x=_.backgroundColor,C=(n=(e=ef(this)).right-e.left,r=e.bottom-e.top,i=n/2,o=r/2,A=this.options.borderWidth,s=this.borderSkipped,a=(0,v.aw)(A),l={t:ep(s.top,a.top,0,o),r:ep(s.right,a.right,0,i),b:ep(s.bottom,a.bottom,0,o),l:ep(s.left,a.left,0,i)},c=n/2,u=r/2,h=this.getProps(["enableBorderRadius"]).enableBorderRadius,d=this.options.borderRadius,f=(0,v.ax)(d),p=Math.min(c,u),g=this.borderSkipped,y={topLeft:ep(!(m=h||(0,v.i)(d))||g.top||g.left,f.topLeft,0,p),topRight:ep(!m||g.top||g.right,f.topRight,0,p),bottomLeft:ep(!m||g.bottom||g.left,f.bottomLeft,0,p),bottomRight:ep(!m||g.bottom||g.right,f.bottomRight,0,p)},{outer:{x:e.left,y:e.top,w:n,h:r,radius:y},inner:{x:e.left+l.l,y:e.top+l.t,w:n-l.l-l.r,h:r-l.t-l.b,radius:{topLeft:Math.max(0,y.topLeft-Math.max(l.t,l.l)),topRight:Math.max(0,y.topRight-Math.max(l.t,l.r)),bottomLeft:Math.max(0,y.bottomLeft-Math.max(l.b,l.l)),bottomRight:Math.max(0,y.bottomRight-Math.max(l.b,l.r))}}}),k=C.inner,F=C.outer,E=(w=F.radius).topLeft||w.topRight||w.bottomLeft||w.bottomRight?v.av:em;t.save(),(F.w!==k.w||F.h!==k.h)&&(t.beginPath(),E(t,ev(F,b,k)),t.clip(),E(t,ev(k,-b,F)),t.fillStyle=B,t.fill("evenodd")),t.beginPath(),E(t,ev(k,b)),t.fillStyle=x,t.fill(),t.restore()}},{key:"inRange",value:function(t,e,n){return eg(this,t,e,n)}},{key:"inXRange",value:function(t,e){return eg(this,t,null,e)}},{key:"inYRange",value:function(t,e){return eg(this,null,t,e)}},{key:"getCenterPoint",value:function(t){var e=this.getProps(["x","y","base","horizontal"],t),n=e.x,r=e.y,i=e.base,o=e.horizontal;return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}},{key:"getRange",value:function(t){return"x"===t?this.width/2:this.height/2}}]),n}((0,g._)(W));ey.id="bar",ey.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},ey.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var ew=Object.freeze({__proto__:null,ArcElement:er,LineElement:eu,PointElement:ed,BarElement:ey});function eb(t){if(t._decimated){var e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{value:e})}}function e_(t){t.data.datasets.forEach(function(t){eb(t)})}var eB={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(t,e,n){if(!n.enabled){e_(t);return}var r=t.width;t.data.datasets.forEach(function(e,i){var o,A=e._data,s=e.indexAxis,a=t.getDatasetMeta(i),l=A||e.data;if("y"!==(0,v.a)([s,t.options.indexAxis])&&a.controller.supportsDecimation){var c=t.scales[a.xAxisID];if(("linear"===c.type||"time"===c.type)&&!t.options.parsing){var d,f,p,g,m,y,w,b,_,B=(f=l.length,p=0,y=(m=(g=a.iScale).getUserBounds()).min,w=m.max,b=m.minDefined,_=m.maxDefined,b&&(p=(0,v.E)((0,v.Z)(l,g.axis,y).lo,0,f-1)),d=_?(0,v.E)((0,v.Z)(l,g.axis,w).hi+1,p,f)-p:f-p,{start:p,count:d}),x=B.start,C=B.count;if(C<=(n.threshold||4*r)){eb(e);return}switch((0,v.k)(A)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),n.algorithm){case"lttb":o=function(t,e,n,r,i){var o,A,s,a,l,c=i.samples||r;if(c>=n)return t.slice(e,e+n);var u=[],h=(n-2)/(c-2),d=0,f=e+n-1,p=e;for(o=0,u[d++]=t[p];os&&(s=a,A=t[v],l=v);u[d++]=A,p=l}return u[d++]=t[f],u}(l,x,C,r,n);break;case"min-max":o=function(t,e,n,r){var i,o,A,s,a,l,c,d,f,p,g=0,m=0,y=[],w=t[e].x,b=t[e+n-1].x-w;for(i=e;ip&&(p=s,c=i),g=(m*g+o.x)/++m;else{var B=i-1;if(!(0,v.k)(l)&&!(0,v.k)(c)){var x=Math.min(l,c),C=Math.max(l,c);x!==d&&x!==B&&y.push((0,h._)((0,u._)({},t[x]),{x:g})),C!==d&&C!==B&&y.push((0,h._)((0,u._)({},t[C]),{x:g}))}i>0&&B!==d&&y.push(t[B]),y.push(o),a=_,m=0,f=p=s,l=c=d=i}}return y}(l,x,C,r);break;default:throw Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}e._decimated=o}}})},destroy:function(t){e_(t)}};function ex(t,e,n,r){if(!r){var i=e[t],o=n[t];return"angle"===t&&(i=(0,v.az)(i),o=(0,v.az)(o)),{property:t,start:i,end:o}}}function eC(t,e,n){for(;e>t;e--){var r=n[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function ek(t,e,n,r){return t&&e?r(t[n],e[n]):t?t[n]:e?e[n]:0}function eF(t,e){var n,r,i,o,A,s,a,l=[],c=!1;return(0,v.b)(t)?(c=!0,l=t):(i=void 0===(r=(n=t||{}).x)?null:r,A=void 0===(o=n.y)?null:o,s=e.points,a=[],e.segments.forEach(function(t){var e=t.start,n=t.end;n=eC(e,n,s);var r=s[e],o=s[n];null!==A?(a.push({x:r.x,y:A}),a.push({x:o.x,y:A})):null!==i&&(a.push({x:i,y:r.y}),a.push({x:i,y:o.y}))}),l=a),l.length?new eu({points:l,options:{tension:0},_loop:c,_fullLoop:c}):null}function eE(t){return t&&!1!==t.fill}var eQ=function(){function t(e){(0,o._)(this,t),this.x=e.x,this.y=e.y,this.radius=e.radius}return(0,A._)(t,[{key:"pathSegment",value:function(t,e,n){var r=this.x,i=this.y,o=this.radius;return e=e||{start:0,end:v.T},t.arc(r,i,o,e.end,e.start,!0),!n.bounds}},{key:"interpolate",value:function(t){var e=this.x,n=this.y,r=this.radius,i=t.angle;return{x:e+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}]),t}();function eS(t,e,n){var r,i,o,A,s,a,l,c,u=function(t){var e,n=t.chart,r=t.fill,i=t.line;if((0,v.g)(r))return(e=n.getDatasetMeta(r))&&n.isDatasetVisible(r)?e.dataset:null;if("stack"===r)return function(t){var e=t.scale,n=t.index,r=t.line,i=[],o=r.segments,A=r.points,s=function(t,e){for(var n=[],r=t.getMatchingVisibleMetas("line"),i=0;i=n)&&i):["origin","start","end","stack","shape"].indexOf(o)>=0&&o}(o,i,s),chart:t,axis:r.controller.options.indexAxis,scale:r.vScale,line:o}),r.$filler=A,a.push(A);for(i=0;i=0;--A){var s=i[A].$filler;s&&(s.line.updateControlPoints(o,s.axis),r&&s.fill&&eS(t.ctx,s,o))}},beforeDatasetsDraw:function(t,e,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=t.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var o=r[i].$filler;eE(o)&&eS(t.ctx,o,t.chartArea)}},beforeDatasetDraw:function(t,e,n){var r=e.meta.$filler;eE(r)&&"beforeDatasetDraw"===n.drawTime&&eS(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},eM=function(t,e){var n=t.boxHeight,r=void 0===n?e:n,i=t.boxWidth,o=void 0===i?e:i;return t.usePointStyle&&(r=Math.min(r,e),o=t.pointStyleWidth||Math.min(o,e)),{boxWidth:o,boxHeight:r,itemHeight:Math.max(e,r)}},eD=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=t.chart,r.options=t.options,r.ctx=t.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return(0,A._)(n,[{key:"update",value:function(t,e,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}},{key:"buildLabels",value:function(){var t=this,e=this.options.labels||{},n=(0,v.C)(e.generateLabels,[this.chart],this)||[];e.filter&&(n=n.filter(function(n){return e.filter(n,t.chart.data)})),e.sort&&(n=n.sort(function(n,r){return e.sort(n,r,t.chart.data)})),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var t,e,n=this.options,r=this.ctx;if(!n.display){this.width=this.height=0;return}var i=n.labels,o=(0,v.O)(i.font),A=o.size,s=this._computeTitleHeight(),a=eM(i,A),l=a.boxWidth,c=a.itemHeight;r.font=o.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(s,A,l,c)+10):(e=this.maxHeight,t=this._fitCols(s,A,l,c)+10),this.width=Math.min(t,n.maxWidth||this.maxWidth),this.height=Math.min(e,n.maxHeight||this.maxHeight)}},{key:"_fitRows",value:function(t,e,n,r){var i=this.ctx,o=this.maxWidth,A=this.options.labels.padding,s=this.legendHitBoxes=[],a=this.lineWidths=[0],l=r+A,c=t;i.textAlign="left",i.textBaseline="middle";var u=-1,h=-l;return this.legendItems.forEach(function(t,d){var f=n+e/2+i.measureText(t.text).width;(0===d||a[a.length-1]+f+2*A>o)&&(c+=l,a[a.length-(d>0?0:1)]=0,h+=l,u++),s[d]={left:0,top:h,row:u,width:f,height:r},a[a.length-1]+=f+A}),c}},{key:"_fitCols",value:function(t,e,n,r){var i=this.ctx,o=this.maxHeight,A=this.options.labels.padding,s=this.legendHitBoxes=[],a=this.columnSizes=[],l=o-t,c=A,u=0,h=0,d=0,f=0;return this.legendItems.forEach(function(t,o){var p=n+e/2+i.measureText(t.text).width;o>0&&h+r+2*A>l&&(c+=u+A,a.push({width:u,height:h}),d+=u+A,f++,u=h=0),s[o]={left:d,top:h,col:f,width:p,height:r},u=Math.max(u,p),h+=r+A}),c+=u,a.push({width:u,height:h}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var t=this._computeTitleHeight(),e=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,o=n.rtl,A=(0,v.aA)(o,this.left,this.width);if(this.isHorizontal()){var s=0,a=(0,v.S)(r,this.left+i,this.right-this.lineWidths[s]),l=!0,c=!1,u=void 0;try{for(var h,d=e[Symbol.iterator]();!(l=(h=d.next()).done);l=!0){var f=h.value;s!==f.row&&(s=f.row,a=(0,v.S)(r,this.left+i,this.right-this.lineWidths[s])),f.top+=this.top+t+i,f.left=A.leftForLtr(A.x(a),f.width),a+=f.width+i}}catch(t){c=!0,u=t}finally{try{l||null==d.return||d.return()}finally{if(c)throw u}}}else{var p=0,g=(0,v.S)(r,this.top+t+i,this.bottom-this.columnSizes[p].height),m=!0,y=!1,w=void 0;try{for(var b,_=e[Symbol.iterator]();!(m=(b=_.next()).done);m=!0){var B=b.value;B.col!==p&&(p=B.col,g=(0,v.S)(r,this.top+t+i,this.bottom-this.columnSizes[p].height)),B.top=g,B.left+=this.left+i,B.left=A.leftForLtr(A.x(B.left),B.width),g+=B.height+i}}catch(t){y=!0,w=t}finally{try{m||null==_.return||_.return()}finally{if(y)throw w}}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var t=this.ctx;(0,v.L)(t,this),this._draw(),(0,v.N)(t)}}},{key:"_draw",value:function(){var t,e=this,n=this.options,r=this.columnSizes,i=this.lineWidths,o=this.ctx,A=n.align,s=n.labels,a=v.d.color,l=(0,v.aA)(n.rtl,this.left,this.width),c=(0,v.O)(s.font),u=s.color,h=s.padding,d=c.size,f=d/2;this.drawTitle(),o.textAlign=l.textAlign("left"),o.textBaseline="middle",o.lineWidth=.5,o.font=c.string;var p=eM(s,d),g=p.boxWidth,m=p.boxHeight,y=p.itemHeight,w=function(t,e,n){if(!(isNaN(g)||g<=0||isNaN(m))&&!(m<0)){o.save();var r=(0,v.v)(n.lineWidth,1);if(o.fillStyle=(0,v.v)(n.fillStyle,a),o.lineCap=(0,v.v)(n.lineCap,"butt"),o.lineDashOffset=(0,v.v)(n.lineDashOffset,0),o.lineJoin=(0,v.v)(n.lineJoin,"miter"),o.lineWidth=r,o.strokeStyle=(0,v.v)(n.strokeStyle,a),o.setLineDash((0,v.v)(n.lineDash,[])),s.usePointStyle){var i={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},A=l.xPlus(t,g/2);(0,v.aE)(o,i,A,e+f,s.pointStyleWidth&&g)}else{var c=e+Math.max((d-m)/2,0),u=l.leftForLtr(t,g),h=(0,v.ax)(n.borderRadius);o.beginPath(),Object.values(h).some(function(t){return 0!==t})?(0,v.av)(o,{x:u,y:c,w:g,h:m,radius:h}):o.rect(u,c,g,m),o.fill(),0!==r&&o.stroke()}o.restore()}},b=function(t,e,n){(0,v.M)(o,n.text,t,e+y/2,c,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})},_=this.isHorizontal(),B=this._computeTitleHeight();t=_?{x:(0,v.S)(A,this.left+h,this.right-i[0]),y:this.top+h+B,line:0}:{x:this.left+h,y:(0,v.S)(A,this.top+B+h,this.bottom-r[0].height),line:0},(0,v.aB)(this.ctx,n.textDirection);var x=y+h;this.legendItems.forEach(function(a,c){o.strokeStyle=a.fontColor||u,o.fillStyle=a.fontColor||u;var d=o.measureText(a.text).width,p=l.textAlign(a.textAlign||(a.textAlign=s.textAlign)),m=g+f+d,y=t.x,C=t.y;l.setWidth(e.width),_?c>0&&y+m+h>e.right&&(C=t.y+=x,t.line++,y=t.x=(0,v.S)(A,e.left+h,e.right-i[t.line])):c>0&&C+x>e.bottom&&(y=t.x=y+r[t.line].width+h,t.line++,C=t.y=(0,v.S)(A,e.top+B+h,e.bottom-r[t.line].height)),w(l.x(y),C,a),y=(0,v.aC)(p,y+g+f,_?y+m:e.right,n.rtl),b(l.x(y),C,a),_?t.x+=m+h:t.y+=x}),(0,v.aD)(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var t,e,n=this.options,r=n.title,i=(0,v.O)(r.font),o=(0,v.K)(r.padding);if(r.display){var A=(0,v.aA)(n.rtl,this.left,this.width),s=this.ctx,a=r.position,l=i.size/2,c=o.top+l,u=this.left,h=this.width;if(this.isHorizontal())h=(e=Math).max.apply(e,(0,f._)(this.lineWidths)),t=this.top+c,u=(0,v.S)(n.align,u,this.right-h);else{var d=this.columnSizes.reduce(function(t,e){return Math.max(t,e.height)},0);t=c+(0,v.S)(n.align,this.top,this.bottom-d-n.labels.padding-this._computeTitleHeight())}var p=(0,v.S)(a,u,u+h);s.textAlign=A.textAlign((0,v.R)(a)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=i.string,(0,v.M)(s,r.text,p,t,i)}}},{key:"_computeTitleHeight",value:function(){var t=this.options.title,e=(0,v.O)(t.font),n=(0,v.K)(t.padding);return t.display?e.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(t,e){var n,r,i;if((0,v.ak)(t,this.left,this.right)&&(0,v.ak)(e,this.top,this.bottom)){for(n=0,i=this.legendHitBoxes;n-1?t.split("\n"):t}function ez(t,e){var n=t.chart.ctx,r=t.body,i=t.footer,o=t.title,A=e.boxWidth,s=e.boxHeight,a=(0,v.O)(e.bodyFont),l=(0,v.O)(e.titleFont),c=(0,v.O)(e.footerFont),u=o.length,h=i.length,d=r.length,f=(0,v.K)(e.padding),p=f.height,g=0,m=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);m+=t.beforeBody.length+t.afterBody.length,u&&(p+=u*l.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),m&&(p+=d*(e.displayColors?Math.max(s,a.lineHeight):a.lineHeight)+(m-d)*a.lineHeight+(m-1)*e.bodySpacing),h&&(p+=e.footerMarginTop+h*c.lineHeight+(h-1)*e.footerSpacing);var y=0,w=function(t){g=Math.max(g,n.measureText(t).width+y)};return n.save(),n.font=l.string,(0,v.Q)(t.title,w),n.font=a.string,(0,v.Q)(t.beforeBody.concat(t.afterBody),w),y=e.displayColors?A+2+e.boxPadding:0,(0,v.Q)(r,function(t){(0,v.Q)(t.before,w),(0,v.Q)(t.lines,w),(0,v.Q)(t.after,w)}),y=0,n.font=c.string,(0,v.Q)(t.footer,w),n.restore(),{width:g+=f.width,height:p}}function eG(t,e,n){var r,i,o,A,s,a,l,c,u,h=n.yAlign||e.yAlign||((r=n.y)<(i=n.height)/2?"top":r>t.height-i/2?"bottom":"center");return{xAlign:n.xAlign||e.xAlign||(o=n.x,A=n.width,s=t.width,l=(a=t.chartArea).left,c=a.right,u="center","center"===h?u=o<=(l+c)/2?"left":"right":o<=A/2?u="left":o>=s-A/2&&(u="right"),function(t,e,n,r){var i=r.x,o=r.width,A=n.caretSize+n.caretPadding;if("left"===t&&i+o+A>e.width||"right"===t&&i-o-A<0)return!0}(u,t,e,n)&&(u="center"),u),yAlign:h}}function eq(t,e,n,r){var i,o,A,s,a=t.caretSize,l=t.caretPadding,c=t.cornerRadius,u=n.xAlign,h=n.yAlign,d=a+l,f=(0,v.ax)(c),p=f.topLeft,g=f.topRight,m=f.bottomLeft,y=f.bottomRight,w=(i=e.x,o=e.width,"right"===u?i-=o:"center"===u&&(i-=o/2),i),b=(A=e.y,s=e.height,"top"===h?A+=d:"bottom"===h?A-=s+d:A-=s/2,A);return"center"===h?"left"===u?w+=d:"right"===u&&(w-=d):"left"===u?w-=Math.max(p,m)+a:"right"===u&&(w+=Math.max(g,y)+a),{x:(0,v.E)(w,0,r.width-e.width),y:(0,v.E)(b,0,r.height-e.height)}}function eW(t,e,n){var r=(0,v.K)(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function eY(t,e){var n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}var eX=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=t.chart||t._chart,r._chart=r.chart,r.options=t.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return(0,A._)(n,[{key:"initialize",value:function(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var t=this._cachedAnimations;if(t)return t;var e=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&e.options.animation&&n.animations,i=new x(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){var t,e;return this.$context||(this.$context=(t=this.chart.getContext(),e=this._tooltipItems,(0,v.h)(t,{tooltip:this,tooltipItems:e,type:"tooltip"})))}},{key:"getTitle",value:function(t,e){var n=e.callbacks,r=n.beforeTitle.apply(this,[t]),i=n.title.apply(this,[t]),o=n.afterTitle.apply(this,[t]),A=[];return A=eK(A,eV(r)),A=eK(A,eV(i)),A=eK(A,eV(o))}},{key:"getBeforeBody",value:function(t,e){return eK([],eV(e.callbacks.beforeBody.apply(this,[t])))}},{key:"getBody",value:function(t,e){var n=this,r=e.callbacks,i=[];return(0,v.Q)(t,function(t){var e={before:[],lines:[],after:[]},o=eY(r,t);eK(e.before,eV(o.beforeLabel.call(n,t))),eK(e.lines,o.label.call(n,t)),eK(e.after,eV(o.afterLabel.call(n,t))),i.push(e)}),i}},{key:"getAfterBody",value:function(t,e){return eK([],eV(e.callbacks.afterBody.apply(this,[t])))}},{key:"getFooter",value:function(t,e){var n=e.callbacks,r=n.beforeFooter.apply(this,[t]),i=n.footer.apply(this,[t]),o=n.afterFooter.apply(this,[t]),A=[];return A=eK(A,eV(r)),A=eK(A,eV(i)),A=eK(A,eV(o))}},{key:"_createItems",value:function(t){var e,n,r=this,i=this._active,o=this.chart.data,A=[],s=[],a=[],l=[];for(e=0,n=i.length;e0&&e.stroke()}},{key:"_updateAnimationTarget",value:function(t){var e=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var o=eR[t.position].call(this,this._active,this._eventPosition);if(!o)return;var A=this._size=ez(this,t),s=Object.assign({},o,this._size),a=eG(e,t,s),l=eq(t,s,a,e);(r._to!==l.x||i._to!==l.y)&&(this.xAlign=a.xAlign,this.yAlign=a.yAlign,this.width=A.width,this.height=A.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,l))}}},{key:"_willRender",value:function(){return!!this.opacity}},{key:"draw",value:function(t){var e=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(e);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=.001>Math.abs(n)?0:n;var o=(0,v.K)(e.padding),A=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&A&&(t.save(),t.globalAlpha=n,this.drawBackground(i,t,r,e),(0,v.aB)(t,e.textDirection),i.y+=o.top,this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),(0,v.aD)(t,e.textDirection),t.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(t,e){var n=this,r=this._active,i=t.map(function(t){var e=t.datasetIndex,r=t.index,i=n.chart.getDatasetMeta(e);if(!i)throw Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:i.data[r],index:r}}),o=!(0,v.ai)(r,i),A=this._positionChanged(i,e);(o||A)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(t,e){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],o=this._getActiveElements(t,i,e,n),A=this._positionChanged(o,t),s=e||!(0,v.ai)(o,i)||A;return s&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),s}},{key:"_getActiveElements",value:function(t,e,n,r){var i=this.options;if("mouseout"===t.type)return[];if(!r)return e;var o=this.chart.getElementsAtEventForMode(t,i.mode,i,n);return i.reverse&&o.reverse(),o}},{key:"_positionChanged",value:function(t,e){var n=this.caretX,r=this.caretY,i=eR[this.options.position].call(this,t,e);return!1!==i&&(n!==i.x||r!==i.y)}}]),n}((0,g._)(W));eX.positioners=eR;var eJ={id:"tooltip",_element:eX,positioners:eR,afterInit:function(t,e,n){n&&(t.tooltip=new eX({chart:t,options:n}))},beforeUpdate:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset:function(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw:function(t){var e=t.tooltip;if(e&&e._willRender()){var n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent:function(t,e){if(t.tooltip){var n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(t,e){return e.bodyFont.size},boxWidth:function(t,e){return e.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:v.aF,title:function(t){if(t.length>0){var e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex=0&&te.length-1?null:this.getPixelForValue(e[t].value)}},{key:"getValueForPixel",value:function(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(tn);function e0(t,e,n){var r=n.horizontal,i=n.minRotation,o=(0,v.t)(i),A=(r?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/A,s)}e$.id="category",e$.defaults={ticks:{callback:e$.prototype.getLabelForValue}};var e1=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this,t)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return(0,A._)(n,[{key:"parse",value:function(t,e){return(0,v.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}},{key:"handleTickRangeOptions",value:function(){var t=this.options.beginAtZero,e=this.getUserBounds(),n=e.minDefined,r=e.maxDefined,i=this.min,o=this.max,A=function(t){return i=n?i:t},s=function(t){return o=r?o:t};if(t){var a=(0,v.s)(i),l=(0,v.s)(o);a<0&&l<0?s(0):a>0&&l>0&&A(0)}if(i===o){var c=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(c=Math.abs(.05*o)),s(o+c),t||A(i-c)}this.min=i,this.max=o}},{key:"getTickLimit",value:function(){var t,e=this.options.ticks,n=e.maxTicksLimit,r=e.stepSize;return r?(t=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(t," ticks. Limiting to 1000.")),t=1e3):(t=this.computeTickLimit(),n=n||11),n&&(t=Math.min(n,t)),t}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var t=this.options,e=t.ticks,n=this.getTickLimit(),r=function(t,e){var n,r,i,o,A=[],s=t.bounds,a=t.step,l=t.min,c=t.max,u=t.precision,h=t.count,d=t.maxTicks,f=t.maxDigits,p=t.includeBounds,g=a||1,m=d-1,y=e.min,w=e.max,b=!(0,v.k)(l),_=!(0,v.k)(c),B=!(0,v.k)(h),x=(w-y)/(f+1),C=(0,v.aI)((w-y)/m/g)*g;if(C<1e-14&&!b&&!_)return[{value:y},{value:w}];(o=Math.ceil(w/C)-Math.floor(y/C))>m&&(C=(0,v.aI)(o*C/m/g)*g),(0,v.k)(u)||(C=Math.ceil(C*(n=Math.pow(10,u)))/n),"ticks"===s?(r=Math.floor(y/C)*C,i=Math.ceil(w/C)*C):(r=y,i=w),b&&_&&a&&(0,v.aJ)((c-l)/a,C/1e3)?(o=Math.round(Math.min((c-l)/C,d)),C=(c-l)/o,r=l,i=c):B?(r=b?l:r,C=((i=_?c:i)-r)/(o=h-1)):(o=(i-r)/C,o=(0,v.aK)(o,Math.round(o),C/1e3)?Math.round(o):Math.ceil(o));var k=Math.max((0,v.aL)(C),(0,v.aL)(r));r=Math.round(r*(n=Math.pow(10,(0,v.k)(u)?k:u)))/n,i=Math.round(i*n)/n;var F=0;for(b&&(p&&r!==l?(A.push({value:l}),r0?n:null}},{key:"determineDataLimits",value:function(){var t=this.getMinMax(!0),e=t.min,n=t.max;this.min=(0,v.g)(e)?Math.max(0,e):null,this.max=(0,v.g)(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var t=this.getUserBounds(),e=t.minDefined,n=t.maxDefined,r=this.min,i=this.max,o=function(t){return r=e?r:t},A=function(t){return i=n?i:t},s=function(t,e){return Math.pow(10,Math.floor((0,v.z)(t))+e)};r===i&&(r<=0?(o(1),A(10)):(o(s(r,-1)),A(s(i,1)))),r<=0&&o(s(i,-1)),i<=0&&A(s(r,1)),this._zero&&this.min!==this._suggestedMin&&r===s(this.min,0)&&o(s(r,-1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var t=this.options,e=function(t,e){var n=Math.floor((0,v.z)(e.max)),r=Math.ceil(e.max/Math.pow(10,n)),i=[],o=(0,v.B)(t.min,Math.pow(10,Math.floor((0,v.z)(e.min)))),A=Math.floor((0,v.z)(o)),s=Math.floor(o/Math.pow(10,A)),a=A<0?Math.pow(10,Math.abs(A)):1;do i.push({value:o,major:e5(o)}),10==++s&&(s=1,a=++A>=0?1:a),o=Math.round(s*Math.pow(10,A)*a)/a;while(Ai?{start:e-n,end:e}:{start:e,end:e+n}}function e8(t,e,n,r){var i=t.ctx;if(n)i.arc(t.xCenter,t.yCenter,e,0,v.T);else{var o=t.getPointPosition(0,e);i.moveTo(o.x,o.y);for(var A=1;Ae.r&&(s=(r.end-e.r)/o,t.r=Math.max(t.r,e.r+s)),i.starte.b&&(a=(i.end-e.b)/A,t.b=Math.max(t.b,e.b+a))})(n,e,p,e6(g,h.x,f.w,0,180),e6(g,h.y,f.h,90,270))}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){for(var r=[],i=t._pointLabels.length,o=t.options,A=e3(o)/2,s=t.drawingArea,a=o.pointLabels.centerPointLabels?v.P/i:0,l=0;l270||p<90)&&(c-=u),c),y=0===p||180===p?"center":p<180?"left":"right",w=(h=f.x,d=g.w,"right"===y?h-=d:"center"===y&&(h-=d/2),h);r.push({x:f.x,y:m,textAlign:y,left:w,top:m,right:w+g.w,bottom:m+g.h})}return r}(t,r,i)}(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(t,e,n,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,r))}},{key:"getIndexAngle",value:function(t){var e=v.T/(this._pointLabels.length||1),n=this.options.startAngle||0;return(0,v.az)(t*e+(0,v.t)(n))}},{key:"getDistanceFromCenterForValue",value:function(t){if((0,v.k)(t))return NaN;var e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}},{key:"getValueForDistanceFromCenter",value:function(t){if((0,v.k)(t))return NaN;var e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}},{key:"getPointLabelContext",value:function(t){var e=this._pointLabels||[];if(t>=0&&t2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(t)-v.H+n;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}},{key:"getBasePosition",value:function(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(t){var e=this._pointLabelItems[t];return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}},{key:"drawBackground",value:function(){var t=this.options,e=t.backgroundColor,n=t.grid.circular;if(e){var r=this.ctx;r.save(),r.beginPath(),e8(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var t,e,n,r=this,i=this.ctx,o=this.options,A=o.angleLines,s=o.grid,a=this._pointLabels.length;if(o.pointLabels.display&&function(t,e){for(var n=t.ctx,r=t.options.pointLabels,i=e-1;i>=0;i--){var o=r.setContext(t.getPointLabelContext(i)),A=(0,v.O)(o.font),s=t._pointLabelItems[i],a=s.x,l=s.y,c=s.textAlign,u=s.left,h=s.top,d=s.right,f=s.bottom,p=o.backdropColor;if(!(0,v.k)(p)){var g=(0,v.ax)(o.borderRadius),m=(0,v.K)(o.backdropPadding);n.fillStyle=p;var y=u-m.left,w=h-m.top,b=d-u+m.width,_=f-h+m.height;Object.values(g).some(function(t){return 0!==t})?(n.beginPath(),(0,v.av)(n,{x:y,y:w,w:b,h:_,radius:g}),n.fill()):n.fillRect(y,w,b,_)}(0,v.M)(n,t._pointLabels[i],a,l+A.lineHeight/2,A,{color:o.color,textAlign:c,textBaseline:"middle"})}}(this,a),s.display&&this.ticks.forEach(function(t,n){if(0!==n){e=r.getDistanceFromCenterForValue(t.value);var i,o,A,l,c,u=s.setContext(r.getContext(n-1));i=e,o=r.ctx,A=u.circular,l=u.color,c=u.lineWidth,(A||a)&&l&&c&&!(i<0)&&(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash(u.borderDash),o.lineDashOffset=u.borderDashOffset,o.beginPath(),e8(r,i,A,a),o.closePath(),o.stroke(),o.restore())}}),A.display){for(i.save(),t=a-1;t>=0;t--){var l=A.setContext(this.getPointLabelContext(t)),c=l.color,u=l.lineWidth;u&&c&&(i.lineWidth=u,i.strokeStyle=c,i.setLineDash(l.borderDash),i.lineDashOffset=l.borderDashOffset,e=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),n=this.getPointPosition(t,e),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var t,e,n=this,r=this.ctx,i=this.options,o=i.ticks;if(o.display){var A=this.getIndexAngle(0);r.save(),r.translate(this.xCenter,this.yCenter),r.rotate(A),r.textAlign="center",r.textBaseline="middle",this.ticks.forEach(function(A,s){if(0!==s||i.reverse){var a=o.setContext(n.getContext(s)),l=(0,v.O)(a.font);if(t=n.getDistanceFromCenterForValue(n.ticks[s].value),a.showLabelBackdrop){r.font=l.string,e=r.measureText(A.label).width,r.fillStyle=a.backdropColor;var c=(0,v.K)(a.backdropPadding);r.fillRect(-e/2-c.left,-t-l.size/2-c.top,e+c.width,l.size+c.height)}(0,v.M)(r,A.label,0,-t,l,{color:a.color})}}),r.restore()}}},{key:"drawTitle",value:function(){}}]),n}(e1);e7.id="radialLinear",e7.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:X.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(t){return t},padding:5,centerPointLabels:!1}},e7.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},e7.descriptors={angleLines:{_fallback:"grid"}};var e9={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},nt=Object.keys(e9);function ne(t,e){return t-e}function nn(t,e){if((0,v.k)(e))return null;var n=t._adapter,r=t._parseOpts,i=r.parser,o=r.round,A=r.isoWeekday,s=e;return("function"==typeof i&&(s=i(s)),(0,v.g)(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s)?null:(o&&(s="week"===o&&((0,v.x)(A)||!0===A)?n.startOf(s,"isoWeek",A):n.startOf(s,o)),+s)}function nr(t,e,n,r){for(var i=nt.length,o=nt.indexOf(t);o=e?n[i]:n[o]]=!0}}else t[e]=!0}function no(t,e,n){var r,i,o=[],A={},s=e.length;for(r=0;r=0&&(e[o].major=!0);return e}(t,o,A,n):o}var nA=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this,t))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return(0,A._)(n,[{key:"init",value:function(t,e){var r=t.time||(t.time={}),i=this._adapter=new tl._date(t.adapters.date);i.init(e),(0,v.ac)(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},(0,a._)((0,l._)(n.prototype),"init",this).call(this,t),this._normalized=e.normalized}},{key:"parse",value:function(t,e){return void 0===t?null:nn(this,t)}},{key:"beforeLayout",value:function(){(0,a._)((0,l._)(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var t=this.options,e=this._adapter,n=t.time.unit||"day",r=this.getUserBounds(),i=r.min,o=r.max,A=r.minDefined,s=r.maxDefined;function a(t){A||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}A&&s||(a(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&a(this.getMinMax(!1))),i=(0,v.g)(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=(0,v.g)(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}},{key:"_getLabelBounds",value:function(){var t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}},{key:"buildTicks",value:function(){var t=this.options,e=t.time,n=t.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,o=this.max,A=(0,v.aN)(r,i,o);return this._unit=e.unit||(n.autoSkip?nr(e.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(t,e,n,r,i){for(var o=nt.length-1;o>=nt.indexOf(n);o--){var A=nt[o];if(e9[A].common&&t._adapter.diff(i,r,A)>=e-1)return A}return nt[n?nt.indexOf(n):0]}(this,A.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(var e=nt.indexOf(t)+1,n=nt.length;e1e5*a)throw Error(r+" and "+i+" are too far apart with stepSize of "+a+" "+s);var d="data"===o.ticks.source&&this.getDataTimestamps();for(t=h,e=0;t0?A:1}},{key:"getDataTimestamps",value:function(){var t,e,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t=t[d].pos&&e<=t[f].pos&&(d=(s=(0,v.Z)(t,"pos",e)).lo,f=s.hi),r=(a=t[d]).pos,o=a.time,i=(l=t[f]).pos,A=l.time):(e>=t[d].time&&e<=t[f].time&&(d=(c=(0,v.Z)(t,"time",e)).lo,f=c.hi),r=(u=t[d]).time,o=u.pos,i=(h=t[f]).time,A=h.pos);var p=i-r;return p?o+(A-o)*(e-r)/p:o}nA.id="time",nA.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var na=function(t){(0,c._)(n,t);var e=(0,m._)(n);function n(t){var r;return(0,o._)(this,n),(r=e.call(this,t))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return(0,A._)(n,[{key:"initOffsets",value:function(){var t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=ns(e,this.min),this._tableRange=ns(e,this.max)-this._minPos,(0,a._)((0,l._)(n.prototype),"initOffsets",this).call(this,t)}},{key:"buildLookupTable",value:function(t){var e,n,r,i=this.min,o=this.max,A=[],s=[];for(e=0,n=t.length;e=i&&r<=o&&A.push(r);if(A.length<2)return[{time:i,pos:0},{time:o,pos:1}];for(e=0,n=A.length;e")+"->"+t);return s.add(t),e=e(o,A||r),s.delete(t),eL(t,e)&&(e=eI(i._scopes,i,t,e)),e}(n,a,e,r)),f(a)&&a.length&&(a=function(e,n,r,i){var o=r._proxy,A=r._context,s=r._subProxy,a=r._descriptors;if(M(A.index)&&i(e))n=n[A.index%n.length];else if(p(n[0])){var l=n,c=o._scopes.filter(function(t){return t!==l});n=[];var u=!0,h=!1,d=void 0;try{for(var f,g=l[Symbol.iterator]();!(u=(f=g.next()).done);u=!0){var m=f.value,v=eI(c,o,e,m);n.push(t(v,A,s&&s[e],a))}}catch(t){h=!0,d=t}finally{try{u||null==g.return||g.return()}finally{if(h)throw d}}}return n}(n,a,e,s.isIndexable)),eL(n,a)&&(a=t(a,o,A&&A[n],s)),a})},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}}),o.export(n,"aA",function(){return e9}),o.export(n,"aB",function(){return nt}),o.export(n,"aC",function(){return tk}),o.export(n,"aD",function(){return ne}),o.export(n,"aE",function(){return ec}),o.export(n,"aF",function(){return u}),o.export(n,"aG",function(){return to}),o.export(n,"aH",function(){return tt}),o.export(n,"aI",function(){return Y}),o.export(n,"aJ",function(){return $}),o.export(n,"aK",function(){return Z}),o.export(n,"aL",function(){return tr}),o.export(n,"aM",function(){return eA}),o.export(n,"aN",function(){return tp}),o.export(n,"aO",function(){return th}),o.export(n,"aP",function(){return t6}),o.export(n,"aQ",function(){return t7}),o.export(n,"aR",function(){return x}),o.export(n,"aS",function(){return k}),o.export(n,"aT",function(){return Q}),o.export(n,"aU",function(){return S}),o.export(n,"aV",function(){return I}),o.export(n,"aW",function(){return ei}),o.export(n,"aX",function(){return eH}),o.export(n,"aY",function(){return eR}),o.export(n,"aZ",function(){return eY}),o.export(n,"a_",function(){return tw}),o.export(n,"aa",function(){return eQ}),o.export(n,"ab",function(){return eS}),o.export(n,"ac",function(){return E}),o.export(n,"ad",function(){return h}),o.export(n,"ae",function(){return tB}),o.export(n,"af",function(){return e1}),o.export(n,"ag",function(){return ea}),o.export(n,"ah",function(){return T}),o.export(n,"ai",function(){return B}),o.export(n,"aj",function(){return N}),o.export(n,"ak",function(){return tu}),o.export(n,"al",function(){return eb}),o.export(n,"am",function(){return eV}),o.export(n,"an",function(){return nA}),o.export(n,"ao",function(){return no}),o.export(n,"ap",function(){return e3}),o.export(n,"aq",function(){return e6}),o.export(n,"ar",function(){return e4}),o.export(n,"as",function(){return ef}),o.export(n,"at",function(){return ep}),o.export(n,"au",function(){return el}),o.export(n,"av",function(){return em}),o.export(n,"aw",function(){return e_}),o.export(n,"ax",function(){return eB}),o.export(n,"ay",function(){return ni}),o.export(n,"az",function(){return ts}),o.export(n,"b",function(){return f}),o.export(n,"b0",function(){return H}),o.export(n,"b1",function(){return R}),o.export(n,"b2",function(){return K}),o.export(n,"b3",function(){return z}),o.export(n,"b4",function(){return G}),o.export(n,"b5",function(){return tA}),o.export(n,"c",function(){return t8}),o.export(n,"d",function(){return er}),o.export(n,"e",function(){return tU}),o.export(n,"f",function(){return U}),o.export(n,"g",function(){return g}),o.export(n,"h",function(){return eE}),o.export(n,"i",function(){return p}),o.export(n,"j",function(){return M}),o.export(n,"k",function(){return d}),o.export(n,"l",function(){return tm}),o.export(n,"m",function(){return y}),o.export(n,"n",function(){return w}),o.export(n,"o",function(){return e7}),o.export(n,"p",function(){return ta}),o.export(n,"q",function(){return tF}),o.export(n,"r",function(){return tb}),o.export(n,"s",function(){return W}),o.export(n,"t",function(){return te}),o.export(n,"u",function(){return tv}),o.export(n,"v",function(){return v}),o.export(n,"w",function(){return tE}),o.export(n,"x",function(){return J}),o.export(n,"y",function(){return eT}),o.export(n,"z",function(){return q});var A=t("@swc/helpers/_/_class_call_check"),s=t("@swc/helpers/_/_create_class"),a=t("@swc/helpers/_/_define_property"),l=t("@swc/helpers/_/_to_consumable_array"),c=t("@swc/helpers/_/_type_of");function u(){}var h=(r=0,function(){return r++});function d(t){return null==t}function f(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function p(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}var g=function(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)};function m(t,e){return g(t)?t:e}function v(t,e){return void 0===t?e:t}var y=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e},w=function(t,e){return"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t};function b(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function _(t,e,n,r){var i,o,A;if(f(t)){if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i=t}function tt(t,e,n){var r,i,o;for(r=0,i=t.length;ra&&l3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,n)-r&&t<=Math.max(e,n)+r}function th(t,e,n){n=n||function(n){return t[n]1;)n(r=o+i>>1)?o=r:i=r;return{lo:o,hi:i}}var td=function(t,e,n,r){return th(t,n,r?function(r){return t[r][e]<=n}:function(r){return t[r][e]=n})};function tp(t,e,n){for(var r=0,i=t.length;rr&&t[i-1]>n;)i--;return r>0||i0||(tg.forEach(function(e){delete t[e]}),delete t._chartjs)}}function ty(t){var e,n,r=new Set;for(e=0,n=t.length;e=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){return tQ(t)?t:tS(t,.075,.3)},easeOutElastic:function(t){return tQ(t)?t:tL(t,.075,.3)},easeInOutElastic:function(t){return tQ(t)?t:t<.5?.5*tS(2*t,.1125,.45):.5+.5*tL(2*t-1,.1125,.45)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*(((e*=1.525)+1)*t-e)*.5:.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-tU.easeOutBounce(1-t)},easeOutBounce:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*tU.easeInBounce(2*t):.5*tU.easeOutBounce(2*t-1)+.5}};/*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */function tI(t){return t+.5|0}var tj=function(t,e,n){return Math.max(Math.min(t,n),e)};function tM(t){return tj(tI(2.55*t),0,255)}function tD(t){return tj(tI(255*t),0,255)}function tT(t){return tj(tI(t/2.55)/100,0,1)}function tN(t){return tj(tI(100*t),0,100)}var tP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},tO=Array.from("0123456789ABCDEF"),tH=function(t){return tO[15&t]},tR=function(t){return tO[(240&t)>>4]+tO[15&t]},tK=function(t){return(240&t)>>4==(15&t)},tV=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tz(t,e,n){var r=e*Math.min(n,1-n),i=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function tG(t,e,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+t/60)%6;return n-n*e*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function tq(t,e,n){var r,i=tz(t,1,.5);for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function tW(t){var e,n,r,i=t.r/255,o=t.g/255,A=t.b/255,s=Math.max(i,o,A),a=Math.min(i,o,A),l=(s+a)/2;return s!==a&&(r=s-a,n=l>.5?r/(2-s-a):r/(s+a),e=60*(e=i===s?(o-A)/r+(o=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=tD(t[3]))):(e=t5(t,{r:0,g:0,b:0,a:1})).a=tD(e.a),e}var t3=function(){function t(e){if((0,A._)(this,t),e instanceof t)return e;var n,r,o,s,a=void 0===e?"undefined":(0,c._)(e);"object"===a?s=t4(e):"string"===a&&(r=e.length,"#"===e[0]&&(4===r||5===r?n={r:255&17*tP[e[1]],g:255&17*tP[e[2]],b:255&17*tP[e[3]],a:5===r?17*tP[e[4]]:255}:(7===r||9===r)&&(n={r:tP[e[1]]<<4|tP[e[2]],g:tP[e[3]]<<4|tP[e[4]],b:tP[e[5]]<<4|tP[e[6]],a:9===r?tP[e[7]]<<4|tP[e[8]]:255})),s=n||(i||((i=function(){var t,e,n,r,i,o={},A=Object.keys(tZ),s=Object.keys(tJ);for(t=0;t>16&255,n>>8&255,255&n]}return o}()).transparent=[0,0,0,0]),(o=i[e.toLowerCase()])&&{r:o[0],g:o[1],b:o[2],a:4===o.length?o[3]:255})||("r"===e.charAt(0)?function(t){var e,n,r,i=t$.exec(t),o=255;if(i){if(i[7]!==e){var A=+i[7];o=i[8]?tM(A):tj(255*A,0,255)}return e=+i[1],n=+i[3],r=+i[5],{r:e=255&(i[2]?tM(e):tj(e,0,255)),g:n=255&(i[4]?tM(n):tj(n,0,255)),b:r=255&(i[6]?tM(r):tj(r,0,255)),a:o}}}(e):function(t){var e,n=tV.exec(t),r=255;if(n){n[5]!==e&&(r=n[6]?tM(+n[5]):tD(+n[5]));var i=tX(+n[2]),o=+n[3]/100,A=+n[4]/100;return{r:(e="hwb"===n[1]?tY(tq,i,o,A):"hsv"===n[1]?tY(tG,i,o,A):tY(tz,i,o,A))[0],g:e[1],b:e[2],a:r}}}(e))),this._rgb=s,this._valid=!!s}return(0,s._)(t,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var t=t5(this._rgb);return t&&(t.a=tT(t.a)),t},set:function(t){this._rgb=t4(t)}},{key:"rgbString",value:function(){var t;return this._valid?(t=this._rgb)&&(t.a<255?"rgba(".concat(t.r,", ").concat(t.g,", ").concat(t.b,", ").concat(tT(t.a),")"):"rgb(".concat(t.r,", ").concat(t.g,", ").concat(t.b,")")):void 0}},{key:"hexString",value:function(){var t,e,n,r;return this._valid?(n=tK((e=t=this._rgb).r)&&tK(e.g)&&tK(e.b)&&tK(e.a)?tH:tR,t?"#"+n(t.r)+n(t.g)+n(t.b)+((r=t.a)<255?n(r):""):void 0):void 0}},{key:"hslString",value:function(){return this._valid?function(t){if(t){var e=tW(t),n=e[0],r=tN(e[1]),i=tN(e[2]);return t.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(tT(t.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(t,e){if(t){var n,r=this.rgb,i=t.rgb,o=e===n?.5:e,A=2*o-1,s=r.a-i.a,a=((A*s==-1?A:(A+s)/(1+A*s))+1)/2;n=1-a,r.r=255&a*r.r+n*i.r+.5,r.g=255&a*r.g+n*i.g+.5,r.b=255&a*r.b+n*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(t,e){if(t){var n,r,i,o,A;this._rgb=(n=this._rgb,r=t._rgb,i=t1(tT(n.r)),o=t1(tT(n.g)),A=t1(tT(n.b)),{r:tD(t0(i+e*(t1(tT(r.r))-i))),g:tD(t0(o+e*(t1(tT(r.g))-o))),b:tD(t0(A+e*(t1(tT(r.b))-A))),a:n.a+e*(r.a-n.a)})}return this}},{key:"clone",value:function(){return new t(this.rgb)}},{key:"alpha",value:function(t){return this._rgb.a=tD(t),this}},{key:"clearer",value:function(t){var e=this._rgb;return e.a*=1-t,this}},{key:"greyscale",value:function(){var t=this._rgb,e=tI(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}},{key:"opaquer",value:function(t){var e=this._rgb;return e.a*=1+t,this}},{key:"negate",value:function(){var t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}},{key:"lighten",value:function(t){return t2(this._rgb,2,t),this}},{key:"darken",value:function(t){return t2(this._rgb,2,-t),this}},{key:"saturate",value:function(t){return t2(this._rgb,1,t),this}},{key:"desaturate",value:function(t){return t2(this._rgb,1,-t),this}},{key:"rotate",value:function(t){var e,n;return(n=tW(e=this._rgb))[0]=tX(n[0]+t),n=tY(tz,n,void 0,void 0),e.r=n[0],e.g=n[1],e.b=n[2],this}}]),t}();function t6(t){if(t&&"object"==typeof t){var e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function t8(t){return t6(t)?t:new t3(t)}function t7(t){return t6(t)?t:new t3(t).saturate(.5).darken(.1).hexString()}var t9=Object.create(null),et=Object.create(null);function ee(t,e){if(!e)return t;for(var n=e.split("."),r=0,i=n.length;rr&&(r=o),r}function eA(t,e,n,r){var i,o,A,s,a,l=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(l=r.data={},c=r.garbageCollect=[],r.font=e),t.save(),t.font=e;var u=0,h=n.length;for(i=0;in.length){for(i=0;i0&&t.stroke()}}function eu(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.xe.top-n&&t.y5&&void 0!==arguments[5]?arguments[5]:{},a=f(e)?e:[e],l=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=i.string,s.translation&&t.translate(s.translation[0],s.translation[1]),d(s.rotation)||t.rotate(s.rotation),s.color&&(t.fillStyle=s.color),s.textAlign&&(t.textAlign=s.textAlign),s.textBaseline&&(t.textBaseline=s.textBaseline),o=0;o1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return t[0]};return M(i)||(i=eM("_fallback",t)),new Proxy((e={},(0,a._)(e,Symbol.toStringTag,"Object"),(0,a._)(e,"_cacheable",!0),(0,a._)(e,"_scopes",t),(0,a._)(e,"_rootScopes",r),(0,a._)(e,"_fallback",i),(0,a._)(e,"_getTarget",o),(0,a._)(e,"override",function(e){return eQ([e].concat((0,l._)(t)),n,r,i)}),e),{deleteProperty:function(e,n){return delete e[n],delete e._keys,delete t[0][n],!0},get:function(e,r){return eU(e,r,function(){return function(t,e,n,r){var i=!0,o=!1,A=void 0;try{for(var s,a,l=e[Symbol.iterator]();!(i=(a=l.next()).done);i=!0){var c=a.value;if(s=eM(c?c+j(t):t,n),M(s))return eL(t,s)?eI(n,r,t,s):s}}catch(t){o=!0,A=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw A}}}(r,n,t,e)})},getOwnPropertyDescriptor:function(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf:function(){return Reflect.getPrototypeOf(t[0])},has:function(t,e){return eD(t).includes(e)},ownKeys:function(t){return eD(t)},set:function(t,e,n){var r=t._storage||(t._storage=o());return t[e]=r[e]=n,delete t._keys,!0}})}function eS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=t._scriptable,r=void 0===n?e.scriptable:n,i=t._indexable,o=void 0===i?e.indexable:i,A=t._allKeys;return{allKeys:void 0===A?e.allKeys:A,scriptable:r,indexable:o,isScriptable:D(r)?r:function(){return r},isIndexable:D(o)?o:function(){return o}}}var eL=function(t,e){return p(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object)};function eU(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];var r=n();return t[e]=r,r}function eI(t,e,n,r){var i,o=e._rootScopes,A=D(i=e._fallback)?i(n,r):i,s=(0,l._)(t).concat((0,l._)(o)),a=new Set;a.add(r);var c=ej(a,s,n,A||n,r);return!(null===c||M(A)&&A!==n&&null===(c=ej(a,s,A,c,r)))&&eQ(Array.from(a),[""],o,A,function(){var t,i;return n in(t=e._getTarget())||(t[n]={}),f(i=t[n])&&p(r)?r:i})}function ej(t,e,n,r,i){for(;n;)n=function(t,e,n,r,i){var o=!0,A=!1,s=void 0;try{for(var a,l=e[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=a.value,u=!0===n?c:"string"==typeof n?U(c,n):void 0;if(u){t.add(u);var h,d=(h=u._fallback,D(h)?h(n,i):h);if(M(d)&&d!==n&&d!==r)return d}else if(!1===u&&M(r)&&n!==r)return null}}catch(t){A=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(A)throw s}}return!1}(t,e,n,r,i);return n}function eM(t,e){var n=!0,r=!1,i=void 0;try{for(var o,A=e[Symbol.iterator]();!(n=(o=A.next()).done);n=!0){var s=o.value;if(s){var a=s[t];if(M(a))return a}}}catch(t){r=!0,i=t}finally{try{n||null==A.return||A.return()}finally{if(r)throw i}}}function eD(t){var e=t._keys;return e||(e=t._keys=function(t){var e=new Set,n=!0,r=!1,i=void 0,o=!0,A=!1,s=void 0;try{for(var a,l=t[Symbol.iterator]();!(o=(a=l.next()).done);o=!0){var c=a.value;try{for(var u,h=Object.keys(c).filter(function(t){return!t.startsWith("_")})[Symbol.iterator]();!(n=(u=h.next()).done);n=!0){var d=u.value;e.add(d)}}catch(t){r=!0,i=t}finally{try{n||null==h.return||h.return()}finally{if(r)throw i}}}}catch(t){A=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(A)throw s}}return Array.from(e)}(t._scopes)),e}function eT(t,e,n,r){var i,o,A,s=t.iScale,a=this._parsing.key,l=void 0===a?"r":a,c=Array(r);for(i=0;i1&&void 0!==arguments[1]?arguments[1]:"x",o=eO(i),A=t.length,s=Array(A).fill(0),a=Array(A),l=eP(t,0);for(e=0;e2&&void 0!==arguments[2]?arguments[2]:"x",A=eO(o),s=t.length,a=eP(t,0),l=0;l0||a>0)&&(!n||!n.shadowRoot))r=s,i=a;else{var c=e.getBoundingClientRect();r=A.clientX-c.left,i=A.clientY-c.top,l=!0}return{x:r,y:i,box:l}}(t,n),l=a.x,c=a.y,u=a.box,h=A.left+(u&&s.left),d=A.top+(u&&s.top),f=e.width,p=e.height;return o&&(f-=A.width+s.width,p-=A.height+s.height),{x:Math.round((l-h)/f*n.width/r),y:Math.round((c-d)/p*n.height/r)}}var e$=function(t){return Math.round(10*t)/10};function e0(t,e,n,r){var i=eW(t),o=eJ(i,"margin"),A=eq(i.maxWidth,t,"clientWidth")||R,s=eq(i.maxHeight,t,"clientHeight")||R,a=function(t,e,n){var r,i;if(void 0===e||void 0===n){var o=eG(t);if(o){var A=o.getBoundingClientRect(),s=eW(o),a=eJ(s,"border","width"),l=eJ(s,"padding");e=A.width-l.width-a.width,n=A.height-l.height-a.height,r=eq(s.maxWidth,o,"clientWidth"),i=eq(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:r||R,maxHeight:i||R}}(t,e,n),l=a.width,c=a.height;if("content-box"===i.boxSizing){var u=eJ(i,"border","width"),h=eJ(i,"padding");l-=h.width+u.width,c-=h.height+u.height}return l=Math.max(0,l-o.width),c=Math.max(0,r?Math.floor(l/r):c-o.height),l=e$(Math.min(l,A,a.maxWidth)),c=e$(Math.min(c,s,a.maxHeight)),l&&!c&&(c=e$(l/2)),{width:l,height:c}}function e1(t,e,n){var r=e||1,i=Math.floor(t.height*r),o=Math.floor(t.width*r);t.height=i/r,t.width=o/r;var A=t.canvas;return A.style&&(n||!A.style.height&&!A.style.width)&&(A.style.height="".concat(t.height,"px"),A.style.width="".concat(t.width,"px")),(t.currentDevicePixelRatio!==r||A.height!==i||A.width!==o)&&(t.currentDevicePixelRatio=r,A.height=i,A.width=o,t.ctx.setTransform(r,0,0,r,0,0),!0)}var e2=function(){var t=!1;try{var e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function e5(t,e){var n=eY(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function e4(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function e3(t,e,n,r){return{x:t.x+n*(e.x-t.x),y:"middle"===r?n<.5?t.y:e.y:"after"===r?n<1?t.y:e.y:n>0?e.y:t.y}}function e6(t,e,n,r){var i={x:t.cp2x,y:t.cp2y},o={x:e.cp1x,y:e.cp1y},A=e4(t,i,n),s=e4(i,o,n),a=e4(o,e,n),l=e4(A,s,n),c=e4(s,a,n);return e4(l,c,n)}var e8=new Map;function e7(t,e,n){var r,i,o;return(i=e+JSON.stringify(r=(r=n)||{}),(o=e8.get(i))||(o=new Intl.NumberFormat(e,r),e8.set(i,o)),o).format(t)}function e9(t,e,n){var r;return t?(r=n,{x:function(t){return e+e+r-t},setWidth:function(t){r=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}}function nt(t,e){var n,r;("ltr"===e||"rtl"===e)&&(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)}function ne(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function nn(t){return"angle"===t?{between:ta,compare:tA,normalize:ts}:{between:tu,compare:function(t,e){return t-e},normalize:function(t){return t}}}function nr(t){var e=t.start,n=t.end,r=t.count;return{start:e%r,end:n%r,loop:t.loop&&(n-e+1)%r==0,style:t.style}}function ni(t,e,n){if(!n)return[t];for(var r,i,o,A=n.property,s=n.start,a=n.end,l=e.length,c=nn(A),u=c.compare,h=c.between,d=c.normalize,f=function(t,e,n){var r,i=n.property,o=n.start,A=n.end,s=nn(i),a=s.between,l=s.normalize,c=e.length,u=t.start,h=t.end,d=t.loop;if(d){for(u+=c,h+=c,r=0;ri&&t[o%e].skip;)o--;return{start:i,end:o%=e}}(n,i,o,r),s=A.start,a=A.end;if(!0===r)return ns(t,[{start:s,end:a,loop:o}],n,e);var l=a0){this.model=e||"rgb",r=s[this.model].channels;var c=Array.prototype.slice.call(t,0,r);this.color=C(c,r),this.valpha="number"==typeof t[r]?t[r]:1}else if("number"==typeof t)this.model="rgb",this.color=[t>>16&255,t>>8&255,255&t],this.valpha=1;else{this.valpha=1;var u=Object.keys(t);"alpha"in t&&(u.splice(u.indexOf("alpha"),1),this.valpha="number"==typeof t.alpha?t.alpha:0);var h=u.sort().join("");if(!(h in l))throw Error("Unable to parse color from object: "+JSON.stringify(t));this.model=l[h];var d=s[this.model].labels,f=[];for(n=0;nn?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color;return(2126*t[0]+7152*t[1]+722*t[2])/1e4<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=.3*t[0]+.59*t[1]+.11*t[2];return m.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),n=e.color[0];return n=(n=(n+t)%360)<0?360+n:n,e.color[0]=n,e},mix:function(t,e){if(!t||!t.rgb)throw Error('Argument to "mix" was not a Color instance, but rather an instance of '+(void 0===t?"undefined":(0,o._)(t)));var n=t.rgb(),r=this.rgb(),i=void 0===e?.5:e,A=2*i-1,s=n.alpha()-r.alpha(),a=((A*s==-1?A:(A+s)/(1+A*s))+1)/2,l=1-a;return m.rgb(a*n.red()+l*r.red(),a*n.green()+l*r.green(),a*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};var v=!0,y=!1,w=void 0;try{for(var b,_=Object.keys(s)[Symbol.iterator]();!(v=(b=_.next()).done);v=!0)!function(){var t=b.value;if(!a.includes(t)){var e=s[t].channels;m.prototype[t]=function(){for(var e,n=arguments.length,r=Array(n),o=0;o0?new m(r,t):new m((0,i._)((e=s[this.model][t].raw(this.color),Array.isArray(e)?e:[e])).concat([this.valpha]),t)},m[t]=function(){for(var n=arguments.length,r=Array(n),i=0;i=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},a.to.keyword=function(t){return A[t.slice(0,3)]}},{d7a6eeb7388b4bb:"9CRqC","248ce9e419a8df53":"7SGVb"}],"9CRqC":[function(t,e,n){e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],"7SGVb":[function(t,e,n){var r=t("ce0bf6d0bc000d24"),i=Array.prototype.concat,o=Array.prototype.slice,A=e.exports=function(t){for(var e=[],n=0,A=t.length;n=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},{}],b0bZu:[function(t,e,n){var r=t("739980f7990d3c32"),i=t("30ea0c7ee5f3dd94"),o={};Object.keys(r).forEach(function(t){o[t]={},Object.defineProperty(o[t],"channels",{value:r[t].channels}),Object.defineProperty(o[t],"labels",{value:r[t].labels});var e=i(t);Object.keys(e).forEach(function(n){var r,i,A=e[n];o[t][n]=(r=function(){for(var t=arguments.length,e=Array(t),n=0;n1&&(e=r);var i=A(e);if("object"==typeof i)for(var o=i.length,s=0;s1&&(e=r),A(e))},"conversion"in A&&(i.conversion=A.conversion),i)})}),e.exports=o},{"739980f7990d3c32":"bLCsr","30ea0c7ee5f3dd94":"B0afd"}],bLCsr:[function(t,e,n){var r=t("@swc/helpers/_/_sliced_to_array"),i=t("efc99055946c4df8"),o={},A=!0,s=!1,a=void 0;try{for(var l,c=Object.keys(i)[Symbol.iterator]();!(A=(l=c.next()).done);A=!0){var u=l.value;o[i[u]]=u}}catch(t){s=!0,a=t}finally{try{A||null==c.return||c.return()}finally{if(s)throw a}}var h={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=h;var d=!0,f=!1,p=void 0;try{for(var g,m=Object.keys(h)[Symbol.iterator]();!(d=(g=m.next()).done);d=!0){var v=g.value;if(!("channels"in h[v]))throw Error("missing channels property: "+v);if(!("labels"in h[v]))throw Error("missing channel labels property: "+v);if(h[v].labels.length!==h[v].channels)throw Error("channel and label counts mismatch: "+v);var y=h[v],w=y.channels,b=y.labels;delete h[v].channels,delete h[v].labels,Object.defineProperty(h[v],"channels",{value:w}),Object.defineProperty(h[v],"labels",{value:b})}}catch(t){f=!0,p=t}finally{try{d||null==m.return||m.return()}finally{if(f)throw p}}h.rgb.hsl=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.min(n,r,i),A=Math.max(n,r,i),s=A-o;A===o?e=0:n===A?e=(r-i)/s:r===A?e=2+(i-n)/s:i===A&&(e=4+(n-r)/s),(e=Math.min(60*e,360))<0&&(e+=360);var a=(o+A)/2;return[e,100*(A===o?0:a<=.5?s/(A+o):s/(2-A-o)),100*a]},h.rgb.hsv=function(t){var e,n,r,i,o,A=t[0]/255,s=t[1]/255,a=t[2]/255,l=Math.max(A,s,a),c=l-Math.min(A,s,a),u=function(t){return(l-t)/6/c+.5};return 0===c?(i=0,o=0):(o=c/l,e=u(A),n=u(s),r=u(a),A===l?i=r-n:s===l?i=1/3+e-r:a===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},h.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[h.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,r))*100,100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},h.rgb.cmyk=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(1-e,1-n,1-r);return[100*((1-e-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},h.rgb.keyword=function(t){var e=o[t];if(e)return e;var n=1/0,r=!0,A=!1,s=void 0;try{for(var a,l,c=Object.keys(i)[Symbol.iterator]();!(r=(l=c.next()).done);r=!0){var u=l.value,h=i[u],d=Math.pow(t[0]-h[0],2)+Math.pow(t[1]-h[1],2)+Math.pow(t[2]-h[2],2);d.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},h.rgb.lab=function(t){var e=h.rgb.xyz(t),n=e[0],r=e[1],i=e[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},h.hsl.rgb=function(t){var e,n,r,i=t[0]/360,o=t[1]/100,A=t[2]/100;if(0===o)return[r=255*A,r,r];e=A<.5?A*(1+o):A+o-A*o;for(var s=2*A-e,a=[0,0,0],l=0;l<3;l++)(n=i+-(1/3*(l-1)))<0&&n++,n>1&&n--,r=6*n<1?s+(e-s)*6*n:2*n<1?e:3*n<2?s+(e-s)*(2/3-n)*6:s,a[l]=255*r;return a},h.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o;var A=(r+n)/2;return[e,100*(0===r?2*i/(o+i):2*n/(r+n)),100*A]},h.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),A=255*r*(1-n),s=255*r*(1-n*o),a=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,a,A];case 1:return[s,r,A];case 2:return[A,r,a];case 3:return[A,s,r];case 4:return[a,A,r];case 5:return[r,A,s]}},h.hsv.hsl=function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100,A=Math.max(o,.01);n=(2-i)*o;var s=(2-i)*A;return[r,100*(i*A/(s<=1?s:2-s)||0),100*(n/=2)]},h.hwb.rgb=function(t){var e,n,r,i,o=t[0]/360,A=t[1]/100,s=t[2]/100,a=A+s;a>1&&(A/=a,s/=a);var l=Math.floor(6*o),c=1-s;e=6*o-l,(1&l)!=0&&(e=1-e);var u=A+e*(c-A);switch(l){default:case 6:case 0:n=c,r=u,i=A;break;case 1:n=u,r=c,i=A;break;case 2:n=A,r=c,i=u;break;case 3:n=A,r=u,i=c;break;case 4:n=u,r=A,i=c;break;case 5:n=c,r=A,i=u}return[255*n,255*r,255*i]},h.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},h.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,A=t[2]/100;return e=3.2406*i+-1.5372*o+-.4986*A,n=-.9689*i+1.8758*o+.0415*A,r=.0557*i+-.204*o+1.057*A,e=e>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},h.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return e/=95.047,n/=100,r/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},h.lab.xyz=function(t){var e,n,r,i=t[0],o=t[1],A=t[2];e=o/500+(n=(i+16)/116),r=n-A/200;var s=Math.pow(n,3),a=Math.pow(e,3),l=Math.pow(r,3);return n=(s>.008856?s:(n-16/116)/7.787)*100,[e=(a>.008856?a:(e-16/116)/7.787)*95.047,n,r=(l>.008856?l:(r-16/116)/7.787)*108.883]},h.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},h.lch.lab=function(t){var e=t[0],n=t[1],r=t[2]/360*2*Math.PI;return[e,n*Math.cos(r),n*Math.sin(r)]},h.rgb.ansi16=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,r._)(t,3),i=n[0],o=n[1],A=n[2],s=null===e?h.rgb.hsv(t)[2]:e;if(0===(s=Math.round(s/50)))return 30;var a=30+(Math.round(A/255)<<2|Math.round(o/255)<<1|Math.round(i/255));return 2===s&&(a+=60),a},h.hsv.ansi16=function(t){return h.rgb.ansi16(h.hsv.rgb(t),t[2])},h.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},h.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=(~~(t>50)+1)*.5;return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},h.ansi256.rgb=function(t){if(t>=232){var e,n=(t-232)*10+8;return[n,n,n]}return[Math.floor((t-=16)/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},h.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},h.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map(function(t){return t+t}).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},h.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),A=Math.min(Math.min(n,r),i),s=o-A;return e=s<1?A/(1-s):0,[(s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s)/6%1*360,100*s,100*e]},h.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=n<.5?2*e*n:2*e*(1-n),i=0;return r<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},h.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},h.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i=[0,0,0],o=e%1*6,A=o%1,s=1-A,a=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=A,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=A;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=A,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return a=(1-n)*r,[(n*i[0]+a)*255,(n*i[1]+a)*255,(n*i[2]+a)*255]},h.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},h.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},h.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],(n-e)*100,(1-n)*100]},h.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},h.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},h.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},h.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},h.gray.hsl=function(t){return[0,0,t[0]]},h.gray.hsv=h.gray.hsl,h.gray.hwb=function(t){return[0,100,t[0]]},h.gray.cmyk=function(t){return[0,0,0,t[0]]},h.gray.lab=function(t){return[t[0],0,0]},h.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},h.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},{"@swc/helpers/_/_sliced_to_array":"hefcy",efc99055946c4df8:"9CRqC"}],B0afd:[function(t,e,n){var r=t("22442592002c5ac3");e.exports=function(t){for(var e=function(t){var e=function(){for(var t={},e=Object.keys(r),n=e.length,i=0;i0&&void 0!==arguments[0]?arguments[0]:null,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US";return(0,o._)(this,n),t=e.call(this,n.parseDateTime(r,A,a)),(0,s._)((0,i._)(t),"lang",void 0),t.lang=a,(0,c._)(t)}return(0,A._)(n,[{key:"getWeek",value:function(t){var e=new Date(this.midnight_ts(this)),n=(this.getDay()+(7-t))%7;e.setDate(e.getDate()-n);var r=e.getTime();return e.setMonth(0,1),e.getDay()!==t&&e.setMonth(0,1+(4-e.getDay()+7)%7),1+Math.ceil((r-e.getTime())/6048e5)}},{key:"clone",value:function(){return new n(this)}},{key:"toJSDate",value:function(){return new Date(this)}},{key:"inArray",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[]";return t.some(function(t){return t instanceof Array?e.isBetween(t[0],t[1],n):e.isSame(t,"day")})}},{key:"isBetween",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"()";switch(n){default:case"()":return this.midnight_ts(this)>this.midnight_ts(t)&&this.midnight_ts(this)=this.midnight_ts(t)&&this.midnight_ts(this)this.midnight_ts(t)&&this.midnight_ts(this)<=this.midnight_ts(e);case"[]":return this.midnight_ts()>=this.midnight_ts(t)&&this.midnight_ts()<=this.midnight_ts(e)}}},{key:"isBefore",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>new Date(this.getFullYear(),this.getMonth(),1).getTime();case"year":case"years":return t.getFullYear()>this.getFullYear()}throw Error("isBefore: Invalid unit!")}},{key:"isSameOrBefore",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()>=new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime();case"month":case"months":return new Date(t.getFullYear(),t.getMonth(),1).getTime()>=new Date(this.getFullYear(),this.getMonth(),1).getTime()}throw Error("isSameOrBefore: Invalid unit!")}},{key:"isAfter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>new Date(t.getFullYear(),t.getMonth(),1).getTime();case"year":case"years":return this.getFullYear()>t.getFullYear()}throw Error("isAfter: Invalid unit!")}},{key:"isSameOrAfter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()>=new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw Error("isSameOrAfter: Invalid unit!")}},{key:"isSame",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":return new Date(this.getFullYear(),this.getMonth(),this.getDate()).getTime()===new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime();case"month":case"months":return new Date(this.getFullYear(),this.getMonth(),1).getTime()===new Date(t.getFullYear(),t.getMonth(),1).getTime()}throw Error("isSame: Invalid unit!")}},{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":this.setDate(this.getDate()+t);break;case"month":case"months":this.setMonth(this.getMonth()+t)}return this}},{key:"subtract",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){case"day":case"days":this.setDate(this.getDate()-t);break;case"month":case"months":this.setMonth(this.getMonth()-t)}return this}},{key:"diff",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";switch(e){default:case"day":case"days":return Math.round((this.midnight_ts()-this.midnight_ts(t))/864e5);case"month":case"months":var n=12*(t.getFullYear()-this.getFullYear());return n-=t.getMonth(),n+=this.getMonth()}}},{key:"format",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",r="",i=[],o=null;null!=(o=n.regex.exec(t));)"\\"!==o[1]&&i.push(o);if(i.length){i[0].index>0&&(r+=t.substring(0,i[0].index));var A=!0,s=!1,a=void 0;try{for(var l,c=Object.entries(i)[Symbol.iterator]();!(A=(l=c.next()).done);A=!0){var h=(0,u._)(l.value,2),d=h[0],f=h[1],p=Number(d);r+=this.formatTokens(f[0],e),i[p+1]&&(r+=t.substring(f.index+f[0].length,i[p+1].index)),p===i.length-1&&(r+=t.substring(f.index+f[0].length))}}catch(t){s=!0,a=t}finally{try{A||null==c.return||c.return()}finally{if(s)throw a}}}return r.replace(/\\/g,"")}},{key:"midnight_ts",value:function(t){return t?new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0).getTime():new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0,0).getTime()}},{key:"formatTokens",value:function(t,e){switch(t){case"YY":return String(this.getFullYear()).slice(-2);case"YYYY":return String(this.getFullYear());case"M":return String(this.getMonth()+1);case"MM":return"0".concat(this.getMonth()+1).slice(-2);case"MMM":return n.shortMonths(e)[this.getMonth()];case"MMMM":return n.longMonths(e)[this.getMonth()];case"D":return String(this.getDate());case"DD":return"0".concat(this.getDate()).slice(-2);case"H":return String(this.getHours());case"HH":return"0".concat(this.getHours()).slice(-2);case"h":return String(this.getHours()%12||12);case"hh":return"0".concat(this.getHours()%12||12).slice(-2);case"m":return String(this.getMinutes());case"mm":return"0".concat(this.getMinutes()).slice(-2);case"s":return String(this.getSeconds());case"ss":return"0".concat(this.getSeconds()).slice(-2);case"a":return 12>this.getHours()||24===this.getHours()?"am":"pm";case"A":return 12>this.getHours()||24===this.getHours()?"AM":"PM";default:return""}}}],[{key:"parseDateTime",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US";if(!t)return new Date((new Date).setHours(0,0,0,0));if(t instanceof n)return t.toJSDate();if(t instanceof Date)return t;if(/^-?\d{10,}$/.test(String(t)))return new Date(Number(t));if("string"==typeof t){for(var i=[],o=null;null!=(o=n.regex.exec(e));)"\\"!==o[1]&&i.push(o);if(i.length){var A={year:null,month:null,shortMonth:null,longMonth:null,day:null,hour:0,minute:0,second:0,ampm:null,value:""};i[0].index>0&&(A.value+=".*?");var s=!0,a=!1,l=void 0;try{for(var c,h=Object.entries(i)[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){var d=(0,u._)(c.value,2),f=d[0],p=d[1],g=Number(f),m=n.formatPatterns(p[0],r),v=m.group,y=m.pattern;A[v]=g+1,A.value+=y,A.value+=".*?"}}catch(t){a=!0,l=t}finally{try{s||null==h.return||h.return()}finally{if(a)throw l}}var w=new RegExp("^".concat(A.value,"$"));if(w.test(t)){var b=w.exec(t),_=Number(b[A.year]),B=null;A.month?B=Number(b[A.month])-1:A.shortMonth?B=n.shortMonths(r).indexOf(b[A.shortMonth]):A.longMonth&&(B=n.longMonths(r).indexOf(b[A.longMonth]));var x=Number(b[A.day])||1,C=Number(b[A.hour]),k=Number.isNaN(C)?0:C,F=Number(b[A.minute]),E=Number.isNaN(F)?0:F,Q=Number(b[A.second]),S=Number.isNaN(Q)?0:Q,L=b[A.ampm];return L&&"PM"===L&&24===(k+=12)&&(k=0),new Date(_,B,x,k,E,S,0)}}}return new Date((new Date).setHours(0,0,0,0))}},{key:"shortMonths",value:function(t){return n.MONTH_JS.map(function(e){return new Date(2019,e).toLocaleString(t,{month:"short"})})}},{key:"longMonths",value:function(t){return n.MONTH_JS.map(function(e){return new Date(2019,e).toLocaleString(t,{month:"long"})})}},{key:"formatPatterns",value:function(t,e){switch(t){case"YY":case"YYYY":return{group:"year",pattern:"(\\d{".concat(t.length,"})")};case"M":return{group:"month",pattern:"(\\d{1,2})"};case"MM":return{group:"month",pattern:"(\\d{2})"};case"MMM":return{group:"shortMonth",pattern:"(".concat(n.shortMonths(e).join("|"),")")};case"MMMM":return{group:"longMonth",pattern:"(".concat(n.longMonths(e).join("|"),")")};case"D":return{group:"day",pattern:"(\\d{1,2})"};case"DD":return{group:"day",pattern:"(\\d{2})"};case"h":case"H":return{group:"hour",pattern:"(\\d{1,2})"};case"hh":case"HH":return{group:"hour",pattern:"(\\d{2})"};case"m":return{group:"minute",pattern:"(\\d{1,2})"};case"mm":return{group:"minute",pattern:"(\\d{2})"};case"s":return{group:"second",pattern:"(\\d{1,2})"};case"ss":return{group:"second",pattern:"(\\d{2})"};case"a":case"A":return{group:"ampm",pattern:"(AM|PM|am|pm)"}}}}]),n}((0,d._)(Date));(0,s._)(p,"regex",/(\\)?(Y{2,4}|M{1,4}|D{1,2}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|A|a)/g),(0,s._)(p,"MONTH_JS",[0,1,2,3,4,5,6,7,8,9,10,11]);var g=function(){function t(e){(0,o._)(this,t),(0,s._)(this,"picker",void 0),this.picker=e}return(0,A._)(t,[{key:"render",value:function(t,e){t||(t=new p),t.setDate(1),t.setHours(0,0,0,0),"function"==typeof this["get".concat(e,"View")]&&this["get".concat(e,"View")](t)}},{key:"getContainerView",value:function(t){this.picker.ui.container.innerHTML="",this.picker.options.header&&this.picker.trigger("render",{date:t.clone(),view:"Header"}),this.picker.trigger("render",{date:t.clone(),view:"Main"}),this.picker.options.autoApply||this.picker.trigger("render",{date:t.clone(),view:"Footer"})}},{key:"getHeaderView",value:function(t){var e=document.createElement("header");this.picker.options.header instanceof HTMLElement&&e.appendChild(this.picker.options.header),"string"==typeof this.picker.options.header&&(e.innerHTML=this.picker.options.header),this.picker.ui.container.appendChild(e),this.picker.trigger("view",{target:e,date:t.clone(),view:"Header"})}},{key:"getMainView",value:function(t){var e=document.createElement("main");this.picker.ui.container.appendChild(e);var n=document.createElement("div");n.className="calendars grid-".concat(this.picker.options.grid);for(var r=0;r".concat(t.toLocaleString(this.picker.options.lang,{month:"long"})," ").concat(t.format("YYYY")),e.appendChild(n);var r=document.createElement("button");r.className="previous-button unit",r.innerHTML=this.picker.options.locale.previousMonth,e.appendChild(r);var i=document.createElement("button");return i.className="next-button unit",i.innerHTML=this.picker.options.locale.nextMonth,e.appendChild(i),e}},{key:"getCalendarDayNamesView",value:function(){var t=document.createElement("div");t.className="daynames-row";for(var e=1;e<=7;e++){var n=3+this.picker.options.firstDay+e,r=document.createElement("div");r.className="dayname",r.innerHTML=new Date(1970,0,n,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"short"}),r.title=new Date(1970,0,n,12,0,0,0).toLocaleString(this.picker.options.lang,{weekday:"long"}),t.appendChild(r),this.picker.trigger("view",{dayIdx:n,view:"CalendarDayName",target:r})}return t}},{key:"getCalendarDaysView",value:function(t){var e=document.createElement("div");e.className="days-grid";for(var n=this.calcOffsetDays(t,this.picker.options.firstDay),r=32-new Date(t.getFullYear(),t.getMonth(),32).getDate(),i=0;ie.priority?-1:t.prioritye.dependencies.length?1:t.dependencies.length',previousMonth:'',cancel:"Cancel",apply:"Apply"},documentClick:this.binds.hidePicker,plugins:[]}),(0,s._)(this,"ui",{container:null,shadowRoot:null,wrapper:null}),(0,s._)(this,"version","1.2.1");var n=(0,l._)({},this.options.locale,e.locale);this.options=(0,l._)({},this.options,e),this.options.locale=n,this.handleOptions(),this.ui.wrapper=document.createElement("span"),this.ui.wrapper.style.display="none",this.ui.wrapper.style.position="absolute",this.ui.wrapper.style.pointerEvents="none",this.ui.wrapper.className="easepick-wrapper",this.ui.wrapper.attachShadow({mode:"open"}),this.ui.shadowRoot=this.ui.wrapper.shadowRoot,this.ui.container=document.createElement("div"),this.ui.container.className="container",this.options.zIndex&&(this.ui.container.style.zIndex=String(this.options.zIndex)),this.options.inline&&(this.ui.wrapper.style.position="relative",this.ui.container.classList.add("inline")),this.ui.shadowRoot.appendChild(this.ui.container),this.options.element.after(this.ui.wrapper),this.handleCSS(),this.options.element.addEventListener("click",this.binds.show),this.on("view",this.onView.bind(this)),this.on("render",this.onRender.bind(this)),this.PluginManager.initialize(),this.parseValues(),"function"==typeof this.options.setup&&this.options.setup(this),this.on("click",this.onClick.bind(this));var r=this.options.scrollToDate?this.getDate():null;this.renderAll(r)}return(0,A._)(t,[{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.ui.container.addEventListener(t,e,n)}},{key:"off",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.ui.container.removeEventListener(t,e,n)}},{key:"trigger",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.ui.container.dispatchEvent(new CustomEvent(t,{detail:e}))}},{key:"destroy",value:function(){var t=this;this.options.element.removeEventListener("click",this.binds.show),"function"==typeof this.options.documentClick&&document.removeEventListener("click",this.options.documentClick,!0),Object.keys(this.PluginManager.instances).forEach(function(e){t.PluginManager.removeInstance(e)}),this.ui.wrapper.remove()}},{key:"onRender",value:function(t){var e=t.detail,n=e.view,r=e.date;this.Calendar.render(r,n)}},{key:"onView",value:function(t){var e=t.detail,n=e.view,r=e.target;"Footer"===n&&this.datePicked.length&&(r.querySelector(".apply-button").disabled=!1)}},{key:"onClickHeaderButton",value:function(t){this.isCalendarHeaderButton(t)&&(t.classList.contains("next-button")?this.calendars[0].add(1,"month"):this.calendars[0].subtract(1,"month"),this.renderAll(this.calendars[0]))}},{key:"onClickCalendarDay",value:function(t){if(this.isCalendarDay(t)){var e=new p(t.dataset.time);this.options.autoApply?(this.setDate(e),this.trigger("select",{date:this.getDate()}),this.hide()):(this.datePicked[0]=e,this.trigger("preselect",{date:this.getDate()}),this.renderAll())}}},{key:"onClickApplyButton",value:function(t){if(this.isApplyButton(t)){if(this.datePicked[0]instanceof Date){var e=this.datePicked[0].clone();this.setDate(e)}this.hide(),this.trigger("select",{date:this.getDate()})}}},{key:"onClickCancelButton",value:function(t){this.isCancelButton(t)&&this.hide()}},{key:"onClick",value:function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest(".unit");if(!(n instanceof HTMLElement))return;this.onClickHeaderButton(n),this.onClickCalendarDay(n),this.onClickApplyButton(n),this.onClickCancelButton(n)}}},{key:"isShown",value:function(){return this.ui.container.classList.contains("inline")||this.ui.container.classList.contains("show")}},{key:"show",value:function(t){if(!this.isShown()){var e=t&&"target"in t?t.target:this.options.element,n=this.adjustPosition(e),r=n.top,i=n.left;this.ui.container.style.top="".concat(r,"px"),this.ui.container.style.left="".concat(i,"px"),this.ui.container.classList.add("show"),this.trigger("show",{target:e})}}},{key:"hide",value:function(){this.ui.container.classList.remove("show"),this.datePicked.length=0,this.renderAll(),this.trigger("hide")}},{key:"setDate",value:function(t){var e=new p(t,this.options.format);this.options.date=e.clone(),this.updateValues(),this.calendars.length&&this.renderAll()}},{key:"getDate",value:function(){return this.options.date instanceof p?this.options.date.clone():null}},{key:"parseValues",value:function(){this.options.date?this.setDate(this.options.date):this.options.element instanceof HTMLInputElement&&this.options.element.value.length&&this.setDate(this.options.element.value),this.options.date instanceof Date||(this.options.date=null)}},{key:"updateValues",value:function(){var t=this.getDate(),e=t instanceof Date?t.format(this.options.format,this.options.lang):"",n=this.options.element;n instanceof HTMLInputElement?n.value=e:n instanceof HTMLElement&&(n.innerText=e)}},{key:"hidePicker",value:function(t){var e=t.target,n=null;e.shadowRoot&&(n=(e=t.composedPath()[0]).getRootNode().host),this.isShown()&&n!==this.ui.wrapper&&e!==this.options.element&&this.hide()}},{key:"renderAll",value:function(t){this.trigger("render",{view:"Container",date:(t||this.calendars[0]).clone()})}},{key:"isCalendarHeaderButton",value:function(t){return["previous-button","next-button"].some(function(e){return t.classList.contains(e)})}},{key:"isCalendarDay",value:function(t){return t.classList.contains("day")}},{key:"isApplyButton",value:function(t){return t.classList.contains("apply-button")}},{key:"isCancelButton",value:function(t){return t.classList.contains("cancel-button")}},{key:"gotoDate",value:function(t){var e=new p(t,this.options.format);e.setDate(1),this.calendars[0]=e.clone(),this.renderAll()}},{key:"clear",value:function(){this.options.date=null,this.datePicked.length=0,this.updateValues(),this.renderAll(),this.trigger("clear")}},{key:"handleOptions",value:function(){this.options.element instanceof HTMLElement||(this.options.element=this.options.doc.querySelector(this.options.element)),"function"==typeof this.options.documentClick&&document.addEventListener("click",this.options.documentClick,!0),this.options.element instanceof HTMLInputElement&&(this.options.element.readOnly=this.options.readonly),this.options.date?this.calendars[0]=new p(this.options.date,this.options.format):this.calendars[0]=new p}},{key:"handleCSS",value:function(){var t=this;if(Array.isArray(this.options.css))this.options.css.forEach(function(e){var n=document.createElement("link");n.href=e,n.rel="stylesheet";var r=function(){t.cssLoaded++,t.cssLoaded===t.options.css.length&&(t.ui.wrapper.style.display="")};n.addEventListener("load",r),n.addEventListener("error",r),t.ui.shadowRoot.append(n)});else if("string"==typeof this.options.css){var e=document.createElement("style"),n=document.createTextNode(this.options.css);e.appendChild(n),this.ui.shadowRoot.append(e),this.ui.wrapper.style.display=""}else"function"==typeof this.options.css&&(this.options.css.call(this,this),this.ui.wrapper.style.display="")}},{key:"adjustPosition",value:function(t){var e=t.getBoundingClientRect(),n=this.ui.wrapper.getBoundingClientRect();this.ui.container.classList.add("calc");var r=this.ui.container.getBoundingClientRect();this.ui.container.classList.remove("calc");var i=e.bottom-n.bottom,o=e.left-n.left;return"undefined"!=typeof window&&(window.innerHeight=0&&(i=e.top-n.top-r.height),window.innerWidth=0&&(o=e.right-n.right-r.width)),{left:o,top:i}}}]),t}(),y=Object.freeze({__proto__:null,Core:v,create:v}),w=function(){function t(){(0,o._)(this,t),(0,s._)(this,"picker",void 0),(0,s._)(this,"options",void 0),(0,s._)(this,"priority",0),(0,s._)(this,"dependencies",[])}return(0,A._)(t,[{key:"attach",value:function(t){var e=this,n=this.getName(),r=(0,l._)({},this.options);this.options=(0,l._)({},this.options,t.options[n]||{});var i=!0,o=!1,A=void 0;try{for(var s,a=this,c=Object.keys(r)[Symbol.iterator]();!(i=(s=c.next()).done);i=!0)!function(){var e=s.value;if(null!==r[e]&&"object"==typeof r[e]&&Object.keys(r[e]).length&&n in t.options&&e in t.options[n]){var i=(0,l._)({},t.options[n][e]);null!==i&&"object"==typeof i&&Object.keys(i).length&&Object.keys(i).every(function(t){return Object.keys(r[e]).includes(t)})&&(a.options[e]=(0,l._)({},r[e],i))}}()}catch(t){o=!0,A=t}finally{try{i||null==c.return||c.return()}finally{if(o)throw A}}if(this.picker=t,this.dependenciesNotFound()){var u=this.dependencies.filter(function(t){return!e.pluginsAsStringArray().includes(t)});return void console.warn("".concat(this.getName(),": required dependencies (").concat(u.join(", "),")."))}var h=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.add(h),this.onAttach()}},{key:"detach",value:function(){var t=this.camelCaseToKebab(this.getName());this.picker.ui.container.classList.remove(t),"function"==typeof this.onDetach&&this.onDetach()}},{key:"dependenciesNotFound",value:function(){var t=this;return this.dependencies.length&&!this.dependencies.every(function(e){return t.pluginsAsStringArray().includes(e)})}},{key:"pluginsAsStringArray",value:function(){return this.picker.options.plugins.map(function(t){return"function"==typeof t?(new t).getName():t})}},{key:"camelCaseToKebab",value:function(t){return t.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}}]),t}(),b=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"priority",1),(0,s._)((0,i._)(t),"binds",{onView:t.onView.bind((0,i._)(t))}),(0,s._)((0,i._)(t),"options",{minDate:null,maxDate:null,minDays:null,maxDays:null,selectForward:null,selectBackward:null,presets:!0,inseparable:!1,filter:null}),t}return(0,A._)(n,[{key:"getName",value:function(){return"LockPlugin"}},{key:"onAttach",value:function(){if(this.options.minDate&&(this.options.minDate=new p(this.options.minDate,this.picker.options.format,this.picker.options.lang)),this.options.maxDate&&(this.options.maxDate=new p(this.options.maxDate,this.picker.options.format,this.picker.options.lang),this.options.maxDate instanceof p&&this.picker.options.calendars>1&&this.picker.calendars[0].isSame(this.options.maxDate,"month"))){var t=this.picker.calendars[0].clone().subtract(1,"month");this.picker.gotoDate(t)}(this.options.minDays||this.options.maxDays||this.options.selectForward||this.options.selectBackward)&&!this.picker.options.plugins.includes("RangePlugin")&&console.warn("".concat(this.getName(),": options ").concat("minDays, maxDays, selectForward, selectBackward"," required RangePlugin.")),this.picker.on("view",this.binds.onView)}},{key:"onDetach",value:function(){this.picker.off("view",this.binds.onView)}},{key:"onView",value:function(t){var e=t.detail,n=e.view,r=e.target,i=e.date;if("CalendarHeader"===n&&(this.options.minDate instanceof p&&i.isSameOrBefore(this.options.minDate,"month")&&r.classList.add("no-previous-month"),this.options.maxDate instanceof p&&i.isSameOrAfter(this.options.maxDate,"month")&&r.classList.add("no-next-month")),"CalendarDay"===n){var o=this.picker.datePicked.length?this.picker.datePicked[0]:null;if(this.testFilter(i))return void r.classList.add("locked");if(this.options.inseparable){if(this.options.minDays){for(var A=i.clone().subtract(this.options.minDays-1,"day"),s=i.clone().add(this.options.minDays-1,"day"),a=!1,l=!1;A.isBefore(i,"day");){if(this.testFilter(A)){a=!0;break}A.add(1,"day")}for(;s.isAfter(i,"day");){if(this.testFilter(s)){l=!0;break}s.subtract(1,"day")}a&&l&&r.classList.add("not-available")}this.rangeIsNotAvailable(i,o)&&r.classList.add("not-available")}this.dateIsNotAvailable(i,o)&&r.classList.add("not-available")}if(this.options.presets&&"PresetPluginButton"===n){var c=new p(Number(r.dataset.start)),u=new p(Number(r.dataset.end)),h=u.diff(c,"day"),d=this.options.minDays&&hthis.options.maxDays;(d||f||this.lockMinDate(c)||this.lockMaxDate(c)||this.lockMinDate(u)||this.lockMaxDate(u)||this.rangeIsNotAvailable(c,u))&&r.setAttribute("disabled","disabled")}}},{key:"dateIsNotAvailable",value:function(t,e){return this.lockMinDate(t)||this.lockMaxDate(t)||this.lockMinDays(t,e)||this.lockMaxDays(t,e)||this.lockSelectForward(t)||this.lockSelectBackward(t)}},{key:"rangeIsNotAvailable",value:function(t,e){if(!t||!e)return!1;for(var n=(t.isSameOrBefore(e,"day")?t:e).clone(),r=(e.isSameOrAfter(t,"day")?e:t).clone();n.isSameOrBefore(r,"day");){if(this.testFilter(n))return!0;n.add(1,"day")}return!1}},{key:"lockMinDate",value:function(t){return this.options.minDate instanceof p&&t.isBefore(this.options.minDate,"day")}},{key:"lockMaxDate",value:function(t){return this.options.maxDate instanceof p&&t.isAfter(this.options.maxDate,"day")}},{key:"lockMinDays",value:function(t,e){if(this.options.minDays&&e){var n=e.clone().subtract(this.options.minDays-1,"day"),r=e.clone().add(this.options.minDays-1,"day");return t.isBetween(n,r)}return!1}},{key:"lockMaxDays",value:function(t,e){if(this.options.maxDays&&e){var n=e.clone().subtract(this.options.maxDays,"day"),r=e.clone().add(this.options.maxDays,"day");return!t.isBetween(n,r)}return!1}},{key:"lockSelectForward",value:function(t){if(1===this.picker.datePicked.length&&this.options.selectForward){var e=this.picker.datePicked[0].clone();return t.isBefore(e,"day")}return!1}},{key:"lockSelectBackward",value:function(t){if(1===this.picker.datePicked.length&&this.options.selectBackward){var e=this.picker.datePicked[0].clone();return t.isAfter(e,"day")}return!1}},{key:"testFilter",value:function(t){return"function"==typeof this.options.filter&&this.options.filter(t,this.picker.datePicked)}}]),n}(w),_=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"dependencies",["RangePlugin"]),(0,s._)((0,i._)(t),"binds",{onView:t.onView.bind((0,i._)(t)),onClick:t.onClick.bind((0,i._)(t))}),(0,s._)((0,i._)(t),"options",{customLabels:["Today","Yesterday","Last 7 Days","Last 30 Days","This Month","Last Month"],customPreset:{},position:"left"}),t}return(0,A._)(n,[{key:"getName",value:function(){return"PresetPlugin"}},{key:"onAttach",value:function(){var t=this;if(!Object.keys(this.options.customPreset).length){var e,n,r,i,o=new p,A=[[o.clone(),o.clone()],[o.clone().subtract(1,"day"),o.clone().subtract(1,"day")],[o.clone().subtract(6,"day"),o.clone()],[o.clone().subtract(29,"day"),o.clone()],((e=o.clone()).setDate(1),n=new Date(o.getFullYear(),o.getMonth()+1,0),[new p(e),new p(n)]),((r=o.clone()).setMonth(r.getMonth()-1),r.setDate(1),i=new Date(o.getFullYear(),o.getMonth(),0),[new p(r),new p(i)])];Object.values(this.options.customLabels).forEach(function(e,n){t.options.customPreset[e]=A[n]})}this.picker.on("view",this.binds.onView),this.picker.on("click",this.binds.onClick)}},{key:"onDetach",value:function(){this.picker.off("view",this.binds.onView),this.picker.off("click",this.binds.onClick)}},{key:"onView",value:function(t){var e=this,n=t.detail,r=n.view,i=n.target;if("Main"===r){var o=document.createElement("div");o.className="preset-plugin-container",Object.keys(this.options.customPreset).forEach(function(t){if(Object.prototype.hasOwnProperty.call(e.options.customPreset,t)){var n=e.options.customPreset[t],r=document.createElement("button");r.className="preset-button unit",r.innerHTML=t,r.dataset.start=n[0].getTime(),r.dataset.end=n[1].getTime(),o.appendChild(r),e.picker.trigger("view",{view:"PresetPluginButton",target:r})}}),i.appendChild(o),i.classList.add("preset-".concat(this.options.position)),this.picker.trigger("view",{view:"PresetPluginContainer",target:o})}}},{key:"onClick",value:function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest(".unit");if(!(n instanceof HTMLElement))return;if(this.isPresetButton(n)){var r=new p(Number(n.dataset.start)),i=new p(Number(n.dataset.end));this.picker.options.autoApply?(this.picker.setDateRange(r,i),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide()):(this.picker.datePicked=[r,i],this.picker.renderAll())}}}},{key:"isPresetButton",value:function(t){return t.classList.contains("preset-button")}}]),n}(w),B=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"tooltipElement",void 0),(0,s._)((0,i._)(t),"triggerElement",void 0),(0,s._)((0,i._)(t),"binds",{setStartDate:t.setStartDate.bind((0,i._)(t)),setEndDate:t.setEndDate.bind((0,i._)(t)),setDateRange:t.setDateRange.bind((0,i._)(t)),getStartDate:t.getStartDate.bind((0,i._)(t)),getEndDate:t.getEndDate.bind((0,i._)(t)),onView:t.onView.bind((0,i._)(t)),onShow:t.onShow.bind((0,i._)(t)),onMouseEnter:t.onMouseEnter.bind((0,i._)(t)),onMouseLeave:t.onMouseLeave.bind((0,i._)(t)),onClickCalendarDay:t.onClickCalendarDay.bind((0,i._)(t)),onClickApplyButton:t.onClickApplyButton.bind((0,i._)(t)),parseValues:t.parseValues.bind((0,i._)(t)),updateValues:t.updateValues.bind((0,i._)(t)),clear:t.clear.bind((0,i._)(t))}),(0,s._)((0,i._)(t),"options",{elementEnd:null,startDate:null,endDate:null,repick:!1,strict:!0,delimiter:" - ",tooltip:!0,tooltipNumber:function(t){return t},locale:{zero:"",one:"day",two:"",few:"",many:"",other:"days"},documentClick:t.hidePicker.bind((0,i._)(t))}),t}return(0,A._)(n,[{key:"getName",value:function(){return"RangePlugin"}},{key:"onAttach",value:function(){this.binds._setStartDate=this.picker.setStartDate,this.binds._setEndDate=this.picker.setEndDate,this.binds._setDateRange=this.picker.setDateRange,this.binds._getStartDate=this.picker.getStartDate,this.binds._getEndDate=this.picker.getEndDate,this.binds._parseValues=this.picker.parseValues,this.binds._updateValues=this.picker.updateValues,this.binds._clear=this.picker.clear,this.binds._onClickCalendarDay=this.picker.onClickCalendarDay,this.binds._onClickApplyButton=this.picker.onClickApplyButton,Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds.setStartDate},setEndDate:{configurable:!0,value:this.binds.setEndDate},setDateRange:{configurable:!0,value:this.binds.setDateRange},getStartDate:{configurable:!0,value:this.binds.getStartDate},getEndDate:{configurable:!0,value:this.binds.getEndDate},parseValues:{configurable:!0,value:this.binds.parseValues},updateValues:{configurable:!0,value:this.binds.updateValues},clear:{configurable:!0,value:this.binds.clear},onClickCalendarDay:{configurable:!0,value:this.binds.onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds.onClickApplyButton}}),this.options.elementEnd&&(this.options.elementEnd instanceof HTMLElement||(this.options.elementEnd=this.picker.options.doc.querySelector(this.options.elementEnd)),this.options.elementEnd instanceof HTMLInputElement&&(this.options.elementEnd.readOnly=this.picker.options.readonly),"function"==typeof this.picker.options.documentClick&&(document.removeEventListener("click",this.picker.options.documentClick,!0),"function"==typeof this.options.documentClick&&document.addEventListener("click",this.options.documentClick,!0)),this.options.elementEnd.addEventListener("click",this.picker.show.bind(this.picker))),this.options.repick=this.options.repick&&this.options.elementEnd instanceof HTMLElement,this.picker.options.date=null,this.picker.on("view",this.binds.onView),this.picker.on("show",this.binds.onShow),this.picker.on("mouseenter",this.binds.onMouseEnter,!0),this.picker.on("mouseleave",this.binds.onMouseLeave,!0),this.checkIntlPluralLocales()}},{key:"onDetach",value:function(){Object.defineProperties(this.picker,{setStartDate:{configurable:!0,value:this.binds._setStartDate},setEndDate:{configurable:!0,value:this.binds._setEndDate},setDateRange:{configurable:!0,value:this.binds._setDateRange},getStartDate:{configurable:!0,value:this.binds._getStartDate},getEndDate:{configurable:!0,value:this.binds._getEndDate},parseValues:{configurable:!0,value:this.binds._parseValues},updateValues:{configurable:!0,value:this.binds._updateValues},clear:{configurable:!0,value:this.binds._clear},onClickCalendarDay:{configurable:!0,value:this.binds._onClickCalendarDay},onClickApplyButton:{configurable:!0,value:this.binds._onClickApplyButton}}),this.picker.off("view",this.binds.onView),this.picker.off("show",this.binds.onShow),this.picker.off("mouseenter",this.binds.onMouseEnter,!0),this.picker.off("mouseleave",this.binds.onMouseLeave,!0)}},{key:"parseValues",value:function(){if(this.options.startDate||this.options.endDate)this.options.strict?this.options.startDate&&this.options.endDate?this.setDateRange(this.options.startDate,this.options.endDate):(this.options.startDate=null,this.options.endDate=null):(this.options.startDate&&this.setStartDate(this.options.startDate),this.options.endDate&&this.setEndDate(this.options.endDate));else if(this.options.elementEnd)this.options.strict?this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setDateRange(this.picker.options.element.value,this.options.elementEnd.value):(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.setStartDate(this.picker.options.element.value),this.options.elementEnd instanceof HTMLInputElement&&this.options.elementEnd.value.length&&this.setEndDate(this.options.elementEnd.value));else if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){var t=(0,u._)(this.picker.options.element.value.split(this.options.delimiter),2),e=t[0],n=t[1];this.options.strict?e&&n&&this.setDateRange(e,n):(e&&this.setStartDate(e),n&&this.setEndDate(n))}}},{key:"updateValues",value:function(){var t=this.picker.options.element,e=this.options.elementEnd,n=this.picker.getStartDate(),r=this.picker.getEndDate(),i=n instanceof Date?n.format(this.picker.options.format,this.picker.options.lang):"",o=r instanceof Date?r.format(this.picker.options.format,this.picker.options.lang):"";if(e)t instanceof HTMLInputElement?t.value=i:t instanceof HTMLElement&&(t.innerText=i),e instanceof HTMLInputElement?e.value=o:e instanceof HTMLElement&&(e.innerText=o);else{var A="".concat(i).concat(i||o?this.options.delimiter:"").concat(o);t instanceof HTMLInputElement?t.value=A:t instanceof HTMLElement&&(t.innerText=A)}}},{key:"clear",value:function(){this.options.startDate=null,this.options.endDate=null,this.picker.datePicked.length=0,this.updateValues(),this.picker.renderAll(),this.picker.trigger("clear")}},{key:"onShow",value:function(t){var e=t.detail.target;this.triggerElement=e,this.picker.options.scrollToDate&&this.getStartDate() instanceof Date&&this.picker.gotoDate(this.getStartDate()),this.initializeRepick()}},{key:"onView",value:function(t){var e=t.detail,n=e.view,r=e.target;if("Main"===n&&(this.tooltipElement=document.createElement("span"),this.tooltipElement.className="range-plugin-tooltip",r.appendChild(this.tooltipElement)),"CalendarDay"===n){var i=new p(r.dataset.time),o=this.picker.datePicked,A=o.length?this.picker.datePicked[0]:this.getStartDate(),s=o.length?this.picker.datePicked[1]:this.getEndDate();A&&A.isSame(i,"day")&&r.classList.add("start"),A&&s&&(s.isSame(i,"day")&&r.classList.add("end"),i.isBetween(A,s)&&r.classList.add("in-range"))}if("Footer"===n){var a=1===this.picker.datePicked.length&&!this.options.strict||2===this.picker.datePicked.length;r.querySelector(".apply-button").disabled=!a}}},{key:"hidePicker",value:function(t){var e=t.target,n=null;e.shadowRoot&&(n=(e=t.composedPath()[0]).getRootNode().host),this.picker.isShown()&&n!==this.picker.ui.wrapper&&e!==this.picker.options.element&&e!==this.options.elementEnd&&this.picker.hide()}},{key:"setStartDate",value:function(t){var e=new p(t,this.picker.options.format);this.options.startDate=e?e.clone():null,this.updateValues(),this.picker.renderAll()}},{key:"setEndDate",value:function(t){var e=new p(t,this.picker.options.format);this.options.endDate=e?e.clone():null,this.updateValues(),this.picker.renderAll()}},{key:"setDateRange",value:function(t,e){var n=new p(t,this.picker.options.format),r=new p(e,this.picker.options.format);this.options.startDate=n?n.clone():null,this.options.endDate=r?r.clone():null,this.updateValues(),this.picker.renderAll()}},{key:"getStartDate",value:function(){return this.options.startDate instanceof Date?this.options.startDate.clone():null}},{key:"getEndDate",value:function(){return this.options.endDate instanceof Date?this.options.endDate.clone():null}},{key:"onMouseEnter",value:function(t){var e=this,n=t.target;if(n instanceof HTMLElement){this.isContainer(n)&&this.initializeRepick();var r=n.closest(".unit");if(!(r instanceof HTMLElement))return;if(this.picker.isCalendarDay(r)){if(1!==this.picker.datePicked.length)return;var i=this.picker.datePicked[0].clone(),o=new p(r.dataset.time),A=!1;if(i.isAfter(o,"day")){var s=i.clone();i=o.clone(),o=s.clone(),A=!0}if((0,h._)(this.picker.ui.container.querySelectorAll(".day")).forEach(function(t){var n=new p(t.dataset.time),s=e.picker.Calendar.getCalendarDayView(n);n.isBetween(i,o)&&s.classList.add("in-range"),n.isSame(e.picker.datePicked[0],"day")&&(s.classList.add("start"),s.classList.toggle("flipped",A)),t===r&&(s.classList.add("end"),s.classList.toggle("flipped",A)),t.className=s.className}),this.options.tooltip){var a=this.options.tooltipNumber(o.diff(i,"day")+1);if(a>0){var l=new Intl.PluralRules(this.picker.options.lang).select(a),c="".concat(a," ").concat(this.options.locale[l]);this.showTooltip(r,c)}else this.hideTooltip()}}}}},{key:"onMouseLeave",value:function(t){if(this.isContainer(t.target)&&this.options.repick){var e=this.getStartDate(),n=this.getEndDate();e&&n&&(this.picker.datePicked.length=0,this.picker.renderAll())}}},{key:"onClickCalendarDay",value:function(t){if(this.picker.isCalendarDay(t)){2===this.picker.datePicked.length&&(this.picker.datePicked.length=0);var e=new p(t.dataset.time);if(this.picker.datePicked[this.picker.datePicked.length]=e,2===this.picker.datePicked.length&&this.picker.datePicked[0].isAfter(this.picker.datePicked[1])){var n=this.picker.datePicked[1].clone();this.picker.datePicked[1]=this.picker.datePicked[0].clone(),this.picker.datePicked[0]=n.clone()}1!==this.picker.datePicked.length&&this.picker.options.autoApply||this.picker.trigger("preselect",{start:this.picker.datePicked[0]instanceof Date?this.picker.datePicked[0].clone():null,end:this.picker.datePicked[1]instanceof Date?this.picker.datePicked[1].clone():null}),1===this.picker.datePicked.length&&(!this.options.strict&&this.picker.options.autoApply&&(this.picker.options.element===this.triggerElement&&this.setStartDate(this.picker.datePicked[0]),this.options.elementEnd===this.triggerElement&&this.setEndDate(this.picker.datePicked[0]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()})),this.picker.renderAll()),2===this.picker.datePicked.length&&(this.picker.options.autoApply?(this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide()):(this.hideTooltip(),this.picker.renderAll()))}}},{key:"onClickApplyButton",value:function(t){this.picker.isApplyButton(t)&&(1!==this.picker.datePicked.length||this.options.strict||(this.picker.options.element===this.triggerElement&&(this.options.endDate=null,this.setStartDate(this.picker.datePicked[0])),this.options.elementEnd===this.triggerElement&&(this.options.startDate=null,this.setEndDate(this.picker.datePicked[0]))),2===this.picker.datePicked.length&&this.setDateRange(this.picker.datePicked[0],this.picker.datePicked[1]),this.picker.trigger("select",{start:this.picker.getStartDate(),end:this.picker.getEndDate()}),this.picker.hide())}},{key:"showTooltip",value:function(t,e){this.tooltipElement.style.visibility="visible",this.tooltipElement.innerHTML=e;var n=this.picker.ui.container.getBoundingClientRect(),r=this.tooltipElement.getBoundingClientRect(),i=t.getBoundingClientRect(),o=i.top,A=i.left;o-=n.top,A-=n.left,o-=r.height,A-=r.width/2,A+=i.width/2,this.tooltipElement.style.top="".concat(o,"px"),this.tooltipElement.style.left="".concat(A,"px")}},{key:"hideTooltip",value:function(){this.tooltipElement.style.visibility="hidden"}},{key:"checkIntlPluralLocales",value:function(){if(this.options.tooltip){var t=(0,h._)(new Set([new Intl.PluralRules(this.picker.options.lang).select(0),new Intl.PluralRules(this.picker.options.lang).select(1),new Intl.PluralRules(this.picker.options.lang).select(2),new Intl.PluralRules(this.picker.options.lang).select(6),new Intl.PluralRules(this.picker.options.lang).select(18)])),e=Object.keys(this.options.locale);t.every(function(t){return e.includes(t)})||console.warn("".concat(this.getName(),": provide locales (").concat(t.join(", "),") for correct tooltip text."))}}},{key:"initializeRepick",value:function(){if(this.options.repick){var t=this.getStartDate(),e=this.getEndDate();e&&this.triggerElement===this.picker.options.element&&(this.picker.datePicked[0]=e),t&&this.triggerElement===this.options.elementEnd&&(this.picker.datePicked[0]=t)}}},{key:"isContainer",value:function(t){return t===this.picker.ui.container}}]),n}(w),x=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"options",{native:!1,seconds:!1,stepHours:1,stepMinutes:5,stepSeconds:5,format12:!1}),(0,s._)((0,i._)(t),"rangePlugin",void 0),(0,s._)((0,i._)(t),"timePicked",{input:null,start:null,end:null}),(0,s._)((0,i._)(t),"timePrePicked",{input:null,start:null,end:null}),(0,s._)((0,i._)(t),"binds",{getDate:t.getDate.bind((0,i._)(t)),getStartDate:t.getStartDate.bind((0,i._)(t)),getEndDate:t.getEndDate.bind((0,i._)(t)),onView:t.onView.bind((0,i._)(t)),onInput:t.onInput.bind((0,i._)(t)),onChange:t.onChange.bind((0,i._)(t)),onClick:t.onClick.bind((0,i._)(t)),setTime:t.setTime.bind((0,i._)(t)),setStartTime:t.setStartTime.bind((0,i._)(t)),setEndTime:t.setEndTime.bind((0,i._)(t))}),t}return(0,A._)(n,[{key:"getName",value:function(){return"TimePlugin"}},{key:"onAttach",value:function(){this.binds._getDate=this.picker.getDate,this.binds._getStartDate=this.picker.getStartDate,this.binds._getEndDate=this.picker.getEndDate,Object.defineProperties(this.picker,{getDate:{configurable:!0,value:this.binds.getDate},getStartDate:{configurable:!0,value:this.binds.getStartDate},getEndDate:{configurable:!0,value:this.binds.getEndDate},setTime:{configurable:!0,value:this.binds.setTime},setStartTime:{configurable:!0,value:this.binds.setStartTime},setEndTime:{configurable:!0,value:this.binds.setEndTime}}),this.rangePlugin=this.picker.PluginManager.getInstance("RangePlugin"),this.parseValues(),this.picker.on("view",this.binds.onView),this.picker.on("input",this.binds.onInput),this.picker.on("change",this.binds.onChange),this.picker.on("click",this.binds.onClick)}},{key:"onDetach",value:function(){delete this.picker.setTime,delete this.picker.setStartTime,delete this.picker.setEndTime,Object.defineProperties(this.picker,{getDate:{configurable:!0,value:this.binds._getDate},getStartDate:{configurable:!0,value:this.binds._getStartDate},getEndDate:{configurable:!0,value:this.binds._getEndDate}}),this.picker.off("view",this.binds.onView),this.picker.off("input",this.binds.onInput),this.picker.off("change",this.binds.onChange),this.picker.off("click",this.binds.onClick)}},{key:"onView",value:function(t){var e=t.detail,n=e.view,r=e.target;if("Main"===n){this.rangePlugin=this.picker.PluginManager.getInstance("RangePlugin");var i=document.createElement("div");if(i.className="time-plugin-container",this.rangePlugin){var o=this.getStartInput();i.appendChild(o),this.picker.trigger("view",{view:"TimePluginInput",target:o});var A=this.getEndInput();i.appendChild(A),this.picker.trigger("view",{view:"TimePluginInput",target:A})}else{var s=this.getSingleInput();i.appendChild(s),this.picker.trigger("view",{view:"TimePluginInput",target:s})}r.appendChild(i),this.picker.trigger("view",{view:"TimePluginContainer",target:i})}}},{key:"onInput",value:function(t){var e=t.target;if(e instanceof HTMLInputElement&&e.classList.contains("time-plugin-input")){var n=this.timePicked[e.name]||new p,r=(0,u._)(e.value.split(":"),2),i=r[0],o=r[1];n.setHours(Number(i)||0,Number(o)||0,0,0),this.picker.options.autoApply?(this.timePicked[e.name]=n,this.picker.updateValues()):this.timePrePicked[e.name]=n}}},{key:"onChange",value:function(t){var e=t.target;if(e instanceof HTMLSelectElement&&e.classList.contains("time-plugin-custom-input")){var n=(0,u._)(e.name.match(/(\w+)\[(\w+)\]/),3),r=n[1],i=n[2],o=Number(e.value),A=new p;switch(!this.picker.options.autoApply&&this.timePrePicked[r]instanceof Date?A=this.timePrePicked[r].clone():this.timePicked[r]instanceof Date&&(A=this.timePicked[r].clone()),i){case"HH":if(this.options.format12){var s=e.closest(".time-plugin-custom-block").querySelector('select[name="'.concat(r,'[period]"]')).value,a=this.handleFormat12(s,A,o);A.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),0)}else A.setHours(o,A.getMinutes(),A.getSeconds(),0);break;case"mm":A.setHours(A.getHours(),o,A.getSeconds(),0);break;case"ss":A.setHours(A.getHours(),A.getMinutes(),o,0);break;case"period":if(this.options.format12){var l=e.closest(".time-plugin-custom-block").querySelector('select[name="'.concat(r,'[HH]"]')).value,c=this.handleFormat12(e.value,A,Number(l));A.setHours(c.getHours(),c.getMinutes(),c.getSeconds(),0)}}if(this.picker.options.autoApply)this.timePicked[r]=A,this.picker.updateValues();else{this.timePrePicked[r]=A;var h=this.picker.ui.container.querySelector(".apply-button");if(this.rangePlugin){var d=this.rangePlugin.options,f=this.picker.datePicked,g=d.strict&&2===f.length||!d.strict&&f.length>0||!f.length&&d.strict&&d.startDate instanceof Date&&d.endDate instanceof Date||!f.length&&!d.strict&&(d.startDate instanceof Date||d.endDate instanceof Date);h.disabled=!g}else this.picker.datePicked.length&&(h.disabled=!1)}}}},{key:"onClick",value:function(t){var e=this,n=t.target;if(n instanceof HTMLElement){var r=n.closest(".unit");if(!(r instanceof HTMLElement))return;this.picker.isApplyButton(r)&&(Object.keys(this.timePicked).forEach(function(t){e.timePrePicked[t]instanceof Date&&(e.timePicked[t]=e.timePrePicked[t].clone())}),this.picker.updateValues(),this.timePrePicked={input:null,start:null,end:null}),this.picker.isCancelButton(r)&&(this.timePrePicked={input:null,start:null,end:null},this.picker.renderAll())}}},{key:"setTime",value:function(t){var e=this.handleTimeString(t);this.timePicked.input=e.clone(),this.picker.renderAll(),this.picker.updateValues()}},{key:"setStartTime",value:function(t){var e=this.handleTimeString(t);this.timePicked.start=e.clone(),this.picker.renderAll(),this.picker.updateValues()}},{key:"setEndTime",value:function(t){var e=this.handleTimeString(t);this.timePicked.end=e.clone(),this.picker.renderAll(),this.picker.updateValues()}},{key:"handleTimeString",value:function(t){var e=new p,n=(0,u._)(t.split(":").map(function(t){return Number(t)}),3),r=n[0],i=n[1],o=n[2],A=r&&!Number.isNaN(r)?r:0,s=i&&!Number.isNaN(i)?i:0,a=o&&!Number.isNaN(o)?o:0;return e.setHours(A,s,a,0),e}},{key:"getDate",value:function(){if(this.picker.options.date instanceof Date){var t=new p(this.picker.options.date,this.picker.options.format);if(this.timePicked.input instanceof Date){var e=this.timePicked.input;t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),0)}return t}return null}},{key:"getStartDate",value:function(){if(this.rangePlugin.options.startDate instanceof Date){var t=new p(this.rangePlugin.options.startDate,this.picker.options.format);if(this.timePicked.start instanceof Date){var e=this.timePicked.start;t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),0)}return t}return null}},{key:"getEndDate",value:function(){if(this.rangePlugin.options.endDate instanceof Date){var t=new p(this.rangePlugin.options.endDate,this.picker.options.format);if(this.timePicked.end instanceof Date){var e=this.timePicked.end;t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),0)}return t}return null}},{key:"getSingleInput",value:function(){return this.options.native?this.getNativeInput("input"):this.getCustomInput("input")}},{key:"getStartInput",value:function(){return this.options.native?this.getNativeInput("start"):this.getCustomInput("start")}},{key:"getEndInput",value:function(){return this.options.native?this.getNativeInput("end"):this.getCustomInput("end")}},{key:"getNativeInput",value:function(t){var e=document.createElement("input");e.type="time",e.name=t,e.className="time-plugin-input unit";var n=this.timePicked[t];if(n){var r="0".concat(n.getHours()).slice(-2),i="0".concat(n.getMinutes()).slice(-2);e.value="".concat(r,":").concat(i)}return e}},{key:"getCustomInput",value:function(t){var e=document.createElement("div");e.className="time-plugin-custom-block";var n=document.createElement("select");n.className="time-plugin-custom-input unit",n.name="".concat(t,"[HH]");var r=this.options.format12?1:0,i=this.options.format12?13:24,o=null;!this.picker.options.autoApply&&this.timePrePicked[t]instanceof Date?o=this.timePrePicked[t].clone():this.timePicked[t]instanceof Date&&(o=this.timePicked[t].clone());for(var A=r;A=12&&(e.selected=!0),f.appendChild(e)}),e.appendChild(f)}return e}},{key:"handleFormat12",value:function(t,e,n){var r=e.clone();switch(t){case"AM":12===n?r.setHours(0,r.getMinutes(),r.getSeconds(),0):r.setHours(n,r.getMinutes(),r.getSeconds(),0);break;case"PM":12!==n?r.setHours(n+12,r.getMinutes(),r.getSeconds(),0):r.setHours(n,r.getMinutes(),r.getSeconds(),0)}return r}},{key:"parseValues",value:function(){if(this.rangePlugin){if(this.rangePlugin.options.strict){if(this.rangePlugin.options.startDate&&this.rangePlugin.options.endDate){var t=new p(this.rangePlugin.options.startDate,this.picker.options.format),e=new p(this.rangePlugin.options.endDate,this.picker.options.format);this.timePicked.start=t.clone(),this.timePicked.end=e.clone()}}else{if(this.rangePlugin.options.startDate){var n=new p(this.rangePlugin.options.startDate,this.picker.options.format);this.timePicked.start=n.clone()}if(this.rangePlugin.options.endDate){var r=new p(this.rangePlugin.options.endDate,this.picker.options.format);this.timePicked.end=r.clone()}}if(this.rangePlugin.options.elementEnd){if(this.rangePlugin.options.strict){if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length&&this.rangePlugin.options.elementEnd instanceof HTMLInputElement&&this.rangePlugin.options.elementEnd.value.length){var i=new p(this.picker.options.element.value,this.picker.options.format),o=new p(this.rangePlugin.options.elementEnd.value,this.picker.options.format);this.timePicked.start=i.clone(),this.timePicked.end=o.clone()}}else{if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){var A=new p(this.picker.options.element.value,this.picker.options.format);this.timePicked.start=A.clone()}if(this.rangePlugin.options.elementEnd instanceof HTMLInputElement&&this.rangePlugin.options.elementEnd.value.length){var s=new p(this.rangePlugin.options.elementEnd.value,this.picker.options.format);this.timePicked.start=s.clone()}}}else if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){var a=(0,u._)(this.picker.options.element.value.split(this.rangePlugin.options.delimiter),2),l=a[0],c=a[1];if(this.rangePlugin.options.strict){if(l&&c){var h=new p(l,this.picker.options.format),d=new p(c,this.picker.options.format);this.timePicked.start=h.clone(),this.timePicked.end=d.clone()}}else{if(l){var f=new p(l,this.picker.options.format);this.timePicked.start=f.clone()}if(c){var g=new p(c,this.picker.options.format);this.timePicked.start=g.clone()}}}}else{if(this.picker.options.date){var m=new p(this.picker.options.date,this.picker.options.format);this.timePicked.input=m.clone()}if(this.picker.options.element instanceof HTMLInputElement&&this.picker.options.element.value.length){var v=new p(this.picker.options.element.value,this.picker.options.format);this.timePicked.input=v.clone()}}}}]),n}(w),C=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"docElement",null),(0,s._)((0,i._)(t),"rangePlugin",void 0),(0,s._)((0,i._)(t),"binds",{onView:t.onView.bind((0,i._)(t)),onKeydown:t.onKeydown.bind((0,i._)(t))}),(0,s._)((0,i._)(t),"options",{unitIndex:1,dayIndex:2}),t}return(0,A._)(n,[{key:"getName",value:function(){return"KbdPlugin"}},{key:"onAttach",value:function(){var t=this,e=this.picker.options.element,n=e.getBoundingClientRect();if(this.docElement=document.createElement("span"),this.docElement.style.position="absolute",this.docElement.style.top="".concat(e.offsetTop,"px"),this.docElement.style.left=e.offsetLeft+n.width-25+"px",this.docElement.attachShadow({mode:"open"}),this.options.html)this.docElement.shadowRoot.innerHTML=this.options.html;else{var r="\n \n\n \n ");this.docElement.shadowRoot.innerHTML=r}var i=this.docElement.shadowRoot.querySelector("button");i&&(i.addEventListener("click",function(e){e.preventDefault(),t.picker.show({target:t.picker.options.element})},{capture:!0}),i.addEventListener("keydown",function(e){"Escape"===e.code&&t.picker.hide()},{capture:!0})),this.picker.options.element.after(this.docElement),this.picker.on("view",this.binds.onView),this.picker.on("keydown",this.binds.onKeydown)}},{key:"onDetach",value:function(){this.docElement&&this.docElement.isConnected&&this.docElement.remove(),this.picker.off("view",this.binds.onView),this.picker.off("keydown",this.binds.onKeydown)}},{key:"onView",value:function(t){var e=this,n=t.detail,r=n.view,i=n.target;i&&"querySelector"in i&&("CalendarDay"!==r||["locked","not-available"].some(function(t){return i.classList.contains(t)})?(0,h._)(i.querySelectorAll(".unit:not(.day)")).forEach(function(t){return t.tabIndex=e.options.unitIndex}):i.tabIndex=this.options.dayIndex)}},{key:"onKeydown",value:function(t){switch(this.onMouseEnter(t),t.code){case"ArrowUp":case"ArrowDown":this.verticalMove(t);break;case"ArrowLeft":case"ArrowRight":this.horizontalMove(t);break;case"Enter":case"Space":this.handleEnter(t);break;case"Escape":this.picker.hide()}}},{key:"findAllowableDaySibling",value:function(t,e,n){var r=this,i=Array.from(t.querySelectorAll('.day[tabindex="'.concat(this.options.dayIndex,'"]'))),o=i.indexOf(e);return i.filter(function(t,e){return n(e,o)&&t.tabIndex===r.options.dayIndex})[0]}},{key:"changeMonth",value:function(t){var e=this,n={ArrowLeft:"previous",ArrowRight:"next"},r=this.picker.ui.container.querySelector(".".concat(n[t.code],'-button[tabindex="').concat(this.options.unitIndex,'"]'));r&&!r.parentElement.classList.contains("no-".concat(n[t.code],"-month"))&&(r.dispatchEvent(new Event("click",{bubbles:!0})),setTimeout(function(){var n=null;switch(t.code){case"ArrowLeft":var r=e.picker.ui.container.querySelectorAll('.day[tabindex="'.concat(e.options.dayIndex,'"]'));n=r[r.length-1];break;case"ArrowRight":n=e.picker.ui.container.querySelector('.day[tabindex="'.concat(e.options.dayIndex,'"]'))}n&&n.focus()}))}},{key:"verticalMove",value:function(t){var e=t.target;if(e.classList.contains("day")){t.preventDefault();var n=this.findAllowableDaySibling(this.picker.ui.container,e,function(e,n){return e===("ArrowUp"===t.code?n-7:n+7)});n&&n.focus()}}},{key:"horizontalMove",value:function(t){var e=t.target;if(e.classList.contains("day")){t.preventDefault();var n=this.findAllowableDaySibling(this.picker.ui.container,e,function(e,n){return e===("ArrowLeft"===t.code?n-1:n+1)});n?n.focus():this.changeMonth(t)}}},{key:"handleEnter",value:function(t){var e=this,n=t.target;n.classList.contains("day")&&(t.preventDefault(),n.dispatchEvent(new Event("click",{bubbles:!0})),setTimeout(function(){if(e.rangePlugin=e.picker.PluginManager.getInstance("RangePlugin"),e.rangePlugin||!e.picker.options.autoApply){var t=e.picker.ui.container.querySelector(".day.selected");t&&setTimeout(function(){t.focus()})}}))}},{key:"onMouseEnter",value:function(t){var e=this;t.target.classList.contains("day")&&setTimeout(function(){var t=e.picker.ui.shadowRoot.activeElement;t&&t.dispatchEvent(new Event("mouseenter",{bubbles:!0}))})}}]),n}(w),k=function(t){(0,a._)(n,t);var e=(0,f._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"rangePlugin",void 0),(0,s._)((0,i._)(t),"lockPlugin",void 0),(0,s._)((0,i._)(t),"priority",10),(0,s._)((0,i._)(t),"binds",{onView:t.onView.bind((0,i._)(t)),onColorScheme:t.onColorScheme.bind((0,i._)(t))}),(0,s._)((0,i._)(t),"options",{dropdown:{months:!1,years:!1,minYear:1950,maxYear:null},darkMode:!0,locale:{resetButton:''}}),(0,s._)((0,i._)(t),"matchMedia",void 0),t}return(0,A._)(n,[{key:"getName",value:function(){return"AmpPlugin"}},{key:"onAttach",value:function(){this.options.darkMode&&window&&"matchMedia"in window&&(this.matchMedia=window.matchMedia("(prefers-color-scheme: dark)"),this.matchMedia.matches&&(this.picker.ui.container.dataset.theme="dark"),this.matchMedia.addEventListener("change",this.binds.onColorScheme)),this.options.weekNumbers&&this.picker.ui.container.classList.add("week-numbers"),this.picker.on("view",this.binds.onView)}},{key:"onDetach",value:function(){this.options.darkMode&&window&&"matchMedia"in window&&this.matchMedia.removeEventListener("change",this.binds.onColorScheme),this.picker.ui.container.removeAttribute("data-theme"),this.picker.ui.container.classList.remove("week-numbers"),this.picker.off("view",this.binds.onView)}},{key:"onView",value:function(t){this.lockPlugin=this.picker.PluginManager.getInstance("LockPlugin"),this.rangePlugin=this.picker.PluginManager.getInstance("RangePlugin"),this.handleDropdown(t),this.handleResetButton(t),this.handleWeekNumbers(t)}},{key:"onColorScheme",value:function(t){var e=t.matches?"dark":"light";this.picker.ui.container.dataset.theme=e}},{key:"handleDropdown",value:function(t){var e=this,n=t.detail,r=n.view,i=n.target,o=n.date;if(n.index,"CalendarHeader"===r){var A=i.querySelector(".month-name");if(this.options.dropdown.months){A.childNodes[0].remove();var s=document.createElement("select");s.className="month-name--select month-name--dropdown";for(var a=0;a<12;a+=1){var l=document.createElement("option"),c=new p(new Date(o.getFullYear(),a,2,0,0,0)),u=new p(new Date(o.getFullYear(),a,1,0,0,0));l.value=String(a),l.text=c.toLocaleString(this.picker.options.lang,{month:"long"}),this.lockPlugin&&(l.disabled=this.lockPlugin.options.minDate&&u.isBefore(new p(this.lockPlugin.options.minDate),"month")||this.lockPlugin.options.maxDate&&u.isAfter(new p(this.lockPlugin.options.maxDate),"month")),l.selected=u.getMonth()===o.getMonth(),s.appendChild(l)}s.addEventListener("change",function(t){var n=t.target;e.picker.calendars[0].setDate(1),e.picker.calendars[0].setMonth(Number(n.value)),e.picker.renderAll()}),A.prepend(s)}if(this.options.dropdown.years){A.childNodes[1].remove();var h=document.createElement("select");h.className="month-name--select";var d=this.options.dropdown.minYear,f=this.options.dropdown.maxYear?this.options.dropdown.maxYear:(new Date).getFullYear();if(o.getFullYear()>f){var g=document.createElement("option");g.value=String(o.getFullYear()),g.text=String(o.getFullYear()),g.selected=!0,g.disabled=!0,h.appendChild(g)}for(var m=f;m>=d;m-=1){var v=document.createElement("option"),y=new p(new Date(m,0,1,0,0,0));v.value=String(m),v.text=String(m),this.lockPlugin&&(v.disabled=this.lockPlugin.options.minDate&&y.isBefore(new p(this.lockPlugin.options.minDate),"year")||this.lockPlugin.options.maxDate&&y.isAfter(new p(this.lockPlugin.options.maxDate),"year")),v.selected=o.getFullYear()===m,h.appendChild(v)}if(o.getFullYear()a){var c=l;l=a,a=c}}else if("l"===t||"landscape"===t){if(t="l",a>l){var c=l;l=a,a=c}}else throw"Invalid orientation: "+t;return{width:l,height:a,unit:e,k:s}},e.default=r.jsPDF},"./src/plugin/pagebreaks.js":/*!**********************************!*\ !*** ./src/plugin/pagebreaks.js ***! \**********************************/function(t,e,n){n.r(e),n(/*! core-js/modules/es.array.concat.js */"./node_modules/core-js/modules/es.array.concat.js"),n(/*! core-js/modules/es.array.slice.js */"./node_modules/core-js/modules/es.array.slice.js"),n(/*! core-js/modules/es.array.join.js */"./node_modules/core-js/modules/es.array.join.js"),n(/*! core-js/modules/web.dom-collections.for-each.js */"./node_modules/core-js/modules/web.dom-collections.for-each.js"),n(/*! core-js/modules/es.object.keys.js */"./node_modules/core-js/modules/es.object.keys.js");var r=n(/*! ../worker.js */"./src/worker.js"),i=n(/*! ../utils.js */"./src/utils.js"),o={toContainer:r.default.prototype.toContainer};r.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},r.default.prototype.toContainer=function(){return o.toContainer.call(this).then(function(){var t=this.prop.container,e=this.prop.pageSize.inner.px.height,n=[].concat(this.opt.pagebreak.mode),r={avoidAll:-1!==n.indexOf("avoid-all"),css:-1!==n.indexOf("css"),legacy:-1!==n.indexOf("legacy")},o={},A=this;["before","after","avoid"].forEach(function(e){var n=r.avoidAll&&"avoid"===e;o[e]=n?[]:[].concat(A.opt.pagebreak[e]||[]),o[e].length>0&&(o[e]=Array.prototype.slice.call(t.querySelectorAll(o[e].join(", "))))});var s=t.querySelectorAll(".html2pdf__page-break");s=Array.prototype.slice.call(s);var a=t.querySelectorAll("*");Array.prototype.forEach.call(a,function(t){var n={before:!1,after:r.legacy&&-1!==s.indexOf(t),avoid:r.avoidAll};if(r.css){var A=window.getComputedStyle(t),a=["always","page","left","right"];n={before:n.before||-1!==a.indexOf(A.breakBefore||A.pageBreakBefore),after:n.after||-1!==a.indexOf(A.breakAfter||A.pageBreakAfter),avoid:n.avoid||-1!==["avoid","avoid-page"].indexOf(A.breakInside||A.pageBreakInside)}}Object.keys(n).forEach(function(e){n[e]=n[e]||-1!==o[e].indexOf(t)});var l=t.getBoundingClientRect();if(n.avoid&&!n.before){var c=Math.floor(l.top/e),u=Math.floor(l.bottom/e),h=Math.abs(l.bottom-l.top)/e;u!==c&&h<=1&&(n.before=!0)}if(n.before){var d=(0,i.createElement)("div",{style:{display:"block",height:e-l.top%e+"px"}});t.parentNode.insertBefore(d,t)}if(n.after){var d=(0,i.createElement)("div",{style:{display:"block",height:e-l.bottom%e+"px"}});t.parentNode.insertBefore(d,t.nextSibling)}})})}},"./src/utils.js":/*!**********************!*\ !*** ./src/utils.js ***! \**********************/function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.r(e),n.d(e,{objType:function(){return i},createElement:function(){return o},cloneNode:function(){return A},unitConvert:function(){return s},toPx:function(){return a}}),n(/*! core-js/modules/es.number.constructor.js */"./node_modules/core-js/modules/es.number.constructor.js"),n(/*! core-js/modules/es.symbol.js */"./node_modules/core-js/modules/es.symbol.js"),n(/*! core-js/modules/es.symbol.description.js */"./node_modules/core-js/modules/es.symbol.description.js"),n(/*! core-js/modules/es.object.to-string.js */"./node_modules/core-js/modules/es.object.to-string.js"),n(/*! core-js/modules/es.symbol.iterator.js */"./node_modules/core-js/modules/es.symbol.iterator.js"),n(/*! core-js/modules/es.array.iterator.js */"./node_modules/core-js/modules/es.array.iterator.js"),n(/*! core-js/modules/es.string.iterator.js */"./node_modules/core-js/modules/es.string.iterator.js"),n(/*! core-js/modules/web.dom-collections.iterator.js */"./node_modules/core-js/modules/web.dom-collections.iterator.js");var i=function(t){var e=r(t);if("undefined"===e)return"undefined";if("string"===e||t instanceof String)return"string";if("number"===e||t instanceof Number)return"number";if("function"===e||t instanceof Function)return"function";if(t&&t.constructor===Array)return"array";if(t&&1===t.nodeType)return"element";if("object"===e)return"object";else return"unknown"},o=function(t,e){var n=document.createElement(t);if(e.className&&(n.className=e.className),e.innerHTML){n.innerHTML=e.innerHTML;for(var r=n.getElementsByTagName("script"),i=r.length;i-- >0;)r[i].parentNode.removeChild(r[i])}for(var o in e.style)n.style[o]=e.style[o];return n},A=function t(e,n){for(var r=3===e.nodeType?document.createTextNode(e.nodeValue):e.cloneNode(!1),i=e.firstChild;i;i=i.nextSibling)(!0===n||1!==i.nodeType||"SCRIPT"!==i.nodeName)&&r.appendChild(t(i,n));return 1===e.nodeType&&("CANVAS"===e.nodeName?(r.width=e.width,r.height=e.height,r.getContext("2d").drawImage(e,0,0)):("TEXTAREA"===e.nodeName||"SELECT"===e.nodeName)&&(r.value=e.value),r.addEventListener("load",function(){r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft},!0)),r},s=function(t,e){if("number"===i(t))return 72*t/96/e;var n={};for(var r in t)n[r]=72*t[r]/96/e;return n},a=function(t,e){return Math.floor(t*e/72*96)}},"./src/worker.js":/*!***********************!*\ !*** ./src/worker.js ***! \***********************/function(t,e,n){n.r(e),n(/*! core-js/modules/es.object.assign.js */"./node_modules/core-js/modules/es.object.assign.js"),n(/*! core-js/modules/es.array.map.js */"./node_modules/core-js/modules/es.array.map.js"),n(/*! core-js/modules/es.object.keys.js */"./node_modules/core-js/modules/es.object.keys.js"),n(/*! core-js/modules/es.array.concat.js */"./node_modules/core-js/modules/es.array.concat.js"),n(/*! core-js/modules/es.object.to-string.js */"./node_modules/core-js/modules/es.object.to-string.js"),n(/*! core-js/modules/es.regexp.to-string.js */"./node_modules/core-js/modules/es.regexp.to-string.js"),n(/*! core-js/modules/es.function.name.js */"./node_modules/core-js/modules/es.function.name.js"),n(/*! core-js/modules/web.dom-collections.for-each.js */"./node_modules/core-js/modules/web.dom-collections.for-each.js");var r=n(/*! jspdf */"jspdf"),i=n(/*! html2canvas */"html2canvas"),o=n(/*! ./utils.js */"./src/utils.js"),A=n(/*! es6-promise */"./node_modules/es6-promise/dist/es6-promise.js"),s=n.n(A)().Promise,a=function t(e){var n=Object.assign(t.convert(s.resolve()),JSON.parse(JSON.stringify(t.template))),r=t.convert(s.resolve(),n);return(r=r.setProgress(1,t,1,[t])).set(e)};a.prototype=Object.create(s.prototype),a.prototype.constructor=a,a.convert=function(t,e){return t.__proto__=e||a.prototype,t},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},a.prototype.from=function(t,e){return this.then(function(){switch(e=e||function(t){switch((0,o.objType)(t)){case"string":return"string";case"element":return t.nodeName.toLowerCase&&"canvas"===t.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(t)){case"string":return this.set({src:(0,o.createElement)("div",{innerHTML:t})});case"element":return this.set({src:t});case"canvas":return this.set({canvas:t});case"img":return this.set({img:t});default:return this.error("Unknown source type.")}})},a.prototype.to=function(t){switch(t){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},e={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};t.opacity=0;var n=(0,o.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,o.createElement)("div",{className:"html2pdf__overlay",style:t}),this.prop.container=(0,o.createElement)("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(n),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},a.prototype.toCanvas=function(){var t=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(t).then(function(){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,i(this.prop.container,t)}).then(function(t){(this.opt.html2canvas.onrendered||function(){})(t),this.prop.canvas=t,document.body.removeChild(this.prop.overlay)})},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var t=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=t})},a.prototype.toPdf=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var t=this.prop.canvas,e=this.opt,n=t.height,i=Math.floor(t.width*this.prop.pageSize.inner.ratio),o=Math.ceil(n/i),A=this.prop.pageSize.inner.height,s=document.createElement("canvas"),a=s.getContext("2d");s.width=t.width,s.height=i,this.prop.pdf=this.prop.pdf||new r.jsPDF(e.jsPDF);for(var l=0;l1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/array-includes.js ***! \**********************************************************/function(t,e,n){var r=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),i=n(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),o=n(/*! ../internals/to-absolute-index */"./node_modules/core-js/internals/to-absolute-index.js"),A=function(t){return function(e,n,A){var s,a=r(e),l=i(a.length),c=o(A,l);if(t&&n!=n){for(;l>c;)if((s=a[c++])!=s)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:A(!0),indexOf:A(!1)}},"./node_modules/core-js/internals/array-iteration.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/internals/array-iteration.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/function-bind-context */"./node_modules/core-js/internals/function-bind-context.js"),i=n(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),o=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),A=n(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),s=n(/*! ../internals/array-species-create */"./node_modules/core-js/internals/array-species-create.js"),a=[].push,l=function(t){var e=1==t,n=2==t,l=3==t,c=4==t,u=6==t,h=7==t,d=5==t||u;return function(f,p,g,m){for(var v,y,w=o(f),b=i(w),_=r(p,g,3),B=A(b.length),x=0,C=m||s,k=e?C(f,B):n||h?C(f,0):void 0;B>x;x++)if((d||x in b)&&(y=_(v=b[x],x,w),t)){if(e)k[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:a.call(k,v)}else switch(t){case 4:return!1;case 7:a.call(k,v)}}return u?-1:l||c?c:k}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":/*!****************************************************************************!*\ !*** ./node_modules/core-js/internals/array-method-has-species-support.js ***! \****************************************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),i=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),o=n(/*! ../internals/engine-v8-version */"./node_modules/core-js/internals/engine-v8-version.js"),A=i("species");t.exports=function(t){return o>=51||!r(function(){var e=[];return(e.constructor={})[A]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},"./node_modules/core-js/internals/array-method-is-strict.js":/*!******************************************************************!*\ !*** ./node_modules/core-js/internals/array-method-is-strict.js ***! \******************************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":/*!*********************************************************************!*\ !*** ./node_modules/core-js/internals/array-species-constructor.js ***! \*********************************************************************/function(t,e,n){var r=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),i=n(/*! ../internals/is-array */"./node_modules/core-js/internals/is-array.js"),o=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("species");t.exports=function(t){var e;return i(t)&&("function"==typeof(e=t.constructor)&&(e===Array||i(e.prototype))?e=void 0:r(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},"./node_modules/core-js/internals/array-species-create.js":/*!****************************************************************!*\ !*** ./node_modules/core-js/internals/array-species-create.js ***! \****************************************************************/function(t,e,n){var r=n(/*! ../internals/array-species-constructor */"./node_modules/core-js/internals/array-species-constructor.js");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"./node_modules/core-js/internals/classof-raw.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/classof-raw.js ***! \*******************************************************/function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":/*!***************************************************!*\ !*** ./node_modules/core-js/internals/classof.js ***! \***************************************************/function(t,e,n){var r=n(/*! ../internals/to-string-tag-support */"./node_modules/core-js/internals/to-string-tag-support.js"),i=n(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),o=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),A="Arguments"==i(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:A?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},"./node_modules/core-js/internals/copy-constructor-properties.js":/*!***********************************************************************!*\ !*** ./node_modules/core-js/internals/copy-constructor-properties.js ***! \***********************************************************************/function(t,e,n){var r=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),i=n(/*! ../internals/own-keys */"./node_modules/core-js/internals/own-keys.js"),o=n(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),A=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js");t.exports=function(t,e){for(var n=i(e),s=A.f,a=o.f,l=0;l"+s+""}},"./node_modules/core-js/internals/create-iterator-constructor.js":/*!***********************************************************************!*\ !*** ./node_modules/core-js/internals/create-iterator-constructor.js ***! \***********************************************************************/function(t,e,n){var r=n(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,i=n(/*! ../internals/object-create */"./node_modules/core-js/internals/object-create.js"),o=n(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),A=n(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),s=n(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),a=function(){return this};t.exports=function(t,e,n){var l=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),A(t,l,!1,!0),s[l]=a,t}},"./node_modules/core-js/internals/create-non-enumerable-property.js":/*!**************************************************************************!*\ !*** ./node_modules/core-js/internals/create-non-enumerable-property.js ***! \**************************************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=n(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"./node_modules/core-js/internals/create-property-descriptor.js":/*!**********************************************************************!*\ !*** ./node_modules/core-js/internals/create-property-descriptor.js ***! \**********************************************************************/function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"./node_modules/core-js/internals/create-property.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/internals/create-property.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/to-property-key */"./node_modules/core-js/internals/to-property-key.js"),i=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=n(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js");t.exports=function(t,e,n){var A=r(e);A in t?i.f(t,A,o(0,n)):t[A]=n}},"./node_modules/core-js/internals/define-iterator.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/internals/define-iterator.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/create-iterator-constructor */"./node_modules/core-js/internals/create-iterator-constructor.js"),o=n(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),A=n(/*! ../internals/object-set-prototype-of */"./node_modules/core-js/internals/object-set-prototype-of.js"),s=n(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),a=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),c=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),u=n(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),h=n(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),d=n(/*! ../internals/iterators-core */"./node_modules/core-js/internals/iterators-core.js"),f=d.IteratorPrototype,p=d.BUGGY_SAFARI_ITERATORS,g=c("iterator"),m="keys",v="values",y="entries",w=function(){return this};t.exports=function(t,e,n,c,d,b,_){i(n,e,c);var B,x,C,k=function(t){if(t===d&&L)return L;if(!p&&t in Q)return Q[t];switch(t){case m:case v:case y:return function(){return new n(this,t)}}return function(){return new n(this)}},F=e+" Iterator",E=!1,Q=t.prototype,S=Q[g]||Q["@@iterator"]||d&&Q[d],L=!p&&S||k(d),U="Array"==e&&Q.entries||S;if(U&&(B=o(U.call(new t)),f!==Object.prototype&&B.next&&(u||o(B)===f||(A?A(B,f):"function"!=typeof B[g]&&a(B,g,w)),s(B,F,!0,!0),u&&(h[F]=w))),d==v&&S&&S.name!==v&&(E=!0,L=function(){return S.call(this)}),(!u||_)&&Q[g]!==L&&a(Q,g,L),h[e]=L,d){if(x={values:k(v),keys:b?L:k(m),entries:k(y)},_)for(C in x)!p&&!E&&C in Q||l(Q,C,x[C]);else r({target:e,proto:!0,forced:p||E},x)}return x}},"./node_modules/core-js/internals/define-well-known-symbol.js":/*!********************************************************************!*\ !*** ./node_modules/core-js/internals/define-well-known-symbol.js ***! \********************************************************************/function(t,e,n){var r=n(/*! ../internals/path */"./node_modules/core-js/internals/path.js"),i=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=n(/*! ../internals/well-known-symbol-wrapped */"./node_modules/core-js/internals/well-known-symbol-wrapped.js"),A=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||A(e,t,{value:o.f(t)})}},"./node_modules/core-js/internals/descriptors.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/descriptors.js ***! \*******************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},"./node_modules/core-js/internals/document-create-element.js":/*!*******************************************************************!*\ !*** ./node_modules/core-js/internals/document-create-element.js ***! \*******************************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),o=r.document,A=i(o)&&i(o.createElement);t.exports=function(t){return A?o.createElement(t):{}}},"./node_modules/core-js/internals/dom-iterables.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/internals/dom-iterables.js ***! \*********************************************************/function(t){t.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}},"./node_modules/core-js/internals/engine-user-agent.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/engine-user-agent.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/get-built-in */"./node_modules/core-js/internals/get-built-in.js");t.exports=r("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/engine-v8-version.js ***! \*************************************************************/function(t,e,n){var r,i,o=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),A=n(/*! ../internals/engine-user-agent */"./node_modules/core-js/internals/engine-user-agent.js"),s=o.process,a=o.Deno,l=s&&s.versions||a&&a.version,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:A&&(!(r=A.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=A.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},"./node_modules/core-js/internals/enum-bug-keys.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/internals/enum-bug-keys.js ***! \*********************************************************/function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":/*!**************************************************!*\ !*** ./node_modules/core-js/internals/export.js ***! \**************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=n(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,A=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),a=n(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),l=n(/*! ../internals/copy-constructor-properties */"./node_modules/core-js/internals/copy-constructor-properties.js"),c=n(/*! ../internals/is-forced */"./node_modules/core-js/internals/is-forced.js");t.exports=function(t,e){var n,u,h,d,f,p=t.target,g=t.global,m=t.stat;if(n=g?r:m?r[p]||a(p,{}):(r[p]||{}).prototype)for(u in e){if(d=e[u],h=t.noTargetGet?(f=o(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,t.forced)&&void 0!==h){if((void 0===d?"undefined":(0,i._)(d))===(void 0===h?"undefined":(0,i._)(h)))continue;l(d,h)}(t.sham||h&&h.sham)&&A(d,"sham",!0),s(n,u,d,t)}}},"./node_modules/core-js/internals/fails.js":/*!*************************************************!*\ !*** ./node_modules/core-js/internals/fails.js ***! \*************************************************/function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":/*!*****************************************************************!*\ !*** ./node_modules/core-js/internals/function-bind-context.js ***! \*****************************************************************/function(t,e,n){var r=n(/*! ../internals/a-function */"./node_modules/core-js/internals/a-function.js");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":/*!********************************************************!*\ !*** ./node_modules/core-js/internals/get-built-in.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js");t.exports=function(t,e){var n;return arguments.length<2?"function"==typeof(n=r[t])?n:void 0:r[t]&&r[t][e]}},"./node_modules/core-js/internals/global.js":/*!**************************************************!*\ !*** ./node_modules/core-js/internals/global.js ***! \**************************************************/function(t){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof o&&o)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":/*!***********************************************!*\ !*** ./node_modules/core-js/internals/has.js ***! \***********************************************/function(t,e,n){var r=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},"./node_modules/core-js/internals/hidden-keys.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/hidden-keys.js ***! \*******************************************************/function(t){t.exports={}},"./node_modules/core-js/internals/html.js":/*!************************************************!*\ !*** ./node_modules/core-js/internals/html.js ***! \************************************************/function(t,e,n){var r=n(/*! ../internals/get-built-in */"./node_modules/core-js/internals/get-built-in.js");t.exports=r("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/ie8-dom-define.js ***! \**********************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=n(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js");t.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/indexed-object.js ***! \**********************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),i=n(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js"),o="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":/*!***************************************************************!*\ !*** ./node_modules/core-js/internals/inherit-if-required.js ***! \***************************************************************/function(t,e,n){var r=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),i=n(/*! ../internals/object-set-prototype-of */"./node_modules/core-js/internals/object-set-prototype-of.js");t.exports=function(t,e,n){var o,A;return i&&"function"==typeof(o=e.constructor)&&o!==n&&r(A=o.prototype)&&A!==n.prototype&&i(t,A),t}},"./node_modules/core-js/internals/inspect-source.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/inspect-source.js ***! \**********************************************************/function(t,e,n){var r=n(/*! ../internals/shared-store */"./node_modules/core-js/internals/shared-store.js"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},"./node_modules/core-js/internals/internal-state.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/internal-state.js ***! \**********************************************************/function(t,e,n){var r,i,o,A=n(/*! ../internals/native-weak-map */"./node_modules/core-js/internals/native-weak-map.js"),s=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),a=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),l=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),c=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),u=n(/*! ../internals/shared-store */"./node_modules/core-js/internals/shared-store.js"),h=n(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),d=n(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),f="Object already initialized",p=s.WeakMap;if(A||u.state){var g=u.state||(u.state=new p),m=g.get,v=g.has,y=g.set;r=function(t,e){if(v.call(g,t))throw TypeError(f);return e.facade=t,y.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return v.call(g,t)}}else{var w=h("state");d[w]=!0,r=function(t,e){if(c(t,w))throw TypeError(f);return e.facade=t,l(t,w,e),e},i=function(t){return c(t,w)?t[w]:{}},o=function(t){return c(t,w)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!a(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},"./node_modules/core-js/internals/is-array.js":/*!****************************************************!*\ !*** ./node_modules/core-js/internals/is-array.js ***! \****************************************************/function(t,e,n){var r=n(/*! ../internals/classof-raw */"./node_modules/core-js/internals/classof-raw.js");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"./node_modules/core-js/internals/is-forced.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/is-forced.js ***! \*****************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),i=/#|\.prototype\./,o=function(t,e){var n=s[A(t)];return n==l||n!=a&&("function"==typeof e?r(e):!!e)},A=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},a=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},"./node_modules/core-js/internals/is-object.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/is-object.js ***! \*****************************************************/function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},"./node_modules/core-js/internals/is-pure.js":/*!***************************************************!*\ !*** ./node_modules/core-js/internals/is-pure.js ***! \***************************************************/function(t){t.exports=!1},"./node_modules/core-js/internals/is-symbol.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/is-symbol.js ***! \*****************************************************/function(t,e,n){var r=n(/*! ../internals/get-built-in */"./node_modules/core-js/internals/get-built-in.js"),o=n(/*! ../internals/use-symbol-as-uid */"./node_modules/core-js/internals/use-symbol-as-uid.js");t.exports=o?function(t){return(void 0===t?"undefined":(0,i._)(t))=="symbol"}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t) instanceof e}},"./node_modules/core-js/internals/iterators-core.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/internals/iterators-core.js ***! \**********************************************************/function(t,e,n){var r,i,o,A=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),s=n(/*! ../internals/object-get-prototype-of */"./node_modules/core-js/internals/object-get-prototype-of.js"),a=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),l=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),c=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),u=n(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),h=c("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var f=void 0==r||A(function(){var t={};return r[h].call(t)!==t});f&&(r={}),u&&!f||l(r,h)||a(r,h,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},"./node_modules/core-js/internals/iterators.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/iterators.js ***! \*****************************************************/function(t){t.exports={}},"./node_modules/core-js/internals/native-symbol.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/internals/native-symbol.js ***! \*********************************************************/function(t,e,n){var r=n(/*! ../internals/engine-v8-version */"./node_modules/core-js/internals/engine-v8-version.js"),i=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var t=Symbol();return!String(t)||!(Object(t) instanceof Symbol)||!Symbol.sham&&r&&r<41})},"./node_modules/core-js/internals/native-weak-map.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/internals/native-weak-map.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/inspect-source */"./node_modules/core-js/internals/inspect-source.js"),o=r.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},"./node_modules/core-js/internals/object-assign.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/internals/object-assign.js ***! \*********************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=n(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js"),A=n(/*! ../internals/object-get-own-property-symbols */"./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=n(/*! ../internals/object-property-is-enumerable */"./node_modules/core-js/internals/object-property-is-enumerable.js"),a=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),l=n(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),c=Object.assign,u=Object.defineProperty;t.exports=!c||i(function(){if(r&&1!==c({b:1},c(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||o(c({},e)).join("")!=i})?function(t,e){for(var n=a(t),i=arguments.length,c=1,u=A.f,h=s.f;i>c;)for(var d,f=l(arguments[c++]),p=u?o(f).concat(u(f)):o(f),g=p.length,m=0;g>m;)d=p[m++],(!r||h.call(f,d))&&(n[d]=f[d]);return n}:c},"./node_modules/core-js/internals/object-create.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/internals/object-create.js ***! \*********************************************************/function(t,e,n){var r,i=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),o=n(/*! ../internals/object-define-properties */"./node_modules/core-js/internals/object-define-properties.js"),A=n(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js"),s=n(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),a=n(/*! ../internals/html */"./node_modules/core-js/internals/html.js"),l=n(/*! ../internals/document-create-element */"./node_modules/core-js/internals/document-create-element.js"),c=n(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),u="prototype",h="script",d=c("IE_PROTO"),f=function(){},p=function(t){return"<"+h+">"+t+""},g=function(t){t.write(p("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=l("iframe");if(e.style)return e.style.display="none",a.appendChild(e),e.src=String("java"+h+":"),(t=e.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F},v=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}v=document.domain&&r?g(r):m()||g(r);for(var t=A.length;t--;)delete v[u][A[t]];return v()};s[d]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(f[u]=i(t),n=new f,f[u]=null,n[d]=t):n=v(),void 0===e?n:o(n,e)}},"./node_modules/core-js/internals/object-define-properties.js":/*!********************************************************************!*\ !*** ./node_modules/core-js/internals/object-define-properties.js ***! \********************************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),o=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),A=n(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js");t.exports=r?Object.defineProperties:function(t,e){o(t);for(var n,r=A(e),s=r.length,a=0;s>a;)i.f(t,n=r[a++],e[n]);return t}},"./node_modules/core-js/internals/object-define-property.js":/*!******************************************************************!*\ !*** ./node_modules/core-js/internals/object-define-property.js ***! \******************************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),o=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),A=n(/*! ../internals/to-property-key */"./node_modules/core-js/internals/to-property-key.js"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=A(e),o(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":/*!******************************************************************************!*\ !*** ./node_modules/core-js/internals/object-get-own-property-descriptor.js ***! \******************************************************************************/function(t,e,n){var r=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),i=n(/*! ../internals/object-property-is-enumerable */"./node_modules/core-js/internals/object-property-is-enumerable.js"),o=n(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),A=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),s=n(/*! ../internals/to-property-key */"./node_modules/core-js/internals/to-property-key.js"),a=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),l=n(/*! ../internals/ie8-dom-define */"./node_modules/core-js/internals/ie8-dom-define.js"),c=Object.getOwnPropertyDescriptor;e.f=r?c:function(t,e){if(t=A(t),e=s(e),l)try{return c(t,e)}catch(t){}if(a(t,e))return o(!i.f.call(t,e),t[e])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":/*!**********************************************************************************!*\ !*** ./node_modules/core-js/internals/object-get-own-property-names-external.js ***! \**********************************************************************************/function(t,e,n){var r=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),i=n(/*! ../internals/object-get-own-property-names */"./node_modules/core-js/internals/object-get-own-property-names.js").f,o={}.toString,A="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return A.slice()}};t.exports.f=function(t){return A&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"./node_modules/core-js/internals/object-get-own-property-names.js":/*!*************************************************************************!*\ !*** ./node_modules/core-js/internals/object-get-own-property-names.js ***! \*************************************************************************/function(t,e,n){var r=n(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),i=n(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":/*!***************************************************************************!*\ !*** ./node_modules/core-js/internals/object-get-own-property-symbols.js ***! \***************************************************************************/function(t,e){e.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":/*!*******************************************************************!*\ !*** ./node_modules/core-js/internals/object-get-prototype-of.js ***! \*******************************************************************/function(t,e,n){var r=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),i=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),o=n(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),A=n(/*! ../internals/correct-prototype-getter */"./node_modules/core-js/internals/correct-prototype-getter.js"),s=o("IE_PROTO"),a=Object.prototype;t.exports=A?Object.getPrototypeOf:function(t){return r(t=i(t),s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"./node_modules/core-js/internals/object-keys-internal.js":/*!****************************************************************!*\ !*** ./node_modules/core-js/internals/object-keys-internal.js ***! \****************************************************************/function(t,e,n){var r=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),i=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),o=n(/*! ../internals/array-includes */"./node_modules/core-js/internals/array-includes.js").indexOf,A=n(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js");t.exports=function(t,e){var n,s=i(t),a=0,l=[];for(n in s)!r(A,n)&&r(s,n)&&l.push(n);for(;e.length>a;)r(s,n=e[a++])&&(~o(l,n)||l.push(n));return l}},"./node_modules/core-js/internals/object-keys.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/object-keys.js ***! \*******************************************************/function(t,e,n){var r=n(/*! ../internals/object-keys-internal */"./node_modules/core-js/internals/object-keys-internal.js"),i=n(/*! ../internals/enum-bug-keys */"./node_modules/core-js/internals/enum-bug-keys.js");t.exports=Object.keys||function(t){return r(t,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":/*!*************************************************************************!*\ !*** ./node_modules/core-js/internals/object-property-is-enumerable.js ***! \*************************************************************************/function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":/*!*******************************************************************!*\ !*** ./node_modules/core-js/internals/object-set-prototype-of.js ***! \*******************************************************************/function(t,e,n){var r=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),i=n(/*! ../internals/a-possible-prototype */"./node_modules/core-js/internals/a-possible-prototype.js");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":/*!************************************************************!*\ !*** ./node_modules/core-js/internals/object-to-string.js ***! \************************************************************/function(t,e,n){var r=n(/*! ../internals/to-string-tag-support */"./node_modules/core-js/internals/to-string-tag-support.js"),i=n(/*! ../internals/classof */"./node_modules/core-js/internals/classof.js");t.exports=r?({}).toString:function(){return"[object "+i(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":/*!*****************************************************************!*\ !*** ./node_modules/core-js/internals/ordinary-to-primitive.js ***! \*****************************************************************/function(t,e,n){var r=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js");t.exports=function(t,e){var n,i;if("string"===e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t))||"function"==typeof(n=t.valueOf)&&!r(i=n.call(t))||"string"!==e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":/*!****************************************************!*\ !*** ./node_modules/core-js/internals/own-keys.js ***! \****************************************************/function(t,e,n){var r=n(/*! ../internals/get-built-in */"./node_modules/core-js/internals/get-built-in.js"),i=n(/*! ../internals/object-get-own-property-names */"./node_modules/core-js/internals/object-get-own-property-names.js"),o=n(/*! ../internals/object-get-own-property-symbols */"./node_modules/core-js/internals/object-get-own-property-symbols.js"),A=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(A(t)),n=o.f;return n?e.concat(n(t)):e}},"./node_modules/core-js/internals/path.js":/*!************************************************!*\ !*** ./node_modules/core-js/internals/path.js ***! \************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js");t.exports=r},"./node_modules/core-js/internals/redefine.js":/*!****************************************************!*\ !*** ./node_modules/core-js/internals/redefine.js ***! \****************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),o=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),A=n(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),s=n(/*! ../internals/inspect-source */"./node_modules/core-js/internals/inspect-source.js"),a=n(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),l=a.get,c=a.enforce,u=String(String).split("String");(t.exports=function(t,e,n,s){var a,l=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;if("function"!=typeof n||("string"!=typeof e||o(n,"name")||i(n,"name",e),(a=c(n)).source||(a.source=u.join("string"==typeof e?e:""))),t===r){h?t[e]=n:A(e,n);return}l?!d&&t[e]&&(h=!0):delete t[e],h?t[e]=n:i(t,e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||s(this)})},"./node_modules/core-js/internals/regexp-flags.js":/*!********************************************************!*\ !*** ./node_modules/core-js/internals/regexp-flags.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"./node_modules/core-js/internals/require-object-coercible.js":/*!********************************************************************!*\ !*** ./node_modules/core-js/internals/require-object-coercible.js ***! \********************************************************************/function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"./node_modules/core-js/internals/set-global.js":/*!******************************************************!*\ !*** ./node_modules/core-js/internals/set-global.js ***! \******************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js");t.exports=function(t,e){try{Object.defineProperty(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"./node_modules/core-js/internals/set-to-string-tag.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/set-to-string-tag.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js").f,i=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),o=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"./node_modules/core-js/internals/shared-key.js":/*!******************************************************!*\ !*** ./node_modules/core-js/internals/shared-key.js ***! \******************************************************/function(t,e,n){var r=n(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),i=n(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},"./node_modules/core-js/internals/shared-store.js":/*!********************************************************!*\ !*** ./node_modules/core-js/internals/shared-store.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/set-global */"./node_modules/core-js/internals/set-global.js"),o="__core-js_shared__",A=r[o]||i(o,{});t.exports=A},"./node_modules/core-js/internals/shared.js":/*!**************************************************!*\ !*** ./node_modules/core-js/internals/shared.js ***! \**************************************************/function(t,e,n){var r=n(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),i=n(/*! ../internals/shared-store */"./node_modules/core-js/internals/shared-store.js");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":/*!**************************************************************!*\ !*** ./node_modules/core-js/internals/string-html-forced.js ***! \**************************************************************/function(t,e,n){var r=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js");t.exports=function(t){return r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":/*!************************************************************!*\ !*** ./node_modules/core-js/internals/string-multibyte.js ***! \************************************************************/function(t,e,n){var r=n(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),i=n(/*! ../internals/to-string */"./node_modules/core-js/internals/to-string.js"),o=n(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js"),A=function(t){return function(e,n){var A,s,a=i(o(e)),l=r(n),c=a.length;return l<0||l>=c?t?"":void 0:(A=a.charCodeAt(l))<55296||A>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):A:t?a.slice(l,l+2):(A-55296<<10)+(s-56320)+65536}};t.exports={codeAt:A(!1),charAt:A(!0)}},"./node_modules/core-js/internals/string-trim.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/string-trim.js ***! \*******************************************************/function(t,e,n){var r=n(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js"),i=n(/*! ../internals/to-string */"./node_modules/core-js/internals/to-string.js"),o="["+n(/*! ../internals/whitespaces */"./node_modules/core-js/internals/whitespaces.js")+"]",A=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),a=function(t){return function(e){var n=i(r(e));return 1&t&&(n=n.replace(A,"")),2&t&&(n=n.replace(s,"")),n}};t.exports={start:a(1),end:a(2),trim:a(3)}},"./node_modules/core-js/internals/to-absolute-index.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/to-absolute-index.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"./node_modules/core-js/internals/to-indexed-object.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/to-indexed-object.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),i=n(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return r(i(t))}},"./node_modules/core-js/internals/to-integer.js":/*!******************************************************!*\ !*** ./node_modules/core-js/internals/to-integer.js ***! \******************************************************/function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:e)(t)}},"./node_modules/core-js/internals/to-length.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/to-length.js ***! \*****************************************************/function(t,e,n){var r=n(/*! ../internals/to-integer */"./node_modules/core-js/internals/to-integer.js"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/to-object.js ***! \*****************************************************/function(t,e,n){var r=n(/*! ../internals/require-object-coercible */"./node_modules/core-js/internals/require-object-coercible.js");t.exports=function(t){return Object(r(t))}},"./node_modules/core-js/internals/to-primitive.js":/*!********************************************************!*\ !*** ./node_modules/core-js/internals/to-primitive.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),i=n(/*! ../internals/is-symbol */"./node_modules/core-js/internals/is-symbol.js"),o=n(/*! ../internals/ordinary-to-primitive */"./node_modules/core-js/internals/ordinary-to-primitive.js"),A=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toPrimitive");t.exports=function(t,e){if(!r(t)||i(t))return t;var n,s=t[A];if(void 0!==s){if(void 0===e&&(e="default"),!r(n=s.call(t,e))||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},"./node_modules/core-js/internals/to-property-key.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/internals/to-property-key.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/to-primitive */"./node_modules/core-js/internals/to-primitive.js"),i=n(/*! ../internals/is-symbol */"./node_modules/core-js/internals/is-symbol.js");t.exports=function(t){var e=r(t,"string");return i(e)?e:String(e)}},"./node_modules/core-js/internals/to-string-tag-support.js":/*!*****************************************************************!*\ !*** ./node_modules/core-js/internals/to-string-tag-support.js ***! \*****************************************************************/function(t,e,n){var r=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),i={};i[r]="z",t.exports="[object z]"===String(i)},"./node_modules/core-js/internals/to-string.js":/*!*****************************************************!*\ !*** ./node_modules/core-js/internals/to-string.js ***! \*****************************************************/function(t,e,n){var r=n(/*! ../internals/is-symbol */"./node_modules/core-js/internals/is-symbol.js");t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},"./node_modules/core-js/internals/uid.js":/*!***********************************************!*\ !*** ./node_modules/core-js/internals/uid.js ***! \***********************************************/function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/use-symbol-as-uid.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/native-symbol */"./node_modules/core-js/internals/native-symbol.js");t.exports=r&&!Symbol.sham&&"symbol"==(0,i._)(Symbol.iterator)},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":/*!*********************************************************************!*\ !*** ./node_modules/core-js/internals/well-known-symbol-wrapped.js ***! \*********************************************************************/function(t,e,n){var r=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js");e.f=r},"./node_modules/core-js/internals/well-known-symbol.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/internals/well-known-symbol.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),o=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),A=n(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),s=n(/*! ../internals/native-symbol */"./node_modules/core-js/internals/native-symbol.js"),a=n(/*! ../internals/use-symbol-as-uid */"./node_modules/core-js/internals/use-symbol-as-uid.js"),l=i("wks"),c=r.Symbol,u=a?c:c&&c.withoutSetter||A;t.exports=function(t){return o(l,t)&&(s||"string"==typeof l[t])||(s&&o(c,t)?l[t]=c[t]:l[t]=u("Symbol."+t)),l[t]}},"./node_modules/core-js/internals/whitespaces.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/internals/whitespaces.js ***! \*******************************************************/function(t){t.exports=" \n\v\f\r                 \u2028\u2029\uFEFF"},"./node_modules/core-js/modules/es.array.concat.js":/*!*********************************************************!*\ !*** ./node_modules/core-js/modules/es.array.concat.js ***! \*********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),o=n(/*! ../internals/is-array */"./node_modules/core-js/internals/is-array.js"),A=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),s=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),a=n(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),l=n(/*! ../internals/create-property */"./node_modules/core-js/internals/create-property.js"),c=n(/*! ../internals/array-species-create */"./node_modules/core-js/internals/array-species-create.js"),u=n(/*! ../internals/array-method-has-species-support */"./node_modules/core-js/internals/array-method-has-species-support.js"),h=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),d=n(/*! ../internals/engine-v8-version */"./node_modules/core-js/internals/engine-v8-version.js"),f=h("isConcatSpreadable"),p="Maximum allowed index exceeded",g=d>=51||!i(function(){var t=[];return t[f]=!1,t.concat()[0]!==t}),m=u("concat"),v=function(t){if(!A(t))return!1;var e=t[f];return void 0!==e?!!e:o(t)};r({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,n,r,i,o,A=s(this),u=c(A,0),h=0;for(e=-1,r=arguments.length;e9007199254740991)throw TypeError(p);for(n=0;n=9007199254740991)throw TypeError(p);l(u,h++,o)}return u.length=h,u}})},"./node_modules/core-js/modules/es.array.iterator.js":/*!***********************************************************!*\ !*** ./node_modules/core-js/modules/es.array.iterator.js ***! \***********************************************************/function(t,e,n){var r=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),i=n(/*! ../internals/add-to-unscopables */"./node_modules/core-js/internals/add-to-unscopables.js"),o=n(/*! ../internals/iterators */"./node_modules/core-js/internals/iterators.js"),A=n(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),s=n(/*! ../internals/define-iterator */"./node_modules/core-js/internals/define-iterator.js"),a="Array Iterator",l=A.set,c=A.getterFor(a);t.exports=s(Array,"Array",function(t,e){l(this,{type:a,target:r(t),index:0,kind:e})},function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"./node_modules/core-js/modules/es.array.join.js":/*!*******************************************************!*\ !*** ./node_modules/core-js/modules/es.array.join.js ***! \*******************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/indexed-object */"./node_modules/core-js/internals/indexed-object.js"),o=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),A=n(/*! ../internals/array-method-is-strict */"./node_modules/core-js/internals/array-method-is-strict.js"),s=[].join,a=A("join",",");r({target:"Array",proto:!0,forced:i!=Object||!a},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},"./node_modules/core-js/modules/es.array.map.js":/*!******************************************************!*\ !*** ./node_modules/core-js/modules/es.array.map.js ***! \******************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/array-iteration */"./node_modules/core-js/internals/array-iteration.js").map;r({target:"Array",proto:!0,forced:!n(/*! ../internals/array-method-has-species-support */"./node_modules/core-js/internals/array-method-has-species-support.js")("map")},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":/*!********************************************************!*\ !*** ./node_modules/core-js/modules/es.array.slice.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),o=n(/*! ../internals/is-array */"./node_modules/core-js/internals/is-array.js"),A=n(/*! ../internals/to-absolute-index */"./node_modules/core-js/internals/to-absolute-index.js"),s=n(/*! ../internals/to-length */"./node_modules/core-js/internals/to-length.js"),a=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),l=n(/*! ../internals/create-property */"./node_modules/core-js/internals/create-property.js"),c=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),u=n(/*! ../internals/array-method-has-species-support */"./node_modules/core-js/internals/array-method-has-species-support.js")("slice"),h=c("species"),d=[].slice,f=Math.max;r({target:"Array",proto:!0,forced:!u},{slice:function(t,e){var n,r,c,u=a(this),p=s(u.length),g=A(t,p),m=A(void 0===e?p:e,p);if(o(u)&&("function"==typeof(n=u.constructor)&&(n===Array||o(n.prototype))?n=void 0:i(n)&&null===(n=n[h])&&(n=void 0),n===Array||void 0===n))return d.call(u,g,m);for(c=0,r=new(void 0===n?Array:n)(f(m-g,0));g2){if(43===(e=(l=m(l)).charCodeAt(0))||45===e){if(88===(n=l.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(l.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+l}for(s=0,A=(o=l.slice(2)).length;si)return NaN;return parseInt(o,r)}}return+l};if(o(v,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var B,x=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof x&&(b?h(function(){w.valueOf.call(n)}):a(n)!=v)?l(new y(_(e)),n,x):_(e)},C=r?f(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),k=0;C.length>k;k++)s(y,B=C[k])&&!s(x,B)&&g(x,B,p(y,B));x.prototype=w,w.constructor=x,A(i,v,x)}},"./node_modules/core-js/modules/es.object.assign.js":/*!**********************************************************!*\ !*** ./node_modules/core-js/modules/es.object.assign.js ***! \**********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/object-assign */"./node_modules/core-js/internals/object-assign.js");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},"./node_modules/core-js/modules/es.object.keys.js":/*!********************************************************!*\ !*** ./node_modules/core-js/modules/es.object.keys.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),o=n(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js");r({target:"Object",stat:!0,forced:n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js")(function(){o(1)})},{keys:function(t){return o(i(t))}})},"./node_modules/core-js/modules/es.object.to-string.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/modules/es.object.to-string.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/to-string-tag-support */"./node_modules/core-js/internals/to-string-tag-support.js"),i=n(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),o=n(/*! ../internals/object-to-string */"./node_modules/core-js/internals/object-to-string.js");r||i(Object.prototype,"toString",o,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":/*!*************************************************************!*\ !*** ./node_modules/core-js/modules/es.regexp.to-string.js ***! \*************************************************************/function(t,e,n){var r=n(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),i=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),o=n(/*! ../internals/to-string */"./node_modules/core-js/internals/to-string.js"),A=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),s=n(/*! ../internals/regexp-flags */"./node_modules/core-js/internals/regexp-flags.js"),a="toString",l=RegExp.prototype,c=l[a],u=A(function(){return"/a/b"!=c.call({source:"a",flags:"b"})}),h=c.name!=a;(u||h)&&r(RegExp.prototype,a,function(){var t=i(this),e=o(t.source),n=t.flags;return"/"+e+"/"+o(void 0===n&&t instanceof RegExp&&!("flags"in l)?s.call(t):n)},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":/*!************************************************************!*\ !*** ./node_modules/core-js/modules/es.string.iterator.js ***! \************************************************************/function(t,e,n){var r=n(/*! ../internals/string-multibyte */"./node_modules/core-js/internals/string-multibyte.js").charAt,i=n(/*! ../internals/to-string */"./node_modules/core-js/internals/to-string.js"),o=n(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),A=n(/*! ../internals/define-iterator */"./node_modules/core-js/internals/define-iterator.js"),s="String Iterator",a=o.set,l=o.getterFor(s);A(String,"String",function(t){a(this,{type:s,string:i(t),index:0})},function(){var t,e=l(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":/*!********************************************************!*\ !*** ./node_modules/core-js/modules/es.string.link.js ***! \********************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/create-html */"./node_modules/core-js/internals/create-html.js");r({target:"String",proto:!0,forced:n(/*! ../internals/string-html-forced */"./node_modules/core-js/internals/string-html-forced.js")("link")},{link:function(t){return i(this,"a","href",t)}})},"./node_modules/core-js/modules/es.symbol.description.js":/*!***************************************************************!*\ !*** ./node_modules/core-js/modules/es.symbol.description.js ***! \***************************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),o=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),A=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),s=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),a=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js").f,l=n(/*! ../internals/copy-constructor-properties */"./node_modules/core-js/internals/copy-constructor-properties.js"),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var u={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new c(t):void 0===t?c():c(t);return""===t&&(u[e]=!0),e};l(h,c);var d=h.prototype=c.prototype;d.constructor=h;var f=d.toString,p="Symbol(test)"==String(c("test")),g=/^Symbol\((.*)\)[^)]+$/;a(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=f.call(t);if(A(u,t))return"";var n=p?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:h})}},"./node_modules/core-js/modules/es.symbol.iterator.js":/*!************************************************************!*\ !*** ./node_modules/core-js/modules/es.symbol.iterator.js ***! \************************************************************/function(t,e,n){n(/*! ../internals/define-well-known-symbol */"./node_modules/core-js/internals/define-well-known-symbol.js")("iterator")},"./node_modules/core-js/modules/es.symbol.js":/*!***************************************************!*\ !*** ./node_modules/core-js/modules/es.symbol.js ***! \***************************************************/function(t,e,n){var r=n(/*! ../internals/export */"./node_modules/core-js/internals/export.js"),i=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),o=n(/*! ../internals/get-built-in */"./node_modules/core-js/internals/get-built-in.js"),A=n(/*! ../internals/is-pure */"./node_modules/core-js/internals/is-pure.js"),s=n(/*! ../internals/descriptors */"./node_modules/core-js/internals/descriptors.js"),a=n(/*! ../internals/native-symbol */"./node_modules/core-js/internals/native-symbol.js"),l=n(/*! ../internals/fails */"./node_modules/core-js/internals/fails.js"),c=n(/*! ../internals/has */"./node_modules/core-js/internals/has.js"),u=n(/*! ../internals/is-array */"./node_modules/core-js/internals/is-array.js"),h=n(/*! ../internals/is-object */"./node_modules/core-js/internals/is-object.js"),d=n(/*! ../internals/is-symbol */"./node_modules/core-js/internals/is-symbol.js"),f=n(/*! ../internals/an-object */"./node_modules/core-js/internals/an-object.js"),p=n(/*! ../internals/to-object */"./node_modules/core-js/internals/to-object.js"),g=n(/*! ../internals/to-indexed-object */"./node_modules/core-js/internals/to-indexed-object.js"),m=n(/*! ../internals/to-property-key */"./node_modules/core-js/internals/to-property-key.js"),v=n(/*! ../internals/to-string */"./node_modules/core-js/internals/to-string.js"),y=n(/*! ../internals/create-property-descriptor */"./node_modules/core-js/internals/create-property-descriptor.js"),w=n(/*! ../internals/object-create */"./node_modules/core-js/internals/object-create.js"),b=n(/*! ../internals/object-keys */"./node_modules/core-js/internals/object-keys.js"),_=n(/*! ../internals/object-get-own-property-names */"./node_modules/core-js/internals/object-get-own-property-names.js"),B=n(/*! ../internals/object-get-own-property-names-external */"./node_modules/core-js/internals/object-get-own-property-names-external.js"),x=n(/*! ../internals/object-get-own-property-symbols */"./node_modules/core-js/internals/object-get-own-property-symbols.js"),C=n(/*! ../internals/object-get-own-property-descriptor */"./node_modules/core-js/internals/object-get-own-property-descriptor.js"),k=n(/*! ../internals/object-define-property */"./node_modules/core-js/internals/object-define-property.js"),F=n(/*! ../internals/object-property-is-enumerable */"./node_modules/core-js/internals/object-property-is-enumerable.js"),E=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),Q=n(/*! ../internals/redefine */"./node_modules/core-js/internals/redefine.js"),S=n(/*! ../internals/shared */"./node_modules/core-js/internals/shared.js"),L=n(/*! ../internals/shared-key */"./node_modules/core-js/internals/shared-key.js"),U=n(/*! ../internals/hidden-keys */"./node_modules/core-js/internals/hidden-keys.js"),I=n(/*! ../internals/uid */"./node_modules/core-js/internals/uid.js"),j=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),M=n(/*! ../internals/well-known-symbol-wrapped */"./node_modules/core-js/internals/well-known-symbol-wrapped.js"),D=n(/*! ../internals/define-well-known-symbol */"./node_modules/core-js/internals/define-well-known-symbol.js"),T=n(/*! ../internals/set-to-string-tag */"./node_modules/core-js/internals/set-to-string-tag.js"),N=n(/*! ../internals/internal-state */"./node_modules/core-js/internals/internal-state.js"),P=n(/*! ../internals/array-iteration */"./node_modules/core-js/internals/array-iteration.js").forEach,O=L("hidden"),H="Symbol",R="prototype",K=j("toPrimitive"),V=N.set,z=N.getterFor(H),G=Object[R],q=i.Symbol,W=o("JSON","stringify"),Y=C.f,X=k.f,J=B.f,Z=F.f,$=S("symbols"),tt=S("op-symbols"),te=S("string-to-symbol-registry"),tn=S("symbol-to-string-registry"),tr=S("wks"),ti=i.QObject,to=!ti||!ti[R]||!ti[R].findChild,tA=s&&l(function(){return 7!=w(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=Y(G,e);r&&delete G[e],X(t,e,n),r&&t!==G&&X(G,e,r)}:X,ts=function(t,e){var n=$[t]=w(q[R]);return V(n,{type:H,tag:t,description:e}),s||(n.description=e),n},ta=function(t,e,n){t===G&&ta(tt,e,n),f(t);var r=m(e);return(f(n),c($,r))?(n.enumerable?(c(t,O)&&t[O][r]&&(t[O][r]=!1),n=w(n,{enumerable:y(0,!1)})):(c(t,O)||X(t,O,y(1,{})),t[O][r]=!0),tA(t,r,n)):X(t,r,n)},tl=function(t,e){f(t);var n=g(e);return P(b(n).concat(td(n)),function(e){(!s||tc.call(n,e))&&ta(t,e,n[e])}),t},tc=function(t){var e=m(t),n=Z.call(this,e);return(!(this===G&&c($,e))||!!c(tt,e))&&(!(n||!c(this,e)||!c($,e)||c(this,O)&&this[O][e])||n)},tu=function(t,e){var n=g(t),r=m(e);if(!(n===G&&c($,r))||c(tt,r)){var i=Y(n,r);return i&&c($,r)&&!(c(n,O)&&n[O][r])&&(i.enumerable=!0),i}},th=function(t){var e=J(g(t)),n=[];return P(e,function(t){c($,t)||c(U,t)||n.push(t)}),n},td=function(t){var e=t===G,n=J(e?tt:g(t)),r=[];return P(n,function(t){c($,t)&&(!e||c(G,t))&&r.push($[t])}),r};a||(Q((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=I(t),n=function(t){this===G&&n.call(tt,t),c(this,O)&&c(this[O],e)&&(this[O][e]=!1),tA(this,e,y(1,t))};return s&&to&&tA(G,e,{configurable:!0,set:n}),ts(e,t)})[R],"toString",function(){return z(this).tag}),Q(q,"withoutSetter",function(t){return ts(I(t),t)}),F.f=tc,k.f=ta,C.f=tu,_.f=B.f=th,x.f=td,M.f=function(t){return ts(j(t),t)},s&&(X(q[R],"description",{configurable:!0,get:function(){return z(this).description}}),A||Q(G,"propertyIsEnumerable",tc,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:q}),P(b(tr),function(t){D(t)}),r({target:H,stat:!0,forced:!a},{for:function(t){var e=v(t);if(c(te,e))return te[e];var n=q(e);return te[e]=n,tn[n]=e,n},keyFor:function(t){if(!d(t))throw TypeError(t+" is not a symbol");if(c(tn,t))return tn[t]},useSetter:function(){to=!0},useSimple:function(){to=!1}}),r({target:"Object",stat:!0,forced:!a,sham:!s},{create:function(t,e){return void 0===e?w(t):tl(w(t),e)},defineProperty:ta,defineProperties:tl,getOwnPropertyDescriptor:tu}),r({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:th,getOwnPropertySymbols:td}),r({target:"Object",stat:!0,forced:l(function(){x.f(1)})},{getOwnPropertySymbols:function(t){return x.f(p(t))}}),W&&r({target:"JSON",stat:!0,forced:!a||l(function(){var t=q();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))})},{stringify:function(t,e,n){for(var r,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=e,!(!h(e)&&void 0===t||d(t)))return u(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!d(e))return e}),i[1]=e,W.apply(null,i)}}),q[R][K]||E(q[R],K,q[R].valueOf),T(q,H),U[O]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":/*!**********************************************************************!*\ !*** ./node_modules/core-js/modules/web.dom-collections.for-each.js ***! \**********************************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/dom-iterables */"./node_modules/core-js/internals/dom-iterables.js"),o=n(/*! ../internals/array-for-each */"./node_modules/core-js/internals/array-for-each.js"),A=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js");for(var s in i){var a=r[s],l=a&&a.prototype;if(l&&l.forEach!==o)try{A(l,"forEach",o)}catch(t){l.forEach=o}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":/*!**********************************************************************!*\ !*** ./node_modules/core-js/modules/web.dom-collections.iterator.js ***! \**********************************************************************/function(t,e,n){var r=n(/*! ../internals/global */"./node_modules/core-js/internals/global.js"),i=n(/*! ../internals/dom-iterables */"./node_modules/core-js/internals/dom-iterables.js"),o=n(/*! ../modules/es.array.iterator */"./node_modules/core-js/modules/es.array.iterator.js"),A=n(/*! ../internals/create-non-enumerable-property */"./node_modules/core-js/internals/create-non-enumerable-property.js"),s=n(/*! ../internals/well-known-symbol */"./node_modules/core-js/internals/well-known-symbol.js"),a=s("iterator"),l=s("toStringTag"),c=o.values;for(var u in i){var h=r[u],d=h&&h.prototype;if(d){if(d[a]!==c)try{A(d,a,c)}catch(t){d[a]=c}if(d[l]||A(d,l,u),i[u]){for(var f in o)if(d[f]!==o[f])try{A(d,f,o[f])}catch(t){d[f]=o[f]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":/*!******************************************************!*\ !*** ./node_modules/es6-promise/dist/es6-promise.js ***! \******************************************************/function(t){var e;e=function(){function t(t){return"function"==typeof t}var e,n,r,s,a=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},l=0,c=void 0,u=void 0,h=function(t,e){y[l]=t,y[l+1]=e,2===(l+=2)&&(u?u(w):b())},d="undefined"!=typeof window?window:void 0,f=d||{},p=f.MutationObserver||f.WebKitMutationObserver,g="undefined"==typeof self&&void 0!==A&&"[object process]"===({}).toString.call(A),m="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function v(){var t=setTimeout;return function(){return t(w,1)}}var y=Array(1e3);function w(){for(var t=0;t1)for(var n=1;n, https://github.com/MrRio/jsPDF * 2015-2021 yWorks GmbH, http://www.yworks.com * 2015-2021 Lukas Holländer , https://github.com/HackbrettXXX * 2016-2018 Aras Abbasi * 2010 Aaron Spike, https://github.com/acspike * 2012 Willow Systems Corporation, https://github.com/willowsystems * 2012 Pablo Hess, https://github.com/pablohess * 2012 Florian Jenett, https://github.com/fjenett * 2013 Warren Weckesser, https://github.com/warrenweckesser * 2013 Youssef Beddad, https://github.com/lifof * 2013 Lee Driscoll, https://github.com/lsdriscoll * 2013 Stefan Slonevskiy, https://github.com/stefslon * 2013 Jeremy Morel, https://github.com/jmorel * 2013 Christoph Hartmann, https://github.com/chris-rock * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria * 2014 James Makes, https://github.com/dollaruw * 2014 Diego Casorran, https://github.com/diegocr * 2014 Steven Spungin, https://github.com/Flamenco * 2014 Kenneth Glassey, https://github.com/Gavvers * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributor(s): * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango, * kim3er, mfo, alnorth, Flamenco */var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"AcroForm",function(){return tE}),r.export(n,"AcroFormAppearance",function(){return tk}),r.export(n,"AcroFormButton",function(){return ty}),r.export(n,"AcroFormCheckBox",function(){return tB}),r.export(n,"AcroFormChoiceField",function(){return tp}),r.export(n,"AcroFormComboBox",function(){return tm}),r.export(n,"AcroFormEditBox",function(){return tv}),r.export(n,"AcroFormListBox",function(){return tg}),r.export(n,"AcroFormPasswordField",function(){return tC}),r.export(n,"AcroFormPushButton",function(){return tw}),r.export(n,"AcroFormRadioButton",function(){return tb}),r.export(n,"AcroFormTextField",function(){return tx}),r.export(n,"GState",function(){return M}),r.export(n,"ShadingPattern",function(){return T}),r.export(n,"TilingPattern",function(){return N}),r.export(n,"jsPDF",function(){return P});var i=t("@babel/runtime/helpers/typeof"),o=r.interopDefault(i),A=t("fflate"),s=arguments[3],a=function(){return"undefined"!=typeof window?window:void 0!==s?s:"undefined"!=typeof self?self:this}();function l(){a.console&&"function"==typeof a.console.log&&a.console.log.apply(a.console,arguments)}var c={log:l,warn:function(t){a.console&&("function"==typeof a.console.warn?a.console.warn.apply(a.console,arguments):l.call(null,arguments))},error:function(t){a.console&&("function"==typeof a.console.error?a.console.error.apply(a.console,arguments):l(t))}};function u(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){g(r.response,e,n)},r.onerror=function(){c.error("could not download file")},r.send()}function h(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function d(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var f,p,g=a.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,o.default)(window))||window!==a?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,n){var r=a.URL||a.webkitURL,i=document.createElement("a");e=e||t.name||"download",i.download=e,i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?h(i.href)?u(t,e,n):d(i,i.target="_blank"):d(i)):(i.href=r.createObjectURL(t),setTimeout(function(){r.revokeObjectURL(i.href)},4e4),setTimeout(function(){d(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t){if(h(t))u(t,e,n);else{var r,i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){d(i)})}}else navigator.msSaveOrOpenBlob((void 0===(r=n)?r={autoBom:!1}:"object"!==(0,o.default)(r)&&(c.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t),e)}:function(t,e,n,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return u(t,e,n);var i="application/octet-stream"===t.type,A=/constructor/i.test(a.HTMLElement)||a.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&A)&&"object"===("undefined"==typeof FileReader?"undefined":(0,o.default)(FileReader))){var l=new FileReader;l.onloadend=function(){var t=l.result;t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},l.readAsDataURL(t)}else{var c=a.URL||a.webkitURL,h=c.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout(function(){c.revokeObjectURL(h)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function m(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"})[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function v(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];n=w(n,r,i,o,e[0],7,-680876936),o=w(o,n,r,i,e[1],12,-389564586),i=w(i,o,n,r,e[2],17,606105819),r=w(r,i,o,n,e[3],22,-1044525330),n=w(n,r,i,o,e[4],7,-176418897),o=w(o,n,r,i,e[5],12,1200080426),i=w(i,o,n,r,e[6],17,-1473231341),r=w(r,i,o,n,e[7],22,-45705983),n=w(n,r,i,o,e[8],7,1770035416),o=w(o,n,r,i,e[9],12,-1958414417),i=w(i,o,n,r,e[10],17,-42063),r=w(r,i,o,n,e[11],22,-1990404162),n=w(n,r,i,o,e[12],7,1804603682),o=w(o,n,r,i,e[13],12,-40341101),i=w(i,o,n,r,e[14],17,-1502002290),n=b(n,r=w(r,i,o,n,e[15],22,1236535329),i,o,e[1],5,-165796510),o=b(o,n,r,i,e[6],9,-1069501632),i=b(i,o,n,r,e[11],14,643717713),r=b(r,i,o,n,e[0],20,-373897302),n=b(n,r,i,o,e[5],5,-701558691),o=b(o,n,r,i,e[10],9,38016083),i=b(i,o,n,r,e[15],14,-660478335),r=b(r,i,o,n,e[4],20,-405537848),n=b(n,r,i,o,e[9],5,568446438),o=b(o,n,r,i,e[14],9,-1019803690),i=b(i,o,n,r,e[3],14,-187363961),r=b(r,i,o,n,e[8],20,1163531501),n=b(n,r,i,o,e[13],5,-1444681467),o=b(o,n,r,i,e[2],9,-51403784),i=b(i,o,n,r,e[7],14,1735328473),n=_(n,r=b(r,i,o,n,e[12],20,-1926607734),i,o,e[5],4,-378558),o=_(o,n,r,i,e[8],11,-2022574463),i=_(i,o,n,r,e[11],16,1839030562),r=_(r,i,o,n,e[14],23,-35309556),n=_(n,r,i,o,e[1],4,-1530992060),o=_(o,n,r,i,e[4],11,1272893353),i=_(i,o,n,r,e[7],16,-155497632),r=_(r,i,o,n,e[10],23,-1094730640),n=_(n,r,i,o,e[13],4,681279174),o=_(o,n,r,i,e[0],11,-358537222),i=_(i,o,n,r,e[3],16,-722521979),r=_(r,i,o,n,e[6],23,76029189),n=_(n,r,i,o,e[9],4,-640364487),o=_(o,n,r,i,e[12],11,-421815835),i=_(i,o,n,r,e[15],16,530742520),n=B(n,r=_(r,i,o,n,e[2],23,-995338651),i,o,e[0],6,-198630844),o=B(o,n,r,i,e[7],10,1126891415),i=B(i,o,n,r,e[14],15,-1416354905),r=B(r,i,o,n,e[5],21,-57434055),n=B(n,r,i,o,e[12],6,1700485571),o=B(o,n,r,i,e[3],10,-1894986606),i=B(i,o,n,r,e[10],15,-1051523),r=B(r,i,o,n,e[1],21,-2054922799),n=B(n,r,i,o,e[8],6,1873313359),o=B(o,n,r,i,e[15],10,-30611744),i=B(i,o,n,r,e[6],15,-1560198380),r=B(r,i,o,n,e[13],21,1309151649),n=B(n,r,i,o,e[4],6,-145523070),o=B(o,n,r,i,e[11],10,-1120210379),i=B(i,o,n,r,e[2],15,718787259),r=B(r,i,o,n,e[9],21,-343485551),t[0]=Q(n,t[0]),t[1]=Q(r,t[1]),t[2]=Q(i,t[2]),t[3]=Q(o,t[3])}function y(t,e,n,r,i,o){return e=Q(Q(e,t),Q(r,o)),Q(e<>>32-i,n)}function w(t,e,n,r,i,o,A){return y(e&n|~e&r,t,e,i,o,A)}function b(t,e,n,r,i,o,A){return y(e&r|n&~r,t,e,i,o,A)}function _(t,e,n,r,i,o,A){return y(e^n^r,t,e,i,o,A)}function B(t,e,n,r,i,o,A){return y(n^(e|~r),t,e,i,o,A)}function x(t){var e,n=t.length,r=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=t.length;e+=64)v(r,function(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(v(r,i),e=0;e<16;e++)i[e]=0;return i[14]=8*n,v(r,i),r}f=a.atob.bind(a),p=a.btoa.bind(a);var C="0123456789abcdef".split("");function k(t){return String.fromCharCode((255&t)>>0,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function F(t){return x(t).map(k).join("")}var E="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>8*n+4&15]+C[t>>8*n&15];return e}(t[e]);return t.join("")}(x("hello"));function Q(t,e){if(E){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}return t+e&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function S(t,e){if(t!==n){for(var n,r,i=Array(1+(256/t.length>>0)+1).join(t),o=[],A=0;A<256;A++)o[A]=A;var s=0;for(A=0;A<256;A++){var a=o[A];s=(s+a+i.charCodeAt(A))%256,o[A]=o[s],o[s]=a}n=t,r=o}else o=r;var l=e.length,c=0,u=0,h="";for(A=0;A€/\f©þdSiz";var o=(e+this.padding).substr(0,32),A=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,A),this.P=-(1+(255^i)),this.encryptionKey=F(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=S(this.encryptionKey,this.padding)}function I(t){if(/[^\u0000-\u00ff]/.test(t))throw Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",n=t.length,r=0;r126?e+="#"+("0"+i.toString(16)).slice(-2):e+=t[r]}return e}function j(t){if("object"!==(0,o.default)(t))throw Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,n,r){if(r=r||!1,"string"!=typeof t||"function"!=typeof n||"boolean"!=typeof r)throw Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[n,!!r],i},this.unsubscribe=function(t){for(var n in e)if(e[n][t])return delete e[n][t],0===Object.keys(e[n]).length&&delete e[n],!0;return!1},this.publish=function(n){if(e.hasOwnProperty(n)){var r=Array.prototype.slice.call(arguments,1),i=[];for(var o in e[n]){var A=e[n][o];try{A[0].apply(t,r)}catch(t){a.console&&c.error("jsPDF PubSub Error",t.message,t)}A[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function M(t){if(!(this instanceof M))return new M(t);var e="opacity,stroke-opacity".split(",");for(var n in t)t.hasOwnProperty(n)&&e.indexOf(n)>=0&&(this[n]=t[n]);this.id="",this.objectNumber=-1}function D(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function T(t,e,n,r,i){if(!(this instanceof T))return new T(t,e,n,r,i);this.type="axial"===t?2:3,this.coords=e,this.colors=n,D.call(this,r,i)}function N(t,e,n,r,i){if(!(this instanceof N))return new N(t,e,n,r,i);this.boundingBox=t,this.xStep=e,this.yStep=n,this.stream="",this.cloneIndex=0,D.call(this,r,i)}function P(t){var e,n="string"==typeof arguments[0]?arguments[0]:"p",r=arguments[1],i=arguments[2],A=arguments[3],s=[],l=1,u=16,h="S",d=null;"object"===(0,o.default)(t=t||{})&&(n=t.orientation,r=t.unit||r,i=t.format||i,A=t.compress||t.compressPdf||A,null!==(d=t.encryption||null)&&(d.userPassword=d.userPassword||"",d.ownerPassword=d.ownerPassword||"",d.userPermissions=d.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(u=t.floatPrecision),h=t.defaultPathOperation||"S"),s=t.filters||(!0===A?["FlateEncode"]:s),r=r||"mm",n=(""+(n||"P")).toLowerCase();var f=t.putOnlyUsedFonts||!1,v={},y={internal:{},__private__:{}};y.__private__.PubSub=j;var w="1.3",b=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var _={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return _};var B=y.__private__.getPageFormat=function(t){return _[t]};i=i||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},C=x.COMPAT;function k(){this.saveGraphicsState(),tc(new tV(tC,0,0,-tC,0,ng()*tC).toString()+" cm"),this.setFontSize(this.getFontSize()/tC),h="n",C=x.ADVANCED}function F(){this.restoreGraphicsState(),h="S",C=x.COMPAT}var E=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=C===x.COMPAT;return e&&k.call(this),"function"!=typeof t||(t(this),e&&F.call(this)),this},y.compatAPI=function(t){var e=C===x.ADVANCED;return e&&F.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},y.isAdvancedAPI=function(){return C===x.ADVANCED};var Q,S=function(t){if(C!==x.ADVANCED)throw Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=y.roundToPrecision=y.__private__.roundToPrecision=function(t,n){var r=e||n;if(isNaN(t)||isNaN(r))throw Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(r).replace(/0+$/,"")};Q=y.hpf=y.__private__.hpf="number"==typeof u?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return L(t,u)}:"smart"===u?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return L(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return L(t,16)};var D=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f2");return L(t,2)},O=y.__private__.f3=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f3");return L(t,3)},H=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.scale");return C===x.COMPAT?t*tC:C===x.ADVANCED?t:void 0},R=function(t){return H(C===x.COMPAT?ng()-t:C===x.ADVANCED?t:void 0)};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var K,V="00000000000000000000000000000000",z=y.__private__.getFileId=function(){return V},G=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==d&&(ej=new U(d.userPermissions,d.userPassword,d.ownerPassword,V)),V};y.setFileId=function(t){return G(t),this},y.getFileId=function(){return z()};var q=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),n=[e<0?"+":"-",Z(Math.floor(Math.abs(e/60))),"'",Z(Math.abs(e%60)),"'"].join("");return["D:",t.getFullYear(),Z(t.getMonth()+1),Z(t.getDate()),Z(t.getHours()),Z(t.getMinutes()),Z(t.getSeconds()),n].join("")},W=y.__private__.convertPDFDateToDate=function(t){return new Date(parseInt(t.substr(2,4),10),parseInt(t.substr(6,2),10)-1,parseInt(t.substr(8,2),10),parseInt(t.substr(10,2),10),parseInt(t.substr(12,2),10),parseInt(t.substr(14,2),10),0)},Y=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=q(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return K=e},X=y.__private__.getCreationDate=function(t){var e=K;return"jsDate"===t&&(e=W(K)),e};y.setCreationDate=function(t){return Y(t),this},y.getCreationDate=function(t){return X(t)};var J,Z=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},$=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},tt=0,te=[],tn=[],tr=0,ti=[],to=[],tA=!1,ts=tn,ta=function(){tt=0,tr=0,tn=[],te=[],ti=[],tZ=tY(),t$=tY()};y.__private__.setCustomOutputDestination=function(t){tA=!0,ts=t};var tl=function(t){tA||(ts=t)};y.__private__.resetCustomOutputDestination=function(){tA=!1,ts=tn};var tc=y.__private__.out=function(t){return t=t.toString(),tr+=t.length+1,ts.push(t),ts},tu=y.__private__.write=function(t){return tc(1==arguments.length?t.toString():Array.prototype.join.call(arguments," "))},th=y.__private__.getArrayBuffer=function(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n);e--;)r[e]=t.charCodeAt(e);return n},td=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return td};var tf=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return tf=C===x.ADVANCED?t/tC:t,this};var tp,tg=y.__private__.getFontSize=y.getFontSize=function(){return C===x.COMPAT?tf:tf*tC},tm=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return tm=t,this},y.__private__.getR2L=y.getR2L=function(){return tm};var tv,ty=y.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))tp=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');tp=t}else tp=parseInt(t,10)};y.__private__.getZoomMode=function(){return tp};var tw,tb=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');tv=t};y.__private__.getPageMode=function(){return tv};var t_=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');tw=t};y.__private__.getLayoutMode=function(){return tw},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,n){return ty(t),t_(e),tb(n),this};var tB={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(tB).indexOf(t))throw Error("Invalid argument passed to jsPDF.getDocumentProperty");return tB[t]},y.__private__.getDocumentProperties=function(){return tB},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in tB)tB.hasOwnProperty(e)&&t[e]&&(tB[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(tB).indexOf(t))throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");return tB[t]=e};var tx,tC,tk,tF,tE,tQ={},tS={},tL=[],tU={},tI={},tj={},tM={},tD=null,tT=0,tN=[],tP=new j(y),tO=t.hotfixes||[],tH={},tR={},tK=[],tV=function t(e,n,r,i,o,A){if(!(this instanceof t))return new t(e,n,r,i,o,A);isNaN(e)&&(e=1),isNaN(n)&&(n=0),isNaN(r)&&(r=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(A)&&(A=0),this._matrix=[e,n,r,i,o,A]};Object.defineProperty(tV.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tV.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tV.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tV.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tV.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tV.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tV.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tV.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tV.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tV.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tV.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tV.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tV.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tV.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tV.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tV.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),tV.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Q).join(t)},tV.prototype.multiply=function(t){return new tV(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},tV.prototype.decompose=function(){var t=this.sx,e=this.shy,n=this.shx,r=this.sy,i=this.tx,o=this.ty,A=Math.sqrt(t*t+e*e),s=(t/=A)*n+(e/=A)*r,a=Math.sqrt((n-=t*s)*n+(r-=e*s)*r);return s/=a,t*(r/=a)>16&255,r=l>>8&255,i=255&l}if(void 0===r||void 0===A&&n===r&&r===i)e="string"==typeof n?n+" "+s[0]:2===t.precision?D(n/255)+" "+s[0]:O(n/255)+" "+s[0];else if(void 0===A||"object"===(0,o.default)(A)){if(A&&!isNaN(A.a)&&0===A.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof n?[n,r,i,s[1]].join(" "):2===t.precision?[D(n/255),D(r/255),D(i/255),s[1]].join(" "):[O(n/255),O(r/255),O(i/255),s[1]].join(" ")}else e="string"==typeof n?[n,r,i,A,s[2]].join(" "):2===t.precision?[D(n),D(r),D(i),D(A),s[2]].join(" "):[O(n),O(r),O(i),O(A),s[2]].join(" ");return e},t2=y.__private__.getFilters=function(){return s},t5=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",n=t.filters||t2(),r=t.alreadyAppliedFilters||[],i=t.addLength1||!1,o=e.length,A=t.objectId,s=function(t){return t};if(null!==d&&void 0===A)throw Error("ObjectId must be passed to putStream for file encryption");null!==d&&(s=ej.encryptor(A,0));var a={};!0===n&&(n=["FlateEncode"]);var l=t.additionalKeyValues||[],c=(a=void 0!==P.API.processDataByFilters?P.API.processDataByFilters(e,n):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(r)?r.join(" "):r.toString());if(0!==a.data.length&&(l.push({key:"Length",value:a.data.length}),!0===i&&l.push({key:"Length1",value:o})),0!=c.length){if(c.split("/").length-1==1)l.push({key:"Filter",value:c});else{l.push({key:"Filter",value:"["+c+"]"});for(var u=0;u>"),0!==a.data.length&&(tc("stream"),tc(s(a.data)),tc("endstream"))},t4=y.__private__.putPage=function(t){var e=t.number,n=t.data,r=t.objId,i=t.contentsObjId;tX(r,!0),tc("<>"),tc("endobj");var o=n.join("\n");return C===x.ADVANCED&&(o+="\nQ"),tX(i,!0),t5({data:o,filters:t2(),objectId:i}),tc("endobj"),r},t3=y.__private__.putPages=function(){var t,e,n=[];for(t=1;t<=tT;t++)tN[t].objId=tY(),tN[t].contentsObjId=tY();for(t=1;t<=tT;t++)n.push(t4({number:t,data:to[t],objId:tN[t].objId,contentsObjId:tN[t].contentsObjId,mediaBox:tN[t].mediaBox,cropBox:tN[t].cropBox,bleedBox:tN[t].bleedBox,trimBox:tN[t].trimBox,artBox:tN[t].artBox,userUnit:tN[t].userUnit,rootDictionaryObjId:tZ,resourceDictionaryObjId:t$}));tX(tZ,!0),tc("<>"),tc("endobj"),tP.publish("postPutPages")},t6=function(t){tP.publish("putFont",{font:t,out:tc,newObject:tW,putStream:t5}),!0!==t.isAlreadyPutted&&(t.objectNumber=tW(),tc("<<"),tc("/Type /Font"),tc("/BaseFont /"+I(t.postScriptName)),tc("/Subtype /Type1"),"string"==typeof t.encoding&&tc("/Encoding /"+t.encoding),tc("/FirstChar 32"),tc("/LastChar 255"),tc(">>"),tc("endobj"))},t8=function(){for(var t in tQ)tQ.hasOwnProperty(t)&&(!1===f||!0===f&&v.hasOwnProperty(t))&&t6(tQ[t])},t7=function(t){t.objectNumber=tW();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[Q(t.x),Q(t.y),Q(t.x+t.width),Q(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t5({data:t.pages[1].join("\n"),additionalKeyValues:e,objectId:t.objectNumber}),tc("endobj")},t9=function(){for(var t in tH)tH.hasOwnProperty(t)&&t7(tH[t])},et=function(t,e){var n,r=[],i=1/(e-1);for(n=0;n<1;n+=i)r.push(n);if(r.push(1),0!=t[0].offset){var o={offset:0,color:t[0].color};t.unshift(o)}if(1!=t[t.length-1].offset){var A={offset:1,color:t[t.length-1].color};t.push(A)}for(var s="",a=0,l=0;lt[a+1].offset;)a++;var c=t[a].offset,u=(n-c)/(t[a+1].offset-c),h=t[a].color,d=t[a+1].color;s+=$(Math.round((1-u)*h[0]+u*d[0]).toString(16))+$(Math.round((1-u)*h[1]+u*d[1]).toString(16))+$(Math.round((1-u)*h[2]+u*d[2]).toString(16))}return s.trim()},ee=function(t,e){e||(e=21);var n=tW(),r=et(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),t5({data:r,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),tc("endobj"),t.objectNumber=tW(),tc("<< /ShadingType "+t.type),tc("/ColorSpace /DeviceRGB");var o="/Coords ["+Q(parseFloat(t.coords[0]))+" "+Q(parseFloat(t.coords[1]))+" ";2===t.type?o+=Q(parseFloat(t.coords[2]))+" "+Q(parseFloat(t.coords[3])):o+=Q(parseFloat(t.coords[2]))+" "+Q(parseFloat(t.coords[3]))+" "+Q(parseFloat(t.coords[4]))+" "+Q(parseFloat(t.coords[5])),tc(o+="]"),t.matrix&&tc("/Matrix ["+t.matrix.toString()+"]"),tc("/Function "+n+" 0 R"),tc("/Extend [true true]"),tc(">>"),tc("endobj")},en=function(t,e){var n=tY(),r=tW();e.push({resourcesOid:n,objectOid:r}),t.objectNumber=r;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(Q).join(" ")+"]"}),i.push({key:"XStep",value:Q(t.xStep)}),i.push({key:"YStep",value:Q(t.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t5({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),tc("endobj")},er=function(t){var e;for(e in tU)tU.hasOwnProperty(e)&&(tU[e]instanceof T?ee(tU[e]):tU[e]instanceof N&&en(tU[e],t))},ei=function(t){for(var e in t.objectNumber=tW(),tc("<<"),t)switch(e){case"opacity":tc("/ca "+D(t[e]));break;case"stroke-opacity":tc("/CA "+D(t[e]))}tc(">>"),tc("endobj")},eo=function(){var t;for(t in tj)tj.hasOwnProperty(t)&&ei(tj[t])},eA=function(){for(var t in tc("/XObject <<"),tH)tH.hasOwnProperty(t)&&tH[t].objectNumber>=0&&tc("/"+t+" "+tH[t].objectNumber+" 0 R");tP.publish("putXobjectDict"),tc(">>")},es=function(){ej.oid=tW(),tc("<<"),tc("/Filter /Standard"),tc("/V "+ej.v),tc("/R "+ej.r),tc("/U <"+ej.toHexString(ej.U)+">"),tc("/O <"+ej.toHexString(ej.O)+">"),tc("/P "+ej.P),tc(">>"),tc("endobj")},ea=function(){for(var t in tc("/Font <<"),tQ)tQ.hasOwnProperty(t)&&(!1===f||!0===f&&v.hasOwnProperty(t))&&tc("/"+t+" "+tQ[t].objectNumber+" 0 R");tc(">>")},el=function(){if(Object.keys(tU).length>0){for(var t in tc("/Shading <<"),tU)tU.hasOwnProperty(t)&&tU[t]instanceof T&&tU[t].objectNumber>=0&&tc("/"+t+" "+tU[t].objectNumber+" 0 R");tP.publish("putShadingPatternDict"),tc(">>")}},ec=function(t){if(Object.keys(tU).length>0){for(var e in tc("/Pattern <<"),tU)tU.hasOwnProperty(e)&&tU[e]instanceof y.TilingPattern&&tU[e].objectNumber>=0&&tU[e].objectNumber>")}},eu=function(){if(Object.keys(tj).length>0){var t;for(t in tc("/ExtGState <<"),tj)tj.hasOwnProperty(t)&&tj[t].objectNumber>=0&&tc("/"+t+" "+tj[t].objectNumber+" 0 R");tP.publish("putGStateDict"),tc(">>")}},eh=function(t){tX(t.resourcesOid,!0),tc("<<"),tc("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),ea(),el(),ec(t.objectOid),eu(),eA(),tc(">>"),tc("endobj")},ed=function(){var t=[];t8(),eo(),t9(),er(t),tP.publish("putResources"),t.forEach(eh),eh({resourcesOid:t$,objectOid:Number.MAX_SAFE_INTEGER}),tP.publish("postPutResources")},ef=function(){tP.publish("putAdditionalObjects");for(var t=0;t>8&&(a=!0);t=s.join("")}for(n=t.length;void 0===a&&0!==n;)t.charCodeAt(n-1)>>8&&(a=!0),n--;if(!a)return t;for(s=e.noBOM?[]:[254,255],n=0,r=t.length;n>8)>>8)throw Error("Character at position "+n+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(c),s.push(l-(c<<8))}return String.fromCharCode.apply(void 0,s)},ev=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return em(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ey=y.__private__.beginPage=function(t){to[++tT]=[],tN[tT]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},e_(tT),tl(to[J])},ew=function(t,e){var r,o,A;switch(n=e||n,"string"==typeof t&&Array.isArray(r=B(t.toLowerCase()))&&(o=r[0],A=r[1]),Array.isArray(t)&&(o=t[0]*tC,A=t[1]*tC),isNaN(o)&&(o=i[0],A=i[1]),(o>14400||A>14400)&&(c.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),A=Math.min(14400,A)),i=[o,A],n.substr(0,1)){case"l":A>o&&(i=[A,o]);break;case"p":o>A&&(i=[A,o])}ey(i),e1(e$),tc(e9),0!==no&&tc(no+" J"),0!==nA&&tc(nA+" j"),tP.publish("addPage",{pageNumber:tT})},eb=function(t){t>0&&t<=tT&&(to.splice(t,1),tN.splice(t,1),tT--,J>tT&&(J=tT),this.setPage(J))},e_=function(t){t>0&&t<=tT&&(J=t)},eB=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return to.length-1},ex=function(t,e,n){var r,i=void 0;return n=n||{},t=void 0!==t?t:tQ[tx].fontName,e=void 0!==e?e:tQ[tx].fontStyle,void 0!==tS[r=t.toLowerCase()]&&void 0!==tS[r][e]?i=tS[r][e]:void 0!==tS[t]&&void 0!==tS[t][e]?i=tS[t][e]:!1===n.disableWarning&&c.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=tS.times[e])&&(i=tS.times.normal),i},eC=y.__private__.putInfo=function(){var t=tW(),e=function(t){return t};for(var n in null!==d&&(e=ej.encryptor(t,0)),tc("<<"),tc("/Producer ("+ev(e("jsPDF "+P.version))+")"),tB)tB.hasOwnProperty(n)&&tB[n]&&tc("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+ev(e(tB[n]))+")");tc("/CreationDate ("+ev(e(K))+")"),tc(">>"),tc("endobj")},ek=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||tZ;switch(tW(),tc("<<"),tc("/Type /Catalog"),tc("/Pages "+e+" 0 R"),tp||(tp="fullwidth"),tp){case"fullwidth":tc("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tc("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tc("/OpenAction [3 0 R /Fit]");break;case"original":tc("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+tp;"%"===n.substr(n.length-1)&&(tp=parseInt(tp)/100),"number"==typeof tp&&tc("/OpenAction [3 0 R /XYZ null null "+D(tp)+"]")}switch(tw||(tw="continuous"),tw){case"continuous":tc("/PageLayout /OneColumn");break;case"single":tc("/PageLayout /SinglePage");break;case"two":case"twoleft":tc("/PageLayout /TwoColumnLeft");break;case"tworight":tc("/PageLayout /TwoColumnRight")}tv&&tc("/PageMode /"+tv),tP.publish("putCatalog"),tc(">>"),tc("endobj")},eF=y.__private__.putTrailer=function(){tc("trailer"),tc("<<"),tc("/Size "+(tt+1)),tc("/Root "+tt+" 0 R"),tc("/Info "+(tt-1)+" 0 R"),null!==d&&tc("/Encrypt "+ej.oid+" 0 R"),tc("/ID [ <"+V+"> <"+V+"> ]"),tc(">>")},eE=y.__private__.putHeader=function(){tc("%PDF-"+w),tc("%ºß¬à")},eQ=y.__private__.putXRef=function(){var t="0000000000";tc("xref"),tc("0 "+(tt+1)),tc("0000000000 65535 f ");for(var e=1;e<=tt;e++)"function"==typeof te[e]?tc((t+te[e]()).slice(-10)+" 00000 n "):void 0!==te[e]?tc((t+te[e]).slice(-10)+" 00000 n "):tc("0000000000 00000 n ")},eS=y.__private__.buildDocument=function(){ta(),tl(tn),tP.publish("buildDocument"),eE(),t3(),ef(),ed(),null!==d&&es(),eC(),ek();var t=tr;return eQ(),eF(),tc("startxref"),tc(""+t),tc("%%EOF"),tl(to[J]),tn.join("\n")},eL=y.__private__.getBlob=function(t){return new Blob([th(t)],{type:"application/pdf"})},eU=y.output=y.__private__.output=((eJ=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return eS();case"save":y.save(e.filename);break;case"arraybuffer":return th(eS());case"blob":return eL(eS());case"bloburi":case"bloburl":if(void 0!==a.URL&&"function"==typeof a.URL.createObjectURL)return a.URL&&a.URL.createObjectURL(eL(eS()))||void 0;c.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",r=eS();try{n=p(r)}catch(t){n=p(unescape(encodeURIComponent(r)))}return"data:application/pdf;filename="+e.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,o="");var A='",s=a.open();return null!==s&&s.document.write(A),s}throw Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(a)){var l='',f=a.open();if(null!==f&&(f.document.write(d),f.document.title=e.filename),f||"undefined"==typeof safari)return f;break;case"datauri":case"dataurl":return a.document.location.href=this.output("datauristring",e);default:return null}}).foo=function(){try{return eJ.apply(this,arguments)}catch(n){var t=n.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var e="Error in function "+t.split("\n")[0].split("<")[0]+": "+n.message;if(!a.console)throw Error(e);a.console.error(e,n),a.alert&&alert(e)}},eJ.foo.bar=eJ,eJ.foo),eI=function(t){return!0===Array.isArray(tO)&&tO.indexOf(t)>-1};switch(r){case"pt":tC=1;break;case"mm":tC=72/25.4;break;case"cm":tC=72/2.54;break;case"in":tC=72;break;case"px":tC=1==eI("px_scaling")?.75:96/72;break;case"pc":case"em":tC=12;break;case"ex":tC=6;break;default:if("number"!=typeof r)throw Error("Invalid unit: "+r);tC=r}var ej=null;Y(),G();var eM=y.__private__.getPageInfo=y.getPageInfo=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:tN[t].objId,pageNumber:t,pageContext:tN[t]}},eD=y.__private__.getPageInfoByObjId=function(t){if(isNaN(t)||t%1!=0)throw Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var e in tN)if(tN[e].objId===t)break;return eM(e)},eT=y.__private__.getCurrentPageInfo=y.getCurrentPageInfo=function(){return{objId:tN[J].objId,pageNumber:J,pageContext:tN[J]}};y.addPage=function(){return ew.apply(this,arguments),this},y.setPage=function(){return e_.apply(this,arguments),tl.call(this,to[J]),this},y.insertPage=function(t){return this.addPage(),this.movePage(J,t),this},y.movePage=function(t,e){var n,r;if(t>e){n=to[t],r=tN[t];for(var i=t;i>e;i--)to[i]=to[i-1],tN[i]=tN[i-1];to[e]=n,tN[e]=r,this.setPage(e)}else if(t0&&("string"==typeof t?t=p.splitTextToSize(t,u):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(p.splitTextToSize(e,u))},[]))),A={text:t,x:e,y:n,options:r,mutex:{pdfEscape:ev,activeFontKey:tx,fonts:tQ,activeFontSize:tf}},tP.publish("preProcessText",A),t=A.text,a=(r=A.options).angle,f instanceof tV==!1&&a&&"number"==typeof a){a*=Math.PI/180,0===r.rotationDirection&&(a=-a),C===x.ADVANCED&&(a=-a);var M=Math.cos(a),D=Math.sin(a);f=new tV(M,D,-D,M,0,0)}else a&&a instanceof tV&&(f=a);C!==x.ADVANCED||f||(f=tG),void 0!==(c=r.charSpace||nr)&&(m+=Q(H(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(d=r.horizontalScale)&&(m+=Q(100*d)+" Tz\n"),r.lang;var T=-1,N=void 0!==r.renderingMode?r.renderingMode:r.stroke,P=p.internal.getCurrentPageInfo().pageContext;switch(N){case 0:case!1:case"fill":T=0;break;case 1:case!0:case"stroke":T=1;break;case 2:case"fillThenStroke":T=2;break;case 3:case"invisible":T=3;break;case 4:case"fillAndAddForClipping":T=4;break;case 5:case"strokeAndAddPathForClipping":T=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":T=6;break;case 7:case"addToPathForClipping":T=7}var O=void 0!==P.usedRenderingMode?P.usedRenderingMode:-1;-1!==T?m+=T+" Tr\n":-1!==O&&(m+="0 Tr\n"),-1!==T&&(P.usedRenderingMode=T),l=r.align||"left";var R,K=tf*w,V=p.internal.pageSize.getWidth(),z=tQ[tx];c=r.charSpace||nr,u=r.maxWidth||0,h=Object.assign({autoencode:!0,noBOM:!0},r.flags);var G=[],q=function(t){return p.getStringUnitWidth(t,{font:z,charSpace:c,fontSize:tf,doKerning:!1})*tf/b};if("[object Array]"===Object.prototype.toString.call(t)){s=_(t),"left"!==l&&(R=s.map(q));var W,Y,X=0;if("right"===l){e-=R[0],t=[],U=s.length;for(var J=0;J":")"),ts=parseFloat(s[tp][1]),ta=parseFloat(s[tp][2]);break;case 0:tl=(y?"<":"(")+s[tp]+(y?">":")"),ts=e3(e),ta=e6(n)}void 0!==G&&void 0!==G[tp]&&(th=G[tp]+" Tw\n"),0===tp?t.push(th+td(ts,ta,f)+tl):0===tu?t.push(th+tl):1===tu&&t.push(th+td(ts,ta,f)+tl)}t=(0===tu?t.join(" Tj\nT* "):t.join(" Tj\n"))+" Tj\n";var tg="BT\n/";return tc(tg+=tx+" "+tf+" Tf\n"+Q(tf*w)+" TL\n"+ne+"\n"+m+t+"ET"),v[tx]=!0,p};var eN=y.__private__.clip=y.clip=function(t){return tc("evenodd"===t?"W*":"W"),this};y.clipEvenOdd=function(){return eN("evenodd")},y.__private__.discardPath=y.discardPath=function(){return tc("n"),this};var eP=y.__private__.isValidStyle=function(t){var e=!1;return -1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(t)&&(e=!0),e};y.__private__.setDefaultPathOperation=y.setDefaultPathOperation=function(t){return eP(t)&&(h=t),this};var eO=y.__private__.getStyle=y.getStyle=function(t){var e=h;switch(t){case"D":case"S":e="S";break;case"F":e="f";break;case"FD":case"DF":e="B";break;case"f":case"f*":case"B":case"B*":e=t}return e},eH=y.close=function(){return tc("h"),this};y.stroke=function(){return tc("S"),this},y.fill=function(t){return eR("f",t),this},y.fillEvenOdd=function(t){return eR("f*",t),this},y.fillStroke=function(t){return eR("B",t),this},y.fillStrokeEvenOdd=function(t){return eR("B*",t),this};var eR=function(t,e){"object"===(0,o.default)(e)?ez(e,t):tc(t)},eK=function(t){null===t||C===x.ADVANCED&&void 0===t||tc(t=eO(t))};function eV(t,e,n,r,i){var o=new N(e||this.boundingBox,n||this.xStep,r||this.yStep,this.gState,i||this.matrix);return o.stream=this.stream,tq(t+"$$"+this.cloneIndex+++"$$",o),o}var ez=function(t,e){var n=tI[t.key],r=tU[n];if(r instanceof T)tc("q"),tc(eG(e)),r.gState&&y.setGState(r.gState),tc(t.matrix.toString()+" cm"),tc("/"+n+" sh"),tc("Q");else if(r instanceof N){var i=new tV(1,0,0,-1,0,ng());t.matrix&&(i=i.multiply(t.matrix||tG),n=eV.call(r,t.key,t.boundingBox,t.xStep,t.yStep,i).id),tc("q"),tc("/Pattern cs"),tc("/"+n+" scn"),r.gState&&y.setGState(r.gState),tc(e),tc("Q")}},eG=function(t){switch(t){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},eq=y.moveTo=function(t,e){return tc(Q(H(t))+" "+Q(R(e))+" m"),this},eW=y.lineTo=function(t,e){return tc(Q(H(t))+" "+Q(R(e))+" l"),this},eY=y.curveTo=function(t,e,n,r,i,o){return tc([Q(H(t)),Q(R(e)),Q(H(n)),Q(R(r)),Q(H(i)),Q(R(o)),"c"].join(" ")),this};y.__private__.line=y.line=function(t,e,n,r,i){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r)||!eP(i))throw Error("Invalid arguments passed to jsPDF.line");return C===x.COMPAT?this.lines([[n-t,r-e]],t,e,[1,1],i||"S"):this.lines([[n-t,r-e]],t,e,[1,1]).stroke()},y.__private__.lines=y.lines=function(t,e,n,r,i,o){var A,s,a,l,c,u,h,d,f,p,g;if("number"==typeof t&&(g=n,n=e,e=t,t=g),r=r||[1,1],o=o||!1,isNaN(e)||isNaN(n)||!Array.isArray(t)||!Array.isArray(r)||!eP(i)||"boolean"!=typeof o)throw Error("Invalid arguments passed to jsPDF.lines");for(eq(e,n),A=r[0],s=r[1],l=t.length,f=e,p=n,a=0;a>0&255,t>>8&255,t>>16&255,t>>24&255)},U.prototype.toHexString=function(t){return t.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},U.prototype.hexToBytes=function(t){for(var e=[],n=0;n>8&255,t>>16&255,255&e,e>>8&255)).substr(0,10);return function(t){return S(n,t)}},M.prototype.equals=function(t){var e,n="id,objectNumber,equals";if(!t||(0,o.default)(t)!==(0,o.default)(this))return!1;var r=0;for(e in this)if(!(n.indexOf(e)>=0)){if(this.hasOwnProperty(e)&&!t.hasOwnProperty(e)||this[e]!==t[e])return!1;r++}for(e in t)t.hasOwnProperty(e)&&0>n.indexOf(e)&&r--;return 0===r},P.API={events:[]},P.version="3.0.0";var O=P.API,H=1,R=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},K=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},V=function(t){return t.toFixed(2)},z=function(t){return t.toFixed(5)};O.__acroform__={};var G=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},q=function(t){return t*H},W=function(t){var e=new th,n=tk.internal.getHeight(t)||0,r=tk.internal.getWidth(t)||0;return e.BBox=[0,0,Number(V(r)),Number(V(n))],e},Y=O.__acroform__.setBit=function(t,e){if(e=e||0,isNaN(t=t||0)||isNaN(e))throw Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<0;){e="";var a,l,c=ti("3",t,--o).height,u=t.multiline?A-o:(A-c)/2,h=u+=2,d=0,f=0,p=0;if(o<=0){e="(...) Tj\n",e+="% Width of Text: "+ti(e,t,o=12).width+", FieldWidth:"+s+"\n";break}for(var g="",m=0,v=0;vA)continue t;g+=i[v][p],y=!0,f=v,v--}else{g=" "==(g+=i[v][p]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var w,b,_=parseInt(v),B=(w=g,b=o,_+1=i.length-1;if(B&&!x){g+=" ",p=0;continue}if(B||x){if(x)f=_;else if(t.multiline&&(c+2)*(m+2)+2>A)continue t}else{if(!t.multiline||(c+2)*(m+2)+2>A)continue t;f=_}}for(var C="",k=d;k<=f;k++){var F=i[k];if(t.multiline){if(k===f){C+=F[p]+" ",p=(p+1)%F.length;continue}if(k===d){C+=F[F.length-1]+" ";continue}}C+=F[0]+" "}switch(l=ti(C=" "==C.substr(C.length-1)?C.substr(0,C.length-1):C,t,o).width,t.textAlign){case"right":a=s-l-2;break;case"center":a=(s-l)/2;break;default:a=2}e+=V(a)+" "+V(h)+" Td\n("+R(C)+") Tj\n"+-V(a)+" 0 Td\n",h=-(o+2),l=0,d=y?f:f+1,m++,g=""}break}return r.text=e,r.fontSize=o,r},ti=function(t,e,n){var r=e.scope.internal.getFont(e.fontName,e.fontStyle),i=e.scope.getStringUnitWidth(t,{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:e.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},to={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},tA=function(t,e){var n={type:"reference",object:t};void 0===e.internal.getPageInfo(t.page).pageContext.annotations.find(function(t){return t.type===n.type&&t.object===n.object})&&e.internal.getPageInfo(t.page).pageContext.annotations.push(n)},ts=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e.internal.newObjectDeferredBegin(r.objId,!0),"object"===(0,o.default)(r)&&"function"==typeof r.putStream&&r.putStream(),delete t[n]}},ta=function(t,e){if(e.scope=t,void 0!==t.internal&&(void 0===t.internal.acroformPlugin||!1===t.internal.acroformPlugin.isInitialized)){if(tf.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(to)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("Exception while creating AcroformDictionary");H=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new td,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0}),t.internal.events.subscribe("buildDocument",function(){!function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];r.objId=void 0,r.hasAnnotation&&tA(r,t)}}(t)}),t.internal.events.subscribe("putCatalog",function(){!function(t){if(void 0===t.internal.acroformPlugin.acroFormDictionaryRoot)throw Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(t)}),t.internal.events.subscribe("postPutPages",function(e){!function(t,e){var n=!t;for(var r in t||(e.internal.newObjectDeferredBegin(e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),t=t||e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(t.hasOwnProperty(r)){var i=t[r],A=[],s=i.Rect;if(i.Rect&&(i.Rect=te(i.Rect,e)),e.internal.newObjectDeferredBegin(i.objId,!0),i.DA=tk.createDefaultAppearanceStream(i),"object"===(0,o.default)(i)&&"function"==typeof i.getKeyValueListForStream&&(A=i.getKeyValueListForStream()),i.Rect=s,i.hasAppearanceStream&&!i.appearanceStreamContent){var a=tn(i);A.push({key:"AP",value:"<>"}),e.internal.acroformPlugin.xForms.push(a)}if(i.appearanceStreamContent){var l="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var u=i.appearanceStreamContent[c];if(l+="/"+c+" <<",Object.keys(u).length>=1||Array.isArray(u)){for(var r in u)if(u.hasOwnProperty(r)){var h=u[r];"function"==typeof h&&(h=h.call(e,i)),l+="/"+r+" "+h+" ",e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h)}}else"function"==typeof(h=u)&&(h=h.call(e,i)),l+="/"+r+" "+h,e.internal.acroformPlugin.xForms.indexOf(h)>=0||e.internal.acroformPlugin.xForms.push(h);l+=">>"}A.push({key:"AP",value:"<<\n"+l+">>"})}e.internal.putStream({additionalKeyValues:A,objectId:i.objId}),e.internal.out("endobj")}n&&ts(e.internal.acroformPlugin.xForms,e)}(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},tl=O.__acroform__.arrayToPdfArray=function(t,e,n){var r=function(t){return t};if(Array.isArray(t)){for(var i="[",A=0;A0?e:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return e}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+R(e(t))+")"}},set:function(e){t=e}})};G(td,tu);var tf=function t(){tu.call(this);var e=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute F supplied.');e=t}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Z(e,3)},set:function(t){!0==!!t?this.F=$(e,3):this.F=tt(e,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){if(isNaN(t))throw Error('Invalid value "'+t+'" for attribute Ff supplied.');n=t}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(t){r=void 0!==t?t:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(t){r[0]=t}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(t){r[1]=t}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(t){r[2]=t}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(t){r[3]=t}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(t){switch(t){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=t;break;default:throw Error('Invalid value "'+t+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof t_)return;o="FieldObject"+t.FieldNum++}var e=function(t){return t};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+R(e(o))+")"},set:function(t){o=t.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(t){o=t}});var A="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return A},set:function(t){A=t}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(t){s=t}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(t){a=t}});var l=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===l?50/H:l},set:function(t){l=t}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(t){c=t}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof t_||this instanceof tx))return tc(u,this.objId,this.scope)},set:function(t){u=t=t.toString()}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ty==!1?tc(h,this.objId,this.scope):h},set:function(t){t=t.toString(),h=this instanceof ty==!1?"("===t.substr(0,1)?K(t.substr(1,t.length-2)):K(t):t}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ty==!0?K(h.substr(1,h.length-1)):h},set:function(t){t=t.toString(),h=this instanceof ty==!0?"/"+t:t}});var d=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(d)return d},set:function(t){this.V=t}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ty==!1?tc(d,this.objId,this.scope):d},set:function(t){t=t.toString(),d=this instanceof ty==!1?"("===t.substr(0,1)?K(t.substr(1,t.length-2)):K(t):t}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ty==!0?K(d.substr(1,d.length-1)):d},set:function(t){t=t.toString(),d=this instanceof ty==!0?"/"+t:t}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var f,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(t){p=t=!!t}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(t){f=t}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,1)},set:function(t){!0==!!t?this.Ff=$(this.Ff,1):this.Ff=tt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,2)},set:function(t){!0==!!t?this.Ff=$(this.Ff,2):this.Ff=tt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,3)},set:function(t){!0==!!t?this.Ff=$(this.Ff,3):this.Ff=tt(this.Ff,3)}});var g=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==g)return g},set:function(t){if(-1===[0,1,2].indexOf(t))throw Error('Invalid value "'+t+'" for attribute Q supplied.');g=t}}),Object.defineProperty(this,"textAlign",{get:function(){var t;switch(g){case 0:default:t="left";break;case 1:t="center";break;case 2:t="right"}return t},configurable:!0,enumerable:!0,set:function(t){switch(t){case"right":case 2:g=2;break;case"center":case 1:g=1;break;default:g=0}}})};G(tf,tu);var tp=function(){tf.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var e=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return tl(e,this.objId,this.scope)},set:function(t){var n;n=[],"string"==typeof t&&(n=function(t,e,n){n||(n=1);for(var r,i=[];r=e.exec(t);)i.push(r[n]);return i}(t,/\((.*?)\)/g)),e=n}}),this.getOptions=function(){return e},this.setOptions=function(t){e=t,this.sort&&e.sort()},this.addOption=function(t){t=(t=t||"").toString(),e.push(t),this.sort&&e.sort()},this.removeOption=function(t,n){for(n=n||!1,t=(t=t||"").toString();-1!==e.indexOf(t)&&(e.splice(e.indexOf(t),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,18)},set:function(t){!0==!!t?this.Ff=$(this.Ff,18):this.Ff=tt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,19)},set:function(t){!0===this.combo&&(!0==!!t?this.Ff=$(this.Ff,19):this.Ff=tt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,20)},set:function(t){!0==!!t?(this.Ff=$(this.Ff,20),e.sort()):this.Ff=tt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,22)},set:function(t){!0==!!t?this.Ff=$(this.Ff,22):this.Ff=tt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,23)},set:function(t){!0==!!t?this.Ff=$(this.Ff,23):this.Ff=tt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,27)},set:function(t){!0==!!t?this.Ff=$(this.Ff,27):this.Ff=tt(this.Ff,27)}}),this.hasAppearanceStream=!1};G(tp,tf);var tg=function(){tp.call(this),this.fontName="helvetica",this.combo=!1};G(tg,tp);var tm=function(){tg.call(this),this.combo=!0};G(tm,tg);var tv=function(){tm.call(this),this.edit=!0};G(tv,tm);var ty=function(){tf.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,15)},set:function(t){!0==!!t?this.Ff=$(this.Ff,15):this.Ff=tt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,16)},set:function(t){!0==!!t?this.Ff=$(this.Ff,16):this.Ff=tt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,17)},set:function(t){!0==!!t?this.Ff=$(this.Ff,17):this.Ff=tt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,26)},set:function(t){!0==!!t?this.Ff=$(this.Ff,26):this.Ff=tt(this.Ff,26)}});var t,e={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(e).length){var n,r=[];for(n in r.push("<<"),e)r.push("/"+n+" ("+R(t(e[n]))+")");return r.push(">>"),r.join("\n")}},set:function(t){"object"===(0,o.default)(t)&&(e=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return e.CA||""},set:function(t){"string"==typeof t&&(e.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+e}})};G(ty,tf);var tw=function(){ty.call(this),this.pushButton=!0};G(tw,ty);var tb=function(){ty.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=void 0!==e?e:[]}})};G(tb,ty);var t_=function(){tf.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return e},set:function(t){e=t}});var t,e,n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(t){return t};this.scope&&(t=this.scope.internal.getEncryptor(this.objId));var e,n=[];for(e in n.push("<<"),r)n.push("/"+e+" ("+R(t(r[e]))+")");return n.push(">>"),n.join("\n")},set:function(t){"object"===(0,o.default)(t)&&(r=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(t){"string"==typeof t&&(r.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(t){n="/"+t}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=tk.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};G(t_,tf),tb.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var e in this.Kids)if(this.Kids.hasOwnProperty(e)){var n=this.Kids[e];n.appearanceStreamContent=t.createAppearanceStream(n.optionName),n.caption=t.getCA()}},tb.prototype.createOption=function(t){var e=new t_;return e.Parent=this,e.optionName=t,this.Kids.push(e),tF.call(this.scope,e),e};var tB=function(){ty.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=tk.CheckBox.createAppearanceStream()};G(tB,ty);var tx=function(){tf.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,13)},set:function(t){!0==!!t?this.Ff=$(this.Ff,13):this.Ff=tt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,21)},set:function(t){!0==!!t?this.Ff=$(this.Ff,21):this.Ff=tt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,23)},set:function(t){!0==!!t?this.Ff=$(this.Ff,23):this.Ff=tt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,24)},set:function(t){!0==!!t?this.Ff=$(this.Ff,24):this.Ff=tt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,25)},set:function(t){!0==!!t?this.Ff=$(this.Ff,25):this.Ff=tt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,26)},set:function(t){!0==!!t?this.Ff=$(this.Ff,26):this.Ff=tt(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){Number.isInteger(e)&&(t=e)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};G(tx,tf);var tC=function(){tx.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Z(this.Ff,14)},set:function(t){!0==!!t?this.Ff=$(this.Ff,14):this.Ff=tt(this.Ff,14)}}),this.password=!0};G(tC,tx);var tk={CheckBox:{createAppearanceStream:function(){return{N:{On:tk.CheckBox.YesNormal},D:{On:tk.CheckBox.YesPushDown,Off:tk.CheckBox.OffPushDown}}},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),o=tr(t,t.caption);return n.push("0.749023 g"),n.push("0 0 "+V(tk.internal.getWidth(t))+" "+V(tk.internal.getHeight(t))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+r+" "+V(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),e.stream=n.join("\n"),e},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,r=t.scope.__private__.encodeColorString(t.color),i=[],o=tk.internal.getHeight(t),A=tk.internal.getWidth(t),s=tr(t,t.caption);return i.push("1 g"),i.push("0 0 "+V(A)+" "+V(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+V(A-1)+" "+V(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+V(s.fontSize)+" Tf "+r),i.push(s.text),i.push("ET"),i.push("Q"),e.stream=i.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+V(tk.internal.getWidth(t))+" "+V(tk.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}},RadioButton:{Circle:{createAppearanceStream:function(t){var e={D:{Off:tk.RadioButton.Circle.OffPushDown},N:{}};return e.N[t]=tk.RadioButton.Circle.YesNormal,e.D[t]=tk.RadioButton.Circle.YesPushDown,e},getCA:function(){return"l"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=[],r=tk.internal.getWidth(t)<=tk.internal.getHeight(t)?tk.internal.getWidth(t)/4:tk.internal.getHeight(t)/4,i=Number(((r=Number((.9*r).toFixed(5)))*tk.internal.Bezier_C).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+z(tk.internal.getWidth(t)/2)+" "+z(tk.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=tk.internal.getWidth(t)<=tk.internal.getHeight(t)?tk.internal.getWidth(t)/4:tk.internal.getHeight(t)/4,i=Number((2*(r=Number((.9*r).toFixed(5)))).toFixed(5)),o=Number((i*tk.internal.Bezier_C).toFixed(5)),A=Number((r*tk.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+z(tk.internal.getWidth(t)/2)+" "+z(tk.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+z(tk.internal.getWidth(t)/2)+" "+z(tk.internal.getHeight(t)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+A+" "+A+" "+r+" 0 "+r+" c"),n.push("-"+A+" "+r+" -"+r+" "+A+" -"+r+" 0 c"),n.push("-"+r+" -"+A+" -"+A+" -"+r+" 0 -"+r+" c"),n.push(A+" -"+r+" "+r+" -"+A+" "+r+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[],r=tk.internal.getWidth(t)<=tk.internal.getHeight(t)?tk.internal.getWidth(t)/4:tk.internal.getHeight(t)/4,i=Number((2*(r=Number((.9*r).toFixed(5)))).toFixed(5)),o=Number((i*tk.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+z(tk.internal.getWidth(t)/2)+" "+z(tk.internal.getHeight(t)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),e.stream=n.join("\n"),e}},Cross:{createAppearanceStream:function(t){var e={D:{Off:tk.RadioButton.Cross.OffPushDown},N:{}};return e.N[t]=tk.RadioButton.Cross.YesNormal,e.D[t]=tk.RadioButton.Cross.YesPushDown,e},getCA:function(){return"8"},YesNormal:function(t){var e=W(t);e.scope=t.scope;var n=[],r=tk.internal.calculateCross(t);return n.push("q"),n.push("1 1 "+V(tk.internal.getWidth(t)-2)+" "+V(tk.internal.getHeight(t)-2)+" re"),n.push("W"),n.push("n"),n.push(V(r.x1.x)+" "+V(r.x1.y)+" m"),n.push(V(r.x2.x)+" "+V(r.x2.y)+" l"),n.push(V(r.x4.x)+" "+V(r.x4.y)+" m"),n.push(V(r.x3.x)+" "+V(r.x3.y)+" l"),n.push("s"),n.push("Q"),e.stream=n.join("\n"),e},YesPushDown:function(t){var e=W(t);e.scope=t.scope;var n=tk.internal.calculateCross(t),r=[];return r.push("0.749023 g"),r.push("0 0 "+V(tk.internal.getWidth(t))+" "+V(tk.internal.getHeight(t))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+V(tk.internal.getWidth(t)-2)+" "+V(tk.internal.getHeight(t)-2)+" re"),r.push("W"),r.push("n"),r.push(V(n.x1.x)+" "+V(n.x1.y)+" m"),r.push(V(n.x2.x)+" "+V(n.x2.y)+" l"),r.push(V(n.x4.x)+" "+V(n.x4.y)+" m"),r.push(V(n.x3.x)+" "+V(n.x3.y)+" l"),r.push("s"),r.push("Q"),e.stream=r.join("\n"),e},OffPushDown:function(t){var e=W(t);e.scope=t.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+V(tk.internal.getWidth(t))+" "+V(tk.internal.getHeight(t))+" re"),n.push("f"),e.stream=n.join("\n"),e}}},createDefaultAppearanceStream:function(t){var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,n=t.scope.__private__.encodeColorString(t.color);return"/"+e+" "+t.fontSize+" Tf "+n}};tk.internal={Bezier_C:.551915024494,calculateCross:function(t){var e=tk.internal.getWidth(t),n=tk.internal.getHeight(t),r=Math.min(e,n);return{x1:{x:(e-r)/2,y:(n-r)/2+r},x2:{x:(e-r)/2+r,y:(n-r)/2},x3:{x:(e-r)/2,y:(n-r)/2},x4:{x:(e-r)/2+r,y:(n-r)/2+r}}}},tk.internal.getWidth=function(t){var e=0;return"object"===(0,o.default)(t)&&(e=q(t.Rect[2])),e},tk.internal.getHeight=function(t){var e=0;return"object"===(0,o.default)(t)&&(e=q(t.Rect[3])),e};var tF=O.addField=function(t){if(ta(this,t),!(t instanceof tf))throw Error("Invalid argument passed to jsPDF.addField.");return t.scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};O.AcroFormChoiceField=tp,O.AcroFormListBox=tg,O.AcroFormComboBox=tm,O.AcroFormEditBox=tv,O.AcroFormButton=ty,O.AcroFormPushButton=tw,O.AcroFormRadioButton=tb,O.AcroFormCheckBox=tB,O.AcroFormTextField=tx,O.AcroFormPasswordField=tC,O.AcroFormAppearance=tk,O.AcroForm={ChoiceField:tp,ListBox:tg,ComboBox:tm,EditBox:tv,Button:ty,PushButton:tw,RadioButton:tb,CheckBox:tB,TextField:tx,PasswordField:tC,Appearance:tk},P.AcroForm={ChoiceField:tp,ListBox:tg,ComboBox:tm,EditBox:tv,Button:ty,PushButton:tw,RadioButton:tb,CheckBox:tB,TextField:tx,PasswordField:tC,Appearance:tk};var tE=P.AcroForm;function tQ(t){return t.reduce(function(t,e,n){return t[e]=n,t},{})}(tH=P.API).__addimage__={},tR="UNKNOWN",tK={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},tV=tH.__addimage__.getImageFileTypeByImageData=function(t,e){var n,r,i,o,A,s=tR;if("RGBA"===(e=e||tR)||void 0!==t.data&&t.data instanceof Uint8ClampedArray&&"height"in t&&"width"in t)return"RGBA";if(t9(t))for(A in tK)for(i=tK[A],n=0;n>"}),"transparency"in e&&Array.isArray(e.transparency)){for(var A="",s=0,a=e.transparency.length;s>",d.content=r;var m=d.objId+" 0 R";r="<>",this.internal.write(r);break;case"link":if(e.options.name){var y=this.annotations._nameMap[e.options.name];e.options.pageNumber=y.page,e.options.top=y.y}else e.options.top||(e.options.top=0);if(n="/Rect ["+e.finalBounds.x+" "+e.finalBounds.y+" "+e.finalBounds.w+" "+e.finalBounds.h+"] ",r="",e.options.url)r="<>";else if(e.options.pageNumber)switch(r="<>",this.internal.write(r))}}this.internal.write("]")}}]),ei.createAnnotation=function(t){var e=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":e.pageContext.annotations.push(t)}},ei.link=function(t,e,n,r,i){var o=this.internal.getCurrentPageInfo(),A=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:A(t),y:s(e),w:A(t+n),h:s(e+r)},options:i,type:"link"})},ei.textWithLink=function(t,e,n,r){var i,o,A=this.getTextWidth(t),s=this.internal.getLineHeight()/this.internal.scaleFactor;return void 0!==r.maxWidth?(o=r.maxWidth,i=Math.ceil(s*this.splitTextToSize(t,o).length)):(o=A,i=s),this.text(t,e,n,r),n+=.2*s,"center"===r.align&&(e-=A/2),"right"===r.align&&(e-=A),this.link(e,n-s,o,i,r),A},ei.getTextWidth=function(t){var e=this.internal.getFontSize();return this.getStringUnitWidth(t)*e/this.internal.scaleFactor},/** * @license * Copyright (c) 2017 Aras Abbasi * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */function(t){var e={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];t.__arabicParser__={};var o=t.__arabicParser__.isInArabicSubstitutionA=function(t){return void 0!==e[t.charCodeAt(0)]},A=t.__arabicParser__.isArabicLetter=function(t){return"string"==typeof t&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(t)},s=t.__arabicParser__.isArabicEndLetter=function(t){return A(t)&&o(t)&&e[t.charCodeAt(0)].length<=2},a=t.__arabicParser__.isArabicAlfLetter=function(t){return A(t)&&i.indexOf(t.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(t){return A(t)&&o(t)&&e[t.charCodeAt(0)].length>=1};var l=t.__arabicParser__.arabicLetterHasFinalForm=function(t){return A(t)&&o(t)&&e[t.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(t){return A(t)&&o(t)&&e[t.charCodeAt(0)].length>=3};var c=t.__arabicParser__.arabicLetterHasMedialForm=function(t){return A(t)&&o(t)&&4==e[t.charCodeAt(0)].length},u=t.__arabicParser__.resolveLigatures=function(t){var e=0,r=n,i="",o=0;for(e=0;e>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+e+" 0 R")})),this},eA=P.API,(es=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(e){t=e}});var e=150;Object.defineProperty(this,"width",{get:function(){return e},set:function(t){e=isNaN(t)||!1===Number.isInteger(t)||t<0?150:t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(t){n=isNaN(t)||!1===Number.isInteger(t)||t<0?300:t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(t){r=t}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(t){i=t}}),Object.defineProperty(this,"parentNode",{})}).prototype.getContext=function(t,e){var n;if("2d"!==(t=t||"2d"))return null;for(n in e)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=e[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},es.prototype.toDataURL=function(){throw Error("toDataURL is not implemented.")},eA.events.push(["initialized",function(){this.canvas=new es,this.canvas.pdf=this}]),ea=P.API,el={left:0,top:0,bottom:0,right:0},ec=!1,eu=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},el),this.internal.__cell__.margins.width=this.getPageWidth(),eh.call(this))},eh=function(){this.internal.__cell__.lastCell=new ed,this.internal.__cell__.pages=1},(ed=function(){var t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var e=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(t){n=t}});var r=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return r},set:function(t){r=t}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(t){i=t}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(t){o=t}});var A=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return A},set:function(t){A=t}}),this}).prototype.clone=function(){return new ed(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ed.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},ea.setHeaderFunction=function(t){return eu.call(this),this.internal.__cell__.headerFunction="function"==typeof t?t:void 0,this},ea.getTextDimensions=function(t,e){eu.call(this);var n=(e=e||{}).fontSize||this.getFontSize(),r=e.font||this.getFont(),i=e.scaleFactor||this.internal.scaleFactor,o=0,A=0,s=0,a=this;if(!Array.isArray(t)&&"string"!=typeof t){if("number"!=typeof t)throw Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");t=String(t)}var l=e.maxWidth;l>0?"string"==typeof t?t=this.splitTextToSize(t,l):"[object Array]"===Object.prototype.toString.call(t)&&(t=t.reduce(function(t,e){return t.concat(a.splitTextToSize(e,l))},[])):t=Array.isArray(t)?t:[t];for(var c=0;cthis.getPageHeight()?(this.cellAddPage(),t.y=r.top,o&&i&&(this.printHeaderRow(t.lineNumber,!0),t.y+=i[0].height)):t.y=e.y+e.height||t.y),void 0!==t.text[0]&&(this.rect(t.x,t.y,t.width,t.height,!0===ec?"FD":void 0),"right"===t.align?this.text(t.text,t.x+t.width-n,t.y+n,{align:"right",baseline:"top"}):"center"===t.align?this.text(t.text,t.x+t.width/2,t.y+n,{align:"center",baseline:"top",maxWidth:t.width-n-n}):this.text(t.text,t.x+n,t.y+n,{align:"left",baseline:"top",maxWidth:t.width-n-n})),this.internal.__cell__.lastCell=t,this},ea.table=function(t,e,n,r,i){if(eu.call(this),!n)throw Error("No data for PDF table.");var A,s,a,l,c=[],u=[],h=[],d={},f={},p=[],g=[],m=(i=i||{}).autoSize||!1,v=!1!==i.printHeaders,y=i.css&&void 0!==i.css["font-size"]?16*i.css["font-size"]:i.fontSize||12,w=i.margins||Object.assign({width:this.getPageWidth()},el),b="number"==typeof i.padding?i.padding:3,_=i.headerBackgroundColor||"#c8c8c8",B=i.headerTextColor||"#000";if(eh.call(this),this.internal.__cell__.printHeaders=v,this.internal.__cell__.margins=w,this.internal.__cell__.table_font_size=y,this.internal.__cell__.padding=b,this.internal.__cell__.headerBackgroundColor=_,this.internal.__cell__.headerTextColor=B,this.setFontSize(y),null==r)u=c=Object.keys(n[0]),h=c.map(function(){return"left"});else if(Array.isArray(r)&&"object"===(0,o.default)(r[0]))for(c=r.map(function(t){return t.name}),u=r.map(function(t){return t.prompt||t.name||""}),h=r.map(function(t){return t.align||"left"}),A=0;A0&&this.setTableHeaderRow(i),this.setFont(void 0,"normal"),ec=!1};var tS={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},tL=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],tU=tQ(tL),tI=[100,200,300,400,500,600,700,800,900],tj=tQ(tI);function tM(t){var e,n,r,i=t.family.replace(/"|'/g,"").toLowerCase(),o=tS[n=(n=t.style)||"normal"]?n:"normal",A=(e=t.weight)?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400,s="number"==typeof tU[r=(r=t.stretch)||"normal"]?r:"normal";return{family:i,style:o,weight:A,stretch:s,src:t.src||[],ref:t.ref||{name:i,style:[s,o,A].join(" ")}}}function tD(t,e,n,r){var i;for(i=n;i>=0&&i=0&&i=2?t[1]:e[0],e[2]=t.length>=3?t[2]:e[0],e[3]=t.length>=4?t[3]:e[1]),u.margin=e}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(t){o=t}});var A=0;Object.defineProperty(this,"lastBreak",{get:function(){return A},set:function(t){A=t}});var s=[];Object.defineProperty(this,"pageBreaks",{get:function(){return s},set:function(t){s=t}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(t){t instanceof h&&(u=t)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(t){u.path=t}});var a=[];Object.defineProperty(this,"ctxStack",{get:function(){return a},set:function(t){a=t}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(t){var e;e=f(t),this.ctx.fillStyle=e.style,this.ctx.isFillTransparent=0===e.a,this.ctx.fillOpacity=e.a,this.pdf.setFillColor(e.r,e.g,e.b,{a:e.a}),this.pdf.setTextColor(e.r,e.g,e.b,{a:e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(t){var e=f(t);this.ctx.strokeStyle=e.style,this.ctx.isStrokeTransparent=0===e.a,this.ctx.strokeOpacity=e.a,0===e.a?this.pdf.setDrawColor(255,255,255):(e.a,this.pdf.setDrawColor(e.r,e.g,e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(t){-1!==["butt","round","square"].indexOf(t)&&(this.ctx.lineCap=t,this.pdf.setLineCap(t))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(t){isNaN(t)||(this.ctx.lineWidth=t,this.pdf.setLineWidth(t))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(t){-1!==["bevel","round","miter"].indexOf(t)&&(this.ctx.lineJoin=t,this.pdf.setLineJoin(t))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(t){isNaN(t)||(this.ctx.miterLimit=t,this.pdf.setMiterLimit(t))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(t){this.ctx.textBaseline=t}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(t){-1!==["right","end","center","left","start"].indexOf(t)&&(this.ctx.textAlign=t)}});var l=null,c=null;Object.defineProperty(this,"fontFaces",{get:function(){return c},set:function(t){l=null,c=t}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(t){var e;if(this.ctx.font=t,null!==(e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(t))){var n=e[1],r=(e[2],e[3]),i=e[4],o=(e[5],e[6]),A=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===A?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===A?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(t){var e,n,r=[],i=t.trim();if(""===i)return ey;if(i in tN)return[tN[i]];for(;""!==i;){switch(n=null,e=(i=tO(i)).charAt(0)){case'"':case"'":n=function(t,e){for(var n=0;n=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var u="",h={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},d=0;d=2*Math.PI&&(r=0,i=2*Math.PI),this.path.push({type:"arc",x:t,y:e,radius:n,startAngle:r,endAngle:i,counterclockwise:o})},d.prototype.arcTo=function(t,e,n,r,i){throw Error("arcTo not implemented.")},d.prototype.rect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.rect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(t,e),this.lineTo(t+n,e),this.lineTo(t+n,e+r),this.lineTo(t,e+r),this.lineTo(t,e),this.lineTo(t+n,e),this.lineTo(t,e)},d.prototype.fillRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(t,e,n,r),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(t,e,n,r),this.stroke())},d.prototype.clearRect=function(t,e,n,r){if(isNaN(t)||isNaN(e)||isNaN(n)||isNaN(r))throw c.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(t,e,n,r))},d.prototype.save=function(t){t="boolean"!=typeof t||t;for(var e=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(t,e,n,r,i,o,A,s,c){var u=this.pdf.getImageProperties(t),h=1,d=1,f=1,p=1;void 0!==r&&void 0!==s&&(f=s/r,p=c/i,h=u.width/r*s/r,d=u.height/i*c/i),void 0===o&&(o=e,A=n,e=0,n=0),void 0!==r&&void 0===s&&(s=r,c=i),void 0===r&&void 0===s&&(s=u.width,c=u.height);for(var g,m=this.ctx.transform.decompose(),w=T(m.rotate.shx),B=new l,C=(B=(B=(B=B.multiply(m.translate)).multiply(m.skew)).multiply(m.scale)).applyToRectangle(new a(o-e*f,A-n*p,r*h,i*d)),k=y.call(this,C),F=[],E=0;EQ||Lm||C0)){for(;a>=0;a--)if(!0!==i[a-1].close&&!0!==i[a-1].begin){i[a-1].deltas.push(n),i[a-1].abs.push(s);break}}break;case"bct":n=[s.x1-o[A-1].x,s.y1-o[A-1].y,s.x2-o[A-1].x,s.y2-o[A-1].y,s.x-o[A-1].x,s.y-o[A-1].y],i[i.length-1].deltas.push(n);break;case"qct":var l=o[A-1].x+2/3*(s.x1-o[A-1].x),c=o[A-1].y+2/3*(s.y1-o[A-1].y),u=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),d=s.x,f=s.y;n=[l-o[A-1].x,c-o[A-1].y,u-o[A-1].x,h-o[A-1].y,d-o[A-1].x,f-o[A-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}r=e?null:"stroke"===t?"stroke":"fill";for(var m=!1,v=0;v=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale);var N="text"!==this.autoPaging;if(N||T.y+T.h<=L){if(N||T.y>=Q&&T.x<=I){var P=N?t.text:this.pdf.splitTextToSize(t.text,t.maxWidth||I-T.x)[0],O=b([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-M+Q+this.ctx.prevPageLastElemOffset)[0],H=N&&(E>B||E=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)}else t.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*t.scale),d=this.lineWidth,this.lineWidth=d*t.scale),this.pdf.text(t.text,i.x+this.posX,i.y+this.posY,{angle:t.angle,align:c,renderingMode:t.renderingMode,maxWidth:t.maxWidth}),t.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=d)},U=function(t,e,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(t+i)+" "+r(e+o)+" l")},I=function(t,e,n){return this.pdf.lines(t,e,n,null,null)},j=function(t,n,r,o,s,a,l,c){this.pdf.internal.out([e(i(r+t)),e(A(o+n)),e(i(s+t)),e(A(a+n)),e(i(l+t)),e(A(c+n)),"c"].join(" "))},M=function(t,e,n,r){for(var i=2*Math.PI,o=Math.PI/2;e>n;)e-=i;var A=Math.abs(n-e);A1e-5;){var c=l+a*Math.min(A,o);s.push(D.call(this,t,l,c)),A-=Math.abs(c-l),l=c}return s},D=function(t,e,n){var r=(n-e)/2,i=t*Math.cos(r),o=t*Math.sin(r),A=-o,s=i*i+A*A,a=s+i*i+A*o,l=4/3*(Math.sqrt(2*s*a)-a)/(i*o-A*i),c=i-l*A,u=A+l*i,h=-u,d=r+e,f=Math.cos(d),p=Math.sin(d);return{x1:t*Math.cos(e),y1:t*Math.sin(e),x2:c*f-u*p,y2:c*p+u*f,x3:c*f-h*p,y3:c*p+h*f,x4:t*Math.cos(n),y4:t*Math.sin(n)}},T=function(t){return 180*t/Math.PI},N=function(t,e,n,r,i,o){var A=t+.5*(n-t),s=e+.5*(r-e),l=i+.5*(n-i),c=o+.5*(r-o),u=Math.min(t,i,A,l),h=Math.min(e,o,s,c);return new a(u,h,Math.max(t,i,A,l)-u,Math.max(e,o,s,c)-h)},P=function(t,e,n,r,i,o,A,s){var l,c,u,h,d,f,p,g,m,v,y,w,b,_,B=n-t,x=r-e,C=i-n,k=o-r,F=A-i,E=s-o;for(c=0;c<41;c++)m=(p=(u=t+(l=c/40)*B)+l*((d=n+l*C)-u))+l*(d+l*(i+l*F-d)-p),v=(g=(h=e+l*x)+l*((f=r+l*k)-h))+l*(f+l*(o+l*E-f)-g),0==c?(y=m,w=v,b=m,_=v):(y=Math.min(y,m),w=Math.min(w,v),b=Math.max(b,m),_=Math.max(_,v));return new a(Math.round(y),Math.round(w),Math.round(b-y),Math.round(_-w))},O=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var t=JSON.stringify({lineDash:this.ctx.lineDash,lineDashOffset:this.ctx.lineDashOffset});this.prevLineDash!==t&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=t)}}}(P.API),ew=P.API,eb=function(t){var e,n,r,i,o,A,s,a,l,c;for(/[^\x00-\xFF]/.test(t),n=[],r=0,i=(t+=e="\0\0\0\0".slice(t.length%4||4)).length;i>r;r+=4)0!==(o=(t.charCodeAt(r)<<24)+(t.charCodeAt(r+1)<<16)+(t.charCodeAt(r+2)<<8)+t.charCodeAt(r+3))?(A=(o=((o=((o=((o=(o-(c=o%85))/85)-(l=o%85))/85)-(a=o%85))/85)-(s=o%85))/85)%85,n.push(A+33,s+33,a+33,l+33,c+33)):n.push(122);return function(t,e){for(var n=e;n>0;n--)t.pop()}(n,e.length),String.fromCharCode.apply(String,n)+"~>"},e_=function(t){var e,n,r,i,o,A=String,s="length",a="charCodeAt",l="slice",c="replace";for(t[l](-2),t=t[l](0,-2)[c](/\s/g,"")[c]("z","!!!!!"),r=[],i=0,o=(t+=e="uuuuu"[l](t[s]%5||5))[s];o>i;i+=5)n=52200625*(t[a](i)-33)+614125*(t[a](i+1)-33)+7225*(t[a](i+2)-33)+85*(t[a](i+3)-33)+(t[a](i+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(t,e){for(var n=e;n>0;n--)t.pop()}(r,e[s]),A.fromCharCode.apply(A,r)},eB=function(t){var e=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(t=t.replace(/\s/g,"")).indexOf(">")&&(t=t.substr(0,t.indexOf(">"))),t.length%2&&(t+="0"),!1===e.test(t))return"";for(var n="",r=0;r",i.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=ex(r),i.push("/FlateDecode");break;default:throw Error('The filter: "'+e[n]+'" is not implemented')}return{data:r,reverseChain:i.reverse().join(" ")}},(eC=P.API).loadFile=function(t,e,n){return function(t,e,n){e=!1!==e,n="function"==typeof n?n:function(){};var r=void 0;try{r=function(t,e,n){var r=new XMLHttpRequest,i=0,o=function(t){var e=t.length,n=[],r=String.fromCharCode;for(i=0;il&&(a=c,c=l,l=a);else{if("l"!==t&&"landscape"!==t)throw"Invalid orientation: "+t;t="l",l>c&&(a=c,c=l,l=a)}return{width:c,height:l,unit:e,k:i,orientation:t}},e.html=function(t,e){(e=e||{}).callback=e.callback||function(){},e.html2canvas=e.html2canvas||{},e.html2canvas.canvas=e.html2canvas.canvas||this.canvas,e.jsPDF=e.jsPDF||this,e.fontFaces=e.fontFaces?e.fontFaces.map(tM):null;var n=new s(e);return e.worker?n:n.from(t).doCallback()}}(P.API),P.API.addJS=function(t){return ev=t,this.internal.events.subscribe("postPutResources",function(){eg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(eg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),em=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+ev+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==eg&&void 0!==em&&this.internal.out("/Names <>")}),this},(ek=P.API).events.push(["postPutResources",function(){var t=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var e=this.outline.render().split(/\r\n/),n=0;n> endobj")}var c=this.internal.newObject();for(this.internal.write("<< /Names [ "),n=0;n>","endobj"),eF=this.internal.newObject(),this.internal.write("<< /Dests "+c+" 0 R"),this.internal.write(">>","endobj")}}]),ek.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+eF+" 0 R"))}]),ek.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(t,e,n){var r={title:e,options:n,children:[]};return null==t&&(t=this.root),t.children.push(r),r},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(e){e.id=t.internal.newObjectDeferred();for(var n=0;n0&&(this.line("/First "+this.makeRef(t.children[0])),this.line("/Last "+this.makeRef(t.children[t.children.length-1]))),this.line("/Count "+this.count_r({count:0},t)),this.objEnd()},t.outline.renderItems=function(e){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r0&&this.line("/Prev "+this.makeRef(e.children[r-1])),r0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var A=t.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+A.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s> \r\nendobj\r\n"},t.outline.count_r=function(t,e){for(var n=0;ne;0<=e?++h:--h)t.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(e),this.transparency.indexed.length>r)throw Error("More transparent colors than palette size");if((c=r-this.transparency.indexed.length)>0)for(d=0;0<=c?dc;0<=c?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(e)[0];break;case 2:this.transparency.rgb=this.read(e)}break;case"tEXt":s=(u=this.read(e)).indexOf(0),a=String.fromCharCode.apply(String,u.slice(0,s)),this.text[a]=String.fromCharCode.apply(String,u.slice(s+1));break;case"IEND":return A&&this.animation.frames.push(A),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=4===(f=this.colorType)||6===f,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=e}if(this.pos+=4,this.pos>this.data.length)throw Error("Incomplete or corrupt PNG file")}}t.prototype.read=function(t){var e,n;for(n=[],e=0;0<=t?et;0<=t?++e:--e)n.push(this.data[this.pos++]);return n},t.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},t.prototype.decodePixels=function(t){var e=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*e),r=0,i=this;if(null==t&&(t=this.imgData),0===t.length)return new Uint8Array(0);function o(o,A,s,a){var l,c,u,h,d,f,p,g,m,v,y,w,b,_,B,x,C,k,F,E,Q,S=Math.ceil((i.width-o)/s),L=Math.ceil((i.height-A)/a),U=i.width==S&&i.height==L;for(_=e*S,w=U?n:new Uint8Array(_*L),f=t.length,b=0,c=0;b1&&n/i, 2013. * * https://github.com/deanm/omggif * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * omggif is a JavaScript implementation of a GIF 89a encoder and decoder, * including animation and compression. It does not rely on any specific * underlying system, so should run in the browser, Node, or Plask. */function eD(t){var e=0;if(71!==t[e++]||73!==t[e++]||70!==t[e++]||56!==t[e++]||56!=(t[e++]+1&253)||97!==t[e++])throw Error("Invalid GIF 87a/89a header.");var n=t[e++]|t[e++]<<8,r=t[e++]|t[e++]<<8,i=t[e++],o=1<<(7&i)+1;t[e++],t[e++];var A=null,s=null;i>>7&&(A=e,s=o,e+=3*o);var a=!0,l=[],c=0,u=null,h=0,d=null;for(this.width=n,this.height=r;a&&e=0))throw Error("Invalid block size");if(0===p)break;e+=p}break;case 249:if(4!==t[e++]||0!==t[e+4])throw Error("Invalid graphics extension block.");var f=t[e++];c=t[e++]|t[e++]<<8,u=t[e++],0==(1&f)&&(u=null),h=f>>2&7,e++;break;case 254:for(;;){if(!((p=t[e++])>=0))throw Error("Invalid block size");if(0===p)break;e+=p}break;default:throw Error("Unknown graphic control label: 0x"+t[e-1].toString(16))}break;case 44:var p,g=t[e++]|t[e++]<<8,m=t[e++]|t[e++]<<8,v=t[e++]|t[e++]<<8,y=t[e++]|t[e++]<<8,w=t[e++],b=w>>6&1,_=1<<(7&w)+1,B=A,x=s,C=!1;w>>7&&(C=!0,B=e,x=_,e+=3*_);var k=e;for(e++;;){if(!((p=t[e++])>=0))throw Error("Invalid block size");if(0===p)break;e+=p}l.push({x:g,y:m,width:v,height:y,has_local_palette:C,palette_offset:B,palette_size:x,data_offset:k,data_length:e-k,transparent_index:u,interlaced:!!b,delay:c,disposal:h});break;case 59:a=!1;break;default:throw Error("Unknown gif block: 0x"+t[e-1].toString(16))}this.numFrames=function(){return l.length},this.loopCount=function(){return d},this.frameInfo=function(t){if(t<0||t>=l.length)throw Error("Frame index out of range.");return l[t]},this.decodeAndBlitFrameBGRA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,A=new Uint8Array(o);eT(t,i.data_offset,A,o);var s=i.palette_offset,a=i.transparent_index;null===a&&(a=256);var l=i.width,c=n-l,u=l,h=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),f=h,p=4*c;!0===i.interlaced&&(p+=4*n*7);for(var g=8,m=0,v=A.length;m=d&&(p=4*c+4*n*(g-1),f=h+(l+c)*(g<<1),g>>=1)),y===a)f+=4;else{var w=t[s+3*y],b=t[s+3*y+1],_=t[s+3*y+2];r[f++]=_,r[f++]=b,r[f++]=w,r[f++]=255}--u}},this.decodeAndBlitFrameRGBA=function(e,r){var i=this.frameInfo(e),o=i.width*i.height,A=new Uint8Array(o);eT(t,i.data_offset,A,o);var s=i.palette_offset,a=i.transparent_index;null===a&&(a=256);var l=i.width,c=n-l,u=l,h=4*(i.y*n+i.x),d=4*((i.y+i.height)*n+i.x),f=h,p=4*c;!0===i.interlaced&&(p+=4*n*7);for(var g=8,m=0,v=A.length;m=d&&(p=4*c+4*n*(g-1),f=h+(l+c)*(g<<1),g>>=1)),y===a)f+=4;else{var w=t[s+3*y],b=t[s+3*y+1],_=t[s+3*y+2];r[f++]=w,r[f++]=b,r[f++]=_,r[f++]=255}--u}}}function eT(t,e,n,r){for(var i=t[e++],o=1<>=a,u-=a,m!==o){if(m===A)break;for(var v=mo;)w=p[w]>>8,++y;var b=w;if(d+y+(v!==m?1:0)>r)return void c.log("Warning, gif stream longer than expected.");n[d++]=b;var _=d+=y;for(v!==m&&(n[d++]=b),w=v;y--;)w=p[w],n[--_]=255&w,w>>=8;null!==g&&s<4096&&(p[s++]=g<<8|b,s>=l+1&&a<12&&(++a,l=l<<1|1)),g=m}else s=A+1,l=(1<<(a=i+1))-1,g=null}return d!==r&&c.log("Warning, gif stream shorter than expected."),n}/** * @license Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Adobe Systems Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */function eN(t){var e,n,r,i,o,A=Math.floor,s=Array(64),a=Array(64),l=Array(64),c=Array(64),u=Array(65535),h=Array(65535),d=Array(64),f=Array(64),p=[],g=0,m=7,v=Array(64),y=Array(64),w=Array(64),b=Array(256),_=Array(2048),B=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],x=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],F=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],E=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Q=[0,1,2,3,4,5,6,7,8,9,10,11],S=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],L=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function U(t,e){for(var n=0,r=0,i=[],o=1;o<=16;o++){for(var A=1;A<=t[o];A++)i[e[r]]=[],i[e[r]][0]=n,i[e[r]][1]=o,r++,n++;n*=2}return i}function I(t){for(var e=t[0],n=t[1]-1;n>=0;)e&1<>8&255),j(255&t)}function D(t,e,n,r,i){for(var o,A=i[0],s=i[240],a=function(t,e){var n,r,i,o,A,s,a,l,c,u,h=0;for(c=0;c<8;++c){n=t[h],r=t[h+1],i=t[h+2],o=t[h+3],A=t[h+4],s=t[h+5],a=t[h+6];var f=n+(l=t[h+7]),p=n-l,g=r+a,m=r-a,v=i+s,y=i-s,w=o+A,b=o-A,_=f+w,B=f-w,x=g+v,C=g-v;t[h]=_+x,t[h+4]=_-x;var k=.707106781*(C+B);t[h+2]=B+k,t[h+6]=B-k;var F=.382683433*((_=b+y)-(C=m+p)),E=.5411961*_+F,Q=1.306562965*C+F,S=.707106781*(x=y+m),L=p+S,U=p-S;t[h+5]=U+E,t[h+3]=U-E,t[h+1]=L+Q,t[h+7]=L-Q,h+=8}for(h=0,c=0;c<8;++c){n=t[h],r=t[h+8],i=t[h+16],o=t[h+24],A=t[h+32],s=t[h+40],a=t[h+48];var I=n+(l=t[h+56]),j=n-l,M=r+a,D=r-a,T=i+s,N=i-s,P=o+A,O=o-A,H=I+P,R=I-P,K=M+T,V=M-T;t[h]=H+K,t[h+32]=H-K;var z=.707106781*(V+R);t[h+16]=R+z,t[h+48]=R-z;var G=.382683433*((H=O+N)-(V=D+j)),q=.5411961*H+G,W=1.306562965*V+G,Y=.707106781*(K=N+D),X=j+Y,J=j-Y;t[h+40]=J+q,t[h+24]=J-q,t[h+8]=X+W,t[h+56]=X-W,h++}for(c=0;c<64;++c)u=t[c]*e[c],d[c]=u>0?u+.5|0:u-.5|0;return d}(t,e),l=0;l<64;++l)f[B[l]]=a[l];var c=f[0]-n;n=f[0],0==c?I(r[0]):(I(r[h[o=32767+c]]),I(u[o]));for(var p=63;p>0&&0==f[p];)p--;if(0==p)return I(A),n;for(var g,m=1;m<=p;){for(var v=m;0==f[m]&&m<=p;)++m;var y=m-v;if(y>=16){g=y>>4;for(var w=1;w<=g;++w)I(s);y&=15}I(i[(y<<4)+h[o=32767+f[m]]]),I(u[o]),m++}return 63!=p&&I(A),n}function T(t){o!=(t=Math.min(Math.max(t,1),100))&&(function(t){for(var e=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var r=A((e[n]*t+50)/100);r=Math.min(Math.max(r,1),255),s[B[n]]=r}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var u=A((i[o]*t+50)/100);u=Math.min(Math.max(u,1),255),a[B[o]]=u}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,f=0;f<8;f++)for(var p=0;p<8;p++)l[d]=1/(s[B[d]]*h[f]*h[p]*8),c[d]=1/(a[B[d]]*h[f]*h[p]*8),d++}(t<50?Math.floor(5e3/t):Math.floor(200-2*t)),o=t)}this.encode=function(t,o){o&&T(o),p=[],g=0,m=7,M(65496),M(65504),M(16),j(74),j(70),j(73),j(70),j(0),j(1),j(1),j(0),M(1),M(1),j(0),j(0),function(){M(65499),M(132),j(0);for(var t=0;t<64;t++)j(s[t]);j(1);for(var e=0;e<64;e++)j(a[e])}(),d=t.width,f=t.height,M(65472),M(17),j(8),M(f),M(d),j(3),j(1),j(17),j(0),j(2),j(17),j(1),j(3),j(17),j(1),function(){M(65476),M(418),j(0);for(var t=0;t<16;t++)j(x[t+1]);for(var e=0;e<=11;e++)j(C[e]);j(16);for(var n=0;n<16;n++)j(k[n+1]);for(var r=0;r<=161;r++)j(F[r]);j(1);for(var i=0;i<16;i++)j(E[i+1]);for(var o=0;o<=11;o++)j(Q[o]);j(17);for(var A=0;A<16;A++)j(S[A+1]);for(var s=0;s<=161;s++)j(L[s])}(),M(65498),M(12),j(3),j(1),j(0),j(2),j(17),j(3),j(17),j(0),j(63),j(0);var A=0,u=0,h=0;g=0,m=7,this.encode.displayName="_encode_";for(var d,f,b,B,U,N,P,O,H,R,K,V=t.data,z=t.width,G=t.height,q=4*z,W=0;W>3)*q+(H=4*(7&K)),W+R>=G&&(O-=q*(W+1+R-G)),b+H>=q&&(O-=b+H-q+4),B=V[O++],U=V[O++],N=V[O++],v[K]=(_[B]+_[U+256>>0]+_[N+512>>0]>>16)-128,y[K]=(_[B+768>>0]+_[U+1024>>0]+_[N+1280>>0]>>16)-128,w[K]=(_[B+1280>>0]+_[U+1536>>0]+_[N+1792>>0]>>16)-128;A=D(v,l,A,e,r),u=D(y,c,u,n,i),h=D(w,c,h,n,i),b+=32}W+=8}if(m>=0){var Y=[];Y[1]=m+1,Y[0]=(1<>0]=38470*t,_[t+512>>0]=7471*t+32768,_[t+768>>0]=-11059*t,_[t+1024>>0]=-21709*t,_[t+1280>>0]=32768*t+8421375,_[t+1536>>0]=-27439*t,_[t+1792>>0]=-5329*t}(),T(t)}/** * @license * Copyright (c) 2017 Aras Abbasi * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */function eP(t,e){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!e,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function eO(t){function e(t){if(!t)throw Error("assert :P")}function n(t,e,n){for(var r=0;4>r;r++)if(t[e+r]!=n.charCodeAt(r))return!0;return!1}function r(t,e,n,r,i){for(var o=0;or+1?[]:new e),!(i.length>>0;t&n;)n>>>=1;return n?(t&n-1)+n:t}function l(t,n,r,i,o){e(!(i%r));do t[n+(i-=r)]=o;while(0=A),512>=A)var s=o(512);else if(null==(s=o(A)))return 0;return function(t,n,r,i,A,s){var c,h,d=n,f=1<c;++c){if(p[c]>1<(_-=p[c]))return 0;for(;0=c;++c,A<<=1){if(b+=_<<=1,0>(_-=p[c]))return 0;for(;0v&&!(0>=(m-=p[v]));)++v,m<<=1;f+=B=1<<(m=v-r),t[n+(v=w&y)].g=m+r,t[n+v].value=d-n-v}i.g=c-r,i.value=s[h++],l(t,d+(w>>r),A,B,i),w=a(w,c)}}return b!=2*g[15]-1?0:f}(t,n,r,i,A,s)}function u(){this.value=this.g=0}function h(){this.value=this.g=0}function d(){this.G=A(5,u),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=A(ng,h)}function f(t,n,r,i){e(null!=t),e(null!=n),e(2147483648>i),t.Ca=254,t.I=0,t.b=-8,t.Ka=0,t.oa=n,t.pa=r,t.Jd=n,t.Yc=r+i,t.Zc=4<=i?r+i-4+1:r,k(t)}function p(t,e){for(var n=0;0i),t.Sb=i,t.Ra=0,t.u=0,t.h=0,4>>=8,t.Ra+=t.oa[t.pa+t.bb]<>>0,++t.bb,t.u-=8;B(t)&&(t.h=1,t.u=0)}function y(t,n){if(e(0<=n),!t.h&&n<=nv){var r=_(t)&nm[n];return t.u+=n,v(t),r}return t.h=1,t.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function b(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function _(t){return t.Ra>>>(t.u&ny-1)>>>0}function B(t){return e(t.bb<=t.Sb),t.h||t.bb==t.Sb&&t.u>ny}function x(t,e){t.u=e,t.h=B(t)}function C(t){t.u>=nw&&(e(t.u>=nw),v(t))}function k(t){e(null!=t&&null!=t.oa),t.pa>>0,t.b+=8):(e(null!=t&&null!=t.oa),t.pat.b&&k(t);var r=t.b,i=n*e>>>8,o=(t.I>>>r>i)+0;for(o?(n-=i,t.I-=i+1<>>0):n=i+1,r=n,i=0;256<=r;)i+=8,r>>=8;return r=7^i+nb[r],t.b-=r,t.Ca=(n<>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=n>>0&255}function S(t,e){return t[e+0]<<0|t[e+1]<<8}function L(t,e){return S(t,e)|t[e+2]<<16}function U(t,e){return S(t,e)|S(t,e+2)<<16}function I(t,n){return e(null!=t),e(0=o||0>=A?0:(r[0]=o,i[0]=A,1)}function T(t,e){return t+(1<>>e}function N(t,e){return((4278255360&t)+(4278255360&e)>>>0&4278255360)+((16711935&t)+(16711935&e)>>>0&16711935)>>>0}function P(e,n){t[n]=function(n,r,i,o,A,s,a){var l;for(l=0;l>>1)+(t&e)>>>0}function R(t){return 0<=t&&256>t?t:0>t?0:255>1))}function V(t,e,n){return Math.abs(e-n)-Math.abs(t-n)}function z(t,e,n,r,i,o,A){for(r=o[A-1],n=0;n>8&255,a=16711935&(a=(a=16711935&A)+((s<<16)+s));r[i+o]=(4278255360&A)+a>>>0}}function q(t,e){e.jd=t>>0&255,e.hd=t>>8&255,e.ud=t>>16&255}function W(t,e,n,r,i,o){var A;for(A=0;A>>8,l=s,c=255&(c=(c=s>>>16)+((t.jd<<24>>24)*(a<<24>>24)>>>5));l=255&(l=(l+=(t.hd<<24>>24)*(a<<24>>24)>>>5)+((t.ud<<24>>24)*(c<<24>>24)>>>5)),i[o+A]=(4278255360&s)+(c<<16)+l}}function Y(e,n,r,i,o){t[n]=function(t,e,n,r,A,s,a,l,c){for(r=a;r>e.b,h=e.Ea,d=e.K[0],f=e.w;if(8>u)for(e=(1<>=u}else t["VP8LMapColor"+r](s,a,d,f,l,c,n,A,h)}}function X(t,e,n,r,i){for(n=e+n;e>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255}}function J(t,e,n,r,i){for(n=e+n;e>16&255,r[i++]=o>>8&255,r[i++]=o>>0&255,r[i++]=o>>24&255}}function Z(t,e,n,r,i){for(n=e+n;e>16&240|A>>12&15,A=A>>0&240|A>>28&15;r[i++]=o,r[i++]=A}}function $(t,e,n,r,i){for(n=e+n;e>16&248|A>>13&7,A=A>>5&224|A>>3&31;r[i++]=o,r[i++]=A}}function tt(t,e,n,r,i){for(n=e+n;e>0&255,r[i++]=o>>8&255,r[i++]=o>>16&255}}function te(t,e,n,i,o,A){if(0==A)for(n=e+n;e>24|A[1]>>8&65280|A[2]<<8&16711680|A[3]<<24)>>>0),o+=32;else r(i,o,t,e,n)}function tn(e,n){t[n][0]=t[e+"0"],t[n][1]=t[e+"1"],t[n][2]=t[e+"2"],t[n][3]=t[e+"3"],t[n][4]=t[e+"4"],t[n][5]=t[e+"5"],t[n][6]=t[e+"6"],t[n][7]=t[e+"7"],t[n][8]=t[e+"8"],t[n][9]=t[e+"9"],t[n][10]=t[e+"10"],t[n][11]=t[e+"11"],t[n][12]=t[e+"12"],t[n][13]=t[e+"13"],t[n][14]=t[e+"0"],t[n][15]=t[e+"0"]}function tr(t){return t==rc||t==ru||t==rh||t==rd}function ti(){this.eb=[],this.size=this.A=this.fb=0}function to(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function tA(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ti,this.f.kb=new to,this.sd=null}function ts(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ta(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function tl(t){return alert("todo:WebPSamplerProcessPlane"),t.T}function tc(t,e){var n=t.T,i=e.ba.f.RGBA,o=i.eb,A=i.fb+t.ka*i.A,s=rN[e.ba.S],a=t.y,l=t.O,c=t.f,u=t.N,h=t.ea,d=t.W,f=e.cc,p=e.dc,g=e.Mc,m=e.Nc,v=t.ka,y=t.ka+t.T,w=t.U,b=w+1>>1;for(0==v?s(a,l,null,null,c,u,h,d,c,u,h,d,o,A,null,null,w):(s(e.ec,e.fc,a,l,f,p,g,m,c,u,h,d,o,A-i.A,o,A,w),++n);v+2n,i=n==ri||n==rA||n==rs||n==ra||12==n||tr(n);if(e.memory=null,e.Ib=null,e.Jb=null,e.Nd=null,!nd(e.Oa,t,i?11:12))return 0;if(i&&tr(n)&&e6(),t.da)alert("todo:use_scaling");else{if(r){if(e.Ib=tl,t.Kb){if(n=t.U+1>>1,e.memory=o(t.U+2*n),null==e.memory)return 0;e.ec=e.memory,e.fc=0,e.cc=e.ec,e.dc=e.fc+t.U,e.Mc=e.cc,e.Nc=e.dc+n,e.Ib=tc,e6()}}else alert("todo:EmitYUV");i&&(e.Jb=tu,r&&e4())}if(r&&!rZ){for(t=0;256>t;++t)r$[t]=89858*(t-128)+rq>>rG,r2[t]=-22014*(t-128)+rq,r1[t]=-45773*(t-128),r0[t]=113618*(t-128)+rq>>rG;for(t=rW;t>rG,r5[t-rW]=tz(e,255),r4[t-rW]=tz(e+8>>4,15);rZ=1}return 1}function td(t){var n=t.ma,r=t.U,i=t.T;return e(!(1&t.ka)),0>=r||0>=i?0:(r=n.Ib(t,n),null!=n.Jb&&n.Jb(t,n,r),n.Dc+=r,1)}function tf(t){t.ma.memory=null}function tp(t,e,n,r){return 47!=y(t,8)?0:(e[0]=y(t,14)+1,n[0]=y(t,14)+1,r[0]=y(t,1),0!=y(t,3)?0:!t.h)}function tg(t,e){if(4>t)return t+1;var n=t-2>>1;return(2+(1&t)<>4)*t+(8-(15&n)))?n:1}function tv(t,e,n){var r=_(n),i=t[e+=255&r].g-8;return 0>>0,e(8>=r.g),t.g}function tw(t,n,r){var i=t.xc;return e((n=0==i?0:t.vc[t.md*(r>>i)+(n>>i)])>k.b)*x;mb&&(S=b),(0,nQ[F[E++]>>8&15])(f,p+ +Q,y,w+Q-b,S-Q,y,w+Q),Q=S}p+=b,w+=b,++m&B||(k+=x)}d!=u.nc&&r(c,l-g,c,l+(d-h-1)*g,g);break;case 1:for(g=f,v=p,b=(f=u.Ea)-(w=f&~(y=(p=1<>u.b)*m;h=o),0A.o&&(i=A.o),r=i?r=0:(o[0]+=4*A.v,A.ka=r-A.j,A.U=A.va-A.v,A.T=i-r,r=1),r){if(a=a[0],11>(r=t.ca).S){var u=r.f.RGBA,h=(i=r.S,o=A.U,A=A.T,c=u.eb,u.A),d=A;for(u=u.fb+t.Ma*u.A;0i){var o=t.l.width,A=r.ca,s=r.tb+o*i,a=t.V,l=t.Ba+t.c*i,c=t.gc;e(1==t.ab),e(3==c[0].hc),nF(c[0],i,n,a,l,A,s),tx(r,i,n,A,s,o)}t.C=t.Ma=n}function tk(t,n,r,i,o,A,s){var a=t.$/i,l=t.$%i,c=t.m,u=t.s,h=r+t.$,d=h;o=r+i*o;var f=r+i*A,p=280+u.ua,g=t.Pb?a:16777216,m=0=g){var k=h-r;e((g=t).Pb),g.wd=g.m,g.xd=k,0E.g?(x(b,b.u+E.g),k[F]=E.value,b=0):(x(b,b.u+E.g-256),e(256<=E.value),b=E.value),0==b&&(w=!0)}else b=tv(y.G[0],y.H[0],c)}if(c.h)break;if(w||256>b){if(!w){if(y.nd)n[h]=(y.qb|b<<8)>>>0;else{if(C(c),w=tv(y.G[1],y.H[1],c),C(c),k=tv(y.G[2],y.H[2],c),F=tv(y.G[3],y.H[3],c),c.h)break;n[h]=(F<<24|w<<16|b<<8|k)>>>0}}if(w=!1,++h,++l>=i&&(l=0,++a,null!=s&&a<=A&&!(a%16)&&s(t,a),null!=m))for(;d>>m.Mb]=b}else if(280>b){if(b=tg(b-256,c),k=tv(y.G[4],y.H[4],c),C(c),k=tm(i,k=tg(k,c)),c.h)break;if(h-r=i;)l-=i,++a,null!=s&&a<=A&&!(a%16)&&s(t,a);if(e(h<=o),l&v&&(y=tw(u,l,a)),null!=m)for(;d>>m.Mb]=b}else{if(!(b>>m.Mb]=b;b=h,e(!(w>>>(k=m).Xa)),n[b]=k.X[w],w=!0}w||e(c.h==B(c))}if(t.Pb&&c.h&&hA?A:a),t.a=0,t.$=h-r}return 1}return t.a=3,0}function tF(t){e(null!=t),t.vc=null,t.yc=null,t.Ya=null;var n=t.Wa;null!=n&&(n.X=null),t.vb=null,e(null!=t)}function tE(){var e=new eY;return null==e?null:(e.a=0,e.xb=rD,tn("Predictor","VP8LPredictors"),tn("Predictor","VP8LPredictors_C"),tn("PredictorAdd","VP8LPredictorsAdd"),tn("PredictorAdd","VP8LPredictorsAdd_C"),nx=G,nS=W,nL=X,nU=J,nI=Z,nj=$,nM=tt,t.VP8LMapColor32b=nk,t.VP8LMapColor8b=nE,e)}function tQ(t,n,r,s,a){for(var l=1,h=[t],f=[n],p=s.m,g=s.s,m=null,v=0;;){if(r)for(;l&&y(p,1);){var w=h,b=f,B=1,k=s.m,F=s.gc[s.ab],E=y(k,2);if(s.Oc&1<=s.ab),E){case 0:case 1:F.b=y(k,3)+2,B=tQ(T(F.Ea,F.b),T(F.nc,F.b),0,s,F.K),F.K=F.K[0];break;case 3:var Q,S=y(k,8)+1,L=16>F.b),M=o(j);if(null==M)Q=0;else{var D=F.K[0],P=F.w;for(M[0]=F.K[0][0],U=1;U<1*S;++U)M[U]=N(D[P+U],M[U-1]);for(;U<4*j;++U)M[U]=0;F.K[0]=null,F.K[0]=M,Q=1}}B=Q;break;case 2:break;default:e(0)}l=B}}if(h=h[0],f=f[0],l&&y(p,1)&&!(l=1<=(v=y(p,4))&&11>=v)){s.a=3;break}if(O=l)e:{var O,H,R,K,V=h,z=f,G=v,q=s.m,W=s.s,Y=[null],X=1,J=0,Z=rw[G];n:for(;;){if(r&&y(q,1)){var $=y(q,3)+2,tt=T(V,$),te=T(z,$),tn=tt*te;if(!tQ(tt,te,0,s,Y))break;for(Y=Y[0],W.xc=$,H=0;H>8&65535;Y[H]=tr,tr>=X&&(X=tr+1)}}if(q.h)break;for(R=0;5>R;++R){var ti=rg[R];!R&&0=tA),ta=ts;var tl=o(J);if(null==ta||null==tl||null==to){s.a=1;break}for(H=K=0;HR;++R){ti=rg[R],th[R]=to,td[R]=K,!R&&0tv)break}else tj=tv;for(tM=0;tMtR)tl[tM++]=tR,0!=tR&&(tN=tR);else{var tK=16==tR,tV=tR-16,tz=rp[tV],tG=y(tT,rf[tV])+tz;if(tM+tG>tv)break i;for(var tq=tK?tN:0;0=R){var tW,tY=tl[0];for(tW=1;tWtY&&(tY=tl[tW]);tg+=tY}}if(tu.nd=tp,tu.Qb=0,tp&&(tu.qb=(th[3][td[3]+0].value<<24|th[1][td[1]+0].value<<16|th[2][td[2]+0].value)>>>0,0==tf&&256>th[0][td[0]+0].value&&(tu.Qb=1,tu.qb+=th[0][td[0]+0].value<<8)),tu.jc=!tu.Qb&&6>tg,tu.jc)for(tc=0;tc>=ty(tZ,8,tJ),tX>>=ty(tu.G[1][tu.H[1]+tX],16,tJ),tX>>=ty(tu.G[2][tu.H[2]+tX],0,tJ),ty(tu.G[3][tu.H[3]+tX],24,tJ))}}W.vc=Y,W.Wb=X,W.Ya=ta,W.yc=to,O=1;break e}O=0}if(!(l=O)){s.a=3;break}if(0n+1?[]:0),!(r.lengtht?0:t>e?e:t}function tG(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function tq(){var t=new tV;return null!=t&&(t.a=0,t.sc="OK",t.cb=0,t.Xb=0,rx||(rx=tJ)),t}function tW(t,e,n){return 0==t.a&&(t.a=e,t.sc=n,t.cb=0),0}function tY(t,e,n){return 3<=n&&157==t[e+0]&&1==t[e+1]&&42==t[e+2]}function tX(t,n){if(null==t)return 0;if(t.a=0,t.sc="OK",null==n)return tW(t,2,"null VP8Io passed to VP8GetHeaders()");var r=n.data,o=n.w,A=n.ha;if(4>A)return tW(t,7,"Truncated header.");var s=r[o+0]|r[o+1]<<8|r[o+2]<<16,a=t.Od;if(a.Rb=!(1&s),a.td=s>>1&7,a.yd=s>>4&1,a.ub=s>>5,3A)return tW(t,7,"cannot parse picture header");if(!tY(r,o,A))return tW(t,3,"Bad code word");l.c=16383&(r[o+4]<<8|r[o+3]),l.Td=r[o+4]>>6,l.i=16383&(r[o+6]<<8|r[o+5]),l.Ud=r[o+6]>>6,o+=7,A-=7,t.za=l.c+15>>4,t.Ub=l.i+15>>4,n.width=l.c,n.height=l.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=t.Pa).jb,0,255,s.jb.length),e(null!=(s=t.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(a.ub>A)return tW(t,7,"bad partition length");f(s=t.m,r,o,a.ub),o+=a.ub,A-=a.ub,a.Rb&&(l.Ld=F(s),l.Kd=F(s)),l=t.Qa;var c,u=t.Pa;if(e(null!=s),e(null!=l),l.Cb=F(s),l.Cb){if(l.Bb=F(s),F(s)){for(l.Fb=F(s),c=0;4>c;++c)l.Zb[c]=F(s)?g(s,7):0;for(c=0;4>c;++c)l.Lb[c]=F(s)?g(s,6):0}if(l.Bb)for(c=0;3>c;++c)u.jb[c]=F(s)?p(s,8):255}else l.Bb=0;if(s.Ka)return tW(t,3,"cannot parse segment header");if((l=t.ed).zd=F(s),l.Tb=p(s,6),l.wb=p(s,3),l.Pc=F(s),l.Pc&&F(s)){for(u=0;4>u;++u)F(s)&&(l.vd[u]=g(s,6));for(u=0;4>u;++u)F(s)&&(l.od[u]=g(s,6))}if(t.L=0==l.Tb?0:l.zd?1:2,s.Ka)return tW(t,3,"cannot parse filter header");var h=A;if(A=c=o,o=c+h,l=h,t.Xb=(1<l&&(d=l),f(t.Jc[+h],r,c,d),c+=d,l-=d,A+=3}f(t.Jc[+u],r,c,l),r=cd;++d){if(h.Cb){var m=h.Zb[d];h.Fb||(m+=r)}else{if(0>16,8>v.Eb[1]&&(v.Eb[1]=8),v.Qc[0]=r_[tz(m+u,117)],v.Qc[1]=rB[tz(m+c,127)],v.lc=m+c}if(!a.Rb)return tW(t,4,"Not a key frame.");for(F(s),a=t.Pa,r=0;4>r;++r){for(A=0;8>A;++A)for(o=0;3>o;++o)for(l=0;11>l;++l)u=E(s,rS[r][A][o][l])?p(s,8):rE[r][A][o][l],a.Wc[r][A].Yb[o][l]=u;for(A=0;17>A;++A)a.Xc[r][A]=a.Wc[r][rL[A]]}return t.kc=F(s),t.kc&&(t.Bd=p(s,8)),t.cb=1}function tJ(t,e,n,r,i,o,A){var s=e[i].Yb[n];for(n=0;16>i;++i){if(!E(t,s[n+0]))return i;for(;!E(t,s[n+1]);)if(s=e[++i].Yb[0],n=0,16==i)return 16;var a=e[i+1].Yb;if(E(t,s[n+2])){var l=t,c=0;if(E(l,(h=s)[(u=n)+3])){if(E(l,h[u+6])){for(s=0,u=2*(c=E(l,h[u+8]))+(h=E(l,h[u+9+c])),c=0,h=rC[u];h[s];++s)c+=c+E(l,h[s]);c+=3+(8<(l=t).b&&k(l);var u,h=l.b,d=(u=l.Ca>>1)-(l.I>>h)>>31;--l.b,l.Ca+=d,l.Ca|=1,l.I-=(u+1&d)<>3),t[e+n+32*r]=-256&i?0>i?0:255:i}function t0(t,e,n,r,i,o){t$(t,e,0,n,r+i),t$(t,e,1,n,r+o),t$(t,e,2,n,r-o),t$(t,e,3,n,r-i)}function t1(t){return(20091*t>>16)+t}function t2(t,e,n,r){var i,A=0,s=o(16);for(i=0;4>i;++i){var a=t[e+0]+t[e+8],l=t[e+0]-t[e+8],c=(35468*t[e+4]>>16)-t1(t[e+12]),u=t1(t[e+4])+(35468*t[e+12]>>16);s[A+0]=a+u,s[A+1]=l+c,s[A+2]=l-c,s[A+3]=a-u,A+=4,e++}for(i=A=0;4>i;++i)a=(t=s[A+0]+4)+s[A+8],l=t-s[A+8],c=(35468*s[A+4]>>16)-t1(s[A+12]),t$(n,r,0,0,a+(u=t1(s[A+4])+(35468*s[A+12]>>16))),t$(n,r,1,0,l+c),t$(n,r,2,0,l-c),t$(n,r,3,0,a-u),A++,r+=32}function t5(t,e,n,r){var i=t[e+0]+4,o=35468*t[e+4]>>16,A=t1(t[e+4]),s=35468*t[e+1]>>16;t0(n,r,0,i+A,t=t1(t[e+1]),s),t0(n,r,1,i+o,t,s),t0(n,r,2,i-o,t,s),t0(n,r,3,i-A,t,s)}function t4(t,e,n,r,i){t2(t,e,n,r),i&&t2(t,e+16,n,r+4)}function t3(t,e,n,r){nT(t,e+0,n,r,1),nT(t,e+32,n,r+128,1)}function t6(t,e,n,r){var i;for(t=t[e+0]+4,i=0;4>i;++i)for(e=0;4>e;++e)t$(n,r,e,i,t)}function t8(t,e,n,r){t[e+0]&&nO(t,e+0,n,r),t[e+16]&&nO(t,e+16,n,r+4),t[e+32]&&nO(t,e+32,n,r+128),t[e+48]&&nO(t,e+48,n,r+128+4)}function t7(t,e,n,r){var i,A=o(16);for(i=0;4>i;++i){var s=t[e+0+i]+t[e+12+i],a=t[e+4+i]+t[e+8+i],l=t[e+4+i]-t[e+8+i],c=t[e+0+i]-t[e+12+i];A[0+i]=s+a,A[8+i]=s-a,A[4+i]=c+l,A[12+i]=c-l}for(i=0;4>i;++i)s=(t=A[0+4*i]+3)+A[3+4*i],a=A[1+4*i]+A[2+4*i],l=A[1+4*i]-A[2+4*i],c=t-A[3+4*i],n[r+0]=s+a>>3,n[r+16]=c+l>>3,n[r+32]=s-a>>3,n[r+48]=c-l>>3,r+=64}function t9(t,e,n){var r,i=e-32,o=255-t[i-1];for(r=0;rn;++n)r(t,e+32*n,t,e-32,16)}function ei(t,e){var n;for(n=16;0r;++r)i(e,n+32*r,t,16)}function eA(t,e){var n,r=16;for(n=0;16>n;++n)r+=t[e-1+32*n]+t[e+n-32];eo(r>>5,t,e)}function es(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e-1+32*n];eo(r>>4,t,e)}function ea(t,e){var n,r=8;for(n=0;16>n;++n)r+=t[e+n-32];eo(r>>4,t,e)}function el(t,e){eo(128,t,e)}function ec(t,e,n){return t+2*e+n+2>>2}function eu(t,e){var n,i=e-32;for(n=0,i=new Uint8Array([ec(t[i-1],t[i+0],t[i+1]),ec(t[i+0],t[i+1],t[i+2]),ec(t[i+1],t[i+2],t[i+3]),ec(t[i+2],t[i+3],t[i+4])]);4>n;++n)r(t,e+32*n,i,0,i.length)}function eh(t,e){var n=t[e-1],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];Q(t,e+0,16843009*ec(t[e-1-32],n,r)),Q(t,e+32,16843009*ec(n,r,i)),Q(t,e+64,16843009*ec(r,i,o)),Q(t,e+96,16843009*ec(i,o,o))}function ed(t,e){var n,r=4;for(n=0;4>n;++n)r+=t[e+n-32]+t[e-1+32*n];for(r>>=3,n=0;4>n;++n)i(t,e+32*n,r,4)}function ef(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],A=t[e+0-32],s=t[e+1-32],a=t[e+2-32],l=t[e+3-32];t[e+0+96]=ec(r,i,t[e-1+96]),t[e+1+96]=t[e+0+64]=ec(n,r,i),t[e+2+96]=t[e+1+64]=t[e+0+32]=ec(o,n,r),t[e+3+96]=t[e+2+64]=t[e+1+32]=t[e+0+0]=ec(A,o,n),t[e+3+64]=t[e+2+32]=t[e+1+0]=ec(s,A,o),t[e+3+32]=t[e+2+0]=ec(a,s,A),t[e+3+0]=ec(l,a,s)}function ep(t,e){var n=t[e+1-32],r=t[e+2-32],i=t[e+3-32],o=t[e+4-32],A=t[e+5-32],s=t[e+6-32],a=t[e+7-32];t[e+0+0]=ec(t[e+0-32],n,r),t[e+1+0]=t[e+0+32]=ec(n,r,i),t[e+2+0]=t[e+1+32]=t[e+0+64]=ec(r,i,o),t[e+3+0]=t[e+2+32]=t[e+1+64]=t[e+0+96]=ec(i,o,A),t[e+3+32]=t[e+2+64]=t[e+1+96]=ec(o,A,s),t[e+3+64]=t[e+2+96]=ec(A,s,a),t[e+3+96]=ec(s,a,a)}function eg(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1-32],A=t[e+0-32],s=t[e+1-32],a=t[e+2-32],l=t[e+3-32];t[e+0+0]=t[e+1+64]=o+A+1>>1,t[e+1+0]=t[e+2+64]=A+s+1>>1,t[e+2+0]=t[e+3+64]=s+a+1>>1,t[e+3+0]=a+l+1>>1,t[e+0+96]=ec(i,r,n),t[e+0+64]=ec(r,n,o),t[e+0+32]=t[e+1+96]=ec(n,o,A),t[e+1+32]=t[e+2+96]=ec(o,A,s),t[e+2+32]=t[e+3+96]=ec(A,s,a),t[e+3+32]=ec(s,a,l)}function em(t,e){var n=t[e+0-32],r=t[e+1-32],i=t[e+2-32],o=t[e+3-32],A=t[e+4-32],s=t[e+5-32],a=t[e+6-32],l=t[e+7-32];t[e+0+0]=n+r+1>>1,t[e+1+0]=t[e+0+64]=r+i+1>>1,t[e+2+0]=t[e+1+64]=i+o+1>>1,t[e+3+0]=t[e+2+64]=o+A+1>>1,t[e+0+32]=ec(n,r,i),t[e+1+32]=t[e+0+96]=ec(r,i,o),t[e+2+32]=t[e+1+96]=ec(i,o,A),t[e+3+32]=t[e+2+96]=ec(o,A,s),t[e+3+64]=ec(A,s,a),t[e+3+96]=ec(s,a,l)}function ev(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96];t[e+0+0]=n+r+1>>1,t[e+2+0]=t[e+0+32]=r+i+1>>1,t[e+2+32]=t[e+0+64]=i+o+1>>1,t[e+1+0]=ec(n,r,i),t[e+3+0]=t[e+1+32]=ec(r,i,o),t[e+3+32]=t[e+1+64]=ec(i,o,o),t[e+3+64]=t[e+2+64]=t[e+0+96]=t[e+1+96]=t[e+2+96]=t[e+3+96]=o}function ey(t,e){var n=t[e-1+0],r=t[e-1+32],i=t[e-1+64],o=t[e-1+96],A=t[e-1-32],s=t[e+0-32],a=t[e+1-32],l=t[e+2-32];t[e+0+0]=t[e+2+32]=n+A+1>>1,t[e+0+32]=t[e+2+64]=r+n+1>>1,t[e+0+64]=t[e+2+96]=i+r+1>>1,t[e+0+96]=o+i+1>>1,t[e+3+0]=ec(s,a,l),t[e+2+0]=ec(A,s,a),t[e+1+0]=t[e+3+32]=ec(n,A,s),t[e+1+32]=t[e+3+64]=ec(r,n,A),t[e+1+64]=t[e+3+96]=ec(i,r,n),t[e+1+96]=ec(o,i,r)}function ew(t,e){var n;for(n=0;8>n;++n)r(t,e+32*n,t,e-32,8)}function eb(t,e){var n;for(n=0;8>n;++n)i(t,e,t[e-1],8),e+=32}function e_(t,e,n){var r;for(r=0;8>r;++r)i(e,n+32*r,t,8)}function eB(t,e){var n,r=8;for(n=0;8>n;++n)r+=t[e+n-32]+t[e-1+32*n];e_(r>>4,t,e)}function ex(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e+n-32];e_(r>>3,t,e)}function eC(t,e){var n,r=4;for(n=0;8>n;++n)r+=t[e-1+32*n];e_(r>>3,t,e)}function ek(t,e){e_(128,t,e)}function eF(t,e,n){var r=t[e-n],i=t[e+0],o=3*(i-r)+n9[1020+t[e-2*n]-t[e+n]],A=rt[112+(o+4>>3)];t[e-n]=re[255+r+rt[112+(o+3>>3)]],t[e+0]=re[255+i-A]}function eE(t,e,n,r){var i=t[e+0],o=t[e+n];return rn[255+t[e-2*n]-t[e-n]]>r||rn[255+o-i]>r}function eQ(t,e,n,r){return 4*rn[255+t[e-n]-t[e+0]]+rn[255+t[e-2*n]-t[e+n]]<=r}function eS(t,e,n,r,i){var o=t[e-3*n],A=t[e-2*n],s=t[e-n],a=t[e+0],l=t[e+n],c=t[e+2*n],u=t[e+3*n];return 4*rn[255+s-a]+rn[255+A-l]>r?0:rn[255+t[e-4*n]-o]<=i&&rn[255+o-A]<=i&&rn[255+A-s]<=i&&rn[255+u-c]<=i&&rn[255+c-l]<=i&&rn[255+l-a]<=i}function eL(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)eQ(t,e+r,n,i)&&eF(t,e+r,n)}function eU(t,e,n,r){var i=2*r+1;for(r=0;16>r;++r)eQ(t,e+r*n,1,i)&&eF(t,e+r*n,1)}function eI(t,e,n,r){var i;for(i=3;0>7,p=18*g+63>>7,g=9*g+63>>7;t[a-3*n]=re[255+t[a-3*n]+g],t[a-2*n]=re[255+l+p],t[a-n]=re[255+c+f],t[a+0]=re[255+u-f],t[a+n]=re[255+h-p],t[a+2*n]=re[255+d-g]}}e+=r}}function eD(t,e,n,r,i,o,A,s){for(o=2*o+1;0>3)],d=rt[112+(d+3>>3)],f=h+1>>1;t[a-2*n]=re[255+t[a-2*n]+f],t[a-n]=re[255+l+d],t[a+0]=re[255+c-h],t[a+n]=re[255+u-f]}}e+=r}}function eT(t,e,n,r,i,o){eM(t,e,n,1,16,r,i,o)}function eN(t,e,n,r,i,o){eM(t,e,1,n,16,r,i,o)}function eP(t,e,n,r,i,o){var A;for(A=3;0l?0:255:l)&255,l=a,i[o+s]=c}}function e0(t,e,n,r,i,o){for(;0>23,t[s+4*A+1]=t[s+4*A+1]*l>>23,t[s+4*A+2]=t[s+4*A+2]*l>>23)}e+=o}}function e1(t,e,n,r,i){for(;0>4)*a>>16;t[e+2*o+0]=(240&A|A>>4)*a>>16&240|(15&A|A<<4)*a>>16>>4&15,t[e+2*o+1]=240&l|s}e+=i}}function e2(t,e,n,r,i,o,A,s){var a,l,c=255;for(l=0;l>8}function e4(){n0=e0,n1=e1,n2=e2,n5=e5}function e3(n,r,i){t[n]=function(t,n,o,A,s,a,l,c,u,h,d,f,p,g,m,v,y){var w,b=y-1>>1,_=s[a+0]|l[c+0]<<16,B=u[h+0]|d[f+0]<<16;e(null!=t);var x=3*_+B+131074>>2;for(r(t[n+0],255&x,x>>16,p,g),null!=o&&(x=3*B+_+131074>>2,r(o[A+0],255&x,x>>16,m,v)),w=1;w<=b;++w){var C=s[a+w]|l[c+w]<<16,k=u[h+w]|d[f+w]<<16,F=_+C+B+k+524296,E=F+2*(C+B)>>3;x=E+_>>1,_=(F=F+2*(_+k)>>3)+C>>1,r(t[n+2*w-1],255&x,x>>16,p,g+(2*w-1)*i),r(t[n+2*w-0],255&_,_>>16,p,g+(2*w-0)*i),null!=o&&(x=F+B>>1,_=E+k>>1,r(o[A+2*w-1],255&x,x>>16,m,v+(2*w-1)*i),r(o[A+2*w+0],255&_,_>>16,m,v+(2*w+0)*i)),_=C,B=k}1&y||(x=3*_+B+131074>>2,r(t[n+y-1],255&x,x>>16,p,g+(y-1)*i),null!=o&&(x=3*B+_+131074>>2,r(o[A+y-1],255&x,x>>16,m,v+(y-1)*i)))}}function e6(){rN[rr]=rP,rN[ri]=rH,rN[ro]=rO,rN[rA]=rR,rN[rs]=rK,rN[ra]=rV,rN[rl]=rz,rN[rc]=rH,rN[ru]=rR,rN[rh]=rK,rN[rd]=rV}function e8(t){return t&~rJ?0>t?0:255:t>>rX}function e7(t,e){return e8((19077*t>>8)+(26149*e>>8)-14234)}function e9(t,e,n){return e8((19077*t>>8)-(6419*e>>8)-(13320*n>>8)+8708)}function nt(t,e){return e8((19077*t>>8)+(33050*e>>8)-17685)}function ne(t,e,n,r,i){r[i+0]=e7(t,n),r[i+1]=e9(t,e,n),r[i+2]=nt(t,e)}function nn(t,e,n,r,i){r[i+0]=nt(t,e),r[i+1]=e9(t,e,n),r[i+2]=e7(t,n)}function nr(t,e,n,r,i){var o=e9(t,e,n);e=o<<3&224|nt(t,e)>>3,r[i+0]=248&e7(t,n)|o>>5,r[i+1]=e}function ni(t,e,n,r,i){var o=240&nt(t,e)|15;r[i+0]=240&e7(t,n)|e9(t,e,n)>>4,r[i+1]=o}function no(t,e,n,r,i){r[i+0]=255,ne(t,e,n,r,i+1)}function nA(t,e,n,r,i){nn(t,e,n,r,i),r[i+3]=255}function ns(t,e,n,r,i){ne(t,e,n,r,i),r[i+3]=255}function tz(t,e){return 0>t?0:t>e?e:t}function na(e,n,r){t[e]=function(t,e,i,o,A,s,a,l,c){for(var u=l+(-2&c)*r;l!=u;)n(t[e+0],i[o+0],A[s+0],a,l),n(t[e+1],i[o+0],A[s+0],a,l+r),e+=2,++o,++s,l+=2*r;1&c&&n(t[e+0],i[o+0],A[s+0],a,l)}}function nl(t,e,n){return 0==n?0==t?0==e?6:5:0==e?4:0:n}function nc(t,e,n,r,i){switch(t>>>30){case 3:nT(e,n,r,i,0);break;case 2:nN(e,n,r,i);break;case 1:nO(e,n,r,i)}}function nu(t,e){var n,o,A=e.M,s=e.Nb,a=t.oc,l=t.pc+40,c=t.oc,u=t.pc+584,h=t.oc,d=t.pc+600;for(n=0;16>n;++n)a[l+32*n-1]=129;for(n=0;8>n;++n)c[u+32*n-1]=129,h[d+32*n-1]=129;for(0n;++n)r(a,l+32*n-4,a,l+32*n+12,4);for(n=-1;8>n;++n)r(c,u+32*n-4,c,u+32*n+4,4),r(h,d+32*n-4,h,d+32*n+4,4)}var p=t.Gd,g=t.Hd+o,m=f.ad,v=f.Hc;if(0=t.za-1?i(y,w,p[g].y[15],4):r(y,w,p[g+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,v<<=2)y=a,w=l+r3[n],rI[f.Ob[n]](y,w),nc(v,m,16*+n,y,w)}else if(rU[y=nl(o,A,f.Ob[0])](a,l),0!=v)for(n=0;16>n;++n,v<<=2)nc(v,m,16*+n,a,l+r3[n]);for(n=f.Gc,rj[y=nl(o,A,f.Dd)](c,u),rj[y](h,d),v=m,y=c,w=u,255&(f=n>>0)&&(170&f?nP(v,256,y,w):nH(v,256,y,w)),f=h,v=d,255&(n>>=8)&&(170&n?nP(m,320,f,v):nH(m,320,f,v)),An;++n)r(p,g+n*t.R,a,l+32*n,16);for(n=0;8>n;++n)r(m,f+n*t.B,c,u+32*n,8),r(v,y+n*t.B,h,d+32*n,8)}}function nh(t,r,i,o,A,s,a,l,c){var u=[0],h=[0],d=0,f=null!=c?c.kd:0,p=null!=c?c:new eG;if(null==t||12>i)return 7;p.data=t,p.w=r,p.ha=i,r=[r],i=[i],p.gb=[p.gb];t:{var g=r,v=i,y=p.gb;if(e(null!=t),e(null!=v),e(null!=y),y[0]=0,12<=v[0]&&!n(t,g[0],"RIFF")){if(n(t,g[0]+8,"WEBP")){y=3;break t}var w=U(t,g[0]+4);if(12>w||4294967286v[0]-8){y=7;break t}y[0]=w,g[0]+=12,v[0]-=12}y=0}if(0!=y)return y;for(w=0y[0])y=7;else{if(!n(_,v[0],"VP8X")){if(10!=U(_,v[0]+4)){y=3;break t}if(18>y[0]){y=7;break t}var k=U(_,v[0]+8),F=1+L(_,v[0]+12);if(2147483648<=F*(_=1+L(_,v[0]+15))){y=3;break t}null!=C&&(C[0]=k),null!=B&&(B[0]=F),null!=x&&(x[0]=_),v[0]+=18,y[0]-=18,E[0]=1}y=0}}if(d=d[0],g=g[0],0!=y)return y;if(v=!!(2&g),!w&&d)return 3;if(null!=s&&(s[0]=!!(16&g)),null!=a&&(a[0]=v),null!=l&&(l[0]=0),a=0,g=0,d&&v&&null==c){y=0;break}if(4>i){y=7;break}if(w&&d||!w&&!d&&!n(t,r[0],"ALPH")){i=[i],p.na=[p.na],p.P=[p.P],p.Sa=[p.Sa];t:{k=t,y=r,w=i;var E=p.gb;B=p.na,x=p.P,C=p.Sa,F=22,e(null!=k),e(null!=w),_=y[0];var Q=w[0];for(e(null!=B),e(null!=C),B[0]=null,x[0]=null,C[0]=0;;){if(y[0]=_,w[0]=Q,8>Q){y=7;break t}var S=U(k,_+4);if(4294967286E){y=3;break t}if(!n(k,_,"VP8 ")||!n(k,_,"VP8L")){y=0;break t}if(Q[0]w[0])y=7;else{if(_||F){if(E=U(E,k+4),12<=B&&E>B-12){y=3;break t}if(f&&E>w[0]-8){y=7;break t}x[0]=E,y[0]+=8,w[0]-=8,C[0]=F}else C[0]=5<=w[0]&&47==E[k+0]&&!(E[k+4]>>5),x[0]=w[0];y=0}if(i=i[0],p.Ja=p.Ja[0],p.xa=p.xa[0],r=r[0],0!=y)break;if(4294967286i){y=7;break}l=a,f=g,v=s,null==t||5>i?t=0:5<=i&&47==t[r+0]&&!(t[r+4]>>5)?(w=[0],E=[0],B=[0],m(x=new b,t,r,i),tp(x,w,E,B)?(null!=l&&(l[0]=w[0]),null!=f&&(f[0]=E[0]),null!=v&&(v[0]=B[0]),t=1):t=0):t=0}else{if(10>i){y=7;break}l=g,null==t||10>i||!tY(t,r+3,i-3)?t=0:(f=t[r+0]|t[r+1]<<8|t[r+2]<<16,v=16383&(t[r+7]<<8|t[r+6]),t=16383&(t[r+9]<<8|t[r+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=p.Ja||!v||!t?t=0:(a&&(a[0]=v),l&&(l[0]=t),t=1))}if(!t||(a=a[0],g=g[0],d&&(0!=a||0!=g)))return 3;null!=c&&(c[0]=p,c.offset=r-c.w,e(4294967286>r-c.w),e(c.offset==c.ha-i));break}return 0==y||7==y&&d&&null==c?(null!=s&&(s[0]|=null!=p.na&&0n||(o&=-2,A&=-2),0>o||0>A||0>=s||0>=a||o+s>r||A+a>i))return 0;if(e.v=o,e.j=A,e.va=o+s,e.o=A+a,e.U=s,e.T=a,e.da=null!=t&&0t.S){var e=t.f.RGBA;e.fb+=(t.height-1)*e.A,e.A=-e.A}else e=t.f.kb,t=t.height,e.O+=(t-1)*e.fa,e.fa=-e.fa,e.N+=(t-1>>1)*e.Ab,e.Ab=-e.Ab,e.W+=(t-1>>1)*e.Db,e.Db=-e.Db,null!=e.F&&(e.J+=(t-1)*e.lb,e.lb=-e.lb);return 0}function np(t,e,n,r){if(null==r||0>=t||0>=e)return 2;if(null!=n){if(n.Da){var i=n.cd,A=n.bd,s=-2&n.v,a=-2&n.j;if(0>s||0>a||0>=i||0>=A||s+i>t||a+A>e)return 2;t=i,e=A}if(n.da){if(!D(t,e,i=[n.ib],A=[n.hb]))return 2;t=i[0],e=A[0]}}r.width=t,r.height=e;t:{var l=r.width,c=r.height;if(t=r.S,0>=l||0>=c||!(t>=rr&&13>t))t=2;else{if(0>=r.Rd&&null==r.sd){s=A=i=e=0;var u=(a=l*r7[t])*c;if(11>t||(A=(c+1)/2*(e=(l+1)/2),12==t&&(s=(i=l)*c)),null==(c=o(u+2*A+s))){t=1;break t}r.sd=c,11>t?((l=r.f.RGBA).eb=c,l.fb=0,l.A=a,l.size=u):((l=r.f.kb).y=c,l.O=0,l.fa=a,l.Fd=u,l.f=c,l.N=0+u,l.Ab=e,l.Cd=A,l.ea=c,l.W=0+u+A,l.Db=e,l.Ed=A,12==t&&(l.F=c,l.J=0+u+2*A),l.Tc=s,l.lb=i)}if(e=1,i=r.S,A=r.width,s=r.height,i>=rr&&13>i){if(11>i)e&=(a=Math.abs((t=r.f.RGBA).A))*(s-1)+A<=t.size,e&=a>=A*r7[i],e&=null!=t.eb;else{t=r.f.kb,a=(A+1)/2,u=(s+1)/2,l=Math.abs(t.fa),c=Math.abs(t.Ab);var h=Math.abs(t.Db),d=Math.abs(t.lb),f=d*(s-1)+A;e&=l*(s-1)+A<=t.Fd,e&=c*(u-1)+a<=t.Cd,e=(e&=h*(u-1)+a<=t.Ed)&l>=A&c>=a&h>=a&null!=t.y&null!=t.f&null!=t.ea,12==i&&(e&=d>=A,e&=f<=t.Tc,e&=null!=t.F)}}else e=0;t=e?0:2}}return 0!=t||null!=n&&n.fd&&(t=nf(r)),t}var ng=64,nm=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],nv=24,ny=32,nw=8,nb=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];P("Predictor0","PredictorAdd0"),t.Predictor0=function(){return 4278190080},t.Predictor1=function(t){return t},t.Predictor2=function(t,e,n){return e[n+0]},t.Predictor3=function(t,e,n){return e[n+1]},t.Predictor4=function(t,e,n){return e[n-1]},t.Predictor5=function(t,e,n){return H(H(t,e[n+1]),e[n+0])},t.Predictor6=function(t,e,n){return H(t,e[n-1])},t.Predictor7=function(t,e,n){return H(t,e[n+0])},t.Predictor8=function(t,e,n){return H(e[n-1],e[n+0])},t.Predictor9=function(t,e,n){return H(e[n+0],e[n+1])},t.Predictor10=function(t,e,n){return H(H(t,e[n-1]),H(e[n+0],e[n+1]))},t.Predictor11=function(t,e,n){var r=e[n+0];return 0>=V(r>>24&255,t>>24&255,(e=e[n-1])>>24&255)+V(r>>16&255,t>>16&255,e>>16&255)+V(r>>8&255,t>>8&255,e>>8&255)+V(255&r,255&t,255&e)?r:t},t.Predictor12=function(t,e,n){var r=e[n+0];return(R((t>>24&255)+(r>>24&255)-((e=e[n-1])>>24&255))<<24|R((t>>16&255)+(r>>16&255)-(e>>16&255))<<16|R((t>>8&255)+(r>>8&255)-(e>>8&255))<<8|R((255&t)+(255&r)-(255&e)))>>>0},t.Predictor13=function(t,e,n){var r=e[n-1];return(K((t=H(t,e[n+0]))>>24&255,r>>24&255)<<24|K(t>>16&255,r>>16&255)<<16|K(t>>8&255,r>>8&255)<<8|K(t>>0&255,r>>0&255))>>>0};var n_=t.PredictorAdd0;t.PredictorAdd1=z,P("Predictor2","PredictorAdd2"),P("Predictor3","PredictorAdd3"),P("Predictor4","PredictorAdd4"),P("Predictor5","PredictorAdd5"),P("Predictor6","PredictorAdd6"),P("Predictor7","PredictorAdd7"),P("Predictor8","PredictorAdd8"),P("Predictor9","PredictorAdd9"),P("Predictor10","PredictorAdd10"),P("Predictor11","PredictorAdd11"),P("Predictor12","PredictorAdd12"),P("Predictor13","PredictorAdd13");var nB=t.PredictorAdd2;Y("ColorIndexInverseTransform","MapARGB","32b",function(t){return t>>8&255},function(t){return t}),Y("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(t){return t},function(t){return t>>8&255});var nx,nC=t.ColorIndexInverseTransform,nk=t.MapARGB,nF=t.VP8LColorIndexInverseTransformAlpha,nE=t.MapAlpha,nQ=t.VP8LPredictorsAdd=[];nQ.length=16,(t.VP8LPredictors=[]).length=16,(t.VP8LPredictorsAdd_C=[]).length=16,(t.VP8LPredictors_C=[]).length=16;var nS,nL,nU,nI,nj,nM,nD,nT,nN,nP,nO,nH,nR,nK,nV,nz,nG,nq,nW,nY,nX,nJ,nZ,n$,n0,n1,n2,n5,n4=o(511),n3=o(2041),n6=o(225),n8=o(767),n7=0,n9=n3,rt=n6,re=n8,rn=n4,rr=0,ri=1,ro=2,rA=3,rs=4,ra=5,rl=6,rc=7,ru=8,rh=9,rd=10,rf=[2,3,7],rp=[3,3,11],rg=[280,256,256,256,40],rm=[0,1,1,1,0],rv=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],ry=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],rw=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],rb=8,r_=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],rB=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],rx=null,rC=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],rk=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],rF=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],rE=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],rQ=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],rS=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],rL=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],rU=[],rI=[],rj=[],rM=1,rD=2,rT=[],rN=[];e3("UpsampleRgbLinePair",ne,3),e3("UpsampleBgrLinePair",nn,3),e3("UpsampleRgbaLinePair",ns,4),e3("UpsampleBgraLinePair",nA,4),e3("UpsampleArgbLinePair",no,4),e3("UpsampleRgba4444LinePair",ni,2),e3("UpsampleRgb565LinePair",nr,2);var rP=t.UpsampleRgbLinePair,rO=t.UpsampleBgrLinePair,rH=t.UpsampleRgbaLinePair,rR=t.UpsampleBgraLinePair,rK=t.UpsampleArgbLinePair,rV=t.UpsampleRgba4444LinePair,rz=t.UpsampleRgb565LinePair,rG=16,rq=32768,rW=-227,rY=482,rX=6,rJ=16383,rZ=0,r$=o(256),r0=o(256),r1=o(256),r2=o(256),r5=o(rY-rW),r4=o(rY-rW);na("YuvToRgbRow",ne,3),na("YuvToBgrRow",nn,3),na("YuvToRgbaRow",ns,4),na("YuvToBgraRow",nA,4),na("YuvToArgbRow",no,4),na("YuvToRgba4444Row",ni,2),na("YuvToRgb565Row",nr,2);var r3=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],r6=[0,2,8],r8=[8,7,6,4,4,2,2,2,1,1,1,1];this.WebPDecodeRGBA=function(t,n,s,a,l){var c=ri,u=new ez,h=new tA;u.ba=h,h.S=c,h.width=[h.width],h.height=[h.height];var d=h.width,f=h.height,p=new ts;if(null==p||null==t)var g=2;else e(null!=p),g=nh(t,n,s,p.width,p.height,p.Pd,p.Qd,p.format,null);if(0!=g?d=0:(null!=d&&(d[0]=p.width[0]),null!=f&&(f[0]=p.height[0]),d=1),d){h.width=h.width[0],h.height=h.height[0],null!=a&&(a[0]=h.width),null!=l&&(l[0]=h.height);t:{if(a=new tG,(l=new eG).data=t,l.w=n,l.ha=s,l.kd=1,n=[0],e(null!=l),(0==(t=nh(l.data,l.w,l.ha,null,null,null,n,null,l))||7==t)&&n[0]&&(t=4),0==(n=t)){if(e(null!=u),a.data=l.data,a.w=l.w+l.offset,a.ha=l.ha-l.offset,a.put=td,a.ac=th,a.bc=tf,a.ma=u,l.xa){if(null==(t=tE())){u=1;break t}if(function(t,n){for(var r=[0],i=[0],o=[0];;){if(null==t)return 0;if(null==n)return t.a=2,0;if(t.l=n,t.a=0,m(t.m,n.data,n.w,n.ha),!tp(t.m,r,i,o)){t.a=3;break}if(t.xb=rD,n.width=r[0],n.height=i[0],!tQ(r[0],i[0],1,t,null))break;return 1}return e(0!=t.a),0}(t,a)){if(a=0==(n=np(a.width,a.height,u.Oa,u.ba))){e:{for(a=t;;){if(null==a){a=0;break e}if(e(null!=a.s.yc),e(null!=a.s.Ya),e(0a.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=a.ca.f.kb.F&&e4()),a.Pb&&0(d=s.Md)?0:100f;++f)12>(g=l.pb[f]).lc&&(g.ia=d*r8[0>g.lc?0:g.lc]>>3),p|=g.ia;p&&(alert("todo:VP8InitRandom"),l.ia=1)}l.Ga=s.Id,100l.Ga&&(l.Ga=0)}(function(t,n){if(null==t)return 0;if(null==n)return tW(t,2,"NULL VP8Io parameter in VP8Decode().");if(!t.cb&&!tX(t,n))return 0;if(e(t.cb),null==n.ac||n.ac(n)){n.ob&&(t.L=0);var s=r6[t.L];if(2==t.L?(t.yb=0,t.zb=0):(t.yb=n.v-s>>4,t.zb=n.j-s>>4,0>t.yb&&(t.yb=0),0>t.zb&&(t.zb=0)),t.Va=n.o+15+s>>4,t.Hb=n.va+15+s>>4,t.Hb>t.za&&(t.Hb=t.za),t.Va>t.Ub&&(t.Va=t.Ub),0s;++s){if(t.Qa.Cb){var c=t.Qa.Lb[s];t.Qa.Fb||(c+=l.Tb)}else c=l.Tb;for(a=0;1>=a;++a){var u=t.gd[s][a],h=c;if(l.Pc&&(h+=l.vd[0],a&&(h+=l.od[0])),0<(h=0>h?0:63>2:d>>1)>9-l.wb&&(d=9-l.wb),1>d&&(d=1),u.dd=d,u.tc=2*h+d,u.ld=40<=h?2:15<=h?1:0}else u.tc=0;u.La=a}}}s=0}else tW(t,6,"Frame setup failed"),s=t.a;if(s=0==s){if(s){t.$c=0,0t.Vb){if(t.Vb=0,t.Ec=o(u),t.Fc=0,null==t.Ec){s=tW(t,1,"no memory during frame initialization.");break t}t.Vb=u}u=t.Ec,h=t.Fc,t.Ac=u,t.Bc=h,h+=l,t.Gd=A(f,tK),t.Hd=0,t.rb=A(p+1,tP),t.sb=1,t.wa=g?A(g,tN):null,t.Y=0,t.D.Nb=0,t.D.wa=t.wa,t.D.Y=t.Y,0=s;++s)n4[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)n3[1020+s]=-128>s?-128:127=s;++s)n6[112+s]=-16>s?-16:15=s;++s)n8[255+s]=0>s?0:255u;++u){var y,w=f[0+u];for(y=0;4>y;++y){w=rQ[h[d+y]][w];for(var b=rF[E(c,w[0])];0>3;for(b=0;256>b;b+=16)u[g+b]=S}k=1,F=d[0]}var L=15&c.la,U=15&v.la;for(b=0;4>b;++b){var I=1&U;for(S=x=0;4>S;++S)L=L>>1|(I=(Q=rx(h,F,Q=I+(1&L),p.Sc,k,u,g))>k)<<7,x=x<<2|(3>=4,U=U>>1|I<<7,y=(y<<8|x)>>>0}for(F=L,k=U>>4,_=0;4>_;_+=2){for(x=0,L=c.la>>4+_,U=v.la>>4+_,b=0;2>b;++b){for(I=1&U,S=0;2>S;++S)Q=I+(1&L),L=L>>1|(I=0<(Q=rx(h,d[2],Q,p.Qc,0,u,g)))<<3,x=x<<2|(3>=2,U=U>>1|I<<5}w|=x<<4*_,F|=L<<4<<_,k|=(240&U)<<_}c.la=F,v.la=k,f.Hc=y,f.Gc=w,f.ia=43690&w?0:p.ia,d=!(y|w)}if(0=s.zb&&s.M<=s.Va,0==s.Aa)t:{if(A.M=s.M,A.uc=c,nu(s,A),l=1,A=(x=s.D).Nb,c=(w=r6[s.L])*s.R,h=w/2*s.B,b=16*A*s.R,S=8*A*s.B,d=s.sa,f=s.ta-c+b,p=s.qa,u=s.ra-h+S,g=s.Ha,v=s.Ia-h+S,U=0==(L=x.M),y=L>=s.Va-1,2==s.Aa&&nu(s,x),x.uc)for(I=(Q=s).D.M,e(Q.D.uc),x=Q.yb;xa.o&&(L=a.o),a.F=null,a.J=null,null!=s.Fa&&0i||0>=A||i+A>a)return null;if(!t.Cc){if(null==t.ga){if(t.ga=new eX,(k=null==t.ga)||(k=n.width*n.o,e(0==t.Gb.length),t.Gb=o(k),t.Uc=0,null==t.Gb?k=0:(t.mb=t.Gb,t.nb=t.Uc,t.rc=null,k=1),k=!k),!k){k=t.ga;var l=t.Fa,c=t.P,u=t.qc,h=t.mb,d=t.nb,f=c+1,p=u-1,g=k.l;if(e(null!=l&&null!=h&&null!=n),rT[0]=null,rT[1]=eJ,rT[2]=eZ,rT[3]=e$,k.ca=h,k.tb=d,k.c=n.width,k.i=n.height,e(0=u)n=0;else if(k.$a=l[c+0]>>0&3,k.Z=l[c+0]>>2&3,k.Lc=l[c+0]>>4&3,c=l[c+0]>>6&3,0>k.$a||1=k.c*k.i;k=!n}if(k)return null;1!=t.ga.Lc?t.Ga=0:A=a-i}e(null!=t.ga),e(i+A<=a);t:{if(n=(l=t.ga).c,a=l.l.o,0==l.$a){if(f=t.rc,p=t.Vc,g=t.Fa,c=t.P+1+i*n,u=t.mb,h=t.nb+i*n,e(c<=t.P+t.qc),0!=l.Z)for(e(null!=rT[l.Z]),k=0;k=n)n=1;else if(l.ic||e4(),l.ic){l=k.V,f=k.Ba,p=k.c;var v=k.i,y=(g=1,c=k.$/p,u=k.$%p,h=k.m,d=k.s,k.$),w=p*v,b=p*n,_=d.wc,x=y(v=tv(x.G[0],x.H[0],h)))l[f+y]=v,++y,++u>=p&&(u=0,++c<=n&&!(c%16)&&tC(k,c));else{if(!(280>v)){g=0;break e}v=tg(v-256,h);var k,F,E=tv(x.G[4],x.H[4],h);if(C(h),!(y>=(E=tm(p,E=tg(E,h)))&&w-y>=v)){g=0;break e}for(F=0;F=p;)u-=p,++c<=n&&!(c%16)&&tC(k,c);yn?n:c);break}!g||h.h&&y=a&&(t.Cc=1),A=1}if(!A)return null;if(t.Cc&&(null!=(A=t.ga)&&(A.mc=null),t.ga=null,0>1),a.W+=s.B*(w>>1),null!=a.F&&(a.J+=a.width*w)),x>1,a.W+=a.v>>1,null!=a.F&&(a.J+=a.v),a.ka=x-a.j,a.U=a.va-a.v,a.T=L-x,l=a.put(a))}A+1!=s.Ic||y||(r(s.sa,s.ta-c,d,f+16*s.R,c),r(s.qa,s.ra-h,p,u+8*s.B,h),r(s.Ha,s.Ia-h,g,v+8*s.B,h))}if(!l)return tW(t,6,"Output aborted.")}return 1}(t,n)),null!=n.bc&&n.bc(n),s&=1}return s?(t.cb=0,s):0})(t,a)||(n=t.a)}}else n=t.a;0==n&&null!=u.Oa&&u.Oa.fd&&(n=nf(u.ba))}u=n}c=0!=u?null:11>c?h.f.RGBA.eb:h.f.kb.y}else c=null;return c};var r7=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function l(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16)>>>0}function c(t,e){return(t[e+0]<<0|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}new a;var u=[0],h=[0],d=[],f=new a,p=function(t,e){var n={},r=0,i=!1,o=0,A=0;if(n.frames=[],!/** @license * Copyright (c) 2017 Dominik Homberger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. https://webpjs.appspot.com WebPRiffParser dominikhlbg@gmail.com */function(t,e,n,r){for(var i=0;i<4;i++)if(t[e+i]!=n.charCodeAt(i))return!0;return!1}(t,e,"RIFF",0)){for(c(t,e+=4),e+=8;e>1&1}"ANMF"!=h&&(e+=f)}return n}}(t,0);p.response=t,p.rgbaoutput=!0,p.dataurl=!1;var g=p.header?p.header:null,m=p.frames?p.frames:null;if(g){g.loop_counter=g.loop_count,u=[g.canvas_height],h=[g.canvas_width];for(var v=0;v>>1)&255;return o},eW=function(t,e,n){var r,i,o,A=[],s=t.length;A[0]=4;for(var a=0;a>>_&255,_+=s.bits;f[v]=m>>>_&255}}if(16===s.bits){d=(h=new Uint32Array(s.decodePixels().buffer)).length,p=new Uint8Array(32/s.pixelBitlength*d*s.colors),f=new Uint8Array(32/s.pixelBitlength*d),g=s.colors>1,v=0,y=0;for(var x=0;v>>0&255,g&&(p[y++]=m>>>16&255,m=h[v++],p[y++]=m>>>0&255),f[x++]=m>>>16&255;o=8}r!==eH.image_compression.NONE&&"function"==typeof A.zlibSync?(t=eR(p,s.width*s.colors,s.colors,r),u=eR(f,s.width,1,r)):(t=p,u=f,w=void 0)}if(3===s.colorType&&(i=this.color_spaces.INDEXED,c=s.palette,s.transparency.indexed)){var C=s.transparency.indexed,k=0;for(v=0,d=C.length;v=0;t--){for(var r=this.bottom_up?t:this.height-1-t,i=0;i>7-s&1];this.data[A+4*s]=a.blue,this.data[A+4*s+1]=a.green,this.data[A+4*s+2]=a.red,this.data[A+4*s+3]=255}0!==n&&(this.pos+=4-n)}},eP.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),e=t%4,n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>4,a=15&o,l=this.palette[s];if(this.data[A]=l.blue,this.data[A+1]=l.green,this.data[A+2]=l.red,this.data[A+3]=255,2*i+1>=this.width)break;l=this.palette[a],this.data[A+4]=l.blue,this.data[A+4+1]=l.green,this.data[A+4+2]=l.red,this.data[A+4+3]=255}0!==e&&(this.pos+=4-e)}},eP.prototype.bit8=function(){for(var t=this.width%4,e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,r=0;r=0;n--){for(var r=this.bottom_up?n:this.height-1-n,i=0;i>5&e)/e*255|0,a=(o>>10&e)/e*255|0,l=o>>15?255:0,c=r*this.width*4+4*i;this.data[c]=a,this.data[c+1]=s,this.data[c+2]=A,this.data[c+3]=l}this.pos+=t}},eP.prototype.bit16=function(){for(var t=this.width%3,e=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var i=this.bottom_up?r:this.height-1-r,o=0;o>5&n)/n*255|0,l=(A>>11)/e*255|0,c=i*this.width*4+4*o;this.data[c]=l,this.data[c+1]=a,this.data[c+2]=s,this.data[c+3]=255}this.pos+=t}},eP.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,n=0;n=0;t--)for(var e=this.bottom_up?t:this.height-1-t,n=0;nr&&(i.push(t.slice(a,o)),s=0,a=o),s+=e[o],o++;return a!==o&&i.push(t.slice(a,o)),i},ej=function(t,e,n){n||(n={});var r,i,o,A,s,a,l,c=[],u=[c],h=n.textIndent||0,d=0,f=0,p=t.split(" "),g=eL.apply(this,[" ",n])[0];if(a=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var m=Array(a).join(" "),v=[];p.map(function(t){(t=t.split(/\s*\n/)).length>1?v=v.concat(t.map(function(t,e){return(e&&t.length?"\n":"")+t})):v.push(t[0])}),p=v,a=eU.apply(this,[m,n])}for(o=0,A=p.length;oe||y){if(f>e){for(s=eI.apply(this,[r,i,e-(h+d),e]),c.push(s.shift()),c=[s.pop()];s.length;)u.push([s.shift()]);f=i.slice(r.length-(c[0]?c[0].length:0)).reduce(function(t,e){return t+e},0)}else c=[r];u.push(c),h=f+a,d=g}else c.push(r),h+=d+f,d=g}return l=a?function(t,e){return(e?m:"")+t.join(" ")}:function(t){return t.join(" ")},u.map(l)},eS.splitTextToSize=function(t,e,n){var r,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=(function(t){if(t.widths&&t.kerning)return{widths:t.widths,kerning:t.kerning};var e=this.internal.getFont(t.fontName,t.fontStyle);return e.metadata.Unicode?{widths:e.metadata.Unicode.widths||{0:1},kerning:e.metadata.Unicode.kerning||{}}:{font:e.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,n);r=Array.isArray(t)?t:String(t).split(/\r?\n/);var A=1*this.internal.scaleFactor*e/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,a,l=[];for(s=0,a=r.length;sparseInt(this.internal.getFont().id.substr(1),10)?(e=RegExp(t,"g"),n=this.internal.getNumberOfPages()):(e=RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var i=0;i1){for(u=0;u>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},e1=P.API,e2=function(){var t='',e=unescape(encodeURIComponent('')),n=unescape(encodeURIComponent(t)),r=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("")),o=unescape(encodeURIComponent("")),A=n.length+r.length+i.length+e.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+A+" >>"),this.internal.write("stream"),this.internal.write(e+n+r+i+o),this.internal.write("endstream"),this.internal.write("endobj")},e5=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")},e1.addMetadata=function(t,e){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:t,namespaceuri:e||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",e5),this.internal.events.subscribe("postPutResources",e2)),this},e3=(e4=P.API).pdfEscape16=function(t,e){for(var n,r=e.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],A=0,s=t.length;A=100&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==t[e]&&null!==t[e]&&"function"==typeof t[e].toString&&(i=("0000"+t[e].toString(16)).slice(-4),e=("0000"+(+e).toString(16)).slice(-4),r.push("<"+e+"><"+i+">"));return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+="endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"},e4.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,r=t.newObject,i=t.putStream;if(e.metadata instanceof P.API.TTFFont&&"Identity-H"===e.encoding){for(var o=e.metadata.Unicode.widths,A=e.metadata.subset.encode(e.metadata.glyIdsUsed,1),s="",a=0;a>"),n("endobj");var h=r();n("<<"),n("/Type /Font"),n("/BaseFont /"+I(e.fontName)),n("/FontDescriptor "+u+" 0 R"),n("/W "+P.API.PDFObject.convert(o)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+e.encoding+")"),n(">>"),n(">>"),n("endobj"),e.objectNumber=r(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+c+" 0 R"),n("/BaseFont /"+I(e.fontName)),n("/Encoding /"+e.encoding),n("/DescendantFonts ["+h+" 0 R]"),n(">>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]),e4.events.push(["putFont",function(t){!function(t){var e=t.font,n=t.out,r=t.newObject,i=t.putStream;if(e.metadata instanceof P.API.TTFFont&&"WinAnsiEncoding"===e.encoding){for(var o=e.metadata.rawData,A="",s=0;s>"),n("endobj"),e.objectNumber=r();for(var u=0;u>"),n("endobj"),e.isAlreadyPutted=!0}}(t)}]),e8=function(t){var e,n=t.text||"",r=t.x,i=t.y,o=t.options||{},A=t.mutex||{},s=A.pdfEscape,a=A.activeFontKey,l=A.fonts,c=a,u="",h=0,d="",f=l[c].encoding;if("Identity-H"!==l[c].encoding)return{text:n,x:r,y:i,options:o,mutex:A};for(d=n,c=a,Array.isArray(n)&&(d=n[0]),h=0;hd[h].charCodeAt(0)&&l[c].metadata.hasOwnProperty("Unicode")?u+=d[h]:u+="";var p="";return 14>parseInt(c.slice(1))||"WinAnsiEncoding"===f?p=s(u,c).split("").map(function(t){return t.charCodeAt(0).toString(16)}).join(""):"Identity-H"===f&&(p=e3(u,l[c])),A.isHex=!0,{text:p,x:r,y:i,options:o,mutex:A}},e4.events.push(["postProcessText",function(t){var e=t.text||"",n=[],r={text:e,x:t.x,y:t.y,options:t.options,mutex:t.mutex};if(Array.isArray(e)){var i=0;for(i=0;i","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],f=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),p=!1,g=0;this.__bidiEngine__={};var m=function(t){var n=t.charCodeAt(),r=n>>8,i=h[r];return void 0!==i?e[256*i+(255&n)]:252===r||253===r?"AL":f.test(r)?"L":8===r?"R":"N"},v=function(t){for(var e,n=0;n=e.length||"EN"!==(a=A[s-1])&&"AN"!==a||"EN"!==(l=e[s+1])&&"AN"!==l?h="N":p&&(l="AN"),h=l===a?l:"N";break;case"ES":h="EN"===(a=s>0?A[s-1]:"B")&&s+10&&"EN"===A[s-1]){h="EN";break}if(p){h="N";break}for(c=s+1,u=e.length;c=1425&&d<=2303||64286===d)&&("R"===a||"AL"===a)){h="R";break}}}h=s<1||"B"===(a=e[s-1])?"N":A[s-1];break;case"B":p=!1,n=!0,h=g;break;case"S":r=!0,h="N"}return h},w=function(t,e,n){var r=t.split("");return n&&b(r,n,{hiLevel:g}),r.reverse(),e&&e.reverse(),r.join("")},b=function(t,e,i){var o,A,s,a,h,d=-1,f=t.length,v=0,w=[],b=g?c:l,_=[];for(p=!1,n=!1,r=!1,A=0;A0){if(16===o){for(A=d;A-1){for(A=d;A=0&&"WS"===t[i];i--)e[i]=g}}(_,e,f)},_=function(t,e,r,i,o){if(!(o.hiLevel=t){for(a=u+1;a=t;)a++;for(l=u,s=a-1;l=0&&(t[i]=d[r+1])}(r,n,i),_(2,r,e,n,i),_(1,r,e,n,i),r.join("")};return this.__bidiEngine__.doBidiReorder=function(t,e,n){if(function(t,e){if(e)for(var n=0;n>16))&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(t){var e;return(null!=(e=this.cmap.unicode)?e.codeMap[t]:void 0)||0},t.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},t.prototype.widthOfString=function(t,e,n){var r,i,o,A;for(o=0,i=0,A=(t=""+t).length;0<=A?iA;i=0<=A?++i:--i)r=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(r))+1e3/e*n||0;return e/1e3*o},t.prototype.lineHeight=function(t,e){var n;return null==e&&(e=!1),n=e?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},t}();var eH,eR,eK,eV,ez,eG,eq,eW,eY,eX,eJ,eZ,e$,e0,e1,e2,e5,e4,e3,e6,e8,e7,e9,nt,ne=function(){function t(t){this.data=null!=t?t:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(t){return this.data[this.pos++]=t},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},t.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},t.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},t.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},t.prototype.readString=function(t){var e,n;for(n=[],e=0;0<=t?et;e=0<=t?++e:--e)n[e]=String.fromCharCode(this.readByte());return n.join("")},t.prototype.writeString=function(t){var e,n,r;for(r=[],e=0,n=t.length;0<=n?en;e=0<=n?++e:--e)r.push(this.writeByte(t.charCodeAt(e)));return r},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(t){return this.writeInt16(t)},t.prototype.readLongLong=function(){var t,e,n,r,i,o,A,s;return t=this.readByte(),e=this.readByte(),n=this.readByte(),r=this.readByte(),i=this.readByte(),o=this.readByte(),A=this.readByte(),s=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^i)+65536*(255^o)+256*(255^A)+(255^s)+1):72057594037927940*t+281474976710656*e+1099511627776*n+4294967296*r+16777216*i+65536*o+256*A+s},t.prototype.writeLongLong=function(t){var e,n;return e=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(t){return this.writeInt32(t)},t.prototype.read=function(t){var e,n;for(e=[],n=0;0<=t?nt;n=0<=t?++n:--n)e.push(this.readByte());return e},t.prototype.write=function(t){var e,n,r,i;for(i=[],n=0,r=t.length;nr;n=0<=r?++n:--n)e={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[e.tag]=e}return e.prototype.encode=function(e){var n,r,i,o,A,s,a,l,c,u,h,d,f;for(f in o=Math.floor((c=16*Math.floor(Math.log(h=Object.keys(e).length)/(s=Math.log(2))))/s),l=16*h-c,(r=new ne).writeInt(this.scalarType),r.writeShort(h),r.writeShort(c),r.writeShort(o),r.writeShort(l),i=16*h,a=r.pos+i,A=null,d=[],e)for(u=e[f],r.writeString(f),r.writeInt(t(u)),r.writeInt(a),r.writeInt(u.length),d=d.concat(u),"head"===f&&(A=a),a+=u.length;a%4;)d.push(0),a++;return r.write(d),n=2981146554-t(r.data),r.pos=A+8,r.writeUInt32(n),r.data},t=function(t){var e,n,r,i;for(t=np.call(t);t.length%4;)t.push(0);for(r=new ne(t),n=0,e=0,i=t.length;eu;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),t.pos+=2,d=function(){var e,n;for(n=[],s=e=0;0<=u?eu;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),a=function(){var e,n;for(n=[],s=e=0;0<=u?eu;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),l=function(){var e,n;for(n=[],s=e=0;0<=u?eu;s=0<=u?++e:--e)n.push(t.readUInt16());return n}(),r=(this.length-t.pos+this.offset)/2,A=function(){var e,n;for(n=[],s=e=0;0<=r?er;s=0<=r?++e:--e)n.push(t.readUInt16());return n}(),s=p=0,m=i.length;p=f;n=h<=f?++g:--g)0===l[s]?o=n+a[s]:0!==(o=A[l[s]/2+(n-h)-(u-s)]||0)&&(o+=a[s]),this.codeMap[n]=65535&o}t.pos=c}return t.encode=function(t,e){var n,r,i,o,A,s,a,l,c,u,h,d,f,p,g,m,v,y,w,b,_,B,x,C,k,F,E,Q,S,L,U,I,j,M,D,T,N,P,O,H,R,K,V,z,G,q;switch(Q=new ne,o=Object.keys(t).sort(function(t,e){return t-e}),e){case"macroman":for(f=0,p=function(){var t=[];for(d=0;d<256;++d)t.push(0);return t}(),m={0:0},i={},S=0,j=o.length;S=32768)for(s.push(0),b.push(2*(h.length+x-d)),r=I=k;k<=l?I<=l:I>=l;r=k<=l?++I:--I)h.push(n[r].new);else s.push(E-k),b.push(0)}for(Q.writeUInt16(3),Q.writeUInt16(1),Q.writeUInt32(12),Q.writeUInt16(4),Q.writeUInt16(16+8*x+2*h.length),Q.writeUInt16(0),Q.writeUInt16(C),Q.writeUInt16(B),Q.writeUInt16(u),Q.writeUInt16(_),R=0,T=c.length;Rr;n=0<=r?++n:--n)e=new nA(t,this.offset),this.tables.push(e),e.isUnicode&&null==this.unicode&&(this.unicode=e);return!0},e.encode=function(t,e){var n,r;return null==e&&(e="macroman"),n=nA.encode(t,e),(r=new ne).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),na=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ni(e,nt),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),nl=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ni(e,nt),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var e,n;for(n=[],e=0;e<10;++e)n.push(t.readByte());return n}(),this.charRange=function(){var e,n;for(n=[],e=0;e<4;++e)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var e,n;for(n=[],e=0;e<2;e=++e)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),nc=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ni(e,nt),e.prototype.tag="post",e.prototype.parse=function(t){var e,n,r,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:for(n=t.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?in;i=0<=n?++i:--i)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],r=[];t.posn;i=0<=n?++e:--e)r.push(t.readUInt32());return r}).call(this)}},e}(),nu=function(t,e){this.raw=t,this.length=t.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},nh=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ni(e,nt),e.prototype.tag="name",e.prototype.parse=function(t){var e,n,r,i,o,A,s,a,l,c;for(t.pos=this.offset,t.readShort(),e=t.readShort(),A=t.readShort(),n=[],i=0;0<=e?ie;i=0<=e?++i:--i)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+A+t.readShort()});for(s={},i=a=0,l=n.length;aA;e=0<=A?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(r=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],e=n=0;0<=r?nr;e=0<=r?++n:--n)i.push(t.readInt16());return i}(),this.widths=(function(){var t,e,n,r;for(r=[],t=0,e=(n=this.metrics).length;tr;e=0<=r?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),np=[].slice,ng=function(t){function e(){return e.__super__.constructor.apply(this,arguments)}return ni(e,nt),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var e,n,r,i,o,A,s,a,l,c;return t in this.cache?this.cache[t]:(i=this.file.loca,e=this.file.contents,n=i.indexOf(t),0===(r=i.lengthOf(t))?this.cache[t]=null:(e.pos=this.offset+n,o=(A=new ne(e.read(r))).readShort(),a=A.readShort(),c=A.readShort(),s=A.readShort(),l=A.readShort(),this.cache[t]=-1===o?new nv(A,a,c,s,l):new nm(A,o,a,c,s,l),this.cache[t]))},e.prototype.encode=function(t,e,n){var r,i,o,A,s;for(o=[],i=[],A=0,s=e.length;A0&&(r+=s)}for(var a=Array(4*n.length),l=0;l>8,a[4*l+1]=(16711680&n[l])>>16,a[4*l]=(4278190080&n[l])>>24;return a},e}(),nw=function(){function t(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var t,e,n,r,i;for(e in r=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[e],t[e]=r[n];return t},t.prototype.glyphsFor=function(t){var e,n,r,i,o,A,s;for(r={},o=0,A=t.length;o0)for(i in s=this.glyphsFor(e))n=s[i],r[i]=n;return r},t.prototype.encode=function(t,e){var n,r,i,o,A,s,a,l,c,u,h,d,f,p,g;for(r in n=ns.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},g=n.charMap)h[(s=g[r]).old]=s.new;for(d in u=n.maxGlyphID,o)d in h||(h[d]=u++);return c=Object.keys(l=function(t){var e,n;for(e in n={},t)n[t[e]]=e;return n}(h)).sort(function(t,e){return t-e}),f=function(){var t,e,n;for(n=[],t=0,e=c.length;t>"),o.join("\n")}return""+n},e}(),n.default=P},{"@babel/runtime/helpers/typeof":"eC9cP",fflate:"2mfHj",e35ed7d1af132742:"lcyYB",fd4d839f94e36dff:"9pZ1e","7ec43201f0dbcdb8":"3D4y9","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],eC9cP:[function(t,e,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},{}],"2mfHj":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"FlateErrorCode",function(){return j}),r.export(n,"Deflate",function(){return tk}),r.export(n,"AsyncDeflate",function(){return tF}),r.export(n,"deflate",function(){return tE}),r.export(n,"deflateSync",function(){return tQ}),r.export(n,"Inflate",function(){return tS}),r.export(n,"AsyncInflate",function(){return tL}),r.export(n,"inflate",function(){return tU}),r.export(n,"inflateSync",function(){return tI}),r.export(n,"Gzip",function(){return tj}),r.export(n,"AsyncGzip",function(){return tM}),r.export(n,"gzip",function(){return tD}),r.export(n,"gzipSync",function(){return tT}),r.export(n,"Gunzip",function(){return tN}),r.export(n,"AsyncGunzip",function(){return tP}),r.export(n,"gunzip",function(){return tO}),r.export(n,"gunzipSync",function(){return tH}),r.export(n,"Zlib",function(){return tR}),r.export(n,"AsyncZlib",function(){return tK}),r.export(n,"zlib",function(){return tV}),r.export(n,"zlibSync",function(){return tz}),r.export(n,"Unzlib",function(){return tG}),r.export(n,"AsyncUnzlib",function(){return tq}),r.export(n,"unzlib",function(){return tW}),r.export(n,"unzlibSync",function(){return tY}),r.export(n,"compress",function(){return tD}),r.export(n,"AsyncCompress",function(){return tM}),r.export(n,"compressSync",function(){return tT}),r.export(n,"Compress",function(){return tj}),r.export(n,"Decompress",function(){return tX}),r.export(n,"AsyncDecompress",function(){return tJ}),r.export(n,"decompress",function(){return tZ}),r.export(n,"decompressSync",function(){return t$}),r.export(n,"DecodeUTF8",function(){return t3}),r.export(n,"EncodeUTF8",function(){return t6}),r.export(n,"strToU8",function(){return t8}),r.export(n,"strFromU8",function(){return t7}),r.export(n,"ZipPassThrough",function(){return eA}),r.export(n,"ZipDeflate",function(){return es}),r.export(n,"AsyncZipDeflate",function(){return ea}),r.export(n,"Zip",function(){return el}),r.export(n,"zip",function(){return ec}),r.export(n,"zipSync",function(){return eu}),r.export(n,"UnzipPassThrough",function(){return eh}),r.export(n,"UnzipInflate",function(){return ed}),r.export(n,"AsyncUnzipInflate",function(){return ef}),r.export(n,"Unzip",function(){return ep}),r.export(n,"unzip",function(){return em}),r.export(n,"unzipSync",function(){return ev});var i={},o=function(t,e,n,r,o){var A=new Worker(i[e]||(i[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return A.onmessage=function(t){var e=t.data,n=e.$e$;if(n){var r=Error(n[0]);r.code=n[1],r.stack=n[2],o(r,null)}else o(null,e)},A.postMessage(n,r),A},A=Uint8Array,s=Uint16Array,a=Int32Array,l=new A([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,0,0,0]),c=new A([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,0,0]),u=new A([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(t,e){for(var n=new s(31),r=0;r<31;++r)n[r]=e+=1<>1|(21845&w)<<1;b=(61680&(b=(52428&b)>>2|(13107&b)<<2))>>4|(3855&b)<<4,y[w]=((65280&b)>>8|(255&b)<<8)>>1}for(var _=function(t,e,n){for(var r,i=t.length,o=0,A=new s(e);o>l]=c}else for(o=0,r=new s(i);o>15-t[o]);return r},B=new A(288),w=0;w<144;++w)B[w]=8;for(var w=144;w<256;++w)B[w]=9;for(var w=256;w<280;++w)B[w]=7;for(var w=280;w<288;++w)B[w]=8;for(var x=new A(32),w=0;w<32;++w)x[w]=5;var C=_(B,9,0),k=_(B,9,1),F=_(x,5,0),E=_(x,5,1),Q=function(t){for(var e=t[0],n=1;ne&&(e=t[n]);return e},S=function(t,e,n){var r=e/8|0;return(t[r]|t[r+1]<<8)>>(7&e)&n},L=function(t,e){var n=e/8|0;return(t[n]|t[n+1]<<8|t[n+2]<<16)>>(7&e)},U=function(t){return(t+7)/8|0},I=function(t,e,n){return(null==e||e<0)&&(e=0),(null==n||n>t.length)&&(n=t.length),new A(t.subarray(e,n))},j={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],D=function(t,e,n){var r=Error(e||M[t]);if(r.code=t,Error.captureStackTrace&&Error.captureStackTrace(r,D),!n)throw r;return r},T=function(t,e,n,r){var i=t.length,o=r?r.length:0;if(!i||e.f&&!e.l)return n||new A(0);var s=!n,a=s||2!=e.i,h=e.i;s&&(n=new A(3*i));var d=function(t){var e=n.length;if(t>e){var r=new A(Math.max(2*e,t));r.set(n),n=r}},p=e.f||0,g=e.p||0,v=e.b||0,y=e.l,w=e.d,b=e.m,B=e.n,x=8*i;do{if(!y){p=S(t,g,1);var C=S(t,g+1,3);if(g+=3,C){if(1==C)y=k,w=E,b=9,B=5;else if(2==C){var F=S(t,g,31)+257,j=S(t,g+10,15)+4,M=F+S(t,g+5,31)+1;g+=14;for(var T=new A(M),N=new A(19),P=0;P>4;if(V<16)T[P++]=V;else{var z=0,G=0;for(16==V?(G=3+S(t,g,3),g+=2,z=T[P-1]):17==V?(G=3+S(t,g,7),g+=3):18==V&&(G=11+S(t,g,127),g+=7);G--;)T[P++]=z}}var q=T.subarray(0,F),W=T.subarray(F);b=Q(q),B=Q(W),y=_(q,b,1),w=_(W,B,1)}else D(1)}else{var V=U(g)+4,Y=t[V-4]|t[V-3]<<8,X=V+Y;if(X>i){h&&D(0);break}a&&d(v+Y),n.set(t.subarray(V,X),v),e.b=v+=Y,e.p=g=8*X,e.f=p;continue}if(g>x){h&&D(0);break}}a&&d(v+131072);for(var J=(1<>4;if((g+=15&z)>x){h&&D(0);break}if(z||D(2),tt<256)n[v++]=tt;else if(256==tt){$=g,y=null;break}else{var te=tt-254;if(tt>264){var P=tt-257,tn=l[P];te=S(t,g,(1<>4;tr||D(3),g+=15&tr;var W=m[ti];if(ti>3){var tn=c[ti];W+=L(t,g)&(1<x){h&&D(0);break}a&&d(v+131072);var to=v+te;if(v>8},P=function(t,e,n){n<<=7&e;var r=e/8|0;t[r]|=n,t[r+1]|=n>>8,t[r+2]|=n>>16},O=function(t,e){for(var n=[],r=0;rf&&(f=o[r].s);var p=new s(f+1),g=H(n[h-1],p,0);if(g>e){var r=0,m=0,v=g-e,y=1<e)m+=y-(1<>=v;m>0;){var b=o[r].s;p[b]=0&&m;--r){var _=o[r].s;p[_]==e&&(--p[_],++m)}g=e}return{t:new A(p),l:g}},H=function(t,e,n){return -1==t.s?Math.max(H(t.l,e,n+1),H(t.r,e,n+1)):e[t.s]=n},R=function(t){for(var e=t.length;e&&!t[--e];);for(var n=new s(++e),r=0,i=t[0],o=1,A=function(t){n[r++]=t},a=1;a<=e;++a)if(t[a]==i&&a!=e)++o;else{if(!i&&o>2){for(;o>138;o-=138)A(32754);o>2&&(A(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(A(i),--o;o>6;o-=6)A(8304);o>2&&(A(o-3<<5|8208),o=0)}for(;o--;)A(i);o=1,i=t[a]}return{c:n.subarray(0,r),n:e}},K=function(t,e){for(var n=0,r=0;r>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o4&&!z[u[q-1]];--q);var W=d+5<<3,Y=K(i,B)+K(o,x)+A,X=K(i,w)+K(o,E)+A+14+3*q+K(D,z)+2*D[16]+3*D[17]+7*D[18];if(h>=0&&W<=Y&&W<=X)return V(e,f,t.subarray(h,h+d));if(N(e,f,1+(X15&&(N(e,f,tt[T]>>5&127),f+=tt[T]>>12)}}else p=C,g=B,m=F,v=x;for(var T=0;T255){var te=tn>>18&31;P(e,f,p[te+257]),f+=g[te+257],te>7&&(N(e,f,tn>>23&31),f+=l[te]);var tr=31&tn;P(e,f,m[tr]),f+=v[tr],tr>3&&(P(e,f,tn>>5&8191),f+=c[tr])}else P(e,f,p[tn]),f+=g[tn]}return P(e,f,p[256]),f+g[256]},G=new a([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),q=new A(0),W=function(t,e,n,r,i,o){var u=o.z||t.length,h=new A(r+u+5*(1+Math.ceil(u/7e3))+i),d=h.subarray(r,h.length-i),f=o.l,g=7&(o.r||0);if(e){g&&(d[0]=o.r>>3);for(var m=G[e-1],y=m>>13,w=8191&m,b=(1<7e3||M>24576)&&(H>423||!f)){g=z(t,d,0,F,E,Q,L,M,T,j-T,g),M=S=L=0,T=j;for(var R=0;R<286;++R)E[R]=0;for(var R=0;R<30;++R)Q[R]=0}var K=2,q=0,W=w,Y=P-O&32767;if(H>2&&N==k(j-Y))for(var X=Math.min(y,H)-1,J=Math.min(32767,j),Z=Math.min(258,H);Y<=J&&--W&&P!=O;){if(t[j+K]==t[j+K-Y]){for(var $=0;$K){if(K=$,q=Y,$>X)break;for(var tt=Math.min(Y,$-2),te=0,R=0;Rte&&(te=ti,O=tn)}}}O=_[P=O],Y+=P-O&32767}if(q){F[M++]=268435456|p[K]<<18|v[q];var to=31&p[K],tA=31&v[q];L+=l[to]+c[tA],++E[257+to],++Q[tA],D=j+K,++S}else F[M++]=t[j],++E[t[j]]}}for(j=Math.max(j,D);j=u&&(d[g/8|0]=f,ts=u),g=V(d,g+1,t.subarray(j,ts))}o.i=u}return I(h,0,r+U(g)+i)},Y=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var n=e,r=9;--r;)n=(1&n&&-306674912)^n>>>1;t[e]=n}return t}(),X=function(){var t=-1;return{p:function(e){for(var n=t,r=0;r>>8;t=n},d:function(){return~t}}},J=function(){var t=1,e=0;return{p:function(n){for(var r=t,i=e,o=0|n.length,A=0;A!=o;){for(var s=Math.min(A+2655,o);A>16),i=(65535&i)+15*(i>>16)}t=r,e=i},d:function(){return t%=65521,e%=65521,(255&t)<<24|(65280&t)<<8|(255&e)<<8|e>>8}}},Z=function(t,e,n,r,i){if(!i&&(i={l:1},e.dictionary)){var o=e.dictionary.subarray(-32768),s=new A(o.length+t.length);s.set(o),s.set(t,o.length),t=s,i.w=o.length}return W(t,null==e.level?6:e.level,null==e.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+e.mem,n,r,i)},$=function(t,e){var n={};for(var r in t)n[r]=t[r];for(var r in e)n[r]=e[r];return n},tt=function(t,e,n){for(var r=t(),i=t.toString(),o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),A=0;A>>0},tm=function(t,e){return tg(t,e)+4294967296*tg(t,e+4)},tv=function(t,e,n){for(;n;++e)t[e]=n,n>>>=8},ty=function(t,e){var n=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:9==e.level?2:0,t[9]=3,0!=e.mtime&&tv(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),n){t[3]=8;for(var r=0;r<=n.length;++r)t[r+10]=n.charCodeAt(r)}},tw=function(t){(31!=t[0]||139!=t[1]||8!=t[2])&&D(6,"invalid gzip data");var e=t[3],n=10;4&e&&(n+=(t[10]|t[11]<<8)+2);for(var r=(e>>3&1)+(e>>4&1);r>0;r-=!t[n++]);return n+(2&e)},tb=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},t_=function(t){return 10+(t.filename?t.filename.length+1:0)},tB=function(t,e){var n=e.level;if(t[0]=120,t[1]=(0==n?0:n<6?1:9==n?3:2)<<6|(e.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,e.dictionary){var r=J();r.p(e.dictionary),tv(t,2,r.d())}},tx=function(t,e){return((15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31)&&D(6,"invalid zlib data"),(t[1]>>5&1)==+!e&&D(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),(t[1]>>3&4)+2};function tC(t,e){return"function"==typeof t&&(e=t,t={}),this.ondata=e,t}var tk=function(){function t(t,e){if("function"==typeof t&&(e=t,t={}),this.ondata=e,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new A(98304),this.o.dictionary){var n=this.o.dictionary.subarray(-32768);this.b.set(n,32768-n.length),this.s.i=32768-n.length}}return t.prototype.p=function(t,e){this.ondata(Z(t,this.o,0,0,this.s),e)},t.prototype.push=function(t,e){this.ondata||D(5),this.s.l&&D(4);var n=t.length+this.s.z;if(n>this.b.length){if(n>2*this.b.length-32768){var r=new A(-32768&n);r.set(this.b.subarray(0,this.s.z)),this.b=r}var i=this.b.length-this.s.z;this.b.set(t.subarray(0,i),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(i),32768),this.s.z=t.length-i+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&e,(this.s.z>this.s.w+8191||e)&&(this.p(this.b,e||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||D(5),this.s.l&&D(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t}(),tF=function(t,e){tf([to,function(){return[td,tk]}],this,tC.call(this,t,e),function(t){onmessage=td(new tk(t.data))},6,1)};function tE(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[to],function(t){return tc(tQ(t.data[0],t.data[1]))},0,n)}function tQ(t,e){return Z(t,e||{},0,0)}var tS=function(){function t(t,e){"function"==typeof t&&(e=t,t={}),this.ondata=e;var n=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:n?n.length:0},this.o=new A(32768),this.p=new A(0),n&&this.o.set(n)}return t.prototype.e=function(t){if(this.ondata||D(5),this.d&&D(4),this.p.length){if(t.length){var e=new A(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length),this.p=e}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var e=this.s.b,n=T(this.p,this.s,this.o);this.ondata(I(n,e,this.s.b),this.d),this.o=I(n,this.s.b-32768),this.s.b=this.o.length,this.p=I(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,e){this.e(t),this.c(e)},t}(),tL=function(t,e){tf([ti,function(){return[td,tS]}],this,tC.call(this,t,e),function(t){onmessage=td(new tS(t.data))},7,0)};function tU(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[ti],function(t){return tc(tI(t.data[0],tu(t.data[1])))},1,n)}function tI(t,e){return T(t,{i:2},e&&e.out,e&&e.dictionary)}var tj=function(){function t(t,e){this.c=X(),this.l=0,this.v=1,tk.call(this,t,e)}return t.prototype.push=function(t,e){this.c.p(t),this.l+=t.length,tk.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){var n=Z(t,this.o,this.v&&t_(this.o),e&&8,this.s);this.v&&(ty(n,this.o),this.v=0),e&&(tv(n,n.length-8,this.c.d()),tv(n,n.length-4,this.l)),this.ondata(n,e)},t.prototype.flush=function(){tk.prototype.flush.call(this)},t}(),tM=function(t,e){tf([to,tA,function(){return[td,tk,tj]}],this,tC.call(this,t,e),function(t){onmessage=td(new tj(t.data))},8,1)};function tD(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[to,tA,function(){return[tT]}],function(t){return tc(tT(t.data[0],t.data[1]))},2,n)}function tT(t,e){e||(e={});var n=X(),r=t.length;n.p(t);var i=Z(t,e,t_(e),8),o=i.length;return ty(i,e),tv(i,o-8,n.d()),tv(i,o-4,r),i}var tN=function(){function t(t,e){this.v=1,this.r=0,tS.call(this,t,e)}return t.prototype.push=function(t,e){if(tS.prototype.e.call(this,t),this.r+=t.length,this.v){var n=this.p.subarray(this.v-1),r=n.length>3?tw(n):4;if(r>n.length){if(!e)return}else this.v>1&&this.onmember&&this.onmember(this.r-n.length);this.p=n.subarray(r),this.v=0}tS.prototype.c.call(this,e),!this.s.f||this.s.l||e||(this.v=U(this.s.p)+9,this.s={i:0},this.o=new A(0),this.push(new A(0),e))},t}(),tP=function(t,e){var n=this;tf([ti,ts,function(){return[td,tS,tN]}],this,tC.call(this,t,e),function(t){var e=new tN(t.data);e.onmember=function(t){return postMessage(t)},onmessage=td(e)},9,0,function(t){return n.onmember&&n.onmember(t)})};function tO(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[ti,ts,function(){return[tH]}],function(t){return tc(tH(t.data[0],t.data[1]))},3,n)}function tH(t,e){var n=tw(t);return n+8>t.length&&D(6,"invalid gzip data"),T(t.subarray(n,-8),{i:2},e&&e.out||new A(tb(t)),e&&e.dictionary)}var tR=function(){function t(t,e){this.c=J(),this.v=1,tk.call(this,t,e)}return t.prototype.push=function(t,e){this.c.p(t),tk.prototype.push.call(this,t,e)},t.prototype.p=function(t,e){var n=Z(t,this.o,this.v&&(this.o.dictionary?6:2),e&&4,this.s);this.v&&(tB(n,this.o),this.v=0),e&&tv(n,n.length-4,this.c.d()),this.ondata(n,e)},t.prototype.flush=function(){tk.prototype.flush.call(this)},t}(),tK=function(t,e){tf([to,ta,function(){return[td,tk,tR]}],this,tC.call(this,t,e),function(t){onmessage=td(new tR(t.data))},10,1)};function tV(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[to,ta,function(){return[tz]}],function(t){return tc(tz(t.data[0],t.data[1]))},4,n)}function tz(t,e){e||(e={});var n=J();n.p(t);var r=Z(t,e,e.dictionary?6:2,4);return tB(r,e),tv(r,r.length-4,n.d()),r}var tG=function(){function t(t,e){tS.call(this,t,e),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,e){if(tS.prototype.e.call(this,t),this.v){if(this.p.length<6&&!e)return;this.p=this.p.subarray(tx(this.p,this.v-1)),this.v=0}e&&(this.p.length<4&&D(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),tS.prototype.c.call(this,e)},t}(),tq=function(t,e){tf([ti,tl,function(){return[td,tS,tG]}],this,tC.call(this,t,e),function(t){onmessage=td(new tG(t.data))},11,0)};function tW(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),th(t,e,[ti,tl,function(){return[tY]}],function(t){return tc(tY(t.data[0],tu(t.data[1])))},5,n)}function tY(t,e){return T(t.subarray(tx(t,e&&e.dictionary),-4),{i:2},e&&e.out,e&&e.dictionary)}var tX=function(){function t(t,e){this.o=tC.call(this,t,e)||{},this.G=tN,this.I=tS,this.Z=tG}return t.prototype.i=function(){var t=this;this.s.ondata=function(e,n){t.ondata(e,n)}},t.prototype.push=function(t,e){if(this.ondata||D(5),this.s)this.s.push(t,e);else{if(this.p&&this.p.length){var n=new A(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,e),this.p=null)}},t}(),tJ=function(){function t(t,e){tX.call(this,t,e),this.queuedSize=0,this.G=tP,this.I=tL,this.Z=tq}return t.prototype.i=function(){var t=this;this.s.ondata=function(e,n,r){t.ondata(e,n,r)},this.s.ondrain=function(e){t.queuedSize-=e,t.ondrain&&t.ondrain(e)}},t.prototype.push=function(t,e){this.queuedSize+=t.length,tX.prototype.push.call(this,t,e)},t}();function tZ(t,e,n){return n||(n=e,e={}),"function"!=typeof n&&D(7),31==t[0]&&139==t[1]&&8==t[2]?tO(t,e,n):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?tU(t,e,n):tW(t,e,n)}function t$(t,e){return 31==t[0]&&139==t[1]&&8==t[2]?tH(t,e):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?tI(t,e):tY(t,e)}var t0=function(t,e,n,r){for(var i in t){var o=t[i],s=e+i,a=r;Array.isArray(o)&&(a=$(r,o[1]),o=o[0]),o instanceof A?n[s]=[o,a]:(n[s+="/"]=[new A(0),a],t0(o,s,n,r))}},t1="undefined"!=typeof TextEncoder&&new TextEncoder,t2="undefined"!=typeof TextDecoder&&new TextDecoder,t5=0;try{t2.decode(q,{stream:!0}),t5=1}catch(t){}var t4=function(t){for(var e="",n=0;;){var r=t[n++],i=(r>127)+(r>223)+(r>239);if(n+i>t.length)return{s:e,r:I(t,n-1)};i?3==i?e+=String.fromCharCode(55296|(r=((15&r)<<18|(63&t[n++])<<12|(63&t[n++])<<6|63&t[n++])-65536)>>10,56320|1023&r):1&i?e+=String.fromCharCode((31&r)<<6|63&t[n++]):e+=String.fromCharCode((15&r)<<12|(63&t[n++])<<6|63&t[n++]):e+=String.fromCharCode(r)}},t3=function(){function t(t){this.ondata=t,t5?this.t=new TextDecoder:this.p=q}return t.prototype.push=function(t,e){if(this.ondata||D(5),e=!!e,this.t){this.ondata(this.t.decode(t,{stream:!0}),e),e&&(this.t.decode().length&&D(8),this.t=null);return}this.p||D(4);var n=new A(this.p.length+t.length);n.set(this.p),n.set(t,this.p.length);var r=t4(n),i=r.s,o=r.r;e?(o.length&&D(8),this.p=null):this.p=o,this.ondata(i,e)},t}(),t6=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,e){this.ondata||D(5),this.d&&D(4),this.ondata(t8(t),this.d=e||!1)},t}();function t8(t,e){if(e){for(var n=new A(t.length),r=0;r>1)),s=0,a=function(t){o[s++]=t},r=0;ro.length){var l=new A(s+8+(i-r<<1));l.set(o),o=l}var c=t.charCodeAt(r);c<128||e?a(c):(c<2048?a(192|c>>6):(c>55295&&c<57344?(a(240|(c=65536+(1047552&c)|1023&t.charCodeAt(++r))>>18),a(128|c>>12&63)):a(224|c>>12),a(128|c>>6&63)),a(128|63&c))}return I(o,0,s)}function t7(t,e){if(e){for(var n="",r=0;r65535&&D(9),e+=r+4}return e},ei=function(t,e,n,r,i,o,A,s){var a=r.length,l=n.extra,c=s&&s.length,u=er(l);tv(t,e,null!=A?33639248:67324752),e+=4,null!=A&&(t[e++]=20,t[e++]=n.os),t[e]=20,e+=2,t[e++]=n.flag<<1|(o<0&&8),t[e++]=i&&8,t[e++]=255&n.compression,t[e++]=n.compression>>8;var h=new Date(null==n.mtime?Date.now():n.mtime),d=h.getFullYear()-1980;if((d<0||d>119)&&D(10),tv(t,e,d<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),e+=4,-1!=o&&(tv(t,e,n.crc),tv(t,e+4,o<0?-o-2:o),tv(t,e+8,n.size)),tv(t,e+12,a),tv(t,e+14,u),e+=16,null!=A&&(tv(t,e,c),tv(t,e+6,n.attrs),tv(t,e+10,A),e+=14),t.set(r,e),e+=a,u)for(var f in l){var p=l[f],g=p.length;tv(t,e,+f),tv(t,e+2,g),t.set(p,e+4),e+=4+g}return c&&(t.set(s,e),e+=c),e},eo=function(t,e,n,r,i){tv(t,e,101010256),tv(t,e+8,n),tv(t,e+10,n),tv(t,e+12,r),tv(t,e+16,i)},eA=function(){function t(t){this.filename=t,this.c=X(),this.size=0,this.compression=0}return t.prototype.process=function(t,e){this.ondata(null,t,e)},t.prototype.push=function(t,e){this.ondata||D(5),this.c.p(t),this.size+=t.length,e&&(this.crc=this.c.d()),this.process(t,e||!1)},t}(),es=function(){function t(t,e){var n=this;e||(e={}),eA.call(this,t),this.d=new tk(e,function(t,e){n.ondata(null,t,e)}),this.compression=8,this.flag=t9(e.level)}return t.prototype.process=function(t,e){try{this.d.push(t,e)}catch(t){this.ondata(t,null,e)}},t.prototype.push=function(t,e){eA.prototype.push.call(this,t,e)},t}(),ea=function(){function t(t,e){var n=this;e||(e={}),eA.call(this,t),this.d=new tF(e,function(t,e,r){n.ondata(t,e,r)}),this.compression=8,this.flag=t9(e.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,e){this.d.push(t,e)},t.prototype.push=function(t,e){eA.prototype.push.call(this,t,e)},t}(),el=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var e=this;if(this.ondata||D(5),2&this.d)this.ondata(D(4+(1&this.d)*8,0,1),null,!1);else{var n=t8(t.filename),r=n.length,i=t.comment,o=i&&t8(i),s=r!=t.filename.length||o&&i.length!=o.length,a=r+er(t.extra)+30;r>65535&&this.ondata(D(11,0,1),null,!1);var l=new A(a);ei(l,0,t,n,s,-1);var c=[l],u=function(){for(var t=0,n=c;t65535&&x(D(11,0,1),null),B){if(g<16e4)try{x(null,tQ(A,l))}catch(t){x(t,null)}else u.push(tE(A,l,x))}else x(null,A)},g=0;g65535&&D(11);var v=u?tQ(l,c):l,y=v.length,w=X();w.p(l),r.push($(c,{size:l.length,crc:w.d(),c:v,f:h,m:p,u:d!=s.length||p&&f.length!=g,o:i,compression:u})),i+=30+d+m+y,o+=76+2*(d+m)+(g||0)+y}for(var b=new A(o+22),_=i,B=o-i,x=0;x0){var r=Math.min(this.c,t.length),i=t.subarray(0,r);if(this.c-=r,this.d?this.d.push(i,!this.c):this.k[0].push(i),(t=t.subarray(r)).length)return this.push(t,e)}else{var o=0,s=0,a=void 0,l=void 0;this.p.length?t.length?((l=new A(this.p.length+t.length)).set(this.p),l.set(t,this.p.length)):l=this.p:l=t;for(var c=l.length,u=this.c,h=u&&this.d,d=this;ss+30+A+h){var f,p,g=[];d.k.unshift(g),o=2;var m=tg(l,s+18),v=tg(l,s+22),y=t7(l.subarray(s+30,s+=30+A),!(2048&e));4294967295==m?(m=(f=i?[-2]:en(l,s))[0],v=f[1]):i&&(m=-1),s+=h,d.c=m;var w={name:y,compression:r,start:function(){if(w.ondata||D(5),m){var t=n.o[r];t||w.ondata(D(14,"unknown compression type "+r,1),null,!1),(p=m<0?new t(y):new t(y,m,v)).ondata=function(t,e,n){w.ondata(t,e,n)};for(var e=0;e=0&&(w.size=m,w.originalSize=v),d.onfile(w)}return"break"}if(u){if(134695760==t)return a=s+=12+(-2==u&&8),o=3,d.c=0,"break";if(33639248==t)return a=s-=4,o=3,d.c=0,"break"}}();++s);if(this.p=q,u<0){var f=o?l.subarray(0,a-12-(-2==u&&8)-(134695760==tg(l,a-16)&&4)):l.subarray(0,s);h?h.push(f,!!o):this.k[+(2==o)].push(f)}if(2&o)return this.push(l.subarray(s),e);this.p=l.subarray(s)}e&&(this.c&&D(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t}(),eg="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};function em(t,e,n){n||(n=e,e={}),"function"!=typeof n&&D(7);var r=[],i=function(){for(var t=0;t65558)return s(D(13,0,1),null),i;var l=tp(t,a+8);if(l){var c=l,u=tg(t,a+16),h=4294967295==u||65535==c;if(h){var d=tg(t,a-12);(h=101075792==tg(t,d))&&(c=l=tg(t,d+32),u=tg(t,d+48))}for(var f=e&&e.filter,p=0;p.8*d)try{v(null,tI(y,{out:new A(d)}))}catch(t){v(t,null)}else r.push(tU(y,{size:d},v))}else v(D(14,"unknown compression type "+a,1),null)}else v(null,I(t,m,m+c))}else v(null,null)}(0)}else s(null,{});return i}function ev(t,e){for(var n={},r=t.length-22;101010256!=tg(t,r);--r)(!r||t.length-r>65558)&&D(13);var i=tp(t,r+8);if(!i)return{};var o=tg(t,r+16),s=4294967295==o||65535==i;if(s){var a=tg(t,r-12);(s=101075792==tg(t,a))&&(i=tg(t,a+32),o=tg(t,a+48))}for(var l=e&&e.filter,c=0;c0&&i[i.length-1])&&(6===o[0]||2===o[0])){A=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=55296&&i<=56319&&n>10)+55296,A%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",D="undefined"==typeof Uint8Array?[]:new Uint8Array(256),T=0;T=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t>11),e=this.index[e]+(t>>5&63),e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",V="undefined"==typeof Uint8Array?[]:new Uint8Array(256),z=0;z>4,c[a++]=(15&r)<<4|i>>2,c[a++]=(3&i)<<6|63&o;return l}("KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA=="))?function(t){for(var e=t.length,n=[],r=0;r50?(i.push(!0),A-=50):i.push(!1),-1!==["normal","auto","loose"].indexOf(e)&&-1!==[8208,8211,12316,12448].indexOf(t))return r.push(o),n.push(16);if(4===A||11===A){if(0===o)return r.push(o),n.push(30);var s=n[o-1];return -1===Z.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(30))}return(r.push(o),31===A)?n.push("strict"===e?21:37):42===A||29===A?n.push(30):43===A?t>=131072&&t<=196605||t>=196608&&t<=262141?n.push(37):n.push(30):void n.push(A)}),[r,n,i]},tn=function(t,e,n,r){var i=r[n];if(Array.isArray(t)?-1!==t.indexOf(i):t===i)for(var o=n;o<=r.length;){var A=r[++o];if(A===e)return!0;if(10!==A)break}if(10===i)for(var o=n;o>0;){var s=r[--o];if(Array.isArray(t)?-1!==t.indexOf(s):t===s)for(var a=n;a<=r.length;){var A=r[++a];if(A===e)return!0;if(10!==A)break}if(10!==s)break}return!1},tr=function(t,e){for(var n=t;n>=0;){var r=e[n];if(10!==r)return r;n--}return 0},ti=function(t,e,n,r,i){if(0===n[r])return"×";var o=r-1;if(Array.isArray(i)&&!0===i[o])return"×";var A=o-1,s=o+1,a=e[o],l=A>=0?e[A]:0,c=e[s];if(2===a&&3===c)return"×";if(-1!==Y.indexOf(a))return"!";if(-1!==Y.indexOf(c)||-1!==X.indexOf(c))return"×";if(8===tr(o,e))return"÷";if(11===q.get(t[o])||(32===a||33===a)&&11===q.get(t[s])||7===a||7===c||9===a||-1===[10,13,15].indexOf(a)&&9===c||-1!==[17,18,19,24,28].indexOf(c)||22===tr(o,e)||tn(23,22,o,e)||tn([17,18],21,o,e)||tn(12,12,o,e))return"×";if(10===a)return"÷";if(23===a||23===c)return"×";if(16===c||16===a)return"÷";if(-1!==[13,15,21].indexOf(c)||14===a||36===l&&-1!==tt.indexOf(a)||28===a&&36===c||20===c||-1!==W.indexOf(c)&&25===a||-1!==W.indexOf(a)&&25===c||27===a&&-1!==[37,32,33].indexOf(c)||-1!==[37,32,33].indexOf(a)&&26===c||-1!==W.indexOf(a)&&-1!==J.indexOf(c)||-1!==J.indexOf(a)&&-1!==W.indexOf(c)||-1!==[27,26].indexOf(a)&&(25===c||-1!==[22,15].indexOf(c)&&25===e[s+1])||-1!==[22,15].indexOf(a)&&25===c||25===a&&-1!==[25,28,24].indexOf(c))return"×";if(-1!==[25,28,24,17,18].indexOf(c))for(var u=o;u>=0;){var h=e[u];if(25===h)return"×";if(-1!==[28,24].indexOf(h))u--;else break}if(-1!==[27,26].indexOf(c))for(var u=-1!==[17,18].indexOf(a)?A:o;u>=0;){var h=e[u];if(25===h)return"×";if(-1!==[28,24].indexOf(h))u--;else break}if(38===a&&-1!==[38,39,34,35].indexOf(c)||-1!==[39,34].indexOf(a)&&-1!==[39,40].indexOf(c)||-1!==[40,35].indexOf(a)&&40===c||-1!==$.indexOf(a)&&-1!==[20,26].indexOf(c)||-1!==$.indexOf(c)&&27===a||-1!==W.indexOf(a)&&-1!==W.indexOf(c)||24===a&&-1!==W.indexOf(c)||-1!==W.concat(25).indexOf(a)&&22===c&&-1===G.indexOf(t[s])||-1!==W.concat(25).indexOf(c)&&18===a)return"×";if(41===a&&41===c){for(var d=n[o],f=1;d>0;)if(41===e[--d])f++;else break;if(f%2!=0)return"×"}return 32===a&&33===c?"×":"÷"},to=function(t,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var n=te(t,e.lineBreak),r=n[0],i=n[1],o=n[2];return("break-all"===e.wordBreak||"break-word"===e.wordBreak)&&(i=i.map(function(t){return -1!==[25,30,42].indexOf(t)?37:t})),[r,i,"keep-all"===e.wordBreak?o.map(function(e,n){return e&&t[n]>=19968&&t[n]<=40959}):void 0]},tA=function(){function t(t,e,n,r){this.codePoints=t,this.required="!"===e,this.start=n,this.end=r}return t.prototype.slice=function(){return j.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),ts=function(t,e){var n=I(t),r=to(n,e),i=r[0],o=r[1],A=r[2],s=n.length,a=0,l=0;return{next:function(){if(l>=s)return{done:!0,value:null};for(var t="×";l=48&&t<=57},tl=function(t){return ta(t)||t>=65&&t<=70||t>=97&&t<=102},tc=function(t){return 10===t||9===t||32===t},tu=function(t){var e;return(e=t)>=97&&e<=122||e>=65&&e<=90||t>=128||95===t},th=function(t){return tu(t)||ta(t)||45===t},td=function(t,e){return 92===t&&10!==e},tf=function(t,e,n){return 45===t?tu(e)||td(e,n):!!(tu(t)||92===t&&td(t,e))},tp=function(t,e,n){return 43===t||45===t?!!ta(e)||46===e&&ta(n):46===t?ta(e):ta(t)},tg=function(t){var e=0,n=1;(43===t[0]||45===t[e])&&(45===t[e]&&(n=-1),e++);for(var r=[];ta(t[e]);)r.push(t[e++]);var i=r.length?parseInt(j.apply(void 0,r),10):0;46===t[e]&&e++;for(var o=[];ta(t[e]);)o.push(t[e++]);var A=o.length,s=A?parseInt(j.apply(void 0,o),10):0;(69===t[e]||101===t[e])&&e++;var a=1;(43===t[e]||45===t[e])&&(45===t[e]&&(a=-1),e++);for(var l=[];ta(t[e]);)l.push(t[e++]);return n*(i+s*Math.pow(10,-A))*Math.pow(10,a*(l.length?parseInt(j.apply(void 0,l),10):0))},tm={type:2},tv={type:3},ty={type:4},tw={type:13},tb={type:8},t_={type:21},tB={type:9},tx={type:10},tC={type:11},tk={type:12},tF={type:14},tE={type:23},tQ={type:1},tS={type:25},tL={type:24},tU={type:26},tI={type:27},tj={type:28},tM={type:29},tD={type:31},tT={type:32},tN=function(){function t(){this._value=[]}return t.prototype.write=function(t){this._value=this._value.concat(I(t))},t.prototype.read=function(){for(var t=[],e=this.consumeToken();e!==tT;)t.push(e),e=this.consumeToken();return t},t.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case 34:return this.consumeStringToken(34);case 35:var e=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(th(e)||td(n,r)){var i=tf(e,n,r)?2:1,o=this.consumeName();return{type:5,value:o,flags:i}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),tw;break;case 39:return this.consumeStringToken(39);case 40:return tm;case 41:return tv;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),tF;break;case 43:case 46:if(tp(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case 44:return ty;case 45:var A=this.peekCodePoint(0),s=this.peekCodePoint(1);if(tp(t,A,s))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(tf(t,A,s))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(45===A&&62===s)return this.consumeCodePoint(),this.consumeCodePoint(),tL;break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var a=this.consumeCodePoint();if(42===a&&47===(a=this.consumeCodePoint())||-1===a)return this.consumeToken()}break;case 58:return tU;case 59:return tI;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),tS;break;case 64:if(tf(this.peekCodePoint(0),this.peekCodePoint(1),this.peekCodePoint(2))){var o=this.consumeName();return{type:7,value:o}}break;case 91:return tj;case 92:if(td(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case 93:return tM;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),tb;break;case 123:return tC;case 125:return tk;case 117:case 85:var l=this.peekCodePoint(0),c=this.peekCodePoint(1);return 43===l&&(tl(c)||63===c)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),tB;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),t_;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),tx;break;case -1:return tT}return tc(t)?(this.consumeWhiteSpace(),tD):ta(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):tu(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:j(t)}},t.prototype.consumeCodePoint=function(){var t=this._value.shift();return void 0===t?-1:t},t.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},t.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},t.prototype.consumeUnicodeRangeToken=function(){for(var t=[],e=this.consumeCodePoint();tl(e)&&t.length<6;)t.push(e),e=this.consumeCodePoint();for(var n=!1;63===e&&t.length<6;)t.push(e),e=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(j.apply(void 0,t.map(function(t){return 63===t?48:t})),16),i=parseInt(j.apply(void 0,t.map(function(t){return 63===t?70:t})),16);return{type:30,start:r,end:i}}var o=parseInt(j.apply(void 0,t),16);if(!(45===this.peekCodePoint(0)&&tl(this.peekCodePoint(1))))return{type:30,start:o,end:o};this.consumeCodePoint(),e=this.consumeCodePoint();for(var A=[];tl(e)&&A.length<6;)A.push(e),e=this.consumeCodePoint();var i=parseInt(j.apply(void 0,A),16);return{type:30,start:o,end:i}},t.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return"url"===t.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},t.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:22,value:""};var e=this.peekCodePoint(0);if(39===e||34===e){var n=this.consumeStringToken(this.consumeCodePoint());return 0===n.type&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),tE)}for(;;){var r,i=this.consumeCodePoint();if(-1===i||41===i)return{type:22,value:j.apply(void 0,t)};if(tc(i)){if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))return this.consumeCodePoint(),{type:22,value:j.apply(void 0,t)};return this.consumeBadUrlRemnants(),tE}if(34===i||39===i||40===i||(r=i)>=0&&r<=8||11===r||r>=14&&r<=31||127===r)return this.consumeBadUrlRemnants(),tE;if(92===i){if(!td(i,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),tE;t.push(this.consumeEscapedCodePoint())}else t.push(i)}},t.prototype.consumeWhiteSpace=function(){for(;tc(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(41===t||-1===t)return;td(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(t){for(var e="";t>0;){var n=Math.min(5e4,t);e+=j.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),e},t.prototype.consumeStringToken=function(t){for(var e="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===t)return{type:0,value:e+=this.consumeStringSlice(n)};if(10===r)return this._value.splice(0,n),tQ;if(92===r){var i=this._value[n+1];-1!==i&&void 0!==i&&(10===i?(e+=this.consumeStringSlice(n),n=-1,this._value.shift()):td(r,i)&&(e+=this.consumeStringSlice(n)+j(this.consumeEscapedCodePoint()),n=-1))}n++}},t.prototype.consumeNumber=function(){var t=[],e=4,n=this.peekCodePoint(0);for((43===n||45===n)&&t.push(this.consumeCodePoint());ta(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&ta(r))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ta(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&ta(i)||ta(r)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),e=8;ta(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[tg(t),e]},t.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),e=t[0],n=t[1],r=this.peekCodePoint(0);return tf(r,this.peekCodePoint(1),this.peekCodePoint(2))?{type:15,number:e,flags:n,unit:this.consumeName()}:37===r?(this.consumeCodePoint(),{type:16,number:e,flags:n}):{type:17,number:e,flags:n}},t.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(tl(t)){for(var e=j(t);tl(this.peekCodePoint(0))&&e.length<6;)e+=j(this.consumeCodePoint());tc(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(e,16);return 0===n||n>=55296&&n<=57343||n>1114111?65533:n}return -1===t?65533:t},t.prototype.consumeName=function(){for(var t="";;){var e=this.consumeCodePoint();if(th(e))t+=j(e);else{if(!td(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),t;t+=j(this.consumeEscapedCodePoint())}}},t}(),tP=function(){function t(t){this._tokens=t}return t.create=function(e){var n=new tN;return n.write(e),new t(n.read())},t.parseValue=function(e){return t.create(e).parseComponentValue()},t.parseValues=function(e){return t.create(e).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var t=this.consumeToken();31===t.type;)t=this.consumeToken();if(32===t.type)throw SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var e=this.consumeComponentValue();do t=this.consumeToken();while(31===t.type)if(32===t.type)return e;throw SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var t=[];;){var e=this.consumeComponentValue();if(32===e.type)return t;t.push(e),t.push()}},t.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},t.prototype.consumeSimpleBlock=function(t){for(var e={type:t,values:[]},n=this.consumeToken();;){if(32===n.type||tW(n,t))return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue()),n=this.consumeToken()}},t.prototype.consumeFunction=function(t){for(var e={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(32===n.type||3===n.type)return e;this.reconsumeToken(n),e.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var t=this._tokens.shift();return void 0===t?tT:t},t.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},t}(),tO=function(t){return 15===t.type},tH=function(t){return 17===t.type},tR=function(t){return 20===t.type},tK=function(t){return 0===t.type},tV=function(t,e){return tR(t)&&t.value===e},tz=function(t){return 31!==t.type},tG=function(t){return 31!==t.type&&4!==t.type},tq=function(t){var e=[],n=[];return t.forEach(function(t){if(4===t.type){if(0===n.length)throw Error("Error parsing function args, zero tokens for arg");e.push(n),n=[];return}31!==t.type&&n.push(t)}),n.length&&e.push(n),e},tW=function(t,e){return 11===e&&12===t.type||28===e&&29===t.type||2===e&&3===t.type},tY=function(t){return 17===t.type||15===t.type},tX=function(t){return 16===t.type||tY(t)},tJ=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},tZ={type:17,number:0,flags:4},t$={type:16,number:50,flags:4},t0={type:16,number:100,flags:4},t1=function(t,e,n){var r=t[0],i=t[1];return[t2(r,e),t2(void 0!==i?i:r,n)]},t2=function(t,e){if(16===t.type)return t.number/100*e;if(tO(t))switch(t.unit){case"rem":case"em":return 16*t.number}return t.number},t5="grad",t4="turn",t3={parse:function(t,e){if(15===e.type)switch(e.unit){case"deg":return Math.PI*e.number/180;case t5:return Math.PI/200*e.number;case"rad":return e.number;case t4:return 2*Math.PI*e.number}throw Error("Unsupported angle type")}},t6=function(t){return 15===t.type&&("deg"===t.unit||t.unit===t5||"rad"===t.unit||t.unit===t4)},t8=function(t){switch(t.filter(tR).map(function(t){return t.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[tZ,tZ];case"to top":case"bottom":return t7(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[tZ,t0];case"to right":case"left":return t7(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[t0,t0];case"to bottom":case"top":return t7(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[t0,tZ];case"to left":case"right":return t7(270)}return 0},t7=function(t){return Math.PI*t/180},t9={parse:function(t,e){if(18===e.type){var n=es[e.name];if(void 0===n)throw Error('Attempting to parse an unsupported color function "'+e.name+'"');return n(t,e.values)}if(5===e.type){if(3===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),o=e.value.substring(2,3);return en(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),1)}if(4===e.value.length){var r=e.value.substring(0,1),i=e.value.substring(1,2),o=e.value.substring(2,3),A=e.value.substring(3,4);return en(parseInt(r+r,16),parseInt(i+i,16),parseInt(o+o,16),parseInt(A+A,16)/255)}if(6===e.value.length){var r=e.value.substring(0,2),i=e.value.substring(2,4),o=e.value.substring(4,6);return en(parseInt(r,16),parseInt(i,16),parseInt(o,16),1)}if(8===e.value.length){var r=e.value.substring(0,2),i=e.value.substring(2,4),o=e.value.substring(4,6),A=e.value.substring(6,8);return en(parseInt(r,16),parseInt(i,16),parseInt(o,16),parseInt(A,16)/255)}}if(20===e.type){var s=el[e.value.toUpperCase()];if(void 0!==s)return s}return el.TRANSPARENT}},et=function(t){return(255&t)==0},ee=function(t){var e=255&t,n=255&t>>8,r=255&t>>16,i=255&t>>24;return e<255?"rgba("+i+","+r+","+n+","+e/255+")":"rgb("+i+","+r+","+n+")"},en=function(t,e,n,r){return(t<<24|e<<16|n<<8|Math.round(255*r)<<0)>>>0},er=function(t,e){if(17===t.type)return t.number;if(16===t.type){var n=3===e?1:255;return 3===e?t.number/100*n:Math.round(t.number/100*n)}return 0},ei=function(t,e){var n=e.filter(tG);if(3===n.length){var r=n.map(er),i=r[0],o=r[1],A=r[2];return en(i,o,A,1)}if(4===n.length){var s=n.map(er),i=s[0],o=s[1],A=s[2];return en(i,o,A,s[3])}return 0};function eo(t,e,n){return(n<0&&(n+=1),n>=1&&(n-=1),n<1/6)?(e-t)*n*6+t:n<.5?e:n<2/3?(e-t)*6*(2/3-n)+t:t}var eA=function(t,e){var n=e.filter(tG),r=n[0],i=n[1],o=n[2],A=n[3],s=(17===r.type?t7(r.number):t3.parse(t,r))/(2*Math.PI),a=tX(i)?i.number/100:0,l=tX(o)?o.number/100:0,c=void 0!==A&&tX(A)?t2(A,1):1;if(0===a)return en(255*l,255*l,255*l,1);var u=l<=.5?l*(a+1):l+a-l*a,h=2*l-u;return en(255*eo(h,u,s+1/3),255*eo(h,u,s),255*eo(h,u,s-1/3),c)},es={hsl:eA,hsla:eA,rgb:ei,rgba:ei},ea=function(t,e){return t9.parse(t,tP.create(e).parseComponentValue())},el={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},ec={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(tR(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},eu={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},eh=function(t,e){var n=t9.parse(t,e[0]),r=e[1];return r&&tX(r)?{color:n,stop:r}:{color:n,stop:null}},ed=function(t,e){var n=t[0],r=t[t.length-1];null===n.stop&&(n.stop=tZ),null===r.stop&&(r.stop=t0);for(var i=[],o=0,A=0;Ao?i.push(a):i.push(o),o=a}else i.push(null)}for(var l=null,A=0;At.optimumDistance)?{optimumCorner:e,optimumDistance:o}:t},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},ev=function(t,e,n,r,i){var o=0,A=0;switch(t.size){case 0:0===t.shape?o=A=Math.min(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(o=Math.min(Math.abs(e),Math.abs(e-r)),A=Math.min(Math.abs(n),Math.abs(n-i)));break;case 2:if(0===t.shape)o=A=Math.min(eg(e,n),eg(e,n-i),eg(e-r,n),eg(e-r,n-i));else if(1===t.shape){var s=Math.min(Math.abs(n),Math.abs(n-i))/Math.min(Math.abs(e),Math.abs(e-r)),a=em(r,i,e,n,!0),l=a[0],c=a[1];o=eg(l-e,(c-n)/s),A=s*o}break;case 1:0===t.shape?o=A=Math.max(Math.abs(e),Math.abs(e-r),Math.abs(n),Math.abs(n-i)):1===t.shape&&(o=Math.max(Math.abs(e),Math.abs(e-r)),A=Math.max(Math.abs(n),Math.abs(n-i)));break;case 3:if(0===t.shape)o=A=Math.max(eg(e,n),eg(e,n-i),eg(e-r,n),eg(e-r,n-i));else if(1===t.shape){var s=Math.max(Math.abs(n),Math.abs(n-i))/Math.max(Math.abs(e),Math.abs(e-r)),u=em(r,i,e,n,!1),l=u[0],c=u[1];o=eg(l-e,(c-n)/s),A=s*o}}return Array.isArray(t.size)&&(o=t2(t.size[0],r),A=2===t.size.length?t2(t.size[1],i):o),[o,A]},ey=function(t,e){var n=t7(180),r=[];return tq(e).forEach(function(e,i){if(0===i){var o=e[0];if(20===o.type&&-1!==["top","left","right","bottom"].indexOf(o.value)){n=t8(e);return}if(t6(o)){n=(t3.parse(t,o)+t7(270))%t7(360);return}}var A=eh(t,e);r.push(A)}),{angle:n,stops:r,type:1}},ew="closest-side",eb="farthest-side",e_="closest-corner",eB="farthest-corner",ex="circle",eC="ellipse",ek="cover",eF="contain",eE=function(t,e){var n=0,r=3,i=[],o=[];return tq(e).forEach(function(e,A){var s=!0;if(0===A?s=e.reduce(function(t,e){if(tR(e))switch(e.value){case"center":return o.push(t$),!1;case"top":case"left":return o.push(tZ),!1;case"right":case"bottom":return o.push(t0),!1}else if(tX(e)||tY(e))return o.push(e),!1;return t},s):1===A&&(s=e.reduce(function(t,e){if(tR(e))switch(e.value){case ex:return n=0,!1;case eC:return n=1,!1;case eF:case ew:return r=0,!1;case eb:return r=1,!1;case e_:return r=2,!1;case ek:case eB:return r=3,!1}else if(tY(e)||tX(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t},s)),s){var a=eh(t,e);i.push(a)}}),{size:r,shape:n,stops:i,position:o,type:2}},eQ={parse:function(t,e){if(22===e.type){var n={url:e.value,type:0};return t.cache.addImage(e.value),n}if(18===e.type){var r=eS[e.name];if(void 0===r)throw Error('Attempting to parse an unsupported image function "'+e.name+'"');return r(t,e.values)}throw Error("Unsupported image type "+e.type)}},eS={"linear-gradient":function(t,e){var n=t7(180),r=[];return tq(e).forEach(function(e,i){if(0===i){var o=e[0];if(20===o.type&&"to"===o.value){n=t8(e);return}if(t6(o)){n=t3.parse(t,o);return}}var A=eh(t,e);r.push(A)}),{angle:n,stops:r,type:1}},"-moz-linear-gradient":ey,"-ms-linear-gradient":ey,"-o-linear-gradient":ey,"-webkit-linear-gradient":ey,"radial-gradient":function(t,e){var n=0,r=3,i=[],o=[];return tq(e).forEach(function(e,A){var s=!0;if(0===A){var a=!1;s=e.reduce(function(t,e){if(a){if(tR(e))switch(e.value){case"center":o.push(t$);break;case"top":case"left":o.push(tZ);break;case"right":case"bottom":o.push(t0)}else(tX(e)||tY(e))&&o.push(e)}else if(tR(e))switch(e.value){case ex:return n=0,!1;case eC:return n=1,!1;case"at":return a=!0,!1;case ew:return r=0,!1;case ek:case eb:return r=1,!1;case eF:case e_:return r=2,!1;case eB:return r=3,!1}else if(tY(e)||tX(e))return Array.isArray(r)||(r=[]),r.push(e),!1;return t},s)}if(s){var l=eh(t,e);i.push(l)}}),{size:r,shape:n,stops:i,position:o,type:2}},"-moz-radial-gradient":eE,"-ms-radial-gradient":eE,"-o-radial-gradient":eE,"-webkit-radial-gradient":eE,"-webkit-gradient":function(t,e){var n=t7(180),r=[],i=1;return tq(e).forEach(function(e,n){var o=e[0];if(0===n){if(tR(o)&&"linear"===o.value){i=1;return}if(tR(o)&&"radial"===o.value){i=2;return}}if(18===o.type){if("from"===o.name){var A=t9.parse(t,o.values[0]);r.push({stop:tZ,color:A})}else if("to"===o.name){var A=t9.parse(t,o.values[0]);r.push({stop:t0,color:A})}else if("color-stop"===o.name){var s=o.values.filter(tG);if(2===s.length){var A=t9.parse(t,s[1]),a=s[0];tH(a)&&r.push({stop:{type:16,number:100*a.number,flags:a.flags},color:A})}}}}),1===i?{angle:(n+t7(180))%t7(360),stops:r,type:i}:{size:3,shape:0,stops:r,position:[],type:i}}},eL={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,e){if(0===e.length)return[];var n=e[0];return 20===n.type&&"none"===n.value?[]:e.filter(function(t){var e;return tG(t)&&!(20===(e=t).type&&"none"===e.value)&&(18!==e.type||!!eS[e.name])}).map(function(e){return eQ.parse(t,e)})}},eU={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,e){return e.map(function(t){if(tR(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},eI={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,e){return tq(e).map(function(t){return t.filter(tX)}).map(tJ)}},ej={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,e){return tq(e).map(function(t){return t.filter(tR).map(function(t){return t.value}).join(" ")}).map(eM)}},eM=function(t){switch(t){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}};(s=y||(y={})).AUTO="auto",s.CONTAIN="contain",s.COVER="cover";var eD={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,e){return tq(e).map(function(t){return t.filter(eT)})}},eT=function(t){return tR(t)||tX(t)},eN=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},eP=eN("top"),eO=eN("right"),eH=eN("bottom"),eR=eN("left"),eK=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(t,e){return tJ(e.filter(tX))}}},eV=eK("top-left"),ez=eK("top-right"),eG=eK("bottom-right"),eq=eK("bottom-left"),eW=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,e){switch(e){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},eY=eW("top"),eX=eW("right"),eJ=eW("bottom"),eZ=eW("left"),e$=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,e){return tO(e)?e.number:0}}},e0=e$("top"),e1=e$("right"),e2=e$("bottom"),e5=e$("left"),e4={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},e3={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,e){return"rtl"===e?1:0}},e6={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,e){return e.filter(tR).reduce(function(t,e){return t|e8(e.value)},0)}},e8=function(t){switch(t){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},e7={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},e9={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,e){return 20===e.type&&"normal"===e.value?0:17===e.type||15===e.type?e.number:0}};(a=w||(w={})).NORMAL="normal",a.STRICT="strict";var nt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"strict"===e?w.STRICT:w.NORMAL}},ne={name:"line-height",initialValue:"normal",prefix:!1,type:4},nn=function(t,e){return tR(t)&&"normal"===t.value?1.2*e:17===t.type?e*t.number:tX(t)?t2(t,e):e},nr={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,e){return 20===e.type&&"none"===e.value?null:eQ.parse(t,e)}},ni={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,e){return"inside"===e?0:1}},no={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return -1}}},nA=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},ns=nA("top"),na=nA("right"),nl=nA("bottom"),nc=nA("left"),nu={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,e){return e.filter(tR).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},nh={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,e){return"break-word"===e?"break-word":"normal"}},nd=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},nf=nd("top"),np=nd("right"),ng=nd("bottom"),nm=nd("left"),nv={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,e){switch(e){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ny={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},nw={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,e){return 1===e.length&&tV(e[0],"none")?[]:tq(e).map(function(e){for(var n={color:el.TRANSPARENT,offsetX:tZ,offsetY:tZ,blur:tZ},r=0,i=0;i1?1:0],this.overflowWrap=n$(t,nh,e.overflowWrap),this.paddingTop=n$(t,nf,e.paddingTop),this.paddingRight=n$(t,np,e.paddingRight),this.paddingBottom=n$(t,ng,e.paddingBottom),this.paddingLeft=n$(t,nm,e.paddingLeft),this.paintOrder=n$(t,nq,e.paintOrder),this.position=n$(t,ny,e.position),this.textAlign=n$(t,nv,e.textAlign),this.textDecorationColor=n$(t,nU,null!==(n=e.textDecorationColor)&&void 0!==n?n:e.color),this.textDecorationLine=n$(t,nI,null!==(r=e.textDecorationLine)&&void 0!==r?r:e.textDecoration),this.textShadow=n$(t,nw,e.textShadow),this.textTransform=n$(t,nb,e.textTransform),this.transform=n$(t,n_,e.transform),this.transformOrigin=n$(t,nk,e.transformOrigin),this.visibility=n$(t,nF,e.visibility),this.webkitTextStrokeColor=n$(t,nW,e.webkitTextStrokeColor),this.webkitTextStrokeWidth=n$(t,nY,e.webkitTextStrokeWidth),this.wordBreak=n$(t,nE,e.wordBreak),this.zIndex=n$(t,nQ,e.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&0===this.visibility},t.prototype.isTransparent=function(){return et(this.backgroundColor)},t.prototype.isTransformed=function(){return null!==this.transform},t.prototype.isPositioned=function(){return 0!==this.position},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return 0!==this.float},t.prototype.isInlineLevel=function(){return nP(this.display,4)||nP(this.display,33554432)||nP(this.display,268435456)||nP(this.display,536870912)||nP(this.display,67108864)||nP(this.display,134217728)},t}(),nJ=function(t,e){this.content=n$(t,nO,e.content),this.quotes=n$(t,nV,e.quotes)},nZ=function(t,e){this.counterIncrement=n$(t,nH,e.counterIncrement),this.counterReset=n$(t,nR,e.counterReset)},n$=function(t,e,n){var r=new tN,i=null!=n?n.toString():e.initialValue;r.write(i);var o=new tP(r.read());switch(e.type){case 2:var A=o.parseComponentValue();return e.parse(t,tR(A)?A.value:e.initialValue);case 0:return e.parse(t,o.parseComponentValue());case 1:return e.parse(t,o.parseComponentValues());case 4:return o.parseComponentValue();case 3:switch(e.format){case"angle":return t3.parse(t,o.parseComponentValue());case"color":return t9.parse(t,o.parseComponentValue());case"image":return eQ.parse(t,o.parseComponentValue());case"length":var s=o.parseComponentValue();return tY(s)?s:tZ;case"length-percentage":var a=o.parseComponentValue();return tX(a)?a:tZ;case"time":return nS.parse(t,o.parseComponentValue())}}},n0=function(t){switch(t.getAttribute("data-html2canvas-debug")){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},n1=function(t,e){var n=n0(t);return 1===n||e===n},n2=function(t,e){this.context=t,this.textNodes=[],this.elements=[],this.flags=0,n1(e,3),this.styles=new nX(t,window.getComputedStyle(e,null)),r3(e)&&(this.styles.animationDuration.some(function(t){return t>0})&&(e.style.animationDuration="0s"),null!==this.styles.transform&&(e.style.transform="none")),this.bounds=L(this.context,e),n1(e,4)&&(this.flags|=16)},n5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n4="undefined"==typeof Uint8Array?[]:new Uint8Array(256),n3=0;n3=0){if(t<55296||t>56319&&t<=65535)return e=((e=this.index[t>>5])<<2)+(31&t),this.data[e];if(t<=65535)return e=((e=this.index[2048+(t-55296>>5)])<<2)+(31&t),this.data[e];if(t>11),e=this.index[e]+(t>>5&63),e=((e=this.index[e])<<2)+(31&t),this.data[e];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),n7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n9="undefined"==typeof Uint8Array?[]:new Uint8Array(256),rt=0;rt=55296&&i<=56319&&n>10)+55296,A%1024+56320)),(i+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},rr=(u=Array.isArray(c=function(t){var e,n,r,i,o,A=.75*t.length,s=t.length,a=0;"="===t[t.length-1]&&(A--,"="===t[t.length-2]&&A--);var l="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(A):Array(A),c=Array.isArray(l)?l:new Uint8Array(l);for(e=0;e>4,c[a++]=(15&r)<<4|i>>2,c[a++]=(3&i)<<6|63&o;return l}("AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA="))?function(t){for(var e=t.length,n=[],r=0;r=n)return{done:!0,value:null};for(var t="×";rA.x||i.y>A.y;return A=i,0===e||s});return t.body.removeChild(e),s},rc=function(t){var e=new Image,n=t.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;e.src="data:image/svg+xml,";try{r.drawImage(e,0,0),n.toDataURL()}catch(t){return!1}return!0},ru=function(t){return 0===t[0]&&255===t[1]&&0===t[2]&&255===t[3]},rh=function(t){var e=t.createElement("canvas");e.width=100,e.height=100;var n=e.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,i=e.toDataURL();r.src=i;var o=rd(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),rf(o).then(function(e){n.drawImage(e,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var o=t.createElement("div");return o.style.backgroundImage="url("+i+")",o.style.height="100px",ru(r)?rf(rd(100,100,0,0,o)):Promise.reject(!1)}).then(function(t){return n.drawImage(t,0,0),ru(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})},rd=function(t,e,n,r,i){var o="http://www.w3.org/2000/svg",A=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return A.setAttributeNS(null,"width",t.toString()),A.setAttributeNS(null,"height",e.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(s),s.appendChild(i),A},rf=function(t){return new Promise(function(e,n){var r=new Image;r.onload=function(){return e(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},rp={get SUPPORT_RANGE_BOUNDS(){var rg=ra(document);return Object.defineProperty(rp,"SUPPORT_RANGE_BOUNDS",{value:rg}),rg},get SUPPORT_WORD_BREAKING(){var rm=rp.SUPPORT_RANGE_BOUNDS&&rl(document);return Object.defineProperty(rp,"SUPPORT_WORD_BREAKING",{value:rm}),rm},get SUPPORT_SVG_DRAWING(){var rv=rc(document);return Object.defineProperty(rp,"SUPPORT_SVG_DRAWING",{value:rv}),rv},get SUPPORT_FOREIGNOBJECT_DRAWING(){var ry="function"==typeof Array.from&&"function"==typeof window.fetch?rh(document):Promise.resolve(!1);return Object.defineProperty(rp,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:ry}),ry},get SUPPORT_CORS_IMAGES(){var rw=void 0!==new Image().crossOrigin;return Object.defineProperty(rp,"SUPPORT_CORS_IMAGES",{value:rw}),rw},get SUPPORT_RESPONSE_TYPE(){var rb="string"==typeof new XMLHttpRequest().responseType;return Object.defineProperty(rp,"SUPPORT_RESPONSE_TYPE",{value:rb}),rb},get SUPPORT_CORS_XHR(){var r_="withCredentials"in new XMLHttpRequest;return Object.defineProperty(rp,"SUPPORT_CORS_XHR",{value:r_}),r_},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var rB=!!("undefined"!=typeof Intl&&Intl.Segmenter);return Object.defineProperty(rp,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:rB}),rB}},rx=function(t,e){this.text=t,this.bounds=e},rC=function(t,e,n,r){var i=rQ(e,n),o=[],A=0;return i.forEach(function(e){if(n.textDecorationLine.length||e.trim().length>0){if(rp.SUPPORT_RANGE_BOUNDS){var i=rF(r,A,e.length).getClientRects();if(i.length>1){var s=rE(e),a=0;s.forEach(function(e){o.push(new rx(e,S.fromDOMRectList(t,rF(r,a+A,e.length).getClientRects()))),a+=e.length})}else o.push(new rx(e,S.fromDOMRectList(t,i)))}else{var l=r.splitText(e.length);o.push(new rx(e,rk(t,r))),r=l}}else rp.SUPPORT_RANGE_BOUNDS||(r=r.splitText(e.length));A+=e.length}),o},rk=function(t,e){var n=e.ownerDocument;if(n){var r=n.createElement("html2canvaswrapper");r.appendChild(e.cloneNode(!0));var i=e.parentNode;if(i){i.replaceChild(r,e);var o=L(t,r);return r.firstChild&&i.replaceChild(r.firstChild,r),o}}return S.EMPTY},rF=function(t,e,n){var r=t.ownerDocument;if(!r)throw Error("Node has no owner document");var i=r.createRange();return i.setStart(t,e),i.setEnd(t,e+n),i},rE=function(t){return rp.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"grapheme"}).segment(t)).map(function(t){return t.segment}):rs(t)},rQ=function(t,e){return 0!==e.letterSpacing?rE(t):rp.SUPPORT_NATIVE_TEXT_SEGMENTATION?Array.from(new Intl.Segmenter(void 0,{granularity:"word"}).segment(t)).map(function(t){return t.segment}):rL(t,e)},rS=[32,160,4961,65792,65793,4153,4241],rL=function(t,e){for(var n,r=ts(t,{lineBreak:e.lineBreak,wordBreak:"break-word"===e.overflowWrap?"break-word":e.wordBreak}),i=[];!(n=r.next()).done;)!function(){if(n.value){var t=I(n.value.slice()),e="";t.forEach(function(t){-1===rS.indexOf(t)?e+=j(t):(e.length&&i.push(e),i.push(j(t)),e="")}),e.length&&i.push(e)}}();return i},rU=function(t,e,n){this.text=rI(e.data,n.textTransform),this.textBounds=rC(t,this.text,n,e)},rI=function(t,e){switch(e){case 1:return t.toLowerCase();case 3:return t.replace(rj,rM);case 2:return t.toUpperCase();default:return t}},rj=/(^|\s|:|-|\(|\))([a-z])/g,rM=function(t,e,n){return t.length>0?e+n.toUpperCase():t},rD=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.src=n.currentSrc||n.src,r.intrinsicWidth=n.naturalWidth,r.intrinsicHeight=n.naturalHeight,r.context.cache.addImage(r.src),r}return C(e,t),e}(n2),rT=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.canvas=n,r.intrinsicWidth=n.width,r.intrinsicHeight=n.height,r}return C(e,t),e}(n2),rN=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=new XMLSerializer,o=L(e,n);return n.setAttribute("width",o.width+"px"),n.setAttribute("height",o.height+"px"),r.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(n)),r.intrinsicWidth=n.width.baseVal.value,r.intrinsicHeight=n.height.baseVal.value,r.context.cache.addImage(r.svg),r}return C(e,t),e}(n2),rP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.value=n.value,r}return C(e,t),e}(n2),rO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.start=n.start,r.reversed="boolean"==typeof n.reversed&&!0===n.reversed,r}return C(e,t),e}(n2),rH=[{type:15,flags:0,unit:"px",number:3}],rR=[{type:16,flags:0,number:50}],rK=function(t){var e=t.type===rG?Array(t.value.length+1).join("•"):t.value;return 0===e.length?t.placeholder||"":e},rV="checkbox",rz="radio",rG="password",rq=function(t){function e(e,n){var r,i=t.call(this,e,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=rK(n),(i.type===rV||i.type===rz)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=(r=i.bounds).width>r.height?new S(r.left+(r.width-r.height)/2,r.top,r.height,r.height):r.width0)n.textNodes.push(new rU(t,i,n.styles));else if(r4(i)){if(ic(i)&&i.assignedNodes)i.assignedNodes().forEach(function(e){return rZ(t,e,n,r)});else{var A=r$(t,i);!A.styles.isVisible()||(r1(i,A,r)?A.flags|=4:r2(A.styles)&&(A.flags|=2),-1!==rJ.indexOf(i.tagName)&&(A.flags|=8),n.elements.push(A),i.slot,i.shadowRoot?rZ(t,i.shadowRoot,A,r):ia(i)||it(i)||il(i)||rZ(t,i,A,r))}}},r$=function(t,e){return io(e)?new rD(t,e):ir(e)?new rT(t,e):it(e)?new rN(t,e):r8(e)?new rP(t,e):r7(e)?new rO(t,e):r9(e)?new rq(t,e):il(e)?new rW(t,e):ia(e)?new rY(t,e):iA(e)?new rX(t,e):new n2(t,e)},r0=function(t,e){var n=r$(t,e);return n.flags|=4,rZ(t,e,n,n),n},r1=function(t,e,n){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||ie(t)&&n.styles.isTransparent()},r2=function(t){return t.isPositioned()||t.isFloating()},r5=function(t){return t.nodeType===Node.TEXT_NODE},r4=function(t){return t.nodeType===Node.ELEMENT_NODE},r3=function(t){return r4(t)&&void 0!==t.style&&!r6(t)},r6=function(t){return"object"==typeof t.className},r8=function(t){return"LI"===t.tagName},r7=function(t){return"OL"===t.tagName},r9=function(t){return"INPUT"===t.tagName},it=function(t){return"svg"===t.tagName},ie=function(t){return"BODY"===t.tagName},ir=function(t){return"CANVAS"===t.tagName},ii=function(t){return"VIDEO"===t.tagName},io=function(t){return"IMG"===t.tagName},iA=function(t){return"IFRAME"===t.tagName},is=function(t){return"STYLE"===t.tagName},ia=function(t){return"TEXTAREA"===t.tagName},il=function(t){return"SELECT"===t.tagName},ic=function(t){return"SLOT"===t.tagName},iu=function(t){return t.tagName.indexOf("-")>0},ih=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(t){var e=this.counters[t];return e&&e.length?e[e.length-1]:1},t.prototype.getCounterValues=function(t){return this.counters[t]||[]},t.prototype.pop=function(t){var e=this;t.forEach(function(t){return e.counters[t].pop()})},t.prototype.parse=function(t){var e=this,n=t.counterIncrement,r=t.counterReset,i=!0;null!==n&&n.forEach(function(t){var n=e.counters[t.counter];n&&0!==t.increment&&(i=!1,n.length||n.push(1),n[Math.max(0,n.length-1)]+=t.increment)});var o=[];return i&&r.forEach(function(t){var n=e.counters[t.counter];o.push(t.counter),n||(n=e.counters[t.counter]=[]),n.push(t.reset)}),o},t}(),id={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},ip={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},ig={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},im={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},iv=function(t,e,n,r,i,o){return tn?iF(t,i,o.length>0):r.integers.reduce(function(e,n,i){for(;t>=n;)t-=n,e+=r.values[i];return e},"")+o},iy=function(t,e,n,r){var i="";do!n&&t--,i=r(t)+i,t/=e;while(t*e>=e)return i},iw=function(t,e,n,r,i){var o=n-e+1;return(t<0?"-":"")+(iy(Math.abs(t),o,r,function(t){return j(Math.floor(t%o)+e)})+i)},ib=function(t,e,n){void 0===n&&(n=". ");var r=e.length;return iy(Math.abs(t),r,!1,function(t){return e[Math.floor(t%r)]})+n},i_=function(t,e,n,r,i,o){if(t<-9999||t>9999)return iF(t,4,i.length>0);var A=Math.abs(t),s=i;if(0===A)return e[0]+s;for(var a=0;A>0&&a<=4;a++){var l=A%10;0===l&&nP(o,1)&&""!==s?s=e[l]+s:l>1||1===l&&0===a||1===l&&1===a&&nP(o,2)||1===l&&1===a&&nP(o,4)&&t>100||1===l&&a>1&&nP(o,8)?s=e[l]+(a>0?n[a-1]:"")+s:1===l&&a>0&&(s=n[a-1]+s),A=Math.floor(A/10)}return(t<0?r:"")+s},iB="十百千萬",ix="拾佰仟萬",iC="マイナス",ik="마이너스",iF=function(t,e,n){var r=n?". ":"",i=n?"、":"",o=n?", ":"",A=n?" ":"";switch(e){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var s=iw(t,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return ib(t,"〇一二三四五六七八九",i);case 6:return iv(t,1,3999,id,3,r).toLowerCase();case 7:return iv(t,1,3999,id,3,r);case 8:return iw(t,945,969,!1,r);case 9:return iw(t,97,122,!1,r);case 10:return iw(t,65,90,!1,r);case 11:return iw(t,1632,1641,!0,r);case 12:case 49:return iv(t,1,9999,ip,3,r);case 35:return iv(t,1,9999,ip,3,r).toLowerCase();case 13:return iw(t,2534,2543,!0,r);case 14:case 30:return iw(t,6112,6121,!0,r);case 15:return ib(t,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return ib(t,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return i_(t,"零一二三四五六七八九",iB,"負",i,14);case 47:return i_(t,"零壹貳參肆伍陸柒捌玖",ix,"負",i,15);case 42:return i_(t,"零一二三四五六七八九",iB,"负",i,14);case 41:return i_(t,"零壹贰叁肆伍陆柒捌玖",ix,"负",i,15);case 26:return i_(t,"〇一二三四五六七八九","十百千万",iC,i,0);case 25:return i_(t,"零壱弐参四伍六七八九","拾百千万",iC,i,7);case 31:return i_(t,"영일이삼사오육칠팔구","십백천만",ik,o,7);case 33:return i_(t,"零一二三四五六七八九","十百千萬",ik,o,0);case 32:return i_(t,"零壹貳參四五六七八九","拾百千",ik,o,7);case 18:return iw(t,2406,2415,!0,r);case 20:return iv(t,1,19999,im,3,r);case 21:return iw(t,2790,2799,!0,r);case 22:return iw(t,2662,2671,!0,r);case 22:return iv(t,1,10999,ig,3,r);case 23:return ib(t,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ib(t,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return iw(t,3302,3311,!0,r);case 28:return ib(t,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return ib(t,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return iw(t,3792,3801,!0,r);case 37:return iw(t,6160,6169,!0,r);case 38:return iw(t,4160,4169,!0,r);case 39:return iw(t,2918,2927,!0,r);case 40:return iw(t,1776,1785,!0,r);case 43:return iw(t,3046,3055,!0,r);case 44:return iw(t,3174,3183,!0,r);case 45:return iw(t,3664,3673,!0,r);case 46:return iw(t,3872,3881,!0,r);default:return iw(t,48,57,!0,r)}},iE="data-html2canvas-ignore",iQ=function(){function t(t,e,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=e,this.counters=new ih,this.quoteDepth=0,!e.ownerDocument)throw Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(t,e){var n=this,r=iS(t,e);if(!r.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,o=t.defaultView.pageYOffset,A=r.contentWindow,s=A.document,a=iI(r).then(function(){return F(n,void 0,void 0,function(){var t,n;return E(this,function(i){switch(i.label){case 0:if(this.scrolledElements.forEach(iN),A&&(A.scrollTo(e.left,e.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(A.scrollY!==e.top||A.scrollX!==e.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(A.scrollX-e.left,A.scrollY-e.top,0,0))),t=this.options.onclone,void 0===(n=this.clonedReferenceElement))return[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")];if(!(s.fonts&&s.fonts.ready))return[3,2];return[4,s.fonts.ready];case 1:i.sent(),i.label=2;case 2:if(!/(AppleWebKit)/g.test(navigator.userAgent))return[3,4];return[4,iU(s)];case 3:i.sent(),i.label=4;case 4:if("function"==typeof t)return[2,Promise.resolve().then(function(){return t(s,n)}).then(function(){return r})];return[2,r]}})})});return s.open(),s.write(iD(document.doctype)+""),iT(this.referenceElement.ownerDocument,i,o),s.replaceChild(s.adoptNode(this.documentElement),s.documentElement),s.close(),a},t.prototype.createElementClone=function(t){if(n1(t,2),ir(t))return this.createCanvasClone(t);if(ii(t))return this.createVideoClone(t);if(is(t))return this.createStyleClone(t);var e=t.cloneNode(!1);return(io(e)&&(io(t)&&t.currentSrc&&t.currentSrc!==t.src&&(e.src=t.currentSrc,e.srcset=""),"lazy"===e.loading&&(e.loading="eager")),iu(e))?this.createCustomElementClone(e):e},t.prototype.createCustomElementClone=function(t){var e=document.createElement("html2canvascustomelement");return iM(t.style,e),e},t.prototype.createStyleClone=function(t){try{var e=t.sheet;if(e&&e.cssRules){var n=[].slice.call(e.cssRules,0).reduce(function(t,e){return e&&"string"==typeof e.cssText?t+e.cssText:t},""),r=t.cloneNode(!1);return r.textContent=n,r}}catch(t){if(this.context.logger.error("Unable to access cssRules property",t),"SecurityError"!==t.name)throw t}return t.cloneNode(!1)},t.prototype.createCanvasClone=function(t){if(this.options.inlineImages&&t.ownerDocument){var e,n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch(e){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var r=t.cloneNode(!1);try{r.width=t.width,r.height=t.height;var i=t.getContext("2d"),o=r.getContext("2d");if(o){if(!this.options.allowTaint&&i)o.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var A=null!==(e=t.getContext("webgl2"))&&void 0!==e?e:t.getContext("webgl");if(A){var s=A.getContextAttributes();(null==s?void 0:s.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}o.drawImage(t,0,0)}}}catch(e){this.context.logger.info("Unable to clone canvas as it is tainted",t)}return r},t.prototype.createVideoClone=function(t){var e=t.ownerDocument.createElement("canvas");e.width=t.offsetWidth,e.height=t.offsetHeight;var n=e.getContext("2d");try{return n&&(n.drawImage(t,0,0,e.width,e.height),this.options.allowTaint||n.getImageData(0,0,e.width,e.height)),e}catch(e){this.context.logger.info("Unable to clone video as it is tainted",t)}var r=t.ownerDocument.createElement("canvas");return r.width=t.offsetWidth,r.height=t.offsetHeight,r},t.prototype.appendChildNode=function(t,e,n){(!r4(e)||"SCRIPT"!==e.tagName&&!e.hasAttribute(iE)&&("function"!=typeof this.options.ignoreElements||!this.options.ignoreElements(e)))&&(this.options.copyStyles&&r4(e)&&is(e)||t.appendChild(this.cloneNode(e,n)))},t.prototype.cloneChildNodes=function(t,e,n){for(var r=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(r4(i)&&ic(i)&&"function"==typeof i.assignedNodes){var o=i.assignedNodes();o.length&&o.forEach(function(t){return r.appendChildNode(e,t,n)})}else this.appendChildNode(e,i,n)},t.prototype.cloneNode=function(t,e){if(r5(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&r4(t)&&(r3(t)||r6(t))){var r=this.createElementClone(t);r.style.transitionProperty="none";var i=n.getComputedStyle(t),o=n.getComputedStyle(t,":before"),A=n.getComputedStyle(t,":after");this.referenceElement===t&&r3(r)&&(this.clonedReferenceElement=r),ie(r)&&iR(r);var s=this.counters.parse(new nZ(this.context,i)),a=this.resolvePseudoContent(t,r,o,_.BEFORE);iu(t)&&(e=!0),ii(t)||this.cloneChildNodes(t,r,e),a&&r.insertBefore(a,r.firstChild);var l=this.resolvePseudoContent(t,r,A,_.AFTER);return l&&r.appendChild(l),this.counters.pop(s),(i&&(this.options.copyStyles||r6(t))&&!iA(t)||e)&&iM(i,r),(0!==t.scrollTop||0!==t.scrollLeft)&&this.scrolledElements.push([r,t.scrollLeft,t.scrollTop]),(ia(t)||il(t))&&(ia(r)||il(r))&&(r.value=t.value),r}return t.cloneNode(!1)},t.prototype.resolvePseudoContent=function(t,e,n,r){var i=this;if(n){var o=n.content,A=e.ownerDocument;if(A&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new nZ(this.context,n));var s=new nJ(this.context,n),a=A.createElement("html2canvaspseudoelement");iM(n,a),s.content.forEach(function(e){if(0===e.type)a.appendChild(A.createTextNode(e.value));else if(22===e.type){var n=A.createElement("img");n.src=e.value,n.style.opacity="1",a.appendChild(n)}else if(18===e.type){if("attr"===e.name){var r=e.values.filter(tR);r.length&&a.appendChild(A.createTextNode(t.getAttribute(r[0].value)||""))}else if("counter"===e.name){var o=e.values.filter(tG),l=o[0],c=o[1];if(l&&tR(l)){var u=i.counters.getCounterValue(l.value),h=c&&tR(c)?no.parse(i.context,c.value):3;a.appendChild(A.createTextNode(iF(u,h,!1)))}}else if("counters"===e.name){var d=e.values.filter(tG),l=d[0],f=d[1],c=d[2];if(l&&tR(l)){var p=i.counters.getCounterValues(l.value),g=c&&tR(c)?no.parse(i.context,c.value):3,m=f&&0===f.type?f.value:"",v=p.map(function(t){return iF(t,g,!1)}).join(m);a.appendChild(A.createTextNode(v))}}}else if(20===e.type)switch(e.value){case"open-quote":a.appendChild(A.createTextNode(nz(s.quotes,i.quoteDepth++,!0)));break;case"close-quote":a.appendChild(A.createTextNode(nz(s.quotes,--i.quoteDepth,!1)));break;default:a.appendChild(A.createTextNode(e.value))}}),a.className=iP+" "+iO;var l=r===_.BEFORE?" "+iP:" "+iO;return r6(e)?e.className.baseValue+=l:e.className+=l,a}}},t.destroy=function(t){return!!t.parentNode&&(t.parentNode.removeChild(t),!0)},t}();(m=_||(_={}))[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER";var iS=function(t,e){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=e.width.toString(),n.height=e.height.toString(),n.scrolling="no",n.setAttribute(iE,"true"),t.body.appendChild(n),n},iL=function(t){return new Promise(function(e){if(t.complete||!t.src){e();return}t.onload=e,t.onerror=e})},iU=function(t){return Promise.all([].slice.call(t.images,0).map(iL))},iI=function(t){return new Promise(function(e,n){var r=t.contentWindow;if(!r)return n("No window assigned for iframe");var i=r.document;r.onload=t.onload=function(){r.onload=t.onload=null;var n=setInterval(function(){i.body.childNodes.length>0&&"complete"===i.readyState&&(clearInterval(n),e(t))},50)}})},ij=["all","d","content"],iM=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t.item(n);-1===ij.indexOf(r)&&e.style.setProperty(r,t.getPropertyValue(r))}return e},iD=function(t){var e="";return t&&(e+=""),e},iT=function(t,e,n){t&&t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(e,n)},iN=function(t){var e=t[0],n=t[1],r=t[2];e.scrollLeft=n,e.scrollTop=r},iP="___html2canvas___pseudoelement_before",iO="___html2canvas___pseudoelement_after",iH='{\n content: "" !important;\n display: none !important;\n}',iR=function(t){iK(t,"."+iP+":before"+iH+"\n ."+iO+":after"+iH)},iK=function(t,e){var n=t.ownerDocument;if(n){var r=n.createElement("style");r.textContent=e,t.appendChild(r)}},iV=function(){function t(){}return t.getOrigin=function(e){var n=t._link;return n?(n.href=e,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(e){return t.getOrigin(e)===t._origin},t.setContext=function(e){t._link=e.document.createElement("a"),t._origin=t.getOrigin(e.location.href)},t._origin="about:blank",t}(),iz=function(){function t(t,e){this.context=t,this._options=e,this._cache={}}return t.prototype.addImage=function(t){var e=Promise.resolve();return this.has(t)||(iZ(t)||iY(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),e},t.prototype.match=function(t){return this._cache[t]},t.prototype.loadImage=function(t){return F(this,void 0,void 0,function(){var e,n,r,i,o=this;return E(this,function(A){switch(A.label){case 0:if(e=iV.isSameOrigin(t),n=!iX(t)&&!0===this._options.useCORS&&rp.SUPPORT_CORS_IMAGES&&!e,r=!iX(t)&&!e&&!iZ(t)&&"string"==typeof this._options.proxy&&rp.SUPPORT_CORS_XHR&&!n,!e&&!1===this._options.allowTaint&&!iX(t)&&!iZ(t)&&!r&&!n)return[2];if(i=t,!r)return[3,2];return[4,this.proxy(i)];case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(t,e){var r=new Image;r.onload=function(){return t(r)},r.onerror=e,(iJ(i)||n)&&(r.crossOrigin="anonymous"),r.src=i,!0===r.complete&&setTimeout(function(){return t(r)},500),o._options.imageTimeout>0&&setTimeout(function(){return e("Timed out ("+o._options.imageTimeout+"ms) loading image")},o._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},t.prototype.has=function(t){return void 0!==this._cache[t]},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(t){var e=this,n=this._options.proxy;if(!n)throw Error("No proxy defined");var r=t.substring(0,256);return new Promise(function(i,o){var A=rp.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;s.onload=function(){if(200===s.status){if("text"===A)i(s.response);else{var t=new FileReader;t.addEventListener("load",function(){return i(t.result)},!1),t.addEventListener("error",function(t){return o(t)},!1),t.readAsDataURL(s.response)}}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o;var a=n.indexOf("?")>-1?"&":"?";if(s.open("GET",""+n+a+"url="+encodeURIComponent(t)+"&responseType="+A),"text"!==A&&s instanceof XMLHttpRequest&&(s.responseType=A),e._options.imageTimeout){var l=e._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return o("Timed out ("+l+"ms) proxying "+r)}}s.send()})},t}(),iG=/^data:image\/svg\+xml/i,iq=/^data:image\/.*;base64,/i,iW=/^data:image\/.*/i,iY=function(t){return rp.SUPPORT_SVG_DRAWING||!i$(t)},iX=function(t){return iW.test(t)},iJ=function(t){return iq.test(t)},iZ=function(t){return"blob"===t.substr(0,4)},i$=function(t){return"svg"===t.substr(-3).toLowerCase()||iG.test(t)},i0=function(){function t(t,e){this.type=0,this.x=t,this.y=e}return t.prototype.add=function(e,n){return new t(this.x+e,this.y+n)},t}(),i1=function(t,e,n){return new i0(t.x+(e.x-t.x)*n,t.y+(e.y-t.y)*n)},i2=function(){function t(t,e,n,r){this.type=1,this.start=t,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(e,n){var r=i1(this.start,this.startControl,e),i=i1(this.startControl,this.endControl,e),o=i1(this.endControl,this.end,e),A=i1(r,i,e),s=i1(i,o,e),a=i1(A,s,e);return n?new t(this.start,r,A,a):new t(a,s,o,this.end)},t.prototype.add=function(e,n){return new t(this.start.add(e,n),this.startControl.add(e,n),this.endControl.add(e,n),this.end.add(e,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),i5=function(t){return 1===t.type},i4=function(t){var e=t.styles,n=t.bounds,r=t1(e.borderTopLeftRadius,n.width,n.height),i=r[0],o=r[1],A=t1(e.borderTopRightRadius,n.width,n.height),s=A[0],a=A[1],l=t1(e.borderBottomRightRadius,n.width,n.height),c=l[0],u=l[1],h=t1(e.borderBottomLeftRadius,n.width,n.height),d=h[0],f=h[1],p=[];p.push((i+s)/n.width),p.push((d+c)/n.width),p.push((o+f)/n.height),p.push((a+u)/n.height);var g=Math.max.apply(Math,p);g>1&&(i/=g,o/=g,s/=g,a/=g,c/=g,u/=g,d/=g,f/=g);var m=n.width-s,v=n.height-u,y=n.width-c,w=n.height-f,b=e.borderTopWidth,_=e.borderRightWidth,x=e.borderBottomWidth,C=e.borderLeftWidth,k=t2(e.paddingTop,t.bounds.width),F=t2(e.paddingRight,t.bounds.width),E=t2(e.paddingBottom,t.bounds.width),Q=t2(e.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||o>0?i3(n.left+C/3,n.top+b/3,i-C/3,o-b/3,B.TOP_LEFT):new i0(n.left+C/3,n.top+b/3),this.topRightBorderDoubleOuterBox=i>0||o>0?i3(n.left+m,n.top+b/3,s-_/3,a-b/3,B.TOP_RIGHT):new i0(n.left+n.width-_/3,n.top+b/3),this.bottomRightBorderDoubleOuterBox=c>0||u>0?i3(n.left+y,n.top+v,c-_/3,u-x/3,B.BOTTOM_RIGHT):new i0(n.left+n.width-_/3,n.top+n.height-x/3),this.bottomLeftBorderDoubleOuterBox=d>0||f>0?i3(n.left+C/3,n.top+w,d-C/3,f-x/3,B.BOTTOM_LEFT):new i0(n.left+C/3,n.top+n.height-x/3),this.topLeftBorderDoubleInnerBox=i>0||o>0?i3(n.left+2*C/3,n.top+2*b/3,i-2*C/3,o-2*b/3,B.TOP_LEFT):new i0(n.left+2*C/3,n.top+2*b/3),this.topRightBorderDoubleInnerBox=i>0||o>0?i3(n.left+m,n.top+2*b/3,s-2*_/3,a-2*b/3,B.TOP_RIGHT):new i0(n.left+n.width-2*_/3,n.top+2*b/3),this.bottomRightBorderDoubleInnerBox=c>0||u>0?i3(n.left+y,n.top+v,c-2*_/3,u-2*x/3,B.BOTTOM_RIGHT):new i0(n.left+n.width-2*_/3,n.top+n.height-2*x/3),this.bottomLeftBorderDoubleInnerBox=d>0||f>0?i3(n.left+2*C/3,n.top+w,d-2*C/3,f-2*x/3,B.BOTTOM_LEFT):new i0(n.left+2*C/3,n.top+n.height-2*x/3),this.topLeftBorderStroke=i>0||o>0?i3(n.left+C/2,n.top+b/2,i-C/2,o-b/2,B.TOP_LEFT):new i0(n.left+C/2,n.top+b/2),this.topRightBorderStroke=i>0||o>0?i3(n.left+m,n.top+b/2,s-_/2,a-b/2,B.TOP_RIGHT):new i0(n.left+n.width-_/2,n.top+b/2),this.bottomRightBorderStroke=c>0||u>0?i3(n.left+y,n.top+v,c-_/2,u-x/2,B.BOTTOM_RIGHT):new i0(n.left+n.width-_/2,n.top+n.height-x/2),this.bottomLeftBorderStroke=d>0||f>0?i3(n.left+C/2,n.top+w,d-C/2,f-x/2,B.BOTTOM_LEFT):new i0(n.left+C/2,n.top+n.height-x/2),this.topLeftBorderBox=i>0||o>0?i3(n.left,n.top,i,o,B.TOP_LEFT):new i0(n.left,n.top),this.topRightBorderBox=s>0||a>0?i3(n.left+m,n.top,s,a,B.TOP_RIGHT):new i0(n.left+n.width,n.top),this.bottomRightBorderBox=c>0||u>0?i3(n.left+y,n.top+v,c,u,B.BOTTOM_RIGHT):new i0(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||f>0?i3(n.left,n.top+w,d,f,B.BOTTOM_LEFT):new i0(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||o>0?i3(n.left+C,n.top+b,Math.max(0,i-C),Math.max(0,o-b),B.TOP_LEFT):new i0(n.left+C,n.top+b),this.topRightPaddingBox=s>0||a>0?i3(n.left+Math.min(m,n.width-_),n.top+b,m>n.width+_?0:Math.max(0,s-_),Math.max(0,a-b),B.TOP_RIGHT):new i0(n.left+n.width-_,n.top+b),this.bottomRightPaddingBox=c>0||u>0?i3(n.left+Math.min(y,n.width-C),n.top+Math.min(v,n.height-x),Math.max(0,c-_),Math.max(0,u-x),B.BOTTOM_RIGHT):new i0(n.left+n.width-_,n.top+n.height-x),this.bottomLeftPaddingBox=d>0||f>0?i3(n.left+C,n.top+Math.min(w,n.height-x),Math.max(0,d-C),Math.max(0,f-x),B.BOTTOM_LEFT):new i0(n.left+C,n.top+n.height-x),this.topLeftContentBox=i>0||o>0?i3(n.left+C+Q,n.top+b+k,Math.max(0,i-(C+Q)),Math.max(0,o-(b+k)),B.TOP_LEFT):new i0(n.left+C+Q,n.top+b+k),this.topRightContentBox=s>0||a>0?i3(n.left+Math.min(m,n.width+C+Q),n.top+b+k,m>n.width+C+Q?0:s-C+Q,a-(b+k),B.TOP_RIGHT):new i0(n.left+n.width-(_+F),n.top+b+k),this.bottomRightContentBox=c>0||u>0?i3(n.left+Math.min(y,n.width-(C+Q)),n.top+Math.min(v,n.height+b+k),Math.max(0,c-(_+F)),u-(x+E),B.BOTTOM_RIGHT):new i0(n.left+n.width-(_+F),n.top+n.height-(x+E)),this.bottomLeftContentBox=d>0||f>0?i3(n.left+C+Q,n.top+w,Math.max(0,d-(C+Q)),f-(x+E),B.BOTTOM_LEFT):new i0(n.left+C+Q,n.top+n.height-(x+E))};(v=B||(B={}))[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT";var i3=function(t,e,n,r,i){var o=(Math.sqrt(2)-1)/3*4,A=n*o,s=r*o,a=t+n,l=e+r;switch(i){case B.TOP_LEFT:return new i2(new i0(t,l),new i0(t,l-s),new i0(a-A,e),new i0(a,e));case B.TOP_RIGHT:return new i2(new i0(t,e),new i0(t+A,e),new i0(a,l-s),new i0(a,l));case B.BOTTOM_RIGHT:return new i2(new i0(a,e),new i0(a,e+s),new i0(t+A,l),new i0(t,l));case B.BOTTOM_LEFT:default:return new i2(new i0(a,l),new i0(a-A,l),new i0(t,e+s),new i0(t,e))}},i6=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},i8=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},i7=function(t,e,n){this.offsetX=t,this.offsetY=e,this.matrix=n,this.type=0,this.target=6},i9=function(t,e){this.path=t,this.target=e,this.type=1},ot=function(t){this.opacity=t,this.type=2,this.target=6},oe=function(t){return 1===t.type},on=function(t,e){return t.length===e.length&&t.some(function(t,n){return t===e[n]})},or=function(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},oi=function(){function t(t,e){if(this.container=t,this.parent=e,this.effects=[],this.curves=new i4(this.container),this.container.styles.opacity<1&&this.effects.push(new ot(this.container.styles.opacity)),null!==this.container.styles.transform){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new i7(n,r,i))}if(0!==this.container.styles.overflowX){var o=i6(this.curves),A=i8(this.curves);on(o,A)?this.effects.push(new i9(o,6)):(this.effects.push(new i9(o,2)),this.effects.push(new i9(A,4)))}}return t.prototype.getEffects=function(t){for(var e=-1===[2,3].indexOf(this.container.styles.position),n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(t){return!oe(t)});if(e||0!==n.container.styles.position||!n.parent){if(r.unshift.apply(r,i),e=-1===[2,3].indexOf(n.container.styles.position),0!==n.container.styles.overflowX){var o=i6(n.curves),A=i8(n.curves);on(o,A)||r.unshift(new i9(A,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(e){return nP(e.target,t)})},t}(),oo=function(t,e,n,r){t.container.elements.forEach(function(i){var o=nP(i.flags,4),A=nP(i.flags,2),s=new oi(i,t);nP(i.styles.display,2048)&&r.push(s);var a=nP(i.flags,8)?[]:r;if(o||A){var l=o||i.styles.isPositioned()?n:e,c=new or(s);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var u=i.styles.zIndex.order;if(u<0){var h=0;l.negativeZIndex.some(function(t,e){if(u>t.element.container.styles.zIndex.order)h=e;else if(h>0)return!0;return!1}),l.negativeZIndex.splice(h,0,c)}else if(u>0){var d=0;l.positiveZIndex.some(function(t,e){if(u>=t.element.container.styles.zIndex.order)d=e+1;else if(d>0)return!0;return!1}),l.positiveZIndex.splice(d,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else i.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);oo(s,c,o?c:n,a)}else i.styles.isInlineLevel()?e.inlineLevel.push(s):e.nonInlineLevel.push(s),oo(s,e,n,a);nP(i.flags,8)&&oA(i,a)})},oA=function(t,e){for(var n=t instanceof rO?t.start:1,r=t instanceof rO&&t.reversed,i=0;i0&&t.intrinsicHeight>0){var r=op(t),i=i8(e);this.path(i),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return F(this,void 0,void 0,function(){var n,r,i,o,A,s,a,l,c,u,h,d,f,p,g,m,v,y;return E(this,function(w){switch(w.label){case 0:this.applyEffects(t.getEffects(4)),n=t.container,r=t.curves,i=n.styles,o=0,A=n.textNodes,w.label=1;case 1:if(!(o0&&u>0&&(h=r.ctx.createPattern(w,"repeat"),r.renderRepeat(s,h,a,l))):2===n.type&&(s=(B=og(t,e,[null,null,null]))[0],x=B[1],C=B[2],c=B[3],u=B[4],a=t2((k=0===n.position.length?[t$]:n.position)[0],c),l=t2(k[k.length-1],u),Q=(F=ev(n,a,l,c,u))[0],S=F[1],Q>0&&S>0&&(L=r.ctx.createRadialGradient(x+a,C+l,0,x+a,C+l,Q),ed(n.stops,2*Q).forEach(function(t){return L.addColorStop(t.stop,ee(t.color))}),r.path(s),r.ctx.fillStyle=L,Q!==S?(U=t.bounds.left+.5*t.bounds.width,I=t.bounds.top+.5*t.bounds.height,M=1/(j=S/Q),r.ctx.save(),r.ctx.translate(U,I),r.ctx.transform(1,0,0,j,0,0),r.ctx.translate(-U,-I),r.ctx.fillRect(x,M*(C-I)+I,c,u*M),r.ctx.restore()):r.ctx.fill())),E.label=6;case 6:return e--,[2]}})},r=this,i=0,o=t.styles.backgroundImage.slice(0).reverse(),s.label=1;case 1:if(!(i0))return[3,11];if(2!==a.style)return[3,5];return[4,this.renderDashedDottedBorder(a.color,a.width,o,t.curves,2)];case 4:case 6:case 8:return c.sent(),[3,11];case 5:if(3!==a.style)return[3,7];return[4,this.renderDashedDottedBorder(a.color,a.width,o,t.curves,3)];case 7:if(4!==a.style)return[3,9];return[4,this.renderDoubleBorder(a.color,a.width,o,t.curves)];case 9:return[4,this.renderSolidBorder(a.color,o,t.curves)];case 10:c.sent(),c.label=11;case 11:o++,c.label=12;case 12:return A++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,e,n,r,i){return F(this,void 0,void 0,function(){var o,A,s,a,l,c,u,h,d,f,p,g,m,v,y,w;return E(this,function(b){return this.ctx.save(),o=ou(r,n),A=oa(r,n),2===i&&(this.path(A),this.ctx.clip()),i5(A[0])?(s=A[0].start.x,a=A[0].start.y):(s=A[0].x,a=A[0].y),i5(A[1])?(l=A[1].end.x,c=A[1].end.y):(l=A[1].x,c=A[1].y),u=0===n||2===n?Math.abs(s-l):Math.abs(a-c),this.ctx.beginPath(),3===i?this.formatPath(o):this.formatPath(A.slice(0,2)),h=e<3?3*e:2*e,d=e<3?2*e:e,3===i&&(h=e,d=e),f=!0,u<=2*h?f=!1:u<=2*h+d?(p=u/(2*h+d),h*=p,d*=p):(g=Math.floor((u+d)/(h+d)),m=(u-g*h)/(g-1),d=(v=(u-(g+1)*h)/g)<=0||Math.abs(d-m)0?t.createInitialFilters():t.addCondition()}),(0,s._)((0,i._)(t),"maybeClose",function(e){var n=t.modalTarget.classList.contains("show"),r=t.element.contains(e.target);n&&!r&&t.closeModal()}),t}return(0,A._)(n,[{key:"connect",value:function(){document.addEventListener("click",this.maybeClose),document.addEventListener("iawp:filtersChanged",this.updateFilters),document.addEventListener("iawp:fetchingReport",this.onFetchingReport),this.filtersValue.length>0?(this.createInitialFilters(),this.setResetEnabled(!0)):this.addCondition()}},{key:"disconnect",value:function(){document.removeEventListener("click",this.maybeClose),document.removeEventListener("iawp:filtersChanged",this.updateFilters),document.removeEventListener("iawp:fetchingReport",this.onFetchingReport)}},{key:"createInitialFilters",value:function(){var t=this;this.filtersValue.forEach(function(e){var n=t.blueprintTarget.content.cloneNode(!0);t.filtersTarget.appendChild(n);var r=t.filtersTarget.lastElementChild,i=t.inclusionTargets.find(function(t){return r.contains(t)}),o=t.columnTargets.find(function(t){return r.contains(t)});i.value=e.inclusion,o.value=e.column;var A=o.options[o.selectedIndex].dataset.type;t.operatorTargets.filter(function(t){return r.contains(t)}).forEach(function(t){var n=t.dataset.type===A;t.classList.toggle("show",n),n&&(t.value=e.operator)}),t.operandTargets.filter(function(t){return r.contains(t)}).forEach(function(n){var r=n.dataset.column===o.value;n.classList.toggle("show",r),r&&(n.value=e.operand,setTimeout(function(){var r=t.application.getControllerForElementAndIdentifier(n,"easepick");if(r){var i=new u.DateTime(1e3*e.operand);n.easepick.setDate(i),n.easepick.gotoDate(i),r.unixTimestampValue=e.operand}},0))})})}},{key:"toggleModal",value:function(t){t.preventDefault(),this.modalTarget.classList.contains("show")?this.closeModal():this.openModal()}},{key:"openModal",value:function(){this.modalTarget.classList.add("show"),this.modalButtonTarget.classList.add("open"),document.getElementById("iawp-layout").classList.add("modal-open")}},{key:"closeModal",value:function(){this.modalTarget.classList.remove("show"),this.modalButtonTarget.classList.remove("open"),document.getElementById("iawp-layout").classList.remove("modal-open")}},{key:"addCondition",value:function(){this.filtersTarget.append(this.blueprintTarget.content.cloneNode(!0)),this.setResetEnabled(!0)}},{key:"removeCondition",value:function(t){t.stopPropagation(),this.conditionTargets.forEach(function(e){e.contains(t.target)&&e.remove()}),0===this.conditionTargets.length&&(this.addCondition(),document.dispatchEvent(new CustomEvent("iawp:changeFilters",{detail:{filters:[]}})),this.setResetEnabled(!1)),1===this.conditionTargets.length&&(this.setResetEnabled(!1),this.setCount(0)),0===this.conditionTargets.length&&this.addCondition(),this.appliedConditions>1&&this.apply()}},{key:"apply",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.showLoadingOverlay,r=!1;if(this.conditionTargets.forEach(function(e){var n=t.columnTargets.find(function(t){return e.contains(t)}),i=t.operandTargets.find(function(t){return e.contains(t)&&t.classList.contains("show")});""===n.value&&(n.classList.add("error"),r=!0),i&&""===i.value&&(i.classList.add("error"),r=!0)}),!r){var i=this.conditionTargets.map(function(e){var n=t.inclusionTargets.find(function(t){return e.contains(t)}),r=t.columnTargets.find(function(t){return e.contains(t)}),i=t.operatorTargets.find(function(t){return e.contains(t)&&t.classList.contains("show")}),o=t.operandTargets.find(function(t){return e.contains(t)&&t.classList.contains("show")}),A={inclusion:n.value,column:r.value,operator:i.value,operand:o.value},s=t.application.getControllerForElementAndIdentifier(o,"easepick");return s&&(A.operand=s.unixTimestampValue.toString()),A});this.appliedConditions=i.length,this.setResetEnabled(!0),this.setCount(i.length),this.closeModal(),document.dispatchEvent(new CustomEvent("iawp:changeFilters",{detail:{filters:i,showLoadingOverlay:void 0===n||n}}))}}},{key:"reset",value:function(){this.conditionTargets.forEach(function(t){t.remove()}),this.addCondition(),this.setResetEnabled(!1),this.appliedConditions=0,this.setCount(0),this.closeModal(),document.dispatchEvent(new CustomEvent("iawp:changeFilters",{detail:{filters:[]}}))}},{key:"setCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;document.getElementById("toolbar").setAttribute("data-filter-count",t)}},{key:"setResetEnabled",value:function(){var t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];t?this.resetTarget.removeAttribute("disabled"):this.resetTarget.setAttribute("disabled","disabled")}},{key:"columnSelect",value:function(t){var e=this.conditionTargets.find(function(e){return e.contains(t.target)}),n=t.target.value,r=t.target.options[t.target.selectedIndex].dataset.type;t.target.classList.remove("error"),this.operatorTargets.filter(function(t){return e.contains(t)}).forEach(function(t){var e=t.dataset.type===r;t.classList.toggle("show",e)}),this.operandTargets.filter(function(t){return e.contains(t)}).forEach(function(t){var e=t.dataset.column===n;t.classList.toggle("show",e)})}},{key:"operandChange",value:function(t){t.target.classList.remove("error")}},{key:"operandKeyDown",value:function(t){13===t.keyCode&&this.apply()}}]),n}(c.Controller);(0,s._)(h,"values",{filters:Array}),(0,s._)(h,"targets",["modal","modalButton","blueprint","filters","condition","reset","inclusion","column","operator","operand","conditionButtons","spinner"])},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@easepick/bundle":"2FFGt","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],eG4Fk:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return a});var i=t("@swc/helpers/_/_class_call_check"),o=t("@swc/helpers/_/_create_class"),A=t("@swc/helpers/_/_inherits"),s=t("@swc/helpers/_/_create_super"),a=function(t){(0,A._)(n,t);var e=(0,s._)(n);function n(){return(0,i._)(this,n),e.apply(this,arguments)}return(0,o._)(n,[{key:"changeGroup",value:function(t){var e=t.target.value;document.dispatchEvent(new CustomEvent("iawp:changeGroup",{detail:{group:e}}))}}]),n}(t("@hotwired/stimulus").Controller)},{"@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],eFMyx:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return p});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_async_to_generator"),A=t("@swc/helpers/_/_class_call_check"),s=t("@swc/helpers/_/_create_class"),a=t("@swc/helpers/_/_define_property"),l=t("@swc/helpers/_/_inherits"),c=t("@swc/helpers/_/_object_spread"),u=t("@swc/helpers/_/_object_spread_props"),h=t("@swc/helpers/_/_create_super"),d=t("@swc/helpers/_/_ts_generator"),f=t("@hotwired/stimulus");t("../download");var p=function(t){(0,l._)(n,t);var e=(0,h._)(n);function n(){var t;return(0,A._)(this,n),t=e.apply(this,arguments),(0,a._)((0,i._)(t),"fileData",null),t}return(0,s._)(n,[{key:"import",value:function(){var t=this;this.disableSubmissions(),this.submitButtonTarget.classList.add("sending");var e=(0,u._)((0,c._)({},iawpActions.import_reports),{json:JSON.stringify(this.fileData)});jQuery.post(ajaxurl,e,function(e){t.clearFileInput(),t.submitButtonTarget.classList.remove("sending"),t.submitButtonTarget.classList.add("sent"),setTimeout(function(){t.submitButtonTarget.classList.remove("sent"),window.location.reload()},1e3)}).fail(function(){})}},{key:"handleFileSelected",value:function(t){var e=this;return(0,o._)(function(){var n;return(0,d._)(this,function(r){switch(r.label){case 0:return[4,t.target.files[0].text()];case 1:if(n=JSON.parse(r.sent()),e.fileData=null,e.hideWarning(),e.disableSubmissions(),!n.database_version||!Array.isArray(n.reports))return e.showWarning(iawpText.invalidReportArchive),[2];return e.enableSubmissions(),e.fileData=n,[2]}})})()}},{key:"clearFileInput",value:function(){this.fileData=null,this.fileInputTarget.value=null,this.hideWarning(),this.disableSubmissions()}},{key:"showWarning",value:function(t){this.warningMessageTarget.innerText=t,this.warningMessageTarget.style.display="block"}},{key:"hideWarning",value:function(){this.warningMessageTarget.style.display="none"}},{key:"enableSubmissions",value:function(){this.submitButtonTarget.removeAttribute("disabled")}},{key:"disableSubmissions",value:function(){this.submitButtonTarget.setAttribute("disabled","disabled")}}]),n}(f.Controller);(0,a._)(p,"targets",["submitButton","warningMessage","fileInput"]),(0,a._)(p,"values",{databaseVersion:String})},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_async_to_generator":"6Tpxj","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_object_spread":"kexvf","@swc/helpers/_/_object_spread_props":"c7x3p","@swc/helpers/_/_create_super":"a37Ru","@swc/helpers/_/_ts_generator":"lwj56","@hotwired/stimulus":"crDvk","../download":"ce5U5","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"1BVRP":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return h});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_create_super"),c=t("@hotwired/stimulus"),u=t("../utils/appearance"),h=function(t){(0,a._)(n,t);var e=(0,l._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"mapInstance",null),(0,s._)((0,i._)(t),"drawChart",function(){if(t.chartTarget.innerHTML="",t.mapInstance){var e=window.mapInstances.indexOf(t.mapInstance);e>-1&&window.mapInstances.splice(e,1)}var n=new google.visualization.DataTable;n.addColumn("string","country"),n.addColumn("number","views"),n.addColumn({type:"string",role:"tooltip",p:{html:!0}}),n.addRows(t.convertCountryDataToRows(t.dataValue));var r={displayMode:"regions",tooltip:{isHtml:!0,showTitle:!1},backgroundColor:(0,u.isDarkMode)()?"#373040":"#FFFFFF",datalessRegionColor:(0,u.isDarkMode)()?"#695C7A":void 0,colorAxis:{colors:(0,u.isDarkMode)()?["#AC9CC9","#9E66FF"]:["#C4ABED","#5223A0"]},legend:{numberFormat:"".concat(iawpText.views,": #"),textStyle:{color:(0,u.isDarkMode)()?"#FFFFFF":"#000000",strokeWidth:0}}},i=new google.visualization.GeoChart(t.chartTarget);i.draw(n,r),window.mapInstances||(window.mapInstances=[]),t.mapInstance=i,window.mapInstances.push(i)}),t}return(0,A._)(n,[{key:"connect",value:function(){var t=this;this.resizeObserver=new ResizeObserver(function(){t.drawChart()}),google.charts.load("current",{packages:["geochart"]}),google.charts.setOnLoadCallback(function(){t.drawChart(),t.resizeObserver.observe(t.element)})}},{key:"disconnect",value:function(){var t=this;this.resizeObserver.disconnect(),window.mapInstances=window.mapInstances.filter(function(e){return e!==t.mapInstance})}},{key:"convertCountryDataToRows",value:function(t){var e=this;return t.map(function(t){return[t.country_code,t.views,e.getTooltipMarkup(t)]})}},{key:"getTooltipMarkup",value:function(t){var e=this.formatNumber(t.views),n=this.formatNumber(t.visitors),r=this.formatNumber(t.sessions),i=this.flagsUrlValue+"/"+t.country_code.toLowerCase()+".svg";return'\n
\n Country flag\n

').concat(t.country,"

\n

").concat(iawpText.views,": ").concat(e,"

\n

").concat(iawpText.visitors,": ").concat(n,"

\n

").concat(iawpText.sessions,": ").concat(r,"

\n
\n ")}},{key:"formatNumber",value:function(t){return new Intl.NumberFormat(this.localeValue,{maximumFractionDigits:0}).format(t)}}]),n}(c.Controller);(0,s._)(h,"targets",["chart"]),(0,s._)(h,"values",{data:Array,flagsUrl:String,locale:String})},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","../utils/appearance":"j01R3","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"8sFSN":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return u});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_object_spread"),c=t("@swc/helpers/_/_create_super"),u=function(t){(0,a._)(n,t);var e=(0,c._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"hasSetError",!1),t}return(0,A._)(n,[{key:"connect",value:function(){var t=this;this.interval=setInterval(function(){t.check()},5e3),this.check()}},{key:"check",value:function(){var t=this,e=(0,l._)({},iawpActions.migration_status);jQuery.post(ajaxurl,e,function(e){e.data&&!1===e.data.isMigrating?(clearInterval(t.interval),document.location.reload()):e.data&&e.data.errorHtml&&!t.hasSetError&&(document.getElementById("iawp-migration-error").innerHTML=e.data.errorHtml,document.getElementById("iawp-update-running").innerHTML="",t.hasSetError=!0)})}}]),n}(t("@hotwired/stimulus").Controller)},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_object_spread":"kexvf","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],eKSV5:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return c});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_create_super"),c=function(t){(0,a._)(n,t);var e=(0,l._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"maybeClose",function(e){var n=t.modalTarget.classList.contains("show"),r=t.element.contains(e.target);e.isTrusted&&n&&!r&&t.closeModal()}),t}return(0,A._)(n,[{key:"connect",value:function(){document.addEventListener("click",this.maybeClose)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.maybeClose)}},{key:"toggleModal",value:function(t){t.preventDefault(),this.modalTarget.classList.contains("show")?this.closeModal():this.openModal()}},{key:"openModal",value:function(){this.modalTarget.classList.add("show"),this.modalButtonTarget.classList.add("open"),document.getElementById("iawp-layout").classList.add("modal-open")}},{key:"closeModal",value:function(){this.modalTarget.classList.remove("show"),this.modalButtonTarget.classList.remove("open"),document.getElementById("iawp-layout").classList.remove("modal-open")}}]),n}(t("@hotwired/stimulus").Controller);(0,s._)(c,"targets",["modal","modalButton"])},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],c1ryZ:[function(t,e,n){var r,i=t("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",function(){return g});var o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_to_consumable_array"),c=t("@swc/helpers/_/_create_super"),u=t("@hotwired/stimulus"),h=t("../chart_plugins/corsair_plugin");i.interopDefault(h);var d=t("chart.js"),f=t("color");i.interopDefault(f);var p=t("../utils/appearance");(r=d.Chart).register.apply(r,(0,l._)(d.registerables));var g=function(t){(0,a._)(n,t);var e=(0,c._)(n);function n(){return(0,o._)(this,n),e.apply(this,arguments)}return(0,A._)(n,[{key:"connect",value:function(){this.renderChart()}},{key:"renderChart",value:function(){var t=this,e=this.dataValue.map(function(t){return t.label}),n=this.dataValue.map(function(t){return t.value}),r={type:"pie",options:{responsive:!0,maintainAspectRatio:!1,borderColor:(0,p.isDarkMode)()?"#363040":"#ffffff",plugins:{legend:{position:"left",labels:{color:(0,p.isDarkMode)()?"#ffffff":"#6D6A73"}},tooltip:{callbacks:{title:function(t){return t[0].label||""},label:function(e){var n,r=e.chart,i=t.dataValue[e.dataIndex],o=t.dataValue.reduce(function(t,e,n){return r.getDataVisibility(n)?t+e.value:t},0);return" ".concat(null!==(n=i.formatted_value)&&void 0!==n?n:i.value," ").concat(i.unit," (").concat(t.formatPercent(i.value,o),")")}}}}},data:{labels:e,datasets:[{data:n,backgroundColor:["#7B5BB3","#7FBAFD","#8ADBB0","#FD799E","#FFEA9C"],hoverOffset:4}]}};this.chart||(this.chart=new d.Chart(this.canvasTarget,r))}},{key:"formatPercent",value:function(t,e){return new Intl.NumberFormat(this.localeValue,{style:"percent"}).format(t>0?t/e:0)}}]),n}(u.Controller);(0,s._)(g,"targets",["canvas"]),(0,s._)(g,"values",{data:Array,locale:String})},{"@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_to_consumable_array":"4oNkS","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","../chart_plugins/corsair_plugin":"aPJHp","chart.js":"1stGI",color:"Fap9I","../utils/appearance":"j01R3","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"3da1p":[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return c});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_create_super"),c=function(t){(0,a._)(n,t);var e=(0,l._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"onFetchingReport",function(){var e=t.element.querySelectorAll("input:not([disabled])");e.forEach(function(t){return t.disabled=!0}),t.spinnerTarget.classList.remove("hidden"),document.addEventListener("iawp:fetchedReport",function(){e.forEach(function(t){return t.disabled=!1}),t.spinnerTarget.classList.add("hidden")},{once:!0})}),(0,s._)((0,i._)(t),"maybeClose",function(e){var n=t.modalTarget.classList.contains("show"),r=t.element.contains(e.target);n&&!r&&t.closeModal()}),t}return(0,A._)(n,[{key:"connect",value:function(){document.addEventListener("click",this.maybeClose),document.addEventListener("iawp:fetchingReport",this.onFetchingReport)}},{key:"disconnect",value:function(){document.removeEventListener("click",this.maybeClose),document.removeEventListener("iawp:fetchingReport",this.onFetchingReport),this.modalTarget.classList.contains("show")&&this.closeModal()}},{key:"toggleModal",value:function(t){t.preventDefault(),this.modalTarget.classList.contains("show")?this.closeModal():this.openModal()}},{key:"openModal",value:function(){this.modalTarget.classList.add("show"),this.modalButtonTarget.classList.add("open"),document.getElementById("iawp-layout").classList.add("modal-open")}},{key:"closeModal",value:function(){this.modalTarget.classList.remove("show"),this.modalButtonTarget.classList.remove("open"),document.getElementById("iawp-layout").classList.remove("modal-open")}},{key:"requestGroupChange",value:function(t){t.preventDefault(),this.changeGroup(t.currentTarget.dataset.optionId)}},{key:"changeGroup",value:function(t){this.tabTargets.forEach(function(e,n){e.classList.toggle("current",e.dataset.optionId===t)}),this.checkboxContainerTargets.forEach(function(e,n){e.classList.toggle("current",e.dataset.optionId===t)})}},{key:"toggleOption",value:function(){var t=this.checkboxTargets.filter(function(t){return t.checked});this.checkboxTargets.forEach(function(t){t.setAttribute("data-test-visibility",t.checked?"visible":"hidden"),t.removeAttribute("disabled")}),1===t.length&&t.at(0).setAttribute("disabled","disabled"),document.dispatchEvent(new CustomEvent(this.getEventName(),{detail:{optionIds:t.map(function(t){return t.name})}}))}},{key:"getEventName",value:function(){switch(this.optionTypeValue){case"columns":return"iawp:changeColumns";case"quick_stats":return"iawp:changeQuickStats"}}}]),n}(t("@hotwired/stimulus").Controller);(0,s._)(c,"targets",["modal","modalButton","checkbox","checkboxContainer","tab","spinner"]),(0,s._)(c,"values",{optionType:String})},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],gruj2:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return m});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_async_to_generator"),A=t("@swc/helpers/_/_class_call_check"),s=t("@swc/helpers/_/_create_class"),a=t("@swc/helpers/_/_define_property"),l=t("@swc/helpers/_/_inherits"),c=t("@swc/helpers/_/_object_spread"),u=t("@swc/helpers/_/_object_spread_props"),h=t("@swc/helpers/_/_create_super"),d=t("@swc/helpers/_/_ts_generator"),f=t("@hotwired/stimulus"),p=t("micromodal"),g=r.interopDefault(p),m=function(t){(0,l._)(n,t);var e=(0,h._)(n);function n(){var t;return(0,A._)(this,n),t=e.apply(this,arguments),(0,a._)((0,i._)(t),"isModalActuallyOpen",!1),(0,a._)((0,i._)(t),"showConfirmationModal",function(e){t.confirmationTextTarget.innerText=e,t.isModalActuallyOpen=!0,(0,g.default).show("prune-modal",{onClose:function(){t.cancelConfirmation()}})}),(0,a._)((0,i._)(t),"hideConfirmationModal",function(e){t.isModalActuallyOpen&&(t.isModalActuallyOpen=!1,(0,g.default).close("prune-modal"))}),t}return(0,s._)(n,[{key:"saveClick",value:function(){this.actuallySave(!1)}},{key:"confirmClick",value:function(){var t=this;return(0,o._)(function(){return(0,d._)(this,function(e){switch(e.label){case 0:return t.confirmButtonTarget.setAttribute("disabled","disabled"),t.confirmButtonTarget.innerText=t.confirmButtonTarget.dataset.loadingText,[4,t.actuallySave(!0)];case 1:return e.sent(),t.confirmButtonTarget.removeAttribute("disabled"),t.confirmButtonTarget.innerText=t.confirmButtonTarget.dataset.originalText,t.hideConfirmationModal(),[2]}})})()}},{key:"selectChanged",value:function(){this.saveButtonTarget.removeAttribute("disabled")}},{key:"cancelConfirmation",value:function(t){t&&t.target!==t.currentTarget||(this.hideConfirmationModal(),this.saveButtonTarget.removeAttribute("disabled"),this.saveButtonTarget.innerText=this.saveButtonTarget.dataset.originalText)}},{key:"actuallySave",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;return(0,o._)(function(){var n;return(0,d._)(this,function(r){switch(r.label){case 0:return e.saveButtonTarget.setAttribute("disabled","disabled"),e.saveButtonTarget.innerText=e.saveButtonTarget.dataset.loadingText,[4,e.sendRequest({pruningCutoff:e.cutoffsTarget.value,isConfirmed:t})];case 1:return!(n=r.sent()).wasSuccessful&&n.confirmationText?e.showConfirmationModal(n.confirmationText):(e.statusMessageTarget.classList.toggle("is-scheduled",n.isEnabled),e.statusMessageTarget.querySelector("p").innerHTML=n.statusMessage,e.saveButtonTarget.removeAttribute("disabled"),e.saveButtonTarget.innerText=e.saveButtonTarget.dataset.originalText,e.saveButtonTarget.setAttribute("disabled","disabled"),e.hideConfirmationModal()),[2]}})})()}},{key:"sendRequest",value:function(t){var e=t.pruningCutoff,n=t.isConfirmed;return(0,o._)(function(){var t,r;return(0,d._)(this,function(i){switch(i.label){case 0:return t=(0,u._)((0,c._)({},iawpActions.configure_pruner),{pruningCutoff:e,isConfirmed:n}),[4,jQuery.post(ajaxurl,t)];case 1:return[2,{wasSuccessful:(r=i.sent()).success,confirmationText:r.data.confirmationText,isEnabled:r.data.isEnabled,statusMessage:r.data.statusMessage}]}})})()}}]),n}(f.Controller);(0,a._)(m,"targets",["cutoffs","saveButton","confirmButton","statusMessage","confirmationText"])},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_async_to_generator":"6Tpxj","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_object_spread":"kexvf","@swc/helpers/_/_object_spread_props":"c7x3p","@swc/helpers/_/_create_super":"a37Ru","@swc/helpers/_/_ts_generator":"lwj56","@hotwired/stimulus":"crDvk",micromodal:"Tlrpp","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],i0Fis:[function(t,e,n){var r=t("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"default",function(){return c});var i=t("@swc/helpers/_/_assert_this_initialized"),o=t("@swc/helpers/_/_class_call_check"),A=t("@swc/helpers/_/_create_class"),s=t("@swc/helpers/_/_define_property"),a=t("@swc/helpers/_/_inherits"),l=t("@swc/helpers/_/_create_super"),c=function(t){(0,a._)(n,t);var e=(0,l._)(n);function n(){var t;return(0,o._)(this,n),t=e.apply(this,arguments),(0,s._)((0,i._)(t),"updateTableUI",function(e){var n=e.detail.optionIds,r=n.length,i=t.element.getElementsByClassName("iawp-stats")[0];i.classList.forEach(function(t){t.startsWith("total-of-")&&i.classList.remove(t)}),i.classList.add("total-of-"+r.toString()),t.quickStatTargets.forEach(function(t){var e=n.includes(t.dataset.id);t.classList.toggle("visible",e)})}),t}return(0,A._)(n,[{key:"connect",value:function(){document.addEventListener("iawp:changeQuickStats",this.updateTableUI)}},{key:"disconnect",value:function(){document.removeEventListener("iawp:changeQuickStats",this.updateTableUI)}}]),n}(t("@hotwired/stimulus").Controller);(0,s._)(c,"targets",["quickStat"])},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],goGxO:[function(t,e,n){var r,i=t("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(n),i.export(n,"default",function(){return _});var o=t("@swc/helpers/_/_assert_this_initialized"),A=t("@swc/helpers/_/_class_call_check"),s=t("@swc/helpers/_/_create_class"),a=t("@swc/helpers/_/_define_property"),l=t("@swc/helpers/_/_inherits"),c=t("@swc/helpers/_/_object_spread"),u=t("@swc/helpers/_/_to_consumable_array"),h=t("@swc/helpers/_/_create_super"),d=t("@hotwired/stimulus"),f=t("chart.js"),p=t("isotope-layout"),g=i.interopDefault(p),m=t("../chart_plugins/html_legend_plugin"),v=i.interopDefault(m),y=t("../chart_plugins/corsair_plugin"),w=i.interopDefault(y),b=t("../utils/appearance");(r=f.Chart).register.apply(r,(0,u._)(f.registerables)),f.Chart.defaults.font.family='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';var _=function(t){(0,l._)(n,t);var e=(0,h._)(n);function n(){var t;return(0,A._)(this,n),t=e.apply(this,arguments),(0,a._)((0,o._)(t),"tabVisibilityChanged",function(){t.visibleValue=!document.hidden,t.visibleValue&&(t.refresh(),t.startServerPolling())}),t}return(0,s._)(n,[{key:"connect",value:function(){document.addEventListener("visibilitychange",this.tabVisibilityChanged),this.initializeChart({element:this.minuteChartTarget,views:this.chartDataValue.minute_interval_views,labelsShort:this.chartDataValue.minute_interval_labels_short,labelsFull:this.chartDataValue.minute_interval_labels_full}),this.initializeChart({element:this.secondChartTarget,views:this.chartDataValue.second_interval_views,labelsShort:this.chartDataValue.second_interval_labels_short,labelsFull:this.chartDataValue.second_interval_labels_full}),this.startServerPolling()}},{key:"disconnect",value:function(){document.removeEventListener("visibilitychange",this.tabVisibilityChanged)}},{key:"startServerPolling",value:function(){var t=this;clearInterval(this.interval),this.interval=setInterval(function(){t.visibleValue?t.refresh():clearInterval(t.interval)},1e4)}},{key:"refresh",value:function(){var t=this,e=(0,c._)({},iawpActions.real_time_data);jQuery.post(ajaxurl,e,function(e,n,r){document.getElementById("real-time-dashboard").classList.remove("refreshed"),document.getElementById("real-time-dashboard").offsetWidth,document.getElementById("real-time-dashboard").classList.add("refreshed"),e.success&&t.rerender(e.data)})}},{key:"rerender",value:function(t){this.visitorMessageTarget.textContent=t.visitor_message,this.pageMessageTarget.textContent=t.page_message,this.referrerMessageTarget.textContent=t.referrer_message,this.countryMessageTarget.textContent=t.country_message,this.updateChart({element:this.minuteChartTarget,visitors:t.chart_data.minute_interval_visitors,views:t.chart_data.minute_interval_views}),this.updateChart({element:this.secondChartTarget,visitors:t.chart_data.second_interval_visitors,views:t.chart_data.second_interval_views}),this.updateList({element:this.pagesListTarget,entries:t.lists.pages.entries}),this.updateList({element:this.referrersListTarget,entries:t.lists.referrers.entries}),this.updateList({element:this.countriesListTarget,entries:t.lists.countries.entries}),this.updateList({element:this.campaignsListTarget,entries:t.lists.campaigns.entries}),this.updateList({element:this.device_typesListTarget,entries:t.lists.device_types.entries})}},{key:"existingElements",value:function(){return Array.from(this.element.querySelectorAll("li:not(.exiting)"))}},{key:"existingIds",value:function(){return this.existingElements().map(function(t){return t.dataset.id})}},{key:"updateList",value:function(t){var e=this,n=t.element,r=t.entries,i=n.iso;i||(i=n.iso=new g.default(n,{itemSelector:"li",layoutMode:"vertical",sortColumn:"position",getSortData:{position:function(t){return parseInt(t.dataset.position)}}})),this.existingElements().forEach(function(t){i.remove(t)}),r.forEach(function(t,n){var r=e.elementFromEntry(t);i.insert(r)}),i.arrange();var o=i.items.length,A=n.parentNode.querySelector(".most-popular-empty-message");o>0?A.classList.add("hide"):A.classList.remove("hide")}},{key:"elementFromEntry",value:function(t){var e=t.id,n=t.position,r=t.title,i=t.subtitle,o=t.views,A=t.flag?t.flag:"",s='\n
  • \n ').concat(n,".\n ").concat(A,'\n ').concat(r," ").concat(i?''.concat(i,""):"",'\n ').concat(o,"\n
  • \n "),a=document.createElement("div");return a.innerHTML=s,a.firstElementChild}},{key:"initializeChart",value:function(t){var e=t.element,n=t.views,r=t.labelsShort,i={type:"bar",data:{labels:t.labelsFull,datasets:[{id:"views",label:iawpText.views,data:n,backgroundColor:"rgba(108,70,174,0.2)",borderColor:"rgba(108,70,174,1)",borderWidth:{bottom:0,top:3,left:0,right:0}}]},options:{interaction:{intersect:!1,mode:"index"},responsive:!0,scales:{y:{grid:{borderColor:"#DEDAE6",tickColor:"#DEDAE6",display:!0,drawOnChartArea:!0,borderDash:[2,4]},beginAtZero:!0,suggestedMax:5,ticks:{color:(0,b.isDarkMode)()?"#ffffff":"#6D6A73",precision:0}},x:{stacked:!0,grid:{borderColor:"#DEDAE6",tickColor:"#DEDAE6",display:!0,drawOnChartArea:!1},ticks:{color:(0,b.isDarkMode)()?"#ffffff":"#6D6A73",beginAtZero:!0,callback:function(t,e,n){return r[e]}}}},plugins:{mode:String,htmlLegend:{container:e.parentNode.querySelector(".legend")},legend:{display:!1},corsair:{dash:[2,4],color:"#777",width:1}}},plugins:[w.default,v.default]};new f.Chart(e,i)}},{key:"updateChart",value:function(t){var e=t.element,n=t.views,r=(0,f.Chart).getChart(e);r.data.datasets.forEach(function(t,e){var r;(r=t.data).splice.apply(r,[0,t.data.length].concat((0,u._)(n)))}),r.update("none")}}]),n}(d.Controller);(0,a._)(_,"targets",["minuteChart","secondChart","visitorMessage","pageMessage","referrerMessage","countryMessage","pagesList","referrersList","countriesList","campaignsList","device_typesList"]),(0,a._)(_,"values",{chartData:Object,nonce:String,visible:{type:Boolean,default:!0}})},{"@swc/helpers/_/_assert_this_initialized":"atUI0","@swc/helpers/_/_class_call_check":"2HOGN","@swc/helpers/_/_create_class":"8oe8p","@swc/helpers/_/_define_property":"27c3O","@swc/helpers/_/_inherits":"7gHjg","@swc/helpers/_/_object_spread":"kexvf","@swc/helpers/_/_to_consumable_array":"4oNkS","@swc/helpers/_/_create_super":"a37Ru","@hotwired/stimulus":"crDvk","chart.js":"1stGI","isotope-layout":"7FZhc","../chart_plugins/html_legend_plugin":"bGHGY","../chart_plugins/corsair_plugin":"aPJHp","../utils/appearance":"j01R3","@parcel/transformer-js/src/esmodule-helpers.js":"kPSB8"}],"7FZhc":[function(t,e,n){var r,i;r=window,i=function(t,e,n,r,i,o,A){var s=t.jQuery,a=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},l=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});l.Item=o,l.LayoutMode=A;var c=l.prototype;c._create=function(){for(var t in this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"],A.modes)this._initLayoutMode(t)},c.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},c._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),n=0;ns||As?1:-1)*((void 0!==e[o]?e[o]:e)?1:-1)}return 0});this.filteredItems.sort(r)}},c._getIsSameSortBy=function(t){for(var e=0;e