1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=322)}([function(e,t,n){"use strict";n.r(t),n.d(t,"h",function(){return s}),n.d(t,"createElement",function(){return s}),n.d(t,"cloneElement",function(){return d}),n.d(t,"createRef",function(){return H}),n.d(t,"Component",function(){return V}),n.d(t,"render",function(){return I}),n.d(t,"rerender",function(){return g}),n.d(t,"options",function(){return o});var r=function(){},o={},i=[],a=[];function s(e,t){var n,s,l,c,u=a;for(c=arguments.length;c-- >2;)i.push(arguments[c]);for(t&&null!=t.children&&(i.length||i.push(t.children),delete t.children);i.length;)if((s=i.pop())&&void 0!==s.pop)for(c=s.length;c--;)i.push(s[c]);else"boolean"==typeof s&&(s=null),(l="function"!=typeof e)&&(null==s?s="":"number"==typeof s?s=String(s):"string"!=typeof s&&(l=!1)),l&&n?u[u.length-1]+=s:u===a?u=[s]:u.push(s),n=l;var d=new r;return d.nodeName=e,d.children=u,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==o.vnode&&o.vnode(d),d}function l(e,t){for(var n in t)e[n]=t[n];return e}function c(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}var u="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;function d(e,t){return s(e.nodeName,l(l({},e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}var p=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=[];function h(e){!e._dirty&&(e._dirty=!0)&&1==f.push(e)&&(o.debounceRendering||u)(g)}function g(){for(var e;e=f.pop();)e._dirty&&E(e)}function m(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function v(e){var t=l({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function y(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n,r,o){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)c(n,null),c(r,e);else if("class"!==t||o)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var i in n)i in r||(e.style[i]="");for(var i in r)e.style[i]="number"==typeof r[i]&&!1===p.test(i)?r[i]+"px":r[i]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var a=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,w,a):e.removeEventListener(t,w,a),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!o&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var s=o&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?s?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(s?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function w(e){return this._listeners[e.type](o.event&&o.event(e)||e)}var _=[],S=0,x=!1,C=!1;function k(){for(var e;e=_.shift();)o.afterMount&&o.afterMount(e),e.componentDidMount&&e.componentDidMount()}function O(e,t,n,r,o,i){S++||(x=null!=o&&void 0!==o.ownerSVGElement,C=null!=e&&!("__preactattr_"in e));var a=P(e,t,n,r,i);return o&&a.parentNode!==o&&o.appendChild(a),--S||(C=!1,i||k()),a}function P(e,t,n,r,o){var i=e,a=x;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||o)?e.nodeValue!=t&&(e.nodeValue=t):(i=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(i,e),T(e,!0))),i.__preactattr_=!0,i;var s,l,c=t.nodeName;if("function"==typeof c)return function(e,t,n,r){var o=e&&e._component,i=o,a=e,s=o&&e._componentConstructor===t.nodeName,l=s,c=v(t);for(;o&&!l&&(o=o._parentComponent);)l=o.constructor===t.nodeName;o&&l&&(!r||o._component)?(N(o,c,3,n,r),e=o.base):(i&&!s&&(A(i),e=a=null),o=j(t.nodeName,c,n),e&&!o.nextBase&&(o.nextBase=e,a=null),N(o,c,1,n,r),e=o.base,a&&e!==a&&(a._component=null,T(a,!1)));return e}(e,t,n,r);if(x="svg"===c||"foreignObject"!==c&&x,c=String(c),(!e||!m(e,c))&&(s=c,(l=x?document.createElementNS("http://www.w3.org/2000/svg",s):document.createElement(s)).normalizedNodeName=s,i=l,e)){for(;e.firstChild;)i.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(i,e),T(e,!0)}var u=i.firstChild,d=i.__preactattr_,p=t.children;if(null==d){d=i.__preactattr_={};for(var f=i.attributes,h=f.length;h--;)d[f[h].name]=f[h].value}return!C&&p&&1===p.length&&"string"==typeof p[0]&&null!=u&&void 0!==u.splitText&&null==u.nextSibling?u.nodeValue!=p[0]&&(u.nodeValue=p[0]):(p&&p.length||null!=u)&&function(e,t,n,r,o){var i,a,s,l,c,u=e.childNodes,d=[],p={},f=0,h=0,g=u.length,v=0,b=t?t.length:0;if(0!==g)for(var w=0;w<g;w++){var _=u[w],S=_.__preactattr_,x=b&&S?_._component?_._component.__key:S.key:null;null!=x?(f++,p[x]=_):(S||(void 0!==_.splitText?!o||_.nodeValue.trim():o))&&(d[v++]=_)}if(0!==b)for(var w=0;w<b;w++){l=t[w],c=null;var x=l.key;if(null!=x)f&&void 0!==p[x]&&(c=p[x],p[x]=void 0,f--);else if(h<v)for(i=h;i<v;i++)if(void 0!==d[i]&&(C=a=d[i],O=o,"string"==typeof(k=l)||"number"==typeof k?void 0!==C.splitText:"string"==typeof k.nodeName?!C._componentConstructor&&m(C,k.nodeName):O||C._componentConstructor===k.nodeName)){c=a,d[i]=void 0,i===v-1&&v--,i===h&&h++;break}c=P(c,l,n,r),s=u[w],c&&c!==e&&c!==s&&(null==s?e.appendChild(c):c===s.nextSibling?y(s):e.insertBefore(c,s))}var C,k,O;if(f)for(var w in p)void 0!==p[w]&&T(p[w],!1);for(;h<=v;)void 0!==(c=d[v--])&&T(c,!1)}(i,p,n,r,C||null!=d.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||b(e,r,n[r],n[r]=void 0,x);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||b(e,r,n[r],n[r]=t[r],x)}(i,t.attributes,d),x=a,i}function T(e,t){var n=e._component;n?A(n):(null!=e.__preactattr_&&c(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||y(e),M(e))}function M(e){for(e=e.lastChild;e;){var t=e.previousSibling;T(e,!0),e=t}}var D=[];function j(e,t,n){var r,o=D.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),V.call(r,t,n)):((r=new V(t,n)).constructor=e,r.render=L);o--;)if(D[o].constructor===e)return r.nextBase=D[o].nextBase,D.splice(o,1),r;return r}function L(e,t,n){return this.constructor(e,n)}function N(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===o.syncComponentUpdates&&e.base?h(e):E(e,1,i)),c(e.__ref,e))}function E(e,t,n,r){if(!e._disable){var i,a,s,c=e.props,u=e.state,d=e.context,p=e.prevProps||c,f=e.prevState||u,h=e.prevContext||d,g=e.base,m=e.nextBase,y=g||m,b=e._component,w=!1,x=h;if(e.constructor.getDerivedStateFromProps&&(u=l(l({},u),e.constructor.getDerivedStateFromProps(c,u)),e.state=u),g&&(e.props=p,e.state=f,e.context=h,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(c,u,d)?w=!0:e.componentWillUpdate&&e.componentWillUpdate(c,u,d),e.props=c,e.state=u,e.context=d),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!w){i=e.render(c,u,d),e.getChildContext&&(d=l(l({},d),e.getChildContext())),g&&e.getSnapshotBeforeUpdate&&(x=e.getSnapshotBeforeUpdate(p,f));var C,P,M=i&&i.nodeName;if("function"==typeof M){var D=v(i);(a=b)&&a.constructor===M&&D.key==a.__key?N(a,D,1,d,!1):(C=a,e._component=a=j(M,D,d),a.nextBase=a.nextBase||m,a._parentComponent=e,N(a,D,0,d,!1),E(a,1,n,!0)),P=a.base}else s=y,(C=b)&&(s=e._component=null),(y||1===t)&&(s&&(s._component=null),P=O(s,i,d,n||!g,y&&y.parentNode,!0));if(y&&P!==y&&a!==b){var L=y.parentNode;L&&P!==L&&(L.replaceChild(P,y),C||(y._component=null,T(y,!1)))}if(C&&A(C),e.base=P,P&&!r){for(var V=e,I=e;I=I._parentComponent;)(V=I).base=P;P._component=V,P._componentConstructor=V.constructor}}for(!g||n?_.push(e):w||(e.componentDidUpdate&&e.componentDidUpdate(p,f,x),o.afterUpdate&&o.afterUpdate(e));e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);S||r||k()}}function A(e){o.beforeUnmount&&o.beforeUnmount(e);var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?A(n):t&&(null!=t.__preactattr_&&c(t.__preactattr_.ref,null),e.nextBase=t,y(t),D.push(e),M(t)),c(e.__ref,null)}function V(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function I(e,t,n){return O(n,e,{},!1,t,!1)}function H(){return{}}l(V.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=l(l({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),h(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),E(this,2)},render:function(){}});var R={h:s,createElement:s,cloneElement:d,createRef:H,Component:V,render:I,rerender:g,options:o};t.default=R},function(e,t,n){"use strict";n.d(t,"g",function(){return o}),n.d(t,"a",function(){return i}),n.d(t,"i",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"h",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"j",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"c",function(){return f}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return g});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function d(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}function p(e){return this instanceof p?(this.v=e,this):new p(e)}function f(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=o[e](t)).value instanceof p?Promise.resolve(n.value.v).then(l,c):u(i[0][2],n)}catch(e){u(i[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function h(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:p(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function g(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=c(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}},function(e,t,n){"use strict";var r=n(60),o=n(153),i=n.n(o),a=["en","ja","zh"],s=r.default,l=function(e,t,r,o){if(e||t||r||s.use(i.a),s.init({fallbackLng:"en",defaultNS:"jsviewer",debug:!1,detection:{order:["querystring","navigator"],lookupQuerystring:"lng"},interpolation:{escapeValue:!1,format:function(e,t,n){return"uppercase"===t?e.toUpperCase():"lowercase"===t?e.toLowerCase():e}},initImmediate:!1}),h(n(291)),h(n(292)),e)d(e,r,o);else{if(!t)return r?(m(r,o),void s.changeLanguage(r)):void 0;d(t,r,o)}},c=function(e,t,n){var r=g(e+"/language",t,n);if(r.open("GET",e+"/language",!1),r.send(),200===r.status)try{var o=JSON.parse(r.response);s.changeLanguage(o.language.split(",")[0])}catch(e){if(!n)throw new Error("Cannot apply server localization. "+e);n(e)}},u=function(e){return s.on("languageChanged",e)};function d(e,t,n){var r="string"==typeof e?p(e,n):e;f(r,t=t||"custom"),s.changeLanguage(t)}var p=function(e,t){var n=g(e,void 0,t);if(n.open("GET",e,!1),n.send(),200===n.status)try{return JSON.parse(n.response)}catch(e){if(!t)throw new Error("Cannot apply custom localization. "+e);t(e)}},f=function(e,t){e&&Object.keys(e).forEach(function(n){return s.addResourceBundle(t,n,e[n],!0)})},h=function(e){e.forEach(function(e){var t=e.ns,n=e.lng,r=e.resources;return s.addResourceBundle(n,t,r)})},g=function(e,t,n){var r=new XMLHttpRequest;if(t&&r.setRequestHeader("Authorization",t),n){var o=function(t){n({message:"Cannot apply custom localization",details:t+" (uri: '"+e+"')",severity:"warn"})};r.onerror=function(){return o("An error occurred during loading localization resources")},r.onloadend=function(){404===r.status&&o("Localization resources not found on server"),500===r.status&&o("An error occurred during loading localization resources"),200!==r.status&&o("Network error: "+r.status)}}return r},m=function(e,t){var n=e.split("-")[0].toLowerCase(),r=n&&a.filter(function(e){return e===n});r&&r.length>0||t&&t({message:"Cannot apply localization",details:"No localization resources found for '"+e+"' language code.",severity:"warn"})};n.d(t,"a",function(){return c}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return u})},function(e,t,n){var r=n(4),o=n(62).f,i=n(22),a=n(36),s=n(80),l=n(112),c=n(82);e.exports=function(e,t){var n,u,d,p,f,h=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[h]||s(h,{}):(r[h]||{}).prototype)for(u in t){if(p=t[u],d=e.noTargetGet?(f=o(n,u))&&f.value:n[u],!c(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,u,p,e)}}},function(e,t){e.exports="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")()},function(e,t,n){var r=n(49)("wks"),o=n(65),i=n(4).Symbol,a=n(115);e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0}),r(n(71)),r(n(146));var i=n(56);t.ViewerStatus=i.ViewerStatus,t.ViewMode=i.ViewMode,t.ZoomMode=i.ZoomMode,t.MouseMode=i.MouseMode;var a=n(142);t.withThumbnails=a.register;var s=o(n(44));t.SearchFeature=s},function(e,t,n){var r=n(274);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(t){r(e,t,n[t])})}return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(11);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r;
- /*!
- * jQuery JavaScript Library v3.4.0
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2019-04-10T19:48Z
- */
- /*!
- * jQuery JavaScript Library v3.4.0
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2019-04-10T19:48Z
- */
- !function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,o){"use strict";var i=[],a=n.document,s=Object.getPrototypeOf,l=i.slice,c=i.concat,u=i.push,d=i.indexOf,p={},f=p.toString,h=p.hasOwnProperty,g=h.toString,m=g.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,n){var r,o,i=(n=n||a).createElement("script");if(i.text=e,t)for(r in w)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,o);n.head.appendChild(i).parentNode.removeChild(i)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[f.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.4.0",constructor:x,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(c&&r&&(x.isPlainObject(r)||(o=Array.isArray(r)))?(n=a[t],i=o&&!Array.isArray(n)?[]:o||x.isPlainObject(n)?n:{},o=!1,a[t]=x.extend(c,i,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+("3.4.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&g.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){_(e,{nonce:t&&t.nonce})},each:function(e,t){var n,r=0;if(k(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?x.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o,i=0,a=[];if(k(e))for(r=e.length;i<r;i++)null!=(o=t(e[i],i,n))&&a.push(o);else for(i in e)null!=(o=t(e[i],i,n))&&a.push(o);return c.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){p["[object "+t+"]"]=t.toLowerCase()});var O=
- /*!
- * Sizzle CSS Selector Engine v2.3.4
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://js.foundation/
- *
- * Date: 2019-04-08
- */
- function(e){var t,n,r,o,i,a,s,l,c,u,d,p,f,h,g,m,v,y,b,w="sizzle"+1*new Date,_=e.document,S=0,x=0,C=le(),k=le(),O=le(),P=le(),T=function(e,t){return e===t&&(d=!0),0},M={}.hasOwnProperty,D=[],j=D.pop,L=D.push,N=D.push,E=D.slice,A=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",R="\\["+I+"*("+H+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+I+"*\\]",F=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",z=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),W=new RegExp("^"+I+"*,"+I+"*"),U=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),Y=new RegExp(I+"|>"),$=new RegExp(F),G=new RegExp("^"+H+"$"),q={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ne=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){p()},ae=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{N.apply(D=E.call(_.childNodes),_.childNodes),D[_.childNodes.length].nodeType}catch(e){N={apply:D.length?function(e,t){L.apply(e,E.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,o){var i,s,c,u,d,h,v,y=t&&t.ownerDocument,S=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==S&&9!==S&&11!==S)return r;if(!o&&((t?t.ownerDocument||t:_)!==f&&p(t),t=t||f,g)){if(11!==S&&(d=Q.exec(e)))if(i=d[1]){if(9===S){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(y&&(c=y.getElementById(i))&&b(t,c)&&c.id===i)return r.push(c),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!P[e+" "]&&(!m||!m.test(e))&&(1!==S||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===S&&Y.test(e)){for((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=w),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+be(h[s]);v=h.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return N.apply(r,y.querySelectorAll(v)),r}catch(t){P(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,r,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[w]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)r.attrHandle[n[o]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce(function(t){return t=+t,ce(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:_;return a!==f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,g=!i(f),_!==f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+V+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},T=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===f||e.ownerDocument===_&&b(_,e)?-1:t===f||t.ownerDocument===_&&b(_,t)?1:u?A(u,e)-A(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!o||!i)return e===f?-1:t===f?1:o?-1:i?1:u?A(u,e)-A(u,t):0;if(o===i)return pe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]===_?-1:s[r]===_?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),n.matchesSelector&&g&&!P[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){P(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&M.call(r.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(r=se.selectors={cacheLength:50,createPseudo:ce,match:q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&C(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,p,f,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(i){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(b=(f=(c=(u=(d=(p=m)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],p=f&&m.childNodes[f];p=++f&&p&&p[g]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[S,f,b];break}}else if(y&&(b=f=(c=(u=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===b)for(;(p=++f&&p&&p[g]||(b=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((u=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[S,b]),p!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=A(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ce(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[w]?ce(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:ce(function(e){return function(t){return se(e,t).length>0}}),contains:ce(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:ce(function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:me(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function we(e,t,n){var r=t.dir,o=t.next,i=o||r,a=n&&"parentNode"===i,s=x++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,o);return!1}:function(t,n,l){var c,u,d,p=[S,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===S&&c[1]===s)return p[2]=c[2];if(u[i]=p,p[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function Se(e,t,n,r,o){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(s)));return a}function xe(e,t,n,r,o,i){return r&&!r[w]&&(r=xe(r)),o&&!o[w]&&(o=xe(o,i)),ce(function(i,a,s,l){var c,u,d,p=[],f=[],h=a.length,g=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:Se(g,p,e,s,l),v=n?o||(i?e:h||r)?[]:a:m;if(n&&n(m,v,s,l),r)for(c=Se(v,f),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(m[f[u]]=d));if(i){if(o||e){if(o){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);o(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=o?A(i,d):p[u])>-1&&(i[c]=!(a[c]=d))}}else v=Se(v===a?v.splice(h,v.length):v),o?o(null,a,v,l):N.apply(a,v)})}function Ce(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=we(function(e){return e===t},s,!0),d=we(function(e){return A(t,e)>-1},s,!0),p=[function(e,n,r){var o=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,o}];l<i;l++)if(n=r.relative[e[l].type])p=[we(_e(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(o=++l;o<i&&!r.relative[e[o].type];o++);return xe(l>1&&_e(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<o&&Ce(e.slice(l,o)),o<i&&Ce(e=e.slice(o)),o<i&&be(e))}p.push(n)}return _e(p)}return ye.prototype=r.filters=r.pseudos,r.setFilters=new ye,a=se.tokenize=function(e,t){var n,o,i,a,s,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){for(a in n&&!(o=W.exec(s))||(o&&(s=s.slice(o[0].length)||s),l.push(i=[])),n=!1,(o=U.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(o=q[a].exec(s))||c[a]&&!(o=c[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):k(e,l).slice(0)},s=se.compile=function(e,t){var n,o=[],i=[],s=O[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ce(t[n]))[w]?o.push(s):i.push(s);(s=O(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,l,u){var d,h,m,v=0,y="0",b=i&&[],w=[],_=c,x=i||o&&r.find.TAG("*",u),C=S+=null==_?1:Math.random()||.1,k=x.length;for(u&&(c=a===f||a||u);y!==k&&null!=(d=x[y]);y++){if(o&&d){for(h=0,a||d.ownerDocument===f||(p(d),s=!g);m=e[h++];)if(m(d,a||f,s)){l.push(d);break}u&&(S=C)}n&&((d=!m&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(b,w,a,s);if(i){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=j.call(l));w=Se(w)}N.apply(l,w),u&&!i&&w.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(S=C,c=_),b};return n?ce(i):i}(i,o))).selector=e}return s},l=se.select=function(e,t,n,o){var i,l,c,u,d,p="function"==typeof e&&e,f=!o&&a(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=q.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(i,1),!(e=o.length&&be(l)))return N.apply(n,o),n;break}}return(p||s(e,f))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(V,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(n);x.find=O,x.expr=O.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=O.uniqueSort,x.text=O.getText,x.isXMLDoc=O.isXML,x.contains=O.contains,x.escapeSelector=O.escape;var P=function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&x(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=x.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return y(t)?x.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return d.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,o[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"==typeof e&&M.test(e)?x(e):e||[],!1).length}});var N,E=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:E.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),j.test(r[1])&&x.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=a.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,N=x(a);var A=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,o=this.length,i=[],a="string"!=typeof e&&x(e);if(!M.test(e))for(;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?x.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(x(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return P(e,"parentNode")},parentsUntil:function(e,t,n){return P(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return P(e,"nextSibling")},prevAll:function(e){return P(e,"previousSibling")},nextUntil:function(e,t,n){return P(e,"nextSibling",n)},prevUntil:function(e,t,n){return P(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(D(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,r){var o=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=x.filter(r,o)),this.length>1&&(V[e]||x.uniqueSort(o),A.test(e)&&o.reverse()),this.pushStack(o)}});var H=/[^\x20\t\r\n\f]+/g;function R(e){return e}function F(e){throw e}function z(e,t,n,r){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(H)||[],function(e,n){t[n]=!0}),t}(e):x.extend({},e);var t,n,r,o,i=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,o&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){x.each(n,function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==S(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?x.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return o=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return o=a=[],n||t||(i=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(n){x.each(t,function(t,r){var o=y(e[r[4]])&&e[r[4]];i[r[1]](function(){var e=o&&o.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(e,r,o){var i=0;function a(e,t,r,o){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?o?c.call(n,a(i,t,R,o),a(i,t,F,o)):(i++,c.call(n,a(i,t,R,o),a(i,t,F,o),a(i,t,R,t.notifyWith))):(r!==R&&(s=void 0,l=[n]),(o||t.resolveWith)(s,l))}},u=o?c:function(){try{c()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==F&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),n.setTimeout(u))}}return x.Deferred(function(n){t[0][3].add(a(0,n,y(o)?o:R,n.notifyWith)),t[1][3].add(a(0,n,y(e)?e:R)),t[2][3].add(a(0,n,y(r)?r:F))}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},i={};return x.each(t,function(e,n){var a=n[2],s=n[5];o[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),o.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),o=l.call(arguments),i=x.Deferred(),a=function(e){return function(n){r[e]=this,o[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(r,o)}};if(t<=1&&(z(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(o[n]&&o[n].then)))return i.then();for(;n--;)z(o[n],a(n),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&B.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout(function(){throw e})};var W=x.Deferred();function U(){a.removeEventListener("DOMContentLoaded",U),n.removeEventListener("load",U),x.ready()}x.fn.ready=function(e){return W.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||W.resolveWith(a,[x]))}}),x.ready.then=W.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(x.ready):(a.addEventListener("DOMContentLoaded",U),n.addEventListener("load",U));var Y=function(e,t,n,r,o,i,a){var s=0,l=e.length,c=null==n;if("object"===S(n))for(s in o=!0,n)Y(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,y(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):i},$=/^-ms-/,G=/-([a-z])/g;function q(e,t){return t.toUpperCase()}function K(e){return e.replace($,"ms-").replace(G,q)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Z(){this.expando=x.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,o=this.cache(e);if("string"==typeof t)o[K(t)]=n;else for(r in t)o[K(r)]=t[r];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in r?[t]:t.match(H)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var J=new Z,Q=new Z,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=Q.get(i),1===i.nodeType&&!J.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=K(r.slice(5)),ne(i,r,o[r]));J.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Q.set(this,e)}):Y(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=Q.get(i,e))?n:void 0!==(n=ne(i,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,o=n.shift(),i=x._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,function(){x.dequeue(e,t)},i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:x.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=x.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=J.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=a.documentElement,se=function(e){return x.contains(e.ownerDocument,e)},le={composed:!0};ae.attachShadow&&(se=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===x.css(e,"display")},ue=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};function de(e,t,n,r){var o,i,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=s(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&oe.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)x.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=o)),o}var pe={};function fe(e){var t,n=e.ownerDocument,r=e.nodeName,o=pe[r];return o||(t=n.body.appendChild(n.createElement(r)),o=x.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),pe[r]=o,o)}function he(e,t){for(var n,r,o=[],i=0,a=e.length;i<a;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(o[i]=J.get(r,"display")||null,o[i]||(r.style.display="")),""===r.style.display&&ce(r)&&(o[i]=fe(r))):"none"!==n&&(o[i]="none",J.set(r,"display",n)));for(i=0;i<a;i++)null!=o[i]&&(e[i].style.display=o[i]);return e}x.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ce(this)?x(this).show():x(this).hide()})}});var ge=/^(?:checkbox|radio)$/i,me=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?x.merge([e],n):n}function we(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.optgroup=ye.option,ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td;var _e,Se,xe=/<|&#?\w+;/;function Ce(e,t,n,r,o){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((i=e[f])||0===i)if("object"===S(i))x.merge(p,i.nodeType?[i]:i);else if(xe.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(me.exec(i)||["",""])[1].toLowerCase(),l=ye[s]||ye._default,a.innerHTML=l[1]+x.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;x.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(i));for(d.textContent="",f=0;i=p[f++];)if(r&&x.inArray(i,r)>-1)o&&o.push(i);else if(c=se(i),a=be(d.appendChild(i),"script"),c&&we(a),n)for(u=0;i=a[u++];)ve.test(i.type||"")&&n.push(i);return d}_e=a.createDocumentFragment().appendChild(a.createElement("div")),(Se=a.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),_e.appendChild(Se),v.checkClone=_e.cloneNode(!0).cloneNode(!0).lastChild.checked,_e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!_e.cloneNode(!0).lastChild.defaultValue;var ke=/^key/,Oe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Pe=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Me(){return!1}function De(e,t){return e===function(){try{return a.activeElement}catch(e){}}()==("focus"===t)}function je(e,t,n,r,o,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)je(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),!1===o)o=Me;else if(!o)return e;return 1===i&&(a=o,(o=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,o,r,n)})}function Le(e,t,n){n?(J.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,o,i=J.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=l.call(arguments),J.set(this,t,i),r=n(this,t),this[t](),i!==(o=J.get(this,t))||r?J.set(this,t,!1):o=void 0,i!==o)return e.stopImmediatePropagation(),e.preventDefault(),o}else i&&(J.set(this,t,x.event.trigger(x.extend(i.shift(),x.Event.prototype),i,this)),e.stopImmediatePropagation())}})):x.event.add(e,t,Te)}x.event={global:{},add:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,h,g,m=J.get(e);if(m)for(n.handler&&(n=(i=n).handler,o=i.selector),o&&x.find.matchesSelector(ae,o),n.guid||(n.guid=x.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(H)||[""]).length;c--;)f=g=(s=Pe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:g,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&x.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),x.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,l,c,u,d,p,f,h,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(H)||[""]).length;c--;)if(f=g=(s=Pe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)u=p[i],!o&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(i,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||x.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[c],n,r,!0);x.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,o,i,a,s=x.event.fix(e),l=new Array(arguments.length),c=(J.get(this,"events")||{})[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,c),t=0;(o=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!1!==i.namespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,void 0!==(r=((x.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,o,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[o=(r=t[n]).selector+" "]&&(a[o]=r.needsContext?x(o,this).index(c)>-1:x.find(o,this,null,[c]).length),a[o]&&i.push(r);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&D(t,"input")&&void 0===J.get(t,"click")&&Le(t,"click",Te),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&D(t,"input")&&void 0===J.get(t,"click")&&Le(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&D(t,"input")&&J.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ke.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Oe.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){x.event.special[e]={setup:function(){return Le(this,e,De),!1},trigger:function(){return Le(this,e),!0},delegateType:t}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,o=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,r){return je(this,e,t,n,r)},one:function(e,t,n,r){return je(this,e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each(function(){x.event.remove(this,e,n,t)})}});var Ne=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ee=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ve=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ie(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,o,i,a,s,l,c;if(1===t.nodeType){if(J.hasData(e)&&(i=J.access(e),a=J.set(t,i),c=i.events))for(o in delete a.handle,a.events={},c)for(n=0,r=c[o].length;n<r;n++)x.event.add(t,o,c[o][n]);Q.hasData(e)&&(s=Q.access(e),l=x.extend({},s),Q.set(t,l))}}function ze(e,t,n,r){t=c.apply([],t);var o,i,a,s,l,u,d=0,p=e.length,f=p-1,h=t[0],g=y(h);if(g||p>1&&"string"==typeof h&&!v.checkClone&&Ae.test(h))return e.each(function(o){var i=e.eq(o);g&&(t[0]=h.call(this,o,i.html())),ze(i,t,n,r)});if(p&&(i=(o=Ce(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=i),i||r)){for(s=(a=x.map(be(o,"script"),He)).length;d<p;d++)l=o,d!==f&&(l=x.clone(l,!0,!0),s&&x.merge(a,be(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,Re),d=0;d<s;d++)l=a[d],ve.test(l.type||"")&&!J.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")}):_(l.textContent.replace(Ve,""),l,u))}return e}function Be(e,t,n){for(var r,o=t?x.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||x.cleanData(be(r)),r.parentNode&&(n&&se(r)&&we(be(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e.replace(Ne,"<$1></$2>")},clone:function(e,t,n){var r,o,i,a,s,l,c,u=e.cloneNode(!0),d=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=be(u),r=0,o=(i=be(e)).length;r<o;r++)s=i[r],l=a[r],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&ge.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(i=i||be(e),a=a||be(u),r=0,o=i.length;r<o;r++)Fe(i[r],a[r]);else Fe(e,u);return(a=be(u,"script")).length>0&&we(a,!d&&be(e,"script")),u},cleanData:function(e){for(var t,n,r,o=x.event.special,i=0;void 0!==(n=e[i]);i++)if(X(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)o[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return Y(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ze(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)})},prepend:function(){return ze(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return Y(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!ye[(me.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(be(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,r=[],o=x(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),x(o[a])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var We=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),Ue=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ye=new RegExp(ie.join("|"),"i");function $e(e,t,n){var r,o,i,a,s=e.style;return(n=n||Ue(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||se(e)||(a=x.style(e,t)),!v.pixelBoxStyles()&&We.test(a)&&Ye.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Ge(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),o=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,o,i,s,l,c=a.createElement("div"),u=a.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i}}))}();var qe=["Webkit","Moz","ms"],Ke=a.createElement("div").style,Xe={};function Ze(e){var t=x.cssProps[e]||Xe[e];return t||(e in Ke?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in Ke)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var r=oe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function rt(e,t,n,r,o,i){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(e,n+ie[a],!0,o)),r?("content"===n&&(l-=x.css(e,"padding"+ie[a],!0,o)),"margin"!==n&&(l-=x.css(e,"border"+ie[a]+"Width",!0,o))):(l+=x.css(e,"padding"+ie[a],!0,o),"padding"!==n?l+=x.css(e,"border"+ie[a]+"Width",!0,o):s+=x.css(e,"border"+ie[a]+"Width",!0,o));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function ot(e,t,n){var r=Ue(e),o=(!v.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),i=o,a=$e(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&o||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===x.css(e,"boxSizing",!1,r),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+rt(e,t,n||(o?"border":"content"),i,r,a)+"px"}function it(e,t,n,r,o){return new it.prototype.init(e,t,n,r,o)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=$e(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=K(t),l=Qe.test(t),c=e.style;if(l||(t=Ze(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"===(i=typeof n)&&(o=oe.exec(n))&&o[1]&&(n=de(e,t,o),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=o&&o[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=K(t);return Qe.test(t)||(t=Ze(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=$e(e,t,r)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(i=parseFloat(o),!0===n||isFinite(i)?i||0:o):o}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,r):ue(e,et,function(){return ot(e,t,r)})},set:function(e,n,r){var o,i=Ue(e),a=!v.scrollboxSize()&&"absolute"===i.position,s=(a||r)&&"border-box"===x.css(e,"boxSizing",!1,i),l=r?rt(e,t,r,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-rt(e,t,"border",!1,i)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),nt(0,n,l)}}}),x.cssHooks.marginLeft=Ge(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+ie[r]+t]=i[r]||i[r-2]||i[0];return o}},"margin"!==e&&(x.cssHooks[e+t].set=nt)}),x.fn.extend({css:function(e,t){return Y(this,function(e,t,n){var r,o,i={},a=0;if(Array.isArray(t)){for(r=Ue(e),o=t.length;a<o;a++)i[t[a]]=x.css(e,t[a],!1,r);return i}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ut):n.setTimeout(ut,x.fx.interval),x.fx.tick())}function dt(){return n.setTimeout(function(){at=void 0}),at=Date.now()}function pt(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=ie[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var r,o=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function ht(e,t,n){var r,o,i=0,a=ht.prefilters.length,s=x.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=at||dt(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(r);return s.notifyWith(e,[c,r,n]),r<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=K(n)],i=e[n],Array.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=x.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(u,c.opts.specialEasing);i<a;i++)if(r=ht.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,ft,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(H);for(var n,r=0,o=e.length;r<o;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,o,i,a,s,l,c,u,d="width"in t||"height"in t,p=this,f={},h=e.style,g=e.nodeType&&ce(e),m=J.get(e,"fxshow");for(r in n.queue||(null==(a=x._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()})})),t)if(o=t[r],lt.test(o)){if(delete t[r],i=i||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[r])continue;g=!0}f[r]=m&&m[r]||x.style(e,r)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(f))for(r in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(he([e],!0),c=e.style.display||c,u=x.css(e,"display"),he([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(p.done(function(){h.display=c}),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=J.access(e,"fxshow",{display:c}),i&&(m.hidden=!g),g&&he([e],!0),p.done(function(){for(r in g||he([e]),J.remove(e,"fxshow"),f)x.style(e,r,f[r])})),l=ft(g?m[r]:0,r,p),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=x.isEmptyObject(e),i=x.speed(t,n,r),a=function(){var t=ht(this,x.extend({},e),i);(o||J.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",i=x.timers,a=J.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&ct.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),x.each(["toggle","show","hide"],function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,o)}}),x.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),at=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){st||(st=!0,ut())},x.fx.stop=function(){st=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var o=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(o)}})},function(){var e=a.createElement("input"),t=a.createElement("select").appendChild(a.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=a.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var gt,mt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return Y(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?x.prop(e,t,n):(1===i&&x.isXMLDoc(e)||(o=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,o=t&&t.match(H);if(o&&1===e.nodeType)for(;n=o[r++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=mt[t]||x.find.attr;mt[t]=function(e,t,r){var o,i,a=t.toLowerCase();return r||(i=mt[a],mt[a]=o,o=null!=n(e,t,r)?a:null,mt[a]=i),o}});var vt=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function bt(e){return(e.match(H)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(H)||[]}x.fn.extend({prop:function(e,t){return Y(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,o,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&x.isXMLDoc(e)||(t=x.propFix[t]||t,o=x.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,r,o,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).addClass(e.call(this,t,wt(this)))});if((t=_t(e)).length)for(;n=this[l++];)if(o=wt(n),r=1===n.nodeType&&" "+bt(o)+" "){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");o!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,o,i,a,s,l=0;if(y(e))return this.each(function(t){x(this).removeClass(e.call(this,t,wt(this)))});if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[l++];)if(o=wt(n),r=1===n.nodeType&&" "+bt(o)+" "){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");o!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,wt(this),t),t)}):this.each(function(){var t,o,i,a;if(r)for(o=0,i=x(this),a=_t(e);t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=wt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;x.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=y(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,x(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=x.map(o,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=x.valHooks[o.type]||x.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:bt(x.text(e))}},select:{get:function(e){var t,n,r,o=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:o.length;for(r=i<0?l:a?i:0;r<l;r++)if(((n=o[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,o=e.options,i=x.makeArray(t),a=o.length;a--;)((r=o[a]).selected=x.inArray(x.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var xt=/^(?:focusinfocus|focusoutblur)$/,Ct=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,r,o){var i,s,l,c,u,d,p,f,g=[r||a],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(s=f=l=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!xt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:x.makeArray(t,[e]),p=x.event.special[m]||{},o||!p.trigger||!1!==p.trigger.apply(r,t))){if(!o&&!p.noBubble&&!b(r)){for(c=p.delegateType||m,xt.test(c+m)||(s=s.parentNode);s;s=s.parentNode)g.push(s),l=s;l===(r.ownerDocument||a)&&g.push(l.defaultView||l.parentWindow||n)}for(i=0;(s=g[i++])&&!e.isPropagationStopped();)f=s,e.type=i>1?c:p.bindType||m,(d=(J.get(s,"events")||{})[e.type]&&J.get(s,"handle"))&&d.apply(s,t),(d=u&&s[u])&&d.apply&&X(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(g.pop(),t)||!X(r)||u&&y(r[m])&&!b(r)&&((l=r[u])&&(r[u]=null),x.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,Ct),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,Ct),x.event.triggered=void 0,l&&(r[u]=l)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=J.access(r,t);o||r.addEventListener(e,n,!0),J.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=J.access(r,t)-1;o?J.access(r,t,o):(r.removeEventListener(e,n,!0),J.remove(r,t))}}});var kt=n.location,Ot=Date.now(),Pt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var Tt=/\[\]$/,Mt=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function Lt(e,t,n,r){var o;if(Array.isArray(t))x.each(t,function(t,o){n||Tt.test(e)?r(e,o):Lt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,r)});else if(n||"object"!==S(t))r(e,t);else for(o in t)Lt(e+"["+o+"]",t[o],n,r)}x.param=function(e,t){var n,r=[],o=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){o(this.name,this.value)});else for(n in e)Lt(n,e[n],t,o);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&jt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!ge.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}}):{name:t.name,value:n.replace(Mt,"\r\n")}}).get()}});var Nt=/%20/g,Et=/#.*$/,At=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Ht=/^\/\//,Rt={},Ft={},zt="*/".concat("*"),Bt=a.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(H)||[];if(y(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ut(e,t,n,r){var o={},i=e===Ft;function a(s){var l;return o[s]=!0,x.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!=typeof c||i||o[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)}),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Yt(e,t){var n,r,o=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}Bt.href=kt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,x.ajaxSettings),t):Yt(x.ajaxSettings,e)},ajaxPrefilter:Wt(Rt),ajaxTransport:Wt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,o,i,s,l,c,u,d,p,f,h=x.ajaxSetup({},t),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?x(g):x.event,v=x.Deferred(),y=x.Callbacks("once memory"),b=h.statusCode||{},w={},_={},S="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=Vt.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?i:null},setRequestHeader:function(e,t){return null==u&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return r&&r.abort(t),k(0,t),this}};if(v.promise(C),h.url=((e||h.url||kt.href)+"").replace(Ht,kt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(H)||[""],null==h.crossDomain){c=a.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Ut(Rt,h,t,C),u)return C;for(p in(d=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!It.test(h.type),o=h.url.replace(Et,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Nt,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Pt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(At,"$1"),f=(Pt.test(o)?"&":"?")+"_="+Ot+++f),h.url=o+f),h.ifModified&&(x.lastModified[o]&&C.setRequestHeader("If-Modified-Since",x.lastModified[o]),x.etag[o]&&C.setRequestHeader("If-None-Match",x.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(g,C,h)||u))return C.abort();if(S="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),r=Ut(Ft,h,t,C)){if(C.readyState=1,d&&m.trigger("ajaxSend",[C,h]),u)return C;h.async&&h.timeout>0&&(l=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{u=!1,r.send(w,k)}catch(e){if(u)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,a,s){var c,p,f,w,_,S=t;u||(u=!0,l&&n.clearTimeout(l),r=void 0,i=s||"",C.readyState=e>0?4:0,c=e>=200&&e<300||304===e,a&&(w=function(e,t,n){for(var r,o,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in n)i=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,C,a)),w=function(e,t,n,r){var o,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(o in c)if((s=o.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,w,C,c),c?(h.ifModified&&((_=C.getResponseHeader("Last-Modified"))&&(x.lastModified[o]=_),(_=C.getResponseHeader("etag"))&&(x.etag[o]=_)),204===e||"HEAD"===h.type?S="nocontent":304===e?S="notmodified":(S=w.state,p=w.data,c=!(f=w.error))):(f=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",c?v.resolveWith(g,[p,S,C]):v.rejectWith(g,[C,S,f]),C.statusCode(b),b=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[C,h,c?p:f]),y.fireWith(g,[C,S]),d&&(m.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,n,r,o){return y(n)&&(o=o||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:o,data:n,success:r},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e,t){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Gt=x.ajaxSettings.xhr();v.cors=!!Gt&&"withCredentials"in Gt,v.ajax=Gt=!!Gt,x.ajaxTransport(function(e){var t,r;if(v.cors||Gt&&!e.crossDomain)return{send:function(o,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i($t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}});var qt,Kt=[],Xt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||x.expando+"_"+Ot++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,r){var o,i,a,s=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xt,"$1"+o):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||x.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=n[o],n[o]=function(){a=arguments},r.always(function(){void 0===i?x(n).removeProp(o):n[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(o)),a&&y(i)&&i(a[0]),a=i=void 0}),"script"}),v.createHTMLDocument=((qt=a.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=a.implementation.createHTMLDocument("")).createElement("base")).href=a.location.href,t.head.appendChild(r)):t=a),i=!n&&[],(o=j.exec(e))?[t.createElement(o[1])]:(o=Ce([e],t,i),i&&i.length&&x(i).remove(),x.merge([],o.childNodes)));var r,o,i},x.fn.load=function(e,t,n){var r,o,i,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&x.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,n){var r,o,i,a,s,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(r=u.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(l)||0),y(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):u.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),o.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-x.css(r,"marginTop",!0),left:t.left-o.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ae})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return Y(this,function(e,r,o){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o},e,r,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=Ge(v.pixelPosition,function(e,n){if(n)return n=$e(e,t),We.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),s=n||(!0===o||!0===i?"margin":"border");return Y(this,function(t,n,o){var i;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?x.css(t,n,s):x.style(t,n,o,s)},t,a?o:void 0,a)}})}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.proxy=function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=l.call(arguments,2),(o=function(){return e.apply(t||this,r.concat(l.call(arguments)))}).guid=e.guid=e.guid||x.guid++,o},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=D,x.isFunction=y,x.isWindow=b,x.camelCase=K,x.type=S,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(r=function(){return x}.apply(t,[]))||(e.exports=r);var Zt=n.jQuery,Jt=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=Jt),e&&n.jQuery===x&&(n.jQuery=Zt),x},o||(n.jQuery=n.$=x),x})},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(76),i=n.n(o),a=function(e,t){return e.length===t.length&&e.every(function(e,n){return r=e,o=t[n],r===o;var r,o})};var s=function(e,t){var n;void 0===t&&(t=a);var r,o=[],i=!1;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return i&&n===this&&t(s,o)?r:(r=e.apply(this,s),i=!0,n=this,o=s,r)}},l=n(28),c=n.n(l);n.d(t,"Scrollbars",function(){return je}),n.d(t,"ScrollbarsBase",function(){return ke}),n.d(t,"FocusTimer",function(){return Q}),n.d(t,"API",function(){return W}),n.d(t,"classnames",function(){return C}),n.d(t,"Block",function(){return P}),n.d(t,"BLOCK_SIZE",function(){return R}),n.d(t,"IconView",function(){return te}),n.d(t,"SVGIcons",function(){return re}),n.d(t,"Button",function(){return ie}),n.d(t,"ButtonGroup",function(){return Ge}),n.d(t,"Checkbox",function(){return Ae}),n.d(t,"Radio",function(){return Ze}),n.d(t,"Toggle",function(){return tt}),n.d(t,"DropdownManager",function(){return ze}),n.d(t,"Dropdown",function(){return Be}),n.d(t,"DropdownMenu",function(){return Fe}),n.d(t,"ComboBox",function(){return Ue}),n.d(t,"Toolbar",function(){return nt}),n.d(t,"ToolbarSplitter",function(){return rt}),n.d(t,"Tabs",function(){return ot}),n.d(t,"AppBar",function(){return it}),n.d(t,"MenuSplitter",function(){return at}),n.d(t,"MenuPanel",function(){return lt}),n.d(t,"Menu",function(){return Zt}),n.d(t,"Sidebar",function(){return Qt}),n.d(t,"SidebarPanel",function(){return Jt}),n.d(t,"Label",function(){return en}),n.d(t,"Input",function(){return We}),n.d(t,"TextArea",function(){return tn}),n.d(t,"bodyOpenModalClassName",function(){return Tt}),n.d(t,"ModalBase",function(){return Dt}),n.d(t,"Dialog",function(){return jt}),n.d(t,"MessageBox",function(){return Lt}),n.d(t,"ModalApiProvider",function(){return Nt}),n.d(t,"propertyDescriptor",function(){return nn}),n.d(t,"updateValuePath",function(){return rn}),n.d(t,"evalPath",function(){return on}),n.d(t,"setPath",function(){return an}),n.d(t,"makeUpdate",function(){return sn}),n.d(t,"PHelper",function(){return ln}),n.d(t,"MultipleValuesMarker",function(){return cn}),n.d(t,"combineValues",function(){return dn}),n.d(t,"combineDescriptors",function(){return fn}),n.d(t,"PropertyGrid",function(){return yn}),n.d(t,"PropertyList",function(){return vn}),n.d(t,"withFilter",function(){return wn}),n.d(t,"withFilteringLabel",function(){return _n}),n.d(t,"withLabel",function(){return bn}),n.d(t,"BindingWrapper",function(){return Sn}),n.d(t,"PlainTextEditor",function(){return Cn}),n.d(t,"TextEditor",function(){return kn}),n.d(t,"BoolEditor",function(){return On}),n.d(t,"CollectionEditor",function(){return Tn}),n.d(t,"SideEditor",function(){return Dn}),n.d(t,"NumberEditor",function(){return jn}),n.d(t,"EnumEditor",function(){return Ln}),n.d(t,"ColorDropdown",function(){return zn}),n.d(t,"ExpandEditor",function(){return Mn}),n.d(t,"ContextMenuProvider",function(){return Bn}),n.d(t,"Wizard",function(){return Wn}),n.d(t,"ProgressBar",function(){return Ht}),n.d(t,"Slider",function(){return In}),n.d(t,"Palette",function(){return An}),n.d(t,"ColorPicker",function(){return Rn}),n.d(t,"Badge",function(){return oe}),n.d(t,"NotificationManager",function(){return $t}),n.d(t,"withNotifications",function(){return Gt}),n.d(t,"NotificationDetails",function(){return It}),n.d(t,"StatusBar",function(){return Yn}),n.d(t,"StatusBarWithNotifications",function(){return Gn}),n.d(t,"Heading",function(){return At}),n.d(t,"TreeView",function(){return Zn}),n.d(t,"Checklist",function(){return er}),n.d(t,"DateTime",function(){return gr}),n.d(t,"Loader",function(){return Et}),n.d(t,"Alert",function(){return br}),n.d(t,"Color",function(){return F});
- /*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- var u=function(e,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function d(e,t){function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){return(p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function f(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}var h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.getChildContext=function(){return this.props.context},t.prototype.render=function(e){var t=e.children;return t&&t[0]||null},t}(r.Component),g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._isMounted=!1,t.into=null,t.remote=null,t.intoPointer=null,t}return d(t,e),t.prototype.componentDidUpdate=function(e){for(var t in e)if(e[t]!==this.props[t]){setTimeout(this.renderLayer);break}},t.prototype.componentDidMount=function(){this._isMounted=!0,this.renderLayer=this.renderLayer.bind(this),this.renderLayer()},t.prototype.componentWillUnmount=function(){this.renderLayer(!1),this._isMounted=!1,this.remote&&this.remote.parentNode&&this.remote.parentNode.removeChild(this.remote)},t.prototype.findNode=function(e){return"string"==typeof e?document.querySelector(e):e},t.prototype.renderLayer=function(e){void 0===e&&(e=!0),this._isMounted&&(this.props.into!==this.intoPointer&&(this.intoPointer=this.props.into,this.into&&this.remote&&(this.remote=Object(r.render)(Object(r.h)(h,{}),this.into,this.remote)),this.into=this.findNode(this.props.into)),this.remote=Object(r.render)(Object(r.h)(h,{context:this.context},e&&this.props.children||null),this.into,this.remote))},t.prototype.render=function(){return null},t}(r.Component),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(r.Component),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t}(m),y=function(){function e(){}return e.map=function(t,n,r){return null==t?[]:(r&&r!==t&&(n=n.bind(r)),e.toArray(t).map(n))},e.forEach=function(t,n,r){null!=t&&(r&&r!==t&&(n=n.bind(r)),e.toArray(t).forEach(n))},e.count=function(e){return e&&e.length||0},e.only=function(t){var n=e.toArray(t);if(1!==n.length)throw new Error("Children.only() expects only one child.");return n[0]},e.toArray=function(t){return null==t?[]:Array.isArray(t)?t.filter(function(e){return null!=e}):e.ARR.concat(t)},e.ARR=[],e}();function b(e,t){return Object(r.h)(g,{into:t},e)}var w=function(e){var t=e.clientHeight,n=getComputedStyle(e),r=n.paddingTop,o=n.paddingBottom;return t-parseFloat(r)-parseFloat(o)},_=function(e){var t=e.clientWidth,n=getComputedStyle(e),r=n.paddingLeft,o=n.paddingRight;return t-parseFloat(r)-parseFloat(o)},S=0,x=function(){if(0!==S)return S;if("undefined"!=typeof document){var e=document.createElement("div");O(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(e),S=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}else S=0;return S||0},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=function(t){var r=e[t],o=typeof r;if(!r)return"continue";"string"===o||"number"===o?n.push(""+r):Array.isArray(r)&&r.length?n.push(C(r)):"object"===o&&Object.keys(r).forEach(function(e){return r[e]&&n.push(e)})},o=0;o<e.length;o++)r(o);return n.join(" ")},k=["animationiterationcount","boxflex","boxflexgroup","boxordinalgroup","columncount","fillopacity","flex","flexgrow","flexpositive","flexshrink","flexnegative","flexorder","gridrow","gridcolumn","fontweight","lineclamp","lineheight","opacity","order","orphans","stopopacity","strokedashoffset","strokeopacity","strokewidth","tabsize","widows","zindex","zoom"],O=function(e,t){e&&e.style&&Object.keys(t).forEach(function(n){"string"==typeof t[n]?e.style[n]=t[n]:k.includes(n.toLowerCase())?e.style[n]=""+t[n]:e.style[n]=t[n]+"px"})},P=function(){function e(t){var n=this;this.blockName=t,this.modifier=function(e){return n.name+"--"+e},this.element=function(t){return new e(n.name+"__"+t)}}return Object.defineProperty(e.prototype,"name",{get:function(){return this.blockName},enumerable:!0,configurable:!0}),e}(),T=function(e){return"string"==typeof e},M=function(e){return null===e},D=function(e){return void 0===e},j=function(e){return"object"==typeof e&&!!e},L=function(){},N=function(){return!1},E=function(e){if(e)return e.type||e.nodeName};function A(e){return e.props?e.props:e.attributes||{}}var V=function(e,t,n){var r,o=e.slice();return r=[o[n],o[t]],o[t]=r[0],o[n]=r[1],o},I={set:function(e,t){e._componentType_=t},get:function(e){return"function"==typeof e?e._componentType_:void 0},is:function(e,t){var n=this.get(e),r=this.get(t);return!D(n)&&!D(r)&&n===r}},H={ARROW_UP:38,ARROW_DOWN:40,TAB:9,ESC:27,ENTER:13},R={SMALL:30,DEFAULT:40,LARGE:50},F=function(){function e(e,t,n,r){this.R=0,this.G=0,this.B=0,this.A=255,this.R=e>=0&&e<256?e:0,this.G=t>=0&&t<256?t:0,this.B=n>=0&&n<256?n:0,this.A=void 0!==r&&r>=0&&r<256?r:255}return Object.defineProperty(e.prototype,"rgb",{get:function(){return"rgb("+this.R+", "+this.G+", "+this.B+")"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rgba",{get:function(){return"rgba("+this.R+", "+this.G+", "+this.B+", "+this.A/255+")"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hex",{get:function(){return"#"+(16777216+65536*this.R+256*this.G+this.B).toString(16).slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hex8",{get:function(){return""+this.hex+(256+this.A).toString(16).slice(1)},enumerable:!0,configurable:!0}),e.webColorsMap={Transparent:"#00000000",Black:"#000000",DarkSlateGray:"#2f4f4f",SlateGray:"#708090",LightSlateGray:"#778899",DimGray:"#696969",Gray:"#808080",DarkGray:"#a9a9a9",Silver:"#c0c0c0",LightGrey:"#d3d3d3",Gainsboro:"#dcdcdc",WhiteSmoke:"#f5f5f5",White:"#ffffff",Snow:"#fffafa",HoneyDew:"#f0fff0",MintCream:"#f5fffa",Azure:"#f0ffff",AliceBlue:"#f0f8ff",GhostWhite:"#f8f8ff",SeaShell:"#fff5ee",Beige:"#f5f5dc",OldLace:"#fdf5e6",FloralWhite:"#fffaf0",Ivory:"#fffff0",AntiqueWhite:"#faebd7",Linen:"#faf0e6",LavenderBlush:"#fff0f5",MistyRose:"#ffe4e1",Pink:"#ffc0cb",LightPink:"#ffb6c1",HotPink:"#ff69b4",DeepPink:"#ff1493",PaleVioletRed:"#db7093",MediumVioletRed:"#c71585",LightSalmon:"#ffa07a",Salmon:"#fa8072",DarkSalmon:"#e9967a",LightCoral:"#f08080",IndianRed:"#cd5c5c",Crimson:"#dc143c",FireBrick:"#b22222",DarkRed:"#8b0000",Red:"#ff0000",OrangeRed:"#ff4500",Tomato:"#ff6347",Coral:"#ff7f50",DarkOrange:"#ff8c00",Orange:"#ffa500",Yellow:"#ffff00",LightYellow:"#ffffe0",LemonChiffon:"#fffacd",LightGoldenrodYellow:"#fafad2",PapayaWhip:"#ffefd5",Moccasin:"#ffe4b5",PeachPuff:"#ffdab9",PaleGoldenrod:"#eee8aa",Khaki:"#f0e68c",DarkKhaki:"#bdb76b",Gold:"#ffd700",Cornsilk:"#fff8dc",BlanchedAlmond:"#ffebcd",Bisque:"#ffe4c4",NavajoWhite:"#ffdead",Wheat:"#f5deb3",BurlyWood:"#deb887",Tan:"#d2b48c",RosyBrown:"#bc8f8f",SandyBrown:"#f4a460",Goldenrod:"#daa520",DarkGoldenrod:"#b8860b",Peru:"#cd853f",Chocolate:"#d2691e",SaddleBrown:"#8b4513",Sienna:"#a0522d",Brown:"#a52a2a",Maroon:"#800000",DarkOliveGreen:"#556b2f",Olive:"#808000",OliveDrab:"#6b8e23",YellowGreen:"#9acd32",LimeGreen:"#32cd32",Lime:"#00ff00",LawnGreen:"#7cfc00",Chartreuse:"#7fff00",GreenYellow:"#adff2f",SpringGreen:"#00ff7f",MediumSpringGreen:"#00fa9a",LightGreen:"#90ee90",PaleGreen:"#98fb98",DarkSeaGreen:"#8fbc8f",MediumAquamarine:"#66cdaa",MediumSeaGreen:"#3cb371",SeaGreen:"#2e8b57",ForestGreen:"#228b22",Green:"#008000",DarkGreen:"#006400",Aqua:"#00ffff",Cyan:"#00ffff",LightCyan:"#e0ffff",PaleTurquoise:"#afeeee",Aquamarine:"#7fffd4",Turquoise:"#40e0d0",MediumTurquoise:"#48d1cc",DarkTurquoise:"#00ced1",LightSeaGreen:"#20b2aa",CadetBlue:"#5f9ea0",DarkCyan:"#008b8b",Teal:"#008080",LightSteelBlue:"#b0c4de",PowderBlue:"#b0e0e6",LightBlue:"#add8e6",SkyBlue:"#87ceeb",LightSkyBlue:"#87cefa",DeepSkyBlue:"#00bfff",DodgerBlue:"#1e90ff",CornflowerBlue:"#6495ed",SteelBlue:"#4682b4",RoyalBlue:"#4169e1",Blue:"#0000ff",MediumBlue:"#0000cd",DarkBlue:"#00008b",Navy:"#000080",MidnightBlue:"#191970",Lavender:"#e6e6fa",Thistle:"#d8bfd8",Plum:"#dda0dd",Violet:"#ee82ee",Orchid:"#da70d6",Fuchsia:"#ff00ff",Magenta:"#ff00ff",MediumOrchid:"#ba55d3",MediumPurple:"#9370db",BlueViolet:"#8a2be2",DarkViolet:"#9400d3",DarkOrchid:"#9932cc",DarkMagenta:"#8b008b",Purple:"#800080",Indigo:"#4b0082",DarkSlateBlue:"#483d8b",RebeccaPurple:"#663399",SlateBlue:"#6a5acd",MediumSlateBlue:"#7b68ee"},e.fromWeb=function(t){return e.webColorsMap[t]&&e.fromHEX(e.webColorsMap[t])||new e(0,0,0,255)},e.fromRGB=function(t,n,r,o){return new e(t,n,r,o)},e.fromHEX=function(t){if(!t||!/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(t))return new e(0,0,0,255);var n=t.substring(1).split("");3!==n.length&&4!==n.length||(n=n.reduce(function(e,t){return e.concat([t,t])},[]));var r=parseInt("0x"+n.join("")),o=[];return 8===n.length&&o.push(r>>24&255),o.push(r>>16&255),o.push(r>>8&255),o.push(255&r),new e(o[0],o[1],o[2],void 0!==o[3]?o[3]:255)},e.fromString=function(t){return t?/^#([A-Fa-f0-9]{3,4}){1,2}$/.test(t)?e.fromHEX(t):e.fromWeb(t):new e(0,0,0,255)},e.fromHSL=function(t){var n,r,o,i=t.H,a=t.S,s=t.L;if(0==a)n=r=o=s;else{var l=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},c=s<.5?s*(1+a):s+a-s*a,u=2*s-c;n=l(u,c,i+1/3),r=l(u,c,i),o=l(u,c,i-1/3)}return new e(Math.round(255*n),Math.round(255*r),Math.round(255*o))},e.toWeb=function(t){if(!t)return null;if(0===t.A)return"Transparent";var n=t.hex.toLowerCase();return Object.keys(e.webColorsMap).find(function(t){return e.webColorsMap[t]===n})||null},e.toHSL=function(e){var t,n=e.R/255,r=e.G/255,o=e.B/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=0,l=(i+a)/2;if(i==a)s=t=0;else{var c=i-a;switch(t=l>.5?c/(2-i-a):c/(i+a),i){case n:s=(r-o)/c+(r<o?6:0);break;case r:s=(o-n)/c+2;break;case o:s=(n-r)/c+4}s/=6}return{H:s,S:t,L:l}},e.shade=function(t,n){if(!t)return new e(0,0,0,255);var r=n<0?0:255,o=function(e){return Math.round((r-e)*Math.abs(n))+e},i=t.R,a=t.G,s=t.B,l=t.A;return new e(o(i),o(a),o(s),l)},e.shades=function(t){return t?[t,e.shade(t,-.5),e.shade(t,-.25),e.shade(t,.25),e.shade(t,.5),e.shade(t,.72)]:[]},e}(),z=function(){window.gcui={}},B={get current(){var e=W.namespace;return window.gcui||z(),e&&!window.gcui[e]&&(window.gcui[e]={}),e?window.gcui[e]:window.gcui},get global(){return window.gcui||z(),window.gcui}},W=new(function(){function e(){var e=this;this.setNamespace=function(t){e._namespace?console.warn('Ignored attempt to set GCUI namespace to "'+t+'". Current namespace is "'+e._namespace+'"'):e._namespace=t}}return Object.defineProperty(e.prototype,"current",{get:function(){return this._namespace?window.gcui[this._namespace]:window.gcui},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"global",{get:function(){return window.gcui},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespace",{get:function(){return this._namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"menu",{get:function(){return this.current.menu||J.menu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropdowns",{get:function(){return this.current.dropdowns||J.dropdowns},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"modals",{get:function(){return this.current.modals||J.modals},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sidebar",{get:function(){return this.current.sidebar||J.sidebar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contextMenu",{get:function(){return this.current.contextMenu||J.contextMenu},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusTimer",{get:function(){return this.global.focusTimer||J.focusTimer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"notifications",{get:function(){return this.global.notifications||J.notifications},enumerable:!0,configurable:!0}),e}()),U=function(e,t){return function(){return console.warn(new Error(e+" API is not available. Make sure you have a mounted "+t+" component")),null}},Y=U("Menu","Menu"),$=U("Dropdowns","Dropdown/ComboBox"),G=U("Modals","ModalApiProvider"),q=U("Sidebar","Sidebar"),K=U("Context Menu","ContextMenuProvider"),X=U("Focus Timer","FocusTimer"),Z=U("Notifications","NotificationManager"),J={menu:{expand:Y,collapse:Y,toggle:Y,panels:{open:Y,close:Y,pin:Y,unpin:Y},onTransition:Y},dropdowns:{open:$,cleanup:$,get menuRootSelector(){return $()},get current(){return $()}},modals:{dialog:G,message:G},sidebar:{open:q,close:q,onTransition:q},contextMenu:{open:K,close:K},focusTimer:{advance:X},notifications:{send:Z,dismiss:Z,dismissAll:Z,updateTask:Z,subscribe:Z,unsubscribe:Z,getState:Z}},Q=function(){return function(e,t,n){var r=this;this.onKeyUp=function(e){return e.which===H.TAB&&r.advance()},this.advance=function(){r._container&&(clearTimeout(r._timerId),r._container.classList.remove(r._className),r._timerId=window.setTimeout(function(){r._container.classList.add(r._className)},r._waitingTime))},this.cleanup=function(){r._container&&(window.removeEventListener("keyup",r.onKeyUp),r._container.classList.remove(r._className))},B.global.focusTimer?console.warn("FocusTimer already initialized"):(B.global.focusTimer=this,this._waitingTime=e||3e3,this._className=t||"no-focus-effect",this._container=n||document.body,window.addEventListener("keyup",this.onKeyUp),this._container.classList.add(this._className))}}(),ee=[{pattern:/\[br\]/,template:"<br>"},{pattern:/\[b\](.+?)\[\/b\]/,template:"<b>$1</b>"},{pattern:/\[i\](.+?)\[\/i\]/,template:"<i>$1</i>"},{pattern:/\[u\](.+?)\[\/u\]/,template:"<u>$1</u>"},{pattern:/\[email\](.+?)\[\/email\]/,template:'<a href="mailto:$1" class="gc-link">$1</a>'},{pattern:/\[email=(.+?)\](.+?)\[\/email\]/,template:'<a href="mailto:$1" class="gc-link">$2</a>'},{pattern:/\[url\](.+?)\[\/url\]/,template:'<a href="$1" class="gc-link" target="_blank">$1</a>'},{pattern:/\[url=(.+?)\](.+?)\[\/url\]/,template:'<a href="$1" class="gc-link" target="_blank">$2</a>'}],te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.icon,n=e.customCSS;if("font"===t.type){var o=t.iconCssClass,i=t.fontSize,a=C(o,n),s=i&&{fontSize:i}||void 0;return Object(r.h)("i",{className:a,style:s})}var l=t.content,c=t.size,u=t.rotate,d=C("gc-icon",n,{"gc-icon--small":"small"===c},{"gc-icon--large":"large"===c},{"gc-icon--r90":"90"===u},{"gc-icon--r180":"180"===u},{"gc-icon--r270":"270"===u});return Object(r.h)("i",{className:d},l)},t}(m),ne="gc-icon-color--text",re={cancel:Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M12 2a10 10 0 0 1 10 10 10 10 0 0 1-10 10A10 10 0 0 1 2 12 10 10 0 0 1 12 2m0 2a8 8 0 0 0-8 8c0 1.85.63 3.55 1.68 4.91L16.91 5.68C15.55 4.63 13.85 4 12 4m0 16a8 8 0 0 0 8-8c0-1.85-.63-3.55-1.68-4.91L7.09 18.32C8.45 19.37 10.15 20 12 20z"})),check:Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M21 7L9 19l-5.5-5.5 1.41-1.41L9 16.17 19.59 5.59 21 7z"})),"check-circle":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})),"close-circle":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})),alert:Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M13 14h-2v-4h2m0 8h-2v-2h2M1 21h22L12 2 1 21z"})),"alert-circle":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2z"})),"alert-outline":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M12 2L1 21h22M12 6l8 13H4m7-9v4h2v-4m-2 6v2h2v-2"})),"alert-circle-outline":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M11 15h2v2h-2v-2m0-8h2v6h-2V7m1-5C6.47 2 2 6.5 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8 8 8 0 0 1 8-8 8 8 0 0 1 8 8 8 8 0 0 1-8 8z"})),"card-text-outline":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2M4 6v12h16V6H4m2 3h12v2H6V9m0 4h10v2H6v-2z"})),"sidebar-toggle":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M19 21H5c-1.097 0-2-.903-2-2V5c0-1.097.903-2 2-2h14c1.097 0 2 .903 2 2v14c0 1.097-.903 2-2 2zM13 5H5v14h8V5zm6 0h-4v14h4V5zm-8 3l-4 4 4 4V8z"})),magnify:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27C12.59 15.41 11.11 16 9.5 16A6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5z"})),"dots-vertical":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M12 16a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2z"})),close:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})),menu:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2z"})),plus:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),minus:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M19 13H5v-2h14v2z"})),"chevron-up":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6 1.41 1.41z"})),"chevron-left":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M15.41 16.58L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.42z"})),drag:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M7 19v-2h2v2H7m4 0v-2h2v2h-2m4 0v-2h2v2h-2m-8-4v-2h2v2H7m4 0v-2h2v2h-2m4 0v-2h2v2h-2m-8-4V9h2v2H7m4 0V9h2v2h-2m4 0V9h2v2h-2M7 7V5h2v2H7m4 0V5h2v2h-2m4 0V5h2v2h-2z"})),"trash-can-outline":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M9 3v1H4v2h1v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"})),"arrow-left":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11h12z"})),"arrow-expand-all":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M9.5 13.09l1.41 1.41-4.5 4.5H10v2H3v-7h2v3.59l4.5-4.5m1.41-3.59L9.5 10.91 5 6.41V10H3V3h7v2H6.41l4.5 4.5m3.59 3.59l4.5 4.5V14h2v7h-7v-2h3.59l-4.5-4.5 1.41-1.41M13.09 9.5l4.5-4.5H14V3h7v7h-2V6.41l-4.5 4.5-1.41-1.41z"})),"arrow-collapse-all":Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M19.5 3.09l1.41 1.41-4.5 4.5H20v2h-7V4h2v3.59l4.5-4.5m1.41 16.41l-1.41 1.41-4.5-4.5V20h-2v-7h7v2h-3.59l4.5 4.5M4.5 3.09L9 7.59V4h2v7H4V9h3.59l-4.5-4.5L4.5 3.09M3.09 19.5l4.5-4.5H4v-2h7v7H9v-3.59l-4.5 4.5-1.41-1.41z"})),"toggle-info":Object(r.h)("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M7.5 1C11.087 1 14 3.913 14 7.5S11.087 14 7.5 14 1 11.087 1 7.5 3.913 1 7.5 1zM8 9.5c0-.133-.053-.26-.146-.354C7.76 9.053 7.633 9 7.5 9c-.133 0-.26.053-.354.146C7.053 9.24 7 9.367 7 9.5v1c0 .133.053.26.146.354.094.093.221.146.354.146.133 0 .26-.053.354-.146.093-.094.146-.221.146-.354v-1zm0-5c0-.133-.053-.26-.146-.354C7.76 4.053 7.633 4 7.5 4c-.133 0-.26.053-.354.146C7.053 4.24 7 4.367 7 4.5v3c0 .133.053.26.146.354.094.093.221.146.354.146.133 0 .26-.053.354-.146C7.947 7.76 8 7.633 8 7.5v-3z"})),information:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M11 9h2V7h-2m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m-1 15h2v-6h-2v6z"})),pin:Object(r.h)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Object(r.h)("path",{className:ne,d:"M12 16h8v1h2V7h-2v1h-8l-2-2H8v5.2H2v1.6h6V18h2l2-2m-2-7.2l1.2 1.2H20v4h-8.8L10 15.2V8.8z"})),test:Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M1 10v2a9 9 0 0 1 9 9h2c0-6.08-4.93-11-11-11m0 4v2a5 5 0 0 1 5 5h2a7 7 0 0 0-7-7m0 4v3h3a3 3 0 0 0-3-3M21 3H3c-1.11 0-2 .89-2 2v3h2V5h18v14h-7v2h7a2 2 0 0 0 2-2V5c0-1.11-.9-2-2-2z"})),"bell-outline":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M16,17H7V10.5C7,8 9,6 11.5,6C14,6 16,8 16,10.5M18,16V10.5C18,7.43 15.86,4.86 13,4.18V3.5A1.5,1.5 0 0,0 11.5,2A1.5,1.5 0 0,0 10,3.5V4.18C7.13,4.86 5,7.43 5,10.5V16L3,18V19H20V18M11.5,22A2,2 0 0,0 13.5,20H9.5A2,2 0 0,0 11.5,22Z"})),"calendar-today":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M7 10h5v5H7m12 4H5V8h14m0-5h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"})),"calendar-remove":Object(r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(r.h)("path",{className:ne,d:"M19 19H5V8h14m0-5h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17z"}))},oe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._badgeBlock=new P("gc-badge"),t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s,l,c,u,d,p=this._badgeBlock,f=this.props,h=f.content,g=f.component,m=f.position,v=f.inset,y=f.level,b=f.title,w=f.rounded,_=f.size,S=f.customCSS,x=f.id,k=f.dataAid,O=f.inverted,P=C(p.name,S,((e={})[p.modifier(""+m)]=m,e),((t={})[p.modifier("bottom-right")]=!m,t),((n={})[p.modifier("level-error")]="error"===y,n),((o={})[p.modifier("level-warning")]="warning"===y,o),((i={})[p.modifier("size-sm")]="small"===_,i),((a={})[p.modifier("size-lg")]="large"===_,a),((s={})[p.modifier("custom")]=g,s),((l={})[p.modifier("rounded")]=w,l),((c={})[p.modifier("inset")]=v,c),((u={})[p.modifier("inverted")]=O,u),((d={})[p.modifier("dot")]=!h&&!g,d));return Object(r.h)("div",{className:P,title:b,id:x,"data-aid":k},g||h)},t}(m),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t=this.props,n=t.id,o=t.block,i=t.accent,a=t.background,s=t.rounded,l=t.onClick,c=t.size,u=t.width,d=t.icon,f=t.text,h=t.textAlign,g=t.title,m=t.type,v=t.loading,b=t.disabled,w=t.children,_=t.customCSS,S=t.noFocus,x=t.name,k=t.layout,O=t.level,P=t.tabIndex,T=t.onMouseDown,M=t.dataAid,D=t.badge,j=t.onDoubleClick,L=y.toArray(w).length>0,N=C("gc-btn",_,{"gc-btn--block":o},{"gc-btn--text-align-center":"center"===h},{"gc-btn--text-align-right":"right"===h},{"gc-btn--with-icon":(d||v)&&!L},{"gc-btn--with-badge":D&&"inline"===D.position&&!L},{"gc-btn--accent":"full"===i},{"gc-btn--transparent":"transparent"===a},{"gc-btn--custom":L},{"gc-btn--no-focus":S},{"gc-btn--level-warning":"warning"===O},{"gc-btn--level-error":"error"===O},{"gc-btn--vertical":"vertical"===k},{"gc-rounded":s},{"gc-size-sm":"small"===c},{"gc-size-lg":"large"===c}),E=u&&{width:u}||void 0,A=C("gc-btn__icon",{"gc-accent-color":"icon"===i||"text+icon"===i}),V=C("gc-btn__text",{"gc-btn__text--empty":!f},{"gc-accent-color":"text"===i||"text+icon"===i}),I={id:n,tabIndex:P,disabled:b,className:N,style:E,name:x,title:g||f,type:m||"button",onClick:l,onMouseDown:T,onDoubleClick:j};D&&(e=p({},D,{level:D.level||O,rounded:D.rounded||s,inset:D.inset||D.nearIcon,customCSS:C({"gc-btn__icon-badge":D.nearIcon},D.customCSS)}),"full"!==i||e.level!==O&&(O||"info"!==e.level)||(e.inverted=!0));var H=v&&{type:"font",iconCssClass:"gc-loader-button"}||d;return Object(r.h)("button",p({},I,{"data-aid":M}),!L&&H&&Object(r.h)(te,{icon:H,customCSS:A}),!L&&Object(r.h)("span",{className:V},f),w,D&&Object(r.h)(oe,p({},e)))},t}(m),ae={position:"relative",overflow:"hidden",width:"100%",height:"100%"},se={height:"auto"},le={position:"absolute",top:0,left:0,right:0,bottom:0,WebkitOverflowScrolling:"touch"},ce={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},ue={overflow:"hidden",marginRight:0,marginBottom:0},de={position:"absolute"},pe={position:"absolute"},fe={position:"relative",display:"block",height:"100%"},he={position:"relative",display:"block",width:"100%"},ge={userSelect:"none"},me={userSelect:""},ve=3,ye=2,be="rgba(0, 0, 0, .2)";function we(e){return Object(r.h)("div",p({},e))}function _e(e){var t=e.style,n=f(e,["style"]),o=p({},t,{right:ye,bottom:ye,left:ye,borderRadius:ve});return Object(r.h)("div",p({style:o},n))}function Se(e){var t=e.style,n=f(e,["style"]),o=p({},t,{right:ye,bottom:ye,top:ye,borderRadius:ve});return Object(r.h)("div",p({style:o},n))}function xe(e){var t=e.style,n=f(e,["style"]),o=p({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:be});return Object(r.h)("div",p({style:o},n))}function Ce(e){var t=e.style,n=f(e,["style"]),o=p({},t,{cursor:"pointer",borderRadius:"inherit",backgroundColor:be});return Object(r.h)("div",p({style:o},n))}var ke=function(e){function t(t){var n=e.call(this,t)||this;return n.state={didMountUniversal:!1},n.getScrollLeft=n.getScrollLeft.bind(n),n.getScrollTop=n.getScrollTop.bind(n),n.getScrollWidth=n.getScrollWidth.bind(n),n.getScrollHeight=n.getScrollHeight.bind(n),n.getClientWidth=n.getClientWidth.bind(n),n.getClientHeight=n.getClientHeight.bind(n),n.getValues=n.getValues.bind(n),n.getThumbHorizontalWidth=n.getThumbHorizontalWidth.bind(n),n.getThumbVerticalHeight=n.getThumbVerticalHeight.bind(n),n.getScrollLeftForOffset=n.getScrollLeftForOffset.bind(n),n.getScrollTopForOffset=n.getScrollTopForOffset.bind(n),n.scrollLeft=n.scrollLeft.bind(n),n.scrollTop=n.scrollTop.bind(n),n.scrollToLeft=n.scrollToLeft.bind(n),n.scrollToTop=n.scrollToTop.bind(n),n.scrollToRight=n.scrollToRight.bind(n),n.scrollToBottom=n.scrollToBottom.bind(n),n.handleTrackMouseEnter=n.handleTrackMouseEnter.bind(n),n.handleTrackMouseLeave=n.handleTrackMouseLeave.bind(n),n.handleHorizontalTrackMouseDown=n.handleHorizontalTrackMouseDown.bind(n),n.handleVerticalTrackMouseDown=n.handleVerticalTrackMouseDown.bind(n),n.handleHorizontalThumbMouseDown=n.handleHorizontalThumbMouseDown.bind(n),n.handleVerticalThumbMouseDown=n.handleVerticalThumbMouseDown.bind(n),n.handleWindowResize=n.handleWindowResize.bind(n),n.handleScroll=n.handleScroll.bind(n),n.handleDrag=n.handleDrag.bind(n),n.handleDragEnd=n.handleDragEnd.bind(n),n}return d(t,e),t.prototype.componentDidMount=function(){this.addListeners(),this.update(),this.componentDidMountUniversal()},t.prototype.componentDidMountUniversal=function(){this.props.universal&&this.setState({didMountUniversal:!0})},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.componentWillUnmount=function(){this.removeListeners(),Object(o.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)},t.prototype.getScrollLeft=function(){return this.view?this.view.scrollLeft:0},t.prototype.getScrollTop=function(){return this.view?this.view.scrollTop:0},t.prototype.getScrollWidth=function(){return this.view?this.view.scrollWidth:0},t.prototype.getScrollHeight=function(){return this.view?this.view.scrollHeight:0},t.prototype.getClientWidth=function(){return this.view?this.view.clientWidth:0},t.prototype.getClientHeight=function(){return this.view?this.view.clientHeight:0},t.prototype.getValues=function(){var e=this.view||{},t=e.scrollLeft,n=void 0===t?0:t,r=e.scrollTop,o=void 0===r?0:r,i=e.scrollWidth,a=void 0===i?0:i,s=e.scrollHeight,l=void 0===s?0:s,c=e.clientWidth,u=void 0===c?0:c,d=e.clientHeight,p=void 0===d?0:d;return{left:n/(a-u)||0,top:o/(l-p)||0,scrollLeft:n,scrollTop:o,scrollWidth:a,scrollHeight:l,clientWidth:u,clientHeight:p}},t.prototype.getThumbHorizontalWidth=function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollWidth,i=r.clientWidth,a=_(this.trackHorizontal),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)},t.prototype.getThumbVerticalHeight=function(){var e=this.props,t=e.thumbSize,n=e.thumbMinSize,r=this.view,o=r.scrollHeight,i=r.clientHeight,a=w(this.trackVertical),s=Math.ceil(i/o*a);return a===s?0:t||Math.max(s,n)},t.prototype.getScrollLeftForOffset=function(e){var t=this.view,n=t.scrollWidth,r=t.clientWidth;return e/(_(this.trackHorizontal)-this.getThumbHorizontalWidth())*(n-r)},t.prototype.getScrollTopForOffset=function(e){var t=this.view,n=t.scrollHeight,r=t.clientHeight;return e/(w(this.trackVertical)-this.getThumbVerticalHeight())*(n-r)},t.prototype.scrollLeft=function(e){void 0===e&&(e=0),this.view&&(this.view.scrollLeft=e)},t.prototype.scrollTop=function(e){void 0===e&&(e=0),this.view&&(this.view.scrollTop=e)},t.prototype.scrollToLeft=function(){this.view&&(this.view.scrollLeft=0)},t.prototype.scrollToTop=function(){this.view&&(this.view.scrollTop=0)},t.prototype.scrollToRight=function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)},t.prototype.scrollToBottom=function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)},t.prototype.addListeners=function(){if("undefined"!=typeof document&&this.view){var e=this,t=e.view,n=e.trackHorizontal,r=e.trackVertical,o=e.thumbHorizontal,i=e.thumbVertical;t.addEventListener("scroll",this.handleScroll),x()&&(n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.addEventListener("mouseenter",this.handleTrackMouseEnter),r.addEventListener("mouseleave",this.handleTrackMouseLeave),r.addEventListener("mousedown",this.handleVerticalTrackMouseDown),o.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}},t.prototype.removeListeners=function(){if("undefined"!=typeof document&&this.view){var e=this,t=e.view,n=e.trackHorizontal,r=e.trackVertical,o=e.thumbHorizontal,i=e.thumbVertical;t.removeEventListener("scroll",this.handleScroll),x()&&(n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.removeEventListener("mouseenter",this.handleTrackMouseEnter),r.removeEventListener("mouseleave",this.handleTrackMouseLeave),r.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),o.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}},t.prototype.handleScroll=function(e){var t=this,n=this.props,r=n.onScroll,o=n.onScrollFrame;r&&r(e),this.update(function(e){var n=e.scrollLeft,r=e.scrollTop;t.viewScrollLeft=n,t.viewScrollTop=r,o&&o(e)}),this.detectScrolling()},t.prototype.handleScrollStart=function(){var e=this.props.onScrollStart;e&&e(),this.handleScrollStartAutoHide()},t.prototype.handleScrollStartAutoHide=function(){this.props.autoHide&&this.showTracks()},t.prototype.handleScrollStop=function(){var e=this.props.onScrollStop;e&&e(),this.handleScrollStopAutoHide()},t.prototype.handleScrollStopAutoHide=function(){this.props.autoHide&&this.hideTracks()},t.prototype.handleWindowResize=function(){this.update()},t.prototype.handleHorizontalTrackMouseDown=function(e){e.preventDefault();var t=e.target,n=e.clientX,r=t.getBoundingClientRect().left,o=this.getThumbHorizontalWidth(),i=Math.abs(r-n)-o/2;this.view.scrollLeft=this.getScrollLeftForOffset(i)},t.prototype.handleVerticalTrackMouseDown=function(e){e.preventDefault();var t=e.target,n=e.clientY,r=t.getBoundingClientRect().top,o=this.getThumbVerticalHeight(),i=Math.abs(r-n)-o/2;this.view.scrollTop=this.getScrollTopForOffset(i)},t.prototype.handleHorizontalThumbMouseDown=function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientX,r=t.offsetWidth,o=t.getBoundingClientRect().left;this.prevPageX=r-(n-o)},t.prototype.handleVerticalThumbMouseDown=function(e){e.preventDefault(),this.handleDragStart(e);var t=e.target,n=e.clientY,r=t.offsetHeight,o=t.getBoundingClientRect().top;this.prevPageY=r-(n-o)},t.prototype.setupDragging=function(){O(document.body,ge),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=N},t.prototype.teardownDragging=function(){O(document.body,me),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0},t.prototype.handleDragStart=function(e){this.dragging=!0,this.draggedThumb=e.target,this.draggedThumb.classList.add("is-dragged"),e.stopImmediatePropagation(),this.setupDragging()},t.prototype.handleDrag=function(e){if(this.prevPageX){var t=e.clientX,n=-this.trackHorizontal.getBoundingClientRect().left+t-(this.getThumbHorizontalWidth()-this.prevPageX);this.view.scrollLeft=this.getScrollLeftForOffset(n)}if(this.prevPageY){var r=e.clientY;n=-this.trackVertical.getBoundingClientRect().top+r-(this.getThumbVerticalHeight()-this.prevPageY);this.view.scrollTop=this.getScrollTopForOffset(n)}return!1},t.prototype.handleDragEnd=function(){this.dragging=!1,this.draggedThumb.classList.remove("is-dragged"),this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()},t.prototype.handleDragEndAutoHide=function(){this.props.autoHide&&this.hideTracks()},t.prototype.handleTrackMouseEnter=function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()},t.prototype.handleTrackMouseEnterAutoHide=function(){this.props.autoHide&&this.showTracks()},t.prototype.handleTrackMouseLeave=function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()},t.prototype.handleTrackMouseLeaveAutoHide=function(){this.props.autoHide&&this.hideTracks()},t.prototype.showTracks=function(){clearTimeout(this.hideTracksTimeout),O(this.trackHorizontal,{opacity:1}),O(this.trackVertical,{opacity:1})},t.prototype.hideTracks=function(){var e=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var t=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){O(e.trackHorizontal,{opacity:0}),O(e.trackVertical,{opacity:0})},t)}},t.prototype.detectScrolling=function(){var e=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){e.lastViewScrollLeft===e.viewScrollLeft&&e.lastViewScrollTop===e.viewScrollTop&&(clearInterval(e.detectScrollingInterval),e.scrolling=!1,e.handleScrollStop()),e.lastViewScrollLeft=e.viewScrollLeft,e.lastViewScrollTop=e.viewScrollTop},100))},t.prototype.raf=function(e){var t=this;this.requestFrame&&i.a.cancel(this.requestFrame),this.requestFrame=i()(function(){t.requestFrame=void 0,e()})},t.prototype.update=function(e){var t=this;this.raf(function(){return t._update(e)})},t.prototype._update=function(e){var t=this.props,n=t.onUpdate,r=t.hideTracksWhenNotNeeded,o=this.getValues();if(x()){var i=o.scrollLeft,a=o.clientWidth,s=o.scrollWidth,l=_(this.trackHorizontal),c=this.getThumbHorizontalWidth(),u={width:c,transform:"translateX("+i/(s-a)*(l-c)+"px)"},d=o.scrollTop,p=o.clientHeight,f=o.scrollHeight,h=w(this.trackVertical),g=this.getThumbVerticalHeight(),m={height:g,transform:"translateY("+d/(f-p)*(h-g)+"px)"};if(r){var v={visibility:s>a?"visible":"hidden"},y={visibility:f>p?"visible":"hidden"};O(this.trackHorizontal,v),O(this.trackVertical,y)}O(this.thumbHorizontal,u),O(this.thumbVertical,m)}n&&n(o),"function"==typeof e&&e(o)},t.prototype.render=function(){var e=this,t=x(),n=this.props,o=(n.onScroll,n.onScrollFrame,n.onScrollStart,n.onScrollStop,n.onUpdate,n.renderView),i=n.renderTrackHorizontal,a=n.renderTrackVertical,s=n.renderThumbHorizontal,l=n.renderThumbVertical,c=n.tagName,u=(n.hideTracksWhenNotNeeded,n.autoHide),d=(n.autoHideTimeout,n.autoHideDuration),h=(n.thumbSize,n.thumbMinSize,n.universal),g=n.autoHeight,m=n.autoHeightMin,v=n.autoHeightMax,y=n.style,b=n.containerClassName,w=n.children,_=f(n,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","containerClassName","children"]),S=this.state.didMountUniversal,C=p({},ae,g&&p({},se,{minHeight:m,maxHeight:v}),y),k=p({},le,{marginRight:t?-t:0,marginBottom:t?-t:0},g&&p({},ce,{minHeight:T(m)?"calc("+m+" + "+t+"px)":m+t,maxHeight:T(v)?"calc("+v+" + "+t+"px)":v+t}),g&&h&&!S&&{minHeight:m,maxHeight:v},h&&!S&&ue),O={transition:"opacity "+d+"ms",opacity:0},P=p({},de,u&&O,(!t||h&&!S)&&{display:"none"}),M=p({},pe,u&&O,(!t||h&&!S)&&{display:"none"});return o&&i&&s&&a&&l?Object(r.h)(c,p({},_,{className:b,style:C,ref:function(t){e.container=t}}),[Object(r.cloneElement)(o({style:k}),{key:"view",ref:function(t){e.view=t}},w),Object(r.cloneElement)(i({style:P}),{key:"trackHorizontal",ref:function(t){e.trackHorizontal=t}},Object(r.cloneElement)(s({style:fe}),{ref:function(t){e.thumbHorizontal=t}})),Object(r.cloneElement)(a({style:M}),{key:"trackVertical",ref:function(t){e.trackVertical=t}},Object(r.cloneElement)(l({style:he}),{ref:function(t){e.thumbVertical=t}}))]):null},t.defaultProps={renderView:we,renderTrackHorizontal:_e,renderTrackVertical:Se,renderThumbHorizontal:xe,renderThumbVertical:Ce,tagName:"div",hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,thumbMinSize:30,universal:!1,autoHeight:!1,autoHeightMin:0,autoHeightMax:200},t}(m),Oe=new P("gc-scrollbars"),Pe=Oe.element("view"),Te=Oe.element("track"),Me=Oe.element("thumb"),De=function(){return Object(r.h)("div",null)},je=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._baseRef=null,t.getBaseRef=function(){return t._baseRef},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a=this,s=this.props,l=s.direction,c=s.customCSS,u=s.color,d=s.autoHide,h=s.style,g=s.size,m=s.growOnHover,v=s.viewCustomCSS,y=f(s,["direction","customCSS","color","autoHide","style","size","growOnHover","viewCustomCSS"]),b=C(Oe.name,c,((e={})[Oe.modifier("contrast")]="contrast"===u,e),((t={})[Oe.modifier("no-hide")]=!d,t),((n={})[Oe.modifier("size-sm")]="small"===g,n),((o={})[Oe.modifier("no-grow")]=!m,o)),w=C(Pe.name,v,((i={})[Pe.modifier(l)]="both"!==l,i)),_=function(e,t){return function(n){var o=n.style,i=f(n,["style"]),a=C(Te.name,Te.modifier(e));return Object(r.h)("div",p({},i,{className:a,style:p({},o,t)}))}},S=function(e,t){return function(n){var o=n.style,i=f(n,["style"]),a=C(Me.name,Me.modifier(e));return Object(r.h)("div",p({},i,{className:a,style:p({},o,t)}))}},x=p({},y,{style:h.container,containerClassName:b,renderView:function(e){var t=e.style,n=f(e,["style"]);return Object(r.h)("div",p({},n,{className:w,style:p({},t,h.view)}))},renderTrackVertical:"horizontal"===l?De:_("vertical",h.trackVertical),renderThumbVertical:"horizontal"===l?De:S("vertical",h.thumbVertical),renderTrackHorizontal:"vertical"===l?De:_("horizontal",h.trackHorizontal),renderThumbHorizontal:"vertical"===l?De:S("horizontal",h.thumbHorizontal)});return Object(r.h)(ke,p({ref:function(e){return a._baseRef=e}},x))},t.defaultProps={direction:"both",style:{},growOnHover:!0,autoHide:!0},t}(m),Le=new P("gc-check"),Ne=Le.element("input"),Ee=Le.element("mark"),Ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={defaultIndeterminate:t.props.defaultIndeterminate||!1},t.onChange=function(){var e=t,n=e.props,r=n.value,o=n.onChange;e.state.defaultIndeterminate&&t.setState({defaultIndeterminate:!1}),o&&o(r)},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a=this.props,s=a.id,l=a.name,c=a.block,u=a.dataAid,d=a.value,f=a.checked,h=a.indeterminate,g=a.defaultChecked,m=a.size,v=a.text,y=a.title,b=a.invalid,w=a.disabled,_=a.customCSS,S=a.tabIndex,x=a.textAlign,k=this.state.defaultIndeterminate,O=C(Le.name,_,((e={})[Le.modifier("block")]=c,e),((t={})[Le.modifier("invalid")]=b,t),((n={})[Le.modifier("disabled")]=w,n),((o={})[Le.modifier("align-left")]="left"===x,o),{"gc-size-sm":"small"===m},{"gc-size-lg":"large"===m}),P=C(Ne.name,((i={})[Ne.modifier("indeterminate")]=h||k,i)),T={type:"checkbox",checked:f,id:s,name:l,value:d,disabled:w,tabIndex:S,defaultChecked:g,onChange:this.onChange};return Object(r.h)("label",{className:O,title:y||v},Object(r.h)("input",p({},T,{className:P,"data-aid":u})),Object(r.h)("span",{className:Ee.name}),v)},t}(m),Ve=200,Ie=4,He=function(e){return e.stopPropagation()},Re={onTouchStart:He,onTouchEnd:He,onMouseDown:He,onClick:He},Fe=function(e){function t(t){var n=e.call(this,t)||this;return n._itemsCollection={},n.createRoot=function(){var e=B.current.dropdowns.menuRootSelector,t=document.createElement("div");return t.id="dropdown-root",(e&&e()||document.body).appendChild(t)},n.scrollSpy=function(e,t){for(var r,o=e,i=function(e){e[t?"removeEventListener":"addEventListener"]("scroll",n.updateRect)};o;)((r=o).scrollHeight!==r.clientHeight||r.scrollWidth!==r.clientWidth)&&i(o),o=o.parentElement;i(window)},n.updateRect=function(){var e=n.calcMenuRect();n.setState({menuRect:e})},n.calcMenuRect=function(e){var t,r=n.props,o=r.align,i=r.width,a=r.dropup,s=r.parent,l=r.offset,c=r.screenSnapOffset,u=n.state.invertedDrop;t="element"===s.type?s.element.getBoundingClientRect():{top:s.position.y,left:s.position.x,right:s.position.x,bottom:s.position.y,width:0,height:0};var d=Number.isFinite(l)?l:Ie,p=n._menu&&n._menu.clientHeight||0,f={top:0},h=function(e){return"up"===e?!1!==l?t.top-d-p:t.top+t.height-p:!1!==l?t.bottom+d:t.top};if(u?!a:a){var g=h("up");if(e&&g<0&&h("down")+p<=window.innerHeight)return n.setState({invertedDrop:!0},n.updateRect),{top:0};f.top=g<0?0:g}else{var m=h("down");if(e&&m+p>window.innerHeight&&h("up")>0)return n.setState({invertedDrop:!0},n.updateRect),{top:0};f.top=m+p>window.innerHeight?window.innerHeight-p:m}var v=Ve;i&&"default"!==i&&("100%"===i?v=t.width:"auto"===i?v=void 0:isNaN(i)||(v=i)),f.width=v;var y=v||(n._menu?n._menu.clientWidth:0),b=document.documentElement.clientWidth;if("left"===o&&null!==document.documentElement)t.left<0?f.left=0+c:t.left+y>b?f.left=b-y-c:f.left=t.left;else if("center"===o){var w=y/2,_=t.left+t.width/2;f.left=_-w<0?w+c:_+w>b?b-w-c:_}else{var S=b-t.right;f.right=S<0?0+c:S+y>b?b-y-c:S}return f},n.storeItems=function(e,t,r){n._itemsCollection[r]={node:e,item:t}},n.resetFocusedItem=function(){null!==n.state.focusedItemId&&n.setState({focusedItemId:null})},n.focusNextItem=function(){var e=Object.keys(n._itemsCollection);if(e.length){var t=n.state.focusedItemId,r=null,o=function(){var i=e[e.length-1];if(null===r&&null===t)r=e[0];else{if(t===i||r===i)return r=t;r=e[e.indexOf(r||t)+1]}var a=n._itemsCollection[r].node;a&&!a.hasAttribute("disabled")||o()};o(),r!==t&&n.setState({focusedItemId:r},function(){n._itemsCollection[n.state.focusedItemId].node.scrollIntoView({block:"nearest"})})}},n.focusPrevItem=function(){var e=n.state.focusedItemId,t=Object.keys(n._itemsCollection);if(e&&t.length){var r=null,o=function(){if(e===t[0]||r===t[0])return r=e;r=t[t.indexOf(r||e)-1];var i=n._itemsCollection[r].node;i&&!i.hasAttribute("disabled")||o()};o(),r!==e&&n.setState({focusedItemId:r},function(){n._itemsCollection[n.state.focusedItemId].node.scrollIntoView({block:"nearest"})})}},n.selectFocusedItem=function(){var e=n,t=e.state.focusedItemId,r=e.props.onItemClick,o=e._itemsCollection;t&&r&&o[t]&&r(o[t].item)},n.getMenuNode=function(){return n._menu},n.onItemClick=function(e){return function(){var t=n.props.onItemClick;t&&t(e)}},n.generatePreview=function(e){var t=n.props,o=t.generateItemPreview,i=t.multiselect,a=t.size;if(i){var s={value:"",size:a,checked:e.selected||!1,tabIndex:-1};return Object(r.h)(Ae,p({},s))}return o&&o(e.value,e.selected)},n._root=document.getElementById("dropdown-root")||n.createRoot(),n._menu=null,n._scrollContainer=null,n.state={menuRect:{top:0},focusedItemId:null,invertedDrop:!1},n}return d(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.scrollToSelection,n=e.items,r=e.parent,o=this.calcMenuRect(!0);if(this.setState({menuRect:o}),window.addEventListener("resize",this.updateRect),"element"===r.type&&this.scrollSpy(r.element),t&&n&&this._scrollContainer){var i=this._scrollContainer.view.querySelector("[data-selected]");i&&setTimeout(function(){return i.scrollIntoView({block:"center"})},0)}},t.prototype.componentWillUnmount=function(){var e=this.props.parent;"element"===e.type&&this.scrollSpy(e.element,!0),window.removeEventListener("resize",this.updateRect)},t.prototype.componentDidUpdate=function(e){e.items&&this.props.items&&e.items.length!==this.props.items.length&&this.resetFocusedItem()},t.prototype.render=function(){var e=this,t=this.props,n=t.items,o=t.content,i=t.align,a=t.dropup,s=t.size,l=t.maxHeight,c=t.customCSS,u=t.dataAid,d=t.multiselect,f=this.state,h=f.menuRect,g=f.focusedItemId,m=f.invertedDrop,v={top:h.top+"px",width:h.width&&h.width+"px",left:void 0!==h.left&&h.left+"px",right:void 0!==h.right&&h.right+"px"},y=C("gc-dd-menu",c,{"gc-dd-menu--multiselect":d},{"gc-dd-menu--align-center":"center"===i},{"gc-dd-menu--align-left":"left"===i},{"gc-dd-menu--dropup":m?!a:a},{"gc-dd-menu--custom":o}),w="none"===l?"100vh":"default"===l?255:NaN!==Number(l)?l+"px":"100vh",_={autoHeight:!0,autoHeightMax:w,customCSS:"gc-dd-menu__scroll",direction:"vertical",style:{view:{maxHeight:w}}};return b(Object(r.h)("div",p({className:y,style:v,ref:function(t){return e._menu=t},"data-aid":u},Re),Object(r.h)(je,p({ref:function(t){return e._scrollContainer=t&&t.getBaseRef()}},_),n&&n.length>0&&n.map(function(t,n){if(!t)return null;switch(t.type){case"custom":return t.customContent;case"header":return Object(r.h)("div",{key:"dd-item-"+n,className:"gc-dd-menu__header"},Object(r.h)("span",null,t.header));case"splitter":return Object(r.h)("div",{key:"dd-item-"+n,className:"gc-dd-menu__divider"});case"button":var o=e.generatePreview(t),i=C("gc-dd-menu__item",{"gc-dd-menu__item--selected":t.selected},{"gc-dd-menu__item--focused":g===""+n},{"gc-dd-menu__item--disabled":t.disabled},{"gc-dd-menu__item--with-preview":o},{"gc-size-sm":"small"===s},{"gc-size-lg":"large"===s}),a={key:t.key||(t.value?(l=t.value,j(l)?JSON.stringify(l):""+l):"dd-item-"+n),className:i,title:t.title||t.text,disabled:t.disabled,onClick:e.onItemClick(t),tabIndex:-1,"data-selected":!!t.selected||void 0};return Object(r.h)("button",p({},a,{ref:function(r){return e.storeItems(r,t,n)}}),o&&Object(r.h)("div",{className:"gc-dd-menu__item-preview"},o),t.icon&&Object(r.h)(te,{icon:t.icon}),t.text&&Object(r.h)("span",null,t.text))}var l}),!n&&o)),this._root)},t.defaultProps={screenSnapOffset:0},t}(m),ze=function(){function e(){var e=this;this._activeDropdown=null,this.onWindowHandler=function(t){var n=e._activeDropdown;if(n){var r=n.getNode();if(r&&r!==t.target&&!r.contains(t.target)){var o=n.getSafeZone();if(!o||o!==t.target&&!o.contains(t.target)){var i=n.getMenuNode();i&&i.contains(t.target)||(n.close(),e._activeDropdown=null)}}}},this.open=function(t){var n=e._activeDropdown;n&&n.close(),e._activeDropdown=t},this.cleanup=function(){e._activeDropdown=null},window.addEventListener("mousedown",this.onWindowHandler),window.addEventListener("touchstart",this.onWindowHandler)}return Object.defineProperty(e.prototype,"menuRootSelector",{get:function(){return this._menuRootSelector},set:function(e){this._menuRootSelector=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"current",{get:function(){return this._activeDropdown},enumerable:!0,configurable:!0}),e}(),Be=function(e){function t(t){var n=e.call(this,t)||this;return n.getNode=function(){return n._dropdown},n.getSafeZone=function(){var e=n.props.safeZone;return e&&e()||null},n.getMenuNode=function(){return n._menu?n._menu.getMenuNode():null},n.updateMenuRect=function(){n._menu&&n._menu.updateRect()},n.open=function(){var e=n.props,t=e.disabled,r=e.onToggle;t||(B.current.dropdowns.open(n),n.setState({open:!0}),r&&r(!0))},n.close=function(){var e=n.props.onToggle;e&&e(!1),n.setState({open:!1})},n.onToggleClick=function(e){e.preventDefault(),e.stopPropagation(),n.state.open?n.close():n.open()},n.onItemClick=function(e){var t=n.props,r=t.onSelect,o=t.noCloseOnSelect,i=t.multiselect;e.onClick?e.onClick(e.value):r&&r(e.value),o||i||n.close()},n.onNavigation=function(e){n._menu&&("down"===e?n._menu.focusNextItem():n._menu.focusPrevItem())},n.onNavSelect=function(){return n._menu&&n._menu.selectFocusedItem()},n.onKeyDown=function(e){e.stopPropagation(),e.which===H.ARROW_DOWN&&(e.preventDefault(),n.onNavigation("down")),e.which===H.ARROW_UP&&(e.preventDefault(),n.onNavigation("up")),e.which===H.ENTER&&(e.preventDefault(),n.state.open?n.onNavSelect():n.open()),e.which===H.ESC&&n.close()},n._dropdown=null,n._menu=null,n.state={open:!1},B.current.dropdowns||(B.current.dropdowns=new ze),n}return d(t,e),t.prototype.componentWillUnmount=function(){B.current.dropdowns.current===this&&B.current.dropdowns.cleanup()},t.prototype.render=function(){var e=this,t=this.props,n=t.items,o=t.content,i=t.hiddenChevron,a=t.offset,s=t.menuAlign,l=t.menuWidth,c=t.dropup,u=t.dataAid,d=t.id,f=t.block,h=t.accent,g=t.background,m=t.rounded,v=t.size,y=t.width,b=t.icon,w=t.menuMaxHeight,_=t.screenSnapOffset,S=t.text,x=t.textAlign,k=t.title,O=t.disabled,P=t.toggleContent,T=t.generatePreview,M=t.scrollToSelection,D=t.generateItemPreview,j=t.menuCustomCSS,L=t.invalid,N=t.customCSS,E=t.level,A=t.multiselect,V=t.itemSize,I=this.state.open,H=T&&T(),R=C("gc-dd",N,{"gc-dd--block":f},{"gc-dd--chevron":!i},{"gc-dd--menu-open":I},{"gc-dd--disabled":O},{"gc-dd--invalid":L},{"gc-dd--with-preview":H},{"gc-rounded":m},{"gc-size-sm":"small"===v},{"gc-size-lg":"large"===v}),F=y&&{width:y}||void 0,z={id:d?d+"_toggle":void 0,dataAid:u?u+"_toggle":void 0,block:!0,accent:h,background:g,rounded:m,size:v,icon:b,text:S,textAlign:x,title:k,disabled:O,level:E,onClick:this.onToggleClick,onDoubleClick:function(e){return e.stopPropagation()}},B={type:"svg",content:re["chevron-up"],size:v,rotate:"180"},W=C("gc-dd__chevron",{"gc-accent-color":"text+icon"===h},{"gc-dd__chevron--accent-full":"full"===h},{"gc-size-sm":"small"===v},{"gc-size-lg":"large"===v}),U=void 0!==w?w:"none",Y={parent:{type:"element",element:this._dropdown},dataAid:u?u+"_menu":void 0,content:o,items:n,align:s,width:l,dropup:c,offset:a,maxHeight:U,screenSnapOffset:_,onItemClick:this.onItemClick,scrollToSelection:M,generateItemPreview:D,multiselect:A,customCSS:j,size:V||v};return Object(r.h)("div",{id:d,"data-aid":u,className:R,style:F,onKeyDown:this.onKeyDown,ref:function(t){return e._dropdown=t}},Object(r.h)(ie,p({},z),P&&Object(r.h)("div",{className:"gc-dd__toggle-content"},P)),H&&Object(r.h)("div",{className:"gc-dd__preview"},H),!i&&Object(r.h)(te,{icon:B,customCSS:W}),I&&Object(r.h)(Fe,p({ref:function(t){return e._menu=t}},Y)))},t}(m),We=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._input=null,t.onFocus=function(e){var n=t.props,r=n.selectOnFocus,o=n.onFocus;r&&e.target.select(),o&&o(e)},t.select=function(){t._input&&t._input.select()},t.focus=function(){t._input&&t._input.focus()},t.getNode=function(){return t._input},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.id,o=t.name,i=t.block,a=t.rounded,s=t.size,l=t.width,c=t.textAlign,u=t.invalid,d=t.type,f=t.placeholder,h=t.defaultValue,g=t.value,m=t.title,v=t.disabled,y=t.autoFocus,b=t.spellCheck,w=t.dataAid,_=t.customCSS,S=t.onChange,x=t.onBlur,k=t.onKeyDown,O=t.onKeyUp,P=t.onKeyPress,T={id:n,name:o,className:C("gc-input",_,{"gc-input--block":i},{"gc-input--text-align-center":"center"===c},{"gc-input--text-align-right":"right"===c},{"gc-input--invalid":u},{"gc-rounded":a},{"gc-size-sm":"small"===s},{"gc-size-lg":"large"===s}),style:l&&{width:l}||void 0,type:d||"text",placeholder:f,defaultValue:h,value:g,title:m,disabled:v,autoFocus:y,spellCheck:b||!1,onChange:S,onFocus:this.onFocus,onBlur:x,onKeyDown:k,onKeyUp:O,onKeyPress:P};return Object(r.h)("input",p({},T,{"data-aid":w,ref:function(t){return e._input=t},onInput:S}))},t}(m),Ue=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._comboBoxBlock=new P("gc-combo"),t._input=null,t._dropdown=null,t._dropdownIsOpen=!1,t.state={searchQuery:null,menuWidth:void 0,focused:!1},t.onChange=function(e){var n=t.props,r=n.onChange;n.filterOnInput&&t.setState({searchQuery:e.target.value},function(){t._dropdown&&t._dropdown.updateMenuRect()}),r&&r(e)},t.onSelect=function(e){var n=t.props.onSelect;null!==t.state.searchQuery&&t.setState({searchQuery:null}),n&&n(e)},t.onFocus=function(){t.props.openOnFocus&&!t._dropdownIsOpen&&t._dropdown&&t._dropdown.open(),t.setState({focused:!0},function(){t._input&&t._input.select()})},t.onBlur=function(e){t.setState({focused:!1}),t.props.onBlur&&t.props.onBlur(e)},t.setMenuWidth=function(){var e=t.props.menuWidth;if(!e||"100%"===e){var n=t._input&&t._input.getNode();if(n){var r=n.offsetWidth;r!==t.state.menuWidth&&t.setState({menuWidth:r})}}},t.onToggle=function(e){var n=t,r=n.state.searchQuery,o=n.props.onToggle;t._dropdownIsOpen=e,o&&o(e),e?t._input&&(t._input.focus(),t.setMenuWidth()):null!==r&&t.setState({searchQuery:null})},t.getSafeZone=function(){return t._input&&t._input.getNode()},t.onKeyDown=function(e){var n=t._dropdown;n&&(e.stopPropagation(),e.which===H.ARROW_DOWN&&(e.preventDefault(),n.onNavigation("down")),e.which===H.ARROW_UP&&(e.preventDefault(),n.onNavigation("up")),e.which===H.ENTER&&(e.preventDefault(),n.onNavSelect()),e.which===H.ESC&&n.close())},t.filterItems=function(){var e=t,n=e.props.items,r=e.state.searchQuery,o=n;return r&&o&&(o=o.filter(function(e){return e&&e.text&&-1!==e.text.toLowerCase().indexOf(r.toLowerCase())})),o},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s=this,l=this._comboBoxBlock,c=this.props,u=c.id,d=c.size,f=c.width,h=c.rounded,g=c.disabled,m=c.block,v=c.multiselect,y=c.dropup,b=c.noCloseOnSelect,w=c.items,_=c.menuMaxHeight,S=c.itemSize,x=c.scrollToSelection,k=c.inputType,O=c.value,P=c.name,T=c.invalid,M=c.dataAid,D=c.filterOnInput,j=c.screenSnapOffset,L=c.generatePreview,N=c.placeholder,E=c.content,A=c.menuWidth,V=c.generateItemPreview,I=c.menuCustomCSS,H=c.displayValue,R=c.customCSS,F=this.state,z=F.searchQuery,B=F.menuWidth,W=F.focused,U=f&&{width:f}||void 0,Y={name:P,size:d,invalid:T,rounded:h,disabled:g,placeholder:v&&O||N,dataAid:M?M+"_input":void 0,value:null!==z?z:v?"":!W&&H||O,title:H||O||N,type:k,selectOnFocus:!0,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,onKeyUp:function(e){return e.stopPropagation()},onKeyPress:function(e){return e.stopPropagation()}},$={size:d,rounded:h,dropup:y,menuMaxHeight:_,content:E,disabled:g,noCloseOnSelect:b,multiselect:v,itemSize:S,dataAid:M?M+"_dropdown":void 0,items:D?this.filterItems():w,onToggle:this.onToggle,safeZone:this.getSafeZone,onSelect:this.onSelect,generateItemPreview:V,menuCustomCSS:I,screenSnapOffset:j,menuWidth:A&&"100%"!==A?A:B,scrollToSelection:x},G=L&&L(O),q=C(l.name,R,((e={})[l.modifier("block")]=m,e),((t={})[l.modifier("disabled")]=g,t),((n={})[l.modifier("rounded")]=h,n),((o={})[l.modifier("with-preview")]=G,o),((i={})[l.modifier("focused-input")]=W,i),((a={})[l.modifier("value-placeholder")]=v&&O,a),{"gc-size-sm":"small"===d},{"gc-size-lg":"large"===d});return Object(r.h)("div",{className:q,id:u,"data-aid":M,style:U},Object(r.h)(We,p({},Y,{ref:function(e){return s._input=e}})),Object(r.h)(Be,p({},$,{ref:function(e){return s._dropdown=e}})),G&&Object(r.h)("div",{className:l.element("preview").name},G))},t}(m),Ye=new P("gc-btn-group"),$e=Ye.element("splitter"),Ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getItemNodes=function(e){var n,o,i,a,s=t.props,l=s.rounded,c=s.size,u=s.align,d=s.disabled,f=s.withSplitters,h=s.withHeader,g=s.defaultAccent,m=s.defaultBackground,v=s.defaultLevel;return f&&(a=C($e.name,((n={})[$e.modifier("accent-full")]="full"===g,n),((o={})[$e.modifier("accent-"+(v||"info"))]=g&&"none"!==g&&"full"!==g,o),((i={})[$e.modifier("background-transparent")]="transparent"===m,i))),e.reduce(function(e,t,n){f&&(h?n>1:n>0)&&e.push(Object(r.h)("div",{key:"splitter-"+n,className:a}));var o=t.key||n;if("button"===t.type){var i=p({rounded:l,size:c,disabled:d,block:!0,accent:g,background:m,level:v,textAlign:"justify"===u?"center":"left"},t);e.push(Object(r.h)(ie,p({key:o,ref:t.ref},i),t.customContent))}if("dropdown"===t.type){var s=p({rounded:l,size:c,disabled:d,block:!0,accent:g,background:m,level:v,textAlign:"justify"===u?"center":"left"},t);e.push(Object(r.h)(Be,p({key:o,ref:t.ref},s)))}if("combobox"===t.type){var y=p({},t,{block:!0,rounded:l,size:c,disabled:d});e.push(Object(r.h)(Ue,p({key:o,ref:t.ref},y)))}if("input"===t.type){var b=p({},t,{block:!0,rounded:l,size:c,disabled:d,type:t.inputType});e.push(Object(r.h)(We,p({key:o,ref:t.ref},b)))}return e},[])},t.getHeaderColor=function(e){var n=t.props,r=n.defaultAccent,o=n.defaultLevel;return"full"===(e.accent||r)?e.level||o||"info":"default"},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s=this.props,l=s.id,c=s.block,u=s.size,d=s.items,p=s.customCSS,f=s.dataAid,h=s.align,g=s.withHeader,m=s.rounded,v=s.disabled,y=d.filter(function(e){return e});if(!y.length)return null;var b,w=g&&y.length>1;w&&(b=this.getHeaderColor(y[0]));var _=C(Ye.name,p,((e={})[Ye.modifier("header-"+b)]=w,e),((t={})[Ye.modifier("align-center")]="center"===h,t),((n={})[Ye.modifier("align-right")]="right"===h,n),((o={})[Ye.modifier("align-justify")]="justify"===h,o),((i={})[Ye.modifier("block")]=c,i),((a={})[Ye.modifier("disabled")]=v,a),{"gc-rounded":m},{"gc-size-sm":"small"===u},{"gc-size-lg":"large"===u});return Object(r.h)("div",{id:l,"data-aid":f,className:_},this.getItemNodes(y))},t}(m),qe=new P("gc-radio"),Ke=qe.element("input"),Xe=qe.element("mark"),Ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(){var e=t.props,n=e.value,r=e.onChange;r&&r(n)},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i=this.props,a=i.id,s=i.name,l=i.block,c=i.value,u=i.checked,d=i.dataAid,f=i.defaultChecked,h=i.size,g=i.text,m=i.title,v=i.invalid,y=i.disabled,b=i.customCSS,w=i.textAlign,_=C(qe.name,b,((e={})[qe.modifier("block")]=l,e),((t={})[qe.modifier("invalid")]=v,t),((n={})[qe.modifier("disabled")]=y,n),((o={})[qe.modifier("align-left")]="left"===w,o),{"gc-size-sm":"small"===h},{"gc-size-lg":"large"===h}),S={type:"radio",checked:u,id:a,name:s,value:c,disabled:y,defaultChecked:f,onChange:this.onChange};return Object(r.h)("label",{className:_,title:m||g},Object(r.h)("input",p({},S,{className:Ke.name,"data-aid":d})),Object(r.h)("span",{className:Xe.name}),g)},t}(m),Je=new P("gc-toggle"),Qe=Je.element("input"),et=Je.element("mark"),tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t,n,o,i=this.props,a=i.id,s=i.block,l=i.dataAid,c=i.value,u=i.onToggle,d=i.checked,f=i.textAlign,h=i.name,g=i.customCSS,m=i.size,v=i.text,y=i.title,b=i.invalid,w=i.disabled,_=i.defaultChecked,S=C(Je.name,g,((e={})[Je.modifier("block")]=s,e),((t={})[Je.modifier("disabled")]=w,t),((n={})[Je.modifier("align-left")]="left"===f,n),((o={})[Je.modifier("invalid")]=b,o),{"gc-size-sm":"small"===m},{"gc-size-lg":"large"===m}),x={type:"checkbox",checked:d,defaultChecked:_,id:a,name:h,value:c,disabled:w,onChange:u};return Object(r.h)("label",{className:S,title:y||v},Object(r.h)("input",p({},x,{className:Qe.name,"data-aid":l})),Object(r.h)("div",{className:et.name}),v)},t}(m),nt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._toolbar=null,t._content=null,t._toolbarHeight=0,t._contentHeight=0,t.state={expandable:!1,expanded:!1},t.recalculateBounds=function(){t.checkContentHeight()},t.toggleExpand=function(e){var n=t.state.expanded;e&&n||!1===e&&!n||(t.setState({expanded:!n}),n||(window.addEventListener("mousedown",t.onWindowHandler),window.addEventListener("touchstart",t.onWindowHandler)))},t.onResize=function(){t.checkContentHeight()},t.checkContentHeight=function(){if(t.props.block&&t._toolbar&&t._content){t._toolbarHeight=t._toolbar.clientHeight,t._contentHeight=t._content.clientHeight;var e=t._contentHeight>t._toolbarHeight;e!==t.state.expandable&&t.setState({expandable:e,expanded:!1})}},t.onWindowHandler=function(e){e.target===t._toolbar||t._toolbar.contains(e.target)||(t.state.expanded&&t.setState({expanded:!1}),window.removeEventListener("mousedown",t.onWindowHandler),window.removeEventListener("touchstart",t.onWindowHandler))},t.wrapItems=s(function(e,t,n){var o=C("gc-toolbar__item-container",{"gc-toolbar__item-container--padding":n});return y.map(e,function(e,n){var i={key:"container_"+n,id:t+"_Item_"+n,className:o};return e&&Object(r.h)("div",p({},i),e)})}),t}return d(t,e),t.prototype.componentDidMount=function(){setTimeout(this.checkContentHeight,0),window.addEventListener("resize",this.onResize)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),window.removeEventListener("mousedown",this.onWindowHandler),window.removeEventListener("touchstart",this.onWindowHandler)},t.prototype.render=function(){var e=this,t=this.props,n=t.block,o=t.size,i=t.toggleAccent,a=t.toggleBackground,s=t.rounded,l=t.customCSS,c=t.id,u=t.padding,d=t.children,f=t.overflowVisible,h=t.dropup,g=t.dataAid,m=this.state,v=m.expandable,y=m.expanded,b=C("gc-toolbar",l,{"gc-toolbar--block":n},{"gc-toolbar--no-wrap":f},{"gc-toolbar--with-toggle":v},{"gc-toolbar--rounded":s},{"gc-toolbar--expanded":y},{"gc-toolbar--dropup":h},{"gc-size-sm":"small"===o},{"gc-size-lg":"large"===o}),w=C("gc-toolbar__content",{"gc-toolbar__content--padding":u}),_={dataAid:g?g+"_toggle":void 0,size:o,rounded:s,accent:i,background:a,icon:{type:"svg",content:re["dots-vertical"]},onClick:function(){return e.toggleExpand()}};return Object(r.h)("div",{className:b,ref:function(t){return e._toolbar=t},"data-aid":g},Object(r.h)("div",{className:w,ref:function(t){return e._content=t}},this.wrapItems(d,c,u)),v&&Object(r.h)(ie,p({},_)))},t}(m),rt=function(){return Object(r.h)("div",{className:"gc-toolbar__splitter"})},ot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onTabClick=function(e){return function(){var n=t.props.onTabSelect;n&&n(e)}},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.id,o=t.block,i=t.tabs,a=t.customCSS,s=t.dataAid,l=t.design,c=t.rounded,u=t.align,d=t.size,f=t.splitter,h=t.selectedTabId,g=C("gc-tabs",a,{"gc-tabs--block":o},{"gc-tabs--simplified":"simplified"===l},{"gc-tabs--transparent":"transparent"===l}),m="simplified"===l?"text+icon":"full",v="transparent"!==l?"none":"full",y={id:n?n+"_group":void 0,block:o,rounded:c,align:u,size:d,defaultAccent:v,defaultBackground:"default"===l||void 0===l?"default":"transparent",withSplitters:f,items:i.map(function(t){return{type:"button",dataAid:s?s+"_tab_"+t.id:void 0,icon:t.icon,text:t.text,title:t.title,disabled:t.disabled,accent:t.id===h?m:v,onClick:e.onTabClick(t.id),customCSS:t.id===h?"selected":void 0}})};return Object(r.h)("div",{id:n,"data-aid":s,className:g},Object(r.h)(Ge,p({},y)))},t}(m),it=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.mapAppBarItems=function(e,n){if(e){var o=t.props,i=o.rounded,a=o.size,s=o.legacyMode,l="appbar-item-"+n;if("splitter"===e.type)return Object(r.h)(rt,{key:l});if("button"===e.type){var c={block:!0,accent:s?"full":"text+icon",background:s?"default":"transparent",size:s?"large":a,rounded:i};return Object(r.h)(ie,p({key:l},e,c))}if("dropdown"===e.type){var u={block:!0,accent:s?"full":"text+icon",background:s?"default":"transparent",size:s?"large":a,rounded:i};return Object(r.h)(Be,p({key:l},e,u))}if("group"===e.type){var d={block:!0,defaultAccent:s?"full":"text+icon",defaultBackground:s?"default":"transparent",size:s?"large":a,rounded:i};return Object(r.h)(Ge,p({key:l},e,d))}}},t.mapMenuItems=function(e){return{id:e.id,text:e.text,title:e.title,disabled:e.disabled}},t.onTabSelect=function(e){var n=t.props.onMenuItemSelect;n&&n(e)},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a=this.props,s=a.id,l=a.size,c=a.rounded,u=a.dataAid,d=a.mainItems,f=a.menuItems,h=a.controlItems,g=a.selectedMenuItemId,m=a.customCSS,v=a.title,y=a.subtitle,b=a.badge,w=a.legacyMode,_=new P("gc-appbar"),S=C(_.name,m,{"gc-size-sm":!w&&"small"===l},{"gc-size-lg":w||"large"===l},((e={})[_.modifier("legacy")]=w,e)),x=d&&d.map(this.mapAppBarItems),k=h&&h.map(this.mapAppBarItems),O=void 0;if(f){var T={dataAid:u?u+"_tabs":void 0,design:w?"transparent":"simplified",align:"left",tabs:f.map(this.mapMenuItems),size:w?"large":l,rounded:c,block:!0,selectedTabId:g,onTabSelect:this.onTabSelect};O=Object(r.h)(ot,p({},T))}var M={block:!0,toggleBackground:"transparent",toggleAccent:"text+icon",padding:!0,rounded:c,size:w?"large":l,overflowVisible:!0},D=void 0;if(b){var j=_.element("badge");D=C(j.name,((t={})[j.modifier("accent")]="accent"===b.type,t),((n={})[j.modifier("error")]="error"===b.type,n),((o={})[j.modifier("warning")]="warning"===b.type,o),((i={})[j.modifier("clickable")]=b.onClick,i))}return Object(r.h)("div",{id:"appbar_"+s,"data-aid":u,className:S},Object(r.h)("div",{id:"appbar_"+s+"_logo_container",className:_.element("logo-container").name}),Object(r.h)("div",{className:_.element("main-section").name},Object(r.h)(nt,p({id:"appbar_"+s+"_main",dataAid:u&&u+"_main-section"},M),x,x&&O&&Object(r.h)(rt,null),O)),Object(r.h)("div",{className:_.element("title-section").name},v&&Object(r.h)("span",{className:_.element("title").name},v),y&&Object(r.h)("span",{className:_.element("subtitle").name},"* "+y+" *"),b&&Object(r.h)("span",{className:D,title:b.title||b.text,onClick:b.onClick},b.text)),Object(r.h)("div",{className:_.element("control-section").name},Object(r.h)(nt,p({id:"appbar_"+s+"_control",dataAid:u&&u+"_control-section"},M),k)))},t}(m),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){return Object(r.h)("div",{className:"gc-menu__splitter"})},t}(m);I.set(at,"MenuSplitter");var st=new P("gc-menu__panel"),lt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.displayName="MenuPanel",t}return d(t,e),t.prototype.render=function(){var e,t=this.props,n=t.children,o=t.customCSS,i=t.customScroll,a=t.dataAid,s=C(st.name,o,((e={})[st.modifier("fill-container")]=i,e));return Object(r.h)("div",{className:s,"data-aid":a},n)},t}(m);I.set(lt,"MenuPanel");var ct=function(e){var t=e.text;return Object(r.h)("div",{className:st.element("placeholder").name},t)},ut=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},dt=null;function pt(e){var t=e;if("string"==typeof t&&ut()){var n=document.querySelectorAll(t);!function(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}(n,t),t="length"in n?n[0]:n}return dt=t||dt}function ft(e){return!(!e&&!dt)}
- /*!
- * Adapted from jQuery UI core
- *
- * http://jqueryui.com
- *
- * Copyright 2014 jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- * http://api.jqueryui.com/category/ui-core/
- */
- var ht=/input|select|textarea|button|object/,gt=function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow"):"none"==n.getPropertyValue("display")};function mt(e,t){var n=e.nodeName.toLowerCase();return(ht.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(gt(t))return!1;t=t.parentNode}return!0}(e)}function vt(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&mt(e,!n)}function yt(e){return[].slice.call(e.querySelectorAll("*"),0).filter(vt)}var bt=[],wt=null,_t=!1;function St(){_t=!0}function xt(){if(_t){if(_t=!1,!wt)return;setTimeout(function(){wt.contains(document.activeElement)||(yt(wt)[0]||wt).focus()},0)}}var Ct=new P("gc-modal"),kt=new P("gc-modal-overlay"),Ot=0,Pt=function(e){function t(t){var n=e.call(this,t)||this;return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,i=e.bodyOpenClassName;setTimeout(function(){return i&&document.body.classList.remove(i)},0),o&&document.documentElement.classList.remove(o),r&&Ot>0&&0===(Ot-=1)&&function(e){ft(e)&&(e||dt).removeAttribute("aria-hidden")}(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(!function(){var e=null;try{0!==bt.length&&(e=bt.pop()).focus()}catch(t){console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}}(),wt=null,window.addEventListener?(window.removeEventListener("blur",St),document.removeEventListener("focus",xt)):(window.detachEvent("onBlur",St),document.detachEvent("onFocus",xt))):bt.length>0&&bt.pop()),n.props.onAfterClose&&n.props.onAfterClose()},n.open=function(){var e;n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(e=n.node,wt=e,window.addEventListener?(window.addEventListener("blur",St,!1),document.addEventListener("focus",xt,!0)):(window.attachEvent("onBlur",St),document.attachEvent("onFocus",xt)),bt.push(document.activeElement)),n.setState({isOpen:!0},function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen()}))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())})},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){e.stopPropagation(),e.keyCode===H.TAB&&function(e,t){var n=yt(e);if(n.length){var r,o=t.shiftKey,i=n[0],a=n[n.length-1];if(e===document.activeElement){if(!o)return;r=a}if(a!==document.activeElement||o||(r=i),i===document.activeElement&&o&&(r=a),r)return t.preventDefault(),void r.focus();var s=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=s&&"Chrome"!=s[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var l=n.indexOf(document.activeElement);if(l>-1&&(l+=o?-1:1),void 0===n[l])return t.preventDefault(),void(r=o?a:i).focus();t.preventDefault(),n[l].focus()}}else t.preventDefault()}(n.content,e),n.props.shouldCloseOnEsc&&e.keyCode===H.ESC&&n.requestClose(e)},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r,o;return C(e.name,t,((r={})[e.modifier("before-close")]=n.state.beforeClose,r),((o={})[e.modifier("default")]=n.props.withDefaultStyles,o))},n.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(n,r){return n[e+"-"+r]=t[r],n},{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return d(t,e),t.prototype.componentDidMount=function(){this.props.isOpen&&this.open()},t.prototype.componentDidUpdate=function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()},t.prototype.componentWillUnmount=function(){this.afterClose(),clearTimeout(this.closeTimer)},t.prototype.beforeOpen=function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&document.body.classList.add(o),r&&document.documentElement.classList.add(r),n&&(Ot+=1,function(e){ft(e)&&(e||dt).setAttribute("aria-hidden","true")}(t))},t.prototype.render=function(){if(this.shouldBeClosed())return Object(r.h)("div",null);var e=this.props,t=e.className,n=e.overlayClassName,o=e.style,i=e.contentLabel,a=e.role,s=e.aria,l=e.data,c={style:p({},o.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown,className:this.buildClassName(kt,n)},u=p({style:p({},o.content),className:this.buildClassName(Ct,t),tabIndex:-1,role:a,onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick},this.attributesFromObject("aria",s||{}),this.attributesFromObject("data",l||{}));return Object(r.h)("div",p({},c,{ref:this.setOverlayRef}),Object(r.h)("div",p({},u,{ref:this.setContentRef,"data-aid":this.props.dataAid,"aria-label":i}),this.props.children))},t.defaultProps={style:{overlay:{},content:{}}},t}(m),Tt=Ct.element("body").modifier("open"),Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={rootNode:null},t}return d(t,e),t.setAppElement=function(e){pt(e)},t.prototype.componentDidMount=function(){var e=document.getElementById("modal-root")||this.createRoot();this.setState({rootNode:e})},t.prototype.createRoot=function(){var e=document.createElement("div");return e.id="modal-root",this.props.parentSelector().appendChild(e)},t.prototype.componentWillUnmount=function(){if(this.state.rootNode&&this._portal){var e=this._portal.state,t=Date.now();e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS)&&!e.beforeClose&&this._portal.closeWithTimeout()}},t.prototype.render=function(){var e=this,t=this.state.rootNode;return t&&b(Object(r.h)(Pt,p({ref:function(t){return e._portal=t}},this.props)),t)},t.defaultProps={isOpen:!1,bodyOpenClassName:Tt,role:"dialog",ariaHideApp:!0,appElement:document.body,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},t}(m),Dt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.open,n=e.onClose,o=e.onOpen,i=e.closeTimeoutMS,a=e.shouldCloseOnOverlayClick,s=e.overlayCustomCSS,l=e.customCSS,c=e.style,u=e.shouldCloseOnEsc,d={dataAid:e.dataAid,withDefaultStyles:e.withDefaultStyles,isOpen:t,onRequestClose:n,onAfterOpen:o,style:c,closeTimeoutMS:i,shouldCloseOnOverlayClick:a,shouldCloseOnEsc:u,overlayClassName:s,className:l};return Object(r.h)(Mt,p({},d),this.props.children)},t}(m),jt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.close=function(){return t.props.onClose()},t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s,l=this.props,c=l.open,u=l.icon,d=l.title,f=l.customCSS,h=l.onClose,g=l.subtitle,m=l.titleAlign,v=l.onOpen,y=l.dataAid,b=l.overlayCustomCSS,w=l.level,_=l.style,S=l.controls,x=l.rounded,k=l.hideCloseButton,O=l.closeTimeoutMS,P=l.shouldCloseOnOverlayClick,T=l.shouldCloseOnEsc,M=l.contentMaxHeight,D=function(e){return Ct.element(e).name},j=C(f,((e={})[Ct.modifier("level-warning")]="warning"===w,e),((t={})[Ct.modifier("level-error")]="error"===w,t),((n={})[Ct.modifier("with-icon")]=u,n),{"gc-rounded":x}),L=Ct.element("header"),N=C(L.name,((o={})[L.modifier("centered-title")]="center"===m,o)),E=Ct.element("footer"),A=C(E.name,((i={})[E.modifier("align-left")]="left"===S.align,i),((a={})[E.modifier("align-center")]="center"===S.align,a),((s={})[E.modifier("align-spread")]="spread"===S.align,s)),V={open:c,onClose:h,style:_,onOpen:v,closeTimeoutMS:O,dataAid:y,shouldCloseOnOverlayClick:P,shouldCloseOnEsc:T,customCSS:j,overlayCustomCSS:b,withDefaultStyles:!0},I={dataAid:y?y+"_close-button":void 0,rounded:x,onClick:h,customCSS:D("close-btn"),background:"transparent",icon:{type:"svg",content:re.close,size:"default"},tabIndex:-1},H={autoHeight:!0,autoHeightMax:M||"70vh",direction:"vertical"};return Object(r.h)(Dt,p({},V),Object(r.h)("div",{className:N},u&&Object(r.h)(te,{icon:u,customCSS:D("icon")}),Object(r.h)("div",{className:D("title-box")},Object(r.h)("h4",{className:D("title")},d),g&&Object(r.h)("span",{className:D("subtitle")},g)),!k&&Object(r.h)(ie,p({},I))),Object(r.h)(je,p({},H),this.props.children),Object(r.h)("div",{className:A},function(){var e={size:"small",rounded:x,level:w};if(S.buttons)return S.buttons.map(function(t,n){return Object(r.h)(ie,p({},e,t,{key:n,dataAid:y&&y+"_control_"+n}))});var t=function(e,t){return 0===t?C(e.customCSS,D("right-control")):e.customCSS},n=S.left.map(function(t,n){return Object(r.h)(ie,p({},e,t,{key:"left_"+n,dataAid:y&&y+"_control_"+n}))}),o=S.right.map(function(n,o){return Object(r.h)(ie,p({},e,n,{key:"right_"+o,customCSS:t(n,o),dataAid:y&&y+"_control_"+(S.left.length+o)}))});return n.concat(o)}()))},t}(m),Lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t=this.props,n=t.title,o=t.message,i=t.controls,a=t.open,s=t.style,l=t.hideCloseButton,c=t.onOpen,u=t.closeTimeoutMS,d=t.onClose,f=t.customCSS,h=t.overlayCustomCSS,g=t.dataAid,m=t.level,v=t.rounded,y=t.icon,b=t.titleAlign,w=t.customControlLabels,_={title:n,open:a,level:m,rounded:v,style:s,icon:y,onOpen:c,dataAid:g,hideCloseButton:l,titleAlign:b,overlayCustomCSS:h,closeTimeoutMS:u,shouldCloseOnOverlayClick:t.shouldCloseOnOverlayClick,shouldCloseOnEsc:t.shouldCloseOnEsc,customCSS:C("gc-message-box",f),onClose:function(){return d(void 0)},controls:(e=i.length>2?"right":"center",i.reduce(function(e,t){var n={onClick:function(){return d(t)}},r=w&&w[t];return"ok"===t&&(n.text=r||"OK",n.accent="full"),"yes"===t&&(n.text=r||"Yes",n.accent="full"),"no"===t&&(n.text=r||"No",n.accent="full"),"cancel"===t&&(n.text=r||"Cancel"),e.buttons.push(n),e},{align:e,buttons:[]}))};return Object(r.h)(jt,p({},_),Object(r.h)("div",{className:Ct.element("message").name},o))},t}(m),Nt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={showMessage:!1,showDialog:!1},t.onClose=function(e){return function(n){t.setState({showMessage:!1,showDialog:!1}),e&&e(n)}},t.showDialog=function(e,n,r,o,i){t._dialogContent=n,t._dialogProps={title:e,controls:r,level:o,onClose:t.onClose(i),open:!0},t.setState({showDialog:!0,showMessage:!1})},t.showMessage=function(e,n,r,o,i){t._messageProps={title:e,message:n,controls:r,level:i,onClose:t.onClose(o),open:!0},t.setState({showMessage:!0,showDialog:!1})},t}return d(t,e),t.prototype.componentDidMount=function(){B.current.modals&&console.warn("Repeated <ModalApiProvider/> mounting"),B.current.modals={dialog:this.showDialog,message:this.showMessage}},t.prototype.render=function(){var e=this._messageProps,t=this._dialogProps,n=this._dialogContent,o=this.state,i=o.showMessage,a=o.showDialog;return i?Object(r.h)(Lt,p({},e)):a?Object(r.h)(jt,p({},t),n):null},t}(m),Et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._loaderBlock=new P("gc-loader"),t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a=this.props,s=a.block,l=a.background,c=a.level,u=a.position,d=a.width,p=a.height,f=this._loaderBlock,h=C(f.name,((e={})[f.modifier("block")]=s,e),((t={})[f.modifier("transparent")]="transparent"===l,t),((n={})[f.modifier("info")]="info"===c,n),((o={})[f.modifier("warning")]="warning"===c,o),((i={})[f.modifier("error")]="error"===c,i));return Object(r.h)("div",{className:h,style:{position:u,width:d,height:p}},Object(r.h)("div",null),Object(r.h)("div",null),Object(r.h)("div",null))},t}(m),At=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._headingBlock=new P("gc-heading"),t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s,l,c,u,d,f=this._headingBlock,h=this.props,g=h.text,m=h.title,v=h.size,y=h.uppercase,b=h.weight,w=h.actions,_=h.align,S=h.level,x=h.strikeThrough,k=h.loading,O=h.customCSS,P=C(f.name,O,((e={})[f.modifier("size-md")]="default"===v,e),((t={})[f.modifier("size-lg")]="large"===v,t),((n={})[f.modifier("level-info")]="info"===S,n),((o={})[f.modifier("level-warning")]="warning"===S,o),((i={})[f.modifier("level-error")]="error"===S,i),((a={})[f.modifier("case-default")]=!1===y,a),((s={})[f.modifier("no-strike")]=!1===x,s),((l={})[f.modifier("align-center")]="center"===_,l),((c={})[f.modifier("align-right")]="right"===_,c),((u={})[f.modifier("weight-light")]="light"===b,u),((d={})[f.modifier("weight-bold")]="bold"===b,d));return Object(r.h)("div",{className:P},Object(r.h)("h4",{className:f.element("text").name,title:m},g,k&&Object(r.h)(Et,{background:"transparent",level:S})),w&&"center"!==_&&Object(r.h)(Ge,p({},w,{size:v,defaultLevel:S,customCSS:f.element("actions").name})))},t.defaultProps={size:"small",weight:"normal",align:"left",uppercase:!0,strikeThrough:!0},t}(m),Vt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._itemBlock=new P("gc-notification-details-item"),t.state={expanded:t.props.active},t.onDismiss=function(e){return function(){return B.global.notifications.dismiss(e)}},t.onToggleExpand=function(){return t.setState({expanded:!t.state.expanded})},t}return d(t,e),t.prototype.render=function(){var e,t=this._itemBlock,n=this.props,o=n.notification,i=n.localization,a=this.state.expanded,s={type:"button",background:"transparent",accent:"icon",level:o.level},l=p({},s,{icon:{type:"svg",content:re["chevron-up"],rotate:a?void 0:"180"},onClick:this.onToggleExpand,title:a?i.collapseTitle:i.expandTitle}),c=p({},s,{icon:{type:"svg",content:re.close},onClick:this.onDismiss(o.id),title:i.dismissLabel});return Object(r.h)("div",{className:t.name},Object(r.h)("div",{className:t.element("main").name},Object(r.h)("div",{className:t.element("caption").name,title:o.caption},Object(r.h)("span",null,o.caption)),Object(r.h)(Ge,{size:"small",items:[o.content&&l,c]})),a&&Object(r.h)("div",{className:t.element("content").name,dangerouslySetInnerHTML:{__html:(e=o.content||"",void 0===e&&(e=""),ee.reduce(function(e,t){return e.replace(t.pattern,t.template)},e))}}))},t}(m),It=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._detailsBlock=new P("gc-notification-details"),t._textDefaults={dismissLabel:"Dismiss",dismissAllLabel:"Dismiss All",expandTitle:"Expand",collapseTitle:"Collapse",errorCategoryLabel:"Error",warningCategoryLabel:"Warning",infoCategoryLabel:"Notification"},t.onDismissAll=function(){return B.global.notifications.dismissAll()},t.getLocalizedText=function(e,n){void 0===n&&(n=0);var r=t.props.localization;return r&&r[e]?"function"==typeof r[e]?r[e](n):r[e]:t._textDefaults[e]},t}return d(t,e),t.prototype.render=function(){var e=this,t=this._detailsBlock,n=this.props,o=n.notifications,i=n.activeId,a=n.customCSS,s=n.dataAid,l={size:"small",accent:"full",text:this.getLocalizedText("dismissAllLabel"),onClick:this.onDismissAll,width:"100%",textAlign:"center"},c={error:[],warning:[],info:[]};return o.map(function(e){return c[e.level].push(e)}),Object(r.h)("div",{className:C(t.name,a),"data-aid":s&&s+"_notification-details"},Object(r.h)("div",{className:t.element("content").name},Object(r.h)(je,p({},{direction:"vertical"}),Object.keys(c).map(function(n){return c[n].length>0&&Object(r.h)("div",{key:n,className:C(t.element("category").name,t.element("category").modifier(n))},Object(r.h)(At,{text:c[n].length+" "+e.getLocalizedText(n+"CategoryLabel",c[n].length)}),c[n].map(function(t){var n={notification:t,active:t.id===i,localization:{expandTitle:e.getLocalizedText("expandTitle"),collapseTitle:e.getLocalizedText("collapseTitle"),dismissLabel:e.getLocalizedText("dismissLabel")}};return Object(r.h)(Vt,p({key:t.id},n))}))}))),Object(r.h)("div",{className:t.element("action").name},Object(r.h)(ie,p({},l))))},t}(m),Ht=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._progressBarBlock=new P("gc-progress"),t}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s,l=this._progressBarBlock,c=this.props,u=c.id,d=c.progress,p=c.indeterminate,f=c.pause,h=c.size,g=c.showProgress,m=c.color,v=c.transparent,y=c.width,b=c.inline,w=c.customCSS,_=c.dataAid,S=C(l.name,w,((e={})[l.modifier("inline")]=b,e),((t={})[l.modifier("accent")]="accent"===m,t),((n={})[l.modifier("semi-transparent")]="semi"===v,n),((o={})[l.modifier("transparent")]="full"===v,o),((i={})[l.modifier("indeterminate")]=p,i),((a={})[l.modifier("pause-error")]="error"===f,a),((s={})[l.modifier("pause-warning")]="warning"===f,s),{"gc-size-sm":"small"===h},{"gc-size-lg":"large"===h}),x=y&&{width:y}||void 0,k=void 0;if(m&&"default"!==m&&"accent"!==m&&(k=m),p){var O=k&&{backgroundColor:k}||void 0;return Object(r.h)("div",{id:u,"data-aid":_,className:S,style:x},Object(r.h)("div",{className:"gc-progress__fill",style:O}))}var P=100*(d&&!isNaN(d)&&d>=0&&d<=1&&d||0),T=Math.round(P)+"%",M={width:P+"%",backgroundColor:k};return Object(r.h)("div",{id:u,"data-aid":_,className:S,style:x},Object(r.h)("div",{className:"gc-progress__fill",style:M},g&&"small"!==h&&Object(r.h)("span",{className:"gc-progress__value"},T)))},t}(m),Rt=new P("gc-notification"),Ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t,n=this.props,o=n.task,i=n.localization,a=n.rounded,s=n.size,l=n.dataAid,c={rounded:a,customCSS:Rt.element("button").name,icon:{type:"svg",content:re.cancel},title:i.cancelTaskTitle,onClick:o.cancel},u=function(e){return Number.isFinite(e)&&e>1?e/100:e}(o.progress),d={size:"small",indeterminate:!u||u===1/0,progress:u},f=C(Rt.name,Rt.modifier("task"),((e={})[Rt.modifier("rounded")]=a,e),((t={})[Rt.modifier("size-small")]="small"===s,t));if("small"===s){var h=p({},c,{size:"small",icon:p({},c.icon,{size:"small"}),customCSS:Rt.element("button-mini").name});return Object(r.h)("div",{className:f,"data-aid":l&&l+"_task"},Object(r.h)("div",{className:Rt.element("tag").name},Object(r.h)("div",{className:Rt.element("loader").name},Object(r.h)("div",null)),o.cancel&&Object(r.h)(ie,p({},h))),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("caption").name},o.caption),!d.indeterminate&&Object(r.h)(Ht,p({},d))))}return Object(r.h)("div",{className:f,"data-aid":l&&l+"_task"},Object(r.h)("div",{className:Rt.element("tag").name},Object(r.h)("div",{className:Rt.element("loader").name},Object(r.h)("div",null)),o.cancel&&Object(r.h)(ie,p({},c))),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("caption").name},o.caption),Object(r.h)(Ht,p({},d)),Object(r.h)("div",{className:Rt.element("status").name},o.statusText)))},t}(m),zt={error:{icon:{type:"svg",content:re["alert-circle-outline"]},modifier:"error"},warning:{icon:{type:"svg",content:re["alert-outline"]},modifier:"warning"},info:{icon:{type:"svg",content:re.information},modifier:"info"}},Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t,n=this.props,o=n.notification,i=n.onDetailsClick,a=n.onDismiss,s=n.localization,l=n.rounded,c=n.size,u=n.dataAid,d=function(e){return zt[e.level]}(o),f=d.icon,h=d.modifier,g=C(Rt.name,Rt.modifier(h),((e={})[Rt.modifier("rounded")]=l,e),((t={})[Rt.modifier("size-small")]="small"===c,t)),m={type:"button",onClick:i,title:s.showDetailsLabel,customCSS:Rt.element("button").name},v={type:"button",onClick:a,title:s.dismissLabel,customCSS:Rt.element("button").name};if("small"===c){var y={type:"svg",content:re["dots-vertical"],rotate:"90"},b={type:"svg",content:re.close};return Object(r.h)("div",{className:g,"data-aid":u&&u+"_notification"},Object(r.h)("div",{className:Rt.element("tag").name},Object(r.h)(te,{icon:p({},f,{size:c})})),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("caption").name,title:o.caption},o.caption),Object(r.h)("div",{className:Rt.element("actions").name},Object(r.h)(Ge,{size:"small",rounded:l,items:[o.content&&p({},m,{icon:y,customCSS:Rt.element("button-mini").name}),p({},v,{icon:b,customCSS:Rt.element("button-mini").name})]}))))}return Object(r.h)("div",{className:g,"data-aid":u&&u+"_notification"},Object(r.h)("div",{className:Rt.element("tag").name},Object(r.h)(te,{icon:o.icon||f})),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("caption").name,title:o.caption},o.caption),Object(r.h)("div",{className:Rt.element("actions").name},o.content&&Object(r.h)(ie,p({},m,{rounded:l}),s.showDetailsLabel),Object(r.h)(ie,p({},v,{rounded:l}),s.dismissLabel))))},t}(m),Wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t=this.props,n=t.notifications,o=t.onShowAll,i=t.onDismissAll,a=t.localization,s=t.rounded,l=t.size,c=t.dataAid,u=C(Rt.name,Rt.modifier("batch"),((e={})[Rt.modifier("rounded")]=s,e[Rt.modifier("size-small")]="small"===l,e)),d={type:"button",onClick:o,customContent:a.showAllLabel,customCSS:Rt.element("button").name},f={type:"button",onClick:i,customContent:a.dismissAllLabel,customCSS:Rt.element("button").name};return"small"===l?Object(r.h)("div",{className:u,"data-aid":c&&c+"_batch"},Object(r.h)("div",{className:Rt.element("tag").name},"+"+(n.length-3)),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("actions").name},Object(r.h)(Ge,{size:"small",rounded:s,items:[d,f]})))):Object(r.h)("div",{className:u,"data-aid":c&&c+"_batch"},Object(r.h)("div",{className:Rt.element("tag").name},"+"+(n.length-3)),Object(r.h)("div",{className:Rt.element("content").name},Object(r.h)("div",{className:Rt.element("actions").name},Object(r.h)(ie,p({},d),a.showAllLabel),Object(r.h)(ie,p({},f),a.dismissAllLabel))))},t}(m),Ut={expanded:!1,activeId:void 0,hiddenIds:[]},Yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._containerBlock=new P("gc-notifications-container"),t._textDefaults={dismissLabel:"Dismiss",dismissAllLabel:"Dismiss All",showAllLabel:"Show All",showDetailsLabel:"Show Details",cancelTaskTitle:"Cancel this task"},t._timersMap={},t.state=Ut,t.generateTimersMap=function(){var e=t.props,n=e.autoDismissTimeout,r=e.autoHideTimeout;e.notifications.forEach(function(e){t._timersMap[e.id]||((e.autoDismissTimeout&&e.autoDismissTimeout>0||n&&n>0)&&(t._timersMap[e.id]={},t._timersMap[e.id].dismiss=window.setTimeout(function(){return t.autoDismissHandler(e.id)},e.autoDismissTimeout||n)),r&&(t._timersMap[e.id]||(t._timersMap[e.id]={}),t._timersMap[e.id].hide=window.setTimeout(function(){return t.hideNotification(e.id)},r)))})},t.autoDismissHandler=function(e){var n=t.props.notifications.findIndex(function(t){return t.id===e});-1!==n&&t.onDismiss(n)()},t.clearTimersMapItem=function(e){t._timersMap[e]&&(clearTimeout(t._timersMap[e].dismiss),clearTimeout(t._timersMap[e].hide),delete t._timersMap[e])},t.clearTimersMapAll=function(){Object.keys(t._timersMap).forEach(function(e){clearTimeout(t._timersMap[e].dismiss),clearTimeout(t._timersMap[e].hide)}),t._timersMap={}},t.hideNotification=function(e){t.setState({hiddenIds:t.state.hiddenIds.concat([e])})},t.hideNotificationsAll=function(){var e=t.props.notifications.map(function(e){return e.id});t.setState({hiddenIds:e})},t.clearHiddenNotification=function(e){var n=t.state.hiddenIds;n.length&&t.setState({hiddenIds:n.filter(function(t){return t!==e})})},t.refreshState=function(){t.setState(Ut),t.clearTimersMapAll()},t.setActiveIndex=function(e){t.setState({activeId:e})},t.toggleExpand=function(e){var n=t.state.expanded;e&&n||!1===e&&!n||t.setState({expanded:!n})},t.onDismiss=function(e){return function(){var n=t.props.notifications;t.clearTimersMapItem(n[e].id),t.clearHiddenNotification(n[e].id),t.props.onDismiss(e),1===n.length&&t.refreshState()}},t.onDismissAll=function(){t.props.onDismiss(-1),t.refreshState()},t.onDetailsOpen=function(e){return function(){t.props.autoHideTimeout&&t.hideNotificationsAll(),t.clearTimersMapAll(),t.setActiveIndex(e),t.toggleExpand(!0)}},t.getLocalizedText=function(e){var n=t.props.localization;return n&&n[e]||t._textDefaults[e]},t}return d(t,e),t.prototype.componentDidMount=function(){this.generateTimersMap()},t.prototype.componentWillUnmount=function(){this.clearTimersMapAll()},t.prototype.componentDidUpdate=function(e){e.notifications!==this.props.notifications&&this.generateTimersMap()},t.prototype.render=function(){var e,t,n,o=this,i=this._containerBlock,a=this.props,s=a.notifications,l=a.tasks,c=a.rounded,u=a.position,d=a.showLastThree,f=a.customCSS,h=a.detailsCustomCSS,g=a.localization,m=a.size,v=a.dataAid,y=this.state,b=y.expanded,w=y.activeId,_=y.hiddenIds;if(!s.length&&!l.length)return null;if(b){var S={notifications:s,activeId:w,localization:g,customCSS:h,dataAid:v};return Object(r.h)(Dt,{open:b,onClose:function(){return o.toggleExpand(!1)},customCSS:"gc-notifications-modal"},Object(r.h)(It,p({},S)))}var x=_.length?s.filter(function(e){return!_.includes(e.id)}):s,k=!d&&x.length>3;x=d?x.slice(-3):k?x.slice(0,3):x;var O=C(i.name,f,((e={})[i.modifier("reversed")]=d,e),((t={})[i.modifier("position-"+u)]=u,t),((n={})[i.modifier("position-bottom-center")]=!u,n)),P={notifications:s,rounded:c,size:m,dataAid:v,localization:{showAllLabel:this.getLocalizedText("showAllLabel"),dismissAllLabel:this.getLocalizedText("dismissAllLabel")},onShowAll:this.onDetailsOpen(),onDismissAll:this.onDismissAll};return Object(r.h)("div",{className:O},l.map(function(e){var t={task:e,rounded:c,size:m,dataAid:v,localization:{cancelTaskTitle:o.getLocalizedText("cancelTaskTitle")}};return Object(r.h)(Ft,p({key:e.id},t))}),x.map(function(e,t){var n={notification:e,rounded:c,size:m,dataAid:v,onDetailsClick:o.onDetailsOpen(e.id),onDismiss:o.onDismiss(t),localization:{dismissLabel:o.getLocalizedText("dismissLabel"),showDetailsLabel:o.getLocalizedText("showDetailsLabel")}};return Object(r.h)(Bt,p({key:e.id},n))}),k&&Object(r.h)(Wt,p({},P)))},t}(m),$t=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._subscribedCallbacks=[],t.state={notifications:[],tasks:[]},t.onSend=function(e){var n=e.type,r=e.payload,o=t.state,i=o.notifications,a=o.tasks;if("notification"===n){var s=p({},r);"info"!==s.level&&"warning"!==s.level&&(s.level="error"),t.setState({notifications:i.concat([s])},t.onUpdate)}else t.setState({tasks:a.concat([p({},r,{cancel:t.onTaskCancel(r)})])},t.onUpdate)},t.onDismiss=function(e){var n=t.state.notifications.findIndex(function(t){return t.id===e});-1!==n&&t._notifier&&t._notifier.onDismiss(n)()},t.onDismissAll=function(){return t._notifier&&t._notifier.onDismissAll()},t.onTaskUpdate=function(e){var n=e.id,r=e.progress,o=e.statusText;t.setState({tasks:t.state.tasks.map(function(e){return e.id===n?p({},e,{progress:r,statusText:o||e.statusText}):e})})},t.subscribe=function(e){t._subscribedCallbacks=t._subscribedCallbacks.concat([e])},t.unsubscribe=function(e){t._subscribedCallbacks=t._subscribedCallbacks.filter(function(t){return t!==e})},t.getState=function(){return t.state},t.onUpdate=function(){t._subscribedCallbacks.forEach(function(e){return e&&e(t.state)})},t.onTaskCancel=function(e){var n=e.id,r=e.cancel;return function(){var e=t.state.tasks;if(!r||!1!==r()){var o=e.findIndex(function(e){return e.id===n});t.setState({tasks:t.state.tasks.filter(function(e,t){return t!==o})},t.onUpdate)}}},t.dismissByIndex=function(e){var n=t,r=n.props.onDismiss,o=n.state.notifications;-1===e?t.setState({notifications:[]},t.onUpdate):t.setState({notifications:o.filter(function(t,n){return n!==e})},t.onUpdate),r&&(-1===e?o:o.slice(e,e+1)).forEach(function(e){return r(e.id)})},t}return d(t,e),t.prototype.componentDidMount=function(){B.global.notifications?console.warn("Repeated <NotificationManager/> mounting"):B.global.notifications={send:this.onSend,dismiss:this.onDismiss,dismissAll:this.onDismissAll,updateTask:this.onTaskUpdate,subscribe:this.subscribe,unsubscribe:this.unsubscribe,getState:this.getState}},t.prototype.componentWillUnmount=function(){B.global.notifications&&B.global.notifications.send===this.onSend&&delete B.global.notifications},t.prototype.render=function(){var e=this,t=this._subscribedCallbacks,n=this.props,o=n.autoDismissTimeout,i=n.autoHideTimeout,a=n.localization,s=n.size,l=n.rounded,c=n.position,u=n.customCSS,d=n.detailsCustomCSS,f=n.dataAid,h=this.state,g={notifications:h.notifications,size:s,rounded:l,position:c,tasks:h.tasks,autoDismissTimeout:o,localization:a,customCSS:u,detailsCustomCSS:d,dataAid:f,autoHideTimeout:t.length>0&&(i||2e3)||void 0,showLastThree:t.length>0,onDismiss:this.dismissByIndex};return Object(r.h)(Yt,p({},g,{ref:function(t){return e._notifier=t}}))},t}(m);function Gt(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={notifications:[],tasks:[],amount:{info:0,warning:0,error:0,notifications:0,tasks:0,total:0},level:"info"},e.update=function(t){for(var n,r=t.notifications,o=t.tasks,i={info:0,warning:0,error:0,notifications:0,tasks:0,total:0},a=0,s=r;a<s.length;a++){++i[s[a].level]}i.notifications=r.length,i.tasks=o.length,i.total=o.length+r.length,n=i.error?"error":i.warning?"warning":"info",e.setState({notifications:r,tasks:o,amount:i,level:n})},e}return d(n,t),n.prototype.componentDidMount=function(){B.global.notifications&&(B.global.notifications.subscribe(this.update),this.update(B.global.notifications.getState()))},n.prototype.componentWillUnmount=function(){B.global.notifications&&B.global.notifications.unsubscribe(this.update)},n.prototype.render=function(){return Object(r.h)(e,p({},this.props,{notificationsData:p({},this.state)}))},n}(m)}var qt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.notifications,n=e.placeholder,o={notifications:t,localization:e.localization,customCSS:"gc-notification-details--menu-panel"};return Object(r.h)(lt,p({},this.props),t.length>0?Object(r.h)(It,p({},o)):Object(r.h)(ct,{text:n}))},t.defaultProps={id:"__gc-notifications__",toggle:{icon:{type:"svg",content:re["card-text-outline"]},text:"Notifications"},customScroll:!0,placeholder:"There are no notifications"},t}(m),Kt=function(e){function t(t){var n=e.call(this,t)||this;n._menuBlock=new P("gc-menu"),n._panelHeaderBlock=n._menuBlock.element("panel-container").element("header"),n._panelToggleElement=n._menuBlock.element("panel-toggle"),n._panelToggleChevronElement=n._menuBlock.element("panel-toggle-chevron"),n._menuWidthMap={small:void 0,default:void 0,large:void 0},n._transitionSubscribers={start:[],end:[]},n.getPanelsAndSplitters=function(e){var t=n.props,o=t.notificationPanel,i=t.notificationsData,a=y.toArray(e).filter(function(e){return I.is(E(e),lt)||I.is(E(e),at)});if(i&&o){var s=i.notifications,l=i.amount,c=l.notifications>0||o.alwaysVisible,u=p({},o,{notifications:s});l.notifications>0&&!o.alwaysVisible&&a.push(Object(r.h)(at,null)),c&&a.push(Object(r.h)(qt,p({},u)))}return a},n.onToggle=function(){var e=n,t=e._menuDiv,r=e._transitionSubscribers,o=e.props.onToggle,i=e.state.status;o&&o(i),r.start.forEach(function(e){return e(i)}),t&&t.addEventListener("transitionend",n.onTransitionEnd)},n.onTransitionEnd=function(e){var t=n._menuDiv;if(t.removeEventListener("transitionend",n.onTransitionEnd),e.target===t){var r=B.current.dropdowns.current,o=r&&r.getMenuNode();o&&(o.classList.add("gc-dd-adjustment"),r.updateMenuRect()),n._transitionSubscribers.end.forEach(function(e){return e(n.state.status)})}},n.generateMenuWidthMap=function(){return{small:n.props.panelWidth&&parseInt(n.props.panelWidth,10)+R.SMALL+"px",default:n.props.panelWidth&&parseInt(n.props.panelWidth,10)+R.DEFAULT+"px",large:n.props.panelWidth&&parseInt(n.props.panelWidth,10)+R.LARGE+"px"}},n.onWindowHandlerStart=function(e){var t=n,r=t._menuDiv;t.props.noCloseOnWindowClick||!r||document.body.classList.contains(Tt)||r===e.target||r.contains(e.target)||(window.addEventListener("mouseup",n.onWindowHandlerEnd),window.addEventListener("touchend",n.onWindowHandlerEnd),window.addEventListener("click",n.onWindowHandlerEnd))},n.onWindowHandlerEnd=function(){var e=n.state,t=e.status,r=e.pinned;"expanded"===t?n.collapseMenu():"panel"!==t||r||n.closePanel(),window.removeEventListener("mouseup",n.onWindowHandlerEnd),window.removeEventListener("touchend",n.onWindowHandlerEnd),window.removeEventListener("click",n.onWindowHandlerEnd)},n.expandMenu=function(){n.setState({status:"expanded"})},n.collapseMenu=function(){n.state.pinned?n.setState({status:"panel"}):n.setState({status:"collapsed"})},n.toggleMenu=function(){"expanded"!==n.state.status?n.expandMenu():n.collapseMenu()},n.openPanel=function(e){e!==n.state.activePanelId&&(n.setState({activePanelId:e,status:"panel"}),n.onPanelChange(e))},n.closePanel=function(e){var t=n.state,r=t.activePanelId;"panel"!==t.status||void 0!==e&&r!==e||(n.setState({activePanelId:null,status:"collapsed",pinned:!1}),n.onPanelChange(null))},n.pinPanel=function(e){var t=n.state,r=t.activePanelId,o=t.status;void 0===e&&"panel"===o&&r?n.setState({pinned:!0}):void 0!==e&&(n.setState({activePanelId:e,status:"panel",pinned:!0}),n.onPanelChange(e))},n.unpinPanel=function(){n.setState({pinned:!1})},n.onPanelChange=function(e){var t=n.props.onPanelChange;t&&t(e)},n.subscribeToTransition=function(e){var t=e.start,r=e.end;return t&&n._transitionSubscribers.start.push(t),r&&n._transitionSubscribers.end.push(r),function(){t&&(n._transitionSubscribers.start=n._transitionSubscribers.start.filter(function(e){return e!==t})),r&&(n._transitionSubscribers.end=n._transitionSubscribers.end.filter(function(e){return e!==r}))}},n.onPanelToggleClick=function(e){return function(){var t=n.state,r=t.activePanelId,o=t.pinned;"panel"!==t.status||r!==e||o?(n.setState({activePanelId:e,status:"panel"}),n.onPanelChange(e)):(n.setState({activePanelId:null,status:"collapsed"}),n.onPanelChange(null))}},n.mapPanelToggles=function(e,t){var o,i,a,s,l=n,c=l.props,u=c.size,d=c.legacyMode,f=c.notificationsData,h=l.state,g=h.status,m=h.activePanelId,v=l._panelToggleElement,y=l._panelToggleChevronElement;if(I.is(E(e),at))return Object(r.h)(at,{key:"panel=splitter-"+t});var b,w=A(e),_=w.id,S=w.toggle,x=w.disabled,k=w.dataAid,O=w.notifications,P=w.chevronIcon,T=w.hideChevron;if(O){var M=f,D=M.amount,j=M.level;b=D.notifications>0?{nearIcon:!0,rounded:!0,content:D.notifications,level:j}:void 0}var L={dataAid:k?k+"_toggle":void 0,block:!0,accent:d?"icon":"full",background:d?"transparent":"default",rounded:!1,size:u,badge:b,width:"100%",onClick:n.onPanelToggleClick(_),icon:S.icon,text:S.text,title:S.title,disabled:x},N={icon:P||{type:"svg",content:re["chevron-up"],rotate:"90",size:"small"},customCSS:C(y.name,(o={},o[y.modifier("accent")]=d,o))},V=C(v.name,((i={})[v.modifier("size-"+u)]="default"!==u,i),((a={})[v.modifier("active")]="panel"===g&&_===m,a),((s={})[v.modifier("no-chevron")]=T,s));return Object(r.h)("div",{key:"menu-panel-"+_,className:V},Object(r.h)(ie,p({},L)),!T&&Object(r.h)(te,p({},N)))},n.mapItems=function(e,t){if(e){var o=n.props,i=o.size,a=o.legacyMode,s="menu-item-"+t;if("splitter"===e.type)return Object(r.h)(at,{key:s});if("button"===e.type){var l={block:!0,accent:a?"icon":"full",background:a?"transparent":"default",rounded:!1,size:i,width:"100%",badge:e.badge&&p({},e.badge,{nearIcon:!0})};return Object(r.h)(ie,p({key:s},e,l),e.customContent)}return"custom"===e.type?Object(r.cloneElement)(e.content,{key:s}):void 0}},n.onToggleClick=function(){n.toggleMenu()},n.onPinClick=function(){n.setState({pinned:!n.state.pinned})},n.getNode=function(){return n._menuDiv};var o={activePanelId:null,status:"collapsed",pinned:!1,logoContainerElement:null};return t.defaultPanelId?(o.activePanelId=t.defaultPanelId,o.status="panel"):"expanded"===t.defaultStatus&&(o.status="expanded"),t.panelWidth&&(n._menuWidthMap=n.generateMenuWidthMap()),n.state=o,n}return d(t,e),t.getDerivedStateFromProps=function(e,t){var n=p({},t),r=!1;return"__gc-notifications__"!==n.activePanelId||e.notificationPanel.alwaysVisible||e.notificationsData.amount.notifications||(n.activePanelId=null,n.status="collapsed",r=!0),void 0!==e.activePanelId&&e.activePanelId!==n.activePanelId&&(n.activePanelId=e.activePanelId,null===e.activePanelId?n.status="collapsed":n.status="panel",r=!0),void 0!==e.status&&e.status!==n.status&&(n.status=e.status,r=!0),void 0!==e.pinned&&e.pinned!==n.pinned&&(n.pinned=e.pinned,r=!0),r?n:null},t.prototype.componentDidMount=function(){B.current.menu={expand:this.expandMenu,collapse:this.collapseMenu,toggle:this.toggleMenu,panels:{open:this.openPanel,close:this.closePanel,pin:this.pinPanel,unpin:this.unpinPanel},onTransition:this.subscribeToTransition};var e=this.props.logo;if(e){var t=document.getElementById("appbar_"+e.appBarId+"_logo_container");null!==t&&this.setState({logoContainerElement:t})}window.addEventListener("mousedown",this.onWindowHandlerStart),window.addEventListener("touchstart",this.onWindowHandlerStart)},t.prototype.componentWillUnmount=function(){window.removeEventListener("mousedown",this.onWindowHandlerStart),window.removeEventListener("touchstart",this.onWindowHandlerStart),window.removeEventListener("mouseup",this.onWindowHandlerEnd),window.removeEventListener("touchend",this.onWindowHandlerEnd),window.removeEventListener("click",this.onWindowHandlerEnd)},t.prototype.componentDidUpdate=function(e,t){var n=this.props.panelWidth,r=this.state.status;e.panelWidth!==n&&(this._menuWidthMap=this.generateMenuWidthMap()),t.status!==r&&this.onToggle()},t.prototype.render=function(){var e,t,n,o,i,a,s,l,c=this,u=this._menuBlock,d=this._panelHeaderBlock,f=this.props,h=f.items,g=f.size,m=f.mode,v=f.children,y=f.autoHideScrollbar,w=f.logo,_=f.customCSS,S=f.dataAid,x=f.legacyMode,k=f.toggleText,O=f.toggleTitle,P=f.toggleContent,T=f.pinBtnIcon,M=f.panelWidth,D=f.hidePinBtn,j=this.state,L=j.activePanelId,N=j.status,E=j.pinned,V=j.logoContainerElement,I=C(u.name,_,((e={})[u.modifier("expanded")]="expanded"===N,e),((t={})[u.modifier("panel")]="panel"===N,t),((n={})[u.modifier("drawer")]="drawer"===m,n),((o={})[u.modifier("size-small")]="small"===g,o),((i={})[u.modifier("size-large")]="large"===g,i),((a={})[u.modifier("legacy")]=x,a));"drawer"!==m&&M&&"panel"===N&&(l={width:this._menuWidthMap[g||"default"]});var H,R={dataAid:S?S+"_toggle":void 0,block:!0,accent:x?"icon":"full",background:x?"transparent":"default",size:g,icon:{type:"svg",content:re.menu,size:g},text:k,title:O||k,onClick:this.onToggleClick},F=h?h.map(this.mapItems):[],z={direction:"vertical",style:{container:{position:"unset"}},color:"contrast",size:"small",growOnHover:"expanded"===N,autoHide:y},B=[],W=this.getPanelsAndSplitters(v);W.length>0&&(H=W.find(function(e){return A(e).id===L}),B=W.map(this.mapPanelToggles));var U=C(u.element("panel-container").name,((s={})[u.element("panel-container").modifier("visible")]="panel"===N,s)),Y=M&&"panel"===N&&{width:M}||void 0,$={dataAid:S?S+"_pin":void 0,block:!0,icon:T||{type:"svg",content:re.pin},accent:"text+icon",background:"transparent",size:"small",customCSS:E?"gc-btn-pin gc-btn-pin--pinned":"gc-btn-pin",onClick:this.onPinClick};g&&($.size="large"===g?"default":"small");return Object(r.h)("div",{className:I,style:l,ref:function(e){return c._menuDiv=e},"data-aid":S},function(){var e,t,n,o,i,a;if(!w||!V)return null;var s=u.element("logo"),l=C(s.name,((e={})[s.modifier("expanded")]="expanded"===N,e),((t={})[s.modifier("drawer")]="drawer"===m,t),((n={})[s.modifier("menu-size-small")]="small"===g,n),((o={})[s.modifier("menu-size-large")]="large"===g,o),((i={})[s.modifier("size-small")]=!x&&"small"===w.size,i),((a={})[s.modifier("size-large")]=x||"large"===w.size,a));return b(Object(r.h)("div",{className:l},w.content),V)}(),Object(r.h)("div",{className:u.element("btn-container").name},Object(r.h)(ie,p({key:"menu-toggle"},R),P),Object(r.h)(at,{key:"menu-toggle-splitter"}),B.length>0&&B,B.length>0&&Object(r.h)(at,{key:"menu-panels-splitter"}),F.length>0&&Object(r.h)("div",{className:u.element("btn-container").element("scrollable-container").name},Object(r.h)(je,p({},z),F))),Object(r.h)("div",{className:U,style:Y},"panel"===N&&H&&Object(r.h)("h2",{className:d.name},A(H).toggle.text,!D&&Object(r.h)(ie,p({},$))),"panel"===N&&H&&Object(r.h)("div",{className:u.element("panel-container").element("content").name},A(H).customScroll&&H||Object(r.h)(je,null,H))))},t}(m),Xt=Gt(Kt),Zt=function(e){return e.notificationPanel?Object(r.h)(Xt,p({},e)):Object(r.h)(Kt,p({},e))},Jt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._panelBlock=new P("gc-sidebar__panel"),t}return d(t,e),t.prototype.render=function(){var e,t=this._panelBlock,n=this.props,o=n.children,i=n.customScroll,a=n.customCSS,s=n.dataAid,l=C(t.name,a,((e={})[t.modifier("fill-container")]=i,e));return Object(r.h)("div",{className:l,"data-aid":s},o)},t}(m);I.set(Jt,"SidebarPanel");var Qt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._sidebarBlock=new P("gc-sidebar"),t._panelIds=[],t._menu=null,t._collapsedMenuWidth=null,t._isMounted=!1,t._transitionSubscribers={start:[],end:[]},t.getPanels=function(e){return y.toArray(e).filter(function(e){return I.is(E(e),Jt)})},t.state={activePanelId:t.props.defaultPanelId||null,status:t.props.defaultPanelId?"expanded":"collapsed",toggleRoot:null},t.onToggle=function(){var e=t,n=e._sidebarDiv,r=e._transitionSubscribers,o=e.props.onToggle,i=e.state.status;t.setMenuWidth(),o&&o(i),r.start.forEach(function(e){return e(i)}),n&&n.addEventListener("transitionend",t.onTransitionEnd)},t.onTransitionEnd=function(e){var n=t._sidebarDiv;n.removeEventListener("transitionend",t.onTransitionEnd),e.target===n&&t._transitionSubscribers.end.forEach(function(e){return e(t.state.status)})},t.open=function(e){var n=t.state.activePanelId;if(e)n!==e&&t._panelIds.includes(e)&&t.setState({activePanelId:e,status:"expanded"});else{var r=n||t._panelIds[0];t.setState({activePanelId:r,status:"expanded"})}},t.close=function(){"expanded"===t.state.status&&t.setState({status:"collapsed"})},t.subscribeToTransition=function(e){var n=e.start,r=e.end;return n&&t._transitionSubscribers.start.push(n),r&&t._transitionSubscribers.end.push(r),function(){n&&(t._transitionSubscribers.start=t._transitionSubscribers.start.filter(function(e){return e!==n})),r&&(t._transitionSubscribers.end=t._transitionSubscribers.end.filter(function(e){return e!==r}))}},t.onTabSelect=function(e){var n=t.state,r=n.activePanelId;"collapsed"!==n.status&&e===r||t.setState({activePanelId:e,status:"expanded"})},t.toggleSidebar=function(){var e=t.state,n=e.status,r=e.activePanelId||t._panelIds[0],o="collapsed"===n?"expanded":"collapsed";t.setState({status:o,activePanelId:r})},t.setMenuWidth=function(){setTimeout(function(){if(t._menu){var e=t.state.status;if("collapsed"===e&&!t._collapsedMenuWidth){var n=window.getComputedStyle(t._menu),r=parseInt(n.getPropertyValue("padding-left"),10),o=parseInt(n.getPropertyValue("padding-right"),10),i=Array.from(t._menu.children).reduce(function(e,t){var n=t.firstChild;return e+(n?n.offsetWidth:t.offsetWidth)},0);t._collapsedMenuWidth=i+r+o}t._menu.style.width="collapsed"===e?t._collapsedMenuWidth+"px":""}},0)},t}return d(t,e),t.prototype.componentDidMount=function(){var e=this.props.toggleRootId,t=this.state.status;if(this._isMounted=!0,B.current.sidebar={open:this.open,close:this.close,onTransition:this.subscribeToTransition},e){var n=document.getElementById(e);null!==n&&this.setState({toggleRoot:n})}"collapsed"===t&&this.setMenuWidth()},t.prototype.componentWillUnmount=function(){this._isMounted=!1},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=n.toggleSize,o=n.children,i=n.onPanelChange,a=this.state,s=a.status,l=a.activePanelId;t.status!==s&&this.onToggle(),i&&t.activePanelId!==l&&i(l),e.children===o&&e.toggleSize===r||(this._collapsedMenuWidth=null,"collapsed"===s&&this.setMenuWidth())},t.prototype.render=function(){var e,t,n,o,i,a=this,s=this._sidebarBlock,l=this._isMounted,c=this.props,u=c.children,d=c.customCSS,f=c.toggleSize,h=c.toggleRootId,g=c.withSideToggle,m=c.dataAid,v=c.collapseTitle,y=c.expandTitle,w=this.state,_=w.activePanelId,S=w.status,x=w.toggleRoot,k=this.getPanels(u);if(!k.length)return null;var O=k.find(function(e){return A(e).id===_}),P={dataAid:m?m+"_panel-toggles":void 0,tabs:k.map(function(e,t){var n,r=A(e),o=r.toggle,i=r.id;return 0===t&&(a._panelIds=[]),a._panelIds.push(i),o.text&&(n=!o.icon||"expanded"===S&&i===_?o.text:void 0),p({},o,{id:i,text:n})}),design:"simplified",selectedTabId:"expanded"===S&&_?_:void 0,onTabSelect:this.onTabSelect,size:f||"large"},T={dataAid:m?m+"_toggle":void 0,icon:{type:"svg",content:re["sidebar-toggle"],rotate:"collapsed"===S?void 0:"180"},background:"transparent",accent:"icon",onClick:this.toggleSidebar,size:"default",title:"collapsed"===S?y||"Expand":v||"Collapse"};f&&(T.size="large"===f?"default":"small");var M=C(s.name,d,((e={})[s.modifier("collapsed")]="collapsed"===S,e),((t={})[s.modifier("size-sm")]="small"===f,t),((n={})[s.modifier("size-md")]="default"===f,n)),D=s.element("menu"),j=C(D.name,((o={})[D.modifier("collapsed")]=!l&&"collapsed"===S,o),((i={})[D.modifier("size-md")]="default"===f,i)),L=Object(r.h)("div",{className:j,ref:function(e){return a._menu=e}},Object(r.h)(ot,p({},P)),Object(r.h)(ie,p({},T)));return Object(r.h)("div",{className:M,"data-aid":m,ref:function(e){return a._sidebarDiv=e}},h?x&&b(L,x):L,Object(r.h)("div",{className:s.element("container").name},g&&Object(r.h)("div",{className:s.element("toggle-area").name},Object(r.h)("button",{className:s.element("toggle-area-button").name,onClick:this.toggleSidebar,"data-aid":m&&m+"_side-toggle"}),Object(r.h)("div",{className:s.element("toggle-area-bar").name})),O&&(A(O).customScroll?O:Object(r.h)(je,p({},{direction:"vertical"}),O))))},t}(m),en=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e,t,n,o,i,a,s,l,c,u,d=this.props,p=d.id,f=d.block,h=d.label,g=d.icon,m=d.customCSS,v=d.size,y=d.position,b=d.tooltip,w=d.width,_=d.dataAid,S=d.children,x=d.highlightRange,k=d.disabled,O=new P("gc-label"),T=C(O.name,m,((e={})[O.modifier("block")]=f,e),((t={})[O.modifier("position-left")]="left"===y,t),((n={})[O.modifier("position-right")]="right"===y,n),((o={})[O.modifier("with-tooltip")]=b,o),((i={})[O.modifier("with-icon")]=g,i),((a={})[O.modifier("size-small")]="small"===v,a),((s={})[O.modifier("size-large")]="large"===v,s),((l={})[O.modifier("disabled")]=k,l),((c={})[O.modifier("width-half")]="50%"===w,c),((u={})[O.modifier("width-auto")]="auto"===w,u)),M=void 0;if(b){var D=b.icon&&b.icon||{type:"svg",content:re["toggle-info"]};M=Object(r.h)(te,{icon:D})}var j={before:h,highlight:void 0,after:void 0};return x&&h&&(j.before=h.slice(0,x[0]),j.highlight=h.slice(x[0],x[1]),j.after=h.slice(x[1])),Object(r.h)("div",{id:p,"data-aid":_,className:T},Object(r.h)("div",{className:O.element("label").name,title:h},g?Object(r.h)("div",{className:O.element("icon").name},Object(r.h)(te,{icon:g})):Object(r.h)("span",null,j.before,j.highlight&&Object(r.h)("b",null,j.highlight),j.after),b&&Object(r.h)("div",{className:O.element("tooltip").name,title:b.text,onClick:b.onClick},M)),Object(r.h)("div",{className:O.element("content").name},S))},t}(m),tn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._area=null,t.onFocus=function(e){var n=t.props,r=n.selectOnFocus,o=n.onFocus;r&&e.target.select(),o&&o(e)},t.focus=function(){t._area&&t._area.focus()},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.id,o=t.name,i=t.block,a=t.rounded,s=t.size,l=t.width,c=t.textAlign,u=t.invalid,d=t.placeholder,f=t.defaultValue,h=t.value,g=t.title,m=t.disabled,v=t.dataAid,y=t.autoFocus,b=t.spellCheck,w=t.cols,_=t.rows,S=t.resize,x=t.customCSS,k=t.onChange,O=t.onBlur,P=t.onKeyDown,T=t.onKeyUp,M=t.onKeyPress,D=t.height,j=C("gc-textarea",x,{"gc-textarea--block":i},{"gc-textarea--text-align-center":"center"===c},{"gc-textarea--text-align-right":"right"===c},{"gc-textarea--invalid":u},{"gc-textarea--resize-vertical":"vertical"===S},{"gc-textarea--resize-both":"both"===S},{"gc-textarea--size-sm":"small"===s},{"gc-textarea--size-lg":"large"===s},{"gc-rounded":a}),L={};l&&!w&&(L.width=l),D&&!_&&(L.height=D);var N={id:n,name:o,className:j,style:L,placeholder:d,defaultValue:f,title:g,value:h,rows:_,cols:w,disabled:m,autoFocus:y,spellCheck:b||!1,onChange:k,onFocus:this.onFocus,onBlur:O,onKeyDown:P,onKeyUp:T,onKeyPress:M};return Object(r.h)("textarea",p({},N,{ref:function(t){return e._area=t},onInput:k,"data-aid":v}))},t}(m),nn=function(e,t,n,r,o){return void 0===o&&(o="both"),{category:e,label:t,type:n,valuePath:r,mode:o}},rn=function(e,t){if(void 0===t&&(t=""),!e)throw new Error("Property descriptor cannot be '"+e+"'");var n=e.valuePath||"",r=n;return""!==t&&(r=""===n?t:t+"."+n),r!==n?p({},e,{valuePath:r}):e},on=function(e){return function(t){for(var n=e&&e.split(".")||[],r=t,o=0;r&&o<n.length;o++)r=r[n[o]];return r}},an=function(e){return function(t,n){for(var r=e.split("."),o=t,i=0;i<r.length-1;i++){var a=r[i];a in o?o=o[a]:(o[a]={},o=o[a])}o[r[r.length-1]]=n}},sn=function(e){return void 0===e&&(e=""),function(t){return e.split(".").reduceRight(function(e,t){var n;return(n={})[t]=e,n},{$set:t})}},ln=function(e){return{getValue:function(t){for(var n=e&&e.split(".")||[],r=t,o=0;r&&o<n.length;o++)r=r[n[o]];return r},setValue:function(t,n){for(var r=e.split("."),o=t,i=0;i<r.length-1;i++){var a=r[i];a in o?o=o[a]:(o[a]={},o=o[a])}o[r[r.length-1]]=n}}},cn={$multipleValues:[],toString:function(){return"<Multiple Values>"}},un=function(e){for(var t=!1,n=0,r=e;n<r.length;n++){var o=r[n];if(M(o)||D(o))return!0;t=t||j(o)}return!t};function dn(e){if(0===e.length)return{};if(1===e.length&&e[0])return e[0];if(un(e)){for(var t=e[0],n=1;n<e.length;n++)if(e[n]!==t)return cn;return t}if(e.every(Array.isArray))return null;for(var r={},o=function(t){var n=e.map(function(e){return e[t]});if(n.indexOf(void 0)>=0)return"continue";r[t]=dn(n)},i=0,a=Object.getOwnPropertyNames(e[0]);i<a.length;i++){o(a[i])}return r}var pn=function(e,t){return!(!e||!t)&&(e.valuePath===t.valuePath&&e.category===t.category&&e.label===t.label&&e.type===t.type)};function fn(e){if(0===e.length)return[];if(1===e.length&&e[0])return Array.isArray(e[0])?e[0]:[];var t=e[0],n=e.slice(1);return t.map(function(e){var t=n.map(function(t){return t.find(function(t){return pn(t,e)})});if(t.indexOf(void 0)>=0)return null;var r=t.map(function(e){return e.mode||"both"}),o=e.mode||"both";return r.every(function(e){return e===o})?e:nn(e.category,e.label,e.type,e.valuePath,"both")}).filter(function(e){return null!==e})}var hn=function(e){return Object(r.h)("div",{className:"gc-unknown-editor","data-aid":e.dataAid},e.text+" "+e.type)},gn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderPropertyEditor=function(e){var n=t.props,o=n.propertyEditors,i=n.setProperty,a=n.environment,s=n.objectName,l=n.filterString,c=n.localization,u=n.labelWidth,d=n.labelPosition,f=n.dataAid,h=e.descriptor,g=s+"-"+h.type+"-"+h.valuePath,m=o&&o[h.type],v=p({},e,{setProperty:i,propertyEditors:o,environment:a,filterString:l,localization:c.editorsLocalization,labelWidth:u,labelPosition:d,dataAid:f?f+"_editor_"+h.type+"_"+h.valuePath:void 0});return m&&m(v,g)||Object(r.h)(hn,{key:g,text:c.unknownProperty,type:h.type,dataAid:f&&f+"_unknown-editor"})},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.name,n=e.properties,o=e.dataAid;return Object(r.h)("div",{className:"gc-property-category","data-aid":o&&o+"_category"},Object(r.h)("div",{className:"gc-property-category__content"},n.map(this.renderPropertyEditor)),t&&Object(r.h)(At,{text:t,customCSS:"gc-property-category__title",level:"info"}))},t}(m),mn=function(e){var t=e.text;return Object(r.h)("div",{className:"gc-property-list__placeholder"},t)},vn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n._textDefaults={unknownProperty:"Unknown Property:",emptyListPlaceholder:"Select an item to see properties",noCommonProperties:"There are no common properties"},n.setProperty=function(e,t){(n.props.setProperty||L)(e,t)},n.generateProperties=function(e,n,r,o){var i=[];return e&&(Array.isArray(n)&&(n=dn(n),Array.isArray(r)&&(r=dn(r)),Array.isArray(e)&&Array.isArray(e[0])&&(e=fn(e))),i=t.translateProps(e,n,r,o)),i},n.getLocalizedText=function(e){var t=n.props.localization;return t&&t[e]||n._textDefaults[e]},n}return d(t,e),t.translateProps=function(e,t,n,r){return e.map(function(e){if(r&&r.includes(e.valuePath))return null;var o=ln(e.valuePath);return{descriptor:e,value:o.getValue(t),defaultValue:o.getValue(n)}}).filter(function(e){return null!==e})},t.prototype.render=function(){var e=this,t=this.props,n=t.propertyEditors,o=t.displayMode,i=t.filter,a=t.customCSS,s=t.environment,l=t.localization,c=t.labelWidth,u=t.dataAid,d=t.descriptors,f=t.objectValue,h=t.defaultValue,g=t.labelPosition;if(!d.length)return Object(r.h)(mn,{text:this.getLocalizedText("emptyListPlaceholder")});if(!f||Array.isArray(f)?f.some(function(e){return!e.name}):!f.name)return null;var m=this.generateProperties(d,f,h,i&&i.byValuePath);if(i&&i.byName?m=m.filter(function(e){return"advanced"===e.descriptor.mode||"both"===e.descriptor.mode}):o&&(m=m.filter(function(e){return e.descriptor.mode===o||"both"===e.descriptor.mode})),!m.length)return Object(r.h)(mn,{text:this.getLocalizedText("noCommonProperties")});var v={};m.forEach(function(e){var t=e.descriptor.category;v[t]||(v[t]=[]),v[t].push(e)});var y=Array.isArray(f)?f.map(function(e){return e.name}).join("-"):f.name;return Object(r.h)("div",{className:C("gc-property-list",a),"data-aid":u&&u+"_"+y},Object.keys(v).map(function(t){var o={propertyEditors:n,environment:s,name:t,labelWidth:c,labelPosition:g,dataAid:u,objectName:y,filterString:i?i.byName:void 0,properties:v[t],setProperty:e.setProperty,localization:{editorsLocalization:l?l.editorsLocalization:void 0,unknownProperty:e.getLocalizedText("unknownProperty")}};return Object(r.h)(gn,p({key:t},o))}))},t}(v),yn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._gridBlock=new P("gc-property-grid"),t._headerBlock=t._gridBlock.element("header"),t._textDefaults={emptyListPlaceholder:"Select an item to see properties",gridSearchPlaceholder:"enter property name here...",closeSearchBtnTitle:"Close"},t.state={searchEnabled:!1,searchString:""},t.onSearchInput=function(e){t.setState({searchString:e.target.value})},t.onKeyDown=function(e){e.stopPropagation(),e.which===H.ESC&&t.closeSearch()},t.onClick=function(){t.state.searchEnabled?t.closeSearch():t.setState({searchEnabled:!0})},t.closeSearch=function(){return t.setState({searchEnabled:!1,searchString:""})},t.getLocalizedText=function(e){var n=t.props.localization;return n&&n[e]||t._textDefaults[e]},t.getFilterProp=s(function(e,t,n){return{byName:e,byValuePath:n?n[t.type]:void 0}}),t.getLocalizationProp=s(function(e){return e&&{emptyListPlaceholder:e.emptyListPlaceholder,unknownProperty:e.unknownProperty,editorsLocalization:e.editorsLocalization}}),t}return d(t,e),t.prototype.render=function(){var e,t,n=this,o=this._gridBlock,i=this._headerBlock,a=this.props,s=a.propertyEditors,l=a.displayMode,c=a.filter,u=a.setProperty,d=a.options,f=a.environment,h=a.descriptors,g=a.objectValue,m=a.defaultValue,v=a.selectionName,y=a.optionsWidth,b=a.tabs,w=a.selectedTabId,_=a.onTabSelect,S=a.localization,x=a.onBackClick,k=a.labelWidth,O=a.customCSS,P=a.listCustomCSS,T=a.dataAid,M=a.labelPosition,D=this.state,j=D.searchEnabled,L=D.searchString;if(!h.length)return Object(r.h)("div",{className:"gc-property-list__placeholder"},this.getLocalizedText("emptyListPlaceholder"));var N,E,A,V,I={displayMode:l,propertyEditors:s,environment:f,descriptors:h,objectValue:g,defaultValue:m,setProperty:u,labelWidth:k,labelPosition:M,customCSS:P,dataAid:T,filter:this.getFilterProp(L,g,c),localization:this.getLocalizationProp(S)},H=C(i.name,((e={})[i.modifier("with-tabs")]=b,e),((t={})[i.modifier("search-view")]=j,t));return Object(r.h)("div",{className:C(o.name,O)},j?function(){var e;if(b&&w){var t=b.find(function(e){return e.id===w});t&&(e=t.text+":")}void 0===e&&(e=v+":");var o={dataAid:T?T+"_search-toggle":void 0,icon:{type:"svg",content:re.close,size:"small"},text:e,title:n.getLocalizedText("closeSearchBtnTitle"),accent:"full",size:"small",customCSS:"gc-property-grid__button gc-property-grid__button--search-mode",onClick:n.onClick},i={dataAid:T?T+"_search-input":void 0,size:"small",onChange:n.onSearchInput,onKeyDown:n.onKeyDown,value:L,autoFocus:!0,placeholder:n.getLocalizedText("gridSearchPlaceholder"),onKeyUp:function(e){return e.stopPropagation()},onKeyPress:function(e){return e.stopPropagation()}};return Object(r.h)("div",{className:H},Object(r.h)(ie,p({},o)),Object(r.h)(We,p({},i)))}():(N={dataAid:T?T+"_search-toggle":void 0,icon:{type:"svg",content:re.magnify,size:"small"},customCSS:"gc-property-grid__button",text:b?void 0:v,accent:"full",size:"small",onClick:n.onClick},E={dataAid:T?T+"_options":void 0,hiddenChevron:!0,icon:{type:"svg",content:re["dots-vertical"],size:"small"},accent:"full",items:d,size:"small",menuWidth:y},A={dataAid:T?T+"_tabs":void 0,selectedTabId:w,onTabSelect:_,tabs:b,block:!0,align:"justify",size:"small",design:"transparent"},V={dataAid:T?T+"_back":void 0,icon:{type:"svg",content:re["arrow-left"],size:"small"},customCSS:"gc-property-grid__button-back",accent:"full",size:"small",onClick:x},Object(r.h)("div",{className:H},x&&Object(r.h)(ie,p({},V)),b&&Object(r.h)(ot,p({},A)),d&&Object(r.h)(Be,p({},E)),Object(r.h)(ie,p({},N)))),Object(r.h)("div",{className:"gc-property-grid__container"},Object(r.h)(je,p({},{direction:"vertical",viewCustomCSS:"gc-property-grid__scroll"}),Object(r.h)(vn,p({},I)))))},t}(m),bn=function(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return d(n,t),n.prototype.render=function(){var t=this.props,n=t.highlightRange,o=t.icon,i=t.tooltip,a=t.labelWidth,s=t.dataAid,l=f(t,["highlightRange","icon","tooltip","labelWidth","dataAid"]),c={icon:o,tooltip:i,dataAid:s,label:o?void 0:l.descriptor.label,highlightRange:n,width:a,block:!0,size:"small",position:l.labelPosition||"left",disabled:l.disabled};return Object(r.h)(en,p({},c),Object(r.h)(e,p({},l)))},n}(m)};function wn(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return d(n,t),n.prototype.render=function(){var t,n=this.props,o=n.filterString,i=n.descriptor.label,a=!0;if(o){var s=i.toLowerCase().indexOf(o.toLowerCase());-1!==s?t=[s,s+o.length]:a=!1}return a&&Object(r.h)(e,p({},this.props,{highlightRange:t}))},n}(m)}var _n=function(e){return wn(bn(e))},Sn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getItems=s(function(e,t){return e.map(function(e){return e&&p({},e,{selected:void 0!==e.value&&t===e.value})})}),t.onSelect=function(e){var n=t.props.onSelect;n&&n(e)},t}return d(t,e),t.prototype.render=function(){var e,t,n=this.props,o=n.value,i=n.status,a=n.menuId,s=n.environment,l=n.children,c=n.menuWidth,u=n.menuMaxHeight;if(!a||!s)return null;if(!s.bindingMenus||!s.bindingMenus[a])return null;var d=new P("gc-binding-wrapper"),f=C(d.name,((e={})[d.modifier("modified")]="modified"===i,e),((t={})[d.modifier("bind")]="bind"===i,t));i&&i.cssClass&&(f+=i.cssClass);var h={size:"small",block:!0,background:"transparent",hiddenChevron:!0,scrollToSelection:!0,toggleContent:Object(r.h)("div",{className:d.element("toggle").name}),items:this.getItems(s.bindingMenus[a],o),onSelect:this.onSelect,menuMaxHeight:u,menuWidth:c};return Object(r.h)("div",{className:f},Object(r.h)("div",{className:d.element("content").name},l),Object(r.h)(Be,p({},h)))},t}(m),xn=function(e){var t=e.value,n=e.validate,r=void 0!==t?t:"";return{initialValue:r,value:r,invalid:n&&!n(r)||!1,focused:!1}},Cn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._input=null,t._multiValueString=cn.toString(),t.state=xn(t.props),t.onChange=function(e){var n=t.props.validate,r=e.target.value;if(!n)return t.setState({value:r});t.setState({value:r,invalid:!n(r)})},t.onKeyDown=function(e){e.stopPropagation()},t.onKeyUp=function(e){e.stopPropagation();var n=t.props,r=n.validate,o=n.onChange,i=e.target.value;e.which===H.ENTER&&(r?r(i)&&(o||L)(i):(o||L)(i)),e.which===H.ESC&&t.setState(xn(t.props))},t.onKeyPress=function(e){e.stopPropagation()},t.onBlur=function(e){var n=t.props,r=n.value,o=n.validate,i=n.onChange,a=n.displayValue,s=e.target.value;s!==r&&(o?o(s)?(i||L)(s):t.setState(xn(t.props)):(i||L)(s)),a&&t.setState({focused:!1})},t.onFocus=function(e){var n=t.props,r=n.selectOnFocus,o=n.displayValue,i=n.onFocus;i&&i(e),o&&t.setState({focused:!0},function(){r&&t._input&&t._input.select()})},t}return d(t,e),t.getDerivedStateFromProps=function(e,t){return t.initialValue!==e.value?{initialValue:e.value,value:e.value,valid:!0}:null},t.prototype.render=function(){var e=this,t=this._multiValueString,n=this.props,o=n.type,i=n.placeholder,a=n.readonly,s=n.disabled,l=n.autoFocus,c=n.selectOnFocus,u=n.textAlign,d=n.localization,f=n.displayValue,h=n.width,g=n.id,m=n.name,v=this.state,y=v.value,b=v.invalid,w=v.focused,_=y===t||j(y)&&y.toString()===t,S=d&&d.plainTextEditor,x=S&&S.emptyPlaceholder||"<empty>",C=S&&S.multipleValuesPlaceholder||t,k={id:g,name:m,type:o||"text",block:!0,size:"small",width:h||"100%",value:_?"":!w&&f||y,title:_?"":f||y,placeholder:i||(_?C:x),invalid:b,disabled:a||s,autoFocus:l,selectOnFocus:c,textAlign:u,onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onKeyPress:this.onKeyPress};return Object(r.h)(We,p({},k,{ref:function(t){return e._input=t}}))},t}(m),kn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onChange=function(e){var n=t.props,r=n.setProperty,o=n.descriptor;r&&o&&r(o,e)},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.generatePreview,o=n&&n(t),i=p({},this.props,{onChange:this.onChange});return Object(r.h)("div",{className:"gc-text-editor"},o&&Object(r.h)("div",{className:"gc-text-editor__preview"},o),Object(r.h)(Cn,p({},i)))},t}(m),On=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onToggle=function(){var e=t.props,n=e.descriptor,r=e.value;(0,e.setProperty)(n,!r)},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.disabled,o=e.localization,i=e.labelPosition,a=o&&o.boolEditor,s=!0===t?a&&a.textTrue||"True":a&&a.textFalse||"False",l={block:!0,onToggle:this.onToggle,customCSS:"gc-bool-editor",text:s,title:s,checked:t,size:"small",textAlign:"top"===i?"right":"left",disabled:n};return Object(r.h)(tt,p({},l))},t}(m),Pn={id:null,node:null,yPos:0},Tn=wn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._editorBlock=new P("gc-collection-editor"),t._itemBlock=t._editorBlock.element("item"),t._headerBlock=t._editorBlock.element("header"),t._icons={up:t.props.icons&&t.props.icons.up||{type:"svg",content:re["chevron-up"],size:"small"},down:t.props.icons&&t.props.icons.down||{type:"svg",content:re["chevron-up"],size:"small",rotate:"180"},drag:t.props.icons&&t.props.icons.drag||{type:"svg",content:re.drag,size:"small"},add:t.props.icons&&t.props.icons.add||{type:"svg",content:re.plus,size:"small"},delete:t.props.icons&&t.props.icons.delete||{type:"svg",content:re["trash-can-outline"],size:"small"},open:t.props.icons&&t.props.icons.open||{type:"svg",content:re.menu,size:"small"},close:t.props.icons&&t.props.icons.close||{type:"svg",content:re.close,size:"small"}},t._textDefaults={closeBtnTitle:"Close",showBtnTitle:"Show Items",addBtnText:"Add",addBtnTitle:"Add Item",empty:"Collection is empty",items:"items"},t._itemInnerOffset=0,t._itemsContainer={node:null,offset:0},t._scrollContainer=null,t.state={expanded:!1,isDragging:!1,draggedItem:Pn,temporaryItems:{value:null,nodes:null}},t.startDragging=function(e){return function(n){var r=t._itemsContainer.node;r&&(t._itemsContainer.offset=r.getBoundingClientRect().top),"notFound"!==t._scrollContainer&&r&&(t._scrollContainer=document.querySelector(".gc-property-grid__scroll")||"notFound");var o=n.currentTarget.getBoundingClientRect();t._itemInnerOffset=n.clientY-o.top,t.setState({isDragging:!0}),t.initDragData(e,n.clientY),window.addEventListener("mousemove",t.onMouseMove),window.addEventListener("mouseup",t.finishDragging),t._scrollContainer&&"notFound"!==t._scrollContainer&&t._scrollContainer.addEventListener("scroll",t.onContainerScroll)}},t.initDragData=function(e,n){var r=t.state.draggedItem,o=t.props.value;t.setState({draggedItem:{id:e,node:t.createItem(o[e],e),yPos:n?t.getDragPosition(n):r.yPos},temporaryItems:{nodes:o.map(function(n,r){return t.createItem(n,r,e)}),value:o}})},t.changeOrder=function(e){return function(){var n=t.state,r=n.draggedItem.id,o=n.temporaryItems;if(null!==r&&e!==r){var i=V(o.nodes||[],r,e),a=V(o.value||[],r,e);t.setState(function(t){return{temporaryItems:{nodes:i,value:a},draggedItem:p({},t.draggedItem,{id:e})}})}}},t.finishDragging=function(){var e=t,n=e._scrollContainer,r=e.props,o=r.reordering,i=r.setProperty,a=r.descriptor,s=e.state.temporaryItems,l=o.onReorder;s.value&&(l?l(s.value):i(a,s.value)),t.setState({isDragging:!1,draggedItem:Pn,temporaryItems:{value:null,nodes:null}}),window.removeEventListener("mousemove",t.onMouseMove),window.removeEventListener("mouseup",t.finishDragging),n&&"notFound"!==n&&n.removeEventListener("scroll",t.onContainerScroll)},t.onMouseMove=function(e){var n=t.getDragPosition(e.clientY);t.setState(function(e){return{draggedItem:p({},e.draggedItem,{yPos:n})}})},t.onContainerScroll=function(){var e=t._itemsContainer.node;e&&(t._itemsContainer.offset=e.getBoundingClientRect().top)},t.getDragPosition=function(e){return e-t._itemInnerOffset-t._itemsContainer.offset},t.onUp=function(e){return function(){var n=t.props,r=n.reordering,o=n.setProperty,i=n.descriptor,a=n.value,s=r.onUp;s?s(e):o(i,V(a,e,e-1))}},t.onDown=function(e){return function(){var n=t.props,r=n.reordering,o=n.setProperty,i=n.descriptor,a=n.value,s=r.onDown;s?s(e):o(i,V(a,e,e+1))}},t.onItemAdd=function(){var e=t.props.onAdd,n=t.state.expanded;e&&e(),!n&&t.setState({expanded:!0})},t.onItemDelete=function(e){return function(){return(t.props.onDelete||L)(e)}},t.toggleState=function(){return t.setState({expanded:!t.state.expanded})},t.createItem=function(e,n,o){var i,a=t,s=a._itemBlock,l=a.props,c=l.onDelete,u=l.reordering,d=l.createEditor,p=a.state.draggedItem,f=c||u,h=void 0!==o?t.changeOrder(n):void 0,g=C(s.name,((i={})[s.modifier("dragged")]=(p.id||o)===n,i)),m=u&&u.canSwap,v=u&&"arrows"===u.type,y=u&&"drag"===u.type;return Object(r.h)("div",{key:e+"-"+n,onMouseOver:h,className:g},f&&Object(r.h)("div",{className:"gc-collection-editor__item-actions"},v&&Object(r.h)("div",{className:"gc-collection-editor__arrows"},n>0&&(!m||m(n,n-1))&&Object(r.h)(ie,{onClick:t.onUp(n),customCSS:"gc-collection-editor__arrow-up",size:"small",icon:t._icons.up,background:"transparent"}),n<t.props.value.length-1&&(!m||m(n,n+1))&&Object(r.h)(ie,{onClick:t.onDown(n),customCSS:"gc-collection-editor__arrow-down",size:"small",icon:t._icons.down,background:"transparent"})),Object(r.h)(Ge,{size:"small",items:[y&&{type:"button",onMouseDown:t.startDragging(n),icon:t._icons.drag,tabIndex:-1},c&&{type:"button",onClick:t.onItemDelete(n),icon:t._icons.delete}]})),d(e,n))},t.getLocalizedText=function(e){var n=t.props.localization,r=n&&n.collectionEditor;return r&&r[e]||t._textDefaults[e]},t}return d(t,e),t.prototype.componentDidUpdate=function(e){this.state.isDragging&&e.value!==this.props.value&&this.initDragData(this.state.draggedItem.id)},t.prototype.render=function(){var e,t,n,o,i=this,a=this._editorBlock,s=this._headerBlock,l=this.props,c=l.value,u=l.header,d=l.highlightRange,p=l.descriptor,f=l.onAdd,h=l.customCSS,g=l.onDelete,m=l.reordering,v=l.disabled,y=l.background,b=l.labelWidth,w=this.state,_=w.expanded,S=w.isDragging,x=w.draggedItem,k=w.temporaryItems;if(!c)return null;var O={type:"button",disabled:v,onClick:this.toggleState,title:_?this.getLocalizedText("closeBtnTitle"):this.getLocalizedText("showBtnTitle"),icon:_?this._icons.close:this._icons.open,background:_?"transparent":"default"},P={type:"button",disabled:v,icon:this._icons.add,onClick:this.onItemAdd,text:_?this.getLocalizedText("addBtnText"):void 0,title:this.getLocalizedText("addBtnTitle"),background:_?"transparent":"default"},T=C(a.name,h,((e={})[a.modifier("expanded")]=_,e),((t={})[a.modifier("dragging")]=S,t),((n={})[a.modifier("disabled")]=v,n),((o={})[a.modifier("transparent")]="transparent"===y,o)),M=function(){return c.length+" "+i.getLocalizedText("items")};return Object(r.h)("div",{className:T},Object(r.h)(en,{highlightRange:d,label:p.label,position:"left",block:!0,size:"small",disabled:v,width:b},Object(r.h)("div",{className:"gc-collection-editor__main"},!_&&Object(r.h)("div",{className:"gc-collection-editor__counter",title:M()},"["+M()+"]"),Object(r.h)(Ge,{size:"small",items:[f&&P,O]}))),_&&function(){var e,t;if(!c.length)return Object(r.h)("div",{className:"gc-collection-editor__content"},Object(r.h)("div",{className:"gc-collection-editor__empty"},i.getLocalizedText("empty")));t=k.nodes?k.nodes.map(function(e,t){return Object(r.cloneElement)(e,{onMouseOver:i.changeOrder(t)})}):c.map(function(e,t){return i.createItem(e,t)});var n=0;g&&n++,m&&n++;var o=C(s.name,((e={})[s.modifier("offset-"+n)]=n>0,e));return Object(r.h)("div",{className:"gc-collection-editor__content"},u&&Object(r.h)("div",{className:o},u),Object(r.h)("div",{className:"gc-collection-editor__items",ref:function(e){return i._itemsContainer.node=e}},t,S&&Object(r.h)("div",{className:"gc-collection-editor__clone",style:{transform:"translate3d(0, "+x.yPos+"px, 0)"}},x.node)))}())},t}(m)),Mn=wn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._editorBlock=new P("gc-expand-editor"),t.state={expanded:!1},t.onEditorToggle=function(){t.setState({expanded:!t.state.expanded})},t}return d(t,e),t.prototype.render=function(){var e,t,n=this._editorBlock,o=this.props,i=o.mainEditor,a=o.toggleIcons,s=o.customCSS,l=o.children,c=o.background,u=this.state.expanded,d=C(n.name,s,((e={})[n.modifier("expanded")]=u,e),((t={})[n.modifier("transparent")]="transparent"===c,t)),p=a&&a.expand||{type:"svg",content:re["arrow-expand-all"],size:"small"},f=a&&a.collapse||{type:"svg",content:re["arrow-collapse-all"],size:"small"};return Object(r.h)("div",{className:d},Object(r.h)("div",{className:n.element("main").name},i,Object(r.h)(ie,{customCSS:n.element("toggle").name,icon:u?f:p,onClick:this.onEditorToggle,size:"small"})),u&&Object(r.h)("div",{className:n.element("content").name},l))},t}(m)),Dn=wn(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._editorBlock=new P("gc-side-editor"),t.getIcon=function(e,t){return"left"===e?t&&t.left||{type:"svg",content:re["arrow-left"],size:"small"}:"top"===e?t&&t.top||{type:"svg",content:re["arrow-left"],size:"small",rotate:"90"}:"right"===e?t&&t.right||{type:"svg",content:re["arrow-left"],size:"small",rotate:"180"}:"bottom"===e?t&&t.bottom||{type:"svg",content:re["arrow-left"],size:"small",rotate:"270"}:void 0},t.getExpandableContent=function(e,n){var o=t._editorBlock.element("side");return Object.keys(e).map(function(i){var a=o.name+" "+o.modifier(i);return"default"===i?Object(r.h)("div",{key:i,className:a},e[i]):Object(r.h)("div",{key:i,className:a},Object(r.cloneElement)(e[i],{icon:t.getIcon(i,n)}))})},t}return d(t,e),t.prototype.render=function(){var e,t=this._editorBlock,n=this.props,o=n.sides,i=n.sideIcons,a=n.stretched,s=p({},this.props,{customCSS:C(t.name,(e={},e[t.modifier("stretched")]=a,e))});return Object(r.h)(Mn,p({},s),this.getExpandableContent(o,i))},t}(m)),jn=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.validateNumber=function(e){var r=n.props,o=r.minValue,i=r.maxValue,a=r.validate;if(a)return a(e);if(e&&-1!==e.search(t.numberRegex)){var s=parseInt(e,10);return!(o&&s<o)&&!(i&&s>i)}return!1},n.onChange=function(e){var t=n.props,r=t.setProperty,o=t.descriptor;r&&o&&r(o,parseInt(e,10))},n.onNumberChange=function(e){return function(){var t=n.props,r=t.setProperty,o=t.descriptor,i=t.value,a=t.minValue,s=t.maxValue;if(r&&o){var l=i+e,c=void 0===a?-1/0:a,u=void 0===s?1/0:s;l<c?l=c:l>u&&(l=u),r(o,l)}}},n}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.disabled,o=e.step,i=e.displayValue,a=e.placeholder,s=e.minValue,l=e.maxValue,c=e.decreaseIcon,u=e.increaseIcon,d=e.localization,f={id:e.id,name:e.name,value:""+t,validate:this.validateNumber,onChange:this.onChange,selectOnFocus:!0,textAlign:"center",disabled:n,localization:d,displayValue:i,placeholder:a,width:"0px"},h={block:!0,size:"small"},g=o||1;return Object(r.h)("div",{className:"gc-number-editor"},Object(r.h)(ie,p({},h,{disabled:n||t===s,icon:c||{type:"svg",content:re.minus,size:"small"},onClick:this.onNumberChange(-g)})),Object(r.h)(Cn,p({key:t},f)),Object(r.h)(ie,p({},h,{disabled:n||t===l,icon:u||{type:"svg",content:re.plus,size:"small"},onClick:this.onNumberChange(g)})))},t.numberRegex=/^-?(\d+)$/,t}(m),Ln=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getItems=s(function(e,t){return e.values.map(function(n){var r=e.friendlyNames.find(function(e){return e.value===n});return{type:"button",value:n,selected:n===t,text:r&&r.name||n}})}),t.onSelect=function(e){var n=t.props,r=n.setProperty,o=n.descriptor;r&&o&&r(o,e)},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.disabled,o=e.friendlyEnum,i=e.noCloseOnSelect,a=o.friendlyNames.find(function(e){return e.value===t}),s={block:!0,size:"small",width:"100%",menuWidth:"100%",text:a&&a.name||t,items:this.getItems(o,t),onSelect:this.onSelect,scrollToSelection:!0,noCloseOnSelect:i,disabled:n};return Object(r.h)(Be,p({},s))},t}(m),Nn=function(e){return{backgroundColor:e.rgba}},En=function(e){return e.title||e.hex},An=function(e){return Object(r.h)("div",{className:"gc-color-palette"},Object(r.h)("div",{className:"gc-dd-menu__header"},Object(r.h)("span",null,e.palette.name)),Object(r.h)("div",{className:"gc-color-palette__colors"},e.palette.colors.map(function(t,n){return Object(r.h)("div",{key:n,className:"gc-color"},Object(r.h)("div",{className:"gc-color__main",title:En(t[0]),style:Nn(t[0]),onClick:function(){return e.onSelect(t[0])}}),Object(r.h)("div",{className:"gc-color__shades"},t.slice(1).map(function(t,n){return Object(r.h)("div",{key:n,title:En(t),style:Nn(t),onClick:function(){return e.onSelect(t)}})})))})))},Vn=function(e){var t=e.mode,n=e.defaultValue;return n?"XY"===t?{X:n.X,Y:n.Y}:"Y"===t?{X:0,Y:n}:{X:n,Y:0}:{X:0,Y:0}},In=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._sliderBlock=new P("gc-slider"),t._sliderBackgroundBlock=t._sliderBlock.element("background"),t._sliderAreaBlock=t._sliderBlock.element("area"),t._sliderToggleBlock=t._sliderBlock.element("toggle"),t.startPage={X:0,Y:0},t.startLocal={X:0,Y:0},t.state=Vn(t.props),t.getControlArea=function(e){t._controlArea=e},t.trim=function(e,t,n){return e<t?t:e>n?n:e},t.calcNextValue=function(e,n,r,o){return t.trim(e+n,r,o)},t.calcNextPoint=function(e,n){var r=t,o=r.calcNextValue,i=r.startPage,a=r.startLocal,s=r._controlArea,l=s.clientWidth,c=s.clientHeight;return{X:o(a.X,e-i.X,0,l)/l,Y:o(a.Y,n-i.Y,0,c)/c}},t.onMouseDown=function(e){var n=t,r=n.onMouseMove,o=n.onMouseUp,i=n.trim,a=n._controlArea,s=a.clientWidth,l=a.clientHeight,c=e.offsetX,u=e.offsetY,d=e.pageX,p=e.pageY,f=i(c,0,s)/s,h=i(u,0,l)/l;t.startPage={X:d,Y:p},t.startLocal={X:c,Y:u},t.setState({X:f,Y:h}),t.onChange({X:f,Y:h}),window.addEventListener("mousemove",r),window.addEventListener("mouseup",o),document.body.classList.add("disable-selection")},t.onMouseUp=function(e){var n=t,r=n.onMouseMove,o=n.onMouseUp;window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",o),document.body.classList.remove("disable-selection")},t.onMouseMove=function(e){var n=e.pageX,r=e.pageY,o=t.calcNextPoint(n,r);t.setState(o),t.onChange(o)},t.onChange=function(e){var n=t.props,r=n.mode,o=n.onChange;o&&o("XY"===r?e:"Y"===r?e.Y:e.X)},t}return d(t,e),t.prototype.componentDidMount=function(){var e=this.onMouseDown;this._controlArea.addEventListener("mousedown",e)},t.prototype.componentWillUnmount=function(){var e=this.onMouseDown;this._controlArea.removeEventListener("mousedown",e)},t.prototype.render=function(){var e,t,n=this,o=n._sliderBlock,i=n._sliderAreaBlock,a=n._sliderToggleBlock,s=n._sliderBackgroundBlock,l=n.state,c=l.X,u=l.Y,d=n.props,p=d.mode,f=d.value,h=d.width,g=d.toggleBackgroundColor,m=d.areaCustomCSS,v=d.areaStyle,y=d.customCSS,b=d.id,w=d.dataAid,_=p||"X",S=50,x=50;"X"===_?S=100*(null!=f?f:c):"Y"===_?x=100*(null!=f?f:u):(S=100*(f&&f.X||c),x=100*(f&&f.Y||u));var k=C(o.name,y,((e={})[o.modifier("vertical")]="Y"===_,e),((t={})[o.modifier("planar")]="XY"===_,t)),O={};!h||"X"!==_&&"XY"!==_||(O.width=h),!h||"Y"!==_&&"XY"!==_||(O.height=h);var P=C(s.name,m),T={left:S+"%",top:x+"%"};return g&&(T.backgroundColor=g),Object(r.h)("div",{className:k,style:O,id:b,"data-aid":w},Object(r.h)("div",{className:P,style:v}),Object(r.h)("div",{className:i.name,ref:this.getControlArea}),Object(r.h)("span",{className:a.name,style:T}))},t}(m),Hn=function(e,t){return{color:e,hsl:t||F.toHSL(e),HEX_Text:e.hex,R_Text:""+e.R,G_Text:""+e.G,B_Text:""+e.B}},Rn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=Hn(t.props.color),t.onColorChange=function(e){var n=t.props.onChange;n&&n(e)},t.onHueChange=function(e){var n=p({},t.state.hsl,{H:e}),r=F.fromHSL(n);t.setState(Hn(r,n)),t.onColorChange(r)},t.onSaturationChange=function(e){var n=p({},t.state.hsl,{S:e}),r=F.fromHSL(n);t.setState(Hn(r,n)),t.onColorChange(r)},t.onLightnessChange=function(e){var n=p({},t.state.hsl,{L:e}),r=F.fromHSL(n);t.setState(Hn(r,n)),t.onColorChange(r)},t.onEditorChange=function(e){return function(n){var r,o=n.target.value;t.setState(((r={})[e+"_Text"]=o,r))}},t.onEditorKeyDown=function(e){e.stopPropagation()},t.updateRGBValue=function(e,n){var r=parseInt(n||"0",10);r<0?r=0:r>255&&(r=255);var o=t.state.color,i=o.R,a=o.G,s=o.B,l=o.A,c={R:i,G:a,B:s};c[e]=r;var u=new F(c.R,c.G,c.B,l);t.setState(Hn(u)),t.onColorChange(u)},t.onEditorKeyUp=function(e){return function(n){var r;n.stopPropagation();var o=n.target.value;13===n.which?t.updateRGBValue(e,o):27===n.which&&t.setState(((r={})[e+"_Text"]=""+t.state.color[e],r))}},t.onEditorBlur=function(e){return function(n){var r=n.target.value;t.updateRGBValue(e,r)}},t.updateHexValue=function(e){var n=""+e;"#"!==n[0]&&(n="#"+n);var r=F.fromHEX(n);t.setState(Hn(r)),t.onColorChange(r)},t.onHexKeyUp=function(e){var n=e.target.value;13===e.which&&t.updateHexValue(n),27===e.which&&t.setState({HEX_Text:t.state.color.hex})},t.onHexBlur=function(e){t.updateHexValue(e.target.value)},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.color,o=t.onPreviewClick,i=t.textHue,a=t.textSaturation,s=t.textLightness,l=this.state,c=l.hsl,u=c.H,d=c.S,f=c.L,h=l.HEX_Text,g=n.rgb,m=F.fromHSL({H:u,S:1,L:.5}).rgb,v="linear-gradient(to right, "+F.fromHSL({H:u,S:0,L:f}).rgb+" 0%, "+F.fromHSL({H:u,S:1,L:f}).rgb+" 100%)",y="linear-gradient(to right, "+F.fromHSL({H:u,S:d,L:0}).rgb+" 0%, "+F.fromHSL({H:u,S:d,L:.5}).rgb+" 50%, "+F.fromHSL({H:u,S:d,L:1}).rgb+" 100%)",b={top:"50%",height:"10px",transform:"translateY(-50%)"},w=p({background:"linear-gradient(to right, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%)"},b),_=p({background:v},b),S=p({background:y},b),x={block:!0,size:"small"},C=function(t){return{value:e.state[t+"_Text"],size:"small",textAlign:"center",selectOnFocus:!0,onKeyDown:e.onEditorKeyDown,onBlur:e.onEditorBlur(t),onKeyUp:e.onEditorKeyUp(t),onChange:e.onEditorChange(t),onKeyPress:function(e){return e.stopPropagation()}}};return Object(r.h)("div",{className:"gc-color-picker"},Object(r.h)("div",{className:"gc-color-picker__preview",style:{backgroundColor:n.rgba},onClick:o}),Object(r.h)("div",{className:"gc-color-picker__settings"},Object(r.h)("span",null,i||"Hue"),Object(r.h)(In,{areaStyle:w,areaCustomCSS:"gc-color__slider-border",toggleBackgroundColor:m,defaultValue:u,value:u,onChange:this.onHueChange}),Object(r.h)("span",null,a||"Saturation"),Object(r.h)(In,{areaStyle:_,areaCustomCSS:"gc-color__slider-border",toggleBackgroundColor:g,defaultValue:d,value:d,onChange:this.onSaturationChange}),Object(r.h)("span",null,s||"Lightness"),Object(r.h)(In,{areaStyle:S,areaCustomCSS:"gc-color__slider-border",toggleBackgroundColor:g,defaultValue:f,value:f,onChange:this.onLightnessChange})),Object(r.h)("div",{className:"gc-color-picker__inputs"},Object(r.h)("div",{className:"gc-color-picker__hex"},Object(r.h)(en,p({},x,{label:"Hex"}),Object(r.h)(We,p({},C("HEX"),{value:h,onBlur:this.onHexBlur,onKeyUp:this.onHexKeyUp})))),Object(r.h)("div",{className:"gc-color-picker__rgb"},Object(r.h)(en,p({},x,{label:"R"}),Object(r.h)(We,p({},C("R")))),Object(r.h)(en,p({},x,{label:"G"}),Object(r.h)(We,p({},C("G")))),Object(r.h)(en,p({},x,{label:"B"}),Object(r.h)(We,p({},C("B")))))))},t}(m),Fn=function(e){return{color:e.value,opacity:e.opacity?e.value.A:255,mode:e.palettes&&e.palettes.length>0?"palettes":"picker"}},zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._failback=F.fromHEX("#000"),t.state=Fn(t.props),t.onChange=function(e){var n=t.props.onSelect;if(n){if(e.customValue)return n(e);var r=0===e.A?0:t.state.opacity;n(F.fromRGB(e.R,e.G,e.B,r))}},t.onColorSelect=function(e){t.setState({color:e}),t.onChange(e)},t.onOpacityChange=function(e){var n=t.state.color,r=n.R,o=n.G,i=n.B,a=Math.round(255*e),s=F.fromRGB(r,o,i,a);t.setState({color:s,opacity:a})},t.onPickerChange=function(e){t.setState({color:e})},t.onPickerClick=function(){t.onChange(t.state.color)},t.onWebSelect=function(e){return function(){var n;n="#00000000"===e?new F(0,0,0,0):F.fromHEX(e),t.setState({color:n}),t.onChange(n)}},t.onModeSelect=function(e){return function(){t.setState({mode:e})}},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.opacity,o=t.palettes,i=t.textPalettes,a=t.textColorPicker,s=t.textWebColors,l=t.textOpacity,c=this.state,u=c.color,d=c.mode,f=this._failback,h=u||f,g=h.A,m=h.hex,v=h.hex8,y={top:"50%",height:"10px",transform:"translateY(-50%)",background:"linear-gradient(to right, transparent 0%, "+h.rgb+" 100%)"};return Object(r.h)("div",{className:"gc-color-dropdown"},Object(r.h)(Ge,{size:"small",block:!0,align:"justify",items:[o&&o.length>0&&{type:"button",width:"100%",accent:"palettes"===d?"full":"none",text:i||"Palettes",onClick:this.onModeSelect("palettes")},{type:"button",width:"100%",accent:"picker"===d?"full":"none",text:a||"Picker",onClick:this.onModeSelect("picker")},{type:"button",width:"100%",accent:"web"===d?"full":"none",text:s||"Web Colors",onClick:this.onModeSelect("web")}]}),"palettes"===d&&o.map(function(t,n){return Object(r.h)(An,{key:n,palette:t,onSelect:e.onColorSelect})}),"picker"===d&&Object(r.h)(Rn,{color:h,onChange:this.onPickerChange,onPreviewClick:this.onPickerClick}),"web"===d&&Object(r.h)("div",{className:"gc-color-dropdown__web-colors"},Object(r.h)(je,p({},{autoHeight:!0,autoHeightMax:"200px",style:{view:{maxHeight:"200px"}},customCSS:"gc-dd-menu__scroll"}),Object.keys(F.webColorsMap).map(function(t){var n=F.webColorsMap[t],o={key:"cp-item-"+t,className:C("gc-dd-menu__item",{"gc-dd-menu__item--selected":"#00000000"===v?n===v:n===m},"gc-dd-menu__item--with-preview","gc-size-sm"),onClick:e.onWebSelect(n)};return Object(r.h)("button",p({key:t},o),Object(r.h)("div",{className:"gc-dd-menu__item-preview"},Object(r.h)("div",{className:"gc-color-dropdown__web-color",style:{backgroundColor:n}})),Object(r.h)("span",null,t))}))),n&&Object(r.h)("div",{className:"gc-dd-menu__header"},Object(r.h)("span",null,(l||"Opacity")+(g<255?": "+Math.round(g/255*100)+"%":""))),n&&Object(r.h)(In,{toggleBackgroundColor:h.rgba,areaCustomCSS:"gc-color__slider-border",areaStyle:y,defaultValue:g/255,value:g/255,onChange:this.onOpacityChange}))},t}(m),Bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._menu=null,t._menuProps={},t.state={showMenu:!1,mousePosition:{x:0,y:0}},t.open=function(e,n,r,o){B.current.dropdowns.open(t),t._menuProps=p({items:n},o||{}),t._onItemClick=r,t.setState({showMenu:!0,mousePosition:e})},t.close=function(){t.setState({showMenu:!1})},t.onItemClick=function(e){e.onClick?e.onClick(e.value):t._onItemClick&&t._onItemClick(e),t.close()},t.getNode=function(){return t._menu&&t._menu.getMenuNode()},t.getSafeZone=L,t.getMenuNode=L,t.onNavigation=L,t}return d(t,e),t.prototype.componentDidMount=function(){B.current.dropdowns||(B.current.dropdowns=new ze),B.current.contextMenu&&console.warn("Repeated <ContextMenuProvider/> mounting"),B.current.contextMenu={open:this.open,close:this.close}},t.prototype.render=function(){var e=this,t=this.props.dataAid,n=this.state,o=n.showMenu,i={type:"mouse",position:n.mousePosition};return o&&Object(r.h)(Fe,p({},this._menuProps,{parent:i,onItemClick:this.onItemClick,ref:function(t){return e._menu=t},"data-aid":t}))},t}(m),Wn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._wizardBlock=new P("gc-wizard"),t._stepBlock=t._wizardBlock.element("step"),t.moveToStep=function(e,n){var r=t.props.onStepChange;r&&!1===r(n)||e.moveToStep&&e.moveToStep()},t}return d(t,e),t.prototype.render=function(){var e,t=this,n=this._wizardBlock,o=this._stepBlock,i=this.props,a=i.steps,s=i.currentIndex,l=i.style,c=i.defaultStepIcon,u=i.customCSS,d=i.id,f=i.dataAid;if(a.length<2)return console.log("<Wizard />: There must be at least 2 steps to show"),null;var h=C(n.name,u,((e={})[n.modifier(l)]=l&&"default"!==l,e));return Object(r.h)("div",{className:h,id:d,"data-aid":f},a.map(function(e,n){var i,l,u=a.length===n+1,d=n<s,h=!u&&d,g=C(o.name,((i={})[o.modifier("complete")]=s>0&&d,i),((l={})[o.modifier("current")]=n===s,l)),m={title:e.title||e.text,icon:d?e.icon||c:void 0,text:d?void 0:""+(n+1),onClick:h?function(){return t.moveToStep(e,n)}:void 0,disabled:!h,rounded:!0,size:"small",accent:"full",dataAid:f?f+"_step":void 0};return Object(r.h)("div",{key:"step-"+n,className:g},Object(r.h)(ie,p({},m)),e.text&&Object(r.h)("span",{className:"gc-wizard__step-text"},e.text))}))},t}(m),Un=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._counterBlock=new P("gc-notifications-counter"),t}return d(t,e),t.prototype.render=function(){var e=this._counterBlock,t=this.props,n=t.notificationsData,o=n.notifications,i=n.amount,a=n.level,s=t.dataAid,l=t.localization;if(!i.notifications)return null;var c={notifications:o,localization:l,dataAid:s},u={content:Object(r.h)(It,p({},c)),dataAid:s?s+"_notification-toggle":void 0,size:"small",accent:"text+icon",background:"transparent",dropup:!0,offset:0,level:a,icon:{type:"svg",content:re["card-text-outline"]},text:""+i.notifications,menuAlign:"left",hiddenChevron:!0,menuWidth:"auto",customCSS:e.element("toggle").name,menuCustomCSS:e.element("menu").name};return Object(r.h)("div",{className:C(e.name,"gc-size-sm")},Object(r.h)(Be,p({},u)),Object(r.h)(rt,null))},t}(m),Yn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._statusBarBlock=new P("gc-status-bar"),t}return d(t,e),t.prototype.render=function(){var e=this._statusBarBlock,t=this.props,n=t.children,o=t.accessory,i=t.customCSS,a=t.dataAid,s=C(e.name,i);return Object(r.h)("div",{className:s,"data-aid":a},o&&Object(r.h)("div",{className:e.element("accessory").name},o),Object(r.h)("div",{className:e.element("items").name},Object(r.h)(nt,p({},{id:"statusbar-tools",block:!0,dropup:!0,toggleBackground:"transparent",size:"small"}),n)))},t}(m),$n=Gt(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.notificationsData,o=e.localization,i=f(e,["children","notificationsData","localization"]),a={notificationsData:n,localization:o,dataAid:i.dataAid};return Object(r.h)(Yn,p({},i,{accessory:Object(r.h)(Un,p({},a))}),t)},t}(m)),Gn=function(e){return Object(r.h)($n,e)},qn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.text,n=e.icon,o=e.customCSS,i=e.selected,a=e.disabled,s={customCSS:"gc-treeitem__text",block:!0,size:"small",accent:i?"full":"none",background:i?"default":"transparent",disabled:a,onClick:e.onClick,text:t},l={customCSS:"gc-treeitem__icon",disabled:a,icon:n,size:"small",accent:i?"full":"icon",background:"transparent",onClick:e.onIconClick};return Object(r.h)("div",{className:C("gc-treeitem",o)},Object(r.h)(ie,p({},s)),n&&Object(r.h)(ie,p({},l)))},t}(m),Kn={type:"svg",content:re.plus},Xn={type:"svg",content:re.minus},Zn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderNode=function(e,n){var o,i=t.props,a=i.outline,s=i.disabled,l=i.onNodeClick,c=i.onNodeIconClick,u=e.nodes,d=e.text,f=e.icon,h=e.customCSS,g=e.expanded,m=e.selected,v=u||[],y=v.length>0&&!0===g,b={text:d,icon:y?f||Xn:v.length>0?f||Kn:f,customCSS:h,selected:m,disabled:s,onClick:function(t){l&&l(e,n)},onIconClick:function(t){c?c(e,n):l&&l(e,n)}},w=new P("gc-treenode"),_=w.element("subtree"),S=C(_.name,((o={})[_.modifier("outline")]=a,o));return Object(r.h)("div",{className:w.name,key:"node_"+n.join("-")},Object(r.h)(qn,p({},b)),y&&Object(r.h)("div",{className:S},v.map(function(e,r){return t.renderNode(e,n.concat([r]))})))},t}return d(t,e),t.prototype.render=function(){var e=this,t=this.props.nodes;return Object(r.h)("div",{className:"gc-treeview"},t.map(function(t,n){return e.renderNode(t,[n])}))},t}(m),Jn=new P("gc-checklist"),Qn=3,er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._mediaMap=null,t._disposables=[],t.state={columns:t.props.layout.columnsDefault||Qn},t.generateColumnStyles=function(e,t){if(e||t){var n=[];e&&n.push(e),t&&n.push.apply(n,t.map(function(e){return e.amount})),n.forEach(function(e){if(!(e<6||document.getElementById("gc-checklist-col-"+e))){var t=document.createElement("style");t.id="gc-checklist-col-"+e,t.innerHTML="\n\t\t\t\t.gc-checklist.gc-checklist--horizontal.gc-col-"+e+" > .gc-radio,\n\t\t\t\t.gc-checklist.gc-checklist--horizontal.gc-col-"+e+" > .gc-check {\n\t\t\t\t\tmax-width: calc(100% / "+e+");\n\t\t\t\t}\n\t\t\t",document.body.appendChild(t)}})}},t.generateMediaMap=function(e){if(t._mediaMap={},e)for(var n,r=e.sort(function(e,t){return e.breakpoint-t.breakpoint}),o=function(e){return"(max-width: "+e+"px)"},i=function(e){var i=o(r[e].breakpoint),a=r[e+1]&&o(r[e+1].breakpoint),s=n||window.matchMedia(i);a&&(n=window.matchMedia(a)),s.addListener(t.onMediaMatch),t._disposables.push(function(){return s.removeListener(t.onMediaMatch)}),t._mediaMap[s.media]={query:s,columns:r[e].amount,next:a&&n.media}},a=0;a<r.length;a++)i(a)},t.onMediaMatch=function(e){var n=t,r=n._mediaMap,o=n.props.layout;if(r){var i,a=r[e.media];i=e.matches?a.columns:a.next?r[a.next].columns:o.columnsDefault||Qn,t.setState({columns:i})}},t.mapItems=function(e,n){if(!e)return null;var o=t.props,i=o.type,a=o.size,s=o.invalid,l=o.disabled,c=o.textAlign,u=o.onChange;if("checkboxes"===i){var d=p({onChange:u},e,{invalid:s,disabled:l,size:a,textAlign:c});return Object(r.h)(Ae,p({},d,{key:n}))}if("radios"===i){var f=p({onChange:u},e,{invalid:s,disabled:l,size:a,textAlign:c});return Object(r.h)(Ze,p({},f,{key:n}))}return null},t}return d(t,e),t.prototype.componentDidMount=function(){var e=this._mediaMap,t=this.props.layout,n=this.state.columns;if("horizontal"===t.direction&&t.columnsMedia){var r=t,o=r.columnsDefault,i=r.columnsMedia;i&&this.generateMediaMap(i),this.generateColumnStyles(o,i)}if(e){for(var a=t.columnsDefault||n,s=0,l=Object.keys(e);s<l.length;s++){var c=l[s];if(e[c].query.matches){a=e[c].columns;break}}a!==n&&this.setState({columns:a})}},t.prototype.componentWillUnmount=function(){this._disposables.forEach(function(e){return e()})},t.prototype.componentDidUpdate=function(){var e=this.props.layout;if(e.columnsMedia&&!this._mediaMap){var t=e,n=t.columnsDefault,r=t.columnsMedia;this.generateMediaMap(r),this.generateColumnStyles(n,r)}"vertical"===e.direction&&this._mediaMap&&(this._mediaMap=null)},t.prototype.render=function(){var e,t,n,o,i=this.props,a=i.items,s=i.dataAid,l=i.customCSS,c=i.layout,u=i.align,d=i.itemOffset,p=this.state.columns,f=C(Jn.name,l,((e={})[Jn.modifier("horizontal")]="horizontal"===c.direction,e),((t={})[Jn.modifier("align-"+u)]="vertical"===c.direction&&"left"!==u,t),((n={})[Jn.modifier("with-offset")]=d,n),((o={})["gc-col-"+p]="horizontal"===c.direction,o));return Object(r.h)("div",{className:f,"data-aid":s},a.map(this.mapItems))},t.defaultProps={layout:{direction:"vertical"},align:"left"},t}(m),tr=new P("gc-datetime"),nr=new P("gc-datetime-days-view"),rr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alwaysValidDate=function(e,t){return!0},t.getDaysOfWeek=function(e){var t=e.weekdaysMin(),n=e.firstDayOfWeek(),r=[],o=0;return t.forEach(function(e){return r[(7+o++-n)%7]=e}),r},t.renderDay=function(e,t){return Object(r.h)("td",p({},e),t.date())},t.renderDays=function(){var e=t.props,n=e.viewDate,o=e.selectedDate,i=e.isValidDate,a=o&&o.clone(),s=n.year(),l=n.month(),u=i||t.alwaysValidDate,d=n.clone().subtract(1,"months");d.date(d.daysInMonth()).startOf("week");for(var p=d.clone().add(42,"d"),f=[],h=[],g=new P("gc-datetime-day");d.isBefore(p);){var m=g.name,v=!1,y=!1;d.year()===s&&d.month()<l||d.year()<s?(m+=" "+g.modifier("old"),v=!0):(d.year()===s&&d.month()>l||d.year()>s)&&(m+=" "+g.modifier("new"),y=!0),a&&d.isSame(a,"day")&&(m+=" "+g.modifier("selected")),d.isSame(c()(),"day")&&(m+=" "+g.modifier("today"));var b=d.clone(),w=!u(b,a);w&&(m+=" "+g.modifier("disabled"));var _={key:d.format("M_D"),className:m};w||(_.onClick=t.updateSelectedDate({kind:"day",value:d.date(),prevMonth:v,nextMonth:y})),h.push(t.renderDay(_,b)),7===h.length&&(f.push(Object(r.h)("tr",{key:d.format("M_D")},h)),h=[]),d.add(1,"d")}return f},t.renderFooter=function(){var e=t.props,n=e.timeFormat,o=e.selectedDate,i=e.viewDate,a=e.showView,s=e.controlLabels,l=e.withControls;if(!n&&!l)return null;var c=o||i,u={accent:"text+icon",block:!0,width:"100%",rounded:!0,background:"transparent",textAlign:"center",customCSS:nr.element("time").name},d={textAlign:"center",rounded:!0,accent:"icon",background:"transparent"};return Object(r.h)("div",{className:"gc-datetime-footer"},Boolean(n)&&Object(r.h)("div",{className:"gc-datetime-footer__time"},Object(r.h)(ie,p({},u,{text:c.format(n),onClick:a("time")}))),l&&Object(r.h)("div",{className:"gc-datetime-footer__controls"},Object(r.h)(ie,p({},d,{text:s.today,icon:{type:"svg",content:re["calendar-today"]},onClick:t.updateSelectedDate({kind:"today"})})),Object(r.h)(ie,p({},d,{text:s.clear,icon:{type:"svg",content:re["calendar-remove"]},onClick:t.updateSelectedDate({kind:"clear"})}))))},t.updateSelectedDate=function(e){return function(n){return t.props.updateSelectedDate(e,!0)}},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.viewDate,n=e.showView,o=e.subtractTime,i=e.addTime,a=e.daysViewHeaderFormat,s=t,l=s.localeData(),c={accent:"text+icon",block:!0,width:"100%",rounded:!0,background:"transparent",textAlign:"center"};return Object(r.h)("div",{className:tr.name+" "+nr.name},Object(r.h)("div",{className:"gc-datetime-header"},Object(r.h)("div",{className:"gc-datetime-header__prev"},Object(r.h)(ie,p({},c,{icon:{type:"svg",content:re["chevron-left"]},onClick:o(1,"months")}))),Object(r.h)("div",{className:"gc-datetime-header__switch"},Object(r.h)(ie,p({},c,{text:s.format(a),onClick:n("months")}))),Object(r.h)("div",{className:"gc-datetime-header__next"},Object(r.h)(ie,p({},c,{icon:{type:"svg",content:re["chevron-left"],rotate:"180"},onClick:i(1,"months")})))),Object(r.h)("table",null,Object(r.h)("thead",null,Object(r.h)("tr",null,this.getDaysOfWeek(l).map(function(e,t){return Object(r.h)("th",{key:"day_name_"+t,className:"dow"},e)}))),Object(r.h)("tbody",null,this.renderDays())),this.renderFooter())},t}(m),or=new P("gc-datetime"),ir=new P("gc-datetime-months-view"),ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alwaysValidDate=function(e,t){return!0},t.renderMonth=function(e,n){var o=t.props.viewDate.clone(),i=o.localeData().monthsShort(o.month(n)).substring(0,3);return Object(r.h)("td",p({},e),i)},t.renderMonths=function(){for(var e=t.props,n=e.viewDate,o=e.selectedDate,i=e.updateOn,a=e.setDate,s=e.isValidDate,l=n.year(),c=n.month(),u=s||t.alwaysValidDate,d=[],p=[],f=function(e){var s,f,h=n.clone().set({year:l,month:e,date:1}),g=parseInt(h.endOf("month").format("D"),10),m=void 0===Array.from({length:g},function(e,t){return t+1}).find(function(e){return u(h.clone().set("date",e))}),v=new P("gc-datetime-month"),y={key:e,className:C(v.name,((s={})[v.modifier("selected")]=o&&e===o.month()&&l===o.year(),s),((f={})[v.modifier("disabled")]=m,f))};m||(y.onClick="months"===i?t.updateSelectedMonth({kind:"month",value:e}):a("month",e)),p.push(t.renderMonth(y,e)),4===p.length&&(d.push(Object(r.h)("tr",{key:c+"_"+d.length},p)),p=[])},h=0;h<12;h++)f(h);return d},t.updateSelectedMonth=function(e){return function(n){return t.props.updateSelectedDate(e)}},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.viewDate,n=e.showView,o=e.subtractTime,i=e.addTime,a={accent:"text+icon",block:!0,width:"100%",rounded:!0,background:"transparent",textAlign:"center"};return Object(r.h)("div",{className:or.name+" "+ir.name},Object(r.h)("div",{className:"gc-datetime-header"},Object(r.h)("div",{className:"gc-datetime-header__prev"},Object(r.h)(ie,p({},a,{icon:{type:"svg",content:re["chevron-left"]},onClick:o(1,"years")}))),Object(r.h)("div",{className:"gc-datetime-header__switch"},Object(r.h)(ie,p({},a,{text:""+t.year(),onClick:n("years")}))),Object(r.h)("div",{className:"gc-datetime-header__next"},Object(r.h)(ie,p({},a,{icon:{type:"svg",content:re["chevron-left"],rotate:"180"},onClick:i(1,"years")})))),Object(r.h)("table",null,Object(r.h)("tbody",null,this.renderMonths())))},t}(m),sr=new P("gc-datetime"),lr=new P("gc-datetime-years-view"),cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.alwaysValidDate=function(e,t){return!0},t.renderYear=function(e,t){return Object(r.h)("td",p({},e),t)},t.renderYears=function(e){for(var n=t.props,o=n.viewDate,i=n.selectedDate,a=n.updateOn,s=n.setDate,l=n.isValidDate||t.alwaysValidDate,c=[],u=[],d=e,p=function(e){var n,p,f=o.clone().set({year:d,month:0,date:1}),h=parseInt(f.endOf("year").format("DDD"),10),g=void 0===Array.from({length:h},function(e,t){return t+1}).find(function(e){return l(f.clone().dayOfYear(e))}),m=new P("gc-datetime-year"),v=C(m.name,((n={})[m.modifier("selected")]=i&&i.year()===d,n),((p={})[m.modifier("disabled")]=g,p)),y={key:d,className:v};g||(y.onClick="years"===a?t.updateSelectedYear({kind:"year",value:d}):s("year",d)),u.push(t.renderYear(y,d)),4===u.length&&(c.push(Object(r.h)("tr",{key:d},u)),u=[]),d++},f=0;f<12;f++)p();return c},t.updateSelectedYear=function(e){return function(n){return t.props.updateSelectedDate(e)}},t}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.viewDate,n=e.showView,o=e.subtractTime,i=e.addTime,a=10*parseInt(""+t.year()/10,10),s={accent:"text+icon",block:!0,width:"100%",rounded:!0,background:"transparent",textAlign:"center"};return Object(r.h)("div",{className:sr.name+" "+lr.name},Object(r.h)("div",{className:"gc-datetime-header"},Object(r.h)("div",{className:"gc-datetime-header__prev"},Object(r.h)(ie,p({},s,{icon:{type:"svg",content:re["chevron-left"]},onClick:o(10,"years")}))),Object(r.h)("div",{className:"gc-datetime-header__switch"},Object(r.h)(ie,p({},s,{text:a+" - "+(a+9),onClick:n("years")}))),Object(r.h)("div",{className:"gc-datetime-header__next"},Object(r.h)(ie,p({},s,{icon:{type:"svg",content:re["chevron-left"],rotate:"180"},onClick:i(10,"years")})))),Object(r.h)("table",null,Object(r.h)("tbody",null,this.renderYears(a))))},t}(m),ur=function(e,t){var n=e.selectedDate,r=e.viewDate,o=e.timeFormat,i=n||r,a=[];-1!==o.toLowerCase().indexOf("h")&&(a.push("hours"),-1!==o.indexOf("m")&&a.push("minutes"));var s,l=parseInt(i.format("H"),10);return t&&-1!==o.toLowerCase().indexOf(" a")&&(s=-1!==o.indexOf(" A")?l>=12?"PM":"AM":l>=12?"pm":"am"),{selectedDate:n,hours:i.format("H"),minutes:i.format("mm"),daypart:s,counters:a}},dr=new P("gc-datetime"),pr=new P("gc-datetime-time-view"),fr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=ur(t.props),t.getTimeConstraints=function(){var e=t.props.timeConstraints,n={hours:{min:0,max:23,step:1},minutes:{min:0,max:59,step:1}};return e?(e.hours&&(n.hours=e.hours),e.minutes&&(n.minutes=e.minutes),n):n},t.timeConstraints=t.getTimeConstraints(),t.onIncrease=function(e){return function(){var n=parseInt(t.state[e],10)+t.timeConstraints[e].step;n>t.timeConstraints[e].max&&(n=t.timeConstraints[e].min+(n-(t.timeConstraints[e].max+1))),t.props.setTime(e,n)}},t.onDecrease=function(e){return function(){var n=parseInt(t.state[e],10)-t.timeConstraints[e].step;n<t.timeConstraints[e].min&&(n=t.timeConstraints[e].max+1-(t.timeConstraints[e].min-n)),t.props.setTime(e,n)}},t.toggleDayPart=function(){var e=parseInt(t.state.hours,10)+12;e>t.timeConstraints.hours.max&&(e=t.timeConstraints.hours.min+(e-(t.timeConstraints.hours.max+1))),t.props.setTime("hours",e)},t.renderUnit=function(e){var n=t.state[e];if("hours"===e&&-1!==t.props.timeFormat.toLowerCase().indexOf(" a")){var o=parseInt(n,10);0===(o=(o-1)%12+1)&&(o=12),n=""+o}var i={accent:"text+icon",block:!0,rounded:!0,size:"small",background:"transparent",textAlign:"center"};return Object(r.h)("div",{className:pr.element("unit").name},Object(r.h)(ie,p({},i,{icon:{type:"svg",content:re["chevron-up"]},onClick:t.onIncrease(e)})),Object(r.h)("span",null,n),Object(r.h)(ie,p({},i,{icon:{type:"svg",content:re["chevron-up"],rotate:"180"},onClick:t.onDecrease(e)})))},t.renderDayPart=function(){var e,n=t.state.daypart;if(!n)return null;var o=pr.element("daypart"),i=C(o.name,((e={})[o.modifier("uppercase")]="AM"===n||"PM"===n,e));return Object(r.h)(ie,{accent:"text",background:"transparent",block:!0,rounded:!0,customCSS:i,onClick:t.toggleDayPart},"am"===n.toLowerCase()?Object(r.h)("b",null,"am"):Object(r.h)("span",null,"am"),"pm"===n.toLowerCase()?Object(r.h)("b",null,"pm"):Object(r.h)("span",null,"pm"))},t}return d(t,e),t.getDerivedStateFromProps=function(e,t){return ur(e,t)},t.prototype.render=function(){var e=this.props,t=e.showView,n=e.selectedDate,o=e.viewDate,i=e.dateFormat,a=n||o;return Object(r.h)("div",{className:dr.name+" "+pr.name},Object(r.h)("div",{className:"gc-datetime-header"},Object(r.h)("div",{className:"gc-datetime-header__prev",style:{width:0}}),Object(r.h)("div",{className:"gc-datetime-header__switch"},Object(r.h)(ie,p({},{accent:"text+icon",block:!0,width:"100%",rounded:!0,background:"transparent",textAlign:"center"},{text:a.format(i),onClick:t("days")}))),Object(r.h)("div",{className:"gc-datetime-header__next",style:{width:0}})),Object(r.h)("table",null,Object(r.h)("tbody",null,Object(r.h)("tr",null,Object(r.h)("td",{className:pr.element("content").name},Object(r.h)("div",null,this.renderUnit("hours"),Object(r.h)("span",null,":"),this.renderUnit("minutes"),this.renderDayPart()))))))},t}(m),hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.render=function(){var e=this.props,t=e.view,n=e.viewProps;switch(t){case"days":return Object(r.h)(rr,p({},n));case"months":return Object(r.h)(ar,p({},n));case"years":return Object(r.h)(cr,p({},n));case"time":return Object(r.h)(fr,p({},n));default:return null}},t}(m),gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localMoment=function(e,n,r){var o;return o=(r=r||t.props).utc?c.a.utc(e,n,r.strictParsing):c()(e,n,r.strictParsing),r.locale&&o.locale(r.locale),o},t.getUpdateOn=function(e){return e.date.match(/[lLD]/)?"days":-1!==e.date.indexOf("M")?"months":-1!==e.date.indexOf("Y")?"years":"days"},t.getFormats=function(e){var n=t.localMoment(e.date,void 0,e).localeData(),r={date:e.dateFormat||"",time:e.timeFormat||""};return!0===r.date?r.date=n.longDateFormat("L"):"days"!==t.getUpdateOn(r)&&(r.time=""),!0===r.time&&(r.time=n.longDateFormat("LT")),r.datetime=r.date&&r.time?r.date+" "+r.time:r.date||r.time,r},t.parseDate=function(e,n){var r=null;return e&&"string"==typeof e?r=t.localMoment(e,n.datetime):e&&(r=t.localMoment(e)),r&&!r.isValid()&&(r=null),r},t.getStateFromProps=function(e){var n=e.value||e.defaultValue,r=t.getFormats(e),o=t.parseDate(n,r),i=t.parseDate(e.viewDate,r);i=o?o.clone().startOf("month"):i?i.clone().startOf("month"):t.localMoment().startOf("month");var a=t.getUpdateOn(r);return{inputValue:o?o.format(r.datetime):n.isValid&&!n.isValid()?"":n||"",inputFormat:r.datetime,selectedDate:o,viewDate:i,updateOn:a}},t.getInitialState=function(){var e=t.getStateFromProps(t.props);return e.currentView=t.props.dateFormat?t.props.viewMode||e.updateOn||"days":"time",e},t.state=t.getInitialState(),t.showView=function(e){return function(){t.setState({currentView:e})}},t.setDate=function(e,n){return function(){t.setState({viewDate:t.state.viewDate.clone()[e](n).startOf(e),currentView:{month:"days",year:"months"}[e]})}},t.allowedSetTime=["hours","minutes"],t.setTime=function(e,n){var r,o=t,i=o.state,a=i.selectedDate,s=i.viewDate,l=i.inputFormat,c=o.props.onChange,u=(a||s).clone(),d=t.allowedSetTime.indexOf(e)+1;for(u[e](n);d<t.allowedSetTime.length;d++)u[r=t.allowedSetTime[d]](u[r]());t.props.value||t.setState({selectedDate:u,inputValue:u.format(l)}),c&&c(u)},t.addTime=function(e,n,r){return function(){t.updateTime("add",e,n,r)}},t.subtractTime=function(e,n,r){return function(){t.updateTime("subtract",e,n,r)}},t.updateTime=function(e,n,r,o){var i,a=o?"selectedDate":"viewDate",s=((i={})[a]=t.state[a].clone()[e](n,r),i);t.setState(s)},t.updateSelectedDate=function(e,n){var r=t,o=r.state,i=o.selectedDate,a=o.viewDate,s=r.props.onChange,l=i||a,c=l.clone();if("day"===e.kind){var u=e.prevMonth?-1:e.nextMonth?1:0;c=a.clone().month(a.month()+u).date(e.value)}else if("month"===e.kind)c=a.clone().month(e.value).date(l.date());else if("year"===e.kind)c=a.clone().month(l.month()).date(l.date()).year(e.value);else if("today"===e.kind)c=t.localMoment();else if("clear"===e.kind)return t.onClear();c.hours(l.hours()).minutes(l.minutes()).seconds(l.seconds()).milliseconds(l.milliseconds()),t.props.value||t.setState({selectedDate:c,viewDate:c.clone().startOf("month"),inputValue:c.format(t.state.inputFormat)}),n&&t.onClose(),s&&s(c)},t.getViewProps=function(){var e=t,n=e.props,r=n.value,o=n.isValidDate,i=n.timeConstraints,a=n.controlLabels,s=n.withControls,l=n.daysViewHeaderFormat,c=e.state,u=c.viewDate,d=c.selectedDate,p=c.updateOn,f=e.showView,h=e.setDate,g=e.setTime,m=e.addTime,v=e.subtractTime,y=e.updateSelectedDate,b=e.localMoment,w=t.getFormats(t.props);return{dateFormat:w.date,timeFormat:w.time,controlLabels:a,value:r,isValidDate:o,timeConstraints:i,daysViewHeaderFormat:l,viewDate:u,selectedDate:d,updateOn:p,withControls:s,showView:f,setDate:h,setTime:g,addTime:m,subtractTime:v,updateSelectedDate:y,localMoment:b}},t.onToggle=function(){t.setState({currentView:"days"})},t.onChange=function(e){var n=t.localMoment(e.target.value,t.state.inputFormat),r={inputValue:e.target.value};n.isValid()&&!t.props.value?(r.selectedDate=n,r.viewDate=n.clone().startOf("month")):r.selectedDate=null,t.setState(r)},t.onBlur=function(e){var n=t.localMoment(e.target.value,t.state.inputFormat),r={inputValue:e.target.value};n.isValid()&&!t.props.value?(r.selectedDate=n,r.viewDate=n.clone().startOf("month")):r.selectedDate=null,t.setState(r,function(){return t.props.onChange&&t.props.onChange(n.isValid()?n:t.state.inputValue)})},t.onClose=function(){t.props.noCloseOnSelect||B.current.dropdowns.open(null)},t.onClear=function(){var e=t.props.onChange;e?e(""):t.setState({viewDate:t.localMoment().startOf("month"),inputValue:"",selectedDate:null}),t.onClose()},t}return d(t,e),t.prototype.componentWillReceiveProps=function(e){this.UNSAFE_componentWillReceiveProps(e)},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this.getFormats(e),n={};if(e.value===this.props.value&&t.datetime===this.getFormats(this.props).datetime||(n=this.getStateFromProps(e)),e.viewMode!==this.props.viewMode&&(n.currentView=e.viewMode),e.locale!==this.props.locale){if(this.state.viewDate){var r=this.state.viewDate.clone().locale(e.locale);n.viewDate=r}if(this.state.selectedDate){var o=this.state.selectedDate.clone().locale(e.locale);n.selectedDate=o,n.inputValue=o.format(t.datetime)}}e.utc!==this.props.utc&&(e.utc?(this.state.viewDate&&(n.viewDate=this.state.viewDate.clone().utc()),this.state.selectedDate&&(n.selectedDate=this.state.selectedDate.clone().utc(),n.inputValue=n.selectedDate.format(t.datetime))):(this.state.viewDate&&(n.viewDate=this.state.viewDate.clone().local()),this.state.selectedDate&&(n.selectedDate=this.state.selectedDate.clone().local(),n.inputValue=n.selectedDate.format(t.datetime)))),e.viewDate!==this.props.viewDate&&(n.viewDate=c()(e.viewDate)),this.setState(n)},t.prototype.render=function(){var e=this,t=e.props,n=t.id,o=t.dataAid,i=t.size,a=t.block,s=t.width,l=t.rounded,c=t.disabled,u=t.invalid,d=t.dropup,f=t.menuWidth,h=t.placeholder,g=t.name,m=t.customCSS,v=t.menuCustomCSS,y=e.state,b=y.inputValue,w=y.currentView,_=e.onToggle,S=e.onChange,x=e.onBlur,C={view:w,viewProps:this.getViewProps()},k={value:b,content:Object(r.h)(hr,p({},C)),openOnFocus:!0,menuWidth:f||"auto",onToggle:_,onChange:S,onBlur:x,id:n,dataAid:o,invalid:u,size:i,block:a,width:s,rounded:l,disabled:c,dropup:d,placeholder:h,name:g,customCSS:m,menuCustomCSS:v};return Object(r.h)(Ue,p({},k))},t.defaultProps={defaultValue:"",dateFormat:!0,timeFormat:!1,timeConstraints:{},utc:!1,daysViewHeaderFormat:"MMMM YYYY",strictParsing:!0,controlLabels:{today:"Today",clear:"Clear"}},t}(m),mr=new P("gc-alert"),vr={main:mr.element("main").name,icon:mr.element("icon").name,title:mr.element("title").name,actions:mr.element("actions").name,details:mr.element("details").name},yr=function(e){var t=e.details,n=e.defaultExpanded;return{expanded:t&&n||!1}},br=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state=yr(t.props),t.toggleExpand=function(){t.setState({expanded:!t.state.expanded})},t}return d(t,e),t.prototype.render=function(){var e,t=this.props,n=t.level,o=t.size,i=t.icon,a=t.title,s=t.details,l=t.textExpand,c=t.textCollapse,u=t.customCSS,d=t.onClose,f=t.textClose,h=t.id,g=t.dataAid,m=this.state.expanded,v=C(mr.name,u,((e={})[mr.modifier("level-"+n)]="info"!==n,e[mr.modifier("size-"+o)]="default"!==o,e)),y={type:"button",text:m?c:l,title:m?c:l,accent:"text+icon",textAlign:"center",level:n,onClick:this.toggleExpand},b={type:"button",text:f,title:f,accent:"full",level:n,onClick:d},w={size:"small",customCSS:vr.actions,items:[s&&y,d&&b]},_=s||d;return _&&"small"===o&&(y.text=void 0,y.icon={type:"svg",content:re["chevron-up"],rotate:m?void 0:"180"},b.text=void 0,b.accent="icon",b.icon={type:"svg",content:re.close}),Object(r.h)("div",{className:v,id:h,"data-aid":g},Object(r.h)("div",{className:vr.main},i&&Object(r.h)(te,{icon:i,customCSS:vr.icon}),Object(r.h)("h4",{className:vr.title},a),_&&Object(r.h)(Ge,p({},w))),m&&Object(r.h)("div",{className:vr.details},s))},t.defaultProps={level:"info",size:"default",textExpand:"Show Details",textCollapse:"Hide Details",textClose:"Close"},t}(m)},function(e,t,n){var r=n(26),o=n(110),i=n(13),a=n(63),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(23),o=n(20),i=n(127),a=n(16).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(21),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,""")+'"'),s+">"+a+"</"+t+">"}},function(e,t,n){var r=n(8);e.exports=function(e){return r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(16),o=n(48);e.exports=n(26)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=n(4)},function(e,t,n){var r=n(45),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";n.d(t,"d",function(){return f}),n.d(t,"f",function(){return g}),n.d(t,"e",function(){return m}),n.d(t,"g",function(){return v}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return y}),n.d(t,"c",function(){return w});var r=n(1),o=n(6),i=n(44),a=n(58),s=n(14),l=n.n(s),c=n(105),u=n(2),d=n(75),p=function(){return function(e,t){this.content=e,this.pageSize=t}}(),f=function(){return function(e,t,n,r){this.width=e,this.height=t,this.delayedContent=n,this.pageContent=r}}();function h(e,t){var n=0;!function e(o){var i,a;try{for(var s=r.k(o),l=s.next();!l.done;l=s.next()){var c=l.value;3===c.nodeType&&""!==c.nodeValue.trim()?t(n,c):1===c.nodeType&&c.childNodes&&!/(script|style)/i.test(c.tagName)&&e(c.childNodes),n++}}catch(e){i={error:e}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}}(e)}function g(e){return l()(e).find(".page")}function m(e){return e.split("<body")[1].split(">").slice(1).join(">").split("</body>")[0]}function v(e,t){h(e,function(e,n){if(e===t.ItemIndex){var r=document.createElement("span");r.className="highlight",r.setAttribute("id","hl-"+e);var o=n.splitText(t.Range.Start);o.splitText(t.Range.Length);var i=o.cloneNode(!0);r.appendChild(i),o.parentNode.replaceChild(r,o)}})}var y,b=function(){function e(e,t,n,s,v,y,b,w){var _=this;this.documentId=e,this.viewId=t,this._apiClient=n,this.parameters=s,this.galleyMode=v,this.reportName=y,this._documentKeeper=b,this._reportType=w,this._pc={totalPageCount:0,renderedSoFar:0},this._delayedContentReady=!1,this._pagesCache=[],this._tocStore=new o.Store({},function(e,t){return e}),this.awaitPage=function(e){return r.f(_,void 0,void 0,function(){var t,n,o,i,a,s,c,u,d,h;return r.h(this,function(g){switch(g.label){case 0:if(void 0!==(t=this._pagesCache[e]))return[3,4];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this._apiClient.getPage(this.viewId,e)];case 2:return t=g.sent(),this._pagesCache[e]=t,[3,4];case 3:if(n=g.sent(),this._documentKeeper.contains(this.documentId))throw n;return[2,null];case 4:if(this._delayedContentReady&&delete this._pagesCache[e],!t.delayedContent)return[2,new p(t.pageContent,{width:t.width,height:t.height})];if(!this._delayedContentReady)return[3,8];g.label=5;case 5:return g.trys.push([5,7,,8]),[4,this._apiClient.getDelayedContent(this.viewId,e)];case 6:if(o=g.sent(),Object.getOwnPropertyNames(o).length>0){i=l()("<div/>").html(t.pageContent);try{for(a=r.k(Object.getOwnPropertyNames(o)),s=a.next();!s.done;s=a.next())c=s.value,i.find("#"+c).replaceWith(o[c])}catch(e){d={error:e}}finally{try{s&&!s.done&&(h=a.return)&&h.call(a)}finally{if(d)throw d.error}}t=new f(t.width,t.height,!1,i.html())}return[3,8];case 7:if(u=g.sent(),this._documentKeeper.contains(this.documentId))throw u;return[2,null];case 8:return[2,new p(t.pageContent,{width:t.width,height:t.height})]}})})},this.search=function(e,t){var n=_;return function(){return r.c(this,arguments,function(){var s,c,u,d;return r.h(this,function(p){switch(p.label){case 0:s=function(e){var t,n,o="";try{for(var i=r.k(e.Text),a=i.next();!a.done;a=i.next()){var s=a.value;"\\|[]()+*.{}$^?".indexOf(s)>=0&&(o+="\\"),o+=s}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}e.WholeWord&&(o="\\b"+o+"\\b");var l="gm";return e.MatchCase||(l+="i"),new RegExp(o,l)}(e),c=Math.max(0,t.PageIndex),p.label=1;case 1:return c<(n._pc.renderedSoFar||n._pc.totalPageCount||0)?[4,r.e(i.SearchResult.MakePageStart(c))]:[3,7];case 2:return[4,p.sent()];case 3:return p.sent(),[4,r.e(n.awaitPage(c))];case 4:return null==(u=p.sent())?[3,7]:(d=function(e,t,n){var r=[];return h(l()("<div/>").html(e),function(e,i){for(var s=null,l=i.nodeValue,c=-1;null!=(s=t.exec(l))&&!(s.index<=c);){var u={PageIndex:n,DisplayText:l,Range:new o.SearchFeature.Range(s.index,s[0].length),ItemIndex:e,ItemArea:new a.Rect(0,0,0,0)};r.push(u),c=s.index}}),r}(g(u.content).prop("innerHTML")||m(u.content),s,c),[5,r.k(r.b(r.d(d)))]);case 5:return[4,r.e.apply(void 0,[p.sent()])];case 6:return p.sent(),c++,[3,1];case 7:return[2]}})})}()},this.export=function(e,t,n,o,i){return void 0===o&&(o=!0),r.f(_,void 0,void 0,function(){var a,s,l,p,f;return r.h(this,function(h){switch(h.label){case 0:try{a=function(e,t,n){var o=Object(c.a)(n).find(function(e){return e.formatKey.toLowerCase()===t.toLowerCase()});if(null==o)throw new Error(u.b.t("jsviewer:errors.unknown-format",{defaultValue:"Unsupported export type: '{{exportType}}'",exportType:t}));var i=o.defaultSettings,a=r.a({},i,e);"csv"===t.toLowerCase()&&(a.RowsDelimiter&&(a.RowsDelimiter=a.RowsDelimiter.replace(/\\r/g,"\r").replace(/\\n/g,"\n")),a.ColumnsDelimiter&&(a.ColumnsDelimiter=a.ColumnsDelimiter.replace(/\\r/g,"\r").replace(/\\n/g,"\n")));return a}(t,e,this._reportType)}catch(e){if(i)return[2,i(e)];throw e}return[4,this._apiClient.exportDocument(this.documentId,e,{Settings:a})];case 1:return s=h.sent(),l=this._apiClient.getExportResultUri(s.exportId,this.reportName),n&&"function"==typeof n&&n(l),o?(p=a.OnlyForPrint,f=a.ContentInline,p||f?[2,Object(d.a)(l)]:[4,this._apiClient.downloadExportResult(l,this.reportName,i)]):[2];case 2:return h.sent(),[2]}})})}}return Object.defineProperty(e.prototype,"tocStore",{get:function(){return this._tocStore},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageCount",{get:function(){return this._pc},set:function(e){this._pc=e},enumerable:!0,configurable:!0}),e.prototype.setDelayedContentReady=function(){this._delayedContentReady=!0},e.prototype.print=function(){return r.f(this,void 0,void 0,function(){return r.h(this,function(e){switch(e.label){case 0:return[4,this.export("pdf",{OnlyForPrint:"true",ContentInline:"true"})];case 1:return[2,e.sent()]}})})},e}();!function(e){e[e.Ok=0]="Ok",e[e.Canceled=1]="Canceled"}(y||(y={}));var w=function(){return function(e,t,n){var o=this;this._doc=e,this._apiClient=t,this._sink=n,this.renderComplete=function(e){return r.f(o,void 0,void 0,function(){var t,n,o,i,a;return r.h(this,function(r){switch(r.label){case 0:return t=this._doc,this._sink.cancel.isCancellationRequested?[2,y.Canceled]:(o=(n=t.tocStore).dispatch,i={},[4,this._apiClient.getToc(t.viewId)]);case 1:return o.apply(n,[(i.content=r.sent(),i)]),this._sink.cancel.isCancellationRequested?[2,y.Canceled]:(t.setDelayedContentReady(),this._sink.invalidatePage(0,e||1),[4,this._sink.progress({phase:"complete",document:t,pageCount:e})]);case 2:return r.sent(),a={totalPageCount:e,renderedSoFar:e},t.pageCount=a,[2,y.Ok]}})})},this.updatePageCount=function(e){return r.f(o,void 0,void 0,function(){var t;return r.h(this,function(n){switch(n.label){case 0:return e<1?[2,y.Ok]:this._sink.cancel.isCancellationRequested?[2,y.Canceled]:(t={totalPageCount:null,renderedSoFar:e},[4,this._sink.progress({phase:"run",count:t,document:this._doc})]);case 1:return n.sent(),this._doc&&(this._doc.pageCount=t),[2,y.Ok]}})})}}}()},function(e,t,n){e.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(294),o=Object.prototype.hasOwnProperty,i=Array.prototype.splice,a=Object.prototype.toString;function s(e){return a.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return c(t).forEach(function(n){o.call(t,n)&&(e[n]=t[n])}),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function u(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===s(e)?new Map(e):"Set"===s(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=l({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,i="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(i)||r(!Array.isArray(i),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==typeof i&&null!==i,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(this.commands).join(", "));var a=e;return c(i).forEach(function(t){if(o.call(n.commands,t)){var r=e===a;a=n.commands[t](i[t],a,i,e),r&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===s(e)?n.update(e.get(t),i[t]):n.update(e[t],i[t]),c="Map"===s(a)?a.get(t):a[t];n.isEquals(l,c)&&(void 0!==l||o.call(e,t))||(a===e&&(a=u(e)),"Map"===s(a)?a.set(t,l):a[t]=l)}}),a},e}();t.Context=d;var p={$push:function(e,t,n){return h(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return h(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){return function(e,t){r(Array.isArray(e),"Expected $splice target to be an array; got %s",e),m(t.$splice)}(t,n),e.forEach(function(e){m(e),t===o&&e.length&&(t=u(o)),i.apply(t,e)}),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?u(t):t;return e.forEach(function(e){n[e]=!t[e]}),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach(function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=u(r)),delete t[e])}),t},$add:function(e,t,n,r){return v(t,"$add"),g(e,"$add"),"Map"===s(t)?e.forEach(function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=u(r)),t.set(n,o)}):e.forEach(function(e){t!==r||t.has(e)||(t=u(r)),t.add(e)}),t},$remove:function(e,t,n,r){return v(t,"$remove"),g(e,"$remove"),e.forEach(function(e){t===r&&t.has(e)&&(t=u(r)),t.delete(e)}),t},$merge:function(e,t,n,o){var i,a;return i=t,r((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),r(i&&"object"==typeof i,"update(): $merge expects a target of type 'object'; got %s",i),c(e).forEach(function(n){e[n]!==t[n]&&(t===o&&(t=u(o)),t[n]=e[n])}),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},f=new d;function h(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),g(t[n],n)}function g(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function m(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function v(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}t.isEquals=f.update.isEquals,t.extend=f.extend,t.default=f.update,t.default.default=e.exports=l(t.default,t)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Dt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),o=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return o;e._isValid=o}return e._isValid}function m(e){var t=f(NaN);return null!=e?p(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var v=o.momentProperties=[];function y(e,t){var n,r,o;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)r=v[n],s(o=t[r])||(e[r]=o);return e}var b=!1;function w(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,o.updateOffset(this),b=!1)}function _(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function S(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function x(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=S(t)),n}function C(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&x(e[r])!==x(t[r]))&&a++;return a+i}function k(e){!1===o.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return p(function(){if(null!=o.deprecationHandler&&o.deprecationHandler(null,e),n){for(var r,i=[],a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(var s in r+="\n["+a+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[a];i.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(i).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var P,T={};function M(e,t){null!=o.deprecationHandler&&o.deprecationHandler(e,t),T[e]||(k(t),T[e]=!0)}function D(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function j(e,t){var n,r=p({},e);for(n in t)d(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)d(e,n)&&!d(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function L(e){null!=e&&this.set(e)}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,P=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var N={};function E(e,t){var n=e.toLowerCase();N[n]=N[n+"s"]=N[t]=e}function A(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function V(e){var t,n,r={};for(n in e)d(e,n)&&(t=A(n))&&(r[t]=e[n]);return r}var I={};function H(e,t){I[e]=t}function R(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},W={};function U(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(W[e]=o),t&&(W[t[0]]=function(){return R(o.apply(this,arguments),t[1],t[2])}),n&&(W[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Y(e,t){return e.isValid()?(t=$(t,e.localeData()),B[t]=B[t]||function(e){var t,n,r,o=e.match(F);for(t=0,n=o.length;t<n;t++)W[o[t]]?o[t]=W[o[t]]:o[t]=(r=o[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,i="";for(r=0;r<n;r++)i+=D(o[r])?o[r].call(t,e):o[r];return i}}(t),B[t](e)):e.localeData().invalidDate()}function $(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(z.lastIndex=0;n>=0&&z.test(e);)e=e.replace(z,r),z.lastIndex=0,n-=1;return e}var G=/\d/,q=/\d\d/,K=/\d{3}/,X=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ce={};function ue(e,t,n){ce[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n<e.length;n++)fe[e[n]]=r}function ge(e,t){he(e,function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)})}function me(e,t,n){null!=t&&d(fe,e)&&fe[e](t,n._a,n,e)}var ve=0,ye=1,be=2,we=3,_e=4,Se=5,xe=6,Ce=7,ke=8;function Oe(e){return Pe(e)?366:365}function Pe(e){return e%4==0&&e%100!=0||e%400==0}U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),E("year","y"),H("year",1),ue("Y",ie),ue("YY",J,q),ue("YYYY",ne,X),ue("YYYYY",re,Z),ue("YYYYYY",re,Z),he(["YYYYY","YYYYYY"],ve),he("YYYY",function(e,t){t[ve]=2===e.length?o.parseTwoDigitYear(e):x(e)}),he("YY",function(e,t){t[ve]=o.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ve]=parseInt(e,10)}),o.parseTwoDigitYear=function(e){return x(e)+(x(e)>68?1900:2e3)};var Te,Me=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Le(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Le(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Pe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ne(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Pe(e)?29:28:31-r%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),E("month","M"),H("month",8),ue("M",J),ue("MM",J,q),ue("MMM",function(e,t){return t.monthsShortRegex(e)}),ue("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=x(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[ye]=o:h(n).invalidMonth=e});var Ee=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ve="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ie(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=x(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function He(e){return null!=e?(Ie(this,e),o.updateOffset(this,!0),this):je(this,"Month")}var Re=le,Fe=le;function ze(){function e(e,t){return t.length-e.length}var t,n,r=[],o=[],i=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),o.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(r.sort(e),o.sort(e),i.sort(e),t=0;t<12;t++)r[t]=pe(r[t]),o[t]=pe(o[t]);for(t=0;t<24;t++)i[t]=pe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Be(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function We(e,t,n){var r=7+t-n,o=(7+Be(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Ue(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=We(e,r,o),c=1+7*(t-1)+s+l;return c<=0?a=Oe(i=e-1)+c:c>Oe(e)?(i=e+1,a=c-Oe(e)):(i=e,a=c),{year:i,dayOfYear:a}}function Ye(e,t,n){var r,o,i=We(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+$e(o,t,n)):a>$e(e.year(),t,n)?(r=a-$e(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function $e(e,t,n){var r=We(e,t,n),o=We(e+1,t,n);return(Oe(e)-r+o)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),H("week",5),H("isoWeek",5),ue("w",J),ue("ww",J,q),ue("W",J),ue("WW",J,q),ge(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),H("day",11),H("weekday",11),H("isoWeekday",11),ue("d",J),ue("e",J),ue("E",J),ue("dd",function(e,t){return t.weekdaysMinRegex(e)}),ue("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ue("dddd",function(e,t){return t.weekdaysRegex(e)}),ge(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),ge(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=le,Je=le,Qe=le;function et(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(e),s.sort(e),l.sort(e),c.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),l[t]=pe(l[t]),c[t]=pe(c[t]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,tt),U("k",["kk",2],0,function(){return this.hours()||24}),U("hmm",0,0,function(){return""+tt.apply(this)+R(this.minutes(),2)}),U("hmmss",0,0,function(){return""+tt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),nt("a",!0),nt("A",!1),E("hour","h"),H("hour",13),ue("a",rt),ue("A",rt),ue("H",J),ue("h",J),ue("k",J),ue("HH",J,q),ue("hh",J,q),ue("kk",J,q),ue("hmm",Q),ue("hmmss",ee),ue("Hmm",Q),ue("Hmmss",ee),he(["H","HH"],we),he(["k","kk"],function(e,t,n){var r=x(e);t[we]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[we]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[we]=x(e.substr(0,r)),t[_e]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=x(e.substr(0,r)),t[_e]=x(e.substr(r,2)),t[Se]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[we]=x(e.substr(0,r)),t[_e]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=x(e.substr(0,r)),t[_e]=x(e.substr(r,2)),t[Se]=x(e.substr(o))});var ot,it=De("Hours",!0),at={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Ve,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Xe,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},st={},lt={};function ct(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=ot._abbr,n(299)("./"+t),dt(r)}catch(e){}return st[t]}function dt(e,t){var n;return e&&((n=s(t)?ft(e):pt(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function pt(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=st[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new L(j(r,t)),lt[e]&<[e].forEach(function(e){pt(e.name,e.config)}),dt(e),st[e]}return delete st[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i<e.length;){for(o=ct(e[i]).split("-"),t=o.length,n=(n=ct(e[i+1]))?n.split("-"):null;t>0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&C(o,n,!0)>=t-1)break;t--}i++}return ot}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[be]<1||n[be]>Ne(n[ve],n[ye])?be:n[we]<0||n[we]>24||24===n[we]&&(0!==n[_e]||0!==n[Se]||0!==n[xe])?we:n[_e]<0||n[_e]>59?_e:n[Se]<0||n[Se]>59?Se:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(t<ve||t>be)&&(t=be),h(e)._overflowWeeks&&-1===t&&(t=Ce),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}function gt(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[be]&&null==e._a[ye]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=gt(t.GG,e._a[ve],Ye(jt(),1,4).year),r=gt(t.W,1),((o=gt(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var c=Ye(jt(),i,a);n=gt(t.gg,e._a[ve],c.year),r=gt(t.w,c.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>$e(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ue(n,r,o,i,a),e._a[ve]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=gt(e._a[ve],r[ve]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Be(a,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[_e]&&0===e._a[Se]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Be:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var vt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],_t=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],St=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,r,o,i,a,s=e._i,l=vt.exec(s)||yt.exec(s);if(l){for(h(e).iso=!0,t=0,n=wt.length;t<n;t++)if(wt[t][1].exec(l[1])){o=wt[t][0],r=!1!==wt[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=_t.length;t<n;t++)if(_t[t][1].exec(l[3])){i=(l[2]||" ")+_t[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!bt.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Tt(e)}else e._isValid=!1}var Ct=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function kt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Ot={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pt(e){var t,n,r,o,i,a,s,l=Ct.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var c=(t=l[4],n=l[3],r=l[2],o=l[5],i=l[6],a=l[7],s=[kt(t),Ve.indexOf(n),parseInt(r,10),parseInt(o,10),parseInt(i,10)],a&&s.push(parseInt(a,10)),s);if(!function(e,t,n){if(e){var r=Ke.indexOf(e),o=new Date(t[0],t[1],t[2]).getDay();if(r!==o)return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}(l[1],c,e))return;e._a=c,e._tzm=function(e,t,n){if(e)return Ot[e];if(t)return 0;var r=parseInt(n,10),o=r%100,i=(r-o)/100;return 60*i+o}(l[8],l[9],l[10]),e._d=Be.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Tt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,i,a,s=""+e._i,l=s.length,c=0;for(r=$(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)i=r[t],(n=(s.match(de(i,e))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),W[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),me(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-c,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=(u=e._locale,d=e._a[we],null==(p=e._meridiem)?d:null!=u.meridiemHour?u.meridiemHour(d,p):null!=u.isPM?((f=u.isPM(p))&&d<12&&(d+=12),f||12!==d||(d=0),d):d),mt(e),ht(e)}else Pt(e);else xt(e);var u,d,p,f}function Mt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),_(t)?new w(ht(t)):(c(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)i=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Tt(t),g(t)&&(i+=h(t).charsLeftOver,i+=10*h(t).unusedTokens.length,h(t).score=i,(null==r||i<r)&&(r=i,n=t));p(e,n||t)}(e):n?Tt(e):function(e){var t=e._i;s(t)?e._d=new Date(o.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=St.exec(e._i);null===t?(xt(e),!1===e._isValid&&(delete e._isValid,Pt(e),!1===e._isValid&&(delete e._isValid,o.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=u(t.slice(0),function(e){return parseInt(e,10)}),mt(e)):a(t)?function(e){if(!e._d){var t=V(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),mt(e)}}(e):l(t)?e._d=new Date(t):o.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function Dt(e,t,n,r,o){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||i(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=o,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new w(ht(Mt(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function jt(e,t,n,r){return Dt(e,t,n,r,!1)}o.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),o.ISO_8601=function(){},o.RFC_2822=function(){};var Lt=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=jt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Nt=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=jt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()});function Et(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return jt();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var At=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Vt(e){var t=V(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Te.call(At,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<At.length;++r)if(e[At[r]]){if(n)return!1;parseFloat(e[At[r]])!==x(e[At[r]])&&(n=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=ft(),this._bubble()}function It(e){return e instanceof Vt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),ue("Z",se),ue("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=zt(se,e)});var Ft=/([\+\-]|\d\d)/gi;function zt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],o=(r+"").match(Ft)||["-",0,0],i=60*o[1]+x(o[2]);return 0===i?0:"+"===o[0]?i:-i}function Bt(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(_(e)||c(e)?e.valueOf():jt(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),o.updateOffset(n,!1),n):jt(e).local()}function Wt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}o.updateOffset=function(){};var Yt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,$t=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gt(e,t){var n,r,o,i,a,s,c=e,u=null;return It(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(c={},t?c[t]=e:c.milliseconds=e):(u=Yt.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:x(u[be])*n,h:x(u[we])*n,m:x(u[_e])*n,s:x(u[Se])*n,ms:x(Ht(1e3*u[xe]))*n}):(u=$t.exec(e))?(n="-"===u[1]?-1:1,c={y:qt(u[2],n),M:qt(u[3],n),w:qt(u[4],n),d:qt(u[5],n),h:qt(u[6],n),m:qt(u[7],n),s:qt(u[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=jt(c.from),a=jt(c.to),o=i.isValid()&&a.isValid()?(a=Bt(a,i),i.isBefore(a)?s=Kt(i,a):((s=Kt(a,i)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(c={}).ms=o.milliseconds,c.M=o.months),r=new Vt(c),It(e)&&d(e,"_locale")&&(r._locale=e._locale),r}function qt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Kt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(M(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),Zt(this,Gt(n="string"==typeof n?+n:n,r),e),this}}function Zt(e,t,n,r){var i=t._milliseconds,a=Ht(t._days),s=Ht(t._months);e.isValid()&&(r=null==r||r,s&&Ie(e,je(e,"Month")+s*n),a&&Le(e,"Date",je(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&o.updateOffset(e,a||s))}Gt.fn=Vt.prototype,Gt.invalid=function(){return Gt(NaN)};var Jt=Xt(1,"add"),Qt=Xt(-1,"subtract");function en(e,t){var n,r,o=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(o,"months");return t-i<0?(n=e.clone().add(o-1,"months"),r=(t-i)/(i-n)):(n=e.clone().add(o+1,"months"),r=(t-i)/(n-i)),-(o+r)||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ft(e))&&(this._locale=t),this)}o.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",o.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function rn(){return this._locale}var on=1e3,an=60*on,sn=60*an,ln=3506328*sn;function cn(e,t){return(e%t+t)%t}function un(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ln:new Date(e,t,n).valueOf()}function dn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function pn(e,t){U(0,[e,e.length],0,t)}function fn(e,t,n,r,o){var i;return null==e?Ye(this,r,o).year:(i=$e(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=Ue(e,t,n,r,o),a=Be(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),E("weekYear","gg"),E("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),ue("G",ie),ue("g",ie),ue("GG",J,q),ue("gg",J,q),ue("GGGG",ne,X),ue("gggg",ne,X),ue("GGGGG",re,Z),ue("ggggg",re,Z),ge(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),ge(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),E("quarter","Q"),H("quarter",7),ue("Q",G),he("Q",function(e,t){t[ye]=3*(x(e)-1)}),U("D",["DD",2],"Do","date"),E("date","D"),H("date",9),ue("D",J),ue("DD",J,q),ue("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],be),he("Do",function(e,t){t[be]=x(e.match(J)[0])});var hn=De("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),E("dayOfYear","DDD"),H("dayOfYear",4),ue("DDD",te),ue("DDDD",K),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),U("m",["mm",2],0,"minute"),E("minute","m"),H("minute",14),ue("m",J),ue("mm",J,q),he(["m","mm"],_e);var gn=De("Minutes",!1);U("s",["ss",2],0,"second"),E("second","s"),H("second",15),ue("s",J),ue("ss",J,q),he(["s","ss"],Se);var mn,vn=De("Seconds",!1);for(U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),E("millisecond","ms"),H("millisecond",16),ue("S",te,G),ue("SS",te,q),ue("SSS",te,K),mn="SSSS";mn.length<=9;mn+="S")ue(mn,oe);function yn(e,t){t[xe]=x(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")he(mn,yn);var bn=De("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var wn=w.prototype;function _n(e){return e}wn.add=Jt,wn.calendar=function(e,t){var n=e||jt(),r=Bt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,jt(n)))},wn.clone=function(){return new w(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Bt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":i=en(this,r)/12;break;case"month":i=en(this,r);break;case"quarter":i=en(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:S(i)},wn.endOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?dn:un;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-cn(t+(this._isUTC?0:this.utcOffset()*an),sn)-1;break;case"minute":t=this._d.valueOf(),t+=an-cn(t,an)-1;break;case"second":t=this._d.valueOf(),t+=on-cn(t,on)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=Y(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||jt(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(jt(),e)},wn.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||jt(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(jt(),e)},wn.get=function(e){return D(this[e=A(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=_(e)?e:jt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},wn.isBefore=function(e,t){var n=_(e)?e:jt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},wn.isBetween=function(e,t,n,r){var o=_(e)?e:jt(e),i=_(t)?t:jt(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&(("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n)))},wn.isSame=function(e,t){var n,r=_(e)?e:jt(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},wn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},wn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},wn.isValid=function(){return g(this)},wn.lang=nn,wn.locale=tn,wn.localeData=rn,wn.max=Nt,wn.min=Lt,wn.parsingFlags=function(){return p({},h(this))},wn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:I[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=V(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(D(this[e=A(e)]))return this[e](t);return this},wn.startOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?dn:un;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=cn(t+(this._isUTC?0:this.utcOffset()*an),sn);break;case"minute":t=this._d.valueOf(),t-=cn(t,an);break;case"second":t=this._d.valueOf(),t-=cn(t,on)}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.subtract=Qt,wn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},wn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},wn.toDate=function(){return new Date(this.valueOf())},wn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Y(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Y(n,"Z")):Y(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Me,wn.isLeapYear=function(){return Pe(this.year())},wn.weekYear=function(e){return fn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return fn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=He,wn.daysInMonth=function(){return Ne(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return $e(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return $e(this.year(),1,4)},wn.date=hn,wn.day=wn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},wn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},wn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},wn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},wn.hour=wn.hours=it,wn.minute=wn.minutes=gn,wn.second=wn.seconds=vn,wn.millisecond=wn.milliseconds=bn,wn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=zt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Wt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Gt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Wt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Wt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?jt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=Ut,wn.isUTC=Ut,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=O("dates accessor is deprecated. Use date instead.",hn),wn.months=O("months accessor is deprecated. Use month instead",He),wn.years=O("years accessor is deprecated. Use year instead",Me),wn.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),wn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Mt(e))._a){var t=e._isUTC?f(e._a):jt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Sn=L.prototype;function xn(e,t,n,r){var o=ft(),i=f().set(r,t);return o[n](i,e)}function Cn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return xn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=xn(e,r,n,"month");return o}function kn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ft(),a=e?i._week.dow:0;if(null!=n)return xn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=xn(t,(o+a)%7,r,"day");return s}Sn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},Sn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},Sn.invalidDate=function(){return this._invalidDate},Sn.ordinal=function(e){return this._ordinal.replace("%d",e)},Sn.preparse=_n,Sn.postformat=_n,Sn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},Sn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},Sn.set=function(e){var t,n;for(n in e)D(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Sn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ee).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Sn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ee.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Sn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Te.call(this._shortMonthsParse,a))?o:null:-1!==(o=Te.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Te.call(this._shortMonthsParse,a))?o:-1!==(o=Te.call(this._longMonthsParse,a))?o:null:-1!==(o=Te.call(this._longMonthsParse,a))?o:-1!==(o=Te.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},Sn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Sn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Sn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},Sn.firstDayOfYear=function(){return this._week.doy},Sn.firstDayOfWeek=function(){return this._week.dow},Sn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},Sn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Sn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Sn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Te.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Te.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Te.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Te.call(this._weekdaysParse,a))?o:-1!==(o=Te.call(this._shortWeekdaysParse,a))?o:-1!==(o=Te.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Te.call(this._shortWeekdaysParse,a))?o:-1!==(o=Te.call(this._weekdaysParse,a))?o:-1!==(o=Te.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Te.call(this._minWeekdaysParse,a))?o:-1!==(o=Te.call(this._weekdaysParse,a))?o:-1!==(o=Te.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},Sn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Sn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Je),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Sn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Sn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Sn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",dt),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ft);var On=Math.abs;function Pn(e,t,n,r){var o=Gt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Mn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function jn(e){return function(){return this.as(e)}}var Ln=jn("ms"),Nn=jn("s"),En=jn("m"),An=jn("h"),Vn=jn("d"),In=jn("w"),Hn=jn("M"),Rn=jn("Q"),Fn=jn("y");function zn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Bn=zn("milliseconds"),Wn=zn("seconds"),Un=zn("minutes"),Yn=zn("hours"),$n=zn("days"),Gn=zn("months"),qn=zn("years"),Kn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,M:11},Zn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Zn(this._milliseconds)/1e3,r=Zn(this._days),o=Zn(this._months);e=S(n/60),t=S(e/60),n%=60,e%=60;var i=S(o/12),a=o%=12,s=r,l=t,c=e,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var p=d<0?"-":"",f=Jn(this._months)!==Jn(d)?"-":"",h=Jn(this._days)!==Jn(d)?"-":"",g=Jn(this._milliseconds)!==Jn(d)?"-":"";return p+"P"+(i?f+i+"Y":"")+(a?f+a+"M":"")+(s?h+s+"D":"")+(l||c||u?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(u?g+u+"S":"")}var er=Vt.prototype;return er.isValid=function(){return this._isValid},er.abs=function(){var e=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),e.milliseconds=On(e.milliseconds),e.seconds=On(e.seconds),e.minutes=On(e.minutes),e.hours=On(e.hours),e.months=On(e.months),e.years=On(e.years),this},er.add=function(e,t){return Pn(this,e,t,1)},er.subtract=function(e,t){return Pn(this,e,t,-1)},er.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Mn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},er.asMilliseconds=Ln,er.asSeconds=Nn,er.asMinutes=En,er.asHours=An,er.asDays=Vn,er.asWeeks=In,er.asMonths=Hn,er.asQuarters=Rn,er.asYears=Fn,er.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},er._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Tn(Dn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=S(i/1e3),l.seconds=e%60,t=S(e/60),l.minutes=t%60,n=S(t/60),l.hours=n%24,a+=S(n/24),o=S(Mn(a)),s+=o,a-=Tn(Dn(o)),r=S(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},er.clone=function(){return Gt(this)},er.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},er.milliseconds=Bn,er.seconds=Wn,er.minutes=Un,er.hours=Yn,er.days=$n,er.weeks=function(){return S(this.days()/7)},er.months=Gn,er.years=qn,er.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),o=Kn(r.as("s")),i=Kn(r.as("m")),a=Kn(r.as("h")),s=Kn(r.as("d")),l=Kn(r.as("M")),c=Kn(r.as("y")),u=o<=Xn.ss&&["s",o]||o<Xn.s&&["ss",o]||i<=1&&["m"]||i<Xn.m&&["mm",i]||a<=1&&["h"]||a<Xn.h&&["hh",a]||s<=1&&["d"]||s<Xn.d&&["dd",s]||l<=1&&["M"]||l<Xn.M&&["MM",l]||c<=1&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},er.toISOString=Qn,er.toString=Qn,er.toJSON=Qn,er.locale=tn,er.localeData=rn,er.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),er.lang=nn,U("X",0,0,"unix"),U("x",0,0,"valueOf"),ue("x",ie),ue("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.24.0",t=jt,o.fn=wn,o.min=function(){return Et("isBefore",[].slice.call(arguments,0))},o.max=function(){return Et("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=f,o.unix=function(e){return jt(1e3*e)},o.months=function(e,t){return Cn(e,t,"months")},o.isDate=c,o.locale=dt,o.invalid=m,o.duration=Gt,o.isMoment=_,o.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},o.parseZone=function(){return jt.apply(null,arguments).parseZone()},o.localeData=ft,o.isDuration=It,o.monthsShort=function(e,t){return Cn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return kn(e,t,n,"weekdaysMin")},o.defineLocale=pt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=at;null!=(r=ut(e))&&(o=r._config),t=j(o,t),(n=new L(t)).parentLocale=st[e],st[e]=n,dt(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},o.locales=function(){return P(st)},o.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Xn[e]&&(void 0===t?Xn[e]:(Xn[e]=t,"s"===e&&(Xn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=wn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(298)(e))},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){var r=n(29),o=n(12);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(77),o=n(21);e.exports=function(e){return r(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(275);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e[e.Section=0]="Section",e[e.Page=1]="Page",e[e.Rdl=2]="Rdl"}(r||(r={}))},function(e,t,n){var r=n(4),o=n(22),i=n(20),a=n(80),s=n(111),l=n(41),c=l.get,u=l.enforce,d=String(s).split("toString");n(49)("inspectSource",function(e){return s.call(e)}),(e.exports=function(e,t,n,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),u(n).source=d.join("string"==typeof t?t:"")),e!==r?(l?!p&&e[t]&&(c=!0):delete e[t],c?e[t]=n:o(e,t,n)):c?e[t]=n:a(t,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&c(this).source||s.call(this)})},function(e,t,n){var r=n(16).f,o=n(20),i=n(5)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(323);t.ParameterPanel=r;var o=n(334);t.ExportPanel=o;var i=n(337);t.TocPanel=i},function(e,t,n){var r=n(107),o=n(78);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(21);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r,o,i,a=n(172),s=n(11),l=n(22),c=n(20),u=n(64),d=n(46),p=n(4).WeakMap;if(a){var f=new p,h=f.get,g=f.has,m=f.set;r=function(e,t){return m.call(f,e,t),t},o=function(e){return h.call(f,e)||{}},i=function(e){return g.call(f,e)}}else{var v=u("state");d[v]=!0,r=function(e,t){return l(e,v,t),t},o=function(e){return c(e,v)?e[v]:{}},i=function(e){return c(e,v)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!s(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){var r=n(13),o=n(185),i=n(24),a=n(54),s=n(186),l=n(187),c={};(e.exports=function(e,t,n,u,d){var p,f,h,g,m,v=a(t,n,u?2:1);if(d)p=e;else{if("function"!=typeof(f=s(e)))throw TypeError("Target is not iterable");if(o(f)){for(h=0,g=i(e.length);g>h;h++)if((u?v(r(m=e[h])[0],m[1]):v(e[h]))===c)return c;return}p=f.call(e)}for(;!(m=p.next()).done;)if(l(p,v,m.value,u)===c)return c}).BREAK=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Empty=0]="Empty",e[e.Loading=1]="Loading",e[e.Cancelled=2]="Cancelled",e[e.Ready=3]="Ready",e[e.Failed=4]="Failed"}(t.ViewerStatus||(t.ViewerStatus={})),function(e){e[e.Value=0]="Value",e[e.PageWidth=1]="PageWidth",e[e.WholePage=2]="WholePage"}(t.ZoomMode||(t.ZoomMode={})),function(e){e[e.SinglePage=0]="SinglePage",e[e.Continuous=1]="Continuous"}(t.ViewMode||(t.ViewMode={})),function(e){e[e.Select=0]="Select",e[e.Move=1]="Move"}(t.MouseMode||(t.MouseMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.areOptionsEqual=function(e,t){return e.Text===t.Text&&e.MatchCase===t.MatchCase&&e.WholeWord===t.WholeWord&&e.SearchBackward===t.SearchBackward};var r=n(316);t.register=r.register,t.init=r.init,t.reducer=r.reducer;var o=n(58);t.SearchResult=o.SearchResult,t.Rect=o.Rect,t.Range=o.Range;var i=n(317);t.search=i.search,t.SearchStatus=i.SearchStatus},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);t.f=i?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(4),o=n(80),i=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.0.1",mode:n(50)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!1},function(e,t,n){var r=n(13),o=n(182),i=n(78),a=n(117),s=n(79),l=n(64)("IE_PROTO"),c=function(){},u=function(){var e,t=s("iframe"),n=i.length;for(t.style.display="none",a.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;n--;)delete u.prototype[i[n]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=r(e),n=new c,c.prototype=null,n[l]=e):n=u(),void 0===t?n:o(n,t)},n(46)[l]=!0},function(e,t){e.exports={}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(53);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";var r=n(53),o=function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(43));var r=n(136);t.init=r.init,t.initDocView=r.initDocView,t.initSettings=r.initSettings,t.docViewReducer=r.docViewReducer,t.settingsReducer=r.settingsReducer;var o=n(295);t.View=o.View},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(325)),r(n(319)),r(n(326)),r(n(150))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t,n,r){var o=function(e){if("number"!=typeof e)throw new Error("Number expected.");return e};this.left=o(e),this.top=o(t),this.width=o(n),this.height=o(r)}}();t.Rect=r;var o=function(){function e(e,t){this.length=t,this.Start=e,this.Length=t}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.Length},enumerable:!0,configurable:!0}),e.Empty=new e(0,0),e}();t.Range=o;var i=function(){function e(e,t,n,r,o,i){this.PageIndex=e,this.DisplayText=t,this.ItemArea=n,this.ItemIndex=r,this.Range=o,this.UserData=i}return e.MakePageStart=function(t){return new e(t,"",new r(0,0,0,0),-1,o.Empty)},e.PastEnd=new e(1e6,"BaseResources.SearchResult_PastEnd",new r(0,0,0,0),-1,o.Empty),e.BeforeBegin=new e(-1,"BaseResources.SearchResult_BeforeBegin",new r(0,0,0,0),-1,o.Empty),e}();t.SearchResult=i},function(e,t,n){"use strict";var r=n(1),o=n(6),i=n(2),a=n(25),s={"Cache-Control":"no-cache, no-store, must-revalidate",Expires:"0",Pragma:"no-cache"},l=new AbortController;function c(e,t){void 0===t&&(t={});var n={headers:r.a({},s,{Accept:"application/json"},t)};return n.signal=l.signal,e?n.headers.Authorization=e:n.credentials="include",n}var u=function(e,t,n){return fetch(e,r.a({},c(t,{"content-type":"application/json"}),{method:"post",body:n?JSON.stringify(n):""}))};function d(e,t){return r.f(this,void 0,void 0,function(){var n,o,i,a;return r.h(this,function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,e];case 1:return 200!==(n=r.sent()).status&&202!==n.status?[2,p(n)]:t?(i={ok:!0,status:n.status},[4,t(n)]):[3,3];case 2:return i.response=r.sent(),o=i,[3,4];case 3:o={ok:!0,status:n.status},r.label=4;case 4:return[2,o];case 5:return"AbortError"===(a=r.sent())||"AbortError"===a.name?[2,{ok:!0}]:[2,p(a)];case 6:return[2]}})})}var p=function(e){return r.f(void 0,void 0,void 0,function(){var t;return r.h(this,function(n){switch(n.label){case 0:return t=function(e,t){return{ok:!1,status:t,requestError:e}},e instanceof Response?[4,e.json().then(function(n){return t(n.Error,e.status)}).catch(function(){return t(e.statusText,e.status)})]:[2,t(e,0)];case 1:return[2,n.sent()]}})})};function f(e,t){return(e=e.trim()).length>0&&e.lastIndexOf(t)===e.length-1?f(e.substring(0,e.length-1),t):e}function h(e,t){var n=function(t){return f(e,"/")+"/"+function e(t,n){return 0===(t=t.trim()).indexOf(n)?e(t.substring(1,t.length),n):t}(t,"/")};return{combineWithBaseUri:n,post:function(e){return d(u(n(e),t))},postSync:function(e){return r=n(e),o=t,(i=new XMLHttpRequest).open("POST",r,!1),i.setRequestHeader("Content-Type","application/json"),i.setRequestHeader("Authorization",o),i.setRequestHeader("Cache-Control","no-cache, no-store, must-revalidate"),i.setRequestHeader("Expires","0"),i.setRequestHeader("Pragma","no-cache"),i.onerror=function(){throw new Error(i.response.message)},void i.send();var r,o,i},getJson:function(e){return d(fetch(n(e),c(t)),function(e){return e.json()})},getText:function(e){return d(fetch(n(e),c(t)),function(e){return e.text()})},postJson:function(e,r){return d(u(n(e),t,r),function(e){return e.json()})},postText:function(e){return d(fetch(n(e),r.a({},c(t),{method:"post"})),function(e){return e.text()})},dispose:function(){l.abort()}}}var g,m=n(166),v=n.n(m);n.d(t,"a",function(){return y}),function(e){e.Running="Running",e.Complete="Complete",e.Cancelled="Cancelled"}(g||(g={}));var y=function(){function e(e,t){var n=this;(this._patchImgSrcRegexp=/\ssrc=(?:(?:'(?!data)(?!\/)([^']*)')|(?:"(?!data)(?!\/)([^"]*)"))/g,this._patchBkgndSrcRegexp=/background-image\:(\s*)url(?!(\((?:\"|\')data:))\((?:\"|\')(.+?)(?:\"|\')\)/g,this._pageMetadataRegexp=/\<!--@ar.page.metadata ({[\w\d\s\,\:\"]+})-->/g,this._pageSizeRegexp=/@page{size:\s([\w\d\s\,\.]+)/g,this.patchResourceRefs=function(e,t){var r=n._http.combineWithBaseUri("view/"+t+"/resource/$2"),o=n._http.combineWithBaseUri("view/"+t+"/resource/$3");return e.replace(n._patchImgSrcRegexp," src='"+r+"'").replace(n._patchBkgndSrcRegexp,"background-image: url('"+o+"')")},this.patchPageInfo=function(e){n._pageMetadataRegexp.lastIndex=0;var t=n._pageMetadataRegexp.exec(e);if(null!==t&&t.length>1){var r=t[1];if(null!==r){var o=r.replace(/(['"])?([a-zA-Z0-9_]+)(['"])?:/g,'"$2": '),i=JSON.parse(o);return new a.d(i.width,i.height,i.delayedContent,e)}}if(n._pageSizeRegexp.lastIndex=0,null!==(t=n._pageSizeRegexp.exec(e))&&t.length>1){var s=t[1];if(null!==s){var l=s.split(" ");if(null!==l&&l.length>1)return new a.d(l[0],l[1],!1,e)}}return new a.d("20cm","30cm",!0,e)},this.formatReportInfoError=function(e){switch(e){case"UnsupportedReportType":return i.b.t("jsviewer:errors.UnsupportedReportType","Requested report type is unsupported");case"InvalidReportFormat":return i.b.t("jsviewer:errors.InvalidReportFormat","Report format is Invalid");default:return i.b.t("jsviewer:errors.report-open-details","Cannot obtain report info")}},this.encodeReportId=function(e){var t=e.replace(/[\/\\]/g,"%252F");return t=t.replace("%2F","%252F")},this.getExportResultUri=function(e,t){var r=t.lastIndexOf("."),o=(r>=0?t.substring(0,r):t).replace(/[.]/g,"_"),i=Math.max(o.lastIndexOf("/"),o.lastIndexOf("\\"));return o=i>=0?o.substring(i+1):o,n._http.combineWithBaseUri("export/"+e+"/"+o)},e)||(e=function(){var e="";return document.getElementsByTagName("base").length>0&&(e=f(document.getElementsByTagName("base")[0].href,"/")),e}()+"/api/reporting");this._http=h(e,t)}return e.prototype.getReportInfo=function(e){return r.f(this,void 0,void 0,function(){var t;return r.h(this,function(n){switch(n.label){case 0:return[4,this._http.getJson("reports/"+this.encodeReportId(e)+"/info")];case 1:if(!(t=n.sent()).ok){if(404===t.status)throw new Error(i.b.t("jsviewer:errors.no-report",{defaultValue:"Report not found: {{reportId}}",reportId:e}));throw new o.PluginModel.DocumentError(i.b.t("jsviewer:errors.report-open-lbl","Failed to open report"),this.formatReportInfoError(t.requestError))}return[2,t.response]}})})},e.prototype.getParamValues=function(e,t,n){return r.f(this,void 0,void 0,function(){var o;return r.h(this,function(r){switch(r.label){case 0:return[4,this._http.postJson("reports/"+this.encodeReportId(e)+"/values",{values:t,request:n})];case 1:if(!(o=r.sent()).ok)throw new Error(o.requestError);return[2,o.response]}})})},e.prototype.renderReportRequest=function(e,t){return r.f(this,void 0,void 0,function(){return r.h(this,function(n){switch(n.label){case 0:return[4,this._http.postJson("reports/"+this.encodeReportId(e)+"/render",t)];case 1:return[2,n.sent()]}})})},e.prototype.renderViewRequest=function(e,t){return r.f(this,void 0,void 0,function(){return r.h(this,function(n){switch(n.label){case 0:return[4,this._http.postJson("session/"+e+"/renderview",t)];case 1:return[2,n.sent()]}})})},e.prototype.getProgress=function(e){return r.f(this,void 0,void 0,function(){return r.h(this,function(t){switch(t.label){case 0:return[4,this._http.getJson("reports/"+encodeURIComponent(e)+"/progress")];case 1:return[2,t.sent()]}})})},e.prototype.closeSession=function(e){return r.f(this,void 0,void 0,function(){return r.h(this,function(t){switch(t.label){case 0:return[4,this._http.post("session/"+e+"/close")];case 1:return[2,t.sent().status]}})})},e.prototype.closeSessionSync=function(e){this._http.postSync("session/"+e+"/close")},e.prototype.cancelRender=function(e){return r.f(this,void 0,void 0,function(){var t;return r.h(this,function(n){switch(n.label){case 0:return[4,this._http.post("reports/"+encodeURIComponent(e)+"/cancel")];case 1:if(!(t=n.sent()).ok&&202!==t.status)throw new Error(t.requestError);return[2,t.status]}})})},e.prototype.exportDocument=function(e,t,n){return r.f(this,void 0,void 0,function(){var o;return r.h(this,function(r){switch(r.label){case 0:return[4,this._http.postJson("session/"+e+"/export/"+t,n)];case 1:if(!(o=r.sent()).ok)throw new Error(i.b.t("jsviewer:errors.bad-response-doc","Bad response export content"));return[2,o.response]}})})},e.prototype.getDelayedContent=function(e,t){return r.f(this,void 0,void 0,function(){var n,o,a,s=this;return r.h(this,function(r){switch(r.label){case 0:return[4,this._http.getJson("view/"+e+"/page/"+t+"/delayed")];case 1:return(n=r.sent()).ok?n.ok?(o={},a=n.response,Object.keys(a).forEach(function(t){return o[t]=a[t]&&s.patchResourceRefs(a[t],e)}),[2,o]):[2,Promise.reject(i.b.t("jsviewer:errors.bad-response-delayed","Bad response delayed content"))]:[2,Promise.reject("bad response delayed content")]}})})},e.prototype.getPage=function(e,t){return r.f(this,void 0,void 0,function(){var n,o;return r.h(this,function(r){switch(r.label){case 0:return[4,this._http.getText("view/"+e+"/page/"+t)];case 1:if(!(n=r.sent()).ok)return[2,Promise.reject(n.requestError)];r.label=2;case 2:if(202===n.status)return[3,0];r.label=3;case 3:return o=this.patchResourceRefs(n.response,e),[2,this.patchPageInfo(o)]}})})},e.prototype.getToc=function(e){return r.f(this,void 0,void 0,function(){var t;return r.h(this,function(n){switch(n.label){case 0:return[4,this._http.getJson("view/"+e+"/toc")];case 1:if(!(t=n.sent()).ok)throw new o.PluginModel.DocumentError(i.b.t("jsviewer:errors.bad-response-toc","Failed getting table of contents"),"");return[2,t.response]}})})},e.prototype.exportReport=function(e,t,n){return r.f(this,void 0,void 0,function(){var o;return r.h(this,function(r){switch(r.label){case 0:return[4,this._http.postJson("reports/"+this.encodeReportId(e)+"/export/"+t,n)];case 1:if(!(o=r.sent()).ok)throw new Error(i.b.t("jsviewer:errors.bad-response-report","Bad response export content"));return[2,o.response]}})})},e.prototype.downloadExportResult=function(e,t,n){return r.f(this,void 0,void 0,function(){var o=this;return r.h(this,function(a){return[2,fetch(e).then(function(e){return r.f(o,void 0,void 0,function(){var n,o,a,s,l;return r.h(this,function(r){switch(r.label){case 0:return 200!==e.status?[3,2]:(n=t,(o=e.headers.get("content-disposition"))&&(o.toLowerCase().includes("inline")&&console.warn(i.b.t("jsviewer:errors.ignore-disposition","It is expected that the content will be displayed as embedded in the browser, but this will be ignored.")),(a=o.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/))&&a.length>1&&(n=a[1].substring(1,a[1].length-1),n=decodeURI(n))),s={},[4,e.blob()]);case 1:return[2,(s.data=r.sent(),s.filename=n,s)];case 2:return 500!==e.status?[3,4]:[4,e.json()];case 3:throw l=r.sent(),new Error(l.message);case 4:throw new Error(i.b.t("jsviewer:errors.unknown-response","Unknown server response."))}})})}).then(function(e){var t=e.data,n=e.filename;v()(t,n)}).catch(function(e){if(!n)throw e;n(e)})]})})},e.prototype.keepAlive=function(e){return r.f(this,void 0,void 0,function(){return r.h(this,function(t){switch(t.label){case 0:return[4,this._http.postText("session/"+e+"/keepalive")];case 1:return t.sent(),[2]}})})},e.prototype.dispose=function(){this._http.dispose()},e}()},function(e,t,n){"use strict";n.r(t);var r=n(29),o=n.n(r),i=n(7),a=n.n(i),s=n(9),l=n.n(s),c=n(10),u=n.n(c),d=n(30),p=n.n(d),f=n(33),h=n.n(f),g=n(34),m=n.n(g),v=n(12),y=n.n(v),b=n(152),w=n.n(b),_={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,w()(t))}},S=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l()(this,e),this.init(t,n)}return u()(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||_,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,a()({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),x=function(){function e(){l()(this,e),this.observers={}}return u()(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){var n=this;this.observers[e]&&this.observers[e].forEach(function(){if(t){var r=n.observers[e].indexOf(t);r>-1&&n.observers[e].splice(r,1)}else delete n.observers[e]})}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)});this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function C(){var e,t,n=new Promise(function(n,r){e=n,t=r});return n.resolve=e,n.reject=t,n}function k(e){return null==e?"":""+e}function O(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return o()?{}:{obj:e,k:r(i.shift())}}function P(e,t,n){var r=O(e,t,Object);r.obj[r.k]=n}function T(e,t){var n=O(e,t),r=n.obj,o=n.k;if(r)return r[o]}function M(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var D={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function j(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return D[e]}):e}var L=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return l()(this,t),n=p()(this,h()(t).call(this)),x.call(y()(y()(n))),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return m()(t,e),u()(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),T(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),P(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=T(this.data,s)||{};r?function e(t,n,r){for(var o in n)o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?r&&(t[o]=n[o]):e(t[o],n[o],r):t[o]=n[o];return t}(l,n,o):l=a()({},l,n),P(this.data,s,l),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a()({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(x),N={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))}),t}},E=function(e){function t(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l()(this,t),n=p()(this,h()(t).call(this)),x.call(y()(y()(n))),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat"],o=e,i=y()(y()(n)),r.forEach(function(e){o[e]&&(i[e]=o[e])}),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=S.create("translator"),n}return m()(t,e),u()(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t){var n=this;if("object"!==o()(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),s=i.key,l=i.namespaces,c=l[l.length-1],u=t.lng||this.language,d=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(d){var p=t.nsSeparator||this.options.nsSeparator;return c+p+s}return s}var f=this.resolve(e,t),h=f&&f.res,g=f&&f.usedKey||s,m=f&&f.exactUsedKey||s,v=Object.prototype.toString.apply(h),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&h&&("string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(v)<0&&("string"!=typeof y||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,h,t):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(r){var w="[object Array]"===v,_=w?[]:{},S=w?m:g;for(var x in h)if(Object.prototype.hasOwnProperty.call(h,x)){var C="".concat(S).concat(r).concat(x);_[x]=this.translate(C,a()({},t,{joinArrays:!1,ns:l})),_[x]===C&&(_[x]=h[x])}h=_}}else if(b&&"string"==typeof y&&"[object Array]"===v)(h=h.join(y))&&(h=this.extendTranslation(h,e,t));else{var k=!1,O=!1;if(!this.isValidLookup(h)&&void 0!==t.defaultValue){if(k=!0,void 0!==t.count){var P=this.pluralResolver.getSuffix(u,t.count);h=t["defaultValue".concat(P)]}h||(h=t.defaultValue)}this.isValidLookup(h)||(O=!0,h=s);var T=t.defaultValue&&t.defaultValue!==h&&this.options.updateMissing;if(O||k||T){this.logger.log(T?"updateKey":"missingKey",u,c,s,T?t.defaultValue:h);var M=[],D=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&D&&D[0])for(var j=0;j<D.length;j++)M.push(D[j]);else"all"===this.options.saveMissingTo?M=this.languageUtils.toResolveHierarchy(t.lng||this.language):M.push(t.lng||this.language);var L=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,c,r,T?t.defaultValue:h,T,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,c,r,T?t.defaultValue:h,T,t),n.emit("missingKey",e,c,r,h)};if(this.options.saveMissing){var N=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&N?M.forEach(function(e){n.pluralResolver.getPluralFormsOfKey(e,s).forEach(function(t){return L([e],t)})}):L(M,s)}}h=this.extendTranslation(h,e,t,f),O&&h===s&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(s)),O&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a()({},n,{interpolation:a()({},this.options.interpolation,n.interpolation)}));var i=n.replace&&"string"!=typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(i=a()({},this.options.interpolation.defaultVariables,i)),e=this.interpolator.interpolate(e,i,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,function(){return o.translate.apply(o,arguments)},n)),n.interpolation&&this.interpolator.reset()}var s=n.postProcess||this.options.postProcess,l="string"==typeof s?[s]:s;return null!=e&&l&&l.length&&!1!==n.applyPostProcessor&&(e=N.handle(l,e,t,n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;a.options.fallbackNS&&(u=u.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);u.forEach(function(e){a.isValidLookup(t)||(i=e,f.forEach(function(n){if(!a.isValidLookup(t)){o=n;var i,l,u=c,f=[u];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(f,c,n,e,s);else d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(u+i),p&&f.push(u+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(u+=i);for(;l=f.pop();)a.isValidLookup(t)||(r=l,t=a.getResource(n,e,l,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(x);function A(e){return e.charAt(0).toUpperCase()+e.slice(1)}var V=function(){function e(t){l()(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=S.create("languageUtils")}return u()(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=A(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=A(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=A(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isWhitelisted(e)?o.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach(function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))}),o}}]),e}(),I=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],H={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};var R=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l()(this,e),this.languageUtils=t,this.options=r,this.logger=S.create("pluralResolver"),this.rules=(n={},I.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:H[e.fc]}})}),n)}return u()(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],o=this.getRule(e);return o?(o.numbers.forEach(function(o){var i=n.getSuffix(e,o);r.push("".concat(t).concat(i))}),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(this,e),this.logger=S.create("interpolator"),this.init(t,!0)}return u()(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(arguments.length>1?arguments[1]:void 0)&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e}),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:j,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?M(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?M(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?M(t.nestingPrefix):t.nestingPrefixEscaped||M("$t("),this.nestingSuffix=t.nestingSuffix?M(t.nestingSuffix):t.nestingSuffixEscaped||M(")"),this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this;function l(e){return e.replace(/\$/g,"$$$$")}var c=function(e){if(e.indexOf(s.formatSeparator)<0)return T(t,e);var r=e.split(s.formatSeparator),o=r.shift().trim(),i=r.join(s.formatSeparator).trim();return s.format(T(t,o),i,n)};this.resetRegExp();var u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;(o=this.regexpUnescape.exec(e))&&(i=c(o[1].trim()),e=e.replace(o[0],i),this.regexpUnescape.lastIndex=0,!(++a>=this.maxReplaces)););for(a=0;o=this.regexp.exec(e);){if(void 0===(i=c(o[1].trim())))if("function"==typeof u){var d=u(e,o,r);i="string"==typeof d?d:""}else this.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i="";else"string"==typeof i||this.useRawValueToEscape||(i=k(i));if(i=this.escapeValue?l(this.escape(i)):l(i),e=e.replace(o[0],i),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a()({},o);function s(e,t){if(e.indexOf(",")<0)return e;var n=e.split(",");e=n.shift();var r=n.join(",");r=(r=this.interpolate(r,i)).replace(/'/g,'"');try{i=JSON.parse(r),t&&(i=a()({},t,i))}catch(t){this.logger.error("failed parsing options string in nesting for key ".concat(e),t)}return e}for(i.applyPostProcessor=!1;n=this.nestingRegexp.exec(e);){if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=k(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),z=n(106),B=n.n(z);var W=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l()(this,t),o=p()(this,h()(t).call(this)),x.call(y()(y()(o))),o.backend=e,o.store=n,o.languageUtils=r.languageUtils,o.options=i,o.logger=S.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return m()(t,e),u()(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],l=[];return e.forEach(function(e){var r=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),l.indexOf(t)<0&&l.push(t)))}),r||s.push(e)}),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=B()(r,2),i=o[0],a=o[1];t&&this.emit("failedLoading",i,a,t),n&&this.store.addResourceBundle(i,a,n),this.state[e]=t?-1:2;var s={};this.queue.forEach(function(n){var r,o,l,c,u,d;r=n.loaded,o=a,c=O(r,[i],Object),u=c.obj,d=c.k,u[d]=u[d]||[],l&&(u[d]=u[d].concat(o)),l||u[d].push(o),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach(function(e){s[e]||(s[e]=[]),n.loaded[e].length&&n.loaded[e].forEach(function(t){s[e].indexOf(t)<0&&s[e].push(t)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,function(s,l){s&&l&&o<5?setTimeout(function(){r.read.call(r,e,t,n,o+1,2*i,a)},i):a(s,l)}):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=B()(r,2),i=o[0],a=o[1];this.read(i,a,"read",null,null,function(r,o){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(i," failed"),r),!r&&o&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(i),o),t.loaded(e,r,o)})}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a()({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r)}}]),t}(x);function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function Y(){}var $=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(l()(this,t),e=p()(this,h()(t).call(this)),x.call(y()(y()(e))),e.options=U(n),e.services={},e.logger=S,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),p()(e,y()(y()(e)));setTimeout(function(){e.init(n,r)},0)}return e}return m()(t,e),u()(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),this.options=a()({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===o()(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===o()(e[2])||"object"===o()(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",maxReplaces:1e3}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=Y),!this.options.isClone){this.modules.logger?S.init(r(this.modules.logger),this.options):S.init(null,this.options);var i=new V(this.options);this.store=new L(this.options.resources,this.options);var s=this.services;s.logger=S,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new R(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new F(this.options),s.backendConnector=new W(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new E(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}});var l=C(),c=function(){e.changeLanguage(e.options.lng,function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)})};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}},{key:"loadResources",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y;if(!this.options.resources||this.options.partialBundledLanguages){if(this.language&&"cimode"===this.language.toLowerCase())return t();var n=[],r=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)<0&&n.push(e)})};if(this.language)r(this.language);else this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return r(e)});this.options.preload&&this.options.preload.forEach(function(e){return r(e)}),this.services.backendConnector.load(n,this.options.ns,t)}else t(null)}},{key:"reloadResources",value:function(e,t,n){var r=C();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Y),this.services.backendConnector.reload(e,t,function(e){r.resolve(),n(e)}),r}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&N.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this,r=C();this.emit("languageChanging",e);var o=function(e){e&&(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(function(o){!function(e,o){n.translator.changeLanguage(o),o&&(n.emit("languageChanged",o),n.logger.log("languageChanged",o)),r.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})}(o,e)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var i=a()({},r);if("object"!==o()(r)){for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,r].concat(l))}return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"loadNamespaces",value:function(e,t){var n=this,r=C();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(function(e){r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=C();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter(function(e){return r.indexOf(e)<0});return o.length?(this.options.preload=r.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y,o=a()({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new E(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))}),i.init(o,r),i.translator.options=i.options,i}}]),t}(x));n.d(t,"changeLanguage",function(){return G}),n.d(t,"cloneInstance",function(){return q}),n.d(t,"createInstance",function(){return K}),n.d(t,"dir",function(){return X}),n.d(t,"exists",function(){return Z}),n.d(t,"getFixedT",function(){return J}),n.d(t,"init",function(){return Q}),n.d(t,"loadLanguages",function(){return ee}),n.d(t,"loadNamespaces",function(){return te}),n.d(t,"loadResources",function(){return ne}),n.d(t,"off",function(){return re}),n.d(t,"on",function(){return oe}),n.d(t,"setDefaultNamespace",function(){return ie}),n.d(t,"t",function(){return ae}),n.d(t,"use",function(){return se});t.default=$;var G=$.changeLanguage.bind($),q=$.cloneInstance.bind($),K=$.createInstance.bind($),X=$.dir.bind($),Z=$.exists.bind($),J=$.getFixedT.bind($),Q=$.init.bind($),ee=$.loadLanguages.bind($),te=$.loadNamespaces.bind($),ne=$.loadResources.bind($),re=$.off.bind($),oe=$.on.bind($),ie=$.setDefaultNamespace.bind($),ae=$.t.bind($),se=$.use.bind($)},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(26),o=n(47),i=n(48),a=n(31),s=n(63),l=n(20),c=n(110),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=a(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t,n){var r=n(11);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(49)("keys"),o=n(65);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){var r=n(20),o=n(40),i=n(64)("IE_PROTO"),a=n(181),s=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var r=n(5)("unscopables"),o=n(51),i=n(22),a=Array.prototype;null==a[r]&&i(a,r,o(null)),e.exports=function(e){a[r][e]=!0}},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,n){var r=n(32),o=n(99);e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";var r=n(22),o=n(36),i=n(8),a=n(5),s=n(99),l=a("species"),c=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),u=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]});e.exports=function(e,t,n,d){var p=a(e),f=!i(function(){var t={};return t[p]=function(){return 7},7!=""[e](t)}),h=f&&!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[p](""),!t});if(!f||!h||"replace"===e&&!c||"split"===e&&!u){var g=/./[p],m=n(p,""[e],function(e,t,n,r,o){return t.exec===s?f&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=m[0],y=m[1];o(String.prototype,e,v),o(RegExp.prototype,p,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[p],"sham",!0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(293);t.ChangedEventArgs=r.ChangedEventArgs,t.DocumentViewOpenedEventArgs=r.DocumentViewOpenedEventArgs,t.DocumentOpenedEventArgs=r.DocumentOpenedEventArgs,t.ReportViewer=r.ReportViewer;var o=n(148);t.CancellationToken=o.CancellationToken;var i=n(104);t.EventFan=i.EventFan;var a=n(149);t.ReactStateBinder=a.ReactStateBinder;var s=n(74);t.Store=s.Store;var l=n(147);t.SessionState=l.SessionState,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(145))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(43),o=n(103);function i(e,n){var r,o,i,a=1,s=(r=function(e){var r=a*e.scale,o=r>t.MAX_ZOOM?t.MAX_ZOOM:r<t.MIN_ZOOM?t.MIN_ZOOM:r;n(o)},o=0,function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];void 0===i&&(i=window.setTimeout(function(){i=void 0,r.apply(e,t)},o))});return{gesturestart:function(t){t.preventDefault(),a=e()},gesturechange:function(e){e.preventDefault(),s(e)},gestureend:function(e){e.preventDefault()}}}t.MIN_ZOOM=.25,t.MAX_ZOOM=3,t.getZoomFactor=function(e,t,n){switch(e.mode){case r.ZoomMode.Value:return e.factor;case r.ZoomMode.PageWidth:if(t&&(i=o.toPixels(t.width))&&n.width)return n.width/i;break;case r.ZoomMode.WholePage:if(t){var i=o.toPixels(t.width),a=o.toPixels(t.height);if(i&&a)return Math.min(n.width/i,n.height/a)}}return 1},t.createMouseWheelHandler=function(e,n){return function(r){if(r.ctrlKey){r.preventDefault();var o=e(),i=1;if(r.deltaY<0){var a=o<1?.1:.25;i=Math.min(t.MAX_ZOOM,Math.round((o+a)/a)*a)}else a=o<1.1?.1:.25,i=Math.max(t.MIN_ZOOM,Math.round((o-a)/a)*a);o!==i&&n(i)}return r}},t.createSafariPitchRef=function(e,t){var n=null,r=i(e,t);return function(e){e!==n&&(null!=n&&(n.removeEventListener("gesturestart",r.gesturestart),n.removeEventListener("gesturechange",r.gesturechange),n.removeEventListener("gestureend",r.gestureend)),null!=e&&(e.addEventListener("gesturestart",r.gesturestart),e.addEventListener("gesturechange",r.gesturechange),e.addEventListener("gestureend",r.gestureend)),n=e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o="gc-accent-color gc-icon-color--text",i="gc-icon-color--text",a="gcv-error__icon";t.svgIcons={"arrow-collapse-left":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M11.92,19.92L4,12L11.92,4.08L13.33,5.5L7.83,11H22V13H7.83L13.34,18.5L11.92,19.92M4,12V2H2V22H4V12Z"})),"arrow-collapse-right":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M12.08,4.08L20,12L12.08,19.92L10.67,18.5L16.17,13H2V11H16.17L10.67,5.5L12.08,4.08M20,12V22H22V2H20V12Z"})),"arrow-expand-all":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M9.5,13.09L10.91,14.5L6.41,19H10V21H3V14H5V17.59L9.5,13.09M10.91,9.5L9.5,10.91L5,6.41V10H3V3H10V5H6.41L10.91,9.5M14.5,13.09L19,17.59V14H21V21H14V19H17.59L13.09,14.5L14.5,13.09M13.09,9.5L17.59,5H14V3H21V10H19V6.41L14.5,10.91L13.09,9.5Z"})),"arrow-expand-horizontal":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M9,11H15V8L19,12L15,16V13H9V16L5,12L9,8V11M2,20V4H4V20H2M20,20V4H22V20H20Z"})),"arrow-left":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"})),"arrow-right":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"})),autorenew:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M12,6V9L16,5L12,1V4A8,8 0 0,0 4,12C4,13.57 4.46,15.03 5.24,16.26L6.7,14.8C6.25,13.97 6,13 6,12A6,6 0 0,1 12,6M18.76,7.74L17.3,9.2C17.74,10.04 18,11 18,12A6,6 0 0,1 12,18V15L8,19L12,23V20A8,8 0 0,0 20,12C20,10.43 19.54,8.97 18.76,7.74Z"})),cancel:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12C4,13.85 4.63,15.55 5.68,16.91L16.91,5.68C15.55,4.63 13.85,4 12,4M12,20A8,8 0 0,0 20,12C20,10.15 19.37,8.45 18.32,7.09L7.09,18.32C8.45,19.37 10.15,20 12,20Z"})),close:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"})),"content-duplicate":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M11,17H4A2,2 0 0,1 2,15V3A2,2 0 0,1 4,1H16V3H4V15H11V13L15,16L11,19V17M19,21V7H8V13H6V7A2,2 0 0,1 8,5H19A2,2 0 0,1 21,7V21A2,2 0 0,1 19,23H8A2,2 0 0,1 6,21V19H8V21H19Z"})),"cursor-move":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"})),"fullscreen-exit":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z"})),fullscreen:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"})),"magnify-minus-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M15.5,14H14.71L14.43,13.73C15.41,12.59 16,11.11 16,9.5A6.5,6.5 0 0,0 9.5,3A6.5,6.5 0 0,0 3,9.5A6.5,6.5 0 0,0 9.5,16C11.11,16 12.59,15.41 13.73,14.43L14,14.71V15.5L19,20.5L20.5,19L15.5,14M9.5,14C7,14 5,12 5,9.5C5,7 7,5 9.5,5C12,5 14,7 14,9.5C14,12 12,14 9.5,14M7,9H12V10H7V9Z"})),"magnify-plus-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M15.5,14L20.5,19L19,20.5L14,15.5V14.71L13.73,14.43C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.43,13.73L14.71,14H15.5M9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14M12,10H10V12H9V10H7V9H9V7H10V9H12V10Z"})),magnify:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"})),search:r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:i,d:"M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"})),"step-backward-2":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M17,5H14V19H17V5M12,5L1,12L12,19V5M22,5H19V19H22V5Z"})),"step-forward-2":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},r.h("path",{className:o,d:"M7,5H10V19H7V5M12,5L23,12L12,19V5M2,5H5V19H2V5Z"}))},t.errorPanelIcons={"alert-circle-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"15",height:"15",viewBox:"0 0 24 24"},r.h("path",{className:a,d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"})),"alert-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"15",height:"15",viewBox:"0 0 24 24"},r.h("path",{className:a,d:"M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"})),"bug-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"15",height:"15",viewBox:"0 0 24 24"},r.h("path",{className:a,d:"M20,8H17.19C16.74,7.2 16.12,6.5 15.37,6L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.05,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6C7.87,6.5 7.26,7.21 6.81,8H4V10H6.09C6.03,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.03,15.67 6.09,16H4V18H6.81C8.47,20.87 12.14,21.84 15,20.18C15.91,19.66 16.67,18.9 17.19,18H20V16H17.91C17.97,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.97,10.33 17.91,10H20V8M16,15A4,4 0 0,1 12,19A4,4 0 0,1 8,15V11A4,4 0 0,1 12,7A4,4 0 0,1 16,11V15M14,10V12H10V10H14M10,14H14V16H10V14Z"})),"information-outline":r.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"15",height:"15",viewBox:"0 0 24 24"},r.h("path",{className:a,d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104),o=function(){function e(e,t,n){var r=this;this.update=t,this._lastKey=100,this.dispatch=function(e){for(var t in r._state=r.update(e,r._state),r._handlers)r._handlers.hasOwnProperty(t)&&r._handlers[t](r._state)},this._state=e,this._handlers={},null!=n&&(this._handlers[0]=n)}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.subscribe=function(e){var t=this,n=this._lastKey++;return this._handlers[n]=e,function(){return delete t._handlers[n]}},e}();t.Store=o;var i=function(){function e(e){var t=this;this._index=e,this._dispose={},this._onUpdateEvent=r.EventFan.createFor(),this._triggerUpdate=function(){return t._onUpdateEvent.trigger(t.state)},this.subscribe=function(e){return t._onUpdateEvent.event.register(e)},Object.keys(this._index).forEach(function(e){return t._dispose[e]=t._index[e].subscribe(function(){return t._triggerUpdate()})})}return e.prototype.replace=function(e){var t=this;Object.keys(e).forEach(function(n){t._dispose[n](),t._index[n]=e[n],t._dispose[n]=e[n].subscribe(function(){return t._triggerUpdate()})}),this._triggerUpdate()},Object.defineProperty(e.prototype,"state",{get:function(){var e=this,t={};return Object.keys(this._index).forEach(function(n){return t[n]=e._index[n].state}),t},enumerable:!0,configurable:!0}),e.prototype.dispatch=function(e){this._index.hasOwnProperty(e.type)&&this._index[e.type].dispatch(e.payload)},e}();t.CompositeStore=i},function(e,t,n){"use strict";var r=n(2);var o=function(){if(!navigator)return"Unknown";var e=navigator.userAgent;return e.indexOf("Edge")>=0?"Edge":e.indexOf("MSIE")>=0||e.indexOf("Trident")>=0?"MSIE":e.indexOf("Gecko")>=0?e.indexOf("Chrome")>=0?"Chrome":e.indexOf("Safari")>=0?"Safari":"Mozilla":e.indexOf("Opera")>=0?"Opera":"Unknown"},i=!!function(){try{return new ActiveXObject("AcroPDF.PDF")}catch(e){}}();t.a=function(e){return new Promise(function(t,n){var a=document.getElementById("pdf-print-iframe");a&&document.body.removeChild(a),(a=document.createElement("iframe")).setAttribute("id","pdf-print-iframe"),a.setAttribute("name","pdf-print-iframe"),a.setAttribute("style","visibility:hidden;position:absolute"),document.body.insertBefore(a,document.body.firstChild);var s="pdf-print-iframe";if("MSIE"===o()){i||n(r.b.t("jsviewer:errors.ie-no-pdf-addon","To enable printing for IE, please install and enable a PDF reader add-on.")),s="pdf-container-iframe";var l=document.getElementById("pdf-print-iframe").contentWindow.document;l.open(),l.write('<html><body><iframe name="'+s+'" id="'+s+'"></iframe></body></html>'),l.close()}var c=!1,u=function(){"Mozilla"===o()&&(window.removeEventListener("focus",u),window.removeEventListener("resize",u)),document.body.removeChild(a),window.focus(),c||(t(),c=!0)};"Mozilla"===o()&&(window.addEventListener("focus",u),window.addEventListener("resize",function(){t(),c=!0})),a.onload=function(e){var r=e.target;if(r&&r.contentDocument){if("application/json"===r.contentDocument.contentType){var i=JSON.parse(r.contentDocument.body.innerText);return void n({message:i.Error,details:i.details})}if("text/html"===r.contentDocument.contentType)return i=r.contentDocument.body.innerText,void n({message:i})}a.contentWindow&&(a.contentWindow.focus(),"Mozilla"!==o()&&(a.contentWindow.onclose=u,a.contentWindow.onfocus=u,"MSIE"===o()&&(t(),c=!0)))};var d=document.createElement("FORM");d.setAttribute("id","printForm"),d.setAttribute("method","GET"),d.setAttribute("action",e),d.setAttribute("target",s),document.body.appendChild(d),d.submit(),document.body.removeChild(d)})}},function(e,t,n){(function(t){for(var r=n(296),o="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],l=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!l){var u=0,d=0,p=[];s=function(e){if(0===p.length){var t=r(),n=Math.max(0,1e3/60-(t-u));u=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},l=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return s.call(o,e)},e.exports.cancel=function(){l.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=s,e.cancelAnimationFrame=l}}).call(this,n(134))},function(e,t,n){var r=n(8),o=n(32),i="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){var r=n(11),o=n(4).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(4),o=n(22);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},function(e,t,n){var r=n(107),o=n(78).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(8),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==c||n!=l&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},l=i.NATIVE="N",c=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(179),o=Object.prototype;r!==o.toString&&n(36)(o,"toString",r,{unsafe:!0})},function(e,t,n){"use strict";var r=n(85),o=n(41),i=n(86),a=o.set,s=o.getterFor("String Iterator");i(String,"String",function(e){a(this,{type:"String Iterator",string:String(e),index:0})},function(){var e,t=s(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o,!0),t.index+=e.length,{value:e,done:!1})})},function(e,t,n){var r=n(45),o=n(21);e.exports=function(e,t,n){var i,a,s=String(o(e)),l=r(t),c=s.length;return l<0||l>=c?n?"":void 0:(i=s.charCodeAt(l))<55296||i>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?n?s.charAt(l):i:n?s.slice(l,l+2):a-56320+(i-55296<<10)+65536}},function(e,t,n){"use strict";var r=n(3),o=n(180),i=n(66),a=n(87),s=n(37),l=n(22),c=n(36),u=n(50),d=n(5)("iterator"),p=n(52),f=n(116),h=f.IteratorPrototype,g=f.BUGGY_SAFARI_ITERATORS,m=function(){return this};e.exports=function(e,t,n,f,v,y,b){o(n,t,f);var w,_,S,x=function(e){if(e===v&&T)return T;if(!g&&e in O)return O[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},C=t+" Iterator",k=!1,O=e.prototype,P=O[d]||O["@@iterator"]||v&&O[v],T=!g&&P||x(v),M="Array"==t&&O.entries||P;if(M&&(w=i(M.call(new e)),h!==Object.prototype&&w.next&&(u||i(w)===h||(a?a(w,h):"function"!=typeof w[d]&&l(w,d,m)),s(w,C,!0,!0),u&&(p[C]=m))),"values"==v&&P&&"values"!==P.name&&(k=!0,T=function(){return P.call(this)}),u&&!b||O[d]===T||l(O,d,T),p[t]=T,v)if(_={values:x("values"),keys:y?T:x("keys"),entries:x("entries")},b)for(S in _)!g&&!k&&S in O||c(O,S,_[S]);else r({target:t,proto:!0,forced:g||k},_);return _}},function(e,t,n){var r=n(183);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,o){return r(n,o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},function(e,t,n){var r=n(118),o=n(119),i=n(4),a=n(22),s=n(5),l=s("iterator"),c=s("toStringTag"),u=o.values;for(var d in r){var p=i[d],f=p&&p.prototype;if(f){if(f[l]!==u)try{a(f,l,u)}catch(e){f[l]=u}if(f[c]||a(f,c,d),r[d])for(var h in o)if(f[h]!==o[h])try{a(f,h,o[h])}catch(e){f[h]=o[h]}}}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(13),o=n(53),i=n(5)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r=n(4).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){var r=n(23),o=n(4),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(54),o=n(77),i=n(40),a=n(24),s=n(125);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,h){for(var g,m,v=i(t),y=o(v),b=r(s,h,3),w=a(y.length),_=0,S=n?f(t,w):l?f(t,0):void 0;w>_;_++)if((p||_ in y)&&(m=b(g=y[_],_,v),e))if(n)S[_]=m;else if(m)switch(e){case 3:return!0;case 5:return g;case 6:return _;case 2:S.push(g)}else if(u)return!1;return d?-1:c||u?u:S}}},function(e,t,n){var r=n(32);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(4),o=n(54),i=Function.call;e.exports=function(e,t,n){return o(i,r[e].prototype[t],n)}},function(e,t,n){var r=n(128),o=n(21);e.exports=function(e,t,n){if(r(t))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(o(e))}},function(e,t,n){var r=n(5)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(85);e.exports=function(e,t,n){return t+(n?r(e,t,!0).length:1)}},function(e,t,n){"use strict";var r,o,i=n(240),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(r=/a/,o=/b*/g,a.call(r,"a"),a.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(e){var t,n,r,o,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),c&&(t=l.lastIndex),r=a.call(l,e),c&&r&&(l.lastIndex=l.global?r.index+r[0].length:t),u&&r&&r.length>1&&s.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r}),e.exports=l},function(e,t,n){var r=n(21),o="["+n(132)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$");e.exports=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(i,"")),2&t&&(e=e.replace(a,"")),e}},function(e,t,n){var r=n(8),o=n(132);e.exports=function(e){return r(function(){return!!o[e]()||"
"!="
"[e]()||o[e].name!==e})}},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(56));t.DocumentViewer=o;var i=r(n(302));t.ErrorPanel=i;var a=r(n(306));t.PanelManager=a;var s=r(n(142));t.ThumbnailsPanel=s;var l=r(n(309));t.ProgressDialog=l;var c=r(n(103));t.utils=c;var u=n(311);t.ToolbarView=u.ToolbarView},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/(\d+(?:[.]\d+)?|[.]\d+)(pt|cm|mm|in|px)/i,o={px:1,in:96,cm:96/2.54,mm:96/25.4,pt:96/72};t.toPixels=function(e){var t=e.match(r);if(t){var n=[parseFloat(t[1]),t[2]];return n[0]*o[n[1].toLowerCase()]}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){var e=this;this._eventHandlers={},this._trigger=function(t){for(var n in e._eventHandlers)e._eventHandlers[n](t)}}return e.createFor=function(){var t=new e;return{event:t,trigger:t._trigger}},e.prototype.register=function(t){var n=this;if("function"!=typeof t)throw new Error("callback is not a function");var r=e.generateKey();return this._eventHandlers[r]=t,function(){delete n._eventHandlers[r]}},e._lastKey=+new Date,e.generateKey=function(){var t=65539*e._lastKey%4294967087;return e._lastKey=t,t},e}();t.EventFan=r},function(e,t,n){"use strict";var r=n(35),o=n(1),i=n(2),a=n(154),s=n(155),l=n(156),c=n(157),u=n(158),d=n(159),p=n(160),f=n(161),h=n(162),g=n(163),m=n(164),v=n(165),y=function(e){var t=Object.entries(e.settings).reduce(function(e,t){var n=t[0],r=t[1],i=r.enum,a=void 0===i?{}:i,s=o.i(r,["enum"]);return e[n]=o.a({name:n},s,{enumValues:a}),e},{});return{friendlyName:e.friendlyName,settings:Object.assign.apply(Object,o.j([{}],t))}},b=y(a),w=y(s),_=y(l),S=y(c),x=y(u),C=y(d),k=y(p),O=y(g),P=y(f),T=y(h),M=y(m),D=y(v),j={formatKey:"xls",friendlyName:i.b.t("exportxls:friendlyName"),defaultSettings:{MultiSheet:!0,OutputFormat:"Biff",LayoutMode:"Paginated",SheetName:"Sheet",Orientation:"Default",PaperSize:"Default"},settingsDescriptors:[o.a({type:"bool"},O.settings.EnableToggles),o.a({type:"bool"},O.settings.MultiSheet),o.a({type:"enum"},O.settings.LayoutMode),o.a({type:"bool"},O.settings.RightToLeft),o.a({type:"string"},O.settings.SheetName),o.a({type:"bool"},O.settings.UseDefaultPalette),o.a({type:"enum"},O.settings.Orientation),o.a({type:"enum"},O.settings.PaperSize),o.a({type:"string"},O.settings.Password),o.a({type:"string"},O.settings.ProtectedBy),o.a({type:"bool"},O.settings.ReadOnlyRecommended),o.a({type:"string"},O.settings.WritePassword)]},L={formatKey:"xlsx",friendlyName:i.b.t("exportxlsx:friendlyName"),defaultSettings:{MultiSheet:!0,OutputFormat:"OpenXmlTransitional",LayoutMode:"Paginated",SheetName:"Sheet",UseCompression:!0,Orientation:"Default",PaperSize:"Default"},settingsDescriptors:[o.a({type:"bool"},M.settings.EnableToggles),o.a({type:"bool"},M.settings.MultiSheet),o.a({type:"enum"},M.settings.OutputFormat),o.a({type:"enum"},M.settings.LayoutMode),o.a({type:"bool"},M.settings.RightToLeft),o.a({type:"string"},M.settings.SheetName),o.a({type:"bool"},M.settings.UseCompression),o.a({type:"bool"},M.settings.UseDefaultPalette),o.a({type:"enum"},M.settings.Orientation),o.a({type:"enum"},M.settings.PaperSize),o.a({type:"string"},M.settings.Password),o.a({type:"string"},M.settings.ProtectedBy),o.a({type:"bool"},M.settings.ReadOnlyRecommended),o.a({type:"string"},M.settings.WritePassword)]},N={formatKey:"doc",friendlyName:i.b.t("exportdoc:friendlyName"),defaultSettings:{Generator:"Created by GrapeCity, inc.",UseMhtOutput:"on"},settingsDescriptors:[o.a({type:"string"},w.settings.Author),o.a({type:"string"},w.settings.BaseHref),o.a({type:"string"},w.settings.Generator),o.a({type:"string"},w.settings.PageHeight),o.a({type:"string"},w.settings.PageWidth),o.a({type:"string"},w.settings.Title)]},E={formatKey:"docx",friendlyName:i.b.t("exportdocx:friendlyName"),defaultSettings:{DocumentCompatibilityVersion:"Word2007",DpiX:96,DpiY:96,Orientation:"Default",PaperSize:"Default",FileFormat:"OOXML"},settingsDescriptors:[o.a({type:"string"},_.settings.Author),o.a({type:"string"},_.settings.CompanyName),o.a({type:"enum"},_.settings.DocumentCompatibilityVersion),o.a({type:"int"},_.settings.DpiX),o.a({type:"int"},_.settings.DpiY),o.a({type:"enum"},_.settings.Orientation),o.a({type:"enum"},_.settings.PaperSize),o.a({type:"string"},_.settings.Password),o.a({type:"bool"},_.settings.ReadOnlyRecommended),o.a({type:"string"},_.settings.WritePassword),o.a({type:"string"},_.settings.Title),o.a({type:"bool"},_.settings.TOCAutoUpdate)]},A={formatKey:"pdf",friendlyName:i.b.t("exportpdf:friendlyName"),defaultSettings:{Application:"Active Reports 14",Version:"Pdf14",EmbedFonts:"Partial"},settingsDescriptors:[o.a({type:"string"},C.settings.Title),o.a({type:"string"},C.settings.Author),o.a({type:"string"},C.settings.Subject),o.a({type:"string"},C.settings.Keywords),o.a({type:"string"},C.settings.Application),o.a({type:"enum"},C.settings.EmbedFonts),o.a({type:"enum"},C.settings.Version),o.a({type:"string"},C.settings.UserPassword),o.a({type:"string"},C.settings.OwnerPassword),o.a({type:"bool"},C.settings.Encrypt)]},V={formatKey:"csv",friendlyName:i.b.t("exportcsv:friendlyName"),defaultSettings:{ColumnsDelimiter:",",Encoding:"utf-8",QuotationSymbol:'"',RowsDelimiter:"\\r\\n"},settingsDescriptors:[o.a({type:"string"},b.settings.ColumnsDelimiter),o.a({type:"enum"},b.settings.Encoding),o.a({type:"bool"},b.settings.NoHeader),o.a({type:"string"},b.settings.QuotationSymbol),o.a({type:"string"},b.settings.RowsDelimiter)]},I={formatKey:"json",friendlyName:i.b.t("exportjson:friendlyName"),defaultSettings:{Formatted:!0},settingsDescriptors:[o.a({type:"bool"},S.settings.Formatted),o.a({type:"bool"},S.settings.QuotePropertyNames)]},H={formatKey:"xml",friendlyName:i.b.t("exportxml:friendlyName"),defaultSettings:{Encoding:"UTF-8"},settingsDescriptors:[o.a({type:"enum"},D.settings.Encoding)]},R={formatKey:"tiff",friendlyName:i.b.t("exporttiff:friendlyName"),defaultSettings:{Compression:"Ccitt3",DpiX:200,DpiY:196,ImageType:"TIFF"},settingsDescriptors:[o.a({type:"enum"},P.settings.Compression),o.a({type:"bool"},P.settings.Dither),o.a({type:"int"},P.settings.DpiX),o.a({type:"int"},P.settings.DpiY)]},F={formatKey:"mht",friendlyName:i.b.t("exportmht:friendlyName"),defaultSettings:{MhtOutput:!0,OutputTOC:!0,Mode:"Paginated"},settingsDescriptors:[o.a({type:"bool"},x.settings.Fragment),o.a({type:"bool"},x.settings.OutputTOC),o.a({type:"string"},x.settings.LinkTarget),o.a({type:"enum"},x.settings.Mode)]};var z={formatKey:"xls",friendlyName:i.b.t("exportxls:friendlyName"),defaultSettings:{MultiSheet:!0,OutputFormat:"Biff",SheetName:"Sheet",Orientation:"Default",PaperSize:"Default"},settingsDescriptors:[o.a({type:"bool"},O.settings.MultiSheet),o.a({type:"bool"},O.settings.RightToLeft),o.a({type:"string"},O.settings.SheetName),o.a({type:"bool"},O.settings.UseDefaultPalette),o.a({type:"enum"},O.settings.Orientation),o.a({type:"enum"},O.settings.PaperSize),o.a({type:"string"},O.settings.Password),o.a({type:"string"},O.settings.ProtectedBy),o.a({type:"bool"},O.settings.ReadOnlyRecommended),o.a({type:"string"},O.settings.WritePassword)]},B={formatKey:"xlsx",friendlyName:i.b.t("exportxlsx:friendlyName"),defaultSettings:{MultiSheet:!0,OutputFormat:"OpenXmlTransitional",SheetName:"Sheet",UseCompression:!0,Orientation:"Default",PaperSize:"Default"},settingsDescriptors:[o.a({type:"bool"},M.settings.MultiSheet),o.a({type:"enum"},M.settings.OutputFormat),o.a({type:"bool"},M.settings.RightToLeft),o.a({type:"string"},M.settings.SheetName),o.a({type:"bool"},M.settings.UseCompression),o.a({type:"bool"},M.settings.UseDefaultPalette),o.a({type:"enum"},M.settings.Orientation),o.a({type:"enum"},M.settings.PaperSize),o.a({type:"string"},M.settings.Password),o.a({type:"string"},M.settings.ProtectedBy),o.a({type:"bool"},M.settings.ReadOnlyRecommended),o.a({type:"string"},M.settings.WritePassword)]},W={formatKey:"doc",friendlyName:i.b.t("exportdoc:friendlyName"),defaultSettings:{Generator:"Created by GrapeCity, inc.",UseMhtOutput:"on"},settingsDescriptors:[o.a({type:"string"},w.settings.Author),o.a({type:"string"},w.settings.BaseHref),o.a({type:"string"},w.settings.Generator),o.a({type:"string"},w.settings.Title)]},U={formatKey:"mht",friendlyName:i.b.t("exportmht:friendlyName"),defaultSettings:{MhtOutput:!0,OutputTOC:!0},settingsDescriptors:[o.a({type:"bool"},x.settings.Fragment),o.a({type:"bool"},x.settings.OutputTOC),o.a({type:"string"},x.settings.LinkTarget)]};var Y={formatKey:"rtf",friendlyName:i.b.t("exportrtf:friendlyName"),defaultSettings:{Pagination:!0},settingsDescriptors:[o.a({type:"bool"},k.settings.EnableShapes),o.a({type:"bool"},k.settings.Pagination)]},$={formatKey:"tiff",friendlyName:i.b.t("exporttiff:friendlyName"),defaultSettings:{CompressionScheme:"Ccitt3",Pagination:!0,DpiX:200,DpiY:196,ImageType:"TIFF"},settingsDescriptors:[o.a({type:"enum"},P.settings.CompressionScheme),o.a({type:"bool"},P.settings.Dither),o.a({type:"int"},P.settings.DpiX),o.a({type:"int"},P.settings.DpiY),o.a({type:"bool"},P.settings.Pagination)]},G={formatKey:"txt",friendlyName:i.b.t("exporttxt:friendlyName"),defaultSettings:{TextDelimiter:",",Encoding:"utf-8",QuotationSymbol:'"',SuppressEmptyLines:!0},settingsDescriptors:[o.a({type:"enum"},T.settings.Encoding),o.a({type:"string"},T.settings.PageDelimiter),o.a({type:"string"},T.settings.QuotationSymbol),o.a({type:"string"},T.settings.TextDelimiter),o.a({type:"bool"},T.settings.SuppressEmptyLines)]},q={formatKey:"xls",friendlyName:i.b.t("exportxls:friendlyName"),defaultSettings:{Pagination:!0,SheetName:"Sheet",Orientation:"Default",PaperSize:"Default",DisplayGridLines:!0,FileFormat:"Xls97Plus"},settingsDescriptors:[o.a({type:"enum"},O.settings.FileFormat),o.a({type:"bool"},O.settings.AutoRowHeight),o.a({type:"bool"},O.settings.DisplayGridLines),o.a({type:"bool"},O.settings.Pagination),o.a({type:"bool"},O.settings.MultiSheet),o.a({type:"string"},O.settings.SheetName),o.a({type:"bool"},O.settings.UseDefaultPalette),o.a({type:"enum"},O.settings.Orientation),o.a({type:"enum"},O.settings.PaperSize),o.a({type:"string"},O.settings.Password),o.a({type:"string"},O.settings.ProtectedBy),o.a({type:"bool"},O.settings.ReadOnlyRecommended),o.a({type:"string"},O.settings.WritePassword)]},K={formatKey:"xlsx",friendlyName:i.b.t("exportxlsx:friendlyName"),defaultSettings:{OpenXmlStandard:"Transitional",Pagination:!0,SheetName:"Sheet",UseCompression:!0,Orientation:"Default",PaperSize:"Default",DisplayGridLines:!0,FileFormat:"Xlsx"},settingsDescriptors:[o.a({type:"bool"},M.settings.AutoRowHeight),o.a({type:"bool"},M.settings.DisplayGridLines),o.a({type:"enum"},M.settings.OpenXmlStandard),o.a({type:"bool"},M.settings.Pagination),o.a({type:"bool"},M.settings.MultiSheet),o.a({type:"string"},M.settings.SheetName),o.a({type:"bool"},M.settings.UseCompression),o.a({type:"bool"},M.settings.UseDefaultPalette),o.a({type:"enum"},M.settings.Orientation),o.a({type:"enum"},M.settings.PaperSize),o.a({type:"string"},M.settings.Password),o.a({type:"string"},M.settings.ProtectedBy),o.a({type:"bool"},M.settings.ReadOnlyRecommended),o.a({type:"string"},M.settings.WritePassword)]},X={formatKey:"pdf",friendlyName:i.b.t("exportpdf:friendlyName"),defaultSettings:{Application:"Active Reports 14",version:"Pdf14",ExportBookmarks:!0,ImageInterpolation:"None",ImageQuality:"Medium"},settingsDescriptors:[o.a({type:"bool"},C.settings.ConvertMetaToPng),o.a({type:"bool"},C.settings.ExportBookmarks),o.a({type:"enum"},C.settings.ImageInterpolation),o.a({type:"enum"},C.settings.ImageQuality),o.a({type:"string"},C.settings.Title),o.a({type:"string"},C.settings.Author),o.a({type:"string"},C.settings.Subject),o.a({type:"string"},C.settings.Keywords),o.a({type:"string"},C.settings.Application),o.a({type:"enum"},C.settings.Version),o.a({type:"string"},C.settings.UserPassword),o.a({type:"string"},C.settings.OwnerPassword),o.a({type:"bool"},C.settings.Encrypt)]},Z={formatKey:"mht",friendlyName:i.b.t("exportmht:friendlyName"),defaultSettings:{Pagination:!0,Title:"ActiveReports Document",BookmarkStyle:"Html",CharacterSet:"UnicodeUtf8",IncludeHtmlHeader:!0,OutputType:"DynamicHtml"},settingsDescriptors:[o.a({type:"enum"},x.settings.BookmarkStyle),o.a({type:"enum"},x.settings.CharacterSet),o.a({type:"bool"},x.settings.CreateFramesetPage),o.a({type:"bool"},x.settings.IncludeHtmlHeader),o.a({type:"bool"},x.settings.IncludePageMargins),o.a({type:"bool"},x.settings.MultiPage),o.a({type:"enum"},x.settings.OutputType),o.a({type:"bool"},x.settings.Pagination),o.a({type:"bool"},x.settings.RemoveVerticalSpace),o.a({type:"string"},x.settings.Title)]};function J(e){switch(e){case r.a.Rdl:return(t=[j,L,N,E,A,V,I,H,R,F])[4].defaultSettings.Application=i.b.t("exportpdf:application"),t;case r.a.Page:return[z,B,W,E,A,V,I,H,R,U];case r.a.Section:return function(){var e=[Y,q,K,X,$,G,Z];return e[3].defaultSettings.Application=i.b.t("exportpdf:application"),e}()}var t}n.d(t,"a",function(){return J})},function(e,t,n){var r=n(279),o=n(280),i=n(281);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t,n){var r=n(20),o=n(31),i=n(108)(!1),a=n(46);e.exports=function(e,t){var n,s=o(e),l=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);for(;t.length>l;)r(s,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(31),o=n(24),i=n(109);e.exports=function(e){return function(t,n,a){var s,l=r(t),c=o(l.length),u=i(a,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(45),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){e.exports=!n(26)&&!n(8)(function(){return 7!=Object.defineProperty(n(79)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(49)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(20),o=n(173),i=n(62),a=n(16);e.exports=function(e,t){for(var n=o(t),s=a.f,l=i.f,c=0;c<n.length;c++){var u=n[c];r(e,u)||s(e,u,l(t,u))}}},function(e,t,n){n(83),n(84),n(88),n(184),n(190),e.exports=n(23).Promise},function(e,t,n){var r=n(32),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){e.exports=!n(8)(function(){return!String(Symbol())})},function(e,t,n){"use strict";var r,o,i,a=n(66),s=n(22),l=n(20),c=n(50),u=n(5)("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):d=!0),null==r&&(r={}),c||l(r,u)||s(r,u,function(){return this}),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(31),o=n(67),i=n(52),a=n(41),s=n(86),l=a.set,c=a.getterFor("Array Iterator");e.exports=s(Array,"Array",function(e,t){l(this,{type:"Array Iterator",target:r(e),index:0,kind:t})},function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){var r=n(5)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},function(e,t,n){var r,o,i,a=n(4),s=n(32),l=n(54),c=n(117),u=n(79),d=a.setImmediate,p=a.clearImmediate,f=a.process,h=a.MessageChannel,g=a.Dispatch,m=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){y.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(m),m},p=function(e){delete v[e]},"process"==s(f)?r=function(e){f.nextTick(l(y,e,1))}:g&&g.now?r=function(e){g.now(l(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=l(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(e){a.postMessage(e+"","*")},a.addEventListener("message",b,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(l(y,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){var r=n(13),o=n(11),i=n(55);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){var r=n(36);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t,n){"use strict";var r=n(92),o=n(16),i=n(26),a=n(5)("species");e.exports=function(e){var t=r(e),n=o.f;i&&t&&!t[a]&&n(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(11),o=n(94),i=n(5)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(65)("meta"),o=n(200),i=n(11),a=n(20),s=n(16).f,l=0,c=Object.isExtensible||function(){return!0},u=function(e){s(e,r,{value:{objectID:"O"+ ++l,weakData:{}}})},d=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].objectID},getWeakData:function(e,t){if(!a(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].weakData},onFreeze:function(e){return o&&d.REQUIRED&&c(e)&&!a(e,r)&&u(e),e}};n(46)[r]=!0},function(e,t,n){t.f=n(5)},function(e,t,n){var r=n(11),o=n(32),i=n(5)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){var r=n(24),o=n(130),i=n(21);e.exports=function(e,t,n,a){var s,l,c=String(i(e)),u=c.length,d=void 0===n?" ":String(n),p=r(t);return p<=u||""==d?c:(s=p-u,(l=o.call(d,Math.ceil(s/d.length))).length>s&&(l=l.slice(0,s)),a?l+c:c+l)}},function(e,t,n){"use strict";var r=n(45),o=n(21);e.exports="".repeat||function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){var r=n(91);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=[].forEach,o=n(93)(0),i=n(267)("forEach");e.exports=i?function(e){return o(this,e,arguments[1])}:r},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r;
- /*!
- Copyright (c) 2017 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- /*!
- Copyright (c) 2017 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- !function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(43),a=o(n(27));function s(){return{status:i.ViewerStatus.Ready,pageCount:0,pageIndex:0,pageBuffer:[],progressMessage:"",scrollRequestNo:0,scrollToSelector:null,highlightPage:null}}function l(){return{mode:i.ViewMode.SinglePage,zoom:{mode:i.ZoomMode.Value,factor:1},mouseMode:i.MouseMode.Select,isFullscreen:!1,narrowScreen:window.innerWidth<=768,isToolbarVisible:!0,isSidebarVisible:!0}}t.init=function(){return{settings:l(),session:s()}},t.initDocView=s,t.initSettings=l;var c=0;t.docViewReducer=function(e,t){var n,o,l;switch(e.type){case"Reset":return s();case"UpdateStatus":var u=t.pageBuffer,d=e.payload,p=d.pageCount,f=d.isLoading,h=d.message;p>t.pageBuffer.length&&((u=u.slice()).length=p);var g=f?i.ViewerStatus.Loading:i.ViewerStatus.Ready;return r({},t,{pageCount:p,pageBuffer:u,progressMessage:h,status:g});case"Cancelled":var m=e.payload.message;return r({},t,{status:i.ViewerStatus.Cancelled,progressMessage:m});case"Failed":return m=e.payload.message,r({},t,{status:i.ViewerStatus.Failed,progressMessage:m});case"SetCurrentPage":var v=e.payload,y=v.pageIndex,b=v.doScroll,w=v.scrollTo;if(y>=0&&y<t.pageCount){var _=b?++c:0;return a.default(t,{pageIndex:{$set:y},scrollRequestNo:{$set:_},scrollToSelector:{$set:b&&w||null}})}break;case"Fetching":var S=e.payload,x=S.pageIndex,C=S.reqIndex;if(x>=0&&x<t.pageCount){if(null==t.pageBuffer[x]||C>t.pageBuffer[x].reqIndex)return a.default(t,{pageBuffer:(n={},n[x]=function(e){return a.default(e||{data:null,isInvalid:!1,isLoading:!1,reqIndex:0,size:null},{isLoading:{$set:!0},reqIndex:{$set:C}})},n)});console.error("invalid fetching request #",C," overrides request #",t.pageBuffer[x].reqIndex)}break;case"Fetched":var k=e.payload,O=k.pageIndex,P=k.data,T=k.size,M=k.reqIndex;if(O>=0&&O<t.pageCount&&t.pageBuffer[O]&&t.pageBuffer[O].isLoading&&M>=t.pageBuffer[O].reqIndex)return a.default(t,{pageBuffer:(o={},o[O]={isLoading:{$set:!1},isInvalid:{$set:!1},data:{$set:P},size:{$set:T}},o)});break;case"RemoveHighlight":return a.default(t,{highlightPage:{$set:null}});case"HighlightPage":var D=e.payload,j=D.pageIndex,L=D.pageView;return a.default(t,{highlightPage:{$set:{pageIndex:j,pageView:L}}});case"Invalidate":for(var N=e.payload,E=N.startPage,A=N.pageCount,V=Math.max(0,E);V<E+A&&V<t.pageCount;V++)t.pageBuffer[V]&&(t=a.default(t,{pageBuffer:(l={},l[V]={isLoading:{$set:!1},isInvalid:{$set:!0}},l)}))}return t},t.settingsReducer=function(e,t){switch(e.type){case"ToggleNarrowScreen":var n=e.payload.isNarrow;t=a.default(t,{narrowScreen:{$apply:function(e){return void 0!==n?n:!e}}});break;case"UpdateZoom":t=a.default(t,{zoom:{$set:e.payload.zoom}});break;case"UpdateView":t=a.default(t,{mode:{$set:e.payload.mode}});break;case"UpdateMouseMode":t=a.default(t,{mouseMode:{$set:e.payload.mode}});break;case"UpdateFullscreen":t=a.default(t,{isFullscreen:{$set:e.payload.isFullscreen}});break;case"UpdateToolbarVisibility":t=a.default(t,{isToolbarVisible:{$set:e.payload.isVisible}});break;case"UpdateSidebarVisibility":t=a.default(t,{isSidebarVisible:{$set:e.payload.isVisible}})}return t}},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()<this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()<e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(28))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(28))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refNode=function(e){t._node!==e&&(t._node=e,t.refreshElement())},t.shouldComponentUpdate=function(e){return t.props.dom!==e.dom},t.componentDidUpdate=function(e){t.props.dom!==e.dom&&t.refreshElement()},t}return o(t,e),t.prototype.refreshElement=function(){var e=this.props.dom,t=this._node;if(e&&t){for(;t.hasChildNodes();)t.removeChild(t.lastChild);e&&t.appendChild(e)}},t.prototype.componentWillUnmount=function(){for(var e=this._node;e.hasChildNodes();)e.removeChild(e.lastChild)},t.prototype.render=function(){return a.h("div",{ref:this.refNode})},t}(a.Component),l=function(e){var t=e.tagName,n=e.html;return a.h(t,{dangerouslySetInnerHTML:{__html:n}})},c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.pageIndex,n=e.pageModel,r=e.zoomFactor,o=null,c=e.defaultPageSize||{width:"210mm",height:"297mm"};if(n){if(n.data)switch(n.data.kind){case"html":o=a.h(l,{tagName:"div",html:n.data.html});break;case"dom":o=a.h(s,{key:t,pageIndex:t,dom:n.data.dom})}n.size&&(c=i({},n.size))}var u={style:{width:c.width,height:c.height}};1!==r&&(c={width:"calc("+c.width+" * "+r+")",height:"calc("+c.height+" * "+r+")"},u.style.transformOrigin="top left",u.style.transform="scaleX("+r+") scaleY("+r+")");var d={id:"page_"+t,"data-page":t,style:c};return a.h("div",i({className:"gcv-page"},d),a.h("div",i({},u),o))},t}(a.Component);t.Page=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMoveHandler=function(e){var t=null,n=function(e){t={X:e.screenX,Y:e.screenY}},r=function(e){e.preventDefault()},o=function(e){t=null},i=function(n){t&&(e.scrollLeft+=t.X-n.screenX,e.scrollTop+=t.Y-n.screenY,t.X=n.screenX,t.Y=n.screenY)};document.addEventListener("mousemove",i),document.addEventListener("mouseup",o),e.addEventListener("mousedown",n),e.addEventListener("selectstart",r);var a=e.style.cursor;return e.style.cursor="move",{dispose:function(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",o),e.removeEventListener("mousedown",n),e.removeEventListener("selectstart",r),e.style.cursor=a,t=null}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(27));t.prefilterItems=function(e,t){var n=function(e){return{item:e}};if(null==t||0==t.length)return e.map(n);var r=t.map(function(t){if("sep"===t||"separator"===t)return{separator:!0};var r=e.find(function(e){return e.key==t});return r&&n(r)||null}),o=t.indexOf("*");if(o>=0){var i=e.filter(function(e){return r.findIndex(function(t){return null!=t&&t.item===e})<0});i.length>0&&r.splice.apply(r,[o,0].concat(i.map(n)))}return r.filter(function(e){return null!=e})},t.init=function(){return{panels:[],layout:[]}},t.reducer=function(e,t){var n;switch(e.type){case"Register-Panel":var r=e.payload,i=r.panelId,a=r.component,s=r.binder,l=r.key,c=r.settings,u={icon:c.icon,description:c.description,visible:c.visible,label:c.label,enabled:c.enabled};return o.default(t,{panels:{$push:[{hash:i,key:l,component:a,binder:s,settings:u}]}});case"update-panel":var d=e.payload.settings,p=d.visible,f=d.enabled,h=d.description,g=d.icon,m=d.label,v=t.panels.findIndex(function(t){return t.hash===e.payload.panelId});return v<0?t:o.default(t,{panels:(n={},n[""+v]={settings:{visible:{$apply:function(e){return null==p?e:!!p}},enabled:{$apply:function(e){return null==f?e:!!f}},label:{$apply:function(e){return null==m?e:m}},icon:{$apply:function(e){return null==g?e:g}},description:{$apply:function(e){return null==h?e:h}}}},n)});case"set-layout":var y=e.payload.layout;return o.default(t,{layout:{$set:y}})}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(143);t.init=r.init,t.reducer=r.reducer;var o=n(308);t.register=o.register},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(27)),i=n(103);t.init=function(){return{thumbnails:[],pageCount:0,pageIndex:-1,scrollTopPosition:0,viewportHeight:0}},t.reducer=function(e,t){switch(e.type){case"ProcessViewerState":var n=e.payload,r=n.pageCount,a=n.pageBuffer,s=n.pageIndex,l=t.thumbnails,c=t.pageCount,u=t.pageIndex,d={thumbnails:{}};return r!==c&&(d.pageCount={$set:r}),s!==u&&(d.pageIndex={$set:s}),a.forEach(function(e,t){if(!l[t]&&e.size&&e.data&&"html"===e.data.kind&&e.data.html){var n=210/(i.toPixels(e.size.width)||1);d.thumbnails[t]={$set:{content:e.data.html,size:{width:"210px",height:(i.toPixels(e.size.height)||1)*n+"px"},originalSize:{width:e.size.width,height:e.size.height},scaleFactor:n}}}}),o.default(t,d);case"ProcessScrollInfo":var p=e.payload,f=p.scrollTopPosition,h=p.viewportHeight;return o.default(t,{scrollTopPosition:{$set:f&&f||t.scrollTopPosition},viewportHeight:{$set:h&&h||t.viewportHeight}})}return t}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(27));t.init=function(){return{progress:{isOpen:!1},title:"",showCancel:!0}},t.reducer=function(e,t){switch(e.type){case"setProgress":return o.default(t,{progress:{$set:e.payload.isOpen?{isOpen:!0,message:e.payload.message||""}:{isOpen:!1}}});case"init":return o.default(t,{title:{$set:e.payload.title},showCancel:{$set:e.payload.showCancel}});default:return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this._view=e,this.recalculateBounds=function(){return t._view.recalculateBounds()}}return e.prototype.addItem=function(e){this._view.addItem(e)},e.prototype.updateItem=function(e,t){this._view.updateItem(e,t)},e.prototype.removeItem=function(e){this._view.removeItem(e)},e.prototype.updateLayout=function(e){this._view.updateLayout(e)},e.prototype.getDefaultToolbarItems=function(){return this._view.getDefaultToolbarItems()},e}();t.Toolbar=r},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(315));t.PluginModel=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(102),a=n(148),s=n(74),l=function(){function e(e,t,n,l){var c=this;this.onChangeDocumentView=e,this.onChangeDocument=t,this.onDocumentProgress=n,this.errorSink=l,this.setDocumentView=function(e){c._documentView!==e&&(c._documentView=e,c.onChangeDocumentView(e))},this.gotoPage=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=void 0),r(c,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return r=this._viewState.state,e>=0&&e<r.pageCount?[4,this.fetchPages({startPage:e,pageCount:1})]:[3,2];case 1:o.sent(),this._viewState.dispatch({type:"SetCurrentPage",payload:{pageIndex:e,doScroll:t,scrollTo:n}}),o.label=2;case 2:return[2]}})})},this.highlight=function(e){return r(c,void 0,void 0,function(){var t,n,r;return o(this,function(o){switch(o.label){case 0:return this._viewState.dispatch({type:"RemoveHighlight"}),null==this._document||null==this._documentView||null==this._plugin.renderHighlightPage?[2]:(t=e.PageIndex,[4,this.fetchPages({startPage:t,pageCount:1})]);case 1:return o.sent(),[4,this._documentView.awaitPage(t)];case 2:return null==(n=o.sent())?[2]:[4,this._plugin.renderHighlightPage(n,[e])];case 3:return r=o.sent(),this._viewState.dispatch({type:"HighlightPage",payload:{pageIndex:t,pageView:r}}),[2]}})})},this.cancel=function(e){return r(c,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return this._cancel?[4,this._cancel(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},this.refresh=function(){c.isDocumentOpened&&c.cancellableRun(function(e){return r(c,void 0,void 0,function(){var t=this;return o(this,function(n){return[2,this.runImpl(e,{},function(e){return r(t,void 0,void 0,function(){return o(this,function(t){return[2,this._document&&this._documentView&&this._document.createView(this._documentView,e)]})})})]})})})},this.updateView=function(){if(c.isDocumentOpened){var e=c.store.state.pageIndex;c.cancellableRun(function(t){return r(c,void 0,void 0,function(){var n=this;return o(this,function(i){return[2,this.runImpl(t,{gotoPageIndex:e},function(e){return r(n,void 0,void 0,function(){return o(this,function(t){return[2,this._document&&this._documentView&&this._document.updateView(this._documentView,e)]})})})]})})})}},this.run=function(){c.isDocumentOpened&&c.cancellableRun(c.processRun)},this.load=function(e,t){return c._plugin.pluginKey!=e.pluginKey?Promise.resolve({status:"error",message:"No plugin for handling document type "+e.pluginKey}):c.cancellableRun(function(t){return r(c,void 0,void 0,function(){var n,r,i,a,s;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,3,4]),n=this,[4,this._plugin.openDocument(e,t)];case 1:return n._document=o.sent(),this.onChangeDocument(this._document),[2,null==this._document?{status:"error",message:"Plugin failed to open the document"}:{status:"loaded",document:this._document}];case 2:return r=o.sent(),this.onChangeDocument(null),i=r.details,a=r.message,s=r.text,[2,{status:"error",message:s||a,details:i}];case 3:return this.onChangeDocumentView(null),this._viewState.dispatch({type:"UpdateStatus",payload:{isLoading:!1,pageCount:0,message:"rendering complete"}}),[7];case 4:return[2]}})})},t)},this.cancellableRun=function(e,t){return r(c,void 0,void 0,function(){var n,i,s,l,c=this;return o(this,function(u){switch(u.label){case 0:return this.isRunning?[4,this.cancel("next run request")]:[3,2];case 1:u.sent(),u.label=2;case 2:n=a.CancellationToken.create(t),i=n.token,s=n.cancel,u.label=3;case 3:return u.trys.push([3,,5,6]),l=e(i),this._cancel=function(e){return r(c,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return s(e),[4,l];case 1:return t.sent(),[2]}})})},[4,l];case 4:return[2,u.sent()];case 5:return this._cancel=null,[7];case 6:return[2]}})})},this.processRun=function(e){return r(c,void 0,void 0,function(){var t=this;return o(this,function(n){return[2,this.runImpl(e,{},function(e){return r(t,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return(t=this._document)?[4,this._document.createView(null,e)]:[3,2];case 1:t=n.sent(),n.label=2;case 2:return[2,t]}})})})]})})},this._lastPageRequestIndex=0,this.fetchPages=function(e){var t=e.startPage,n=e.pageCount;return r(c,void 0,void 0,function(){var e,i,a,s,l,c=this;return o(this,function(u){switch(u.label){case 0:if(null==this._documentView)return[2];for(e=[],i=this._viewState.state,a=function(t){var n=i.pageBuffer[t];if(null==n||(n.isInvalid||null==n.data)&&!n.isLoading){var a=++s._lastPageRequestIndex;s._viewState.dispatch({type:"Fetching",payload:{pageIndex:t,reqIndex:a}});e.push(r(c,void 0,void 0,function(){var e,n;return o(this,function(r){switch(r.label){case 0:return null==this._documentView?[2]:[4,this._documentView.awaitPage(t)];case 1:return null!=(e=r.sent())&&(n=this._plugin.renderPage(e),this._viewState.dispatch({type:"Fetched",payload:{pageIndex:t,reqIndex:a,data:n,size:e.pageSize}})),[2]}})}))}},s=this,l=Math.max(0,t);l<t+n&&l<i.pageCount;l++)a(l);return this._lastFetchPagesCall=function(){return c.fetchPages({startPage:t,pageCount:n})},e.length>0?[4,Promise.all(e)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}})})},this._viewState=new s.Store(i.DocumentViewer.initDocView(),i.DocumentViewer.docViewReducer)}return Object.defineProperty(e.prototype,"isDocumentOpened",{get:function(){return null!=this._document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRunning",{get:function(){return null!=this._cancel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"store",{get:function(){return this._viewState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this._document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentView",{get:function(){return this._documentView},enumerable:!0,configurable:!0}),e.prototype.setPlugin=function(e){this._plugin=e},e.prototype.runImpl=function(e,t,n){var i=t.gotoPageIndex,a=void 0===i?0:i;return r(this,void 0,void 0,function(){var t,r,i,s,l,c,u,d,p,f,h,g,m,v;return o(this,function(o){switch(o.label){case 0:t=this,r=function(e){return t._viewState.dispatch(e)},i=function(e){return t.onDocumentProgress(e)},s=!1,l=!1,c={progress:function(e){switch(e.phase){case"starting":r({type:"UpdateStatus",payload:{isLoading:!0,pageCount:0,message:e.message}});break;case"run":e.document&&t.setDocumentView(e.document),r({type:"UpdateStatus",payload:{isLoading:!0,pageCount:e.count.renderedSoFar,message:"rendering document pages"}}),!l&&e.count.renderedSoFar>a+1&&(l=!0,t.gotoPage(a,!0));break;case"complete":e.document&&t.setDocumentView(e.document),r({type:"UpdateStatus",payload:{isLoading:!1,pageCount:e.pageCount,message:"rendering complete"}}),s=!0;break;case"cancelled":r({type:"Cancelled",payload:{message:"rendering cancelled"}}),s=!0;break;default:return new Promise(function(e,t){return e()})}return i(e),new Promise(function(e,t){setTimeout(e)})},invalidatePage:function(e,n){r({type:"Invalidate",payload:{startPage:e,pageCount:n||1}}),null!=t._lastFetchPagesCall&&t._lastFetchPagesCall()},cancel:e,reportError:function(e){return t.errorSink.reportError(e)}},o.label=1;case 1:return o.trys.push([1,5,,6]),r({type:"Reset",payload:{}}),[4,n(c)];case 2:return(u=o.sent())?(s||(this.setDocumentView(u),d=u.pageCount.totalPageCount||0,r({type:"UpdateStatus",payload:{isLoading:!1,pageCount:d,message:""}}),i(d>0?{phase:"complete",pageCount:d}:{phase:"cancelled"})),l?[3,4]:(d=u.pageCount.totalPageCount||0,(p=a<d?a:d-1)>=0?[4,this.gotoPage(p,!0)]:[3,4])):[2];case 3:o.sent(),o.label=4;case 4:return[3,6];case 5:return f=o.sent(),h=f.details,g=f.message,m=f.text,r({type:"Failed",payload:{message:v=m||g}}),this.errorSink.reportError({severity:"error",message:v,details:h}),[3,6];case 6:return[2]}})})},e}();t.SessionState=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){var n=this;this.parentToken=t,this._isCancellationRequested=!1,this._cancellationPromise=new Promise(function(e){n._cancel=function(t){n._isCancellationRequested=!0,e(t)}}),t&&t instanceof e&&t.register(this._cancel)}return e.create=function(t){var n=new e(t);return{token:n,cancel:n._cancel}},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancellationRequested},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"promise",{get:function(){return this._cancellationPromise},enumerable:!0,configurable:!0}),e.prototype.register=function(e){this._cancellationPromise.then(e)},e}();t.CancellationToken=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){var t=this;this.handleStoreUpdate=function(e){null!=t._view&&t._view.setState(e)},this.dispatch=function(e){return t._store.dispatch(e)},this.bindView=function(e){t._view=e,null!=t._view&&t._view.setState(t._store.state)},this._view=null,this._store=e,this._unsubscribe=this._store.subscribe(this.handleStoreUpdate)}return Object.defineProperty(e.prototype,"store",{get:function(){return this._store},enumerable:!0,configurable:!0}),e.prototype.bind=function(e){this._unsubscribe(),this._store=e,this._unsubscribe=e.subscribe(this.handleStoreUpdate),this.handleStoreUpdate(e.state)},Object.defineProperty(e.prototype,"connect",{get:function(){return{dispatch:this.dispatch,ref:this.bindView}},enumerable:!0,configurable:!0}),e}();t.ReactStateBinder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.selectAll={selectAll:"$selectAll"};var r;t.noValue=void 0,function(e){e[e.ok=0]="ok",e[e.expectValue=1]="expectValue",e[e.hasOutstandingDependencies=2]="hasOutstandingDependencies",e[e.validationFailed=3]="validationFailed",e[e.dynamicValuesUnavailable=4]="dynamicValuesUnavailable",e[e.communicating=5]="communicating",e[e.isValidation=6]="isValidation"}(r||(r={})),t.ParameterStatus=r},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(1),o=n(2),i=n(59);function a(e){return r.f(this,void 0,void 0,function(){var t,n,a,s,l,c,u;return r.h(this,function(r){switch(r.label){case 0:t=e.reportService||{},o.b.isInitialized||Object(o.c)(e.settings.localeData,void 0,void 0,e.error),n=new i.a(t.url,t.securityToken||""),a=e.error?function(t){return e.error({message:o.b.t("jsviewer:errors.export-report","Export report error."),details:t.message,severity:"error"})}:void 0,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.exportReport(e.reportID,e.exportType,{Settings:e.settings})];case 2:return s=r.sent(),l=n.getExportResultUri(s.exportId,s.reportName),(c=e.callback)&&"function"==typeof c&&c(l),e.saveAsDialog?[4,n.downloadExportResult(l,s.reportName,a)]:[2];case 3:return r.sent(),[3,5];case 4:return u=r.sent(),a&&a(u),[3,5];case 5:return[2]}})})}},function(e,t,n){var r=n(276),o=n(277),i=n(278);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){var r=n(282).default;e.exports=r,e.exports.default=r},function(e){e.exports={friendlyName:"CSV (*.csv)",settings:{ColumnsDelimiter:{label:"ColumnsDelimiter",category:"Misc"},Encoding:{label:"Encoding",category:"Misc",enum:{"utf-8":"Unicode (UTF-8)","us-ascii":"US-ASCII","utf-16":"Unicode"}},NoHeader:{label:"NoHeader",category:"Misc"},QuotationSymbol:{label:"QuotationSymbol",category:"Misc"},RowsDelimiter:{label:"RowsDelimiter",category:"Misc"}}}},function(e){e.exports={friendlyName:"Word 2003 (*.doc)",settings:{Author:{label:"Author",category:"Misc"},BaseHref:{label:"BaseUrl",category:"Misc"},Generator:{label:"Generator",category:"Misc"},PageHeight:{label:"PageHeight",category:"Misc"},PageWidth:{label:"PageWidth",category:"Misc"},Title:{label:"Title",category:"Misc"}}}},function(e){e.exports={friendlyName:"Word (*.docx)",settings:{Author:{label:"Author",category:"Misc"},CompanyName:{label:"CompanyName",category:"Misc"},DocumentCompatibilityVersion:{label:"DocumentCompatibilityVersion",category:"Misc",enum:{Word2007:"Word2007",Word2010:"Word2010",Word2013:"Word2013"}},DpiX:{label:"DpiX",category:"Misc"},DpiY:{label:"DpiY",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"SecuritySettings"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"SecuritySettings"},WritePassword:{label:"WritePassword",category:"SecuritySettings"},Title:{label:"Title",category:"Misc"},TOCAutoUpdate:{label:"TOCAutoUpdate",category:"Misc"}}}},function(e){e.exports={friendlyName:"JSON (*.json)",settings:{Formatted:{label:"Formatted",category:"Misc"},QuotePropertyNames:{label:"QuotePropertyNames",category:"Misc"}}}},function(e){e.exports={friendlyName:"Web Archive (*.mht)",settings:{Fragment:{label:"Fragment",category:"Output"},OutputTOC:{label:"OutputTOC",category:"Output"},LinkTarget:{label:"LinkTarget",category:"Rendering"},Mode:{label:"Mode",category:"Rendering",enum:{Galley:"Galley",Paginated:"Paginated"}},BookmarkStyle:{label:"BookmarkStyle",category:"Misc",enum:{Html:"Html",None:"None"}},CharacterSet:{label:"CharacterSet",category:"Misc",enum:{Big5:"Big5",EucJp:"EucJp",HzGb2312:"HzGb2312",Ibm850:"Ibm850",Iso2022Jp:"Iso2022Jp",Iso8859_1:"Iso8859_1",Iso8859_2:"Iso8859_2",Iso8859_5:"Iso8859_5",Iso8859_6:"Iso8859_6",Koi8r:"Koi8r",Ksc5601:"Ksc5601",ShiftJis:"ShiftJis",UnicodeUtf16:"UnicodeUtf16",UnicodeUtf8:"UnicodeUtf8"}},CreateFramesetPage:{label:"CreateFramesetPage",category:"Misc"},IncludeHtmlHeader:{label:"IncludeHtmlHeader",category:"Misc"},IncludePageMargins:{label:"IncludePageMargins",category:"Misc"},MultiPage:{label:"MultiPage",category:"Misc"},OutputType:{label:"OutputType",category:"Misc",enum:{DynamicHtml:"DynamicHtml",LegacyHtml:"LegacyHtml"}},Pagination:{label:"Pagination",category:"Misc"},RemoveVerticalSpace:{label:"RemoveVerticalSpace",category:"Misc"},Title:{label:"Title",category:"Misc"}}}},function(e){e.exports={friendlyName:"PDF (*.pdf)",settings:{Title:{label:"Title",category:"Misc"},Author:{label:"Author",category:"Misc"},Subject:{label:"Subject",category:"Misc"},Keywords:{label:"Keywords",category:"Misc"},Application:{label:"Application",category:"Misc"},EmbedFonts:{label:"EmbedFonts",category:"Misc",enum:{Partial:"Partial",All:"All",None:"None"}},Version:{label:"Version",category:"Misc",enum:{Pdf12:"PDF-1.2",Pdf13:"PDF-1.3",Pdf14:"PDF-1.4",Pdf15:"PDF-1.5",Pdf16:"PDF-1.6",Pdf17:"PDF-1.7",PdfA1a:"PDF/A-1a",PdfA1b:"PDF/A-1b",PdfA2a:"PDF/A-2a",PdfA2b:"PDF/A-2b",PdfA2u:"PDF/A-2u",PdfA3a:"PDF/A-3a",PdfA3b:"PDF/A-3b",PdfA3u:"PDF/A-3u",PdfUA1:"PDF/UA-1"}},UserPassword:{label:"UserPassword",category:"SecuritySettings"},OwnerPassword:{label:"OwnerPassword",category:"SecuritySettings"},Encrypt:{label:"Encrypt",category:"SecuritySettings"},ConvertMetaToPng:{label:"ConvertMetaToPng",category:"Misc"},ExportBookmarks:{label:"ExportBookmarks",category:"Misc"},ImageInterpolation:{label:"ImageInterpolation",category:"Misc",enum:{Auto:"Auto",None:"None"}},ImageQuality:{label:"ImageQuality",category:"Misc",enum:{Medium:"Medium",Lowest:"Lowest",Highest:"Highest"}}}}},function(e){e.exports={friendlyName:"Rich Text Format (RTF)",settings:{EnableShapes:{label:"EnableShapes",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"}}}},function(e){e.exports={friendlyName:"Tagged Image (*.tiff)",settings:{Compression:{label:"CompressionScheme",category:"Misc",enum:{None:"None",Rle:"Rle",Ccitt3:"Ccitt3",Ccitt4:"Ccitt4",Lzw:"Lzw"}},Dither:{label:"Dither",category:"Misc"},DpiX:{label:"DpiX",category:"Misc"},DpiY:{label:"DpiY",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"},CompressionScheme:{label:"CompressionScheme",category:"Misc",enum:{None:"None",Rle:"Rle",Ccitt3:"Ccitt3",Ccitt4:"Ccitt4",Lzw:"Lzw"}}}}},function(e){e.exports={friendlyName:"Plain Text (TXT)",settings:{Encoding:{label:"Encoding",category:"Misc",enum:{"utf-8":"Unicode (UTF-8)","us-ascii":"US-ASCII","utf-16":"Unicode"}},PageDelimiter:{label:"PageDelimiter",category:"Misc"},QuotationSymbol:{label:"QuotationSymbol",category:"Misc"},TextDelimiter:{label:"TextDelimiter",category:"Misc"},SuppressEmptyLines:{label:"SuppressEmptyLines",category:"Misc"}}}},function(e){e.exports={friendlyName:"Excel 2003 (*.xls)",settings:{EnableToggles:{label:"EnableToggles",category:"Misc"},MultiSheet:{label:"MultiSheet",category:"Misc"},LayoutMode:{label:"LayoutMode",category:"Misc",enum:{Galley:"Galley",Paginated:"Paginated"}},RightToLeft:{label:"RightToLeft",category:"Misc"},SheetName:{label:"SheetName",category:"Misc"},UseDefaultPalette:{label:"UseDefaultPalette",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"Security"},ProtectedBy:{label:"ProtectedBy",category:"Security"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"Security"},WritePassword:{label:"WritePassword",category:"Security"},AutoRowHeight:{label:"AutoRowHeight",category:"Misc"},DisplayGridLines:{label:"DisplayGridLines",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"},FileFormat:{label:"FileFormat",category:"Misc",enum:{Xls97Plus:"Xls97Plus",Xls95:"Xls95"}}}}},function(e){e.exports={friendlyName:"Excel (*.xlsx)",settings:{EnableToggles:{label:"EnableToggles",category:"Misc"},MultiSheet:{label:"MultiSheet",category:"Misc"},OutputFormat:{label:"OpenXmlStandard",category:"Misc",enum:{OpenXmlTransitional:"Transitional",OpenXmlStrict:"Strict"}},LayoutMode:{label:"LayoutMode",category:"Misc",enum:{Galley:"Galley",Paginated:"Paginated"}},RightToLeft:{label:"RightToLeft",category:"Misc"},SheetName:{label:"SheetName",category:"Misc"},UseCompression:{label:"UseCompression",category:"Misc"},UseDefaultPalette:{label:"UseDefaultPalette",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"Security"},ProtectedBy:{label:"ProtectedBy",category:"Security"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"Security"},WritePassword:{label:"WritePassword",category:"Security"},AutoRowHeight:{label:"AutoRowHeight",category:"Misc"},DisplayGridLines:{label:"DisplayGridLines",category:"Misc"},OpenXmlStandard:{label:"OpenXmlStandard",category:"Misc",enum:{Transitional:"Transitional",Strict:"Strict"}},Pagination:{label:"Pagination",category:"Misc"}}}},function(e){e.exports={friendlyName:"XML (*.xml)",settings:{Encoding:{label:"Encoding",category:"Misc",enum:{"UTF-8":"UTF-8",ASCII:"ASCII",Unicode:"Unicode"}}}}},function(e,t,n){var r,o,i;o=[],void 0===(i="function"==typeof(r=function(){return function e(t,n,r){var o,i,a=window,s="application/octet-stream",l=r||s,c=t,u=!n&&!r&&c,d=document.createElement("a"),p=function(e){return String(e)},f=a.Blob||a.MozBlob||a.WebKitBlob||p,h=n||"download";if(f=f.call?f.bind(a):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(h=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,h,s)},setTimeout(function(){g.send()},0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&f!==p))return navigator.msSaveBlob?navigator.msSaveBlob(b(c),h):w(c);c=b(c),l=c.type||s}else if(/([\x80-\xff])/.test(c)){for(var m=0,v=new Uint8Array(c.length),y=v.length;m<y;++m)v[m]=c.charCodeAt(m);c=new f([v],{type:l})}function b(e){for(var t=e.split(/[:;,]/),n=t[1],r="base64"==t[2]?atob:decodeURIComponent,o=r(t.pop()),i=o.length,a=0,s=new Uint8Array(i);a<i;++a)s[a]=o.charCodeAt(a);return new f([s],{type:n})}function w(e,t){if("download"in d)return d.href=e,d.setAttribute("download",h),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout(function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout(function(){a.URL.revokeObjectURL(d.href)},250)},66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout(function(){document.body.removeChild(n)},333)}if(o=c instanceof f?c:new f([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(o,h);if(a.URL)w(a.URL.createObjectURL(o),!0);else{if("string"==typeof o||o.constructor===p)try{return w("data:"+l+";base64,"+a.btoa(o))}catch(e){return w("data:"+l+","+encodeURIComponent(o))}(i=new FileReader).onload=function(e){w(this.result)},i.readAsDataURL(o)}return!0}})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(1),o=n(2),i=n(59),a=n(75);function s(e){return r.f(this,void 0,void 0,function(){var t,n,s,l,c,u,d;return r.h(this,function(r){switch(r.label){case 0:t=e.reportService||{},o.b.isInitialized||Object(o.c)(void 0,void 0,void 0,e.error),n=new i.a(t.url,t.securityToken||""),s=e.error?function(t){return e.error({message:o.b.t("jsviewer:errors.print-report","Print report error."),details:t.message,severity:"error"})}:void 0,l={},e.reportParameters&&e.reportParameters.forEach(function(e){return l[e.name]=e.values}),r.label=1;case 1:return r.trys.push([1,4,,5]),[4,n.exportReport(e.reportID,"pdf",{Settings:{OnlyForPrint:"true",ContentInline:"true"},Parameters:l})];case 2:return c=r.sent(),u=n.getExportResultUri(c.exportId,c.reportName),[4,Object(a.a)(u)];case 3:return r.sent(),[3,5];case 4:return d=r.sent(),s&&s(d),[3,5];case 5:return[2]}})})}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(57),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCheckboxClick=function(){var e=t.props,n=e.name,r=e.setValue,o=e.isNull,i=e.isAllowBlank;r(n,o?[i?"":l.noValue]:[null])},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.name,n=e.isNullable,r=e.isNull,o=e.children,l=e.invalid,c=e.i18n;if(!n)return o.length>0?o[0]:null;var u={id:t+"_check",invalid:l,size:"small",block:!0,value:"null",checked:r,text:c.t("params:null","Null"),onChange:this.onCheckboxClick};return a.h("div",{className:"gcv-null-wrapper"},a.h("div",{className:"gcv-null-wrapper__content"},o),a.h(s.Checkbox,i({},u)))},t}(a.Component);t.NullWrapper=c},function(e,t,n){n(170),e.exports=n(23).Object.assign},function(e,t,n){var r=n(171);n(3)({target:"Object",stat:!0,forced:Object.assign!==r},{assign:r})},function(e,t,n){"use strict";var r=n(39),o=n(61),i=n(47),a=n(40),s=n(77),l=Object.assign;e.exports=!l||n(8)(function(){var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||"abcdefghijklmnopqrst"!=r(l({},t)).join("")})?function(e,t){for(var n=a(e),l=arguments.length,c=1,u=o.f,d=i.f;l>c;)for(var p,f=s(arguments[c++]),h=u?r(f).concat(u(f)):r(f),g=h.length,m=0;g>m;)d.call(f,p=h[m++])&&(n[p]=f[p]);return n}:l},function(e,t,n){var r=n(111),o=n(4).WeakMap;e.exports="function"==typeof o&&/native code/.test(r.call(o))},function(e,t,n){var r=n(81),o=n(61),i=n(13),a=n(4).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){n(175),e.exports=n(23).Object.entries},function(e,t,n){var r=n(176);n(3)({target:"Object",stat:!0},{entries:function(e){return r(e,!0)}})},function(e,t,n){var r=n(39),o=n(31),i=n(47).f;e.exports=function(e,t){for(var n,a=o(e),s=r(a),l=s.length,c=0,u=[];l>c;)i.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}},function(e,t,n){n(178),e.exports=n(23).Object.keys},function(e,t,n){var r=n(40),o=n(39),i=n(8)(function(){o(1)});n(3)({target:"Object",stat:!0,forced:i},{keys:function(e){return o(r(e))}})},function(e,t,n){"use strict";var r=n(114),o={};o[n(5)("toStringTag")]="z",e.exports="[object z]"!==String(o)?function(){return"[object "+r(this)+"]"}:o.toString},function(e,t,n){"use strict";var r=n(116).IteratorPrototype,o=n(51),i=n(48),a=n(37),s=n(52),l=function(){return this};e.exports=function(e,t,n){var c=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,c,!1,!0),s[c]=l,e}},function(e,t,n){e.exports=!n(8)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,t,n){var r=n(26),o=n(16),i=n(13),a=n(39);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,l=0;s>l;)o.f(e,n=r[l++],t[n]);return e}},function(e,t,n){var r=n(11),o=n(13);e.exports=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}},function(e,t,n){"use strict";var r,o,i,a="Promise",s=n(50),l=n(4),c=n(3),u=n(11),d=n(53),p=n(89),f=n(32),h=n(42),g=n(120),m=n(90),v=n(121).set,y=n(188),b=n(122),w=n(189),_=n(55),S=n(68),x=n(91),C=n(5)("species"),k=n(41),O=n(82),P=k.get,T=k.set,M=k.getterFor(a),D=l.Promise,j=l.TypeError,L=l.document,N=l.process,E=l.fetch,A=N&&N.versions,V=A&&A.v8||"",I=_.f,H=I,R="process"==f(N),F=!!(L&&L.createEvent&&l.dispatchEvent),z=O(a,function(){var e=D.resolve(1),t=function(){},n=(e.constructor={})[C]=function(e){e(t,t)};return!((R||"function"==typeof PromiseRejectionEvent)&&(!s||e.finally)&&e.then(t)instanceof n&&0!==V.indexOf("6.6")&&-1===x.indexOf("Chrome/66"))}),B=z||!g(function(e){D.all(e).catch(function(){})}),W=function(e){var t;return!(!u(e)||"function"!=typeof(t=e.then))&&t},U=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;y(function(){for(var o=t.value,i=1==t.state,a=0,s=function(n){var r,a,s,l=i?n.ok:n.fail,c=n.resolve,u=n.reject,d=n.domain;try{l?(i||(2===t.rejection&&q(e,t),t.rejection=1),!0===l?r=o:(d&&d.enter(),r=l(o),d&&(d.exit(),s=!0)),r===n.promise?u(j("Promise-chain cycle")):(a=W(r))?a.call(r,c,u):c(r)):u(o)}catch(e){d&&!s&&d.exit(),u(e)}};r.length>a;)s(r[a++]);t.reactions=[],t.notified=!1,n&&!t.rejection&&$(e,t)})}},Y=function(e,t,n){var r,o;F?((r=L.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},(o=l["on"+e])?o(r):"unhandledrejection"===e&&w("Unhandled promise rejection",n)},$=function(e,t){v.call(l,function(){var n,r=t.value;if(G(t)&&(n=S(function(){R?N.emit("unhandledRejection",r,e):Y("unhandledrejection",e,r)}),t.rejection=R||G(t)?2:1,n.error))throw n.value})},G=function(e){return 1!==e.rejection&&!e.parent},q=function(e,t){v.call(l,function(){R?N.emit("rejectionHandled",e):Y("rejectionhandled",e,t.value)})},K=function(e,t,n,r){return function(o){e(t,n,o,r)}},X=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,U(e,t,!0))},Z=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw j("Promise can't be resolved itself");var o=W(n);o?y(function(){var r={done:!1};try{o.call(n,K(Z,e,r,t),K(X,e,r,t))}catch(n){X(e,r,n,t)}}):(t.value=n,t.state=1,U(e,t,!1))}catch(n){X(e,{done:!1},n,t)}}};z&&(D=function(e){p(this,D,a),d(e),r.call(this);var t=P(this);try{e(K(Z,this,t),K(X,this,t))}catch(e){X(this,t,e)}},(r=function(e){T(this,{type:a,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=n(123)(D.prototype,{then:function(e,t){var n=M(this),r=I(m(this,D));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?N.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&U(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=P(e);this.promise=e,this.resolve=K(Z,e,t),this.reject=K(X,e,t)},_.f=I=function(e){return e===D||e===i?new o(e):H(e)},s||"function"!=typeof E||c({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return b(D,E.apply(l,arguments))}})),c({global:!0,wrap:!0,forced:z},{Promise:D}),n(37)(D,a,!1,!0),n(124)(a),i=n(23).Promise,c({target:a,stat:!0,forced:z},{reject:function(e){var t=I(this);return t.reject.call(void 0,e),t.promise}}),c({target:a,stat:!0,forced:s||z},{resolve:function(e){return b(s&&this===i?D:this,e)}}),c({target:a,stat:!0,forced:B},{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=S(function(){var n=[],i=0,a=1;h(e,function(e){var s=i++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=S(function(){h(e,function(e){t.resolve(e).then(n.resolve,r)})});return o.error&&r(o.value),n.promise}})},function(e,t,n){var r=n(52),o=n(5)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(114),o=n(5)("iterator"),i=n(52);e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(13);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r,o,i,a,s,l,c,u=n(4),d=n(62).f,p=n(32),f=n(121).set,h=n(91),g=u.MutationObserver||u.WebKitMutationObserver,m=u.process,v=u.Promise,y="process"==p(m),b=d(u,"queueMicrotask"),w=b&&b.value;w||(r=function(){var e,t;for(y&&(e=m.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},y?a=function(){m.nextTick(r)}:g&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(h)?(s=!0,l=document.createTextNode(""),new g(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):v&&v.resolve?(c=v.resolve(void 0),a=function(){c.then(r)}):a=function(){f.call(u,r)}),e.exports=w||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},function(e,t,n){var r=n(4);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t,n){"use strict";var r=n(92),o=n(90),i=n(122);n(3)({target:"Promise",proto:!0,real:!0},{finally:function(e){var t=o(this,r("Promise")),n="function"==typeof e;return this.then(n?function(n){return i(t,e()).then(function(){return n})}:e,n?function(n){return i(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){n(192),e.exports=n(95)("Array","find")},function(e,t,n){"use strict";var r=n(93)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(3)({target:"Array",proto:!0,forced:o},{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(67)("find")},function(e,t,n){n(194),e.exports=n(95)("Array","findIndex")},function(e,t,n){"use strict";var r=n(93)(6),o=!0;"findIndex"in[]&&Array(1).findIndex(function(){o=!1}),n(3)({target:"Array",proto:!0,forced:o},{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(67)("findIndex")},function(e,t,n){n(196),e.exports=n(95)("Array","includes")},function(e,t,n){"use strict";var r=n(108)(!0);n(3)({target:"Array",proto:!0},{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(67)("includes")},function(e,t,n){n(198),n(83),n(84),n(88),e.exports=n(23).Map},function(e,t,n){"use strict";e.exports=n(199)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},n(202),!0)},function(e,t,n){"use strict";var r=n(4),o=n(82),i=n(3),a=n(36),s=n(126),l=n(42),c=n(89),u=n(11),d=n(8),p=n(120),f=n(37),h=n(201);e.exports=function(e,t,n,g,m){var v=r[e],y=v&&v.prototype,b=v,w=g?"set":"add",_={},S=function(e){var t=y[e];a(y,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof v||!(m||y.forEach&&!d(function(){(new v).entries().next()}))))b=n.getConstructor(t,e,g,w),s.REQUIRED=!0;else if(o(e,!0)){var x=new b,C=x[w](m?{}:-0,1)!=x,k=d(function(){x.has(1)}),O=p(function(e){new v(e)}),P=!m&&d(function(){for(var e=new v,t=5;t--;)e[w](t,t);return!e.has(-0)});O||((b=t(function(t,n){c(t,b,e);var r=h(new v,t,b);return null!=n&&l(n,r[w],r,g),r})).prototype=y,y.constructor=b),(k||P)&&(S("delete"),S("has"),g&&S("get")),(P||C)&&S(w),m&&y.clear&&delete y.clear}return _[e]=b,i({global:!0,forced:b!=v},_),f(b,e),m||n.setStrong(b,e,g),b}},function(e,t,n){e.exports=!n(8)(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var r=n(11),o=n(87);e.exports=function(e,t,n){var i,a=t.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(16).f,o=n(51),i=n(123),a=n(54),s=n(89),l=n(42),c=n(86),u=n(124),d=n(26),p=n(126).fastKey,f=n(41),h=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,r){s(e,u,t),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&l(r,e[c],e,n)}),f=g(t),m=function(e,t,n){var r,o,i=f(e),a=v(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},v=function(e,t){var n,r=f(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(u.prototype,{clear:function(){for(var e=f(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=f(this),n=v(this,e);if(n){var r=n.next,o=n.previous;delete t.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),t.first==n&&(t.first=r),t.last==n&&(t.last=o),d?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=f(this),r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(u.prototype,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),d&&r(u.prototype,"size",{get:function(){return f(this).size}}),u},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);c(e,t,function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})},function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})},n?"entries":"values",!n,!0),u(t)}}},function(e,t,n){n(204),n(206),n(207),e.exports=n(23).Function},function(e,t,n){n(3)({target:"Function",proto:!0},{bind:n(205)})},function(e,t,n){"use strict";var r=n(53),o=n(11),i=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=i.call(arguments,1),s=function(){var r=n.concat(i.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";a[t]=Function("C,a","return new C("+r.join(",")+")")}return a[t](e,n)}(t,r.length,r):t.apply(e,r)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(26),o=n(16).f,i=Function.prototype,a=i.toString,s=/^\s*function ([^ (]*)/;!r||"name"in i||o(i,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(11),o=n(16),i=n(66),a=n(5)("hasInstance"),s=Function.prototype;a in s||o.f(s,a,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){n(209),e.exports=n(23).Number.isFinite},function(e,t,n){n(3)({target:"Number",stat:!0},{isFinite:n(210)})},function(e,t,n){var r=n(4).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){n(212),n(83),n(215),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),e.exports=n(23).Symbol},function(e,t,n){"use strict";var r=n(94),o=n(11),i=n(40),a=n(24),s=n(213),l=n(125),c=n(5)("isConcatSpreadable"),u=!n(8)(function(){var e=[];return e[c]=!1,e.concat()[0]!==e}),d=n(214)("concat"),p=function(e){if(!o(e))return!1;var t=e[c];return void 0!==t?!!t:r(e)},f=!u||!d;n(3)({target:"Array",proto:!0,forced:f},{concat:function(e){var t,n,r,o,c,u=i(this),d=l(u,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(c=-1===t?u:arguments[t],p(c)){if(f+(o=a(c.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,f++)n in c&&s(d,f,c[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(d,f++,c)}return d.length=f,d}})},function(e,t,n){"use strict";var r=n(63),o=n(16),i=n(48);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(8),o=n(5)("species");e.exports=function(e){return!r(function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(e,t,n){"use strict";var r=n(4),o=n(20),i=n(26),a=n(50),s=n(3),l=n(36),c=n(46),u=n(8),d=n(49),p=n(37),f=n(65),h=n(5),g=n(127),m=n(17),v=n(216),y=n(94),b=n(13),w=n(11),_=n(31),S=n(63),x=n(48),C=n(51),k=n(217),O=n(62),P=n(16),T=n(47),M=n(22),D=n(39),j=n(64)("hidden"),L=n(41),N=L.set,E=L.getterFor("Symbol"),A=O.f,V=P.f,I=k.f,H=r.Symbol,R=r.JSON,F=R&&R.stringify,z=h("toPrimitive"),B=T.f,W=d("symbol-registry"),U=d("symbols"),Y=d("op-symbols"),$=d("wks"),G=Object.prototype,q=r.QObject,K=n(115),X=!q||!q.prototype||!q.prototype.findChild,Z=i&&u(function(){return 7!=C(V({},"a",{get:function(){return V(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(G,t);r&&delete G[t],V(e,t,n),r&&e!==G&&V(G,t,r)}:V,J=function(e,t){var n=U[e]=C(H.prototype);return N(n,{type:"Symbol",tag:e,description:t}),i||(n.description=t),n},Q=K&&"symbol"==typeof H.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof H},ee=function(e,t,n){return e===G&&ee(Y,t,n),b(e),t=S(t,!0),b(n),o(U,t)?(n.enumerable?(o(e,j)&&e[j][t]&&(e[j][t]=!1),n=C(n,{enumerable:x(0,!1)})):(o(e,j)||V(e,j,x(1,{})),e[j][t]=!0),Z(e,t,n)):V(e,t,n)},te=function(e,t){b(e);for(var n,r=v(t=_(t)),o=0,i=r.length;i>o;)ee(e,n=r[o++],t[n]);return e},ne=function(e){var t=B.call(this,e=S(e,!0));return!(this===G&&o(U,e)&&!o(Y,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,j)&&this[j][e])||t)},re=function(e,t){if(e=_(e),t=S(t,!0),e!==G||!o(U,t)||o(Y,t)){var n=A(e,t);return!n||!o(U,t)||o(e,j)&&e[j][t]||(n.enumerable=!0),n}},oe=function(e){for(var t,n=I(_(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||o(c,t)||r.push(t);return r},ie=function(e){for(var t,n=e===G,r=I(n?Y:_(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(G,t)||i.push(U[t]);return i};K||(l((H=function(){if(this instanceof H)throw TypeError("Symbol is not a constructor");var e=void 0===arguments[0]?void 0:String(arguments[0]),t=f(e),n=function(e){this===G&&n.call(Y,e),o(this,j)&&o(this[j],t)&&(this[j][t]=!1),Z(this,t,x(1,e))};return i&&X&&Z(G,t,{configurable:!0,set:n}),J(t,e)}).prototype,"toString",function(){return E(this).tag}),T.f=ne,P.f=ee,O.f=re,n(81).f=k.f=oe,n(61).f=ie,i&&(V(H.prototype,"description",{configurable:!0,get:function(){return E(this).description}}),a||l(G,"propertyIsEnumerable",ne,{unsafe:!0})),g.f=function(e){return J(h(e),e)}),s({global:!0,wrap:!0,forced:!K,sham:!K},{Symbol:H});for(var ae=D($),se=0;ae.length>se;)m(ae[se++]);s({target:"Symbol",stat:!0,forced:!K},{for:function(e){return o(W,e+="")?W[e]:W[e]=H(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol");for(var t in W)if(W[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),s({target:"Object",stat:!0,forced:!K,sham:!i},{create:function(e,t){return void 0===t?C(e):te(C(e),t)},defineProperty:ee,defineProperties:te,getOwnPropertyDescriptor:re}),s({target:"Object",stat:!0,forced:!K},{getOwnPropertyNames:oe,getOwnPropertySymbols:ie}),R&&s({target:"JSON",stat:!0,forced:!K||u(function(){var e=H();return"[null]"!=F([e])||"{}"!=F({a:e})||"{}"!=F(Object(e))})},{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(w(t)||void 0!==e)&&!Q(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Q(t))return t}),r[1]=t,F.apply(R,r)}}),H.prototype[z]||M(H.prototype,z,H.prototype.valueOf),p(H,"Symbol"),c[j]=!0},function(e,t,n){var r=n(39),o=n(61),i=n(47);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),l=i.f,c=0;s.length>c;)l.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(31),o=n(81).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){n(17)("asyncIterator")},function(e,t,n){"use strict";var r=n(26),o=n(20),i=n(11),a=n(16).f,s=n(112),l=n(4).Symbol;if(r&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var c={},u=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof u?new l(e):void 0===e?l():l(e);return""===e&&(c[t]=!0),t};s(u,l);var d=u.prototype=l.prototype;d.constructor=u;var p=d.toString,f="Symbol(test)"==String(l("test")),h=/^Symbol\((.*)\)[^)]+$/;a(d,"description",{configurable:!0,get:function(){var e=i(this)?this.valueOf():this,t=p.call(e);if(o(c,e))return"";var n=f?t.slice(7,-1):t.replace(h,"$1");return""===n?void 0:n}}),n(3)({global:!0,forced:!0},{Symbol:u})}},function(e,t,n){n(17)("hasInstance")},function(e,t,n){n(17)("isConcatSpreadable")},function(e,t,n){n(17)("iterator")},function(e,t,n){n(17)("match")},function(e,t,n){n(17)("replace")},function(e,t,n){n(17)("search")},function(e,t,n){n(17)("species")},function(e,t,n){n(17)("split")},function(e,t,n){n(17)("toPrimitive")},function(e,t,n){n(17)("toStringTag")},function(e,t,n){n(17)("unscopables")},function(e,t,n){n(37)(Math,"Math",!0)},function(e,t,n){n(37)(n(4).JSON,"JSON",!0)},function(e,t,n){n(234),n(235),n(236),n(237),n(238),n(239),n(241),n(242),n(243),n(244),n(245),n(247),n(248),n(249),n(250),n(251),n(84),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),e.exports=n(23).String},function(e,t,n){var r=n(109),o=String.fromCharCode,i=String.fromCodePoint,a=!!i&&1!=i.length;n(3)({target:"String",stat:!0,forced:a},{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,a=0;i>a;){if(t=+arguments[a++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(31),o=n(24);n(3)({target:"String",stat:!0},{raw:function(e){for(var t=r(e.raw),n=o(t.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";var r=n(85);n(3)({target:"String",proto:!0},{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var r=n(24),o=n(96),i="".endsWith,a=Math.min,s=n(97)("endsWith");n(3)({target:"String",proto:!0,forced:!s},{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,s=r(t.length),l=void 0===n?s:a(r(n),s),c=String(e);return i?i.call(t,c,l):t.slice(l-c.length,l)===c}})},function(e,t,n){"use strict";var r=n(96),o=n(97)("includes");n(3)({target:"String",proto:!0,forced:!o},{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(13),o=n(24),i=n(21),a=n(98),s=n(69);n(70)("match",1,function(e,t,n){return[function(t){var n=i(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var i=n(t,e,this);if(i.done)return i.value;var l=r(e),c=String(this);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;for(var d,p=[],f=0;null!==(d=s(l,c));){var h=String(d[0]);p[f]=h,""===h&&(l.lastIndex=a(c,o(l.lastIndex),u)),f++}return 0===f?null:p}]})},function(e,t,n){"use strict";var r=n(13);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(129),o=n(131);n(3)({target:"String",proto:!0,forced:o},{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(129),o=n(131);n(3)({target:"String",proto:!0,forced:o},{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){n(3)({target:"String",proto:!0},{repeat:n(130)})},function(e,t,n){"use strict";var r=n(13),o=n(40),i=n(24),a=n(45),s=n(21),l=n(98),c=n(69),u=Math.max,d=Math.min,p=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;n(70)("replace",2,function(e,t,n){return[function(n,r){var o=s(this),i=null==n?void 0:n[e];return void 0!==i?i.call(n,o,r):t.call(String(o),n,r)},function(e,o){var s=n(t,e,this,o);if(s.done)return s.value;var p=r(e),f=String(this),h="function"==typeof o;h||(o=String(o));var m=p.global;if(m){var v=p.unicode;p.lastIndex=0}for(var y=[];;){var b=c(p,f);if(null===b)break;if(y.push(b),!m)break;""===String(b[0])&&(p.lastIndex=l(f,i(p.lastIndex),v))}for(var w,_="",S=0,x=0;x<y.length;x++){b=y[x];for(var C=String(b[0]),k=u(d(a(b.index),f.length),0),O=[],P=1;P<b.length;P++)O.push(void 0===(w=b[P])?w:String(w));var T=b.groups;if(h){var M=[C].concat(O,k,f);void 0!==T&&M.push(T);var D=String(o.apply(void 0,M))}else D=g(C,f,k,O,T,o);k>=S&&(_+=f.slice(S,k)+D,S=k+C.length)}return _+f.slice(S)}];function g(e,n,r,i,a,s){var l=r+e.length,c=i.length,u=h;return void 0!==a&&(a=o(a),u=f),t.call(s,u,function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>c){var d=p(u/10);return 0===d?t:d<=c?void 0===i[d-1]?o.charAt(1):i[d-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var r=n(13),o=n(21),i=n(246),a=n(69);n(70)("search",1,function(e,t,n){return[function(t){var n=o(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var o=n(t,e,this);if(o.done)return o.value;var s=r(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var u=a(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(128),o=n(13),i=n(21),a=n(90),s=n(98),l=n(24),c=n(69),u=n(99),d=n(8),p=[].push,f=Math.min,h=!d(function(){return!RegExp(4294967295,"y")});n(70)("split",2,function(e,t,n){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=String(i(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!r(e))return t.call(o,e,a);for(var s,l,c,d=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,g=new RegExp(e.source,f+"g");(s=u.call(g,o))&&!((l=g.lastIndex)>h&&(d.push(o.slice(h,s.index)),s.length>1&&s.index<o.length&&p.apply(d,s.slice(1)),c=s[0].length,h=l,d.length>=a));)g.lastIndex===s.index&&g.lastIndex++;return h===o.length?!c&&g.test("")||d.push(""):d.push(o.slice(h)),d.length>a?d.slice(0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var r=i(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,r,n):d.call(String(r),t,n)},function(e,r){var i=n(d,e,this,r,d!==t);if(i.done)return i.value;var u=o(e),p=String(this),g=a(u,RegExp),m=u.unicode,v=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(h?"y":"g"),y=new g(h?u:"^(?:"+u.source+")",v),b=void 0===r?4294967295:r>>>0;if(0===b)return[];if(0===p.length)return null===c(y,p)?[p]:[];for(var w=0,_=0,S=[];_<p.length;){y.lastIndex=h?_:0;var x,C=c(y,h?p:p.slice(_));if(null===C||(x=f(l(y.lastIndex+(h?0:_)),p.length))===w)_=s(p,_,m);else{if(S.push(p.slice(w,_)),S.length===b)return S;for(var k=1;k<=C.length-1;k++)if(S.push(C[k]),S.length===b)return S;_=w=x}}return S.push(p.slice(w)),S}]},!h)},function(e,t,n){"use strict";var r=n(24),o=n(96),i=n(97)("startsWith"),a="".startsWith;n(3)({target:"String",proto:!0,forced:!i},{startsWith:function(e){var t=o(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return a?a.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";var r=n(100),o=n(101)("trim");n(3)({target:"String",proto:!0,forced:o},{trim:function(){return r(this,3)}})},function(e,t,n){"use strict";var r=n(100),o=n(101)("trimStart"),i=o?function(){return r(this,1)}:"".trimStart;n(3)({target:"String",proto:!0,forced:o},{trimStart:i,trimLeft:i})},function(e,t,n){"use strict";var r=n(100),o=n(101)("trimEnd"),i=o?function(){return r(this,2)}:"".trimEnd;n(3)({target:"String",proto:!0,forced:o},{trimEnd:i,trimRight:i})},function(e,t,n){"use strict";var r=n(18),o=n(19)("anchor");n(3)({target:"String",proto:!0,forced:o},{anchor:function(e){return r(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("big");n(3)({target:"String",proto:!0,forced:o},{big:function(){return r(this,"big","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("blink");n(3)({target:"String",proto:!0,forced:o},{blink:function(){return r(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("bold");n(3)({target:"String",proto:!0,forced:o},{bold:function(){return r(this,"b","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("fixed");n(3)({target:"String",proto:!0,forced:o},{fixed:function(){return r(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("fontcolor");n(3)({target:"String",proto:!0,forced:o},{fontcolor:function(e){return r(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("fontsize");n(3)({target:"String",proto:!0,forced:o},{fontsize:function(e){return r(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("italics");n(3)({target:"String",proto:!0,forced:o},{italics:function(){return r(this,"i","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("link");n(3)({target:"String",proto:!0,forced:o},{link:function(e){return r(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("small");n(3)({target:"String",proto:!0,forced:o},{small:function(){return r(this,"small","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("strike");n(3)({target:"String",proto:!0,forced:o},{strike:function(){return r(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("sub");n(3)({target:"String",proto:!0,forced:o},{sub:function(){return r(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(18),o=n(19)("sup");n(3)({target:"String",proto:!0,forced:o},{sup:function(){return r(this,"sup","","")}})},function(e,t,n){n(266),n(88);var r=n(119);e.exports={keys:r.keys,values:r.values,entries:r.entries,iterator:r.values,forEach:n(133)}},function(e,t,n){var r=n(118),o=n(133),i=n(22),a=n(4);for(var s in r){var l=a[s],c=l&&l.prototype;if(c&&c.forEach!==o)try{i(c,"forEach",o)}catch(e){c.forEach=o}}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t){var n=[][e];return!n||!r(function(){n.call(null,t||function(){throw 1},1)})}},function(e,t,n){e.exports=n(113),n(269),n(270),n(271),n(272)},function(e,t,n){var r=n(66),o=n(87),i=n(51),a=n(42),s=n(22),l=function(e,t){var n=this;if(!(n instanceof l))return new l(e,t);o&&(n=o(new Error(t),r(n)));var i=[];return a(e,i.push,i),n.errors=i,void 0!==t&&s(n,"message",String(t)),n};l.prototype=i(Error.prototype,{constructor:{value:l,configurable:!0,writable:!0},name:{value:"AggregateError",configurable:!0,writable:!0}}),n(3)({global:!0},{AggregateError:l})},function(e,t,n){"use strict";var r=n(55),o=n(68),i=n(42);n(3)({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=r.f(t),a=n.resolve,s=n.reject,l=o(function(){var n=[],r=0,o=1;i(e,function(e){var i=r++,s=!1;n.push(void 0),o++,t.resolve(e).then(function(e){s||(s=!0,n[i]={status:"fulfilled",value:e},--o||a(n))},function(e){s||(s=!0,n[i]={status:"rejected",reason:e},--o||a(n))})}),--o||a(n)});return l.error&&s(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(55),o=n(68);n(3)({target:"Promise",stat:!0},{try:function(e){var t=r.f(this),n=o(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}})},function(e,t,n){"use strict";var r=n(92),o=n(55),i=n(68),a=n(42);n(3)({target:"Promise",stat:!0},{any:function(e){var t=this,n=o.f(t),s=n.resolve,l=n.reject,c=i(function(){var n=[],o=0,i=1,c=!1;a(e,function(e){var a=o++,u=!1;n.push(void 0),i++,t.resolve(e).then(function(e){u||c||(c=!0,s(e))},function(e){u||c||(u=!0,n[a]=e,--i||l(new(r("AggregateError"))(n,"No one promise resolved")))})}),--i||l(new(r("AggregateError"))(n,"No one promise resolved"))});return c.error&&l(c.value),n.promise}})},function(e,t,n){(function(r){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var l=function(){function t(){e(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return n(t,[{key:"addEventListener",value:function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],r=0,o=n.length;r<o;r++)if(n[r]===t)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(e){var t=this;if(e.type in this.listeners){for(var n=function(n){setTimeout(function(){return n.call(t,e)})},r=this.listeners[e.type],o=0,i=r.length;o<i;o++)n(r[o]);return!e.defaultPrevented}}}]),t}(),c=function(t){function r(){var t,n,i;return e(this,r),(n=this,i=o(r).call(this),t=!i||"object"!=typeof i&&"function"!=typeof i?a(n):i).listeners||l.call(a(t)),Object.defineProperty(a(t),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(t),"onabort",{value:null,writable:!0,configurable:!0}),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(r,t),n(r,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(e){"abort"===e.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,e)),s(o(r.prototype),"dispatchEvent",this).call(this,e)}}]),r}(l),u=function(){function t(){e(this,t),Object.defineProperty(this,"signal",{value:new c,writable:!0,configurable:!0})}return n(t,[{key:"abort",value:function(){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(e)}},{key:"toString",value:function(){return"[object AbortController]"}}]),t}();function d(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof e.Request&&!e.Request.prototype.hasOwnProperty("signal")||!e.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(u.prototype[Symbol.toStringTag]="AbortController",c.prototype[Symbol.toStringTag]="AbortSignal"),function(e){if(d(e))if(e.fetch){var t=function(e){"function"==typeof e&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,o=void 0===r?n.Request:r,i=t.AbortController,a=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=void 0!==a&&a;if(!d({fetch:n,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:l};var l=o;(l&&!l.prototype.hasOwnProperty("signal")||s)&&((l=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new o(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=o.prototype);var c=n;return{fetch:function(e,t){var n=l&&l.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(e){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var o=new Promise(function(e,t){n.addEventListener("abort",function(){return t(r)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([o,c(e,t)])}return c(e,t)},Request:l}}(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:u}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:c})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:r)})?o.call(t,n,t,e):o)||(e.exports=i)}).call(this,n(134))},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(283)),i=p(n(284)),a=p(n(285)),s=p(n(286)),l=p(n(287)),c=p(n(288)),u=p(n(289)),d=p(n(290));function p(e){return e&&e.__esModule?e:{default:e}}var f=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return r(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=o.defaults(t,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(i.default),this.addDetector(a.default),this.addDetector(s.default),this.addDetector(l.default),this.addDetector(c.default),this.addDetector(u.default),this.addDetector(d.default)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];e.forEach(function(e){if(t.detectors[e]){var r=t.detectors[e].lookup(t.options);r&&"string"==typeof r&&(r=[r]),r&&(n=n.concat(r))}});var r=void 0;if(n.forEach(function(e){if(!r){var n=t.services.languageUtils.formatLanguageCode(e);t.services.languageUtils.isWhitelisted(n)&&(r=n)}}),!r){var o=this.i18nOptions.fallbackLng;"string"==typeof o&&(o=[o]),o||(o=[]),r="[object Array]"===Object.prototype.toString.apply(o)?o[0]:o[0]||o.default&&o.default[0]}return r}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}]),e}();f.type="languageDetector",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaults=function(e){return o.call(i.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e},t.extend=function(e){return o.call(i.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e};var r=[],o=r.forEach,i=r.slice},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t,n,r){var o=void 0;if(n){var i=new Date;i.setTime(i.getTime()+60*n*1e3),o="; expires="+i.toGMTString()}else o="";r=r?"domain="+r+";":"",document.cookie=e+"="+t+o+";"+r+"path=/"},o=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return null};t.default={name:"cookie",lookup:function(e){var t=void 0;if(e.lookupCookie&&"undefined"!=typeof document){var n=o(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&r(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"querystring",lookup:function(e){var t=void 0;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].indexOf("=");if(o>0)n[r].substring(0,o)===e.lookupQuerystring&&(t=n[r].substring(o+1))}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=void 0;try{r="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){r=!1}t.default={name:"localStorage",lookup:function(e){var t=void 0;if(e.lookupLocalStorage&&r){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&r&&window.localStorage.setItem(t.lookupLocalStorage,e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"htmlTag",lookup:function(e){var t=void 0,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"path",lookup:function(e){var t=void 0;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"subdomain",lookup:function(e){var t=void 0;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}}},function(e){e.exports=[{ns:"export",lng:"en",resources:{emptyTextPlaceholder:"<empty>",boolTextFalse:"False",boolTextTrue:"True",nodocument:"No document selected","inprogress-lbl":"Export in progress","cancel-btn":"Cancel","file-format-label":"Format","start-btn":"Export"}},{ns:"exportcsv",lng:"en",resources:{friendlyName:"CSV (*.csv)",settings:{ColumnsDelimiter:{label:"ColumnsDelimiter",category:"Misc"},Encoding:{label:"Encoding",category:"Misc",enum:{"utf-8":"Unicode (UTF-8)","us-ascii":"US-ASCII","utf-16":"Unicode"}},NoHeader:{label:"NoHeader",category:"Misc"},QuotationSymbol:{label:"QuotationSymbol",category:"Misc"},RowsDelimiter:{label:"RowsDelimiter",category:"Misc"}}}},{ns:"exportdoc",lng:"en",resources:{friendlyName:"Word 2003 (*.doc)",settings:{Author:{label:"Author",category:"Misc"},BaseHref:{label:"BaseUrl",category:"Misc"},Generator:{label:"Generator",category:"Misc"},PageHeight:{label:"PageHeight",category:"Misc"},PageWidth:{label:"PageWidth",category:"Misc"},Title:{label:"Title",category:"Misc"}}}},{ns:"exportdocx",lng:"en",resources:{friendlyName:"Word (*.docx)",settings:{Author:{label:"Author",category:"Misc"},CompanyName:{label:"CompanyName",category:"Misc"},DocumentCompatibilityVersion:{label:"DocumentCompatibilityVersion",category:"Misc",enum:{Word2007:"Word2007",Word2010:"Word2010",Word2013:"Word2013"}},DpiX:{label:"DpiX",category:"Misc"},DpiY:{label:"DpiY",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"SecuritySettings"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"SecuritySettings"},WritePassword:{label:"WritePassword",category:"SecuritySettings"},Title:{label:"Title",category:"Misc"},TOCAutoUpdate:{label:"TOCAutoUpdate",category:"Misc"}}}},{ns:"exportjson",lng:"en",resources:{friendlyName:"JSON (*.json)",settings:{Formatted:{label:"Formatted",category:"Misc"},QuotePropertyNames:{label:"QuotePropertyNames",category:"Misc"}}}},{ns:"exportmht",lng:"en",resources:{friendlyName:"Web Archive (*.mht)",settings:{Fragment:{label:"Fragment",category:"Output"},OutputTOC:{label:"OutputTOC",category:"Output"},LinkTarget:{label:"LinkTarget",category:"Rendering"},Mode:{label:"Mode",category:"Rendering",enum:{Galley:"Galley",Paginated:"Paginated"}},BookmarkStyle:{label:"BookmarkStyle",category:"Misc",enum:{Html:"Html",None:"None"}},CharacterSet:{label:"CharacterSet",category:"Misc",enum:{Big5:"Big5",EucJp:"EucJp",HzGb2312:"HzGb2312",Ibm850:"Ibm850",Iso2022Jp:"Iso2022Jp",Iso8859_1:"Iso8859_1",Iso8859_2:"Iso8859_2",Iso8859_5:"Iso8859_5",Iso8859_6:"Iso8859_6",Koi8r:"Koi8r",Ksc5601:"Ksc5601",ShiftJis:"ShiftJis",UnicodeUtf16:"UnicodeUtf16",UnicodeUtf8:"UnicodeUtf8"}},CreateFramesetPage:{label:"CreateFramesetPage",category:"Misc"},IncludeHtmlHeader:{label:"IncludeHtmlHeader",category:"Misc"},IncludePageMargins:{label:"IncludePageMargins",category:"Misc"},MultiPage:{label:"MultiPage",category:"Misc"},OutputType:{label:"OutputType",category:"Misc",enum:{DynamicHtml:"DynamicHtml",LegacyHtml:"LegacyHtml"}},Pagination:{label:"Pagination",category:"Misc"},RemoveVerticalSpace:{label:"RemoveVerticalSpace",category:"Misc"},Title:{label:"Title",category:"Misc"}}}},{ns:"exportpdf",lng:"en",resources:{application:"ActiveReports 14",friendlyName:"PDF (*.pdf)",settings:{Title:{label:"Title",category:"Misc"},Author:{label:"Author",category:"Misc"},Subject:{label:"Subject",category:"Misc"},Keywords:{label:"Keywords",category:"Misc"},Application:{label:"Application",category:"Misc"},EmbedFonts:{label:"EmbedFonts",category:"Misc",enum:{Partial:"Partial",All:"All",None:"None"}},Version:{label:"Version",category:"Misc",enum:{Pdf12:"PDF-1.2",Pdf13:"PDF-1.3",Pdf14:"PDF-1.4",Pdf15:"PDF-1.5",Pdf16:"PDF-1.6",Pdf17:"PDF-1.7",PdfA1a:"PDF/A-1a",PdfA1b:"PDF/A-1b",PdfA2a:"PDF/A-2a",PdfA2b:"PDF/A-2b",PdfA2u:"PDF/A-2u",PdfA3a:"PDF/A-3a",PdfA3b:"PDF/A-3b",PdfA3u:"PDF/A-3u",PdfUA1:"PDF/UA-1"}},UserPassword:{label:"UserPassword",category:"SecuritySettings"},OwnerPassword:{label:"OwnerPassword",category:"SecuritySettings"},Encrypt:{label:"Encrypt",category:"SecuritySettings"},ConvertMetaToPng:{label:"ConvertMetaToPng",category:"Misc"},ExportBookmarks:{label:"ExportBookmarks",category:"Misc"},ImageInterpolation:{label:"ImageInterpolation",category:"Misc",enum:{Auto:"Auto",None:"None"}},ImageQuality:{label:"ImageQuality",category:"Misc",enum:{Medium:"Medium",Lowest:"Lowest",Highest:"Highest"}}}}},{ns:"exportrtf",lng:"en",resources:{friendlyName:"Rich Text Format (RTF)",settings:{EnableShapes:{label:"EnableShapes",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"}}}},{ns:"exporttiff",lng:"en",resources:{friendlyName:"Tagged Image (*.tiff)",settings:{Compression:{label:"CompressionScheme",category:"Misc",enum:{None:"None",Rle:"Rle",Ccitt3:"Ccitt3",Ccitt4:"Ccitt4",Lzw:"Lzw"}},Dither:{label:"Dither",category:"Misc"},DpiX:{label:"DpiX",category:"Misc"},DpiY:{label:"DpiY",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"},CompressionScheme:{label:"CompressionScheme",category:"Misc",enum:{None:"None",Rle:"Rle",Ccitt3:"Ccitt3",Ccitt4:"Ccitt4",Lzw:"Lzw"}}}}},{ns:"exporttxt",lng:"en",resources:{friendlyName:"Plain Text (TXT)",settings:{Encoding:{label:"Encoding",category:"Misc",enum:{"utf-8":"Unicode (UTF-8)","us-ascii":"US-ASCII","utf-16":"Unicode"}},PageDelimiter:{label:"PageDelimiter",category:"Misc"},QuotationSymbol:{label:"QuotationSymbol",category:"Misc"},TextDelimiter:{label:"TextDelimiter",category:"Misc"},SuppressEmptyLines:{label:"SuppressEmptyLines",category:"Misc"}}}},{ns:"exportxls",lng:"en",resources:{friendlyName:"Excel 2003 (*.xls)",settings:{EnableToggles:{label:"EnableToggles",category:"Misc"},MultiSheet:{label:"MultiSheet",category:"Misc"},LayoutMode:{label:"LayoutMode",category:"Misc",enum:{Galley:"Galley",Paginated:"Paginated"}},RightToLeft:{label:"RightToLeft",category:"Misc"},SheetName:{label:"SheetName",category:"Misc"},UseDefaultPalette:{label:"UseDefaultPalette",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"Security"},ProtectedBy:{label:"ProtectedBy",category:"Security"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"Security"},WritePassword:{label:"WritePassword",category:"Security"},AutoRowHeight:{label:"AutoRowHeight",category:"Misc"},DisplayGridLines:{label:"DisplayGridLines",category:"Misc"},Pagination:{label:"Pagination",category:"Misc"},FileFormat:{label:"FileFormat",category:"Misc",enum:{Xls97Plus:"Xls97Plus",Xls95:"Xls95"}}}}},{ns:"exportxlsx",lng:"en",resources:{friendlyName:"Excel (*.xlsx)",settings:{EnableToggles:{label:"EnableToggles",category:"Misc"},MultiSheet:{label:"MultiSheet",category:"Misc"},OutputFormat:{label:"OpenXmlStandard",category:"Misc",enum:{OpenXmlTransitional:"Transitional",OpenXmlStrict:"Strict"}},LayoutMode:{label:"LayoutMode",category:"Misc",enum:{Galley:"Galley",Paginated:"Paginated"}},RightToLeft:{label:"RightToLeft",category:"Misc"},SheetName:{label:"SheetName",category:"Misc"},UseCompression:{label:"UseCompression",category:"Misc"},UseDefaultPalette:{label:"UseDefaultPalette",category:"Misc"},Orientation:{label:"PageOrientation",category:"PageSettings",enum:{Default:"Default",Portrait:"Portrait",Landscape:"Landscape"}},PaperSize:{label:"PaperSize",category:"PageSettings",enum:{Default:"Default",Letter:"Letter",LetterSmall:"LetterSmall",Tabloid:"Tabloid",Ledger:"Ledger",Legal:"Legal",Statement:"Statement",Executive:"Executive",A3:"A3",A4:"A4",A4Small:"A4Small",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"Password",category:"Security"},ProtectedBy:{label:"ProtectedBy",category:"Security"},ReadOnlyRecommended:{label:"ReadOnlyRecommended",category:"Security"},WritePassword:{label:"WritePassword",category:"Security"},AutoRowHeight:{label:"AutoRowHeight",category:"Misc"},DisplayGridLines:{label:"DisplayGridLines",category:"Misc"},OpenXmlStandard:{label:"OpenXmlStandard",category:"Misc",enum:{Transitional:"Transitional",Strict:"Strict"}},Pagination:{label:"Pagination",category:"Misc"}}}},{ns:"exportxml",lng:"en",resources:{friendlyName:"XML (*.xml)",settings:{Encoding:{label:"Encoding",category:"Misc",enum:{"UTF-8":"UTF-8",ASCII:"ASCII",Unicode:"Unicode"}}}}},{ns:"jsviewer",lng:"en",resources:{errors:{"bad-response-delayed":"Bad response delayed content","bad-response-doc":"Bad response export content","bad-response-report":"Bad response export content","bad-response-toc":"Failed getting table of contents",commandTextIsEmpty:"Command text is empty.",dataSetNotFound:"A DataSet {{dataSetName}} referenced in the report could not be found.",dataSetNotSpecified:"DataSet name needs to be specified in the Fixed Page Layout settings.",datasourceMissingElement:"Missing a required element in {{datasourceName}} shared data source XML document.","export-report":"Export report error.","ie-no-pdf-addon":"To enable printing for IE, please install and enable a PDF reader add-on.","ignore-disposition":"It is expected that the content will be displayed as embedded in the browser, but this will be ignored.",infinitePages:"Endless loop detected.",invalidColumnSpacing:"When Page (width is set in report PageSize) is divided into columns, the width of the column must be greater than zero and the column spacing.",invalidKeyInConnectionString:"Invalid key in connection string:{{invalidKey}}",InvalidReportFormat:"Report format is Invalid",invalidSharedDataSource:"The shared data source no longer exists or its content is invalid.",jsonDataSourceNotFound:"The json data source has not been found.","no-doc":"No document loaded.","no-doc-cur":"No current document!","no-fmt":"Invalid format key or module for {{format}} is not loaded.","no-params-refresh":"Refresh failed (not all parameters specified)","no-params-render":"Cannot render (not all parameters specified)","no-report":"Report not found: {{reportId}}","no-toc":"No TOC content.",noDataSets:"No data sets",noLicense:"No license","params-hidden":"Some hidden parameters are invalid.","print-report":"Print report error.",professionalRequired:"Professional license required.","render-doc":"Failed rendering document","report-open-details":"Cannot obtain report info","report-open-lbl":"Failed to open report",resourceNotFound:"Unable to load resource from:{{uri}}",scriptCompilationFailed:"Script compilation failed.",subreportNotFoundError:"Unable to locate subreport: {{subName}}",subreportNotSpecified:"Subreport name is not specified for a subreport report item {{itemName}}",trialExpired:"Trial period has been expired.","unknown-display":"Unknown display type {{displayType}}","unknown-event":"Unknown event was not processed","unknown-format":"Unsupported export type: '{{exportType}}'","unknown-response":"Unknown server response.",UnsupportedReportType:"Requested report type is unsupported"},panels:{export:"Export",parameters:"Parameters",reports:"Report list",toc:"Table of Contents"},toolbar:{"galley-mode":"Galley Mode","item-exist":'The item with the same key ("{{itemKey}}") already exists.',"mode-continious":"Continuous View","mode-single":"Single Page View","print-btn":"Print","print-preparing":"Preparing print..."}}},{ns:"params",lng:"en",resources:{"bool-true-label":"True","bool-false-label":"False",paramsTextInvalidValue:"Invalid Value",datePlaceholder:"Select Date..",daysViewHeaderFormat:"MMMM YYYY","date-clear":"Clear","date-today":"Today",ddpTextNull:"(null)",ddpTextSelectValue:"(select value)",ddpTextSelectAllValues:"(select all)",null:"Null","preview-btn-title":"Preview"}},{ns:"rdlxparams",lng:"en",resources:{TextHasOutstandingDependencies:"* Parameter has outstanding dependencies",TextNeedBoolean:"* Wrong value. Make sure that you enter a valid boolean",TextNoEmptyStrings:"* Wrong value. Empty strings are not allowed",TextMaxInteger:"* Value cannot exceed 32-bit integer",TextNeedInteger:"* Wrong value. Make sure that you enter a valid integer",TextNeedFloat:"* Wrong value. Make sure that you enter a valid float",TextNeedDateTime:"* Wrong value. Make sure that you enter a valid date",TextUnknownError:"! Unknown validation error",TextValueExpected:"* Value Expected",TextPickFromList:"* Wrong value. Pick the right one from the list",TextSingleValueExpected:"* Single value expected",TextNoNull:"* Value cannot be null"}},{ns:"viewer",lng:"en",resources:{error:{details:"Details",dismiss:"Dismiss","dismiss-all":"Dismiss All"},"cancel-btn":"Cancel",toolbar:{"zoom-fitwidth":"Fit to Width","zoom-fitpage":"Fit Page","zoom-zoomout":"Zoom Out","zoom-zoomin":"Zoom In","zoom-menu-header":"Zoom Mode",gotofirst:"Go To First",gotoprevious:"Go To Previous",gotonext:"Go To Next",gotolast:"Go To Last","hist-parent":"History: Back To Parent","hist-back":"History: Go Back","hist-fwd":"History: Go Forward",movetool:"Move Tool",fullscreen:"Toggle Fullscreen",refresh:"Refresh",cancel:"Cancel"},errors:{noHostElement:"Cannot find the host element."},progress:{page:"Page"},search:{"match-case":"Match Case","whole-word":"Whole word","cancel-btn":"Cancel","start-search-btn":"Search","clear-btn":"Clear","more-results-btn":"More Results","search-results":"Search Results","search-cancelled-msg":"Search cancelled on page {{page}}","didn-find-msg":"Didn't find anything.",paneltitle:"Search"}}}]},function(e){e.exports=[{ns:"export",lng:"ja",resources:{emptyTextPlaceholder:"<空>",boolTextFalse:"いいえ",boolTextTrue:"はい",nodocument:"ドキュメントが選択されていません","inprogress-lbl":"エクスポート中","cancel-btn":"キャンセル","file-format-label":"ファイル形式","start-btn":"エクスポート"}},{ns:"exportcsv",lng:"ja",resources:{friendlyName:"CSVファイル(*.csv)",settings:{ColumnsDelimiter:{label:"区切り文字",category:"その他"},Encoding:{label:"エンコーディング",category:"その他",enum:{"utf-8":"UTF-8","us-ascii":"ASCII","utf-16":"Unicode"}},NoHeader:{label:"ヘッダー行を除く",category:"その他"},QuotationSymbol:{label:"テキスト修飾子",category:"その他"},RowsDelimiter:{label:"改行コード",category:"その他"}}}},{ns:"exportdoc",lng:"ja",resources:{friendlyName:"Word 2003 文書 (*.doc)",settings:{Author:{label:"作成者",category:"その他"},BaseHref:{label:"ベースURL",category:"その他"},Generator:{label:"生成元",category:"その他"},PageHeight:{label:"ページの高さ",category:"その他"},PageWidth:{label:"ページの幅",category:"その他"},Title:{label:"タイトル",category:"その他"}}}},{ns:"exportdocx",lng:"ja",resources:{friendlyName:"Word 文書 (*.docx)",settings:{Author:{label:"作成者",category:"その他"},CompanyName:{label:"会社名",category:"その他"},DocumentCompatibilityVersion:{label:"Wordのバージョン",category:"その他",enum:{Word2007:"Word 2007",Word2010:"Word 2010",Word2013:"Word 2013"}},DpiX:{label:"水平解像度",category:"その他"},DpiY:{label:"垂直解像度",category:"その他"},Orientation:{label:"ページの向き",category:"ページ設定",enum:{Default:"既定値",Portrait:"縦",Landscape:"横"}},PaperSize:{label:"用紙サイズ",category:"ページ設定",enum:{Default:"既定値",Letter:"レター",LetterSmall:"レター(小)",Tabloid:"タブロイド",Ledger:"レジャー",Legal:"リーガル",Statement:"ステイトメント",Executive:"エグゼクティヴ",A3:"A3",A4:"A4",A4Small:"A4(小)",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"読み取りパスワード",category:"セキュリティ"},ReadOnlyRecommended:{label:"読み取り専用",category:"セキュリティ"},WritePassword:{label:"書き込みパスワード",category:"セキュリティ"},Title:{label:"タイトル",category:"その他"},TOCAutoUpdate:{label:"目次を自動更新",category:"その他"}}}},{ns:"exportjson",lng:"ja",resources:{friendlyName:"JSONファイル (*.json)",settings:{Formatted:{label:"整形する",category:"その他"},QuotePropertyNames:{label:"引用符で囲む",category:"その他"}}}},{ns:"exportmht",lng:"ja",resources:{friendlyName:"Web ページ (*.mht)",settings:{Fragment:{label:"Bodyコンテンツのみ",category:"出力"},OutputTOC:{label:"目次を出力する",category:"出力"},LinkTarget:{label:"リンクターゲット",category:"描画"},Mode:{label:"レイアウトモード",category:"描画",enum:{Galley:"ゲラモード",Paginated:"ページモード"}},BookmarkStyle:{label:"ブックマークの形式",category:"その他",enum:{Html:"Html",None:"なし"}},CharacterSet:{label:"文字セット",category:"その他",enum:{Big5:"Big5",EucJp:"EucJp",HzGb2312:"HzGb2312",Ibm850:"Ibm850",Iso2022Jp:"Iso2022Jp",Iso8859_1:"Iso8859_1",Iso8859_2:"Iso8859_2",Iso8859_5:"Iso8859_5",Iso8859_6:"Iso8859_6",Koi8r:"Koi8r",Ksc5601:"Ksc5601",ShiftJis:"ShiftJis",UnicodeUtf16:"UnicodeUtf16",UnicodeUtf8:"UnicodeUtf8"}},CreateFramesetPage:{label:"フレーム表示",category:"その他"},IncludeHtmlHeader:{label:"ヘッダを含める",category:"その他"},IncludePageMargins:{label:"余白を含める",category:"その他"},MultiPage:{label:"複数ページ",category:"その他"},OutputType:{label:"HTMLの種類",category:"その他",enum:{DynamicHtml:"Dynamic Html",LegacyHtml:"Legacy Html"}},Pagination:{label:"ページネーション",category:"その他"},RemoveVerticalSpace:{label:"縦方向の余白を削除する",category:"その他"},Title:{label:"タイトル",category:"その他"}}}},{ns:"exportpdf",lng:"ja",resources:{application:"GrapeCity ActiveReports for .NET",friendlyName:"PDFファイル (*.pdf)",settings:{Title:{label:"タイトル",category:"その他"},Author:{label:"作成者",category:"その他"},Subject:{label:"サブタイトル",category:"その他"},Keywords:{label:"キーワード",category:"その他"},Application:{label:"アプリケーション",category:"その他"},EmbedFonts:{label:"フォント埋め込み",category:"その他",enum:{Partial:"ASCII以外",All:"すべて",None:"なし"}},Version:{label:"バージョン",category:"その他",enum:{Pdf12:"PDF-1.2",Pdf13:"PDF-1.3",Pdf14:"PDF-1.4",Pdf15:"PDF-1.5",Pdf16:"PDF-1.6",Pdf17:"PDF-1.7",PdfA1a:"PDF/A-1a",PdfA1b:"PDF/A-1b",PdfA2a:"PDF/A-2a",PdfA2b:"PDF/A-2b",PdfA2u:"PDF/A-2u",PdfA3a:"PDF/A-3a",PdfA3b:"PDF/A-3b",PdfA3u:"PDF/A-3u",PdfUA1:"PDF/UA-1"}},UserPassword:{label:"ユーザーパスワード",category:"セキュリティ設定"},OwnerPassword:{label:"オーナーパスワード",category:"セキュリティ設定"},Encrypt:{label:"暗号化",category:"セキュリティ設定"},ConvertMetaToPng:{label:"PNGファイルに変換",category:"その他"},ExportBookmarks:{label:"ブックマークを出力",category:"その他"},ImageInterpolation:{label:"画像の補間値",category:"その他",enum:{Auto:"有効",None:"無効"}},ImageQuality:{label:"画像の品質",category:"その他",enum:{Medium:"中",Lowest:"低",Highest:"高"}}}}},{ns:"exportrtf",lng:"ja",resources:{friendlyName:"リッチテキスト形式 (*.rtf)",settings:{EnableShapes:{label:"図形を出力する",category:"その他"},Pagination:{label:"ページネーション",category:"その他"}}}},{ns:"exporttiff",lng:"ja",resources:{friendlyName:"TIFF画像 (*.tiff)",settings:{Compression:{label:"圧縮方法",category:"その他",enum:{None:"なし",Rle:"RLE",Ccitt3:"CCITT3",Ccitt4:"CCITT4",Lzw:"LZW"}},Dither:{label:"ディザリング",category:"その他"},DpiX:{label:"水平解像度",category:"その他"},DpiY:{label:"垂直解像度",category:"その他"},Pagination:{label:"ページネーション",category:"その他"},CompressionScheme:{label:"圧縮方法",category:"その他",enum:{None:"なし",Rle:"RLE",Ccitt3:"CCITT3",Ccitt4:"CCITT4",Lzw:"LZW"}}}}},{ns:"exporttxt",lng:"ja",resources:{friendlyName:"テキスト文書 (*.txt)",settings:{Encoding:{label:"エンコーディング",category:"その他",enum:{"utf-8":"UTF-8","us-ascii":"ASCII","utf-16":"Unicode"}},PageDelimiter:{label:"ページ区切り",category:"その他"},QuotationSymbol:{label:"テキスト修飾子",category:"その他"},TextDelimiter:{label:"区切り文字",category:"その他"},SuppressEmptyLines:{label:"空白行を抑制",category:"その他"}}}},{ns:"exportxls",lng:"ja",resources:{friendlyName:"Excel 2003 ブック (*.xls)",settings:{EnableToggles:{label:"アウトライン表示",category:"その他"},MultiSheet:{label:"複数シート",category:"その他"},LayoutMode:{label:"レイアウトモード",category:"その他",enum:{Galley:"ゲラモード",Paginated:"ページモード"}},RightToLeft:{label:"右から左に表示",category:"その他"},SheetName:{label:"シート名",category:"その他"},UseDefaultPalette:{label:"Excelパレット",category:"その他"},Orientation:{label:"ページの向き",category:"ページ設定",enum:{Default:"既定値",Portrait:"縦",Landscape:"横"}},PaperSize:{label:"用紙サイズ",category:"ページ設定",enum:{Default:"既定値",Letter:"レター",LetterSmall:"レター(小)",Tabloid:"タブロイド",Ledger:"レジャー",Legal:"リーガル",Statement:"ステイトメント",Executive:"エグゼクティヴ",A3:"A3",A4:"A4",A4Small:"A4(小)",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"読み取りパスワード",category:"セキュリティ"},ProtectedBy:{label:"管理者",category:"セキュリティ"},ReadOnlyRecommended:{label:"読み取り専用",category:"セキュリティ"},WritePassword:{label:"書き込みパスワード",category:"セキュリティ"},AutoRowHeight:{label:"行の高さ調節",category:"その他"},DisplayGridLines:{label:"グリッド線の表示",category:"その他"},Pagination:{label:"ページネーション",category:"その他"},FileFormat:{label:"ファイル形式",category:"その他",enum:{Xls97Plus:"Excel 97 以降",Xls95:"Excel 95"}}}}},{ns:"exportxlsx",lng:"ja",resources:{friendlyName:"Excel ブック (*.xlsx)",settings:{EnableToggles:{label:"アウトライン表示",category:"その他"},MultiSheet:{label:"複数シート",category:"その他"},OutputFormat:{label:"Open XML適合レベル",category:"その他",enum:{OpenXmlTransitional:"移行型 (Transitional)",OpenXmlStrict:"厳密型 (Strict)"}},LayoutMode:{label:"レイアウトモード",category:"その他",enum:{Galley:"ゲラモード",Paginated:"ページモード"}},RightToLeft:{label:"右から左に表示",category:"その他"},SheetName:{label:"シート名",category:"その他"},UseCompression:{label:"圧縮する",category:"その他"},UseDefaultPalette:{label:"Excelパレット",category:"その他"},Orientation:{label:"ページの向き",category:"ページ設定",enum:{Default:"既定値",Portrait:"縦",Landscape:"横"}},PaperSize:{label:"用紙サイズ",category:"ページ設定",enum:{Default:"既定値",Letter:"レター",LetterSmall:"レター(小)",Tabloid:"タブロイド",Ledger:"レジャー",Legal:"リーガル",Statement:"ステイトメント",Executive:"エグゼクティヴ",A3:"A3",A4:"A4",A4Small:"A4(小)",A5:"A5",B4:"B4",B5:"B5"}},Password:{label:"読み取りパスワード",category:"セキュリティ"},ProtectedBy:{label:"管理者",category:"セキュリティ"},ReadOnlyRecommended:{label:"読み取り専用",category:"セキュリティ"},WritePassword:{label:"書き込みパスワード",category:"セキュリティ"},AutoRowHeight:{label:"行の高さ調節",category:"その他"},DisplayGridLines:{label:"グリッド線の表示",category:"その他"},OpenXmlStandard:{label:"Open XML適合レベル",category:"その他",enum:{Transitional:"移行型 (Transitional)",Strict:"厳密型 (Strict)"}},Pagination:{label:"ページネーション",category:"その他"}}}},{ns:"exportxml",lng:"ja",resources:{friendlyName:"XMLドキュメント (*.xml)",settings:{Encoding:{label:"エンコーディング",category:"その他",enum:{"UTF-8":"UTF-8",ASCII:"ASCII",Unicode:"Unicode"}}}}},{ns:"jsviewer",lng:"ja",resources:{errors:{"bad-response-delayed":"不正なレスポンス(コンテンツ遅延)","bad-response-doc":"不正なレスポンス(ドキュメント)","bad-response-report":"不正なレスポンス(レポート)","bad-response-toc":"目次を取得できません。",commandTextIsEmpty:"コマンドテキストが空です。",dataSetNotFound:"レポートで参照されているデータセット '{dataSetName}' が見つかりませんでした。",dataSetNotSpecified:"ページレイアウトの設定で、データセット名を設定してください。",datasourceMissingElement:"共有データソースのXMLドキュメント内に必須要素 {datasourceName} が見つかりません。","export-report":"エクスポートエラー","ie-no-pdf-addon":"印刷を有効にするには、Internet ExplorerのアドオンでPDFリーダーを有効にしてください。","ignore-disposition":"コンテンツがブラウザに埋め込まれた状態で表示されることを想定していますが、正しく表示されない可能性があります。",infinitePages:"無限ループが検出されました。",invalidColumnSpacing:"Columnsプロパティを設定してカラム形式のレイアウトを作成する場合、カラムの幅を0より大きい値、かつ、ColumnSpacingよりも大きい値に設定してください。",invalidKeyInConnectionString:"接続文字列のキーが無効です。: {invalidKey}",InvalidReportFormat:"レポート形式が無効です。",invalidSharedDataSource:"共有データソースが存在しなくなっているか、またはその内容が無効です。",jsonDataSourceNotFound:"Jsonデータソースが見つかりませんでした。","no-doc":"ドキュメントが読み込まれていません。","no-doc-cur":"現在のドキュメントはありません。","no-fmt":"無効なフォーマットキー、または、{{format}} のモジュールがロードされていません。","no-params-refresh":"更新できません(パラメータが指定されていません)。","no-params-render":"描画できません(パラメータが指定されていません)。","no-report":"レポートが見つかりません。: {{reportId}}","no-toc":"目次がありません。",noDataSets:"データセットがありません。",noLicense:"ライセンスがありません。","params-hidden":"非表示のパラメータに無効なものがあります。","print-report":"印刷できません。",professionalRequired:"Professionalのライセンスが必要です。","render-doc":"ドキュメントを描画できません。","report-open-details":"レポート情報を取得できません。","report-open-lbl":"レポートを開けません。",resourceNotFound:"リソースを読み込めません。",scriptCompilationFailed:"スクリプトのコンパイル失敗。",subreportNotFoundError:"サブレポートが見つかりません。: {{subName}}",subreportNotSpecified:"サブレポートのレポートアイテム '{{itemName}}' のサブレポート名が指定されていません。",trialExpired:"トライアル版の使用期間が終了しました。","unknown-display":"不明な表示形式です。: {{displayType}}","unknown-event":"不明なイベントが処理されませんでした。","unknown-format":"不明な形式です。","unknown-response":"不明なサーバーレスポンスです。",UnsupportedReportType:"要求されたレポート形式はサポートされていません。"},panels:{export:"エクスポート",parameters:"パラメータ",reports:"レポート一覧",toc:"目次"},toolbar:{"galley-mode":"ゲラモード","item-exist":'同じキーのアイテム ("{{itemKey}}") がすでに存在します。',"mode-continious":"連続ページ","mode-single":"単一ページ","print-btn":"印刷...","print-preparing":"印刷の準備..."}}},{ns:"params",lng:"ja",resources:{"bool-true-label":"はい","bool-false-label":"いいえ",paramsTextInvalidValue:"無効な値",datePlaceholder:"日付を選択してください..",daysViewHeaderFormat:"YYYY年MM月","date-clear":"クリア","date-today":"今日",ddpTextNull:"(null)",ddpTextSelectValue:"(値を選択してください)",ddpTextSelectAllValues:"(すべて選択)",null:"Null","preview-btn-title":"プレビュー"}},{ns:"rdlxparams",lng:"ja",resources:{TextHasOutstandingDependencies:"* パラメータに未解決の依存関係があります",TextNeedBoolean:"* 値が無効です 有効なブール値を入力してください",TextNoEmptyStrings:"* 値が無効です 入力した値が有効であることを確認してください",TextMaxInteger:"* 値は32ビット整数を超えることはできません",TextNeedInteger:"* 値が無効です 有効な整数を入力してください",TextNeedFloat:"* 値が無効です 有効な浮動小数点数を入力してください",TextNeedDateTime:"* 値が無効です 有効な日付を入力してください",TextUnknownError:"! 不明なエラー",TextValueExpected:"* 期待値",TextPickFromList:"* 値が無効です リストから正しい値を選択してください",TextSingleValueExpected:"* 単一値が期待される値に複数値が検出されました",TextNoNull:"* 値をnullにすることはできません"}},{ns:"viewer",lng:"ja",resources:{error:{details:"詳細表示",dismiss:"通知を削除","dismiss-all":"全ての通知を削除"},"cancel-btn":"キャンセル",toolbar:{"zoom-fitwidth":"ページ幅","zoom-fitpage":"ページ全体","zoom-zoomout":"縮小","zoom-zoomin":"拡大","zoom-menu-header":"ズーム",gotofirst:"先頭ページ",gotoprevious:"前ページ",gotonext:"次ページ",gotolast:"最終ページ","hist-parent":"親レポートに戻る","hist-back":"戻る","hist-fwd":"進む",movetool:"移動",fullscreen:"フルスクリーン",refresh:"更新",cancel:"キャンセル"},errors:{noHostElement:"指定されたHTML要素が見つかりません"},progress:{page:"ページ"},search:{"match-case":"大文字と小文字を区別","whole-word":"単語単位で検索","cancel-btn":"キャンセル","start-search-btn":"検索","clear-btn":"クリア","more-results-btn":"さらに検索結果を表示","search-results":"検索結果","search-cancelled-msg":"{{page}}ページで検索をキャンセルしました","didn-find-msg":"一致する情報が見つかりませんでした",paneltitle:"検索"}}}]},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var l=a(n(135)),c=n(0),u=n(102),d=n(145),p=n(56),f=n(314),h=n(149),g=n(74),m=s(n(44)),v=n(104),y=n(15),b=a(n(60)),w=n(72),_=function(){return function(e){this.state=e}}();t.ChangedEventArgs=_;var S=function(){return function(e){this.document=e}}();t.DocumentOpenedEventArgs=S;var x=function(){return function(e){this.view=e}}();t.DocumentViewOpenedEventArgs=x;var C=function(){function e(e,t,n,o){var i=this;this._stateChangeEvent=v.EventFan.createFor(),this._documentViewOpenedEvent=v.EventFan.createFor(),this._documentOpenedEvent=v.EventFan.createFor(),this._documentProgressEvent=v.EventFan.createFor(),this._menuPanelChangeEvent=v.EventFan.createFor(),this._disposables=v.EventFan.createFor(),this.handleClick=function(e){var t=i._viewerState.resolveAction(e);t&&i._viewerState.processAction(t)&&e.stopPropagation()},this.onMouseWheel=w.createMouseWheelHandler(function(){return i.zoom.mode===p.ZoomMode.Value?i.zoom.factor:1},function(e){return i.zoom={mode:p.ZoomMode.Value,factor:e}}),this.onDocViewRefUpdate=w.createSafariPitchRef(function(){return i.zoom.mode===p.ZoomMode.Value?i.zoom.factor:1},function(e){return i.zoom={mode:p.ZoomMode.Value,factor:e}}),this._panelLastKey=234923,this._cancelTaskRequested=!1,this.processCommand=function(e){return i._viewerState.handleViewerCmd(e)},this.processCustomAction=function(e){return i._viewerState.processAction(e)},this.processAction=function(e){return i._viewerState.processAction(e)},this.toggleSidebar=function(e){var t=i._viewerState.viewSettings.isSidebarVisible,n=void 0!==e?e:!t;t!==n&&i._viewerState.updateUi({type:"UpdateSidebarVisibility",payload:{isVisible:n}})},null!=o||b.default.isInitialized||b.default.init({lng:"en",defaultNS:"viewer"}),this.i18n=(o||b.default).cloneInstance({fallbackLng:"en",defaultNS:"viewer"}),null!=o&&this.i18n.changeLanguage(o.language);var a="string"==typeof e?document.querySelector(e):e instanceof Element?e:e&&e.jquery?e[0]:null;if(null==a)throw new Error(this.i18n.t("errors.noHostElement","Cannot find the host element."));this._hostElement=a;var s=new h.ReactStateBinder(new g.Store({},function(){return{}}));this._viewerState=new f.ViewerState(function(e){var t=new _(e);i._stateChangeEvent.trigger(t)},function(e){var t=new S(e);i._documentOpenedEvent.trigger(t)},function(e){var t=new x(e);i._documentViewOpenedEvent.trigger(t)},this._documentProgressEvent.trigger,this,s),this._progressStore=new g.Store(u.ProgressDialog.init(),u.ProgressDialog.reducer);var C=new h.ReactStateBinder(this._progressStore);this._panelsStore=new g.Store(u.PanelManager.init(),u.PanelManager.reducer),this._errorsStore=new g.Store(u.ErrorPanel.init(),u.ErrorPanel.reducer);var k,O,P,T,M,D=new h.ReactStateBinder(this._panelsStore),j=new h.ReactStateBinder(this._errorsStore),L=null;this._panelsOnSidebar=t&&"sidebar"==t.PanelsLocation||!1;var N=t&&t.RenderTopPanel||null,E=null,A=c.render(c.h("div",{className:"gc-app gc-viewer"},this._panelsOnSidebar||c.h("div",{className:"gcv-menu",ref:function(e){return T=e}},c.h(u.PanelManager.MenuView,r({},D.connect,{viewer:this,onPanelChange:this._menuPanelChangeEvent.trigger}))),c.h("div",{className:"gcv-main-view",ref:function(e){return k=e}},c.h("div",{className:"gcv-header-container",ref:function(e){return O=e}},c.h(u.ToolbarView,{ref:function(e){i._toolbar=new d.Toolbar(e)},viewer:this,i18n:this.i18n}),c.h("div",{id:"sidebarToggle",ref:function(e){return M=e}})),N&&c.h("div",{className:"gcv-toppanel",ref:function(e){return E=e}}),c.h("div",{className:"gcv-error-panel"},c.h(u.ErrorPanel.View,r({},j.connect,{i18n:this.i18n}))),c.h("div",{className:"gcv-document-view",ref:function(e){L=e,i.onDocViewRefUpdate(L)},onWheel:this.onMouseWheel},null==n&&c.h(u.DocumentViewer.View,r({},s.connect,{dispatchViewerCmd:this._viewerState.handleViewerCmd,onClick:this.handleClick}))),c.h("div",{className:"gcv-progress-dialog"},c.h(u.ProgressDialog.View,r({},C.connect,{onCancel:function(){i._cancelTaskRequested=!0},i18n:this.i18n}))),!this._panelsOnSidebar||c.h("div",{className:"gcv-sidebar",ref:function(e){return P=e}},c.h(u.PanelManager.SidebarView,r({},D.connect,{viewer:this,onPanelChange:this._menuPanelChangeEvent.trigger}))))),a);if(null!=n){if(null==L)throw new Error("");n(s.connect,this._viewerState.handleViewerCmd,this.handleClick,L)}null!=N&&null!=E&&N(E,this),this._errorHandler=t&&t.ErrorHandler||function(){return!1},m.register(this,this._viewerState.highlight,this.i18n),this.onViewerStateChange.register(function(e){return function(e){if(k.className=l.default("gcv-main-view",{"gcv-main-view--fullscreen":e.isFullscreen}),T&&(T.className=l.default("gcv-menu",{"gcv-menu--hidden":e.isFullscreen||!e.isSidebarVisible})),P){var t=!e.isFullscreen&&e.isSidebarVisible;P.className=l.default("gcv-sidebar",{"gcv-sidebar--hidden":!t}),M.className=l.default({"gcv-sidebar--hidden":!t})}O.className=l.default("gcv-header-container",{"gcv-header-container--fullscreen":e.isFullscreen},{"gcv-header-container--hidden":!e.isToolbarVisible})}(e.state.settings)});var V=function(){return i._viewerState.toggleNarrowScreen(window.innerWidth<=768)};window.addEventListener("resize",V),this._disposables.event.register(function(){return window.removeEventListener("resize",V)}),this._disposables.event.register(function(){A.parentNode&&A.parentNode.removeChild(A)});var I=new y.FocusTimer;this._disposables.event.register(I.cleanup)}return e.prototype.dispose=function(){this._disposables.trigger(null)},e.prototype.setPlugin=function(e){this._viewerState.setPlugin(e)},e.prototype.executeTask=function(e,t){var n=this,r=t&&t.title||"",o=!!t&&!!t.supportCancel,i={onProgress:function(e){return n._progressStore.dispatch({type:"setProgress",payload:{isOpen:!0,message:n.i18n.t("progress.page","Page")+" "+e+"..."}})},isCancelRequested:function(){return n._cancelTaskRequested}};return this._cancelTaskRequested=!1,this._progressStore.dispatch({type:"init",payload:{title:r,showCancel:o}}),this._progressStore.dispatch({type:"setProgress",payload:{isOpen:!0,message:""}}),e(i).catch(function(e){return n.reportError({message:e})}).then(function(){return n._progressStore.dispatch({type:"setProgress",payload:{isOpen:!1}})})},e.prototype.createPanel=function(e,t,n,r){var o=r.icon,i=r.description,a=r.visible,s=r.enabled,l=r.label,c=""+(this._panelLastKey=1103515245*this._panelLastKey%1073741824);return this._panelsStore.dispatch({type:"Register-Panel",payload:{panelId:c,key:n,settings:{label:l||n,icon:o||"",description:i||l||n,visible:null==a||a,enabled:null==s||s},component:e,binder:t}}),{id:c}},e.prototype.showPanel=function(e,t){void 0===t&&(t=!0),this.updatePanel(e,{visible:t})},e.prototype.updatePanel=function(e,t){!1!==t.visible||this._panelsOnSidebar||y.API.menu.panels.close(e.id),this._panelsStore.dispatch({type:"update-panel",payload:{panelId:e.id,settings:t}})},e.prototype.getPanelState=function(e){var t=this._panelsStore.state,n=t.panels.findIndex(function(t){return t.hash===e.id});return n>=0?t.panels[n].settings:null},e.prototype.layoutPanels=function(e){this._panelsStore.dispatch({type:"set-layout",payload:{layout:e}})},e.prototype.bringPanelToFront=function(e){var t=this;setTimeout(function(){t._panelsOnSidebar?y.API.sidebar.open(e.id):y.API.menu&&y.API.menu.panels.open(e.id)})},e.prototype.bindPanel=function(e,t){var n=this._panelsStore.state.panels.find(function(t){return t.hash==e.id});if(!n)throw new Error("No panel with such name.");n.binder.bind(t)},e.prototype.closePanelOnNarrowScreen=function(e){this.viewerState.settings.narrowScreen&&(y.API.menu&&y.API.menu.collapse(),y.API.sidebar&&y.API.sidebar.close())},e.prototype.reportError=function(e){var t={message:e.message,details:e.details||"",severity:e.severity||"error"};this._errorHandler&&this._errorHandler(t)||("error"===e.severity&&console.error(e.message,e),this._errorsStore.dispatch({type:"AddError",payload:t}))},Object.defineProperty(e.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errorHandler",{get:function(){return this._errorHandler},set:function(e){this._errorHandler=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentOpen",{get:function(){return this._documentOpenedEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentViewOpen",{get:function(){return this._documentViewOpenedEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDocumentProgress",{get:function(){return this._documentProgressEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onViewerStateChange",{get:function(){return this._stateChangeEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tempOnPanelChange",{get:function(){return this._menuPanelChangeEvent.event},enumerable:!0,configurable:!0}),e.prototype.resetDocument=function(){return this._viewerState.resetDocument()},e.prototype.load=function(e,t){return this._viewerState.load(e,t)},e.prototype.open=function(e){return this._viewerState.open(e)},Object.defineProperty(e.prototype,"toolbar",{get:function(){return this._toolbar},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewerState",{get:function(){return this._viewerState.viewState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewMode",{get:function(){return this._viewerState.viewSettings.mode},set:function(e){this._viewerState.updateUi({type:"UpdateView",payload:{mode:e}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoom",{get:function(){return this._viewerState.viewSettings.zoom},set:function(e){this._viewerState.updateUi({type:"UpdateZoom",payload:{zoom:e}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mouseMode",{get:function(){return this._viewerState.viewSettings.mouseMode},set:function(e){this._viewerState.updateUi({type:"UpdateMouseMode",payload:{mode:e}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commandStatus",{get:function(){return this._viewerState.commandStatus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isFullscreen",{get:function(){return this._viewerState.viewSettings.isFullscreen},enumerable:!0,configurable:!0}),e.prototype.toggleFullscreen=function(e){var t=this._viewerState.viewSettings.isFullscreen,n=void 0!==e?e:!t;t!==n&&this._viewerState.updateUi({type:"UpdateFullscreen",payload:{isFullscreen:n}})},Object.defineProperty(e.prototype,"isToolbarHidden",{get:function(){return this._viewerState.viewSettings.isFullscreen},enumerable:!0,configurable:!0}),e.prototype.toggleToolbar=function(e){var t=this._viewerState.viewSettings.isToolbarVisible,n=void 0!==e?e:!t;t!==n&&this._viewerState.updateUi({type:"UpdateToolbarVisibility",payload:{isVisible:n}})},Object.defineProperty(e.prototype,"document",{get:function(){return this._viewerState.documentView},enumerable:!0,configurable:!0}),e.prototype.search=function(e,t,n,r){var a=e.text,s=e.matchCase,l=e.wholeWord,c=e.searchBackward,u=e.startPage;return o(this,void 0,void 0,function(){var e,o,d;return i(this,function(i){return e={Text:a,MatchCase:!!s,SearchBackward:!!c,WholeWord:!!l},o=null==u?c?m.SearchResult.PastEnd:m.SearchResult.BeforeBegin:m.SearchResult.MakePageStart(u),d=this._viewerState.documentView,[2,m.search(d,e,o,t,n,r)]})})},e.prototype.highlight=function(e){return this._viewerState.highlight(e)},e}();t.ReportViewer=C},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(43),c=n(136),u=n(300),d=n(301),p=function(e){function t(){var t=e.call(this)||this;return t.setState(c.init()),t}return o(t,e),t.prototype.render=function(){var e=this.state,t=e.settings,n=e.session,r=n.pageIndex,o=n.pageCount,c=n.pageBuffer,p=n.progressMessage,f=n.status,h=n.highlightPage,g={pageIndex:r,pageCount:o,pageBuffer:c,progressMessage:p,status:f,scrollToSelector:n.scrollToSelector,scrollRequestNo:n.scrollRequestNo,dispatchVwr:this.props.dispatchViewerCmd,settings:t,highlightPage:h,onClick:this.props.onClick};if(f===l.ViewerStatus.Loading&&0===o)return a.h("div",{style:{textAlign:"center"}},a.h(s.ProgressBar,{color:"accent",transparent:"full",size:"small",indeterminate:!0}));switch(t.mode){case l.ViewMode.Continuous:return a.h(u.ContinuousView,i({},g));default:return a.h(d.SinglePageView,i({},g))}},t}(a.Component);t.View=p},function(e,t,n){(function(t){(function(){var n,r,o,i,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,i=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,n(297))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=s(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r={"./ja":137,"./ja.js":137,"./zh-cn":138,"./zh-cn.js":138};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=299},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(139),l=n(43),c=n(72),u=n(140);var d=function(e){function t(t){var n,r,o,i=e.call(this,t)||this;return i._lastScrollRequestNo=0,i._moveHandler=null,i.getVisiblePageIndex=function(){var e=i,t=e._pageCoords,n=e.state,r=n.scrollTopPosition,o=n.viewportHeight,a=r,s=a+o,l=t.reduce(function(e,t,n){return t.bottom>=a&&t.top<=s?e.concat([n]):e},[]);if(0===l.length)return-1;if(l.length>1){for(var c=a+(s-a)/2,u=function(e){return Math.abs(e-c)},d=l[0],p=1;p<l.length;p++)u(t[l[p]].top)<u(t[d].top)&&(d=l[p]);return d}return l[0]},i.onResize=function(){i.setState({viewportWidth:i._view.clientWidth,viewportHeight:i._view.clientHeight})},i.onScroll=function(){if(i._view)if(i.setState({scrollTopPosition:i._view.scrollTop}),i.state.scrollingToPage)i.setState({scrollingToPage:!1});else{var e=i.props.pageIndex,t=i.getVisiblePageIndex();-1!==t&&t!==e&&i.setCurrentPage(t)}},i.onClick=function(e){return i.props.onClick(e)},i.onScroll=(n=i.onScroll,r=200,function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];clearTimeout(o),o=window.setTimeout(function(){return n.apply(e,t)},r)}),i.state={viewportHeight:0,viewportWidth:0,scrollTopPosition:0,scrollingToPage:!1},i._pageCoords=[],i}return o(t,e),t.prototype.checkMouseMode=function(){this._view&&(this.props.settings.mouseMode!==l.MouseMode.Move||this._moveHandler?this.props.settings.mouseMode===l.MouseMode.Select&&this._moveHandler&&(this._moveHandler.dispose(),this._moveHandler=null):this._moveHandler=u.createMoveHandler(this._view))},t.prototype.componentDidMount=function(){this.setState({scrollTopPosition:this._view.scrollTop,viewportHeight:this._view.clientHeight,viewportWidth:this._view.clientWidth}),window.addEventListener("resize",this.onResize),this.fetchPagesIfNew(null,this.props),this.checkMouseMode()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this._moveHandler&&this._moveHandler.dispose()},t.prototype.componentDidUpdate=function(e){var t=this._view,n=this.props,r=n.pageCount,o=n.settings.zoom;if(this._pageCoords.length!==r||e.settings.zoom!==o){var i=[];t.querySelectorAll("div").forEach(function(e){var t=e.getAttribute("data-page");t&&(i[parseInt(t,10)]={top:e.offsetTop,bottom:e.offsetTop+e.offsetHeight})}),this._pageCoords=i}var a=this.props,s=a.pageIndex,l=a.scrollToSelector,c=a.scrollRequestNo;if(t&&c>this._lastScrollRequestNo){if(this._lastScrollRequestNo=c,l){var u=this._view.querySelector(l);u&&u.scrollIntoView(!1)}if(e.pageIndex!==s){var d=t.querySelector("#page_"+s);d&&(this.setState({scrollingToPage:!0}),t.scrollTop=d.offsetTop)}}this.checkMouseMode(),this.fetchPagesIfNew(e,this.props)},t.prototype.fetchPagesIfNew=function(e,t){var n=function(e){return[Math.max(0,e.pageIndex-4),Math.min(e.pageIndex+4,e.pageCount)]},r=e?n(e):[0,0],o=n(t);r[0]===o[0]&&r[1]===o[1]||this.props.dispatchVwr({type:"FetchPages",payload:{startPage:o[0],pageCount:o[1]-o[0]}})},t.prototype.setCurrentPage=function(e){this.props.dispatchVwr({type:"SetCurrentPage",payload:{pageIndex:e}})},t.prototype.render=function(){for(var e=this,t=this.props,n=t.pageIndex,r=t.pageBuffer,o=t.pageCount,l=t.highlightPage,u=n>4?n-4:0,d=n<o-4-1?n+4:o-1,p=r.length>0&&r[0]&&r[0].size||void 0,f=c.getZoomFactor(this.props.settings.zoom,this.getPageSize()||p||null,this.getPageViewportSize()),h=[],g=0;g<o;g++){var m=null;g>=u&&g<=d&&(m=g<r.length?r[g]:null),null!=m&&null!=l&&l.pageIndex===g&&(m=i({},m,{data:l.pageView})),h.push(a.h(s.Page,{key:"page"+g,pageModel:m,pageIndex:g,zoomFactor:f,defaultPageSize:p}))}return a.h("div",{className:"gcv-pageview",ref:function(t){return e._view=t},onScroll:this.onScroll,onClick:this.onClick},h)},t.prototype.getPageSize=function(){var e=this.props,t=e.pageIndex,n=e.pageBuffer,r=e.pageCount,o=t>=0&&t<r?n[t]:null;return o?o.size:null},t.prototype.getPageViewportSize=function(){return{width:Math.max(this.state.viewportWidth-85,0),height:Math.max(this.state.viewportHeight-85,0)}},t}(a.Component);t.ContinuousView=d},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(139),l=n(43),c=n(72),u=n(140),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._view=null,t._lastScrollRequestNo=0,t._moveHandler=null,t.state={zoomFactor:1,viewportHeight:0,viewportWidth:0},t.onClick=function(e){return t.props.onClick(e)},t.setViewportSize=function(){t.setState({viewportWidth:t._view?t._view.clientWidth:0,viewportHeight:t._view?t._view.clientHeight:0})},t}return o(t,e),t.prototype.checkMouseMode=function(){this._view&&(this.props.settings.mouseMode!==l.MouseMode.Move||this._moveHandler?this.props.settings.mouseMode===l.MouseMode.Select&&this._moveHandler&&(this._moveHandler.dispose(),this._moveHandler=null):this._moveHandler=u.createMoveHandler(this._view))},t.prototype.componentDidMount=function(){this.setViewportSize(),window.addEventListener("resize",this.setViewportSize),this.checkMouseMode()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.setViewportSize),this._moveHandler&&this._moveHandler.dispose()},t.prototype.componentDidUpdate=function(){var e=this.props,t=e.scrollToSelector,n=e.scrollRequestNo,r=c.getZoomFactor(this.props.settings.zoom,this.getPageSize(),this.getPageViewportSize());if(r!==this.state.zoomFactor&&this.setState({zoomFactor:r}),t&&this._view&&n>this._lastScrollRequestNo){this._lastScrollRequestNo=n;var o=this._view.querySelector(t);o&&o.scrollIntoView(!1)}this.checkMouseMode()},t.prototype.render=function(){var e=this,t=this.props,n=t.pageIndex,r=t.pageCount,o=t.pageBuffer,l=t.highlightPage,c=null;if(n>=0&&n<r&&null!=o[n]){var u=o[n];null!=l&&l.pageIndex===n&&(u=i({},u,{data:l.pageView})),c=a.h(s.Page,{pageModel:u,pageIndex:n,zoomFactor:this.state.zoomFactor})}return a.h("div",{className:"gcv-pageview",ref:function(t){e._view=t},onClick:this.onClick},c)},t.prototype.getPageSize=function(){var e=this.props,t=e.pageIndex,n=e.pageBuffer,r=e.pageCount,o=t>=0&&t<r?n[t]:null;return o?o.size:null},t.prototype.getPageViewportSize=function(){return{width:Math.max(this.state.viewportWidth-85,0),height:Math.max(this.state.viewportHeight-85,0)}},t}(a.Component);t.SinglePageView=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(303);t.init=r.init,t.reducer=r.reducer;var o=n(304);t.View=o.View},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(27));function i(){return{errors:[],visible:!1}}t.init=i,t.reducer=function(e,t){switch(e.type){case"Clear":return{errors:[],visible:!1};case"Close":return o.default(t,{visible:{$set:!1}});case"AddError":var n=e.payload,r=n.message,i=n.details,a=n.severity;return o.default(t,{visible:{$set:!0},errors:{$push:[{message:r,details:i,severity:a}]}})}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(305),c=function(e){function t(t){var n=e.call(this,t)||this;return n.onDismissAll=function(){n.props.dispatch({type:"Clear",payload:{}}),n.setState({dismissedErrors:[]})},n.dismissError=function(e){return function(){var t=n.state,r=t.dismissedErrors;t.errors.length-r.length==1?n.onDismissAll():n.setState({dismissedErrors:n.state.dismissedErrors.concat([e])})}},n.state=i({},n.state,{dismissedErrors:[]}),n}return o(t,e),t.prototype.render=function(){var e=this,t=this.state,n=t.errors,r=t.visible,o=t.dismissedErrors,c=this.props.i18n;if(!r||0===n.length||o.length===n.length)return null;var u=n.length>2&&n.length-o.length>1,d={onClick:this.onDismissAll,text:c.t("error.dismiss-all","Dismiss All"),block:!0,textAlign:"center",width:"100%",accent:"full",customCSS:"gcv-error-list__dismiss-btn"};return a.h("div",{className:"gcv-error-list"},a.h("div",{className:"gcv-error-list__items"},n.reduce(function(t,n,r){return o.includes(r)?t:(t.push(a.h(l.ErrorView,{key:r,error:n,onDismiss:e.dismissError(r),i18n:c})),t)},[])),u&&a.h(s.Button,i({},d)))},t}(a.Component);t.View=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(73),s=n(0),l=n(15),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={expanded:!1},t.toggleExpand=function(){t.setState({expanded:!t.state.expanded})},t}return o(t,e),t.prototype.render=function(){var e=this.props,n=e.error,r=e.onDismiss,o=e.i18n,a=this.state.expanded,c={noFocus:!1,rounded:!0,text:o.t("error.details","Details"),onClick:this.toggleExpand,customCSS:"gcv-error__button"},u={noFocus:!1,rounded:!0,text:o.t("error.dismiss","Dismiss"),onClick:r,customCSS:"gcv-error__button"};return s.h("div",{className:t.styleMap[n.severity].className},s.h("div",{className:"gcv-error__main"},s.h("i",{className:"gcv-error__icon"},t.styleMap[n.severity].icon),s.h("h4",{className:"gcv-error__title"},n.message),s.h("div",{className:"gcv-error__controls"},n.details&&s.h(l.Button,i({},c)),s.h(l.Button,i({},u)))),a&&s.h("div",{className:"gcv-error__details"},n.details))},t.classModifierBase="gcv-error gcv-error--",t.styleMap={error:{icon:a.errorPanelIcons["alert-circle-outline"],className:t.classModifierBase+"error"},warn:{icon:a.errorPanelIcons["alert-outline"],className:t.classModifierBase+"warn"},info:{icon:a.errorPanelIcons["information-outline"],className:t.classModifierBase+"info"},debug:{icon:a.errorPanelIcons["bug-outline"],className:t.classModifierBase+"debug"}},t}(s.Component);t.ErrorView=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(141);t.init=r.init,t.reducer=r.reducer;var o=n(307);t.MenuView=o.MenuView,t.SidebarView=o.SidebarView},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),s=n(0),l=n(141),c=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[function(){}],n.onStateChanged=function(){var e=n.props.viewer.viewerState.settings.narrowScreen;e!==n.state.narrowScreen&&n.setState({narrowScreen:e})},n.state=i({},n.state,{narrowScreen:t.viewer.viewerState.settings.narrowScreen}),t.viewer.onViewerStateChange.register(n.onStateChanged),n}return o(t,e),t.prototype.componentDidMount=function(){var e=this;setTimeout(function(){a.API.menu&&(e._disposables=[a.API.menu.onTransition({end:e.props.viewer.toolbar.recalculateBounds})])},0)},t.prototype.componentWillUnmount=function(){this._disposables.forEach(function(e){return e()})},t.prototype.render=function(){var e=this.state,t=e.panels,n=e.layout,r=e.narrowScreen,o=this.props.onPanelChange;if(null==t||0===t.length)return null;var c={items:[],size:"large",mode:r?"drawer":"panel",pinned:!r&&void 0,hidePinBtn:r,onPanelChange:o},u=l.prefilterItems(t,n).map(function(e){if(e.separator)return s.h(a.MenuSplitter,null);if(null==e.item||!e.item.settings.visible)return null;var t=e.item,n=t.component,r=t.settings,o=r.icon,l=r.label,c=r.description,u=r.enabled,d=t.hash,p={id:d,toggle:{icon:"string"==typeof o?{type:"font",iconCssClass:"mdi mdi-"+o}:o,text:l,title:c},disabled:!u};return s.h(a.MenuPanel,i({key:d},p),n)});return s.h(a.Menu,i({},c),u)},t}(s.Component);t.MenuView=c;var u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.render=function(){var e=this.state,t=e.panels,n=e.layout,r=this.props.onPanelChange;if(null==t||0===t.length)return null;var o={onPanelChange:r,toggleRootId:"sidebarToggle"};return s.h(a.Sidebar,i({},o),l.prefilterItems(t,n).map(function(e){if(null==e.item)return null;var t=e.item,n=t.component,r=t.settings,o=r.icon,l=r.label,c=r.description,u=r.visible,d=r.enabled,p=t.hash;if(!u||!d)return null;var f={id:p,toggle:{icon:"string"==typeof o?{type:"font",iconCssClass:"mdi mdi-"+o}:o,text:l,title:c}};return s.h(a.SidebarPanel,i({key:p},f),n)}))},t}(s.Component);t.SidebarView=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(135)),l=n(0),c=n(71),u=n(143);var d=l.h("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},l.h("path",{d:"M6,2A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6M6,4H13V9H18V20H6V4M8,12V14H16V12H8M8,16V18H13V16H8Z"})),p=function(e){function t(t){var n,r,o,i=e.call(this,t)||this;return i._borderWidth=2,i._windowSize=8,i.getVisiblePageIndex=function(){var e=i,t=e._thumbnailLocations,n=e.state,r=n.scrollTopPosition,o=n.viewportHeight,a=r,s=a+o,l=t.reduce(function(e,t,n){return t.bottom>=a&&t.top<=s?e.concat([n]):e},[]);if(0===l.length)return-1;if(l.length>1){for(var c=a+(s-a)/2,u=function(e){return Math.abs(e-c)},d=l[0],p=1;p<l.length;p++)u(t[l[p]].top)<u(t[d].top)&&(d=l[p]);return d}return l[0]},i.onScroll=function(){var e=i,t=e._view,n=e.state.pageIndex,r=e._windowSize;i.props.dispatch({type:"ProcessScrollInfo",payload:{scrollTopPosition:t.scrollTop}});var o=i.getVisiblePageIndex();-1!==o&&o!==n&&i.props.viewer.processCommand({type:"FetchPages",payload:{startPage:o-r,pageCount:2*r+1}})},i.onResize=function(){i.props.dispatch({type:"ProcessScrollInfo",payload:{viewportHeight:i._view.clientHeight}})},i.onStateChange=function(e){if(e&&e.state&&e.state.session&&e.state.session.pageBuffer&&0!==e.state.session.pageBuffer.length){var t=e.state.session,n=t.pageCount,r=t.pageBuffer,o=t.pageIndex;i.state.pageCount<1&&n>0&&i.props.viewer.processCommand({type:"FetchPages",payload:{startPage:1,pageCount:i._windowSize+1}}),i.props.dispatch({type:"ProcessViewerState",payload:{pageBuffer:r,pageCount:n,pageIndex:o}})}},i.onThumbnailClick=function(e){return function(){i.props.viewer.processCommand({type:"GotoPage",payload:{pageIndex:e}})}},i.renderThumbnail=function(e,t){var n=i,r=n._borderWidth,o=n.state.pageIndex,a=t+1,c=s.default("viewer-thumbnail",{"viewer-thumbnail--selected":o===t}),u=e&&{width:"calc("+e.size.width+" + "+2*r+"px)",height:"calc("+e.size.height+" + "+2*r+"px)"}||void 0,d=e&&{width:e.originalSize.width,height:e.originalSize.height,transform:"scale("+e.scaleFactor+")",transformOrigin:"top left"}||void 0;return l.h("div",{key:"thumbnail"+t,className:c,style:u,"data-thumbnail":t,onClick:i.onThumbnailClick(t)},e&&l.h("div",{style:d,dangerouslySetInnerHTML:{__html:e.content}})||l.h("p",null,a),l.h("span",null,a))},i._thumbnailLocations=[],i.onScroll=(n=i.onScroll,r=200,function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];clearTimeout(o),o=window.setTimeout(function(){return n.apply(e,t)},r)}),i.props.viewer.onViewerStateChange.register(i.onStateChange),i}return o(t,e),t.prototype.componentDidMount=function(){this.setState({scrollTopPosition:this._view.scrollTop,viewportHeight:this._view.clientHeight}),window.addEventListener("resize",this.onResize),this.onScroll()},t.prototype.componentDidUpdate=function(){var e=this._view,t=this.state.pageCount;if(this._thumbnailLocations.length!==t){var n=[];e.querySelectorAll("div").forEach(function(e){var t=e.getAttribute("data-thumbnail");t&&(n[parseInt(t,10)]={top:e.offsetTop,bottom:e.offsetTop+e.offsetHeight})}),this._thumbnailLocations=n}},t.prototype.render=function(){for(var e=this,t=this.state,n=t.thumbnails,r=t.pageCount,o=[],i=0;i<r;i++)o.push(this.renderThumbnail(n[i],i));return l.h("div",{class:"viewer-thumbnails",ref:function(t){return e._view=t},onScroll:this.onScroll},o)},t}(l.Component);t.register=function(e){var t=new c.ReactStateBinder(new c.Store(u.init(),u.reducer)),n=i({},t.connect,{viewer:e});e.createPanel(l.h(p,i({},n)),t,"$thumbnails",{label:"Pages",icon:{type:"svg",content:d}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(144);t.init=r.init,t.reducer=r.reducer;var o=n(310);t.View=o.View},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(144),a=n(0),s=n(15),l=function(e){function t(){var t=e.call(this)||this;return t.onCancel=function(e){t.props.onCancel()},t.setState(i.init()),t}return o(t,e),t.prototype.render=function(){var e=this.state,t=e.progress,n=e.title,r=e.showCancel,o=this.props.i18n;return t.isOpen?a.h(s.ModalBase,{open:!0,onClose:function(){},customCSS:"progress-modal"},a.h("h3",null,n),a.h("p",null,t.message),r&&a.h(s.Button,{text:o.t("cancel-btn","Cancel"),accent:"full",background:"transparent",size:"small",onClick:this.onCancel})):null},t}(a.Component);t.View=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(312);t.ToolbarView=r.ToolbarView},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(15),l=a(n(27)),c=n(0),u=n(71),d=n(56),p=n(313),f=n(73),h={Parent:!1,Back:!1,Fwd:!1},g=function(e){return{toggleFullscreen:function(){e.toggleFullscreen()},setZoom:function(t){e.zoom=t},setMouseMode:function(t){e.mouseMode=t},goto:function(t){e.processCommand({type:"Goto",payload:{target:t}})},gotoPage:function(t){e.processCommand({type:"GotoPage",payload:{pageIndex:t}})},refresh:function(){e.processCommand({type:"Refresh"})},cancel:function(){e.processCommand({type:"Cancel"})},history:function(t){e.processCommand({type:"GoHistory",payload:{direction:t}})}}},m=function(){return/Android|BlackBerry|Tablet|Mobile|iPhone|iPad|iPod|Opera Mini|IEMobile/i.test(navigator.userAgent)},v=function(e){var t=e.html;return c.h("div",{dangerouslySetInnerHTML:{__html:t},class:"gc-btn__icon"})},y=function(e){function t(n){var r=e.call(this,n)||this;r._isMobile=m(),r.state={items:[],status:d.ViewerStatus.Ready,fullscreen:!1,zoom:{mode:d.ZoomMode.Value,factor:1},mouseMode:d.MouseMode.Select,navigation:{hasView:!1,canGoBackward:!1,canGoForward:!1,canRefresh:!1,canGoHistory:h,pageCount:-1,pageIndex:-1}},r.refreshToolbar=function(){r._toolbar&&(r._toolbar.toggleExpand(!1),r._toolbar.recalculateBounds())},r.generateUpdateObject=function(e){return e?Object.getOwnPropertyNames(e).reduce(function(t,n){var r;return i({},t,((r={})[n]={$set:e[n]},r))},{}):{}},r.onStateChange=function(e){var t=r.state.items;r._lastViewerState=e.state;var n=t.reduce(function(t,n,o){var a,s=n.onUpdate?n.onUpdate(e,n):null;return i({},t,((a={})[o]={$set:s?l.default(n,r.generateUpdateObject(s)):n},a))},{}),o=l.default(r.state,{items:n});r.setState(l.default(o,{status:{$set:e.state.session.status},navigation:{hasView:{$set:e.state.session.pageCount>0},canRefresh:{$set:e.state.session.pageCount>0},canGoBackward:{$set:e.state.session.pageCount>0&&e.state.session.pageIndex>0},canGoForward:{$set:e.state.session.pageCount>0&&e.state.session.pageIndex<e.state.session.pageCount-1},canGoHistory:{$set:r.props.viewer.commandStatus.canGoHistory},pageIndex:{$set:e.state.session.pageIndex},pageCount:{$set:e.state.session.pageCount}},zoom:{$set:e.state.settings.zoom},mouseMode:{$set:e.state.settings.mouseMode},fullscreen:{$set:e.state.settings.isFullscreen}}))},r.onNavigationBtnClick=function(e){return function(){r._commands.goto(e)}},r.onHistoryBtnClick=function(e){return function(){r._commands.history(e)}},r.onPageInputFocus=function(e){var t=e.target;t.value=""+(r.state.navigation.pageIndex+1),t.select()},r.navigateTo=function(e){var t=r,n=t.state.navigation,o=n.pageCount,i=n.pageIndex,a=t._commands.gotoPage;e===i||e<0||e>=o||a(e)},r.onPageInputBlur=function(e){var t=e.target;""!==t.value&&(r.navigateTo(parseInt(t.value,10)-1),t.value="")},r.onPageInputPress=function(e){if("Enter"===e.key){var t=e.target;r.navigateTo(parseInt(t.value,10)-1),t.value="",t.blur()}},r.onRefresh=function(){var e=r.state.status;e===d.ViewerStatus.Cancelled||e===d.ViewerStatus.Ready||e===d.ViewerStatus.Failed?r._commands.refresh():r._commands.cancel()},r.onFullscreenToggle=function(){r._commands.toggleFullscreen()},r.onZoomChange=function(e){r._commands.setZoom(e)},r.onSetMouseMode=function(e){return function(){r._commands.setMouseMode(e)}},r.addItem=function(e){r.setState(l.default(r.state,{items:{$push:[e]}}))},r.removeItem=function(e){var t=r.state,n=t.items.findIndex(function(t){return t.key===e});n<0||r.setState(l.default(t,{items:{$splice:[[n,1]]}}))},r.updateItem=function(e,t){var n,o=r,i=o.state,a=o.state.items,s=a.findIndex(function(t){return t.key===e});if(!(s<0)){if(!t){var c=a[s];if(c.onUpdate){var d=c.onUpdate(new u.ChangedEventArgs(r._lastViewerState),c);d&&(t=d)}if(!t)return}r.setState(l.default(i,{items:(n={},n[s]={$set:l.default(a[s],r.generateUpdateObject(t))},n)}))}},r.onButtonItemClick=function(e,t){return function(){var n;if(e.action&&(e.enabled||void 0===e.enabled)){var o=e.action(e);o&&r.setState(l.default(r.state,{items:(n={},n[t]={$set:l.default(e,r.generateUpdateObject(o))},n)}))}}},r.getItemsDictionary=function(e){var t=e.hasView,n=e.canRefresh,o=e.canGoBackward,a=e.canGoForward,l=e.canGoHistory,u=e.pagesText,h=e.refreshText,g=e.refreshIcon,m=e.mouseMode,y=e.fullscreen,b=e.zoom,w=e.items,_=e.i18n,S=y?"small":"default",x={size:S,accent:"icon",background:"transparent",rounded:!0},C={$navigation:[c.h(s.Button,i({},x,{title:_.t("toolbar.gotofirst","Go To First"),icon:{type:"svg",content:f.svgIcons["arrow-collapse-left"]},disabled:!o,onClick:r.onNavigationBtnClick("first")})),c.h(s.Button,i({},x,{title:_.t("toolbar.gotoprevious","Go To Previous"),icon:{type:"svg",content:f.svgIcons["arrow-left"]},disabled:!o,onClick:r.onNavigationBtnClick("prev")})),c.h("div",{className:"gcv-page-input"},c.h(s.Input,{size:S,type:"text",width:"100%",textAlign:"center",rounded:!0,disabled:!o&&!a,onKeyDown:r.onPageInputPress,onFocus:r.onPageInputFocus,onBlur:r.onPageInputBlur,title:u}),c.h("span",{className:"gcv-page-input__text"},u)),c.h(s.Button,i({},x,{title:_.t("toolbar.gotonext","Go To Next"),icon:{type:"svg",content:f.svgIcons["arrow-right"]},disabled:!a,onClick:r.onNavigationBtnClick("next")})),c.h(s.Button,i({},x,{title:_.t("toolbar.gotolast","Go To Last"),icon:{type:"svg",content:f.svgIcons["arrow-collapse-right"]},disabled:!a,onClick:r.onNavigationBtnClick("last")}))],$refresh:c.h(s.Button,i({},x,{text:h,icon:{type:"svg",content:f.svgIcons[g]},disabled:!n,onClick:r.onRefresh})),$history:[c.h(s.Button,i({},x,{title:_.t("toolbar.hist-parent","History: Back To Parent"),icon:{type:"svg",content:f.svgIcons["content-duplicate"],rotate:"180"},disabled:!l.Parent,onClick:r.onHistoryBtnClick("Parent")})),c.h(s.Button,i({},x,{title:_.t("toolbar.hist-back","History: Go Back"),icon:{type:"svg",content:f.svgIcons["step-backward-2"]},disabled:!l.Back,onClick:r.onHistoryBtnClick("Back")})),c.h(s.Button,i({},x,{title:_.t("toolbar.hist-fwd","History: Go Forward"),icon:{type:"svg",content:f.svgIcons["step-forward-2"]},disabled:!l.Fwd,onClick:r.onHistoryBtnClick("Fwd")}))],$mousemode:c.h(s.Button,i({},x,{title:_.t("toolbar.movetool","Move Tool"),icon:{type:"svg",content:f.svgIcons["cursor-move"]},background:m===d.MouseMode.Move?"default":"transparent",disabled:!t,onClick:r.onSetMouseMode(m===d.MouseMode.Move?d.MouseMode.Select:d.MouseMode.Move)})),$zoom:c.h(p.ZoomControl,{size:S,dropup:y,zoom:b,disabled:!t,onChange:r.onZoomChange,i18n:_}),$fullscreen:c.h(s.Button,i({},x,{title:_.t("toolbar.fullscreen","Toggle Fullscreen"),icon:{type:"svg",content:f.svgIcons["fullscreen"+(y?"-exit":"")]},onClick:r.onFullscreenToggle})),$split:c.h(s.ToolbarSplitter,null)};r._isMobile&&(C.$mousetool=null);var k=function(e){return e.icon?"svg"===e.icon.type&&"string"==typeof e.icon.content?i({},e.icon,{content:c.h(v,{html:e.icon.content})}):e.icon:e.iconCssClass||!e.text?{type:"font",iconCssClass:e.iconCssClass||""}:void 0};return w.reduce(function(e,t,n){var o;return i({},e,((o={})[t.key]=function(e,t){return c.h(s.Button,i({},x,{key:e.key,text:e.text,title:e.title||e.text,icon:k(e),background:e.checked?"default":"transparent",disabled:void 0!==e.enabled&&0==e.enabled,onClick:r.onButtonItemClick(e,t)}))}(t,n),o))},C)},r.updateLayout=function(e){r.setState({layout:e})},r.getDefaultToolbarItems=function(){var e=r.state.items,n=t.builtinToolbar.slice();return e.length>0&&n.push.apply(n,["$split"].concat(e.map(function(e){return e.key}))),n},r.recalculateBounds=function(){r._toolbar&&r._toolbar.recalculateBounds()};var o=n.viewer;return r._commands=g(o),o.onViewerStateChange.register(r.onStateChange),r}return o(t,e),t.prototype.componentDidUpdate=function(e,t){var n=t.layout!==this.state.layout,r=t.fullscreen!==this.state.fullscreen;(n||r)&&this.refreshToolbar()},t.prototype.render=function(){var e=this,t=this.props.i18n,n=this.state,r=n.status,o=n.items,a=n.layout,l=n.navigation,u=l.canGoBackward,p=l.canGoForward,f=l.canGoHistory,h=l.pageCount,g=l.pageIndex,m=l.canRefresh,v=l.hasView,y=n.mouseMode,b=n.zoom,w=n.fullscreen,_="-- / --";if(h>0){var S="";switch(r){case d.ViewerStatus.Cancelled:case d.ViewerStatus.Failed:S="?";break;case d.ViewerStatus.Loading:S="+"}_=(g>=0?g+1:"--")+" / "+h+S}var x=r===d.ViewerStatus.Ready||r===d.ViewerStatus.Cancelled||r===d.ViewerStatus.Failed?t.t("toolbar.refresh","Refresh"):t.t("toolbar.cancel","Cancel"),C=r===d.ViewerStatus.Ready||r===d.ViewerStatus.Cancelled||r===d.ViewerStatus.Failed?"autorenew":"cancel",k={id:"main_toolbar",block:!0,padding:!0,rounded:w,dropup:w,toggleAccent:"icon",toggleBackground:"transparent",size:w?"small":"default"},O=this.getItemsDictionary({hasView:v,canRefresh:m,canGoBackward:u,canGoForward:p,canGoHistory:f,pagesText:_,refreshText:x,refreshIcon:C,mouseMode:y,fullscreen:w,zoom:b,items:o,i18n:t}),P=this.getDefaultToolbarItems();if(w)a&&a.fullscreen?P=a.fullscreen:(a&&a.default&&(P=a.default),P=["$fullscreen","$split"].concat(P.filter(function(e){return"$fullscreen"!==e})));else if(this._isMobile){var T=a&&(a.mobile||a.default);T&&(P=T)}else a&&a.default&&(P=a.default);var M=[];return P.forEach(function(e,t,n){if(!(t>0&&e==n[t-1])){var r=O[e];r&&(Array.isArray(r)?M.push.apply(M,r):M.push(r))}}),c.h(s.Toolbar,i({},k,{ref:function(t){return e._toolbar=t}}),M)},t.builtinToolbar=["$navigation","$split","$refresh","$split","$history","$split","$mousemode","$zoom","$fullscreen"],t}(c.Component);t.ToolbarView=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),s=n(0),l=n(56),c=n(73),u=n(72),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onDecButtonClick=function(){var e=t.props,n=e.zoom,r=e.onChange,o=n.mode===l.ZoomMode.Value?n.factor:1,i=o<1.1?.1:.25,a=Math.max(u.MIN_ZOOM,Math.round((o-i)/i)*i);r&&r({mode:l.ZoomMode.Value,factor:a})},t.onIncButtonClick=function(){var e=t.props,n=e.zoom,r=e.onChange,o=n.mode===l.ZoomMode.Value?n.factor:1,i=o<1?.1:.25,a=Math.min(u.MAX_ZOOM,Math.round((o+i)/i)*i);r&&r({mode:l.ZoomMode.Value,factor:a})},t.onZoomSelect=function(e){var n=t.props.onChange;t.setState({openDropdown:!1}),n&&n(e)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.zoom,n=e.dropup,r=e.size,o=e.disabled,u=e.i18n,d="";t.mode===l.ZoomMode.Value&&(d=Math.round(100*t.factor)+"%"),t.mode===l.ZoomMode.PageWidth&&(d=u.t("toolbar.zoom-fitwidth","Fit to Width")),t.mode===l.ZoomMode.WholePage&&(d=u.t("toolbar.zoom-fitpage","Fit Page"));var p={accent:"icon",background:"transparent",block:!0,rounded:!0,size:r,disabled:o},f=i({},p,{icon:{type:"svg",content:c.svgIcons["magnify-minus-outline"]},title:u.t("toolbar.zoom-zoomout","Zoom Out"),onClick:this.onDecButtonClick}),h=i({},p,{icon:{type:"svg",content:c.svgIcons["magnify-plus-outline"]},title:u.t("toolbar.zoom-zoomin","Zoom In"),onClick:this.onIncButtonClick}),g=[{type:"header",header:u.t("toolbar.zoom-menu-header","Zoom Mode")},{type:"button",icon:{type:"svg",content:c.svgIcons.magnify},value:{mode:l.ZoomMode.Value,factor:.5},text:"50%"},{type:"button",icon:{type:"svg",content:c.svgIcons.magnify},value:{mode:l.ZoomMode.Value,factor:1},text:"100%"},{type:"button",icon:{type:"svg",content:c.svgIcons.magnify},value:{mode:l.ZoomMode.Value,factor:1.5},text:"150%"},{type:"button",icon:{type:"svg",content:c.svgIcons.magnify},value:{mode:l.ZoomMode.Value,factor:2},text:"200%"},{type:"button",icon:{type:"svg",content:c.svgIcons.magnify},value:{mode:l.ZoomMode.Value,factor:3},text:"300%"},{type:"splitter"},{type:"button",icon:{type:"svg",content:c.svgIcons["arrow-expand-horizontal"]},value:{mode:l.ZoomMode.PageWidth},text:u.t("toolbar.zoom-fitwidth","Fit to Width")},{type:"button",icon:{type:"svg",content:c.svgIcons["arrow-expand-all"]},value:{mode:l.ZoomMode.WholePage},text:u.t("toolbar.zoom-fitpage","Fit Page")}],m=i({},p,{hiddenChevron:!0,menuAlign:"center",offset:!0,block:!1,dropup:n,items:g,text:d,onSelect:this.onZoomSelect});return s.h("div",{className:"gcv-inline-block gcv-zoom"},s.h(a.Dropdown,i({},m)),s.h("span",{className:"gcv-zoom__toggle"},"..."),s.h(a.Button,i({},f)),s.h(a.Button,i({},h)))},t}(s.Component);t.ZoomControl=d},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(146),a=n(102),s=n(147),l=n(74),c=function(){function e(e,t,n,c,u,d){var p=this;this.raiseChangedEvent=e,this.raiseOpenDocumentEvent=t,this.raiseOpenDocumentViewEvent=n,this.onDocumentProgress=c,this.errorSink=u,this.viewerState=d,this.updateUi=function(e){p._viewerStore.dispatch({type:"settings",payload:e})},this.toggleNarrowScreen=function(e){p.updateUi({type:"ToggleNarrowScreen",payload:{isNarrow:e}})},this.highlight=function(e){return r(p,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return null!=e?[3,1]:(this._viewerStore.dispatch({type:"session",payload:{type:"RemoveHighlight"}}),[3,3]);case 1:return[4,this._session.highlight(e)];case 2:n.sent(),t="#hl-"+e.ItemIndex,this._viewerStore.dispatch({type:"session",payload:{type:"SetCurrentPage",payload:{pageIndex:e.PageIndex,doScroll:!0,scrollTo:t}}}),n.label=3;case 3:return[2]}})})},this.onChangeDocument=function(e){p.raiseOpenDocumentEvent(e),p._plugin.onOpenDocument&&p._plugin.onOpenDocument(e)},this.onChangeDocumentView=function(e){p.raiseOpenDocumentViewEvent(e),p._plugin.onOpenDocumentView(e)},this.resolveAction=function(e){if(p._session.isDocumentOpened)return p._plugin.resolveAction(p.getContext(),e)},this.processAction=function(e){var t=p.getContext(),n=p._session.store.state;switch(e.Type){case"goBookmark":if(p._session.isDocumentOpened){var r=n.pageIndex;t.pushEvent({type:"jumpedToPage",fromPage:r,to:{pageIndex:e.Target.pageNumber-1,selector:e.Target.selector}})}return!0;case"goHyperlink":return p._session.isDocumentOpened&&window.open(e.Target,"_blank"),!0;case"drillDocument":return p._session.isDocumentOpened&&t.pushEvent({type:"drilledToDocument",target:e.Target,fromDoc:p._session}),!0}return p._plugin.processAction(t,e,p.handleViewerCmd)},this.handleViewerCmd=function(e){switch(e.type){case"OpenDocument":p.open(e.payload);break;case"GoHistory":switch(e.payload.direction){case"Back":p.historyGoBack();break;case"Fwd":p.historyGoForward();break;case"Parent":p.historyGoParent()}break;case"Goto":if(p._session.isDocumentOpened){var t=p._session.store.state.pageIndex,n=-1;switch(e.payload.target){case"first":n=0;break;case"last":n=p._session.store.state.pageCount-1;break;case"next":n=t+1;break;case"prev":n=t-1}n>=0&&p._session.gotoPage(n,!0)}break;case"GotoPage":p._session.gotoPage(e.payload.pageIndex,!0,e.payload.scrollTo);break;case"Cancel":console.log("cancel clicked"),p.cancelSession("user request");break;case"Refresh":p.historyResetNavigation(),p._session.refresh();break;case"UpdateView":p._session.updateView();break;case"Run":p.historyResetNavigation(),p._session.run();break;case"FetchPages":p._session.fetchPages(e.payload);break;case"SetCurrentPage":p._session.gotoPage(e.payload.pageIndex);break;case"ClearHistory":e.payload.hard?p.historyReset():p.historyResetNavigation();break;default:console.log("UNHANDLED command",e)}},this.resetDocument=function(){return r(p,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return this._session&&this._session.isRunning?(console.warn("Document load is in progress, cancelling"),[4,this.cancelSession("reset document")]):[3,2];case 1:t.sent(),t.label=2;case 2:return this.historyReset(),[4,this.startSession()];case 3:return(e=t.sent()).onChangeDocument(null),e.onChangeDocumentView(null),[2]}})})},this.load=function(e,t){return r(p,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return this._plugin.pluginKey!=e.pluginKey?[2,Promise.resolve({status:"error",message:"No plugin for handling document type "+e.pluginKey})]:this._session&&this._session.isRunning?(console.warn("Document load is already in progress, cancelling"),[4,this.cancelSession("load new document")]):[3,2];case 1:n.sent(),n.label=2;case 2:return this.historyReset(),[4,this.startSession()];case 3:return[2,n.sent().load(e,t)]}})})},this.open=function(e){return p.load(e).then(p.processLoadResult)},this.processLoadResult=function(e){switch(e.status){case"error":var t=e.message,n=e.details;p.errorSink.reportError({severity:"error",message:t,details:n});break;case"loaded":e.document.canView()&&p.handleViewerCmd({type:"Run"});break;case"cancelled":p.errorSink.reportError({severity:"warn",message:"cancelled report processing"})}return e},this.drillDocument=function(e){p._plugin.pluginKey==e.pluginKey?p.startSession().then(function(t){return t.load(e)}).then(p.processLoadResult):p.errorSink.reportError({severity:"error",message:"No plugin for handling document type "+e.pluginKey})},this._history=[],this._historyPosition=0,this.pushEvent=function(e){p._history.splice(p._historyPosition),p._history[p._historyPosition++]=e,p.processEvent(e,i.PluginModel.TimeDirection.Forward)},this._settingsStore=new l.Store(a.DocumentViewer.initSettings(),a.DocumentViewer.settingsReducer),this._session=new s.SessionState(this.onChangeDocumentView,this.onChangeDocument,this.onDocumentProgress,this.errorSink),this._session.setPlugin(this._plugin),this._viewerStore=new l.CompositeStore({settings:this._settingsStore,session:this._session.store}),this._viewerStore.subscribe(this.raiseChangedEvent),this.viewerState.bind(this._viewerStore)}return Object.defineProperty(e.prototype,"viewState",{get:function(){return this._viewerStore.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewSettings",{get:function(){return this._settingsStore.state},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDocumentOpened",{get:function(){return this._session.isDocumentOpened},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"documentView",{get:function(){return this._session.documentView},enumerable:!0,configurable:!0}),e.prototype.setPlugin=function(e){this._plugin=e,this._session.setPlugin(e)},e.prototype.getContext=function(){var e=this;return{document:this._session.document,view:this._session.documentView,processCommand:this.handleViewerCmd,processAction:this.processAction,pushEvent:function(t){return e.pushEvent(t)}}},e.prototype.processEvent=function(e,t){var n=this,r=function(e){return e[t]()};switch(e.type){case"jumpedToPage":return r({backward:function(){null!=e.fromPage&&n.handleViewerCmd({type:"GotoPage",payload:{pageIndex:e.fromPage}})},forward:function(){return n.handleViewerCmd({type:"GotoPage",payload:{pageIndex:e.to.pageIndex,scrollTo:e.to.selector}})}});case"drilledToDocument":return r({backward:function(){n.cancelSession("history backward");var t=e.fromDoc;n._session=t,n._viewerStore.replace({session:t.store}),n.onChangeDocument(t.document),n.onChangeDocumentView(t.documentView)},forward:function(){return n.drillDocument(e.target)}})}this._plugin.processEvent(this.getContext(),e,t)},Object.defineProperty(e.prototype,"commandStatus",{get:function(){var e=this._session.store.state,t=this._history.findIndex(function(e){return"drilledToDocument"==e.type}),n={Back:this._historyPosition>0,Fwd:this._historyPosition<this._history.length,Parent:t>=0&&t<this._historyPosition};return{canRefresh:this._session.isDocumentOpened,canCancel:this._session.isRunning,canGoBack:e.pageIndex>0,canGoForward:e.pageIndex+1<e.pageCount,canGoHistoryBack:n.Back,canGoHistoryForward:n.Fwd,canGoBackToParent:n.Parent,canGoHistory:n}},enumerable:!0,configurable:!0}),e.prototype.cancelSession=function(e){return r(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return this._session&&this._session.isRunning?[4,this._session.cancel(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},e.prototype.startSession=function(){return r(this,void 0,void 0,function(){var e;return o(this,function(t){return(e=new s.SessionState(this.onChangeDocumentView,this.onChangeDocument,this.onDocumentProgress,this.errorSink)).setPlugin(this._plugin),this._session=e,this._viewerStore.replace({session:e.store}),[2,e]})})},e.prototype.historyGoBack=function(){if(this._historyPosition>0){var e=this._history[--this._historyPosition];this.processEvent(e,i.PluginModel.TimeDirection.Backward)}},e.prototype.historyGoParent=function(){for(var e=this._historyPosition;--e>=0;)if("drilledToDocument"==this._history[e].type){var t=this._history[e];this._historyPosition=e,this.processEvent(t,i.PluginModel.TimeDirection.Backward);break}},e.prototype.historyGoForward=function(){if(this._historyPosition<this._history.length){var e=this._history[this._historyPosition++];this.processEvent(e,i.PluginModel.TimeDirection.Forward)}},e.prototype.historyReset=function(){this._history.splice(0),this._historyPosition=0,this.raiseChangedEvent(this._viewerStore.state)},e.prototype.historyResetNavigation=function(){for(var e=this._historyPosition;e>0;e--){if("drilledToDocument"===this._history[e-1].type)break}this._history.splice(e),this._historyPosition=e,this.raiseChangedEvent(this._viewerStore.state)},e}();t.ViewerState=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.text=n,o.details=r,o}return o(t,e),t}(Error);t.PluginError=i;var a=function(e){function t(t,n){return e.call(this,"Document processing error",t,n)||this}return o(t,e),t}(i);t.DocumentError=a,function(e){e.Backward="backward",e.Forward="forward"}(t.TimeDirection||(t.TimeDirection={}))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},c=this;Object.defineProperty(t,"__esModule",{value:!0});var u=n(15),d=l(n(27)),p=n(0),f=n(58),h=n(71),g=n(73);t.init=function(){return{options:{MatchCase:!1,WholeWord:!1,SearchBackward:!1,Text:""},results:[],progress:{pageIndex:0,pageCount:0},status:"ready"}},t.reducer=function(e,t){var n;if("inprogress"===t.status||"suspended"===t.status)switch(e.type){case"Progress":return d.default(t,{status:{$set:"inprogress"},progress:{$set:e.payload}});case"SearchCompleted":return d.default(t,{status:{$set:"done"}});case"Cancelled":return d.default(t,{status:{$set:"cancelled"}});case"Suspended":return d.default(t,{status:{$set:"suspended"}});case"PushResult":return d.default(t,{status:{$set:"inprogress"},results:{$push:[e.payload]}})}switch(e.type){case"Started":return d.default(t,{results:{$set:[]},status:{$set:"inprogress"},progress:{$set:{pageIndex:0,pageCount:0}}});case"ResetResults":return d.default(t,{status:{$set:"ready"},results:{$set:[]},progress:{$set:{pageIndex:0,pageCount:0}}});case"UpdateText":return d.default(t,{options:{Text:{$set:e.payload.text}}});case"UpdateOption":return d.default(t,{options:(n={},n[e.payload.option]={$set:e.payload.value},n)})}return t};var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onTextChange=function(e){(e||e.target)&&t.props.dispatch({type:"UpdateText",payload:{text:e.target.value}})},t.onKeyPress=function(e){(e||e.target)&&13===e.keyCode&&(t.props.dispatch({type:"UpdateText",payload:{text:e.target.value}}),t.onSearchBtnClick())},t.onCheck=function(e){return function(n){t.props.dispatch({type:"UpdateOption",payload:{option:e,value:Boolean(n)}})}},t.onSearchBtnClick=function(){return a(t,void 0,void 0,function(){var e,t,n,r,o,i,a,l;return s(this,function(s){return t=(e=this).props,n=t.beginSearch,r=t.searchNext,o=e.state,i=o.options,a=o.status,l=null==i.Text||""===i.Text.trim(),n&&r&&"inprogress"!==a&&!l?(this.props.dispatch({type:"Started"}),n(i),r()):"inprogress"===a&&this.props.cancel("cancel pressed"),[2]})})},t.onMoreBtnClick=function(){return a(t,void 0,void 0,function(){var e;return s(this,function(t){return(e=this.props.searchNext)&&e(),[2]})})},t.onClearBtnClick=function(){return a(t,void 0,void 0,function(){return s(this,function(e){return this.props.dispatch({type:"ResetResults"}),[2]})})},t.onResultClick=function(e){return function(){t.props.onResultClick(e)}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.state,n=t.options,r=t.results,o=t.status,a=t.progress,s=this.props.i18n;if(!n)return null;var l="string"!=typeof n.Text||""===n.Text.trim(),c="inprogress"==o||!l,d="inprogress"!==o&&r.length>0,f={block:!0,size:"small"},h=i({},f,{id:"match_case",value:Number(!n.MatchCase),checked:n.MatchCase,text:s.t("search.match-case","Match Case"),onChange:this.onCheck("MatchCase")}),m=i({},f,{id:"whole_word",value:Number(!n.WholeWord),checked:n.WholeWord,text:s.t("search.whole-word","Whole word"),onChange:this.onCheck("WholeWord")}),v={type:"button",customCSS:"search__btn-search",accent:"full",text:"inprogress"==o?s.t("search.cancel-btn","Cancel"):s.t("search.start-search-btn","Search"),disabled:!c,onClick:this.onSearchBtnClick},y={type:"button",customCSS:"search__btn-clear",icon:{type:"svg",content:g.svgIcons.close},title:s.t("search.clear-btn","Clear"),onClick:this.onClearBtnClick,width:"30px"},b={accent:"full",size:"small",block:!0,text:s.t("search.more-results-btn","More Results"),onClick:this.onMoreBtnClick,textAlign:"center"};return p.h("div",{class:"search"},p.h(u.Input,{block:!0,size:"small",type:"text",value:n.Text,onChange:this.onTextChange,onKeyDown:this.onKeyPress}),p.h("div",{className:"search__query-params"},p.h(u.Checkbox,i({},h)),p.h(u.Checkbox,i({},m))),p.h("div",{class:"search__progress"},p.h(u.ButtonGroup,{block:!0,align:"justify",size:"small",items:[v,d&&y]}),"inprogress"==o&&p.h("p",null,p.h("span",{style:{width:(a.pageIndex+1)/(a.pageCount||1)*100+"%"}}))),r.length>0&&p.h("h3",{className:"search__results-header"},s.t("search.search-results","Search Results")),p.h("ul",{className:"search__results"},r.map(function(t){var n=t.DisplayText,r=t.Range,o=t.PageIndex,i=r&&!r.isEmpty?n.substr(0,r.Start):"",a=r&&!r.isEmpty?n.substr(r.Start,r.Length):"",s=r&&!r.isEmpty?n.substr(r.Start+r.Length):"";return p.h("li",{className:"search-result",onClick:e.onResultClick(t)},r&&!r.isEmpty&&p.h("span",{className:"search-result__text",title:n},i,p.h("i",null,a),s),(!r||r.isEmpty)&&p.h("span",{className:"search-result__text",title:n},n),p.h("span",{className:"search-result__page"},o+1))}),r.length>0&&("inprogress"===o||"suspended"===o)&&p.h(u.Button,i({},b)),"cancelled"==o&&p.h("p",{className:"search__infomessage"},s.t("search.search-cancelled-msg",{defaultValue:"Search cancelled on page {{page}}",replace:{page:a.pageIndex+1}})),"done"==o&&0==r.length&&p.h("p",{className:"search__infomessage"},s.t("search.didn-find-msg","Didn't find anything."))))},t}(p.Component);t.register=function(e,n,r){var o,l=new h.Store(t.init(),t.reducer),u=new h.ReactStateBinder(l),d=null,v=null,y=null,b=i({},u.connect,{beginSearch:function(e){if(null!=o&&o("new search"),n(null),v&&v.search&&""!=e.Text){var t=h.CancellationToken.create(),r=t.token,i=t.cancel;y=r,o=i,d=v.search(e,f.SearchResult.BeforeBegin)}else d=null},searchNext:function(){return a(c,void 0,void 0,function(){var e,t,n,r;return s(this,function(o){switch(o.label){case 0:if(!d||!v)return u.dispatch({type:"SearchCompleted"}),[2];e=25,n=0,o.label=1;case 1:return y&&y.isCancellationRequested?(u.dispatch({type:"Cancelled"}),[3,4]):[4,d.next()];case 2:if(!(t=o.sent()).value)return u.dispatch({type:"SearchCompleted"}),[3,4];if(t.value.ItemIndex>=0?(u.dispatch({type:"PushResult",payload:t.value}),n++):(r=v.pageCount.totalPageCount||v.pageCount.renderedSoFar,u.dispatch({type:"Progress",payload:{pageIndex:t.value.PageIndex,pageCount:r}})),n>=e)return u.dispatch({type:"Suspended"}),[3,4];o.label=3;case 3:if(!t.done)return[3,1];o.label=4;case 4:return[2]}})})},cancel:function(e){null!=o&&o(e)},onResultClick:function(t){e.closePanelOnNarrowScreen(),n(t)},i18n:r}),w=e.createPanel(p.h(m,i({},b)),u,"$search",{label:r.t("search.paneltitle","Search"),icon:{type:"svg",content:g.svgIcons.search},enabled:!1});e.onDocumentViewOpen.register(function(t){null!=o&&o("changed view"),l.dispatch({type:"ResetResults"}),v=t.view,n(null),e.updatePanel(w,{enabled:null!=t.view&&null!=t.view.search})})}},function(e,t,n){"use strict";var r,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Completed="completed",e.Cancelled="cancelled",e.ArgumentError="argerror"}(r=t.SearchStatus||(t.SearchStatus={})),t.search=function(e,t,n,a,s,l){return o(this,void 0,void 0,function(){var o,c,u,d;return i(this,function(i){switch(i.label){case 0:if(null==e||null==e.search)return[2,r.ArgumentError];o=e.search(t,n),u=-1,i.label=1;case 1:return[4,o.next()];case 2:return(c=i.sent())?l&&l.isCancellationRequested?[2,r.Cancelled]:c.done?[3,3]:(c.value.ItemIndex>=0?a(c.value):(d=c.value.PageIndex)!=u&&(s&&s({pageIndex:d,pageCount:e.pageCount.totalPageCount}),u=d),[3,1]):[3,3];case 3:return[2,r.Completed]}})})}},function(e,t,n){"use strict";n(169),n(174),n(177),n(113),n(191),n(193),n(195),n(197),n(203),n(208),n(211),n(233),n(265),n(268);var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function l(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=d(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=s(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),l(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),l(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),l(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function m(e,t){var n,r,o=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function v(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function y(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},h.call(m.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})};var w=self.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function _(e,t){return new Promise(function(n,o){var i=new m(e,t);if(i.signal&&i.signal.aborted)return o(new w("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new y(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.onabort=function(){o(new w("Aborted","AbortError"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),i.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),i.signal&&(i.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",s)}),a.send(void 0===i._bodyInit?null:i._bodyInit)})}_.polyfill=!0,self.fetch||(self.fetch=_,self.Headers=c,self.Request=m,self.Response=y);n(273)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(320),o=n(150),i=n(27),a=n(28),s=n(321),l=function(e,t){return a.isDate(e)&&a.isDate(t)?e.valueOf()===t.valueOf():e===t},c=function(e){return a.isDate(e)?a(e).toISOString():""+e};function u(e,t){return e.length?e[0]:t?null:o.noValue}function d(e,t){var n={state:{$set:o.ParameterStatus.ok},errorMessage:{$set:""}};return null!=t&&(n.values={$set:t}),i.default(e,n)}function p(e,t){return i.default(e,{state:{$set:o.ParameterStatus.validationFailed},errorMessage:{$set:t}})}t.getParameterValue=u;var f={Date:{accepted:["YYYY-MM-DD","YYYYMMDD","M/D/YYYY","D.M.YYYY","YYYY-MM-DDTHH:mm:ss","YYYY-MM-DDTHH:mm:ssZZ","YYYY-MM-DDTHH:mm:ss.SSSZ"],valid:"YYYY-MM-DD"},DateTime:{accepted:["YYYY-MM-DDTHH:mm:ss","YYYY-MM-DDTHH:mm:ssZZ","YYYY-MM-DDTHH:mm:ss.SSSZ"],valid:"YYYY-MM-DDTHH:mm:ss"}};function h(e,t,n){var o=r.ini18n(n),i=e.descriptor,l=i.dataType,c=i.allowBlank;switch(l){case"Boolean":return"true"===t.toLowerCase()?d(e,[!0]):"false"===t.toLowerCase()?d(e,[!1]):p(e,o.t("rdlxparams:TextNeedBoolean","* Wrong value. Make sure that you enter a valid boolean"));case"String":return""===t?c?d(e,[""]):p(e,o.t("rdlxparams:TextNoEmptyStrings","* Wrong value. Empty strings are not allowed")):d(e,[t]);case"Integer":var u=s.safeParseInteger(t);if(!isNaN(u)){var h={maxValue:2147483647,minValue:-2147483648};return u>=h.minValue&&u<=h.maxValue?d(e,[u]):p(e,o.t("rdlxparams:TextMaxInteger","* Value cannot exceed 32-bit integer"))}return p(e,o.t("rdlxparams:TextNeedInteger","* Wrong value. Make sure that you enter a valid integer"));case"Float":var g=s.safeParseFloat(t);return isNaN(g)?p(e,o.t("rdlxparams:TextNeedFloat","* Wrong value. Make sure that you enter a valid float")):d(e,[g]);case"Date":case"DateTime":var m=f[l],v=a(t,m.accepted,!0);return v.isValid()?d(e,[v.toDate()]):p(e,o.t("rdlxparams:TextNeedDateTime","* Wrong value. Make sure that you enter a valid date"));default:return p(e,o.t("rdlxparams:TextUnknownError","! Unknown validation error"))}}t.validateByType=h,t.validateParameter=function(e,t){var n=r.ini18n(t);if(e.descriptor.multiValue)return e.validValues.length>=0?function(e,t){function n(n){return null===n?e.descriptor.nullable?null:t.t("rdlxparams:TextValueExpected","* Value Expected"):null!=e.descriptor.selectAllValue&&n===e.descriptor.selectAllValue||n===o.selectAll?null:""===n||n===o.noValue?e.descriptor.allowBlank?null:t.t("rdlxparams:TextValueExpected","* Value Expected"):0===e.validValues.length?null:e.validValues.some(function(e){return l(e.value,n)})?null:t.t("rdlxparams:TextPickFromList","* Wrong value. Pick the right one from the list")}var r=e.values;e.values.length||(r=e.descriptor.nullable?[null]:[o.noValue]);for(var i=r.map(function(t){return s.normalizeParameterValue(t,e.descriptor)}),a=0;a<i.length;a++){var c=n(i[a]);if(null!==c)return p(e,c)}return d(e,i)}(e,n):e;if(e.values.length>1)return p(e,n.t("rdlxparams:TextSingleValueExpected","* Single value expected"));var i=u(e.values,e.descriptor.nullable);if(i===o.noValue)return p(e,n.t("rdlxparams:TextValueExpected","* Value Expected"));if(null===i)return e.descriptor.nullable?d(e):p(e,n.t("rdlxparams:TextNoNull","* Value cannot be null"));var a=h(e,c(i),n);if(e.validValues.length>=1){var f=u(a.values,a.descriptor.nullable);return a.state!==o.ParameterStatus.ok||a.validValues.some(function(e){return l(e.value,f)})?a:p(e,n.t("rdlxparams:TextPickFromList","* Wrong value. Pick the right one from the list"))}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60);t.ini18n=function(e){return null!=e||r.default.isInitialized||r.default.init({}),e||r.default}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(150),o=n(28);t.safeParseFloat=function(e){var t=parseFloat(e);return isNaN(e-t)?Number.NaN:t},t.safeParseInteger=function(e){return/^[-+]?\d+$/gi.test(e)?parseInt(e,10):Number.NaN},t.normalizeParameterValue=function(e,n){if(null===e||e===r.noValue||""===e||e===r.selectAll||e===n.selectAllValue)return e;switch(n.dataType){case"Float":if("number"==typeof e)return e;if("string"==typeof e){var i=t.safeParseFloat(e);if(!isNaN(i))return i}break;case"Integer":if("number"==typeof e)return e;if("string"==typeof e&&(i=t.safeParseInteger(e),!isNaN(i)))return i;break;case"Boolean":if("boolean"==typeof e)return e;if("string"==typeof e){var a=e.toLowerCase();if("true"===a||"false"===a)return"true"===a}break;case"Date":case"DateTime":if(o.isDate(e))return e;if(o.isMoment(e))return e.toDate();if("string"==typeof e&&(i=o(e,o.ISO_8601,!0)).isValid())return i.toDate();break;case"String":return o.isDate(e)||o.isMoment(e)?o(e).toISOString():""+e}return e}},function(e,t,n){e.exports=n(342)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(324);t.init=r.init,t.update=r.update,t.DefaultParamInfo=r.defaultParameterState,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(327));var o=n(328);t.View=o.View},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(57);function i(){return{parameters:[],hasDependantParameters:!1,isReady:!0,isValidating:!1,isValid:!0}}t.defaultParameterValue={label:"",value:null},t.defaultParameterDescriptor={name:"",dataType:"String",prompt:"",selectAllValue:null,allowBlank:!1,nullable:!1,multiValue:!1,multiline:!1,hidden:!1,usedInQuery:!1,dependsOn:[],dateOnly:!1},t.defaultParameterState={descriptor:t.defaultParameterDescriptor,validValues:[],isValidValuesLoaded:!0,values:[],state:o.ParameterStatus.expectValue,errorMessage:""},t.init=i,t.update=function(e,t){var n=function(e,t){switch(t.type){case"reset":return{parameters:[],hasDependantParameters:!1,isReady:!0,isValidating:!1,isValid:!0};case"initializing":var n=t.payload.params,o=n.some(function(e){return e.descriptor.dependsOn.length>0});return r.default(e,{parameters:{$set:n},isReady:{$set:!1},hasDependantParameters:{$set:o}});case"initialized":return r.default(e,{isReady:{$set:!0}});case"VALIDATING":return r.default(e,{isValidating:{$set:!0},isValid:{$set:!1}});case"VALIDATED":return r.default(e,{isValidating:{$set:!1},parameters:{$set:t.payload.params}})}return e}(t,e);return n!==t?r.default(n,{isValid:{$set:!(n.parameters.length>0)||n.parameters.every(function(e){return e.state===o.ParameterStatus.ok})}}):n}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(150);function i(e){return"DateTime"===e.dataType&&e.dateOnly&&(e=r({},e,{dataType:"Date",dateOnly:void 0})),{descriptor:e,validValues:[],isValidValuesLoaded:!1,values:[],errorMessage:"",state:o.ParameterStatus.validationFailed}}t.createParameter=i,t.initialize=function(e){if(null==e)throw new Error("descriptors is null");return e.map(i)}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=n(320),s=n(150),l=n(319),c=n(27),u=n(321);function d(e,t,n,r){return o(this,void 0,void 0,function(){var o,a,l,d,f,h;return i(this,function(g){switch(g.label){case 0:return o={},(a=t.filter(function(t){return t.descriptor.dependsOn.indexOf(e)>=0})).forEach(function(e){return function e(n){var r=t.filter(function(e){return n.descriptor.dependsOn.indexOf(e.descriptor.name)>-1});r.every(function(e){return e.state===s.ParameterStatus.ok})&&(r.forEach(function(e){return o[e.descriptor.name]=e.values}),r.filter(function(e){return e.descriptor.dependsOn.length>0}).forEach(function(t){return e(t)}))}(e)}),l=t,a.length?[4,n(o,a.map(function(e){return e.descriptor.name}))]:[3,5];case 1:d=g.sent(),f=function(e){var o,s,f,h;return i(this,function(i){switch(i.label){case 0:return s=a[e].descriptor,f=s.name,h=t.findIndex(function(e){return e.descriptor===s}),l=c.default(l,((o={})[h]={validValues:{$set:d[f].validValues.map(function(e){return{value:u.normalizeParameterValue(e.value,s),label:e.label}})},isValidValuesLoaded:{$set:!0}},o)),[4,p(n,l,f,d[f].values,r)];case 1:return l=i.sent(),[2]}})},h=0,g.label=2;case 2:return h<a.length?[5,f(h)]:[3,5];case 3:g.sent(),g.label=4;case 4:return h++,[3,2];case 5:return[2,l]}})})}function p(e,t,n,s,u){return o(this,void 0,void 0,function(){var o,p,g,m,v,y;return i(this,function(i){switch(i.label){case 0:return p=a.ini18n(u),g=t.findIndex(function(e){return e.descriptor.name===n}),m=r({},t[g],{values:s}),v=f(m.descriptor,t)?l.validateParameter(m,p):h(m,p),y=c.default(t,((o={})[g]={$set:v},o)),y.some(function(e){return e.descriptor.dependsOn.indexOf(n)>=0})?[4,d(n,y,e,p)]:[3,2];case 1:return[2,i.sent()];case 2:return[2,y]}})})}function f(e,t){return e.dependsOn.map(function(e){return t.find(function(t){return t.descriptor.name.toLowerCase()===e.toLowerCase()})}).every(function(e){return!!e&&f(e.descriptor,t)&&e.state===s.ParameterStatus.ok})}function h(e,t){return c.default(e,{state:{$set:s.ParameterStatus.hasOutstandingDependencies},errorMessage:{$set:t.t("rdlxparams:TextHasOutstandingDependencies","* Parameter has outstanding dependencies")}})}t.setParameterValue=p,t.applyValues=function(e,t,n,r){return o(this,void 0,void 0,function(){var o,s,d,p,g;return i(this,function(i){switch(i.label){case 0:if(null==n)throw new Error("parameters argument is null");return o=a.ini18n(t),s=n.map(function(e){return e.descriptor}),d={},s.forEach(function(e){var t=e.name;d[t]=r&&r[t]}),p={},n.length>0?[4,e(d,s.map(function(e){return e.name}))]:[3,2];case 1:p=i.sent(),i.label=2;case 2:return g=function(e){for(var t=e,n=[],r=function(){var e=t.filter(function(e){return e.descriptor.dependsOn.every(function(e){return n.findIndex(function(t){return t.descriptor.name.toLowerCase()===e.toLowerCase()})>=0})});if(0===e.length)throw new Error("Circular dependency in parameters");t=t.filter(function(t){return!e.includes(t)}),n.push.apply(n,e)};t.length>0;)r();return n}(n).reduce(function(e,t){var n=t.descriptor.name,i=r&&r[n]||null;return null!=i&&0!==i.length||(i=p[n].values),t=f((t=c.default(t,{validValues:{$set:p[t.descriptor.name].validValues.map(function(e){return{value:u.normalizeParameterValue(e.value,t.descriptor),label:e.label}})},isValidValuesLoaded:{$set:!0},values:{$set:i}})).descriptor,e)?l.validateParameter(t,o):h(t,o),e.concat([t])},[]),[2,n.map(function(e){return g.find(function(t){return t.descriptor.name===e.descriptor.name})})]}})})}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,s)}l((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(57),a=n(57);t.setReport=function(e,t,n,s,l){return r(this,void 0,void 0,function(){var r,c;return o(this,function(o){switch(o.label){case 0:return t({type:"reset"}),null==s?[2]:(r=i.initialize(s),t({type:"initializing",payload:{params:r}}),[4,a.applyValues(e,n,r,l)]);case 1:return c=o.sent(),t({type:"initializing",payload:{params:c}}),t({type:"initialized",payload:{}}),[2]}})})},t.setParameterValue=function(e,t,n,i,s,l){return r(this,void 0,void 0,function(){var r;return o(this,function(o){switch(o.label){case 0:return t({type:"VALIDATING",payload:{}}),[4,a.setParameterValue(e,i,s,l,n)];case 1:return r=o.sent(),t({type:"VALIDATED",payload:{params:r}}),[2]}})})}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),s=n(0),l=n(60),c=n(329),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e){var t=e.setValue,n=e.p,r=e.i18n,o=i({},n,{setValue:t,labelsOnTop:!0,i18n:r});return n.validValues.length>0?s.h(c.DropdownParameter,i({},o)):"Boolean"===n.descriptor.dataType?s.h(c.BooleanSimpleParameter,i({},o)):"Date"===n.descriptor.dataType||"DateTime"===n.descriptor.dataType?s.h(c.DatetimeParameter,i({},o)):s.h(c.SimpleInputParameter,i({},o))},t}(s.Component),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t){var n=e.runCommand,r=e.setValue,o=e.i18n,c=t.parameters;if(!c)return s.h("div",null);var d=o||l.default;null!=o||l.default.isInitialized||l.default.init({});var p={size:"small",accent:t.isValid?"full":"none",width:"100%",noFocus:!1,textAlign:"center",text:d.t("params:preview-btn-title","Preview"),onClick:function(){t.isValid&&n()}};return s.h("div",{className:"ar-parameters"},c.filter(function(e){return!e.descriptor.hidden}).map(function(e,t){return s.h(u,{key:t,p:e,i18n:d,setValue:r})}),s.h(a.Button,i({},p)))},t}(s.Component);t.View=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(330);t.SimpleInputParameter=r.SimpleInputParameter;var o=n(331);t.DropdownParameter=o.DropdownParameter;var i=n(332);t.BooleanSimpleParameter=i.BooleanSimpleParameter;var a=n(333);t.DatetimeParameter=a.DatetimeParameter},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(57),c=n(168),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.getValue=function(e){var t,n,r,o,i=e.values,a=e.descriptor,s=i&&1===i.length&&i[0]!==l.noValue?i[0]:null;return s instanceof Date?(t=s,n=a.dateOnly||"Date"===a.dataType,r=function(e){return(e<10?"0":"")+e.toString()},o=t.getFullYear()+"-"+r(t.getMonth()+1)+"-"+r(t.getDate()),n?o:o+"T"+r(t.getHours())+":"+r(t.getMinutes())+":"+r(t.getSeconds())):null!==s&&""+s||""},t.setValue=function(e){var n=t.props,r=n.descriptor;(0,n.setValue)(r.name,[e],!0)},t.onInputChange=function(e){e.target&&t.setValue(e.target.value)},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.setValue,n=e.descriptor,r=e.state,o=e.values,u=e.errorMessage,d=e.labelsOnTop,p=e.disabled,f=e.i18n,h=l.getParameterValue(o,n.nullable),g=!!n.nullable&&null===h,m=r===l.ParameterStatus.ok,v=r===l.ParameterStatus.hasOutstandingDependencies,y={name:n.name,dataType:n.dataType,isNullable:n.nullable,isAllowBlank:n.allowBlank,setValue:t,invalid:!p&&!m||!1,isNull:g,i18n:f},b="String"===n.dataType&&n.multiline?a.h("textarea",{className:s.classnames("gc-textarea gc-textarea--block gc-textarea--resize-vertical",{"gc-textarea--invalid":!p&&!m||!1}),rows:6,style:{lineHeight:"normal",width:"100%",padding:"5px 15px"},value:this.getValue(this.props),onBlur:this.onInputChange,disabled:p||g||v}):a.h(s.Input,{block:!0,type:"text",size:"small",width:"100%",value:this.getValue(this.props),onBlur:this.onInputChange,invalid:!p&&!m||!1,disabled:p||g||v}),w=f.t("params:paramsTextInvalidValue","Invalid Value"),_={block:!0,size:"small",label:n.prompt,position:d?"top":"left",tooltip:m?void 0:{text:u||w}};return a.h(s.Label,i({},_),a.h(c.NullWrapper,i({},y),b))},t}(a.Component);t.SimpleInputParameter=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(57),c=n(168),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onSelect=function(e){var n=t.props;(0,n.setValue)(n.descriptor.name,[e])},t.onSelectMultivalue=function(e){return function(n){var r=e.find(function(e){return e.value===n}),o=e[0],i=r.selected?e.filter(function(e){return e.selected&&e.value!==n}):e.filter(function(e){return e.value===n&&n!==o.value||e===o&&n===o.value||e.selected&&n!==o.value&&e.value!==o.value}),a=t.props;(0,a.setValue)(a.descriptor.name,i.map(function(e){return e.value}))}},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.setValue,n=e.descriptor,r=e.values,o=e.validValues,u=e.i18n,p=e.labelsOnTop,f=e.state,h=e.errorMessage,g=e.disabled,m=function(e,t,n){if(t)return e.length>0?e:l.noValue;var r=l.getParameterValue(e,n);return null===r||r===l.noValue?r:[r]}(r,n.multiValue,n.nullable),v=f===l.ParameterStatus.ok,y=u.t("params:ddpTextNull","(null)"),b=u.t("params:ddpTextSelectValue","(select value)"),w=u.t("params:ddpTextSelectAllValues","(select all)"),_=o.filter(function(e,t){return t===o.findIndex(function(t){return t.label===e.label&&d(e.value,t.value,n)})}),S=n.multiValue?[{value:n.selectAllValue,label:w}].concat(_):_,x=null===m?y:m===l.noValue?b:S.filter(function(e){return m.some(function(t){return d(e.value,t,n)})}).map(function(e){return e.label||e.value}).filter(function(e,t,n){return n.indexOf(e)==t}).join(", "),C=S.map(function(e){return{type:"button",selected:r&&r.some(function(t){return d(t,e.value,n)}),text:e.label,value:e.value}}),k={multiselect:n.multiValue,items:C,block:!0,size:"small",width:"100%",menuWidth:"100%",menuMaxHeight:300,filterOnInput:!0,openOnFocus:!0,value:x,onSelect:n.multiValue?this.onSelectMultivalue(C):this.onSelect,disabled:g||n.nullable&&null===m},O={name:n.name,dataType:n.dataType,isNullable:n.nullable,setValue:t,invalid:!g&&!v||!1,isNull:null===m,i18n:u},P=u.t("params:paramsTextInvalidValue","Invalid Value"),T={block:!0,size:"small",label:n.prompt,position:p?"top":"left",tooltip:v?void 0:{text:h||P}};return a.h(s.Label,i({},T),a.h(c.NullWrapper,i({},O),a.h(s.ComboBox,i({},k))))},t}(a.Component);function d(e,t,n){return e===t||null!=e&&null!=t&&("Date"===n.dataType||"DateTime"===n.dataType?new Date(e.toString()).valueOf()===new Date(t.toString()).valueOf():"object"==typeof e||"object"==typeof t?e===t:"String"!==n.dataType?e.toString().toLowerCase()===t.toString().toLowerCase():e.toString()===t.toString())}t.DropdownParameter=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(57),c=n(168),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onToggle=function(e){var n=t.props,r=n.descriptor;(0,n.setValue)(r.name,[e])},t}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.descriptor,n=e.setValue,r=e.values,o=e.state,u=e.errorMessage,d=e.labelsOnTop,p=e.disabled,f=e.i18n,h=r&&r.length>0?r[0]:l.noValue,g=!!t.nullable&&(null===h||!r.length),m=o===l.ParameterStatus.ok,v={name:t.name,dataType:t.dataType,isNullable:t.nullable,setValue:n,isNull:g,invalid:!p&&!m||!1,i18n:f},y={block:!0,onChange:this.onToggle,invalid:!p&&!m||!1,disabled:g||p},b=i({},y,{id:t.name+"_true",value:"true",text:f.t("params:bool-true-label","True"),checked:!0===h}),w=i({},y,{id:t.name+"_false",value:"false",text:f.t("params:bool-false-label","False"),checked:!1===h}),_=f.t("params:paramsTextInvalidValue","Invalid Value"),S={block:!0,size:"small",label:t.prompt,position:d?"top":"left",tooltip:m?void 0:{text:u||_}};return a.h(s.Label,i({},S),a.h(c.NullWrapper,i({},v),a.h("div",{class:"gcv-boolean-parameter"},a.h(s.Radio,i({},b)),a.h(s.Radio,i({},w)))))},t}(a.Component);t.BooleanSimpleParameter=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(57),l=n(15),c=n(168),u=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.render=function(){var e=this.props,t=e.descriptor,n=e.setValue,r=e.values,o=e.state,u=e.errorMessage,d=e.labelsOnTop,p=e.disabled,f=e.i18n,h=r&&r.length>0?r[0]:s.noValue,g=!!t.nullable&&(null===h||!r.length),m=o===s.ParameterStatus.ok,v=f.t("params:paramsTextInvalidValue","Invalid Value"),y={label:t.prompt,position:d?"top":"left",tooltip:m?void 0:{text:u||v}},b={name:t.name,dataType:t.dataType,isNullable:t.nullable,setValue:n,isNull:g,invalid:!p&&!m||!1,i18n:f},w={placeholder:f.t("params:datePlaceholder","Select Date.."),timeFormat:"DateTime"===t.dataType,daysViewHeaderFormat:f.t("params:daysViewHeaderFormat","MMMM YYYY"),invalid:!p&&!m||!1,disabled:g||p||!1,locale:f.language||navigator.language,withControls:!0,controlLabels:{clear:f.t("params:date-clear","Clear"),today:f.t("params:date-today","Today")},onChange:function(e){return n(t.name,["string"==typeof e?e:e.toISOString()])}};return 0===r.length||null==r[0]||""==r[0]?w.value="":r.length>0&&(o===s.ParameterStatus.validationFailed?w.value=r[0]:w.value=r[0]||""),a.h(l.Label,i({},y,{block:!0,size:"small"}),a.h(c.NullWrapper,i({},b),a.h(l.DateTime,i({},w,{block:!0,size:"small",menuWidth:265}))))},t}(a.Component);t.DatetimeParameter=u},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n(335)),r(n(336))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),i=n(15);function a(e,t){return 0==e.length||null!=t&&e.findIndex(function(e){return e.toLowerCase()===t.toLowerCase()})>=0}t.init=function(){return{registeredFormats:[],availableFormats:[],currentFormatKey:null,descriptors:[],settingsBag:{},exportsFilter:[],documentSelected:!1,progress:{isOpen:!1}}},t.update=function e(t,n){var s,l;switch(t.type){case"addFormat":var c=t.payload,u=c.formatKey,d=c.friendlyName,p=c.defaultSettings,f=c.settingsDescriptors.map(function(e){return function(e,t){var n=t.category||"Misc",r=t.label||t.name,o=t.name,a=null,s=t.type;if("enum"===t.type){s=e+"."+t.name,a={values:[],friendlyNames:[]};var l=t.enumValues||{};for(var c in l)l.hasOwnProperty(c)&&(a.values.push(c),a.friendlyNames.push({value:c,name:l[c]}))}return{setting:t,descriptor:i.propertyDescriptor(n,r,s,o),enumValues:a}}(u,e)}),h=f.map(function(e){return e.descriptor}),g=[];f.filter(function(e){return null!=e.enumValues}).forEach(function(e){var t=e.enumValues,n=e.setting,r=u+"."+n.name;g.push({editorType:r,values:t,settingName:n.name})});var m={key:u,label:d,defaultSettings:p,descriptors:h,editors:g},v=a(n.exportsFilter,u)?[m]:[];return o.default(n,{registeredFormats:{$push:[m]},availableFormats:{$push:v}});case"changeFormat":var y=t.payload&&t.payload.key||null,b=y&&n.availableFormats.find(function(e){return e.key===y});return y&&b?o.default(n,{currentFormatKey:{$set:t.payload.key},descriptors:{$set:b.descriptors},settingsBag:(s={},s[y]={$apply:function(e){return r({},e||b.defaultSettings)}},s)}):o.default(n,{currentFormatKey:{$set:null},descriptors:{$set:[]}});case"setProperty":if(!n.currentFormatKey)break;var w=n.availableFormats.find(function(e){return e.key===n.currentFormatKey});if(!w)break;var _=t.payload,S=_.key,x=_.value;return o.default(n,{settingsBag:(l={},l[n.currentFormatKey]={$apply:function(e){var t;return o.default(e||r({},w.defaultSettings),((t={})[S]={$set:x},t))}},l)});case"setFormatsFilter":var C=t.payload.formatKeys||[],k=o.default(n,{exportsFilter:{$set:C||[]},availableFormats:{$set:n.registeredFormats.filter(function(e){return a(C,e.key)})}});if(null!=n.currentFormatKey&&!a(k.exportsFilter,n.currentFormatKey)){var O=k.availableFormats.map(function(e){return e.key}).find(function(e){return!0})||null;k=e({type:"changeFormat",payload:{key:O}},k)}return k;case"setDocumentSelected":return o.default(n,{documentSelected:{$set:!!t.payload.value}});case"setProgress":return o.default(n,{progress:{$set:t.payload.isOpen?{isOpen:!0,message:t.payload.message||""}:{isOpen:!1}}})}return n}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=n(60),c=function(e,t){return a.h(s.withLabel(s.BoolEditor),i({},e,{key:t,labelPosition:"left",labelWidth:"auto"}))},u=function(e,t){return a.h(s.withLabel(s.NumberEditor),i({},e,{key:t}))},d=function(e,t){return a.h(s.withLabel(s.TextEditor),i({},e,{key:t}))},p=function(e){function t(){var t=e.call(this)||this;return t.setProperty=function(e,n){var r=e.valuePath||e.label;t.props.dispatch({type:"setProperty",payload:{key:r,value:n}}),console.log(e.label,n)},t.onChangeFormat=function(e){t.props.dispatch({type:"changeFormat",payload:{key:e}})},t.onExportStart=function(e){var n=t.state,r=n.settingsBag,o=n.currentFormatKey;o&&t.props.startExport(o,r[o])},t.onCancel=function(e){t.props.onCancel()},t}return o(t,e),t.prototype.render=function(){var e=this.state,t=e.descriptors,n=e.availableFormats,r=e.settingsBag,o=e.currentFormatKey,p=e.documentSelected,f=e.progress;if(null==t)return null;var h=this.props.i18n||l.default;null!=this.props.i18n||l.default.isInitialized||l.default.init({});var g=o&&r[o],m=n.find(function(e){return e.key===o}),v={};m&&m.editors.forEach(function(e){var t=e.editorType,n=e.values,r=e.settingName,o=i({},n,{friendlyNames:n.friendlyNames.map(function(e){return{value:e.value,name:h.t("export"+m.key+":settings."+r+".enum."+e.value,e.name)}})});v[t]=function(e,t){return a.h(s.withLabel(s.EnumEditor),i({},e,{key:t,friendlyEnum:o}))}});var y=null==m?"":h.t("export"+m.key+":friendlyName",m.label),b=null==m?t:t.map(function(e){var t=h.t("export"+m.key+":settings."+e.valuePath+".label",e.label),n=h.t("export"+m.key+":settings."+e.valuePath+".category",e.category);return i({},e,{label:t,category:n})}),w={plainTextEditor:{emptyPlaceholder:h.t("export:emptyTextPlaceholder","<empty>")},boolEditor:{textFalse:h.t("export:boolTextFalse","False"),textTrue:h.t("export:boolTextTrue","True")}},_={bool:function(e,t){return c(i({},e,{localization:w}),t)},int:function(e,t){return u(i({},e,{localization:w}),t)},string:function(e,t){return d(i({},e,{localization:w}),t)}},S={descriptors:b,objectValue:i({},g,{name:"export",type:o||"$$$"}),defaultValue:{},propertyEditors:i({},_,v),setProperty:this.setProperty,labelPosition:"top"},x=n.map(function(e){return{type:"button",value:e.key,text:h.t("export"+e.key+":friendlyName",e.label),selected:e.key===o}});return a.h("div",{class:"arjs-export-panel"},p||h.t("export:nodocument","No document selected"),f.isOpen&&a.h(s.ModalBase,{open:!0,onClose:function(){},customCSS:"progress-modal"},a.h("h3",null,h.t("export:inprogress-lbl","Export in progress")),a.h("p",null,f.message),a.h(s.Button,{text:h.t("export:cancel-btn","Cancel"),accent:"full",background:"transparent",size:"small",onClick:this.onCancel})),p&&n.length>0&&a.h(s.Label,{block:!0,size:"small",label:h.t("export:file-format-label","Format")},a.h(s.Dropdown,{items:x,text:y,block:!0,accent:"full",offset:!0,size:"small",width:"100%",menuWidth:"100%",onSelect:this.onChangeFormat})),p&&g&&[a.h(s.PropertyList,i({},S)),a.h(s.Button,{block:!0,width:"100%",size:"small",accent:"full",onClick:this.onExportStart,text:h.t("export:start-btn","Export"),textAlign:"center"})])},t}(a.Component);t.View=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(338));var r=n(339);t.View=r.View},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var o=n(27);t.init=function(){return{content:null}},t.update=function(e,n){switch(e.type){case"reset":return t.init();case"set-content":return{content:e.payload.content};case"toggle-node":var i=e.payload.path.reduceRight(function(e,t){var n;return{kids:(n={},n[t]=r({},e),n)}},{collapsed:{$apply:function(e){return!e}}});return o.default(n,{content:i});default:return n}}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(15),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(e,t){return a.h(c,i({},e,t))},t}(a.Component);t.View=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onNodeClick=function(e,n){t.props.navigate(e.id)},t.onNodeIconClick=function(e,n){!e.nodes||e.nodes.length<1||t.props.dispatch({type:"toggle-node",payload:{path:n}})},t}return o(t,e),t.prototype.render=function(e){var t,n={nodes:(t=e.content,(t&&t.kids||[]).map(function(e){return function e(t){return{id:t,text:t.name,expanded:!t.collapsed,nodes:(t.kids||[]).map(function(t){return e(t)})}}(e)})),outline:!0};return a.h("div",{className:"ar-contents"},a.h(s.TreeView,i({},n,{onNodeClick:this.onNodeClick,onNodeIconClick:this.onNodeIconClick})))},t}(a.Component)},,,function(e,t,n){"use strict";n.r(t);n(318);var r=n(151),o=n(1),i=n(6),a=n(2),s=n(14),l=n.n(s),c=n(0),u=n(38),d={export:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M23,12L19,8V11H10V13H19V16M1,18V6C1,4.89 1.9,4 3,4H15A2,2 0 0,1 17,6V9H15V6H3V18H15V15H17V18A2,2 0 0,1 15,20H3A2,2 0 0,1 1,18Z"}))},fileMultiple:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M15,7H20.5L15,1.5V7M8,0H16L22,6V18A2,2 0 0,1 20,20H8C6.89,20 6,19.1 6,18V2A2,2 0 0,1 8,0M4,4V22H20V24H4A2,2 0 0,1 2,22V4H4Z"}))},mapLegend:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3L20.34,3.03L15,5.1L9,3M8,5.45V17.15L5,18.31V6.46L8,5.45M10,5.47L14,6.87V18.53L10,17.13V5.47M19,5.7V17.54L16,18.55V6.86L19,5.7M7.46,6.3L5.57,6.97V9.12L7.46,8.45V6.3M7.46,9.05L5.57,9.72V11.87L7.46,11.2V9.05M7.46,11.8L5.57,12.47V14.62L7.46,13.95V11.8M7.46,14.55L5.57,15.22V17.37L7.46,16.7V14.55Z"}))},print:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z"}))},bookOpenVariant:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M21,5C19.89,4.65 18.67,4.5 17.5,4.5C15.55,4.5 13.45,4.9 12,6C10.55,4.9 8.45,4.5 6.5,4.5C4.55,4.5 2.45,4.9 1,6V20.65C1,20.9 1.25,21.15 1.5,21.15C1.6,21.15 1.65,21.1 1.75,21.1C3.1,20.45 5.05,20 6.5,20C8.45,20 10.55,20.4 12,21.5C13.35,20.65 15.8,20 17.5,20C19.15,20 20.85,20.3 22.25,21.05C22.35,21.1 22.4,21.1 22.5,21.1C22.75,21.1 23,20.85 23,20.6V6C22.4,5.55 21.75,5.25 21,5M21,18.5C19.9,18.15 18.7,18 17.5,18C15.8,18 13.35,18.65 12,19.5V8C13.35,7.15 15.8,6.5 17.5,6.5C18.7,6.5 19.9,6.65 21,7V18.5Z"}))},script:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M17.8,20C17.4,21.2 16.3,22 15,22H5C3.3,22 2,20.7 2,19V18H5L14.2,18C14.6,19.2 15.7,20 17,20H17.8M19,2H8C6.3,2 5,3.3 5,5V16H16V17C16,17.6 16.4,18 17,18H18V5C18,4.4 18.4,4 19,4C19.6,4 20,4.4 20,5V6H22V5C22,3.3 20.7,2 19,2Z"}))},formatListNumbers:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z"}))},tune:{type:"svg",content:Object(c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},Object(c.h)("path",{class:"gc-icon-color--text",d:"M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"}))}},p=function(e){function t(){var t=e.call(this)||this;return t.onSelect=function(e){var n=e.path;return function(){return t.props.openReport(n)}},t.setState(f()),t}return o.g(t,e),t.prototype.render=function(){var e=this;return Object(c.h)("div",{class:"viewer-reports-list"},this.state.reports.map(function(t){return n=t,Object(c.h)("div",{className:"viewer-reports-list-item",key:n.path},Object(c.h)("button",{onClick:e.onSelect({path:n.path}),title:n.path},n.name));var n}))},t}(c.Component),f=function(){return{reports:[]}};function h(e,t){return"load"===e.type?{reports:e.reports.map(function(e){return{name:e,path:e}})}:t}var g,m=function(e){var t=new i.ReactStateBinder(new i.Store(f(),h)),n=o.a({},t.connect,{openReport:function(t){e.open(new V(t,[]))}}),r=e.createPanel(Object(c.h)(p,o.a({},n)),t,"Report list",{icon:d.fileMultiple,label:a.b.t("jsviewer:panels.reports","Report list")});Object(a.d)(function(){e.updatePanel(r,{label:a.b.t("jsviewer:panels.reports","Report list")})}),fetch("/reports").then(function(e){return e.json()}).then(function(e){t.store.dispatch({type:"load",reports:e})})},v=n(105),y=function(){function e(e,t,n,r){var s=this;void 0===r&&(r=!1),this._documentView=null,this._host=e,this._startExport=t;var l=u.ExportPanel.init(),p=null;this._exportFormats=Object(v.a)(n),this._exportFormats.forEach(function(e){p||(p=e.formatKey),l=u.ExportPanel.update({type:"addFormat",payload:e},l)}),this._exportSettingsBinder=new i.ReactStateBinder(new i.Store(l,u.ExportPanel.update));var f=o.a({},this._exportSettingsBinder.connect,{startExport:function(e,t){return o.f(s,void 0,void 0,function(){return o.h(this,function(n){switch(n.label){case 0:return n.trys.push([0,,2,3]),[4,this._startExport(e,t)];case 1:return n.sent(),[3,3];case 2:return this._exportSettingsBinder.dispatch({type:"setProgress",payload:{isOpen:!1}}),[7];case 3:return[2]}})})},onCancel:function(){return!0},i18n:a.b});this._host.onDocumentViewOpen.register(function(e){s._documentView=e.view;var t=null!=s._documentView&&s._exportSettingsBinder.store.state.availableFormats.length>0;s._exportSettingsBinder.dispatch({type:"setDocumentSelected",payload:{value:t}}),s._host.updatePanel(s._panelHandle,{enabled:t})}),this._panelHandle=this._host.createPanel(Object(c.h)(u.ExportPanel.View,o.a({},f)),this._exportSettingsBinder,"Export",{label:a.b.t("jsviewer:panels.export","Export"),icon:d.export,enabled:null!=this._documentView,visible:!r}),Object(a.d)(function(){s._host.updatePanel(s._panelHandle,{label:a.b.t("jsviewer:panels.export","Export")})})}return e.prototype.setAvailableExports=function(e){this._exportSettingsBinder.dispatch({type:"setFormatsFilter",payload:{formatKeys:e||[]}}),this._exportSettingsBinder.store.state.availableFormats.length>0&&this._exportSettingsBinder.dispatch({type:"changeFormat",payload:{key:this._exportSettingsBinder.store.state.availableFormats[0].key}})},e.prototype.invokeExport=function(e,t,n){return o.f(this,void 0,void 0,function(){var r,i;return o.h(this,function(o){switch(o.label){case 0:if(r=this._exportFormats.find(function(t){return t.formatKey.toLowerCase()===(e||"").toLowerCase()}),null==this._documentView)throw new Error(a.b.t("jsviewer:errors.no-doc","No document loaded."));if(null==r)throw new Error(a.b.t("jsviewer:errors.no-fmt",{defaultValue:"Invalid format key or module for {{format}} is not loaded.",format:e}));return i=function(){return n&&n.cancel&&n.cancel.apply&&n.cancel()||!1},[4,r.invoke(this._documentView,t,function(e){},i)];case 1:return o.sent(),n&&n.callback&&n.callback.apply&&n.callback(),[2]}})})},e.prototype.showPanel=function(e){this._host.showPanel(this._panelHandle,e)},e}(),b=function(){return{content:null}},w=function(e,t){switch(e.type){case"reset":return b();default:return t}},_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onItemClick=function(e){return function(){t.props.navigate(e)}},t.renderContents=function(e,n){if(!e)return null;var r=null;return"$root"!==e.name&&(r=Object(c.h)("button",{title:e.name,onClick:t.onItemClick(e)},e.name)),Object(c.h)("div",{className:"ar-toc-item ar-toc-item--level-"+(n>3?3:n)},r,e.kids&&e.kids.length>0&&Object(c.h)("div",{className:"ar-toc-item-children"},e.kids.map(function(e){return t.renderContents(e,n+1)})))},t}return o.g(t,e),t.prototype.render=function(e,t){var n=this,r=t.content;return Object(c.h)("div",{className:"ar-contents"},r&&r.kids&&r.kids.map(function(e){return n.renderContents(e,1)})||null)},t}(c.Component),S=n(57),x=n(44),C=n(58);!function(e){e.Splitter="$split",e.Navigation="$navigation",e.Refresh="$refresh",e.Zoom="$zoom",e.MouseMode="$mousemode",e.Fullscreen="$fullscreen",e.History="$history",e.SinglePageMode="$singlepagemode",e.ContiniousMode="$continuousmode",e.GalleyMode="$galleymode",e.Print="$print"}(g||(g={}));var k=function(){return function(e,t,n){var r=this;this._viewer=e,this._keyPrefix=t,this._doLayoutFn=n,this.addItem=function(e){if(r._keys.indexOf(e.key)>=0&&e.key!==g.Splitter)throw new Error(a.b.t("jsviewer:toolbar.item-exist",{defaultValue:'The item with the same key ("{{itemKey}}") already exists.',itemKey:e.key}));r._viewer.toolbar.addItem({checked:e.checked,enabled:e.enabled,iconCssClass:e.iconCssClass,text:e.text,title:e.title,key:r.toInternalKey(e.key),action:e.action,onUpdate:e.onUpdate}),r._keys.push(e.key),r._doLayoutFn(r._keys.map(r.toInternalKey))},this.isPredefinedKey=function(e){return r._predefinedKeys.indexOf(e)>=0},this.toInternalKey=function(e){return r.isPredefinedKey(e)?e:r._keyPrefix+e},this.removeItem=function(e){r._keys=r._keys.filter(function(t){return t!==e}),r.isPredefinedKey(e)||r._viewer.toolbar.removeItem(r.toInternalKey(e)),r._doLayoutFn(r._keys.map(r.toInternalKey))},this.getKeys=function(){return r._keys},this.layout=function(e){r._keys=e,r._doLayoutFn(r._keys.map(r.toInternalKey))},this._predefinedKeys=e.toolbar.getDefaultToolbarItems().slice(0),this._keys=this._predefinedKeys.slice(0)}}(),O=function(){return function(e){var t=this;this._viewer=e,this.toggle=function(e){t._viewer.toggleToolbar(e)},this._lastDesktopKeys=e.toolbar.getDefaultToolbarItems().slice(0),this._lastMobileKeys=e.toolbar.getDefaultToolbarItems().slice(0),this._lastFullscreenKeys=e.toolbar.getDefaultToolbarItems().slice(0),this.desktop=new k(e,"$desktop_",function(n){return e.toolbar.updateLayout({default:t._lastDesktopKeys=n,fullscreen:t._lastFullscreenKeys,mobile:t._lastMobileKeys})}),this.mobile=new k(e,"$mobile_",function(n){return e.toolbar.updateLayout({default:t._lastDesktopKeys,fullscreen:t._lastFullscreenKeys,mobile:t._lastMobileKeys=n})}),this.fullscreen=new k(e,"$fullscreen_",function(n){return e.toolbar.updateLayout({default:t._lastDesktopKeys,fullscreen:t._lastFullscreenKeys=n,mobile:t._lastMobileKeys})})}}(),P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={categoryLabel:"",valueLabel:"",xPos:0,yPos:0},t.handleMouseOver=function(e){if(e.target){var n=e.target.dataset?e.target.dataset.pointTooltip:null,r=e.target.dataset?e.target.dataset.categoryLabel:null;if(n)return void t.setState({categoryLabel:r,valueLabel:n,xPos:e.clientX,yPos:e.clientY})}t.setState({xPos:0,yPos:0,categoryLabel:"",valueLabel:""})},t}return o.g(t,e),t.prototype.componentDidMount=function(){window.addEventListener("mouseover",this.handleMouseOver)},t.prototype.componentWillUnmount=function(){window.removeEventListener("mouseover",this.handleMouseOver)},t.prototype.render=function(){var e=this.state,t=e.xPos,n=e.yPos,r=e.categoryLabel,o=e.valueLabel,i={left:t+15,top:n-15};return""!==r?Object(c.h)("div",{className:"gces-viewer-tooltip",style:i},r,Object(c.h)("br",null),o):Object(c.h)("div",{className:"gces-viewer-tooltip",style:i},o)},t}(c.Component),T=n(35),M=n(59),D=n(25),j=function(){return function(e,t){this.locked=t,this.disposable=e}}(),L=function(){function e(e){var t=this;this._docs=new Map,this._apiClient=e,this._keepAliveTimer=window.setInterval(function(){t.keepAlive()},6e4)}return e.prototype.contains=function(e){return this._docs.has(e)},e.prototype.lock=function(e){var t=this._docs.get(e);this._docs.set(e,new j(!t||t.disposable,!0))},e.prototype.addToHistory=function(e){var t=this._docs.get(e);this._docs.set(e,new j(!1,t.locked))},e.prototype.unLock=function(e){var t=this._docs.get(e);t&&this._docs.set(e,new j(t.disposable,!1))},e.prototype.remove=function(e){this._docs.delete(e)},e.prototype.cleanUp=function(e,t){return o.f(this,void 0,void 0,function(){var n=this;return o.h(this,function(r){switch(r.label){case 0:return[4,this.asyncForeach(this._docs,function(r,i){return o.f(n,void 0,void 0,function(){return o.h(this,function(n){switch(n.label){case 0:return!e&&!i.disposable||t===r||i.locked?[3,2]:[4,this.disposeDocument(r)];case 1:n.sent(),n.label=2;case 2:return[2]}})})})];case 1:return r.sent(),[2]}})})},e.prototype.dispose=function(){var e,t;try{for(var n=o.k(this._docs),r=n.next();!r.done;r=n.next()){var i=r.value[0];this._docs.delete(i),this._apiClient.closeSessionSync(i)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}window.clearInterval(this._keepAliveTimer)},e.prototype.keepAlive=function(){var e=this;this._docs.forEach(function(t,n){e._apiClient.keepAlive(n)})},e.prototype.disposeDocument=function(e){return o.f(this,void 0,void 0,function(){return o.h(this,function(t){switch(t.label){case 0:return this._docs.delete(e),[4,this._apiClient.closeSession(e)];case 1:return t.sent(),[2]}})})},e.prototype.asyncForeach=function(e,t){return o.f(this,void 0,void 0,function(){var n,r,i,a,s,l,c,u;return o.h(this,function(d){switch(d.label){case 0:d.trys.push([0,5,6,7]),n=o.k(e),r=n.next(),d.label=1;case 1:return r.done?[3,4]:(i=r.value,a=i[0],s=i[1],[4,t(a,s)]);case 2:d.sent(),d.label=3;case 3:return r=n.next(),[3,1];case 4:return[3,7];case 5:return l=d.sent(),c={error:l},[3,7];case 6:try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(c)throw c.error}return[7];case 7:return[2,!0]}})})},e}(),N=n(28),E=n.n(N),A=function(){function e(e,t,n,r,s,l){var c=this;this._reportId=e,this._apiClient=t,this._documentKeeper=n,this._getGalleyMode=r,this._reportLoaded=s,this._documentLoaded=l,this._paramStore=new i.Store(u.ParameterPanel.init(),u.ParameterPanel.update),this._interactivityActions=[],this.storeInteractivity=function(e){var t;return(t=c._interactivityActions).push.apply(t,o.j(e))},this.canView=function(){return c._paramStore.state.isValid},this.createView=function(e,t){return o.f(c,void 0,void 0,function(){var n;return o.h(this,function(r){switch(r.label){case 0:return this.canView()?(n=null!=e?e.parameters:this._paramStore.state,this.truncateInteractivityStore(0),[4,this.renderImpl(!1,this._reportId,t,n)]):(t.reportError({message:a.b.t("jsviewer:errors.no-params-render","Cannot render (not all parameters specified)")}),[2]);case 1:return[2,r.sent()]}})})},this.updateView=function(e,t){return o.f(c,void 0,void 0,function(){var n,r,i;return o.h(this,function(o){switch(o.label){case 0:return this.canView()?(r=(n=e).documentId,i=n.parameters,[4,this.renderImpl(!0,r,t,i)]):(t.reportError({message:a.b.t("jsviewer:errors.no-params-refresh.","Refresh failed (not all parameters specified)"),severity:"warn"}),[2]);case 1:return[2,o.sent()]}})})},this.renderImpl=function(e,t,n,r){return o.f(c,void 0,void 0,function(){var s,l,c,u,d,p,f,h,g,m,v,y,b,w,_,S,x=this;return o.h(this,function(C){switch(C.label){case 0:return n.progress({phase:"starting",message:"Rendering report"}),s=this._getGalleyMode(),[4,this.sendRenderRequest(e,t,r,s)];case 1:if(!(l=C.sent()).ok)throw new i.PluginModel.DocumentError(a.b.t("jsviewer:errors.render-doc","Failed rendering document"),l.requestError);if(u=function(e,t){return o.f(x,void 0,void 0,function(){return o.h(this,function(r){switch(r.label){case 0:return[4,n.progress({phase:"cancelled"})];case 1:return r.sent(),[4,this._apiClient.cancelRender(t)];case 2:return r.sent(),this._documentKeeper.remove(e),[2]}})})},!(d=l.response))return[2,c];switch(d.status){case"Failed":return[3,2];case"Cancelled":return[3,3];case"Complete":return[3,5];case"Running":return[3,9]}return[3,17];case 2:throw p=d.error?this.localizeErrorDetails(d.errorCode,d.errorData,d.error):"",new i.PluginModel.DocumentError(a.b.t("jsviewer:errors.render-doc","Failed rendering document"),p);case 3:return[4,n.progress({phase:"cancelled"})];case 4:return C.sent(),[2];case 5:return m=d.documentId,v=d.viewId,f=d.pageCount,c=new D.a(m,v,this._apiClient,r,s,this._reportId,this._documentKeeper,this.info.type),h=new D.c(c,this._apiClient,n),this._documentKeeper.lock(m),[4,h.renderComplete(f)];case 6:return C.sent()!==D.b.Canceled?[3,8]:[4,u(m,v)];case 7:return C.sent(),[2];case 8:return this._documentKeeper.unLock(m),[3,17];case 9:return g=d.progress,m=g.documentId,v=g.viewId,c=new D.a(m,v,this._apiClient,r,s,this._reportId,this._documentKeeper,this.info.type),y=new D.c(c,this._apiClient,n),this._documentKeeper.lock(m),[4,(w=function(e){return o.f(x,void 0,void 0,function(){return o.h(this,function(t){switch(t.label){case 0:return[4,y.updatePageCount(e)];case 1:return b=t.sent(),[2]}})})})(d.progress.pageCount)];case 10:return C.sent(),[4,this.sendProgressRequests(v,n.cancel,w)];case 11:return(_=C.sent())&&b!==D.b.Canceled?[3,13]:[4,u(m,v)];case 12:return C.sent(),[2];case 13:return S=_.pageCount,[4,y.renderComplete(S)];case 14:return C.sent()!==D.b.Canceled?[3,16]:[4,u(m,v)];case 15:return C.sent(),[2];case 16:return this._documentKeeper.unLock(m),[3,17];case 17:return this._documentLoaded&&this._documentLoaded(),[2,c]}})})},this.sendRenderRequest=function(e,t,n,r){return o.f(c,void 0,void 0,function(){var i,a,s,l=this;return o.h(this,function(o){switch(o.label){case 0:return i={},n.parameters.forEach(function(e){if(l.isSelectAll(e)||"Date"!==e.descriptor.dataType&&"DateTime"!==e.descriptor.dataType)i[e.descriptor.name]=e.values;else{for(var t=[],n=0;n<e.values.length;n++){var r=e.values[n];null!=r&&(t[n]=E()(r).format("YYYY-MM-DDTHH:mm:ss.msz"))}i[e.descriptor.name]=t}}),a={Parameters:i,InteractiveActions:this._interactivityActions.map(function(e){return e.Data}),Settings:{RenderMode:r?"Galley":"Paginated"}},e?[4,this._apiClient.renderViewRequest(t,a)]:[3,2];case 1:return s=o.sent(),[3,4];case 2:return[4,this._apiClient.renderReportRequest(t,a)];case 3:s=o.sent(),o.label=4;case 4:return[2,s]}})})},this.sendProgressRequests=function(e,t,n){return o.f(c,void 0,void 0,function(){var r,s;return o.h(this,function(o){switch(o.label){case 0:return t.isCancellationRequested?[2]:[4,this._apiClient.getProgress(e)];case 1:if(!(s=o.sent()).ok)throw new i.PluginModel.DocumentError(a.b.t("jsviewer:errors.render-doc","Failed rendering document"),s.requestError);return(r=s.response)?[4,n(s.response.pageCount)]:[2];case 2:o.sent(),o.label=3;case 3:if("Running"===r.status)return[3,0];o.label=4;case 4:return[2,r]}})})},this.localizeErrorDetails=function(e,t,n){switch(e){case"NoLicense":return a.b.t("jsviewer:errors.noLicense","No license");case"TrialExpired":return a.b.t("jsviewer:errors.trialExpired","Trial period has been expired.");case"ProfessionalRequired":return a.b.t("jsviewer:errors.professionalRequired","Professional license required.");case"NoDataSets":return a.b.t("jsviewer:errors.noDataSets","No data sets");case"SubreportNotFound":return a.b.t("jsviewer:errors.subreportNotFoundError",{defaultValue:"Unable to locate subreport: {{subName}}",subName:t[0]});case"DataSetNotFound":return a.b.t("jsviewer:errors.dataSetNotFound",{defaultValue:"A DataSet {{dataSetName}} referenced in the report could not be found.",dataSetName:t[0]});case"DataSetNotSpecified":return a.b.t("jsviewer:errors.dataSetNotSpecified","DataSet name needs to be specified in the Fixed Page Layout settings.");case"SubreportNotSpecified":return a.b.t("jsviewer:errors.subreportNotSpecified",{defaultValue:"Subreport name is not specified for a subreport report item {{itemName}}",itemName:t[0]});case"InvalidColumnSpacing":return a.b.t("jsviewer:errors.invalidColumnSpacing","When Page (width is set in report PageSize) is divided into columns, the width of the column must be greater than zero and the column spacing.");case"InfinitePages":return a.b.t("jsviewer:errors.infinitePages","Endless loop detected.");case"ScriptCompilationFailed":return a.b.t("jsviewer:errors.scriptCompilationFailed","Script compilation failed.");case"CommandTextIsEmpty":return a.b.t("jsviewer:errors.commandTextIsEmpty","Command text is empty.");case"InvalidKeyInConnectionString":return a.b.t("jsviewer:errors.invalidKeyInConnectionString",{defaultValue:"Invalid key in connection string:{{invalidKey}}",invalidKey:t[0]});case"JsonDataSourceNotFound":return a.b.t("jsviewer:errors.jsonDataSourceNotFound","The json data source has not been found.");case"ResourceNotFound":return a.b.t("jsviewer:errors.resourceNotFound",{defaultValue:"Unable to load resource from:{{uri}}",uri:t[0]});case"MissingElement":return a.b.t("jsviewer:errors.datasourceMissingElement",{defaultValue:"Missing a required element in {{datasourceName}} shared data source XML document.",datasourceName:t[0]});case"CanNotBeLoaded":case"SharedDataSourceNotLoaded":return a.b.t("jsviewer:errors.invalidSharedDataSource","The shared data source no longer exists or its content is invalid.");default:return n}},this.getValues=function(e,t){return o.f(c,void 0,void 0,function(){return o.h(this,function(n){switch(n.label){case 0:return[4,this._apiClient.getParamValues(this._reportId,e,t)];case 1:return[2,n.sent()]}})})},this.setValueHandler=function(e,t,n){console.log("setvalue",t,n),u.ParameterPanel.setParameterValue(c.getValues,e,a.b,c._paramStore.state.parameters,t,n)},this.setReport=function(e,t){return o.f(c,void 0,void 0,function(){var n,r,i,s;return o.h(this,function(l){switch(l.label){case 0:return[4,this._apiClient.getReportInfo(this._reportId)];case 1:return n=l.sent(),r=this.processReportInfoContract(n),i=r.reportInfo,s=r.renderMode,this.info=o.a({},i,{renderMode:s}),this._reportLoaded&&this._reportLoaded(i),[4,u.ParameterPanel.setReport(this.getValues,e,a.b,i.parameters,t)];case 2:return l.sent(),[2]}})})}}return Object.defineProperty(e.prototype,"paramStore",{get:function(){return this._paramStore},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storeI11yPos",{get:function(){return this._interactivityActions.length},enumerable:!0,configurable:!0}),e.prototype.truncateInteractivityStore=function(e){e<this._interactivityActions.length&&(this._interactivityActions=this._interactivityActions.slice(0,e))},e.prototype.isSelectAll=function(e){return e.values&&1===e.values.length&&e.values[0]&&e.values[0].hasOwnProperty("selectAll")},e.prototype.processReportInfoContract=function(e){var t;if(e&&e.displayType)switch(e.displayType.toLowerCase()){case"single":case"continuous":break;case"galley":e.displayType="Single",t="Galley";break;case"page":t="Paginated";break;default:throw new Error(a.b.t("jsviewer:errors.unknown-display",{defaultValue:"Unknown display type {{displayType}}",displayType:e.displayType}))}return{reportInfo:e,renderMode:t}},e}(),V=function(){return function(e,t){var n=this;this.uri=e,this.pluginKey="ar",this.params=[],t[0]&&t[0].Name?this.params=t:t.forEach(function(e){return n.params.push({Name:e.name,Omit:e.omit,Values:e.values})})}}(),I=function(){function e(e,t){var n=this;this._initOptions=t,this.pluginKey="ar",this._isGalleyMode=null,this._documentView=null,this._userDefinedGalleyMode=null,this.setValue=function(e,t){n._svh?n._svh(e,t):console.error("setValue: "+a.b.t("jsviewer:errors.no-doc-cur","No current document!"),e,t)},this.onNavigate=function(e){var t={Type:"goBookmark",Target:{pageNumber:e.page,selector:"#"+e.bookmark}};n.onAction(t.Type),n._host.processAction(t),n._host.closePanelOnNarrowScreen(n._contentsPanel)},this.runCommand=function(){n._host.processCommand({type:"Run"})},this.showHideParametersPanel=function(e){if(e){var t=e,r=t.paramStore;r.state.parameters.findIndex(function(e){return!e.descriptor.hidden})>=0?(n._svh=function(e,n){return t.setValueHandler(r.dispatch,e,n)},n._host.showPanel(n._paramsPanel,!0),n._host.bindPanel(n._paramsPanel,r),e.canView()||n._host.bringPanelToFront(n._paramsPanel)):n._host.showPanel(n._paramsPanel,!1)}else n._host.showPanel(n._paramsPanel,!1)},this.openDocument=function(e,t){return o.f(n,void 0,void 0,function(){var n,r,i,s,l=this;return o.h(this,function(o){switch(o.label){case 0:return n=e.uri,r=new A(n,this._apiClient,this._workingDocs,function(){return l.getGalleyMode()},this._initOptions.reportLoaded,function(){l._initOptions.documentLoaded&&l._initOptions.documentLoaded()}),i={},e.params.forEach(function(e){return i[e.Name]=e.Values}),s=!1,r.paramStore.subscribe(function(e){e.isReady&&(e.parameters.every(function(e){return e.descriptor.hidden||e.state===S.ParameterStatus.ok})&&e.parameters.some(function(e){return e.descriptor.hidden&&e.state!==S.ParameterStatus.ok})?s||(l._host.reportError({message:a.b.t("jsviewer:errors.params-hidden","Some hidden parameters are invalid.")}),s=!0):s=!1)}),t&&t.isCancellationRequested?[3,3]:[3,1];case 1:return[4,r.setReport(r.paramStore.dispatch,i)];case 2:o.sent(),this.setGalleyModeOnOpenDocument(r),this.setZoomModeOnOpenDocument(r),this.filterAvailableExports(r),o.label=3;case 3:return[2,r]}})})},this.addReportList=function(){m(n._host)},Object(a.d)(function(){n._host.updatePanel(n._paramsPanel,{label:a.b.t("jsviewer:panels.parameters","Parameters")}),n._host.updatePanel(n._contentsPanel,{label:a.b.t("jsviewer:panels.toc","Table of Contents")})}),this._host=e;var r=new i.ReactStateBinder(new i.Store(u.ParameterPanel.init(),u.ParameterPanel.update)),s=t.reportService,l=void 0===s?{}:s,p=l.url,f=void 0===p?null:p,h=l.securityToken,g=void 0===h?null:h;this._apiClient=new M.a(f,g||""),this._workingDocs=new L(this._apiClient);var v=function(e,t){return o.f(n,void 0,void 0,function(){return o.h(this,function(n){return[2,this.exportDocument(e,t)]})})};this._rdlExportPanelContract=new y(this._host,v,T.a.Rdl),this._pageExportPanelContract=new y(this._host,v,T.a.Page,!0),this._sectionExportPanelContract=new y(this._host,v,T.a.Section,!0),this._paramsPanel=this._host.createPanel(Object(c.h)(u.ParameterPanel.View,o.a({},r.connect,{runCommand:this.runCommand,setValue:this.setValue})),r,"Parameters",{label:a.b.t("jsviewer:panels.parameters","Parameters"),icon:d.tune,enabled:!0,visible:!1});var x=new i.ReactStateBinder(new i.Store(b(),w));this._contentsPanel=this._host.createPanel(Object(c.h)(_,o.a({},x.connect,{navigate:this.onNavigate})),x,"Table of Contents",{label:a.b.t("jsviewer:panels.toc","Table of Contents"),icon:d.formatListNumbers,enabled:!0,visible:!1}),this._host.onDocumentOpen.register(function(e){var t=e.document;n.showHideParametersPanel(t),n.setGalleyModeOnOpenDocument(t),n._host.showPanel(n._contentsPanel,!1)}),this._host.onDocumentProgress.register(function(e){"complete"===e.phase&&n._documentView&&(n._documentView.tocStore.state.content&&n._documentView.tocStore.state.content.kids.length>0?n._host.showPanel(n._contentsPanel,!0):n._host.showPanel(n._contentsPanel,!1))}),this._isGalleyMode="Galley"===t.renderMode,this.initToolbarButtons()}return Object.defineProperty(e.prototype,"userDefinedGalleyMode",{get:function(){return this._userDefinedGalleyMode},set:function(e){this._userDefinedGalleyMode=this._isGalleyMode=e},enumerable:!0,configurable:!0}),e.prototype.onAction=function(e,t){void 0===t&&(t=[]),this._initOptions.action&&this._initOptions.action(e,t)},e.prototype.hasHistory=function(){return this._host.commandStatus.canGoHistory.Back||this._host.commandStatus.canGoHistory.Fwd||this._host.commandStatus.canGoHistory.Parent},e.prototype.setGalleyModeOnOpenDocument=function(e){var t=e;this._galleyModeAllowed=!!t&&t.info.galleyModeAllowed,this._galleyModeAllowed?t.info.renderMode?this._isGalleyMode="Galley"===t.info.renderMode:null!=this.userDefinedGalleyMode?this._isGalleyMode=this.userDefinedGalleyMode:this._initOptions.renderMode?this._isGalleyMode="Galley"===this._initOptions.renderMode:this._isGalleyMode=!1:this._isGalleyMode=!1},e.prototype.setZoomModeOnOpenDocument=function(e){switch(e.info.sizeType){case"FitToPage":this._host.zoom.mode=i.ZoomMode.WholePage;break;case"FitToWidth":this._host.zoom.mode=i.ZoomMode.PageWidth;break;case"Stretch":case"Default":default:this._host.zoom.mode=i.ZoomMode.Value}},e.prototype.filterExports=function(e,t){return e.filter(function(e){return t.find(function(t){return t.toLowerCase()===e.toLowerCase()})})},e.prototype.filterAvailableExports=function(e){var t=e.info.exports;this._initOptions&&this._initOptions.availableExports&&this._initOptions.availableExports.length>0&&(t=this.filterExports(t,this._initOptions.availableExports)),0===t.length&&(t=[""]);var n=1!==t.length||""!==t[0];switch(this._sectionExportPanelContract.showPanel(!1),this._pageExportPanelContract.showPanel(!1),this._rdlExportPanelContract.showPanel(!1),e.info.type){case T.a.Section:this._sectionExportPanelContract.setAvailableExports(t),this._sectionExportPanelContract.showPanel(n);break;case T.a.Rdl:this._rdlExportPanelContract.setAvailableExports(t),this._rdlExportPanelContract.showPanel(n);break;case T.a.Page:this._pageExportPanelContract.setAvailableExports(t),this._pageExportPanelContract.showPanel(n)}},e.prototype.renderPage=function(e){return{kind:"html",html:e.content}},e.prototype.renderHighlightPage=function(e,t){var n=e.content;if(t.length>0){var r=l()("<div/>").html(n),o=Object(D.f)(r);if(o.prop("innerHTML"))Object(D.g)(o,t[0]);else{var i=Object(D.e)(n);r=l()("<div/>").html(i),Object(D.g)(r,t[0])}n=r.html()}return{kind:"html",html:n}},e.prototype.onOpenDocumentView=function(e){if(this._documentView=e,null!=this._documentView){this._workingDocs.cleanUp(!this.hasHistory(),this._documentView.documentId),this._isGalleyMode=this._documentView.galleyMode;var t=this._documentView.tocStore;this._host.bindPanel(this._contentsPanel,t),this._host.toolbar.updateItem("galleymode"),this._host.closePanelOnNarrowScreen(this._paramsPanel),this._host.closePanelOnNarrowScreen(this._contentsPanel)}},e.prototype.resolveAction=function(e,t){if("click"!==t.type||!t.target)return null;var n=t.target,r=n.attributes.getNamedItem("data-action")||null!=n.parentNode&&null!=n.parentNode.attributes&&n.parentNode.attributes.getNamedItem("data-action");if(!r)return null;var i=JSON.parse(r.value),a=i.Type,s=o.i(i,["Type"]);switch(this.onAction(a,s.Parameters),a){case null:case void 0:return null;case"bookmark":var l=s.Target,c=l.pageNumber,u=l.bookmark;if(null!=c&&+c>=0)return{Type:"goBookmark",Target:{pageNumber:c,selector:"#"+u}};break;case"hyperlink":return o.a({Type:"goHyperlink"},s);case"drillthrough":this._workingDocs.addToHistory(this._documentView.documentId);var d=s.Target;/[.](rdl|rdlx)$/i.test(d)||(d+=".rdlx");var p=s.Parameters.map(function(e){return{Name:e.Name,Omit:e.Omit,Values:(t=e.Value,Array.isArray(t)?t:[t])};var t});return{Type:"drillDocument",Target:new V(d,p)}}return o.a({Type:a},s)},e.prototype.processAction=function(e,t){var n=e.document;switch(this.onAction(t.Type),t.Type){case"toggle":case"sort":e.pushEvent({type:"I11yItemClicked",iStorePos:n.storeI11yPos,a:t});break;case"toggle-galleymode":this.userDefinedGalleyMode=void 0!==t.value?t.value:!this._isGalleyMode,e.processCommand({type:"UpdateView"});break;case"print":t.executeTask(function(){return e.view.print()})}return!1},e.prototype.processEvent=function(e,t,n){var r=e.document;switch(t.type){case"I11yItemClicked":({backward:function(){return r.truncateInteractivityStore(t.iStorePos)},forward:function(){return r.storeInteractivity([t.a])}})[n](),e.processCommand({type:"UpdateView"});break;default:console.error(a.b.t("jsviewer:errors.unknown-event","Unknown event was not processed"),t)}},e.prototype.initToolbarButtons=function(){var e=this;this._host.toolbar.addItem({key:g.Print,icon:d.print,title:a.b.t("jsviewer:toolbar.print-btn","Print"),enabled:!1,action:function(){var t={title:a.b.t("jsviewer:toolbar.print-preparing","Preparing print..."),supportCancel:!1};e._host.processCustomAction({Type:"print",executeTask:function(n){return e._host.executeTask(n,t)}})},onUpdate:function(t){return{enabled:e._host.commandStatus.canRefresh&&t.state.session.pageCount>0&&t.state.session.status!==i.ViewerStatus.Loading&&!e.getGalleyMode()}}}),this._host.toolbar.addItem({key:g.SinglePageMode,icon:d.bookOpenVariant,title:a.b.t("jsviewer:toolbar.mode-single","Single Page View"),checked:!0,enabled:!1,action:function(){e._host.viewMode=i.ViewMode.SinglePage},onUpdate:function(t){return{checked:t.state.settings.mode===i.ViewMode.SinglePage,enabled:e._host.commandStatus.canRefresh&&t.state.session.pageCount>0&&t.state.session.status!==i.ViewerStatus.Loading}}}),this._host.toolbar.addItem({key:g.ContiniousMode,icon:d.script,title:a.b.t("jsviewer:toolbar.mode-continious","Continuous View"),enabled:!1,action:function(){e._host.viewMode=i.ViewMode.Continuous},onUpdate:function(t){return{checked:t.state.settings.mode===i.ViewMode.Continuous,enabled:e._host.commandStatus.canRefresh&&t.state.session.pageCount>0&&t.state.session.status!==i.ViewerStatus.Loading}}}),this._host.toolbar.addItem({key:g.GalleyMode,icon:d.mapLegend,title:a.b.t("jsviewer:toolbar.galley-mode","Galley Mode"),checked:!1,enabled:!1,action:function(){e.toggleGalleyMode()},onUpdate:function(t){return{checked:e._isGalleyMode||!1,enabled:null!==e._isGalleyMode&&e._galleyModeAllowed&&t.state.session.pageCount>0&&t.state.session.status!==i.ViewerStatus.Loading}}})},e.prototype.getGalleyMode=function(){return this._isGalleyMode||!1},e.prototype.toggleGalleyMode=function(e){this._host.processCustomAction({Type:"toggle-galleymode",value:e})},e.prototype.getToc=function(){return this._documentView?this._documentView.tocStore.state.content?this._documentView&&this._documentView.tocStore.state.content:(this._host.reportError({message:a.b.t("jsviewer:errors.no-toc","No TOC content.")}),null):(this._host.reportError({message:a.b.t("jsviewer:errors.no-doc","No document loaded.")}),null)},e.prototype.exportDocument=function(e,t,n,r){var o=this;if(void 0===r&&(r=!0),null!=this._documentView){this._documentView.export(e,t,n,r,function(e){o._host.reportError({message:a.b.t("jsviewer:errors.export-report","Export report error."),details:e.message,severity:"error"})})}else alert(a.b.t("jsviewer:errors.no-doc-cur","No current document!"))},e.prototype.search=function(e,t){if(!this._documentView)throw new Error(a.b.t("jsviewer:errors.no-doc","No document loaded."));return t=t||new x.SearchResult(-1,"",new C.Rect(0,0,0,0),-1,new x.Range(0,0)),this._documentView.search(e,t)},e.prototype.dispose=function(e){void 0===e&&(e=!1),this._apiClient.dispose(),this._workingDocs.dispose(),e&&this._host&&this._host.dispose()},e}();Object(c.render)(Object(c.h)(P,null),document.body);var H,R=I,F=function(){return function(e){var t=this;this._viewer=e,this.toggle=function(e){t._viewer.toggleSidebar(e)}}}();
- // @preserve jQuery.floatThead 1.4.5 - http://mkoryak.github.io/floatThead/ - Copyright (c) 2012 - 2016 Misha Koryak
- // @license MIT
- !function(e){e.floatThead=e.floatThead||{},e.floatThead.defaults={headerCellSelector:"tr:visible:first>*:visible",zIndex:1001,position:"auto",top:0,bottom:0,scrollContainer:function(t){return e([])},responsiveContainer:function(t){return e([])},getSizingRow:function(e,t,n){return e.find("tbody tr:visible:first>*:visible")},floatTableClass:"floatThead-table",floatWrapperClass:"floatThead-wrapper",floatContainerClass:"floatThead-container",copyTableClass:!0,autoReflow:!1,debug:!1,support:{bootstrap:!0,datatables:!0,jqueryUI:!0,perfectScrollbar:!0}};var t=window._,n="undefined"!=typeof MutationObserver,r=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];e=1+e,t.innerHTML="\x3c!--[if gt IE "+e+"]><i><![endif]--\x3e",n[0];);return 4<e?e:document.documentMode}(),o=/Gecko\//.test(navigator.userAgent),i=/WebKit\//.test(navigator.userAgent);r||o||i||(r=11);var a=function(){if(i){var t=e("<div>").css("width",0).append(e("<table>").css("max-width","100%").append(e("<tr>").append(e("<th>").append(e("<div>").css("min-width",100).text("X")))));e("body").append(t);var n=0==t.find("table").width();return t.remove(),n}return!1},s=!o&&!r,l=e(window);if(!window.matchMedia){var c=window.onbeforeprint,u=window.onafterprint;window.onbeforeprint=function(){c&&c(),l.triggerHandler("beforeprint")},window.onafterprint=function(){u&&u(),l.triggerHandler("afterprint")}}function d(t){var n=t[0].parentElement;do{if("visible"!=window.getComputedStyle(n).getPropertyValue("overflow"))break}while(n=n.parentElement);return n==document.body?e([]):e(n)}function p(e){window&&window.console&&window.console.error&&window.console.error("jQuery.floatThead: "+e)}function f(e,t,n){var r=n?"outerWidth":"width";if(a&&e.css("max-width")){var o=0;n&&(o+=parseInt(e.css("borderLeft"),10),o+=parseInt(e.css("borderRight"),10));for(var i=0;i<t.length;i++)o+=t.get(i).offsetWidth;return o}return e[r]()}e.fn.floatThead=function(o){if(o=o||{},!t&&!(t=window._||e.floatThead._))throw new Error("jquery.floatThead-slim.js requires underscore. You should use the non-lite version since you do not have underscore.");if(r<8)return this;var c=null;if(t.isFunction(a)&&(a=a()),t.isString(o)){var u=o,h=Array.prototype.slice.call(arguments,1),g=this;return this.filter("table").each(function(){var n=e(this),r=n.data("floatThead-lazy");r&&n.floatThead(r);var o=n.data("floatThead-attached");if(o&&t.isFunction(o[u])){var i=o[u].apply(this,h);void 0!==i&&(g=i)}}),g}var m=e.extend({},e.floatThead.defaults||{},o);if(e.each(o,function(n,r){n in e.floatThead.defaults||!m.debug||p("Used ["+n+"] key to init plugin, but that param is not an option for the plugin. Valid options are: "+t.keys(e.floatThead.defaults).join(", "))}),m.debug){var v=e.fn.jquery.split(".");1==parseInt(v[0],10)&&parseInt(v[1],10)<=7&&p("jQuery version "+e.fn.jquery+" detected! This plugin supports 1.8 or better, or 1.7.x with jQuery UI 1.8.24 -> http://jqueryui.com/resources/download/jquery-ui-1.8.24.zip")}return this.filter(":not(."+m.floatTableClass+")").each(function(){var o=t.uniqueId(),a=e(this);e(a.parent());if(a.data("floatThead-attached"))return!0;if(!a.is("table"))throw new Error('jQuery.floatThead must be run on a table element. ex: $("table").floatThead();');n=m.autoReflow&&n;var u=a.children("thead:first"),h=u.clone().css("display","none");a.prepend(h);var g=a.children("tbody:first");if(0==u.length||0==g.length)return a.data("floatThead-lazy",m),void a.unbind("reflow").one("reflow",function(){a.floatThead(m)});a.data("floatThead-lazy")&&a.unbind("reflow"),a.data("floatThead-lazy",!1);var v,y,b=!0,w=!1,_={vertical:0,horizontal:0},S=function(){var t=e("<div>").css({width:50,height:50,"overflow-y":"scroll",position:"absolute",top:-200,left:-200}).append(e("<div>").css({height:100,width:"100%"}));e("body").append(t);var n=t.innerWidth(),r=e("div",t).innerWidth();return t.remove(),n-r}(),x=0;!0===m.scrollContainer&&(m.scrollContainer=d);var C=m.scrollContainer(a)||e([]),k=C.length>0,O=k?e([]):m.responsiveContainer(a)||e([]),P=ce(),T=null;void 0!==m.useAbsolutePositioning&&(m.position="auto",m.useAbsolutePositioning&&(m.position=m.useAbsolutePositioning?"absolute":"fixed"),p("option 'useAbsolutePositioning' has been removed in v1.3.0, use `position:'"+m.position+"'` instead. See docs for more info: http://mkoryak.github.io/floatThead/#options")),void 0!==m.scrollingTop&&(m.top=m.scrollingTop,p("option 'scrollingTop' has been renamed to 'top' in v1.3.0. See docs for more info: http://mkoryak.github.io/floatThead/#options")),void 0!==m.scrollingBottom&&(m.bottom=m.scrollingBottom,p("option 'scrollingBottom' has been renamed to 'bottom' in v1.3.0. See docs for more info: http://mkoryak.github.io/floatThead/#options")),"auto"==m.position?T=null:"fixed"==m.position?T=!1:"absolute"==m.position?T=!0:m.debug&&p('Invalid value given to "position" option, valid is "fixed", "absolute" and "auto". You passed: ',m.position),null==T&&(T=k);var M=a.find("caption"),D=1==M.length;if(D)var j="top"===(M.css("caption-side")||M.attr("align")||"top");var L=e("<fthfoot>").css({display:"table-footer-group","border-spacing":0,height:0,"border-collapse":"collapse",visibility:"hidden"}),N=!1,E=e([]),A=r<=9&&!k&&T,V=e("<table/>"),I=e("<colgroup/>"),H=a.children("colgroup:first"),R=!0;0==H.length&&(H=e("<colgroup/>"),R=!1);var F=e("<fthtr>").css({display:"table-row","border-spacing":0,height:0,"border-collapse":"collapse"}),z=e("<div>").css("overflow","hidden").attr("aria-hidden","true"),B=!1,W=e([]),U=e([]),Y=e([]);a.prepend(H),s&&(L.append(F),a.append(L)),V.append(I),z.append(V),m.copyTableClass&&V.attr("class",a.attr("class")),V.attr({cellpadding:a.attr("cellpadding"),cellspacing:a.attr("cellspacing"),border:a.attr("border")});var $,G,q=a.css("display");if(V.css({borderCollapse:a.css("borderCollapse"),border:a.css("border"),display:q}),k||V.css("width","auto"),"none"==q&&(B=!0),V.addClass(m.floatTableClass).css({margin:0,"border-bottom-width":0}),$=V,G=function e(t){var n=t.css("background-color");if(!function(e){switch((e||"").replace(/\s+/g,"").toLowerCase()){case"transparent":case"":case"rgba(0,0,0,0)":return!0;default:return!1}}(n))return n;return t.is("body")?"rgb(255, 255, 255)":e(t.parent())}(a),$.css("background-color",G),T){var K=function(t,n){var r=t.css("position"),o=t;if(!("relative"==r||"absolute"==r)||n){var i={paddingLeft:t.css("paddingLeft"),paddingRight:t.css("paddingRight")};z.css(i),o=t.data("floatThead-containerWrap")||t.wrap(e("<div>").addClass(m.floatWrapperClass).css({position:"relative",clear:"both"})).parent(),t.data("floatThead-containerWrap",o),N=!0}return o};k?(E=K(C,!0)).prepend(z):(E=K(a),a.before(z))}else a.before(z);z.css({position:T?"absolute":"fixed",marginTop:0,top:T?0:"auto",zIndex:m.zIndex,willChange:"transform"}),z.addClass(m.floatContainerClass),te();var X={"table-layout":"fixed"},Z={"table-layout":a.css("tableLayout")||"auto"},J=a[0].style.width||"",Q=a.css("minWidth")||"";function ee(e){return e+".fth-"+o+".floatTHead"}function te(){v=(t.isFunction(m.top)?m.top(a):m.top)||0,y=(t.isFunction(m.bottom)?m.bottom(a):m.bottom)||0}function ne(){if(!b){if(b=!0,T){var e=f(a,Y,!0);e>E.width()&&a.css("minWidth",e)}h.css("display",""),a.css(X),V.css(X),V.append(u)}}function re(){b&&(b=!1,T&&a.width(J),h.css("display","none"),a.prepend(u),a.css(Z),V.css(Z),a.css("minWidth",Q),a.css("minWidth",f(a,Y)))}var oe=!1;function ie(e){oe!=e&&(oe=e,a.triggerHandler("floatThead",[e,z]))}function ae(e){T!=e&&(T=e,z.css({position:T?"absolute":"fixed"}))}function se(){var t,n=function(){var t,n=u.find(m.headerCellSelector);if(R?t=H.find("col").length:(t=0,n.each(function(){t+=parseInt(e(this).attr("colspan")||1,10)})),t!=x){x=t;for(var r,o=[],i=[],a=[],l=0;l<t;l++)r=n.eq(l).text(),o.push('<th class="floatThead-col" aria-label="'+r+'"/>'),i.push("<col/>"),a.push(e("<fthtd>").css({display:"table-cell",height:0,width:"auto"}));i=i.join(""),o=o.join(""),s&&(F.empty(),F.append(a),Y=F.find("fthtd")),R||H.html(i),W=H.find("col"),I.html(i),U=I.find("col")}return t}();return function(){if(!w){var e=z.scrollLeft();W=H.find("col");var o,i,l=function(e,t,n,r){return s?n:r?m.getSizingRow(e,t,n):t}(a,W,Y,r);if(l.length==n&&n>0){if(!R)for(t=0;t<n;t++)W.eq(t).css("width","");re();var c=[];for(t=0;t<n;t++)c[t]=(o=l.get(t),i=void 0,(i=o.getBoundingClientRect()).width||i.right-i.left);for(t=0;t<n;t++)U.eq(t).width(c[t]),W.eq(t).width(c[t]);ne()}else V.append(u),a.css(Z),V.css(Z);z.scrollLeft(e),a.triggerHandler("reflowed",[z])}}}function le(e){var t=C.css("border-"+e+"-width"),n=0;return t&&~t.indexOf("px")&&(n=parseInt(t,10)),n}function ce(){return"auto"==O.css("overflow-x")}function ue(){var e,t=C.scrollTop(),n=C.scrollLeft(),r=0,o=0,s=D?M.outerHeight(!0):0,c=j?s:-s,u=z.height(),d=a.offset(),p=0,f=0;if(k){var h=C.offset();r=d.top-h.top+t,D&&j&&(r+=s),p=le("left"),f=le("top"),r-=f,o=d.left-h.left+n,o-=p}else e=d.top-v-u+y+_.vertical;var g=l.scrollTop(),m=l.scrollLeft(),b=(ce()?O:k?C:l).scrollLeft(),S=(ce()?O:k?C:l).prop("clientWidth");return function(n){if(!w){P=ce();var h=a[0].offsetWidth<=0&&a[0].offsetHeight<=0;if(!h&&B)return B=!1,setTimeout(function(){a.triggerHandler("reflow")},1),null;if(h&&(B=!0,!T))return null;if("windowScroll"==n)g=l.scrollTop(),m=l.scrollLeft();else if("containerScroll"==n)if(O.length){if(!P)return;b=O.scrollLeft()}else t=C.scrollTop(),b=C.scrollLeft();else"init"!=n&&(g=l.scrollTop(),m=l.scrollLeft(),t=C.scrollTop(),b=(P?O:C).scrollLeft());if(!i||!(g<0||m<0)){if(A)ae("windowScrollDone"==n);else if("windowScrollDone"==n)return null;var y,_;d=a.offset(),D&&j&&(d.top+=s);var x=a.outerHeight(),M=a.outerWidth();if(k&&T){if(r>=t){var L=r-t+f;y=L>0?L:0,ie(!1)}else y=N?f:t,ie(!0);_=p}else if(!k&&T)g>e+x+c?y=x-u+c:d.top>=g+v?(y=0,re(),ie(!1)):(y=v+g-d.top+r+(j?s:0),ne(),ie(!0)),_=b;else if(k&&!T)if(r>=t||t-r>x?(y=d.top-g,re(),ie(!1)):(y=d.top+t-g-r,ne(),ie(!0)),o>b)_=d.left-m,de(o-b);else{var E=o+M,V=b+S;de(E<V?V-E:0),_=d.left+b-m-o}else k||T||(g>e+x+c?y=x+v-g+e+c:d.top>g+v?(y=d.top-g,ne(),ie(!1)):(y=v,ie(!0)),_=d.left+b-m);return{top:y,left:_}}}}}function de(e){var t=(ce()?O:k?C:l).prop("clientWidth");t-=e,z.width(t)}function pe(){var e=0,t=0,n=null;return function(o,i){null!=o&&(Math.abs(e-o.top)>1||Math.abs(t-o.left)>1)&&(z.css({top:o.top,left:o.left}),e=o.top,t=o.left),i&&function(){var e=f(a,Y,!0),t=P?O:C,n=t.width()||e,o="hidden"!=t.css("overflow-y")?n-_.horizontal:n;if(z.width(o),k){var i=100*e/o;r&&i>100&&(i=100),V.css("width",i+"%")}else V.outerWidth(e)}();var s=P?O:C,l=s.scrollLeft();if(!T||n!=l){var c=a.offset().left-s.offset().left+s.scrollLeft();c-=le("left"),z.scrollLeft(l-Math.round(c)),n=l}}}function fe(){if(C.length)if(m.support&&m.support.perfectScrollbar&&C.data().perfectScrollbar)_={horizontal:0,vertical:0};else{if("scroll"==C.css("overflow-x"))_.horizontal=S;else{var e=C.width(),t=f(a,Y),n=r<o?S:0;_.horizontal=e-n<t?S:0}if("scroll"==C.css("overflow-y"))_.vertical=S;else{var r=C.height(),o=a.height(),i=e<t?S:0;_.vertical=r-i<o?S:0}}}fe();var he=function(){se()()};he();var ge=ue(),me=pe();me(ge("init"),!0);var ve,ye=t.debounce(function(){me(ge("windowScrollDone"),!1)},1),be=function(){me(ge("windowScroll"),!1),A&&ye()},we=function(){me(ge("containerScroll"),!1)},_e=t.debounce(function(){a.is(":hidden")||(fe(),te(),he(),ge=ue(),me(ge("reflow"),!1))},1),Se=t.debounce(function(){a.is(":hidden")||(fe(),te(),ge=ue(),me(ge("reflow"),!1))},1),xe=function(){re()},Ce=function(){ne()},ke=function(e){e.matches?xe():Ce()};if(window.matchMedia&&window.matchMedia("print").addListener?(ve=window.matchMedia("print")).addListener(ke):(l.on("beforeprint",xe),l.on("afterprint",Ce)),k?T?C.on(ee("scroll"),we):(C.on(ee("scroll"),we),l.on(ee("scroll"),be)):(O.on(ee("scroll"),we),l.on(ee("scroll"),be)),l.on(ee("load"),_e),function(e,n){if(8==r){var o=l.width(),i=t.debounce(function(){var e=l.width();o!=e&&(o=e,n())},1);l.on(e,i)}else l.on(e,t.debounce(n,1))}(ee("resize"),function(){a.is(":hidden")||(te(),fe(),he(),ge=ue(),(me=pe())(ge("resize"),!1))}),a.on("reflow",_e),m.support&&m.support.datatables&&function(e){if(e.dataTableSettings)for(var t=0;t<e.dataTableSettings.length;t++){var n=e.dataTableSettings[t].nTable;if(e[0]==n)return!0}return!1}(a)&&a.on("filter",_e).on("sort",_e).on("page",_e),m.support&&m.support.bootstrap&&l.on(ee("shown.bs.tab"),_e),m.support&&m.support.jqueryUI&&l.on(ee("tabsactivate"),_e),n){var Oe=null;t.isFunction(m.autoReflow)&&(Oe=m.autoReflow(a,C)),Oe||(Oe=C.length?C[0]:a[0]),(c=new MutationObserver(function(e){for(var t=function(e){return e&&e[0]&&("THEAD"==e[0].nodeName||"TD"==e[0].nodeName||"TH"==e[0].nodeName)},n=0;n<e.length;n++)if(!t(e[n].addedNodes)&&!t(e[n].removedNodes)){_e();break}})).observe(Oe,{childList:!0,subtree:!0})}a.data("floatThead-attached",{destroy:function(){var e=".fth-"+o;return re(),a.css(Z),H.remove(),s&&L.remove(),ie(!1),n&&(c.disconnect(),c=null),a.off("reflow reflowed"),C.off(e),O.off(e),N&&(C.length?C.unwrap():a.unwrap()),k?C.data("floatThead-containerWrap",!1):a.data("floatThead-containerWrap",!1),a.css("minWidth",Q),z.remove(),a.data("floatThead-attached",!1),l.off(e),ve&&ve.removeListener(ke),xe=Ce=function(){},function(){return a.floatThead(m)}},reflow:function(){_e()},hide:function(){w||(w=!0,re())},show:function(){w&&(w=!1,Se())},updateOfPosition:function(){Se()},getFloatContainer:function(){return z},getRowGroups:function(){return b?z.find(">table>thead").add(a.children("tbody,tfoot")):a.children("thead,tbody,tfoot")}})}),this}}(l.a),(H=l.a).floatThead=H.floatThead||{},H.floatThead._=window._||function(){var e={},t=Object.prototype.hasOwnProperty;e.has=function(e,n){return t.call(e,n)},e.keys=function(t){if(t!==Object(t))throw new TypeError("Invalid object");var n=[];for(var r in t)e.has(t,r)&&n.push(r);return n};var n=0;return e.uniqueId=function(e){var t=++n+"";return e?e+t:t},H.each(["Arguments","Function","String","Number","Date","RegExp"],function(){var t=this;e["is"+t]=function(e){return Object.prototype.toString.call(e)=="[object "+t+"]"}}),e.debounce=function(e,t,n){var r,o,i,a,s;return function(){i=this,o=arguments,a=new Date;var l=function(){var c=new Date-a;c<t?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(i,o)))},c=n&&!r;return r||(r=setTimeout(l,t)),c&&(s=e.apply(i,o)),s}},e}(),
- /*! Copyright (c) 2011 by Jonas Mosbech - https://github.com/jmosbech/StickyTableHeaders
- MIT license info: https://github.com/jmosbech/StickyTableHeaders/blob/master/license.txt */
- function(e,t,n){var r="stickyTableHeaders",o=0,i={column:{fixedOffset:0,leftOffset:0},scrollableArea:t,zIndex:1};function a(n,a){var s=this,l=function(){for(var e=3,t=document.createElement("b"),n=t.all||[];e=1+e,t.innerHTML="\x3c!--[if gt IE "+e+"]><i><![endif]--\x3e",n[0];);return 4<e?e:document.documentMode}(),c=/Gecko\//.test(navigator.userAgent),u=/WebKit\//.test(navigator.userAgent);l||c||u||(l=11),s.$el=e(n),s.el=n,s.id=o++,s.$window=e(t),s.$document=e(document),s.$el.bind("destroyed",e.proxy(s.teardown,s)),s.$floatTable=null,s.$clonedColumn=null,s.$tableColGroup=null,s.isColumnSticky=!1,s.isHeadSticky=!1,s.isHidden=!1,s.$floatContainer=e("<div>").css({overflow:"hidden",position:"fixed"}),s.$floatContainerCorner=e("<div>").css({overflow:"hidden",position:"fixed"}),s.initColumn=function(){s.$el.each(function(){var t=e(this),n=(0|t.data("frozenColumns"))-1;if(!(n<0)){var o=e("thead:first, tbody:first",t);s.$clonedColumn=o.clone(),s.$clonedColumn.find("tr").each(function(){e(this).find("td:gt("+n+")").remove()}),s.$clonedColumn.ready(function(){s.updateHeightOfRows(s.$clonedColumn,s.getHeightOfRows(o))}),t.trigger("clonedColumn."+r,[s.$clonedColumn]),s.$floatTable=e("<table>").append(s.$clonedColumn),s.$tableColGroup=e("colgroup:first",t).clone(),s.$floatTable.attr("class",t.attr("class")),s.$floatTable.attr("style",t.attr("style")),s.$floatTable.prepend(s.$tableColGroup),s.$floatTable.removeClass("sticky-header sticky-columns"),s.$floatTable.attr("cellpadding",t.attr("cellpadding")),s.$floatTable.attr("cellspacing",t.attr("cellspacing")),s.$floatContainer.css({position:"fixed",top:0,"margin-top":0,left:0,"z-index":s.options.zIndex}),s.setBackgrund(s.$floatContainer,s.getBackground(e(this))),s.$floatContainer.append(s.$floatTable).css("display","none"),s.$el.before(s.$floatContainer);var i=0;s.$tableColGroup.each(function(){e(this).find("col:gt("+n+")").remove(),e(this).find("col").each(function(){i+=e(this).width()})}),s.$floatTable.css({top:0,left:0,"table-layout":"fixed",position:"relative","min-width":"",width:i}),i&&s.$floatContainer.css("width",i)}})},s.initCorner=function(){s.$el.each(function(){var t=e(this);(0|t.data("frozenColumns"))-1<0||e("thead:first",t).find("tr").length>0&&(s.isHeadSticky=!0,s.$floatContainerCorner=s.$floatContainer.clone(),s.$floatContainerCorner.find("tbody:first").remove(),s.$floatContainerCorner.css({position:"fixed",top:0,"margin-top":0,left:0,"z-index":s.options.zIndex+2}),s.setBackgrund(s.$floatContainer,s.getBackground(e(this))),s.$el.before(s.$floatContainerCorner),s.$floatContainerCorner.find("table:first").css("height",0))})},s.init=function(){s.setOptions(a),s.initColumn(),s.initCorner(),s.toggleTableColumns(),s.bind()},s.destroy=function(){s.$el.unbind("destroyed",s.teardown),s.teardown()},s.reflow=function(){s.toggleTableColumns()},s.hide=function(){s.isHidden||(s.isHidden=!0,s.toggleTableColumns())},s.show=function(){s.isHidden&&(s.isHidden=!1,s.toggleTableColumns())},s.teardown=function(){e.removeData(s.el,"plugin_"+r),s.unbind(),s.$clonedColumn.remove(),s.$tableColGroup.remove(),s.$floatContainerCorner.remove(),s.$floatContainer.remove(),s.el=null,s.$el=null},s.bind=function(){s.$scrollableArea.on("scroll."+r,s.toggleTableColumns),s.isWindowScrolling||(s.$window.on("scroll."+r+s.id,s.setPositionValues),s.$window.on("resize."+r+s.id,s.toggleTableColumns)),s.$scrollableArea.on("resize."+r,s.toggleTableColumns)},s.unbind=function(){s.$scrollableArea.off("."+r,s.toggleTableColumns),s.isWindowScrolling||(s.$window.off("."+r+s.id,s.setPositionValues),s.$window.off("."+r+s.id,s.toggleTableColumns))},s.getHeightOfRows=function(e){var t=[];return e.find("tr").each(function(e){t.push(this.getBoundingClientRect().height)}),t},s.updateHeightOfRows=function(t,n){t.find("tr").each(function(t){e(this).height(n[t])})},s.toggleTableColumns=function(){s.$el&&s.$el.each(function(){if("hidden"!=s.$el.parent().css("overflow")){var t=e(this),n=t.offset(),r=s.$scrollableArea.offset(),o=s.$el.offset(),i=s.$scrollableArea.scrollTop(),a=o.top-r.top+i,l=(a-=s.floatContainerBorderWidth("top"))<i+s.$scrollableArea.height(),c=s.$scrollableArea.scrollLeft(),u=o.left-r.left+c,d=(u-=s.floatContainerBorderWidth("left"))<c,p=s.$scrollableArea.offset().left+(isNaN(s.options.column.leftOffset)?0:s.options.column.leftOffset)+s.$floatContainer.width()<=n.left+t.width(),f=s.$scrollableArea.offset().top+(isNaN(s.options.column.fixedOffset)?0:s.options.column.fixedOffset)<=n.top+t.height();l&&f&&d&&p&&!s.isHidden?(s.refloat(),s.isHeadSticky&&a<i?s.$floatContainerCorner.css("display",""):s.$floatContainerCorner.css("display","none"),s.isColumnSticky||(s.isColumnSticky=!0),s.setColumnPositionValues(),s.$floatContainer.scrollTop(i-Math.round(a))):s.isColumnSticky&&(s.unfloat(),s.isColumnSticky=!1)}})},s.calculateFloatContainerPos=function(){var n=s.$scrollableArea.offset(),r=s.$el.offset(),o=(s.$el.outerWidth(),s.$el.outerHeight()),i=s.$scrollableArea.scrollLeft(),a=r.left-n.left+i;a-=s.floatContainerBorderWidth("left");var l,c,u=s.$scrollableArea.scrollTop(),d=r.top-n.top+u,p=(d-=s.floatContainerBorderWidth("top"))+o,f=u+s.$scrollableArea.prop("clientHeight"),h=e(t).scrollTop(),g=e(t).scrollLeft();return d>u?(l=r.top-h,s.reduceHeightFloatContainer(d-u+(f>p?f-p:0))):(p<f?s.reduceHeightFloatContainer(f-p):s.reduceHeightFloatContainer(0),l=r.top+u-h-d),c=r.left+i-g-a,{top:Math.round(l),left:Math.round(c)}},s.floatContainerBorderWidth=function(e){var t=s.$scrollableArea.css("border-"+e+"-width"),n=0;return t&&~t.indexOf("px")&&(n=parseInt(t,10)),n},s.refloat=function(){s.$floatContainer.css("display","")},s.unfloat=function(){s.$floatContainer.css("display","none"),s.isHeadSticky&&s.$floatContainerCorner.css("display","none")},s.setColumnPositionValues=function(){var e=s.$window.scrollTop(),t=s.$window.scrollLeft();if(!(!s.isColumnSticky||e<0||e+s.$window.height()>s.$document.height()||t<0||t+s.$window.width()>s.$document.width())){var n=s.calculateFloatContainerPos(),r="translateX("+n.left+"px) translateY("+n.top+"px)";s.$floatContainer.css({"-webkit-transform":r,"-moz-transform":r,"-ms-transform":r,"-o-transform":r,transform:r}),s.isHeadSticky&&(l&&(s.$floatContainerCorner.css("display",""),s.$floatContainer.find("div:first").css({position:"relative"})),s.$floatContainerCorner.css({"-webkit-transform":r,"-moz-transform":r,"-ms-transform":r,"-o-transform":r,transform:r})),s.setBackgrund(s.$floatContainerCorner,s.getBackground(s.$floatContainer))}},s.getFloatWidth=function(){var t=0;return s.$tableColGroup.each(function(){e(this).find("col:gt("+_stickyColIndex+")").remove(),e(this).find("col").each(function(){t+=e(this).width()})}),t},s.reduceHeightFloatContainer=function(e){var t=s.$scrollableArea.prop("clientHeight");t-=e,s.$floatContainer.height(t)},s.setPositionValues=function(){s.setColumnPositionValues()},s.setOptions=function(n){s.options=e.extend(!0,i,n),s.$scrollableArea=e(s.options.scrollableArea),s.isWindowScrolling=s.$scrollableArea[0]===t},s.updateOptions=function(e){s.setOptions(e),s.unbind(),s.bind(),s.toggleTableColumns()},s.getBackground=function(e){var t=e.css("background-color");return s.isTransparent(t)?e.is("body")?"rgb(255, 255, 255)":s.getBackground(e.parent()):t},s.isTransparent=function(e){switch((e||"").replace(/\s+/g,"").toLowerCase()){case"transparent":case"":case"rgba(0,0,0,0)":return!0;default:return!1}},s.setBackgrund=function(e,t){e.css("background-color",t)},s.init()}e.fn[r]=function(t){return this.each(function(){var n=e.data(this,"plugin_"+r);n?"string"==typeof t?n[t].apply(n):n.updateOptions(t):"destroy"!==t&&"reflow"!==t&&"hide"!==t&&"show"!==t&&e.data(this,"plugin_"+r,new a(this,t))})}}(l.a,window);var z=function(){return function(e,t){var n=this;this._viewer=e,this._plugin=t,this.sidebar=new F(this._viewer),this.toolbar=new O(this._viewer),this.openReport=function(e,t){n._viewer.open(new V(e,t||[]))},this.refresh=function(){return n._viewer.processCommand({type:"Refresh"})},this.print=function(){return n._plugin.exportDocument("pdf",{OnlyForPrint:"true",ContentInline:"true"})},this.goToPage=function(e){var t=e-1,r=n.pageCount();t>=r?t=r-1:t<0&&(t=0),n._viewer.processCommand({type:"GotoPage",payload:{pageIndex:t}})},this.backToParent=function(){return n._viewer.processCommand({type:"GoHistory",payload:{direction:"Parent"}})},this.destroy=function(){return n._plugin.dispose(!0)},this.export=function(e,t,r,o){n._plugin.exportDocument(e,o,t,r)},this.search=function(e,t,r){if(e&&e.trim()){var i=t.matchCase,a=void 0!==i&&i,s=t.wholePhrase,l=void 0!==s&&s,c=n._plugin.search({MatchCase:a,SearchBackward:!1,Text:e,WholeWord:l});if(c){var u=[];!function(){var e,t;o.f(this,void 0,void 0,function(){var n,r,i,a;return o.h(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]),n=o.d(c),s.label=1;case 1:return[4,n.next()];case 2:if((r=s.sent()).done)return[3,4];(i=r.value)&&i.DisplayText&&u.push(i),s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=s.sent(),e={error:a},[3,11];case 6:return s.trys.push([6,,9,10]),r&&!r.done&&(t=n.return)?[4,t.call(n)]:[3,8];case 7:s.sent(),s.label=8;case 8:return[3,10];case 9:if(e)throw e.error;return[7];case 10:return[7];case 11:return[2]}})})}(),r(u)}}},this.getToc=function(){return n._plugin.getToc()},this.pageCount=function(){return n._viewer.viewerState.session.pageCount},this.currentPage=function(){return n._viewer.viewerState.session.pageIndex+1},this.addReportList=function(){n._plugin.addReportList()}}}();var B=function(){return!window.navigator.languages},W=n(167);n(343);window.GrapeCity={ActiveReports:{JSViewer:{create:function(e){var t=e.localeData,n=e.localeUri,r=e.locale,o=e.error;if(Object(a.c)(t,n,r,o),!n&&B()){var s=e.reportService,c=void 0===s?{}:s,u=c.url,d=void 0===u?"api/reporting":u,p=c.securityToken,f=void 0===p?void 0:p;Object(a.a)(d,f,o)}var h=e.element,g=void 0===h?"#root":h,m=new i.ReportViewer(g,void 0,void 0,a.b),v=new R(m,e);m.setPlugin(v),m.onViewerStateChange.register(function(e){v.getGalleyMode()&&e.state.settings.mode===i.ViewMode.SinglePage&&e.state.settings.zoom.mode===i.ZoomMode.Value&&1===e.state.settings.zoom.factor?l()(document).ready(function(){l()(".sticky-header").floatThead({copyTableClass:!1,zIndex:50,scrollContainer:function(e){return e.closest(".gcv-pageview")},getSizingRow:function(e,t,n){var r=e.find("tbody tr:visible").filter(function(){return l()(this).children().length===t.length});return r.length?r.eq(0).find(">*:visible"):(r=e.find("thead tr:visible").filter(function(){return l()(this).children().length===t.length})).length?r.eq(0).find(">*:visible"):t},position:"fixed"}),l()(".sticky-header").floatThead("reflow"),l()(".sticky-columns").stickyTableHeaders({scrollableArea:l()(".gcv-pageview"),zIndex:49}),l()(".sticky-columns").stickyTableHeaders("reflow")}):(l()(".sticky-header").floatThead("destroy"),l()(".sticky-columns").stickyTableHeaders("destroy"))}),m.tempOnPanelChange.register(function(){l()(function(){window.setTimeout(function(){l()(".sticky-columns").stickyTableHeaders("reflow"),l()(".sticky-header").floatThead("reflow")},500)})});var y=e.reportID,b=e.reportParameters;return y&&m.open(new V(y,b||[])),"Continuous"===e.displayMode&&(m.viewMode=i.ViewMode.Continuous),o&&(m.errorHandler=function(e){return o(e)}),new z(m,v)},export:r.a,print:W.a,version:"14.1.2117",ToolbarButtonsKeys:g}}}},function(e,t){}]);
|