@pdftron/webviewer 11.7.0 → 11.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/webviewer-core.min.js +2 -2
- package/public/ui/chunks/chunk.24.js +1 -1
- package/public/ui/chunks/chunk.25.js +1 -1
- package/public/ui/chunks/chunk.26.js +1 -1
- package/public/ui/chunks/chunk.28.js +1 -1
- package/public/ui/chunks/chunk.29.js +1 -1
- package/public/ui/chunks/chunk.39.js +1 -1
- package/public/ui/chunks/chunk.40.js +1 -1
- package/public/ui/chunks/chunk.47.js +1 -1
- package/public/ui/webviewer-ui.min.js +7 -7
- package/public/ui/webviewer-ui.min.js.map +1 -1
- package/webviewer.min.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[25,4,5,6,7,8,11,13,17,20,21,22,26,31,35,39,41,46,55,63,83],{1565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const o=n(1675),r=n(1620),i=n(1621),a=n(1676);t.AttributeMap=a.default;const l=n(1622);t.Op=l.default;const c=n(1677);t.OpIterator=c.default;const s=String.fromCharCode(0),u=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class d{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=r(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(o=>{(e(o)?t:n).push(o)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}changeLength(){return this.reduce((e,t)=>t.insert?e+l.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+l.default.length(t),0)}slice(e=0,t=1/0){const n=[],o=new c.default(this.ops);let r=0;for(;r<t&&o.hasNext();){let i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=l.default.length(i)}return new d(n)}compose(e){const t=new c.default(this.ops),n=new c.default(e.ops),o=[],r=n.peek();if(null!=r&&"number"==typeof r.retain&&null==r.attributes){let e=r.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),o.push(t.next());r.retain-e>0&&n.next(r.retain-e)}const l=new d(o);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===t.peekType())l.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),o=t.next(e),r=n.next(e);if(r.retain){const c={};if("number"==typeof o.retain)c.retain="number"==typeof r.retain?e:r.retain;else if("number"==typeof r.retain)null==o.retain?c.insert=o.insert:c.retain=o.retain;else{const e=null==o.retain?"insert":"retain",[t,n,i]=u(o[e],r.retain),a=d.getHandler(t);c[e]={[t]:a.compose(n,i,"retain"===e)}}const s=a.default.compose(o.attributes,r.attributes,"number"==typeof o.retain);if(s&&(c.attributes=s),l.push(c),!n.hasNext()&&i(l.ops[l.ops.length-1],c)){const e=new d(t.rest());return l.concat(e).chop()}}else"number"==typeof r.delete&&("number"==typeof o.retain||"object"==typeof o.retain&&null!==o.retain)&&l.push(r)}return l.chop()}concat(e){const t=new d(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new d;const n=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),r=new d,l=o(n[0],n[1],t,!0),u=new c.default(this.ops),f=new c.default(e.ops);return l.forEach(e=>{let t=e[1].length;for(;t>0;){let n=0;switch(e[0]){case o.INSERT:n=Math.min(f.peekLength(),t),r.push(f.next(n));break;case o.DELETE:n=Math.min(t,u.peekLength()),u.next(n),r.delete(n);break;case o.EQUAL:n=Math.min(u.peekLength(),f.peekLength(),t);const e=u.next(n),l=f.next(n);i(e.insert,l.insert)?r.retain(n,a.default.diff(e.attributes,l.attributes)):r.push(l).delete(n)}t-=n}}),r.chop()}eachLine(e,t="\n"){const n=new c.default(this.ops);let o=new d,r=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const i=n.peek(),a=l.default.length(i)-n.peekLength(),c="string"==typeof i.insert?i.insert.indexOf(t,a)-a:-1;if(c<0)o.push(n.next());else if(c>0)o.push(n.next(c));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new d}}o.length()>0&&e(o,{},r)}invert(e){const t=new d;return this.reduce((n,o)=>{if(o.insert)t.delete(l.default.length(o));else{if("number"==typeof o.retain&&null==o.attributes)return t.retain(o.retain),n+o.retain;if(o.delete||"number"==typeof o.retain){const r=o.delete||o.retain;return e.slice(n,n+r).forEach(e=>{o.delete?t.push(e):o.retain&&o.attributes&&t.retain(l.default.length(e),a.default.invert(o.attributes,e.attributes))}),n+r}if("object"==typeof o.retain&&null!==o.retain){const r=e.slice(n,n+1),i=new c.default(r.ops).next(),[l,s,f]=u(o.retain,i.insert),p=d.getHandler(l);return t.retain({[l]:p.invert(s,f)},a.default.invert(o.attributes,i.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,o=new c.default(this.ops),r=new c.default(n.ops),i=new d;for(;o.hasNext()||r.hasNext();)if("insert"!==o.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{const e=Math.min(o.peekLength(),r.peekLength()),n=o.next(e),l=r.next(e);if(n.delete)continue;if(l.delete)i.push(l);else{const o=n.retain,r=l.retain;let c="object"==typeof r&&null!==r?r:e;if("object"==typeof o&&null!==o&&"object"==typeof r&&null!==r){const e=Object.keys(o)[0];if(e===Object.keys(r)[0]){const n=d.getHandler(e);n&&(c={[e]:n.transform(o[e],r[e],t)})}}i.retain(c,a.default.transform(n.attributes,l.attributes,t))}}else i.retain(l.default.length(o.next()));return i.chop()}transformPosition(e,t=!1){t=!!t;const n=new c.default(this.ops);let o=0;for(;n.hasNext()&&o<=e;){const r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e}}d.Op=l.default,d.OpIterator=c.default,d.AttributeMap=a.default,d.handlers={},t.default=d,e.exports=d,e.exports.default=d},1571:function(e,t,n){"use strict";var o=n(0),r=n.n(o).a.createContext();t.a=r},1573:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return u}));n(9),n(10),n(14),n(38),n(130),n(20),n(12),n(18),n(42),n(8),n(19),n(11),n(13);function o(e){return(o="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(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function i(e){return(t=e)&&t.prototype&&"function"==typeof t.prototype.render||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function a(e,t){}function l(e){return"function"==typeof e}function c(){}function s(e){if(!function(e){return"object"===o(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function u(e,t){return"string"==typeof e||"symbol"===o(e)||!!t&&Array.isArray(e)&&e.every((function(e){return u(e,!1)}))}},1575:function(e,t,n){var o=n(35),r=n(1651);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1576:function(e,t,n){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function r(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function i(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,l=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==l){var c=e.displayName||e.name,s="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=r),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),o.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},1578:function(e,t,n){"use strict";var o=n(1647),r=n(1632);t.a=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,c=t.length;++l<c;){var s=t[l],u=i?i(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),a?Object(r.a)(n,s,u):Object(o.a)(n,s,u)}return n}},1580:function(e,t,n){"use strict";t.a=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1582:function(e,t,n){"use strict";var o={};n.r(o),n.d(o,"Attributor",(function(){return a})),n.d(o,"AttributorStore",(function(){return h})),n.d(o,"BlockBlot",(function(){return C})),n.d(o,"ClassAttributor",(function(){return d})),n.d(o,"ContainerBlot",(function(){return A})),n.d(o,"EmbedBlot",(function(){return _})),n.d(o,"InlineBlot",(function(){return k})),n.d(o,"LeafBlot",(function(){return v})),n.d(o,"ParentBlot",(function(){return O})),n.d(o,"Registry",(function(){return s})),n.d(o,"Scope",(function(){return i})),n.d(o,"ScrollBlot",(function(){return N})),n.d(o,"StyleAttributor",(function(){return p})),n.d(o,"TextBlot",(function(){return R}));n(9),n(10),n(14),n(21),n(76),n(20),n(22),n(18),n(16),n(48),n(24),n(47),n(49),n(17),n(19),n(11),n(13),n(30),n(38),n(34),n(81),n(27),n(12),n(44),n(118),n(31),n(28),n(228),n(627),n(37),n(8),n(181),n(153),n(29);var r=n(1591),i=(e=>(e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY",e))(i||{});class a{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const o=i.TYPE&i.ATTRIBUTE;this.scope=null!=n.scope?n.scope&i.LEVEL|o:i.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(e=>e.name)}add(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)}canAdd(e,t){return null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1)}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class l extends Error{constructor(e){super(e="[Parchment] "+e),this.message=e,this.name=this.constructor.name}}const c=class e{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(null==e)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(t,n,o){const r=this.query(n);if(null==r)throw new l(`Unable to create ${n} blot`);const i=r,a=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(o),c=new i(t,a,o);return e.blots.set(c.domNode,c),c}find(t,n=!1){return e.find(t,n)}query(e,t=i.ANY){let n;return"string"==typeof e?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:"number"==typeof e?e&i.LEVEL&i.BLOCK?n=this.types.block:e&i.LEVEL&i.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(e=>(n=this.classes[e],!!n)),n=n||this.tags[e.tagName]),null==n?null:"scope"in n&&t&i.LEVEL&n.scope&&t&i.TYPE&n.scope?n:null}register(...e){return e.map(e=>{const t="blotName"in e,n="attrName"in e;if(!t&&!n)throw new l("Invalid definition");if(t&&"abstract"===e.blotName)throw new l("Cannot register abstract class");const o=t?e.blotName:n?e.attrName:void 0;return this.types[o]=e,n?"string"==typeof e.keyName&&(this.attributes[e.keyName]=e):t&&(e.className&&(this.classes[e.className]=e),e.tagName&&(Array.isArray(e.tagName)?e.tagName=e.tagName.map(e=>e.toUpperCase()):e.tagName=e.tagName.toUpperCase(),(Array.isArray(e.tagName)?e.tagName:[e.tagName]).forEach(t=>{(null==this.tags[t]||null==e.className)&&(this.tags[t]=e)}))),e})}};c.blots=new WeakMap;let s=c;function u(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter(e=>0===e.indexOf(t+"-"))}const d=class extends a{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(e=>e.split("-").slice(0,-1).join("-"))}add(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0)}remove(e){u(e,this.keyName).forEach(t=>{e.classList.remove(t)}),0===e.classList.length&&e.removeAttribute("class")}value(e){const t=(u(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}};function f(e){const t=e.split("-"),n=t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("");return t[0]+n}const p=class extends a{static keys(e){return(e.getAttribute("style")||"").split(";").map(e=>e.split(":")[0].trim())}add(e,t){return!!this.canAdd(e,t)&&(e.style[f(this.keyName)]=t,!0)}remove(e){e.style[f(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[f(this.keyName)];return this.canAdd(e,t)?t:""}};const h=class{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=s.find(this.domNode);if(null==e)return;const t=a.keys(this.domNode),n=d.keys(this.domNode),o=p.keys(this.domNode);t.concat(n).concat(o).forEach(t=>{const n=e.scroll.query(t,i.ATTRIBUTE);n instanceof a&&(this.attributes[n.attrName]=n)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(e=>{this.attributes[e].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}},m=class{constructor(e,t){this.scroll=e,this.domNode=t,s.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(null==this.tagName)throw new l("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?("string"==typeof e?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):"number"==typeof e&&(n=e),t="number"==typeof n?document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?document.createElement(n):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){null!=this.parent&&this.parent.removeChild(this),s.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,o){const r=this.isolate(e,t);if(null!=this.scroll.query(n,i.BLOT)&&o)r.wrap(n,o);else if(null!=this.scroll.query(n,i.ATTRIBUTE)){const e=this.scroll.create(this.statics.scope);r.wrap(e),e.format(n,o)}}insertAt(e,t,n){const o=null==n?this.scroll.create("text",t):this.scroll.create(t,n),r=this.split(e);this.parent.insertBefore(o,r||void 0)}isolate(e,t){const n=this.split(e);if(null==n)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return null==this.parent||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;return null!=this.parent&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return 0===e?this:this.next}update(e,t){}wrap(e,t){const n="string"==typeof e?this.scroll.create(e,t):e;if(null!=this.parent&&this.parent.insertBefore(n,this.next||void 0),"function"!=typeof n.appendChild)throw new l("Cannot wrap "+e);return n.appendChild(this),n}};m.blotName="abstract";let b=m;const g=class extends b{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};g.scope=i.INLINE_BLOT;const v=g;class y{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),o=0;for(;n;){if(n===e)return o;o+=1,n=t()}return-1}insertBefore(e,t){null!=e&&(this.remove(e),e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return null!=e&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let o=n();for(;o;){const r=o.length();if(e<r||t&&e===r&&(null==o.next||0!==o.next.length()))return[o,e];e-=r,o=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[o,r]=this.find(e);let i=e-r;const a=this.iterator(o);let l=a();for(;l&&i<e+t;){const o=l.length();e>i?n(l,e-i,Math.min(t,i+o-e)):n(l,0,Math.min(o,e+t-i)),i+=o,l=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let o=n();for(;o;)t=e(t,o),o=n();return t}}function w(e,t){const n=t.find(e);if(n)return n;try{return t.create(e)}catch{const n=t.create(i.INLINE);return Array.from(e.childNodes).forEach(e=>{n.domNode.appendChild(e)}),e.parentNode&&e.parentNode.replaceChild(n.domNode,e),n.attach(),n}}const x=class e extends b{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(t){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=t,e.uiClass&&this.uiNode.classList.add(e.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new y,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=w(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(e){if(e instanceof l)return;throw e}})}deleteAt(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(e,t,n)=>{e.deleteAt(t,n)})}descendant(t,n=0){const[o,r]=this.children.find(n);return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,r]:o instanceof e?o.descendant(t,r):[null,-1]}descendants(t,n=0,o=Number.MAX_VALUE){let r=[],i=o;return this.children.forEachAt(n,o,(n,o,a)=>{(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&r.push(n),n instanceof e&&(r=r.concat(n.descendants(t,o,i))),i-=a}),r}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(e=>n instanceof e)||(n.statics.scope===i.BLOCK_BLOT?(null!=n.next&&this.splitAfter(n),null!=n.prev&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof e?n.unwrap():n.remove())})}formatAt(e,t,n,o){this.children.forEachAt(e,t,(e,t,r)=>{e.formatAt(t,r,n,o)})}insertAt(e,t,n){const[o,r]=this.children.find(e);if(o)o.insertAt(r,t,n);else{const e=null==n?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(e)}}insertBefore(e,t){null!=e.parent&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,null!=t&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){const e=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(e)}else this.remove()}path(t,n=!1){const[o,r]=this.children.find(t,n),i=[[this,t]];return o instanceof e?i.concat(o.path(r,n)):(null!=o&&i.push([o,r]),i)}removeChild(e){this.children.remove(e)}replaceWith(t,n){const o="string"==typeof t?this.scroll.create(t,n):t;return o instanceof e&&this.moveChildren(o),super.replaceWith(o)}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(e,o,r)=>{const i=e.split(o,t);null!=i&&n.appendChild(i)}),n}splitAfter(e){const t=this.clone();for(;null!=e.next;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],o=[];e.forEach(e=>{e.target===this.domNode&&"childList"===e.type&&(n.push(...e.addedNodes),o.push(...e.removedNodes))}),o.forEach(e=>{if(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const t=this.scroll.find(e);null!=t&&(null==t.domNode.parentNode||t.domNode.parentNode===this.domNode)&&t.detach()}),n.filter(e=>e.parentNode===this.domNode&&e!==this.uiNode).sort((e,t)=>e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(e=>{let t=null;null!=e.nextSibling&&(t=this.scroll.find(e.nextSibling));const n=w(e,this.scroll);(n.next!==t||null==n.next)&&(null!=n.parent&&n.parent.removeChild(this),this.insertBefore(n,t||void 0))}),this.enforceAllowedChildren()}};x.uiClass="";const O=x;const S=class e extends O{static create(e){return super.create(e)}static formats(t,n){const o=n.query(e.blotName);if(null==o||t.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){if(t!==this.statics.blotName||n){const e=this.scroll.query(t,i.INLINE);if(null==e)return;e instanceof a?this.attributes.attribute(e,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}else this.children.forEach(t=>{t instanceof e||(t=t.wrap(e.blotName,!0)),this.attributes.copy(t)}),this.unwrap()}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,o){null!=this.formats()[n]||this.scroll.query(n,i.ATTRIBUTE)?this.isolate(e,t).format(n,o):super.formatAt(e,t,n,o)}optimize(t){super.optimize(t);const n=this.formats();if(0===Object.keys(n).length)return this.unwrap();const o=this.next;o instanceof e&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}(n,o.formats())&&(o.moveChildren(this),o.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}wrap(t,n){const o=super.wrap(t,n);return o instanceof e&&this.attributes.move(o),o}};S.allowedChildren=[S,v],S.blotName="inline",S.scope=i.INLINE_BLOT,S.tagName="SPAN";const k=S,E=class e extends O{static create(e){return super.create(e)}static formats(t,n){const o=n.query(e.blotName);if(null==o||t.tagName!==o.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new h(this.domNode)}format(t,n){const o=this.scroll.query(t,i.BLOCK);null!=o&&(o instanceof a?this.attributes.attribute(o,n):t!==this.statics.blotName||n?n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n):this.replaceWith(e.blotName))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return null!=t&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,o){null!=this.scroll.query(n,i.BLOCK)?this.format(n,o):super.formatAt(e,t,n,o)}insertAt(e,t,n){if(null==n||null!=this.scroll.query(t,i.INLINE))super.insertAt(e,t,n);else{const o=this.split(e);if(null==o)throw new Error("Attempt to insertAt after block boundaries");{const e=this.scroll.create(t,n);o.parent.insertBefore(e,o)}}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(e=>e.target===this.domNode&&"attributes"===e.type)&&this.attributes.build()}};E.blotName="block",E.scope=i.BLOCK_BLOT,E.tagName="P",E.allowedChildren=[k,E,v];const C=E,T=class extends O{checkMerge(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,o){super.formatAt(e,t,n,o),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};T.blotName="container",T.scope=i.BLOCK_BLOT;const A=T;const _=class extends v{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,o){0===e&&t===this.length()?this.format(n,o):super.formatAt(e,t,n,o)}formats(){return this.statics.formats(this.domNode,this.scroll)}},j={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},P=class extends O{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(e=>{this.update(e)}),this.observer.observe(this.domNode,j),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=i.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){null!=this.scroll&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),0===e&&t===this.length()?this.children.forEach(e=>{e.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,o){this.update(),super.formatAt(e,t,n,o)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let o=Array.from(this.observer.takeRecords());for(;o.length>0;)e.push(o.pop());const r=(e,t=!0)=>{null==e||e===this||null!=e.domNode.parentNode&&(n.has(e.domNode)||n.set(e.domNode,[]),t&&r(e.parent))},i=e=>{n.has(e.domNode)&&(e instanceof O&&e.children.forEach(i),n.delete(e.domNode),e.optimize(t))};let a=e;for(let t=0;a.length>0;t+=1){if(t>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(e=>{const t=this.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(r(this.find(e.previousSibling,!1)),Array.from(e.addedNodes).forEach(e=>{const t=this.find(e,!1);r(t,!1),t instanceof O&&t.children.forEach(e=>{r(e,!1)})})):"attributes"===e.type&&r(t.prev)),r(t))}),this.children.forEach(i),a=Array.from(this.observer.takeRecords()),o=a.slice();o.length>0;)e.push(o.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(e=>{const t=this.find(e.target,!0);return null==t?null:n.has(t.domNode)?(n.get(t.domNode).push(e),null):(n.set(t.domNode,[e]),t)}).forEach(e=>{null!=e&&e!==this&&n.has(e.domNode)&&e.update(n.get(e.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};P.blotName="scroll",P.defaultChild=C,P.allowedChildren=[C,A],P.scope=i.BLOCK_BLOT,P.tagName="DIV";const N=P,I=class e extends v{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(0===e)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(e=>"characterData"===e.type&&e.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};I.blotName="text",I.scope=i.INLINE_BLOT;const R=I;var q=n(1565),L=n.n(q),M=(n(85),n(470),n(180),n(115),n(618),n(1605));var D=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e},z=n(1647),B=n(1578),F=n(1604),H=Object(F.a)(Object.keys,Object);var U=function(e,t){return e&&Object(B.a)(t,H(t),e)},W=n(1590);var G=function(e,t){return e&&Object(B.a)(t,Object(W.a)(t),e)},V=n(1645),K=n(1644);var $=function(){return[]};var Y=function(e,t){return Object(B.a)(e,$(e),t)};var Z=function(){return[]};var X=function(e,t){return Object(B.a)(e,Z(e),t)},Q=n(1625);var J=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ee=n(1623),te=Object.prototype.hasOwnProperty;var ne=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&te.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var oe=function(e){return e},re=n(1657),ie=n(1587),ae=n(1603);var le=function(){return!1},ce=n(1580);var se=function(){return!1},ue={};ue["[object Arguments]"]=ue["[object Array]"]=ue["[object ArrayBuffer]"]=ue["[object DataView]"]=ue["[object Boolean]"]=ue["[object Date]"]=ue["[object Float32Array]"]=ue["[object Float64Array]"]=ue["[object Int8Array]"]=ue["[object Int16Array]"]=ue["[object Int32Array]"]=ue["[object Map]"]=ue["[object Number]"]=ue["[object Object]"]=ue["[object RegExp]"]=ue["[object Set]"]=ue["[object String]"]=ue["[object Symbol]"]=ue["[object Uint8Array]"]=ue["[object Uint8ClampedArray]"]=ue["[object Uint16Array]"]=ue["[object Uint32Array]"]=!0,ue["[object Error]"]=ue["[object Function]"]=ue["[object WeakMap]"]=!1;var de=function e(t,n,o,r,i,a){var l,c=1&n,s=2&n,u=4&n;if(o&&(l=i?o(t,r,i,a):o(t)),void 0!==l)return l;if(!Object(ce.a)(t))return t;var d=Object(ie.a)(t);if(d){if(l=ne(t),!c)return Object(K.a)(t,l)}else{var f=Object(ee.a)(t),p="[object Function]"==f||"[object GeneratorFunction]"==f;if(Object(ae.a)(t))return Object(V.a)(t,c);if("[object Object]"==f||"[object Arguments]"==f||p&&!i){if(l=s||p?{}:Object(re.a)(t),!c)return s?X(t,G(l,t)):Y(t,U(l,t))}else{if(!ue[f])return i?t:{};l=oe(t,f,c)}}a||(a=new M.a);var h=a.get(t);if(h)return h;a.set(t,l),se(t)?t.forEach((function(r){l.add(e(r,n,o,r,t,a))})):le(t)&&t.forEach((function(r,i){l.set(i,e(r,n,o,i,t,a))}));var m=u?s?J:Q.a:s?W.a:H,b=d?void 0:m(t);return D(b||t,(function(r,i){b&&(r=t[i=r]),Object(z.a)(l,i,e(r,n,o,i,t,a))})),l};var fe=function(e){return de(e,5)},pe=n(1844);n(26),n(40),n(42),n(43),n(84),n(615),n(467);function he(e){return(he="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 me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ge(o.key),o)}}function ge(e){var t=function(e,t){if("object"!=he(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=he(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==he(t)?t:t+""}function ve(e,t,n){return t=ye(t),function(e,t){if(t&&("object"==he(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ye(e).constructor):t.apply(e,n))}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function we(e,t){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xe=function(e){function t(){return me(this,t),ve(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&we(e,t)}(t,e),n=t,r=[{key:"value",value:function(){}}],(o=[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}])&&be(n.prototype,o),r&&be(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(_);xe.blotName="break",xe.tagName="BR";var Oe=xe;function Se(e){return(Se="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 ke(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ee(o.key),o)}}function Ee(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Se(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Se(t)?t:t+""}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t,n){return t=Ae(t),function(e,t){if(t&&("object"==Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ae(e).constructor):t.apply(e,n))}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var je=function(e){function t(){return Ce(this,t),Te(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_e(e,t)}(t,e),n=t,o&&ke(n.prototype,o),r&&ke(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(R),Pe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ne(e){return e.replace(/[&<>"']/g,(function(e){return Pe[e]}))}function Ie(e){return(Ie="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 Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ue(o.key),o)}}function Le(e,t,n){return t=Be(t),function(e,t){if(t&&("object"==Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Be(e).constructor):t.apply(e,n))}function Me(e,t,n,o){var r=De(Be(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function De(){return(De="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ze(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function ze(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Be(e)););return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e,t){return(Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function He(e,t,n){return(t=Ue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ue(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ie(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}var We=function(e){function t(){return Re(this,t),Le(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}(t,e),n=t,r=[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}],(o=[{key:"formatAt",value:function(e,n,o,r){if(t.compare(this.statics.blotName,o)<0&&this.scroll.query(o,i.BLOT)){var a=this.isolate(e,n);r&&a.wrap(o,r)}else Me(t,"formatAt",this,3)([e,n,o,r])}},{key:"optimize",value:function(e){if(Me(t,"optimize",this,3)([e]),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}])&&qe(n.prototype,o),r&&qe(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(k);He(We,"allowedChildren",[We,Oe,_,je]),He(We,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var Ge=We;function Ve(e){return(Ve="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 Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(Object(n),!0).forEach((function(t){it(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ze(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,at(o.key),o)}}function Xe(e,t,n){return t&&Ze(e.prototype,t),n&&Ze(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t,n){return t=nt(t),function(e,t){if(t&&("object"==Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function Je(e,t,n,o){var r=et(nt(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function et(){return(et="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=tt(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function tt(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=nt(e)););return e}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ot(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}function rt(e,t){return(rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function it(e,t,n){return(t=at(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function at(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ve(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ve(t)?t:t+""}var lt=function(e){function t(){var e;Ye(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return it(e=Qe(this,t,[].concat(o)),"cache",{}),e}return ot(t,e),Xe(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=st(this)),this.cache.delta}},{key:"deleteAt",value:function(e,n){Je(t,"deleteAt",this,3)([e,n]),this.cache={}}},{key:"formatAt",value:function(e,n,o,r){n<=0||(this.scroll.query(o,i.BLOCK)?e+n===this.length()&&this.format(o,r):Je(t,"formatAt",this,3)([e,Math.min(n,this.length()-e-1),o,r]),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return Je(t,"insertAt",this,3)([e,n,o]),void(this.cache={});if(0!==n.length){var r=n.split("\n"),i=r.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?Je(t,"insertAt",this,3)([Math.min(e,this.length()-1),i]):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var a=this;r.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+i.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;Je(t,"insertBefore",this,3)([e,n]),o instanceof Oe&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=Je(t,"length",this,3)([])+1),this.cache.length}},{key:"moveChildren",value:function(e,n){Je(t,"moveChildren",this,3)([e,n]),this.cache={}}},{key:"optimize",value:function(e){Je(t,"optimize",this,3)([e]),this.cache={}}},{key:"path",value:function(e){return Je(t,"path",this,3)([e,!0])}},{key:"removeChild",value:function(e){Je(t,"removeChild",this,3)([e]),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var r=Je(t,"split",this,3)([e,n]);return this.cache={},r}}])}(C);lt.blotName="block",lt.tagName="P",lt.defaultChild=Oe,lt.allowedChildren=[Oe,Ge,_,je];var ct=function(e){function t(){return Ye(this,t),Qe(this,t,arguments)}return ot(t,e),Xe(t,[{key:"attach",value:function(){Je(t,"attach",this,3)([]),this.attributes=new h(this.domNode)}},{key:"delta",value:function(){return(new L.a).insert(this.value(),$e($e({},this.formats()),this.attributes.values()))}},{key:"format",value:function(e,t){var n=this.scroll.query(e,i.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){var r=this;if(null==o){var i=n.split("\n"),a=i.pop(),l=i.map((function(e){var t=r.scroll.create(lt.blotName);return t.insertAt(0,e),t})),c=this.split(e);l.forEach((function(e){r.parent.insertBefore(e,c)})),a&&this.parent.insertBefore(this.scroll.create("text",a),c)}else Je(t,"insertAt",this,3)([e,n,o])}}])}(_);function st(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.descendants(v).reduce((function(e,n){return 0===n.length()?e:e.insert(n.value(),ut(n,{},t))}),new L.a).insert("\n",ut(e))}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==e?t:("formats"in e&&"function"==typeof e.formats&&(t=$e($e({},t),e.formats()),n&&delete t["code-token"]),null==e.parent||"scroll"===e.parent.statics.blotName||e.parent.statics.scope!==e.statics.scope?t:ut(e.parent,t,n))}ct.scope=i.BLOCK_BLOT;n(99);function dt(e){return(dt="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 ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,wt(o.key),o)}}function pt(e,t,n){return t=gt(t),function(e,t){if(t&&("object"==dt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],gt(e).constructor):t.apply(e,n))}function ht(e,t,n,o){var r=mt(gt(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function mt(){return(mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=bt(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function bt(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=gt(e)););return e}function gt(e){return(gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){return(vt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yt(e,t,n){return(t=wt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wt(e){var t=function(e,t){if("object"!=dt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=dt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==dt(t)?t:t+""}var xt=function(e){function t(e,n,o){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=pt(this,t,[e,n])).selection=o,r.textNode=document.createTextNode(t.CONTENTS),r.domNode.appendChild(r.textNode),r.savedLength=0,r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vt(e,t)}(t,e),n=t,r=[{key:"value",value:function(){}}],(o=[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0===this.savedLength){for(var o=this,r=0;null!=o&&o.statics.scope!==i.BLOCK_BLOT;)r+=o.offset(o.parent),o=o.parent;null!=o&&(this.savedLength=t.CONTENTS.length,o.optimize(),o.formatAt(r,t.CONTENTS.length,e,n),this.savedLength=0)}else ht(t,"format",this,3)([e,n])}},{key:"index",value:function(e,n){return e===this.textNode?0:ht(t,"index",this,3)([e,n])}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){ht(t,"remove",this,3)([]),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var e=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var n,o=this.prev instanceof je?this.prev:null,r=o?o.length():0,i=this.next instanceof je?this.next:null,a=i?i.text:"",l=this.textNode,c=l.data.split(t.CONTENTS).join("");if(l.data=t.CONTENTS,o)n=o,(c||i)&&(o.insertAt(o.length(),c+a),i&&i.remove());else if(i)n=i,i.insertAt(0,c);else{var s=document.createTextNode(c);n=this.scroll.create(s),this.parent.insertBefore(n,this)}if(this.remove(),e){var u=function(e,t){return o&&e===o.domNode?t:e===l?r+t-1:i&&e===i.domNode?r+c.length+t:null},d=u(e.start.node,e.start.offset),f=u(e.end.node,e.end.offset);if(null!==d&&null!==f)return{startNode:n.domNode,startOffset:d,endNode:n.domNode,endOffset:f}}return null}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"optimize",value:function(e){ht(t,"optimize",this,3)([e]);for(var n=this.parent;n;){if("A"===n.domNode.tagName){this.savedLength=t.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}},{key:"value",value:function(){return""}}])&&ft(n.prototype,o),r&&ft(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(_);yt(xt,"blotName","cursor"),yt(xt,"className","ql-cursor"),yt(xt,"tagName","span"),yt(xt,"CONTENTS","\ufeff");var Ot=xt,St=(n(94),n(1678)),kt=(n(1594),new WeakMap),Et=["error","warn","log","info"],Ct="warn";function Tt(e){if(Ct&&Et.indexOf(e)<=Et.indexOf(Ct)){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];(t=console)[e].apply(t,o)}}function At(e){return Et.reduce((function(t,n){return t[n]=Tt.bind(console,n,e),t}),{})}At.level=function(e){Ct=e},Tt.level=At.level;var _t=At;function jt(e){return(jt="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 Pt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,zt(o.key),o)}}function Nt(e,t,n){return t=Lt(t),function(e,t){if(t&&("object"==jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Lt(e).constructor):t.apply(e,n))}function It(e,t,n,o){var r=Rt(Lt(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Rt(){return(Rt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=qt(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function qt(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Lt(e)););return e}function Lt(e){return(Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mt(e,t){return(Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e,t,n){return(t=zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zt(e){var t=function(e,t){if("object"!=jt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=jt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jt(t)?t:t+""}var Bt=_t("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach((function(e){var n,o=kt.get(e);o&&o.emitter&&(n=o.emitter).handleDOM.apply(n,t)}))}))}));var Ft=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=Nt(this,t)).domListeners={},e.on("error",Bt.error),e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}(t,e),n=t,(o=[{key:"emit",value:function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(e=Bt.log).call.apply(e,[Bt].concat(o)),It(t,"emit",this,3)(o)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.domListeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}])&&Pt(n.prototype,o),r&&Pt(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(St.EventEmitter);Dt(Ft,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),Dt(Ft,"sources",{API:"api",SILENT:"silent",USER:"user"});var Ht=Ft;function Ut(e){return(Ut="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 Wt(e){return function(e){if(Array.isArray(e))return Kt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Vt(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||Vt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(e,t){if(e){if("string"==typeof e)return Kt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kt(e,t):void 0}}function Kt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function $t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Zt(o.key),o)}}function Yt(e,t,n){return t&&$t(e.prototype,t),n&&$t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zt(e){var t=function(e,t){if("object"!=Ut(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ut(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ut(t)?t:t+""}function Xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Qt=_t("quill:selection"),Jt=Yt((function e(t){Xt(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.index=t,this.length=n}));function en(e,t){try{t.parentNode}catch(e){return!1}return e.contains(t)}var tn=function(){return Yt((function e(t,n){var o=this;Xt(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Jt(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||o.composing||setTimeout(o.update.bind(o,Ht.sources.USER),1)})),this.emitter.on(Ht.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(Ht.events.SCROLL_UPDATE,(function(t,n){try{o.root.contains(e.start.node)&&o.root.contains(e.end.node)&&o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset);var r=n.some((function(e){return"characterData"===e.type||"childList"===e.type||"attributes"===e.type&&e.target===o.root}));o.update(r?Ht.sources.SILENT:t)}catch(e){}}))}})),this.emitter.on(Ht.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,l=n.endOffset;o.setNativeRange(r,i,a,l),o.update(Ht.sources.SILENT)}})),this.update(Ht.sources.SILENT)}),[{key:"handleComposition",value:function(){var e=this;this.emitter.on(Ht.events.COMPOSITION_BEFORE_START,(function(){e.composing=!0})),this.emitter.on(Ht.events.COMPOSITION_END,(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(Ht.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!this.scroll.query(e,i.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=this.scroll.find(n.start.node,!1);if(null==o)return;if(o instanceof v){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=this.scroll.length();e=Math.min(e,o-1),n=Math.min(e+n,o-1)-e;var r=this.scroll.leaf(e),i=Gt(r,2),a=i[0],l=i[1];if(null==a)return null;if(n>0&&l===a.length()){var c=this.scroll.leaf(e+1),s=Gt(c,1),u=s[0];if(u){var d=this.scroll.line(e),f=Gt(d,1),p=f[0],h=this.scroll.line(e+1),m=Gt(h,1),b=m[0];p===b&&(a=u,l=0)}}var g=a.position(l,!0),v=Gt(g,2);t=v[0],l=v[1];var y=document.createRange();if(n>0){y.setStart(t,l);var w=this.scroll.leaf(e+n),x=Gt(w,2);if(a=x[0],l=x[1],null==a)return null;var O=a.position(l,!0),S=Gt(O,2);return t=S[0],l=S[1],y.setEnd(t,l),y.getBoundingClientRect()}var k,E="left";if(t instanceof Text){if(!t.data.length)return null;l<t.data.length?(y.setStart(t,l),y.setEnd(t,l+1)):(y.setStart(t,l-1),y.setEnd(t,l),E="right"),k=y.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;k=a.domNode.getBoundingClientRect(),l>0&&(E="right")}return{bottom:k.top+k.height,height:k.height,left:k[E],right:k[E],top:k.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return Qt.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||null!=document.activeElement&&en(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=Gt(e,2),o=n[0],r=n[1],i=t.scroll.find(o,!0),a=i.offset(t.scroll);return 0===r?a:i instanceof v?a+i.index(o,r):a+i.length()})),r=Math.min(Math.max.apply(Math,Wt(o)),this.scroll.length()-1),i=Math.min.apply(Math,[r].concat(Wt(o)));return new Jt(i,r-i)}},{key:"normalizeNative",value:function(e){if(!en(this.root,e.startContainer)||!e.collapsed&&!en(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length>0?t.childNodes.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=this.scroll.length(),o=function(e,o){e=Math.min(n-1,e);var r=Gt(t.scroll.leaf(e),2),i=r[0],a=r[1];return i?i.position(a,o):[null,-1]};return[].concat(Wt(o(e.index,!1)),Wt(o(e.index+e.length,!0)))}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Qt.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus({preventScroll:!0});var a=this.getNativeRange()||{},l=a.native;if(null==l||r||e!==l.startContainer||t!==l.startOffset||n!==l.endContainer||o!==l.endOffset){e instanceof Element&&"BR"===e.tagName&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&"BR"===n.tagName&&(o=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);var c=document.createRange();c.setStart(e,t),c.setEnd(n,o),i.removeAllRanges(),i.addRange(c)}}else i.removeAllRanges(),this.root.blur()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.sources.API;if("string"==typeof t&&(n=t,t=!1),Qt.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,Wt(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht.sources.USER,t=this.lastRange,n=this.getRange(),o=Gt(n,2),r=o[0],i=o[1];if(this.lastRange=r,this.lastNative=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!Object(pe.a)(t,this.lastRange)){var a;if(!this.composing&&null!=i&&i.native.collapsed&&i.start.node!==this.cursor.textNode){var l=this.cursor.restore();l&&this.setNativeRange(l.startNode,l.startOffset,l.endNode,l.endOffset)}var c,s=[Ht.events.SELECTION_CHANGE,fe(this.lastRange),fe(t),e];if((a=this.emitter).emit.apply(a,[Ht.events.EDITOR_CHANGE].concat(s)),e!==Ht.sources.SILENT)(c=this.emitter).emit.apply(c,s)}}}])}();function nn(e){return fn(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||un(e)||sn()}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){an(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function an(e,t,n){return(t=hn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e){return(ln="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 cn(e,t){return fn(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||un(e,t)||sn()}function sn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function un(e,t){if(e){if("string"==typeof e)return dn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dn(e,t):void 0}}function dn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function fn(e){if(Array.isArray(e))return e}function pn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,hn(o.key),o)}}function hn(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ln(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}var mn=/^[ -~]*$/;function bn(e,t,n){if(0===e.length){var o=cn(yn(n.pop()),1)[0];return t<=0?"</li></".concat(o,">"):"</li></".concat(o,">").concat(bn([],t-1,n))}var r=nn(e),i=r[0],a=i.child,l=i.offset,c=i.length,s=i.indent,u=i.type,d=r.slice(1),f=cn(yn(u),2),p=f[0],h=f[1];if(s>t)return n.push(u),s===t+1?"<".concat(p,"><li").concat(h,">").concat(gn(a,l,c)).concat(bn(d,s,n)):"<".concat(p,"><li>").concat(bn(e,t+1,n));var m=n[n.length-1];if(s===t&&u===m)return"</li><li".concat(h,">").concat(gn(a,l,c)).concat(bn(d,s,n));var b=cn(yn(n.pop()),1)[0];return"</li></".concat(b,">").concat(bn(e,t-1,n))}function gn(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("html"in e&&"function"==typeof e.html)return e.html(t,n);if(e instanceof je){var r=Ne(e.value().slice(t,t+n));return r.replaceAll(" "," ")}if(e instanceof O){if("list-container"===e.statics.blotName){var i=[];return e.children.forEachAt(t,n,(function(e,t,n){var o="formats"in e&&"function"==typeof e.formats?e.formats():{};i.push({child:e,offset:t,length:n,indent:o.indent||0,type:o.list})})),bn(i,-1,[])}var a=[];if(e.children.forEachAt(t,n,(function(e,t,n){a.push(gn(e,t,n))})),o||"list"===e.statics.blotName)return a.join("");var l=e.domNode,c=l.outerHTML,s=l.innerHTML,u=c.split(">".concat(s,"<")),d=cn(u,2),f=d[0],p=d[1];return"<table"===f?'<table style="border: 1px solid #000;">'.concat(a.join(""),"<").concat(p):"".concat(f,">").concat(a.join(""),"<").concat(p)}return e.domNode instanceof Element?e.domNode.outerHTML:""}function vn(e,t){return Object.keys(t).reduce((function(n,o){if(null==e[o])return n;var r=t[o];return r===e[o]?n[o]=r:Array.isArray(r)?r.indexOf(e[o])<0?n[o]=r.concat([e[o]]):n[o]=r:n[o]=[r,e[o]],n}),{})}function yn(e){var t="ordered"===e?"ol":"ul";switch(e){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function wn(e){return e.reduce((function(e,t){if("string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new L.a)}function xn(e,t){var n=e.index,o=e.length;return new Jt(n+t,o)}var On=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()},(t=[{key:"applyDelta",value:function(e){var t=this;this.scroll.update();var n=this.scroll.length();this.scroll.batchStart();var o,a,l=wn(e),c=new L.a;return(o=l.ops.slice(),a=[],o.forEach((function(e){"string"==typeof e.insert?e.insert.split("\n").forEach((function(t,n){n&&a.push({insert:"\n",attributes:e.attributes}),t&&a.push({insert:t,attributes:e.attributes})})):a.push(e)})),a).reduce((function(e,o){var a=q.Op.length(o),l=o.attributes||{},s=!1,u=!1;if(null!=o.insert){if(c.retain(a),"string"==typeof o.insert){var d=o.insert;u=!d.endsWith("\n")&&(n<=e||!!t.scroll.descendant(ct,e)[0]),t.scroll.insertAt(e,d);var f=cn(t.scroll.line(e),2),p=f[0],h=f[1],m=Object(r.a)({},ut(p));if(p instanceof lt){var b=cn(p.descendant(v,h),1)[0];b&&(m=Object(r.a)(m,ut(b)))}l=q.AttributeMap.diff(m,l)||{}}else if("object"===ln(o.insert)){var g=Object.keys(o.insert)[0];if(null==g)return e;var y=null!=t.scroll.query(g,i.INLINE);if(y)(n<=e||t.scroll.descendant(ct,e)[0])&&(u=!0);else if(e>0){var w=cn(t.scroll.descendant(v,e-1),2),x=w[0],O=w[1];x instanceof je?"\n"!==x.value()[O]&&(s=!0):x instanceof _&&x.statics.scope===i.INLINE_BLOT&&(s=!0)}if(t.scroll.insertAt(e,g,o.insert[g]),y){var S=cn(t.scroll.descendant(v,e),1)[0];if(S){var k=Object(r.a)({},ut(S));l=q.AttributeMap.diff(k,l)||{}}}}n+=a}else if(c.push(o),null!==o.retain&&"object"===ln(o.retain)){var E=Object.keys(o.retain)[0];if(null==E)return e;t.scroll.updateEmbedAt(e,E,o.retain[E])}Object.keys(l).forEach((function(n){t.scroll.formatAt(e,a,n,l[n])}));var C=s?1:0,T=u?1:0;return n+=C+T,c.retain(C),c.delete(T),e+a+C+T}),0),c.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+q.Op.length(n)}),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(l)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new L.a).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(o).forEach((function(r){n.scroll.lines(e,Math.max(t,1)).forEach((function(e){e.format(r,o[r])}))})),this.scroll.optimize();var r=(new L.a).retain(e).retain(t,fe(o));return this.update(r)}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])}));var r=(new L.a).retain(e).retain(t,fe(o));return this.update(r)}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new L.a)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=cn(e,1)[0];t instanceof lt?n.push(t):t instanceof v&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(v,e,t));var r=[n,o].map((function(e){var t=e.shift();if(null==t)return{};for(var n=ut(t);Object.keys(n).length>0;){var o=e.shift();if(null==o)return n;n=vn(ut(o),n)}return n})),i=cn(r,2),a=i[0],l=i[1];return rn(rn({},a),l)}},{key:"getHTML",value:function(e,t){var n=cn(this.scroll.line(e),2),o=n[0],r=n[1];if(o){var i=o.length();return o.length()>=r+t&&(0!==r||t!==i)?gn(o,r,t,!0):gn(this.scroll,e,t,!0)}return""}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertContents",value:function(e,t){var n=wn(t),o=(new L.a).retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(o)}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new L.a).retain(e).insert(an({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new L.a).retain(e).insert(t,fe(o)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;if((null==e?void 0:e.statics.blotName)!==lt.blotName)return!1;var t=e;return!(t.children.length>1)&&t.children.head instanceof Oe}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=cn(this.scroll.line(e+t),2),r=o[0],i=o[1],a=0,l=new L.a;null!=r&&(a=r.length()-i,l=r.delta().slice(i,i+a-1).insert("\n"));var c=this.getContents(e,t+a).diff((new L.a).insert(n).concat(l)),s=(new L.a).retain(e).concat(c);return this.applyDelta(s)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(mn)&&this.scroll.find(t[0].target)){var r=this.scroll.find(t[0].target),i=ut(r),a=r.offset(this.scroll),l=t[0].oldValue.replace(Ot.CONTENTS,""),c=(new L.a).insert(l),s=(new L.a).insert(r.value()),u=n&&{oldRange:xn(n.oldRange,-a),newRange:xn(n.newRange,-a)},d=(new L.a).retain(a).concat(c.diff(s,u));e=d.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new L.a),this.delta=o.compose(e)}else this.delta=this.getDelta(),e&&Object(pe.a)(o.compose(e),this.delta)||(e=o.diff(this.delta,n));return e}}])&&pn(e.prototype,t),n&&pn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function Sn(e){return(Sn="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 kn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Tn(o.key),o)}}function En(e,t,n){return t&&kn(e.prototype,t),n&&kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tn(e){var t=function(e,t){if("object"!=Sn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Sn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sn(t)?t:t+""}var An,_n,jn,Pn=En((function e(t){Cn(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.quill=t,this.options=n}));An=Pn,jn={},(_n=Tn(_n="DEFAULTS"))in An?Object.defineProperty(An,_n,{value:jn,enumerable:!0,configurable:!0,writable:!0}):An[_n]=jn;var Nn=Pn;n(1681);function In(e){return(In="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 Rn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qn(o.key),o)}}function qn(e){var t=function(e,t){if("object"!=In(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=In(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==In(t)?t:t+""}function Ln(e,t,n){return t=zn(t),function(e,t){if(t&&("object"==In(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],zn(e).constructor):t.apply(e,n))}function Mn(){return(Mn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Dn(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Dn(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=zn(e)););return e}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bn(e,t){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Fn=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Ln(this,t,[e,n])).contentNode=document.createElement("span"),o.contentNode.setAttribute("contenteditable","false"),Array.from(o.domNode.childNodes).forEach((function(e){o.contentNode.appendChild(e)})),o.leftGuard=document.createTextNode("\ufeff"),o.rightGuard=document.createTextNode("\ufeff"),o.domNode.appendChild(o.leftGuard),o.domNode.appendChild(o.contentNode),o.domNode.appendChild(o.rightGuard),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bn(e,t)}(t,e),function(e,t,n){return t&&Rn(e.prototype,t),n&&Rn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:function(e,t,n,o){var r=Mn(zn(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"index",this,3)([e,n])}},{key:"restore",value:function(e){var t,n=null,o=e.data.split("\ufeff").join("");if(e===this.leftGuard)if(this.prev instanceof je){var r=this.prev.length();this.prev.insertAt(r,o),n={startNode:this.prev.domNode,startOffset:r+o.length}}else t=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(t),this),n={startNode:t,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof je?(this.next.insertAt(0,o),n={startNode:this.next.domNode,startOffset:o.length}):(t=document.createTextNode(o),this.parent.insertBefore(this.scroll.create(t),this.next),n={startNode:t,startOffset:o.length}));return e.data="\ufeff",n}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}])}(_);function Hn(e){return(Hn="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 Un(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Wn(o.key),o)}}function Wn(e){var t=function(e,t){if("object"!=Hn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Hn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hn(t)?t:t+""}var Gn,Vn=function(){return function(e,t,n){return t&&Un(e.prototype,t),n&&Un(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,t,n){(t=Wn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"isComposing",!1),this.scroll=t,this.emitter=n,this.setupListeners()}),[{key:"setupListeners",value:function(){var e=this;this.scroll.domNode.addEventListener("compositionstart",(function(t){e.isComposing||e.handleCompositionStart(t)})),this.scroll.domNode.addEventListener("compositionend",(function(t){e.isComposing&&queueMicrotask((function(){e.handleCompositionEnd(t)}))}))}},{key:"handleCompositionStart",value:function(e){var t=e.target instanceof Node?this.scroll.find(e.target,!0):null;!t||t instanceof Fn||(this.emitter.emit(Ht.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(Ht.events.COMPOSITION_START,e),this.isComposing=!0)}},{key:"handleCompositionEnd",value:function(e){this.emitter.emit(Ht.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(Ht.events.COMPOSITION_END,e),this.isComposing=!1}}])}();function Kn(e){return(Kn="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 $n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Zn(o.key),o)}}function Yn(e,t,n){return(t=Zn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zn(e){var t=function(e,t){if("object"!=Kn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Kn(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Kn(t)?t:t+""}var Xn=function(){return function(e,t,n){return t&&$n(e.prototype,t),n&&$n(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Yn(this,"modules",{}),this.quill=t,this.options=n}),[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/".concat(e));return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}])}();Gn=Xn,Yn(Xn,"DEFAULTS",{modules:{}}),Yn(Xn,"themes",{default:Gn});var Qn=Xn,Jn=(n(1608),n(111),function(e){var t=e.getBoundingClientRect(),n="offsetWidth"in e&&Math.abs(t.width)/e.offsetWidth||1,o="offsetHeight"in e&&Math.abs(t.height)/e.offsetHeight||1;return{top:t.top,right:t.left+e.clientWidth*n,bottom:t.top+e.clientHeight*o,left:t.left}}),eo=function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},to=function(e,t,n,o,r,i){return e<n&&t>o?0:e<n?-(n-e+r):t>o?t-e>o-n?e+r-n:t-o+i:0},no=function(e,t){for(var n,o=e.ownerDocument,r=t,i=e;i;){var a,l,c,s,u=i===o.body,d=u?{top:0,right:null!==(a=null===(l=window.visualViewport)||void 0===l?void 0:l.width)&&void 0!==a?a:o.documentElement.clientWidth,bottom:null!==(c=null===(s=window.visualViewport)||void 0===s?void 0:s.height)&&void 0!==c?c:o.documentElement.clientHeight,left:0}:Jn(i),f=getComputedStyle(i),p=to(r.left,r.right,d.left,d.right,eo(f.scrollPaddingLeft),eo(f.scrollPaddingRight)),h=to(r.top,r.bottom,d.top,d.bottom,eo(f.scrollPaddingTop),eo(f.scrollPaddingBottom));if(p||h)if(u){var m;null===(m=o.defaultView)||void 0===m||m.scrollBy(p,h)}else{var b=i,g=b.scrollLeft,v=b.scrollTop;h&&(i.scrollTop+=h),p&&(i.scrollLeft+=p);var y=i.scrollLeft-g,w=i.scrollTop-v;r={left:r.left-y,top:r.top-w,right:r.right-y,bottom:r.bottom-w}}i=u||"fixed"===f.position?null:(n=i).parentElement||n.getRootNode().host||null}},oo=["block","break","cursor","inline","scroll","text"],ro=function(e,t,n){var o=new s;return oo.forEach((function(e){var n=t.query(e);n&&o.register(n)})),e.forEach((function(e){var r=t.query(e);r||n.error('Cannot register "'.concat(e,'" specified in "formats" config. Are you sure it was registered?'));for(var i=0;r;){var a;if(o.register(r),r="blotName"in r&&null!==(a=r.requiredContainer)&&void 0!==a?a:null,(i+=1)>100){n.error('Cycle detected in registering blot requiredContainer: "'.concat(e,'"'));break}}})),o},io=["modules"],ao=["modules"];function lo(e){return(lo="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 co(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?so(Object(n),!0).forEach((function(t){bo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return po(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?po(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function po(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function ho(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,go(o.key),o)}}function bo(e,t,n){return(t=go(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(e){var t=function(e,t){if("object"!=lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lo(t)?t:t+""}var vo=_t("quill"),yo=new s;O.uiClass="ql-ui";var wo=function(){function e(t){var n=this;ho(this,e);var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.options=ko(t,o),this.container=this.options.container,null!=this.container){this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",kt.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new Ht;var i=N.blotName,a=this.options.registry.query(i);if(!a||!("blotName"in a))throw new Error('Cannot initialize Quill without "'.concat(i,'" blot'));if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new On(this.scroll),this.selection=new tn(this.scroll,this.emitter),this.composition=new Vn(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(Ht.events.EDITOR_CHANGE,(function(e){e===Ht.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(Ht.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=fo(n.selection.getRange(),1)[0],i=o&&r?{oldRange:o,newRange:r}:void 0;Eo.call(n,(function(){return n.editor.update(null,t,i)}),e)})),this.emitter.on(Ht.events.SCROLL_EMBED_UPDATE,(function(t,o){var r=n.selection.lastRange,i=fo(n.selection.getRange(),1)[0],a=r&&i?{oldRange:r,newRange:i}:void 0;Eo.call(n,(function(){var e=(new L.a).retain(t.offset(n)).retain(bo({},t.statics.blotName,o));return n.editor.update(e,[],a)}),e.sources.USER)})),r){var l=this.clipboard.convert({html:"".concat(r,"<p><br></p>"),text:"\n"});this.setContents(l)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}else vo.error("Invalid Quill container",t)}return function(e,t,n){return t&&mo(e.prototype,t),n&&mo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,r=fo(Co(e,t,n),4);return e=r[0],t=r[1],n=r[3],Eo.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(e){this.allowReadOnlyEdits=!0;var t=e();return this.allowReadOnlyEdits=!1,t}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ht.sources.API;return Eo.call(this,(function(){var o=n.getSelection(!0),r=new L.a;if(null==o)return r;if(n.scroll.query(e,i.BLOCK))r=n.editor.formatLine(o.index,o.length,bo({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,bo({},e,t))}return n.setSelection(o,Ht.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,r){var i,a=this,l=fo(Co(e,t,n,o,r),4);return e=l[0],t=l[1],i=l[2],r=l[3],Eo.call(this,(function(){return a.editor.formatLine(e,t,i)}),r,e,0)}},{key:"formatText",value:function(e,t,n,o,r){var i,a=this,l=fo(Co(e,t,n,o,r),4);return e=l[0],t=l[1],i=l[2],r=l[3],Eo.call(this,(function(){return a.editor.formatText(e,t,i)}),r,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=null;if(!(n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length)))return null;var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=Co(e,t),o=fo(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"==typeof e&&(t=null!=t?t:this.getLength()-e);var n=Co(e,t),o=fo(n,2);return e=o[0],t=o[1],this.editor.getHTML(e,t)}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;"number"==typeof e&&(t=null!=t?t:this.getLength()-e);var n=Co(e,t),o=fo(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return Eo.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,r){var i,a=this,l=fo(Co(e,0,n,o,r),4);return e=l[0],i=l[2],r=l[3],Eo.call(this,(function(){return a.editor.insertText(e,t,i)}),r,e,t.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var e;return(e=this.emitter).off.apply(e,arguments)}},{key:"on",value:function(){var e;return(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;return(e=this.emitter).once.apply(e,arguments)}},{key:"removeFormat",value:function(e,t,n){var o=this,r=fo(Co(e,t,n),4);return e=r[0],t=r[1],n=r[3],Eo.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollRectIntoView",value:function(e){no(this.root,e)}},{key:"scrollIntoView",value:function(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}},{key:"scrollSelectionIntoView",value:function(){var e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API;return Eo.call(this,(function(){e=new L.a(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.insertContents(0,e),i=t.editor.deleteText(t.getLength()-1,1);return o.compose(r).compose(i)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var r=fo(Co(t,n,o),4);t=r[0],n=r[1],o=r[3],this.selection.setRange(new Jt(Math.max(0,t),n),o),o!==Ht.sources.SILENT&&this.scrollSelectionIntoView()}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API,n=(new L.a).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ht.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ht.sources.API;return Eo.call(this,(function(){return e=new L.a(e),t.editor.applyDelta(e)}),n,!0)}}],[{key:"debug",value:function(e){!0===e&&(e="log"),_t.level(e)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return kt.get(e)||yo.find(e,t)}},{key:"import",value:function(e){return null==this.imports[e]&&vo.error("Cannot import ".concat(e,". Are you sure it was registered?")),this.imports[e]}},{key:"register",value:function(){var e=this;if("string"!=typeof(arguments.length<=0?void 0:arguments[0])){var t=arguments.length<=0?void 0:arguments[0],n=!!(arguments.length<=1?void 0:arguments[1]),o="attrName"in t?t.attrName:t.blotName;"string"==typeof o?this.register("formats/".concat(o),t,n):Object.keys(t).forEach((function(o){e.register(o,t[o],n)}))}else{var r=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],a=!!(arguments.length<=2?void 0:arguments[2]);null==this.imports[r]||a||vo.warn("Overwriting ".concat(r," with"),i),this.imports[r]=i,(r.startsWith("blots/")||r.startsWith("formats/"))&&i&&"boolean"!=typeof i&&"abstract"!==i.blotName&&yo.register(i),"function"==typeof i.register&&i.register(yo)}}}])}();function xo(e){return"string"==typeof e?document.querySelector(e):e}function Oo(e){return Object.entries(null!=e?e:{}).reduce((function(e,t){var n=fo(t,2),o=n[0],r=n[1];return uo(uo({},e),{},bo({},o,!0===r?{}:r))}),{})}function So(e){return Object.fromEntries(Object.entries(e).filter((function(e){return void 0!==e[1]})))}function ko(e,t){var n=xo(e);if(!n)throw new Error("Invalid Quill container");var o=!t.theme||t.theme===wo.DEFAULTS.theme?Qn:wo.import("themes/".concat(t.theme));if(!o)throw new Error("Invalid theme ".concat(t.theme,". Did you register it?"));var i=wo.DEFAULTS,a=i.modules,l=co(i,io),c=o.DEFAULTS,s=c.modules,u=co(c,ao),d=Oo(t.modules);null!=d&&d.toolbar&&d.toolbar.constructor!==Object&&(d=uo(uo({},d),{},{toolbar:{container:d.toolbar}}));var f=Object(r.a)({},Oo(a),Oo(s),d),p=uo(uo(uo({},l),So(u)),So(t)),h=t.registry;return h?t.formats&&vo.warn('Ignoring "formats" option because "registry" is specified'):h=t.formats?ro(t.formats,p.registry,vo):p.registry,uo(uo({},p),{},{registry:h,container:n,theme:o,modules:Object.entries(f).reduce((function(e,t){var n=fo(t,2),o=n[0],i=n[1];if(!i)return e;var a=wo.import("modules/".concat(o));return null==a?(vo.error("Cannot load ".concat(o," module. Are you sure you registered it?")),e):uo(uo({},e),{},bo({},o,Object(r.a)({},a.DEFAULTS||{},i)))}),{}),bounds:xo(p.bounds)})}function Eo(e,t,n,o){if(!this.isEnabled()&&t===Ht.sources.USER&&!this.allowReadOnlyEdits)return new L.a;var r=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=To(r,a,t):0!==o&&(r=To(r,n,o,t)),this.setSelection(r,Ht.sources.SILENT)),a.length()>0){var l,c,s=[Ht.events.TEXT_CHANGE,a,i,t];if((l=this.emitter).emit.apply(l,[Ht.events.EDITOR_CHANGE].concat(s)),t!==Ht.sources.SILENT)(c=this.emitter).emit.apply(c,s)}return a}function Co(e,t,n,o,r){var i={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(r=o,o=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(r=o,o=n,n=t,t=0),"object"===lo(n)?(i=n,r=o):"string"==typeof n&&(null!=o?i[n]=o:r=n),[e,t,i,r=r||Ht.sources.API]}function To(e,t,n,o){var r,i,a="number"==typeof n?n:0;if(null==e)return null;if(t&&"function"==typeof t.transformPosition){var l=fo([e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==Ht.sources.USER)})),2);r=l[0],i=l[1]}else{var c=fo([e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===Ht.sources.USER?e:a>=0?e+a:Math.max(t,e+a)})),2);r=c[0],i=c[1]}return new Jt(r,i-r)}function Ao(e){return(Ao="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 _o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,jo(o.key),o)}}function jo(e){var t=function(e,t){if("object"!=Ao(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ao(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ao(t)?t:t+""}function Po(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t,n){return t=Io(t),function(e,t){if(t&&("object"==Ao(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Io(e).constructor):t.apply(e,n))}function Io(e){return(Io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ro(e,t){return(Ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}bo(wo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:yo,theme:"default"}),bo(wo,"events",Ht.events),bo(wo,"sources",Ht.sources),bo(wo,"version","2.0.3"),bo(wo,"imports",{delta:L.a,parchment:o,"core/module":Nn,"core/theme":Qn});var qo=function(e){function t(){return Po(this,t),No(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ro(e,t)}(t,e),function(e,t,n){return t&&_o(e.prototype,t),n&&_o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(A);function Lo(e){return(Lo="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 Mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Do(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Do(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Do(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function zo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ko(o.key),o)}}function Bo(e,t,n){return t=Wo(t),function(e,t){if(t&&("object"==Lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Wo(e).constructor):t.apply(e,n))}function Fo(e,t,n,o){var r=Ho(Wo(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Ho(){return(Ho="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Uo(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Uo(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Wo(e)););return e}function Wo(e){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Go(e,t){return(Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vo(e,t,n){return(t=Ko(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ko(e){var t=function(e,t){if("object"!=Lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Lo(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Lo(t)?t:t+""}function $o(e){return e instanceof lt||e instanceof ct}function Yo(e){return"function"==typeof e.updateContent}var Zo=function(e){function t(e,n,o){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=o.emitter;return(r=Bo(this,t,[e,n])).emitter=i,r.batch=!1,r.optimize(),r.enable(),r.domNode.addEventListener("dragstart",(function(e){return r.handleDragStart(e)})),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Go(e,t)}(t,e),function(e,t,n){return t&&zo(e.prototype,t),n&&zo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){if(this.batch){var e=this.batch;this.batch=!1,this.update(e)}}},{key:"emitMount",value:function(e){this.emitter.emit(Ht.events.SCROLL_BLOT_MOUNT,e)}},{key:"emitUnmount",value:function(e){this.emitter.emit(Ht.events.SCROLL_BLOT_UNMOUNT,e)}},{key:"emitEmbedUpdate",value:function(e,t){this.emitter.emit(Ht.events.SCROLL_EMBED_UPDATE,e,t)}},{key:"deleteAt",value:function(e,n){var o=Mo(this.line(e),2),r=o[0],i=o[1],a=Mo(this.line(e+n),1)[0];if(Fo(t,"deleteAt",this,3)([e,n]),null!=a&&r!==a&&i>0){if(r instanceof ct||a instanceof ct)return void this.optimize();var l=a.children.head instanceof Oe?null:a.children.head;r.moveChildren(a,l),r.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e?"true":"false")}},{key:"formatAt",value:function(e,n,o,r){Fo(t,"formatAt",this,3)([e,n,o,r]),this.optimize()}},{key:"insertAt",value:function(e,n,o){if(e>=this.length())if(null==o||null==this.scroll.query(n,i.BLOCK)){var r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r),null==o&&n.endsWith("\n")?r.insertAt(0,n.slice(0,-1),o):r.insertAt(0,n,o)}else{var a=this.scroll.create(n,o);this.appendChild(a)}else Fo(t,"insertAt",this,3)([e,n,o]);this.optimize()}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===i.INLINE_BLOT){var o=this.scroll.create(this.statics.defaultChild.blotName);o.appendChild(e),Fo(t,"insertBefore",this,3)([o,n])}else Fo(t,"insertBefore",this,3)([e,n])}},{key:"insertContents",value:function(e,t){var n=this,o=this.deltaToRenderBlocks(t.concat((new L.a).insert("\n"))),r=o.pop();if(null!=r){this.batchStart();var i=o.shift();if(i){var a="block"===i.type&&(0===i.delta.length()||!this.descendant(ct,e)[0]&&e<this.length()),l="block"===i.type?i.delta:(new L.a).insert(Vo({},i.key,i.value));Xo(this,e,l);var c="block"===i.type?1:0,s=e+l.length()+c;a&&this.insertAt(s-1,"\n");var u=ut(this.line(e)[0]),d=q.AttributeMap.diff(u,i.attributes)||{};Object.keys(d).forEach((function(e){n.formatAt(s-1,1,e,d[e])})),e=s}var f=Mo(this.children.find(e),2),p=f[0],h=f[1];if(o.length&&(p&&(p=p.split(h),h=0),o.forEach((function(e){if("block"===e.type){Xo(n.createBlock(e.attributes,p||void 0),0,e.delta)}else{var t=n.create(e.key,e.value);n.insertBefore(t,p||void 0),Object.keys(e.attributes).forEach((function(n){t.format(n,e.attributes[n])}))}}))),"block"===r.type&&r.delta.length())Xo(this,p?p.offset(p.scroll)+h:this.length(),r.delta);this.batchEnd(),this.optimize()}}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(e){var t=this.path(e).pop();if(!t)return[null,-1];var n=Mo(t,2),o=n[0],r=n[1];return o instanceof v?[o,r]:[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant($o,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function(e,t,o){var r=[],i=o;return e.children.forEachAt(t,o,(function(e,t,o){$o(e)?r.push(e):e instanceof A&&(r=r.concat(n(e,t,i))),i-=o})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(Fo(t,"optimize",this,3)([e,n]),e.length>0&&this.emitter.emit(Ht.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return Fo(t,"path",this,3)([e]).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(e){var n=this;if(this.batch)Array.isArray(e)&&(this.batch=this.batch.concat(e));else{var o=Ht.sources.USER;"string"==typeof e&&(o=e),Array.isArray(e)||(e=this.observer.takeRecords()),(e=e.filter((function(e){var t=e.target,o=n.find(t,!0);return o&&!Yo(o)}))).length>0&&this.emitter.emit(Ht.events.SCROLL_BEFORE_UPDATE,o,e),Fo(t,"update",this,3)([e.concat([])]),e.length>0&&this.emitter.emit(Ht.events.SCROLL_UPDATE,o,e)}}},{key:"updateEmbedAt",value:function(e,t,n){var o=Mo(this.descendant((function(e){return e instanceof ct}),e),1)[0];o&&o.statics.blotName===t&&Yo(o)&&o.updateContent(n)}},{key:"handleDragStart",value:function(e){e.preventDefault()}},{key:"deltaToRenderBlocks",value:function(e){var t=this,n=[],o=new L.a;return e.forEach((function(e){var r=null==e?void 0:e.insert;if(r)if("string"==typeof r){var a=r.split("\n");a.slice(0,-1).forEach((function(t){var r;o.insert(t,e.attributes),n.push({type:"block",delta:o,attributes:null!==(r=e.attributes)&&void 0!==r?r:{}}),o=new L.a}));var l=a[a.length-1];l&&o.insert(l,e.attributes)}else{var c,s=Object.keys(r)[0];if(!s)return;if(t.query(s,i.INLINE))o.push(e);else o.length()&&n.push({type:"block",delta:o,attributes:{}}),o=new L.a,n.push({type:"blockEmbed",key:s,value:r[s],attributes:null!==(c=e.attributes)&&void 0!==c?c:{}})}})),o.length()&&n.push({type:"block",delta:o,attributes:{}}),n}},{key:"createBlock",value:function(e,t){var n,o=this,r={};Object.entries(e).forEach((function(e){var t=Mo(e,2),a=t[0],l=t[1];null!=o.query(a,i.BLOCK&i.BLOT)?n=a:r[a]=l}));var a=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(a,t||void 0);var l=a.length();return Object.entries(r).forEach((function(e){var t=Mo(e,2),n=t[0],o=t[1];a.formatAt(0,l,n,o)})),a}}])}(N);function Xo(e,t,n){n.reduce((function(t,n){var o=q.Op.length(n),r=n.attributes||{};if(null!=n.insert)if("string"==typeof n.insert){var a=n.insert;e.insertAt(t,a);var l=ut(Mo(e.descendant(v,t),1)[0]);r=q.AttributeMap.diff(l,r)||{}}else if("object"===Lo(n.insert)){var c=Object.keys(n.insert)[0];if(null==c)return t;if(e.insertAt(t,c,n.insert[c]),null!=e.scroll.query(c,i.INLINE)){var s=ut(Mo(e.descendant(v,t),1)[0]);r=q.AttributeMap.diff(s,r)||{}}}return Object.keys(r).forEach((function(n){e.formatAt(t,o,n,r[n])})),t+o}),t)}Vo(Zo,"blotName","scroll"),Vo(Zo,"className","ql-editor"),Vo(Zo,"tagName","DIV"),Vo(Zo,"defaultChild",lt),Vo(Zo,"allowedChildren",[lt,ct,qo]);var Qo=Zo,Jo=(n(50),n(133),n(62),{scope:i.BLOCK,whitelist:["right","center","justify"]}),er=new a("align","align",Jo),tr=new d("align","ql-align",Jo),nr=new p("align","text-align",Jo);function or(e){return(or="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 rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ir(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ar(o.key),o)}}function ar(e){var t=function(e,t){if("object"!=or(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=or(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==or(t)?t:t+""}function lr(e,t,n){return t=ur(t),function(e,t){if(t&&("object"==or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ur(e).constructor):t.apply(e,n))}function cr(){return(cr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=sr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function sr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ur(e)););return e}function ur(e){return(ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e,t){return(dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fr=function(e){function t(){return rr(this,t),lr(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dr(e,t)}(t,e),function(e,t,n){return t&&ir(e.prototype,t),n&&ir(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"value",value:function(e){var n=function(e,t,n,o){var r=cr(ur(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"value",this,3)([e]);if(!n.startsWith("rgb("))return n;n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"");var o=n.split(",").map((function(e){return"00".concat(parseInt(e,10).toString(16)).slice(-2)})).join("");return"#".concat(o)}}])}(p),pr=new d("color","ql-color",{scope:i.INLINE}),hr=new fr("color","color",{scope:i.INLINE}),mr=new d("background","ql-bg",{scope:i.INLINE}),br=new fr("background","background-color",{scope:i.INLINE});function gr(e){return(gr="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 vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,xr(o.key),o)}}function wr(e,t,n){return t&&yr(e.prototype,t),n&&yr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xr(e){var t=function(e,t){if("object"!=gr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=gr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gr(t)?t:t+""}function Or(e,t,n){return t=Er(t),function(e,t){if(t&&("object"==gr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Er(e).constructor):t.apply(e,n))}function Sr(){return(Sr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=kr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function kr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Er(e)););return e}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cr(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tr(e,t)}function Tr(e,t){return(Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ar=function(e){function t(){return vr(this,t),Or(this,t,arguments)}return Cr(t,e),wr(t,[{key:"code",value:function(e,t){return this.children.map((function(e){return e.length()<=1?"":e.domNode.innerText})).join("\n").slice(e,e+t)}},{key:"html",value:function(e,t){return"<pre>\n".concat(Ne(this.code(e,t)),"\n</pre>")}}],[{key:"create",value:function(e){var n=function(e,t,n,o){var r=Sr(Er(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"create",this,2)([e]);return n.setAttribute("spellcheck","false"),n}}])}(qo),_r=function(e){function t(){return vr(this,t),Or(this,t,arguments)}return Cr(t,e),wr(t,null,[{key:"register",value:function(){wo.register(Ar)}}])}(lt);!function(e,t,n){(t=xr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(_r,"TAB"," ");var jr=function(e){function t(){return vr(this,t),Or(this,t,arguments)}return Cr(t,e),wr(t)}(Ge);jr.blotName="code",jr.tagName="CODE",_r.blotName="code-block",_r.className="ql-code-block",_r.tagName="DIV",Ar.blotName="code-block-container",Ar.className="ql-code-block-container",Ar.tagName="DIV",Ar.allowedChildren=[_r],_r.allowedChildren=[je,Oe,Ot],_r.requiredContainer=Ar;var Pr={scope:i.BLOCK,whitelist:["rtl"]},Nr=new a("direction","dir",Pr),Ir=new d("direction","ql-direction",Pr),Rr=new p("direction","direction",Pr);function qr(e){return(qr="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 Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Dr(o.key),o)}}function Dr(e){var t=function(e,t){if("object"!=qr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=qr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qr(t)?t:t+""}function zr(e,t,n){return t=Hr(t),function(e,t){if(t&&("object"==qr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Hr(e).constructor):t.apply(e,n))}function Br(){return(Br="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Fr(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Fr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Hr(e)););return e}function Hr(e){return(Hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ur(e,t){return(Ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Wr={scope:i.INLINE,whitelist:["serif","monospace"]},Gr=new d("font","ql-font",Wr),Vr=new(function(e){function t(){return Lr(this,t),zr(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ur(e,t)}(t,e),function(e,t,n){return t&&Mr(e.prototype,t),n&&Mr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"value",value:function(e){return function(e,t,n,o){var r=Br(Hr(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"value",this,3)([e]).replace(/["']/g,"")}}])}(p))("font","font-family",Wr),Kr=new d("size","ql-size",{scope:i.INLINE,whitelist:["small","large","huge"]}),$r=new p("size","font-size",{scope:i.INLINE,whitelist:["10px","18px","32px"]});n(130);function Yr(e){return(Yr="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 Zr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach((function(t){ei(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ei(e,t,n){return(t=ni(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ti(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ni(o.key),o)}}function ni(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Yr(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}function oi(e,t,n){return t=ri(t),function(e,t){if(t&&("object"==Yr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ri(e).constructor):t.apply(e,n))}function ri(e){return(ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ii(e,t){return(ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var ai=_t("quill:keyboard"),li=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",ci=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=oi(this,t,[e,n])).bindings={},Object.keys(o.options.bindings).forEach((function(e){o.options.bindings[e]&&o.addBinding(o.options.bindings[e])})),o.addBinding({key:"Enter",shiftKey:null},o.handleEnter),o.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:"Backspace"},{collapsed:!0},o.handleBackspace),o.addBinding({key:"Delete"},{collapsed:!0},o.handleDelete)):(o.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},o.handleBackspace),o.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},o.handleDelete)),o.addBinding({key:"Backspace"},{collapsed:!1},o.handleDeleteRange),o.addBinding({key:"Delete"},{collapsed:!1},o.handleDeleteRange),o.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},o.handleBackspace),o.listen(),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ii(e,t)}(t,e),function(e,t,n){return t&&ti(e.prototype,t),n&&ti(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addBinding",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=hi(e);if(null!=r){"function"==typeof n&&(n={handler:n}),"function"==typeof o&&(o={handler:o});var i=Array.isArray(r.key)?r.key:[r.key];i.forEach((function(e){var i=Jr(Jr(Jr({},r),{},{key:e},n),o);t.bindings[i.key]=t.bindings[i.key]||[],t.bindings[i.key].push(i)}))}else ai.warn("Attempted to add invalid keyboard binding",r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented&&!n.isComposing&&!(229===n.keyCode&&("Enter"===n.key||"Backspace"===n.key))){var o=(e.bindings[n.key]||[]).concat(e.bindings[n.which]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var r=wo.find(n.target,!0);if(!r||r.scroll===e.quill.scroll){var i=e.quill.getSelection();if(null!=i&&e.quill.hasFocus()){var a=Zr(e.quill.getLine(i.index),2),l=a[0],c=a[1],s=Zr(e.quill.getLeaf(i.index),2),u=s[0],d=s[1],f=Zr(0===i.length?[u,d]:e.quill.getLeaf(i.index+i.length),2),p=f[0],h=f[1],m=u instanceof R?u.value().slice(0,d):"",b=p instanceof R?p.value().slice(h):"",g={collapsed:0===i.length,empty:0===i.length&&l.length()<=1,format:e.quill.getFormat(i),line:l,offset:c,prefix:m,suffix:b,event:n};o.some((function(t){if(null!=t.collapsed&&t.collapsed!==g.collapsed)return!1;if(null!=t.empty&&t.empty!==g.empty)return!1;if(null!=t.offset&&t.offset!==g.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==g.format[e]})))return!1}else if("object"===Yr(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=g.format[e]:!1===t.format[e]?null==g.format[e]:Object(pe.a)(t.format[e],g.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(g.prefix))&&(!(null!=t.suffix&&!t.suffix.test(g.suffix))&&!0!==t.handler.call(e,i,g,t))}))&&n.preventDefault()}}}}}))}},{key:"handleBackspace",value:function(e,t){var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(!(0===e.index||this.quill.getLength()<=1)){var o={},r=Zr(this.quill.getLine(e.index),1)[0],i=(new L.a).retain(e.index-n).delete(n);if(0===t.offset){var a=Zr(this.quill.getLine(e.index-1),1)[0];if(a)if(!("block"===a.statics.blotName&&a.length()<=1)){var l=r.formats(),c=this.quill.getFormat(e.index-1,1);if(o=q.AttributeMap.diff(l,c)||{},Object.keys(o).length>0){var s=(new L.a).retain(e.index+r.length()-2).retain(1,o);i=i.compose(s)}}}this.quill.updateContents(i,wo.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},r=Zr(this.quill.getLine(e.index),1)[0],i=(new L.a).retain(e.index).delete(n);if(t.offset>=r.length()-1){var a=Zr(this.quill.getLine(e.index+1),1)[0];if(a){var l=r.formats(),c=this.quill.getFormat(e.index,1);o=q.AttributeMap.diff(l,c)||{},Object.keys(o).length>0&&(i=i.retain(a.length()-1).retain(1,o))}}this.quill.updateContents(i,wo.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(e){mi({range:e,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(e,t){var n=this,o=Object.keys(t.format).reduce((function(e,o){return n.quill.scroll.query(o,i.BLOCK)&&!Array.isArray(t.format[o])&&(e[o]=t.format[o]),e}),{}),r=(new L.a).retain(e.index).delete(e.length).insert("\n",o);this.quill.updateContents(r,wo.sources.USER),this.quill.setSelection(e.index+1,wo.sources.SILENT),this.quill.focus()}}],[{key:"match",value:function(e,t){return!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&(t.key===e.key||t.key===e.which)}}])}(Nn),si={bindings:{bold:fi("bold"),italic:fi("italic"),underline:fi("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","+1",wo.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){return!(!t.collapsed||0===t.offset)||(this.quill.format("indent","-1",wo.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",wo.sources.USER):null!=t.format.list&&this.quill.format("list",!1,wo.sources.USER)}},"indent code-block":ui(!0),"outdent code-block":ui(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,wo.sources.USER)}},tab:{key:"Tab",handler:function(e,t){if(t.format.table)return!0;this.quill.history.cutoff();var n=(new L.a).retain(e.index).delete(e.length).insert("\t");return this.quill.updateContents(n,wo.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,wo.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,wo.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler:function(e,t){var n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(e.index,e.length,n,wo.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler:function(e){var t=Zr(this.quill.getLine(e.index),2),n=t[0],o=t[1],r=Jr(Jr({},n.formats()),{},{list:"checked"}),i=(new L.a).retain(e.index).insert("\n",r).retain(n.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(i,wo.sources.USER),this.quill.setSelection(e.index+1,wo.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=Zr(this.quill.getLine(e.index),2),o=n[0],r=n[1],i=(new L.a).retain(e.index).insert("\n",t.format).retain(o.length()-r-1).retain(1,{header:null});this.quill.updateContents(i,wo.sources.USER),this.quill.setSelection(e.index+1,wo.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler:function(e){var t=this.quill.getModule("table");if(t){var n=Zr(t.getTable(e),4),o=n[0],r=function(e,t,n,o){if(null==t.prev&&null==t.next)return null==n.prev&&null==n.next?0===o?-1:1:null==n.prev?-1:1;if(null==t.prev)return-1;if(null==t.next)return 1;return null}(0,n[1],n[2],n[3]);if(null==r)return;var i=o.offset();if(r<0){var a=(new L.a).retain(i).insert("\n");this.quill.updateContents(a,wo.sources.USER),this.quill.setSelection(e.index+1,e.length,wo.sources.SILENT)}else if(r>0){i+=o.length();var l=(new L.a).retain(i).insert("\n");this.quill.updateContents(l,wo.sources.USER),this.quill.setSelection(i,wo.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler:function(e,t){var n=t.event,o=t.line,r=o.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(r-1,wo.sources.USER):this.quill.setSelection(r+o.length(),wo.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){if(null==this.quill.scroll.query("list"))return!0;var n,o=t.prefix.length,r=Zr(this.quill.getLine(e.index),2),i=r[0],a=r[1];if(a>o)return!0;switch(t.prefix.trim()){case"[]":case"[ ]":n="unchecked";break;case"[x]":n="checked";break;case"-":case"*":n="bullet";break;default:n="ordered"}this.quill.insertText(e.index," ",wo.sources.USER),this.quill.history.cutoff();var l=(new L.a).retain(e.index-a).delete(o+1).retain(i.length()-2-a).retain(1,{list:n});return this.quill.updateContents(l,wo.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-o,wo.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(e){for(var t=Zr(this.quill.getLine(e.index),2),n=t[0],o=t[1],r=2,i=n;null!=i&&i.length()<=1&&i.formats()["code-block"];)if(i=i.prev,(r-=1)<=0){var a=(new L.a).retain(e.index+n.length()-o-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,wo.sources.USER),this.quill.setSelection(e.index-1,wo.sources.SILENT),!1}return!0}},"embed left":di("ArrowLeft",!1),"embed left shift":di("ArrowLeft",!0),"embed right":di("ArrowRight",!1),"embed right shift":di("ArrowRight",!0),"table down":pi(!1),"table up":pi(!0)}};function ui(e){return{key:"Tab",shiftKey:!e,format:{"code-block":!0},handler:function(t,n){var o=n.event,r=this.quill.scroll.query("code-block").TAB;if(0===t.length&&!o.shiftKey)return this.quill.insertText(t.index,r,wo.sources.USER),void this.quill.setSelection(t.index+r.length,wo.sources.SILENT);var i=0===t.length?this.quill.getLines(t.index,1):this.quill.getLines(t),a=t.index,l=t.length;i.forEach((function(t,n){e?(t.insertAt(0,r),0===n?a+=r.length:l+=r.length):t.domNode.textContent.startsWith(r)&&(t.deleteAt(0,r.length),0===n?a-=r.length:l-=r.length)})),this.quill.update(wo.sources.USER),this.quill.setSelection(a,l,wo.sources.SILENT)}}}function di(e,t){return ei(ei({key:e,shiftKey:t,altKey:null},"ArrowLeft"===e?"prefix":"suffix",/^$/),"handler",(function(n){var o=n.index;return"ArrowRight"===e&&(o+=n.length+1),!(Zr(this.quill.getLeaf(o),1)[0]instanceof _)||("ArrowLeft"===e?t?this.quill.setSelection(n.index-1,n.length+1,wo.sources.USER):this.quill.setSelection(n.index-1,wo.sources.USER):t?this.quill.setSelection(n.index,n.length+1,wo.sources.USER):this.quill.setSelection(n.index+n.length+1,wo.sources.USER),!1)}))}function fi(e){return{key:e[0],shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],wo.sources.USER)}}}function pi(e){return{key:e?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler:function(t,n){var o=e?"prev":"next",r=n.line,i=r.parent[o];if(null!=i){if("table-row"===i.statics.blotName){for(var a=i.children.head,l=r;null!=l.prev;)l=l.prev,a=a.next;var c=a.offset(this.quill.scroll)+Math.min(n.offset,a.length()-1);this.quill.setSelection(c,0,wo.sources.USER)}}else{var s=r.table()[o];null!=s&&(e?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,wo.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,wo.sources.USER))}return!1}}}function hi(e){if("string"==typeof e||"number"==typeof e)e={key:e};else{if("object"!==Yr(e))return null;e=fe(e)}return e.shortKey&&(e[li]=e.shortKey,delete e.shortKey),e}function mi(e){var t=e.quill,n=e.range,o=t.getLines(n),r={};if(o.length>1){var i=o[0].formats(),a=o[o.length-1].formats();r=q.AttributeMap.diff(a,i)||{}}t.deleteText(n,wo.sources.USER),Object.keys(r).length>0&&t.formatLine(n.index,1,r,wo.sources.USER),t.setSelection(n.index,wo.sources.SILENT)}function bi(e){return function(e){if(Array.isArray(e))return gi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return gi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}ci.DEFAULTS=si;var vi=/font-weight:\s*normal/,yi=["P","OL","UL"],wi=function(e){return e&&yi.includes(e.tagName)};n(468);var xi=/\bmso-list:[^;]*ignore/i,Oi=/\bmso-list:[^;]*\bl(\d+)/i,Si=/\bmso-list:[^;]*\blevel(\d+)/i,ki=function(e){var t=Array.from(e.querySelectorAll("[style*=mso-list]")),n=[],o=[];t.forEach((function(e){(e.getAttribute("style")||"").match(xi)?n.push(e):o.push(e)})),n.forEach((function(e){var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)}));for(var r=e.documentElement.innerHTML,i=o.map((function(e){return function(e,t){var n=e.getAttribute("style"),o=null==n?void 0:n.match(Oi);if(!o)return null;var r=Number(o[1]),i=null==n?void 0:n.match(Si),a=i?Number(i[1]):1,l=new RegExp("@list l".concat(r,":level").concat(a,"\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)"),"i"),c=t.match(l);return{id:r,indent:a,type:c&&"bullet"===c[1]?"bullet":"ordered",element:e}}(e,r)})).filter((function(e){return e})),a=function(){for(var e,t=[],n=i.shift();n;){var o;t.push(n),n=i.length&&(null===(o=i[0])||void 0===o?void 0:o.element)===n.element.nextElementSibling&&i[0].id===n.id?i.shift():null}var r=document.createElement("ul");t.forEach((function(e){var t=document.createElement("li");t.setAttribute("data-list",e.type),e.indent>1&&t.setAttribute("class","ql-indent-".concat(e.indent-1)),t.innerHTML=e.element.innerHTML,r.appendChild(t)}));var a=null===(e=t[0])||void 0===e?void 0:e.element,l=(null!=a?a:{}).parentNode;a&&(null==l||l.replaceChild(r,a)),t.slice(1).forEach((function(e){var t=e.element;null==l||l.removeChild(t)}))};i.length;)a()};var Ei=[function(e){"urn:schemas-microsoft-com:office:word"===e.documentElement.getAttribute("xmlns:w")&&ki(e)},function(e){e.querySelector('[id^="docs-internal-guid-"]')&&(function(e){Array.from(e.querySelectorAll('b[style*="font-weight"]')).filter((function(e){var t;return null===(t=e.getAttribute("style"))||void 0===t?void 0:t.match(vi)})).forEach((function(t){var n,o=e.createDocumentFragment();o.append.apply(o,bi(t.childNodes)),null===(n=t.parentNode)||void 0===n||n.replaceChild(o,t)}))}(e),function(e){Array.from(e.querySelectorAll("br")).filter((function(e){return wi(e.previousElementSibling)&&wi(e.nextElementSibling)})).forEach((function(e){var t;null===(t=e.parentNode)||void 0===t||t.removeChild(e)}))}(e))}],Ci=function(e){e.documentElement&&Ei.forEach((function(t){t(e)}))};function Ti(e){return(Ti="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 Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ji(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pi(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pi(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ni(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Mi(o.key),o)}}function Ii(e,t,n){return t=Ri(t),function(e,t){if(t&&("object"==Ti(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ri(e).constructor):t.apply(e,n))}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qi(e,t){return(qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Li(e,t,n){return(t=Mi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e){var t=function(e,t){if("object"!=Ti(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ti(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ti(t)?t:t+""}var Di=_t("quill:clipboard"),zi=[[Node.TEXT_NODE,function(e,t,n){var o,r=e.data;if("O:P"===(null===(o=e.parentElement)||void 0===o?void 0:o.tagName))return t.insert(r.trim());if(!function e(t){if(null==t)return!1;Vi.has(t)||("PRE"===t.tagName?Vi.set(t,!0):Vi.set(t,e(t.parentNode)));return Vi.get(t)}(e)){if(0===r.trim().length&&r.includes("\n")&&!function(e,t){return e.previousElementSibling&&e.nextElementSibling&&!Gi(e.previousElementSibling,t)&&!Gi(e.nextElementSibling,t)}(e,n))return t;r=(r=r.replace(/[^\S\u00a0]/g," ")).replace(/ {2,}/g," "),(null==e.previousSibling&&null!=e.parentElement&&Gi(e.parentElement,n)||e.previousSibling instanceof Element&&Gi(e.previousSibling,n))&&(r=r.replace(/^ /,"")),(null==e.nextSibling&&null!=e.parentElement&&Gi(e.parentElement,n)||e.nextSibling instanceof Element&&Gi(e.nextSibling,n))&&(r=r.replace(/ $/,"")),r=r.replaceAll(" "," ")}return t.insert(r)}],[Node.TEXT_NODE,Yi],["br",function(e,t){Wi(t,"\n")||t.insert("\n");return t}],[Node.ELEMENT_NODE,Yi],[Node.ELEMENT_NODE,function(e,t,n){var o=n.query(e);if(null==o)return t;if(o.prototype instanceof _){var r={},i=o.value(e);if(null!=i)return r[o.blotName]=i,(new L.a).insert(r,o.formats(e,n))}else if(o.prototype instanceof C&&!Wi(t,"\n")&&t.insert("\n"),"blotName"in o&&"formats"in o&&"function"==typeof o.formats)return Ui(t,o.blotName,o.formats(e,n),n);return t}],[Node.ELEMENT_NODE,function(e,t,n){var o=a.keys(e),r=d.keys(e),l=p.keys(e),c={};return o.concat(r).concat(l).forEach((function(t){var o=n.query(t,i.ATTRIBUTE);null!=o&&(c[o.attrName]=o.value(e),c[o.attrName])||(null==(o=Bi[t])||o.attrName!==t&&o.keyName!==t||(c[o.attrName]=o.value(e)||void 0),null==(o=Fi[t])||o.attrName!==t&&o.keyName!==t||(o=Fi[t],c[o.attrName]=o.value(e)||void 0))})),Object.entries(c).reduce((function(e,t){var o=ji(t,2);return Ui(e,o[0],o[1],n)}),t)}],[Node.ELEMENT_NODE,function(e,t,n){var o,r={},i=e.style||{};"italic"===i.fontStyle&&(r.italic=!0);"underline"===i.textDecoration&&(r.underline=!0);"line-through"===i.textDecoration&&(r.strike=!0);(null!==(o=i.fontWeight)&&void 0!==o&&o.startsWith("bold")||parseInt(i.fontWeight,10)>=700)&&(r.bold=!0);if(t=Object.entries(r).reduce((function(e,t){var o=ji(t,2);return Ui(e,o[0],o[1],n)}),t),parseFloat(i.textIndent||0)>0)return(new L.a).insert("\t").concat(t);return t}],["li",function(e,t,n){var o=n.query(e);if(null==o||"list"!==o.blotName||!Wi(t,"\n"))return t;var r=-1,i=e.parentNode;for(;null!=i;)["OL","UL"].includes(i.tagName)&&(r+=1),i=i.parentNode;return r<=0?t:t.reduce((function(e,t){return t.insert?t.attributes&&"number"==typeof t.attributes.indent?e.push(t):e.insert(t.insert,_i({indent:r},t.attributes||{})):e}),new L.a)}],["ol, ul",function(e,t,n){var o=e,r="OL"===o.tagName?"ordered":"bullet",i=o.getAttribute("data-checked");i&&(r="true"===i?"checked":"unchecked");return Ui(t,"list",r,n)}],["pre",function(e,t,n){var o=n.query("code-block"),r=!o||!("formats"in o)||"function"!=typeof o.formats||o.formats(e,n);return Ui(t,"code-block",r,n)}],["tr",function(e,t,n){var o,r,i="TABLE"===(null===(o=e.parentElement)||void 0===o?void 0:o.tagName)?e.parentElement:null===(r=e.parentElement)||void 0===r?void 0:r.parentElement;if(null!=i){var a=Array.from(i.querySelectorAll("tr")).indexOf(e)+1;return Ui(t,"table",a,n)}return t}],["b",$i("bold")],["i",$i("italic")],["strike",$i("strike")],["style",function(){return new L.a}]],Bi=[er,Nr].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Fi=[nr,br,hr,Rr,Vr,$r].reduce((function(e,t){return e[t.keyName]=t,e}),{}),Hi=function(e){function t(e,n){var o,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Ii(this,t,[e,n])).quill.root.addEventListener("copy",(function(e){return r.onCaptureCopy(e,!1)})),r.quill.root.addEventListener("cut",(function(e){return r.onCaptureCopy(e,!0)})),r.quill.root.addEventListener("paste",r.onCapturePaste.bind(r)),r.matchers=[],zi.concat(null!==(o=r.options.matchers)&&void 0!==o?o:[]).forEach((function(e){var t=ji(e,2),n=t[0],o=t[1];r.addMatcher(n,o)})),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qi(e,t)}(t,e),function(e,t,n){return t&&Ni(e.prototype,t),n&&Ni(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){var t=e.html,n=e.text,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o[_r.blotName])return(new L.a).insert(n||"",Li({},_r.blotName,o[_r.blotName]));if(!t)return(new L.a).insert(n||"",o);var r=this.convertHTML(t);return Wi(r,"\n")&&(null==r.ops[r.ops.length-1].attributes||o.table)?r.compose((new L.a).retain(r.length()-1).delete(1)):r}},{key:"normalizeHTML",value:function(e){Ci(e)}},{key:"convertHTML",value:function(e){var t=(new DOMParser).parseFromString(e,"text/html");this.normalizeHTML(t);var n=t.body,o=new WeakMap,r=ji(this.prepareMatching(n,o),2),i=r[0],a=r[1];return Ki(this.quill.scroll,n,i,a,o)}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wo.sources.API;if("string"==typeof e){var o=this.convert({html:e,text:""});this.quill.setContents(o,t),this.quill.setSelection(0,wo.sources.SILENT)}else{var r=this.convert({html:t,text:""});this.quill.updateContents((new L.a).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),wo.sources.SILENT)}}},{key:"onCaptureCopy",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.defaultPrevented){e.preventDefault();var r=this.quill.selection.getRange(),i=ji(r,1),a=i[0];if(null!=a){var l=this.onCopy(a,o),c=l.html,s=l.text;null===(t=e.clipboardData)||void 0===t||t.setData("text/plain",s),null===(n=e.clipboardData)||void 0===n||n.setData("text/html",c),o&&mi({range:a,quill:this.quill})}}}},{key:"normalizeURIList",value:function(e){return e.split(/\r?\n/).filter((function(e){return"#"!==e[0]})).join("\n")}},{key:"onCapturePaste",value:function(e){var t,n,o;if(!e.defaultPrevented&&this.quill.isEnabled()){e.preventDefault();var r=this.quill.getSelection(!0);if(null!=r){var i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text/html"),a=null===(n=e.clipboardData)||void 0===n?void 0:n.getData("text/plain");if(!i&&!a){var l,c=null===(l=e.clipboardData)||void 0===l?void 0:l.getData("text/uri-list");c&&(a=this.normalizeURIList(c))}var s=Array.from((null===(o=e.clipboardData)||void 0===o?void 0:o.files)||[]);if(!i&&s.length>0)this.quill.uploader.upload(r,s);else{if(i&&s.length>0){var u,d=(new DOMParser).parseFromString(i,"text/html");if(1===d.body.childElementCount&&"IMG"===(null===(u=d.body.firstElementChild)||void 0===u?void 0:u.tagName))return void this.quill.uploader.upload(r,s)}this.onPaste(r,{html:i,text:a})}}}}},{key:"onCopy",value:function(e){var t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}},{key:"onPaste",value:function(e,t){var n=t.text,o=t.html,r=this.quill.getFormat(e.index),i=this.convert({text:n,html:o},r);Di.log("onPaste",i,{text:n,html:o});var a=(new L.a).retain(e.index).delete(e.length).concat(i);this.quill.updateContents(a,wo.sources.USER),this.quill.setSelection(a.length()-e.length,wo.sources.SILENT),this.quill.scrollSelectionIntoView()}},{key:"prepareMatching",value:function(e,t){var n=[],o=[];return this.matchers.forEach((function(r){var i=ji(r,2),a=i[0],l=i[1];switch(a){case Node.TEXT_NODE:o.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(e.querySelectorAll(a)).forEach((function(e){if(t.has(e)){var n=t.get(e);null==n||n.push(l)}else t.set(e,[l])}))}})),[n,o]}}])}(Nn);function Ui(e,t,n,o){return o.query(t)?e.reduce((function(e,o){if(!o.insert)return e;if(o.attributes&&o.attributes[t])return e.push(o);var r=n?Li({},t,n):{};return e.insert(o.insert,_i(_i({},r),o.attributes))}),new L.a):e}function Wi(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function Gi(e,t){if(!(e instanceof Element))return!1;var n=t.query(e);return!(n&&n.prototype instanceof _)&&["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(e.tagName.toLowerCase())}Li(Hi,"DEFAULTS",{matchers:[]});var Vi=new WeakMap;function Ki(e,t,n,o,r){return t.nodeType===t.TEXT_NODE?o.reduce((function(n,o){return o(t,n,e)}),new L.a):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((function(i,a){var l=Ki(e,a,n,o,r);return a.nodeType===t.ELEMENT_NODE&&(l=n.reduce((function(t,n){return n(a,t,e)}),l),l=(r.get(a)||[]).reduce((function(t,n){return n(a,t,e)}),l)),i.concat(l)}),new L.a):new L.a}function $i(e){return function(t,n,o){return Ui(n,e,!0,o)}}function Yi(e,t,n){if(!Wi(t,"\n")){if(Gi(e,n)&&(e.childNodes.length>0||e instanceof HTMLParagraphElement))return t.insert("\n");if(t.length()>0&&e.nextSibling)for(var o=e.nextSibling;null!=o;){if(Gi(o,n))return t.insert("\n");var r=n.query(o);if(r&&r.prototype instanceof ct)return t.insert("\n");o=o.firstChild}}return t}n(129),n(377);function Zi(e){return(Zi="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 Xi(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,na(o.key),o)}}function Qi(e,t,n){return t=Ji(t),function(e,t){if(t&&("object"==Zi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ji(e).constructor):t.apply(e,n))}function Ji(e){return(Ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ea(e,t){return(ea=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ta(e,t,n){return(t=na(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function na(e){var t=function(e,t){if("object"!=Zi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Zi(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zi(t)?t:t+""}var oa=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ta(o=Qi(this,t,[e,n]),"lastRecorded",0),ta(o,"ignoreChange",!1),ta(o,"stack",{undo:[],redo:[]}),ta(o,"currentRange",null),o.quill.on(wo.events.EDITOR_CHANGE,(function(e,t,n,r){e===wo.events.SELECTION_CHANGE?t&&r!==wo.sources.SILENT&&(o.currentRange=t):e===wo.events.TEXT_CHANGE&&(o.ignoreChange||(o.options.userOnly&&r!==wo.sources.USER?o.transform(t):o.record(t,n)),o.currentRange=ia(o.currentRange,t))})),o.quill.keyboard.addBinding({key:"z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"y",shortKey:!0},o.redo.bind(o)),o.quill.root.addEventListener("beforeinput",(function(e){"historyUndo"===e.inputType?(o.undo(),e.preventDefault()):"historyRedo"===e.inputType&&(o.redo(),e.preventDefault())})),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ea(e,t)}(t,e),function(e,t,n){return t&&Xi(e.prototype,t),n&&Xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();if(n){var o=this.quill.getContents(),r=n.delta.invert(o);this.stack[t].push({delta:r,range:ia(n.range,r)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,wo.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=e.invert(t),o=this.currentRange,r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();i&&(n=n.compose(i.delta),o=i.range)}else this.lastRecorded=r;0!==n.length()&&(this.stack.undo.push({delta:n,range:o}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){ra(this.stack.undo,e),ra(this.stack.redo,e)}},{key:"undo",value:function(){this.change("undo","redo")}},{key:"restoreSelection",value:function(e){if(e.range)this.quill.setSelection(e.range,wo.sources.USER);else{var t=function(e,t){var n=t.reduce((function(e,t){return e+(t.delete||0)}),0),o=t.length()-n;(function(e,t){var n=t.ops[t.ops.length-1];if(null==n)return!1;if(null!=n.insert)return"string"==typeof n.insert&&n.insert.endsWith("\n");if(null!=n.attributes)return Object.keys(n.attributes).some((function(t){return null!=e.query(t,i.BLOCK)}));return!1})(e,t)&&(o-=1);return o}(this.quill.scroll,e.delta);this.quill.setSelection(t,wo.sources.USER)}}}])}(Nn);function ra(e,t){for(var n=t,o=e.length-1;o>=0;o-=1){var r=e[o];e[o]={delta:n.transform(r.delta,!0),range:r.range&&ia(r.range,n)},n=r.delta.transform(n),0===e[o].delta.length()&&e.splice(o,1)}}function ia(e,t){if(!e)return e;var n=t.transformPosition(e.index);return{index:n,length:t.transformPosition(e.index+e.length)-n}}ta(oa,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});n(56);function aa(e){return(aa="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 la(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ca(o.key),o)}}function ca(e){var t=function(e,t){if("object"!=aa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=aa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aa(t)?t:t+""}function sa(e,t,n){return t=ua(t),function(e,t){if(t&&("object"==aa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ua(e).constructor):t.apply(e,n))}function ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function da(e,t){return(da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var fa=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=sa(this,t,[e,n]),e.root.addEventListener("drop",(function(t){t.preventDefault();var n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(t.clientX,t.clientY);else if(document.caretPositionFromPoint){var r=document.caretPositionFromPoint(t.clientX,t.clientY);(n=document.createRange()).setStart(r.offsetNode,r.offset),n.setEnd(r.offsetNode,r.offset)}var i=n&&e.selection.normalizeNative(n);if(i){var a,l=e.selection.normalizedToRange(i);null!==(a=t.dataTransfer)&&void 0!==a&&a.files&&o.upload(l,t.dataTransfer.files)}})),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&da(e,t)}(t,e),function(e,t,n){return t&&la(e.prototype,t),n&&la(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"upload",value:function(e,t){var n=this,o=[];Array.from(t).forEach((function(e){var t;e&&null!==(t=n.options.mimetypes)&&void 0!==t&&t.includes(e.type)&&o.push(e)})),o.length>0&&this.options.handler.call(this,e,o)}}])}(Nn);fa.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler:function(e,t){var n=this;if(this.quill.scroll.query("image")){var o=t.map((function(e){return new Promise((function(t){var n=new FileReader;n.onload=function(){t(n.result)},n.readAsDataURL(e)}))}));Promise.all(o).then((function(t){var o=t.reduce((function(e,t){return e.insert({image:t})}),(new L.a).retain(e.index).delete(e.length));n.quill.updateContents(o,Ht.sources.USER),n.quill.setSelection(e.index+t.length,Ht.sources.SILENT)}))}}};var pa=fa;function ha(e){return(ha="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 ma(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ba(o.key),o)}}function ba(e){var t=function(e,t){if("object"!=ha(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ha(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ha(t)?t:t+""}function ga(e,t,n){return t=va(t),function(e,t){if(t&&("object"==ha(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],va(e).constructor):t.apply(e,n))}function va(e){return(va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ya(e,t){return(ya=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wa=["insertText","insertReplacementText"];var xa=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=ga(this,t,[e,n]),e.root.addEventListener("beforeinput",(function(e){o.handleBeforeInput(e)})),/Android/i.test(navigator.userAgent)||e.on(wo.events.COMPOSITION_BEFORE_START,(function(){o.handleCompositionStart()})),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ya(e,t)}(t,e),function(e,t,n){return t&&ma(e.prototype,t),n&&ma(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"deleteRange",value:function(e){mi({range:e,quill:this.quill})}},{key:"replaceText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(0===e.length)return!1;if(t){var n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents((new L.a).retain(e.index).insert(t,n),wo.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,wo.sources.SILENT),!0}},{key:"handleBeforeInput",value:function(e){if(!this.quill.composition.isComposing&&!e.defaultPrevented&&wa.includes(e.inputType)){var t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(t&&!0!==t.collapsed){var n=function(e){var t;if("string"==typeof e.data)return e.data;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.types.includes("text/plain"))return e.dataTransfer.getData("text/plain");return null}(e);if(null!=n){var o=this.quill.selection.normalizeNative(t),r=o?this.quill.selection.normalizedToRange(o):null;r&&this.replaceText(r,n)&&e.preventDefault()}}}}},{key:"handleCompositionStart",value:function(){var e=this.quill.getSelection();e&&this.replaceText(e)}}])}(Nn);function Oa(e){return(Oa="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 Sa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Aa(o.key),o)}}function ka(e,t,n){return t=Ea(t),function(e,t){if(t&&("object"==Oa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ea(e).constructor):t.apply(e,n))}function Ea(e){return(Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ca(e,t){return(Ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ta(e,t,n){return(t=Aa(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aa(e){var t=function(e,t){if("object"!=Oa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Oa(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oa(t)?t:t+""}var _a=/Mac/i.test(navigator.platform),ja=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ta(o=ka(this,t,[e,n]),"isListening",!1),Ta(o,"selectionChangeDeadline",0),o.handleArrowKeys(),o.handleNavigationShortcuts(),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ca(e,t)}(t,e),function(e,t,n){return t&&Sa(e.prototype,t),n&&Sa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"handleArrowKeys",value:function(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler:function(e,t){var n=t.line,o=t.event;if(!(n instanceof O&&n.uiNode))return!0;var r="rtl"===getComputedStyle(n.domNode).direction;return!!(r&&"ArrowRight"!==o.key||!r&&"ArrowLeft"!==o.key)||(this.quill.setSelection(e.index-1,e.length+(o.shiftKey?1:0),wo.sources.USER),!1)}})}},{key:"handleNavigationShortcuts",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(t){!t.defaultPrevented&&function(e){return"ArrowLeft"===e.key||"ArrowRight"===e.key||"ArrowUp"===e.key||"ArrowDown"===e.key||"Home"===e.key||!(!_a||"a"!==e.key||!0!==e.ctrlKey)}(t)&&e.ensureListeningToSelectionChange()}))}},{key:"ensureListeningToSelectionChange",value:function(){var e=this;if(this.selectionChangeDeadline=Date.now()+100,!this.isListening){this.isListening=!0;document.addEventListener("selectionchange",(function(){e.isListening=!1,Date.now()<=e.selectionChangeDeadline&&e.handleSelectionChange()}),{once:!0})}}},{key:"handleSelectionChange",value:function(){var e=document.getSelection();if(e){var t=e.getRangeAt(0);if(!0===t.collapsed&&0===t.startOffset){var n=this.quill.scroll.find(t.startContainer);if(n instanceof O&&n.uiNode){var o=document.createRange();o.setStartAfter(n.uiNode),o.setEndAfter(n.uiNode),e.removeAllRanges(),e.addRange(o)}}}}}])}(Nn);wo.register({"blots/block":lt,"blots/block/embed":ct,"blots/break":Oe,"blots/container":qo,"blots/cursor":Ot,"blots/embed":Fn,"blots/inline":Ge,"blots/scroll":Qo,"blots/text":je,"modules/clipboard":Hi,"modules/history":oa,"modules/keyboard":ci,"modules/uploader":pa,"modules/input":xa,"modules/uiNode":ja});var Pa=wo;function Na(e){return(Na="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 Ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ra(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,qa(o.key),o)}}function qa(e){var t=function(e,t){if("object"!=Na(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Na(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Na(t)?t:t+""}function La(e,t,n){return t=Ba(t),function(e,t){if(t&&("object"==Na(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ba(e).constructor):t.apply(e,n))}function Ma(e,t,n,o){var r=Da(Ba(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Da(){return(Da="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=za(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function za(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ba(e)););return e}function Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fa(e,t){return(Fa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Ha=new(function(e){function t(){return Ia(this,t),La(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fa(e,t)}(t,e),function(e,t,n){return t&&Ra(e.prototype,t),n&&Ra(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"add",value:function(e,n){var o=0;if("+1"===n||"-1"===n){var r=this.value(e)||0;o="+1"===n?r+1:r-1}else"number"==typeof n&&(o=n);return 0===o?(this.remove(e),!0):Ma(t,"add",this,3)([e,o.toString()])}},{key:"canAdd",value:function(e,n){return Ma(t,"canAdd",this,3)([e,n])||Ma(t,"canAdd",this,3)([e,parseInt(n,10)])}},{key:"value",value:function(e){return parseInt(Ma(t,"value",this,3)([e]),10)||void 0}}])}(d))("indent","ql-indent",{scope:i.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});function Ua(e){return(Ua="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 Wa(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Za(o.key),o)}}function Ga(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Va(e,t,n){return t=Ka(t),function(e,t){if(t&&("object"==Ua(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ka(e).constructor):t.apply(e,n))}function Ka(e){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $a(e,t){return($a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ya(e,t,n){return(t=Za(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e){var t=function(e,t){if("object"!=Ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ua(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ua(t)?t:t+""}var Xa=function(e){function t(){return Ga(this,t),Va(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$a(e,t)}(t,e),function(e,t,n){return t&&Wa(e.prototype,t),n&&Wa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(lt);Ya(Xa,"blotName","blockquote"),Ya(Xa,"tagName","blockquote");var Qa=Xa;function Ja(e){return(Ja="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 el(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,al(o.key),o)}}function nl(e,t,n){return t=ol(t),function(e,t){if(t&&("object"==Ja(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ol(e).constructor):t.apply(e,n))}function ol(e){return(ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rl(e,t){return(rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function il(e,t,n){return(t=al(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function al(e){var t=function(e,t){if("object"!=Ja(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ja(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ja(t)?t:t+""}var ll=function(e){function t(){return el(this,t),nl(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rl(e,t)}(t,e),function(e,t,n){return t&&tl(e.prototype,t),n&&tl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}])}(lt);il(ll,"blotName","header"),il(ll,"tagName",["H1","H2","H3","H4","H5","H6"]);var cl=ll;function sl(e){return(sl="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 ul(e,t,n,o){var r=dl(vl(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function dl(){return(dl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=fl(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function fl(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=vl(e)););return e}function pl(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ml(o.key),o)}}function hl(e,t,n){return t&&pl(e.prototype,t),n&&pl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ml(e){var t=function(e,t){if("object"!=sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=sl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sl(t)?t:t+""}function bl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gl(e,t,n){return t=vl(t),function(e,t){if(t&&("object"==sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],vl(e).constructor):t.apply(e,n))}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yl(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wl(e,t)}function wl(e,t){return(wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var xl=function(e){function t(){return bl(this,t),gl(this,t,arguments)}return yl(t,e),hl(t)}(qo);xl.blotName="list-container",xl.tagName="OL";var Ol=function(e){function t(e,n){var o;bl(this,t),o=gl(this,t,[e,n]);var r=n.ownerDocument.createElement("span"),i=function(t){if(e.isEnabled()){var r=o.statics.formats(n,e);"checked"===r?(o.format("list","unchecked"),t.preventDefault()):"unchecked"===r&&(o.format("list","checked"),t.preventDefault())}};return r.addEventListener("mousedown",i),r.addEventListener("touchstart",i),o.attachUI(r),o}return yl(t,e),hl(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):ul(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=ul(t,"create",this,2)([]);return n.setAttribute("data-list",e),n}},{key:"formats",value:function(e){return e.getAttribute("data-list")||void 0}},{key:"register",value:function(){wo.register(xl)}}])}(lt);function Sl(e){return(Sl="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 kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Il(o.key),o)}}function Cl(e,t,n){return t=jl(t),function(e,t){if(t&&("object"==Sl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],jl(e).constructor):t.apply(e,n))}function Tl(e,t,n,o){var r=Al(jl(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Al(){return(Al="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=_l(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function _l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=jl(e)););return e}function jl(e){return(jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pl(e,t){return(Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nl(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e){var t=function(e,t){if("object"!=Sl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Sl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sl(t)?t:t+""}Ol.blotName="list",Ol.tagName="LI",xl.allowedChildren=[Ol],Ol.requiredContainer=xl;var Rl=function(e){function t(){return kl(this,t),Cl(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pl(e,t)}(t,e),function(e,t,n){return t&&El(e.prototype,t),n&&El(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"optimize",value:function(e){Tl(t,"optimize",this,3)([e]),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return Tl(t,"create",this,2)([])}},{key:"formats",value:function(){return!0}}])}(Ge);Nl(Rl,"blotName","bold"),Nl(Rl,"tagName",["STRONG","B"]);var ql=Rl;function Ll(e){return(Ll="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 Ml(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ul(o.key),o)}}function Dl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zl(e,t,n){return t=Bl(t),function(e,t){if(t&&("object"==Ll(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Bl(e).constructor):t.apply(e,n))}function Bl(e){return(Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fl(e,t){return(Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Hl(e,t,n){return(t=Ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e){var t=function(e,t){if("object"!=Ll(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ll(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ll(t)?t:t+""}var Wl=function(e){function t(){return Dl(this,t),zl(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fl(e,t)}(t,e),function(e,t,n){return t&&Ml(e.prototype,t),n&&Ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ql);Hl(Wl,"blotName","italic"),Hl(Wl,"tagName",["EM","I"]);var Gl=Wl;function Vl(e){return(Vl="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 Kl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nc(o.key),o)}}function Yl(e,t,n){return t=Jl(t),function(e,t){if(t&&("object"==Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Jl(e).constructor):t.apply(e,n))}function Zl(e,t,n,o){var r=Xl(Jl(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Xl(){return(Xl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ql(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Ql(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Jl(e)););return e}function Jl(e){return(Jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ec(e,t){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tc(e,t,n){return(t=nc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nc(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Vl(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:t+""}var oc=function(e){function t(){return Kl(this,t),Yl(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ec(e,t)}(t,e),function(e,t,n){return t&&$l(e.prototype,t),n&&$l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("href",this.constructor.sanitize(n)):Zl(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Zl(t,"create",this,2)([e]);return n.setAttribute("href",this.sanitize(e)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return rc(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}])}(Ge);function rc(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}function ic(e){return(ic="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 ac(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,hc(o.key),o)}}function cc(e,t,n){return t=dc(t),function(e,t){if(t&&("object"==ic(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],dc(e).constructor):t.apply(e,n))}function sc(){return(sc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=uc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function uc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=dc(e)););return e}function dc(e){return(dc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fc(e,t){return(fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pc(e,t,n){return(t=hc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hc(e){var t=function(e,t){if("object"!=ic(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ic(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ic(t)?t:t+""}tc(oc,"blotName","link"),tc(oc,"tagName","A"),tc(oc,"SANITIZED_URL","about:blank"),tc(oc,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);var mc=function(e){function t(){return ac(this,t),cc(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fc(e,t)}(t,e),function(e,t,n){return t&&lc(e.prototype,t),n&&lc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function(e,t,n,o){var r=sc(dc(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"create",this,2)([e])}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}])}(Ge);pc(mc,"blotName","script"),pc(mc,"tagName",["SUB","SUP"]);var bc=mc;function gc(e){return(gc="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 vc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,kc(o.key),o)}}function yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wc(e,t,n){return t=xc(t),function(e,t){if(t&&("object"==gc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],xc(e).constructor):t.apply(e,n))}function xc(e){return(xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oc(e,t){return(Oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sc(e,t,n){return(t=kc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kc(e){var t=function(e,t){if("object"!=gc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=gc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gc(t)?t:t+""}var Ec=function(e){function t(){return yc(this,t),wc(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oc(e,t)}(t,e),function(e,t,n){return t&&vc(e.prototype,t),n&&vc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(ql);Sc(Ec,"blotName","strike"),Sc(Ec,"tagName",["S","STRIKE"]);var Cc=Ec;function Tc(e){return(Tc="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 Ac(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Rc(o.key),o)}}function _c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(e,t,n){return t=Pc(t),function(e,t){if(t&&("object"==Tc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Pc(e).constructor):t.apply(e,n))}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Nc(e,t){return(Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ic(e,t,n){return(t=Rc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(e){var t=function(e,t){if("object"!=Tc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Tc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tc(t)?t:t+""}var qc=function(e){function t(){return _c(this,t),jc(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nc(e,t)}(t,e),function(e,t,n){return t&&Ac(e.prototype,t),n&&Ac(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t)}(Ge);Ic(qc,"blotName","underline"),Ic(qc,"tagName","U");var Lc=qc;function Mc(e){return(Mc="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 Dc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Vc(o.key),o)}}function Bc(e,t,n){return t=Uc(t),function(e,t){if(t&&("object"==Mc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Uc(e).constructor):t.apply(e,n))}function Fc(){return(Fc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Hc(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Hc(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Uc(e)););return e}function Uc(e){return(Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wc(e,t){return(Wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gc(e,t,n){return(t=Vc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vc(e){var t=function(e,t){if("object"!=Mc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Mc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mc(t)?t:t+""}var Kc=function(e){function t(){return Dc(this,t),Bc(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wc(e,t)}(t,e),function(e,t,n){return t&&zc(e.prototype,t),n&&zc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"html",value:function(){var e=this.value().formula;return"<span>".concat(e,"</span>")}}],[{key:"create",value:function(e){if(null==window.katex)throw new Error("Formula module requires KaTeX.");var n=function(e,t,n,o){var r=Fc(Uc(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"create",this,2)([e]);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}])}(Fn);Gc(Kc,"blotName","formula"),Gc(Kc,"className","ql-formula"),Gc(Kc,"tagName","SPAN");var $c=Kc;function Yc(e){return(Yc="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 Zc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,is(o.key),o)}}function Qc(e,t,n){return t=ns(t),function(e,t){if(t&&("object"==Yc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],ns(e).constructor):t.apply(e,n))}function Jc(e,t,n,o){var r=es(ns(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function es(){return(es="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ts(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function ts(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=ns(e)););return e}function ns(e){return(ns=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function os(e,t){return(os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function rs(e,t,n){return(t=is(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function is(e){var t=function(e,t){if("object"!=Yc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Yc(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yc(t)?t:t+""}var as=["alt","height","width"],ls=function(e){function t(){return Zc(this,t),Qc(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}(t,e),function(e,t,n){return t&&Xc(e.prototype,t),n&&Xc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){as.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):Jc(t,"format",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Jc(t,"create",this,2)([e]);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return as.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return rc(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}])}(_);rs(ls,"blotName","image"),rs(ls,"tagName","IMG");var cs=ls;function ss(e){return(ss="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 us(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ds(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ys(o.key),o)}}function fs(e,t,n){return t=bs(t),function(e,t){if(t&&("object"==ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],bs(e).constructor):t.apply(e,n))}function ps(e,t,n,o){var r=hs(bs(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function hs(){return(hs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=ms(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function ms(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=bs(e)););return e}function bs(e){return(bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gs(e,t){return(gs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vs(e,t,n){return(t=ys(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ys(e){var t=function(e,t){if("object"!=ss(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ss(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ss(t)?t:t+""}var ws=["height","width"],xs=function(e){function t(){return us(this,t),fs(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gs(e,t)}(t,e),function(e,t,n){return t&&ds(e.prototype,t),n&&ds(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"format",value:function(e,n){ws.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):ps(t,"format",this,3)([e,n])}},{key:"html",value:function(){var e=this.value().video;return'<a href="'.concat(e,'">').concat(e,"</a>")}}],[{key:"create",value:function(e){var n=ps(t,"create",this,2)([e]);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return ws.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return oc.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}])}(ct);vs(xs,"blotName","video"),vs(xs,"className","ql-video"),vs(xs,"tagName","IFRAME");var Os=xs;function Ss(e){return(Ss="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 ks(e,t,n){return(t=js(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Cs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function As(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,js(o.key),o)}}function _s(e,t,n){return t&&As(e.prototype,t),n&&As(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function js(e){var t=function(e,t){if("object"!=Ss(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ss(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ss(t)?t:t+""}function Ps(e,t,n){return t=Ms(t),function(e,t){if(t&&("object"==Ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ms(e).constructor):t.apply(e,n))}function Ns(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Is(e,t)}function Is(e,t){return(Is=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rs(e,t,n,o){var r=qs(Ms(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function qs(){return(qs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Ls(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Ls(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ms(e)););return e}function Ms(e){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ds=new d("code-token","hljs",{scope:i.INLINE}),zs=function(e){function t(e,n,o){var r;return Ts(this,t),r=Ps(this,t,[e,n,o]),Ds.add(r.domNode,o),r}return Ns(t,e),_s(t,[{key:"format",value:function(e,n){e!==t.blotName?Rs(t,"format",this,3)([e,n]):n?Ds.add(this.domNode,n):(Ds.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){Rs(t,"optimize",this,3)(arguments),Ds.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(e,n){for(;null!=e&&e!==n.domNode;){if(e.classList&&e.classList.contains(_r.className))return Rs(t,"formats",this,2)([e,n]);e=e.parentNode}}}])}(Ge);zs.blotName="code-token",zs.className="ql-token";var Bs=function(e){function t(){return Ts(this,t),Ps(this,t,arguments)}return Ns(t,e),_s(t,[{key:"format",value:function(e,n){e===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):Rs(t,"format",this,3)([e,n])}},{key:"replaceWith",value:function(e,n){return this.formatAt(0,this.length(),zs.blotName,!1),Rs(t,"replaceWith",this,3)([e,n])}}],[{key:"create",value:function(e){var n=Rs(t,"create",this,2)([e]);return"string"==typeof e&&n.setAttribute("data-language",e),n}},{key:"formats",value:function(e){return e.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}])}(_r),Fs=function(e){function t(){return Ts(this,t),Ps(this,t,arguments)}return Ns(t,e),_s(t,[{key:"attach",value:function(){Rs(t,"attach",this,3)([]),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(e,t){e===Bs.blotName&&(this.forceNext=!0,this.children.forEach((function(n){n.format(e,t)})))}},{key:"formatAt",value:function(e,n,o,r){o===Bs.blotName&&(this.forceNext=!0),Rs(t,"formatAt",this,3)([e,n,o,r])}},{key:"highlight",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var o=Array.from(this.domNode.childNodes).filter((function(e){return e!==t.uiNode})),r="".concat(o.map((function(e){return e.textContent})).join("\n"),"\n"),i=Bs.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==r){if(r.trim().length>0||null==this.cachedText){var a=this.children.reduce((function(e,t){return e.concat(st(t,!1))}),new L.a),l=e(r,i);a.diff(l).reduce((function(e,n){var o=n.retain,r=n.attributes;return o?(r&&Object.keys(r).forEach((function(n){[Bs.blotName,zs.blotName].includes(n)&&t.formatAt(e,o,n,r[n])})),e+o):e}),0)}this.cachedText=r,this.forceNext=!1}}}},{key:"html",value:function(e,t){var n=Es(this.children.find(e),1)[0],o=n?Bs.formats(n.domNode):"plain";return'<pre data-language="'.concat(o,'">\n').concat(Ne(this.code(e,t)),"\n</pre>")}},{key:"optimize",value:function(e){if(Rs(t,"optimize",this,3)([e]),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var n=Bs.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}])}(Ar);Fs.allowedChildren=[Bs],Bs.requiredContainer=Fs,Bs.allowedChildren=[zs,Ot,je,Oe];var Hs=function(e,t,n){if("string"==typeof e.versionString){var o=e.versionString.split(".")[0];if(parseInt(o,10)>=11)return e.highlight(n,{language:t}).value}return e.highlight(t,n).value},Us=function(e){function t(e,n){var o;if(Ts(this,t),null==(o=Ps(this,t,[e,n])).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return o.languages=o.options.languages.reduce((function(e,t){return e[t.key]=!0,e}),{}),o.highlightBlot=o.highlightBlot.bind(o),o.initListener(),o.initTimer(),o}return Ns(t,e),_s(t,[{key:"initListener",value:function(){var e=this;this.quill.on(wo.events.SCROLL_BLOT_MOUNT,(function(t){if(t instanceof Fs){var n=e.quill.root.ownerDocument.createElement("select");e.options.languages.forEach((function(e){var t=e.key,o=e.label,r=n.ownerDocument.createElement("option");r.textContent=o,r.setAttribute("value",t),n.appendChild(r)})),n.addEventListener("change",(function(){t.format(Bs.blotName,n.value),e.quill.root.focus(),e.highlight(t,!0)})),null==t.uiNode&&(t.attachUI(n),t.children.head&&(n.value=Bs.formats(t.children.head.domNode)))}}))}},{key:"initTimer",value:function(){var e=this,t=null;this.quill.on(wo.events.SCROLL_OPTIMIZE,(function(){t&&clearTimeout(t),t=setTimeout((function(){e.highlight(),t=null}),e.options.interval)}))}},{key:"highlight",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(wo.sources.USER);var o=this.quill.getSelection(),r=null==t?this.quill.scroll.descendants(Fs):[t];r.forEach((function(t){t.highlight(e.highlightBlot,n)})),this.quill.update(wo.sources.SILENT),null!=o&&this.quill.setSelection(o,wo.sources.SILENT)}}},{key:"highlightBlot",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(t=this.languages[t]?t:"plain"))return Ne(e).split("\n").reduce((function(e,n,o){return 0!==o&&e.insert("\n",ks({},_r.blotName,t)),e.insert(n)}),new L.a);var n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(_r.className),n.innerHTML=Hs(this.options.hljs,t,e),Ki(this.quill.scroll,n,[function(e,t){var n=Ds.value(e);return n?t.compose((new L.a).retain(t.length(),ks({},zs.blotName,n))):t}],[function(e,n){return e.data.split("\n").reduce((function(e,n,o){return 0!==o&&e.insert("\n",ks({},_r.blotName,t)),e.insert(n)}),n)}],new WeakMap)}}],[{key:"register",value:function(){wo.register(zs,!0),wo.register(Bs,!0),wo.register(Fs,!0)}}])}(Nn);Us.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};n(617);function Ws(e){return(Ws="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 Gs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vs(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vs(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ru(o.key),o)}}function Ys(e,t,n){return t&&$s(e.prototype,t),n&&$s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zs(e,t,n){return t=eu(t),function(e,t){if(t&&("object"==Ws(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],eu(e).constructor):t.apply(e,n))}function Xs(e,t,n,o){var r=Qs(eu(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Qs(){return(Qs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Js(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Js(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=eu(e)););return e}function eu(e){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tu(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nu(e,t)}function nu(e,t){return(nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ou(e,t,n){return(t=ru(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ru(e){var t=function(e,t){if("object"!=Ws(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ws(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ws(t)?t:t+""}var iu=function(e){function t(){return Ks(this,t),Zs(this,t,arguments)}return tu(t,e),Ys(t,[{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"format",value:function(e,n){e===t.blotName&&n?this.domNode.setAttribute("data-row",n):Xs(t,"format",this,3)([e,n])}},{key:"row",value:function(){return this.parent}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){return this.row()&&this.row().table()}}],[{key:"create",value:function(e){var n=Xs(t,"create",this,2)([]);return e?n.setAttribute("data-row",e):n.setAttribute("data-row",su()),n}},{key:"formats",value:function(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}}])}(lt);ou(iu,"blotName","table"),ou(iu,"tagName","TD");var au=function(e){function t(){return Ks(this,t),Zs(this,t,arguments)}return tu(t,e),Ys(t,[{key:"checkMerge",value:function(){if(Xs(t,"checkMerge",this,3)([])&&null!=this.next.children.head){var e=this.children.head.formats(),n=this.children.tail.formats(),o=this.next.children.head.formats(),r=this.next.children.tail.formats();return e.table===n.table&&e.table===o.table&&e.table===r.table}return!1}},{key:"optimize",value:function(e){var n=this;Xs(t,"optimize",this,3)([e]),this.children.forEach((function(e){if(null!=e.next){var t=e.formats(),o=e.next.formats();if(t.table!==o.table){var r=n.splitAfter(e);r&&r.optimize(),n.prev&&n.prev.optimize()}}}))}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){return this.parent&&this.parent.parent}}])}(qo);ou(au,"blotName","table-row"),ou(au,"tagName","TR");var lu=function(e){function t(){return Ks(this,t),Zs(this,t,arguments)}return tu(t,e),Ys(t)}(qo);ou(lu,"blotName","table-body"),ou(lu,"tagName","TBODY");var cu=function(e){function t(){return Ks(this,t),Zs(this,t,arguments)}return tu(t,e),Ys(t,[{key:"balanceCells",value:function(){var e=this,t=this.descendants(au),n=t.reduce((function(e,t){return Math.max(t.children.length,e)}),0);t.forEach((function(t){new Array(n-t.children.length).fill(0).forEach((function(){var n;null!=t.children.head&&(n=iu.formats(t.children.head.domNode));var o=e.scroll.create(iu.blotName,n);t.appendChild(o),o.optimize()}))}))}},{key:"cells",value:function(e){return this.rows().map((function(t){return t.children.at(e)}))}},{key:"deleteColumn",value:function(e){var t=Gs(this.descendant(lu),1)[0];null!=t&&null!=t.children.head&&t.children.forEach((function(t){var n=t.children.at(e);null!=n&&n.remove()}))}},{key:"insertColumn",value:function(e){var t=this,n=Gs(this.descendant(lu),1)[0];null!=n&&null!=n.children.head&&n.children.forEach((function(n){var o=n.children.at(e),r=iu.formats(n.children.head.domNode),i=t.scroll.create(iu.blotName,r);n.insertBefore(i,o)}))}},{key:"insertRow",value:function(e){var t=this,n=Gs(this.descendant(lu),1)[0];if(null!=n&&null!=n.children.head){var o=su(),r=this.scroll.create(au.blotName);n.children.head.children.forEach((function(){var e=t.scroll.create(iu.blotName,o);r.appendChild(e)}));var i=n.children.at(e);n.insertBefore(r,i)}}},{key:"rows",value:function(){var e=this.children.head;return null==e?[]:e.children.map((function(e){return e}))}}])}(qo);function su(){var e=Math.random().toString(36).slice(2,6);return"row-".concat(e)}function uu(e){return(uu="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 du(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fu(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function pu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,mu(o.key),o)}}function mu(e){var t=function(e,t){if("object"!=uu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=uu(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==uu(t)?t:t+""}function bu(e,t,n){return t=gu(t),function(e,t){if(t&&("object"==uu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],gu(e).constructor):t.apply(e,n))}function gu(e){return(gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vu(e,t){return(vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}ou(cu,"blotName","table-container"),ou(cu,"tagName","TABLE"),cu.allowedChildren=[lu],lu.requiredContainer=cu,lu.allowedChildren=[au],au.requiredContainer=lu,au.allowedChildren=[iu],iu.requiredContainer=au;var yu=function(e){function t(){var e;return pu(this,t),(e=bu(this,t,arguments)).listenBalanceCells(),e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vu(e,t)}(t,e),function(e,t,n){return t&&hu(e.prototype,t),n&&hu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"balanceTables",value:function(){this.quill.scroll.descendants(cu).forEach((function(e){e.balanceCells()}))}},{key:"deleteColumn",value:function(){var e=du(this.getTable(),3),t=e[0],n=e[2];null!=n&&(t.deleteColumn(n.cellOffset()),this.quill.update(wo.sources.USER))}},{key:"deleteRow",value:function(){var e=du(this.getTable(),2)[1];null!=e&&(e.remove(),this.quill.update(wo.sources.USER))}},{key:"deleteTable",value:function(){var e=du(this.getTable(),1)[0];if(null!=e){var t=e.offset();e.remove(),this.quill.update(wo.sources.USER),this.quill.setSelection(t,wo.sources.SILENT)}}},{key:"getTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(null==e)return[null,null,null,-1];var t=this.quill.getLine(e.index),n=du(t,2),o=n[0],r=n[1];if(null==o||o.statics.blotName!==iu.blotName)return[null,null,null,-1];var i=o.parent,a=i.parent.parent;return[a,i,o,r]}},{key:"insertColumn",value:function(e){var t=this.quill.getSelection();if(t){var n=du(this.getTable(t),3),o=n[0],r=n[1],i=n[2];if(null!=i){var a=i.cellOffset();o.insertColumn(a+e),this.quill.update(wo.sources.USER);var l=r.rowOffset();0===e&&(l+=1),this.quill.setSelection(t.index+l,t.length,wo.sources.SILENT)}}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(e){var t=this.quill.getSelection();if(t){var n=du(this.getTable(t),3),o=n[0],r=n[1];if(null!=n[2]){var i=r.rowOffset();o.insertRow(i+e),this.quill.update(wo.sources.USER),e>0?this.quill.setSelection(t,wo.sources.SILENT):this.quill.setSelection(t.index+r.children.length,t.length,wo.sources.SILENT)}}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertTable",value:function(e,t){var n=this.quill.getSelection();if(null!=n){var o=new Array(e).fill(0).reduce((function(e){var n=new Array(t).fill("\n").join("");return e.insert(n,{table:su()})}),(new L.a).retain(n.index));this.quill.updateContents(o,wo.sources.USER),this.quill.setSelection(n.index,wo.sources.SILENT),this.balanceTables()}}},{key:"listenBalanceCells",value:function(){var e=this;this.quill.on(wo.events.SCROLL_OPTIMIZE,(function(t){t.some((function(t){return!!["TD","TR","TBODY","TABLE"].includes(t.target.tagName)&&(e.quill.once(wo.events.TEXT_CHANGE,(function(t,n,o){o===wo.sources.USER&&e.balanceTables()})),!0)}))}))}}],[{key:"register",value:function(){wo.register(iu),wo.register(au),wo.register(lu),wo.register(cu)}}])}(Nn);function wu(e){return(wu="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 xu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ou(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ou(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Su(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ku(o.key),o)}}function ku(e){var t=function(e,t){if("object"!=wu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=wu(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wu(t)?t:t+""}function Eu(e,t,n){return t=Tu(t),Cu(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Tu(e).constructor):t.apply(e,n))}function Cu(e,t){if(t&&("object"==wu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Tu(e){return(Tu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Au(e,t){return(Au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var _u=_t("quill:toolbar"),ju=function(e){function t(e,n){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=Eu(this,t,[e,n]),Array.isArray(o.options.container)){var r,i,a=document.createElement("div");a.setAttribute("role","toolbar"),function(e,t){Array.isArray(t[0])||(t=[t]);t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)Pu(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?function(e,t,n){var o=document.createElement("select");o.classList.add("ql-".concat(t)),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",String(e)):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}(n,t,o):Pu(n,t,o)}})),e.appendChild(n)}))}(a,o.options.container),null===(r=e.container)||void 0===r||null===(i=r.parentNode)||void 0===i||i.insertBefore(a,e.container),o.container=a}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},o.options.handlers&&Object.keys(o.options.handlers).forEach((function(e){var t,n=null===(t=o.options.handlers)||void 0===t?void 0:t[e];n&&o.addHandler(e,n)})),Array.from(o.container.querySelectorAll("button, select")).forEach((function(e){o.attach(e)})),o.quill.on(wo.events.EDITOR_CHANGE,(function(){var e=xu(o.quill.selection.getRange(),1)[0];o.update(e)})),o):(_u.error("Container required for toolbar",o.options),Cu(o))}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Au(e,t)}(t,e),function(e,t,n){return t&&Su(e.prototype,t),n&&Su(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=Array.from(e.classList).find((function(e){return 0===e.indexOf("ql-")}));if(n)if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null!=this.handlers[n]||null!=this.quill.scroll.query(n)){var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var r;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var i=e.options[e.selectedIndex];r=!i.hasAttribute("selected")&&(i.value||!1)}else r=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var a=xu(t.quill.selection.getRange(),1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,r);else if(t.quill.scroll.query(n).prototype instanceof _){if(!(r=prompt("Enter ".concat(n))))return;t.quill.updateContents((new L.a).retain(a.index).delete(a.length).insert(function(e,t,n){return(t=ku(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,r)),wo.sources.USER)}else t.quill.format(n,r,wo.sources.USER);t.update(a)})),this.controls.push([n,e])}else _u.warn("ignoring attaching to nonexistent format",n,e)}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=xu(n,2),r=o[0],i=o[1];if("SELECT"===i.tagName){var a=null;if(null==e)a=null;else if(null==t[r])a=i.querySelector("option[selected]");else if(!Array.isArray(t[r])){var l=t[r];"string"==typeof l&&(l=l.replace(/"/g,'\\"')),a=i.querySelector('option[value="'.concat(l,'"]'))}null==a?(i.value="",i.selectedIndex=-1):a.selected=!0}else if(null==e)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){var c=t[r],s=c===i.getAttribute("value")||null!=c&&c.toString()===i.getAttribute("value")||null==c&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{var u=null!=t[r];i.classList.toggle("ql-active",u),i.setAttribute("aria-pressed",u.toString())}}))}}])}(Nn);function Pu(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-".concat(t)),o.setAttribute("aria-pressed","false"),null!=n?(o.value=n,o.setAttribute("aria-label","".concat(t,": ").concat(n))):o.setAttribute("aria-label",t),e.appendChild(o)}ju.DEFAULTS={},ju.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0===t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=e.quill.scroll.query(t,i.INLINE)&&e.quill.format(t,!1,wo.sources.USER)}))}else this.quill.removeFormat(t.index,t.length,wo.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",wo.sources.USER):e||"right"!==t||this.quill.format("align",!1,wo.sources.USER),this.quill.format("direction",e,wo.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0,10);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,wo.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,wo.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,wo.sources.USER):this.quill.format("list","unchecked",wo.sources.USER):this.quill.format("list",e,wo.sources.USER)}}};var Nu='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Iu={align:{"":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',center:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',right:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',justify:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>'},background:'<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',blockquote:'<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',bold:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',clean:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',code:Nu,"code-block":Nu,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'};function Ru(e){return(Ru="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 qu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Lu(o.key),o)}}function Lu(e){var t=function(e,t){if("object"!=Ru(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ru(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ru(t)?t:t+""}var Mu=0;function Du(e,t){e.setAttribute(t,"".concat(!("true"===e.getAttribute(t))))}var zu=function(){return function(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.key){case"Enter":n.togglePicker();break;case"Escape":n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}),[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),Du(this.label,"aria-expanded"),Du(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");var o=e.getAttribute("value");return o&&n.setAttribute("data-value",o),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.key){case"Enter":t.selectItem(n,!0),e.preventDefault();break;case"Escape":t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-".concat(Mu),Mu+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;Array.from(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}},{key:"update",value:function(){var e;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}])}();function Bu(e){return(Bu="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 Fu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Hu(o.key),o)}}function Hu(e){var t=function(e,t){if("object"!=Bu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Bu(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bu(t)?t:t+""}function Uu(e,t,n){return t=Ku(t),function(e,t){if(t&&("object"==Bu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ku(e).constructor):t.apply(e,n))}function Wu(e,t,n,o){var r=Gu(Ku(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Gu(){return(Gu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Vu(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Vu(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ku(e)););return e}function Ku(e){return(Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $u(e,t){return($u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var Yu=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Uu(this,t,[e])).label.innerHTML=n,o.container.classList.add("ql-color-picker"),Array.from(o.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach((function(e){e.classList.add("ql-primary")})),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$u(e,t)}(t,e),function(e,t,n){return t&&Fu(e.prototype,t),n&&Fu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"buildItem",value:function(e){var n=Wu(t,"buildItem",this,3)([e]);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){Wu(t,"selectItem",this,3)([e,n]);var o=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=r:o.style.fill=r)}}])}(zu);function Zu(e){return(Zu="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 Xu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Qu(o.key),o)}}function Qu(e){var t=function(e,t){if("object"!=Zu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Zu(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zu(t)?t:t+""}function Ju(e,t,n){return t=nd(t),function(e,t){if(t&&("object"==Zu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],nd(e).constructor):t.apply(e,n))}function ed(){return(ed="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=td(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function td(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=nd(e)););return e}function nd(e){return(nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function od(e,t){return(od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var rd=function(e){function t(e,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=Ju(this,t,[e])).container.classList.add("ql-icon-picker"),Array.from(o.container.querySelectorAll(".ql-picker-item")).forEach((function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}(t,e),function(e,t,n){return t&&Xu(e.prototype,t),n&&Xu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectItem",value:function(e,n){!function(e,t,n,o){var r=ed(nd(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"selectItem",this,3)([e,n]);var o=e||this.defaultItem;if(null!=o){if(this.label.innerHTML===o.innerHTML)return;this.label.innerHTML=o.innerHTML}}}])}(zu);function id(e){return(id="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 ad(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ld(o.key),o)}}function ld(e){var t=function(e,t){if("object"!=id(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=id(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==id(t)?t:t+""}var cd=function(){return function(e,t,n){return t&&ad(e.prototype,t),n&&ad(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}((function e(t,n){var o,r,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,o=this.quill.root,"visible"!==(r=getComputedStyle(o,null).overflowY)&&"clip"!==r&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop="".concat(-1*i.quill.root.scrollTop,"px")})),this.hide()}),[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left="".concat(t,"px"),this.root.style.top="".concat(n,"px"),this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left="".concat(t+i,"px")),r.left<o.left&&(i=o.left-r.left,this.root.style.left="".concat(t+i,"px")),r.bottom>o.bottom){var a=r.bottom-r.top,l=e.bottom-e.top+a;this.root.style.top="".concat(n-l,"px"),this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}])}();function sd(e){return(sd="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 ud(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dd(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,pd(o.key),o)}}function fd(e,t,n){return t&&dd(e.prototype,t),n&&dd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pd(e){var t=function(e,t){if("object"!=sd(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=sd(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==sd(t)?t:t+""}function hd(e,t,n){return t=gd(t),function(e,t){if(t&&("object"==sd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],gd(e).constructor):t.apply(e,n))}function md(){return(md="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=bd(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function bd(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=gd(e)););return e}function gd(e){return(gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vd(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yd(e,t)}function yd(e,t){return(yd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var wd=[!1,"center","right","justify"],xd=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Od=[!1,"serif","monospace"],Sd=["1","2","3",!1],kd=["small",!1,"large","huge"],Ed=function(e){function t(e,n){var o;ud(this,t),o=hd(this,t,[e,n]);var r=function(t){document.body.contains(e.root)?(null==o.tooltip||o.tooltip.root.contains(t.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(t.target)||e.close()}))):document.body.removeEventListener("click",r)};return e.emitter.listenDOM("click",document.body,r),o}return vd(t,e),fd(t,[{key:"addModule",value:function(e){var n=function(e,t,n,o){var r=md(gd(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}(t,"addModule",this,3)([e]);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){Array.from(e).forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=Array.from(e).map((function(e){if(e.classList.contains("ql-align")&&(null==e.querySelector("option")&&Td(e,wd),"object"===sd(t.align)))return new rd(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&Td(e,xd,"background"===n?"#ffffff":"#000000"),new Yu(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?Td(e,Od):e.classList.contains("ql-header")?Td(e,Sd):e.classList.contains("ql-size")&&Td(e,kd)),new zu(e)}));this.quill.on(Ht.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}])}(Qn);Ed.DEFAULTS=Object(r.a)({},Qn.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),t.classList.add("ql-image"),t.addEventListener("change",(function(){var n=e.quill.getSelection(!0);e.quill.uploader.upload(n,t.files),t.value=""})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var Cd=function(e){function t(e,n){var o;return ud(this,t),(o=hd(this,t,[e,n])).textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return vd(t,e),fd(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){"Enter"===t.key?(e.save(),t.preventDefault()):"Escape"===t.key&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide(),this.restoreFocus()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=this.textbox){null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");var n=this.quill.getBounds(this.quill.selection.savedRange);null!=n&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-".concat(e))||""),this.root.setAttribute("data-mode",e)}}},{key:"restoreFocus",value:function(){this.quill.focus({preventScroll:!0})}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,Ht.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,Ht.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);if(t)return"".concat(t[1]||"https","://www.youtube.com/embed/").concat(t[2],"?showinfo=0");if(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))return"".concat(t[1]||"https","://player.vimeo.com/video/").concat(t[2],"/");return e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var o=n.index+n.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),e,Ht.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",Ht.sources.USER),this.quill.setSelection(o+2,Ht.sources.USER)}}this.textbox.value="",this.hide()}}])}(cd);function Td(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",String(t)),e.appendChild(o)}))}function Ad(e){return(Ad="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 _d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jd(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,zd(o.key),o)}}function Pd(e,t,n){return t&&jd(e.prototype,t),n&&jd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nd(e,t,n){return t=Ld(t),function(e,t){if(t&&("object"==Ad(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ld(e).constructor):t.apply(e,n))}function Id(e,t,n,o){var r=Rd(Ld(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Rd(){return(Rd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=qd(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function qd(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Ld(e)););return e}function Ld(e){return(Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Md(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dd(e,t)}function Dd(e,t){return(Dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function zd(e){var t=function(e,t){if("object"!=Ad(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ad(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ad(t)?t:t+""}var Bd=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Fd=function(e){function t(e,n){var o;return _d(this,t),(o=Nd(this,t,[e,n])).quill.on(Ht.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===Ht.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===Ht.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width="".concat(o.root.offsetWidth,"px");var i=o.quill.getLines(t.index,t.length);if(1===i.length){var a=o.quill.getBounds(t);null!=a&&o.position(a)}else{var l=i[i.length-1],c=o.quill.getIndex(l),s=Math.min(l.length()-1,t.index+t.length-c),u=o.quill.getBounds(new Jt(c,s));null!=u&&o.position(u)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return Md(t,e),Pd(t,[{key:"listen",value:function(){var e=this;Id(t,"listen",this,3)([]),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(Ht.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();if(null!=t){var n=e.quill.getBounds(t);null!=n&&e.position(n)}}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=Id(t,"position",this,3)([e]),o=this.root.querySelector(".ql-tooltip-arrow");return o.style.marginLeft="",0!==n&&(o.style.marginLeft="".concat(-1*n-o.offsetWidth/2,"px")),n}}])}(Cd);!function(e,t,n){(t=zd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(Fd,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));var Hd=function(e){function t(e,n){var o;return _d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=Bd),(o=Nd(this,t,[e,n])).quill.container.classList.add("ql-bubble"),o}return Md(t,e),Pd(t,[{key:"extendToolbar",value:function(e){this.tooltip=new Fd(this.quill,this.options.bounds),null!=e.container&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),Iu),this.buildPickers(e.container.querySelectorAll("select"),Iu))}}])}(Ed);Hd.DEFAULTS=Object(r.a)({},Ed.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,wo.sources.USER)}}}}});n(1618);function Ud(e){return(Ud="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 Wd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gd(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gd(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Vd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kd(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,of(o.key),o)}}function $d(e,t,n){return t&&Kd(e.prototype,t),n&&Kd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yd(e,t,n){return t=Jd(t),function(e,t){if(t&&("object"==Ud(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Jd(e).constructor):t.apply(e,n))}function Zd(e,t,n,o){var r=Xd(Jd(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function Xd(){return(Xd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=Qd(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function Qd(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=Jd(e)););return e}function Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ef(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tf(e,t)}function tf(e,t){return(tf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nf(e,t,n){return(t=of(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function of(e){var t=function(e,t){if("object"!=Ud(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ud(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ud(t)?t:t+""}var rf=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],af=function(e){function t(){var e;Vd(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return nf(e=Yd(this,t,[].concat(o)),"preview",e.root.querySelector("a.ql-preview")),e}return ef(t,e),$d(t,[{key:"listen",value:function(){var e=this;Zd(t,"listen",this,3)([]),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,Ht.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(Ht.events.SELECTION_CHANGE,(function(t,n,o){if(null!=t){if(0===t.length&&o===Ht.sources.USER){var r=Wd(e.quill.scroll.descendant(oc,t.index),2),i=r[0],a=r[1];if(null!=i){e.linkRange=new Jt(t.index-a,i.length());var l=oc.formats(i.domNode);e.preview.textContent=l,e.preview.setAttribute("href",l),e.show();var c=e.quill.getBounds(e.linkRange);return void(null!=c&&e.position(c))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){Zd(t,"show",this,3)([]),this.root.removeAttribute("data-mode")}}])}(Cd);nf(af,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));var lf=function(e){function t(e,n){var o;return Vd(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=rf),(o=Yd(this,t,[e,n])).quill.container.classList.add("ql-snow"),o}return ef(t,e),$d(t,[{key:"extendToolbar",value:function(e){null!=e.container&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),Iu),this.buildPickers(e.container.querySelectorAll("select"),Iu),this.tooltip=new af(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)})))}}])}(Ed);lf.DEFAULTS=Object(r.a)({},Ed.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0===t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:".concat(n)),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1,wo.sources.USER)}}}}});var cf=lf;Pa.register({"attributors/attribute/direction":Nr,"attributors/class/align":tr,"attributors/class/background":mr,"attributors/class/color":pr,"attributors/class/direction":Ir,"attributors/class/font":Gr,"attributors/class/size":Kr,"attributors/style/align":nr,"attributors/style/background":br,"attributors/style/color":hr,"attributors/style/direction":Rr,"attributors/style/font":Vr,"attributors/style/size":$r},!0),Pa.register({"formats/align":tr,"formats/direction":Ir,"formats/indent":Ha,"formats/background":br,"formats/color":hr,"formats/font":Gr,"formats/size":Kr,"formats/blockquote":Qa,"formats/code-block":_r,"formats/header":cl,"formats/list":Ol,"formats/bold":ql,"formats/code":jr,"formats/italic":Gl,"formats/link":oc,"formats/script":bc,"formats/strike":Cc,"formats/underline":Lc,"formats/formula":$c,"formats/image":cs,"formats/video":Os,"modules/syntax":Us,"modules/table":yu,"modules/toolbar":ju,"themes/bubble":Hd,"themes/snow":cf,"ui/icons":Iu,"ui/picker":zu,"ui/icon-picker":rd,"ui/color-picker":Yu,"ui/tooltip":cd},!0);t.a=Pa},1584:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));n(22);var o=function(e,t,n){return{icon:t,label:n,title:n,option:e,dataElement:"".concat(e[0].toUpperCase()+e.slice(1),"Button")}},r={OPENFILE:"openFile",RENAME:"rename",SETDEST:"setDestination",DOWNLOAD:"download",DELETE:"delete",OPENFORMFIELDPANEL:"openFormFieldPanel",MOVE_UP:"moveUp",MOVE_DOWN:"moveDown",MOVE_LEFT:"moveLeft",MOVE_RIGHT:"moveRight"},i=[o(r.OPENFORMFIELDPANEL,"icon-edit-form-field","action.edit"),o(r.OPENFILE,"icon-portfolio-file","portfolio.openFile"),o(r.RENAME,"ic_edit_page_24px","action.rename"),o(r.SETDEST,"icon-thumbtack","action.setDestination"),o(r.DOWNLOAD,"icon-download","action.download"),o(r.DELETE,"icon-delete-line","action.delete"),o(r.MOVE_UP,"icon-page-move-up","action.moveUp"),o(r.MOVE_DOWN,"icon-page-move-down","action.moveDown"),o(r.MOVE_LEFT,"icon-page-move-left","action.moveLeft"),o(r.MOVE_RIGHT,"icon-page-move-right","action.moveRight")]},1585:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var o={OUTLINE:"outline",PORTFOLIO:"portfolio"},r={ON_TARGET_HORIZONTAL_MIDPOINT:"onTargetHorizontalMidPoint",ABOVE_TARGET:"aboveTarget",BELOW_TARGET:"belowTarget",INITIAL:"initial"},i=8},1587:function(e,t,n){"use strict";var o=Array.isArray;t.a=o},1590:function(e,t,n){"use strict";t.a=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1591:function(e,t,n){"use strict";var o=n(1605),r=n(1632),i=n(1624);var a=function(e,t,n){(void 0!==n&&!Object(i.a)(e[t],n)||void 0===n&&!(t in e))&&Object(r.a)(e,t,n)};var l=function(e){return function(t,n,o){for(var r=-1,i=Object(t),a=o(t),l=a.length;l--;){var c=a[e?l:++r];if(!1===n(i[c],c,i))break}return t}}(),c=n(1645),s=n(1646).a.Uint8Array;var u=function(e){var t=new e.constructor(e.byteLength);return new s(t).set(new s(e)),t};var d=function(e,t){var n=t?u(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},f=n(1644),p=n(1657);var h=function(){return!1},m=n(1587),b=Object.prototype.toString;var g=function(e){return b.call(e)},v=n(1580);var y=function(e){if(!Object(v.a)(e))return!1;var t=g(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var w=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var x=function(e){return null!=e&&w(e.length)&&!y(e)},O=n(1607);var S=function(e){return Object(O.a)(e)&&x(e)},k=n(1603),E=n(1661),C=Function.prototype,T=Object.prototype,A=C.toString,_=T.hasOwnProperty,j=A.call(Object);var P=function(e){if(!Object(O.a)(e)||"[object Object]"!=g(e))return!1;var t=Object(E.a)(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&A.call(n)==j},N=n(1643);var I=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},R=n(1578),q=n(1590);var L=function(e){return Object(R.a)(e,Object(q.a)(e))};var M=function(e,t,n,o,r,i,l){var s=I(e,n),u=I(t,n),b=l.get(u);if(b)a(e,n,b);else{var g=i?i(s,u,n+"",e,t,l):void 0,w=void 0===g;if(w){var x=Object(m.a)(u),O=!x&&Object(k.a)(u),E=!x&&!O&&Object(N.a)(u);g=u,x||O||E?Object(m.a)(s)?g=s:S(s)?g=Object(f.a)(s):O?(w=!1,g=Object(c.a)(u,!0)):E?(w=!1,g=d(u,!0)):g=[]:P(u)||h(u)?(g=s,h(s)?g=L(s):Object(v.a)(s)&&!y(s)||(g=Object(p.a)(u))):w=!1}w&&(l.set(u,g),r(g,u,o,i,l),l.delete(u)),a(e,n,g)}};var D=function e(t,n,r,i,c){t!==n&&l(n,(function(l,s){if(c||(c=new o.a),Object(v.a)(l))M(t,n,s,r,e,i,c);else{var u=i?i(I(t,s),l,s+"",t,n,c):void 0;void 0===u&&(u=l),a(t,s,u)}}),q.a)};var z=function(e){return e};var B=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},F=Math.max;var H=function(e,t,n){return t=F(void 0===t?e.length-1:t,0),function(){for(var o=arguments,r=-1,i=F(o.length-t,0),a=Array(i);++r<i;)a[r]=o[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=o[r];return l[t]=n(a),B(e,this,l)}};var U=function(e){return e};var W=function(e,t){return U(H(e,t,z),e+"")};var G=function(){return!1};var V=function(e){return W((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&G(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o<r;){var l=n[o];l&&e(t,l,o,i)}return t}))}((function(e,t,n){D(e,t,n)}));t.a=V},1594:function(e,t,n){n(1679)},1595:function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(41),c=(n(1706),{img:a.a.string,label:a.a.oneOfType([a.a.string,a.a.number]),dataElement:a.a.string,onClick:a.a.func,ariaLabel:a.a.string,ariaControls:a.a.string,role:a.a.string,disabled:a.a.bool}),s=function(e){var t=e.img,n=e.dataElement,o=e.onClick,i=e.label,a=e.ariaLabel,c=e.ariaControls,s=e.role,u=e.disabled;return r.a.createElement(l.a,{className:"TextButton",img:t,label:i,dataElement:n,onClick:o,ariaLabel:a,ariaControls:c,role:s,disabled:u})};s.propTypes=c;var u=r.a.memo(s);t.a=u},1596:function(e,t,n){"use strict";n(27),n(8),n(231),n(266),n(381),n(29);t.a=function(e,t){var n={},o=e.getContents().ops,r=0;o.forEach((function(e){var t,o=e.attributes,i=null===(t=e.insert)||void 0===t?void 0:t.mention,a=e.insert;if(i){var l=e.insert.mention;a=l.denotationChar+l.value}var c={};(null==o?void 0:o.bold)&&(c["font-weight"]="bold"),(null==o?void 0:o.italic)&&(c["font-style"]="italic"),(null==o?void 0:o.color)&&(c.color=o.color),(null==o?void 0:o.underline)&&(c["text-decoration"]="word"),(null==o?void 0:o.strike)&&(c["text-decoration"]?c["text-decoration"]="".concat(c["text-decoration"]," line-through"):c["text-decoration"]="line-through"),(null==o?void 0:o.size)&&(c["font-size"]=o.size),(null==o?void 0:o.font)&&(c["font-family"]=o.font),n[r]=c,r+=a.length})),t.setRichTextStyle(n)}},1597:function(e,t,n){"use strict";var o=n(1656);t.a=o.a},1598:function(e,t,n){var o=n(35),r=n(1743);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1599:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(115),n(153),n(29),n(13),n(94);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(6),c=n(127),s=n.n(c),u=n(1571),d=n(4),f=(n(38),n(26),n(40),n(42),n(43),n(56),n(1619)),p=n(1711),h=n(372),m=n(41),b=n(305),g=n(5),v=n(23);n(85),n(44);var y=function(e){if(!e)return e;var t=e.split("\n");return t.length>1?t.map((function(e){return"<p>".concat(e||"<br>","</p>")})).join(""):e};n(76),n(84);function w(e){return(w="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 x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,C(o.key),o)}}function E(e,t,n){return t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C(e){var t=function(e,t){if("object"!=w(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==w(t)?t:t+""}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t,n){return t=_(t),function(e,t){if(t&&("object"==w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}function P(e,t){return(P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var N=f.a.import("modules/clipboard"),I=window.Core.quillShadowDOMWorkaround,R=function(e){function t(e,n){return T(this,t),I(e),A(this,t,[e,n])}return j(t,e),E(t)}(N),q=f.a.import("modules/keyboard"),L=function(e){function t(){return T(this,t),A(this,t,arguments)}return j(t,e),E(t)}(q);S(L,"DEFAULTS",O(O({},q.DEFAULTS),{},{bindings:O(O({},q.DEFAULTS.bindings),{},{"list autofill":void 0})}));var M=function(){return E((function e(t){var n,o=this;T(this,e),S(this,"handleKeyDown",(function(e){"Escape"===e.key?o.blurQuill():"Tab"===e.key&&o.shouldSkipInput&&(e.preventDefault(),o.moveFocus(e.shiftKey))})),this.quill=t,this.noteContainer=t.root.closest(".Note"),this.shouldSkipInput=!1,null===(n=this.noteContainer)||void 0===n||n.addEventListener("keydown",this.handleKeyDown.bind(this))}),[{key:"blurQuill",value:function(){this.shouldSkipInput=!0,this.quill.blur(),this.quill.container.tabIndex=0,this.quill.container.focus()}},{key:"moveFocus",value:function(e){var t,n=Array.from(this.noteContainer.querySelectorAll(".ql-container.ql-snow, button.modular-ui")),o=n.indexOf(this.quill.container);-1!==o&&(null===(t=n[e?o-1:o+1])||void 0===t||t.focus());this.shouldSkipInput=!1,this.quill.container.tabIndex=-1}}])}();n(1682),n(1684);function D(e){return(D="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 z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=D(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function W(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return G(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(G(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,G(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,G(d,"constructor",s),G(s,"constructor",c),c.displayName="GeneratorFunction",G(s,r,"GeneratorFunction"),G(d),G(d,r,"Generator"),G(d,o,(function(){return this})),G(d,"toString",(function(){return"[object Generator]"})),(W=function(){return{w:i,m:f}})()}function G(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(G=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){G(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function V(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var K=[],$=["background","bold","color","font","code","italic","link","size","strike","script","underline","blockquote","header","indent","list","align","direction","code-block","formula","mention"];f.a.register("modules/keyboard",L,!0),f.a.register("modules/clipboard",R,!0),f.a.register("modules/blurInput",M),f.a.register({"modules/mention":p.a,"blots/mention":p.b});var Y={mention:{allowedChars:/^[A-Za-z\sÅÄÖåäö0-9\-_]*$/,mentionDenotationChars:["@","#"],mentionContainerClass:"mention__element",mentionListClass:"mention__suggestions__list",listItemClass:"mention__suggestions__item",renderItem:function(e){var t=document.createElement("div");if(t.innerText=e.value,e.email){var n=document.createElement("p");n.innerText=e.email,n.className="email",t.appendChild(n)}return t},source:function(e,t){return(n=W().m((function n(){var o,r;return W().w((function(n){for(;;)switch(n.n){case 0:return o=h.a.getMentionLookupCallback(),n.n=1,o(K,e);case 1:r=n.v,t(r,e);case 2:return n.a(2)}}),n)})),function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){V(i,o,r,a,l,"next",e)}function l(e){V(i,o,r,a,l,"throw",e)}a(void 0)}))})();var n}}},Z=r.a.forwardRef((function(e,t){var n=e.value,o=void 0===n?"":n,i=e.onChange,a=e.onKeyDown,c=e.onBlur,s=e.onFocus,u=e.userData,p=e.isReply,h=H(Object(b.a)(),1)[0],w=Object(l.e)((function(e){return d.a.isElementDisabled(e,g.a.NotesPanel.ADD_REPLY_ATTACHMENT_BUTTON)}));K=u;o=y(o);var x={blurInput:{}};return r.a.createElement("div",{className:"comment-textarea",onBlur:c,onFocus:s,onClick:function(e){e.preventDefault(),e.stopPropagation()},onScroll:function(e){e.preventDefault(),e.stopPropagation()}},r.a.createElement(f.b,{className:"comment-textarea ql-container ql-editor",style:{overflowY:"visible"},ref:function(e){return e&&(e.getEditor().root.ariaLabel="".concat(h(p?"action.reply":"action.comment"))),t(e)},modules:u&&u.length>0?B(B({},x),Y):x,theme:"snow",value:o,placeholder:"".concat(h(p?"action.reply":"action.comment"),"..."),onChange:i,onKeyDown:a,formats:$}),p&&!w&&r.a.createElement(m.a,{className:"add-attachment",dataElement:g.a.NotesPanel.ADD_REPLY_ATTACHMENT_BUTTON,img:"ic_fileattachment_24px",title:"".concat(h("action.add")," ").concat(h("option.type.fileattachment")),onClick:function(){var e;null===(e=Object(v.a)().querySelector("#reply-attachment-picker"))||void 0===e||e.click()}}))}));Z.displayName="CommentTextarea";var X=Z;function Q(e){return(Q="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 J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return oe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var re={value:a.a.string,placeholder:a.a.string,onChange:a.a.func.isRequired,onBlur:a.a.func,onFocus:a.a.func,onSubmit:a.a.func},ie=r.a.forwardRef((function(e,t){var n=ne(Object(l.e)((function(e){return[d.a.getUserData(e),d.a.isNoteSubmissionWithEnterEnabled(e),d.a.getAutoFocusNoteOnAnnotationSelection(e),d.a.getIsNoteEditing(e)]}),l.c),2),i=n[0],a=n[1],c=Object(o.useContext)(u.a).resize,f=Object(o.useRef)(),p=Object(o.useRef)();Object(o.useLayoutEffect)((function(){var e,t,n=null===(e=f.current)||void 0===e||null===(t=e.editor)||void 0===t?void 0:t.container.firstElementChild,o=(null==n?void 0:n.getBoundingClientRect())||{};p.current&&p.current!==o.height&&c(),p.current=o.height}),[e.value,c]);var m=ee(ee({},e),{},{ref:function(e){f.current=e,t(e)},onChange:s()((function(t,n,o,r){if(t=t.replace(/ /g," "),f.current){var i="";if(r&&""===r.getText().trim()&&"<p><br></p>"===t||(i=t.target?t.target.value:t),e.onChange(i),h.a.doesDeltaContainMention(n.ops)){var a,l=h.a.getFormattedTextFromDeltas(n.ops),c=h.a.extractMentionDataFromStr(l),s=r.getText().length+c.plainTextValue.length,u=null===(a=f.current)||void 0===a?void 0:a.editor;setTimeout((function(){return null==u?void 0:u.setSelection(s,s)}),1)}}}),100),onKeyDown:function(t){if(13===t.which){var n=a,o=t.metaKey||t.ctrlKey;(n||o)&&e.onSubmit(t)}},userData:i});return r.a.createElement(r.a.Fragment,null,r.a.createElement(X,m))}));ie.displayName="NoteTextarea",ie.propTypes=re;var ae=ie;t.a=ae},1603:function(e,t,n){"use strict";t.a=function(){return!1}},1604:function(e,t,n){"use strict";t.a=function(e,t){return function(n){return e(t(n))}}},1605:function(e,t,n){"use strict";var o=function(){this.__data__=[],this.size=0},r=n(1624);var i=function(e,t){for(var n=e.length;n--;)if(Object(r.a)(e[n][0],t))return n;return-1},a=Array.prototype.splice;var l=function(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)};var c=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]};var s=function(e){return i(this.__data__,e)>-1};var u=function(e,t){var n=this.__data__,o=i(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function d(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}d.prototype.clear=o,d.prototype.delete=l,d.prototype.get=c,d.prototype.has=s,d.prototype.set=u;t.a=d},1607:function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},1608:function(e,t,n){n(55)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},1609:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var o,r=!("undefined"==typeof window||!window.document||!window.document.createElement);function i(e){if((!o&&0!==o||e)&&r){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),o=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return o}},1610:function(e,t,n){"use strict";n(85),n(153);t.a=function(e,t){return[e,t.isOpen?"open":"closed"].join(" ").trim()}},1618:function(e,t,n){"use strict";var o=n(55),r=n(406);o({target:"String",proto:!0,forced:n(407)("link")},{link:function(e){return r(this,"a","href",e)}})},1619:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(38),n(34),n(27),n(21),n(20),n(12),n(22),n(99),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(56),n(84),n(17),n(19),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(1844),a=n(1582);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u="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 d(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"==u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return a.a}));var v=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=m(this,t,[e])).editingAreaRef=Object(o.createRef)(),n.dirtyProps=["modules","formats","bounds","theme","children"],n.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],n.state={generation:0},n.selection=null,n.onEditorChange=function(e,t,o,r){var i,a;if("text-change"===e)null===(i=(a=n).onEditorChangeText)||void 0===i||i.call(a,n.editor.root.innerHTML,t,r,n.unprivilegedEditor);else if("selection-change"===e){var l,c;null===(l=(c=n).onEditorChangeSelection)||void 0===l||l.call(c,t,r,n.unprivilegedEditor)}};var r=n.isControlled()?e.value:e.defaultValue;return n.value=null!=r?r:"",n}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),function(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"validateProps",value:function(e){if(r.a.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(r.a.Children.count(e.children)){var t=r.a.Children.only(e.children);if("textarea"===(null==t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}},{key:"shouldComponentUpdate",value:function(e,t){var n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o,r=this.getEditorContents(),a=null!==(o=e.value)&&void 0!==o?o:"";this.isEqualValue(a,r)||this.setEditorContents(this.editor,a)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),[].concat(d(this.cleanProps),d(this.dirtyProps)).some((function(t){return!Object(i.a)(e[t],n.props[t])}))}},{key:"shouldComponentRegenerate",value:function(e){var t=this;return this.dirtyProps.some((function(n){return!Object(i.a)(e[n],t.props[n])}))}},{key:"componentDidMount",value:function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}},{key:"componentWillUnmount",value:function(){this.destroyEditor()}},{key:"componentDidUpdate",value:function(e,t){var n=this;if(this.editor&&this.shouldComponentRegenerate(e)){var o=this.editor.getContents(),r=this.editor.getSelection();this.regenerationSnapshot={delta:o,selection:r},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=i.delta,l=i.selection;delete this.regenerationSnapshot,this.instantiateEditor();var c=this.editor;c.setContents(a),y((function(){return n.setEditorSelection(c,l)}))}}},{key:"instantiateEditor",value:function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}},{key:"destroyEditor",value:function(){var e;if(this.editor){this.unhookEditor(this.editor);var t=null===(e=this.props.modules)||void 0===e?void 0:e.toolbar;if(!("object"===u(t)&&t&&"container"in t&&"string"==typeof t.container||"string"==typeof t)){var n=document.querySelector(".ql-toolbar");n&&n.remove()}delete this.editor}}},{key:"isControlled",value:function(){return"value"in this.props}},{key:"getEditorConfig",value:function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}},{key:"getEditor",value:function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}},{key:"createEditor",value:function(e,t){var n=new a.a(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(n,t.tabIndex),this.hookEditor(n),n}},{key:"hookEditor",value:function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)}},{key:"unhookEditor",value:function(e){e.off("editor-change",this.onEditorChange)}},{key:"getEditorContents",value:function(){return this.value}},{key:"getEditorSelection",value:function(){return this.selection}},{key:"isDelta",value:function(e){return e&&e.ops}},{key:"isEqualValue",value:function(e,t){return this.isDelta(e)&&this.isDelta(t)?Object(i.a)(e.ops,t.ops):Object(i.a)(e,t)}},{key:"setEditorContents",value:function(e,t){var n=this;this.value=t;var o=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert({html:t})):e.setContents(t),y((function(){return n.setEditorSelection(e,o)}))}},{key:"setEditorSelection",value:function(e,t){if(this.selection=t,t){var n=e.getLength();t.index=Math.max(0,Math.min(t.index,n-1)),t.length=Math.max(0,Math.min(t.length,n-1-t.index)),e.setSelection(t)}}},{key:"setEditorTabIndex",value:function(e,t){var n;null!=e&&null!==(n=e.scroll)&&void 0!==n&&n.domNode&&(e.scroll.domNode.tabIndex=t)}},{key:"setEditorReadOnly",value:function(e,t){t?e.disable():e.enable()}},{key:"makeUnprivilegedEditor",value:function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getSemanticHTML:t.getSemanticHTML.bind(t),getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}}},{key:"getEditingArea",value:function(){var e=this.editingAreaRef.current;if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e}},{key:"renderEditingArea",value:function(){var e=this.props,t=e.children,n=e.preserveWhitespace,o={key:this.state.generation,ref:this.editingAreaRef};return r.a.Children.count(t)?r.a.cloneElement(r.a.Children.only(t),o):n?r.a.createElement("pre",c({},o)):r.a.createElement("div",c({},o))}},{key:"render",value:function(){var e;return r.a.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill ".concat(null!==(e=this.props.className)&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())}},{key:"onEditorChangeText",value:function(e,t,n,o){if(this.editor){var r,i,a=this.isDelta(this.value)?o.getContents():o.getHTML();if(a!==this.getEditorContents())this.lastDeltaChangeSet=t,this.value=a,null===(r=(i=this.props).onChange)||void 0===r||r.call(i,e,t,n,o)}}},{key:"onEditorChangeSelection",value:function(e,t,n){var o,r;if(this.editor){var a,l,c=this.getEditorSelection(),s=!c&&e,u=c&&!e;if(!Object(i.a)(e,c))if(this.selection=e,null===(o=(r=this.props).onChangeSelection)||void 0===o||o.call(r,e,t,n),s)null===(a=(l=this.props).onFocus)||void 0===a||a.call(l,e,t,n);else if(u){var d,f;null===(d=(f=this.props).onBlur)||void 0===d||d.call(f,c,t,n)}}}},{key:"focus",value:function(){this.editor&&this.editor.focus()}},{key:"blur",value:function(){this.editor&&(this.selection=null,this.editor.blur())}}])}(r.a.Component);function y(e){Promise.resolve().then(e)}v.displayName="React Quill",v.Quill=a.a,v.defaultProps={theme:"snow",modules:{},readOnly:!1},t.b=v},1620:function(e,t,n){(function(e,n){var o="[object Arguments]",r="[object Function]",i="[object GeneratorFunction]",a="[object Map]",l="[object Set]",c=/\w*$/,s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,d={};d[o]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object DataView]"]=d["[object Boolean]"]=d["[object Date]"]=d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d[a]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d[l]=d["[object String]"]=d["[object Symbol]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Error]"]=d[r]=d["[object WeakMap]"]=!1;var f="object"==typeof e&&e&&e.Object===Object&&e,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),m=t&&!t.nodeType&&t,b=m&&"object"==typeof n&&n&&!n.nodeType&&n,g=b&&b.exports===m;function v(e,t){return e.set(t[0],t[1]),e}function y(e,t){return e.add(t),e}function w(e,t,n,o){var r=-1,i=e?e.length:0;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function x(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function O(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function S(e,t){return function(n){return e(t(n))}}function k(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var E,C=Array.prototype,T=Function.prototype,A=Object.prototype,_=h["__core-js_shared__"],j=(E=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"",P=T.toString,N=A.hasOwnProperty,I=A.toString,R=RegExp("^"+P.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=g?h.Buffer:void 0,L=h.Symbol,M=h.Uint8Array,D=S(Object.getPrototypeOf,Object),z=Object.create,B=A.propertyIsEnumerable,F=C.splice,H=Object.getOwnPropertySymbols,U=q?q.isBuffer:void 0,W=S(Object.keys,Object),G=be(h,"DataView"),V=be(h,"Map"),K=be(h,"Promise"),$=be(h,"Set"),Y=be(h,"WeakMap"),Z=be(Object,"create"),X=xe(G),Q=xe(V),J=xe(K),ee=xe($),te=xe(Y),ne=L?L.prototype:void 0,oe=ne?ne.valueOf:void 0;function re(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function le(e){this.__data__=new ie(e)}function ce(e,t){var n=Se(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ke(e)}(e)&&N.call(e,"callee")&&(!B.call(e,"callee")||I.call(e)==o)}(e)?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],r=n.length,i=!!r;for(var a in e)!t&&!N.call(e,a)||i&&("length"==a||ye(a,r))||n.push(a);return n}function se(e,t,n){var o=e[t];N.call(e,t)&&Oe(o,n)&&(void 0!==n||t in e)||(e[t]=n)}function ue(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function de(e,t,n,s,u,f,p){var h;if(s&&(h=f?s(e,u,f,p):s(e)),void 0!==h)return h;if(!Te(e))return e;var m=Se(e);if(m){if(h=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&N.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,o=e.length;t||(t=Array(o));for(;++n<o;)t[n]=e[n];return t}(e,h)}else{var b=ve(e),g=b==r||b==i;if(Ee(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if("[object Object]"==b||b==o||g&&!f){if(x(e))return f?e:{};if(h=function(e){return"function"!=typeof e.constructor||we(e)?{}:(t=D(e),Te(t)?z(t):{});var t}(g?{}:e),!t)return function(e,t){return he(e,ge(e),t)}(e,function(e,t){return e&&he(t,Ae(t),e)}(h,e))}else{if(!d[b])return f?e:{};h=function(e,t,n,o){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return pe(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,o);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,o);case a:return function(e,t,n){return w(t?n(O(e),!0):O(e),v,new e.constructor)}(e,o,n);case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,c.exec(e));return t.lastIndex=e.lastIndex,t}(e);case l:return function(e,t,n){return w(t?n(k(e),!0):k(e),y,new e.constructor)}(e,o,n);case"[object Symbol]":return i=e,oe?Object(oe.call(i)):{}}var i}(e,b,de,t)}}p||(p=new le);var S=p.get(e);if(S)return S;if(p.set(e,h),!m)var E=n?function(e){return function(e,t,n){var o=t(e);return Se(e)?o:function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}(o,n(e))}(e,Ae,ge)}(e):Ae(e);return function(e,t){for(var n=-1,o=e?e.length:0;++n<o&&!1!==t(e[n],n,e););}(E||e,(function(o,r){E&&(o=e[r=o]),se(h,r,de(o,t,n,s,r,e,p))})),h}function fe(e){return!(!Te(e)||(t=e,j&&j in t))&&(Ce(e)||x(e)?R:s).test(xe(e));var t}function pe(e){var t=new e.constructor(e.byteLength);return new M(t).set(new M(e)),t}function he(e,t,n,o){n||(n={});for(var r=-1,i=t.length;++r<i;){var a=t[r],l=o?o(n[a],e[a],a,n,e):void 0;se(n,a,void 0===l?e[a]:l)}return n}function me(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function be(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}re.prototype.clear=function(){this.__data__=Z?Z(null):{}},re.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},re.prototype.get=function(e){var t=this.__data__;if(Z){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return N.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:N.call(t,e)},re.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},ie.prototype.clear=function(){this.__data__=[]},ie.prototype.delete=function(e){var t=this.__data__,n=ue(t,e);return!(n<0)&&(n==t.length-1?t.pop():F.call(t,n,1),!0)},ie.prototype.get=function(e){var t=this.__data__,n=ue(t,e);return n<0?void 0:t[n][1]},ie.prototype.has=function(e){return ue(this.__data__,e)>-1},ie.prototype.set=function(e,t){var n=this.__data__,o=ue(n,e);return o<0?n.push([e,t]):n[o][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new re,map:new(V||ie),string:new re}},ae.prototype.delete=function(e){return me(this,e).delete(e)},ae.prototype.get=function(e){return me(this,e).get(e)},ae.prototype.has=function(e){return me(this,e).has(e)},ae.prototype.set=function(e,t){return me(this,e).set(e,t),this},le.prototype.clear=function(){this.__data__=new ie},le.prototype.delete=function(e){return this.__data__.delete(e)},le.prototype.get=function(e){return this.__data__.get(e)},le.prototype.has=function(e){return this.__data__.has(e)},le.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ie){var o=n.__data__;if(!V||o.length<199)return o.push([e,t]),this;n=this.__data__=new ae(o)}return n.set(e,t),this};var ge=H?S(H,Object):function(){return[]},ve=function(e){return I.call(e)};function ye(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||u.test(e))&&e>-1&&e%1==0&&e<t}function we(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||A)}function xe(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Oe(e,t){return e===t||e!=e&&t!=t}(G&&"[object DataView]"!=ve(new G(new ArrayBuffer(1)))||V&&ve(new V)!=a||K&&"[object Promise]"!=ve(K.resolve())||$&&ve(new $)!=l||Y&&"[object WeakMap]"!=ve(new Y))&&(ve=function(e){var t=I.call(e),n="[object Object]"==t?e.constructor:void 0,o=n?xe(n):void 0;if(o)switch(o){case X:return"[object DataView]";case Q:return a;case J:return"[object Promise]";case ee:return l;case te:return"[object WeakMap]"}return t});var Se=Array.isArray;function ke(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ce(e)}var Ee=U||function(){return!1};function Ce(e){var t=Te(e)?I.call(e):"";return t==r||t==i}function Te(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ae(e){return ke(e)?ce(e):function(e){if(!we(e))return W(e);var t=[];for(var n in Object(e))N.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}n.exports=function(e){return de(e,!0,!0)}}).call(this,n(120),n(619)(e))},1621:function(e,t,n){(function(e,n){var o="[object Arguments]",r="[object Map]",i="[object Object]",a="[object Set]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s[o]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s[r]=s["[object Number]"]=s[i]=s["[object RegExp]"]=s[a]=s["[object String]"]=s["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,f=u||d||Function("return this")(),p=t&&!t.nodeType&&t,h=p&&"object"==typeof n&&n&&!n.nodeType&&n,m=h&&h.exports===p,b=m&&u.process,g=function(){try{return b&&b.binding&&b.binding("util")}catch(e){}}(),v=g&&g.isTypedArray;function y(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}function w(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var O,S,k,E=Array.prototype,C=Function.prototype,T=Object.prototype,A=f["__core-js_shared__"],_=C.toString,j=T.hasOwnProperty,P=(O=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+O:"",N=T.toString,I=RegExp("^"+_.call(j).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=m?f.Buffer:void 0,q=f.Symbol,L=f.Uint8Array,M=T.propertyIsEnumerable,D=E.splice,z=q?q.toStringTag:void 0,B=Object.getOwnPropertySymbols,F=R?R.isBuffer:void 0,H=(S=Object.keys,k=Object,function(e){return S(k(e))}),U=ge(f,"DataView"),W=ge(f,"Map"),G=ge(f,"Promise"),V=ge(f,"Set"),K=ge(f,"WeakMap"),$=ge(Object,"create"),Y=xe(U),Z=xe(W),X=xe(G),Q=xe(V),J=xe(K),ee=q?q.prototype:void 0,te=ee?ee.valueOf:void 0;function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function oe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new re;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new oe(e);this.size=t.size}function le(e,t){var n=ke(e),o=!n&&Se(e),r=!n&&!o&&Ee(e),i=!n&&!o&&!r&&je(e),a=n||o||r||i,l=a?function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}(e.length,String):[],c=l.length;for(var s in e)!t&&!j.call(e,s)||a&&("length"==s||r&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||we(s,c))||l.push(s);return l}function ce(e,t){for(var n=e.length;n--;)if(Oe(e[n][0],t))return n;return-1}function se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=j.call(e,z),n=e[z];try{e[z]=void 0;var o=!0}catch(e){}var r=N.call(e);o&&(t?e[z]=n:delete e[z]);return r}(e):function(e){return N.call(e)}(e)}function ue(e){return _e(e)&&se(e)==o}function de(e,t,n,l,c){return e===t||(null==e||null==t||!_e(e)&&!_e(t)?e!=e&&t!=t:function(e,t,n,l,c,s){var u=ke(e),d=ke(t),f=u?"[object Array]":ye(e),p=d?"[object Array]":ye(t),h=(f=f==o?i:f)==i,m=(p=p==o?i:p)==i,b=f==p;if(b&&Ee(e)){if(!Ee(t))return!1;u=!0,h=!1}if(b&&!h)return s||(s=new ae),u||je(e)?he(e,t,n,l,c,s):function(e,t,n,o,i,l,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new L(e),new L(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Oe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var s=w;case a:var u=1&o;if(s||(s=x),e.size!=t.size&&!u)return!1;var d=c.get(e);if(d)return d==t;o|=2,c.set(e,t);var f=he(s(e),s(t),o,i,l,c);return c.delete(e),f;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,f,n,l,c,s);if(!(1&n)){var g=h&&j.call(e,"__wrapped__"),v=m&&j.call(t,"__wrapped__");if(g||v){var y=g?e.value():e,O=v?t.value():t;return s||(s=new ae),c(y,O,n,l,s)}}if(!b)return!1;return s||(s=new ae),function(e,t,n,o,r,i){var a=1&n,l=me(e),c=l.length,s=me(t).length;if(c!=s&&!a)return!1;var u=c;for(;u--;){var d=l[u];if(!(a?d in t:j.call(t,d)))return!1}var f=i.get(e);if(f&&i.get(t))return f==t;var p=!0;i.set(e,t),i.set(t,e);var h=a;for(;++u<c;){d=l[u];var m=e[d],b=t[d];if(o)var g=a?o(b,m,d,t,e,i):o(m,b,d,e,t,i);if(!(void 0===g?m===b||r(m,b,n,o,i):g)){p=!1;break}h||(h="constructor"==d)}if(p&&!h){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,l,c,s)}(e,t,n,l,de,c))}function fe(e){return!(!Ae(e)||function(e){return!!P&&P in e}(e))&&(Ce(e)?I:l).test(xe(e))}function pe(e){if(n=(t=e)&&t.constructor,o="function"==typeof n&&n.prototype||T,t!==o)return H(e);var t,n,o,r=[];for(var i in Object(e))j.call(e,i)&&"constructor"!=i&&r.push(i);return r}function he(e,t,n,o,r,i){var a=1&n,l=e.length,c=t.length;if(l!=c&&!(a&&c>l))return!1;var s=i.get(e);if(s&&i.get(t))return s==t;var u=-1,d=!0,f=2&n?new ie:void 0;for(i.set(e,t),i.set(t,e);++u<l;){var p=e[u],h=t[u];if(o)var m=a?o(h,p,u,t,e,i):o(p,h,u,e,t,i);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!y(t,(function(e,t){if(a=t,!f.has(a)&&(p===e||r(p,e,n,o,i)))return f.push(t);var a}))){d=!1;break}}else if(p!==h&&!r(p,h,n,o,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function me(e){return function(e,t,n){var o=t(e);return ke(e)?o:function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}(o,n(e))}(e,Pe,ve)}function be(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function ge(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}ne.prototype.clear=function(){this.__data__=$?$(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if($){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return j.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:j.call(t,e)},ne.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(e){var t=this.__data__,n=ce(t,e);return!(n<0)&&(n==t.length-1?t.pop():D.call(t,n,1),--this.size,!0)},oe.prototype.get=function(e){var t=this.__data__,n=ce(t,e);return n<0?void 0:t[n][1]},oe.prototype.has=function(e){return ce(this.__data__,e)>-1},oe.prototype.set=function(e,t){var n=this.__data__,o=ce(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(W||oe),string:new ne}},re.prototype.delete=function(e){var t=be(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return be(this,e).get(e)},re.prototype.has=function(e){return be(this,e).has(e)},re.prototype.set=function(e,t){var n=be(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},ie.prototype.add=ie.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ie.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new oe,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof oe){var o=n.__data__;if(!W||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new re(o)}return n.set(e,t),this.size=n.size,this};var ve=B?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}(B(e),(function(t){return M.call(e,t)})))}:function(){return[]},ye=se;function we(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function xe(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Oe(e,t){return e===t||e!=e&&t!=t}(U&&"[object DataView]"!=ye(new U(new ArrayBuffer(1)))||W&&ye(new W)!=r||G&&"[object Promise]"!=ye(G.resolve())||V&&ye(new V)!=a||K&&"[object WeakMap]"!=ye(new K))&&(ye=function(e){var t=se(e),n=t==i?e.constructor:void 0,o=n?xe(n):"";if(o)switch(o){case Y:return"[object DataView]";case Z:return r;case X:return"[object Promise]";case Q:return a;case J:return"[object WeakMap]"}return t});var Se=ue(function(){return arguments}())?ue:function(e){return _e(e)&&j.call(e,"callee")&&!M.call(e,"callee")},ke=Array.isArray;var Ee=F||function(){return!1};function Ce(e){if(!Ae(e))return!1;var t=se(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ae(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function _e(e){return null!=e&&"object"==typeof e}var je=v?function(e){return function(t){return e(t)}}(v):function(e){return _e(e)&&Te(e.length)&&!!s[se(e)]};function Pe(e){return null!=(t=e)&&Te(t.length)&&!Ce(t)?le(e):pe(e);var t}n.exports=function(e,t){return de(e,t)}}).call(this,n(120),n(619)(e))},1622:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1}}(o||(o={})),t.default=o},1623:function(e,t,n){"use strict";var o=Object.prototype.toString;t.a=function(e){return o.call(e)}},1624:function(e,t,n){"use strict";t.a=function(e,t){return e===t||e!=e&&t!=t}},1625:function(e,t,n){"use strict";var o=n(1604),r=Object(o.a)(Object.keys,Object);t.a=r},1626:function(e,t,n){"use strict";var o=n(0),r=n.n(o).a.createContext();t.a=r},1627:function(e,t,n){"use strict";(function(e){function o(t,n){var o,r,i,a=void 0!==(o=void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:e).document&&o.document.attachEvent;if(!a){var l=(i=o.requestAnimationFrame||o.mozRequestAnimationFrame||o.webkitRequestAnimationFrame||function(e){return o.setTimeout(e,20)},function(e){return i(e)}),c=(r=o.cancelAnimationFrame||o.mozCancelAnimationFrame||o.webkitCancelAnimationFrame||o.clearTimeout,function(e){return r(e)}),s=function(e){var t=e.__resizeTriggers__,n=t.firstElementChild,o=t.lastElementChild,r=n.firstElementChild;o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},u=function(e){if(!(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)){var t=this;s(this),this.__resizeRAF__&&c(this.__resizeRAF__),this.__resizeRAF__=l((function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}},d=!1,f="",p="animationstart",h="Webkit Moz O ms".split(" "),m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),b=o.document.createElement("fakeelement");if(void 0!==b.style.animationName&&(d=!0),!1===d)for(var g=0;g<h.length;g++)if(void 0!==b.style[h[g]+"AnimationName"]){f="-"+h[g].toLowerCase()+"-",p=m[g],d=!0;break}var v="resizeanim",y="@"+f+"keyframes "+v+" { from { opacity: 0; } to { opacity: 0; } } ",w=f+"animation: 1ms "+v+"; "}return{addResizeListener:function(e,n){if(a)e.attachEvent("onresize",n);else{if(!e.__resizeTriggers__){var r=e.ownerDocument,i=o.getComputedStyle(e);i&&"static"==i.position&&(e.style.position="relative"),function(e){if(!e.getElementById("detectElementResize")){var n=(y||"")+".resize-triggers { "+(w||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',o=e.head||e.getElementsByTagName("head")[0],r=e.createElement("style");r.id="detectElementResize",r.type="text/css",null!=t&&r.setAttribute("nonce",t),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(e.createTextNode(n)),o.appendChild(r)}}(r),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=r.createElement("div")).className="resize-triggers";var l='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>';if(window.trustedTypes){var c=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return l}});e.__resizeTriggers__.innerHTML=c.createHTML("")}else e.__resizeTriggers__.innerHTML=l;e.appendChild(e.__resizeTriggers__),s(e),e.addEventListener("scroll",u,!0),p&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName==v&&s(e)},e.__resizeTriggers__.addEventListener(p,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(n)}},removeResizeListener:function(e,t){if(a)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",u,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(p,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}n.d(t,"a",(function(){return o}))}).call(this,n(120))},1632:function(e,t,n){"use strict";var o=function(e,t){return null==e?void 0:e[t]},r=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.a=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1635:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n(38);var o=n(33),r=n(1);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=new window.Core.Annotations.StickyAnnotation;i.InReplyTo=e.Id,i.X=e.X,i.Y=e.Y,i.PageNumber=e.PageNumber,i.Subject="Sticky Note",i.Author=r.a.getCurrentUser(),i.State=t,i.StateModel="Marked"===t||"Unmarked"===t?"Marked":"Review",i.Hidden=!0,i.enableSkipAutoLink();var a=r.a.getDisplayAuthor(i.Author,n),l=o.a.t("option.state.".concat(t.toLowerCase())),c="".concat(l," ").concat(o.a.t("option.state.setBy")," ").concat(a);return i.setContents(c),i}},1636:function(e,t,n){"use strict";n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(115),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(305),c=n(15),s=n.n(c);n(1648);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function f(e){var t=e.children.replace(/\n$/,""),n=e.panelWidth,i=e.linesToBreak,a=e.renderRichText,c=e.richTextStyle,d=e.resize,f=e.style,p=e.comment,h=void 0!==p&&p,m=e.beforeContent,b=void 0===m?function(){}:m,g=u(Object(o.useState)(!1),2),v=g[0],y=g[1],w=u(Object(o.useState)(null),2),x=w[0],O=w[1],S=u(Object(o.useState)(null),2),k=S[0],E=S[1],C=u(Object(o.useState)(!1),2),T=C[0],A=C[1],_=r.a.useRef(null),j=Object(l.a)().t,P=v?t:t.substring(0,k*i),N=j(v?"action.showLess":"action.showMore"),I=s()("note-text-preview",{"preview-comment":h});return Object(o.useEffect)((function(){var e=_.current.clientWidth;O(e)}),[n]),Object(o.useLayoutEffect)((function(){var e=function(e){var t=document.createElement("canvas").getContext("2d");return t.font="13px sans-serif",t.measureText(e).width}(t),n=e/t.length,o=Math.floor(x/n);E(o),A(e/x>i)}),[t,x]),r.a.createElement("div",{className:I,ref:_,style:f,"aria-live":"polite"},b(),a&&c?a(P,c,0):P," ",T&&r.a.createElement("button",{className:"note-text-preview-prompt",onClick:function(e){e.stopPropagation(),y(!v),d&&d()}},N))}f.propTypes={panelWidth:a.a.number,linesToBreak:a.a.number,renderRichText:a.a.func,richTextStyle:a.a.any,resize:a.a.func,style:a.a.any,comment:a.a.bool,beforeContent:a.a.func},t.a=f},1637:function(e,t,n){"use strict";var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=(n(1652),{renderContent:a.a.func,children:a.a.node}),c=function(e){var t=e.renderContent?e.renderContent():e.children;return r.a.createElement("h4",{className:"ListSeparator"},t)};c.propTypes=l;var s=r.a.memo(c);t.a=s},1638:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(38),n(34),n(27),n(12),n(44),n(31),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(11),n(29),n(13);var o=n(0),r=n(6),i=n(2),a=n.n(i),l=n(5),c=n(3),s=n(4);function u(e){return(u="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 d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=function(e,t,n){return{icon:t,label:"option.state.".concat(e.toLowerCase()),title:"option.state.".concat(e.toLowerCase()),option:e,dataElement:n}},m=[h("Accepted","icon-annotation-status-accepted","noteStateFlyoutAcceptedOption"),h("Rejected","icon-annotation-status-rejected","noteStateFlyoutRejectedOption"),h("Cancelled","icon-annotation-status-cancelled","noteStateFlyoutCancelledOption"),h("Completed","icon-annotation-status-completed","noteStateFlyoutCompletedOption"),h("None","icon-annotation-status-none","noteStateFlyoutNoneOption"),h("Marked","icon-annotation-status-marked","noteStateFlyoutMarkedOption"),h("Unmarked","icon-annotation-status-unmarked","noteStateFlyoutUnmarkedOption")],b=function(e){var t=e.noteId,n=e.handleStateChange,i=void 0===n?function(){}:n,a=e.isMultiSelectMode,u=void 0!==a&&a,d=Object(r.d)(),p=u?"":"-".concat(t),h="".concat(l.a.NOTE_STATE_FLYOUT).concat(p),b=Object(r.e)((function(e){return s.a.getFlyout(e,h)}));return Object(o.useLayoutEffect)((function(){var e={dataElement:h,className:"NoteStateFlyout",items:m.map((function(e){return f(f({},e),{},{onClick:function(){return t=e.option,void i(t);var t}})}))};d(b?c.a.updateFlyout(e.dataElement,e):c.a.addFlyout(e))}),[i]),null};b.propTypes={noteId:a.a.string,handleStateChange:a.a.func,isMultiSelectMode:a.a.bool};var g=b;t.a=g},1639:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(50),n(62);var o=function(e,t){var n=e.getDisplayModeObject().getVisiblePages().includes(t.PageNumber);return e.isContinuousDisplayMode()||!e.isContinuousDisplayMode()&&n}},1643:function(e,t,n){"use strict";t.a=function(){return!1}},1644:function(e,t,n){"use strict";t.a=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t}},1645:function(e,t,n){"use strict";(function(e){var o=n(1646),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=r&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===r?o.a.Buffer:void 0,l=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,o=l?l(n):new e.constructor(n);return e.copy(o),o}}).call(this,n(1725)(e))},1646:function(e,t,n){"use strict";var o=n(1726),r="object"==typeof self&&self&&self.Object===Object&&self,i=o.a||r||Function("return this")();t.a=i},1647:function(e,t,n){"use strict";var o=n(1632),r=n(1624),i=Object.prototype.hasOwnProperty;t.a=function(e,t,n){var a=e[t];i.call(e,t)&&Object(r.a)(a,n)&&(void 0!==n||t in e)||Object(o.a)(e,t,n)}},1648:function(e,t,n){var o=n(35),r=n(1649);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1649:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".note-text-preview{font-size:13px;color:var(--gray-7);padding-inline-end:var(--note-content-right-padding-width);-webkit-user-select:text!important;-moz-user-select:text!important;user-select:text!important;cursor:text;height:-moz-fit-content;height:fit-content;width:calc(100% - var(--note-content-right-padding-width));overflow:hidden}.note-text-preview>*{pointer-events:all}.preview-comment{color:var(--text-color)}.note-text-preview-prompt{cursor:pointer;color:var(--primary-button);text-decoration:underline;position:relative;pointer-events:auto;background:transparent;border:none;padding:0}.note-text-preview-prompt:hover{color:var(--primary-button-hover)}.trackedChangePopup .note-text-preview{max-height:400px;overflow-y:auto;width:calc(100% + var(--note-content-right-padding-width))}",""])},1650:function(e,t,n){"use strict";var o=n(55),r=n(134),i=n(270),a=n(71),l=n(146),c=n(86),s=n(312),u=n(628),d=n(112),f=i&&i.prototype;if(o({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){f.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=s(this,l("Promise")),n=c(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!r&&c(i)){var p=l("Promise").prototype.finally;f.finally!==p&&d(f,"finally",p,{unsafe:!0})}},1651:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".bookmark-outline-panel{display:flex;padding-inline-start:var(--padding);padding-inline-end:var(--padding-small)}.bookmark-outline-control-button{width:auto}.bookmark-outline-control-button span{color:inherit}.bookmark-outline-control-button,.bookmark-outline-control-button.disabled,.bookmark-outline-control-button[disabled]{color:var(--secondary-button-text)}.bookmark-outline-control-button.disabled,.bookmark-outline-control-button[disabled]{opacity:.5}.bookmark-outline-control-button.disabled span,.bookmark-outline-control-button[disabled] span{color:inherit}.bookmark-outline-control-button:not(.disabled):active,.bookmark-outline-control-button:not(.disabled):hover,.bookmark-outline-control-button:not([disabled]):active,.bookmark-outline-control-button:not([disabled]):hover{color:var(--secondary-button-hover)}.bookmark-outline-panel-header{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;padding:var(--padding-tiny);border-bottom:1px solid var(--divider)}.bookmark-outline-panel-header .header-title{font-size:16px}.bookmark-outline-row{flex-grow:1;overflow-y:auto}.msg-no-bookmark-outline{color:var(--placeholder-text);text-align:center}.bookmark-outline-single-container{display:flex;flex-flow:row nowrap;align-items:flex-start;border-radius:4px;margin-inline-start:2px;margin-inline-end:2px}.bookmark-outline-single-container.default{padding:var(--padding-tiny);border:1px solid transparent}.bookmark-outline-single-container.default.hover,.bookmark-outline-single-container.default:hover,.bookmark-outline-single-container.default[focus-within]{cursor:pointer}.bookmark-outline-single-container.default.hover,.bookmark-outline-single-container.default:focus-within,.bookmark-outline-single-container.default:hover{cursor:pointer}.bookmark-outline-single-container.default.hover .bookmark-outline-more-button,.bookmark-outline-single-container.default:hover .bookmark-outline-more-button,.bookmark-outline-single-container.default[focus-within] .bookmark-outline-more-button{display:flex;background-color:transparent}.bookmark-outline-single-container.default.hover .bookmark-outline-more-button,.bookmark-outline-single-container.default:focus-within .bookmark-outline-more-button,.bookmark-outline-single-container.default:hover .bookmark-outline-more-button{display:flex;background-color:transparent}.bookmark-outline-single-container.default[focus-within]{border-color:transparent}.bookmark-outline-single-container.default:focus-within{border-color:transparent}.bookmark-outline-single-container.default .bookmark-outline-label-row{overflow:hidden}.bookmark-outline-single-container.default.focus-visible,.bookmark-outline-single-container.default:focus-visible{outline:var(--focus-visible-outline)!important}.bookmark-outline-single-container.editing{background-color:var(--faded-component-background);padding:var(--padding-medium) 20px}.bookmark-outline-single-container.editing.focus-visible,.bookmark-outline-single-container.editing:focus-visible{outline:var(--focus-visible-outline)!important}.bookmark-outline-single-container.preview{display:inline-flex;margin-top:0;padding:var(--padding-small);background-color:var(--component-background);box-shadow:0 0 3px var(--note-box-shadow)}.bookmark-outline-single-container .bookmark-outline-checkbox{flex-grow:0;flex-shrink:0;margin-top:2px;margin-bottom:2px;margin-inline-end:var(--padding-small)}.bookmark-outline-single-container .bookmark-outline-label-row{flex-grow:1;flex-shrink:1;display:flex;flex-flow:row wrap;align-items:flex-start;position:relative;overflow:hidden}.bookmark-outline-single-container .bookmark-outline-label{font-weight:600;flex-grow:1;flex-shrink:1;margin-bottom:var(--padding-small)}.bookmark-outline-single-container .bookmark-outline-input,.bookmark-outline-single-container .bookmark-outline-text{flex-grow:1;flex-shrink:1;flex-basis:calc(100% - 22px);margin-top:2px;margin-bottom:2px}.bookmark-outline-single-container .bookmark-text-input{margin-inline-start:var(--padding-large)}.bookmark-outline-single-container .bookmark-outline-input{color:var(--text-color);width:calc(100% - var(--padding-large));padding:var(--padding-small);border:1px solid var(--border)}.bookmark-outline-single-container .bookmark-outline-input:focus{border-color:var(--outline-color)}.bookmark-outline-single-container .bookmark-outline-input::-moz-placeholder{color:var(--placeholder-text)}.bookmark-outline-single-container .bookmark-outline-input::placeholder{color:var(--placeholder-text)}.bookmark-outline-single-container .bookmark-outline-more-button{display:none;flex-grow:0;flex-shrink:0;width:16px;height:16px;margin:2px 2px 2px var(--padding-tiny)}.bookmark-outline-single-container .bookmark-outline-more-button .Icon{width:14px;height:14px}.bookmark-outline-single-container .bookmark-outline-more-button.icon-only:hover:not(:disabled):not(.disabled){box-shadow:none;outline:solid 1px var(--hover-border)}.bookmark-outline-single-container .bookmark-outline-more-button[focus-within].icon-only{border:none;box-shadow:none}.bookmark-outline-single-container .bookmark-outline-more-button:focus-within.icon-only{border:none;box-shadow:none}.bookmark-outline-single-container .bookmark-outline-more-button[focus-within] .Icon{color:var(--focus-border)}.bookmark-outline-single-container .bookmark-outline-more-button:focus-within .Icon{color:var(--focus-border)}.bookmark-outline-single-container .bookmark-outline-editing-controls{padding:2px;flex-basis:100%;display:flex;flex-flow:row wrap;justify-content:flex-end;align-items:center;margin-top:var(--padding-medium)}.bookmark-outline-single-container .bookmark-outline-cancel-button,.bookmark-outline-single-container .bookmark-outline-save-button{width:auto;padding:6px var(--padding)}.bookmark-outline-single-container .bookmark-outline-cancel-button{color:var(--secondary-button-text)}.bookmark-outline-single-container .bookmark-outline-cancel-button:hover{color:var(--secondary-button-hover)}.bookmark-outline-single-container .bookmark-outline-save-button{color:var(--primary-button-text);background-color:var(--primary-button);margin-inline-start:var(--padding-tiny);border-radius:4px}.bookmark-outline-single-container .bookmark-outline-save-button:hover{background-color:var(--primary-button-hover)}.bookmark-outline-single-container .bookmark-outline-save-button.disabled,.bookmark-outline-single-container .bookmark-outline-save-button:disabled{background-color:var(--primary-button)!important;opacity:.5}.bookmark-outline-single-container .bookmark-outline-save-button.disabled span,.bookmark-outline-single-container .bookmark-outline-save-button:disabled span{color:var(--primary-button-text)}.bookmark-outline-footer{border-top:1.5px solid var(--gray-4);padding-top:var(--padding-medium);padding-bottom:var(--padding-medium);display:flex;justify-content:center;align-items:center}.bookmark-outline-footer .add-new-button .Icon{width:14px;height:14px;margin-inline-end:var(--padding-tiny);color:inherit;fill:currentColor}.bookmark-outline-footer .add-new-button.disabled .Icon.disabled,.bookmark-outline-footer .add-new-button.disabled .Icon.disabled path,.bookmark-outline-footer .add-new-button[disabled] .Icon.disabled,.bookmark-outline-footer .add-new-button[disabled] .Icon.disabled path{color:inherit;fill:currentColor}.bookmark-outline-footer .multi-selection-button{width:auto;padding:7px}.bookmark-outline-footer .multi-selection-button .Icon{width:18px;height:18px}.bookmark-outline-footer .multi-selection-button:not(:first-child){margin-inline-start:var(--padding-tiny)}.bookmark-outline-footer .multi-selection-button:hover{background-color:transparent}.bookmark-outline-footer .multi-selection-button.disabled:hover,.bookmark-outline-footer .multi-selection-button:disabled:hover{box-shadow:none}",""])},1652:function(e,t,n){var o=n(35),r=n(1653);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1653:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.ListSeparator{margin-top:16px;margin-bottom:8px;font-family:Lato;font-weight:500;color:var(--list-separator-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1654:function(e,t,n){"use strict";n.d(t,"a",(function(){return ae})),n.d(t,"b",(function(){return le})),n.d(t,"c",(function(){return Ee}));var o=n(465),r=n.n(o),i=n(466),a=n.n(i),l=n(1564),c=n.n(l),s=n(1563),u=n.n(s),d=n(1566),f=n.n(d),p=n(1562),h=n.n(p),m=n(227),b=n.n(m),g=n(0),v=n(1576),y=n(1569),w=n.n(y),x=n(616);function O(e){var t=e.cellCount,n=e.cellSize,o=e.computeMetadataCallback,r=e.computeMetadataCallbackProps,i=e.nextCellsCount,a=e.nextCellSize,l=e.nextScrollToIndex,c=e.scrollToIndex,s=e.updateScrollOffsetForScrollToIndex;t===i&&("number"!=typeof n&&"number"!=typeof a||n===a)||(o(r),c>=0&&c===l&&s())}var S=n(469),k=n.n(S),E=function(){function e(t){var n=t.cellCount,o=t.cellSizeGetter,i=t.estimatedCellSize;r()(this,e),b()(this,"_cellSizeAndPositionData",{}),b()(this,"_lastMeasuredIndex",-1),b()(this,"_lastBatchedIndex",-1),b()(this,"_cellCount",void 0),b()(this,"_cellSizeGetter",void 0),b()(this,"_estimatedCellSize",void 0),this._cellSizeGetter=o,this._cellCount=n,this._estimatedCellSize=i}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(e){var t=e.cellCount,n=e.estimatedCellSize,o=e.cellSizeGetter;this._cellCount=t,this._estimatedCellSize=n,this._cellSizeGetter=o}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(e){if(e<0||e>=this._cellCount)throw Error("Requested index ".concat(e," is outside of range 0..").concat(this._cellCount));if(e>this._lastMeasuredIndex)for(var t=this.getSizeAndPositionOfLastMeasuredCell(),n=t.offset+t.size,o=this._lastMeasuredIndex+1;o<=e;o++){var r=this._cellSizeGetter({index:o});if(void 0===r||isNaN(r))throw Error("Invalid size returned for cell ".concat(o," of value ").concat(r));null===r?(this._cellSizeAndPositionData[o]={offset:n,size:0},this._lastBatchedIndex=e):(this._cellSizeAndPositionData[o]={offset:n,size:r},n+=r,this._lastMeasuredIndex=e)}return this._cellSizeAndPositionData[e]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var e=this.getSizeAndPositionOfLastMeasuredCell();return e.offset+e.size+(this._cellCount-this._lastMeasuredIndex-1)*this._estimatedCellSize}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;if(o<=0)return 0;var a,l=this.getSizeAndPositionOfCell(i),c=l.offset,s=c-o+l.size;switch(n){case"start":a=c;break;case"end":a=s;break;case"center":a=c-(o-l.size)/2;break;default:a=Math.max(s,Math.min(c,r))}var u=this.getTotalSize();return Math.max(0,Math.min(u-o,a))}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;if(0===this.getTotalSize())return{};var o=n+t,r=this._findNearestCell(n),i=this.getSizeAndPositionOfCell(r);n=i.offset+i.size;for(var a=r;n<o&&a<this._cellCount-1;)a++,n+=this.getSizeAndPositionOfCell(a).size;return{start:r,stop:a}}},{key:"resetCell",value:function(e){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,e-1)}},{key:"_binarySearch",value:function(e,t,n){for(;t<=e;){var o=t+Math.floor((e-t)/2),r=this.getSizeAndPositionOfCell(o).offset;if(r===n)return o;r<n?t=o+1:r>n&&(e=o-1)}return t>0?t-1:0}},{key:"_exponentialSearch",value:function(e,t){for(var n=1;e<this._cellCount&&this.getSizeAndPositionOfCell(e).offset<t;)e+=n,n*=2;return this._binarySearch(Math.min(e,this._cellCount-1),Math.floor(e/2),t)}},{key:"_findNearestCell",value:function(e){if(isNaN(e))throw Error("Invalid offset ".concat(e," specified"));e=Math.max(0,e);var t=this.getSizeAndPositionOfLastMeasuredCell(),n=Math.max(0,this._lastMeasuredIndex);return t.offset>=e?this._binarySearch(n,0,e):this._exponentialSearch(n,e)}}]),e}(),C=function(){return"undefined"!=typeof window&&window.chrome?16777100:15e5},T=function(){function e(t){var n=t.maxScrollSize,o=void 0===n?C():n,i=k()(t,["maxScrollSize"]);r()(this,e),b()(this,"_cellSizeAndPositionManager",void 0),b()(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new E(i),this._maxScrollSize=o}return a()(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(e){this._cellSizeAndPositionManager.configure(e)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize(),i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(r-o))}},{key:"getSizeAndPositionOfCell",value:function(e){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(e)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(e){var t=e.align,n=void 0===t?"auto":t,o=e.containerSize,r=e.currentOffset,i=e.targetIndex;r=this._safeOffsetToOffset({containerSize:o,offset:r});var a=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:n,containerSize:o,currentOffset:r,targetIndex:i});return this._offsetToSafeOffset({containerSize:o,offset:a})}},{key:"getVisibleCellRange",value:function(e){var t=e.containerSize,n=e.offset;return n=this._safeOffsetToOffset({containerSize:t,offset:n}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:t,offset:n})}},{key:"resetCell",value:function(e){this._cellSizeAndPositionManager.resetCell(e)}},{key:"_getOffsetPercentage",value:function(e){var t=e.containerSize,n=e.offset,o=e.totalSize;return o<=t?0:n/(o-t)}},{key:"_offsetToSafeOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:o});return Math.round(i*(r-t))}},{key:"_safeOffsetToOffset",value:function(e){var t=e.containerSize,n=e.offset,o=this._cellSizeAndPositionManager.getTotalSize(),r=this.getTotalSize();if(o===r)return n;var i=this._getOffsetPercentage({containerSize:t,offset:n,totalSize:r});return Math.round(i*(o-t))}}]),e}();function A(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={};return function(n){var o=n.callback,r=n.indices,i=Object.keys(r),a=!e||i.every((function(e){var t=r[e];return Array.isArray(t)?t.length>0:t>=0})),l=i.length!==Object.keys(t).length||i.some((function(e){var n=t[e],o=r[e];return Array.isArray(o)?n.join(",")!==o.join(","):n!==o}));t=r,a&&l&&o(r)}}function _(e){var t=e.cellSize,n=e.cellSizeAndPositionManager,o=e.previousCellsCount,r=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,l=e.previousSize,c=e.scrollOffset,s=e.scrollToAlignment,u=e.scrollToIndex,d=e.size,f=e.sizeJustIncreasedFromZero,p=e.updateScrollIndexCallback,h=n.getCellCount(),m=u>=0&&u<h;m&&(d!==l||f||!r||"number"==typeof t&&t!==r||s!==i||u!==a)?p(u):!m&&h>0&&(d<l||h<o)&&c>n.getTotalSize()-d&&p(h-1)}var j,P,N,I=n(1609),R=(j="undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).requestAnimationFrame||j.webkitRequestAnimationFrame||j.mozRequestAnimationFrame||j.oRequestAnimationFrame||j.msRequestAnimationFrame||function(e){return j.setTimeout(e,1e3/60)},q=j.cancelAnimationFrame||j.webkitCancelAnimationFrame||j.mozCancelAnimationFrame||j.oCancelAnimationFrame||j.msCancelAnimationFrame||function(e){j.clearTimeout(e)},L=R,M=q,D=function(e){return M(e.id)},z=function(e,t){var n;Promise.resolve().then((function(){n=Date.now()}));var o={id:L((function r(){Date.now()-n>=t?e.call():o.id=L(r)}))};return o};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var H="observed",U="requested",W=(N=P=function(e){function t(e){var n;r()(this,t),n=c()(this,u()(t).call(this,e)),b()(f()(n),"_onGridRenderedMemoizer",A()),b()(f()(n),"_onScrollMemoizer",A(!1)),b()(f()(n),"_deferredInvalidateColumnIndex",null),b()(f()(n),"_deferredInvalidateRowIndex",null),b()(f()(n),"_recomputeScrollLeftFlag",!1),b()(f()(n),"_recomputeScrollTopFlag",!1),b()(f()(n),"_horizontalScrollBarSize",0),b()(f()(n),"_verticalScrollBarSize",0),b()(f()(n),"_scrollbarPresenceChanged",!1),b()(f()(n),"_scrollingContainer",void 0),b()(f()(n),"_childrenToDisplay",void 0),b()(f()(n),"_columnStartIndex",void 0),b()(f()(n),"_columnStopIndex",void 0),b()(f()(n),"_rowStartIndex",void 0),b()(f()(n),"_rowStopIndex",void 0),b()(f()(n),"_renderedColumnStartIndex",0),b()(f()(n),"_renderedColumnStopIndex",0),b()(f()(n),"_renderedRowStartIndex",0),b()(f()(n),"_renderedRowStopIndex",0),b()(f()(n),"_initialScrollTop",void 0),b()(f()(n),"_initialScrollLeft",void 0),b()(f()(n),"_disablePointerEventsTimeoutId",void 0),b()(f()(n),"_styleCache",{}),b()(f()(n),"_cellCache",{}),b()(f()(n),"_debounceScrollEndedCallback",(function(){n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1,needToResetStyleCache:!1})})),b()(f()(n),"_invokeOnGridRenderedHelper",(function(){var e=n.props.onSectionRendered;n._onGridRenderedMemoizer({callback:e,indices:{columnOverscanStartIndex:n._columnStartIndex,columnOverscanStopIndex:n._columnStopIndex,columnStartIndex:n._renderedColumnStartIndex,columnStopIndex:n._renderedColumnStopIndex,rowOverscanStartIndex:n._rowStartIndex,rowOverscanStopIndex:n._rowStopIndex,rowStartIndex:n._renderedRowStartIndex,rowStopIndex:n._renderedRowStopIndex}})})),b()(f()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(f()(n),"_onScroll",(function(e){e.target===n._scrollingContainer&&n.handleScrollEvent(e.target)}));var o=new T({cellCount:e.columnCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.columnWidth)(n)},estimatedCellSize:t._getEstimatedColumnSize(e)}),i=new T({cellCount:e.rowCount,cellSizeGetter:function(n){return t._wrapSizeGetter(e.rowHeight)(n)},estimatedCellSize:t._getEstimatedRowSize(e)});return n.state={instanceProps:{columnSizeAndPositionManager:o,rowSizeAndPositionManager:i,prevColumnWidth:e.columnWidth,prevRowHeight:e.rowHeight,prevColumnCount:e.columnCount,prevRowCount:e.rowCount,prevIsScrolling:!0===e.isScrolling,prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow,scrollbarSize:0,scrollbarSizeMeasured:!1},isScrolling:!1,scrollDirectionHorizontal:1,scrollDirectionVertical:1,scrollLeft:0,scrollTop:0,scrollPositionChangeReason:null,needToResetStyleCache:!1},e.scrollToRow>0&&(n._initialScrollTop=n._getCalculatedScrollTop(e,n.state)),e.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(e,n.state)),n}return h()(t,e),a()(t,[{key:"getOffsetForCell",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?this.props.scrollToAlignment:t,o=e.columnIndex,r=void 0===o?this.props.scrollToColumn:o,i=e.rowIndex,a=void 0===i?this.props.scrollToRow:i,l=F({},this.props,{scrollToAlignment:n,scrollToColumn:r,scrollToRow:a});return{scrollLeft:this._getCalculatedScrollLeft(l),scrollTop:this._getCalculatedScrollTop(l)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(e){var t=e.scrollLeft,n=void 0===t?0:t,o=e.scrollTop,r=void 0===o?0:o;if(!(r<0)){this._debounceScrollEnded();var i=this.props,a=i.autoHeight,l=i.autoWidth,c=i.height,s=i.width,u=this.state.instanceProps,d=u.scrollbarSize,f=u.rowSizeAndPositionManager.getTotalSize(),p=u.columnSizeAndPositionManager.getTotalSize(),h=Math.min(Math.max(0,p-s+d),n),m=Math.min(Math.max(0,f-c+d),r);if(this.state.scrollLeft!==h||this.state.scrollTop!==m){var b={isScrolling:!0,scrollDirectionHorizontal:h!==this.state.scrollLeft?h>this.state.scrollLeft?1:-1:this.state.scrollDirectionHorizontal,scrollDirectionVertical:m!==this.state.scrollTop?m>this.state.scrollTop?1:-1:this.state.scrollDirectionVertical,scrollPositionChangeReason:H};a||(b.scrollTop=m),l||(b.scrollLeft=h),b.needToResetStyleCache=!1,this.setState(b)}this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:m,totalColumnsWidth:p,totalRowsHeight:f})}}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,t):t,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,n):n}},{key:"measureAllCells",value:function(){var e=this.props,t=e.columnCount,n=e.rowCount,o=this.state.instanceProps;o.columnSizeAndPositionManager.getSizeAndPositionOfCell(t-1),o.rowSizeAndPositionManager.getSizeAndPositionOfCell(n-1)}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.scrollToColumn,l=i.scrollToRow,c=this.state.instanceProps;c.columnSizeAndPositionManager.resetCell(n),c.rowSizeAndPositionManager.resetCell(r),this._recomputeScrollLeftFlag=a>=0&&(1===this.state.scrollDirectionHorizontal?n<=a:n>=a),this._recomputeScrollTopFlag=l>=0&&(1===this.state.scrollDirectionVertical?r<=l:r>=l),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(e){var t=e.columnIndex,n=e.rowIndex,o=this.props.columnCount,r=this.props;o>1&&void 0!==t&&this._updateScrollLeftForScrollToColumn(F({},r,{scrollToColumn:t})),void 0!==n&&this._updateScrollTopForScrollToRow(F({},r,{scrollToRow:n}))}},{key:"componentDidMount",value:function(){var e=this.props,n=e.getScrollbarSize,o=e.height,r=e.scrollLeft,i=e.scrollToColumn,a=e.scrollTop,l=e.scrollToRow,c=e.width,s=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),s.scrollbarSizeMeasured||this.setState((function(e){var t=F({},e,{needToResetStyleCache:!1});return t.instanceProps.scrollbarSize=n(),t.instanceProps.scrollbarSizeMeasured=!0,t})),"number"==typeof r&&r>=0||"number"==typeof a&&a>=0){var u=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:r,scrollTop:a});u&&(u.needToResetStyleCache=!1,this.setState(u))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var d=o>0&&c>0;i>=0&&d&&this._updateScrollLeftForScrollToColumn(),l>=0&&d&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:r||0,scrollTop:a||0,totalColumnsWidth:s.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:s.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(e,t){var n=this,o=this.props,r=o.autoHeight,i=o.autoWidth,a=o.columnCount,l=o.height,c=o.rowCount,s=o.scrollToAlignment,u=o.scrollToColumn,d=o.scrollToRow,f=o.width,p=this.state,h=p.scrollLeft,m=p.scrollPositionChangeReason,b=p.scrollTop,g=p.instanceProps;this._handleInvalidatedGridSize();var v=a>0&&0===e.columnCount||c>0&&0===e.rowCount;m===U&&(!i&&h>=0&&(h!==this._scrollingContainer.scrollLeft||v)&&(this._scrollingContainer.scrollLeft=h),!r&&b>=0&&(b!==this._scrollingContainer.scrollTop||v)&&(this._scrollingContainer.scrollTop=b));var y=(0===e.width||0===e.height)&&l>0&&f>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):_({cellSizeAndPositionManager:g.columnSizeAndPositionManager,previousCellsCount:e.columnCount,previousCellSize:e.columnWidth,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToColumn,previousSize:e.width,scrollOffset:h,scrollToAlignment:s,scrollToIndex:u,size:f,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollLeftForScrollToColumn(n.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):_({cellSizeAndPositionManager:g.rowSizeAndPositionManager,previousCellsCount:e.rowCount,previousCellSize:e.rowHeight,previousScrollToAlignment:e.scrollToAlignment,previousScrollToIndex:e.scrollToRow,previousSize:e.height,scrollOffset:b,scrollToAlignment:s,scrollToIndex:d,size:l,sizeJustIncreasedFromZero:y,updateScrollIndexCallback:function(){return n._updateScrollTopForScrollToRow(n.props)}}),this._invokeOnGridRenderedHelper(),h!==t.scrollLeft||b!==t.scrollTop){var w=g.rowSizeAndPositionManager.getTotalSize(),x=g.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:h,scrollTop:b,totalColumnsWidth:x,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&D(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoContainerWidth,n=e.autoHeight,o=e.autoWidth,r=e.className,i=e.containerProps,a=e.containerRole,l=e.containerStyle,c=e.height,s=e.id,u=e.noContentRenderer,d=e.role,f=e.style,p=e.tabIndex,h=e.width,m=this.state,b=m.instanceProps,v=m.needToResetStyleCache,y=this._isScrolling(),O={boxSizing:"border-box",direction:"ltr",height:n?"auto":c,position:"relative",width:o?"auto":h,WebkitOverflowScrolling:"touch",willChange:"transform"};v&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var S=b.columnSizeAndPositionManager.getTotalSize(),k=b.rowSizeAndPositionManager.getTotalSize(),E=k>c?b.scrollbarSize:0,C=S>h?b.scrollbarSize:0;C===this._horizontalScrollBarSize&&E===this._verticalScrollBarSize||(this._horizontalScrollBarSize=C,this._verticalScrollBarSize=E,this._scrollbarPresenceChanged=!0),O.overflowX=S+E<=h?"hidden":"auto",O.overflowY=k+C<=c?"hidden":"auto";var T=this._childrenToDisplay,A=0===T.length&&c>0&&h>0;return g.createElement("div",w()({ref:this._setScrollingContainerRef},i,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Object(x.default)("ReactVirtualized__Grid",r),id:s,onScroll:this._onScroll,role:d,style:F({},O,{},f),tabIndex:p}),T.length>0&&g.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:a,style:F({width:t?"auto":S,height:k,maxWidth:S,maxHeight:k,overflow:"hidden",pointerEvents:y?"none":"",position:"relative"},l)},T),A&&u())}},{key:"_calculateChildrenToRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,n=e.cellRenderer,o=e.cellRangeRenderer,r=e.columnCount,i=e.deferredMeasurementCache,a=e.height,l=e.overscanColumnCount,c=e.overscanIndicesGetter,s=e.overscanRowCount,u=e.rowCount,d=e.width,f=e.isScrollingOptOut,p=t.scrollDirectionHorizontal,h=t.scrollDirectionVertical,m=t.instanceProps,b=this._initialScrollTop>0?this._initialScrollTop:t.scrollTop,g=this._initialScrollLeft>0?this._initialScrollLeft:t.scrollLeft,v=this._isScrolling(e,t);if(this._childrenToDisplay=[],a>0&&d>0){var y=m.columnSizeAndPositionManager.getVisibleCellRange({containerSize:d,offset:g}),w=m.rowSizeAndPositionManager.getVisibleCellRange({containerSize:a,offset:b}),x=m.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:d,offset:g}),O=m.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:a,offset:b});this._renderedColumnStartIndex=y.start,this._renderedColumnStopIndex=y.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var S=c({direction:"horizontal",cellCount:r,overscanCellsCount:l,scrollDirection:p,startIndex:"number"==typeof y.start?y.start:0,stopIndex:"number"==typeof y.stop?y.stop:-1}),k=c({direction:"vertical",cellCount:u,overscanCellsCount:s,scrollDirection:h,startIndex:"number"==typeof w.start?w.start:0,stopIndex:"number"==typeof w.stop?w.stop:-1}),E=S.overscanStartIndex,C=S.overscanStopIndex,T=k.overscanStartIndex,A=k.overscanStopIndex;if(i){if(!i.hasFixedHeight())for(var _=T;_<=A;_++)if(!i.has(_,0)){E=0,C=r-1;break}if(!i.hasFixedWidth())for(var j=E;j<=C;j++)if(!i.has(0,j)){T=0,A=u-1;break}}this._childrenToDisplay=o({cellCache:this._cellCache,cellRenderer:n,columnSizeAndPositionManager:m.columnSizeAndPositionManager,columnStartIndex:E,columnStopIndex:C,deferredMeasurementCache:i,horizontalOffsetAdjustment:x,isScrolling:v,isScrollingOptOut:f,parent:this,rowSizeAndPositionManager:m.rowSizeAndPositionManager,rowStartIndex:T,rowStopIndex:A,scrollLeft:g,scrollTop:b,styleCache:this._styleCache,verticalOffsetAdjustment:O,visibleColumnIndices:y,visibleRowIndices:w}),this._columnStartIndex=E,this._columnStopIndex=C,this._rowStartIndex=T,this._rowStopIndex=A}}},{key:"_debounceScrollEnded",value:function(){var e=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&D(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=z(this._debounceScrollEndedCallback,e)}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex&&"number"==typeof this._deferredInvalidateRowIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t})}}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalColumnsWidth,i=e.totalRowsHeight;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:i,scrollLeft:n,scrollTop:o,scrollWidth:r})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_isScrolling",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return Object.hasOwnProperty.call(e,"isScrolling")?Boolean(e.isScrolling):Boolean(t.isScrolling)}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var e=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,e({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(e){var n=e.scrollLeft,o=e.scrollTop,r=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:n,scrollTop:o});r&&(r.needToResetStyleCache=!1,this.setState(r))}},{key:"_getCalculatedScrollLeft",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollLeft(e,n)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=t._getScrollLeftForScrollToColumnStateUpdate(e,n);o&&(o.needToResetStyleCache=!1,this.setState(o))}},{key:"_getCalculatedScrollTop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state;return t._getCalculatedScrollTop(e,n)}},{key:"_resetStyleCache",value:function(){var e=this._styleCache,t=this._cellCache,n=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var o=this._rowStartIndex;o<=this._rowStopIndex;o++)for(var r=this._columnStartIndex;r<=this._columnStopIndex;r++){var i="".concat(o,"-").concat(r);this._styleCache[i]=e[i],n&&(this._cellCache[i]=t[i])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state,o=t._getScrollTopForScrollToRowStateUpdate(e,n);o&&(o.needToResetStyleCache=!1,this.setState(o))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var o={};0===e.columnCount&&0!==n.scrollLeft||0===e.rowCount&&0!==n.scrollTop?(o.scrollLeft=0,o.scrollTop=0):(e.scrollLeft!==n.scrollLeft&&e.scrollToColumn<0||e.scrollTop!==n.scrollTop&&e.scrollToRow<0)&&Object.assign(o,t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}));var r,i,a=n.instanceProps;return o.needToResetStyleCache=!1,e.columnWidth===a.prevColumnWidth&&e.rowHeight===a.prevRowHeight||(o.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:e.columnCount,estimatedCellSize:t._getEstimatedColumnSize(e),cellSizeGetter:t._wrapSizeGetter(e.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:e.rowCount,estimatedCellSize:t._getEstimatedRowSize(e),cellSizeGetter:t._wrapSizeGetter(e.rowHeight)}),0!==a.prevColumnCount&&0!==a.prevRowCount||(a.prevColumnCount=0,a.prevRowCount=0),e.autoHeight&&!1===e.isScrolling&&!0===a.prevIsScrolling&&Object.assign(o,{isScrolling:!1}),O({cellCount:a.prevColumnCount,cellSize:"number"==typeof a.prevColumnWidth?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.columnCount,nextCellSize:"number"==typeof e.columnWidth?e.columnWidth:null,nextScrollToIndex:e.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){r=t._getScrollLeftForScrollToColumnStateUpdate(e,n)}}),O({cellCount:a.prevRowCount,cellSize:"number"==typeof a.prevRowHeight?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:e,nextCellsCount:e.rowCount,nextCellSize:"number"==typeof e.rowHeight?e.rowHeight:null,nextScrollToIndex:e.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){i=t._getScrollTopForScrollToRowStateUpdate(e,n)}}),a.prevColumnCount=e.columnCount,a.prevColumnWidth=e.columnWidth,a.prevIsScrolling=!0===e.isScrolling,a.prevRowCount=e.rowCount,a.prevRowHeight=e.rowHeight,a.prevScrollToColumn=e.scrollToColumn,a.prevScrollToRow=e.scrollToRow,a.scrollbarSize=e.getScrollbarSize(),void 0===a.scrollbarSize?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,o.instanceProps=a,F({},o,{},r,{},i)}},{key:"_getEstimatedColumnSize",value:function(e){return"number"==typeof e.columnWidth?e.columnWidth:e.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(e){return"number"==typeof e.rowHeight?e.rowHeight:e.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(e){var t=e.prevState,n=e.scrollLeft,o=e.scrollTop,r={scrollPositionChangeReason:U};return"number"==typeof n&&n>=0&&(r.scrollDirectionHorizontal=n>t.scrollLeft?1:-1,r.scrollLeft=n),"number"==typeof o&&o>=0&&(r.scrollDirectionVertical=o>t.scrollTop?1:-1,r.scrollTop=o),"number"==typeof n&&n>=0&&n!==t.scrollLeft||"number"==typeof o&&o>=0&&o!==t.scrollTop?r:{}}},{key:"_wrapSizeGetter",value:function(e){return"function"==typeof e?e:function(){return e}}},{key:"_getCalculatedScrollLeft",value:function(e,t){var n=e.columnCount,o=e.height,r=e.scrollToAlignment,i=e.scrollToColumn,a=e.width,l=t.scrollLeft,c=t.instanceProps;if(n>0){var s=n-1,u=i<0?s:Math.min(s,i),d=c.rowSizeAndPositionManager.getTotalSize(),f=c.scrollbarSizeMeasured&&d>o?c.scrollbarSize:0;return c.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:a-f,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(e,n){var o=n.scrollLeft,r=t._getCalculatedScrollLeft(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:r,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(e,t){var n=e.height,o=e.rowCount,r=e.scrollToAlignment,i=e.scrollToRow,a=e.width,l=t.scrollTop,c=t.instanceProps;if(o>0){var s=o-1,u=i<0?s:Math.min(s,i),d=c.columnSizeAndPositionManager.getTotalSize(),f=c.scrollbarSizeMeasured&&d>a?c.scrollbarSize:0;return c.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:r,containerSize:n-f,currentOffset:l,targetIndex:u})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(e,n){var o=n.scrollTop,r=t._getCalculatedScrollTop(e,n);return"number"==typeof r&&r>=0&&o!==r?t._getScrollToPositionStateUpdate({prevState:n,scrollLeft:-1,scrollTop:r}):{}}}]),t}(g.PureComponent),b()(P,"propTypes",null),N);b()(W,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:function(e){for(var t=e.cellCache,n=e.cellRenderer,o=e.columnSizeAndPositionManager,r=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,l=e.horizontalOffsetAdjustment,c=e.isScrolling,s=e.isScrollingOptOut,u=e.parent,d=e.rowSizeAndPositionManager,f=e.rowStartIndex,p=e.rowStopIndex,h=e.styleCache,m=e.verticalOffsetAdjustment,b=e.visibleColumnIndices,g=e.visibleRowIndices,v=[],y=o.areOffsetsAdjusted()||d.areOffsetsAdjusted(),w=!c&&!y,x=f;x<=p;x++)for(var O=d.getSizeAndPositionOfCell(x),S=r;S<=i;S++){var k=o.getSizeAndPositionOfCell(S),E=S>=b.start&&S<=b.stop&&x>=g.start&&x<=g.stop,C="".concat(x,"-").concat(S),T=void 0;w&&h[C]?T=h[C]:a&&!a.has(x,S)?T={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(T={height:O.size,left:k.offset+l,position:"absolute",top:O.offset+m,width:k.size},h[C]=T);var A={columnIndex:S,isScrolling:c,isVisible:E,key:C,parent:u,rowIndex:x,style:T},_=void 0;!s&&!c||l||m?_=n(A):(t[C]||(t[C]=n(A)),_=t[C]),null!=_&&!1!==_&&v.push(_)}return v},containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:I.default,noContentRenderer:function(){return null},onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:function(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return 1===o?{overscanStartIndex:Math.max(0,r),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i)}},overscanRowCount:10,role:"grid",scrollingResetTimeInterval:150,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1}),Object(v.polyfill)(W);var G=W;function V(e){var t=e.cellCount,n=e.overscanCellsCount,o=e.scrollDirection,r=e.startIndex,i=e.stopIndex;return n=Math.max(1,n),1===o?{overscanStartIndex:Math.max(0,r-1),overscanStopIndex:Math.min(t-1,i+n)}:{overscanStartIndex:Math.max(0,r-n),overscanStopIndex:Math.min(t-1,i+1)}}var K,$;function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var Z=($=K=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"state",{scrollToColumn:0,scrollToRow:0,instanceProps:{prevScrollToColumn:0,prevScrollToRow:0}}),b()(f()(n),"_columnStartIndex",0),b()(f()(n),"_columnStopIndex",0),b()(f()(n),"_rowStartIndex",0),b()(f()(n),"_rowStopIndex",0),b()(f()(n),"_onKeyDown",(function(e){var t=n.props,o=t.columnCount,r=t.disabled,i=t.mode,a=t.rowCount;if(!r){var l=n._getScrollState(),c=l.scrollToColumn,s=l.scrollToRow,u=n._getScrollState(),d=u.scrollToColumn,f=u.scrollToRow;switch(e.key){case"ArrowDown":f="cells"===i?Math.min(f+1,a-1):Math.min(n._rowStopIndex+1,a-1);break;case"ArrowLeft":d="cells"===i?Math.max(d-1,0):Math.max(n._columnStartIndex-1,0);break;case"ArrowRight":d="cells"===i?Math.min(d+1,o-1):Math.min(n._columnStopIndex+1,o-1);break;case"ArrowUp":f="cells"===i?Math.max(f-1,0):Math.max(n._rowStartIndex-1,0)}d===c&&f===s||(e.preventDefault(),n._updateScrollState({scrollToColumn:d,scrollToRow:f}))}})),b()(f()(n),"_onSectionRendered",(function(e){var t=e.columnStartIndex,o=e.columnStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;n._columnStartIndex=t,n._columnStopIndex=o,n._rowStartIndex=r,n._rowStopIndex=i})),n}return h()(t,e),a()(t,[{key:"setScrollIndexes",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow;this.setState({scrollToRow:n,scrollToColumn:t})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.children,o=this._getScrollState(),r=o.scrollToColumn,i=o.scrollToRow;return g.createElement("div",{className:t,onKeyDown:this._onKeyDown},n({onSectionRendered:this._onSectionRendered,scrollToColumn:r,scrollToRow:i}))}},{key:"_getScrollState",value:function(){return this.props.isControlled?this.props:this.state}},{key:"_updateScrollState",value:function(e){var t=e.scrollToColumn,n=e.scrollToRow,o=this.props,r=o.isControlled,i=o.onScrollToChange;"function"==typeof i&&i({scrollToColumn:t,scrollToRow:n}),r||this.setState({scrollToColumn:t,scrollToRow:n})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.isControlled?{}:e.scrollToColumn!==t.instanceProps.prevScrollToColumn||e.scrollToRow!==t.instanceProps.prevScrollToRow?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{scrollToColumn:e.scrollToColumn,scrollToRow:e.scrollToRow,instanceProps:{prevScrollToColumn:e.scrollToColumn,prevScrollToRow:e.scrollToRow}}):{}}}]),t}(g.PureComponent),b()(K,"propTypes",null),$);b()(Z,"defaultProps",{disabled:!1,isControlled:!1,mode:"edges",scrollToColumn:0,scrollToRow:0}),Object(v.polyfill)(Z);var X,Q,J=n(1627);function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ne=(Q=X=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"state",{height:n.props.defaultHeight||0,width:n.props.defaultWidth||0}),b()(f()(n),"_parentNode",void 0),b()(f()(n),"_autoSizer",void 0),b()(f()(n),"_window",void 0),b()(f()(n),"_detectElementResize",void 0),b()(f()(n),"_onResize",(function(){var e=n.props,t=e.disableHeight,o=e.disableWidth,r=e.onResize;if(n._parentNode){var i=n._parentNode.offsetHeight||0,a=n._parentNode.offsetWidth||0,l=(n._window||window).getComputedStyle(n._parentNode)||{},c=parseInt(l.paddingLeft,10)||0,s=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,f=i-u-d,p=a-c-s;(!t&&n.state.height!==f||!o&&n.state.width!==p)&&(n.setState({height:i-u-d,width:a-c-s}),r({height:i,width:a}))}})),b()(f()(n),"_setRef",(function(e){n._autoSizer=e})),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._window=this._autoSizer.parentNode.ownerDocument.defaultView,this._detectElementResize=Object(J.a)(e,this._window),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.disableHeight,r=e.disableWidth,i=e.style,a=this.state,l=a.height,c=a.width,s={overflow:"visible"},u={};return o||(s.height=0,u.height=l),r||(s.width=0,u.width=c),g.createElement("div",{className:n,ref:this._setRef,style:te({},s,{},i)},t(u))}}]),t}(g.Component),b()(X,"propTypes",null),Q);b()(ne,"defaultProps",{onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}});var oe,re,ie=n(119),ae=(re=oe=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"_child",void 0),b()(f()(n),"_measure",(function(){var e=n.props,t=e.cache,o=e.columnIndex,r=void 0===o?0:o,i=e.parent,a=e.rowIndex,l=void 0===a?n.props.index||0:a,c=n._getCellMeasurements(),s=c.height,u=c.width;s===t.getHeight(l,r)&&u===t.getWidth(l,r)||(t.set(l,r,u,s),i&&"function"==typeof i.recomputeGridSize&&i.recomputeGridSize({columnIndex:r,rowIndex:l}))})),b()(f()(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("CellMeasurer registerChild expects to be passed Element or null"),n._child=e,e&&n._maybeMeasureCell()})),n}return h()(t,e),a()(t,[{key:"componentDidMount",value:function(){this._maybeMeasureCell()}},{key:"componentDidUpdate",value:function(){this._maybeMeasureCell()}},{key:"render",value:function(){var e=this.props.children;return"function"==typeof e?e({measure:this._measure,registerChild:this._registerChild}):e}},{key:"_getCellMeasurements",value:function(){var e=this.props.cache,t=this._child||Object(ie.findDOMNode)(this);if(t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){var n=t.style.width,o=t.style.height;e.hasFixedWidth()||(t.style.width="auto"),e.hasFixedHeight()||(t.style.height="auto");var r=Math.ceil(t.offsetHeight),i=Math.ceil(t.offsetWidth);return n&&(t.style.width=n),o&&(t.style.height=o),{height:r,width:i}}return{height:0,width:0}}},{key:"_maybeMeasureCell",value:function(){var e=this.props,t=e.cache,n=e.columnIndex,o=void 0===n?0:n,r=e.parent,i=e.rowIndex,a=void 0===i?this.props.index||0:i;if(!t.has(a,o)){var l=this._getCellMeasurements(),c=l.height,s=l.width;t.set(a,o,s,c),r&&"function"==typeof r.invalidateCellSizeAfterRender&&r.invalidateCellSizeAfterRender({columnIndex:o,rowIndex:a})}}}]),t}(g.PureComponent),b()(oe,"propTypes",null),re);b()(ae,"__internalCellMeasurerFlag",!1);var le=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r()(this,e),b()(this,"_cellHeightCache",{}),b()(this,"_cellWidthCache",{}),b()(this,"_columnWidthCache",{}),b()(this,"_rowHeightCache",{}),b()(this,"_defaultHeight",void 0),b()(this,"_defaultWidth",void 0),b()(this,"_minHeight",void 0),b()(this,"_minWidth",void 0),b()(this,"_keyMapper",void 0),b()(this,"_hasFixedHeight",void 0),b()(this,"_hasFixedWidth",void 0),b()(this,"_columnCount",0),b()(this,"_rowCount",0),b()(this,"columnWidth",(function(e){var n=e.index,o=t._keyMapper(0,n);return void 0!==t._columnWidthCache[o]?t._columnWidthCache[o]:t._defaultWidth})),b()(this,"rowHeight",(function(e){var n=e.index,o=t._keyMapper(n,0);return void 0!==t._rowHeightCache[o]?t._rowHeightCache[o]:t._defaultHeight}));var o=n.defaultHeight,i=n.defaultWidth,a=n.fixedHeight,l=n.fixedWidth,c=n.keyMapper,s=n.minHeight,u=n.minWidth;this._hasFixedHeight=!0===a,this._hasFixedWidth=!0===l,this._minHeight=s||0,this._minWidth=u||0,this._keyMapper=c||ce,this._defaultHeight=Math.max(this._minHeight,"number"==typeof o?o:30),this._defaultWidth=Math.max(this._minWidth,"number"==typeof i?i:100)}return a()(e,[{key:"clear",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);delete this._cellHeightCache[n],delete this._cellWidthCache[n],this._updateCachedColumnAndRowSizes(e,t)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]?Math.max(this._minHeight,this._cellHeightCache[n]):this._defaultHeight}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var n=this._keyMapper(e,t);return void 0!==this._cellWidthCache[n]?Math.max(this._minWidth,this._cellWidthCache[n]):this._defaultWidth}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._keyMapper(e,t);return void 0!==this._cellHeightCache[n]}},{key:"set",value:function(e,t,n,o){var r=this._keyMapper(e,t);t>=this._columnCount&&(this._columnCount=t+1),e>=this._rowCount&&(this._rowCount=e+1),this._cellHeightCache[r]=o,this._cellWidthCache[r]=n,this._updateCachedColumnAndRowSizes(e,t)}},{key:"_updateCachedColumnAndRowSizes",value:function(e,t){if(!this._hasFixedWidth){for(var n=0,o=0;o<this._rowCount;o++)n=Math.max(n,this.getWidth(o,t));var r=this._keyMapper(0,t);this._columnWidthCache[r]=n}if(!this._hasFixedHeight){for(var i=0,a=0;a<this._columnCount;a++)i=Math.max(i,this.getHeight(e,a));var l=this._keyMapper(e,0);this._rowHeightCache[l]=i}}},{key:"defaultHeight",get:function(){return this._defaultHeight}},{key:"defaultWidth",get:function(){return this._defaultWidth}}]),e}();function ce(e,t){return"".concat(e,"-").concat(t)}function se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var de="observed",fe="requested",pe=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"state",{isScrolling:!1,scrollLeft:0,scrollTop:0}),b()(f()(n),"_calculateSizeAndPositionDataOnNextUpdate",!1),b()(f()(n),"_onSectionRenderedMemoizer",A()),b()(f()(n),"_onScrollMemoizer",A(!1)),b()(f()(n),"_invokeOnSectionRenderedHelper",(function(){var e=n.props,t=e.cellLayoutManager,o=e.onSectionRendered;n._onSectionRenderedMemoizer({callback:o,indices:{indices:t.getLastRenderedIndices()}})})),b()(f()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(f()(n),"_updateScrollPositionForScrollToCell",(function(){var e=n.props,t=e.cellLayoutManager,o=e.height,r=e.scrollToAlignment,i=e.scrollToCell,a=e.width,l=n.state,c=l.scrollLeft,s=l.scrollTop;if(i>=0){var u=t.getScrollPositionForCell({align:r,cellIndex:i,height:o,scrollLeft:c,scrollTop:s,width:a});u.scrollLeft===c&&u.scrollTop===s||n._setScrollPosition(u)}})),b()(f()(n),"_onScroll",(function(e){if(e.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var t=n.props,o=t.cellLayoutManager,r=t.height,i=t.isScrollingChange,a=t.width,l=n._scrollbarSize,c=o.getTotalSize(),s=c.height,u=c.width,d=Math.max(0,Math.min(u-a+l,e.target.scrollLeft)),f=Math.max(0,Math.min(s-r+l,e.target.scrollTop));if(n.state.scrollLeft!==d||n.state.scrollTop!==f){var p=e.cancelable?de:fe;n.state.isScrolling||i(!0),n.setState({isScrolling:!0,scrollLeft:d,scrollPositionChangeReason:p,scrollTop:f})}n._invokeOnScrollMemoizer({scrollLeft:d,scrollTop:f,totalWidth:u,totalHeight:s})}})),n._scrollbarSize=Object(I.default)(),void 0===n._scrollbarSize?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return h()(t,e),a()(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var e=this.props,t=e.cellLayoutManager,n=e.scrollLeft,o=e.scrollToCell,r=e.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=Object(I.default)(),this._scrollbarSizeMeasured=!0,this.setState({})),o>=0?this._updateScrollPositionForScrollToCell():(n>=0||r>=0)&&this._setScrollPosition({scrollLeft:n,scrollTop:r}),this._invokeOnSectionRenderedHelper();var i=t.getTotalSize(),a=i.height,l=i.width;this._invokeOnScrollMemoizer({scrollLeft:n||0,scrollTop:r||0,totalHeight:a,totalWidth:l})}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,o=n.height,r=n.scrollToAlignment,i=n.scrollToCell,a=n.width,l=this.state,c=l.scrollLeft,s=l.scrollPositionChangeReason,u=l.scrollTop;s===fe&&(c>=0&&c!==t.scrollLeft&&c!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=c),u>=0&&u!==t.scrollTop&&u!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=u)),o===e.height&&r===e.scrollToAlignment&&i===e.scrollToCell&&a===e.width||this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var e=this.props,t=e.autoHeight,n=e.cellCount,o=e.cellLayoutManager,r=e.className,i=e.height,a=e.horizontalOverscanSize,l=e.id,c=e.noContentRenderer,s=e.style,u=e.verticalOverscanSize,d=e.width,f=this.state,p=f.isScrolling,h=f.scrollLeft,m=f.scrollTop;(this._lastRenderedCellCount!==n||this._lastRenderedCellLayoutManager!==o||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=n,this._lastRenderedCellLayoutManager=o,this._calculateSizeAndPositionDataOnNextUpdate=!1,o.calculateSizeAndPositionData());var b=o.getTotalSize(),v=b.height,y=b.width,w=Math.max(0,h-a),O=Math.max(0,m-u),S=Math.min(y,h+d+a),k=Math.min(v,m+i+u),E=i>0&&d>0?o.cellRenderers({height:k-O,isScrolling:p,width:S-w,x:w,y:O}):[],C={boxSizing:"border-box",direction:"ltr",height:t?"auto":i,position:"relative",WebkitOverflowScrolling:"touch",width:d,willChange:"transform"},T=v>i?this._scrollbarSize:0,A=y>d?this._scrollbarSize:0;return C.overflowX=y+T<=d?"hidden":"auto",C.overflowY=v+A<=i?"hidden":"auto",g.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(x.default)("ReactVirtualized__Collection",r),id:l,onScroll:this._onScroll,role:"grid",style:ue({},C,{},s),tabIndex:0},n>0&&g.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:v,maxHeight:v,maxWidth:y,overflow:"hidden",pointerEvents:p?"none":"",width:y}},E),0===n&&c())}},{key:"_enablePointerEventsAfterDelay",value:function(){var e=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout((function(){(0,e.props.isScrollingChange)(!1),e._disablePointerEventsTimeoutId=null,e.setState({isScrolling:!1})}),150)}},{key:"_invokeOnScrollMemoizer",value:function(e){var t=this,n=e.scrollLeft,o=e.scrollTop,r=e.totalHeight,i=e.totalWidth;this._onScrollMemoizer({callback:function(e){var n=e.scrollLeft,o=e.scrollTop,a=t.props,l=a.height;(0,a.onScroll)({clientHeight:l,clientWidth:a.width,scrollHeight:r,scrollLeft:n,scrollTop:o,scrollWidth:i})},indices:{scrollLeft:n,scrollTop:o}})}},{key:"_setScrollPosition",value:function(e){var t=e.scrollLeft,n=e.scrollTop,o={scrollPositionChangeReason:fe};t>=0&&(o.scrollLeft=t),n>=0&&(o.scrollTop=n),(t>=0&&t!==this.state.scrollLeft||n>=0&&n!==this.state.scrollTop)&&this.setState(o)}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 0!==e.cellCount||0===t.scrollLeft&&0===t.scrollTop?e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop?e.scrollTop:t.scrollTop,scrollPositionChangeReason:fe}:null:{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:fe}}}]),t}(g.PureComponent);b()(pe,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0}),pe.propTypes={},Object(v.polyfill)(pe);var he=pe,me=function(){function e(t){var n=t.height,o=t.width,i=t.x,a=t.y;r()(this,e),this.height=n,this.width=o,this.x=i,this.y=a,this._indexMap={},this._indices=[]}return a()(e,[{key:"addCellIndex",value:function(e){var t=e.index;this._indexMap[t]||(this._indexMap[t]=!0,this._indices.push(t))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),be=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100;r()(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return a()(e,[{key:"getCellIndices",value:function(e){var t=e.height,n=e.width,o=e.x,r=e.y,i={};return this.getSections({height:t,width:n,x:o,y:r}).forEach((function(e){return e.getCellIndices().forEach((function(e){i[e]=e}))})),Object.keys(i).map((function(e){return i[e]}))}},{key:"getCellMetadata",value:function(e){var t=e.index;return this._cellMetadata[t]}},{key:"getSections",value:function(e){for(var t=e.height,n=e.width,o=e.x,r=e.y,i=Math.floor(o/this._sectionSize),a=Math.floor((o+n-1)/this._sectionSize),l=Math.floor(r/this._sectionSize),c=Math.floor((r+t-1)/this._sectionSize),s=[],u=i;u<=a;u++)for(var d=l;d<=c;d++){var f="".concat(u,".").concat(d);this._sections[f]||(this._sections[f]=new me({height:this._sectionSize,width:this._sectionSize,x:u*this._sectionSize,y:d*this._sectionSize})),s.push(this._sections[f])}return s}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var e=this;return Object.keys(this._sections).map((function(t){return e._sections[t].toString()}))}},{key:"registerCell",value:function(e){var t=e.cellMetadatum,n=e.index;this._cellMetadata[n]=t,this.getSections(t).forEach((function(e){return e.addCellIndex({index:n})}))}}]),e}();function ge(e){var t=e.align,n=void 0===t?"auto":t,o=e.cellOffset,r=e.cellSize,i=e.containerSize,a=e.currentOffset,l=o,c=l-i+r;switch(n){case"start":return l;case"end":return c;case"center":return l-(i-r)/2;default:return Math.max(c,Math.min(l,a))}}var ve=function(e){function t(e,n){var o;return r()(this,t),(o=c()(this,u()(t).call(this,e,n)))._cellMetadata=[],o._lastRenderedCellIndices=[],o._cellCache=[],o._isScrollingChange=o._isScrollingChange.bind(f()(o)),o._setCollectionViewRef=o._setCollectionViewRef.bind(f()(o)),o}return h()(t,e),a()(t,[{key:"forceUpdate",value:function(){void 0!==this._collectionView&&this._collectionView.forceUpdate()}},{key:"recomputeCellSizesAndPositions",value:function(){this._cellCache=[],this._collectionView.recomputeCellSizesAndPositions()}},{key:"render",value:function(){var e=w()({},this.props);return g.createElement(he,w()({cellLayoutManager:this,isScrollingChange:this._isScrollingChange,ref:this._setCollectionViewRef},e))}},{key:"calculateSizeAndPositionData",value:function(){var e=this.props,t=function(e){for(var t=e.cellCount,n=e.cellSizeAndPositionGetter,o=e.sectionSize,r=[],i=new be(o),a=0,l=0,c=0;c<t;c++){var s=n({index:c});if(null==s.height||isNaN(s.height)||null==s.width||isNaN(s.width)||null==s.x||isNaN(s.x)||null==s.y||isNaN(s.y))throw Error("Invalid metadata returned for cell ".concat(c,":\n x:").concat(s.x,", y:").concat(s.y,", width:").concat(s.width,", height:").concat(s.height));a=Math.max(a,s.y+s.height),l=Math.max(l,s.x+s.width),r[c]=s,i.registerCell({cellMetadatum:s,index:c})}return{cellMetadata:r,height:a,sectionManager:i,width:l}}({cellCount:e.cellCount,cellSizeAndPositionGetter:e.cellSizeAndPositionGetter,sectionSize:e.sectionSize});this._cellMetadata=t.cellMetadata,this._sectionManager=t.sectionManager,this._height=t.height,this._width=t.width}},{key:"getLastRenderedIndices",value:function(){return this._lastRenderedCellIndices}},{key:"getScrollPositionForCell",value:function(e){var t=e.align,n=e.cellIndex,o=e.height,r=e.scrollLeft,i=e.scrollTop,a=e.width,l=this.props.cellCount;if(n>=0&&n<l){var c=this._cellMetadata[n];r=ge({align:t,cellOffset:c.x,cellSize:c.width,containerSize:a,currentOffset:r,targetIndex:n}),i=ge({align:t,cellOffset:c.y,cellSize:c.height,containerSize:o,currentOffset:i,targetIndex:n})}return{scrollLeft:r,scrollTop:i}}},{key:"getTotalSize",value:function(){return{height:this._height,width:this._width}}},{key:"cellRenderers",value:function(e){var t=this,n=e.height,o=e.isScrolling,r=e.width,i=e.x,a=e.y,l=this.props,c=l.cellGroupRenderer,s=l.cellRenderer;return this._lastRenderedCellIndices=this._sectionManager.getCellIndices({height:n,width:r,x:i,y:a}),c({cellCache:this._cellCache,cellRenderer:s,cellSizeAndPositionGetter:function(e){var n=e.index;return t._sectionManager.getCellMetadata({index:n})},indices:this._lastRenderedCellIndices,isScrolling:o})}},{key:"_isScrollingChange",value:function(e){e||(this._cellCache=[])}},{key:"_setCollectionViewRef",value:function(e){this._collectionView=e}}]),t}(g.PureComponent);b()(ve,"defaultProps",{"aria-label":"grid",cellGroupRenderer:function(e){var t=e.cellCache,n=e.cellRenderer,o=e.cellSizeAndPositionGetter,r=e.indices,i=e.isScrolling;return r.map((function(e){var r=o({index:e}),a={index:e,isScrolling:i,key:e,style:{height:r.height,left:r.x,position:"absolute",top:r.y,width:r.width}};return i?(e in t||(t[e]=n(a)),t[e]):n(a)})).filter((function(e){return!!e}))}}),ve.propTypes={};var ye=function(e){function t(e,n){var o;return r()(this,t),(o=c()(this,u()(t).call(this,e,n)))._registerChild=o._registerChild.bind(f()(o)),o}return h()(t,e),a()(t,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.columnMaxWidth,o=t.columnMinWidth,r=t.columnCount,i=t.width;n===e.columnMaxWidth&&o===e.columnMinWidth&&r===e.columnCount&&i===e.width||this._registeredChild&&this._registeredChild.recomputeGridSize()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.columnMaxWidth,o=e.columnMinWidth,r=e.columnCount,i=e.width,a=o||1,l=n?Math.min(n,i):i,c=i/r;return c=Math.max(a,c),c=Math.min(l,c),c=Math.floor(c),t({adjustedWidth:Math.min(i,c*r),columnWidth:c,getColumnWidth:function(){return c},registerChild:this._registerChild})}},{key:"_registerChild",value:function(e){if(e&&"function"!=typeof e.recomputeGridSize)throw Error("Unexpected child type registered; only Grid/MultiGrid children are supported.");this._registeredChild=e,this._registeredChild&&this._registeredChild.recomputeGridSize()}}]),t}(g.PureComponent);ye.propTypes={};var we=n(1634),xe=n.n(we),Oe=function(e){function t(e,n){var o;return r()(this,t),(o=c()(this,u()(t).call(this,e,n)))._loadMoreRowsMemoizer=A(),o._onRowsRendered=o._onRowsRendered.bind(f()(o)),o._registerChild=o._registerChild.bind(f()(o)),o}return h()(t,e),a()(t,[{key:"resetLoadMoreRowsCache",value:function(e){this._loadMoreRowsMemoizer=A(),e&&this._doStuff(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"render",value:function(){return(0,this.props.children)({onRowsRendered:this._onRowsRendered,registerChild:this._registerChild})}},{key:"_loadUnloadedRanges",value:function(e){var t=this,n=this.props.loadMoreRows;e.forEach((function(e){var o=n(e);o&&o.then((function(){var n,o,r,i,a;n={lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:e.startIndex,stopIndex:e.stopIndex},o=n.lastRenderedStartIndex,r=n.lastRenderedStopIndex,i=n.startIndex,a=n.stopIndex,i>r||a<o||t._registeredChild&&function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="function"==typeof e.recomputeGridSize?e.recomputeGridSize:e.recomputeRowHeights;n?n.call(e,t):e.forceUpdate()}(t._registeredChild,t._lastRenderedStartIndex)}))}))}},{key:"_onRowsRendered",value:function(e){var t=e.startIndex,n=e.stopIndex;this._lastRenderedStartIndex=t,this._lastRenderedStopIndex=n,this._doStuff(t,n)}},{key:"_doStuff",value:function(e,t){var n,o=this,r=this.props,i=r.isRowLoaded,a=r.minimumBatchSize,l=r.rowCount,c=r.threshold,s=function(e){for(var t=e.isRowLoaded,n=e.minimumBatchSize,o=e.rowCount,r=e.startIndex,i=e.stopIndex,a=[],l=null,c=null,s=r;s<=i;s++){t({index:s})?null!==c&&(a.push({startIndex:l,stopIndex:c}),l=c=null):(c=s,null===l&&(l=s))}if(null!==c){for(var u=Math.min(Math.max(c,l+n-1),o-1),d=c+1;d<=u&&!t({index:d});d++)c=d;a.push({startIndex:l,stopIndex:c})}if(a.length)for(var f=a[0];f.stopIndex-f.startIndex+1<n&&f.startIndex>0;){var p=f.startIndex-1;if(t({index:p}))break;f.startIndex=p}return a}({isRowLoaded:i,minimumBatchSize:a,rowCount:l,startIndex:Math.max(0,e-c),stopIndex:Math.min(l-1,t+c)}),u=(n=[]).concat.apply(n,xe()(s.map((function(e){return[e.startIndex,e.stopIndex]}))));this._loadMoreRowsMemoizer({callback:function(){o._loadUnloadedRanges(s)},indices:{squashedUnloadedRanges:u}})}},{key:"_registerChild",value:function(e){this._registeredChild=e}}]),t}(g.PureComponent);b()(Oe,"defaultProps",{minimumBatchSize:10,rowCount:0,threshold:15}),Oe.propTypes={};var Se,ke,Ee=(ke=Se=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"Grid",void 0),b()(f()(n),"_cellRenderer",(function(e){var t=e.parent,o=e.rowIndex,r=e.style,i=e.isScrolling,a=e.isVisible,l=e.key,c=n.props.rowRenderer,s=Object.getOwnPropertyDescriptor(r,"width");return s&&s.writable&&(r.width="100%"),c({index:o,style:r,isScrolling:i,isVisible:a,key:l,parent:t})})),b()(f()(n),"_setRef",(function(e){n.Grid=e})),b()(f()(n),"_onScroll",(function(e){var t=e.clientHeight,o=e.scrollHeight,r=e.scrollTop;(0,n.props.onScroll)({clientHeight:t,scrollHeight:o,scrollTop:r})})),b()(f()(n),"_onSectionRendered",(function(e){var t=e.rowOverscanStartIndex,o=e.rowOverscanStopIndex,r=e.rowStartIndex,i=e.rowStopIndex;(0,n.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:o,startIndex:r,stopIndex:i})})),n}return h()(t,e),a()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n,columnIndex:0}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e,columnIndex:0})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.noRowsRenderer,o=e.scrollToIndex,r=e.width,i=Object(x.default)("ReactVirtualized__List",t);return g.createElement(G,w()({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:i,columnWidth:r,columnCount:1,noContentRenderer:n,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:o}))}}]),t}(g.PureComponent),b()(Se,"propTypes",null),ke);b()(Ee,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:V,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});var Ce=n(306),Te=n.n(Ce);var Ae={ge:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var a=t+n>>>1;r(e[a],o)>=0?(i=a,n=a-1):t=a+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>=o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},gt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=n+1;t<=n;){var a=t+n>>>1;r(e[a],o)>0?(i=a,n=a-1):t=a+1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=n+1;t<=n;){var i=t+n>>>1;e[i]>o?(r=i,n=i-1):t=i+1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},lt:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var a=t+n>>>1;r(e[a],o)<0?(i=a,t=a+1):n=a-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},le:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(var i=t-1;t<=n;){var a=t+n>>>1;r(e[a],o)<=0?(i=a,t=a+1):n=a-1}return i}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(var r=t-1;t<=n;){var i=t+n>>>1;e[i]<=o?(r=i,t=i+1):n=i-1}return r}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)},eq:function(e,t,n,o,r){return"function"==typeof n?function(e,t,n,o,r){for(;t<=n;){var i=t+n>>>1,a=r(e[i],o);if(0===a)return i;a<=0?t=i+1:n=i-1}return-1}(e,void 0===o?0:0|o,void 0===r?e.length-1:0|r,t,n):function(e,t,n,o){for(;t<=n;){var r=t+n>>>1,i=e[r];if(i===o)return r;i<=o?t=r+1:n=r-1}return-1}(e,void 0===n?0:0|n,void 0===o?e.length-1:0|o,t)}};function _e(e,t,n,o,r){this.mid=e,this.left=t,this.right=n,this.leftPoints=o,this.rightPoints=r,this.count=(t?t.count:0)+(n?n.count:0)+o.length}var je=_e.prototype;function Pe(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function Ne(e,t){var n=Fe(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function Ie(e,t){var n=e.intervals([]);n.push(t),Ne(e,n)}function Re(e,t){var n=e.intervals([]),o=n.indexOf(t);return o<0?0:(n.splice(o,1),Ne(e,n),1)}function qe(e,t,n){for(var o=0;o<e.length&&e[o][0]<=t;++o){var r=n(e[o]);if(r)return r}}function Le(e,t,n){for(var o=e.length-1;o>=0&&e[o][1]>=t;--o){var r=n(e[o]);if(r)return r}}function Me(e,t){for(var n=0;n<e.length;++n){var o=t(e[n]);if(o)return o}}function De(e,t){return e-t}function ze(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function Be(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function Fe(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(De);var o=t[t.length>>1],r=[],i=[],a=[];for(n=0;n<e.length;++n){var l=e[n];l[1]<o?r.push(l):o<l[0]?i.push(l):a.push(l)}var c=a,s=a.slice();return c.sort(ze),s.sort(Be),new _e(o,Fe(r),Fe(i),c,s)}function He(e){this.root=e}je.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},je.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?Ie(this,e):this.left.insert(e):this.left=Fe([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?Ie(this,e):this.right.insert(e):this.right=Fe([e]);else{var n=Ae.ge(this.leftPoints,e,ze),o=Ae.ge(this.rightPoints,e,Be);this.leftPoints.splice(n,0,e),this.rightPoints.splice(o,0,e)}},je.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid)return this.left?4*(this.right?this.right.count:0)>3*(t-1)?Re(this,e):2===(i=this.left.remove(e))?(this.left=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(e[0]>this.mid)return this.right?4*(this.left?this.left.count:0)>3*(t-1)?Re(this,e):2===(i=this.right.remove(e))?(this.right=null,this.count-=1,1):(1===i&&(this.count-=1),i):0;if(1===this.count)return this.leftPoints[0]===e?2:0;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){for(var n=this,o=this.left;o.right;)n=o,o=o.right;if(n===this)o.right=this.right;else{var r=this.left,i=this.right;n.count-=o.count,n.right=o.left,o.left=r,o.right=i}Pe(this,o),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?Pe(this,this.left):Pe(this,this.right);return 1}for(r=Ae.ge(this.leftPoints,e,ze);r<this.leftPoints.length&&this.leftPoints[r][0]===e[0];++r)if(this.leftPoints[r]===e){this.count-=1,this.leftPoints.splice(r,1);for(i=Ae.ge(this.rightPoints,e,Be);i<this.rightPoints.length&&this.rightPoints[i][1]===e[1];++i)if(this.rightPoints[i]===e)return this.rightPoints.splice(i,1),1}return 0},je.queryPoint=function(e,t){if(e<this.mid){if(this.left)if(n=this.left.queryPoint(e,t))return n;return qe(this.leftPoints,e,t)}if(e>this.mid){var n;if(this.right)if(n=this.right.queryPoint(e,t))return n;return Le(this.rightPoints,e,t)}return Me(this.leftPoints,t)},je.queryInterval=function(e,t,n){var o;if(e<this.mid&&this.left&&(o=this.left.queryInterval(e,t,n)))return o;if(t>this.mid&&this.right&&(o=this.right.queryInterval(e,t,n)))return o;return t<this.mid?qe(this.leftPoints,t,n):e>this.mid?Le(this.rightPoints,e,n):Me(this.leftPoints,n)};var Ue=He.prototype;Ue.insert=function(e){this.root?this.root.insert(e):this.root=new _e(e[0],null,null,[e],[e])},Ue.remove=function(e){if(this.root){var t=this.root.remove(e);return 2===t&&(this.root=null),0!==t}return!1},Ue.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},Ue.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(Ue,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(Ue,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}});var We,Ge,Ve=function(){function e(){var t;r()(this,e),b()(this,"_columnSizeMap",{}),b()(this,"_intervalTree",t&&0!==t.length?new He(Fe(t)):new He(null)),b()(this,"_leftMap",{})}return a()(e,[{key:"estimateTotalHeight",value:function(e,t,n){var o=e-this.count;return this.tallestColumnSize+Math.ceil(o/t)*n}},{key:"range",value:function(e,t,n){var o=this;this._intervalTree.queryInterval(e,e+t,(function(e){var t=Te()(e,3),r=t[0],i=(t[1],t[2]);return n(i,o._leftMap[i],r)}))}},{key:"setPosition",value:function(e,t,n,o){this._intervalTree.insert([n,n+o,e]),this._leftMap[e]=t;var r=this._columnSizeMap,i=r[t];r[t]=void 0===i?n+o:Math.max(i,n+o)}},{key:"count",get:function(){return this._intervalTree.count}},{key:"shortestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=0===t?o:Math.min(t,o)}return t}},{key:"tallestColumnSize",get:function(){var e=this._columnSizeMap,t=0;for(var n in e){var o=e[n];t=Math.max(t,o)}return t}}]),e}();function Ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ke(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ke(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ye=(Ge=We=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"state",{isScrolling:!1,scrollTop:0}),b()(f()(n),"_debounceResetIsScrollingId",void 0),b()(f()(n),"_invalidateOnUpdateStartIndex",null),b()(f()(n),"_invalidateOnUpdateStopIndex",null),b()(f()(n),"_positionCache",new Ve),b()(f()(n),"_startIndex",null),b()(f()(n),"_startIndexMemoized",null),b()(f()(n),"_stopIndex",null),b()(f()(n),"_stopIndexMemoized",null),b()(f()(n),"_debounceResetIsScrollingCallback",(function(){n.setState({isScrolling:!1})})),b()(f()(n),"_setScrollingContainerRef",(function(e){n._scrollingContainer=e})),b()(f()(n),"_onScroll",(function(e){var t=n.props.height,o=e.currentTarget.scrollTop,r=Math.min(Math.max(0,n._getEstimatedTotalHeight()-t),o);o===r&&(n._debounceResetIsScrolling(),n.state.scrollTop!==r&&n.setState({isScrolling:!0,scrollTop:r}))})),n}return h()(t,e),a()(t,[{key:"clearCellPositions",value:function(){this._positionCache=new Ve,this.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.rowIndex;null===this._invalidateOnUpdateStartIndex?(this._invalidateOnUpdateStartIndex=t,this._invalidateOnUpdateStopIndex=t):(this._invalidateOnUpdateStartIndex=Math.min(this._invalidateOnUpdateStartIndex,t),this._invalidateOnUpdateStopIndex=Math.max(this._invalidateOnUpdateStopIndex,t))}},{key:"recomputeCellPositions",value:function(){var e=this._positionCache.count-1;this._positionCache=new Ve,this._populatePositionCache(0,e),this.forceUpdate()}},{key:"componentDidMount",value:function(){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback()}},{key:"componentDidUpdate",value:function(e,t){this._checkInvalidateOnUpdate(),this._invokeOnScrollCallback(),this._invokeOnCellsRenderedCallback(),this.props.scrollTop!==e.scrollTop&&this._debounceResetIsScrolling()}},{key:"componentWillUnmount",value:function(){this._debounceResetIsScrollingId&&D(this._debounceResetIsScrollingId)}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.autoHeight,r=n.cellCount,i=n.cellMeasurerCache,a=n.cellRenderer,l=n.className,c=n.height,s=n.id,u=n.keyMapper,d=n.overscanByPixels,f=n.role,p=n.style,h=n.tabIndex,m=n.width,v=n.rowDirection,y=this.state,w=y.isScrolling,O=y.scrollTop,S=[],k=this._getEstimatedTotalHeight(),E=this._positionCache.shortestColumnSize,C=this._positionCache.count,T=0;if(this._positionCache.range(Math.max(0,O-d),c+2*d,(function(n,o,r){var l;void 0===e?(T=n,e=n):(T=Math.min(T,n),e=Math.max(e,n)),S.push(a({index:n,isScrolling:w,key:u(n),parent:t,style:(l={height:i.getHeight(n)},b()(l,"ltr"===v?"left":"right",o),b()(l,"position","absolute"),b()(l,"top",r),b()(l,"width",i.getWidth(n)),l)}))})),E<O+c+d&&C<r)for(var A=Math.min(r-C,Math.ceil((O+c+d-E)/i.defaultHeight*m/i.defaultWidth)),_=C;_<C+A;_++)e=_,S.push(a({index:_,isScrolling:w,key:u(_),parent:this,style:{width:i.getWidth(_)}}));return this._startIndex=T,this._stopIndex=e,g.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Object(x.default)("ReactVirtualized__Masonry",l),id:s,onScroll:this._onScroll,role:f,style:$e({boxSizing:"border-box",direction:"ltr",height:o?"auto":c,overflowX:"hidden",overflowY:k<c?"hidden":"auto",position:"relative",width:m,WebkitOverflowScrolling:"touch",willChange:"transform"},p),tabIndex:h},g.createElement("div",{className:"ReactVirtualized__Masonry__innerScrollContainer",style:{width:"100%",height:k,maxWidth:"100%",maxHeight:k,overflow:"hidden",pointerEvents:w?"none":"",position:"relative"}},S))}},{key:"_checkInvalidateOnUpdate",value:function(){if("number"==typeof this._invalidateOnUpdateStartIndex){var e=this._invalidateOnUpdateStartIndex,t=this._invalidateOnUpdateStopIndex;this._invalidateOnUpdateStartIndex=null,this._invalidateOnUpdateStopIndex=null,this._populatePositionCache(e,t),this.forceUpdate()}}},{key:"_debounceResetIsScrolling",value:function(){var e=this.props.scrollingResetTimeInterval;this._debounceResetIsScrollingId&&D(this._debounceResetIsScrollingId),this._debounceResetIsScrollingId=z(this._debounceResetIsScrollingCallback,e)}},{key:"_getEstimatedTotalHeight",value:function(){var e=this.props,t=e.cellCount,n=e.cellMeasurerCache,o=e.width,r=Math.max(1,Math.floor(o/n.defaultWidth));return this._positionCache.estimateTotalHeight(t,r,n.defaultHeight)}},{key:"_invokeOnScrollCallback",value:function(){var e=this.props,t=e.height,n=e.onScroll,o=this.state.scrollTop;this._onScrollMemoized!==o&&(n({clientHeight:t,scrollHeight:this._getEstimatedTotalHeight(),scrollTop:o}),this._onScrollMemoized=o)}},{key:"_invokeOnCellsRenderedCallback",value:function(){this._startIndexMemoized===this._startIndex&&this._stopIndexMemoized===this._stopIndex||((0,this.props.onCellsRendered)({startIndex:this._startIndex,stopIndex:this._stopIndex}),this._startIndexMemoized=this._startIndex,this._stopIndexMemoized=this._stopIndex)}},{key:"_populatePositionCache",value:function(e,t){for(var n=this.props,o=n.cellMeasurerCache,r=n.cellPositioner,i=e;i<=t;i++){var a=r(i),l=a.left,c=a.top;this._positionCache.setPosition(i,l,c,o.getHeight(i))}}}],[{key:"getDerivedStateFromProps",value:function(e,t){return void 0!==e.scrollTop&&t.scrollTop!==e.scrollTop?{isScrolling:!0,scrollTop:e.scrollTop}:null}}]),t}(g.PureComponent),b()(We,"propTypes",null),Ge);function Ze(){}b()(Ye,"defaultProps",{autoHeight:!1,keyMapper:function(e){return e},onCellsRendered:Ze,onScroll:Ze,overscanByPixels:20,role:"grid",scrollingResetTimeInterval:150,style:{},tabIndex:0,rowDirection:"ltr"});Object(v.polyfill)(Ye);var Xe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r()(this,e),b()(this,"_cellMeasurerCache",void 0),b()(this,"_columnIndexOffset",void 0),b()(this,"_rowIndexOffset",void 0),b()(this,"columnWidth",(function(e){var n=e.index;t._cellMeasurerCache.columnWidth({index:n+t._columnIndexOffset})})),b()(this,"rowHeight",(function(e){var n=e.index;t._cellMeasurerCache.rowHeight({index:n+t._rowIndexOffset})}));var o=n.cellMeasurerCache,i=n.columnIndexOffset,a=void 0===i?0:i,l=n.rowIndexOffset,c=void 0===l?0:l;this._cellMeasurerCache=o,this._columnIndexOffset=a,this._rowIndexOffset=c}return a()(e,[{key:"clear",value:function(e,t){this._cellMeasurerCache.clear(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getHeight(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"getWidth",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.getWidth(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._cellMeasurerCache.has(e+this._rowIndexOffset,t+this._columnIndexOffset)}},{key:"set",value:function(e,t,n,o){this._cellMeasurerCache.set(e+this._rowIndexOffset,t+this._columnIndexOffset,n,o)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Je(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var et=function(e){function t(e,n){var o;r()(this,t),o=c()(this,u()(t).call(this,e,n)),b()(f()(o),"state",{scrollLeft:0,scrollTop:0,scrollbarSize:0,showHorizontalScrollbar:!1,showVerticalScrollbar:!1}),b()(f()(o),"_deferredInvalidateColumnIndex",null),b()(f()(o),"_deferredInvalidateRowIndex",null),b()(f()(o),"_bottomLeftGridRef",(function(e){o._bottomLeftGrid=e})),b()(f()(o),"_bottomRightGridRef",(function(e){o._bottomRightGrid=e})),b()(f()(o),"_cellRendererBottomLeftGrid",(function(e){var t=e.rowIndex,n=k()(e,["rowIndex"]),r=o.props,i=r.cellRenderer,a=r.fixedRowCount;return t===r.rowCount-a?g.createElement("div",{key:n.key,style:Je({},n.style,{height:20})}):i(Je({},n,{parent:f()(o),rowIndex:t+a}))})),b()(f()(o),"_cellRendererBottomRightGrid",(function(e){var t=e.columnIndex,n=e.rowIndex,r=k()(e,["columnIndex","rowIndex"]),i=o.props,a=i.cellRenderer,l=i.fixedColumnCount,c=i.fixedRowCount;return a(Je({},r,{columnIndex:t+l,parent:f()(o),rowIndex:n+c}))})),b()(f()(o),"_cellRendererTopRightGrid",(function(e){var t=e.columnIndex,n=k()(e,["columnIndex"]),r=o.props,i=r.cellRenderer,a=r.columnCount,l=r.fixedColumnCount;return t===a-l?g.createElement("div",{key:n.key,style:Je({},n.style,{width:20})}):i(Je({},n,{columnIndex:t+l,parent:f()(o)}))})),b()(f()(o),"_columnWidthRightGrid",(function(e){var t=e.index,n=o.props,r=n.columnCount,i=n.fixedColumnCount,a=n.columnWidth,l=o.state,c=l.scrollbarSize;return l.showHorizontalScrollbar&&t===r-i?c:"function"==typeof a?a({index:t+i}):a})),b()(f()(o),"_onScroll",(function(e){var t=e.scrollLeft,n=e.scrollTop;o.setState({scrollLeft:t,scrollTop:n});var r=o.props.onScroll;r&&r(e)})),b()(f()(o),"_onScrollbarPresenceChange",(function(e){var t=e.horizontal,n=e.size,r=e.vertical,i=o.state,a=i.showHorizontalScrollbar,l=i.showVerticalScrollbar;if(t!==a||r!==l){o.setState({scrollbarSize:n,showHorizontalScrollbar:t,showVerticalScrollbar:r});var c=o.props.onScrollbarPresenceChange;"function"==typeof c&&c({horizontal:t,size:n,vertical:r})}})),b()(f()(o),"_onScrollLeft",(function(e){var t=e.scrollLeft;o._onScroll({scrollLeft:t,scrollTop:o.state.scrollTop})})),b()(f()(o),"_onScrollTop",(function(e){var t=e.scrollTop;o._onScroll({scrollTop:t,scrollLeft:o.state.scrollLeft})})),b()(f()(o),"_rowHeightBottomGrid",(function(e){var t=e.index,n=o.props,r=n.fixedRowCount,i=n.rowCount,a=n.rowHeight,l=o.state,c=l.scrollbarSize;return l.showVerticalScrollbar&&t===i-r?c:"function"==typeof a?a({index:t+r}):a})),b()(f()(o),"_topLeftGridRef",(function(e){o._topLeftGrid=e})),b()(f()(o),"_topRightGridRef",(function(e){o._topRightGrid=e}));var i=e.deferredMeasurementCache,a=e.fixedColumnCount,l=e.fixedRowCount;return o._maybeCalculateCachedStyles(!0),i&&(o._deferredMeasurementCacheBottomLeftGrid=l>0?new Xe({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:l}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||l>0?new Xe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:l}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Xe({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return h()(t,e),a()(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this._deferredInvalidateColumnIndex="number"==typeof this._deferredInvalidateColumnIndex?Math.min(this._deferredInvalidateColumnIndex,n):n,this._deferredInvalidateRowIndex="number"==typeof this._deferredInvalidateRowIndex?Math.min(this._deferredInvalidateRowIndex,r):r}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o,i=this.props,a=i.fixedColumnCount,l=i.fixedRowCount,c=Math.max(0,n-a),s=Math.max(0,r-l);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:s}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:c,rowIndex:s}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:n,rowIndex:r}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:c,rowIndex:r}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var e=this.props,t=e.scrollLeft,n=e.scrollTop;if(t>0||n>0){var o={};t>0&&(o.scrollLeft=t),n>0&&(o.scrollTop=n),this.setState(o)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var e=this.props,t=e.onScroll,n=e.onSectionRendered,o=(e.onScrollbarPresenceChange,e.scrollLeft,e.scrollToColumn),r=(e.scrollTop,e.scrollToRow),i=k()(e,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),0===this.props.width||0===this.props.height)return null;var a=this.state,l=a.scrollLeft,c=a.scrollTop;return g.createElement("div",{style:this._containerOuterStyle},g.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(i),this._renderTopRightGrid(Je({},i,{onScroll:t,scrollLeft:l}))),g.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Je({},i,{onScroll:t,scrollTop:c})),this._renderBottomRightGrid(Je({},i,{onScroll:t,onSectionRendered:n,scrollLeft:l,scrollToColumn:o,scrollToRow:r,scrollTop:c}))))}},{key:"_getBottomGridHeight",value:function(e){return e.height-this._getTopGridHeight(e)}},{key:"_getLeftGridWidth",value:function(e){var t=e.fixedColumnCount,n=e.columnWidth;if(null==this._leftGridWidth)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._leftGridWidth=o}else this._leftGridWidth=n*t;return this._leftGridWidth}},{key:"_getRightGridWidth",value:function(e){return e.width-this._getLeftGridWidth(e)}},{key:"_getTopGridHeight",value:function(e){var t=e.fixedRowCount,n=e.rowHeight;if(null==this._topGridHeight)if("function"==typeof n){for(var o=0,r=0;r<t;r++)o+=n({index:r});this._topGridHeight=o}else this._topGridHeight=n*t;return this._topGridHeight}},{key:"_handleInvalidatedGridSize",value:function(){if("number"==typeof this._deferredInvalidateColumnIndex){var e=this._deferredInvalidateColumnIndex,t=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:e,rowIndex:t}),this.forceUpdate()}}},{key:"_maybeCalculateCachedStyles",value:function(e){var t=this.props,n=t.columnWidth,o=t.enableFixedColumnScroll,r=t.enableFixedRowScroll,i=t.height,a=t.fixedColumnCount,l=t.fixedRowCount,c=t.rowHeight,s=t.style,u=t.styleBottomLeftGrid,d=t.styleBottomRightGrid,f=t.styleTopLeftGrid,p=t.styleTopRightGrid,h=t.width,m=e||i!==this._lastRenderedHeight||h!==this._lastRenderedWidth,b=e||n!==this._lastRenderedColumnWidth||a!==this._lastRenderedFixedColumnCount,g=e||l!==this._lastRenderedFixedRowCount||c!==this._lastRenderedRowHeight;(e||m||s!==this._lastRenderedStyle)&&(this._containerOuterStyle=Je({height:i,overflow:"visible",width:h},s)),(e||m||g)&&(this._containerTopStyle={height:this._getTopGridHeight(this.props),position:"relative",width:h},this._containerBottomStyle={height:i-this._getTopGridHeight(this.props),overflow:"visible",position:"relative",width:h}),(e||u!==this._lastRenderedStyleBottomLeftGrid)&&(this._bottomLeftGridStyle=Je({left:0,overflowX:"hidden",overflowY:o?"auto":"hidden",position:"absolute"},u)),(e||b||d!==this._lastRenderedStyleBottomRightGrid)&&(this._bottomRightGridStyle=Je({left:this._getLeftGridWidth(this.props),position:"absolute"},d)),(e||f!==this._lastRenderedStyleTopLeftGrid)&&(this._topLeftGridStyle=Je({left:0,overflowX:"hidden",overflowY:"hidden",position:"absolute",top:0},f)),(e||b||p!==this._lastRenderedStyleTopRightGrid)&&(this._topRightGridStyle=Je({left:this._getLeftGridWidth(this.props),overflowX:r?"auto":"hidden",overflowY:"hidden",position:"absolute",top:0},p)),this._lastRenderedColumnWidth=n,this._lastRenderedFixedColumnCount=a,this._lastRenderedFixedRowCount=l,this._lastRenderedHeight=i,this._lastRenderedRowHeight=c,this._lastRenderedStyle=s,this._lastRenderedStyleBottomLeftGrid=u,this._lastRenderedStyleBottomRightGrid=d,this._lastRenderedStyleTopLeftGrid=f,this._lastRenderedStyleTopRightGrid=p,this._lastRenderedWidth=h}},{key:"_prepareForRender",value:function(){this._lastRenderedColumnWidth===this.props.columnWidth&&this._lastRenderedFixedColumnCount===this.props.fixedColumnCount||(this._leftGridWidth=null),this._lastRenderedFixedRowCount===this.props.fixedRowCount&&this._lastRenderedRowHeight===this.props.rowHeight||(this._topGridHeight=null),this._maybeCalculateCachedStyles(),this._lastRenderedColumnWidth=this.props.columnWidth,this._lastRenderedFixedColumnCount=this.props.fixedColumnCount,this._lastRenderedFixedRowCount=this.props.fixedRowCount,this._lastRenderedRowHeight=this.props.rowHeight}},{key:"_renderBottomLeftGrid",value:function(e){var t=e.enableFixedColumnScroll,n=e.fixedColumnCount,o=e.fixedRowCount,r=e.rowCount,i=e.hideBottomLeftGridScrollbar,a=this.state.showVerticalScrollbar;if(!n)return null;var l=a?1:0,c=this._getBottomGridHeight(e),s=this._getLeftGridWidth(e),u=this.state.showVerticalScrollbar?this.state.scrollbarSize:0,d=i?s+u:s,f=g.createElement(G,w()({},e,{cellRenderer:this._cellRendererBottomLeftGrid,className:this.props.classNameBottomLeftGrid,columnCount:n,deferredMeasurementCache:this._deferredMeasurementCacheBottomLeftGrid,height:c,onScroll:t?this._onScrollTop:void 0,ref:this._bottomLeftGridRef,rowCount:Math.max(0,r-o)+l,rowHeight:this._rowHeightBottomGrid,style:this._bottomLeftGridStyle,tabIndex:null,width:d}));return i?g.createElement("div",{className:"BottomLeftGrid_ScrollWrapper",style:Je({},this._bottomLeftGridStyle,{height:c,width:s,overflowY:"hidden"})},f):f}},{key:"_renderBottomRightGrid",value:function(e){var t=e.columnCount,n=e.fixedColumnCount,o=e.fixedRowCount,r=e.rowCount,i=e.scrollToColumn,a=e.scrollToRow;return g.createElement(G,w()({},e,{cellRenderer:this._cellRendererBottomRightGrid,className:this.props.classNameBottomRightGrid,columnCount:Math.max(0,t-n),columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheBottomRightGrid,height:this._getBottomGridHeight(e),onScroll:this._onScroll,onScrollbarPresenceChange:this._onScrollbarPresenceChange,ref:this._bottomRightGridRef,rowCount:Math.max(0,r-o),rowHeight:this._rowHeightBottomGrid,scrollToColumn:i-n,scrollToRow:a-o,style:this._bottomRightGridStyle,width:this._getRightGridWidth(e)}))}},{key:"_renderTopLeftGrid",value:function(e){var t=e.fixedColumnCount,n=e.fixedRowCount;return t&&n?g.createElement(G,w()({},e,{className:this.props.classNameTopLeftGrid,columnCount:t,height:this._getTopGridHeight(e),ref:this._topLeftGridRef,rowCount:n,style:this._topLeftGridStyle,tabIndex:null,width:this._getLeftGridWidth(e)})):null}},{key:"_renderTopRightGrid",value:function(e){var t=e.columnCount,n=e.enableFixedRowScroll,o=e.fixedColumnCount,r=e.fixedRowCount,i=e.scrollLeft,a=e.hideTopRightGridScrollbar,l=this.state,c=l.showHorizontalScrollbar,s=l.scrollbarSize;if(!r)return null;var u=c?1:0,d=this._getTopGridHeight(e),f=this._getRightGridWidth(e),p=c?s:0,h=d,m=this._topRightGridStyle;a&&(h=d+p,m=Je({},this._topRightGridStyle,{left:0}));var b=g.createElement(G,w()({},e,{cellRenderer:this._cellRendererTopRightGrid,className:this.props.classNameTopRightGrid,columnCount:Math.max(0,t-o)+u,columnWidth:this._columnWidthRightGrid,deferredMeasurementCache:this._deferredMeasurementCacheTopRightGrid,height:h,onScroll:n?this._onScrollLeft:void 0,ref:this._topRightGridRef,rowCount:r,scrollLeft:i,style:m,tabIndex:null,width:f}));return a?g.createElement("div",{className:"TopRightGrid_ScrollWrapper",style:Je({},this._topRightGridStyle,{height:d,width:f,overflowX:"hidden"})},b):b}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scrollLeft!==t.scrollLeft||e.scrollTop!==t.scrollTop?{scrollLeft:null!=e.scrollLeft&&e.scrollLeft>=0?e.scrollLeft:t.scrollLeft,scrollTop:null!=e.scrollTop&&e.scrollTop>=0?e.scrollTop:t.scrollTop}:null}}]),t}(g.PureComponent);b()(et,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1}),et.propTypes={},Object(v.polyfill)(et);var tt=function(e){function t(e,n){var o;return r()(this,t),(o=c()(this,u()(t).call(this,e,n))).state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(f()(o)),o}return h()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.clientHeight,o=t.clientWidth,r=t.scrollHeight,i=t.scrollLeft,a=t.scrollTop,l=t.scrollWidth;return e({clientHeight:n,clientWidth:o,onScroll:this._onScroll,scrollHeight:r,scrollLeft:i,scrollTop:a,scrollWidth:l})}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.clientWidth,o=e.scrollHeight,r=e.scrollLeft,i=e.scrollTop,a=e.scrollWidth;this.setState({clientHeight:t,clientWidth:n,scrollHeight:o,scrollLeft:r,scrollTop:i,scrollWidth:a})}}]),t}(g.PureComponent);tt.propTypes={};function nt(e){var t=e.className,n=e.columns,o=e.style;return g.createElement("div",{className:t,role:"row",style:o},n)}nt.propTypes=null;var ot={ASC:"ASC",DESC:"DESC"};function rt(e){var t=e.sortDirection,n=Object(x.default)("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===ot.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===ot.DESC});return g.createElement("svg",{className:n,width:18,height:18,viewBox:"0 0 24 24"},t===ot.ASC?g.createElement("path",{d:"M7 14l5-5 5 5z"}):g.createElement("path",{d:"M7 10l5 5 5-5z"}),g.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}function it(e){var t=e.dataKey,n=e.label,o=e.sortBy,r=e.sortDirection,i=o===t,a=[g.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:"string"==typeof n?n:null},n)];return i&&a.push(g.createElement(rt,{key:"SortIndicator",sortDirection:r})),a}function at(e){var t=e.className,n=e.columns,o=e.index,r=e.key,i=e.onRowClick,a=e.onRowDoubleClick,l=e.onRowMouseOut,c=e.onRowMouseOver,s=e.onRowRightClick,u=e.rowData,d=e.style,f={"aria-rowindex":o+1};return(i||a||l||c||s)&&(f["aria-label"]="row",f.tabIndex=0,i&&(f.onClick=function(e){return i({event:e,index:o,rowData:u})}),a&&(f.onDoubleClick=function(e){return a({event:e,index:o,rowData:u})}),l&&(f.onMouseOut=function(e){return l({event:e,index:o,rowData:u})}),c&&(f.onMouseOver=function(e){return c({event:e,index:o,rowData:u})}),s&&(f.onContextMenu=function(e){return s({event:e,index:o,rowData:u})})),g.createElement("div",w()({},f,{className:t,key:r,role:"row",style:d}),n)}rt.propTypes={},it.propTypes=null,at.propTypes=null;var lt=function(e){function t(){return r()(this,t),c()(this,u()(t).apply(this,arguments))}return h()(t,e),t}(g.Component);function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function st(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}b()(lt,"defaultProps",{cellDataGetter:function(e){var t=e.dataKey,n=e.rowData;return"function"==typeof n.get?n.get(t):n[t]},cellRenderer:function(e){var t=e.cellData;return null==t?"":String(t)},defaultSortDirection:ot.ASC,flexGrow:0,flexShrink:1,headerRenderer:it,style:{}}),lt.propTypes={};var ut=function(e){function t(e){var n;return r()(this,t),(n=c()(this,u()(t).call(this,e))).state={scrollbarWidth:0},n._createColumn=n._createColumn.bind(f()(n)),n._createRow=n._createRow.bind(f()(n)),n._onScroll=n._onScroll.bind(f()(n)),n._onSectionRendered=n._onSectionRendered.bind(f()(n)),n._setRef=n._setRef.bind(f()(n)),n}return h()(t,e),a()(t,[{key:"forceUpdateGrid",value:function(){this.Grid&&this.Grid.forceUpdate()}},{key:"getOffsetForRow",value:function(e){var t=e.alignment,n=e.index;return this.Grid?this.Grid.getOffsetForCell({alignment:t,rowIndex:n}).scrollTop:0}},{key:"invalidateCellSizeAfterRender",value:function(e){var t=e.columnIndex,n=e.rowIndex;this.Grid&&this.Grid.invalidateCellSizeAfterRender({rowIndex:n,columnIndex:t})}},{key:"measureAllRows",value:function(){this.Grid&&this.Grid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.columnIndex,n=void 0===t?0:t,o=e.rowIndex,r=void 0===o?0:o;this.Grid&&this.Grid.recomputeGridSize({rowIndex:r,columnIndex:n})}},{key:"recomputeRowHeights",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:e})}},{key:"scrollToPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:e})}},{key:"scrollToRow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:e})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var e=Object(ie.findDOMNode)(this.Grid),t=e.clientWidth||0;return(e.offsetWidth||0)-t}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,r=t.disableHeader,i=t.gridClassName,a=t.gridStyle,l=t.headerHeight,c=t.headerRowRenderer,s=t.height,u=t.id,d=t.noRowsRenderer,f=t.rowClassName,p=t.rowStyle,h=t.scrollToIndex,m=t.style,b=t.width,v=this.state.scrollbarWidth,y=r?s:s-l,O="function"==typeof f?f({index:-1}):f,S="function"==typeof p?p({index:-1}):p;return this._cachedColumnStyles=[],g.Children.toArray(n).forEach((function(t,n){var o=e._getFlexStyleForColumn(t,t.props.style);e._cachedColumnStyles[n]=st({overflow:"hidden"},o)})),g.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":g.Children.toArray(n).length,"aria-rowcount":this.props.rowCount,className:Object(x.default)("ReactVirtualized__Table",o),id:u,role:"grid",style:m},!r&&c({className:Object(x.default)("ReactVirtualized__Table__headerRow",O),columns:this._getHeaderColumns(),style:st({height:l,overflow:"hidden",paddingRight:v,width:b},S)}),g.createElement(G,w()({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Object(x.default)("ReactVirtualized__Table__Grid",i),cellRenderer:this._createRow,columnWidth:b,columnCount:1,height:y,id:void 0,noContentRenderer:d,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:v,scrollToRow:h,style:st({},a,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(e){var t=e.column,n=e.columnIndex,o=e.isScrolling,r=e.parent,i=e.rowData,a=e.rowIndex,l=this.props.onColumnClick,c=t.props,s=c.cellDataGetter,u=c.cellRenderer,d=c.className,f=c.columnData,p=c.dataKey,h=c.id,m=u({cellData:s({columnData:f,dataKey:p,rowData:i}),columnData:f,columnIndex:n,dataKey:p,isScrolling:o,parent:r,rowData:i,rowIndex:a}),b=this._cachedColumnStyles[n],v="string"==typeof m?m:null;return g.createElement("div",{"aria-colindex":n+1,"aria-describedby":h,className:Object(x.default)("ReactVirtualized__Table__rowColumn",d),key:"Row"+a+"-Col"+n,onClick:function(e){l&&l({columnData:f,dataKey:p,event:e})},role:"gridcell",style:b,title:v},m)}},{key:"_createHeader",value:function(e){var t,n,o,r,i,a=e.column,l=e.index,c=this.props,s=c.headerClassName,u=c.headerStyle,d=c.onHeaderClick,f=c.sort,p=c.sortBy,h=c.sortDirection,m=a.props,b=m.columnData,v=m.dataKey,y=m.defaultSortDirection,w=m.disableSort,O=m.headerRenderer,S=m.id,k=m.label,E=!w&&f,C=Object(x.default)("ReactVirtualized__Table__headerColumn",s,a.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:E}),T=this._getFlexStyleForColumn(a,st({},u,{},a.props.headerStyle)),A=O({columnData:b,dataKey:v,disableSort:w,label:k,sortBy:p,sortDirection:h});if(E||d){var _=p!==v?y:h===ot.DESC?ot.ASC:ot.DESC,j=function(e){E&&f({defaultSortDirection:y,event:e,sortBy:v,sortDirection:_}),d&&d({columnData:b,dataKey:v,event:e})};i=a.props["aria-label"]||k||v,r="none",o=0,t=j,n=function(e){"Enter"!==e.key&&" "!==e.key||j(e)}}return p===v&&(r=h===ot.ASC?"ascending":"descending"),g.createElement("div",{"aria-label":i,"aria-sort":r,className:C,id:S,key:"Header-Col"+l,onClick:t,onKeyDown:n,role:"columnheader",style:T,tabIndex:o},A)}},{key:"_createRow",value:function(e){var t=this,n=e.rowIndex,o=e.isScrolling,r=e.key,i=e.parent,a=e.style,l=this.props,c=l.children,s=l.onRowClick,u=l.onRowDoubleClick,d=l.onRowRightClick,f=l.onRowMouseOver,p=l.onRowMouseOut,h=l.rowClassName,m=l.rowGetter,b=l.rowRenderer,v=l.rowStyle,y=this.state.scrollbarWidth,w="function"==typeof h?h({index:n}):h,O="function"==typeof v?v({index:n}):v,S=m({index:n}),k=g.Children.toArray(c).map((function(e,r){return t._createColumn({column:e,columnIndex:r,isScrolling:o,parent:i,rowData:S,rowIndex:n,scrollbarWidth:y})})),E=Object(x.default)("ReactVirtualized__Table__row",w),C=st({},a,{height:this._getRowHeight(n),overflow:"hidden",paddingRight:y},O);return b({className:E,columns:k,index:n,isScrolling:o,key:r,onRowClick:s,onRowDoubleClick:u,onRowRightClick:d,onRowMouseOver:f,onRowMouseOut:p,rowData:S,style:C})}},{key:"_getFlexStyleForColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="".concat(e.props.flexGrow," ").concat(e.props.flexShrink," ").concat(e.props.width,"px"),o=st({},t,{flex:n,msFlex:n,WebkitFlex:n});return e.props.maxWidth&&(o.maxWidth=e.props.maxWidth),e.props.minWidth&&(o.minWidth=e.props.minWidth),o}},{key:"_getHeaderColumns",value:function(){var e=this,t=this.props,n=t.children;return(t.disableHeader?[]:g.Children.toArray(n)).map((function(t,n){return e._createHeader({column:t,index:n})}))}},{key:"_getRowHeight",value:function(e){var t=this.props.rowHeight;return"function"==typeof t?t({index:e}):t}},{key:"_onScroll",value:function(e){var t=e.clientHeight,n=e.scrollHeight,o=e.scrollTop;(0,this.props.onScroll)({clientHeight:t,scrollHeight:n,scrollTop:o})}},{key:"_onSectionRendered",value:function(e){var t=e.rowOverscanStartIndex,n=e.rowOverscanStopIndex,o=e.rowStartIndex,r=e.rowStopIndex;(0,this.props.onRowsRendered)({overscanStartIndex:t,overscanStopIndex:n,startIndex:o,stopIndex:r})}},{key:"_setRef",value:function(e){this.Grid=e}},{key:"_setScrollbarWidth",value:function(){var e=this.getScrollbarWidth();this.setState({scrollbarWidth:e})}}]),t}(g.PureComponent);b()(ut,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:V,overscanRowCount:10,rowRenderer:at,headerRowRenderer:nt,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}}),ut.propTypes={};var dt=[],ft=null,pt=null;function ht(){pt&&(pt=null,document.body&&null!=ft&&(document.body.style.pointerEvents=ft),ft=null)}function mt(){ht(),dt.forEach((function(e){return e.__resetIsScrolling()}))}function bt(e){e.currentTarget===window&&null==ft&&document.body&&(ft=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),function(){pt&&D(pt);var e=0;dt.forEach((function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)})),pt=z(mt,e)}(),dt.forEach((function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()}))}function gt(e,t){dt.some((function(e){return e.props.scrollElement===t}))||t.addEventListener("scroll",bt),dt.push(e)}function vt(e,t){(dt=dt.filter((function(t){return t!==e}))).length||(t.removeEventListener("scroll",bt),pt&&(D(pt),ht()))}var yt,wt,xt=function(e){return e===window},Ot=function(e){return e.getBoundingClientRect()};function St(e,t){if(e){if(xt(e)){var n=window,o=n.innerHeight,r=n.innerWidth;return{height:"number"==typeof o?o:0,width:"number"==typeof r?r:0}}return Ot(e)}return{height:t.serverHeight,width:t.serverWidth}}function kt(e,t){if(xt(t)&&document.documentElement){var n=document.documentElement,o=Ot(e),r=Ot(n);return{top:o.top-r.top,left:o.left-r.left}}var i=Et(t),a=Ot(e),l=Ot(t);return{top:a.top+i.top-l.top,left:a.left+i.left-l.left}}function Et(e){return xt(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(n,!0).forEach((function(t){b()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var At=function(){return"undefined"!=typeof window?window:void 0},_t=(wt=yt=function(e){function t(){var e,n;r()(this,t);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=c()(this,(e=u()(t)).call.apply(e,[this].concat(i))),b()(f()(n),"_window",At()),b()(f()(n),"_isMounted",!1),b()(f()(n),"_positionFromTop",0),b()(f()(n),"_positionFromLeft",0),b()(f()(n),"_detectElementResize",void 0),b()(f()(n),"_child",void 0),b()(f()(n),"state",Tt({},St(n.props.scrollElement,n.props),{isScrolling:!1,scrollLeft:0,scrollTop:0})),b()(f()(n),"_registerChild",(function(e){!e||e instanceof Element||console.warn("WindowScroller registerChild expects to be passed Element or null"),n._child=e,n.updatePosition()})),b()(f()(n),"_onChildScroll",(function(e){var t=e.scrollTop;if(n.state.scrollTop!==t){var o=n.props.scrollElement;o&&("function"==typeof o.scrollTo?o.scrollTo(0,t+n._positionFromTop):o.scrollTop=t+n._positionFromTop)}})),b()(f()(n),"_registerResizeListener",(function(e){e===window?window.addEventListener("resize",n._onResize,!1):n._detectElementResize.addResizeListener(e,n._onResize)})),b()(f()(n),"_unregisterResizeListener",(function(e){e===window?window.removeEventListener("resize",n._onResize,!1):e&&n._detectElementResize.removeResizeListener(e,n._onResize)})),b()(f()(n),"_onResize",(function(){n.updatePosition()})),b()(f()(n),"__handleWindowScrollEvent",(function(){if(n._isMounted){var e=n.props.onScroll,t=n.props.scrollElement;if(t){var o=Et(t),r=Math.max(0,o.left-n._positionFromLeft),i=Math.max(0,o.top-n._positionFromTop);n.setState({isScrolling:!0,scrollLeft:r,scrollTop:i}),e({scrollLeft:r,scrollTop:i})}}})),b()(f()(n),"__resetIsScrolling",(function(){n.setState({isScrolling:!1})})),n}return h()(t,e),a()(t,[{key:"updatePosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollElement,t=this.props.onResize,n=this.state,o=n.height,r=n.width,i=this._child||ie.findDOMNode(this);if(i instanceof Element&&e){var a=kt(i,e);this._positionFromTop=a.top,this._positionFromLeft=a.left}var l=St(e,this.props);o===l.height&&r===l.width||(this.setState({height:l.height,width:l.width}),t({height:l.height,width:l.width}))}},{key:"componentDidMount",value:function(){var e=this.props.scrollElement;this._detectElementResize=Object(J.a)(),this.updatePosition(e),e&&(gt(this,e),this._registerResizeListener(e)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.scrollElement,o=e.scrollElement;o!==n&&null!=o&&null!=n&&(this.updatePosition(n),vt(this,o),gt(this,n),this._unregisterResizeListener(o),this._registerResizeListener(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.scrollElement;e&&(vt(this,e),this._unregisterResizeListener(e)),this._isMounted=!1}},{key:"render",value:function(){var e=this.props.children,t=this.state,n=t.isScrolling,o=t.scrollTop,r=t.scrollLeft,i=t.height,a=t.width;return e({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:i,isScrolling:n,scrollLeft:r,scrollTop:o,width:a})}}]),t}(g.PureComponent),b()(yt,"propTypes",null),wt);b()(_t,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:150,scrollElement:At(),serverHeight:0,serverWidth:0})},1655:function(e,t,n){"use strict";n.d(t,"a",(function(){return qn}));var o=n(0);function r(e,t){return function(n){return e(t(n))}}function i(e,t){return t(e)}function a(e,t){return function(n){return e(t,n)}}function l(e,t){return function(){return e(t)}}function c(e){return function(t){return t[e]}}function s(e,t){return t(e),e}function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t}function d(e){e()}function f(e){return function(){return e}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.map(d)}}function h(){}function m(e,t){return e(1,t)}function b(e,t){e(0,t)}function g(e){e(2)}function v(e){return e(4)}function y(e,t){return m(e,a(t,0))}function w(e,t){var n=e(1,(function(e){n(),t(e)}));return n}function x(){var e=[];return function(t,n){switch(t){case 2:return void e.splice(0,e.length);case 1:return e.push(n),function(){var t=e.indexOf(n);t>-1&&e.splice(t,1)};case 0:return void e.slice().forEach((function(e){e(n)}));default:throw new Error("unrecognized action "+t)}}}function O(e){var t=e,n=x();return function(e,o){switch(e){case 1:o(t);break;case 0:t=o;break;case 4:return t}return n(e,o)}}function S(e){return s(x(),(function(t){return y(e,t)}))}function k(e,t){return s(O(t),(function(t){return y(e,t)}))}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight(i,e)}}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=E.apply(void 0,n);return function(t,n){switch(t){case 1:return m(e,r(n));case 2:return void g(e);default:throw new Error("unrecognized action "+t)}}}function T(e,t){return e===t}function A(e){var t;return void 0===e&&(e=T),function(n){return function(o){e(t,o)||(t=o,n(o))}}}function _(e){return function(t){return function(n){e(n)&&t(n)}}}function j(e){return function(t){return r(t,e)}}function P(e){return function(t){return function(){return t(e)}}}function N(e,t){return function(n){return function(o){return n(t=e(t,o))}}}function I(e){return function(t){return function(n){e>0?e--:t(n)}}}function R(e){var t,n;return function(o){return function(r){t=r,n||(n=setTimeout((function(){n=void 0,o(t)}),e))}}}function q(e){var t,n;return function(o){return function(r){t=r,n&&clearTimeout(n),n=setTimeout((function(){o(t)}),e)}}}function L(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=new Array(t.length),r=0,i=null,a=Math.pow(2,t.length)-1;return t.forEach((function(e,t){var n=Math.pow(2,t);m(e,(function(e){var l=r;r|=n,o[t]=e,l!==a&&r===a&&i&&(i(),i=null)}))})),function(e){return function(t){var n=function(){return e([t].concat(o))};r===a?n():i=n}}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){switch(e){case 1:return p.apply(void 0,t.map((function(e){return m(e,n)})));case 2:return;default:throw new Error("unrecognized action "+e)}}}function D(e,t){return void 0===t&&(t=T),C(e,A(t))}function z(){for(var e=x(),t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r=new Array(n.length),i=0,a=Math.pow(2,n.length)-1;return n.forEach((function(t,n){var o=Math.pow(2,n);m(t,(function(t){r[n]=t,(i|=o)===a&&b(e,r)}))})),function(t,n){switch(t){case 1:return i===a&&n(r),m(e,n);case 2:return g(e);default:throw new Error("unrecognized action "+t)}}}function B(e,t,n){void 0===t&&(t=[]);var o=(void 0===n?{singleton:!0}:n).singleton;return{id:F(),constructor:e,dependencies:t,singleton:o}}var F=function(){return Symbol()};function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function U(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var W=["children"];var G="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function V(e,t,n){var r=Object.keys(t.required||{}),i=Object.keys(t.optional||{}),c=Object.keys(t.methods||{}),u=Object.keys(t.events||{}),d=Object(o.createContext)({});function p(e,n){e.propsReady&&b(e.propsReady,!1);for(var o,a=U(r);!(o=a()).done;){var l=o.value;b(e[t.required[l]],n[l])}for(var c,s=U(i);!(c=s()).done;){var u=c.value;if(u in n)b(e[t.optional[u]],n[u])}e.propsReady&&b(e.propsReady,!0)}function y(e){return u.reduce((function(n,o){var r,i,a,l;return n[o]=(r=e[t.events[o]],l=function(){return i&&i()},function(e,t){switch(e){case 1:if(t){if(a===t)return;return l(),a=t,i=m(r,t)}return l(),h;case 2:return l(),void(a=null);default:throw new Error("unrecognized action "+e)}}),n}),{})}return{Component:Object(o.forwardRef)((function(a,h){var v=a.children,w=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(a,W),x=Object(o.useState)((function(){return s(function(e){var t=new Map;return function e(n){var o=n.id,r=n.constructor,i=n.dependencies,a=n.singleton;if(a&&t.has(o))return t.get(o);var l=r(i.map((function(t){return e(t)})));return a&&t.set(o,l),l}(e)}(e),(function(e){return p(e,w)}))}))[0],O=Object(o.useState)(l(y,x))[0];return G((function(){for(var e,t=U(u);!(e=t()).done;){var n=e.value;n in w&&m(O[n],w[n])}return function(){Object.values(O).map(g)}}),[w,O,x]),G((function(){p(x,w)})),Object(o.useImperativeHandle)(h,f(function(e){return c.reduce((function(n,o){return n[o]=function(n){b(e[t.methods[o]],n)},n}),{})}(x))),Object(o.createElement)(d.Provider,{value:x},n?Object(o.createElement)(n,function(e,t){for(var n={},o={},r=0,i=e.length;r<i;)o[e[r]]=1,r+=1;for(var a in t)o.hasOwnProperty(a)||(n[a]=t[a]);return n}([].concat(r,i,u),w),v):v)})),usePublisher:function(e){return Object(o.useCallback)(a(b,Object(o.useContext)(d)[e]),[e])},useEmitterValue:function(e){var t=Object(o.useContext)(d)[e],n=Object(o.useState)(l(v,t)),r=n[0],i=n[1];return G((function(){return m(t,(function(e){e!==r&&i(f(e))}))}),[t,r]),r},useEmitter:function(e,t){var n=Object(o.useContext)(d)[e];G((function(){return m(n,t)}),[t,n])}}}function K(){return(K=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function $(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)t.indexOf(n=i[o])>=0||(r[n]=e[n]);return r}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Z(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var X,Q,J,ee="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;(J=Q||(Q={}))[J.DEBUG=0]="DEBUG",J[J.INFO=1]="INFO",J[J.WARN=2]="WARN",J[J.ERROR=3]="ERROR";var te=((X={})[Q.DEBUG]="debug",X[Q.INFO]="log",X[Q.WARN]="warn",X[Q.ERROR]="error",X),ne=B((function(){var e=O(Q.ERROR);return{log:O((function(t,n,o){var r;void 0===o&&(o=Q.INFO),o>=(null!=(r=("undefined"==typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:v(e))&&console[te[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)})),logLevel:e}}),[],{singleton:!0});function oe(e,t){void 0===t&&(t=!0);var n=Object(o.useRef)(null),r=function(e){};if("undefined"!=typeof ResizeObserver){var i=new ResizeObserver((function(t){var n=t[0].target;null!==n.offsetParent&&e(n)}));r=function(e){e&&t?(i.observe(e),n.current=e):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function re(e,t){return void 0===t&&(t=!0),oe(e,t).callbackRef}function ie(e,t,n,o,r,i){return oe((function(n){for(var a=function(e,t,n,o){var r=e.length;if(0===r)return null;for(var i=[],a=0;a<r;a++){var l=e.item(a);if(l&&void 0!==l.dataset.index){var c=parseInt(l.dataset.index),s=parseFloat(l.dataset.knownSize),u=t(l,"offsetHeight");if(0===u&&o("Zero-sized element, this should not happen",{child:l},Q.ERROR),u!==s){var d=i[i.length-1];0===i.length||d.size!==u||d.endIndex!==c-1?i.push({startIndex:c,endIndex:c,size:u}):i[i.length-1].endIndex++}}}return i}(n.children,t,0,r),l=n.parentElement;!l.dataset.virtuosoScroller;)l=l.parentElement;var c=i?i.scrollTop:"window"===l.firstElementChild.dataset.viewportType?window.pageYOffset||document.documentElement.scrollTop:l.scrollTop;o({scrollTop:Math.max(c,0),scrollHeight:(null!=i?i:l).scrollHeight,viewportHeight:(null!=i?i:l).offsetHeight}),null!==a&&e(a)}),n)}function ae(e,t){return Math.round(e.getBoundingClientRect()[t])}function le(e,t,n,r,i){void 0===r&&(r=h);var a=Object(o.useRef)(null),l=Object(o.useRef)(null),c=Object(o.useRef)(null),s=Object(o.useCallback)((function(n){var o=n.target,r=o===window||o===document?window.pageYOffset||document.documentElement.scrollTop:o.scrollTop,i=o===window?document.documentElement.scrollHeight:o.scrollHeight,a=o===window?window.innerHeight:o.offsetHeight;e({scrollTop:Math.max(r,0),scrollHeight:i,viewportHeight:a}),null!==l.current&&(r===l.current||r<=0||r===o.scrollHeight-ae(o,"height"))&&(l.current=null,t(!0),c.current&&(clearTimeout(c.current),c.current=null))}),[e,t]);return Object(o.useEffect)((function(){var e=i||a.current;return r(i||a.current),s({target:e}),e.addEventListener("scroll",s,{passive:!0}),function(){r(null),e.removeEventListener("scroll",s)}}),[a,s,n,r,i]),{scrollerRef:a,scrollByCallback:function(e){a.current.scrollBy(e)},scrollToCallback:function(n){var o=a.current;if(o&&(!("offsetHeight"in o)||0!==o.offsetHeight)){var r,i,s,u="smooth"===n.behavior;if(o===window?(i=Math.max(ae(document.documentElement,"height"),document.documentElement.scrollHeight),r=window.innerHeight,s=document.documentElement.scrollTop):(i=o.scrollHeight,r=ae(o,"height"),s=o.scrollTop),n.top=Math.ceil(Math.max(Math.min(i-r,n.top),0)),Math.abs(r-i)<1.01||n.top===s)return e({scrollTop:s,scrollHeight:i,viewportHeight:r}),void(u&&t(!0));u?(l.current=n.top,c.current&&clearTimeout(c.current),c.current=setTimeout((function(){c.current=null,l.current=null,t(!0)}),1e3)):l.current=null,o.scrollTo(n)}}}}var ce=B((function(){var e=x(),t=x(),n=O(0),o=x(),r=O(0),i=x(),a=x(),l=O(0),c=O(0),s=x(),u=x(),d=O(!1),f=O(!1);return y(C(e,j((function(e){return e.scrollTop}))),t),y(C(e,j((function(e){return e.scrollHeight}))),a),y(t,r),{scrollContainerState:e,scrollTop:t,viewportHeight:i,headerHeight:l,footerHeight:c,scrollHeight:a,smoothScrollTargetReached:o,react18ConcurrentRendering:f,scrollTo:s,scrollBy:u,statefulScrollTop:r,deviation:n,scrollingInProgress:d}}),[],{singleton:!0}),se={lvl:0};function ue(e,t,n,o,r){return void 0===o&&(o=se),void 0===r&&(r=se),{k:e,v:t,lvl:n,l:o,r:r}}function de(e){return e===se}function fe(){return se}function pe(e,t){if(de(e))return se;var n=e.k,o=e.l,r=e.r;if(t===n){if(de(o))return r;if(de(r))return o;var i=function e(t){return de(t.r)?[t.k,t.v]:e(t.r)}(o);return we(ve(e,{k:i[0],v:i[1],l:ge(o)}))}return we(ve(e,t<n?{l:pe(o,t)}:{r:pe(r,t)}))}function he(e,t,n){if(void 0===n&&(n="k"),de(e))return[-1/0,void 0];if(e[n]===t)return[e.k,e.v];if(e[n]<t){var o=he(e.r,t,n);return-1/0===o[0]?[e.k,e.v]:o}return he(e.l,t,n)}function me(e,t,n){return de(e)?ue(t,n,1):t===e.k?ve(e,{k:t,v:n}):function(e){return Se(ke(e))}(ve(e,t<e.k?{l:me(e.l,t,n)}:{r:me(e.r,t,n)}))}function be(e){return de(e)?[]:[].concat(be(e.l),[{k:e.k,v:e.v}],be(e.r))}function ge(e){return de(e.r)?e.l:we(ve(e,{r:ge(e.r)}))}function ve(e,t){return ue(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function ye(e){return de(e)||e.lvl>e.r.lvl}function we(e){var t=e.l,n=e.r,o=e.lvl;if(n.lvl>=o-1&&t.lvl>=o-1)return e;if(o>n.lvl+1){if(ye(t))return ke(ve(e,{lvl:o-1}));if(de(t)||de(t.r))throw new Error("Unexpected empty nodes");return ve(t.r,{l:ve(t,{r:t.r.l}),r:ve(e,{l:t.r.r,lvl:o-1}),lvl:o})}if(ye(e))return Se(ve(e,{lvl:o-1}));if(de(n)||de(n.l))throw new Error("Unexpected empty nodes");var r=n.l,i=ye(r)?n.lvl-1:n.lvl;return ve(r,{l:ve(e,{r:r.l,lvl:o-1}),r:Se(ve(n,{l:r.r,lvl:i})),lvl:r.lvl+1})}function xe(e,t,n){return de(e)?[]:Oe(function e(t,n,o){if(de(t))return[];var r=t.k,i=t.v,a=t.r,l=[];return r>n&&(l=l.concat(e(t.l,n,o))),r>=n&&r<=o&&l.push({k:r,v:i}),r<=o&&(l=l.concat(e(a,n,o))),l}(e,he(e,t)[0],n),(function(e){return{index:e.k,value:e.v}}))}function Oe(e,t){var n=e.length;if(0===n)return[];for(var o=t(e[0]),r=o.index,i=o.value,a=[],l=1;l<n;l++){var c=t(e[l]),s=c.index,u=c.value;a.push({start:r,end:s-1,value:i}),r=s,i=u}return a.push({start:r,end:1/0,value:i}),a}function Se(e){var t=e.r,n=e.lvl;return de(t)||de(t.r)||t.lvl!==n||t.r.lvl!==n?e:ve(t,{l:ve(e,{r:t.l}),lvl:n+1})}function ke(e){var t=e.l;return de(t)||t.lvl!==e.lvl?e:ve(t,{r:ve(e,{l:t.r})})}function Ee(e,t,n,o){void 0===o&&(o=0);for(var r=e.length-1;o<=r;){var i=Math.floor((o+r)/2),a=n(e[i],t);if(0===a)return i;if(-1===a){if(r-o<2)return i-1;r=i-1}else{if(r===o)return i;o=i+1}}throw new Error("Failed binary finding record in array - "+e.join(",")+", searched for "+t)}function Ce(e,t,n){return e[Ee(e,t,n)]}function Te(e){var t=e.size,n=e.startIndex,o=e.endIndex;return function(e){return e.start===n&&(e.end===o||1/0===e.end)&&e.value===t}}function Ae(e,t){var n=e.index;return t===n?0:t<n?-1:1}function _e(e,t){var n=e.offset;return t===n?0:t<n?-1:1}function je(e){return{index:e.index,value:e}}function Pe(e,t,n){var o=e,r=0,i=0,a=0,l=0;if(0!==t){a=o[l=Ee(o,t-1,Ae)].offset;var c=he(n,t-1);r=c[0],i=c[1],o.length&&o[l].size===he(n,t)[1]&&(l-=1),o=o.slice(0,l+1)}else o=[];for(var s,u=Z(xe(n,t,1/0));!(s=u()).done;){var d=s.value,f=d.start,p=d.value,h=(f-r)*i+a;o.push({offset:h,size:p,index:f}),r=f,a=h,i=p}return{offsetTree:o,lastIndex:r,lastOffset:a,lastSize:i}}function Ne(e,t){var n=t[0],o=t[1];n.length>0&&(0,t[2])("received item sizes",n,Q.DEBUG);var r=e.sizeTree,i=r,a=0;if(o.length>0&&de(r)&&2===n.length){var l=n[0].size,c=n[1].size;i=o.reduce((function(e,t){return me(me(e,t,l),t+1,c)}),i)}else{var s=function(e,t){for(var n,o=de(e)?0:1/0,r=Z(t);!(n=r()).done;){var i=n.value,a=i.size,l=i.startIndex,c=i.endIndex;if(o=Math.min(o,l),de(e))e=me(e,0,a);else{var s=xe(e,l-1,c+1);if(!s.some(Te(i))){for(var u,d=!1,f=!1,p=Z(s);!(u=p()).done;){var h=u.value,m=h.start,b=h.end,g=h.value;d?(c>=m||a===g)&&(e=pe(e,m)):(f=g!==a,d=!0),b>c&&c>=m&&g!==a&&(e=me(e,c+1,g))}f&&(e=me(e,l,a))}}}return[e,o]}(i,n);i=s[0],a=s[1]}if(i===r)return e;var u=Pe(e.offsetTree,a,i),d=u.offsetTree;return{sizeTree:i,offsetTree:d,lastIndex:u.lastIndex,lastOffset:u.lastOffset,lastSize:u.lastSize,groupOffsetTree:o.reduce((function(e,t){return me(e,t,Ie(t,d))}),fe()),groupIndices:o}}function Ie(e,t){if(0===t.length)return 0;var n=Ce(t,e,Ae);return n.size*(e-n.index)+n.offset}function Re(e,t){if(!qe(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function qe(e){return!de(e.groupOffsetTree)}var Le={offsetHeight:"height",offsetWidth:"width"},Me=B((function(e){var t=e[0].log,n=x(),o=x(),r=k(o,0),i=x(),a=x(),l=O(0),c=O([]),s=O(void 0),u=O(void 0),d=O((function(e,t){return ae(e,Le[t])})),f=O(void 0),p={offsetTree:[],sizeTree:fe(),groupOffsetTree:fe(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},h=k(C(n,L(c,t),N(Ne,p),A()),p);y(C(c,_((function(e){return e.length>0})),L(h),j((function(e){var t=e[0],n=e[1],o=t.reduce((function(e,t,o){return me(e,t,Ie(t,n.offsetTree)||o)}),fe());return K({},n,{groupIndices:t,groupOffsetTree:o})}))),h),y(C(o,L(h),_((function(e){return e[0]<e[1].lastIndex})),j((function(e){var t=e[1];return[{startIndex:e[0],endIndex:t.lastIndex,size:t.lastSize}]}))),n),y(s,u);var g=k(C(s,j((function(e){return void 0===e}))),!0);y(C(u,_((function(e){return void 0!==e&&de(v(h).sizeTree)})),j((function(e){return[{startIndex:0,endIndex:0,size:e}]}))),n);var w=S(C(n,L(h),N((function(e,t){var n=t[1];return{changed:n!==e.sizes,sizes:n}}),{changed:!1,sizes:p}),j((function(e){return e.changed}))));m(C(l,N((function(e,t){return{diff:e.prev-t,prev:t}}),{diff:0,prev:0}),j((function(e){return e.diff}))),(function(e){e>0?b(i,e):e<0&&b(a,e)})),m(C(l,L(t)),(function(e){e[0]<0&&(0,e[1])("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},Q.ERROR)}));var E=S(i);y(C(i,L(h),j((function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: prepending items does not work with groups");return be(n.sizeTree).reduce((function(e,n){var o=n.k,r=n.v;return{ranges:[].concat(e.ranges,[{startIndex:e.prevIndex,endIndex:o+t-1,size:e.prevSize}]),prevIndex:o+t,prevSize:r}}),{ranges:[],prevIndex:0,prevSize:n.lastSize}).ranges}))),n);var T=S(C(a,L(h),j((function(e){return Ie(-e[0],e[1].offsetTree)}))));return y(C(a,L(h),j((function(e){var t=e[0],n=e[1];if(n.groupIndices.length>0)throw new Error("Virtuoso: shifting items does not work with groups");var o=be(n.sizeTree).reduce((function(e,n){var o=n.v;return me(e,Math.max(0,n.k+t),o)}),fe());return K({},n,{sizeTree:o},Pe(n.offsetTree,0,o))}))),h),{data:f,totalCount:o,sizeRanges:n,groupIndices:c,defaultItemSize:u,fixedItemSize:s,unshiftWith:i,shiftWith:a,shiftWithOffset:T,beforeUnshiftWith:E,firstItemIndex:l,sizes:h,listRefresh:w,statefulTotalCount:r,trackItemSizes:g,itemSize:d}}),u(ne),{singleton:!0}),De="undefined"!=typeof document&&"scrollBehavior"in document.documentElement.style;function ze(e){var t="number"==typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&De||(t.behavior="auto"),t.offset||(t.offset=0),t}var Be=B((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=t.listRefresh,i=e[1],a=i.scrollingInProgress,l=i.viewportHeight,c=i.scrollTo,s=i.smoothScrollTargetReached,u=i.headerHeight,d=i.footerHeight,f=e[2].log,p=x(),h=O(0),g=null,v=null,S=null;function k(){g&&(g(),g=null),S&&(S(),S=null),v&&(clearTimeout(v),v=null),b(a,!1)}return y(C(p,L(n,l,o,h,u,d,f),j((function(e){var t=e[0],n=e[1],o=e[2],i=e[3],l=e[4],c=e[5],u=e[6],d=e[7],f=ze(t),h=f.align,y=f.behavior,x=f.offset,O=i-1,E=f.index;"LAST"===E&&(E=O),E=Re(E,n);var T=Ie(E=Math.max(0,E,Math.min(O,E)),n.offsetTree)+c;"end"===h?(T=T-o+he(n.sizeTree,E)[1],E===O&&(T+=u)):"center"===h?T=T-o/2+he(n.sizeTree,E)[1]/2:T-=l,x&&(T+=x);var A=function(e){k(),e?(d("retrying to scroll to",{location:t},Q.DEBUG),b(p,t)):d("list did not change, scroll successful",{},Q.DEBUG)};if(k(),"smooth"===y){var _=!1;S=m(r,(function(e){_=_||e})),g=w(s,(function(){A(_)}))}else g=w(C(r,(function(e){var t=setTimeout((function(){e(!1)}),50);return function(n){n&&(e(!0),clearTimeout(t))}})),A);return v=setTimeout((function(){k()}),1200),b(a,!0),d("scrolling from index to",{index:E,top:T,behavior:y},Q.DEBUG),{top:T,behavior:y}}))),c),{scrollToIndex:p,topListHeight:h}}),u(Me,ce,ne),{singleton:!0}),Fe="up",He={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},Ue=B((function(e){var t=e[0],n=t.scrollContainerState,o=t.scrollTop,r=t.viewportHeight,i=t.headerHeight,a=t.footerHeight,l=t.scrollBy,c=O(!1),s=O(!0),u=x(),d=x(),f=O(4),p=O(0),h=S(C(M(C(D(o),I(1),P(!0)),C(D(o),I(1),P(!1),q(100))),A())),m=k(C(M(C(l,P(!0)),C(l,P(!1),q(200))),A()),!1);y(C(z(D(o),D(p)),j((function(e){return e[0]<=e[1]})),A()),s),y(C(s,R(50)),d);var b=S(C(z(n,D(r),D(i),D(a),D(f)),N((function(e,t){var n,o,r=t[0],i=r.scrollTop,a=r.scrollHeight,l=t[1],c={viewportHeight:l,scrollTop:i,scrollHeight:a};return i+l-a>-t[4]?(i>e.state.scrollTop?(n="SCROLLED_DOWN",o=e.state.scrollTop-i):(n="SIZE_DECREASED",o=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:c,atBottomBecause:n,scrollTopDelta:o}):{atBottom:!1,notAtBottomBecause:c.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":l<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":i<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:c}}),He),A((function(e,t){return e&&e.atBottom===t.atBottom})))),g=k(C(n,N((function(e,t){var n=t.scrollTop,o=t.scrollHeight;return e.scrollHeight!==o?e.scrollTop!==n&&n===o-t.viewportHeight?{scrollHeight:o,scrollTop:n,jump:e.scrollTop-n,changed:!0}:{scrollHeight:o,scrollTop:n,jump:0,changed:!0}:{scrollTop:n,scrollHeight:o,jump:0,changed:!1}}),{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),_((function(e){return e.changed})),j((function(e){return e.jump}))),0);y(C(b,j((function(e){return e.atBottom}))),c),y(C(c,R(50)),u);var w=O("down");y(C(n,j((function(e){return e.scrollTop})),A(),N((function(e,t){return v(m)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?Fe:"down",prevScrollTop:t}}),{direction:"down",prevScrollTop:0}),j((function(e){return e.direction}))),w),y(C(n,R(50),P("none")),w);var E=O(0);return y(C(h,_((function(e){return!e})),P(0)),E),y(C(o,R(100),L(h),_((function(e){return!!e[1]})),N((function(e,t){return[e[1],t[0]]}),[0,0]),j((function(e){return e[1]-e[0]}))),E),{isScrolling:h,isAtTop:s,isAtBottom:c,atBottomState:b,atTopStateChange:d,atBottomStateChange:u,scrollDirection:w,atBottomThreshold:f,atTopThreshold:p,scrollVelocity:E,lastJumpDueToItemResize:g}}),u(ce)),We=B((function(e){var t=e[0].log,n=O(!1),o=S(C(n,_((function(e){return e})),A()));return m(n,(function(e){e&&v(t)("props updated",{},Q.DEBUG)})),{propsReady:n,didMount:o}}),u(ne),{singleton:!0}),Ge=B((function(e){var t=e[0],n=t.sizes,o=t.listRefresh,r=t.defaultItemSize,i=e[1].scrollTop,a=e[2].scrollToIndex,l=e[3].didMount,c=O(!0),s=O(0);return y(C(l,L(s),_((function(e){return!!e[1]})),P(!1)),c),m(C(z(o,l),L(c,n,r),_((function(e){var t=e[1],n=e[3];return e[0][1]&&(!de(e[2].sizeTree)||void 0!==n)&&!t})),L(s)),(function(e){var t=e[1];setTimeout((function(){w(i,(function(){b(c,!0)})),b(a,t)}))})),{scrolledToInitialItem:c,initialTopMostItemIndex:s}}),u(Me,ce,Be,We),{singleton:!0});function Ve(e){return!!e&&("smooth"===e?"smooth":"auto")}var Ke=B((function(e){var t=e[0],n=t.totalCount,o=t.listRefresh,r=e[1],i=r.isAtBottom,a=r.atBottomState,l=e[2].scrollToIndex,c=e[3].scrolledToInitialItem,s=e[4],u=s.propsReady,d=s.didMount,f=e[5].log,p=e[6].scrollingInProgress,h=O(!1),g=null;function y(e){b(l,{index:"LAST",align:"end",behavior:e})}return m(C(z(C(D(n),I(1)),d),L(D(h),i,c,p),j((function(e){var t=e[0],n=t[0],o=t[1]&&e[3],r="auto";return o&&(r=function(e,t){return"function"==typeof e?Ve(e(t)):t&&Ve(e)}(e[1],e[2]||e[4]),o=o&&!!r),{totalCount:n,shouldFollow:o,followOutputBehavior:r}})),_((function(e){return e.shouldFollow}))),(function(e){var t=e.totalCount,n=e.followOutputBehavior;g&&(g(),g=null),g=w(o,(function(){v(f)("following output to ",{totalCount:t},Q.DEBUG),y(n),g=null}))})),m(C(z(D(h),n,u),_((function(e){return e[0]&&e[2]})),N((function(e,t){var n=t[1];return{refreshed:e.value===n,value:n}}),{refreshed:!1,value:0}),_((function(e){return e.refreshed})),L(h,n)),(function(e){var t=e[1],n=w(a,(function(e){!t||e.atBottom||"SIZE_INCREASED"!==e.notAtBottomBecause||g||(v(f)("scrolling to bottom due to increased size",{},Q.DEBUG),y("auto"))}));setTimeout(n,100)})),m(z(D(h),a),(function(e){var t=e[1];e[0]&&!t.atBottom&&"VIEWPORT_HEIGHT_DECREASING"===t.notAtBottomBecause&&y("auto")})),{followOutput:h}}),u(Me,Ue,Be,Ge,We,ne,ce));function $e(e){return e.reduce((function(e,t){return e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e}),{totalCount:0,groupIndices:[]})}var Ye=B((function(e){var t=e[0],n=t.totalCount,o=t.groupIndices,r=t.sizes,i=e[1],a=i.scrollTop,l=i.headerHeight,s=x(),u=x(),d=S(C(s,j($e)));return y(C(d,j(c("totalCount"))),n),y(C(d,j(c("groupIndices"))),o),y(C(z(a,r,l),_((function(e){return qe(e[1])})),j((function(e){return he(e[1].groupOffsetTree,Math.max(e[0]-e[2],0),"v")[0]})),A(),j((function(e){return[e]}))),u),{groupCounts:s,topItemsIndexes:u}}),u(Me,ce));function Ze(e,t){return!(!e||e[0]!==t[0]||e[1]!==t[1])}function Xe(e,t){return!(!e||e.startIndex!==t.startIndex||e.endIndex!==t.endIndex)}function Qe(e,t,n){return"number"==typeof e?n===Fe&&"top"===t||"down"===n&&"bottom"===t?e:0:n===Fe?"top"===t?e.main:e.reverse:"bottom"===t?e.main:e.reverse}function Je(e,t){return"number"==typeof e?e:e[t]||0}var et=B((function(e){var t=e[0],n=t.scrollTop,o=t.viewportHeight,r=t.deviation,i=t.headerHeight,a=x(),l=O(0),c=O(0),s=O(0),u=O(0);return{listBoundary:a,overscan:u,topListHeight:l,fixedHeaderHeight:c,increaseViewportBy:s,visibleRange:k(C(z(D(n),D(o),D(i),D(a,Ze),D(u),D(l),D(c),D(r),D(s)),j((function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=r[0],a=r[1],l=e[4],c=e[6],s=e[7],u=e[8],d=t-s,f=e[5]+c,p=Math.max(o-d,0),h="none",m=Je(u,"top"),b=Je(u,"bottom");return i-=s,a+=o+c,(i+=o+c)>t+f-m&&(h=Fe),(a-=s)<t-p+n+b&&(h="down"),"none"!==h?[Math.max(d-o-Qe(l,"top",h)-m,0),d-p-c+n+Qe(l,"bottom",h)+b]:null})),_((function(e){return null!=e})),A(Ze)),[0,0])}}),u(ce),{singleton:!0}),tt={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0};function nt(e,t,n){if(0===e.length)return[];if(!qe(t))return e.map((function(e){return K({},e,{index:e.index+n,originalIndex:e.index})}));for(var o,r=[],i=xe(t.groupOffsetTree,e[0].index,e[e.length-1].index),a=void 0,l=0,c=Z(e);!(o=c()).done;){var s=o.value;(!a||a.end<s.index)&&(a=i.shift(),l=t.groupIndices.indexOf(a.start)),r.push(K({},s.index===a.start?{type:"group",index:l}:{index:s.index-(l+1)+n,groupIndex:l},{size:s.size,offset:s.offset,originalIndex:s.index,data:s.data}))}return r}function ot(e,t,n,o,r){var i=0,a=0;if(e.length>0){i=e[0].offset;var l=e[e.length-1];a=l.offset+l.size}var c=i,s=o.lastOffset+(n-o.lastIndex)*o.lastSize-a;return{items:nt(e,o,r),topItems:nt(t,o,r),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:i,offsetBottom:s,top:c,bottom:a,totalCount:n}}var rt,it,at,lt=B((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=t.data,i=t.firstItemIndex,a=e[1],l=e[2],u=l.visibleRange,d=l.listBoundary,f=l.topListHeight,p=e[3],h=p.scrolledToInitialItem,m=p.initialTopMostItemIndex,b=e[4].topListHeight,g=e[5],v=e[6].didMount,w=O([]),E=x();y(a.topItemsIndexes,w);var T=k(C(z(v,D(u),D(o),D(n),D(m),h,D(w),D(i),r),_((function(e){return e[0]})),j((function(e){var t=e[1],n=t[0],o=t[1],r=e[2],i=e[4],a=e[5],l=e[6],c=e[7],u=e[8],d=e[3],f=d.sizeTree,p=d.offsetTree;if(0===r||0===n&&0===o)return tt;if(de(f))return ot(function(e,t,n){if(qe(t)){var o=Re(e,t);return[{index:he(t.groupOffsetTree,o)[0],size:0,offset:0},{index:o,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(function(e,t){return"number"==typeof e?e:"LAST"===e.index?t-1:e.index}(i,r),d,u),[],r,d,c);var h=[];if(l.length>0)for(var m,b=l[0],g=l[l.length-1],v=0,y=Z(xe(f,b,g));!(m=y()).done;)for(var w=m.value,x=w.value,O=Math.max(w.start,b),S=Math.min(w.end,g),k=O;k<=S;k++)h.push({index:k,size:x,offset:v,data:u&&u[k]}),v+=x;if(!a)return ot([],h,r,d,c);var E=l.length>0?l[l.length-1]+1:0,C=function(e,t,n,o){return void 0===o&&(o=0),o>0&&(t=Math.max(t,Ce(e,o,Ae).offset)),Oe((i=n,l=Ee(r=e,t,a=_e),c=Ee(r,i,a,l),r.slice(l,c+1)),je);var r,i,a,l,c}(p,n,o,E);if(0===C.length)return null;var T=r-1;return ot(s([],(function(e){for(var t,r=Z(C);!(t=r()).done;){var i=t.value,a=i.value,l=a.offset,c=i.start,s=a.size;a.offset<n&&(l+=((c+=Math.floor((n-a.offset)/s))-i.start)*s),c<E&&(l+=(E-c)*s,c=E);for(var d=Math.min(i.end,T),f=c;f<=d&&!(l>=o);f++)e.push({index:f,size:s,offset:l,data:u&&u[f]}),l+=s}})),h,r,d,c)})),_((function(e){return null!==e})),A()),tt);return y(C(r,_((function(e){return void 0!==e})),j((function(e){return e.length}))),o),y(C(T,j(c("topListHeight"))),b),y(b,f),y(C(T,j((function(e){return[e.top,e.bottom]}))),d),y(C(T,j((function(e){return e.items}))),E),K({listState:T,topItemsIndexes:w,endReached:S(C(T,_((function(e){return e.items.length>0})),L(o,r),_((function(e){var t=e[0].items;return t[t.length-1].originalIndex===e[1]-1})),j((function(e){return[e[1]-1,e[2]]})),A(Ze),j((function(e){return e[0]})))),startReached:S(C(T,R(200),_((function(e){var t=e.items;return t.length>0&&t[0].originalIndex===e.topItems.length})),j((function(e){return e.items[0].index})),A())),rangeChanged:S(C(T,_((function(e){return e.items.length>0})),j((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),A(Xe))),itemsRendered:E},g)}),u(Me,Ye,et,Ge,Be,Ue,We),{singleton:!0}),ct=B((function(e){var t=e[0],n=t.sizes,o=t.firstItemIndex,r=t.data,i=e[1].listState,a=e[2].didMount,l=O(0);return y(C(a,L(l),_((function(e){return 0!==e[1]})),L(n,o,r),j((function(e){var t=e[0][1],n=e[1],o=e[2],r=e[3],i=void 0===r?[]:r,a=0;if(n.groupIndices.length>0)for(var l,c=Z(n.groupIndices);!((l=c()).done||l.value-a>=t);)a++;var s=t+a;return ot(Array.from({length:s}).map((function(e,t){return{index:t,size:0,offset:0,data:i[t]}})),[],s,n,o)}))),i),{initialItemCount:l}}),u(Me,lt,We),{singleton:!0}),st=B((function(e){var t=e[0].scrollVelocity,n=O(!1),o=x(),r=O(!1);return y(C(t,L(r,n,o),_((function(e){return!!e[1]})),j((function(e){var t=e[0],n=e[1],o=e[2],r=e[3],i=n.enter;if(o){if((0,n.exit)(t,r))return!1}else if(i(t,r))return!0;return o})),A()),n),m(C(z(n,t,o),L(r)),(function(e){var t=e[0],n=e[1];return t[0]&&n&&n.change&&n.change(t[1],t[2])})),{isSeeking:n,scrollSeekConfiguration:r,scrollVelocity:t,scrollSeekRangeChanged:o}}),u(Ue),{singleton:!0}),ut=B((function(e){var t=e[0].topItemsIndexes,n=O(0);return y(C(n,_((function(e){return e>0})),j((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:n}}),u(lt)),dt=B((function(e){var t=e[0],n=t.footerHeight,o=t.headerHeight,r=e[1].listState,i=x(),a=k(C(z(n,o,r),j((function(e){var t=e[2];return e[0]+e[1]+t.offsetBottom+t.bottom}))),0);return y(D(a),i),{totalListHeight:a,totalListHeightChanged:i}}),u(ce,lt),{singleton:!0}),ft=B((function(e){var t=e[0],n=t.scrollBy,o=t.scrollTop,r=t.deviation,i=t.scrollingInProgress,a=e[1],l=a.isScrolling,c=a.isAtBottom,s=a.atBottomState,u=a.scrollDirection,d=e[3],f=d.beforeUnshiftWith,p=d.shiftWithOffset,h=d.sizes,g=e[4].log,v=S(C(e[2].listState,L(a.lastJumpDueToItemResize),N((function(e,t){var n=e[1],o=t[0],r=o.items,i=o.totalCount,a=o.bottom+o.offsetBottom,l=0;return e[2]===i&&n.length>0&&r.length>0&&(0===r[0].originalIndex&&0===n[0].originalIndex||0!=(l=a-e[3])&&(l+=t[1])),[l,r,i,a]}),[0,[],0,0]),_((function(e){return 0!==e[0]})),L(o,u,i,g,c,s),_((function(e){return!e[3]&&0!==e[1]&&e[2]===Fe})),j((function(e){var t=e[0][0];return(0,e[4])("Upward scrolling compensation",{amount:t},Q.DEBUG),t}))));return y(C(v,L(r),j((function(e){return e[1]-e[0]}))),r),m(C(z(k(l,!1),r),_((function(e){return!e[0]&&0!==e[1]})),j((function(e){return e[1]})),R(1)),(function(e){e>0?(b(n,{top:-e,behavior:"auto"}),b(r,0)):(b(r,0),b(n,{top:-e,behavior:"auto"}))})),y(C(p,j((function(e){return{top:-e}}))),n),y(C(f,L(h),j((function(e){return e[0]*e[1].lastSize}))),v),{deviation:r}}),u(ce,Ue,lt,Me,ne)),pt=B((function(e){var t=e[0].totalListHeight,n=e[1].didMount,o=e[2].scrollTo,r=O(0);return m(C(n,L(r),_((function(e){return 0!==e[1]})),j((function(e){return{top:e[1]}}))),(function(e){w(C(t,_((function(e){return 0!==e}))),(function(){setTimeout((function(){b(o,e)}))}))})),{initialScrollTop:r}}),u(dt,We,ce),{singleton:!0}),ht=B((function(e){var t=e[0].viewportHeight,n=e[1].totalListHeight,o=O(!1);return{alignToBottom:o,paddingTopAddition:k(C(z(o,t,n),_((function(e){return e[0]})),j((function(e){return Math.max(0,e[1]-e[2])})),A()),0)}}),u(ce,dt),{singleton:!0}),mt=B((function(e){var t=e[0],n=t.scrollTo,o=t.scrollContainerState,r=x(),i=x(),a=x(),l=O(!1),c=O(void 0);return y(C(z(r,i),j((function(e){var t=e[0],n=t.viewportHeight,o=t.scrollHeight;return{scrollTop:Math.max(0,t.scrollTop-e[1].offsetTop),scrollHeight:o,viewportHeight:n}}))),o),y(C(n,L(i),j((function(e){var t=e[0];return K({},t,{top:t.top+e[1].offsetTop})}))),a),{useWindowScroll:l,customScrollParent:c,windowScrollContainerState:r,windowViewportRect:i,windowScrollTo:a}}),u(ce)),bt=B((function(e){var t=e[0],n=t.sizes,o=t.totalCount,r=e[1],i=r.scrollTop,a=r.viewportHeight,l=r.headerHeight,c=r.scrollingInProgress,s=e[2].scrollToIndex,u=x();return y(C(u,L(n,a,o,l,i),j((function(e){var t=e[0],n=t.index,o=t.behavior,r=void 0===o?"auto":o,i=t.done,a=e[1],l=e[2],s=e[4],u=e[5],d=e[3]-1,f=null;n=Re(n,a);var p=Ie(n=Math.max(0,n,Math.min(d,n)),a.offsetTree)+s;return p<u?f={index:n,behavior:r,align:"start"}:p+he(a.sizeTree,n)[1]>u+l&&(f={index:n,behavior:r,align:"end"}),f?i&&w(C(c,I(1),_((function(e){return!1===e}))),i):i&&i(),f})),_((function(e){return null!==e}))),s),{scrollIntoView:u}}),u(Me,ce,Be,lt,ne),{singleton:!0}),gt=["listState","topItemsIndexes"],vt=B((function(e){return K({},e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])}),u(et,ct,We,st,dt,pt,ht,mt,bt)),yt=B((function(e){var t=e[0],n=t.totalCount,o=t.sizeRanges,r=t.fixedItemSize,i=t.defaultItemSize,a=t.trackItemSizes,l=t.itemSize,s=t.data,u=t.firstItemIndex,d=t.groupIndices,f=t.statefulTotalCount,p=e[1],h=p.initialTopMostItemIndex,m=p.scrolledToInitialItem,b=e[2],g=e[3],v=e[4],w=v.listState,x=v.topItemsIndexes,O=$(v,gt),S=e[5].scrollToIndex,k=e[7].topItemCount,E=e[8].groupCounts,T=e[9],A=e[10];return y(O.rangeChanged,T.scrollSeekRangeChanged),y(C(T.windowViewportRect,j(c("visibleHeight"))),b.viewportHeight),K({totalCount:n,data:s,firstItemIndex:u,sizeRanges:o,initialTopMostItemIndex:h,scrolledToInitialItem:m,topItemsIndexes:x,topItemCount:k,groupCounts:E,fixedItemHeight:r,defaultItemHeight:i},g,{statefulTotalCount:f,listState:w,scrollToIndex:S,trackItemSizes:a,itemSize:l,groupIndices:d},O,T,b,A)}),u(Me,Ge,ce,Ke,lt,Be,ft,ut,Ye,vt,ne)),wt=(rt=function(){if("undefined"==typeof document)return"sticky";var e=document.createElement("div");return e.style.position="-webkit-sticky","-webkit-sticky"===e.style.position?"-webkit-sticky":"sticky"},at=!1,function(){return at||(at=!0,it=rt()),it});function xt(e,t){var n=Object(o.useRef)(null),r=Object(o.useCallback)((function(o){if(null!==o){var r,i,a=o.getBoundingClientRect(),l=a.width;if(t){var c=t.getBoundingClientRect(),s=a.top-c.top;r=c.height-Math.max(0,s),i=s+t.scrollTop}else r=window.innerHeight-Math.max(0,a.top),i=a.top+window.pageYOffset;n.current={offsetTop:i,visibleHeight:r,visibleWidth:l},e(n.current)}}),[e,t]),i=oe(r),a=i.callbackRef,l=i.ref,c=Object(o.useCallback)((function(){r(l.current)}),[r,l]);return Object(o.useEffect)((function(){if(t){t.addEventListener("scroll",c);var e=new ResizeObserver(c);return e.observe(t),function(){t.removeEventListener("scroll",c),e.unobserve(t)}}return window.addEventListener("scroll",c),window.addEventListener("resize",c),function(){window.removeEventListener("scroll",c),window.removeEventListener("resize",c)}}),[c,t]),a}var Ot=["placeholder"],St=["style","children"],kt=["style","children"];function Et(e){return e}var Ct=B((function(){var e=O((function(e){return"Item "+e})),t=O(null),n=O((function(e){return"Group "+e})),o=O({}),r=O(Et),i=O("div"),a=O(h),l=function(e,t){return void 0===t&&(t=null),k(C(o,j((function(t){return t[e]})),A()),t)};return{context:t,itemContent:e,groupContent:n,components:o,computeItemKey:r,headerFooterTag:i,scrollerRef:a,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}}));function Tt(e,t){var n=x();return m(n,(function(){return console.warn("react-virtuoso: You are using a deprecated property. "+t,"color: red;","color: inherit;","color: blue;")})),y(n,e),n}var At=B((function(e){var t=e[0],n=e[1],o={item:Tt(n.itemContent,"Rename the %citem%c prop to %citemContent."),group:Tt(n.groupContent,"Rename the %cgroup%c prop to %cgroupContent."),topItems:Tt(t.topItemCount,"Rename the %ctopItems%c prop to %ctopItemCount."),itemHeight:Tt(t.fixedItemHeight,"Rename the %citemHeight%c prop to %cfixedItemHeight."),scrollingStateChange:Tt(t.isScrolling,"Rename the %cscrollingStateChange%c prop to %cisScrolling."),adjustForPrependedItems:x(),maxHeightCacheSize:x(),footer:x(),header:x(),HeaderContainer:x(),FooterContainer:x(),ItemContainer:x(),ScrollContainer:x(),GroupContainer:x(),ListContainer:x(),emptyComponent:x(),scrollSeek:x()};function r(e,t,o){y(C(e,L(n.components),j((function(e){var n,r=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),K({},i,((n={})[t]=r,n))}))),n.components)}return m(o.adjustForPrependedItems,(function(){console.warn("react-virtuoso: adjustForPrependedItems is no longer supported. Use the firstItemIndex property instead - https://virtuoso.dev/prepend-items.","color: red;","color: inherit;","color: blue;")})),m(o.maxHeightCacheSize,(function(){console.warn("react-virtuoso: maxHeightCacheSize is no longer necessary. Setting it has no effect - remove it from your code.")})),m(o.HeaderContainer,(function(){console.warn("react-virtuoso: HeaderContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the header component and pass components.Header to change its contents.")})),m(o.FooterContainer,(function(){console.warn("react-virtuoso: FooterContainer is deprecated. Use headerFooterTag if you want to change the wrapper of the footer component and pass components.Footer to change its contents.")})),m(o.scrollSeek,(function(e){var o=e.placeholder,r=$(e,Ot);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),b(n.components,K({},v(n.components),{ScrollSeekPlaceholder:o})),b(t.scrollSeekConfiguration,r)})),r(o.footer,"Footer","footer"),r(o.header,"Header","header"),r(o.ItemContainer,"Item","ItemContainer"),r(o.ListContainer,"List","ListContainer"),r(o.ScrollContainer,"Scroller","ScrollContainer"),r(o.emptyComponent,"EmptyPlaceholder","emptyComponent"),r(o.GroupContainer,"Group","GroupContainer"),K({},t,n,o)}),u(yt,Ct)),_t=function(e){return o.createElement("div",{style:{height:e.height}})},jt={position:wt(),zIndex:1,overflowAnchor:"none"},Pt={overflowAnchor:"none"},Nt=o.memo((function(e){var t=e.showTopList,n=void 0!==t&&t,r=Kt("listState"),i=Vt("sizeRanges"),a=Kt("useWindowScroll"),l=Kt("customScrollParent"),c=Vt("windowScrollContainerState"),s=Vt("scrollContainerState"),u=l||a?c:s,d=Kt("itemContent"),f=Kt("context"),p=Kt("groupContent"),m=Kt("trackItemSizes"),b=ie(i,Kt("itemSize"),m,n?h:u,Kt("log"),l),g=b.callbackRef,v=b.ref,y=o.useState(0),w=y[0],x=y[1];$t("deviation",(function(e){w!==e&&(v.current.style.marginTop=e+"px",x(e))}));var O=Kt("EmptyPlaceholder"),S=Kt("ScrollSeekPlaceholder")||_t,k=Kt("ListComponent"),E=Kt("ItemComponent"),C=Kt("GroupComponent"),T=Kt("computeItemKey"),A=Kt("isSeeking"),_=Kt("groupIndices").length>0,j=Kt("paddingTopAddition"),P=Kt("firstItemIndex"),N=Kt("statefulTotalCount"),I=n?{}:{boxSizing:"border-box",paddingTop:r.offsetTop+j,paddingBottom:r.offsetBottom,marginTop:w};return!n&&0===N&&O?Object(o.createElement)(O,Lt(O,f)):Object(o.createElement)(k,K({},Lt(k,f),{ref:g,style:I,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?r.topItems:r.items).map((function(e){var t=e.originalIndex,n=T(t+P,e.data,f);return A?Object(o.createElement)(S,K({},Lt(S,f),{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?Object(o.createElement)(C,K({},Lt(C,f),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:jt}),p(e.index)):Object(o.createElement)(E,K({},Lt(E,f),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,style:Pt}),_?d(e.index,e.groupIndex,e.data,f):d(e.index,e.data,f))})))})),It={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Rt={width:"100%",height:"100%",position:"absolute",top:0},qt={width:"100%",position:wt(),top:0};function Lt(e,t){if("string"!=typeof e)return{context:t}}var Mt=o.memo((function(){var e=Kt("HeaderComponent"),t=Vt("headerHeight"),n=Kt("headerFooterTag"),r=re((function(e){return t(ae(e,"height"))})),i=Kt("context");return e?Object(o.createElement)(n,{ref:r},Object(o.createElement)(e,Lt(e,i))):null})),Dt=o.memo((function(){var e=Kt("FooterComponent"),t=Vt("footerHeight"),n=Kt("headerFooterTag"),r=re((function(e){return t(ae(e,"height"))})),i=Kt("context");return e?Object(o.createElement)(n,{ref:r},Object(o.createElement)(e,Lt(e,i))):null}));function zt(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return o.memo((function(e){var i=e.style,a=e.children,l=$(e,St),c=t("scrollContainerState"),s=r("ScrollerComponent"),u=t("smoothScrollTargetReached"),d=r("scrollerRef"),f=r("context"),p=le(c,u,s,d),h=p.scrollerRef,m=p.scrollByCallback;return n("scrollTo",p.scrollToCallback),n("scrollBy",m),Object(o.createElement)(s,K({ref:h,style:K({},It,i),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},l,Lt(s,f)),a)}))}function Bt(e){var t=e.usePublisher,n=e.useEmitter,r=e.useEmitterValue;return o.memo((function(e){var i=e.style,a=e.children,l=$(e,kt),c=t("windowScrollContainerState"),s=r("ScrollerComponent"),u=t("smoothScrollTargetReached"),d=r("totalListHeight"),f=r("deviation"),p=r("customScrollParent"),m=r("context"),b=le(c,u,s,h,p),g=b.scrollerRef,v=b.scrollByCallback,y=b.scrollToCallback;return ee((function(){return g.current=p||window,function(){g.current=null}}),[g,p]),n("windowScrollTo",y),n("scrollBy",v),Object(o.createElement)(s,K({style:K({position:"relative"},i,0!==d?{height:d+f}:{}),"data-virtuoso-scroller":!0},l,Lt(s,m)),a)}))}var Ft=function(e){var t=e.children,n=re(r(Vt("viewportHeight"),(function(e){return ae(e,"height")})));return o.createElement("div",{style:Rt,ref:n,"data-viewport-type":"element"},t)},Ht=function(e){var t=e.children,n=xt(Vt("windowViewportRect"),Kt("customScrollParent"));return o.createElement("div",{ref:n,style:Rt,"data-viewport-type":"window"},t)},Ut=function(e){var t=e.children,n=Kt("TopItemListComponent"),r=Kt("headerHeight"),i=K({},qt,{marginTop:r+"px"}),a=Kt("context");return Object(o.createElement)(n||"div",{style:i,context:a},t)},Wt=V(At,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering",item:"item",group:"group",topItems:"topItems",itemHeight:"itemHeight",scrollingStateChange:"scrollingStateChange",maxHeightCacheSize:"maxHeightCacheSize",footer:"footer",header:"header",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",GroupContainer:"GroupContainer",emptyComponent:"emptyComponent",HeaderContainer:"HeaderContainer",FooterContainer:"FooterContainer",scrollSeek:"scrollSeek"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",adjustForPrependedItems:"adjustForPrependedItems"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Kt("useWindowScroll"),n=Kt("topItemsIndexes").length>0,r=Kt("customScrollParent"),i=r||t?Ht:Ft;return o.createElement(r||t?Zt:Yt,K({},e),o.createElement(i,null,o.createElement(Mt,null),o.createElement(Nt,null),o.createElement(Dt,null)),n&&o.createElement(Ut,null,o.createElement(Nt,{showTopList:!0})))}))),Gt=Wt.Component,Vt=Wt.usePublisher,Kt=Wt.useEmitterValue,$t=Wt.useEmitter,Yt=zt({usePublisher:Vt,useEmitterValue:Kt,useEmitter:$t}),Zt=Bt({usePublisher:Vt,useEmitterValue:Kt,useEmitter:$t}),Xt={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Qt={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Jt=Math.round,en=Math.ceil,tn=Math.floor,nn=Math.min,on=Math.max;function rn(e,t){return Array.from({length:t-e+1}).map((function(t,n){return{index:n+e}}))}var an=B((function(e){var t=e[0],n=t.overscan,o=t.visibleRange,r=t.listBoundary,i=e[1],a=i.scrollTop,l=i.viewportHeight,c=i.scrollBy,s=i.scrollTo,u=i.smoothScrollTargetReached,d=i.scrollContainerState,f=e[2],p=e[3],h=e[4],m=h.propsReady,b=h.didMount,g=e[5],v=g.windowViewportRect,w=g.windowScrollTo,E=g.useWindowScroll,T=g.customScrollParent,N=g.windowScrollContainerState,I=O(0),R=O(0),q=O(Xt),M=O({height:0,width:0}),B=O({height:0,width:0}),F=x(),H=x(),U=O(0);y(C(b,L(R),_((function(e){return 0!==e[1]})),j((function(e){return{items:rn(0,e[1]-1),top:0,bottom:0,offsetBottom:0,offsetTop:0,itemHeight:0,itemWidth:0}}))),q),y(C(z(D(I),o,D(B,(function(e,t){return e&&e.width===t.width&&e.height===t.height}))),L(M),j((function(e){var t=e[0],n=t[0],o=t[1],r=o[0],i=o[1],a=t[2],l=e[1],c=a.height,s=a.width,u=l.width;if(0===n||0===u)return Xt;if(0===s)return Qt;var d=sn(u,s),f=d*tn(r/c),p=d*en(i/c)-1;p=nn(n-1,p);var h=rn(f=nn(p,on(0,f)),p),m=ln(l,a,h),b=m.top,g=m.bottom;return{items:h,offsetTop:b,offsetBottom:en(n/d)*c-g,top:b,bottom:g,itemHeight:c,itemWidth:s}}))),q),y(C(M,j((function(e){return e.height}))),l),y(C(z(M,B,q),j((function(e){var t=ln(e[0],e[1],e[2].items);return[t.top,t.bottom]})),A(Ze)),r);var W=S(C(D(q),_((function(e){return e.items.length>0})),L(I),_((function(e){var t=e[0].items;return t[t.length-1].index===e[1]-1})),j((function(e){return e[1]-1})),A())),G=S(C(D(q),_((function(e){var t=e.items;return t.length>0&&0===t[0].index})),P(0),A())),V=S(C(D(q),_((function(e){return e.items.length>0})),j((function(e){var t=e.items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),A(Xe)));y(V,p.scrollSeekRangeChanged),y(C(F,L(M,B,I),j((function(e){var t=e[1],n=e[2],o=e[3],r=ze(e[0]),i=r.align,a=r.behavior,l=r.offset,c=r.index;"LAST"===c&&(c=o-1);var s=cn(t,n,c=on(0,c,nn(o-1,c)));return"end"===i?s=Jt(s-t.height+n.height):"center"===i&&(s=Jt(s-t.height/2+n.height/2)),l&&(s+=l),{top:s,behavior:a}}))),s);var $=k(C(q,j((function(e){return e.offsetBottom+e.bottom}))),0);return y(C(v,j((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),M),K({totalCount:I,viewportDimensions:M,itemDimensions:B,scrollTop:a,scrollHeight:H,overscan:n,scrollBy:c,scrollTo:s,scrollToIndex:F,smoothScrollTargetReached:u,windowViewportRect:v,windowScrollTo:w,useWindowScroll:E,customScrollParent:T,windowScrollContainerState:N,deviation:U,scrollContainerState:d,initialItemCount:R},p,{gridState:q,totalListHeight:$},f,{startReached:G,endReached:W,rangeChanged:V,propsReady:m})}),u(et,ce,Ue,st,We,mt));function ln(e,t,n){var o=t.height;return void 0===o||0===n.length?{top:0,bottom:0}:{top:cn(e,t,n[0].index),bottom:cn(e,t,n[n.length-1].index)+o}}function cn(e,t,n){var o=sn(e.width,t.width);return tn(n/o)*t.height}function sn(e,t){return on(1,tn(e/t))}var un=["placeholder"],dn=B((function(){var e=O((function(e){return"Item "+e})),t=O({}),n=O(null),o=O("virtuoso-grid-item"),r=O("virtuoso-grid-list"),i=O(Et),a=O(h),l=function(e,n){return void 0===n&&(n=null),k(C(t,j((function(t){return t[e]})),A()),n)};return{context:n,itemContent:e,components:t,computeItemKey:i,itemClassName:o,listClassName:r,scrollerRef:a,ListComponent:l("List","div"),ItemComponent:l("Item","div"),ScrollerComponent:l("Scroller","div"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}})),fn=B((function(e){var t=e[0],n=e[1],o={item:Tt(n.itemContent,"Rename the %citem%c prop to %citemContent."),ItemContainer:x(),ScrollContainer:x(),ListContainer:x(),emptyComponent:x(),scrollSeek:x()};function r(e,t,o){y(C(e,L(n.components),j((function(e){var n,r=e[0],i=e[1];return console.warn("react-virtuoso: "+o+" property is deprecated. Pass components."+t+" instead."),K({},i,((n={})[t]=r,n))}))),n.components)}return m(o.scrollSeek,(function(e){var o=e.placeholder,r=$(e,un);console.warn("react-virtuoso: scrollSeek property is deprecated. Pass scrollSeekConfiguration and specify the placeholder in components.ScrollSeekPlaceholder instead."),b(n.components,K({},v(n.components),{ScrollSeekPlaceholder:o})),b(t.scrollSeekConfiguration,r)})),r(o.ItemContainer,"Item","ItemContainer"),r(o.ListContainer,"List","ListContainer"),r(o.ScrollContainer,"Scroller","ScrollContainer"),K({},t,n,o)}),u(an,dn)),pn=o.memo((function(){var e=vn("gridState"),t=vn("listClassName"),n=vn("itemClassName"),r=vn("itemContent"),i=vn("computeItemKey"),a=vn("isSeeking"),l=gn("scrollHeight"),c=vn("ItemComponent"),s=vn("ListComponent"),u=vn("ScrollSeekPlaceholder"),d=vn("context"),f=gn("itemDimensions"),p=re((function(e){l(e.parentElement.parentElement.scrollHeight);var t=e.firstChild;t&&f(t.getBoundingClientRect())}));return Object(o.createElement)(s,K({ref:p,className:t},Lt(s,d),{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom}}),e.items.map((function(t){var l=i(t.index);return a?Object(o.createElement)(u,K({key:l},Lt(u,d),{index:t.index,height:e.itemHeight,width:e.itemWidth})):Object(o.createElement)(c,K({},Lt(c,d),{className:n,"data-index":t.index,key:l}),r(t.index,d))})))})),hn=function(e){var t=e.children,n=gn("viewportDimensions"),r=re((function(e){n(e.getBoundingClientRect())}));return o.createElement("div",{style:Rt,ref:r},t)},mn=function(e){var t=e.children,n=xt(gn("windowViewportRect"),vn("customScrollParent"));return o.createElement("div",{ref:n,style:Rt},t)},bn=V(fn,{optional:{totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",item:"item",ItemContainer:"ItemContainer",ScrollContainer:"ScrollContainer",ListContainer:"ListContainer",scrollSeek:"scrollSeek"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange"}},o.memo((function(e){var t=K({},e),n=vn("useWindowScroll"),r=vn("customScrollParent"),i=r||n?mn:hn;return o.createElement(r||n?xn:wn,K({},t),o.createElement(i,null,o.createElement(pn,null)))}))),gn=(bn.Component,bn.usePublisher),vn=bn.useEmitterValue,yn=bn.useEmitter,wn=zt({usePublisher:gn,useEmitterValue:vn,useEmitter:yn}),xn=Bt({usePublisher:gn,useEmitterValue:vn,useEmitter:yn}),On=B((function(){var e=O((function(e){return o.createElement("td",null,"Item $",e)})),t=O(null),n=O(null),r=O({}),i=O(Et),a=O(h),l=function(e,t){return void 0===t&&(t=null),k(C(r,j((function(t){return t[e]})),A()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,components:r,computeItemKey:i,scrollerRef:a,TableComponent:l("Table","table"),TableHeadComponent:l("TableHead","thead"),TableBodyComponent:l("TableBody","tbody"),TableRowComponent:l("TableRow","tr"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),FillerRow:l("FillerRow")}})),Sn=B((function(e){return K({},e[0],e[1])}),u(yt,On)),kn=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height}}))},En=function(e){return o.createElement("tr",null,o.createElement("td",{style:{height:e.height,padding:0,border:0}}))},Cn=o.memo((function(){var e=Pn("listState"),t=jn("sizeRanges"),n=Pn("useWindowScroll"),r=Pn("customScrollParent"),i=jn("windowScrollContainerState"),a=jn("scrollContainerState"),l=r||n?i:a,c=Pn("itemContent"),s=Pn("trackItemSizes"),u=ie(t,Pn("itemSize"),s,l,Pn("log"),r),d=u.callbackRef,f=u.ref,p=o.useState(0),h=p[0],m=p[1];Nn("deviation",(function(e){h!==e&&(f.current.style.marginTop=e+"px",m(e))}));var b=Pn("EmptyPlaceholder"),g=Pn("ScrollSeekPlaceholder")||kn,v=Pn("FillerRow")||En,y=Pn("TableBodyComponent"),w=Pn("TableRowComponent"),x=Pn("computeItemKey"),O=Pn("isSeeking"),S=Pn("paddingTopAddition"),k=Pn("firstItemIndex"),E=Pn("statefulTotalCount"),C=Pn("context");if(0===E&&b)return Object(o.createElement)(b,Lt(b,C));var T=e.offsetTop+S+h,A=e.offsetBottom,_=T>0?o.createElement(v,{height:T,key:"padding-top"}):null,j=A>0?o.createElement(v,{height:A,key:"padding-bottom"}):null,P=e.items.map((function(e){var t=e.originalIndex,n=x(t+k,e.data,C);return O?Object(o.createElement)(g,K({},Lt(g,C),{key:n,index:e.index,height:e.size,type:e.type||"item"})):Object(o.createElement)(w,K({},Lt(w,C),{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:{overflowAnchor:"none"}}),c(e.index,e.data,C))}));return Object(o.createElement)(y,K({ref:d,"data-test-id":"virtuoso-item-list"},Lt(y,C)),[_].concat(P,[j]))})),Tn=function(e){var t=e.children,n=re(r(jn("viewportHeight"),(function(e){return ae(e,"height")})));return o.createElement("div",{style:Rt,ref:n,"data-viewport-type":"element"},t)},An=function(e){var t=e.children,n=xt(jn("windowViewportRect"),Pn("customScrollParent"));return o.createElement("div",{ref:n,style:Rt,"data-viewport-type":"window"},t)},_n=V(Sn,{required:{},optional:{context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",react18ConcurrentRendering:"react18ConcurrentRendering"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o.memo((function(e){var t=Pn("useWindowScroll"),n=Pn("customScrollParent"),i=jn("fixedHeaderHeight"),a=Pn("fixedHeaderContent"),l=Pn("context"),c=re(r(i,(function(e){return ae(e,"height")}))),s=n||t?Rn:In,u=n||t?An:Tn,d=Pn("TableComponent"),f=Pn("TableHeadComponent"),p=a?o.createElement(f,K({key:"TableHead",style:{zIndex:1,position:"sticky",top:0},ref:c},Lt(f,l)),a()):null;return o.createElement(s,K({},e),o.createElement(u,null,o.createElement(d,K({style:{borderSpacing:0}},Lt(d,l)),[p,o.createElement(Cn,{key:"TableBody"})])))}))),jn=(_n.Component,_n.usePublisher),Pn=_n.useEmitterValue,Nn=_n.useEmitter,In=zt({usePublisher:jn,useEmitterValue:Pn,useEmitter:Nn}),Rn=Bt({usePublisher:jn,useEmitterValue:Pn,useEmitter:Nn}),qn=Gt},1656:function(e,t,n){"use strict";n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(44),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(15),c=n.n(l),s=n(305),u=n(96),d=n(41),f=n(1404),p=n(51);n(1727);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var b=function(e,t){var n=h(Object(o.useState)(1),2),r=n[0],i=n[1];return Object(o.useEffect)((function(){for(var n=-1,o=null==e?void 0:e.current;o;)n++,o=o.parentElement.closest(t);i(n)}),[e]),r};n(30),n(34),n(27),n(50),n(31),n(28),n(48),n(24),n(47),n(49),n(37),n(29);function g(e){return(g="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 v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e,t,n,o,r){var i=w(w(w(w(w(w(w(w(w({},r.DELETE,(function(){return n})),r.DOWNLOAD,(function(){return"portfolio"!==t})),r.OPENFILE,(function(){return"portfolio"!==t})),r.SETDEST,(function(){return"outline"!==t})),r.OPENFORMFIELDPANEL,(function(){return["portfolio","bookmark","outline"].includes(t)})),r.MOVE_LEFT,(function(){return"outline"!==t})),r.MOVE_RIGHT,(function(){return"outline"!==t})),r.MOVE_UP,(function(){return"outline"!==t&&"portfolio"!==t})),r.MOVE_DOWN,(function(){return"outline"!==t&&"portfolio"!==t}));return e.map((function(e){var n=e.option,r=!!i[n]&&i[n]();return y(y({},e),{},{hidden:r,dataElement:"".concat(t).concat(e.dataElement),onClick:function(){return o(e.option)}})}))},O=n(1584),S=n(6),k=n(3);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=function(e){var t=e.children;return t&&0!==t.length?r.a.createElement("ul",{className:"panel-list-children"},t.map((function(e){return r.a.createElement("li",{key:null==e?void 0:e.key},e)}))):null};T.propTypes={children:a.a.oneOfType([a.a.arrayOf(a.a.node),a.a.node])};var A=r.a.memo((function(e){var t=e.iconGlyph,n=e.labelHeader,o=e.onDoubleClick,i=e.onClick,a=e.useI18String,l=e.textColor,s=e.isActive;return r.a.createElement(r.a.Fragment,null,t&&r.a.createElement("div",{className:"panel-list-icon-container"},r.a.createElement(p.a,{glyph:t})),r.a.createElement("div",{className:"panel-list-text-container"},r.a.createElement("div",{className:"panel-list-label-header"},r.a.createElement(d.a,{style:{color:l||"inherit"},ariaLabel:n,label:n,onDoubleClick:o,onClick:i,className:c()({"set-focus":s}),useI18String:a}))))}));A.displayName="PanelItemContent",A.propTypes={iconGlyph:a.a.string,labelHeader:a.a.string.isRequired,onDoubleClick:a.a.func,onClick:a.a.func,useI18String:a.a.bool,textColor:a.a.string,isActive:a.a.bool};var _=function(e){var t=e.checkboxOptions,n=e.children,i=e.contentMenuFlyoutOptions,a=void 0===i?{}:i,l=e.contextMenuMoreButtonOptions,p=void 0===l?{}:l,h=e.description,m=e.enableMoreOptionsContextMenuFlyout,g=e.iconGlyph,v=e.labelHeader,y=e.useI18String,w=void 0===y||y,C=e.onDoubleClick,_=void 0===C?function(){}:C,j=e.onClick,P=void 0===j?function(){}:j,N=e.expanded,I=e.setIsExpandedHandler,R=e.textColor,q=e.isActive,L=Object(o.useRef)(),M=b(L),D=E(Object(o.useState)(null!=N&&N),2),z=D[0],B=D[1],F=Object(s.a)().t,H=Object(S.d)(),U=a.shouldHideDeleteButton,W=void 0!==U&&U,G=a.currentFlyout,V=a.flyoutSelector,K=a.type,$=a.handleOnClick,Y=p.flyoutToggleElement,Z=p.moreOptionsDataElement,X=t&&!t.disabled||!1;Object(o.useEffect)((function(){B(N)}),[N]);return r.a.createElement("div",{"data-element":"panelListItem",className:"panel-list-item",ref:L},r.a.createElement("div",{className:c()({"panel-list-grid":!0,"grid-with-2-rows":h,"grid-with-1-row":!h,"grid-with-3-columns":!g&&!t,"grid-with-4-columns":g||t,"grid-with-5-columns":g&&t})},r.a.createElement("div",{className:c()("panel-list-row".concat(t?" with-checkbox":""),"focusable-container")},X&&r.a.createElement("div",{style:{"--checkbox-left":"".concat(-32*M+4,"px")},className:"checkbox"},r.a.createElement(f.a,{role:"checkbox",id:null==t?void 0:t.id,"aria-label":null==t?void 0:t.ariaLabel,"aria-checked":null==t?void 0:t.checked,checked:null==t?void 0:t.checked,onChange:null==t?void 0:t.onChange})),r.a.createElement("div",{onClick:function(e){e.stopPropagation(),B(!z),I&&I(!z)},className:c()({"chevron-container":!0,toggled:z,visible:n&&n.length>0})},r.a.createElement(d.a,{img:"icon-chevron-right",className:"panel-list-button",ariaExpanded:z,ariaLabel:"".concat(F(z?"action.collapse":"action.expand")," ").concat(v)})),r.a.createElement(A,{iconGlyph:g,labelHeader:v,onDoubleClick:_,onClick:P,useI18String:w,textColor:R,isActive:q}),m&&r.a.createElement("div",{className:"panel-list-more-options"},r.a.createElement(u.a,{className:"toggle-more-button",title:"".concat(F("option.searchPanel.moreOptions")," ").concat(v),toggleElement:Y,dataElement:Z,img:"icon-tool-more",disabled:!1,onClick:function(e){e.stopPropagation();var t={dataElement:V,className:"MoreOptionsContextMenuFlyout",items:x(O.a,K,W,$,O.b)};H(G?k.a.updateFlyout(V,t):k.a.addFlyout(t)),H(k.a.setFlyoutToggleElement(Z)),H(k.a.toggleElement(V))}}))),h&&r.a.createElement("div",{className:"panel-list-description"},h)),z&&r.a.createElement(T,null,n))};_.propTypes={checkboxOptions:a.a.shape({id:a.a.string,checked:a.a.bool,onChange:a.a.func,ariaLabel:a.a.string,disabled:a.a.bool}),useI18String:a.a.bool,iconGlyph:a.a.string,labelHeader:a.a.string.isRequired,description:a.a.string,enableMoreOptionsContextMenuFlyout:a.a.bool,children:a.a.node,onDoubleClick:a.a.func,onClick:a.a.func,expanded:a.a.bool,textColor:a.a.string,setIsExpandedHandler:a.a.func,contentMenuFlyoutOptions:a.a.shape({shouldHideDeleteButton:a.a.bool,currentFlyout:a.a.object,flyoutSelector:a.a.string,type:a.a.string,handleOnClick:a.a.func}),contextMenuMoreButtonOptions:a.a.shape({flyoutToggleElement:a.a.string,moreOptionsDataElement:a.a.string}),isActive:a.a.bool};t.a=_},1657:function(e,t,n){"use strict";var o=n(1580),r=Object.create,i=function(){function e(){}return function(t){if(!Object(o.a)(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),a=n(1661);var l=function(){return!1};t.a=function(e){return"function"!=typeof e.constructor||l(e)?{}:i(Object(a.a)(e))}},1661:function(e,t,n){"use strict";var o=n(1604),r=Object(o.a)(Object.getPrototypeOf,Object);t.a=r},1662:function(e,t,n){var o=n(55),r=n(625);o({target:"Number",stat:!0,forced:Number.parseInt!=r},{parseInt:r})},1663:function(e,t,n){"use strict";var o,r=n(75);!function(e){e.mouse="mouse",e.touch="touch",e.keyboard="keyboard"}(o||(o={}));var i=1,a=0;function l(e){return void 0===e.button||e.button===a}function c(e){return!!e.targetTouches}function s(e,t){return c(e)?function(e,t){return 1===e.targetTouches.length?s(e.targetTouches[0]):t&&1===e.touches.length&&e.touches[0].target===t.target?s(e.touches[0]):void 0}(e,t):{x:e.clientX,y:e.clientY}}var u=function(){var e=!1;try{addEventListener("test",(function(){}),Object.defineProperty({},"passive",{get:function(){return e=!0,!0}}))}catch(e){}return e}();function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var f,p=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.enableTouchEvents=!0,this.enableMouseEvents=!1,this.enableKeyboardEvents=!1,this.ignoreContextMenu=!1,this.enableHoverOutsideTarget=!1,this.touchSlop=0,this.scrollAngleRanges=void 0,this.context=n,this.delayTouchStart=t.delayTouchStart||t.delay||0,this.delayMouseStart=t.delayMouseStart||t.delay||0,Object.keys(t).forEach((function(e){null!=t[e]&&(o[e]=t[e])}))}var t,n,o;return t=e,(n=[{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&d(t.prototype,n),o&&d(t,o),e}();function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(m(f={},o.mouse,{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"}),m(f,o.touch,{start:"touchstart",move:"touchmove",end:"touchend"}),m(f,o.keyboard,{keydown:"keydown"}),f),g=function(){function e(t,n,r){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.getSourceClientOffset=function(e){return function(e){var t=1===e.nodeType?e:e.parentElement;if(t){var n=t.getBoundingClientRect(),o=n.top;return{x:n.left,y:o}}}(a.sourceNodes[e])},this.handleTopMoveStartCapture=function(e){l(e)&&(a.moveStartSourceIds=[])},this.handleMoveStart=function(e){Array.isArray(a.moveStartSourceIds)&&a.moveStartSourceIds.unshift(e)},this.handleTopMoveStart=function(e){if(l(e)){var t=s(e);t&&(c(e)&&(a.lastTargetTouchFallback=e.targetTouches[0]),a._mouseClientOffset=t),a.waitingForDelay=!1}},this.handleTopMoveStartDelay=function(e){if(l(e)){var t=e.type===b.touch.start?a.options.delayTouchStart:a.options.delayMouseStart;a.timeout=setTimeout(a.handleTopMoveStart.bind(a,e),t),a.waitingForDelay=!0}},this.handleTopMoveCapture=function(){a.dragOverTargetIds=[]},this.handleMove=function(e,t){a.dragOverTargetIds&&a.dragOverTargetIds.unshift(t)},this.handleTopMove=function(e){if(a.timeout&&clearTimeout(a.timeout),a.document&&!a.waitingForDelay){var t,n,o,r,i=a.moveStartSourceIds,l=a.dragOverTargetIds,c=a.options.enableHoverOutsideTarget,u=s(e,a.lastTargetTouchFallback);if(u)if(a._isScrolling||!a.monitor.isDragging()&&function(e,t,n,o,r){if(!r)return!1;for(var i=180*Math.atan2(o-t,n-e)/Math.PI+180,a=0;a<r.length;++a)if((null==r[a].start||i>=r[a].start)&&(null==r[a].end||i<=r[a].end))return!0;return!1}(a._mouseClientOffset.x||0,a._mouseClientOffset.y||0,u.x,u.y,a.options.scrollAngleRanges))a._isScrolling=!0;else if(!a.monitor.isDragging()&&a._mouseClientOffset.hasOwnProperty("x")&&i&&(t=a._mouseClientOffset.x||0,n=a._mouseClientOffset.y||0,o=u.x,r=u.y,Math.sqrt(Math.pow(Math.abs(o-t),2)+Math.pow(Math.abs(r-n),2))>(a.options.touchSlop?a.options.touchSlop:0))&&(a.moveStartSourceIds=void 0,a.actions.beginDrag(i,{clientOffset:a._mouseClientOffset,getSourceClientOffset:a.getSourceClientOffset,publishSource:!1})),a.monitor.isDragging()){var d=a.sourceNodes[a.monitor.getSourceId()];a.installSourceNodeRemovalObserver(d),a.actions.publishDragSource(),e.preventDefault();var f=(l||[]).map((function(e){return a.targetNodes[e]})),p=a.options.getDropTargetElementsAtPoint?a.options.getDropTargetElementsAtPoint(u.x,u.y,f):a.document.elementsFromPoint(u.x,u.y),h=[];for(var m in p)if(p.hasOwnProperty(m)){var b=p[m];for(h.push(b);b;)b=b.parentElement,-1===h.indexOf(b)&&h.push(b)}var g=h.filter((function(e){return f.indexOf(e)>-1})).map((function(e){for(var t in a.targetNodes)if(e===a.targetNodes[t])return t})).filter((function(e){return!!e})).filter((function(e,t,n){return n.indexOf(e)===t}));if(c)for(var v in a.targetNodes)if(a.targetNodes[v]&&a.targetNodes[v].contains(d)&&-1===g.indexOf(v)){g.unshift(v);break}g.reverse(),a.actions.hover(g,{clientOffset:u})}}},this.handleTopMoveEndCapture=function(e){a._isScrolling=!1,a.lastTargetTouchFallback=void 0,function(e){return void 0===e.buttons||0==(e.buttons&i)}(e)&&(a.monitor.isDragging()&&!a.monitor.didDrop()?(e.preventDefault(),a._mouseClientOffset={},a.uninstallSourceNodeRemovalObserver(),a.actions.drop(),a.actions.endDrag()):a.moveStartSourceIds=void 0)},this.handleCancelOnEscape=function(e){"Escape"===e.key&&a.monitor.isDragging()&&(a._mouseClientOffset={},a.uninstallSourceNodeRemovalObserver(),a.actions.endDrag())},this.options=new p(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.sourceNodes={},this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.targetNodes={},this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(o.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(o.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(o.keyboard)}var t,n,a;return t=e,(n=[{key:"setup",value:function(){this.window&&(Object(r.a)(!e.isSetUp,"Cannot have two Touch backends at the same time."),e.isSetUp=!0,this.addEventListener(this.window,"start",this.getTopMoveStartHandler()),this.addEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(this.window,"move",this.handleTopMove),this.addEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.addEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(this.window,"keydown",this.handleCancelOnEscape,!0))}},{key:"teardown",value:function(){this.window&&(e.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(this.window,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(this.window,"start",this.handleTopMoveStart),this.removeEventListener(this.window,"move",this.handleTopMoveCapture,!0),this.removeEventListener(this.window,"move",this.handleTopMove),this.removeEventListener(this.window,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(this.window,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(this.window,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}},{key:"addEventListener",value:function(e,t,n,o){var r=u?{capture:o,passive:!1}:o;this.listenerTypes.forEach((function(o){var i=b[o][t];i&&e.addEventListener(i,n,r)}))}},{key:"removeEventListener",value:function(e,t,n,o){var r=u?{capture:o,passive:!1}:o;this.listenerTypes.forEach((function(o){var i=b[o][t];i&&e.removeEventListener(i,n,r)}))}},{key:"connectDragSource",value:function(e,t){var n=this,o=this.handleMoveStart.bind(this,e);return this.sourceNodes[e]=t,this.addEventListener(t,"start",o),function(){delete n.sourceNodes[e],n.removeEventListener(t,"start",o)}}},{key:"connectDragPreview",value:function(e,t,n){var o=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete o.sourcePreviewNodes[e],delete o.sourcePreviewNodeOptions[e]}}},{key:"connectDropTarget",value:function(e,t){var n=this;if(!this.document)return function(){return null};var o=function(o){if(n.document&&n.monitor.isDragging()){var r;switch(o.type){case b.mouse.move:r={x:o.clientX,y:o.clientY};break;case b.touch.move:r={x:o.touches[0].clientX,y:o.touches[0].clientY}}var i=null!=r?n.document.elementFromPoint(r.x,r.y):void 0,a=i&&t.contains(i);return i===t||a?n.handleMove(o,e):void 0}};return this.addEventListener(this.document.body,"move",o),this.targetNodes[e]=t,function(){n.document&&(delete n.targetNodes[e],n.removeEventListener(n.document.body,"move",o))}}},{key:"getTopMoveStartHandler",value:function(){return this.options.delayTouchStart||this.options.delayMouseStart?this.handleTopMoveStartDelay:this.handleTopMoveStart}},{key:"installSourceNodeRemovalObserver",value:function(e){var t=this;this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver((function(){e&&!e.parentElement&&(t.resurrectSourceNode(),t.uninstallSourceNodeRemovalObserver())})),e&&e.parentElement&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}},{key:"resurrectSourceNode",value:function(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}},{key:"uninstallSourceNodeRemovalObserver",value:function(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&h(t.prototype,n),a&&h(t,a),e}();t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new g(e,t,n)}},1664:function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(22),n(18),n(16),n(59),n(40),n(24),n(42),n(43),n(8),n(84),n(17),n(19),n(11),n(13);var o=n(482),r=n(0),i=n(1721),a=n(75),l=n(610),c=(n(76),n(129),n(1573));function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(){function e(t){s(this,e),f(this,"isDisposed",!1),f(this,"action",void 0),this.action=Object(c.c)(t)?t:c.g}return d(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&Object(c.c)(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();f(p,"empty",{dispose:c.g});var h=function(){function e(){s(this,e),f(this,"isDisposed",!1),f(this,"disposables",void 0);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];this.disposables=n}return d(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var o=0;o<e;o++)t[o].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var o=0;o<e;o++)t[o].dispose()}}}]),e}(),m=function(){function e(){s(this,e),f(this,"isDisposed",!1),f(this,"current",void 0)}return d(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),b=n(375),g=n.n(b);function v(e){return(v="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 y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=C(e);if(t){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return E(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=e.DecoratedComponent,n=e.createHandler,s=e.createMonitor,u=e.createConnector,d=e.registerHandler,f=e.containerDisplayName,b=e.getType,v=e.collect,w=e.options.arePropsEqual,k=void 0===w?i.a:w,C=t,A=t.displayName||t.name||"Component",_=function(e){!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&&O(e,t)}(_,e);var t,f,g,w=S(_);function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),T(E(t=w.call(this,e)),"decoratedRef",Object(r.createRef)()),T(E(t),"handlerId",void 0),T(E(t),"manager",void 0),T(E(t),"handlerMonitor",void 0),T(E(t),"handlerConnector",void 0),T(E(t),"handler",void 0),T(E(t),"disposable",void 0),T(E(t),"currentType",void 0),T(E(t),"handleChange",(function(){var e=t.getCurrentState();Object(i.a)(e,t.state)||t.setState(e)})),t.disposable=new m,t.receiveProps(e),t.dispose(),t}return t=_,(f=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return Object(a.a)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!k(e,this.props)||!Object(i.a)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new m,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){k(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(b(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=y(d(e,this.handler,this.manager),2),n=t[0],o=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var r=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new h(new p(r),new p(o)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?v(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return Object(o.jsx)(l.a.Consumer,{children:function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),Object(o.jsx)(C,Object.assign({},e.props,e.getCurrentState(),{ref:Object(c.e)(C)?e.decoratedRef:null}),void 0)}},void 0)}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(Object(a.a)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",A,A),void 0!==e&&(this.manager=e,this.handlerMonitor=s(e),this.handlerConnector=u(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&x(t.prototype,f),g&&x(t,g),_}(r.Component);return T(_,"DecoratedComponent",t),T(_,"displayName","".concat(f,"(").concat(A,")")),g()(_,t)}},1665:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(38),n(34),n(27),n(21),n(50),n(20),n(12),n(44),n(22),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(56),n(17),n(19),n(62),n(11),n(153),n(29),n(13);var o=n(0),r=n.n(o),i=n(305),a=n(6),l=n(2),c=n.n(l),s=n(1),u=n(4),d=n(41),f=n(1595),p=n(1584),h=n(1626),m=(n(1729),n(1575),n(5)),b=n(1597),g=n(475);function v(e){return(v="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 y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return w(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(w(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,w(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,w(d,"constructor",s),w(s,"constructor",c),c.displayName="GeneratorFunction",w(s,r,"GeneratorFunction"),w(d),w(d,r,"Generator"),w(d,o,(function(){return this})),w(d,"toString",(function(){return"[object Generator]"})),(y=function(){return{w:i,m:f}})()}function w(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(w=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){w(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function x(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var T=Object(o.lazy)((function(){return Promise.resolve().then(n.bind(null,1769))})),A={text:c.a.string.isRequired,outlinePath:c.a.string,isAdding:c.a.bool,isExpanded:c.a.bool,setIsExpanded:c.a.func,isOutlineRenaming:c.a.bool,setOutlineRenaming:c.a.func,isOutlineChangingDest:c.a.bool,setOutlineChangingDest:c.a.func,onCancel:c.a.func,textColor:c.a.string,children:c.a.array,setMultiSelected:c.a.func,moveOutlineInward:c.a.func,moveOutlineBeforeTarget:c.a.func,moveOutlineAfterTarget:c.a.func},_=function(e){var t=e.text,n=e.outlinePath,l=e.isAdding,c=e.isExpanded,v=e.setIsExpanded,w=e.isOutlineRenaming,O=e.setOutlineRenaming,k=e.isOutlineChangingDest,C=e.setOutlineChangingDest,A=e.onCancel,_=e.textColor,j=e.children,P=e.setMultiSelected,N=e.moveOutlineInward,I=e.moveOutlineBeforeTarget,R=e.moveOutlineAfterTarget,q=Object(o.useContext)(h.a),L=q.currentDestPage,M=q.currentDestText,D=q.editingOutlines,z=q.setEditingOutlines,B=q.isMultiSelectMode,F=q.isOutlineEditable,H=q.addNewOutline,U=q.renameOutline,W=q.updateOutlineDest,G=q.selectedOutlines,V=q.updateOutlines,K=q.removeOutlines,$=Object(a.e)((function(e){return u.a.getFeatureFlags(e)}),a.c).customizableUI,Y=E(Object(i.a)(),1)[0],Z=E(Object(o.useState)(!1),2),X=Z[0],Q=Z[1],J=E(Object(o.useState)(t),2),ee=J[0],te=J[1],ne=Object(o.useRef)(),oe=(null==G?void 0:G.includes(n))||!1,re=function(){H(""===ee.trim()?"":ee)},ie=function(){O(!1),U(n,ee)},ae=function(){V(),w&&(O(!1),te(t)),k&&C(!1),l&&A()},le=function(){return!ee||t===ee};Object(o.useEffect)((function(){ee!==t&&te(t)}),[t]),Object(o.useEffect)((function(){(l||w)&&(ne.current.focus(),ne.current.select()),Q(!l&&!w&&!k)}),[w,k]),Object(o.useEffect)((function(){var e=S({},D),t=w||k;t?e[n]=t:delete e[n],z(S({},e))}),[w,k]);var ce={color:_||"auto"},se=function(){var e,t=(e=y().m((function e(t){var o;return y().w((function(e){for(;;)switch(e.n){case 0:o=t,e.n=o===p.b.RENAME?1:o===p.b.SETDEST?2:o===p.b.DELETE?3:o===p.b.MOVE_UP?4:o===p.b.MOVE_DOWN?6:o===p.b.MOVE_LEFT?8:o===p.b.MOVE_RIGHT?10:12;break;case 1:return O(!0),e.a(3,13);case 2:return C(!0),s.a.setToolMode("OutlineDestinationCreateTool"),e.a(3,13);case 3:return K([n]),e.a(3,13);case 4:return e.n=5,g.a.moveOutlineUp(n);case 5:return V(),e.a(3,13);case 6:return e.n=7,g.a.moveOutlineDown(n);case 7:return V(),e.a(3,13);case 8:return e.n=9,g.a.moveOutlineOutward(n);case 9:return V(),e.a(3,13);case 10:return e.n=11,g.a.moveOutlineInward(n);case 11:return V(),e.a(3,13);case 12:return e.a(3,13);case 13:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){x(i,o,r,a,l,"next",e)}function l(e){x(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),ue=m.a.BOOKMARK_OUTLINE_FLYOUT,de={shouldHideDeleteButton:!1,currentFlyout:Object(a.e)((function(e){return u.a.getFlyout(e,ue)})),flyoutSelector:ue,type:"outline",handleOnClick:se},fe={flyoutToggleElement:"bookmarkOutlineFlyout",moreOptionsDataElement:"outline-more-button-".concat(n)},pe={id:"outline-checkbox-".concat(n),checked:oe,onChange:function(e){P(n,e.target.checked)},ariaLabel:t,disabled:!B};return r.a.createElement("div",{className:"bookmark-outline-label-row"},l&&r.a.createElement("div",{className:"bookmark-outline-label"},Y("component.newOutlineTitle")),w&&r.a.createElement("div",{className:"bookmark-outline-label"},Y("component.outlineTitle")),X&&r.a.createElement(b.a,{key:n,labelHeader:t,textColor:_,enableMoreOptionsContextMenuFlyout:F,onDoubleClick:function(){F&&O(!0)},checkboxOptions:pe,contentMenuFlyoutOptions:de,contextMenuMoreButtonOptions:fe,expanded:c,setIsExpandedHandler:v},j.map((function(e){return function(e){return r.a.createElement(T,{key:g.a.getOutlineId(e),outline:e,setMultiSelected:P,moveOutlineInward:N,moveOutlineBeforeTarget:I,moveOutlineAfterTarget:R})}(e)}))),k&&r.a.createElement("div",{className:"bookmark-outline-text outline-text",style:ce},t),(l||w)&&r.a.createElement("input",{type:"text",name:"outline",ref:ne,className:"bookmark-outline-input",placeholder:$?"":Y("component.outlineTitle"),"aria-label":Y("component.newOutlineTitle"),value:ee,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),l&&re(),w&&!le()&&ie()),"Escape"===e.key&&ae()},onChange:function(e){return te(e.target.value)}}),(l||k)&&r.a.createElement("div",{className:"outline-destination"},Y("component.destination"),": ",Y("component.bookmarkPage")," ",L,",",r.a.createElement("span",{style:{fontStyle:"italic"}}," “",M,"”")),(l||w||k)&&r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:Y("action.cancel"),ariaLabel:"".concat(Y("action.cancel")," ").concat(Y("component.outlineTitle")),onClick:ae}),l&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:Y("action.add"),isSubmitType:!0,onClick:re}),w&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:Y("action.save"),isSubmitType:!0,disabled:le(),onClick:ie}),k&&r.a.createElement(d.a,{className:"bookmark-outline-save-button",label:Y("action.save"),isSubmitType:!0,onClick:function(){C(!1),W(n)}})))};_.propTypes=A;var j=_;t.a=j},1668:function(e,t,n){var o=n(35),r=n(1669);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1669:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .AnnotationStylePopup{width:100%;margin:0;position:relative;max-width:none;border-radius:4px 4px 0 0;border:0;padding-bottom:24px;box-shadow:none}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .AnnotationStylePopup{width:100%;margin:0;position:relative;max-width:none;border-radius:4px 4px 0 0;border:0;padding-bottom:24px;box-shadow:none}}.AnnotationStylePopup .back-to-menu-container{margin-top:var(--padding-medium);margin-inline-end:var(--padding-medium);margin-inline-start:var(--padding-medium);padding-bottom:var(--padding-small);border-bottom:1px solid var(--border)}.AnnotationStylePopup .Button.back-to-menu-button{margin:0;width:100%;height:32px;border-radius:0;justify-content:flex-start}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .AnnotationStylePopup .Button.back-to-menu-button{width:100%;height:32px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .AnnotationStylePopup .Button.back-to-menu-button{width:100%;height:32px}}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1672:function(e,t,n){var o=n(1673),r=n(626),i=/[&<>"']/g,a=RegExp(i.source);e.exports=function(e){return(e=r(e))&&a.test(e)?e.replace(i,o):e}},1673:function(e,t,n){var o=n(1674)({"&":"&","<":"<",">":">",'"':""","'":"'"});e.exports=o},1674:function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},1675:function(e,t){function n(e,t,p,h,m){if(e===t)return e?[[0,e]]:[];if(null!=p){var b=function(e,t,n){var o="number"==typeof n?{index:n,length:0}:n.oldRange,r="number"==typeof n?null:n.newRange,i=e.length,a=t.length;if(0===o.length&&(null===r||0===r.length)){var l=o.index,c=e.slice(0,l),s=e.slice(l),u=r?r.index:null,d=l+a-i;if((null===u||u===d)&&!(d<0||d>a)){var f=t.slice(0,d);if((w=t.slice(d))===s){var p=Math.min(l,d),h=c.slice(0,p),m=f.slice(0,p);if(h===m){var b=c.slice(p),v=f.slice(p);return g(h,b,v,s)}}}if(null===u||u===l){var y=l,w=(f=t.slice(0,y),t.slice(y));if(f===c){var x=Math.min(i-y,a-y),O=s.slice(s.length-x),S=w.slice(w.length-x);if(O===S){b=s.slice(0,s.length-x),v=w.slice(0,w.length-x);return g(c,b,v,O)}}}}if(o.length>0&&r&&0===r.length){h=e.slice(0,o.index),O=e.slice(o.index+o.length),p=h.length,x=O.length;if(!(a<p+x)){m=t.slice(0,p),S=t.slice(a-x);if(h===m&&O===S){b=e.slice(p,i-x),v=t.slice(p,a-x);return g(h,b,v,O)}}}return null}(e,t,p);if(b)return b}var v=r(e,t),y=e.substring(0,v);v=a(e=e.substring(v),t=t.substring(v));var w=e.substring(e.length-v),x=function(e,t){var i;if(!e)return[[1,t]];if(!t)return[[-1,e]];var l=e.length>t.length?e:t,c=e.length>t.length?t:e,s=l.indexOf(c);if(-1!==s)return i=[[1,l.substring(0,s)],[0,c],[1,l.substring(s+c.length)]],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1===c.length)return[[-1,e],[1,t]];var u=function(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function i(e,t,n){for(var o,i,l,c,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,d="";-1!==(u=t.indexOf(s,u+1));){var f=r(e.substring(n),t.substring(u)),p=a(e.substring(0,n),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),o=e.substring(0,n-p),i=e.substring(n+f),l=t.substring(0,u-p),c=t.substring(u+f))}return 2*d.length>=e.length?[o,i,l,c,d]:null}var l,c,s,u,d,f=i(n,o,Math.ceil(n.length/4)),p=i(n,o,Math.ceil(n.length/2));if(!f&&!p)return null;l=p?f&&f[4].length>p[4].length?f:p:f;e.length>t.length?(c=l[0],s=l[1],u=l[2],d=l[3]):(u=l[0],d=l[1],c=l[2],s=l[3]);var h=l[4];return[c,s,u,d,h]}(e,t);if(u){var d=u[0],f=u[1],p=u[2],h=u[3],m=u[4],b=n(d,p),g=n(f,h);return b.concat([[0,m]],g)}return function(e,t){for(var n=e.length,r=t.length,i=Math.ceil((n+r)/2),a=i,l=2*i,c=new Array(l),s=new Array(l),u=0;u<l;u++)c[u]=-1,s[u]=-1;c[a+1]=0,s[a+1]=0;for(var d=n-r,f=d%2!=0,p=0,h=0,m=0,b=0,g=0;g<i;g++){for(var v=-g+p;v<=g-h;v+=2){for(var y=a+v,w=(E=v===-g||v!==g&&c[y-1]<c[y+1]?c[y+1]:c[y-1]+1)-v;E<n&&w<r&&e.charAt(E)===t.charAt(w);)E++,w++;if(c[y]=E,E>n)h+=2;else if(w>r)p+=2;else if(f){if((S=a+d-v)>=0&&S<l&&-1!==s[S]){var x=n-s[S];if(E>=x)return o(e,t,E,w)}}}for(var O=-g+m;O<=g-b;O+=2){for(var S=a+O,k=(x=O===-g||O!==g&&s[S-1]<s[S+1]?s[S+1]:s[S-1]+1)-O;x<n&&k<r&&e.charAt(n-x-1)===t.charAt(r-k-1);)x++,k++;if(s[S]=x,x>n)b+=2;else if(k>r)m+=2;else if(!f){if((y=a+d-O)>=0&&y<l&&-1!==c[y]){var E=c[y];w=a+E-y;if(E>=(x=n-x))return o(e,t,E,w)}}}}return[[-1,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-v),t=t.substring(0,t.length-v));return y&&x.unshift([0,y]),w&&x.push([0,w]),f(x,m),h&&function(e){var t=!1,n=[],o=0,r=null,p=0,h=0,m=0,b=0,g=0;for(;p<e.length;)0==e[p][0]?(n[o++]=p,h=b,m=g,b=0,g=0,r=e[p][1]):(1==e[p][0]?b+=e[p][1].length:g+=e[p][1].length,r&&r.length<=Math.max(h,m)&&r.length<=Math.max(b,g)&&(e.splice(n[o-1],0,[-1,r]),e[n[o-1]+1][0]=1,o--,o--,p=o>0?n[o-1]:-1,h=0,m=0,b=0,g=0,r=null,t=!0)),p++;t&&f(e);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),o=t.charAt(0),r=n.match(l),i=o.match(l),a=r&&n.match(c),f=i&&o.match(c),p=a&&n.match(s),h=f&&o.match(s),m=p&&e.match(u),b=h&&t.match(d);return m||b?5:p||h?4:r&&!a&&f?3:a||f?2:r||i?1:0}var n=1;for(;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var o=e[n-1][1],r=e[n][1],i=e[n+1][1],f=a(o,r);if(f){var p=r.substring(r.length-f);o=o.substring(0,o.length-f),r=p+r.substring(0,r.length-f),i=p+i}for(var h=o,m=r,b=i,g=t(o,r)+t(r,i);r.charAt(0)===i.charAt(0);){o+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);var v=t(o,r)+t(r,i);v>=g&&(g=v,h=o,m=r,b=i)}e[n-1][1]!=h&&(h?e[n-1][1]=h:(e.splice(n-1,1),n--),e[n][1]=m,b?e[n+1][1]=b:(e.splice(n+1,1),n--))}n++}})(e),p=1;for(;p<e.length;){if(-1==e[p-1][0]&&1==e[p][0]){var v=e[p-1][1],y=e[p][1],w=i(v,y),x=i(y,v);w>=x?(w>=v.length/2||w>=y.length/2)&&(e.splice(p,0,[0,y.substring(0,w)]),e[p-1][1]=v.substring(0,v.length-w),e[p+1][1]=y.substring(w),p++):(x>=v.length/2||x>=y.length/2)&&(e.splice(p,0,[0,v.substring(0,x)]),e[p-1][0]=1,e[p-1][1]=y.substring(0,y.length-x),e[p+1][0]=-1,e[p+1][1]=v.substring(x),p++),p++}p++}}(x),x}function o(e,t,o,r){var i=e.substring(0,o),a=t.substring(0,r),l=e.substring(o),c=t.substring(r),s=n(i,a),u=n(l,c);return s.concat(u)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return p(e.charCodeAt(r-1))&&r--,r}function i(e,t){var n=e.length,o=t.length;if(0==n||0==o)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));var r=Math.min(n,o);if(e==t)return r;for(var i=0,a=1;;){var l=e.substring(r-a),c=t.indexOf(l);if(-1==c)return i;a+=c,0!=c&&e.substring(r-a)!=t.substring(0,a)||(i=a,a++)}}function a(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return h(e.charCodeAt(e.length-r))&&r--,r}var l=/[^a-zA-Z0-9]/,c=/\s/,s=/[\r\n]/,u=/\n\r?\n$/,d=/^\r?\n\r?\n/;function f(e,t){e.push([0,""]);for(var n,o=0,i=0,l=0,c="",s="";o<e.length;)if(o<e.length-1&&!e[o][1])e.splice(o,1);else switch(e[o][0]){case 1:l++,s+=e[o][1],o++;break;case-1:i++,c+=e[o][1],o++;break;case 0:var u=o-l-i-1;if(t){if(u>=0&&b(e[u][1])){var d=e[u][1].slice(-1);if(e[u][1]=e[u][1].slice(0,-1),c=d+c,s=d+s,!e[u][1]){e.splice(u,1),o--;var p=u-1;e[p]&&1===e[p][0]&&(l++,s=e[p][1]+s,p--),e[p]&&-1===e[p][0]&&(i++,c=e[p][1]+c,p--),u=p}}if(m(e[o][1])){d=e[o][1].charAt(0);e[o][1]=e[o][1].slice(1),c+=d,s+=d}}if(o<e.length-1&&!e[o][1]){e.splice(o,1);break}if(c.length>0||s.length>0){c.length>0&&s.length>0&&(0!==(n=r(s,c))&&(u>=0?e[u][1]+=s.substring(0,n):(e.splice(0,0,[0,s.substring(0,n)]),o++),s=s.substring(n),c=c.substring(n)),0!==(n=a(s,c))&&(e[o][1]=s.substring(s.length-n)+e[o][1],s=s.substring(0,s.length-n),c=c.substring(0,c.length-n)));var h=l+i;0===c.length&&0===s.length?(e.splice(o-h,h),o-=h):0===c.length?(e.splice(o-h,h,[1,s]),o=o-h+1):0===s.length?(e.splice(o-h,h,[-1,c]),o=o-h+1):(e.splice(o-h,h,[-1,c],[1,s]),o=o-h+2)}0!==o&&0===e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,l=0,i=0,c="",s=""}""===e[e.length-1][1]&&e.pop();var g=!1;for(o=1;o<e.length-1;)0===e[o-1][0]&&0===e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)===e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),g=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),g=!0)),o++;g&&f(e,t)}function p(e){return e>=55296&&e<=56319}function h(e){return e>=56320&&e<=57343}function m(e){return h(e.charCodeAt(0))}function b(e){return p(e.charCodeAt(e.length-1))}function g(e,t,n,o){return b(e)||m(o)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,e],[-1,t],[1,n],[0,o]])}function v(e,t,o,r){return n(e,t,o,r,!0)}v.INSERT=1,v.DELETE=-1,v.EQUAL=0,e.exports=v},1676:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1620),r=n(1621);var i;!function(e){e.compose=function(e={},t={},n=!1){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});let r=o(t);n||(r=Object.keys(r).reduce((e,t)=>(null!=r[t]&&(e[t]=r[t]),e),{}));for(const n in e)void 0!==e[n]&&void 0===t[n]&&(r[n]=e[n]);return Object.keys(r).length>0?r:void 0},e.diff=function(e={},t={}){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});const n=Object.keys(e).concat(Object.keys(t)).reduce((n,o)=>(r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n),{});return Object.keys(n).length>0?n:void 0},e.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce((n,o)=>(t[o]!==e[o]&&void 0!==e[o]&&(n[o]=t[o]),n),{});return Object.keys(e).reduce((n,o)=>(e[o]!==t[o]&&void 0===t[o]&&(n[o]=null),n),n)},e.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const o=Object.keys(t).reduce((n,o)=>(void 0===e[o]&&(n[o]=t[o]),n),{});return Object.keys(o).length>0?o:void 0}}(i||(i={})),t.default=i},1677:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=n(1622);t.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(e){e||(e=1/0);const t=this.ops[this.index];if(t){const n=this.offset,r=o.default.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};{const o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"object"==typeof t.retain&&null!==t.retain?o.retain=t.retain:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?o.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}}return[]}}},1678:function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r="~";function i(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function l(e,t,n,o,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,o||e,i),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function s(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)o.call(e,t)&&n.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,o),!0;case 5:return u.fn.call(u.context,t,n,o,i),!0;case 6:return u.fn.call(u.context,t,n,o,i,a),!0}for(s=1,c=new Array(d-1);s<d;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var f,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),d){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,o);break;default:if(!c)for(f=1,c=new Array(d-1);f<d;f++)c[f-1]=arguments[f];u[s].fn.apply(u[s].context,c)}}return!0},s.prototype.on=function(e,t,n){return l(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return l(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||o&&!a.once||n&&a.context!==n||c(this,i);else{for(var l=0,s=[],u=a.length;l<u;l++)(a[l].fn!==t||o&&!a[l].once||n&&a[l].context!==n)&&s.push(a[l]);s.length?this._events[i]=1===s.length?s[0]:s:c(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s},1679:function(e,t,n){"use strict";var o,r=n(52),i=n(70),a=n(376),l=n(474),c=n(477),s=n(1680),u=n(101),d=n(624),f=n(143).enforce,p=n(622),h=!r.ActiveXObject&&"ActiveXObject"in r,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},b=c("WeakMap",m,s);if(p&&h){o=s.getConstructor(m,"WeakMap",!0),l.enable();var g=b.prototype,v=i(g.delete),y=i(g.has),w=i(g.get),x=i(g.set);a(g,{delete:function(e){if(u(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new o),v(this,e)||t.frozen.delete(e)}return v(this,e)},has:function(e){if(u(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new o),y(this,e)||t.frozen.has(e)}return y(this,e)},get:function(e){if(u(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new o),y(this,e)?w(this,e):t.frozen.get(e)}return w(this,e)},set:function(e,t){if(u(e)&&!d(e)){var n=f(this);n.frozen||(n.frozen=new o),y(this,e)?x(this,e,t):n.frozen.set(e,t)}else x(this,e,t);return this}})}},1680:function(e,t,n){"use strict";var o=n(70),r=n(376),i=n(474).getWeakData,a=n(100),l=n(101),c=n(207),s=n(268),u=n(121),d=n(95),f=n(143),p=f.set,h=f.getterFor,m=u.find,b=u.findIndex,g=o([].splice),v=0,y=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},x=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=x(this,e);if(t)return t[1]},has:function(e){return!!x(this,e)},set:function(e,t){var n=x(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=b(this.entries,(function(t){return t[0]===e}));return~t&&g(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var u=e((function(e,r){c(e,f),p(e,{type:t,id:v++,frozen:void 0}),null!=r&&s(r,e[o],{that:e,AS_ENTRIES:n})})),f=u.prototype,m=h(t),b=function(e,t,n){var o=m(e),r=i(a(t),!0);return!0===r?y(o).set(t,n):r[o.id]=n,e};return r(f,{delete:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?y(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!l(e))return!1;var n=i(e);return!0===n?y(t).has(e):n&&d(n,t.id)}}),r(f,n?{get:function(e){var t=m(this);if(l(e)){var n=i(e);return!0===n?y(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return b(this,e,t)}}:{add:function(e){return b(this,e,!0)}}),u}}},1681:function(e,t,n){var o=n(55),r=n(52),i=n(623),a=n(145),l=n(308),c=n(307),s=r.process;o({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(e){l(arguments.length,1),a(e);var t=c&&s.domain;i(t?t.bind(e):e)}})},1682:function(e,t,n){var o=n(35),r=n(1683);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1683:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,'.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{inset-inline-start:-100000px;height:1px;overflow-y:hidden;position:absolute;inset-block-start:50%}.ql-clipboard p{margin:0;padding:0}.ql-container .ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:start;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.ql-editor>*{cursor:text}.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6,.ql-editor ol,.ql-editor p,.ql-editor pre,.ql-editor ul{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor p{margin:0;padding:0}.ql-editor ol,.ql-editor ul{padding-inline-start:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"\\2022"}.ql-editor ul[data-checked=false],.ql-editor ul[data-checked=true]{pointer-events:none}.ql-editor ul[data-checked=false]>li *,.ql-editor ul[data-checked=true]>li *{pointer-events:all}.ql-editor ul[data-checked=false]>li:before,.ql-editor ul[data-checked=true]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"\\2611"}.ql-editor ul[data-checked=false]>li:before{content:"\\2610"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-inline-start:-1.5em;margin-inline-end:.3em;text-align:end}.ql-editor li.ql-direction-rtl:before{margin-inline-start:.3em;margin-inline-end:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-inline-start:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-inline-end:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-inline-start:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-inline-start:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-inline-end:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-inline-end:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-inline-start:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-inline-start:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-inline-end:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-inline-end:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-inline-start:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-inline-start:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-inline-end:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-inline-end:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-inline-start:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-inline-start:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-inline-end:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-inline-end:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-inline-start:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-inline-start:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-inline-end:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-inline-end:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-inline-start:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-inline-start:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-inline-end:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-inline-end:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-inline-start:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-inline-start:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-inline-end:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-inline-end:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-inline-start:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-inline-start:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-inline-end:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-inline-end:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-inline-start:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-inline-start:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-inline-end:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-inline-end:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:end}.ql-editor.ql-blank:before{color:rgba(0,0,0,.6);content:attr(data-placeholder);font-style:italic;inset-inline-start:15px;pointer-events:none;position:absolute;inset-inline-end:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:inline-start;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:inline-start;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover{color:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter{stroke:#06c}@media(pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-stroke.ql-thin,.ql-snow .ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-inline-start:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-inline-start:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:inline-start;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-inline-start:8px;padding-inline-end:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;inset-block-start:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{inset-inline-end:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:inline-start;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;inset-inline-end:0;inset-block-start:50%;width:18px}.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-item:before,.ql-snow .ql-picker.ql-header .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-item:before,.ql-snow .ql-picker.ql-font .ql-picker-label:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-item:before,.ql-snow .ql-picker.ql-size .ql-picker-label:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-inline-end:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:0 2px 8px rgba(0,0,0,.2)}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-inline-end:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-inline-end:1px solid #ccc;content:"Edit";margin-inline-start:16px;padding-inline-end:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-inline-start:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-inline-end:0;content:"Save";padding-inline-end:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}',""])},1684:function(e,t,n){var o=n(35),r=n(1685);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1685:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comment-textarea{position:relative}.comment-textarea .ql-toolbar{display:none}.comment-textarea .ql-container{border:none}.comment-textarea .ql-container .ql-editor{width:100%;padding:4px 6px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);resize:none;overflow:hidden;box-sizing:border-box}.comment-textarea .ql-container .ql-editor:focus{outline:none;border:1px solid var(--focus-border)}.comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:8px;list-style-type:none;font-style:normal;color:var(--placeholder-text)}.comment-textarea .ql-container .ql-editor p{margin:0;word-break:break-word}.comment-textarea .ql-container .ql-editor ul>li:before{content:none!important}.comment-textarea .ql-container.ql-snow{border:none}.comment-textarea .ql-container.ql-snow:focus{outline:var(--focus-visible-outline);border-radius:4px}.comment-textarea .add-attachment{position:absolute;inset-block-end:2px;inset-inline-end:2px;width:24px;height:24px}.comment-textarea .add-attachment:hover{background-color:var(--blue-1)}.comment-textarea .add-attachment .Icon{padding:3px}.ql-editor ul>li:before{content:none!important}.mention__element{width:170px;z-index:9001!important;max-height:200px;overflow-y:auto;overflow-y:overlay;overflow-x:hidden;background-color:var(--component-background);border:1px solid var(--border);border-radius:4px}.mention__suggestions__list{width:100%;font-size:14px;margin-top:0;padding-inline-start:0!important;list-style:none;word-wrap:break-word;border-radius:4px}.mention__suggestions__item{background-color:var(--component-background);white-space:nowrap;margin-inline-start:0;padding-inline-start:0;text-overflow:clip;padding:7px 5px 1px!important;margin:0;width:100%;cursor:pointer}.mention__suggestions__item .email{margin-top:2px;font-size:12px;white-space:normal;color:var(--faded-text)}.mention__suggestions__item.selected{background-color:var(--view-header-button-active)!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1686:function(e,t,n){var o=n(35),r=n(1687);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1687:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NotePopup .options.modular-ui .option:hover{cursor:pointer;background:var(--primary-button-hover);color:var(--gray-0)}.NotePopup{flex-grow:0;display:flex;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:28px;height:28px;position:relative}.NotePopup .Button.overflow{width:28px;height:28px;border-radius:4px;display:flex;justify-content:center;align-items:center}.NotePopup .Button.overflow .Icon{width:24px;height:24px}.NotePopup .Button.overflow:hover{background:var(--blue-1)}.NotePopup .Button.overflow.active{background:var(--popup-button-active)}.NotePopup .options{display:flex;flex-direction:column;box-shadow:0 0 3px 0 var(--box-shadow);z-index:80;position:absolute;border-radius:4px;background:var(--component-background);inset-block-start:40px;width:-moz-max-content;width:max-content}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NotePopup .options{inset-inline-end:0}}.NotePopup .options .note-popup-option{padding:0;border:none;background-color:transparent;align-items:flex-start}:host(:not([data-tabbing=true])) .NotePopup .options .note-popup-option,html:not([data-tabbing=true]) .NotePopup .options .note-popup-option{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NotePopup .options .note-popup-option{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NotePopup .options .note-popup-option{font-size:13px}}.NotePopup .options.options-reply{inset-block-start:30px}.NotePopup .options .option{display:flex;flex-direction:column;justify-content:center;height:28px;padding-inline-start:8px;padding-inline-end:17px;border-radius:0}.NotePopup .options .option:hover{background-color:var(--popup-button-hover)}.NotePopup .options .option:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.NotePopup .options .option:last-child{border-bottom-right-radius:4px}.NotePopup .Button{height:28px}.NotePopup .Button.active{background:var(--popup-button-active)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NotePopup .Button.note-popup-toggle-trigger{width:28px;height:28px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NotePopup .Button.note-popup-toggle-trigger{width:28px;height:28px}}.NotePopupFlyout{min-width:unset!important;max-width:unset!important}.NotePopupFlyout .flyout-item-container{height:unset!important;margin:unset!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1688:function(e,t,n){var o=n(35),r=n(1689);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1689:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteHeader{padding-inline-end:12px;position:relative;flex:1;color:var(--text-color);display:flex}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteHeader{flex:none}}.NoteHeader .type-icon{margin:2px;width:24px;height:24px}.NoteHeader .type-icon-container{padding-inline-end:13px}.NoteHeader .type-icon-container .unread-notification{position:absolute;width:13px;height:13px;inset-inline-end:-2px;inset-block-start:-2px;border-radius:10000px;border:2px solid var(--component-background);background:#00a5e4}.NoteHeader .author-and-date{flex:1;min-width:0;position:relative}.NoteHeader .author-and-date.isReply{padding-inline-start:0;padding-top:0;font-size:10px}.NoteHeader .author-and-date .author-and-overflow{display:flex;justify-content:space-between}.NoteHeader .author-and-date .author-and-overflow .author-and-time{display:flex;flex-direction:column;word-break:break-word}.NoteHeader .author-and-date .author-and-overflow .author-and-time .author{font-weight:700;font-size:13px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies{display:flex}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px;color:var(--faded-text)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .date-and-time{font-size:10px}}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container{display:flex;flex-grow:1;padding-inline-start:10px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-reply-icon{height:12px;width:12px}.NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:10px;color:var(--gray-7)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:12px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteHeader .author-and-date .author-and-overflow .author-and-time .date-and-num-replies .num-replies-container .num-replies{font-size:12px}}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow{display:flex;flex:1;justify-content:flex-end}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow>*{pointer-events:auto}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper .tracked-change-icon{margin:2px;width:24px;height:24px}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper:hover.accept{background-color:#d5f5ca}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .tracked-change-icon-wrapper:hover.reject{background-color:#ffe8e8}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .ToggleElementButton button{width:28px;height:28px;margin:0 8px 0 13px}.NoteHeader .author-and-date .author-and-overflow .state-and-overflow .ToggleElementButton button .Icon{width:20px;height:20px}.NoteHeader .author-name{font-weight:700}.NoteHeader .note-popup-toggle-trigger{padding:0;margin-inline-end:0!important;margin-inline-start:0!important;min-width:28px!important}.NoteHeader .note-popup-toggle-trigger .Icon{width:24px!important;height:24px!important}.parent{padding-inline-start:12px;padding-top:12px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1690:function(e,t,n){
|
|
2
2
|
/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
|
|
3
|
-
e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=E(Array.prototype.forEach),d=E(Array.prototype.lastIndexOf),f=E(Array.prototype.pop),p=E(Array.prototype.push),h=E(Array.prototype.splice),m=E(String.prototype.toLowerCase),b=E(String.prototype.toString),g=E(String.prototype.match),v=E(String.prototype.replace),y=E(String.prototype.indexOf),w=E(String.prototype.trim),x=E(Object.prototype.hasOwnProperty),O=E(RegExp.prototype.test),S=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(k,t)});var k;function E(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function C(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function A(t){const n=l(null);for(const[o,r]of e(t))x(t,o)&&(Array.isArray(r)?n[o]=T(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=A(r):n[o]=r);return n}function _(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}e=o(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i(["#text"]),M=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z,DATA_ATTR:W,DOCTYPE_NAME:Y,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:F,TMPLIT_EXPR:U});const Q=1,J=3,ee=7,te=8,ne=9,oe=function(){return"undefined"==typeof window?null:window},re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const o=e=>t(e);if(o.version="3.2.6",o.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:k,Node:E,Element:T,NodeFilter:F,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:W,trustedTypes:G}=n,K=T.prototype,$=_(K,"cloneNode"),Z=_(K,"remove"),ie=_(K,"nextSibling"),ae=_(K,"childNodes"),le=_(K,"parentNode");if("function"==typeof k){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ce,se="";const{implementation:ue,createNodeIterator:de,createDocumentFragment:fe,getElementsByTagName:pe}=r,{importNode:he}=a;let me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof le&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:be,ERB_EXPR:ge,TMPLIT_EXPR:ve,DATA_ATTR:ye,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Oe,CUSTOM_ELEMENT:Se}=X;let{IS_ALLOWED_URI:ke}=X,Ee=null;const Ce=C({},[...j,...P,...N,...R,...L]);let Te=null;const Ae=C({},[...M,...D,...z,...B]);let _e=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Pe=null,Ne=!0,Ie=!0,Re=!1,qe=!0,Le=!1,Me=!0,De=!1,ze=!1,Be=!1,Fe=!1,He=!1,Ue=!1,We=!0,Ge=!1;const Ve="user-content-";let Ke=!0,$e=!1,Ye={},Ze=null;const Xe=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Je=C({},["audio","video","img","source","image","track"]);let et=null;const tt=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let it=rt,at=!1,lt=null;const ct=C({},[nt,ot,rt],b);let st=C({},["mi","mo","mn","ms","mtext"]),ut=C({},["annotation-xml"]);const dt=C({},["title","style","font","a","script"]);let ft=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,bt=null;const gt=r.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!bt||bt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),ft=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?ht:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===ft?b:m,Ee=x(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,mt):Ce,Te=x(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,b):ct,et=x(e,"ADD_URI_SAFE_ATTR")?C(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?C(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,mt):Xe,je=x(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,mt):A({}),Pe=x(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,mt):A({}),Ye=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||rt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,ut=e.HTML_INTEGRATION_POINTS||ut,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),He&&(Fe=!0),Ye&&(Ee=C({},L),Te=[],!0===Ye.html&&(C(Ee,j),C(Te,M)),!0===Ye.svg&&(C(Ee,P),C(Te,D),C(Te,B)),!0===Ye.svgFilters&&(C(Ee,N),C(Te,D),C(Te,B)),!0===Ye.mathMl&&(C(Ee,R),C(Te,z),C(Te,B))),e.ADD_TAGS&&(Ee===Ce&&(Ee=A(Ee)),C(Ee,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Te===Ae&&(Te=A(Te)),C(Te,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&C(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),C(Ze,e.FORBID_CONTENTS,mt)),Ke&&(Ee["#text"]=!0),De&&C(Ee,["html","head","body"]),Ee.table&&(C(Ee,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ce=e.TRUSTED_TYPES_POLICY,se=ce.createHTML("")}else void 0===ce&&(ce=re(G,c)),null!==ce&&"string"==typeof se&&(se=ce.createHTML(""));i&&i(e),bt=e}},wt=C({},[...P,...N,...I]),xt=C({},[...R,...q]),Ot=function(e){let t=le(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),o=m(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===rt?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===o||st[o]):Boolean(wt[n]):e.namespaceURI===nt?t.namespaceURI===rt?"math"===n:t.namespaceURI===ot?"math"===n&&ut[o]:Boolean(xt[n]):e.namespaceURI===rt?!(t.namespaceURI===ot&&!ut[o])&&!(t.namespaceURI===nt&&!st[o])&&!xt[n]&&(dt[n]||!wt[n]):!("application/xhtml+xml"!==ft||!lt[e.namespaceURI]))},St=function(e){p(o.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},kt=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||He)try{St(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(Be)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ft&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ce?ce.createHTML(e):e;if(it===rt)try{t=(new W).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),it===rt?pe.call(t,De?"html":"body")[0]:De?t.documentElement:i},Ct=function(e){return de.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof E&&e instanceof E};function _t(e,t,n){u(e,e=>{e.call(o,t,n,bt)})}const jt=function(e){let t=null;if(_t(me.beforeSanitizeElements,e,null),Tt(e))return St(e),!0;const n=mt(e.nodeName);if(_t(me.uponSanitizeElement,e,{tagName:n,allowedTags:Ee}),Me&&e.hasChildNodes()&&!At(e.firstElementChild)&&O(/<[/\w!]/g,e.innerHTML)&&O(/<[/\w!]/g,e.textContent))return St(e),!0;if(e.nodeType===ee)return St(e),!0;if(Me&&e.nodeType===te&&O(/<[/\w]/g,e.data))return St(e),!0;if(!Ee[n]||je[n]){if(!je[n]&&Nt(n)){if(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,n))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return!1}if(Ke&&!Ze[n]){const t=le(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ie(e))}}return St(e),!0}return e instanceof T&&!Ot(e)?(St(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!O(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===J&&(t=e.textContent,u([be,ge,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t(me.afterSanitizeElements,e,null),!1):(St(e),!0)},Pt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in gt))return!1;if(Ie&&!Pe[t]&&O(ye,t));else if(Ne&&O(we,t));else if(!Te[t]||Pe[t]){if(!(Nt(e)&&(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&O(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(et[t]);else if(O(ke,v(n,Oe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Qe[e])if(Re&&!O(xe,v(n,Oe,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&g(e,Se)},It=function(e){_t(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=mt(a),d=c;let p="value"===a?d:w(d);if(n.attrName=s,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,_t(me.uponSanitizeAttribute,e,n),p=n.attrValue,!Ge||"id"!==s&&"name"!==s||(kt(a,e),p=Ve+p),Me&&O(/((--!?|])>)|<\/(style|title)/i,p)){kt(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){kt(a,e);continue}if(!qe&&O(/\/>/i,p)){kt(a,e);continue}Le&&u([be,ge,ve],e=>{p=v(p,e," ")});const h=mt(e.nodeName);if(Pt(h,s,p)){if(ce&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(h,s)){case"TrustedHTML":p=ce.createHTML(p);break;case"TrustedScriptURL":p=ce.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Tt(e)?St(e):f(o.removed)}catch(t){kt(a,e)}}else kt(a,e)}_t(me.afterSanitizeAttributes,e,null)},Rt=function e(t){let n=null;const o=Ct(t);for(_t(me.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)_t(me.uponSanitizeShadowNode,n,null),jt(n),It(n),n.content instanceof s&&e(n.content);_t(me.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(ze||yt(t),o.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=mt(e.nodeName);if(!Ee[t]||je[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof E)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!Le&&!De&&-1===e.indexOf("<"))return ce&&Ue?ce.createHTML(e):e;if(n=Et(e),!n)return Fe?null:Ue?se:""}n&&Be&&St(n.firstChild);const c=Ct($e?e:n);for(;i=c.nextNode();)jt(i),It(i),i.content instanceof s&&Rt(i.content);if($e)return e;if(Fe){if(He)for(l=fe.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Te.shadowroot||Te.shadowrootmode)&&(l=he.call(a,l,!0)),l}let d=De?n.outerHTML:n.innerHTML;return De&&Ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Y,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Le&&u([be,ge,ve],e=>{d=v(d,e," ")}),ce&&Ue?ce.createHTML(d):d},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yt(e),ze=!0},o.clearConfig=function(){bt=null,ze=!1},o.isValidAttribute=function(e,t,n){bt||yt({});const o=mt(e),r=mt(t);return Pt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&p(me[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=d(me[e],t);return-1===n?void 0:h(me[e],n,1)[0]}return f(me[e])},o.removeHooks=function(e){me[e]=[]},o.removeAllHooks=function(){me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}()}()},1691:function(e,t,n){var o=n(35),r=n(1692);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1692:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".reply-attachment-list{display:flex;flex-direction:column;cursor:default}.reply-attachment-list .reply-attachment{background-color:var(--gray-1);border-radius:4px;cursor:pointer;pointer-events:auto}.reply-attachment-list .reply-attachment:not(:last-child){margin-bottom:8px}.reply-attachment-list .reply-attachment .reply-attachment-preview{width:100%;max-height:80px;display:flex;justify-content:center}.reply-attachment-list .reply-attachment .reply-attachment-preview.dirty{position:relative;margin-bottom:15px}.reply-attachment-list .reply-attachment .reply-attachment-preview img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.reply-attachment-list .reply-attachment .reply-attachment-preview .reply-attachment-preview-message{font-size:11px;color:var(--error-text-color);position:absolute;inset-block-end:-15px;inset-inline-start:10px}.reply-attachment-list .reply-attachment .reply-attachment-info{display:flex;align-items:center;height:40px;padding:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-attachment-icon{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-file-name{height:16px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-inline-start:8px;margin-inline-end:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button:hover{background-color:var(--blue-1)}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button .Icon{height:16px;width:16px}",""])},1693:function(e,t,n){var o=n(35),r=n(1694);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1694:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{cursor:default;background:var(--disabled-button-color);color:var(--primary-button-text)}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent{--note-content-right-padding-width:12px;position:relative;display:flex;flex-direction:column;align-items:left;flex:1;color:var(--text-color);padding-bottom:12px;pointer-events:none}.NoteContent.isReply{padding-bottom:0}.NoteContent.unread.isReply{background:rgba(0,165,228,.08)}.NoteContent.unread.clicked .author-and-time span{font-weight:400}.NoteContent.unread .author-and-time span{font-weight:700}.NoteContent .container{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text;padding-inline-start:52px;padding-inline-end:var(--note-content-right-padding-width)}.NoteContent .container>*{pointer-events:all}.NoteContent .container-reply{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text}.NoteContent .edit-content{margin-top:7px;display:flex;flex-direction:column;position:relative;flex:1;padding-inline-start:52px;padding-inline-end:12px;padding-bottom:12px;pointer-events:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteContent .edit-content{flex:none}}.NoteContent .edit-content textarea{width:100%;padding-inline-start:8px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;resize:none;overflow:hidden;box-sizing:border-box}.NoteContent .edit-content textarea:focus{outline:none;border:1px solid var(--focus-border)}.NoteContent .edit-content textarea::-moz-placeholder{color:var(--placeholder-text)}.NoteContent .edit-content textarea::placeholder{color:var(--placeholder-text)}.NoteContent .edit-content .edit-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:8px}.NoteContent .edit-content .edit-buttons>div{margin-inline-end:4px}.NoteContent .edit-content .edit-buttons .save-button{background-color:transparent;cursor:pointer;flex-shrink:0;background:var(--primary-button);border-radius:4px;width:-moz-fit-content;width:fit-content;border:none;height:28px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--primary-button-text);padding:0 13px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .save-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .save-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .save-button:hover{background:var(--primary-button-hover);color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .save-button.disabled{background:var(--gray-6)!important;border-color:var(--gray-6)!important;cursor:not-allowed}.NoteContent .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .cancel-button{border:none;background-color:transparent;color:var(--secondary-button-text);padding:0 10px;width:-moz-fit-content;width:fit-content;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-inline-end:2px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .cancel-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .cancel-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .cancel-button:hover{color:var(--secondary-button-hover)}.NoteContent .reply-content{padding-inline-start:0}.NoteContent .contents{white-space:pre-wrap;color:var(--text-color);margin-inline-end:5px;padding:0;word-break:normal;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.NoteContent .contents .highlight{background:#fffc95;color:#333}.NoteContent .highlight{background:#fffc95}.NoteContent .selected-text-preview{padding-inline-start:52px;padding-top:8px;pointer-events:auto}.NoteContent .reply-attachment-list{margin-bottom:8px}.NoteContent.modular-ui .highlight{font-weight:700;color:var(--blue-5);background:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{border:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1695:function(e,t,n){var o=n(35),r=n(1696);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1696:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.reply-area-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;margin-bottom:0}.reply-area-container .reply-attachment-list{margin:12px 12px 0}.reply-area-container .reply-area-with-button{display:flex}.reply-area-container .reply-area-with-button .reply-area{position:relative;flex:1;margin:12px 17px 12px 12px;border-radius:4px;align-items:center}.reply-area-container .reply-area-with-button .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-container .reply-area-with-button .reply-button-container{display:flex;flex-direction:column;justify-content:flex-end}.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-container .reply-area-with-button .reply-button-container .reply-button,html:not([data-tabbing=true]) .reply-area-container .reply-area-with-button .reply-button-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:80px}}.reply-area-container .reply-area-with-button .reply-button-container .reply-button:hover{background:var(--blue-1)}.reply-area-container .reply-area-with-button .reply-button-container .reply-button.disabled{cursor:not-allowed}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1697:function(e,t,n){var o=n(35),r=n(1698);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1698:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media print{#line-connector-root{opacity:0}}#line-connector-root{position:relative;z-index:69}.horizontalLine{height:2px}.horizontalLine,.verticalLine{background-color:rgba(30,120,235,.5);position:fixed}.verticalLine{width:2px}.arrowHead{position:absolute;inset-block-start:0;inset-inline-start:0;margin:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-inline-end:7px solid rgba(30,120,235,.5);transform:translateX(-100%) translateY(-50%) translateY(1px)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1699:function(e,t,n){var o=n(35),r=n(1700);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1700:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Note{padding:0;border:none;background-color:transparent;display:block;text-align:start;border-radius:4px;box-shadow:0 0 3px 0 var(--note-box-shadow);margin-bottom:8px;margin-inline-start:2px;background:var(--component-background);cursor:pointer;position:relative}:host(:not([data-tabbing=true])) .Note,html:not([data-tabbing=true]) .Note{outline:none}.Note.unread{border:1.2px solid #00a5e4}.Note.expanded{box-shadow:0 4px 16px var(--note-box-shadow-expanded),0 0 4px 0 var(--note-box-shadow)}.Note.is-multi-selected{box-shadow:0 4px 16px rgba(134,142,150,.24),0 0 4px 0 var(--note-box-shadow)}.Note.disabled{opacity:.5;pointer-events:none}.Note .note-button{position:absolute;width:100%;height:100%;inset-block-start:0;inset-inline-start:0}.Note .mark-all-read-button{background:#00a5e4;text-align:center;color:#fff;height:16px;font-size:12px;width:100%;border-radius:0}.Note .divider{height:1px;width:100%;background:var(--divider)}.Note .reply-divider{background:var(--reply-divider);height:1px;width:100%}.Note .replies{margin-inline-start:52px;padding-bottom:12px}.Note .reply{padding-inline-start:12px;padding-bottom:24px;border-inline-start:1px solid var(--reply-divider)}.Note .reply:last-of-type{padding-bottom:0}.Note .group-section{margin-inline-start:52px;padding-bottom:12px;display:flex;flex-direction:column;grid-row-gap:4px;row-gap:4px;padding-inline-end:12px}.Note .group-section.modular-ui .group-child:hover{border:none;box-shadow:inset 0 0 0 1px var(--blue-6);background:var(--faded-component-background);border-radius:4px}.Note .text-button{color:var(--secondary-button-text);display:flex;position:relative;width:auto;height:auto;flex-direction:row-reverse;justify-content:flex-end}.Note .text-button .Icon{color:var(--secondary-button-text);height:18px;width:18px}.Note .group-child{position:relative;width:auto;height:auto;display:block;text-align:start;padding-top:4px;padding-bottom:4px}.Note .group-child:hover{background:var(--view-header-button-hover)}.Note .group-child .NoteContent{padding-bottom:0}.Note:focus{outline:none}.Note.focus-visible,.Note:focus-visible{outline:var(--focus-visible-outline)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1701:function(e,t,n){"use strict";n(9),n(10),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56);var o=n(0),r=n.n(o),i=n(6),a=n(4);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof s?o:s,u=Object.create(l.prototype);return c(u,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(c(t={},o,(function(){return this})),t),p=d.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,c(p,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(p),c(p,r,"Generator"),c(p,o,(function(){return this})),c(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(c=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function s(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}t.a=function(e){var t=e.annotationId,n=e.addAttachments,o=Object(i.e)((function(e){return a.a.getReplyAttachmentHandler(e)})),c=function(){var e,r=(e=l().m((function e(r){var i,a,c;return l().w((function(e){for(;;)switch(e.n){case 0:if(!(i=r.target.files[0])){e.n=3;break}if(a=i,!o){e.n=2;break}return e.n=1,o(i);case 1:c=e.v,a={url:c,name:i.name,size:i.size,type:i.type};case 2:n(t,[a]);case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){s(i,o,r,a,l,"next",e)}function l(e){s(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}();return r.a.createElement("input",{id:"reply-attachment-picker",type:"file",style:{display:"none"},onChange:c,onClick:function(e){e.target.value=""}})}},1702:function(e,t,n){var o=n(35),r=n(1703);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1703:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".signature-widget-info{--widget-header-indent:49px;--widget-body-indent:22px;--arrow-width:12px;padding:4px;display:flex;flex-direction:column;font-size:13px;margin-bottom:10px;margin-inline-start:5px;box-sizing:border-box;border:1px solid transparent;cursor:pointer;--border-radius-amount:4px;-moz-border-radius-topleft:var(--border-radius-amount);-moz-border-radius-topright:var(--border-radius-amount);-moz-border-radius-bottomright:var(--border-radius-amount);-moz-border-radius-bottomleft:var(--border-radius-amount);border-radius:var(--border-radius-amount)}.signature-widget-info p+p{margin:1em 0 0}.signature-widget-info p.result-for-header{margin-top:0}.signature-widget-info p.bold{font-weight:700;margin-bottom:4px}.signature-widget-info p.underline{text-decoration:underline}.signature-widget-info .signatureProperties{padding:0;margin:0}.signature-widget-info .signatureProperties:focus,.signature-widget-info .signatureProperties:hover{color:var(--blue-5)}.signature-widget-info .link{cursor:pointer;outline:none;border:0;background-color:transparent;white-space:nowrap}.signature-widget-info .link.focus-visible,.signature-widget-info .link:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .link p{margin:0;padding:0}.signature-widget-info .panel-list-text-container{height:100%}.signature-widget-info .panel-list-text-container .panel-list-label-header .Button span{text-align:start;overflow:visible;white-space:normal;text-overflow:inherit}.signature-widget-info .panel-list-icon-container .Icon{width:20px;height:20px}.signature-widget-info .title{padding-inline-start:4px;font-weight:700;display:flex;align-items:center;margin-block-start:0;margin-block-end:0;min-height:32px;margin-top:-5px;margin-bottom:-5px;overflow:hidden;border:0;background-color:transparent}.signature-widget-info .title button+*,.signature-widget-info .title div+*{margin-inline-start:2px}.signature-widget-info .title .arrow{min-width:var(--arrow-width);transition:transform .1s ease;margin-top:0;background-color:transparent;border:none;padding:0;display:flex;justify-content:center;align-items:center}.signature-widget-info .title .arrow.expanded{transform:rotate(90deg)}.signature-widget-info .title .arrow .Icon{width:var(--arrow-width);height:var(--arrow-width)}.signature-widget-info .title .arrow.hidden{visibility:hidden;padding:23px}.signature-widget-info .title .arrow:hover .Icon{color:var(--blue-6)}.signature-widget-info .title .arrow.focus-visible,.signature-widget-info .title .arrow:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .title .signature-icon{margin-inline-end:5px}.signature-widget-info .title.focus-visible,.signature-widget-info .title:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .header{margin-inline-start:32px}.signature-widget-info .header ul{padding-inline-start:24px}.signature-widget-info .header .body>div:first-child>p:first-child,.signature-widget-info .header .body>p:first-child{margin-top:.5em}.signature-widget-info .header .body>div:last-child{margin-bottom:.5em}.signature-widget-info .header-with-arrow{margin-inline-start:0}.signature-widget-info .header-with-arrow ul{margin-inline-start:var(--arrow-width)}.signature-widget-info .header-with-arrow ul li{margin-inline-start:18px}.signature-widget-info .panel-list-label-header button{font-weight:700;font-size:13px}.signature-widget-info .signatureDetails,.signature-widget-info .verificationDetails{cursor:default;padding:0;background-color:transparent;border:none;text-align:start}",""])},1704:function(e,t,n){var o=n(35),r=n(1705);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1705:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.SignaturePanel{z-index:65;transition:transform .3s ease,visibility 0s ease .3s}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel{inset-block-start:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel{inset-block-start:0;width:100%;height:100%}}.open.SignaturePanel{transform:none;visibility:visible;transition:transform .3s ease,visibility 0s ease 0s}.SignaturePanel .empty-panel-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;padding:36px;grid-gap:8px;gap:8px}.SignaturePanel .empty-panel-container .empty-icon{width:60px;height:60px;color:var(--gray-6);fill:var(--gray-6)}.SignaturePanel .empty-panel-container .empty-icon svg{width:60px;height:60px}.SignaturePanel .empty-panel-container .empty-message{text-align:center;max-width:131px;font-size:13px}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel .empty-panel-container .empty-message{line-height:15px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel .empty-panel-container .empty-message{line-height:15px}}.SignaturePanel{margin:0 8px 8px;display:flex;flex-direction:column}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel{width:auto;margin:16px;flex-grow:1;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel{width:auto;margin:16px;flex-grow:1;overflow-y:auto}}.SignaturePanel .center{display:flex;justify-content:center;align-items:center}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel .signature-widget-info .title .arrow{min-width:auto;padding:3px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel .signature-widget-info .title .arrow{min-width:auto;padding:3px}}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1706:function(e,t,n){var o=n(35),r=n(1707);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1707:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".TextButton{color:var(--secondary-button-text);width:-moz-fit-content;width:fit-content;padding-inline-start:8px;padding-inline-end:8px}.TextButton .Icon{display:flex;align-items:center}.TextButton svg{color:var(--secondary-button-text);height:14px;width:14px}.TextButton:hover{box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}",""])},1709:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(99),n(142),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(91),n(56),n(17),n(19),n(132),n(11),n(29),n(13),n(94);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(2),c=n.n(l),s=n(6),u=n(305),d=n(1571),f=(n(50),n(76),n(171),n(468),n(62),n(115),n(153),n(1618),n(1710)),p=n(106),h=n.n(p),m=n(315),b=n.n(m),g=n(237),v=n.n(g),y=n(1672),w=n.n(y),x=n(1599),O=(n(38),n(59),n(1)),S=n(4),k=n(5),E=n(3),C=(n(1686),n(96));function T(e){return(T="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 A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var I=function(e,t,n){return{icon:t,label:"action.".concat(e.toLowerCase()),title:"action.".concat(e.toLowerCase()),option:e,dataElement:n}},R=[I("Edit","","notePopupEdit"),I("Delete","","notePopupDelete")],q={handleEdit:c.a.func,handleDelete:c.a.func,isEditable:c.a.bool,isDeletable:c.a.bool,noteId:c.a.string};function L(){}function M(e){var t=e.handleEdit,n=void 0===t?L:t,o=e.handleDelete,i=void 0===o?L:o,l=e.isEditable,c=e.isDeletable,d=e.isReply,f=e.noteId,p=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h="".concat(k.a.NOTE_POPUP_FLYOUT,"-").concat(f),m=P(Object(u.a)(),1)[0];if(!l&&!c)return null;var b=a()("overflow note-popup-toggle-trigger"),g=a()("NotePopup options note-popup-options",{"options-reply":d,"modular-ui":p});return r.a.createElement("div",{className:g},r.a.createElement(C.a,{dataElement:"notePopup-".concat(f),className:b,img:"icon-tools-more",title:m("formField.formFieldPopup.options"),toggleElement:h,disabled:!1}),r.a.createElement(D,{flyoutSelector:h,handleClick:function(e){"Edit"===e?n():"Delete"===e&&i()},isEditable:l,isDeletable:c}))}var D=function(e){var t=e.flyoutSelector,n=e.handleClick,r=e.isEditable,i=e.isDeletable,a=Object(s.d)(),l=Object(s.e)((function(e){return S.a.getFlyout(e,t)})),c=P(Object(u.a)(),1)[0];return Object(o.useLayoutEffect)((function(){var e=R;r?i||(e=e.filter((function(e){return"Delete"!==e.option}))):e=e.filter((function(e){return"Edit"!==e.option}));var o={dataElement:t,className:"NotePopupFlyout",items:e.map((function(e){return _(_({},e),{},{label:c(e.label),title:c(e.title),onClick:function(){return n(e.option)}})}))};a(l?E.a.updateFlyout(o.dataElement,o):E.a.addFlyout(o))}),[r,i]),null};D.propTypes={flyoutSelector:c.a.string,handleClick:c.a.func,isEditable:c.a.bool,isDeletable:c.a.bool},M.propTypes=q;var z=M;function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function F(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var G=function(e){var t=H(Object(s.e)((function(e){return[S.a.getActiveDocumentViewerKey(e)]})),1)[0],n=e.annotation,o=e.setIsEditing,i=e.noteIndex,a=H(r.a.useState(O.a.canModify(n)),2),l=a[0],c=a[1],u=H(r.a.useState(O.a.canModifyContents(n)),2),d=u[0],f=u[1];r.a.useEffect((function(){function e(){c(O.a.canModify(n,t)),f(O.a.canModifyContents(n,t))}return e(),O.a.addEventListener("updateAnnotationPermission",e,void 0,t),function(){return O.a.removeEventListener("updateAnnotationPermission",e,t)}}),[n,t]);var p={handleEdit:r.a.useCallback((function(){n instanceof window.Core.Annotations.FreeTextAnnotation&&O.a.getAnnotationManager(t).isFreeTextEditingEnabled()?O.a.getAnnotationManager(t).trigger("annotationDoubleClicked",n):o(!0,i)}),[n,o,i]),handleDelete:r.a.useCallback((function(){O.a.deleteAnnotations([n].concat(F(n.getGroupedChildren())),void 0,t)}),[n]),isEditable:d,isDeletable:l&&!(null!=n&&n.NoDelete),noteId:n?n.Id:""};return r.a.createElement(z,B({},e,p))},V=n(1638);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Y={annotation:c.a.object.isRequired,handleStateChange:c.a.func};function Z(e){var t=e.annotation,n=e.handleStateChange,o=void 0===n?function(){}:n,i=K(Object(u.a)(),1)[0],a=t.getStatus(),l="icon-annotation-status-".concat(""===a?"none":a.toLowerCase()),c=t.Id;return r.a.createElement(r.a.Fragment,null,r.a.createElement(C.a,{dataElement:"noteState-".concat(c),title:i("option.notesOrder.status"),img:l,toggleElement:"".concat(k.a.NOTE_STATE_FLYOUT,"-").concat(c)}),r.a.createElement(V.a,{noteId:c,handleStateChange:o}))}Z.propTypes=Y;var X=Z,Q=n(1635),J=n(182);function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var te={annotation:c.a.object};function ne(e){var t=Object(s.e)((function(e){return S.a.getActiveDocumentViewerKey(e)})),n=Object(s.e)((function(e){return S.a.isElementDisabled(e,"noteState")})),i=e.annotation,a=Object(J.a)(Object(o.useCallback)((function(e){var n=Object(Q.a)(i,e,t);i.addReply(n);var o=O.a.getAnnotationManager(t);o.addAnnotation(n),o.trigger("addReply",[n,i,o.getRootAnnotation(i)])}),[i,t]));return!n&&r.a.createElement("div",null,r.a.createElement(X,ee({handleStateChange:a},e)))}ne.propTypes=te;var oe=ne,re=n(51),ie=n(116);function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ce={annotationId:c.a.string,ariaLabel:c.a.string,pendingEditTextMap:c.a.object,pendingReplyMap:c.a.object,pendingAttachmentMap:c.a.object},se=function(e){var t=e.annotationId,n=e.ariaLabel,i=e.pendingEditTextMap,a=e.pendingReplyMap,l=e.pendingAttachmentMap,c=Object(u.a)().t,s=ae(Object(o.useState)(!1),2),d=s[0],f=s[1],p=ae(Object(o.useState)(!1),2),h=p[0],m=p[1],b=ae(Object(o.useState)(!1),2),g=b[0],v=b[1];return Object(o.useEffect)((function(){var e,n,o;f((null===(e=i[t])||void 0===e?void 0:e.length)>0),m((null===(n=a[t])||void 0===n?void 0:n.length)>0),v((null===(o=l[t])||void 0===o?void 0:o.length)>0)}),[i,a,l]),d||h||g?r.a.createElement("div",{"data-element":"unpostedCommentIndicator"},r.a.createElement(ie.a,{content:c("message.unpostedComment")},r.a.createElement("div",null,r.a.createElement(re.a,{className:"type-icon",glyph:"icon-unposted-comment",ariaLabel:n})))):null};se.propTypes=ce;var ue=se,de={annotationId:c.a.string,ariaLabel:c.a.string},fe=function(e){var t=e.annotationId,n=e.ariaLabel,o=Object(s.e)((function(e){return S.a.isElementDisabled(e,"unpostedCommentIndicator")})),i=r.a.useContext(d.a),a=i.pendingEditTextMap,l=i.pendingReplyMap,c=i.pendingAttachmentMap;return o?null:r.a.createElement(ue,{annotationId:t,ariaLabel:n,pendingEditTextMap:a,pendingReplyMap:l,pendingAttachmentMap:c})};fe.propTypes=de;var pe=fe,he=n(160),me=n(41),be=n(233),ge=n(176),ve=n(161),ye=n(183),we=n(232),xe=n(25),Oe=n(107);n(1688);function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ee={icon:c.a.string,iconColor:c.a.string,color:c.a.string,fillColor:c.a.string,annotation:c.a.object,language:c.a.string,noteDateFormat:c.a.string,isSelected:c.a.bool,setIsEditing:c.a.func,notesShowLastUpdatedDate:c.a.bool,isUnread:c.a.bool,renderAuthorName:c.a.func,isNoteStateDisabled:c.a.bool,isEditing:c.a.bool,noteIndex:c.a.number,sortStrategy:c.a.string,activeTheme:c.a.string,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,handleMultiSelect:c.a.func,isGroupMember:c.a.bool,showAnnotationNumbering:c.a.bool,isTrackedChange:c.a.bool};function Ce(e){var t,n,o,i=e.icon,l=e.iconColor,c=e.annotation,s=e.language,d=e.noteDateFormat,f=e.isSelected,p=e.setIsEditing,m=e.notesShowLastUpdatedDate,b=e.isReply,g=e.isUnread,v=e.renderAuthorName,y=e.isNoteStateDisabled,w=e.isEditing,x=e.noteIndex,S=e.sortStrategy,k=e.activeTheme,E=e.isMultiSelected,C=e.isMultiSelectMode,T=e.handleMultiSelect,A=e.isGroupMember,_=e.showAnnotationNumbering,j=e.timezone,P=e.isTrackedChange,N=Se(Object(u.a)(),1)[0],I=S===ye.a.MODIFIED_DATE||m&&S!==ye.a.CREATED_DATE?Object(be.a)(c):c.DateCreated;if(j&&I){var R=I.toLocaleString("en-US",{timeZone:j});o=new Date(R)}else o=I;var q=o?h()(o).locale(s).format(d):N("option.notesPanel.noteContent.noDate"),L=c.getReplies().length,M=null===(t=c[l])||void 0===t||null===(n=t.toHexString)||void 0===n?void 0:n.call(t);k===we.a.DARK&&M&&Object(ve.c)(M)?M=Oe.b.white:k===we.a.LIGHT&&M&&Object(ve.d)(M)&&(M=Oe.b.black);var D=Object(ge.a)(c.FillColor),z=c.getAssociatedNumber(),B="#".concat(z," - "),F=a()("author-and-date",{isReply:b}),H=a()("NoteHeader",{parent:!b&&!A});return r.a.createElement("div",{className:H},!b&&r.a.createElement("div",{className:"type-icon-container"},g&&r.a.createElement("div",{className:"unread-notification"}),r.a.createElement(re.a,{className:"type-icon",glyph:i,color:M,fillColor:D})),r.a.createElement("div",{className:F},r.a.createElement("div",{className:"author-and-overflow"},r.a.createElement("div",{className:"author-and-time"},r.a.createElement("div",{className:"author"},_&&void 0!==z&&r.a.createElement("span",{className:"annotation-number"},B),v(c)),r.a.createElement("div",{className:"date-and-num-replies"},r.a.createElement("div",{className:"date-and-time"},q,A&&" (Page ".concat(c.PageNumber,")")),L>0&&!f&&r.a.createElement("div",{className:"num-replies-container"},r.a.createElement(re.a,{className:"num-reply-icon",glyph:"icon-chat-bubble"}),r.a.createElement("div",{className:"num-replies"},L)))),r.a.createElement("div",{className:"state-and-overflow"},C&&!A&&!b&&r.a.createElement(he.a,{id:"note-multi-select-toggle_".concat(c.Id),"aria-label":"".concat(v(c)," ").concat(N("option.notesPanel.toggleMultiSelect")),checked:E,onClick:function(e){e.preventDefault(),e.stopPropagation(),T(!E)}}),r.a.createElement(pe,{annotationId:c.Id,ariaLabel:"Unposted Comment, ".concat(v(c),", ").concat(q)}),!y&&!b&&!C&&!A&&!P&&r.a.createElement(oe,{annotation:c,isSelected:f}),!w&&f&&!C&&!A&&!P&&r.a.createElement(G,{noteIndex:x,annotation:c,setIsEditing:p,isReply:b}),f&&P&&!C&&r.a.createElement(r.a.Fragment,null,r.a.createElement(me.a,{title:N("officeEditor.accept"),img:"icon-menu-checkmark",className:"tracked-change-icon-wrapper accept",onClick:function(){return e=c.getCustomData(xe.w),void O.a.getOfficeEditor().acceptTrackedChange(e);var e},iconClassName:"tracked-change-icon"}),r.a.createElement(me.a,{title:N("officeEditor.reject"),img:"icon-close",className:"tracked-change-icon-wrapper reject",onClick:function(){return e=c.getCustomData(xe.w),void O.a.getOfficeEditor().rejectTrackedChange(e);var e},iconClassName:"tracked-change-icon"}))))))}Ce.propTypes=Ee;var Te=Ce,Ae=n(1636);function _e(){return(_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ne=function(e){var t=je(Object(s.e)((function(e){return[S.a.getNotesPanelWidth(e)]}),s.c),1)[0];return r.a.createElement(Ae.a,_e({},e,{panelWidth:t}))},Ie=(n(378),n(379),n(380),n(172));n(181);function Re(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return qe(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(qe(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,qe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,qe(d,"constructor",s),qe(s,"constructor",c),c.displayName="GeneratorFunction",qe(s,r,"GeneratorFunction"),qe(d),qe(d,r,"Generator"),qe(d,o,(function(){return this})),qe(d,"toString",(function(){return"[object Generator]"})),(Re=function(){return{w:i,m:f}})()}function qe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(qe=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){qe(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Le(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Me(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Le(i,o,r,a,l,"next",e)}function l(e){Le(i,o,r,a,l,"throw",e)}a(void 0)}))}}var De="ic-file-pdf",ze="ic-file-img",Be="ic-file-cad",Fe="ic-file-doc",He="ic-file-ppt",Ue="ic-file-xls",We="ic-file-etc",Ge=window.Core.Annotations.FileAttachmentUtils;function Ve(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=Me(Re().m((function e(t){return Re().w((function(e){for(;;)switch(e.n){case 0:return e.a(2,Ge.decompressWithFlateDecode(t.content,t.type))}}),e)})))).apply(this,arguments)}function $e(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=Me(Re().m((function e(t){var n,o=arguments;return Re().w((function(e){for(;;)switch(e.n){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:[],e.n=1,t.setAttachments(n);case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function Ze(e){return!(!e.type||!e.type.startsWith("image/"))}function Xe(e){var t;if(Ze(e))return ze;switch(null===(t=e.name)||void 0===t?void 0:t.split(".").pop().toLowerCase()){case"pdf":return De;case"cad":return Be;case"doc":case"docx":return Fe;case"ppt":case"pptx":return He;case"xls":case"xlsx":return Ue;default:return We}}var Qe=n(1690),Je=n.n(Qe);function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return tt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(tt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,tt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,tt(d,"constructor",s),tt(s,"constructor",c),c.displayName="GeneratorFunction",tt(s,r,"GeneratorFunction"),tt(d),tt(d,r,"Generator"),tt(d,o,(function(){return this})),tt(d,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:f}})()}function tt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(tt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function nt(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var ot=function(e){return new Promise((function(t){if(void 0===e.size)t(e.toString("utf-8"));else{var n=new FileReader;n.onload=function(){return t(n.result)},n.readAsText(e)}}))},rt=function(e){return"image/svg+xml"===e.type},it=function(){var e,t=(e=et().m((function e(t){var n,o,r,i;return et().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,ot(t);case 1:if(n=e.v){e.n=2;break}return e.a(2,{svg:t});case 2:return o=[],Je.a.addHook("uponSanitizeElement",(function(e,t){var n=t.tagName;t.allowedTags[n]||o.push(n)})),r=Je.a.sanitize(n),i=new Blob([r],{type:"image/svg+xml"}),e.a(2,{svg:i,isDirty:o.length>0})}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){nt(i,o,r,a,l,"next",e)}function l(e){nt(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();n(1691);function at(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return lt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(lt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,lt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,lt(d,"constructor",s),lt(s,"constructor",c),c.displayName="GeneratorFunction",lt(s,r,"GeneratorFunction"),lt(d),lt(d,r,"Generator"),lt(d,o,(function(){return this})),lt(d,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,m:f}})()}function lt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(lt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function ct(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function st(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ct(i,o,r,a,l,"next",e)}function l(e){ct(i,o,r,a,l,"throw",e)}a(void 0)}))}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ft=function(e){var t=e.file,n=ut(Object(u.a)(),1)[0],i=ut(Object(o.useState)(),2),l=i[0],c=i[1],s=ut(Object(o.useState)(!1),2),d=s[0],f=s[1];return Object(o.useEffect)((function(){(function(){var e=st(at().m((function e(){var n,o,r,i,a;return at().w((function(e){for(;;)switch(e.n){case 0:if(f(!1),n=t,!(o=!(t instanceof File||t.url))){e.n=2;break}return e.n=1,Ve(t);case 1:n=e.v;case 2:if(!(t instanceof File||o)){e.n=5;break}if(!rt(t)){e.n=4;break}return e.n=3,it(n);case 3:r=e.v,i=r.svg,a=r.isDirty,c(URL.createObjectURL(i)),f(a),e.n=5;break;case 4:c(URL.createObjectURL(n));case 5:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[t]),r.a.createElement("div",{className:a()({"reply-attachment-preview":!0,dirty:d})},r.a.createElement("img",{src:l}),d&&r.a.createElement("span",{className:"reply-attachment-preview-message"},n("message.svgMalicious")))},pt=function(e){var t=e.files,n=e.isEditing,o=e.fileDeleted,i=ut(Object(s.e)((function(e){return[S.a.getTabManager(e),S.a.isReplyAttachmentPreviewEnabled(e)]})),2),a=i[0],l=i[1],c=ut(Object(u.a)(),1)[0],d=function(){var e=st(at().m((function e(t,n){var o;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),a){e.n=1;break}return e.a(2,console.warn("Can't open attachment in non-multi-tab mode"));case 1:if(!(n instanceof File)){e.n=2;break}o=n,e.n=5;break;case 2:if(!n.url){e.n=3;break}o=n.url,e.n=5;break;case 3:return e.n=4,Ve(n);case 4:o=e.v;case 5:o&&a.addTab(o,{filename:n.name,setActive:!0,saveCurrentActiveTabState:!0});case 6:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=st(at().m((function e(t,n){var o,r;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),!n.url){e.n=1;break}r=n.url,e.n=3;break;case 1:return e.n=2,Ve(n);case 2:r=e.v;case 3:o=r,Object(Ie.saveAs)(o,n.name);case 4:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return r.a.createElement("div",{className:"reply-attachment-list"},t.map((function(e,t){return r.a.createElement("div",{className:"reply-attachment",key:t,onClick:function(t){return d(t,e)}},l&&Ze(e)&&r.a.createElement(ft,{file:e}),r.a.createElement("div",{className:"reply-attachment-info"},r.a.createElement(re.a,{className:"reply-attachment-icon",glyph:Xe(e)}),r.a.createElement(ie.a,{content:e.name},r.a.createElement("div",{className:"reply-file-name"},e.name)),n?r.a.createElement(me.a,{className:"attachment-button",title:"".concat(c("action.delete")," ").concat(c("option.type.fileattachment")),img:"icon-close",onClick:function(t){return function(e,t){e.preventDefault(),e.stopPropagation(),o(t)}(t,e)}}):r.a.createElement(me.a,{className:"attachment-button",title:"".concat(c("action.download")," ").concat(c("option.type.fileattachment")),img:"icon-download",onClick:function(t){return f(t,e)}})))})))},ht=n(479),mt=n(372),bt=n(1596),gt=function(e){var t={};if(e["font-weight"]&&"normal"!==e["font-weight"]&&(t.bold=!0),e["font-style"]&&"normal"!==e["font-style"]&&(t.italic=!0),e.color&&(t.color=e.color),e["text-decoration"]){var n=e["text-decoration"].split(" ");n.includes("line-through")&&(t.strike=!0),n.includes("word")&&(t.underline=!0)}return t},vt=function(e,t){for(var n=e.getRichTextStyle(),o=Object.keys(n),r=mt.a.getFormattedTextFromDeltas(t.getContents()),i=mt.a.extractMentionDataFromStr(r).plainTextValue,a=[],l=0;l<o.length;l++){var c=n[o[l]],s=gt(c);if(!isNaN(o[l])){var u=isNaN(o[l+1])?i.length:o[l+1],d=i.slice(o[l],u);a.push({insert:d,attributes:s})}}t.setContents(a),t.setSelection(i.length,0)},yt=n(45),wt=n(53),xt=n(229),Ot=n(60);n(1693);function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return kt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(kt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,kt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,kt(d,"constructor",s),kt(s,"constructor",c),c.displayName="GeneratorFunction",kt(s,r,"GeneratorFunction"),kt(d),kt(d,r,"Generator"),kt(d,o,(function(){return this})),kt(d,"toString",(function(){return"[object Generator]"})),(St=function(){return{w:i,m:f}})()}function kt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(kt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){kt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Et(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}h.a.extend(b.a);var At={annotation:c.a.object.isRequired,isEditing:c.a.bool,setIsEditing:c.a.func,noteIndex:c.a.number,isUnread:c.a.bool,isNonReplyNoteRead:c.a.bool,onReplyClicked:c.a.func,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,handleMultiSelect:c.a.func,isGroupMember:c.a.bool,handleNoteClick:c.a.func},_t=function(e){var t,n=e.annotation,i=e.isEditing,l=e.setIsEditing,c=e.noteIndex,p=e.isUnread,h=e.isNonReplyNoteRead,m=e.onReplyClicked,b=e.isMultiSelected,g=e.isMultiSelectMode,y=e.handleMultiSelect,x=e.isGroupMember,k=e.handleNoteClick,C=void 0===k?function(){}:k,T=Object(s.e)((function(e){return S.a.getNoteDateFormat(e)})),A=Object(s.e)((function(e){return S.a.getIconColor(e,Object(wt.g)(n),s.c)})),_=Object(s.e)((function(e){return S.a.isElementDisabled(e,"noteStateFlyout")})),j=Object(s.e)((function(e){return S.a.getCurrentLanguage(e)})),P=Object(s.e)((function(e){return S.a.notesShowLastUpdatedDate(e)})),N=Object(s.e)((function(e){return S.a.isNotesPanelTextCollapsingEnabled(e)})),I=Object(s.e)((function(e){return S.a.isNotesPanelRepliesCollapsingEnabled(e)})),R=Object(s.e)((function(e){return S.a.getActiveTheme(e)})),q=Object(s.e)((function(e){return S.a.getTimezone(e)})),L=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),M=Object(o.useContext)(d.a),D=M.isSelected,z=M.searchInput,B=M.resize,F=M.pendingEditTextMap,H=M.onTopNoteContentClicked,U=M.sortStrategy,W=M.showAnnotationNumbering,G=M.setPendingEditText,V=Object(s.d)(),K=Ct(Object(u.a)(),1)[0],$=n.isReply(),Y=Object(wt.g)(n)===wt.c.TRACKED_CHANGE,Z=Ct(Object(o.useState)([]),2),X=Z[0],Q=Z[1];Object(o.useEffect)((function(){Q(n.getAttachments())}),[n]),Object(o.useEffect)((function(){var e=function(e,t){"modify"===t&&e.forEach((function(e){e.Id===n.Id&&Q(e.getAttachments())}))};return O.a.addEventListener("annotationChanged",e),function(){O.a.removeEventListener("annotationChanged",e)}}),[n]),Object(xt.a)((function(){i||V(E.a.finishNoteEditing()),B()}),[i]);var J,ee=Object(o.useCallback)((function(e){var t=O.a.getDisplayAuthor(e.Author);return t?Rt(t,z):K("option.notesPanel.noteContent.noName")}),[z]),te=n.getSkipAutoLink&&n.getSkipAutoLink(),ne=Object(o.useCallback)((function(e,t,o,i){var a=[];if(i||f.a.link(e,{stripPrefix:!1,stripTrailingSlash:!1,replaceFn:function(e){var t=e.getAnchorHref(),n=e.getAnchorText(),o=e.getOffset();switch(e.getType()){case"url":case"email":case"phone":a.push({href:t,text:n,start:o,end:o+e.getMatchedText().length})}}}),!a.length){var l=Rt(e,z,t);if(!z&&(!$&&N||$&&I)){return r.a.createElement(Ne,{linesToBreak:3,comment:!0,renderRichText:It,richTextStyle:t,resize:B,style:o,beforeContent:function(){if(!Y)return null;var e=1===n.TrackedChangeType?K("officeEditor.added"):K("officeEditor.deleted");return r.a.createElement("span",{style:{color:n.FillColor.toString(),fontWeight:700}},e)}},e)}return l}var c=[],s=0;return a.forEach((function(n,o){var i=n.start,a=n.end,l=n.href;s<i&&c.push(r.a.createElement("span",{key:"span_".concat(o)},Rt(e,z,t,s,i))),c.push(r.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",key:"a_".concat(o)},Rt(e,z,t,i,a))),s=a})),s<e.length-1&&c.push(Rt(e,z,t,s)),c}),[z]),oe=Object(wt.e)(Object(wt.g)(n)).icon;try{J=JSON.parse(n.getCustomData("trn-mention"))}catch(e){J=n.getCustomData("trn-mention")}var re=(null===(t=J)||void 0===t?void 0:t.contents)||n.getContents();re=function(e){return e?w()(e):e}(re);var ie=n instanceof window.Core.Annotations.Link?Object(ht.a)(n):n.getContents(),ae=n.getRichTextStyle(),le=n.TextColor;if(R===we.a.DARK)le&&Object(ve.c)(le.toHexString())&&(le=new window.Core.Annotations.Color(255,255,255,1)),ae&&Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.c)(ae[e].color)&&(ae[e].color=Oe.b.white)}));else if(R===we.a.LIGHT){if(le&&Object(ve.d)(le.toHexString())&&(le=new window.Core.Annotations.Color(0,0,0,1)),ae)Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.d)(ae[e].color)&&(ae[e].color=Oe.b.black)}))}var ce,se=void 0===F[n.Id];ce=re&&se?re:F[n.Id];var ue=function(e){var t;null!==(t=window.getSelection())&&void 0!==t&&t.toString()&&(null==e||e.stopPropagation()),C(e)},de=a()({NoteContent:!0,isReply:$,unread:p,clicked:h,"modular-ui":L}),fe=Object(o.useMemo)((function(){var e={};return le&&(e.color=le.toHexString()),r.a.createElement(r.a.Fragment,null,i&&D?r.a.createElement(Pt,{annotation:n,noteIndex:c,setIsEditing:l,textAreaValue:ce,onTextAreaValueChange:G,pendingText:F[n.Id]}):ie&&r.a.createElement("div",{className:a()("container",{"reply-content":$}),onClick:ue},$&&X.length>0&&r.a.createElement(pt,{files:X,isEditing:!1}),ne(ie,ae,e,te)))}),[n,D,i,l,re,ne,ce,G,X]),pe=n.getCustomData("trn-annot-preview"),he=Object(o.useMemo)((function(){if(""===pe)return null;var e=Rt(pe,z),t=!$&&N;return v()(e)&&t?r.a.createElement(Ot.a,{onClick:C,className:"selected-text-preview",dataElement:"notesSelectedTextPreview"},r.a.createElement(Ne,{linesToBreak:3},'"'.concat(e,'"'))):r.a.createElement("div",{className:"selected-text-preview",style:{paddingRight:"12px"}},e)}),[pe,z]),me=Object(o.useMemo)((function(){return r.a.createElement(Te,{icon:oe,iconColor:A,annotation:n,language:j,noteDateFormat:T,isSelected:D,setIsEditing:l,notesShowLastUpdatedDate:P,isReply:$,isUnread:p,renderAuthorName:ee,isNoteStateDisabled:_,isEditing:i,noteIndex:c,sortStrategy:U,activeTheme:R,handleMultiSelect:y,isMultiSelected:b,isMultiSelectMode:g,isGroupMember:x,showAnnotationNumbering:W,timezone:q,isTrackedChange:Y})}),[oe,A,n,j,T,D,l,P,$,p,ee,O.a.getDisplayAuthor(n.Author),_,i,c,Object(be.a)(n),U,y,b,g,x,q,Y]);return r.a.createElement("div",{className:de,onClick:function(){x||($?m(n):i||H())}},me,he,fe)};_t.propTypes=At;var jt=_t,Pt=function(e){var t=e.annotation,n=e.noteIndex,i=e.setIsEditing,l=e.textAreaValue,c=e.onTextAreaValueChange,f=e.pendingText,p=Ct(Object(s.e)((function(e){return[S.a.getAutoFocusNoteOnAnnotationSelection(e),S.a.getIsMentionEnabled(e),S.a.isElementDisabled(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.NOTES_PANEL),S.a.getActiveDocumentViewerKey(e),S.a.isAnyCustomPanelOpen(e)]})),7),h=p[0],m=p[1],b=p[2],g=p[3],v=p[4],y=p[5],w=p[6],E=Ct(Object(u.a)(),1)[0],C=Object(o.useRef)(),T=t.isReply(),A=Object(o.useContext)(d.a),_=A.setCurAnnotId,j=A.pendingAttachmentMap,P=A.deleteAttachment,N=A.clearAttachments,I=A.addAttachments,R=!b&&g&&Object(yt.k)();Object(o.useEffect)((function(){if(w||(v||g)&&C.current){var e=C.current.getEditor();t&&t instanceof window.Core.Annotations.FreeTextAnnotation&&e.setText(""),f?Object(bt.a)(e,t):e.getContents()&&setTimeout((function(){if(m){l=mt.a.getFormattedTextFromDeltas(e.getContents());var n=mt.a.extractMentionDataFromStr(l),o=n.plainTextValue;n.ids.length&&e.setText(o)}var r;R||h&&(null===(r=C.current)||void 0===r||r.focus(),t.getRichTextStyle()&&vt(t,e))}),100);var n=e.getLength()-1;if(R)return;setTimeout((function(){n&&e.setSelection(n,n)}),100)}}),[v,g,R]),Object(o.useEffect)((function(){if(T&&0===M.length){var e=t.getAttachments();I(t.Id,e)}}),[]);var q=function(){var e,o=(e=St().m((function e(o){var r,a,s,u,d;return St().w((function(e){for(;;)switch(e.n){case 0:return o.preventDefault(),r=C.current.getEditor(),l=mt.a.getFormattedTextFromDeltas(r.getContents()),Object(bt.a)(r,t),l.length>1&&"\n"===l[l.length-1]&&(l=l.slice(0,l.length-1)),t.getSkipAutoLink&&t.getSkipAutoLink()&&t.disableSkipAutoLink(),m?(a=mt.a.extractMentionDataFromStr(l),s=a.plainTextValue,u=a.ids,mt.a.extractMentionDataFromAnnot(t).mentions.forEach((function(e){s.includes(e.value)&&u.push(e.id)})),t.setCustomData("trn-mention",JSON.stringify({contents:l,ids:u})),t.setContents(s)):t.setContents(l),e.n=1,$e(t,j[t.Id]);case 1:d=t instanceof window.Core.Annotations.FreeTextAnnotation?"textChanged":"noteChanged",O.a.getAnnotationManager(y).trigger("annotationChanged",[[t],"modify",{source:d}]),t instanceof window.Core.Annotations.FreeTextAnnotation&&O.a.drawAnnotationsFromList([t]),i(!1,n),""!==l&&c(void 0,t.Id),N(t.Id);case 2:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Et(i,o,r,a,l,"next",e)}function l(e){Et(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),L=a()("edit-content",{"reply-content":T}),M=j[t.Id]||[];return r.a.createElement("div",{className:L},T&&M.length>0&&r.a.createElement(pt,{files:M,isEditing:!0,fileDeleted:function(e){return P(t.Id,e)}}),r.a.createElement(x.a,{ref:function(e){C.current=e},value:l,onChange:function(e){return c(e,t.Id)},onSubmit:q,isReply:T,onBlur:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.getAttribute("data-element"))&&void 0!==n&&n.includes("annotationCommentButton")?e.target.focus():_(void 0)},onFocus:function(){_(t.Id)}}),r.a.createElement("div",{className:"edit-buttons"},r.a.createElement(me.a,{className:"cancel-button",label:E("action.cancel"),onClick:function(e){e.stopPropagation(),i(!1,n),c(void 0,t.Id),N(t.Id)}}),r.a.createElement(me.a,{className:"save-button".concat(l?"":" disabled"),disabled:!l,label:E("action.save"),onClick:function(e){e.stopPropagation(),q(e)}})))};Pt.propTypes={noteIndex:c.a.number.isRequired,annotation:c.a.object.isRequired,setIsEditing:c.a.func.isRequired,textAreaValue:c.a.string,onTextAreaValueChange:c.a.func.isRequired,pendingText:c.a.string};var Nt=function(e,t,n){var o={fontWeight:t["font-weight"],fontStyle:t["font-style"],textDecoration:t["text-decoration"],color:t.color};return o.textDecoration&&(o.textDecoration=o.textDecoration.replace("word","underline")),r.a.createElement("span",{style:o,key:n},e)},It=function(e,t,n){if(!t||!e)return e;for(var o={},r=Object.keys(t).map(Number).sort((function(e,t){return e-t})),i=0;i<r.length;i++){var a=r[i]-n;if(o[a=Math.min(Math.max(a,0),e.length)]=t[r[i]],a===e.length)break}for(var l=[],c=Object.keys(o).map(Number).sort((function(e,t){return e-t})),s=1;s<c.length;s++)l.push(Nt(e.slice(c[s-1],c[s]),o[c[s-1]],"richtext_span_".concat(s)));return l},Rt=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,a=e.slice(o,i),l=a.toLowerCase(),c=t.toLowerCase();n&&(n[0]=n[0]||{},n[e.length]=n[e.length]||{});var s=l.indexOf(c);if(!c.trim()||-1===s)return It(a,n,o);var u=[],d=[s],f=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp("(".concat(f,")"),"gi").test(l))for(;-1!==s;)-1!==(s=l.indexOf(c,s+c.length))&&d.push(s);return d.forEach((function(e,t){0===t&&0!==e&&u.push(It(a.substring(0,e),n,o)),u.push(r.a.createElement("span",{className:"highlight",key:"highlight_span_".concat(t)},It(a.substring(e,e+c.length),n,o+e))),e+c.length<l.length&&e+c.length!==d[t+1]&&u.push(It(a.substring(e+c.length,d[t+1]),n,o+e+c.length))})),u};var qt=jt;n(1695);function Lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Mt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Mt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Mt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Mt(d,"constructor",s),Mt(s,"constructor",c),c.displayName="GeneratorFunction",Mt(s,r,"GeneratorFunction"),Mt(d),Mt(d,r,"Generator"),Mt(d,o,(function(){return this})),Mt(d,"toString",(function(){return"[object Generator]"})),(Lt=function(){return{w:i,m:f}})()}function Mt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Mt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Mt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Dt(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ft={annotation:c.a.object.isRequired},Ht=function(e){var t=e.annotation,n=e.isUnread,i=e.onPendingReplyChange,l=zt(Object(s.e)((function(e){var n;return[S.a.getAutoFocusNoteOnAnnotationSelection(e),S.a.isDocumentReadOnly(e),S.a.isElementDisabled(e,"noteReply"),null===(n=S.a.getIsReplyDisabled(e))||void 0===n?void 0:n(t),S.a.getIsMentionEnabled(e),S.a.getIsNoteEditing(e),S.a.isElementDisabled(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.INLINE_COMMENT_POPUP),S.a.getActiveDocumentViewerKey(e)]}),s.c),9),c=l[0],u=l[1],f=l[2],p=l[3],h=l[4],m=l[5],b=l[6],g=l[7],v=l[8],y=Object(o.useContext)(d.a),w=y.isContentEditable,C=y.isSelected,T=y.pendingReplyMap,A=y.setPendingReply,_=y.isExpandedFromSearch,j=y.scrollToSelectedAnnot,P=y.setCurAnnotId,N=y.pendingAttachmentMap,I=y.clearAttachments,R=y.deleteAttachment,q=zt(Object(o.useState)(!1),2),L=q[0],M=q[1],D=Object(s.d)(),z=Object(o.useRef)(),B=!b&&g&&Object(yt.k)();Object(xt.a)((function(){L||D(E.a.finishNoteEditing())}),[L]),Object(o.useEffect)((function(){B||m&&C&&!w&&c&&z&&z.current&&z.current.focus()}),[w,m,C,B]),Object(o.useEffect)((function(){if(!_&&j&&setTimeout((function(){z&&z.current&&c&&z.current.focus()}),100),z&&z.current){if(B)return;var e=z.current.getEditor().getLength()-1;setTimeout((function(){z.current&&z.current.editor.setSelection(e,e)}),100)}}),[]);var F=function(){var e,n=(e=Lt().m((function e(n){var o,r,i,a;return Lt().w((function(e){for(;;)switch(e.n){case 0:if(n.preventDefault(),n.stopPropagation(),o=z.current.getEditor(),(r=mt.a.getFormattedTextFromDeltas(o.getContents())).trim()){e.n=1;break}return e.a(2);case 1:if(!h){e.n=3;break}return i=mt.a.createMentionReply(t,r),Object(bt.a)(o,i),e.n=2,$e(i,N[t.Id]);case 2:O.a.addAnnotations([i],v),e.n=5;break;case 3:return a=O.a.createAnnotationReply(t,r),Object(bt.a)(o,a),e.n=4,$e(a,N[t.Id]);case 4:O.a.getAnnotationManager(v).trigger("annotationChanged",[[a],"modify",{}]);case 5:A("",t.Id),I(t.Id);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Dt(i,o,r,a,l,"next",e)}function l(e){Dt(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),H=u||f||p,U=a()({"reply-area":!0,unread:n}),W=N[t.Id]||[];return H||!C?null:r.a.createElement("form",{onSubmit:F,className:"reply-area-container"},W.length>0&&r.a.createElement(pt,{files:W,isEditing:!0,fileDeleted:function(e){return R(t.Id,e)}}),r.a.createElement("div",{className:"reply-area-with-button"},r.a.createElement("div",{className:U,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(x.a,{ref:function(e){z.current=e},value:T[t.Id],onChange:function(e){return function(e){A(e,t.Id),i&&i()}(e)},onSubmit:F,onBlur:function(){M(!1),P(void 0)},onFocus:function(){M(!0),P(t.Id)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(me.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",disabled:!T[t.Id],onClick:F,isSubmitType:!0}))))};Ht.propTypes=Ft;var Ut=Ht;function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Vt={groupAnnotations:c.a.array.isRequired,isMultiSelectMode:c.a.bool.isRequired},Kt=function(e){var t=e.groupAnnotations,n=e.isMultiSelectMode,i=Wt(Object(u.a)(),1)[0],l=Object(s.d)(),c=Wt(Object(o.useState)(!1),2),d=c[0],f=c[1],p=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h=r.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),f(!0)},className:"text-button",ariaLabel:i("component.noteGroupSection.open"),label:i("component.noteGroupSection.open"),img:"ic_chevron_down_black_24px"}),m=r.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),f(!1)},className:"text-button",ariaLabel:i("component.noteGroupSection.close"),label:i("component.noteGroupSection.close"),img:"ic_chevron_up_black_24px"});return r.a.createElement("div",{className:a()({"group-section":!0,"modular-ui":p})},d?m:h,d&&t.map((function(e,t){return 0===t?null:r.a.createElement(me.a,{key:e.Id,className:"group-child",onClick:function(t){t.preventDefault(),t.stopPropagation(),O.a.selectAnnotation(e),O.a.jumpToAnnotation(e),l(E.a.openElement("annotationPopup"))}},r.a.createElement(qt,{key:e.Id,annotation:e,isUnread:!1,isGroupMember:!0,isMultiSelectMode:n}))})))};Kt.propTypes=Vt;var $t=Kt,Yt=n(119),Zt=n(32),Xt=n(230),Qt=n(23);n(1697);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var tn=function(e){var t=e.children,n=Object(Qt.a)().querySelector("#line-connector-root"),r=document.createElement("div");return r.setAttribute("data-element",k.a.ANNOTATION_NOTE_CONNECTOR_LINE),Object(o.useEffect)((function(){return n.appendChild(r),function(){return n.removeChild(r)}}),[r,n]),Object(Yt.createPortal)(t,r)},nn={annotation:c.a.object,noteContainerRef:c.a.object,isCustomPanelOpen:c.a.bool},on=function(e){var t=e.annotation,n=e.noteContainerRef,i=e.isCustomPanelOpen,a=Jt(Object(s.e)((function(e){return[S.a.getIsCustomUIEnabled(e),S.a.getTopHeadersHeight(e),S.a.getBottomHeadersHeight(e),S.a.getNotesPanelWidth(e),S.a.isElementOpen(e,k.a.ANNOTATION_NOTE_CONNECTOR_LINE),S.a.isElementOpen(e,k.a.NOTES_PANEL),S.a.isElementDisabled(e,k.a.ANNOTATION_NOTE_CONNECTOR_LINE),S.a.getDocumentContainerWidth(e),S.a.getDocumentContainerHeight(e),S.a.getActiveDocumentViewerKey(e)]}),s.c),10),l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],p=a[5],h=a[6],m=a[7],b=a[8],g=a[9],v=Object(s.d)(),y=Jt(Object(o.useState)(0),2),w=y[0],x=y[1],C=Jt(Object(o.useState)(0),2),T=C[0],A=C[1],_=Jt(Object(o.useState)(0),2),j=_[0],P=_[1],N=Jt(Object(o.useState)(0),2),I=N[0],R=N[1],q=Jt(Object(o.useState)(0),2),L=q[0],M=q[1],D=Jt(Object(o.useState)(0),2),z=D[0],B=D[1],F=l?Zt.b:0,H=Object(Xt.d)(t,g),U=H.bottomRight,W=H.topLeft,G=Object(o.useCallback)((function(){return"Note"===t.Subject?4:15}),[t]);if(Object(o.useEffect)((function(){var e=function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return O.a.addEventListener("pageNumberUpdated",e,void 0,g),function(){O.a.removeEventListener("pageNumberUpdated",e,g)}}),[]),Object(o.useEffect)((function(){if(n&&n.current){var e=O.a.getScrollViewElement(g),o=e.scrollTop,r=e.scrollLeft;if(!(U&&W))return function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};var i,a=window.isApryseWebViewerWebComponent,l=U.x-W.x,c=window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientWidth:window.innerWidth,s=(i={viewerWidth:c,annotationXPosition:W.x,annotationWidth:l,notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,scrollLeft:r}).viewerWidth-i.annotationXPosition-i.annotationWidth-i.notePanelWidth+i.notePanelPadding+i.notesPanelResizeBarWidth+i.scrollLeft,u=function(e){var t=e.notePanelWidth,n=e.notePanelPadding,o=e.notesPanelResizeBarWidth,r=e.notesContainerTop,i=e.viewerOffsetTop,a=e.distanceToAnnotation,l=e.lineWidthRatio;return{rightHorizontalLineRightOffset:t-n-o,rightHorizontalLineTopOffset:r-i,rightHorizontalLineLength:a*(void 0===l?.75:l)}}({notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,notesContainerTop:n.current.getBoundingClientRect().top,viewerOffsetTop:a?Object(Qt.a)().host.offsetTop:0,distanceToAnnotation:s,lineWidthRatio:.75}),f=u.rightHorizontalLineRightOffset,p=u.rightHorizontalLineTopOffset,h=u.rightHorizontalLineLength;P(f),A(p),x(h);var m=function(e){var t=e.isAnnotationNoZoom,n=e.annotationNoZoomReferencePoint,o=e.annotationHeight,r=e.notePanelWidth,i=e.notePanelPadding,a=e.notesPanelResizeBarWidth,l=e.rightHorizontalLineLength,c=e.distanceToAnnotation,s=e.annotationTopLeftY,u=e.scrollTop,d=e.annotationLineOffset,f=t&&n.x?n.x*o:0;return{leftHorizontalLineRightOffset:r-i-a+l,leftHorizontalLineTopOffset:s+o/2-u-(t&&n.y?n.y*o:0),leftHorizontalLineLength:c-l-d+f}}({isAnnotationNoZoom:t.NoZoom,annotationNoZoomReferencePoint:t.getNoZoomReferencePoint(),annotationHeight:U.y-W.y,notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,rightHorizontalLineLength:h,distanceToAnnotation:s,annotationTopLeftY:W.y,scrollTop:o,annotationLineOffset:G()}),b=m.leftHorizontalLineRightOffset,y=m.leftHorizontalLineTopOffset,w=m.leftHorizontalLineLength;B(b),M(y),R(w)}}),[n,d,U,W,m,b]),Object(o.useEffect)((function(){var e=function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return O.a.addEventListener("pageNumberUpdated",e,void 0,g),function(){O.a.removeEventListener("pageNumberUpdated",e,g)}}),[v,g]),f&&(p||i)&&!h){var V=function(e){var t=e.rightHorizontalLineTop,n=e.leftHorizontalLineTop,o=e.bottomHeaderTop,r=e.topHeadersHeight,i=e.isCustomUIEnabled,a=t>n?n+2:t,l=Math.abs(t-n),c=a<r,s=a+l>o,u=c||s;return u&&i&&(c?(l=Math.abs(t-r)+2,a=r):s&&(l=Math.abs(o-t))),{verticalLineTop:a,verticalLineHeight:l,isAnnotationOffScreen:u}}({rightHorizontalLineTop:T,leftHorizontalLineTop:L,bottomHeaderTop:(window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientHeight:window.innerWidth)-u,topHeadersHeight:c,isCustomUIEnabled:l}),K=V.verticalLineTop,$=V.verticalLineHeight,Y=V.isAnnotationOffScreen;return r.a.createElement(tn,null,r.a.createElement("div",{className:"horizontalLine",style:{width:w,right:j,top:T}}),r.a.createElement("div",{className:"verticalLine",style:{height:$,top:K,right:j+w}}),r.a.createElement("div",{className:"horizontalLine",style:{width:I,right:z,top:L,visibility:Y?"hidden":"visible"}},r.a.createElement("div",{className:"arrowHead"})))}return null};on.propTypes=nn;var rn=on,an=(n(1699),n(1639));function ln(e){return(ln="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 cn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return sn(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(sn(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,sn(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,sn(d,"constructor",s),sn(s,"constructor",c),c.displayName="GeneratorFunction",sn(s,r,"GeneratorFunction"),sn(d),sn(d,r,"Generator"),sn(d,o,(function(){return this})),sn(d,"toString",(function(){return"[object Generator]"})),(cn=function(){return{w:i,m:f}})()}function sn(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(sn=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){sn(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function un(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ln(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var bn={annotation:c.a.object.isRequired,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,isInNotesPanel:c.a.bool,handleMultiSelect:c.a.func},gn=0,vn=function(e){var t=e.annotation,n=e.isMultiSelected,i=e.isMultiSelectMode,l=e.isInNotesPanel,c=e.handleMultiSelect,f=e.isCustomPanelOpen,p=e.shouldHideConnectorLine,h=Object(o.useContext)(d.a),m=h.isSelected,b=h.resize,g=h.pendingEditTextMap,v=h.isContentEditable,y=h.isDocumentReadOnly,w=h.isExpandedFromSearch,x=h.setCurAnnotId,C=Object(o.useRef)(),T=Object(o.useRef)(),A=hn(Object(o.useState)({}),2),_=A[0],j=A[1],P=Object(o.useRef)([]),N=Object(s.d)(),I=hn(Object(u.a)(),1)[0],R=new Set,q=hn(Object(s.e)((function(e){return[S.a.getNoteTransformFunction(e),S.a.getCustomNoteSelectionFunction(e),S.a.getUnreadAnnotationIdSet(e),S.a.isCommentThreadExpansionEnabled(e),S.a.isRightClickAnnotationPopupEnabled(e),S.a.getActiveDocumentViewerKey(e),S.a.getIsOfficeEditorMode(e),S.a.getOfficeEditorEditMode(e)]}),s.c),8),L=q[0],M=q[1],D=q[2],z=q[3],B=q[4],F=q[5],H=q[6],U=q[7],W=Object(o.useCallback)((function(e,t){j((function(n){return fn(fn({},n),{},pn({},t,e))}))}),[j]),G=t.getReplies().sort((function(e,t){return e.DateCreated-t.DateCreated}));G.filter((function(e){return D.has(e.Id)})).forEach((function(e){return R.add(e.Id)})),Object(o.useEffect)((function(){var e=function(e,t){"delete"===t&&e.forEach((function(e){D.has(e.Id)&&N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))};return O.a.addEventListener("annotationChanged",e,void 0,F),function(){O.a.removeEventListener("annotationChanged",e,F)}}),[D]),Object(o.useEffect)((function(){var e=T.current,t=C.current.getBoundingClientRect().height;T.current=t,e&&Math.round(e)!==Math.round(t)&&b()})),Object(o.useEffect)((function(){if(L){var e=Object(Qt.a)().querySelectorAll(".NotesPanel")[0];P.current.forEach((function(t){var n=e.querySelector("[data-webviewer-custom-element=".concat(t,"]"));n&&n.parentNode.removeChild(n)})),P.current=[];var n={annotation:t,isSelected:m};L(C.current,n,(function(){var e,t=(e=document).createElement.apply(e,arguments),n="custom-element-".concat(gn);return gn++,P.current.push(n),t.setAttribute("data-webviewer-custom-element",n),t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t}))}})),Object(o.useEffect)((function(){""!==g[t.Id]&&v&&!y&&W(!0,0)}),[y,v,W,t,i]),Object(xt.a)((function(){!y&&v||W(!1,0)}),[y,v,W]);var V=function(){var e,o=(e=cn().m((function e(o){var r;return cn().w((function(e){for(;;)switch(e.n){case 0:if(o&&o.stopPropagation(),!i){e.n=1;break}return c(!n),e.a(2);case 1:if(D.has(t.Id)&&N(E.a.setAnnotationReadState({isRead:!0,annotationId:t.Id})),M&&M(t),m||(O.a.deselectAllAnnotations(F),setTimeout((function(){return N(E.a.openElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))}),300)),!l||H&&U===xe.z.PREVIEW){e.n=3;break}if(O.a.selectAnnotation(t,F),x(t.Id),O.a.jumpToAnnotation(t,F),B||N(E.a.openElement(k.a.ANNOTATION_POPUP)),!H){e.n=3;break}return r=t.getCustomData(xe.w),e.n=2,O.a.getOfficeEditor().moveCursorToTrackedChange(r);case 2:O.a.getOfficeEditor().freezeMainCursor();case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){un(i,o,r,a,l,"next",e)}function l(e){un(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),K=R.size>0,$=a()({Note:!0,expanded:m,"is-multi-selected":n,unread:D.has(t.Id)||K,disabled:H&&U===xe.z.PREVIEW}),Y=a()({replies:!0,hidden:!m});Object(o.useEffect)((function(){i||G.forEach((function(e,t){var n=g[e.Id];""!==n&&void 0!==n&&m&&W(!0,1+t)}))}),[m,i]),Object(o.useEffect)((function(){i&&W(!1,0)}),[i]);var Z=!Object.values(_).some((function(e){return e})),X=function(e){R.has(e.Id)&&(N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id})),O.a.getAnnotationManager(F).selectAnnotation(e))},Q=function(){if(R.size>0){var e=G.filter((function(e){return R.has(e.Id)}));O.a.getAnnotationManager(F).selectAnnotations(e),e.forEach((function(e){return N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))}},J=O.a.getGroupAnnotations(t,F),ee=J.length>1,te=Object(wt.g)(t)===wt.c.TRACKED_CHANGE,ne=G.length>0?G[G.length-1].Id:null,oe=Object(an.a)(O.a,t),re=m&&(l||f)&&!p&&oe;return r.a.createElement("div",{ref:C,className:$,id:"note_".concat(t.Id)},r.a.createElement(me.a,{className:"note-button",onClick:function(e){return V(e)},ariaLabelledby:"note_".concat(t.Id),ariaCurrent:m,dataElement:"expandNoteButton"}),r.a.createElement(qt,{noteIndex:0,annotation:t,setIsEditing:W,handleNoteClick:V,isEditing:_[0],isNonReplyNoteRead:!D.has(t.Id),isUnread:D.has(t.Id)||K,handleMultiSelect:function(e){x(t.Id),c(e)},isMultiSelected:n,isMultiSelectMode:i}),(m||w||z)&&!te&&r.a.createElement(r.a.Fragment,null,G.length>0&&r.a.createElement("div",{className:Y},K&&r.a.createElement(me.a,{dataElement:"markAllReadButton",className:"mark-all-read-button",label:I("action.markAllRead"),onClick:Q}),G.map((function(e,t){return r.a.createElement("div",{className:"reply",id:"note_reply_".concat(e.Id),key:"note_reply_".concat(e.Id)},r.a.createElement(qt,{noteIndex:t+1,key:e.Id,annotation:e,setIsEditing:W,isEditing:_[t+1],onReplyClicked:X,isUnread:D.has(e.Id),handleMultiSelect:c,isMultiSelected:n,isMultiSelectMode:i,handleNoteClick:V}))}))),ee&&r.a.createElement($t,{groupAnnotations:J,isMultiSelectMode:i}),Z&&!i&&r.a.createElement(Ut,{isUnread:ne&&D.has(ne),onPendingReplyChange:Q,annotation:t})),re&&r.a.createElement(rn,{annotation:t,noteContainerRef:C,isCustomPanelOpen:f}))};vn.propTypes=bn;var yn=vn;t.a=yn},1710:function(e,t,n){"use strict";function o(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function r(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function i(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var a=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],a=e.split(r);t=a.shift();)-1===o(i,t)&&i.push(t);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],a=e.split(r);i.length&&(t=a.shift());){var l=o(i,t);-1!==l&&i.splice(l,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var l,c=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new a({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],o=e.getCssClassSuffixes(),r=0,i=o.length;r<i;r++)n.push(t+"-"+o[r]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,o=t.location;return"smart"===o?function(e,t,n){var o,r;null==n?(n="…",r=3,o=8):(r=n.length,o=n.length);var i=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var o=t/2,r=Math.ceil(o),i=-1*Math.floor(o),a="";return i<0&&(a=e.substr(i)),e.substr(0,r)+n+a};if(e.length<=t)return e;var l=t-r,c=function(e){var t={},n=e,o=n.match(/^([a-z]+):\/\//i);return o&&(t.scheme=o[1],n=n.substr(o[0].length)),(o=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=o[1],n=n.substr(o[0].length)),(o=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=o[1],n=n.substr(o[0].length)),(o=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=o[1],n=n.substr(o[0].length)),(o=n.match(/^#(.*?)$/i))&&(t.fragment=o[1]),t}(e);if(c.query){var s=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);s&&(c.query=c.query.substr(0,s[1].length),e=i(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=i(c)),e.length<=t)return e;var u="";if(c.host&&(u+=c.host),u.length>=l)return c.host.length==t?(c.host.substr(0,t-r)+n).substr(0,l+o):a(u,l).substr(0,l+o);var d="";if(c.path&&(d+="/"+c.path),c.query&&(d+="?"+c.query),d){if((u+d).length>=l)return(u+d).length==t?(u+d).substr(0,t):(u+a(d,l-u.length)).substr(0,l+o);u+=d}if(c.fragment){var f="#"+c.fragment;if((u+f).length>=l)return(u+f).length==t?(u+f).substr(0,t):(u+a(f,l-u.length)).substr(0,l+o);u+=f}if(c.scheme&&c.host){var p=c.scheme+"://";if((u+p).length<l)return(p+u).substr(0,t)}if(u.length<=t)return u;var h="";return l>0&&(h=u.substr(-1*Math.floor(l/2))),(u.substr(0,Math.ceil(l/2))+n+h).substr(0,l+o)}(e,n):"middle"===o?function(e,t,n){if(e.length<=t)return e;var o,r;null==n?(n="…",o=8,r=3):(o=n.length,r=n.length);var i=t-r,a="";return i>0&&(a=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+n+a).substr(0,i+o)}(e,n):function(e,t,n){return function(e,t,n){var o;return e.length>t&&(null==n?(n="…",o=3):o=n.length,e=e.substring(0,t-o)+n),e}(e,t,n)}(e,n)},e}(),s=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),u=n(74),d=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(s),f=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(s),p=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(s),h=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(s),m=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(t)}catch(e){return t}},t}(s),b=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},g=/[A-Za-z]/,v=/[\d]/,y=/[\D]/,w=/\s/,x=/['"]/,O=/[\x00-\x1F\x7F]/,S=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,k=S+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,E=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,C=k+E,T=k+E,A="(?:["+E+"]{1,3}\\.){3}["+E+"]{1,3}",_="["+T+"](?:["+T+"\\-]{0,61}["+T+"])?",j=function(e){return"(?=("+_+"))\\"+e},P=function(e){return"(?:"+j(e)+"(?:\\."+j(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+T+".\\-]*["+T+"\\-]"),new RegExp("[".concat(T,"]"))),I=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|duck|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,R=new RegExp("[".concat(T,"!#$%&'*+/=?^_`{|}~-]")),q=new RegExp("^".concat(I.source,"$")),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=R,t.strictTldRegex=q,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,o=this.strictTldRegex,r=[],a=e.length,l=new M,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},s=0,f=0,p=l;s<a;){var h=e.charAt(s);switch(f){case 0:m(h);break;case 1:b(e.charAt(s-1),h);break;case 2:g(h);break;case 3:v(h);break;case 4:y(h);break;case 5:w(h);break;case 6:x(h);break;case 7:O(h);break;default:i(f)}s++}return E(),r;function m(e){"m"===e?S(1):n.test(e)&&S()}function b(e,t){":"===e?n.test(t)?(f=2,p=new M(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):k():c[e]===t||(n.test(t)?f=2:"."===t?f=3:"@"===t?f=4:k())}function g(e){"."===e?f=3:"@"===e?f=4:n.test(e)||k()}function v(e){"."===e||"@"===e?k():n.test(e)?f=2:k()}function y(e){N.test(e)?f=5:k()}function w(e){"."===e?f=7:"-"===e?f=6:N.test(e)||E()}function x(e){"-"===e||"."===e?E():N.test(e)?f=5:E()}function O(e){"."===e||"-"===e?E():N.test(e)?(f=5,p=new M(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):E()}function S(e){void 0===e&&(e=2),f=e,p=new M({idx:s})}function k(){f=0,p=l}function E(){if(p.hasDomainDot){var n=e.slice(p.idx,s);/[-.]$/.test(n)&&(n=n.slice(0,-1));var i=p.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return o.test(t)})(i)&&r.push(new d({tagBuilder:t,matchedText:n,offset:p.idx,email:i}))}k()}},t}(b),M=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},D=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&(!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+S+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),z=(l=new RegExp("[/?#](?:["+T+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+T+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,P(2),")","|","(","(//)?",/(?:www\.)/.source,P(6),")","|","(","(//)?",P(10)+"\\.",I.source,"(?![-"+C+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),B=new RegExp("["+T+"]"),F=function(e){function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=z,n.wordCharRegExp=B,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,l=[],c=function(){var n=t[0],c=t[1],u=t[4],d=t[5],f=t[9],p=t.index,h=d||f,b=e.charAt(p-1);if(!D.isValid(n,c))return"continue";if(p>0&&"@"===b)return"continue";if(p>0&&h&&s.wordCharRegExp.test(b))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),s.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var g=s.matchHasInvalidCharAfterTld(n,c);g>-1&&(n=n.substr(0,g))}var v=["http://","https://"].find((function(e){return!!c&&-1!==c.indexOf(e)}));if(v){var y=n.indexOf(v);n=n.substr(y),c=c.substr(y),p+=y}var w=c?"scheme":u?"www":"tld",x=!!c;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:i}))},s=this;null!==(t=n.exec(e));)c();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else if("]"===n)t="[";else{if("}"!==n)return!1;t="{"}for(var o=0,r=0,i=e.length-1;r<i;r++){var a=e.charAt(r);a===t?o++:a===n&&(o=Math.max(o-1,0))}return 0===o},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var o=new RegExp("^((.?//)?[-."+T+"]*[-"+T+"]\\.[-"+T+"]+)").exec(e);return null===o?-1:(n+=o[1].length,e=e.slice(o[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(b),H=new RegExp("#[_".concat(T,"]{1,139}(?![_").concat(T,"])"),"g"),U=new RegExp("[^"+T+"]"),W=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=H,n.nonWordCharRegex=U,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.nonWordCharRegex,r=this.serviceName,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var l=t.index,c=e.charAt(l-1);if(0===l||o.test(c)){var s=t[0],u=t[0].slice(1);a.push(new f({tagBuilder:i,matchedText:s,offset:l,serviceName:r,hashtag:u}))}}return a},t}(b),G=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=G,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.tagBuilder,r=[];null!==(t=n.exec(e));){var i=t[0],a=i.replace(/[^0-9,;#]/g,""),l=!(!t[1]&&!t[2]),c=0==t.index?"":e.substr(t.index-1,1),s=e.substr(t.index+i.length,1),u=!c.match(/\d/)&&!s.match(/\d/);this.testMatch(t[3])&&this.testMatch(i)&&u&&r.push(new h({tagBuilder:o,matchedText:i,offset:t.index,number:a,plusSign:l}))}return r},t.prototype.testMatch=function(e){return y.test(e)},t}(b),K=new RegExp("@[_".concat(T,"]{1,50}(?![_").concat(T,"])"),"g"),$=new RegExp("@[_.".concat(T,"]{1,30}(?![_").concat(T,"])"),"g"),Y=new RegExp("@[-_.".concat(T,"]{1,50}(?![-_").concat(T,"])"),"g"),Z=new RegExp("@[_.".concat(T,"]{1,23}[_").concat(T,"](?![_").concat(T,"])"),"g"),X=new RegExp("[^"+T+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:$,soundcloud:Y,tiktok:Z},n.nonWordCharRegex=X,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,o=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,i=this.tagBuilder,a=[];if(!o)return a;for(;null!==(t=o.exec(e));){var l=t.index,c=e.charAt(l-1);if(0===l||r.test(c)){var s=t[0].replace(/\.+$/g,""),u=s.slice(1);a.push(new p({tagBuilder:i,matchedText:s,offset:l,serviceName:n,mention:u}))}}return a},t}(b);function J(e,t){for(var n,o=t.onOpenTag,r=t.onCloseTag,a=t.onText,l=t.onComment,c=t.onDoctype,s=new ee,d=0,f=e.length,p=0,h=0,m=s;d<f;){var b=e.charAt(d);switch(p){case 0:y(b);break;case 1:S(b);break;case 2:E(b);break;case 3:k(b);break;case 4:C(b);break;case 5:T(b);break;case 6:A(b);break;case 7:_(b);break;case 8:j(b);break;case 9:P(b);break;case 10:N(b);break;case 11:I(b);break;case 12:R(b);break;case 13:q(b);break;case 14:L(b);break;case 15:M(b);break;case 16:D(b);break;case 17:z(b);break;case 18:B(b);break;case 19:F(b);break;case 20:H(b);break;default:i(p)}d++}function y(e){"<"===e&&W()}function S(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?W():g.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=s)}function k(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?W():"/"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=12):">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),G()):g.test(e)||v.test(e)||":"===e||U()}function E(e){">"===e?U():g.test(e)?p=3:U()}function C(e){w.test(e)||("/"===e?p=12:">"===e?G():"<"===e?W():"="===e||x.test(e)||O.test(e)?U():p=5)}function T(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)?U():p=5)}function _(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?W():p=10)}function j(e){'"'===e&&(p=11)}function P(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?G():"<"===e&&W()}function I(e){w.test(e)?p=4:"/"===e?p=12:">"===e?G():"<"===e?W():(p=4,d--)}function R(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),G()):p=4}function q(t){"--"===e.substr(d,2)?(d+=2,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"comment"})),p=14):"DOCTYPE"===e.substr(d,7).toUpperCase()?(d+=7,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"doctype"})),p=20):U()}function L(e){"-"===e?p=15:">"===e?U():p=16}function M(e){"-"===e?p=18:">"===e?U():p=16}function D(e){"-"===e&&(p=17)}function z(e){p="-"===e?18:16}function B(e){">"===e?G():"!"===e?p=19:"-"===e||(p=16)}function F(e){"-"===e?p=17:">"===e?G():p=16}function H(e){">"===e?G():"<"===e&&W()}function U(){p=0,m=s}function W(){p=1,m=new ee({idx:d})}function G(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?c(m.idx):(m.isOpening&&o(m.name,m.idx),m.isClosing&&r(m.name,m.idx)),U(),h=d+1}function V(){var t=m.idx+(m.isClosing?2:1);return e.slice(t,d).toLowerCase()}h<d&&(n=e.slice(h,d),a(n,h),h=d+1)}var ee=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},te=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(!1!==n&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(n))throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var o=this.hashtag;if(!1!==o&&-1===["twitter","facebook","instagram","tiktok"].indexOf(o))throw new Error("invalid `hashtag` cfg '".concat(o,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],o=0,r=[];return J(e,{onOpenTag:function(e){n.indexOf(e)>=0&&o++},onText:function(e,n){if(0===o){var i=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,o=[],r=0;n=t.exec(e);)o.push(e.substring(r,n.index)),o.push(n[0]),r=n.index+n[0].length;return o.push(e.substring(r)),o}(e,/( | |<|<|>|>|"|"|')/gi),a=n;i.forEach((function(e,n){if(n%2==0){var o=t.parseText(e,a);r.push.apply(r,o)}a+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(o=Math.max(o-1,0))},onComment:function(e){},onDoctype:function(e){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var n=e[t],o=n.getOffset(),r=n.getMatchedText().length,i=o+r;if(t+1<e.length){if(e[t+1].getOffset()===o){var a=e[t+1].getMatchedText().length>r?t:t+1;e.splice(a,1);continue}if(e[t+1].getOffset()<i){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||r(e,(function(e){return"hashtag"===e.getType()})),this.email||r(e,(function(e){return"email"===e.getType()})),this.phone||r(e,(function(e){return"phone"===e.getType()})),this.mention||r(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||r(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||r(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||r(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),o=[],r=0,i=n.length;r<i;r++){for(var a=n[r].parseMatches(e),l=0,c=a.length;l<c;l++)a[l].setOffset(t+a[l].getOffset());o.push.apply(o,a)}return o},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var t=this.parse(e),n=[],o=0,r=0,i=t.length;r<i;r++){var a=t[r];n.push(e.substring(o,a.getOffset())),n.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(o)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof a?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new W({tagBuilder:e,serviceName:this.hashtag}),new L({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new F({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new c({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=c,e.HtmlTag=a,e.matcher={Email:L,Hashtag:W,Matcher:b,Mention:Q,Phone:V,Url:F},e.match={Email:d,Hashtag:f,Match:s,Mention:p,Phone:h,Url:m},e}();t.a=te},1711:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return F}));n(9),n(10),n(14),n(30),n(27),n(76),n(12),n(31),n(18),n(26),n(234),n(28),n(59),n(40),n(24),n(47),n(42),n(37),n(43),n(8),n(84),n(615),n(19),n(11),n(29),n(13);var o=n(1582);function r(e,t,n,o){var r=i(v(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=a(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function a(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function l(e){return(l="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 c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)})(e)}function m(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&g(r,n.prototype),r}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=o.a.import("blots/embed"),w=function(e){function t(e,n){var o;return d(this,t),(o=f(this,t,[e,n])).value={},o.event=new Event(e),o}return p(t,e),s(t)}(h(Event));var x=function(e){function t(e,n){var o;return d(this,t),(o=f(this,t,[e,n])).mounted=!1,o}return p(t,e),s(t,[{key:"attach",value:function(){r(t,"attach",this,3)([]),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){r(t,"detach",this,3)([]),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=void 0)}},{key:"getClickHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-clicked",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"getHoverHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-hovered",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"buildEvent",value:function(e,t){var n=new w(e,{bubbles:!0,cancelable:!0});return n.value=Object.assign({},this.domNode.dataset),n.event=t,n}}],[{key:"create",value:function(e){var n=r(t,"create",this,2)([]);if(!function(e){return"object"===l(e)&&null!==e&&"value"in e&&"string"==typeof e.value&&"denotationChar"in e&&"string"==typeof e.denotationChar}(e)||n instanceof HTMLElement==!1)return n;var o=document.createElement("span");if(o.className="ql-mention-denotation-char",o.innerText=e.denotationChar,n.appendChild(o),"function"==typeof this.render)n.appendChild(this.render(e));else{var i=document.createElement("span");i.className="ql-mention-value",i.innerText=e.value,n.appendChild(i)}return t.setDataValues(n,e)}},{key:"setDataValues",value:function(e,t){var n=e;return Object.keys(t).forEach((function(e){n.dataset[e]=t[e]})),n}},{key:"value",value:function(e){return e.dataset}}])}(y);x.blotName="mention",x.tagName="span",x.className="mention";n(38),n(34),n(21),n(20),n(22),n(16),n(1608),n(1662),n(48),n(49),n(468),n(17),n(94);var O="Tab",S="Enter",k="Escape",E="ArrowUp",C="ArrowDown";n(267),n(118),n(180);function T(e){return(T="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 A(e,t,n){var o=e;return Object.keys(t).forEach((function(e){n.indexOf(e)>-1?o.dataset[e]=t[e]:delete o.dataset[e]})),o}function _(e,t){null!==t&&("object"===T(t)?e.appendChild(t):e.innerText=t)}function j(e){return(j="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 P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,M(o.key),o)}}function M(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=j(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}function D(e,t,n){return t=z(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e,n){var o,r;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=D(this,t,[e,n])).isOpen=!1,r.itemIndex=0,r.values=[],r.suspendMouseEnter=!1,Array.isArray(null==n?void 0:n.dataAttributes)&&(r.options.dataAttributes=r.options.dataAttributes?r.options.dataAttributes.concat(n.dataAttributes):n.dataAttributes),r.options){var a=i,l=r.options[a];"function"==typeof l&&(r.options[a]=l.bind(r))}r.mentionContainer=document.createElement("div"),r.mentionContainer.className=r.options.mentionContainerClass?r.options.mentionContainerClass:"",r.mentionContainer.style.cssText="display: none; position: absolute;",r.mentionContainer.onmousemove=r.onContainerMouseMove.bind(r),r.options.fixMentionsToQuill&&(r.mentionContainer.style.width="auto"),r.mentionList=document.createElement("ul"),r.mentionList.id="quill-mention-list",e.root.setAttribute("aria-owns","quill-mention-list"),r.mentionList.className=r.options.mentionListClass?r.options.mentionListClass:"",r.mentionContainer.appendChild(r.mentionList),e.on("text-change",r.onTextChange.bind(r)),e.on("selection-change",r.onSelectionChange.bind(r)),e.container.addEventListener("paste",(function(){setTimeout((function(){var t=e.getSelection();r.onSelectionChange(t)}))})),e.keyboard.addBinding({key:O},r.selectHandler.bind(r)),e.keyboard.bindings[O].unshift(e.keyboard.bindings[O].pop());var c,s=R(null!==(o=r.options.selectKeys)&&void 0!==o?o:[]);try{for(s.s();!(c=s.n()).done;){var u=c.value;e.keyboard.addBinding({key:u},r.selectHandler.bind(r))}}catch(e){s.e(e)}finally{s.f()}return e.keyboard.bindings[S].unshift(e.keyboard.bindings[S].pop()),e.keyboard.addBinding({key:k},r.escapeHandler.bind(r)),e.keyboard.addBinding({key:E},r.upHandler.bind(r)),e.keyboard.addBinding({key:C},r.downHandler.bind(r)),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),function(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.selectItem(),!1)}},{key:"escapeHandler",value:function(){return!this.isOpen||(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1)}},{key:"upHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.prevItem(),!1)}},{key:"downHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.nextItem(),!1)}},{key:"showMentionList",value:function(){"fixed"===this.options.positioningStrategy?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose&&this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=0;t<this.mentionList.childNodes.length;t+=1){var n=this.mentionList.childNodes[t];n instanceof HTMLElement&&n.classList.remove("selected")}var o=this.mentionList.childNodes[this.itemIndex];if(-1!==this.itemIndex&&"true"!==o.dataset.disabled&&(o.classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",o.id),e)){var r=o.offsetHeight,i=o.offsetTop,a=this.mentionContainer.scrollTop,l=a+this.mentionContainer.offsetHeight;i<a?this.mentionContainer.scrollTop=i:i>l-r&&(this.mentionContainer.scrollTop+=i-l+r)}}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e,t,n=this;if(-1!==this.itemIndex){var o=this.mentionList.childNodes[this.itemIndex].dataset;o.disabled||(null===(e=(t=this.options).onSelect)||void 0===e||e.call(t,o,(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.insertItem(e,t,o)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e;if(null!==a&&void 0!==this.mentionCharPos&&void 0!==this.cursorPos){var l,c=N(N({},this.options),i);c.showDenotationChar||(a.denotationChar=""),n?l=this.cursorPos:(l=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,o.a.sources.USER));var s=this.quill.insertEmbed(l,null!==(r=c.blotName)&&void 0!==r?r:t.DEFAULTS.blotName,a,o.a.sources.USER);return c.spaceAfterInsert?(this.quill.insertText(l+1," ",o.a.sources.USER),this.quill.setSelection(l+2,o.a.sources.USER)):this.quill.setSelection(l+1,o.a.sources.USER),this.hideMentionList(),s}}},{key:"onItemMouseEnter",value:function(e){var t;if(!this.suspendMouseEnter&&e.target instanceof HTMLElement!=!1){var n=Number(null===(t=e.target)||void 0===t?void 0:t.dataset.index);Number.isNaN(n)||n===this.itemIndex||(this.itemIndex=n,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){var t;e.preventDefault(),e.stopImmediatePropagation(),e.currentTarget instanceof HTMLElement!=!1&&(this.itemIndex=null!==(t=e.currentTarget)&&void 0!==t&&t.dataset.index?Number.parseInt(e.currentTarget.dataset.index):-1,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){var e,t,n,o=null!==(e=null===(t=(n=this.options).renderLoading)||void 0===t?void 0:t.call(n))&&void 0!==e?e:void 0;if(void 0!==o)if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var r=document.createElement("div");r.className="ql-mention-loading",_(r,o),this.mentionContainer.append(r),this.showMentionList()}}},{key:"removeLoading",value:function(){var e=this.mentionContainer.getElementsByClassName("ql-mention-loading");e.length>0&&e[0].remove()}},{key:"renderList",value:function(e,t,n){if(t&&t.length>0){this.removeLoading(),this.values=t,this.mentionList.innerText="";for(var o=-1,r=0;r<t.length;r+=1){var i=document.createElement("li");i.id="quill-mention-item-"+r,i.className=this.options.listItemClass?this.options.listItemClass:"",t[r].disabled?(i.className+=" disabled",i.setAttribute("aria-hidden","true")):-1===o&&(o=r),i.dataset.index=r.toString(),_(i,this.options.renderItem(t[r],n)),t[r].disabled?i.onmouseenter=this.onDisabledItemMouseEnter.bind(this):(i.onmouseenter=this.onItemMouseEnter.bind(this),i.onmouseup=this.onItemClick.bind(this),i.onmousedown=this.onItemMouseDown.bind(this)),i.dataset.denotationChar=e,this.mentionList.appendChild(A(i,t[r],this.options.dataAttributes))}this.itemIndex=o,this.highlightItem(),this.showMentionList()}else this.hideMentionList()}},{key:"nextItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+this.values.length-n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.scrollY+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.scrollX+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){if(this.isOpen!==e){var t,n,o,r;if(e)null===(t=(n=this.options).onOpen)||void 0===t||t.call(n);else null===(o=(r=this.options).onClose)||void 0===o||o.call(r);this.isOpen=e}}},{key:"setMentionContainerPosition",value:function(){"fixed"===this.options.positioningStrategy?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var e=this;if(void 0!==this.mentionCharPos){var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var o,r,i=this.mentionContainer.offsetHeight,a=this.options.offsetTop,l=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else l+=n.left;if(this.containerRightIsNotVisible(l,t)){var c=this.mentionContainer.offsetWidth+this.options.offsetLeft;l=t.width-c}if("top"===this.options.defaultMenuOrientation){if((a=this.options.fixMentionsToQuill?-1*(i+this.options.offsetTop):n.top-(i+this.options.offsetTop))+t.top<=0){var s=this.options.offsetTop;this.options.fixMentionsToQuill?s+=t.height:s+=n.bottom,a=s}}else if(this.options.fixMentionsToQuill?a+=t.height:a+=n.bottom,this.containerBottomIsNotVisible(a,t)){var u=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(u+=n.top),a=u-i}if(a>=0)null===(o=this.options.mentionContainerClass)||void 0===o||o.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else null===(r=this.options.mentionContainerClass)||void 0===r||r.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(l,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;if(void 0!==this.mentionCharPos){this.mentionContainer.style.position="fixed",this.mentionContainer.style.height="";var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var o={right:t.right-n.right,left:t.left+n.left,top:t.top+n.top,width:0,height:n.height},r=this.options.fixMentionsToQuill?t:o,i=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var l=r.right;this.mentionContainer.style.right="".concat(l,"px")}else(a+=r.left)+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(a-=a+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var c,s,u=r.top,d=document.documentElement.clientHeight-(r.top+r.height),f=this.mentionContainer.offsetHeight<=d,p=this.mentionContainer.offsetHeight<=u;if("bottom"===("top"===this.options.defaultMenuOrientation&&p?"top":"bottom"===this.options.defaultMenuOrientation&&f||d>u?"bottom":"top"))i=r.top+r.height,f||(this.mentionContainer.style.height=d-3+"px"),null===(c=this.options.mentionContainerClass)||void 0===c||c.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else i=r.top-this.mentionContainer.offsetHeight,p||(this.mentionContainer.style.height=u-3+"px",i=3),null===(s=this.options.mentionContainerClass)||void 0===s||s.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(i,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"getTextBeforeCursor",value:function(){var e,t,n=Math.max(0,(null!==(e=this.cursorPos)&&void 0!==e?e:0)-this.options.maxChars);return this.quill.getText(n,(null!==(t=this.cursorPos)&&void 0!==t?t:0)-n)}},{key:"onSomethingChange",value:function(){var e=this,t=this.quill.getSelection();if(null!=t){this.cursorPos=t.index;var n,o,r,i,a=this.getTextBeforeCursor(),l=Math.max(0,this.cursorPos-this.options.maxChars),c=l?this.quill.getText(l-1,l):"",s=(n=a,o=this.options.mentionDenotationChars,r=this.options.isolateCharacter,i=this.options.allowInlineMentionChar,o.reduce((function(e,t){var o;if(r&&i){var a=new RegExp("^".concat(t,"|\\s").concat(t),"g"),l=(n.match(a)||[]).pop();if(!l)return{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex};o=l!==t?n.lastIndexOf(l)+l.length-t.length:0}else o=n.lastIndexOf(t);return o>e.mentionCharIndex?{mentionChar:t,mentionCharIndex:o}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}}),{mentionChar:null,mentionCharIndex:-1})),u=s.mentionChar,d=s.mentionCharIndex;if(null!==u&&function(e,t,n,o){if(-1===e)return!1;if(!n)return!0;var r=e?t[e-1]:o;return!r||!!r.match(/\s/)}(d,a,this.options.isolateCharacter,c)){var f=this.cursorPos-(a.length-d);this.mentionCharPos=f;var p=a.substring(d+u.length);if(p.length>=this.options.minChars&&function(e,t){return t.test(e)}(p,this.getAllowedCharsRegex(u))){var h,m;this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var b={abandoned:!1};this.existingSourceExecutionToken=b,null===(h=(m=this.options).source)||void 0===h||h.call(m,p,(function(t,n){b.abandoned||(e.existingSourceExecutionToken=void 0,e.renderList(u,t,n))}),u)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(e){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:null!==(t=null===(n=(o=this.options).allowedChars)||void 0===n?void 0:n.call(o,e))&&void 0!==t?t:/^[a-zA-Z0-9_]*$/;var t,n,o}},{key:"onTextChange",value:function(e,t,n){"user"===n&&setTimeout(this.onSomethingChange.bind(this),50)}},{key:"onSelectionChange",value:function(e){null!==e&&0===e.length?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(e){var t=this.quill.getSelection(!0);this.quill.insertText(t.index,e),this.quill.blur(),this.quill.focus()}}])}(o.a.import("core/module"));F.DEFAULTS={mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[S],source:function(e,t,n){t([],e)},renderItem:function(e){var t=e.value;return"".concat(t)},onSelect:function(e,t){return t(e)},onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},renderLoading:function(){return null}}},1712:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(24),n(8),n(17),n(19),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(6),c=n(206),s=n(305),u=n(317),d=n(82),f=n(1),p=n(1610),h=n(124),m=n(45),b=n(313),g=n(3),v=n(4),y=n(5),w=n(478);n(1668);function x(e){return(x="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 O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=x(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var E={annotations:a.a.array.isRequired,style:a.a.object.isRequired,properties:a.a.object.isRequired,isRedaction:a.a.bool,isFreeText:a.a.bool,isEllipse:a.a.bool,hasBackToMenu:a.a.bool,onBackToMenu:a.a.func},C=function(e){var t=e.annotations,n=e.style,i=e.isRedaction,a=e.isFreeText,x=e.isEllipse,k=e.isMeasure,E=e.colorMapKey,C=e.showLineStyleOptions,T=e.properties,A=e.hideSnapModeCheckbox,_=e.onResize,j=e.hasBackToMenu,P=e.onBackToMenu,N=S(Object(l.e)((function(e){return[v.a.isElementDisabled(e,y.a.ANNOTATION_STYLE_POPUP),v.a.isToolDefaultStyleUpdateFromAnnotationPopupEnabled(e),v.a.getActiveDocumentViewerKey(e)]})),3),I=N[0],R=N[1],q=N[2],L=Object(l.d)(),M=S(Object(s.a)(),1)[0],D=S(Object(o.useState)(T.isAutoSizeFont),2),z=D[0],B=D[1],F=function(e,n){var o=f.a.getAnnotationManager(q);t.forEach((function(t){t[e]=n,"StrokeThickness"===e&&Object(b.a)(t),o.redrawAnnotation(t),t instanceof window.Core.Annotations.WidgetAnnotation&&t.refresh()}))},H=function(e,n){t.forEach((function(t){f.a.setAnnotationStyles(t,O({},e,n),q),R&&Object(h.a)(t.ToolName,e,n),"FontSize"!==e&&"Font"!==e||Object(b.a)(t)}))},U=function(e,n){t.forEach((function(t){f.a.setAnnotationStyles(t,O({},e,n),q),R&&Object(h.a)(t.ToolName,e,n)}))},W=function(e,n){t.forEach((function(t){f.a.updateAnnotationRichTextStyle(t,O({},e,n),q)}))},G=function(e,n){t.forEach((function(t){var o="";if("start"===e)t.setStartStyle(n),o="StartLineStyle";else if("end"===e)t.setEndStyle(n),o="EndLineStyle";else if("middle"===e){var r=n.split(","),i=r.shift();t.Style=i,t.Dashes=r,o="StrokeStyle"}R&&Object(h.a)(t.ToolName,o,n),f.a.getAnnotationManager(q).redrawAnnotation(t)})),f.a.getAnnotationManager(q).trigger("annotationChanged",[t,"modify",{}])},V=function(e){Object(m.k)()&&e.target===e.currentTarget&&L(g.a.closeElement(y.a.ANNOTATION_POPUP))},K=Object(p.a)("Popup AnnotationStylePopup",e);return I?null:r.a.createElement(c.a,{onResize:function(){_&&_()}},(function(e){var o=e.measureRef;return r.a.createElement("div",{className:K,"data-element":y.a.ANNOTATION_STYLE_POPUP,onClick:V,ref:o},j&&r.a.createElement("div",{className:"back-to-menu-container","data-element":y.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON_CONTAINER},r.a.createElement(d.a,{className:"back-to-menu-button",dataElement:y.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON,label:M("action.backToMenu"),img:"icon-chevron-left",onClick:P})),r.a.createElement(u.a,{hideSnapModeCheckbox:A,colorMapKey:E,style:n,isFreeText:a,isFreeTextAutoSize:z,onFreeTextSizeToggle:function(){return Object(w.a)(t[0],B,z)},isEllipse:x,isMeasure:k,onStyleChange:U,onSliderChange:F,onPropertyChange:H,disableSeparator:!0,properties:T,onRichTextStyleChange:W,isRedaction:i,showLineStyleOptions:C,onLineStyleChange:G}))}))};C.propTypes=E;var T=C;t.a=T},1716:function(e,t,n){n(620)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},1717:function(e,t,n){n(620)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},1718:function(e,t,n){"use strict";n.r(t),n.d(t,"renderPermissionStatus",(function(){return H})),n.d(t,"SignaturePanel",(function(){return ne}));n(9),n(10),n(14),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(18),n(26),n(16),n(40),n(24),n(42),n(37),n(43),n(8),n(56),n(1650),n(17),n(19),n(132),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(3),c=n(1),s=n(4);n(38),n(50),n(85),n(309),n(310),n(311),n(171),n(59),n(62),n(115),n(1716),n(382),n(1717),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405);function u(e){return(u="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 d(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(u(e)+" is not iterable")}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return m(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(m(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,m(d,"constructor",s),m(s,"constructor",c),c.displayName="GeneratorFunction",m(s,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,o,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:f}})()}function m(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(m=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function b(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){b(i,o,r,a,l,"next",e)}function l(e){b(i,o,r,a,l,"throw",e)}a(void 0)}))}}var v=function(){var e=g(h().m((function e(t,n,o,r,i,a,c){var s;return h().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,y(t,n,o,r,i,a);case 1:return s=e.v,c(l.a.setVerificationResult(s)),e.a(2,s)}}),e)})));return function(t,n,o,r,i,a,l){return e.apply(this,arguments)}}(),y=function(){var e=g(h().m((function e(t,n,o,r,i,a){var l,c,s,u,p,m,b;return h().w((function(e){for(;;)switch(e.n){case 0:return l=window.Core.PDFNet,c=l.VerificationResult,s=c.TrustStatus,u=c.DigestStatus,p=c.ModificationPermissionsStatus,m=c.DocumentStatus,b={},e.n=1,l.runWithCleanup(g(h().m((function e(){var c,v,y,S,k,E,C,T,A,_,j,P,N,I,R,q,L,M,D,z,B,F,H,U,W,G,V,K,$,Y,Z,X,Q,J,ee,te,ne,oe,re,ie,ae,le,ce,se,ue,de,fe,pe,he,me,be,ge,ve,ye,we,xe,Oe,Se,ke,Ee,Ce,Te,Ae,_e,je,Pe,Ne,Ie;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,t.getPDFDoc();case 1:return t=e.v,e.n=2,l.VerificationOptions.create(l.VerificationOptions.SecurityLevel.e_compatibility_and_archiving);case 2:if(c=e.v,!i){e.n=3;break}return e.n=3,c.enableOnlineCRLRevocationChecking(!0);case 3:if(null!==a){e.n=5;break}return e.n=4,c.setRevocationProxyPrefix("https://proxy.pdftron.com");case 4:e.n=6;break;case 5:if(void 0===a){e.n=6;break}return e.n=6,c.setRevocationProxyPrefix(a);case 6:v=f(n),e.p=7,S=h().m((function e(){var t,n,o,r,i,a,l;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:if("string"!=typeof(t=y.value)){e.n=5;break}return e.p=1,e.n=2,c.addTrustedCertificateFromURL(t);case 2:e.n=4;break;case 3:return e.p=3,e.v,console.error("Error encountered when trying to load certificate from URL: ".concat(t,"\n")+"Certificate will not be used as part of verification process."),e.a(2,0);case 4:e.n=15;break;case 5:if(!(t instanceof File||"[object File]"===Object.prototype.toString.call(t))){e.n=11;break}return n=new FileReader,o=new Promise((function(e,o){n.addEventListener("load",function(){var t=g(h().m((function t(n){return h().w((function(t){for(;;)switch(t.n){case 0:e(new Uint8Array(n.target.result));case 1:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}()),n.addEventListener("error",(function(){o("Error reading the local certificate")})),n.readAsArrayBuffer(t)})),e.p=6,r=c,e.n=7,o;case 7:return i=e.v,e.n=8,r.addTrustedCertificate.call(r,i);case 8:e.n=10;break;case 9:return e.p=9,a=e.v,console.error("Error encountered when trying to load certificate: ".concat(a)+"Certificate will not be used as part of the verification process."),e.a(2,0);case 10:e.n=15;break;case 11:if(!(t instanceof ArrayBuffer||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)){e.n=15;break}return e.p=12,e.n=13,c.addTrustedCertificate(t);case 13:e.n=15;break;case 14:return e.p=14,l=e.v,console.error("Error encountered when trying to load certificate: ".concat(l)+"Certificate will not be used as part of the verification process."),e.a(2,0);case 15:return e.a(2)}}),e,null,[[12,14],[6,9],[1,3]])})),v.s();case 8:if((y=v.n()).done){e.n=11;break}return e.d(d(S()),9);case 9:if(0!==e.v){e.n=10;break}return e.a(3,10);case 10:e.n=8;break;case 11:e.n=13;break;case 12:e.p=12,Oe=e.v,v.e(Oe);case 13:return e.p=13,v.f(),e.f(13);case 14:k=f(o),e.p=15,k.s();case 16:if((E=k.n()).done){e.n=25;break}if(C=E.value,T=C.constructor.name,A=["ArrayBuffer","Int8Array","Uint8Array","Uint8ClampedArray"],_=void 0,"Blob"!==T){e.n=18;break}return e.n=17,C.arrayBuffer();case 17:_=e.v,e.n=20;break;case 18:if(!A.includes(T)){e.n=19;break}_=C,e.n=20;break;case 19:return console.error("The provided TrustList is an unsupported data-structure. Please ensure the TrustList is formatted as one of the following "+"data-structures: ".concat([].concat(A,["Blob"]).join("|"))),e.a(3,24);case 20:return e.p=20,e.n=21,l.FDFDoc.createFromMemoryBuffer(_);case 21:return j=e.v,e.n=22,c.loadTrustList(j);case 22:e.n=24;break;case 23:return e.p=23,Se=e.v,console.error("Error encountered when trying to load certificate: ".concat(Se,". ")+"Certificate will not be used as part of the verification process."),e.a(3,24);case 24:e.n=16;break;case 25:e.n=27;break;case 26:e.p=26,ke=e.v,k.e(ke);case 27:return e.p=27,k.f(),e.f(27);case 28:return e.n=29,t.getFieldIteratorBegin();case 29:P=e.v;case 30:return e.n=31,P.hasNext();case 31:if(!e.v){e.n=91;break}return e.n=32,P.current();case 32:return N=e.v,e.n=33,N.isValid();case 33:if(Ee=!e.v){e.n=35;break}return e.n=34,N.getType();case 34:Ce=e.v,Te=l.Field.Type.e_signature,Ee=Ce!==Te;case 35:if(!Ee){e.n=36;break}return e.a(3,90);case 36:return e.n=37,l.DigitalSignatureField.createFromField(N);case 37:return I=e.v,e.p=38,e.n=39,I.verify(c);case 39:return R=e.v,e.n=40,I.getSDFObj();case 40:return e.n=41,e.v.getObjNum();case 41:return q=e.v,L=void 0,M=void 0,D=void 0,z=void 0,B=void 0,F=void 0,H=void 0,U=void 0,W=void 0,G={},V={},e.n=42,I.hasCryptographicSignature();case 42:if(!(K=e.v)){e.n=63;break}return e.n=43,I.getSubFilter();case 43:if(($=e.v)!==l.DigitalSignatureField.SubFilterType.e_adbe_pkcs7_detached){e.n=48;break}return e.n=44,I.getSignerCertFromCMS();case 44:return Y=e.v,e.n=45,Y.getSubjectField();case 45:return Z=e.v,e.n=46,O(Z);case 46:if(Ae=e.v){e.n=47;break}Ae={};case 47:L=Ae.e_commonName;case 48:if($===l.DigitalSignatureField.SubFilterType.e_ETSI_RFC3161){e.n=60;break}if(L){e.n=52;break}return e.n=49,I.getSignatureName();case 49:if(_e=e.v){e.n=51;break}return e.n=50,I.getContactInfo();case 50:_e=e.v;case 51:L=_e;case 52:return e.n=53,I.getSigningTime();case 53:return M=e.v,e.n=54,M.isValid();case 54:if(!e.v){e.n=55;break}M=w(M,r),e.n=56;break;case 55:M=null;case 56:return e.n=57,I.getContactInfo();case 57:return B=e.v,e.n=58,I.getLocation();case 58:return F=e.v,e.n=59,I.getReason();case 59:H=e.v;case 60:return e.n=61,I.getDocumentPermissions();case 61:return D=e.v,e.n=62,I.isCertification();case 62:z=e.v;case 63:return e.n=64,R.getVerificationStatus();case 64:return X=e.v,e.n=65,R.getDocumentStatus();case 65:return Q=e.v,e.n=66,R.getDigestStatus();case 66:return J=e.v,e.n=67,R.getTrustStatus();case 67:return ee=e.v,e.n=68,R.getPermissionsStatus();case 68:return te=e.v,e.n=69,R.getDigestAlgorithm();case 69:return ne=e.v,je=Promise,e.n=70,R.getDisallowedChanges();case 70:return Pe=e.v.map(function(){var e=g(h().m((function e(t){var n,o;return h().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getObjNum();case 1:return n=e.v,e.n=2,t.getTypeAsString();case 2:return o=e.v,e.a(2,{objnum:n,type:o})}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.n=71,je.all.call(je,Pe);case 71:return oe=e.v,re=ee===s.e_trust_verified,ie=void 0,ae=void 0,le=void 0,ce=void 0,e.n=72,R.hasTrustVerificationResult();case 72:if(!e.v){e.n=87;break}return e.n=73,R.getTrustVerificationResult();case 73:return se=e.v,e.n=74,se.wasSuccessful();case 74:return ae=e.v,e.n=75,se.getResultString();case 75:return ie=e.v,e.n=76,se.getTimeOfTrustVerificationEnum();case 76:return le=e.v,e.n=77,se.getTimeOfTrustVerification();case 77:return(ue=e.v)&&(ce=x(ue,r)),e.n=78,se.getCertPath();case 78:if(!(de=e.v).length){e.n=87;break}return fe=de[0],e.n=79,fe.getIssuerField();case 79:return pe=e.v,e.n=80,O(pe);case 80:return he=e.v,Object.assign(G,he),e.n=81,fe.getSubjectField();case 81:return me=e.v,e.n=82,O(me);case 82:return be=e.v,Object.assign(V,be),ge=de[de.length-1],e.p=83,e.n=84,ge.getNotBeforeEpochTime();case 84:return ve=e.v,e.n=85,ge.getNotAfterEpochTime();case 85:ye=e.v,U=ye>=ue&&ue>=ve,e.n=87;break;case 86:e.p=86,(Ne=e.v).includes("calendar_point::to_std_timepoint() does not support years after")&&(console.warn("The following error is a known issue with Botan, and aims to be addressed in a future release of PDFNet. This currently does not impact PDFTron's Digital Signature Verification capabilities."),console.warn(Ne));case 87:return we=void 0,we=X?"digital_signature_valid":Q!==m.e_no_error||J!==u.e_digest_verified&&J!==u.e_digest_verification_disabled||ee===s.e_no_trust_status||te!==p.e_unmodified&&te!==p.e_has_allowed_changes&&te!==p.e_permissions_verification_disabled?"digital_signature_error":"digital_signature_warning",L?W=L:!L&&V.e_commonName&&(W=V.e_commonName),e.n=88,N.getName();case 88:xe=e.v,b[xe]={signed:K,signer:L,signerName:W,signTime:M,verificationStatus:X,documentStatus:Q,digestStatus:J,trustStatus:ee,permissionStatus:te,disallowedChanges:oe,trustVerificationResultBoolean:ae,trustVerificationResultString:ie,timeOfTrustVerificationEnum:le,trustVerificationTime:ce,id:q,badgeIcon:we,validSignerIdentity:re,digestAlgorithm:ne,documentPermission:D,isCertification:z,contactInfo:B,location:F,reason:H,issuerField:G,subjectField:V,validAtTimeOfSigning:U},e.n=90;break;case 89:e.p=89,Ie=e.v,console.error(Ie);case 90:P.next(),e.n=30;break;case 91:return e.a(2)}}),e,null,[[83,86],[38,89],[20,23],[15,26,27,28],[7,12,13,14]])}))));case 1:return e.a(2,b)}}),e)})));return function(t,n,o,r,i,a){return e.apply(this,arguments)}}(),w=function(e,t){var n=e.year,o=e.month,r=e.day,i=e.hour,a=e.minute,l=e.second;return new Date(Date.UTC(n,o-1,r,i,a,l)).toLocaleDateString(t.replace("_","-"),{year:"numeric",month:"long",weekday:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"})},x=function(e,t){var n=new Date(0);return n.setUTCSeconds(e),n.toLocaleDateString(t.replace("_","-"),{year:"numeric",month:"long",weekday:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"})},O=function(){var e=g(h().m((function e(t){var n,o,r,i,a,l,c,s,u;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:return n={},e.n=1,t.getAllAttributesAndValues();case 1:o=e.v,r=f(o),e.p=2,r.s();case 3:if((i=r.n()).done){e.n=8;break}return a=i.value,e.n=4,a.getAttributeTypeOID();case 4:return l=e.v,e.n=5,l.getRawValue();case 5:return c=e.v,e.n=6,a.getStringValue();case 6:s=e.v,n[S(c)]=s;case 7:e.n=3;break;case 8:e.n=10;break;case 9:e.p=9,u=e.v,r.e(u);case 10:return e.p=10,r.f(),e.f(10);case 11:return e.a(2,n)}}),e,null,[[2,9,10,11]])})));return function(t){return e.apply(this,arguments)}}(),S=function(e){return{"[2,5,4,3]":"e_commonName","[2,5,4,4]":"e_surname","[2,5,4,6]":"e_countryName","[2,5,4,7]":"e_localityName","[2,5,4,8]":"e_stateOrProvinceName","[2,5,4,9]":"e_streetAddress","[2,5,4,10]":"e_organizationName","[2,5,4,11]":"e_organizationalUnitName","[1,2,840,113549,1,9,1]":"e_emailAddress"}["string"==typeof e?e:JSON.stringify(e)]},k=n(471),E=(n(30),n(31),n(28),n(2)),C=n.n(E),T=n(15),A=n.n(T),_=(n(94),n(119)),j=n.n(_),P=n(23);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R=function(e){var t=e.rect,n=N(Object(o.useState)(!1),2),i=n[0],a=n[1];return Object(o.useEffect)((function(){var e=c.a.getScrollViewElement(),t=function(){a(!1)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}})),Object(o.useEffect)((function(){t&&(setTimeout((function(){a(!0)}),50),setTimeout((function(){a(!1)}),700))}),[t]),i&&j.a.createPortal(r.a.createElement("div",{style:{position:"absolute",top:t.y1,left:t.x1,width:t.x2-t.x1,height:t.y2-t.y1,border:"1px solid #00a5e4",zIndex:99}}),Object(P.a)().querySelector("#app"))},q=n(90),L=n(1597),M=n(41);n(1702);function D(e){return(D="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 z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=D(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e){var t=e.isCertification,n=e.ModificationPermissionsStatus,o=e.permissionStatus,i=e.translate;if(e.digestStatus===e.DigestStatusErrorCodes.e_digest_invalid)return r.a.createElement("p",null,i("digitalSignatureVerification.digestStatus.documentHasBeenAltered"));var a=F(F(F(F(F(F({},n.e_invalidated_by_disallowed_changes,"digitalSignatureVerification.permissionStatus.invalidatedByDisallowedChanges"),n.e_has_allowed_changes,"digitalSignatureVerification.permissionStatus.hasAllowedChanges"),n.e_unmodified,t?"".concat(i("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(i("digitalSignatureVerification.certified"),"."):"".concat(i("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(i("digitalSignatureVerification.signed"),".")),n.e_permissions_verification_disabled,"digitalSignatureVerification.permissionStatus.permissionsVerificationDisabled"),n.e_no_permissions_status,"digitalSignatureVerification.permissionStatus.noPermissionsStatus"),n.e_unsupported_permissions_features,"digitalSignatureVerification.permissionStatus.unsupportedPermissionsFeatures");return r.a.createElement("p",null,i(a[o]||""))},U={name:C.a.string.isRequired,onClick:C.a.func,field:C.a.instanceOf(window.Core.Annotations.Forms.Field)},W=function(e){var t,n,u=e.name,d=e.field,f=Object(i.e)((function(e){return s.a.getVerificationResult(e,u)})),p=z(Object(o.useState)(null),2),h=p[0],m=p[1],b=z(Object(o.useState)(!1),2),g=b[0],v=b[1],y=window.Core.PDFNet,w=y.VerificationResult,x=y.VerificationOptions.TimeMode,O=w.ModificationPermissionsStatus,S=w.DigestStatus,k=z(Object(a.a)(),1)[0],E=f.signed,C=f.signTime,T=f.verificationStatus,_=f.permissionStatus,j=f.disallowedChanges,P=f.trustVerificationResultBoolean,N=f.timeOfTrustVerificationEnum,I=f.trustVerificationTime,D=f.badgeIcon,B=f.isCertification,F=f.contactInfo,U=f.location,W=f.reason,G=f.signerName,V=f.digestStatus,K=Object(i.d)(),$=function(){!function(e){if(e.widgets.length){var t=e.widgets[0];c.a.jumpToAnnotation(t);var n=c.a.getScrollViewElement(),o=n.scrollLeft,r=n.scrollTop,i=t.getRect(),a=c.a.getDisplayModeObject().pageToWindow({x:i.x1,y:i.y1},t.PageNumber),l=c.a.getDisplayModeObject().pageToWindow({x:i.x2,y:i.y2},t.PageNumber);m({x1:a.x-o,y1:a.y-r,x2:l.x-o,y2:l.y-r})}}(d)},Y=Object(q.a)((function(){K(l.a.setSignatureValidationModalWidgetName(u)),K(l.a.openElement("signatureValidationModal"))}));return r.a.createElement("div",{className:"signature-widget-info"},E?r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{labelHeader:(n=k(B?"digitalSignatureVerification.Certified":"digitalSignatureVerification.Signed"),n+=" ".concat(k("digitalSignatureVerification.by")," ").concat(G||k("digitalSignatureModal.unknown")),C&&(n+=" ".concat(k("digitalSignatureVerification.on")," ").concat(C)),n),iconGlyph:D,useI18String:!1,onClick:$,onKeyDown:$},r.a.createElement("div",{className:"verificationDetails",tabIndex:-1},r.a.createElement("div",{className:"header"},(t=k(B?"digitalSignatureVerification.Certification":"digitalSignatureVerification.Signature"),r.a.createElement("div",{className:"title"},r.a.createElement("p",null,k(T?"digitalSignatureVerification.verificationStatus.valid":"digitalSignatureVerification.verificationStatus.failed",{verificationType:t})))),r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,H({isCertification:B,ModificationPermissionsStatus:O,permissionStatus:_,translate:k,digestStatus:V,DigestStatusErrorCodes:S})),j.map((function(e){var t=e.objnum,n=e.type;return r.a.createElement("li",{key:t},r.a.createElement("p",null,k("digitalSignatureVerification.disallowedChange",{type:n,objnum:t})))})),function(){var e;switch(N){case x.e_current:e=k("digitalSignatureVerification.trustVerification.current");break;case x.e_signing:e=k("digitalSignatureVerification.trustVerification.signing");break;case x.e_timestamp:e=k("digitalSignatureVerification.trustVerification.timestamp");break;default:console.warn("Unexpected pdftron::PDF::VerificationOptions::TimeMode: ".concat(N))}return r.a.createElement(r.a.Fragment,null,r.a.createElement("li",null,r.a.createElement("p",null,k(P?"digitalSignatureVerification.trustVerification.verifiedTrust":"digitalSignatureVerification.trustVerification.noTrustVerification"))),r.a.createElement("li",null,r.a.createElement("p",null,I)),r.a.createElement("li",null,r.a.createElement("p",null,e)))}(),r.a.createElement("li",null,r.a.createElement("button",{"data-element":"signatureProperties-".concat(u),onClick:Y,tabIndex:0,className:"signatureProperties link","aria-label":"Open signature properties modal"},r.a.createElement("p",{className:"bold underline"},k("digitalSignatureVerification.signatureProperties"))))))),r.a.createElement("div",{className:"header header-with-arrow"},F||U||W?r.a.createElement("div",{className:"signatureDetails",tabIndex:-1},r.a.createElement("div",{className:"title collapsible"},r.a.createElement(M.a,{img:"icon-chevron-right",className:A()({arrow:!0,expanded:g}),ariaExpanded:g,isActive:g,ariaLabel:k("digitalSignatureVerification.signatureDetails.signatureDetails"),onClick:function(){return v(!g)}}),r.a.createElement("p",null,k("digitalSignatureVerification.signatureDetails.signatureDetails"))),g&&r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.contactInformation"),":")),r.a.createElement("p",{className:"result-for-header"},F||k("digitalSignatureVerification.signatureDetails.noContactInformation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.location"),":")),r.a.createElement("p",{className:"result-for-header"},U||k("digitalSignatureVerification.signatureDetails.noLocation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.reason"),":")),r.a.createElement("p",{className:"result-for-header"},W||k("digitalSignatureVerification.signatureDetails.noReason"))),C&&r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.signingTime"),":")),r.a.createElement("p",{className:"result-for-header"},C||k("digitalSignatureVerification.signatureDetails.noSigningTime"))))):null))):r.a.createElement(L.a,{labelHeader:k("digitalSignatureVerification.unsignedSignatureField",{fieldName:d.name}),iconGlyph:"digital_signature_empty",useI18String:!1,onClick:$,onKeyDown:$}),r.a.createElement(R,{rect:h}))};W.propTypes=U;var G=W,V=(n(1704),n(51)),K=n(32);function $(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Z(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Z(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Z(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Z(d,"constructor",s),Z(s,"constructor",c),c.displayName="GeneratorFunction",Z(s,r,"GeneratorFunction"),Z(d),Z(d,r,"Generator"),Z(d,o,(function(){return this})),Z(d,"toString",(function(){return"[object Generator]"})),(Y=function(){return{w:i,m:f}})()}function Z(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Z=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Z(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function X(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Q(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){X(i,o,r,a,l,"next",e)}function l(e){X(i,o,r,a,l,"throw",e)}a(void 0)}))}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=function(){var e=Object(i.d)(),t=J(Object(o.useState)([]),2),n=t[0],u=t[1],d=J(Object(o.useState)(!1),2),f=d[0],p=d[1],h=J(Object(o.useState)(""),2),m=h[0],b=h[1],g=J(Object(o.useState)(c.a.getDocument()),2),y=g[0],w=g[1],x=J(Object(i.e)((function(e){return[s.a.isElementDisabled(e,"signaturePanel"),s.a.getCertificates(e),s.a.getTrustLists(e),s.a.getCurrentLanguage(e),s.a.getIsRevocationCheckingEnabled(e),s.a.getRevocationProxyPrefix(e)]})),6),O=x[0],S=x[1],E=x[2],C=x[3],T=x[4],A=x[5],_=J(Object(a.a)(),1)[0],j=function(){var e=Q(Y().m((function e(){return Y().w((function(e){for(;;)switch(e.n){case 0:w(c.a.getDocument());case 1:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),P=Object(o.useCallback)((function(){p(!0),e(l.a.setVerificationResult({}))}),[p,e]),N=function(e,t){var n=c.a.getAnnotationManager().getFormFieldCreationManager().isInFormFieldCreationMode();"add"===t?R(c.a.getAnnotationManager().getAnnotationsList()):"delete"===t&&n&&q(e)},I=function(){var e=c.a.getAnnotationManager().getAnnotationsList();R(e)},R=function(e){var t=[];e.forEach((function(e){e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&t.push(e.getField())}));var n=new Set(t);u($(n))},q=function(e){e.forEach((function(e){L(e)})),I()},L=function(e){if(e instanceof window.Core.Annotations.WidgetAnnotation){var t=c.a.getAnnotationManager(),n=t.getAnnotationsList().filter((function(t){return t.getCustomData("trn-editing-rectangle-id")===e.Id}));t.deleteAnnotations(n)}},M=function(){u([]),I()};if(Object(o.useEffect)((function(){return c.a.addEventListener("documentLoaded",j),c.a.addEventListener("documentUnloaded",P),c.a.addEventListener("annotationChanged",N),c.a.addEventListener("formFieldCreationModeStarted",M),c.a.addEventListener("formFieldCreationModeEnded",M),function(){c.a.removeEventListener("documentLoaded",j),c.a.removeEventListener("documentUnloaded",P),c.a.removeEventListener("annotationChanged",N),c.a.removeEventListener("formFieldCreationModeStarted",M),c.a.removeEventListener("formFieldCreationModeEnded",M)}}),[P]),Object(o.useEffect)((function(){y?c.a.getAnnotationsLoadedPromise().then((function(){p(!0),v(y,S,E,C,T,A,e).then(function(){var e=Q(Y().m((function e(t){var n;return Y().w((function(e){for(;;)switch(e.n){case 0:n=c.a.getAnnotationManager().getFieldManager(),u(Object.keys(t).map((function(e){return n.getField(e)}))),b("");case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){e&&e.message?b(e.message):console.error(e)})).then((function(){I()})).finally((function(){p(!1)}))})):p(!0)}),[S,y,e,C]),O)return null;return r.a.createElement("div",{className:"Panel SignaturePanel","data-element":"signaturePanel"},function(){var e;if(f)e=r.a.createElement(k.a,{inPanel:!0,width:"40px",height:"40px"});else if("Error reading the local certificate"===m)e=_("digitalSignatureVerification.panelMessages.localCertificateError");else if("Download Failed"===m)e=_("digitalSignatureVerification.panelMessages.certificateDownloadError");else{if(n.length)return null;e=_("digitalSignatureVerification.panelMessages.noSignatureFields")}return r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(V.a,{className:"empty-icon",glyph:K.c[K.e.SIGNATURE].icon}),r.a.createElement("div",{className:"empty-message"},e))}(),!f&&n.length>0&&n.map((function(e,t){return r.a.createElement(G,{key:t,name:e.name,collapsible:!0,field:e})})))};t.default=ne},1723:function(e,t,n){var o=n(35),r=n(1724);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1724:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,"",""])},1725:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},1726:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(120))},1727:function(e,t,n){var o=n(35),r=n(1728);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1728:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,'.panel-list-item{width:100%;display:flex;flex-direction:column;position:relative;box-sizing:border-box;list-style-type:none}.panel-list-item ul{list-style-type:none;margin:0}.panel-list-item li::marker{content:"";margin:0}.panel-list-grid{display:grid;align-items:center;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:8px;margin-bottom:8px}.panel-list-grid.grid-with-1-row{grid-template-rows:auto}.panel-list-grid.grid-with-2-rows{grid-template-rows:auto auto}.panel-list-grid.grid-with-3-columns{grid-template-columns:auto minmax(0,1fr) auto}.panel-list-grid.grid-with-4-columns{grid-template-columns:auto auto minmax(0,1fr) auto}.panel-list-grid.grid-with-5-columns{grid-template-columns:auto auto auto minmax(0,1fr) auto}.panel-list-grid:hover .panel-list-more-options,.panel-list-grid[focus-within] .panel-list-more-options{visibility:visible}.panel-list-grid:focus-within .panel-list-more-options,.panel-list-grid:hover .panel-list-more-options{visibility:visible}.panel-list-row{display:contents}.panel-list-row.with-checkbox{padding-inline-start:32px}.panel-list-row .checkbox{margin:0;position:relative;inset-inline-start:0;inset-inline-start:var(--checkbox-left,0)}.panel-list-row .chevron-container{min-width:24px;transition:transform .1s ease;visibility:hidden}.panel-list-row .chevron-container.toggled{transform:rotate(90deg)}.panel-list-row .chevron-container.visible{visibility:visible}.panel-list-row .chevron-container:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.panel-list-row .chevron-container .Button{width:24px;height:24px}.panel-list-row .chevron-container .Button .Icon{width:12px;height:12px}.panel-list-row .panel-list-icon-container .Icon{width:24px;height:24px}.panel-list-row .panel-list-text-container{grid-area:1/-3/auto/-2;display:flex;flex-direction:row;height:24px}.panel-list-row .panel-list-text-container .panel-list-label-header{align-content:center;margin:0;width:100%}.panel-list-row .panel-list-text-container .panel-list-label-header .set-focus{color:#2c73ab}.panel-list-row .panel-list-text-container .panel-list-label-header .Button{display:flex;width:auto;max-width:100%;height:100%;padding:2px 0 2px 4px;justify-content:start}.panel-list-row .panel-list-text-container .panel-list-label-header .Button:focus{color:#2c73ab}.panel-list-row .panel-list-text-container .panel-list-label-header .Button:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:unset;color:var(--blue-6)}.panel-list-row .panel-list-text-container .panel-list-label-header .Button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;flex-grow:1}.panel-list-row .panel-list-more-options{grid-area:1/-2/auto/-1;display:flex;justify-content:flex-end;margin-inline-start:2px;visibility:hidden}.panel-list-row .panel-list-more-options .Button{width:24px;height:24px;min-width:24px}.panel-list-row .panel-list-more-options .Button:focus{color:var(--blue-6)}.panel-list-row .panel-list-more-options .Button .Icon{width:12px;height:12px}.panel-list-description{grid-area:2/-3/auto/-2;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:2px 0 2px 4px;height:24px}.panel-list-children{padding-inline-start:32px}',""])},1729:function(e,t,n){var o=n(35),r=n(1730);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1730:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".outline-destination,.outline-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline-destination{flex-basis:100%;font-size:10px;color:var(--faded-text);margin-top:var(--padding-small)}.bookmark-outline-label-row .ToggleElementButton .Button{padding:0;min-width:16px}",""])},1731:function(e,t,n){var o=n(35),r=n(1732);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1732:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,':host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.outline-drag-container{border-radius:4px}.outline-drag-container.isNesting>.bookmark-outline-single-container{background-color:var(--popup-button-active);border-color:var(--focus-border)}.outline-treeview-toggle{flex-grow:0;flex-shrink:0;margin-inline-end:var(--padding-small);margin-top:2px;margin-bottom:2px;min-width:14px;transition:transform .1s ease}.outline-treeview-toggle.expanded{transform:rotate(90deg)}.outline-treeview-toggle .Button{width:auto;height:auto}.outline-treeview-toggle .Button .Icon{width:16px;height:16px}.outline-drag-line{margin-inline-start:var(--padding);margin-inline-end:var(--padding);border-top:1px solid var(--focus-border);position:relative}.outline-drag-line:before{content:"";display:block;position:absolute;width:5px;height:5px;inset-block-start:-3px;inset-inline-start:0;background-color:var(--focus-border);border-radius:50%}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1733:function(e,t,n){var o=n(35),r=n(1734);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1734:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel{margin:16px;padding:0;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel{margin:16px;padding:0;overflow-y:auto}}.OutlinesPanel .bookmark-outline-single-container:not(.editing){height:-moz-fit-content;height:fit-content}.OutlinesPanel .bookmark-outline-row{padding-top:6px}.OutlinesPanel .msg-no-bookmark-outline{margin-top:6px}.OutlinesPanel .spinner{align-self:center}.OutlinesPanel .small-outlines-list{height:calc(100% - 154px)!important}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button{width:-moz-fit-content;width:fit-content;height:100%;padding:0 8px;justify-content:start}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button:focus{border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-more-button.active{display:flex}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-more-button.active .Icon{color:var(--blue-5)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.default.hover:not(.selected),.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.default:hover:not(.selected){background:none}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.focus-visible,.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container:focus-visible{outline:var(--focus-visible-outline)!important}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input{font-size:13px}}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input:active{border-color:var(--focus-border)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-cancel-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-control-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-cancel-button,.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-control-button,.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-save-button{font-size:13px}}.Panel.OutlinesPanel{overflow:auto;-webkit-overflow-scrolling:touch;flex:1;flex-direction:column}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1735:function(e,t,n){var o=n(35),r=n(1736);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1736:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.BookmarksPanel{display:flex;flex-direction:column;flex:1;font-size:var(--font-size-default)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel{margin:16px;padding:0;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel{margin:16px;padding:0;overflow-y:auto}}.BookmarksPanel .bookmark-switch{-webkit-font-smoothing:antialiased;margin-top:var(--padding-medium);padding-inline-start:4px}.BookmarksPanel .bookmark-outline-single-container{margin-top:var(--padding-medium)}.BookmarksPanel .bookmark-outline-single-container[focus-within]:not(.editing){background-color:var(--outline-selected);outline:1px solid var(--bookmark-outline-hover-border)}.BookmarksPanel .bookmark-outline-single-container:focus-within:not(.editing){background-color:var(--outline-selected);outline:1px solid var(--bookmark-outline-hover-border)}.BookmarksPanel .msg-no-bookmark-outline{margin-top:var(--padding)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .ui__choice__label{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .ui__choice__label{font-size:13px}}.BookmarksPanel .ui__choice__input__switch{background-color:var(--gray-6)!important}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-row{overflow:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-row{overflow:auto}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-cancel-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-control-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-cancel-button,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-control-button,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-save-button{font-size:13px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-input,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-text-input{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-input,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-text-input{font-size:13px}}.BookmarksPanel .panel-list-row .Button{font-weight:700}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1737:function(e,t,n){var o=n(35),r=n(1738);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1738:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.fileAttachmentPanel{z-index:65;display:flex;flex-direction:column;transition:transform .3s ease,visibility 0s ease .3s}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel{inset-block-start:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{inset-block-start:0;width:100%;height:100%}}.open.fileAttachmentPanel{transform:none;visibility:visible;transition:transform .3s ease,visibility 0s ease 0s}.fileAttachmentPanel .empty-panel-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;padding:36px;grid-gap:8px;gap:8px}.fileAttachmentPanel .empty-panel-container .empty-icon{width:60px;height:60px;color:var(--gray-6);fill:var(--gray-6)}.fileAttachmentPanel .empty-panel-container .empty-icon svg{width:60px;height:60px}.fileAttachmentPanel .empty-panel-container .empty-message{text-align:center;max-width:131px;font-size:13px}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel .empty-panel-container .empty-message{line-height:15px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel .empty-panel-container .empty-message{line-height:15px}}.fileAttachmentPanel{display:block;font-size:var(--font-size-default)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel{margin:16px;width:auto;flex-grow:1;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{margin:16px;width:auto;flex-grow:1;overflow-y:auto}}.fileAttachmentPanel .section{margin-bottom:8px}.fileAttachmentPanel .section h2.title{font-weight:700;font-size:13px;padding-inline-start:var(--fileAttachment-title-padding);margin:12px 0}.fileAttachmentPanel .section ul.downloadable{padding-inline-start:var(--fileAttachment-list-padding)}.fileAttachmentPanel .section ul.downloadable>li{width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:4px 0}.fileAttachmentPanel .section ul.downloadable>li>button{cursor:pointer;color:var(--secondary-button-text);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:4px 0}.fileAttachmentPanel .section ul.downloadable>li>button:hover{color:var(--secondary-button-hover)}.fileAttachmentPanel .section ul.downloadable .embedSpinner{display:flex;flex-direction:row;justify-content:space-between}.fileAttachmentPanel .section ul.downloadable .embedSpinner .spinner{margin:0}.fileAttachmentPanel .section ul ul{padding-inline-start:10px;list-style-type:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1739:function(e,t,n){var o=n(35),r=n(1740);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1740:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,':host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.thumbnailControls-overlay{display:grid;text-align:center;z-index:2;margin-top:5px;grid-template-areas:"rotate delete . more";grid-template-columns:repeat(3,1fr)}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.thumbnailControls-overlay{display:flex}}.thumbnailControls-overlay .Button{height:32px;padding:0;width:32px}.thumbnailControls-overlay .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.thumbnailControls-overlay .Button:hover{background:var(--view-header-button-hover);border-radius:4px}.thumbnailControls-overlay .Button.active{background:var(--view-header-button-active)}.thumbnailControls-overlay .Button.active .Icon{color:var(--selected-icon-color)}.thumbnailControls-overlay.modular-ui .Button:hover{border:1px solid var(--focus-border);background:var(--tools-button-hover)}.thumbnailControls-overlay .rotate-button{grid-area:rotate}.thumbnailControls-overlay .delete-button{grid-area:delete}.thumbnailControls-overlay .more-options{grid-area:more}.thumbnailControls-overlay.custom-buttons .Button{grid-area:auto}.thumbnailControls{display:flex;flex-direction:row;text-align:center;z-index:2;margin-top:5px}.thumbnailControls .Button{height:32px;padding:0;width:32px;margin:0 4px}.thumbnailControls .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.thumbnailControls .Button:hover{background:var(--view-header-button-hover);border-radius:4px}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1741:function(e,t,n){var o=n(35),r=n(1742);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1742:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Thumbnail{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:pointer}.Thumbnail.active .container .page-image{border:2px solid var(--focus-border);box-shadow:none;box-sizing:content-box}.Thumbnail .container{position:relative;display:flex;justify-content:center;align-items:center;cursor:pointer}.Thumbnail .container .page-image{box-shadow:0 0 3px 0 var(--box-shadow)}.Thumbnail .container .annotation-image,.Thumbnail .container .page-image{position:absolute;inset-inline-start:50%;inset-block-start:50%;transform:translate(-50%,-50%)}.Thumbnail .container .annotation-image.right-to-left,.Thumbnail .container .page-image.right-to-left{transform:translate(-15%,-50%);inset-inline-start:0}.Thumbnail .container .checkbox{position:absolute;border-radius:4px;z-index:4}.Thumbnail .container .default{inset-block-start:3%;inset-inline-end:15%}.Thumbnail .container .rotated{inset-block-start:15%;inset-inline-end:3%}.Thumbnail .page-label{margin-top:11px}.Thumbnail.selected .container .thumbnail:before{color:#fff;background:var(--focus-border);width:16px;height:16px;position:absolute;z-index:10}.Thumbnail.selected .container canvas{background:hsla(0,0%,100%,.6)}.Thumbnail.active .page-label{color:var(--focus-border)!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1743:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControlsContainer{margin-inline-start:16px;margin-inline-end:16px;margin-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControlsContainer{margin-inline-start:16px;margin-inline-end:16px;margin-bottom:16px}}.documentControlsContainer .PageControlContainer{display:flex;background-color:var(--gray-2);justify-content:center;align-content:center;border-radius:4px}.documentControlsContainer .PageControlContainer .dropdown-menu{position:relative}.documentControlsContainer .PageControlContainer .dropdown-menu .indicator{position:absolute;inset-block-end:1px;inset-inline-end:1px;width:0;height:0;border-inline-start:4px solid transparent;border-inline-end:4px solid transparent;border-top:4px solid #c4c4c4;transform:rotateY(0deg) rotate(315deg)}.documentControlsContainer .PageControlContainer button .Icon{height:21px;width:21px;color:var(--icon-color)}.documentControlsContainer .PageControlContainer .button-hover:hover{background:var(--view-header-button-hover);border-radius:4px}.documentControlsContainer .PageControlContainer .divider{height:20px;width:1px;background:var(--divider);margin:6px;display:block!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1744:function(e,t,n){var o=n(35),r=n(1745);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1745:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.documentControls{display:flex;flex-direction:column}.documentControls .divider{height:1px;background:var(--divider);margin:16px 0 8px}.documentControls .documentControlsInput{display:flex;flex-direction:row;padding-bottom:16px;padding-top:8px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsInput{padding-bottom:0}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsInput{padding-bottom:0}}.documentControls .documentControlsInput.customizableUI{padding:8px 0}.documentControls .documentControlsInput .pagesInput{width:100%;height:30px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;padding-inline-start:8px;padding-inline-end:8px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsInput .pagesInput{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsInput .pagesInput{font-size:13px}}.documentControls .documentControlsInput .pagesInput:focus{outline:none;border:1px solid var(--focus-border)}.documentControls .documentControlsInput .pagesInput::-moz-placeholder{color:var(--placeholder-text)}.documentControls .documentControlsInput .pagesInput::placeholder{color:var(--placeholder-text)}.documentControls .documentControlsInput .documentControlsButton{display:flex;flex-direction:row;padding-inline-start:2px}.documentControls .documentControlsInput .documentControlsButton .Button{height:30px;padding:0;width:30px;margin:0 4px}.documentControls .documentControlsInput .documentControlsButton .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.documentControls .documentControlsInput .documentControlsButton .Button:hover{background:var(--view-header-button-hover);border-radius:4px}.documentControls .documentControlsLabel{margin-top:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsLabel{margin-top:8px;font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsLabel{margin-top:8px;font-size:13px}}.documentControls .documentControlsLabel .multiSelectExampleLabel{color:var(--faded-text);margin-inline-start:2px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1746:function(e,t,n){var o=n(35),r=n(1747);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1747:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.thumbnail-slider-container{display:flex;align-items:center;width:230px;margin:0 auto;height:40px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container{width:inherit;margin:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container{width:inherit;margin:16px}}.thumbnail-slider-container .thumbnail-slider{width:100%;height:20px;padding:0;color:transparent;background-color:transparent;border:0 transparent}.thumbnail-slider-container input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;accent-color:green;height:3px;background:#2980b9}.thumbnail-slider-container input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:6px}.thumbnail-slider-container input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:14px;width:14px;background-color:var(--slider-filled);border-radius:50%;border:2px solid var(--slider-filled);margin-top:-4px}.thumbnail-slider-container input[type=range]::-moz-range-track{height:5px;border-radius:4px}.thumbnail-slider-container button{width:15px;height:15px;margin:2.5px;padding-top:6px}.thumbnail-slider-container button:hover{background:var(--view-header-button-hover);border-radius:4px}.thumbnail-slider-container .slider{width:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container .slider{margin-top:0}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container .slider{margin-top:0}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container .slider .slider-element-container{width:auto;margin-inline-start:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container .slider .slider-element-container{width:auto;margin-inline-start:auto}}.ThumbnailsPanel{overflow:hidden!important;display:flex;height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .ThumbnailsPanel{width:inherit;margin:0 16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .ThumbnailsPanel{width:inherit;margin:0 16px}}.ThumbnailsPanel #virtualized-thumbnails-container{flex:1}.ThumbnailsPanel .ReactVirtualized__Grid.ReactVirtualized__List.thumbnailsList.right-to-left{direction:rtl!important}.ThumbnailsPanel .row{display:flex;justify-content:space-around;align-items:center;flex-direction:column}.ThumbnailsPanel .thumbnailPlaceholder{width:150px;margin:2px;border:1px solid var(--focus-border)}.ThumbnailsPanel .columnsOfThumbnails.row{display:flex;justify-content:left;align-items:center;flex-direction:row}.ThumbnailsPanel .columnsOfThumbnails .cellThumbContainer{display:flex;flex-direction:row}.ThumbnailsPanel .columnsOfThumbnails .Thumbnail{display:inline-flex}.ThumbnailsPanel .columnsOfThumbnails .thumbnailPlaceholder{width:116px;min-width:116px;height:150px;margin-bottom:30px}.cellThumbContainer{border-radius:4px}.thumbnailAutoScrollArea{position:absolute;width:calc(100% - 55px);z-index:10;background:hsla(0,0%,100%,0)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1748:function(e,t,n){var o=n(35),r=n(1749);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1749:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.multi-reply-place-holder{height:100px}.reply-area-multi-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;width:100%;position:absolute;inset-block-end:0;z-index:100;background:var(--panel-background)}.reply-area-multi-container form{width:100%;display:flex}.reply-area-multi-container .reply-area-multi-header{display:flex;flex-direction:row;margin-inline-start:16px;margin-top:28px;position:relative;justify-content:space-between}.reply-area-multi-container .reply-area-multi-header .title{font-size:13px;font-weight:700;display:flex;align-items:center}.reply-area-multi-container .reply-area-multi-header .close-icon{display:flex;align-items:center;padding-inline-end:12px;cursor:pointer;position:relative;inset-block-start:1px}.reply-area-multi-container .reply-area-multi-header .close-icon .close-icon{width:22px;height:22px}.reply-area-multi-container .reply-button-container{display:flex;justify-content:flex-end;flex-direction:column}.reply-area-multi-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-multi-container .reply-button,html:not([data-tabbing=true]) .reply-area-multi-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-multi-container .reply-button{width:80px}}.reply-area-multi-container .reply-button:hover{background:var(--blue-1)}.reply-area-multi-container .reply-button.disabled{cursor:not-allowed}.reply-area-multi-container .reply-area{position:relative;flex:1;margin:13px 17px 12px 16px;border-radius:4px;align-items:center;background:var(--component-background)}.reply-area-multi-container .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-multi-container .add-attachment{display:none}.reply-area-multi-container.modular-ui{padding:16px 16px 24px}.reply-area-multi-container.modular-ui form{margin-bottom:0}.reply-area-multi-container.modular-ui .reply-area{margin:13px 16px 24px 0}.reply-area-multi-container.modular-ui .reply-area-multi-header{margin-inline-start:0;margin-top:0}.reply-area-multi-container.modular-ui .reply-area-multi-header .close-icon{width:28px;height:28px}.reply-area-multi-container.modular-ui .close-icon{padding-inline-end:0;margin-inline-end:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-inline-end:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{inset-inline-start:0;inset-inline-end:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1750:function(e,t,n){var o=n(35),r=n(1751);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1751:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".multi-style-container{border-radius:4px;box-shadow:0 0 3px 0 var(--document-box-shadow);background:var(--component-background);position:relative;inset-inline-end:20px;inset-block-end:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1752:function(e,t,n){var o=n(35),r=n(1753);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1753:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".notes-panel-container .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}.notes-panel-container .buttons-container .Button{height:28px;width:28px}.notes-panel-container .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}.notes-panel-container .buttons-container .Button.active{background:var(--view-header-button-active)}.notes-panel-container .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}.notes-panel-container .multi-select-footer{background:var(--panel-background);display:flex;border-top:1px solid var(--gray-5);margin-top:auto;margin-bottom:16px;height:64px;padding:24px 16px;align-items:center;justify-content:center;position:absolute;inset-block-end:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;inset-inline-end:26px;position:absolute}",""])},1754:function(e,t,n){var o=n(35),r=n(1755);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1755:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comments-counter{height:19px;margin-top:24px;margin-bottom:12px;font-size:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .comments-counter{margin-top:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .comments-counter{margin-top:16px}}.comments-counter span{font-weight:700}.comments-counter h2{font-weight:400;font-size:16px}[data-element=notesPanelHeader]{padding-inline-end:18px}[data-element=notesPanelHeader] .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}[data-element=notesPanelHeader] .buttons-container .Button{height:28px;width:28px;cursor:pointer}[data-element=notesPanelHeader] .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}[data-element=notesPanelHeader] .buttons-container .Button.active{background:var(--view-header-button-active)}[data-element=notesPanelHeader] .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}[data-element=notesPanelHeader] .buttons-container .Button:disabled{cursor:default}[data-element=notesPanelHeader] .sort-row{display:flex;justify-content:space-between;margin-bottom:16px}[data-element=notesPanelHeader] .sort-row .sort-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;align-self:flex-end}[data-element=notesPanelHeader] .sort-row .sort-container .label{margin-inline-end:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:start}[data-element=notesPanelHeader] .input-container{display:flex;position:relative;flex:1}[data-element=notesPanelHeader] .input-container input{width:100%;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-inline-end:8px;padding-bottom:6px;padding-inline-start:8px}[data-element=notesPanelHeader] .input-container.modular-ui-input{box-sizing:border-box;border:1px solid var(--border);border-radius:4px;height:28px;align-items:center;color:var(--text-color);padding:6px 2px 6px 6px}[data-element=notesPanelHeader] .input-container.modular-ui-input[focus-within]{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input:focus-within{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input input{padding-inline-start:8px;padding-inline-end:26px;height:20px;border:none;background:transparent}[data-element=notesPanelHeader] .input-button{cursor:pointer;background:var(--primary-button);border-radius:4px;height:100%;width:40px;display:flex;align-items:center;justify-content:center;position:absolute;inset-block-end:0;inset-inline-end:0}[data-element=notesPanelHeader] .input-button .Icon{width:20px;height:20px}[data-element=notesPanelHeader] .input-button svg{color:var(--primary-button-text)}[data-element=notesPanelHeader] .input-button:hover{background:var(--primary-button-hover)}[data-element=notesPanelHeader] .divider{height:1px;width:100%;background:var(--divider);margin:16px 0}.modular-ui-header .input-container.modular-ui-input .Icon{width:16px;height:16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1756:function(e,t,n){var o=n(35),r=n(1757);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1757:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.notes-panel-container{z-index:65;display:flex;flex-direction:row;position:relative;overflow-y:visible}.notes-panel-container.office-editor{height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{z-index:95}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-inline-start:16px;padding-bottom:0;display:flex;flex-direction:column;position:relative;padding-top:16px}.notes-panel-container .NotesPanel .close-container{display:flex;align-items:center;justify-content:flex-end}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}.notes-panel-container .NotesPanel .close-container .close-icon-container{display:flex;align-items:center;cursor:pointer}.notes-panel-container .NotesPanel .close-container .close-icon-container .close-icon{width:24px;height:24px}.notes-panel-container .NotesPanel .multi-select-place-holder{height:72px}.notes-panel-container .NotesPanel .preview-all-changes{height:57px;display:flex;flex-direction:column;justify-content:center;position:relative;margin-inline-end:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;inset-block-start:0}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.notes-panel-container .NotesPanel .reply-area-container .reply-button{width:28px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}.notes-panel-container .NotesPanel .no-annotations{display:flex;flex-direction:column;align-items:center}.notes-panel-container .NotesPanel .no-annotations .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}.notes-panel-container .NotesPanel .no-annotations .empty-icon,.notes-panel-container .NotesPanel .no-annotations .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-annotations .empty-icon *{fill:var(--gray-6);color:var(--gray-6)}.notes-panel-container .NotesPanel .normal-notes-container,.notes-panel-container .NotesPanel .virtualized-notes-container{margin-top:10px;flex:1;padding-inline-end:18px}.notes-panel-container .NotesPanel .virtualized-notes-container{overflow:hidden}.notes-panel-container .NotesPanel .normal-notes-container{overflow:auto;overflow:overlay}.notes-panel-container .NotesPanel .note-wrapper:first-child .ListSeparator{margin-top:0;word-break:break-word}.notes-panel-container .NotesPanel .no-results{display:flex;flex-direction:column;align-items:center;padding-inline-end:18px}.notes-panel-container .NotesPanel .no-results .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}.notes-panel-container .NotesPanel .no-results .empty-icon,.notes-panel-container .NotesPanel .no-results .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-results .empty-icon *{fill:var(--border);color:var(--border)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1762:function(e,t,n){var o=n(35),r=n(1763);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1763:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row{align-items:center}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing{background-color:var(--faded-component-background);padding:var(--padding-medium) 20px}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing.focus-visible,.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing:focus-visible{outline:var(--focus-visible-outline)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input-label{font-weight:600;padding-bottom:var(--padding-small)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input{-webkit-font-smoothing:antialiased}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input{border-color:var(--border)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning{border-color:var(--error-border-color)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning.ui__input--focused{box-shadow:none}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning .ui__input__icon svg{fill:var(--error-border-color)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-default.ui__input--focused{border-color:var(--outline-color);box-shadow:none}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input{padding:var(--padding-small);color:var(--text-color);height:auto;overflow:auto;line-height:normal}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input::-moz-placeholder{color:var(--placeholder-text)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input::placeholder{color:var(--placeholder-text)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input__messageText{color:var(--error-text-color);margin-top:var(--padding-small);font-size:inherit}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1764:function(e,t,n){var o=n(35),r=n(1765);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1765:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,"",""])},1766:function(e,t,n){var o=n(35),r=n(1767);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1767:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.PortfolioPanel .portfolio-panel-control{display:flex}.PortfolioPanel .bookmark-outline-row{padding-top:6px}.PortfolioPanel .bookmark-outline-panel-header .header-title{font-size:16px;font-weight:400;margin:0}.PortfolioPanel .portfolio-panel-list{padding-top:8px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1768:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(12),n(31),n(26),n(28),n(40),n(24),n(42),n(43),n(8),n(84),n(11),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(6),c=n(4);n(1723);function s(e){return(s="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var b,g,v,y=function(e){function t(){return u(this,t),f(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.className,o=e.dataElement,i=e.children;return t?null:r.a.createElement("div",{className:n,"data-element":o},i)}}])&&d(n.prototype,o),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);b=y,g="propTypes",v={isDisabled:a.a.bool,className:a.a.string.isRequired,dataElement:a.a.string.isRequired,children:a.a.node},(g=m(g))in b?Object.defineProperty(b,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):b[g]=v;var w=Object(l.b)((function(e,t){return{isDisabled:c.a.isElementDisabled(e,t.dataElement)}}))(y);t.a=w},1769:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(181),n(13),n(94);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(2),c=n.n(l),s=n(6),u=n(1876),d=n(1877),f=n(630),p=n(1585),h=n(1),m=n(3),b=n(4),g=n(54),v=n(66),y=n(475),w=n(45),x=n(1626),O=n(1665),S=n(60);n(1731),n(1575);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C={outline:c.a.object.isRequired,setMultiSelected:c.a.func,moveOutlineInward:c.a.func.isRequired,moveOutlineBeforeTarget:c.a.func.isRequired,moveOutlineAfterTarget:c.a.func.isRequired,connectDragSource:c.a.func,connectDragPreview:c.a.func,connectDropTarget:c.a.func,isDragging:c.a.bool,isDraggedUpwards:c.a.bool,isDraggedDownwards:c.a.bool},T=Object(o.forwardRef)((function(e,t){var n=e.outline,i=e.setMultiSelected,l=e.isDragging,c=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.connectDragSource,p=e.connectDragPreview,g=e.connectDropTarget,v=e.moveOutlineInward,E=e.moveOutlineBeforeTarget,C=e.moveOutlineAfterTarget,T=Object(s.e)((function(e){return b.a.getOutlines(e)})),A=Object(o.useContext)(x.a),_=A.setActiveOutlinePath,j=A.activeOutlinePath,P=A.isOutlineActive,N=A.setAddingNewOutline,I=A.isAddingNewOutline,R=A.isMultiSelectMode,q=A.shouldAutoExpandOutlines,L=A.isOutlineEditable,M=A.updateOutlines,D=y.a.getPath(n),z=k(Object(o.useState)(q),2),B=z[0],F=z[1],H=k(Object(o.useState)(!1),2),U=H[0],W=H[1],G=k(Object(o.useState)(!1),2),V=G[0],K=G[1],$=k(Object(o.useState)(void 0),2),Y=$[0],Z=$[1],X=Object(s.d)(),Q=Object(o.useRef)(null);d(Q),p(Object(f.a)(),{captureDraggingState:!0}),g(Q);var J=l?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return Q.current}}})),Object(o.useEffect)((function(){null!==j&&j!==D&&j.startsWith(D)&&F(!0)}),[j,I,n]),Object(o.useLayoutEffect)((function(){F(q)}),[q]),Object(o.useLayoutEffect)((function(){W(!1),K(!1),I&&j===D&&F(!0)}),[T]);var ee,te,ne,oe,re=Object(o.useCallback)((function(){h.a.goToOutline(n),_(D===j?null:D),I&&(N(!1),M()),Object(w.k)()&&X(m.a.closeElement("leftPanel"))}),[X,_,j,I,n]),ie=P(n);return r.a.createElement("div",{ref:!I&&R&&L?Q:null,className:"outline-drag-container",style:{opacity:J}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:c?1:0}}),r.a.createElement(S.a,{className:a()({"bookmark-outline-single-container":!0,editing:U||V,default:!U&&!V,selected:ie}),tabIndex:0,onKeyDown:function(e){"Enter"===e.key&&re(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),U||V||1!==e.detail||Z(setTimeout(re,300))},onDoubleClick:function(){U||V||clearTimeout(Y)}},r.a.createElement(O.a,{text:n.getName(),outlinePath:D,isOutlineRenaming:U,setOutlineRenaming:W,isOutlineChangingDest:V,setOutlineChangingDest:K,textColor:n.color?(ee=n.color,te=255*ee.r,ne=255*ee.g,oe=255*ee.b,"rgb(".concat(te,", ").concat(ne,", ").concat(oe,")")):null,setMultiSelected:i,isExpanded:B,setIsExpanded:F,moveOutlineInward:v,moveOutlineBeforeTarget:E,moveOutlineAfterTarget:C},n.getChildren())),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}),I&&ie&&r.a.createElement(S.a,{className:"bookmark-outline-single-container editing"},r.a.createElement("div",{className:"outline-treeview-toggle",style:{marginLeft:12*y.a.getNestedLevel(n)}}),r.a.createElement(O.a,{isAdding:!0,text:"",onCancel:function(){return N(!1)}})))}));T.propTypes=C;var A=Object(u.a)(p.c.OUTLINE,{hover:function(e,t,n){if(n){var o=t.getItem();if(o){var r=o.dragOutline,i=o.dragSourceNode,a=e.outline,l=n.getNode();if(i&&l){if(i.contains(l))return o.dropTargetNode=void 0,void(o.dropLocation=p.b.INITIAL);o.dropTargetNode=l;var c=r.index,s=a.index;if(r.parent!==a.parent||c!==s){var u=l.getBoundingClientRect(),d=(u.bottom-u.top)/2,f=t.getClientOffset().y-u.top;switch(!0){case f<=d+p.a&&f>=d-p.a:o.dropLocation=p.b.ON_TARGET_HORIZONTAL_MIDPOINT,t.isOver({shallow:!0})&&l.classList.add("isNesting"),setTimeout((function(){(null==o?void 0:o.dropTargetNode)!==l&&l.classList.remove("isNesting")}),100);break;case f>d+p.a:o.dropLocation=p.b.BELOW_TARGET,l.classList.remove("isNesting");break;case f<d-p.a:o.dropLocation=p.b.ABOVE_TARGET,l.classList.remove("isNesting");break;default:o.dropLocation=p.b.INITIAL,l.classList.remove("isNesting")}Object(v.a)(g.a.DRAG_OUTLINE,{targetOutline:a,draggedOutline:o.dragOutline,dropLocation:o.dropLocation})}}}}},drop:function(e,t,n){if(n){var o=t.getItem(),r=o.dragOutline,i=o.dropTargetNode,a=e.outline,l=e.moveOutlineInward,c=e.moveOutlineBeforeTarget,s=e.moveOutlineAfterTarget;if(i){switch(o.dropLocation){case p.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case p.b.ABOVE_TARGET:c(r,a);break;case p.b.BELOW_TARGET:s(r,a)}i.classList.remove("isNesting"),Object(v.a)(g.a.DROP_OUTLINE,{targetOutline:a,draggedOutline:r,dropLocation:o.dropLocation}),o.dropLocation=p.b.INITIAL}}}},(function(e,t){var n,o;return{connectDropTarget:e.dropTarget(),isDraggedUpwards:t.isOver({shallow:!0})&&(null===(n=t.getItem())||void 0===n?void 0:n.dropLocation)===p.b.ABOVE_TARGET,isDraggedDownwards:t.isOver({shallow:!0})&&(null===(o=t.getItem())||void 0===o?void 0:o.dropLocation)===p.b.BELOW_TARGET}}))(Object(d.a)(p.c.OUTLINE,{beginDrag:function(e,t,n){return{sourceId:t.sourceId,dragOutline:e.outline,dragSourceNode:n.getNode(),dropLocation:p.b.INITIAL}},canDrag:function(){return w.e?(console.warn("Drag and drop outlines for IE11 is not supported"),!1):!!h.a.isFullPDFEnabled()||(console.warn("Full API must be enabled to drag and drop outlines"),!1)}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(T));A.propTypes=C;var _=A;t.default=_},1777:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(38),n(617),n(34),n(125),n(27),n(21),n(50),n(76),n(20),n(12),n(44),n(22),n(99),n(129),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(62),n(11),n(29),n(13);var o=n(102),r=n.n(o),i=n(0),a=n.n(i),l=n(6),c=n(1654),s=n(206),u=n(15),d=n.n(u),f=n(45),p=(n(26),n(59),n(4)),h=n(3),m=(n(40),n(42),n(43),n(111),n(56),n(132),n(94),n(229)),b=n(1),g=n(2),v=n.n(g),y=n(122),w=n(41),x=(n(1739),n(5)),O=n(96);var S=function(e){var t=e.className,n=e.pageIndex,o=Object(l.d)(),r=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}));return a.a.createElement("div",{className:t,onClick:function(){-1===r.indexOf(n)&&o(h.a.setSelectedPageThumbnails([n]))}},a.a.createElement(O.a,{dataElement:x.a.PAGE_MANIPULATION_OVERLAY_BUTTON,toggleElement:x.a.PAGE_MANIPULATION,img:"icon-tool-more",title:"option.thumbnailPanel.moreOptions"}))},k=n(57),E=n(305),C=n(236);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _={index:v.a.number.isRequired},j=function(e){var t=e.index,n=Object(E.a)().t,o=T(Object(l.e)((function(e){return[p.a.isElementDisabled(e,"thumbnailControl")]})),1)[0],r=T(Object(l.e)((function(e){return[p.a.isElementDisabled(e,x.a.PAGE_MANIPULATION_OVERLAY_BUTTON)]})),1)[0],c=T(Object(l.e)((function(e){return[p.a.pageDeletionConfirmationModalEnabled(e),p.a.getSelectedThumbnailPageIndexes(e)]})),2),s=c[0],u=c[1],f=Object(l.d)(),h=Object(i.useRef)([]),m=Object(i.useRef)(null),g=T(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getThumbnailControlMenuItems(e),p.a.getFeatureFlags(e)]}),l.c),3),v=g[0],O=g[1],A=g[2],_=u.length>0?u.map((function(e){return e+1})):[t+1],j=_.includes(v),P=A.customizableUI;j||(_=[v]);var N=b.a.getDocument(),I=null==N?void 0:N.type,R=I===k.a.XOD,q=I===k.a.OFFICE||I===k.a.LEGACY_OFFICE,L={thumbRotateClockwise:a.a.createElement(w.a,{className:"rotate-button",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(_)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"}),thumbRotateCounterClockwise:a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:function(){return Object(y.p)(_)},title:"option.thumbnailPanel.rotatePageCounterClockwise",dataElement:"thumbRotateCounterClockwise"}),thumbDelete:a.a.createElement(w.a,{className:"delete-button",img:"icon-delete-line",onClick:function(){return Object(y.b)(_,f,s)},title:"option.thumbnailPanel.delete",dataElement:"thumbDelete",onClickAnnouncement:"".concat(n("action.delete")," ").concat(n("action.modal")," ").concat(n("action.isOpen"))})},M=!1,D=[],z=O.map((function(e){var t=e.dataElement,n=t,o=L[t];if(D.indexOf(t)>-1)return null;if(D.push(t),!o){M=!0;var r=e.img,i=e.onClick,l=e.title;o=a.a.createElement(w.a,{className:"".concat(t,"-button"),img:r,onClick:function(){return i(v)},title:l,dataElement:t})}return o?a.a.cloneElement(o,{key:n}):null}));return Object(i.useEffect)((function(){h.current=Object(C.a)(m.current),h.current.length>0&&h.current.forEach((function(e){e.tabIndex=-1}))}),[h.current,z]),o?null:R||q||null!=N&&N.isWebViewerServerDocument()?a.a.createElement("div",{className:"thumbnailControls-overlay","data-element":"thumbnailControl",style:{display:"flex"}},a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:function(){return Object(y.p)(_)},title:"option.thumbnailPanel.rotatePageCounterClockwise",dataElement:"thumbRotateCounterClockwise"}),a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(_)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"})):a.a.createElement("div",{className:d()({"thumbnailControls-overlay":!0,"custom-buttons":M,"modular-ui":P}),"data-element":"thumbnailControl",ref:m},z,r?null:a.a.createElement(S,{className:"more-options",pageIndex:t}))};j.propTypes=_;var P=j,N=n(413),I=(n(1741),n(1404)),R=n(23);function q(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return M(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(M(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,M(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,M(d,"constructor",s),M(s,"constructor",c),c.displayName="GeneratorFunction",M(s,r,"GeneratorFunction"),M(d),M(d,r,"Generator"),M(d,o,(function(){return this})),M(d,"toString",(function(){return"[object Generator]"})),(L=function(){return{w:i,m:f}})()}function M(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(M=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){M(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function D(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||B(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var H=a.a.forwardRef((function(e,t){var n=e.index,o=e.isSelected,r=e.updateAnnotations,c=e.shiftKeyThumbnailPivotIndex,s=e.onFinishLoading,u=e.onLoad,f=e.onRemove,h=void 0===f?function(){}:f,g=e.onDragStart,v=e.onDragOver,y=e.isDraggable,w=e.shouldShowControls,x=e.thumbnailSize,O=e.currentPage,S=e.pageLabels,k=void 0===S?[]:S,T=e.selectedPageIndexes,A=e.isThumbnailMultiselectEnabled,_=e.isReaderModeOrReadOnly,j=e.dispatch,M=e.actions,B=e.isMobile,F=e.canLoad,H=e.onCancel,U=e.isThumbnailSelectingPages,W=e.thumbnailSelectionMode,G=e.activeDocumentViewerKey,V=e.panelSelector,K=e.parentKeyListener,$=e.isRightToLeft,Y=x?Number(x):150,Z=z(Object(i.useState)(-1),2),X=Z[0],Q=Z[1],J=Object(i.useRef)(null),ee=Object(i.useRef)([]),te=Object(i.useRef)([]),ne=z(Object(i.useState)({width:Y,height:Y}),2),oe=ne[0],re=ne[1],ie=Object(E.a)().t,ae=z(Object(i.useState)(!1),2),le=ae[0],ce=ae[1],se=Object(l.e)(p.a.isContentEditingEnabled),ue=null;Object(i.useEffect)((function(){var e=function(e){J.current&&!J.current.contains(e.target)&&ye()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var de=function(){ue=setTimeout((function(){var e,t,o=Object(R.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)),i=n+1,a=b.a.getRotation(i),l=b.a.getDocument(G);if(l&&l.getPageInfo(i)){var c=l.loadCanvas({pageNumber:i,width:Y,height:Y,drawComplete:(e=L().m((function e(t){var o,i,l,c;return L().w((function(e){for(;;)switch(e.n){case 0:(o=Object(R.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)))&&((i=o.querySelector(".page-image"))&&o.removeChild(i),t.className="page-image ".concat($?"right-to-left":""),l=Math.min(Y/t.width,Y/t.height),t.style.width="".concat(t.width*l,"px"),t.style.height="".concat(t.height*l,"px"),re({width:Number(t.width),height:Number(t.height)}),Math.abs(a)&&(c="rotate(".concat(90*a,"deg) translate(-50%,-50%)"),t.style.transform=c,t.style["transform-origin"]="top left",t.style["ms-transform"]=c,t.style["ms-transform-origin"]="top left",t.style["-moz-transform"]=c,t.style["-moz-transform-origin"]="top left",t.style["-webkit-transform-origin"]="top left",t.style["-webkit-transform"]=c,t.style["-o-transform"]=c,t.style["-o-transform-origin"]="top left"),o.appendChild(t)),r&&r(n),s(n),ce(!0);case 1:return e.a(2)}}),e)})),t=function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){D(i,o,r,a,l,"next",e)}function l(e){D(i,o,r,a,l,"throw",e)}a(void 0)}))},function(e){return t.apply(this,arguments)}),allowUseOfOptimizedThumbnail:!0});u(n,o,c)}}),50)};Object(i.useEffect)((function(){var e=function(e){var t=e.contentChanged,o=e.moved,r=e.added,i=e.removed,a=n+1,l=r.includes(a),c=t.some((function(e){return a===e})),s=Object.keys(o).some((function(e){return a===parseInt(e)})),u=i.includes(a),d=b.a.getTotalPages();i.length>0&&n+1>d||(l||c||s||u)&&de()},t=function(){ce(!1),de()};return b.a.addEventListener("pagesUpdated",e),b.a.addEventListener("rotationUpdated",t),F&&de(),function(){b.a.removeEventListener("pagesUpdated",e),b.a.removeEventListener("rotationUpdated",t),clearTimeout(ue),h(n)}}),[]),Object(m.a)((function(){F?(de(),r(n)):H(n)}),[F,G]);var fe=O===n+1,pe=k[n],he="default",me=b.a.getRotation(n+1);((!me||2===me)&&oe.width>oe.height||(1===me||3===me)&&oe.width<oe.height)&&(he="rotated"),Object(i.useImperativeHandle)(t,(function(){return{focusInput:function(){U&&le?(be(te.current[0]),Q(0)):ee.current&&setTimeout((function(){be(ee.current[0]),Q(0)}),0)}}}));var be=function(e){e&&(e.ariaCurrent="page",e.focus())},ge=function(e){e&&(e.ariaCurrent=void 0)},ve=function(e){e.preventDefault(),ye()},ye=function(){ee.current.forEach((function(e){ge(e)}))},we=Object(i.useCallback)((function(e){e.stopPropagation(),K(e);var t,n={Tab:function(){return ve(e)},Escape:function(){return ve(e)}};n[e.key]&&(null===(t=n[e.key])||void 0===t||t.call(n));var o={ArrowUp:function(){return xe(e,-1)},ArrowDown:function(){return xe(e,1)},ArrowLeft:function(){return xe(e,-1)},ArrowRight:function(){return xe(e,1)}};o[e.key]&&!Se&&o[e.key]()}),[ee.current,X]),xe=function(e,t){e.preventDefault(),0!==ee.current.length&&Q((function(e){var n=e+t;return n<0?n=ee.current.length-1:n>=ee.current.length&&(n=0),Oe(ee.current[n]),n}))},Oe=function(e){ee.current.forEach((function(t){t===e?be(t):ge(t)}))};Object(i.useEffect)((function(){J.current&&(ee.current=Object(C.a)(J.current))}),[w,fe,le]),Object(i.useEffect)((function(){J.current&&(te.current=Object(C.a)(J.current))}),[U,le]);var Se=U&≤return a.a.createElement("button",{className:d()({Thumbnail:!0,active:fe,selected:o&&U}),onDragOver:function(e){return v(e,n)},id:"Thumbnail-container-".concat(n),ref:J,onKeyDown:function(e){return we(e)},onClick:function(e){var t=e.target.type&&"checkbox"===e.target.type;if(A&&!_){var o=e.ctrlKey||e.metaKey,r=e.shiftKey,i=q(T);if(r){j(M.setThumbnailSelectingPages(!0));var a=c;null===a&&(a=O-1,j(M.setShiftKeyThumbnailsPivotIndex(a)));var l=Math.min(a,n),s=Math.max(a,n);i=q(new Set(q(Array.from({length:s-l+1},(function(e,t){return t+l})))))}else o||U?(j(M.setThumbnailSelectingPages(!0)),(o||t||W===N.a.THUMBNAIL)&&(0!==T.length||U?T.includes(n)?i=T.filter((function(e){return n!==e})):i.push(n):i.push(O-1)),j(M.setShiftKeyThumbnailsPivotIndex(n))):i=[n];var u=i[i.length-1];!U&&!r&&j(M.setShiftKeyThumbnailsPivotIndex(u)),j(M.setSelectedPageThumbnails(i))}else B()&&j(M.closeElement("leftPanel"));setTimeout((function(){t&&W!==N.a.THUMBNAIL||b.a.setCurrentPage(n+1)}),0)},style:{width:Y,cursor:"pointer",background:"none",border:"none"},tabIndex:-1},a.a.createElement("div",{className:"container",style:{height:Y,width:Y},onDragStart:function(e){return g(e,n)},draggable:y,tabIndex:-1},a.a.createElement("div",{id:"pageThumb".concat(n),className:"thumbnail"}),U&&le&&a.a.createElement(I.a,{className:"checkbox ".concat(he),checked:T.includes(n),"aria-label":"".concat(ie("action.page")," ").concat(pe," ").concat(ie("formField.types.checkbox")),tabIndex:-1})),a.a.createElement("div",{className:"page-label"},pe),!U&&fe&&w&&!se&&a.a.createElement(P,{index:n}))}));H.displayName="Thumbnail",H.propTypes={index:v.a.number,isSelected:v.a.bool,updateAnnotations:v.a.func,shiftKeyThumbnailPivotIndex:v.a.number,onFinishLoading:v.a.func,onLoad:v.a.func,onRemove:v.a.func,onDragStart:v.a.func,onDragOver:v.a.func,isDraggable:v.a.bool,shouldShowControls:v.a.bool,thumbnailSize:v.a.number,currentPage:v.a.number,pageLabels:v.a.array,selectedPageIndexes:v.a.array,isThumbnailMultiselectEnabled:v.a.bool,isReaderModeOrReadOnly:v.a.bool,dispatch:v.a.func,actions:v.a.object,isMobile:v.a.func,canLoad:v.a.bool,onCancel:v.a.func,isThumbnailSelectingPages:v.a.bool,thumbnailSelectionMode:v.a.string,activeDocumentViewerKey:v.a.number,panelSelector:v.a.string,parentKeyListener:v.a.func,isRightToLeft:v.a.bool};var U=H;function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var K=a.a.forwardRef((function(e,t){var n=G(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getPageLabels(e),p.a.getSelectedThumbnailPageIndexes(e),p.a.isThumbnailMultiselectEnabled(e),p.a.isReaderMode(e),p.a.isDocumentReadOnly(e),p.a.getShiftKeyThumbnailPivotIndex(e),p.a.isThumbnailSelectingPages(e),p.a.getThumbnailSelectionMode(e),p.a.getActiveDocumentViewerKey(e)]}),l.c),11),o=n[0],r=n[1],i=n[2],c=n[3],s=n[4],u=n[5],d=n[6],m=n[7],b=n[8],g=n[9],v=n[10],y=Object(l.d)();return a.a.createElement(U,W({},e,{ref:t,currentPage:o,pageLabels:r,selectedPageIndexes:i,isThumbnailMultiselectEnabled:c,isReaderModeOrReadOnly:s||u,dispatch:y,actions:h.a,isMobile:f.k,shiftKeyThumbnailPivotIndex:d,isThumbnailSelectingPages:m,thumbnailSelectionMode:b,selectionModes:v,activeDocumentViewerKey:g}))}));K.displayName="ThumbnailRedux";var $=K,Y=(n(142),n(115),n(411)),Z=n(32);n(1598);function X(e){var t=e.moveToTop,n=e.moveToBottom;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"moveToTop",img:"icon-page-move-up",onClick:t,title:"action.moveToTop"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"moveToBottom",img:"icon-page-move-down",onClick:n,title:"action.moveToBottom"}))}X.propTypes={moveToTop:v.a.func,moveToBottom:v.a.func};var Q=X;function J(e){var t=e.onInsert,n=e.onReplace,o=e.onExtractPages,r=e.onDeletePages;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlInsert",img:"icon-page-insertion-insert",onClick:t,title:"action.insert"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlReplace",img:"icon-page-replacement",onClick:n,title:"action.replace"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlExtract",img:"icon-page-manipulation-extract",onClick:o,title:"action.extract"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlDelete",img:"icon-delete-line",onClick:r,title:"action.delete"}))}J.propTypes={onInsert:v.a.func,onReplace:v.a.func,onExtractPages:v.a.func,onDeletePages:v.a.func};var ee=J;function te(e){var t=e.onRotateClockwise,n=e.onRotateCounterClockwise;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlRotateCounterClockwise",img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:n,title:"action.rotateCounterClockwise"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlRotateClockwise",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:t,title:"action.rotateClockwise"}))}te.propTypes={onRotateClockwise:v.a.func,onRotateCounterClockwise:v.a.func};var ne=te,oe=n(177);function re(){return(re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function ie(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"==typeof e)return ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(e,t):void 0}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function se(e){var t,n=e.parentElement,o=Object(l.f)(),r=Object(l.d)(),c=Object(f.k)(),s=Object(l.e)(p.a.getSelectedThumbnailPageIndexes),u=Object(l.e)((function(e){return n&&"leftPanel"!==n?p.a.getPanelWidth(e,n):p.a.getLeftPanelWidth(e)})),d=Object(l.e)(p.a.pageDeletionConfirmationModalEnabled),m=Object(l.e)(p.a.isInDesktopOnlyMode),g=Object(l.e)(p.a.getMultiPageManipulationControlsItems,l.c),v=ae(Object(i.useState)(!1),2),S=v[0],E=v[1],C=Object(i.useMemo)((function(){return s.map((function(e){return e+1}))}),[s]),T=Object(i.useMemo)((function(){return{onReplace:function(){return!Object(y.k)(C,r)&&Object(y.m)(r)},onExtractPages:function(){return!Object(y.k)(C,r)&&Object(y.e)(C,r)},onDeletePages:function(){return!Object(y.k)(C,r)&&Object(y.b)(C,r,d)},onRotateCounterClockwise:function(){return!Object(y.k)(C,r)&&Object(y.p)(C)},onRotateClockwise:function(){return!Object(y.k)(C,r)&&Object(y.o)(C)},onInsert:function(){return!Object(y.k)(C,r)&&(r(h.a.closeElement(x.a.PAGE_MANIPULATION_OVERLAY)),void r(h.a.openElement("insertPageModal")))},moveToTop:function(){return!Object(y.k)(C,r)&&Object(y.j)(C)},moveToBottom:function(){return!Object(y.k)(C,r)&&Object(y.i)(C)},pageNumbers:C}}),[C,d]),A=T.onRotateClockwise,_=T.onRotateCounterClockwise,j=b.a.getDocument(),P=null==j?void 0:j.type,N=P===k.a.XOD,I=P===k.a.OFFICE||P===k.a.LEGACY_OFFICE;if(!m&&c)try{t=Object(R.a)().querySelector(".App").getBoundingClientRect().width-88}catch(e){t=(u||Z.d)-88}else t=(u||Z.d)-88;var q=t<190,L=t>290;Object(i.useEffect)((function(){var e,t=[];e=q?1:L?3:2;var n=0;g.forEach((function(r){var i=!1;(n<e||0===t.length&&"divider"===(null==r?void 0:r.type))&&(i=!0),r&&"divider"!==r.type&&n++,!i&&t.push.apply(t,ie(function(e){return"leftPanelPageTabsRotate"===e.dataElement?Object(oe.e)(o,!0):"leftPanelPageTabsMove"===e.dataElement?Object(oe.a)(o,!0):"leftPanelPageTabsMore"===e.dataElement?Object(oe.c)(o,!0):"customPageOperation"===e.type?Object(oe.b)(o,e):"divider"===e.type?["divider"]:void 0}(r)))}));var i={dataElement:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,className:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,items:t};L&&r(h.a.closeElement(i.dataElement)),i.items.length?(r(h.a.updateFlyout(i.dataElement,i)),E(!0)):(r(h.a.removeFlyout(i.dataElement)),E(!1))}),[o,L,q,g]);var M=Object(i.useMemo)((function(){var e=!1,t=0;return g.map((function(n,o){var r;return r=q?0:L?2:1,"divider"!==(null==n?void 0:n.type)||e?t>r?null:(n&&"divider"!==n.type&&t++,"leftPanelPageTabsRotate"===n.dataElement?a.a.createElement(ne,re({},T,{key:"leftPanelPageTabsRotate"})):"leftPanelPageTabsMove"===n.dataElement?a.a.createElement(Q,re({},T,{key:"leftPanelPageTabsMove"})):"leftPanelPageTabsMore"===n.dataElement?a.a.createElement(ee,re({},T,{key:"leftPanelPageTabsMore"})):"customPageOperation"===n.type?n.operations?n.operations.map((function(e){return a.a.createElement(w.a,{key:e.dataElement,className:"button-hover",dataElement:e.dataElement,img:e.img,onClick:function(){return e.onClick(C)},title:e.title})})):(t--,null):null):(t>r&&(e=!0),a.a.createElement("div",{key:"divider".concat(o),className:"divider"}))}))}),[g,T,q,L]);return N||I||null!=j&&j.isWebViewerServerDocument()?a.a.createElement("div",{className:"PageControlContainer root small"},a.a.createElement(ne,{onRotateClockwise:A,onRotateCounterClockwise:_})):a.a.createElement("div",{className:"PageControlContainer root"},M,S&&a.a.createElement("div",{className:"dropdown-menu"},a.a.createElement(O.a,{dataElement:"".concat(x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,"Button"),toggleElement:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,title:"action.more",img:"icon-tool-more"}),a.a.createElement("div",{className:"indicator"})))}se.propTypes={parentElement:v.a.string};var ue=se;n(1744);function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function pe(e,t){for(var n="",o=e.sort((function(e,t){return e-t})),r=null,i=0;o.length>i;i++)o[i+1]===o[i]+1?r=null!==r?r:o[i]:null!==r?(n="".concat(n).concat(t[r],"-").concat(t[o[i]],", "),r=null):n="".concat(n).concat(t[o[i]],", ");return n.slice(0,-2)}var he=function(e){var t=e.shouldShowControls,n=e.parentElement,o=de(Object(E.a)(),1)[0],r=Object(l.d)(),c=de(Object(l.e)((function(e){return[p.a.getSelectedThumbnailPageIndexes(e),p.a.isElementDisabled(e,"documentControl"),p.a.getPageLabels(e),p.a.isThumbnailSelectingPages(e),p.a.getFeatureFlags(e)]})),5),s=c[0],u=c[1],d=c[2],f=c[3],m=c[4],g=pe(s,d),v=de(Object(i.useState)(g),2),y=v[0],x=v[1],O=de(Object(i.useState)(g),2),S=O[0],k=O[1],C=m.customizableUI;Object(i.useEffect)((function(){x(pe(s,d))}),[x,s,t,d]);var T=function(){r(h.a.setThumbnailSelectingPages(!0))};return u?null:a.a.createElement("div",{className:"documentControlsContainer","data-element":"documentControl"},t?a.a.createElement("div",{className:"documentControls"},a.a.createElement("div",{className:"divider"}),f&&a.a.createElement(ue,{parentElement:n}),C&&a.a.createElement("label",{className:"documentControlsLabel",htmlFor:"pageNumbersInput"},a.a.createElement("span",null,o("option.thumbnailPanel.multiSelectPages")," -"),a.a.createElement("span",{className:"multiSelectExampleLabel"},o("option.thumbnailPanel.multiSelectPagesExample"))),a.a.createElement("div",{className:"documentControlsInput"},a.a.createElement("input",{name:"pageNumbersInput",onBlur:function(e){var t=e.target.value.replace(/ /g,""),n=t?Object(Y.a)(t,d):[],o=n.map((function(e){return e-1}));if(n.length||!t){r(h.a.setSelectedPageThumbnails(o));var i=pe(s,d);x(i),k(i)}else x(S);s.length>0&&!f&&setTimeout((function(){y!==S&&T()}),100)},onChange:function(e){x(e.target.value)},value:y,placeholder:C?"":"1, 3, 5-10","aria-label":o("option.thumbnailPanel.enterPageNumbers"),className:"pagesInput",type:"text"}),a.a.createElement("div",{className:"documentControlsButton"},f?a.a.createElement(w.a,{img:"icon-close",title:"option.documentControls.closeTooltip",onClick:function(){r(h.a.setSelectedPageThumbnails([b.a.getCurrentPage()-1])),r(h.a.setThumbnailSelectingPages(!1))},dataElement:"thumbCloseMultiSelect"}):a.a.createElement(w.a,{img:"icon-tool-select-pages",title:"option.documentControls.selectTooltip",onClick:T,dataElement:"thumbMultiSelect"})))):null)};he.propTypes={isDisabled:v.a.bool,pageLabels:v.a.arrayOf(v.a.string),toggleDocumentControl:v.a.func,shouldShowControls:v.a.bool};var me=he,be=n(318),ge=n(292),ve=n(66),ye=n(54),we=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o){return o(h.a.openElement(x.a.LOADING_MODAL)),new Promise((function(r,i){b.a.mergeDocument(e,t).then((function(e){o(h.a.closeElement(x.a.LOADING_MODAL)),b.a.setCurrentPage(t),n&&Object(ve.a)(ye.a.DOCUMENT_MERGED,e),r(e)})).catch((function(e){i(e),o(h.a.closeElement(x.a.LOADING_MODAL))}))}))}},xe=(n(1746),n(33));function Oe(e){return(Oe="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 Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Oe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ae=function(e){var t=e.panelSelector,n=e.parentDataElement,o=Object(l.e)((function(e){return p.a.isElementOpen(e,"leftPanel")})),u=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsPanel")})),m=Object(l.e)(p.a.getTotalPages),g=Object(l.e)(p.a.getCurrentPage),v=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}),l.c),y=Object(l.e)(p.a.getIsThumbnailMergingEnabled),O=Object(l.e)(p.a.getIsThumbnailReorderingEnabled),S=Object(l.e)(p.a.getIsMultipleViewerMerging),k=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailControl")})),C=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsSizeSlider")})),T=Object(l.e)(p.a.isReaderMode),A=Object(l.e)(p.a.isDocumentReadOnly),_=Object(l.e)((function(e){return p.a.getTotalPages(e,2)})),j=Object(l.e)(p.a.getActiveDocumentViewerKey),P=Object(l.e)(p.a.openingPageManipulationOverlayByRightClickEnabled),N=Object(l.e)(p.a.getFeatureFlags,l.c),I=Object(l.e)(p.a.isContentEditingEnabled),q=Ce(Object(E.a)(),1)[0],L="rtl"===xe.a.dir(),M=Object(i.useRef)(),D=Object(i.useRef)([]),z=Object(i.useRef)([]),B=Object(i.useRef)(null),F=Ce(Object(i.useState)(!1),2),H=F[0],U=F[1],W=Ce(Object(i.useState)(!0),2),G=W[0],V=W[1],K=Ce(Object(i.useState)(0),2),Y=K[0],Z=K[1],X=Ce(Object(i.useState)(0),2),Q=X[0],J=X[1],ee=Ce(Object(i.useState)(null),2),te=ee[0],ne=ee[1],oe=Ce(Object(i.useState)(!1),2),re=oe[0],ie=oe[1],ae=Ce(Object(i.useState)(1),2),le=ae[0],ce=ae[1],se=Ce(Object(i.useState)(!1),2),ue=se[0],de=se[1],fe=Ce(Object(i.useState)(0),2),pe=fe[0],he=fe[1],Oe=Object(i.useRef)([]),Se=Object(i.useRef)([]),Ee=Object(i.useRef)(null),Te=Ce(Object(i.useState)(150),2),Ae=Te[0],_e=Te[1],je=Ce(Object(i.useState)(0),2),Pe=je[0],Ne=je[1],Ie=Ce(Object(i.useState)(0),2),Re=Ie[0],qe=Ie[1],Le=2===j?_:m,Me=null==N?void 0:N.customizableUI,De=Object(l.d)(),ze={};Object(i.useEffect)((function(){var e=function(e){Ee.current&&!Ee.current.contains(e.target)&&Ue(Ee.current)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var Be=Object(i.useCallback)((function(e,t,n){var o;e.stopPropagation();var r={ArrowLeft:function(){return Ge(e,t,-1)},ArrowRight:function(){return Ge(e,t,1)},ArrowUp:function(){return Ge(e,t,-n)},ArrowDown:function(){return Ge(e,t,n)}},i={Enter:function(){return Ve(e,t)},Tab:function(){return We(t)}};r[e.key]&&(o=r[e.key]()),i[e.key]&&i[e.key](),void 0!==o&&o!==t&&(he(o),Fe(Oe.current[o]),He(Oe.current[t]))}),[Se,Oe]),Fe=function(e){e.tabIndex=0,e.ariaCurrent="page",e.style.outline="var(--focus-visible-outline)",e.focus(),Ee.current=e},He=function(e){e.tabIndex=-1,e.ariaCurrent=void 0,Ue(e)},Ue=function(e){e.style.outline="none"},We=function(e){Ue(Oe.current[e])},Ge=function(e,t,n){var o=t+n;return o<0||o>=Le?t:o},Ve=function(e,t){e.preventDefault(),Fe(Oe.current[t]),b.a.setCurrentPage(t+1),Se.current[t].focusInput()},Ke=Object(i.useCallback)((function(e,t){e.stopPropagation();var n,o={Tab:function(){return Ye(e,t)},Escape:function(){return $e(e,t)}};o[e.key]&&(null===(n=o[e.key])||void 0===n||n.call(o))}),[Oe]),$e=function(e,t){e.preventDefault(),Fe(Oe.current[t])},Ye=function(e,t){var n=t+(e.shiftKey?-1:1);(n<0||n>=Le)&&(n=t),he(n),Fe(Oe.current[n]),n!==t&&He(Oe.current[t])},Ze=function(e){var t=z.current&&z.current[e]&&z.current[e].element;if(t){var n=e+1,o=b.a.getPageWidth(n),i=function(e,t){var n,o,r;return e>t?(r=e/Ae,n=Ae,o=Math.round(t/r)):(r=t/Ae,n=Math.round(e/r),o=Ae),{width:n,height:o}}(o,b.a.getPageHeight(n)),a=i.width,l=i.height,c=t.querySelector(".annotation-image")||document.createElement("canvas");c.className="annotation-image ".concat(L?"right-to-left":""),c.role="img",c.ariaLabel="".concat(q("action.page")," ").concat(n),c.style.maxWidth="".concat(Ae,"px"),c.style.maxHeight="".concat(Ae,"px");var s=c.getContext("2d"),u=1,d=b.a.getCompleteRotation(n);d<0&&(d+=4);var f=window.Core.getCanvasMultiplier();d%2==0?(c.width=a,c.height=l,u=c.width/o,u/=f):(c.width=l,c.height=a,u=c.height/o,u/=f),t.appendChild(c),b.a.setAnnotationCanvasTransform(s,u,d);var p={pageNumber:n,overrideCanvas:c},h=t.querySelector(".page-image");if(h)p=ke(ke({},p),{},{overridePageRotation:d,overridePageCanvas:h}),ze[n]||(ze[n]=r()(b.a.drawAnnotations,112)),(0,ze[n])(p)}};if(Object(i.useEffect)((function(){var e=function(){V(!1)},t=function(e){e||V(!0)},n=function(){var e;"officeEditor"===(null===(e=b.a.getDocument())||void 0===e?void 0:e.getType())?U(!0):U(!1),ze={},De(h.a.setSelectedPageThumbnails([]))},o=function(){B.current&&(b.a.setCurrentPage(B.current),B.current=null)};return b.a.addEventListener("beginRendering",e),b.a.addEventListener("finishedRendering",t),b.a.addEventListener("documentLoaded",n),b.a.addEventListener("pageComplete",o),b.a.getDocument()&&n(),function(){b.a.removeEventListener("beginRendering",e),b.a.removeEventListener("finishedRendering",t),b.a.removeEventListener("documentLoaded",n),b.a.removeEventListener("pageComplete",o)}}),[]),Object(i.useEffect)((function(){var e=function(e){if(e){var t=Array.from(v);e.removed&&(t=t.filter((function(t){return-1===e.removed.indexOf(t+1)}))),e.moved&&(t=t.map((function(t){return e.moved[t+1]?e.moved[t+1]-1:t})));var n=e.added&&e.added[0]-1<=t[0];1===t.length&&n&&(t=e.added.map((function(e){return e-1}))),De(h.a.setSelectedPageThumbnails(t))}};return b.a.addEventListener("pagesUpdated",e),function(){return b.a.removeEventListener("pagesUpdated",e)}}),[v]),Object(i.useEffect)((function(){var e;null===(e=M.current)||void 0===e||e.scrollToRow(Math.floor((g-1)/le));var t=function(e){var t=[];e.forEach((function(e){var n=e.PageNumber-1;!e.Listable||t.indexOf(n)>-1||(t.push(n),Ze(n))}))},n=function(e){var t,n=e-1;null===(t=M.current)||void 0===t||t.scrollToRow(Math.floor(n/le))};return b.a.addEventListener("pageNumberUpdated",n),b.a.addEventListener("annotationChanged",t),b.a.addEventListener("annotationHidden",t),function(){b.a.removeEventListener("pageNumberUpdated",n),b.a.removeEventListener("annotationChanged",t),b.a.removeEventListener("annotationHidden",t)}}),[Ae,le]),Object(i.useEffect)((function(){(T||A)&&(De(h.a.setSelectedPageThumbnails([])),De(h.a.setThumbnailSelectingPages(!1)))}),[T,A]),u||H||!o&&!t&&!Me)return null;var Xe=function(){de(!1),ne(null)},Qe=function(e,t,n){var o,r=(new Date).getTime();return e<Le-1&&e>0&&r-Pe>=n?(null===(o=M.current)||void 0===o||o.scrollToRow(Math.floor((e+t)/le)),Ne(r),e+t):e},Je=function(e,t){if(e.preventDefault(),e.stopPropagation(),O||y){var n=e.target.getBoundingClientRect();ie(le>1?!(e.pageX>n.x+n.width/2):!(e.pageY>n.y+n.height/2)),ne(t);var o=Object(R.a)().querySelector("#virtualized-thumbnails-container").getBoundingClientRect(),r=o.y,i=o.bottom;e.pageY<r+100?qe(Qe(t,-1,400)):e.pageY>i-100&&qe(Qe(t,1,400))}},et=function(){qe(Qe(Re,1,200))},tt=function(){qe(Qe(Re,-1,200))},nt=function(){return window.isApryseWebViewerWebComponent?Object(R.a)().host.id:window.frameElement.id},ot=function(e,t){qe(t),de(!0);var n,o=v.some((function(e){return e===t})),r=o?v.map((function(e){return e+1})):[t+1];Object(ve.a)(ye.a.THUMBNAIL_DRAGGED),e.dataTransfer.setData("text",""),r.length>1&&e.dataTransfer.setDragImage(new Image,0,0),y&&S&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="all",e.dataTransfer.setData("dataTransferWebViewerFrame",nt()),n=r,window.extractedDataPromise=Object(ge.a)(n),window.pagesExtracted=n),o||De(h.a.setSelectedPageThumbnails([t])),b.a.setCurrentPage(t+1)},rt=function(e){e.preventDefault();var t,n=e.dataTransfer.files,o=re?te+1:te+2;f.f||(t=e.dataTransfer.getData("dataTransferWebViewerFrame"));var r,i,a=t&&nt()!==t||n.length,l=g-1;if(y&&a)t&&nt()!==t?De((r=t,i=o,function(e){return new Promise((function(t,n){var o=window.parent.document.querySelector("#".concat(r));o||(console.warn("Could not find other instance of WebViewer"),n());var a=o.contentWindow;window.isApryseWebViewerWebComponent&&(a=window);var l=a.extractedDataPromise;l||(console.warn("Could not retrieve data from other instance of WebViewer"),n()),e(h.a.openElement(x.a.LOADING_MODAL)),l.then((function(n){e(we(n,i,!1)).then((function(n){var o=n.filename,r=n.pages;Object(ve.a)(ye.a.DOCUMENT_MERGED,{filename:o,pages:a.pagesExtracted}),e(h.a.closeElement(x.a.LOADING_MODAL)),t({filename:o,pages:r})}))})).catch((function(t){e(h.a.closeElement(x.a.LOADING_MODAL)),n(t)}))}))})):n.length&&Array.from(n).forEach((function(e){De(we(e,o))}));else if(O&&!a&&null!==te){var c=re?te+1:te+2,s=v.some((function(e){return e===l}))?v.map((function(e){return e+1})):[g];B.current=c-s.filter((function(e){return e<c})).length,b.a.movePages(s,c);for(var u=[],d=0;d<s.length;d++)u.push(B.current+d);Object(ve.a)(ye.a.THUMBNAIL_DROPPED,{pageNumbersBeforeMove:s,pagesNumbersAfterMove:u,numberOfPagesMoved:u.length})}ne(null),de(!1)},it=function(e,t,n){lt(e)||ct(e)||(z.current[e]={element:t,loaded:!1},D.current.push({pageIndex:e,id:n}))},at=function(e){var t=ut(e);-1!==t&&D.current.splice(t,1)},lt=function(e){var t;return null===(t=z.current[e])||void 0===t?void 0:t.loaded},ct=function(e){return-1!==ut(e)},st=function(e){var t=ut(e);-1!==t&&(b.a.cancelLoadThumbnail(D.current[t].id),D.current.splice(t,1))},ut=function(e){return D.current.findIndex((function(t){return t.pageIndex===e}))},dt=function(e){var t,n;st(e);var o=null===(t=z.current[e])||void 0===t||null===(n=t.element)||void 0===n?void 0:n.querySelectorAll("canvas");null!=o&&o.length&&o.forEach((function(e){e.height=0,e.width=0})),ze[e]&&ze[e].cancel(),z.current[e]=null},ft=function(e){var n=e.index,o=e.key,r=e.style,i=d()({columnsOfThumbnails:le>1,row:!0}),l=!(T||A);return a.a.createElement("div",{role:"row","aria-label":"row",className:i,key:o,style:r},new Array(le).fill().map((function(e,o){var r=n*le+o,i=l&&(y||O),c=i&&te===r;return r<Le?a.a.createElement(a.a.Fragment,{key:r},(le>1||0===r)&&c&&re&&a.a.createElement("div",{key:"placeholder1-".concat(r),className:"thumbnailPlaceholder"}),a.a.createElement("td",{ref:function(e){return Oe.current[r]=e},key:r,role:"gridcell",tabIndex:pe===r?0:-1,"aria-current":pe===r?"page":void 0,onDragEnd:Xe,className:"cellThumbContainer",onKeyDown:function(e){return Be(e,r,le)},onContextMenu:function(e){return P&&(n=r,(t=e).preventDefault(),b.a.setCurrentPage(n+1),v.includes(n)||De(h.a.setSelectedPageThumbnails([n])),void(T||A||I||(De(h.a.setFlyoutPosition({x:t.pageX,y:t.pageY})),De(h.a.openElements([x.a.PAGE_MANIPULATION])))));var t,n},onFocus:function(e){return function(e,t){Oe.current&&Oe.current.includes(e.target)&&Fe(Oe.current[t])}(e,r)}},a.a.createElement($,{ref:function(e){return Se.current[r]=e},isDraggable:i,isSelected:v.includes(r),index:r,canLoad:G,onLoad:it,onCancel:st,onRemove:dt,onDragStart:ot,onDragOver:Je,onFinishLoading:at,updateAnnotations:Ze,shouldShowControls:l,thumbnailSize:Ae,panelSelector:t,parentKeyListener:function(e){return Ke(e,r)},isRightToLeft:L})),c&&!re&&a.a.createElement("div",{key:"placeholder2-".concat(r),className:"thumbnailPlaceholder"})):null})))},pt=function(){ce(Math.min(16,Math.max(1,Math.floor(Q/Ae))))},ht=k?Number(Ae)+50:Number(Ae)+80,mt=!(T||A||I),bt={height:"".concat(25,"px")},gt=function(e,t){var n="1000"*Number(t);n<100&&(n=100),_e(n),pt()};return a.a.createElement(a.a.Fragment,null,!C&&a.a.createElement("div",{"data-element":"thumbnailsSizeSlider",className:"thumbnail-slider-container"},a.a.createElement(w.a,{img:"icon-zoom-thumb-out",title:"action.zoomOut",hideTooltipShortcut:!0,onClick:function(){Ae-"50">"50"&&(_e(Ae-"50"),pt())},dataElement:"zoomThumbOutButton"}),Me&&a.a.createElement(be.a,{dataElement:"thumbnailsSizeSlider",property:"zoom",displayProperty:"zoom",min:0,max:1,step:.01,value:Ae/1e3,getDisplayValue:function(){return Ae},onSliderChange:gt,onStyleChange:gt,shouldHideSliderTitle:!0,shouldHideSliderValue:!0}),!Me&&a.a.createElement("input",{role:"slider",type:"range","aria-label":"thumbnail size slider",min:"100",max:"1000",value:Ae,"aria-valuemin":"100","aria-valuemax":"1000","aria-valuenow":Ae,onChange:function(e){_e(Number(e.target.value)),pt()},step:"50",className:"thumbnail-slider",id:"thumbnailSize"}),a.a.createElement(w.a,{img:"icon-zoom-thumb-in",title:"action.zoomIn",hideTooltipShortcut:!0,onClick:function(){Ae+Number("50")<1001&&(_e(Ae+Number("50")),pt())},dataElement:"zoomThumbInButton"})),a.a.createElement(s.a,{bounds:!0,onResize:function(e){var t=e.bounds;Z(t.height),J(t.width),ce(Math.min(16,Math.max(1,Math.floor(t.width/Ae))))},key:Ae},(function(e){var n=e.measureRef;return a.a.createElement("div",{className:"Panel ThumbnailsPanel ".concat(t),id:"virtualized-thumbnails-container","data-element":"thumbnailsPanel",onDrop:rt,ref:n},a.a.createElement("div",{className:"virtualized-thumbnails-container"},ue?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:tt,style:bt}):"",a.a.createElement(c.c,{ref:M,height:Y,width:Q,rowHeight:ht,rowCount:Math.ceil(Le/le),rowRenderer:ft,overscanRowCount:3,className:d()({thumbnailsList:!0,"right-to-left":L}),scrollToIndex:Math.floor((g-1)/le),role:"grid","aria-label":q("component.thumbnailsPanel"),tabIndex:-1}),ue?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:et,style:ke(ke({},bt),{},{bottom:"70px"})}):""))})),a.a.createElement(me,{shouldShowControls:mt,parentElement:n||t}))};t.default=Ae},1778:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(34),n(81),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(26),n(16),n(28),n(59),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(1),a=(n(38),n(125),n(50),n(76),n(99),n(129),n(91),n(62),n(94),n(15)),l=n.n(a),c=n(6),s=n(305),u=n(2),d=n.n(u),f=n(206),p=n(1654);function h(e){return(h="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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var w={notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired,selectedIndex:d.a.number,sortStrategy:d.a.string},x=new p.b({defaultHeight:50,fixedWidth:!0}),O=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,c=e.selectedIndex,s=e.sortStrategy,u=Object(o.useRef)(),d=v(Object(o.useState)(0),2),h=d[0],m=d[1],g=v(Object(o.useState)({width:0,height:0}),2),y=g[0],w=g[1],O=window.innerHeight;Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){u.current.scrollToPosition(e)},scrollToRow:function(e){u.current.scrollToRow(e)}}})),Object(o.useEffect)((function(){u.current.scrollToPosition(l)}),[l]),Object(o.useEffect)((function(){var e,t;(x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),-1!==c)&&(null===(t=u.current)||void 0===t||t.scrollToRow(c))}),[c]),Object(o.useEffect)((function(){var e,t;x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),null==u||null===(t=u.current)||void 0===t||t.forceUpdateGrid()}),[n.length,s]),Object(o.useEffect)((function(){var e=function(){var e=window.innerHeight-O;e&&(window.innerHeight<O&&m(e),O=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var S=function(e){var t=e.scrollTop;a(t)},k=function(e){var t=e.index,o=e.key,a=e.parent,l=e.style,c=n[t];return r.a.createElement(p.a,{key:"".concat(o).concat(c.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var o=e.measure;return r.a.createElement("div",{style:b(b({},l),{},{paddingRight:"12px"})},i(n,t,(function(){!function(e){var t;x.clear(e),null===(t=u.current)||void 0===t||t.recomputeRowHeights(e)}(t),o()})))}))};return r.a.createElement(f.a,{bounds:!0,offset:!0,onResize:function(e){var t=e.bounds;w(b(b({},t),{},{height:t.height+2*h})),m(0)}},(function(e){var t=e.measureRef;return r.a.createElement("div",{ref:t,className:"virtualized-notes-container"},r.a.createElement(p.c,{deferredMeasurementCache:x,style:{outline:"none"},height:y.height-h,width:y.width,overscanRowCount:10,ref:u,rowCount:n.length,rowHeight:x.rowHeight,rowRenderer:k,onScroll:S,"aria-label":"presentation",role:"presentation"}))}))}));O.displayName="VirtualizedList",O.propTypes=w;var S=O,k=(n(44),{notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired}),E=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,c=Object(o.useRef)();Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){c.current.scrollTop=e},scrollToRow:function(e){var t=c.current,n=t.children[e];if(n){var o=t.getBoundingClientRect(),r=n.getBoundingClientRect();r.top>=o.top&&r.top<=o.top+t.clientHeight||(t.scrollTop=r.top+t.scrollTop-o.top)}}}})),Object(o.useEffect)((function(){c.current.scrollTop=l}),[l]);return r.a.createElement("div",{ref:c,className:"normal-notes-container",onScroll:function(e){a(e.target.scrollTop)},role:"list"},n.map((function(e,t){return r.a.createElement(r.a.Fragment,{key:"".concat(t,"_").concat(e.Id)},i(n,t))})))}));E.displayName="NormalList",E.propTypes=k;var C=E,T=n(1709),A=n(51),_=n(1571),j=n(1637),P=(n(132),n(41)),N=(n(153),n(1599)),I=n(372),R=n(1596),q=n(4);n(1748);function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=L(Object(c.e)((function(e){var t;return[q.a.getIsMentionEnabled(e),q.a.getActiveDocumentViewerKey(e),null===(t=q.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),c.c),3),d=u[0],f=u[1],p=u[2],h=L(Object(o.useState)(""),2),m=h[0],b=h[1],g=L(Object(s.a)(),1)[0],v=Object(o.useRef)();Object(o.useEffect)((function(){v.current.focus()}),[]);var y=l()({"reply-area":!0});return r.a.createElement("div",{className:l()({"reply-area-multi-container":!0,"modular-ui":p})},r.a.createElement("div",{className:"reply-area-multi-header"},r.a.createElement("div",{className:"title"},g("action.multiReplyAnnotations",{count:t.length})),r.a.createElement(P.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),r.a.createElement("form",{onSubmit:function(e){e.preventDefault();var o=v.current.getEditor(),r=I.a.getFormattedTextFromDeltas(o.getContents());r.trim()&&(t.forEach((function(e){if(d){var t=I.a.createMentionReply(e,r);i.a.addAnnotations([t],f),Object(R.a)(o,t)}else{var n=i.a.createAnnotationReply(e,r,f);Object(R.a)(o,n)}})),n())}},r.a.createElement("div",{className:y,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(N.a,{ref:function(e){v.current=e},value:m,onChange:function(e){return function(e){b(e)}(e)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(P.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(245),B=n(119),F=n(23);var H=function(e){var t=Object(o.useRef)(null);return Object(o.useEffect)((function(){var n,o,r=document.querySelector("#".concat(e)),i=r||function(e){var t=document.createElement("div");return t.setAttribute("id",e),t}(e);return r||(n=i,(o=window.isApryseWebViewerWebComponent?Object(F.a)():document.body).insertBefore(n,o.lastElementChild.nextElementSibling)),i.appendChild(t.current),function(){t.current.remove(),i.childElementCount||i.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current},U=function(e){var t=e.id,n=e.position,o=e.children,r=H(t);return r.style.position="absolute",r.style.top="auto"===n.top?n.top:"".concat(n.top,"px"),r.style.left="auto"===n.left?n.left:"".concat(n.left,"px"),r.style.right="auto"===n.right?n.right:"".concat(n.right,"px"),r.style.pointerEvents="none",r.style.zIndex=999,Object(B.createPortal)(o,r)},W=n(1712),G=n(144),V=n(412),K=n(216),$=n(3),Y=n(53);n(1750);function Z(e){return(Z="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 X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Z(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(c.d)(),s=Object(o.useRef)(),u=ee(Object(o.useState)([]),2),d=u[0],f=u[1],p=ee(Object(o.useState)({left:"auto",right:"auto",top:"auto"}),2),h=p[0],m=p[1];Object(G.a)(s,(function(e){var t=document.querySelector("[data-element=".concat(n,"]")).contains(e.target),o=Object(K.d)(),r=Object(K.c)(),i=Object(K.b)();t||o||r||i||a()}));var b={};t.forEach((function(e){b=Q(Q({},b),Object(V.a)(e))}));var g=t.find((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&(e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText||e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout)})),v={};if(g){var y,w,x,O,S,k,E,C,T,A,_,j=g.getRichTextStyle();v={Font:g.Font,FontSize:g.FontSize,TextAlign:g.TextAlign,TextVerticalAlign:g.TextVerticalAlign,bold:"bold"===(null!==(y=null==j||null===(w=j[0])||void 0===w?void 0:w["font-weight"])&&void 0!==y?y:""),italic:"italic"===(null!==(x=null==j||null===(O=j[0])||void 0===O?void 0:O["font-style"])&&void 0!==x?x:""),underline:(null==j||null===(S=j[0])||void 0===S||null===(k=S["text-decoration"])||void 0===k?void 0:k.includes("underline"))||(null==j||null===(E=j[0])||void 0===E||null===(C=E["text-decoration"])||void 0===C?void 0:C.includes("word")),strikeout:null!==(T=null==j||null===(A=j[0])||void 0===A||null===(_=A["text-decoration"])||void 0===_?void 0:_.includes("line-through"))&&void 0!==T&&T}}Object(o.useEffect)((function(){var e=[];if(b.TextColor&&e.push(Y.b.TEXT_COLOR),b.StrokeColor&&e.push(Y.b.STROKE_COLOR),b.FillColor&&e.push(Y.b.FILL_COLOR),Object(Y.l)("MultiStyle",e,e[0])){var t=Object(Y.d)("currentStyleTab","iconColor");l($.a.setColorMap(t));var n=Object(Y.e)("MultiStyle").styleTabs;f(n)}}),[t]);return 0===d.length?null:r.a.createElement(U,{id:"multi-style-popup-portal",position:h},r.a.createElement("div",{className:"multi-style-container",ref:s},r.a.createElement(W.a,{annotations:t,style:b,isOpen:!0,onResize:function(){var e=Object(z.a)(n,s);m(e)},isFreeText:!!g,colorMapKey:"MultiStyle",properties:v,isRedaction:!1,isMeasure:!1,showLineStyleOptions:!1,hideSnapModeCheckbox:!1})))};ne.propTypes={annotations:d.a.array.isRequired,triggerElementName:d.a.string.isRequired,onClose:d.a.func};var oe=ne,re=n(1638),ie=n(96),ae=n(1635),le=n(5);n(1752);function ce(e){return(ce="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 se(){return(se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ce(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var me={showMultiReply:d.a.bool.isRequired,setShowMultiReply:d.a.func.isRequired,setShowMultiState:d.a.func.isRequired,showMultiStyle:d.a.bool.isRequired,setShowMultiStyle:d.a.func.isRequired,setMultiSelectMode:d.a.func.isRequired,isMultiSelectedMap:d.a.object.isRequired,setIsMultiSelectedMap:d.a.func.isRequired,multiSelectedAnnotations:d.a.array.isRequired},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new Set;return e.forEach((function(e){if(e.isGrouped()){var o=i.a.getAnnotationById(e.InReplyTo,t);o&&n.add(o)}else n.add(e)})),Array.from(n)},ge=function(e){var t=e.showMultiReply,n=e.setShowMultiReply,a=e.setShowMultiState,l=e.showMultiStyle,u=e.setShowMultiStyle,d=e.setMultiSelectMode,f=e.isMultiSelectedMap,p=e.setIsMultiSelectedMap,h=e.multiSelectedAnnotations,m=pe(Object(o.useState)([]),2),b=m[0],g=m[1],v=Object(c.d)(),y=pe(Object(s.a)(),1)[0],w=Object(c.e)(q.a.getActiveDocumentViewerKey),x=Object(c.e)(q.a.isDocumentReadOnly),O=Object(c.e)(q.a.getIsCustomUIEnabled);Object(o.useEffect)((function(){var e=function(e){var n=de({},f);return e.forEach((function(e){t(e,n)})),n},t=function(e,t){var n=i.a.getGroupAnnotations(e,w);n.some((function(e){return f[e.Id]}))&&n.forEach((function(e){t[e.Id]=e}))},n=function(e){var t=Object.keys(f),n=Object.keys(e);return t.some((function(e){return!n.includes(e)}))},o=function(t,o){"delete"===o?function(e){var t=de({},f);e.forEach((function(e){delete t[e.Id]})),p(t)}(t):"modify"===o&&function(t){var o=e(t);n(o)&&p(o)}(t)};return i.a.addEventListener("annotationChanged",o,void 0,w),function(){i.a.removeEventListener("annotationChanged",o,w)}}),[f,w]),Object(o.useEffect)((function(){return function(){n(!1),p({})}}),[]),Object(o.useEffect)((function(){var e=h.filter((function(e){return i.a.canModify(e,w)}));g(e)}),[h]);var S=i.a.getNumberOfGroups(b,w)>1,k=!S&&(b.length>2||b.length>0&&i.a.getGroupAnnotations(b[0],w).length>1),E=Object(o.useCallback)((function(e){be(h,w).forEach((function(t){var n=Object(ae.a)(t,e,w);t.addReply(n);var o=i.a.getAnnotationManager(w);o.addAnnotation(n),o.trigger("addReply",[n,t,o.getRootAnnotation(t)])})),a(!1)}),[h,w]),C=Object(o.useMemo)((function(){return{resize:function(){}}}));if(t)return r.a.createElement(_.a.Provider,{value:C},r.a.createElement(D,{annotations:be(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}}));var T=x||0===b.length,A={dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:T,title:"action.style"};return r.a.createElement("div",{className:"multi-select-footer"},r.a.createElement("div",{className:"buttons-container"},r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_REPLY_BUTTON,disabled:x||0===h.length,img:"icon-header-chat-line",onClick:function(){n(!0)},title:"action.comment"}),r.a.createElement(ie.a,{dataElement:le.a.NOTE_MULTI_STATE_BUTTON,title:y("option.notesOrder.status"),img:"icon-annotation-status-none",toggleElement:le.a.NOTE_STATE_FLYOUT,disabled:x||0===b.length}),r.a.createElement(re.a,{isMultiSelectMode:!0,handleStateChange:E}),O?r.a.createElement(ie.a,se({},A,{toggleElement:le.a.MULTI_SELECT_STYLE_PANEL_FLYOUT})):r.a.createElement(P.a,se({},A,{onClick:function(){u(!l)}})),l&&r.a.createElement(oe,{annotations:b,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!k&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!S,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),k&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_UNGROUP_BUTTON,img:"ungroup-annotations-icon",onClick:function(){i.a.ungroupAnnotations(h,w)},title:"action.ungroup"}),r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===b.length,img:"icon-delete-line",onClick:function(){var e={title:y("warning.multiDeleteAnnotation.title"),message:y("warning.multiDeleteAnnotation.message"),confirmBtnText:y("action.delete"),onConfirm:function(){i.a.deleteAnnotations(b,void 0,w)}};v($.a.showWarningMessage(e))},title:"action.delete"})),r.a.createElement("div",{className:"close-container"},r.a.createElement(P.a,{className:"close-icon-container",onClick:function(){d(!1)},img:"ic_close_black_24px",ariaLabel:y("option.documentControls.closeTooltip")})))};ge.propTypes=me;var ve=ge,ye=n(184),we=n(102),xe=n.n(we),Oe=n(72),Se=n(60),ke=n(54),Ee=n(183),Ce=n(25),Te=n(90);n(1754);function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var je={notes:d.a.array.isRequired,disableFilterAnnotation:d.a.bool,setSearchInputHandler:d.a.func.isRequired,isMultiSelectMode:d.a.bool,toggleMultiSelectMode:d.a.func,isMultiSelectEnabled:d.a.bool};function Pe(e){var t=e.notes,n=e.disableFilterAnnotation,a=e.setSearchInputHandler,u=e.isMultiSelectMode,d=e.toggleMultiSelectMode,f=e.isMultiSelectEnabled,p=Ae(Object(c.e)((function(e){var t;return[q.a.getSortStrategy(e),q.a.isElementDisabled(e,"sortContainer"),q.a.getNotesPanelCustomHeaderOptions(e),q.a.getAnnotationFilters(e),q.a.getIsOfficeEditorMode(e),q.a.getOfficeEditorEditMode(e),null===(t=q.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),c.c),7),h=p[0],m=p[1],b=p[2],g=p[3],v=p[4],y=p[5],w=p[6],x=Ae(Object(s.a)(),1)[0],O=Object(c.d)(),S=Ae(Object(o.useState)(!1),2),k=S[0],E=S[1],C=Ae(Object(o.useState)(!1),2),T=C[0],_=C[1],j=Ae(Object(o.useState)(""),2),N=j[0],I=j[1];Object(o.useEffect)((function(){var e=g.authorFilter,t=g.colorFilter,n=g.statusFilter,o=g.typeFilter;((null==e?void 0:e.length)>0||(null==t?void 0:t.length)>0||(null==n?void 0:n.length)>0||(null==o?void 0:o.length)>0)&&E(!0);var r=function(e){var t=e.detail,n=t.types,o=t.authors,r=t.colors,i=t.statuses;n.length>0||o.length>0||r.length>0||i.length>0?E(!0):E(!1)};return window.addEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r),function(){window.removeEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r)}}),[]),Object(o.useEffect)((function(){v&&y===Ce.z.PREVIEW?(_(!0),a(""),I("")):_(!1)}),[v,y]);var R=xe()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),L=r.a.createElement("div",{className:"sort-container","data-element":"sortContainer"},r.a.createElement("div",{className:"label",id:"notesSortLabel"},"".concat(x("message.sort"),":")),r.a.createElement(Oe.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||T,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(Ee.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){O($.a.setNotesPanelSortStrategy(e))}})),M=Object(Te.a)((function(){return O($.a.openElement("filterModal"))})),D=x(v?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=r.a.createElement(Se.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},r.a.createElement(Se.a,{className:l()({"input-container":!0,"modular-ui-input":w}),dataElement:le.a.NotesPanel.DefaultHeader.INPUT_CONTAINER},w&&r.a.createElement(A.a,{glyph:"icon-header-search"}),r.a.createElement("input",{disabled:T,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){I(e.target.value),R(e.target.value)},id:"NotesPanel__input",value:N})),r.a.createElement(Se.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},r.a.createElement("h2",{className:"main-comment"},x(v?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),r.a.createElement(Se.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?r.a.createElement("div",{className:"sort-container"}):L,r.a.createElement("div",{className:"buttons-container"},f&&!v&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_SELECT_MODE_BUTTON,className:l()({active:u}),disabled:0===t.length,img:"icon-annotation-select-multiple",onClick:function(){i.a.deselectAllAnnotations(),d()},title:x("component.multiSelectButton"),ariaPressed:u}),r.a.createElement(P.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:k}),disabled:n,img:"icon-comments-filter",onClick:M,title:x("component.filter"),ariaPressed:k}))));return r.a.createElement(r.a.Fragment,null,b&&r.a.createElement(ye.a,{render:b.render,renderArguments:[t]}),(!b||!b.overwriteDefaultHeader)&&z)}Pe.propTypes=je;var Ne=Pe,Ie=n(160),Re=n(61),qe=n(45),Le=n(1701);n(1756);function Me(e){return(Me="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 De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Me(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||Ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ge=function(e){var t=e.currentLeftPanelWidth,n=e.notes,a=e.selectedNoteIds,u=e.setSelectedNoteIds,d=e.searchInput,f=e.setSearchInput,p=e.isMultiSelectMode,h=e.setMultiSelectMode,m=e.isMultiSelectedMap,b=e.setIsMultiSelectedMap,g=e.scrollToSelectedAnnot,v=e.setScrollToSelectedAnnot,y=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,O=e.parentDataElement,k=Object(c.e)(q.a.getSortStrategy),E=Object(c.e)((function(e){return q.a.isElementOpen(e,le.a.NOTES_PANEL)})),P=Object(c.e)((function(e){return q.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(c.e)(q.a.getPageLabels,c.c),I=Object(c.e)(q.a.getCustomNoteFilter,c.c),R=Object(c.e)(q.a.getInternalNoteFilter,c.c),L=Object(c.e)((function(e){return O?q.a.getPanelWidth(e,O):q.a.getNotesPanelWidth(e)}),c.c),M=Object(c.e)(q.a.getNotesInLeftPanel),D=Object(c.e)(q.a.isDocumentReadOnly),z=Object(c.e)(q.a.isAnnotationNumberingEnabled),B=Object(c.e)(q.a.getEnableNotesPanelVirtualizedList),F=Object(c.e)(q.a.isInDesktopOnlyMode),H=Object(c.e)(q.a.getNotesPanelCustomEmptyPanel,c.c),U=Object(c.e)(q.a.getIsNotesPanelMultiSelectEnabled),W=Object(c.e)(q.a.getActiveDocumentViewerKey),G=Object(c.e)(q.a.getIsOfficeEditorMode),V=Object(c.e)(q.a.getOfficeEditorEditMode),K=Object(c.d)(),Y=He(Object(s.a)(),1)[0],Z=t||L,X=Object(Re.b)(),Q=He(Object(o.useState)([]),2),J=Q[0],ee=Q[1],te=He(Object(o.useState)(!1),2),ne=te[0],oe=te[1],re=He(Object(o.useState)(!1),2),ie=re[0],ae=re[1],ce=He(Object(o.useState)(!1),2),se=ce[0],ue=ce[1],de=He(Object(o.useState)(void 0),2),fe=de[0],pe=de[1],he=Object(o.useRef)(),me=Object(o.useRef)(0),be=B?qe.e?25:100:1/0;Object(o.useEffect)((function(){var e=function(e){K($.a.setAnnotationNumbering(e))},t=function(e,t){"selected"===t&&pe(e[0].Id)};return i.a.addEventListener("annotationNumberingUpdated",e),i.a.addEventListener("annotationSelected",t),function(){i.a.removeEventListener("annotationNumberingUpdated",e),i.a.removeEventListener("annotationSelected",t)}}),[]);var ge=-1,we=function(e){e&&(me.current=e),K($.a.closeElement("annotationNoteConnectorLine"))},xe=function(e){var t=e.getContents(),n=i.a.getDisplayAuthor(e.Author),o=e.getCustomData("trn-annot-preview");return(null==t?void 0:t.toLowerCase().includes(d.toLowerCase()))||(null==n?void 0:n.toLowerCase().includes(d.toLowerCase()))||(null==o?void 0:o.toLowerCase().includes(d.toLowerCase()))},Oe=Object(Ee.c)()[k].getSortedNotes(n).filter((function(e){var t=!0;if(I&&(t=t&&I(e)),R&&(t=t&&R(e)),d){var n=e.getReplies(),o=[e].concat(Fe(n));t=t&&o.some(xe)}return t}));Object(o.useEffect)((function(){Object.keys(a).length&&-1!==ge&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ge)}),0)}),[a]);var Se=function(e){return!Object.keys(a).length&&(d&&Oe.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},ke=He(Object(o.useState)({}),2),Te=ke[0],Ae=ke[1],_e=Object(o.useCallback)((function(e,t){Ae((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Ae]),je=He(Object(o.useState)({}),2),Pe=je[0],Me=je[1],De=Object(o.useCallback)((function(e,t){Me((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Me]),Ue=He(Object(o.useState)({}),2),We=Ue[0],Ge=Ue[1],Ve=function(e,t){Ge((function(n){return ze(ze({},n),{},Be({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){Ge((function(t){return ze(ze({},t),{},Be({},e,[]))}))},$e=function(e,t){var n=We[e];if((null==n?void 0:n.length)>0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),Ge((function(t){return ze(ze({},t),{},Be({},e,Fe(n)))})))}};Object(o.useEffect)((function(){ee(Object.values(m))}),[m]);var Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=null,l=Object(Ee.c)()[k],c=l.shouldRenderSeparator,s=l.getSeparatorContent,f=0===t?null:e[t-1],h=e[t];c&&s&&(!f||c(f,h))&&(o=r.a.createElement(j.a,{renderContent:function(){return s(f,h,{pageLabels:N})}}));var y=function(){!p&&a[h.Id]&&(u((function(e){var t=ze({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,W))},O={searchInput:d,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,W)&&!h.getContents(),pendingEditTextMap:Te,setPendingEditText:_e,pendingReplyMap:Pe,setPendingReply:De,isDocumentReadOnly:D,onTopNoteContentClicked:y,isExpandedFromSearch:Se(h),scrollToSelectedAnnot:g,sortStrategy:k,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:We,clearAttachments:Ke,deleteAttachment:$e,addAttachments:Ve,documentViewerKey:W};return t===ge&&setTimeout((function(){v(!1),K($.a.openElement("annotationNoteConnectorLine"))}),0),r.a.createElement("div",{role:"listitem",className:"note-wrapper"},o,r.a.createElement(_.a.Provider,{value:O},r.a.createElement(T.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=ze({},m),n=i.a.getGroupAnnotations(h,W);n.forEach((function(e){t[e.Id]=e})),b(t),i.a.selectAnnotations(n)}else{var o=ze({},m),r=i.a.getGroupAnnotations(h,W);r.forEach((function(e){delete o[e.Id]})),b(o),i.a.deselectAnnotations([h].concat(Fe(r)))}}})))},Ze=r.a.createElement("div",{className:"no-results"},r.a.createElement("div",null,r.a.createElement(A.a,{className:"empty-icon",glyph:"illustration - empty state - outlines"})),r.a.createElement("p",{className:"msg no-margin"},Y("message.noResults"))),Xe=null!=H&&H.icon?H.icon:G?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:Y(G?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:Y("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=r.a.createElement("div",{className:"no-annotations"},tt?r.a.createElement(ye.a,{render:H.render}):r.a.createElement(r.a.Fragment,null,et&&r.a.createElement("div",null,r.a.createElement(A.a,{className:"empty-icon",glyph:Xe})),r.a.createElement("div",{className:"msg"},D?Je:Qe))),ot=r.a.createElement("div",{className:"multi-select-place-holder"}),rt=r.a.createElement("div",{className:"multi-reply-place-holder"}),it=Object.keys(a);if(1===it.length)ge=Oe.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Oe.filter((function(e){return a[e.Id]})).length&&(ge=Oe.findIndex((function(e){return e.Id===fe})))}var at,lt={};return y||!F&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!P&&(E||M||y)?r.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":G})},r.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!F&&X&&!M&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){K($.a.closeElements([le.a.NOTES_PANEL]))}},r.a.createElement(A.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),r.a.createElement(r.a.Fragment,null,r.a.createElement(Ne,{notes:Oe,disableFilterAnnotation:0===n.length,setSearchInputHandler:f,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Oe.length?0===n.length?nt:Ze:Oe.length<=be?r.a.createElement(C,{ref:he,notes:Oe,onScroll:we,initialScrollTop:me.current},Ye):r.a.createElement(S,{ref:he,notes:Oe,sortStrategy:k,onScroll:we,initialScrollTop:me.current,selectedIndex:ge},Ye),p?ne?rt:ot:null,G&&!p&&Oe.length>0&&r.a.createElement("div",{className:"preview-all-changes"},r.a.createElement("div",{className:"divider"}),r.a.createElement(Ie.a,{isSwitch:!0,checked:V===Ce.z.PREVIEW,label:Y("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?Ce.z.PREVIEW:Ce.z.REVIEWING)}})))),p&&r.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:oe,showMultiState:ie,setShowMultiState:ae,showMultiStyle:se,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:b,multiSelectedAnnotations:J}),r.a.createElement(Le.a,{annotationId:fe,addAttachments:Ve}),(at=Y(G?"officeEditor.reviewing":"component.notesPanel"),r.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Oe.length>0?"".concat(at," ").concat(Oe.length):Y("message.noResults")))):null},Ve=n(248);function Ke(e){return(Ke="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 $e(){return($e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ke(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function et(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,s=Qe(Object(c.e)((function(e){return[q.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),q.a.getNotesInLeftPanel(e),q.a.getIsNotesPanelMultiSelectEnabled(e),q.a.isMultiViewerMode(e),q.a.getActiveDocumentViewerKey(e),q.a.getIsOfficeEditorMode(e)]}),c.c),6),u=s[0],d=s[1],f=s[2],p=s[3],h=s[4],m=s[5],b=Qe(Object(o.useState)(""),2),g=b[0],v=b[1],y=Qe(Object(o.useState)(!1),2),w=y[0],x=y[1],O=Qe(Object(o.useState)(!1),2),S=O[0],k=O[1],E=Qe(Object(o.useState)({1:[],2:[]}),2),C=E[0],T=E[1],A=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;C[t]=e,T(Ze({},C))}),[h,C[1],C[2],T]),_=C[h]||C[1],j=Qe(Object(o.useState)({1:{},2:{}}),2),P=j[0],N=j[1],I=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;P[t]=e,N(Ze({},P))}),[h,P[1],P[2],N]),R=P[h]||P[1],L=Qe(Object(o.useState)({1:{},2:{}}),2),M=L[0],D=L[1],z=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;M[t]=e,D(Ze({},M))}),[h,M[1],M[2],D]),B=M[h]||M[1],F=function(e){var t=i.a.getAnnotationManager().getFormFieldCreationManager(),n=e instanceof window.Core.Annotations.WidgetAnnotation,o=e.Listable&&!n,r=n&&t.isInFormFieldCreationMode(),a=!m||Object(Y.g)(e)===Y.c.TRACKED_CHANGE;return(o||r)&&!e.isReply()&&!e.Hidden&&!e.isGrouped()&&e.ToolName!==window.Core.Tools.ToolNames.CROP&&!e.isContentEditPlaceholder()&&a};function H(e){var t=e.find((function(e){return e.isGrouped()})),n=[];return t&&e.forEach((function(e){t.InReplyTo!==e.InReplyTo&&t.InReplyTo!==e.Id||n.push(e)})),n}Object(o.useEffect)((function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){A([],e),I({}),v("")}},t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){var t=i.a.getSelectedAnnotations(e),n=H(t);w&&n.length===t.length&&x(!1),A(i.a.getAnnotationsList(e).filter(F),e)}},n=e(1);i.a.addEventListener("documentUnloaded",n);var o,r,a=t(1);return i.a.addEventListener("annotationChanged",a),i.a.addEventListener("annotationHidden",a),i.a.addEventListener("updateAnnotationPermission",a),a(),p&&(o=e(2),i.a.addEventListener("documentUnloaded",o,void 0,2),r=t(2),i.a.addEventListener("annotationChanged",r,void 0,2),i.a.addEventListener("annotationHidden",r,void 0,2),i.a.addEventListener("updateAnnotationPermission",r,void 0,2),r()),function(){p&&(i.a.removeEventListener("documentUnloaded",o,2),i.a.removeEventListener("annotationChanged",r,2),i.a.removeEventListener("annotationHidden",r,2),i.a.removeEventListener("updateAnnotationPermission",r,2)),i.a.removeEventListener("documentUnloaded",n),i.a.removeEventListener("annotationChanged",a),i.a.removeEventListener("annotationHidden",a),i.a.removeEventListener("updateAnnotationPermission",a)}}),[p,m]),Object(o.useEffect)((function(){var e,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(n,o){var r=i.a.getSelectedAnnotations(e),a={};r.forEach((function(e){a[e.Id]=!0})),(t||u||d)&&(I(a,e),k(!0));var l=H(r),c=r.length>1&&l.length!==r.length||w;f&&"selected"===o&&c?(x(!0),r.forEach((function(e){B[e.Id]=e})),z(Ze({},B),e)):"deselected"===o&&(n.forEach((function(e){delete B[e.Id]})),z(Ze({},B),e))}},o=n(1);return o(),i.a.addEventListener("annotationSelected",o),p&&((e=n(2))(),i.a.addEventListener("annotationSelected",e,void 0,2)),function(){i.a.removeEventListener("annotationSelected",o),p&&i.a.removeEventListener("annotationSelected",e,2)}}),[t,u,d,w,B,f,p]);var U={notes:_,selectedNoteIds:R,setSelectedNoteIds:I,searchInput:g,setSearchInput:v,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:B,setIsMultiSelectedMap:z,scrollToSelectedAnnot:S,setScrollToSelectedAnnot:k};return r.a.createElement(Ge,$e({},e,U))}var tt=function(e){return r.a.createElement(Ve.a,{wrapOnlyInMultiViewerMode:!0},r.a.createElement(et,e))};t.default=tt},1779:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(34),n(81),n(125),n(21),n(20),n(12),n(44),n(22),n(99),n(129),n(18),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(1559),c=n(1663),s=n(472),u=n(4),d=n(3),f=n(41),p=r.a.createContext(),h=n(2),m=n.n(h),b=n(1876),g=n(1877),v=n(630),y=n(1585),w=(n(38),n(1584)),x=n(5),O=n(2083),S=n(269),k=(n(1575),n(1762),n(1656)),E=n(15),C=n.n(E);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _={portfolioItem:m.a.object.isRequired,isPortfolioRenaming:m.a.bool,setPortfolioRenaming:m.a.func,movePortfolio:m.a.func},j=function(e){var t=e.portfolioItem,n=e.isPortfolioRenaming,l=e.setPortfolioRenaming,c=e.movePortfolio,s=Object(o.useContext)(p),d=s.refreshPortfolio,h=s.renamePortfolioItem,m=s.removePortfolioItem,b=s.openPortfolioItem,g=s.downloadPortfolioItem,v=s.isNameDuplicated,y=s.setActivePortfolioItem,E=t.name,A=t.nameWithoutExtension,_=t.extension,j=t.id,P=T(Object(a.a)(),1)[0],N=Object(o.useRef)(),I=T(Object(o.useState)(!1),2),R=I[0],q=I[1],L=T(Object(o.useState)(A),2),M=L[0],D=L[1],z=Object(o.useCallback)((function(){n||(b(t),y(t.id))}),[n,t,b,y]),B=function(){return!M||A===M||v("".concat(M,".").concat(_),j)},F=function(){l(!1),h(j,"".concat(M,".").concat(_))},H=function(){n&&(l(!1),D(A)),d()};Object(o.useEffect)((function(){n&&(N.current.focus(),N.current.select()),q(!n)}),[n]);var U="".concat(x.a.BOOKMARK_OUTLINE_FLYOUT,"-").concat(j),W=Object(i.e)((function(e){return u.a.getFlyout(e,U)})),G={moreOptionsDataElement:"portfolio-item-more-button-".concat(j),flyoutToggleElement:U},V={shouldHideDeleteButton:!1,currentFlyout:W,flyoutSelector:U,type:"portfolio",handleOnClick:function(e){switch(e){case w.b.MOVE_UP:case w.b.MOVE_DOWN:c(j,e);break;case w.b.OPENFILE:Object(S.g)(_)&&b(t);break;case w.b.RENAME:l(!0);break;case w.b.DOWNLOAD:g(t);break;case w.b.DELETE:m(j)}}};return r.a.createElement("div",{className:"bookmark-outline-single-container"},R&&r.a.createElement(k.a,{iconGlyph:"icon-header-page-manipulation-page-layout-single-page-line",labelHeader:E,enableMoreOptionsContextMenuFlyout:!0,onDoubleClick:z,contextMenuMoreButtonOptions:G,contentMenuFlyoutOptions:V}),n&&r.a.createElement("div",{className:C()({"bookmark-outline-label-row":!0,editing:n})},r.a.createElement("label",{className:"portfolio-input-label",htmlFor:j},P("portfolio.portfolioDocumentTitle")),r.a.createElement(O.a,{id:j,type:"text",name:"outline",ref:N,wrapperClassName:"portfolio-input",value:M,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),n&&!B()&&F()),"Escape"===e.key&&H()},onChange:function(e){return D(e.target.value)},fillWidth:!0,messageText:v("".concat(M,".").concat(_),j)?P("portfolio.fileNameAlreadyExists"):"",message:v("".concat(M,".").concat(_),j)?"warning":"default","aria-label":"".concat(P("action.rename")," ").concat(M,".").concat(_)}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:P("action.cancel"),onClick:H}),n&&r.a.createElement(f.a,{className:"bookmark-outline-save-button",label:P("action.save"),isSubmitType:!0,disabled:B(),onClick:F}))))};j.propTypes=_;var P=j;n(1764);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R={portfolioItem:m.a.object.isRequired,connectDragSource:m.a.func,connectDragPreview:m.a.func,connectDropTarget:m.a.func,isDragging:m.a.bool,isDraggedUpwards:m.a.bool,isDraggedDownwards:m.a.bool,movePortfolio:m.a.func},q=Object(o.forwardRef)((function(e,t){var n=e.portfolioItem,i=e.connectDragSource,a=e.connectDragPreview,l=e.connectDropTarget,c=e.isDragging,s=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.movePortfolio,f=Object(o.useRef)(null);i(f),a(Object(v.a)(),{captureDraggingState:!0}),l(f);var p=c?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return f.current}}}));var h=N(Object(o.useState)(!1),2),m=h[0],b=h[1];return r.a.createElement("div",{ref:f,className:"outline-drag-container",style:{opacity:p}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:s?1:0}}),r.a.createElement(P,{movePortfolio:d,portfolioItem:n,isPortfolioRenaming:m,setPortfolioRenaming:b}),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}))}));q.propTypes=R,q.displayName="PortfolioItem";var L=Object(b.a)(y.c.PORTFOLIO,{hover:function(e,t,n){if(n){var o=t.getItem();if(o){var r=o.dragPortfolioItem,i=o.dragSourceNode,a=e.portfolioItem,l=n.getNode();if(i&&l){if(i.contains(l))return o.dropTargetNode=void 0,void(o.dropLocation=y.b.INITIAL);if(o.dropTargetNode=l,r.id!==a.id){var c=l.getBoundingClientRect(),s=c.height/2+c.top,u=t.getClientOffset().y;switch(!0){case u>s:o.dropLocation=y.b.BELOW_TARGET,l.classList.remove("isNesting");break;case u<s:o.dropLocation=y.b.ABOVE_TARGET,l.classList.remove("isNesting");break;default:o.dropLocation=y.b.INITIAL,l.classList.remove("isNesting")}}}}}},drop:function(e,t,n){if(n){var o=t.getItem(),r=o.dragPortfolioItem,i=o.dropTargetNode,a=e.portfolioItem,l=e.movePortfolioInward,c=e.movePortfolioBeforeTarget,s=e.movePortfolioAfterTarget;if(i){switch(o.dropLocation){case y.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case y.b.ABOVE_TARGET:c(r.id,a.id);break;case y.b.BELOW_TARGET:s(r.id,a.id)}i.classList.remove("isNesting"),o.dropLocation=y.b.INITIAL}}}},(function(e,t){var n,o;return{connectDropTarget:e.dropTarget(),isDraggedUpwards:t.isOver({shallow:!0})&&(null===(n=t.getItem())||void 0===n?void 0:n.dropLocation)===y.b.ABOVE_TARGET,isDraggedDownwards:t.isOver({shallow:!0})&&(null===(o=t.getItem())||void 0===o?void 0:o.dropLocation)===y.b.BELOW_TARGET}}))(Object(g.a)(y.c.PORTFOLIO,{beginDrag:function(e,t,n){return{sourceId:t.sourceId,dragPortfolioItem:e.portfolioItem,dragSourceNode:n.getNode(),dropLocation:y.b.INITIAL}},canDrag:function(){return!0}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(q));L.propTypes=R;var M=L,D=n(1869),z={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},B=function(e,t){if(!e||!t)return{display:"none"};var n=t.x,o=t.y,r="translate(calc(".concat(n,"px - 50%), calc(").concat(o,"px - 100%))");return{transform:r,WebkitTransform:r}},F=function(){var e=Object(D.a)((function(e){return{itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getClientOffset()}})),t=e.itemType,n=e.item,o=e.isDragging,i=e.initialOffset,a=e.currentOffset;return o?r.a.createElement("div",{style:z},r.a.createElement("div",{className:"bookmark-outline-single-container preview",style:B(i,a)},function(){if(!n)return null;var e=n.dragPortfolioItem;return t===y.c.PORTFOLIO?r.a.createElement(r.a.Fragment,null,e.name):null}())):null},H=n(60),U=n(45),W=n(136),G=n(1);n(1766);function V(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=J(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function K(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Y(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Y(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Y(d,"constructor",s),Y(s,"constructor",c),c.displayName="GeneratorFunction",Y(s,r,"GeneratorFunction"),Y(d),Y(d,r,"Generator"),Y(d,o,(function(){return this})),Y(d,"toString",(function(){return"[object Generator]"})),($=function(){return{w:i,m:f}})()}function Y(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Y=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Y(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Z(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Z(i,o,r,a,l,"next",e)}function l(e){Z(i,o,r,a,l,"throw",e)}a(void 0)}))}}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||J(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var te=function(){var e=Q(Object(i.e)((function(e){return[u.a.isElementDisabled(e,x.a.PORTFOLIO_PANEL),u.a.getTabManager(e),u.a.getPortfolio(e)]}),i.c),3),t=e[0],n=e[1],h=e[2],m=Object(i.d)(),b=Q(Object(a.a)(),1)[0],g=Q(Object(o.useState)(null),2),v=g[0],O=g[1],k=Q(Object(o.useState)(!1),2),E=k[0],C=k[1],T=Object(o.useRef)(null),A=function(){var e;null==T||null===(e=T.current)||void 0===e||e.click()},_=function(){var e=X($().m((function e(t){var n,o,r,i,a,l,c,s;return $().w((function(e){for(;;)switch(e.n){case 0:if(1!==(n=t.target.files).length){e.n=4;break}if(o=n[0],!h.some((function(e){return e.name===o.name}))){e.n=1;break}r=b("portfolio.fileAlreadyExistsMessage",{fileName:o.name}),i=b("portfolio.fileAlreadyExists"),a=b("portfolio.reselect"),l={message:r,title:i,confirmBtnText:a,onConfirm:function(){return A()}},m(d.a.showWarningMessage(l)),e.n=4;break;case 1:if(!(c=G.a.getDocument())){e.n=4;break}return e.n=2,c.getPDFDoc();case 2:if(!(s=e.v)){e.n=4;break}return e.n=3,Object(S.b)(s,o);case 3:N();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Object(S.h)(t,n);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=X($().m((function e(){var t,n,o,r;return $().w((function(e){for(;;)switch(e.n){case 0:return t=m,n=d.a,e.n=1,Object(S.f)();case 1:o=e.v,r=n.setPortfolio.call(n,o),t(r),C(!1);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=X($().m((function e(t){return $().w((function(e){for(;;)switch(e.n){case 0:return m(d.a.openElement(x.a.LOADING_MODAL)),e.n=1,Object(S.e)(t);case 1:m(d.a.closeElement(x.a.LOADING_MODAL));case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(e,t){console.log(e.name,"Inward",t.name)},q=function(){var e=X($().m((function e(t,n,o,r){var i,a,l,c,s,u,d,f,p,h;return $().w((function(e){for(;;)switch(e.p=e.n){case 0:i=K(t),a=i.findIndex((function(e){return e.id===n})),l=i.findIndex((function(e){return e.id===o})),c=l,r===y.b.ABOVE_TARGET&&a<l&&(c=l-1),r===y.b.BELOW_TARGET&&a>l&&(c=l+1),i.splice(c,0,i.splice(a,1)[0]),s=V(i.entries()),e.p=1,s.s();case 2:if((u=s.n()).done){e.n=4;break}if(d=Q(u.value,2),f=d[0],(p=d[1]).order===f){e.n=3;break}return e.n=3,Object(S.i)(p.id,f);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,h=e.v,s.e(h);case 6:return e.p=6,s.f(),e.f(6);case 7:return e.a(2)}}),e,null,[[1,5,6,7]])})));return function(t,n,o,r){return e.apply(this,arguments)}}(),L=function(){var e=X($().m((function e(t,n){var o,r,i,a,l,c,s,u,d;return $().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,Object(S.f)();case 1:if(o=e.v,r=o.findIndex((function(e){return e.id===t})),!(0===r&&n===w.b.MOVE_UP||r===o.length-1&&n===w.b.MOVE_DOWN)){e.n=2;break}return e.a(2);case 2:i=n===w.b.MOVE_UP?r-1:r+1,o.splice(i,0,o.splice(r,1)[0]),a=V(o.entries()),e.p=3,a.s();case 4:if((l=a.n()).done){e.n=6;break}if(c=Q(l.value,2),s=c[0],(u=c[1]).order===s){e.n=5;break}return e.n=5,Object(S.i)(u.id,s);case 5:e.n=4;break;case 6:e.n=8;break;case 7:e.p=7,d=e.v,a.e(d);case 8:return e.p=8,a.f(),e.f(8);case 9:return e.n=10,N();case 10:return e.a(2)}}),e,null,[[3,7,8,9]])})));return function(t,n){return e.apply(this,arguments)}}(),D=Object(o.useCallback)(function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,q(h,t,n,y.b.ABOVE_TARGET);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]),z=Object(o.useCallback)(function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,q(h,t,n,y.b.BELOW_TARGET);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]);return t?null:r.a.createElement(H.a,{className:"Panel PortfolioPanel bookmark-outline-panel",dataElement:x.a.PORTFOLIO_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},b("portfolio.portfolioPanelTitle")),r.a.createElement("div",{className:"portfolio-panel-control"},r.a.createElement(f.a,{className:"portfolio-panel-control-button",dataElement:x.a.PORTFOLIO_ADD_FILE,img:"icon-add-file",title:b("portfolio.addFile"),disabled:E,onClick:A}),r.a.createElement("input",{ref:T,style:{display:"none"},type:"file",onChange:function(e){_(e),e.target.value=null}}))),r.a.createElement(p.Provider,{value:{activePortfolioItem:v,setActivePortfolioItem:O,isPortfolioItemActive:function(e){return(null==e?void 0:e.id)===v},isAddingNewFolder:E,setAddingNewFolder:C,addNewFolder:function(e){e||(e=b("message.untitled")),N()},renamePortfolioItem:j,removePortfolioItem:function(e){var t,n=h.find((function(t){return t.id===e})),o={message:b("portfolio.deletePortfolio",{fileName:n.name}),title:b("action.delete"),confirmBtnText:b("action.delete"),onConfirm:(t=X($().m((function t(){return $().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(S.d)(e);case 1:N();case 2:return t.a(2)}}),t)}))),function(){return t.apply(this,arguments)})};m(d.a.showWarningMessage(o))},openPortfolioItem:function(e){Object(S.g)(e.extension)&&(m(Object(W.b)()),m(d.a.addPortfolioTab(e)))},downloadPortfolioItem:I,refreshPortfolio:N,isNameDuplicated:function(e,t){return h.filter((function(e){return e.id!==t})).some((function(t){return t.name===e}))},tabManager:n}},r.a.createElement(l.a,{backend:U.l?c.a:s.a},r.a.createElement(F,null),r.a.createElement("div",{className:"portfolio-panel-list"},h.map((function(e){return r.a.createElement(M,{key:e.id,portfolioItem:e,movePortfolioInward:R,movePortfolioBeforeTarget:D,movePortfolioAfterTarget:z,movePortfolio:L})})),E&&r.a.createElement(H.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(P,{name:"",id:"0",isFolder:!0,isAdding:!0}))))))};t.default=te},1780:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(38),n(34),n(81),n(27),n(21),n(50),n(20),n(12),n(44),n(22),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(111),n(17),n(19),n(62),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=(n(153),n(94),n(4)),c=n(15),s=n.n(c),u=n(1),d=n(2),f=n.n(d),p=n(41),h=n(1595),m=n(60),b=n(1584),g=n(5),v=n(1597);n(1575);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var x={text:f.a.string.isRequired,label:f.a.string.isRequired,defaultLabel:f.a.string,pageIndex:f.a.number.isRequired,isAdding:f.a.bool,isMultiSelectionMode:f.a.bool,setSelected:f.a.func,onSave:f.a.func.isRequired,onRemove:f.a.func,onCancel:f.a.func,panelSelector:f.a.string},O=function(e){var t=e.text,n=e.label,c=e.defaultLabel,d=e.pageIndex,f=e.isAdding,w=e.isMultiSelectionMode,x=e.setSelected,O=e.onSave,S=e.onRemove,k=e.onCancel,E=e.panelSelector,C=y(Object(a.a)(),1)[0],T=y(Object(o.useState)(!1),2),A=T[0],_=T[1],j=y(Object(o.useState)(!1),2),P=j[0],N=j[1],I=y(Object(o.useState)(t),2),R=I[0],q=I[1],L=y(Object(o.useState)(void 0),2),M=L[0],D=L[1],z=Object(o.useRef)(),B=function(){return!R||t===R},F=function(){_(!1),O(""===R.trim()?C("message.untitled"):R)},H=function(){_(!1),A&&q(t),f&&k()};Object(o.useEffect)((function(){R!==t&&q(t)}),[t]),Object(o.useEffect)((function(){(f||A)&&(z.current.focus(),z.current.select()),N(!f&&!A)}),[A]);var U="".concat(g.a.BOOKMARK_FLYOUT,"-").concat(d),W=Object(i.e)((function(e){return l.a.getFlyout(e,U)})),G="bookmark-more-button-".concat(E,"-").concat(d),V={labelHeader:c,description:t,enableMoreOptionsContextMenuFlyout:!0,contentMenuFlyoutOptions:{shouldHideDeleteButton:!1,currentFlyout:W,flyoutSelector:U,type:"bookmark",handleOnClick:function(e){switch(e){case b.b.RENAME:_(!0);break;case b.b.DELETE:S(d)}}},contextMenuMoreButtonOptions:{flyoutToggleElement:U,moreOptionsDataElement:G},onClick:function(e){P&&1===e.detail&&D(setTimeout((function(){!function(e){u.a.setCurrentPage(e+1)}(d)}),300))},onDoubleClick:function(){P&&_(!0)},checkboxOptions:{id:"bookmark-checkbox-".concat(d+1),onChange:function(e){x(d,e.target.checked)},ariaLabel:"".concat(C("action.select")," ").concat(n),disabled:!w}};return r.a.createElement(r.a.Fragment,null,P&&r.a.createElement(v.a,V),(f||A)&&r.a.createElement(m.a,{className:s()({"bookmark-outline-single-container":!0,editing:f||A,default:P}),onDoubleClick:function(){P&&clearTimeout(M)}},r.a.createElement("div",{className:"bookmark-outline-label-row"},r.a.createElement("div",{className:"bookmark-outline-label"},f||A?n:c),r.a.createElement("input",{type:"text",name:"bookmark",ref:z,className:"bookmark-outline-input bookmark-text-input","aria-label":C("action.name"),value:R,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),(f||A&&!B())&&F()),"Escape"===e.key&&H()},onChange:function(e){return q(e.target.value)}}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(h.a,{label:C("action.cancel"),onClick:H,ariaLabel:"".concat(C("action.cancel")," ").concat(C("component.bookmarkPanel"))}),f&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:C("action.add"),isSubmitType:!0,onClick:F,ariaLabel:"".concat(C("action.add")," ").concat(C("component.bookmarkPanel"))}),A&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:C("action.save"),isSubmitType:!0,disabled:B(),onClick:F,ariaLabel:"".concat(C("action.save")," ").concat(C("component.bookmarkPanel"))})))))};O.propTypes=x;var S=O,k=n(160),E=n(3);n(1735);function C(e){return(C="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 T(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=C(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R=function(e){var t,n=e.panelSelector,c=P(Object(i.e)((function(e){return[l.a.isElementDisabled(e,g.a.BOOKMARK_PANEL),l.a.getBookmarks(e),l.a.getCurrentPage(e)-1,l.a.getPageLabels(e),l.a.isBookmarkIconShortcutVisible(e),l.a.getFeatureFlags(e)]}),i.c),6),d=c[0],f=c[1],b=c[2],v=c[3],y=c[4],w=c[5],x=P(Object(o.useState)(!1),2),O=x[0],C=x[1],A=P(Object(o.useState)(!1),2),N=A[0],I=A[1],R=P(Object(o.useState)([]),2),q=R[0],L=R[1],M=w.customizableUI,D=P(Object(a.a)(),1)[0],z=Object(i.d)();Object(o.useEffect)((function(){y&&!d?u.a.setBookmarkIconShortcutVisibility(!0):u.a.setBookmarkIconShortcutVisibility(!1)}),[d,y]);var B=Object.keys(f).map((function(e){return parseInt(e,10)}));Object(o.useEffect)((function(){q.forEach((function(e){B.includes(e)||L(q.filter((function(t){return t!==e})))})),0===B.length&&I(!1)}),[f]);var F=function(e){var t=D("warning.deleteBookmark.title"),n={message:D("warning.deleteBookmark.message"),title:t,onConfirm:function(){e.forEach((function(e){return u.a.removeUserBookmark(Number(e))})),L([])},confirmBtnText:D("action.delete")};z(E.a.showWarningMessage(n))};return d?null:r.a.createElement("div",{className:s()(j(j({Panel:!0,BookmarksPanel:!0,"bookmark-outline-panel":!0},n,!0),"modular-ui-panel",M)),"data-element":g.a.BOOKMARK_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("div",{className:"header-title"},D("component.bookmarksPanel")),!N&&r.a.createElement(h.a,{dataElement:g.a.BOOKMARK_MULTI_SELECT,label:D("action.edit"),disabled:O||0===B.length,onClick:function(){return I(!0)},ariaLabel:"".concat(D("action.edit")," ").concat(D("component.bookmarksPanel"))}),N&&r.a.createElement(h.a,{dataElement:g.a.BOOKMARK_MULTI_SELECT,label:D("option.bookmarkOutlineControls.done"),disabled:O,onClick:function(){I(!1),L([])},ariaLabel:"".concat(D("option.bookmarkOutlineControls.done")," ").concat(D("action.edit"))})),r.a.createElement(k.a,{dataElement:g.a.BOOKMARK_SHORTCUT_OPTION,type:"checkbox",isSwitch:!0,id:"bookmark-view-option",className:"bookmark-switch",label:D("message.viewBookmark"),checked:y,onChange:function(e){return z(E.a.setBookmarkIconShortcutVisibility(e.target.checked))}}),!O&&0===B.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},D("message.noBookmarks")),r.a.createElement("div",{className:"bookmark-outline-row"},O&&r.a.createElement(S,{isAdding:!0,label:"".concat(D("component.bookmarkPage")," ").concat(v[b]," - ").concat(D("component.bookmarkTitle")),text:null!==(t=f[b])&&void 0!==t?t:"",pageIndex:b,onSave:function(e){u.a.addUserBookmark(b,e),C(!1)},onCancel:function(){return C(!1)},panelSelector:n}),B.map((function(e){return r.a.createElement(S,{key:e,panelSelector:n,isMultiSelectionMode:N,label:"".concat(D("component.bookmarkPage")," ").concat(v[e]," - ").concat(D("component.bookmarkTitle")),defaultLabel:"".concat(D("component.bookmarkPage")," ").concat(v[e]),text:f[e],pageIndex:e,onSave:function(t){var n=_(_({},u.a.getUserBookmarks()),{},j({},e,t));u.a.setUserBookmarks(n)},onRemove:function(e){return F([e])},setSelected:function(e,t){e=e.toString(),q.find((function(t){return t===e}))?t||L(q.filter((function(t){return t!==e}))):t&&L([].concat(T(q),[e]))}})}))),r.a.createElement(m.a,{className:"bookmark-outline-footer",dataElement:g.a.BOOKMARK_ADD_NEW_BUTTON_CONTAINER},N?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",disabled:q.length>0||!!f[b]||O,onClick:function(){return C(!0)},ariaLabel:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel"))}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===q.length,onClick:function(){return F(q)},ariaLabel:"".concat(D("action.delete")," ").concat(D("component.bookmarkPanel"))})):r.a.createElement(h.a,{img:"icon-menu-add",dataElement:g.a.BOOKMARK_ADD_NEW_BUTTON,label:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel")),disabled:O||!!f[b],onClick:function(){return C(!0)},ariaLabel:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel"))})))};t.default=R},1781:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(34),n(81),n(21),n(50),n(20),n(12),n(629),n(22),n(99),n(142),n(18),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(91),n(56),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(1559),c=n(45),s=n(472),u=n(1663),d=n(1769),f=n(1626),p=n(41),h=n(1595),m=n(1665),b=n(60),g=n(1),v=n(475),y=n(77),w=n(5),x=n(68),O=n(57),S=n(319),k=n(3),E=n(4),C=(n(1575),n(1733),n(1869)),T=n(1585),A={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},_=function(e,t){if(!e||!t)return{display:"none"};var n=t.x,o=t.y,r="translate(calc(".concat(n,"px - 50%), calc(").concat(o,"px - 100%))");return{transform:r,WebkitTransform:r}},j=function(){var e=Object(C.a)((function(e){return{itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getClientOffset()}})),t=e.itemType,n=e.item,o=e.isDragging,i=e.initialOffset,a=e.currentOffset;return o?r.a.createElement("div",{style:A},r.a.createElement("div",{className:"bookmark-outline-single-container preview",style:_(i,a)},function(){if(!n)return null;var e=n.dragOutline;switch(t){case T.c.OUTLINE:return r.a.createElement(r.a.Fragment,null,e.getName());default:return null}}())):null},P=n(15),N=n.n(P),I=n(1655),R=n(471),q=n(481);function L(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return D(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(D(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,D(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,D(d,"constructor",s),D(s,"constructor",c),c.displayName="GeneratorFunction",D(s,r,"GeneratorFunction"),D(d),D(d,r,"Generator"),D(d,o,(function(){return this})),D(d,"toString",(function(){return"[object Generator]"})),(M=function(){return{w:i,m:f}})()}function D(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(D=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){D(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function z(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){z(i,o,r,a,l,"next",e)}function l(e){z(i,o,r,a,l,"throw",e)}a(void 0)}))}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var W=function(e){var t=e.isTest,n=void 0!==t&&t,C=F(Object(i.e)((function(e){return[E.a.isElementDisabled(e,w.a.OUTLINE_PANEL),E.a.getOutlines(e),E.a.getOutlineEditingEnabled(e),E.a.shouldAutoExpandOutlines(e),E.a.getCurrentPage(e),E.a.getPageLabels(e),E.a.getFeatureFlags(e)]}),i.c),7),T=C[0],A=C[1],_=C[2],P=C[3],D=C[4],z=C[5],H=C[6],U="Full Page",W="Area Selection",G={x:0,y:0},V=null===A,K=Object(q.a)(),$=F(Object(o.useState)(U),2),Y=$[0],Z=$[1],X=F(Object(o.useState)(G),2),Q=X[0],J=X[1],ee=F(Object(o.useState)(D),2),te=ee[0],ne=ee[1],oe=F(Object(o.useState)(!1),2),re=oe[0],ie=oe[1],ae=F(Object(o.useState)(null),2),le=ae[0],ce=ae[1],se=F(Object(o.useState)(!1),2),ue=se[0],de=se[1],fe=F(Object(o.useState)({}),2),pe=fe[0],he=fe[1],me=F(Object(o.useState)(!1),2),be=me[0],ge=me[1],ve=F(Object(o.useState)(!1),2),ye=ve[0],we=ve[1],xe=F(Object(o.useState)([]),2),Oe=xe[0],Se=xe[1],ke=H.customizableUI,Ee=F(Object(a.a)(),1)[0],Ce=Object(i.d)(),Te=Object(o.useRef)(null),Ae="OutlineDestinationCreateTool",_e=g.a.getTool(Ae),je=Object(o.useRef)();Object(o.useEffect)((function(){V&&K&&g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))}))}),[V,K]),Object(o.useLayoutEffect)((function(){de(!1),null!==Te.current&&(ce(Te.current),Te.current=null),(!A||0===A.length)&&we(!1)}),[A]),Object(o.useEffect)((function(){var e=Object(S.a)(),t=e===O.a.PDF||e===O.a.IMAGE,n=function(){return g.a.isFullPDFEnabled()&&t&&_};ie(n());var o=function(){ie(n())};return g.a.addEventListener("documentLoaded",o),function(){return g.a.removeEventListener("documentLoaded",o)}}),[_]),Object(o.useEffect)((function(){var e=Object.values(pe).some((function(e){return e}));ge(e)}),[pe,A]),Object(o.useEffect)((function(){var e=function(e){Z(e.IsText?e.getCustomData("trn-annot-preview"):W),J({x:e.X,y:e.Y}),ne(e.PageNumber)},t=function(){g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))}))},n=function(){ce(null)};return g.a.addEventListener("outlineSetDestination",e),window.addEventListener("outlineBookmarksChanged",t),g.a.addEventListener("documentLoaded",n),function(){g.a.removeEventListener("outlineSetDestination",e),window.removeEventListener("outlineBookmarksChanged",t),g.a.removeEventListener("documentLoaded",n)}}),[]),Object(o.useEffect)((function(){var e=function(e){e.target.classList.contains("bookmark-outline-row")&&(ce(null),Se([]))};return je.current&&je.current.addEventListener("click",e),function(){je.current&&je.current.removeEventListener("click",e)}}),[]);var Pe=function(e,t){var n=t.x,o=t.y;return g.a.getDocumentViewer().getDocument().getViewerCoordinates(e,n,o)},Ne=function(){var e=B(M().m((function e(t){var n,o,r,i,a,l,c;return M().w((function(e){for(;;)switch(e.n){case 0:if(n=Pe(te,Q),o=n.x,r=n.y,i=t,[U,W].includes(Y)||t?t||(i=Ee("message.untitled")):i=Y.slice(0,40),a=g.a.getDocumentViewer().getDocument(),(l=a.getPageRotation(te)/90)!==window.Core.PageRotation.E_90&&l!==window.Core.PageRotation.E_270||(c=o,o=r,r=c),0!==A.length){e.n=2;break}return e.n=1,v.a.addRootOutline(i,te,o,r,0);case 1:e.n=3;break;case 2:return e.n=3,v.a.addNewOutline(i,le,te,o,r,0);case 3:Ie();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){Object(y.f)(),g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))})),qe(),he({})},Re=function(e){return v.a.getPath(e)},qe=function(){g.a.setToolMode(x.a),Z(U),J(G),ne(D),_e.clearOutlineDestination()},Le=function(){var e=B(M().m((function e(t){var n,o,r,i,a,l;return M().w((function(e){for(;;)switch(e.n){case 0:return n=Pe(te,Q),o=n.x,r=n.y,i=g.a.getDocumentViewer().getDocument(),(a=i.getPageRotation(te)/90)!==window.Core.PageRotation.E_90&&a!==window.Core.PageRotation.E_270||(l=o,o=r,r=l),e.n=1,v.a.setOutlineDestination(t,te,o,r,0);case 1:Te.current=t,Ie();case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)((function(){Y===U&&ne(D)}),[Y,D]),Object(o.useEffect)((function(){ue?g.a.setToolMode(Ae):qe()}),[ue]);var Me=function(e,t,n){var o=Re(e),r=Re(t);Se([]),n.call(v.a,o,r).then((function(e){Ie(),Te.current=e})),g.a.goToOutline(e)},De=function(e,t){Me(e,t,v.a.moveOutlineAfterTarget)},ze=function(e,t){Me(e,t,v.a.moveOutlineBeforeTarget)},Be=function(e,t){Me(e,t,v.a.moveOutlineInTarget)},Fe=function(){var e=B(M().m((function e(t,n){return M().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,v.a.setOutlineName(t,n);case 1:Ie();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),He=function(){var e=B(M().m((function e(t){var n;return M().w((function(e){for(;;)switch(e.n){case 0:t.sort().reverse(),n={message:Ee("warning.deleteOutline.message"),title:Ee("warning.deleteOutline.title"),confirmBtnText:Ee("action.delete"),onConfirm:function(){var e=B(M().m((function e(){var n,o;return M().w((function(e){for(;;)switch(e.n){case 0:n=0;case 1:if(!(n<t.length)){e.n=3;break}return o=t[n],e.n=2,v.a.deleteOutline(o);case 2:n++,e.n=1;break;case 3:Ie(),ce(null),Se([]);case 4:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}()},Ce(k.a.showWarningMessage(n));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();return T?null:r.a.createElement("div",{className:N()("Panel OutlinesPanel bookmark-outline-panel",{"modular-ui-panel":ke}),"data-element":w.a.OUTLINE_PANEL,ref:je},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},Ee("component.outlinesPanel")),re&&(ye?r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:Ee("option.bookmarkOutlineControls.done"),disabled:ue,onClick:function(){return we(!1)},ariaLabel:"".concat(Ee("option.bookmarkOutlineControls.done")," ").concat(Ee("action.edit"))}):r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:Ee("option.bookmarkOutlineControls.edit"),disabled:ue||V||0===A.length,onClick:function(){we(!0),Se([])},ariaLabel:"".concat(Ee("action.edit")," ").concat(Ee("component.outlinesPanel"))}))),V&&K?r.a.createElement(R.a,{inPanel:!0,width:"40px",height:"40px"}):r.a.createElement(f.a.Provider,{value:{currentDestPage:z[te-1],currentDestText:Y,setActiveOutlinePath:ce,activeOutlinePath:le,isOutlineActive:function(e){return Re(e)===le},setAddingNewOutline:de,isAddingNewOutline:ue,setEditingOutlines:he,editingOutlines:pe,selectedOutlines:Oe,isAnyOutlineRenaming:be,isMultiSelectMode:ye,shouldAutoExpandOutlines:P,isOutlineEditable:re,addNewOutline:Ne,updateOutlines:Ie,renameOutline:Fe,updateOutlineDest:Le,removeOutlines:He}},r.a.createElement(l.a,{backend:c.l?u.a:s.a},r.a.createElement(j,null),r.a.createElement("div",{className:"bookmark-outline-row"},!ue&&(V||0===A.length)&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},Ee("message.noOutlines")),ue&&null===le&&r.a.createElement(b.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(m.a,{isAdding:!0,text:"",onCancel:function(){return de(!1)}})),r.a.createElement(I.a,{className:N()({"small-outlines-list":ue}),data:A||[],itemContent:function(e,t){return r.a.createElement(d.default,{key:v.a.getOutlineId(t),outline:t,setMultiSelected:function(e,t){Oe.find((function(t){return t===e}))?t||Se(Oe.filter((function(t){return t!==e}))):t&&Se([].concat(L(Oe),[e]))},moveOutlineInward:Be,moveOutlineBeforeTarget:ze,moveOutlineAfterTarget:De})},initialItemCount:n?null==A?void 0:A.length:void 0}))),re&&r.a.createElement(b.a,{className:"bookmark-outline-footer",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER},ye?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",ariaLabel:"".concat(Ee("action.add")," ").concat(Ee("component.outlinesPanel")),disabled:Oe.length>0||ue||be,onClick:function(){return de(!0)}}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===Oe.length||be,onClick:function(){return He(Oe)}})):r.a.createElement(h.a,{className:"bookmark-outline-control-button add-new-button",img:"icon-menu-add",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON,disabled:ue||be,label:"".concat(Ee("action.add")," ").concat(Ee("component.outlinePanel")),onClick:function(){return de(!0)},ariaLabel:"".concat(Ee("action.add")," ").concat(Ee("component.outlinesPanel"))}))))},G=r.a.memo(W);t.default=G},1782:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(44),n(22),n(18),n(26),n(16),n(40),n(24),n(228),n(42),n(43),n(8),n(56),n(1650),n(17),n(19),n(11),n(180),n(13),n(94);var o=n(0),r=n.n(o),i=n(305),a=n(289),l=n(471),c=n(172),s=n(51),u=n(1),d=n(6),f=n(4),p=n(3),h=n(5),m=(n(1737),n(32));function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return g(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(g(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,g(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,g(d,"constructor",s),g(s,"constructor",c),c.displayName="GeneratorFunction",g(s,r,"GeneratorFunction"),g(d),g(d,r,"Generator"),g(d,o,(function(){return this})),g(d,"toString",(function(){return"[object Generator]"})),(b=function(){return{w:i,m:f}})()}function g(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(g=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){g(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function v(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){v(i,o,r,a,l,"next",e)}function l(e){v(i,o,r,a,l,"throw",e)}a(void 0)}))}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var O=function(e){return e.match(/[^\\\/]+$/g)[0]},S=function(e,t,n,o){var i=(e=O(e)).split(".").pop().toUpperCase(),a=function(e){"Enter"!==e.key&&" "!==e.key||t()};return o===n?r.a.createElement("li",{key:n},r.a.createElement("button",{className:"embedSpinner",onClick:t,onKeyDown:a,style:{cursor:"pointer",background:"none",border:"none",padding:0},type:"button"},"[".concat(i,"] ").concat(e),r.a.createElement(l.a,{height:15,width:15}))):r.a.createElement("li",{key:n},r.a.createElement("button",{className:"embedSpinner",onClick:t,onKeyDown:a,style:{cursor:"pointer",background:"none",border:"none",padding:0},type:"button"},"[".concat(i,"] ").concat(e)))},k={embeddedFiles:[],fileAttachmentAnnotations:[]},E=function(e){var t=e.initialFiles,n=void 0===t?k:t,l=w(Object(i.a)(),1)[0],g=Object(d.d)(),v=w(Object(o.useState)(n),2),x=v[0],E=v[1],C=Object(d.e)(f.a.getIsMultiTab),T=Object(d.e)(f.a.getTabManager),A=w(Object(o.useState)(null),2),_=A[0],j=A[1];if(Object(o.useEffect)((function(){var e=function(){var e=y(b().m((function e(){var t;return b().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Object(a.b)();case 1:t=e.v,E(t);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();return u.a.addEventListener("annotationChanged",e),u.a.addEventListener("documentLoaded",e),e(),function(){u.a.removeEventListener("annotationChanged",e),u.a.removeEventListener("documentLoaded",e)}}),[]),0===x.embeddedFiles.length&&0===Object.entries(x.fileAttachmentAnnotations).length)return r.a.createElement("div",{className:"fileAttachmentPanel"},r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(s.a,{className:"empty-icon",glyph:m.c[m.e.FILE_ATTACHMENT].icon}),r.a.createElement("div",{className:"empty-message"},l("message.noAttachments"))));var P=function(){var e=y(b().m((function e(t){return b().w((function(e){for(;;)switch(e.n){case 0:if(!C){e.n=1;break}g(p.a.openElement(h.a.LOADING_MODAL)),setTimeout(y(b().m((function e(){var n,o,r;return b().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getFileData();case 1:return n=e.v,o=O(t.filename),e.n=2,T.addTab(n,{filename:o});case 2:return r=e.v,g(p.a.closeElement(h.a.LOADING_MODAL)),g(p.a.closeElement(h.a.LEFT_PANEL)),e.n=3,T.setActiveTab(r);case 3:return e.a(2)}}),e)}))),100),e.n=2;break;case 1:return e.a(2,u.a.getAnnotationManager().trigger("annotationDoubleClicked",t));case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();return r.a.createElement("div",{className:"fileAttachmentPanel"},r.a.createElement("div",{className:"section"},x.embeddedFiles.length?r.a.createElement("h2",{className:"title"},l("message.embeddedFiles")):null,r.a.createElement("ul",{className:"downloadable"},x.embeddedFiles.map((function(e,t){return S(O(e.filename),(function(){j("embeddedFile_".concat(t)),Object(a.a)(e.fileObject).then((function(t){Object(c.saveAs)(t,O(e.filename))})).finally((function(){j(null)}))}),"embeddedFile_".concat(t),_)})))),Object.entries(x.fileAttachmentAnnotations).map((function(e){var t=w(e,2),n=t[0],o=t[1];return r.a.createElement("div",{key:n,className:"section"},r.a.createElement("h2",{className:"title"},l("message.pageNum")," ",n),r.a.createElement("ul",{className:"downloadable"},o.map((function(e,t){return S(O(e.filename),y(b().m((function t(){return b().w((function(t){for(;;)switch(t.n){case 0:return u.a.setCurrentPage(e.PageNumber),u.a.selectAnnotation(e),t.n=1,P(e);case 1:return t.a(2)}}),t)}))),"fileAttachmentAnnotation_".concat(t))}))))})))};t.default=E},1844:function(e,t,n){"use strict";var o=n(1605),r=n(1587);var i=function(){if(!arguments.length)return[];var e=arguments[0];return Object(r.a)(e)?e:[e]};var a=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var l=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1};var c=function(e,t){return!!(null==e?0:e.length)&&l(e,t,0)>-1};var s=function(e,t,n,o,r,l){var s=1&n,u=e.length,d=t.length;if(u!=d&&!(s&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,b=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],v=t[h];if(o)var y=s?o(v,g,h,t,e,l):o(g,v,h,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(b){if(!a(t,(function(e,t){if(!c(b,t)&&(g===e||r(g,e,n,o,l)))return b.push(t)}))){m=!1;break}}else if(g!==v&&!r(g,v,n,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m};var u=function(e,t){return e===t||e!=e&&t!=t},d=n(1625),f=Object.prototype.hasOwnProperty;var p=function(e,t,n,o,r,i){var a=1&n,l=Object(d.a)(e),c=l.length;if(c!=Object(d.a)(t).length&&!a)return!1;for(var s=c;s--;){var u=l[s];if(!(a?u in t:f.call(t,u)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++s<c;){var g=e[u=l[s]],v=t[u];if(o)var y=a?o(v,g,u,t,e,i):o(g,v,u,e,t,i);if(!(void 0===y?g===v||r(g,v,n,o,i):y)){m=!1;break}b||(b="constructor"==u)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return i.delete(e),i.delete(t),m},h=n(1623),m=n(1603),b=n(1643),g="[object Object]",v=Object.prototype.hasOwnProperty;var y=function(e,t,n,i,a,l){var c=Object(r.a)(e),d=Object(r.a)(t),f=c?"[object Array]":Object(h.a)(e),y=d?"[object Array]":Object(h.a)(t),w=(f="[object Arguments]"==f?g:f)==g,x=(y="[object Arguments]"==y?g:y)==g,O=f==y;if(O&&Object(m.a)(e)){if(!Object(m.a)(t))return!1;c=!0,w=!1}if(O&&!w)return l||(l=new o.a),c||Object(b.a)(e)?s(e,t,n,i,a,l):u(e,t,f,n,i,a,l);if(!(1&n)){var S=w&&v.call(e,"__wrapped__"),k=x&&v.call(t,"__wrapped__");if(S||k){var E=S?e.value():e,C=k?t.value():t;return l||(l=new o.a),a(E,C,n,i,l)}}return!!O&&(l||(l=new o.a),p(e,t,n,i,a,l))},w=n(1607);var x=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Object(w.a)(t)&&!Object(w.a)(n)?t!=t&&n!=n:y(t,n,o,r,e,i))};t.a=function(e,t){return x(e,t)}},1869:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n(1593),i=n(1722);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){var t=Object(r.a)().getMonitor(),n=a(Object(i.a)(t,e),2),l=n[0],c=n[1];return Object(o.useEffect)((function(){return t.subscribeToOffsetChange(c)})),Object(o.useEffect)((function(){return t.subscribeToStateChange(c)})),l}},1876:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(75),r=n(2080),i=n(2078),a=n(2079),l=n(1573),c=n(1664);n(27),n(76),n(85),n(24),n(37),n(8),n(56),n(29);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=["canDrop","hover","drop"],f=function(){function e(t,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"props",null),u(this,"spec",void 0),u(this,"monitor",void 0),u(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=o}var t,n,o;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,Object(l.b)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&s(t.prototype,n),o&&s(t,o),e}();function p(e){return Object.keys(e).forEach((function(t){Object(o.a)(d.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',d.join(", "),t),Object(o.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new f(e,t,n)}}function h(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DropTarget","type, spec, collect[, options]",e,t,n,s);var u=e;"function"!=typeof e&&(Object(o.a)(Object(l.f)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),u=function(){return e}),Object(o.a)(Object(l.d)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var d=p(t);return Object(o.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(o.a)(Object(l.d)(s),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return Object(c.a)({containerDisplayName:"DropTarget",createHandler:d,registerHandler:r.b,createMonitor:function(e){return new i.a(e)},createConnector:function(e){return new a.a(e)},DecoratedComponent:e,getType:u,collect:n,options:s})}}},1877:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(75),r=n(2080),i=n(2082),a=n(2081),l=n(1573),c=n(1664);n(27),n(76),n(85),n(24),n(37),n(8),n(29);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=["canDrag","beginDrag","isDragging","endDrag"],f=["beginDrag"],p=function(){function e(t,n,o){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"props",null),u(this,"spec",void 0),u(this,"monitor",void 0),u(this,"ref",void 0),u(this,"beginDrag",(function(){if(r.props)return r.spec.beginDrag(r.props,r.monitor,r.ref.current)})),this.spec=t,this.monitor=n,this.ref=o}var t,n,o;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,Object(l.b)(this.ref))}}])&&s(t.prototype,n),o&&s(t,o),e}();function h(e){return Object.keys(e).forEach((function(t){Object(o.a)(d.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',d.join(", "),t),Object(o.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),f.forEach((function(t){Object(o.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new p(e,t,n)}}function m(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DragSource","type, spec, collect[, options]",e,t,n,s);var u=e;"function"!=typeof e&&(Object(o.a)(Object(l.f)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),u=function(){return e}),Object(o.a)(Object(l.d)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var d=h(t);return Object(o.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(o.a)(Object(l.d)(s),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return Object(c.a)({containerDisplayName:"DragSource",createHandler:d,registerHandler:r.a,createConnector:function(e){return new i.a(e)},createMonitor:function(e){return new a.a(e)},DecoratedComponent:e,getType:u,collect:n,options:s})}}},2044:function(e,t,n){var o=n(35),r=n(2045);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},2045:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.LeftPanelTabs{display:flex;flex:1;border-radius:4px;border:1px solid var(--border)}.LeftPanelTabs .Button{flex-grow:1;height:26px;margin:0;border-radius:0}.LeftPanelTabs .Button:not(:last-child){border-inline-end:1px solid var(--divider)}.LeftPanelTabs .Button:first-child{border-bottom-left-radius:4px;border-top-left-radius:4px}.LeftPanelTabs .Button:last-child{border-bottom-right-radius:4px;border-top-right-radius:4px}.LeftPanelTabs .Button .Icon{width:19px;height:19px}.LeftPanelTabs .Button:hover{background:var(--popup-button-hover)}.LeftPanelTabs .Button.active{background:var(--popup-button-active)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2046:function(e,t,n){var o=n(35),r=n(2047);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},2047:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.LeftPanel .Panel{overflow:auto;-webkit-overflow-scrolling:touch;flex:1;flex-direction:column}.LeftPanel{z-index:65;display:flex!important;flex-direction:column;background-color:var(--panel-background);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;position:fixed;inset-inline-start:0;transition:transform .3s ease-in-out;max-width:calc(100% - 16px);height:calc(100% - 40px)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{max-width:100%;position:fixed;inset-block-start:0;inset-inline-start:0;height:100%;width:100%;z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{max-width:100%;position:fixed;inset-block-start:0;inset-inline-start:0;height:100%;width:100%;z-index:95}}.LeftPanel.logo-bar-enabled{height:calc(100% - 24px)}.LeftPanel.tools-header-open{height:calc(100% - 80px)}.LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 104px)}.LeftPanel.multi-tab-active{height:calc(100% - 120px)}.LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 140px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active{height:calc(100% - 140px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@media(min-width:901px){.App:not(.is-web-component) .LeftPanel{height:calc(100% - 40px)}.App:not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 64px)}.App:not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 74px)}.App:not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 98px)}.App:not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 120px)}.App:not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}}@container (min-width: 901px){.LeftPanel{height:calc(100% - 40px)}.LeftPanel.logo-bar-enabled{height:calc(100% - 64px)}.LeftPanel.tools-header-open{height:calc(100% - 74px)}.LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 98px)}.LeftPanel.multi-tab-active{height:calc(100% - 120px)}.LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{height:calc(100% - 37px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.ModularPanel{height:calc(100% - 49px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 61px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 76px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.ModularPanel{height:calc(100% - 98px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 100px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 70px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.ModularPanel{height:calc(100% - 85px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 139px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.tools-header-open{height:calc(100% - 110px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.tools-header-open.ModularPanel{height:calc(100% - 134px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden{height:100%}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.logo-bar-enabled{height:calc(100% - 24px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.multi-tab-active{height:calc(100% - 36px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{height:calc(100% - 37px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.ModularPanel{height:calc(100% - 49px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.logo-bar-enabled{height:calc(100% - 61px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open{height:calc(100% - 76px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.ModularPanel{height:calc(100% - 98px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 100px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active{height:calc(100% - 70px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.ModularPanel{height:calc(100% - 85px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 139px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.tools-header-open{height:calc(100% - 110px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.tools-header-open.ModularPanel{height:calc(100% - 134px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden{height:100%}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.logo-bar-enabled{height:calc(100% - 24px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.multi-tab-active{height:calc(100% - 36px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{height:calc(100% - 53px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 77px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{height:calc(100% - 53px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.logo-bar-enabled{height:calc(100% - 77px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 104px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 128px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open{height:calc(100% - 104px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 128px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{border-inline-end:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{border-inline-end:1px solid var(--side-panel-border)}}.LeftPanel.closed{transform:translateX(-100%)}.LeftPanel.office-editor .left-panel-container{padding:0}.LeftPanel .left-panel-container{display:flex;flex-direction:column;padding:16px 16px 0}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container{padding-top:0;width:100%;min-width:100%}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container{display:flex;align-items:center;justify-content:flex-end;height:64px;width:100%;padding-inline-end:5px;inset-block-start:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container .close-icon-container{cursor:pointer}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container .close-icon-container .close-icon{width:24px;height:24px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container{padding-top:0;width:100%;min-width:100%}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container{display:flex;align-items:center;justify-content:flex-end;height:64px;width:100%;padding-inline-end:5px;inset-block-start:0}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container .close-icon-container{cursor:pointer}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container .close-icon-container .close-icon{width:24px;height:24px}}.LeftPanel .left-panel-container .left-panel-header{display:flex;align-items:center;margin-bottom:16px;margin-inline-start:16px;margin-top:0;margin-inline-end:8px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2111:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(21),n(20),n(12),n(44),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(6),c=(n(30),n(38),n(31),n(26),n(28),n(40),n(24),n(42),n(43),n(84),n(2)),s=n.n(c),u=n(1556),d=n(41),f=n(1768),p=n(5),h=n(3),m=n(4);n(2044);function b(e){return(b="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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function y(e,t,n){return t=w(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}var k=function(e){function t(){var e;g(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return O(e=y(this,t,[].concat(o)),"isActive",(function(t){return e.props.activePanel===t})),e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.isLeftPanelOpen,o=t.showPortfolio,i=t.customPanels,a=t.isLeftPanelTabsDisabled,l=t.setActiveLeftPanel,c=t.notesInLeftPanel,s=t.openElement;return a?null:r.a.createElement(f.a,{className:"LeftPanelTabs",dataElement:"leftPanelTabs"},o&&r.a.createElement(d.a,{isActive:this.isActive(p.a.PORTFOLIO_PANEL),dataElement:p.a.PORTFOLIO_PANEL_BUTTON,img:"icon-compare-change",onClick:function(){return l(p.a.PORTFOLIO_PANEL)},title:"portfolio.portfolioPanelTitle",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("thumbnailsPanel"),dataElement:"thumbnailsPanelButton",img:"icon-panel-thumbnail-line",onClick:function(){return l("thumbnailsPanel")},title:"component.thumbnailsPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("outlinesPanel"),dataElement:p.a.OUTLINE_PANEL_BUTTON,img:"icon-panel-outlines",onClick:function(){return l("outlinesPanel")},title:"component.outlinesPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("layersPanel"),dataElement:"layersPanelButton",img:"ic_layers_24px",onClick:function(){return l("layersPanel")},title:"component.layersPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("bookmarksPanel"),dataElement:"bookmarksPanelButton",img:"ic_bookmarks_black_24px",onClick:function(){return l("bookmarksPanel")},title:"component.bookmarksPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("signaturePanel"),dataElement:"signaturePanelButton",img:"icon-tool-signature",onClick:function(){return l("signaturePanel")},title:"component.signaturePanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("attachmentPanel"),dataElement:"attachmentPanelButton",img:"ic_fileattachment_24px",onClick:function(){return l("attachmentPanel")},title:"component.attachmentPanel",tabIndex:n?0:-1}),c&&r.a.createElement(d.a,{isActive:this.isActive(p.a.NOTES_PANEL),dataElement:"notesPanelButton",img:"icon-header-chat-line",onClick:function(){s(p.a.NOTES_PANEL),l(p.a.NOTES_PANEL)},title:"component.notesPanel"}),i.map((function(t,n){var o=t.panel,a=t.tab;return r.a.createElement(r.a.Fragment,{key:n},r.a.createElement(d.a,{key:a.dataElement||n,isActive:e.isActive(o.dataElement),dataElement:a.dataElement,img:a.img,onClick:function(){return l(o.dataElement)},title:a.title}),n<i.length-1&&r.a.createElement("div",{className:"divider"}))})))}}])&&v(n.prototype,o),i&&v(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.Component);O(k,"propTypes",{isLeftPanelOpen:s.a.bool,showPortfolio:s.a.bool,activePanel:s.a.string.isRequired,disabledCustomPanelTabs:s.a.array.isRequired,customPanels:s.a.array.isRequired,isLeftPanelTabsDisabled:s.a.bool,setActiveLeftPanel:s.a.func.isRequired,t:s.a.func.isRequired});var E={setActiveLeftPanel:h.a.setActiveLeftPanel,openElement:h.a.openElement},C=Object(l.b)((function(e){return{isLeftPanelOpen:m.a.isElementOpen(e,"leftPanel"),activePanel:m.a.getActiveLeftPanel(e),customPanels:m.a.getCustomPanels(e),disabledCustomPanelTabs:m.a.getDisabledCustomPanelTabs(e),isLeftPanelTabsDisabled:m.a.isElementDisabled(e,"leftPanelTabs"),notesInLeftPanel:m.a.getNotesInLeftPanel(e)}}),E)(Object(u.a)()(k)),T=n(1779),A=n(1777),_=n(1781),j=n(1780),P=n(489),N=n(1782),I=n(1718),R=n(184),q=n(221),L=n(51),M=n(1778),D=n(1),z=n(61),B=n(45);n(2046);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var U=function(){var e=Object(z.b)(),t=Object(z.c)(),n=F(Object(l.e)((function(e){return[m.a.getCurrentToolbarGroup(e),m.a.isElementOpen(e,"header"),m.a.isElementOpen(e,"toolsHeader"),m.a.isElementOpen(e,"officeEditorToolsHeader"),m.a.isElementOpen(e,p.a.LEFT_PANEL),m.a.isElementDisabled(e,p.a.LEFT_PANEL),m.a.getActiveLeftPanel(e),m.a.getCustomPanels(e),m.a.getLeftPanelWidth(e),m.a.getNotesInLeftPanel(e),m.a.isInDesktopOnlyMode(e),m.a.getIsMultiTab(e),!m.a.isElementDisabled(e,p.a.LOGO_BAR),m.a.getFeatureFlags(e),m.a.getTopHeadersHeight(e),m.a.getBottomHeadersHeight(e),m.a.getPortfolio(e),m.a.getIsOfficeEditorMode(e)]}),l.c),18),o=n[0],i=n[1],c=n[2],s=n[3],u=n[4],d=n[5],f=n[6],b=n[7],g=n[8],v=n[9],y=n[10],w=n[11],x=n[12],O=n[13],S=n[14],k=n[15],E=n[16],H=n[17],U=Object(l.d)(),W=function(e){return e===f?"flex":"none"},G={};!y&&e||(G={width:"".concat(g,"px"),minWidth:"".concat(g,"px")});var V=!(!u||d),K=c&&"toolbarGroup-View"!==o,$=!i&&!K,Y={display:"none"};if(O.customizableUI){var Z=S+k;Y.height="calc(100% - ".concat(Z,"px)")}return r.a.createElement("div",{className:a()({Panel:!0,LeftPanel:!0,closed:!V,"tools-header-open":K||s,"tools-header-and-header-hidden":$,"thumbnail-panel-active":"thumbnailsPanel"===f,"outlines-panel-active":"outlinesPanel"===f,"multi-tab-active":w,"logo-bar-enabled":x,"office-editor":H}),onDrop:function(e){e.preventDefault()},onDragOver:function(e){e.preventDefault()},"data-element":p.a.LEFT_PANEL,style:Y},r.a.createElement("div",{className:"left-panel-container",style:G},!y&&e&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){U(h.a.closeElements(["leftPanel"]))}},r.a.createElement(L.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),H?r.a.createElement(M.default,{currentLeftPanelWidth:g}):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"left-panel-header"},r.a.createElement(C,{showPortfolio:E.length>0})),f===p.a.PORTFOLIO_PANEL&&E.length>0&&r.a.createElement(T.default,null),"thumbnailsPanel"===f&&r.a.createElement(A.default,null),"outlinesPanel"===f&&r.a.createElement(_.default,null),"bookmarksPanel"===f&&r.a.createElement(j.default,null),"layersPanel"===f&&r.a.createElement(P.a,null),D.a.isFullPDFEnabled()&&"signaturePanel"===f&&r.a.createElement(I.default,null),"attachmentPanel"===f&&r.a.createElement(N.default,null),v&&"notesPanel"===f&&r.a.createElement(M.default,{currentLeftPanelWidth:g}),b.map((function(e,t){var n=e.panel;return r.a.createElement(R.a,{key:n.dataElement||t,className:"Panel ".concat(n.dataElement),display:W(n.dataElement),dataElement:n.dataElement,render:n.render})})))),(y||!t)&&r.a.createElement(q.a,{dataElement:"leftPanelResizeBar",minWidth:264,onResize:function(e){var t=window.innerWidth;B.e&&(t-=30),U(h.a.setLeftPanelWidth(Math.min(e,t)))}}))};t.default=U},630:function(e,t,n){"use strict";var o;function r(){return o||((o=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),o}n.d(t,"a",(function(){return r}))}}]);
|
|
3
|
+
e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:r}=Object;let{freeze:i,seal:a,create:l}=Object,{apply:c,construct:s}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t,n){return e.apply(t,n)}),s||(s=function(e,t){return new e(...t)});const u=E(Array.prototype.forEach),d=E(Array.prototype.lastIndexOf),f=E(Array.prototype.pop),p=E(Array.prototype.push),h=E(Array.prototype.splice),m=E(String.prototype.toLowerCase),b=E(String.prototype.toString),g=E(String.prototype.match),v=E(String.prototype.replace),y=E(String.prototype.indexOf),w=E(String.prototype.trim),x=E(Object.prototype.hasOwnProperty),O=E(RegExp.prototype.test),S=(k=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(k,t)});var k;function E(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return c(e,t,o)}}function C(e,o){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;t&&t(e,null);let i=o.length;for(;i--;){let t=o[i];if("string"==typeof t){const e=r(t);e!==t&&(n(o)||(o[i]=e),t=e)}e[t]=!0}return e}function T(e){for(let t=0;t<e.length;t++)x(e,t)||(e[t]=null);return e}function A(t){const n=l(null);for(const[o,r]of e(t))x(t,o)&&(Array.isArray(r)?n[o]=T(r):r&&"object"==typeof r&&r.constructor===Object?n[o]=A(r):n[o]=r);return n}function _(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return E(n.get);if("function"==typeof n.value)return E(n.value)}e=o(e)}return function(){return null}}const j=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),q=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),L=i(["#text"]),M=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),D=i(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),z=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),B=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\$\{[\w\W]*/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),G=a(/^aria-[\-\w]+$/),V=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=a(/^(?:\w+script|data):/i),$=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),Z=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var X=Object.freeze({__proto__:null,ARIA_ATTR:G,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z,DATA_ATTR:W,DOCTYPE_NAME:Y,ERB_EXPR:H,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:F,TMPLIT_EXPR:U});const Q=1,J=3,ee=7,te=8,ne=9,oe=function(){return"undefined"==typeof window?null:window},re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe();const o=e=>t(e);if(o.version="3.2.6",o.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return o.isSupported=!1,o;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:k,Node:E,Element:T,NodeFilter:F,NamedNodeMap:H=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:W,trustedTypes:G}=n,K=T.prototype,$=_(K,"cloneNode"),Z=_(K,"remove"),ie=_(K,"nextSibling"),ae=_(K,"childNodes"),le=_(K,"parentNode");if("function"==typeof k){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ce,se="";const{implementation:ue,createNodeIterator:de,createDocumentFragment:fe,getElementsByTagName:pe}=r,{importNode:he}=a;let me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof e&&"function"==typeof le&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:be,ERB_EXPR:ge,TMPLIT_EXPR:ve,DATA_ATTR:ye,ARIA_ATTR:we,IS_SCRIPT_OR_DATA:xe,ATTR_WHITESPACE:Oe,CUSTOM_ELEMENT:Se}=X;let{IS_ALLOWED_URI:ke}=X,Ee=null;const Ce=C({},[...j,...P,...N,...R,...L]);let Te=null;const Ae=C({},[...M,...D,...z,...B]);let _e=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),je=null,Pe=null,Ne=!0,Ie=!0,Re=!1,qe=!0,Le=!1,Me=!0,De=!1,ze=!1,Be=!1,Fe=!1,He=!1,Ue=!1,We=!0,Ge=!1;const Ve="user-content-";let Ke=!0,$e=!1,Ye={},Ze=null;const Xe=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qe=null;const Je=C({},["audio","video","img","source","image","track"]);let et=null;const tt=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml";let it=rt,at=!1,lt=null;const ct=C({},[nt,ot,rt],b);let st=C({},["mi","mo","mn","ms","mtext"]),ut=C({},["annotation-xml"]);const dt=C({},["title","style","font","a","script"]);let ft=null;const pt=["application/xhtml+xml","text/html"],ht="text/html";let mt=null,bt=null;const gt=r.createElement("form"),vt=function(e){return e instanceof RegExp||e instanceof Function},yt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!bt||bt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),ft=-1===pt.indexOf(e.PARSER_MEDIA_TYPE)?ht:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===ft?b:m,Ee=x(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,mt):Ce,Te=x(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,mt):Ae,lt=x(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,b):ct,et=x(e,"ADD_URI_SAFE_ATTR")?C(A(tt),e.ADD_URI_SAFE_ATTR,mt):tt,Qe=x(e,"ADD_DATA_URI_TAGS")?C(A(Je),e.ADD_DATA_URI_TAGS,mt):Je,Ze=x(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,mt):Xe,je=x(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,mt):A({}),Pe=x(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,mt):A({}),Ye=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Ie=!1!==e.ALLOW_DATA_ATTR,Re=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,Me=!1!==e.SAFE_FOR_XML,De=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,He=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,We=!1!==e.SANITIZE_DOM,Ge=e.SANITIZE_NAMED_PROPS||!1,Ke=!1!==e.KEEP_CONTENT,$e=e.IN_PLACE||!1,ke=e.ALLOWED_URI_REGEXP||V,it=e.NAMESPACE||rt,st=e.MATHML_TEXT_INTEGRATION_POINTS||st,ut=e.HTML_INTEGRATION_POINTS||ut,_e=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(_e.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&vt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(_e.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(_e.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),He&&(Fe=!0),Ye&&(Ee=C({},L),Te=[],!0===Ye.html&&(C(Ee,j),C(Te,M)),!0===Ye.svg&&(C(Ee,P),C(Te,D),C(Te,B)),!0===Ye.svgFilters&&(C(Ee,N),C(Te,D),C(Te,B)),!0===Ye.mathMl&&(C(Ee,R),C(Te,z),C(Te,B))),e.ADD_TAGS&&(Ee===Ce&&(Ee=A(Ee)),C(Ee,e.ADD_TAGS,mt)),e.ADD_ATTR&&(Te===Ae&&(Te=A(Te)),C(Te,e.ADD_ATTR,mt)),e.ADD_URI_SAFE_ATTR&&C(et,e.ADD_URI_SAFE_ATTR,mt),e.FORBID_CONTENTS&&(Ze===Xe&&(Ze=A(Ze)),C(Ze,e.FORBID_CONTENTS,mt)),Ke&&(Ee["#text"]=!0),De&&C(Ee,["html","head","body"]),Ee.table&&(C(Ee,["tbody"]),delete je.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ce=e.TRUSTED_TYPES_POLICY,se=ce.createHTML("")}else void 0===ce&&(ce=re(G,c)),null!==ce&&"string"==typeof se&&(se=ce.createHTML(""));i&&i(e),bt=e}},wt=C({},[...P,...N,...I]),xt=C({},[...R,...q]),Ot=function(e){let t=le(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});const n=m(e.tagName),o=m(t.tagName);return!!lt[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===rt?"svg"===n:t.namespaceURI===nt?"svg"===n&&("annotation-xml"===o||st[o]):Boolean(wt[n]):e.namespaceURI===nt?t.namespaceURI===rt?"math"===n:t.namespaceURI===ot?"math"===n&&ut[o]:Boolean(xt[n]):e.namespaceURI===rt?!(t.namespaceURI===ot&&!ut[o])&&!(t.namespaceURI===nt&&!st[o])&&!xt[n]&&(dt[n]||!wt[n]):!("application/xhtml+xml"!==ft||!lt[e.namespaceURI]))},St=function(e){p(o.removed,{element:e});try{le(e).removeChild(e)}catch(t){Z(e)}},kt=function(e,t){try{p(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Fe||He)try{St(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){let t=null,n=null;if(Be)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ft&&it===rt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ce?ce.createHTML(e):e;if(it===rt)try{t=(new W).parseFromString(o,ft)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(it,"template",null);try{t.documentElement.innerHTML=at?se:o}catch(e){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),it===rt?pe.call(t,De?"html":"body")[0]:De?t.documentElement:i},Ct=function(e){return de.call(e.ownerDocument||e,e,F.SHOW_ELEMENT|F.SHOW_COMMENT|F.SHOW_TEXT|F.SHOW_PROCESSING_INSTRUCTION|F.SHOW_CDATA_SECTION,null)},Tt=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof H)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},At=function(e){return"function"==typeof E&&e instanceof E};function _t(e,t,n){u(e,e=>{e.call(o,t,n,bt)})}const jt=function(e){let t=null;if(_t(me.beforeSanitizeElements,e,null),Tt(e))return St(e),!0;const n=mt(e.nodeName);if(_t(me.uponSanitizeElement,e,{tagName:n,allowedTags:Ee}),Me&&e.hasChildNodes()&&!At(e.firstElementChild)&&O(/<[/\w!]/g,e.innerHTML)&&O(/<[/\w!]/g,e.textContent))return St(e),!0;if(e.nodeType===ee)return St(e),!0;if(Me&&e.nodeType===te&&O(/<[/\w]/g,e.data))return St(e),!0;if(!Ee[n]||je[n]){if(!je[n]&&Nt(n)){if(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,n))return!1;if(_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))return!1}if(Ke&&!Ze[n]){const t=le(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let o=n.length-1;o>=0;--o){const r=$(n[o],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,ie(e))}}return St(e),!0}return e instanceof T&&!Ot(e)?(St(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!O(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===J&&(t=e.textContent,u([be,ge,ve],e=>{t=v(t,e," ")}),e.textContent!==t&&(p(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t(me.afterSanitizeElements,e,null),!1):(St(e),!0)},Pt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in r||n in gt))return!1;if(Ie&&!Pe[t]&&O(ye,t));else if(Ne&&O(we,t));else if(!Te[t]||Pe[t]){if(!(Nt(e)&&(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,e)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(e))&&(_e.attributeNameCheck instanceof RegExp&&O(_e.attributeNameCheck,t)||_e.attributeNameCheck instanceof Function&&_e.attributeNameCheck(t))||"is"===t&&_e.allowCustomizedBuiltInElements&&(_e.tagNameCheck instanceof RegExp&&O(_e.tagNameCheck,n)||_e.tagNameCheck instanceof Function&&_e.tagNameCheck(n))))return!1}else if(et[t]);else if(O(ke,v(n,Oe,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==y(n,"data:")||!Qe[e])if(Re&&!O(xe,v(n,Oe,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&g(e,Se)},It=function(e){_t(me.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Tt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let r=t.length;for(;r--;){const i=t[r],{name:a,namespaceURI:l,value:c}=i,s=mt(a),d=c;let p="value"===a?d:w(d);if(n.attrName=s,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,_t(me.uponSanitizeAttribute,e,n),p=n.attrValue,!Ge||"id"!==s&&"name"!==s||(kt(a,e),p=Ve+p),Me&&O(/((--!?|])>)|<\/(style|title)/i,p)){kt(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){kt(a,e);continue}if(!qe&&O(/\/>/i,p)){kt(a,e);continue}Le&&u([be,ge,ve],e=>{p=v(p,e," ")});const h=mt(e.nodeName);if(Pt(h,s,p)){if(ce&&"object"==typeof G&&"function"==typeof G.getAttributeType)if(l);else switch(G.getAttributeType(h,s)){case"TrustedHTML":p=ce.createHTML(p);break;case"TrustedScriptURL":p=ce.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,a,p):e.setAttribute(a,p),Tt(e)?St(e):f(o.removed)}catch(t){kt(a,e)}}else kt(a,e)}_t(me.afterSanitizeAttributes,e,null)},Rt=function e(t){let n=null;const o=Ct(t);for(_t(me.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)_t(me.uponSanitizeShadowNode,n,null),jt(n),It(n),n.content instanceof s&&e(n.content);_t(me.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(at=!e,at&&(e="\x3c!--\x3e"),"string"!=typeof e&&!At(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(ze||yt(t),o.removed=[],"string"==typeof e&&($e=!1),$e){if(e.nodeName){const t=mt(e.nodeName);if(!Ee[t]||je[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof E)n=Et("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===Q&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Fe&&!Le&&!De&&-1===e.indexOf("<"))return ce&&Ue?ce.createHTML(e):e;if(n=Et(e),!n)return Fe?null:Ue?se:""}n&&Be&&St(n.firstChild);const c=Ct($e?e:n);for(;i=c.nextNode();)jt(i),It(i),i.content instanceof s&&Rt(i.content);if($e)return e;if(Fe){if(He)for(l=fe.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Te.shadowroot||Te.shadowrootmode)&&(l=he.call(a,l,!0)),l}let d=De?n.outerHTML:n.innerHTML;return De&&Ee["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&O(Y,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Le&&u([be,ge,ve],e=>{d=v(d,e," ")}),ce&&Ue?ce.createHTML(d):d},o.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yt(e),ze=!0},o.clearConfig=function(){bt=null,ze=!1},o.isValidAttribute=function(e,t,n){bt||yt({});const o=mt(e),r=mt(t);return Pt(o,r,n)},o.addHook=function(e,t){"function"==typeof t&&p(me[e],t)},o.removeHook=function(e,t){if(void 0!==t){const n=d(me[e],t);return-1===n?void 0:h(me[e],n,1)[0]}return f(me[e])},o.removeHooks=function(e){me[e]=[]},o.removeAllHooks=function(){me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}()}()},1691:function(e,t,n){var o=n(35),r=n(1692);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1692:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".reply-attachment-list{display:flex;flex-direction:column;cursor:default}.reply-attachment-list .reply-attachment{background-color:var(--gray-1);border-radius:4px;cursor:pointer;pointer-events:auto}.reply-attachment-list .reply-attachment:not(:last-child){margin-bottom:8px}.reply-attachment-list .reply-attachment .reply-attachment-preview{width:100%;max-height:80px;display:flex;justify-content:center}.reply-attachment-list .reply-attachment .reply-attachment-preview.dirty{position:relative;margin-bottom:15px}.reply-attachment-list .reply-attachment .reply-attachment-preview img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}.reply-attachment-list .reply-attachment .reply-attachment-preview .reply-attachment-preview-message{font-size:11px;color:var(--error-text-color);position:absolute;inset-block-end:-15px;inset-inline-start:10px}.reply-attachment-list .reply-attachment .reply-attachment-info{display:flex;align-items:center;height:40px;padding:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-attachment-icon{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .reply-file-name{height:16px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-inline-start:8px;margin-inline-end:8px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button{height:24px;min-height:24px;width:24px;min-width:24px}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button:hover{background-color:var(--blue-1)}.reply-attachment-list .reply-attachment .reply-attachment-info .attachment-button .Icon{height:16px;width:16px}",""])},1693:function(e,t,n){var o=n(35),r=n(1694);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1694:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{cursor:default;background:var(--disabled-button-color);color:var(--primary-button-text)}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent{--note-content-right-padding-width:12px;position:relative;display:flex;flex-direction:column;align-items:left;flex:1;color:var(--text-color);padding-bottom:12px;pointer-events:none}.NoteContent.isReply{padding-bottom:0}.NoteContent.unread.isReply{background:rgba(0,165,228,.08)}.NoteContent.unread.clicked .author-and-time span{font-weight:400}.NoteContent.unread .author-and-time span{font-weight:700}.NoteContent .container{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text;padding-inline-start:52px;padding-inline-end:var(--note-content-right-padding-width)}.NoteContent .container>*{pointer-events:all}.NoteContent .container-reply{margin-top:8px;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text;cursor:text}.NoteContent .edit-content{margin-top:7px;display:flex;flex-direction:column;position:relative;flex:1;padding-inline-start:52px;padding-inline-end:12px;padding-bottom:12px;pointer-events:auto}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.NoteContent .edit-content{flex:none}}.NoteContent .edit-content textarea{width:100%;padding-inline-start:8px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;resize:none;overflow:hidden;box-sizing:border-box}.NoteContent .edit-content textarea:focus{outline:none;border:1px solid var(--focus-border)}.NoteContent .edit-content textarea::-moz-placeholder{color:var(--placeholder-text)}.NoteContent .edit-content textarea::placeholder{color:var(--placeholder-text)}.NoteContent .edit-content .edit-buttons{display:flex;flex-direction:row;justify-content:flex-end;margin-top:8px}.NoteContent .edit-content .edit-buttons>div{margin-inline-end:4px}.NoteContent .edit-content .edit-buttons .save-button{background-color:transparent;cursor:pointer;flex-shrink:0;background:var(--primary-button);border-radius:4px;width:-moz-fit-content;width:fit-content;border:none;height:28px;display:flex;align-items:center;justify-content:center;position:relative;color:var(--primary-button-text);padding:0 13px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .save-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .save-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .save-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .save-button:hover{background:var(--primary-button-hover);color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .save-button.disabled{background:var(--gray-6)!important;border-color:var(--gray-6)!important;cursor:not-allowed}.NoteContent .edit-content .edit-buttons .save-button.disabled span{color:var(--primary-button-text)}.NoteContent .edit-content .edit-buttons .cancel-button{border:none;background-color:transparent;color:var(--secondary-button-text);padding:0 10px;width:-moz-fit-content;width:fit-content;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-inline-end:2px}:host(:not([data-tabbing=true])) .NoteContent .edit-content .edit-buttons .cancel-button,html:not([data-tabbing=true]) .NoteContent .edit-content .edit-buttons .cancel-button{outline:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .NoteContent .edit-content .edit-buttons .cancel-button{font-size:13px}}.NoteContent .edit-content .edit-buttons .cancel-button:hover{color:var(--secondary-button-hover)}.NoteContent .reply-content{padding-inline-start:0}.NoteContent .contents{white-space:pre-wrap;color:var(--text-color);margin-inline-end:5px;padding:0;word-break:normal;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;user-select:text}.NoteContent .contents .highlight{background:#fffc95;color:#333}.NoteContent .highlight{background:#fffc95}.NoteContent .selected-text-preview{padding-inline-start:52px;padding-top:8px;pointer-events:auto}.NoteContent .reply-attachment-list{margin-bottom:8px}.NoteContent.modular-ui .highlight{font-weight:700;color:var(--blue-5);background:none}.NoteContent.modular-ui .edit-content .edit-buttons .save-button.disabled{border:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1695:function(e,t,n){var o=n(35),r=n(1696);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1696:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.reply-area-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;margin-bottom:0}.reply-area-container .reply-attachment-list{margin:12px 12px 0}.reply-area-container .reply-area-with-button{display:flex}.reply-area-container .reply-area-with-button .reply-area{position:relative;flex:1;margin:12px 17px 12px 12px;border-radius:4px;align-items:center}.reply-area-container .reply-area-with-button .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-container .reply-area-with-button .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-container .reply-area-with-button .reply-button-container{display:flex;flex-direction:column;justify-content:flex-end}.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-container .reply-area-with-button .reply-button-container .reply-button,html:not([data-tabbing=true]) .reply-area-container .reply-area-with-button .reply-button-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-container .reply-area-with-button .reply-button-container .reply-button{width:80px}}.reply-area-container .reply-area-with-button .reply-button-container .reply-button:hover{background:var(--blue-1)}.reply-area-container .reply-area-with-button .reply-button-container .reply-button.disabled{cursor:not-allowed}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1697:function(e,t,n){var o=n(35),r=n(1698);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1698:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@keyframes bottom-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes up-bottom{0%{transform:translateY(0)}to{transform:translateY(100%)}}@media print{#line-connector-root{opacity:0}}#line-connector-root{position:relative;z-index:69}.horizontalLine{height:2px}.horizontalLine,.verticalLine{background-color:rgba(30,120,235,.5);position:fixed}.verticalLine{width:2px}.arrowHead{position:absolute;inset-block-start:0;inset-inline-start:0;margin:auto;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-inline-end:7px solid rgba(30,120,235,.5);transform:translateX(-100%) translateY(-50%) translateY(1px)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1699:function(e,t,n){var o=n(35),r=n(1700);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1700:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Note{padding:0;border:none;background-color:transparent;display:block;text-align:start;border-radius:4px;box-shadow:0 0 3px 0 var(--note-box-shadow);margin-bottom:8px;margin-inline-start:2px;background:var(--component-background);cursor:pointer;position:relative}:host(:not([data-tabbing=true])) .Note,html:not([data-tabbing=true]) .Note{outline:none}.Note.unread{border:1.2px solid #00a5e4}.Note.expanded{box-shadow:0 4px 16px var(--note-box-shadow-expanded),0 0 4px 0 var(--note-box-shadow)}.Note.is-multi-selected{box-shadow:0 4px 16px rgba(134,142,150,.24),0 0 4px 0 var(--note-box-shadow)}.Note.disabled{opacity:.5;pointer-events:none}.Note .note-button{position:absolute;width:100%;height:100%;inset-block-start:0;inset-inline-start:0}.Note .mark-all-read-button{background:#00a5e4;text-align:center;color:#fff;height:16px;font-size:12px;width:100%;border-radius:0}.Note .divider{height:1px;width:100%;background:var(--divider)}.Note .reply-divider{background:var(--reply-divider);height:1px;width:100%}.Note .replies{margin-inline-start:52px;padding-bottom:12px}.Note .reply{padding-inline-start:12px;padding-bottom:24px;border-inline-start:1px solid var(--reply-divider)}.Note .reply:last-of-type{padding-bottom:0}.Note .group-section{margin-inline-start:52px;padding-bottom:12px;display:flex;flex-direction:column;grid-row-gap:4px;row-gap:4px;padding-inline-end:12px}.Note .group-section.modular-ui .group-child:hover{border:none;box-shadow:inset 0 0 0 1px var(--blue-6);background:var(--faded-component-background);border-radius:4px}.Note .text-button{color:var(--secondary-button-text);display:flex;position:relative;width:auto;height:auto;flex-direction:row-reverse;justify-content:flex-end}.Note .text-button .Icon{color:var(--secondary-button-text);height:18px;width:18px}.Note .group-child{position:relative;width:auto;height:auto;display:block;text-align:start;padding-top:4px;padding-bottom:4px}.Note .group-child:hover{background:var(--view-header-button-hover)}.Note .group-child .NoteContent{padding-bottom:0}.Note:focus{outline:none}.Note.focus-visible,.Note:focus-visible{outline:var(--focus-visible-outline)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1701:function(e,t,n){"use strict";n(9),n(10),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56);var o=n(0),r=n.n(o),i=n(6),a=n(4);function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var l=o&&o.prototype instanceof s?o:s,u=Object.create(l.prototype);return c(u,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),u}var a={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var f=[][o]?t(t([][o]())):(c(t={},o,(function(){return this})),t),p=d.prototype=s.prototype=Object.create(f);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,c(e,r,"GeneratorFunction")),e.prototype=Object.create(p),e}return u.prototype=d,c(p,"constructor",d),c(d,"constructor",u),u.displayName="GeneratorFunction",c(d,r,"GeneratorFunction"),c(p),c(p,r,"Generator"),c(p,o,(function(){return this})),c(p,"toString",(function(){return"[object Generator]"})),(l=function(){return{w:i,m:h}})()}function c(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(c=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){c(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function s(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}t.a=function(e){var t=e.annotationId,n=e.addAttachments,o=Object(i.e)((function(e){return a.a.getReplyAttachmentHandler(e)})),c=function(){var e,r=(e=l().m((function e(r){var i,a,c;return l().w((function(e){for(;;)switch(e.n){case 0:if(!(i=r.target.files[0])){e.n=3;break}if(a=i,!o){e.n=2;break}return e.n=1,o(i);case 1:c=e.v,a={url:c,name:i.name,size:i.size,type:i.type};case 2:n(t,[a]);case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){s(i,o,r,a,l,"next",e)}function l(e){s(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return r.apply(this,arguments)}}();return r.a.createElement("input",{id:"reply-attachment-picker",type:"file",style:{display:"none"},onChange:c,onClick:function(e){e.target.value=""}})}},1702:function(e,t,n){var o=n(35),r=n(1703);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1703:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".signature-widget-info{--widget-header-indent:49px;--widget-body-indent:22px;--arrow-width:12px;padding:4px;display:flex;flex-direction:column;font-size:13px;margin-bottom:10px;margin-inline-start:5px;box-sizing:border-box;border:1px solid transparent;cursor:pointer;--border-radius-amount:4px;-moz-border-radius-topleft:var(--border-radius-amount);-moz-border-radius-topright:var(--border-radius-amount);-moz-border-radius-bottomright:var(--border-radius-amount);-moz-border-radius-bottomleft:var(--border-radius-amount);border-radius:var(--border-radius-amount)}.signature-widget-info p+p{margin:1em 0 0}.signature-widget-info p.result-for-header{margin-top:0}.signature-widget-info p.bold{font-weight:700;margin-bottom:4px}.signature-widget-info p.underline{text-decoration:underline}.signature-widget-info .signatureProperties{padding:0;margin:0}.signature-widget-info .signatureProperties:focus,.signature-widget-info .signatureProperties:hover{color:var(--blue-5)}.signature-widget-info .link{cursor:pointer;outline:none;border:0;background-color:transparent;white-space:nowrap}.signature-widget-info .link.focus-visible,.signature-widget-info .link:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .link p{margin:0;padding:0}.signature-widget-info .panel-list-text-container{height:100%}.signature-widget-info .panel-list-text-container .panel-list-label-header .Button span{text-align:start;overflow:visible;white-space:normal;text-overflow:inherit}.signature-widget-info .panel-list-icon-container .Icon{width:20px;height:20px}.signature-widget-info .title{padding-inline-start:4px;font-weight:700;display:flex;align-items:center;margin-block-start:0;margin-block-end:0;min-height:32px;margin-top:-5px;margin-bottom:-5px;overflow:hidden;border:0;background-color:transparent}.signature-widget-info .title button+*,.signature-widget-info .title div+*{margin-inline-start:2px}.signature-widget-info .title .arrow{min-width:var(--arrow-width);transition:transform .1s ease;margin-top:0;background-color:transparent;border:none;padding:0;display:flex;justify-content:center;align-items:center}.signature-widget-info .title .arrow.expanded{transform:rotate(90deg)}.signature-widget-info .title .arrow .Icon{width:var(--arrow-width);height:var(--arrow-width)}.signature-widget-info .title .arrow.hidden{visibility:hidden;padding:23px}.signature-widget-info .title .arrow:hover .Icon{color:var(--blue-6)}.signature-widget-info .title .arrow.focus-visible,.signature-widget-info .title .arrow:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .title .signature-icon{margin-inline-end:5px}.signature-widget-info .title.focus-visible,.signature-widget-info .title:focus-visible{outline:var(--focus-visible-outline)}.signature-widget-info .header{margin-inline-start:32px}.signature-widget-info .header ul{padding-inline-start:24px}.signature-widget-info .header .body>div:first-child>p:first-child,.signature-widget-info .header .body>p:first-child{margin-top:.5em}.signature-widget-info .header .body>div:last-child{margin-bottom:.5em}.signature-widget-info .header-with-arrow{margin-inline-start:0}.signature-widget-info .header-with-arrow ul{margin-inline-start:var(--arrow-width)}.signature-widget-info .header-with-arrow ul li{margin-inline-start:18px}.signature-widget-info .panel-list-label-header button{font-weight:700;font-size:13px}.signature-widget-info .signatureDetails,.signature-widget-info .verificationDetails{cursor:default;padding:0;background-color:transparent;border:none;text-align:start}",""])},1704:function(e,t,n){var o=n(35),r=n(1705);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1705:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.SignaturePanel{z-index:65;transition:transform .3s ease,visibility 0s ease .3s}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel{inset-block-start:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel{inset-block-start:0;width:100%;height:100%}}.open.SignaturePanel{transform:none;visibility:visible;transition:transform .3s ease,visibility 0s ease 0s}.SignaturePanel .empty-panel-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;padding:36px;grid-gap:8px;gap:8px}.SignaturePanel .empty-panel-container .empty-icon{width:60px;height:60px;color:var(--gray-6);fill:var(--gray-6)}.SignaturePanel .empty-panel-container .empty-icon svg{width:60px;height:60px}.SignaturePanel .empty-panel-container .empty-message{text-align:center;max-width:131px;font-size:13px}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel .empty-panel-container .empty-message{line-height:15px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel .empty-panel-container .empty-message{line-height:15px}}.SignaturePanel{margin:0 8px 8px;display:flex;flex-direction:column}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel{width:auto;margin:16px;flex-grow:1;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel{width:auto;margin:16px;flex-grow:1;overflow-y:auto}}.SignaturePanel .center{display:flex;justify-content:center;align-items:center}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .SignaturePanel .signature-widget-info .title .arrow{min-width:auto;padding:3px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .SignaturePanel .signature-widget-info .title .arrow{min-width:auto;padding:3px}}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1706:function(e,t,n){var o=n(35),r=n(1707);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1707:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".TextButton{color:var(--secondary-button-text);width:-moz-fit-content;width:fit-content;padding-inline-start:8px;padding-inline-end:8px}.TextButton .Icon{display:flex;align-items:center}.TextButton svg{color:var(--secondary-button-text);height:14px;width:14px}.TextButton:hover{box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}",""])},1709:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(99),n(142),n(31),n(18),n(26),n(16),n(28),n(40),n(48),n(24),n(47),n(49),n(42),n(37),n(43),n(8),n(91),n(56),n(17),n(19),n(132),n(11),n(29),n(13),n(94);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(2),c=n.n(l),s=n(6),u=n(305),d=n(1571),f=(n(50),n(76),n(171),n(468),n(62),n(115),n(153),n(1618),n(1710)),p=n(106),h=n.n(p),m=n(315),b=n.n(m),g=n(237),v=n.n(g),y=n(1672),w=n.n(y),x=n(1599),O=(n(38),n(59),n(1)),S=n(4),k=n(5),E=n(3),C=(n(1686),n(96));function T(e){return(T="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 A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=T(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=T(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==T(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var I=function(e,t,n){return{icon:t,label:"action.".concat(e.toLowerCase()),title:"action.".concat(e.toLowerCase()),option:e,dataElement:n}},R=[I("Edit","","notePopupEdit"),I("Delete","","notePopupDelete")],q={handleEdit:c.a.func,handleDelete:c.a.func,isEditable:c.a.bool,isDeletable:c.a.bool,noteId:c.a.string};function L(){}function M(e){var t=e.handleEdit,n=void 0===t?L:t,o=e.handleDelete,i=void 0===o?L:o,l=e.isEditable,c=e.isDeletable,d=e.isReply,f=e.noteId,p=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h="".concat(k.a.NOTE_POPUP_FLYOUT,"-").concat(f),m=P(Object(u.a)(),1)[0];if(!l&&!c)return null;var b=a()("overflow note-popup-toggle-trigger"),g=a()("NotePopup options note-popup-options",{"options-reply":d,"modular-ui":p});return r.a.createElement("div",{className:g},r.a.createElement(C.a,{dataElement:"notePopup-".concat(f),className:b,img:"icon-tools-more",title:m("formField.formFieldPopup.options"),toggleElement:h,disabled:!1}),r.a.createElement(D,{flyoutSelector:h,handleClick:function(e){"Edit"===e?n():"Delete"===e&&i()},isEditable:l,isDeletable:c}))}var D=function(e){var t=e.flyoutSelector,n=e.handleClick,r=e.isEditable,i=e.isDeletable,a=Object(s.d)(),l=Object(s.e)((function(e){return S.a.getFlyout(e,t)})),c=P(Object(u.a)(),1)[0];return Object(o.useLayoutEffect)((function(){var e=R;r?i||(e=e.filter((function(e){return"Delete"!==e.option}))):e=e.filter((function(e){return"Edit"!==e.option}));var o={dataElement:t,className:"NotePopupFlyout",items:e.map((function(e){return _(_({},e),{},{label:c(e.label),title:c(e.title),onClick:function(){return n(e.option)}})}))};a(l?E.a.updateFlyout(o.dataElement,o):E.a.addFlyout(o))}),[r,i]),null};D.propTypes={flyoutSelector:c.a.string,handleClick:c.a.func,isEditable:c.a.bool,isDeletable:c.a.bool},M.propTypes=q;var z=M;function B(){return(B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function F(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var G=function(e){var t=H(Object(s.e)((function(e){return[S.a.getActiveDocumentViewerKey(e)]})),1)[0],n=e.annotation,o=e.setIsEditing,i=e.noteIndex,a=H(r.a.useState(O.a.canModify(n)),2),l=a[0],c=a[1],u=H(r.a.useState(O.a.canModifyContents(n)),2),d=u[0],f=u[1];r.a.useEffect((function(){function e(){c(O.a.canModify(n,t)),f(O.a.canModifyContents(n,t))}return e(),O.a.addEventListener("updateAnnotationPermission",e,void 0,t),function(){return O.a.removeEventListener("updateAnnotationPermission",e,t)}}),[n,t]);var p={handleEdit:r.a.useCallback((function(){n instanceof window.Core.Annotations.FreeTextAnnotation&&O.a.getAnnotationManager(t).isFreeTextEditingEnabled()?O.a.getAnnotationManager(t).trigger("annotationDoubleClicked",n):o(!0,i)}),[n,o,i]),handleDelete:r.a.useCallback((function(){O.a.deleteAnnotations([n].concat(F(n.getGroupedChildren())),void 0,t)}),[n]),isEditable:d,isDeletable:l&&!(null!=n&&n.NoDelete),noteId:n?n.Id:""};return r.a.createElement(z,B({},e,p))},V=n(1638);function K(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return $(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Y={annotation:c.a.object.isRequired,handleStateChange:c.a.func};function Z(e){var t=e.annotation,n=e.handleStateChange,o=void 0===n?function(){}:n,i=K(Object(u.a)(),1)[0],a=t.getStatus(),l="icon-annotation-status-".concat(""===a?"none":a.toLowerCase()),c=t.Id;return r.a.createElement(r.a.Fragment,null,r.a.createElement(C.a,{dataElement:"noteState-".concat(c),title:i("option.notesOrder.status"),img:l,toggleElement:"".concat(k.a.NOTE_STATE_FLYOUT,"-").concat(c)}),r.a.createElement(V.a,{noteId:c,handleStateChange:o}))}Z.propTypes=Y;var X=Z,Q=n(1635),J=n(182);function ee(){return(ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}var te={annotation:c.a.object};function ne(e){var t=Object(s.e)((function(e){return S.a.getActiveDocumentViewerKey(e)})),n=Object(s.e)((function(e){return S.a.isElementDisabled(e,"noteState")})),i=e.annotation,a=Object(J.a)(Object(o.useCallback)((function(e){var n=Object(Q.a)(i,e,t);i.addReply(n);var o=O.a.getAnnotationManager(t);o.addAnnotation(n),o.trigger("addReply",[n,i,o.getRootAnnotation(i)])}),[i,t]));return!n&&r.a.createElement("div",null,r.a.createElement(X,ee({handleStateChange:a},e)))}ne.propTypes=te;var oe=ne,re=n(51),ie=n(116);function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return le(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?le(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ce={annotationId:c.a.string,ariaLabel:c.a.string,pendingEditTextMap:c.a.object,pendingReplyMap:c.a.object,pendingAttachmentMap:c.a.object},se=function(e){var t=e.annotationId,n=e.ariaLabel,i=e.pendingEditTextMap,a=e.pendingReplyMap,l=e.pendingAttachmentMap,c=Object(u.a)().t,s=ae(Object(o.useState)(!1),2),d=s[0],f=s[1],p=ae(Object(o.useState)(!1),2),h=p[0],m=p[1],b=ae(Object(o.useState)(!1),2),g=b[0],v=b[1];return Object(o.useEffect)((function(){var e,n,o;f((null===(e=i[t])||void 0===e?void 0:e.length)>0),m((null===(n=a[t])||void 0===n?void 0:n.length)>0),v((null===(o=l[t])||void 0===o?void 0:o.length)>0)}),[i,a,l]),d||h||g?r.a.createElement("div",{"data-element":"unpostedCommentIndicator"},r.a.createElement(ie.a,{content:c("message.unpostedComment")},r.a.createElement("div",null,r.a.createElement(re.a,{className:"type-icon",glyph:"icon-unposted-comment",ariaLabel:n})))):null};se.propTypes=ce;var ue=se,de={annotationId:c.a.string,ariaLabel:c.a.string},fe=function(e){var t=e.annotationId,n=e.ariaLabel,o=Object(s.e)((function(e){return S.a.isElementDisabled(e,"unpostedCommentIndicator")})),i=r.a.useContext(d.a),a=i.pendingEditTextMap,l=i.pendingReplyMap,c=i.pendingAttachmentMap;return o?null:r.a.createElement(ue,{annotationId:t,ariaLabel:n,pendingEditTextMap:a,pendingReplyMap:l,pendingAttachmentMap:c})};fe.propTypes=de;var pe=fe,he=n(160),me=n(41),be=n(233),ge=n(176),ve=n(161),ye=n(183),we=n(232),xe=n(25),Oe=n(107);n(1688);function Se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ke(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ee={icon:c.a.string,iconColor:c.a.string,color:c.a.string,fillColor:c.a.string,annotation:c.a.object,language:c.a.string,noteDateFormat:c.a.string,isSelected:c.a.bool,setIsEditing:c.a.func,notesShowLastUpdatedDate:c.a.bool,isUnread:c.a.bool,renderAuthorName:c.a.func,isNoteStateDisabled:c.a.bool,isEditing:c.a.bool,noteIndex:c.a.number,sortStrategy:c.a.string,activeTheme:c.a.string,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,handleMultiSelect:c.a.func,isGroupMember:c.a.bool,showAnnotationNumbering:c.a.bool,isTrackedChange:c.a.bool};function Ce(e){var t,n,o,i=e.icon,l=e.iconColor,c=e.annotation,s=e.language,d=e.noteDateFormat,f=e.isSelected,p=e.setIsEditing,m=e.notesShowLastUpdatedDate,b=e.isReply,g=e.isUnread,v=e.renderAuthorName,y=e.isNoteStateDisabled,w=e.isEditing,x=e.noteIndex,S=e.sortStrategy,k=e.activeTheme,E=e.isMultiSelected,C=e.isMultiSelectMode,T=e.handleMultiSelect,A=e.isGroupMember,_=e.showAnnotationNumbering,j=e.timezone,P=e.isTrackedChange,N=Se(Object(u.a)(),1)[0],I=S===ye.a.MODIFIED_DATE||m&&S!==ye.a.CREATED_DATE?Object(be.a)(c):c.DateCreated;if(j&&I){var R=I.toLocaleString("en-US",{timeZone:j});o=new Date(R)}else o=I;var q=o?h()(o).locale(s).format(d):N("option.notesPanel.noteContent.noDate"),L=c.getReplies().length,M=null===(t=c[l])||void 0===t||null===(n=t.toHexString)||void 0===n?void 0:n.call(t);k===we.a.DARK&&M&&Object(ve.c)(M)?M=Oe.b.white:k===we.a.LIGHT&&M&&Object(ve.d)(M)&&(M=Oe.b.black);var D=Object(ge.a)(c.FillColor),z=c.getAssociatedNumber(),B="#".concat(z," - "),F=a()("author-and-date",{isReply:b}),H=a()("NoteHeader",{parent:!b&&!A});return r.a.createElement("div",{className:H},!b&&r.a.createElement("div",{className:"type-icon-container"},g&&r.a.createElement("div",{className:"unread-notification"}),r.a.createElement(re.a,{className:"type-icon",glyph:i,color:M,fillColor:D})),r.a.createElement("div",{className:F},r.a.createElement("div",{className:"author-and-overflow"},r.a.createElement("div",{className:"author-and-time"},r.a.createElement("div",{className:"author"},_&&void 0!==z&&r.a.createElement("span",{className:"annotation-number"},B),v(c)),r.a.createElement("div",{className:"date-and-num-replies"},r.a.createElement("div",{className:"date-and-time"},q,A&&" (Page ".concat(c.PageNumber,")")),L>0&&!f&&r.a.createElement("div",{className:"num-replies-container"},r.a.createElement(re.a,{className:"num-reply-icon",glyph:"icon-chat-bubble"}),r.a.createElement("div",{className:"num-replies"},L)))),r.a.createElement("div",{className:"state-and-overflow"},C&&!A&&!b&&r.a.createElement(he.a,{id:"note-multi-select-toggle_".concat(c.Id),"aria-label":"".concat(v(c)," ").concat(N("option.notesPanel.toggleMultiSelect")),checked:E,onClick:function(e){e.preventDefault(),e.stopPropagation(),T(!E)}}),r.a.createElement(pe,{annotationId:c.Id,ariaLabel:"Unposted Comment, ".concat(v(c),", ").concat(q)}),!y&&!b&&!C&&!A&&!P&&r.a.createElement(oe,{annotation:c,isSelected:f}),!w&&f&&!C&&!A&&!P&&r.a.createElement(G,{noteIndex:x,annotation:c,setIsEditing:p,isReply:b}),f&&P&&!C&&r.a.createElement(r.a.Fragment,null,r.a.createElement(me.a,{title:N("officeEditor.accept"),img:"icon-menu-checkmark",className:"tracked-change-icon-wrapper accept",onClick:function(){return e=c.getCustomData(xe.w),void O.a.getOfficeEditor().acceptTrackedChange(e);var e},iconClassName:"tracked-change-icon"}),r.a.createElement(me.a,{title:N("officeEditor.reject"),img:"icon-close",className:"tracked-change-icon-wrapper reject",onClick:function(){return e=c.getCustomData(xe.w),void O.a.getOfficeEditor().rejectTrackedChange(e);var e},iconClassName:"tracked-change-icon"}))))))}Ce.propTypes=Ee;var Te=Ce,Ae=n(1636);function _e(){return(_e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Pe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ne=function(e){var t=je(Object(s.e)((function(e){return[S.a.getNotesPanelWidth(e)]}),s.c),1)[0];return r.a.createElement(Ae.a,_e({},e,{panelWidth:t}))},Ie=(n(378),n(379),n(380),n(172));n(181);function Re(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return qe(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(qe(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,qe(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,qe(d,"constructor",s),qe(s,"constructor",c),c.displayName="GeneratorFunction",qe(s,r,"GeneratorFunction"),qe(d),qe(d,r,"Generator"),qe(d,o,(function(){return this})),qe(d,"toString",(function(){return"[object Generator]"})),(Re=function(){return{w:i,m:f}})()}function qe(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(qe=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){qe(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Le(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Me(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Le(i,o,r,a,l,"next",e)}function l(e){Le(i,o,r,a,l,"throw",e)}a(void 0)}))}}var De="ic-file-pdf",ze="ic-file-img",Be="ic-file-cad",Fe="ic-file-doc",He="ic-file-ppt",Ue="ic-file-xls",We="ic-file-etc",Ge=window.Core.Annotations.FileAttachmentUtils;function Ve(e){return Ke.apply(this,arguments)}function Ke(){return(Ke=Me(Re().m((function e(t){return Re().w((function(e){for(;;)switch(e.n){case 0:return e.a(2,Ge.decompressWithFlateDecode(t.content,t.type))}}),e)})))).apply(this,arguments)}function $e(e){return Ye.apply(this,arguments)}function Ye(){return(Ye=Me(Re().m((function e(t){var n,o=arguments;return Re().w((function(e){for(;;)switch(e.n){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:[],e.n=1,t.setAttachments(n);case 1:return e.a(2)}}),e)})))).apply(this,arguments)}function Ze(e){return!(!e.type||!e.type.startsWith("image/"))}function Xe(e){var t;if(Ze(e))return ze;switch(null===(t=e.name)||void 0===t?void 0:t.split(".").pop().toLowerCase()){case"pdf":return De;case"cad":return Be;case"doc":case"docx":return Fe;case"ppt":case"pptx":return He;case"xls":case"xlsx":return Ue;default:return We}}var Qe=n(1690),Je=n.n(Qe);function et(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return tt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(tt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,tt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,tt(d,"constructor",s),tt(s,"constructor",c),c.displayName="GeneratorFunction",tt(s,r,"GeneratorFunction"),tt(d),tt(d,r,"Generator"),tt(d,o,(function(){return this})),tt(d,"toString",(function(){return"[object Generator]"})),(et=function(){return{w:i,m:f}})()}function tt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(tt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){tt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function nt(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}var ot=function(e){return new Promise((function(t){if(void 0===e.size)t(e.toString("utf-8"));else{var n=new FileReader;n.onload=function(){return t(n.result)},n.readAsText(e)}}))},rt=function(e){return"image/svg+xml"===e.type},it=function(){var e,t=(e=et().m((function e(t){var n,o,r,i;return et().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,ot(t);case 1:if(n=e.v){e.n=2;break}return e.a(2,{svg:t});case 2:return o=[],Je.a.addHook("uponSanitizeElement",(function(e,t){var n=t.tagName;t.allowedTags[n]||o.push(n)})),r=Je.a.sanitize(n),i=new Blob([r],{type:"image/svg+xml"}),e.a(2,{svg:i,isDirty:o.length>0})}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){nt(i,o,r,a,l,"next",e)}function l(e){nt(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();n(1691);function at(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return lt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(lt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,lt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,lt(d,"constructor",s),lt(s,"constructor",c),c.displayName="GeneratorFunction",lt(s,r,"GeneratorFunction"),lt(d),lt(d,r,"Generator"),lt(d,o,(function(){return this})),lt(d,"toString",(function(){return"[object Generator]"})),(at=function(){return{w:i,m:f}})()}function lt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(lt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){lt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function ct(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function st(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){ct(i,o,r,a,l,"next",e)}function l(e){ct(i,o,r,a,l,"throw",e)}a(void 0)}))}}function ut(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ft=function(e){var t=e.file,n=ut(Object(u.a)(),1)[0],i=ut(Object(o.useState)(),2),l=i[0],c=i[1],s=ut(Object(o.useState)(!1),2),d=s[0],f=s[1];return Object(o.useEffect)((function(){(function(){var e=st(at().m((function e(){var n,o,r,i,a;return at().w((function(e){for(;;)switch(e.n){case 0:if(f(!1),n=t,!(o=!(t instanceof File||t.url))){e.n=2;break}return e.n=1,Ve(t);case 1:n=e.v;case 2:if(!(t instanceof File||o)){e.n=5;break}if(!rt(t)){e.n=4;break}return e.n=3,it(n);case 3:r=e.v,i=r.svg,a=r.isDirty,c(URL.createObjectURL(i)),f(a),e.n=5;break;case 4:c(URL.createObjectURL(n));case 5:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}})()()}),[t]),r.a.createElement("div",{className:a()({"reply-attachment-preview":!0,dirty:d})},r.a.createElement("img",{src:l}),d&&r.a.createElement("span",{className:"reply-attachment-preview-message"},n("message.svgMalicious")))},pt=function(e){var t=e.files,n=e.isEditing,o=e.fileDeleted,i=ut(Object(s.e)((function(e){return[S.a.getTabManager(e),S.a.isReplyAttachmentPreviewEnabled(e)]})),2),a=i[0],l=i[1],c=ut(Object(u.a)(),1)[0],d=function(){var e=st(at().m((function e(t,n){var o;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),a){e.n=1;break}return e.a(2,console.warn("Can't open attachment in non-multi-tab mode"));case 1:if(!(n instanceof File)){e.n=2;break}o=n,e.n=5;break;case 2:if(!n.url){e.n=3;break}o=n.url,e.n=5;break;case 3:return e.n=4,Ve(n);case 4:o=e.v;case 5:o&&a.addTab(o,{filename:n.name,setActive:!0,saveCurrentActiveTabState:!0});case 6:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=st(at().m((function e(t,n){var o,r;return at().w((function(e){for(;;)switch(e.n){case 0:if(t.preventDefault(),t.stopPropagation(),!n.url){e.n=1;break}r=n.url,e.n=3;break;case 1:return e.n=2,Ve(n);case 2:r=e.v;case 3:o=r,Object(Ie.saveAs)(o,n.name);case 4:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return r.a.createElement("div",{className:"reply-attachment-list"},t.map((function(e,t){return r.a.createElement("div",{className:"reply-attachment",key:t,onClick:function(t){return d(t,e)}},l&&Ze(e)&&r.a.createElement(ft,{file:e}),r.a.createElement("div",{className:"reply-attachment-info"},r.a.createElement(re.a,{className:"reply-attachment-icon",glyph:Xe(e)}),r.a.createElement(ie.a,{content:e.name},r.a.createElement("div",{className:"reply-file-name"},e.name)),n?r.a.createElement(me.a,{className:"attachment-button",title:"".concat(c("action.delete")," ").concat(c("option.type.fileattachment")),img:"icon-close",onClick:function(t){return function(e,t){e.preventDefault(),e.stopPropagation(),o(t)}(t,e)}}):r.a.createElement(me.a,{className:"attachment-button",title:"".concat(c("action.download")," ").concat(c("option.type.fileattachment")),img:"icon-download",onClick:function(t){return f(t,e)}})))})))},ht=n(479),mt=n(372),bt=n(1596),gt=function(e){var t={};if(e["font-weight"]&&"normal"!==e["font-weight"]&&(t.bold=!0),e["font-style"]&&"normal"!==e["font-style"]&&(t.italic=!0),e.color&&(t.color=e.color),e["text-decoration"]){var n=e["text-decoration"].split(" ");n.includes("line-through")&&(t.strike=!0),n.includes("word")&&(t.underline=!0)}return t},vt=function(e,t){for(var n=e.getRichTextStyle(),o=Object.keys(n),r=mt.a.getFormattedTextFromDeltas(t.getContents()),i=mt.a.extractMentionDataFromStr(r).plainTextValue,a=[],l=0;l<o.length;l++){var c=n[o[l]],s=gt(c);if(!isNaN(o[l])){var u=isNaN(o[l+1])?i.length:o[l+1],d=i.slice(o[l],u);a.push({insert:d,attributes:s})}}t.setContents(a),t.setSelection(i.length,0)},yt=n(45),wt=n(53),xt=n(229),Ot=n(60);n(1693);function St(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return kt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(kt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,kt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,kt(d,"constructor",s),kt(s,"constructor",c),c.displayName="GeneratorFunction",kt(s,r,"GeneratorFunction"),kt(d),kt(d,r,"Generator"),kt(d,o,(function(){return this})),kt(d,"toString",(function(){return"[object Generator]"})),(St=function(){return{w:i,m:f}})()}function kt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(kt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){kt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Et(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Ct(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Tt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}h.a.extend(b.a);var At={annotation:c.a.object.isRequired,isEditing:c.a.bool,setIsEditing:c.a.func,noteIndex:c.a.number,isUnread:c.a.bool,isNonReplyNoteRead:c.a.bool,onReplyClicked:c.a.func,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,handleMultiSelect:c.a.func,isGroupMember:c.a.bool,handleNoteClick:c.a.func},_t=function(e){var t,n=e.annotation,i=e.isEditing,l=e.setIsEditing,c=e.noteIndex,p=e.isUnread,h=e.isNonReplyNoteRead,m=e.onReplyClicked,b=e.isMultiSelected,g=e.isMultiSelectMode,y=e.handleMultiSelect,x=e.isGroupMember,k=e.handleNoteClick,C=void 0===k?function(){}:k,T=Object(s.e)((function(e){return S.a.getNoteDateFormat(e)})),A=Object(s.e)((function(e){return S.a.getIconColor(e,Object(wt.g)(n),s.c)})),_=Object(s.e)((function(e){return S.a.isElementDisabled(e,"noteStateFlyout")})),j=Object(s.e)((function(e){return S.a.getCurrentLanguage(e)})),P=Object(s.e)((function(e){return S.a.notesShowLastUpdatedDate(e)})),N=Object(s.e)((function(e){return S.a.isNotesPanelTextCollapsingEnabled(e)})),I=Object(s.e)((function(e){return S.a.isNotesPanelRepliesCollapsingEnabled(e)})),R=Object(s.e)((function(e){return S.a.getActiveTheme(e)})),q=Object(s.e)((function(e){return S.a.getTimezone(e)})),L=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),M=Object(o.useContext)(d.a),D=M.isSelected,z=M.searchInput,B=M.resize,F=M.pendingEditTextMap,H=M.onTopNoteContentClicked,U=M.sortStrategy,W=M.showAnnotationNumbering,G=M.setPendingEditText,V=Object(s.d)(),K=Ct(Object(u.a)(),1)[0],$=n.isReply(),Y=Object(wt.g)(n)===wt.c.TRACKED_CHANGE,Z=Ct(Object(o.useState)([]),2),X=Z[0],Q=Z[1];Object(o.useEffect)((function(){Q(n.getAttachments())}),[n]),Object(o.useEffect)((function(){var e=function(e,t){"modify"===t&&e.forEach((function(e){e.Id===n.Id&&Q(e.getAttachments())}))};return O.a.addEventListener("annotationChanged",e),function(){O.a.removeEventListener("annotationChanged",e)}}),[n]),Object(xt.a)((function(){i||V(E.a.finishNoteEditing()),B()}),[i]);var J,ee=Object(o.useCallback)((function(e){var t=O.a.getDisplayAuthor(e.Author);return t?Rt(t,z):K("option.notesPanel.noteContent.noName")}),[z]),te=n.getSkipAutoLink&&n.getSkipAutoLink(),ne=Object(o.useCallback)((function(e,t,o,i){var a=[];if(i||f.a.link(e,{stripPrefix:!1,stripTrailingSlash:!1,replaceFn:function(e){var t=e.getAnchorHref(),n=e.getAnchorText(),o=e.getOffset();switch(e.getType()){case"url":case"email":case"phone":a.push({href:t,text:n,start:o,end:o+e.getMatchedText().length})}}}),!a.length){var l=Rt(e,z,t);if(!z&&(!$&&N||$&&I)){return r.a.createElement(Ne,{linesToBreak:3,comment:!0,renderRichText:It,richTextStyle:t,resize:B,style:o,beforeContent:function(){if(!Y)return null;var e=1===n.TrackedChangeType?K("officeEditor.added"):K("officeEditor.deleted");return r.a.createElement("span",{style:{color:n.FillColor.toString(),fontWeight:700}},e)}},e)}return l}var c=[],s=0;return a.forEach((function(n,o){var i=n.start,a=n.end,l=n.href;s<i&&c.push(r.a.createElement("span",{key:"span_".concat(o)},Rt(e,z,t,s,i))),c.push(r.a.createElement("a",{href:l,target:"_blank",rel:"noopener noreferrer",key:"a_".concat(o)},Rt(e,z,t,i,a))),s=a})),s<e.length-1&&c.push(Rt(e,z,t,s)),c}),[z]),oe=Object(wt.e)(Object(wt.g)(n)).icon;try{J=JSON.parse(n.getCustomData("trn-mention"))}catch(e){J=n.getCustomData("trn-mention")}var re=(null===(t=J)||void 0===t?void 0:t.contents)||n.getContents();re=function(e){return e?w()(e):e}(re);var ie=n instanceof window.Core.Annotations.Link?Object(ht.a)(n):n.getContents(),ae=n.getRichTextStyle(),le=n.TextColor;if(R===we.a.DARK)le&&Object(ve.c)(le.toHexString())&&(le=new window.Core.Annotations.Color(255,255,255,1)),ae&&Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.c)(ae[e].color)&&(ae[e].color=Oe.b.white)}));else if(R===we.a.LIGHT){if(le&&Object(ve.d)(le.toHexString())&&(le=new window.Core.Annotations.Color(0,0,0,1)),ae)Object.keys(ae).forEach((function(e){ae[e].color&&Object(ve.d)(ae[e].color)&&(ae[e].color=Oe.b.black)}))}var ce,se=void 0===F[n.Id];ce=re&&se?re:F[n.Id];var ue=function(e){var t;null!==(t=window.getSelection())&&void 0!==t&&t.toString()&&(null==e||e.stopPropagation()),C(e)},de=a()({NoteContent:!0,isReply:$,unread:p,clicked:h,"modular-ui":L}),fe=Object(o.useMemo)((function(){var e={};return le&&(e.color=le.toHexString()),r.a.createElement(r.a.Fragment,null,i&&D?r.a.createElement(Pt,{annotation:n,noteIndex:c,setIsEditing:l,textAreaValue:ce,onTextAreaValueChange:G,pendingText:F[n.Id]}):ie&&r.a.createElement("div",{className:a()("container",{"reply-content":$}),onClick:ue},$&&X.length>0&&r.a.createElement(pt,{files:X,isEditing:!1}),ne(ie,ae,e,te)))}),[n,D,i,l,re,ne,ce,G,X]),pe=n.getCustomData("trn-annot-preview"),he=Object(o.useMemo)((function(){if(""===pe)return null;var e=Rt(pe,z),t=!$&&N;return v()(e)&&t?r.a.createElement(Ot.a,{onClick:C,className:"selected-text-preview",dataElement:"notesSelectedTextPreview"},r.a.createElement(Ne,{linesToBreak:3},'"'.concat(e,'"'))):r.a.createElement("div",{className:"selected-text-preview",style:{paddingRight:"12px"}},e)}),[pe,z]),me=Object(o.useMemo)((function(){return r.a.createElement(Te,{icon:oe,iconColor:A,annotation:n,language:j,noteDateFormat:T,isSelected:D,setIsEditing:l,notesShowLastUpdatedDate:P,isReply:$,isUnread:p,renderAuthorName:ee,isNoteStateDisabled:_,isEditing:i,noteIndex:c,sortStrategy:U,activeTheme:R,handleMultiSelect:y,isMultiSelected:b,isMultiSelectMode:g,isGroupMember:x,showAnnotationNumbering:W,timezone:q,isTrackedChange:Y})}),[oe,A,n,j,T,D,l,P,$,p,ee,O.a.getDisplayAuthor(n.Author),_,i,c,Object(be.a)(n),U,y,b,g,x,q,Y]);return r.a.createElement("div",{className:de,onClick:function(){x||($?m(n):i||H())}},me,he,fe)};_t.propTypes=At;var jt=_t,Pt=function(e){var t=e.annotation,n=e.noteIndex,i=e.setIsEditing,l=e.textAreaValue,c=e.onTextAreaValueChange,f=e.pendingText,p=Ct(Object(s.e)((function(e){return[S.a.getAutoFocusNoteOnAnnotationSelection(e),S.a.getIsMentionEnabled(e),S.a.isElementDisabled(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.NOTES_PANEL),S.a.getActiveDocumentViewerKey(e),S.a.isAnyCustomPanelOpen(e)]})),7),h=p[0],m=p[1],b=p[2],g=p[3],v=p[4],y=p[5],w=p[6],E=Ct(Object(u.a)(),1)[0],C=Object(o.useRef)(),T=t.isReply(),A=Object(o.useContext)(d.a),_=A.setCurAnnotId,j=A.pendingAttachmentMap,P=A.deleteAttachment,N=A.clearAttachments,I=A.addAttachments,R=!b&&g&&Object(yt.k)();Object(o.useEffect)((function(){if(w||(v||g)&&C.current){var e=C.current.getEditor();t&&t instanceof window.Core.Annotations.FreeTextAnnotation&&e.setText(""),f?Object(bt.a)(e,t):e.getContents()&&setTimeout((function(){if(m){l=mt.a.getFormattedTextFromDeltas(e.getContents());var n=mt.a.extractMentionDataFromStr(l),o=n.plainTextValue;n.ids.length&&e.setText(o)}var r;R||h&&(null===(r=C.current)||void 0===r||r.focus(),t.getRichTextStyle()&&vt(t,e))}),100);var n=e.getLength()-1;if(R)return;setTimeout((function(){n&&e.setSelection(n,n)}),100)}}),[v,g,R]),Object(o.useEffect)((function(){if(T&&0===M.length){var e=t.getAttachments();I(t.Id,e)}}),[]);var q=function(){var e,o=(e=St().m((function e(o){var r,a,s,u,d;return St().w((function(e){for(;;)switch(e.n){case 0:return o.preventDefault(),r=C.current.getEditor(),l=mt.a.getFormattedTextFromDeltas(r.getContents()),Object(bt.a)(r,t),l.length>1&&"\n"===l[l.length-1]&&(l=l.slice(0,l.length-1)),t.getSkipAutoLink&&t.getSkipAutoLink()&&t.disableSkipAutoLink(),m?(a=mt.a.extractMentionDataFromStr(l),s=a.plainTextValue,u=a.ids,mt.a.extractMentionDataFromAnnot(t).mentions.forEach((function(e){s.includes(e.value)&&u.push(e.id)})),t.setCustomData("trn-mention",JSON.stringify({contents:l,ids:u})),t.setContents(s)):t.setContents(l),e.n=1,$e(t,j[t.Id]);case 1:d=t instanceof window.Core.Annotations.FreeTextAnnotation?"textChanged":"noteChanged",O.a.getAnnotationManager(y).trigger("annotationChanged",[[t],"modify",{source:d}]),t instanceof window.Core.Annotations.FreeTextAnnotation&&O.a.drawAnnotationsFromList([t]),i(!1,n),""!==l&&c(void 0,t.Id),N(t.Id);case 2:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Et(i,o,r,a,l,"next",e)}function l(e){Et(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),L=a()("edit-content",{"reply-content":T}),M=j[t.Id]||[];return r.a.createElement("div",{className:L},T&&M.length>0&&r.a.createElement(pt,{files:M,isEditing:!0,fileDeleted:function(e){return P(t.Id,e)}}),r.a.createElement(x.a,{ref:function(e){C.current=e},value:l,onChange:function(e){return c(e,t.Id)},onSubmit:q,isReply:T,onBlur:function(e){var t,n;null!==(t=e.relatedTarget)&&void 0!==t&&null!==(n=t.getAttribute("data-element"))&&void 0!==n&&n.includes("annotationCommentButton")?e.target.focus():_(void 0)},onFocus:function(){_(t.Id)}}),r.a.createElement("div",{className:"edit-buttons"},r.a.createElement(me.a,{className:"cancel-button",label:E("action.cancel"),onClick:function(e){e.stopPropagation(),i(!1,n),c(void 0,t.Id),N(t.Id)}}),r.a.createElement(me.a,{className:"save-button".concat(l?"":" disabled"),disabled:!l,label:E("action.save"),onClick:function(e){e.stopPropagation(),q(e)}})))};Pt.propTypes={noteIndex:c.a.number.isRequired,annotation:c.a.object.isRequired,setIsEditing:c.a.func.isRequired,textAreaValue:c.a.string,onTextAreaValueChange:c.a.func.isRequired,pendingText:c.a.string};var Nt=function(e,t,n){var o={fontWeight:t["font-weight"],fontStyle:t["font-style"],textDecoration:t["text-decoration"],color:t.color};return o.textDecoration&&(o.textDecoration=o.textDecoration.replace("word","underline")),r.a.createElement("span",{style:o,key:n},e)},It=function(e,t,n){if(!t||!e)return e;for(var o={},r=Object.keys(t).map(Number).sort((function(e,t){return e-t})),i=0;i<r.length;i++){var a=r[i]-n;if(o[a=Math.min(Math.max(a,0),e.length)]=t[r[i]],a===e.length)break}for(var l=[],c=Object.keys(o).map(Number).sort((function(e,t){return e-t})),s=1;s<c.length;s++)l.push(Nt(e.slice(c[s-1],c[s]),o[c[s-1]],"richtext_span_".concat(s)));return l},Rt=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,a=e.slice(o,i),l=a.toLowerCase(),c=t.toLowerCase();n&&(n[0]=n[0]||{},n[e.length]=n[e.length]||{});var s=l.indexOf(c);if(!c.trim()||-1===s)return It(a,n,o);var u=[],d=[s],f=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp("(".concat(f,")"),"gi").test(l))for(;-1!==s;)-1!==(s=l.indexOf(c,s+c.length))&&d.push(s);return d.forEach((function(e,t){0===t&&0!==e&&u.push(It(a.substring(0,e),n,o)),u.push(r.a.createElement("span",{className:"highlight",key:"highlight_span_".concat(t)},It(a.substring(e,e+c.length),n,o+e))),e+c.length<l.length&&e+c.length!==d[t+1]&&u.push(It(a.substring(e+c.length,d[t+1]),n,o+e+c.length))})),u};var qt=jt;n(1695);function Lt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Mt(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Mt(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Mt(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Mt(d,"constructor",s),Mt(s,"constructor",c),c.displayName="GeneratorFunction",Mt(s,r,"GeneratorFunction"),Mt(d),Mt(d,r,"Generator"),Mt(d,o,(function(){return this})),Mt(d,"toString",(function(){return"[object Generator]"})),(Lt=function(){return{w:i,m:f}})()}function Mt(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Mt=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Mt(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Dt(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function zt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ft={annotation:c.a.object.isRequired},Ht=function(e){var t=e.annotation,n=e.isUnread,i=e.onPendingReplyChange,l=zt(Object(s.e)((function(e){var n;return[S.a.getAutoFocusNoteOnAnnotationSelection(e),S.a.isDocumentReadOnly(e),S.a.isElementDisabled(e,"noteReply"),null===(n=S.a.getIsReplyDisabled(e))||void 0===n?void 0:n(t),S.a.getIsMentionEnabled(e),S.a.getIsNoteEditing(e),S.a.isElementDisabled(e,k.a.INLINE_COMMENT_POPUP),S.a.isElementOpen(e,k.a.INLINE_COMMENT_POPUP),S.a.getActiveDocumentViewerKey(e)]}),s.c),9),c=l[0],u=l[1],f=l[2],p=l[3],h=l[4],m=l[5],b=l[6],g=l[7],v=l[8],y=Object(o.useContext)(d.a),w=y.isContentEditable,C=y.isSelected,T=y.pendingReplyMap,A=y.setPendingReply,_=y.isExpandedFromSearch,j=y.scrollToSelectedAnnot,P=y.setCurAnnotId,N=y.pendingAttachmentMap,I=y.clearAttachments,R=y.deleteAttachment,q=zt(Object(o.useState)(!1),2),L=q[0],M=q[1],D=Object(s.d)(),z=Object(o.useRef)(),B=!b&&g&&Object(yt.k)();Object(xt.a)((function(){L||D(E.a.finishNoteEditing())}),[L]),Object(o.useEffect)((function(){B||m&&C&&!w&&c&&z&&z.current&&z.current.focus()}),[w,m,C,B]),Object(o.useEffect)((function(){if(!_&&j&&setTimeout((function(){z&&z.current&&c&&z.current.focus()}),100),z&&z.current){if(B)return;var e=z.current.getEditor().getLength()-1;setTimeout((function(){z.current&&z.current.editor.setSelection(e,e)}),100)}}),[]);var F=function(){var e,n=(e=Lt().m((function e(n){var o,r,i,a;return Lt().w((function(e){for(;;)switch(e.n){case 0:if(n.preventDefault(),n.stopPropagation(),o=z.current.getEditor(),(r=mt.a.getFormattedTextFromDeltas(o.getContents())).trim()){e.n=1;break}return e.a(2);case 1:if(!h){e.n=3;break}return i=mt.a.createMentionReply(t,r),Object(bt.a)(o,i),e.n=2,$e(i,N[t.Id]);case 2:O.a.addAnnotations([i],v),e.n=5;break;case 3:return a=O.a.createAnnotationReply(t,r),Object(bt.a)(o,a),e.n=4,$e(a,N[t.Id]);case 4:O.a.getAnnotationManager(v).trigger("annotationChanged",[[a],"modify",{}]);case 5:A("",t.Id),I(t.Id);case 6:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Dt(i,o,r,a,l,"next",e)}function l(e){Dt(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),H=u||f||p,U=a()({"reply-area":!0,unread:n}),W=N[t.Id]||[];return H||!C?null:r.a.createElement("form",{onSubmit:F,className:"reply-area-container"},W.length>0&&r.a.createElement(pt,{files:W,isEditing:!0,fileDeleted:function(e){return R(t.Id,e)}}),r.a.createElement("div",{className:"reply-area-with-button"},r.a.createElement("div",{className:U,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(x.a,{ref:function(e){z.current=e},value:T[t.Id],onChange:function(e){return function(e){A(e,t.Id),i&&i()}(e)},onSubmit:F,onBlur:function(){M(!1),P(void 0)},onFocus:function(){M(!0),P(t.Id)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(me.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",disabled:!T[t.Id],onClick:F,isSubmitType:!0}))))};Ht.propTypes=Ft;var Ut=Ht;function Wt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gt(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gt(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Vt={groupAnnotations:c.a.array.isRequired,isMultiSelectMode:c.a.bool.isRequired},Kt=function(e){var t=e.groupAnnotations,n=e.isMultiSelectMode,i=Wt(Object(u.a)(),1)[0],l=Object(s.d)(),c=Wt(Object(o.useState)(!1),2),d=c[0],f=c[1],p=Object(s.e)((function(e){var t;return null===(t=S.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI})),h=r.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),f(!0)},className:"text-button",ariaLabel:i("component.noteGroupSection.open"),label:i("component.noteGroupSection.open"),img:"ic_chevron_down_black_24px"}),m=r.a.createElement(me.a,{onClick:function(e){e.preventDefault(),e.stopPropagation(),f(!1)},className:"text-button",ariaLabel:i("component.noteGroupSection.close"),label:i("component.noteGroupSection.close"),img:"ic_chevron_up_black_24px"});return r.a.createElement("div",{className:a()({"group-section":!0,"modular-ui":p})},d?m:h,d&&t.map((function(e,t){return 0===t?null:r.a.createElement(me.a,{key:e.Id,className:"group-child",onClick:function(t){t.preventDefault(),t.stopPropagation(),O.a.selectAnnotation(e),O.a.jumpToAnnotation(e),l(E.a.openElement("annotationPopup"))}},r.a.createElement(qt,{key:e.Id,annotation:e,isUnread:!1,isGroupMember:!0,isMultiSelectMode:n}))})))};Kt.propTypes=Vt;var $t=Kt,Yt=n(119),Zt=n(32),Xt=n(230),Qt=n(23);n(1697);function Jt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return en(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?en(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var tn=function(e){var t=e.children,n=Object(Qt.a)().querySelector("#line-connector-root"),r=document.createElement("div");return r.setAttribute("data-element",k.a.ANNOTATION_NOTE_CONNECTOR_LINE),Object(o.useEffect)((function(){return n.appendChild(r),function(){return n.removeChild(r)}}),[r,n]),Object(Yt.createPortal)(t,r)},nn={annotation:c.a.object,noteContainerRef:c.a.object,isCustomPanelOpen:c.a.bool},on=function(e){var t=e.annotation,n=e.noteContainerRef,i=e.isCustomPanelOpen,a=Jt(Object(s.e)((function(e){return[S.a.getIsCustomUIEnabled(e),S.a.getTopHeadersHeight(e),S.a.getBottomHeadersHeight(e),S.a.getNotesPanelWidth(e),S.a.isElementOpen(e,k.a.ANNOTATION_NOTE_CONNECTOR_LINE),S.a.isElementOpen(e,k.a.NOTES_PANEL),S.a.isElementDisabled(e,k.a.ANNOTATION_NOTE_CONNECTOR_LINE),S.a.getDocumentContainerWidth(e),S.a.getDocumentContainerHeight(e),S.a.getActiveDocumentViewerKey(e)]}),s.c),10),l=a[0],c=a[1],u=a[2],d=a[3],f=a[4],p=a[5],h=a[6],m=a[7],b=a[8],g=a[9],v=Object(s.d)(),y=Jt(Object(o.useState)(0),2),w=y[0],x=y[1],C=Jt(Object(o.useState)(0),2),T=C[0],A=C[1],_=Jt(Object(o.useState)(0),2),j=_[0],P=_[1],N=Jt(Object(o.useState)(0),2),I=N[0],R=N[1],q=Jt(Object(o.useState)(0),2),L=q[0],M=q[1],D=Jt(Object(o.useState)(0),2),z=D[0],B=D[1],F=l?Zt.b:0,H=Object(Xt.d)(t,g),U=H.bottomRight,W=H.topLeft,G=Object(o.useCallback)((function(){return"Note"===t.Subject?4:15}),[t]);if(Object(o.useEffect)((function(){var e=function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return O.a.addEventListener("pageNumberUpdated",e,void 0,g),function(){O.a.removeEventListener("pageNumberUpdated",e,g)}}),[]),Object(o.useEffect)((function(){if(n&&n.current){var e=O.a.getScrollViewElement(g),o=e.scrollTop,r=e.scrollLeft;if(!(U&&W))return function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};var i,a=window.isApryseWebViewerWebComponent,l=U.x-W.x,c=window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientWidth:window.innerWidth,s=(i={viewerWidth:c,annotationXPosition:W.x,annotationWidth:l,notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,scrollLeft:r}).viewerWidth-i.annotationXPosition-i.annotationWidth-i.notePanelWidth+i.notePanelPadding+i.notesPanelResizeBarWidth+i.scrollLeft,u=function(e){var t=e.notePanelWidth,n=e.notePanelPadding,o=e.notesPanelResizeBarWidth,r=e.notesContainerTop,i=e.viewerOffsetTop,a=e.distanceToAnnotation,l=e.lineWidthRatio;return{rightHorizontalLineRightOffset:t-n-o,rightHorizontalLineTopOffset:r-i,rightHorizontalLineLength:a*(void 0===l?.75:l)}}({notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,notesContainerTop:n.current.getBoundingClientRect().top,viewerOffsetTop:a?Object(Qt.a)().host.offsetTop:0,distanceToAnnotation:s,lineWidthRatio:.75}),f=u.rightHorizontalLineRightOffset,p=u.rightHorizontalLineTopOffset,h=u.rightHorizontalLineLength;P(f),A(p),x(h);var m=function(e){var t=e.isAnnotationNoZoom,n=e.annotationNoZoomReferencePoint,o=e.annotationHeight,r=e.notePanelWidth,i=e.notePanelPadding,a=e.notesPanelResizeBarWidth,l=e.rightHorizontalLineLength,c=e.distanceToAnnotation,s=e.annotationTopLeftY,u=e.scrollTop,d=e.annotationLineOffset,f=t&&n.x?n.x*o:0;return{leftHorizontalLineRightOffset:r-i-a+l,leftHorizontalLineTopOffset:s+o/2-u-(t&&n.y?n.y*o:0),leftHorizontalLineLength:c-l-d+f}}({isAnnotationNoZoom:t.NoZoom,annotationNoZoomReferencePoint:t.getNoZoomReferencePoint(),annotationHeight:U.y-W.y,notePanelWidth:d,notePanelPadding:16,notesPanelResizeBarWidth:F,rightHorizontalLineLength:h,distanceToAnnotation:s,annotationTopLeftY:W.y,scrollTop:o,annotationLineOffset:G()}),b=m.leftHorizontalLineRightOffset,y=m.leftHorizontalLineTopOffset,w=m.leftHorizontalLineLength;B(b),M(y),R(w)}}),[n,d,U,W,m,b]),Object(o.useEffect)((function(){var e=function(){v(E.a.closeElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))};return O.a.addEventListener("pageNumberUpdated",e,void 0,g),function(){O.a.removeEventListener("pageNumberUpdated",e,g)}}),[v,g]),f&&(p||i)&&!h){var V=function(e){var t=e.rightHorizontalLineTop,n=e.leftHorizontalLineTop,o=e.bottomHeaderTop,r=e.topHeadersHeight,i=e.isCustomUIEnabled,a=t>n?n+2:t,l=Math.abs(t-n),c=a<r,s=a+l>o,u=c||s;return u&&i&&(c?(l=Math.abs(t-r)+2,a=r):s&&(l=Math.abs(o-t))),{verticalLineTop:a,verticalLineHeight:l,isAnnotationOffScreen:u}}({rightHorizontalLineTop:T,leftHorizontalLineTop:L,bottomHeaderTop:(window.isApryseWebViewerWebComponent?Object(Qt.a)().host.clientHeight:window.innerWidth)-u,topHeadersHeight:c,isCustomUIEnabled:l}),K=V.verticalLineTop,$=V.verticalLineHeight,Y=V.isAnnotationOffScreen;return r.a.createElement(tn,null,r.a.createElement("div",{className:"horizontalLine",style:{width:w,right:j,top:T}}),r.a.createElement("div",{className:"verticalLine",style:{height:$,top:K,right:j+w}}),r.a.createElement("div",{className:"horizontalLine",style:{width:I,right:z,top:L,visibility:Y?"hidden":"visible"}},r.a.createElement("div",{className:"arrowHead"})))}return null};on.propTypes=nn;var rn=on,an=(n(1699),n(1639));function ln(e){return(ln="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 cn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return sn(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(sn(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,sn(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,sn(d,"constructor",s),sn(s,"constructor",c),c.displayName="GeneratorFunction",sn(s,r,"GeneratorFunction"),sn(d),sn(d,r,"Generator"),sn(d,o,(function(){return this})),sn(d,"toString",(function(){return"[object Generator]"})),(cn=function(){return{w:i,m:f}})()}function sn(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(sn=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){sn(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function un(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function dn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){pn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pn(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ln(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ln(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ln(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mn(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var bn={annotation:c.a.object.isRequired,isMultiSelected:c.a.bool,isMultiSelectMode:c.a.bool,isInNotesPanel:c.a.bool,handleMultiSelect:c.a.func},gn=0,vn=function(e){var t=e.annotation,n=e.isMultiSelected,i=e.isMultiSelectMode,l=e.isInNotesPanel,c=e.handleMultiSelect,f=e.isCustomPanelOpen,p=e.shouldHideConnectorLine,h=Object(o.useContext)(d.a),m=h.isSelected,b=h.resize,g=h.pendingEditTextMap,v=h.isContentEditable,y=h.isDocumentReadOnly,w=h.isExpandedFromSearch,x=h.setCurAnnotId,C=Object(o.useRef)(),T=Object(o.useRef)(),A=hn(Object(o.useState)({}),2),_=A[0],j=A[1],P=Object(o.useRef)([]),N=Object(s.d)(),I=hn(Object(u.a)(),1)[0],R=new Set,q=hn(Object(s.e)((function(e){return[S.a.getNoteTransformFunction(e),S.a.getCustomNoteSelectionFunction(e),S.a.getUnreadAnnotationIdSet(e),S.a.isCommentThreadExpansionEnabled(e),S.a.isRightClickAnnotationPopupEnabled(e),S.a.getActiveDocumentViewerKey(e),S.a.getIsOfficeEditorMode(e),S.a.getOfficeEditorEditMode(e)]}),s.c),8),L=q[0],M=q[1],D=q[2],z=q[3],B=q[4],F=q[5],H=q[6],U=q[7],W=Object(o.useCallback)((function(e,t){j((function(n){return fn(fn({},n),{},pn({},t,e))}))}),[j]),G=t.getReplies().sort((function(e,t){return e.DateCreated-t.DateCreated}));G.filter((function(e){return D.has(e.Id)})).forEach((function(e){return R.add(e.Id)})),Object(o.useEffect)((function(){var e=function(e,t){"delete"===t&&e.forEach((function(e){D.has(e.Id)&&N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))};return O.a.addEventListener("annotationChanged",e,void 0,F),function(){O.a.removeEventListener("annotationChanged",e,F)}}),[D]),Object(o.useEffect)((function(){var e=T.current,t=C.current.getBoundingClientRect().height;T.current=t,e&&Math.round(e)!==Math.round(t)&&b()})),Object(o.useEffect)((function(){if(L){var e=Object(Qt.a)().querySelectorAll(".NotesPanel")[0];P.current.forEach((function(t){var n=e.querySelector("[data-webviewer-custom-element=".concat(t,"]"));n&&n.parentNode.removeChild(n)})),P.current=[];var n={annotation:t,isSelected:m};L(C.current,n,(function(){var e,t=(e=document).createElement.apply(e,arguments),n="custom-element-".concat(gn);return gn++,P.current.push(n),t.setAttribute("data-webviewer-custom-element",n),t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t}))}})),Object(o.useEffect)((function(){""!==g[t.Id]&&v&&!y&&W(!0,0)}),[y,v,W,t,i]),Object(xt.a)((function(){!y&&v||W(!1,0)}),[y,v,W]);var V=function(){var e,o=(e=cn().m((function e(o){var r;return cn().w((function(e){for(;;)switch(e.n){case 0:if(o&&o.stopPropagation(),!i){e.n=1;break}return c(!n),e.a(2);case 1:if(D.has(t.Id)&&N(E.a.setAnnotationReadState({isRead:!0,annotationId:t.Id})),M&&M(t),m||(O.a.deselectAllAnnotations(F),setTimeout((function(){return N(E.a.openElement(k.a.ANNOTATION_NOTE_CONNECTOR_LINE))}),300)),!l||H&&U===xe.z.PREVIEW){e.n=3;break}if(O.a.selectAnnotation(t,F),x(t.Id),O.a.jumpToAnnotation(t,F),B||N(E.a.openElement(k.a.ANNOTATION_POPUP)),!H){e.n=3;break}return r=t.getCustomData(xe.w),e.n=2,O.a.getOfficeEditor().moveCursorToTrackedChange(r);case 2:O.a.getOfficeEditor().freezeMainCursor();case 3:return e.a(2)}}),e)})),function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){un(i,o,r,a,l,"next",e)}function l(e){un(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),K=R.size>0,$=a()({Note:!0,expanded:m,"is-multi-selected":n,unread:D.has(t.Id)||K,disabled:H&&U===xe.z.PREVIEW}),Y=a()({replies:!0,hidden:!m});Object(o.useEffect)((function(){i||G.forEach((function(e,t){var n=g[e.Id];""!==n&&void 0!==n&&m&&W(!0,1+t)}))}),[m,i]),Object(o.useEffect)((function(){i&&W(!1,0)}),[i]);var Z=!Object.values(_).some((function(e){return e})),X=function(e){R.has(e.Id)&&(N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id})),O.a.getAnnotationManager(F).selectAnnotation(e))},Q=function(){if(R.size>0){var e=G.filter((function(e){return R.has(e.Id)}));O.a.getAnnotationManager(F).selectAnnotations(e),e.forEach((function(e){return N(E.a.setAnnotationReadState({isRead:!0,annotationId:e.Id}))}))}},J=O.a.getGroupAnnotations(t,F),ee=J.length>1,te=Object(wt.g)(t)===wt.c.TRACKED_CHANGE,ne=G.length>0?G[G.length-1].Id:null,oe=Object(an.a)(O.a,t),re=m&&(l||f)&&!p&&oe;return r.a.createElement("div",{ref:C,className:$,id:"note_".concat(t.Id)},r.a.createElement(me.a,{className:"note-button",onClick:function(e){return V(e)},ariaLabelledby:"note_".concat(t.Id),ariaCurrent:m,dataElement:"expandNoteButton"}),r.a.createElement(qt,{noteIndex:0,annotation:t,setIsEditing:W,handleNoteClick:V,isEditing:_[0],isNonReplyNoteRead:!D.has(t.Id),isUnread:D.has(t.Id)||K,handleMultiSelect:function(e){x(t.Id),c(e)},isMultiSelected:n,isMultiSelectMode:i}),(m||w||z)&&!te&&r.a.createElement(r.a.Fragment,null,G.length>0&&r.a.createElement("div",{className:Y},K&&r.a.createElement(me.a,{dataElement:"markAllReadButton",className:"mark-all-read-button",label:I("action.markAllRead"),onClick:Q}),G.map((function(e,t){return r.a.createElement("div",{className:"reply",id:"note_reply_".concat(e.Id),key:"note_reply_".concat(e.Id)},r.a.createElement(qt,{noteIndex:t+1,key:e.Id,annotation:e,setIsEditing:W,isEditing:_[t+1],onReplyClicked:X,isUnread:D.has(e.Id),handleMultiSelect:c,isMultiSelected:n,isMultiSelectMode:i,handleNoteClick:V}))}))),ee&&r.a.createElement($t,{groupAnnotations:J,isMultiSelectMode:i}),Z&&!i&&r.a.createElement(Ut,{isUnread:ne&&D.has(ne),onPendingReplyChange:Q,annotation:t})),re&&r.a.createElement(rn,{annotation:t,noteContainerRef:C,isCustomPanelOpen:f}))};vn.propTypes=bn;var yn=vn;t.a=yn},1710:function(e,t,n){"use strict";function o(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function r(e,t){for(var n=e.length-1;n>=0;n--)!0===t(e[n])&&e.splice(n,1)}function i(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var a=function(){function e(e){void 0===e&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(e,t){return this.getAttrs()[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(e){return this.setAttr("class",e)},e.prototype.addClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],a=e.split(r);t=a.shift();)-1===o(i,t)&&i.push(t);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(e){for(var t,n=this.getClass(),r=this.whitespaceRegex,i=n?n.split(r):[],a=e.split(r);i.length&&(t=a.shift());){var l=o(i,t);-1!==l&&i.splice(l,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(e){return-1!==(" "+this.getClass()+" ").indexOf(" "+e+" ")},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return["<",e,t=t?" "+t:"",">",this.getInnerHtml(),"</",e,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+'="'+e[n]+'"');return t.join(" ")},e}();var l,c=function(){function e(e){void 0===e&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return e.prototype.build=function(e){return new a({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target="_blank",t.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],o=e.getCssClassSuffixes(),r=0,i=o.length;r<i;r++)n.push(t+"-"+o[r]);return n.join(" ")}return""},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e)},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,o=t.location;return"smart"===o?function(e,t,n){var o,r;null==n?(n="…",r=3,o=8):(r=n.length,o=n.length);var i=function(e){var t="";return e.scheme&&e.host&&(t+=e.scheme+"://"),e.host&&(t+=e.host),e.path&&(t+="/"+e.path),e.query&&(t+="?"+e.query),e.fragment&&(t+="#"+e.fragment),t},a=function(e,t){var o=t/2,r=Math.ceil(o),i=-1*Math.floor(o),a="";return i<0&&(a=e.substr(i)),e.substr(0,r)+n+a};if(e.length<=t)return e;var l=t-r,c=function(e){var t={},n=e,o=n.match(/^([a-z]+):\/\//i);return o&&(t.scheme=o[1],n=n.substr(o[0].length)),(o=n.match(/^(.*?)(?=(\?|#|\/|$))/i))&&(t.host=o[1],n=n.substr(o[0].length)),(o=n.match(/^\/(.*?)(?=(\?|#|$))/i))&&(t.path=o[1],n=n.substr(o[0].length)),(o=n.match(/^\?(.*?)(?=(#|$))/i))&&(t.query=o[1],n=n.substr(o[0].length)),(o=n.match(/^#(.*?)$/i))&&(t.fragment=o[1]),t}(e);if(c.query){var s=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);s&&(c.query=c.query.substr(0,s[1].length),e=i(c))}if(e.length<=t)return e;if(c.host&&(c.host=c.host.replace(/^www\./,""),e=i(c)),e.length<=t)return e;var u="";if(c.host&&(u+=c.host),u.length>=l)return c.host.length==t?(c.host.substr(0,t-r)+n).substr(0,l+o):a(u,l).substr(0,l+o);var d="";if(c.path&&(d+="/"+c.path),c.query&&(d+="?"+c.query),d){if((u+d).length>=l)return(u+d).length==t?(u+d).substr(0,t):(u+a(d,l-u.length)).substr(0,l+o);u+=d}if(c.fragment){var f="#"+c.fragment;if((u+f).length>=l)return(u+f).length==t?(u+f).substr(0,t):(u+a(f,l-u.length)).substr(0,l+o);u+=f}if(c.scheme&&c.host){var p=c.scheme+"://";if((u+p).length<l)return(p+u).substr(0,t)}if(u.length<=t)return u;var h="";return l>0&&(h=u.substr(-1*Math.floor(l/2))),(u.substr(0,Math.ceil(l/2))+n+h).substr(0,l+o)}(e,n):"middle"===o?function(e,t,n){if(e.length<=t)return e;var o,r;null==n?(n="…",o=8,r=3):(o=n.length,r=n.length);var i=t-r,a="";return i>0&&(a=e.substr(-1*Math.floor(i/2))),(e.substr(0,Math.ceil(i/2))+n+a).substr(0,i+o)}(e,n):function(e,t,n){return function(e,t,n){var o;return e.length>t&&(null==n?(n="…",o=3):o=n.length,e=e.substring(0,t-o)+n),e}(e,t,n)}(e,n)},e}(),s=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),u=n(74),d=function(e){function t(t){var n=e.call(this,t)||this;return n.email="",n.email=t.email,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(s),f=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="",n.hashtag="",n.serviceName=t.serviceName,n.hashtag=t.hashtag,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.prototype.getAnchorHref=function(){var e=this.serviceName,t=this.hashtag;switch(e){case"twitter":return"https://twitter.com/hashtag/"+t;case"facebook":return"https://www.facebook.com/hashtag/"+t;case"instagram":return"https://instagram.com/explore/tags/"+t;case"tiktok":return"https://www.tiktok.com/tag/"+t;default:throw new Error("Unknown service name to point hashtag to: "+e)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(s),p=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.mention="",n.mention=t.mention,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&t.push(n),t},t}(s),h=function(e){function t(t){var n=e.call(this,t)||this;return n.number="",n.plusSign=!1,n.number=t.number,n.plusSign=t.plusSign,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(s),m=function(e){function t(t){var n=e.call(this,t)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(e=this.url="http://"+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,"&")},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(e){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(t)}catch(e){return t}},t}(s),b=function(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder},g=/[A-Za-z]/,v=/[\d]/,y=/[\D]/,w=/\s/,x=/['"]/,O=/[\x00-\x1F\x7F]/,S=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,k=S+/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source+/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,E=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,C=k+E,T=k+E,A="(?:["+E+"]{1,3}\\.){3}["+E+"]{1,3}",_="["+T+"](?:["+T+"\\-]{0,61}["+T+"])?",j=function(e){return"(?=("+_+"))\\"+e},P=function(e){return"(?:"+j(e)+"(?:\\."+j(e+1)+"){0,126}|"+A+")"},N=(new RegExp("["+T+".\\-]*["+T+"\\-]"),new RegExp("[".concat(T,"]"))),I=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--3oq18vl8pn36a|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|afamilycompany|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|swiftcover|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|scjohnson|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|budapest|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glade|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|lixil|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|duck|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|raid|read|reit|rent|rest|rich|rmit|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|大众汽车|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|csc|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|off|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|qvc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,R=new RegExp("[".concat(T,"!#$%&'*+/=?^_`{|}~-]")),q=new RegExp("^".concat(I.source,"$")),L=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.localPartCharRegex=R,t.strictTldRegex=q,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,o=this.strictTldRegex,r=[],a=e.length,l=new M,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},s=0,f=0,p=l;s<a;){var h=e.charAt(s);switch(f){case 0:m(h);break;case 1:b(e.charAt(s-1),h);break;case 2:g(h);break;case 3:v(h);break;case 4:y(h);break;case 5:w(h);break;case 6:x(h);break;case 7:O(h);break;default:i(f)}s++}return E(),r;function m(e){"m"===e?S(1):n.test(e)&&S()}function b(e,t){":"===e?n.test(t)?(f=2,p=new M(Object(u.a)(Object(u.a)({},p),{hasMailtoPrefix:!0}))):k():c[e]===t||(n.test(t)?f=2:"."===t?f=3:"@"===t?f=4:k())}function g(e){"."===e?f=3:"@"===e?f=4:n.test(e)||k()}function v(e){"."===e||"@"===e?k():n.test(e)?f=2:k()}function y(e){N.test(e)?f=5:k()}function w(e){"."===e?f=7:"-"===e?f=6:N.test(e)||E()}function x(e){"-"===e||"."===e?E():N.test(e)?f=5:E()}function O(e){"."===e||"-"===e?E():N.test(e)?(f=5,p=new M(Object(u.a)(Object(u.a)({},p),{hasDomainDot:!0}))):E()}function S(e){void 0===e&&(e=2),f=e,p=new M({idx:s})}function k(){f=0,p=l}function E(){if(p.hasDomainDot){var n=e.slice(p.idx,s);/[-.]$/.test(n)&&(n=n.slice(0,-1));var i=p.hasMailtoPrefix?n.slice("mailto:".length):n;(function(e){var t=(e.split(".").pop()||"").toLowerCase();return o.test(t)})(i)&&r.push(new d({tagBuilder:t,matchedText:n,offset:p.idx,email:i}))}k()}},t}(b),M=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot},D=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return null!==e.match(t)},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split("://")[1]),t.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return"javascript:"!==n&&"vbscript:"!==n},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!(!e||t&&this.hasFullProtocolRegex.test(t)||-1!==e.indexOf("."))},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return!(!e||!t)&&(!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e))},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+S+"]"),e.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,e}(),z=(l=new RegExp("[/?#](?:["+T+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+T+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?"),new RegExp(["(?:","(",/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/.source,P(2),")","|","(","(//)?",/(?:www\.)/.source,P(6),")","|","(","(//)?",P(10)+"\\.",I.source,"(?![-"+C+"])",")",")","(?::[0-9]+)?","(?:"+l.source+")?"].join(""),"gi")),B=new RegExp("["+T+"]"),F=function(e){function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=z,n.wordCharRegExp=B,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,l=[],c=function(){var n=t[0],c=t[1],u=t[4],d=t[5],f=t[9],p=t.index,h=d||f,b=e.charAt(p-1);if(!D.isValid(n,c))return"continue";if(p>0&&"@"===b)return"continue";if(p>0&&h&&s.wordCharRegExp.test(b))return"continue";if(/\?$/.test(n)&&(n=n.substr(0,n.length-1)),s.matchHasUnbalancedClosingParen(n))n=n.substr(0,n.length-1);else{var g=s.matchHasInvalidCharAfterTld(n,c);g>-1&&(n=n.substr(0,g))}var v=["http://","https://"].find((function(e){return!!c&&-1!==c.indexOf(e)}));if(v){var y=n.indexOf(v);n=n.substr(y),c=c.substr(y),p+=y}var w=c?"scheme":u?"www":"tld",x=!!c;l.push(new m({tagBuilder:a,matchedText:n,offset:p,urlMatchType:w,url:n,protocolUrlMatch:x,protocolRelativeMatch:!!h,stripPrefix:o,stripTrailingSlash:r,decodePercentEncoding:i}))},s=this;null!==(t=n.exec(e));)c();return l},t.prototype.matchHasUnbalancedClosingParen=function(e){var t,n=e.charAt(e.length-1);if(")"===n)t="(";else if("]"===n)t="[";else{if("}"!==n)return!1;t="{"}for(var o=0,r=0,i=e.length-1;r<i;r++){var a=e.charAt(r);a===t?o++:a===n&&(o=Math.max(o-1,0))}return 0===o},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(":"),e=e.slice(n));var o=new RegExp("^((.?//)?[-."+T+"]*[-"+T+"]\\.[-"+T+"]+)").exec(e);return null===o?-1:(n+=o[1].length,e=e.slice(o[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}(b),H=new RegExp("#[_".concat(T,"]{1,139}(?![_").concat(T,"])"),"g"),U=new RegExp("[^"+T+"]"),W=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegex=H,n.nonWordCharRegex=U,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.nonWordCharRegex,r=this.serviceName,i=this.tagBuilder,a=[];null!==(t=n.exec(e));){var l=t.index,c=e.charAt(l-1);if(0===l||o.test(c)){var s=t[0],u=t[0].slice(1);a.push(new f({tagBuilder:i,matchedText:s,offset:l,serviceName:r,hashtag:u}))}}return a},t}(b),G=new RegExp("".concat(/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/.source,"|").concat(/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/.source),"g"),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.matcherRegex=G,t}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){for(var t,n=this.matcherRegex,o=this.tagBuilder,r=[];null!==(t=n.exec(e));){var i=t[0],a=i.replace(/[^0-9,;#]/g,""),l=!(!t[1]&&!t[2]),c=0==t.index?"":e.substr(t.index-1,1),s=e.substr(t.index+i.length,1),u=!c.match(/\d/)&&!s.match(/\d/);this.testMatch(t[3])&&this.testMatch(i)&&u&&r.push(new h({tagBuilder:o,matchedText:i,offset:t.index,number:a,plusSign:l}))}return r},t.prototype.testMatch=function(e){return y.test(e)},t}(b),K=new RegExp("@[_".concat(T,"]{1,50}(?![_").concat(T,"])"),"g"),$=new RegExp("@[_.".concat(T,"]{1,30}(?![_").concat(T,"])"),"g"),Y=new RegExp("@[-_.".concat(T,"]{1,50}(?![-_").concat(T,"])"),"g"),Z=new RegExp("@[_.".concat(T,"]{1,23}[_").concat(T,"](?![_").concat(T,"])"),"g"),X=new RegExp("[^"+T+"]"),Q=function(e){function t(t){var n=e.call(this,t)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:K,instagram:$,soundcloud:Y,tiktok:Z},n.nonWordCharRegex=X,n.serviceName=t.serviceName,n}return Object(u.b)(t,e),t.prototype.parseMatches=function(e){var t,n=this.serviceName,o=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,i=this.tagBuilder,a=[];if(!o)return a;for(;null!==(t=o.exec(e));){var l=t.index,c=e.charAt(l-1);if(0===l||r.test(c)){var s=t[0].replace(/\.+$/g,""),u=s.slice(1);a.push(new p({tagBuilder:i,matchedText:s,offset:l,serviceName:n,mention:u}))}}return a},t}(b);function J(e,t){for(var n,o=t.onOpenTag,r=t.onCloseTag,a=t.onText,l=t.onComment,c=t.onDoctype,s=new ee,d=0,f=e.length,p=0,h=0,m=s;d<f;){var b=e.charAt(d);switch(p){case 0:y(b);break;case 1:S(b);break;case 2:E(b);break;case 3:k(b);break;case 4:C(b);break;case 5:T(b);break;case 6:A(b);break;case 7:_(b);break;case 8:j(b);break;case 9:P(b);break;case 10:N(b);break;case 11:I(b);break;case 12:R(b);break;case 13:q(b);break;case 14:L(b);break;case 15:M(b);break;case 16:D(b);break;case 17:z(b);break;case 18:B(b);break;case 19:F(b);break;case 20:H(b);break;default:i(p)}d++}function y(e){"<"===e&&W()}function S(e){"!"===e?p=13:"/"===e?(p=2,m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0}))):"<"===e?W():g.test(e)?(p=3,m=new ee(Object(u.a)(Object(u.a)({},m),{isOpening:!0}))):(p=0,m=s)}function k(e){w.test(e)?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=4):"<"===e?W():"/"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),p=12):">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{name:V()})),G()):g.test(e)||v.test(e)||":"===e||U()}function E(e){">"===e?U():g.test(e)?p=3:U()}function C(e){w.test(e)||("/"===e?p=12:">"===e?G():"<"===e?W():"="===e||x.test(e)||O.test(e)?U():p=5)}function T(e){w.test(e)?p=6:"/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)&&U()}function A(e){w.test(e)||("/"===e?p=12:"="===e?p=7:">"===e?G():"<"===e?W():x.test(e)?U():p=5)}function _(e){w.test(e)||('"'===e?p=8:"'"===e?p=9:/[>=`]/.test(e)?U():"<"===e?W():p=10)}function j(e){'"'===e&&(p=11)}function P(e){"'"===e&&(p=11)}function N(e){w.test(e)?p=4:">"===e?G():"<"===e&&W()}function I(e){w.test(e)?p=4:"/"===e?p=12:">"===e?G():"<"===e?W():(p=4,d--)}function R(e){">"===e?(m=new ee(Object(u.a)(Object(u.a)({},m),{isClosing:!0})),G()):p=4}function q(t){"--"===e.substr(d,2)?(d+=2,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"comment"})),p=14):"DOCTYPE"===e.substr(d,7).toUpperCase()?(d+=7,m=new ee(Object(u.a)(Object(u.a)({},m),{type:"doctype"})),p=20):U()}function L(e){"-"===e?p=15:">"===e?U():p=16}function M(e){"-"===e?p=18:">"===e?U():p=16}function D(e){"-"===e&&(p=17)}function z(e){p="-"===e?18:16}function B(e){">"===e?G():"!"===e?p=19:"-"===e||(p=16)}function F(e){"-"===e?p=17:">"===e?G():p=16}function H(e){">"===e?G():"<"===e&&W()}function U(){p=0,m=s}function W(){p=1,m=new ee({idx:d})}function G(){var t=e.slice(h,m.idx);t&&a(t,h),"comment"===m.type?l(m.idx):"doctype"===m.type?c(m.idx):(m.isOpening&&o(m.name,m.idx),m.isClosing&&r(m.name,m.idx)),U(),h=d+1}function V(){var t=m.idx+(m.isClosing?2:1);return e.slice(t,d).toLowerCase()}h<d&&(n=e.slice(h,d),a(n,h),h=d+1)}var ee=function(e){void 0===e&&(e={}),this.idx=void 0!==e.idx?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing},te=function(){function e(t){void 0===t&&(t={}),this.version=e.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(t.urls),this.email="boolean"==typeof t.email?t.email:this.email,this.phone="boolean"==typeof t.phone?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow="boolean"==typeof t.newWindow?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash="boolean"==typeof t.stripTrailingSlash?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding="boolean"==typeof t.decodePercentEncoding?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.sanitizeHtml||!1;var n=this.mention;if(!1!==n&&-1===["twitter","instagram","soundcloud","tiktok"].indexOf(n))throw new Error("invalid `mention` cfg '".concat(n,"' - see docs"));var o=this.hashtag;if(!1!==o&&-1===["twitter","facebook","instagram","tiktok"].indexOf(o))throw new Error("invalid `hashtag` cfg '".concat(o,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:"boolean"!=typeof e.schemeMatches||e.schemeMatches,wwwMatches:"boolean"!=typeof e.wwwMatches||e.wwwMatches,tldMatches:"boolean"!=typeof e.tldMatches||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return null==e&&(e=!0),"boolean"==typeof e?{scheme:e,www:e}:{scheme:"boolean"!=typeof e.scheme||e.scheme,www:"boolean"!=typeof e.www||e.www}},e.prototype.normalizeTruncateCfg=function(e){return"number"==typeof e?{length:e,location:"end"}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&void 0===e[n]&&(e[n]=t[n]);return e}(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(e){var t=this,n=["a","style","script"],o=0,r=[];return J(e,{onOpenTag:function(e){n.indexOf(e)>=0&&o++},onText:function(e,n){if(0===o){var i=function(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var n,o=[],r=0;n=t.exec(e);)o.push(e.substring(r,n.index)),o.push(n[0]),r=n.index+n[0].length;return o.push(e.substring(r)),o}(e,/( | |<|<|>|>|"|"|')/gi),a=n;i.forEach((function(e,n){if(n%2==0){var o=t.parseText(e,a);r.push.apply(r,o)}a+=e.length}))}},onCloseTag:function(e){n.indexOf(e)>=0&&(o=Math.max(o-1,0))},onComment:function(e){},onDoctype:function(e){}}),r=this.compactMatches(r),r=this.removeUnwantedMatches(r)},e.prototype.compactMatches=function(e){e.sort((function(e,t){return e.getOffset()-t.getOffset()}));for(var t=0;t<e.length-1;){var n=e[t],o=n.getOffset(),r=n.getMatchedText().length,i=o+r;if(t+1<e.length){if(e[t+1].getOffset()===o){var a=e[t+1].getMatchedText().length>r?t:t+1;e.splice(a,1);continue}if(e[t+1].getOffset()<i){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||r(e,(function(e){return"hashtag"===e.getType()})),this.email||r(e,(function(e){return"email"===e.getType()})),this.phone||r(e,(function(e){return"phone"===e.getType()})),this.mention||r(e,(function(e){return"mention"===e.getType()})),this.urls.schemeMatches||r(e,(function(e){return"url"===e.getType()&&"scheme"===e.getUrlMatchType()})),this.urls.wwwMatches||r(e,(function(e){return"url"===e.getType()&&"www"===e.getUrlMatchType()})),this.urls.tldMatches||r(e,(function(e){return"url"===e.getType()&&"tld"===e.getUrlMatchType()})),e},e.prototype.parseText=function(e,t){void 0===t&&(t=0),t=t||0;for(var n=this.getMatchers(),o=[],r=0,i=n.length;r<i;r++){for(var a=n[r].parseMatches(e),l=0,c=a.length;l<c;l++)a[l].setOffset(t+a[l].getOffset());o.push.apply(o,a)}return o},e.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var t=this.parse(e),n=[],o=0,r=0,i=t.length;r<i;r++){var a=t[r];n.push(e.substring(o,a.getOffset())),n.push(this.createMatchReturnVal(a)),o=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(o)),n.join("")},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),"string"==typeof t?t:!1===t?e.getMatchedText():t instanceof a?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new W({tagBuilder:e,serviceName:this.hashtag}),new L({tagBuilder:e}),new V({tagBuilder:e}),new Q({tagBuilder:e,serviceName:this.mention}),new F({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new c({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},e.version="3.15.0",e.AnchorTagBuilder=c,e.HtmlTag=a,e.matcher={Email:L,Hashtag:W,Matcher:b,Mention:Q,Phone:V,Url:F},e.match={Email:d,Hashtag:f,Match:s,Mention:p,Phone:h,Url:m},e}();t.a=te},1711:function(e,t,n){"use strict";n.d(t,"b",(function(){return x})),n.d(t,"a",(function(){return F}));n(9),n(10),n(14),n(30),n(27),n(76),n(12),n(31),n(18),n(26),n(234),n(28),n(59),n(40),n(24),n(47),n(42),n(37),n(43),n(8),n(84),n(615),n(19),n(11),n(29),n(13);var o=n(1582);function r(e,t,n,o){var r=i(v(1&o?e.prototype:e),t,n);return 2&o&&"function"==typeof r?function(e){return r.apply(n,e)}:r}function i(){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=a(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function a(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=v(e)););return e}function l(e){return(l="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 c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,u(o.key),o)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=function(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==l(t)?t:t+""}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return m(e,arguments,v(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,e)})(e)}function m(e,t,n){if(b())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&g(r,n.prototype),r}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=o.a.import("blots/embed"),w=function(e){function t(e,n){var o;return d(this,t),(o=f(this,t,[e,n])).value={},o.event=new Event(e),o}return p(t,e),s(t)}(h(Event));var x=function(e){function t(e,n){var o;return d(this,t),(o=f(this,t,[e,n])).mounted=!1,o}return p(t,e),s(t,[{key:"attach",value:function(){r(t,"attach",this,3)([]),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){r(t,"detach",this,3)([]),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=void 0)}},{key:"getClickHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-clicked",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"getHoverHandler",value:function(){var e=this;return function(t){var n=e.buildEvent("mention-hovered",t);window.dispatchEvent(n),t.preventDefault()}}},{key:"buildEvent",value:function(e,t){var n=new w(e,{bubbles:!0,cancelable:!0});return n.value=Object.assign({},this.domNode.dataset),n.event=t,n}}],[{key:"create",value:function(e){var n=r(t,"create",this,2)([]);if(!function(e){return"object"===l(e)&&null!==e&&"value"in e&&"string"==typeof e.value&&"denotationChar"in e&&"string"==typeof e.denotationChar}(e)||n instanceof HTMLElement==!1)return n;var o=document.createElement("span");if(o.className="ql-mention-denotation-char",o.innerText=e.denotationChar,n.appendChild(o),"function"==typeof this.render)n.appendChild(this.render(e));else{var i=document.createElement("span");i.className="ql-mention-value",i.innerText=e.value,n.appendChild(i)}return t.setDataValues(n,e)}},{key:"setDataValues",value:function(e,t){var n=e;return Object.keys(t).forEach((function(e){n.dataset[e]=t[e]})),n}},{key:"value",value:function(e){return e.dataset}}])}(y);x.blotName="mention",x.tagName="span",x.className="mention";n(38),n(34),n(21),n(20),n(22),n(16),n(1608),n(1662),n(48),n(49),n(468),n(17),n(94);var O="Tab",S="Enter",k="Escape",E="ArrowUp",C="ArrowDown";n(267),n(118),n(180);function T(e){return(T="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 A(e,t,n){var o=e;return Object.keys(t).forEach((function(e){n.indexOf(e)>-1?o.dataset[e]=t[e]:delete o.dataset[e]})),o}function _(e,t){null!==t&&("object"===T(t)?e.appendChild(t):e.innerText=t)}function j(e){return(j="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 P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return q(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,M(o.key),o)}}function M(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=j(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==j(t)?t:t+""}function D(e,t,n){return t=z(t),function(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],z(e).constructor):t.apply(e,n))}function z(e){return(z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e,t){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var F=function(e){function t(e,n){var o,r;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=D(this,t,[e,n])).isOpen=!1,r.itemIndex=0,r.values=[],r.suspendMouseEnter=!1,Array.isArray(null==n?void 0:n.dataAttributes)&&(r.options.dataAttributes=r.options.dataAttributes?r.options.dataAttributes.concat(n.dataAttributes):n.dataAttributes),r.options){var a=i,l=r.options[a];"function"==typeof l&&(r.options[a]=l.bind(r))}r.mentionContainer=document.createElement("div"),r.mentionContainer.className=r.options.mentionContainerClass?r.options.mentionContainerClass:"",r.mentionContainer.style.cssText="display: none; position: absolute;",r.mentionContainer.onmousemove=r.onContainerMouseMove.bind(r),r.options.fixMentionsToQuill&&(r.mentionContainer.style.width="auto"),r.mentionList=document.createElement("ul"),r.mentionList.id="quill-mention-list",e.root.setAttribute("aria-owns","quill-mention-list"),r.mentionList.className=r.options.mentionListClass?r.options.mentionListClass:"",r.mentionContainer.appendChild(r.mentionList),e.on("text-change",r.onTextChange.bind(r)),e.on("selection-change",r.onSelectionChange.bind(r)),e.container.addEventListener("paste",(function(){setTimeout((function(){var t=e.getSelection();r.onSelectionChange(t)}))})),e.keyboard.addBinding({key:O},r.selectHandler.bind(r)),e.keyboard.bindings[O].unshift(e.keyboard.bindings[O].pop());var c,s=R(null!==(o=r.options.selectKeys)&&void 0!==o?o:[]);try{for(s.s();!(c=s.n()).done;){var u=c.value;e.keyboard.addBinding({key:u},r.selectHandler.bind(r))}}catch(e){s.e(e)}finally{s.f()}return e.keyboard.bindings[S].unshift(e.keyboard.bindings[S].pop()),e.keyboard.addBinding({key:k},r.escapeHandler.bind(r)),e.keyboard.addBinding({key:E},r.upHandler.bind(r)),e.keyboard.addBinding({key:C},r.downHandler.bind(r)),r}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),function(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"selectHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.selectItem(),!1)}},{key:"escapeHandler",value:function(){return!this.isOpen||(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1)}},{key:"upHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.prevItem(),!1)}},{key:"downHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.nextItem(),!1)}},{key:"showMentionList",value:function(){"fixed"===this.options.positioningStrategy?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose&&this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=0;t<this.mentionList.childNodes.length;t+=1){var n=this.mentionList.childNodes[t];n instanceof HTMLElement&&n.classList.remove("selected")}var o=this.mentionList.childNodes[this.itemIndex];if(-1!==this.itemIndex&&"true"!==o.dataset.disabled&&(o.classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",o.id),e)){var r=o.offsetHeight,i=o.offsetTop,a=this.mentionContainer.scrollTop,l=a+this.mentionContainer.offsetHeight;i<a?this.mentionContainer.scrollTop=i:i>l-r&&(this.mentionContainer.scrollTop+=i-l+r)}}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e,t,n=this;if(-1!==this.itemIndex){var o=this.mentionList.childNodes[this.itemIndex].dataset;o.disabled||(null===(e=(t=this.options).onSelect)||void 0===e||e.call(t,o,(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.insertItem(e,t,o)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=e;if(null!==a&&void 0!==this.mentionCharPos&&void 0!==this.cursorPos){var l,c=N(N({},this.options),i);c.showDenotationChar||(a.denotationChar=""),n?l=this.cursorPos:(l=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,o.a.sources.USER));var s=this.quill.insertEmbed(l,null!==(r=c.blotName)&&void 0!==r?r:t.DEFAULTS.blotName,a,o.a.sources.USER);return c.spaceAfterInsert?(this.quill.insertText(l+1," ",o.a.sources.USER),this.quill.setSelection(l+2,o.a.sources.USER)):this.quill.setSelection(l+1,o.a.sources.USER),this.hideMentionList(),s}}},{key:"onItemMouseEnter",value:function(e){var t;if(!this.suspendMouseEnter&&e.target instanceof HTMLElement!=!1){var n=Number(null===(t=e.target)||void 0===t?void 0:t.dataset.index);Number.isNaN(n)||n===this.itemIndex||(this.itemIndex=n,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){var t;e.preventDefault(),e.stopImmediatePropagation(),e.currentTarget instanceof HTMLElement!=!1&&(this.itemIndex=null!==(t=e.currentTarget)&&void 0!==t&&t.dataset.index?Number.parseInt(e.currentTarget.dataset.index):-1,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){var e,t,n,o=null!==(e=null===(t=(n=this.options).renderLoading)||void 0===t?void 0:t.call(n))&&void 0!==e?e:void 0;if(void 0!==o)if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var r=document.createElement("div");r.className="ql-mention-loading",_(r,o),this.mentionContainer.append(r),this.showMentionList()}}},{key:"removeLoading",value:function(){var e=this.mentionContainer.getElementsByClassName("ql-mention-loading");e.length>0&&e[0].remove()}},{key:"renderList",value:function(e,t,n){if(t&&t.length>0){this.removeLoading(),this.values=t,this.mentionList.innerText="";for(var o=-1,r=0;r<t.length;r+=1){var i=document.createElement("li");i.id="quill-mention-item-"+r,i.className=this.options.listItemClass?this.options.listItemClass:"",t[r].disabled?(i.className+=" disabled",i.setAttribute("aria-hidden","true")):-1===o&&(o=r),i.dataset.index=r.toString(),_(i,this.options.renderItem(t[r],n)),t[r].disabled?i.onmouseenter=this.onDisabledItemMouseEnter.bind(this):(i.onmouseenter=this.onItemMouseEnter.bind(this),i.onmouseup=this.onItemClick.bind(this),i.onmousedown=this.onItemMouseDown.bind(this)),i.dataset.denotationChar=e,this.mentionList.appendChild(A(i,t[r],this.options.dataAttributes))}this.itemIndex=o,this.highlightItem(),this.showMentionList()}else this.hideMentionList()}},{key:"nextItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t,n=0;do{if(n++,e=(this.itemIndex+this.values.length-n)%this.values.length,t="true"===this.mentionList.childNodes[e].dataset.disabled,n===this.values.length+1){e=-1;break}}while(t);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.scrollY+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.scrollX+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){if(this.isOpen!==e){var t,n,o,r;if(e)null===(t=(n=this.options).onOpen)||void 0===t||t.call(n);else null===(o=(r=this.options).onClose)||void 0===o||o.call(r);this.isOpen=e}}},{key:"setMentionContainerPosition",value:function(){"fixed"===this.options.positioningStrategy?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var e=this;if(void 0!==this.mentionCharPos){var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var o,r,i=this.mentionContainer.offsetHeight,a=this.options.offsetTop,l=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else l+=n.left;if(this.containerRightIsNotVisible(l,t)){var c=this.mentionContainer.offsetWidth+this.options.offsetLeft;l=t.width-c}if("top"===this.options.defaultMenuOrientation){if((a=this.options.fixMentionsToQuill?-1*(i+this.options.offsetTop):n.top-(i+this.options.offsetTop))+t.top<=0){var s=this.options.offsetTop;this.options.fixMentionsToQuill?s+=t.height:s+=n.bottom,a=s}}else if(this.options.fixMentionsToQuill?a+=t.height:a+=n.bottom,this.containerBottomIsNotVisible(a,t)){var u=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(u+=n.top),a=u-i}if(a>=0)null===(o=this.options.mentionContainerClass)||void 0===o||o.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else null===(r=this.options.mentionContainerClass)||void 0===r||r.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(l,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;if(void 0!==this.mentionCharPos){this.mentionContainer.style.position="fixed",this.mentionContainer.style.height="";var t=this.quill.container.getBoundingClientRect(),n=this.quill.getBounds(this.mentionCharPos);if(null!==n){var o={right:t.right-n.right,left:t.left+n.left,top:t.top+n.top,width:0,height:n.height},r=this.options.fixMentionsToQuill?t:o,i=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var l=r.right;this.mentionContainer.style.right="".concat(l,"px")}else(a+=r.left)+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(a-=a+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var c,s,u=r.top,d=document.documentElement.clientHeight-(r.top+r.height),f=this.mentionContainer.offsetHeight<=d,p=this.mentionContainer.offsetHeight<=u;if("bottom"===("top"===this.options.defaultMenuOrientation&&p?"top":"bottom"===this.options.defaultMenuOrientation&&f||d>u?"bottom":"top"))i=r.top+r.height,f||(this.mentionContainer.style.height=d-3+"px"),null===(c=this.options.mentionContainerClass)||void 0===c||c.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}));else i=r.top-this.mentionContainer.offsetHeight,p||(this.mentionContainer.style.height=u-3+"px",i=3),null===(s=this.options.mentionContainerClass)||void 0===s||s.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}));this.mentionContainer.style.top="".concat(i,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}}}},{key:"getTextBeforeCursor",value:function(){var e,t,n=Math.max(0,(null!==(e=this.cursorPos)&&void 0!==e?e:0)-this.options.maxChars);return this.quill.getText(n,(null!==(t=this.cursorPos)&&void 0!==t?t:0)-n)}},{key:"onSomethingChange",value:function(){var e=this,t=this.quill.getSelection();if(null!=t){this.cursorPos=t.index;var n,o,r,i,a=this.getTextBeforeCursor(),l=Math.max(0,this.cursorPos-this.options.maxChars),c=l?this.quill.getText(l-1,l):"",s=(n=a,o=this.options.mentionDenotationChars,r=this.options.isolateCharacter,i=this.options.allowInlineMentionChar,o.reduce((function(e,t){var o;if(r&&i){var a=new RegExp("^".concat(t,"|\\s").concat(t),"g"),l=(n.match(a)||[]).pop();if(!l)return{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex};o=l!==t?n.lastIndexOf(l)+l.length-t.length:0}else o=n.lastIndexOf(t);return o>e.mentionCharIndex?{mentionChar:t,mentionCharIndex:o}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}}),{mentionChar:null,mentionCharIndex:-1})),u=s.mentionChar,d=s.mentionCharIndex;if(null!==u&&function(e,t,n,o){if(-1===e)return!1;if(!n)return!0;var r=e?t[e-1]:o;return!r||!!r.match(/\s/)}(d,a,this.options.isolateCharacter,c)){var f=this.cursorPos-(a.length-d);this.mentionCharPos=f;var p=a.substring(d+u.length);if(p.length>=this.options.minChars&&function(e,t){return t.test(e)}(p,this.getAllowedCharsRegex(u))){var h,m;this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var b={abandoned:!1};this.existingSourceExecutionToken=b,null===(h=(m=this.options).source)||void 0===h||h.call(m,p,(function(t,n){b.abandoned||(e.existingSourceExecutionToken=void 0,e.renderList(u,t,n))}),u)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(e){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:null!==(t=null===(n=(o=this.options).allowedChars)||void 0===n?void 0:n.call(o,e))&&void 0!==t?t:/^[a-zA-Z0-9_]*$/;var t,n,o}},{key:"onTextChange",value:function(e,t,n){"user"===n&&setTimeout(this.onSomethingChange.bind(this),50)}},{key:"onSelectionChange",value:function(e){null!==e&&0===e.length?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(e){var t=this.quill.getSelection(!0);this.quill.insertText(t.index,e),this.quill.blur(),this.quill.focus()}}])}(o.a.import("core/module"));F.DEFAULTS={mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[S],source:function(e,t,n){t([],e)},renderItem:function(e){var t=e.value;return"".concat(t)},onSelect:function(e,t){return t(e)},onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},renderLoading:function(){return null}}},1712:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(16),n(28),n(24),n(8),n(17),n(19),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(6),c=n(206),s=n(305),u=n(317),d=n(82),f=n(1),p=n(1610),h=n(124),m=n(45),b=n(313),g=n(3),v=n(4),y=n(5),w=n(478);n(1668);function x(e){return(x="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 O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=x(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=x(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==x(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var E={annotations:a.a.array.isRequired,style:a.a.object.isRequired,properties:a.a.object.isRequired,isRedaction:a.a.bool,isFreeText:a.a.bool,isEllipse:a.a.bool,hasBackToMenu:a.a.bool,onBackToMenu:a.a.func},C=function(e){var t=e.annotations,n=e.style,i=e.isRedaction,a=e.isFreeText,x=e.isEllipse,k=e.isMeasure,E=e.colorMapKey,C=e.showLineStyleOptions,T=e.properties,A=e.hideSnapModeCheckbox,_=e.onResize,j=e.hasBackToMenu,P=e.onBackToMenu,N=S(Object(l.e)((function(e){return[v.a.isElementDisabled(e,y.a.ANNOTATION_STYLE_POPUP),v.a.isToolDefaultStyleUpdateFromAnnotationPopupEnabled(e),v.a.getActiveDocumentViewerKey(e)]})),3),I=N[0],R=N[1],q=N[2],L=Object(l.d)(),M=S(Object(s.a)(),1)[0],D=S(Object(o.useState)(T.isAutoSizeFont),2),z=D[0],B=D[1],F=function(e,n){var o=f.a.getAnnotationManager(q);t.forEach((function(t){t[e]=n,"StrokeThickness"===e&&Object(b.a)(t),o.redrawAnnotation(t),t instanceof window.Core.Annotations.WidgetAnnotation&&t.refresh()}))},H=function(e,n){t.forEach((function(t){f.a.setAnnotationStyles(t,O({},e,n),q),R&&Object(h.a)(t.ToolName,e,n),"FontSize"!==e&&"Font"!==e||Object(b.a)(t)}))},U=function(e,n){t.forEach((function(t){f.a.setAnnotationStyles(t,O({},e,n),q),R&&Object(h.a)(t.ToolName,e,n)}))},W=function(e,n){t.forEach((function(t){f.a.updateAnnotationRichTextStyle(t,O({},e,n),q)}))},G=function(e,n){t.forEach((function(t){var o="";if("start"===e)t.setStartStyle(n),o="StartLineStyle";else if("end"===e)t.setEndStyle(n),o="EndLineStyle";else if("middle"===e){var r=n.split(","),i=r.shift();t.Style=i,t.Dashes=r,o="StrokeStyle"}R&&Object(h.a)(t.ToolName,o,n),f.a.getAnnotationManager(q).redrawAnnotation(t)})),f.a.getAnnotationManager(q).trigger("annotationChanged",[t,"modify",{}])},V=function(e){Object(m.k)()&&e.target===e.currentTarget&&L(g.a.closeElement(y.a.ANNOTATION_POPUP))},K=Object(p.a)("Popup AnnotationStylePopup",e);return I?null:r.a.createElement(c.a,{onResize:function(){_&&_()}},(function(e){var o=e.measureRef;return r.a.createElement("div",{className:K,"data-element":y.a.ANNOTATION_STYLE_POPUP,onClick:V,ref:o},j&&r.a.createElement("div",{className:"back-to-menu-container","data-element":y.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON_CONTAINER},r.a.createElement(d.a,{className:"back-to-menu-button",dataElement:y.a.ANNOTATION_STYLE_POPUP_BACK_BUTTON,label:M("action.backToMenu"),img:"icon-chevron-left",onClick:P})),r.a.createElement(u.a,{hideSnapModeCheckbox:A,colorMapKey:E,style:n,isFreeText:a,isFreeTextAutoSize:z,onFreeTextSizeToggle:function(){return Object(w.a)(t[0],B,z)},isEllipse:x,isMeasure:k,onStyleChange:U,onSliderChange:F,onPropertyChange:H,disableSeparator:!0,properties:T,onRichTextStyleChange:W,isRedaction:i,showLineStyleOptions:C,onLineStyleChange:G}))}))};C.propTypes=E;var T=C;t.a=T},1716:function(e,t,n){n(620)("Int8",(function(e){return function(t,n,o){return e(this,t,n,o)}}))},1717:function(e,t,n){n(620)("Uint8",(function(e){return function(t,n,o){return e(this,t,n,o)}}),!0)},1718:function(e,t,n){"use strict";n.r(t),n.d(t,"renderPermissionStatus",(function(){return H})),n.d(t,"SignaturePanel",(function(){return ne}));n(9),n(10),n(14),n(34),n(27),n(21),n(20),n(12),n(44),n(22),n(18),n(26),n(16),n(40),n(24),n(42),n(37),n(43),n(8),n(56),n(1650),n(17),n(19),n(132),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(3),c=n(1),s=n(4);n(38),n(50),n(85),n(309),n(310),n(311),n(171),n(59),n(62),n(115),n(1716),n(382),n(1717),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405);function u(e){return(u="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 d(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(u(e)+" is not iterable")}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return m(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(m(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,m(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,m(d,"constructor",s),m(s,"constructor",c),c.displayName="GeneratorFunction",m(s,r,"GeneratorFunction"),m(d),m(d,r,"Generator"),m(d,o,(function(){return this})),m(d,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:i,m:f}})()}function m(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(m=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){m(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function b(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){b(i,o,r,a,l,"next",e)}function l(e){b(i,o,r,a,l,"throw",e)}a(void 0)}))}}var v=function(){var e=g(h().m((function e(t,n,o,r,i,a,c){var s;return h().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,y(t,n,o,r,i,a);case 1:return s=e.v,c(l.a.setVerificationResult(s)),e.a(2,s)}}),e)})));return function(t,n,o,r,i,a,l){return e.apply(this,arguments)}}(),y=function(){var e=g(h().m((function e(t,n,o,r,i,a){var l,c,s,u,p,m,b;return h().w((function(e){for(;;)switch(e.n){case 0:return l=window.Core.PDFNet,c=l.VerificationResult,s=c.TrustStatus,u=c.DigestStatus,p=c.ModificationPermissionsStatus,m=c.DocumentStatus,b={},e.n=1,l.runWithCleanup(g(h().m((function e(){var c,v,y,S,k,E,C,T,A,_,j,P,N,I,R,q,L,M,D,z,B,F,H,U,W,G,V,K,$,Y,Z,X,Q,J,ee,te,ne,oe,re,ie,ae,le,ce,se,ue,de,fe,pe,he,me,be,ge,ve,ye,we,xe,Oe,Se,ke,Ee,Ce,Te,Ae,_e,je,Pe,Ne,Ie;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,t.getPDFDoc();case 1:return t=e.v,e.n=2,l.VerificationOptions.create(l.VerificationOptions.SecurityLevel.e_compatibility_and_archiving);case 2:if(c=e.v,!i){e.n=3;break}return e.n=3,c.enableOnlineCRLRevocationChecking(!0);case 3:if(null!==a){e.n=5;break}return e.n=4,c.setRevocationProxyPrefix("https://proxy.pdftron.com");case 4:e.n=6;break;case 5:if(void 0===a){e.n=6;break}return e.n=6,c.setRevocationProxyPrefix(a);case 6:v=f(n),e.p=7,S=h().m((function e(){var t,n,o,r,i,a,l;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:if("string"!=typeof(t=y.value)){e.n=5;break}return e.p=1,e.n=2,c.addTrustedCertificateFromURL(t);case 2:e.n=4;break;case 3:return e.p=3,e.v,console.error("Error encountered when trying to load certificate from URL: ".concat(t,"\n")+"Certificate will not be used as part of verification process."),e.a(2,0);case 4:e.n=15;break;case 5:if(!(t instanceof File||"[object File]"===Object.prototype.toString.call(t))){e.n=11;break}return n=new FileReader,o=new Promise((function(e,o){n.addEventListener("load",function(){var t=g(h().m((function t(n){return h().w((function(t){for(;;)switch(t.n){case 0:e(new Uint8Array(n.target.result));case 1:return t.a(2)}}),t)})));return function(e){return t.apply(this,arguments)}}()),n.addEventListener("error",(function(){o("Error reading the local certificate")})),n.readAsArrayBuffer(t)})),e.p=6,r=c,e.n=7,o;case 7:return i=e.v,e.n=8,r.addTrustedCertificate.call(r,i);case 8:e.n=10;break;case 9:return e.p=9,a=e.v,console.error("Error encountered when trying to load certificate: ".concat(a)+"Certificate will not be used as part of the verification process."),e.a(2,0);case 10:e.n=15;break;case 11:if(!(t instanceof ArrayBuffer||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray)){e.n=15;break}return e.p=12,e.n=13,c.addTrustedCertificate(t);case 13:e.n=15;break;case 14:return e.p=14,l=e.v,console.error("Error encountered when trying to load certificate: ".concat(l)+"Certificate will not be used as part of the verification process."),e.a(2,0);case 15:return e.a(2)}}),e,null,[[12,14],[6,9],[1,3]])})),v.s();case 8:if((y=v.n()).done){e.n=11;break}return e.d(d(S()),9);case 9:if(0!==e.v){e.n=10;break}return e.a(3,10);case 10:e.n=8;break;case 11:e.n=13;break;case 12:e.p=12,Oe=e.v,v.e(Oe);case 13:return e.p=13,v.f(),e.f(13);case 14:k=f(o),e.p=15,k.s();case 16:if((E=k.n()).done){e.n=25;break}if(C=E.value,T=C.constructor.name,A=["ArrayBuffer","Int8Array","Uint8Array","Uint8ClampedArray"],_=void 0,"Blob"!==T){e.n=18;break}return e.n=17,C.arrayBuffer();case 17:_=e.v,e.n=20;break;case 18:if(!A.includes(T)){e.n=19;break}_=C,e.n=20;break;case 19:return console.error("The provided TrustList is an unsupported data-structure. Please ensure the TrustList is formatted as one of the following "+"data-structures: ".concat([].concat(A,["Blob"]).join("|"))),e.a(3,24);case 20:return e.p=20,e.n=21,l.FDFDoc.createFromMemoryBuffer(_);case 21:return j=e.v,e.n=22,c.loadTrustList(j);case 22:e.n=24;break;case 23:return e.p=23,Se=e.v,console.error("Error encountered when trying to load certificate: ".concat(Se,". ")+"Certificate will not be used as part of the verification process."),e.a(3,24);case 24:e.n=16;break;case 25:e.n=27;break;case 26:e.p=26,ke=e.v,k.e(ke);case 27:return e.p=27,k.f(),e.f(27);case 28:return e.n=29,t.getFieldIteratorBegin();case 29:P=e.v;case 30:return e.n=31,P.hasNext();case 31:if(!e.v){e.n=91;break}return e.n=32,P.current();case 32:return N=e.v,e.n=33,N.isValid();case 33:if(Ee=!e.v){e.n=35;break}return e.n=34,N.getType();case 34:Ce=e.v,Te=l.Field.Type.e_signature,Ee=Ce!==Te;case 35:if(!Ee){e.n=36;break}return e.a(3,90);case 36:return e.n=37,l.DigitalSignatureField.createFromField(N);case 37:return I=e.v,e.p=38,e.n=39,I.verify(c);case 39:return R=e.v,e.n=40,I.getSDFObj();case 40:return e.n=41,e.v.getObjNum();case 41:return q=e.v,L=void 0,M=void 0,D=void 0,z=void 0,B=void 0,F=void 0,H=void 0,U=void 0,W=void 0,G={},V={},e.n=42,I.hasCryptographicSignature();case 42:if(!(K=e.v)){e.n=63;break}return e.n=43,I.getSubFilter();case 43:if(($=e.v)!==l.DigitalSignatureField.SubFilterType.e_adbe_pkcs7_detached){e.n=48;break}return e.n=44,I.getSignerCertFromCMS();case 44:return Y=e.v,e.n=45,Y.getSubjectField();case 45:return Z=e.v,e.n=46,O(Z);case 46:if(Ae=e.v){e.n=47;break}Ae={};case 47:L=Ae.e_commonName;case 48:if($===l.DigitalSignatureField.SubFilterType.e_ETSI_RFC3161){e.n=60;break}if(L){e.n=52;break}return e.n=49,I.getSignatureName();case 49:if(_e=e.v){e.n=51;break}return e.n=50,I.getContactInfo();case 50:_e=e.v;case 51:L=_e;case 52:return e.n=53,I.getSigningTime();case 53:return M=e.v,e.n=54,M.isValid();case 54:if(!e.v){e.n=55;break}M=w(M,r),e.n=56;break;case 55:M=null;case 56:return e.n=57,I.getContactInfo();case 57:return B=e.v,e.n=58,I.getLocation();case 58:return F=e.v,e.n=59,I.getReason();case 59:H=e.v;case 60:return e.n=61,I.getDocumentPermissions();case 61:return D=e.v,e.n=62,I.isCertification();case 62:z=e.v;case 63:return e.n=64,R.getVerificationStatus();case 64:return X=e.v,e.n=65,R.getDocumentStatus();case 65:return Q=e.v,e.n=66,R.getDigestStatus();case 66:return J=e.v,e.n=67,R.getTrustStatus();case 67:return ee=e.v,e.n=68,R.getPermissionsStatus();case 68:return te=e.v,e.n=69,R.getDigestAlgorithm();case 69:return ne=e.v,je=Promise,e.n=70,R.getDisallowedChanges();case 70:return Pe=e.v.map(function(){var e=g(h().m((function e(t){var n,o;return h().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getObjNum();case 1:return n=e.v,e.n=2,t.getTypeAsString();case 2:return o=e.v,e.a(2,{objnum:n,type:o})}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.n=71,je.all.call(je,Pe);case 71:return oe=e.v,re=ee===s.e_trust_verified,ie=void 0,ae=void 0,le=void 0,ce=void 0,e.n=72,R.hasTrustVerificationResult();case 72:if(!e.v){e.n=87;break}return e.n=73,R.getTrustVerificationResult();case 73:return se=e.v,e.n=74,se.wasSuccessful();case 74:return ae=e.v,e.n=75,se.getResultString();case 75:return ie=e.v,e.n=76,se.getTimeOfTrustVerificationEnum();case 76:return le=e.v,e.n=77,se.getTimeOfTrustVerification();case 77:return(ue=e.v)&&(ce=x(ue,r)),e.n=78,se.getCertPath();case 78:if(!(de=e.v).length){e.n=87;break}return fe=de[0],e.n=79,fe.getIssuerField();case 79:return pe=e.v,e.n=80,O(pe);case 80:return he=e.v,Object.assign(G,he),e.n=81,fe.getSubjectField();case 81:return me=e.v,e.n=82,O(me);case 82:return be=e.v,Object.assign(V,be),ge=de[de.length-1],e.p=83,e.n=84,ge.getNotBeforeEpochTime();case 84:return ve=e.v,e.n=85,ge.getNotAfterEpochTime();case 85:ye=e.v,U=ye>=ue&&ue>=ve,e.n=87;break;case 86:e.p=86,(Ne=e.v).includes("calendar_point::to_std_timepoint() does not support years after")&&(console.warn("The following error is a known issue with Botan, and aims to be addressed in a future release of PDFNet. This currently does not impact PDFTron's Digital Signature Verification capabilities."),console.warn(Ne));case 87:return we=void 0,we=X?"digital_signature_valid":Q!==m.e_no_error||J!==u.e_digest_verified&&J!==u.e_digest_verification_disabled||ee===s.e_no_trust_status||te!==p.e_unmodified&&te!==p.e_has_allowed_changes&&te!==p.e_permissions_verification_disabled?"digital_signature_error":"digital_signature_warning",L?W=L:!L&&V.e_commonName&&(W=V.e_commonName),e.n=88,N.getName();case 88:xe=e.v,b[xe]={signed:K,signer:L,signerName:W,signTime:M,verificationStatus:X,documentStatus:Q,digestStatus:J,trustStatus:ee,permissionStatus:te,disallowedChanges:oe,trustVerificationResultBoolean:ae,trustVerificationResultString:ie,timeOfTrustVerificationEnum:le,trustVerificationTime:ce,id:q,badgeIcon:we,validSignerIdentity:re,digestAlgorithm:ne,documentPermission:D,isCertification:z,contactInfo:B,location:F,reason:H,issuerField:G,subjectField:V,validAtTimeOfSigning:U},e.n=90;break;case 89:e.p=89,Ie=e.v,console.error(Ie);case 90:P.next(),e.n=30;break;case 91:return e.a(2)}}),e,null,[[83,86],[38,89],[20,23],[15,26,27,28],[7,12,13,14]])}))));case 1:return e.a(2,b)}}),e)})));return function(t,n,o,r,i,a){return e.apply(this,arguments)}}(),w=function(e,t){var n=e.year,o=e.month,r=e.day,i=e.hour,a=e.minute,l=e.second;return new Date(Date.UTC(n,o-1,r,i,a,l)).toLocaleDateString(t.replace("_","-"),{year:"numeric",month:"long",weekday:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"})},x=function(e,t){var n=new Date(0);return n.setUTCSeconds(e),n.toLocaleDateString(t.replace("_","-"),{year:"numeric",month:"long",weekday:"long",day:"numeric",hour:"numeric",minute:"numeric",timeZoneName:"short"})},O=function(){var e=g(h().m((function e(t){var n,o,r,i,a,l,c,s,u;return h().w((function(e){for(;;)switch(e.p=e.n){case 0:return n={},e.n=1,t.getAllAttributesAndValues();case 1:o=e.v,r=f(o),e.p=2,r.s();case 3:if((i=r.n()).done){e.n=8;break}return a=i.value,e.n=4,a.getAttributeTypeOID();case 4:return l=e.v,e.n=5,l.getRawValue();case 5:return c=e.v,e.n=6,a.getStringValue();case 6:s=e.v,n[S(c)]=s;case 7:e.n=3;break;case 8:e.n=10;break;case 9:e.p=9,u=e.v,r.e(u);case 10:return e.p=10,r.f(),e.f(10);case 11:return e.a(2,n)}}),e,null,[[2,9,10,11]])})));return function(t){return e.apply(this,arguments)}}(),S=function(e){return{"[2,5,4,3]":"e_commonName","[2,5,4,4]":"e_surname","[2,5,4,6]":"e_countryName","[2,5,4,7]":"e_localityName","[2,5,4,8]":"e_stateOrProvinceName","[2,5,4,9]":"e_streetAddress","[2,5,4,10]":"e_organizationName","[2,5,4,11]":"e_organizationalUnitName","[1,2,840,113549,1,9,1]":"e_emailAddress"}["string"==typeof e?e:JSON.stringify(e)]},k=n(471),E=(n(30),n(31),n(28),n(2)),C=n.n(E),T=n(15),A=n.n(T),_=(n(94),n(119)),j=n.n(_),P=n(23);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R=function(e){var t=e.rect,n=N(Object(o.useState)(!1),2),i=n[0],a=n[1];return Object(o.useEffect)((function(){var e=c.a.getScrollViewElement(),t=function(){a(!1)};return e.addEventListener("scroll",t),function(){return e.removeEventListener("scroll",t)}})),Object(o.useEffect)((function(){t&&(setTimeout((function(){a(!0)}),50),setTimeout((function(){a(!1)}),700))}),[t]),i&&j.a.createPortal(r.a.createElement("div",{style:{position:"absolute",top:t.y1,left:t.x1,width:t.x2-t.x1,height:t.y2-t.y1,border:"1px solid #00a5e4",zIndex:99}}),Object(P.a)().querySelector("#app"))},q=n(90),L=n(1597),M=n(41);n(1702);function D(e){return(D="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 z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function F(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=D(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=D(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==D(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H=function(e){var t=e.isCertification,n=e.ModificationPermissionsStatus,o=e.permissionStatus,i=e.translate;if(e.digestStatus===e.DigestStatusErrorCodes.e_digest_invalid)return r.a.createElement("p",null,i("digitalSignatureVerification.digestStatus.documentHasBeenAltered"));var a=F(F(F(F(F(F({},n.e_invalidated_by_disallowed_changes,"digitalSignatureVerification.permissionStatus.invalidatedByDisallowedChanges"),n.e_has_allowed_changes,"digitalSignatureVerification.permissionStatus.hasAllowedChanges"),n.e_unmodified,t?"".concat(i("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(i("digitalSignatureVerification.certified"),"."):"".concat(i("digitalSignatureVerification.permissionStatus.unmodified")," ").concat(i("digitalSignatureVerification.signed"),".")),n.e_permissions_verification_disabled,"digitalSignatureVerification.permissionStatus.permissionsVerificationDisabled"),n.e_no_permissions_status,"digitalSignatureVerification.permissionStatus.noPermissionsStatus"),n.e_unsupported_permissions_features,"digitalSignatureVerification.permissionStatus.unsupportedPermissionsFeatures");return r.a.createElement("p",null,i(a[o]||""))},U={name:C.a.string.isRequired,onClick:C.a.func,field:C.a.instanceOf(window.Core.Annotations.Forms.Field)},W=function(e){var t,n,u=e.name,d=e.field,f=Object(i.e)((function(e){return s.a.getVerificationResult(e,u)})),p=z(Object(o.useState)(null),2),h=p[0],m=p[1],b=z(Object(o.useState)(!1),2),g=b[0],v=b[1],y=window.Core.PDFNet,w=y.VerificationResult,x=y.VerificationOptions.TimeMode,O=w.ModificationPermissionsStatus,S=w.DigestStatus,k=z(Object(a.a)(),1)[0],E=f.signed,C=f.signTime,T=f.verificationStatus,_=f.permissionStatus,j=f.disallowedChanges,P=f.trustVerificationResultBoolean,N=f.timeOfTrustVerificationEnum,I=f.trustVerificationTime,D=f.badgeIcon,B=f.isCertification,F=f.contactInfo,U=f.location,W=f.reason,G=f.signerName,V=f.digestStatus,K=Object(i.d)(),$=function(){!function(e){if(e.widgets.length){var t=e.widgets[0];c.a.jumpToAnnotation(t);var n=c.a.getScrollViewElement(),o=n.scrollLeft,r=n.scrollTop,i=t.getRect(),a=c.a.getDisplayModeObject().pageToWindow({x:i.x1,y:i.y1},t.PageNumber),l=c.a.getDisplayModeObject().pageToWindow({x:i.x2,y:i.y2},t.PageNumber);m({x1:a.x-o,y1:a.y-r,x2:l.x-o,y2:l.y-r})}}(d)},Y=Object(q.a)((function(){K(l.a.setSignatureValidationModalWidgetName(u)),K(l.a.openElement("signatureValidationModal"))}));return r.a.createElement("div",{className:"signature-widget-info"},E?r.a.createElement(r.a.Fragment,null,r.a.createElement(L.a,{labelHeader:(n=k(B?"digitalSignatureVerification.Certified":"digitalSignatureVerification.Signed"),n+=" ".concat(k("digitalSignatureVerification.by")," ").concat(G||k("digitalSignatureModal.unknown")),C&&(n+=" ".concat(k("digitalSignatureVerification.on")," ").concat(C)),n),iconGlyph:D,useI18String:!1,onClick:$,onKeyDown:$},r.a.createElement("div",{className:"verificationDetails",tabIndex:-1},r.a.createElement("div",{className:"header"},(t=k(B?"digitalSignatureVerification.Certification":"digitalSignatureVerification.Signature"),r.a.createElement("div",{className:"title"},r.a.createElement("p",null,k(T?"digitalSignatureVerification.verificationStatus.valid":"digitalSignatureVerification.verificationStatus.failed",{verificationType:t})))),r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,H({isCertification:B,ModificationPermissionsStatus:O,permissionStatus:_,translate:k,digestStatus:V,DigestStatusErrorCodes:S})),j.map((function(e){var t=e.objnum,n=e.type;return r.a.createElement("li",{key:t},r.a.createElement("p",null,k("digitalSignatureVerification.disallowedChange",{type:n,objnum:t})))})),function(){var e;switch(N){case x.e_current:e=k("digitalSignatureVerification.trustVerification.current");break;case x.e_signing:e=k("digitalSignatureVerification.trustVerification.signing");break;case x.e_timestamp:e=k("digitalSignatureVerification.trustVerification.timestamp");break;default:console.warn("Unexpected pdftron::PDF::VerificationOptions::TimeMode: ".concat(N))}return r.a.createElement(r.a.Fragment,null,r.a.createElement("li",null,r.a.createElement("p",null,k(P?"digitalSignatureVerification.trustVerification.verifiedTrust":"digitalSignatureVerification.trustVerification.noTrustVerification"))),r.a.createElement("li",null,r.a.createElement("p",null,I)),r.a.createElement("li",null,r.a.createElement("p",null,e)))}(),r.a.createElement("li",null,r.a.createElement("button",{"data-element":"signatureProperties-".concat(u),onClick:Y,tabIndex:0,className:"signatureProperties link","aria-label":"Open signature properties modal"},r.a.createElement("p",{className:"bold underline"},k("digitalSignatureVerification.signatureProperties"))))))),r.a.createElement("div",{className:"header header-with-arrow"},F||U||W?r.a.createElement("div",{className:"signatureDetails",tabIndex:-1},r.a.createElement("div",{className:"title collapsible"},r.a.createElement(M.a,{img:"icon-chevron-right",className:A()({arrow:!0,expanded:g}),ariaExpanded:g,isActive:g,ariaLabel:k("digitalSignatureVerification.signatureDetails.signatureDetails"),onClick:function(){return v(!g)}}),r.a.createElement("p",null,k("digitalSignatureVerification.signatureDetails.signatureDetails"))),g&&r.a.createElement("ul",{className:"body"},r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.contactInformation"),":")),r.a.createElement("p",{className:"result-for-header"},F||k("digitalSignatureVerification.signatureDetails.noContactInformation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.location"),":")),r.a.createElement("p",{className:"result-for-header"},U||k("digitalSignatureVerification.signatureDetails.noLocation"))),r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.reason"),":")),r.a.createElement("p",{className:"result-for-header"},W||k("digitalSignatureVerification.signatureDetails.noReason"))),C&&r.a.createElement("li",null,r.a.createElement("p",{className:"bold"},"".concat(k("digitalSignatureVerification.signatureDetails.signingTime"),":")),r.a.createElement("p",{className:"result-for-header"},C||k("digitalSignatureVerification.signatureDetails.noSigningTime"))))):null))):r.a.createElement(L.a,{labelHeader:k("digitalSignatureVerification.unsignedSignatureField",{fieldName:d.name}),iconGlyph:"digital_signature_empty",useI18String:!1,onClick:$,onKeyDown:$}),r.a.createElement(R,{rect:h}))};W.propTypes=U;var G=W,V=(n(1704),n(51)),K=n(32);function $(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ee(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Z(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Z(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Z(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Z(d,"constructor",s),Z(s,"constructor",c),c.displayName="GeneratorFunction",Z(s,r,"GeneratorFunction"),Z(d),Z(d,r,"Generator"),Z(d,o,(function(){return this})),Z(d,"toString",(function(){return"[object Generator]"})),(Y=function(){return{w:i,m:f}})()}function Z(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Z=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Z(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function X(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Q(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){X(i,o,r,a,l,"next",e)}function l(e){X(i,o,r,a,l,"throw",e)}a(void 0)}))}}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||ee(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=function(){var e=Object(i.d)(),t=J(Object(o.useState)([]),2),n=t[0],u=t[1],d=J(Object(o.useState)(!1),2),f=d[0],p=d[1],h=J(Object(o.useState)(""),2),m=h[0],b=h[1],g=J(Object(o.useState)(c.a.getDocument()),2),y=g[0],w=g[1],x=J(Object(i.e)((function(e){return[s.a.isElementDisabled(e,"signaturePanel"),s.a.getCertificates(e),s.a.getTrustLists(e),s.a.getCurrentLanguage(e),s.a.getIsRevocationCheckingEnabled(e),s.a.getRevocationProxyPrefix(e)]})),6),O=x[0],S=x[1],E=x[2],C=x[3],T=x[4],A=x[5],_=J(Object(a.a)(),1)[0],j=function(){var e=Q(Y().m((function e(){return Y().w((function(e){for(;;)switch(e.n){case 0:w(c.a.getDocument());case 1:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),P=Object(o.useCallback)((function(){p(!0),e(l.a.setVerificationResult({}))}),[p,e]),N=function(e,t){var n=c.a.getAnnotationManager().getFormFieldCreationManager().isInFormFieldCreationMode();"add"===t?R(c.a.getAnnotationManager().getAnnotationsList()):"delete"===t&&n&&q(e)},I=function(){var e=c.a.getAnnotationManager().getAnnotationsList();R(e)},R=function(e){var t=[];e.forEach((function(e){e instanceof window.Core.Annotations.SignatureWidgetAnnotation&&t.push(e.getField())}));var n=new Set(t);u($(n))},q=function(e){e.forEach((function(e){L(e)})),I()},L=function(e){if(e instanceof window.Core.Annotations.WidgetAnnotation){var t=c.a.getAnnotationManager(),n=t.getAnnotationsList().filter((function(t){return t.getCustomData("trn-editing-rectangle-id")===e.Id}));t.deleteAnnotations(n)}},M=function(){u([]),I()};if(Object(o.useEffect)((function(){return c.a.addEventListener("documentLoaded",j),c.a.addEventListener("documentUnloaded",P),c.a.addEventListener("annotationChanged",N),c.a.addEventListener("formFieldCreationModeStarted",M),c.a.addEventListener("formFieldCreationModeEnded",M),function(){c.a.removeEventListener("documentLoaded",j),c.a.removeEventListener("documentUnloaded",P),c.a.removeEventListener("annotationChanged",N),c.a.removeEventListener("formFieldCreationModeStarted",M),c.a.removeEventListener("formFieldCreationModeEnded",M)}}),[P]),Object(o.useEffect)((function(){y?c.a.getAnnotationsLoadedPromise().then((function(){p(!0),v(y,S,E,C,T,A,e).then(function(){var e=Q(Y().m((function e(t){var n;return Y().w((function(e){for(;;)switch(e.n){case 0:n=c.a.getAnnotationManager().getFieldManager(),u(Object.keys(t).map((function(e){return n.getField(e)}))),b("");case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){e&&e.message?b(e.message):console.error(e)})).then((function(){I()})).finally((function(){p(!1)}))})):p(!0)}),[S,y,e,C]),O)return null;return r.a.createElement("div",{className:"Panel SignaturePanel","data-element":"signaturePanel"},function(){var e;if(f)e=r.a.createElement(k.a,{inPanel:!0,width:"40px",height:"40px"});else if("Error reading the local certificate"===m)e=_("digitalSignatureVerification.panelMessages.localCertificateError");else if("Download Failed"===m)e=_("digitalSignatureVerification.panelMessages.certificateDownloadError");else{if(n.length)return null;e=_("digitalSignatureVerification.panelMessages.noSignatureFields")}return r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(V.a,{className:"empty-icon",glyph:K.c[K.e.SIGNATURE].icon}),r.a.createElement("div",{className:"empty-message"},e))}(),!f&&n.length>0&&n.map((function(e,t){return r.a.createElement(G,{key:t,name:e.name,collapsible:!0,field:e})})))};t.default=ne},1723:function(e,t,n){var o=n(35),r=n(1724);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1724:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,"",""])},1725:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},1726:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(120))},1727:function(e,t,n){var o=n(35),r=n(1728);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1728:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,'.panel-list-item{width:100%;display:flex;flex-direction:column;position:relative;box-sizing:border-box;list-style-type:none}.panel-list-item ul{list-style-type:none;margin:0}.panel-list-item li::marker{content:"";margin:0}.panel-list-grid{display:grid;align-items:center;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:8px;margin-bottom:8px}.panel-list-grid.grid-with-1-row{grid-template-rows:auto}.panel-list-grid.grid-with-2-rows{grid-template-rows:auto auto}.panel-list-grid.grid-with-3-columns{grid-template-columns:auto minmax(0,1fr) auto}.panel-list-grid.grid-with-4-columns{grid-template-columns:auto auto minmax(0,1fr) auto}.panel-list-grid.grid-with-5-columns{grid-template-columns:auto auto auto minmax(0,1fr) auto}.panel-list-grid:hover .panel-list-more-options,.panel-list-grid[focus-within] .panel-list-more-options{visibility:visible}.panel-list-grid:focus-within .panel-list-more-options,.panel-list-grid:hover .panel-list-more-options{visibility:visible}.panel-list-row{display:contents}.panel-list-row.with-checkbox{padding-inline-start:32px}.panel-list-row .checkbox{margin:0;position:relative;inset-inline-start:0;inset-inline-start:var(--checkbox-left,0)}.panel-list-row .chevron-container{min-width:24px;transition:transform .1s ease;visibility:hidden}.panel-list-row .chevron-container.toggled{transform:rotate(90deg)}.panel-list-row .chevron-container.visible{visibility:visible}.panel-list-row .chevron-container:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.panel-list-row .chevron-container .Button{width:24px;height:24px}.panel-list-row .chevron-container .Button .Icon{width:12px;height:12px}.panel-list-row .panel-list-icon-container .Icon{width:24px;height:24px}.panel-list-row .panel-list-text-container{grid-area:1/-3/auto/-2;display:flex;flex-direction:row;height:24px}.panel-list-row .panel-list-text-container .panel-list-label-header{align-content:center;margin:0;width:100%}.panel-list-row .panel-list-text-container .panel-list-label-header .set-focus{color:#2c73ab}.panel-list-row .panel-list-text-container .panel-list-label-header .Button{display:flex;width:auto;max-width:100%;height:100%;padding:2px 0 2px 4px;justify-content:start}.panel-list-row .panel-list-text-container .panel-list-label-header .Button:focus{color:#2c73ab}.panel-list-row .panel-list-text-container .panel-list-label-header .Button:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:unset;color:var(--blue-6)}.panel-list-row .panel-list-text-container .panel-list-label-header .Button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;flex-grow:1}.panel-list-row .panel-list-more-options{grid-area:1/-2/auto/-1;display:flex;justify-content:flex-end;margin-inline-start:2px;visibility:hidden}.panel-list-row .panel-list-more-options .Button{width:24px;height:24px;min-width:24px}.panel-list-row .panel-list-more-options .Button:focus{color:var(--blue-6)}.panel-list-row .panel-list-more-options .Button .Icon{width:12px;height:12px}.panel-list-description{grid-area:2/-3/auto/-2;display:flex;align-items:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:2px 0 2px 4px;height:24px}.panel-list-children{padding-inline-start:32px}',""])},1729:function(e,t,n){var o=n(35),r=n(1730);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1730:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".outline-destination,.outline-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.outline-destination{flex-basis:100%;font-size:10px;color:var(--faded-text);margin-top:var(--padding-small)}.bookmark-outline-label-row .ToggleElementButton .Button{padding:0;min-width:16px}",""])},1731:function(e,t,n){var o=n(35),r=n(1732);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1732:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,':host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.outline-drag-container{border-radius:4px}.outline-drag-container.isNesting>.bookmark-outline-single-container{background-color:var(--popup-button-active);border-color:var(--focus-border)}.outline-treeview-toggle{flex-grow:0;flex-shrink:0;margin-inline-end:var(--padding-small);margin-top:2px;margin-bottom:2px;min-width:14px;transition:transform .1s ease}.outline-treeview-toggle.expanded{transform:rotate(90deg)}.outline-treeview-toggle .Button{width:auto;height:auto}.outline-treeview-toggle .Button .Icon{width:16px;height:16px}.outline-drag-line{margin-inline-start:var(--padding);margin-inline-end:var(--padding);border-top:1px solid var(--focus-border);position:relative}.outline-drag-line:before{content:"";display:block;position:absolute;width:5px;height:5px;inset-block-start:-3px;inset-inline-start:0;background-color:var(--focus-border);border-radius:50%}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1733:function(e,t,n){var o=n(35),r=n(1734);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1734:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel{margin:16px;padding:0;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel{margin:16px;padding:0;overflow-y:auto}}.OutlinesPanel .bookmark-outline-single-container:not(.editing){height:-moz-fit-content;height:fit-content}.OutlinesPanel .bookmark-outline-row{padding-top:6px}.OutlinesPanel .msg-no-bookmark-outline{margin-top:6px}.OutlinesPanel .spinner{align-self:center}.OutlinesPanel .small-outlines-list{height:calc(100% - 154px)!important}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button{width:-moz-fit-content;width:fit-content;height:100%;padding:0 8px;justify-content:start}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button:hover{cursor:pointer;border:none;border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .panel-list-label-header .Button:focus{border-radius:4px;box-shadow:inset 0 0 0 1px var(--blue-6);color:var(--blue-6);background-color:var(--faded-component-background)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-more-button.active{display:flex}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-more-button.active .Icon{color:var(--blue-5)}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.default.hover:not(.selected),.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.default:hover:not(.selected){background:none}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container.focus-visible,.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container:focus-visible{outline:var(--focus-visible-outline)!important}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input{font-size:13px}}.OutlinesPanel.modular-ui-panel .bookmark-outline-single-container .bookmark-outline-input:active{border-color:var(--focus-border)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-cancel-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-control-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .OutlinesPanel .bookmark-outline-save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-cancel-button,.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-control-button,.App.is-web-component:not(.is-in-desktop-only-mode) .OutlinesPanel .bookmark-outline-save-button{font-size:13px}}.Panel.OutlinesPanel{overflow:auto;-webkit-overflow-scrolling:touch;flex:1;flex-direction:column}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1735:function(e,t,n){var o=n(35),r=n(1736);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1736:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.BookmarksPanel{display:flex;flex-direction:column;flex:1;font-size:var(--font-size-default)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel{margin:16px;padding:0;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel{margin:16px;padding:0;overflow-y:auto}}.BookmarksPanel .bookmark-switch{-webkit-font-smoothing:antialiased;margin-top:var(--padding-medium);padding-inline-start:4px}.BookmarksPanel .bookmark-outline-single-container{margin-top:var(--padding-medium)}.BookmarksPanel .bookmark-outline-single-container[focus-within]:not(.editing){background-color:var(--outline-selected);outline:1px solid var(--bookmark-outline-hover-border)}.BookmarksPanel .bookmark-outline-single-container:focus-within:not(.editing){background-color:var(--outline-selected);outline:1px solid var(--bookmark-outline-hover-border)}.BookmarksPanel .msg-no-bookmark-outline{margin-top:var(--padding)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .ui__choice__label{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .ui__choice__label{font-size:13px}}.BookmarksPanel .ui__choice__input__switch{background-color:var(--gray-6)!important}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-row{overflow:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-row{overflow:auto}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-cancel-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-control-button,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-save-button{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-cancel-button,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-control-button,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-save-button{font-size:13px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-outline-input,.App:not(.is-in-desktop-only-mode):not(.is-web-component) .BookmarksPanel .bookmark-text-input{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-outline-input,.App.is-web-component:not(.is-in-desktop-only-mode) .BookmarksPanel .bookmark-text-input{font-size:13px}}.BookmarksPanel .panel-list-row .Button{font-weight:700}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1737:function(e,t,n){var o=n(35),r=n(1738);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1738:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.fileAttachmentPanel{z-index:65;display:flex;flex-direction:column;transition:transform .3s ease,visibility 0s ease .3s}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel{inset-block-start:0;width:100%;height:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{inset-block-start:0;width:100%;height:100%}}.open.fileAttachmentPanel{transform:none;visibility:visible;transition:transform .3s ease,visibility 0s ease 0s}.fileAttachmentPanel .empty-panel-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;width:100%;padding:36px;grid-gap:8px;gap:8px}.fileAttachmentPanel .empty-panel-container .empty-icon{width:60px;height:60px;color:var(--gray-6);fill:var(--gray-6)}.fileAttachmentPanel .empty-panel-container .empty-icon svg{width:60px;height:60px}.fileAttachmentPanel .empty-panel-container .empty-message{text-align:center;max-width:131px;font-size:13px}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel .empty-panel-container .empty-message{line-height:15px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel .empty-panel-container .empty-message{line-height:15px}}.fileAttachmentPanel{display:block;font-size:var(--font-size-default)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .fileAttachmentPanel{margin:16px;width:auto;flex-grow:1;overflow-y:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .fileAttachmentPanel{margin:16px;width:auto;flex-grow:1;overflow-y:auto}}.fileAttachmentPanel .section{margin-bottom:8px}.fileAttachmentPanel .section h2.title{font-weight:700;font-size:13px;padding-inline-start:var(--fileAttachment-title-padding);margin:12px 0}.fileAttachmentPanel .section ul.downloadable{padding-inline-start:var(--fileAttachment-list-padding)}.fileAttachmentPanel .section ul.downloadable>li{width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:4px 0}.fileAttachmentPanel .section ul.downloadable>li>button{cursor:pointer;color:var(--secondary-button-text);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:4px 0}.fileAttachmentPanel .section ul.downloadable>li>button:hover{color:var(--secondary-button-hover)}.fileAttachmentPanel .section ul.downloadable .embedSpinner{display:flex;flex-direction:row;justify-content:space-between}.fileAttachmentPanel .section ul.downloadable .embedSpinner .spinner{margin:0}.fileAttachmentPanel .section ul ul{padding-inline-start:10px;list-style-type:none}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1739:function(e,t,n){var o=n(35),r=n(1740);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1740:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,':host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.thumbnailControls-overlay{display:grid;text-align:center;z-index:2;margin-top:5px;grid-template-areas:"rotate delete . more";grid-template-columns:repeat(3,1fr)}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.thumbnailControls-overlay{display:flex}}.thumbnailControls-overlay .Button{height:32px;padding:0;width:32px}.thumbnailControls-overlay .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.thumbnailControls-overlay .Button:hover{background:var(--view-header-button-hover);border-radius:4px}.thumbnailControls-overlay .Button.active{background:var(--view-header-button-active)}.thumbnailControls-overlay .Button.active .Icon{color:var(--selected-icon-color)}.thumbnailControls-overlay.modular-ui .Button:hover{border:1px solid var(--focus-border);background:var(--tools-button-hover)}.thumbnailControls-overlay .rotate-button{grid-area:rotate}.thumbnailControls-overlay .delete-button{grid-area:delete}.thumbnailControls-overlay .more-options{grid-area:more}.thumbnailControls-overlay.custom-buttons .Button{grid-area:auto}.thumbnailControls{display:flex;flex-direction:row;text-align:center;z-index:2;margin-top:5px}.thumbnailControls .Button{height:32px;padding:0;width:32px;margin:0 4px}.thumbnailControls .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.thumbnailControls .Button:hover{background:var(--view-header-button-hover);border-radius:4px}',""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1741:function(e,t,n){var o=n(35),r=n(1742);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1742:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.Thumbnail{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;cursor:pointer}.Thumbnail.active .container .page-image{border:2px solid var(--focus-border);box-shadow:none;box-sizing:content-box}.Thumbnail .container{position:relative;display:flex;justify-content:center;align-items:center;cursor:pointer}.Thumbnail .container .page-image{box-shadow:0 0 3px 0 var(--box-shadow)}.Thumbnail .container .annotation-image,.Thumbnail .container .page-image{position:absolute;inset-inline-start:50%;inset-block-start:50%;transform:translate(-50%,-50%)}.Thumbnail .container .annotation-image.right-to-left,.Thumbnail .container .page-image.right-to-left{transform:translate(-15%,-50%);inset-inline-start:0}.Thumbnail .container .checkbox{position:absolute;border-radius:4px;z-index:4}.Thumbnail .container .default{inset-block-start:3%;inset-inline-end:15%}.Thumbnail .container .rotated{inset-block-start:15%;inset-inline-end:3%}.Thumbnail .page-label{margin-top:11px}.Thumbnail.selected .container .thumbnail:before{color:#fff;background:var(--focus-border);width:16px;height:16px;position:absolute;z-index:10}.Thumbnail.selected .container canvas{background:hsla(0,0%,100%,.6)}.Thumbnail.active .page-label{color:var(--focus-border)!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1743:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControlsContainer{margin-inline-start:16px;margin-inline-end:16px;margin-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControlsContainer{margin-inline-start:16px;margin-inline-end:16px;margin-bottom:16px}}.documentControlsContainer .PageControlContainer{display:flex;background-color:var(--gray-2);justify-content:center;align-content:center;border-radius:4px}.documentControlsContainer .PageControlContainer .dropdown-menu{position:relative}.documentControlsContainer .PageControlContainer .dropdown-menu .indicator{position:absolute;inset-block-end:1px;inset-inline-end:1px;width:0;height:0;border-inline-start:4px solid transparent;border-inline-end:4px solid transparent;border-top:4px solid #c4c4c4;transform:rotateY(0deg) rotate(315deg)}.documentControlsContainer .PageControlContainer button .Icon{height:21px;width:21px;color:var(--icon-color)}.documentControlsContainer .PageControlContainer .button-hover:hover{background:var(--view-header-button-hover);border-radius:4px}.documentControlsContainer .PageControlContainer .divider{height:20px;width:1px;background:var(--divider);margin:6px;display:block!important}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1744:function(e,t,n){var o=n(35),r=n(1745);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1745:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.documentControls{display:flex;flex-direction:column}.documentControls .divider{height:1px;background:var(--divider);margin:16px 0 8px}.documentControls .documentControlsInput{display:flex;flex-direction:row;padding-bottom:16px;padding-top:8px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsInput{padding-bottom:0}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsInput{padding-bottom:0}}.documentControls .documentControlsInput.customizableUI{padding:8px 0}.documentControls .documentControlsInput .pagesInput{width:100%;height:30px;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-bottom:4px;padding-inline-start:8px;padding-inline-end:8px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsInput .pagesInput{font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsInput .pagesInput{font-size:13px}}.documentControls .documentControlsInput .pagesInput:focus{outline:none;border:1px solid var(--focus-border)}.documentControls .documentControlsInput .pagesInput::-moz-placeholder{color:var(--placeholder-text)}.documentControls .documentControlsInput .pagesInput::placeholder{color:var(--placeholder-text)}.documentControls .documentControlsInput .documentControlsButton{display:flex;flex-direction:row;padding-inline-start:2px}.documentControls .documentControlsInput .documentControlsButton .Button{height:30px;padding:0;width:30px;margin:0 4px}.documentControls .documentControlsInput .documentControlsButton .Button .Icon{height:24px;width:24px;color:var(--icon-color)}.documentControls .documentControlsInput .documentControlsButton .Button:hover{background:var(--view-header-button-hover);border-radius:4px}.documentControls .documentControlsLabel{margin-top:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .documentControls .documentControlsLabel{margin-top:8px;font-size:13px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .documentControls .documentControlsLabel{margin-top:8px;font-size:13px}}.documentControls .documentControlsLabel .multiSelectExampleLabel{color:var(--faded-text);margin-inline-start:2px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1746:function(e,t,n){var o=n(35),r=n(1747);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1747:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.thumbnail-slider-container{display:flex;align-items:center;width:230px;margin:0 auto;height:40px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container{width:inherit;margin:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container{width:inherit;margin:16px}}.thumbnail-slider-container .thumbnail-slider{width:100%;height:20px;padding:0;color:transparent;background-color:transparent;border:0 transparent}.thumbnail-slider-container input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;accent-color:green;height:3px;background:#2980b9}.thumbnail-slider-container input[type=range]::-webkit-slider-runnable-track{height:5px;border-radius:6px}.thumbnail-slider-container input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:14px;width:14px;background-color:var(--slider-filled);border-radius:50%;border:2px solid var(--slider-filled);margin-top:-4px}.thumbnail-slider-container input[type=range]::-moz-range-track{height:5px;border-radius:4px}.thumbnail-slider-container button{width:15px;height:15px;margin:2.5px;padding-top:6px}.thumbnail-slider-container button:hover{background:var(--view-header-button-hover);border-radius:4px}.thumbnail-slider-container .slider{width:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container .slider{margin-top:0}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container .slider{margin-top:0}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .thumbnail-slider-container .slider .slider-element-container{width:auto;margin-inline-start:auto}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .thumbnail-slider-container .slider .slider-element-container{width:auto;margin-inline-start:auto}}.ThumbnailsPanel{overflow:hidden!important;display:flex;height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .ThumbnailsPanel{width:inherit;margin:0 16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .ThumbnailsPanel{width:inherit;margin:0 16px}}.ThumbnailsPanel #virtualized-thumbnails-container{flex:1}.ThumbnailsPanel .ReactVirtualized__Grid.ReactVirtualized__List.thumbnailsList.right-to-left{direction:rtl!important}.ThumbnailsPanel .row{display:flex;justify-content:space-around;align-items:center;flex-direction:column}.ThumbnailsPanel .thumbnailPlaceholder{width:150px;margin:2px;border:1px solid var(--focus-border)}.ThumbnailsPanel .columnsOfThumbnails.row{display:flex;justify-content:left;align-items:center;flex-direction:row}.ThumbnailsPanel .columnsOfThumbnails .cellThumbContainer{display:flex;flex-direction:row}.ThumbnailsPanel .columnsOfThumbnails .Thumbnail{display:inline-flex}.ThumbnailsPanel .columnsOfThumbnails .thumbnailPlaceholder{width:116px;min-width:116px;height:150px;margin-bottom:30px}.cellThumbContainer{border-radius:4px}.thumbnailAutoScrollArea{position:absolute;width:calc(100% - 55px);z-index:10;background:hsla(0,0%,100%,0)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1748:function(e,t,n){var o=n(35),r=n(1749);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1749:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.multi-reply-place-holder{height:100px}.reply-area-multi-container{border-top:1px solid var(--divider);display:flex;flex-direction:column;width:100%;position:absolute;inset-block-end:0;z-index:100;background:var(--panel-background)}.reply-area-multi-container form{width:100%;display:flex}.reply-area-multi-container .reply-area-multi-header{display:flex;flex-direction:row;margin-inline-start:16px;margin-top:28px;position:relative;justify-content:space-between}.reply-area-multi-container .reply-area-multi-header .title{font-size:13px;font-weight:700;display:flex;align-items:center}.reply-area-multi-container .reply-area-multi-header .close-icon{display:flex;align-items:center;padding-inline-end:12px;cursor:pointer;position:relative;inset-block-start:1px}.reply-area-multi-container .reply-area-multi-header .close-icon .close-icon{width:22px;height:22px}.reply-area-multi-container .reply-button-container{display:flex;justify-content:flex-end;flex-direction:column}.reply-area-multi-container .reply-button{width:28px;height:28px;padding:0;border:none;background-color:transparent;inset-inline-end:10px;inset-block-end:12px}:host(:not([data-tabbing=true])) .reply-area-multi-container .reply-button,html:not([data-tabbing=true]) .reply-area-multi-container .reply-button{outline:none}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.reply-area-multi-container .reply-button{width:80px}}.reply-area-multi-container .reply-button:hover{background:var(--blue-1)}.reply-area-multi-container .reply-button.disabled{cursor:not-allowed}.reply-area-multi-container .reply-area{position:relative;flex:1;margin:13px 17px 12px 16px;border-radius:4px;align-items:center;background:var(--component-background)}.reply-area-multi-container .reply-area.unread{background:rgba(0,165,228,.08)}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank{padding:4px}.reply-area-multi-container .reply-area .comment-textarea .ql-container .ql-editor.ql-blank:before{inset-inline-start:4px}.reply-area-multi-container .add-attachment{display:none}.reply-area-multi-container.modular-ui{padding:16px 16px 24px}.reply-area-multi-container.modular-ui form{margin-bottom:0}.reply-area-multi-container.modular-ui .reply-area{margin:13px 16px 24px 0}.reply-area-multi-container.modular-ui .reply-area-multi-header{margin-inline-start:0;margin-top:0}.reply-area-multi-container.modular-ui .reply-area-multi-header .close-icon{width:28px;height:28px}.reply-area-multi-container.modular-ui .close-icon{padding-inline-end:0;margin-inline-end:16px}.reply-area-multi-container.modular-ui .reply-button-container{margin-inline-end:16px;margin-bottom:12px}.reply-area-multi-container.modular-ui .reply-button{inset-inline-start:0;inset-inline-end:0}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1750:function(e,t,n){var o=n(35),r=n(1751);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1751:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".multi-style-container{border-radius:4px;box-shadow:0 0 3px 0 var(--document-box-shadow);background:var(--component-background);position:relative;inset-inline-end:20px;inset-block-end:52px;pointer-events:auto}.multi-style-container *{box-sizing:border-box}",""])},1752:function(e,t,n){var o=n(35),r=n(1753);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1753:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,".notes-panel-container .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}.notes-panel-container .buttons-container .Button{height:28px;width:28px}.notes-panel-container .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}.notes-panel-container .buttons-container .Button.active{background:var(--view-header-button-active)}.notes-panel-container .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}.notes-panel-container .multi-select-footer{background:var(--panel-background);display:flex;border-top:1px solid var(--gray-5);margin-top:auto;margin-bottom:16px;height:64px;padding:24px 16px;align-items:center;justify-content:center;position:absolute;inset-block-end:0;width:100%;z-index:100}.notes-panel-container .multi-select-footer .close-container{margin-top:auto;inset-inline-end:26px;position:absolute}",""])},1754:function(e,t,n){var o=n(35),r=n(1755);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1755:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.comments-counter{height:19px;margin-top:24px;margin-bottom:12px;font-size:16px}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .comments-counter{margin-top:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .comments-counter{margin-top:16px}}.comments-counter span{font-weight:700}.comments-counter h2{font-weight:400;font-size:16px}[data-element=notesPanelHeader]{padding-inline-end:18px}[data-element=notesPanelHeader] .buttons-container{display:flex;grid-column-gap:8px;-moz-column-gap:8px;column-gap:8px;justify-content:space-between}[data-element=notesPanelHeader] .buttons-container .Button{height:28px;width:28px;cursor:pointer}[data-element=notesPanelHeader] .buttons-container .Button:hover:enabled{background:var(--view-header-button-hover)}[data-element=notesPanelHeader] .buttons-container .Button.active{background:var(--view-header-button-active)}[data-element=notesPanelHeader] .buttons-container .Button.active .Icon{color:var(--view-header-icon-active-fill)}[data-element=notesPanelHeader] .buttons-container .Button:disabled{cursor:default}[data-element=notesPanelHeader] .sort-row{display:flex;justify-content:space-between;margin-bottom:16px}[data-element=notesPanelHeader] .sort-row .sort-container{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;align-self:flex-end}[data-element=notesPanelHeader] .sort-row .sort-container .label{margin-inline-end:8px}[data-element=notesPanelHeader] .sort-row .sort-container .picked-option{text-align:start}[data-element=notesPanelHeader] .input-container{display:flex;position:relative;flex:1}[data-element=notesPanelHeader] .input-container input{width:100%;border:1px solid var(--border);border-radius:4px;color:var(--text-color);padding-top:4px;padding-inline-end:8px;padding-bottom:6px;padding-inline-start:8px}[data-element=notesPanelHeader] .input-container.modular-ui-input{box-sizing:border-box;border:1px solid var(--border);border-radius:4px;height:28px;align-items:center;color:var(--text-color);padding:6px 2px 6px 6px}[data-element=notesPanelHeader] .input-container.modular-ui-input[focus-within]{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input:focus-within{outline:none;border:1px solid var(--focus-border)}[data-element=notesPanelHeader] .input-container.modular-ui-input input{padding-inline-start:8px;padding-inline-end:26px;height:20px;border:none;background:transparent}[data-element=notesPanelHeader] .input-button{cursor:pointer;background:var(--primary-button);border-radius:4px;height:100%;width:40px;display:flex;align-items:center;justify-content:center;position:absolute;inset-block-end:0;inset-inline-end:0}[data-element=notesPanelHeader] .input-button .Icon{width:20px;height:20px}[data-element=notesPanelHeader] .input-button svg{color:var(--primary-button-text)}[data-element=notesPanelHeader] .input-button:hover{background:var(--primary-button-hover)}[data-element=notesPanelHeader] .divider{height:1px;width:100%;background:var(--divider);margin:16px 0}.modular-ui-header .input-container.modular-ui-input .Icon{width:16px;height:16px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1756:function(e,t,n){var o=n(35),r=n(1757);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1757:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.notes-panel-container{z-index:65;display:flex;flex-direction:row;position:relative;overflow-y:visible}.notes-panel-container.office-editor{height:100%}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{z-index:95}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{border-inline-start:1px solid var(--side-panel-border)}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container{inset-block-start:0;inset-inline-end:0;height:100%;width:100%}}.notes-panel-container .NotesPanel{width:100%;padding-inline-start:16px;padding-bottom:0;display:flex;flex-direction:column;position:relative;padding-top:16px}.notes-panel-container .NotesPanel .close-container{display:flex;align-items:center;justify-content:flex-end}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .close-container{height:28px;padding-inline-end:16px;margin-bottom:8px}}.notes-panel-container .NotesPanel .close-container .close-icon-container{display:flex;align-items:center;cursor:pointer}.notes-panel-container .NotesPanel .close-container .close-icon-container .close-icon{width:24px;height:24px}.notes-panel-container .NotesPanel .multi-select-place-holder{height:72px}.notes-panel-container .NotesPanel .preview-all-changes{height:57px;display:flex;flex-direction:column;justify-content:center;position:relative;margin-inline-end:16px}.notes-panel-container .NotesPanel .preview-all-changes .divider{height:1px;width:100%;background:var(--divider);position:absolute;inset-block-start:0}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.notes-panel-container .NotesPanel .reply-area-container .reply-button{width:28px}}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel{width:100%;min-width:100%;padding-top:0}.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .normal-notes-container{padding-bottom:16px}}.notes-panel-container .NotesPanel .no-annotations{display:flex;flex-direction:column;align-items:center}.notes-panel-container .NotesPanel .no-annotations .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-annotations .msg{line-height:15px;width:146px}}.notes-panel-container .NotesPanel .no-annotations .empty-icon,.notes-panel-container .NotesPanel .no-annotations .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-annotations .empty-icon *{fill:var(--gray-6);color:var(--gray-6)}.notes-panel-container .NotesPanel .normal-notes-container,.notes-panel-container .NotesPanel .virtualized-notes-container{margin-top:10px;flex:1;padding-inline-end:18px}.notes-panel-container .NotesPanel .virtualized-notes-container{overflow:hidden}.notes-panel-container .NotesPanel .normal-notes-container{overflow:auto;overflow:overlay}.notes-panel-container .NotesPanel .note-wrapper:first-child .ListSeparator{margin-top:0;word-break:break-word}.notes-panel-container .NotesPanel .no-results{display:flex;flex-direction:column;align-items:center;padding-inline-end:18px}.notes-panel-container .NotesPanel .no-results .msg{text-align:center}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .notes-panel-container .NotesPanel .no-results .msg{line-height:15px;width:92px}}.notes-panel-container .NotesPanel .no-results .empty-icon,.notes-panel-container .NotesPanel .no-results .empty-icon svg{width:65px;height:83px}.notes-panel-container .NotesPanel .no-results .empty-icon *{fill:var(--border);color:var(--border)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1762:function(e,t,n){var o=n(35),r=n(1763);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1763:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row{align-items:center}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing{background-color:var(--faded-component-background);padding:var(--padding-medium) 20px}.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing.focus-visible,.PortfolioPanel .bookmark-outline-single-container .bookmark-outline-label-row.editing:focus-visible{outline:var(--focus-visible-outline)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input-label{font-weight:600;padding-bottom:var(--padding-small)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input{-webkit-font-smoothing:antialiased}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input{border-color:var(--border)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning{border-color:var(--error-border-color)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning.ui__input--focused{box-shadow:none}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-warning .ui__input__icon svg{fill:var(--error-border-color)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input.ui__input--message-default.ui__input--focused{border-color:var(--outline-color);box-shadow:none}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input{padding:var(--padding-small);color:var(--text-color);height:auto;overflow:auto;line-height:normal}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input::-moz-placeholder{color:var(--placeholder-text)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input .ui__input__input::placeholder{color:var(--placeholder-text)}.PortfolioPanel .bookmark-outline-single-container .portfolio-input .ui__input__messageText{color:var(--error-text-color);margin-top:var(--padding-small);font-size:inherit}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1764:function(e,t,n){var o=n(35),r=n(1765);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1765:function(e,t,n){(e.exports=n(36)(!1)).push([e.i,"",""])},1766:function(e,t,n){var o=n(35),r=n(1767);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},1767:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.PortfolioPanel .portfolio-panel-control{display:flex}.PortfolioPanel .bookmark-outline-row{padding-top:6px}.PortfolioPanel .bookmark-outline-panel-header .header-title{font-size:16px;font-weight:400;margin:0}.PortfolioPanel .portfolio-panel-list{padding-top:8px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},1768:function(e,t,n){"use strict";n(9),n(10),n(14),n(30),n(12),n(31),n(26),n(28),n(40),n(24),n(42),n(43),n(8),n(84),n(11),n(13);var o=n(0),r=n.n(o),i=n(2),a=n.n(i),l=n(6),c=n(4);n(1723);function s(e){return(s="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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function f(e,t,n){return t=p(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}var b,g,v,y=function(e){function t(){return u(this,t),f(this,t,arguments)}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.isDisabled,n=e.className,o=e.dataElement,i=e.children;return t?null:r.a.createElement("div",{className:n,"data-element":o},i)}}])&&d(n.prototype,o),i&&d(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.PureComponent);b=y,g="propTypes",v={isDisabled:a.a.bool,className:a.a.string.isRequired,dataElement:a.a.string.isRequired,children:a.a.node},(g=m(g))in b?Object.defineProperty(b,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):b[g]=v;var w=Object(l.b)((function(e,t){return{isDisabled:c.a.isElementDisabled(e,t.dataElement)}}))(y);t.a=w},1769:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(181),n(13),n(94);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(2),c=n.n(l),s=n(6),u=n(1876),d=n(1877),f=n(630),p=n(1585),h=n(1),m=n(3),b=n(4),g=n(54),v=n(66),y=n(475),w=n(45),x=n(1626),O=n(1665),S=n(60);n(1731),n(1575);function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var C={outline:c.a.object.isRequired,setMultiSelected:c.a.func,moveOutlineInward:c.a.func.isRequired,moveOutlineBeforeTarget:c.a.func.isRequired,moveOutlineAfterTarget:c.a.func.isRequired,connectDragSource:c.a.func,connectDragPreview:c.a.func,connectDropTarget:c.a.func,isDragging:c.a.bool,isDraggedUpwards:c.a.bool,isDraggedDownwards:c.a.bool},T=Object(o.forwardRef)((function(e,t){var n=e.outline,i=e.setMultiSelected,l=e.isDragging,c=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.connectDragSource,p=e.connectDragPreview,g=e.connectDropTarget,v=e.moveOutlineInward,E=e.moveOutlineBeforeTarget,C=e.moveOutlineAfterTarget,T=Object(s.e)((function(e){return b.a.getOutlines(e)})),A=Object(o.useContext)(x.a),_=A.setActiveOutlinePath,j=A.activeOutlinePath,P=A.isOutlineActive,N=A.setAddingNewOutline,I=A.isAddingNewOutline,R=A.isMultiSelectMode,q=A.shouldAutoExpandOutlines,L=A.isOutlineEditable,M=A.updateOutlines,D=y.a.getPath(n),z=k(Object(o.useState)(q),2),B=z[0],F=z[1],H=k(Object(o.useState)(!1),2),U=H[0],W=H[1],G=k(Object(o.useState)(!1),2),V=G[0],K=G[1],$=k(Object(o.useState)(void 0),2),Y=$[0],Z=$[1],X=Object(s.d)(),Q=Object(o.useRef)(null);d(Q),p(Object(f.a)(),{captureDraggingState:!0}),g(Q);var J=l?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return Q.current}}})),Object(o.useEffect)((function(){null!==j&&j!==D&&j.startsWith(D)&&F(!0)}),[j,I,n]),Object(o.useLayoutEffect)((function(){F(q)}),[q]),Object(o.useLayoutEffect)((function(){W(!1),K(!1),I&&j===D&&F(!0)}),[T]);var ee,te,ne,oe,re=Object(o.useCallback)((function(){h.a.goToOutline(n),_(D===j?null:D),I&&(N(!1),M()),Object(w.k)()&&X(m.a.closeElement("leftPanel"))}),[X,_,j,I,n]),ie=P(n);return r.a.createElement("div",{ref:!I&&R&&L?Q:null,className:"outline-drag-container",style:{opacity:J}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:c?1:0}}),r.a.createElement(S.a,{className:a()({"bookmark-outline-single-container":!0,editing:U||V,default:!U&&!V,selected:ie}),tabIndex:0,onKeyDown:function(e){"Enter"===e.key&&re(),e.stopPropagation()},onClick:function(e){e.stopPropagation(),U||V||1!==e.detail||Z(setTimeout(re,300))},onDoubleClick:function(){U||V||clearTimeout(Y)}},r.a.createElement(O.a,{text:n.getName(),outlinePath:D,isOutlineRenaming:U,setOutlineRenaming:W,isOutlineChangingDest:V,setOutlineChangingDest:K,textColor:n.color?(ee=n.color,te=255*ee.r,ne=255*ee.g,oe=255*ee.b,"rgb(".concat(te,", ").concat(ne,", ").concat(oe,")")):null,setMultiSelected:i,isExpanded:B,setIsExpanded:F,moveOutlineInward:v,moveOutlineBeforeTarget:E,moveOutlineAfterTarget:C},n.getChildren())),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}),I&&ie&&r.a.createElement(S.a,{className:"bookmark-outline-single-container editing"},r.a.createElement("div",{className:"outline-treeview-toggle",style:{marginLeft:12*y.a.getNestedLevel(n)}}),r.a.createElement(O.a,{isAdding:!0,text:"",onCancel:function(){return N(!1)}})))}));T.propTypes=C;var A=Object(u.a)(p.c.OUTLINE,{hover:function(e,t,n){if(n){var o=t.getItem();if(o){var r=o.dragOutline,i=o.dragSourceNode,a=e.outline,l=n.getNode();if(i&&l){if(i.contains(l))return o.dropTargetNode=void 0,void(o.dropLocation=p.b.INITIAL);o.dropTargetNode=l;var c=r.index,s=a.index;if(r.parent!==a.parent||c!==s){var u=l.getBoundingClientRect(),d=(u.bottom-u.top)/2,f=t.getClientOffset().y-u.top;switch(!0){case f<=d+p.a&&f>=d-p.a:o.dropLocation=p.b.ON_TARGET_HORIZONTAL_MIDPOINT,t.isOver({shallow:!0})&&l.classList.add("isNesting"),setTimeout((function(){(null==o?void 0:o.dropTargetNode)!==l&&l.classList.remove("isNesting")}),100);break;case f>d+p.a:o.dropLocation=p.b.BELOW_TARGET,l.classList.remove("isNesting");break;case f<d-p.a:o.dropLocation=p.b.ABOVE_TARGET,l.classList.remove("isNesting");break;default:o.dropLocation=p.b.INITIAL,l.classList.remove("isNesting")}Object(v.a)(g.a.DRAG_OUTLINE,{targetOutline:a,draggedOutline:o.dragOutline,dropLocation:o.dropLocation})}}}}},drop:function(e,t,n){if(n){var o=t.getItem(),r=o.dragOutline,i=o.dropTargetNode,a=e.outline,l=e.moveOutlineInward,c=e.moveOutlineBeforeTarget,s=e.moveOutlineAfterTarget;if(i){switch(o.dropLocation){case p.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case p.b.ABOVE_TARGET:c(r,a);break;case p.b.BELOW_TARGET:s(r,a)}i.classList.remove("isNesting"),Object(v.a)(g.a.DROP_OUTLINE,{targetOutline:a,draggedOutline:r,dropLocation:o.dropLocation}),o.dropLocation=p.b.INITIAL}}}},(function(e,t){var n,o;return{connectDropTarget:e.dropTarget(),isDraggedUpwards:t.isOver({shallow:!0})&&(null===(n=t.getItem())||void 0===n?void 0:n.dropLocation)===p.b.ABOVE_TARGET,isDraggedDownwards:t.isOver({shallow:!0})&&(null===(o=t.getItem())||void 0===o?void 0:o.dropLocation)===p.b.BELOW_TARGET}}))(Object(d.a)(p.c.OUTLINE,{beginDrag:function(e,t,n){return{sourceId:t.sourceId,dragOutline:e.outline,dragSourceNode:n.getNode(),dropLocation:p.b.INITIAL}},canDrag:function(){return w.e?(console.warn("Drag and drop outlines for IE11 is not supported"),!1):!!h.a.isFullPDFEnabled()||(console.warn("Full API must be enabled to drag and drop outlines"),!1)}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(T));A.propTypes=C;var _=A;t.default=_},1777:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(38),n(617),n(34),n(125),n(27),n(21),n(50),n(76),n(20),n(12),n(44),n(22),n(99),n(129),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(62),n(11),n(29),n(13);var o=n(105),r=n.n(o),i=n(0),a=n.n(i),l=n(6),c=n(1654),s=n(206),u=n(15),d=n.n(u),f=n(45),p=(n(26),n(59),n(4)),h=n(3),m=(n(40),n(42),n(43),n(111),n(56),n(132),n(94),n(229)),b=n(1),g=n(2),v=n.n(g),y=n(122),w=n(41),x=(n(1739),n(5)),O=n(96);var S=function(e){var t=e.className,n=e.pageIndex,o=Object(l.d)(),r=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}));return a.a.createElement("div",{className:t,onClick:function(){-1===r.indexOf(n)&&o(h.a.setSelectedPageThumbnails([n]))}},a.a.createElement(O.a,{dataElement:x.a.PAGE_MANIPULATION_OVERLAY_BUTTON,toggleElement:x.a.PAGE_MANIPULATION,img:"icon-tool-more",title:"option.thumbnailPanel.moreOptions"}))},k=n(57),E=n(305),C=n(236);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _={index:v.a.number.isRequired},j=function(e){var t=e.index,n=Object(E.a)().t,o=T(Object(l.e)((function(e){return[p.a.isElementDisabled(e,"thumbnailControl")]})),1)[0],r=T(Object(l.e)((function(e){return[p.a.isElementDisabled(e,x.a.PAGE_MANIPULATION_OVERLAY_BUTTON)]})),1)[0],c=T(Object(l.e)((function(e){return[p.a.pageDeletionConfirmationModalEnabled(e),p.a.getSelectedThumbnailPageIndexes(e)]})),2),s=c[0],u=c[1],f=Object(l.d)(),h=Object(i.useRef)([]),m=Object(i.useRef)(null),g=T(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getThumbnailControlMenuItems(e),p.a.getFeatureFlags(e)]}),l.c),3),v=g[0],O=g[1],A=g[2],_=u.length>0?u.map((function(e){return e+1})):[t+1],j=_.includes(v),P=A.customizableUI;j||(_=[v]);var N=b.a.getDocument(),I=null==N?void 0:N.type,R=I===k.a.XOD,q=I===k.a.OFFICE||I===k.a.LEGACY_OFFICE,L={thumbRotateClockwise:a.a.createElement(w.a,{className:"rotate-button",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(_)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"}),thumbRotateCounterClockwise:a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:function(){return Object(y.p)(_)},title:"option.thumbnailPanel.rotatePageCounterClockwise",dataElement:"thumbRotateCounterClockwise"}),thumbDelete:a.a.createElement(w.a,{className:"delete-button",img:"icon-delete-line",onClick:function(){return Object(y.b)(_,f,s)},title:"option.thumbnailPanel.delete",dataElement:"thumbDelete",onClickAnnouncement:"".concat(n("action.delete")," ").concat(n("action.modal")," ").concat(n("action.isOpen"))})},M=!1,D=[],z=O.map((function(e){var t=e.dataElement,n=t,o=L[t];if(D.indexOf(t)>-1)return null;if(D.push(t),!o){M=!0;var r=e.img,i=e.onClick,l=e.title;o=a.a.createElement(w.a,{className:"".concat(t,"-button"),img:r,onClick:function(){return i(v)},title:l,dataElement:t})}return o?a.a.cloneElement(o,{key:n}):null}));return Object(i.useEffect)((function(){h.current=Object(C.a)(m.current),h.current.length>0&&h.current.forEach((function(e){e.tabIndex=-1}))}),[h.current,z]),o?null:R||q||null!=N&&N.isWebViewerServerDocument()?a.a.createElement("div",{className:"thumbnailControls-overlay","data-element":"thumbnailControl",style:{display:"flex"}},a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:function(){return Object(y.p)(_)},title:"option.thumbnailPanel.rotatePageCounterClockwise",dataElement:"thumbRotateCounterClockwise"}),a.a.createElement(w.a,{img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:function(){return Object(y.o)(_)},title:"option.thumbnailPanel.rotatePageClockwise",dataElement:"thumbRotateClockwise"})):a.a.createElement("div",{className:d()({"thumbnailControls-overlay":!0,"custom-buttons":M,"modular-ui":P}),"data-element":"thumbnailControl",ref:m},z,r?null:a.a.createElement(S,{className:"more-options",pageIndex:t}))};j.propTypes=_;var P=j,N=n(413),I=(n(1741),n(1404)),R=n(23);function q(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return M(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(M(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,M(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,M(d,"constructor",s),M(s,"constructor",c),c.displayName="GeneratorFunction",M(s,r,"GeneratorFunction"),M(d),M(d,r,"Generator"),M(d,o,(function(){return this})),M(d,"toString",(function(){return"[object Generator]"})),(L=function(){return{w:i,m:f}})()}function M(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(M=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){M(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function D(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||B(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var H=a.a.forwardRef((function(e,t){var n=e.index,o=e.isSelected,r=e.updateAnnotations,c=e.shiftKeyThumbnailPivotIndex,s=e.onFinishLoading,u=e.onLoad,f=e.onRemove,h=void 0===f?function(){}:f,g=e.onDragStart,v=e.onDragOver,y=e.isDraggable,w=e.shouldShowControls,x=e.thumbnailSize,O=e.currentPage,S=e.pageLabels,k=void 0===S?[]:S,T=e.selectedPageIndexes,A=e.isThumbnailMultiselectEnabled,_=e.isReaderModeOrReadOnly,j=e.dispatch,M=e.actions,B=e.isMobile,F=e.canLoad,H=e.onCancel,U=e.isThumbnailSelectingPages,W=e.thumbnailSelectionMode,G=e.activeDocumentViewerKey,V=e.panelSelector,K=e.parentKeyListener,$=e.isRightToLeft,Y=x?Number(x):150,Z=z(Object(i.useState)(-1),2),X=Z[0],Q=Z[1],J=Object(i.useRef)(null),ee=Object(i.useRef)([]),te=Object(i.useRef)([]),ne=z(Object(i.useState)({width:Y,height:Y}),2),oe=ne[0],re=ne[1],ie=Object(E.a)().t,ae=z(Object(i.useState)(!1),2),le=ae[0],ce=ae[1],se=Object(l.e)(p.a.isContentEditingEnabled),ue=null;Object(i.useEffect)((function(){var e=function(e){J.current&&!J.current.contains(e.target)&&ye()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var de=function(){ue=setTimeout((function(){var e,t,o=Object(R.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)),i=n+1,a=b.a.getRotation(i),l=b.a.getDocument(G);if(l&&l.getPageInfo(i)){var c=l.loadCanvas({pageNumber:i,width:Y,height:Y,drawComplete:(e=L().m((function e(t){var o,i,l,c;return L().w((function(e){for(;;)switch(e.n){case 0:(o=Object(R.a)().querySelector(".ThumbnailsPanel.".concat(V," #pageThumb").concat(n)))&&((i=o.querySelector(".page-image"))&&o.removeChild(i),t.className="page-image ".concat($?"right-to-left":""),l=Math.min(Y/t.width,Y/t.height),t.style.width="".concat(t.width*l,"px"),t.style.height="".concat(t.height*l,"px"),re({width:Number(t.width),height:Number(t.height)}),Math.abs(a)&&(c="rotate(".concat(90*a,"deg) translate(-50%,-50%)"),t.style.transform=c,t.style["transform-origin"]="top left",t.style["ms-transform"]=c,t.style["ms-transform-origin"]="top left",t.style["-moz-transform"]=c,t.style["-moz-transform-origin"]="top left",t.style["-webkit-transform-origin"]="top left",t.style["-webkit-transform"]=c,t.style["-o-transform"]=c,t.style["-o-transform-origin"]="top left"),o.appendChild(t)),r&&r(n),s(n),ce(!0);case 1:return e.a(2)}}),e)})),t=function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){D(i,o,r,a,l,"next",e)}function l(e){D(i,o,r,a,l,"throw",e)}a(void 0)}))},function(e){return t.apply(this,arguments)}),allowUseOfOptimizedThumbnail:!0});u(n,o,c)}}),50)};Object(i.useEffect)((function(){var e=function(e){var t=e.contentChanged,o=e.moved,r=e.added,i=e.removed,a=n+1,l=r.includes(a),c=t.some((function(e){return a===e})),s=Object.keys(o).some((function(e){return a===parseInt(e)})),u=i.includes(a),d=b.a.getTotalPages();i.length>0&&n+1>d||(l||c||s||u)&&de()},t=function(){ce(!1),de()};return b.a.addEventListener("pagesUpdated",e),b.a.addEventListener("rotationUpdated",t),F&&de(),function(){b.a.removeEventListener("pagesUpdated",e),b.a.removeEventListener("rotationUpdated",t),clearTimeout(ue),h(n)}}),[]),Object(m.a)((function(){F?(de(),r(n)):H(n)}),[F,G]);var fe=O===n+1,pe=k[n],he="default",me=b.a.getRotation(n+1);((!me||2===me)&&oe.width>oe.height||(1===me||3===me)&&oe.width<oe.height)&&(he="rotated"),Object(i.useImperativeHandle)(t,(function(){return{focusInput:function(){U&&le?(be(te.current[0]),Q(0)):ee.current&&setTimeout((function(){be(ee.current[0]),Q(0)}),0)}}}));var be=function(e){e&&(e.ariaCurrent="page",e.focus())},ge=function(e){e&&(e.ariaCurrent=void 0)},ve=function(e){e.preventDefault(),ye()},ye=function(){ee.current.forEach((function(e){ge(e)}))},we=Object(i.useCallback)((function(e){e.stopPropagation(),K(e);var t,n={Tab:function(){return ve(e)},Escape:function(){return ve(e)}};n[e.key]&&(null===(t=n[e.key])||void 0===t||t.call(n));var o={ArrowUp:function(){return xe(e,-1)},ArrowDown:function(){return xe(e,1)},ArrowLeft:function(){return xe(e,-1)},ArrowRight:function(){return xe(e,1)}};o[e.key]&&!Se&&o[e.key]()}),[ee.current,X]),xe=function(e,t){e.preventDefault(),0!==ee.current.length&&Q((function(e){var n=e+t;return n<0?n=ee.current.length-1:n>=ee.current.length&&(n=0),Oe(ee.current[n]),n}))},Oe=function(e){ee.current.forEach((function(t){t===e?be(t):ge(t)}))};Object(i.useEffect)((function(){J.current&&(ee.current=Object(C.a)(J.current))}),[w,fe,le]),Object(i.useEffect)((function(){J.current&&(te.current=Object(C.a)(J.current))}),[U,le]);var Se=U&≤return a.a.createElement("button",{className:d()({Thumbnail:!0,active:fe,selected:o&&U}),onDragOver:function(e){return v(e,n)},id:"Thumbnail-container-".concat(n),ref:J,onKeyDown:function(e){return we(e)},onClick:function(e){var t=e.target.type&&"checkbox"===e.target.type;if(A&&!_){var o=e.ctrlKey||e.metaKey,r=e.shiftKey,i=q(T);if(r){j(M.setThumbnailSelectingPages(!0));var a=c;null===a&&(a=O-1,j(M.setShiftKeyThumbnailsPivotIndex(a)));var l=Math.min(a,n),s=Math.max(a,n);i=q(new Set(q(Array.from({length:s-l+1},(function(e,t){return t+l})))))}else o||U?(j(M.setThumbnailSelectingPages(!0)),(o||t||W===N.a.THUMBNAIL)&&(0!==T.length||U?T.includes(n)?i=T.filter((function(e){return n!==e})):i.push(n):i.push(O-1)),j(M.setShiftKeyThumbnailsPivotIndex(n))):i=[n];var u=i[i.length-1];!U&&!r&&j(M.setShiftKeyThumbnailsPivotIndex(u)),j(M.setSelectedPageThumbnails(i))}else B()&&j(M.closeElement("leftPanel"));setTimeout((function(){t&&W!==N.a.THUMBNAIL||b.a.setCurrentPage(n+1)}),0)},style:{width:Y,cursor:"pointer",background:"none",border:"none"},tabIndex:-1},a.a.createElement("div",{className:"container",style:{height:Y,width:Y},onDragStart:function(e){return g(e,n)},draggable:y,tabIndex:-1},a.a.createElement("div",{id:"pageThumb".concat(n),className:"thumbnail"}),U&&le&&a.a.createElement(I.a,{className:"checkbox ".concat(he),checked:T.includes(n),"aria-label":"".concat(ie("action.page")," ").concat(pe," ").concat(ie("formField.types.checkbox")),tabIndex:-1})),a.a.createElement("div",{className:"page-label"},pe),!U&&fe&&w&&!se&&a.a.createElement(P,{index:n}))}));H.displayName="Thumbnail",H.propTypes={index:v.a.number,isSelected:v.a.bool,updateAnnotations:v.a.func,shiftKeyThumbnailPivotIndex:v.a.number,onFinishLoading:v.a.func,onLoad:v.a.func,onRemove:v.a.func,onDragStart:v.a.func,onDragOver:v.a.func,isDraggable:v.a.bool,shouldShowControls:v.a.bool,thumbnailSize:v.a.number,currentPage:v.a.number,pageLabels:v.a.array,selectedPageIndexes:v.a.array,isThumbnailMultiselectEnabled:v.a.bool,isReaderModeOrReadOnly:v.a.bool,dispatch:v.a.func,actions:v.a.object,isMobile:v.a.func,canLoad:v.a.bool,onCancel:v.a.func,isThumbnailSelectingPages:v.a.bool,thumbnailSelectionMode:v.a.string,activeDocumentViewerKey:v.a.number,panelSelector:v.a.string,parentKeyListener:v.a.func,isRightToLeft:v.a.bool};var U=H;function W(){return(W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function G(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var K=a.a.forwardRef((function(e,t){var n=G(Object(l.e)((function(e){return[p.a.getCurrentPage(e),p.a.getPageLabels(e),p.a.getSelectedThumbnailPageIndexes(e),p.a.isThumbnailMultiselectEnabled(e),p.a.isReaderMode(e),p.a.isDocumentReadOnly(e),p.a.getShiftKeyThumbnailPivotIndex(e),p.a.isThumbnailSelectingPages(e),p.a.getThumbnailSelectionMode(e),p.a.getActiveDocumentViewerKey(e)]}),l.c),11),o=n[0],r=n[1],i=n[2],c=n[3],s=n[4],u=n[5],d=n[6],m=n[7],b=n[8],g=n[9],v=n[10],y=Object(l.d)();return a.a.createElement(U,W({},e,{ref:t,currentPage:o,pageLabels:r,selectedPageIndexes:i,isThumbnailMultiselectEnabled:c,isReaderModeOrReadOnly:s||u,dispatch:y,actions:h.a,isMobile:f.k,shiftKeyThumbnailPivotIndex:d,isThumbnailSelectingPages:m,thumbnailSelectionMode:b,selectionModes:v,activeDocumentViewerKey:g}))}));K.displayName="ThumbnailRedux";var $=K,Y=(n(142),n(115),n(411)),Z=n(32);n(1598);function X(e){var t=e.moveToTop,n=e.moveToBottom;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"moveToTop",img:"icon-page-move-up",onClick:t,title:"action.moveToTop"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"moveToBottom",img:"icon-page-move-down",onClick:n,title:"action.moveToBottom"}))}X.propTypes={moveToTop:v.a.func,moveToBottom:v.a.func};var Q=X;function J(e){var t=e.onInsert,n=e.onReplace,o=e.onExtractPages,r=e.onDeletePages;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlInsert",img:"icon-page-insertion-insert",onClick:t,title:"action.insert"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlReplace",img:"icon-page-replacement",onClick:n,title:"action.replace"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlExtract",img:"icon-page-manipulation-extract",onClick:o,title:"action.extract"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlDelete",img:"icon-delete-line",onClick:r,title:"action.delete"}))}J.propTypes={onInsert:v.a.func,onReplace:v.a.func,onExtractPages:v.a.func,onDeletePages:v.a.func};var ee=J;function te(e){var t=e.onRotateClockwise,n=e.onRotateCounterClockwise;return a.a.createElement(a.a.Fragment,null,a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlRotateCounterClockwise",img:"icon-header-page-manipulation-page-rotation-counterclockwise-line",onClick:n,title:"action.rotateCounterClockwise"}),a.a.createElement(w.a,{className:"button-hover",dataElement:"thumbnailsControlRotateClockwise",img:"icon-header-page-manipulation-page-rotation-clockwise-line",onClick:t,title:"action.rotateClockwise"}))}te.propTypes={onRotateClockwise:v.a.func,onRotateCounterClockwise:v.a.func};var ne=te,oe=n(177);function re(){return(re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function ie(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||le(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||le(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){if(e){if("string"==typeof e)return ce(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ce(e,t):void 0}}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function se(e){var t,n=e.parentElement,o=Object(l.f)(),r=Object(l.d)(),c=Object(f.k)(),s=Object(l.e)(p.a.getSelectedThumbnailPageIndexes),u=Object(l.e)((function(e){return n&&"leftPanel"!==n?p.a.getPanelWidth(e,n):p.a.getLeftPanelWidth(e)})),d=Object(l.e)(p.a.pageDeletionConfirmationModalEnabled),m=Object(l.e)(p.a.isInDesktopOnlyMode),g=Object(l.e)(p.a.getMultiPageManipulationControlsItems,l.c),v=ae(Object(i.useState)(!1),2),S=v[0],E=v[1],C=Object(i.useMemo)((function(){return s.map((function(e){return e+1}))}),[s]),T=Object(i.useMemo)((function(){return{onReplace:function(){return!Object(y.k)(C,r)&&Object(y.m)(r)},onExtractPages:function(){return!Object(y.k)(C,r)&&Object(y.e)(C,r)},onDeletePages:function(){return!Object(y.k)(C,r)&&Object(y.b)(C,r,d)},onRotateCounterClockwise:function(){return!Object(y.k)(C,r)&&Object(y.p)(C)},onRotateClockwise:function(){return!Object(y.k)(C,r)&&Object(y.o)(C)},onInsert:function(){return!Object(y.k)(C,r)&&(r(h.a.closeElement(x.a.PAGE_MANIPULATION_OVERLAY)),void r(h.a.openElement("insertPageModal")))},moveToTop:function(){return!Object(y.k)(C,r)&&Object(y.j)(C)},moveToBottom:function(){return!Object(y.k)(C,r)&&Object(y.i)(C)},pageNumbers:C}}),[C,d]),A=T.onRotateClockwise,_=T.onRotateCounterClockwise,j=b.a.getDocument(),P=null==j?void 0:j.type,N=P===k.a.XOD,I=P===k.a.OFFICE||P===k.a.LEGACY_OFFICE;if(!m&&c)try{t=Object(R.a)().querySelector(".App").getBoundingClientRect().width-88}catch(e){t=(u||Z.d)-88}else t=(u||Z.d)-88;var q=t<190,L=t>290;Object(i.useEffect)((function(){var e,t=[];e=q?1:L?3:2;var n=0;g.forEach((function(r){var i=!1;(n<e||0===t.length&&"divider"===(null==r?void 0:r.type))&&(i=!0),r&&"divider"!==r.type&&n++,!i&&t.push.apply(t,ie(function(e){return"leftPanelPageTabsRotate"===e.dataElement?Object(oe.e)(o,!0):"leftPanelPageTabsMove"===e.dataElement?Object(oe.a)(o,!0):"leftPanelPageTabsMore"===e.dataElement?Object(oe.c)(o,!0):"customPageOperation"===e.type?Object(oe.b)(o,e):"divider"===e.type?["divider"]:void 0}(r)))}));var i={dataElement:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,className:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,items:t};L&&r(h.a.closeElement(i.dataElement)),i.items.length?(r(h.a.updateFlyout(i.dataElement,i)),E(!0)):(r(h.a.removeFlyout(i.dataElement)),E(!1))}),[o,L,q,g]);var M=Object(i.useMemo)((function(){var e=!1,t=0;return g.map((function(n,o){var r;return r=q?0:L?2:1,"divider"!==(null==n?void 0:n.type)||e?t>r?null:(n&&"divider"!==n.type&&t++,"leftPanelPageTabsRotate"===n.dataElement?a.a.createElement(ne,re({},T,{key:"leftPanelPageTabsRotate"})):"leftPanelPageTabsMove"===n.dataElement?a.a.createElement(Q,re({},T,{key:"leftPanelPageTabsMove"})):"leftPanelPageTabsMore"===n.dataElement?a.a.createElement(ee,re({},T,{key:"leftPanelPageTabsMore"})):"customPageOperation"===n.type?n.operations?n.operations.map((function(e){return a.a.createElement(w.a,{key:e.dataElement,className:"button-hover",dataElement:e.dataElement,img:e.img,onClick:function(){return e.onClick(C)},title:e.title})})):(t--,null):null):(t>r&&(e=!0),a.a.createElement("div",{key:"divider".concat(o),className:"divider"}))}))}),[g,T,q,L]);return N||I||null!=j&&j.isWebViewerServerDocument()?a.a.createElement("div",{className:"PageControlContainer root small"},a.a.createElement(ne,{onRotateClockwise:A,onRotateCounterClockwise:_})):a.a.createElement("div",{className:"PageControlContainer root"},M,S&&a.a.createElement("div",{className:"dropdown-menu"},a.a.createElement(O.a,{dataElement:"".concat(x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,"Button"),toggleElement:x.a.PAGE_MANIPULATION_FLYOUT_MULTI_SELECT,title:"action.more",img:"icon-tool-more"}),a.a.createElement("div",{className:"indicator"})))}se.propTypes={parentElement:v.a.string};var ue=se;n(1744);function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fe(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function pe(e,t){for(var n="",o=e.sort((function(e,t){return e-t})),r=null,i=0;o.length>i;i++)o[i+1]===o[i]+1?r=null!==r?r:o[i]:null!==r?(n="".concat(n).concat(t[r],"-").concat(t[o[i]],", "),r=null):n="".concat(n).concat(t[o[i]],", ");return n.slice(0,-2)}var he=function(e){var t=e.shouldShowControls,n=e.parentElement,o=de(Object(E.a)(),1)[0],r=Object(l.d)(),c=de(Object(l.e)((function(e){return[p.a.getSelectedThumbnailPageIndexes(e),p.a.isElementDisabled(e,"documentControl"),p.a.getPageLabels(e),p.a.isThumbnailSelectingPages(e),p.a.getFeatureFlags(e)]})),5),s=c[0],u=c[1],d=c[2],f=c[3],m=c[4],g=pe(s,d),v=de(Object(i.useState)(g),2),y=v[0],x=v[1],O=de(Object(i.useState)(g),2),S=O[0],k=O[1],C=m.customizableUI;Object(i.useEffect)((function(){x(pe(s,d))}),[x,s,t,d]);var T=function(){r(h.a.setThumbnailSelectingPages(!0))};return u?null:a.a.createElement("div",{className:"documentControlsContainer","data-element":"documentControl"},t?a.a.createElement("div",{className:"documentControls"},a.a.createElement("div",{className:"divider"}),f&&a.a.createElement(ue,{parentElement:n}),C&&a.a.createElement("label",{className:"documentControlsLabel",htmlFor:"pageNumbersInput"},a.a.createElement("span",null,o("option.thumbnailPanel.multiSelectPages")," -"),a.a.createElement("span",{className:"multiSelectExampleLabel"},o("option.thumbnailPanel.multiSelectPagesExample"))),a.a.createElement("div",{className:"documentControlsInput"},a.a.createElement("input",{name:"pageNumbersInput",onBlur:function(e){var t=e.target.value.replace(/ /g,""),n=t?Object(Y.a)(t,d):[],o=n.map((function(e){return e-1}));if(n.length||!t){r(h.a.setSelectedPageThumbnails(o));var i=pe(s,d);x(i),k(i)}else x(S);s.length>0&&!f&&setTimeout((function(){y!==S&&T()}),100)},onChange:function(e){x(e.target.value)},value:y,placeholder:C?"":"1, 3, 5-10","aria-label":o("option.thumbnailPanel.enterPageNumbers"),className:"pagesInput",type:"text"}),a.a.createElement("div",{className:"documentControlsButton"},f?a.a.createElement(w.a,{img:"icon-close",title:"option.documentControls.closeTooltip",onClick:function(){r(h.a.setSelectedPageThumbnails([b.a.getCurrentPage()-1])),r(h.a.setThumbnailSelectingPages(!1))},dataElement:"thumbCloseMultiSelect"}):a.a.createElement(w.a,{img:"icon-tool-select-pages",title:"option.documentControls.selectTooltip",onClick:T,dataElement:"thumbMultiSelect"})))):null)};he.propTypes={isDisabled:v.a.bool,pageLabels:v.a.arrayOf(v.a.string),toggleDocumentControl:v.a.func,shouldShowControls:v.a.bool};var me=he,be=n(318),ge=n(292),ve=n(66),ye=n(54),we=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(o){return o(h.a.openElement(x.a.LOADING_MODAL)),new Promise((function(r,i){b.a.mergeDocument(e,t).then((function(e){o(h.a.closeElement(x.a.LOADING_MODAL)),b.a.setCurrentPage(t),n&&Object(ve.a)(ye.a.DOCUMENT_MERGED,e),r(e)})).catch((function(e){i(e),o(h.a.closeElement(x.a.LOADING_MODAL))}))}))}},xe=(n(1746),n(33));function Oe(e){return(Oe="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 Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ke(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Ee(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Oe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ae=function(e){var t=e.panelSelector,n=e.parentDataElement,o=Object(l.e)((function(e){return p.a.isElementOpen(e,"leftPanel")})),u=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsPanel")})),m=Object(l.e)(p.a.getTotalPages),g=Object(l.e)(p.a.getCurrentPage),v=Object(l.e)((function(e){return p.a.getSelectedThumbnailPageIndexes(e)}),l.c),y=Object(l.e)(p.a.getIsThumbnailMergingEnabled),O=Object(l.e)(p.a.getIsThumbnailReorderingEnabled),S=Object(l.e)(p.a.getIsMultipleViewerMerging),k=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailControl")})),C=Object(l.e)((function(e){return p.a.isElementDisabled(e,"thumbnailsSizeSlider")})),T=Object(l.e)(p.a.isReaderMode),A=Object(l.e)(p.a.isDocumentReadOnly),_=Object(l.e)((function(e){return p.a.getTotalPages(e,2)})),j=Object(l.e)(p.a.getActiveDocumentViewerKey),P=Object(l.e)(p.a.openingPageManipulationOverlayByRightClickEnabled),N=Object(l.e)(p.a.getFeatureFlags,l.c),I=Object(l.e)(p.a.isContentEditingEnabled),q=Ce(Object(E.a)(),1)[0],L="rtl"===xe.a.dir(),M=Object(i.useRef)(),D=Object(i.useRef)([]),z=Object(i.useRef)([]),B=Object(i.useRef)(null),F=Ce(Object(i.useState)(!1),2),H=F[0],U=F[1],W=Ce(Object(i.useState)(!0),2),G=W[0],V=W[1],K=Ce(Object(i.useState)(0),2),Y=K[0],Z=K[1],X=Ce(Object(i.useState)(0),2),Q=X[0],J=X[1],ee=Ce(Object(i.useState)(null),2),te=ee[0],ne=ee[1],oe=Ce(Object(i.useState)(!1),2),re=oe[0],ie=oe[1],ae=Ce(Object(i.useState)(1),2),le=ae[0],ce=ae[1],se=Ce(Object(i.useState)(!1),2),ue=se[0],de=se[1],fe=Ce(Object(i.useState)(0),2),pe=fe[0],he=fe[1],Oe=Object(i.useRef)([]),Se=Object(i.useRef)([]),Ee=Object(i.useRef)(null),Te=Ce(Object(i.useState)(150),2),Ae=Te[0],_e=Te[1],je=Ce(Object(i.useState)(0),2),Pe=je[0],Ne=je[1],Ie=Ce(Object(i.useState)(0),2),Re=Ie[0],qe=Ie[1],Le=2===j?_:m,Me=null==N?void 0:N.customizableUI,De=Object(l.d)(),ze={};Object(i.useEffect)((function(){var e=function(e){Ee.current&&!Ee.current.contains(e.target)&&Ue(Ee.current)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[]);var Be=Object(i.useCallback)((function(e,t,n){var o;e.stopPropagation();var r={ArrowLeft:function(){return Ge(e,t,-1)},ArrowRight:function(){return Ge(e,t,1)},ArrowUp:function(){return Ge(e,t,-n)},ArrowDown:function(){return Ge(e,t,n)}},i={Enter:function(){return Ve(e,t)},Tab:function(){return We(t)}};r[e.key]&&(o=r[e.key]()),i[e.key]&&i[e.key](),void 0!==o&&o!==t&&(he(o),Fe(Oe.current[o]),He(Oe.current[t]))}),[Se,Oe]),Fe=function(e){e.tabIndex=0,e.ariaCurrent="page",e.style.outline="var(--focus-visible-outline)",e.focus(),Ee.current=e},He=function(e){e.tabIndex=-1,e.ariaCurrent=void 0,Ue(e)},Ue=function(e){e.style.outline="none"},We=function(e){Ue(Oe.current[e])},Ge=function(e,t,n){var o=t+n;return o<0||o>=Le?t:o},Ve=function(e,t){e.preventDefault(),Fe(Oe.current[t]),b.a.setCurrentPage(t+1),Se.current[t].focusInput()},Ke=Object(i.useCallback)((function(e,t){e.stopPropagation();var n,o={Tab:function(){return Ye(e,t)},Escape:function(){return $e(e,t)}};o[e.key]&&(null===(n=o[e.key])||void 0===n||n.call(o))}),[Oe]),$e=function(e,t){e.preventDefault(),Fe(Oe.current[t])},Ye=function(e,t){var n=t+(e.shiftKey?-1:1);(n<0||n>=Le)&&(n=t),he(n),Fe(Oe.current[n]),n!==t&&He(Oe.current[t])},Ze=function(e){var t=z.current&&z.current[e]&&z.current[e].element;if(t){var n=e+1,o=b.a.getPageWidth(n),i=function(e,t){var n,o,r;return e>t?(r=e/Ae,n=Ae,o=Math.round(t/r)):(r=t/Ae,n=Math.round(e/r),o=Ae),{width:n,height:o}}(o,b.a.getPageHeight(n)),a=i.width,l=i.height,c=t.querySelector(".annotation-image")||document.createElement("canvas");c.className="annotation-image ".concat(L?"right-to-left":""),c.role="img",c.ariaLabel="".concat(q("action.page")," ").concat(n),c.style.maxWidth="".concat(Ae,"px"),c.style.maxHeight="".concat(Ae,"px");var s=c.getContext("2d"),u=1,d=b.a.getCompleteRotation(n);d<0&&(d+=4);var f=window.Core.getCanvasMultiplier();d%2==0?(c.width=a,c.height=l,u=c.width/o,u/=f):(c.width=l,c.height=a,u=c.height/o,u/=f),t.appendChild(c),b.a.setAnnotationCanvasTransform(s,u,d);var p={pageNumber:n,overrideCanvas:c},h=t.querySelector(".page-image");if(h)p=ke(ke({},p),{},{overridePageRotation:d,overridePageCanvas:h}),ze[n]||(ze[n]=r()(b.a.drawAnnotations,112)),(0,ze[n])(p)}};if(Object(i.useEffect)((function(){var e=function(){V(!1)},t=function(e){e||V(!0)},n=function(){var e;"officeEditor"===(null===(e=b.a.getDocument())||void 0===e?void 0:e.getType())?U(!0):U(!1),ze={},De(h.a.setSelectedPageThumbnails([]))},o=function(){B.current&&(b.a.setCurrentPage(B.current),B.current=null)};return b.a.addEventListener("beginRendering",e),b.a.addEventListener("finishedRendering",t),b.a.addEventListener("documentLoaded",n),b.a.addEventListener("pageComplete",o),b.a.getDocument()&&n(),function(){b.a.removeEventListener("beginRendering",e),b.a.removeEventListener("finishedRendering",t),b.a.removeEventListener("documentLoaded",n),b.a.removeEventListener("pageComplete",o)}}),[]),Object(i.useEffect)((function(){var e=function(e){if(e){var t=Array.from(v);e.removed&&(t=t.filter((function(t){return-1===e.removed.indexOf(t+1)}))),e.moved&&(t=t.map((function(t){return e.moved[t+1]?e.moved[t+1]-1:t})));var n=e.added&&e.added[0]-1<=t[0];1===t.length&&n&&(t=e.added.map((function(e){return e-1}))),De(h.a.setSelectedPageThumbnails(t))}};return b.a.addEventListener("pagesUpdated",e),function(){return b.a.removeEventListener("pagesUpdated",e)}}),[v]),Object(i.useEffect)((function(){var e;null===(e=M.current)||void 0===e||e.scrollToRow(Math.floor((g-1)/le));var t=function(e){var t=[];e.forEach((function(e){var n=e.PageNumber-1;!e.Listable||t.indexOf(n)>-1||(t.push(n),Ze(n))}))},n=function(e){var t,n=e-1;null===(t=M.current)||void 0===t||t.scrollToRow(Math.floor(n/le))};return b.a.addEventListener("pageNumberUpdated",n),b.a.addEventListener("annotationChanged",t),b.a.addEventListener("annotationHidden",t),function(){b.a.removeEventListener("pageNumberUpdated",n),b.a.removeEventListener("annotationChanged",t),b.a.removeEventListener("annotationHidden",t)}}),[Ae,le]),Object(i.useEffect)((function(){(T||A)&&(De(h.a.setSelectedPageThumbnails([])),De(h.a.setThumbnailSelectingPages(!1)))}),[T,A]),u||H||!o&&!t&&!Me)return null;var Xe=function(){de(!1),ne(null)},Qe=function(e,t,n){var o,r=(new Date).getTime();return e<Le-1&&e>0&&r-Pe>=n?(null===(o=M.current)||void 0===o||o.scrollToRow(Math.floor((e+t)/le)),Ne(r),e+t):e},Je=function(e,t){if(e.preventDefault(),e.stopPropagation(),O||y){var n=e.target.getBoundingClientRect();ie(le>1?!(e.pageX>n.x+n.width/2):!(e.pageY>n.y+n.height/2)),ne(t);var o=Object(R.a)().querySelector("#virtualized-thumbnails-container").getBoundingClientRect(),r=o.y,i=o.bottom;e.pageY<r+100?qe(Qe(t,-1,400)):e.pageY>i-100&&qe(Qe(t,1,400))}},et=function(){qe(Qe(Re,1,200))},tt=function(){qe(Qe(Re,-1,200))},nt=function(){return window.isApryseWebViewerWebComponent?Object(R.a)().host.id:window.frameElement.id},ot=function(e,t){qe(t),de(!0);var n,o=v.some((function(e){return e===t})),r=o?v.map((function(e){return e+1})):[t+1];Object(ve.a)(ye.a.THUMBNAIL_DRAGGED),e.dataTransfer.setData("text",""),r.length>1&&e.dataTransfer.setDragImage(new Image,0,0),y&&S&&(e.dataTransfer.dropEffect="move",e.dataTransfer.effectAllowed="all",e.dataTransfer.setData("dataTransferWebViewerFrame",nt()),n=r,window.extractedDataPromise=Object(ge.a)(n),window.pagesExtracted=n),o||De(h.a.setSelectedPageThumbnails([t])),b.a.setCurrentPage(t+1)},rt=function(e){e.preventDefault();var t,n=e.dataTransfer.files,o=re?te+1:te+2;f.f||(t=e.dataTransfer.getData("dataTransferWebViewerFrame"));var r,i,a=t&&nt()!==t||n.length,l=g-1;if(y&&a)t&&nt()!==t?De((r=t,i=o,function(e){return new Promise((function(t,n){var o=window.parent.document.querySelector("#".concat(r));o||(console.warn("Could not find other instance of WebViewer"),n());var a=o.contentWindow;window.isApryseWebViewerWebComponent&&(a=window);var l=a.extractedDataPromise;l||(console.warn("Could not retrieve data from other instance of WebViewer"),n()),e(h.a.openElement(x.a.LOADING_MODAL)),l.then((function(n){e(we(n,i,!1)).then((function(n){var o=n.filename,r=n.pages;Object(ve.a)(ye.a.DOCUMENT_MERGED,{filename:o,pages:a.pagesExtracted}),e(h.a.closeElement(x.a.LOADING_MODAL)),t({filename:o,pages:r})}))})).catch((function(t){e(h.a.closeElement(x.a.LOADING_MODAL)),n(t)}))}))})):n.length&&Array.from(n).forEach((function(e){De(we(e,o))}));else if(O&&!a&&null!==te){var c=re?te+1:te+2,s=v.some((function(e){return e===l}))?v.map((function(e){return e+1})):[g];B.current=c-s.filter((function(e){return e<c})).length,b.a.movePages(s,c);for(var u=[],d=0;d<s.length;d++)u.push(B.current+d);Object(ve.a)(ye.a.THUMBNAIL_DROPPED,{pageNumbersBeforeMove:s,pagesNumbersAfterMove:u,numberOfPagesMoved:u.length})}ne(null),de(!1)},it=function(e,t,n){lt(e)||ct(e)||(z.current[e]={element:t,loaded:!1},D.current.push({pageIndex:e,id:n}))},at=function(e){var t=ut(e);-1!==t&&D.current.splice(t,1)},lt=function(e){var t;return null===(t=z.current[e])||void 0===t?void 0:t.loaded},ct=function(e){return-1!==ut(e)},st=function(e){var t=ut(e);-1!==t&&(b.a.cancelLoadThumbnail(D.current[t].id),D.current.splice(t,1))},ut=function(e){return D.current.findIndex((function(t){return t.pageIndex===e}))},dt=function(e){var t,n;st(e);var o=null===(t=z.current[e])||void 0===t||null===(n=t.element)||void 0===n?void 0:n.querySelectorAll("canvas");null!=o&&o.length&&o.forEach((function(e){e.height=0,e.width=0})),ze[e]&&ze[e].cancel(),z.current[e]=null},ft=function(e){var n=e.index,o=e.key,r=e.style,i=d()({columnsOfThumbnails:le>1,row:!0}),l=!(T||A);return a.a.createElement("div",{role:"row","aria-label":"row",className:i,key:o,style:r},new Array(le).fill().map((function(e,o){var r=n*le+o,i=l&&(y||O),c=i&&te===r;return r<Le?a.a.createElement(a.a.Fragment,{key:r},(le>1||0===r)&&c&&re&&a.a.createElement("div",{key:"placeholder1-".concat(r),className:"thumbnailPlaceholder"}),a.a.createElement("td",{ref:function(e){return Oe.current[r]=e},key:r,role:"gridcell",tabIndex:pe===r?0:-1,"aria-current":pe===r?"page":void 0,onDragEnd:Xe,className:"cellThumbContainer",onKeyDown:function(e){return Be(e,r,le)},onContextMenu:function(e){return P&&(n=r,(t=e).preventDefault(),b.a.setCurrentPage(n+1),v.includes(n)||De(h.a.setSelectedPageThumbnails([n])),void(T||A||I||(De(h.a.setFlyoutPosition({x:t.pageX,y:t.pageY})),De(h.a.openElements([x.a.PAGE_MANIPULATION])))));var t,n},onFocus:function(e){return function(e,t){Oe.current&&Oe.current.includes(e.target)&&Fe(Oe.current[t])}(e,r)}},a.a.createElement($,{ref:function(e){return Se.current[r]=e},isDraggable:i,isSelected:v.includes(r),index:r,canLoad:G,onLoad:it,onCancel:st,onRemove:dt,onDragStart:ot,onDragOver:Je,onFinishLoading:at,updateAnnotations:Ze,shouldShowControls:l,thumbnailSize:Ae,panelSelector:t,parentKeyListener:function(e){return Ke(e,r)},isRightToLeft:L})),c&&!re&&a.a.createElement("div",{key:"placeholder2-".concat(r),className:"thumbnailPlaceholder"})):null})))},pt=function(){ce(Math.min(16,Math.max(1,Math.floor(Q/Ae))))},ht=k?Number(Ae)+50:Number(Ae)+80,mt=!(T||A||I),bt={height:"".concat(25,"px")},gt=function(e,t){var n="1000"*Number(t);n<100&&(n=100),_e(n),pt()};return a.a.createElement(a.a.Fragment,null,!C&&a.a.createElement("div",{"data-element":"thumbnailsSizeSlider",className:"thumbnail-slider-container"},a.a.createElement(w.a,{img:"icon-zoom-thumb-out",title:"action.zoomOut",hideTooltipShortcut:!0,onClick:function(){Ae-"50">"50"&&(_e(Ae-"50"),pt())},dataElement:"zoomThumbOutButton"}),Me&&a.a.createElement(be.a,{dataElement:"thumbnailsSizeSlider",property:"zoom",displayProperty:"zoom",min:0,max:1,step:.01,value:Ae/1e3,getDisplayValue:function(){return Ae},onSliderChange:gt,onStyleChange:gt,shouldHideSliderTitle:!0,shouldHideSliderValue:!0}),!Me&&a.a.createElement("input",{role:"slider",type:"range","aria-label":"thumbnail size slider",min:"100",max:"1000",value:Ae,"aria-valuemin":"100","aria-valuemax":"1000","aria-valuenow":Ae,onChange:function(e){_e(Number(e.target.value)),pt()},step:"50",className:"thumbnail-slider",id:"thumbnailSize"}),a.a.createElement(w.a,{img:"icon-zoom-thumb-in",title:"action.zoomIn",hideTooltipShortcut:!0,onClick:function(){Ae+Number("50")<1001&&(_e(Ae+Number("50")),pt())},dataElement:"zoomThumbInButton"})),a.a.createElement(s.a,{bounds:!0,onResize:function(e){var t=e.bounds;Z(t.height),J(t.width),ce(Math.min(16,Math.max(1,Math.floor(t.width/Ae))))},key:Ae},(function(e){var n=e.measureRef;return a.a.createElement("div",{className:"Panel ThumbnailsPanel ".concat(t),id:"virtualized-thumbnails-container","data-element":"thumbnailsPanel",onDrop:rt,ref:n},a.a.createElement("div",{className:"virtualized-thumbnails-container"},ue?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:tt,style:bt}):"",a.a.createElement(c.c,{ref:M,height:Y,width:Q,rowHeight:ht,rowCount:Math.ceil(Le/le),rowRenderer:ft,overscanRowCount:3,className:d()({thumbnailsList:!0,"right-to-left":L}),scrollToIndex:Math.floor((g-1)/le),role:"grid","aria-label":q("component.thumbnailsPanel"),tabIndex:-1}),ue?a.a.createElement("div",{className:"thumbnailAutoScrollArea",onDragOver:et,style:ke(ke({},bt),{},{bottom:"70px"})}):""))})),a.a.createElement(me,{shouldShowControls:mt,parentElement:n||t}))};t.default=Ae},1778:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(34),n(81),n(27),n(21),n(20),n(12),n(22),n(31),n(18),n(26),n(16),n(28),n(59),n(48),n(24),n(47),n(49),n(37),n(8),n(17),n(19),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(1),a=(n(38),n(125),n(50),n(76),n(99),n(129),n(91),n(62),n(94),n(15)),l=n.n(a),c=n(6),s=n(305),u=n(2),d=n.n(u),f=n(206),p=n(1654);function h(e){return(h="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 m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==h(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var w={notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired,selectedIndex:d.a.number,sortStrategy:d.a.string},x=new p.b({defaultHeight:50,fixedWidth:!0}),O=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,c=e.selectedIndex,s=e.sortStrategy,u=Object(o.useRef)(),d=v(Object(o.useState)(0),2),h=d[0],m=d[1],g=v(Object(o.useState)({width:0,height:0}),2),y=g[0],w=g[1],O=window.innerHeight;Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){u.current.scrollToPosition(e)},scrollToRow:function(e){u.current.scrollToRow(e)}}})),Object(o.useEffect)((function(){u.current.scrollToPosition(l)}),[l]),Object(o.useEffect)((function(){var e,t;(x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),-1!==c)&&(null===(t=u.current)||void 0===t||t.scrollToRow(c))}),[c]),Object(o.useEffect)((function(){var e,t;x.clearAll(),null==u||null===(e=u.current)||void 0===e||e.measureAllRows(),null==u||null===(t=u.current)||void 0===t||t.forceUpdateGrid()}),[n.length,s]),Object(o.useEffect)((function(){var e=function(){var e=window.innerHeight-O;e&&(window.innerHeight<O&&m(e),O=window.innerHeight)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}));var S=function(e){var t=e.scrollTop;a(t)},k=function(e){var t=e.index,o=e.key,a=e.parent,l=e.style,c=n[t];return r.a.createElement(p.a,{key:"".concat(o).concat(c.Id),cache:x,columnIndex:0,parent:a,rowIndex:t},(function(e){var o=e.measure;return r.a.createElement("div",{style:b(b({},l),{},{paddingRight:"12px"})},i(n,t,(function(){!function(e){var t;x.clear(e),null===(t=u.current)||void 0===t||t.recomputeRowHeights(e)}(t),o()})))}))};return r.a.createElement(f.a,{bounds:!0,offset:!0,onResize:function(e){var t=e.bounds;w(b(b({},t),{},{height:t.height+2*h})),m(0)}},(function(e){var t=e.measureRef;return r.a.createElement("div",{ref:t,className:"virtualized-notes-container"},r.a.createElement(p.c,{deferredMeasurementCache:x,style:{outline:"none"},height:y.height-h,width:y.width,overscanRowCount:10,ref:u,rowCount:n.length,rowHeight:x.rowHeight,rowRenderer:k,onScroll:S,"aria-label":"presentation",role:"presentation"}))}))}));O.displayName="VirtualizedList",O.propTypes=w;var S=O,k=(n(44),{notes:d.a.array.isRequired,children:d.a.func.isRequired,onScroll:d.a.func.isRequired,initialScrollTop:d.a.number.isRequired}),E=r.a.forwardRef((function(e,t){var n=e.notes,i=e.children,a=e.onScroll,l=e.initialScrollTop,c=Object(o.useRef)();Object(o.useImperativeHandle)(t,(function(){return{scrollToPosition:function(e){c.current.scrollTop=e},scrollToRow:function(e){var t=c.current,n=t.children[e];if(n){var o=t.getBoundingClientRect(),r=n.getBoundingClientRect();r.top>=o.top&&r.top<=o.top+t.clientHeight||(t.scrollTop=r.top+t.scrollTop-o.top)}}}})),Object(o.useEffect)((function(){c.current.scrollTop=l}),[l]);return r.a.createElement("div",{ref:c,className:"normal-notes-container",onScroll:function(e){a(e.target.scrollTop)},role:"list"},n.map((function(e,t){return r.a.createElement(r.a.Fragment,{key:"".concat(t,"_").concat(e.Id)},i(n,t))})))}));E.displayName="NormalList",E.propTypes=k;var C=E,T=n(1709),A=n(51),_=n(1571),j=n(1637),P=(n(132),n(41)),N=(n(153),n(1599)),I=n(372),R=n(1596),q=n(4);n(1748);function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return M(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var D=function(e){var t=e.annotations,n=e.onSubmit,a=e.onClose,u=L(Object(c.e)((function(e){var t;return[q.a.getIsMentionEnabled(e),q.a.getActiveDocumentViewerKey(e),null===(t=q.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),c.c),3),d=u[0],f=u[1],p=u[2],h=L(Object(o.useState)(""),2),m=h[0],b=h[1],g=L(Object(s.a)(),1)[0],v=Object(o.useRef)();Object(o.useEffect)((function(){v.current.focus()}),[]);var y=l()({"reply-area":!0});return r.a.createElement("div",{className:l()({"reply-area-multi-container":!0,"modular-ui":p})},r.a.createElement("div",{className:"reply-area-multi-header"},r.a.createElement("div",{className:"title"},g("action.multiReplyAnnotations",{count:t.length})),r.a.createElement(P.a,{className:"close-icon",onClick:a,img:"ic_close_black_24px"})),r.a.createElement("form",{onSubmit:function(e){e.preventDefault();var o=v.current.getEditor(),r=I.a.getFormattedTextFromDeltas(o.getContents());r.trim()&&(t.forEach((function(e){if(d){var t=I.a.createMentionReply(e,r);i.a.addAnnotations([t],f),Object(R.a)(o,t)}else{var n=i.a.createAnnotationReply(e,r,f);Object(R.a)(o,n)}})),n())}},r.a.createElement("div",{className:y,onMouseDown:function(e){return e.stopPropagation()}},r.a.createElement(N.a,{ref:function(e){v.current=e},value:m,onChange:function(e){return function(e){b(e)}(e)},isReply:!0})),r.a.createElement("div",{className:"reply-button-container"},r.a.createElement(P.a,{img:"icon-post-reply",className:"reply-button",title:"action.submit",isSubmitType:!0}))))},z=n(245),B=n(119),F=n(23);var H=function(e){var t=Object(o.useRef)(null);return Object(o.useEffect)((function(){var n,o,r=document.querySelector("#".concat(e)),i=r||function(e){var t=document.createElement("div");return t.setAttribute("id",e),t}(e);return r||(n=i,(o=window.isApryseWebViewerWebComponent?Object(F.a)():document.body).insertBefore(n,o.lastElementChild.nextElementSibling)),i.appendChild(t.current),function(){t.current.remove(),i.childElementCount||i.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current},U=function(e){var t=e.id,n=e.position,o=e.children,r=H(t);return r.style.position="absolute",r.style.top="auto"===n.top?n.top:"".concat(n.top,"px"),r.style.left="auto"===n.left?n.left:"".concat(n.left,"px"),r.style.right="auto"===n.right?n.right:"".concat(n.right,"px"),r.style.pointerEvents="none",r.style.zIndex=999,Object(B.createPortal)(o,r)},W=n(1712),G=n(144),V=n(412),K=n(216),$=n(3),Y=n(53);n(1750);function Z(e){return(Z="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 X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?X(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Z(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Z(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Z(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var ne=function(e){var t=e.annotations,n=e.triggerElementName,i=e.onClose,a=void 0===i?function(){}:i,l=Object(c.d)(),s=Object(o.useRef)(),u=ee(Object(o.useState)([]),2),d=u[0],f=u[1],p=ee(Object(o.useState)({left:"auto",right:"auto",top:"auto"}),2),h=p[0],m=p[1];Object(G.a)(s,(function(e){var t=document.querySelector("[data-element=".concat(n,"]")).contains(e.target),o=Object(K.d)(),r=Object(K.c)(),i=Object(K.b)();t||o||r||i||a()}));var b={};t.forEach((function(e){b=Q(Q({},b),Object(V.a)(e))}));var g=t.find((function(e){return e instanceof window.Core.Annotations.FreeTextAnnotation&&(e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeText||e.getIntent()===window.Core.Annotations.FreeTextAnnotation.Intent.FreeTextCallout)})),v={};if(g){var y,w,x,O,S,k,E,C,T,A,_,j=g.getRichTextStyle();v={Font:g.Font,FontSize:g.FontSize,TextAlign:g.TextAlign,TextVerticalAlign:g.TextVerticalAlign,bold:"bold"===(null!==(y=null==j||null===(w=j[0])||void 0===w?void 0:w["font-weight"])&&void 0!==y?y:""),italic:"italic"===(null!==(x=null==j||null===(O=j[0])||void 0===O?void 0:O["font-style"])&&void 0!==x?x:""),underline:(null==j||null===(S=j[0])||void 0===S||null===(k=S["text-decoration"])||void 0===k?void 0:k.includes("underline"))||(null==j||null===(E=j[0])||void 0===E||null===(C=E["text-decoration"])||void 0===C?void 0:C.includes("word")),strikeout:null!==(T=null==j||null===(A=j[0])||void 0===A||null===(_=A["text-decoration"])||void 0===_?void 0:_.includes("line-through"))&&void 0!==T&&T}}Object(o.useEffect)((function(){var e=[];if(b.TextColor&&e.push(Y.b.TEXT_COLOR),b.StrokeColor&&e.push(Y.b.STROKE_COLOR),b.FillColor&&e.push(Y.b.FILL_COLOR),Object(Y.l)("MultiStyle",e,e[0])){var t=Object(Y.d)("currentStyleTab","iconColor");l($.a.setColorMap(t));var n=Object(Y.e)("MultiStyle").styleTabs;f(n)}}),[t]);return 0===d.length?null:r.a.createElement(U,{id:"multi-style-popup-portal",position:h},r.a.createElement("div",{className:"multi-style-container",ref:s},r.a.createElement(W.a,{annotations:t,style:b,isOpen:!0,onResize:function(){var e=Object(z.a)(n,s);m(e)},isFreeText:!!g,colorMapKey:"MultiStyle",properties:v,isRedaction:!1,isMeasure:!1,showLineStyleOptions:!1,hideSnapModeCheckbox:!1})))};ne.propTypes={annotations:d.a.array.isRequired,triggerElementName:d.a.string.isRequired,onClose:d.a.func};var oe=ne,re=n(1638),ie=n(96),ae=n(1635),le=n(5);n(1752);function ce(e){return(ce="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 se(){return(se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function de(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ce(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var me={showMultiReply:d.a.bool.isRequired,setShowMultiReply:d.a.func.isRequired,setShowMultiState:d.a.func.isRequired,showMultiStyle:d.a.bool.isRequired,setShowMultiStyle:d.a.func.isRequired,setMultiSelectMode:d.a.func.isRequired,isMultiSelectedMap:d.a.object.isRequired,setIsMultiSelectedMap:d.a.func.isRequired,multiSelectedAnnotations:d.a.array.isRequired},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=new Set;return e.forEach((function(e){if(e.isGrouped()){var o=i.a.getAnnotationById(e.InReplyTo,t);o&&n.add(o)}else n.add(e)})),Array.from(n)},ge=function(e){var t=e.showMultiReply,n=e.setShowMultiReply,a=e.setShowMultiState,l=e.showMultiStyle,u=e.setShowMultiStyle,d=e.setMultiSelectMode,f=e.isMultiSelectedMap,p=e.setIsMultiSelectedMap,h=e.multiSelectedAnnotations,m=pe(Object(o.useState)([]),2),b=m[0],g=m[1],v=Object(c.d)(),y=pe(Object(s.a)(),1)[0],w=Object(c.e)(q.a.getActiveDocumentViewerKey),x=Object(c.e)(q.a.isDocumentReadOnly),O=Object(c.e)(q.a.getIsCustomUIEnabled);Object(o.useEffect)((function(){var e=function(e){var n=de({},f);return e.forEach((function(e){t(e,n)})),n},t=function(e,t){var n=i.a.getGroupAnnotations(e,w);n.some((function(e){return f[e.Id]}))&&n.forEach((function(e){t[e.Id]=e}))},n=function(e){var t=Object.keys(f),n=Object.keys(e);return t.some((function(e){return!n.includes(e)}))},o=function(t,o){"delete"===o?function(e){var t=de({},f);e.forEach((function(e){delete t[e.Id]})),p(t)}(t):"modify"===o&&function(t){var o=e(t);n(o)&&p(o)}(t)};return i.a.addEventListener("annotationChanged",o,void 0,w),function(){i.a.removeEventListener("annotationChanged",o,w)}}),[f,w]),Object(o.useEffect)((function(){return function(){n(!1),p({})}}),[]),Object(o.useEffect)((function(){var e=h.filter((function(e){return i.a.canModify(e,w)}));g(e)}),[h]);var S=i.a.getNumberOfGroups(b,w)>1,k=!S&&(b.length>2||b.length>0&&i.a.getGroupAnnotations(b[0],w).length>1),E=Object(o.useCallback)((function(e){be(h,w).forEach((function(t){var n=Object(ae.a)(t,e,w);t.addReply(n);var o=i.a.getAnnotationManager(w);o.addAnnotation(n),o.trigger("addReply",[n,t,o.getRootAnnotation(t)])})),a(!1)}),[h,w]),C=Object(o.useMemo)((function(){return{resize:function(){}}}));if(t)return r.a.createElement(_.a.Provider,{value:C},r.a.createElement(D,{annotations:be(h,w),onSubmit:function(){return n(!1)},onClose:function(){return n(!1)}}));var T=x||0===b.length,A={dataElement:le.a.NOTE_MULTI_STYLE_BUTTON,img:"icon-menu-style-line",disabled:T,title:"action.style"};return r.a.createElement("div",{className:"multi-select-footer"},r.a.createElement("div",{className:"buttons-container"},r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_REPLY_BUTTON,disabled:x||0===h.length,img:"icon-header-chat-line",onClick:function(){n(!0)},title:"action.comment"}),r.a.createElement(ie.a,{dataElement:le.a.NOTE_MULTI_STATE_BUTTON,title:y("option.notesOrder.status"),img:"icon-annotation-status-none",toggleElement:le.a.NOTE_STATE_FLYOUT,disabled:x||0===b.length}),r.a.createElement(re.a,{isMultiSelectMode:!0,handleStateChange:E}),O?r.a.createElement(ie.a,se({},A,{toggleElement:le.a.MULTI_SELECT_STYLE_PANEL_FLYOUT})):r.a.createElement(P.a,se({},A,{onClick:function(){u(!l)}})),l&&r.a.createElement(oe,{annotations:b,triggerElementName:"multiStyleButton",onClose:function(){u(!1)}}),!k&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_GROUP_BUTTON,disabled:x||!S,img:"group-annotations-icon",onClick:function(){i.a.groupAnnotations(h[0],h,w)},title:"action.group"}),k&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_UNGROUP_BUTTON,img:"ungroup-annotations-icon",onClick:function(){i.a.ungroupAnnotations(h,w)},title:"action.ungroup"}),r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_DELETE_BUTTON,disabled:x||0===b.length,img:"icon-delete-line",onClick:function(){var e={title:y("warning.multiDeleteAnnotation.title"),message:y("warning.multiDeleteAnnotation.message"),confirmBtnText:y("action.delete"),onConfirm:function(){i.a.deleteAnnotations(b,void 0,w)}};v($.a.showWarningMessage(e))},title:"action.delete"})),r.a.createElement("div",{className:"close-container"},r.a.createElement(P.a,{className:"close-icon-container",onClick:function(){d(!1)},img:"ic_close_black_24px",ariaLabel:y("option.documentControls.closeTooltip")})))};ge.propTypes=me;var ve=ge,ye=n(184),we=n(105),xe=n.n(we),Oe=n(72),Se=n(60),ke=n(54),Ee=n(183),Ce=n(25),Te=n(90);n(1754);function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _e(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var je={notes:d.a.array.isRequired,disableFilterAnnotation:d.a.bool,setSearchInputHandler:d.a.func.isRequired,isMultiSelectMode:d.a.bool,toggleMultiSelectMode:d.a.func,isMultiSelectEnabled:d.a.bool};function Pe(e){var t=e.notes,n=e.disableFilterAnnotation,a=e.setSearchInputHandler,u=e.isMultiSelectMode,d=e.toggleMultiSelectMode,f=e.isMultiSelectEnabled,p=Ae(Object(c.e)((function(e){var t;return[q.a.getSortStrategy(e),q.a.isElementDisabled(e,"sortContainer"),q.a.getNotesPanelCustomHeaderOptions(e),q.a.getAnnotationFilters(e),q.a.getIsOfficeEditorMode(e),q.a.getOfficeEditorEditMode(e),null===(t=q.a.getFeatureFlags(e))||void 0===t?void 0:t.customizableUI]}),c.c),7),h=p[0],m=p[1],b=p[2],g=p[3],v=p[4],y=p[5],w=p[6],x=Ae(Object(s.a)(),1)[0],O=Object(c.d)(),S=Ae(Object(o.useState)(!1),2),k=S[0],E=S[1],C=Ae(Object(o.useState)(!1),2),T=C[0],_=C[1],j=Ae(Object(o.useState)(""),2),N=j[0],I=j[1];Object(o.useEffect)((function(){var e=g.authorFilter,t=g.colorFilter,n=g.statusFilter,o=g.typeFilter;((null==e?void 0:e.length)>0||(null==t?void 0:t.length)>0||(null==n?void 0:n.length)>0||(null==o?void 0:o.length)>0)&&E(!0);var r=function(e){var t=e.detail,n=t.types,o=t.authors,r=t.colors,i=t.statuses;n.length>0||o.length>0||r.length>0||i.length>0?E(!0):E(!1)};return window.addEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r),function(){window.removeEventListener(ke.a.ANNOTATION_FILTER_CHANGED,r)}}),[]),Object(o.useEffect)((function(){v&&y===Ce.z.PREVIEW?(_(!0),a(""),I("")):_(!1)}),[v,y]);var R=xe()((function(e){i.a.deselectAllAnnotations(),a(e)}),500),L=r.a.createElement("div",{className:"sort-container","data-element":"sortContainer"},r.a.createElement("div",{className:"label",id:"notesSortLabel"},"".concat(x("message.sort"),":")),r.a.createElement(Oe.a,{id:"notesOrderDropdown",labelledById:"notesSortLabel",dataElement:"notesOrderDropdown",disabled:0===t.length||T,ariaLabel:"".concat(x("message.sortBy")," ").concat(h),items:Object.keys(Object(Ee.c)()),translationPrefix:"option.notesOrder",currentSelectionKey:h,onClickItem:function(e){O($.a.setNotesPanelSortStrategy(e))}})),M=Object(Te.a)((function(){return O($.a.openElement("filterModal"))})),D=x(v?"message.searchSuggestionsPlaceholder":"message.searchCommentsPlaceholder"),z=r.a.createElement(Se.a,{className:l()({header:!0,"modular-ui-header":w}),dataElement:"notesPanelHeader"},r.a.createElement(Se.a,{className:l()({"input-container":!0,"modular-ui-input":w}),dataElement:le.a.NotesPanel.DefaultHeader.INPUT_CONTAINER},w&&r.a.createElement(A.a,{glyph:"icon-header-search"}),r.a.createElement("input",{disabled:T,type:"text",placeholder:w?"":D,"aria-label":D,onChange:function(e){I(e.target.value),R(e.target.value)},id:"NotesPanel__input",value:N})),r.a.createElement(Se.a,{className:"comments-counter",dataElement:le.a.NotesPanel.DefaultHeader.COMMENTS_COUNTER},r.a.createElement("h2",{className:"main-comment"},x(v?"officeEditor.reviewing":"component.notesPanel")," ","(".concat(t.length,")"))),r.a.createElement(Se.a,{className:"sort-row",dataElement:le.a.NotesPanel.DefaultHeader.SORT_ROW},m?r.a.createElement("div",{className:"sort-container"}):L,r.a.createElement("div",{className:"buttons-container"},f&&!v&&r.a.createElement(P.a,{dataElement:le.a.NOTE_MULTI_SELECT_MODE_BUTTON,className:l()({active:u}),disabled:0===t.length,img:"icon-annotation-select-multiple",onClick:function(){i.a.deselectAllAnnotations(),d()},title:x("component.multiSelectButton"),ariaPressed:u}),r.a.createElement(P.a,{dataElement:le.a.NotesPanel.DefaultHeader.FILTER_ANNOTATION_BUTTON,className:l()({active:k}),disabled:n,img:"icon-comments-filter",onClick:M,title:x("component.filter"),ariaPressed:k}))));return r.a.createElement(r.a.Fragment,null,b&&r.a.createElement(ye.a,{render:b.render,renderArguments:[t]}),(!b||!b.overwriteDefaultHeader)&&z)}Pe.propTypes=je;var Ne=Pe,Ie=n(160),Re=n(61),qe=n(45),Le=n(1701);n(1756);function Me(e){return(Me="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 De(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Me(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Me(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Me(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fe(e){return function(e){if(Array.isArray(e))return We(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ue(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||Ue(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var Ge=function(e){var t=e.currentLeftPanelWidth,n=e.notes,a=e.selectedNoteIds,u=e.setSelectedNoteIds,d=e.searchInput,f=e.setSearchInput,p=e.isMultiSelectMode,h=e.setMultiSelectMode,m=e.isMultiSelectedMap,b=e.setIsMultiSelectedMap,g=e.scrollToSelectedAnnot,v=e.setScrollToSelectedAnnot,y=e.isCustomPanel,w=e.isCustomPanelOpen,x=e.isLeftSide,O=e.parentDataElement,k=Object(c.e)(q.a.getSortStrategy),E=Object(c.e)((function(e){return q.a.isElementOpen(e,le.a.NOTES_PANEL)})),P=Object(c.e)((function(e){return q.a.isElementDisabled(e,le.a.NOTES_PANEL)})),N=Object(c.e)(q.a.getPageLabels,c.c),I=Object(c.e)(q.a.getCustomNoteFilter,c.c),R=Object(c.e)(q.a.getInternalNoteFilter,c.c),L=Object(c.e)((function(e){return O?q.a.getPanelWidth(e,O):q.a.getNotesPanelWidth(e)}),c.c),M=Object(c.e)(q.a.getNotesInLeftPanel),D=Object(c.e)(q.a.isDocumentReadOnly),z=Object(c.e)(q.a.isAnnotationNumberingEnabled),B=Object(c.e)(q.a.getEnableNotesPanelVirtualizedList),F=Object(c.e)(q.a.isInDesktopOnlyMode),H=Object(c.e)(q.a.getNotesPanelCustomEmptyPanel,c.c),U=Object(c.e)(q.a.getIsNotesPanelMultiSelectEnabled),W=Object(c.e)(q.a.getActiveDocumentViewerKey),G=Object(c.e)(q.a.getIsOfficeEditorMode),V=Object(c.e)(q.a.getOfficeEditorEditMode),K=Object(c.d)(),Y=He(Object(s.a)(),1)[0],Z=t||L,X=Object(Re.b)(),Q=He(Object(o.useState)([]),2),J=Q[0],ee=Q[1],te=He(Object(o.useState)(!1),2),ne=te[0],oe=te[1],re=He(Object(o.useState)(!1),2),ie=re[0],ae=re[1],ce=He(Object(o.useState)(!1),2),se=ce[0],ue=ce[1],de=He(Object(o.useState)(void 0),2),fe=de[0],pe=de[1],he=Object(o.useRef)(),me=Object(o.useRef)(0),be=B?qe.e?25:100:1/0;Object(o.useEffect)((function(){var e=function(e){K($.a.setAnnotationNumbering(e))},t=function(e,t){"selected"===t&&pe(e[0].Id)};return i.a.addEventListener("annotationNumberingUpdated",e),i.a.addEventListener("annotationSelected",t),function(){i.a.removeEventListener("annotationNumberingUpdated",e),i.a.removeEventListener("annotationSelected",t)}}),[]);var ge=-1,we=function(e){e&&(me.current=e),K($.a.closeElement("annotationNoteConnectorLine"))},xe=function(e){var t=e.getContents(),n=i.a.getDisplayAuthor(e.Author),o=e.getCustomData("trn-annot-preview");return(null==t?void 0:t.toLowerCase().includes(d.toLowerCase()))||(null==n?void 0:n.toLowerCase().includes(d.toLowerCase()))||(null==o?void 0:o.toLowerCase().includes(d.toLowerCase()))},Oe=Object(Ee.c)()[k].getSortedNotes(n).filter((function(e){var t=!0;if(I&&(t=t&&I(e)),R&&(t=t&&R(e)),d){var n=e.getReplies(),o=[e].concat(Fe(n));t=t&&o.some(xe)}return t}));Object(o.useEffect)((function(){Object.keys(a).length&&-1!==ge&&setTimeout((function(){var e;null===(e=he.current)||void 0===e||e.scrollToRow(ge)}),0)}),[a]);var Se=function(e){return!Object.keys(a).length&&(d&&Oe.filter((function(e){return e.getReplies().some(xe)})).some((function(t){return t.Id===e.Id})))},ke=He(Object(o.useState)({}),2),Te=ke[0],Ae=ke[1],_e=Object(o.useCallback)((function(e,t){Ae((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Ae]),je=He(Object(o.useState)({}),2),Pe=je[0],Me=je[1],De=Object(o.useCallback)((function(e,t){Me((function(n){return ze(ze({},n),{},Be({},t,e))}))}),[Me]),Ue=He(Object(o.useState)({}),2),We=Ue[0],Ge=Ue[1],Ve=function(e,t){Ge((function(n){return ze(ze({},n),{},Be({},e,[].concat(Fe(n[e]||[]),Fe(t))))}))},Ke=function(e){Ge((function(t){return ze(ze({},t),{},Be({},e,[]))}))},$e=function(e,t){var n=We[e];if((null==n?void 0:n.length)>0){var o=n.indexOf(t);o>-1&&(n.splice(o,1),Ge((function(t){return ze(ze({},t),{},Be({},e,Fe(n)))})))}};Object(o.useEffect)((function(){ee(Object.values(m))}),[m]);var Ye=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=null,l=Object(Ee.c)()[k],c=l.shouldRenderSeparator,s=l.getSeparatorContent,f=0===t?null:e[t-1],h=e[t];c&&s&&(!f||c(f,h))&&(o=r.a.createElement(j.a,{renderContent:function(){return s(f,h,{pageLabels:N})}}));var y=function(){!p&&a[h.Id]&&(u((function(e){var t=ze({},e);return delete t[h.Id],t})),i.a.deselectAnnotation(h,W))},O={searchInput:d,resize:n,isSelected:a[h.Id],isContentEditable:i.a.canModifyContents(h,W)&&!h.getContents(),pendingEditTextMap:Te,setPendingEditText:_e,pendingReplyMap:Pe,setPendingReply:De,isDocumentReadOnly:D,onTopNoteContentClicked:y,isExpandedFromSearch:Se(h),scrollToSelectedAnnot:g,sortStrategy:k,showAnnotationNumbering:z,setCurAnnotId:pe,pendingAttachmentMap:We,clearAttachments:Ke,deleteAttachment:$e,addAttachments:Ve,documentViewerKey:W};return t===ge&&setTimeout((function(){v(!1),K($.a.openElement("annotationNoteConnectorLine"))}),0),r.a.createElement("div",{role:"listitem",className:"note-wrapper"},o,r.a.createElement(_.a.Provider,{value:O},r.a.createElement(T.a,{isCustomPanelOpen:w,shouldHideConnectorLine:x,annotation:h,isMultiSelected:!!m[h.Id],isMultiSelectMode:p,isMultiSelectEnabled:U,isInNotesPanel:!0,handleMultiSelect:function(e){if(e){var t=ze({},m),n=i.a.getGroupAnnotations(h,W);n.forEach((function(e){t[e.Id]=e})),b(t),i.a.selectAnnotations(n)}else{var o=ze({},m),r=i.a.getGroupAnnotations(h,W);r.forEach((function(e){delete o[e.Id]})),b(o),i.a.deselectAnnotations([h].concat(Fe(r)))}}})))},Ze=r.a.createElement("div",{className:"no-results"},r.a.createElement("div",null,r.a.createElement(A.a,{className:"empty-icon",glyph:"illustration - empty state - outlines"})),r.a.createElement("p",{className:"msg no-margin"},Y("message.noResults"))),Xe=null!=H&&H.icon?H.icon:G?"ic-edit-page":"illustration - empty state - outlines",Qe=null!=H&&H.message?H.message:Y(G?"message.noRevisions":"message.noAnnotations"),Je=H&&H.readOnlyMessage?H.readOnlyMessage:Y("message.noAnnotationsReadOnly"),et=H&&!H.hideIcon||!H,tt=H&&H.render,nt=r.a.createElement("div",{className:"no-annotations"},tt?r.a.createElement(ye.a,{render:H.render}):r.a.createElement(r.a.Fragment,null,et&&r.a.createElement("div",null,r.a.createElement(A.a,{className:"empty-icon",glyph:Xe})),r.a.createElement("div",{className:"msg"},D?Je:Qe))),ot=r.a.createElement("div",{className:"multi-select-place-holder"}),rt=r.a.createElement("div",{className:"multi-reply-place-holder"}),it=Object.keys(a);if(1===it.length)ge=Oe.findIndex((function(e){return e.Id===it[0]}));else if(it.length){Oe.filter((function(e){return a[e.Id]})).length&&(ge=Oe.findIndex((function(e){return e.Id===fe})))}var at,lt={};return y||!F&&X||(lt={width:"".concat(Z,"px"),minWidth:"".concat(Z,"px")}),!P&&(E||M||y)?r.a.createElement("div",{className:l()({"notes-panel-container":!0,"office-editor":G})},r.a.createElement("div",{className:l()({Panel:!0,NotesPanel:!0}),style:lt,"data-element":"notesPanel",onMouseUp:function(){return i.a.deselectAllAnnotations}},!F&&X&&!M&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){K($.a.closeElements([le.a.NOTES_PANEL]))}},r.a.createElement(A.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),r.a.createElement(r.a.Fragment,null,r.a.createElement(Ne,{notes:Oe,disableFilterAnnotation:0===n.length,setSearchInputHandler:f,isMultiSelectMode:p,toggleMultiSelectMode:function(){h(!p)},isMultiSelectEnabled:U}),0===Oe.length?0===n.length?nt:Ze:Oe.length<=be?r.a.createElement(C,{ref:he,notes:Oe,onScroll:we,initialScrollTop:me.current},Ye):r.a.createElement(S,{ref:he,notes:Oe,sortStrategy:k,onScroll:we,initialScrollTop:me.current,selectedIndex:ge},Ye),p?ne?rt:ot:null,G&&!p&&Oe.length>0&&r.a.createElement("div",{className:"preview-all-changes"},r.a.createElement("div",{className:"divider"}),r.a.createElement(Ie.a,{isSwitch:!0,checked:V===Ce.z.PREVIEW,label:Y("officeEditor.previewAllChanges"),onChange:function(e){return i.a.getOfficeEditor().setEditMode(e.target.checked?Ce.z.PREVIEW:Ce.z.REVIEWING)}})))),p&&r.a.createElement(ve,{showMultiReply:ne,setShowMultiReply:oe,showMultiState:ie,setShowMultiState:ae,showMultiStyle:se,setShowMultiStyle:ue,setMultiSelectMode:h,isMultiSelectedMap:m,setIsMultiSelectedMap:b,multiSelectedAnnotations:J}),r.a.createElement(Le.a,{annotationId:fe,addAttachments:Ve}),(at=Y(G?"officeEditor.reviewing":"component.notesPanel"),r.a.createElement("p",{"aria-live":"assertive",style:{position:"absolute",left:"-9999px"}},Oe.length>0?"".concat(at," ").concat(Oe.length):Y("message.noResults")))):null},Ve=n(248);function Ke(e){return(Ke="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 $e(){return($e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(null,arguments)}function Ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ye(Object(n),!0).forEach((function(t){Xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ke(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Je(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Je(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function et(e){var t=e.isCustomPanelOpen,n=e.parentDataElement,a=void 0===n?void 0:n,l=e.dataElement,s=Qe(Object(c.e)((function(e){return[q.a.isElementOpen(e,a||l||le.a.NOTES_PANEL),q.a.getNotesInLeftPanel(e),q.a.getIsNotesPanelMultiSelectEnabled(e),q.a.isMultiViewerMode(e),q.a.getActiveDocumentViewerKey(e),q.a.getIsOfficeEditorMode(e)]}),c.c),6),u=s[0],d=s[1],f=s[2],p=s[3],h=s[4],m=s[5],b=Qe(Object(o.useState)(""),2),g=b[0],v=b[1],y=Qe(Object(o.useState)(!1),2),w=y[0],x=y[1],O=Qe(Object(o.useState)(!1),2),S=O[0],k=O[1],E=Qe(Object(o.useState)({1:[],2:[]}),2),C=E[0],T=E[1],A=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;C[t]=e,T(Ze({},C))}),[h,C[1],C[2],T]),_=C[h]||C[1],j=Qe(Object(o.useState)({1:{},2:{}}),2),P=j[0],N=j[1],I=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;P[t]=e,N(Ze({},P))}),[h,P[1],P[2],N]),R=P[h]||P[1],L=Qe(Object(o.useState)({1:{},2:{}}),2),M=L[0],D=L[1],z=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h;M[t]=e,D(Ze({},M))}),[h,M[1],M[2],D]),B=M[h]||M[1],F=function(e){var t=i.a.getAnnotationManager().getFormFieldCreationManager(),n=e instanceof window.Core.Annotations.WidgetAnnotation,o=e.Listable&&!n,r=n&&t.isInFormFieldCreationMode(),a=!m||Object(Y.g)(e)===Y.c.TRACKED_CHANGE;return(o||r)&&!e.isReply()&&!e.Hidden&&!e.isGrouped()&&e.ToolName!==window.Core.Tools.ToolNames.CROP&&!e.isContentEditPlaceholder()&&a};function H(e){var t=e.find((function(e){return e.isGrouped()})),n=[];return t&&e.forEach((function(e){t.InReplyTo!==e.InReplyTo&&t.InReplyTo!==e.Id||n.push(e)})),n}Object(o.useEffect)((function(){var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){A([],e),I({}),v("")}},t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(){var t=i.a.getSelectedAnnotations(e),n=H(t);w&&n.length===t.length&&x(!1),A(i.a.getAnnotationsList(e).filter(F),e)}},n=e(1);i.a.addEventListener("documentUnloaded",n);var o,r,a=t(1);return i.a.addEventListener("annotationChanged",a),i.a.addEventListener("annotationHidden",a),i.a.addEventListener("updateAnnotationPermission",a),a(),p&&(o=e(2),i.a.addEventListener("documentUnloaded",o,void 0,2),r=t(2),i.a.addEventListener("annotationChanged",r,void 0,2),i.a.addEventListener("annotationHidden",r,void 0,2),i.a.addEventListener("updateAnnotationPermission",r,void 0,2),r()),function(){p&&(i.a.removeEventListener("documentUnloaded",o,2),i.a.removeEventListener("annotationChanged",r,2),i.a.removeEventListener("annotationHidden",r,2),i.a.removeEventListener("updateAnnotationPermission",r,2)),i.a.removeEventListener("documentUnloaded",n),i.a.removeEventListener("annotationChanged",a),i.a.removeEventListener("annotationHidden",a),i.a.removeEventListener("updateAnnotationPermission",a)}}),[p,m]),Object(o.useEffect)((function(){var e,n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;return function(n,o){var r=i.a.getSelectedAnnotations(e),a={};r.forEach((function(e){a[e.Id]=!0})),(t||u||d)&&(I(a,e),k(!0));var l=H(r),c=r.length>1&&l.length!==r.length||w;f&&"selected"===o&&c?(x(!0),r.forEach((function(e){B[e.Id]=e})),z(Ze({},B),e)):"deselected"===o&&(n.forEach((function(e){delete B[e.Id]})),z(Ze({},B),e))}},o=n(1);return o(),i.a.addEventListener("annotationSelected",o),p&&((e=n(2))(),i.a.addEventListener("annotationSelected",e,void 0,2)),function(){i.a.removeEventListener("annotationSelected",o),p&&i.a.removeEventListener("annotationSelected",e,2)}}),[t,u,d,w,B,f,p]);var U={notes:_,selectedNoteIds:R,setSelectedNoteIds:I,searchInput:g,setSearchInput:v,isMultiSelectMode:w,setMultiSelectMode:x,isMultiSelectedMap:B,setIsMultiSelectedMap:z,scrollToSelectedAnnot:S,setScrollToSelectedAnnot:k};return r.a.createElement(Ge,$e({},e,U))}var tt=function(e){return r.a.createElement(Ve.a,{wrapOnlyInMultiViewerMode:!0},r.a.createElement(et,e))};t.default=tt},1779:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(34),n(81),n(125),n(21),n(20),n(12),n(44),n(22),n(99),n(129),n(18),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(56),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(1559),c=n(1663),s=n(472),u=n(4),d=n(3),f=n(41),p=r.a.createContext(),h=n(2),m=n.n(h),b=n(1876),g=n(1877),v=n(630),y=n(1585),w=(n(38),n(1584)),x=n(5),O=n(2083),S=n(269),k=(n(1575),n(1762),n(1656)),E=n(15),C=n.n(E);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var _={portfolioItem:m.a.object.isRequired,isPortfolioRenaming:m.a.bool,setPortfolioRenaming:m.a.func,movePortfolio:m.a.func},j=function(e){var t=e.portfolioItem,n=e.isPortfolioRenaming,l=e.setPortfolioRenaming,c=e.movePortfolio,s=Object(o.useContext)(p),d=s.refreshPortfolio,h=s.renamePortfolioItem,m=s.removePortfolioItem,b=s.openPortfolioItem,g=s.downloadPortfolioItem,v=s.isNameDuplicated,y=s.setActivePortfolioItem,E=t.name,A=t.nameWithoutExtension,_=t.extension,j=t.id,P=T(Object(a.a)(),1)[0],N=Object(o.useRef)(),I=T(Object(o.useState)(!1),2),R=I[0],q=I[1],L=T(Object(o.useState)(A),2),M=L[0],D=L[1],z=Object(o.useCallback)((function(){n||(b(t),y(t.id))}),[n,t,b,y]),B=function(){return!M||A===M||v("".concat(M,".").concat(_),j)},F=function(){l(!1),h(j,"".concat(M,".").concat(_))},H=function(){n&&(l(!1),D(A)),d()};Object(o.useEffect)((function(){n&&(N.current.focus(),N.current.select()),q(!n)}),[n]);var U="".concat(x.a.BOOKMARK_OUTLINE_FLYOUT,"-").concat(j),W=Object(i.e)((function(e){return u.a.getFlyout(e,U)})),G={moreOptionsDataElement:"portfolio-item-more-button-".concat(j),flyoutToggleElement:U},V={shouldHideDeleteButton:!1,currentFlyout:W,flyoutSelector:U,type:"portfolio",handleOnClick:function(e){switch(e){case w.b.MOVE_UP:case w.b.MOVE_DOWN:c(j,e);break;case w.b.OPENFILE:Object(S.g)(_)&&b(t);break;case w.b.RENAME:l(!0);break;case w.b.DOWNLOAD:g(t);break;case w.b.DELETE:m(j)}}};return r.a.createElement("div",{className:"bookmark-outline-single-container"},R&&r.a.createElement(k.a,{iconGlyph:"icon-header-page-manipulation-page-layout-single-page-line",labelHeader:E,enableMoreOptionsContextMenuFlyout:!0,onDoubleClick:z,contextMenuMoreButtonOptions:G,contentMenuFlyoutOptions:V}),n&&r.a.createElement("div",{className:C()({"bookmark-outline-label-row":!0,editing:n})},r.a.createElement("label",{className:"portfolio-input-label",htmlFor:j},P("portfolio.portfolioDocumentTitle")),r.a.createElement(O.a,{id:j,type:"text",name:"outline",ref:N,wrapperClassName:"portfolio-input",value:M,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),n&&!B()&&F()),"Escape"===e.key&&H()},onChange:function(e){return D(e.target.value)},fillWidth:!0,messageText:v("".concat(M,".").concat(_),j)?P("portfolio.fileNameAlreadyExists"):"",message:v("".concat(M,".").concat(_),j)?"warning":"default","aria-label":"".concat(P("action.rename")," ").concat(M,".").concat(_)}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(f.a,{className:"bookmark-outline-cancel-button",label:P("action.cancel"),onClick:H}),n&&r.a.createElement(f.a,{className:"bookmark-outline-save-button",label:P("action.save"),isSubmitType:!0,disabled:B(),onClick:F}))))};j.propTypes=_;var P=j;n(1764);function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R={portfolioItem:m.a.object.isRequired,connectDragSource:m.a.func,connectDragPreview:m.a.func,connectDropTarget:m.a.func,isDragging:m.a.bool,isDraggedUpwards:m.a.bool,isDraggedDownwards:m.a.bool,movePortfolio:m.a.func},q=Object(o.forwardRef)((function(e,t){var n=e.portfolioItem,i=e.connectDragSource,a=e.connectDragPreview,l=e.connectDropTarget,c=e.isDragging,s=e.isDraggedUpwards,u=e.isDraggedDownwards,d=e.movePortfolio,f=Object(o.useRef)(null);i(f),a(Object(v.a)(),{captureDraggingState:!0}),l(f);var p=c?.5:1;Object(o.useImperativeHandle)(t,(function(){return{getNode:function(){return f.current}}}));var h=N(Object(o.useState)(!1),2),m=h[0],b=h[1];return r.a.createElement("div",{ref:f,className:"outline-drag-container",style:{opacity:p}},r.a.createElement("div",{className:"outline-drag-line",style:{opacity:s?1:0}}),r.a.createElement(P,{movePortfolio:d,portfolioItem:n,isPortfolioRenaming:m,setPortfolioRenaming:b}),r.a.createElement("div",{className:"outline-drag-line",style:{opacity:u?1:0}}))}));q.propTypes=R,q.displayName="PortfolioItem";var L=Object(b.a)(y.c.PORTFOLIO,{hover:function(e,t,n){if(n){var o=t.getItem();if(o){var r=o.dragPortfolioItem,i=o.dragSourceNode,a=e.portfolioItem,l=n.getNode();if(i&&l){if(i.contains(l))return o.dropTargetNode=void 0,void(o.dropLocation=y.b.INITIAL);if(o.dropTargetNode=l,r.id!==a.id){var c=l.getBoundingClientRect(),s=c.height/2+c.top,u=t.getClientOffset().y;switch(!0){case u>s:o.dropLocation=y.b.BELOW_TARGET,l.classList.remove("isNesting");break;case u<s:o.dropLocation=y.b.ABOVE_TARGET,l.classList.remove("isNesting");break;default:o.dropLocation=y.b.INITIAL,l.classList.remove("isNesting")}}}}}},drop:function(e,t,n){if(n){var o=t.getItem(),r=o.dragPortfolioItem,i=o.dropTargetNode,a=e.portfolioItem,l=e.movePortfolioInward,c=e.movePortfolioBeforeTarget,s=e.movePortfolioAfterTarget;if(i){switch(o.dropLocation){case y.b.ON_TARGET_HORIZONTAL_MIDPOINT:l(r,a);break;case y.b.ABOVE_TARGET:c(r.id,a.id);break;case y.b.BELOW_TARGET:s(r.id,a.id)}i.classList.remove("isNesting"),o.dropLocation=y.b.INITIAL}}}},(function(e,t){var n,o;return{connectDropTarget:e.dropTarget(),isDraggedUpwards:t.isOver({shallow:!0})&&(null===(n=t.getItem())||void 0===n?void 0:n.dropLocation)===y.b.ABOVE_TARGET,isDraggedDownwards:t.isOver({shallow:!0})&&(null===(o=t.getItem())||void 0===o?void 0:o.dropLocation)===y.b.BELOW_TARGET}}))(Object(g.a)(y.c.PORTFOLIO,{beginDrag:function(e,t,n){return{sourceId:t.sourceId,dragPortfolioItem:e.portfolioItem,dragSourceNode:n.getNode(),dropLocation:y.b.INITIAL}},canDrag:function(){return!0}},(function(e,t){return{connectDragSource:e.dragSource(),connectDragPreview:e.dragPreview(),isDragging:t.isDragging()}}))(q));L.propTypes=R;var M=L,D=n(1869),z={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},B=function(e,t){if(!e||!t)return{display:"none"};var n=t.x,o=t.y,r="translate(calc(".concat(n,"px - 50%), calc(").concat(o,"px - 100%))");return{transform:r,WebkitTransform:r}},F=function(){var e=Object(D.a)((function(e){return{itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getClientOffset()}})),t=e.itemType,n=e.item,o=e.isDragging,i=e.initialOffset,a=e.currentOffset;return o?r.a.createElement("div",{style:z},r.a.createElement("div",{className:"bookmark-outline-single-container preview",style:B(i,a)},function(){if(!n)return null;var e=n.dragPortfolioItem;return t===y.c.PORTFOLIO?r.a.createElement(r.a.Fragment,null,e.name):null}())):null},H=n(60),U=n(45),W=n(136),G=n(1);n(1766);function V(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=J(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function K(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||J(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Y(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(Y(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Y(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,Y(d,"constructor",s),Y(s,"constructor",c),c.displayName="GeneratorFunction",Y(s,r,"GeneratorFunction"),Y(d),Y(d,r,"Generator"),Y(d,o,(function(){return this})),Y(d,"toString",(function(){return"[object Generator]"})),($=function(){return{w:i,m:f}})()}function Y(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(Y=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){Y(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function Z(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function X(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){Z(i,o,r,a,l,"next",e)}function l(e){Z(i,o,r,a,l,"throw",e)}a(void 0)}))}}function Q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||J(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){if(e){if("string"==typeof e)return ee(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var te=function(){var e=Q(Object(i.e)((function(e){return[u.a.isElementDisabled(e,x.a.PORTFOLIO_PANEL),u.a.getTabManager(e),u.a.getPortfolio(e)]}),i.c),3),t=e[0],n=e[1],h=e[2],m=Object(i.d)(),b=Q(Object(a.a)(),1)[0],g=Q(Object(o.useState)(null),2),v=g[0],O=g[1],k=Q(Object(o.useState)(!1),2),E=k[0],C=k[1],T=Object(o.useRef)(null),A=function(){var e;null==T||null===(e=T.current)||void 0===e||e.click()},_=function(){var e=X($().m((function e(t){var n,o,r,i,a,l,c,s;return $().w((function(e){for(;;)switch(e.n){case 0:if(1!==(n=t.target.files).length){e.n=4;break}if(o=n[0],!h.some((function(e){return e.name===o.name}))){e.n=1;break}r=b("portfolio.fileAlreadyExistsMessage",{fileName:o.name}),i=b("portfolio.fileAlreadyExists"),a=b("portfolio.reselect"),l={message:r,title:i,confirmBtnText:a,onConfirm:function(){return A()}},m(d.a.showWarningMessage(l)),e.n=4;break;case 1:if(!(c=G.a.getDocument())){e.n=4;break}return e.n=2,c.getPDFDoc();case 2:if(!(s=e.v)){e.n=4;break}return e.n=3,Object(S.b)(s,o);case 3:N();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Object(S.h)(t,n);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),N=function(){var e=X($().m((function e(){var t,n,o,r;return $().w((function(e){for(;;)switch(e.n){case 0:return t=m,n=d.a,e.n=1,Object(S.f)();case 1:o=e.v,r=n.setPortfolio.call(n,o),t(r),C(!1);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=X($().m((function e(t){return $().w((function(e){for(;;)switch(e.n){case 0:return m(d.a.openElement(x.a.LOADING_MODAL)),e.n=1,Object(S.e)(t);case 1:m(d.a.closeElement(x.a.LOADING_MODAL));case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),R=function(e,t){console.log(e.name,"Inward",t.name)},q=function(){var e=X($().m((function e(t,n,o,r){var i,a,l,c,s,u,d,f,p,h;return $().w((function(e){for(;;)switch(e.p=e.n){case 0:i=K(t),a=i.findIndex((function(e){return e.id===n})),l=i.findIndex((function(e){return e.id===o})),c=l,r===y.b.ABOVE_TARGET&&a<l&&(c=l-1),r===y.b.BELOW_TARGET&&a>l&&(c=l+1),i.splice(c,0,i.splice(a,1)[0]),s=V(i.entries()),e.p=1,s.s();case 2:if((u=s.n()).done){e.n=4;break}if(d=Q(u.value,2),f=d[0],(p=d[1]).order===f){e.n=3;break}return e.n=3,Object(S.i)(p.id,f);case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,h=e.v,s.e(h);case 6:return e.p=6,s.f(),e.f(6);case 7:return e.a(2)}}),e,null,[[1,5,6,7]])})));return function(t,n,o,r){return e.apply(this,arguments)}}(),L=function(){var e=X($().m((function e(t,n){var o,r,i,a,l,c,s,u,d;return $().w((function(e){for(;;)switch(e.p=e.n){case 0:return e.n=1,Object(S.f)();case 1:if(o=e.v,r=o.findIndex((function(e){return e.id===t})),!(0===r&&n===w.b.MOVE_UP||r===o.length-1&&n===w.b.MOVE_DOWN)){e.n=2;break}return e.a(2);case 2:i=n===w.b.MOVE_UP?r-1:r+1,o.splice(i,0,o.splice(r,1)[0]),a=V(o.entries()),e.p=3,a.s();case 4:if((l=a.n()).done){e.n=6;break}if(c=Q(l.value,2),s=c[0],(u=c[1]).order===s){e.n=5;break}return e.n=5,Object(S.i)(u.id,s);case 5:e.n=4;break;case 6:e.n=8;break;case 7:e.p=7,d=e.v,a.e(d);case 8:return e.p=8,a.f(),e.f(8);case 9:return e.n=10,N();case 10:return e.a(2)}}),e,null,[[3,7,8,9]])})));return function(t,n){return e.apply(this,arguments)}}(),D=Object(o.useCallback)(function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,q(h,t,n,y.b.ABOVE_TARGET);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]),z=Object(o.useCallback)(function(){var e=X($().m((function e(t,n){return $().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,q(h,t,n,y.b.BELOW_TARGET);case 1:N();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[h]);return t?null:r.a.createElement(H.a,{className:"Panel PortfolioPanel bookmark-outline-panel",dataElement:x.a.PORTFOLIO_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},b("portfolio.portfolioPanelTitle")),r.a.createElement("div",{className:"portfolio-panel-control"},r.a.createElement(f.a,{className:"portfolio-panel-control-button",dataElement:x.a.PORTFOLIO_ADD_FILE,img:"icon-add-file",title:b("portfolio.addFile"),disabled:E,onClick:A}),r.a.createElement("input",{ref:T,style:{display:"none"},type:"file",onChange:function(e){_(e),e.target.value=null}}))),r.a.createElement(p.Provider,{value:{activePortfolioItem:v,setActivePortfolioItem:O,isPortfolioItemActive:function(e){return(null==e?void 0:e.id)===v},isAddingNewFolder:E,setAddingNewFolder:C,addNewFolder:function(e){e||(e=b("message.untitled")),N()},renamePortfolioItem:j,removePortfolioItem:function(e){var t,n=h.find((function(t){return t.id===e})),o={message:b("portfolio.deletePortfolio",{fileName:n.name}),title:b("action.delete"),confirmBtnText:b("action.delete"),onConfirm:(t=X($().m((function t(){return $().w((function(t){for(;;)switch(t.n){case 0:return t.n=1,Object(S.d)(e);case 1:N();case 2:return t.a(2)}}),t)}))),function(){return t.apply(this,arguments)})};m(d.a.showWarningMessage(o))},openPortfolioItem:function(e){Object(S.g)(e.extension)&&(m(Object(W.b)()),m(d.a.addPortfolioTab(e)))},downloadPortfolioItem:I,refreshPortfolio:N,isNameDuplicated:function(e,t){return h.filter((function(e){return e.id!==t})).some((function(t){return t.name===e}))},tabManager:n}},r.a.createElement(l.a,{backend:U.l?c.a:s.a},r.a.createElement(F,null),r.a.createElement("div",{className:"portfolio-panel-list"},h.map((function(e){return r.a.createElement(M,{key:e.id,portfolioItem:e,movePortfolioInward:R,movePortfolioBeforeTarget:D,movePortfolioAfterTarget:z,movePortfolio:L})})),E&&r.a.createElement(H.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(P,{name:"",id:"0",isFolder:!0,isAdding:!0}))))))};t.default=te},1780:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(30),n(38),n(34),n(81),n(27),n(21),n(50),n(20),n(12),n(44),n(22),n(31),n(18),n(16),n(28),n(48),n(24),n(47),n(49),n(37),n(8),n(111),n(17),n(19),n(62),n(11),n(29),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=(n(153),n(94),n(4)),c=n(15),s=n.n(c),u=n(1),d=n(2),f=n.n(d),p=n(41),h=n(1595),m=n(60),b=n(1584),g=n(5),v=n(1597);n(1575);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var x={text:f.a.string.isRequired,label:f.a.string.isRequired,defaultLabel:f.a.string,pageIndex:f.a.number.isRequired,isAdding:f.a.bool,isMultiSelectionMode:f.a.bool,setSelected:f.a.func,onSave:f.a.func.isRequired,onRemove:f.a.func,onCancel:f.a.func,panelSelector:f.a.string},O=function(e){var t=e.text,n=e.label,c=e.defaultLabel,d=e.pageIndex,f=e.isAdding,w=e.isMultiSelectionMode,x=e.setSelected,O=e.onSave,S=e.onRemove,k=e.onCancel,E=e.panelSelector,C=y(Object(a.a)(),1)[0],T=y(Object(o.useState)(!1),2),A=T[0],_=T[1],j=y(Object(o.useState)(!1),2),P=j[0],N=j[1],I=y(Object(o.useState)(t),2),R=I[0],q=I[1],L=y(Object(o.useState)(void 0),2),M=L[0],D=L[1],z=Object(o.useRef)(),B=function(){return!R||t===R},F=function(){_(!1),O(""===R.trim()?C("message.untitled"):R)},H=function(){_(!1),A&&q(t),f&&k()};Object(o.useEffect)((function(){R!==t&&q(t)}),[t]),Object(o.useEffect)((function(){(f||A)&&(z.current.focus(),z.current.select()),N(!f&&!A)}),[A]);var U="".concat(g.a.BOOKMARK_FLYOUT,"-").concat(d),W=Object(i.e)((function(e){return l.a.getFlyout(e,U)})),G="bookmark-more-button-".concat(E,"-").concat(d),V={labelHeader:c,description:t,enableMoreOptionsContextMenuFlyout:!0,contentMenuFlyoutOptions:{shouldHideDeleteButton:!1,currentFlyout:W,flyoutSelector:U,type:"bookmark",handleOnClick:function(e){switch(e){case b.b.RENAME:_(!0);break;case b.b.DELETE:S(d)}}},contextMenuMoreButtonOptions:{flyoutToggleElement:U,moreOptionsDataElement:G},onClick:function(e){P&&1===e.detail&&D(setTimeout((function(){!function(e){u.a.setCurrentPage(e+1)}(d)}),300))},onDoubleClick:function(){P&&_(!0)},checkboxOptions:{id:"bookmark-checkbox-".concat(d+1),onChange:function(e){x(d,e.target.checked)},ariaLabel:"".concat(C("action.select")," ").concat(n),disabled:!w}};return r.a.createElement(r.a.Fragment,null,P&&r.a.createElement(v.a,V),(f||A)&&r.a.createElement(m.a,{className:s()({"bookmark-outline-single-container":!0,editing:f||A,default:P}),onDoubleClick:function(){P&&clearTimeout(M)}},r.a.createElement("div",{className:"bookmark-outline-label-row"},r.a.createElement("div",{className:"bookmark-outline-label"},f||A?n:c),r.a.createElement("input",{type:"text",name:"bookmark",ref:z,className:"bookmark-outline-input bookmark-text-input","aria-label":C("action.name"),value:R,onKeyDown:function(e){"Enter"===e.key&&(e.stopPropagation(),(f||A&&!B())&&F()),"Escape"===e.key&&H()},onChange:function(e){return q(e.target.value)}}),r.a.createElement("div",{className:"bookmark-outline-editing-controls"},r.a.createElement(h.a,{label:C("action.cancel"),onClick:H,ariaLabel:"".concat(C("action.cancel")," ").concat(C("component.bookmarkPanel"))}),f&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:C("action.add"),isSubmitType:!0,onClick:F,ariaLabel:"".concat(C("action.add")," ").concat(C("component.bookmarkPanel"))}),A&&r.a.createElement(p.a,{className:"bookmark-outline-save-button",label:C("action.save"),isSubmitType:!0,disabled:B(),onClick:F,ariaLabel:"".concat(C("action.save")," ").concat(C("component.bookmarkPanel"))})))))};O.propTypes=x;var S=O,k=n(160),E=n(3);n(1735);function C(e){return(C="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 T(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||N(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=C(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||N(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var R=function(e){var t,n=e.panelSelector,c=P(Object(i.e)((function(e){return[l.a.isElementDisabled(e,g.a.BOOKMARK_PANEL),l.a.getBookmarks(e),l.a.getCurrentPage(e)-1,l.a.getPageLabels(e),l.a.isBookmarkIconShortcutVisible(e),l.a.getFeatureFlags(e)]}),i.c),6),d=c[0],f=c[1],b=c[2],v=c[3],y=c[4],w=c[5],x=P(Object(o.useState)(!1),2),O=x[0],C=x[1],A=P(Object(o.useState)(!1),2),N=A[0],I=A[1],R=P(Object(o.useState)([]),2),q=R[0],L=R[1],M=w.customizableUI,D=P(Object(a.a)(),1)[0],z=Object(i.d)();Object(o.useEffect)((function(){y&&!d?u.a.setBookmarkIconShortcutVisibility(!0):u.a.setBookmarkIconShortcutVisibility(!1)}),[d,y]);var B=Object.keys(f).map((function(e){return parseInt(e,10)}));Object(o.useEffect)((function(){q.forEach((function(e){B.includes(e)||L(q.filter((function(t){return t!==e})))})),0===B.length&&I(!1)}),[f]);var F=function(e){var t=D("warning.deleteBookmark.title"),n={message:D("warning.deleteBookmark.message"),title:t,onConfirm:function(){e.forEach((function(e){return u.a.removeUserBookmark(Number(e))})),L([])},confirmBtnText:D("action.delete")};z(E.a.showWarningMessage(n))};return d?null:r.a.createElement("div",{className:s()(j(j({Panel:!0,BookmarksPanel:!0,"bookmark-outline-panel":!0},n,!0),"modular-ui-panel",M)),"data-element":g.a.BOOKMARK_PANEL},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("div",{className:"header-title"},D("component.bookmarksPanel")),!N&&r.a.createElement(h.a,{dataElement:g.a.BOOKMARK_MULTI_SELECT,label:D("action.edit"),disabled:O||0===B.length,onClick:function(){return I(!0)},ariaLabel:"".concat(D("action.edit")," ").concat(D("component.bookmarksPanel"))}),N&&r.a.createElement(h.a,{dataElement:g.a.BOOKMARK_MULTI_SELECT,label:D("option.bookmarkOutlineControls.done"),disabled:O,onClick:function(){I(!1),L([])},ariaLabel:"".concat(D("option.bookmarkOutlineControls.done")," ").concat(D("action.edit"))})),r.a.createElement(k.a,{dataElement:g.a.BOOKMARK_SHORTCUT_OPTION,type:"checkbox",isSwitch:!0,id:"bookmark-view-option",className:"bookmark-switch",label:D("message.viewBookmark"),checked:y,onChange:function(e){return z(E.a.setBookmarkIconShortcutVisibility(e.target.checked))}}),!O&&0===B.length&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},D("message.noBookmarks")),r.a.createElement("div",{className:"bookmark-outline-row"},O&&r.a.createElement(S,{isAdding:!0,label:"".concat(D("component.bookmarkPage")," ").concat(v[b]," - ").concat(D("component.bookmarkTitle")),text:null!==(t=f[b])&&void 0!==t?t:"",pageIndex:b,onSave:function(e){u.a.addUserBookmark(b,e),C(!1)},onCancel:function(){return C(!1)},panelSelector:n}),B.map((function(e){return r.a.createElement(S,{key:e,panelSelector:n,isMultiSelectionMode:N,label:"".concat(D("component.bookmarkPage")," ").concat(v[e]," - ").concat(D("component.bookmarkTitle")),defaultLabel:"".concat(D("component.bookmarkPage")," ").concat(v[e]),text:f[e],pageIndex:e,onSave:function(t){var n=_(_({},u.a.getUserBookmarks()),{},j({},e,t));u.a.setUserBookmarks(n)},onRemove:function(e){return F([e])},setSelected:function(e,t){e=e.toString(),q.find((function(t){return t===e}))?t||L(q.filter((function(t){return t!==e}))):t&&L([].concat(T(q),[e]))}})}))),r.a.createElement(m.a,{className:"bookmark-outline-footer",dataElement:g.a.BOOKMARK_ADD_NEW_BUTTON_CONTAINER},N?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",disabled:q.length>0||!!f[b]||O,onClick:function(){return C(!0)},ariaLabel:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel"))}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===q.length,onClick:function(){return F(q)},ariaLabel:"".concat(D("action.delete")," ").concat(D("component.bookmarkPanel"))})):r.a.createElement(h.a,{img:"icon-menu-add",dataElement:g.a.BOOKMARK_ADD_NEW_BUTTON,label:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel")),disabled:O||!!f[b],onClick:function(){return C(!0)},ariaLabel:"".concat(D("action.add")," ").concat(D("component.bookmarkPanel"))})))};t.default=R},1781:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(34),n(81),n(21),n(50),n(20),n(12),n(629),n(22),n(99),n(142),n(18),n(26),n(16),n(40),n(24),n(42),n(43),n(8),n(91),n(56),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(6),a=n(305),l=n(1559),c=n(45),s=n(472),u=n(1663),d=n(1769),f=n(1626),p=n(41),h=n(1595),m=n(1665),b=n(60),g=n(1),v=n(475),y=n(77),w=n(5),x=n(68),O=n(57),S=n(319),k=n(3),E=n(4),C=(n(1575),n(1733),n(1869)),T=n(1585),A={position:"fixed",pointerEvents:"none",zIndex:99999,left:0,top:0,width:"100%",height:"100%"},_=function(e,t){if(!e||!t)return{display:"none"};var n=t.x,o=t.y,r="translate(calc(".concat(n,"px - 50%), calc(").concat(o,"px - 100%))");return{transform:r,WebkitTransform:r}},j=function(){var e=Object(C.a)((function(e){return{itemType:e.getItemType(),item:e.getItem(),isDragging:e.isDragging(),initialOffset:e.getInitialSourceClientOffset(),currentOffset:e.getClientOffset()}})),t=e.itemType,n=e.item,o=e.isDragging,i=e.initialOffset,a=e.currentOffset;return o?r.a.createElement("div",{style:A},r.a.createElement("div",{className:"bookmark-outline-single-container preview",style:_(i,a)},function(){if(!n)return null;var e=n.dragOutline;switch(t){case T.c.OUTLINE:return r.a.createElement(r.a.Fragment,null,e.getName());default:return null}}())):null},P=n(15),N=n.n(P),I=n(1655),R=n(471),q=n(481);function L(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||H(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return D(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(D(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,D(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,D(d,"constructor",s),D(s,"constructor",c),c.displayName="GeneratorFunction",D(s,r,"GeneratorFunction"),D(d),D(d,r,"Generator"),D(d,o,(function(){return this})),D(d,"toString",(function(){return"[object Generator]"})),(M=function(){return{w:i,m:f}})()}function D(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(D=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){D(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function z(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function B(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){z(i,o,r,a,l,"next",e)}function l(e){z(i,o,r,a,l,"throw",e)}a(void 0)}))}}function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||H(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){if(e){if("string"==typeof e)return U(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var W=function(e){var t=e.isTest,n=void 0!==t&&t,C=F(Object(i.e)((function(e){return[E.a.isElementDisabled(e,w.a.OUTLINE_PANEL),E.a.getOutlines(e),E.a.getOutlineEditingEnabled(e),E.a.shouldAutoExpandOutlines(e),E.a.getCurrentPage(e),E.a.getPageLabels(e),E.a.getFeatureFlags(e)]}),i.c),7),T=C[0],A=C[1],_=C[2],P=C[3],D=C[4],z=C[5],H=C[6],U="Full Page",W="Area Selection",G={x:0,y:0},V=null===A,K=Object(q.a)(),$=F(Object(o.useState)(U),2),Y=$[0],Z=$[1],X=F(Object(o.useState)(G),2),Q=X[0],J=X[1],ee=F(Object(o.useState)(D),2),te=ee[0],ne=ee[1],oe=F(Object(o.useState)(!1),2),re=oe[0],ie=oe[1],ae=F(Object(o.useState)(null),2),le=ae[0],ce=ae[1],se=F(Object(o.useState)(!1),2),ue=se[0],de=se[1],fe=F(Object(o.useState)({}),2),pe=fe[0],he=fe[1],me=F(Object(o.useState)(!1),2),be=me[0],ge=me[1],ve=F(Object(o.useState)(!1),2),ye=ve[0],we=ve[1],xe=F(Object(o.useState)([]),2),Oe=xe[0],Se=xe[1],ke=H.customizableUI,Ee=F(Object(a.a)(),1)[0],Ce=Object(i.d)(),Te=Object(o.useRef)(null),Ae="OutlineDestinationCreateTool",_e=g.a.getTool(Ae),je=Object(o.useRef)();Object(o.useEffect)((function(){V&&K&&g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))}))}),[V,K]),Object(o.useLayoutEffect)((function(){de(!1),null!==Te.current&&(ce(Te.current),Te.current=null),(!A||0===A.length)&&we(!1)}),[A]),Object(o.useEffect)((function(){var e=Object(S.a)(),t=e===O.a.PDF||e===O.a.IMAGE,n=function(){return g.a.isFullPDFEnabled()&&t&&_};ie(n());var o=function(){ie(n())};return g.a.addEventListener("documentLoaded",o),function(){return g.a.removeEventListener("documentLoaded",o)}}),[_]),Object(o.useEffect)((function(){var e=Object.values(pe).some((function(e){return e}));ge(e)}),[pe,A]),Object(o.useEffect)((function(){var e=function(e){Z(e.IsText?e.getCustomData("trn-annot-preview"):W),J({x:e.X,y:e.Y}),ne(e.PageNumber)},t=function(){g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))}))},n=function(){ce(null)};return g.a.addEventListener("outlineSetDestination",e),window.addEventListener("outlineBookmarksChanged",t),g.a.addEventListener("documentLoaded",n),function(){g.a.removeEventListener("outlineSetDestination",e),window.removeEventListener("outlineBookmarksChanged",t),g.a.removeEventListener("documentLoaded",n)}}),[]),Object(o.useEffect)((function(){var e=function(e){e.target.classList.contains("bookmark-outline-row")&&(ce(null),Se([]))};return je.current&&je.current.addEventListener("click",e),function(){je.current&&je.current.removeEventListener("click",e)}}),[]);var Pe=function(e,t){var n=t.x,o=t.y;return g.a.getDocumentViewer().getDocument().getViewerCoordinates(e,n,o)},Ne=function(){var e=B(M().m((function e(t){var n,o,r,i,a,l,c;return M().w((function(e){for(;;)switch(e.n){case 0:if(n=Pe(te,Q),o=n.x,r=n.y,i=t,[U,W].includes(Y)||t?t||(i=Ee("message.untitled")):i=Y.slice(0,40),a=g.a.getDocumentViewer().getDocument(),(l=a.getPageRotation(te)/90)!==window.Core.PageRotation.E_90&&l!==window.Core.PageRotation.E_270||(c=o,o=r,r=c),0!==A.length){e.n=2;break}return e.n=1,v.a.addRootOutline(i,te,o,r,0);case 1:e.n=3;break;case 2:return e.n=3,v.a.addNewOutline(i,le,te,o,r,0);case 3:Ie();case 4:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){Object(y.f)(),g.a.getOutlines((function(e){Ce(k.a.setOutlines(e))})),qe(),he({})},Re=function(e){return v.a.getPath(e)},qe=function(){g.a.setToolMode(x.a),Z(U),J(G),ne(D),_e.clearOutlineDestination()},Le=function(){var e=B(M().m((function e(t){var n,o,r,i,a,l;return M().w((function(e){for(;;)switch(e.n){case 0:return n=Pe(te,Q),o=n.x,r=n.y,i=g.a.getDocumentViewer().getDocument(),(a=i.getPageRotation(te)/90)!==window.Core.PageRotation.E_90&&a!==window.Core.PageRotation.E_270||(l=o,o=r,r=l),e.n=1,v.a.setOutlineDestination(t,te,o,r,0);case 1:Te.current=t,Ie();case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();Object(o.useEffect)((function(){Y===U&&ne(D)}),[Y,D]),Object(o.useEffect)((function(){ue?g.a.setToolMode(Ae):qe()}),[ue]);var Me=function(e,t,n){var o=Re(e),r=Re(t);Se([]),n.call(v.a,o,r).then((function(e){Ie(),Te.current=e})),g.a.goToOutline(e)},De=function(e,t){Me(e,t,v.a.moveOutlineAfterTarget)},ze=function(e,t){Me(e,t,v.a.moveOutlineBeforeTarget)},Be=function(e,t){Me(e,t,v.a.moveOutlineInTarget)},Fe=function(){var e=B(M().m((function e(t,n){return M().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,v.a.setOutlineName(t,n);case 1:Ie();case 2:return e.a(2)}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),He=function(){var e=B(M().m((function e(t){var n;return M().w((function(e){for(;;)switch(e.n){case 0:t.sort().reverse(),n={message:Ee("warning.deleteOutline.message"),title:Ee("warning.deleteOutline.title"),confirmBtnText:Ee("action.delete"),onConfirm:function(){var e=B(M().m((function e(){var n,o;return M().w((function(e){for(;;)switch(e.n){case 0:n=0;case 1:if(!(n<t.length)){e.n=3;break}return o=t[n],e.n=2,v.a.deleteOutline(o);case 2:n++,e.n=1;break;case 3:Ie(),ce(null),Se([]);case 4:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}()},Ce(k.a.showWarningMessage(n));case 1:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();return T?null:r.a.createElement("div",{className:N()("Panel OutlinesPanel bookmark-outline-panel",{"modular-ui-panel":ke}),"data-element":w.a.OUTLINE_PANEL,ref:je},r.a.createElement("div",{className:"bookmark-outline-panel-header"},r.a.createElement("h2",{className:"header-title"},Ee("component.outlinesPanel")),re&&(ye?r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:Ee("option.bookmarkOutlineControls.done"),disabled:ue,onClick:function(){return we(!1)},ariaLabel:"".concat(Ee("option.bookmarkOutlineControls.done")," ").concat(Ee("action.edit"))}):r.a.createElement(h.a,{className:"bookmark-outline-control-button",dataElement:w.a.OUTLINE_MULTI_SELECT,label:Ee("option.bookmarkOutlineControls.edit"),disabled:ue||V||0===A.length,onClick:function(){we(!0),Se([])},ariaLabel:"".concat(Ee("action.edit")," ").concat(Ee("component.outlinesPanel"))}))),V&&K?r.a.createElement(R.a,{inPanel:!0,width:"40px",height:"40px"}):r.a.createElement(f.a.Provider,{value:{currentDestPage:z[te-1],currentDestText:Y,setActiveOutlinePath:ce,activeOutlinePath:le,isOutlineActive:function(e){return Re(e)===le},setAddingNewOutline:de,isAddingNewOutline:ue,setEditingOutlines:he,editingOutlines:pe,selectedOutlines:Oe,isAnyOutlineRenaming:be,isMultiSelectMode:ye,shouldAutoExpandOutlines:P,isOutlineEditable:re,addNewOutline:Ne,updateOutlines:Ie,renameOutline:Fe,updateOutlineDest:Le,removeOutlines:He}},r.a.createElement(l.a,{backend:c.l?u.a:s.a},r.a.createElement(j,null),r.a.createElement("div",{className:"bookmark-outline-row"},!ue&&(V||0===A.length)&&r.a.createElement("div",{className:"msg msg-no-bookmark-outline"},Ee("message.noOutlines")),ue&&null===le&&r.a.createElement(b.a,{className:"bookmark-outline-single-container editing"},r.a.createElement(m.a,{isAdding:!0,text:"",onCancel:function(){return de(!1)}})),r.a.createElement(I.a,{className:N()({"small-outlines-list":ue}),data:A||[],itemContent:function(e,t){return r.a.createElement(d.default,{key:v.a.getOutlineId(t),outline:t,setMultiSelected:function(e,t){Oe.find((function(t){return t===e}))?t||Se(Oe.filter((function(t){return t!==e}))):t&&Se([].concat(L(Oe),[e]))},moveOutlineInward:Be,moveOutlineBeforeTarget:ze,moveOutlineAfterTarget:De})},initialItemCount:n?null==A?void 0:A.length:void 0}))),re&&r.a.createElement(b.a,{className:"bookmark-outline-footer",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON_CONTAINER},ye?r.a.createElement(r.a.Fragment,null,r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-menu-add",ariaLabel:"".concat(Ee("action.add")," ").concat(Ee("component.outlinesPanel")),disabled:Oe.length>0||ue||be,onClick:function(){return de(!0)}}),r.a.createElement(p.a,{className:"multi-selection-button",img:"icon-delete-line",disabled:0===Oe.length||be,onClick:function(){return He(Oe)}})):r.a.createElement(h.a,{className:"bookmark-outline-control-button add-new-button",img:"icon-menu-add",dataElement:w.a.OUTLINE_ADD_NEW_BUTTON,disabled:ue||be,label:"".concat(Ee("action.add")," ").concat(Ee("component.outlinePanel")),onClick:function(){return de(!0)},ariaLabel:"".concat(Ee("action.add")," ").concat(Ee("component.outlinesPanel"))}))))},G=r.a.memo(W);t.default=G},1782:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(38),n(21),n(20),n(12),n(44),n(22),n(18),n(26),n(16),n(40),n(24),n(228),n(42),n(43),n(8),n(56),n(1650),n(17),n(19),n(11),n(180),n(13),n(94);var o=n(0),r=n.n(o),i=n(305),a=n(289),l=n(471),c=n(172),s=n(51),u=n(1),d=n(6),f=n(4),p=n(3),h=n(5),m=(n(1737),n(32));function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return g(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,c=e,f.n=n,a}};function p(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],p=f.p,h=i[2];n>3?(r=h===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,f.v=o,f.n=i[1]):p<h&&(r=n<3||i[0]>o||o>h)&&(i[4]=n,i[5]=o,f.n=h,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,h){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,h),l=u,c=h;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,c)):f.n=c:f.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=f.n<0)?c:n.call(o,f))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(g(t={},o,(function(){return this})),t),d=s.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,g(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,g(d,"constructor",s),g(s,"constructor",c),c.displayName="GeneratorFunction",g(s,r,"GeneratorFunction"),g(d),g(d,r,"Generator"),g(d,o,(function(){return this})),g(d,"toString",(function(){return"[object Generator]"})),(b=function(){return{w:i,m:f}})()}function g(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}(g=function(e,t,n,o){if(t)r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n;else{var i=function(t,n){g(e,t,(function(e){return this._invoke(t,n,e)}))};i("next",0),i("throw",1),i("return",2)}})(e,t,n,o)}function v(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(o,r){var i=e.apply(t,n);function a(e){v(i,o,r,a,l,"next",e)}function l(e){v(i,o,r,a,l,"throw",e)}a(void 0)}))}}function w(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var O=function(e){return e.match(/[^\\\/]+$/g)[0]},S=function(e,t,n,o){var i=(e=O(e)).split(".").pop().toUpperCase(),a=function(e){"Enter"!==e.key&&" "!==e.key||t()};return o===n?r.a.createElement("li",{key:n},r.a.createElement("button",{className:"embedSpinner",onClick:t,onKeyDown:a,style:{cursor:"pointer",background:"none",border:"none",padding:0},type:"button"},"[".concat(i,"] ").concat(e),r.a.createElement(l.a,{height:15,width:15}))):r.a.createElement("li",{key:n},r.a.createElement("button",{className:"embedSpinner",onClick:t,onKeyDown:a,style:{cursor:"pointer",background:"none",border:"none",padding:0},type:"button"},"[".concat(i,"] ").concat(e)))},k={embeddedFiles:[],fileAttachmentAnnotations:[]},E=function(e){var t=e.initialFiles,n=void 0===t?k:t,l=w(Object(i.a)(),1)[0],g=Object(d.d)(),v=w(Object(o.useState)(n),2),x=v[0],E=v[1],C=Object(d.e)(f.a.getIsMultiTab),T=Object(d.e)(f.a.getTabManager),A=w(Object(o.useState)(null),2),_=A[0],j=A[1];if(Object(o.useEffect)((function(){var e=function(){var e=y(b().m((function e(){var t;return b().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,Object(a.b)();case 1:t=e.v,E(t);case 2:return e.a(2)}}),e)})));return function(){return e.apply(this,arguments)}}();return u.a.addEventListener("annotationChanged",e),u.a.addEventListener("documentLoaded",e),e(),function(){u.a.removeEventListener("annotationChanged",e),u.a.removeEventListener("documentLoaded",e)}}),[]),0===x.embeddedFiles.length&&0===Object.entries(x.fileAttachmentAnnotations).length)return r.a.createElement("div",{className:"fileAttachmentPanel"},r.a.createElement("div",{className:"empty-panel-container"},r.a.createElement(s.a,{className:"empty-icon",glyph:m.c[m.e.FILE_ATTACHMENT].icon}),r.a.createElement("div",{className:"empty-message"},l("message.noAttachments"))));var P=function(){var e=y(b().m((function e(t){return b().w((function(e){for(;;)switch(e.n){case 0:if(!C){e.n=1;break}g(p.a.openElement(h.a.LOADING_MODAL)),setTimeout(y(b().m((function e(){var n,o,r;return b().w((function(e){for(;;)switch(e.n){case 0:return e.n=1,t.getFileData();case 1:return n=e.v,o=O(t.filename),e.n=2,T.addTab(n,{filename:o});case 2:return r=e.v,g(p.a.closeElement(h.a.LOADING_MODAL)),g(p.a.closeElement(h.a.LEFT_PANEL)),e.n=3,T.setActiveTab(r);case 3:return e.a(2)}}),e)}))),100),e.n=2;break;case 1:return e.a(2,u.a.getAnnotationManager().trigger("annotationDoubleClicked",t));case 2:return e.a(2)}}),e)})));return function(t){return e.apply(this,arguments)}}();return r.a.createElement("div",{className:"fileAttachmentPanel"},r.a.createElement("div",{className:"section"},x.embeddedFiles.length?r.a.createElement("h2",{className:"title"},l("message.embeddedFiles")):null,r.a.createElement("ul",{className:"downloadable"},x.embeddedFiles.map((function(e,t){return S(O(e.filename),(function(){j("embeddedFile_".concat(t)),Object(a.a)(e.fileObject).then((function(t){Object(c.saveAs)(t,O(e.filename))})).finally((function(){j(null)}))}),"embeddedFile_".concat(t),_)})))),Object.entries(x.fileAttachmentAnnotations).map((function(e){var t=w(e,2),n=t[0],o=t[1];return r.a.createElement("div",{key:n,className:"section"},r.a.createElement("h2",{className:"title"},l("message.pageNum")," ",n),r.a.createElement("ul",{className:"downloadable"},o.map((function(e,t){return S(O(e.filename),y(b().m((function t(){return b().w((function(t){for(;;)switch(t.n){case 0:return u.a.setCurrentPage(e.PageNumber),u.a.selectAnnotation(e),t.n=1,P(e);case 1:return t.a(2)}}),t)}))),"fileAttachmentAnnotation_".concat(t))}))))})))};t.default=E},1844:function(e,t,n){"use strict";var o=n(1605),r=n(1587);var i=function(){if(!arguments.length)return[];var e=arguments[0];return Object(r.a)(e)?e:[e]};var a=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};var l=function(e,t,n){for(var o=n-1,r=e.length;++o<r;)if(e[o]===t)return o;return-1};var c=function(e,t){return!!(null==e?0:e.length)&&l(e,t,0)>-1};var s=function(e,t,n,o,r,l){var s=1&n,u=e.length,d=t.length;if(u!=d&&!(s&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,b=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var g=e[h],v=t[h];if(o)var y=s?o(v,g,h,t,e,l):o(g,v,h,e,t,l);if(void 0!==y){if(y)continue;m=!1;break}if(b){if(!a(t,(function(e,t){if(!c(b,t)&&(g===e||r(g,e,n,o,l)))return b.push(t)}))){m=!1;break}}else if(g!==v&&!r(g,v,n,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m};var u=function(e,t){return e===t||e!=e&&t!=t},d=n(1625),f=Object.prototype.hasOwnProperty;var p=function(e,t,n,o,r,i){var a=1&n,l=Object(d.a)(e),c=l.length;if(c!=Object(d.a)(t).length&&!a)return!1;for(var s=c;s--;){var u=l[s];if(!(a?u in t:f.call(t,u)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=a;++s<c;){var g=e[u=l[s]],v=t[u];if(o)var y=a?o(v,g,u,t,e,i):o(g,v,u,e,t,i);if(!(void 0===y?g===v||r(g,v,n,o,i):y)){m=!1;break}b||(b="constructor"==u)}if(m&&!b){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return i.delete(e),i.delete(t),m},h=n(1623),m=n(1603),b=n(1643),g="[object Object]",v=Object.prototype.hasOwnProperty;var y=function(e,t,n,i,a,l){var c=Object(r.a)(e),d=Object(r.a)(t),f=c?"[object Array]":Object(h.a)(e),y=d?"[object Array]":Object(h.a)(t),w=(f="[object Arguments]"==f?g:f)==g,x=(y="[object Arguments]"==y?g:y)==g,O=f==y;if(O&&Object(m.a)(e)){if(!Object(m.a)(t))return!1;c=!0,w=!1}if(O&&!w)return l||(l=new o.a),c||Object(b.a)(e)?s(e,t,n,i,a,l):u(e,t,f,n,i,a,l);if(!(1&n)){var S=w&&v.call(e,"__wrapped__"),k=x&&v.call(t,"__wrapped__");if(S||k){var E=S?e.value():e,C=k?t.value():t;return l||(l=new o.a),a(E,C,n,i,l)}}return!!O&&(l||(l=new o.a),p(e,t,n,i,a,l))},w=n(1607);var x=function e(t,n,o,r,i){return t===n||(null==t||null==n||!Object(w.a)(t)&&!Object(w.a)(n)?t!=t&&n!=n:y(t,n,o,r,e,i))};t.a=function(e,t){return x(e,t)}},1869:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));n(9),n(10),n(14),n(21),n(20),n(12),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n(1593),i=n(1722);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var o,r,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function c(e){var t=Object(r.a)().getMonitor(),n=a(Object(i.a)(t,e),2),l=n[0],c=n[1];return Object(o.useEffect)((function(){return t.subscribeToOffsetChange(c)})),Object(o.useEffect)((function(){return t.subscribeToStateChange(c)})),l}},1876:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(75),r=n(2080),i=n(2078),a=n(2079),l=n(1573),c=n(1664);n(27),n(76),n(85),n(24),n(37),n(8),n(56),n(29);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=["canDrop","hover","drop"],f=function(){function e(t,n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"props",null),u(this,"spec",void 0),u(this,"monitor",void 0),u(this,"ref",void 0),this.spec=t,this.monitor=n,this.ref=o}var t,n,o;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,Object(l.b)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&s(t.prototype,n),o&&s(t,o),e}();function p(e){return Object.keys(e).forEach((function(t){Object(o.a)(d.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',d.join(", "),t),Object(o.a)("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new f(e,t,n)}}function h(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DropTarget","type, spec, collect[, options]",e,t,n,s);var u=e;"function"!=typeof e&&(Object(o.a)(Object(l.f)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),u=function(){return e}),Object(o.a)(Object(l.d)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var d=p(t);return Object(o.a)("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),Object(o.a)(Object(l.d)(s),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return Object(c.a)({containerDisplayName:"DropTarget",createHandler:d,registerHandler:r.b,createMonitor:function(e){return new i.a(e)},createConnector:function(e){return new a.a(e)},DecoratedComponent:e,getType:u,collect:n,options:s})}}},1877:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(75),r=n(2080),i=n(2082),a=n(2081),l=n(1573),c=n(1664);n(27),n(76),n(85),n(24),n(37),n(8),n(29);function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=["canDrag","beginDrag","isDragging","endDrag"],f=["beginDrag"],p=function(){function e(t,n,o){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,"props",null),u(this,"spec",void 0),u(this,"monitor",void 0),u(this,"ref",void 0),u(this,"beginDrag",(function(){if(r.props)return r.spec.beginDrag(r.props,r.monitor,r.ref.current)})),this.spec=t,this.monitor=n,this.ref=o}var t,n,o;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,Object(l.b)(this.ref))}}])&&s(t.prototype,n),o&&s(t,o),e}();function h(e){return Object.keys(e).forEach((function(t){Object(o.a)(d.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',d.join(", "),t),Object(o.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),f.forEach((function(t){Object(o.a)("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new p(e,t,n)}}function m(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Object(l.a)("DragSource","type, spec, collect[, options]",e,t,n,s);var u=e;"function"!=typeof e&&(Object(o.a)(Object(l.f)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),u=function(){return e}),Object(o.a)(Object(l.d)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var d=h(t);return Object(o.a)("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),Object(o.a)(Object(l.d)(s),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return Object(c.a)({containerDisplayName:"DragSource",createHandler:d,registerHandler:r.a,createConnector:function(e){return new i.a(e)},createMonitor:function(e){return new a.a(e)},DecoratedComponent:e,getType:u,collect:n,options:s})}}},2044:function(e,t,n){var o=n(35),r=n(2045);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},2045:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.LeftPanelTabs{display:flex;flex:1;border-radius:4px;border:1px solid var(--border)}.LeftPanelTabs .Button{flex-grow:1;height:26px;margin:0;border-radius:0}.LeftPanelTabs .Button:not(:last-child){border-inline-end:1px solid var(--divider)}.LeftPanelTabs .Button:first-child{border-bottom-left-radius:4px;border-top-left-radius:4px}.LeftPanelTabs .Button:last-child{border-bottom-right-radius:4px;border-top-right-radius:4px}.LeftPanelTabs .Button .Icon{width:19px;height:19px}.LeftPanelTabs .Button:hover{background:var(--popup-button-hover)}.LeftPanelTabs .Button.active{background:var(--popup-button-active)}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2046:function(e,t,n){var o=n(35),r=n(2047);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var i={insert:function(e){if(!window.isApryseWebViewerWebComponent)return void document.head.appendChild(e);let t;t=document.getElementsByTagName("apryse-webviewer"),t.length||(t=function e(t,n=document){const o=[];return n.querySelectorAll(t).forEach(e=>o.push(e)),n.querySelectorAll("*").forEach(n=>{n.shadowRoot&&o.push(...e(t,n.shadowRoot))}),o}("apryse-webviewer"));const n=[];for(let o=0;o<t.length;o++){const r=t[o];if(0===o)r.shadowRoot.appendChild(e),e.onload=function(){n.length>0&&n.forEach(t=>{t.innerHTML=e.innerHTML})};else{const t=e.cloneNode(!0);r.shadowRoot.appendChild(t),n.push(t)}}},singleton:!1};o(r,i);e.exports=r.locals||{}},2047:function(e,t,n){(t=e.exports=n(36)(!1)).push([e.i,":host{display:inline-block;container-type:inline-size;width:100%;height:100%;overflow:hidden}@media(min-width:901px){.App:not(.is-web-component) .hide-in-desktop{display:none}}@container (min-width: 901px){.hide-in-desktop{display:none}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .hide-in-tablet{display:none}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .hide-in-tablet{display:none}}@media(max-width:640px)and (min-width:431px){.App:not(.is-web-component) .hide-in-mobile{display:none}}@container (max-width: 640px) and (min-width: 431px){.App.is-web-component .hide-in-mobile{display:none}}@media(max-width:430px){.App:not(.is-web-component) .hide-in-small-mobile{display:none}}@container (max-width: 430px){.App.is-web-component .hide-in-small-mobile{display:none}}.always-hide{display:none}.LeftPanel .Panel{overflow:auto;-webkit-overflow-scrolling:touch;flex:1;flex-direction:column}.LeftPanel{z-index:65;display:flex!important;flex-direction:column;background-color:var(--panel-background);display:flex;flex-direction:row;justify-content:flex-end;overflow:hidden;position:fixed;inset-inline-start:0;transition:transform .3s ease-in-out;max-width:calc(100% - 16px);height:calc(100% - 40px)}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{max-width:100%;position:fixed;inset-block-start:0;inset-inline-start:0;height:100%;width:100%;z-index:95}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{max-width:100%;position:fixed;inset-block-start:0;inset-inline-start:0;height:100%;width:100%;z-index:95}}.LeftPanel.logo-bar-enabled{height:calc(100% - 24px)}.LeftPanel.tools-header-open{height:calc(100% - 80px)}.LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 104px)}.LeftPanel.multi-tab-active{height:calc(100% - 120px)}.LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 140px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active{height:calc(100% - 140px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@media(min-width:901px){.App:not(.is-web-component) .LeftPanel{height:calc(100% - 40px)}.App:not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 64px)}.App:not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 74px)}.App:not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 98px)}.App:not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 120px)}.App:not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}}@container (min-width: 901px){.LeftPanel{height:calc(100% - 40px)}.LeftPanel.logo-bar-enabled{height:calc(100% - 64px)}.LeftPanel.tools-header-open{height:calc(100% - 74px)}.LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 98px)}.LeftPanel.multi-tab-active{height:calc(100% - 120px)}.LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 144px)}}@media(min-width:641px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{height:calc(100% - 37px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.ModularPanel{height:calc(100% - 49px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 61px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 76px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.ModularPanel{height:calc(100% - 98px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 100px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active{height:calc(100% - 70px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.ModularPanel{height:calc(100% - 85px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 139px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.tools-header-open{height:calc(100% - 110px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.multi-tab-active.tools-header-open.ModularPanel{height:calc(100% - 134px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden{height:100%}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.logo-bar-enabled{height:calc(100% - 24px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.multi-tab-active{height:calc(100% - 36px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-and-header-hidden.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@container (min-width: 641px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{height:calc(100% - 37px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.ModularPanel{height:calc(100% - 49px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.logo-bar-enabled{height:calc(100% - 61px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open{height:calc(100% - 76px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.ModularPanel{height:calc(100% - 98px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 100px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active{height:calc(100% - 70px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.ModularPanel{height:calc(100% - 85px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.logo-bar-enabled{height:calc(100% - 139px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.tools-header-open{height:calc(100% - 110px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.multi-tab-active.tools-header-open.ModularPanel{height:calc(100% - 134px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden{height:100%}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.logo-bar-enabled{height:calc(100% - 24px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.multi-tab-active{height:calc(100% - 36px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-and-header-hidden.multi-tab-active.logo-bar-enabled{height:calc(100% - 164px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{height:calc(100% - 53px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.logo-bar-enabled{height:calc(100% - 77px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{height:calc(100% - 53px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.logo-bar-enabled{height:calc(100% - 77px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open{height:calc(100% - 104px)}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 128px)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open{height:calc(100% - 104px)}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel.tools-header-open.logo-bar-enabled{height:calc(100% - 128px)}}@media(min-width:641px)and (max-width:900px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel{border-inline-end:1px solid var(--side-panel-border)}}@container (min-width: 641px) and (max-width: 900px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel{border-inline-end:1px solid var(--side-panel-border)}}.LeftPanel.closed{transform:translateX(-100%)}.LeftPanel.office-editor .left-panel-container{padding:0}.LeftPanel .left-panel-container{display:flex;flex-direction:column;padding:16px 16px 0}@media(max-width:640px){.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container{padding-top:0;width:100%;min-width:100%}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container{display:flex;align-items:center;justify-content:flex-end;height:64px;width:100%;padding-inline-end:5px;inset-block-start:0}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container .close-icon-container{cursor:pointer}.App:not(.is-in-desktop-only-mode):not(.is-web-component) .LeftPanel .left-panel-container .close-container .close-icon-container .close-icon{width:24px;height:24px}}@container (max-width: 640px){.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container{padding-top:0;width:100%;min-width:100%}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container{display:flex;align-items:center;justify-content:flex-end;height:64px;width:100%;padding-inline-end:5px;inset-block-start:0}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container .close-icon-container{cursor:pointer}.App.is-web-component:not(.is-in-desktop-only-mode) .LeftPanel .left-panel-container .close-container .close-icon-container .close-icon{width:24px;height:24px}}.LeftPanel .left-panel-container .left-panel-header{display:flex;align-items:center;margin-bottom:16px;margin-inline-start:16px;margin-top:0;margin-inline-end:8px}",""]),t.locals={LEFT_HEADER_WIDTH:"41px",RIGHT_HEADER_WIDTH:"41px"}},2111:function(e,t,n){"use strict";n.r(t);n(9),n(10),n(14),n(21),n(20),n(12),n(44),n(22),n(18),n(16),n(8),n(17),n(19),n(11),n(13);var o=n(0),r=n.n(o),i=n(15),a=n.n(i),l=n(6),c=(n(30),n(38),n(31),n(26),n(28),n(40),n(24),n(42),n(43),n(84),n(2)),s=n.n(c),u=n(1556),d=n(41),f=n(1768),p=n(5),h=n(3),m=n(4);n(2044);function b(e){return(b="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 g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,S(o.key),o)}}function y(e,t,n){return t=w(t),function(e,t){if(t&&("object"==b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,t){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=function(e,t){if("object"!=b(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=b(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==b(t)?t:t+""}var k=function(e){function t(){var e;g(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return O(e=y(this,t,[].concat(o)),"isActive",(function(t){return e.props.activePanel===t})),e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.props,n=t.isLeftPanelOpen,o=t.showPortfolio,i=t.customPanels,a=t.isLeftPanelTabsDisabled,l=t.setActiveLeftPanel,c=t.notesInLeftPanel,s=t.openElement;return a?null:r.a.createElement(f.a,{className:"LeftPanelTabs",dataElement:"leftPanelTabs"},o&&r.a.createElement(d.a,{isActive:this.isActive(p.a.PORTFOLIO_PANEL),dataElement:p.a.PORTFOLIO_PANEL_BUTTON,img:"icon-compare-change",onClick:function(){return l(p.a.PORTFOLIO_PANEL)},title:"portfolio.portfolioPanelTitle",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("thumbnailsPanel"),dataElement:"thumbnailsPanelButton",img:"icon-panel-thumbnail-line",onClick:function(){return l("thumbnailsPanel")},title:"component.thumbnailsPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("outlinesPanel"),dataElement:p.a.OUTLINE_PANEL_BUTTON,img:"icon-panel-outlines",onClick:function(){return l("outlinesPanel")},title:"component.outlinesPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("layersPanel"),dataElement:"layersPanelButton",img:"ic_layers_24px",onClick:function(){return l("layersPanel")},title:"component.layersPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("bookmarksPanel"),dataElement:"bookmarksPanelButton",img:"ic_bookmarks_black_24px",onClick:function(){return l("bookmarksPanel")},title:"component.bookmarksPanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("signaturePanel"),dataElement:"signaturePanelButton",img:"icon-tool-signature",onClick:function(){return l("signaturePanel")},title:"component.signaturePanel",tabIndex:n?0:-1}),r.a.createElement(d.a,{isActive:this.isActive("attachmentPanel"),dataElement:"attachmentPanelButton",img:"ic_fileattachment_24px",onClick:function(){return l("attachmentPanel")},title:"component.attachmentPanel",tabIndex:n?0:-1}),c&&r.a.createElement(d.a,{isActive:this.isActive(p.a.NOTES_PANEL),dataElement:"notesPanelButton",img:"icon-header-chat-line",onClick:function(){s(p.a.NOTES_PANEL),l(p.a.NOTES_PANEL)},title:"component.notesPanel"}),i.map((function(t,n){var o=t.panel,a=t.tab;return r.a.createElement(r.a.Fragment,{key:n},r.a.createElement(d.a,{key:a.dataElement||n,isActive:e.isActive(o.dataElement),dataElement:a.dataElement,img:a.img,onClick:function(){return l(o.dataElement)},title:a.title}),n<i.length-1&&r.a.createElement("div",{className:"divider"}))})))}}])&&v(n.prototype,o),i&&v(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.a.Component);O(k,"propTypes",{isLeftPanelOpen:s.a.bool,showPortfolio:s.a.bool,activePanel:s.a.string.isRequired,disabledCustomPanelTabs:s.a.array.isRequired,customPanels:s.a.array.isRequired,isLeftPanelTabsDisabled:s.a.bool,setActiveLeftPanel:s.a.func.isRequired,t:s.a.func.isRequired});var E={setActiveLeftPanel:h.a.setActiveLeftPanel,openElement:h.a.openElement},C=Object(l.b)((function(e){return{isLeftPanelOpen:m.a.isElementOpen(e,"leftPanel"),activePanel:m.a.getActiveLeftPanel(e),customPanels:m.a.getCustomPanels(e),disabledCustomPanelTabs:m.a.getDisabledCustomPanelTabs(e),isLeftPanelTabsDisabled:m.a.isElementDisabled(e,"leftPanelTabs"),notesInLeftPanel:m.a.getNotesInLeftPanel(e)}}),E)(Object(u.a)()(k)),T=n(1779),A=n(1777),_=n(1781),j=n(1780),P=n(489),N=n(1782),I=n(1718),R=n(184),q=n(221),L=n(51),M=n(1778),D=n(1),z=n(61),B=n(45);n(2046);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}var U=function(){var e=Object(z.b)(),t=Object(z.c)(),n=F(Object(l.e)((function(e){return[m.a.getCurrentToolbarGroup(e),m.a.isElementOpen(e,"header"),m.a.isElementOpen(e,"toolsHeader"),m.a.isElementOpen(e,"officeEditorToolsHeader"),m.a.isElementOpen(e,p.a.LEFT_PANEL),m.a.isElementDisabled(e,p.a.LEFT_PANEL),m.a.getActiveLeftPanel(e),m.a.getCustomPanels(e),m.a.getLeftPanelWidth(e),m.a.getNotesInLeftPanel(e),m.a.isInDesktopOnlyMode(e),m.a.getIsMultiTab(e),!m.a.isElementDisabled(e,p.a.LOGO_BAR),m.a.getFeatureFlags(e),m.a.getTopHeadersHeight(e),m.a.getBottomHeadersHeight(e),m.a.getPortfolio(e),m.a.getIsOfficeEditorMode(e)]}),l.c),18),o=n[0],i=n[1],c=n[2],s=n[3],u=n[4],d=n[5],f=n[6],b=n[7],g=n[8],v=n[9],y=n[10],w=n[11],x=n[12],O=n[13],S=n[14],k=n[15],E=n[16],H=n[17],U=Object(l.d)(),W=function(e){return e===f?"flex":"none"},G={};!y&&e||(G={width:"".concat(g,"px"),minWidth:"".concat(g,"px")});var V=!(!u||d),K=c&&"toolbarGroup-View"!==o,$=!i&&!K,Y={display:"none"};if(O.customizableUI){var Z=S+k;Y.height="calc(100% - ".concat(Z,"px)")}return r.a.createElement("div",{className:a()({Panel:!0,LeftPanel:!0,closed:!V,"tools-header-open":K||s,"tools-header-and-header-hidden":$,"thumbnail-panel-active":"thumbnailsPanel"===f,"outlines-panel-active":"outlinesPanel"===f,"multi-tab-active":w,"logo-bar-enabled":x,"office-editor":H}),onDrop:function(e){e.preventDefault()},onDragOver:function(e){e.preventDefault()},"data-element":p.a.LEFT_PANEL,style:Y},r.a.createElement("div",{className:"left-panel-container",style:G},!y&&e&&r.a.createElement("div",{className:"close-container"},r.a.createElement("div",{className:"close-icon-container",onClick:function(){U(h.a.closeElements(["leftPanel"]))}},r.a.createElement(L.a,{glyph:"ic_close_black_24px",className:"close-icon"}))),H?r.a.createElement(M.default,{currentLeftPanelWidth:g}):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"left-panel-header"},r.a.createElement(C,{showPortfolio:E.length>0})),f===p.a.PORTFOLIO_PANEL&&E.length>0&&r.a.createElement(T.default,null),"thumbnailsPanel"===f&&r.a.createElement(A.default,null),"outlinesPanel"===f&&r.a.createElement(_.default,null),"bookmarksPanel"===f&&r.a.createElement(j.default,null),"layersPanel"===f&&r.a.createElement(P.a,null),D.a.isFullPDFEnabled()&&"signaturePanel"===f&&r.a.createElement(I.default,null),"attachmentPanel"===f&&r.a.createElement(N.default,null),v&&"notesPanel"===f&&r.a.createElement(M.default,{currentLeftPanelWidth:g}),b.map((function(e,t){var n=e.panel;return r.a.createElement(R.a,{key:n.dataElement||t,className:"Panel ".concat(n.dataElement),display:W(n.dataElement),dataElement:n.dataElement,render:n.render})})))),(y||!t)&&r.a.createElement(q.a,{dataElement:"leftPanelResizeBar",minWidth:264,onResize:function(e){var t=window.innerWidth;B.e&&(t-=30),U(h.a.setLeftPanelWidth(Math.min(e,t)))}}))};t.default=U},630:function(e,t,n){"use strict";var o;function r(){return o||((o=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),o}n.d(t,"a",(function(){return r}))}}]);
|
|
4
4
|
//# sourceMappingURL=chunk.25.js.map
|